import{_ as E}from"./tslib.60310f1a.js";import{i as $,r as tn,m as G,a as O,c as Z,e as w,b as st,d as ye,f as j,g as pt,h as rc,j as kt,k as lb,l as z,n as X,L as Tm,o as vn,p as Yt,P as Tt,q as ac,s as ub,t as mt,u as cb,Z as Ne,v as vb,w as fb,x as hb,y as pb,z as vv,A as as,T as Ya,B as Ni,C as Pe,D as J,E as U,F as db,G as ur,H as Cm,S as Re,R as Gs,I as Ee,J as me,K as ft,M as te,N as Fs,O as fv,Q as tt,U as ct,V as gb,W as Dm,X as Hs,Y as yb,_ as xt,$ as ns,a0 as Gt,a1 as Oi,a2 as nt,a3 as q,a4 as qt,a5 as Mm,a6 as Q,a7 as ke,a8 as bt,a9 as W,aa as is,ab as os,ac as fe,ad as nc,ae as mb,af as ss,ag as Sb,ah as fn,ai as Jf,aj as Sl,ak as xb,al as en,am as ls,an as _b,ao as aa,ap as Im,aq as Lm,ar as Ws,as as Pm,at as oa,au as xl,av as bb,aw as wb,ax as io,ay as Qf,az as th,aA as Ab,aB as Vi,aC as jt,aD as Bi,aE as Tb,aF as eh,aG as kr,aH as Cb,aI as Db,aJ as Mb,aK as ga,aL as Ib,aM as hn,aN as ue,aO as hv,aP as Rm,aQ as ya,aR as Lb,aS as _l,aT as $o,aU as Em,aV as ai,aW as us,aX as Lr,aY as Pb,aZ as Za,a_ as rh,a$ as $s,b0 as Rb,b1 as ic,b2 as Eb,b3 as km,b4 as kb,b5 as Nb,b6 as Ob,b7 as Vb,b8 as ah,b9 as Bb,ba as pi,bb as zb,bc as Nm,bd as nh,be as Gb,bf as Fb,bg as Hb,bh as Wb,bi as $b,bj as Ub,bk as Yb,bl as Zb,bm as Xb,bn as Kb}from"./zrender.3760070d.js";var ih=1e-4,Om=20;function qb(r){return r.replace(/^\s+|\s+$/g,"")}function dt(r,e,t,a){var n=e[0],i=e[1],o=t[0],s=t[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 F(r,e){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return $(r)?qb(r).match(/%$/)?parseFloat(r)/100*e:parseFloat(r):r==null?NaN:+r}function Nt(r,e,t){return e==null&&(e=10),e=Math.min(Math.max(0,e),Om),r=(+r).toFixed(e),t?r:+r}function Ie(r){return r.sort(function(e,t){return e-t}),r}function Ke(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var e=1,t=0;t<15;t++,e*=10)if(Math.round(r*e)/e===r)return t}return jb(r)}function jb(r){var e=r.toString().toLowerCase(),t=e.indexOf("e"),a=t>0?+e.slice(t+1):0,n=t>0?t:e.length,i=e.indexOf("."),o=i<0?0:n-1-i;return Math.max(0,o-a)}function Vm(r,e){var t=Math.log,a=Math.LN10,n=Math.floor(t(r[1]-r[0])/a),i=Math.round(t(Math.abs(e[1]-e[0]))/a),o=Math.min(Math.max(-n+i,0),20);return isFinite(o)?o:20}function Jb(r,e,t){if(!r[e])return 0;var a=tn(r,function(p,d){return p+(isNaN(d)?0:d)},0);if(a===0)return 0;for(var n=Math.pow(10,t),i=G(r,function(p){return(isNaN(p)?0:p)/a*n*100}),o=n*100,s=G(i,function(p){return Math.floor(p)}),l=tn(s,function(p,d){return p+d},0),u=G(i,function(p,d){return p-s[d]});lc&&(c=u[f],v=f);++s[v],u[v]=0,++l}return s[e]/n}function Qb(r,e){var t=Math.max(Ke(r),Ke(e)),a=r+e;return t>Om?a:Nt(a,t)}var oh=9007199254740991;function Bm(r){var e=Math.PI*2;return(r%e+e)%e}function cs(r){return r>-ih&&r=10&&e++,e}function zm(r,e){var t=pv(r),a=Math.pow(10,t),n=r/a,i;return e?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,t>=-20?+r.toFixed(t<0?-t:0):r}function bl(r,e){var t=(r.length-1)*e+1,a=Math.floor(t),n=+r[a-1],i=t-a;return i?n+i*(r[a]-n):n}function sh(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,t=1,a=0;a=0||i&&st(i,l)<0)){var u=a.getShallow(l,e);u!=null&&(o[r[s][0]]=u)}}return o}}var Tw=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],Cw=xa(Tw),Dw=function(){function r(){}return r.prototype.getAreaStyle=function(e,t){return Cw(this,e,t)},r}(),K=ut(),sc=function(r,e,t,a){if(a){var n=K(a);n.dataIndex=t,n.dataType=e,n.seriesIndex=r,a.type==="group"&&a.traverse(function(i){var o=K(i);o.seriesIndex=r,o.dataIndex=t,o.dataType=e})}},vh=1,fh={},jm=ut(),mv=ut(),Sv=0,Gi=1,Ys=2,he=["emphasis","blur","select"],gi=["normal","emphasis","blur","select"],dn=10,Mw=9,ua="highlight",Uo="downplay",oi="select",Yo="unselect",si="toggleSelect";function La(r){return r!=null&&r!=="none"}var hh=new Tm(100);function ph(r){if($(r)){var e=hh.get(r);return e||(e=ac(r,-.1),hh.put(r,e)),e}else if(ub(r)){var t=z({},r);return t.colorStops=G(r.colorStops,function(a){return{offset:a.offset,color:ac(a.color,-.1)}}),t}return r}function Zs(r,e,t){r.onHoverStateChange&&(r.hoverState||0)!==t&&r.onHoverStateChange(e),r.hoverState=t}function Jm(r){Zs(r,"emphasis",Ys)}function Qm(r){r.hoverState===Ys&&Zs(r,"normal",Sv)}function xv(r){Zs(r,"blur",Gi)}function t0(r){r.hoverState===Gi&&Zs(r,"normal",Sv)}function Iw(r){r.selected=!0}function Lw(r){r.selected=!1}function dh(r,e,t){e(r,t)}function gr(r,e,t){dh(r,e,t),r.isGroup&&r.traverse(function(a){dh(a,e,t)})}function vs(r,e){switch(e){case"emphasis":r.hoverState=Ys;break;case"normal":r.hoverState=Sv;break;case"blur":r.hoverState=Gi;break;case"select":r.selected=!0}}function Pw(r,e,t,a){for(var n=r.style,i={},o=0;o=0,i=!1;if(r instanceof Tt){var o=jm(r),s=n&&o.selectFill||o.normalFill,l=n&&o.selectStroke||o.normalStroke;if(La(s)||La(l)){a=a||{};var u=a.style||{};u.fill==="inherit"?(i=!0,a=z({},a),u=z({},u),u.fill=s):!La(u.fill)&&La(s)?(i=!0,a=z({},a),u=z({},u),u.fill=ph(s)):!La(u.stroke)&&La(l)&&(i||(a=z({},a),u=z({},u)),u.stroke=ph(l)),a.style=u}}if(a&&a.z2==null){i||(a=z({},a));var c=r.z2EmphasisLift;a.z2=r.z2+(c!=null?c:dn)}return a}function Ew(r,e,t){if(t&&t.z2==null){t=z({},t);var a=r.z2SelectLift;t.z2=r.z2+(a!=null?a:Mw)}return t}function kw(r,e,t){var a=st(r.currentStates,e)>=0,n=r.style.opacity,i=a?null:Pw(r,["opacity"],e,{opacity:1});t=t||{};var o=t.style||{};return o.opacity==null&&(t=z({},t),o=z({opacity:a?n:i.opacity*.1},o),t.style=o),t}function wl(r,e){var t=this.states[r];if(this.style){if(r==="emphasis")return Rw(this,r,e,t);if(r==="blur")return kw(this,r,t);if(r==="select")return Ew(this,r,t)}return t}function _a(r){r.stateProxy=wl;var e=r.getTextContent(),t=r.getTextGuideLine();e&&(e.stateProxy=wl),t&&(t.stateProxy=wl)}function gh(r,e){!n0(r,e)&&!r.__highByOuter&&gr(r,Jm)}function yh(r,e){!n0(r,e)&&!r.__highByOuter&&gr(r,Qm)}function vr(r,e){r.__highByOuter|=1<<(e||0),gr(r,Jm)}function fr(r,e){!(r.__highByOuter&=~(1<<(e||0)))&&gr(r,Qm)}function e0(r){gr(r,xv)}function _v(r){gr(r,t0)}function r0(r){gr(r,Iw)}function a0(r){gr(r,Lw)}function n0(r,e){return r.__highDownSilentOnTouch&&e.zrByTouch}function i0(r){var e=r.getModel(),t=[],a=[];e.eachComponent(function(n,i){var o=mv(i),s=n==="series",l=s?r.getViewOfSeriesModel(i):r.getViewOfComponentModel(i);!s&&a.push(l),o.isBlured&&(l.group.traverse(function(u){t0(u)}),s&&t.push(i)),o.isBlured=!1}),w(a,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(t,!1,e)})}function lc(r,e,t,a){var n=a.getModel();t=t||"coordinateSystem";function i(u,c){for(var v=0;v0){var s={dataIndex:o,seriesIndex:t.seriesIndex};i!=null&&(s.dataType=i),e.push(s)}})}),e}function ca(r,e,t){sa(r,!0),gr(r,_a),cc(r,e,t)}function Gw(r){sa(r,!1)}function Ot(r,e,t,a){a?Gw(r):ca(r,e,t)}function cc(r,e,t){var a=K(r);e!=null?(a.focus=e,a.blurScope=t):a.focus&&(a.focus=null)}var Sh=["emphasis","blur","select"],Fw={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function re(r,e,t,a){t=t||"itemStyle";for(var n=0;n0){var v=c.duration,f=c.delay,h=c.easing,p={duration:v,delay:f||0,easing:h,done:i,force:!!i||!!o,setToFinal:!u,scope:r,during:o};s?e.animateFrom(t,p):e.animateTo(t,p)}else e.stopAnimation(),!s&&e.attr(t),o&&o(1),i&&i()}function lt(r,e,t,a,n,i){wv("update",r,e,t,a,n,i)}function It(r,e,t,a,n,i){wv("enter",r,e,t,a,n,i)}function qa(r){if(!r.__zr)return!0;for(var e=0;eMath.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function bh(r){return!r.isGroup}function jw(r){return r.shape!=null}function Fi(r,e,t){if(!r||!e)return;function a(o){var s={};return o.traverse(function(l){bh(l)&&l.anid&&(s[l.anid]=l)}),s}function n(o){var s={x:o.x,y:o.y,rotation:o.rotation};return jw(o)&&(s.shape=z({},o.shape)),s}var i=a(r);e.traverse(function(o){if(bh(o)&&o.anid){var s=i[o.anid];if(s){var l=n(o);o.attr(n(s)),lt(o,l,t,K(o).dataIndex)}}})}function c0(r,e){return G(r,function(t){var a=t[0];a=fs(a,e.x),a=hs(a,e.x+e.width);var n=t[1];return n=fs(n,e.y),n=hs(n,e.y+e.height),[a,n]})}function Jw(r,e){var t=fs(r.x,e.x),a=hs(r.x+r.width,e.x+e.width),n=fs(r.y,e.y),i=hs(r.y+r.height,e.y+e.height);if(a>=t&&i>=n)return{x:t,y:n,width:a-t,height:i-n}}function Hi(r,e,t){var a=z({rectHover:!0},e),n=a.style={strokeNoScale:!0};if(t=t||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(n.image=r.slice(8),J(n,t),new Ne(a)):Xs(r.replace("path://",""),a,t,"center")}function qn(r,e,t,a,n){for(var i=0,o=n[n.length-1];i1)return!1;var g=Al(h,p,c,v)/f;return!(g<0||g>1)}function Al(r,e,t,a){return r*a-t*e}function Qw(r){return r<=1e-6&&r>=-1e-6}function yn(r){var e=r.itemTooltipOption,t=r.componentModel,a=r.itemName,n=$(e)?{formatter:e}:e,i=t.mainType,o=t.componentIndex,s={componentType:i,name:a,$vars:["name"]};s[i+"Index"]=o;var l=r.formatterParamsExtra;l&&w(Yt(l),function(c){U(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=K(r.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:a,option:J({content:a,formatterParams:s},n)}}function wh(r,e){var t;r.isGroup&&(t=e(r)),t||r.traverse(e)}function Hr(r,e){if(r)if(O(r))for(var t=0;t=0&&s.push(l)}),s}}function Wr(r,e){return nt(nt({},r,!0),e,!0)}const fA={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:". "}}}},hA={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 ds="ZH",Tv="EN",Si=Tv,Xo={},Cv={},m0=kt.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return r.indexOf(ds)>-1?ds:Si}():Si;function S0(r,e){r=r.toUpperCase(),Cv[r]=new wt(e),Xo[r]=e}function pA(r){if($(r)){var e=Xo[r.toUpperCase()]||{};return r===ds||r===Tv?q(e):nt(q(e),q(Xo[Si]),!1)}else return nt(q(r),q(Xo[Si]),!1)}function pc(r){return Cv[r]}function dA(){return Cv[Si]}S0(Tv,fA);S0(ds,hA);var Dv=1e3,Mv=Dv*60,li=Mv*60,Me=li*24,Mh=Me*365,jn={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}"},oo="{yyyy}-{MM}-{dd}",Ih={year:"{yyyy}",month:"{yyyy}-{MM}",day:oo,hour:oo+" "+jn.hour,minute:oo+" "+jn.minute,second:oo+" "+jn.second,millisecond:jn.none},Dl=["year","month","day","hour","minute","second","millisecond"],x0=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Ur(r,e){return r+="","0000".substr(0,e-r.length)+r}function ja(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 gA(r){return r===ja(r)}function yA(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function js(r,e,t,a){var n=tr(r),i=n[Iv(t)](),o=n[Ja(t)]()+1,s=Math.floor((o-1)/3)+1,l=n[Js(t)](),u=n["get"+(t?"UTC":"")+"Day"](),c=n[xi(t)](),v=(c-1)%12+1,f=n[Qs(t)](),h=n[tl(t)](),p=n[el(t)](),d=a instanceof wt?a:pc(a||m0)||dA(),g=d.getModel("time"),y=g.get("month"),m=g.get("monthAbbr"),S=g.get("dayOfWeek"),x=g.get("dayOfWeekAbbr");return(e||"").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,Ur(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Ur(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,S[u]).replace(/{ee}/g,x[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Ur(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Ur(v+"",2)).replace(/{h}/g,v+"").replace(/{mm}/g,Ur(f,2)).replace(/{m}/g,f+"").replace(/{ss}/g,Ur(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,Ur(p,3)).replace(/{S}/g,p+"")}function mA(r,e,t,a,n){var i=null;if($(t))i=t;else if(X(t))i=t(r.value,e,{level:r.level});else{var o=z({},jn);if(r.level>0)for(var s=0;s=0;--s)if(l[u]){i=l[u];break}i=i||o.none}if(O(i)){var v=r.level==null?0:r.level>=0?r.level:i.length+r.level;v=Math.min(v,i.length-1),i=i[v]}}return js(new Date(r.value),i,n,a)}function _0(r,e){var t=tr(r),a=t[Ja(e)]()+1,n=t[Js(e)](),i=t[xi(e)](),o=t[Qs(e)](),s=t[tl(e)](),l=t[el(e)](),u=l===0,c=u&&s===0,v=c&&o===0,f=v&&i===0,h=f&&n===1,p=h&&a===1;return p?"year":h?"month":f?"day":v?"hour":c?"minute":u?"second":"millisecond"}function Lh(r,e,t){var a=pt(r)?tr(r):r;switch(e=e||_0(r,t),e){case"year":return a[Iv(t)]();case"half-year":return a[Ja(t)]()>=6?1:0;case"quarter":return Math.floor((a[Ja(t)]()+1)/4);case"month":return a[Ja(t)]();case"day":return a[Js(t)]();case"half-day":return a[xi(t)]()/24;case"hour":return a[xi(t)]();case"minute":return a[Qs(t)]();case"second":return a[tl(t)]();case"millisecond":return a[el(t)]()}}function Iv(r){return r?"getUTCFullYear":"getFullYear"}function Ja(r){return r?"getUTCMonth":"getMonth"}function Js(r){return r?"getUTCDate":"getDate"}function xi(r){return r?"getUTCHours":"getHours"}function Qs(r){return r?"getUTCMinutes":"getMinutes"}function tl(r){return r?"getUTCSeconds":"getSeconds"}function el(r){return r?"getUTCMilliseconds":"getMilliseconds"}function SA(r){return r?"setUTCFullYear":"setFullYear"}function b0(r){return r?"setUTCMonth":"setMonth"}function w0(r){return r?"setUTCDate":"setDate"}function A0(r){return r?"setUTCHours":"setHours"}function T0(r){return r?"setUTCMinutes":"setMinutes"}function C0(r){return r?"setUTCSeconds":"setSeconds"}function D0(r){return r?"setUTCMilliseconds":"setMilliseconds"}function M0(r){if(!Gm(r))return $(r)?r:"-";var e=(r+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function I0(r,e){return r=(r||"").toLowerCase().replace(/-(.)/g,function(t,a){return a.toUpperCase()}),e&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var xn=Mm,xA=/([&<>"'])/g,_A={"&":"&","<":"<",">":">",'"':""","'":"'"};function ge(r){return r==null?"":(r+"").replace(xA,function(e,t){return _A[t]})}function dc(r,e,t){var a="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function n(c){return c&&Oi(c)?c:"-"}function i(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=e==="time",s=r instanceof Date;if(o||s){var l=o?tr(r):r;if(isNaN(+l)){if(s)return"-"}else return js(l,a,t)}if(e==="ordinal")return rc(r)?n(r):pt(r)&&i(r)?r+"":"-";var u=cr(r);return i(u)?M0(u):rc(r)?n(r):typeof r=="boolean"?r+"":"-"}var Ph=["a","b","c","d","e","f","g"],Ml=function(r,e){return"{"+r+(e==null?"":e)+"}"};function L0(r,e,t){O(e)||(e=[e]);var a=e.length;if(!a)return"";for(var n=e[0].$vars||[],i=0;i':'';var o=t.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 ba(r,e){return e=e||"transparent",$(r)?r:j(r)&&r.colorStops&&(r.colorStops[0]||{}).color||e}function gs(r,e){if(e==="_blank"||e==="blank"){var t=window.open();t.opener=null,t.location.href=r}else window.open(r,e)}var Ko=w,P0=["left","right","top","bottom","width","height"],la=[["width","left","right"],["height","top","bottom"]];function Lv(r,e,t,a,n){var i=0,o=0;a==null&&(a=1/0),n==null&&(n=1/0);var s=0;e.eachChild(function(l,u){var c=l.getBoundingRect(),v=e.childAt(u+1),f=v&&v.getBoundingRect(),h,p;if(r==="horizontal"){var d=c.width+(f?-f.x+c.x:0);h=i+d,h>a||l.newline?(i=0,h=d,o+=s+t,s=c.height):s=Math.max(s,c.height)}else{var g=c.height+(f?-f.y+c.y:0);p=o+g,p>n||l.newline?(i+=s+t,o=0,p=g,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),r==="horizontal"?i=h+t:o=p+t)})}var fa=Lv;Q(Lv,"vertical");Q(Lv,"horizontal");function AA(r,e,t){var a=e.width,n=e.height,i=F(r.left,a),o=F(r.top,n),s=F(r.right,a),l=F(r.bottom,n);return(isNaN(i)||isNaN(parseFloat(r.left)))&&(i=0),(isNaN(s)||isNaN(parseFloat(r.right)))&&(s=a),(isNaN(o)||isNaN(parseFloat(r.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(r.bottom)))&&(l=n),t=xn(t||0),{width:Math.max(s-i-t[1]-t[3],0),height:Math.max(l-o-t[0]-t[2],0)}}function Ut(r,e,t){t=xn(t||0);var a=e.width,n=e.height,i=F(r.left,a),o=F(r.top,n),s=F(r.right,a),l=F(r.bottom,n),u=F(r.width,a),c=F(r.height,n),v=t[2]+t[0],f=t[1]+t[3],h=r.aspect;switch(isNaN(u)&&(u=a-s-f-i),isNaN(c)&&(c=n-l-v-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-f),isNaN(o)&&(o=n-l-c-v),r.left||r.right){case"center":i=a/2-u/2-t[3];break;case"right":i=a-u-f;break}switch(r.top||r.bottom){case"middle":case"center":o=n/2-c/2-t[0];break;case"bottom":o=n-c-v;break}i=i||0,o=o||0,isNaN(u)&&(u=a-f-i-(s||0)),isNaN(c)&&(c=n-v-o-(l||0));var p=new xt(i+t[3],o+t[0],u,c);return p.margin=t,p}function rl(r,e,t,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 xt(0,0,+e.width||0,+e.height||0):r.getBoundingRect();else if(u=r.getBoundingRect(),r.needLocalTransform()){var c=r.getLocalTransform();u=u.clone(),u.applyTransform(c)}var v=Ut(J({width:u.width,height:u.height},e),t,a),f=o?v.x-u.x:0,h=s?v.y-u.y:0;return l==="raw"?(i.x=f,i.y=h):(i.x+=f,i.y+=h),i===r&&r.markRedraw(),!0}function TA(r,e){return r[la[e][0]]!=null||r[la[e][1]]!=null&&r[la[e][2]]!=null}function _i(r){var e=r.layoutMode||r.constructor.layoutMode;return j(e)?e:e?{type:e}:null}function Or(r,e,t){var a=t&&t.ignoreSize;!O(a)&&(a=[a,a]);var n=o(la[0],0),i=o(la[1],1);u(la[0],r,n),u(la[1],r,i);function o(c,v){var f={},h=0,p={},d=0,g=2;if(Ko(c,function(S){p[S]=r[S]}),Ko(c,function(S){s(e,S)&&(f[S]=p[S]=e[S]),l(f,S)&&h++,l(p,S)&&d++}),a[v])return l(e,c[1])?p[c[2]]=null:l(e,c[2])&&(p[c[1]]=null),p;if(d===g||!h)return p;if(h>=g)return f;for(var y=0;y=0;l--)s=nt(s,n[l],!0);a.defaultOption=s}return a.defaultOption},e.prototype.getReferringComponents=function(t,a){var n=t+"Index",i=t+"Id";return zi(this.ecModel,t,{index:this.get(n,!0),id:this.get(i,!0)},a)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(wt);qm(bn,wt);Us(bn);cA(bn);vA(bn,DA);function DA(r){var e=[];return w(bn.getClassesByMainType(r),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=G(e,function(t){return qe(t).main}),r!=="dataset"&&st(e,"dataset")<=0&&e.unshift("dataset"),e}const ot=bn;var E0="";typeof navigator<"u"&&(E0=navigator.platform||"");var Pa="rgba(0, 0, 0, 0.2)";const MA={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Pa,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Pa,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Pa,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Pa,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Pa,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Pa,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:E0.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 k0=Z(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),Oe="original",oe="arrayRows",Ve="objectRows",er="keyedColumns",Pr="typedArray",N0="unknown",Qe="column",wn="row",Qt={Must:1,Might:2,Not:3},O0=ut();function IA(r){O0(r).datasetMap=Z()}function V0(r,e,t){var a={},n=Rv(e);if(!n||!r)return a;var i=[],o=[],s=e.ecModel,l=O0(s).datasetMap,u=n.uid+"_"+t.seriesLayoutBy,c,v;r=r.slice(),w(r,function(d,g){var y=j(d)?d:r[g]={name:d};y.type==="ordinal"&&c==null&&(c=g,v=p(y)),a[y.name]=[]});var f=l.get(u)||l.set(u,{categoryWayDim:v,valueWayDim:0});w(r,function(d,g){var y=d.name,m=p(d);if(c==null){var S=f.valueWayDim;h(a[y],S,m),h(o,S,m),f.valueWayDim+=m}else if(c===g)h(a[y],0,m),h(i,0,m);else{var S=f.categoryWayDim;h(a[y],S,m),h(o,S,m),f.categoryWayDim+=m}});function h(d,g,y){for(var m=0;me)return r[a];return r[t-1]}function G0(r,e,t,a,n,i,o){i=i||r;var s=e(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(n))return u[n];var c=o==null||!a?t:kA(a,o);if(c=c||t,!(!c||!c.length)){var v=c[l];return n&&(u[n]=v),s.paletteIdx=(l+1)%c.length,v}}function NA(r,e){e(r).paletteIdx=0,e(r).paletteNameMap={}}var so,In,Eh,kh="\0_ec_inner",OA=1,F0=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(t,a,n,i,o,s){i=i||{},this.option=null,this._theme=new wt(i),this._locale=new wt(o),this._optionManager=s},e.prototype.setOption=function(t,a,n){var i=Vh(a);this._optionManager.setOption(t,n,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,a){return this._resetOption(t,Vh(a))},e.prototype._resetOption=function(t,a){var n=!1,i=this._optionManager;if(!t||t==="recreate"){var o=i.mountOption(t==="recreate");!this.option||t==="recreate"?Eh(this,o):(this.restoreData(),this._mergeOption(o,a)),n=!0}if((t==="timeline"||t==="media")&&this.restoreData(),!t||t==="recreate"||t==="timeline"){var s=i.getTimelineOption(this);s&&(n=!0,this._mergeOption(s,a))}if(!t||t==="recreate"||t==="media"){var l=i.getMediaOption(this);l.length&&w(l,function(u){n=!0,this._mergeOption(u,a)},this)}return n},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,a){var n=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=Z(),u=a&&a.replaceMergeMainTypeMap;IA(this),w(t,function(v,f){v!=null&&(ot.hasClass(f)?f&&(s.push(f),l.set(f,!0)):n[f]=n[f]==null?q(v):nt(n[f],v,!0))}),u&&u.each(function(v,f){ot.hasClass(f)&&!l.get(f)&&(s.push(f),l.set(f,!0))}),ot.topologicalTravel(s,ot.getAllClassMainTypes(),c,this);function c(v){var f=RA(this,v,yt(t[v])),h=i.get(v),p=h?u&&u.get(v)?"replaceMerge":"normalMerge":"replaceAll",d=Um(h,f,p);cw(d,v,ot),n[v]=null,i.set(v,null),o.set(v,0);var g=[],y=[],m=0,S;w(d,function(x,b){var _=x.existing,A=x.newOption;if(!A)_&&(_.mergeOption({},this),_.optionUpdated({},!1));else{var T=v==="series",C=ot.getClass(v,x.keyInfo.subType,!T);if(!C)return;if(v==="tooltip"){if(S)return;S=!0}if(_&&_.constructor===C)_.name=x.keyInfo.name,_.mergeOption(A,this),_.optionUpdated(A,!1);else{var M=z({componentIndex:b},x.keyInfo);_=new C(A,this,this,M),z(_,M),x.brandNew&&(_.__requireNewView=!0),_.init(A,this,this),_.optionUpdated(null,!0)}}_?(g.push(_.option),y.push(_),m++):(g.push(void 0),y.push(void 0))},this),n[v]=g,i.set(v,y),o.set(v,m),v==="series"&&so(this)}this._seriesIndices||so(this)},e.prototype.getOption=function(){var t=q(this.option);return w(t,function(a,n){if(ot.hasClass(n)){for(var i=yt(a),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!di(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,t[n]=i}}),delete t[kh],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,a){var n=this._componentsMap.get(t);if(n){var i=n[a||0];if(i)return i;if(a==null){for(var o=0;o=e:t==="max"?r<=e:r===e}function ZA(r,e){return r.join(",")===e.join(",")}const XA=WA;var Be=w,bi=j,Bh=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Ll(r){var e=r&&r.itemStyle;if(!!e)for(var t=0,a=Bh.length;t=0;g--){var y=r[g];if(s||(p=y.data.rawIndexOf(y.stackedByDimension,h)),p>=0){var m=y.data.getByRawIndex(y.stackResultDimension,p);if(l==="all"||l==="positive"&&m>0||l==="negative"&&m<0||l==="samesign"&&f>=0&&m>0||l==="samesign"&&f<=0&&m<0){f=Qb(f,m),d=m;break}}}return a[0]=f,a[1]=d,a})})}var al=function(){function r(e){this.data=e.data||(e.sourceFormat===er?{}:[]),this.sourceFormat=e.sourceFormat||N0,this.seriesLayoutBy=e.seriesLayoutBy||Qe,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var a=0;ad&&(d=S)}h[0]=p,h[1]=d}},n=function(){return this._data?this._data.length/this._dimSize:0};Uh=(e={},e[oe+"_"+Qe]={pure:!0,appendData:i},e[oe+"_"+wn]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Ve]={pure:!0,appendData:i},e[er]={pure:!0,appendData:function(o){var s=this._data;w(o,function(l,u){for(var c=s[u]||(s[u]=[]),v=0;v<(l||[]).length;v++)c.push(l[v])})}},e[Oe]={appendData:i},e[Pr]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(o){for(var s=0;s=0&&(d=o.interpolatedValue[g])}return d!=null?d+"":""})}},r.prototype.getRawValue=function(e,t){return rn(this.getData(t),e)},r.prototype.formatTooltip=function(e,t,a){},r}();function Kh(r){var e,t;return j(r)?r.type&&(t=r):e=r,{text:e,frag:t}}function ui(r){return new vT(r)}var vT=function(){function r(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return r.prototype.perform=function(e){var t=this._upstream,a=e&&e.skip;if(this._dirty&&t){var n=this.context;n.data=n.outputData=t.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(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(i="reset");function c(m){return!(m>=1)&&(m=1),m}var v;(this._dirty||i==="reset")&&(this._dirty=!1,v=this._doReset(a)),this._modBy=l,this._modDataCount=u;var f=e&&e.step;if(t?this._dueEnd=t._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,p=Math.min(f!=null?this._dueIndex+f:1/0,this._dueEnd);if(!a&&(v||h1&&a>0?s:o}};return i;function o(){return e=r?null:le},gte:function(r,e){return r>=e}},hT=function(){function r(e,t){if(!pt(t)){var a="";ht(a)}this._opFn=Q0[e],this._rvalFloat=cr(t)}return r.prototype.evaluate=function(e){return pt(e)?this._opFn(e,this._rvalFloat):this._opFn(cr(e),this._rvalFloat)},r}(),tS=function(){function r(e,t){var a=e==="desc";this._resultLT=a?1:-1,t==null&&(t=a?"min":"max"),this._incomparable=t==="min"?-1/0:1/0}return r.prototype.evaluate=function(e,t){var a=pt(e)?e:cr(e),n=pt(t)?t:cr(t),i=isNaN(a),o=isNaN(n);if(i&&(a=this._incomparable),o&&(n=this._incomparable),i&&o){var s=$(e),l=$(t);s&&(a=l?e:0),l&&(n=s?t:0)}return an?-this._resultLT:0},r}(),pT=function(){function r(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=cr(t)}return r.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var a=typeof e;a!==this._rvalTypeof&&(a==="number"||this._rvalTypeof==="number")&&(t=cr(e)===this._rvalFloat)}return this._isEQ?t:!t},r}();function dT(r,e){return r==="eq"||r==="ne"?new pT(r==="eq",e):U(Q0,r)?new hT(r,e):null}var gT=function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(e){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(e){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(e,t){},r.prototype.retrieveValueFromItem=function(e,t){},r.prototype.convertValue=function(e,t){return Rr(e,t)},r}();function yT(r,e){var t=new gT,a=r.data,n=t.sourceFormat=r.sourceFormat,i=r.startIndex,o="";r.seriesLayoutBy!==Qe&&ht(o);var s=[],l={},u=r.dimensionsDefine;if(u)w(u,function(d,g){var y=d.name,m={index:g,name:y,displayName:d.displayName};if(s.push(m),y!=null){var S="";U(l,y)&&ht(S),l[y]=m}});else for(var c=0;c65535?TT:CT}function Ra(){return[1/0,-1/0]}function DT(r){var e=r.constructor;return e===Array?r.slice():new e(r)}function Jh(r,e,t,a,n){var i=aS[t||"float"];if(n){var o=r[e],s=o&&o.length;if(s!==a){for(var l=new i(a),u=0;ug[1]&&(g[1]=d)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(e,t,a){for(var n=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=G(o,function(m){return m.property}),c=0;cy[1]&&(y[1]=g)}}!n.persistent&&n.clean&&n.clean(),this._rawCount=this._count=t,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(e,t){if(!(t>=0&&t=0&&t=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,a=t[e];if(a!=null&&ae)i=o-1;else return o}return-1},r.prototype.indicesOfNearest=function(e,t,a){var n=this._chunks,i=n[e],o=[];if(!i)return o;a==null&&(a=1/0);for(var s=1/0,l=-1,u=0,c=0,v=this.count();c=0&&l<0)&&(s=p,l=h,u=0),h===l&&(o[u++]=c))}return o.length=u,o},r.prototype.getIndices=function(){var e,t=this._indices;if(t){var a=t.constructor,n=this._count;if(a===Array){e=new a(n);for(var i=0;i=v&&m<=f||isNaN(m))&&(l[u++]=d),d++}p=!0}else if(i===2){for(var g=h[n[0]],S=h[n[1]],x=e[n[1]][0],b=e[n[1]][1],y=0;y=v&&m<=f||isNaN(m))&&(_>=x&&_<=b||isNaN(_))&&(l[u++]=d),d++}p=!0}}if(!p)if(i===1)for(var y=0;y=v&&m<=f||isNaN(m))&&(l[u++]=A)}else for(var y=0;ye[M][1])&&(T=!1)}T&&(l[u++]=t.getRawIndex(y))}return uy[1]&&(y[1]=g)}}}},r.prototype.lttbDownSample=function(e,t){var a=this.clone([e],!0),n=a._chunks,i=n[e],o=this.count(),s=0,l=Math.floor(1/t),u=this.getRawIndex(0),c,v,f,h=new(Pn(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var p=1;pc&&(c=v,f=x)}D>0&&Dc-p&&(l=c-p,s.length=l);for(var d=0;dv[1]&&(v[1]=y),f[h++]=m}return i._count=h,i._indices=f,i._updateGetRawIdx(),i},r.prototype.each=function(e,t){if(!!this._count)for(var a=e.length,n=this._chunks,i=0,o=this.count();il&&(l=v)}return o=[s,l],this._extent[e]=o,o},r.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var a=[],n=this._chunks,i=0;i=0?this._indices[e]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function e(t,a,n,i){return Rr(t[i],this._dimensions[i])}El={arrayRows:e,objectRows:function(t,a,n,i){return Rr(t[a],this._dimensions[i])},keyedColumns:e,original:function(t,a,n,i){var o=t&&(t.value==null?t:t.value);return Rr(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(t,a,n,i){return t[i]}}}(),r}(),nS=function(){function r(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,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 e=this._sourceHost,t=this._getUpstreamSourceManagers(),a=!!t.length,n,i;if(lo(e)){var o=e,s=void 0,l=void 0,u=void 0;if(a){var c=t[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,i=[c._getVersionSign()]}else s=o.get("data",!0),l=ke(s)?Pr:Oe,i=[];var v=this._getSourceMetaRawOption()||{},f=u&&u.metaRawOption||{},h=mt(v.seriesLayoutBy,f.seriesLayoutBy)||null,p=mt(v.sourceHeader,f.sourceHeader),d=mt(v.dimensions,f.dimensions),g=h!==f.seriesLayoutBy||!!p!=!!f.sourceHeader||d;n=g?[mc(s,{seriesLayoutBy:h,sourceHeader:p,dimensions:d},l)]:[]}else{var y=e;if(a){var m=this._applyTransform(t);n=m.sourceList,i=m.upstreamSignList}else{var S=y.get("source",!0);n=[mc(S,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(n,i)},r.prototype._applyTransform=function(e){var t=this._sourceHost,a=t.get("transform",!0),n=t.get("fromTransformResult",!0);if(n!=null){var i="";e.length!==1&&tp(i)}var o,s=[],l=[];return w(e,function(u){u.prepareSource();var c=u.getSource(n||0),v="";n!=null&&!c&&tp(v),s.push(c),l.push(u._getVersionSign())}),a?o=wT(a,s,{datasetIndex:t.componentIndex}):n!=null&&(o=[nT(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t1||t>0&&!r.noHeader;return w(r.blocks,function(n){var i=lS(n);i>=e&&(e=i+ +(a&&(!i||xc(n)&&!n.noHeader)))}),e}return 0}function LT(r,e,t,a){var n=e.noHeader,i=RT(lS(e)),o=[],s=e.blocks||[];ye(!s||O(s)),s=s||[];var l=r.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(U(u,l)){var c=new tS(u[l],null);s.sort(function(p,d){return c.evaluate(p.sortParam,d.sortParam)})}else l==="seriesDesc"&&s.reverse()}w(s,function(p,d){var g=e.valueFormatter,y=sS(p)(g?z(z({},r),{valueFormatter:g}):r,p,d>0?i.html:0,a);y!=null&&o.push(y)});var v=r.renderMode==="richText"?o.join(i.richText):_c(o.join(""),n?t:i.html);if(n)return v;var f=dc(e.header,"ordinal",r.useUTC),h=oS(a,r.renderMode).nameStyle;return r.renderMode==="richText"?uS(r,f,h)+i.richText+v:_c('
'+ge(f)+"
"+v,t)}function PT(r,e,t,a){var n=r.renderMode,i=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=r.useUTC,c=e.valueFormatter||r.valueFormatter||function(x){return x=O(x)?x:[x],G(x,function(b,_){return dc(b,O(h)?h[_]:h,u)})};if(!(i&&o)){var v=s?"":r.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",n),f=i?"":dc(l,"ordinal",u),h=e.valueType,p=o?[]:c(e.value),d=!s||!i,g=!s&&i,y=oS(a,n),m=y.nameStyle,S=y.valueStyle;return n==="richText"?(s?"":v)+(i?"":uS(r,f,m))+(o?"":NT(r,p,d,g,S)):_c((s?"":v)+(i?"":ET(f,!s,m))+(o?"":kT(p,d,g,S)),t)}}function ep(r,e,t,a,n,i){if(!!r){var o=sS(r),s={useUTC:n,renderMode:t,orderMode:a,markupStyleCreator:e,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function RT(r){return{html:MT[r],richText:IT[r]}}function _c(r,e){var t='
',a="margin: "+e+"px 0 0";return'
'+r+t+"
"}function ET(r,e,t){var a=e?"margin-left:2px":"";return''+ge(r)+""}function kT(r,e,t,a){var n=t?"10px":"20px",i=e?"float:right;margin-left:"+n:"";return r=O(r)?r:[r],''+G(r,function(o){return ge(o)}).join("  ")+""}function uS(r,e,t){return r.markupStyleCreator.wrapRichTextStyle(e,t)}function NT(r,e,t,a,n){var i=[n],o=a?10:20;return t&&i.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(O(e)?e.join(" "):e,i)}function cS(r,e){var t=r.getData().getItemVisual(e,"style"),a=t[r.visualDrawType];return ba(a)}function vS(r,e){var t=r.get("padding");return t!=null?t:e==="richText"?[8,10]:10}var kl=function(){function r(){this.richTextStyles={},this._nextStyleNameId=Fm()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(e,t,a){var n=a==="richText"?this._generateStyleName():null,i=wA({color:t,type:e,renderMode:a,markerId:n});return $(i)?i:(this.richTextStyles[n]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(e,t){var a={};O(t)?w(t,function(i){return z(a,i)}):z(a,t);var n=this._generateStyleName();return this.richTextStyles[n]=a,"{"+n+"|"+e+"}"},r}();function fS(r){var e=r.series,t=r.dataIndex,a=r.multipleSeries,n=e.getData(),i=n.mapDimensionsAll("defaultedTooltip"),o=i.length,s=e.getRawValue(t),l=O(s),u=cS(e,t),c,v,f,h;if(o>1||l&&!o){var p=OT(s,e,t,i,u);c=p.inlineValues,v=p.inlineValueTypes,f=p.blocks,h=p.inlineValues[0]}else if(o){var d=n.getDimensionInfo(i[0]);h=c=rn(n,t,i[0]),v=d.type}else h=c=l?s[0]:s;var g=dv(e),y=g&&e.name||"",m=n.getName(t),S=a?y:m;return Kt("section",{header:y,noHeader:a||!g,sortParam:h,blocks:[Kt("nameValue",{markerType:"item",markerColor:u,name:S,noName:!Oi(S),value:c,valueType:v})].concat(f||[])})}function OT(r,e,t,a,n){var i=e.getData(),o=tn(r,function(v,f,h){var p=i.getDimensionInfo(h);return v=v||p&&p.tooltip!==!1&&p.displayName!=null},!1),s=[],l=[],u=[];a.length?w(a,function(v){c(rn(i,t,v),v)}):w(r,c);function c(v,f){var h=i.getDimensionInfo(f);!h||h.otherDims.tooltip===!1||(o?u.push(Kt("nameValue",{markerType:"subItem",markerColor:n,name:h.displayName,value:v,valueType:h.type})):(s.push(v),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Sr=ut();function uo(r,e){return r.getName(e)||r.getId(e)}var qo="__universalTransitionEnabled",il=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return e.prototype.init=function(t,a,n){this.seriesIndex=this.componentIndex,this.dataTask=ui({count:BT,reset:zT}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n);var i=Sr(this).sourceManager=new nS(this);i.prepareSource();var o=this.getInitialData(t,n);ap(o,this),this.dataTask.context.data=o,Sr(this).dataBeforeProcessed=o,rp(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(t,a){var n=_i(this),i=n?_n(t):{},o=this.subType;ot.hasClass(o)&&(o+="Series"),nt(t,a.getTheme().get(this.subType)),nt(t,this.getDefaultOption()),ma(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&Or(t,i,n)},e.prototype.mergeOption=function(t,a){t=nt(this.option,t,!0),this.fillDataTextStyle(t.data);var n=_i(this);n&&Or(this.option,t,n);var i=Sr(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(t,a);ap(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Sr(this).dataBeforeProcessed=o,rp(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(t){if(t&&!ke(t))for(var a=["show"],n=0;nthis.getShallow("animationThreshold")&&(a=!1),!!a},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,a,n){var i=this.ecModel,o=Ev.prototype.getColorFromPalette.call(this,t,a,n);return o||(o=i.getColorFromPalette(t,a,n)),o},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,a){this._innerSelect(this.getData(a),t)},e.prototype.unselect=function(t,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},e.prototype.isSelected=function(t,a){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(a);return(n==="all"||n[uo(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[qo])return!0;var t=this.option.universalTransition;return t?t===!0?!0:t&&t.enabled:!1},e.prototype._innerSelect=function(t,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"){j(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c0&&this._innerSelect(t,a)}},e.registerClass=function(t){return ot.registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}(ot);qt(il,Vv);qt(il,Ev);qm(il,ot);function rp(r){var e=r.name;dv(r)||(r.name=VT(r)||e)}function VT(r){var e=r.getRawData(),t=e.mapDimensionsAll("seriesName"),a=[];return w(t,function(n){var i=e.getDimensionInfo(n);i.displayName&&a.push(i.displayName)}),a.join(" ")}function BT(r){return r.model.getRawData().count()}function zT(r){var e=r.model;return e.setData(e.getRawData().cloneShallow()),GT}function GT(r,e){e.outputData&&r.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function ap(r,e){w(os(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(t){r.wrapMethod(t,Q(FT,e))})}function FT(r,e){var t=bc(r);return t&&t.setOutputEnd((e||this).count()),e}function bc(r){var e=(r.ecModel||{}).scheduler,t=e&&e.getPipeline(r.uid);if(t){var a=t.currentTask;if(a){var n=a.agentStubMap;n&&(a=n.get(r.uid))}return a}}const Pt=il;var zv=function(){function r(){this.group=new tt,this.uid=Sn("viewComponent")}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,a,n){},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,a,n){},r.prototype.updateLayout=function(e,t,a,n){},r.prototype.updateVisual=function(e,t,a,n){},r.prototype.toggleBlurSeries=function(e,t,a){},r.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},r}();yv(zv);Us(zv);const Et=zv;function An(){var r=ut();return function(e){var t=r(e),a=e.pipelineContext,n=!!t.large,i=!!t.progressiveRender,o=t.large=!!(a&&a.large),s=t.progressiveRender=!!(a&&a.progressiveRender);return(n!==o||i!==s)&&"reset"}}var hS=ut(),HT=An(),Gv=function(){function r(){this.group=new tt,this.uid=Sn("viewChart"),this.renderTask=ui({plan:WT,reset:$T}),this.renderTask.context={view:this}}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,a,n){},r.prototype.highlight=function(e,t,a,n){var i=e.getData(n&&n.dataType);!i||ip(i,n,"emphasis")},r.prototype.downplay=function(e,t,a,n){var i=e.getData(n&&n.dataType);!i||ip(i,n,"normal")},r.prototype.remove=function(e,t){this.group.removeAll()},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,a,n){this.render(e,t,a,n)},r.prototype.updateLayout=function(e,t,a,n){this.render(e,t,a,n)},r.prototype.updateVisual=function(e,t,a,n){this.render(e,t,a,n)},r.prototype.eachRendered=function(e){Hr(this.group,e)},r.markUpdateMethod=function(e,t){hS(e).updateMethod=t},r.protoInitialize=function(){var e=r.prototype;e.type="chart"}(),r}();function np(r,e,t){r&&yi(r)&&(e==="emphasis"?vr:fr)(r,t)}function ip(r,e,t){var a=Sa(r,e),n=e&&e.highlightKey!=null?Ww(e.highlightKey):null;a!=null?w(yt(a),function(i){np(r.getItemGraphicEl(i),t,n)}):r.eachItemGraphicEl(function(i){np(i,t,n)})}yv(Gv);Us(Gv);function WT(r){return HT(r.model)}function $T(r){var e=r.model,t=r.ecModel,a=r.api,n=r.payload,i=e.pipelineContext.progressiveRender,o=r.view,s=n&&hS(n).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,t,a,n),UT[l]}var UT={incrementalPrepareRender:{progress:function(r,e){e.view.incrementalRender(r,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(r,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}};const At=Gv;var ys="\0__throttleOriginMethod",op="\0__throttleRate",sp="\0__throttleType";function Fv(r,e,t){var a,n=0,i=0,o=null,s,l,u,c;e=e||0;function v(){i=new Date().getTime(),o=null,r.apply(l,u||[])}var f=function(){for(var h=[],p=0;p=0?v():o=setTimeout(v,-s),n=a};return f.clear=function(){o&&(clearTimeout(o),o=null)},f.debounceNextCall=function(h){c=h},f}function Tn(r,e,t,a){var n=r[e];if(!!n){var i=n[ys]||n,o=n[sp],s=n[op];if(s!==t||o!==a){if(t==null||!a)return r[e]=i;n=r[e]=Fv(i,t,a==="debounce"),n[ys]=i,n[sp]=a,n[op]=t}return n}}function wi(r,e){var t=r[e];t&&t[ys]&&(t.clear&&t.clear(),r[e]=t[ys])}var lp=ut(),up={itemStyle:xa(y0,!0),lineStyle:xa(g0,!0)},YT={lineStyle:"stroke",itemStyle:"fill"};function pS(r,e){var t=r.visualStyleMapper||up[e];return t||(console.warn("Unkown style type '"+e+"'."),up.itemStyle)}function dS(r,e){var t=r.visualDrawType||YT[e];return t||(console.warn("Unkown style type '"+e+"'."),"fill")}var ZT={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=r.getModel(a),i=pS(r,a),o=i(n),s=n.getShallow("decal");s&&(t.setVisual("decal",s),s.dirty=!0);var l=dS(r,a),u=o[l],c=X(u)?u:null,v=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||v){var f=r.getColorFromPalette(r.name,null,e.getSeriesCount());o[l]||(o[l]=f,t.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||X(o.fill)?f:o.fill,o.stroke=o.stroke==="auto"||X(o.stroke)?f:o.stroke}if(t.setVisual("style",o),t.setVisual("drawType",l),!e.isSeriesFiltered(r)&&c)return t.setVisual("colorFromPalette",!1),{dataEach:function(h,p){var d=r.getDataParams(p),g=z({},o);g[l]=c(d),h.setItemVisual(p,"style",g)}}}},Rn=new wt,XT={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){if(!(r.ignoreStyleOnData||e.isSeriesFiltered(r))){var t=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=pS(r,a),i=t.getVisual("drawType");return{dataEach:t.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[a]){Rn.option=l[a];var u=n(Rn),c=o.ensureUniqueItemVisual(s,"style");z(c,u),Rn.option.decal&&(o.setItemVisual(s,"decal",Rn.option.decal),Rn.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},KT={performRawSeries:!0,overallReset:function(r){var e=Z();r.eachSeries(function(t){var a=t.getColorBy();if(!t.isColorBySeries()){var n=t.type+"-"+a,i=e.get(n);i||(i={},e.set(n,i)),lp(t).scope=i}}),r.eachSeries(function(t){if(!(t.isColorBySeries()||r.isSeriesFiltered(t))){var a=t.getRawData(),n={},i=t.getData(),o=lp(t).scope,s=t.visualStyleAccessPath||"itemStyle",l=dS(t,s);i.each(function(u){var c=i.getRawIndex(u);n[c]=u}),a.each(function(u){var c=n[u],v=i.getItemVisual(c,"colorFromPalette");if(v){var f=i.ensureUniqueItemVisual(c,"style"),h=a.getName(u)||u+"",p=a.count();f[l]=t.getColorFromPalette(h,o,p)}})}})}},co=Math.PI;function qT(r,e){e=e||{},J(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var t=new tt,a=new ft({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});t.add(a);var n=new ct({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),i=new ft({style:{fill:"none"},textContent:n,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});t.add(i);var o;return e.showSpinner&&(o=new fv({shape:{startAngle:-co/2,endAngle:-co/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:co*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:co*3/2}).delay(300).start("circularInOut"),t.add(o)),t.resize=function(){var s=n.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(r.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),c=r.getHeight()/2;e.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()})},t.resize(),t}var jT=function(){function r(e,t,a,n){this._stageTaskMap=Z(),this.ecInstance=e,this.api=t,a=this._dataProcessorHandlers=a.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=a.concat(n)}return r.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(a){var n=a.overallTask;n&&n.dirty()})},r.prototype.getPerformArgs=function(e,t){if(!!e.__pipeline){var a=this._pipelineMap.get(e.__pipeline.id),n=a.context,i=!t&&a.progressiveEnabled&&(!n||n.progressiveRender)&&e.__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(e){return this._pipelineMap.get(e)},r.prototype.updateStreamModes=function(e,t){var a=this._pipelineMap.get(e.uid),n=e.getData(),i=n.count(),o=a.progressiveEnabled&&t.incrementalPrepareRender&&i>=a.threshold,s=e.get("large")&&i>=e.get("largeThreshold"),l=e.get("progressiveChunkMode")==="mod"?i:null;e.pipelineContext=a.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(e){var t=this,a=t._pipelineMap=Z();e.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}),t._pipe(n,n.dataTask)})},r.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),a=this.api;w(this._allHandlers,function(n){var i=e.get(n.uid)||e.set(n.uid,{}),o="";ye(!(n.reset&&n.overallReset),o),n.reset&&this._createSeriesStageTask(n,i,t,a),n.overallReset&&this._createOverallStageTask(n,i,t,a)},this)},r.prototype.prepareView=function(e,t,a,n){var i=e.renderTask,o=i.context;o.model=t,o.ecModel=a,o.api=n,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},r.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},r.prototype.performVisualTasks=function(e,t,a){this._performStageTasks(this._visualHandlers,e,t,a)},r.prototype._performStageTasks=function(e,t,a,n){n=n||{};var i=!1,o=this;w(e,function(l,u){if(!(n.visualType&&n.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),v=c.seriesTaskMap,f=c.overallTask;if(f){var h,p=f.agentStubMap;p.each(function(g){s(n,g)&&(g.dirty(),h=!0)}),h&&f.dirty(),o.updatePayload(f,a);var d=o.getPerformArgs(f,n.block);p.each(function(g){g.perform(d)}),f.perform(d)&&(i=!0)}else v&&v.each(function(g,y){s(n,g)&&g.dirty();var m=o.getPerformArgs(g,n.block);m.skip=!l.performRawSeries&&t.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(e){var t;e.eachSeries(function(a){t=a.dataTask.perform()||t}),this.unfinished=t||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},r.prototype.updatePayload=function(e,t){t!=="remain"&&(e.context.payload=t)},r.prototype._createSeriesStageTask=function(e,t,a,n){var i=this,o=t.seriesTaskMap,s=t.seriesTaskMap=Z(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?a.eachRawSeries(c):l?a.eachRawSeriesByType(l,c):u&&u(a,n).each(c);function c(v){var f=v.uid,h=s.set(f,o&&o.get(f)||ui({plan:rC,reset:aC,count:iC}));h.context={model:v,ecModel:a,api:n,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(v,h)}},r.prototype._createOverallStageTask=function(e,t,a,n){var i=this,o=t.overallTask=t.overallTask||ui({reset:JT});o.context={ecModel:a,api:n,overallReset:e.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=Z(),u=e.seriesType,c=e.getTargetSeries,v=!0,f=!1,h="";ye(!e.createOnAllSeries,h),u?a.eachRawSeriesByType(u,p):c?c(a,n).each(p):(v=!1,w(a.getSeries(),p));function p(d){var g=d.uid,y=l.set(g,s&&s.get(g)||(f=!0,ui({reset:QT,onDirty:eC})));y.context={model:d,overallProgress:v},y.agent=o,y.__block=v,i._pipe(d,y)}f&&o.dirty()},r.prototype._pipe=function(e,t){var a=e.uid,n=this._pipelineMap.get(a);!n.head&&(n.head=t),n.tail&&n.tail.pipe(t),n.tail=t,t.__idxInPipeline=n.count++,t.__pipeline=n},r.wrapStageHandler=function(e,t){return X(e)&&(e={overallReset:e,seriesType:oC(e)}),e.uid=Sn("stageHandler"),t&&(e.visualType=t),e},r}();function JT(r){r.overallReset(r.ecModel,r.api,r.payload)}function QT(r){return r.overallProgress&&tC}function tC(){this.agent.dirty(),this.getDownstream().dirty()}function eC(){this.agent&&this.agent.dirty()}function rC(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function aC(r){r.useClearVisual&&r.data.clearAllVisual();var e=r.resetDefines=yt(r.reset(r.model,r.ecModel,r.api,r.payload));return e.length>1?G(e,function(t,a){return gS(a)}):nC}var nC=gS(0);function gS(r){return function(e,t){var a=t.data,n=t.resetDefines[r];if(n&&n.dataEach)for(var i=e.start;i0&&h===u.length-f.length){var p=u.slice(0,h);p!=="data"&&(t.mainType=p,t[f.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(a[u]=l,c=!0),c||(n[u]=l)})}return{cptQuery:t,dataQuery:a,otherQuery:n}},r.prototype.filter=function(e,t){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=t.cptQuery,u=t.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(e,t.otherQuery,n,i));function c(v,f,h,p){return v[h]==null||f[p||h]===v[h]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),wc=["symbol","symbolSize","symbolRotate","symbolOffset"],hp=wc.concat(["symbolKeepAspect"]),cC={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData();if(r.legendIcon&&t.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var a={},n={},i=!1,o=0;o0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,a,n){if(!this[ne]){if(this._disposed){this.id;return}var i,o,s;if(j(a)&&(n=a.lazyUpdate,i=a.silent,o=a.replaceMerge,s=a.transition,a=a.notMerge),this[ne]=!0,!this._model||a){var l=new XA(this._api),u=this._theme,c=this._model=new H0;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(t,{replaceMerge:o},Tc);var v={seriesTransition:s,optionChanged:!0};if(n)this[pe]={silent:i,updateParams:v},this[ne]=!1,this.getZr().wakeUp();else{try{ka(this),xr.update.call(this,null,v)}catch(f){throw this[pe]=null,this[ne]=!1,f}this._ssr||this._zr.flush(),this[pe]=null,this[ne]=!1,En.call(this,i),kn.call(this,i)}}},e.prototype.setTheme=function(){},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||DC&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var a=this._zr.painter;return a.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var a=this._zr.painter;return a.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(!!kt.svgSupported){var t=this._zr,a=t.storage.getDisplayList();return w(a,function(n){n.stopAnimation(null,!0)}),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(this._disposed){this.id;return}t=t||{};var a=t.excludeComponents,n=this._model,i=[],o=this;w(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(t).toDataURL("image/"+(t&&t.type||"png"));return w(i,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(t){if(this._disposed){this.id;return}var a=t.type==="svg",n=this.group,i=Math.min,o=Math.max,s=1/0;if(wp[n]){var l=s,u=s,c=-s,v=-s,f=[],h=t&&t.pixelRatio||this.getDevicePixelRatio();w(vi,function(S,x){if(S.group===n){var b=a?S.getZr().painter.getSvgDom().innerHTML:S.renderToCanvas(q(t)),_=S.getDom().getBoundingClientRect();l=i(_.left,l),u=i(_.top,u),c=o(_.right,c),v=o(_.bottom,v),f.push({dom:b,left:_.left,top:_.top})}}),l*=h,u*=h,c*=h,v*=h;var p=c-l,d=v-u,g=ss.createCanvas(),y=Jf(g,{renderer:a?"svg":"canvas"});if(y.resize({width:p,height:d}),a){var m="";return w(f,function(S){var x=S.left-l,b=S.top-u;m+=''+S.dom+""}),y.painter.getSvgRoot().innerHTML=m,t.connectedBackgroundColor&&y.painter.setBackgroundColor(t.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return t.connectedBackgroundColor&&y.add(new ft({shape:{x:0,y:0,width:p,height:d},style:{fill:t.connectedBackgroundColor}})),w(f,function(S){var x=new Ne({style:{x:S.left*h-l,y:S.top*h-u,image:S.dom}});y.add(x)}),y.refreshImmediately(),g.toDataURL("image/"+(t&&t.type||"png"))}else return this.getDataURL(t)},e.prototype.convertToPixel=function(t,a){return zl(this,"convertToPixel",t,a)},e.prototype.convertFromPixel=function(t,a){return zl(this,"convertFromPixel",t,a)},e.prototype.containPixel=function(t,a){if(this._disposed){this.id;return}var n=this._model,i,o=ii(n,t);return w(o,function(s,l){l.indexOf("Models")>=0&&w(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)i=i||!!c.containPoint(a);else if(l==="seriesModels"){var v=this._chartsMap[u.__viewId];v&&v.containPoint&&(i=i||v.containPoint(a,u))}},this)},this),!!i},e.prototype.getVisual=function(t,a){var n=this._model,i=ii(n,t,{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?Hv(s,l,a):Ui(s,a)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;w(HC,function(a){var n=function(i){var o=t.getModel(),s=i.target,l,u=a==="globalout";if(u?l={}:s&&Xa(s,function(p){var d=K(p);if(d&&d.dataIndex!=null){var g=d.dataModel||o.getSeriesByIndex(d.seriesIndex);return l=g&&g.getDataParams(d.dataIndex,d.dataType)||{},!0}else if(d.eventData)return l=z({},d.eventData),!0},!0),l){var c=l.componentType,v=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",v=l.seriesIndex);var f=c&&v!=null&&o.getComponent(c,v),h=f&&t[f.mainType==="series"?"_chartsMap":"_componentsMap"][f.__viewId];l.event=i,l.type=a,t._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:f,view:h},t.trigger(a,l)}};n.zrEventfulCallAtLast=!0,t._zr.on(a,n,t)}),w(ci,function(a,n){t._messageCenter.on(n,function(i){this.trigger(n,i)},t)}),w(["selectchanged"],function(a){t._messageCenter.on(a,function(n){this.trigger(a,n)},t)}),fC(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var t=this.getDom();t&&Zm(this.getDom(),Uv,"");var a=this,n=a._api,i=a._model;w(a._componentsViews,function(o){o.dispose(i,n)}),w(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 vi[a.id]},e.prototype.resize=function(t){if(!this[ne]){if(this._disposed){this.id;return}this._zr.resize(t);var a=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!a){var n=a.resetOption("media"),i=t&&t.silent;this[pe]&&(i==null&&(i=this[pe].silent),n=!0,this[pe]=null),this[ne]=!0;try{n&&ka(this),xr.update.call(this,{type:"resize",animation:z({duration:0},t&&t.animation)})}catch(o){throw this[ne]=!1,o}this[ne]=!1,En.call(this,i),kn.call(this,i)}}},e.prototype.showLoading=function(t,a){if(this._disposed){this.id;return}if(j(t)&&(a=t,t=""),t=t||"default",this.hideLoading(),!!Cc[t]){var n=Cc[t](this._api,a),i=this._zr;this._loadingFX=n,i.add(n)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(t){var a=z({},t);return a.type=ci[t.type],a},e.prototype.dispatchAction=function(t,a){if(this._disposed){this.id;return}if(j(a)||(a={silent:!!a}),!!xs[t.type]&&!!this._model){if(this[ne]){this._pendingActions.push(t);return}var n=a.silent;Fl.call(this,t,n);var i=a.flush;i?this._zr.flush():i!==!1&&kt.browser.weChat&&this._throttledZrFlush(),En.call(this,n),kn.call(this,n)}},e.prototype.updateLabelLayout=function(){ze.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed){this.id;return}var a=t.seriesIndex,n=this.getModel(),i=n.getSeriesByIndex(a);i.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){ka=function(v){var f=v._scheduler;f.restorePipelines(v._model),f.prepareStageTasks(),Bl(v,!0),Bl(v,!1),f.plan()},Bl=function(v,f){for(var h=v._model,p=v._scheduler,d=f?v._componentsViews:v._chartsViews,g=f?v._componentsMap:v._chartsMap,y=v._zr,m=v._api,S=0;Sf.get("hoverLayerThreshold")&&!kt.node&&!kt.worker&&f.eachSeries(function(g){if(!g.preventUsingHoverLayer){var y=v._chartsMap[g.__viewId];y.__alive&&y.eachRendered(function(m){m.states.emphasis&&(m.states.emphasis.hoverLayer=!0)})}})}function o(v,f){var h=v.get("blendMode")||null;f.eachRendered(function(p){p.isGroup||(p.style.blend=h)})}function s(v,f){if(!v.preventAutoZ){var h=v.get("z")||0,p=v.get("zlevel")||0;f.eachRendered(function(d){return l(d,h,p,-1/0),!0})}}function l(v,f,h,p){var d=v.getTextContent(),g=v.getTextGuideLine(),y=v.isGroup;if(y)for(var m=v.childrenRef(),S=0;S0?{duration:d,delay:h.get("delay"),easing:h.get("easing")}:null;f.eachRendered(function(y){if(y.states&&y.states.emphasis){if(qa(y))return;if(y instanceof Tt&&$w(y),y.__dirty){var m=y.prevStates;m&&y.useStates(m)}if(p){y.stateTransition=g;var S=y.getTextContent(),x=y.getTextGuideLine();S&&(S.stateTransition=g),x&&(x.stateTransition=g)}y.__dirty&&n(y)}})}_p=function(v){return new(function(f){E(h,f);function h(){return f!==null&&f.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return v._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(p){for(;p;){var d=p.__ecComponentInfo;if(d!=null)return v._model.getComponent(d.mainType,d.index);p=p.parent}},h.prototype.enterEmphasis=function(p,d){vr(p,d),xe(v)},h.prototype.leaveEmphasis=function(p,d){fr(p,d),xe(v)},h.prototype.enterBlur=function(p){e0(p),xe(v)},h.prototype.leaveBlur=function(p){_v(p),xe(v)},h.prototype.enterSelect=function(p){r0(p),xe(v)},h.prototype.leaveSelect=function(p){a0(p),xe(v)},h.prototype.getModel=function(){return v.getModel()},h.prototype.getViewOfComponentModel=function(p){return v.getViewOfComponentModel(p)},h.prototype.getViewOfSeriesModel=function(p){return v.getViewOfSeriesModel(p)},h}(W0))(v)},NS=function(v){function f(h,p){for(var d=0;d=0)){Ap.push(t);var i=SS.wrapStageHandler(t,n);i.__prio=e,i.__raw=t,r.push(i)}}function FS(r,e){Cc[r]=e}function KC(r,e,t){var a=CC("registerMap");a&&a(r,e,t)}var qC=bT;Ca(Wv,ZT);Ca(ol,XT);Ca(ol,KT);Ca(Wv,cC);Ca(ol,vC);Ca(IS,wC);zS(U0);GS(LC,rT);FS("default",qT);rr({type:ua,event:ua,update:ua},fe);rr({type:Uo,event:Uo,update:Uo},fe);rr({type:oi,event:oi,update:oi},fe);rr({type:Yo,event:Yo,update:Yo},fe);rr({type:si,event:si,update:si},fe);BS("light",sC);BS("dark",lC);function Nn(r){return r==null?0:r.length||1}function Tp(r){return r}var jC=function(){function r(e,t,a,n,i,o){this._old=e,this._new=t,this._oldKeyGetter=a||Tp,this._newKeyGetter=n||Tp,this.context=i,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(e){return this._add=e,this},r.prototype.update=function(e){return this._update=e,this},r.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},r.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},r.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},r.prototype.remove=function(e){return this._remove=e,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var e=this._old,t=this._new,a={},n=new Array(e.length),i=new Array(t.length);this._initIndexMap(e,null,n,"_oldKeyGetter"),this._initIndexMap(t,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 e=this._old,t=this._new,a={},n={},i=[],o=[];this._initIndexMap(e,a,i,"_oldKeyGetter"),this._initIndexMap(t,n,o,"_newKeyGetter");for(var s=0;s1&&f===1)this._updateManyToOne&&this._updateManyToOne(c,u),n[l]=null;else if(v===1&&f>1)this._updateOneToMany&&this._updateOneToMany(c,u),n[l]=null;else if(v===1&&f===1)this._update&&this._update(c,u),n[l]=null;else if(v>1&&f>1)this._updateManyToMany&&this._updateManyToMany(c,u),n[l]=null;else if(v>1)for(var h=0;h1)for(var s=0;s30}var On=j,_r=G,nD=typeof Int32Array>"u"?Array:Int32Array,iD="e\0\0",Cp=-1,oD=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],sD=["_approximateExtent"],Dp,po,Vn,Bn,$l,go,Ul,lD=function(){function r(e,t){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;WS(e)?(a=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(n=!0,a=e),a=a||["x","y"];for(var i={},o=[],s={},l=!1,u={},c=0;c=t)){var a=this._store,n=a.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=n.getSource().sourceFormat,l=s===Oe;if(l&&!n.pure)for(var u=[],c=e;c0},r.prototype.ensureUniqueItemVisual=function(e,t){var a=this._itemVisuals,n=a[e];n||(n=a[e]={});var i=n[t];return i==null&&(i=this.getVisual(t),O(i)?i=i.slice():On(i)&&(i=z({},i)),n[t]=i),i},r.prototype.setItemVisual=function(e,t,a){var n=this._itemVisuals[e]||{};this._itemVisuals[e]=n,On(t)?z(n,t):n[t]=a},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(e,t){On(e)?z(this._layout,e):this._layout[e]=t},r.prototype.getLayout=function(e){return this._layout[e]},r.prototype.getItemLayout=function(e){return this._itemLayouts[e]},r.prototype.setItemLayout=function(e,t,a){this._itemLayouts[e]=a?z(this._itemLayouts[e]||{},t):t},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(e,t){var a=this.hostModel&&this.hostModel.seriesIndex;sc(a,this.dataType,e,t),this._graphicEls[e]=t},r.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},r.prototype.eachItemGraphicEl=function(e,t){w(this._graphicEls,function(a,n){a&&e&&e.call(t,a,n)})},r.prototype.cloneShallow=function(e){return e||(e=new r(this._schema?this._schema:_r(this.dimensions,this._getDimInfo,this),this.hostModel)),$l(e,this),e._store=this._store,e},r.prototype.wrapMethod=function(e,t){var a=this[e];!X(a)||(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var n=a.apply(this,arguments);return t.apply(this,[n].concat(xb(arguments)))})},r.internalField=function(){Dp=function(e){var t=e._invertedIndicesMap;w(t,function(a,n){var i=e._dimInfos[n],o=i.ordinalMeta,s=e._store;if(o){a=t[n]=new nD(o.categories.length);for(var l=0;l1&&(l+="__ec__"+c),n[t]=l}}}(),r}();const ve=lD;function Zi(r,e){kv(r)||(r=Nv(r)),e=e||{};var t=e.coordDimensions||[],a=e.dimensionsDefine||r.dimensionsDefine||[],n=Z(),i=[],o=cD(r,t,a,e.dimensionsCount),s=e.canOmitUnusedDimensions&&YS(o),l=a===r.dimensionsDefine,u=l?US(r):$S(a),c=e.encodeDefine;!c&&e.encodeDefaulter&&(c=e.encodeDefaulter(r,o));for(var v=Z(c),f=new rS(o),h=0;h0&&(a.name=n+(i-1)),i++,e.set(n,i)}}function cD(r,e,t,a){var n=Math.max(r.dimensionsDetectedCount||1,e.length,t.length,a||0);return w(e,function(i){var o;j(i)&&(o=i.dimsDef)&&(n=Math.max(n,o.length))}),n}function vD(r,e,t){var a=e.data;if(t||a.hasOwnProperty(r)){for(var n=0;a.hasOwnProperty(r+n);)n++;r+=n}return e.set(r,!0),r}var fD=function(){function r(e){this.coordSysDims=[],this.axisMap=Z(),this.categoryAxisMap=Z(),this.coordSysName=e}return r}();function hD(r){var e=r.get("coordinateSystem"),t=new fD(e),a=pD[e];if(a)return a(r,t,t.axisMap,t.categoryAxisMap),t}var pD={cartesian2d:function(r,e,t,a){var n=r.getReferringComponents("xAxis",Ft).models[0],i=r.getReferringComponents("yAxis",Ft).models[0];e.coordSysDims=["x","y"],t.set("x",n),t.set("y",i),Na(n)&&(a.set("x",n),e.firstCategoryDimIndex=0),Na(i)&&(a.set("y",i),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(r,e,t,a){var n=r.getReferringComponents("singleAxis",Ft).models[0];e.coordSysDims=["single"],t.set("single",n),Na(n)&&(a.set("single",n),e.firstCategoryDimIndex=0)},polar:function(r,e,t,a){var n=r.getReferringComponents("polar",Ft).models[0],i=n.findAxisModel("radiusAxis"),o=n.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],t.set("radius",i),t.set("angle",o),Na(i)&&(a.set("radius",i),e.firstCategoryDimIndex=0),Na(o)&&(a.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(r,e,t,a){e.coordSysDims=["lng","lat"]},parallel:function(r,e,t,a){var n=r.ecModel,i=n.getComponent("parallel",r.get("parallelIndex")),o=e.coordSysDims=i.dimensions.slice();w(i.parallelAxisIndex,function(s,l){var u=n.getComponent("parallelAxis",s),c=o[l];t.set(c,u),Na(u)&&(a.set(c,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})}};function Na(r){return r.get("type")==="category"}function dD(r,e,t){t=t||{};var a=t.byIndex,n=t.stackedCoordDimension,i,o,s;gD(e)?i=e:(o=e.schema,i=o.dimensions,s=e.store);var l=!!(r&&r.get("stack")),u,c,v,f;if(w(i,function(m,S){$(m)&&(i[S]=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){v="__\0ecstackresult_"+r.id,f="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var h=c.coordDim,p=c.type,d=0;w(i,function(m){m.coordDim===h&&d++});var g={name:v,coordDim:h,coordDimIndex:d,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},y={name:f,coordDim:f,coordDimIndex:d+1,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(f,p),y.storeDimIndex=s.ensureCalculationDimension(v,p)),o.appendCalculationDimension(g),o.appendCalculationDimension(y)):(i.push(g),i.push(y))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:a,stackedOverDimension:f,stackResultDimension:v}}function gD(r){return!WS(r.schema)}function Vr(r,e){return!!e&&e===r.getCalculationInfo("stackedDimension")}function ZS(r,e){return Vr(r,e)?r.getCalculationInfo("stackResultDimension"):e}function yD(r,e){var t=r.get("coordinateSystem"),a=$i.get(t),n;return e&&e.coordSysDims&&(n=G(e.coordSysDims,function(i){var o={name:i},s=e.axisMap.get(i);if(s){var l=s.get("type");o.type=bs(l)}return o})),n||(n=a&&(a.getDimensionsInfo?a.getDimensionsInfo():a.dimensions.slice())||["x","y"]),n}function mD(r,e,t){var a,n;return t&&w(r,function(i,o){var s=i.coordDim,l=t.categoryAxisMap.get(s);l&&(a==null&&(a=o),i.ordinalMeta=l.getOrdinalMeta(),e&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(n=!0)}),!n&&a!=null&&(r[a].otherDims.itemName=0),a}function yr(r,e,t){t=t||{};var a=e.getSourceManager(),n,i=!1;r?(i=!0,n=Nv(r)):(n=a.getSource(),i=n.sourceFormat===Oe);var o=hD(e),s=yD(e,o),l=t.useEncodeDefaulter,u=X(l)?l:l?Q(V0,s,e):null,c={coordDimensions:s,generateCoord:t.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},v=Zi(n,c),f=mD(v.dimensions,t.createInvertedIndices,o),h=i?null:a.getSharedDataStore(v),p=dD(e,{schema:v,store:h}),d=new ve(v,e);d.setCalculationInfo(p);var g=f!=null&&SD(n)?function(y,m,S,x){return x===f?S:this.defaultDimValueGetter(y,m,S,x)}:null;return d.hasItemOption=!1,d.initData(i?n:h,null,g),d}function SD(r){if(r.sourceFormat===Oe){var e=xD(r.data||[]);return!O(pn(e))}}function xD(r){for(var e=0;et[1]&&(t[1]=e[1])},r.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(e,t){var a=this._extent;isNaN(e)||(a[0]=e),isNaN(t)||(a[1]=t)},r.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(e){this._isBlank=e},r}();Us(XS);const mr=XS;var _D=0,bD=function(){function r(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++_D}return r.createByAxisModel=function(e){var t=e.option,a=t.data,n=a&&G(a,wD);return new r({categories:n,needCollect:!n,deduplication:t.dedplication!==!1})},r.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},r.prototype.parseAndCollect=function(e){var t,a=this._needCollect;if(!$(e)&&!a)return e;if(a&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var n=this._getOrCreateMap();return t=n.get(e),t==null&&(a?(t=this.categories.length,this.categories[t]=e,n.set(e,t)):t=NaN),t},r.prototype._getOrCreateMap=function(){return this._map||(this._map=Z(this.categories))},r}();function wD(r){return j(r)&&r.value!=null?r.value:r+""}const Dc=bD;function Mc(r){return r.type==="interval"||r.type==="log"}function AD(r,e,t,a){var n={},i=r[1]-r[0],o=n.interval=zm(i/e,!0);t!=null&&oa&&(o=n.interval=a);var s=n.intervalPrecision=KS(o),l=n.niceTickExtent=[Nt(Math.ceil(r[0]/o)*o,s),Nt(Math.floor(r[1]/o)*o,s)];return TD(l,r),n}function Yl(r){var e=Math.pow(10,pv(r)),t=r/e;return t?t===2?t=3:t===3?t=5:t*=2:t=1,Nt(t*e)}function KS(r){return Ke(r)+2}function Mp(r,e,t){r[e]=Math.max(Math.min(r[e],t[1]),t[0])}function TD(r,e){!isFinite(r[0])&&(r[0]=e[0]),!isFinite(r[1])&&(r[1]=e[1]),Mp(r,0,e),Mp(r,1,e),r[0]>r[1]&&(r[0]=r[1])}function sl(r,e){return r>=e[0]&&r<=e[1]}function ll(r,e){return e[1]===e[0]?.5:(r-e[0])/(e[1]-e[0])}function ul(r,e){return r*(e[1]-e[0])+e[0]}var qS=function(r){E(e,r);function e(t){var a=r.call(this,t)||this;a.type="ordinal";var n=a.getSetting("ordinalMeta");return n||(n=new Dc({})),O(n)&&(n=new Dc({categories:G(n,function(i){return j(i)?i.value:i})})),a._ordinalMeta=n,a._extent=a.getSetting("extent")||[0,n.categories.length-1],a}return e.prototype.parse=function(t){return t==null?NaN:$(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),sl(t,this._extent)&&this._ordinalMeta.categories[t]!=null},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),ll(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(ul(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],a=this._extent,n=a[0];n<=a[1];)t.push({value:n}),n++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(t==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var a=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,a.length);o=0&&t=0&&t=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(mr);mr.registerClass(qS);const Xv=qS;var Kr=Nt,jS=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return sl(t,this._extent)},e.prototype.normalize=function(t){return ll(t,this._extent)},e.prototype.scale=function(t){return ul(t,this._extent)},e.prototype.setExtent=function(t,a){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(a)||(n[1]=parseFloat(a))},e.prototype.unionExtent=function(t){var a=this._extent;t[0]a[1]&&(a[1]=t[1]),this.setExtent(a[0],a[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=KS(t)},e.prototype.getTicks=function(t){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&&(t?s.push({value:Kr(c+a,o)}):s.push({value:n[1]})),s},e.prototype.getMinorTicks=function(t){for(var a=this.getTicks(!0),n=[],i=this.getExtent(),o=1;oi[0]&&h0&&(i=i===null?s:Math.min(i,s))}t[a]=i}}return t}function tx(r){var e=MD(r),t=[];return w(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=e[l],c=Math.abs(o[1]-o[0]),v=i.scale.getExtent(),f=Math.abs(v[1]-v[0]);s=u?c/f*u:c}else{var h=a.getData();s=Math.abs(o[1]-o[0])/h.count()}var p=F(a.get("barWidth"),s),d=F(a.get("barMaxWidth"),s),g=F(a.get("barMinWidth")||(ix(a)?.5:1),s),y=a.get("barGap"),m=a.get("barCategoryGap");t.push({bandWidth:s,barWidth:p,barMaxWidth:d,barMinWidth:g,barGap:y,barCategoryGap:m,axisKey:qv(i),stackId:Kv(a)})}),ex(t)}function ex(r){var e={};w(r,function(a,n){var i=a.axisKey,o=a.bandWidth,s=e[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;e[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 v=a.barMaxWidth;v&&(l[u].maxWidth=v);var f=a.barMinWidth;f&&(l[u].minWidth=f);var h=a.barGap;h!=null&&(s.gap=h);var p=a.barCategoryGap;p!=null&&(s.categoryGap=p)});var t={};return w(e,function(a,n){t[n]={};var i=a.stacks,o=a.bandWidth,s=a.categoryGap;if(s==null){var l=Yt(i).length;s=Math.max(35-l*4,15)+"%"}var u=F(s,o),c=F(a.gap,1),v=a.remainedWidth,f=a.autoWidthCount,h=(v-u)/(f+(f-1)*c);h=Math.max(h,0),w(i,function(y){var m=y.maxWidth,S=y.minWidth;if(y.width){var x=y.width;m&&(x=Math.min(x,m)),S&&(x=Math.max(x,S)),y.width=x,v-=x+c*x,f--}else{var x=h;m&&mx&&(x=S),x!==h&&(y.width=x,v-=x+c*x,f--)}}),h=(v-u)/(f+(f-1)*c),h=Math.max(h,0);var p=0,d;w(i,function(y,m){y.width||(y.width=h),d=y,p+=y.width*(1+c)}),d&&(p-=d.width*c);var g=-p/2;w(i,function(y,m){t[n][m]=t[n][m]||{bandWidth:o,offset:g,width:y.width},g+=y.width*(1+c)})}),t}function ID(r,e,t){if(r&&e){var a=r[qv(e)];return a!=null&&t!=null?a[Kv(t)]:a}}function rx(r,e){var t=QS(r,e),a=tx(t);w(t,function(n){var i=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=Kv(n),u=a[qv(s)][l],c=u.offset,v=u.width;i.setLayout({bandWidth:u.bandWidth,offset:c,size:v})})}function ax(r){return{seriesType:r,plan:An(),reset:function(e){if(!!nx(e)){var t=e.getData(),a=e.coordinateSystem,n=a.getBaseAxis(),i=a.getOtherAxis(n),o=t.getDimensionIndex(t.mapDimension(i.dim)),s=t.getDimensionIndex(t.mapDimension(n.dim)),l=e.get("showBackground",!0),u=t.mapDimension(i.dim),c=t.getCalculationInfo("stackResultDimension"),v=Vr(t,u)&&!!t.getCalculationInfo("stackedOnSeries"),f=i.isHorizontal(),h=LD(n,i),p=ix(e),d=e.get("barMinHeight")||0,g=c&&t.getDimensionIndex(c),y=t.getLayout("size"),m=t.getLayout("offset");return{progress:function(S,x){for(var b=S.count,_=p&&je(b*3),A=p&&l&&je(b*3),T=p&&je(b),C=a.master.getRect(),M=f?C.width:C.height,D,I=x.getStore(),L=0;(D=S.next())!=null;){var P=I.get(v?g:o,D),R=I.get(s,D),k=h,B=void 0;v&&(B=+P-I.get(o,D));var N=void 0,V=void 0,H=void 0,Y=void 0;if(f){var et=a.dataToPoint([P,R]);if(v){var it=a.dataToPoint([B,R]);k=it[0]}N=k,V=et[1]+m,H=et[0]-k,Y=y,Math.abs(H)>>1;r[n][1]n&&(this._approxInterval=n);var s=yo.length,l=Math.min(PD(yo,this._approxInterval,0,s),s-1);this._interval=yo[l][1],this._minLevelUnit=yo[Math.max(l-1,0)][0]},e.prototype.parse=function(t){return pt(t)?t:+tr(t)},e.prototype.contain=function(t){return sl(this.parse(t),this._extent)},e.prototype.normalize=function(t){return ll(this.parse(t),this._extent)},e.prototype.scale=function(t){return ul(t,this._extent)},e.type="time",e}(Br),yo=[["second",Dv],["minute",Mv],["hour",li],["quarter-day",li*6],["half-day",li*12],["day",Me*1.2],["half-week",Me*3.5],["week",Me*7],["month",Me*31],["quarter",Me*95],["half-year",Mh/2],["year",Mh]];function RD(r,e,t,a){var n=tr(e),i=tr(t),o=function(p){return Lh(n,p,a)===Lh(i,p,a)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},c=function(){return u()&&o("hour")},v=function(){return c()&&o("minute")},f=function(){return v()&&o("second")},h=function(){return f()&&o("millisecond")};switch(r){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return v();case"second":return f();case"millisecond":return h()}}function ED(r,e){return r/=Me,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function kD(r){var e=30*Me;return r/=e,r>6?6:r>3?3:r>2?2:1}function ND(r){return r/=li,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function Ip(r,e){return r/=e?Mv:Dv,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function OD(r){return zm(r,!0)}function VD(r,e,t){var a=new Date(r);switch(ja(e)){case"year":case"month":a[b0(t)](0);case"day":a[w0(t)](1);case"hour":a[A0(t)](0);case"minute":a[T0(t)](0);case"second":a[C0(t)](0),a[D0(t)](0)}return a.getTime()}function BD(r,e,t,a){var n=1e4,i=x0,o=0;function s(M,D,I,L,P,R,k){for(var B=new Date(D),N=D,V=B[L]();N1&&R===0&&I.unshift({value:I[0].value-N})}}for(var R=0;R=a[0]&&m<=a[1]&&v++)}var S=(a[1]-a[0])/e;if(v>S*1.5&&f>S/1.5||(u.push(g),v>S||r===i[h]))break}c=[]}}}for(var x=bt(G(u,function(M){return bt(M,function(D){return D.value>=a[0]&&D.value<=a[1]&&!D.notAdd})}),function(M){return M.length>0}),b=[],_=x.length-1,h=0;h0;)i*=10;var s=[Nt(FD(a[0]/i)*i),Nt(GD(a[1]/i)*i)];this._interval=i,this._niceExtent=s}},e.prototype.calcNiceExtent=function(t){fi.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return t=_e(t)/_e(this.base),sl(t,this._extent)},e.prototype.normalize=function(t){return t=_e(t)/_e(this.base),ll(t,this._extent)},e.prototype.scale=function(t){return t=ul(t,this._extent),mo(this.base,t)},e.type="log",e}(mr),lx=jv.prototype;lx.getMinorTicks=fi.getMinorTicks;lx.getLabel=fi.getLabel;function So(r,e){return zD(r,Ke(e))}mr.registerClass(jv);const HD=jv;var WD=function(){function r(e,t,a){this._prepareParams(e,t,a)}return r.prototype._prepareParams=function(e,t,a){a[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var f=this._determinedMin,h=this._determinedMax;return f!=null&&(s=f,u=!0),h!=null&&(l=h,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:v}},r.prototype.modifyDataMinMax=function(e,t){this[UD[e]]=t},r.prototype.setDeterminedMinMax=function(e,t){var a=$D[e];this[a]=t},r.prototype.freeze=function(){this.frozen=!0},r}(),$D={min:"_determinedMin",max:"_determinedMax"},UD={min:"_dataMin",max:"_dataMax"};function ux(r,e,t){var a=r.rawExtentInfo;return a||(a=new WD(r,e,t),r.rawExtentInfo=a,a)}function xo(r,e){return e==null?null:ls(e)?NaN:r.parse(e)}function cx(r,e){var t=r.type,a=ux(r,e,r.getExtent()).calculate();r.setBlank(a.isBlank);var n=a.min,i=a.max,o=e.ecModel;if(o&&t==="time"){var s=QS("bar",o),l=!1;if(w(s,function(v){l=l||v.getBaseAxis()===e.axis}),l){var u=tx(s),c=YD(n,i,e,u);n=c.min,i=c.max}}return{extent:[n,i],fixMin:a.minFixed,fixMax:a.maxFixed}}function YD(r,e,t,a){var n=t.axis.getExtent(),i=n[1]-n[0],o=ID(a,t.axis);if(o===void 0)return{min:r,max:e};var s=1/0;w(o,function(h){s=Math.min(h.offset,s)});var l=-1/0;w(o,function(h){l=Math.max(h.offset+h.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=e-r,v=1-(s+l)/i,f=c/v-c;return e+=f*(l/u),r-=f*(s/u),{min:r,max:e}}function nn(r,e){var t=e,a=cx(r,t),n=a.extent,i=t.get("splitNumber");r instanceof HD&&(r.base=t.get("logBase"));var o=r.type,s=t.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?t.get("minInterval"):null,maxInterval:l?t.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function cl(r,e){if(e=e||r.get("type"),e)switch(e){case"category":return new Xv({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new sx({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(mr.getClass(e)||Br)}}function ZD(r){var e=r.scale.getExtent(),t=e[0],a=e[1];return!(t>0&&a>0||t<0&&a<0)}function Xi(r){var e=r.getLabelModel().get("formatter"),t=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)}}(e):$(e)?function(a){return function(n){var i=r.scale.getLabel(n),o=a.replace("{value}",i!=null?i:"");return o}}(e):X(e)?function(a){return function(n,i){return t!=null&&(i=n.value-t),a(Jv(r,n),i,n.level!=null?{level:n.level}:null)}}(e):function(a){return r.scale.getLabel(a)}}function Jv(r,e){return r.type==="category"?r.scale.getLabel(e):e.value}function XD(r){var e=r.model,t=r.scale;if(!(!e.get(["axisLabel","show"])||t.isBlank())){var a,n,i=t.getExtent();t instanceof Xv?n=t.count():(a=t.getTicks(),n=a.length);var o=r.getLabelModel(),s=Xi(r),l,u=1;n>40&&(u=Math.ceil(n/40));for(var c=0;cr[1]&&(r[1]=n[1])})}var Ki=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},r.prototype.getCoordSysModel=function(){},r}(),Pp=[],jD={registerPreprocessor:zS,registerProcessor:GS,registerPostInit:UC,registerPostUpdate:YC,registerUpdateLifecycle:Yv,registerAction:rr,registerCoordinateSystem:ZC,registerLayout:XC,registerVisual:Ca,registerTransform:qC,registerLoading:FS,registerMap:KC,registerImpl:TC,PRIORITY:zC,ComponentModel:ot,ComponentView:Et,SeriesModel:Pt,ChartView:At,registerComponentModel:function(r){ot.registerClass(r)},registerComponentView:function(r){Et.registerClass(r)},registerSeriesModel:function(r){Pt.registerClass(r)},registerChartView:function(r){At.registerClass(r)},registerSubTypeDefaulter:function(r,e){ot.registerSubTypeDefaulter(r,e)},registerPainter:function(r,e){_b(r,e)}};function at(r){if(O(r)){w(r,function(e){at(e)});return}st(Pp,r)>=0||(Pp.push(r),X(r)&&(r={install:r}),r.install(jD))}var JD=[];function Zl(r,e){for(var t=0;tn&&(a=o,n=l)}if(a)return QD(a.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.prototype.getBoundingRect=function(t){var a=this._rect;if(a&&!t)return a;var n=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return w(o,function(s){s.type==="polygon"?Rp(s.exterior,n,i,t):w(s.points,function(l){Rp(l,n,i,t)})}),isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])||(n[0]=n[1]=i[0]=i[1]=0),a=new xt(n[0],n[1],i[0]-n[0],i[1]-n[1]),t||(this._rect=a),a},e.prototype.contain=function(t){var a=this.getBoundingRect(),n=this.geometries;if(!a.contain(t[0],t[1]))return!1;t: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/t,l/t])}return a}function rM(r,e){return r=eM(r),G(bt(r.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var a=t.properties,n=t.geometry,i=[];switch(n.type){case"Polygon":var o=n.coordinates;i.push(new Ep(o[0],o.slice(1)));break;case"MultiPolygon":w(n.coordinates,function(l){l[0]&&i.push(new Ep(l[0],l.slice(1)))});break;case"LineString":i.push(new kp([n.coordinates]));break;case"MultiLineString":i.push(new kp(n.coordinates))}var s=new hx(a[e||"name"],i,a.cp);return s.properties=a,s})}var Ti=ut();function aM(r){return r.type==="category"?iM(r):sM(r)}function nM(r,e){return r.type==="category"?oM(r,e):{ticks:G(r.scale.getTicks(),function(t){return t.value})}}function iM(r){var e=r.getLabelModel(),t=dx(r,e);return!e.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:t.labelCategoryInterval}:t}function dx(r,e){var t=gx(r,"labels"),a=Qv(e),n=yx(t,a);if(n)return n;var i,o;return X(a)?i=xx(r,a):(o=a==="auto"?lM(r):a,i=Sx(r,o)),mx(t,a,{labels:i,labelCategoryInterval:o})}function oM(r,e){var t=gx(r,"ticks"),a=Qv(e),n=yx(t,a);if(n)return n;var i,o;if((!e.get("show")||r.scale.isBlank())&&(i=[]),X(a))i=xx(r,a,!0);else if(a==="auto"){var s=dx(r,r.getLabelModel());o=s.labelCategoryInterval,i=G(s.labels,function(l){return l.tickValue})}else o=a,i=Sx(r,o,!0);return mx(t,a,{ticks:i,tickCategoryInterval:o})}function sM(r){var e=r.scale.getTicks(),t=Xi(r);return{labels:G(e,function(a,n){return{level:a.level,formattedLabel:t(a,n),rawLabel:r.scale.getLabel(a),tickValue:a.value}})}}function gx(r,e){return Ti(r)[e]||(Ti(r)[e]=[])}function yx(r,e){for(var t=0;t40&&(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)),v=Math.abs(u*Math.sin(a)),f=0,h=0;l<=i[1];l+=s){var p=0,d=0,g=Ws(t({value:l}),e.font,"center","top");p=g.width*1.3,d=g.height*1.3,f=Math.max(f,p,7),h=Math.max(h,d,7)}var y=f/c,m=h/v;isNaN(y)&&(y=1/0),isNaN(m)&&(m=1/0);var S=Math.max(0,Math.floor(Math.min(y,m))),x=Ti(r.model),b=r.getExtent(),_=x.lastAutoInterval,A=x.lastTickCount;return _!=null&&A!=null&&Math.abs(_-S)<=1&&Math.abs(A-o)<=1&&_>S&&x.axisExtent0===b[0]&&x.axisExtent1===b[1]?S=_:(x.lastTickCount=o,x.lastAutoInterval=S,x.axisExtent0=b[0],x.axisExtent1=b[1]),S}function cM(r){var e=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function Sx(r,e,t){var a=Xi(r),n=r.scale,i=n.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((e||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 v=vx(r),f=o.get("showMinLabel")||v,h=o.get("showMaxLabel")||v;f&&u!==i[0]&&d(i[0]);for(var p=u;p<=i[1];p+=l)d(p);h&&p-l!==i[1]&&d(i[1]);function d(g){var y={value:g};s.push(t?g:{formattedLabel:a(y),rawLabel:n.getLabel(y),tickValue:g})}return s}function xx(r,e,t){var a=r.scale,n=Xi(r),i=[];return w(a.getTicks(),function(o){var s=a.getLabel(o),l=o.value;e(o.value,s)&&i.push(t?l:{formattedLabel:n(o),rawLabel:s,tickValue:l})}),i}var Np=[0,1],vM=function(){function r(e,t,a){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=a||[0,0]}return r.prototype.contain=function(e){var t=this._extent,a=Math.min(t[0],t[1]),n=Math.max(t[0],t[1]);return e>=a&&e<=n},r.prototype.containData=function(e){return this.scale.contain(e)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(e){return Vm(e||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(e,t){var a=this._extent;a[0]=e,a[1]=t},r.prototype.dataToCoord=function(e,t){var a=this._extent,n=this.scale;return e=n.normalize(e),this.onBand&&n.type==="ordinal"&&(a=a.slice(),Op(a,n.count())),dt(e,Np,a,t)},r.prototype.coordToData=function(e,t){var a=this._extent,n=this.scale;this.onBand&&n.type==="ordinal"&&(a=a.slice(),Op(a,n.count()));var i=dt(e,a,Np,t);return this.scale.scale(i)},r.prototype.pointToData=function(e,t){},r.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),a=nM(this,t),n=a.ticks,i=G(n,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=t.get("alignWithLabel");return fM(this,i,o,e.clamp),i},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var a=this.scale.getMinorTicks(t),n=G(a,function(i){return G(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return n},r.prototype.getViewLabels=function(){return aM(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 e=this._extent,t=this.scale.getExtent(),a=t[1]-t[0]+(this.onBand?1:0);a===0&&(a=1);var n=Math.abs(e[1]-e[0]);return Math.abs(n)/a},r.prototype.calculateCategoryInterval=function(){return uM(this)},r}();function Op(r,e){var t=r[1]-r[0],a=e,n=t/a/2;r[0]+=n,r[1]-=n}function fM(r,e,t,a){var n=e.length;if(!r.onBand||t||!n)return;var i=r.getExtent(),o,s;if(n===1)e[0].coord=i[0],o=e[1]={coord:i[0]};else{var l=e[n-1].tickValue-e[0].tickValue,u=(e[n-1].coord-e[0].coord)/l;w(e,function(h){h.coord-=u/2});var c=r.scale.getExtent();s=1+c[1]-e[n-1].tickValue,o={coord:e[n-1].coord+u*s},e.push(o)}var v=i[0]>i[1];f(e[0].coord,i[0])&&(a?e[0].coord=i[0]:e.shift()),a&&f(i[0],e[0].coord)&&e.unshift({coord:i[0]}),f(i[1],o.coord)&&(a?o.coord=i[1]:e.pop()),a&&f(o.coord,i[1])&&e.push({coord:i[1]});function f(h,p){return h=Nt(h),p=Nt(p),v?h>p:hn&&(n+=zn);var h=Math.atan2(s,o);if(h<0&&(h+=zn),h>=a&&h<=n||h+zn>=a&&h+zn<=n)return l[0]=c,l[1]=v,u-t;var p=t*Math.cos(a)+r,d=t*Math.sin(a)+e,g=t*Math.cos(n)+r,y=t*Math.sin(n)+e,m=(p-o)*(p-o)+(d-s)*(d-s),S=(g-o)*(g-o)+(y-s)*(y-s);return m0){e=e/180*Math.PI,Fe.fromArray(r[0]),_t.fromArray(r[1]),Bt.fromArray(r[2]),Gt.sub(Je,Fe,_t),Gt.sub(Xe,Bt,_t);var t=Je.len(),a=Xe.len();if(!(t<.001||a<.001)){Je.scale(1/t),Xe.scale(1/a);var n=Je.dot(Xe),i=Math.cos(e);if(i1&&Gt.copy(ce,Bt),ce.toArray(r[1])}}}}function mM(r,e,t){if(t<=180&&t>0){t=t/180*Math.PI,Fe.fromArray(r[0]),_t.fromArray(r[1]),Bt.fromArray(r[2]),Gt.sub(Je,_t,Fe),Gt.sub(Xe,Bt,_t);var a=Je.len(),n=Xe.len();if(!(a<.001||n<.001)){Je.scale(1/a),Xe.scale(1/n);var i=Je.dot(e),o=Math.cos(t);if(i=l)Gt.copy(ce,Bt);else{ce.scaleAndAdd(Xe,s/Math.tan(Math.PI/2-c));var v=Bt.x!==_t.x?(ce.x-_t.x)/(Bt.x-_t.x):(ce.y-_t.y)/(Bt.y-_t.y);if(isNaN(v))return;v<0?Gt.copy(ce,_t):v>1&&Gt.copy(ce,Bt)}ce.toArray(r[1])}}}}function Bp(r,e,t,a){var n=t==="normal",i=n?r:r.ensureState(t);i.ignore=e;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 SM(r,e){var t=e.smooth,a=e.points;if(!!a)if(r.moveTo(a[0][0],a[0][1]),t>0&&a.length>=3){var n=oa(a[0],a[1]),i=oa(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)*t,s=xl([],a[1],a[0],o/n),l=xl([],a[1],a[2],o/i),u=xl([],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&&b(-c/o,0,o);var d=r[0],g=r[o-1],y,m;S(),y<0&&_(-y,.8),m<0&&_(m,.8),S(),x(y,m,1),x(m,y,-1),S(),y<0&&A(-y),m<0&&A(m);function S(){y=d.rect[e]-a,m=n-g.rect[e]-g.rect[t]}function x(T,C,M){if(T<0){var D=Math.min(C,-T);if(D>0){b(D*M,0,o);var I=D+T;I<0&&_(-I*M,1)}else _(-T*M,1)}}function b(T,C,M){T!==0&&(u=!0);for(var D=C;D0)for(var I=0;I0;I--){var k=M[I-1]*R;b(-k,I,o)}}}function A(T){var C=T<0?-1:1;T=Math.abs(T);for(var M=Math.ceil(T/(o-1)),D=0;D0?b(M,0,D+1):b(-M,o-D-1,o),T-=M,T<=0)return}return u}function xM(r,e,t,a){return Ax(r,"x","width",e,t,a)}function Tx(r,e,t,a){return Ax(r,"y","height",e,t,a)}function Cx(r){var e=[];r.sort(function(d,g){return g.priority-d.priority});var t=new xt(0,0,0,0);function a(d){if(!d.ignore){var g=d.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}d.ignore=!0}for(var n=0;n=0&&a.attr(i.oldLayoutSelect),st(f,"emphasis")>=0&&a.attr(i.oldLayoutEmphasis)),lt(a,u,t,l)}else if(a.attr(u),!mn(a).valueAnimation){var v=mt(a.style.opacity,1);a.style.opacity=0,It(a,{style:{opacity:v}},t,l)}if(i.oldLayout=u,a.states.select){var h=i.oldLayoutSelect={};_o(h,u,bo),_o(h,a.states.select,bo)}if(a.states.emphasis){var p=i.oldLayoutEmphasis={};_o(p,u,bo),_o(p,a.states.emphasis,bo)}d0(a,l,c,t,t)}if(n&&!n.ignore&&!n.invisible){var i=wM(n),o=i.oldLayout,d={points:n.shape.points};o?(n.attr({shape:o}),lt(n,{shape:d},t)):(n.setShape(d),n.style.strokePercent=0,It(n,{style:{strokePercent:1}},t)),i.oldLayout=d}},r}();const TM=AM;var ql=ut();function CM(r){r.registerUpdateLifecycle("series:beforeupdate",function(e,t,a){var n=ql(t).labelManager;n||(n=ql(t).labelManager=new TM),n.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(e,t,a){var n=ql(t).labelManager;a.updatedSeries.forEach(function(i){n.addLabelsOfSeries(t.getViewOfSeriesModel(i))}),n.updateLayoutConfig(t),n.layout(t),n.processLabelsOverall()})}var DM=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t){return yr(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var a=new tt,n=Ht("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);a.add(n),n.setStyle(t.lineStyle);var i=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=i==="none"?"circle":i,l=t.itemHeight*.8,u=Ht(s,(t.itemWidth-l)/2,(t.itemHeight-l)/2,l,l,t.itemStyle.fill);a.add(u),u.setStyle(t.itemStyle);var c=t.iconRotate==="inherit"?o:t.iconRotate||0;return u.rotation=c*Math.PI/180,u.setOrigin([t.itemWidth/2,t.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),a},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(Pt);const MM=DM;function on(r,e){var t=r.mapDimensionsAll("defaultedLabel"),a=t.length;if(a===1){var n=rn(r,e,t[0]);return n!=null?n+"":null}else if(a){for(var i=[],o=0;o=0&&a.push(e[i])}return a.join(" ")}var IM=function(r){E(e,r);function e(t,a,n,i){var o=r.call(this)||this;return o.updateData(t,a,n,i),o}return e.prototype._createSymbol=function(t,a,n,i,o){this.removeAll();var s=Ht(t,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=LM,this._symbolType=t,this.add(s)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){vr(this.childAt(0))},e.prototype.downplay=function(){fr(this.childAt(0))},e.prototype.setZ=function(t,a){var n=this.childAt(0);n.zlevel=t,n.z=a},e.prototype.setDraggable=function(t,a){var n=this.childAt(0);n.draggable=t,n.cursor=!a&&t?"move":n.cursor},e.prototype.updateData=function(t,a,n,i){this.silent=!1;var o=t.getItemVisual(a,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,a),u=o!==this._symbolType,c=i&&i.disableAnimation;if(u){var v=t.getItemVisual(a,"symbolKeepAspect");this._createSymbol(o,t,a,l,v)}else{var f=this.childAt(0);f.silent=!1;var h={scaleX:l[0]/2,scaleY:l[1]/2};c?f.attr(h):lt(f,h,s,a),We(f)}if(this._updateCommon(t,a,l,n,i),u){var f=this.childAt(0);if(!c){var h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:f.style.opacity}};f.scaleX=f.scaleY=0,f.style.opacity=0,It(f,h,s,a)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,a,n,i,o){var s=this.childAt(0),l=t.hostModel,u,c,v,f,h,p,d,g,y;if(i&&(u=i.emphasisItemStyle,c=i.blurItemStyle,v=i.selectItemStyle,f=i.focus,h=i.blurScope,d=i.labelStatesModels,g=i.hoverScale,y=i.cursorStyle,p=i.emphasisDisabled),!i||t.hasItemOption){var m=i&&i.itemModel?i.itemModel:t.getItemModel(a),S=m.getModel("emphasis");u=S.getModel("itemStyle").getItemStyle(),v=m.getModel(["select","itemStyle"]).getItemStyle(),c=m.getModel(["blur","itemStyle"]).getItemStyle(),f=S.get("focus"),h=S.get("blurScope"),p=S.get("disabled"),d=Jt(m),g=S.getShallow("scale"),y=m.getShallow("cursor")}var x=t.getItemVisual(a,"symbolRotate");s.attr("rotation",(x||0)*Math.PI/180||0);var b=Cn(t.getItemVisual(a,"symbolOffset"),n);b&&(s.x=b[0],s.y=b[1]),y&&s.attr("cursor",y);var _=t.getItemVisual(a,"style"),A=_.fill;if(s instanceof Ne){var T=s.style;s.useStyle(z({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},_))}else s.__isEmptyBrush?s.useStyle(z({},_)):s.useStyle(_),s.style.decal=null,s.setColor(A,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var C=t.getItemVisual(a,"liftZ"),M=this._z2;C!=null?M==null&&(this._z2=s.z2,s.z2+=C):M!=null&&(s.z2=M,this._z2=null);var D=o&&o.useNameLabel;se(s,d,{labelFetcher:l,labelDataIndex:a,defaultText:I,inheritColor:A,defaultOpacity:_.opacity});function I(R){return D?t.getName(R):on(t,R)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var L=s.ensureState("emphasis");if(L.style=u,s.ensureState("select").style=v,s.ensureState("blur").style=c,g){var P=Math.max(pt(g)?g:1.1,3/this._sizeY);L.scaleX=this._sizeX*P,L.scaleY=this._sizeY*P}this.setSymbolScale(1),Ot(this,f,h,p)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,a,n){var i=this.childAt(0),o=K(this).dataIndex,s=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var l=i.getTextContent();l&&Nr(l,{style:{opacity:0}},a,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Nr(i,{style:{opacity:0},scaleX:0,scaleY:0},a,{dataIndex:o,cb:t,removeOpt:s})},e.getSymbolSize=function(t,a){return Yi(t.getItemVisual(a,"symbolSize"))},e}(tt);function LM(r,e){this.parent.drift(r,e)}const qi=IM;function jl(r,e,t,a){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(a.isIgnore&&a.isIgnore(t))&&!(a.clipShape&&!a.clipShape.contain(e[0],e[1]))&&r.getItemVisual(t,"symbol")!=="none"}function Gp(r){return r!=null&&!j(r)&&(r={isIgnore:r}),r||{}}function Fp(r){var e=r.hostModel,t=e.getModel("emphasis");return{emphasisItemStyle:t.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:t.get("focus"),blurScope:t.get("blurScope"),emphasisDisabled:t.get("disabled"),hoverScale:t.get("scale"),labelStatesModels:Jt(e),cursorStyle:e.get("cursor")}}var PM=function(){function r(e){this.group=new tt,this._SymbolCtor=e||qi}return r.prototype.updateData=function(e,t){this._progressiveEls=null,t=Gp(t);var a=this.group,n=e.hostModel,i=this._data,o=this._SymbolCtor,s=t.disableAnimation,l=Fp(e),u={disableAnimation:s},c=t.getSymbolPoint||function(v){return e.getItemLayout(v)};i||a.removeAll(),e.diff(i).add(function(v){var f=c(v);if(jl(e,f,v,t)){var h=new o(e,v,l,u);h.setPosition(f),e.setItemGraphicEl(v,h),a.add(h)}}).update(function(v,f){var h=i.getItemGraphicEl(f),p=c(v);if(!jl(e,p,v,t)){a.remove(h);return}var d=e.getItemVisual(v,"symbol")||"circle",g=h&&h.getSymbolType&&h.getSymbolType();if(!h||g&&g!==d)a.remove(h),h=new o(e,v,l,u),h.setPosition(p);else{h.updateData(e,v,l,u);var y={x:p[0],y:p[1]};s?h.attr(y):lt(h,y,n)}a.add(h),e.setItemGraphicEl(v,h)}).remove(function(v){var f=i.getItemGraphicEl(v);f&&f.fadeOut(function(){a.remove(f)},n)}).execute(),this._getSymbolPoint=c,this._data=e},r.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(a,n){var i=e._getSymbolPoint(n);a.setPosition(i),a.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=Fp(e),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t,a){this._progressiveEls=[],a=Gp(a);function n(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=e.start;i0?t=a[0]:a[1]<0&&(t=a[1]),t}function Ix(r,e,t,a){var n=NaN;r.stacked&&(n=t.get(t.getCalculationInfo("stackedOverDimension"),a)),isNaN(n)&&(n=r.valueStart);var i=r.baseDataOffset,o=[];return o[i]=t.get(r.baseDim,a),o[1-i]=n,e.dataToPoint(o)}function EM(r,e){var t=[];return e.diff(r).add(function(a){t.push({cmd:"+",idx:a})}).update(function(a,n){t.push({cmd:"=",idx:n,idx1:a})}).remove(function(a){t.push({cmd:"-",idx:a})}).execute(),t}function kM(r,e,t,a,n,i,o,s){for(var l=EM(r,e),u=[],c=[],v=[],f=[],h=[],p=[],d=[],g=Mx(n,e,o),y=r.getLayout("points")||[],m=e.getLayout("points")||[],S=0;S=n||d<0)break;if(ha(y,m)){if(l){d+=i;continue}break}if(d===t)r[i>0?"moveTo":"lineTo"](y,m),v=y,f=m;else{var S=y-u,x=m-c;if(S*S+x*x<.5){d+=i;continue}if(o>0){for(var b=d+i,_=e[b*2],A=e[b*2+1];_===y&&A===m&&g=a||ha(_,A))h=y,p=m;else{M=_-u,D=A-c;var P=y-u,R=_-y,k=m-c,B=A-m,N=void 0,V=void 0;if(s==="x"){N=Math.abs(P),V=Math.abs(R);var H=M>0?1:-1;h=y-H*N*o,p=m,I=y+H*V*o,L=m}else if(s==="y"){N=Math.abs(k),V=Math.abs(B);var Y=D>0?1:-1;h=y,p=m-Y*N*o,I=y,L=m+Y*V*o}else N=Math.sqrt(P*P+k*k),V=Math.sqrt(R*R+B*B),C=V/(V+N),h=y-M*o*(1-C),p=m-D*o*(1-C),I=y+M*o*C,L=m+D*o*C,I=br(I,wr(_,y)),L=br(L,wr(A,m)),I=wr(I,br(_,y)),L=wr(L,br(A,m)),M=I-y,D=L-m,h=y-M*N/V,p=m-D*N/V,h=br(h,wr(u,y)),p=br(p,wr(c,m)),h=wr(h,br(u,y)),p=wr(p,br(c,m)),M=y-h,D=m-p,I=y+M*V/N,L=m+D*V/N}r.bezierCurveTo(v,f,h,p,y,m),v=I,f=L}else r.lineTo(y,m)}u=y,c=m,d+=i}return g}var Lx=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),NM=function(r){E(e,r);function e(t){var a=r.call(this,t)||this;return a.type="ec-polyline",a}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Lx},e.prototype.buildPath=function(t,a){var n=a.points,i=0,o=n.length/2;if(a.connectNulls){for(;o>0&&ha(n[o*2-2],n[o*2-1]);o--);for(;i=0){var x=u?(p-l)*S+l:(h-s)*S+s;return u?[t,x]:[x,t]}s=h,l=p;break;case o.C:h=i[v++],p=i[v++],d=i[v++],g=i[v++],y=i[v++],m=i[v++];var b=u?Qf(s,h,d,y,t,c):Qf(l,p,g,m,t,c);if(b>0)for(var _=0;_=0){var x=u?th(l,p,g,m,A):th(s,h,d,y,A);return u?[t,x]:[x,t]}}s=y,l=m;break}}},e}(Tt),OM=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}(Lx),Px=function(r){E(e,r);function e(t){var a=r.call(this,t)||this;return a.type="ec-polygon",a}return e.prototype.getDefaultShape=function(){return new OM},e.prototype.buildPath=function(t,a){var n=a.points,i=a.stackedOnPoints,o=0,s=n.length/2,l=a.smoothMonotone;if(a.connectNulls){for(;s>0&&ha(n[s*2-2],n[s*2-1]);s--);for(;oe){i?t.push(o(i,l,e)):n&&t.push(o(n,l,0),o(n,l,e));break}else n&&(t.push(o(n,l,0)),n=null),t.push(l),i=l}return t}function zM(r,e,t){var a=r.getVisual("visualMeta");if(!(!a||!a.length||!r.count())&&e.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=e.getAxis(n),u=G(i.stops,function(S){return{coord:l.toGlobalCoord(l.dataToCoord(S.value)),color:S.color}}),c=u.length,v=i.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),v.reverse());var f=BM(u,n==="x"?t.getWidth():t.getHeight()),h=f.length;if(!h&&c)return u[0].coord<0?v[1]?v[1]:u[c-1].color:v[0]?v[0]:u[0].color;var p=10,d=f[0].coord-p,g=f[h-1].coord+p,y=g-d;if(y<.001)return"transparent";w(f,function(S){S.offset=(S.coord-d)/y}),f.push({offset:h?f[h-1].offset:.5,color:v[1]||"transparent"}),f.unshift({offset:h?f[0].offset:.5,color:v[0]||"transparent"});var m=new Hs(0,0,0,0,f,!0);return m[n]=d,m[n+"2"]=g,m}}}function GM(r,e,t){var a=r.get("showAllSymbol"),n=a==="auto";if(!(a&&!n)){var i=t.getAxesByScale("ordinal")[0];if(!!i&&!(n&&FM(i,e))){var o=e.mapDimension(i.dim),s={};return w(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function FM(r,e){var t=r.getExtent(),a=Math.abs(t[1]-t[0])/r.scale.count();isNaN(a)&&(a=0);for(var n=e.count(),i=Math.max(1,Math.round(n/5)),o=0;oa)return!1;return!0}function HM(r,e){return isNaN(r)||isNaN(e)}function WM(r){for(var e=r.length/2;e>0&&HM(r[e*2-2],r[e*2-1]);e--);return e-1}function Yp(r,e){return[r[e*2],r[e*2+1]]}function $M(r,e,t){for(var a=r.length/2,n=t==="x"?0:1,i,o,s=0,l=-1,u=0;u=e||i>=e&&o<=e){l=u;break}s=u,i=o}return{range:[s,l],t:(e-i)/(o-i)}}function kx(r){if(r.get(["endLabel","show"]))return!0;for(var e=0;e0&&t.get(["emphasis","lineStyle","width"])==="bolder"){var H=d.getState("emphasis").style;H.lineWidth=+d.style.lineWidth+1}K(d).seriesIndex=t.seriesIndex,Ot(d,B,N,V);var Y=Up(t.get("smooth")),et=t.get("smoothMonotone");if(d.setShape({smooth:Y,smoothMonotone:et,connectNulls:T}),g){var it=l.getCalculationInfo("stackedOnSeries"),gt=0;g.useStyle(J(c.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),it&&(gt=Up(it.get("smooth"))),g.setShape({smooth:Y,stackedOnSmooth:gt,smoothMonotone:et,connectNulls:T}),re(g,t,"areaStyle"),K(g).seriesIndex=t.seriesIndex,Ot(g,B,N,V)}var Vt=function(Dt){i._changePolyState(Dt)};l.eachItemGraphicEl(function(Dt){Dt&&(Dt.onHoverStateChange=Vt)}),this._polyline.onHoverStateChange=Vt,this._data=l,this._coordSys=o,this._stackedOnPoints=_,this._points=v,this._step=D,this._valueOrigin=x,t.get("triggerLineEvent")&&(this.packEventData(t,d),g&&this.packEventData(t,g))},e.prototype.packEventData=function(t,a){K(a).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,a,n,i){var o=t.getData(),s=Sa(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],v=l[s*2+1];if(isNaN(c)||isNaN(v)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,v))return;var f=t.get("zlevel"),h=t.get("z");u=new qi(o,s),u.x=c,u.y=v,u.setZ(f,h);var p=u.getSymbolPath().getTextContent();p&&(p.zlevel=f,p.z=h,p.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else At.prototype.highlight.call(this,t,a,n,i)},e.prototype.downplay=function(t,a,n,i){var o=t.getData(),s=Sa(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 At.prototype.downplay.call(this,t,a,n,i)},e.prototype._changePolyState=function(t){var a=this._polygon;vs(this._polyline,t),a&&vs(a,t)},e.prototype._newPolyline=function(t){var a=this._polyline;return a&&this._lineGroup.remove(a),a=new NM({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(a),this._polyline=a,a},e.prototype._newPolygon=function(t,a){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new Px({shape:{points:t,stackedOnPoints:a},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(t,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=t.hostModel,c=u.get("animationDuration");X(c)&&(c=c(null));var v=u.get("animationDelay")||0,f=X(v)?v(null):v;t.eachItemGraphicEl(function(h,p){var d=h;if(d){var g=[h.x,h.y],y=void 0,m=void 0,S=void 0;if(n)if(o){var x=n,b=a.pointToCoord(g);i?(y=x.startAngle,m=x.endAngle,S=-b[1]/180*Math.PI):(y=x.r0,m=x.r,S=b[0])}else{var _=n;i?(y=_.x,m=_.x+_.width,S=h.x):(y=_.y+_.height,m=_.y,S=h.y)}var A=m===y?0:(S-y)/(m-y);l&&(A=1-A);var T=X(v)?v(p):c*A+f,C=d.getSymbolPath(),M=C.getTextContent();d.attr({scaleX:0,scaleY:0}),d.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),M&&M.animateFrom({style:{opacity:0}},{duration:300,delay:T}),C.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,a,n){var i=t.getModel("endLabel");if(kx(t)){var o=t.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 ct({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=WM(l);c>=0&&(se(s,Jt(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:c,defaultText:function(v,f,h){return h!=null?Dx(o,h):on(o,v)},enableTextSetter:!0},UM(i,a)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,a,n,i,o,s,l){var u=this._endLabel,c=this._polyline;if(u){t<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var v=n.getLayout("points"),f=n.hostModel,h=f.get("connectNulls"),p=s.get("precision"),d=s.get("distance")||0,g=l.getBaseAxis(),y=g.isHorizontal(),m=g.inverse,S=a.shape,x=m?y?S.x:S.y+S.height:y?S.x+S.width:S.y,b=(y?d:0)*(m?-1:1),_=(y?0:-d)*(m?-1:1),A=y?"x":"y",T=$M(v,x,A),C=T.range,M=C[1]-C[0],D=void 0;if(M>=1){if(M>1&&!h){var I=Yp(v,C[0]);u.attr({x:I[0]+b,y:I[1]+_}),o&&(D=f.getRawValue(C[0]))}else{var I=c.getPointOn(x,A);I&&u.attr({x:I[0]+b,y:I[1]+_});var L=f.getRawValue(C[0]),P=f.getRawValue(C[1]);o&&(D=Xm(n,p,L,P,T.t))}i.lastFrameIndex=C[0]}else{var R=t===1||i.lastFrameIndex>0?C[0]:0,I=Yp(v,R);o&&(D=f.getRawValue(R)),u.attr({x:I[0]+b,y:I[1]+_})}o&&mn(u).setLabelText(D)}},e.prototype._doUpdateAnimation=function(t,a,n,i,o,s,l){var u=this._polyline,c=this._polygon,v=t.hostModel,f=kM(this._data,t,this._stackedOnPoints,a,this._coordSys,n,this._valueOrigin),h=f.current,p=f.stackedOnCurrent,d=f.next,g=f.stackedOnNext;if(o&&(h=Ar(f.current,n,o,l),p=Ar(f.stackedOnCurrent,n,o,l),d=Ar(f.next,n,o,l),g=Ar(f.stackedOnNext,n,o,l)),$p(h,d)>3e3||c&&$p(p,g)>3e3){u.stopAnimation(),u.setShape({points:d}),c&&(c.stopAnimation(),c.setShape({points:d,stackedOnPoints:g}));return}u.shape.__points=f.current,u.shape.points=h;var y={shape:{points:d}};f.current!==h&&(y.shape.__points=f.next),u.stopAnimation(),lt(u,y,v),c&&(c.setShape({points:h,stackedOnPoints:p}),c.stopAnimation(),lt(c,{shape:{stackedOnPoints:g}},v),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var m=[],S=f.status,x=0;xe&&(e=r[t]);return isFinite(e)?e:NaN},min:function(r){for(var e=1/0,t=0;t10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),v=a.getDevicePixelRatio(),f=Math.abs(c[1]-c[0])*(v||1),h=Math.round(s/f);if(isFinite(h)&&h>1){i==="lttb"&&e.setData(n.lttbDownSample(n.mapDimension(u.dim),1/h));var p=void 0;$(i)?p=XM[i]:X(i)&&(p=i),p&&e.setData(n.downSample(n.mapDimension(u.dim),1/h,p,KM))}}}}}function qM(r){r.registerChartView(ZM),r.registerSeriesModel(MM),r.registerLayout(Ji("line",!0)),r.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),a=e.getModel("lineStyle").getLineStyle();a&&!a.stroke&&(a.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",a)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,Nx("line"))}var Ox=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,a){return yr(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t){var a=this.coordinateSystem;if(a&&a.clampData){var n=a.dataToPoint(a.clampData(t)),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]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(Pt);Pt.registerClass(Ox);const Cs=Ox;var jM=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(){return yr(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),a=this.get("largeThreshold");return a>t&&(t=a),t},e.prototype.brushSelector=function(t,a,n){return n.rect(a.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=Wr(Cs.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}(Cs);const JM=jM;var QM=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}(),tI=function(r){E(e,r);function e(t){var a=r.call(this,t)||this;return a.type="sausage",a}return e.prototype.getDefaultShape=function(){return new QM},e.prototype.buildPath=function(t,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,v=a.endAngle,f=a.clockwise,h=Math.PI*2,p=f?v-cMath.PI/2&&c