import{r as wa,m as U,i as H,e as kn,a as $,b as kp,c as Y,d as ue,f as En,g as G,h as q,j as Z,k as b,l as ye,n as le,o as Zf,p as V,q as ni,s as Xe,P as Ae,t as Ul,u as ae,v as Ep,Z as gr,w as Rp,x as Cs,y as Rn,z as j,A as Np,C as Ra,E as Ds,S as tt,R as ii,B as Ms,D as Na,F as De,L as ze,G as oi,H as si,I as Op,J as Bp,K as Gp,T as Mr,M as Oa,N as rt,O as Er,Q as Pe,U as qf,V as Se,W as Kf,X as Is,Y as Nn,_ as we,$ as jf,a0 as ge,a1 as Ba,a2 as se,a3 as ee,a4 as St,a5 as Vp,a6 as Ve,a7 as oe,a8 as He,a9 as pe,aa as Q,ab as Go,ac as Jf,ad as It,ae as Vo,af as Fp,ag as zp,ah as Qf,ai as ev,aj as Ga,ak as Fo,al as tv,am as Hp,an as Yl,ao as Vi,ap as Wp,aq as $t,ar as zo,as as Up,at as $l,au as Yp,av as $p,aw as Xp,ax as Ls,ay as rv,az as Xl,aA as Fi,aB as Zp,aC as qp,aD as la,aE as Kp,aF as jp,aG as Jp,aH as Qp,aI as eg,aJ as tg,aK as rg,aL as ag,aM as ng,aN as ig,aO as og,aP as sg,aQ as Zl,aR as ql,aS as lg,aT as av,aU as Ps,aV as ks,aW as Kl,aX as Es,aY as ug,aZ as Rs,a_ as cg,a$ as fg,b0 as nv,b1 as vg,b2 as hg,b3 as dg,b4 as pg}from"./zrender-f903d501.js";import{_ as F}from"./tslib-54e39b60.js";var jl=1e-4,iv=20;function gg(r){return r.replace(/^\s+|\s+$/g,"")}function pt(r,t,e,a){var n=t[0],i=t[1],o=e[0],s=e[1],l=i-n,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(a)if(l>0){if(r<=n)return o;if(r>=i)return s}else{if(r>=n)return o;if(r<=i)return s}else{if(r===n)return o;if(r===i)return s}return(r-n)/l*u+o}function W(r,t){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return H(r)?gg(r).match(/%$/)?parseFloat(r)/100*t:parseFloat(r):r==null?NaN:+r}function he(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),iv),r=(+r).toFixed(t),e?r:+r}function mg(r){return r.sort(function(t,e){return t-e}),r}function yt(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var t=1,e=0;e<15;e++,t*=10)if(Math.round(r*t)/t===r)return e}return On(r)}function On(r){var t=r.toString().toLowerCase(),e=t.indexOf("e"),a=e>0?+t.slice(e+1):0,n=e>0?e:t.length,i=t.indexOf("."),o=i<0?0:n-1-i;return Math.max(0,o-a)}function ov(r,t){var e=Math.log,a=Math.LN10,n=Math.floor(e(r[1]-r[0])/a),i=Math.round(e(Math.abs(t[1]-t[0]))/a),o=Math.min(Math.max(-n+i,0),20);return isFinite(o)?o:20}function yg(r,t,e){if(!r[t])return 0;var a=sv(r,e);return a[t]||0}function sv(r,t){var e=wa(r,function(v,d){return v+(isNaN(d)?0:d)},0);if(e===0)return[];for(var a=Math.pow(10,t),n=U(r,function(v){return(isNaN(v)?0:v)/e*a*100}),i=a*100,o=U(n,function(v){return Math.floor(v)}),s=wa(o,function(v,d){return v+d},0),l=U(n,function(v,d){return v-o[d]});su&&(u=l[f],c=f);++o[c],l[c]=0,++s}return U(o,function(v){return v/a})}function _g(r,t){var e=Math.max(yt(r),yt(t)),a=r+t;return e>iv?a:he(a,e)}var xg=9007199254740991;function Ns(r){var t=Math.PI*2;return(r%t+t)%t}function ba(r){return r>-jl&&r=10&&t++,t}function Os(r,t){var e=Va(r),a=Math.pow(10,e),n=r/a,i;return t?n<1.5?i=1:n<2.5?i=2:n<4?i=3:n<7?i=5:i=10:n<1?i=1:n<2?i=2:n<3?i=3:n<5?i=5:i=10,r=i*a,e>=-20?+r.toFixed(e<0?-e:0):r}function wg(r,t){var e=(r.length-1)*t+1,a=Math.floor(e),n=+r[a-1],i=e-a;return i?n+i*(r[a]-n):n}function bg(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var t=-1/0,e=1,a=0;a=0||i&&ye(i,l)<0)){var u=a.getShallow(l,t);u!=null&&(o[r[s][0]]=u)}}return o}}var qg=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],Kg=Ta(qg),jg=function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return Kg(this,t,e)},r}(),K=ie(),Wo=function(r,t,e,a){if(a){var n=K(a);n.dataIndex=e,n.dataType=t,n.seriesIndex=r,n.ssrType="chart",a.type==="group"&&a.traverse(function(i){var o=K(i);o.seriesIndex=r,o.dataIndex=e,o.dataType=t,o.ssrType="chart"})}},nu=1,iu={},mv=ie(),zs=ie(),Hs=0,Ha=1,ci=2,nt=["emphasis","blur","select"],Gn=["normal","emphasis","blur","select"],Jg=10,Qg=9,or="highlight",bn="downplay",pa="select",An="unselect",ga="toggleSelect";function _r(r){return r!=null&&r!=="none"}function fi(r,t,e){r.onHoverStateChange&&(r.hoverState||0)!==e&&r.onHoverStateChange(t),r.hoverState=e}function yv(r){fi(r,"emphasis",ci)}function _v(r){r.hoverState===ci&&fi(r,"normal",Hs)}function Ws(r){fi(r,"blur",Ha)}function xv(r){r.hoverState===Ha&&fi(r,"normal",Hs)}function em(r){r.selected=!0}function tm(r){r.selected=!1}function ou(r,t,e){t(r,e)}function kt(r,t,e){ou(r,t,e),r.isGroup&&r.traverse(function(a){ou(a,t,e)})}function Uo(r,t){switch(t){case"emphasis":r.hoverState=ci;break;case"normal":r.hoverState=Hs;break;case"blur":r.hoverState=Ha;break;case"select":r.selected=!0}}function rm(r,t,e,a){for(var n=r.style,i={},o=0;o=0,i=!1;if(r instanceof Ae){var o=mv(r),s=n&&o.selectFill||o.normalFill,l=n&&o.selectStroke||o.normalStroke;if(_r(s)||_r(l)){a=a||{};var u=a.style||{};u.fill==="inherit"?(i=!0,a=V({},a),u=V({},u),u.fill=s):!_r(u.fill)&&_r(s)?(i=!0,a=V({},a),u=V({},u),u.fill=Ul(s)):!_r(u.stroke)&&_r(l)&&(i||(a=V({},a),u=V({},u)),u.stroke=Ul(l)),a.style=u}}if(a&&a.z2==null){i||(a=V({},a));var c=r.z2EmphasisLift;a.z2=r.z2+(c??Jg)}return a}function nm(r,t,e){if(e&&e.z2==null){e=V({},e);var a=r.z2SelectLift;e.z2=r.z2+(a??Qg)}return e}function im(r,t,e){var a=ye(r.currentStates,t)>=0,n=r.style.opacity,i=a?null:rm(r,["opacity"],t,{opacity:1});e=e||{};var o=e.style||{};return o.opacity==null&&(e=V({},e),o=V({opacity:a?n:i.opacity*.1},o),e.style=o),e}function Hi(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return am(this,r,t,e);if(r==="blur")return im(this,r,e);if(r==="select")return nm(this,r,e)}return e}function Sv(r){r.stateProxy=Hi;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=Hi),e&&(e.stateProxy=Hi)}function su(r,t){!Tv(r,t)&&!r.__highByOuter&&kt(r,yv)}function lu(r,t){!Tv(r,t)&&!r.__highByOuter&&kt(r,_v)}function Vn(r,t){r.__highByOuter|=1<<(t||0),kt(r,yv)}function Fn(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&kt(r,_v)}function om(r){kt(r,Ws)}function wv(r){kt(r,xv)}function bv(r){kt(r,em)}function Av(r){kt(r,tm)}function Tv(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function Cv(r){var t=r.getModel(),e=[],a=[];t.eachComponent(function(n,i){var o=zs(i),s=n==="series",l=s?r.getViewOfSeriesModel(i):r.getViewOfComponentModel(i);!s&&a.push(l),o.isBlured&&(l.group.traverse(function(u){xv(u)}),s&&e.push(i)),o.isBlured=!1}),b(a,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(e,!1,t)})}function Yo(r,t,e,a){var n=a.getModel();e=e||"coordinateSystem";function i(u,c){for(var f=0;f0){var s={dataIndex:o,seriesIndex:e.seriesIndex};i!=null&&(s.dataType=i),t.push(s)}})}),t}function zn(r,t,e){Dv(r,!0),kt(r,Sv),hm(r,t,e)}function vm(r){Dv(r,!1)}function fr(r,t,e,a){a?vm(r):zn(r,t,e)}function hm(r,t,e){var a=K(r);t!=null?(a.focus=t,a.blurScope=e):a.focus&&(a.focus=null)}var cu=["emphasis","blur","select"],dm={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function vr(r,t,e,a){e=e||"itemStyle";for(var n=0;n0){var f=c.duration,h=c.delay,v=c.easing,d={duration:f,delay:h||0,easing:v,done:i,force:!!i||!!o,setToFinal:!u,scope:r,during:o};s?t.animateFrom(e,d):t.animateTo(e,d)}else t.stopAnimation(),!s&&t.attr(e),o&&o(1),i&&i()}function ce(r,t,e,a,n,i){Ys("update",r,t,e,a,n,i)}function be(r,t,e,a,n,i){Ys("enter",r,t,e,a,n,i)}function Ir(r){if(!r.__zr)return!0;for(var t=0;tMath.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function hu(r){return!r.isGroup}function wm(r){return r.shape!=null}function qs(r,t,e){if(!r||!t)return;function a(o){var s={};return o.traverse(function(l){hu(l)&&l.anid&&(s[l.anid]=l)}),s}function n(o){var s={x:o.x,y:o.y,rotation:o.rotation};return wm(o)&&(s.shape=V({},o.shape)),s}var i=a(r);t.traverse(function(o){if(hu(o)&&o.anid){var s=i[o.anid];if(s){var l=n(o);o.attr(n(s)),ce(o,l,e,K(o).dataIndex)}}})}function Rv(r,t){return U(r,function(e){var a=e[0];a=Wn(a,t.x),a=Un(a,t.x+t.width);var n=e[1];return n=Wn(n,t.y),n=Un(n,t.y+t.height),[a,n]})}function Nv(r,t){var e=Wn(r.x,t.x),a=Un(r.x+r.width,t.x+t.width),n=Wn(r.y,t.y),i=Un(r.y+r.height,t.y+t.height);if(a>=e&&i>=n)return{x:e,y:n,width:a-e,height:i-n}}function pi(r,t,e){var a=V({rectHover:!0},t),n=a.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(n.image=r.slice(8),j(n,e),new gr(a)):hi(r.replace("path://",""),a,e,"center")}function bm(r,t,e,a,n){for(var i=0,o=n[n.length-1];i1)return!1;var g=Wi(v,d,c,f)/h;return!(g<0||g>1)}function Wi(r,t,e,a){return r*a-e*t}function Am(r){return r<=1e-6&&r>=-1e-6}function Ks(r){var t=r.itemTooltipOption,e=r.componentModel,a=r.itemName,n=H(t)?{formatter:t}:t,i=e.mainType,o=e.componentIndex,s={componentType:i,name:a,$vars:["name"]};s[i+"Index"]=o;var l=r.formatterParamsExtra;l&&b(Xe(l),function(c){Er(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=K(r.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:a,option:j({content:a,encodeHTMLContent:!0,formatterParams:s},n)}}function du(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function gi(r,t){if(r)if(G(r))for(var e=0;e=0&&s.push(l)}),s}}function Hv(r,t){return se(se({},r,!0),t,!0)}const Gm={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:". "}}}},Vm={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 Yn="ZH",Js="EN",Lr=Js,Tn={},Qs={},Wv=le.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Lr).toUpperCase();return r.indexOf(Yn)>-1?Yn:Lr}():Lr;function el(r,t){r=r.toUpperCase(),Qs[r]=new me(t),Tn[r]=t}function Fm(r){if(H(r)){var t=Tn[r.toUpperCase()]||{};return r===Yn||r===Js?ee(t):se(ee(t),ee(Tn[Lr]),!1)}else return se(ee(r),ee(Tn[Lr]),!1)}function zm(r){return Qs[r]}function Hm(){return Qs[Lr]}el(Js,Gm);el(Yn,Vm);var tl=1e3,rl=tl*60,ma=rl*60,Je=ma*24,xu=Je*365,ua={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},Ja="{yyyy}-{MM}-{dd}",Su={year:"{yyyy}",month:"{yyyy}-{MM}",day:Ja,hour:Ja+" "+ua.hour,minute:Ja+" "+ua.minute,second:Ja+" "+ua.second,millisecond:ua.none},$i=["year","month","day","hour","minute","second","millisecond"],Uv=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Ne(r,t){return r+="","0000".substr(0,t-r.length)+r}function Pr(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function Wm(r){return r===Pr(r)}function Um(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Ya(r,t,e,a){var n=at(r),i=n[al(e)](),o=n[kr(e)]()+1,s=Math.floor((o-1)/3)+1,l=n[_i(e)](),u=n["get"+(e?"UTC":"")+"Day"](),c=n[Da(e)](),f=(c-1)%12+1,h=n[xi(e)](),v=n[Si(e)](),d=n[wi(e)](),p=c>=12?"pm":"am",g=p.toUpperCase(),m=a instanceof me?a:zm(a||Wv)||Hm(),y=m.getModel("time"),_=y.get("month"),x=y.get("monthAbbr"),S=y.get("dayOfWeek"),w=y.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,p+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,Ne(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,x[o-1]).replace(/{MM}/g,Ne(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Ne(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,S[u]).replace(/{ee}/g,w[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Ne(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Ne(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,Ne(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,Ne(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,Ne(d,3)).replace(/{S}/g,d+"")}function Ym(r,t,e,a,n){var i=null;if(H(e))i=e;else if($(e))i=e(r.value,t,{level:r.level});else{var o=V({},ua);if(r.level>0)for(var s=0;s<$i.length;++s)o[$i[s]]="{primary|"+o[$i[s]]+"}";var l=e?e.inherit===!1?e:j(e,o):o,u=Yv(r.value,n);if(l[u])i=l[u];else if(l.inherit){for(var c=Uv.indexOf(u),s=c-1;s>=0;--s)if(l[u]){i=l[u];break}i=i||o.none}if(G(i)){var f=r.level==null?0:r.level>=0?r.level:i.length+r.level;f=Math.min(f,i.length-1),i=i[f]}}return Ya(new Date(r.value),i,n,a)}function Yv(r,t){var e=at(r),a=e[kr(t)]()+1,n=e[_i(t)](),i=e[Da(t)](),o=e[xi(t)](),s=e[Si(t)](),l=e[wi(t)](),u=l===0,c=u&&s===0,f=c&&o===0,h=f&&i===0,v=h&&n===1,d=v&&a===1;return d?"year":v?"month":h?"day":f?"hour":c?"minute":u?"second":"millisecond"}function wu(r,t,e){var a=ue(r)?at(r):r;switch(t=t||Yv(r,e),t){case"year":return a[al(e)]();case"half-year":return a[kr(e)]()>=6?1:0;case"quarter":return Math.floor((a[kr(e)]()+1)/4);case"month":return a[kr(e)]();case"day":return a[_i(e)]();case"half-day":return a[Da(e)]()/24;case"hour":return a[Da(e)]();case"minute":return a[xi(e)]();case"second":return a[Si(e)]();case"millisecond":return a[wi(e)]()}}function al(r){return r?"getUTCFullYear":"getFullYear"}function kr(r){return r?"getUTCMonth":"getMonth"}function _i(r){return r?"getUTCDate":"getDate"}function Da(r){return r?"getUTCHours":"getHours"}function xi(r){return r?"getUTCMinutes":"getMinutes"}function Si(r){return r?"getUTCSeconds":"getSeconds"}function wi(r){return r?"getUTCMilliseconds":"getMilliseconds"}function $m(r){return r?"setUTCFullYear":"setFullYear"}function $v(r){return r?"setUTCMonth":"setMonth"}function Xv(r){return r?"setUTCDate":"setDate"}function Zv(r){return r?"setUTCHours":"setHours"}function qv(r){return r?"setUTCMinutes":"setMinutes"}function Kv(r){return r?"setUTCSeconds":"setSeconds"}function jv(r){return r?"setUTCMilliseconds":"setMilliseconds"}function Xm(r,t,e,a,n,i,o,s){var l=new ge({style:{text:r,font:t,align:e,verticalAlign:a,padding:n,rich:i,overflow:o?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function nl(r){if(!Bs(r))return H(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function il(r,t){return r=(r||"").toLowerCase().replace(/-(.)/g,function(e,a){return a.toUpperCase()}),t&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var $a=Vp;function Ko(r,t,e){var a="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function n(c){return c&&Ba(c)?c:"-"}function i(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=t==="time",s=r instanceof Date;if(o||s){var l=o?at(r):r;if(isNaN(+l)){if(s)return"-"}else return Ya(l,a,e)}if(t==="ordinal")return En(r)?n(r):ue(r)&&i(r)?r+"":"-";var u=Aa(r);return i(u)?nl(u):En(r)?n(r):typeof r=="boolean"?r+"":"-"}var bu=["a","b","c","d","e","f","g"],Xi=function(r,t){return"{"+r+(t??"")+"}"};function ol(r,t,e){G(t)||(t=[t]);var a=t.length;if(!a)return"";for(var n=t[0].$vars||[],i=0;i':'';var o=e.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:n==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:a}:{width:10,height:10,borderRadius:5,backgroundColor:a}}}function Zm(r,t,e){_e("echarts.format.formatTime","echarts.time.format"),(r==="week"||r==="month"||r==="quarter"||r==="half-year"||r==="year")&&(r=`MM-dd yyyy`);var a=at(t),n=e?"getUTC":"get",i=a[n+"FullYear"](),o=a[n+"Month"]()+1,s=a[n+"Date"](),l=a[n+"Hours"](),u=a[n+"Minutes"](),c=a[n+"Seconds"](),f=a[n+"Milliseconds"]();return r=r.replace("MM",Ne(o,2)).replace("M",o).replace("yyyy",i).replace("yy",Ne(i%100+"",2)).replace("dd",Ne(s,2)).replace("d",s).replace("hh",Ne(l,2)).replace("h",l).replace("mm",Ne(u,2)).replace("m",u).replace("ss",Ne(c,2)).replace("s",c).replace("SSS",Ne(f,3)),r}function qm(r){return r&&r.charAt(0).toUpperCase()+r.substr(1)}function dr(r,t){return t=t||"transparent",H(r)?r:Y(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}var Cn=b,Km=["left","right","top","bottom","width","height"],Qa=[["width","left","right"],["height","top","bottom"]];function sl(r,t,e,a,n){var i=0,o=0;a==null&&(a=1/0),n==null&&(n=1/0);var s=0;t.eachChild(function(l,u){var c=l.getBoundingRect(),f=t.childAt(u+1),h=f&&f.getBoundingRect(),v,d;if(r==="horizontal"){var p=c.width+(h?-h.x+c.x:0);v=i+p,v>a||l.newline?(i=0,v=p,o+=s+e,s=c.height):s=Math.max(s,c.height)}else{var g=c.height+(h?-h.y+c.y:0);d=o+g,d>n||l.newline?(i+=s+e,o=0,d=g,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),r==="horizontal"?i=v+e:o=d+e)})}var ya=sl;oe(sl,"vertical");oe(sl,"horizontal");function pr(r,t,e){e=$a(e||0);var a=t.width,n=t.height,i=W(r.left,a),o=W(r.top,n),s=W(r.right,a),l=W(r.bottom,n),u=W(r.width,a),c=W(r.height,n),f=e[2]+e[0],h=e[1]+e[3],v=r.aspect;switch(isNaN(u)&&(u=a-s-h-i),isNaN(c)&&(c=n-l-f-o),v!=null&&(isNaN(u)&&isNaN(c)&&(v>a/n?u=a*.8:c=n*.8),isNaN(u)&&(u=v*c),isNaN(c)&&(c=u/v)),isNaN(i)&&(i=a-s-u-h),isNaN(o)&&(o=n-l-c-f),r.left||r.right){case"center":i=a/2-u/2-e[3];break;case"right":i=a-u-h;break}switch(r.top||r.bottom){case"middle":case"center":o=n/2-c/2-e[0];break;case"bottom":o=n-c-f;break}i=i||0,o=o||0,isNaN(u)&&(u=a-h-i-(s||0)),isNaN(c)&&(c=n-f-o-(l||0));var d=new Pe(i+e[3],o+e[0],u,c);return d.margin=e,d}function Ma(r){var t=r.layoutMode||r.constructor.layoutMode;return Y(t)?t:t?{type:t}:null}function Or(r,t,e){var a=e&&e.ignoreSize;!G(a)&&(a=[a,a]);var n=o(Qa[0],0),i=o(Qa[1],1);u(Qa[0],r,n),u(Qa[1],r,i);function o(c,f){var h={},v=0,d={},p=0,g=2;if(Cn(c,function(_){d[_]=r[_]}),Cn(c,function(_){s(t,_)&&(h[_]=d[_]=t[_]),l(h,_)&&v++,l(d,_)&&p++}),a[f])return l(t,c[1])?d[c[2]]=null:l(t,c[2])&&(d[c[1]]=null),d;if(p===g||!v)return d;if(v>=g)return h;for(var m=0;m=0;l--)s=se(s,n[l],!0);a.defaultOption=s}return a.defaultOption},t.prototype.getReferringComponents=function(e,a){var n=e+"Index",i=e+"Id";return za(this.ecModel,e,{index:this.get(n,!0),id:this.get(i,!0)},a)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0}(),t}(me);gv(zr,me);ui(zr);Om(zr);Bm(zr,Qm);function Qm(r){var t=[];return b(zr.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=U(t,function(e){return _t(e).main}),r!=="dataset"&&ye(t,"dataset")<=0&&t.unshift("dataset"),t}const te=zr;var Qv="";typeof navigator<"u"&&(Qv=navigator.platform||"");var xr="rgba(0, 0, 0, 0.2)";const ey={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:xr,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:xr,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:xr,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:xr,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:xr,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:xr,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Qv.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 jo=Z(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),st="original",We="arrayRows",dt="objectRows",wt="keyedColumns",Dt="typedArray",eh="unknown",Mt="column",Hr="row",Me={Must:1,Might:2,Not:3},th=ie();function ty(r){th(r).datasetMap=Z()}function ry(r,t,e){var a={},n=ll(t);if(!n||!r)return a;var i=[],o=[],s=t.ecModel,l=th(s).datasetMap,u=n.uid+"_"+e.seriesLayoutBy,c,f;r=r.slice(),b(r,function(p,g){var m=Y(p)?p:r[g]={name:p};m.type==="ordinal"&&c==null&&(c=g,f=d(m)),a[m.name]=[]});var h=l.get(u)||l.set(u,{categoryWayDim:f,valueWayDim:0});b(r,function(p,g){var m=p.name,y=d(p);if(c==null){var _=h.valueWayDim;v(a[m],_,y),v(o,_,y),h.valueWayDim+=y}else if(c===g)v(a[m],0,y),v(i,0,y);else{var _=h.categoryWayDim;v(a[m],_,y),v(o,_,y),h.categoryWayDim+=y}});function v(p,g,m){for(var y=0;yt)return r[a];return r[e-1]}function ly(r,t,e,a,n,i,o){i=i||r;var s=t(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(n))return u[n];var c=o==null||!a?e:sy(a,o);if(c=c||e,!(!c||!c.length)){var f=c[l];return n&&(u[n]=f),s.paletteIdx=(l+1)%c.length,f}}function uy(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var en,Zr,Tu,Zi="\0_ec_inner",Cu=1,cy={grid:"GridComponent",polar:"PolarComponent",geo:"GeoComponent",singleAxis:"SingleAxisComponent",parallel:"ParallelComponent",calendar:"CalendarComponent",graphic:"GraphicComponent",toolbox:"ToolboxComponent",tooltip:"TooltipComponent",axisPointer:"AxisPointerComponent",brush:"BrushComponent",title:"TitleComponent",timeline:"TimelineComponent",markPoint:"MarkPointComponent",markLine:"MarkLineComponent",markArea:"MarkAreaComponent",legend:"LegendComponent",dataZoom:"DataZoomComponent",visualMap:"VisualMapComponent",xAxis:"GridComponent",yAxis:"GridComponent",angleAxis:"PolarComponent",radiusAxis:"PolarComponent"},fy={line:"LineChart",bar:"BarChart",pie:"PieChart",scatter:"ScatterChart",radar:"RadarChart",map:"MapChart",tree:"TreeChart",treemap:"TreemapChart",graph:"GraphChart",gauge:"GaugeChart",funnel:"FunnelChart",parallel:"ParallelChart",sankey:"SankeyChart",boxplot:"BoxplotChart",candlestick:"CandlestickChart",effectScatter:"EffectScatterChart",lines:"LinesChart",heatmap:"HeatmapChart",pictorialBar:"PictorialBarChart",themeRiver:"ThemeRiverChart",sunburst:"SunburstChart",custom:"CustomChart"},$n={};function vy(r){b(r,function(t,e){if(!te.hasClass(e)){var a=cy[e];a&&!$n[a]&&(ke("Component "+e+` is used but not imported. import { `+a+` } from 'echarts/components'; echarts.use([`+a+"]);"),$n[a]=!0)}})}var nh=function(r){F(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e,a,n,i,o,s){i=i||{},this.option=null,this._theme=new me(i),this._locale=new me(o),this._optionManager=s},t.prototype.setOption=function(e,a,n){q(e!=null,"option is null/undefined"),q(e[Zi]!==Cu,"please use chart.getOption()");var i=Iu(a);this._optionManager.setOption(e,n,i),this._resetOption(null,i)},t.prototype.resetOption=function(e,a){return this._resetOption(e,Iu(a))},t.prototype._resetOption=function(e,a){var n=!1,i=this._optionManager;if(!e||e==="recreate"){var o=i.mountOption(e==="recreate");vy(o),!this.option||e==="recreate"?Tu(this,o):(this.restoreData(),this._mergeOption(o,a)),n=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var s=i.getTimelineOption(this);s&&(n=!0,this._mergeOption(s,a))}if(!e||e==="recreate"||e==="media"){var l=i.getMediaOption(this);l.length&&b(l,function(u){n=!0,this._mergeOption(u,a)},this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,a){var n=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=Z(),u=a&&a.replaceMergeMainTypeMap;ty(this),b(e,function(f,h){f!=null&&(te.hasClass(h)?h&&(s.push(h),l.set(h,!0)):n[h]=n[h]==null?ee(f):se(n[h],f,!0))}),u&&u.each(function(f,h){te.hasClass(h)&&!l.get(h)&&(s.push(h),l.set(h,!0))}),te.topologicalTravel(s,te.getAllClassMainTypes(),c,this);function c(f){var h=oy(this,f,xe(e[f])),v=i.get(f),d=v?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",p=Ig(v,h,d);Og(p,f,te),n[f]=null,i.set(f,null),o.set(f,0);var g=[],m=[],y=0,_,x;b(p,function(S,w){var A=S.existing,T=S.newOption;if(!T)A&&(A.mergeOption({},this),A.optionUpdated({},!1));else{var M=f==="series",C=te.getClass(f,S.keyInfo.subType,!M);if(!C){{var D=S.keyInfo.subType,I=fy[D];$n[D]||($n[D]=!0,ke(I?"Series "+D+` is used but not imported. import { `+I+` } from 'echarts/charts'; echarts.use([`+I+"]);":"Unknown series "+D))}return}if(f==="tooltip"){if(_){x||(Ce("Currently only one tooltip component is allowed."),x=!0);return}_=!0}if(A&&A.constructor===C)A.name=S.keyInfo.name,A.mergeOption(T,this),A.optionUpdated(T,!1);else{var L=V({componentIndex:w},S.keyInfo);A=new C(T,this,this,L),V(A,L),S.brandNew&&(A.__requireNewView=!0),A.init(T,this,this),A.optionUpdated(null,!0)}}A?(g.push(A.option),m.push(A),y++):(g.push(void 0),m.push(void 0))},this),n[f]=g,i.set(f,m),o.set(f,y),f==="series"&&en(this)}this._seriesIndices||en(this)},t.prototype.getOption=function(){var e=ee(this.option);return b(e,function(a,n){if(te.hasClass(n)){for(var i=xe(a),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!Rr(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,e[n]=i}}),delete e[Zi],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,a){var n=this._componentsMap.get(e);if(n){var i=n[a||0];if(i)return i;if(a==null){for(var o=0;o=t:e==="max"?r<=t:r===t}function by(r,t){return r.join(",")===t.join(",")}const Ay=_y;var Ze=b,Ia=Y,Lu=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Ki(r){var t=r&&r.itemStyle;if(t)for(var e=0,a=Lu.length;e=0;g--){var m=r[g];if(s||(d=m.data.rawIndexOf(m.stackedByDimension,v)),d>=0){var y=m.data.getByRawIndex(m.stackResultDimension,d);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&h>=0&&y>0||l==="samesign"&&h<=0&&y<0){h=_g(h,y),p=y;break}}}return a[0]=h,a[1]=p,a})})}var Ti=function(){function r(t){this.data=t.data||(t.sourceFormat===wt?{}:[]),this.sourceFormat=t.sourceFormat||eh,this.seriesLayoutBy=t.seriesLayoutBy||Mt,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var a=0;ap&&(p=_)}v[0]=d,v[1]=p}},n=function(){return this._data?this._data.length/this._dimSize:0};Bu=(t={},t[We+"_"+Mt]={pure:!0,appendData:i},t[We+"_"+Hr]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[dt]={pure:!0,appendData:i},t[wt]={pure:!0,appendData:function(o){var s=this._data;b(o,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},t[st]={appendData:i},t[Dt]={persistent:!1,pure:!0,appendData:function(o){q(He(o),"Added data must be TypedArray if data in initialization is TypedArray"),this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function i(o){for(var s=0;s=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},r.prototype.getRawValue=function(t,e){return Br(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,a){},r}();function zu(r){var t,e;return Y(r)?r.type?e=r:console.warn("The return type of `formatTooltip` is not supported: "+Bn(r)):t=r,{text:t,frag:e}}function _a(r){return new Hy(r)}var Hy=function(){function r(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return r.prototype.perform=function(t){var e=this._upstream,a=t&&t.skip;if(this._dirty&&e){var n=this.context;n.data=n.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!a&&(i=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(i="reset");function c(y){return!(y>=1)&&(y=1),y}var f;(this._dirty||i==="reset")&&(this._dirty=!1,f=this._doReset(a)),this._modBy=l,this._modDataCount=u;var h=t&&t.step;if(e?(q(e._outputDueEnd!=null),this._dueEnd=e._outputDueEnd):(q(!this._progress||this._count),this._dueEnd=this._count?this._count(this.context):1/0),this._progress){var v=this._dueIndex,d=Math.min(h!=null?this._dueIndex+h:1/0,this._dueEnd);if(!a&&(f||v=this._outputDueEnd),this._outputDueEnd=m}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},r.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},r.prototype._doProgress=function(t,e,a,n,i){Hu.reset(e,a,n,i),this._callingProgress=t,this._callingProgress({start:e,end:a,count:a-e,next:Hu.next},this.context)},r.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var e,a;!t&&this._reset&&(e=this._reset(this.context),e&&e.progress&&(a=e.forceFirstProgress,e=e.progress),G(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var n=this._downstream;return n&&n.dirty(),a},r.prototype.unfinished=function(){return this._progress&&this._dueIndex1&&a>0?s:o}};return i;function o(){return t=r?null:ln?-this._resultLT:0},r}(),Uy=function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(t){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(t){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(t,e){},r.prototype.retrieveValueFromItem=function(t,e){},r.prototype.convertValue=function(t,e){return Dn(t,e)},r}();function Yy(r,t){var e=new Uy,a=r.data,n=e.sourceFormat=r.sourceFormat,i=r.startIndex,o="";r.seriesLayoutBy!==Mt&&(o='`seriesLayoutBy` of upstream dataset can only be "column" in data transform.',Fe(o));var s=[],l={},u=r.dimensionsDefine;if(u)b(u,function(p,g){var m=p.name,y={index:g,name:m,displayName:p.displayName};if(s.push(y),m!=null){var _="";Er(l,m)&&(_='dimension name "'+m+'" duplicated.',Fe(_)),l[m]=y}});else for(var c=0;c65535?Qy:e0}function Sr(){return[1/0,-1/0]}function t0(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function Uu(r,t,e,a,n){var i=mh[e||"float"];if(n){var o=r[t],s=o&&o.length;if(s!==a){for(var l=new i(a),u=0;ug[1]&&(g[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(t,e,a){for(var n=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=U(o,function(y){return y.property}),c=0;cm[1]&&(m[1]=g)}}!n.persistent&&n.clean&&n.clean(),this._rawCount=this._count=e,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(t,e){if(!(e>=0&&e=0&&e=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,a=e[t];if(a!=null&&at)i=o-1;else return o}return-1},r.prototype.indicesOfNearest=function(t,e,a){var n=this._chunks,i=n[t],o=[];if(!i)return o;a==null&&(a=1/0);for(var s=1/0,l=-1,u=0,c=0,f=this.count();c=0&&l<0)&&(s=d,l=v,u=0),v===l&&(o[u++]=c))}return o.length=u,o},r.prototype.getIndices=function(){var t,e=this._indices;if(e){var a=e.constructor,n=this._count;if(a===Array){t=new a(n);for(var i=0;i=f&&y<=h||isNaN(y))&&(l[u++]=p),p++}d=!0}else if(i===2){for(var g=v[n[0]],_=v[n[1]],x=t[n[1]][0],S=t[n[1]][1],m=0;m=f&&y<=h||isNaN(y))&&(w>=x&&w<=S||isNaN(w))&&(l[u++]=p),p++}d=!0}}if(!d)if(i===1)for(var m=0;m=f&&y<=h||isNaN(y))&&(l[u++]=A)}else for(var m=0;mt[C][1])&&(T=!1)}T&&(l[u++]=e.getRawIndex(m))}return um[1]&&(m[1]=g)}}}},r.prototype.lttbDownSample=function(t,e){var a=this.clone([t],!0),n=a._chunks,i=n[t],o=this.count(),s=0,l=Math.floor(1/e),u=this.getRawIndex(0),c,f,h,v=new(Kr(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));v[s++]=u;for(var d=1;dc&&(c=f,h=x)}D>0&&Dc-d&&(l=c-d,s.length=l);for(var p=0;pf[1]&&(f[1]=m),h[v++]=y}return i._count=v,i._indices=h,i._updateGetRawIdx(),i},r.prototype.each=function(t,e){if(this._count)for(var a=t.length,n=this._chunks,i=0,o=this.count();il&&(l=f)}return o=[s,l],this._extent[t]=o,o},r.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var a=[],n=this._chunks,i=0;i=0?this._indices[t]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function t(e,a,n,i){return Dn(e[i],this._dimensions[i])}Qi={arrayRows:t,objectRows:function(e,a,n,i){return Dn(e[a],this._dimensions[i])},keyedColumns:t,original:function(e,a,n,i){var o=e&&(e.value==null?e:e.value);return Dn(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(e,a,n,i){return e[i]}}}(),r}();const Qo=r0;var a0=function(){function r(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,e=this._getUpstreamSourceManagers(),a=!!e.length,n,i;if(jr(t)){var o=t,s=void 0,l=void 0,u=void 0;if(a){var c=e[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,i=[c._getVersionSign()]}else s=o.get("data",!0),l=He(s)?Dt:st,i=[];var f=this._getSourceMetaRawOption()||{},h=u&&u.metaRawOption||{},v=ae(f.seriesLayoutBy,h.seriesLayoutBy)||null,d=ae(f.sourceHeader,h.sourceHeader),p=ae(f.dimensions,h.dimensions),g=v!==h.seriesLayoutBy||!!d!=!!h.sourceHeader||p;n=g?[Jo(s,{seriesLayoutBy:v,sourceHeader:d,dimensions:p},l)]:[]}else{var m=t;if(a){var y=this._applyTransform(e);n=y.sourceList,i=y.upstreamSignList}else{var _=m.get("source",!0);n=[Jo(_,this._getSourceMetaRawOption(),null)],i=[]}}q(n&&i),this._setLocalSource(n,i)},r.prototype._applyTransform=function(t){var e=this._sourceHost,a=e.get("transform",!0),n=e.get("fromTransformResult",!0);if(q(n!=null||a!=null),n!=null){var i="";t.length!==1&&(i="When using `fromTransformResult`, there should be only one upstream dataset",Yu(i))}var o,s=[],l=[];return b(t,function(u){u.prepareSource();var c=u.getSource(n||0),f="";n!=null&&!c&&(f="Can not retrieve result by `fromTransformResult`: "+n,Yu(f)),s.push(c),l.push(u._getVersionSign())}),a?o=jy(a,s,{datasetIndex:e.componentIndex}):n!=null&&(o=[Ry(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e1||e>0&&!r.noHeader;return b(r.blocks,function(n){var i=Sh(n);i>=t&&(t=i+ +(a&&(!i||es(n)&&!n.noHeader)))}),t}return 0}function o0(r,t,e,a){var n=t.noHeader,i=l0(Sh(t)),o=[],s=t.blocks||[];q(!s||G(s)),s=s||[];var l=r.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Er(u,l)){var c=new Wy(u[l],null);s.sort(function(d,p){return c.evaluate(d.sortParam,p.sortParam)})}else l==="seriesDesc"&&s.reverse()}b(s,function(d,p){var g=t.valueFormatter,m=xh(d)(g?V(V({},r),{valueFormatter:g}):r,d,p>0?i.html:0,a);m!=null&&o.push(m)});var f=r.renderMode==="richText"?o.join(i.richText):ts(o.join(""),n?e:i.html);if(n)return f;var h=Ko(t.header,"ordinal",r.useUTC),v=_h(a,r.renderMode).nameStyle;return r.renderMode==="richText"?wh(r,h,v)+i.richText+f:ts('
'+Ve(h)+"
"+f,e)}function s0(r,t,e,a){var n=r.renderMode,i=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=r.useUTC,c=t.valueFormatter||r.valueFormatter||function(x){return x=G(x)?x:[x],U(x,function(S,w){return Ko(S,G(v)?v[w]:v,u)})};if(!(i&&o)){var f=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",n),h=i?"":Ko(l,"ordinal",u),v=t.valueType,d=o?[]:c(t.value,t.dataIndex),p=!s||!i,g=!s&&i,m=_h(a,n),y=m.nameStyle,_=m.valueStyle;return n==="richText"?(s?"":f)+(i?"":wh(r,h,y))+(o?"":f0(r,d,p,g,_)):ts((s?"":f)+(i?"":u0(h,!s,y))+(o?"":c0(d,p,g,_)),e)}}function $u(r,t,e,a,n,i){if(r){var o=xh(r),s={useUTC:n,renderMode:e,orderMode:a,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function l0(r){return{html:n0[r],richText:i0[r]}}function ts(r,t){var e='
',a="margin: "+t+"px 0 0";return'
'+r+e+"
"}function u0(r,t,e){var a=t?"margin-left:2px":"";return''+Ve(r)+""}function c0(r,t,e,a){var n=e?"10px":"20px",i=t?"float:right;margin-left:"+n:"";return r=G(r)?r:[r],''+U(r,function(o){return Ve(o)}).join("  ")+""}function wh(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function f0(r,t,e,a,n){var i=[n],o=a?10:20;return e&&i.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(G(t)?t.join(" "):t,i)}function v0(r,t){var e=r.getData().getItemVisual(t,"style"),a=e[r.visualDrawType];return dr(a)}function bh(r,t){var e=r.get("padding");return e??(t==="richText"?[8,10]:10)}var eo=function(){function r(){this.richTextStyles={},this._nextStyleNameId=uv()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,a){var n=a==="richText"?this._generateStyleName():null,i=Jv({color:e,type:t,renderMode:a,markerId:n});return H(i)?i:(q(n),this.richTextStyles[n]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(t,e){var a={};G(e)?b(e,function(i){return V(a,i)}):V(a,e);var n=this._generateStyleName();return this.richTextStyles[n]=a,"{"+n+"|"+t+"}"},r}();function h0(r){var t=r.series,e=r.dataIndex,a=r.multipleSeries,n=t.getData(),i=n.mapDimensionsAll("defaultedTooltip"),o=i.length,s=t.getRawValue(e),l=G(s),u=v0(t,e),c,f,h,v;if(o>1||l&&!o){var d=d0(s,t,e,i,u);c=d.inlineValues,f=d.inlineValueTypes,h=d.blocks,v=d.inlineValues[0]}else if(o){var p=n.getDimensionInfo(i[0]);v=c=Br(n,e,i[0]),f=p.type}else v=c=l?s[0]:s;var g=Gs(t),m=g&&t.name||"",y=n.getName(e),_=a?m:y;return Gr("section",{header:m,noHeader:a||!g,sortParam:v,blocks:[Gr("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Ba(_),value:c,valueType:f,dataIndex:e})].concat(h||[])})}function d0(r,t,e,a,n){var i=t.getData(),o=wa(r,function(f,h,v){var d=i.getDimensionInfo(v);return f=f||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];a.length?b(a,function(f){c(Br(i,e,f),f)}):b(r,c);function c(f,h){var v=i.getDimensionInfo(h);!v||v.otherDims.tooltip===!1||(o?u.push(Gr("nameValue",{markerType:"subItem",markerColor:n,name:v.displayName,value:f,valueType:v.type})):(s.push(f),l.push(v.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Bt=ie();function tn(r,t){return r.getName(t)||r.getId(t)}var Mn="__universalTransitionEnabled",Di=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return t.prototype.init=function(e,a,n){this.seriesIndex=this.componentIndex,this.dataTask=_a({count:g0,reset:m0}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n);var i=Bt(this).sourceManager=new a0(this);i.prepareSource();var o=this.getInitialData(e,n);Zu(o,this),this.dataTask.context.data=o,q(o,"getInitialData returned invalid data."),Bt(this).dataBeforeProcessed=o,Xu(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,a){var n=Ma(this),i=n?bi(e):{},o=this.subType;te.hasClass(o)&&(o+="Series"),se(e,a.getTheme().get(this.subType)),se(e,this.getDefaultOption()),Ho(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&Or(e,i,n)},t.prototype.mergeOption=function(e,a){e=se(this.option,e,!0),this.fillDataTextStyle(e.data);var n=Ma(this);n&&Or(this.option,e,n);var i=Bt(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(e,a);Zu(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Bt(this).dataBeforeProcessed=o,Xu(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!He(e))for(var a=["show"],n=0;nthis.getShallow("animationThreshold")&&(a=!1),!!a},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,a,n){var i=this.ecModel,o=ul.prototype.getColorFromPalette.call(this,e,a,n);return o||(o=i.getColorFromPalette(e,a,n)),o},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,a){this._innerSelect(this.getData(a),e)},t.prototype.unselect=function(e,a){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,o=this.getData(a);if(i==="series"||n==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&n.push(o)}return n},t.prototype.isSelected=function(e,a){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(a);return(n==="all"||n[tn(i,e)])&&!i.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[Mn])return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,a){var n,i,o=this.option,s=o.selectedMode,l=a.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){Y(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c0&&this._innerSelect(e,a)}},t.registerClass=function(e){return te.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"}(),t}(te);St(Di,zy);St(Di,ul);gv(Di,te);function Xu(r){var t=r.name;Gs(r)||(r.name=p0(r)||t)}function p0(r){var t=r.getRawData(),e=t.mapDimensionsAll("seriesName"),a=[];return b(e,function(n){var i=t.getDimensionInfo(n);i.displayName&&a.push(i.displayName)}),a.join(" ")}function g0(r){return r.model.getRawData().count()}function m0(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),y0}function y0(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Zu(r,t){b(Jf(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,oe(_0,t))})}function _0(r,t){var e=rs(r);return e&&e.setOutputEnd((t||this).count()),t}function rs(r){var t=(r.ecModel||{}).scheduler,e=t&&t.getPipeline(r.uid);if(e){var a=e.currentTask;if(a){var n=a.agentStubMap;n&&(a=n.get(r.uid))}return a}}const $e=Di;var dl=function(){function r(){this.group=new Se,this.uid=yi("viewComponent")}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,a,n){},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,a,n){},r.prototype.updateLayout=function(t,e,a,n){},r.prototype.updateVisual=function(t,e,a,n){},r.prototype.toggleBlurSeries=function(t,e,a){},r.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},r}();Fs(dl);ui(dl);const it=dl;function pl(){var r=ie();return function(t){var e=r(t),a=t.pipelineContext,n=!!e.large,i=!!e.progressiveRender,o=e.large=!!(a&&a.large),s=e.progressiveRender=!!(a&&a.progressiveRender);return(n!==o||i!==s)&&"reset"}}var Ah=ie(),x0=pl(),gl=function(){function r(){this.group=new Se,this.uid=yi("viewChart"),this.renderTask=_a({plan:S0,reset:w0}),this.renderTask.context={view:this}}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,a,n){throw new Error("render method must been implemented")},r.prototype.highlight=function(t,e,a,n){var i=t.getData(n&&n.dataType);if(!i){ke("Unknown dataType "+n.dataType);return}Ku(i,n,"emphasis")},r.prototype.downplay=function(t,e,a,n){var i=t.getData(n&&n.dataType);if(!i){ke("Unknown dataType "+n.dataType);return}Ku(i,n,"normal")},r.prototype.remove=function(t,e){this.group.removeAll()},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,a,n){this.render(t,e,a,n)},r.prototype.updateLayout=function(t,e,a,n){this.render(t,e,a,n)},r.prototype.updateVisual=function(t,e,a,n){this.render(t,e,a,n)},r.prototype.eachRendered=function(t){gi(this.group,t)},r.markUpdateMethod=function(t,e){Ah(t).updateMethod=e},r.protoInitialize=function(){var t=r.prototype;t.type="chart"}(),r}();function qu(r,t,e){r&&Nr(r)&&(t==="emphasis"?Vn:Fn)(r,e)}function Ku(r,t,e){var a=cr(r,t),n=t&&t.highlightKey!=null?pm(t.highlightKey):null;a!=null?b(xe(a),function(i){qu(r.getItemGraphicEl(i),e,n)}):r.eachItemGraphicEl(function(i){qu(i,e,n)})}Fs(gl,["dispose"]);ui(gl);function S0(r){return x0(r.model)}function w0(r){var t=r.model,e=r.ecModel,a=r.api,n=r.payload,i=t.pipelineContext.progressiveRender,o=r.view,s=n&&Ah(n).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,e,a,n),b0[l]}var b0={incrementalPrepareRender:{progress:function(r,t){t.view.incrementalRender(r,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(r,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};const Be=gl;var Xn="\0__throttleOriginMethod",ju="\0__throttleRate",Ju="\0__throttleType";function Mi(r,t,e){var a,n=0,i=0,o=null,s,l,u,c;t=t||0;function f(){i=new Date().getTime(),o=null,r.apply(l,u||[])}var h=function(){for(var v=[],d=0;d=0?f():o=setTimeout(f,-s),n=a};return h.clear=function(){o&&(clearTimeout(o),o=null)},h.debounceNextCall=function(v){c=v},h}function Th(r,t,e,a){var n=r[t];if(n){var i=n[Xn]||n,o=n[Ju],s=n[ju];if(s!==e||o!==a){if(e==null||!a)return r[t]=i;n=r[t]=Mi(i,e,a==="debounce"),n[Xn]=i,n[Ju]=a,n[ju]=e}return n}}function as(r,t){var e=r[t];e&&e[Xn]&&(e.clear&&e.clear(),r[t]=e[Xn])}var Qu=ie(),ec={itemStyle:Ta(zv,!0),lineStyle:Ta(Fv,!0)},A0={lineStyle:"stroke",itemStyle:"fill"};function Ch(r,t){var e=r.visualStyleMapper||ec[t];return e||(console.warn("Unknown style type '"+t+"'."),ec.itemStyle)}function Dh(r,t){var e=r.visualDrawType||A0[t];return e||(console.warn("Unknown style type '"+t+"'."),"fill")}var T0={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=r.getModel(a),i=Ch(r,a),o=i(n),s=n.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var l=Dh(r,a),u=o[l],c=$(u)?u:null,f=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||f){var h=r.getColorFromPalette(r.name,null,t.getSeriesCount());o[l]||(o[l]=h,e.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||$(o.fill)?h:o.fill,o.stroke=o.stroke==="auto"||$(o.stroke)?h:o.stroke}if(e.setVisual("style",o),e.setVisual("drawType",l),!t.isSeriesFiltered(r)&&c)return e.setVisual("colorFromPalette",!1),{dataEach:function(v,d){var p=r.getDataParams(d),g=V({},o);g[l]=c(p),v.setItemVisual(d,"style",g)}}}},Jr=new me,C0={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=Ch(r,a),i=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[a]){Jr.option=l[a];var u=n(Jr),c=o.ensureUniqueItemVisual(s,"style");V(c,u),Jr.option.decal&&(o.setItemVisual(s,"decal",Jr.option.decal),Jr.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},D0={performRawSeries:!0,overallReset:function(r){var t=Z();r.eachSeries(function(e){var a=e.getColorBy();if(!e.isColorBySeries()){var n=e.type+"-"+a,i=t.get(n);i||(i={},t.set(n,i)),Qu(e).scope=i}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var a=e.getRawData(),n={},i=e.getData(),o=Qu(e).scope,s=e.visualStyleAccessPath||"itemStyle",l=Dh(e,s);i.each(function(u){var c=i.getRawIndex(u);n[c]=u}),a.each(function(u){var c=n[u],f=i.getItemVisual(c,"colorFromPalette");if(f){var h=i.ensureUniqueItemVisual(c,"style"),v=a.getName(u)||u+"",d=a.count();h[l]=e.getColorFromPalette(v,o,d)}})}})}},rn=Math.PI;function M0(r,t){t=t||{},j(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var e=new Se,a=new De({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(a);var n=new ge({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),i=new De({style:{fill:"none"},textContent:n,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});e.add(i);var o;return t.showSpinner&&(o=new si({shape:{startAngle:-rn/2,endAngle:-rn/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:rn*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:rn*3/2}).delay(300).start("circularInOut"),e.add(o)),e.resize=function(){var s=n.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(r.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),c=r.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:c}),i.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),a.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},e.resize(),e}var I0=function(){function r(t,e,a,n){this._stageTaskMap=Z(),this.ecInstance=t,this.api=e,a=this._dataProcessorHandlers=a.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=a.concat(n)}return r.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(a){var n=a.overallTask;n&&n.dirty()})},r.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var a=this._pipelineMap.get(t.__pipeline.id),n=a.context,i=!e&&a.progressiveEnabled&&(!n||n.progressiveRender)&&t.__idxInPipeline>a.blockIndex,o=i?a.step:null,s=n&&n.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},r.prototype.updateStreamModes=function(t,e){var a=this._pipelineMap.get(t.uid),n=t.getData(),i=n.count(),o=a.progressiveEnabled&&e.incrementalPrepareRender&&i>=a.threshold,s=t.get("large")&&i>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?i:null;t.pipelineContext=a.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(t){var e=this,a=e._pipelineMap=Z();t.eachSeries(function(n){var i=n.getProgressive(),o=n.uid;a.set(o,{id:o,head:null,tail:null,threshold:n.getProgressiveThreshold(),progressiveEnabled:i&&!(n.preventIncremental&&n.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(n,n.dataTask)})},r.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),a=this.api;b(this._allHandlers,function(n){var i=t.get(n.uid)||t.set(n.uid,{}),o="";o='"reset" and "overallReset" must not be both specified.',q(!(n.reset&&n.overallReset),o),n.reset&&this._createSeriesStageTask(n,i,e,a),n.overallReset&&this._createOverallStageTask(n,i,e,a)},this)},r.prototype.prepareView=function(t,e,a,n){var i=t.renderTask,o=i.context;o.model=e,o.ecModel=a,o.api=n,i.__block=!t.incrementalPrepareRender,this._pipe(e,i)},r.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},r.prototype.performVisualTasks=function(t,e,a){this._performStageTasks(this._visualHandlers,t,e,a)},r.prototype._performStageTasks=function(t,e,a,n){n=n||{};var i=!1,o=this;b(t,function(l,u){if(!(n.visualType&&n.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),f=c.seriesTaskMap,h=c.overallTask;if(h){var v,d=h.agentStubMap;d.each(function(g){s(n,g)&&(g.dirty(),v=!0)}),v&&h.dirty(),o.updatePayload(h,a);var p=o.getPerformArgs(h,n.block);d.each(function(g){g.perform(p)}),h.perform(p)&&(i=!0)}else f&&f.each(function(g,m){s(n,g)&&g.dirty();var y=o.getPerformArgs(g,n.block);y.skip=!l.performRawSeries&&e.isSeriesFiltered(g.context.model),o.updatePayload(g,a),g.perform(y)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},r.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(a){e=a.dataTask.perform()||e}),this.unfinished=e||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},r.prototype.updatePayload=function(t,e){e!=="remain"&&(t.context.payload=e)},r.prototype._createSeriesStageTask=function(t,e,a,n){var i=this,o=e.seriesTaskMap,s=e.seriesTaskMap=Z(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?a.eachRawSeries(c):l?a.eachRawSeriesByType(l,c):u&&u(a,n).each(c);function c(f){var h=f.uid,v=s.set(h,o&&o.get(h)||_a({plan:R0,reset:N0,count:B0}));v.context={model:f,ecModel:a,api:n,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(f,v)}},r.prototype._createOverallStageTask=function(t,e,a,n){var i=this,o=e.overallTask=e.overallTask||_a({reset:L0});o.context={ecModel:a,api:n,overallReset:t.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=Z(),u=t.seriesType,c=t.getTargetSeries,f=!0,h=!1,v="";v='"createOnAllSeries" is not supported for "overallReset", because it will block all streams.',q(!t.createOnAllSeries,v),u?a.eachRawSeriesByType(u,d):c?c(a,n).each(d):(f=!1,b(a.getSeries(),d));function d(p){var g=p.uid,m=l.set(g,s&&s.get(g)||(h=!0,_a({reset:P0,onDirty:E0})));m.context={model:p,overallProgress:f},m.agent=o,m.__block=f,i._pipe(p,m)}h&&o.dirty()},r.prototype._pipe=function(t,e){var a=t.uid,n=this._pipelineMap.get(a);!n.head&&(n.head=e),n.tail&&n.tail.pipe(e),n.tail=e,e.__idxInPipeline=n.count++,e.__pipeline=n},r.wrapStageHandler=function(t,e){return $(t)&&(t={overallReset:t,seriesType:G0(t)}),t.uid=yi("stageHandler"),e&&(t.visualType=e),t},r}();function L0(r){r.overallReset(r.ecModel,r.api,r.payload)}function P0(r){return r.overallProgress&&k0}function k0(){this.agent.dirty(),this.getDownstream().dirty()}function E0(){this.agent&&this.agent.dirty()}function R0(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function N0(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=xe(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?U(t,function(e,a){return Mh(a)}):O0}var O0=Mh(0);function Mh(r){return function(t,e){var a=e.data,n=e.resetDefines[r];if(n&&n.dataEach)for(var i=t.start;i0&&v===u.length-h.length){var d=u.slice(0,v);d!=="data"&&(e.mainType=d,e[h.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(a[u]=l,c=!0),c||(n[u]=l)})}return{cptQuery:e,dataQuery:a,otherQuery:n}},r.prototype.filter=function(t,e){var a=this.eventInfo;if(!a)return!0;var n=a.targetEl,i=a.packedEvent,o=a.model,s=a.view;if(!o||!s)return!0;var l=e.cptQuery,u=e.dataQuery;return c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,i,"name")&&c(u,i,"dataIndex")&&c(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,n,i));function c(f,h,v,d){return f[v]==null||h[d||v]===f[v]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),ns=["symbol","symbolSize","symbolRotate","symbolOffset"],nc=ns.concat(["symbolKeepAspect"]),H0={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData();if(r.legendIcon&&e.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var a={},n={},i=!1,o=0;oo.maxTileWidth&&E("maxTileWidth"),P>o.maxTileHeight&&E("maxTileHeight")}return{width:Math.max(1,Math.min(D,o.maxTileWidth)),height:Math.max(1,Math.min(P,o.maxTileHeight))}}function C(){T&&(T.clearRect(0,0,S.width,S.height),o.backgroundColor&&(T.fillStyle=o.backgroundColor,T.fillRect(0,0,S.width,S.height)));for(var D=0,I=0;I0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,a,n){if(this[Ie]){ke("`setOption` should not be called during main process.");return}if(this._disposed){Ue(this.id);return}var i,o,s;if(Y(a)&&(n=a.lazyUpdate,i=a.silent,o=a.replaceMerge,s=a.transition,a=a.notMerge),this[Ie]=!0,!this._model||a){var l=new Ay(this._api),u=this._theme,c=this._model=new ih;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(e,{replaceMerge:o},ls);var f={seriesTransition:s,optionChanged:!0};if(n)this[Ge]={silent:i,updateParams:f},this[Ie]=!1,this.getZr().wakeUp();else{try{br(this),Gt.update.call(this,null,f)}catch(h){throw this[Ge]=null,this[Ie]=!1,h}this._ssr||this._zr.flush(),this[Ge]=null,this[Ie]=!1,Qr.call(this,i),ea.call(this,i)}},t.prototype.setTheme=function(){ht("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},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||le.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return _e("getRenderedCanvas","renderToCanvas"),this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var a=this._zr.painter;if(a.type!=="canvas")throw new Error("renderToCanvas can only be used in the canvas renderer.");return a.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var a=this._zr.painter;if(a.type!=="svg")throw new Error("renderToSVGString can only be used in the svg renderer.");return a.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(le.svgSupported){var e=this._zr,a=e.storage.getDisplayList();return b(a,function(n){n.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(this._disposed){Ue(this.id);return}e=e||{};var a=e.excludeComponents,n=this._model,i=[],o=this;b(a,function(l){n.eachComponent({mainType:l},function(u){var c=o._componentsMap[u.__viewId];c.group.ignore||(i.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return b(i,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(e){if(this._disposed){Ue(this.id);return}var a=e.type==="svg",n=this.group,i=Math.min,o=Math.max,s=1/0;if(Qn[n]){var l=s,u=s,c=-s,f=-s,h=[],v=e&&e.pixelRatio||this.getDevicePixelRatio();b(sr,function(_,x){if(_.group===n){var S=a?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(ee(e)),w=_.getDom().getBoundingClientRect();l=i(w.left,l),u=i(w.top,u),c=o(w.right,c),f=o(w.bottom,f),h.push({dom:S,left:w.left,top:w.top})}}),l*=v,u*=v,c*=v,f*=v;var d=c-l,p=f-u,g=Qf.createCanvas(),m=Yl(g,{renderer:a?"svg":"canvas"});if(m.resize({width:d,height:p}),a){var y="";return b(h,function(_){var x=_.left-l,S=_.top-u;y+=''+_.dom+""}),m.painter.getSvgRoot().innerHTML=y,e.connectedBackgroundColor&&m.painter.setBackgroundColor(e.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return e.connectedBackgroundColor&&m.add(new De({shape:{x:0,y:0,width:d,height:p},style:{fill:e.connectedBackgroundColor}})),b(h,function(_){var x=new gr({style:{x:_.left*v-l,y:_.top*v-u,image:_.dom}});m.add(x)}),m.refreshImmediately(),g.toDataURL("image/"+(e&&e.type||"png"))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,a){return io(this,"convertToPixel",e,a)},t.prototype.convertFromPixel=function(e,a){return io(this,"convertFromPixel",e,a)},t.prototype.containPixel=function(e,a){if(this._disposed){Ue(this.id);return}var n=this._model,i,o=zi(n,e);return b(o,function(s,l){l.indexOf("Models")>=0&&b(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)i=i||!!c.containPoint(a);else if(l==="seriesModels"){var f=this._chartsMap[u.__viewId];f&&f.containPoint?i=i||f.containPoint(a,u):Ce(l+": "+(f?"The found component do not support containPoint.":"No view mapping to the found component."))}else Ce(l+": containPoint is not supported")},this)},this),!!i},t.prototype.getVisual=function(e,a){var n=this._model,i=zi(n,e,{defaultMainType:"series"}),o=i.seriesModel;o||Ce("There is no specified series model");var s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?U0(s,l,a):Y0(s,a)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;b(b_,function(a){var n=function(i){var o=e.getModel(),s=i.target,l,u=a==="globalout";if(u?l={}:s&&fa(s,function(d){var p=K(d);if(p&&p.dataIndex!=null){var g=p.dataModel||o.getSeriesByIndex(p.seriesIndex);return l=g&&g.getDataParams(p.dataIndex,p.dataType,s)||{},!0}else if(p.eventData)return l=V({},p.eventData),!0},!0),l){var c=l.componentType,f=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",f=l.seriesIndex);var h=c&&f!=null&&o.getComponent(c,f),v=h&&e[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];!u&&!(h&&v)&&Ce("model or view can not be found by params"),l.event=i,l.type=a,e._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:h,view:v},e.trigger(a,l)}};n.zrEventfulCallAtLast=!0,e._zr.on(a,n,e)}),b(xa,function(a,n){e._messageCenter.on(n,function(i){this.trigger(n,i)},e)}),b(["selectchanged"],function(a){e._messageCenter.on(a,function(n){this.trigger(a,n)},e)}),X0(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){Ue(this.id);return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){Ue(this.id);return}this._disposed=!0;var e=this.getDom();e&&hv(this.getDom(),_l,"");var a=this,n=a._api,i=a._model;b(a._componentsViews,function(o){o.dispose(i,n)}),b(a._chartsViews,function(o){o.dispose(i,n)}),a._zr.dispose(),a._dom=a._model=a._chartsMap=a._componentsMap=a._chartsViews=a._componentsViews=a._scheduler=a._api=a._zr=a._throttledZrFlush=a._theme=a._coordSysMgr=a._messageCenter=null,delete sr[a.id]},t.prototype.resize=function(e){if(this[Ie]){ke("`resize` should not be called during main process.");return}if(this._disposed){Ue(this.id);return}this._zr.resize(e);var a=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!a){var n=a.resetOption("media"),i=e&&e.silent;this[Ge]&&(i==null&&(i=this[Ge].silent),n=!0,this[Ge]=null),this[Ie]=!0;try{n&&br(this),Gt.update.call(this,{type:"resize",animation:V({duration:0},e&&e.animation)})}catch(o){throw this[Ie]=!1,o}this[Ie]=!1,Qr.call(this,i),ea.call(this,i)}},t.prototype.showLoading=function(e,a){if(this._disposed){Ue(this.id);return}if(Y(e)&&(a=e,e=""),e=e||"default",this.hideLoading(),!us[e]){Ce("Loading effects "+e+" not exists.");return}var n=us[e](this._api,a),i=this._zr;this._loadingFX=n,i.add(n)},t.prototype.hideLoading=function(){if(this._disposed){Ue(this.id);return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var a=V({},e);return a.type=xa[e.type],a},t.prototype.dispatchAction=function(e,a){if(this._disposed){Ue(this.id);return}if(Y(a)||(a={silent:!!a}),!!jn[e.type]&&this._model){if(this[Ie]){this._pendingActions.push(e);return}var n=a.silent;so.call(this,e,n);var i=a.flush;i?this._zr.flush():i!==!1&&le.browser.weChat&&this._throttledZrFlush(),Qr.call(this,n),ea.call(this,n)}},t.prototype.updateLabelLayout=function(){ut.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){Ue(this.id);return}var a=e.seriesIndex,n=this.getModel(),i=n.getSeriesByIndex(a);q(e.data&&i),i.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){br=function(f){var h=f._scheduler;h.restorePipelines(f._model),h.prepareStageTasks(),no(f,!0),no(f,!1),h.plan()},no=function(f,h){for(var v=f._model,d=f._scheduler,p=h?f._componentsViews:f._chartsViews,g=h?f._componentsMap:f._chartsMap,m=f._zr,y=f._api,_=0;_h.get("hoverLayerThreshold")&&!le.node&&!le.worker&&h.eachSeries(function(g){if(!g.preventUsingHoverLayer){var m=f._chartsMap[g.__viewId];m.__alive&&m.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}function o(f,h){var v=f.get("blendMode")||null;h.eachRendered(function(d){d.isGroup||(d.style.blend=v)})}function s(f,h){if(!f.preventAutoZ){var v=f.get("z")||0,d=f.get("zlevel")||0;h.eachRendered(function(p){return l(p,v,d,-1/0),!0})}}function l(f,h,v,d){var p=f.getTextContent(),g=f.getTextGuideLine(),m=f.isGroup;if(m)for(var y=f.childrenRef(),_=0;_0?{duration:p,delay:v.get("delay"),easing:v.get("easing")}:null;h.eachRendered(function(m){if(m.states&&m.states.emphasis){if(Ir(m))return;if(m instanceof Ae&&gm(m),m.__dirty){var y=m.prevStates;y&&m.useStates(y)}if(d){m.stateTransition=g;var _=m.getTextContent(),x=m.getTextGuideLine();_&&(_.stateTransition=g),x&&(x.stateTransition=g)}m.__dirty&&n(m)}})}vc=function(f){return new(function(h){F(v,h);function v(){return h!==null&&h.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(d){for(;d;){var p=d.__ecComponentInfo;if(p!=null)return f._model.getComponent(p.mainType,p.index);d=d.parent}},v.prototype.enterEmphasis=function(d,p){Vn(d,p),qe(f)},v.prototype.leaveEmphasis=function(d,p){Fn(d,p),qe(f)},v.prototype.enterBlur=function(d){om(d),qe(f)},v.prototype.leaveBlur=function(d){wv(d),qe(f)},v.prototype.enterSelect=function(d){bv(d),qe(f)},v.prototype.leaveSelect=function(d){Av(d),qe(f)},v.prototype.getModel=function(){return f.getModel()},v.prototype.getViewOfComponentModel=function(d){return f.getViewOfComponentModel(d)},v.prototype.getViewOfSeriesModel=function(d){return f.getViewOfSeriesModel(d)},v}(oh))(f)},Xh=function(f){function h(v,d){for(var p=0;p=0)){dc.push(e);var i=Ph.wrapStageHandler(e,n);i.__prio=t,i.__raw=e,r.push(i)}}function Tl(r,t){us[r]=t}function k_(r){ht("setCanvasCreator is deprecated. Use setPlatformAPI({ createCanvas }) instead."),tv({createCanvas:r})}function ed(r,t,e){var a=Bh("registerMap");a&&a(r,t,e)}function E_(r){var t=Bh("getMap");return t&&t(r)}var td=Ky;qt(ml,T0);qt(Ii,C0);qt(Ii,D0);qt(ml,H0);qt(Ii,W0);qt(Fh,i_);wl(lh);bl(v_,ky);Tl("default",M0);Zt({type:or,event:or,update:or},It);Zt({type:bn,event:bn,update:bn},It);Zt({type:pa,event:pa,update:pa},It);Zt({type:An,event:An,update:An},It);Zt({type:ga,event:ga,update:ga},It);Sl("light",V0);Sl("dark",F0);var R_={};function ta(r){return r==null?0:r.length||1}function pc(r){return r}var N_=function(){function r(t,e,a,n,i,o){this._old=t,this._new=e,this._oldKeyGetter=a||pc,this._newKeyGetter=n||pc,this.context=i,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(t){return this._add=t,this},r.prototype.update=function(t){return this._update=t,this},r.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},r.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},r.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},r.prototype.remove=function(t){return this._remove=t,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var t=this._old,e=this._new,a={},n=new Array(t.length),i=new Array(e.length);this._initIndexMap(t,null,n,"_oldKeyGetter"),this._initIndexMap(e,a,i,"_newKeyGetter");for(var o=0;o1){var c=l.shift();l.length===1&&(a[s]=l[0]),this._update&&this._update(c,o)}else u===1?(a[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,a)},r.prototype._executeMultiple=function(){var t=this._old,e=this._new,a={},n={},i=[],o=[];this._initIndexMap(t,a,i,"_oldKeyGetter"),this._initIndexMap(e,n,o,"_newKeyGetter");for(var s=0;s1&&h===1)this._updateManyToOne&&this._updateManyToOne(c,u),n[l]=null;else if(f===1&&h>1)this._updateOneToMany&&this._updateOneToMany(c,u),n[l]=null;else if(f===1&&h===1)this._update&&this._update(c,u),n[l]=null;else if(f>1&&h>1)this._updateManyToMany&&this._updateManyToMany(c,u),n[l]=null;else if(f>1)for(var v=0;v1)for(var s=0;s30}var ra=Y,Vt=U,W_=typeof Int32Array>"u"?Array:Int32Array,U_="e\0\0",gc=-1,Y_=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],$_=["_approximateExtent"],mc,sn,aa,Ar,co,ln,fo,X_=function(){function r(t,e){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var a,n=!1;ad(t)?(a=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(n=!0,a=t),a=a||["x","y"];for(var i={},o=[],s={},l=!1,u={},c=0;c=0),n&&(h.storeDimIndex=c)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(l),this.hostModel=e,this._invertedIndicesMap=s,this._dimOmitted){var p=this._dimIdxToName=Z();b(o,function(g){p.set(i[g].storeDimIndex,g)})}}return r.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(e==null)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var a=this._dimIdxToName.get(e);if(a!=null)return a;var n=this._schema.getSourceDimension(e);if(n)return n.name},r.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(e!=null)return e;if(t==null)return-1;var a=this._getDimInfo(t);return a?a.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},r.prototype._recognizeDimIndex=function(t){if(ue(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},r.prototype._getStoreDimIndex=function(t){var e=this.getDimensionIndex(t);if(e==null)throw new Error("Unknown dimension "+t);return e},r.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},r.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(a){return e.hasOwnProperty(a)?e[a]:void 0}:function(a){return e[a]}},r.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},r.prototype.mapDimension=function(t,e){var a=this._dimSummary;if(e==null)return a.encodeFirstDimNotExtra[t];var n=a.encode[t];return n?n[e]:null},r.prototype.mapDimensionsAll=function(t){var e=this._dimSummary,a=e.encode[t];return(a||[]).slice()},r.prototype.getStore=function(){return this._store},r.prototype.initData=function(t,e,a){var n=this,i;if(t instanceof Qo&&(i=t),!i){var o=this.dimensions,s=cl(t)||ni(t)?new fh(t,o.length):t;i=new Qo;var l=Vt(o,function(u){return{type:n._dimInfos[u].type,property:u}});i.initData(s,l,a)}this._store=i,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=B_(this,this._schema),this.userOutput=this._dimSummary.userOutput},r.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},r.prototype.appendValues=function(t,e){var a=this._store.appendValues(t,e.length),n=a.start,i=a.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var s=n;s=e)){var a=this._store,n=a.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=n.getSource().sourceFormat,l=s===st;if(l&&!n.pure)for(var u=[],c=t;c0},r.prototype.ensureUniqueItemVisual=function(t,e){var a=this._itemVisuals,n=a[t];n||(n=a[t]={});var i=n[e];return i==null&&(i=this.getVisual(e),G(i)?i=i.slice():ra(i)&&(i=V({},i)),n[e]=i),i},r.prototype.setItemVisual=function(t,e,a){var n=this._itemVisuals[t]||{};this._itemVisuals[t]=n,ra(e)?V(n,e):n[e]=a},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){ra(t)?V(this._layout,t):this._layout[t]=e},r.prototype.getLayout=function(t){return this._layout[t]},r.prototype.getItemLayout=function(t){return this._itemLayouts[t]},r.prototype.setItemLayout=function(t,e,a){this._itemLayouts[t]=a?V(this._itemLayouts[t]||{},e):e},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(t,e){var a=this.hostModel&&this.hostModel.seriesIndex;Wo(a,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,e){b(this._graphicEls,function(a,n){a&&t&&t.call(e,a,n)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:Vt(this.dimensions,this._getDimInfo,this),this.hostModel)),co(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var a=this[t];$(a)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var n=a.apply(this,arguments);return e.apply(this,[n].concat(Wp(arguments)))})},r.internalField=function(){mc=function(t){var e=t._invertedIndicesMap;b(e,function(a,n){var i=t._dimInfos[n],o=i.ordinalMeta,s=t._store;if(o){a=e[n]=new W_(o.categories.length);for(var l=0;l1&&(l+="__ec__"+c),n[e]=l}}}(),r}();const Pi=X_;function Z_(r,t){return ki(r,t).dimensions}function ki(r,t){cl(r)||(r=fl(r)),t=t||{};var e=t.coordDimensions||[],a=t.dimensionsDefine||r.dimensionsDefine||[],n=Z(),i=[],o=K_(r,e,a,t.dimensionsCount),s=t.canOmitUnusedDimensions&&od(o),l=a===r.dimensionsDefine,u=l?id(r):nd(a),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(r,o));for(var f=Z(c),h=new gh(o),v=0;v0&&(a.name=n+(i-1)),i++,t.set(n,i)}}function K_(r,t,e,a){var n=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,a||0);return b(t,function(i){var o;Y(i)&&(o=i.dimsDef)&&(n=Math.max(n,o.length))}),n}function j_(r,t,e){if(e||t.hasKey(r)){for(var a=0;t.hasKey(r+a);)a++;r+=a}return t.set(r,!0),r}var J_=function(){function r(t){this.coordSysDims=[],this.axisMap=Z(),this.categoryAxisMap=Z(),this.coordSysName=t}return r}();function Q_(r){var t=r.get("coordinateSystem"),e=new J_(t),a=ex[t];if(a)return a(r,e,e.axisMap,e.categoryAxisMap),e}var ex={cartesian2d:function(r,t,e,a){var n=r.getReferringComponents("xAxis",Ye).models[0],i=r.getReferringComponents("yAxis",Ye).models[0];{if(!n)throw new Error('xAxis "'+$t(r.get("xAxisIndex"),r.get("xAxisId"),0)+'" not found');if(!i)throw new Error('yAxis "'+$t(r.get("xAxisIndex"),r.get("yAxisId"),0)+'" not found')}t.coordSysDims=["x","y"],e.set("x",n),e.set("y",i),Tr(n)&&(a.set("x",n),t.firstCategoryDimIndex=0),Tr(i)&&(a.set("y",i),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,a){var n=r.getReferringComponents("singleAxis",Ye).models[0];if(!n)throw new Error("singleAxis should be specified.");t.coordSysDims=["single"],e.set("single",n),Tr(n)&&(a.set("single",n),t.firstCategoryDimIndex=0)},polar:function(r,t,e,a){var n=r.getReferringComponents("polar",Ye).models[0],i=n.findAxisModel("radiusAxis"),o=n.findAxisModel("angleAxis");{if(!o)throw new Error("angleAxis option not found");if(!i)throw new Error("radiusAxis option not found")}t.coordSysDims=["radius","angle"],e.set("radius",i),e.set("angle",o),Tr(i)&&(a.set("radius",i),t.firstCategoryDimIndex=0),Tr(o)&&(a.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(r,t,e,a){t.coordSysDims=["lng","lat"]},parallel:function(r,t,e,a){var n=r.ecModel,i=n.getComponent("parallel",r.get("parallelIndex")),o=t.coordSysDims=i.dimensions.slice();b(i.parallelAxisIndex,function(s,l){var u=n.getComponent("parallelAxis",s),c=o[l];e.set(c,u),Tr(u)&&(a.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function Tr(r){return r.get("type")==="category"}function sd(r,t,e){e=e||{};var a=e.byIndex,n=e.stackedCoordDimension,i,o,s;tx(t)?i=t:(o=t.schema,i=o.dimensions,s=t.store);var l=!!(r&&r.get("stack")),u,c,f,h;if(b(i,function(y,_){H(y)&&(i[_]=y={name:y}),l&&!y.isExtraCoord&&(!a&&!u&&y.ordinalMeta&&(u=y),!c&&y.type!=="ordinal"&&y.type!=="time"&&(!n||n===y.coordDim)&&(c=y))}),c&&!a&&!u&&(a=!0),c){f="__\0ecstackresult_"+r.id,h="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var v=c.coordDim,d=c.type,p=0;b(i,function(y){y.coordDim===v&&p++});var g={name:f,coordDim:v,coordDimIndex:p,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},m={name:h,coordDim:h,coordDimIndex:p+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(h,d),m.storeDimIndex=s.ensureCalculationDimension(f,d)),o.appendCalculationDimension(g),o.appendCalculationDimension(m)):(i.push(g),i.push(m))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:a,stackedOverDimension:h,stackResultDimension:f}}function tx(r){return!ad(r.schema)}function Xt(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function ld(r,t){return Xt(r,t)?r.getCalculationInfo("stackResultDimension"):t}function rx(r,t){var e=r.get("coordinateSystem"),a=Ai.get(e),n;return t&&t.coordSysDims&&(n=U(t.coordSysDims,function(i){var o={name:i},s=t.axisMap.get(i);if(s){var l=s.get("type");o.type=G_(l)}return o})),n||(n=a&&(a.getDimensionsInfo?a.getDimensionsInfo():a.dimensions.slice())||["x","y"]),n}function ax(r,t,e){var a,n;return e&&b(r,function(i,o){var s=i.coordDim,l=e.categoryAxisMap.get(s);l&&(a==null&&(a=o),i.ordinalMeta=l.getOrdinalMeta(),t&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(n=!0)}),!n&&a!=null&&(r[a].otherDims.itemName=0),a}function Ei(r,t,e){e=e||{};var a=t.getSourceManager(),n,i=!1;r?(i=!0,n=fl(r)):(n=a.getSource(),i=n.sourceFormat===st);var o=Q_(t),s=rx(t,o),l=e.useEncodeDefaulter,u=$(l)?l:l?oe(ry,s,t):null,c={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},f=ki(n,c),h=ax(f.dimensions,e.createInvertedIndices,o),v=i?null:a.getSharedDataStore(f),d=sd(t,{schema:f,store:v}),p=new Pi(f,t);p.setCalculationInfo(d);var g=h!=null&&nx(n)?function(m,y,_,x){return x===h?_:this.defaultDimValueGetter(m,y,_,x)}:null;return p.hasItemOption=!1,p.initData(i?n:v,null,g),p}function nx(r){if(r.sourceFormat===st){var t=ix(r.data||[]);return!G(Fa(t))}}function ix(r){for(var t=0;te[1]&&(e[1]=t[1])},r.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(t,e){var a=this._extent;isNaN(t)||(a[0]=t),isNaN(e)||(a[1]=e)},r.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(t){this._isBlank=t},r}();ui(ud);const Et=ud;var ox=0,sx=function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++ox}return r.createByAxisModel=function(t){var e=t.option,a=e.data,n=a&&U(a,lx);return new r({categories:n,needCollect:!n,deduplication:e.dedplication!==!1})},r.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},r.prototype.parseAndCollect=function(t){var e,a=this._needCollect;if(!H(t)&&!a)return t;if(a&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var n=this._getOrCreateMap();return e=n.get(t),e==null&&(a?(e=this.categories.length,this.categories[e]=t,n.set(t,e)):e=NaN),e},r.prototype._getOrCreateMap=function(){return this._map||(this._map=Z(this.categories))},r}();function lx(r){return Y(r)&&r.value!=null?r.value:r+""}const fs=sx;function ux(r){var t=Math.pow(10,Va(Math.abs(r))),e=Math.abs(r/t);return e===0||e===1||e===2||e===3||e===5}function vs(r){return r.type==="interval"||r.type==="log"}function cx(r,t,e,a){var n={},i=r[1]-r[0],o=n.interval=Os(i/t,!0);e!=null&&oa&&(o=n.interval=a);var s=n.intervalPrecision=cd(o),l=n.niceTickExtent=[he(Math.ceil(r[0]/o)*o,s),he(Math.floor(r[1]/o)*o,s)];return fx(l,r),n}function vo(r){var t=Math.pow(10,Va(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,he(e*t)}function cd(r){return yt(r)+2}function yc(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function fx(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),yc(r,0,t),yc(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function Ri(r,t){return r>=t[0]&&r<=t[1]}function Ni(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function Oi(r,t){return r*(t[1]-t[0])+t[0]}var fd=function(r){F(t,r);function t(e){var a=r.call(this,e)||this;a.type="ordinal";var n=a.getSetting("ordinalMeta");return n||(n=new fs({})),G(n)&&(n=new fs({categories:U(n,function(i){return Y(i)?i.value:i})})),a._ordinalMeta=n,a._extent=a.getSetting("extent")||[0,n.categories.length-1],a}return t.prototype.parse=function(e){return e==null?NaN:H(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),Ri(e,this._extent)&&this._ordinalMeta.categories[e]!=null},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),Ni(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(Oi(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],a=this._extent,n=a[0];n<=a[1];)e.push({value:n}),n++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var a=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,a.length);o=0&&e=0&&e=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(Et);Et.registerClass(fd);const vd=fd;var rr=he,hd=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return Ri(e,this._extent)},t.prototype.normalize=function(e){return Ni(e,this._extent)},t.prototype.scale=function(e){return Oi(e,this._extent)},t.prototype.setExtent=function(e,a){var n=this._extent;isNaN(e)||(n[0]=parseFloat(e)),isNaN(a)||(n[1]=parseFloat(a))},t.prototype.unionExtent=function(e){var a=this._extent;e[0]a[1]&&(a[1]=e[1]),this.setExtent(a[0],a[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=cd(e)},t.prototype.getTicks=function(e){var a=this._interval,n=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=[];if(!a)return s;var l=1e4;n[0]l)return[];var c=s.length?s[s.length-1].value:i[1];return n[1]>c&&(e?s.push({value:rr(c+a,o)}):s.push({value:n[1]})),s},t.prototype.getMinorTicks=function(e){for(var a=this.getTicks(!0),n=[],i=this.getExtent(),o=1;oi[0]&&v0&&(i=i===null?s:Math.min(i,s))}e[a]=i}}return e}function gd(r){var t=dx(r),e=[];return b(r,function(a){var n=a.coordinateSystem,i=n.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var l=i.dim+"_"+i.index,u=t[l],c=Math.abs(o[1]-o[0]),f=i.scale.getExtent(),h=Math.abs(f[1]-f[0]);s=u?c/h*u:c}else{var v=a.getData();s=Math.abs(o[1]-o[0])/v.count()}var d=W(a.get("barWidth"),s),p=W(a.get("barMaxWidth"),s),g=W(a.get("barMinWidth")||(yd(a)?.5:1),s),m=a.get("barGap"),y=a.get("barCategoryGap");e.push({bandWidth:s,barWidth:d,barMaxWidth:p,barMinWidth:g,barGap:m,barCategoryGap:y,axisKey:Dl(i),stackId:Cl(a)})}),px(e)}function px(r){var t={};b(r,function(a,n){var i=a.axisKey,o=a.bandWidth,s=t[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[i]=s;var u=a.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=a.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var f=a.barMaxWidth;f&&(l[u].maxWidth=f);var h=a.barMinWidth;h&&(l[u].minWidth=h);var v=a.barGap;v!=null&&(s.gap=v);var d=a.barCategoryGap;d!=null&&(s.categoryGap=d)});var e={};return b(t,function(a,n){e[n]={};var i=a.stacks,o=a.bandWidth,s=a.categoryGap;if(s==null){var l=Xe(i).length;s=Math.max(35-l*4,15)+"%"}var u=W(s,o),c=W(a.gap,1),f=a.remainedWidth,h=a.autoWidthCount,v=(f-u)/(h+(h-1)*c);v=Math.max(v,0),b(i,function(m){var y=m.maxWidth,_=m.minWidth;if(m.width){var x=m.width;y&&(x=Math.min(x,y)),_&&(x=Math.max(x,_)),m.width=x,f-=x+c*x,h--}else{var x=v;y&&yx&&(x=_),x!==v&&(m.width=x,f-=x+c*x,h--)}}),v=(f-u)/(h+(h-1)*c),v=Math.max(v,0);var d=0,p;b(i,function(m,y){m.width||(m.width=v),p=m,d+=m.width*(1+c)}),p&&(d-=p.width*c);var g=-d/2;b(i,function(m,y){e[n][y]=e[n][y]||{bandWidth:o,offset:g,width:m.width},g+=m.width*(1+c)})}),e}function gx(r,t,e){if(r&&t){var a=r[Dl(t)];return a!=null&&e!=null?a[Cl(e)]:a}}function mx(r,t){var e=pd(r,t),a=gd(e);b(e,function(n){var i=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=Cl(n),u=a[Dl(s)][l],c=u.offset,f=u.width;i.setLayout({bandWidth:u.bandWidth,offset:c,size:f})})}function yx(r){return{seriesType:r,plan:pl(),reset:function(t){if(md(t)){var e=t.getData(),a=t.coordinateSystem,n=a.getBaseAxis(),i=a.getOtherAxis(n),o=e.getDimensionIndex(e.mapDimension(i.dim)),s=e.getDimensionIndex(e.mapDimension(n.dim)),l=t.get("showBackground",!0),u=e.mapDimension(i.dim),c=e.getCalculationInfo("stackResultDimension"),f=Xt(e,u)&&!!e.getCalculationInfo("stackedOnSeries"),h=i.isHorizontal(),v=_x(n,i),d=yd(t),p=t.get("barMinHeight")||0,g=c&&e.getDimensionIndex(c),m=e.getLayout("size"),y=e.getLayout("offset");return{progress:function(_,x){for(var S=_.count,w=d&&Tt(S*3),A=d&&l&&Tt(S*3),T=d&&Tt(S),M=a.master.getRect(),C=h?M.width:M.height,D,I=x.getStore(),L=0;(D=_.next())!=null;){var k=I.get(f?g:o,D),P=I.get(s,D),E=v,O=void 0;f&&(O=+k-I.get(o,D));var R=void 0,N=void 0,B=void 0,z=void 0;if(h){var X=a.dataToPoint([k,P]);if(f){var J=a.dataToPoint([O,P]);E=J[0]}R=E,N=X[1]+y,B=X[0]-E,z=m,Math.abs(B)0?e:1:e))}var xx=function(r,t,e,a){for(;e>>1;r[n][1]n&&(this._approxInterval=n);var s=un.length,l=Math.min(xx(un,this._approxInterval,0,s),s-1);this._interval=un[l][1],this._minLevelUnit=un[Math.max(l-1,0)][0]},t.prototype.parse=function(e){return ue(e)?e:+at(e)},t.prototype.contain=function(e){return Ri(this.parse(e),this._extent)},t.prototype.normalize=function(e){return Ni(this.parse(e),this._extent)},t.prototype.scale=function(e){return Oi(e,this._extent)},t.type="time",t}(Xa),un=[["second",tl],["minute",rl],["hour",ma],["quarter-day",ma*6],["half-day",ma*12],["day",Je*1.2],["half-week",Je*3.5],["week",Je*7],["month",Je*31],["quarter",Je*95],["half-year",xu/2],["year",xu]];function Sx(r,t,e,a){var n=at(t),i=at(e),o=function(d){return wu(n,d,a)===wu(i,d,a)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},c=function(){return u()&&o("hour")},f=function(){return c()&&o("minute")},h=function(){return f()&&o("second")},v=function(){return h()&&o("millisecond")};switch(r){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return f();case"second":return h();case"millisecond":return v()}}function wx(r,t){return r/=Je,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function bx(r){var t=30*Je;return r/=t,r>6?6:r>3?3:r>2?2:1}function Ax(r){return r/=ma,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function _c(r,t){return r/=t?rl:tl,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function Tx(r){return Os(r,!0)}function Cx(r,t,e){var a=new Date(r);switch(Pr(t)){case"year":case"month":a[$v(e)](0);case"day":a[Xv(e)](1);case"hour":a[Zv(e)](0);case"minute":a[qv(e)](0);case"second":a[Kv(e)](0),a[jv(e)](0)}return a.getTime()}function Dx(r,t,e,a){var n=1e4,i=Uv,o=0;function s(C,D,I,L,k,P,E){for(var O=new Date(D),R=D,N=O[L]();R1&&P===0&&I.unshift({value:I[0].value-R})}}for(var P=0;P=a[0]&&y<=a[1]&&f++)}var _=(a[1]-a[0])/t;if(f>_*1.5&&h>_/1.5||(u.push(g),f>_||r===i[v]))break}c=[]}}}o>=n&&Ce("Exceed safe limit.");for(var x=pe(U(u,function(C){return pe(C,function(D){return D.value>=a[0]&&D.value<=a[1]&&!D.notAdd})}),function(C){return C.length>0}),S=[],w=x.length-1,v=0;v0;)i*=10;var s=[he(Px(a[0]/i)*i),he(Lx(a[1]/i)*i)];this._interval=i,this._niceExtent=s}},t.prototype.calcNiceExtent=function(e){Sa.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return e=lt(e)/lt(this.base),Ri(e,this._extent)},t.prototype.normalize=function(e){return e=lt(e)/lt(this.base),Ni(e,this._extent)},t.prototype.scale=function(e){return e=Oi(e,this._extent),cn(this.base,e)},t.type="log",t}(Et),xd=Ml.prototype;xd.getMinorTicks=Sa.getMinorTicks;xd.getLabel=Sa.getLabel;function fn(r,t){return Ix(r,yt(t))}Et.registerClass(Ml);const kx=Ml;var Ex=function(){function r(t,e,a){this._prepareParams(t,e,a)}return r.prototype._prepareParams=function(t,e,a){a[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var h=this._determinedMin,v=this._determinedMax;return h!=null&&(s=h,u=!0),v!=null&&(l=v,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:f}},r.prototype.modifyDataMinMax=function(t,e){q(!this.frozen),this[Nx[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var a=Rx[t];q(!this.frozen&&this[a]==null),this[a]=e},r.prototype.freeze=function(){this.frozen=!0},r}(),Rx={min:"_determinedMin",max:"_determinedMax"},Nx={min:"_dataMin",max:"_dataMax"};function Ox(r,t,e){var a=r.rawExtentInfo;return a||(a=new Ex(r,t,e),r.rawExtentInfo=a,a)}function vn(r,t){return t==null?null:kn(t)?NaN:r.parse(t)}function Sd(r,t){var e=r.type,a=Ox(r,t,r.getExtent()).calculate();r.setBlank(a.isBlank);var n=a.min,i=a.max,o=t.ecModel;if(o&&e==="time"){var s=pd("bar",o),l=!1;if(b(s,function(f){l=l||f.getBaseAxis()===t.axis}),l){var u=gd(s),c=Bx(n,i,t,u);n=c.min,i=c.max}}return{extent:[n,i],fixMin:a.minFixed,fixMax:a.maxFixed}}function Bx(r,t,e,a){var n=e.axis.getExtent(),i=n[1]-n[0],o=gx(a,e.axis);if(o===void 0)return{min:r,max:t};var s=1/0;b(o,function(v){s=Math.min(v.offset,s)});var l=-1/0;b(o,function(v){l=Math.max(v.offset+v.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=t-r,f=1-(s+l)/i,h=c/f-c;return t+=h*(l/u),r-=h*(s/u),{min:r,max:t}}function Pa(r,t){var e=t,a=Sd(r,e),n=a.extent,i=e.get("splitNumber");r instanceof kx&&(r.base=e.get("logBase"));var o=r.type,s=e.get("interval"),l=o==="interval"||o==="time";r.setExtent(n[0],n[1]),r.calcNiceExtent({splitNumber:i,fixMin:a.fixMin,fixMax:a.fixMax,minInterval:l?e.get("minInterval"):null,maxInterval:l?e.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function Il(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new vd({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new Mx({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(Et.getClass(t)||Xa)}}function Gx(r){var t=r.scale.getExtent(),e=t[0],a=t[1];return!(e>0&&a>0||e<0&&a<0)}function Wr(r){var t=r.getLabelModel().get("formatter"),e=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?function(a){return function(n,i){return r.scale.getFormattedLabel(n,i,a)}}(t):H(t)?function(a){return function(n){var i=r.scale.getLabel(n),o=a.replace("{value}",i??"");return o}}(t):$(t)?function(a){return function(n,i){return e!=null&&(i=n.value-e),a(Ll(r,n),i,n.level!=null?{level:n.level}:null)}}(t):function(a){return r.scale.getLabel(a)}}function Ll(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function Vx(r){var t=r.model,e=r.scale;if(!(!t.get(["axisLabel","show"])||e.isBlank())){var a,n,i=e.getExtent();e instanceof vd?n=e.count():(a=e.getTicks(),n=a.length);var o=r.getLabelModel(),s=Wr(r),l,u=1;n>40&&(u=Math.ceil(n/40));for(var c=0;c=0||(Sc.push(r),$(r)&&(r={install:r}),r.install(Xx))}var Zx=[];function ho(r,t){for(var e=0;en&&(a=o,n=l)}if(a)return qx(a.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},t.prototype.getBoundingRect=function(e){var a=this._rect;if(a&&!e)return a;var n=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return b(o,function(s){s.type==="polygon"?wc(s.exterior,n,i,e):b(s.points,function(l){wc(l,n,i,e)})}),isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])||(n[0]=n[1]=i[0]=i[1]=0),a=new Pe(n[0],n[1],i[0]-n[0],i[1]-n[1]),e||(this._rect=a),a},t.prototype.contain=function(e){var a=this.getBoundingRect(),n=this.geometries;if(!a.contain(e[0],e[1]))return!1;e:for(var i=0,o=n.length;i>1^-(s&1),l=l>>1^-(l&1),s+=n,l+=i,n=s,i=l,a.push([s/e,l/e])}return a}function Tc(r,t){return r=jx(r),U(pe(r.features,function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0}),function(e){var a=e.properties,n=e.geometry,i=[];switch(n.type){case"Polygon":var o=n.coordinates;i.push(new bc(o[0],o.slice(1)));break;case"MultiPolygon":b(n.coordinates,function(l){l[0]&&i.push(new bc(l[0],l.slice(1)))});break;case"LineString":i.push(new Ac([n.coordinates]));break;case"MultiLineString":i.push(new Ac(n.coordinates))}var s=new Kx(a[t||"name"],i,a.cp);return s.properties=a,s})}const Jx=Object.freeze(Object.defineProperty({__proto__:null,MAX_SAFE_INTEGER:xg,asc:mg,getPercentWithPrecision:yg,getPixelPrecision:ov,getPrecision:yt,getPrecisionSafe:On,isNumeric:Bs,isRadianAroundZero:ba,linearMap:pt,nice:Os,numericToNumber:Aa,parseDate:at,quantile:wg,quantity:lv,quantityExponent:Va,reformIntervals:bg,remRadian:Ns,round:he},Symbol.toStringTag,{value:"Module"})),Qx=Object.freeze(Object.defineProperty({__proto__:null,format:Ya,parse:at},Symbol.toStringTag,{value:"Module"})),eS=Object.freeze(Object.defineProperty({__proto__:null,Arc:si,BezierCurve:oi,BoundingRect:Pe,Circle:Ra,CompoundPath:qf,Ellipse:Ds,Group:Se,Image:gr,IncrementalDisplayable:Kf,Line:ze,LinearGradient:Is,Polygon:Ms,Polyline:Na,RadialGradient:jf,Rect:De,Ring:ii,Sector:tt,Text:ge,clipPointsByRect:Rv,clipRectByRect:Nv,createIcon:pi,extendPath:Lv,extendShape:Iv,getShapeClass:Pv,getTransform:Ev,initProps:be,makeImage:Xs,makePath:hi,mergePath:gt,registerShape:ot,resizePath:Zs,updateProps:ce},Symbol.toStringTag,{value:"Module"})),tS=Object.freeze(Object.defineProperty({__proto__:null,addCommas:nl,capitalFirst:qm,encodeHTML:Ve,formatTime:Zm,formatTpl:ol,getTextRect:Xm,getTooltipMarker:Jv,normalizeCssArray:$a,toCamelCase:il,truncateText:Xp},Symbol.toStringTag,{value:"Module"})),rS=Object.freeze(Object.defineProperty({__proto__:null,bind:Q,clone:ee,curry:oe,defaults:j,each:b,extend:V,filter:pe,indexOf:ye,inherits:Zf,isArray:G,isFunction:$,isObject:Y,isString:H,map:U,merge:se,reduce:wa},Symbol.toStringTag,{value:"Module"}));var ka=ie();function Td(r,t){var e=U(t,function(a){return r.scale.parse(a)});return r.type==="time"&&e.length>0&&(e.sort(),e.unshift(e[0]),e.push(e[e.length-1])),e}function aS(r){var t=r.getLabelModel().get("customValues");if(t){var e=Wr(r);return{labels:Td(r,t).map(function(a){var n={value:a};return{formattedLabel:e(n),rawLabel:r.scale.getLabel(n),tickValue:a}})}}return r.type==="category"?iS(r):sS(r)}function nS(r,t){var e=r.getTickModel().get("customValues");return e?{ticks:Td(r,e)}:r.type==="category"?oS(r,t):{ticks:U(r.scale.getTicks(),function(a){return a.value})}}function iS(r){var t=r.getLabelModel(),e=Cd(r,t);return!t.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:e.labelCategoryInterval}:e}function Cd(r,t){var e=Dd(r,"labels"),a=Pl(t),n=Md(e,a);if(n)return n;var i,o;return $(a)?i=Pd(r,a):(o=a==="auto"?lS(r):a,i=Ld(r,o)),Id(e,a,{labels:i,labelCategoryInterval:o})}function oS(r,t){var e=Dd(r,"ticks"),a=Pl(t),n=Md(e,a);if(n)return n;var i,o;if((!t.get("show")||r.scale.isBlank())&&(i=[]),$(a))i=Pd(r,a,!0);else if(a==="auto"){var s=Cd(r,r.getLabelModel());o=s.labelCategoryInterval,i=U(s.labels,function(l){return l.tickValue})}else o=a,i=Ld(r,o,!0);return Id(e,a,{ticks:i,tickCategoryInterval:o})}function sS(r){var t=r.scale.getTicks(),e=Wr(r);return{labels:U(t,function(a,n){return{level:a.level,formattedLabel:e(a,n),rawLabel:r.scale.getLabel(a),tickValue:a.value}})}}function Dd(r,t){return ka(r)[t]||(ka(r)[t]=[])}function Md(r,t){for(var e=0;e40&&(s=Math.max(1,Math.floor(o/40)));for(var l=i[0],u=r.dataToCoord(l+1)-r.dataToCoord(l),c=Math.abs(u*Math.cos(a)),f=Math.abs(u*Math.sin(a)),h=0,v=0;l<=i[1];l+=s){var d=0,p=0,g=Ls(e({value:l}),t.font,"center","top");d=g.width*1.3,p=g.height*1.3,h=Math.max(h,d,7),v=Math.max(v,p,7)}var m=h/c,y=v/f;isNaN(m)&&(m=1/0),isNaN(y)&&(y=1/0);var _=Math.max(0,Math.floor(Math.min(m,y))),x=ka(r.model),S=r.getExtent(),w=x.lastAutoInterval,A=x.lastTickCount;return w!=null&&A!=null&&Math.abs(w-_)<=1&&Math.abs(A-o)<=1&&w>_&&x.axisExtent0===S[0]&&x.axisExtent1===S[1]?_=w:(x.lastTickCount=o,x.lastAutoInterval=_,x.axisExtent0=S[0],x.axisExtent1=S[1]),_}function cS(r){var t=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function Ld(r,t,e){var a=Wr(r),n=r.scale,i=n.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=i[0],c=n.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var f=wd(r),h=o.get("showMinLabel")||f,v=o.get("showMaxLabel")||f;h&&u!==i[0]&&p(i[0]);for(var d=u;d<=i[1];d+=l)p(d);v&&d-l!==i[1]&&p(i[1]);function p(g){var m={value:g};s.push(e?g:{formattedLabel:a(m),rawLabel:n.getLabel(m),tickValue:g})}return s}function Pd(r,t,e){var a=r.scale,n=Wr(r),i=[];return b(a.getTicks(),function(o){var s=a.getLabel(o),l=o.value;t(o.value,s)&&i.push(e?l:{formattedLabel:n(o),rawLabel:s,tickValue:l})}),i}var Cc=[0,1],fS=function(){function r(t,e,a){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=a||[0,0]}return r.prototype.contain=function(t){var e=this._extent,a=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]);return t>=a&&t<=n},r.prototype.containData=function(t){return this.scale.contain(t)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(t){return ov(t||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(t,e){var a=this._extent;a[0]=t,a[1]=e},r.prototype.dataToCoord=function(t,e){var a=this._extent,n=this.scale;return t=n.normalize(t),this.onBand&&n.type==="ordinal"&&(a=a.slice(),Dc(a,n.count())),pt(t,Cc,a,e)},r.prototype.coordToData=function(t,e){var a=this._extent,n=this.scale;this.onBand&&n.type==="ordinal"&&(a=a.slice(),Dc(a,n.count()));var i=pt(t,a,Cc,e);return this.scale.scale(i)},r.prototype.pointToData=function(t,e){},r.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),a=nS(this,e),n=a.ticks,i=U(n,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=e.get("alignWithLabel");return vS(this,i,o,t.clamp),i},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var a=this.scale.getMinorTicks(e),n=U(a,function(i){return U(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return n},r.prototype.getViewLabels=function(){return aS(this).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),a=e[1]-e[0]+(this.onBand?1:0);a===0&&(a=1);var n=Math.abs(t[1]-t[0]);return Math.abs(n)/a},r.prototype.calculateCategoryInterval=function(){return uS(this)},r}();function Dc(r,t){var e=r[1]-r[0],a=t,n=e/a/2;r[0]+=n,r[1]-=n}function vS(r,t,e,a){var n=t.length;if(!r.onBand||e||!n)return;var i=r.getExtent(),o,s;if(n===1)t[0].coord=i[0],o=t[1]={coord:i[1]};else{var l=t[n-1].tickValue-t[0].tickValue,u=(t[n-1].coord-t[0].coord)/l;b(t,function(v){v.coord-=u/2});var c=r.scale.getExtent();s=1+c[1]-t[n-1].tickValue,o={coord:t[n-1].coord+u*s},t.push(o)}var f=i[0]>i[1];h(t[0].coord,i[0])&&(a?t[0].coord=i[0]:t.shift()),a&&h(i[0],t[0].coord)&&t.unshift({coord:i[0]}),h(i[1],o.coord)&&(a?o.coord=i[1]:t.pop()),a&&h(o.coord,i[1])&&t.push({coord:i[1]});function h(v,d){return v=he(v),d=he(d),f?v>d:vn&&(n+=na);var v=Math.atan2(s,o);if(v<0&&(v+=na),v>=a&&v<=n||v+na>=a&&v+na<=n)return l[0]=c,l[1]=f,u-e;var d=e*Math.cos(a)+r,p=e*Math.sin(a)+t,g=e*Math.cos(n)+r,m=e*Math.sin(n)+t,y=(d-o)*(d-o)+(p-s)*(p-s),_=(g-o)*(g-o)+(m-s)*(m-s);return y<_?(l[0]=d,l[1]=p,Math.sqrt(y)):(l[0]=g,l[1]=m,Math.sqrt(_))}function ei(r,t,e,a,n,i,o,s){var l=n-r,u=i-t,c=e-r,f=a-t,h=Math.sqrt(c*c+f*f);c/=h,f/=h;var v=l*c+u*f,d=v/h;s&&(d=Math.min(Math.max(d,0),1)),d*=h;var p=o[0]=r+d*c,g=o[1]=t+d*f;return Math.sqrt((p-n)*(p-n)+(g-i)*(g-i))}function kd(r,t,e,a,n,i,o){e<0&&(r=r+e,e=-e),a<0&&(t=t+a,a=-a);var s=r+e,l=t+a,u=o[0]=Math.min(Math.max(n,r),s),c=o[1]=Math.min(Math.max(i,t),l);return Math.sqrt((u-n)*(u-n)+(c-i)*(c-i))}var ct=[];function xS(r,t,e){var a=kd(t.x,t.y,t.width,t.height,r.x,r.y,ct);return e.set(ct[0],ct[1]),a}function SS(r,t,e){for(var a=0,n=0,i=0,o=0,s,l,u=1/0,c=t.data,f=r.x,h=r.y,v=0;v0){t=t/180*Math.PI,ft.fromArray(r[0]),re.fromArray(r[1]),ve.fromArray(r[2]),we.sub(xt,ft,re),we.sub(mt,ve,re);var e=xt.len(),a=mt.len();if(!(e<.001||a<.001)){xt.scale(1/e),mt.scale(1/a);var n=xt.dot(mt),i=Math.cos(t);if(i1&&we.copy(Oe,ve),Oe.toArray(r[1])}}}}function wS(r,t,e){if(e<=180&&e>0){e=e/180*Math.PI,ft.fromArray(r[0]),re.fromArray(r[1]),ve.fromArray(r[2]),we.sub(xt,re,ft),we.sub(mt,ve,re);var a=xt.len(),n=mt.len();if(!(a<.001||n<.001)){xt.scale(1/a),mt.scale(1/n);var i=xt.dot(t),o=Math.cos(e);if(i=l)we.copy(Oe,ve);else{Oe.scaleAndAdd(mt,s/Math.tan(Math.PI/2-c));var f=ve.x!==re.x?(Oe.x-re.x)/(ve.x-re.x):(Oe.y-re.y)/(ve.y-re.y);if(isNaN(f))return;f<0?we.copy(Oe,re):f>1&&we.copy(Oe,ve)}Oe.toArray(r[1])}}}}function go(r,t,e,a){var n=e==="normal",i=n?r:r.ensureState(e);i.ignore=t;var o=a.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=a.getModel("lineStyle").getLineStyle();n?r.useStyle(s):i.style=s}function bS(r,t){var e=t.smooth,a=t.points;if(a)if(r.moveTo(a[0][0],a[0][1]),e>0&&a.length>=3){var n=Xl(a[0],a[1]),i=Xl(a[1],a[2]);if(!n||!i){r.lineTo(a[1][0],a[1][1]),r.lineTo(a[2][0],a[2][1]);return}var o=Math.min(n,i)*e,s=Fi([],a[1],a[0],o/n),l=Fi([],a[1],a[2],o/i),u=Fi([],s,l,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),r.bezierCurveTo(l[0],l[1],l[0],l[1],a[2][0],a[2][1])}else for(var c=1;c0&&i&&S(-c/o,0,o);var p=r[0],g=r[o-1],m,y;_(),m<0&&w(-m,.8),y<0&&w(y,.8),_(),x(m,y,1),x(y,m,-1),_(),m<0&&A(-m),y<0&&A(y);function _(){m=p.rect[t]-a,y=n-g.rect[t]-g.rect[e]}function x(T,M,C){if(T<0){var D=Math.min(M,-T);if(D>0){S(D*C,0,o);var I=D+T;I<0&&w(-I*C,1)}else w(-T*C,1)}}function S(T,M,C){T!==0&&(u=!0);for(var D=M;D0)for(var I=0;I0;I--){var E=C[I-1]*P;S(-E,I,o)}}}function A(T){var M=T<0?-1:1;T=Math.abs(T);for(var C=Math.ceil(T/(o-1)),D=0;D0?S(C,0,D+1):S(-C,o-D-1,o),T-=C,T<=0)return}return u}function AS(r,t,e,a){return Bd(r,"x","width",t,e,a)}function Gd(r,t,e,a){return Bd(r,"y","height",t,e,a)}function Vd(r){var t=[];r.sort(function(p,g){return g.priority-p.priority});var e=new Pe(0,0,0,0);function a(p){if(!p.ignore){var g=p.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}p.ignore=!0}for(var n=0;n=0&&a.attr(i.oldLayoutSelect),ye(h,"emphasis")>=0&&a.attr(i.oldLayoutEmphasis)),ce(a,u,e,l)}else if(a.attr(u),!Fr(a).valueAnimation){var f=ae(a.style.opacity,1);a.style.opacity=0,be(a,{style:{opacity:f}},e,l)}if(i.oldLayout=u,a.states.select){var v=i.oldLayoutSelect={};hn(v,u,dn),hn(v,a.states.select,dn)}if(a.states.emphasis){var d=i.oldLayoutEmphasis={};hn(d,u,dn),hn(d,a.states.emphasis,dn)}Vv(a,l,c,e,e)}if(n&&!n.ignore&&!n.invisible){var i=DS(n),o=i.oldLayout,p={points:n.shape.points};o?(n.attr({shape:o}),ce(n,{shape:p},e)):(n.setShape(p),n.style.strokePercent=0,be(n,{style:{strokePercent:1}},e)),i.oldLayout=p}},r}();const IS=MS;var yo=ie();function cC(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,a){var n=yo(e).labelManager;n||(n=yo(e).labelManager=new IS),n.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(t,e,a){var n=yo(e).labelManager;a.updatedSeries.forEach(function(i){n.addLabelsOfSeries(e.getViewOfSeriesModel(i))}),n.updateLayoutConfig(e),n.layout(e),n.processLabelsOverall()})}const fC=Object.freeze(Object.defineProperty({__proto__:null,Axis:Kt,ChartView:Be,ComponentModel:te,ComponentView:it,List:Pi,Model:me,PRIORITY:zh,SeriesModel:$e,color:Kp,connect:D_,dataTool:R_,dependencies:u_,disConnect:M_,disconnect:qh,dispose:I_,env:le,extendChartView:gS,extendComponentModel:hS,extendComponentView:dS,extendSeriesModel:pS,format:tS,getCoordinateSystemDimensions:P_,getInstanceByDom:xl,getInstanceById:L_,getMap:E_,graphic:eS,helper:$x,init:C_,innerDrawElementOnCanvas:ev,matrix:jp,number:Jx,parseGeoJSON:Tc,parseGeoJson:Tc,registerAction:Zt,registerCoordinateSystem:Jh,registerLayout:Qh,registerLoading:Tl,registerLocale:el,registerMap:ed,registerPostInit:Kh,registerPostUpdate:jh,registerPreprocessor:wl,registerProcessor:bl,registerTheme:Sl,registerTransform:td,registerUpdateLifecycle:Li,registerVisual:qt,setCanvasCreator:k_,setPlatformAPI:tv,throttle:Mi,time:Qx,use:Pt,util:rS,vector:Jp,version:l_,zrUtil:Qp,zrender:eg},Symbol.toStringTag,{value:"Module"}));function Lc(r){return G(r[0])}function Pc(r,t){for(var e=[],a=r.length,n=0;n=0;n--)if(!e[n].many.length){var l=e[s].many;if(l.length<=1)if(s)s=0;else return e;var i=l.length,u=Math.ceil(i/2);e[n].many=l.slice(u,i),e[s].many=l.slice(0,u),s++}return e}var LS={clone:function(r){for(var t=[],e=1-Math.pow(1-r.path.style.opacity,1/r.count),a=0;a0))return;var s=a.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;Lc(r)&&(u=r,c=t),Lc(t)&&(u=t,c=r);function f(m,y,_,x,S){var w=m.many,A=m.one;if(w.length===1&&!S){var T=y?w[0]:A,M=y?A:w[0];if(tg(T))f({many:[T],one:M},!0,_,x,!0);else{var C=s?j({delay:s(_,x)},l):l;rg(T,M,C),i(T,M,T,M,C)}}else for(var D=j({dividePath:LS[e],individualDelay:s&&function(O,R,N,B){return s(O+_,x)}},l),I=y?ag(w,A,D):ng(A,w,D),L=I.fromIndividuals,k=I.toIndividuals,P=L.length,E=0;Et.length,v=u?Pc(c,u):Pc(h?t:r,[h?r:t]),d=0,p=0;pFd){Ce("Universal transition is disabled on large data > 10k.");return}for(var i=a.getIndices(),o=0;o0&&w.group.traverse(function(T){T instanceof Ae&&!T.animators.length&&T.animateFrom({style:{opacity:0}},A)})})}function Oc(r){var t=r.getModel("universalTransition").get("seriesKey");return t||r.id}function Bc(r){return G(r)?r.sort().join(","):r}function Ut(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function BS(r,t){var e=Z(),a=Z(),n=Z();b(r.oldSeries,function(o,s){var l=r.oldDataGroupIds[s],u=r.oldData[s],c=Oc(o),f=Bc(c);a.set(f,{dataGroupId:l,data:u}),G(c)&&b(c,function(h){n.set(h,{key:f,dataGroupId:l,data:u})})});function i(o){e.get(o)&&Ce("Duplicated seriesKey in universalTransition "+o)}return b(t.updatedSeries,function(o){if(o.isUniversalTransitionEnabled()&&o.isAnimationEnabled()){var s=o.get("dataGroupId"),l=o.getData(),u=Oc(o),c=Bc(u),f=a.get(c);if(f)i(c),e.set(c,{oldSeries:[{dataGroupId:f.dataGroupId,divide:Ut(f.data),data:f.data}],newSeries:[{dataGroupId:s,divide:Ut(l),data:l}]});else if(G(u)){i(c);var h=[];b(u,function(p){var g=a.get(p);g.data&&h.push({dataGroupId:g.dataGroupId,divide:Ut(g.data),data:g.data})}),h.length&&e.set(c,{oldSeries:h,newSeries:[{dataGroupId:s,data:l,divide:Ut(l)}]})}else{var v=n.get(u);if(v){var d=e.get(v.key);d||(d={oldSeries:[{dataGroupId:v.dataGroupId,data:v.data,divide:Ut(v.data)}],newSeries:[]},e.set(v.key,d)),d.newSeries.push({dataGroupId:s,data:l,divide:Ut(l)})}}}}),e}function Gc(r,t){for(var e=0;e=0&&n.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:Ut(t.oldData[s]),groupIdDim:o.dimension})}),b(xe(r.to),function(o){var s=Gc(e.updatedSeries,o);if(s>=0){var l=e.updatedSeries[s].getData();i.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:Ut(l),groupIdDim:o.dimension})}}),n.length>0&&i.length>0&&zd(n,i,a)}function vC(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,a){b(xe(a.seriesTransition),function(n){b(xe(n.to),function(i){for(var o=a.updatedSeries,s=0;s-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),a},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}($e);const FS=VS;function El(r,t){var e=r.mapDimensionsAll("defaultedLabel"),a=e.length;if(a===1){var n=Br(r,t,e[0]);return n!=null?n+"":null}else if(a){for(var i=[],o=0;o=0&&a.push(t[i])}return a.join(" ")}var zS=function(r){F(t,r);function t(e,a,n,i){var o=r.call(this)||this;return o.updateData(e,a,n,i),o}return t.prototype._createSymbol=function(e,a,n,i,o){this.removeAll();var s=Lt(e,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=HS,this._symbolType=e,this.add(s)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){Vn(this.childAt(0))},t.prototype.downplay=function(){Fn(this.childAt(0))},t.prototype.setZ=function(e,a){var n=this.childAt(0);n.zlevel=e,n.z=a},t.prototype.setDraggable=function(e,a){var n=this.childAt(0);n.draggable=e,n.cursor=!a&&e?"move":n.cursor},t.prototype.updateData=function(e,a,n,i){this.silent=!1;var o=e.getItemVisual(a,"symbol")||"circle",s=e.hostModel,l=t.getSymbolSize(e,a),u=o!==this._symbolType,c=i&&i.disableAnimation;if(u){var f=e.getItemVisual(a,"symbolKeepAspect");this._createSymbol(o,e,a,l,f)}else{var h=this.childAt(0);h.silent=!1;var v={scaleX:l[0]/2,scaleY:l[1]/2};c?h.attr(v):ce(h,v,s,a),$s(h)}if(this._updateCommon(e,a,l,n,i),u){var h=this.childAt(0);if(!c){var v={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,be(h,v,s,a)}}c&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,a,n,i,o){var s=this.childAt(0),l=e.hostModel,u,c,f,h,v,d,p,g,m;if(i&&(u=i.emphasisItemStyle,c=i.blurItemStyle,f=i.selectItemStyle,h=i.focus,v=i.blurScope,p=i.labelStatesModels,g=i.hoverScale,m=i.cursorStyle,d=i.emphasisDisabled),!i||e.hasItemOption){var y=i&&i.itemModel?i.itemModel:e.getItemModel(a),_=y.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),f=y.getModel(["select","itemStyle"]).getItemStyle(),c=y.getModel(["blur","itemStyle"]).getItemStyle(),h=_.get("focus"),v=_.get("blurScope"),d=_.get("disabled"),p=Ua(y),g=_.getShallow("scale"),m=y.getShallow("cursor")}var x=e.getItemVisual(a,"symbolRotate");s.attr("rotation",(x||0)*Math.PI/180||0);var S=Eh(e.getItemVisual(a,"symbolOffset"),n);S&&(s.x=S[0],s.y=S[1]),m&&s.attr("cursor",m);var w=e.getItemVisual(a,"style"),A=w.fill;if(s instanceof gr){var T=s.style;s.useStyle(V({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},w))}else s.__isEmptyBrush?s.useStyle(V({},w)):s.useStyle(w),s.style.decal=null,s.setColor(A,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var M=e.getItemVisual(a,"liftZ"),C=this._z2;M!=null?C==null&&(this._z2=s.z2,s.z2+=M):C!=null&&(s.z2=C,this._z2=null);var D=o&&o.useNameLabel;Wa(s,p,{labelFetcher:l,labelDataIndex:a,defaultText:I,inheritColor:A,defaultOpacity:w.opacity});function I(P){return D?e.getName(P):El(e,P)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var L=s.ensureState("emphasis");L.style=u,s.ensureState("select").style=f,s.ensureState("blur").style=c;var k=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;L.scaleX=this._sizeX*k,L.scaleY=this._sizeY*k,this.setSymbolScale(1),fr(this,h,v,d)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,a,n){var i=this.childAt(0),o=K(this).dataIndex,s=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var l=i.getTextContent();l&&hr(l,{style:{opacity:0}},a,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();hr(i,{style:{opacity:0},scaleX:0,scaleY:0},a,{dataIndex:o,cb:e,removeOpt:s})},t.getSymbolSize=function(e,a){return r_(e.getItemVisual(a,"symbolSize"))},t}(Se);function HS(r,t){this.parent.drift(r,t)}const Bi=zS;function wo(r,t,e,a){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(a.isIgnore&&a.isIgnore(e))&&!(a.clipShape&&!a.clipShape.contain(t[0],t[1]))&&r.getItemVisual(e,"symbol")!=="none"}function Vc(r){return r!=null&&!Y(r)&&(r={isIgnore:r}),r||{}}function Fc(r){var t=r.hostModel,e=t.getModel("emphasis");return{emphasisItemStyle:e.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:e.get("focus"),blurScope:e.get("blurScope"),emphasisDisabled:e.get("disabled"),hoverScale:e.get("scale"),labelStatesModels:Ua(t),cursorStyle:t.get("cursor")}}var WS=function(){function r(t){this.group=new Se,this._SymbolCtor=t||Bi}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=Vc(e);var a=this.group,n=t.hostModel,i=this._data,o=this._SymbolCtor,s=e.disableAnimation,l=Fc(t),u={disableAnimation:s},c=e.getSymbolPoint||function(f){return t.getItemLayout(f)};i||a.removeAll(),t.diff(i).add(function(f){var h=c(f);if(wo(t,h,f,e)){var v=new o(t,f,l,u);v.setPosition(h),t.setItemGraphicEl(f,v),a.add(v)}}).update(function(f,h){var v=i.getItemGraphicEl(h),d=c(f);if(!wo(t,d,f,e)){a.remove(v);return}var p=t.getItemVisual(f,"symbol")||"circle",g=v&&v.getSymbolType&&v.getSymbolType();if(!v||g&&g!==p)a.remove(v),v=new o(t,f,l,u),v.setPosition(d);else{v.updateData(t,f,l,u);var m={x:d[0],y:d[1]};s?v.attr(m):ce(v,m,n)}a.add(v),t.setItemGraphicEl(f,v)}).remove(function(f){var h=i.getItemGraphicEl(f);h&&h.fadeOut(function(){a.remove(h)},n)}).execute(),this._getSymbolPoint=c,this._data=t},r.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(a,n){var i=t._getSymbolPoint(n);a.setPosition(i),a.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Fc(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,a){this._progressiveEls=[],a=Vc(a);function n(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i0?e=a[0]:a[1]<0&&(e=a[1]),e}function Ud(r,t,e,a){var n=NaN;r.stacked&&(n=e.get(e.getCalculationInfo("stackedOverDimension"),a)),isNaN(n)&&(n=r.valueStart);var i=r.baseDataOffset,o=[];return o[i]=e.get(r.baseDim,a),o[1-i]=n,t.dataToPoint(o)}function $S(r,t){var e=[];return t.diff(r).add(function(a){e.push({cmd:"+",idx:a})}).update(function(a,n){e.push({cmd:"=",idx:n,idx1:a})}).remove(function(a){e.push({cmd:"-",idx:a})}).execute(),e}function XS(r,t,e,a,n,i,o,s){for(var l=$S(r,t),u=[],c=[],f=[],h=[],v=[],d=[],p=[],g=Wd(n,t,o),m=r.getLayout("points")||[],y=t.getLayout("points")||[],_=0;_=n||p<0)break;if(lr(m,y)){if(l){p+=i;continue}break}if(p===e)r[i>0?"moveTo":"lineTo"](m,y),f=m,h=y;else{var _=m-u,x=y-c;if(_*_+x*x<.5){p+=i;continue}if(o>0){for(var S=p+i,w=t[S*2],A=t[S*2+1];w===m&&A===y&&g=a||lr(w,A))v=m,d=y;else{C=w-u,D=A-c;var k=m-u,P=w-m,E=y-c,O=A-y,R=void 0,N=void 0;if(s==="x"){R=Math.abs(k),N=Math.abs(P);var B=C>0?1:-1;v=m-B*R*o,d=y,I=m+B*N*o,L=y}else if(s==="y"){R=Math.abs(E),N=Math.abs(O);var z=D>0?1:-1;v=m,d=y-z*R*o,I=m,L=y+z*N*o}else R=Math.sqrt(k*k+E*E),N=Math.sqrt(P*P+O*O),M=N/(N+R),v=m-C*o*(1-M),d=y-D*o*(1-M),I=m+C*o*M,L=y+D*o*M,I=Ft(I,zt(w,m)),L=Ft(L,zt(A,y)),I=zt(I,Ft(w,m)),L=zt(L,Ft(A,y)),C=I-m,D=L-y,v=m-C*R/N,d=y-D*R/N,v=Ft(v,zt(u,m)),d=Ft(d,zt(c,y)),v=zt(v,Ft(u,m)),d=zt(d,Ft(c,y)),C=m-v,D=y-d,I=m+C*N/R,L=y+D*N/R}r.bezierCurveTo(f,h,v,d,m,y),f=I,h=L}else r.lineTo(m,y)}u=m,c=y,p+=i}return g}var Yd=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),ZS=function(r){F(t,r);function t(e){var a=r.call(this,e)||this;return a.type="ec-polyline",a}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Yd},t.prototype.buildPath=function(e,a){var n=a.points,i=0,o=n.length/2;if(a.connectNulls){for(;o>0&&lr(n[o*2-2],n[o*2-1]);o--);for(;i=0){var x=u?(d-l)*_+l:(v-s)*_+s;return u?[e,x]:[x,e]}s=v,l=d;break;case o.C:v=i[f++],d=i[f++],p=i[f++],g=i[f++],m=i[f++],y=i[f++];var S=u?Zl(s,v,p,m,e,c):Zl(l,d,g,y,e,c);if(S>0)for(var w=0;w=0){var x=u?ql(l,d,g,y,A):ql(s,v,p,m,A);return u?[e,x]:[x,e]}}s=m,l=y;break}}},t}(Ae),qS=function(r){F(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(Yd),KS=function(r){F(t,r);function t(e){var a=r.call(this,e)||this;return a.type="ec-polygon",a}return t.prototype.getDefaultShape=function(){return new qS},t.prototype.buildPath=function(e,a){var n=a.points,i=a.stackedOnPoints,o=0,s=n.length/2,l=a.smoothMonotone;if(a.connectNulls){for(;s>0&&lr(n[s*2-2],n[s*2-1]);s--);for(;ot){i?e.push(o(i,l,t)):n&&e.push(o(n,l,0),o(n,l,t));break}else n&&(e.push(o(n,l,0)),n=null),e.push(l),i=l}return e}function ew(r,t,e){var a=r.getVisual("visualMeta");if(!(!a||!a.length||!r.count())){if(t.type!=="cartesian2d"){console.warn("Visual map on line style is only supported on cartesian2d.");return}for(var n,i,o=a.length-1;o>=0;o--){var s=r.getDimensionInfo(a[o].dimension);if(n=s&&s.coordDim,n==="x"||n==="y"){i=a[o];break}}if(!i){console.warn("Visual map on line style only support x or y dimension.");return}var l=t.getAxis(n),u=U(i.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),c=u.length,f=i.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),f.reverse());var h=QS(u,n==="x"?e.getWidth():e.getHeight()),v=h.length;if(!v&&c)return u[0].coord<0?f[1]?f[1]:u[c-1].color:f[0]?f[0]:u[0].color;var d=10,p=h[0].coord-d,g=h[v-1].coord+d,m=g-p;if(m<.001)return"transparent";b(h,function(_){_.offset=(_.coord-p)/m}),h.push({offset:v?h[v-1].offset:.5,color:f[1]||"transparent"}),h.unshift({offset:v?h[0].offset:.5,color:f[0]||"transparent"});var y=new Is(0,0,0,0,h,!0);return y[n]=p,y[n+"2"]=g,y}}function tw(r,t,e){var a=r.get("showAllSymbol"),n=a==="auto";if(!(a&&!n)){var i=e.getAxesByScale("ordinal")[0];if(i&&!(n&&rw(i,t))){var o=t.mapDimension(i.dim),s={};return b(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function rw(r,t){var e=r.getExtent(),a=Math.abs(e[1]-e[0])/r.scale.count();isNaN(a)&&(a=0);for(var n=t.count(),i=Math.max(1,Math.round(n/5)),o=0;oa)return!1;return!0}function aw(r,t){return isNaN(r)||isNaN(t)}function nw(r){for(var t=r.length/2;t>0&&aw(r[t*2-2],r[t*2-1]);t--);return t-1}function Yc(r,t){return[r[t*2],r[t*2+1]]}function iw(r,t,e){for(var a=r.length/2,n=e==="x"?0:1,i,o,s=0,l=-1,u=0;u=t||i>=t&&o<=t){l=u;break}s=u,i=o}return{range:[s,l],t:(t-i)/(o-i)}}function Zd(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var B=p.getState("emphasis").style;B.lineWidth=+p.style.lineWidth+1}K(p).seriesIndex=e.seriesIndex,fr(p,O,R,N);var z=Uc(e.get("smooth")),X=e.get("smoothMonotone");if(p.setShape({smooth:z,smoothMonotone:X,connectNulls:T}),g){var J=l.getCalculationInfo("stackedOnSeries"),ne=0;g.useStyle(j(c.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),J&&(ne=Uc(J.get("smooth"))),g.setShape({smooth:z,stackedOnSmooth:ne,smoothMonotone:X,connectNulls:T}),vr(g,e,"areaStyle"),K(g).seriesIndex=e.seriesIndex,fr(g,O,R,N)}var Te=function(fe){i._changePolyState(fe)};l.eachItemGraphicEl(function(fe){fe&&(fe.onHoverStateChange=Te)}),this._polyline.onHoverStateChange=Te,this._data=l,this._coordSys=o,this._stackedOnPoints=w,this._points=f,this._step=D,this._valueOrigin=x,e.get("triggerLineEvent")&&(this.packEventData(e,p),g&&this.packEventData(e,g))},t.prototype.packEventData=function(e,a){K(a).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,a,n,i){var o=e.getData(),s=cr(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var c=l[s*2],f=l[s*2+1];if(isNaN(c)||isNaN(f)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,f))return;var h=e.get("zlevel")||0,v=e.get("z")||0;u=new Bi(o,s),u.x=c,u.y=f,u.setZ(h,v);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=h,d.z=v,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Be.prototype.highlight.call(this,e,a,n,i)},t.prototype.downplay=function(e,a,n,i){var o=e.getData(),s=cr(o,i);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Be.prototype.downplay.call(this,e,a,n,i)},t.prototype._changePolyState=function(e){var a=this._polygon;Uo(this._polyline,e),a&&Uo(a,e)},t.prototype._newPolyline=function(e){var a=this._polyline;return a&&this._lineGroup.remove(a),a=new ZS({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(a),this._polyline=a,a},t.prototype._newPolygon=function(e,a){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new KS({shape:{points:e,stackedOnPoints:a},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,a,n){var i,o,s=a.getBaseAxis(),l=s.inverse;a.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):a.type==="polar"&&(i=s.dim==="angle",o=!0);var u=e.hostModel,c=u.get("animationDuration");$(c)&&(c=c(null));var f=u.get("animationDelay")||0,h=$(f)?f(null):f;e.eachItemGraphicEl(function(v,d){var p=v;if(p){var g=[v.x,v.y],m=void 0,y=void 0,_=void 0;if(n)if(o){var x=n,S=a.pointToCoord(g);i?(m=x.startAngle,y=x.endAngle,_=-S[1]/180*Math.PI):(m=x.r0,y=x.r,_=S[0])}else{var w=n;i?(m=w.x,y=w.x+w.width,_=v.x):(m=w.y+w.height,y=w.y,_=v.y)}var A=y===m?0:(_-m)/(y-m);l&&(A=1-A);var T=$(f)?f(d):c*A+h,M=p.getSymbolPath(),C=M.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),C&&C.animateFrom({style:{opacity:0}},{duration:300,delay:T}),M.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,a,n){var i=e.getModel("endLabel");if(Zd(e)){var o=e.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new ge({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=nw(l);c>=0&&(Wa(s,Ua(e,"endLabel"),{inheritColor:n,labelFetcher:e,labelDataIndex:c,defaultText:function(f,h,v){return v!=null?Hd(o,v):El(o,f)},enableTextSetter:!0},ow(i,a)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,a,n,i,o,s,l){var u=this._endLabel,c=this._polyline;if(u){e<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var f=n.getLayout("points"),h=n.hostModel,v=h.get("connectNulls"),d=s.get("precision"),p=s.get("distance")||0,g=l.getBaseAxis(),m=g.isHorizontal(),y=g.inverse,_=a.shape,x=y?m?_.x:_.y+_.height:m?_.x+_.width:_.y,S=(m?p:0)*(y?-1:1),w=(m?0:-p)*(y?-1:1),A=m?"x":"y",T=iw(f,x,A),M=T.range,C=M[1]-M[0],D=void 0;if(C>=1){if(C>1&&!v){var I=Yc(f,M[0]);u.attr({x:I[0]+S,y:I[1]+w}),o&&(D=h.getRawValue(M[0]))}else{var I=c.getPointOn(x,A);I&&u.attr({x:I[0]+S,y:I[1]+w});var L=h.getRawValue(M[0]),k=h.getRawValue(M[1]);o&&(D=dv(n,d,L,k,T.t))}i.lastFrameIndex=M[0]}else{var P=e===1||i.lastFrameIndex>0?M[0]:0,I=Yc(f,P);o&&(D=h.getRawValue(P)),u.attr({x:I[0]+S,y:I[1]+w})}if(o){var E=Fr(u);typeof E.setLabelText=="function"&&E.setLabelText(D)}}},t.prototype._doUpdateAnimation=function(e,a,n,i,o,s,l){var u=this._polyline,c=this._polygon,f=e.hostModel,h=XS(this._data,e,this._stackedOnPoints,a,this._coordSys,n,this._valueOrigin),v=h.current,d=h.stackedOnCurrent,p=h.next,g=h.stackedOnNext;if(o&&(v=Ht(h.current,n,o,l),d=Ht(h.stackedOnCurrent,n,o,l),p=Ht(h.next,n,o,l),g=Ht(h.stackedOnNext,n,o,l)),Wc(v,p)>3e3||c&&Wc(d,g)>3e3){u.stopAnimation(),u.setShape({points:p}),c&&(c.stopAnimation(),c.setShape({points:p,stackedOnPoints:g}));return}u.shape.__points=h.current,u.shape.points=v;var m={shape:{points:p}};h.current!==v&&(m.shape.__points=h.next),u.stopAnimation(),ce(u,m,f),c&&(c.setShape({points:v,stackedOnPoints:d}),c.stopAnimation(),ce(c,{shape:{stackedOnPoints:g}},f),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var y=[],_=h.status,x=0;x<_.length;x++){var S=_[x].cmd;if(S==="="){var w=e.getItemGraphicEl(_[x].idx1);w&&y.push({el:w,ptIdx:x})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var A=u.shape.__points,T=0;Tt&&(t=r[e]);return isFinite(t)?t:NaN},min:function(r){for(var t=1/0,e=0;et&&(t=i,e=n)}return isFinite(e)?e:NaN},nearest:function(r){return r[0]}},fw=function(r){return Math.round(r.length/2)};function qd(r){return{seriesType:r,reset:function(t,e,a){var n=t.getData(),i=t.get("sampling"),o=t.coordinateSystem,s=n.count();if(s>10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),f=a.getDevicePixelRatio(),h=Math.abs(c[1]-c[0])*(f||1),v=Math.round(s/h);if(isFinite(v)&&v>1){i==="lttb"&&t.setData(n.lttbDownSample(n.mapDimension(u.dim),1/v));var d=void 0;H(i)?d=cw[i]:$(i)&&(d=i),d&&t.setData(n.downSample(n.mapDimension(u.dim),1/v,d,fw))}}}}}function dC(r){r.registerChartView(lw),r.registerSeriesModel(FS),r.registerLayout(uw("line",!0)),r.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),a=t.getModel("lineStyle").getLineStyle();a&&!a.stroke&&(a.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",a)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,qd("line"))}var Kd=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,a){return Ei(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,a,n){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(e),s=i.dataToPoint(o);if(n)b(i.getAxes(),function(h,v){if(h.type==="category"&&a!=null){var d=h.getTicksCoords(),p=h.getTickModel().get("alignWithLabel"),g=o[v],m=a[v]==="x1"||a[v]==="y1";if(m&&!p&&(g+=1),d.length<2)return;if(d.length===2){s[v]=h.toGlobalCoord(h.getExtent()[m?1:0]);return}for(var y=void 0,_=void 0,x=1,S=0;Sg){_=(w+y)/2;break}S===1&&(x=A-d[0].tickValue)}_==null&&(y?y&&(_=d[d.length-1].coord):_=d[0].coord),s[v]=h.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),f=i.getBaseAxis().isHorizontal()?0:1;s[f]+=u+c/2}return s}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}($e);$e.registerClass(Kd);const $c=Kd;var vw=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(){return Ei(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),a=this.get("largeThreshold");return a>e&&(e=a),e},t.prototype.brushSelector=function(e,a,n){return n.rect(a.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=Hv($c.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}($c);const hw=vw;var dw=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),pw=function(r){F(t,r);function t(e){var a=r.call(this,e)||this;return a.type="sausage",a}return t.prototype.getDefaultShape=function(){return new dw},t.prototype.buildPath=function(e,a){var n=a.cx,i=a.cy,o=Math.max(a.r0||0,0),s=Math.max(a.r,0),l=(s-o)*.5,u=o+l,c=a.startAngle,f=a.endAngle,h=a.clockwise,v=Math.PI*2,d=h?f-cMath.PI/2&&cs)return!0;s=f}return!1},t.prototype._isOrderDifferentInView=function(e,a){for(var n=a.scale,i=n.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],n.getOrdinalMeta().categories.length-1);o<=s;++o)if(e.ordinalNumbers[o]!==n.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(e,a,n,i){if(this._isOrderChangedWithinSameData(e,a,n)){var o=this._dataSort(e,n,a);this._isOrderDifferentInView(o,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(e,a,n){var i=a.baseAxis,o=this._dataSort(e,i,function(s){return e.get(e.mapDimension(a.otherAxis.dim),s)});n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},t.prototype.remove=function(e,a){this._clear(this._model),this._removeOnRenderedListener(a)},t.prototype.dispose=function(e,a){this._removeOnRenderedListener(a)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var a=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(i){Hn(i,e,K(i).dataIndex)})):a.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(Be),Xc={cartesian2d:function(r,t){var e=t.width<0?-1:1,a=t.height<0?-1:1;e<0&&(t.x+=t.width,t.width=-t.width),a<0&&(t.y+=t.height,t.height=-t.height);var n=r.x+r.width,i=r.y+r.height,o=Ao(t.x,r.x),s=To(t.x+t.width,n),l=Ao(t.y,r.y),u=To(t.y+t.height,i),c=sn?s:o,t.y=f&&l>i?u:l,t.width=c?0:s-o,t.height=f?0:u-l,e<0&&(t.x+=t.width,t.width=-t.width),a<0&&(t.y+=t.height,t.height=-t.height),c||f},polar:function(r,t){var e=t.r0<=t.r?1:-1;if(e<0){var a=t.r;t.r=t.r0,t.r0=a}var n=To(t.r,r.r),i=Ao(t.r0,r.r0);t.r=n,t.r0=i;var o=n-i<0;if(e<0){var a=t.r;t.r=t.r0,t.r0=a}return o}},Zc={cartesian2d:function(r,t,e,a,n,i,o,s,l){var u=new De({shape:V({},a),z2:1});if(u.__dataIndex=e,u.name="item",i){var c=u.shape,f=n?"height":"width";c[f]=0}return u},polar:function(r,t,e,a,n,i,o,s,l){var u=!n&&l?ri:tt,c=new u({shape:a,z2:1});c.name="item";var f=jd(n);if(c.calculateTextPosition=gw(f,{isRoundCap:u===ri}),i){var h=c.shape,v=n?"r":"endAngle",d={};h[v]=n?a.r0:a.startAngle,d[v]=a[v],(s?ce:be)(c,{shape:d},i)}return c}};function xw(r,t){var e=r.get("realtimeSort",!0),a=t.getBaseAxis();if(e&&(a.type!=="category"&&Ce("`realtimeSort` will not work because this bar series is not based on a category axis."),t.type!=="cartesian2d"&&Ce("`realtimeSort` will not work because this bar series is not on cartesian2d.")),e&&a.type==="category"&&t.type==="cartesian2d")return{baseAxis:a,otherAxis:t.getOtherAxis(a)}}function qc(r,t,e,a,n,i,o,s){var l,u;i?(u={x:a.x,width:a.width},l={y:a.y,height:a.height}):(u={y:a.y,height:a.height},l={x:a.x,width:a.width}),s||(o?ce:be)(e,{shape:l},t,n,null);var c=t?r.baseAxis.model:null;(o?ce:be)(e,{shape:u},c,n)}function Kc(r,t){for(var e=0;e0?1:-1,o=a.height>0?1:-1;return{x:a.x+i*n/2,y:a.y+o*n/2,width:a.width-i*n,height:a.height-o*n}},polar:function(r,t,e){var a=r.getItemLayout(t);return{cx:a.cx,cy:a.cy,r0:a.r0,r:a.r,startAngle:a.startAngle,endAngle:a.endAngle,clockwise:a.clockwise}}};function bw(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function jd(r){return function(t){var e=t?"Arc":"Angle";return function(a){switch(a){case"start":case"insideStart":case"end":case"insideEnd":return a+e;default:return a}}}(r)}function Jc(r,t,e,a,n,i,o,s){var l=t.getItemVisual(e,"style");if(s){if(!i.get("roundCap")){var c=r.shape,f=va(a.getModel("itemStyle"),c,!0);V(c,f),r.setShape(c)}}else{var u=a.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var h=a.getShallow("cursor");h&&r.attr("cursor",h);var v=s?o?n.r>=n.r0?"endArc":"startArc":n.endAngle>=n.startAngle?"endAngle":"startAngle":o?n.height>=0?"bottom":"top":n.width>=0?"right":"left",d=Ua(a);Wa(r,d,{labelFetcher:i,labelDataIndex:e,defaultText:El(i.getData(),e),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:v});var p=r.getTextContent();if(s&&p){var g=a.get(["label","position"]);r.textConfig.inside=g==="middle"?!0:null,mw(r,g==="outside"?v:g,jd(o),a.get(["label","rotate"]))}Gv(p,d,i.getRawValue(e),function(y){return Hd(t,y)});var m=a.getModel(["emphasis"]);fr(r,m.get("focus"),m.get("blurScope"),m.get("disabled")),vr(r,a),bw(n)&&(r.style.fill="none",r.style.stroke="none",b(r.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function Aw(r,t){var e=r.get(["itemStyle","borderColor"]);if(!e||e==="none")return 0;var a=r.get(["itemStyle","borderWidth"])||0,n=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),i=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(a,n,i)}var Tw=function(){function r(){}return r}(),Qc=function(r){F(t,r);function t(e){var a=r.call(this,e)||this;return a.type="largeBar",a}return t.prototype.getDefaultShape=function(){return new Tw},t.prototype.buildPath=function(e,a){for(var n=a.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c=0?e:null},30,!1);function Cw(r,t,e){for(var a=r.baseDimIdx,n=1-a,i=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,c=0,f=i.length/3;c=s[0]&&t<=s[0]+l[0]&&e>=s[1]&&e<=s[1]+l[1])return o[c]}return-1}function Jd(r,t,e){if(Rl(e,"cartesian2d")){var a=t,n=e.getArea();return{x:r?a.x:n.x,y:r?n.y:a.y,width:r?a.width:n.width,height:r?n.height:a.height}}else{var n=e.getArea(),i=t;return{cx:n.cx,cy:n.cy,r0:r?n.r0:i.r0,r:r?n.r:i.r,startAngle:r?i.startAngle:0,endAngle:r?i.endAngle:Math.PI*2}}}function Dw(r,t,e){var a=r.type==="polar"?tt:De;return new a({shape:Jd(t,e,r),silent:!0,z2:0})}const Mw=_w;function pC(r){r.registerChartView(Mw),r.registerSeriesModel(hw),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,oe(mx,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,yx("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,qd("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var a=t.componentType||"series";e.eachComponent({mainType:a,query:t},function(n){t.sortInfo&&n.axis.setCategorySortInfo(t.sortInfo)})})}var rf=Math.PI*2,yn=Math.PI/180;function Qd(r,t){return pr(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function ep(r,t){var e=Qd(r,t),a=r.get("center"),n=r.get("radius");G(n)||(n=[0,n]);var i=W(e.width,t.getWidth()),o=W(e.height,t.getHeight()),s=Math.min(i,o),l=W(n[0],s/2),u=W(n[1],s/2),c,f,h=r.coordinateSystem;if(h){var v=h.dataToPoint(a);c=v[0]||0,f=v[1]||0}else G(a)||(a=[a,a]),c=W(a[0],i)+e.x,f=W(a[1],o)+e.y;return{cx:c,cy:f,r0:l,r:u}}function Iw(r,t,e){t.eachSeriesByType(r,function(a){var n=a.getData(),i=n.mapDimension("value"),o=Qd(a,e),s=ep(a,e),l=s.cx,u=s.cy,c=s.r,f=s.r0,h=-a.get("startAngle")*yn,v=a.get("endAngle"),d=a.get("padAngle")*yn;v=v==="auto"?h-rf:-v*yn;var p=a.get("minAngle")*yn,g=p+d,m=0;n.each(i,function(O){!isNaN(O)&&m++});var y=n.getSum(i),_=Math.PI/(y||m)*2,x=a.get("clockwise"),S=a.get("roseType"),w=a.get("stillShowZeroSum"),A=n.getDataExtent(i);A[0]=0;var T=x?1:-1,M=[h,v],C=T*d/2;av(M,!x),h=M[0],v=M[1];var D=tp(a);D.startAngle=h,D.endAngle=v,D.clockwise=x;var I=Math.abs(v-h),L=I,k=0,P=h;if(n.setLayout({viewRect:o,r:c}),n.each(i,function(O,R){var N;if(isNaN(O)){n.setItemLayout(R,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:x,cx:l,cy:u,r0:f,r:S?NaN:c});return}S!=="area"?N=y===0&&w?_:O*_:N=I/m,NN?(z=P+T*N/2,X=z):(z=P+C,X=B-C),n.setItemLayout(R,{angle:N,startAngle:z,endAngle:X,clockwise:x,cx:l,cy:u,r0:f,r:S?pt(O,A,[f,c]):c}),P=B}),Le?m:g,S=Math.abs(_.label.y-e);if(S>=x.maxY){var w=_.label.x-t-_.len2*n,A=a+_.len,T=Math.abs(w)r.unconstrainedWidth?null:v:null;a.setStyle("width",d)}var p=a.getBoundingRect();i.width=p.width;var g=(a.style.margin||0)+2.1;i.height=p.height+g,i.y-=(i.height-f)/2}}}function Co(r){return r.position==="center"}function Ew(r){var t=r.getData(),e=[],a,n,i=!1,o=(r.get("minShowLabelAngle")||0)*Pw,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,c=s.x,f=s.y,h=s.height;function v(w){w.ignore=!0}function d(w){if(!w.ignore)return!0;for(var A in w.states)if(w.states[A].ignore===!1)return!0;return!1}t.each(function(w){var A=t.getItemGraphicEl(w),T=A.shape,M=A.getTextContent(),C=A.getTextGuideLine(),D=t.getItemModel(w),I=D.getModel("label"),L=I.get("position")||D.get(["emphasis","label","position"]),k=I.get("distanceToLabelLine"),P=I.get("alignTo"),E=W(I.get("edgeDistance"),u),O=I.get("bleedMargin"),R=D.getModel("labelLine"),N=R.get("length");N=W(N,u);var B=R.get("length2");if(B=W(B,u),Math.abs(T.endAngle-T.startAngle)0?"right":"left":X>0?"left":"right"}var Ot=Math.PI,bt=0,$r=I.get("rotate");if(ue($r))bt=$r*(Ot/180);else if(L==="center")bt=0;else if($r==="radial"||$r===!0){var Lp=X<0?-z+Ot:-z;bt=Lp}else if($r==="tangential"&&L!=="outside"&&L!=="outer"){var yr=Math.atan2(X,J);yr<0&&(yr=Ot*2+yr);var Pp=J>0;Pp&&(yr=Ot+yr),bt=yr-Ot}if(i=!!bt,M.x=ne,M.y=Te,M.rotation=bt,M.setStyle({verticalAlign:"middle"}),Nt){M.setStyle({align:Rt});var Gi=M.states.select;Gi&&(Gi.x+=M.x,Gi.y+=M.y)}else{var Xr=M.getBoundingRect().clone();Xr.applyTransform(M.getComputedTransform());var Wl=(M.style.margin||0)+2.1;Xr.y-=Wl/2,Xr.height+=Wl,e.push({label:M,labelLine:C,position:L,len:N,len2:B,minTurnAngle:R.get("minTurnAngle"),maxSurfaceAngle:R.get("maxSurfaceAngle"),surfaceNormal:new we(X,J),linePoints:fe,textAlign:Rt,labelDistance:k,labelAlignTo:P,edgeDistance:E,bleedMargin:O,rect:Xr,unconstrainedWidth:Xr.width,labelStyleWidth:M.style.width})}A.setTextConfig({inside:Nt})}}),!i&&r.get("avoidLabelOverlap")&&kw(e,a,n,l,u,h,c,f);for(var p=0;p0){for(var c=o.getItemLayout(0),f=1;isNaN(c&&c.startAngle)&&f=i.r0}},t.type="pie",t}(Be);const Ow=Nw;function ap(r,t,e){t=G(t)&&{coordDimensions:t}||V({encodeDefine:r.getEncode()},t);var a=r.getSource(),n=ki(a,t).dimensions,i=new Pi(n,r);return i.initData(a,e),i}var Bw=function(){function r(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return r.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},r.prototype.containName=function(t){var e=this._getRawData();return e.indexOfName(t)>=0},r.prototype.indexOfName=function(t){var e=this._getDataWithEncodedVisual();return e.indexOfName(t)},r.prototype.getItemVisual=function(t,e){var a=this._getDataWithEncodedVisual();return a.getItemVisual(t,e)},r}();const Gw=Bw;var Vw=ie(),Fw=function(r){F(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Gw(Q(this.getData,this),Q(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return ap(this,{coordDimensions:["value"],encodeDefaulter:oe(ay,this)})},t.prototype.getDataParams=function(e){var a=this.getData(),n=Vw(a),i=n.seats;if(!i){var o=[];a.each(a.mapDimension("value"),function(l){o.push(l)}),i=n.seats=sv(o,a.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,e);return s.percent=i[e]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(e){Ho(e,"labelLine",["show"]);var a=e.labelLine,n=e.emphasis.labelLine;a.show=a.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}($e);const zw=Fw;function Hw(r){return{seriesType:r,reset:function(t,e){var a=t.getData();a.filterSelf(function(n){var i=a.mapDimension("value"),o=a.get(i,n);return!(ue(o)&&!isNaN(o)&&o<0)})}}}function gC(r){r.registerChartView(Ow),r.registerSeriesModel(zw),$0("pie",r.registerAction),r.registerLayout(oe(Iw,"pie")),r.registerProcessor(Lw("pie")),r.registerProcessor(Hw("pie"))}var Ww=function(r){F(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(te);const Uw=Ww;var ps=function(r){F(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Ye).models[0]},t.type="cartesian2dAxis",t}(te);St(ps,kl);var np={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},Yw=se({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},np),Nl=se({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},np),$w=se({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Nl),Xw=j({logBase:10},Nl);const Zw={category:Yw,value:Nl,time:$w,log:Xw};var qw={value:1,category:1,time:1,log:1};function ai(r,t,e,a){b(qw,function(n,i){var o=se(se({},Zw[i],!0),a,!0),s=function(l){F(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=t+"Axis."+i,c}return u.prototype.mergeDefaultAndTheme=function(c,f){var h=Ma(this),v=h?bi(c):{},d=f.getTheme();se(c,d.get(i+"Axis")),se(c,this.getDefaultOption()),c.type=nf(c),h&&Or(c,v,h)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=fs.createByAxisModel(this))},u.prototype.getCategories=function(c){var f=this.option;if(f.type==="category")return c?f.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=t+"Axis."+i,u.defaultOption=o,u}(e);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(t+"Axis",nf)}function nf(r){return r.type||(r.data?"category":"value")}var Kw=function(){function r(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return r.prototype.getAxis=function(t){return this._axes[t]},r.prototype.getAxes=function(){return U(this._dimList,function(t){return this._axes[t]},this)},r.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),pe(this.getAxes(),function(e){return e.scale.type===t})},r.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},r}();const jw=Kw;var gs=["x","y"];function of(r){return r.type==="interval"||r.type==="time"}var Jw=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=gs,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,a=this.getAxis("y").scale;if(!(!of(e)||!of(a))){var n=e.getExtent(),i=a.getExtent(),o=this.dataToPoint([n[0],i[0]]),s=this.dataToPoint([n[1],i[1]]),l=n[1]-n[0],u=i[1]-i[0];if(!(!l||!u)){var c=(s[0]-o[0])/l,f=(s[1]-o[1])/u,h=o[0]-n[0]*c,v=o[1]-i[0]*f,d=this._transform=[c,0,0,f,h,v];this._invTransform=Oa([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var a=this.getAxis("x"),n=this.getAxis("y");return a.contain(a.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,a){var n=this.dataToPoint(e),i=this.dataToPoint(a),o=this.getArea(),s=new Pe(n[0],n[1],i[0]-n[0],i[1]-n[1]);return o.intersect(s)},t.prototype.dataToPoint=function(e,a,n){n=n||[];var i=e[0],o=e[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return rt(n,e,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return n[0]=s.toGlobalCoord(s.dataToCoord(i,a)),n[1]=l.toGlobalCoord(l.dataToCoord(o,a)),n},t.prototype.clampData=function(e,a){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,o=n.getExtent(),s=i.getExtent(),l=n.parse(e[0]),u=i.parse(e[1]);return a=a||[],a[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),a[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),a},t.prototype.pointToData=function(e,a){var n=[];if(this._invTransform)return rt(n,e,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(e[0]),a),n[1]=o.coordToData(o.toLocalCoord(e[1]),a),n},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim==="x"?"y":"x")},t.prototype.getArea=function(e){e=e||0;var a=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(a[0],a[1])-e,o=Math.min(n[0],n[1])-e,s=Math.max(a[0],a[1])-i+e,l=Math.max(n[0],n[1])-o+e;return new Pe(i,o,s,l)},t}(jw),Qw=function(r){F(t,r);function t(e,a,n,i,o){var s=r.call(this,e,a,n)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.getGlobalExtent=function(e){var a=this.getExtent();return a[0]=this.toGlobalCoord(a[0]),a[1]=this.toGlobalCoord(a[1]),e&&a[0]>a[1]&&a.reverse(),a},t.prototype.pointToData=function(e,a){return this.coordToData(this.toLocalCoord(e[this.dim==="x"?0:1]),a)},t.prototype.setCategorySortInfo=function(e){if(this.type!=="category")return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(Kt);const eb=Qw;function ms(r,t,e){e=e||{};var a=r.coordinateSystem,n=t.axis,i={},o=n.getAxesOnZeroOf()[0],s=n.position,l=o?"onZero":s,u=n.dim,c=a.getRect(),f=[c.x,c.x+c.width,c.y,c.y+c.height],h={left:0,right:1,top:0,bottom:1,onZero:2},v=t.get("offset")||0,d=u==="x"?[f[2]-v,f[3]+v]:[f[0]-v,f[1]+v];if(o){var p=o.toGlobalCoord(o.dataToCoord(0));d[h.onZero]=Math.max(Math.min(p,d[1]),d[0])}i.position=[u==="y"?d[h[l]]:f[0],u==="x"?d[h[l]]:f[3]],i.rotation=Math.PI/2*(u==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=g[s],i.labelOffset=o?d[h[s]]-d[h.onZero]:0,t.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),$t(e.labelInside,t.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var m=t.get(["axisLabel","rotate"]);return i.labelRotate=l==="top"?-m:m,i.z2=1,i}function sf(r){return r.get("coordinateSystem")==="cartesian2d"}function lf(r){var t={xAxisModel:null,yAxisModel:null};return b(t,function(e,a){var n=a.replace(/Model$/,""),i=r.getReferringComponents(n,Ye).models[0];if(!i)throw new Error(n+' "'+Ps(r.get(n+"Index"),r.get(n+"Id"),0)+'" not found');t[a]=i}),t}var Do=Math.log;function tb(r,t,e){var a=Xa.prototype,n=a.getTicks.call(e),i=a.getTicks.call(e,!0),o=n.length-1,s=a.getInterval.call(e),l=Sd(r,t),u=l.extent,c=l.fixMin,f=l.fixMax;if(r.type==="log"){var h=Do(r.base);u=[Do(u[0])/h,Do(u[1])/h]}r.setExtent(u[0],u[1]),r.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:f});var v=a.getExtent.call(r);c&&(u[0]=v[0]),f&&(u[1]=v[1]);var d=a.getInterval.call(r),p=u[0],g=u[1];if(c&&f)d=(g-p)/o;else if(c)for(g=u[0]+d*o;gu[0]&&isFinite(p)&&isFinite(u[0]);)d=vo(d),p=u[1]-d*o;else{var m=r.getTicks().length-1;m>o&&(d=vo(d));var y=d*o;g=Math.ceil(u[1]/d)*d,p=he(g-y),p<0&&u[0]>=0?(p=0,g=he(y)):g>0&&u[1]<=0&&(g=0,p=-he(y))}var _=(n[0].value-i[0].value)/s,x=(n[o].value-i[o].value)/s;a.setExtent.call(r,p+d*_,g+d*x),a.setInterval.call(r,d),(_||x)&&a.setNiceExtent.call(r,p+d,g-d);{var S=a.getTicks.call(r);S[1]&&(!ux(d)||On(S[1].value)>On(d))&&Ce("The ticks may be not readable when set min: "+t.get("min")+", max: "+t.get("max")+" and alignTicks: true")}}var rb=function(){function r(t,e,a){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=gs,this._initCartesian(t,e,a),this.model=t}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(t,e){var a=this._axesMap;this._updateScale(t,this.model);function n(o){var s,l=Xe(o),u=l.length;if(u){for(var c=[],f=u-1;f>=0;f--){var h=+l[f],v=o[h],d=v.model,p=v.scale;vs(p)&&d.get("alignTicks")&&d.get("interval")==null?c.push(v):(Pa(p,d),vs(p)&&(s=v))}c.length&&(s||(s=c.pop(),Pa(s.scale,s.model)),b(c,function(g){tb(g.scale,g.model,s.scale)}))}}n(a.x),n(a.y);var i={};b(a.x,function(o){uf(a,"y",o,i)}),b(a.y,function(o){uf(a,"x",o,i)}),this.resize(this.model,e)},r.prototype.resize=function(t,e,a){var n=t.getBoxLayoutParams(),i=!a&&t.get("containLabel"),o=pr(n,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var s=this._axesList;l(),i&&(b(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=Vx(u);if(c){var f=u.isHorizontal()?"height":"width",h=u.model.get(["axisLabel","margin"]);o[f]-=c[f]+h,u.position==="top"?o.y+=c.height+h:u.position==="left"&&(o.x+=c.width+h)}}}),l()),b(this._coordsList,function(u){u.calcAffineTransform()});function l(){b(s,function(u){var c=u.isHorizontal(),f=c?[0,o.width]:[0,o.height],h=u.inverse?1:0;u.setExtent(f[h],f[1-h]),ab(u,c?o.x:o.y)})}},r.prototype.getAxis=function(t,e){var a=this._axesMap[t];if(a!=null)return a[e||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(t,e){if(t!=null&&e!=null){var a="x"+t+"y"+e;return this._coordsMap[a]}Y(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var n=0,i=this._coordsList;n0?"top":"bottom",i="center"):ba(n-Yt)?(o=a>0?"bottom":"top",i="center"):(o="middle",n>0&&n0?"right":"left":i=a>0?"left":"right"),{rotation:n,textAlign:i,textVerticalAlign:o}},r.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},r.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},r}(),ff={axisLine:function(r,t,e,a){var n=t.get(["axisLine","show"]);if(n==="auto"&&r.handleAutoShown&&(n=r.handleAutoShown("axisLine")),!!n){var i=t.axis.getExtent(),o=a.transform,s=[i[0],0],l=[i[1],0],u=s[0]>l[0];o&&(rt(s,s,o),rt(l,l,o));var c=V({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new ze({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});Ca(f.shape,f.style.lineWidth),f.anid="line",e.add(f);var h=t.get(["axisLine","symbol"]);if(h!=null){var v=t.get(["axisLine","symbolSize"]);H(h)&&(h=[h,h]),(H(v)||ue(v))&&(v=[v,v]);var d=Eh(t.get(["axisLine","symbolOffset"])||0,v),p=v[0],g=v[1];b([{rotate:r.rotation+Math.PI/2,offset:d[0],r:0},{rotate:r.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(m,y){if(h[y]!=="none"&&h[y]!=null){var _=Lt(h[y],-p/2,-g/2,p,g,c.stroke,!0),x=m.r+m.offset,S=u?l:s;_.attr({rotation:m.rotate,x:S[0]+x*Math.cos(r.rotation),y:S[1]-x*Math.sin(r.rotation),silent:!0,z2:11}),e.add(_)}})}}},axisTickLabel:function(r,t,e,a){var n=sb(e,a,t,r),i=ub(e,a,t,r);if(ob(t,i,n),lb(e,a,t,r.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=Od(U(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));Vd(o)}},axisName:function(r,t,e,a){var n=$t(r.axisName,t.get("name"));if(n){var i=t.get("nameLocation"),o=r.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),c=u[0]>u[1]?-1:1,f=[i==="start"?u[0]-c*l:i==="end"?u[1]+c*l:(u[0]+u[1])/2,hf(i)?r.labelOffset+o*l:0],h,v=t.get("nameRotate");v!=null&&(v=v*Yt/180);var d;hf(i)?h=ur.innerTextLayout(r.rotation,v??r.rotation,o):(h=ib(r.rotation,i,v||0,u),d=r.axisNameAvailableWidth,d!=null&&(d=Math.abs(d/Math.sin(h.rotation)),!isFinite(d)&&(d=null)));var p=s.getFont(),g=t.get("nameTruncate",!0)||{},m=g.ellipsis,y=$t(r.nameTruncateMaxWidth,g.maxWidth,d),_=new ge({x:f[0],y:f[1],rotation:h.rotation,silent:ur.isLabelSilent(t),style:Qe(s,{text:n,font:p,overflow:"truncate",width:y,ellipsis:m,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||h.textAlign,verticalAlign:s.get("verticalAlign")||h.textVerticalAlign}),z2:1});if(Ks({el:_,componentModel:t,itemName:n}),_.__fullText=n,_.anid="name",t.get("triggerEvent")){var x=ur.makeAxisEventDataBase(t);x.targetType="axisName",x.name=n,K(_).eventData=x}a.add(_),_.updateTransform(),e.add(_),_.decomposeTransform()}}};function ib(r,t,e,a){var n=Ns(e-r),i,o,s=a[0]>a[1],l=t==="start"&&!s||t!=="start"&&s;return ba(n-Yt/2)?(o=l?"bottom":"top",i="center"):ba(n-Yt*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",nYt/2?i=l?"left":"right":i=l?"right":"left"),{rotation:n,textAlign:i,textVerticalAlign:o}}function ob(r,t,e){if(!wd(r.axis)){var a=r.get(["axisLabel","showMinLabel"]),n=r.get(["axisLabel","showMaxLabel"]);t=t||[],e=e||[];var i=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=e[0],c=e[1],f=e[e.length-1],h=e[e.length-2];a===!1?(Ke(i),Ke(u)):vf(i,o)&&(a?(Ke(o),Ke(c)):(Ke(i),Ke(u))),n===!1?(Ke(s),Ke(f)):vf(l,s)&&(n?(Ke(l),Ke(h)):(Ke(s),Ke(f)))}}function Ke(r){r&&(r.ignore=!0)}function vf(r,t){var e=r&&r.getBoundingRect().clone(),a=t&&t.getBoundingRect().clone();if(!(!e||!a)){var n=Cs([]);return ks(n,n,-r.rotation),e.applyTransform(Rn([],n,r.getLocalTransform())),a.applyTransform(Rn([],n,t.getLocalTransform())),e.intersect(a)}}function hf(r){return r==="middle"||r==="center"}function ip(r,t,e,a,n){for(var i=[],o=[],s=[],l=0;l=0||r===t}function pb(r){var t=Ol(r);if(t){var e=t.axisPointerModel,a=t.axis.scale,n=e.option,i=e.get("status"),o=e.get("value");o!=null&&(o=a.parse(o));var s=ys(e);i==null&&(n.status=s?"show":"hide");var l=a.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o3?1.4:o>1?1.2:1.1,c=i>0?u:1/u;Po(this,"zoom","zoomOnMouseWheel",e,{scale:c,originX:s,originY:l,isAvailableBehavior:null})}if(n){var f=Math.abs(i),h=(i>0?1:-1)*(f>3?.4:f>1?.15:.05);Po(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:h,originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){if(!gf(this._zr,"globalPan")){var a=e.pinchScale>1?1.1:1/1.1;Po(this,"zoom",null,e,{scale:a,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t}(Ga);function Po(r,t,e,a,n){r.pointerChecker&&r.pointerChecker(a,n.originX,n.originY)&&(Es(a.event),lp(r,t,e,a,n))}function lp(r,t,e,a,n){n.isAvailableBehavior=Q(Ln,null,e,a),r.trigger(t,n)}function Ln(r,t,e){var a=e[r];return!r||a&&(!H(a)||t.event[a+"Key"])}const Mb=Db;function Ib(r,t,e){var a=r.target;a.x+=t,a.y+=e,a.dirty()}function Lb(r,t,e,a){var n=r.target,i=r.zoomLimit,o=r.zoom=r.zoom||1;if(o*=t,i){var s=i.min||0,l=i.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/r.zoom;r.zoom=o,n.x-=(e-n.x)*(u-1),n.y-=(a-n.y)*(u-1),n.scaleX*=u,n.scaleY*=u,n.dirty()}var Pb={axisPointer:1,tooltip:1,brush:1};function kb(r,t,e){var a=t.getComponentByElement(r.topTarget),n=a&&a.coordinateSystem;return a&&a!==e&&!Pb.hasOwnProperty(a.mainType)&&n&&n.model!==e}var mf=rt,Eb=function(r){F(t,r);function t(e){var a=r.call(this)||this;return a.type="view",a.dimensions=["x","y"],a._roamTransformable=new Mr,a._rawTransformable=new Mr,a.name=e,a}return t.prototype.setBoundingRect=function(e,a,n,i){return this._rect=new Pe(e,a,n,i),this._rect},t.prototype.getBoundingRect=function(){return this._rect},t.prototype.setViewRect=function(e,a,n,i){this._transformTo(e,a,n,i),this._viewRect=new Pe(e,a,n,i)},t.prototype._transformTo=function(e,a,n,i){var o=this.getBoundingRect(),s=this._rawTransformable;s.transform=o.calculateTransform(new Pe(e,a,n,i));var l=s.parent;s.parent=null,s.decomposeTransform(),s.parent=l,this._updateTransform()},t.prototype.setCenter=function(e,a){e&&(this._center=[W(e[0],a.getWidth()),W(e[1],a.getHeight())],this._updateCenterAndZoom())},t.prototype.setZoom=function(e){e=e||1;var a=this.zoomLimit;a&&(a.max!=null&&(e=Math.min(a.max,e)),a.min!=null&&(e=Math.max(a.min,e))),this._zoom=e,this._updateCenterAndZoom()},t.prototype.getDefaultCenter=function(){var e=this.getBoundingRect(),a=e.x+e.width/2,n=e.y+e.height/2;return[a,n]},t.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},t.prototype.getZoom=function(){return this._zoom||1},t.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},t.prototype._updateCenterAndZoom=function(){var e=this._rawTransformable.getLocalTransform(),a=this._roamTransformable,n=this.getDefaultCenter(),i=this.getCenter(),o=this.getZoom();i=rt([],i,e),n=rt([],n,e),a.originX=i[0],a.originY=i[1],a.x=n[0]-i[0],a.y=n[1]-i[1],a.scaleX=a.scaleY=o,this._updateTransform()},t.prototype._updateTransform=function(){var e=this._roamTransformable,a=this._rawTransformable;a.parent=e,e.updateTransform(),a.updateTransform(),ug(this.transform||(this.transform=[]),a.transform||Rs()),this._rawTransform=a.getLocalTransform(),this.invTransform=this.invTransform||[],Oa(this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var e=this._rawTransformable,a=this._roamTransformable,n=new Mr;return n.transform=a.transform,n.decomposeTransform(),{roam:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY},raw:{x:e.x,y:e.y,scaleX:e.scaleX,scaleY:e.scaleY}}},t.prototype.getViewRect=function(){return this._viewRect},t.prototype.getViewRectAfterRoam=function(){var e=this.getBoundingRect().clone();return e.applyTransform(this.transform),e},t.prototype.dataToPoint=function(e,a,n){var i=a?this._rawTransform:this.transform;return n=n||[],i?mf(n,e,i):cg(n,e)},t.prototype.pointToData=function(e){var a=this.invTransform;return a?mf([],e,a):[e[0],e[1]]},t.prototype.convertToPixel=function(e,a,n){var i=yf(a);return i===this?i.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,a,n){var i=yf(a);return i===this?i.pointToData(n):null},t.prototype.containPoint=function(e){return this.getViewRectAfterRoam().contain(e[0],e[1])},t.dimensions=["x","y"],t}(Mr);function yf(r){var t=r.seriesModel;return t?t.coordinateSystem:null}const Rb=Eb;function _f(r,t){return r.pointToProjected?r.pointToProjected(t):r.pointToData(t)}function Nb(r,t,e,a){var n=r.getZoom(),i=r.getCenter(),o=t.zoom,s=r.projectedToPoint?r.projectedToPoint(i):r.dataToPoint(i);if(t.dx!=null&&t.dy!=null&&(s[0]-=t.dx,s[1]-=t.dy,r.setCenter(_f(r,s),a)),o!=null){if(e){var l=e.min||0,u=e.max||1/0;o=Math.max(Math.min(n*o,u),l)/n}r.scaleX*=o,r.scaleY*=o;var c=(t.originX-r.x)*(o-1),f=(t.originY-r.y)*(o-1);r.x-=c,r.y-=f,r.updateTransform(),r.setCenter(_f(r,s),a),r.setZoom(o*n)}return{center:r.getCenter(),zoom:r.getZoom()}}function Ob(r){var t=r;t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var e=[t],a,n;a=e.pop();)if(n=a.children,a.isExpand&&n.length)for(var i=n.length,o=i-1;o>=0;o--){var s=n[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},e.push(s)}}function Bb(r,t){var e=r.isExpand?r.children:[],a=r.parentNode.children,n=r.hierNode.i?a[r.hierNode.i-1]:null;if(e.length){Fb(r);var i=(e[0].hierNode.prelim+e[e.length-1].hierNode.prelim)/2;n?(r.hierNode.prelim=n.hierNode.prelim+t(r,n),r.hierNode.modifier=r.hierNode.prelim-i):r.hierNode.prelim=i}else n&&(r.hierNode.prelim=n.hierNode.prelim+t(r,n));r.parentNode.hierNode.defaultAncestor=zb(r,n,r.parentNode.hierNode.defaultAncestor||a[0],t)}function Gb(r){var t=r.hierNode.prelim+r.parentNode.hierNode.modifier;r.setLayout({x:t},!0),r.hierNode.modifier+=r.parentNode.hierNode.modifier}function xf(r){return arguments.length?r:Ub}function ha(r,t){return r-=Math.PI/2,{x:t*Math.cos(r),y:t*Math.sin(r)}}function Vb(r,t){return pr(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Fb(r){for(var t=r.children,e=t.length,a=0,n=0;--e>=0;){var i=t[e];i.hierNode.prelim+=a,i.hierNode.modifier+=a,n+=i.hierNode.change,a+=i.hierNode.shift+n}}function zb(r,t,e,a){if(t){for(var n=r,i=r,o=i.parentNode.children[0],s=t,l=n.hierNode.modifier,u=i.hierNode.modifier,c=o.hierNode.modifier,f=s.hierNode.modifier;s=ko(s),i=Eo(i),s&&i;){n=ko(n),o=Eo(o),n.hierNode.ancestor=r;var h=s.hierNode.prelim+f-i.hierNode.prelim-u+a(s,i);h>0&&(Wb(Hb(s,r,e),r,h),u+=h,l+=h),f+=s.hierNode.modifier,u+=i.hierNode.modifier,l+=n.hierNode.modifier,c+=o.hierNode.modifier}s&&!ko(n)&&(n.hierNode.thread=s,n.hierNode.modifier+=f-l),i&&!Eo(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-c,e=r)}return e}function ko(r){var t=r.children;return t.length&&r.isExpand?t[t.length-1]:r.hierNode.thread}function Eo(r){var t=r.children;return t.length&&r.isExpand?t[0]:r.hierNode.thread}function Hb(r,t,e){return r.hierNode.ancestor.parentNode===t.parentNode?r.hierNode.ancestor:e}function Wb(r,t,e){var a=e/(t.hierNode.i-r.hierNode.i);t.hierNode.change-=a,t.hierNode.shift+=e,t.hierNode.modifier+=e,t.hierNode.prelim+=e,r.hierNode.change+=a}function Ub(r,t){return r.parentNode===t.parentNode?1:2}var Yb=function(){function r(){this.parentPoint=[],this.childPoints=[]}return r}(),$b=function(r){F(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Yb},t.prototype.buildPath=function(e,a){var n=a.childPoints,i=n.length,o=a.parentPoint,s=n[0],l=n[i-1];if(i===1){e.moveTo(o[0],o[1]),e.lineTo(s[0],s[1]);return}var u=a.orient,c=u==="TB"||u==="BT"?0:1,f=1-c,h=W(a.forkPosition,1),v=[];v[c]=o[c],v[f]=o[f]+(l[f]-o[f])*h,e.moveTo(o[0],o[1]),e.lineTo(v[0],v[1]),e.moveTo(s[0],s[1]),v[c]=s[c],e.lineTo(v[0],v[1]),v[c]=l[c],e.lineTo(v[0],v[1]),e.lineTo(l[0],l[1]);for(var d=1;dy.x,S||(x=x-Math.PI));var A=S?"left":"right",T=s.getModel("label"),M=T.get("rotate"),C=M*(Math.PI/180),D=g.getTextContent();D&&(g.setTextConfig({position:T.get("position")||A,rotation:M==null?-x:C,origin:"center"}),D.setStyle("verticalAlign","middle"))}var I=s.get(["emphasis","focus"]),L=I==="relative"?Jf(o.getAncestorsIndices(),o.getDescendantIndices()):I==="ancestor"?o.getAncestorsIndices():I==="descendant"?o.getDescendantIndices():null;L&&(K(e).focus=L),Zb(n,o,c,e,d,v,p,a),e.__edge&&(e.onHoverStateChange=function(k){if(k!=="blur"){var P=o.parentNode&&r.getItemGraphicEl(o.parentNode.dataIndex);P&&P.hoverState===Ha||Uo(e.__edge,k)}})}function Zb(r,t,e,a,n,i,o,s){var l=t.getModel(),u=r.get("edgeShape"),c=r.get("layout"),f=r.getOrient(),h=r.get(["lineStyle","curveness"]),v=r.get("edgeForkPosition"),d=l.getModel("lineStyle").getLineStyle(),p=a.__edge;if(u==="curve")t.parentNode&&t.parentNode!==e&&(p||(p=a.__edge=new oi({shape:xs(c,f,h,n,n)})),ce(p,{shape:xs(c,f,h,i,o)},r));else if(u==="polyline")if(c==="orthogonal"){if(t!==e&&t.children&&t.children.length!==0&&t.isExpand===!0){for(var g=t.children,m=[],y=0;ye&&(e=n.height)}this.height=e+1},r.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,a=this.children,n=a.length;e=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},r.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},r.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostTree,a=e.data.getItemModel(this.dataIndex);return a.getModel(t)}},r.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},r.prototype.setVisual=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},r.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},r.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},r.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},r.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,e=0;el&&(l=f.depth)});var u=e.expandAndCollapse,c=u&&e.initialTreeDepth>=0?e.initialTreeDepth:l;return o.root.eachNode("preorder",function(f){var h=f.hostTree.data.getRawDataItem(f.dataIndex);f.isExpand=h&&h.collapsed!=null?!h.collapsed:f.depth<=c}),o.data},t.prototype.getOrient=function(){var e=this.get("orient");return e==="horizontal"?e="LR":e==="vertical"&&(e="TB"),e},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.formatTooltip=function(e,a,n){for(var i=this.getData().tree,o=i.root.children[0],s=i.getNodeByDataIndex(e),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return Gr("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},t.prototype.getDataParams=function(e){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(e);return a.treeAncestors=sA(n,this),a.collapsed=!n.isExpand,a},t.type="series.tree",t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}($e);const uA=lA;function cA(r,t,e){for(var a=[r],n=[],i;i=a.pop();)if(n.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;s=0;i--)e.push(n[i])}}function fA(r,t){r.eachSeriesByType("tree",function(e){vA(e,t)})}function vA(r,t){var e=Vb(r,t);r.layoutInfo=e;var a=r.get("layout"),n=0,i=0,o=null;a==="radial"?(n=2*Math.PI,i=Math.min(e.height,e.width)/2,o=xf(function(_,x){return(_.parentNode===x.parentNode?1:2)/_.depth})):(n=e.width,i=e.height,o=xf());var s=r.getData().tree.root,l=s.children[0];if(l){Ob(s),cA(l,Bb,o),s.hierNode.modifier=-l.hierNode.prelim,ia(l,Gb);var u=l,c=l,f=l;ia(l,function(_){var x=_.getLayout().x;xc.getLayout().x&&(c=_),_.depth>f.depth&&(f=_)});var h=u===c?1:o(u,c)/2,v=h-u.getLayout().x,d=0,p=0,g=0,m=0;if(a==="radial")d=n/(c.getLayout().x+h+v),p=i/(f.depth-1||1),ia(l,function(_){g=(_.getLayout().x+v)*d,m=(_.depth-1)*p;var x=ha(g,m);_.setLayout({x:x.x,y:x.y,rawX:g,rawY:m},!0)});else{var y=r.getOrient();y==="RL"||y==="LR"?(p=i/(c.getLayout().x+h+v),d=n/(f.depth-1||1),ia(l,function(_){m=(_.getLayout().x+v)*p,g=y==="LR"?(_.depth-1)*d:n-(_.depth-1)*d,_.setLayout({x:g,y:m},!0)})):(y==="TB"||y==="BT")&&(d=n/(c.getLayout().x+h+v),p=i/(f.depth-1||1),ia(l,function(_){g=(_.getLayout().x+v)*d,m=y==="TB"?(_.depth-1)*p:i-(_.depth-1)*p,_.setLayout({x:g,y:m},!0)}))}}}function hA(r){r.eachSeriesByType("tree",function(t){var e=t.getData(),a=e.tree;a.eachNode(function(n){var i=n.getModel(),o=i.getModel("itemStyle").getItemStyle(),s=e.ensureUniqueItemVisual(n.dataIndex,"style");V(s,o)})})}function dA(r){r.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},function(a){var n=t.dataIndex,i=a.getData().tree,o=i.getNodeByDataIndex(n);o.isExpand=!o.isExpand})}),r.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(t,e,a){e.eachComponent({mainType:"series",subType:"tree",query:t},function(n){var i=n.coordinateSystem,o=Nb(i,t,void 0,a);n.setCenter&&n.setCenter(o.center),n.setZoom&&n.setZoom(o.zoom)})})}function mC(r){r.registerChartView(qb),r.registerSeriesModel(uA),r.registerLayout(fA),r.registerVisual(hA),dA(r)}var pA=function(){function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return r}(),gA=function(r){F(t,r);function t(e){var a=r.call(this,e)||this;return a.type="pointer",a}return t.prototype.getDefaultShape=function(){return new pA},t.prototype.buildPath=function(e,a){var n=Math.cos,i=Math.sin,o=a.r,s=a.width,l=a.angle,u=a.x-n(l)*s*(s>=o/3?1:2),c=a.y-i(l)*s*(s>=o/3?1:2);l=a.angle-Math.PI/2,e.moveTo(u,c),e.lineTo(a.x+n(l)*s,a.y+i(l)*s),e.lineTo(a.x+n(a.angle)*o,a.y+i(a.angle)*o),e.lineTo(a.x-n(l)*s,a.y-i(l)*s),e.lineTo(u,c)},t}(Ae);const mA=gA;function yA(r,t){var e=r.get("center"),a=t.getWidth(),n=t.getHeight(),i=Math.min(a,n),o=W(e[0],t.getWidth()),s=W(e[1],t.getHeight()),l=W(r.get("radius"),i/2);return{cx:o,cy:s,r:l}}function _n(r,t){var e=r==null?"":r+"";return t&&(H(t)?e=t.replace("{value}",e):$(t)&&(e=t(r))),e}var _A=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){this.group.removeAll();var i=e.get(["axisLine","lineStyle","color"]),o=yA(e,n);this._renderMain(e,a,n,i,o),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,a,n,i,o){var s=this.group,l=e.get("clockwise"),u=-e.get("startAngle")/180*Math.PI,c=-e.get("endAngle")/180*Math.PI,f=e.getModel("axisLine"),h=f.get("roundCap"),v=h?ri:tt,d=f.get("show"),p=f.getModel("lineStyle"),g=p.get("width"),m=[u,c];av(m,!l),u=m[0],c=m[1];for(var y=c-u,_=u,x=[],S=0;d&&S=M&&(C===0?0:i[C-1][0])Math.PI/2&&(ne+=Math.PI)):J==="tangential"?ne=-T-Math.PI/2:ue(J)&&(ne=J*Math.PI/180),ne===0?f.add(new ge({style:Qe(_,{text:N,x:z,y:X,verticalAlign:P<-.8?"top":P>.8?"bottom":"middle",align:k<-.4?"left":k>.4?"right":"center"},{inheritColor:B}),silent:!0})):f.add(new ge({style:Qe(_,{text:N,x:z,y:X,verticalAlign:"middle",align:"center"},{inheritColor:B}),silent:!0,originX:z,originY:X,rotation:ne}))}if(y.get("show")&&E!==x){var O=y.get("distance");O=O?O+c:c;for(var Te=0;Te<=S;Te++){k=Math.cos(T),P=Math.sin(T);var fe=new ze({shape:{x1:k*(d-O)+h,y1:P*(d-O)+v,x2:k*(d-A-O)+h,y2:P*(d-A-O)+v},silent:!0,style:I});I.stroke==="auto"&&fe.setStyle({stroke:i((E+Te/S)/x)}),f.add(fe),T+=C}T-=C}else T+=M}},t.prototype._renderPointer=function(e,a,n,i,o,s,l,u,c){var f=this.group,h=this._data,v=this._progressEls,d=[],p=e.get(["pointer","show"]),g=e.getModel("progress"),m=g.get("show"),y=e.getData(),_=y.mapDimension("value"),x=+e.get("min"),S=+e.get("max"),w=[x,S],A=[s,l];function T(C,D){var I=y.getItemModel(C),L=I.getModel("pointer"),k=W(L.get("width"),o.r),P=W(L.get("length"),o.r),E=e.get(["pointer","icon"]),O=L.get("offsetCenter"),R=W(O[0],o.r),N=W(O[1],o.r),B=L.get("keepAspect"),z;return E?z=Lt(E,R-k/2,N-P,k,P,null,B):z=new mA({shape:{angle:-Math.PI/2,width:k,r:P,x:R,y:N}}),z.rotation=-(D+Math.PI/2),z.x=o.cx,z.y=o.cy,z}function M(C,D){var I=g.get("roundCap"),L=I?ri:tt,k=g.get("overlap"),P=k?g.get("width"):c/y.count(),E=k?o.r-P:o.r-(C+1)*P,O=k?o.r:o.r-C*P,R=new L({shape:{startAngle:s,endAngle:D,cx:o.cx,cy:o.cy,clockwise:u,r0:E,r:O}});return k&&(R.z2=S-y.get(_,C)%S),R}(m||p)&&(y.diff(h).add(function(C){var D=y.get(_,C);if(p){var I=T(C,s);be(I,{rotation:-((isNaN(+D)?A[0]:pt(D,w,A,!0))+Math.PI/2)},e),f.add(I),y.setItemGraphicEl(C,I)}if(m){var L=M(C,s),k=g.get("clip");be(L,{shape:{endAngle:pt(D,w,A,k)}},e),f.add(L),Wo(e.seriesIndex,y.dataType,C,L),d[C]=L}}).update(function(C,D){var I=y.get(_,C);if(p){var L=h.getItemGraphicEl(D),k=L?L.rotation:s,P=T(C,k);P.rotation=k,ce(P,{rotation:-((isNaN(+I)?A[0]:pt(I,w,A,!0))+Math.PI/2)},e),f.add(P),y.setItemGraphicEl(C,P)}if(m){var E=v[D],O=E?E.shape.endAngle:s,R=M(C,O),N=g.get("clip");ce(R,{shape:{endAngle:pt(I,w,A,N)}},e),f.add(R),Wo(e.seriesIndex,y.dataType,C,R),d[C]=R}}).execute(),y.each(function(C){var D=y.getItemModel(C),I=D.getModel("emphasis"),L=I.get("focus"),k=I.get("blurScope"),P=I.get("disabled");if(p){var E=y.getItemGraphicEl(C),O=y.getItemVisual(C,"style"),R=O.fill;if(E instanceof gr){var N=E.style;E.useStyle(V({image:N.image,x:N.x,y:N.y,width:N.width,height:N.height},O))}else E.useStyle(O),E.type!=="pointer"&&E.setColor(R);E.setStyle(D.getModel(["pointer","itemStyle"]).getItemStyle()),E.style.fill==="auto"&&E.setStyle("fill",i(pt(y.get(_,C),w,[0,1],!0))),E.z2EmphasisLift=0,vr(E,D),fr(E,L,k,P)}if(m){var B=d[C];B.useStyle(y.getItemVisual(C,"style")),B.setStyle(D.getModel(["progress","itemStyle"]).getItemStyle()),B.z2EmphasisLift=0,vr(B,D),fr(B,L,k,P)}}),this._progressEls=d)},t.prototype._renderAnchor=function(e,a){var n=e.getModel("anchor"),i=n.get("show");if(i){var o=n.get("size"),s=n.get("icon"),l=n.get("offsetCenter"),u=n.get("keepAspect"),c=Lt(s,a.cx-o/2+W(l[0],a.r),a.cy-o/2+W(l[1],a.r),o,o,null,u);c.z2=n.get("showAbove")?1:0,c.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(c)}},t.prototype._renderTitleAndDetail=function(e,a,n,i,o){var s=this,l=e.getData(),u=l.mapDimension("value"),c=+e.get("min"),f=+e.get("max"),h=new Se,v=[],d=[],p=e.isAnimationEnabled(),g=e.get(["pointer","showAbove"]);l.diff(this._data).add(function(m){v[m]=new ge({silent:!0}),d[m]=new ge({silent:!0})}).update(function(m,y){v[m]=s._titleEls[y],d[m]=s._detailEls[y]}).execute(),l.each(function(m){var y=l.getItemModel(m),_=l.get(u,m),x=new Se,S=i(pt(_,[c,f],[0,1],!0)),w=y.getModel("title");if(w.get("show")){var A=w.get("offsetCenter"),T=o.cx+W(A[0],o.r),M=o.cy+W(A[1],o.r),C=v[m];C.attr({z2:g?0:2,style:Qe(w,{x:T,y:M,text:l.getName(m),align:"center",verticalAlign:"middle"},{inheritColor:S})}),x.add(C)}var D=y.getModel("detail");if(D.get("show")){var I=D.get("offsetCenter"),L=o.cx+W(I[0],o.r),k=o.cy+W(I[1],o.r),P=W(D.get("width"),o.r),E=W(D.get("height"),o.r),O=e.get(["progress","show"])?l.getItemVisual(m,"style").fill:S,C=d[m],R=D.get("formatter");C.attr({z2:g?0:2,style:Qe(D,{x:L,y:k,text:_n(_,R),width:isNaN(P)?null:P,height:isNaN(E)?null:E,align:"center",verticalAlign:"middle"},{inheritColor:O})}),Gv(C,{normal:D},_,function(B){return _n(B,R)}),p&&Vv(C,m,l,e,{getFormattedLabel:function(B,z,X,J,ne,Te){return _n(Te?Te.interpolatedValue:_,R)}}),x.add(C)}h.add(x)}),this.group.add(h),this._titleEls=v,this._detailEls=d},t.type="gauge",t}(Be);const xA=_A;var SA=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="itemStyle",e}return t.prototype.getInitialData=function(e,a){return ap(this,["value"])},t.type="series.gauge",t.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t}($e);const wA=SA;function yC(r){r.registerChartView(xA),r.registerSeriesModel(wA)}var ir=ie(),Tf=ee,Ro=Q,bA=function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(t,e,a,n){var i=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=a,!(!n&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,i,t,e,a);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(a),this._lastGraphicKey=c;var f=this._moveAnimation=this.determineAnimation(t,e);if(!s)s=this._group=new Se,this.createPointerEl(s,u,t,e),this.createLabelEl(s,u,t,e),a.getZr().add(s);else{var h=oe(Cf,e,f);this.updatePointerEl(s,u,h),this.updateLabelEl(s,u,h,e)}Mf(s,e,!0),this._renderHandle(i)}},r.prototype.remove=function(t){this.clear(t)},r.prototype.dispose=function(t){this.clear(t)},r.prototype.determineAnimation=function(t,e){var a=e.get("animation"),n=t.axis,i=n.type==="category",o=e.get("snap");if(!o&&!i)return!1;if(a==="auto"||a==null){var s=this.animationThreshold;if(i&&n.getBandWidth()>s)return!0;if(o){var l=Ol(t).seriesDataCount,u=n.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return a===!0},r.prototype.makeElOption=function(t,e,a,n,i){},r.prototype.createPointerEl=function(t,e,a,n){var i=e.pointer;if(i){var o=ir(t).pointerEl=new js[i.type](Tf(e.pointer));t.add(o)}},r.prototype.createLabelEl=function(t,e,a,n){if(e.label){var i=ir(t).labelEl=new ge(Tf(e.label));t.add(i),Df(i,n)}},r.prototype.updatePointerEl=function(t,e,a){var n=ir(t).pointerEl;n&&e.pointer&&(n.setStyle(e.pointer.style),a(n,{shape:e.pointer.shape}))},r.prototype.updateLabelEl=function(t,e,a,n){var i=ir(t).labelEl;i&&(i.setStyle(e.label.style),a(i,{x:e.label.x,y:e.label.y}),Df(i,n))},r.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e=this._axisPointerModel,a=this._api.getZr(),n=this._handle,i=e.getModel("handle"),o=e.get("status");if(!i.get("show")||!o||o==="hide"){n&&a.remove(n),this._handle=null;return}var s;this._handle||(s=!0,n=this._handle=pi(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Es(u.event)},onmousedown:Ro(this._onHandleDragMove,this,0,0),drift:Ro(this._onHandleDragMove,this),ondragend:Ro(this._onHandleDragEnd,this)}),a.add(n)),Mf(n,e,!1),n.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");G(l)||(l=[l,l]),n.scaleX=l[0]/2,n.scaleY=l[1]/2,Th(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},r.prototype._moveHandleToValue=function(t,e){Cf(this._axisPointerModel,!e&&this._moveAnimation,this._handle,No(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(t,e){var a=this._handle;if(a){this._dragging=!0;var n=this.updateHandleTransform(No(a),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=n,a.stopAnimation(),a.attr(No(n)),ir(a).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,a=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:a.axis.dim,axisIndex:a.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),a=this._group,n=this._handle;e&&a&&(this._lastGraphicKey=null,a&&e.remove(a),n&&e.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),as(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(t,e,a){return a=a||0,{x:t[a],y:t[1-a],width:e[a],height:e[1-a]}},r}();function Cf(r,t,e,a){fp(ir(e).lastProp,a)||(ir(e).lastProp=a,t?ce(e,a,r):(e.stopAnimation(),e.attr(a)))}function fp(r,t){if(Y(r)&&Y(t)){var e=!0;return b(t,function(a,n){e=e&&fp(r[n],a)}),!!e}else return r===t}function Df(r,t){r[t.get(["label","show"])?"show":"hide"]()}function No(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function Mf(r,t,e){var a=t.get("z"),n=t.get("zlevel");r&&r.traverse(function(i){i.type!=="group"&&(a!=null&&(i.z=a),n!=null&&(i.zlevel=n),i.silent=e)})}const vp=bA;function hp(r){var t=r.get("type"),e=r.getModel(t+"Style"),a;return t==="line"?(a=e.getLineStyle(),a.fill=null):t==="shadow"&&(a=e.getAreaStyle(),a.stroke=null),a}function dp(r,t,e,a,n){var i=e.get("value"),o=pp(i,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),l=$a(s.get("padding")||0),u=s.getFont(),c=Ls(o,u),f=n.position,h=c.width+l[1]+l[3],v=c.height+l[0]+l[2],d=n.align;d==="right"&&(f[0]-=h),d==="center"&&(f[0]-=h/2);var p=n.verticalAlign;p==="bottom"&&(f[1]-=v),p==="middle"&&(f[1]-=v/2),AA(f,h,v,a);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=t.get(["axisLine","lineStyle","color"])),r.label={x:f[0],y:f[1],style:Qe(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function AA(r,t,e,a){var n=a.getWidth(),i=a.getHeight();r[0]=Math.min(r[0]+t,n)-t,r[1]=Math.min(r[1]+e,i)-e,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function pp(r,t,e,a,n){r=t.scale.parse(r);var i=t.scale.getLabel({value:r},{precision:n.precision}),o=n.formatter;if(o){var s={value:Ll(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};b(a,function(l){var u=e.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,f=u&&u.getDataParams(c);f&&s.seriesData.push(f)}),H(o)?i=o.replace("{value}",i):$(o)&&(i=o(s))}return i}function gp(r,t,e){var a=Rs();return ks(a,a,e.rotation),nv(a,a,e.position),di([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],a)}function TA(r,t,e,a,n,i){var o=Vr.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=n.get(["label","margin"]),dp(t,a,n,i,{position:gp(a.axis,r,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function mp(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function CA(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}function If(r,t,e,a,n,i){return{cx:r,cy:t,r0:e,r:a,startAngle:n,endAngle:i,clockwise:!0}}var DA=function(r){F(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,a,n,i,o){var s=n.axis,l=s.grid,u=i.get("type"),c=Lf(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(a,!0));if(u&&u!=="none"){var h=hp(i),v=MA[u](s,f,c);v.style=h,e.graphicKey=v.type,e.pointer=v}var d=ms(l.model,n);TA(a,e,d,n,i,o)},t.prototype.getHandleTransform=function(e,a,n){var i=ms(a.axis.grid.model,a,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=gp(a.axis,e,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,a,n,i){var o=n.axis,s=o.grid,l=o.getGlobalExtent(!0),u=Lf(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,f=[e.x,e.y];f[c]+=a[c],f[c]=Math.min(l[1],f[c]),f[c]=Math.max(l[0],f[c]);var h=(u[1]+u[0])/2,v=[h,h];v[c]=f[c];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:e.rotation,cursorPoint:v,tooltipOption:d[c]}},t}(vp);function Lf(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var MA={line:function(r,t,e){var a=mp([t,e[0]],[t,e[1]],Pf(r));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(r,t,e){var a=Math.max(1,r.getBandWidth()),n=e[1]-e[0];return{type:"Rect",shape:CA([t-a/2,e[0]],[a,n],Pf(r))}}};function Pf(r){return r.dim==="x"?0:1}const IA=DA;var LA=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(te);const PA=LA;var Ct=ie(),kA=b;function yp(r,t,e){if(!le.node){var a=t.getZr();Ct(a).records||(Ct(a).records={}),EA(a,t);var n=Ct(a).records[r]||(Ct(a).records[r]={});n.handler=e}}function EA(r,t){if(Ct(r).initialized)return;Ct(r).initialized=!0,e("click",oe(kf,"click")),e("mousemove",oe(kf,"mousemove")),e("globalout",NA);function e(a,n){r.on(a,function(i){var o=OA(t);kA(Ct(r).records,function(s){s&&n(s,i,o.dispatchAction)}),RA(o.pendings,t)})}}function RA(r,t){var e=r.showTip.length,a=r.hideTip.length,n;e?n=r.showTip[e-1]:a&&(n=r.hideTip[a-1]),n&&(n.dispatchAction=null,t.dispatchAction(n))}function NA(r,t,e){r.handler("leave",null,e)}function kf(r,t,e,a){t.handler(r,e,a)}function OA(r){var t={showTip:[],hideTip:[]},e=function(a){var n=t[a.type];n?n.push(a):(a.dispatchAction=e,r.dispatchAction(a))};return{dispatchAction:e,pendings:t}}function Ss(r,t){if(!le.node){var e=t.getZr(),a=(Ct(e).records||{})[r];a&&(Ct(e).records[r]=null)}}var BA=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){var i=a.getComponent("tooltip"),o=e.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";yp("axisPointer",n,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(e,a){Ss("axisPointer",a)},t.prototype.dispose=function(e,a){Ss("axisPointer",a)},t.type="axisPointer",t}(it);const GA=BA;function _p(r,t){var e=[],a=r.seriesIndex,n;if(a==null||!(n=t.getSeriesByIndex(a)))return{point:[]};var i=n.getData(),o=cr(i,r);if(o==null||o<0||G(o))return{point:[]};var s=i.getItemGraphicEl(o),l=n.coordinateSystem;if(n.getTooltipPosition)e=n.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),f=c.dim,h=u.dim,v=f==="x"||f==="radius"?1:0,d=i.mapDimension(h),p=[];p[v]=i.get(d,o),p[1-v]=i.get(i.getCalculationInfo("stackResultDimension"),o),e=l.dataToPoint(p)||[]}else e=l.dataToPoint(i.getValues(U(l.dimensions,function(m){return i.mapDimension(m)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),e=[g.x+g.width/2,g.y+g.height/2]}return{point:e,el:s}}var Ef=ie();function VA(r,t,e){var a=r.currTrigger,n=[r.x,r.y],i=r,o=r.dispatchAction||Q(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){Pn(n)&&(n=_p({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},t).point);var l=Pn(n),u=i.axesInfo,c=s.axesInfo,f=a==="leave"||Pn(n),h={},v={},d={list:[],map:{}},p={showPointer:oe(zA,v),showTooltip:oe(HA,d)};b(s.coordSysMap,function(m,y){var _=l||m.containPoint(n);b(s.coordSysAxesInfo[y],function(x,S){var w=x.axis,A=$A(u,x);if(!f&&_&&(!u||A)){var T=A&&A.value;T==null&&!l&&(T=w.pointToData(n)),T!=null&&Rf(x,T,p,!1,h)}})});var g={};return b(c,function(m,y){var _=m.linkGroup;_&&!v[y]&&b(_.axesInfo,function(x,S){var w=v[S];if(x!==m&&w){var A=w.value;_.mapper&&(A=m.axis.scale.parse(_.mapper(A,Nf(x),Nf(m)))),g[m.key]=A}})}),b(g,function(m,y){Rf(c[y],m,p,!0,h)}),WA(v,c,h),UA(d,n,r,o),YA(c,o,e),h}}function Rf(r,t,e,a,n){var i=r.axis;if(!(i.scale.isBlank()||!i.containData(t))){if(!r.involveSeries){e.showPointer(r,t);return}var o=FA(t,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&n.seriesIndex==null&&V(n,s[0]),!a&&r.snap&&i.containData(l)&&l!=null&&(t=l),e.showPointer(r,t,s),e.showTooltip(r,o,l)}}function FA(r,t){var e=t.axis,a=e.dim,n=r,i=[],o=Number.MAX_VALUE,s=-1;return b(t.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(a),f,h;if(l.getAxisTooltipData){var v=l.getAxisTooltipData(c,r,e);h=v.dataIndices,f=v.nestestValue}else{if(h=l.getData().indicesOfNearest(c[0],r,e.type==="category"?.5:null),!h.length)return;f=l.getData().get(c[0],h[0])}if(!(f==null||!isFinite(f))){var d=r-f,p=Math.abs(d);p<=o&&((p=0&&s<0)&&(o=p,s=d,n=f,i.length=0),b(h,function(g){i.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:i,snapToValue:n}}function zA(r,t,e,a){r[t.key]={value:e,payloadBatch:a}}function HA(r,t,e,a){var n=e.payloadBatch,i=t.axis,o=i.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!n.length)){var l=t.coordSys.model,u=Ea(l),c=r.map[u];c||(c=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(c)),c.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:a,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:n.slice()})}}function WA(r,t,e){var a=e.axesInfo=[];b(t,function(n,i){var o=n.axisPointerModel.option,s=r[i];s?(!n.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!n.useHandle&&(o.status="hide"),o.status==="show"&&a.push({axisDim:n.axis.dim,axisIndex:n.axis.model.componentIndex,value:o.value})})}function UA(r,t,e,a){if(Pn(t)||!r.list.length){a({type:"hideTip"});return}var n=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};a({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:e.tooltipOption,position:e.position,dataIndexInside:n.dataIndexInside,dataIndex:n.dataIndex,seriesIndex:n.seriesIndex,dataByCoordSys:r.list})}function YA(r,t,e){var a=e.getZr(),n="axisPointerLastHighlights",i=Ef(a)[n]||{},o=Ef(a)[n]={};b(r,function(u,c){var f=u.axisPointerModel.option;f.status==="show"&&u.triggerEmphasis&&b(f.seriesDataIndices,function(h){var v=h.seriesIndex+" | "+h.dataIndex;o[v]=h})});var s=[],l=[];b(i,function(u,c){!o[c]&&l.push(u)}),b(o,function(u,c){!i[c]&&s.push(u)}),l.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function $A(r,t){for(var e=0;e<(r||[]).length;e++){var a=r[e];if(t.axis.dim===a.axisDim&&t.axis.model.componentIndex===a.axisIndex)return a}}function Nf(r){var t=r.axis.model,e={},a=e.axisDim=r.axis.dim;return e.axisIndex=e[a+"AxisIndex"]=t.componentIndex,e.axisName=e[a+"AxisName"]=t.name,e.axisId=e[a+"AxisId"]=t.id,e}function Pn(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function Gl(r){Za.registerAxisPointerClass("CartesianAxisPointer",IA),r.registerComponentModel(PA),r.registerComponentView(GA),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!G(e)&&(t.axisPointer.link=[e])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=cb(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},VA)}function _C(r){Pt(Tb),Pt(Gl)}var XA=function(r){F(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,a,n,i,o){var s=n.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),c=u.getExtent(),f=s.dataToCoord(a),h=i.get("type");if(h&&h!=="none"){var v=hp(i),d=qA[h](s,l,f,c);d.style=v,e.graphicKey=d.type,e.pointer=d}var p=i.get(["label","margin"]),g=ZA(a,n,i,l,p);dp(e,n,i,o,g)},t}(vp);function ZA(r,t,e,a,n){var i=t.axis,o=i.dataToCoord(r),s=a.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=a.getRadiusAxis().getExtent(),u,c,f;if(i.dim==="radius"){var h=Rs();ks(h,h,s),nv(h,h,[a.cx,a.cy]),u=di([o,-n],h);var v=t.getModel("axisLabel").get("rotate")||0,d=Vr.innerTextLayout(s,v*Math.PI/180,-1);c=d.textAlign,f=d.textVerticalAlign}else{var p=l[1];u=a.coordToPoint([p+n,o]);var g=a.cx,m=a.cy;c=Math.abs(u[0]-g)/p<.3?"center":u[0]>g?"left":"right",f=Math.abs(u[1]-m)/p<.3?"middle":u[1]>m?"top":"bottom"}return{position:u,align:c,verticalAlign:f}}var qA={line:function(r,t,e,a){return r.dim==="angle"?{type:"Line",shape:mp(t.coordToPoint([a[0],e]),t.coordToPoint([a[1],e]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:e}}},shadow:function(r,t,e,a){var n=Math.max(1,r.getBandWidth()),i=Math.PI/180;return r.dim==="angle"?{type:"Sector",shape:If(t.cx,t.cy,a[0],a[1],(-e-n/2)*i,(-e+n/2)*i)}:{type:"Sector",shape:If(t.cx,t.cy,e-n/2,e+n/2,0,Math.PI*2)}}};const KA=XA;var jA=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.findAxisModel=function(e){var a,n=this.ecModel;return n.eachComponent(e,function(i){i.getCoordSysModel()===this&&(a=i)},this),a},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(te);const JA=jA;var Vl=function(r){F(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Ye).models[0]},t.type="polarAxis",t}(te);St(Vl,kl);var QA=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="angleAxis",t}(Vl),eT=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="radiusAxis",t}(Vl),Fl=function(r){F(t,r);function t(e,a){return r.call(this,"radius",e,a)||this}return t.prototype.pointToData=function(e,a){return this.polar.pointToData(e,a)[this.dim==="radius"?0:1]},t}(Kt);Fl.prototype.dataToRadius=Kt.prototype.dataToCoord;Fl.prototype.radiusToData=Kt.prototype.coordToData;const tT=Fl;var rT=ie(),zl=function(r){F(t,r);function t(e,a){return r.call(this,"angle",e,a||[0,360])||this}return t.prototype.pointToData=function(e,a){return this.polar.pointToData(e,a)[this.dim==="radius"?0:1]},t.prototype.calculateCategoryInterval=function(){var e=this,a=e.getLabelModel(),n=e.scale,i=n.getExtent(),o=n.count();if(i[1]-i[0]<1)return 0;var s=i[0],l=e.dataToCoord(s+1)-e.dataToCoord(s),u=Math.abs(l),c=Ls(s==null?"":s+"",a.getFont(),"center","top"),f=Math.max(c.height,7),h=f/u;isNaN(h)&&(h=1/0);var v=Math.max(0,Math.floor(h)),d=rT(e.model),p=d.lastAutoInterval,g=d.lastTickCount;return p!=null&&g!=null&&Math.abs(p-v)<=1&&Math.abs(g-o)<=1&&p>v?v=p:(d.lastTickCount=o,d.lastAutoInterval=v),v},t}(Kt);zl.prototype.dataToAngle=Kt.prototype.dataToCoord;zl.prototype.angleToData=Kt.prototype.coordToData;const aT=zl;var xp=["radius","angle"],nT=function(){function r(t){this.dimensions=xp,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new tT,this._angleAxis=new aT,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return r.prototype.containPoint=function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},r.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},r.prototype.getAxis=function(t){var e="_"+t+"Axis";return this[e]},r.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},r.prototype.getAxesByScale=function(t){var e=[],a=this._angleAxis,n=this._radiusAxis;return a.scale.type===t&&e.push(a),n.scale.type===t&&e.push(n),e},r.prototype.getAngleAxis=function(){return this._angleAxis},r.prototype.getRadiusAxis=function(){return this._radiusAxis},r.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},r.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},r.prototype.getTooltipAxes=function(t){var e=t!=null&&t!=="auto"?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},r.prototype.dataToPoint=function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},r.prototype.pointToData=function(t,e){var a=this.pointToCoord(t);return[this._radiusAxis.radiusToData(a[0],e),this._angleAxis.angleToData(a[1],e)]},r.prototype.pointToCoord=function(t){var e=t[0]-this.cx,a=t[1]-this.cy,n=this.getAngleAxis(),i=n.getExtent(),o=Math.min(i[0],i[1]),s=Math.max(i[0],i[1]);n.inverse?o=s-360:s=o+360;var l=Math.sqrt(e*e+a*a);e/=l,a/=l;for(var u=Math.atan2(-a,e)/Math.PI*180,c=us;)u+=c*360;return[l,u]},r.prototype.coordToPoint=function(t){var e=t[0],a=t[1]/180*Math.PI,n=Math.cos(a)*e+this.cx,i=-Math.sin(a)*e+this.cy;return[n,i]},r.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis(),a=e.getExtent().slice();a[0]>a[1]&&a.reverse();var n=t.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:a[0],r:a[1],startAngle:-n[0]*i,endAngle:-n[1]*i,clockwise:t.inverse,contain:function(o,s){var l=o-this.cx,u=s-this.cy,c=l*l+u*u-1e-4,f=this.r,h=this.r0;return c<=f*f&&c>=h*h}}},r.prototype.convertToPixel=function(t,e,a){var n=Of(e);return n===this?this.dataToPoint(a):null},r.prototype.convertFromPixel=function(t,e,a){var n=Of(e);return n===this?this.pointToData(a):null},r}();function Of(r){var t=r.seriesModel,e=r.polarModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}const iT=nT;function oT(r,t,e){var a=t.get("center"),n=e.getWidth(),i=e.getHeight();r.cx=W(a[0],n),r.cy=W(a[1],i);var o=r.getRadiusAxis(),s=Math.min(n,i)/2,l=t.get("radius");l==null?l=[0,"100%"]:G(l)||(l=[0,l]);var u=[W(l[0],s),W(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function sT(r,t){var e=this,a=e.getAngleAxis(),n=e.getRadiusAxis();if(a.scale.setExtent(1/0,-1/0),n.scale.setExtent(1/0,-1/0),r.eachSeries(function(s){if(s.coordinateSystem===e){var l=s.getData();b(hs(l,"radius"),function(u){n.scale.unionExtentFromData(l,u)}),b(hs(l,"angle"),function(u){a.scale.unionExtentFromData(l,u)})}}),Pa(a.scale,a.model),Pa(n.scale,n.model),a.type==="category"&&!a.onBand){var i=a.getExtent(),o=360/a.scale.count();a.inverse?i[1]+=o:i[1]-=o,a.setExtent(i[0],i[1])}}function lT(r){return r.mainType==="angleAxis"}function Bf(r,t){var e;if(r.type=t.get("type"),r.scale=Il(t),r.onBand=t.get("boundaryGap")&&r.type==="category",r.inverse=t.get("inverse"),lT(t)){r.inverse=r.inverse!==t.get("clockwise");var a=t.get("startAngle"),n=(e=t.get("endAngle"))!==null&&e!==void 0?e:a+(r.inverse?-360:360);r.setExtent(a,n)}t.axis=r,r.model=t}var uT={dimensions:xp,create:function(r,t){var e=[];return r.eachComponent("polar",function(a,n){var i=new iT(n+"");i.update=sT;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=a.findAxisModel("radiusAxis"),u=a.findAxisModel("angleAxis");Bf(o,l),Bf(s,u),oT(i,a,t),e.push(i),a.coordinateSystem=i,i.model=a}),r.eachSeries(function(a){if(a.get("coordinateSystem")==="polar"){var n=a.getReferringComponents("polar",Ye).models[0];if(!n)throw new Error('Polar "'+$t(a.get("polarIndex"),a.get("polarId"),0)+'" not found');a.coordinateSystem=n.coordinateSystem}}),e}};const cT=uT;var fT=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function xn(r,t,e){t[1]>t[0]&&(t=t.slice().reverse());var a=r.coordToPoint([t[0],e]),n=r.coordToPoint([t[1],e]);return{x1:a[0],y1:a[1],x2:n[0],y2:n[1]}}function Sn(r){var t=r.getRadiusAxis();return t.inverse?0:1}function Gf(r){var t=r[0],e=r[r.length-1];t&&e&&Math.abs(Math.abs(t.coord-e.coord)-360)<1e-4&&r.pop()}var vT=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="PolarAxisPointer",e}return t.prototype.render=function(e,a){if(this.group.removeAll(),!!e.get("show")){var n=e.axis,i=n.polar,o=i.getRadiusAxis().getExtent(),s=n.getTicksCoords(),l=n.getMinorTicksCoords(),u=U(n.getViewLabels(),function(c){c=ee(c);var f=n.scale,h=f.type==="ordinal"?f.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=n.dataToCoord(h),c});Gf(u),Gf(s),b(fT,function(c){e.get([c,"show"])&&(!n.scale.isBlank()||c==="axisLine")&&hT[c](this.group,e,i,s,l,o,u)},this)}},t.type="angleAxis",t}(Za),hT={axisLine:function(r,t,e,a,n,i){var o=t.getModel(["axisLine","lineStyle"]),s=e.getAngleAxis(),l=Math.PI/180,u=s.getExtent(),c=Sn(e),f=c?0:1,h,v=Math.abs(u[1]-u[0])===360?"Circle":"Arc";i[f]===0?h=new js[v]({shape:{cx:e.cx,cy:e.cy,r:i[c],startAngle:-u[0]*l,endAngle:-u[1]*l,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0}):h=new ii({shape:{cx:e.cx,cy:e.cy,r:i[c],r0:i[f]},style:o.getLineStyle(),z2:1,silent:!0}),h.style.fill=null,r.add(h)},axisTick:function(r,t,e,a,n,i){var o=t.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=i[Sn(e)],u=U(a,function(c){return new ze({shape:xn(e,[l,l+s],c.coord)})});r.add(gt(u,{style:j(o.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(r,t,e,a,n,i){if(n.length){for(var o=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=i[Sn(e)],c=[],f=0;fm?"left":"right",x=Math.abs(g[1]-y)/p<.3?"middle":g[1]>y?"top":"bottom";if(s&&s[d]){var S=s[d];Y(S)&&S.textStyle&&(v=new me(S.textStyle,l,l.ecModel))}var w=new ge({silent:Vr.isLabelSilent(t),style:Qe(v,{x:g[0],y:g[1],fill:v.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:f.formattedLabel,align:_,verticalAlign:x})});if(r.add(w),c){var A=Vr.makeAxisEventDataBase(t);A.targetType="axisLabel",A.value=f.rawLabel,K(w).eventData=A}},this)},splitLine:function(r,t,e,a,n,i){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=0;f=0?"p":"n",P=M;S&&(a[c][L]||(a[c][L]={p:M,n:M}),P=a[c][L][k]);var E=void 0,O=void 0,R=void 0,N=void 0;if(d.dim==="radius"){var B=d.dataToCoord(I)-M,z=l.dataToCoord(L);Math.abs(B)=N})}}})}function wT(r){var t={};b(r,function(a,n){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=wp(o,s),u=s.getExtent(),c=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/i.count(),f=t[l]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},h=f.stacks;t[l]=f;var v=Sp(a);h[v]||f.autoWidthCount++,h[v]=h[v]||{width:0,maxWidth:0};var d=W(a.get("barWidth"),c),p=W(a.get("barMaxWidth"),c),g=a.get("barGap"),m=a.get("barCategoryGap");d&&!h[v].width&&(d=Math.min(f.remainedWidth,d),h[v].width=d,f.remainedWidth-=d),p&&(h[v].maxWidth=p),g!=null&&(f.gap=g),m!=null&&(f.categoryGap=m)});var e={};return b(t,function(a,n){e[n]={};var i=a.stacks,o=a.bandWidth,s=W(a.categoryGap,o),l=W(a.gap,1),u=a.remainedWidth,c=a.autoWidthCount,f=(u-s)/(c+(c-1)*l);f=Math.max(f,0),b(i,function(p,g){var m=p.maxWidth;m&&m-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var c=u*Math.PI/180,f=o+n,h=f*Math.abs(Math.cos(c))+f*Math.abs(Math.sin(c)),v=Math.round(((h-Math.SQRT2*n)/2+Math.SQRT2*n-(h-f)/2)*100)/100;s+=";"+i+":-"+v+"px";var d=t+" solid "+n+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+a+";"];return'
'}function NT(r,t){var e="cubic-bezier(0.23,1,0.32,1)",a=" "+r/2+"s "+e,n="opacity"+a+",visibility"+a;return t||(a=" "+r+"s "+e,n+=le.transformSupported?","+Hl+a:",left"+a+",top"+a),PT+":"+n}function Vf(r,t,e){var a=r.toFixed(0)+"px",n=t.toFixed(0)+"px";if(!le.transformSupported)return e?"top:"+n+";left:"+a+";":[["top",n],["left",a]];var i=le.transform3dSupported,o="translate"+(i?"3d":"")+"("+a+","+n+(i?",0":"")+")";return e?"top:0;left:0;"+Hl+":"+o+";":[["top",0],["left",0],[Tp,o]]}function OT(r){var t=[],e=r.get("fontSize"),a=r.getTextColor();a&&t.push("color:"+a),t.push("font:"+r.getFont()),e&&t.push("line-height:"+Math.round(e*3/2)+"px");var n=r.get("textShadowColor"),i=r.get("textShadowBlur")||0,o=r.get("textShadowOffsetX")||0,s=r.get("textShadowOffsetY")||0;return n&&i&&t.push("text-shadow:"+o+"px "+s+"px "+i+"px "+n),b(["decoration","align"],function(l){var u=r.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function BT(r,t,e){var a=[],n=r.get("transitionDuration"),i=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),l=r.get("shadowOffsetX"),u=r.get("shadowOffsetY"),c=r.getModel("textStyle"),f=bh(r,"html"),h=l+"px "+u+"px "+o+"px "+s;return a.push("box-shadow:"+h),t&&n&&a.push(NT(n,e)),i&&a.push("background-color:"+i),b(["width","color","radius"],function(v){var d="border-"+v,p=il(d),g=r.get(p);g!=null&&a.push(d+":"+g+(v==="color"?"":"px"))}),a.push(OT(c)),f!=null&&a.push("padding:"+$a(f).join("px ")+"px"),a.join(";")+";"}function Ff(r,t,e,a,n){var i=t&&t.painter;if(e){var o=i&&i.getViewportRoot();o&&hg(r,o,e,a,n)}else{r[0]=a,r[1]=n;var s=i&&i.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var GT=function(){function r(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,le.wxa)return null;var a=document.createElement("div");a.domBelongToZr=!0,this.el=a;var n=this._zr=t.getZr(),i=e.appendTo,o=i&&(H(i)?document.querySelector(i):Fo(i)?i:$(i)&&i(t.getDom()));Ff(this._styleCoord,n,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(a),this._api=t,this._container=o;var s=this;a.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},a.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=n.handler,c=n.painter.getViewportRoot();vg(c,l,!0),u.dispatch("mousemove",l)}},a.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),a=LT(e,"position"),n=e.style;n.position!=="absolute"&&a!=="absolute"&&(n.position="relative")}var i=t.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=t.get("className")||""},r.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var a=this.el,n=a.style,i=this._styleCoord;a.innerHTML?n.cssText=kT+BT(t,!this._firstShow,this._longHide)+Vf(i[0],i[1],!0)+("border-color:"+dr(e)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):n.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(t,e,a,n,i){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(H(i)&&a.get("trigger")==="item"&&!bp(a)&&(s=RT(a,n,i)),H(t))o.innerHTML=t+s;else if(t){o.innerHTML="",G(t)||(t=[t]);for(var l=0;l=0?this._tryShow(i,o):n==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,a=this._ecModel,n=this._api,i=e.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&o.manuallyShowTip(e,a,n,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,a,n,i){if(!(i.from===this.uid||le.node||!n.getDom())){var o=Wf(i,n);this._ticket="";var s=i.dataByCoordSys,l=XT(i,a,n);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var c=HT;c.x=i.x,c.y=i.y,c.update(),K(c).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:c},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(e,a,n,i))return;var f=_p(i,a),h=f.point[0],v=f.point[1];h!=null&&v!=null&&this._tryShow({offsetX:h,offsetY:v,target:f.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},o))}},t.prototype.manuallyHideTip=function(e,a,n,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(Wf(i,n))},t.prototype._manuallyAxisShowTip=function(e,a,n,i){var o=i.seriesIndex,s=i.dataIndex,l=a.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=a.getSeriesByIndex(o);if(u){var c=u.getData(),f=oa([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(f.get("trigger")==="axis")return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},t.prototype._tryShow=function(e,a){var n=e.target,i=this._tooltipModel;if(i){this._lastX=e.offsetX,this._lastY=e.offsetY;var o=e.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,e);else if(n){var s=K(n);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;fa(n,function(c){if(K(c).dataIndex!=null)return l=c,!0;if(K(c).tooltipConfig!=null)return u=c,!0},!0),l?this._showSeriesItemTooltip(e,l,a):u?this._showComponentItemTooltip(e,u,a):this._hide(a)}else this._lastDataByCoordSys=null,this._hide(a)}},t.prototype._showOrMove=function(e,a){var n=e.get("showDelay");a=Q(a,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(a,n):a()},t.prototype._showAxisTooltip=function(e,a){var n=this._ecModel,i=this._tooltipModel,o=[a.offsetX,a.offsetY],s=oa([a.tooltipOption],i),l=this._renderMode,u=[],c=Gr("section",{blocks:[],noHeader:!0}),f=[],h=new eo;b(e,function(y){b(y.dataByAxis,function(_){var x=n.getComponent(_.axisDim+"Axis",_.axisIndex),S=_.value;if(!(!x||S==null)){var w=pp(S,x.axis,n,_.seriesDataIndices,_.valueLabelOpt),A=Gr("section",{header:w,noHeader:!Ba(w),sortBlocks:!0,blocks:[]});c.blocks.push(A),b(_.seriesDataIndices,function(T){var M=n.getSeriesByIndex(T.seriesIndex),C=T.dataIndexInside,D=M.getDataParams(C);if(!(D.dataIndex<0)){D.axisDim=_.axisDim,D.axisIndex=_.axisIndex,D.axisType=_.axisType,D.axisId=_.axisId,D.axisValue=Ll(x.axis,{value:S}),D.axisValueLabel=w,D.marker=h.makeTooltipMarker("item",dr(D.color),l);var I=zu(M.formatTooltip(C,!0,null)),L=I.frag;if(L){var k=oa([M],i).get("valueFormatter");A.blocks.push(k?V({valueFormatter:k},L):L)}I.text&&f.push(I.text),u.push(D)}})}})}),c.blocks.reverse(),f.reverse();var v=a.position,d=s.get("order"),p=$u(c,h,l,d,n.get("useUTC"),s.get("textStyle"));p&&f.unshift(p);var g=l==="richText"?` `:"
",m=f.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,u)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,m,u,Math.random()+"",o[0],o[1],v,null,h)})},t.prototype._showSeriesItemTooltip=function(e,a,n){var i=this._ecModel,o=K(a),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,f=o.dataType,h=u.getData(f),v=this._renderMode,d=e.positionDefault,p=oa([h.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var m=u.getDataParams(c,f),y=new eo;m.marker=y.makeTooltipMarker("item",dr(m.color),v);var _=zu(u.formatTooltip(c,!1,f)),x=p.get("order"),S=p.get("valueFormatter"),w=_.frag,A=w?$u(S?V({valueFormatter:S},w):w,y,v,x,i.get("useUTC"),p.get("textStyle")):_.text,T="item_"+u.name+"_"+c;this._showOrMove(p,function(){this._showTooltipContent(p,A,m,T,e.offsetX,e.offsetY,e.position,e.target,y)}),n({type:"showTip",dataIndexInside:c,dataIndex:h.getRawIndex(c),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,a,n){var i=this._renderMode==="html",o=K(a),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(H(l)){var c=l;l={content:c,formatter:c},u=!0}u&&i&&l.content&&(l=ee(l),l.content=Ve(l.content));var f=[l],h=this._ecModel.getComponent(o.componentMainType,o.componentIndex);h&&f.push(h),f.push({formatter:l.content});var v=e.positionDefault,d=oa(f,this._tooltipModel,v?{position:v}:null),p=d.get("content"),g=Math.random()+"",m=new eo;this._showOrMove(d,function(){var y=ee(d.get("formatterParams")||{});this._showTooltipContent(d,p,y,g,e.offsetX,e.offsetY,e.position,a,m)}),n({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,a,n,i,o,s,l,u,c){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var f=this._tooltipContent;f.setEnterable(e.get("enterable"));var h=e.get("formatter");l=l||e.get("position");var v=a,d=this._getNearestPoint([o,s],n,e.get("trigger"),e.get("borderColor")),p=d.color;if(h)if(H(h)){var g=e.ecModel.get("useUTC"),m=G(n)?n[0]:n,y=m&&m.axisType&&m.axisType.indexOf("time")>=0;v=h,y&&(v=Ya(m.axisValue,v,g)),v=ol(v,n,!0)}else if($(h)){var _=Q(function(x,S){x===this._ticket&&(f.setContent(S,c,e,p,l),this._updatePosition(e,l,o,s,f,n,u))},this);this._ticket=i,v=h(n,i,_)}else v=h;f.setContent(v,c,e,p,l),f.show(e,p),this._updatePosition(e,l,o,s,f,n,u)}},t.prototype._getNearestPoint=function(e,a,n,i){if(n==="axis"||G(a))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!G(a))return{color:i||a.color||a.borderColor}},t.prototype._updatePosition=function(e,a,n,i,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();a=a||e.get("position");var f=o.getSize(),h=e.get("align"),v=e.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),$(a)&&(a=a([n,i],s,o.el,d,{viewSize:[u,c],contentSize:f.slice()})),G(a))n=W(a[0],u),i=W(a[1],c);else if(Y(a)){var p=a;p.width=f[0],p.height=f[1];var g=pr(p,{width:u,height:c});n=g.x,i=g.y,h=null,v=null}else if(H(a)&&l){var m=$T(a,d,f,e.get("borderWidth"));n=m[0],i=m[1]}else{var m=UT(n,i,o,u,c,h?null:20,v?null:20);n=m[0],i=m[1]}if(h&&(n-=Uf(h)?f[0]/2:h==="right"?f[0]:0),v&&(i-=Uf(v)?f[1]/2:v==="bottom"?f[1]:0),bp(e)){var m=YT(n,i,o,u,c);n=m[0],i=m[1]}o.moveTo(n,i)},t.prototype._updateContentNotChangedOnAxis=function(e,a){var n=this._lastDataByCoordSys,i=this._cbParamsList,o=!!n&&n.length===e.length;return o&&b(n,function(s,l){var u=s.dataByAxis||[],c=e[l]||{},f=c.dataByAxis||[];o=o&&u.length===f.length,o&&b(u,function(h,v){var d=f[v]||{},p=h.seriesDataIndices||[],g=d.seriesDataIndices||[];o=o&&h.value===d.value&&h.axisType===d.axisType&&h.axisId===d.axisId&&p.length===g.length,o&&b(p,function(m,y){var _=g[y];o=o&&m.seriesIndex===_.seriesIndex&&m.dataIndex===_.dataIndex}),i&&b(h.seriesDataIndices,function(m){var y=m.seriesIndex,_=a[y],x=i[y];_&&x&&x.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=a,!!o},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,a){le.node||!a.getDom()||(as(this,"_updatePosition"),this._tooltipContent.dispose(),Ss("itemTooltip",a))},t.type="tooltip",t}(it);function oa(r,t,e){var a=t.ecModel,n;e?(n=new me(e,a,a),n=new me(t.option,n,a)):n=t;for(var i=r.length-1;i>=0;i--){var o=r[i];o&&(o instanceof me&&(o=o.get("tooltip",!0)),H(o)&&(o={formatter:o}),o&&(n=new me(o,n,a)))}return n}function Wf(r,t){return r.dispatchAction||Q(t.dispatchAction,t)}function UT(r,t,e,a,n,i,o){var s=e.getSize(),l=s[0],u=s[1];return i!=null&&(r+l+i+2>a?r-=l+i:r+=i),o!=null&&(t+u+o>n?t-=u+o:t+=o),[r,t]}function YT(r,t,e,a,n){var i=e.getSize(),o=i[0],s=i[1];return r=Math.min(r+o,a)-o,t=Math.min(t+s,n)-s,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function $T(r,t,e,a){var n=e[0],i=e[1],o=Math.ceil(Math.SQRT2*a)+8,s=0,l=0,u=t.width,c=t.height;switch(r){case"inside":s=t.x+u/2-n/2,l=t.y+c/2-i/2;break;case"top":s=t.x+u/2-n/2,l=t.y-i-o;break;case"bottom":s=t.x+u/2-n/2,l=t.y+c+o;break;case"left":s=t.x-n-o,l=t.y+c/2-i/2;break;case"right":s=t.x+u+o,l=t.y+c/2-i/2}return[s,l]}function Uf(r){return r==="center"||r==="middle"}function XT(r,t,e){var a=Vs(r).queryOptionMap,n=a.keys()[0];if(!(!n||n==="series")){var i=za(t,n,a.get(n),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=e.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var c=K(u).tooltipConfig;if(c&&c.name===r.name)return l=u,!0}),l)return{componentMainType:n,componentIndex:o.componentIndex,el:l}}}}const ZT=WT;function SC(r){Pt(Gl),r.registerComponentModel(MT),r.registerComponentView(ZT),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},It),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},It)}var qT=function(r,t){if(t==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},KT=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.prototype.init=function(e,a,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(e,a){r.prototype.mergeOption.call(this,e,a),this._updateSelector(e)},t.prototype._updateSelector=function(e){var a=e.selector,n=this.ecModel;a===!0&&(a=e.selector=["all","inverse"]),G(a)&&b(a,function(i,o){H(i)&&(i={type:i}),a[o]=se(i,qT(n,i.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get("selectedMode")==="single"){for(var a=!1,n=0;n=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(te);const ws=KT;var Dr=oe,bs=b,wn=Se,jT=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!1,e}return t.prototype.init=function(){this.group.add(this._contentGroup=new wn),this.group.add(this._selectorGroup=new wn),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,a,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!e.get("show",!0)){var o=e.get("align"),s=e.get("orient");(!o||o==="auto")&&(o=e.get("left")==="right"&&s==="vertical"?"right":"left");var l=e.get("selector",!0),u=e.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,e,a,n,l,s,u);var c=e.getBoxLayoutParams(),f={width:n.getWidth(),height:n.getHeight()},h=e.get("padding"),v=pr(c,f,h),d=this.layoutInner(e,o,v,i,l,u),p=pr(j({width:d.width,height:d.height},c),f,h);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=CT(d,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,a,n,i,o,s,l){var u=this.getContentGroup(),c=Z(),f=a.get("selectedMode"),h=[];n.eachRawSeries(function(v){!v.get("legendHoverLink")&&h.push(v.id)}),bs(a.getData(),function(v,d){var p=v.get("name");if(!this.newlineDisabled&&(p===""||p===` `)){var g=new wn;g.newline=!0,u.add(g);return}var m=n.getSeriesByName(p)[0];if(!c.get(p)){if(m){var y=m.getData(),_=y.getVisual("legendLineStyle")||{},x=y.getVisual("legendIcon"),S=y.getVisual("style"),w=this._createItem(m,p,d,v,a,e,_,S,x,f,i);w.on("click",Dr(Yf,p,null,i,h)).on("mouseover",Dr(As,m.name,null,i,h)).on("mouseout",Dr(Ts,m.name,null,i,h)),n.ssr&&w.eachChild(function(A){var T=K(A);T.seriesIndex=m.seriesIndex,T.dataIndex=d,T.ssrType="legend"}),c.set(p,!0)}else n.eachRawSeries(function(A){if(!c.get(p)&&A.legendVisualProvider){var T=A.legendVisualProvider;if(!T.containName(p))return;var M=T.indexOfName(p),C=T.getItemVisual(M,"style"),D=T.getItemVisual(M,"legendIcon"),I=dg(C.fill);I&&I[3]===0&&(I[3]=.2,C=V(V({},C),{fill:pg(I,"rgba")}));var L=this._createItem(A,p,d,v,a,e,{},C,D,f,i);L.on("click",Dr(Yf,null,p,i,h)).on("mouseover",Dr(As,null,p,i,h)).on("mouseout",Dr(Ts,null,p,i,h)),n.ssr&&L.eachChild(function(k){var P=K(k);P.seriesIndex=A.seriesIndex,P.dataIndex=d,P.ssrType="legend"}),c.set(p,!0)}},this);c.get(p)||console.warn(p+" series not exists. Legend data should be same with series name or data name.")}},this),o&&this._createSelector(o,a,i,s,l)},t.prototype._createSelector=function(e,a,n,i,o){var s=this.getSelectorGroup();bs(e,function(u){var c=u.type,f=new ge({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(f);var h=a.getModel("selectorLabel"),v=a.getModel(["emphasis","selectorLabel"]);Wa(f,{normal:h,emphasis:v},{defaultText:u.title}),zn(f)})},t.prototype._createItem=function(e,a,n,i,o,s,l,u,c,f,h){var v=e.visualDrawType,d=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(a),m=i.get("symbolRotate"),y=i.get("symbolKeepAspect"),_=i.get("icon");c=_||c||"roundRect";var x=JT(c,i,l,u,v,g,h),S=new wn,w=i.getModel("textStyle");if($(e.getLegendIcon)&&(!_||_==="inherit"))S.add(e.getLegendIcon({itemWidth:d,itemHeight:p,icon:c,iconRotate:m,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:y}));else{var A=_==="inherit"&&e.getData().getVisual("symbol")?m==="inherit"?e.getData().getVisual("symbolRotate"):m:0;S.add(QT({itemWidth:d,itemHeight:p,icon:c,iconRotate:A,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:y}))}var T=s==="left"?d+5:-5,M=s,C=o.get("formatter"),D=a;H(C)&&C?D=C.replace("{name}",a??""):$(C)&&(D=C(a));var I=g?w.getTextColor():i.get("inactiveColor");S.add(new ge({style:Qe(w,{text:D,x:T,y:p/2,fill:I,align:M,verticalAlign:"middle"},{inheritColor:I})}));var L=new De({shape:S.getBoundingRect(),style:{fill:"transparent"}}),k=i.getModel("tooltip");return k.get("show")&&Ks({el:L,componentModel:o,itemName:a,itemTooltipOption:k.option}),S.add(L),S.eachChild(function(P){P.silent=!0}),L.silent=!f,this.getContentGroup().add(S),zn(S),S.__legendDataIndex=n,S},t.prototype.layoutInner=function(e,a,n,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();ya(e.get("orient"),l,e.get("itemGap"),n.width,n.height);var c=l.getBoundingRect(),f=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){ya("horizontal",u,e.get("selectorItemGap",!0));var h=u.getBoundingRect(),v=[-h.x,-h.y],d=e.get("selectorButtonGap",!0),p=e.getOrient().index,g=p===0?"width":"height",m=p===0?"height":"width",y=p===0?"y":"x";s==="end"?v[p]+=c[g]+d:f[p]+=h[g]+d,v[1-p]+=c[m]/2-h[m]/2,u.x=v[0],u.y=v[1],l.x=f[0],l.y=f[1];var _={x:0,y:0};return _[g]=c[g]+d+h[g],_[m]=Math.max(c[m],h[m]),_[y]=Math.min(0,h[y]+v[1-p]),_}else return l.x=f[0],l.y=f[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(it);function JT(r,t,e,a,n,i,o){function s(g,m){g.lineWidth==="auto"&&(g.lineWidth=m.lineWidth>0?2:0),bs(g,function(y,_){g[_]==="inherit"&&(g[_]=m[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=r.lastIndexOf("empty",0)===0?"fill":"stroke",f=l.getShallow("decal");u.decal=!f||f==="inherit"?a.decal:os(f,o),u.fill==="inherit"&&(u.fill=a[n]),u.stroke==="inherit"&&(u.stroke=a[c]),u.opacity==="inherit"&&(u.opacity=(n==="fill"?a:e).opacity),s(u,a);var h=t.getModel("lineStyle"),v=h.getLineStyle();if(s(v,e),u.fill==="auto"&&(u.fill=a.fill),u.stroke==="auto"&&(u.stroke=a.fill),v.stroke==="auto"&&(v.stroke=a.fill),!i){var d=t.get("inactiveBorderWidth"),p=u[c];u.lineWidth=d==="auto"?a.lineWidth>0&&p?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),v.stroke=h.get("inactiveColor"),v.lineWidth=h.get("inactiveWidth")}return{itemStyle:u,lineStyle:v}}function QT(r){var t=r.icon||"roundRect",e=Lt(t,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return e.setStyle(r.itemStyle),e.rotation=(r.iconRotate||0)*Math.PI/180,e.setOrigin([r.itemWidth/2,r.itemHeight/2]),t.indexOf("empty")>-1&&(e.style.stroke=e.style.fill,e.style.fill="#fff",e.style.lineWidth=2),e}function Yf(r,t,e,a){Ts(r,t,e,a),e.dispatchAction({type:"legendToggleSelect",name:r??t}),As(r,t,e,a)}function Dp(r){for(var t=r.getZr().storage.getDisplayList(),e,a=0,n=t.length;an[o],g=[-v.x,-v.y];a||(g[i]=c[u]);var m=[0,0],y=[-d.x,-d.y],_=ae(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(p){var x=e.get("pageButtonPosition",!0);x==="end"?y[i]+=n[o]-d[o]:m[i]+=d[o]+_}y[1-i]+=v[s]/2-d[s]/2,c.setPosition(g),f.setPosition(m),h.setPosition(y);var S={x:0,y:0};if(S[o]=p?n[o]:v[o],S[s]=Math.max(v[s],d[s]),S[l]=Math.min(0,d[l]+y[1-i]),f.__rectSize=n[o],p){var w={x:0,y:0};w[o]=Math.max(n[o]-d[o]-_,0),w[s]=S[s],f.setClipPath(new De({shape:w})),f.__rectSize=w[o]}else h.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var A=this._getPageInfo(e);return A.pageIndex!=null&&ce(c,{x:A.contentPosition[0],y:A.contentPosition[1]},p?e:null),this._updatePageInfoView(e,A),S},t.prototype._pageGo=function(e,a,n){var i=this._getPageInfo(a)[e];i!=null&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:a.id})},t.prototype._updatePageInfoView=function(e,a){var n=this._controllerGroup;b(["pagePrev","pageNext"],function(c){var f=c+"DataIndex",h=a[f]!=null,v=n.childOfName(c);v&&(v.setStyle("fill",h?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),v.cursor=h?"pointer":"default")});var i=n.childOfName("pageText"),o=e.get("pageFormatter"),s=a.pageIndex,l=s!=null?s+1:0,u=a.pageCount;i&&o&&i.setStyle("text",H(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(e){var a=e.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,o=e.getOrient().index,s=Oo[o],l=Bo[o],u=this._findTargetItemIndex(a),c=n.children(),f=c[u],h=c.length,v=h?1:0,d={contentPosition:[n.x,n.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return d;var p=x(f);d.contentPosition[o]=-p.s;for(var g=u+1,m=p,y=p,_=null;g<=h;++g)_=x(c[g]),(!_&&y.e>m.s+i||_&&!S(_,m.s))&&(y.i>m.i?m=y:m=_,m&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=m.i),++d.pageCount)),y=_;for(var g=u-1,m=p,y=p,_=null;g>=-1;--g)_=x(c[g]),(!_||!S(y,_.s))&&m.i=A&&w.s<=A+i}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var a,n=this.getContentGroup(),i;return n.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===e&&(a=s)}),a??i},t.type="legend.scroll",t}(Mp);const iC=nC;function oC(r){r.registerAction("legendScroll","legendscroll",function(t,e){var a=t.scrollDataIndex;a!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(n){n.setScrollDataIndex(a)})})}function sC(r){Pt(Ip),r.registerComponentModel(aC),r.registerComponentView(iC),oC(r)}function wC(r){Pt(Ip),Pt(sC)}export{mC as a,hC as b,xC as c,dC as d,fC as e,_C as f,wC as g,pC as h,SC as i,vC as j,gC as k,cC as l,yC as m,Pt as u};