import{i as G,r as la,m as N,c as W,e as S,a as H,b as tt,d as fe,f as Ws,g as k,h as ie,j as me,k as m0,l as O,n as Z,L as Id,o as In,p as Le,P as De,q as nc,s as _0,t as ve,u as x0,T as ra,v as Ln,w as rt,x as K,Z as zt,y as J,z as S0,A as b0,B as w0,C as T0,D as Nl,E as Ri,F as Nt,G as Ld,S as Gt,R as ro,H as fr,I as At,J as oe,K as Ze,M as Pd,N as Vl,O as A0,Q,U as ae,V as C0,W as Rd,X as zl,Y as M0,_ as ge,$ as Ei,a0 as we,a1 as Pn,a2 as j,a3 as U,a4 as Xe,a5 as D0,a6 as ee,a7 as at,a8 as pe,a9 as z,aa as Hs,ab as I0,ac as bt,ad as Us,ae as L0,af as Ed,ag as P0,ah as ma,ai as ic,aj as Eo,ak as R0,al as ua,am as $s,an as E0,ao as oc,ap as kd,aq as Od,ar as ao,as as Bd,at as sc,au as ko,av as k0,aw as O0,ax as Hn,ay as lc,az as uc,aA as B0,aB as N0,aC as ir,aD as Rn,aE as V0,aF as cc,aG as or,aH as z0,aI as G0,aJ as F0,aK as un,aL as W0,aM as En,aN as H0,aO as U0,aP as Oo,aQ as xi,aR as Bo,aS as $0,aT as Nd,aU as cn,aV as fn,aW as Y0,aX as Vd,aY as fc,aZ as Z0,a_ as X0,a$ as K0,b0 as q0,b1 as j0,b2 as J0,b3 as Q0,b4 as e_}from"./zrender.d54ce080.js";import{_ as P}from"./tslib.60310f1a.js";var hc=1e-4,zd=20;function t_(r){return r.replace(/^\s+|\s+$/g,"")}function he(r,t,e,a){var n=t[0],i=t[1],o=e[0],s=e[1],l=i-n,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(a)if(l>0){if(r<=n)return o;if(r>=i)return s}else{if(r>=n)return o;if(r<=i)return s}else{if(r===n)return o;if(r===i)return s}return(r-n)/l*u+o}function $(r,t){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return G(r)?t_(r).match(/%$/)?parseFloat(r)/100*t:parseFloat(r):r==null?NaN:+r}function xe(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),zd),r=(+r).toFixed(t),e?r:+r}function Rt(r){return r.sort(function(t,e){return t-e}),r}function Et(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var t=1,e=0;e<15;e++,t*=10)if(Math.round(r*t)/t===r)return e}return r_(r)}function r_(r){var t=r.toString().toLowerCase(),e=t.indexOf("e"),a=e>0?+t.slice(e+1):0,n=e>0?e:t.length,i=t.indexOf("."),o=i<0?0:n-1-i;return Math.max(0,o-a)}function Gd(r,t){var e=Math.log,a=Math.LN10,n=Math.floor(e(r[1]-r[0])/a),i=Math.round(e(Math.abs(t[1]-t[0]))/a),o=Math.min(Math.max(-n+i,0),20);return isFinite(o)?o:20}function a_(r,t,e){if(!r[t])return 0;var a=la(r,function(d,p){return d+(isNaN(p)?0:p)},0);if(a===0)return 0;for(var n=Math.pow(10,e),i=N(r,function(d){return(isNaN(d)?0:d)/a*n*100}),o=n*100,s=N(i,function(d){return Math.floor(d)}),l=la(s,function(d,p){return d+p},0),u=N(i,function(d,p){return d-s[p]});lc&&(c=u[v],f=v);++s[f],u[f]=0,++l}return s[t]/n}function n_(r,t){var e=Math.max(Et(r),Et(t)),a=r+t;return e>zd?a:xe(a,e)}function Fd(r){var t=Math.PI*2;return(r%t+t)%t}function ki(r){return r>-hc&&r=10&&t++,t}function Wd(r,t){var e=Gl(r),a=Math.pow(10,e),n=r/a,i;return t?n<1.5?i=1:n<2.5?i=2:n<4?i=3:n<7?i=5:i=10:n<1?i=1:n<2?i=2:n<3?i=3:n<5?i=5:i=10,r=i*a,e>=-20?+r.toFixed(e<0?-e:0):r}function vc(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var t=-1/0,e=1,a=0;a=0||i&&ie(i,l)<0)){var u=a.getShallow(l,t);u!=null&&(o[r[s][0]]=u)}}return o}}var L_=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],P_=ca(L_),R_=function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return P_(this,t,e)},r}(),q=ne(),E_=function(r,t,e,a){if(a){var n=q(a);n.dataIndex=e,n.dataType=t,n.seriesIndex=r,a.type==="group"&&a.traverse(function(i){var o=q(i);o.seriesIndex=r,o.dataIndex=e,o.dataType=t})}},yc=1,mc={},ep=ne(),Ul=ne(),$l=0,io=1,oo=2,nt=["emphasis","blur","select"],Ni=["normal","emphasis","blur","select"],tp=10,k_=9,Dr="highlight",Si="downplay",tn="select",bi="unselect",rn="toggleSelect";function Ur(r){return r!=null&&r!=="none"}var _c=new Id(100);function xc(r){if(G(r)){var t=_c.get(r);return t||(t=nc(r,-.1),_c.put(r,t)),t}else if(_0(r)){var e=O({},r);return e.colorStops=N(r.colorStops,function(a){return{offset:a.offset,color:nc(a.color,-.1)}}),e}return r}function so(r,t,e){r.onHoverStateChange&&(r.hoverState||0)!==e&&r.onHoverStateChange(t),r.hoverState=e}function rp(r){so(r,"emphasis",oo)}function ap(r){r.hoverState===oo&&so(r,"normal",$l)}function Yl(r){so(r,"blur",io)}function np(r){r.hoverState===io&&so(r,"normal",$l)}function O_(r){r.selected=!0}function B_(r){r.selected=!1}function Sc(r,t,e){t(r,e)}function Ft(r,t,e){Sc(r,t,e),r.isGroup&&r.traverse(function(a){Sc(a,t,e)})}function Ys(r,t){switch(t){case"emphasis":r.hoverState=oo;break;case"normal":r.hoverState=$l;break;case"blur":r.hoverState=io;break;case"select":r.selected=!0}}function N_(r,t,e,a){for(var n=r.style,i={},o=0;o=0,i=!1;if(r instanceof De){var o=ep(r),s=n&&o.selectFill||o.normalFill,l=n&&o.selectStroke||o.normalStroke;if(Ur(s)||Ur(l)){a=a||{};var u=a.style||{};u.fill==="inherit"?(i=!0,a=O({},a),u=O({},u),u.fill=s):!Ur(u.fill)&&Ur(s)?(i=!0,a=O({},a),u=O({},u),u.fill=xc(s)):!Ur(u.stroke)&&Ur(l)&&(i||(a=O({},a),u=O({},u)),u.stroke=xc(l)),a.style=u}}if(a&&a.z2==null){i||(a=O({},a));var c=r.z2EmphasisLift;a.z2=r.z2+(c!=null?c:tp)}return a}function z_(r,t,e){if(e&&e.z2==null){e=O({},e);var a=r.z2SelectLift;e.z2=r.z2+(a!=null?a:k_)}return e}function G_(r,t,e){var a=ie(r.currentStates,t)>=0,n=r.style.opacity,i=a?null:N_(r,["opacity"],t,{opacity:1});e=e||{};var o=e.style||{};return o.opacity==null&&(e=O({},e),o=O({opacity:a?n:i.opacity*.1},o),e.style=o),e}function No(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return V_(this,r,t,e);if(r==="blur")return G_(this,r,e);if(r==="select")return z_(this,r,e)}return e}function Zl(r){r.stateProxy=No;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=No),e&&(e.stateProxy=No)}function bc(r,t){!lp(r,t)&&!r.__highByOuter&&Ft(r,rp)}function wc(r,t){!lp(r,t)&&!r.__highByOuter&&Ft(r,ap)}function fa(r,t){r.__highByOuter|=1<<(t||0),Ft(r,rp)}function ha(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&Ft(r,ap)}function F_(r){Ft(r,Yl)}function ip(r){Ft(r,np)}function op(r){Ft(r,O_)}function sp(r){Ft(r,B_)}function lp(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function up(r){var t=r.getModel(),e=[],a=[];t.eachComponent(function(n,i){var o=Ul(i),s=n==="series",l=s?r.getViewOfSeriesModel(i):r.getViewOfComponentModel(i);!s&&a.push(l),o.isBlured&&(l.group.traverse(function(u){np(u)}),s&&e.push(i)),o.isBlured=!1}),S(a,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(e,!1,t)})}function Zs(r,t,e,a){var n=a.getModel();e=e||"coordinateSystem";function i(u,c){for(var f=0;f0){var s={dataIndex:o,seriesIndex:e.seriesIndex};i!=null&&(s.dataType=i),t.push(s)}})}),t}function Ir(r,t,e){Kl(r,!0),Ft(r,Zl),X_(r,t,e)}function Z_(r){Kl(r,!1)}function sr(r,t,e,a){a?Z_(r):Ir(r,t,e)}function X_(r,t,e){var a=q(r);t!=null?(a.focus=t,a.blurScope=e):a.focus&&(a.focus=null)}var Ac=["emphasis","blur","select"],K_={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function va(r,t,e,a){e=e||"itemStyle";for(var n=0;n0){var f=c.duration,v=c.delay,h=c.easing,d={duration:f,delay:v||0,easing:h,done:i,force:!!i||!!o,setToFinal:!u,scope:r,during:o};s?t.animateFrom(e,d):t.animateTo(e,d)}else t.stopAnimation(),!s&&t.attr(e),o&&o(1),i&&i()}function de(r,t,e,a,n,i){ql("update",r,t,e,a,n,i)}function Ie(r,t,e,a,n,i){ql("enter",r,t,e,a,n,i)}function na(r){if(!r.__zr)return!0;for(var t=0;tMath.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function Dc(r){return!r.isGroup}function ox(r){return r.shape!=null}function uo(r,t,e){if(!r||!t)return;function a(o){var s={};return o.traverse(function(l){Dc(l)&&l.anid&&(s[l.anid]=l)}),s}function n(o){var s={x:o.x,y:o.y,rotation:o.rotation};return ox(o)&&(s.shape=O({},o.shape)),s}var i=a(r);t.traverse(function(o){if(Dc(o)&&o.anid){var s=i[o.anid];if(s){var l=n(o);o.attr(n(s)),de(o,l,e,q(o).dataIndex)}}})}function pp(r,t){return N(r,function(e){var a=e[0];a=zi(a,t.x),a=Gi(a,t.x+t.width);var n=e[1];return n=zi(n,t.y),n=Gi(n,t.y+t.height),[a,n]})}function sx(r,t){var e=zi(r.x,t.x),a=Gi(r.x+r.width,t.x+t.width),n=zi(r.y,t.y),i=Gi(r.y+r.height,t.y+t.height);if(a>=e&&i>=n)return{x:e,y:n,width:a-e,height:i-n}}function On(r,t,e){var a=O({rectHover:!0},t),n=a.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(n.image=r.slice(8),K(n,e),new zt(a)):jl(r.replace("path://",""),a,e,"center")}function lx(r,t,e,a,n){for(var i=0,o=n[n.length-1];i1)return!1;var g=Vo(h,d,c,f)/v;return!(g<0||g>1)}function Vo(r,t,e,a){return r*a-e*t}function ux(r){return r<=1e-6&&r>=-1e-6}function Sa(r){var t=r.itemTooltipOption,e=r.componentModel,a=r.itemName,n=G(t)?{formatter:t}:t,i=e.mainType,o=e.componentIndex,s={componentType:i,name:a,$vars:["name"]};s[i+"Index"]=o;var l=r.formatterParamsExtra;l&&S(Le(l),function(c){J(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=q(r.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:a,option:K({content:a,formatterParams:s},n)}}function Ic(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function co(r,t){if(r)if(k(r))for(var e=0;e=0&&s.push(l)}),s}}function hr(r,t){return j(j({},r,!0),t,!0)}const Ax={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:". "}}}},Cx={time:{month:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"],dayOfWeekAbbr:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53CD\u9009"}},toolbox:{brush:{title:{rect:"\u77E9\u5F62\u9009\u62E9",polygon:"\u5708\u9009",lineX:"\u6A2A\u5411\u9009\u62E9",lineY:"\u7EB5\u5411\u9009\u62E9",keep:"\u4FDD\u6301\u9009\u62E9",clear:"\u6E05\u9664\u9009\u62E9"}},dataView:{title:"\u6570\u636E\u89C6\u56FE",lang:["\u6570\u636E\u89C6\u56FE","\u5173\u95ED","\u5237\u65B0"]},dataZoom:{title:{zoom:"\u533A\u57DF\u7F29\u653E",back:"\u533A\u57DF\u7F29\u653E\u8FD8\u539F"}},magicType:{title:{line:"\u5207\u6362\u4E3A\u6298\u7EBF\u56FE",bar:"\u5207\u6362\u4E3A\u67F1\u72B6\u56FE",stack:"\u5207\u6362\u4E3A\u5806\u53E0",tiled:"\u5207\u6362\u4E3A\u5E73\u94FA"}},restore:{title:"\u8FD8\u539F"},saveAsImage:{title:"\u4FDD\u5B58\u4E3A\u56FE\u7247",lang:["\u53F3\u952E\u53E6\u5B58\u4E3A\u56FE\u7247"]}},series:{typeNames:{pie:"\u997C\u56FE",bar:"\u67F1\u72B6\u56FE",line:"\u6298\u7EBF\u56FE",scatter:"\u6563\u70B9\u56FE",effectScatter:"\u6D9F\u6F2A\u6563\u70B9\u56FE",radar:"\u96F7\u8FBE\u56FE",tree:"\u6811\u56FE",treemap:"\u77E9\u5F62\u6811\u56FE",boxplot:"\u7BB1\u578B\u56FE",candlestick:"K\u7EBF\u56FE",k:"K\u7EBF\u56FE",heatmap:"\u70ED\u529B\u56FE",map:"\u5730\u56FE",parallel:"\u5E73\u884C\u5750\u6807\u56FE",lines:"\u7EBF\u56FE",graph:"\u5173\u7CFB\u56FE",sankey:"\u6851\u57FA\u56FE",funnel:"\u6F0F\u6597\u56FE",gauge:"\u4EEA\u8868\u76D8\u56FE",pictorialBar:"\u8C61\u5F62\u67F1\u56FE",themeRiver:"\u4E3B\u9898\u6CB3\u6D41\u56FE",sunburst:"\u65ED\u65E5\u56FE"}},aria:{general:{withTitle:"\u8FD9\u662F\u4E00\u4E2A\u5173\u4E8E\u201C{title}\u201D\u7684\u56FE\u8868\u3002",withoutTitle:"\u8FD9\u662F\u4E00\u4E2A\u56FE\u8868\uFF0C"},series:{single:{prefix:"",withName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\uFF0C\u8868\u793A{seriesName}\u3002",withoutName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\u3002"},multiple:{prefix:"\u5B83\u7531{seriesCount}\u4E2A\u56FE\u8868\u7CFB\u5217\u7EC4\u6210\u3002",withName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A\u8868\u793A{seriesName}\u7684{seriesType}\uFF0C",withoutName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A{seriesType}\uFF0C",separator:{middle:"\uFF1B",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636E\u662F\u2014\u2014",partialData:"\u5176\u4E2D\uFF0C\u524D{displayCnt}\u9879\u662F\u2014\u2014",withName:"{name}\u7684\u6570\u636E\u662F{value}",withoutName:"{value}",separator:{middle:"\uFF0C",end:""}}}};var Fi="ZH",Jl="EN",pn=Jl,wi={},Ql={},xp=me.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return r.indexOf(Fi)>-1?Fi:pn}():pn;function Sp(r,t){r=r.toUpperCase(),Ql[r]=new Se(t),wi[r]=t}function Mx(r){if(G(r)){var t=wi[r.toUpperCase()]||{};return r===Fi||r===Jl?U(t):j(U(t),U(wi[pn]),!1)}else return j(U(r),U(wi[pn]),!1)}function Qs(r){return Ql[r]}function Dx(){return Ql[pn]}Sp(Jl,Ax);Sp(Fi,Cx);var eu=1e3,tu=eu*60,an=tu*60,et=an*24,Oc=et*365,qa={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}"},Un="{yyyy}-{MM}-{dd}",Bc={year:"{yyyy}",month:"{yyyy}-{MM}",day:Un,hour:Un+" "+qa.hour,minute:Un+" "+qa.minute,second:Un+" "+qa.second,millisecond:qa.none},Fo=["year","month","day","hour","minute","second","millisecond"],bp=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function pr(r,t){return r+="","0000".substr(0,t-r.length)+r}function ia(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function Ix(r){return r===ia(r)}function Lx(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function vo(r,t,e,a){var n=wt(r),i=n[ru(e)](),o=n[oa(e)]()+1,s=Math.floor((o-1)/3)+1,l=n[po(e)](),u=n["get"+(e?"UTC":"")+"Day"](),c=n[gn(e)](),f=(c-1)%12+1,v=n[go(e)](),h=n[yo(e)](),d=n[mo(e)](),p=a instanceof Se?a:Qs(a||xp)||Dx(),g=p.getModel("time"),y=g.get("month"),m=g.get("monthAbbr"),_=g.get("dayOfWeek"),x=g.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,i%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[o-1]).replace(/{MMM}/g,m[o-1]).replace(/{MM}/g,pr(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,pr(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,x[u]).replace(/{e}/g,u+"").replace(/{HH}/g,pr(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,pr(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,pr(v,2)).replace(/{m}/g,v+"").replace(/{ss}/g,pr(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,pr(d,3)).replace(/{S}/g,d+"")}function Px(r,t,e,a,n){var i=null;if(G(e))i=e;else if(Z(e))i=e(r.value,t,{level:r.level});else{var o=O({},qa);if(r.level>0)for(var s=0;s=0;--s)if(l[u]){i=l[u];break}i=i||o.none}if(k(i)){var f=r.level==null?0:r.level>=0?r.level:i.length+r.level;f=Math.min(f,i.length-1),i=i[f]}}return vo(new Date(r.value),i,n,a)}function wp(r,t){var e=wt(r),a=e[oa(t)]()+1,n=e[po(t)](),i=e[gn(t)](),o=e[go(t)](),s=e[yo(t)](),l=e[mo(t)](),u=l===0,c=u&&s===0,f=c&&o===0,v=f&&i===0,h=v&&n===1,d=h&&a===1;return d?"year":h?"month":v?"day":f?"hour":c?"minute":u?"second":"millisecond"}function Nc(r,t,e){var a=fe(r)?wt(r):r;switch(t=t||wp(r,e),t){case"year":return a[ru(e)]();case"half-year":return a[oa(e)]()>=6?1:0;case"quarter":return Math.floor((a[oa(e)]()+1)/4);case"month":return a[oa(e)]();case"day":return a[po(e)]();case"half-day":return a[gn(e)]()/24;case"hour":return a[gn(e)]();case"minute":return a[go(e)]();case"second":return a[yo(e)]();case"millisecond":return a[mo(e)]()}}function ru(r){return r?"getUTCFullYear":"getFullYear"}function oa(r){return r?"getUTCMonth":"getMonth"}function po(r){return r?"getUTCDate":"getDate"}function gn(r){return r?"getUTCHours":"getHours"}function go(r){return r?"getUTCMinutes":"getMinutes"}function yo(r){return r?"getUTCSeconds":"getSeconds"}function mo(r){return r?"getUTCMilliseconds":"getMilliseconds"}function Rx(r){return r?"setUTCFullYear":"setFullYear"}function Tp(r){return r?"setUTCMonth":"setMonth"}function Ap(r){return r?"setUTCDate":"setDate"}function Cp(r){return r?"setUTCHours":"setHours"}function Mp(r){return r?"setUTCMinutes":"setMinutes"}function Dp(r){return r?"setUTCSeconds":"setSeconds"}function Ip(r){return r?"setUTCMilliseconds":"setMilliseconds"}function Lp(r){if(!Hd(r))return G(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function Pp(r,t){return r=(r||"").toLowerCase().replace(/-(.)/g,function(e,a){return a.toUpperCase()}),t&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var Bn=D0,Ex=/([&<>"'])/g,kx={"&":"&","<":"<",">":">",'"':""","'":"'"};function Ye(r){return r==null?"":(r+"").replace(Ex,function(t,e){return kx[e]})}function el(r,t,e){var a="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function n(c){return c&&Pn(c)?c:"-"}function i(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=t==="time",s=r instanceof Date;if(o||s){var l=o?wt(r):r;if(isNaN(+l)){if(s)return"-"}else return vo(l,a,e)}if(t==="ordinal")return Ws(r)?n(r):fe(r)&&i(r)?r+"":"-";var u=Oi(r);return i(u)?Lp(u):Ws(r)?n(r):typeof r=="boolean"?r+"":"-"}var Vc=["a","b","c","d","e","f","g"],Wo=function(r,t){return"{"+r+(t==null?"":t)+"}"};function Rp(r,t,e){k(t)||(t=[t]);var a=t.length;if(!a)return"";for(var n=t[0].$vars||[],i=0;i':'';var o=e.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:n==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:a}:{width:10,height:10,borderRadius:5,backgroundColor:a}}}function Br(r,t){return t=t||"transparent",G(r)?r:H(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function zc(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var Ti=S,Ep=["left","right","top","bottom","width","height"],Mr=[["width","left","right"],["height","top","bottom"]];function au(r,t,e,a,n){var i=0,o=0;a==null&&(a=1/0),n==null&&(n=1/0);var s=0;t.eachChild(function(l,u){var c=l.getBoundingRect(),f=t.childAt(u+1),v=f&&f.getBoundingRect(),h,d;if(r==="horizontal"){var p=c.width+(v?-v.x+c.x:0);h=i+p,h>a||l.newline?(i=0,h=p,o+=s+e,s=c.height):s=Math.max(s,c.height)}else{var g=c.height+(v?-v.y+c.y:0);d=o+g,d>n||l.newline?(i+=s+e,o=0,d=g,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),r==="horizontal"?i=h+e:o=d+e)})}var Pr=au;ee(au,"vertical");ee(au,"horizontal");function He(r,t,e){e=Bn(e||0);var a=t.width,n=t.height,i=$(r.left,a),o=$(r.top,n),s=$(r.right,a),l=$(r.bottom,n),u=$(r.width,a),c=$(r.height,n),f=e[2]+e[0],v=e[1]+e[3],h=r.aspect;switch(isNaN(u)&&(u=a-s-v-i),isNaN(c)&&(c=n-l-f-o),h!=null&&(isNaN(u)&&isNaN(c)&&(h>a/n?u=a*.8:c=n*.8),isNaN(u)&&(u=h*c),isNaN(c)&&(c=u/h)),isNaN(i)&&(i=a-s-u-v),isNaN(o)&&(o=n-l-c-f),r.left||r.right){case"center":i=a/2-u/2-e[3];break;case"right":i=a-u-v;break}switch(r.top||r.bottom){case"middle":case"center":o=n/2-c/2-e[0];break;case"bottom":o=n-c-f;break}i=i||0,o=o||0,isNaN(u)&&(u=a-v-i-(s||0)),isNaN(c)&&(c=n-f-o-(l||0));var d=new ge(i+e[3],o+e[0],u,c);return d.margin=e,d}function nu(r,t,e,a,n,i){var o=!n||!n.hv||n.hv[0],s=!n||!n.hv||n.hv[1],l=n&&n.boundingMode||"all";if(i=i||r,i.x=r.x,i.y=r.y,!o&&!s)return!1;var u;if(l==="raw")u=r.type==="group"?new ge(0,0,+t.width||0,+t.height||0):r.getBoundingRect();else if(u=r.getBoundingRect(),r.needLocalTransform()){var c=r.getLocalTransform();u=u.clone(),u.applyTransform(c)}var f=He(K({width:u.width,height:u.height},t),e,a),v=o?f.x-u.x:0,h=s?f.y-u.y:0;return l==="raw"?(i.x=v,i.y=h):(i.x+=v,i.y+=h),i===r&&r.markRedraw(),!0}function Nx(r,t){return r[Mr[t][0]]!=null||r[Mr[t][1]]!=null&&r[Mr[t][2]]!=null}function yn(r){var t=r.layoutMode||r.constructor.layoutMode;return H(t)?t:t?{type:t}:null}function lr(r,t,e){var a=e&&e.ignoreSize;!k(a)&&(a=[a,a]);var n=o(Mr[0],0),i=o(Mr[1],1);u(Mr[0],r,n),u(Mr[1],r,i);function o(c,f){var v={},h=0,d={},p=0,g=2;if(Ti(c,function(_){d[_]=r[_]}),Ti(c,function(_){s(t,_)&&(v[_]=d[_]=t[_]),l(v,_)&&h++,l(d,_)&&p++}),a[f])return l(t,c[1])?d[c[2]]=null:l(t,c[2])&&(d[c[1]]=null),d;if(p===g||!h)return d;if(h>=g)return v;for(var y=0;y=0;l--)s=j(s,n[l],!0);a.defaultOption=s}return a.defaultOption},t.prototype.getReferringComponents=function(e,a){var n=e+"Index",i=e+"Id";return kn(this.ecModel,e,{index:this.get(n,!0),id:this.get(i,!0)},a)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0}(),t}(Se);Qd(Aa,Se);no(Aa);wx(Aa);Tx(Aa,zx);function zx(r){var t=[];return S(Aa.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=N(t,function(e){return xt(e).main}),r!=="dataset"&&ie(t,"dataset")<=0&&t.unshift("dataset"),t}const te=Aa;var Op="";typeof navigator<"u"&&(Op=navigator.platform||"");var $r="rgba(0, 0, 0, 0.2)";const Gx={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:$r,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:$r,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:$r,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:$r,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:$r,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:$r,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Op.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 Bp=W(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),it="original",Ue="arrayRows",gt="objectRows",Ct="keyedColumns",nr="typedArray",Np="unknown",Bt="column",Ca="row",Pe={Must:1,Might:2,Not:3},Vp=ne();function Fx(r){Vp(r).datasetMap=W()}function Wx(r,t,e){var a={},n=iu(t);if(!n||!r)return a;var i=[],o=[],s=t.ecModel,l=Vp(s).datasetMap,u=n.uid+"_"+e.seriesLayoutBy,c,f;r=r.slice(),S(r,function(p,g){var y=H(p)?p:r[g]={name:p};y.type==="ordinal"&&c==null&&(c=g,f=d(y)),a[y.name]=[]});var v=l.get(u)||l.set(u,{categoryWayDim:f,valueWayDim:0});S(r,function(p,g){var y=p.name,m=d(p);if(c==null){var _=v.valueWayDim;h(a[y],_,m),h(o,_,m),v.valueWayDim+=m}else if(c===g)h(a[y],0,m),h(i,0,m);else{var _=v.categoryWayDim;h(a[y],_,m),h(o,_,m),v.categoryWayDim+=m}});function h(p,g,y){for(var m=0;mt)return r[a];return r[e-1]}function Wp(r,t,e,a,n,i,o){i=i||r;var s=t(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(n))return u[n];var c=o==null||!a?e:Zx(a,o);if(c=c||e,!(!c||!c.length)){var f=c[l];return n&&(u[n]=f),s.paletteIdx=(l+1)%c.length,f}}function Xx(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var $n,Pa,Wc,Hc="\0_ec_inner",Kx=1,Hp=function(r){P(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e,a,n,i,o,s){i=i||{},this.option=null,this._theme=new Se(i),this._locale=new Se(o),this._optionManager=s},t.prototype.setOption=function(e,a,n){var i=Yc(a);this._optionManager.setOption(e,n,i),this._resetOption(null,i)},t.prototype.resetOption=function(e,a){return this._resetOption(e,Yc(a))},t.prototype._resetOption=function(e,a){var n=!1,i=this._optionManager;if(!e||e==="recreate"){var o=i.mountOption(e==="recreate");!this.option||e==="recreate"?Wc(this,o):(this.restoreData(),this._mergeOption(o,a)),n=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var s=i.getTimelineOption(this);s&&(n=!0,this._mergeOption(s,a))}if(!e||e==="recreate"||e==="media"){var l=i.getMediaOption(this);l.length&&S(l,function(u){n=!0,this._mergeOption(u,a)},this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,a){var n=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=W(),u=a&&a.replaceMergeMainTypeMap;Fx(this),S(e,function(f,v){f!=null&&(te.hasClass(v)?v&&(s.push(v),l.set(v,!0)):n[v]=n[v]==null?U(f):j(n[v],f,!0))}),u&&u.each(function(f,v){te.hasClass(v)&&!l.get(v)&&(s.push(v),l.set(v,!0))}),te.topologicalTravel(s,te.getAllClassMainTypes(),c,this);function c(f){var v=$x(this,f,le(e[f])),h=i.get(f),d=h?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",p=Xd(h,v,d);p_(p,f,te),n[f]=null,i.set(f,null),o.set(f,0);var g=[],y=[],m=0,_;S(p,function(x,w){var b=x.existing,T=x.newOption;if(!T)b&&(b.mergeOption({},this),b.optionUpdated({},!1));else{var A=f==="series",C=te.getClass(f,x.keyInfo.subType,!A);if(!C)return;if(f==="tooltip"){if(_)return;_=!0}if(b&&b.constructor===C)b.name=x.keyInfo.name,b.mergeOption(T,this),b.optionUpdated(T,!1);else{var D=O({componentIndex:w},x.keyInfo);b=new C(T,this,this,D),O(b,D),x.brandNew&&(b.__requireNewView=!0),b.init(T,this,this),b.optionUpdated(null,!0)}}b?(g.push(b.option),y.push(b),m++):(g.push(void 0),y.push(void 0))},this),n[f]=g,i.set(f,y),o.set(f,m),f==="series"&&$n(this)}this._seriesIndices||$n(this)},t.prototype.getOption=function(){var e=U(this.option);return S(e,function(a,n){if(te.hasClass(n)){for(var i=le(a),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!hn(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,e[n]=i}}),delete e[Hc],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,a){var n=this._componentsMap.get(e);if(n){var i=n[a||0];if(i)return i;if(a==null){for(var o=0;o=t:e==="max"?r<=t:r===t}function oS(r,t){return r.join(",")===t.join(",")}const sS=rS;var st=S,mn=H,Zc=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Uo(r){var t=r&&r.itemStyle;if(!!t)for(var e=0,a=Zc.length;e=0;g--){var y=r[g];if(s||(d=y.data.rawIndexOf(y.stackedByDimension,h)),d>=0){var m=y.data.getByRawIndex(y.stackResultDimension,d);if(l==="all"||l==="positive"&&m>0||l==="negative"&&m<0||l==="samesign"&&v>=0&&m>0||l==="samesign"&&v<=0&&m<0){v=n_(v,m),p=m;break}}}return a[0]=v,a[1]=p,a})})}var _o=function(){function r(t){this.data=t.data||(t.sourceFormat===Ct?{}:[]),this.sourceFormat=t.sourceFormat||Np,this.seriesLayoutBy=t.seriesLayoutBy||Bt,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var a=0;ap&&(p=_)}h[0]=d,h[1]=p}},n=function(){return this._data?this._data.length/this._dimSize:0};ef=(t={},t[Ue+"_"+Bt]={pure:!0,appendData:i},t[Ue+"_"+Ca]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[gt]={pure:!0,appendData:i},t[Ct]={pure:!0,appendData:function(o){var s=this._data;S(o,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},t[it]={appendData:i},t[nr]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function i(o){for(var s=0;s=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},r.prototype.getRawValue=function(t,e){return da(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,a){},r}();function nf(r){var t,e;return H(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function nn(r){return new TS(r)}var TS=function(){function r(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return r.prototype.perform=function(t){var e=this._upstream,a=t&&t.skip;if(this._dirty&&e){var n=this.context;n.data=n.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!a&&(i=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(i="reset");function c(m){return!(m>=1)&&(m=1),m}var f;(this._dirty||i==="reset")&&(this._dirty=!1,f=this._doReset(a)),this._modBy=l,this._modDataCount=u;var v=t&&t.step;if(e?this._dueEnd=e._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,d=Math.min(v!=null?this._dueIndex+v:1/0,this._dueEnd);if(!a&&(f||h1&&a>0?s:o}};return i;function o(){return t=r?null:ln?-this._resultLT:0},r}(),CS=function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(t){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(t){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(t,e){},r.prototype.retrieveValueFromItem=function(t,e){},r.prototype.convertValue=function(t,e){return Ai(t,e)},r}();function MS(r,t){var e=new CS,a=r.data,n=e.sourceFormat=r.sourceFormat,i=r.startIndex,o="";r.seriesLayoutBy!==Bt&&Ge(o);var s=[],l={},u=r.dimensionsDefine;if(u)S(u,function(p,g){var y=p.name,m={index:g,name:y,displayName:p.displayName};if(s.push(m),y!=null){var _="";J(l,y)&&Ge(_),l[y]=m}});else for(var c=0;c65535?OS:BS}function Yr(){return[1/0,-1/0]}function NS(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function lf(r,t,e,a,n){var i=ag[e||"float"];if(n){var o=r[t],s=o&&o.length;if(s!==a){for(var l=new i(a),u=0;ug[1]&&(g[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(t,e,a){for(var n=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=N(o,function(m){return m.property}),c=0;cy[1]&&(y[1]=g)}}!n.persistent&&n.clean&&n.clean(),this._rawCount=this._count=e,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(t,e){if(!(e>=0&&e=0&&e=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,a=e[t];if(a!=null&&at)i=o-1;else return o}return-1},r.prototype.indicesOfNearest=function(t,e,a){var n=this._chunks,i=n[t],o=[];if(!i)return o;a==null&&(a=1/0);for(var s=1/0,l=-1,u=0,c=0,f=this.count();c=0&&l<0)&&(s=d,l=h,u=0),h===l&&(o[u++]=c))}return o.length=u,o},r.prototype.getIndices=function(){var t,e=this._indices;if(e){var a=e.constructor,n=this._count;if(a===Array){t=new a(n);for(var i=0;i=f&&m<=v||isNaN(m))&&(l[u++]=p),p++}d=!0}else if(i===2){for(var g=h[n[0]],_=h[n[1]],x=t[n[1]][0],w=t[n[1]][1],y=0;y=f&&m<=v||isNaN(m))&&(b>=x&&b<=w||isNaN(b))&&(l[u++]=p),p++}d=!0}}if(!d)if(i===1)for(var y=0;y=f&&m<=v||isNaN(m))&&(l[u++]=T)}else for(var y=0;yt[D][1])&&(A=!1)}A&&(l[u++]=e.getRawIndex(y))}return uy[1]&&(y[1]=g)}}}},r.prototype.lttbDownSample=function(t,e){var a=this.clone([t],!0),n=a._chunks,i=n[t],o=this.count(),s=0,l=Math.floor(1/e),u=this.getRawIndex(0),c,f,v,h=new(Ea(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var d=1;dc&&(c=f,v=x)}M>0&&Mc-d&&(l=c-d,s.length=l);for(var p=0;pf[1]&&(f[1]=y),v[h++]=m}return i._count=h,i._indices=v,i._updateGetRawIdx(),i},r.prototype.each=function(t,e){if(!!this._count)for(var a=t.length,n=this._chunks,i=0,o=this.count();il&&(l=f)}return o=[s,l],this._extent[t]=o,o},r.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var a=[],n=this._chunks,i=0;i=0?this._indices[t]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function t(e,a,n,i){return Ai(e[i],this._dimensions[i])}Zo={arrayRows:t,objectRows:function(e,a,n,i){return Ai(e[a],this._dimensions[i])},keyedColumns:t,original:function(e,a,n,i){var o=e&&(e.value==null?e:e.value);return Ai(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(e,a,n,i){return e[i]}}}(),r}(),VS=function(){function r(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,e=this._getUpstreamSourceManagers(),a=!!e.length,n,i;if(Yn(t)){var o=t,s=void 0,l=void 0,u=void 0;if(a){var c=e[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,i=[c._getVersionSign()]}else s=o.get("data",!0),l=at(s)?nr:it,i=[];var f=this._getSourceMetaRawOption()||{},v=u&&u.metaRawOption||{},h=ve(f.seriesLayoutBy,v.seriesLayoutBy)||null,d=ve(f.sourceHeader,v.sourceHeader),p=ve(f.dimensions,v.dimensions),g=h!==v.seriesLayoutBy||!!d!=!!v.sourceHeader||p;n=g?[rl(s,{seriesLayoutBy:h,sourceHeader:d,dimensions:p},l)]:[]}else{var y=t;if(a){var m=this._applyTransform(e);n=m.sourceList,i=m.upstreamSignList}else{var _=y.get("source",!0);n=[rl(_,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(n,i)},r.prototype._applyTransform=function(t){var e=this._sourceHost,a=e.get("transform",!0),n=e.get("fromTransformResult",!0);if(n!=null){var i="";t.length!==1&&uf(i)}var o,s=[],l=[];return S(t,function(u){u.prepareSource();var c=u.getSource(n||0),f="";n!=null&&!c&&uf(f),s.push(c),l.push(u._getVersionSign())}),a?o=ES(a,s,{datasetIndex:e.componentIndex}):n!=null&&(o=[yS(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e1||e>0&&!r.noHeader;return S(r.blocks,function(n){var i=sg(n);i>=t&&(t=i+ +(a&&(!i||nl(n)&&!n.noHeader)))}),t}return 0}function FS(r,t,e,a){var n=t.noHeader,i=HS(sg(t)),o=[],s=t.blocks||[];tt(!s||k(s)),s=s||[];var l=r.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(J(u,l)){var c=new AS(u[l],null);s.sort(function(d,p){return c.evaluate(d.sortParam,p.sortParam)})}else l==="seriesDesc"&&s.reverse()}S(s,function(d,p){var g=t.valueFormatter,y=og(d)(g?O(O({},r),{valueFormatter:g}):r,d,p>0?i.html:0,a);y!=null&&o.push(y)});var f=r.renderMode==="richText"?o.join(i.richText):il(o.join(""),n?e:i.html);if(n)return f;var v=el(t.header,"ordinal",r.useUTC),h=ig(a,r.renderMode).nameStyle;return r.renderMode==="richText"?lg(r,v,h)+i.richText+f:il('
'+Ye(v)+"
"+f,e)}function WS(r,t,e,a){var n=r.renderMode,i=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=r.useUTC,c=t.valueFormatter||r.valueFormatter||function(x){return x=k(x)?x:[x],N(x,function(w,b){return el(w,k(h)?h[b]:h,u)})};if(!(i&&o)){var f=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",n),v=i?"":el(l,"ordinal",u),h=t.valueType,d=o?[]:c(t.value),p=!s||!i,g=!s&&i,y=ig(a,n),m=y.nameStyle,_=y.valueStyle;return n==="richText"?(s?"":f)+(i?"":lg(r,v,m))+(o?"":YS(r,d,p,g,_)):il((s?"":f)+(i?"":US(v,!s,m))+(o?"":$S(d,p,g,_)),e)}}function cf(r,t,e,a,n,i){if(!!r){var o=og(r),s={useUTC:n,renderMode:e,orderMode:a,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function HS(r){return{html:zS[r],richText:GS[r]}}function il(r,t){var e='
',a="margin: "+t+"px 0 0";return'
'+r+e+"
"}function US(r,t,e){var a=t?"margin-left:2px":"";return''+Ye(r)+""}function $S(r,t,e,a){var n=e?"10px":"20px",i=t?"float:right;margin-left:"+n:"";return r=k(r)?r:[r],''+N(r,function(o){return Ye(o)}).join("  ")+""}function lg(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function YS(r,t,e,a,n){var i=[n],o=a?10:20;return e&&i.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(k(t)?t.join(" "):t,i)}function ug(r,t){var e=r.getData().getItemVisual(t,"style"),a=e[r.visualDrawType];return Br(a)}function cg(r,t){var e=r.get("padding");return e!=null?e:t==="richText"?[8,10]:10}var Xo=function(){function r(){this.richTextStyles={},this._nextStyleNameId=Ud()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,a){var n=a==="richText"?this._generateStyleName():null,i=Bx({color:e,type:t,renderMode:a,markerId:n});return G(i)?i:(this.richTextStyles[n]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(t,e){var a={};k(e)?S(e,function(i){return O(a,i)}):O(a,e);var n=this._generateStyleName();return this.richTextStyles[n]=a,"{"+n+"|"+t+"}"},r}();function ZS(r){var t=r.series,e=r.dataIndex,a=r.multipleSeries,n=t.getData(),i=n.mapDimensionsAll("defaultedTooltip"),o=i.length,s=t.getRawValue(e),l=k(s),u=ug(t,e),c,f,v,h;if(o>1||l&&!o){var d=XS(s,t,e,i,u);c=d.inlineValues,f=d.inlineValueTypes,v=d.blocks,h=d.inlineValues[0]}else if(o){var p=n.getDimensionInfo(i[0]);h=c=da(n,e,i[0]),f=p.type}else h=c=l?s[0]:s;var g=Fl(t),y=g&&t.name||"",m=n.getName(e),_=a?y:m;return Tt("section",{header:y,noHeader:a||!g,sortParam:h,blocks:[Tt("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Pn(_),value:c,valueType:f})].concat(v||[])})}function XS(r,t,e,a,n){var i=t.getData(),o=la(r,function(f,v,h){var d=i.getDimensionInfo(h);return f=f||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];a.length?S(a,function(f){c(da(i,e,f),f)}):S(r,c);function c(f,v){var h=i.getDimensionInfo(v);!h||h.otherDims.tooltip===!1||(o?u.push(Tt("nameValue",{markerType:"subItem",markerColor:n,name:h.displayName,value:f,valueType:h.type})):(s.push(f),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Xt=ne();function Zn(r,t){return r.getName(t)||r.getId(t)}var Ci="__universalTransitionEnabled",So=function(r){P(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return t.prototype.init=function(e,a,n){this.seriesIndex=this.componentIndex,this.dataTask=nn({count:qS,reset:jS}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n);var i=Xt(this).sourceManager=new VS(this);i.prepareSource();var o=this.getInitialData(e,n);hf(o,this),this.dataTask.context.data=o,Xt(this).dataBeforeProcessed=o,ff(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,a){var n=yn(this),i=n?Ta(e):{},o=this.subType;te.hasClass(o)&&(o+="Series"),j(e,a.getTheme().get(this.subType)),j(e,this.getDefaultOption()),Bi(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&lr(e,i,n)},t.prototype.mergeOption=function(e,a){e=j(this.option,e,!0),this.fillDataTextStyle(e.data);var n=yn(this);n&&lr(this.option,e,n);var i=Xt(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(e,a);hf(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Xt(this).dataBeforeProcessed=o,ff(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!at(e))for(var a=["show"],n=0;nthis.getShallow("animationThreshold")&&(a=!1),!!a},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,a,n){var i=this.ecModel,o=ou.prototype.getColorFromPalette.call(this,e,a,n);return o||(o=i.getColorFromPalette(e,a,n)),o},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,a){this._innerSelect(this.getData(a),e)},t.prototype.unselect=function(e,a){var n=this.option.selectedMap;if(!!n){var i=this.option.selectedMode,o=this.getData(a);if(i==="series"||n==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&n.push(o)}return n},t.prototype.isSelected=function(e,a){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(a);return(n==="all"||n[Zn(i,e)])&&!i.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[Ci])return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,a){var n,i,o=this.option,s=o.selectedMode,l=a.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){H(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c0&&this._innerSelect(e,a)}},t.registerClass=function(e){return te.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"}(),t}(te);Xe(So,eg);Xe(So,ou);Qd(So,te);function ff(r){var t=r.name;Fl(r)||(r.name=KS(r)||t)}function KS(r){var t=r.getRawData(),e=t.mapDimensionsAll("seriesName"),a=[];return S(e,function(n){var i=t.getDimensionInfo(n);i.displayName&&a.push(i.displayName)}),a.join(" ")}function qS(r){return r.model.getRawData().count()}function jS(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),JS}function JS(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function hf(r,t){S(I0(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,ee(QS,t))})}function QS(r,t){var e=ol(r);return e&&e.setOutputEnd((t||this).count()),t}function ol(r){var t=(r.ecModel||{}).scheduler,e=t&&t.getPipeline(r.uid);if(e){var a=e.currentTask;if(a){var n=a.agentStubMap;n&&(a=n.get(r.uid))}return a}}const dt=So;var hu=function(){function r(){this.group=new Q,this.uid=wa("viewComponent")}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,a,n){},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,a,n){},r.prototype.updateLayout=function(t,e,a,n){},r.prototype.updateVisual=function(t,e,a,n){},r.prototype.toggleBlurSeries=function(t,e,a){},r.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},r}();Hl(hu);no(hu);const Ae=hu;function vu(){var r=ne();return function(t){var e=r(t),a=t.pipelineContext,n=!!e.large,i=!!e.progressiveRender,o=e.large=!!(a&&a.large),s=e.progressiveRender=!!(a&&a.progressiveRender);return(n!==o||i!==s)&&"reset"}}var fg=ne(),e1=vu(),du=function(){function r(){this.group=new Q,this.uid=wa("viewChart"),this.renderTask=nn({plan:t1,reset:r1}),this.renderTask.context={view:this}}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,a,n){},r.prototype.highlight=function(t,e,a,n){var i=t.getData(n&&n.dataType);!i||df(i,n,"emphasis")},r.prototype.downplay=function(t,e,a,n){var i=t.getData(n&&n.dataType);!i||df(i,n,"normal")},r.prototype.remove=function(t,e){this.group.removeAll()},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,a,n){this.render(t,e,a,n)},r.prototype.updateLayout=function(t,e,a,n){this.render(t,e,a,n)},r.prototype.updateVisual=function(t,e,a,n){this.render(t,e,a,n)},r.prototype.eachRendered=function(t){co(this.group,t)},r.markUpdateMethod=function(t,e){fg(t).updateMethod=e},r.protoInitialize=function(){var t=r.prototype;t.type="chart"}(),r}();function vf(r,t,e){r&&Ks(r)&&(t==="emphasis"?fa:ha)(r,e)}function df(r,t,e){var a=Or(r,t),n=t&&t.highlightKey!=null?j_(t.highlightKey):null;a!=null?S(le(a),function(i){vf(r.getItemGraphicEl(i),e,n)}):r.eachItemGraphicEl(function(i){vf(i,e,n)})}Hl(du);no(du);function t1(r){return e1(r.model)}function r1(r){var t=r.model,e=r.ecModel,a=r.api,n=r.payload,i=t.pipelineContext.progressiveRender,o=r.view,s=n&&fg(n).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,e,a,n),a1[l]}var a1={incrementalPrepareRender:{progress:function(r,t){t.view.incrementalRender(r,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(r,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};const Fe=du;var Wi="\0__throttleOriginMethod",pf="\0__throttleRate",gf="\0__throttleType";function pu(r,t,e){var a,n=0,i=0,o=null,s,l,u,c;t=t||0;function f(){i=new Date().getTime(),o=null,r.apply(l,u||[])}var v=function(){for(var h=[],d=0;d=0?f():o=setTimeout(f,-s),n=a};return v.clear=function(){o&&(clearTimeout(o),o=null)},v.debounceNextCall=function(h){c=h},v}function Nn(r,t,e,a){var n=r[t];if(!!n){var i=n[Wi]||n,o=n[gf],s=n[pf];if(s!==e||o!==a){if(e==null||!a)return r[t]=i;n=r[t]=pu(i,e,a==="debounce"),n[Wi]=i,n[gf]=a,n[pf]=e}return n}}function _n(r,t){var e=r[t];e&&e[Wi]&&(e.clear&&e.clear(),r[t]=e[Wi])}var yf=ne(),mf={itemStyle:ca(_p,!0),lineStyle:ca(mp,!0)},n1={lineStyle:"stroke",itemStyle:"fill"};function hg(r,t){var e=r.visualStyleMapper||mf[t];return e||(console.warn("Unkown style type '"+t+"'."),mf.itemStyle)}function vg(r,t){var e=r.visualDrawType||n1[t];return e||(console.warn("Unkown style type '"+t+"'."),"fill")}var i1={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=r.getModel(a),i=hg(r,a),o=i(n),s=n.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var l=vg(r,a),u=o[l],c=Z(u)?u:null,f=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||f){var v=r.getColorFromPalette(r.name,null,t.getSeriesCount());o[l]||(o[l]=v,e.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||Z(o.fill)?v:o.fill,o.stroke=o.stroke==="auto"||Z(o.stroke)?v:o.stroke}if(e.setVisual("style",o),e.setVisual("drawType",l),!t.isSeriesFiltered(r)&&c)return e.setVisual("colorFromPalette",!1),{dataEach:function(h,d){var p=r.getDataParams(d),g=O({},o);g[l]=c(p),h.setItemVisual(d,"style",g)}}}},ka=new Se,o1={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=hg(r,a),i=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[a]){ka.option=l[a];var u=n(ka),c=o.ensureUniqueItemVisual(s,"style");O(c,u),ka.option.decal&&(o.setItemVisual(s,"decal",ka.option.decal),ka.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},s1={performRawSeries:!0,overallReset:function(r){var t=W();r.eachSeries(function(e){var a=e.getColorBy();if(!e.isColorBySeries()){var n=e.type+"-"+a,i=t.get(n);i||(i={},t.set(n,i)),yf(e).scope=i}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var a=e.getRawData(),n={},i=e.getData(),o=yf(e).scope,s=e.visualStyleAccessPath||"itemStyle",l=vg(e,s);i.each(function(u){var c=i.getRawIndex(u);n[c]=u}),a.each(function(u){var c=n[u],f=i.getItemVisual(c,"colorFromPalette");if(f){var v=i.ensureUniqueItemVisual(c,"style"),h=a.getName(u)||u+"",d=a.count();v[l]=e.getColorFromPalette(h,o,d)}})}})}},Xn=Math.PI;function l1(r,t){t=t||{},K(t,{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 e=new Q,a=new oe({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(a);var n=new ae({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),i=new oe({style:{fill:"none"},textContent:n,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});e.add(i);var o;return t.showSpinner&&(o=new Vl({shape:{startAngle:-Xn/2,endAngle:-Xn/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Xn*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Xn*3/2}).delay(300).start("circularInOut"),e.add(o)),e.resize=function(){var s=n.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(r.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),c=r.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:c}),i.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),a.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},e.resize(),e}var u1=function(){function r(t,e,a,n){this._stageTaskMap=W(),this.ecInstance=t,this.api=e,a=this._dataProcessorHandlers=a.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=a.concat(n)}return r.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(a){var n=a.overallTask;n&&n.dirty()})},r.prototype.getPerformArgs=function(t,e){if(!!t.__pipeline){var a=this._pipelineMap.get(t.__pipeline.id),n=a.context,i=!e&&a.progressiveEnabled&&(!n||n.progressiveRender)&&t.__idxInPipeline>a.blockIndex,o=i?a.step:null,s=n&&n.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},r.prototype.updateStreamModes=function(t,e){var a=this._pipelineMap.get(t.uid),n=t.getData(),i=n.count(),o=a.progressiveEnabled&&e.incrementalPrepareRender&&i>=a.threshold,s=t.get("large")&&i>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?i:null;t.pipelineContext=a.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(t){var e=this,a=e._pipelineMap=W();t.eachSeries(function(n){var i=n.getProgressive(),o=n.uid;a.set(o,{id:o,head:null,tail:null,threshold:n.getProgressiveThreshold(),progressiveEnabled:i&&!(n.preventIncremental&&n.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(n,n.dataTask)})},r.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),a=this.api;S(this._allHandlers,function(n){var i=t.get(n.uid)||t.set(n.uid,{}),o="";tt(!(n.reset&&n.overallReset),o),n.reset&&this._createSeriesStageTask(n,i,e,a),n.overallReset&&this._createOverallStageTask(n,i,e,a)},this)},r.prototype.prepareView=function(t,e,a,n){var i=t.renderTask,o=i.context;o.model=e,o.ecModel=a,o.api=n,i.__block=!t.incrementalPrepareRender,this._pipe(e,i)},r.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},r.prototype.performVisualTasks=function(t,e,a){this._performStageTasks(this._visualHandlers,t,e,a)},r.prototype._performStageTasks=function(t,e,a,n){n=n||{};var i=!1,o=this;S(t,function(l,u){if(!(n.visualType&&n.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),f=c.seriesTaskMap,v=c.overallTask;if(v){var h,d=v.agentStubMap;d.each(function(g){s(n,g)&&(g.dirty(),h=!0)}),h&&v.dirty(),o.updatePayload(v,a);var p=o.getPerformArgs(v,n.block);d.each(function(g){g.perform(p)}),v.perform(p)&&(i=!0)}else f&&f.each(function(g,y){s(n,g)&&g.dirty();var m=o.getPerformArgs(g,n.block);m.skip=!l.performRawSeries&&e.isSeriesFiltered(g.context.model),o.updatePayload(g,a),g.perform(m)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},r.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(a){e=a.dataTask.perform()||e}),this.unfinished=e||this.unfinished},r.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)})},r.prototype.updatePayload=function(t,e){e!=="remain"&&(t.context.payload=e)},r.prototype._createSeriesStageTask=function(t,e,a,n){var i=this,o=e.seriesTaskMap,s=e.seriesTaskMap=W(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?a.eachRawSeries(c):l?a.eachRawSeriesByType(l,c):u&&u(a,n).each(c);function c(f){var v=f.uid,h=s.set(v,o&&o.get(v)||nn({plan:d1,reset:p1,count:y1}));h.context={model:f,ecModel:a,api:n,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(f,h)}},r.prototype._createOverallStageTask=function(t,e,a,n){var i=this,o=e.overallTask=e.overallTask||nn({reset:c1});o.context={ecModel:a,api:n,overallReset:t.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=W(),u=t.seriesType,c=t.getTargetSeries,f=!0,v=!1,h="";tt(!t.createOnAllSeries,h),u?a.eachRawSeriesByType(u,d):c?c(a,n).each(d):(f=!1,S(a.getSeries(),d));function d(p){var g=p.uid,y=l.set(g,s&&s.get(g)||(v=!0,nn({reset:f1,onDirty:v1})));y.context={model:p,overallProgress:f},y.agent=o,y.__block=f,i._pipe(p,y)}v&&o.dirty()},r.prototype._pipe=function(t,e){var a=t.uid,n=this._pipelineMap.get(a);!n.head&&(n.head=e),n.tail&&n.tail.pipe(e),n.tail=e,e.__idxInPipeline=n.count++,e.__pipeline=n},r.wrapStageHandler=function(t,e){return Z(t)&&(t={overallReset:t,seriesType:m1(t)}),t.uid=wa("stageHandler"),e&&(t.visualType=e),t},r}();function c1(r){r.overallReset(r.ecModel,r.api,r.payload)}function f1(r){return r.overallProgress&&h1}function h1(){this.agent.dirty(),this.getDownstream().dirty()}function v1(){this.agent&&this.agent.dirty()}function d1(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function p1(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=le(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?N(t,function(e,a){return dg(a)}):g1}var g1=dg(0);function dg(r){return function(t,e){var a=e.data,n=e.resetDefines[r];if(n&&n.dataEach)for(var i=t.start;i0&&h===u.length-v.length){var d=u.slice(0,h);d!=="data"&&(e.mainType=d,e[v.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(a[u]=l,c=!0),c||(n[u]=l)})}return{cptQuery:e,dataQuery:a,otherQuery:n}},r.prototype.filter=function(t,e){var a=this.eventInfo;if(!a)return!0;var n=a.targetEl,i=a.packedEvent,o=a.model,s=a.view;if(!o||!s)return!0;var l=e.cptQuery,u=e.dataQuery;return c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,i,"name")&&c(u,i,"dataIndex")&&c(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,n,i));function c(f,v,h,d){return f[h]==null||v[d||h]===f[h]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),sl=["symbol","symbolSize","symbolRotate","symbolOffset"],bf=sl.concat(["symbolKeepAspect"]),b1={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData();if(r.legendIcon&&e.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var a={},n={},i=!1,o=0;o0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,a,n){if(!this[Re]){if(this._disposed){this.id;return}var i,o,s;if(H(a)&&(n=a.lazyUpdate,i=a.silent,o=a.replaceMerge,s=a.transition,a=a.notMerge),this[Re]=!0,!this._model||a){var l=new sS(this._api),u=this._theme,c=this._model=new Up;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(e,{replaceMerge:o},ul);var f={seriesTransition:s,optionChanged:!0};if(n)this[ze]={silent:i,updateParams:f},this[Re]=!1,this.getZr().wakeUp();else{try{Xr(this),Kt.update.call(this,null,f)}catch(v){throw this[ze]=null,this[Re]=!1,v}this._ssr||this._zr.flush(),this[ze]=null,this[Re]=!1,Oa.call(this,i),Ba.call(this,i)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||G1&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var a=this._zr.painter;return a.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var a=this._zr.painter;return a.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(!!me.svgSupported){var e=this._zr,a=e.storage.getDisplayList();return S(a,function(n){n.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e=e||{};var a=e.excludeComponents,n=this._model,i=[],o=this;S(a,function(l){n.eachComponent({mainType:l},function(u){var c=o._componentsMap[u.__viewId];c.group.ignore||(i.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return S(i,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var a=e.type==="svg",n=this.group,i=Math.min,o=Math.max,s=1/0;if(Rf[n]){var l=s,u=s,c=-s,f=-s,v=[],h=e&&e.pixelRatio||this.getDevicePixelRatio();S(sn,function(_,x){if(_.group===n){var w=a?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(U(e)),b=_.getDom().getBoundingClientRect();l=i(b.left,l),u=i(b.top,u),c=o(b.right,c),f=o(b.bottom,f),v.push({dom:w,left:b.left,top:b.top})}}),l*=h,u*=h,c*=h,f*=h;var d=c-l,p=f-u,g=Ed.createCanvas(),y=ic(g,{renderer:a?"svg":"canvas"});if(y.resize({width:d,height:p}),a){var m="";return S(v,function(_){var x=_.left-l,w=_.top-u;m+=''+_.dom+""}),y.painter.getSvgRoot().innerHTML=m,e.connectedBackgroundColor&&y.painter.setBackgroundColor(e.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return e.connectedBackgroundColor&&y.add(new oe({shape:{x:0,y:0,width:d,height:p},style:{fill:e.connectedBackgroundColor}})),S(v,function(_){var x=new zt({style:{x:_.left*h-l,y:_.top*h-u,image:_.dom}});y.add(x)}),y.refreshImmediately(),g.toDataURL("image/"+(e&&e.type||"png"))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,a){return Qo(this,"convertToPixel",e,a)},t.prototype.convertFromPixel=function(e,a){return Qo(this,"convertFromPixel",e,a)},t.prototype.containPixel=function(e,a){if(this._disposed){this.id;return}var n=this._model,i,o=en(n,e);return S(o,function(s,l){l.indexOf("Models")>=0&&S(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)i=i||!!c.containPoint(a);else if(l==="seriesModels"){var f=this._chartsMap[u.__viewId];f&&f.containPoint&&(i=i||f.containPoint(a,u))}},this)},this),!!i},t.prototype.getVisual=function(e,a){var n=this._model,i=en(n,e,{defaultMainType:"series"}),o=i.seriesModel,s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?_g(s,l,a):xg(s,a)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;S(tb,function(a){var n=function(i){var o=e.getModel(),s=i.target,l,u=a==="globalout";if(u?l={}:s&&aa(s,function(d){var p=q(d);if(p&&p.dataIndex!=null){var g=p.dataModel||o.getSeriesByIndex(p.seriesIndex);return l=g&&g.getDataParams(p.dataIndex,p.dataType)||{},!0}else if(p.eventData)return l=O({},p.eventData),!0},!0),l){var c=l.componentType,f=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",f=l.seriesIndex);var v=c&&f!=null&&o.getComponent(c,f),h=v&&e[v.mainType==="series"?"_chartsMap":"_componentsMap"][v.__viewId];l.event=i,l.type=a,e._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:v,view:h},e.trigger(a,l)}};n.zrEventfulCallAtLast=!0,e._zr.on(a,n,e)}),S(on,function(a,n){e._messageCenter.on(n,function(i){this.trigger(n,i)},e)}),S(["selectchanged"],function(a){e._messageCenter.on(a,function(n){this.trigger(a,n)},e)}),A1(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var e=this.getDom();e&&qd(this.getDom(),_u,"");var a=this,n=a._api,i=a._model;S(a._componentsViews,function(o){o.dispose(i,n)}),S(a._chartsViews,function(o){o.dispose(i,n)}),a._zr.dispose(),a._dom=a._model=a._chartsMap=a._componentsMap=a._chartsViews=a._componentsViews=a._scheduler=a._api=a._zr=a._throttledZrFlush=a._theme=a._coordSysMgr=a._messageCenter=null,delete sn[a.id]},t.prototype.resize=function(e){if(!this[Re]){if(this._disposed){this.id;return}this._zr.resize(e);var a=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!a){var n=a.resetOption("media"),i=e&&e.silent;this[ze]&&(i==null&&(i=this[ze].silent),n=!0,this[ze]=null),this[Re]=!0;try{n&&Xr(this),Kt.update.call(this,{type:"resize",animation:O({duration:0},e&&e.animation)})}catch(o){throw this[Re]=!1,o}this[Re]=!1,Oa.call(this,i),Ba.call(this,i)}}},t.prototype.showLoading=function(e,a){if(this._disposed){this.id;return}if(H(e)&&(a=e,e=""),e=e||"default",this.hideLoading(),!!cl[e]){var n=cl[e](this._api,a),i=this._zr;this._loadingFX=n,i.add(n)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var a=O({},e);return a.type=on[e.type],a},t.prototype.dispatchAction=function(e,a){if(this._disposed){this.id;return}if(H(a)||(a={silent:!!a}),!!Yi[e.type]&&!!this._model){if(this[Re]){this._pendingActions.push(e);return}var n=a.silent;ts.call(this,e,n);var i=a.flush;i?this._zr.flush():i!==!1&&me.browser.weChat&&this._throttledZrFlush(),Oa.call(this,n),Ba.call(this,n)}},t.prototype.updateLabelLayout=function(){lt.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var a=e.seriesIndex,n=this.getModel(),i=n.getSeriesByIndex(a);i.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){Xr=function(f){var v=f._scheduler;v.restorePipelines(f._model),v.prepareStageTasks(),Jo(f,!0),Jo(f,!1),v.plan()},Jo=function(f,v){for(var h=f._model,d=f._scheduler,p=v?f._componentsViews:f._chartsViews,g=v?f._componentsMap:f._chartsMap,y=f._zr,m=f._api,_=0;_v.get("hoverLayerThreshold")&&!me.node&&!me.worker&&v.eachSeries(function(g){if(!g.preventUsingHoverLayer){var y=f._chartsMap[g.__viewId];y.__alive&&y.eachRendered(function(m){m.states.emphasis&&(m.states.emphasis.hoverLayer=!0)})}})}function o(f,v){var h=f.get("blendMode")||null;v.eachRendered(function(d){d.isGroup||(d.style.blend=h)})}function s(f,v){if(!f.preventAutoZ){var h=f.get("z")||0,d=f.get("zlevel")||0;v.eachRendered(function(p){return l(p,h,d,-1/0),!0})}}function l(f,v,h,d){var p=f.getTextContent(),g=f.getTextGuideLine(),y=f.isGroup;if(y)for(var m=f.childrenRef(),_=0;_0?{duration:p,delay:h.get("delay"),easing:h.get("easing")}:null;v.eachRendered(function(y){if(y.states&&y.states.emphasis){if(na(y))return;if(y instanceof De&&J_(y),y.__dirty){var m=y.prevStates;m&&y.useStates(m)}if(d){y.stateTransition=g;var _=y.getTextContent(),x=y.getTextGuideLine();_&&(_.stateTransition=g),x&&(x.stateTransition=g)}y.__dirty&&n(y)}})}Lf=function(f){return new(function(v){P(h,v);function h(){return v!==null&&v.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(d){for(;d;){var p=d.__ecComponentInfo;if(p!=null)return f._model.getComponent(p.mainType,p.index);d=d.parent}},h.prototype.enterEmphasis=function(d,p){fa(d,p),Ke(f)},h.prototype.leaveEmphasis=function(d,p){ha(d,p),Ke(f)},h.prototype.enterBlur=function(d){F_(d),Ke(f)},h.prototype.leaveBlur=function(d){ip(d),Ke(f)},h.prototype.enterSelect=function(d){op(d),Ke(f)},h.prototype.leaveSelect=function(d){sp(d),Ke(f)},h.prototype.getModel=function(){return f.getModel()},h.prototype.getViewOfComponentModel=function(d){return f.getViewOfComponentModel(d)},h.prototype.getViewOfSeriesModel=function(d){return f.getViewOfSeriesModel(d)},h}($p))(f)},kg=function(f){function v(h,d){for(var p=0;p=0)){Ef.push(e);var i=yg.wrapStageHandler(e,n);i.__prio=t,i.__raw=e,r.push(i)}}function Gg(r,t){cl[r]=t}function lb(r,t,e){var a=z1("registerMap");a&&a(r,t,e)}var ub=RS;Fr(yu,i1);Fr(wo,o1);Fr(wo,s1);Fr(yu,b1);Fr(wo,w1);Fr(Dg,B1);Vg(Zp);zg(H1,pS);Gg("default",l1);Mt({type:Dr,event:Dr,update:Dr},bt);Mt({type:Si,event:Si,update:Si},bt);Mt({type:tn,event:tn,update:tn},bt);Mt({type:bi,event:bi,update:bi},bt);Mt({type:rn,event:rn,update:rn},bt);Ng("light",_1);Ng("dark",x1);function Na(r){return r==null?0:r.length||1}function kf(r){return r}var cb=function(){function r(t,e,a,n,i,o){this._old=t,this._new=e,this._oldKeyGetter=a||kf,this._newKeyGetter=n||kf,this.context=i,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(t){return this._add=t,this},r.prototype.update=function(t){return this._update=t,this},r.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},r.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},r.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},r.prototype.remove=function(t){return this._remove=t,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var t=this._old,e=this._new,a={},n=new Array(t.length),i=new Array(e.length);this._initIndexMap(t,null,n,"_oldKeyGetter"),this._initIndexMap(e,a,i,"_newKeyGetter");for(var o=0;o1){var c=l.shift();l.length===1&&(a[s]=l[0]),this._update&&this._update(c,o)}else u===1?(a[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,a)},r.prototype._executeMultiple=function(){var t=this._old,e=this._new,a={},n={},i=[],o=[];this._initIndexMap(t,a,i,"_oldKeyGetter"),this._initIndexMap(e,n,o,"_newKeyGetter");for(var s=0;s1&&v===1)this._updateManyToOne&&this._updateManyToOne(c,u),n[l]=null;else if(f===1&&v>1)this._updateOneToMany&&this._updateOneToMany(c,u),n[l]=null;else if(f===1&&v===1)this._update&&this._update(c,u),n[l]=null;else if(f>1&&v>1)this._updateManyToMany&&this._updateManyToMany(c,u),n[l]=null;else if(f>1)for(var h=0;h1)for(var s=0;s30}var Va=H,qt=N,mb=typeof Int32Array>"u"?Array:Int32Array,_b="e\0\0",Of=-1,xb=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Sb=["_approximateExtent"],Bf,Jn,za,Ga,ns,Qn,is,bb=function(){function r(t,e){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 a,n=!1;Wg(t)?(a=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(n=!0,a=t),a=a||["x","y"];for(var i={},o=[],s={},l=!1,u={},c=0;c=e)){var a=this._store,n=a.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=n.getSource().sourceFormat,l=s===it;if(l&&!n.pure)for(var u=[],c=t;c0},r.prototype.ensureUniqueItemVisual=function(t,e){var a=this._itemVisuals,n=a[t];n||(n=a[t]={});var i=n[e];return i==null&&(i=this.getVisual(e),k(i)?i=i.slice():Va(i)&&(i=O({},i)),n[e]=i),i},r.prototype.setItemVisual=function(t,e,a){var n=this._itemVisuals[t]||{};this._itemVisuals[t]=n,Va(e)?O(n,e):n[e]=a},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){Va(t)?O(this._layout,t):this._layout[t]=e},r.prototype.getLayout=function(t){return this._layout[t]},r.prototype.getItemLayout=function(t){return this._itemLayouts[t]},r.prototype.setItemLayout=function(t,e,a){this._itemLayouts[t]=a?O(this._itemLayouts[t]||{},e):e},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(t,e){var a=this.hostModel&&this.hostModel.seriesIndex;E_(a,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,e){S(this._graphicEls,function(a,n){a&&t&&t.call(e,a,n)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:qt(this.dimensions,this._getDimInfo,this),this.hostModel)),ns(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var a=this[t];!Z(a)||(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var n=a.apply(this,arguments);return e.apply(this,[n].concat(R0(arguments)))})},r.internalField=function(){Bf=function(t){var e=t._invertedIndicesMap;S(e,function(a,n){var i=t._dimInfos[n],o=i.ordinalMeta,s=t._store;if(o){a=e[n]=new mb(o.categories.length);for(var l=0;l1&&(l+="__ec__"+c),n[e]=l}}}(),r}();const bu=bb;function Yg(r,t){lu(r)||(r=uu(r)),t=t||{};var e=t.coordDimensions||[],a=t.dimensionsDefine||r.dimensionsDefine||[],n=W(),i=[],o=Tb(r,e,a,t.dimensionsCount),s=t.canOmitUnusedDimensions&&$g(o),l=a===r.dimensionsDefine,u=l?Ug(r):Hg(a),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(r,o));for(var f=W(c),v=new rg(o),h=0;h0&&(a.name=n+(i-1)),i++,t.set(n,i)}}function Tb(r,t,e,a){var n=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,a||0);return S(t,function(i){var o;H(i)&&(o=i.dimsDef)&&(n=Math.max(n,o.length))}),n}function Ab(r,t,e){var a=t.data;if(e||a.hasOwnProperty(r)){for(var n=0;a.hasOwnProperty(r+n);)n++;r+=n}return t.set(r,!0),r}var Cb=function(){function r(t){this.coordSysDims=[],this.axisMap=W(),this.categoryAxisMap=W(),this.coordSysName=t}return r}();function Mb(r){var t=r.get("coordinateSystem"),e=new Cb(t),a=Db[t];if(a)return a(r,e,e.axisMap,e.categoryAxisMap),e}var Db={cartesian2d:function(r,t,e,a){var n=r.getReferringComponents("xAxis",Me).models[0],i=r.getReferringComponents("yAxis",Me).models[0];t.coordSysDims=["x","y"],e.set("x",n),e.set("y",i),Kr(n)&&(a.set("x",n),t.firstCategoryDimIndex=0),Kr(i)&&(a.set("y",i),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,a){var n=r.getReferringComponents("singleAxis",Me).models[0];t.coordSysDims=["single"],e.set("single",n),Kr(n)&&(a.set("single",n),t.firstCategoryDimIndex=0)},polar:function(r,t,e,a){var n=r.getReferringComponents("polar",Me).models[0],i=n.findAxisModel("radiusAxis"),o=n.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",i),e.set("angle",o),Kr(i)&&(a.set("radius",i),t.firstCategoryDimIndex=0),Kr(o)&&(a.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(r,t,e,a){t.coordSysDims=["lng","lat"]},parallel:function(r,t,e,a){var n=r.ecModel,i=n.getComponent("parallel",r.get("parallelIndex")),o=t.coordSysDims=i.dimensions.slice();S(i.parallelAxisIndex,function(s,l){var u=n.getComponent("parallelAxis",s),c=o[l];e.set(c,u),Kr(u)&&(a.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function Kr(r){return r.get("type")==="category"}function Ib(r,t,e){e=e||{};var a=e.byIndex,n=e.stackedCoordDimension,i,o,s;Lb(t)?i=t:(o=t.schema,i=o.dimensions,s=t.store);var l=!!(r&&r.get("stack")),u,c,f,v;if(S(i,function(m,_){G(m)&&(i[_]=m={name:m}),l&&!m.isExtraCoord&&(!a&&!u&&m.ordinalMeta&&(u=m),!c&&m.type!=="ordinal"&&m.type!=="time"&&(!n||n===m.coordDim)&&(c=m))}),c&&!a&&!u&&(a=!0),c){f="__\0ecstackresult_"+r.id,v="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var h=c.coordDim,d=c.type,p=0;S(i,function(m){m.coordDim===h&&p++});var g={name:f,coordDim:h,coordDimIndex:p,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},y={name:v,coordDim:v,coordDimIndex:p+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(v,d),y.storeDimIndex=s.ensureCalculationDimension(f,d)),o.appendCalculationDimension(g),o.appendCalculationDimension(y)):(i.push(g),i.push(y))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:a,stackedOverDimension:v,stackResultDimension:f}}function Lb(r){return!Wg(r.schema)}function Nr(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function Pb(r,t){return Nr(r,t)?r.getCalculationInfo("stackResultDimension"):t}function Rb(r,t){var e=r.get("coordinateSystem"),a=su.get(e),n;return t&&t.coordSysDims&&(n=N(t.coordSysDims,function(i){var o={name:i},s=t.axisMap.get(i);if(s){var l=s.get("type");o.type=vb(l)}return o})),n||(n=a&&(a.getDimensionsInfo?a.getDimensionsInfo():a.dimensions.slice())||["x","y"]),n}function Eb(r,t,e){var a,n;return e&&S(r,function(i,o){var s=i.coordDim,l=e.categoryAxisMap.get(s);l&&(a==null&&(a=o),i.ordinalMeta=l.getOrdinalMeta(),t&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(n=!0)}),!n&&a!=null&&(r[a].otherDims.itemName=0),a}function To(r,t,e){e=e||{};var a=t.getSourceManager(),n,i=!1;r?(i=!0,n=uu(r)):(n=a.getSource(),i=n.sourceFormat===it);var o=Mb(t),s=Rb(t,o),l=e.useEncodeDefaulter,u=Z(l)?l:l?ee(Wx,s,t):null,c={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},f=Yg(n,c),v=Eb(f.dimensions,e.createInvertedIndices,o),h=i?null:a.getSharedDataStore(f),d=Ib(t,{schema:f,store:h}),p=new bu(f,t);p.setCalculationInfo(d);var g=v!=null&&kb(n)?function(y,m,_,x){return x===v?_:this.defaultDimValueGetter(y,m,_,x)}:null;return p.hasItemOption=!1,p.initData(i?n:h,null,g),p}function kb(r){if(r.sourceFormat===it){var t=Ob(r.data||[]);return!k(_a(t))}}function Ob(r){for(var t=0;te[1]&&(e[1]=t[1])},r.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(t,e){var a=this._extent;isNaN(t)||(a[0]=t),isNaN(e)||(a[1]=e)},r.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(t){this._isBlank=t},r}();no(Zg);const Ut=Zg;var Bb=0,Nb=function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++Bb}return r.createByAxisModel=function(t){var e=t.option,a=e.data,n=a&&N(a,Vb);return new r({categories:n,needCollect:!n,deduplication:e.dedplication!==!1})},r.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},r.prototype.parseAndCollect=function(t){var e,a=this._needCollect;if(!G(t)&&!a)return t;if(a&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var n=this._getOrCreateMap();return e=n.get(t),e==null&&(a?(e=this.categories.length,this.categories[e]=t,n.set(t,e)):e=NaN),e},r.prototype._getOrCreateMap=function(){return this._map||(this._map=W(this.categories))},r}();function Vb(r){return H(r)&&r.value!=null?r.value:r+""}const fl=Nb;function hl(r){return r.type==="interval"||r.type==="log"}function zb(r,t,e,a){var n={},i=r[1]-r[0],o=n.interval=Wd(i/t,!0);e!=null&&oa&&(o=n.interval=a);var s=n.intervalPrecision=Xg(o),l=n.niceTickExtent=[xe(Math.ceil(r[0]/o)*o,s),xe(Math.floor(r[1]/o)*o,s)];return Gb(l,r),n}function os(r){var t=Math.pow(10,Gl(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,xe(e*t)}function Xg(r){return Et(r)+2}function Nf(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function Gb(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),Nf(r,0,t),Nf(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function Ao(r,t){return r>=t[0]&&r<=t[1]}function Co(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function Mo(r,t){return r*(t[1]-t[0])+t[0]}var Kg=function(r){P(t,r);function t(e){var a=r.call(this,e)||this;a.type="ordinal";var n=a.getSetting("ordinalMeta");return n||(n=new fl({})),k(n)&&(n=new fl({categories:N(n,function(i){return H(i)?i.value:i})})),a._ordinalMeta=n,a._extent=a.getSetting("extent")||[0,n.categories.length-1],a}return t.prototype.parse=function(e){return e==null?NaN:G(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),Ao(e,this._extent)&&this._ordinalMeta.categories[e]!=null},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),Co(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(Mo(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],a=this._extent,n=a[0];n<=a[1];)e.push({value:n}),n++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var a=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,a.length);o=0&&e=0&&e=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(Ut);Ut.registerClass(Kg);const wu=Kg;var _r=xe,qg=function(r){P(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return Ao(e,this._extent)},t.prototype.normalize=function(e){return Co(e,this._extent)},t.prototype.scale=function(e){return Mo(e,this._extent)},t.prototype.setExtent=function(e,a){var n=this._extent;isNaN(e)||(n[0]=parseFloat(e)),isNaN(a)||(n[1]=parseFloat(a))},t.prototype.unionExtent=function(e){var a=this._extent;e[0]a[1]&&(a[1]=e[1]),this.setExtent(a[0],a[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=Xg(e)},t.prototype.getTicks=function(e){var a=this._interval,n=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=[];if(!a)return s;var l=1e4;n[0]l)return[];var c=s.length?s[s.length-1].value:i[1];return n[1]>c&&(e?s.push({value:_r(c+a,o)}):s.push({value:n[1]})),s},t.prototype.getMinorTicks=function(e){for(var a=this.getTicks(!0),n=[],i=this.getExtent(),o=1;oi[0]&&h0&&(i=i===null?s:Math.min(i,s))}e[a]=i}}return e}function Qg(r){var t=Hb(r),e=[];return S(r,function(a){var n=a.coordinateSystem,i=n.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var l=i.dim+"_"+i.index,u=t[l],c=Math.abs(o[1]-o[0]),f=i.scale.getExtent(),v=Math.abs(f[1]-f[0]);s=u?c/v*u:c}else{var h=a.getData();s=Math.abs(o[1]-o[0])/h.count()}var d=$(a.get("barWidth"),s),p=$(a.get("barMaxWidth"),s),g=$(a.get("barMinWidth")||(ay(a)?.5:1),s),y=a.get("barGap"),m=a.get("barCategoryGap");e.push({bandWidth:s,barWidth:d,barMaxWidth:p,barMinWidth:g,barGap:y,barCategoryGap:m,axisKey:Au(i),stackId:Tu(a)})}),Ub(e)}function Ub(r){var t={};S(r,function(a,n){var i=a.axisKey,o=a.bandWidth,s=t[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[i]=s;var u=a.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=a.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var f=a.barMaxWidth;f&&(l[u].maxWidth=f);var v=a.barMinWidth;v&&(l[u].minWidth=v);var h=a.barGap;h!=null&&(s.gap=h);var d=a.barCategoryGap;d!=null&&(s.categoryGap=d)});var e={};return S(t,function(a,n){e[n]={};var i=a.stacks,o=a.bandWidth,s=a.categoryGap;if(s==null){var l=Le(i).length;s=Math.max(35-l*4,15)+"%"}var u=$(s,o),c=$(a.gap,1),f=a.remainedWidth,v=a.autoWidthCount,h=(f-u)/(v+(v-1)*c);h=Math.max(h,0),S(i,function(y){var m=y.maxWidth,_=y.minWidth;if(y.width){var x=y.width;m&&(x=Math.min(x,m)),_&&(x=Math.max(x,_)),y.width=x,f-=x+c*x,v--}else{var x=h;m&&mx&&(x=_),x!==h&&(y.width=x,f-=x+c*x,v--)}}),h=(f-u)/(v+(v-1)*c),h=Math.max(h,0);var d=0,p;S(i,function(y,m){y.width||(y.width=h),p=y,d+=y.width*(1+c)}),p&&(d-=p.width*c);var g=-d/2;S(i,function(y,m){e[n][m]=e[n][m]||{bandWidth:o,offset:g,width:y.width},g+=y.width*(1+c)})}),e}function $b(r,t,e){if(r&&t){var a=r[Au(t)];return a!=null&&e!=null?a[Tu(e)]:a}}function ey(r,t){var e=Jg(r,t),a=Qg(e);S(e,function(n){var i=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=Tu(n),u=a[Au(s)][l],c=u.offset,f=u.width;i.setLayout({bandWidth:u.bandWidth,offset:c,size:f})})}function ty(r){return{seriesType:r,plan:vu(),reset:function(t){if(!!ry(t)){var e=t.getData(),a=t.coordinateSystem,n=a.getBaseAxis(),i=a.getOtherAxis(n),o=e.getDimensionIndex(e.mapDimension(i.dim)),s=e.getDimensionIndex(e.mapDimension(n.dim)),l=t.get("showBackground",!0),u=e.mapDimension(i.dim),c=e.getCalculationInfo("stackResultDimension"),f=Nr(e,u)&&!!e.getCalculationInfo("stackedOnSeries"),v=i.isHorizontal(),h=Yb(n,i),d=ay(t),p=t.get("barMinHeight")||0,g=c&&e.getDimensionIndex(c),y=e.getLayout("size"),m=e.getLayout("offset");return{progress:function(_,x){for(var w=_.count,b=d&&kt(w*3),T=d&&l&&kt(w*3),A=d&&kt(w),C=a.master.getRect(),D=v?C.width:C.height,M,I=x.getStore(),L=0;(M=_.next())!=null;){var R=I.get(f?g:o,M),E=I.get(s,M),V=h,X=void 0;f&&(X=+R-I.get(o,M));var B=void 0,F=void 0,Y=void 0,re=void 0;if(v){var ue=a.dataToPoint([R,E]);if(f){var ce=a.dataToPoint([X,E]);V=ce[0]}B=V,F=ue[1]+m,Y=ue[0]-V,re=y,Math.abs(Y)>>1;r[n][1]n&&(this._approxInterval=n);var s=ei.length,l=Math.min(Zb(ei,this._approxInterval,0,s),s-1);this._interval=ei[l][1],this._minLevelUnit=ei[Math.max(l-1,0)][0]},t.prototype.parse=function(e){return fe(e)?e:+wt(e)},t.prototype.contain=function(e){return Ao(this.parse(e),this._extent)},t.prototype.normalize=function(e){return Co(this.parse(e),this._extent)},t.prototype.scale=function(e){return Mo(e,this._extent)},t.type="time",t}(ur),ei=[["second",eu],["minute",tu],["hour",an],["quarter-day",an*6],["half-day",an*12],["day",et*1.2],["half-week",et*3.5],["week",et*7],["month",et*31],["quarter",et*95],["half-year",Oc/2],["year",Oc]];function Xb(r,t,e,a){var n=wt(t),i=wt(e),o=function(d){return Nc(n,d,a)===Nc(i,d,a)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},c=function(){return u()&&o("hour")},f=function(){return c()&&o("minute")},v=function(){return f()&&o("second")},h=function(){return v()&&o("millisecond")};switch(r){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return f();case"second":return v();case"millisecond":return h()}}function Kb(r,t){return r/=et,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function qb(r){var t=30*et;return r/=t,r>6?6:r>3?3:r>2?2:1}function jb(r){return r/=an,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function Vf(r,t){return r/=t?tu:eu,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function Jb(r){return Wd(r,!0)}function Qb(r,t,e){var a=new Date(r);switch(ia(t)){case"year":case"month":a[Tp(e)](0);case"day":a[Ap(e)](1);case"hour":a[Cp(e)](0);case"minute":a[Mp(e)](0);case"second":a[Dp(e)](0),a[Ip(e)](0)}return a.getTime()}function ew(r,t,e,a){var n=1e4,i=bp,o=0;function s(D,M,I,L,R,E,V){for(var X=new Date(M),B=M,F=X[L]();B1&&E===0&&I.unshift({value:I[0].value-B})}}for(var E=0;E=a[0]&&m<=a[1]&&f++)}var _=(a[1]-a[0])/t;if(f>_*1.5&&v>_/1.5||(u.push(g),f>_||r===i[h]))break}c=[]}}}for(var x=pe(N(u,function(D){return pe(D,function(M){return M.value>=a[0]&&M.value<=a[1]&&!M.notAdd})}),function(D){return D.length>0}),w=[],b=x.length-1,h=0;h0;)i*=10;var s=[xe(aw(a[0]/i)*i),xe(rw(a[1]/i)*i)];this._interval=i,this._niceExtent=s}},t.prototype.calcNiceExtent=function(e){ln.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return e=qe(e)/qe(this.base),Ao(e,this._extent)},t.prototype.normalize=function(e){return e=qe(e)/qe(this.base),Co(e,this._extent)},t.prototype.scale=function(e){return e=Mo(e,this._extent),ti(this.base,e)},t.type="log",t}(Ut),oy=Cu.prototype;oy.getMinorTicks=ln.getMinorTicks;oy.getLabel=ln.getLabel;function ri(r,t){return tw(r,Et(t))}Ut.registerClass(Cu);const nw=Cu;var iw=function(){function r(t,e,a){this._prepareParams(t,e,a)}return r.prototype._prepareParams=function(t,e,a){a[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var v=this._determinedMin,h=this._determinedMax;return v!=null&&(s=v,u=!0),h!=null&&(l=h,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:f}},r.prototype.modifyDataMinMax=function(t,e){this[sw[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var a=ow[t];this[a]=e},r.prototype.freeze=function(){this.frozen=!0},r}(),ow={min:"_determinedMin",max:"_determinedMax"},sw={min:"_dataMin",max:"_dataMax"};function sy(r,t,e){var a=r.rawExtentInfo;return a||(a=new iw(r,t,e),r.rawExtentInfo=a,a)}function ai(r,t){return t==null?null:$s(t)?NaN:r.parse(t)}function ly(r,t){var e=r.type,a=sy(r,t,r.getExtent()).calculate();r.setBlank(a.isBlank);var n=a.min,i=a.max,o=t.ecModel;if(o&&e==="time"){var s=Jg("bar",o),l=!1;if(S(s,function(f){l=l||f.getBaseAxis()===t.axis}),l){var u=Qg(s),c=lw(n,i,t,u);n=c.min,i=c.max}}return{extent:[n,i],fixMin:a.minFixed,fixMax:a.maxFixed}}function lw(r,t,e,a){var n=e.axis.getExtent(),i=n[1]-n[0],o=$b(a,e.axis);if(o===void 0)return{min:r,max:t};var s=1/0;S(o,function(h){s=Math.min(h.offset,s)});var l=-1/0;S(o,function(h){l=Math.max(h.offset+h.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=t-r,f=1-(s+l)/i,v=c/f-c;return t+=v*(l/u),r-=v*(s/u),{min:r,max:t}}function bn(r,t){var e=t,a=ly(r,e),n=a.extent,i=e.get("splitNumber");r instanceof nw&&(r.base=e.get("logBase"));var o=r.type,s=e.get("interval"),l=o==="interval"||o==="time";r.setExtent(n[0],n[1]),r.calcNiceExtent({splitNumber:i,fixMin:a.fixMin,fixMax:a.fixMax,minInterval:l?e.get("minInterval"):null,maxInterval:l?e.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function Mu(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new wu({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new iy({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(Ut.getClass(t)||ur)}}function uw(r){var t=r.scale.getExtent(),e=t[0],a=t[1];return!(e>0&&a>0||e<0&&a<0)}function Vn(r){var t=r.getLabelModel().get("formatter"),e=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?function(a){return function(n,i){return r.scale.getFormattedLabel(n,i,a)}}(t):G(t)?function(a){return function(n){var i=r.scale.getLabel(n),o=a.replace("{value}",i!=null?i:"");return o}}(t):Z(t)?function(a){return function(n,i){return e!=null&&(i=n.value-e),a(Du(r,n),i,n.level!=null?{level:n.level}:null)}}(t):function(a){return r.scale.getLabel(a)}}function Du(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function cw(r){var t=r.model,e=r.scale;if(!(!t.get(["axisLabel","show"])||e.isBlank())){var a,n,i=e.getExtent();e instanceof wu?n=e.count():(a=e.getTicks(),n=a.length);var o=r.getLabelModel(),s=Vn(r),l,u=1;n>40&&(u=Math.ceil(n/40));for(var c=0;cr[1]&&(r[1]=n[1])})}var Do=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},r.prototype.getCoordSysModel=function(){},r}(),Gf=[],vw={registerPreprocessor:Vg,registerProcessor:zg,registerPostInit:nb,registerPostUpdate:ib,registerUpdateLifecycle:xu,registerAction:Mt,registerCoordinateSystem:ob,registerLayout:sb,registerVisual:Fr,registerTransform:ub,registerLoading:Gg,registerMap:lb,registerImpl:V1,PRIORITY:J1,ComponentModel:te,ComponentView:Ae,SeriesModel:dt,ChartView:Fe,registerComponentModel:function(r){te.registerClass(r)},registerComponentView:function(r){Ae.registerClass(r)},registerSeriesModel:function(r){dt.registerClass(r)},registerChartView:function(r){Fe.registerClass(r)},registerSubTypeDefaulter:function(r,t){te.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){E0(r,t)}};function Be(r){if(k(r)){S(r,function(t){Be(t)});return}ie(Gf,r)>=0||(Gf.push(r),Z(r)&&(r={install:r}),r.install(vw))}var dw=[];function ss(r,t){for(var e=0;en&&(a=o,n=l)}if(a)return pw(a.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},t.prototype.getBoundingRect=function(e){var a=this._rect;if(a&&!e)return a;var n=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return S(o,function(s){s.type==="polygon"?Ff(s.exterior,n,i,e):S(s.points,function(l){Ff(l,n,i,e)})}),isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])||(n[0]=n[1]=i[0]=i[1]=0),a=new ge(n[0],n[1],i[0]-n[0],i[1]-n[1]),e||(this._rect=a),a},t.prototype.contain=function(e){var a=this.getBoundingRect(),n=this.geometries;if(!a.contain(e[0],e[1]))return!1;e:for(var i=0,o=n.length;i>1^-(s&1),l=l>>1^-(l&1),s+=n,l+=i,n=s,i=l,a.push([s/e,l/e])}return a}function mw(r,t){return r=yw(r),N(pe(r.features,function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0}),function(e){var a=e.properties,n=e.geometry,i=[];switch(n.type){case"Polygon":var o=n.coordinates;i.push(new Wf(o[0],o.slice(1)));break;case"MultiPolygon":S(n.coordinates,function(l){l[0]&&i.push(new Wf(l[0],l.slice(1)))});break;case"LineString":i.push(new Hf([n.coordinates]));break;case"MultiLineString":i.push(new Hf(n.coordinates))}var s=new fy(a[t||"name"],i,a.cp);return s.properties=a,s})}var wn=ne();function _w(r){return r.type==="category"?Sw(r):ww(r)}function xw(r,t){return r.type==="category"?bw(r,t):{ticks:N(r.scale.getTicks(),function(e){return e.value})}}function Sw(r){var t=r.getLabelModel(),e=vy(r,t);return!t.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:e.labelCategoryInterval}:e}function vy(r,t){var e=dy(r,"labels"),a=Iu(t),n=py(e,a);if(n)return n;var i,o;return Z(a)?i=my(r,a):(o=a==="auto"?Tw(r):a,i=yy(r,o)),gy(e,a,{labels:i,labelCategoryInterval:o})}function bw(r,t){var e=dy(r,"ticks"),a=Iu(t),n=py(e,a);if(n)return n;var i,o;if((!t.get("show")||r.scale.isBlank())&&(i=[]),Z(a))i=my(r,a,!0);else if(a==="auto"){var s=vy(r,r.getLabelModel());o=s.labelCategoryInterval,i=N(s.labels,function(l){return l.tickValue})}else o=a,i=yy(r,o,!0);return gy(e,a,{ticks:i,tickCategoryInterval:o})}function ww(r){var t=r.scale.getTicks(),e=Vn(r);return{labels:N(t,function(a,n){return{level:a.level,formattedLabel:e(a,n),rawLabel:r.scale.getLabel(a),tickValue:a.value}})}}function dy(r,t){return wn(r)[t]||(wn(r)[t]=[])}function py(r,t){for(var e=0;e40&&(s=Math.max(1,Math.floor(o/40)));for(var l=i[0],u=r.dataToCoord(l+1)-r.dataToCoord(l),c=Math.abs(u*Math.cos(a)),f=Math.abs(u*Math.sin(a)),v=0,h=0;l<=i[1];l+=s){var d=0,p=0,g=ao(e({value:l}),t.font,"center","top");d=g.width*1.3,p=g.height*1.3,v=Math.max(v,d,7),h=Math.max(h,p,7)}var y=v/c,m=h/f;isNaN(y)&&(y=1/0),isNaN(m)&&(m=1/0);var _=Math.max(0,Math.floor(Math.min(y,m))),x=wn(r.model),w=r.getExtent(),b=x.lastAutoInterval,T=x.lastTickCount;return b!=null&&T!=null&&Math.abs(b-_)<=1&&Math.abs(T-o)<=1&&b>_&&x.axisExtent0===w[0]&&x.axisExtent1===w[1]?_=b:(x.lastTickCount=o,x.lastAutoInterval=_,x.axisExtent0=w[0],x.axisExtent1=w[1]),_}function Cw(r){var t=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function yy(r,t,e){var a=Vn(r),n=r.scale,i=n.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=i[0],c=n.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var f=uy(r),v=o.get("showMinLabel")||f,h=o.get("showMaxLabel")||f;v&&u!==i[0]&&p(i[0]);for(var d=u;d<=i[1];d+=l)p(d);h&&d-l!==i[1]&&p(i[1]);function p(g){var y={value:g};s.push(e?g:{formattedLabel:a(y),rawLabel:n.getLabel(y),tickValue:g})}return s}function my(r,t,e){var a=r.scale,n=Vn(r),i=[];return S(a.getTicks(),function(o){var s=a.getLabel(o),l=o.value;t(o.value,s)&&i.push(e?l:{formattedLabel:n(o),rawLabel:s,tickValue:l})}),i}var Uf=[0,1],Mw=function(){function r(t,e,a){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=a||[0,0]}return r.prototype.contain=function(t){var e=this._extent,a=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]);return t>=a&&t<=n},r.prototype.containData=function(t){return this.scale.contain(t)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(t){return Gd(t||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(t,e){var a=this._extent;a[0]=t,a[1]=e},r.prototype.dataToCoord=function(t,e){var a=this._extent,n=this.scale;return t=n.normalize(t),this.onBand&&n.type==="ordinal"&&(a=a.slice(),$f(a,n.count())),he(t,Uf,a,e)},r.prototype.coordToData=function(t,e){var a=this._extent,n=this.scale;this.onBand&&n.type==="ordinal"&&(a=a.slice(),$f(a,n.count()));var i=he(t,a,Uf,e);return this.scale.scale(i)},r.prototype.pointToData=function(t,e){},r.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),a=xw(this,e),n=a.ticks,i=N(n,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=e.get("alignWithLabel");return Dw(this,i,o,t.clamp),i},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var a=this.scale.getMinorTicks(e),n=N(a,function(i){return N(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return n},r.prototype.getViewLabels=function(){return _w(this).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),a=e[1]-e[0]+(this.onBand?1:0);a===0&&(a=1);var n=Math.abs(t[1]-t[0]);return Math.abs(n)/a},r.prototype.calculateCategoryInterval=function(){return Aw(this)},r}();function $f(r,t){var e=r[1]-r[0],a=t,n=e/a/2;r[0]+=n,r[1]-=n}function Dw(r,t,e,a){var n=t.length;if(!r.onBand||e||!n)return;var i=r.getExtent(),o,s;if(n===1)t[0].coord=i[0],o=t[1]={coord:i[0]};else{var l=t[n-1].tickValue-t[0].tickValue,u=(t[n-1].coord-t[0].coord)/l;S(t,function(h){h.coord-=u/2});var c=r.scale.getExtent();s=1+c[1]-t[n-1].tickValue,o={coord:t[n-1].coord+u*s},t.push(o)}var f=i[0]>i[1];v(t[0].coord,i[0])&&(a?t[0].coord=i[0]:t.shift()),a&&v(i[0],t[0].coord)&&t.unshift({coord:i[0]}),v(i[1],o.coord)&&(a?o.coord=i[1]:t.pop()),a&&v(o.coord,i[1])&&t.push({coord:i[1]});function v(h,d){return h=xe(h),d=xe(d),f?h>d:hn&&(n+=Fa);var h=Math.atan2(s,o);if(h<0&&(h+=Fa),h>=a&&h<=n||h+Fa>=a&&h+Fa<=n)return l[0]=c,l[1]=f,u-e;var d=e*Math.cos(a)+r,p=e*Math.sin(a)+t,g=e*Math.cos(n)+r,y=e*Math.sin(n)+t,m=(d-o)*(d-o)+(p-s)*(p-s),_=(g-o)*(g-o)+(y-s)*(y-s);return m<_?(l[0]=d,l[1]=p,Math.sqrt(m)):(l[0]=g,l[1]=y,Math.sqrt(_))}function Ki(r,t,e,a,n,i,o,s){var l=n-r,u=i-t,c=e-r,f=a-t,v=Math.sqrt(c*c+f*f);c/=v,f/=v;var h=l*c+u*f,d=h/v;s&&(d=Math.min(Math.max(d,0),1)),d*=v;var p=o[0]=r+d*c,g=o[1]=t+d*f;return Math.sqrt((p-n)*(p-n)+(g-i)*(g-i))}function _y(r,t,e,a,n,i,o){e<0&&(r=r+e,e=-e),a<0&&(t=t+a,a=-a);var s=r+e,l=t+a,u=o[0]=Math.min(Math.max(n,r),s),c=o[1]=Math.min(Math.max(i,t),l);return Math.sqrt((u-n)*(u-n)+(c-i)*(c-i))}var ut=[];function Rw(r,t,e){var a=_y(t.x,t.y,t.width,t.height,r.x,r.y,ut);return e.set(ut[0],ut[1]),a}function Ew(r,t,e){for(var a=0,n=0,i=0,o=0,s,l,u=1/0,c=t.data,f=r.x,v=r.y,h=0;h0){t=t/180*Math.PI,ht.fromArray(r[0]),se.fromArray(r[1]),ye.fromArray(r[2]),we.sub(St,ht,se),we.sub(_t,ye,se);var e=St.len(),a=_t.len();if(!(e<.001||a<.001)){St.scale(1/e),_t.scale(1/a);var n=St.dot(_t),i=Math.cos(t);if(i1&&we.copy(Ve,ye),Ve.toArray(r[1])}}}}function kw(r,t,e){if(e<=180&&e>0){e=e/180*Math.PI,ht.fromArray(r[0]),se.fromArray(r[1]),ye.fromArray(r[2]),we.sub(St,se,ht),we.sub(_t,ye,se);var a=St.len(),n=_t.len();if(!(a<.001||n<.001)){St.scale(1/a),_t.scale(1/n);var i=St.dot(t),o=Math.cos(e);if(i=l)we.copy(Ve,ye);else{Ve.scaleAndAdd(_t,s/Math.tan(Math.PI/2-c));var f=ye.x!==se.x?(Ve.x-se.x)/(ye.x-se.x):(Ve.y-se.y)/(ye.y-se.y);if(isNaN(f))return;f<0?we.copy(Ve,se):f>1&&we.copy(Ve,ye)}Ve.toArray(r[1])}}}}function Zf(r,t,e,a){var n=e==="normal",i=n?r:r.ensureState(e);i.ignore=t;var o=a.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=a.getModel("lineStyle").getLineStyle();n?r.useStyle(s):i.style=s}function Ow(r,t){var e=t.smooth,a=t.points;if(!!a)if(r.moveTo(a[0][0],a[0][1]),e>0&&a.length>=3){var n=sc(a[0],a[1]),i=sc(a[1],a[2]);if(!n||!i){r.lineTo(a[1][0],a[1][1]),r.lineTo(a[2][0],a[2][1]);return}var o=Math.min(n,i)*e,s=ko([],a[1],a[0],o/n),l=ko([],a[1],a[2],o/i),u=ko([],s,l,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),r.bezierCurveTo(l[0],l[1],l[0],l[1],a[2][0],a[2][1])}else for(var c=1;c0&&i&&w(-c/o,0,o);var p=r[0],g=r[o-1],y,m;_(),y<0&&b(-y,.8),m<0&&b(m,.8),_(),x(y,m,1),x(m,y,-1),_(),y<0&&T(-y),m<0&&T(m);function _(){y=p.rect[t]-a,m=n-g.rect[t]-g.rect[e]}function x(A,C,D){if(A<0){var M=Math.min(C,-A);if(M>0){w(M*D,0,o);var I=M+A;I<0&&b(-I*D,1)}else b(-A*D,1)}}function w(A,C,D){A!==0&&(u=!0);for(var M=C;M0)for(var I=0;I0;I--){var V=D[I-1]*E;w(-V,I,o)}}}function T(A){var C=A<0?-1:1;A=Math.abs(A);for(var D=Math.ceil(A/(o-1)),M=0;M0?w(D,0,M+1):w(-D,o-M-1,o),A-=D,A<=0)return}return u}function Bw(r,t,e,a){return Ty(r,"x","width",t,e,a)}function Ay(r,t,e,a){return Ty(r,"y","height",t,e,a)}function Cy(r){var t=[];r.sort(function(p,g){return g.priority-p.priority});var e=new ge(0,0,0,0);function a(p){if(!p.ignore){var g=p.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}p.ignore=!0}for(var n=0;n=0&&a.attr(i.oldLayoutSelect),ie(v,"emphasis")>=0&&a.attr(i.oldLayoutEmphasis)),de(a,u,e,l)}else if(a.attr(u),!ba(a).valueAnimation){var f=ve(a.style.opacity,1);a.style.opacity=0,Ie(a,{style:{opacity:f}},e,l)}if(i.oldLayout=u,a.states.select){var h=i.oldLayoutSelect={};ni(h,u,ii),ni(h,a.states.select,ii)}if(a.states.emphasis){var d=i.oldLayoutEmphasis={};ni(d,u,ii),ni(d,a.states.emphasis,ii)}dx(a,l,c,e,e)}if(n&&!n.ignore&&!n.invisible){var i=zw(n),o=i.oldLayout,p={points:n.shape.points};o?(n.attr({shape:o}),de(n,{shape:p},e)):(n.setShape(p),n.style.strokePercent=0,Ie(n,{style:{strokePercent:1}},e)),i.oldLayout=p}},r}();const Fw=Gw;var cs=ne();function MR(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,a){var n=cs(e).labelManager;n||(n=cs(e).labelManager=new Fw),n.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(t,e,a){var n=cs(e).labelManager;a.updatedSeries.forEach(function(i){n.addLabelsOfSeries(e.getViewOfSeriesModel(i))}),n.updateLayoutConfig(e),n.layout(e),n.processLabelsOverall()})}var Ww=function(r){P(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e){return To(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var a=new Q,n=Oe("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);a.add(n),n.setStyle(e.lineStyle);var i=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=i==="none"?"circle":i,l=e.itemHeight*.8,u=Oe(s,(e.itemWidth-l)/2,(e.itemHeight-l)/2,l,l,e.itemStyle.fill);a.add(u),u.setStyle(e.itemStyle);var c=e.iconRotate==="inherit"?o:e.iconRotate||0;return u.rotation=c*Math.PI/180,u.setOrigin([e.itemWidth/2,e.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),a},t.type="series.line",t.dependencies=["grid","polar"],t.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},t}(dt);const Hw=Ww;function Io(r,t){var e=r.mapDimensionsAll("defaultedLabel"),a=e.length;if(a===1){var n=da(r,t,e[0]);return n!=null?n+"":null}else if(a){for(var i=[],o=0;o=0&&a.push(t[i])}return a.join(" ")}var Uw=function(r){P(t,r);function t(e,a,n,i){var o=r.call(this)||this;return o.updateData(e,a,n,i),o}return t.prototype._createSymbol=function(e,a,n,i,o){this.removeAll();var s=Oe(e,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=$w,this._symbolType=e,this.add(s)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){fa(this.childAt(0))},t.prototype.downplay=function(){ha(this.childAt(0))},t.prototype.setZ=function(e,a){var n=this.childAt(0);n.zlevel=e,n.z=a},t.prototype.setDraggable=function(e,a){var n=this.childAt(0);n.draggable=e,n.cursor=!a&&e?"move":n.cursor},t.prototype.updateData=function(e,a,n,i){this.silent=!1;var o=e.getItemVisual(a,"symbol")||"circle",s=e.hostModel,l=t.getSymbolSize(e,a),u=o!==this._symbolType,c=i&&i.disableAnimation;if(u){var f=e.getItemVisual(a,"symbolKeepAspect");this._createSymbol(o,e,a,l,f)}else{var v=this.childAt(0);v.silent=!1;var h={scaleX:l[0]/2,scaleY:l[1]/2};c?v.attr(h):de(v,h,s,a),dn(v)}if(this._updateCommon(e,a,l,n,i),u){var v=this.childAt(0);if(!c){var h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:v.style.opacity}};v.scaleX=v.scaleY=0,v.style.opacity=0,Ie(v,h,s,a)}}c&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,a,n,i,o){var s=this.childAt(0),l=e.hostModel,u,c,f,v,h,d,p,g,y;if(i&&(u=i.emphasisItemStyle,c=i.blurItemStyle,f=i.selectItemStyle,v=i.focus,h=i.blurScope,p=i.labelStatesModels,g=i.hoverScale,y=i.cursorStyle,d=i.emphasisDisabled),!i||e.hasItemOption){var m=i&&i.itemModel?i.itemModel:e.getItemModel(a),_=m.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),f=m.getModel(["select","itemStyle"]).getItemStyle(),c=m.getModel(["blur","itemStyle"]).getItemStyle(),v=_.get("focus"),h=_.get("blurScope"),d=_.get("disabled"),p=Ht(m),g=_.getShallow("scale"),y=m.getShallow("cursor")}var x=e.getItemVisual(a,"symbolRotate");s.attr("rotation",(x||0)*Math.PI/180||0);var w=bo(e.getItemVisual(a,"symbolOffset"),n);w&&(s.x=w[0],s.y=w[1]),y&&s.attr("cursor",y);var b=e.getItemVisual(a,"style"),T=b.fill;if(s instanceof zt){var A=s.style;s.useStyle(O({image:A.image,x:A.x,y:A.y,width:A.width,height:A.height},b))}else s.__isEmptyBrush?s.useStyle(O({},b)):s.useStyle(b),s.style.decal=null,s.setColor(T,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var C=e.getItemVisual(a,"liftZ"),D=this._z2;C!=null?D==null&&(this._z2=s.z2,s.z2+=C):D!=null&&(s.z2=D,this._z2=null);var M=o&&o.useNameLabel;Wt(s,p,{labelFetcher:l,labelDataIndex:a,defaultText:I,inheritColor:T,defaultOpacity:b.opacity});function I(E){return M?e.getName(E):Io(e,E)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var L=s.ensureState("emphasis");if(L.style=u,s.ensureState("select").style=f,s.ensureState("blur").style=c,g){var R=Math.max(fe(g)?g:1.1,3/this._sizeY);L.scaleX=this._sizeX*R,L.scaleY=this._sizeY*R}this.setSymbolScale(1),sr(this,v,h,d)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,a,n){var i=this.childAt(0),o=q(this).dataIndex,s=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var l=i.getTextContent();l&&vn(l,{style:{opacity:0}},a,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();vn(i,{style:{opacity:0},scaleX:0,scaleY:0},a,{dataIndex:o,cb:e,removeOpt:s})},t.getSymbolSize=function(e,a){return gu(e.getItemVisual(a,"symbolSize"))},t}(Q);function $w(r,t){this.parent.drift(r,t)}const Lu=Uw;function fs(r,t,e,a){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(a.isIgnore&&a.isIgnore(e))&&!(a.clipShape&&!a.clipShape.contain(t[0],t[1]))&&r.getItemVisual(e,"symbol")!=="none"}function Kf(r){return r!=null&&!H(r)&&(r={isIgnore:r}),r||{}}function qf(r){var t=r.hostModel,e=t.getModel("emphasis");return{emphasisItemStyle:e.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:e.get("focus"),blurScope:e.get("blurScope"),emphasisDisabled:e.get("disabled"),hoverScale:e.get("scale"),labelStatesModels:Ht(t),cursorStyle:t.get("cursor")}}var Yw=function(){function r(t){this.group=new Q,this._SymbolCtor=t||Lu}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=Kf(e);var a=this.group,n=t.hostModel,i=this._data,o=this._SymbolCtor,s=e.disableAnimation,l=qf(t),u={disableAnimation:s},c=e.getSymbolPoint||function(f){return t.getItemLayout(f)};i||a.removeAll(),t.diff(i).add(function(f){var v=c(f);if(fs(t,v,f,e)){var h=new o(t,f,l,u);h.setPosition(v),t.setItemGraphicEl(f,h),a.add(h)}}).update(function(f,v){var h=i.getItemGraphicEl(v),d=c(f);if(!fs(t,d,f,e)){a.remove(h);return}var p=t.getItemVisual(f,"symbol")||"circle",g=h&&h.getSymbolType&&h.getSymbolType();if(!h||g&&g!==p)a.remove(h),h=new o(t,f,l,u),h.setPosition(d);else{h.updateData(t,f,l,u);var y={x:d[0],y:d[1]};s?h.attr(y):de(h,y,n)}a.add(h),t.setItemGraphicEl(f,h)}).remove(function(f){var v=i.getItemGraphicEl(f);v&&v.fadeOut(function(){a.remove(v)},n)}).execute(),this._getSymbolPoint=c,this._data=t},r.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(a,n){var i=t._getSymbolPoint(n);a.setPosition(i),a.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=qf(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,a){this._progressiveEls=[],a=Kf(a);function n(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i0?e=a[0]:a[1]<0&&(e=a[1]),e}function Ly(r,t,e,a){var n=NaN;r.stacked&&(n=e.get(e.getCalculationInfo("stackedOverDimension"),a)),isNaN(n)&&(n=r.valueStart);var i=r.baseDataOffset,o=[];return o[i]=e.get(r.baseDim,a),o[1-i]=n,t.dataToPoint(o)}function Xw(r,t){var e=[];return t.diff(r).add(function(a){e.push({cmd:"+",idx:a})}).update(function(a,n){e.push({cmd:"=",idx:n,idx1:a})}).remove(function(a){e.push({cmd:"-",idx:a})}).execute(),e}function Kw(r,t,e,a,n,i,o,s){for(var l=Xw(r,t),u=[],c=[],f=[],v=[],h=[],d=[],p=[],g=Iy(n,t,o),y=r.getLayout("points")||[],m=t.getLayout("points")||[],_=0;_=n||p<0)break;if(Rr(y,m)){if(l){p+=i;continue}break}if(p===e)r[i>0?"moveTo":"lineTo"](y,m),f=y,v=m;else{var _=y-u,x=m-c;if(_*_+x*x<.5){p+=i;continue}if(o>0){for(var w=p+i,b=t[w*2],T=t[w*2+1];b===y&&T===m&&g=a||Rr(b,T))h=y,d=m;else{D=b-u,M=T-c;var R=y-u,E=b-y,V=m-c,X=T-m,B=void 0,F=void 0;if(s==="x"){B=Math.abs(R),F=Math.abs(E);var Y=D>0?1:-1;h=y-Y*B*o,d=m,I=y+Y*F*o,L=m}else if(s==="y"){B=Math.abs(V),F=Math.abs(X);var re=M>0?1:-1;h=y,d=m-re*B*o,I=y,L=m+re*F*o}else B=Math.sqrt(R*R+V*V),F=Math.sqrt(E*E+X*X),C=F/(F+B),h=y-D*o*(1-C),d=m-M*o*(1-C),I=y+D*o*C,L=m+M*o*C,I=jt(I,Jt(b,y)),L=jt(L,Jt(T,m)),I=Jt(I,jt(b,y)),L=Jt(L,jt(T,m)),D=I-y,M=L-m,h=y-D*B/F,d=m-M*B/F,h=jt(h,Jt(u,y)),d=jt(d,Jt(c,m)),h=Jt(h,jt(u,y)),d=Jt(d,jt(c,m)),D=y-h,M=m-d,I=y+D*F/B,L=m+M*F/B}r.bezierCurveTo(f,v,h,d,y,m),f=I,v=L}else r.lineTo(y,m)}u=y,c=m,p+=i}return g}var Py=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),qw=function(r){P(t,r);function t(e){var a=r.call(this,e)||this;return a.type="ec-polyline",a}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Py},t.prototype.buildPath=function(e,a){var n=a.points,i=0,o=n.length/2;if(a.connectNulls){for(;o>0&&Rr(n[o*2-2],n[o*2-1]);o--);for(;i=0){var x=u?(d-l)*_+l:(h-s)*_+s;return u?[e,x]:[x,e]}s=h,l=d;break;case o.C:h=i[f++],d=i[f++],p=i[f++],g=i[f++],y=i[f++],m=i[f++];var w=u?lc(s,h,p,y,e,c):lc(l,d,g,m,e,c);if(w>0)for(var b=0;b=0){var x=u?uc(l,d,g,m,T):uc(s,h,p,y,T);return u?[e,x]:[x,e]}}s=y,l=m;break}}},t}(De),jw=function(r){P(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(Py),Jw=function(r){P(t,r);function t(e){var a=r.call(this,e)||this;return a.type="ec-polygon",a}return t.prototype.getDefaultShape=function(){return new jw},t.prototype.buildPath=function(e,a){var n=a.points,i=a.stackedOnPoints,o=0,s=n.length/2,l=a.smoothMonotone;if(a.connectNulls){for(;s>0&&Rr(n[s*2-2],n[s*2-1]);s--);for(;ot){i?e.push(o(i,l,t)):n&&e.push(o(n,l,0),o(n,l,t));break}else n&&(e.push(o(n,l,0)),n=null),e.push(l),i=l}return e}function rT(r,t,e){var a=r.getVisual("visualMeta");if(!(!a||!a.length||!r.count())&&t.type==="cartesian2d"){for(var n,i,o=a.length-1;o>=0;o--){var s=r.getDimensionInfo(a[o].dimension);if(n=s&&s.coordDim,n==="x"||n==="y"){i=a[o];break}}if(!!i){var l=t.getAxis(n),u=N(i.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),c=u.length,f=i.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),f.reverse());var v=tT(u,n==="x"?e.getWidth():e.getHeight()),h=v.length;if(!h&&c)return u[0].coord<0?f[1]?f[1]:u[c-1].color:f[0]?f[0]:u[0].color;var d=10,p=v[0].coord-d,g=v[h-1].coord+d,y=g-p;if(y<.001)return"transparent";S(v,function(_){_.offset=(_.coord-p)/y}),v.push({offset:h?v[h-1].offset:.5,color:f[1]||"transparent"}),v.unshift({offset:h?v[0].offset:.5,color:f[0]||"transparent"});var m=new zl(0,0,0,0,v,!0);return m[n]=p,m[n+"2"]=g,m}}}function aT(r,t,e){var a=r.get("showAllSymbol"),n=a==="auto";if(!(a&&!n)){var i=e.getAxesByScale("ordinal")[0];if(!!i&&!(n&&nT(i,t))){var o=t.mapDimension(i.dim),s={};return S(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function nT(r,t){var e=r.getExtent(),a=Math.abs(e[1]-e[0])/r.scale.count();isNaN(a)&&(a=0);for(var n=t.count(),i=Math.max(1,Math.round(n/5)),o=0;oa)return!1;return!0}function iT(r,t){return isNaN(r)||isNaN(t)}function oT(r){for(var t=r.length/2;t>0&&iT(r[t*2-2],r[t*2-1]);t--);return t-1}function th(r,t){return[r[t*2],r[t*2+1]]}function sT(r,t,e){for(var a=r.length/2,n=e==="x"?0:1,i,o,s=0,l=-1,u=0;u=t||i>=t&&o<=t){l=u;break}s=u,i=o}return{range:[s,l],t:(t-i)/(o-i)}}function ky(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var Y=p.getState("emphasis").style;Y.lineWidth=+p.style.lineWidth+1}q(p).seriesIndex=e.seriesIndex,sr(p,X,B,F);var re=eh(e.get("smooth")),ue=e.get("smoothMonotone");if(p.setShape({smooth:re,smoothMonotone:ue,connectNulls:A}),g){var ce=l.getCalculationInfo("stackedOnSeries"),Ce=0;g.useStyle(K(c.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),ce&&(Ce=eh(ce.get("smooth"))),g.setShape({smooth:re,stackedOnSmooth:Ce,smoothMonotone:ue,connectNulls:A}),va(g,e,"areaStyle"),q(g).seriesIndex=e.seriesIndex,sr(g,X,B,F)}var ot=function(be){i._changePolyState(be)};l.eachItemGraphicEl(function(be){be&&(be.onHoverStateChange=ot)}),this._polyline.onHoverStateChange=ot,this._data=l,this._coordSys=o,this._stackedOnPoints=b,this._points=f,this._step=M,this._valueOrigin=x,e.get("triggerLineEvent")&&(this.packEventData(e,p),g&&this.packEventData(e,g))},t.prototype.packEventData=function(e,a){q(a).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,a,n,i){var o=e.getData(),s=Or(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var c=l[s*2],f=l[s*2+1];if(isNaN(c)||isNaN(f)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,f))return;var v=e.get("zlevel"),h=e.get("z");u=new Lu(o,s),u.x=c,u.y=f,u.setZ(v,h);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=v,d.z=h,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Fe.prototype.highlight.call(this,e,a,n,i)},t.prototype.downplay=function(e,a,n,i){var o=e.getData(),s=Or(o,i);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Fe.prototype.downplay.call(this,e,a,n,i)},t.prototype._changePolyState=function(e){var a=this._polygon;Ys(this._polyline,e),a&&Ys(a,e)},t.prototype._newPolyline=function(e){var a=this._polyline;return a&&this._lineGroup.remove(a),a=new qw({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(a),this._polyline=a,a},t.prototype._newPolygon=function(e,a){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new Jw({shape:{points:e,stackedOnPoints:a},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,a,n){var i,o,s=a.getBaseAxis(),l=s.inverse;a.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):a.type==="polar"&&(i=s.dim==="angle",o=!0);var u=e.hostModel,c=u.get("animationDuration");Z(c)&&(c=c(null));var f=u.get("animationDelay")||0,v=Z(f)?f(null):f;e.eachItemGraphicEl(function(h,d){var p=h;if(p){var g=[h.x,h.y],y=void 0,m=void 0,_=void 0;if(n)if(o){var x=n,w=a.pointToCoord(g);i?(y=x.startAngle,m=x.endAngle,_=-w[1]/180*Math.PI):(y=x.r0,m=x.r,_=w[0])}else{var b=n;i?(y=b.x,m=b.x+b.width,_=h.x):(y=b.y+b.height,m=b.y,_=h.y)}var T=m===y?0:(_-y)/(m-y);l&&(T=1-T);var A=Z(f)?f(d):c*T+v,C=p.getSymbolPath(),D=C.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:A}),D&&D.animateFrom({style:{opacity:0}},{duration:300,delay:A}),C.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,a,n){var i=e.getModel("endLabel");if(ky(e)){var o=e.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new ae({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=oT(l);c>=0&&(Wt(s,Ht(e,"endLabel"),{inheritColor:n,labelFetcher:e,labelDataIndex:c,defaultText:function(f,v,h){return h!=null?My(o,h):Io(o,f)},enableTextSetter:!0},lT(i,a)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,a,n,i,o,s,l){var u=this._endLabel,c=this._polyline;if(u){e<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var f=n.getLayout("points"),v=n.hostModel,h=v.get("connectNulls"),d=s.get("precision"),p=s.get("distance")||0,g=l.getBaseAxis(),y=g.isHorizontal(),m=g.inverse,_=a.shape,x=m?y?_.x:_.y+_.height:y?_.x+_.width:_.y,w=(y?p:0)*(m?-1:1),b=(y?0:-p)*(m?-1:1),T=y?"x":"y",A=sT(f,x,T),C=A.range,D=C[1]-C[0],M=void 0;if(D>=1){if(D>1&&!h){var I=th(f,C[0]);u.attr({x:I[0]+w,y:I[1]+b}),o&&(M=v.getRawValue(C[0]))}else{var I=c.getPointOn(x,T);I&&u.attr({x:I[0]+w,y:I[1]+b});var L=v.getRawValue(C[0]),R=v.getRawValue(C[1]);o&&(M=jd(n,d,L,R,A.t))}i.lastFrameIndex=C[0]}else{var E=e===1||i.lastFrameIndex>0?C[0]:0,I=th(f,E);o&&(M=v.getRawValue(E)),u.attr({x:I[0]+w,y:I[1]+b})}o&&ba(u).setLabelText(M)}},t.prototype._doUpdateAnimation=function(e,a,n,i,o,s,l){var u=this._polyline,c=this._polygon,f=e.hostModel,v=Kw(this._data,e,this._stackedOnPoints,a,this._coordSys,n,this._valueOrigin),h=v.current,d=v.stackedOnCurrent,p=v.next,g=v.stackedOnNext;if(o&&(h=Qt(v.current,n,o,l),d=Qt(v.stackedOnCurrent,n,o,l),p=Qt(v.next,n,o,l),g=Qt(v.stackedOnNext,n,o,l)),Qf(h,p)>3e3||c&&Qf(d,g)>3e3){u.stopAnimation(),u.setShape({points:p}),c&&(c.stopAnimation(),c.setShape({points:p,stackedOnPoints:g}));return}u.shape.__points=v.current,u.shape.points=h;var y={shape:{points:p}};v.current!==h&&(y.shape.__points=v.next),u.stopAnimation(),de(u,y,f),c&&(c.setShape({points:h,stackedOnPoints:d}),c.stopAnimation(),de(c,{shape:{stackedOnPoints:g}},f),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var m=[],_=v.status,x=0;x<_.length;x++){var w=_[x].cmd;if(w==="="){var b=e.getItemGraphicEl(_[x].idx1);b&&m.push({el:b,ptIdx:x})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var T=u.shape.__points,A=0;At&&(t=r[e]);return isFinite(t)?t:NaN},min:function(r){for(var t=1/0,e=0;e10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),f=a.getDevicePixelRatio(),v=Math.abs(c[1]-c[0])*(f||1),h=Math.round(s/v);if(isFinite(h)&&h>1){i==="lttb"&&t.setData(n.lttbDownSample(n.mapDimension(u.dim),1/h));var d=void 0;G(i)?d=fT[i]:Z(i)&&(d=i),d&&t.setData(n.downSample(n.mapDimension(u.dim),1/h,d,hT))}}}}}function DR(r){r.registerChartView(cT),r.registerSeriesModel(Hw),r.registerLayout(Ru("line",!0)),r.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),a=t.getModel("lineStyle").getLineStyle();a&&!a.stroke&&(a.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",a)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,Oy("line"))}var By=function(r){P(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,a){return To(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e){var a=this.coordinateSystem;if(a&&a.clampData){var n=a.dataToPoint(a.clampData(e)),i=this.getData(),o=i.getLayout("offset"),s=i.getLayout("size"),l=a.getBaseAxis().isHorizontal()?0:1;return n[l]+=o+s/2,n}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(dt);dt.registerClass(By);const ji=By;var vT=function(r){P(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(){return To(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),a=this.get("largeThreshold");return a>e&&(e=a),e},t.prototype.brushSelector=function(e,a,n){return n.rect(a.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=hr(ji.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}),t}(ji);const dT=vT;var pT=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),gT=function(r){P(t,r);function t(e){var a=r.call(this,e)||this;return a.type="sausage",a}return t.prototype.getDefaultShape=function(){return new pT},t.prototype.buildPath=function(e,a){var n=a.cx,i=a.cy,o=Math.max(a.r0||0,0),s=Math.max(a.r,0),l=(s-o)*.5,u=o+l,c=a.startAngle,f=a.endAngle,v=a.clockwise,h=Math.PI*2,d=v?f-cMath.PI/2&&cs)return!0;s=f}return!1},t.prototyp