0&&e.arc(c+pe.cx,h+pe.cy,ye,on(pe.y0,pe.x0),on(pe.y1,pe.x1),!f),e.arc(c,h,n,on(pe.cy+pe.y1,pe.cx+pe.x1),on(Te.cy+Te.y1,Te.cx+Te.x1),!f),Me>0&&e.arc(c+Te.cx,h+Te.cy,Me,on(Te.y1,Te.x1),on(Te.y0,Te.x0),!f))}else e.moveTo(c+H,h+W),e.arc(c,h,n,l,u,!f);if(!(i>Yi)||!Z)e.lineTo(c+V,h+z);else if(N>Yi){var ye=Ca(m,N),Me=Ca(y,N),pe=cm(V,z,D,O,i,-Me,f),Te=cm(H,W,R,F,i,-ye,f);e.lineTo(c+pe.cx+pe.x0,h+pe.cy+pe.y0),N0&&e.arc(c+pe.cx,h+pe.cy,Me,on(pe.y0,pe.x0),on(pe.y1,pe.x1),!f),e.arc(c,h,i,on(pe.cy+pe.y1,pe.cx+pe.x1),on(Te.cy+Te.y1,Te.cx+Te.x1),f),ye>0&&e.arc(c+Te.cx,h+Te.cy,ye,on(Te.y1,Te.x1),on(Te.y0,Te.x0),!f))}else e.lineTo(c+V,h+z),e.arc(c,h,i,u,l,f)}e.closePath()}}}var dJ=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return e}(),Qr=function(e){q(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new dJ},t.prototype.buildPath=function(r,n){fJ(r,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Ke);Qr.prototype.type="sector";var vJ=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),cf=function(e){q(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new vJ},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.PI*2;r.moveTo(i+n.r,a),r.arc(i,a,n.r,0,o,!1),r.moveTo(i+n.r0,a),r.arc(i,a,n.r0,0,o,!0)},t}(Ke);cf.prototype.type="ring";function pJ(e,t,r,n){var i=[],a=[],o=[],s=[],l,u,c,h;if(n){c=[1/0,1/0],h=[-1/0,-1/0];for(var f=0,d=e.length;f=2){if(n){var a=pJ(i,n,r,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(r?o:o-1);s++){var l=a[s*2],u=a[s*2+1],c=i[(s+1)%o];e.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,h=i.length;sOl[1]){if(a=!1,Or.negativeSize||n)return a;var l=hm(Ol[0]-Rl[1]),u=hm(Rl[0]-Ol[1]);Lb(l,u)>dm.len()&&(l=u||!Or.bidirectional)&&(Ne.scale(fm,s,-u*i),Or.useDir&&Or.calcDirMTV()))}}return a},e.prototype._getProjMinMaxOnAxis=function(t,r,n){for(var i=this._axes[t],a=this._origin,o=r[0].dot(i)+a[t],s=o,l=o,u=1;u0){var h=c.duration,f=c.delay,d=c.easing,g={duration:h,delay:f||0,easing:d,done:a,force:!!a||!!o,setToFinal:!u,scope:e,during:o};s?t.animateFrom(r,g):t.animateTo(r,g)}else t.stopAnimation(),!s&&t.attr(r),o&&o(1),a&&a()}function it(e,t,r,n,i,a){gA("update",e,t,r,n,i,a)}function Nt(e,t,r,n,i,a){gA("enter",e,t,r,n,i,a)}function bh(e){if(!e.__zr)return!0;for(var t=0;tja(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function tD(e){return!e.isGroup}function AJ(e){return e.shape!=null}function Up(e,t,r){if(!e||!t)return;function n(o){var s={};return o.traverse(function(l){tD(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return AJ(o)&&(s.shape=Se(o.shape)),s}var a=n(e);t.traverse(function(o){if(tD(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),it(o,l,r,De(o).dataIndex)}}})}function xA(e,t){return ae(e,function(r){var n=r[0];n=nr(n,t.x),n=ni(n,t.x+t.width);var i=r[1];return i=nr(i,t.y),i=ni(i,t.y+t.height),[n,i]})}function rV(e,t){var r=nr(e.x,t.x),n=ni(e.x+e.width,t.x+t.width),i=nr(e.y,t.y),a=ni(e.y+e.height,t.y+t.height);if(n>=r&&a>=i)return{x:r,y:i,width:n-r,height:a-i}}function df(e,t,r){var n=Q({rectHover:!0},t),i=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(i.image=e.slice(8),Ae(i,r),new Er(n)):Bh(e.replace("path://",""),n,r,"center")}function Ud(e,t,r,n,i){for(var a=0,o=i[i.length-1];a1)return!1;var y=Nb(d,g,c,h)/f;return!(y<0||y>1)}function Nb(e,t,r,n){return e*n-r*t}function kJ(e){return e<=1e-6&&e>=-1e-6}function Bu(e,t,r,n,i){return t==null||(rt(t)?Ot[0]=Ot[1]=Ot[2]=Ot[3]=t:(Ot[0]=t[0],Ot[1]=t[1],Ot[2]=t[2],Ot[3]=t[3]),n&&(Ot[0]=nr(0,Ot[0]),Ot[1]=nr(0,Ot[1]),Ot[2]=nr(0,Ot[2]),Ot[3]=nr(0,Ot[3])),r&&(Ot[0]=-Ot[0],Ot[1]=-Ot[1],Ot[2]=-Ot[2],Ot[3]=-Ot[3]),rD(e,Ot,"x","width",3,1,i&&i[0]||0),rD(e,Ot,"y","height",0,2,i&&i[1]||0)),e}var Ot=[0,0,0,0];function rD(e,t,r,n,i,a,o){var s=t[a]+t[i],l=e[n];e[n]+=s,o=nr(0,ni(o,l)),e[n]=0?-t[i]:t[a]>=0?l+t[a]:ja(s)>1e-8?(l-o)*t[i]/s:0):e[r]-=t[i]}function Qo(e){var t=e.itemTooltipOption,r=e.componentModel,n=e.itemName,i=he(t)?{formatter:t}:t,a=r.mainType,o=r.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var l=e.formatterParamsExtra;l&&j(Qe(l),function(c){ge(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=De(e.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:Ae({content:n,encodeHTMLContent:!0,formatterParams:s},i)}}function aT(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function hl(e,t){if(e)if(re(e))for(var r=0;rt&&(t=o),ot&&(r=t=0),{min:r,max:t}}function w_(e,t,r){aV(e,t,r,-1/0)}function aV(e,t,r,n){if(e.ignoreModelZ)return n;var i=e.getTextContent(),a=e.getTextGuideLine(),o=e.isGroup;if(o)for(var s=e.childrenRef(),l=0;l=0&&s.push(l)}),s}}function fl(e,t){return Ge(Ge({},e,!0),t,!0)}const FJ={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",custom:"Custom chart",chart:"Chart"}},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:". "}}}},VJ={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var O0="ZH",SA="EN",wh=SA,Iy={},CA={},hV=Je.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||wh).toUpperCase();return e.indexOf(O0)>-1?O0:wh}():wh;function TA(e,t){e=e.toUpperCase(),CA[e]=new qe(t),Iy[e]=t}function GJ(e){if(he(e)){var t=Iy[e.toUpperCase()]||{};return e===O0||e===SA?Se(t):Ge(Se(t),Se(Iy[wh]),!1)}else return Ge(Se(e),Se(Iy[wh]),!1)}function sT(e){return CA[e]}function WJ(){return CA[wh]}TA(SA,FJ);TA(O0,VJ);var lT=null;function HJ(e){lT||(lT=e)}function vr(){return lT}var MA=1e3,AA=MA*60,xv=AA*60,Ti=xv*24,sD=Ti*365,UJ={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},Dy={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},ZJ="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",pm="{yyyy}-{MM}-{dd}",lD={year:"{yyyy}",month:"{yyyy}-{MM}",day:pm,hour:pm+" "+Dy.hour,minute:pm+" "+Dy.minute,second:pm+" "+Dy.second,millisecond:ZJ},$n=["year","month","day","hour","minute","second","millisecond"],$J=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function YJ(e){return!he(e)&&!we(e)?XJ(e):e}function XJ(e){e=e||{};var t={},r=!0;return j($n,function(n){r&&(r=e[n]==null)}),j($n,function(n,i){var a=e[n];t[n]={};for(var o=null,s=i;s>=0;s--){var l=$n[s],u=ke(a)&&!re(a)?a[l]:a,c=void 0;re(u)?(c=u.slice(),o=c[0]||""):he(u)?(o=u,c=[o]):(o==null?o=Dy[n]:UJ[l].test(o)||(o=t[l][l][0]+" "+o),c=[o],r&&(c[1]="{primary|"+o+"}")),t[n][l]=c}}),t}function xn(e,t){return e+="","0000".substr(0,t-e.length)+e}function _v(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function qJ(e){return e===_v(e)}function KJ(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Zp(e,t,r,n){var i=to(e),a=i[fV(r)](),o=i[kA(r)]()+1,s=Math.floor((o-1)/3)+1,l=i[LA(r)](),u=i["get"+(r?"UTC":"")+"Day"](),c=i[NA(r)](),h=(c-1)%12+1,f=i[PA(r)](),d=i[IA(r)](),g=i[DA(r)](),m=c>=12?"pm":"am",y=m.toUpperCase(),x=n instanceof qe?n:sT(n||hV)||WJ(),_=x.getModel("time"),w=_.get("month"),S=_.get("monthAbbr"),T=_.get("dayOfWeek"),M=_.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,m+"").replace(/{A}/g,y+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,xn(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,w[o-1]).replace(/{MMM}/g,S[o-1]).replace(/{MM}/g,xn(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,xn(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,T[u]).replace(/{ee}/g,M[u]).replace(/{e}/g,u+"").replace(/{HH}/g,xn(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,xn(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,xn(f,2)).replace(/{m}/g,f+"").replace(/{ss}/g,xn(d,2)).replace(/{s}/g,d+"").replace(/{SSS}/g,xn(g,3)).replace(/{S}/g,g+"")}function JJ(e,t,r,n,i){var a=null;if(he(r))a=r;else if(we(r)){var o={time:e.time,level:e.time.level},s=vr();s&&s.makeAxisLabelFormatterParamBreak(o,e.break),a=r(e.value,t,o)}else{var l=e.time;if(l){var u=r[l.lowerTimeUnit][l.upperTimeUnit];a=u[Math.min(l.level,u.length-1)]||""}else{var c=uh(e.value,i);a=r[c][c][0]}}return Zp(new Date(e.value),a,i,n)}function uh(e,t){var r=to(e),n=r[kA(t)]()+1,i=r[LA(t)](),a=r[NA(t)](),o=r[PA(t)](),s=r[IA(t)](),l=r[DA(t)](),u=l===0,c=u&&s===0,h=c&&o===0,f=h&&a===0,d=f&&i===1,g=d&&n===1;return g?"year":d?"month":f?"day":h?"hour":c?"minute":u?"second":"millisecond"}function z0(e,t,r){switch(t){case"year":e[dV(r)](0);case"month":e[vV(r)](1);case"day":e[pV(r)](0);case"hour":e[gV(r)](0);case"minute":e[mV(r)](0);case"second":e[yV(r)](0)}return e}function fV(e){return e?"getUTCFullYear":"getFullYear"}function kA(e){return e?"getUTCMonth":"getMonth"}function LA(e){return e?"getUTCDate":"getDate"}function NA(e){return e?"getUTCHours":"getHours"}function PA(e){return e?"getUTCMinutes":"getMinutes"}function IA(e){return e?"getUTCSeconds":"getSeconds"}function DA(e){return e?"getUTCMilliseconds":"getMilliseconds"}function QJ(e){return e?"setUTCFullYear":"setFullYear"}function dV(e){return e?"setUTCMonth":"setMonth"}function vV(e){return e?"setUTCDate":"setDate"}function pV(e){return e?"setUTCHours":"setHours"}function gV(e){return e?"setUTCMinutes":"setMinutes"}function mV(e){return e?"setUTCSeconds":"setSeconds"}function yV(e){return e?"setUTCMilliseconds":"setMilliseconds"}function eQ(e,t,r,n,i,a,o,s){var l=new tt({style:{text:e,font:t,align:r,verticalAlign:n,padding:i,rich:a,overflow:o?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function EA(e){if(!rA(e))return he(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function jA(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(r,n){return n.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var gf=Rp;function uT(e,t,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(c){return c&&Jn(c)?c:"-"}function a(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=t==="time",s=e instanceof Date;if(o||s){var l=o?to(e):e;if(isNaN(+l)){if(s)return"-"}else return Zp(l,n,r)}if(t==="ordinal")return y0(e)?i(e):rt(e)&&a(e)?e+"":"-";var u=Xa(e);return a(u)?EA(u):y0(e)?i(e):typeof e=="boolean"?e+"":"-"}var uD=["a","b","c","d","e","f","g"],Db=function(e,t){return"{"+e+(t??"")+"}"};function RA(e,t,r){re(t)||(t=[t]);var n=t.length;if(!n)return"";for(var i=t[0].$vars||[],a=0;a':'';var o=r.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function rQ(e,t,r){(e==="week"||e==="month"||e==="quarter"||e==="half-year"||e==="year")&&(e=`MM-dd
-yyyy`);var n=to(t),i=r?"getUTC":"get",a=n[i+"FullYear"](),o=n[i+"Month"]()+1,s=n[i+"Date"](),l=n[i+"Hours"](),u=n[i+"Minutes"](),c=n[i+"Seconds"](),h=n[i+"Milliseconds"]();return e=e.replace("MM",xn(o,2)).replace("M",o).replace("yyyy",a).replace("yy",xn(a%100+"",2)).replace("dd",xn(s,2)).replace("d",s).replace("hh",xn(l,2)).replace("h",l).replace("mm",xn(u,2)).replace("m",u).replace("ss",xn(c,2)).replace("s",c).replace("SSS",xn(h,3)),e}function nQ(e){return e&&e.charAt(0).toUpperCase()+e.substr(1)}function Vu(e,t){return t=t||"transparent",he(e)?e:ke(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function B0(e,t){if(t==="_blank"||t==="blank"){var r=window.open();r.opener=null,r.location.href=e}else window.open(e,t)}var Ey={},Eb={},mf=function(){function e(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return e.prototype.create=function(t,r){this._nonSeriesBoxMasterList=n(Ey),this._normalMasterList=n(Eb);function n(i,a){var o=[];return j(i,function(s,l){var u=s.create(t,r);o=o.concat(u||[])}),o}},e.prototype.update=function(t,r){j(this._normalMasterList,function(n){n.update&&n.update(t,r)})},e.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},e.register=function(t,r){if(t==="matrix"||t==="calendar"){Ey[t]=r;return}Eb[t]=r},e.get=function(t){return Eb[t]||Ey[t]},e}();function iQ(e){return!!Ey[e]}var cT={coord:1,coord2:2};function aQ(e){_V.set(e.fullType,{getCoord2:void 0}).getCoord2=e.getCoord2}var _V=_e();function oQ(e){var t=e.getShallow("coord",!0),r=cT.coord;if(t==null){var n=_V.get(e.type);n&&n.getCoord2&&(r=cT.coord2,t=n.getCoord2(e))}return{coord:t,from:r}}var Da={none:0,dataCoordSys:1,boxCoordSys:2};function bV(e,t){var r=e.getShallow("coordinateSystem"),n=e.getShallow("coordinateSystemUsage",!0),i=Da.none;if(r){var a=e.mainType==="series";n==null&&(n=a?"data":"box"),n==="data"?(i=Da.dataCoordSys,a||(i=Da.none)):n==="box"&&(i=Da.boxCoordSys,!a&&!iQ(r)&&(i=Da.none))}return{coordSysType:r,kind:i}}function $p(e){var t=e.targetModel,r=e.coordSysType,n=e.coordSysProvider,i=e.isDefaultDataCoordSys;e.allowNotFound;var a=bV(t),o=a.kind,s=a.coordSysType;if(i&&o!==Da.dataCoordSys&&(o=Da.dataCoordSys,s=r),o===Da.none||s!==r)return!1;var l=n(r,t);return l?(o===Da.dataCoordSys?t.coordinateSystem=l:t.boxCoordinateSystem=l,!0):!1}var wV=function(e,t){var r=t.getReferringComponents(e,Ht).models[0];return r&&r.coordinateSystem},jy=j,SV=["left","right","top","bottom","width","height"],du=[["width","left","right"],["height","top","bottom"]];function OA(e,t,r,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;t.eachChild(function(l,u){var c=l.getBoundingRect(),h=t.childAt(u+1),f=h&&h.getBoundingRect(),d,g;if(e==="horizontal"){var m=c.width+(f?-f.x+c.x:0);d=a+m,d>n||l.newline?(a=0,d=m,o+=s+r,s=c.height):s=Math.max(s,c.height)}else{var y=c.height+(f?-f.y+c.y:0);g=o+y,g>i||l.newline?(a+=s+r,o=0,g=y,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),e==="horizontal"?a=d+r:o=g+r)})}var wu=OA;Fe(OA,"vertical");Fe(OA,"horizontal");function CV(e,t){return{left:e.getShallow("left",t),top:e.getShallow("top",t),right:e.getShallow("right",t),bottom:e.getShallow("bottom",t),width:e.getShallow("width",t),height:e.getShallow("height",t)}}function sQ(e,t){var r=Tr(e,t,{enableLayoutOnlyByCenter:!0}),n=e.getBoxLayoutParams(),i,a;if(r.type===Zd.point)a=r.refPoint,i=It(n,{width:t.getWidth(),height:t.getHeight()});else{var o=e.get("center"),s=re(o)?o:[o,o];i=It(n,r.refContainer),a=r.boxCoordFrom===cT.coord2?r.refPoint:[ce(s[0],i.width)+i.x,ce(s[1],i.height)+i.y]}return{viewRect:i,center:a}}function TV(e,t){var r=sQ(e,t),n=r.viewRect,i=r.center,a=e.get("radius");re(a)||(a=[0,a]);var o=ce(n.width,t.getWidth()),s=ce(n.height,t.getHeight()),l=Math.min(o,s),u=ce(a[0],l/2),c=ce(a[1],l/2);return{cx:i[0],cy:i[1],r0:u,r:c,viewRect:n}}function It(e,t,r){r=gf(r||0);var n=t.width,i=t.height,a=ce(e.left,n),o=ce(e.top,i),s=ce(e.right,n),l=ce(e.bottom,i),u=ce(e.width,n),c=ce(e.height,i),h=r[2]+r[0],f=r[1]+r[3],d=e.aspect;switch(isNaN(u)&&(u=n-s-f-a),isNaN(c)&&(c=i-l-h-o),d!=null&&(isNaN(u)&&isNaN(c)&&(d>n/i?u=n*.8:c=i*.8),isNaN(u)&&(u=d*c),isNaN(c)&&(c=u/d)),isNaN(a)&&(a=n-s-u-f),isNaN(o)&&(o=i-l-c-h),e.left||e.right){case"center":a=n/2-u/2-r[3];break;case"right":a=n-u-f;break}switch(e.top||e.bottom){case"middle":case"center":o=i/2-c/2-r[0];break;case"bottom":o=i-c-h;break}a=a||0,o=o||0,isNaN(u)&&(u=n-f-a-(s||0)),isNaN(c)&&(c=i-h-o-(l||0));var g=new Pe((t.x||0)+a+r[3],(t.y||0)+o+r[0],u,c);return g.margin=r,g}function MV(e,t,r){var n=e.getShallow("preserveAspect",!0);if(!n)return t;var i=t.width/t.height;if(Math.abs(Math.atan(r)-Math.atan(i))<1e-9)return t;var a=e.getShallow("preserveAspectAlign",!0),o=e.getShallow("preserveAspectVerticalAlign",!0),s={width:t.width,height:t.height},l=n==="cover";return i>r&&!l||i=m)return h;for(var y=0;y=0;l--)s=Ge(s,i[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(r,n){var i=r+"Index",a=r+"Id";return lf(this.ecModel,r,{index:this.get(i,!0),id:this.get(a,!0)},n)},t.prototype.getBoxLayoutParams=function(){return CV(this,!1)},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(r){this.option.zlevel=r},t.protoInitialize=function(){var r=t.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0}(),t}(qe);wF($e,qe);d_($e);zJ($e);BJ($e,cQ);function cQ(e){var t=[];return j($e.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=ae(t,function(r){return Ra(r).main}),e!=="dataset"&&Ve(t,"dataset")<=0&&t.unshift("dataset"),t}var K={color:{},darkColor:{},size:{}},er=K.color={theme:["#5070dd","#b6d634","#505372","#ff994d","#0ca8df","#ffd10a","#fb628b","#785db0","#3fbe95"],neutral00:"#fff",neutral05:"#f4f7fd",neutral10:"#e8ebf0",neutral15:"#dbdee4",neutral20:"#cfd2d7",neutral25:"#c3c5cb",neutral30:"#b7b9be",neutral35:"#aaacb2",neutral40:"#9ea0a5",neutral45:"#929399",neutral50:"#86878c",neutral55:"#797b7f",neutral60:"#6d6e73",neutral65:"#616266",neutral70:"#54555a",neutral75:"#48494d",neutral80:"#3c3c41",neutral85:"#303034",neutral90:"#232328",neutral95:"#17171b",neutral99:"#000",accent05:"#eff1f9",accent10:"#e0e4f2",accent15:"#d0d6ec",accent20:"#c0c9e6",accent25:"#b1bbdf",accent30:"#a1aed9",accent35:"#91a0d3",accent40:"#8292cc",accent45:"#7285c6",accent50:"#6578ba",accent55:"#5c6da9",accent60:"#536298",accent65:"#4a5787",accent70:"#404c76",accent75:"#374165",accent80:"#2e3654",accent85:"#252b43",accent90:"#1b2032",accent95:"#121521",transparent:"rgba(0,0,0,0)",highlight:"rgba(255,231,130,0.8)"};Q(er,{primary:er.neutral80,secondary:er.neutral70,tertiary:er.neutral60,quaternary:er.neutral50,disabled:er.neutral20,border:er.neutral30,borderTint:er.neutral20,borderShade:er.neutral40,background:er.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:er.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:er.neutral70,axisLineTint:er.neutral40,axisTick:er.neutral70,axisTickMinor:er.neutral60,axisLabel:er.neutral70,axisSplitLine:er.neutral15,axisMinorSplitLine:er.neutral05});for(var zl in er)if(er.hasOwnProperty(zl)){var cD=er[zl];zl==="theme"?K.darkColor.theme=er.theme.slice():zl==="highlight"?K.darkColor.highlight="rgba(255,231,130,0.4)":zl.indexOf("accent")===0?K.darkColor[zl]=Io(cD,null,function(e){return e*.5},function(e){return Math.min(1,1.3-e)}):K.darkColor[zl]=Io(cD,null,function(e){return e*.9},function(e){return 1-Math.pow(e,1.5)})}K.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var kV="";typeof navigator<"u"&&(kV=navigator.platform||"");var Sc="rgba(0, 0, 0, 0.2)",LV=K.color.theme[0],hQ=Io(LV,null,null,.9);const fQ={darkMode:"auto",colorBy:"series",color:K.color.theme,gradientColor:[hQ,LV],aria:{decal:{decals:[{color:Sc,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Sc,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Sc,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Sc,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Sc,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Sc,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:kV.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 NV=_e(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),si="original",Wr="arrayRows",li="objectRows",va="keyedColumns",Zs="typedArray",PV="unknown",la="column",Qu="row",Zr={Must:1,Might:2,Not:3},IV=Ye();function dQ(e){IV(e).datasetMap=_e()}function DV(e,t,r){var n={},i=BA(t);if(!i||!e)return n;var a=[],o=[],s=t.ecModel,l=IV(s).datasetMap,u=i.uid+"_"+r.seriesLayoutBy,c,h;e=e.slice(),j(e,function(m,y){var x=ke(m)?m:e[y]={name:m};x.type==="ordinal"&&c==null&&(c=y,h=g(x)),n[x.name]=[]});var f=l.get(u)||l.set(u,{categoryWayDim:h,valueWayDim:0});j(e,function(m,y){var x=m.name,_=g(m);if(c==null){var w=f.valueWayDim;d(n[x],w,_),d(o,w,_),f.valueWayDim+=_}else if(c===y)d(n[x],0,_),d(a,0,_);else{var w=f.categoryWayDim;d(n[x],w,_),d(o,w,_),f.categoryWayDim+=_}});function d(m,y,x){for(var _=0;_t)return e[n];return e[r-1]}function RV(e,t,r,n,i,a,o){a=a||e;var s=t(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var c=o==null||!n?r:yQ(n,o);if(c=c||r,!(!c||!c.length)){var h=c[l];return i&&(u[i]=h),s.paletteIdx=(l+1)%c.length,h}}function xQ(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var gm,hd,fD,dD="\0_ec_inner",_Q=1,VA=function(e){q(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r,n,i,a,o,s){a=a||{},this.option=null,this._theme=new qe(a),this._locale=new qe(o),this._optionManager=s},t.prototype.setOption=function(r,n,i){var a=gD(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},t.prototype.resetOption=function(r,n){return this._resetOption(r,gD(n))},t.prototype._resetOption=function(r,n){var i=!1,a=this._optionManager;if(!r||r==="recreate"){var o=a.mountOption(r==="recreate");!this.option||r==="recreate"?fD(this,o):(this.restoreData(),this._mergeOption(o,n)),i=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!r||r==="recreate"||r==="media"){var l=a.getMediaOption(this);l.length&&j(l,function(u){i=!0,this._mergeOption(u,n)},this)}return i},t.prototype.mergeOption=function(r){this._mergeOption(r,null)},t.prototype._mergeOption=function(r,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=_e(),u=n&&n.replaceMergeMainTypeMap;dQ(this),j(r,function(h,f){h!=null&&($e.hasClass(f)?f&&(s.push(f),l.set(f,!0)):i[f]=i[f]==null?Se(h):Ge(i[f],h,!0))}),u&&u.each(function(h,f){$e.hasClass(f)&&!l.get(f)&&(s.push(f),l.set(f,!0))}),$e.topologicalTravel(s,$e.getAllClassMainTypes(),c,this);function c(h){var f=gQ(this,h,Tt(r[h])),d=a.get(h),g=d?u&&u.get(h)?"replaceMerge":"normalMerge":"replaceAll",m=mF(d,f,g);jq(m,h,$e),i[h]=null,a.set(h,null),o.set(h,0);var y=[],x=[],_=0,w;j(m,function(S,T){var M=S.existing,A=S.newOption;if(!A)M&&(M.mergeOption({},this),M.optionUpdated({},!1));else{var P=h==="series",I=$e.getClass(h,S.keyInfo.subType,!P);if(!I)return;if(h==="tooltip"){if(w)return;w=!0}if(M&&M.constructor===I)M.name=S.keyInfo.name,M.mergeOption(A,this),M.optionUpdated(A,!1);else{var N=Q({componentIndex:T},S.keyInfo);M=new I(A,this,this,N),Q(M,N),S.brandNew&&(M.__requireNewView=!0),M.init(A,this,this),M.optionUpdated(null,!0)}}M?(y.push(M.option),x.push(M),_++):(y.push(void 0),x.push(void 0))},this),i[h]=y,a.set(h,x),o.set(h,_),h==="series"&&gm(this)}this._seriesIndices||gm(this)},t.prototype.getOption=function(){var r=Se(this.option);return j(r,function(n,i){if($e.hasClass(i)){for(var a=Tt(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!tp(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[dD],r},t.prototype.setTheme=function(r){this._theme=new qe(r),this._resetOption("recreate",null)},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(r){this._payload=r},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(r,n){var i=this._componentsMap.get(r);if(i){var a=i[n||0];if(a)return a;if(n==null){for(var o=0;o=t:r==="max"?e<=t:e===t}function LQ(e,t){return e.join(",")===t.join(",")}var Zi=j,sp=ke,mD=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function jb(e){var t=e&&e.itemStyle;if(t)for(var r=0,n=mD.length;r0?r[o-1].seriesModel:null)}),zQ(r)}})}function zQ(e){j(e,function(t,r){var n=[],i=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(u,c,h){var f=o.get(t.stackedDimension,h);if(isNaN(f))return i;var d,g;s?g=o.getRawIndex(h):d=o.get(t.stackedByDimension,h);for(var m=NaN,y=r-1;y>=0;y--){var x=e[y];if(s||(g=x.data.rawIndexOf(x.stackedByDimension,d)),g>=0){var _=x.data.getByRawIndex(x.stackResultDimension,g);if(l==="all"||l==="positive"&&_>0||l==="negative"&&_<0||l==="samesign"&&f>=0&&_>0||l==="samesign"&&f<=0&&_<0){f=wq(f,_),m=_;break}}}return n[0]=f,n[1]=m,n})})}var T_=function(){function e(t){this.data=t.data||(t.sourceFormat===va?{}:[]),this.sourceFormat=t.sourceFormat||PV,this.seriesLayoutBy=t.seriesLayoutBy||la,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var r=this.dimensionsDefine=t.dimensionsDefine;if(r)for(var n=0;nm&&(m=w)}d[0]=g,d[1]=m}},i=function(){return this._data?this._data.length/this._dimSize:0};CD=(t={},t[Wr+"_"+la]={pure:!0,appendData:a},t[Wr+"_"+Qu]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[li]={pure:!0,appendData:a},t[va]={pure:!0,appendData:function(o){var s=this._data;j(o,function(l,u){for(var c=s[u]||(s[u]=[]),h=0;h<(l||[]).length;h++)c.push(l[h])})}},t[si]={appendData:a},t[Zs]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function a(o){for(var s=0;s=0&&(m=o.interpolatedValue[y])}return m!=null?m+"":""})}},e.prototype.getRawValue=function(t,r){return Vh(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,n){},e}();function kD(e){var t,r;return ke(e)?e.type&&(r=e):t=e,{text:t,frag:r}}function bv(e){return new ZQ(e)}var ZQ=function(){function e(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return e.prototype.perform=function(t){var r=this._upstream,n=t&&t.skip;if(this._dirty&&r){var i=this.context;i.data=i.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!n&&(a=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(a="reset");function c(_){return!(_>=1)&&(_=1),_}var h;(this._dirty||a==="reset")&&(this._dirty=!1,h=this._doReset(n)),this._modBy=l,this._modDataCount=u;var f=t&&t.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var d=this._dueIndex,g=Math.min(f!=null?this._dueIndex+f:1/0,this._dueEnd);if(!n&&(h||d1&&n>0?s:o}};return a;function o(){return t=e?null:lt},gte:function(e,t){return e>=t}},YQ=function(){function e(t,r){if(!rt(r)){var n="";ft(n)}this._opFn=$V[t],this._rvalFloat=Xa(r)}return e.prototype.evaluate=function(t){return rt(t)?this._opFn(t,this._rvalFloat):this._opFn(Xa(t),this._rvalFloat)},e}(),YV=function(){function e(t,r){var n=t==="desc";this._resultLT=n?1:-1,r==null&&(r=n?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return e.prototype.evaluate=function(t,r){var n=rt(t)?t:Xa(t),i=rt(r)?r:Xa(r),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=he(t),l=he(r);s&&(n=l?t:0),l&&(i=s?r:0)}return ni?-this._resultLT:0},e}(),XQ=function(){function e(t,r){this._rval=r,this._isEQ=t,this._rvalTypeof=typeof r,this._rvalFloat=Xa(r)}return e.prototype.evaluate=function(t){var r=t===this._rval;if(!r){var n=typeof t;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(r=Xa(t)===this._rvalFloat)}return this._isEQ?r:!r},e}();function qQ(e,t){return e==="eq"||e==="ne"?new XQ(e==="eq",t):ge($V,e)?new YQ(e,t):null}var KQ=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(t){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(t){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(t,r){},e.prototype.retrieveValueFromItem=function(t,r){},e.prototype.convertValue=function(t,r){return $s(t,r)},e}();function JQ(e,t){var r=new KQ,n=e.data,i=r.sourceFormat=e.sourceFormat,a=e.startIndex,o="";e.seriesLayoutBy!==la&&ft(o);var s=[],l={},u=e.dimensionsDefine;if(u)j(u,function(m,y){var x=m.name,_={index:y,name:x,displayName:m.displayName};if(s.push(_),x!=null){var w="";ge(l,x)&&ft(w),l[x]=_}});else for(var c=0;c65535?oee:see}function Tc(){return[1/0,-1/0]}function lee(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function PD(e,t,r,n,i){var a=KV[r||"float"];if(i){var o=e[t],s=o&&o.length;if(s!==n){for(var l=new a(n),u=0;uy[1]&&(y[1]=m)}return this._rawCount=this._count=l,{start:s,end:l}},e.prototype._initDataFromProvider=function(t,r,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=ae(o,function(_){return _.property}),c=0;cx[1]&&(x[1]=y)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=r,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(t,r){if(!(r>=0&&r=0&&r=this._rawCount||t<0)return-1;if(!this._indices)return t;var r=this._indices,n=r[t];if(n!=null&&nt)a=o-1;else return o}return-1},e.prototype.getIndices=function(){var t,r=this._indices;if(r){var n=r.constructor,i=this._count;if(n===Array){t=new n(i);for(var a=0;a=h&&_<=f||isNaN(_))&&(l[u++]=m),m++}g=!0}else if(a===2){for(var y=d[i[0]],w=d[i[1]],S=t[i[1]][0],T=t[i[1]][1],x=0;x=h&&_<=f||isNaN(_))&&(M>=S&&M<=T||isNaN(M))&&(l[u++]=m),m++}g=!0}}if(!g)if(a===1)for(var x=0;x=h&&_<=f||isNaN(_))&&(l[u++]=A)}else for(var x=0;xt[N][1])&&(P=!1)}P&&(l[u++]=r.getRawIndex(x))}return ux[1]&&(x[1]=y)}}}},e.prototype.lttbDownSample=function(t,r){var n=this.clone([t],!0),i=n._chunks,a=i[t],o=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),c,h,f,d=new(Cc(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));d[s++]=u;for(var g=1;gc&&(c=h,f=S)}D>0&&Ds&&(m=s-c);for(var y=0;yg&&(g=_,d=c+y)}var w=this.getRawIndex(h),S=this.getRawIndex(d);hc-g&&(l=c-g,s.length=l);for(var m=0;mh[1]&&(h[1]=x),f[d++]=_}return a._count=d,a._indices=f,a._updateGetRawIdx(),a},e.prototype.each=function(t,r){if(this._count)for(var n=t.length,i=this._chunks,a=0,o=this.count();al&&(l=h)}return o=[s,l],this._extent[t]=o,o},e.prototype.getRawDataItem=function(t){var r=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],i=this._chunks,a=0;a=0?this._indices[t]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function t(r,n,i,a){return $s(r[a],this._dimensions[a])}zb={arrayRows:t,objectRows:function(r,n,i,a){return $s(r[n],this._dimensions[a])},keyedColumns:t,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return $s(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}}(),e}(),JV=function(){function e(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(t,r){this._sourceList=t,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length,i,a;if(ym(t)){var o=t,s=void 0,l=void 0,u=void 0;if(n){var c=r[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,a=[c._getVersionSign()]}else s=o.get("data",!0),l=Sn(s)?Zs:si,a=[];var h=this._getSourceMetaRawOption()||{},f=u&&u.metaRawOption||{},d=be(h.seriesLayoutBy,f.seriesLayoutBy)||null,g=be(h.sourceHeader,f.sourceHeader),m=be(h.dimensions,f.dimensions),y=d!==f.seriesLayoutBy||!!g!=!!f.sourceHeader||m;i=y?[dT(s,{seriesLayoutBy:d,sourceHeader:g,dimensions:m},l)]:[]}else{var x=t;if(n){var _=this._applyTransform(r);i=_.sourceList,a=_.upstreamSignList}else{var w=x.get("source",!0);i=[dT(w,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},e.prototype._applyTransform=function(t){var r=this._sourceHost,n=r.get("transform",!0),i=r.get("fromTransformResult",!0);if(i!=null){var a="";t.length!==1&&DD(a)}var o,s=[],l=[];return j(t,function(u){u.prepareSource();var c=u.getSource(i||0),h="";i!=null&&!c&&DD(h),s.push(c),l.push(u._getVersionSign())}),n?o=iee(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[BQ(s[0])]),{sourceList:o,upstreamSignList:l}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),r=0;rn||l.newline?(a=0,d=m,o+=s+r,s=c.height):s=Math.max(s,c.height)}else{var y=c.height+(f?-f.y+c.y:0);g=o+y,g>i||l.newline?(a+=s+r,o=0,g=y,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),e==="horizontal"?a=d+r:o=g+r)})}var wu=OA;Fe(OA,"vertical");Fe(OA,"horizontal");function CV(e,t){return{left:e.getShallow("left",t),top:e.getShallow("top",t),right:e.getShallow("right",t),bottom:e.getShallow("bottom",t),width:e.getShallow("width",t),height:e.getShallow("height",t)}}function sQ(e,t){var r=Tr(e,t,{enableLayoutOnlyByCenter:!0}),n=e.getBoxLayoutParams(),i,a;if(r.type===Zd.point)a=r.refPoint,i=It(n,{width:t.getWidth(),height:t.getHeight()});else{var o=e.get("center"),s=re(o)?o:[o,o];i=It(n,r.refContainer),a=r.boxCoordFrom===cT.coord2?r.refPoint:[ce(s[0],i.width)+i.x,ce(s[1],i.height)+i.y]}return{viewRect:i,center:a}}function TV(e,t){var r=sQ(e,t),n=r.viewRect,i=r.center,a=e.get("radius");re(a)||(a=[0,a]);var o=ce(n.width,t.getWidth()),s=ce(n.height,t.getHeight()),l=Math.min(o,s),u=ce(a[0],l/2),c=ce(a[1],l/2);return{cx:i[0],cy:i[1],r0:u,r:c,viewRect:n}}function It(e,t,r){r=gf(r||0);var n=t.width,i=t.height,a=ce(e.left,n),o=ce(e.top,i),s=ce(e.right,n),l=ce(e.bottom,i),u=ce(e.width,n),c=ce(e.height,i),h=r[2]+r[0],f=r[1]+r[3],d=e.aspect;switch(isNaN(u)&&(u=n-s-f-a),isNaN(c)&&(c=i-l-h-o),d!=null&&(isNaN(u)&&isNaN(c)&&(d>n/i?u=n*.8:c=i*.8),isNaN(u)&&(u=d*c),isNaN(c)&&(c=u/d)),isNaN(a)&&(a=n-s-u-f),isNaN(o)&&(o=i-l-c-h),e.left||e.right){case"center":a=n/2-u/2-r[3];break;case"right":a=n-u-f;break}switch(e.top||e.bottom){case"middle":case"center":o=i/2-c/2-r[0];break;case"bottom":o=i-c-h;break}a=a||0,o=o||0,isNaN(u)&&(u=n-f-a-(s||0)),isNaN(c)&&(c=i-h-o-(l||0));var g=new Pe((t.x||0)+a+r[3],(t.y||0)+o+r[0],u,c);return g.margin=r,g}function MV(e,t,r){var n=e.getShallow("preserveAspect",!0);if(!n)return t;var i=t.width/t.height;if(Math.abs(Math.atan(r)-Math.atan(i))<1e-9)return t;var a=e.getShallow("preserveAspectAlign",!0),o=e.getShallow("preserveAspectVerticalAlign",!0),s={width:t.width,height:t.height},l=n==="cover";return i>r&&!l||i=m)return h;for(var y=0;y=0;l--)s=Ge(s,i[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(r,n){var i=r+"Index",a=r+"Id";return lf(this.ecModel,r,{index:this.get(i,!0),id:this.get(a,!0)},n)},t.prototype.getBoxLayoutParams=function(){return CV(this,!1)},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(r){this.option.zlevel=r},t.protoInitialize=function(){var r=t.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0}(),t}(qe);wF($e,qe);d_($e);zJ($e);BJ($e,cQ);function cQ(e){var t=[];return j($e.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=ae(t,function(r){return Ra(r).main}),e!=="dataset"&&Ve(t,"dataset")<=0&&t.unshift("dataset"),t}var K={color:{},darkColor:{},size:{}},er=K.color={theme:["#5070dd","#b6d634","#505372","#ff994d","#0ca8df","#ffd10a","#fb628b","#785db0","#3fbe95"],neutral00:"#fff",neutral05:"#f4f7fd",neutral10:"#e8ebf0",neutral15:"#dbdee4",neutral20:"#cfd2d7",neutral25:"#c3c5cb",neutral30:"#b7b9be",neutral35:"#aaacb2",neutral40:"#9ea0a5",neutral45:"#929399",neutral50:"#86878c",neutral55:"#797b7f",neutral60:"#6d6e73",neutral65:"#616266",neutral70:"#54555a",neutral75:"#48494d",neutral80:"#3c3c41",neutral85:"#303034",neutral90:"#232328",neutral95:"#17171b",neutral99:"#000",accent05:"#eff1f9",accent10:"#e0e4f2",accent15:"#d0d6ec",accent20:"#c0c9e6",accent25:"#b1bbdf",accent30:"#a1aed9",accent35:"#91a0d3",accent40:"#8292cc",accent45:"#7285c6",accent50:"#6578ba",accent55:"#5c6da9",accent60:"#536298",accent65:"#4a5787",accent70:"#404c76",accent75:"#374165",accent80:"#2e3654",accent85:"#252b43",accent90:"#1b2032",accent95:"#121521",transparent:"rgba(0,0,0,0)",highlight:"rgba(255,231,130,0.8)"};Q(er,{primary:er.neutral80,secondary:er.neutral70,tertiary:er.neutral60,quaternary:er.neutral50,disabled:er.neutral20,border:er.neutral30,borderTint:er.neutral20,borderShade:er.neutral40,background:er.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:er.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:er.neutral70,axisLineTint:er.neutral40,axisTick:er.neutral70,axisTickMinor:er.neutral60,axisLabel:er.neutral70,axisSplitLine:er.neutral15,axisMinorSplitLine:er.neutral05});for(var zl in er)if(er.hasOwnProperty(zl)){var cD=er[zl];zl==="theme"?K.darkColor.theme=er.theme.slice():zl==="highlight"?K.darkColor.highlight="rgba(255,231,130,0.4)":zl.indexOf("accent")===0?K.darkColor[zl]=Io(cD,null,function(e){return e*.5},function(e){return Math.min(1,1.3-e)}):K.darkColor[zl]=Io(cD,null,function(e){return e*.9},function(e){return 1-Math.pow(e,1.5)})}K.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var kV="";typeof navigator<"u"&&(kV=navigator.platform||"");var Sc="rgba(0, 0, 0, 0.2)",LV=K.color.theme[0],hQ=Io(LV,null,null,.9);const fQ={darkMode:"auto",colorBy:"series",color:K.color.theme,gradientColor:[hQ,LV],aria:{decal:{decals:[{color:Sc,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Sc,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Sc,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Sc,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Sc,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Sc,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:kV.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 NV=_e(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),si="original",Wr="arrayRows",li="objectRows",va="keyedColumns",Zs="typedArray",PV="unknown",la="column",Qu="row",Zr={Must:1,Might:2,Not:3},IV=Ye();function dQ(e){IV(e).datasetMap=_e()}function DV(e,t,r){var n={},i=BA(t);if(!i||!e)return n;var a=[],o=[],s=t.ecModel,l=IV(s).datasetMap,u=i.uid+"_"+r.seriesLayoutBy,c,h;e=e.slice(),j(e,function(m,y){var x=ke(m)?m:e[y]={name:m};x.type==="ordinal"&&c==null&&(c=y,h=g(x)),n[x.name]=[]});var f=l.get(u)||l.set(u,{categoryWayDim:h,valueWayDim:0});j(e,function(m,y){var x=m.name,_=g(m);if(c==null){var w=f.valueWayDim;d(n[x],w,_),d(o,w,_),f.valueWayDim+=_}else if(c===y)d(n[x],0,_),d(a,0,_);else{var w=f.categoryWayDim;d(n[x],w,_),d(o,w,_),f.categoryWayDim+=_}});function d(m,y,x){for(var _=0;_t)return e[n];return e[r-1]}function RV(e,t,r,n,i,a,o){a=a||e;var s=t(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var c=o==null||!n?r:yQ(n,o);if(c=c||r,!(!c||!c.length)){var h=c[l];return i&&(u[i]=h),s.paletteIdx=(l+1)%c.length,h}}function xQ(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var gm,hd,fD,dD="\0_ec_inner",_Q=1,VA=function(e){q(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r,n,i,a,o,s){a=a||{},this.option=null,this._theme=new qe(a),this._locale=new qe(o),this._optionManager=s},t.prototype.setOption=function(r,n,i){var a=gD(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},t.prototype.resetOption=function(r,n){return this._resetOption(r,gD(n))},t.prototype._resetOption=function(r,n){var i=!1,a=this._optionManager;if(!r||r==="recreate"){var o=a.mountOption(r==="recreate");!this.option||r==="recreate"?fD(this,o):(this.restoreData(),this._mergeOption(o,n)),i=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!r||r==="recreate"||r==="media"){var l=a.getMediaOption(this);l.length&&j(l,function(u){i=!0,this._mergeOption(u,n)},this)}return i},t.prototype.mergeOption=function(r){this._mergeOption(r,null)},t.prototype._mergeOption=function(r,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=_e(),u=n&&n.replaceMergeMainTypeMap;dQ(this),j(r,function(h,f){h!=null&&($e.hasClass(f)?f&&(s.push(f),l.set(f,!0)):i[f]=i[f]==null?Se(h):Ge(i[f],h,!0))}),u&&u.each(function(h,f){$e.hasClass(f)&&!l.get(f)&&(s.push(f),l.set(f,!0))}),$e.topologicalTravel(s,$e.getAllClassMainTypes(),c,this);function c(h){var f=gQ(this,h,Tt(r[h])),d=a.get(h),g=d?u&&u.get(h)?"replaceMerge":"normalMerge":"replaceAll",m=mF(d,f,g);jq(m,h,$e),i[h]=null,a.set(h,null),o.set(h,0);var y=[],x=[],_=0,w;j(m,function(S,T){var M=S.existing,A=S.newOption;if(!A)M&&(M.mergeOption({},this),M.optionUpdated({},!1));else{var P=h==="series",I=$e.getClass(h,S.keyInfo.subType,!P);if(!I)return;if(h==="tooltip"){if(w)return;w=!0}if(M&&M.constructor===I)M.name=S.keyInfo.name,M.mergeOption(A,this),M.optionUpdated(A,!1);else{var N=Q({componentIndex:T},S.keyInfo);M=new I(A,this,this,N),Q(M,N),S.brandNew&&(M.__requireNewView=!0),M.init(A,this,this),M.optionUpdated(null,!0)}}M?(y.push(M.option),x.push(M),_++):(y.push(void 0),x.push(void 0))},this),i[h]=y,a.set(h,x),o.set(h,_),h==="series"&&gm(this)}this._seriesIndices||gm(this)},t.prototype.getOption=function(){var r=Se(this.option);return j(r,function(n,i){if($e.hasClass(i)){for(var a=Tt(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!tp(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[dD],r},t.prototype.setTheme=function(r){this._theme=new qe(r),this._resetOption("recreate",null)},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(r){this._payload=r},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(r,n){var i=this._componentsMap.get(r);if(i){var a=i[n||0];if(a)return a;if(n==null){for(var o=0;o=t:r==="max"?e<=t:e===t}function LQ(e,t){return e.join(",")===t.join(",")}var Zi=j,sp=ke,mD=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function jb(e){var t=e&&e.itemStyle;if(t)for(var r=0,n=mD.length;r0?r[o-1].seriesModel:null)}),zQ(r)}})}function zQ(e){j(e,function(t,r){var n=[],i=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(u,c,h){var f=o.get(t.stackedDimension,h);if(isNaN(f))return i;var d,g;s?g=o.getRawIndex(h):d=o.get(t.stackedByDimension,h);for(var m=NaN,y=r-1;y>=0;y--){var x=e[y];if(s||(g=x.data.rawIndexOf(x.stackedByDimension,d)),g>=0){var _=x.data.getByRawIndex(x.stackResultDimension,g);if(l==="all"||l==="positive"&&_>0||l==="negative"&&_<0||l==="samesign"&&f>=0&&_>0||l==="samesign"&&f<=0&&_<0){f=wq(f,_),m=_;break}}}return n[0]=f,n[1]=m,n})})}var T_=function(){function e(t){this.data=t.data||(t.sourceFormat===va?{}:[]),this.sourceFormat=t.sourceFormat||PV,this.seriesLayoutBy=t.seriesLayoutBy||la,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var r=this.dimensionsDefine=t.dimensionsDefine;if(r)for(var n=0;nm&&(m=w)}d[0]=g,d[1]=m}},i=function(){return this._data?this._data.length/this._dimSize:0};CD=(t={},t[Wr+"_"+la]={pure:!0,appendData:a},t[Wr+"_"+Qu]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[li]={pure:!0,appendData:a},t[va]={pure:!0,appendData:function(o){var s=this._data;j(o,function(l,u){for(var c=s[u]||(s[u]=[]),h=0;h<(l||[]).length;h++)c.push(l[h])})}},t[si]={appendData:a},t[Zs]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function a(o){for(var s=0;s=0&&(m=o.interpolatedValue[y])}return m!=null?m+"":""})}},e.prototype.getRawValue=function(t,r){return Vh(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,n){},e}();function kD(e){var t,r;return ke(e)?e.type&&(r=e):t=e,{text:t,frag:r}}function bv(e){return new ZQ(e)}var ZQ=function(){function e(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return e.prototype.perform=function(t){var r=this._upstream,n=t&&t.skip;if(this._dirty&&r){var i=this.context;i.data=i.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!n&&(a=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(a="reset");function c(_){return!(_>=1)&&(_=1),_}var h;(this._dirty||a==="reset")&&(this._dirty=!1,h=this._doReset(n)),this._modBy=l,this._modDataCount=u;var f=t&&t.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var d=this._dueIndex,g=Math.min(f!=null?this._dueIndex+f:1/0,this._dueEnd);if(!n&&(h||d1&&n>0?s:o}};return a;function o(){return t=e?null:lt},gte:function(e,t){return e>=t}},YQ=function(){function e(t,r){if(!rt(r)){var n="";ft(n)}this._opFn=$V[t],this._rvalFloat=Xa(r)}return e.prototype.evaluate=function(t){return rt(t)?this._opFn(t,this._rvalFloat):this._opFn(Xa(t),this._rvalFloat)},e}(),YV=function(){function e(t,r){var n=t==="desc";this._resultLT=n?1:-1,r==null&&(r=n?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return e.prototype.evaluate=function(t,r){var n=rt(t)?t:Xa(t),i=rt(r)?r:Xa(r),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=he(t),l=he(r);s&&(n=l?t:0),l&&(i=s?r:0)}return ni?-this._resultLT:0},e}(),XQ=function(){function e(t,r){this._rval=r,this._isEQ=t,this._rvalTypeof=typeof r,this._rvalFloat=Xa(r)}return e.prototype.evaluate=function(t){var r=t===this._rval;if(!r){var n=typeof t;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(r=Xa(t)===this._rvalFloat)}return this._isEQ?r:!r},e}();function qQ(e,t){return e==="eq"||e==="ne"?new XQ(e==="eq",t):ge($V,e)?new YQ(e,t):null}var KQ=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(t){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(t){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(t,r){},e.prototype.retrieveValueFromItem=function(t,r){},e.prototype.convertValue=function(t,r){return $s(t,r)},e}();function JQ(e,t){var r=new KQ,n=e.data,i=r.sourceFormat=e.sourceFormat,a=e.startIndex,o="";e.seriesLayoutBy!==la&&ft(o);var s=[],l={},u=e.dimensionsDefine;if(u)j(u,function(m,y){var x=m.name,_={index:y,name:x,displayName:m.displayName};if(s.push(_),x!=null){var w="";ge(l,x)&&ft(w),l[x]=_}});else for(var c=0;c65535?oee:see}function Tc(){return[1/0,-1/0]}function lee(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function PD(e,t,r,n,i){var a=KV[r||"float"];if(i){var o=e[t],s=o&&o.length;if(s!==n){for(var l=new a(n),u=0;uy[1]&&(y[1]=m)}return this._rawCount=this._count=l,{start:s,end:l}},e.prototype._initDataFromProvider=function(t,r,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=ae(o,function(_){return _.property}),c=0;cx[1]&&(x[1]=y)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=r,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(t,r){if(!(r>=0&&r=0&&r=this._rawCount||t<0)return-1;if(!this._indices)return t;var r=this._indices,n=r[t];if(n!=null&&nt)a=o-1;else return o}return-1},e.prototype.getIndices=function(){var t,r=this._indices;if(r){var n=r.constructor,i=this._count;if(n===Array){t=new n(i);for(var a=0;a=h&&_<=f||isNaN(_))&&(l[u++]=m),m++}g=!0}else if(a===2){for(var y=d[i[0]],w=d[i[1]],S=t[i[1]][0],T=t[i[1]][1],x=0;x=h&&_<=f||isNaN(_))&&(M>=S&&M<=T||isNaN(M))&&(l[u++]=m),m++}g=!0}}if(!g)if(a===1)for(var x=0;x=h&&_<=f||isNaN(_))&&(l[u++]=A)}else for(var x=0;xt[N][1])&&(P=!1)}P&&(l[u++]=r.getRawIndex(x))}return ux[1]&&(x[1]=y)}}}},e.prototype.lttbDownSample=function(t,r){var n=this.clone([t],!0),i=n._chunks,a=i[t],o=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),c,h,f,d=new(Cc(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));d[s++]=u;for(var g=1;gc&&(c=h,f=S)}D>0&&Ds&&(m=s-c);for(var y=0;yg&&(g=_,d=c+y)}var w=this.getRawIndex(h),S=this.getRawIndex(d);hc-g&&(l=c-g,s.length=l);for(var m=0;mh[1]&&(h[1]=x),f[d++]=_}return a._count=d,a._indices=f,a._updateGetRawIdx(),a},e.prototype.each=function(t,r){if(this._count)for(var n=t.length,i=this._chunks,a=0,o=this.count();al&&(l=h)}return o=[s,l],this._extent[t]=o,o},e.prototype.getRawDataItem=function(t){var r=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],i=this._chunks,a=0;a=0?this._indices[t]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function t(r,n,i,a){return $s(r[a],this._dimensions[a])}zb={arrayRows:t,objectRows:function(r,n,i,a){return $s(r[n],this._dimensions[a])},keyedColumns:t,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return $s(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}}(),e}(),JV=function(){function e(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(t,r){this._sourceList=t,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length,i,a;if(ym(t)){var o=t,s=void 0,l=void 0,u=void 0;if(n){var c=r[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,a=[c._getVersionSign()]}else s=o.get("data",!0),l=Sn(s)?Zs:si,a=[];var h=this._getSourceMetaRawOption()||{},f=u&&u.metaRawOption||{},d=be(h.seriesLayoutBy,f.seriesLayoutBy)||null,g=be(h.sourceHeader,f.sourceHeader),m=be(h.dimensions,f.dimensions),y=d!==f.seriesLayoutBy||!!g!=!!f.sourceHeader||m;i=y?[dT(s,{seriesLayoutBy:d,sourceHeader:g,dimensions:m},l)]:[]}else{var x=t;if(n){var _=this._applyTransform(r);i=_.sourceList,a=_.upstreamSignList}else{var w=x.get("source",!0);i=[dT(w,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},e.prototype._applyTransform=function(t){var r=this._sourceHost,n=r.get("transform",!0),i=r.get("fromTransformResult",!0);if(i!=null){var a="";t.length!==1&&DD(a)}var o,s=[],l=[];return j(t,function(u){u.prepareSource();var c=u.getSource(i||0),h="";i!=null&&!c&&DD(h),s.push(c),l.push(u._getVersionSign())}),n?o=iee(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[BQ(s[0])]),{sourceList:o,upstreamSignList:l}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),r=0;r1||r>0&&!e.noHeader;return j(e.blocks,function(i){var a=r6(i);a>=t&&(t=a+ +(n&&(!a||pT(i)&&!i.noHeader)))}),t}return 0}function fee(e,t,r,n){var i=t.noHeader,a=vee(r6(t)),o=[],s=t.blocks||[];Jr(!s||re(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(ge(u,l)){var c=new YV(u[l],null);s.sort(function(m,y){return c.evaluate(m.sortParam,y.sortParam)})}else l==="seriesDesc"&&s.reverse()}j(s,function(m,y){var x=t.valueFormatter,_=t6(m)(x?Q(Q({},e),{valueFormatter:x}):e,m,y>0?a.html:0,n);_!=null&&o.push(_)});var h=e.renderMode==="richText"?o.join(a.richText):gT(n,o.join(""),i?r:a.html);if(i)return h;var f=uT(t.header,"ordinal",e.useUTC),d=e6(n,e.renderMode).nameStyle,g=QV(n);return e.renderMode==="richText"?n6(e,f,d)+a.richText+h:gT(n,''+hn(f)+"
"+h,r)}function dee(e,t,r,n){var i=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=e.useUTC,c=t.valueFormatter||e.valueFormatter||function(S){return S=re(S)?S:[S],ae(S,function(T,M){return uT(T,re(d)?d[M]:d,u)})};if(!(a&&o)){var h=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||K.color.secondary,i),f=a?"":uT(l,"ordinal",u),d=t.valueType,g=o?[]:c(t.value,t.dataIndex),m=!s||!a,y=!s&&a,x=e6(n,i),_=x.nameStyle,w=x.valueStyle;return i==="richText"?(s?"":h)+(a?"":n6(e,f,_))+(o?"":mee(e,g,m,y,w)):gT(n,(s?"":h)+(a?"":pee(f,!s,_))+(o?"":gee(g,m,y,w)),r)}}function ED(e,t,r,n,i,a){if(e){var o=t6(e),s={useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,a)}}function vee(e){return{html:cee[e],richText:hee[e]}}function gT(e,t,r){var n='',i="margin: "+r+"px 0 0",a=QV(e);return''+t+n+"
"}function pee(e,t,r){var n=t?"margin-left:2px":"";return''+hn(e)+""}function gee(e,t,r,n){var i=r?"10px":"20px",a=t?"float:right;margin-left:"+i:"";return e=re(e)?e:[e],''+ae(e,function(o){return hn(o)}).join(" ")+""}function n6(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function mee(e,t,r,n,i){var a=[i],o=n?10:20;return r&&a.push({padding:[0,0,0,o],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(re(t)?t.join(" "):t,a)}function i6(e,t){var r=e.getData().getItemVisual(t,"style"),n=r[e.visualDrawType];return Vu(n)}function a6(e,t){var r=e.get("padding");return r??(t==="richText"?[8,10]:10)}var Bb=function(){function e(){this.richTextStyles={},this._nextStyleNameId=fF()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,r,n){var i=n==="richText"?this._generateStyleName():null,a=xV({color:r,type:t,renderMode:n,markerId:i});return he(a)?a:(this.richTextStyles[i]=a.style,a.content)},e.prototype.wrapRichTextStyle=function(t,r){var n={};re(r)?j(r,function(a){return Q(n,a)}):Q(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},e}();function o6(e){var t=e.series,r=e.dataIndex,n=e.multipleSeries,i=t.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=t.getRawValue(r),l=re(s),u=i6(t,r),c,h,f,d;if(o>1||l&&!o){var g=yee(s,t,r,a,u);c=g.inlineValues,h=g.inlineValueTypes,f=g.blocks,d=g.inlineValues[0]}else if(o){var m=i.getDimensionInfo(a[0]);d=c=Vh(i,r,a[0]),h=m.type}else d=c=l?s[0]:s;var y=nA(t),x=y&&t.name||"",_=i.getName(r),w=n?x:_;return gr("section",{header:x,noHeader:n||!y,sortParam:d,blocks:[gr("nameValue",{markerType:"item",markerColor:u,name:w,noName:!Jn(w),value:c,valueType:h,dataIndex:r})].concat(f||[])})}function yee(e,t,r,n,i){var a=t.getData(),o=Ei(e,function(h,f,d){var g=a.getDimensionInfo(d);return h=h||g&&g.tooltip!==!1&&g.displayName!=null},!1),s=[],l=[],u=[];n.length?j(n,function(h){c(Vh(a,r,h),h)}):j(e,c);function c(h,f){var d=a.getDimensionInfo(f);!d||d.otherDims.tooltip===!1||(o?u.push(gr("nameValue",{markerType:"subItem",markerColor:i,name:d.displayName,value:h,valueType:d.type})):(s.push(h),l.push(d.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var as=Ye();function xm(e,t){return e.getName(t)||e.getId(t)}var Ry="__universalTransitionEnabled",bt=function(e){q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return t.prototype.init=function(r,n,i){this.seriesIndex=this.componentIndex,this.dataTask=bv({count:_ee,reset:bee}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=as(this).sourceManager=new JV(this);a.prepareSource();var o=this.getInitialData(r,i);RD(o,this),this.dataTask.context.data=o,as(this).dataBeforeProcessed=o,jD(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=op(this),a=i?Ju(r):{},o=this.subType;$e.hasClass(o)&&(o+="Series"),Ge(r,n.getTheme().get(this.subType)),Ge(r,this.getDefaultOption()),ju(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&Ka(r,a,i)},t.prototype.mergeOption=function(r,n){r=Ge(this.option,r,!0),this.fillDataTextStyle(r.data);var i=op(this);i&&Ka(this.option,r,i);var a=as(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);RD(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,as(this).dataBeforeProcessed=o,jD(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(r){if(r&&!Sn(r))for(var n=["show"],i=0;i=0&&f<0)&&(h=_,f=x,d=0),x===f&&(c[d++]=m))}),c.length=d,c},t.prototype.formatTooltip=function(r,n,i){return o6({series:this,dataIndex:r,multipleSeries:n})},t.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(Je.node&&!(r&&r.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(r,n,i){var a=this.ecModel,o=FA.prototype.getColorFromPalette.call(this,r,n,i);return o||(o=a.getColorFromPalette(r,n,i)),o},t.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},t.prototype.unselect=function(r,n){var i=this.option.selectedMap;if(i){var a=this.option.selectedMode,o=this.getData(n);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&i.push(o)}return i},t.prototype.isSelected=function(r,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[xm(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[Ry])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},t.prototype._innerSelect=function(r,n){var i,a,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){ke(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c0&&this._innerSelect(r,n)}},t.registerClass=function(r){return $e.registerClass(r)},t.protoInitialize=function(){var r=t.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"}(),t}($e);Qt(bt,M_);Qt(bt,FA);wF(bt,$e);function jD(e){var t=e.name;nA(e)||(e.name=xee(e)||t)}function xee(e){var t=e.getRawData(),r=t.mapDimensionsAll("seriesName"),n=[];return j(r,function(i){var a=t.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function _ee(e){return e.model.getRawData().count()}function bee(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),wee}function wee(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function RD(e,t){j(Eh(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,Fe(See,t))})}function See(e,t){var r=mT(e);return r&&r.setOutputEnd((t||this).count()),t}function mT(e){var t=(e.ecModel||{}).scheduler,r=t&&t.getPipeline(e.uid);if(r){var n=r.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(e.uid))}return n}}var Mt=function(){function e(){this.group=new Ce,this.uid=pf("viewComponent")}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,i){},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,i){},e.prototype.updateLayout=function(t,r,n,i){},e.prototype.updateVisual=function(t,r,n,i){},e.prototype.toggleBlurSeries=function(t,r,n){},e.prototype.eachRendered=function(t){var r=this.group;r&&r.traverse(t)},e}();aA(Mt);d_(Mt);function yf(){var e=Ye();return function(t){var r=e(t),n=t.pipelineContext,i=!!r.large,a=!!r.progressiveRender,o=r.large=!!(n&&n.large),s=r.progressiveRender=!!(n&&n.progressiveRender);return(i!==o||a!==s)&&"reset"}}var s6=Ye(),Cee=yf(),gt=function(){function e(){this.group=new Ce,this.uid=pf("viewChart"),this.renderTask=bv({plan:Tee,reset:Mee}),this.renderTask.context={view:this}}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,i){},e.prototype.highlight=function(t,r,n,i){var a=t.getData(i&&i.dataType);a&&zD(a,i,"emphasis")},e.prototype.downplay=function(t,r,n,i){var a=t.getData(i&&i.dataType);a&&zD(a,i,"normal")},e.prototype.remove=function(t,r){this.group.removeAll()},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.updateLayout=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.updateVisual=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.eachRendered=function(t){hl(this.group,t)},e.markUpdateMethod=function(t,r){s6(t).updateMethod=r},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function OD(e,t,r){e&&np(e)&&(t==="emphasis"?Ho:Uo)(e,r)}function zD(e,t,r){var n=Ru(e,t),i=t&&t.highlightKey!=null?JK(t.highlightKey):null;n!=null?j(Tt(n),function(a){OD(e.getItemGraphicEl(a),r,i)}):e.eachItemGraphicEl(function(a){OD(a,r,i)})}aA(gt);d_(gt);function Tee(e){return Cee(e.model)}function Mee(e){var t=e.model,r=e.ecModel,n=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&s6(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,r,n,i),Aee[l]}var Aee={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},F0="\0__throttleOriginMethod",BD="\0__throttleRate",FD="\0__throttleType";function k_(e,t,r){var n,i=0,a=0,o=null,s,l,u,c;t=t||0;function h(){a=new Date().getTime(),o=null,e.apply(l,u||[])}var f=function(){for(var d=[],g=0;g=0?h():o=setTimeout(h,-s),i=n};return f.clear=function(){o&&(clearTimeout(o),o=null)},f.debounceNextCall=function(d){c=d},f}function xf(e,t,r,n){var i=e[t];if(i){var a=i[F0]||i,o=i[FD],s=i[BD];if(s!==r||o!==n){if(r==null||!n)return e[t]=a;i=e[t]=k_(a,r,n==="debounce"),i[F0]=a,i[FD]=n,i[BD]=r}return i}}function lp(e,t){var r=e[t];r&&r[F0]&&(r.clear&&r.clear(),e[t]=r[F0])}var VD=Ye(),GD={itemStyle:Ou(cV,!0),lineStyle:Ou(uV,!0)},kee={lineStyle:"stroke",itemStyle:"fill"};function l6(e,t){var r=e.visualStyleMapper||GD[t];return r||(console.warn("Unknown style type '"+t+"'."),GD.itemStyle)}function u6(e,t){var r=e.visualDrawType||kee[t];return r||(console.warn("Unknown style type '"+t+"'."),"fill")}var Lee={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=e.getModel(n),a=l6(e,n),o=a(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=u6(e,n),u=o[l],c=we(u)?u:null,h=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||h){var f=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[l]||(o[l]=f,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||we(o.fill)?f:o.fill,o.stroke=o.stroke==="auto"||we(o.stroke)?f:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!t.isSeriesFiltered(e)&&c)return r.setVisual("colorFromPalette",!1),{dataEach:function(d,g){var m=e.getDataParams(g),y=Q({},o);y[l]=c(m),d.setItemVisual(g,"style",y)}}}},dd=new qe,Nee={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=l6(e,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){dd.option=l[n];var u=i(dd),c=o.ensureUniqueItemVisual(s,"style");Q(c,u),dd.option.decal&&(o.setItemVisual(s,"decal",dd.option.decal),dd.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},Pee={performRawSeries:!0,overallReset:function(e){var t=_e();e.eachSeries(function(r){var n=r.getColorBy();if(!r.isColorBySeries()){var i=r.type+"-"+n,a=t.get(i);a||(a={},t.set(i,a)),VD(r).scope=a}}),e.eachSeries(function(r){if(!(r.isColorBySeries()||e.isSeriesFiltered(r))){var n=r.getRawData(),i={},a=r.getData(),o=VD(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=u6(r,s);a.each(function(u){var c=a.getRawIndex(u);i[c]=u}),n.each(function(u){var c=i[u],h=a.getItemVisual(c,"colorFromPalette");if(h){var f=a.ensureUniqueItemVisual(c,"style"),d=n.getName(u)||u+"",g=n.count();f[l]=r.getColorFromPalette(d,o,g)}})}})}},_m=Math.PI;function Iee(e,t){t=t||{},Ae(t,{text:"loading",textColor:K.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:K.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var r=new Ce,n=new Ze({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(n);var i=new tt({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new Ze({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});r.add(a);var o;return t.showSpinner&&(o=new Wp({shape:{startAngle:-_m/2,endAngle:-_m/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:_m*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:_m*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=i.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(e.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),c=e.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:c}),a.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},r.resize(),r}var c6=function(){function e(t,r,n,i){this._stageTaskMap=_e(),this.ecInstance=t,this.api=r,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return e.prototype.restoreData=function(t,r){t.restoreData(r),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},e.prototype.getPerformArgs=function(t,r){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,a=!r&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=a?n.step:null,s=i&&i.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},e.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},e.prototype.updateStreamModes=function(t,r){var n=this._pipelineMap.get(t.uid),i=t.getData(),a=i.count(),o=n.progressiveEnabled&&r.incrementalPrepareRender&&a>=n.threshold,s=t.get("large")&&a>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?a:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},e.prototype.restorePipelines=function(t){var r=this,n=r._pipelineMap=_e();t.eachSeries(function(i){var a=i.getProgressive(),o=i.uid;n.set(o,{id:o,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:a&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),r._pipe(i,i.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,r=this.api.getModel(),n=this.api;j(this._allHandlers,function(i){var a=t.get(i.uid)||t.set(i.uid,{}),o="";Jr(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,r,n),i.overallReset&&this._createOverallStageTask(i,a,r,n)},this)},e.prototype.prepareView=function(t,r,n,i){var a=t.renderTask,o=a.context;o.model=r,o.ecModel=n,o.api=i,a.__block=!t.incrementalPrepareRender,this._pipe(r,a)},e.prototype.performDataProcessorTasks=function(t,r){this._performStageTasks(this._dataProcessorHandlers,t,r,{block:!0})},e.prototype.performVisualTasks=function(t,r,n){this._performStageTasks(this._visualHandlers,t,r,n)},e.prototype._performStageTasks=function(t,r,n,i){i=i||{};var a=!1,o=this;j(t,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),h=c.seriesTaskMap,f=c.overallTask;if(f){var d,g=f.agentStubMap;g.each(function(y){s(i,y)&&(y.dirty(),d=!0)}),d&&f.dirty(),o.updatePayload(f,n);var m=o.getPerformArgs(f,i.block);g.each(function(y){y.perform(m)}),f.perform(m)&&(a=!0)}else h&&h.each(function(y,x){s(i,y)&&y.dirty();var _=o.getPerformArgs(y,i.block);_.skip=!l.performRawSeries&&r.isSeriesFiltered(y.context.model),o.updatePayload(y,n),y.perform(_)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},e.prototype.performSeriesTasks=function(t){var r;t.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(t){var r=t.tail;do{if(r.__block){t.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},e.prototype.updatePayload=function(t,r){r!=="remain"&&(t.context.payload=r)},e.prototype._createSeriesStageTask=function(t,r,n,i){var a=this,o=r.seriesTaskMap,s=r.seriesTaskMap=_e(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(c):l?n.eachRawSeriesByType(l,c):u&&u(n,i).each(c);function c(h){var f=h.uid,d=s.set(f,o&&o.get(f)||bv({plan:Oee,reset:zee,count:Fee}));d.context={model:h,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(h,d)}},e.prototype._createOverallStageTask=function(t,r,n,i){var a=this,o=r.overallTask=r.overallTask||bv({reset:Dee});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=_e(),u=t.seriesType,c=t.getTargetSeries,h=!0,f=!1,d="";Jr(!t.createOnAllSeries,d),u?n.eachRawSeriesByType(u,g):c?c(n,i).each(g):(h=!1,j(n.getSeries(),g));function g(m){var y=m.uid,x=l.set(y,s&&s.get(y)||(f=!0,bv({reset:Eee,onDirty:Ree})));x.context={model:m,overallProgress:h},x.agent=o,x.__block=h,a._pipe(m,x)}f&&o.dirty()},e.prototype._pipe=function(t,r){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=r),i.tail&&i.tail.pipe(r),i.tail=r,r.__idxInPipeline=i.count++,r.__pipeline=i},e.wrapStageHandler=function(t,r){return we(t)&&(t={overallReset:t,seriesType:Vee(t)}),t.uid=pf("stageHandler"),r&&(t.visualType=r),t},e}();function Dee(e){e.overallReset(e.ecModel,e.api,e.payload)}function Eee(e){return e.overallProgress&&jee}function jee(){this.agent.dirty(),this.getDownstream().dirty()}function Ree(){this.agent&&this.agent.dirty()}function Oee(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function zee(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Tt(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?ae(t,function(r,n){return h6(n)}):Bee}var Bee=h6(0);function h6(e){return function(t,r){var n=r.data,i=r.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a0&&d===u.length-f.length){var g=u.slice(0,d);g!=="data"&&(r.mainType=g,r[f.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(n[u]=l,c=!0),c||(i[u]=l)})}return{cptQuery:r,dataQuery:n,otherQuery:i}},e.prototype.filter=function(t,r){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,a=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=r.cptQuery,u=r.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,a,"name")&&c(u,a,"dataIndex")&&c(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,r.otherQuery,i,a));function c(h,f,d,g){return h[d]==null||f[g||d]===h[d]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),yT=["symbol","symbolSize","symbolRotate","symbolOffset"],HD=yT.concat(["symbolKeepAspect"]),Hee={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData();if(e.legendIcon&&r.setVisual("legendIcon",e.legendIcon),!e.hasSymbolVisual)return;for(var n={},i={},a=!1,o=0;o=0&&pu(l)?l:.5;var u=e.createRadialGradient(o,s,0,o,s,l);return u}function xT(e,t,r){for(var n=t.type==="radial"?ate(e,t,r):ite(e,t,r),i=t.colorStops,a=0;a0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:rt(e)?[e]:re(e)?e:null}function $A(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&ste(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(r){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(r=ae(r,function(a){return a/i}),n/=i)}return[r,n]}var lte=new qa(!0);function W0(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function UD(e){return typeof e=="string"&&e!=="none"}function H0(e){var t=e.fill;return t!=null&&t!=="none"}function ZD(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=r}else e.fill()}function $D(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=r}else e.stroke()}function _T(e,t,r){var n=oA(t.image,t.__image,r);if(v_(n)){var i=e.createPattern(n,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*cv),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function ute(e,t,r,n){var i,a=W0(r),o=H0(r),s=r.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var c=t.path||lte,h=t.__dirty;if(!n){var f=r.fill,d=r.stroke,g=o&&!!f.colorStops,m=a&&!!d.colorStops,y=o&&!!f.image,x=a&&!!d.image,_=void 0,w=void 0,S=void 0,T=void 0,M=void 0;(g||m)&&(M=t.getBoundingRect()),g&&(_=h?xT(e,f,M):t.__canvasFillGradient,t.__canvasFillGradient=_),m&&(w=h?xT(e,d,M):t.__canvasStrokeGradient,t.__canvasStrokeGradient=w),y&&(S=h||!t.__canvasFillPattern?_T(e,f,t):t.__canvasFillPattern,t.__canvasFillPattern=S),x&&(T=h||!t.__canvasStrokePattern?_T(e,d,t):t.__canvasStrokePattern,t.__canvasStrokePattern=T),g?e.fillStyle=_:y&&(S?e.fillStyle=S:o=!1),m?e.strokeStyle=w:x&&(T?e.strokeStyle=T:a=!1)}var A=t.getGlobalScale();c.setScale(A[0],A[1],t.segmentIgnoreThreshold);var P,I;e.setLineDash&&r.lineDash&&(i=$A(t),P=i[0],I=i[1]);var N=!0;(u||h&Wc)&&(c.setDPR(e.dpr),l?c.setContext(null):(c.setContext(e),N=!1),c.reset(),t.buildPath(c,t.shape,n),c.toStatic(),t.pathUpdated()),N&&c.rebuildPath(e,l?s:1),P&&(e.setLineDash(P),e.lineDashOffset=I),n||(r.strokeFirst?(a&&$D(e,r),o&&ZD(e,r)):(o&&ZD(e,r),a&&$D(e,r))),P&&e.setLineDash([])}function cte(e,t,r){var n=t.__image=oA(r.image,t.__image,t,t.onload);if(!(!n||!v_(n))){var i=r.x||0,a=r.y||0,o=t.getWidth(),s=t.getHeight(),l=n.width/n.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=n.width,s=n.height),r.sWidth&&r.sHeight){var u=r.sx||0,c=r.sy||0;e.drawImage(n,u,c,r.sWidth,r.sHeight,i,a,o,s)}else if(r.sx&&r.sy){var u=r.sx,c=r.sy,h=o-u,f=s-c;e.drawImage(n,u,c,h,f,i,a,o,s)}else e.drawImage(n,i,a,o,s)}}function hte(e,t,r){var n,i=r.text;if(i!=null&&(i+=""),i){e.font=r.font||Go,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var a=void 0,o=void 0;e.setLineDash&&r.lineDash&&(n=$A(t),a=n[0],o=n[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),r.strokeFirst?(W0(r)&&e.strokeText(i,r.x,r.y),H0(r)&&e.fillText(i,r.x,r.y)):(H0(r)&&e.fillText(i,r.x,r.y),W0(r)&&e.strokeText(i,r.x,r.y)),a&&e.setLineDash([])}}var YD=["shadowBlur","shadowOffsetX","shadowOffsetY"],XD=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function m6(e,t,r,n,i){var a=!1;if(!n&&(r=r||{},t===r))return!1;if(n||t.opacity!==r.opacity){Dn(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?_u.opacity:o}(n||t.blend!==r.blend)&&(a||(Dn(e,i),a=!0),e.globalCompositeOperation=t.blend||_u.blend);for(var s=0;s0&&r.unfinished);r.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(r,n,i){if(!this[xr]){if(this._disposed){this.id;return}var a,o,s;if(ke(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[xr]=!0,Lc(this),!this._model||n){var l=new TQ(this._api),u=this._theme,c=this._model=new VA;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},CT);var h={seriesTransition:s,optionChanged:!0};if(i)this[Rr]={silent:a,updateParams:h},this[xr]=!1,this.getZr().wakeUp();else{try{Wl(this),po.update.call(this,null,h)}catch(f){throw this[Rr]=null,this[xr]=!1,f}this._ssr||this._zr.flush(),this[Rr]=null,this[xr]=!1,Ac.call(this,a),kc.call(this,a)}}},t.prototype.setTheme=function(r,n){if(!this[xr]){if(this._disposed){this.id;return}var i=this._model;if(i){var a=n&&n.silent,o=null;this[Rr]&&(a==null&&(a=this[Rr].silent),o=this[Rr].updateParams,this[Rr]=null),this[xr]=!0,Lc(this);try{this._updateTheme(r),i.setTheme(this._theme),Wl(this),po.update.call(this,{type:"setTheme"},o)}catch(s){throw this[xr]=!1,s}this[xr]=!1,Ac.call(this,a),kc.call(this,a)}}},t.prototype._updateTheme=function(r){he(r)&&(r=R6[r]),r&&(r=Se(r),r&&BV(r,!0),this._theme=r)},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Je.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},t.prototype.renderToCanvas=function(r){r=r||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(r){r=r||{};var n=this._zr.painter;return n.renderToString({useViewBox:r.useViewBox})},t.prototype.getSvgDataURL=function(){var r=this._zr,n=r.storage.getDisplayList();return j(n,function(i){i.stopAnimation(null,!0)}),r.painter.toDataURL()},t.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var n=r.excludeComponents,i=this._model,a=[],o=this;j(n,function(l){i.eachComponent({mainType:l},function(u){var c=o._componentsMap[u.__viewId];c.group.ignore||(a.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return j(a,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var n=r.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(Y0[i]){var l=s,u=s,c=-s,h=-s,f=[],d=r&&r.pixelRatio||this.getDevicePixelRatio();j(Su,function(w,S){if(w.group===i){var T=n?w.getZr().painter.getSvgDom().innerHTML:w.renderToCanvas(Se(r)),M=w.getDom().getBoundingClientRect();l=a(M.left,l),u=a(M.top,u),c=o(M.right,c),h=o(M.bottom,h),f.push({dom:T,left:M.left,top:M.top})}}),l*=d,u*=d,c*=d,h*=d;var g=c-l,m=h-u,y=Bn.createCanvas(),x=GC(y,{renderer:n?"svg":"canvas"});if(x.resize({width:g,height:m}),n){var _="";return j(f,function(w){var S=w.left-l,T=w.top-u;_+=''+w.dom+""}),x.painter.getSvgRoot().innerHTML=_,r.connectedBackgroundColor&&x.painter.setBackgroundColor(r.connectedBackgroundColor),x.refreshImmediately(),x.painter.toDataURL()}else return r.connectedBackgroundColor&&x.add(new Ze({shape:{x:0,y:0,width:g,height:m},style:{fill:r.connectedBackgroundColor}})),j(f,function(w){var S=new Er({style:{x:w.left*d-l,y:w.top*d-u,image:w.dom}});x.add(S)}),x.refreshImmediately(),y.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},t.prototype.convertToPixel=function(r,n,i){return Cm(this,"convertToPixel",r,n,i)},t.prototype.convertToLayout=function(r,n,i){return Cm(this,"convertToLayout",r,n,i)},t.prototype.convertFromPixel=function(r,n,i){return Cm(this,"convertFromPixel",r,n,i)},t.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var i=this._model,a,o=_h(i,r);return j(o,function(s,l){l.indexOf("Models")>=0&&j(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)a=a||!!c.containPoint(n);else if(l==="seriesModels"){var h=this._chartsMap[u.__viewId];h&&h.containPoint&&(a=a||h.containPoint(n,u))}},this)},this),!!a},t.prototype.getVisual=function(r,n){var i=this._model,a=_h(i,r,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?ZA(s,l,n):Yp(s,n)},t.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},t.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},t.prototype._initEvents=function(){var r=this;j(Ote,function(i){var a=function(o){var s=r.getModel(),l=o.target,u,c=i==="globalout";if(c?u={}:l&&vu(l,function(m){var y=De(m);if(y&&y.dataIndex!=null){var x=y.dataModel||s.getSeriesByIndex(y.seriesIndex);return u=x&&x.getDataParams(y.dataIndex,y.dataType,l)||{},!0}else if(y.eventData)return u=Q({},y.eventData),!0},!0),u){var h=u.componentType,f=u.componentIndex;(h==="markLine"||h==="markPoint"||h==="markArea")&&(h="series",f=u.seriesIndex);var d=h&&f!=null&&s.getComponent(h,f),g=d&&r[d.mainType==="series"?"_chartsMap":"_componentsMap"][d.__viewId];u.event=o,u.type=i,r._$eventProcessor.eventInfo={targetEl:l,packedEvent:u,model:d,view:g},r.trigger(i,u)}};a.zrEventfulCallAtLast=!0,r._zr.on(i,a,r)});var n=this._messageCenter;j(wT,function(i,a){n.on(a,function(o){r.trigger(a,o)})}),Zee(n,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var r=this.getDom();r&&xF(this.getDom(),KA,"");var n=this,i=n._api,a=n._model;j(n._componentsViews,function(o){o.dispose(a,i)}),j(n._chartsViews,function(o){o.dispose(a,i)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete Su[n.id]},t.prototype.resize=function(r){if(!this[xr]){if(this._disposed){this.id;return}this._zr.resize(r);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var i=n.resetOption("media"),a=r&&r.silent;this[Rr]&&(a==null&&(a=this[Rr].silent),i=!0,this[Rr]=null),this[xr]=!0,Lc(this);try{i&&Wl(this),po.update.call(this,{type:"resize",animation:Q({duration:0},r&&r.animation)})}catch(o){throw this[xr]=!1,o}this[xr]=!1,Ac.call(this,a),kc.call(this,a)}}},t.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(ke(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!TT[r]){var i=TT[r](this._api,n),a=this._zr;this._loadingFX=i,a.add(i)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(r){var n=Q({},r);return n.type=bT[r.type],n},t.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(ke(n)||(n={silent:!!n}),!!Z0[r.type]&&this._model){if(this[xr]){this._pendingActions.push(r);return}var i=n.silent;Ub.call(this,r,i);var a=n.flush;a?this._zr.flush():a!==!1&&Je.browser.weChat&&this._throttledZrFlush(),Ac.call(this,i),kc.call(this,i)}},t.prototype.updateLabelLayout=function(){qi.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(r){if(this._disposed){this.id;return}var n=r.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(n);a.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){Wl=function(h){var f=h._scheduler;f.restorePipelines(h._model),f.prepareStageTasks(),Wb(h,!0),Wb(h,!1),f.plan()},Wb=function(h,f){for(var d=h._model,g=h._scheduler,m=f?h._componentsViews:h._chartsViews,y=f?h._componentsMap:h._chartsMap,x=h._zr,_=h._api,w=0;wf.get("hoverLayerThreshold")&&!Je.node&&!Je.worker&&f.eachSeries(function(y){if(!y.preventUsingHoverLayer){var x=h._chartsMap[y.__viewId];x.__alive&&x.eachRendered(function(_){_.states.emphasis&&(_.states.emphasis.hoverLayer=!0)})}})}function s(h,f){var d=h.get("blendMode")||null;f.eachRendered(function(g){g.isGroup||(g.style.blend=d)})}function l(h,f){if(!h.preventAutoZ){var d=Fu(h);f.eachRendered(function(g){return w_(g,d.z,d.zlevel),!0})}}function u(h,f){f.eachRendered(function(d){if(!bh(d)){var g=d.getTextContent(),m=d.getTextGuideLine();d.stateTransition&&(d.stateTransition=null),g&&g.stateTransition&&(g.stateTransition=null),m&&m.stateTransition&&(m.stateTransition=null),d.hasState()?(d.prevStates=d.currentStates,d.clearStates()):d.prevStates&&(d.prevStates=null)}})}function c(h,f){var d=h.getModel("stateAnimation"),g=h.isAnimationEnabled(),m=d.get("duration"),y=m>0?{duration:m,delay:d.get("delay"),easing:d.get("easing")}:null;f.eachRendered(function(x){if(x.states&&x.states.emphasis){if(bh(x))return;if(x instanceof Ke&&QK(x),x.__dirty){var _=x.prevStates;_&&x.useStates(_)}if(g){x.stateTransition=y;var w=x.getTextContent(),S=x.getTextGuideLine();w&&(w.stateTransition=y),S&&(S.stateTransition=y)}x.__dirty&&a(x)}})}lE=function(h){return new(function(f){q(d,f);function d(){return f!==null&&f.apply(this,arguments)||this}return d.prototype.getCoordinateSystems=function(){return h._coordSysMgr.getCoordinateSystems()},d.prototype.getComponentByElement=function(g){for(;g;){var m=g.__ecComponentInfo;if(m!=null)return h._model.getComponent(m.mainType,m.index);g=g.parent}},d.prototype.enterEmphasis=function(g,m){Ho(g,m),di(h)},d.prototype.leaveEmphasis=function(g,m){Uo(g,m),di(h)},d.prototype.enterBlur=function(g){OF(g),di(h)},d.prototype.leaveBlur=function(g){fA(g),di(h)},d.prototype.enterSelect=function(g){zF(g),di(h)},d.prototype.leaveSelect=function(g){BF(g),di(h)},d.prototype.getModel=function(){return h.getModel()},d.prototype.getViewOfComponentModel=function(g){return h.getViewOfComponentModel(g)},d.prototype.getViewOfSeriesModel=function(g){return h.getViewOfSeriesModel(g)},d.prototype.getMainProcessVersion=function(){return h[wm]},d}(OV))(h)},j6=function(h){function f(d,g){for(var m=0;m=0)){cE.push(r);var a=c6.wrapStageHandler(r,i);a.__prio=t,a.__raw=r,e.push(a)}}function nk(e,t){TT[e]=t}function $te(e){CB({createCanvas:e})}function G6(e,t,r){var n=S6("registerMap");n&&n(e,t,r)}function Yte(e){var t=S6("getMap");return t&&t(e)}var W6=nee;dl(XA,Lee);dl(L_,Nee);dl(L_,Pee);dl(XA,Hee);dl(L_,Uee);dl(k6,xte);ek(BV);tk(Mte,OQ);nk("default",Iee);pa({type:bu,event:bu,update:bu},qt);pa({type:Ny,event:Ny,update:Ny},qt);pa({type:D0,event:cA,update:D0,action:qt,refineEvent:ik,publishNonRefinedEvent:!0});pa({type:JC,event:cA,update:JC,action:qt,refineEvent:ik,publishNonRefinedEvent:!0});pa({type:E0,event:cA,update:E0,action:qt,refineEvent:ik,publishNonRefinedEvent:!0});function ik(e,t,r,n){return{eventContent:{selected:YK(r),isFromClick:t.isFromClick||!1}}}QA("default",{});QA("dark",v6);var Xte={},hE=[],qte={registerPreprocessor:ek,registerProcessor:tk,registerPostInit:z6,registerPostUpdate:B6,registerUpdateLifecycle:N_,registerAction:pa,registerCoordinateSystem:F6,registerLayout:V6,registerVisual:dl,registerTransform:W6,registerLoading:nk,registerMap:G6,registerImpl:_te,PRIORITY:L6,ComponentModel:$e,ComponentView:Mt,SeriesModel:bt,ChartView:gt,registerComponentModel:function(e){$e.registerClass(e)},registerComponentView:function(e){Mt.registerClass(e)},registerSeriesModel:function(e){bt.registerClass(e)},registerChartView:function(e){gt.registerClass(e)},registerCustomSeries:function(e,t){T6(e,t)},registerSubTypeDefaulter:function(e,t){$e.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){aF(e,t)}};function He(e){if(re(e)){j(e,function(t){He(t)});return}Ve(hE,e)>=0||(hE.push(e),we(e)&&(e={install:e}),e.install(qte))}function pd(e){return e==null?0:e.length||1}function fE(e){return e}var Zo=function(){function e(t,r,n,i,a,o){this._old=t,this._new=r,this._oldKeyGetter=n||fE,this._newKeyGetter=i||fE,this.context=a,this._diffModeMultiple=o==="multiple"}return e.prototype.add=function(t){return this._add=t,this},e.prototype.update=function(t){return this._update=t,this},e.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},e.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},e.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},e.prototype.remove=function(t){return this._remove=t,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var t=this._old,r=this._new,n={},i=new Array(t.length),a=new Array(r.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(r,n,a,"_newKeyGetter");for(var o=0;o1){var c=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(c,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},e.prototype._executeMultiple=function(){var t=this._old,r=this._new,n={},i={},a=[],o=[];this._initIndexMap(t,n,a,"_oldKeyGetter"),this._initIndexMap(r,i,o,"_newKeyGetter");for(var s=0;s1&&f===1)this._updateManyToOne&&this._updateManyToOne(c,u),i[l]=null;else if(h===1&&f>1)this._updateOneToMany&&this._updateOneToMany(c,u),i[l]=null;else if(h===1&&f===1)this._update&&this._update(c,u),i[l]=null;else if(h>1&&f>1)this._updateManyToMany&&this._updateManyToMany(c,u),i[l]=null;else if(h>1)for(var d=0;d1)for(var s=0;s30}var gd=ke,os=ae,rre=typeof Int32Array>"u"?Array:Int32Array,nre="e\0\0",dE=-1,ire=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],are=["_approximateExtent"],vE,Mm,md,yd,Yb,xd,Xb,dn=function(){function e(t,r){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","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var n,i=!1;U6(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var a={},o=[],s={},l=!1,u={},c=0;c=r)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,l=s===si;if(l&&!i.pure)for(var u=[],c=t;c0},e.prototype.ensureUniqueItemVisual=function(t,r){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var a=i[r];return a==null&&(a=this.getVisual(r),re(a)?a=a.slice():gd(a)&&(a=Q({},a)),i[r]=a),a},e.prototype.setItemVisual=function(t,r,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,gd(r)?Q(i,r):i[r]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){gd(t)?Q(this._layout,t):this._layout[t]=r},e.prototype.getLayout=function(t){return this._layout[t]},e.prototype.getItemLayout=function(t){return this._itemLayouts[t]},e.prototype.setItemLayout=function(t,r,n){this._itemLayouts[t]=n?Q(this._itemLayouts[t]||{},r):r},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(t,r){var n=this.hostModel&&this.hostModel.seriesIndex;KC(n,this.dataType,t,r),this._graphicEls[t]=r},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,r){j(this._graphicEls,function(n,i){n&&t&&t.call(r,n,i)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:os(this.dimensions,this._getDimInfo,this),this.hostModel)),Yb(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,r){var n=this[t];we(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat(o_(arguments)))})},e.internalField=function(){vE=function(t){var r=t._invertedIndicesMap;j(r,function(n,i){var a=t._dimInfos[i],o=a.ordinalMeta,s=t._store;if(o){n=r[i]=new rre(o.categories.length);for(var l=0;l1&&(l+="__ec__"+c),i[r]=l}}}(),e}();function ore(e,t){return bf(e,t).dimensions}function bf(e,t){GA(e)||(e=WA(e)),t=t||{};var r=t.coordDimensions||[],n=t.dimensionsDefine||e.dimensionsDefine||[],i=_e(),a=[],o=lre(e,r,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&Y6(o),l=n===e.dimensionsDefine,u=l?$6(e):Z6(n),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,o));for(var h=_e(c),f=new qV(o),d=0;d0&&(n.name=i+(a-1)),a++,t.set(i,a)}}function lre(e,t,r,n){var i=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,n||0);return j(t,function(a){var o;ke(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function ure(e,t,r){if(r||t.hasKey(e)){for(var n=0;t.hasKey(e+n);)n++;e+=n}return t.set(e,!0),e}var cre=function(){function e(t){this.coordSysDims=[],this.axisMap=_e(),this.categoryAxisMap=_e(),this.coordSysName=t}return e}();function hre(e){var t=e.get("coordinateSystem"),r=new cre(t),n=fre[t];if(n)return n(e,r,r.axisMap,r.categoryAxisMap),r}var fre={cartesian2d:function(e,t,r,n){var i=e.getReferringComponents("xAxis",Ht).models[0],a=e.getReferringComponents("yAxis",Ht).models[0];t.coordSysDims=["x","y"],r.set("x",i),r.set("y",a),Nc(i)&&(n.set("x",i),t.firstCategoryDimIndex=0),Nc(a)&&(n.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,r,n){var i=e.getReferringComponents("singleAxis",Ht).models[0];t.coordSysDims=["single"],r.set("single",i),Nc(i)&&(n.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,r,n){var i=e.getReferringComponents("polar",Ht).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),Nc(a)&&(n.set("radius",a),t.firstCategoryDimIndex=0),Nc(o)&&(n.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(e,t,r,n){t.coordSysDims=["lng","lat"]},parallel:function(e,t,r,n){var i=e.ecModel,a=i.getComponent("parallel",e.get("parallelIndex")),o=t.coordSysDims=a.dimensions.slice();j(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),c=o[l];r.set(c,u),Nc(u)&&(n.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})},matrix:function(e,t,r,n){var i=e.getReferringComponents("matrix",Ht).models[0];t.coordSysDims=["x","y"];var a=i.getDimensionModel("x"),o=i.getDimensionModel("y");r.set("x",a),r.set("y",o),n.set("x",a),n.set("y",o)}};function Nc(e){return e.get("type")==="category"}function X6(e,t,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,a,o,s;dre(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var l=!!(e&&e.get("stack")),u,c,h,f;if(j(a,function(_,w){he(_)&&(a[w]=_={name:_}),l&&!_.isExtraCoord&&(!n&&!u&&_.ordinalMeta&&(u=_),!c&&_.type!=="ordinal"&&_.type!=="time"&&(!i||i===_.coordDim)&&(c=_))}),c&&!n&&!u&&(n=!0),c){h="__\0ecstackresult_"+e.id,f="__\0ecstackedover_"+e.id,u&&(u.createInvertedIndices=!0);var d=c.coordDim,g=c.type,m=0;j(a,function(_){_.coordDim===d&&m++});var y={name:h,coordDim:d,coordDimIndex:m,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},x={name:f,coordDim:f,coordDimIndex:m+1,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(y.storeDimIndex=s.ensureCalculationDimension(f,g),x.storeDimIndex=s.ensureCalculationDimension(h,g)),o.appendCalculationDimension(y),o.appendCalculationDimension(x)):(a.push(y),a.push(x))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:f,stackResultDimension:h}}function dre(e){return!U6(e.schema)}function $o(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function ak(e,t){return $o(e,t)?e.getCalculationInfo("stackResultDimension"):t}function vre(e,t){var r=e.get("coordinateSystem"),n=mf.get(r),i;return t&&t.coordSysDims&&(i=ae(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var l=s.get("type");o.type=X0(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function pre(e,t,r){var n,i;return r&&j(e,function(a,o){var s=a.coordDim,l=r.categoryAxisMap.get(s);l&&(n==null&&(n=o),a.ordinalMeta=l.getOrdinalMeta(),t&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(e[n].otherDims.itemName=0),n}function no(e,t,r){r=r||{};var n=t.getSourceManager(),i,a=!1;e?(a=!0,i=WA(e)):(i=n.getSource(),a=i.sourceFormat===si);var o=hre(t),s=vre(t,o),l=r.useEncodeDefaulter,u=we(l)?l:l?Fe(DV,s,t):null,c={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},h=bf(i,c),f=pre(h.dimensions,r.createInvertedIndices,o),d=a?null:n.getSharedDataStore(h),g=X6(t,{schema:h,store:d}),m=new dn(h,t);m.setCalculationInfo(g);var y=f!=null&&gre(i)?function(x,_,w,S){return S===f?w:this.defaultDimValueGetter(x,_,w,S)}:null;return m.hasItemOption=!1,m.initData(a?i:d,null,y),m}function gre(e){if(e.sourceFormat===si){var t=mre(e.data||[]);return!re(sf(t))}}function mre(e){for(var t=0;ti&&(o=a.interval=i);var s=a.intervalPrecision=hp(o),l=a.niceTickExtent=[ir(Math.ceil(e[0]/o)*o,s),ir(Math.floor(e[1]/o)*o,s)];return xre(l,e),a}function qb(e){var t=Math.pow(10,f_(e)),r=e/t;return r?r===2?r=3:r===3?r=5:r*=2:r=1,ir(r*t)}function hp(e){return ta(e)+2}function pE(e,t,r){e[t]=Math.max(Math.min(e[t],r[1]),r[0])}function xre(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),pE(e,0,t),pE(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function ok(e,t){return e>=t[0]&&e<=t[1]}var _re=function(){function e(){this.normalize=gE,this.scale=mE}return e.prototype.updateMethods=function(t){t.hasBreaks()?(this.normalize=fe(t.normalize,t),this.scale=fe(t.scale,t)):(this.normalize=gE,this.scale=mE)},e}();function gE(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function mE(e,t){return e*(t[1]-t[0])+t[0]}function AT(e,t,r){var n=Math.log(e);return[Math.log(r?t[0]:Math.max(0,t[0]))/n,Math.log(r?t[1]:Math.max(0,t[1]))/n]}var vl=function(){function e(t){this._calculator=new _re,this._setting=t||{},this._extent=[1/0,-1/0];var r=vr();r&&(this._brkCtx=r.createScaleBreakContext(),this._brkCtx.update(this._extent))}return e.prototype.getSetting=function(t){return this._setting[t]},e.prototype._innerUnionExtent=function(t){var r=this._extent;this._innerSetExtent(t[0]r[1]?t[1]:r[1])},e.prototype.unionExtentFromData=function(t,r){this._innerUnionExtent(t.getApproximateExtent(r))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(t,r){this._innerSetExtent(t,r)},e.prototype._innerSetExtent=function(t,r){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(r)||(n[1]=r),this._brkCtx&&this._brkCtx.update(n)},e.prototype.setBreaksFromOption=function(t){var r=vr();r&&this._innerSetBreak(r.parseAxisBreakOption(t,fe(this.parse,this)))},e.prototype._innerSetBreak=function(t){this._brkCtx&&(this._brkCtx.setBreaks(t),this._calculator.updateMethods(this._brkCtx),this._brkCtx.update(this._extent))},e.prototype._innerGetBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},e.prototype.hasBreaks=function(){return this._brkCtx?this._brkCtx.hasBreaks():!1},e.prototype._getExtentSpanWithBreaks=function(){return this._brkCtx&&this._brkCtx.hasBreaks()?this._brkCtx.getExtentSpan():this._extent[1]-this._extent[0]},e.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(t){this._isBlank=t},e}();d_(vl);var bre=0,fp=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++bre,this._onCollect=t.onCollect}return e.createByAxisModel=function(t){var r=t.option,n=r.data,i=n&&ae(n,wre);return new e({categories:i,needCollect:!i,deduplication:r.dedplication!==!1})},e.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},e.prototype.parseAndCollect=function(t){var r,n=this._needCollect;if(!he(t)&&!n)return t;if(n&&!this._deduplication)return r=this.categories.length,this.categories[r]=t,this._onCollect&&this._onCollect(t,r),r;var i=this._getOrCreateMap();return r=i.get(t),r==null&&(n?(r=this.categories.length,this.categories[r]=t,i.set(t,r),this._onCollect&&this._onCollect(t,r)):r=NaN),r},e.prototype._getOrCreateMap=function(){return this._map||(this._map=_e(this.categories))},e}();function wre(e){return ke(e)&&e.value!=null?e.value:e+""}var Wh=function(e){q(t,e);function t(r){var n=e.call(this,r)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new fp({})),re(i)&&(i=new fp({categories:ae(i,function(a){return ke(a)?a.value:a})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return t.prototype.parse=function(r){return r==null?NaN:he(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},t.prototype.contain=function(r){return ok(r,this._extent)&&r>=0&&r=0&&r=0&&r=r},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(vl);vl.registerClass(Wh);var ss=ir,Yo=function(e){q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="interval",r._interval=0,r._intervalPrecision=2,r}return t.prototype.parse=function(r){return r==null||r===""?NaN:Number(r)},t.prototype.contain=function(r){return ok(r,this._extent)},t.prototype.normalize=function(r){return this._calculator.normalize(r,this._extent)},t.prototype.scale=function(r){return this._calculator.scale(r,this._extent)},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(r){this._interval=r,this._niceExtent=this._extent.slice(),this._intervalPrecision=hp(r)},t.prototype.getTicks=function(r){r=r||{};var n=this._interval,i=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=vr(),l=[];if(!n)return l;if(r.breakTicks==="only_break"&&s)return s.addBreaksToTicks(l,this._brkCtx.breaks,this._extent),l;var u=1e4;i[0]=0&&(h=ss(h+f*n,o))}if(l.length>0&&h===l[l.length-1].value)break;if(l.length>u)return[]}var d=l.length?l[l.length-1].value:a[1];return i[1]>d&&(r.expandToNicedExtent?l.push({value:ss(d+n,o)}):l.push({value:i[1]})),s&&s.pruneTicksByBreak(r.pruneByBreak,l,this._brkCtx.breaks,function(g){return g.value},this._interval,this._extent),r.breakTicks!=="none"&&s&&s.addBreaksToTicks(l,this._brkCtx.breaks,this._extent),l},t.prototype.getMinorTicks=function(r){for(var n=this.getTicks({expandToNicedExtent:!0}),i=[],a=this.getExtent(),o=1;oa[0]&&g0&&(a=a===null?s:Math.min(a,s))}r[n]=a}}return r}function Q6(e){var t=Tre(e),r=[];return j(e,function(n){var i=n.coordinateSystem,a=i.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var l=a.dim+"_"+a.index,u=t[l],c=Math.abs(o[1]-o[0]),h=a.scale.getExtent(),f=Math.abs(h[1]-h[0]);s=u?c/f*u:c}else{var d=n.getData();s=Math.abs(o[1]-o[0])/d.count()}var g=ce(n.get("barWidth"),s),m=ce(n.get("barMaxWidth"),s),y=ce(n.get("barMinWidth")||(iG(n)?.5:1),s),x=n.get("barGap"),_=n.get("barCategoryGap"),w=n.get("defaultBarGap");r.push({bandWidth:s,barWidth:g,barMaxWidth:m,barMinWidth:y,barGap:x,barCategoryGap:_,defaultBarGap:w,axisKey:sk(a),stackId:K6(n)})}),eG(r)}function eG(e){var t={};j(e,function(n,i){var a=n.axisKey,o=n.bandWidth,s=t[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:n.defaultBarGap||0,stacks:{}},l=s.stacks;t[a]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=n.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var h=n.barMaxWidth;h&&(l[u].maxWidth=h);var f=n.barMinWidth;f&&(l[u].minWidth=f);var d=n.barGap;d!=null&&(s.gap=d);var g=n.barCategoryGap;g!=null&&(s.categoryGap=g)});var r={};return j(t,function(n,i){r[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=Qe(a).length;s=Math.max(35-l*4,15)+"%"}var u=ce(s,o),c=ce(n.gap,1),h=n.remainedWidth,f=n.autoWidthCount,d=(h-u)/(f+(f-1)*c);d=Math.max(d,0),j(a,function(x){var _=x.maxWidth,w=x.minWidth;if(x.width){var S=x.width;_&&(S=Math.min(S,_)),w&&(S=Math.max(S,w)),x.width=S,h-=S+c*S,f--}else{var S=d;_&&_S&&(S=w),S!==d&&(x.width=S,h-=S+c*S,f--)}}),d=(h-u)/(f+(f-1)*c),d=Math.max(d,0);var g=0,m;j(a,function(x,_){x.width||(x.width=d),m=x,g+=x.width*(1+c)}),m&&(g-=m.width*c);var y=-g/2;j(a,function(x,_){r[i][_]=r[i][_]||{bandWidth:o,offset:y,width:x.width},y+=x.width*(1+c)})}),r}function Mre(e,t,r){if(e&&t){var n=e[sk(t)];return n}}function tG(e,t){var r=J6(e,t),n=Q6(r);j(r,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=K6(i),u=n[sk(s)][l],c=u.offset,h=u.width;a.setLayout({bandWidth:u.bandWidth,offset:c,size:h})})}function rG(e){return{seriesType:e,plan:yf(),reset:function(t){if(nG(t)){var r=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),a=n.getOtherAxis(i),o=r.getDimensionIndex(r.mapDimension(a.dim)),s=r.getDimensionIndex(r.mapDimension(i.dim)),l=t.get("showBackground",!0),u=r.mapDimension(a.dim),c=r.getCalculationInfo("stackResultDimension"),h=$o(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),f=a.isHorizontal(),d=Are(i,a),g=iG(t),m=t.get("barMinHeight")||0,y=c&&r.getDimensionIndex(c),x=r.getLayout("size"),_=r.getLayout("offset");return{progress:function(w,S){for(var T=w.count,M=g&&Oa(T*3),A=g&&l&&Oa(T*3),P=g&&Oa(T),I=n.master.getRect(),N=f?I.width:I.height,D,O=S.getStore(),R=0;(D=w.next())!=null;){var F=O.get(h?y:o,D),H=O.get(s,D),W=d,V=void 0;h&&(V=+F-O.get(o,D));var z=void 0,Z=void 0,U=void 0,$=void 0;if(f){var Y=n.dataToPoint([F,H]);if(h){var te=n.dataToPoint([V,H]);W=te[0]}z=W,Z=Y[1]+_,U=Y[0]-W,$=x,Math.abs(U)0?r:1:r))}var kre=function(e,t,r,n){for(;r>>1;e[i][1]i&&(this._approxInterval=i);var o=Am.length,s=Math.min(kre(Am,this._approxInterval,0,o),o-1);this._interval=Am[s][1],this._intervalPrecision=hp(this._interval),this._minLevelUnit=Am[Math.max(s-1,0)][0]},t.prototype.parse=function(r){return rt(r)?r:+to(r)},t.prototype.contain=function(r){return ok(r,this._extent)},t.prototype.normalize=function(r){return this._calculator.normalize(r,this._extent)},t.prototype.scale=function(r){return this._calculator.scale(r,this._extent)},t.type="time",t}(Yo),Am=[["second",MA],["minute",AA],["hour",xv],["quarter-day",xv*6],["half-day",xv*12],["day",Ti*1.2],["half-week",Ti*3.5],["week",Ti*7],["month",Ti*31],["quarter",Ti*95],["half-year",sD/2],["year",sD]];function aG(e,t,r,n){return z0(new Date(t),e,n).getTime()===z0(new Date(r),e,n).getTime()}function Lre(e,t){return e/=Ti,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function Nre(e){var t=30*Ti;return e/=t,e>6?6:e>3?3:e>2?2:1}function Pre(e){return e/=xv,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function yE(e,t){return e/=t?AA:MA,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function Ire(e){return tA(e,!0)}function Dre(e,t,r){var n=Math.max(0,Ve($n,t)-1);return z0(new Date(e),$n[n],r).getTime()}function Ere(e,t){var r=new Date(0);r[e](1);var n=r.getTime();r[e](1+t);var i=r.getTime()-n;return function(a,o){return Math.max(0,Math.round((o-a)/i))}}function jre(e,t,r,n,i,a){var o=1e4,s=$J,l=0;function u(R,F,H,W,V,z,Z){for(var U=Ere(V,R),$=F,Y=new Date($);$o));)if(Y[V](Y[W]()+R),$=Y.getTime(),a){var te=a.calcNiceTickMultiple($,U);te>0&&(Y[V](Y[W]()+te*R),$=Y.getTime())}Z.push({value:$,notAdd:!0})}function c(R,F,H){var W=[],V=!F.length;if(!aG(_v(R),n[0],n[1],r)){V&&(F=[{value:Dre(n[0],R,r)},{value:n[1]}]);for(var z=0;z=n[0]&&Z<=n[1]&&u($,Z,U,Y,te,ie,W),R==="year"&&H.length>1&&z===0&&H.unshift({value:H[0].value-$})}}for(var z=0;z=n[0]&&S<=n[1]&&d++)}var T=i/t;if(d>T*1.5&&g>T/1.5||(h.push(_),d>T||e===s[m]))break}f=[]}}}for(var M=ot(ae(h,function(R){return ot(R,function(F){return F.value>=n[0]&&F.value<=n[1]&&!F.notAdd})}),function(R){return R.length>0}),A=[],P=M.length-1,m=0;m0;)a*=10;var s=[LT(Ore(n[0]/a)*a),LT(Rre(n[1]/a)*a)];this._interval=a,this._intervalPrecision=hp(a),this._niceExtent=s}},t.prototype.calcNiceExtent=function(r){e.prototype.calcNiceExtent.call(this,r),this._fixMin=r.fixMin,this._fixMax=r.fixMax},t.prototype.contain=function(r){return r=Lm(r)/Lm(this.base),e.prototype.contain.call(this,r)},t.prototype.normalize=function(r){return r=Lm(r)/Lm(this.base),e.prototype.normalize.call(this,r)},t.prototype.scale=function(r){return r=e.prototype.scale.call(this,r),km(this.base,r)},t.prototype.setBreaksFromOption=function(r){var n=vr();if(n){var i=n.logarithmicParseBreaksFromOption(r,this.base,fe(this.parse,this)),a=i.parsedOriginal,o=i.parsedLogged;this._originalScale._innerSetBreak(a),this._innerSetBreak(o)}},t.type="log",t}(Yo);function Nm(e,t){return LT(e,ta(t))}vl.registerClass(oG);var zre=function(){function e(t,r,n){this._prepareParams(t,r,n)}return e.prototype._prepareParams=function(t,r,n){n[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var f=this._determinedMin,d=this._determinedMax;return f!=null&&(s=f,u=!0),d!=null&&(l=d,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:h}},e.prototype.modifyDataMinMax=function(t,r){this[Fre[t]]=r},e.prototype.setDeterminedMinMax=function(t,r){var n=Bre[t];this[n]=r},e.prototype.freeze=function(){this.frozen=!0},e}(),Bre={min:"_determinedMin",max:"_determinedMax"},Fre={min:"_dataMin",max:"_dataMax"};function sG(e,t,r){var n=e.rawExtentInfo;return n||(n=new zre(e,t,r),e.rawExtentInfo=n,n)}function Pm(e,t){return t==null?null:Xr(t)?NaN:e.parse(t)}function lG(e,t){var r=e.type,n=sG(e,t,e.getExtent()).calculate();e.setBlank(n.isBlank);var i=n.min,a=n.max,o=t.ecModel;if(o&&r==="time"){var s=J6("bar",o),l=!1;if(j(s,function(h){l=l||h.getBaseAxis()===t.axis}),l){var u=Q6(s),c=Vre(i,a,t,u);i=c.min,a=c.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function Vre(e,t,r,n){var i=r.axis.getExtent(),a=Math.abs(i[1]-i[0]),o=Mre(n,r.axis);if(o===void 0)return{min:e,max:t};var s=1/0;j(o,function(d){s=Math.min(d.offset,s)});var l=-1/0;j(o,function(d){l=Math.max(d.offset+d.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=t-e,h=1-(s+l)/a,f=c/h-c;return t+=f*(l/u),e-=f*(s/u),{min:e,max:t}}function Gu(e,t){var r=t,n=lG(e,r),i=n.extent,a=r.get("splitNumber");e instanceof oG&&(e.base=r.get("logBase"));var o=e.type,s=r.get("interval"),l=o==="interval"||o==="time";e.setBreaksFromOption(cG(r)),e.setExtent(i[0],i[1]),e.calcNiceExtent({splitNumber:a,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?r.get("minInterval"):null,maxInterval:l?r.get("maxInterval"):null}),s!=null&&e.setInterval&&e.setInterval(s)}function Xp(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new Wh({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new lk({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(vl.getClass(t)||Yo)}}function Gre(e){var t=e.scale.getExtent(),r=t[0],n=t[1];return!(r>0&&n>0||r<0&&n<0)}function wf(e){var t=e.getLabelModel().get("formatter");if(e.type==="time"){var r=YJ(t);return function(i,a){return e.scale.getFormattedLabel(i,a,r)}}else{if(he(t))return function(i){var a=e.scale.getLabel(i),o=t.replace("{value}",a??"");return o};if(we(t)){if(e.type==="category")return function(i,a){return t(q0(e,i),i.value-e.scale.getExtent()[0],null)};var n=vr();return function(i,a){var o=null;return n&&(o=n.makeAxisLabelFormatterParamBreak(o,i.break)),t(q0(e,i),a,o)}}else return function(i){return e.scale.getLabel(i)}}}function q0(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function uk(e){var t=e.get("interval");return t??"auto"}function uG(e){return e.type==="category"&&uk(e.getLabelModel())===0}function K0(e,t){var r={};return j(e.mapDimensionsAll(t),function(n){r[ak(e,n)]=!0}),Qe(r)}function Wre(e,t,r){t&&j(K0(t,r),function(n){var i=t.getApproximateExtent(n);i[0]e[1]&&(e[1]=i[1])})}function Hh(e){return e==="middle"||e==="center"}function dp(e){return e.getShallow("show")}function cG(e){var t=e.get("breaks",!0);if(t!=null)return!vr()||!Hre(e.axis)?void 0:t}function Hre(e){return(e.dim==="x"||e.dim==="y"||e.dim==="z"||e.dim==="single")&&e.type!=="category"}var Sf=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e}();function Ure(e){return no(null,e)}var Zre={isDimensionStacked:$o,enableDataStack:X6,getStackedDimension:ak};function $re(e,t){var r=t;t instanceof qe||(r=new qe(t));var n=Xp(r);return n.setExtent(e[0],e[1]),Gu(n,r),n}function Yre(e){Qt(e,Sf)}function Xre(e,t){return t=t||{},Ct(e,null,null,t.state!=="normal")}const qre=Object.freeze(Object.defineProperty({__proto__:null,createDimensions:ore,createList:Ure,createScale:$re,createSymbol:sr,createTextStyle:Xre,dataStack:Zre,enableHoverEmphasis:Hs,getECData:De,getLayoutRect:It,mixinAxisModelCommonMethods:Yre},Symbol.toStringTag,{value:"Module"}));var Kre=1e-8;function xE(e,t){return Math.abs(e-t)i&&(n=o,i=l)}if(n)return Qre(n.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},t.prototype.getBoundingRect=function(r){var n=this._rect;if(n&&!r)return n;var i=[1/0,1/0],a=[-1/0,-1/0],o=this.geometries;return j(o,function(s){s.type==="polygon"?_E(s.exterior,i,a,r):j(s.points,function(l){_E(l,i,a,r)})}),isFinite(i[0])&&isFinite(i[1])&&isFinite(a[0])&&isFinite(a[1])||(i[0]=i[1]=a[0]=a[1]=0),n=new Pe(i[0],i[1],a[0]-i[0],a[1]-i[1]),r||(this._rect=n),n},t.prototype.contain=function(r){var n=this.getBoundingRect(),i=this.geometries;if(!n.contain(r[0],r[1]))return!1;e:for(var a=0,o=i.length;a>1^-(s&1),l=l>>1^-(l&1),s+=i,l+=a,i=s,a=l,n.push([s/r,l/r])}return n}function NT(e,t){return e=tne(e),ae(ot(e.features,function(r){return r.geometry&&r.properties&&r.geometry.coordinates.length>0}),function(r){var n=r.properties,i=r.geometry,a=[];switch(i.type){case"Polygon":var o=i.coordinates;a.push(new bE(o[0],o.slice(1)));break;case"MultiPolygon":j(i.coordinates,function(l){l[0]&&a.push(new bE(l[0],l.slice(1)))});break;case"LineString":a.push(new wE([i.coordinates]));break;case"MultiLineString":a.push(new wE(i.coordinates))}var s=new fG(n[t||"name"],a,n.cp);return s.properties=n,s})}const rne=Object.freeze(Object.defineProperty({__proto__:null,MAX_SAFE_INTEGER:HC,asc:Qn,getPercentWithPrecision:bq,getPixelPrecision:QM,getPrecision:ta,getPrecisionSafe:uF,isNumeric:rA,isRadianAroundZero:Oh,linearMap:ht,nice:tA,numericToNumber:Xa,parseDate:to,parsePercent:ce,quantile:Ly,quantity:hF,quantityExponent:f_,reformIntervals:UC,remRadian:eA,round:ir},Symbol.toStringTag,{value:"Module"})),nne=Object.freeze(Object.defineProperty({__proto__:null,format:Zp,parse:to,roundTime:z0},Symbol.toStringTag,{value:"Module"})),ine=Object.freeze(Object.defineProperty({__proto__:null,Arc:Wp,BezierCurve:hf,BoundingRect:Pe,Circle:ro,CompoundPath:Hp,Ellipse:Gp,Group:Ce,Image:Er,IncrementalDisplayable:KF,Line:ar,LinearGradient:qu,Polygon:en,Polyline:Gr,RadialGradient:pA,Rect:Ze,Ring:cf,Sector:Qr,Text:tt,clipPointsByRect:xA,clipRectByRect:rV,createIcon:df,extendPath:eV,extendShape:QF,getShapeClass:ip,getTransform:Us,initProps:Nt,makeImage:mA,makePath:Bh,mergePath:qn,registerShape:Fi,resizePath:yA,updateProps:it},Symbol.toStringTag,{value:"Module"})),ane=Object.freeze(Object.defineProperty({__proto__:null,addCommas:EA,capitalFirst:nQ,encodeHTML:hn,formatTime:rQ,formatTpl:RA,getTextRect:eQ,getTooltipMarker:xV,normalizeCssArray:gf,toCamelCase:jA,truncateText:eK},Symbol.toStringTag,{value:"Module"})),one=Object.freeze(Object.defineProperty({__proto__:null,bind:fe,clone:Se,curry:Fe,defaults:Ae,each:j,extend:Q,filter:ot,indexOf:Ve,inherits:UM,isArray:re,isFunction:we,isObject:ke,isString:he,map:ae,merge:Ge,reduce:Ei},Symbol.toStringTag,{value:"Module"}));var sne=Ye(),wv=Ye(),da={estimate:1,determine:2};function J0(e){return{out:{noPxChangeTryDetermine:[]},kind:e}}function vG(e,t){var r=ae(t,function(n){return e.scale.parse(n)});return e.type==="time"&&r.length>0&&(r.sort(),r.unshift(r[0]),r.push(r[r.length-1])),r}function lne(e,t){var r=e.getLabelModel().get("customValues");if(r){var n=wf(e),i=e.scale.getExtent(),a=vG(e,r),o=ot(a,function(s){return s>=i[0]&&s<=i[1]});return{labels:ae(o,function(s){var l={value:s};return{formattedLabel:n(l),rawLabel:e.scale.getLabel(l),tickValue:s,time:void 0,break:void 0}})}}return e.type==="category"?cne(e,t):fne(e)}function une(e,t,r){var n=e.getTickModel().get("customValues");if(n){var i=e.scale.getExtent(),a=vG(e,n);return{ticks:ot(a,function(o){return o>=i[0]&&o<=i[1]})}}return e.type==="category"?hne(e,t):{ticks:ae(e.scale.getTicks(r),function(o){return o.value})}}function cne(e,t){var r=e.getLabelModel(),n=pG(e,r,t);return!r.get("show")||e.scale.isBlank()?{labels:[]}:n}function pG(e,t,r){var n=vne(e),i=uk(t),a=r.kind===da.estimate;if(!a){var o=mG(n,i);if(o)return o}var s,l;we(i)?s=_G(e,i):(l=i==="auto"?pne(e,r):i,s=xG(e,l));var u={labels:s,labelCategoryInterval:l};return a?r.out.noPxChangeTryDetermine.push(function(){return PT(n,i,u),!0}):PT(n,i,u),u}function hne(e,t){var r=dne(e),n=uk(t),i=mG(r,n);if(i)return i;var a,o;if((!t.get("show")||e.scale.isBlank())&&(a=[]),we(n))a=_G(e,n,!0);else if(n==="auto"){var s=pG(e,e.getLabelModel(),J0(da.determine));o=s.labelCategoryInterval,a=ae(s.labels,function(l){return l.tickValue})}else o=n,a=xG(e,o,!0);return PT(r,n,{ticks:a,tickCategoryInterval:o})}function fne(e){var t=e.scale.getTicks(),r=wf(e);return{labels:ae(t,function(n,i){return{formattedLabel:r(n,i),rawLabel:e.scale.getLabel(n),tickValue:n.value,time:n.time,break:n.break}})}}var dne=gG("axisTick"),vne=gG("axisLabel");function gG(e){return function(r){return wv(r)[e]||(wv(r)[e]={list:[]})}}function mG(e,t){for(var r=0;rc&&(u=Math.max(1,Math.floor(l/c)));for(var h=s[0],f=e.dataToCoord(h+1)-e.dataToCoord(h),d=Math.abs(f*Math.cos(a)),g=Math.abs(f*Math.sin(a)),m=0,y=0;h<=s[1];h+=u){var x=0,_=0,w=c_(i({value:h}),n.font,"center","top");x=w.width*1.3,_=w.height*1.3,m=Math.max(m,x,7),y=Math.max(y,_,7)}var S=m/d,T=y/g;isNaN(S)&&(S=1/0),isNaN(T)&&(T=1/0);var M=Math.max(0,Math.floor(Math.min(S,T)));if(r===da.estimate)return t.out.noPxChangeTryDetermine.push(fe(mne,null,e,M,l)),M;var A=yG(e,M,l);return A??M}function mne(e,t,r){return yG(e,t,r)==null}function yG(e,t,r){var n=sne(e.model),i=e.getExtent(),a=n.lastAutoInterval,o=n.lastTickCount;if(a!=null&&o!=null&&Math.abs(a-t)<=1&&Math.abs(o-r)<=1&&a>t&&n.axisExtent0===i[0]&&n.axisExtent1===i[1])return a;n.lastTickCount=r,n.lastAutoInterval=t,n.axisExtent0=i[0],n.axisExtent1=i[1]}function yne(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function xG(e,t,r){var n=wf(e),i=e.scale,a=i.getExtent(),o=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=a[0],c=i.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=uG(e),f=o.get("showMinLabel")||h,d=o.get("showMaxLabel")||h;f&&u!==a[0]&&m(a[0]);for(var g=u;g<=a[1];g+=l)m(g);d&&g-l!==a[1]&&m(a[1]);function m(y){var x={value:y};s.push(r?y:{formattedLabel:n(x),rawLabel:i.getLabel(x),tickValue:y,time:void 0,break:void 0})}return s}function _G(e,t,r){var n=e.scale,i=wf(e),a=[];return j(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;t(o.value,s)&&a.push(r?l:{formattedLabel:i(o),rawLabel:s,tickValue:l,time:void 0,break:void 0})}),a}var SE=[0,1],Vi=function(){function e(t,r,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=r,this._extent=n||[0,0]}return e.prototype.contain=function(t){var r=this._extent,n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return t>=n&&t<=i},e.prototype.containData=function(t){return this.scale.contain(this.scale.parse(t))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(t){return QM(t||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(t,r){var n=this._extent;n[0]=t,n[1]=r},e.prototype.dataToCoord=function(t,r){var n=this._extent,i=this.scale;return t=i.normalize(i.parse(t)),this.onBand&&i.type==="ordinal"&&(n=n.slice(),CE(n,i.count())),ht(t,SE,n,r)},e.prototype.coordToData=function(t,r){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),CE(n,i.count()));var a=ht(t,n,SE,r);return this.scale.scale(a)},e.prototype.pointToData=function(t,r){},e.prototype.getTicksCoords=function(t){t=t||{};var r=t.tickModel||this.getTickModel(),n=une(this,r,{breakTicks:t.breakTicks,pruneByBreak:t.pruneByBreak}),i=n.ticks,a=ae(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=r.get("alignWithLabel");return xne(this,a,o,t.clamp),a},e.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),r=t.get("splitNumber");r>0&&r<100||(r=5);var n=this.scale.getMinorTicks(r),i=ae(n,function(a){return ae(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},e.prototype.getViewLabels=function(t){return t=t||J0(da.determine),lne(this,t).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var t=this._extent,r=this.scale.getExtent(),n=r[1]-r[0]+(this.onBand?1:0);n===0&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},e.prototype.calculateCategoryInterval=function(t){return t=t||J0(da.determine),gne(this,t)},e}();function CE(e,t){var r=e[1]-e[0],n=t,i=r/n/2;e[0]+=i,e[1]-=i}function xne(e,t,r,n){var i=t.length;if(!e.onBand||r||!i)return;var a=e.getExtent(),o,s;if(i===1)t[0].coord=a[0],t[0].onBand=!0,o=t[1]={coord:a[1],tickValue:t[0].tickValue,onBand:!0};else{var l=t[i-1].tickValue-t[0].tickValue,u=(t[i-1].coord-t[0].coord)/l;j(t,function(d){d.coord-=u/2,d.onBand=!0});var c=e.scale.getExtent();s=1+c[1]-t[i-1].tickValue,o={coord:t[i-1].coord+u*s,tickValue:c[1]+1,onBand:!0},t.push(o)}var h=a[0]>a[1];f(t[0].coord,a[0])&&(n?t[0].coord=a[0]:t.shift()),n&&f(a[0],t[0].coord)&&t.unshift({coord:a[0],onBand:!0}),f(a[1],o.coord)&&(n?o.coord=a[1]:t.pop()),n&&f(o.coord,a[1])&&t.push({coord:a[1],onBand:!0});function f(d,g){return d=ir(d),g=ir(g),h?d>g:di&&(i+=_d);var d=Math.atan2(s,o);if(d<0&&(d+=_d),d>=n&&d<=i||d+_d>=n&&d+_d<=i)return l[0]=c,l[1]=h,u-r;var g=r*Math.cos(n)+e,m=r*Math.sin(n)+t,y=r*Math.cos(i)+e,x=r*Math.sin(i)+t,_=(g-o)*(g-o)+(m-s)*(m-s),w=(y-o)*(y-o)+(x-s)*(x-s);return _0){t=t/180*Math.PI,ra.fromArray(e[0]),kt.fromArray(e[1]),rr.fromArray(e[2]),Ne.sub(za,ra,kt),Ne.sub(Ea,rr,kt);var r=za.len(),n=Ea.len();if(!(r<.001||n<.001)){za.scale(1/r),Ea.scale(1/n);var i=za.dot(Ea),a=Math.cos(t);if(a1&&Ne.copy(_n,rr),_n.toArray(e[1])}}}}function Lne(e,t,r){if(r<=180&&r>0){r=r/180*Math.PI,ra.fromArray(e[0]),kt.fromArray(e[1]),rr.fromArray(e[2]),Ne.sub(za,kt,ra),Ne.sub(Ea,rr,kt);var n=za.len(),i=Ea.len();if(!(n<.001||i<.001)){za.scale(1/n),Ea.scale(1/i);var a=za.dot(t),o=Math.cos(r);if(a=l)Ne.copy(_n,rr);else{_n.scaleAndAdd(Ea,s/Math.tan(Math.PI/2-c));var h=rr.x!==kt.x?(_n.x-kt.x)/(rr.x-kt.x):(_n.y-kt.y)/(rr.y-kt.y);if(isNaN(h))return;h<0?Ne.copy(_n,kt):h>1&&Ne.copy(_n,rr)}_n.toArray(e[1])}}}}function Qb(e,t,r,n){var i=r==="normal",a=i?e:e.ensureState(r);a.ignore=t;var o=n.get("smooth");o&&o===!0&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();i?e.useStyle(s):a.style=s}function Nne(e,t){var r=t.smooth,n=t.points;if(n)if(e.moveTo(n[0][0],n[0][1]),r>0&&n.length>=3){var i=To(n[0],n[1]),a=To(n[1],n[2]);if(!i||!a){e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]);return}var o=Math.min(i,a)*r,s=fv([],n[1],n[0],o/i),l=fv([],n[1],n[2],o/a),u=fv([],s,l,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),e.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var c=1;c0){S(N*I,0,a);var D=N+A;D<0&&T(-D*I,1)}else T(-A*I,1)}}function S(A,P,I){A!==0&&(c=!0);for(var N=P;N0)for(var D=0;D0;D--){var H=I[D-1]*F;S(-H,D,a)}}}function M(A){var P=A<0?-1:1;A=Math.abs(A);for(var I=Math.ceil(A/(a-1)),N=0;N