chatlab-cli 0.1.0 → 0.21.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-YAOFJ73U.mjs → chunk-4GI2UPCS.mjs} +80 -129
- package/dist/chunk-4GI2UPCS.mjs.map +1 -0
- package/dist/{chunk-JMRDNHIR.mjs → chunk-7HQWGLX6.mjs} +829 -280
- package/dist/chunk-7HQWGLX6.mjs.map +1 -0
- package/dist/{chunk-DL3BFEAH.mjs → chunk-AIR7EAF4.mjs} +2 -2
- package/dist/chunk-AIR7EAF4.mjs.map +1 -0
- package/dist/{chunk-PF4QFHC6.mjs → chunk-LI4X52E7.mjs} +1050 -864
- package/dist/chunk-LI4X52E7.mjs.map +1 -0
- package/dist/{chunk-OC73KSMV.mjs → chunk-OQVKZTVD.mjs} +2 -2
- package/dist/{chunk-P4N5GEFF.mjs → chunk-OZWXLRJL.mjs} +9 -9
- package/dist/cli.mjs +2 -2
- package/dist/{http-PQEOFGJK.mjs → http-DHQI4G5J.mjs} +6 -6
- package/dist/{import-UR2IE2O7.mjs → import-CQWGIMZQ.mjs} +6 -4
- package/dist/index.mjs +6 -6
- package/dist/{mcp-4XCDZ5PU.mjs → mcp-7Q3FEI3Z.mjs} +5 -6
- package/dist/mcp-7Q3FEI3Z.mjs.map +1 -0
- package/dist/{src-ZELOFE7P.mjs → src-QBT5SYW5.mjs} +14 -2
- package/dist/{stream-import-RP3XB6NM.mjs → stream-import-VG7RP6KJ.mjs} +5 -3
- package/dist-web/assets/{DebugToolsPanel-dUV6pVqD.css → DebugToolsPanel-CoBtqb--.css} +1 -1
- package/dist-web/assets/DebugToolsPanel.vue_vue_type_script_setup_true_lang-CpFGhsl5.js +147 -0
- package/dist-web/assets/{EChartWordcloud-DcC12j9S.js → EChartWordcloud-BYLFxPAX.js} +1 -1
- package/dist-web/assets/{MessageExportModal-CUS9nnwi.js → MessageExportModal-DTgxz1eQ.js} +1 -1
- package/dist-web/assets/electron-2m4Vdk2z.js +1 -0
- package/dist-web/assets/electron-H65bUnhW.js +1 -0
- package/dist-web/assets/{fetch-DvfIZxuz.js → fetch-C2vUkdnA.js} +1 -1
- package/dist-web/assets/fetch-CTZXLLcn.js +1 -0
- package/dist-web/assets/fetch-o5NJ2uWE.js +3 -0
- package/dist-web/assets/index-B8867dX7.css +1 -0
- package/dist-web/assets/{index-CmU6x-uJ.css → index-BE64tUWq.css} +1 -1
- package/dist-web/assets/{index-D3siJhmm.js → index-C4B0hv6C.js} +4 -4
- package/dist-web/assets/index-CbQMfheg.css +1 -0
- package/dist-web/assets/index-DUXf21MT.js +173 -0
- package/dist-web/assets/index-DZiH2cC1.js +7 -0
- package/dist-web/assets/index-DeG0EHOT.js +24 -0
- package/dist-web/assets/index-DuhN8jAf.js +2 -0
- package/dist-web/assets/{vendor-echarts-BXkS9r5W.js → vendor-echarts-C13vDgZW.js} +5 -5
- package/dist-web/assets/{vendor-echarts-wordcloud-CmDVLUv0.js → vendor-echarts-wordcloud-uVdwYsYa.js} +1 -1
- package/dist-web/assets/{vendor-nuxt-ui-D1aReMtR.js → vendor-nuxt-ui-CYMNNdeD.js} +2 -2
- package/dist-web/assets/{vendor-zrender-B6SpLIkk.js → vendor-zrender-5DcYjSZk.js} +2 -2
- package/dist-web/assets/{web-DOZKbBMQ.js → web-DImo6Kjz.js} +1 -1
- package/dist-web/index.html +3 -3
- package/package.json +1 -8
- package/CHANGELOG.md +0 -51
- package/LICENSE +0 -661
- package/dist/chunk-DL3BFEAH.mjs.map +0 -1
- package/dist/chunk-JMRDNHIR.mjs.map +0 -1
- package/dist/chunk-PF4QFHC6.mjs.map +0 -1
- package/dist/chunk-YAOFJ73U.mjs.map +0 -1
- package/dist/mcp-4XCDZ5PU.mjs.map +0 -1
- package/dist-web/assets/DebugToolsPanel.vue_vue_type_script_setup_true_lang-BuOhHrGp.js +0 -155
- package/dist-web/assets/electron-BHjOx6B6.js +0 -1
- package/dist-web/assets/electron-DvcSSc-D.js +0 -1
- package/dist-web/assets/fetch-CJ8Q4qM2.js +0 -1
- package/dist-web/assets/fetch-DgQkWW73.js +0 -3
- package/dist-web/assets/index-68UnLyFT.js +0 -173
- package/dist-web/assets/index-CCE1zef2.js +0 -2
- package/dist-web/assets/index-CLGv8Den.css +0 -1
- package/dist-web/assets/index-CUTe0Sc3.js +0 -16
- package/dist-web/assets/index-CzR1sElx.css +0 -1
- package/dist-web/assets/index-n2XUUgti.js +0 -7
- /package/dist/{chunk-OC73KSMV.mjs.map → chunk-OQVKZTVD.mjs.map} +0 -0
- /package/dist/{chunk-P4N5GEFF.mjs.map → chunk-OZWXLRJL.mjs.map} +0 -0
- /package/dist/{http-PQEOFGJK.mjs.map → http-DHQI4G5J.mjs.map} +0 -0
- /package/dist/{import-UR2IE2O7.mjs.map → import-CQWGIMZQ.mjs.map} +0 -0
- /package/dist/{src-ZELOFE7P.mjs.map → src-QBT5SYW5.mjs.map} +0 -0
- /package/dist/{stream-import-RP3XB6NM.mjs.map → stream-import-VG7RP6KJ.mjs.map} +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import{r as sn,m as X,i as Z,a as N,b as oe,e as be,c as K,d as ee,f as T,g as Bs,h as ht,j as fe,_ as U,k as Zy,l as F,n as Q,P as Be,o as af,p as Rn,q as Le,s as j,t as $y,u as Ky,Z as Gt,v as qy,w as G,x as ae,T as aa,y as En,z as Ct,A as Oh,B as Nh,C as Me,D as Bh,E as jy,F as Qy,G as Jy,H as q,I as On,J as uo,K as Vh,S as kr,R as Hl,L as Nn,M as Pr,N as ve,O as nr,Q as Wl,U as Ul,V as zh,W as le,X as em,Y as Yl,$ as Gh,a0 as ge,a1 as tm,a2 as de,a3 as Fh,a4 as Rr,a5 as Bn,a6 as ue,a7 as gt,a8 as Ye,a9 as ye,aa as sa,ab as Ke,ac as Ce,ad as $,ae as Ri,af as rm,ag as nt,ah as Vs,ai as am,aj as nm,ak as Ei,al as im,am as Vn,an as nf,ao as Io,ap as om,aq as ln,ar as Tr,as as sm,at as Hh,au as of,av as ko,aw as Wh,ax as lm,ay as um,az as Ya,aA as fm,aB as sf,aC as lf,aD as cm,aE as vm,aF as Uh,aG as Ar,aH as uf,aI as Yh,aJ as ff,aK as ha,aL as He,aM as xi,aN as Po,aO as Xh,aP as hm,aQ as rr,aR as zn,aS as dm,aT as pm,aU as na,aV as cf,aW as gm,aX as zs,aY as ym,aZ as mm,a_ as _m,a$ as Sm,b0 as un,b1 as xm,b2 as Zh,b3 as bm,b4 as vf,b5 as wm,b6 as Tm,b7 as Cm}from"./vendor-zrender-B6SpLIkk.js";var hf=1e-4,$h=20;function Mm(r){return r.replace(/^\s+|\s+$/g,"")}var fn=Math.min,$e=Math.max,bt=Math.abs;function it(r,e,t,a){var n=e[0],i=e[1],o=t[0],s=t[1],l=i-n,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(a)if(l>0){if(r<=n)return o;if(r>=i)return s}else{if(r>=n)return o;if(r<=i)return s}else{if(r===n)return o;if(r===i)return s}return(r-n)/l*u+o}var re=Dm;function Dm(r,e,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 Gs(r,e,t)}function Gs(r,e,t){return Z(r)?Mm(r).match(/%$/)?parseFloat(r)/100*e+(t||0):parseFloat(r):r==null?NaN:+r}function ke(r,e,t){return e==null&&(e=10),e=Math.min(Math.max(0,e),$h),r=(+r).toFixed(e),t?r:+r}function Kh(r){return r.sort(function(e,t){return e-t}),r}function Pt(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var e=1,t=0;t<15;t++,e*=10)if(Math.round(r*e)/e===r)return t}return Am(r)}function Am(r){var e=r.toString().toLowerCase(),t=e.indexOf("e"),a=t>0?+e.slice(t+1):0,n=t>0?t:e.length,i=e.indexOf("."),o=i<0?0:n-1-i;return Math.max(0,o-a)}function Lm(r,e){var t=Math.log,a=Math.LN10,n=Math.floor(t(r[1]-r[0])/a),i=Math.round(t(bt(e[1]-e[0]))/a),o=Math.min(Math.max(-n+i,0),20);return isFinite(o)?o:20}function Im(r,e){var t=sn(r,function(v,d){return v+(isNaN(d)?0:d)},0);if(t===0)return[];for(var a=Math.pow(10,e),n=X(r,function(v){return(isNaN(v)?0:v)/t*a*100}),i=a*100,o=X(n,function(v){return Math.floor(v)}),s=sn(o,function(v,d){return v+d},0),l=X(n,function(v,d){return v-o[d]});s<i;){for(var u=Number.NEGATIVE_INFINITY,f=null,c=0,h=l.length;c<h;++c)l[c]>u&&(u=l[c],f=c);++o[f],l[f]=0,++s}return X(o,function(v){return v/a})}function km(r,e){var t=Math.max(Pt(r),Pt(e)),a=r+e;return t>$h?a:ke(a,t)}function qh(r){var e=Math.PI*2;return(r%e+e)%e}function Oi(r){return r>-hf&&r<hf}var Pm=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function Er(r){if(r instanceof Date)return r;if(Z(r)){var e=Pm.exec(r);if(!e)return new Date(NaN);if(e[8]){var t=+e[4]||0;return e[8].toUpperCase()!=="Z"&&(t-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,t,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}else return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}else if(r==null)return new Date(NaN);return new Date(Math.round(r))}function Rm(r){return Math.pow(10,Xl(r))}function Xl(r){if(r===0)return 0;var e=Math.floor(Math.log(r)/Math.LN10);return r/Math.pow(10,e)>=10&&e++,e}function jh(r,e){var t=Xl(r),a=Math.pow(10,t),n=r/a,i;return n<1.5?i=1:n<2.5?i=2:n<4?i=3:n<7?i=5:i=10,r=i*a,t>=-20?+r.toFixed(t<0?-t:0):r}function df(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,t=1,a=0;a<r.length;){for(var n=r[a].interval,i=r[a].close,o=0;o<2;o++)n[o]<=e&&(n[o]=e,i[o]=o?1:1-t),e=n[o],t=i[o];n[0]===n[1]&&i[0]*i[1]!==1?r.splice(a,1):a++}return r;function s(l,u,f){return l.interval[f]<u.interval[f]||l.interval[f]===u.interval[f]&&(l.close[f]-u.close[f]===(f?-1:1)||!f&&s(l,u,1))}}function Ni(r){var e=parseFloat(r);return e==r&&(e!==0||!Z(r)||r.indexOf("x")<=0)?e:NaN}function Em(r){return!isNaN(Ni(r))}function Qh(){return Math.round(Math.random()*9)}function Jh(r,e){return e===0?r:Jh(e,r%e)}function pf(r,e){return r==null?e:e==null?r:r*e/Jh(r,e)}var Om="[ECharts] ",Nm=typeof console<"u"&&console.warn&&console.log;function Bm(r,e,t){Nm&&console[r](Om+e)}function ed(r,e){Bm("error",r)}function Oe(r){throw new Error(r)}function gf(r,e,t){return(e-r)*t+r}var td="series\0",Vm="\0_ec_\0";function De(r){return r instanceof Array?r:r==null?[]:[r]}function Bi(r,e,t){if(r){r[e]=r[e]||{},r.emphasis=r.emphasis||{},r.emphasis[e]=r.emphasis[e]||{};for(var a=0,n=t.length;a<n;a++){var i=t[a];!r.emphasis[e].hasOwnProperty(i)&&r[e].hasOwnProperty(i)&&(r.emphasis[e][i]=r[e][i])}}}var yf=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function Gn(r){return K(r)&&!N(r)&&!(r instanceof Date)?r.value:r}function zm(r){return K(r)&&!(r instanceof Array)}function Gm(r,e,t){var a=t==="normalMerge",n=t==="replaceMerge",i=t==="replaceAll";r=r||[],e=(e||[]).slice();var o=ee();T(e,function(l,u){if(!K(l)){e[u]=null;return}});var s=Fm(r,o,t);return(a||n)&&Hm(s,r,o,e),a&&Wm(s,e),a||n?Um(s,e,n):i&&Ym(s,e),Xm(s),s}function Fm(r,e,t){var a=[];if(t==="replaceAll")return a;for(var n=0;n<r.length;n++){var i=r[n];i&&i.id!=null&&e.set(i.id,n),a.push({existing:t==="replaceMerge"||cn(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return a}function Hm(r,e,t,a){T(a,function(n,i){if(!(!n||n.id==null)){var o=Ja(n.id),s=t.get(o);if(s!=null){var l=r[s];ht(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=n,l.existing=e[s],a[i]=null}}})}function Wm(r,e){T(e,function(t,a){if(!(!t||t.name==null))for(var n=0;n<r.length;n++){var i=r[n].existing;if(!r[n].newOption&&i&&(i.id==null||t.id==null)&&!cn(t)&&!cn(i)&&rd("name",i,t)){r[n].newOption=t,e[a]=null;return}}})}function Um(r,e,t){T(e,function(a){if(a){for(var n,i=0;(n=r[i])&&(n.newOption||cn(n.existing)||n.existing&&a.id!=null&&!rd("id",a,n.existing));)i++;n?(n.newOption=a,n.brandNew=t):r.push({newOption:a,brandNew:t,existing:null,keyInfo:null}),i++}})}function Ym(r,e){T(e,function(t){r.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}function Xm(r){var e=ee();T(r,function(t){var a=t.existing;a&&e.set(a.id,t)}),T(r,function(t){var a=t.newOption;ht(!a||a.id==null||!e.get(a.id)||e.get(a.id)===t,"id duplicates: "+(a&&a.id)),a&&a.id!=null&&e.set(a.id,t),!t.keyInfo&&(t.keyInfo={})}),T(r,function(t,a){var n=t.existing,i=t.newOption,o=t.keyInfo;if(K(i)){if(o.name=i.name!=null?Ja(i.name):n?n.name:td+a,n)o.id=Ja(n.id);else if(i.id!=null)o.id=Ja(i.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(e.get(o.id))}e.set(o.id,t)}})}function rd(r,e,t){var a=rt(e[r],null),n=rt(t[r],null);return a!=null&&n!=null&&a===n}function Ja(r){return rt(r,"")}function rt(r,e){return r==null?e:Z(r)?r:oe(r)||Bs(r)?r+"":e}function Zl(r){var e=r.name;return!!(e&&e.indexOf(td))}function cn(r){return r&&r.id!=null&&Ja(r.id).indexOf(Vm)===0}function Zm(r,e,t){T(r,function(a){var n=a.newOption;K(n)&&(a.keyInfo.mainType=e,a.keyInfo.subType=$m(e,n,a.existing,t))})}function $m(r,e,t,a){var n=e.type?e.type:t?t.subType:a.determineSubType(r,e);return n}function Km(r,e){var t={},a={};return n(r||[],t),n(e||[],a,t),[i(t),i(a)];function n(o,s,l){for(var u=0,f=o.length;u<f;u++){var c=rt(o[u].seriesId,null);if(c==null)return;for(var h=De(o[u].dataIndex),v=l&&l[c],d=0,p=h.length;d<p;d++){var y=h[d];v&&v[y]?v[y]=null:(s[c]||(s[c]={}))[y]=1}}}function i(o,s){var l=[];for(var u in o)if(o.hasOwnProperty(u)&&o[u]!=null)if(s)l.push(+u);else{var f=i(o[u],!0);f.length&&l.push({seriesId:u,dataIndex:f})}return l}}function Lr(r,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return N(e.dataIndex)?X(e.dataIndex,function(t){return r.indexOfRawIndex(t)}):r.indexOfRawIndex(e.dataIndex);if(e.name!=null)return N(e.name)?X(e.name,function(t){return r.indexOfName(t)}):r.indexOfName(e.name)}function ne(){var r="__ec_inner_"+qm++;return function(e){return e[r]||(e[r]={})}}var qm=Qh();function Ro(r,e,t){var a=$l(e,t),n=a.mainTypeSpecified,i=a.queryOptionMap,o=a.others,s=o,l=t?t.defaultMainType:null;return!n&&l&&i.set(l,{}),i.each(function(u,f){var c=Sa(r,f,u,{useDefault:l===f,enableAll:t&&t.enableAll!=null?t.enableAll:!0,enableNone:t&&t.enableNone!=null?t.enableNone:!0});s[f+"Models"]=c.models,s[f+"Model"]=c.models[0]}),s}function $l(r,e){var t;if(Z(r)){var a={};a[r+"Index"]=0,t=a}else t=r;var n=ee(),i={},o=!1;return T(t,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){i[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],c=(u[2]||"").toLowerCase();if(!(!f||!c||e&&e.includeMainTypes&&fe(e.includeMainTypes,f)<0)){o=o||!!f;var h=n.get(f)||n.set(f,{});h[c]=s}}),{mainTypeSpecified:o,queryOptionMap:n,others:i}}var Ze={useDefault:!0,enableAll:!1,enableNone:!1};function Sa(r,e,t,a){a=a||Ze;var n=t.index,i=t.id,o=t.name,s={models:null,specified:n!=null||i!=null||o!=null};if(!s.specified){var l=void 0;return s.models=a.useDefault&&(l=r.getComponent(e))?[l]:[],s}if(n==="none"||n===!1){if(a.enableNone)return s.models=[],s;n=-1}return n==="all"&&(a.enableAll?n=i=o=null:n=-1),s.models=r.queryComponents({mainType:e,index:n,id:i,name:o}),s}function ad(r,e,t){r.setAttribute?r.setAttribute(e,t):r[e]=t}function jm(r,e){return r.getAttribute?r.getAttribute(e):r[e]}function Qm(r){return r==="auto"?be.domSupported?"html":"richText":r||"html"}function nd(r,e,t,a,n){var i=e==null||e==="auto";if(a==null)return a;if(oe(a)){var o=gf(t||0,a,n);return ke(o,i?Math.max(Pt(t||0),Pt(a)):e)}else{if(Z(a))return n<1?t:a;for(var s=[],l=t,u=a,f=Math.max(l?l.length:0,u.length),c=0;c<f;++c){var h=r.getDimensionInfo(c);if(h&&h.type==="ordinal")s[c]=(n<1&&l?l:u)[c];else{var v=l&&l[c]?l[c]:0,d=u[c],o=gf(v,d,n);s[c]=ke(o,i?Math.max(Pt(v),Pt(d)):e)}}return s}}var Jm=".",vr="___EC__COMPONENT__CONTAINER___",id="___EC__EXTENDED_CLASS___";function wt(r){var e={main:"",sub:""};if(r){var t=r.split(Jm);e.main=t[0]||"",e.sub=t[1]||""}return e}function e0(r){ht(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function t0(r){return!!(r&&r[id])}function Kl(r,e){r.$constructor=r,r.extend=function(t){var a=this,n;return r0(a)?n=(function(i){U(o,i);function o(){return i.apply(this,arguments)||this}return o})(a):(n=function(){(t.$constructor||a).apply(this,arguments)},Zy(n,this)),F(n.prototype,t),n[id]=!0,n.extend=this.extend,n.superCall=i0,n.superApply=o0,n.superClass=a,n}}function r0(r){return Q(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function od(r,e){r.extend=e.extend}var a0=Math.round(Math.random()*10);function n0(r){var e=["__\0is_clz",a0++].join("_");r.prototype[e]=!0,r.isInstance=function(t){return!!(t&&t[e])}}function i0(r,e){for(var t=[],a=2;a<arguments.length;a++)t[a-2]=arguments[a];return this.superClass.prototype[e].apply(r,t)}function o0(r,e,t){return this.superClass.prototype[e].apply(r,t)}function fo(r){var e={};r.registerClass=function(a){var n=a.type||a.prototype.type;if(n){e0(n),a.prototype.type=n;var i=wt(n);if(!i.sub)e[i.main]=a;else if(i.sub!==vr){var o=t(i);o[i.sub]=a}}return a},r.getClass=function(a,n,i){var o=e[a];if(o&&o[vr]&&(o=n?o[n]:null),i&&!o)throw new Error(n?"Component "+a+"."+(n||"")+" is used but not imported.":a+".type should be specified.");return o},r.getClassesByMainType=function(a){var n=wt(a),i=[],o=e[n.main];return o&&o[vr]?T(o,function(s,l){l!==vr&&i.push(s)}):i.push(o),i},r.hasClass=function(a){var n=wt(a);return!!e[n.main]},r.getAllClassMainTypes=function(){var a=[];return T(e,function(n,i){a.push(i)}),a},r.hasSubTypes=function(a){var n=wt(a),i=e[n.main];return i&&i[vr]};function t(a){var n=e[a.main];return(!n||!n[vr])&&(n=e[a.main]={},n[vr]=!0),n}}function vn(r,e){for(var t=0;t<r.length;t++)r[t][1]||(r[t][1]=r[t][0]);return e=e||!1,function(a,n,i){for(var o={},s=0;s<r.length;s++){var l=r[s][1];if(!(n&&fe(n,l)>=0||i&&fe(i,l)<0)){var u=a.getShallow(l,e);u!=null&&(o[r[s][0]]=u)}}return o}}var s0=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],l0=vn(s0),u0=(function(){function r(){}return r.prototype.getAreaStyle=function(e,t){return l0(this,e,t)},r})(),te=ne(),f0=function(r,e,t,a){if(a){var n=te(a);n.dataIndex=t,n.dataType=e,n.seriesIndex=r,n.ssrType="chart",a.type==="group"&&a.traverse(function(i){var o=te(i);o.seriesIndex=r,o.dataIndex=t,o.dataType=e,o.ssrType="chart"})}},mf=1,_f={},sd=ne(),ql=ne(),jl=0,co=1,vo=2,Xe=["emphasis","blur","select"],Vi=["normal","emphasis","blur","select"],c0=10,v0=9,Cr="highlight",bi="downplay",zi="select",Fs="unselect",Gi="toggleSelect",Ql="selectchanged";function Hr(r){return r!=null&&r!=="none"}function ho(r,e,t){r.onHoverStateChange&&(r.hoverState||0)!==t&&r.onHoverStateChange(e),r.hoverState=t}function ld(r){ho(r,"emphasis",vo)}function ud(r){r.hoverState===vo&&ho(r,"normal",jl)}function Jl(r){ho(r,"blur",co)}function fd(r){r.hoverState===co&&ho(r,"normal",jl)}function h0(r){r.selected=!0}function d0(r){r.selected=!1}function Sf(r,e,t){e(r,t)}function Ft(r,e,t){Sf(r,e,t),r.isGroup&&r.traverse(function(a){Sf(a,e,t)})}function xf(r,e){switch(e){case"emphasis":r.hoverState=vo;break;case"normal":r.hoverState=jl;break;case"blur":r.hoverState=co;break;case"select":r.selected=!0}}function p0(r,e,t,a){for(var n=r.style,i={},o=0;o<e.length;o++){var s=e[o],l=n[s];i[s]=l??(a&&a[s])}for(var o=0;o<r.animators.length;o++){var u=r.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(t)<0&&u.targetName==="style"&&u.saveTo(i,e)}return i}function g0(r,e,t,a){var n=t&&fe(t,"select")>=0,i=!1;if(r instanceof Be){var o=sd(r),s=n&&o.selectFill||o.normalFill,l=n&&o.selectStroke||o.normalStroke;if(Hr(s)||Hr(l)){a=a||{};var u=a.style||{};u.fill==="inherit"?(i=!0,a=F({},a),u=F({},u),u.fill=s):!Hr(u.fill)&&Hr(s)?(i=!0,a=F({},a),u=F({},u),u.fill=af(s)):!Hr(u.stroke)&&Hr(l)&&(i||(a=F({},a),u=F({},u)),u.stroke=af(l)),a.style=u}}if(a&&a.z2==null){i||(a=F({},a));var f=r.z2EmphasisLift;a.z2=r.z2+(f??c0)}return a}function y0(r,e,t){if(t&&t.z2==null){t=F({},t);var a=r.z2SelectLift;t.z2=r.z2+(a??v0)}return t}function m0(r,e,t){var a=fe(r.currentStates,e)>=0,n=r.style.opacity,i=a?null:p0(r,["opacity"],e,{opacity:1});t=t||{};var o=t.style||{};return o.opacity==null&&(t=F({},t),o=F({opacity:a?n:i.opacity*.1},o),t.style=o),t}function Eo(r,e){var t=this.states[r];if(this.style){if(r==="emphasis")return g0(this,r,e,t);if(r==="blur")return m0(this,r,t);if(r==="select")return y0(this,r,t)}return t}function cd(r){r.stateProxy=Eo;var e=r.getTextContent(),t=r.getTextGuideLine();e&&(e.stateProxy=Eo),t&&(t.stateProxy=Eo)}function bf(r,e){!pd(r,e)&&!r.__highByOuter&&Ft(r,ld)}function wf(r,e){!pd(r,e)&&!r.__highByOuter&&Ft(r,ud)}function hn(r,e){r.__highByOuter|=1<<(e||0),Ft(r,ld)}function dn(r,e){!(r.__highByOuter&=~(1<<(e||0)))&&Ft(r,ud)}function _0(r){Ft(r,Jl)}function vd(r){Ft(r,fd)}function hd(r){Ft(r,h0)}function dd(r){Ft(r,d0)}function pd(r,e){return r.__highDownSilentOnTouch&&e.zrByTouch}function gd(r){var e=r.getModel(),t=[],a=[];e.eachComponent(function(n,i){var o=ql(i),s=n==="series",l=s?r.getViewOfSeriesModel(i):r.getViewOfComponentModel(i);!s&&a.push(l),o.isBlured&&(l.group.traverse(function(u){fd(u)}),s&&t.push(i)),o.isBlured=!1}),T(a,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(t,!1,e)})}function Hs(r,e,t,a){var n=a.getModel();t=t||"coordinateSystem";function i(u,f){for(var c=0;c<f.length;c++){var h=u.getItemGraphicEl(f[c]);h&&vd(h)}}if(r!=null&&!(!e||e==="none")){var o=n.getSeriesByIndex(r),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];n.eachSeries(function(u){var f=o===u,c=u.coordinateSystem;c&&c.master&&(c=c.master);var h=c&&s?c===s:f;if(!(t==="series"&&!f||t==="coordinateSystem"&&!h||e==="series"&&f)){var v=a.getViewOfSeriesModel(u);if(v.group.traverse(function(y){y.__highByOuter&&f&&e==="self"||Jl(y)}),Rn(e))i(u.getData(),e);else if(K(e))for(var d=Le(e),p=0;p<d.length;p++)i(u.getData(d[p]),e[d[p]]);l.push(u),ql(u).isBlured=!0}}),n.eachComponent(function(u,f){if(u!=="series"){var c=a.getViewOfComponentModel(f);c&&c.toggleBlurSeries&&c.toggleBlurSeries(l,!0,n)}})}}function Ws(r,e,t){if(!(r==null||e==null)){var a=t.getModel().getComponent(r,e);if(a){ql(a).isBlured=!0;var n=t.getViewOfComponentModel(a);!n||!n.focusBlurEnabled||n.group.traverse(function(i){Jl(i)})}}}function S0(r,e,t){var a=r.seriesIndex,n=r.getData(e.dataType);if(n){var i=Lr(n,e);i=(N(i)?i[0]:i)||0;var o=n.getItemGraphicEl(i);if(!o)for(var s=n.count(),l=0;!o&&l<s;)o=n.getItemGraphicEl(l++);if(o){var u=te(o);Hs(a,u.focus,u.blurScope,t)}else{var f=r.get(["emphasis","focus"]),c=r.get(["emphasis","blurScope"]);f!=null&&Hs(a,f,c,t)}}}function eu(r,e,t,a){var n={focusSelf:!1,dispatchers:null};if(r==null||r==="series"||e==null||t==null)return n;var i=a.getModel().getComponent(r,e);if(!i)return n;var o=a.getViewOfComponentModel(i);if(!o||!o.findHighDownDispatchers)return n;for(var s=o.findHighDownDispatchers(t),l,u=0;u<s.length;u++)if(te(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function x0(r,e,t){var a=te(r),n=eu(a.componentMainType,a.componentIndex,a.componentHighDownName,t),i=n.dispatchers,o=n.focusSelf;i?(o&&Ws(a.componentMainType,a.componentIndex,t),T(i,function(s){return bf(s,e)})):(Hs(a.seriesIndex,a.focus,a.blurScope,t),a.focus==="self"&&Ws(a.componentMainType,a.componentIndex,t),bf(r,e))}function b0(r,e,t){gd(t);var a=te(r),n=eu(a.componentMainType,a.componentIndex,a.componentHighDownName,t).dispatchers;n?T(n,function(i){return wf(i,e)}):wf(r,e)}function w0(r,e,t){if(Xs(e)){var a=e.dataType,n=r.getData(a),i=Lr(n,e);N(i)||(i=[i]),r[e.type===Gi?"toggleSelect":e.type===zi?"select":"unselect"](i,a)}}function Tf(r){var e=r.getAllData();T(e,function(t){var a=t.data,n=t.type;a.eachItemGraphicEl(function(i,o){r.isSelected(o,n)?hd(i):dd(i)})})}function T0(r){var e=[];return r.eachSeries(function(t){var a=t.getAllData();T(a,function(n){n.data;var i=n.type,o=t.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:t.seriesIndex};i!=null&&(s.dataType=i),e.push(s)}})}),e}function Us(r,e,t){tu(r,!0),Ft(r,cd),M0(r,e,t)}function C0(r){tu(r,!1)}function Vt(r,e,t,a){a?C0(r):Us(r,e,t)}function M0(r,e,t){var a=te(r);e!=null?(a.focus=e,a.blurScope=t):a.focus&&(a.focus=null)}var Cf=["emphasis","blur","select"],D0={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function da(r,e,t,a){t=t||"itemStyle";for(var n=0;n<Cf.length;n++){var i=Cf[n],o=e.getModel([i,t]),s=r.ensureState(i);s.style=o[D0[t]]()}}function tu(r,e){var t=e===!1,a=r;r.highDownSilentOnTouch&&(a.__highDownSilentOnTouch=r.highDownSilentOnTouch),(!t||a.__highDownDispatcher)&&(a.__highByOuter=a.__highByOuter||0,a.__highDownDispatcher=!t)}function Ys(r){return!!(r&&r.__highDownDispatcher)}function A0(r){var e=_f[r];return e==null&&mf<=32&&(e=_f[r]=mf++),e}function Xs(r){var e=r.type;return e===zi||e===Fs||e===Gi}function Mf(r){var e=r.type;return e===Cr||e===bi}function L0(r){var e=sd(r);e.normalFill=r.style.fill,e.normalStroke=r.style.stroke;var t=r.states.select||{};e.selectFill=t.style&&t.style.fill||null,e.selectStroke=t.style&&t.style.stroke||null}var I0=ne();function ru(r,e,t,a,n){var i;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();i=o&&o.animation}var s=e&&e.isAnimationEnabled(),l=r==="update";if(s){var u=void 0,f=void 0,c=void 0;a?(u=j(a.duration,200),f=j(a.easing,"cubicOut"),c=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),f=e.getShallow(l?"animationEasingUpdate":"animationEasing"),c=e.getShallow(l?"animationDelayUpdate":"animationDelay")),i&&(i.duration!=null&&(u=i.duration),i.easing!=null&&(f=i.easing),i.delay!=null&&(c=i.delay)),Q(c)&&(c=c(t,n)),Q(u)&&(u=u(t));var h={duration:u||0,delay:c,easing:f};return h}else return null}function au(r,e,t,a,n,i,o){var s=!1,l;Q(n)?(o=i,i=n,n=null):K(n)&&(i=n.cb,o=n.during,s=n.isFrom,l=n.removeOpt,n=n.dataIndex);var u=r==="leave";u||e.stopAnimation("leave");var f=ru(r,a,n,u?l||{}:null,a&&a.getAnimationDelayParams?a.getAnimationDelayParams(e,n):null);if(f&&f.duration>0){var c=f.duration,h=f.delay,v=f.easing,d={duration:c,delay:h||0,easing:v,done:i,force:!!i||!!o,setToFinal:!u,scope:r,during:o};s?e.animateFrom(t,d):e.animateTo(t,d)}else e.stopAnimation(),!s&&e.attr(t),o&&o(1),i&&i()}function Se(r,e,t,a,n,i){au("update",r,e,t,a,n,i)}function Pe(r,e,t,a,n,i){au("enter",r,e,t,a,n,i)}function la(r){if(!r.__zr)return!0;for(var e=0;e<r.animators.length;e++){var t=r.animators[e];if(t.scope==="leave")return!0}return!1}function Fi(r,e,t,a,n,i){la(r)||au("leave",r,e,t,a,n,i)}function Df(r,e,t,a){r.removeTextContent(),r.removeTextGuideLine(),Fi(r,{style:{opacity:0}},e,t,a)}function en(r,e,t){function a(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(n){n.isGroup||Df(n,e,t,a)}):Df(r,e,t,a)}function pn(r){I0(r).oldStyle=r.style}var Zs={},Jt=["x","y"],pa=["width","height"];function k0(r){return Be.extend(r)}var P0=Jy;function R0(r,e){return P0(r,e)}function yt(r,e){Zs[r]=e}function $s(r){if(Zs.hasOwnProperty(r))return Zs[r]}function gn(r,e,t,a){var n=qy(r,e);return t&&(a==="center"&&(t=md(t,n.getBoundingRect())),_d(n,t)),n}function yd(r,e,t){var a=new Gt({style:{image:r,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(n){if(t==="center"){var i={width:n.width,height:n.height};a.setStyle(md(e,i))}}});return a}function md(r,e){var t=e.width/e.height,a=r.height*t,n;a<=r.width?n=r.height:(a=r.width,n=a/t);var i=r.x+r.width/2,o=r.y+r.height/2;return{x:i-a/2,y:o-n/2,width:a,height:n}}var Ks=$y;function _d(r,e){if(r.applyTransform){var t=r.getBoundingRect(),a=t.calculateTransform(e);r.applyTransform(a)}}function yn(r,e){return jy(r,r,{lineWidth:e}),r}function E0(r,e){return Qy(r,r,e),r}var O0=Ky;function wi(r,e){for(var t=Oh([]);r&&r!==e;)Nh(t,r.getLocalTransform(),t),r=r.parent;return t}function ua(r,e,t){return e&&!Rn(e)&&(e=aa.getLocalTransform(e)),t&&(e=En([],e)),Ct([],r,e)}function Sd(r,e,t){var a=e[4]===0||e[5]===0||e[0]===0?1:bt(2*e[4]/e[0]),n=e[4]===0||e[5]===0||e[2]===0?1:bt(2*e[4]/e[2]),i=[r==="left"?-a:r==="right"?a:0,r==="top"?-n:r==="bottom"?n:0];return i=ua(i,e,t),bt(i[0])>bt(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function Af(r){return!r.isGroup}function N0(r){return r.shape!=null}function xd(r,e,t){if(!r||!e)return;function a(o){var s={};return o.traverse(function(l){Af(l)&&l.anid&&(s[l.anid]=l)}),s}function n(o){var s={x:o.x,y:o.y,rotation:o.rotation};return N0(o)&&(s.shape=q(o.shape)),s}var i=a(r);e.traverse(function(o){if(Af(o)&&o.anid){var s=i[o.anid];if(s){var l=n(o);o.attr(n(s)),Se(o,l,t,te(o).dataIndex)}}})}function B0(r,e){return X(r,function(t){var a=t[0];a=$e(a,e.x),a=fn(a,e.x+e.width);var n=t[1];return n=$e(n,e.y),n=fn(n,e.y+e.height),[a,n]})}function V0(r,e){var t=$e(r.x,e.x),a=fn(r.x+r.width,e.x+e.width),n=$e(r.y,e.y),i=fn(r.y+r.height,e.y+e.height);if(a>=t&&i>=n)return{x:t,y:n,width:a-t,height:i-n}}function nu(r,e,t){var a=F({rectHover:!0},e),n=a.style={strokeNoScale:!0};if(t=t||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(n.image=r.slice(8),ae(n,t),new Gt(a)):gn(r.replace("path://",""),a,t,"center")}function z0(r,e,t,a,n){for(var i=0,o=n[n.length-1];i<n.length;i++){var s=n[i];if(bd(r,e,t,a,s[0],s[1],o[0],o[1]))return!0;o=s}}function bd(r,e,t,a,n,i,o,s){var l=t-r,u=a-e,f=o-n,c=s-i,h=Oo(f,c,l,u);if(G0(h))return!1;var v=r-n,d=e-i,p=Oo(v,d,l,u)/h;if(p<0||p>1)return!1;var y=Oo(v,d,f,c)/h;return!(y<0||y>1)}function Oo(r,e,t,a){return r*a-t*e}function G0(r){return r<=1e-6&&r>=-1e-6}function mn(r,e,t,a,n){return e==null||(oe(e)?ce[0]=ce[1]=ce[2]=ce[3]=e:(ce[0]=e[0],ce[1]=e[1],ce[2]=e[2],ce[3]=e[3]),a&&(ce[0]=$e(0,ce[0]),ce[1]=$e(0,ce[1]),ce[2]=$e(0,ce[2]),ce[3]=$e(0,ce[3])),t&&(ce[0]=-ce[0],ce[1]=-ce[1],ce[2]=-ce[2],ce[3]=-ce[3]),Lf(r,ce,"x","width",3,1,n&&n[0]||0),Lf(r,ce,"y","height",0,2,n&&n[1]||0)),r}var ce=[0,0,0,0];function Lf(r,e,t,a,n,i,o){var s=e[i]+e[n],l=r[a];r[a]+=s,o=$e(0,fn(o,l)),r[a]<o?(r[a]=o,r[t]+=e[n]>=0?-e[n]:e[i]>=0?l+e[i]:bt(s)>1e-8?(l-o)*e[n]/s:0):r[t]-=e[n]}function po(r){var e=r.itemTooltipOption,t=r.componentModel,a=r.itemName,n=Z(e)?{formatter:e}:e,i=t.mainType,o=t.componentIndex,s={componentType:i,name:a,$vars:["name"]};s[i+"Index"]=o;var l=r.formatterParamsExtra;l&&T(Le(l),function(f){G(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=te(r.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:a,option:ae({content:a,encodeHTMLContent:!0,formatterParams:s},n)}}function qs(r,e){var t;r.isGroup&&(t=e(r)),t||r.traverse(e)}function Or(r,e){if(r)if(N(r))for(var t=0;t<r.length;t++)qs(r[t],e);else qs(r,e)}function iu(r){return!r||bt(r[1])<Zn&&bt(r[2])<Zn||bt(r[0])<Zn&&bt(r[3])<Zn}var Zn=1e-5;function _n(r,e){return r?Me.copy(r,e):e.clone()}function ou(r,e){return e?Bh(r||On(),e):void 0}function Sn(r){return{z:r.get("z")||0,zlevel:r.get("zlevel")||0}}function F0(r){var e=-1/0,t=1/0;qs(r,function(i){a(i),a(i.getTextContent()),a(i.getTextGuideLine())});function a(i){if(!(!i||i.isGroup)){var o=i.currentStates;if(o.length)for(var s=0;s<o.length;s++)n(i.states[o[s]]);n(i)}}function n(i){if(i){var o=i.z2;o>e&&(e=o),o<t&&(t=o)}}return t>e&&(t=e=0),{min:t,max:e}}function wd(r,e,t){Td(r,e,t,-1/0)}function Td(r,e,t,a){if(r.ignoreModelZ)return a;var n=r.getTextContent(),i=r.getTextGuideLine(),o=r.isGroup;if(o)for(var s=r.childrenRef(),l=0;l<s.length;l++)a=$e(Td(s[l],e,t,a),a);else r.z=e,r.zlevel=t,a=$e(r.z2||0,a);if(n&&(n.z=e,n.zlevel=t,isFinite(a)&&(n.z2=a+2)),i){var u=r.textGuideLineConfig;i.z=e,i.zlevel=t,isFinite(a)&&(i.z2=a+(u&&u.showAbove?1:-1))}return a}yt("circle",uo);yt("ellipse",Vh);yt("sector",kr);yt("ring",Hl);yt("polygon",Nn);yt("polyline",Pr);yt("rect",ve);yt("line",nr);yt("bezierCurve",Wl);yt("arc",Ul);const Cd=Object.freeze(Object.defineProperty({__proto__:null,Arc:Ul,BezierCurve:Wl,BoundingRect:Me,Circle:uo,CompoundPath:zh,Ellipse:Vh,Group:le,Image:Gt,IncrementalDisplayable:em,Line:nr,LinearGradient:Yl,OrientedBoundingRect:Gh,Path:Be,Point:ge,Polygon:Nn,Polyline:Pr,RadialGradient:tm,Rect:ve,Ring:Hl,Sector:kr,Text:de,WH:pa,XY:Jt,applyTransform:ua,calcZ2Range:F0,clipPointsByRect:B0,clipRectByRect:V0,createIcon:nu,ensureCopyRect:_n,ensureCopyTransform:ou,expandOrShrinkRect:mn,extendPath:R0,extendShape:k0,getShapeClass:$s,getTransform:wi,groupTransition:xd,initProps:Pe,isBoundingRectAxisAligned:iu,isElementRemoved:la,lineLineIntersect:bd,linePolygonIntersect:z0,makeImage:yd,makePath:gn,mergePath:Ks,registerShape:yt,removeElement:Fi,removeElementWithFadeOut:en,resizePath:_d,retrieveZInfo:Sn,setTooltipConfig:po,subPixelOptimize:O0,subPixelOptimizeLine:yn,subPixelOptimizeRect:E0,transformDirection:Sd,traverseElements:Or,traverseUpdateZ:wd,updateProps:Se},Symbol.toStringTag,{value:"Module"}));var go={};function Md(r,e){for(var t=0;t<Xe.length;t++){var a=Xe[t],n=e[a],i=r.ensureState(a);i.style=i.style||{},i.style.text=n}var o=r.currentStates.slice();r.clearStates(!0),r.setStyle({text:e.normal}),r.useStates(o,!0)}function js(r,e,t){var a=r.labelFetcher,n=r.labelDataIndex,i=r.labelDimIndex,o=e.normal,s;a&&(s=a.getFormattedLabel(n,"normal",null,i,o&&o.get("formatter"),t!=null?{interpolatedValue:t}:null)),s==null&&(s=Q(r.defaultText)?r.defaultText(n,r,t):r.defaultText);for(var l={normal:s},u=0;u<Xe.length;u++){var f=Xe[u],c=e[f];l[f]=j(a?a.getFormattedLabel(n,f,null,i,c&&c.get("formatter")):null,s)}return l}function ur(r,e,t,a){t=t||go;for(var n=r instanceof de,i=!1,o=0;o<Vi.length;o++){var s=e[Vi[o]];if(s&&s.getShallow("show")){i=!0;break}}var l=n?r:r.getTextContent();if(i){n||(l||(l=new de,r.setTextContent(l)),r.stateProxy&&(l.stateProxy=r.stateProxy));var u=js(t,e),f=e.normal,c=!!f.getShallow("show"),h=Ae(f,a&&a.normal,t,!1,!n);h.text=u.normal,n||r.setTextConfig(Hi(f,t,!1));for(var o=0;o<Xe.length;o++){var v=Xe[o],s=e[v];if(s){var d=l.ensureState(v),p=!!j(s.getShallow("show"),c);if(p!==c&&(d.ignore=!p),d.style=Ae(s,a&&a[v],t,!0,!n),d.style.text=u[v],!n){var y=r.ensureState(v);y.textConfig=Hi(s,t,!0)}}}l.silent=!!f.getShallow("silent"),l.style.x!=null&&(h.x=l.style.x),l.style.y!=null&&(h.y=l.style.y),l.ignore=!c,l.useStyle(h),l.dirty(),t.enableTextSetter&&(xa(l).setLabelText=function(g){var m=js(t,e,g);Md(l,m)})}else l&&(l.ignore=!0);r.dirty()}function Mt(r,e){e=e||"label";for(var t={normal:r.getModel(e)},a=0;a<Xe.length;a++){var n=Xe[a];t[n]=r.getModel([n,e])}return t}function Ae(r,e,t,a,n){var i={};return H0(i,r,t,a,n),e&&F(i,e),i}function Hi(r,e,t){e=e||{};var a={},n,i=r.getShallow("rotate"),o=j(r.getShallow("distance"),t?null:5),s=r.getShallow("offset");return n=r.getShallow("position")||(t?null:"inside"),n==="outside"&&(n=e.defaultOutsidePosition||"top"),n!=null&&(a.position=n),s!=null&&(a.offset=s),i!=null&&(i*=Math.PI/180,a.rotation=i),o!=null&&(a.distance=o),a.outsideFill=r.get("color")==="inherit"?e.inheritColor||null:"auto",e.autoOverflowArea!=null&&(a.autoOverflowArea=e.autoOverflowArea),e.layoutRect!=null&&(a.layoutRect=e.layoutRect),a}function H0(r,e,t,a,n){t=t||go;var i=e.ecModel,o=i&&i.option.textStyle,s=W0(e),l;if(s){l={};var u="richInheritPlainLabel",f=j(e.get(u),i?i.get(u):void 0);for(var c in s)if(s.hasOwnProperty(c)){var h=e.getModel(["rich",c]);Rf(l[c]={},h,o,e,f,t,a,n,!1,!0)}}l&&(r.rich=l);var v=e.get("overflow");v&&(r.overflow=v);var d=e.get("lineOverflow");d&&(r.lineOverflow=d);var p=r,y=e.get("minMargin");if(y!=null)y=oe(y)?y/2:0,p.margin=[y,y,y,y],p.__marginType=ia.minMargin;else{var g=e.get("textMargin");g!=null&&(p.margin=Fh(g),p.__marginType=ia.textMargin)}Rf(r,e,o,null,null,t,a,n,!0,!1)}function W0(r){for(var e;r&&r!==r.ecModel;){var t=(r.option||go).rich;if(t){e=e||{};for(var a=Le(t),n=0;n<a.length;n++){var i=a[n];e[i]=1}}r=r.parentModel}return e}var If=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],kf=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],Pf=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Rf(r,e,t,a,n,i,o,s,l,u){t=!o&&t||go;var f=i&&i.inheritColor,c=e.getShallow("color"),h=e.getShallow("textBorderColor"),v=j(e.getShallow("opacity"),t.opacity);(c==="inherit"||c==="auto")&&(f?c=f:c=null),(h==="inherit"||h==="auto")&&(f?h=f:h=null),s||(c=c||t.color,h=h||t.textBorderColor),c!=null&&(r.fill=c),h!=null&&(r.stroke=h);var d=j(e.getShallow("textBorderWidth"),t.textBorderWidth);d!=null&&(r.lineWidth=d);var p=j(e.getShallow("textBorderType"),t.textBorderType);p!=null&&(r.lineDash=p);var y=j(e.getShallow("textBorderDashOffset"),t.textBorderDashOffset);y!=null&&(r.lineDashOffset=y),!o&&v==null&&!u&&(v=i&&i.defaultOpacity),v!=null&&(r.opacity=v),!o&&!s&&r.fill==null&&i.inheritColor&&(r.fill=i.inheritColor);for(var g=0;g<If.length;g++){var m=If[g],_=n!==!1&&a?Rr(e.getShallow(m),a.getShallow(m),t[m]):j(e.getShallow(m),t[m]);_!=null&&(r[m]=_)}for(var g=0;g<kf.length;g++){var m=kf[g],_=e.getShallow(m);_!=null&&(r[m]=_)}if(r.verticalAlign==null){var S=e.getShallow("baseline");S!=null&&(r.verticalAlign=S)}if(!l||!i.disableBox){for(var g=0;g<Pf.length;g++){var m=Pf[g],_=e.getShallow(m);_!=null&&(r[m]=_)}var b=e.getShallow("borderType");b!=null&&(r.borderDash=b),(r.backgroundColor==="auto"||r.backgroundColor==="inherit")&&f&&(r.backgroundColor=f),(r.borderColor==="auto"||r.borderColor==="inherit")&&f&&(r.borderColor=f)}}function Dd(r,e){var t=e&&e.getModel("textStyle");return Bn([r.fontStyle||t&&t.getShallow("fontStyle")||"",r.fontWeight||t&&t.getShallow("fontWeight")||"",(r.fontSize||t&&t.getShallow("fontSize")||12)+"px",r.fontFamily||t&&t.getShallow("fontFamily")||"sans-serif"].join(" "))}var xa=ne();function U0(r,e,t,a){if(r){var n=xa(r);n.prevValue=n.value,n.value=t;var i=e.normal;n.valueAnimation=i.get("valueAnimation"),n.valueAnimation&&(n.precision=i.get("precision"),n.defaultInterpolatedText=a,n.statesModels=e)}}function Y0(r,e,t,a,n){var i=xa(r);if(!i.valueAnimation||i.prevValue===i.value)return;var o=i.defaultInterpolatedText,s=j(i.interpolatedValue,i.prevValue),l=i.value;function u(f){var c=nd(t,i.precision,s,l,f);i.interpolatedValue=f===1?null:c;var h=js({labelDataIndex:e,labelFetcher:n,defaultText:o?o(c):c+""},i.statesModels,c);Md(r,h)}r.percent=0,(i.prevValue==null?Pe:Se)(r,{percent:1},a,e,null,u)}var ia={minMargin:1,textMargin:2},X0=["textStyle","color"],No=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Bo=new de,Z0=(function(){function r(){}return r.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(X0):null)},r.prototype.getFont=function(){return Dd({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},r.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},a=0;a<No.length;a++)t[No[a]]=this.getShallow(No[a]);return Bo.useStyle(t),Bo.update(),Bo.getBoundingRect()},r})(),Ad=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],$0=vn(Ad),K0=(function(){function r(){}return r.prototype.getLineStyle=function(e){return $0(this,e)},r})(),Ld=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],q0=vn(Ld),j0=(function(){function r(){}return r.prototype.getItemStyle=function(e,t){return q0(this,e,t)},r})(),he=(function(){function r(e,t,a){this.parentModel=t,this.ecModel=a,this.option=e}return r.prototype.init=function(e,t,a){},r.prototype.mergeOption=function(e,t){ue(this.option,e,!0)},r.prototype.get=function(e,t){return e==null?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},r.prototype.getShallow=function(e,t){var a=this.option,n=a==null?a:a[e];if(n==null&&!t){var i=this.parentModel;i&&(n=i.getShallow(e))}return n},r.prototype.getModel=function(e,t){var a=e!=null,n=a?this.parsePath(e):null,i=a?this._doGet(n):this.option;return t=t||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(n)),new r(i,t,this.ecModel)},r.prototype.isEmpty=function(){return this.option==null},r.prototype.restoreData=function(){},r.prototype.clone=function(){var e=this.constructor;return new e(q(this.option))},r.prototype.parsePath=function(e){return typeof e=="string"?e.split("."):e},r.prototype.resolveParentPath=function(e){return e},r.prototype.isAnimationEnabled=function(){if(!be.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},r.prototype._doGet=function(e,t){var a=this.option;if(!e)return a;for(var n=0;n<e.length&&!(e[n]&&(a=a&&typeof a=="object"?a[e[n]]:null,a==null));n++);return a==null&&t&&(a=t._doGet(this.resolveParentPath(e),t.parentModel)),a},r})();Kl(he);n0(he);gt(he,K0);gt(he,j0);gt(he,u0);gt(he,Z0);var Q0=Math.round(Math.random()*10);function yo(r){return[r||"",Q0++].join("_")}function J0(r){var e={};r.registerSubTypeDefaulter=function(t,a){var n=wt(t);e[n.main]=a},r.determineSubType=function(t,a){var n=a.type;if(!n){var i=wt(t).main;r.hasSubTypes(t)&&e[i]&&(n=e[i](a))}return n}}function e_(r,e){r.topologicalTravel=function(i,o,s,l){if(!i.length)return;var u=t(o),f=u.graph,c=u.noEntryList,h={};for(T(i,function(m){h[m]=!0});c.length;){var v=c.pop(),d=f[v],p=!!h[v];p&&(s.call(l,v,d.originalDeps.slice()),delete h[v]),T(d.successor,p?g:y)}T(h,function(){var m="";throw new Error(m)});function y(m){f[m].entryCount--,f[m].entryCount===0&&c.push(m)}function g(m){h[m]=!0,y(m)}};function t(i){var o={},s=[];return T(i,function(l){var u=a(o,l),f=u.originalDeps=e(l),c=n(f,i);u.entryCount=c.length,u.entryCount===0&&s.push(l),T(c,function(h){fe(u.predecessor,h)<0&&u.predecessor.push(h);var v=a(o,h);fe(v.successor,h)<0&&v.successor.push(l)})}),{graph:o,noEntryList:s}}function a(i,o){return i[o]||(i[o]={predecessor:[],successor:[]}),i[o]}function n(i,o){var s=[];return T(i,function(l){fe(o,l)>=0&&s.push(l)}),s}}function mo(r,e){return ue(ue({},r,!0),e,!0)}const t_={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:". "}}}},r_={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 Wi="ZH",su="EN",fa=su,Ti={},lu={},Id=be.domSupported?(function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||fa).toUpperCase();return r.indexOf(Wi)>-1?Wi:fa})():fa;function kd(r,e){r=r.toUpperCase(),lu[r]=new he(e),Ti[r]=e}function a_(r){if(Z(r)){var e=Ti[r.toUpperCase()]||{};return r===Wi||r===su?q(e):ue(q(e),q(Ti[fa]),!1)}else return ue(q(r),q(Ti[fa]),!1)}function Qs(r){return lu[r]}function n_(){return lu[fa]}kd(su,t_);kd(Wi,r_);var i_=null;function Ui(){return i_}var uu=1e3,fu=uu*60,tn=fu*60,tt=tn*24,Ef=tt*365,o_={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},Ci={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},s_="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",$n="{yyyy}-{MM}-{dd}",Of={year:"{yyyy}",month:"{yyyy}-{MM}",day:$n,hour:$n+" "+Ci.hour,minute:$n+" "+Ci.minute,second:$n+" "+Ci.second,millisecond:s_},Mr=["year","month","day","hour","minute","second","millisecond"],l_=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function u_(r){return!Z(r)&&!Q(r)?f_(r):r}function f_(r){r=r||{};var e={},t=!0;return T(Mr,function(a){t&&(t=r[a]==null)}),T(Mr,function(a,n){var i=r[a];e[a]={};for(var o=null,s=n;s>=0;s--){var l=Mr[s],u=K(i)&&!N(i)?i[l]:i,f=void 0;N(u)?(f=u.slice(),o=f[0]||""):Z(u)?(o=u,f=[o]):(o==null?o=Ci[a]:o_[l].test(o)||(o=e[l][l][0]+" "+o),f=[o],t&&(f[1]="{primary|"+o+"}")),e[a][l]=f}}),e}function Yt(r,e){return r+="","0000".substr(0,e-r.length)+r}function rn(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 c_(r){return r===rn(r)}function v_(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function _o(r,e,t,a){var n=Er(r),i=n[Pd(t)](),o=n[cu(t)]()+1,s=Math.floor((o-1)/3)+1,l=n[vu(t)](),u=n["get"+(t?"UTC":"")+"Day"](),f=n[hu(t)](),c=(f-1)%12+1,h=n[du(t)](),v=n[pu(t)](),d=n[gu(t)](),p=f>=12?"pm":"am",y=p.toUpperCase(),g=a instanceof he?a:Qs(a||Id)||n_(),m=g.getModel("time"),_=m.get("month"),S=m.get("monthAbbr"),b=m.get("dayOfWeek"),x=m.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,p+"").replace(/{A}/g,y+"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,Yt(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,S[o-1]).replace(/{MM}/g,Yt(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Yt(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[u]).replace(/{ee}/g,x[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Yt(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,Yt(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,Yt(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,Yt(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,Yt(d,3)).replace(/{S}/g,d+"")}function h_(r,e,t,a,n){var i=null;if(Z(t))i=t;else if(Q(t)){var o={time:r.time,level:r.time.level},s=Ui();s&&s.makeAxisLabelFormatterParamBreak(o,r.break),i=t(r.value,e,o)}else{var l=r.time;if(l){var u=t[l.lowerTimeUnit][l.upperTimeUnit];i=u[Math.min(l.level,u.length-1)]||""}else{var f=Yi(r.value,n);i=t[f][f][0]}}return _o(new Date(r.value),i,n,a)}function Yi(r,e){var t=Er(r),a=t[cu(e)]()+1,n=t[vu(e)](),i=t[hu(e)](),o=t[du(e)](),s=t[pu(e)](),l=t[gu(e)](),u=l===0,f=u&&s===0,c=f&&o===0,h=c&&i===0,v=h&&n===1,d=v&&a===1;return d?"year":v?"month":h?"day":c?"hour":f?"minute":u?"second":"millisecond"}function Js(r,e,t){switch(e){case"year":r[Rd(t)](0);case"month":r[Ed(t)](1);case"day":r[Od(t)](0);case"hour":r[Nd(t)](0);case"minute":r[Bd(t)](0);case"second":r[Vd(t)](0)}return r}function Pd(r){return r?"getUTCFullYear":"getFullYear"}function cu(r){return r?"getUTCMonth":"getMonth"}function vu(r){return r?"getUTCDate":"getDate"}function hu(r){return r?"getUTCHours":"getHours"}function du(r){return r?"getUTCMinutes":"getMinutes"}function pu(r){return r?"getUTCSeconds":"getSeconds"}function gu(r){return r?"getUTCMilliseconds":"getMilliseconds"}function d_(r){return r?"setUTCFullYear":"setFullYear"}function Rd(r){return r?"setUTCMonth":"setMonth"}function Ed(r){return r?"setUTCDate":"setDate"}function Od(r){return r?"setUTCHours":"setHours"}function Nd(r){return r?"setUTCMinutes":"setMinutes"}function Bd(r){return r?"setUTCSeconds":"setSeconds"}function Vd(r){return r?"setUTCMilliseconds":"setMilliseconds"}function zd(r){if(!Em(r))return Z(r)?r:"-";var e=(r+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function Gd(r,e){return r=(r||"").toLowerCase().replace(/-(.)/g,function(t,a){return a.toUpperCase()}),e&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var Fn=Fh;function el(r,e,t){var a="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function n(f){return f&&Bn(f)?f:"-"}function i(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=e==="time",s=r instanceof Date;if(o||s){var l=o?Er(r):r;if(isNaN(+l)){if(s)return"-"}else return _o(l,a,t)}if(e==="ordinal")return Bs(r)?n(r):oe(r)&&i(r)?r+"":"-";var u=Ni(r);return i(u)?zd(u):Bs(r)?n(r):typeof r=="boolean"?r+"":"-"}var Nf=["a","b","c","d","e","f","g"],Vo=function(r,e){return"{"+r+(e??"")+"}"};function Fd(r,e,t){N(e)||(e=[e]);var a=e.length;if(!a)return"";for(var n=e[0].$vars||[],i=0;i<n.length;i++){var o=Nf[i];r=r.replace(Vo(o),Vo(o,0))}for(var s=0;s<a;s++)for(var l=0;l<n.length;l++){var u=e[s][n[l]];r=r.replace(Vo(Nf[l],s),t?Ye(u):u)}return r}function p_(r,e,t){return T(e,function(a,n){r=r.replace("{"+n+"}",a)}),r}function g_(r,e){var t=Z(r)?{color:r,extraCssText:e}:r||{},a=t.color,n=t.type;e=t.extraCssText;var i=t.renderMode||"html";if(!a)return"";if(i==="html")return n==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Ye(a)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Ye(a)+";"+(e||"")+'"></span>';var o=t.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:n==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:a}:{width:10,height:10,borderRadius:5,backgroundColor:a}}}function GD(r){return r&&r.charAt(0).toUpperCase()+r.substr(1)}function Ir(r,e){return e=e||"transparent",Z(r)?r:K(r)&&r.colorStops&&(r.colorStops[0]||{}).color||e}function Bf(r,e){if(e==="_blank"||e==="blank"){var t=window.open();t.opener=null,t.location.href=r}else window.open(r,e)}var Mi={},zo={},Hn=(function(){function r(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return r.prototype.create=function(e,t){this._nonSeriesBoxMasterList=a(Mi),this._normalMasterList=a(zo);function a(n,i){var o=[];return T(n,function(s,l){var u=s.create(e,t);o=o.concat(u||[])}),o}},r.prototype.update=function(e,t){T(this._normalMasterList,function(a){a.update&&a.update(e,t)})},r.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},r.register=function(e,t){if(e==="matrix"||e==="calendar"){Mi[e]=t;return}zo[e]=t},r.get=function(e){return zo[e]||Mi[e]},r})();function y_(r){return!!Mi[r]}var tl={coord:1,coord2:2};function m_(r){Hd.set(r.fullType,{getCoord2:void 0}).getCoord2=r.getCoord2}var Hd=ee();function __(r){var e=r.getShallow("coord",!0),t=tl.coord;if(e==null){var a=Hd.get(r.type);a&&a.getCoord2&&(t=tl.coord2,e=a.getCoord2(r))}return{coord:e,from:t}}var kt={none:0,dataCoordSys:1,boxCoordSys:2};function S_(r,e){var t=r.getShallow("coordinateSystem"),a=r.getShallow("coordinateSystemUsage",!0),n=kt.none;if(t){var i=r.mainType==="series";a==null&&(a=i?"data":"box"),a==="data"?(n=kt.dataCoordSys,i||(n=kt.none)):a==="box"&&(n=kt.boxCoordSys,!i&&!y_(t)&&(n=kt.none))}return{coordSysType:t,kind:n}}function yu(r){var e=r.targetModel,t=r.coordSysType,a=r.coordSysProvider,n=r.isDefaultDataCoordSys;r.allowNotFound;var i=S_(e),o=i.kind,s=i.coordSysType;if(n&&o!==kt.dataCoordSys&&(o=kt.dataCoordSys,s=t),o===kt.none||s!==t)return!1;var l=a(t,e);return l?(o===kt.dataCoordSys?e.coordinateSystem=l:e.boxCoordinateSystem=l,!0):!1}var x_=function(r,e){var t=e.getReferringComponents(r,Ze).models[0];return t&&t.coordinateSystem},Di=T,b_=["left","right","top","bottom","width","height"],wr=[["width","left","right"],["height","top","bottom"]];function mu(r,e,t,a,n){var i=0,o=0;a==null&&(a=1/0),n==null&&(n=1/0);var s=0;e.eachChild(function(l,u){var f=l.getBoundingRect(),c=e.childAt(u+1),h=c&&c.getBoundingRect(),v,d;if(r==="horizontal"){var p=f.width+(h?-h.x+f.x:0);v=i+p,v>a||l.newline?(i=0,v=p,o+=s+t,s=f.height):s=Math.max(s,f.height)}else{var y=f.height+(h?-h.y+f.y:0);d=o+y,d>n||l.newline?(i+=s+t,o=0,d=y,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),r==="horizontal"?i=v+t:o=d+t)})}var ca=mu;ye(mu,"vertical");ye(mu,"horizontal");function w_(r,e){return{left:r.getShallow("left",e),top:r.getShallow("top",e),right:r.getShallow("right",e),bottom:r.getShallow("bottom",e),width:r.getShallow("width",e),height:r.getShallow("height",e)}}function T_(r,e){var t=Nr(r,e,{enableLayoutOnlyByCenter:!0}),a=r.getBoxLayoutParams(),n,i;if(t.type===Xa.point)i=t.refPoint,n=qe(a,{width:e.getWidth(),height:e.getHeight()});else{var o=r.get("center"),s=N(o)?o:[o,o];n=qe(a,t.refContainer),i=t.boxCoordFrom===tl.coord2?t.refPoint:[re(s[0],n.width)+n.x,re(s[1],n.height)+n.y]}return{viewRect:n,center:i}}function C_(r,e){var t=T_(r,e),a=t.viewRect,n=t.center,i=r.get("radius");N(i)||(i=[0,i]);var o=re(a.width,e.getWidth()),s=re(a.height,e.getHeight()),l=Math.min(o,s),u=re(i[0],l/2),f=re(i[1],l/2);return{cx:n[0],cy:n[1],r0:u,r:f,viewRect:a}}function qe(r,e,t){t=Fn(t||0);var a=e.width,n=e.height,i=re(r.left,a),o=re(r.top,n),s=re(r.right,a),l=re(r.bottom,n),u=re(r.width,a),f=re(r.height,n),c=t[2]+t[0],h=t[1]+t[3],v=r.aspect;switch(isNaN(u)&&(u=a-s-h-i),isNaN(f)&&(f=n-l-c-o),v!=null&&(isNaN(u)&&isNaN(f)&&(v>a/n?u=a*.8:f=n*.8),isNaN(u)&&(u=v*f),isNaN(f)&&(f=u/v)),isNaN(i)&&(i=a-s-u-h),isNaN(o)&&(o=n-l-f-c),r.left||r.right){case"center":i=a/2-u/2-t[3];break;case"right":i=a-u-h;break}switch(r.top||r.bottom){case"middle":case"center":o=n/2-f/2-t[0];break;case"bottom":o=n-f-c;break}i=i||0,o=o||0,isNaN(u)&&(u=a-h-i-(s||0)),isNaN(f)&&(f=n-c-o-(l||0));var d=new Me((e.x||0)+i+t[3],(e.y||0)+o+t[0],u,f);return d.margin=t,d}function M_(r,e,t){var a=r.getShallow("preserveAspect",!0);if(!a)return e;var n=e.width/e.height;if(Math.abs(Math.atan(t)-Math.atan(n))<1e-9)return e;var i=r.getShallow("preserveAspectAlign",!0),o=r.getShallow("preserveAspectVerticalAlign",!0),s={width:e.width,height:e.height},l=a==="cover";return n>t&&!l||n<t&&l?(s.width=e.height*t,i==="left"?s.left=0:i==="right"?s.right=0:s.left="center"):(s.height=e.width/t,o==="top"?s.top=0:o==="bottom"?s.bottom=0:s.top="middle"),qe(s,e)}var Xa={rect:1,point:2};function Nr(r,e,t){var a,n,i,o=r.boxCoordinateSystem,s;if(o){var l=__(r),u=l.coord,f=l.from;if(o.dataToLayout){i=Xa.rect,s=f;var c=o.dataToLayout(u);a=c.contentRect||c.rect}else t&&t.enableLayoutOnlyByCenter&&o.dataToPoint&&(i=Xa.point,s=f,n=o.dataToPoint(u))}return i==null&&(i=Xa.rect),i===Xa.rect&&(a||(a={x:0,y:0,width:e.getWidth(),height:e.getHeight()}),n=[a.x+a.width/2,a.y+a.height/2]),{type:i,refContainer:a,refPoint:n,boxCoordFrom:s}}function D_(r,e,t,a,n,i){i=i||r,i.x=r.x,i.y=r.y;var o;if(o=r.getBoundingRect(),r.needLocalTransform()){var s=r.getLocalTransform();o=o.clone(),o.applyTransform(s)}var l=qe(ae({width:o.width,height:o.height},e),t,a),u=l.x-o.x,f=l.y-o.y;return i.x+=u,i.y+=f,i===r&&r.markRedraw(),!0}function A_(r,e){return r[wr[e][0]]!=null||r[wr[e][1]]!=null&&r[wr[e][2]]!=null}function xn(r){var e=r.layoutMode||r.constructor.layoutMode;return K(e)?e:e?{type:e}:null}function zt(r,e,t){var a=t&&t.ignoreSize;!N(a)&&(a=[a,a]);var n=o(wr[0],0),i=o(wr[1],1);l(wr[0],r,n),l(wr[1],r,i);function o(u,f){var c={},h=0,v={},d=0,p=2;if(Di(u,function(m){v[m]=r[m]}),Di(u,function(m){G(e,m)&&(c[m]=v[m]=e[m]),s(c,m)&&h++,s(v,m)&&d++}),a[f])return s(e,u[1])?v[u[2]]=null:s(e,u[2])&&(v[u[1]]=null),v;if(d===p||!h)return v;if(h>=p)return c;for(var y=0;y<u.length;y++){var g=u[y];if(!G(c,g)&&G(r,g)){c[g]=r[g];break}}return c}function s(u,f){return u[f]!=null&&u[f]!=="auto"}function l(u,f,c){Di(u,function(h){f[h]=c[h]})}}function ba(r){return L_({},r)}function L_(r,e){return e&&r&&Di(b_,function(t){G(e,t)&&(r[t]=e[t])}),r}var I_=ne(),ie=(function(r){U(e,r);function e(t,a,n){var i=r.call(this,t,a,n)||this;return i.uid=yo("ec_cpt_model"),i}return e.prototype.init=function(t,a,n){this.mergeDefaultAndTheme(t,n)},e.prototype.mergeDefaultAndTheme=function(t,a){var n=xn(this),i=n?ba(t):{},o=a.getTheme();ue(t,o.get(this.mainType)),ue(t,this.getDefaultOption()),n&&zt(t,i,n)},e.prototype.mergeOption=function(t,a){ue(this.option,t,!0);var n=xn(this);n&&zt(this.option,t,n)},e.prototype.optionUpdated=function(t,a){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!t0(t))return t.defaultOption;var a=I_(this);if(!a.defaultOption){for(var n=[],i=t;i;){var o=i.prototype.defaultOption;o&&n.push(o),i=i.superClass}for(var s={},l=n.length-1;l>=0;l--)s=ue(s,n[l],!0);a.defaultOption=s}return a.defaultOption},e.prototype.getReferringComponents=function(t,a){var n=t+"Index",i=t+"Id";return Sa(this.ecModel,t,{index:this.get(n,!0),id:this.get(i,!0)},a)},e.prototype.getBoxLayoutParams=function(){return w_(this,!1)},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=(function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0})(),e})(he);od(ie,he);fo(ie);J0(ie);e_(ie,k_);function k_(r){var e=[];return T(ie.getClassesByMainType(r),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=X(e,function(t){return wt(t).main}),r!=="dataset"&&fe(e,"dataset")<=0&&e.unshift("dataset"),e}var B={color:{},darkColor:{},size:{}},me=B.color={theme:["#5070dd","#b6d634","#505372","#ff994d","#0ca8df","#ffd10a","#fb628b","#785db0","#3fbe95"],neutral00:"#fff",neutral05:"#f4f7fd",neutral10:"#e8ebf0",neutral15:"#dbdee4",neutral20:"#cfd2d7",neutral25:"#c3c5cb",neutral30:"#b7b9be",neutral35:"#aaacb2",neutral40:"#9ea0a5",neutral45:"#929399",neutral50:"#86878c",neutral55:"#797b7f",neutral60:"#6d6e73",neutral65:"#616266",neutral70:"#54555a",neutral75:"#48494d",neutral80:"#3c3c41",neutral85:"#303034",neutral90:"#232328",neutral95:"#17171b",neutral99:"#000",accent05:"#eff1f9",accent10:"#e0e4f2",accent15:"#d0d6ec",accent20:"#c0c9e6",accent25:"#b1bbdf",accent30:"#a1aed9",accent35:"#91a0d3",accent40:"#8292cc",accent45:"#7285c6",accent50:"#6578ba",accent55:"#5c6da9",accent60:"#536298",accent65:"#4a5787",accent70:"#404c76",accent75:"#374165",accent80:"#2e3654",accent85:"#252b43",accent90:"#1b2032",accent95:"#121521",transparent:"rgba(0,0,0,0)",highlight:"rgba(255,231,130,0.8)"};F(me,{primary:me.neutral80,secondary:me.neutral70,tertiary:me.neutral60,quaternary:me.neutral50,disabled:me.neutral20,border:me.neutral30,borderTint:me.neutral20,borderShade:me.neutral40,background:me.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:me.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:me.neutral70,axisLineTint:me.neutral40,axisTick:me.neutral70,axisTickMinor:me.neutral60,axisLabel:me.neutral70,axisSplitLine:me.neutral15,axisMinorSplitLine:me.neutral05});for(var hr in me)if(me.hasOwnProperty(hr)){var Vf=me[hr];hr==="theme"?B.darkColor.theme=me.theme.slice():hr==="highlight"?B.darkColor.highlight="rgba(255,231,130,0.4)":hr.indexOf("accent")===0?B.darkColor[hr]=sa(Vf,null,function(r){return r*.5},function(r){return Math.min(1,1.3-r)}):B.darkColor[hr]=sa(Vf,null,function(r){return r*.9},function(r){return 1-Math.pow(r,1.5)})}B.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var Wd="";typeof navigator<"u"&&(Wd=navigator.platform||"");var Wr="rgba(0, 0, 0, 0.2)",Ud=B.color.theme[0],P_=sa(Ud,null,null,.9);const R_={darkMode:"auto",colorBy:"series",color:B.color.theme,gradientColor:[P_,Ud],aria:{decal:{decals:[{color:Wr,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Wr,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Wr,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Wr,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Wr,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Wr,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Wd.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 Yd=ee(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),je="original",Ge="arrayRows",st="objectRows",mt="keyedColumns",ar="typedArray",Xd="unknown",vt="column",Br="row",Ee={Must:1,Might:2,Not:3},Zd=ne();function E_(r){Zd(r).datasetMap=ee()}function O_(r,e,t){var a={},n=_u(e);if(!n||!r)return a;var i=[],o=[],s=e.ecModel,l=Zd(s).datasetMap,u=n.uid+"_"+t.seriesLayoutBy,f,c;r=r.slice(),T(r,function(p,y){var g=K(p)?p:r[y]={name:p};g.type==="ordinal"&&f==null&&(f=y,c=d(g)),a[g.name]=[]});var h=l.get(u)||l.set(u,{categoryWayDim:c,valueWayDim:0});T(r,function(p,y){var g=p.name,m=d(p);if(f==null){var _=h.valueWayDim;v(a[g],_,m),v(o,_,m),h.valueWayDim+=m}else if(f===y)v(a[g],0,m),v(i,0,m);else{var _=h.categoryWayDim;v(a[g],_,m),v(o,_,m),h.categoryWayDim+=m}});function v(p,y,g){for(var m=0;m<g;m++)p.push(y+m)}function d(p){var y=p.dimsDef;return y?y.length:1}return i.length&&(a.itemName=i),o.length&&(a.seriesName=o),a}function N_(r,e,t){var a={},n=_u(r);if(!n)return a;var i=e.sourceFormat,o=e.dimensionsDefine,s;(i===st||i===mt)&&T(o,function(f,c){(K(f)?f.name:f)==="name"&&(s=c)});var l=(function(){for(var f={},c={},h=[],v=0,d=Math.min(5,t);v<d;v++){var p=Kd(e.data,i,e.seriesLayoutBy,o,e.startIndex,v);h.push(p);var y=p===Ee.Not;if(y&&f.v==null&&v!==s&&(f.v=v),(f.n==null||f.n===f.v||!y&&h[f.n]===Ee.Not)&&(f.n=v),g(f)&&h[f.n]!==Ee.Not)return f;y||(p===Ee.Might&&c.v==null&&v!==s&&(c.v=v),(c.n==null||c.n===c.v)&&(c.n=v))}function g(m){return m.v!=null&&m.n!=null}return g(f)?f:g(c)?c:null})();if(l){a.value=[l.v];var u=s??l.n;a.itemName=[u],a.seriesName=[u]}return a}function _u(r){var e=r.get("data",!0);if(!e)return Sa(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},Ze).models[0]}function B_(r){return!r.get("transform",!0)&&!r.get("fromTransformResult",!0)?[]:Sa(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},Ze).models}function $d(r,e){return Kd(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,e)}function Kd(r,e,t,a,n,i){var o,s=5;if(Ke(r))return Ee.Not;var l,u;if(a){var f=a[i];K(f)?(l=f.name,u=f.type):Z(f)&&(l=f)}if(u!=null)return u==="ordinal"?Ee.Must:Ee.Not;if(e===Ge){var c=r;if(t===Br){for(var h=c[i],v=0;v<(h||[]).length&&v<s;v++)if((o=S(h[n+v]))!=null)return o}else for(var v=0;v<c.length&&v<s;v++){var d=c[n+v];if(d&&(o=S(d[i]))!=null)return o}}else if(e===st){var p=r;if(!l)return Ee.Not;for(var v=0;v<p.length&&v<s;v++){var y=p[v];if(y&&(o=S(y[l]))!=null)return o}}else if(e===mt){var g=r;if(!l)return Ee.Not;var h=g[l];if(!h||Ke(h))return Ee.Not;for(var v=0;v<h.length&&v<s;v++)if((o=S(h[v]))!=null)return o}else if(e===je)for(var m=r,v=0;v<m.length&&v<s;v++){var y=m[v],_=Gn(y);if(!N(_))return Ee.Not;if((o=S(_[i]))!=null)return o}function S(b){var x=Z(b);if(b!=null&&Number.isFinite(Number(b))&&b!=="")return x?Ee.Might:Ee.Not;if(x&&b!=="-")return Ee.Must}return Ee.Not}var V_=ee();function z_(r,e,t){var a=V_.get(e);if(!a)return t;var n=a(r);return n?t.concat(n):t}var zf=ne();ne();var Su=(function(){function r(){}return r.prototype.getColorFromPalette=function(e,t,a){var n=De(this.get("color",!0)),i=this.get("colorLayer",!0);return F_(this,zf,n,i,e,t,a)},r.prototype.clearColorPalette=function(){H_(this,zf)},r})();function G_(r,e){for(var t=r.length,a=0;a<t;a++)if(r[a].length>e)return r[a];return r[t-1]}function F_(r,e,t,a,n,i,o){i=i||r;var s=e(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(n))return u[n];var f=o==null||!a?t:G_(a,o);if(f=f||t,!(!f||!f.length)){var c=f[l];return n&&(u[n]=c),s.paletteIdx=(l+1)%f.length,c}}function H_(r,e){e(r).paletteIdx=0,e(r).paletteNameMap={}}var Kn,Da,Gf,Ff="\0_ec_inner",W_=1,xu=(function(r){U(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(t,a,n,i,o,s){i=i||{},this.option=null,this._theme=new he(i),this._locale=new he(o),this._optionManager=s},e.prototype.setOption=function(t,a,n){var i=Uf(a);this._optionManager.setOption(t,n,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,a){return this._resetOption(t,Uf(a))},e.prototype._resetOption=function(t,a){var n=!1,i=this._optionManager;if(!t||t==="recreate"){var o=i.mountOption(t==="recreate");!this.option||t==="recreate"?Gf(this,o):(this.restoreData(),this._mergeOption(o,a)),n=!0}if((t==="timeline"||t==="media")&&this.restoreData(),!t||t==="recreate"||t==="timeline"){var s=i.getTimelineOption(this);s&&(n=!0,this._mergeOption(s,a))}if(!t||t==="recreate"||t==="media"){var l=i.getMediaOption(this);l.length&&T(l,function(u){n=!0,this._mergeOption(u,a)},this)}return n},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,a){var n=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=ee(),u=a&&a.replaceMergeMainTypeMap;E_(this),T(t,function(c,h){c!=null&&(ie.hasClass(h)?h&&(s.push(h),l.set(h,!0)):n[h]=n[h]==null?q(c):ue(n[h],c,!0))}),u&&u.each(function(c,h){ie.hasClass(h)&&!l.get(h)&&(s.push(h),l.set(h,!0))}),ie.topologicalTravel(s,ie.getAllClassMainTypes(),f,this);function f(c){var h=z_(this,c,De(t[c])),v=i.get(c),d=v?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",p=Gm(v,h,d);Zm(p,c,ie),n[c]=null,i.set(c,null),o.set(c,0);var y=[],g=[],m=0,_;T(p,function(S,b){var x=S.existing,w=S.newOption;if(!w)x&&(x.mergeOption({},this),x.optionUpdated({},!1));else{var D=c==="series",M=ie.getClass(c,S.keyInfo.subType,!D);if(!M)return;if(c==="tooltip"){if(_)return;_=!0}if(x&&x.constructor===M)x.name=S.keyInfo.name,x.mergeOption(w,this),x.optionUpdated(w,!1);else{var A=F({componentIndex:b},S.keyInfo);x=new M(w,this,this,A),F(x,A),S.brandNew&&(x.__requireNewView=!0),x.init(w,this,this),x.optionUpdated(null,!0)}}x?(y.push(x.option),g.push(x),m++):(y.push(void 0),g.push(void 0))},this),n[c]=y,i.set(c,g),o.set(c,m),c==="series"&&Kn(this)}this._seriesIndices||Kn(this)},e.prototype.getOption=function(){var t=q(this.option);return T(t,function(a,n){if(ie.hasClass(n)){for(var i=De(a),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!cn(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,t[n]=i}}),delete t[Ff],t},e.prototype.setTheme=function(t){this._theme=new he(t),this._resetOption("recreate",null)},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,a){var n=this._componentsMap.get(t);if(n){var i=n[a||0];if(i)return i;if(a==null){for(var o=0;o<n.length;o++)if(n[o])return n[o]}}},e.prototype.queryComponents=function(t){var a=t.mainType;if(!a)return[];var n=t.index,i=t.id,o=t.name,s=this._componentsMap.get(a);if(!s||!s.length)return[];var l;return n!=null?(l=[],T(De(n),function(u){s[u]&&l.push(s[u])})):i!=null?l=Hf("id",i,s):o!=null?l=Hf("name",o,s):l=Ce(s,function(u){return!!u}),Wf(l,t)},e.prototype.findComponents=function(t){var a=t.query,n=t.mainType,i=s(a),o=i?this.queryComponents(i):Ce(this._componentsMap.get(n),function(u){return!!u});return l(Wf(o,t));function s(u){var f=n+"Index",c=n+"Id",h=n+"Name";return u&&(u[f]!=null||u[c]!=null||u[h]!=null)?{mainType:n,index:u[f],id:u[c],name:u[h]}:null}function l(u){return t.filter?Ce(u,t.filter):u}},e.prototype.eachComponent=function(t,a,n){var i=this._componentsMap;if(Q(t)){var o=a,s=t;i.each(function(c,h){for(var v=0;c&&v<c.length;v++){var d=c[v];d&&s.call(o,h,d,d.componentIndex)}})}else for(var l=Z(t)?i.get(t):K(t)?this.findComponents(t):null,u=0;l&&u<l.length;u++){var f=l[u];f&&a.call(n,f,f.componentIndex)}},e.prototype.getSeriesByName=function(t){var a=rt(t,null);return Ce(this._componentsMap.get("series"),function(n){return!!n&&a!=null&&n.name===a})},e.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},e.prototype.getSeriesByType=function(t){return Ce(this._componentsMap.get("series"),function(a){return!!a&&a.subType===t})},e.prototype.getSeries=function(){return Ce(this._componentsMap.get("series"),function(t){return!!t})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,a){Da(this),T(this._seriesIndices,function(n){var i=this._componentsMap.get("series")[n];t.call(a,i,n)},this)},e.prototype.eachRawSeries=function(t,a){T(this._componentsMap.get("series"),function(n){n&&t.call(a,n,n.componentIndex)})},e.prototype.eachSeriesByType=function(t,a,n){Da(this),T(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];o.subType===t&&a.call(n,o,i)},this)},e.prototype.eachRawSeriesByType=function(t,a,n){return T(this.getSeriesByType(t),a,n)},e.prototype.isSeriesFiltered=function(t){return Da(this),this._seriesIndicesMap.get(t.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,a){Da(this);var n=[];T(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];t.call(a,o,i)&&n.push(i)},this),this._seriesIndices=n,this._seriesIndicesMap=ee(n)},e.prototype.restoreData=function(t){Kn(this);var a=this._componentsMap,n=[];a.each(function(i,o){ie.hasClass(o)&&n.push(o)}),ie.topologicalTravel(n,ie.getAllClassMainTypes(),function(i){T(a.get(i),function(o){o&&(i!=="series"||!U_(o,t))&&o.restoreData()})})},e.internalField=(function(){Kn=function(t){var a=t._seriesIndices=[];T(t._componentsMap.get("series"),function(n){n&&a.push(n.componentIndex)}),t._seriesIndicesMap=ee(a)},Da=function(t){},Gf=function(t,a){t.option={},t.option[Ff]=W_,t._componentsMap=ee({series:[]}),t._componentsCount=ee();var n=a.aria;K(n)&&n.enabled==null&&(n.enabled=!0),Y_(a,t._theme.option),ue(a,R_,!1),t._mergeOption(a,null)}})(),e})(he);function U_(r,e){if(e){var t=e.seriesIndex,a=e.seriesId,n=e.seriesName;return t!=null&&r.componentIndex!==t||a!=null&&r.id!==a||n!=null&&r.name!==n}}function Y_(r,e){var t=r.color&&!r.colorLayer;T(e,function(a,n){n==="colorLayer"&&t||n==="color"&&r.color||ie.hasClass(n)||(typeof a=="object"?r[n]=r[n]?ue(r[n],a,!1):q(a):r[n]==null&&(r[n]=a))})}function Hf(r,e,t){if(N(e)){var a=ee();return T(e,function(i){if(i!=null){var o=rt(i,null);o!=null&&a.set(i,!0)}}),Ce(t,function(i){return i&&a.get(i[r])})}else{var n=rt(e,null);return Ce(t,function(i){return i&&n!=null&&i[r]===n})}}function Wf(r,e){return e.hasOwnProperty("subType")?Ce(r,function(t){return t&&t.subType===e.subType}):r}function Uf(r){var e=ee();return r&&T(De(r.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}gt(xu,Su);var X_=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],qd=(function(){function r(e){T(X_,function(t){this[t]=$(e[t],e)},this)}return r})(),Z_=/^(min|max)?(.+)$/,$_=(function(){function r(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return r.prototype.setOption=function(e,t,a){e&&(T(De(e.series),function(o){o&&o.data&&Ke(o.data)&&Ri(o.data)}),T(De(e.dataset),function(o){o&&o.source&&Ke(o.source)&&Ri(o.source)})),e=q(e);var n=this._optionBackup,i=K_(e,t,!n);this._newBaseOption=i.baseOption,n?(i.timelineOptions.length&&(n.timelineOptions=i.timelineOptions),i.mediaList.length&&(n.mediaList=i.mediaList),i.mediaDefault&&(n.mediaDefault=i.mediaDefault)):this._optionBackup=i},r.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],q(e?t.baseOption:this._newBaseOption)},r.prototype.getTimelineOption=function(e){var t,a=this._timelineOptions;if(a.length){var n=e.getComponent("timeline");n&&(t=q(a[n.getCurrentIndex()]))}return t},r.prototype.getMediaOption=function(e){var t=this._api.getWidth(),a=this._api.getHeight(),n=this._mediaList,i=this._mediaDefault,o=[],s=[];if(!n.length&&!i)return s;for(var l=0,u=n.length;l<u;l++)q_(n[l].query,t,a)&&o.push(l);return!o.length&&i&&(o=[-1]),o.length&&!Q_(o,this._currentMediaIndices)&&(s=X(o,function(f){return q(f===-1?i.option:n[f].option)})),this._currentMediaIndices=o,s},r})();function K_(r,e,t){var a=[],n,i,o=r.baseOption,s=r.timeline,l=r.options,u=r.media,f=!!r.media,c=!!(l||s||o&&o.timeline);o?(i=o,i.timeline||(i.timeline=s)):((c||f)&&(r.options=r.media=null),i=r),f&&N(u)&&T(u,function(v){v&&v.option&&(v.query?a.push(v):n||(n=v))}),h(i),T(l,function(v){return h(v)}),T(a,function(v){return h(v.option)});function h(v){T(e,function(d){d(v,t)})}return{baseOption:i,timelineOptions:l||[],mediaDefault:n,mediaList:a}}function q_(r,e,t){var a={width:e,height:t,aspectratio:e/t},n=!0;return T(r,function(i,o){var s=o.match(Z_);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();j_(a[u],i,l)||(n=!1)}}),n}function j_(r,e,t){return t==="min"?r>=e:t==="max"?r<=e:r===e}function Q_(r,e){return r.join(",")===e.join(",")}var lt=T,bn=K,Yf=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Go(r){var e=r&&r.itemStyle;if(e)for(var t=0,a=Yf.length;t<a;t++){var n=Yf[t],i=e.normal,o=e.emphasis;i&&i[n]&&(r[n]=r[n]||{},r[n].normal?ue(r[n].normal,i[n]):r[n].normal=i[n],i[n]=null),o&&o[n]&&(r[n]=r[n]||{},r[n].emphasis?ue(r[n].emphasis,o[n]):r[n].emphasis=o[n],o[n]=null)}}function Ve(r,e,t){if(r&&r[e]&&(r[e].normal||r[e].emphasis)){var a=r[e].normal,n=r[e].emphasis;a&&(t?(r[e].normal=r[e].emphasis=null,ae(r[e],a)):r[e]=a),n&&(r.emphasis=r.emphasis||{},r.emphasis[e]=n,n.focus&&(r.emphasis.focus=n.focus),n.blurScope&&(r.emphasis.blurScope=n.blurScope))}}function Za(r){Ve(r,"itemStyle"),Ve(r,"lineStyle"),Ve(r,"areaStyle"),Ve(r,"label"),Ve(r,"labelLine"),Ve(r,"upperLabel"),Ve(r,"edgeLabel")}function xe(r,e){var t=bn(r)&&r[e],a=bn(t)&&t.textStyle;if(a)for(var n=0,i=yf.length;n<i;n++){var o=yf[n];a.hasOwnProperty(o)&&(t[o]=a[o])}}function et(r){r&&(Za(r),xe(r,"label"),r.emphasis&&xe(r.emphasis,"label"))}function J_(r){if(bn(r)){Go(r),Za(r),xe(r,"label"),xe(r,"upperLabel"),xe(r,"edgeLabel"),r.emphasis&&(xe(r.emphasis,"label"),xe(r.emphasis,"upperLabel"),xe(r.emphasis,"edgeLabel"));var e=r.markPoint;e&&(Go(e),et(e));var t=r.markLine;t&&(Go(t),et(t));var a=r.markArea;a&&et(a);var n=r.data;if(r.type==="graph"){n=n||r.nodes;var i=r.links||r.edges;if(i&&!Ke(i))for(var o=0;o<i.length;o++)et(i[o]);T(r.categories,function(u){Za(u)})}if(n&&!Ke(n))for(var o=0;o<n.length;o++)et(n[o]);if(e=r.markPoint,e&&e.data)for(var s=e.data,o=0;o<s.length;o++)et(s[o]);if(t=r.markLine,t&&t.data)for(var l=t.data,o=0;o<l.length;o++)N(l[o])?(et(l[o][0]),et(l[o][1])):et(l[o]);r.type==="gauge"?(xe(r,"axisLabel"),xe(r,"title"),xe(r,"detail")):r.type==="treemap"?(Ve(r.breadcrumb,"itemStyle"),T(r.levels,function(u){Za(u)})):r.type==="tree"&&Za(r.leaves)}}function At(r){return N(r)?r:r?[r]:[]}function Xf(r){return(N(r)?r[0]:r)||{}}function eS(r,e){lt(At(r.series),function(a){bn(a)&&J_(a)});var t=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&t.push("valueAxis","categoryAxis","logAxis","timeAxis"),lt(t,function(a){lt(At(r[a]),function(n){n&&(xe(n,"axisLabel"),xe(n.axisPointer,"label"))})}),lt(At(r.parallel),function(a){var n=a&&a.parallelAxisDefault;xe(n,"axisLabel"),xe(n&&n.axisPointer,"label")}),lt(At(r.calendar),function(a){Ve(a,"itemStyle"),xe(a,"dayLabel"),xe(a,"monthLabel"),xe(a,"yearLabel")}),lt(At(r.radar),function(a){xe(a,"name"),a.name&&a.axisName==null&&(a.axisName=a.name,delete a.name),a.nameGap!=null&&a.axisNameGap==null&&(a.axisNameGap=a.nameGap,delete a.nameGap)}),lt(At(r.geo),function(a){bn(a)&&(et(a),lt(At(a.regions),function(n){et(n)}))}),lt(At(r.timeline),function(a){et(a),Ve(a,"label"),Ve(a,"itemStyle"),Ve(a,"controlStyle",!0);var n=a.data;N(n)&&T(n,function(i){K(i)&&(Ve(i,"label"),Ve(i,"itemStyle"))})}),lt(At(r.toolbox),function(a){Ve(a,"iconStyle"),lt(a.feature,function(n){Ve(n,"iconStyle")})}),xe(Xf(r.axisPointer),"label"),xe(Xf(r.tooltip).axisPointer,"label")}function tS(r,e){for(var t=e.split(","),a=r,n=0;n<t.length&&(a=a&&a[t[n]],a!=null);n++);return a}function rS(r,e,t,a){for(var n=e.split(","),i=r,o,s=0;s<n.length-1;s++)o=n[s],i[o]==null&&(i[o]={}),i=i[o];i[n[s]]==null&&(i[n[s]]=t)}function Zf(r){r&&T(aS,function(e){e[0]in r&&!(e[1]in r)&&(r[e[1]]=r[e[0]])})}var aS=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],nS=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Fo=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Aa(r){var e=r&&r.itemStyle;if(e)for(var t=0;t<Fo.length;t++){var a=Fo[t][1],n=Fo[t][0];e[a]!=null&&(e[n]=e[a])}}function $f(r){r&&r.alignTo==="edge"&&r.margin!=null&&r.edgeDistance==null&&(r.edgeDistance=r.margin)}function Kf(r){r&&r.downplay&&!r.blur&&(r.blur=r.downplay)}function iS(r){r&&r.focusNodeAdjacency!=null&&(r.emphasis=r.emphasis||{},r.emphasis.focus==null&&(r.emphasis.focus="adjacency"))}function jd(r,e){if(r)for(var t=0;t<r.length;t++)e(r[t]),r[t]&&jd(r[t].children,e)}function Qd(r,e){eS(r,e),r.series=De(r.series),T(r.series,function(t){if(K(t)){var a=t.type;if(a==="line")t.clipOverflow!=null&&(t.clip=t.clipOverflow);else if(a==="pie"||a==="gauge"){t.clockWise!=null&&(t.clockwise=t.clockWise),$f(t.label);var n=t.data;if(n&&!Ke(n))for(var i=0;i<n.length;i++)$f(n[i]);t.hoverOffset!=null&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset))}else if(a==="gauge"){var o=tS(t,"pointer.color");o!=null&&rS(t,"itemStyle.color",o)}else if(a==="bar"){Aa(t),Aa(t.backgroundStyle),Aa(t.emphasis);var n=t.data;if(n&&!Ke(n))for(var i=0;i<n.length;i++)typeof n[i]=="object"&&(Aa(n[i]),Aa(n[i]&&n[i].emphasis))}else if(a==="sunburst"){var s=t.highlightPolicy;s&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=s)),Kf(t),jd(t.data,Kf)}else a==="graph"||a==="sankey"?iS(t):a==="map"&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation&&ae(t,t.mapLocation));t.hoverAnimation!=null&&(t.emphasis=t.emphasis||{},t.emphasis&&t.emphasis.scale==null&&(t.emphasis.scale=t.hoverAnimation)),Zf(t)}}),r.dataRange&&(r.visualMap=r.dataRange),T(nS,function(t){var a=r[t];a&&(N(a)||(a=[a]),T(a,function(n){Zf(n)}))})}function oS(r){var e=ee();r.eachSeries(function(t){var a=t.get("stack");if(a){var n=e.get(a)||e.set(a,[]),i=t.getData(),o={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:t};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;n.push(o)}}),e.each(function(t){if(t.length!==0){var a=t[0].seriesModel,n=a.get("stackOrder")||"seriesAsc";n==="seriesDesc"&&t.reverse(),T(t,function(i,o){i.data.setCalculationInfo("stackedOnSeries",o>0?t[o-1].seriesModel:null)}),sS(t)}})}function sS(r){T(r,function(e,t){var a=[],n=[NaN,NaN],i=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";o.modify(i,function(u,f,c){var h=o.get(e.stackedDimension,c);if(isNaN(h))return n;var v,d;s?d=o.getRawIndex(c):v=o.get(e.stackedByDimension,c);for(var p=NaN,y=t-1;y>=0;y--){var g=r[y];if(s||(d=g.data.rawIndexOf(g.stackedByDimension,v)),d>=0){var m=g.data.getByRawIndex(g.stackResultDimension,d);if(l==="all"||l==="positive"&&m>0||l==="negative"&&m<0||l==="samesign"&&h>=0&&m>0||l==="samesign"&&h<=0&&m<0){h=km(h,m),p=m;break}}}return a[0]=h,a[1]=p,a})})}var So=(function(){function r(e){this.data=e.data||(e.sourceFormat===mt?{}:[]),this.sourceFormat=e.sourceFormat||Xd,this.seriesLayoutBy=e.seriesLayoutBy||vt,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var a=0;a<t.length;a++){var n=t[a];n.type==null&&$d(this,a)===Ee.Must&&(n.type="ordinal")}}return r})();function bu(r){return r instanceof So}function rl(r,e,t){t=t||Jd(r);var a=e.seriesLayoutBy,n=uS(r,t,a,e.sourceHeader,e.dimensions),i=new So({data:r,sourceFormat:t,seriesLayoutBy:a,dimensionsDefine:n.dimensionsDefine,startIndex:n.startIndex,dimensionsDetectedCount:n.dimensionsDetectedCount,metaRawOption:q(e)});return i}function wu(r){return new So({data:r,sourceFormat:Ke(r)?ar:je})}function lS(r){return new So({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:q(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function Jd(r){var e=Xd;if(Ke(r))e=ar;else if(N(r)){r.length===0&&(e=Ge);for(var t=0,a=r.length;t<a;t++){var n=r[t];if(n!=null){if(N(n)||Ke(n)){e=Ge;break}else if(K(n)){e=st;break}}}}else if(K(r)){for(var i in r)if(G(r,i)&&Rn(r[i])){e=mt;break}}return e}function uS(r,e,t,a,n){var i,o;if(!r)return{dimensionsDefine:qf(n),startIndex:o,dimensionsDetectedCount:i};if(e===Ge){var s=r;a==="auto"||a==null?jf(function(u){u!=null&&u!=="-"&&(Z(u)?o==null&&(o=1):o=0)},t,s,10):o=oe(a)?a:a?1:0,!n&&o===1&&(n=[],jf(function(u,f){n[f]=u!=null?u+"":""},t,s,1/0)),i=n?n.length:t===Br?s.length:s[0]?s[0].length:null}else if(e===st)n||(n=fS(r));else if(e===mt)n||(n=[],T(r,function(u,f){n.push(f)}));else if(e===je){var l=Gn(r[0]);i=N(l)&&l.length||1}return{startIndex:o,dimensionsDefine:qf(n),dimensionsDetectedCount:i}}function fS(r){for(var e=0,t;e<r.length&&!(t=r[e++]););if(t)return Le(t)}function qf(r){if(r){var e=ee();return X(r,function(t,a){t=K(t)?t:{name:t};var n={name:t.name,displayName:t.displayName,type:t.type};if(n.name==null)return n;n.name+="",n.displayName==null&&(n.displayName=n.name);var i=e.get(n.name);return i?n.name+="-"+i.count++:e.set(n.name,{count:1}),n})}}function jf(r,e,t,a){if(e===Br)for(var n=0;n<t.length&&n<a;n++)r(t[n]?t[n][0]:null,n);else for(var i=t[0]||[],n=0;n<i.length&&n<a;n++)r(i[n],n)}function ep(r){var e=r.sourceFormat;return e===st||e===mt}var dr,pr,gr,yr,Qf,Jf,tp=(function(){function r(e,t){var a=bu(e)?e:wu(e);this._source=a;var n=this._data=a.data,i=a.sourceFormat;a.seriesLayoutBy,i===ar&&(this._offset=0,this._dimSize=t,this._data=n),Jf(this,n,a)}return r.prototype.getSource=function(){return this._source},r.prototype.count=function(){return 0},r.prototype.getItem=function(e,t){},r.prototype.appendData=function(e){},r.prototype.clean=function(){},r.protoInitialize=(function(){var e=r.prototype;e.pure=!1,e.persistent=!0})(),r.internalField=(function(){var e;Jf=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,c=l.startIndex,h=l.dimensionsDefine,v=Qf[Tu(u,f)];if(F(o,v),u===ar)o.getItem=t,o.count=n,o.fillStorage=a;else{var d=rp(u,f);o.getItem=$(d,null,s,c,h);var p=ap(u,f);o.count=$(p,null,s,c,h)}};var t=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,f=u*o,c=0;c<u;c++)s[c]=l[f+c];return s},a=function(o,s,l,u){for(var f=this._data,c=this._dimSize,h=0;h<c;h++){for(var v=u[h],d=v[0]==null?1/0:v[0],p=v[1]==null?-1/0:v[1],y=s-o,g=l[h],m=0;m<y;m++){var _=f[m*c+h];g[o+m]=_,_<d&&(d=_),_>p&&(p=_)}v[0]=d,v[1]=p}},n=function(){return this._data?this._data.length/this._dimSize:0};Qf=(e={},e[Ge+"_"+vt]={pure:!0,appendData:i},e[Ge+"_"+Br]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[st]={pure:!0,appendData:i},e[mt]={pure:!0,appendData:function(o){var s=this._data;T(o,function(l,u){for(var f=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)f.push(l[c])})}},e[je]={appendData:i},e[ar]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}})(),r})(),qn=function(r){N(r)||ed("series.data or dataset.source must be an array.")};dr={},dr[Ge+"_"+vt]=qn,dr[Ge+"_"+Br]=qn,dr[st]=qn,dr[mt]=function(r,e){for(var t=0;t<e.length;t++){var a=e[t].name;a==null&&ed("dimension name must not be null/undefined.")}},dr[je]=qn;var ec=function(r,e,t,a){return r[a]},cS=(pr={},pr[Ge+"_"+vt]=function(r,e,t,a){return r[a+e]},pr[Ge+"_"+Br]=function(r,e,t,a,n){a+=e;for(var i=n||[],o=r,s=0;s<o.length;s++){var l=o[s];i[s]=l?l[a]:null}return i},pr[st]=ec,pr[mt]=function(r,e,t,a,n){for(var i=n||[],o=0;o<t.length;o++){var s=t[o].name,l=s!=null?r[s]:null;i[o]=l?l[a]:null}return i},pr[je]=ec,pr);function rp(r,e){var t=cS[Tu(r,e)];return t}var tc=function(r,e,t){return r.length},vS=(gr={},gr[Ge+"_"+vt]=function(r,e,t){return Math.max(0,r.length-e)},gr[Ge+"_"+Br]=function(r,e,t){var a=r[0];return a?Math.max(0,a.length-e):0},gr[st]=tc,gr[mt]=function(r,e,t){var a=t[0].name,n=a!=null?r[a]:null;return n?n.length:0},gr[je]=tc,gr);function ap(r,e){var t=vS[Tu(r,e)];return t}var Ho=function(r,e,t){return r[e]},hS=(yr={},yr[Ge]=Ho,yr[st]=function(r,e,t){return r[t]},yr[mt]=Ho,yr[je]=function(r,e,t){var a=Gn(r);return a instanceof Array?a[e]:a},yr[ar]=Ho,yr);function np(r){var e=hS[r];return e}function Tu(r,e){return r===Ge?r+"_"+e:r}function ga(r,e,t){if(r){var a=r.getRawDataItem(e);if(a!=null){var n=r.getStore(),i=n.getSource().sourceFormat;if(t!=null){var o=r.getDimensionIndex(t),s=n.getDimensionProperty(o);return np(i)(a,o,s)}else{var l=a;return i===je&&(l=Gn(a)),l}}}}var dS=/\{@(.+?)\}/g,pS=(function(){function r(){}return r.prototype.getDataParams=function(e,t){var a=this.getData(t),n=this.getRawValue(e,t),i=a.getRawIndex(e),o=a.getName(e),s=a.getRawDataItem(e),l=a.getItemVisual(e,"style"),u=l&&l[a.getItemVisual(e,"drawType")||"fill"],f=l&&l.stroke,c=this.mainType,h=c==="series",v=a.userOutput&&a.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:o,dataIndex:i,data:s,dataType:t,value:n,color:u,borderColor:f,dimensionNames:v?v.fullDimensions:null,encode:v?v.encode:null,$vars:["seriesName","name","value"]}},r.prototype.getFormattedLabel=function(e,t,a,n,i,o){t=t||"normal";var s=this.getData(a),l=this.getDataParams(e,a);if(o&&(l.value=o.interpolatedValue),n!=null&&N(l.value)&&(l.value=l.value[n]),!i){var u=s.getItemModel(e);i=u.get(t==="normal"?["label","formatter"]:[t,"label","formatter"])}if(Q(i))return l.status=t,l.dimensionIndex=n,i(l);if(Z(i)){var f=Fd(i,l);return f.replace(dS,function(c,h){var v=h.length,d=h;d.charAt(0)==="["&&d.charAt(v-1)==="]"&&(d=+d.slice(1,v-1));var p=ga(s,e,d);if(o&&N(o.interpolatedValue)){var y=s.getDimensionIndex(d);y>=0&&(p=o.interpolatedValue[y])}return p!=null?p+"":""})}},r.prototype.getRawValue=function(e,t){return ga(this.getData(t),e)},r.prototype.formatTooltip=function(e,t,a){},r})();function rc(r){var e,t;return K(r)?r.type&&(t=r):e=r,{text:e,frag:t}}function an(r){return new gS(r)}var gS=(function(){function r(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return r.prototype.perform=function(e){var t=this._upstream,a=e&&e.skip;if(this._dirty&&t){var n=this.context;n.data=n.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!a&&(i=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(i="reset");function f(m){return!(m>=1)&&(m=1),m}var c;(this._dirty||i==="reset")&&(this._dirty=!1,c=this._doReset(a)),this._modBy=l,this._modDataCount=u;var h=e&&e.step;if(t?this._dueEnd=t._outputDueEnd: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&&(c||v<d)){var p=this._progress;if(N(p))for(var y=0;y<p.length;y++)this._doProgress(p[y],v,d,l,u);else this._doProgress(p,v,d,l,u)}this._dueIndex=d;var g=this._settedOutputEnd!=null?this._settedOutputEnd:d;this._outputDueEnd=g}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(e,t,a,n,i){ac.reset(t,a,n,i),this._callingProgress=e,this._callingProgress({start:t,end:a,count:a-t,next:ac.next},this.context)},r.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var t,a;!e&&this._reset&&(t=this._reset(this.context),t&&t.progress&&(a=t.forceFirstProgress,t=t.progress),N(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var n=this._downstream;return n&&n.dirty(),a},r.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},r.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},r.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},r.prototype.getUpstream=function(){return this._upstream},r.prototype.getDownstream=function(){return this._downstream},r.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},r})(),ac=(function(){var r,e,t,a,n,i={reset:function(l,u,f,c){e=l,r=u,t=f,a=c,n=Math.ceil(a/t),i.next=t>1&&a>0?s:o}};return i;function o(){return e<r?e++:null}function s(){var l=e%n*t+Math.ceil(e/n),u=e>=r?null:l<a?l:e;return e++,u}})();function Ai(r,e){var t=e&&e.type;return t==="ordinal"?r:(t==="time"&&!oe(r)&&r!=null&&r!=="-"&&(r=+Er(r)),r==null||r===""?NaN:Number(r))}ee({number:function(r){return parseFloat(r)},time:function(r){return+Er(r)},trim:function(r){return Z(r)?Bn(r):r}});var yS=(function(){function r(e,t){var a=e==="desc";this._resultLT=a?1:-1,t==null&&(t=a?"min":"max"),this._incomparable=t==="min"?-1/0:1/0}return r.prototype.evaluate=function(e,t){var a=oe(e)?e:Ni(e),n=oe(t)?t:Ni(t),i=isNaN(a),o=isNaN(n);if(i&&(a=this._incomparable),o&&(n=this._incomparable),i&&o){var s=Z(e),l=Z(t);s&&(a=l?e:0),l&&(n=s?t:0)}return a<n?this._resultLT:a>n?-this._resultLT:0},r})(),mS=(function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(e){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(e){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(e,t){},r.prototype.retrieveValueFromItem=function(e,t){},r.prototype.convertValue=function(e,t){return Ai(e,t)},r})();function _S(r,e){var t=new mS,a=r.data,n=t.sourceFormat=r.sourceFormat,i=r.startIndex,o="";r.seriesLayoutBy!==vt&&Oe(o);var s=[],l={},u=r.dimensionsDefine;if(u)T(u,function(p,y){var g=p.name,m={index:y,name:g,displayName:p.displayName};if(s.push(m),g!=null){var _="";G(l,g)&&Oe(_),l[g]=m}});else for(var f=0;f<r.dimensionsDetectedCount;f++)s.push({index:f});var c=rp(n,vt);e.__isBuiltIn&&(t.getRawDataItem=function(p){return c(a,i,s,p)},t.getRawData=$(SS,null,r)),t.cloneRawData=$(xS,null,r);var h=ap(n,vt);t.count=$(h,null,a,i,s);var v=np(n);t.retrieveValue=function(p,y){var g=c(a,i,s,p);return d(g,y)};var d=t.retrieveValueFromItem=function(p,y){if(p!=null){var g=s[y];if(g)return v(p,y,g.name)}};return t.getDimensionInfo=$(bS,null,s,l),t.cloneAllDimensionInfo=$(wS,null,s),t}function SS(r){var e=r.sourceFormat;if(!Cu(e)){var t="";Oe(t)}return r.data}function xS(r){var e=r.sourceFormat,t=r.data;if(!Cu(e)){var a="";Oe(a)}if(e===Ge){for(var n=[],i=0,o=t.length;i<o;i++)n.push(t[i].slice());return n}else if(e===st){for(var n=[],i=0,o=t.length;i<o;i++)n.push(F({},t[i]));return n}}function bS(r,e,t){if(t!=null){if(oe(t)||!isNaN(t)&&!G(e,t))return r[t];if(G(e,t))return e[t]}}function wS(r){return q(r)}var ip=ee();function TS(r){r=q(r);var e=r.type,t="";e||Oe(t);var a=e.split(":");a.length!==2&&Oe(t);var n=!1;a[0]==="echarts"&&(e=a[1],n=!0),r.__isBuiltIn=n,ip.set(e,r)}function CS(r,e,t){var a=De(r),n=a.length,i="";n||Oe(i);for(var o=0,s=n;o<s;o++){var l=a[o];e=MS(l,e),o!==s-1&&(e.length=Math.max(e.length,1))}return e}function MS(r,e,t,a){var n="";e.length||Oe(n),K(r)||Oe(n);var i=r.type,o=ip.get(i);o||Oe(n);var s=X(e,function(u){return _S(u,o)}),l=De(o.transform({upstream:s[0],upstreamList:s,config:q(r.config)}));return X(l,function(u,f){var c="";K(u)||Oe(c),u.data||Oe(c);var h=Jd(u.data);Cu(h)||Oe(c);var v,d=e[0];if(d&&f===0&&!u.dimensions){var p=d.startIndex;p&&(u.data=d.data.slice(0,p).concat(u.data)),v={seriesLayoutBy:vt,sourceHeader:p,dimensions:d.metaRawOption.dimensions}}else v={seriesLayoutBy:vt,sourceHeader:0,dimensions:u.dimensions};return rl(u.data,v,null)})}function Cu(r){return r===Ge||r===st}var xo="undefined",DS=typeof Uint32Array===xo?Array:Uint32Array,AS=typeof Uint16Array===xo?Array:Uint16Array,op=typeof Int32Array===xo?Array:Int32Array,nc=typeof Float64Array===xo?Array:Float64Array,sp={float:nc,int:op,ordinal:Array,number:Array,time:nc},Wo;function Ur(r){return r>65535?DS:AS}function Yr(){return[1/0,-1/0]}function LS(r){var e=r.constructor;return e===Array?r.slice():new e(r)}function ic(r,e,t,a,n){var i=sp[t||"float"];if(n){var o=r[e],s=o&&o.length;if(s!==a){for(var l=new i(a),u=0;u<s;u++)l[u]=o[u];r[e]=l}}else r[e]=new i(a)}var al=(function(){function r(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=ee()}return r.prototype.initData=function(e,t,a){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var n=e.getSource(),i=this.defaultDimValueGetter=Wo[n.sourceFormat];this._dimValueGetter=a||i,this._rawExtent=[],ep(n),this._dimensions=X(t,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,e.count())},r.prototype.getProvider=function(){return this._provider},r.prototype.getSource=function(){return this._provider.getSource()},r.prototype.ensureCalculationDimension=function(e,t){var a=this._calcDimNameToIdx,n=this._dimensions,i=a.get(e);if(i!=null){if(n[i].type===t)return i}else i=n.length;return n[i]={type:t},a.set(e,i),this._chunks[i]=new sp[t||"float"](this._rawCount),this._rawExtent[i]=Yr(),i},r.prototype.collectOrdinalMeta=function(e,t){var a=this._chunks[e],n=this._dimensions[e],i=this._rawExtent,o=n.ordinalOffset||0,s=a.length;o===0&&(i[e]=Yr());for(var l=i[e],u=o;u<s;u++){var f=a[u]=t.parseAndCollect(a[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1]))}n.ordinalMeta=t,n.ordinalOffset=s,n.type="ordinal"},r.prototype.getOrdinalMeta=function(e){var t=this._dimensions[e],a=t.ordinalMeta;return a},r.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},r.prototype.appendData=function(e){var t=this._provider,a=this.count();t.appendData(e);var n=t.count();return t.persistent||(n+=a),a<n&&this._initDataFromProvider(a,n,!0),[a,n]},r.prototype.appendValues=function(e,t){for(var a=this._chunks,n=this._dimensions,i=n.length,o=this._rawExtent,s=this.count(),l=s+Math.max(e.length,t||0),u=0;u<i;u++){var f=n[u];ic(a,u,f.type,l,!0)}for(var c=[],h=s;h<l;h++)for(var v=h-s,d=0;d<i;d++){var f=n[d],p=Wo.arrayRows.call(this,e[v]||c,f.property,v,d);a[d][h]=p;var y=o[d];p<y[0]&&(y[0]=p),p>y[1]&&(y[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(e,t,a){for(var n=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=X(o,function(m){return m.property}),f=0;f<s;f++){var c=o[f];l[f]||(l[f]=Yr()),ic(i,f,c.type,t,a)}if(n.fillStorage)n.fillStorage(e,t,i,l);else for(var h=[],v=e;v<t;v++){h=n.getItem(v,h);for(var d=0;d<s;d++){var p=i[d],y=this._dimValueGetter(h,u[d],v,d);p[v]=y;var g=l[d];y<g[0]&&(g[0]=y),y>g[1]&&(g[1]=y)}}!n.persistent&&n.clean&&n.clean(),this._rawCount=this._count=t,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var a=this._chunks[e];return a?a[this.getRawIndex(t)]:NaN},r.prototype.getValues=function(e,t){var a=[],n=[];if(t==null){t=e,e=[];for(var i=0;i<this._dimensions.length;i++)n.push(i)}else n=e;for(var i=0,o=n.length;i<o;i++)a.push(this.get(n[i],t));return a},r.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var a=this._chunks[e];return a?a[t]:NaN},r.prototype.getSum=function(e){var t=this._chunks[e],a=0;if(t)for(var n=0,i=this.count();n<i;n++){var o=this.get(e,n);isNaN(o)||(a+=o)}return a},r.prototype.getMedian=function(e){var t=[];this.each([e],function(i){isNaN(i)||t.push(i)});var a=t.sort(function(i,o){return i-o}),n=this.count();return n===0?0:n%2===1?a[(n-1)/2]:(a[n/2]+a[n/2-1])/2},r.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,a=t[e];if(a!=null&&a<this._count&&a===e)return e;for(var n=0,i=this._count-1;n<=i;){var o=(n+i)/2|0;if(t[o]<e)n=o+1;else if(t[o]>e)i=o-1;else return o}return-1},r.prototype.getIndices=function(){var e,t=this._indices;if(t){var a=t.constructor,n=this._count;if(a===Array){e=new a(n);for(var i=0;i<n;i++)e[i]=t[i]}else e=new a(t.buffer,0,n)}else{var a=Ur(this._rawCount);e=new a(this.count());for(var i=0;i<e.length;i++)e[i]=i}return e},r.prototype.filter=function(e,t){if(!this._count)return this;for(var a=this.clone(),n=a.count(),i=Ur(a._rawCount),o=new i(n),s=[],l=e.length,u=0,f=e[0],c=a._chunks,h=0;h<n;h++){var v=void 0,d=a.getRawIndex(h);if(l===0)v=t(h);else if(l===1){var p=c[f][d];v=t(p,h)}else{for(var y=0;y<l;y++)s[y]=c[e[y]][d];s[y]=h,v=t.apply(null,s)}v&&(o[u++]=d)}return u<n&&(a._indices=o),a._count=u,a._extent=[],a._updateGetRawIdx(),a},r.prototype.selectRange=function(e){var t=this.clone(),a=t._count;if(!a)return this;var n=Le(e),i=n.length;if(!i)return this;var o=t.count(),s=Ur(t._rawCount),l=new s(o),u=0,f=n[0],c=e[f][0],h=e[f][1],v=t._chunks,d=!1;if(!t._indices){var p=0;if(i===1){for(var y=v[n[0]],g=0;g<a;g++){var m=y[g];(m>=c&&m<=h||isNaN(m))&&(l[u++]=p),p++}d=!0}else if(i===2){for(var y=v[n[0]],_=v[n[1]],S=e[n[1]][0],b=e[n[1]][1],g=0;g<a;g++){var m=y[g],x=_[g];(m>=c&&m<=h||isNaN(m))&&(x>=S&&x<=b||isNaN(x))&&(l[u++]=p),p++}d=!0}}if(!d)if(i===1)for(var g=0;g<o;g++){var w=t.getRawIndex(g),m=v[n[0]][w];(m>=c&&m<=h||isNaN(m))&&(l[u++]=w)}else for(var g=0;g<o;g++){for(var D=!0,w=t.getRawIndex(g),M=0;M<i;M++){var A=n[M],m=v[A][w];(m<e[A][0]||m>e[A][1])&&(D=!1)}D&&(l[u++]=t.getRawIndex(g))}return u<o&&(t._indices=l),t._count=u,t._extent=[],t._updateGetRawIdx(),t},r.prototype.map=function(e,t){var a=this.clone(e);return this._updateDims(a,e,t),a},r.prototype.modify=function(e,t){this._updateDims(this,e,t)},r.prototype._updateDims=function(e,t,a){for(var n=e._chunks,i=[],o=t.length,s=e.count(),l=[],u=e._rawExtent,f=0;f<t.length;f++)u[t[f]]=Yr();for(var c=0;c<s;c++){for(var h=e.getRawIndex(c),v=0;v<o;v++)l[v]=n[t[v]][h];l[o]=c;var d=a&&a.apply(null,l);if(d!=null){typeof d!="object"&&(i[0]=d,d=i);for(var f=0;f<d.length;f++){var p=t[f],y=d[f],g=u[p],m=n[p];m&&(m[h]=y),y<g[0]&&(g[0]=y),y>g[1]&&(g[1]=y)}}}},r.prototype.lttbDownSample=function(e,t){var a=this.clone([e],!0),n=a._chunks,i=n[e],o=this.count(),s=0,l=Math.floor(1/t),u=this.getRawIndex(0),f,c,h,v=new(Ur(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));v[s++]=u;for(var d=1;d<o-1;d+=l){for(var p=Math.min(d+l,o-1),y=Math.min(d+l*2,o),g=(y+p)/2,m=0,_=p;_<y;_++){var S=this.getRawIndex(_),b=i[S];isNaN(b)||(m+=b)}m/=y-p;var x=d,w=Math.min(d+l,o),D=d-1,M=i[u];f=-1,h=x;for(var A=-1,C=0,_=x;_<w;_++){var S=this.getRawIndex(_),b=i[S];if(isNaN(b)){C++,A<0&&(A=S);continue}c=Math.abs((D-g)*(b-M)-(D-_)*(m-M)),c>f&&(f=c,h=S)}C>0&&C<w-x&&(v[s++]=Math.min(A,h),h=Math.max(A,h)),v[s++]=h,u=h}return v[s++]=this.getRawIndex(o-1),a._count=s,a._indices=v,a.getRawIndex=this._getRawIdx,a},r.prototype.minmaxDownSample=function(e,t){for(var a=this.clone([e],!0),n=a._chunks,i=Math.floor(1/t),o=n[e],s=this.count(),l=new(Ur(this._rawCount))(Math.ceil(s/i)*2),u=0,f=0;f<s;f+=i){var c=f,h=o[this.getRawIndex(c)],v=f,d=o[this.getRawIndex(v)],p=i;f+i>s&&(p=s-f);for(var y=0;y<p;y++){var g=this.getRawIndex(f+y),m=o[g];m<h&&(h=m,c=f+y),m>d&&(d=m,v=f+y)}var _=this.getRawIndex(c),S=this.getRawIndex(v);c<v?(l[u++]=_,l[u++]=S):(l[u++]=S,l[u++]=_)}return a._count=u,a._indices=l,a._updateGetRawIdx(),a},r.prototype.downSample=function(e,t,a,n){for(var i=this.clone([e],!0),o=i._chunks,s=[],l=Math.floor(1/t),u=o[e],f=this.count(),c=i._rawExtent[e]=Yr(),h=new(Ur(this._rawCount))(Math.ceil(f/l)),v=0,d=0;d<f;d+=l){l>f-d&&(l=f-d,s.length=l);for(var p=0;p<l;p++){var y=this.getRawIndex(d+p);s[p]=u[y]}var g=a(s),m=this.getRawIndex(Math.min(d+n(s,g)||0,f-1));u[m]=g,g<c[0]&&(c[0]=g),g>c[1]&&(c[1]=g),h[v++]=m}return i._count=v,i._indices=h,i._updateGetRawIdx(),i},r.prototype.each=function(e,t){if(this._count)for(var a=e.length,n=this._chunks,i=0,o=this.count();i<o;i++){var s=this.getRawIndex(i);switch(a){case 0:t(i);break;case 1:t(n[e[0]][s],i);break;case 2:t(n[e[0]][s],n[e[1]][s],i);break;default:for(var l=0,u=[];l<a;l++)u[l]=n[e[l]][s];u[l]=i,t.apply(null,u)}}},r.prototype.getDataExtent=function(e){var t=this._chunks[e],a=Yr();if(!t)return a;var n=this.count(),i=!this._indices,o;if(i)return this._rawExtent[e].slice();if(o=this._extent[e],o)return o.slice();o=a;for(var s=o[0],l=o[1],u=0;u<n;u++){var f=this.getRawIndex(u),c=t[f];c<s&&(s=c),c>l&&(l=c)}return o=[s,l],this._extent[e]=o,o},r.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var a=[],n=this._chunks,i=0;i<n.length;i++)a.push(n[i][t]);return a},r.prototype.clone=function(e,t){var a=new r,n=this._chunks,i=e&&sn(e,function(s,l){return s[l]=!0,s},{});if(i)for(var o=0;o<n.length;o++)a._chunks[o]=i[o]?LS(n[o]):n[o];else a._chunks=n;return this._copyCommonProps(a),t||(a._indices=this._cloneIndices()),a._updateGetRawIdx(),a},r.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=q(this._extent),e._rawExtent=q(this._rawExtent)},r.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var a=this._indices.length;t=new e(a);for(var n=0;n<a;n++)t[n]=this._indices[n]}else t=new e(this._indices);return t}return null},r.prototype._getRawIdxIdentity=function(e){return e},r.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=(function(){function e(t,a,n,i){return Ai(t[i],this._dimensions[i])}Wo={arrayRows:e,objectRows:function(t,a,n,i){return Ai(t[a],this._dimensions[i])},keyedColumns:e,original:function(t,a,n,i){var o=t&&(t.value==null?t:t.value);return Ai(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(t,a,n,i){return t[i]}}})(),r})(),lp=(function(){function r(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),a=!!t.length,n,i;if(jn(e)){var o=e,s=void 0,l=void 0,u=void 0;if(a){var f=t[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,i=[f._getVersionSign()]}else s=o.get("data",!0),l=Ke(s)?ar:je,i=[];var c=this._getSourceMetaRawOption()||{},h=u&&u.metaRawOption||{},v=j(c.seriesLayoutBy,h.seriesLayoutBy)||null,d=j(c.sourceHeader,h.sourceHeader),p=j(c.dimensions,h.dimensions),y=v!==h.seriesLayoutBy||!!d!=!!h.sourceHeader||p;n=y?[rl(s,{seriesLayoutBy:v,sourceHeader:d,dimensions:p},l)]:[]}else{var g=e;if(a){var m=this._applyTransform(t);n=m.sourceList,i=m.upstreamSignList}else{var _=g.get("source",!0);n=[rl(_,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(n,i)},r.prototype._applyTransform=function(e){var t=this._sourceHost,a=t.get("transform",!0),n=t.get("fromTransformResult",!0);if(n!=null){var i="";e.length!==1&&sc(i)}var o,s=[],l=[];return T(e,function(u){u.prepareSource();var f=u.getSource(n||0),c="";n!=null&&!f&&sc(c),s.push(f),l.push(u._getVersionSign())}),a?o=CS(a,s,{datasetIndex:t.componentIndex}):n!=null&&(o=[lS(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var a=e[t];if(a._isDirty()||this._upstreamSignList[t]!==a._getVersionSign())return!0}},r.prototype.getSource=function(e){e=e||0;var t=this._sourceList[e];if(!t){var a=this._getUpstreamSourceManagers();return a[0]&&a[0].getSource(e)}return t},r.prototype.getSharedDataStore=function(e){var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},r.prototype._innerGetDataStore=function(e,t,a){var n=0,i=this._storeList,o=i[n];o||(o=i[n]={});var s=o[a];if(!s){var l=this._getUpstreamSourceManagers()[0];jn(this._sourceHost)&&l?s=l._innerGetDataStore(e,t,a):(s=new al,s.initData(new tp(t,e.length),e)),o[a]=s}return s},r.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(jn(e)){var t=_u(e);return t?[t.getSourceManager()]:[]}else return X(B_(e),function(a){return a.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,t,a,n;if(jn(e))t=e.get("seriesLayoutBy",!0),a=e.get("sourceHeader",!0),n=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=e;t=i.get("seriesLayoutBy",!0),a=i.get("sourceHeader",!0),n=i.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:a,dimensions:n}},r})();function oc(r){var e=r.option.transform;e&&Ri(r.option.transform)}function jn(r){return r.mainType==="series"}function sc(r){throw new Error(r)}var IS="line-height:1";function up(r){var e=r.lineHeight;return e==null?IS:"line-height:"+Ye(e+"")+"px"}function fp(r,e){var t=r.color||B.color.tertiary,a=r.fontSize||12,n=r.fontWeight||"400",i=r.color||B.color.secondary,o=r.fontSize||14,s=r.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+Ye(a+"")+"px;color:"+Ye(t)+";font-weight:"+Ye(n+""),valueStyle:"font-size:"+Ye(o+"")+"px;color:"+Ye(i)+";font-weight:"+Ye(s+"")}:{nameStyle:{fontSize:a,fill:t,fontWeight:n},valueStyle:{fontSize:o,fill:i,fontWeight:s}}}var kS=[0,10,20,30],PS=["",`
|
|
1
|
+
import{r as sn,m as X,i as Z,a as N,b as oe,e as be,c as K,d as ee,f as T,g as Bs,h as ht,j as fe,k as $y,l as F,n as Q,P as Be,o as nf,p as Rn,q as Le,s as j,t as Ky,u as qy,Z as Gt,v as jy,w as G,x as ae,T as aa,y as En,z as Ct,A as Nh,B as Bh,C as Me,D as Vh,E as Qy,F as Jy,G as em,H as q,I as On,J as uo,K as zh,S as kr,R as Wl,L as Nn,M as Pr,N as ve,O as nr,Q as Ul,U as Yl,V as Gh,W as le,X as tm,Y as Xl,_ as Fh,$ as ge,a0 as rm,a1 as de,a2 as Hh,a3 as Rr,a4 as Bn,a5 as ue,a6 as gt,a7 as Ye,a8 as ye,a9 as sa,aa as Ke,ab as Ce,ac as $,ad as Ri,ae as am,af as nt,ag as Vs,ah as nm,ai as im,aj as Ei,ak as om,al as Vn,am as of,an as Io,ao as sm,ap as ln,aq as Tr,ar as lm,as as Wh,at as sf,au as ko,av as Uh,aw as um,ax as fm,ay as Ya,az as cm,aA as lf,aB as uf,aC as vm,aD as hm,aE as Yh,aF as Ar,aG as ff,aH as Xh,aI as cf,aJ as ha,aK as He,aL as xi,aM as Po,aN as Zh,aO as dm,aP as rr,aQ as zn,aR as pm,aS as gm,aT as na,aU as vf,aV as ym,aW as zs,aX as mm,aY as _m,aZ as Sm,a_ as xm,a$ as un,b0 as bm,b1 as $h,b2 as wm,b3 as hf,b4 as Tm,b5 as Cm,b6 as Mm}from"./vendor-zrender-5DcYjSZk.js";var Gs=function(r,e){return Gs=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,a){t.__proto__=a}||function(t,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(t[n]=a[n])},Gs(r,e)};function U(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Gs(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var df=1e-4,Kh=20;function Dm(r){return r.replace(/^\s+|\s+$/g,"")}var fn=Math.min,$e=Math.max,bt=Math.abs;function it(r,e,t,a){var n=e[0],i=e[1],o=t[0],s=t[1],l=i-n,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(a)if(l>0){if(r<=n)return o;if(r>=i)return s}else{if(r>=n)return o;if(r<=i)return s}else{if(r===n)return o;if(r===i)return s}return(r-n)/l*u+o}var re=Am;function Am(r,e,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 Fs(r,e,t)}function Fs(r,e,t){return Z(r)?Dm(r).match(/%$/)?parseFloat(r)/100*e+(t||0):parseFloat(r):r==null?NaN:+r}function ke(r,e,t){return e==null&&(e=10),e=Math.min(Math.max(0,e),Kh),r=(+r).toFixed(e),t?r:+r}function qh(r){return r.sort(function(e,t){return e-t}),r}function Pt(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var e=1,t=0;t<15;t++,e*=10)if(Math.round(r*e)/e===r)return t}return Lm(r)}function Lm(r){var e=r.toString().toLowerCase(),t=e.indexOf("e"),a=t>0?+e.slice(t+1):0,n=t>0?t:e.length,i=e.indexOf("."),o=i<0?0:n-1-i;return Math.max(0,o-a)}function Im(r,e){var t=Math.log,a=Math.LN10,n=Math.floor(t(r[1]-r[0])/a),i=Math.round(t(bt(e[1]-e[0]))/a),o=Math.min(Math.max(-n+i,0),20);return isFinite(o)?o:20}function km(r,e){var t=sn(r,function(v,d){return v+(isNaN(d)?0:d)},0);if(t===0)return[];for(var a=Math.pow(10,e),n=X(r,function(v){return(isNaN(v)?0:v)/t*a*100}),i=a*100,o=X(n,function(v){return Math.floor(v)}),s=sn(o,function(v,d){return v+d},0),l=X(n,function(v,d){return v-o[d]});s<i;){for(var u=Number.NEGATIVE_INFINITY,f=null,c=0,h=l.length;c<h;++c)l[c]>u&&(u=l[c],f=c);++o[f],l[f]=0,++s}return X(o,function(v){return v/a})}function Pm(r,e){var t=Math.max(Pt(r),Pt(e)),a=r+e;return t>Kh?a:ke(a,t)}function jh(r){var e=Math.PI*2;return(r%e+e)%e}function Oi(r){return r>-df&&r<df}var Rm=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function Er(r){if(r instanceof Date)return r;if(Z(r)){var e=Rm.exec(r);if(!e)return new Date(NaN);if(e[8]){var t=+e[4]||0;return e[8].toUpperCase()!=="Z"&&(t-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,t,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}else return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}else if(r==null)return new Date(NaN);return new Date(Math.round(r))}function Em(r){return Math.pow(10,Zl(r))}function Zl(r){if(r===0)return 0;var e=Math.floor(Math.log(r)/Math.LN10);return r/Math.pow(10,e)>=10&&e++,e}function Qh(r,e){var t=Zl(r),a=Math.pow(10,t),n=r/a,i;return n<1.5?i=1:n<2.5?i=2:n<4?i=3:n<7?i=5:i=10,r=i*a,t>=-20?+r.toFixed(t<0?-t:0):r}function pf(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,t=1,a=0;a<r.length;){for(var n=r[a].interval,i=r[a].close,o=0;o<2;o++)n[o]<=e&&(n[o]=e,i[o]=o?1:1-t),e=n[o],t=i[o];n[0]===n[1]&&i[0]*i[1]!==1?r.splice(a,1):a++}return r;function s(l,u,f){return l.interval[f]<u.interval[f]||l.interval[f]===u.interval[f]&&(l.close[f]-u.close[f]===(f?-1:1)||!f&&s(l,u,1))}}function Ni(r){var e=parseFloat(r);return e==r&&(e!==0||!Z(r)||r.indexOf("x")<=0)?e:NaN}function Om(r){return!isNaN(Ni(r))}function Jh(){return Math.round(Math.random()*9)}function ed(r,e){return e===0?r:ed(e,r%e)}function gf(r,e){return r==null?e:e==null?r:r*e/ed(r,e)}var Nm="[ECharts] ",Bm=typeof console<"u"&&console.warn&&console.log;function Vm(r,e,t){Bm&&console[r](Nm+e)}function td(r,e){Vm("error",r)}function Oe(r){throw new Error(r)}function yf(r,e,t){return(e-r)*t+r}var rd="series\0",zm="\0_ec_\0";function De(r){return r instanceof Array?r:r==null?[]:[r]}function Bi(r,e,t){if(r){r[e]=r[e]||{},r.emphasis=r.emphasis||{},r.emphasis[e]=r.emphasis[e]||{};for(var a=0,n=t.length;a<n;a++){var i=t[a];!r.emphasis[e].hasOwnProperty(i)&&r[e].hasOwnProperty(i)&&(r.emphasis[e][i]=r[e][i])}}}var mf=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function Gn(r){return K(r)&&!N(r)&&!(r instanceof Date)?r.value:r}function Gm(r){return K(r)&&!(r instanceof Array)}function Fm(r,e,t){var a=t==="normalMerge",n=t==="replaceMerge",i=t==="replaceAll";r=r||[],e=(e||[]).slice();var o=ee();T(e,function(l,u){if(!K(l)){e[u]=null;return}});var s=Hm(r,o,t);return(a||n)&&Wm(s,r,o,e),a&&Um(s,e),a||n?Ym(s,e,n):i&&Xm(s,e),Zm(s),s}function Hm(r,e,t){var a=[];if(t==="replaceAll")return a;for(var n=0;n<r.length;n++){var i=r[n];i&&i.id!=null&&e.set(i.id,n),a.push({existing:t==="replaceMerge"||cn(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return a}function Wm(r,e,t,a){T(a,function(n,i){if(!(!n||n.id==null)){var o=Ja(n.id),s=t.get(o);if(s!=null){var l=r[s];ht(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=n,l.existing=e[s],a[i]=null}}})}function Um(r,e){T(e,function(t,a){if(!(!t||t.name==null))for(var n=0;n<r.length;n++){var i=r[n].existing;if(!r[n].newOption&&i&&(i.id==null||t.id==null)&&!cn(t)&&!cn(i)&&ad("name",i,t)){r[n].newOption=t,e[a]=null;return}}})}function Ym(r,e,t){T(e,function(a){if(a){for(var n,i=0;(n=r[i])&&(n.newOption||cn(n.existing)||n.existing&&a.id!=null&&!ad("id",a,n.existing));)i++;n?(n.newOption=a,n.brandNew=t):r.push({newOption:a,brandNew:t,existing:null,keyInfo:null}),i++}})}function Xm(r,e){T(e,function(t){r.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}function Zm(r){var e=ee();T(r,function(t){var a=t.existing;a&&e.set(a.id,t)}),T(r,function(t){var a=t.newOption;ht(!a||a.id==null||!e.get(a.id)||e.get(a.id)===t,"id duplicates: "+(a&&a.id)),a&&a.id!=null&&e.set(a.id,t),!t.keyInfo&&(t.keyInfo={})}),T(r,function(t,a){var n=t.existing,i=t.newOption,o=t.keyInfo;if(K(i)){if(o.name=i.name!=null?Ja(i.name):n?n.name:rd+a,n)o.id=Ja(n.id);else if(i.id!=null)o.id=Ja(i.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(e.get(o.id))}e.set(o.id,t)}})}function ad(r,e,t){var a=rt(e[r],null),n=rt(t[r],null);return a!=null&&n!=null&&a===n}function Ja(r){return rt(r,"")}function rt(r,e){return r==null?e:Z(r)?r:oe(r)||Bs(r)?r+"":e}function $l(r){var e=r.name;return!!(e&&e.indexOf(rd))}function cn(r){return r&&r.id!=null&&Ja(r.id).indexOf(zm)===0}function $m(r,e,t){T(r,function(a){var n=a.newOption;K(n)&&(a.keyInfo.mainType=e,a.keyInfo.subType=Km(e,n,a.existing,t))})}function Km(r,e,t,a){var n=e.type?e.type:t?t.subType:a.determineSubType(r,e);return n}function qm(r,e){var t={},a={};return n(r||[],t),n(e||[],a,t),[i(t),i(a)];function n(o,s,l){for(var u=0,f=o.length;u<f;u++){var c=rt(o[u].seriesId,null);if(c==null)return;for(var h=De(o[u].dataIndex),v=l&&l[c],d=0,p=h.length;d<p;d++){var y=h[d];v&&v[y]?v[y]=null:(s[c]||(s[c]={}))[y]=1}}}function i(o,s){var l=[];for(var u in o)if(o.hasOwnProperty(u)&&o[u]!=null)if(s)l.push(+u);else{var f=i(o[u],!0);f.length&&l.push({seriesId:u,dataIndex:f})}return l}}function Lr(r,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return N(e.dataIndex)?X(e.dataIndex,function(t){return r.indexOfRawIndex(t)}):r.indexOfRawIndex(e.dataIndex);if(e.name!=null)return N(e.name)?X(e.name,function(t){return r.indexOfName(t)}):r.indexOfName(e.name)}function ne(){var r="__ec_inner_"+jm++;return function(e){return e[r]||(e[r]={})}}var jm=Jh();function Ro(r,e,t){var a=Kl(e,t),n=a.mainTypeSpecified,i=a.queryOptionMap,o=a.others,s=o,l=t?t.defaultMainType:null;return!n&&l&&i.set(l,{}),i.each(function(u,f){var c=Sa(r,f,u,{useDefault:l===f,enableAll:t&&t.enableAll!=null?t.enableAll:!0,enableNone:t&&t.enableNone!=null?t.enableNone:!0});s[f+"Models"]=c.models,s[f+"Model"]=c.models[0]}),s}function Kl(r,e){var t;if(Z(r)){var a={};a[r+"Index"]=0,t=a}else t=r;var n=ee(),i={},o=!1;return T(t,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){i[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],c=(u[2]||"").toLowerCase();if(!(!f||!c||e&&e.includeMainTypes&&fe(e.includeMainTypes,f)<0)){o=o||!!f;var h=n.get(f)||n.set(f,{});h[c]=s}}),{mainTypeSpecified:o,queryOptionMap:n,others:i}}var Ze={useDefault:!0,enableAll:!1,enableNone:!1};function Sa(r,e,t,a){a=a||Ze;var n=t.index,i=t.id,o=t.name,s={models:null,specified:n!=null||i!=null||o!=null};if(!s.specified){var l=void 0;return s.models=a.useDefault&&(l=r.getComponent(e))?[l]:[],s}if(n==="none"||n===!1){if(a.enableNone)return s.models=[],s;n=-1}return n==="all"&&(a.enableAll?n=i=o=null:n=-1),s.models=r.queryComponents({mainType:e,index:n,id:i,name:o}),s}function nd(r,e,t){r.setAttribute?r.setAttribute(e,t):r[e]=t}function Qm(r,e){return r.getAttribute?r.getAttribute(e):r[e]}function Jm(r){return r==="auto"?be.domSupported?"html":"richText":r||"html"}function id(r,e,t,a,n){var i=e==null||e==="auto";if(a==null)return a;if(oe(a)){var o=yf(t||0,a,n);return ke(o,i?Math.max(Pt(t||0),Pt(a)):e)}else{if(Z(a))return n<1?t:a;for(var s=[],l=t,u=a,f=Math.max(l?l.length:0,u.length),c=0;c<f;++c){var h=r.getDimensionInfo(c);if(h&&h.type==="ordinal")s[c]=(n<1&&l?l:u)[c];else{var v=l&&l[c]?l[c]:0,d=u[c],o=yf(v,d,n);s[c]=ke(o,i?Math.max(Pt(v),Pt(d)):e)}}return s}}var e0=".",vr="___EC__COMPONENT__CONTAINER___",od="___EC__EXTENDED_CLASS___";function wt(r){var e={main:"",sub:""};if(r){var t=r.split(e0);e.main=t[0]||"",e.sub=t[1]||""}return e}function t0(r){ht(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function r0(r){return!!(r&&r[od])}function ql(r,e){r.$constructor=r,r.extend=function(t){var a=this,n;return a0(a)?n=(function(i){U(o,i);function o(){return i.apply(this,arguments)||this}return o})(a):(n=function(){(t.$constructor||a).apply(this,arguments)},$y(n,this)),F(n.prototype,t),n[od]=!0,n.extend=this.extend,n.superCall=o0,n.superApply=s0,n.superClass=a,n}}function a0(r){return Q(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function sd(r,e){r.extend=e.extend}var n0=Math.round(Math.random()*10);function i0(r){var e=["__\0is_clz",n0++].join("_");r.prototype[e]=!0,r.isInstance=function(t){return!!(t&&t[e])}}function o0(r,e){for(var t=[],a=2;a<arguments.length;a++)t[a-2]=arguments[a];return this.superClass.prototype[e].apply(r,t)}function s0(r,e,t){return this.superClass.prototype[e].apply(r,t)}function fo(r){var e={};r.registerClass=function(a){var n=a.type||a.prototype.type;if(n){t0(n),a.prototype.type=n;var i=wt(n);if(!i.sub)e[i.main]=a;else if(i.sub!==vr){var o=t(i);o[i.sub]=a}}return a},r.getClass=function(a,n,i){var o=e[a];if(o&&o[vr]&&(o=n?o[n]:null),i&&!o)throw new Error(n?"Component "+a+"."+(n||"")+" is used but not imported.":a+".type should be specified.");return o},r.getClassesByMainType=function(a){var n=wt(a),i=[],o=e[n.main];return o&&o[vr]?T(o,function(s,l){l!==vr&&i.push(s)}):i.push(o),i},r.hasClass=function(a){var n=wt(a);return!!e[n.main]},r.getAllClassMainTypes=function(){var a=[];return T(e,function(n,i){a.push(i)}),a},r.hasSubTypes=function(a){var n=wt(a),i=e[n.main];return i&&i[vr]};function t(a){var n=e[a.main];return(!n||!n[vr])&&(n=e[a.main]={},n[vr]=!0),n}}function vn(r,e){for(var t=0;t<r.length;t++)r[t][1]||(r[t][1]=r[t][0]);return e=e||!1,function(a,n,i){for(var o={},s=0;s<r.length;s++){var l=r[s][1];if(!(n&&fe(n,l)>=0||i&&fe(i,l)<0)){var u=a.getShallow(l,e);u!=null&&(o[r[s][0]]=u)}}return o}}var l0=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],u0=vn(l0),f0=(function(){function r(){}return r.prototype.getAreaStyle=function(e,t){return u0(this,e,t)},r})(),te=ne(),c0=function(r,e,t,a){if(a){var n=te(a);n.dataIndex=t,n.dataType=e,n.seriesIndex=r,n.ssrType="chart",a.type==="group"&&a.traverse(function(i){var o=te(i);o.seriesIndex=r,o.dataIndex=t,o.dataType=e,o.ssrType="chart"})}},_f=1,Sf={},ld=ne(),jl=ne(),Ql=0,co=1,vo=2,Xe=["emphasis","blur","select"],Vi=["normal","emphasis","blur","select"],v0=10,h0=9,Cr="highlight",bi="downplay",zi="select",Hs="unselect",Gi="toggleSelect",Jl="selectchanged";function Hr(r){return r!=null&&r!=="none"}function ho(r,e,t){r.onHoverStateChange&&(r.hoverState||0)!==t&&r.onHoverStateChange(e),r.hoverState=t}function ud(r){ho(r,"emphasis",vo)}function fd(r){r.hoverState===vo&&ho(r,"normal",Ql)}function eu(r){ho(r,"blur",co)}function cd(r){r.hoverState===co&&ho(r,"normal",Ql)}function d0(r){r.selected=!0}function p0(r){r.selected=!1}function xf(r,e,t){e(r,t)}function Ft(r,e,t){xf(r,e,t),r.isGroup&&r.traverse(function(a){xf(a,e,t)})}function bf(r,e){switch(e){case"emphasis":r.hoverState=vo;break;case"normal":r.hoverState=Ql;break;case"blur":r.hoverState=co;break;case"select":r.selected=!0}}function g0(r,e,t,a){for(var n=r.style,i={},o=0;o<e.length;o++){var s=e[o],l=n[s];i[s]=l??(a&&a[s])}for(var o=0;o<r.animators.length;o++){var u=r.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(t)<0&&u.targetName==="style"&&u.saveTo(i,e)}return i}function y0(r,e,t,a){var n=t&&fe(t,"select")>=0,i=!1;if(r instanceof Be){var o=ld(r),s=n&&o.selectFill||o.normalFill,l=n&&o.selectStroke||o.normalStroke;if(Hr(s)||Hr(l)){a=a||{};var u=a.style||{};u.fill==="inherit"?(i=!0,a=F({},a),u=F({},u),u.fill=s):!Hr(u.fill)&&Hr(s)?(i=!0,a=F({},a),u=F({},u),u.fill=nf(s)):!Hr(u.stroke)&&Hr(l)&&(i||(a=F({},a),u=F({},u)),u.stroke=nf(l)),a.style=u}}if(a&&a.z2==null){i||(a=F({},a));var f=r.z2EmphasisLift;a.z2=r.z2+(f??v0)}return a}function m0(r,e,t){if(t&&t.z2==null){t=F({},t);var a=r.z2SelectLift;t.z2=r.z2+(a??h0)}return t}function _0(r,e,t){var a=fe(r.currentStates,e)>=0,n=r.style.opacity,i=a?null:g0(r,["opacity"],e,{opacity:1});t=t||{};var o=t.style||{};return o.opacity==null&&(t=F({},t),o=F({opacity:a?n:i.opacity*.1},o),t.style=o),t}function Eo(r,e){var t=this.states[r];if(this.style){if(r==="emphasis")return y0(this,r,e,t);if(r==="blur")return _0(this,r,t);if(r==="select")return m0(this,r,t)}return t}function vd(r){r.stateProxy=Eo;var e=r.getTextContent(),t=r.getTextGuideLine();e&&(e.stateProxy=Eo),t&&(t.stateProxy=Eo)}function wf(r,e){!gd(r,e)&&!r.__highByOuter&&Ft(r,ud)}function Tf(r,e){!gd(r,e)&&!r.__highByOuter&&Ft(r,fd)}function hn(r,e){r.__highByOuter|=1<<(e||0),Ft(r,ud)}function dn(r,e){!(r.__highByOuter&=~(1<<(e||0)))&&Ft(r,fd)}function S0(r){Ft(r,eu)}function hd(r){Ft(r,cd)}function dd(r){Ft(r,d0)}function pd(r){Ft(r,p0)}function gd(r,e){return r.__highDownSilentOnTouch&&e.zrByTouch}function yd(r){var e=r.getModel(),t=[],a=[];e.eachComponent(function(n,i){var o=jl(i),s=n==="series",l=s?r.getViewOfSeriesModel(i):r.getViewOfComponentModel(i);!s&&a.push(l),o.isBlured&&(l.group.traverse(function(u){cd(u)}),s&&t.push(i)),o.isBlured=!1}),T(a,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(t,!1,e)})}function Ws(r,e,t,a){var n=a.getModel();t=t||"coordinateSystem";function i(u,f){for(var c=0;c<f.length;c++){var h=u.getItemGraphicEl(f[c]);h&&hd(h)}}if(r!=null&&!(!e||e==="none")){var o=n.getSeriesByIndex(r),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];n.eachSeries(function(u){var f=o===u,c=u.coordinateSystem;c&&c.master&&(c=c.master);var h=c&&s?c===s:f;if(!(t==="series"&&!f||t==="coordinateSystem"&&!h||e==="series"&&f)){var v=a.getViewOfSeriesModel(u);if(v.group.traverse(function(y){y.__highByOuter&&f&&e==="self"||eu(y)}),Rn(e))i(u.getData(),e);else if(K(e))for(var d=Le(e),p=0;p<d.length;p++)i(u.getData(d[p]),e[d[p]]);l.push(u),jl(u).isBlured=!0}}),n.eachComponent(function(u,f){if(u!=="series"){var c=a.getViewOfComponentModel(f);c&&c.toggleBlurSeries&&c.toggleBlurSeries(l,!0,n)}})}}function Us(r,e,t){if(!(r==null||e==null)){var a=t.getModel().getComponent(r,e);if(a){jl(a).isBlured=!0;var n=t.getViewOfComponentModel(a);!n||!n.focusBlurEnabled||n.group.traverse(function(i){eu(i)})}}}function x0(r,e,t){var a=r.seriesIndex,n=r.getData(e.dataType);if(n){var i=Lr(n,e);i=(N(i)?i[0]:i)||0;var o=n.getItemGraphicEl(i);if(!o)for(var s=n.count(),l=0;!o&&l<s;)o=n.getItemGraphicEl(l++);if(o){var u=te(o);Ws(a,u.focus,u.blurScope,t)}else{var f=r.get(["emphasis","focus"]),c=r.get(["emphasis","blurScope"]);f!=null&&Ws(a,f,c,t)}}}function tu(r,e,t,a){var n={focusSelf:!1,dispatchers:null};if(r==null||r==="series"||e==null||t==null)return n;var i=a.getModel().getComponent(r,e);if(!i)return n;var o=a.getViewOfComponentModel(i);if(!o||!o.findHighDownDispatchers)return n;for(var s=o.findHighDownDispatchers(t),l,u=0;u<s.length;u++)if(te(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function b0(r,e,t){var a=te(r),n=tu(a.componentMainType,a.componentIndex,a.componentHighDownName,t),i=n.dispatchers,o=n.focusSelf;i?(o&&Us(a.componentMainType,a.componentIndex,t),T(i,function(s){return wf(s,e)})):(Ws(a.seriesIndex,a.focus,a.blurScope,t),a.focus==="self"&&Us(a.componentMainType,a.componentIndex,t),wf(r,e))}function w0(r,e,t){yd(t);var a=te(r),n=tu(a.componentMainType,a.componentIndex,a.componentHighDownName,t).dispatchers;n?T(n,function(i){return Tf(i,e)}):Tf(r,e)}function T0(r,e,t){if(Zs(e)){var a=e.dataType,n=r.getData(a),i=Lr(n,e);N(i)||(i=[i]),r[e.type===Gi?"toggleSelect":e.type===zi?"select":"unselect"](i,a)}}function Cf(r){var e=r.getAllData();T(e,function(t){var a=t.data,n=t.type;a.eachItemGraphicEl(function(i,o){r.isSelected(o,n)?dd(i):pd(i)})})}function C0(r){var e=[];return r.eachSeries(function(t){var a=t.getAllData();T(a,function(n){n.data;var i=n.type,o=t.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:t.seriesIndex};i!=null&&(s.dataType=i),e.push(s)}})}),e}function Ys(r,e,t){ru(r,!0),Ft(r,vd),D0(r,e,t)}function M0(r){ru(r,!1)}function Vt(r,e,t,a){a?M0(r):Ys(r,e,t)}function D0(r,e,t){var a=te(r);e!=null?(a.focus=e,a.blurScope=t):a.focus&&(a.focus=null)}var Mf=["emphasis","blur","select"],A0={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function da(r,e,t,a){t=t||"itemStyle";for(var n=0;n<Mf.length;n++){var i=Mf[n],o=e.getModel([i,t]),s=r.ensureState(i);s.style=o[A0[t]]()}}function ru(r,e){var t=e===!1,a=r;r.highDownSilentOnTouch&&(a.__highDownSilentOnTouch=r.highDownSilentOnTouch),(!t||a.__highDownDispatcher)&&(a.__highByOuter=a.__highByOuter||0,a.__highDownDispatcher=!t)}function Xs(r){return!!(r&&r.__highDownDispatcher)}function L0(r){var e=Sf[r];return e==null&&_f<=32&&(e=Sf[r]=_f++),e}function Zs(r){var e=r.type;return e===zi||e===Hs||e===Gi}function Df(r){var e=r.type;return e===Cr||e===bi}function I0(r){var e=ld(r);e.normalFill=r.style.fill,e.normalStroke=r.style.stroke;var t=r.states.select||{};e.selectFill=t.style&&t.style.fill||null,e.selectStroke=t.style&&t.style.stroke||null}var k0=ne();function au(r,e,t,a,n){var i;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();i=o&&o.animation}var s=e&&e.isAnimationEnabled(),l=r==="update";if(s){var u=void 0,f=void 0,c=void 0;a?(u=j(a.duration,200),f=j(a.easing,"cubicOut"),c=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),f=e.getShallow(l?"animationEasingUpdate":"animationEasing"),c=e.getShallow(l?"animationDelayUpdate":"animationDelay")),i&&(i.duration!=null&&(u=i.duration),i.easing!=null&&(f=i.easing),i.delay!=null&&(c=i.delay)),Q(c)&&(c=c(t,n)),Q(u)&&(u=u(t));var h={duration:u||0,delay:c,easing:f};return h}else return null}function nu(r,e,t,a,n,i,o){var s=!1,l;Q(n)?(o=i,i=n,n=null):K(n)&&(i=n.cb,o=n.during,s=n.isFrom,l=n.removeOpt,n=n.dataIndex);var u=r==="leave";u||e.stopAnimation("leave");var f=au(r,a,n,u?l||{}:null,a&&a.getAnimationDelayParams?a.getAnimationDelayParams(e,n):null);if(f&&f.duration>0){var c=f.duration,h=f.delay,v=f.easing,d={duration:c,delay:h||0,easing:v,done:i,force:!!i||!!o,setToFinal:!u,scope:r,during:o};s?e.animateFrom(t,d):e.animateTo(t,d)}else e.stopAnimation(),!s&&e.attr(t),o&&o(1),i&&i()}function Se(r,e,t,a,n,i){nu("update",r,e,t,a,n,i)}function Pe(r,e,t,a,n,i){nu("enter",r,e,t,a,n,i)}function la(r){if(!r.__zr)return!0;for(var e=0;e<r.animators.length;e++){var t=r.animators[e];if(t.scope==="leave")return!0}return!1}function Fi(r,e,t,a,n,i){la(r)||nu("leave",r,e,t,a,n,i)}function Af(r,e,t,a){r.removeTextContent(),r.removeTextGuideLine(),Fi(r,{style:{opacity:0}},e,t,a)}function en(r,e,t){function a(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(n){n.isGroup||Af(n,e,t,a)}):Af(r,e,t,a)}function pn(r){k0(r).oldStyle=r.style}var $s={},Jt=["x","y"],pa=["width","height"];function P0(r){return Be.extend(r)}var R0=em;function E0(r,e){return R0(r,e)}function yt(r,e){$s[r]=e}function Ks(r){if($s.hasOwnProperty(r))return $s[r]}function gn(r,e,t,a){var n=jy(r,e);return t&&(a==="center"&&(t=_d(t,n.getBoundingRect())),Sd(n,t)),n}function md(r,e,t){var a=new Gt({style:{image:r,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(n){if(t==="center"){var i={width:n.width,height:n.height};a.setStyle(_d(e,i))}}});return a}function _d(r,e){var t=e.width/e.height,a=r.height*t,n;a<=r.width?n=r.height:(a=r.width,n=a/t);var i=r.x+r.width/2,o=r.y+r.height/2;return{x:i-a/2,y:o-n/2,width:a,height:n}}var qs=Ky;function Sd(r,e){if(r.applyTransform){var t=r.getBoundingRect(),a=t.calculateTransform(e);r.applyTransform(a)}}function yn(r,e){return Qy(r,r,{lineWidth:e}),r}function O0(r,e){return Jy(r,r,e),r}var N0=qy;function wi(r,e){for(var t=Nh([]);r&&r!==e;)Bh(t,r.getLocalTransform(),t),r=r.parent;return t}function ua(r,e,t){return e&&!Rn(e)&&(e=aa.getLocalTransform(e)),t&&(e=En([],e)),Ct([],r,e)}function xd(r,e,t){var a=e[4]===0||e[5]===0||e[0]===0?1:bt(2*e[4]/e[0]),n=e[4]===0||e[5]===0||e[2]===0?1:bt(2*e[4]/e[2]),i=[r==="left"?-a:r==="right"?a:0,r==="top"?-n:r==="bottom"?n:0];return i=ua(i,e,t),bt(i[0])>bt(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function Lf(r){return!r.isGroup}function B0(r){return r.shape!=null}function bd(r,e,t){if(!r||!e)return;function a(o){var s={};return o.traverse(function(l){Lf(l)&&l.anid&&(s[l.anid]=l)}),s}function n(o){var s={x:o.x,y:o.y,rotation:o.rotation};return B0(o)&&(s.shape=q(o.shape)),s}var i=a(r);e.traverse(function(o){if(Lf(o)&&o.anid){var s=i[o.anid];if(s){var l=n(o);o.attr(n(s)),Se(o,l,t,te(o).dataIndex)}}})}function V0(r,e){return X(r,function(t){var a=t[0];a=$e(a,e.x),a=fn(a,e.x+e.width);var n=t[1];return n=$e(n,e.y),n=fn(n,e.y+e.height),[a,n]})}function z0(r,e){var t=$e(r.x,e.x),a=fn(r.x+r.width,e.x+e.width),n=$e(r.y,e.y),i=fn(r.y+r.height,e.y+e.height);if(a>=t&&i>=n)return{x:t,y:n,width:a-t,height:i-n}}function iu(r,e,t){var a=F({rectHover:!0},e),n=a.style={strokeNoScale:!0};if(t=t||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(n.image=r.slice(8),ae(n,t),new Gt(a)):gn(r.replace("path://",""),a,t,"center")}function G0(r,e,t,a,n){for(var i=0,o=n[n.length-1];i<n.length;i++){var s=n[i];if(wd(r,e,t,a,s[0],s[1],o[0],o[1]))return!0;o=s}}function wd(r,e,t,a,n,i,o,s){var l=t-r,u=a-e,f=o-n,c=s-i,h=Oo(f,c,l,u);if(F0(h))return!1;var v=r-n,d=e-i,p=Oo(v,d,l,u)/h;if(p<0||p>1)return!1;var y=Oo(v,d,f,c)/h;return!(y<0||y>1)}function Oo(r,e,t,a){return r*a-t*e}function F0(r){return r<=1e-6&&r>=-1e-6}function mn(r,e,t,a,n){return e==null||(oe(e)?ce[0]=ce[1]=ce[2]=ce[3]=e:(ce[0]=e[0],ce[1]=e[1],ce[2]=e[2],ce[3]=e[3]),a&&(ce[0]=$e(0,ce[0]),ce[1]=$e(0,ce[1]),ce[2]=$e(0,ce[2]),ce[3]=$e(0,ce[3])),t&&(ce[0]=-ce[0],ce[1]=-ce[1],ce[2]=-ce[2],ce[3]=-ce[3]),If(r,ce,"x","width",3,1,n&&n[0]||0),If(r,ce,"y","height",0,2,n&&n[1]||0)),r}var ce=[0,0,0,0];function If(r,e,t,a,n,i,o){var s=e[i]+e[n],l=r[a];r[a]+=s,o=$e(0,fn(o,l)),r[a]<o?(r[a]=o,r[t]+=e[n]>=0?-e[n]:e[i]>=0?l+e[i]:bt(s)>1e-8?(l-o)*e[n]/s:0):r[t]-=e[n]}function po(r){var e=r.itemTooltipOption,t=r.componentModel,a=r.itemName,n=Z(e)?{formatter:e}:e,i=t.mainType,o=t.componentIndex,s={componentType:i,name:a,$vars:["name"]};s[i+"Index"]=o;var l=r.formatterParamsExtra;l&&T(Le(l),function(f){G(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=te(r.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:a,option:ae({content:a,encodeHTMLContent:!0,formatterParams:s},n)}}function js(r,e){var t;r.isGroup&&(t=e(r)),t||r.traverse(e)}function Or(r,e){if(r)if(N(r))for(var t=0;t<r.length;t++)js(r[t],e);else js(r,e)}function ou(r){return!r||bt(r[1])<Zn&&bt(r[2])<Zn||bt(r[0])<Zn&&bt(r[3])<Zn}var Zn=1e-5;function _n(r,e){return r?Me.copy(r,e):e.clone()}function su(r,e){return e?Vh(r||On(),e):void 0}function Sn(r){return{z:r.get("z")||0,zlevel:r.get("zlevel")||0}}function H0(r){var e=-1/0,t=1/0;js(r,function(i){a(i),a(i.getTextContent()),a(i.getTextGuideLine())});function a(i){if(!(!i||i.isGroup)){var o=i.currentStates;if(o.length)for(var s=0;s<o.length;s++)n(i.states[o[s]]);n(i)}}function n(i){if(i){var o=i.z2;o>e&&(e=o),o<t&&(t=o)}}return t>e&&(t=e=0),{min:t,max:e}}function Td(r,e,t){Cd(r,e,t,-1/0)}function Cd(r,e,t,a){if(r.ignoreModelZ)return a;var n=r.getTextContent(),i=r.getTextGuideLine(),o=r.isGroup;if(o)for(var s=r.childrenRef(),l=0;l<s.length;l++)a=$e(Cd(s[l],e,t,a),a);else r.z=e,r.zlevel=t,a=$e(r.z2||0,a);if(n&&(n.z=e,n.zlevel=t,isFinite(a)&&(n.z2=a+2)),i){var u=r.textGuideLineConfig;i.z=e,i.zlevel=t,isFinite(a)&&(i.z2=a+(u&&u.showAbove?1:-1))}return a}yt("circle",uo);yt("ellipse",zh);yt("sector",kr);yt("ring",Wl);yt("polygon",Nn);yt("polyline",Pr);yt("rect",ve);yt("line",nr);yt("bezierCurve",Ul);yt("arc",Yl);const Md=Object.freeze(Object.defineProperty({__proto__:null,Arc:Yl,BezierCurve:Ul,BoundingRect:Me,Circle:uo,CompoundPath:Gh,Ellipse:zh,Group:le,Image:Gt,IncrementalDisplayable:tm,Line:nr,LinearGradient:Xl,OrientedBoundingRect:Fh,Path:Be,Point:ge,Polygon:Nn,Polyline:Pr,RadialGradient:rm,Rect:ve,Ring:Wl,Sector:kr,Text:de,WH:pa,XY:Jt,applyTransform:ua,calcZ2Range:H0,clipPointsByRect:V0,clipRectByRect:z0,createIcon:iu,ensureCopyRect:_n,ensureCopyTransform:su,expandOrShrinkRect:mn,extendPath:E0,extendShape:P0,getShapeClass:Ks,getTransform:wi,groupTransition:bd,initProps:Pe,isBoundingRectAxisAligned:ou,isElementRemoved:la,lineLineIntersect:wd,linePolygonIntersect:G0,makeImage:md,makePath:gn,mergePath:qs,registerShape:yt,removeElement:Fi,removeElementWithFadeOut:en,resizePath:Sd,retrieveZInfo:Sn,setTooltipConfig:po,subPixelOptimize:N0,subPixelOptimizeLine:yn,subPixelOptimizeRect:O0,transformDirection:xd,traverseElements:Or,traverseUpdateZ:Td,updateProps:Se},Symbol.toStringTag,{value:"Module"}));var go={};function Dd(r,e){for(var t=0;t<Xe.length;t++){var a=Xe[t],n=e[a],i=r.ensureState(a);i.style=i.style||{},i.style.text=n}var o=r.currentStates.slice();r.clearStates(!0),r.setStyle({text:e.normal}),r.useStates(o,!0)}function Qs(r,e,t){var a=r.labelFetcher,n=r.labelDataIndex,i=r.labelDimIndex,o=e.normal,s;a&&(s=a.getFormattedLabel(n,"normal",null,i,o&&o.get("formatter"),t!=null?{interpolatedValue:t}:null)),s==null&&(s=Q(r.defaultText)?r.defaultText(n,r,t):r.defaultText);for(var l={normal:s},u=0;u<Xe.length;u++){var f=Xe[u],c=e[f];l[f]=j(a?a.getFormattedLabel(n,f,null,i,c&&c.get("formatter")):null,s)}return l}function ur(r,e,t,a){t=t||go;for(var n=r instanceof de,i=!1,o=0;o<Vi.length;o++){var s=e[Vi[o]];if(s&&s.getShallow("show")){i=!0;break}}var l=n?r:r.getTextContent();if(i){n||(l||(l=new de,r.setTextContent(l)),r.stateProxy&&(l.stateProxy=r.stateProxy));var u=Qs(t,e),f=e.normal,c=!!f.getShallow("show"),h=Ae(f,a&&a.normal,t,!1,!n);h.text=u.normal,n||r.setTextConfig(Hi(f,t,!1));for(var o=0;o<Xe.length;o++){var v=Xe[o],s=e[v];if(s){var d=l.ensureState(v),p=!!j(s.getShallow("show"),c);if(p!==c&&(d.ignore=!p),d.style=Ae(s,a&&a[v],t,!0,!n),d.style.text=u[v],!n){var y=r.ensureState(v);y.textConfig=Hi(s,t,!0)}}}l.silent=!!f.getShallow("silent"),l.style.x!=null&&(h.x=l.style.x),l.style.y!=null&&(h.y=l.style.y),l.ignore=!c,l.useStyle(h),l.dirty(),t.enableTextSetter&&(xa(l).setLabelText=function(g){var m=Qs(t,e,g);Dd(l,m)})}else l&&(l.ignore=!0);r.dirty()}function Mt(r,e){e=e||"label";for(var t={normal:r.getModel(e)},a=0;a<Xe.length;a++){var n=Xe[a];t[n]=r.getModel([n,e])}return t}function Ae(r,e,t,a,n){var i={};return W0(i,r,t,a,n),e&&F(i,e),i}function Hi(r,e,t){e=e||{};var a={},n,i=r.getShallow("rotate"),o=j(r.getShallow("distance"),t?null:5),s=r.getShallow("offset");return n=r.getShallow("position")||(t?null:"inside"),n==="outside"&&(n=e.defaultOutsidePosition||"top"),n!=null&&(a.position=n),s!=null&&(a.offset=s),i!=null&&(i*=Math.PI/180,a.rotation=i),o!=null&&(a.distance=o),a.outsideFill=r.get("color")==="inherit"?e.inheritColor||null:"auto",e.autoOverflowArea!=null&&(a.autoOverflowArea=e.autoOverflowArea),e.layoutRect!=null&&(a.layoutRect=e.layoutRect),a}function W0(r,e,t,a,n){t=t||go;var i=e.ecModel,o=i&&i.option.textStyle,s=U0(e),l;if(s){l={};var u="richInheritPlainLabel",f=j(e.get(u),i?i.get(u):void 0);for(var c in s)if(s.hasOwnProperty(c)){var h=e.getModel(["rich",c]);Ef(l[c]={},h,o,e,f,t,a,n,!1,!0)}}l&&(r.rich=l);var v=e.get("overflow");v&&(r.overflow=v);var d=e.get("lineOverflow");d&&(r.lineOverflow=d);var p=r,y=e.get("minMargin");if(y!=null)y=oe(y)?y/2:0,p.margin=[y,y,y,y],p.__marginType=ia.minMargin;else{var g=e.get("textMargin");g!=null&&(p.margin=Hh(g),p.__marginType=ia.textMargin)}Ef(r,e,o,null,null,t,a,n,!0,!1)}function U0(r){for(var e;r&&r!==r.ecModel;){var t=(r.option||go).rich;if(t){e=e||{};for(var a=Le(t),n=0;n<a.length;n++){var i=a[n];e[i]=1}}r=r.parentModel}return e}var kf=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Pf=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],Rf=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Ef(r,e,t,a,n,i,o,s,l,u){t=!o&&t||go;var f=i&&i.inheritColor,c=e.getShallow("color"),h=e.getShallow("textBorderColor"),v=j(e.getShallow("opacity"),t.opacity);(c==="inherit"||c==="auto")&&(f?c=f:c=null),(h==="inherit"||h==="auto")&&(f?h=f:h=null),s||(c=c||t.color,h=h||t.textBorderColor),c!=null&&(r.fill=c),h!=null&&(r.stroke=h);var d=j(e.getShallow("textBorderWidth"),t.textBorderWidth);d!=null&&(r.lineWidth=d);var p=j(e.getShallow("textBorderType"),t.textBorderType);p!=null&&(r.lineDash=p);var y=j(e.getShallow("textBorderDashOffset"),t.textBorderDashOffset);y!=null&&(r.lineDashOffset=y),!o&&v==null&&!u&&(v=i&&i.defaultOpacity),v!=null&&(r.opacity=v),!o&&!s&&r.fill==null&&i.inheritColor&&(r.fill=i.inheritColor);for(var g=0;g<kf.length;g++){var m=kf[g],_=n!==!1&&a?Rr(e.getShallow(m),a.getShallow(m),t[m]):j(e.getShallow(m),t[m]);_!=null&&(r[m]=_)}for(var g=0;g<Pf.length;g++){var m=Pf[g],_=e.getShallow(m);_!=null&&(r[m]=_)}if(r.verticalAlign==null){var S=e.getShallow("baseline");S!=null&&(r.verticalAlign=S)}if(!l||!i.disableBox){for(var g=0;g<Rf.length;g++){var m=Rf[g],_=e.getShallow(m);_!=null&&(r[m]=_)}var b=e.getShallow("borderType");b!=null&&(r.borderDash=b),(r.backgroundColor==="auto"||r.backgroundColor==="inherit")&&f&&(r.backgroundColor=f),(r.borderColor==="auto"||r.borderColor==="inherit")&&f&&(r.borderColor=f)}}function Ad(r,e){var t=e&&e.getModel("textStyle");return Bn([r.fontStyle||t&&t.getShallow("fontStyle")||"",r.fontWeight||t&&t.getShallow("fontWeight")||"",(r.fontSize||t&&t.getShallow("fontSize")||12)+"px",r.fontFamily||t&&t.getShallow("fontFamily")||"sans-serif"].join(" "))}var xa=ne();function Y0(r,e,t,a){if(r){var n=xa(r);n.prevValue=n.value,n.value=t;var i=e.normal;n.valueAnimation=i.get("valueAnimation"),n.valueAnimation&&(n.precision=i.get("precision"),n.defaultInterpolatedText=a,n.statesModels=e)}}function X0(r,e,t,a,n){var i=xa(r);if(!i.valueAnimation||i.prevValue===i.value)return;var o=i.defaultInterpolatedText,s=j(i.interpolatedValue,i.prevValue),l=i.value;function u(f){var c=id(t,i.precision,s,l,f);i.interpolatedValue=f===1?null:c;var h=Qs({labelDataIndex:e,labelFetcher:n,defaultText:o?o(c):c+""},i.statesModels,c);Dd(r,h)}r.percent=0,(i.prevValue==null?Pe:Se)(r,{percent:1},a,e,null,u)}var ia={minMargin:1,textMargin:2},Z0=["textStyle","color"],No=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Bo=new de,$0=(function(){function r(){}return r.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(Z0):null)},r.prototype.getFont=function(){return Ad({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},r.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},a=0;a<No.length;a++)t[No[a]]=this.getShallow(No[a]);return Bo.useStyle(t),Bo.update(),Bo.getBoundingRect()},r})(),Ld=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],K0=vn(Ld),q0=(function(){function r(){}return r.prototype.getLineStyle=function(e){return K0(this,e)},r})(),Id=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],j0=vn(Id),Q0=(function(){function r(){}return r.prototype.getItemStyle=function(e,t){return j0(this,e,t)},r})(),he=(function(){function r(e,t,a){this.parentModel=t,this.ecModel=a,this.option=e}return r.prototype.init=function(e,t,a){},r.prototype.mergeOption=function(e,t){ue(this.option,e,!0)},r.prototype.get=function(e,t){return e==null?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},r.prototype.getShallow=function(e,t){var a=this.option,n=a==null?a:a[e];if(n==null&&!t){var i=this.parentModel;i&&(n=i.getShallow(e))}return n},r.prototype.getModel=function(e,t){var a=e!=null,n=a?this.parsePath(e):null,i=a?this._doGet(n):this.option;return t=t||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(n)),new r(i,t,this.ecModel)},r.prototype.isEmpty=function(){return this.option==null},r.prototype.restoreData=function(){},r.prototype.clone=function(){var e=this.constructor;return new e(q(this.option))},r.prototype.parsePath=function(e){return typeof e=="string"?e.split("."):e},r.prototype.resolveParentPath=function(e){return e},r.prototype.isAnimationEnabled=function(){if(!be.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},r.prototype._doGet=function(e,t){var a=this.option;if(!e)return a;for(var n=0;n<e.length&&!(e[n]&&(a=a&&typeof a=="object"?a[e[n]]:null,a==null));n++);return a==null&&t&&(a=t._doGet(this.resolveParentPath(e),t.parentModel)),a},r})();ql(he);i0(he);gt(he,q0);gt(he,Q0);gt(he,f0);gt(he,$0);var J0=Math.round(Math.random()*10);function yo(r){return[r||"",J0++].join("_")}function e_(r){var e={};r.registerSubTypeDefaulter=function(t,a){var n=wt(t);e[n.main]=a},r.determineSubType=function(t,a){var n=a.type;if(!n){var i=wt(t).main;r.hasSubTypes(t)&&e[i]&&(n=e[i](a))}return n}}function t_(r,e){r.topologicalTravel=function(i,o,s,l){if(!i.length)return;var u=t(o),f=u.graph,c=u.noEntryList,h={};for(T(i,function(m){h[m]=!0});c.length;){var v=c.pop(),d=f[v],p=!!h[v];p&&(s.call(l,v,d.originalDeps.slice()),delete h[v]),T(d.successor,p?g:y)}T(h,function(){var m="";throw new Error(m)});function y(m){f[m].entryCount--,f[m].entryCount===0&&c.push(m)}function g(m){h[m]=!0,y(m)}};function t(i){var o={},s=[];return T(i,function(l){var u=a(o,l),f=u.originalDeps=e(l),c=n(f,i);u.entryCount=c.length,u.entryCount===0&&s.push(l),T(c,function(h){fe(u.predecessor,h)<0&&u.predecessor.push(h);var v=a(o,h);fe(v.successor,h)<0&&v.successor.push(l)})}),{graph:o,noEntryList:s}}function a(i,o){return i[o]||(i[o]={predecessor:[],successor:[]}),i[o]}function n(i,o){var s=[];return T(i,function(l){fe(o,l)>=0&&s.push(l)}),s}}function mo(r,e){return ue(ue({},r,!0),e,!0)}const r_={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:". "}}}},a_={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",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 Wi="ZH",lu="EN",fa=lu,Ti={},uu={},kd=be.domSupported?(function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||fa).toUpperCase();return r.indexOf(Wi)>-1?Wi:fa})():fa;function Pd(r,e){r=r.toUpperCase(),uu[r]=new he(e),Ti[r]=e}function n_(r){if(Z(r)){var e=Ti[r.toUpperCase()]||{};return r===Wi||r===lu?q(e):ue(q(e),q(Ti[fa]),!1)}else return ue(q(r),q(Ti[fa]),!1)}function Js(r){return uu[r]}function i_(){return uu[fa]}Pd(lu,r_);Pd(Wi,a_);var o_=null;function Ui(){return o_}var fu=1e3,cu=fu*60,tn=cu*60,tt=tn*24,Of=tt*365,s_={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},Ci={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},l_="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",$n="{yyyy}-{MM}-{dd}",Nf={year:"{yyyy}",month:"{yyyy}-{MM}",day:$n,hour:$n+" "+Ci.hour,minute:$n+" "+Ci.minute,second:$n+" "+Ci.second,millisecond:l_},Mr=["year","month","day","hour","minute","second","millisecond"],u_=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function f_(r){return!Z(r)&&!Q(r)?c_(r):r}function c_(r){r=r||{};var e={},t=!0;return T(Mr,function(a){t&&(t=r[a]==null)}),T(Mr,function(a,n){var i=r[a];e[a]={};for(var o=null,s=n;s>=0;s--){var l=Mr[s],u=K(i)&&!N(i)?i[l]:i,f=void 0;N(u)?(f=u.slice(),o=f[0]||""):Z(u)?(o=u,f=[o]):(o==null?o=Ci[a]:s_[l].test(o)||(o=e[l][l][0]+" "+o),f=[o],t&&(f[1]="{primary|"+o+"}")),e[a][l]=f}}),e}function Yt(r,e){return r+="","0000".substr(0,e-r.length)+r}function rn(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 v_(r){return r===rn(r)}function h_(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function _o(r,e,t,a){var n=Er(r),i=n[Rd(t)](),o=n[vu(t)]()+1,s=Math.floor((o-1)/3)+1,l=n[hu(t)](),u=n["get"+(t?"UTC":"")+"Day"](),f=n[du(t)](),c=(f-1)%12+1,h=n[pu(t)](),v=n[gu(t)](),d=n[yu(t)](),p=f>=12?"pm":"am",y=p.toUpperCase(),g=a instanceof he?a:Js(a||kd)||i_(),m=g.getModel("time"),_=m.get("month"),S=m.get("monthAbbr"),b=m.get("dayOfWeek"),x=m.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,p+"").replace(/{A}/g,y+"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,Yt(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,S[o-1]).replace(/{MM}/g,Yt(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Yt(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[u]).replace(/{ee}/g,x[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Yt(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,Yt(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,Yt(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,Yt(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,Yt(d,3)).replace(/{S}/g,d+"")}function d_(r,e,t,a,n){var i=null;if(Z(t))i=t;else if(Q(t)){var o={time:r.time,level:r.time.level},s=Ui();s&&s.makeAxisLabelFormatterParamBreak(o,r.break),i=t(r.value,e,o)}else{var l=r.time;if(l){var u=t[l.lowerTimeUnit][l.upperTimeUnit];i=u[Math.min(l.level,u.length-1)]||""}else{var f=Yi(r.value,n);i=t[f][f][0]}}return _o(new Date(r.value),i,n,a)}function Yi(r,e){var t=Er(r),a=t[vu(e)]()+1,n=t[hu(e)](),i=t[du(e)](),o=t[pu(e)](),s=t[gu(e)](),l=t[yu(e)](),u=l===0,f=u&&s===0,c=f&&o===0,h=c&&i===0,v=h&&n===1,d=v&&a===1;return d?"year":v?"month":h?"day":c?"hour":f?"minute":u?"second":"millisecond"}function el(r,e,t){switch(e){case"year":r[Ed(t)](0);case"month":r[Od(t)](1);case"day":r[Nd(t)](0);case"hour":r[Bd(t)](0);case"minute":r[Vd(t)](0);case"second":r[zd(t)](0)}return r}function Rd(r){return r?"getUTCFullYear":"getFullYear"}function vu(r){return r?"getUTCMonth":"getMonth"}function hu(r){return r?"getUTCDate":"getDate"}function du(r){return r?"getUTCHours":"getHours"}function pu(r){return r?"getUTCMinutes":"getMinutes"}function gu(r){return r?"getUTCSeconds":"getSeconds"}function yu(r){return r?"getUTCMilliseconds":"getMilliseconds"}function p_(r){return r?"setUTCFullYear":"setFullYear"}function Ed(r){return r?"setUTCMonth":"setMonth"}function Od(r){return r?"setUTCDate":"setDate"}function Nd(r){return r?"setUTCHours":"setHours"}function Bd(r){return r?"setUTCMinutes":"setMinutes"}function Vd(r){return r?"setUTCSeconds":"setSeconds"}function zd(r){return r?"setUTCMilliseconds":"setMilliseconds"}function Gd(r){if(!Om(r))return Z(r)?r:"-";var e=(r+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function Fd(r,e){return r=(r||"").toLowerCase().replace(/-(.)/g,function(t,a){return a.toUpperCase()}),e&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var Fn=Hh;function tl(r,e,t){var a="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function n(f){return f&&Bn(f)?f:"-"}function i(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=e==="time",s=r instanceof Date;if(o||s){var l=o?Er(r):r;if(isNaN(+l)){if(s)return"-"}else return _o(l,a,t)}if(e==="ordinal")return Bs(r)?n(r):oe(r)&&i(r)?r+"":"-";var u=Ni(r);return i(u)?Gd(u):Bs(r)?n(r):typeof r=="boolean"?r+"":"-"}var Bf=["a","b","c","d","e","f","g"],Vo=function(r,e){return"{"+r+(e??"")+"}"};function Hd(r,e,t){N(e)||(e=[e]);var a=e.length;if(!a)return"";for(var n=e[0].$vars||[],i=0;i<n.length;i++){var o=Bf[i];r=r.replace(Vo(o),Vo(o,0))}for(var s=0;s<a;s++)for(var l=0;l<n.length;l++){var u=e[s][n[l]];r=r.replace(Vo(Bf[l],s),t?Ye(u):u)}return r}function g_(r,e,t){return T(e,function(a,n){r=r.replace("{"+n+"}",a)}),r}function y_(r,e){var t=Z(r)?{color:r,extraCssText:e}:r||{},a=t.color,n=t.type;e=t.extraCssText;var i=t.renderMode||"html";if(!a)return"";if(i==="html")return n==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Ye(a)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Ye(a)+";"+(e||"")+'"></span>';var o=t.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:n==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:a}:{width:10,height:10,borderRadius:5,backgroundColor:a}}}function FD(r){return r&&r.charAt(0).toUpperCase()+r.substr(1)}function Ir(r,e){return e=e||"transparent",Z(r)?r:K(r)&&r.colorStops&&(r.colorStops[0]||{}).color||e}function Vf(r,e){if(e==="_blank"||e==="blank"){var t=window.open();t.opener=null,t.location.href=r}else window.open(r,e)}var Mi={},zo={},Hn=(function(){function r(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return r.prototype.create=function(e,t){this._nonSeriesBoxMasterList=a(Mi),this._normalMasterList=a(zo);function a(n,i){var o=[];return T(n,function(s,l){var u=s.create(e,t);o=o.concat(u||[])}),o}},r.prototype.update=function(e,t){T(this._normalMasterList,function(a){a.update&&a.update(e,t)})},r.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},r.register=function(e,t){if(e==="matrix"||e==="calendar"){Mi[e]=t;return}zo[e]=t},r.get=function(e){return zo[e]||Mi[e]},r})();function m_(r){return!!Mi[r]}var rl={coord:1,coord2:2};function __(r){Wd.set(r.fullType,{getCoord2:void 0}).getCoord2=r.getCoord2}var Wd=ee();function S_(r){var e=r.getShallow("coord",!0),t=rl.coord;if(e==null){var a=Wd.get(r.type);a&&a.getCoord2&&(t=rl.coord2,e=a.getCoord2(r))}return{coord:e,from:t}}var kt={none:0,dataCoordSys:1,boxCoordSys:2};function x_(r,e){var t=r.getShallow("coordinateSystem"),a=r.getShallow("coordinateSystemUsage",!0),n=kt.none;if(t){var i=r.mainType==="series";a==null&&(a=i?"data":"box"),a==="data"?(n=kt.dataCoordSys,i||(n=kt.none)):a==="box"&&(n=kt.boxCoordSys,!i&&!m_(t)&&(n=kt.none))}return{coordSysType:t,kind:n}}function mu(r){var e=r.targetModel,t=r.coordSysType,a=r.coordSysProvider,n=r.isDefaultDataCoordSys;r.allowNotFound;var i=x_(e),o=i.kind,s=i.coordSysType;if(n&&o!==kt.dataCoordSys&&(o=kt.dataCoordSys,s=t),o===kt.none||s!==t)return!1;var l=a(t,e);return l?(o===kt.dataCoordSys?e.coordinateSystem=l:e.boxCoordinateSystem=l,!0):!1}var b_=function(r,e){var t=e.getReferringComponents(r,Ze).models[0];return t&&t.coordinateSystem},Di=T,w_=["left","right","top","bottom","width","height"],wr=[["width","left","right"],["height","top","bottom"]];function _u(r,e,t,a,n){var i=0,o=0;a==null&&(a=1/0),n==null&&(n=1/0);var s=0;e.eachChild(function(l,u){var f=l.getBoundingRect(),c=e.childAt(u+1),h=c&&c.getBoundingRect(),v,d;if(r==="horizontal"){var p=f.width+(h?-h.x+f.x:0);v=i+p,v>a||l.newline?(i=0,v=p,o+=s+t,s=f.height):s=Math.max(s,f.height)}else{var y=f.height+(h?-h.y+f.y:0);d=o+y,d>n||l.newline?(i+=s+t,o=0,d=y,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),r==="horizontal"?i=v+t:o=d+t)})}var ca=_u;ye(_u,"vertical");ye(_u,"horizontal");function T_(r,e){return{left:r.getShallow("left",e),top:r.getShallow("top",e),right:r.getShallow("right",e),bottom:r.getShallow("bottom",e),width:r.getShallow("width",e),height:r.getShallow("height",e)}}function C_(r,e){var t=Nr(r,e,{enableLayoutOnlyByCenter:!0}),a=r.getBoxLayoutParams(),n,i;if(t.type===Xa.point)i=t.refPoint,n=qe(a,{width:e.getWidth(),height:e.getHeight()});else{var o=r.get("center"),s=N(o)?o:[o,o];n=qe(a,t.refContainer),i=t.boxCoordFrom===rl.coord2?t.refPoint:[re(s[0],n.width)+n.x,re(s[1],n.height)+n.y]}return{viewRect:n,center:i}}function M_(r,e){var t=C_(r,e),a=t.viewRect,n=t.center,i=r.get("radius");N(i)||(i=[0,i]);var o=re(a.width,e.getWidth()),s=re(a.height,e.getHeight()),l=Math.min(o,s),u=re(i[0],l/2),f=re(i[1],l/2);return{cx:n[0],cy:n[1],r0:u,r:f,viewRect:a}}function qe(r,e,t){t=Fn(t||0);var a=e.width,n=e.height,i=re(r.left,a),o=re(r.top,n),s=re(r.right,a),l=re(r.bottom,n),u=re(r.width,a),f=re(r.height,n),c=t[2]+t[0],h=t[1]+t[3],v=r.aspect;switch(isNaN(u)&&(u=a-s-h-i),isNaN(f)&&(f=n-l-c-o),v!=null&&(isNaN(u)&&isNaN(f)&&(v>a/n?u=a*.8:f=n*.8),isNaN(u)&&(u=v*f),isNaN(f)&&(f=u/v)),isNaN(i)&&(i=a-s-u-h),isNaN(o)&&(o=n-l-f-c),r.left||r.right){case"center":i=a/2-u/2-t[3];break;case"right":i=a-u-h;break}switch(r.top||r.bottom){case"middle":case"center":o=n/2-f/2-t[0];break;case"bottom":o=n-f-c;break}i=i||0,o=o||0,isNaN(u)&&(u=a-h-i-(s||0)),isNaN(f)&&(f=n-c-o-(l||0));var d=new Me((e.x||0)+i+t[3],(e.y||0)+o+t[0],u,f);return d.margin=t,d}function D_(r,e,t){var a=r.getShallow("preserveAspect",!0);if(!a)return e;var n=e.width/e.height;if(Math.abs(Math.atan(t)-Math.atan(n))<1e-9)return e;var i=r.getShallow("preserveAspectAlign",!0),o=r.getShallow("preserveAspectVerticalAlign",!0),s={width:e.width,height:e.height},l=a==="cover";return n>t&&!l||n<t&&l?(s.width=e.height*t,i==="left"?s.left=0:i==="right"?s.right=0:s.left="center"):(s.height=e.width/t,o==="top"?s.top=0:o==="bottom"?s.bottom=0:s.top="middle"),qe(s,e)}var Xa={rect:1,point:2};function Nr(r,e,t){var a,n,i,o=r.boxCoordinateSystem,s;if(o){var l=S_(r),u=l.coord,f=l.from;if(o.dataToLayout){i=Xa.rect,s=f;var c=o.dataToLayout(u);a=c.contentRect||c.rect}else t&&t.enableLayoutOnlyByCenter&&o.dataToPoint&&(i=Xa.point,s=f,n=o.dataToPoint(u))}return i==null&&(i=Xa.rect),i===Xa.rect&&(a||(a={x:0,y:0,width:e.getWidth(),height:e.getHeight()}),n=[a.x+a.width/2,a.y+a.height/2]),{type:i,refContainer:a,refPoint:n,boxCoordFrom:s}}function A_(r,e,t,a,n,i){i=i||r,i.x=r.x,i.y=r.y;var o;if(o=r.getBoundingRect(),r.needLocalTransform()){var s=r.getLocalTransform();o=o.clone(),o.applyTransform(s)}var l=qe(ae({width:o.width,height:o.height},e),t,a),u=l.x-o.x,f=l.y-o.y;return i.x+=u,i.y+=f,i===r&&r.markRedraw(),!0}function L_(r,e){return r[wr[e][0]]!=null||r[wr[e][1]]!=null&&r[wr[e][2]]!=null}function xn(r){var e=r.layoutMode||r.constructor.layoutMode;return K(e)?e:e?{type:e}:null}function zt(r,e,t){var a=t&&t.ignoreSize;!N(a)&&(a=[a,a]);var n=o(wr[0],0),i=o(wr[1],1);l(wr[0],r,n),l(wr[1],r,i);function o(u,f){var c={},h=0,v={},d=0,p=2;if(Di(u,function(m){v[m]=r[m]}),Di(u,function(m){G(e,m)&&(c[m]=v[m]=e[m]),s(c,m)&&h++,s(v,m)&&d++}),a[f])return s(e,u[1])?v[u[2]]=null:s(e,u[2])&&(v[u[1]]=null),v;if(d===p||!h)return v;if(h>=p)return c;for(var y=0;y<u.length;y++){var g=u[y];if(!G(c,g)&&G(r,g)){c[g]=r[g];break}}return c}function s(u,f){return u[f]!=null&&u[f]!=="auto"}function l(u,f,c){Di(u,function(h){f[h]=c[h]})}}function ba(r){return I_({},r)}function I_(r,e){return e&&r&&Di(w_,function(t){G(e,t)&&(r[t]=e[t])}),r}var k_=ne(),ie=(function(r){U(e,r);function e(t,a,n){var i=r.call(this,t,a,n)||this;return i.uid=yo("ec_cpt_model"),i}return e.prototype.init=function(t,a,n){this.mergeDefaultAndTheme(t,n)},e.prototype.mergeDefaultAndTheme=function(t,a){var n=xn(this),i=n?ba(t):{},o=a.getTheme();ue(t,o.get(this.mainType)),ue(t,this.getDefaultOption()),n&&zt(t,i,n)},e.prototype.mergeOption=function(t,a){ue(this.option,t,!0);var n=xn(this);n&&zt(this.option,t,n)},e.prototype.optionUpdated=function(t,a){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!r0(t))return t.defaultOption;var a=k_(this);if(!a.defaultOption){for(var n=[],i=t;i;){var o=i.prototype.defaultOption;o&&n.push(o),i=i.superClass}for(var s={},l=n.length-1;l>=0;l--)s=ue(s,n[l],!0);a.defaultOption=s}return a.defaultOption},e.prototype.getReferringComponents=function(t,a){var n=t+"Index",i=t+"Id";return Sa(this.ecModel,t,{index:this.get(n,!0),id:this.get(i,!0)},a)},e.prototype.getBoxLayoutParams=function(){return T_(this,!1)},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=(function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0})(),e})(he);sd(ie,he);fo(ie);e_(ie);t_(ie,P_);function P_(r){var e=[];return T(ie.getClassesByMainType(r),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=X(e,function(t){return wt(t).main}),r!=="dataset"&&fe(e,"dataset")<=0&&e.unshift("dataset"),e}var B={color:{},darkColor:{},size:{}},me=B.color={theme:["#5070dd","#b6d634","#505372","#ff994d","#0ca8df","#ffd10a","#fb628b","#785db0","#3fbe95"],neutral00:"#fff",neutral05:"#f4f7fd",neutral10:"#e8ebf0",neutral15:"#dbdee4",neutral20:"#cfd2d7",neutral25:"#c3c5cb",neutral30:"#b7b9be",neutral35:"#aaacb2",neutral40:"#9ea0a5",neutral45:"#929399",neutral50:"#86878c",neutral55:"#797b7f",neutral60:"#6d6e73",neutral65:"#616266",neutral70:"#54555a",neutral75:"#48494d",neutral80:"#3c3c41",neutral85:"#303034",neutral90:"#232328",neutral95:"#17171b",neutral99:"#000",accent05:"#eff1f9",accent10:"#e0e4f2",accent15:"#d0d6ec",accent20:"#c0c9e6",accent25:"#b1bbdf",accent30:"#a1aed9",accent35:"#91a0d3",accent40:"#8292cc",accent45:"#7285c6",accent50:"#6578ba",accent55:"#5c6da9",accent60:"#536298",accent65:"#4a5787",accent70:"#404c76",accent75:"#374165",accent80:"#2e3654",accent85:"#252b43",accent90:"#1b2032",accent95:"#121521",transparent:"rgba(0,0,0,0)",highlight:"rgba(255,231,130,0.8)"};F(me,{primary:me.neutral80,secondary:me.neutral70,tertiary:me.neutral60,quaternary:me.neutral50,disabled:me.neutral20,border:me.neutral30,borderTint:me.neutral20,borderShade:me.neutral40,background:me.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:me.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:me.neutral70,axisLineTint:me.neutral40,axisTick:me.neutral70,axisTickMinor:me.neutral60,axisLabel:me.neutral70,axisSplitLine:me.neutral15,axisMinorSplitLine:me.neutral05});for(var hr in me)if(me.hasOwnProperty(hr)){var zf=me[hr];hr==="theme"?B.darkColor.theme=me.theme.slice():hr==="highlight"?B.darkColor.highlight="rgba(255,231,130,0.4)":hr.indexOf("accent")===0?B.darkColor[hr]=sa(zf,null,function(r){return r*.5},function(r){return Math.min(1,1.3-r)}):B.darkColor[hr]=sa(zf,null,function(r){return r*.9},function(r){return 1-Math.pow(r,1.5)})}B.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var Ud="";typeof navigator<"u"&&(Ud=navigator.platform||"");var Wr="rgba(0, 0, 0, 0.2)",Yd=B.color.theme[0],R_=sa(Yd,null,null,.9);const E_={darkMode:"auto",colorBy:"series",color:B.color.theme,gradientColor:[R_,Yd],aria:{decal:{decals:[{color:Wr,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Wr,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Wr,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Wr,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Wr,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Wr,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Ud.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 Xd=ee(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),je="original",Ge="arrayRows",st="objectRows",mt="keyedColumns",ar="typedArray",Zd="unknown",vt="column",Br="row",Ee={Must:1,Might:2,Not:3},$d=ne();function O_(r){$d(r).datasetMap=ee()}function N_(r,e,t){var a={},n=Su(e);if(!n||!r)return a;var i=[],o=[],s=e.ecModel,l=$d(s).datasetMap,u=n.uid+"_"+t.seriesLayoutBy,f,c;r=r.slice(),T(r,function(p,y){var g=K(p)?p:r[y]={name:p};g.type==="ordinal"&&f==null&&(f=y,c=d(g)),a[g.name]=[]});var h=l.get(u)||l.set(u,{categoryWayDim:c,valueWayDim:0});T(r,function(p,y){var g=p.name,m=d(p);if(f==null){var _=h.valueWayDim;v(a[g],_,m),v(o,_,m),h.valueWayDim+=m}else if(f===y)v(a[g],0,m),v(i,0,m);else{var _=h.categoryWayDim;v(a[g],_,m),v(o,_,m),h.categoryWayDim+=m}});function v(p,y,g){for(var m=0;m<g;m++)p.push(y+m)}function d(p){var y=p.dimsDef;return y?y.length:1}return i.length&&(a.itemName=i),o.length&&(a.seriesName=o),a}function B_(r,e,t){var a={},n=Su(r);if(!n)return a;var i=e.sourceFormat,o=e.dimensionsDefine,s;(i===st||i===mt)&&T(o,function(f,c){(K(f)?f.name:f)==="name"&&(s=c)});var l=(function(){for(var f={},c={},h=[],v=0,d=Math.min(5,t);v<d;v++){var p=qd(e.data,i,e.seriesLayoutBy,o,e.startIndex,v);h.push(p);var y=p===Ee.Not;if(y&&f.v==null&&v!==s&&(f.v=v),(f.n==null||f.n===f.v||!y&&h[f.n]===Ee.Not)&&(f.n=v),g(f)&&h[f.n]!==Ee.Not)return f;y||(p===Ee.Might&&c.v==null&&v!==s&&(c.v=v),(c.n==null||c.n===c.v)&&(c.n=v))}function g(m){return m.v!=null&&m.n!=null}return g(f)?f:g(c)?c:null})();if(l){a.value=[l.v];var u=s??l.n;a.itemName=[u],a.seriesName=[u]}return a}function Su(r){var e=r.get("data",!0);if(!e)return Sa(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},Ze).models[0]}function V_(r){return!r.get("transform",!0)&&!r.get("fromTransformResult",!0)?[]:Sa(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},Ze).models}function Kd(r,e){return qd(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,e)}function qd(r,e,t,a,n,i){var o,s=5;if(Ke(r))return Ee.Not;var l,u;if(a){var f=a[i];K(f)?(l=f.name,u=f.type):Z(f)&&(l=f)}if(u!=null)return u==="ordinal"?Ee.Must:Ee.Not;if(e===Ge){var c=r;if(t===Br){for(var h=c[i],v=0;v<(h||[]).length&&v<s;v++)if((o=S(h[n+v]))!=null)return o}else for(var v=0;v<c.length&&v<s;v++){var d=c[n+v];if(d&&(o=S(d[i]))!=null)return o}}else if(e===st){var p=r;if(!l)return Ee.Not;for(var v=0;v<p.length&&v<s;v++){var y=p[v];if(y&&(o=S(y[l]))!=null)return o}}else if(e===mt){var g=r;if(!l)return Ee.Not;var h=g[l];if(!h||Ke(h))return Ee.Not;for(var v=0;v<h.length&&v<s;v++)if((o=S(h[v]))!=null)return o}else if(e===je)for(var m=r,v=0;v<m.length&&v<s;v++){var y=m[v],_=Gn(y);if(!N(_))return Ee.Not;if((o=S(_[i]))!=null)return o}function S(b){var x=Z(b);if(b!=null&&Number.isFinite(Number(b))&&b!=="")return x?Ee.Might:Ee.Not;if(x&&b!=="-")return Ee.Must}return Ee.Not}var z_=ee();function G_(r,e,t){var a=z_.get(e);if(!a)return t;var n=a(r);return n?t.concat(n):t}var Gf=ne();ne();var xu=(function(){function r(){}return r.prototype.getColorFromPalette=function(e,t,a){var n=De(this.get("color",!0)),i=this.get("colorLayer",!0);return H_(this,Gf,n,i,e,t,a)},r.prototype.clearColorPalette=function(){W_(this,Gf)},r})();function F_(r,e){for(var t=r.length,a=0;a<t;a++)if(r[a].length>e)return r[a];return r[t-1]}function H_(r,e,t,a,n,i,o){i=i||r;var s=e(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(n))return u[n];var f=o==null||!a?t:F_(a,o);if(f=f||t,!(!f||!f.length)){var c=f[l];return n&&(u[n]=c),s.paletteIdx=(l+1)%f.length,c}}function W_(r,e){e(r).paletteIdx=0,e(r).paletteNameMap={}}var Kn,Da,Ff,Hf="\0_ec_inner",U_=1,bu=(function(r){U(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(t,a,n,i,o,s){i=i||{},this.option=null,this._theme=new he(i),this._locale=new he(o),this._optionManager=s},e.prototype.setOption=function(t,a,n){var i=Yf(a);this._optionManager.setOption(t,n,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,a){return this._resetOption(t,Yf(a))},e.prototype._resetOption=function(t,a){var n=!1,i=this._optionManager;if(!t||t==="recreate"){var o=i.mountOption(t==="recreate");!this.option||t==="recreate"?Ff(this,o):(this.restoreData(),this._mergeOption(o,a)),n=!0}if((t==="timeline"||t==="media")&&this.restoreData(),!t||t==="recreate"||t==="timeline"){var s=i.getTimelineOption(this);s&&(n=!0,this._mergeOption(s,a))}if(!t||t==="recreate"||t==="media"){var l=i.getMediaOption(this);l.length&&T(l,function(u){n=!0,this._mergeOption(u,a)},this)}return n},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,a){var n=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=ee(),u=a&&a.replaceMergeMainTypeMap;O_(this),T(t,function(c,h){c!=null&&(ie.hasClass(h)?h&&(s.push(h),l.set(h,!0)):n[h]=n[h]==null?q(c):ue(n[h],c,!0))}),u&&u.each(function(c,h){ie.hasClass(h)&&!l.get(h)&&(s.push(h),l.set(h,!0))}),ie.topologicalTravel(s,ie.getAllClassMainTypes(),f,this);function f(c){var h=G_(this,c,De(t[c])),v=i.get(c),d=v?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",p=Fm(v,h,d);$m(p,c,ie),n[c]=null,i.set(c,null),o.set(c,0);var y=[],g=[],m=0,_;T(p,function(S,b){var x=S.existing,w=S.newOption;if(!w)x&&(x.mergeOption({},this),x.optionUpdated({},!1));else{var D=c==="series",M=ie.getClass(c,S.keyInfo.subType,!D);if(!M)return;if(c==="tooltip"){if(_)return;_=!0}if(x&&x.constructor===M)x.name=S.keyInfo.name,x.mergeOption(w,this),x.optionUpdated(w,!1);else{var A=F({componentIndex:b},S.keyInfo);x=new M(w,this,this,A),F(x,A),S.brandNew&&(x.__requireNewView=!0),x.init(w,this,this),x.optionUpdated(null,!0)}}x?(y.push(x.option),g.push(x),m++):(y.push(void 0),g.push(void 0))},this),n[c]=y,i.set(c,g),o.set(c,m),c==="series"&&Kn(this)}this._seriesIndices||Kn(this)},e.prototype.getOption=function(){var t=q(this.option);return T(t,function(a,n){if(ie.hasClass(n)){for(var i=De(a),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!cn(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,t[n]=i}}),delete t[Hf],t},e.prototype.setTheme=function(t){this._theme=new he(t),this._resetOption("recreate",null)},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,a){var n=this._componentsMap.get(t);if(n){var i=n[a||0];if(i)return i;if(a==null){for(var o=0;o<n.length;o++)if(n[o])return n[o]}}},e.prototype.queryComponents=function(t){var a=t.mainType;if(!a)return[];var n=t.index,i=t.id,o=t.name,s=this._componentsMap.get(a);if(!s||!s.length)return[];var l;return n!=null?(l=[],T(De(n),function(u){s[u]&&l.push(s[u])})):i!=null?l=Wf("id",i,s):o!=null?l=Wf("name",o,s):l=Ce(s,function(u){return!!u}),Uf(l,t)},e.prototype.findComponents=function(t){var a=t.query,n=t.mainType,i=s(a),o=i?this.queryComponents(i):Ce(this._componentsMap.get(n),function(u){return!!u});return l(Uf(o,t));function s(u){var f=n+"Index",c=n+"Id",h=n+"Name";return u&&(u[f]!=null||u[c]!=null||u[h]!=null)?{mainType:n,index:u[f],id:u[c],name:u[h]}:null}function l(u){return t.filter?Ce(u,t.filter):u}},e.prototype.eachComponent=function(t,a,n){var i=this._componentsMap;if(Q(t)){var o=a,s=t;i.each(function(c,h){for(var v=0;c&&v<c.length;v++){var d=c[v];d&&s.call(o,h,d,d.componentIndex)}})}else for(var l=Z(t)?i.get(t):K(t)?this.findComponents(t):null,u=0;l&&u<l.length;u++){var f=l[u];f&&a.call(n,f,f.componentIndex)}},e.prototype.getSeriesByName=function(t){var a=rt(t,null);return Ce(this._componentsMap.get("series"),function(n){return!!n&&a!=null&&n.name===a})},e.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},e.prototype.getSeriesByType=function(t){return Ce(this._componentsMap.get("series"),function(a){return!!a&&a.subType===t})},e.prototype.getSeries=function(){return Ce(this._componentsMap.get("series"),function(t){return!!t})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,a){Da(this),T(this._seriesIndices,function(n){var i=this._componentsMap.get("series")[n];t.call(a,i,n)},this)},e.prototype.eachRawSeries=function(t,a){T(this._componentsMap.get("series"),function(n){n&&t.call(a,n,n.componentIndex)})},e.prototype.eachSeriesByType=function(t,a,n){Da(this),T(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];o.subType===t&&a.call(n,o,i)},this)},e.prototype.eachRawSeriesByType=function(t,a,n){return T(this.getSeriesByType(t),a,n)},e.prototype.isSeriesFiltered=function(t){return Da(this),this._seriesIndicesMap.get(t.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,a){Da(this);var n=[];T(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];t.call(a,o,i)&&n.push(i)},this),this._seriesIndices=n,this._seriesIndicesMap=ee(n)},e.prototype.restoreData=function(t){Kn(this);var a=this._componentsMap,n=[];a.each(function(i,o){ie.hasClass(o)&&n.push(o)}),ie.topologicalTravel(n,ie.getAllClassMainTypes(),function(i){T(a.get(i),function(o){o&&(i!=="series"||!Y_(o,t))&&o.restoreData()})})},e.internalField=(function(){Kn=function(t){var a=t._seriesIndices=[];T(t._componentsMap.get("series"),function(n){n&&a.push(n.componentIndex)}),t._seriesIndicesMap=ee(a)},Da=function(t){},Ff=function(t,a){t.option={},t.option[Hf]=U_,t._componentsMap=ee({series:[]}),t._componentsCount=ee();var n=a.aria;K(n)&&n.enabled==null&&(n.enabled=!0),X_(a,t._theme.option),ue(a,E_,!1),t._mergeOption(a,null)}})(),e})(he);function Y_(r,e){if(e){var t=e.seriesIndex,a=e.seriesId,n=e.seriesName;return t!=null&&r.componentIndex!==t||a!=null&&r.id!==a||n!=null&&r.name!==n}}function X_(r,e){var t=r.color&&!r.colorLayer;T(e,function(a,n){n==="colorLayer"&&t||n==="color"&&r.color||ie.hasClass(n)||(typeof a=="object"?r[n]=r[n]?ue(r[n],a,!1):q(a):r[n]==null&&(r[n]=a))})}function Wf(r,e,t){if(N(e)){var a=ee();return T(e,function(i){if(i!=null){var o=rt(i,null);o!=null&&a.set(i,!0)}}),Ce(t,function(i){return i&&a.get(i[r])})}else{var n=rt(e,null);return Ce(t,function(i){return i&&n!=null&&i[r]===n})}}function Uf(r,e){return e.hasOwnProperty("subType")?Ce(r,function(t){return t&&t.subType===e.subType}):r}function Yf(r){var e=ee();return r&&T(De(r.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}gt(bu,xu);var Z_=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],jd=(function(){function r(e){T(Z_,function(t){this[t]=$(e[t],e)},this)}return r})(),$_=/^(min|max)?(.+)$/,K_=(function(){function r(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return r.prototype.setOption=function(e,t,a){e&&(T(De(e.series),function(o){o&&o.data&&Ke(o.data)&&Ri(o.data)}),T(De(e.dataset),function(o){o&&o.source&&Ke(o.source)&&Ri(o.source)})),e=q(e);var n=this._optionBackup,i=q_(e,t,!n);this._newBaseOption=i.baseOption,n?(i.timelineOptions.length&&(n.timelineOptions=i.timelineOptions),i.mediaList.length&&(n.mediaList=i.mediaList),i.mediaDefault&&(n.mediaDefault=i.mediaDefault)):this._optionBackup=i},r.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],q(e?t.baseOption:this._newBaseOption)},r.prototype.getTimelineOption=function(e){var t,a=this._timelineOptions;if(a.length){var n=e.getComponent("timeline");n&&(t=q(a[n.getCurrentIndex()]))}return t},r.prototype.getMediaOption=function(e){var t=this._api.getWidth(),a=this._api.getHeight(),n=this._mediaList,i=this._mediaDefault,o=[],s=[];if(!n.length&&!i)return s;for(var l=0,u=n.length;l<u;l++)j_(n[l].query,t,a)&&o.push(l);return!o.length&&i&&(o=[-1]),o.length&&!J_(o,this._currentMediaIndices)&&(s=X(o,function(f){return q(f===-1?i.option:n[f].option)})),this._currentMediaIndices=o,s},r})();function q_(r,e,t){var a=[],n,i,o=r.baseOption,s=r.timeline,l=r.options,u=r.media,f=!!r.media,c=!!(l||s||o&&o.timeline);o?(i=o,i.timeline||(i.timeline=s)):((c||f)&&(r.options=r.media=null),i=r),f&&N(u)&&T(u,function(v){v&&v.option&&(v.query?a.push(v):n||(n=v))}),h(i),T(l,function(v){return h(v)}),T(a,function(v){return h(v.option)});function h(v){T(e,function(d){d(v,t)})}return{baseOption:i,timelineOptions:l||[],mediaDefault:n,mediaList:a}}function j_(r,e,t){var a={width:e,height:t,aspectratio:e/t},n=!0;return T(r,function(i,o){var s=o.match($_);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();Q_(a[u],i,l)||(n=!1)}}),n}function Q_(r,e,t){return t==="min"?r>=e:t==="max"?r<=e:r===e}function J_(r,e){return r.join(",")===e.join(",")}var lt=T,bn=K,Xf=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Go(r){var e=r&&r.itemStyle;if(e)for(var t=0,a=Xf.length;t<a;t++){var n=Xf[t],i=e.normal,o=e.emphasis;i&&i[n]&&(r[n]=r[n]||{},r[n].normal?ue(r[n].normal,i[n]):r[n].normal=i[n],i[n]=null),o&&o[n]&&(r[n]=r[n]||{},r[n].emphasis?ue(r[n].emphasis,o[n]):r[n].emphasis=o[n],o[n]=null)}}function Ve(r,e,t){if(r&&r[e]&&(r[e].normal||r[e].emphasis)){var a=r[e].normal,n=r[e].emphasis;a&&(t?(r[e].normal=r[e].emphasis=null,ae(r[e],a)):r[e]=a),n&&(r.emphasis=r.emphasis||{},r.emphasis[e]=n,n.focus&&(r.emphasis.focus=n.focus),n.blurScope&&(r.emphasis.blurScope=n.blurScope))}}function Za(r){Ve(r,"itemStyle"),Ve(r,"lineStyle"),Ve(r,"areaStyle"),Ve(r,"label"),Ve(r,"labelLine"),Ve(r,"upperLabel"),Ve(r,"edgeLabel")}function xe(r,e){var t=bn(r)&&r[e],a=bn(t)&&t.textStyle;if(a)for(var n=0,i=mf.length;n<i;n++){var o=mf[n];a.hasOwnProperty(o)&&(t[o]=a[o])}}function et(r){r&&(Za(r),xe(r,"label"),r.emphasis&&xe(r.emphasis,"label"))}function eS(r){if(bn(r)){Go(r),Za(r),xe(r,"label"),xe(r,"upperLabel"),xe(r,"edgeLabel"),r.emphasis&&(xe(r.emphasis,"label"),xe(r.emphasis,"upperLabel"),xe(r.emphasis,"edgeLabel"));var e=r.markPoint;e&&(Go(e),et(e));var t=r.markLine;t&&(Go(t),et(t));var a=r.markArea;a&&et(a);var n=r.data;if(r.type==="graph"){n=n||r.nodes;var i=r.links||r.edges;if(i&&!Ke(i))for(var o=0;o<i.length;o++)et(i[o]);T(r.categories,function(u){Za(u)})}if(n&&!Ke(n))for(var o=0;o<n.length;o++)et(n[o]);if(e=r.markPoint,e&&e.data)for(var s=e.data,o=0;o<s.length;o++)et(s[o]);if(t=r.markLine,t&&t.data)for(var l=t.data,o=0;o<l.length;o++)N(l[o])?(et(l[o][0]),et(l[o][1])):et(l[o]);r.type==="gauge"?(xe(r,"axisLabel"),xe(r,"title"),xe(r,"detail")):r.type==="treemap"?(Ve(r.breadcrumb,"itemStyle"),T(r.levels,function(u){Za(u)})):r.type==="tree"&&Za(r.leaves)}}function At(r){return N(r)?r:r?[r]:[]}function Zf(r){return(N(r)?r[0]:r)||{}}function tS(r,e){lt(At(r.series),function(a){bn(a)&&eS(a)});var t=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&t.push("valueAxis","categoryAxis","logAxis","timeAxis"),lt(t,function(a){lt(At(r[a]),function(n){n&&(xe(n,"axisLabel"),xe(n.axisPointer,"label"))})}),lt(At(r.parallel),function(a){var n=a&&a.parallelAxisDefault;xe(n,"axisLabel"),xe(n&&n.axisPointer,"label")}),lt(At(r.calendar),function(a){Ve(a,"itemStyle"),xe(a,"dayLabel"),xe(a,"monthLabel"),xe(a,"yearLabel")}),lt(At(r.radar),function(a){xe(a,"name"),a.name&&a.axisName==null&&(a.axisName=a.name,delete a.name),a.nameGap!=null&&a.axisNameGap==null&&(a.axisNameGap=a.nameGap,delete a.nameGap)}),lt(At(r.geo),function(a){bn(a)&&(et(a),lt(At(a.regions),function(n){et(n)}))}),lt(At(r.timeline),function(a){et(a),Ve(a,"label"),Ve(a,"itemStyle"),Ve(a,"controlStyle",!0);var n=a.data;N(n)&&T(n,function(i){K(i)&&(Ve(i,"label"),Ve(i,"itemStyle"))})}),lt(At(r.toolbox),function(a){Ve(a,"iconStyle"),lt(a.feature,function(n){Ve(n,"iconStyle")})}),xe(Zf(r.axisPointer),"label"),xe(Zf(r.tooltip).axisPointer,"label")}function rS(r,e){for(var t=e.split(","),a=r,n=0;n<t.length&&(a=a&&a[t[n]],a!=null);n++);return a}function aS(r,e,t,a){for(var n=e.split(","),i=r,o,s=0;s<n.length-1;s++)o=n[s],i[o]==null&&(i[o]={}),i=i[o];i[n[s]]==null&&(i[n[s]]=t)}function $f(r){r&&T(nS,function(e){e[0]in r&&!(e[1]in r)&&(r[e[1]]=r[e[0]])})}var nS=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],iS=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Fo=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Aa(r){var e=r&&r.itemStyle;if(e)for(var t=0;t<Fo.length;t++){var a=Fo[t][1],n=Fo[t][0];e[a]!=null&&(e[n]=e[a])}}function Kf(r){r&&r.alignTo==="edge"&&r.margin!=null&&r.edgeDistance==null&&(r.edgeDistance=r.margin)}function qf(r){r&&r.downplay&&!r.blur&&(r.blur=r.downplay)}function oS(r){r&&r.focusNodeAdjacency!=null&&(r.emphasis=r.emphasis||{},r.emphasis.focus==null&&(r.emphasis.focus="adjacency"))}function Qd(r,e){if(r)for(var t=0;t<r.length;t++)e(r[t]),r[t]&&Qd(r[t].children,e)}function Jd(r,e){tS(r,e),r.series=De(r.series),T(r.series,function(t){if(K(t)){var a=t.type;if(a==="line")t.clipOverflow!=null&&(t.clip=t.clipOverflow);else if(a==="pie"||a==="gauge"){t.clockWise!=null&&(t.clockwise=t.clockWise),Kf(t.label);var n=t.data;if(n&&!Ke(n))for(var i=0;i<n.length;i++)Kf(n[i]);t.hoverOffset!=null&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset))}else if(a==="gauge"){var o=rS(t,"pointer.color");o!=null&&aS(t,"itemStyle.color",o)}else if(a==="bar"){Aa(t),Aa(t.backgroundStyle),Aa(t.emphasis);var n=t.data;if(n&&!Ke(n))for(var i=0;i<n.length;i++)typeof n[i]=="object"&&(Aa(n[i]),Aa(n[i]&&n[i].emphasis))}else if(a==="sunburst"){var s=t.highlightPolicy;s&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=s)),qf(t),Qd(t.data,qf)}else a==="graph"||a==="sankey"?oS(t):a==="map"&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation&&ae(t,t.mapLocation));t.hoverAnimation!=null&&(t.emphasis=t.emphasis||{},t.emphasis&&t.emphasis.scale==null&&(t.emphasis.scale=t.hoverAnimation)),$f(t)}}),r.dataRange&&(r.visualMap=r.dataRange),T(iS,function(t){var a=r[t];a&&(N(a)||(a=[a]),T(a,function(n){$f(n)}))})}function sS(r){var e=ee();r.eachSeries(function(t){var a=t.get("stack");if(a){var n=e.get(a)||e.set(a,[]),i=t.getData(),o={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:t};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;n.push(o)}}),e.each(function(t){if(t.length!==0){var a=t[0].seriesModel,n=a.get("stackOrder")||"seriesAsc";n==="seriesDesc"&&t.reverse(),T(t,function(i,o){i.data.setCalculationInfo("stackedOnSeries",o>0?t[o-1].seriesModel:null)}),lS(t)}})}function lS(r){T(r,function(e,t){var a=[],n=[NaN,NaN],i=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";o.modify(i,function(u,f,c){var h=o.get(e.stackedDimension,c);if(isNaN(h))return n;var v,d;s?d=o.getRawIndex(c):v=o.get(e.stackedByDimension,c);for(var p=NaN,y=t-1;y>=0;y--){var g=r[y];if(s||(d=g.data.rawIndexOf(g.stackedByDimension,v)),d>=0){var m=g.data.getByRawIndex(g.stackResultDimension,d);if(l==="all"||l==="positive"&&m>0||l==="negative"&&m<0||l==="samesign"&&h>=0&&m>0||l==="samesign"&&h<=0&&m<0){h=Pm(h,m),p=m;break}}}return a[0]=h,a[1]=p,a})})}var So=(function(){function r(e){this.data=e.data||(e.sourceFormat===mt?{}:[]),this.sourceFormat=e.sourceFormat||Zd,this.seriesLayoutBy=e.seriesLayoutBy||vt,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var a=0;a<t.length;a++){var n=t[a];n.type==null&&Kd(this,a)===Ee.Must&&(n.type="ordinal")}}return r})();function wu(r){return r instanceof So}function al(r,e,t){t=t||ep(r);var a=e.seriesLayoutBy,n=fS(r,t,a,e.sourceHeader,e.dimensions),i=new So({data:r,sourceFormat:t,seriesLayoutBy:a,dimensionsDefine:n.dimensionsDefine,startIndex:n.startIndex,dimensionsDetectedCount:n.dimensionsDetectedCount,metaRawOption:q(e)});return i}function Tu(r){return new So({data:r,sourceFormat:Ke(r)?ar:je})}function uS(r){return new So({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:q(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function ep(r){var e=Zd;if(Ke(r))e=ar;else if(N(r)){r.length===0&&(e=Ge);for(var t=0,a=r.length;t<a;t++){var n=r[t];if(n!=null){if(N(n)||Ke(n)){e=Ge;break}else if(K(n)){e=st;break}}}}else if(K(r)){for(var i in r)if(G(r,i)&&Rn(r[i])){e=mt;break}}return e}function fS(r,e,t,a,n){var i,o;if(!r)return{dimensionsDefine:jf(n),startIndex:o,dimensionsDetectedCount:i};if(e===Ge){var s=r;a==="auto"||a==null?Qf(function(u){u!=null&&u!=="-"&&(Z(u)?o==null&&(o=1):o=0)},t,s,10):o=oe(a)?a:a?1:0,!n&&o===1&&(n=[],Qf(function(u,f){n[f]=u!=null?u+"":""},t,s,1/0)),i=n?n.length:t===Br?s.length:s[0]?s[0].length:null}else if(e===st)n||(n=cS(r));else if(e===mt)n||(n=[],T(r,function(u,f){n.push(f)}));else if(e===je){var l=Gn(r[0]);i=N(l)&&l.length||1}return{startIndex:o,dimensionsDefine:jf(n),dimensionsDetectedCount:i}}function cS(r){for(var e=0,t;e<r.length&&!(t=r[e++]););if(t)return Le(t)}function jf(r){if(r){var e=ee();return X(r,function(t,a){t=K(t)?t:{name:t};var n={name:t.name,displayName:t.displayName,type:t.type};if(n.name==null)return n;n.name+="",n.displayName==null&&(n.displayName=n.name);var i=e.get(n.name);return i?n.name+="-"+i.count++:e.set(n.name,{count:1}),n})}}function Qf(r,e,t,a){if(e===Br)for(var n=0;n<t.length&&n<a;n++)r(t[n]?t[n][0]:null,n);else for(var i=t[0]||[],n=0;n<i.length&&n<a;n++)r(i[n],n)}function tp(r){var e=r.sourceFormat;return e===st||e===mt}var dr,pr,gr,yr,Jf,ec,rp=(function(){function r(e,t){var a=wu(e)?e:Tu(e);this._source=a;var n=this._data=a.data,i=a.sourceFormat;a.seriesLayoutBy,i===ar&&(this._offset=0,this._dimSize=t,this._data=n),ec(this,n,a)}return r.prototype.getSource=function(){return this._source},r.prototype.count=function(){return 0},r.prototype.getItem=function(e,t){},r.prototype.appendData=function(e){},r.prototype.clean=function(){},r.protoInitialize=(function(){var e=r.prototype;e.pure=!1,e.persistent=!0})(),r.internalField=(function(){var e;ec=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,c=l.startIndex,h=l.dimensionsDefine,v=Jf[Cu(u,f)];if(F(o,v),u===ar)o.getItem=t,o.count=n,o.fillStorage=a;else{var d=ap(u,f);o.getItem=$(d,null,s,c,h);var p=np(u,f);o.count=$(p,null,s,c,h)}};var t=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,f=u*o,c=0;c<u;c++)s[c]=l[f+c];return s},a=function(o,s,l,u){for(var f=this._data,c=this._dimSize,h=0;h<c;h++){for(var v=u[h],d=v[0]==null?1/0:v[0],p=v[1]==null?-1/0:v[1],y=s-o,g=l[h],m=0;m<y;m++){var _=f[m*c+h];g[o+m]=_,_<d&&(d=_),_>p&&(p=_)}v[0]=d,v[1]=p}},n=function(){return this._data?this._data.length/this._dimSize:0};Jf=(e={},e[Ge+"_"+vt]={pure:!0,appendData:i},e[Ge+"_"+Br]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[st]={pure:!0,appendData:i},e[mt]={pure:!0,appendData:function(o){var s=this._data;T(o,function(l,u){for(var f=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)f.push(l[c])})}},e[je]={appendData:i},e[ar]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}})(),r})(),qn=function(r){N(r)||td("series.data or dataset.source must be an array.")};dr={},dr[Ge+"_"+vt]=qn,dr[Ge+"_"+Br]=qn,dr[st]=qn,dr[mt]=function(r,e){for(var t=0;t<e.length;t++){var a=e[t].name;a==null&&td("dimension name must not be null/undefined.")}},dr[je]=qn;var tc=function(r,e,t,a){return r[a]},vS=(pr={},pr[Ge+"_"+vt]=function(r,e,t,a){return r[a+e]},pr[Ge+"_"+Br]=function(r,e,t,a,n){a+=e;for(var i=n||[],o=r,s=0;s<o.length;s++){var l=o[s];i[s]=l?l[a]:null}return i},pr[st]=tc,pr[mt]=function(r,e,t,a,n){for(var i=n||[],o=0;o<t.length;o++){var s=t[o].name,l=s!=null?r[s]:null;i[o]=l?l[a]:null}return i},pr[je]=tc,pr);function ap(r,e){var t=vS[Cu(r,e)];return t}var rc=function(r,e,t){return r.length},hS=(gr={},gr[Ge+"_"+vt]=function(r,e,t){return Math.max(0,r.length-e)},gr[Ge+"_"+Br]=function(r,e,t){var a=r[0];return a?Math.max(0,a.length-e):0},gr[st]=rc,gr[mt]=function(r,e,t){var a=t[0].name,n=a!=null?r[a]:null;return n?n.length:0},gr[je]=rc,gr);function np(r,e){var t=hS[Cu(r,e)];return t}var Ho=function(r,e,t){return r[e]},dS=(yr={},yr[Ge]=Ho,yr[st]=function(r,e,t){return r[t]},yr[mt]=Ho,yr[je]=function(r,e,t){var a=Gn(r);return a instanceof Array?a[e]:a},yr[ar]=Ho,yr);function ip(r){var e=dS[r];return e}function Cu(r,e){return r===Ge?r+"_"+e:r}function ga(r,e,t){if(r){var a=r.getRawDataItem(e);if(a!=null){var n=r.getStore(),i=n.getSource().sourceFormat;if(t!=null){var o=r.getDimensionIndex(t),s=n.getDimensionProperty(o);return ip(i)(a,o,s)}else{var l=a;return i===je&&(l=Gn(a)),l}}}}var pS=/\{@(.+?)\}/g,gS=(function(){function r(){}return r.prototype.getDataParams=function(e,t){var a=this.getData(t),n=this.getRawValue(e,t),i=a.getRawIndex(e),o=a.getName(e),s=a.getRawDataItem(e),l=a.getItemVisual(e,"style"),u=l&&l[a.getItemVisual(e,"drawType")||"fill"],f=l&&l.stroke,c=this.mainType,h=c==="series",v=a.userOutput&&a.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:o,dataIndex:i,data:s,dataType:t,value:n,color:u,borderColor:f,dimensionNames:v?v.fullDimensions:null,encode:v?v.encode:null,$vars:["seriesName","name","value"]}},r.prototype.getFormattedLabel=function(e,t,a,n,i,o){t=t||"normal";var s=this.getData(a),l=this.getDataParams(e,a);if(o&&(l.value=o.interpolatedValue),n!=null&&N(l.value)&&(l.value=l.value[n]),!i){var u=s.getItemModel(e);i=u.get(t==="normal"?["label","formatter"]:[t,"label","formatter"])}if(Q(i))return l.status=t,l.dimensionIndex=n,i(l);if(Z(i)){var f=Hd(i,l);return f.replace(pS,function(c,h){var v=h.length,d=h;d.charAt(0)==="["&&d.charAt(v-1)==="]"&&(d=+d.slice(1,v-1));var p=ga(s,e,d);if(o&&N(o.interpolatedValue)){var y=s.getDimensionIndex(d);y>=0&&(p=o.interpolatedValue[y])}return p!=null?p+"":""})}},r.prototype.getRawValue=function(e,t){return ga(this.getData(t),e)},r.prototype.formatTooltip=function(e,t,a){},r})();function ac(r){var e,t;return K(r)?r.type&&(t=r):e=r,{text:e,frag:t}}function an(r){return new yS(r)}var yS=(function(){function r(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return r.prototype.perform=function(e){var t=this._upstream,a=e&&e.skip;if(this._dirty&&t){var n=this.context;n.data=n.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!a&&(i=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(i="reset");function f(m){return!(m>=1)&&(m=1),m}var c;(this._dirty||i==="reset")&&(this._dirty=!1,c=this._doReset(a)),this._modBy=l,this._modDataCount=u;var h=e&&e.step;if(t?this._dueEnd=t._outputDueEnd: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&&(c||v<d)){var p=this._progress;if(N(p))for(var y=0;y<p.length;y++)this._doProgress(p[y],v,d,l,u);else this._doProgress(p,v,d,l,u)}this._dueIndex=d;var g=this._settedOutputEnd!=null?this._settedOutputEnd:d;this._outputDueEnd=g}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(e,t,a,n,i){nc.reset(t,a,n,i),this._callingProgress=e,this._callingProgress({start:t,end:a,count:a-t,next:nc.next},this.context)},r.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var t,a;!e&&this._reset&&(t=this._reset(this.context),t&&t.progress&&(a=t.forceFirstProgress,t=t.progress),N(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var n=this._downstream;return n&&n.dirty(),a},r.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},r.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},r.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},r.prototype.getUpstream=function(){return this._upstream},r.prototype.getDownstream=function(){return this._downstream},r.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},r})(),nc=(function(){var r,e,t,a,n,i={reset:function(l,u,f,c){e=l,r=u,t=f,a=c,n=Math.ceil(a/t),i.next=t>1&&a>0?s:o}};return i;function o(){return e<r?e++:null}function s(){var l=e%n*t+Math.ceil(e/n),u=e>=r?null:l<a?l:e;return e++,u}})();function Ai(r,e){var t=e&&e.type;return t==="ordinal"?r:(t==="time"&&!oe(r)&&r!=null&&r!=="-"&&(r=+Er(r)),r==null||r===""?NaN:Number(r))}ee({number:function(r){return parseFloat(r)},time:function(r){return+Er(r)},trim:function(r){return Z(r)?Bn(r):r}});var mS=(function(){function r(e,t){var a=e==="desc";this._resultLT=a?1:-1,t==null&&(t=a?"min":"max"),this._incomparable=t==="min"?-1/0:1/0}return r.prototype.evaluate=function(e,t){var a=oe(e)?e:Ni(e),n=oe(t)?t:Ni(t),i=isNaN(a),o=isNaN(n);if(i&&(a=this._incomparable),o&&(n=this._incomparable),i&&o){var s=Z(e),l=Z(t);s&&(a=l?e:0),l&&(n=s?t:0)}return a<n?this._resultLT:a>n?-this._resultLT:0},r})(),_S=(function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(e){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(e){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(e,t){},r.prototype.retrieveValueFromItem=function(e,t){},r.prototype.convertValue=function(e,t){return Ai(e,t)},r})();function SS(r,e){var t=new _S,a=r.data,n=t.sourceFormat=r.sourceFormat,i=r.startIndex,o="";r.seriesLayoutBy!==vt&&Oe(o);var s=[],l={},u=r.dimensionsDefine;if(u)T(u,function(p,y){var g=p.name,m={index:y,name:g,displayName:p.displayName};if(s.push(m),g!=null){var _="";G(l,g)&&Oe(_),l[g]=m}});else for(var f=0;f<r.dimensionsDetectedCount;f++)s.push({index:f});var c=ap(n,vt);e.__isBuiltIn&&(t.getRawDataItem=function(p){return c(a,i,s,p)},t.getRawData=$(xS,null,r)),t.cloneRawData=$(bS,null,r);var h=np(n,vt);t.count=$(h,null,a,i,s);var v=ip(n);t.retrieveValue=function(p,y){var g=c(a,i,s,p);return d(g,y)};var d=t.retrieveValueFromItem=function(p,y){if(p!=null){var g=s[y];if(g)return v(p,y,g.name)}};return t.getDimensionInfo=$(wS,null,s,l),t.cloneAllDimensionInfo=$(TS,null,s),t}function xS(r){var e=r.sourceFormat;if(!Mu(e)){var t="";Oe(t)}return r.data}function bS(r){var e=r.sourceFormat,t=r.data;if(!Mu(e)){var a="";Oe(a)}if(e===Ge){for(var n=[],i=0,o=t.length;i<o;i++)n.push(t[i].slice());return n}else if(e===st){for(var n=[],i=0,o=t.length;i<o;i++)n.push(F({},t[i]));return n}}function wS(r,e,t){if(t!=null){if(oe(t)||!isNaN(t)&&!G(e,t))return r[t];if(G(e,t))return e[t]}}function TS(r){return q(r)}var op=ee();function CS(r){r=q(r);var e=r.type,t="";e||Oe(t);var a=e.split(":");a.length!==2&&Oe(t);var n=!1;a[0]==="echarts"&&(e=a[1],n=!0),r.__isBuiltIn=n,op.set(e,r)}function MS(r,e,t){var a=De(r),n=a.length,i="";n||Oe(i);for(var o=0,s=n;o<s;o++){var l=a[o];e=DS(l,e),o!==s-1&&(e.length=Math.max(e.length,1))}return e}function DS(r,e,t,a){var n="";e.length||Oe(n),K(r)||Oe(n);var i=r.type,o=op.get(i);o||Oe(n);var s=X(e,function(u){return SS(u,o)}),l=De(o.transform({upstream:s[0],upstreamList:s,config:q(r.config)}));return X(l,function(u,f){var c="";K(u)||Oe(c),u.data||Oe(c);var h=ep(u.data);Mu(h)||Oe(c);var v,d=e[0];if(d&&f===0&&!u.dimensions){var p=d.startIndex;p&&(u.data=d.data.slice(0,p).concat(u.data)),v={seriesLayoutBy:vt,sourceHeader:p,dimensions:d.metaRawOption.dimensions}}else v={seriesLayoutBy:vt,sourceHeader:0,dimensions:u.dimensions};return al(u.data,v,null)})}function Mu(r){return r===Ge||r===st}var xo="undefined",AS=typeof Uint32Array===xo?Array:Uint32Array,LS=typeof Uint16Array===xo?Array:Uint16Array,sp=typeof Int32Array===xo?Array:Int32Array,ic=typeof Float64Array===xo?Array:Float64Array,lp={float:ic,int:sp,ordinal:Array,number:Array,time:ic},Wo;function Ur(r){return r>65535?AS:LS}function Yr(){return[1/0,-1/0]}function IS(r){var e=r.constructor;return e===Array?r.slice():new e(r)}function oc(r,e,t,a,n){var i=lp[t||"float"];if(n){var o=r[e],s=o&&o.length;if(s!==a){for(var l=new i(a),u=0;u<s;u++)l[u]=o[u];r[e]=l}}else r[e]=new i(a)}var nl=(function(){function r(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=ee()}return r.prototype.initData=function(e,t,a){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var n=e.getSource(),i=this.defaultDimValueGetter=Wo[n.sourceFormat];this._dimValueGetter=a||i,this._rawExtent=[],tp(n),this._dimensions=X(t,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,e.count())},r.prototype.getProvider=function(){return this._provider},r.prototype.getSource=function(){return this._provider.getSource()},r.prototype.ensureCalculationDimension=function(e,t){var a=this._calcDimNameToIdx,n=this._dimensions,i=a.get(e);if(i!=null){if(n[i].type===t)return i}else i=n.length;return n[i]={type:t},a.set(e,i),this._chunks[i]=new lp[t||"float"](this._rawCount),this._rawExtent[i]=Yr(),i},r.prototype.collectOrdinalMeta=function(e,t){var a=this._chunks[e],n=this._dimensions[e],i=this._rawExtent,o=n.ordinalOffset||0,s=a.length;o===0&&(i[e]=Yr());for(var l=i[e],u=o;u<s;u++){var f=a[u]=t.parseAndCollect(a[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1]))}n.ordinalMeta=t,n.ordinalOffset=s,n.type="ordinal"},r.prototype.getOrdinalMeta=function(e){var t=this._dimensions[e],a=t.ordinalMeta;return a},r.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},r.prototype.appendData=function(e){var t=this._provider,a=this.count();t.appendData(e);var n=t.count();return t.persistent||(n+=a),a<n&&this._initDataFromProvider(a,n,!0),[a,n]},r.prototype.appendValues=function(e,t){for(var a=this._chunks,n=this._dimensions,i=n.length,o=this._rawExtent,s=this.count(),l=s+Math.max(e.length,t||0),u=0;u<i;u++){var f=n[u];oc(a,u,f.type,l,!0)}for(var c=[],h=s;h<l;h++)for(var v=h-s,d=0;d<i;d++){var f=n[d],p=Wo.arrayRows.call(this,e[v]||c,f.property,v,d);a[d][h]=p;var y=o[d];p<y[0]&&(y[0]=p),p>y[1]&&(y[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(e,t,a){for(var n=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=X(o,function(m){return m.property}),f=0;f<s;f++){var c=o[f];l[f]||(l[f]=Yr()),oc(i,f,c.type,t,a)}if(n.fillStorage)n.fillStorage(e,t,i,l);else for(var h=[],v=e;v<t;v++){h=n.getItem(v,h);for(var d=0;d<s;d++){var p=i[d],y=this._dimValueGetter(h,u[d],v,d);p[v]=y;var g=l[d];y<g[0]&&(g[0]=y),y>g[1]&&(g[1]=y)}}!n.persistent&&n.clean&&n.clean(),this._rawCount=this._count=t,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var a=this._chunks[e];return a?a[this.getRawIndex(t)]:NaN},r.prototype.getValues=function(e,t){var a=[],n=[];if(t==null){t=e,e=[];for(var i=0;i<this._dimensions.length;i++)n.push(i)}else n=e;for(var i=0,o=n.length;i<o;i++)a.push(this.get(n[i],t));return a},r.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var a=this._chunks[e];return a?a[t]:NaN},r.prototype.getSum=function(e){var t=this._chunks[e],a=0;if(t)for(var n=0,i=this.count();n<i;n++){var o=this.get(e,n);isNaN(o)||(a+=o)}return a},r.prototype.getMedian=function(e){var t=[];this.each([e],function(i){isNaN(i)||t.push(i)});var a=t.sort(function(i,o){return i-o}),n=this.count();return n===0?0:n%2===1?a[(n-1)/2]:(a[n/2]+a[n/2-1])/2},r.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,a=t[e];if(a!=null&&a<this._count&&a===e)return e;for(var n=0,i=this._count-1;n<=i;){var o=(n+i)/2|0;if(t[o]<e)n=o+1;else if(t[o]>e)i=o-1;else return o}return-1},r.prototype.getIndices=function(){var e,t=this._indices;if(t){var a=t.constructor,n=this._count;if(a===Array){e=new a(n);for(var i=0;i<n;i++)e[i]=t[i]}else e=new a(t.buffer,0,n)}else{var a=Ur(this._rawCount);e=new a(this.count());for(var i=0;i<e.length;i++)e[i]=i}return e},r.prototype.filter=function(e,t){if(!this._count)return this;for(var a=this.clone(),n=a.count(),i=Ur(a._rawCount),o=new i(n),s=[],l=e.length,u=0,f=e[0],c=a._chunks,h=0;h<n;h++){var v=void 0,d=a.getRawIndex(h);if(l===0)v=t(h);else if(l===1){var p=c[f][d];v=t(p,h)}else{for(var y=0;y<l;y++)s[y]=c[e[y]][d];s[y]=h,v=t.apply(null,s)}v&&(o[u++]=d)}return u<n&&(a._indices=o),a._count=u,a._extent=[],a._updateGetRawIdx(),a},r.prototype.selectRange=function(e){var t=this.clone(),a=t._count;if(!a)return this;var n=Le(e),i=n.length;if(!i)return this;var o=t.count(),s=Ur(t._rawCount),l=new s(o),u=0,f=n[0],c=e[f][0],h=e[f][1],v=t._chunks,d=!1;if(!t._indices){var p=0;if(i===1){for(var y=v[n[0]],g=0;g<a;g++){var m=y[g];(m>=c&&m<=h||isNaN(m))&&(l[u++]=p),p++}d=!0}else if(i===2){for(var y=v[n[0]],_=v[n[1]],S=e[n[1]][0],b=e[n[1]][1],g=0;g<a;g++){var m=y[g],x=_[g];(m>=c&&m<=h||isNaN(m))&&(x>=S&&x<=b||isNaN(x))&&(l[u++]=p),p++}d=!0}}if(!d)if(i===1)for(var g=0;g<o;g++){var w=t.getRawIndex(g),m=v[n[0]][w];(m>=c&&m<=h||isNaN(m))&&(l[u++]=w)}else for(var g=0;g<o;g++){for(var D=!0,w=t.getRawIndex(g),M=0;M<i;M++){var A=n[M],m=v[A][w];(m<e[A][0]||m>e[A][1])&&(D=!1)}D&&(l[u++]=t.getRawIndex(g))}return u<o&&(t._indices=l),t._count=u,t._extent=[],t._updateGetRawIdx(),t},r.prototype.map=function(e,t){var a=this.clone(e);return this._updateDims(a,e,t),a},r.prototype.modify=function(e,t){this._updateDims(this,e,t)},r.prototype._updateDims=function(e,t,a){for(var n=e._chunks,i=[],o=t.length,s=e.count(),l=[],u=e._rawExtent,f=0;f<t.length;f++)u[t[f]]=Yr();for(var c=0;c<s;c++){for(var h=e.getRawIndex(c),v=0;v<o;v++)l[v]=n[t[v]][h];l[o]=c;var d=a&&a.apply(null,l);if(d!=null){typeof d!="object"&&(i[0]=d,d=i);for(var f=0;f<d.length;f++){var p=t[f],y=d[f],g=u[p],m=n[p];m&&(m[h]=y),y<g[0]&&(g[0]=y),y>g[1]&&(g[1]=y)}}}},r.prototype.lttbDownSample=function(e,t){var a=this.clone([e],!0),n=a._chunks,i=n[e],o=this.count(),s=0,l=Math.floor(1/t),u=this.getRawIndex(0),f,c,h,v=new(Ur(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));v[s++]=u;for(var d=1;d<o-1;d+=l){for(var p=Math.min(d+l,o-1),y=Math.min(d+l*2,o),g=(y+p)/2,m=0,_=p;_<y;_++){var S=this.getRawIndex(_),b=i[S];isNaN(b)||(m+=b)}m/=y-p;var x=d,w=Math.min(d+l,o),D=d-1,M=i[u];f=-1,h=x;for(var A=-1,C=0,_=x;_<w;_++){var S=this.getRawIndex(_),b=i[S];if(isNaN(b)){C++,A<0&&(A=S);continue}c=Math.abs((D-g)*(b-M)-(D-_)*(m-M)),c>f&&(f=c,h=S)}C>0&&C<w-x&&(v[s++]=Math.min(A,h),h=Math.max(A,h)),v[s++]=h,u=h}return v[s++]=this.getRawIndex(o-1),a._count=s,a._indices=v,a.getRawIndex=this._getRawIdx,a},r.prototype.minmaxDownSample=function(e,t){for(var a=this.clone([e],!0),n=a._chunks,i=Math.floor(1/t),o=n[e],s=this.count(),l=new(Ur(this._rawCount))(Math.ceil(s/i)*2),u=0,f=0;f<s;f+=i){var c=f,h=o[this.getRawIndex(c)],v=f,d=o[this.getRawIndex(v)],p=i;f+i>s&&(p=s-f);for(var y=0;y<p;y++){var g=this.getRawIndex(f+y),m=o[g];m<h&&(h=m,c=f+y),m>d&&(d=m,v=f+y)}var _=this.getRawIndex(c),S=this.getRawIndex(v);c<v?(l[u++]=_,l[u++]=S):(l[u++]=S,l[u++]=_)}return a._count=u,a._indices=l,a._updateGetRawIdx(),a},r.prototype.downSample=function(e,t,a,n){for(var i=this.clone([e],!0),o=i._chunks,s=[],l=Math.floor(1/t),u=o[e],f=this.count(),c=i._rawExtent[e]=Yr(),h=new(Ur(this._rawCount))(Math.ceil(f/l)),v=0,d=0;d<f;d+=l){l>f-d&&(l=f-d,s.length=l);for(var p=0;p<l;p++){var y=this.getRawIndex(d+p);s[p]=u[y]}var g=a(s),m=this.getRawIndex(Math.min(d+n(s,g)||0,f-1));u[m]=g,g<c[0]&&(c[0]=g),g>c[1]&&(c[1]=g),h[v++]=m}return i._count=v,i._indices=h,i._updateGetRawIdx(),i},r.prototype.each=function(e,t){if(this._count)for(var a=e.length,n=this._chunks,i=0,o=this.count();i<o;i++){var s=this.getRawIndex(i);switch(a){case 0:t(i);break;case 1:t(n[e[0]][s],i);break;case 2:t(n[e[0]][s],n[e[1]][s],i);break;default:for(var l=0,u=[];l<a;l++)u[l]=n[e[l]][s];u[l]=i,t.apply(null,u)}}},r.prototype.getDataExtent=function(e){var t=this._chunks[e],a=Yr();if(!t)return a;var n=this.count(),i=!this._indices,o;if(i)return this._rawExtent[e].slice();if(o=this._extent[e],o)return o.slice();o=a;for(var s=o[0],l=o[1],u=0;u<n;u++){var f=this.getRawIndex(u),c=t[f];c<s&&(s=c),c>l&&(l=c)}return o=[s,l],this._extent[e]=o,o},r.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var a=[],n=this._chunks,i=0;i<n.length;i++)a.push(n[i][t]);return a},r.prototype.clone=function(e,t){var a=new r,n=this._chunks,i=e&&sn(e,function(s,l){return s[l]=!0,s},{});if(i)for(var o=0;o<n.length;o++)a._chunks[o]=i[o]?IS(n[o]):n[o];else a._chunks=n;return this._copyCommonProps(a),t||(a._indices=this._cloneIndices()),a._updateGetRawIdx(),a},r.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=q(this._extent),e._rawExtent=q(this._rawExtent)},r.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var a=this._indices.length;t=new e(a);for(var n=0;n<a;n++)t[n]=this._indices[n]}else t=new e(this._indices);return t}return null},r.prototype._getRawIdxIdentity=function(e){return e},r.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=(function(){function e(t,a,n,i){return Ai(t[i],this._dimensions[i])}Wo={arrayRows:e,objectRows:function(t,a,n,i){return Ai(t[a],this._dimensions[i])},keyedColumns:e,original:function(t,a,n,i){var o=t&&(t.value==null?t:t.value);return Ai(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(t,a,n,i){return t[i]}}})(),r})(),up=(function(){function r(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),a=!!t.length,n,i;if(jn(e)){var o=e,s=void 0,l=void 0,u=void 0;if(a){var f=t[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,i=[f._getVersionSign()]}else s=o.get("data",!0),l=Ke(s)?ar:je,i=[];var c=this._getSourceMetaRawOption()||{},h=u&&u.metaRawOption||{},v=j(c.seriesLayoutBy,h.seriesLayoutBy)||null,d=j(c.sourceHeader,h.sourceHeader),p=j(c.dimensions,h.dimensions),y=v!==h.seriesLayoutBy||!!d!=!!h.sourceHeader||p;n=y?[al(s,{seriesLayoutBy:v,sourceHeader:d,dimensions:p},l)]:[]}else{var g=e;if(a){var m=this._applyTransform(t);n=m.sourceList,i=m.upstreamSignList}else{var _=g.get("source",!0);n=[al(_,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(n,i)},r.prototype._applyTransform=function(e){var t=this._sourceHost,a=t.get("transform",!0),n=t.get("fromTransformResult",!0);if(n!=null){var i="";e.length!==1&&lc(i)}var o,s=[],l=[];return T(e,function(u){u.prepareSource();var f=u.getSource(n||0),c="";n!=null&&!f&&lc(c),s.push(f),l.push(u._getVersionSign())}),a?o=MS(a,s,{datasetIndex:t.componentIndex}):n!=null&&(o=[uS(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var a=e[t];if(a._isDirty()||this._upstreamSignList[t]!==a._getVersionSign())return!0}},r.prototype.getSource=function(e){e=e||0;var t=this._sourceList[e];if(!t){var a=this._getUpstreamSourceManagers();return a[0]&&a[0].getSource(e)}return t},r.prototype.getSharedDataStore=function(e){var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},r.prototype._innerGetDataStore=function(e,t,a){var n=0,i=this._storeList,o=i[n];o||(o=i[n]={});var s=o[a];if(!s){var l=this._getUpstreamSourceManagers()[0];jn(this._sourceHost)&&l?s=l._innerGetDataStore(e,t,a):(s=new nl,s.initData(new rp(t,e.length),e)),o[a]=s}return s},r.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(jn(e)){var t=Su(e);return t?[t.getSourceManager()]:[]}else return X(V_(e),function(a){return a.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,t,a,n;if(jn(e))t=e.get("seriesLayoutBy",!0),a=e.get("sourceHeader",!0),n=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=e;t=i.get("seriesLayoutBy",!0),a=i.get("sourceHeader",!0),n=i.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:a,dimensions:n}},r})();function sc(r){var e=r.option.transform;e&&Ri(r.option.transform)}function jn(r){return r.mainType==="series"}function lc(r){throw new Error(r)}var kS="line-height:1";function fp(r){var e=r.lineHeight;return e==null?kS:"line-height:"+Ye(e+"")+"px"}function cp(r,e){var t=r.color||B.color.tertiary,a=r.fontSize||12,n=r.fontWeight||"400",i=r.color||B.color.secondary,o=r.fontSize||14,s=r.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+Ye(a+"")+"px;color:"+Ye(t)+";font-weight:"+Ye(n+""),valueStyle:"font-size:"+Ye(o+"")+"px;color:"+Ye(i)+";font-weight:"+Ye(s+"")}:{nameStyle:{fontSize:a,fill:t,fontWeight:n},valueStyle:{fontSize:o,fill:i,fontWeight:s}}}var PS=[0,10,20,30],RS=["",`
|
|
2
2
|
`,`
|
|
3
3
|
|
|
4
4
|
`,`
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
`];function ir(r,e){return e.type=r,e}function nl(r){return r.type==="section"}function cp(r){return nl(r)?RS:ES}function vp(r){if(nl(r)){var e=0,t=r.blocks.length,a=t>1||t>0&&!r.noHeader;return T(r.blocks,function(n){var i=vp(n);i>=e&&(e=i+ +(a&&(!i||nl(n)&&!n.noHeader)))}),e}return 0}function RS(r,e,t,a){var n=e.noHeader,i=OS(vp(e)),o=[],s=e.blocks||[];ht(!s||N(s)),s=s||[];var l=r.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(G(u,l)){var f=new yS(u[l],null);s.sort(function(p,y){return f.evaluate(p.sortParam,y.sortParam)})}else l==="seriesDesc"&&s.reverse()}T(s,function(p,y){var g=e.valueFormatter,m=cp(p)(g?F(F({},r),{valueFormatter:g}):r,p,y>0?i.html:0,a);m!=null&&o.push(m)});var c=r.renderMode==="richText"?o.join(i.richText):il(a,o.join(""),n?t:i.html);if(n)return c;var h=el(e.header,"ordinal",r.useUTC),v=fp(a,r.renderMode).nameStyle,d=up(a);return r.renderMode==="richText"?hp(r,h,v)+i.richText+c:il(a,'<div style="'+v+";"+d+';">'+Ye(h)+"</div>"+c,t)}function ES(r,e,t,a){var n=r.renderMode,i=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=r.useUTC,f=e.valueFormatter||r.valueFormatter||function(S){return S=N(S)?S:[S],X(S,function(b,x){return el(b,N(v)?v[x]:v,u)})};if(!(i&&o)){var c=s?"":r.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||B.color.secondary,n),h=i?"":el(l,"ordinal",u),v=e.valueType,d=o?[]:f(e.value,e.dataIndex),p=!s||!i,y=!s&&i,g=fp(a,n),m=g.nameStyle,_=g.valueStyle;return n==="richText"?(s?"":c)+(i?"":hp(r,h,m))+(o?"":VS(r,d,p,y,_)):il(a,(s?"":c)+(i?"":NS(h,!s,m))+(o?"":BS(d,p,y,_)),t)}}function lc(r,e,t,a,n,i){if(r){var o=cp(r),s={useUTC:n,renderMode:t,orderMode:a,markupStyleCreator:e,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function OS(r){return{html:kS[r],richText:PS[r]}}function il(r,e,t){var a='<div style="clear:both"></div>',n="margin: "+t+"px 0 0",i=up(r);return'<div style="'+n+";"+i+';">'+e+a+"</div>"}function NS(r,e,t){var a=e?"margin-left:2px":"";return'<span style="'+t+";"+a+'">'+Ye(r)+"</span>"}function BS(r,e,t,a){var n=t?"10px":"20px",i=e?"float:right;margin-left:"+n:"";return r=N(r)?r:[r],'<span style="'+i+";"+a+'">'+X(r,function(o){return Ye(o)}).join(" ")+"</span>"}function hp(r,e,t){return r.markupStyleCreator.wrapRichTextStyle(e,t)}function VS(r,e,t,a,n){var i=[n],o=a?10:20;return t&&i.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(N(e)?e.join(" "):e,i)}function dp(r,e){var t=r.getData().getItemVisual(e,"style"),a=t[r.visualDrawType];return Ir(a)}function pp(r,e){var t=r.get("padding");return t??(e==="richText"?[8,10]:10)}var Uo=(function(){function r(){this.richTextStyles={},this._nextStyleNameId=Qh()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(e,t,a){var n=a==="richText"?this._generateStyleName():null,i=g_({color:t,type:e,renderMode:a,markerId:n});return Z(i)?i:(this.richTextStyles[n]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(e,t){var a={};N(t)?T(t,function(i){return F(a,i)}):F(a,t);var n=this._generateStyleName();return this.richTextStyles[n]=a,"{"+n+"|"+e+"}"},r})();function gp(r){var e=r.series,t=r.dataIndex,a=r.multipleSeries,n=e.getData(),i=n.mapDimensionsAll("defaultedTooltip"),o=i.length,s=e.getRawValue(t),l=N(s),u=dp(e,t),f,c,h,v;if(o>1||l&&!o){var d=zS(s,e,t,i,u);f=d.inlineValues,c=d.inlineValueTypes,h=d.blocks,v=d.inlineValues[0]}else if(o){var p=n.getDimensionInfo(i[0]);v=f=ga(n,t,i[0]),c=p.type}else v=f=l?s[0]:s;var y=Zl(e),g=y&&e.name||"",m=n.getName(t),_=a?g:m;return ir("section",{header:g,noHeader:a||!y,sortParam:v,blocks:[ir("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Bn(_),value:f,valueType:c,dataIndex:t})].concat(h||[])})}function zS(r,e,t,a,n){var i=e.getData(),o=sn(r,function(c,h,v){var d=i.getDimensionInfo(v);return c=c||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];a.length?T(a,function(c){f(ga(i,t,c),c)}):T(r,f);function f(c,h){var v=i.getDimensionInfo(h);!v||v.otherDims.tooltip===!1||(o?u.push(ir("nameValue",{markerType:"subItem",markerColor:n,name:v.displayName,value:c,valueType:v.type})):(s.push(c),l.push(v.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Xt=ne();function Qn(r,e){return r.getName(e)||r.getId(e)}var GS="__universalTransitionEnabled",Ne=(function(r){U(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return e.prototype.init=function(t,a,n){this.seriesIndex=this.componentIndex,this.dataTask=an({count:HS,reset:WS}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n);var i=Xt(this).sourceManager=new lp(this);i.prepareSource();var o=this.getInitialData(t,n);fc(o,this),this.dataTask.context.data=o,Xt(this).dataBeforeProcessed=o,uc(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(t,a){var n=xn(this),i=n?ba(t):{},o=this.subType;ie.hasClass(o)&&(o+="Series"),ue(t,a.getTheme().get(this.subType)),ue(t,this.getDefaultOption()),Bi(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&zt(t,i,n)},e.prototype.mergeOption=function(t,a){t=ue(this.option,t,!0),this.fillDataTextStyle(t.data);var n=xn(this);n&&zt(this.option,t,n);var i=Xt(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(t,a);fc(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Xt(this).dataBeforeProcessed=o,uc(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(t){if(t&&!Ke(t))for(var a=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&Bi(t[n],"label",a)},e.prototype.getInitialData=function(t,a){},e.prototype.appendData=function(t){var a=this.getRawData();a.appendData(t.data)},e.prototype.getData=function(t){var a=ol(this);if(a){var n=a.context.data;return t==null||!n.getLinkedData?n:n.getLinkedData(t)}else return Xt(this).data},e.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},e.prototype.setData=function(t){var a=ol(this);if(a){var n=a.context;n.outputData=t,a!==this.dataTask&&(n.data=t)}Xt(this).data=t},e.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return ee(t)},e.prototype.getSourceManager=function(){return Xt(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return Xt(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var t=this.get("colorBy");return t||"series"},e.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},e.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},e.prototype.indicesOfNearest=function(t,a,n,i){var o=this.getData(),s=this.coordinateSystem,l=s&&s.getAxis(t);if(!s||!l)return[];var u=l.dataToCoord(n);i==null&&(i=1/0);var f=[],c=1/0,h=-1,v=0;return o.each(a,function(d,p){var y=l.dataToCoord(d),g=u-y,m=Math.abs(g);m<=i&&((m<c||m===c&&g>=0&&h<0)&&(c=m,h=g,v=0),g===h&&(f[v++]=p))}),f.length=v,f},e.prototype.formatTooltip=function(t,a,n){return gp({series:this,dataIndex:t,multipleSeries:a})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(be.node&&!(t&&t.ssr))return!1;var a=this.getShallow("animation");return a&&this.getData().count()>this.getShallow("animationThreshold")&&(a=!1),!!a},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,a,n){var i=this.ecModel,o=Su.prototype.getColorFromPalette.call(this,t,a,n);return o||(o=i.getColorFromPalette(t,a,n)),o},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,a){this._innerSelect(this.getData(a),t)},e.prototype.unselect=function(t,a){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,o=this.getData(a);if(i==="series"||n==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<t.length;s++){var l=t[s],u=Qn(o,l);n[u]=!1,this._selectedDataIndicesMap[u]=-1}}},e.prototype.toggleSelect=function(t,a){for(var n=[],i=0;i<t.length;i++)n[0]=t[i],this.isSelected(t[i],a)?this.unselect(n,a):this.select(n,a)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,a=Le(t),n=[],i=0;i<a.length;i++){var o=t[a[i]];o>=0&&n.push(o)}return n},e.prototype.isSelected=function(t,a){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(a);return(n==="all"||n[Qn(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[GS])return!0;var t=this.option.universalTransition;return t?t===!0?!0:t&&t.enabled:!1},e.prototype._innerSelect=function(t,a){var n,i,o=this.option,s=o.selectedMode,l=a.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){K(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var c=a[f],h=Qn(t,c);u[h]=!0,this._selectedDataIndicesMap[h]=t.getRawIndex(c)}}else if(s==="single"||s===!0){var v=a[l-1],h=Qn(t,v);o.selectedMap=(n={},n[h]=!0,n),this._selectedDataIndicesMap=(i={},i[h]=t.getRawIndex(v),i)}}},e.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var a=[];t.hasItemOption&&t.each(function(n){var i=t.getRawDataItem(n);i&&i.selected&&a.push(n)}),a.length>0&&this._innerSelect(t,a)}},e.registerClass=function(t){return ie.registerClass(t)},e.protoInitialize=(function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"})(),e})(ie);gt(Ne,pS);gt(Ne,Su);od(Ne,ie);function uc(r){var e=r.name;Zl(r)||(r.name=FS(r)||e)}function FS(r){var e=r.getRawData(),t=e.mapDimensionsAll("seriesName"),a=[];return T(t,function(n){var i=e.getDimensionInfo(n);i.displayName&&a.push(i.displayName)}),a.join(" ")}function HS(r){return r.model.getRawData().count()}function WS(r){var e=r.model;return e.setData(e.getRawData().cloneShallow()),US}function US(r,e){e.outputData&&r.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function fc(r,e){T(rm(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(t){r.wrapMethod(t,ye(YS,e))})}function YS(r,e){var t=ol(r);return t&&t.setOutputEnd((e||this).count()),e}function ol(r){var e=(r.ecModel||{}).scheduler,t=e&&e.getPipeline(r.uid);if(t){var a=t.currentTask;if(a){var n=a.agentStubMap;n&&(a=n.get(r.uid))}return a}}var Ue=(function(){function r(){this.group=new le,this.uid=yo("viewComponent")}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,a,n){},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,a,n){},r.prototype.updateLayout=function(e,t,a,n){},r.prototype.updateVisual=function(e,t,a,n){},r.prototype.toggleBlurSeries=function(e,t,a){},r.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},r})();Kl(Ue);fo(Ue);function Mu(){var r=ne();return function(e){var t=r(e),a=e.pipelineContext,n=!!t.large,i=!!t.progressiveRender,o=t.large=!!(a&&a.large),s=t.progressiveRender=!!(a&&a.progressiveRender);return(n!==o||i!==s)&&"reset"}}var yp=ne(),XS=Mu(),Re=(function(){function r(){this.group=new le,this.uid=yo("viewChart"),this.renderTask=an({plan:ZS,reset:$S}),this.renderTask.context={view:this}}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,a,n){},r.prototype.highlight=function(e,t,a,n){var i=e.getData(n&&n.dataType);i&&vc(i,n,"emphasis")},r.prototype.downplay=function(e,t,a,n){var i=e.getData(n&&n.dataType);i&&vc(i,n,"normal")},r.prototype.remove=function(e,t){this.group.removeAll()},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,a,n){this.render(e,t,a,n)},r.prototype.updateLayout=function(e,t,a,n){this.render(e,t,a,n)},r.prototype.updateVisual=function(e,t,a,n){this.render(e,t,a,n)},r.prototype.eachRendered=function(e){Or(this.group,e)},r.markUpdateMethod=function(e,t){yp(e).updateMethod=t},r.protoInitialize=(function(){var e=r.prototype;e.type="chart"})(),r})();function cc(r,e,t){r&&Ys(r)&&(e==="emphasis"?hn:dn)(r,t)}function vc(r,e,t){var a=Lr(r,e),n=e&&e.highlightKey!=null?A0(e.highlightKey):null;a!=null?T(De(a),function(i){cc(r.getItemGraphicEl(i),t,n)}):r.eachItemGraphicEl(function(i){cc(i,t,n)})}Kl(Re);fo(Re);function ZS(r){return XS(r.model)}function $S(r){var e=r.model,t=r.ecModel,a=r.api,n=r.payload,i=e.pipelineContext.progressiveRender,o=r.view,s=n&&yp(n).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,t,a,n),KS[l]}var KS={incrementalPrepareRender:{progress:function(r,e){e.view.incrementalRender(r,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(r,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},Xi="\0__throttleOriginMethod",hc="\0__throttleRate",dc="\0__throttleType";function Du(r,e,t){var a,n=0,i=0,o=null,s,l,u,f;e=e||0;function c(){i=new Date().getTime(),o=null,r.apply(l,u||[])}var h=function(){for(var v=[],d=0;d<arguments.length;d++)v[d]=arguments[d];a=new Date().getTime(),l=this,u=v;var p=f||e,y=f||t;f=null,s=a-(y?n:i)-p,clearTimeout(o),y?o=setTimeout(c,p):s>=0?c():o=setTimeout(c,-s),n=a};return h.clear=function(){o&&(clearTimeout(o),o=null)},h.debounceNextCall=function(v){f=v},h}function mp(r,e,t,a){var n=r[e];if(n){var i=n[Xi]||n,o=n[dc],s=n[hc];if(s!==t||o!==a){if(t==null||!a)return r[e]=i;n=r[e]=Du(i,t,a==="debounce"),n[Xi]=i,n[dc]=a,n[hc]=t}return n}}function sl(r,e){var t=r[e];t&&t[Xi]&&(t.clear&&t.clear(),r[e]=t[Xi])}var pc=ne(),gc={itemStyle:vn(Ld,!0),lineStyle:vn(Ad,!0)},qS={lineStyle:"stroke",itemStyle:"fill"};function _p(r,e){var t=r.visualStyleMapper||gc[e];return t||(console.warn("Unknown style type '"+e+"'."),gc.itemStyle)}function Sp(r,e){var t=r.visualDrawType||qS[e];return t||(console.warn("Unknown style type '"+e+"'."),"fill")}var jS={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=r.getModel(a),i=_p(r,a),o=i(n),s=n.getShallow("decal");s&&(t.setVisual("decal",s),s.dirty=!0);var l=Sp(r,a),u=o[l],f=Q(u)?u:null,c=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||c){var h=r.getColorFromPalette(r.name,null,e.getSeriesCount());o[l]||(o[l]=h,t.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||Q(o.fill)?h:o.fill,o.stroke=o.stroke==="auto"||Q(o.stroke)?h:o.stroke}if(t.setVisual("style",o),t.setVisual("drawType",l),!e.isSeriesFiltered(r)&&f)return t.setVisual("colorFromPalette",!1),{dataEach:function(v,d){var p=r.getDataParams(d),y=F({},o);y[l]=f(p),v.setItemVisual(d,"style",y)}}}},La=new he,QS={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){if(!(r.ignoreStyleOnData||e.isSeriesFiltered(r))){var t=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=_p(r,a),i=t.getVisual("drawType");return{dataEach:t.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[a]){La.option=l[a];var u=n(La),f=o.ensureUniqueItemVisual(s,"style");F(f,u),La.option.decal&&(o.setItemVisual(s,"decal",La.option.decal),La.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},JS={performRawSeries:!0,overallReset:function(r){var e=ee();r.eachSeries(function(t){var a=t.getColorBy();if(!t.isColorBySeries()){var n=t.type+"-"+a,i=e.get(n);i||(i={},e.set(n,i)),pc(t).scope=i}}),r.eachSeries(function(t){if(!(t.isColorBySeries()||r.isSeriesFiltered(t))){var a=t.getRawData(),n={},i=t.getData(),o=pc(t).scope,s=t.visualStyleAccessPath||"itemStyle",l=Sp(t,s);i.each(function(u){var f=i.getRawIndex(u);n[f]=u}),a.each(function(u){var f=n[u],c=i.getItemVisual(f,"colorFromPalette");if(c){var h=i.ensureUniqueItemVisual(f,"style"),v=a.getName(u)||u+"",d=a.count();h[l]=t.getColorFromPalette(v,o,d)}})}})}},Jn=Math.PI;function ex(r,e){e=e||{},ae(e,{text:"loading",textColor:B.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:B.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var t=new le,a=new ve({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});t.add(a);var n=new de({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),i=new ve({style:{fill:"none"},textContent:n,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});t.add(i);var o;return e.showSpinner&&(o=new Ul({shape:{startAngle:-Jn/2,endAngle:-Jn/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Jn*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Jn*3/2}).delay(300).start("circularInOut"),t.add(o)),t.resize=function(){var s=n.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(r.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),f=r.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:f}),i.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),a.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},t.resize(),t}var xp=(function(){function r(e,t,a,n){this._stageTaskMap=ee(),this.ecInstance=e,this.api=t,a=this._dataProcessorHandlers=a.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=a.concat(n)}return r.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(a){var n=a.overallTask;n&&n.dirty()})},r.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var a=this._pipelineMap.get(e.__pipeline.id),n=a.context,i=!t&&a.progressiveEnabled&&(!n||n.progressiveRender)&&e.__idxInPipeline>a.blockIndex,o=i?a.step:null,s=n&&n.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},r.prototype.updateStreamModes=function(e,t){var a=this._pipelineMap.get(e.uid),n=e.getData(),i=n.count(),o=a.progressiveEnabled&&t.incrementalPrepareRender&&i>=a.threshold,s=e.get("large")&&i>=e.get("largeThreshold"),l=e.get("progressiveChunkMode")==="mod"?i:null;e.pipelineContext=a.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(e){var t=this,a=t._pipelineMap=ee();e.eachSeries(function(n){var i=n.getProgressive(),o=n.uid;a.set(o,{id:o,head:null,tail:null,threshold:n.getProgressiveThreshold(),progressiveEnabled:i&&!(n.preventIncremental&&n.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),t._pipe(n,n.dataTask)})},r.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),a=this.api;T(this._allHandlers,function(n){var i=e.get(n.uid)||e.set(n.uid,{}),o="";ht(!(n.reset&&n.overallReset),o),n.reset&&this._createSeriesStageTask(n,i,t,a),n.overallReset&&this._createOverallStageTask(n,i,t,a)},this)},r.prototype.prepareView=function(e,t,a,n){var i=e.renderTask,o=i.context;o.model=t,o.ecModel=a,o.api=n,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},r.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},r.prototype.performVisualTasks=function(e,t,a){this._performStageTasks(this._visualHandlers,e,t,a)},r.prototype._performStageTasks=function(e,t,a,n){n=n||{};var i=!1,o=this;T(e,function(l,u){if(!(n.visualType&&n.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),c=f.seriesTaskMap,h=f.overallTask;if(h){var v,d=h.agentStubMap;d.each(function(y){s(n,y)&&(y.dirty(),v=!0)}),v&&h.dirty(),o.updatePayload(h,a);var p=o.getPerformArgs(h,n.block);d.each(function(y){y.perform(p)}),h.perform(p)&&(i=!0)}else c&&c.each(function(y,g){s(n,y)&&y.dirty();var m=o.getPerformArgs(y,n.block);m.skip=!l.performRawSeries&&t.isSeriesFiltered(y.context.model),o.updatePayload(y,a),y.perform(m)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},r.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(a){t=a.dataTask.perform()||t}),this.unfinished=t||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},r.prototype.updatePayload=function(e,t){t!=="remain"&&(e.context.payload=t)},r.prototype._createSeriesStageTask=function(e,t,a,n){var i=this,o=t.seriesTaskMap,s=t.seriesTaskMap=ee(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?a.eachRawSeries(f):l?a.eachRawSeriesByType(l,f):u&&u(a,n).each(f);function f(c){var h=c.uid,v=s.set(h,o&&o.get(h)||an({plan:ix,reset:ox,count:lx}));v.context={model:c,ecModel:a,api:n,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(c,v)}},r.prototype._createOverallStageTask=function(e,t,a,n){var i=this,o=t.overallTask=t.overallTask||an({reset:tx});o.context={ecModel:a,api:n,overallReset:e.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=ee(),u=e.seriesType,f=e.getTargetSeries,c=!0,h=!1,v="";ht(!e.createOnAllSeries,v),u?a.eachRawSeriesByType(u,d):f?f(a,n).each(d):(c=!1,T(a.getSeries(),d));function d(p){var y=p.uid,g=l.set(y,s&&s.get(y)||(h=!0,an({reset:rx,onDirty:nx})));g.context={model:p,overallProgress:c},g.agent=o,g.__block=c,i._pipe(p,g)}h&&o.dirty()},r.prototype._pipe=function(e,t){var a=e.uid,n=this._pipelineMap.get(a);!n.head&&(n.head=t),n.tail&&n.tail.pipe(t),n.tail=t,t.__idxInPipeline=n.count++,t.__pipeline=n},r.wrapStageHandler=function(e,t){return Q(e)&&(e={overallReset:e,seriesType:ux(e)}),e.uid=yo("stageHandler"),t&&(e.visualType=t),e},r})();function tx(r){r.overallReset(r.ecModel,r.api,r.payload)}function rx(r){return r.overallProgress&&ax}function ax(){this.agent.dirty(),this.getDownstream().dirty()}function nx(){this.agent&&this.agent.dirty()}function ix(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function ox(r){r.useClearVisual&&r.data.clearAllVisual();var e=r.resetDefines=De(r.reset(r.model,r.ecModel,r.api,r.payload));return e.length>1?X(e,function(t,a){return bp(a)}):sx}var sx=bp(0);function bp(r){return function(e,t){var a=t.data,n=t.resetDefines[r];if(n&&n.dataEach)for(var i=e.start;i<e.end;i++)n.dataEach(a,i);else n&&n.progress&&n.progress(e,a)}}function lx(r){return r.data.count()}function ux(r){Zi=null;try{r(wn,wp)}catch{}return Zi}var wn={},wp={},Zi;Tp(wn,xu);Tp(wp,qd);wn.eachSeriesByType=wn.eachRawSeriesByType=function(r){Zi=r};wn.eachComponent=function(r){r.mainType==="series"&&r.subType&&(Zi=r.subType)};function Tp(r,e){for(var t in e.prototype)r[t]=nt}var W=B.darkColor,fx=W.background,Ia=function(){return{axisLine:{lineStyle:{color:W.axisLine}},splitLine:{lineStyle:{color:W.axisSplitLine}},splitArea:{areaStyle:{color:[W.backgroundTint,W.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:W.axisMinorSplitLine}},axisLabel:{color:W.axisLabel},axisName:{}}},yc={label:{color:W.secondary},itemStyle:{borderColor:W.borderTint},dividerLineStyle:{color:W.border}},Cp={darkMode:!0,color:W.theme,backgroundColor:fx,axisPointer:{lineStyle:{color:W.border},crossStyle:{color:W.borderShade},label:{color:W.tertiary}},legend:{textStyle:{color:W.secondary},pageTextStyle:{color:W.tertiary}},textStyle:{color:W.secondary},title:{textStyle:{color:W.primary},subtextStyle:{color:W.quaternary}},toolbox:{iconStyle:{borderColor:W.accent50}},tooltip:{backgroundColor:W.neutral20,defaultBorderColor:W.border,textStyle:{color:W.tertiary}},dataZoom:{borderColor:W.accent10,textStyle:{color:W.tertiary},brushStyle:{color:W.backgroundTint},handleStyle:{color:W.neutral00,borderColor:W.accent20},moveHandleStyle:{color:W.accent40},emphasis:{handleStyle:{borderColor:W.accent50}},dataBackground:{lineStyle:{color:W.accent30},areaStyle:{color:W.accent20}},selectedDataBackground:{lineStyle:{color:W.accent50},areaStyle:{color:W.accent30}}},visualMap:{textStyle:{color:W.secondary},handleStyle:{borderColor:W.neutral30}},timeline:{lineStyle:{color:W.accent10},label:{color:W.tertiary},controlStyle:{color:W.accent30,borderColor:W.accent30}},calendar:{itemStyle:{color:W.neutral00,borderColor:W.neutral20},dayLabel:{color:W.tertiary},monthLabel:{color:W.secondary},yearLabel:{color:W.secondary}},matrix:{x:yc,y:yc,backgroundColor:{borderColor:W.axisLine},body:{itemStyle:{borderColor:W.borderTint}}},timeAxis:Ia(),logAxis:Ia(),valueAxis:Ia(),categoryAxis:Ia(),line:{symbol:"circle"},graph:{color:W.theme},gauge:{title:{color:W.secondary},axisLine:{lineStyle:{color:[[1,W.neutral05]]}},axisLabel:{color:W.axisLabel},detail:{color:W.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:W.background}},radar:(function(){var r=Ia();return r.axisName={color:W.axisLabel},r.axisLine.lineStyle.color=W.neutral20,r})(),treemap:{breadcrumb:{itemStyle:{color:W.neutral20,textStyle:{color:W.secondary}},emphasis:{itemStyle:{color:W.neutral30}}}},sunburst:{itemStyle:{borderColor:W.background}},map:{itemStyle:{borderColor:W.border,areaColor:W.neutral10},label:{color:W.tertiary},emphasis:{label:{color:W.primary},itemStyle:{areaColor:W.highlight}},select:{label:{color:W.primary},itemStyle:{areaColor:W.highlight}}},geo:{itemStyle:{borderColor:W.border,areaColor:W.neutral10},emphasis:{label:{color:W.primary},itemStyle:{areaColor:W.highlight}},select:{label:{color:W.primary},itemStyle:{color:W.highlight}}}};Cp.categoryAxis.splitLine.show=!1;var cx=(function(){function r(){}return r.prototype.normalizeQuery=function(e){var t={},a={},n={};if(Z(e)){var i=wt(e);t.mainType=i.main||null,t.subType=i.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};T(e,function(l,u){for(var f=!1,c=0;c<o.length;c++){var h=o[c],v=u.lastIndexOf(h);if(v>0&&v===u.length-h.length){var d=u.slice(0,v);d!=="data"&&(t.mainType=d,t[h.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(a[u]=l,f=!0),f||(n[u]=l)})}return{cptQuery:t,dataQuery:a,otherQuery:n}},r.prototype.filter=function(e,t){var a=this.eventInfo;if(!a)return!0;var n=a.targetEl,i=a.packedEvent,o=a.model,s=a.view;if(!o||!s)return!0;var l=t.cptQuery,u=t.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,i,"name")&&f(u,i,"dataIndex")&&f(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,n,i));function f(c,h,v,d){return c[v]==null||h[d||v]===c[v]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r})(),ll=["symbol","symbolSize","symbolRotate","symbolOffset"],mc=ll.concat(["symbolKeepAspect"]),vx={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData();if(r.legendIcon&&t.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var a={},n={},i=!1,o=0;o<ll.length;o++){var s=ll[o],l=r.get(s);Q(l)?(i=!0,n[s]=l):a[s]=l}if(a.symbol=a.symbol||r.defaultSymbol,t.setVisual(F({legendIcon:r.legendIcon||a.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},a)),e.isSeriesFiltered(r))return;var u=Le(n);function f(c,h){for(var v=r.getRawValue(h),d=r.getDataParams(h),p=0;p<u.length;p++){var y=u[p];c.setItemVisual(h,y,n[y](v,d))}}return{dataEach:i?f:null}}},hx={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){if(!r.hasSymbolVisual||e.isSeriesFiltered(r))return;var t=r.getData();function a(n,i){for(var o=n.getItemModel(i),s=0;s<mc.length;s++){var l=mc[s],u=o.getShallow(l,!0);u!=null&&n.setItemVisual(i,l,u)}}return{dataEach:t.hasItemOption?a:null}}};function Mp(r,e,t){switch(t){case"color":var a=r.getItemVisual(e,"style");return a[r.getVisual("drawType")];case"opacity":return r.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getItemVisual(e,t)}}function Dp(r,e){switch(e){case"color":var t=r.getVisual("style");return t[r.getVisual("drawType")];case"opacity":return r.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getVisual(e)}}function dx(r,e,t,a){switch(t){case"color":var n=r.ensureUniqueItemVisual(e,"style");n[r.getVisual("drawType")]=a,r.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":r.ensureUniqueItemVisual(e,"style").opacity=a;break;case"symbol":case"symbolSize":case"liftZ":r.setItemVisual(e,t,a);break}}function px(r,e){function t(a,n){var i=[];return a.eachComponent({mainType:"series",subType:r,query:n},function(o){i.push(o.seriesIndex)}),i}T([[r+"ToggleSelect","toggleSelect"],[r+"Select","select"],[r+"UnSelect","unselect"]],function(a){e(a[0],function(n,i,o){n=F({},n),o.dispatchAction(F(n,{type:a[1],seriesIndex:t(i,n)}))})})}function Xr(r,e,t,a,n){var i=r+e;t.isSilent(i)||a.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=n.selected,f=0;f<u.length;f++)if(u[f].seriesIndex===s){var c=o.getData(),h=Lr(c,n.fromActionPayload);t.trigger(i,{type:i,seriesId:o.id,name:N(h)?c.getName(h[0]):c.getName(h),selected:Z(l)?l:F({},l)})}})}function gx(r,e,t){r.on("selectchanged",function(a){var n=t.getModel();a.isFromClick?(Xr("map","selectchanged",e,n,a),Xr("pie","selectchanged",e,n,a)):a.fromAction==="select"?(Xr("map","selected",e,n,a),Xr("pie","selected",e,n,a)):a.fromAction==="unselect"&&(Xr("map","unselected",e,n,a),Xr("pie","unselected",e,n,a))})}function oa(r,e,t){for(var a;r&&!(e(r)&&(a=r,t));)r=r.__hostTarget||r.parent;return a}var yx=Be.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,e){var t=e.cx,a=e.cy,n=e.width/2,i=e.height/2;r.moveTo(t,a-i),r.lineTo(t+n,a+i),r.lineTo(t-n,a+i),r.closePath()}}),mx=Be.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,e){var t=e.cx,a=e.cy,n=e.width/2,i=e.height/2;r.moveTo(t,a-i),r.lineTo(t+n,a),r.lineTo(t,a+i),r.lineTo(t-n,a),r.closePath()}}),_x=Be.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,e){var t=e.x,a=e.y,n=e.width/5*3,i=Math.max(n,e.height),o=n/2,s=o*o/(i-o),l=a-i+o+s,u=Math.asin(s/o),f=Math.cos(u)*o,c=Math.sin(u),h=Math.cos(u),v=o*.6,d=o*.7;r.moveTo(t-f,l+s),r.arc(t,l,o,Math.PI-u,Math.PI*2+u),r.bezierCurveTo(t+f-c*v,l+s+h*v,t,a-d,t,a),r.bezierCurveTo(t,a-d,t-f+c*v,l+s+h*v,t-f,l+s),r.closePath()}}),Sx=Be.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,e){var t=e.height,a=e.width,n=e.x,i=e.y,o=a/3*2;r.moveTo(n,i),r.lineTo(n+o,i+t),r.lineTo(n,i+t/4*3),r.lineTo(n-o,i+t),r.lineTo(n,i),r.closePath()}}),xx={line:nr,rect:ve,roundRect:ve,square:ve,circle:uo,diamond:mx,pin:_x,arrow:Sx,triangle:yx},bx={line:function(r,e,t,a,n){n.x1=r,n.y1=e+a/2,n.x2=r+t,n.y2=e+a/2},rect:function(r,e,t,a,n){n.x=r,n.y=e,n.width=t,n.height=a},roundRect:function(r,e,t,a,n){n.x=r,n.y=e,n.width=t,n.height=a,n.r=Math.min(t,a)/4},square:function(r,e,t,a,n){var i=Math.min(t,a);n.x=r,n.y=e,n.width=i,n.height=i},circle:function(r,e,t,a,n){n.cx=r+t/2,n.cy=e+a/2,n.r=Math.min(t,a)/2},diamond:function(r,e,t,a,n){n.cx=r+t/2,n.cy=e+a/2,n.width=t,n.height=a},pin:function(r,e,t,a,n){n.x=r+t/2,n.y=e+a/2,n.width=t,n.height=a},arrow:function(r,e,t,a,n){n.x=r+t/2,n.y=e+a/2,n.width=t,n.height=a},triangle:function(r,e,t,a,n){n.cx=r+t/2,n.cy=e+a/2,n.width=t,n.height=a}},ul={};T(xx,function(r,e){ul[e]=new r});var wx=Be.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,e,t){var a=Vs(r,e,t),n=this.shape;return n&&n.symbolType==="pin"&&e.position==="inside"&&(a.y=t.y+t.height*.4),a},buildPath:function(r,e,t){var a=e.symbolType;if(a!=="none"){var n=ul[a];n||(a="rect",n=ul[a]),bx[a](e.x,e.y,e.width,e.height,n.shape),n.buildPath(r,n.shape,t)}}});function Tx(r,e){if(this.type!=="image"){var t=this.style;this.__isEmptyBrush?(t.stroke=r,t.fill=e||B.color.neutral00,t.lineWidth=2):this.shape.symbolType==="line"?t.stroke=r:t.fill=r,this.markRedraw()}}function dt(r,e,t,a,n,i,o){var s=r.indexOf("empty")===0;s&&(r=r.substr(5,1).toLowerCase()+r.substr(6));var l;return r.indexOf("image://")===0?l=yd(r.slice(8),new Me(e,t,a,n),o?"center":"cover"):r.indexOf("path://")===0?l=gn(r.slice(7),{},new Me(e,t,a,n),o?"center":"cover"):l=new wx({shape:{symbolType:r,x:e,y:t,width:a,height:n}}),l.__isEmptyBrush=s,l.setColor=Tx,i&&l.setColor(i),l}function bo(r){return N(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function wo(r,e){if(r!=null)return N(r)||(r=[r,r]),[re(r[0],e[0])||0,re(j(r[1],r[0]),e[1])||0]}var Yo=new am,_c=new nm(100),Sc=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function $i(r,e){if(r==="none")return null;var t=e.getDevicePixelRatio(),a=e.getZr(),n=a.painter.type==="svg";r.dirty&&Yo.delete(r);var i=Yo.get(r);if(i)return i;var o=ae(r,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=n?1:1/t,Yo.set(r,s),r.dirty=!1,s;function l(u){for(var f=[t],c=!0,h=0;h<Sc.length;++h){var v=o[Sc[h]];if(v!=null&&!N(v)&&!Z(v)&&!oe(v)&&typeof v!="boolean"){c=!1;break}f.push(v)}var d;if(c){d=f.join(",")+(n?"-svg":"");var p=_c.get(d);p&&(n?u.svgElement=p:u.image=p)}var y=Lp(o.dashArrayX),g=Cx(o.dashArrayY),m=Ap(o.symbol),_=Mx(y),S=Ip(g),b=!n&&Ei.createCanvas(),x=n&&{tag:"g",attrs:{},key:"dcl",children:[]},w=M(),D;b&&(b.width=w.width*t,b.height=w.height*t,D=b.getContext("2d")),A(),c&&_c.put(d,b||x),u.image=b,u.svgElement=x,u.svgWidth=w.width,u.svgHeight=w.height;function M(){for(var C=1,I=0,L=_.length;I<L;++I)C=pf(C,_[I]);for(var E=1,I=0,L=m.length;I<L;++I)E=pf(E,m[I].length);C*=E;var k=S*_.length*m.length;return{width:Math.max(1,Math.min(C,o.maxTileWidth)),height:Math.max(1,Math.min(k,o.maxTileHeight))}}function A(){D&&(D.clearRect(0,0,b.width,b.height),o.backgroundColor&&(D.fillStyle=o.backgroundColor,D.fillRect(0,0,b.width,b.height)));for(var C=0,I=0;I<g.length;++I)C+=g[I];if(C<=0)return;for(var L=-S,E=0,k=0,P=0;L<w.height;){if(E%2===0){for(var V=k/2%m.length,R=0,O=0,z=0;R<w.width*2;){for(var H=0,I=0;I<y[P].length;++I)H+=y[P][I];if(H<=0)break;if(O%2===0){var Y=(1-o.symbolSize)*.5,J=R+y[P][O]*Y,pe=L+g[E]*Y,we=y[P][O]*o.symbolSize,Ht=g[E]*o.symbolSize,Gr=z/2%m[V].length;Wt(J,pe,we,Ht,m[V][Gr])}R+=y[P][O],++z,++O,O===y[P].length&&(O=0)}++P,P===y.length&&(P=0)}L+=g[E],++k,++E,E===g.length&&(E=0)}function Wt(Ta,Ca,Un,Yn,Xn){var cr=n?1:t,Ut=dt(Xn,Ta*cr,Ca*cr,Un*cr,Yn*cr,o.color,o.symbolKeepAspect);if(n){var Dt=a.painter.renderOneToVNode(Ut);Dt&&x.children.push(Dt)}else im(D,Ut)}}}}function Ap(r){if(!r||r.length===0)return[["rect"]];if(Z(r))return[[r]];for(var e=!0,t=0;t<r.length;++t)if(!Z(r[t])){e=!1;break}if(e)return Ap([r]);for(var a=[],t=0;t<r.length;++t)Z(r[t])?a.push([r[t]]):a.push(r[t]);return a}function Lp(r){if(!r||r.length===0)return[[0,0]];if(oe(r)){var e=Math.ceil(r);return[[e,e]]}for(var t=!0,a=0;a<r.length;++a)if(!oe(r[a])){t=!1;break}if(t)return Lp([r]);for(var n=[],a=0;a<r.length;++a)if(oe(r[a])){var e=Math.ceil(r[a]);n.push([e,e])}else{var e=X(r[a],function(s){return Math.ceil(s)});e.length%2===1?n.push(e.concat(e)):n.push(e)}return n}function Cx(r){if(!r||typeof r=="object"&&r.length===0)return[0,0];if(oe(r)){var e=Math.ceil(r);return[e,e]}var t=X(r,function(a){return Math.ceil(a)});return r.length%2?t.concat(t):t}function Mx(r){return X(r,function(e){return Ip(e)})}function Ip(r){for(var e=0,t=0;t<r.length;++t)e+=r[t];return r.length%2===1?e*2:e}function Dx(r,e){r.eachRawSeries(function(t){if(!r.isSeriesFiltered(t)){var a=t.getData();a.hasItemVisual()&&a.each(function(o){var s=a.getItemVisual(o,"decal");if(s){var l=a.ensureUniqueItemVisual(o,"style");l.decal=$i(s,e)}});var n=a.getVisual("decal");if(n){var i=a.getVisual("style");i.decal=$i(n,e)}}})}var ut=new Vn,kp={};function Ax(r,e){kp[r]=e}function Lx(r){return kp[r]}var Pp={};function Ix(r,e){Pp[r]=e}function kx(r){return Pp[r]}var Px=1,Rx=800,Ex=900,Ox=1e3,Nx=2e3,Bx=5e3,Rp=1e3,Vx=1100,Au=2e3,Ep=3e3,zx=4e3,To=4500,Gx=4600,Fx=5e3,Hx=6e3,Op=7e3,Wx={PROCESSOR:{FILTER:Ox,SERIES_FILTER:Rx,STATISTIC:Bx},VISUAL:{LAYOUT:Rp,PROGRESSIVE_LAYOUT:Vx,GLOBAL:Au,CHART:Ep,POST_CHART_LAYOUT:Gx,COMPONENT:zx,BRUSH:Fx,CHART_ITEM:To,ARIA:Hx,DECAL:Op}},Te="__flagInMainProcess",ei="__mainProcessVersion",Ie="__pendingUpdate",Xo="__needsUpdateStatus",xc=/^[a-zA-Z0-9_]+$/,Zo="__connectUpdateStatus",bc=0,Ux=1,Yx=2;function Np(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(this.isDisposed()){this.id;return}return Vp(this,r,e)}}function Bp(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Vp(this,r,e)}}function Vp(r,e,t){return t[0]=t[0]&&t[0].toLowerCase(),Vn.prototype[e].apply(r,t)}var zp=(function(r){U(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e})(Vn),Gp=zp.prototype;Gp.on=Bp("on");Gp.off=Bp("off");var mr,$o,ti,Lt,ri,Ko,qo,Zr,$r,wc,Tc,jo,Cc,ai,Mc,Fp,Qe,Dc,Kr,Hp=(function(r){U(e,r);function e(t,a,n){var i=r.call(this,new cx)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],n=n||{},i._dom=t;var o="canvas",s="auto",l=!1;i[ei]=1,n.ssr;var u=i._zr=nf(t,{renderer:n.renderer||o,devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:j(n.useDirtyRect,l),useCoarsePointer:j(n.useCoarsePointer,s),pointerSize:n.pointerSize});i._ssr=n.ssr,i._throttledZrFlush=Du($(u.flush,u),17),i._updateTheme(a),i._locale=a_(n.locale||Id),i._coordSysMgr=new Hn;var f=i._api=Mc(i);function c(h,v){return h.__prio-v.__prio}return Io(qi,c),Io(vl,c),i._scheduler=new xp(i,f,vl,qi),i._messageCenter=new zp,i._initEvents(),i.resize=$(i.resize,i),u.animation.on("frame",i._onframe,i),wc(u,i),Tc(u,i),Ri(i),i}return e.prototype._onframe=function(){if(!this._disposed){Dc(this);var t=this._scheduler;if(this[Ie]){var a=this[Ie].silent;this[Te]=!0,Kr(this);try{mr(this),Lt.update.call(this,null,this[Ie].updateParams)}catch(l){throw this[Te]=!1,this[Ie]=null,l}this._zr.flush(),this[Te]=!1,this[Ie]=null,Zr.call(this,a),$r.call(this,a)}else if(t.unfinished){var n=Px,i=this._model,o=this._api;t.unfinished=!1;do{var s=+new Date;t.performSeriesTasks(i),t.performDataProcessorTasks(i),Ko(this,i),t.performVisualTasks(i),ai(this,this._model,o,"remain",{}),n-=+new Date-s}while(n>0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,a,n){if(!this[Te]){if(this._disposed){this.id;return}var i,o,s;if(K(a)&&(n=a.lazyUpdate,i=a.silent,o=a.replaceMerge,s=a.transition,a=a.notMerge),this[Te]=!0,Kr(this),!this._model||a){var l=new $_(this._api),u=this._theme,f=this._model=new xu;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(t,{replaceMerge:o},hl);var c={seriesTransition:s,optionChanged:!0};if(n)this[Ie]={silent:i,updateParams:c},this[Te]=!1,this.getZr().wakeUp();else{try{mr(this),Lt.update.call(this,null,c)}catch(h){throw this[Ie]=null,this[Te]=!1,h}this._ssr||this._zr.flush(),this[Ie]=null,this[Te]=!1,Zr.call(this,i),$r.call(this,i)}}},e.prototype.setTheme=function(t,a){if(!this[Te]){if(this._disposed){this.id;return}var n=this._model;if(n){var i=a&&a.silent,o=null;this[Ie]&&(i==null&&(i=this[Ie].silent),o=this[Ie].updateParams,this[Ie]=null),this[Te]=!0,Kr(this);try{this._updateTheme(t),n.setTheme(this._theme),mr(this),Lt.update.call(this,{type:"setTheme"},o)}catch(s){throw this[Te]=!1,s}this[Te]=!1,Zr.call(this,i),$r.call(this,i)}}},e.prototype._updateTheme=function(t){Z(t)&&(t=Wp[t]),t&&(t=q(t),t&&Qd(t,!0),this._theme=t)},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||be.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var a=this._zr.painter;return a.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var a=this._zr.painter;return a.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){var t=this._zr,a=t.storage.getDisplayList();return T(a,function(n){n.stopAnimation(null,!0)}),t.painter.toDataURL()},e.prototype.getDataURL=function(t){if(this._disposed){this.id;return}t=t||{};var a=t.excludeComponents,n=this._model,i=[],o=this;T(a,function(l){n.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(i.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return T(i,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(t){if(this._disposed){this.id;return}var a=t.type==="svg",n=this.group,i=Math.min,o=Math.max,s=1/0;if(Ac[n]){var l=s,u=s,f=-s,c=-s,h=[],v=t&&t.pixelRatio||this.getDevicePixelRatio();T(nn,function(_,S){if(_.group===n){var b=a?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(q(t)),x=_.getDom().getBoundingClientRect();l=i(x.left,l),u=i(x.top,u),f=o(x.right,f),c=o(x.bottom,c),h.push({dom:b,left:x.left,top:x.top})}}),l*=v,u*=v,f*=v,c*=v;var d=f-l,p=c-u,y=Ei.createCanvas(),g=nf(y,{renderer:a?"svg":"canvas"});if(g.resize({width:d,height:p}),a){var m="";return T(h,function(_){var S=_.left-l,b=_.top-u;m+='<g transform="translate('+S+","+b+')">'+_.dom+"</g>"}),g.painter.getSvgRoot().innerHTML=m,t.connectedBackgroundColor&&g.painter.setBackgroundColor(t.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}else return t.connectedBackgroundColor&&g.add(new ve({shape:{x:0,y:0,width:d,height:p},style:{fill:t.connectedBackgroundColor}})),T(h,function(_){var S=new Gt({style:{x:_.left*v-l,y:_.top*v-u,image:_.dom}});g.add(S)}),g.refreshImmediately(),y.toDataURL("image/"+(t&&t.type||"png"))}else return this.getDataURL(t)},e.prototype.convertToPixel=function(t,a,n){return ri(this,"convertToPixel",t,a,n)},e.prototype.convertToLayout=function(t,a,n){return ri(this,"convertToLayout",t,a,n)},e.prototype.convertFromPixel=function(t,a,n){return ri(this,"convertFromPixel",t,a,n)},e.prototype.containPixel=function(t,a){if(this._disposed){this.id;return}var n=this._model,i,o=Ro(n,t);return T(o,function(s,l){l.indexOf("Models")>=0&&T(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)i=i||!!f.containPoint(a);else if(l==="seriesModels"){var c=this._chartsMap[u.__viewId];c&&c.containPoint&&(i=i||c.containPoint(a,u))}},this)},this),!!i},e.prototype.getVisual=function(t,a){var n=this._model,i=Ro(n,t,{defaultMainType:"series"}),o=i.seriesModel,s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?Mp(s,l,a):Dp(s,a)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;T(Xx,function(n){var i=function(o){var s=t.getModel(),l=o.target,u,f=n==="globalout";if(f?u={}:l&&oa(l,function(p){var y=te(p);if(y&&y.dataIndex!=null){var g=y.dataModel||s.getSeriesByIndex(y.seriesIndex);return u=g&&g.getDataParams(y.dataIndex,y.dataType,l)||{},!0}else if(y.eventData)return u=F({},y.eventData),!0},!0),u){var c=u.componentType,h=u.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",h=u.seriesIndex);var v=c&&h!=null&&s.getComponent(c,h),d=v&&t[v.mainType==="series"?"_chartsMap":"_componentsMap"][v.__viewId];u.event=o,u.type=n,t._$eventProcessor.eventInfo={targetEl:l,packedEvent:u,model:v,view:d},t.trigger(n,u)}};i.zrEventfulCallAtLast=!0,t._zr.on(n,i,t)});var a=this._messageCenter;T(cl,function(n,i){a.on(i,function(o){t.trigger(i,o)})}),gx(a,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var t=this.getDom();t&&ad(this.getDom(),Iu,"");var a=this,n=a._api,i=a._model;T(a._componentsViews,function(o){o.dispose(i,n)}),T(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 nn[a.id]},e.prototype.resize=function(t){if(!this[Te]){if(this._disposed){this.id;return}this._zr.resize(t);var a=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!a){var n=a.resetOption("media"),i=t&&t.silent;this[Ie]&&(i==null&&(i=this[Ie].silent),n=!0,this[Ie]=null),this[Te]=!0,Kr(this);try{n&&mr(this),Lt.update.call(this,{type:"resize",animation:F({duration:0},t&&t.animation)})}catch(o){throw this[Te]=!1,o}this[Te]=!1,Zr.call(this,i),$r.call(this,i)}}},e.prototype.showLoading=function(t,a){if(this._disposed){this.id;return}if(K(t)&&(a=t,t=""),t=t||"default",this.hideLoading(),!!dl[t]){var n=dl[t](this._api,a),i=this._zr;this._loadingFX=n,i.add(n)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(t){var a=F({},t);return a.type=fl[t.type],a},e.prototype.dispatchAction=function(t,a){if(this._disposed){this.id;return}if(K(a)||(a={silent:!!a}),!!Ki[t.type]&&this._model){if(this[Te]){this._pendingActions.push(t);return}var n=a.silent;qo.call(this,t,n);var i=a.flush;i?this._zr.flush():i!==!1&&be.browser.weChat&&this._throttledZrFlush(),Zr.call(this,n),$r.call(this,n)}},e.prototype.updateLabelLayout=function(){ut.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed){this.id;return}var a=t.seriesIndex,n=this.getModel(),i=n.getSeriesByIndex(a);i.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=(function(){mr=function(c){var h=c._scheduler;h.restorePipelines(c._model),h.prepareStageTasks(),$o(c,!0),$o(c,!1),h.plan()},$o=function(c,h){for(var v=c._model,d=c._scheduler,p=h?c._componentsViews:c._chartsViews,y=h?c._componentsMap:c._chartsMap,g=c._zr,m=c._api,_=0;_<p.length;_++)p[_].__alive=!1;h?v.eachComponent(function(x,w){x!=="series"&&S(w)}):v.eachSeries(S);function S(x){var w=x.__requireNewView;x.__requireNewView=!1;var D="_ec_"+x.id+"_"+x.type,M=!w&&y[D];if(!M){var A=wt(x.type),C=h?Ue.getClass(A.main,A.sub):Re.getClass(A.sub);M=new C,M.init(v,m),y[D]=M,p.push(M),g.add(M.group)}x.__viewId=M.__id=D,M.__alive=!0,M.__model=x,M.group.__ecComponentInfo={mainType:x.mainType,index:x.componentIndex},!h&&d.prepareView(M,x,v,m)}for(var _=0;_<p.length;){var b=p[_];b.__alive?_++:(!h&&b.renderTask.dispose(),g.remove(b.group),b.dispose(v,m),p.splice(_,1),y[b.__id]===b&&delete y[b.__id],b.__id=b.group.__ecComponentInfo=null)}},ti=function(c,h,v,d,p){var y=c._model;if(y.setUpdatePayload(v),!d){T([].concat(c._componentsViews).concat(c._chartsViews),b);return}var g={};g[d+"Id"]=v[d+"Id"],g[d+"Index"]=v[d+"Index"],g[d+"Name"]=v[d+"Name"];var m={mainType:d,query:g};p&&(m.subType=p);var _=v.excludeSeriesId,S;_!=null&&(S=ee(),T(De(_),function(x){var w=rt(x,null);w!=null&&S.set(w,!0)})),y&&y.eachComponent(m,function(x){var w=S&&S.get(x.id)!=null;if(!w)if(Mf(v))if(x instanceof Ne)v.type===Cr&&!v.notBlur&&!x.get(["emphasis","disabled"])&&S0(x,v,c._api);else{var D=eu(x.mainType,x.componentIndex,v.name,c._api),M=D.focusSelf,A=D.dispatchers;v.type===Cr&&M&&!v.notBlur&&Ws(x.mainType,x.componentIndex,c._api),A&&T(A,function(C){v.type===Cr?hn(C):dn(C)})}else Xs(v)&&x instanceof Ne&&(w0(x,v,c._api),Tf(x),Qe(c))},c),y&&y.eachComponent(m,function(x){var w=S&&S.get(x.id)!=null;w||b(c[d==="series"?"_chartsMap":"_componentsMap"][x.__viewId])},c);function b(x){x&&x.__alive&&x[h]&&x[h](x.__model,y,c._api,v)}},Lt={prepareAndUpdate:function(c){mr(this),Lt.update.call(this,c,c&&{optionChanged:c.newOption!=null})},update:function(c,h){var v=this._model,d=this._api,p=this._zr,y=this._coordSysMgr,g=this._scheduler;if(v){v.setUpdatePayload(c),g.restoreData(v,c),g.performSeriesTasks(v),y.create(v,d),g.performDataProcessorTasks(v,c),Ko(this,v),y.update(v,d),a(v),g.performVisualTasks(v,c);var m=v.get("backgroundColor")||"transparent";p.setBackgroundColor(m);var _=v.get("darkMode");_!=null&&_!=="auto"&&p.setDarkMode(_),jo(this,v,d,c,h),ut.trigger("afterupdate",v,d)}},updateTransform:function(c){var h=this,v=this._model,d=this._api;if(v){v.setUpdatePayload(c);var p=[];v.eachComponent(function(g,m){if(g!=="series"){var _=h.getViewOfComponentModel(m);if(_&&_.__alive)if(_.updateTransform){var S=_.updateTransform(m,v,d,c);S&&S.update&&p.push(_)}else p.push(_)}});var y=ee();v.eachSeries(function(g){var m=h._chartsMap[g.__viewId];if(m.updateTransform){var _=m.updateTransform(g,v,d,c);_&&_.update&&y.set(g.uid,1)}else y.set(g.uid,1)}),a(v),this._scheduler.performVisualTasks(v,c,{setDirty:!0,dirtyMap:y}),ai(this,v,d,c,{},y),ut.trigger("afterupdate",v,d)}},updateView:function(c){var h=this._model;h&&(h.setUpdatePayload(c),Re.markUpdateMethod(c,"updateView"),a(h),this._scheduler.performVisualTasks(h,c,{setDirty:!0}),jo(this,h,this._api,c,{}),ut.trigger("afterupdate",h,this._api))},updateVisual:function(c){var h=this,v=this._model;v&&(v.setUpdatePayload(c),v.eachSeries(function(d){d.getData().clearAllVisual()}),Re.markUpdateMethod(c,"updateVisual"),a(v),this._scheduler.performVisualTasks(v,c,{visualType:"visual",setDirty:!0}),v.eachComponent(function(d,p){if(d!=="series"){var y=h.getViewOfComponentModel(p);y&&y.__alive&&y.updateVisual(p,v,h._api,c)}}),v.eachSeries(function(d){var p=h._chartsMap[d.__viewId];p.updateVisual(d,v,h._api,c)}),ut.trigger("afterupdate",v,this._api))},updateLayout:function(c){Lt.update.call(this,c)}};function t(c,h,v,d,p){if(c._disposed){c.id;return}for(var y=c._model,g=c._coordSysMgr.getCoordinateSystems(),m,_=Ro(y,v),S=0;S<g.length;S++){var b=g[S];if(b[h]&&(m=b[h](y,_,d,p))!=null)return m}}ri=t,Ko=function(c,h){var v=c._chartsMap,d=c._scheduler;h.eachSeries(function(p){d.updateStreamModes(p,v[p.__viewId])})},qo=function(c,h){var v=this,d=this.getModel(),p=c.type,y=c.escapeConnect,g=Ki[p],m=(g.update||"update").split(":"),_=m.pop(),S=m[0]!=null&&wt(m[0]);this[Te]=!0,Kr(this);var b=[c],x=!1;c.batch&&(x=!0,b=X(c.batch,function(P){return P=ae(F({},P),c),P.batch=null,P}));var w=[],D,M=[],A=g.nonRefinedEventType,C=Xs(c),I=Mf(c);if(I&&gd(this._api),T(b,function(P){var V=g.action(P,d,v._api);if(g.refineEvent?M.push(V):D=V,D=D||F({},P),D.type=A,w.push(D),I){var R=$l(c),O=R.queryOptionMap,z=R.mainTypeSpecified,H=z?O.keys()[0]:"series";ti(v,_,P,H),Qe(v)}else C?(ti(v,_,P,"series"),Qe(v)):S&&ti(v,_,P,S.main,S.sub)}),_!=="none"&&!I&&!C&&!S)try{this[Ie]?(mr(this),Lt.update.call(this,c),this[Ie]=null):Lt[_].call(this,c)}catch(P){throw this[Te]=!1,P}if(x?D={type:A,escapeConnect:y,batch:w}:D=w[0],this[Te]=!1,!h){var L=void 0;if(g.refineEvent){var E=g.refineEvent(M,c,d,this._api).eventContent;ht(K(E)),L=ae({type:g.refinedEventType},E),L.fromAction=c.type,L.fromActionPayload=c,L.escapeConnect=!0}var k=this._messageCenter;k.trigger(D.type,D),L&&k.trigger(L.type,L)}},Zr=function(c){for(var h=this._pendingActions;h.length;){var v=h.shift();qo.call(this,v,c)}},$r=function(c){!c&&this.trigger("updated")},wc=function(c,h){c.on("rendered",function(v){h.trigger("rendered",v),c.animation.isFinished()&&!h[Ie]&&!h._scheduler.unfinished&&!h._pendingActions.length&&h.trigger("finished")})},Tc=function(c,h){c.on("mouseover",function(v){var d=v.target,p=oa(d,Ys);p&&(x0(p,v,h._api),Qe(h))}).on("mouseout",function(v){var d=v.target,p=oa(d,Ys);p&&(b0(p,v,h._api),Qe(h))}).on("click",function(v){var d=v.target,p=oa(d,function(m){return te(m).dataIndex!=null},!0);if(p){var y=p.selected?"unselect":"select",g=te(p);h._api.dispatchAction({type:y,dataType:g.dataType,dataIndexInside:g.dataIndex,seriesIndex:g.seriesIndex,isFromClick:!0})}})};function a(c){c.clearColorPalette(),c.eachSeries(function(h){h.clearColorPalette()})}function n(c){var h=[],v=[],d=!1;if(c.eachComponent(function(m,_){var S=_.get("zlevel")||0,b=_.get("z")||0,x=_.getZLevelKey();d=d||!!x,(m==="series"?v:h).push({zlevel:S,z:b,idx:_.componentIndex,type:m,key:x})}),d){var p=h.concat(v),y,g;Io(p,function(m,_){return m.zlevel===_.zlevel?m.z-_.z:m.zlevel-_.zlevel}),T(p,function(m){var _=c.getComponent(m.type,m.idx),S=m.zlevel,b=m.key;y!=null&&(S=Math.max(y,S)),b?(S===y&&b!==g&&S++,g=b):g&&(S===y&&S++,g=""),y=S,_.setZLevel(S)})}}jo=function(c,h,v,d,p){n(h),Cc(c,h,v,d,p),T(c._chartsViews,function(y){y.__alive=!1}),ai(c,h,v,d,p),T(c._chartsViews,function(y){y.__alive||y.remove(h,v)})},Cc=function(c,h,v,d,p,y){T(y||c._componentsViews,function(g){var m=g.__model;u(m,g),g.render(m,h,v,d),l(m,g),f(m,g)})},ai=function(c,h,v,d,p,y){var g=c._scheduler;p=F(p||{},{updatedSeries:h.getSeries()}),ut.trigger("series:beforeupdate",h,v,p);var m=!1;h.eachSeries(function(_){var S=c._chartsMap[_.__viewId];S.__alive=!0;var b=S.renderTask;g.updatePayload(b,d),u(_,S),y&&y.get(_.uid)&&b.dirty(),b.perform(g.getPerformArgs(b))&&(m=!0),S.group.silent=!!_.get("silent"),s(_,S),Tf(_)}),g.unfinished=m||g.unfinished,ut.trigger("series:layoutlabels",h,v,p),ut.trigger("series:transition",h,v,p),h.eachSeries(function(_){var S=c._chartsMap[_.__viewId];l(_,S),f(_,S)}),o(c,h),ut.trigger("series:afterupdate",h,v,p)},Qe=function(c){c[Xo]=!0,c.getZr().wakeUp()},Kr=function(c){c[ei]=(c[ei]+1)%1e3},Dc=function(c){c[Xo]&&(c.getZr().storage.traverse(function(h){la(h)||i(h)}),c[Xo]=!1)};function i(c){for(var h=[],v=c.currentStates,d=0;d<v.length;d++){var p=v[d];p==="emphasis"||p==="blur"||p==="select"||h.push(p)}c.selected&&c.states.select&&h.push("select"),c.hoverState===vo&&c.states.emphasis?h.push("emphasis"):c.hoverState===co&&c.states.blur&&h.push("blur"),c.useStates(h)}function o(c,h){var v=c._zr,d=v.storage,p=0;d.traverse(function(y){y.isGroup||p++}),p>h.get("hoverLayerThreshold")&&!be.node&&!be.worker&&h.eachSeries(function(y){if(!y.preventUsingHoverLayer){var g=c._chartsMap[y.__viewId];g.__alive&&g.eachRendered(function(m){m.states.emphasis&&(m.states.emphasis.hoverLayer=!0)})}})}function s(c,h){var v=c.get("blendMode")||null;h.eachRendered(function(d){d.isGroup||(d.style.blend=v)})}function l(c,h){if(!c.preventAutoZ){var v=Sn(c);h.eachRendered(function(d){return wd(d,v.z,v.zlevel),!0})}}function u(c,h){h.eachRendered(function(v){if(!la(v)){var d=v.getTextContent(),p=v.getTextGuideLine();v.stateTransition&&(v.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),v.hasState()?(v.prevStates=v.currentStates,v.clearStates()):v.prevStates&&(v.prevStates=null)}})}function f(c,h){var v=c.getModel("stateAnimation"),d=c.isAnimationEnabled(),p=v.get("duration"),y=p>0?{duration:p,delay:v.get("delay"),easing:v.get("easing")}:null;h.eachRendered(function(g){if(g.states&&g.states.emphasis){if(la(g))return;if(g instanceof Be&&L0(g),g.__dirty){var m=g.prevStates;m&&g.useStates(m)}if(d){g.stateTransition=y;var _=g.getTextContent(),S=g.getTextGuideLine();_&&(_.stateTransition=y),S&&(S.stateTransition=y)}g.__dirty&&i(g)}})}Mc=function(c){return new((function(h){U(v,h);function v(){return h!==null&&h.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(d){for(;d;){var p=d.__ecComponentInfo;if(p!=null)return c._model.getComponent(p.mainType,p.index);d=d.parent}},v.prototype.enterEmphasis=function(d,p){hn(d,p),Qe(c)},v.prototype.leaveEmphasis=function(d,p){dn(d,p),Qe(c)},v.prototype.enterBlur=function(d){_0(d),Qe(c)},v.prototype.leaveBlur=function(d){vd(d),Qe(c)},v.prototype.enterSelect=function(d){hd(d),Qe(c)},v.prototype.leaveSelect=function(d){dd(d),Qe(c)},v.prototype.getModel=function(){return c.getModel()},v.prototype.getViewOfComponentModel=function(d){return c.getViewOfComponentModel(d)},v.prototype.getViewOfSeriesModel=function(d){return c.getViewOfSeriesModel(d)},v.prototype.getMainProcessVersion=function(){return c[ei]},v})(qd))(c)},Fp=function(c){function h(v,d){for(var p=0;p<v.length;p++){var y=v[p];y[Zo]=d}}T(fl,function(v,d){c._messageCenter.on(d,function(p){if(Ac[c.group]&&c[Zo]!==bc){if(p&&p.escapeConnect)return;var y=c.makeActionFromEvent(p),g=[];T(nn,function(m){m!==c&&m.group===c.group&&g.push(m)}),h(g,bc),T(g,function(m){m[Zo]!==Ux&&m.dispatchAction(y)}),h(g,Yx)}})})}})(),e})(Vn),Lu=Hp.prototype;Lu.on=Np("on");Lu.off=Np("off");Lu.one=function(r,e,t){var a=this;function n(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];e&&e.apply&&e.apply(this,i),a.off(r,n)}this.on.call(this,r,n,t)};var Xx=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var Ki={},fl={},cl={},vl=[],hl=[],qi=[],Wp={},dl={},nn={},Ac={},Zx=+new Date-0,Iu="_echarts_instance_";function FD(r,e,t){var a=!(t&&t.ssr);if(a){var n=$x(r);if(n)return n}var i=new Hp(r,e,t);return i.id="ec_"+Zx++,nn[i.id]=i,a&&ad(r,Iu,i.id),Fp(i),ut.trigger("afterinit",i),i}function $x(r){return nn[jm(r,Iu)]}function Up(r,e){Wp[r]=e}function Yp(r){fe(hl,r)<0&&hl.push(r)}function Xp(r,e){Pu(vl,r,e,Nx)}function Kx(r){ku("afterinit",r)}function qx(r){ku("afterupdate",r)}function ku(r,e){ut.on(r,e)}function Vr(r,e,t){var a,n,i,o,s;Q(e)&&(t=e,e=""),K(r)?(a=r.type,n=r.event,o=r.update,s=r.publishNonRefinedEvent,t||(t=r.action),i=r.refineEvent):(a=r,n=e);function l(f){return f.toLowerCase()}n=l(n||a);var u=i?l(a):n;Ki[a]||(ht(xc.test(a)&&xc.test(n)),i&&ht(n!==a),Ki[a]={actionType:a,refinedEventType:n,nonRefinedEventType:u,update:o,action:t,refineEvent:i},cl[n]=1,i&&s&&(cl[u]=1),fl[u]=a)}function jx(r,e){Hn.register(r,e)}function Qx(r,e){Pu(qi,r,e,Rp,"layout")}function zr(r,e){Pu(qi,r,e,Ep,"visual")}var Lc=[];function Pu(r,e,t,a,n){if((Q(e)||K(e))&&(t=e,e=a),!(fe(Lc,t)>=0)){Lc.push(t);var i=xp.wrapStageHandler(t,n);i.__prio=e,i.__raw=t,r.push(i)}}function Zp(r,e){dl[r]=e}function Jx(r,e,t){var a=Lx("registerMap");a&&a(r,e,t)}var eb=TS;zr(Au,jS);zr(To,QS);zr(To,JS);zr(Au,vx);zr(To,hx);zr(Op,Dx);Yp(Qd);Xp(Ex,oS);Zp("default",ex);Vr({type:Cr,event:Cr,update:Cr},nt);Vr({type:bi,event:bi,update:bi},nt);Vr({type:zi,event:Ql,update:zi,action:nt,refineEvent:Ru,publishNonRefinedEvent:!0});Vr({type:Fs,event:Ql,update:Fs,action:nt,refineEvent:Ru,publishNonRefinedEvent:!0});Vr({type:Gi,event:Ql,update:Gi,action:nt,refineEvent:Ru,publishNonRefinedEvent:!0});function Ru(r,e,t,a){return{eventContent:{selected:T0(t),isFromClick:e.isFromClick||!1}}}Up("default",{});Up("dark",Cp);function ka(r){return r==null?0:r.length||1}function Ic(r){return r}var $p=(function(){function r(e,t,a,n,i,o){this._old=e,this._new=t,this._oldKeyGetter=a||Ic,this._newKeyGetter=n||Ic,this.context=i,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(e){return this._add=e,this},r.prototype.update=function(e){return this._update=e,this},r.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},r.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},r.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},r.prototype.remove=function(e){return this._remove=e,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var e=this._old,t=this._new,a={},n=new Array(e.length),i=new Array(t.length);this._initIndexMap(e,null,n,"_oldKeyGetter"),this._initIndexMap(t,a,i,"_newKeyGetter");for(var o=0;o<e.length;o++){var s=n[o],l=a[s],u=ka(l);if(u>1){var f=l.shift();l.length===1&&(a[s]=l[0]),this._update&&this._update(f,o)}else u===1?(a[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,a)},r.prototype._executeMultiple=function(){var e=this._old,t=this._new,a={},n={},i=[],o=[];this._initIndexMap(e,a,i,"_oldKeyGetter"),this._initIndexMap(t,n,o,"_newKeyGetter");for(var s=0;s<i.length;s++){var l=i[s],u=a[l],f=n[l],c=ka(u),h=ka(f);if(c>1&&h===1)this._updateManyToOne&&this._updateManyToOne(f,u),n[l]=null;else if(c===1&&h>1)this._updateOneToMany&&this._updateOneToMany(f,u),n[l]=null;else if(c===1&&h===1)this._update&&this._update(f,u),n[l]=null;else if(c>1&&h>1)this._updateManyToMany&&this._updateManyToMany(f,u),n[l]=null;else if(c>1)for(var v=0;v<c;v++)this._remove&&this._remove(u[v]);else this._remove&&this._remove(u)}this._performRestAdd(o,n)},r.prototype._performRestAdd=function(e,t){for(var a=0;a<e.length;a++){var n=e[a],i=t[n],o=ka(i);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(i[s]);else o===1&&this._add&&this._add(i);t[n]=null}},r.prototype._initIndexMap=function(e,t,a,n){for(var i=this._diffModeMultiple,o=0;o<e.length;o++){var s="_ec_"+this[n](e[o],o);if(i||(a[o]=s),!!t){var l=t[s],u=ka(l);u===0?(t[s]=o,i&&a.push(s)):u===1?t[s]=[l,o]:l.push(o)}}},r})(),tb=(function(){function r(e,t){this._encode=e,this._schema=t}return r.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},r.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},r})();function rb(r,e){var t={},a=t.encode={},n=ee(),i=[],o=[],s={};T(r.dimensions,function(h){var v=r.getDimensionInfo(h),d=v.coordDim;if(d){var p=v.coordDimIndex;Qo(a,d)[p]=h,v.isExtraCoord||(n.set(d,1),nb(v.type)&&(i[0]=h),Qo(s,d)[p]=r.getDimensionIndex(v.name)),v.defaultTooltip&&o.push(h)}Yd.each(function(y,g){var m=Qo(a,g),_=v.otherDims[g];_!=null&&_!==!1&&(m[_]=v.name)})});var l=[],u={};n.each(function(h,v){var d=a[v];u[v]=d[0],l=l.concat(d)}),t.dataDimsOnCoord=l,t.dataDimIndicesOnCoord=X(l,function(h){return r.getDimensionInfo(h).storeDimIndex}),t.encodeFirstDimNotExtra=u;var f=a.label;f&&f.length&&(i=f.slice());var c=a.tooltip;return c&&c.length?o=c.slice():o.length||(o=i.slice()),a.defaultedLabel=i,a.defaultedTooltip=o,t.userOutput=new tb(s,e),t}function Qo(r,e){return r.hasOwnProperty(e)||(r[e]=[]),r[e]}function ab(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function nb(r){return!(r==="ordinal"||r==="time")}var Li=(function(){function r(e){this.otherDims={},e!=null&&F(this,e)}return r})(),ib=ne(),ob={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},Kp=(function(){function r(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return r.prototype.isDimensionOmitted=function(){return this._dimOmitted},r.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=Qp(this.source)))},r.prototype.getSourceDimensionIndex=function(e){return j(this._dimNameMap.get(e),-1)},r.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},r.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=ep(this.source),a=!Jp(e),n="",i=[],o=0,s=0;o<e;o++){var l=void 0,u=void 0,f=void 0,c=this.dimensions[s];if(c&&c.storeDimIndex===o)l=t?c.name:null,u=c.type,f=c.ordinalMeta,s++;else{var h=this.getSourceDimension(o);h&&(l=t?h.name:null,u=h.type)}i.push({property:l,type:u,ordinalMeta:f}),t&&l!=null&&(!c||!c.isCalculationCoord)&&(n+=a?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),n+="$",n+=ob[u]||"f",f&&(n+=f.uid),n+="$"}var v=this.source,d=[v.seriesLayoutBy,v.startIndex,n].join("$$");return{dimensions:i,hash:d}},r.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,a=0;t<this._fullDimCount;t++){var n=void 0,i=this.dimensions[a];if(i&&i.storeDimIndex===t)i.isCalculationCoord||(n=i.name),a++;else{var o=this.getSourceDimension(t);o&&(n=o.name)}e.push(n)}return e},r.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},r})();function qp(r){return r instanceof Kp}function jp(r){for(var e=ee(),t=0;t<(r||[]).length;t++){var a=r[t],n=K(a)?a.name:a;n!=null&&e.get(n)==null&&e.set(n,t)}return e}function Qp(r){var e=ib(r);return e.dimNameMap||(e.dimNameMap=jp(r.dimensionsDefine))}function Jp(r){return r>30}var Pa=K,Zt=X,sb=typeof Int32Array>"u"?Array:Int32Array,lb="e\0\0",kc=-1,ub=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],fb=["_approximateExtent"],Pc,ni,Ra,Ea,Jo,Oa,es,Tn=(function(){function r(e,t){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var a,n=!1;qp(e)?(a=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(n=!0,a=e),a=a||["x","y"];for(var i={},o=[],s={},l=!1,u={},f=0;f<a.length;f++){var c=a[f],h=Z(c)?new Li({name:c}):c instanceof Li?c:new Li(c),v=h.name;h.type=h.type||"float",h.coordDim||(h.coordDim=v,h.coordDimIndex=0);var d=h.otherDims=h.otherDims||{};o.push(v),i[v]=h,u[v]!=null&&(l=!0),h.createInvertedIndices&&(s[v]=[]);var p=f;oe(h.storeDimIndex)&&(p=h.storeDimIndex),d.itemName===0&&(this._nameDimIdx=p),d.itemId===0&&(this._idDimIdx=p),n&&(h.storeDimIndex=f)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(l),this.hostModel=t,this._invertedIndicesMap=s,this._dimOmitted){var y=this._dimIdxToName=ee();T(o,function(g){y.set(i[g].storeDimIndex,g)})}}return r.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(t==null)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var a=this._dimIdxToName.get(t);if(a!=null)return a;var n=this._schema.getSourceDimension(t);if(n)return n.name},r.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(t!=null)return t;if(e==null)return-1;var a=this._getDimInfo(e);return a?a.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},r.prototype._recognizeDimIndex=function(e){if(oe(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},r.prototype._getStoreDimIndex=function(e){var t=this.getDimensionIndex(e);return t},r.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},r.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(a){return t.hasOwnProperty(a)?t[a]:void 0}:function(a){return t[a]}},r.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},r.prototype.mapDimension=function(e,t){var a=this._dimSummary;if(t==null)return a.encodeFirstDimNotExtra[e];var n=a.encode[e];return n?n[t]:null},r.prototype.mapDimensionsAll=function(e){var t=this._dimSummary,a=t.encode[e];return(a||[]).slice()},r.prototype.getStore=function(){return this._store},r.prototype.initData=function(e,t,a){var n=this,i;if(e instanceof al&&(i=e),!i){var o=this.dimensions,s=bu(e)||Rn(e)?new tp(e,o.length):e;i=new al;var l=Zt(o,function(u){return{type:n._dimInfos[u].type,property:u}});i.initData(s,l,a)}this._store=i,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=rb(this,this._schema),this.userOutput=this._dimSummary.userOutput},r.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},r.prototype.appendValues=function(e,t){var a=this._store.appendValues(e,t&&t.length),n=a.start,i=a.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var s=n;s<i;s++){var l=s-n;this._nameList[s]=t[l],o&&es(this,s)}},r.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,a=0;a<t.length;a++){var n=this._dimInfos[t[a]];n.ordinalMeta&&e.collectOrdinalMeta(n.storeDimIndex,n.ordinalMeta)}},r.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==ar&&!e.fillStorage},r.prototype._doInit=function(e,t){if(!(e>=t)){var a=this._store,n=a.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=n.getSource().sourceFormat,l=s===je;if(l&&!n.pure)for(var u=[],f=e;f<t;f++){var c=n.getItem(f,u);if(!this.hasItemOption&&zm(c)&&(this.hasItemOption=!0),c){var h=c.name;i[f]==null&&h!=null&&(i[f]=rt(h,null));var v=c.id;o[f]==null&&v!=null&&(o[f]=rt(v,null))}}if(this._shouldMakeIdFromName())for(var f=e;f<t;f++)es(this,f);Pc(this)}},r.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},r.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},r.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},r.prototype.setCalculationInfo=function(e,t){Pa(e)?F(this._calculationInfo,e):this._calculationInfo[e]=t},r.prototype.getName=function(e){var t=this.getRawIndex(e),a=this._nameList[t];return a==null&&this._nameDimIdx!=null&&(a=Ra(this,this._nameDimIdx,t)),a==null&&(a=""),a},r.prototype._getCategory=function(e,t){var a=this._store.get(e,t),n=this._store.getOrdinalMeta(e);return n?n.categories[a]:a},r.prototype.getId=function(e){return ni(this,this.getRawIndex(e))},r.prototype.count=function(){return this._store.count()},r.prototype.get=function(e,t){var a=this._store,n=this._dimInfos[e];if(n)return a.get(n.storeDimIndex,t)},r.prototype.getByRawIndex=function(e,t){var a=this._store,n=this._dimInfos[e];if(n)return a.getByRawIndex(n.storeDimIndex,t)},r.prototype.getIndices=function(){return this._store.getIndices()},r.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},r.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},r.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},r.prototype.getValues=function(e,t){var a=this,n=this._store;return N(e)?n.getValues(Zt(e,function(i){return a._getStoreDimIndex(i)}),t):n.getValues(e)},r.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,a=0,n=t.length;a<n;a++)if(isNaN(this._store.get(t[a],e)))return!1;return!0},r.prototype.indexOfName=function(e){for(var t=0,a=this._store.count();t<a;t++)if(this.getName(t)===e)return t;return-1},r.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},r.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},r.prototype.rawIndexOf=function(e,t){var a=e&&this._invertedIndicesMap[e],n=a&&a[t];return n==null||isNaN(n)?kc:n},r.prototype.each=function(e,t,a){Q(e)&&(a=t,t=e,e=[]);var n=a||this,i=Zt(Ea(e),this._getStoreDimIndex,this);this._store.each(i,n?$(t,n):t)},r.prototype.filterSelf=function(e,t,a){Q(e)&&(a=t,t=e,e=[]);var n=a||this,i=Zt(Ea(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,n?$(t,n):t),this},r.prototype.selectRange=function(e){var t=this,a={},n=Le(e);return T(n,function(i){var o=t._getStoreDimIndex(i);a[o]=e[i]}),this._store=this._store.selectRange(a),this},r.prototype.mapArray=function(e,t,a){Q(e)&&(a=t,t=e,e=[]),a=a||this;var n=[];return this.each(e,function(){n.push(t&&t.apply(this,arguments))},a),n},r.prototype.map=function(e,t,a,n){var i=a||n||this,o=Zt(Ea(e),this._getStoreDimIndex,this),s=Oa(this);return s._store=this._store.map(o,i?$(t,i):t),s},r.prototype.modify=function(e,t,a,n){var i=a||n||this,o=Zt(Ea(e),this._getStoreDimIndex,this);this._store.modify(o,i?$(t,i):t)},r.prototype.downSample=function(e,t,a,n){var i=Oa(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),t,a,n),i},r.prototype.minmaxDownSample=function(e,t){var a=Oa(this);return a._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),t),a},r.prototype.lttbDownSample=function(e,t){var a=Oa(this);return a._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),a},r.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},r.prototype.getItemModel=function(e){var t=this.hostModel,a=this.getRawDataItem(e);return new he(a,t,t&&t.ecModel)},r.prototype.diff=function(e){var t=this;return new $p(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(a){return ni(e,a)},function(a){return ni(t,a)})},r.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},r.prototype.setVisual=function(e,t){this._visual=this._visual||{},Pa(e)?F(this._visual,e):this._visual[e]=t},r.prototype.getItemVisual=function(e,t){var a=this._itemVisuals[e],n=a&&a[t];return n??this.getVisual(t)},r.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},r.prototype.ensureUniqueItemVisual=function(e,t){var a=this._itemVisuals,n=a[e];n||(n=a[e]={});var i=n[t];return i==null&&(i=this.getVisual(t),N(i)?i=i.slice():Pa(i)&&(i=F({},i)),n[t]=i),i},r.prototype.setItemVisual=function(e,t,a){var n=this._itemVisuals[e]||{};this._itemVisuals[e]=n,Pa(t)?F(n,t):n[t]=a},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(e,t){Pa(e)?F(this._layout,e):this._layout[e]=t},r.prototype.getLayout=function(e){return this._layout[e]},r.prototype.getItemLayout=function(e){return this._itemLayouts[e]},r.prototype.setItemLayout=function(e,t,a){this._itemLayouts[e]=a?F(this._itemLayouts[e]||{},t):t},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(e,t){var a=this.hostModel&&this.hostModel.seriesIndex;f0(a,this.dataType,e,t),this._graphicEls[e]=t},r.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},r.prototype.eachItemGraphicEl=function(e,t){T(this._graphicEls,function(a,n){a&&e&&e.call(t,a,n)})},r.prototype.cloneShallow=function(e){return e||(e=new r(this._schema?this._schema:Zt(this.dimensions,this._getDimInfo,this),this.hostModel)),Jo(e,this),e._store=this._store,e},r.prototype.wrapMethod=function(e,t){var a=this[e];Q(a)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var n=a.apply(this,arguments);return t.apply(this,[n].concat(om(arguments)))})},r.internalField=(function(){Pc=function(e){var t=e._invertedIndicesMap;T(t,function(a,n){var i=e._dimInfos[n],o=i.ordinalMeta,s=e._store;if(o){a=t[n]=new sb(o.categories.length);for(var l=0;l<a.length;l++)a[l]=kc;for(var l=0;l<s.count();l++)a[s.get(i.storeDimIndex,l)]=l}})},Ra=function(e,t,a){return rt(e._getCategory(t,a),null)},ni=function(e,t){var a=e._idList[t];return a==null&&e._idDimIdx!=null&&(a=Ra(e,e._idDimIdx,t)),a==null&&(a=lb+t),a},Ea=function(e){return N(e)||(e=e!=null?[e]:[]),e},Oa=function(e){var t=new r(e._schema?e._schema:Zt(e.dimensions,e._getDimInfo,e),e.hostModel);return Jo(t,e),t},Jo=function(e,t){T(ub.concat(t.__wrappedMethods||[]),function(a){t.hasOwnProperty(a)&&(e[a]=t[a])}),e.__wrappedMethods=t.__wrappedMethods,T(fb,function(a){e[a]=q(t[a])}),e._calculationInfo=F({},t._calculationInfo)},es=function(e,t){var a=e._nameList,n=e._idList,i=e._nameDimIdx,o=e._idDimIdx,s=a[t],l=n[t];if(s==null&&i!=null&&(a[t]=s=Ra(e,i,t)),l==null&&o!=null&&(n[t]=l=Ra(e,o,t)),l==null&&s!=null){var u=e._nameRepeatCount,f=u[s]=(u[s]||0)+1;l=s,f>1&&(l+="__ec__"+f),n[t]=l}}})(),r})();function HD(r,e){return Co(r,e).dimensions}function Co(r,e){bu(r)||(r=wu(r)),e=e||{};var t=e.coordDimensions||[],a=e.dimensionsDefine||r.dimensionsDefine||[],n=ee(),i=[],o=vb(r,t,a,e.dimensionsCount),s=e.canOmitUnusedDimensions&&Jp(o),l=a===r.dimensionsDefine,u=l?Qp(r):jp(a),f=e.encodeDefine;!f&&e.encodeDefaulter&&(f=e.encodeDefaulter(r,o));for(var c=ee(f),h=new op(o),v=0;v<h.length;v++)h[v]=-1;function d(M){var A=h[M];if(A<0){var C=a[M],I=K(C)?C:{name:C},L=new Li,E=I.name;E!=null&&u.get(E)!=null&&(L.name=L.displayName=E),I.type!=null&&(L.type=I.type),I.displayName!=null&&(L.displayName=I.displayName);var k=i.length;return h[M]=k,L.storeDimIndex=M,i.push(L),L}return i[A]}if(!s)for(var v=0;v<o;v++)d(v);c.each(function(M,A){var C=De(M).slice();if(C.length===1&&!Z(C[0])&&C[0]<0){c.set(A,!1);return}var I=c.set(A,[]);T(C,function(L,E){var k=Z(L)?u.get(L):L;k!=null&&k<o&&(I[E]=k,y(d(k),A,E))})});var p=0;T(t,function(M){var A,C,I,L;if(Z(M))A=M,L={};else{L=M,A=L.name;var E=L.ordinalMeta;L.ordinalMeta=null,L=F({},L),L.ordinalMeta=E,C=L.dimsDef,I=L.otherDims,L.name=L.coordDim=L.coordDimIndex=L.dimsDef=L.otherDims=null}var k=c.get(A);if(k!==!1){if(k=De(k),!k.length)for(var P=0;P<(C&&C.length||1);P++){for(;p<o&&d(p).coordDim!=null;)p++;p<o&&k.push(p++)}T(k,function(V,R){var O=d(V);if(l&&L.type!=null&&(O.type=L.type),y(ae(O,L),A,R),O.name==null&&C){var z=C[R];!K(z)&&(z={name:z}),O.name=O.displayName=z.name,O.defaultTooltip=z.defaultTooltip}I&&ae(O.otherDims,I)})}});function y(M,A,C){Yd.get(A)!=null?M.otherDims[A]=C:(M.coordDim=A,M.coordDimIndex=C,n.set(A,!0))}var g=e.generateCoord,m=e.generateCoordCount,_=m!=null;m=g?m||1:0;var S=g||"value";function b(M){M.name==null&&(M.name=M.coordDim)}if(s)T(i,function(M){b(M)}),i.sort(function(M,A){return M.storeDimIndex-A.storeDimIndex});else for(var x=0;x<o;x++){var w=d(x),D=w.coordDim;D==null&&(w.coordDim=hb(S,n,_),w.coordDimIndex=0,(!g||m<=0)&&(w.isExtraCoord=!0),m--),b(w),w.type==null&&($d(r,x)===Ee.Must||w.isExtraCoord&&(w.otherDims.itemName!=null||w.otherDims.seriesName!=null))&&(w.type="ordinal")}return cb(i),new Kp({source:r,dimensions:i,fullDimensionCount:o,dimensionOmitted:s})}function cb(r){for(var e=ee(),t=0;t<r.length;t++){var a=r[t],n=a.name,i=e.get(n)||0;i>0&&(a.name=n+(i-1)),i++,e.set(n,i)}}function vb(r,e,t,a){var n=Math.max(r.dimensionsDetectedCount||1,e.length,t.length,a||0);return T(e,function(i){var o;K(i)&&(o=i.dimsDef)&&(n=Math.max(n,o.length))}),n}function hb(r,e,t){if(t||e.hasKey(r)){for(var a=0;e.hasKey(r+a);)a++;r+=a}return e.set(r,!0),r}var db=(function(){function r(e){this.coordSysDims=[],this.axisMap=ee(),this.categoryAxisMap=ee(),this.coordSysName=e}return r})();function pb(r){var e=r.get("coordinateSystem"),t=new db(e),a=gb[e];if(a)return a(r,t,t.axisMap,t.categoryAxisMap),t}var gb={cartesian2d:function(r,e,t,a){var n=r.getReferringComponents("xAxis",Ze).models[0],i=r.getReferringComponents("yAxis",Ze).models[0];e.coordSysDims=["x","y"],t.set("x",n),t.set("y",i),qr(n)&&(a.set("x",n),e.firstCategoryDimIndex=0),qr(i)&&(a.set("y",i),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(r,e,t,a){var n=r.getReferringComponents("singleAxis",Ze).models[0];e.coordSysDims=["single"],t.set("single",n),qr(n)&&(a.set("single",n),e.firstCategoryDimIndex=0)},polar:function(r,e,t,a){var n=r.getReferringComponents("polar",Ze).models[0],i=n.findAxisModel("radiusAxis"),o=n.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],t.set("radius",i),t.set("angle",o),qr(i)&&(a.set("radius",i),e.firstCategoryDimIndex=0),qr(o)&&(a.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(r,e,t,a){e.coordSysDims=["lng","lat"]},parallel:function(r,e,t,a){var n=r.ecModel,i=n.getComponent("parallel",r.get("parallelIndex")),o=e.coordSysDims=i.dimensions.slice();T(i.parallelAxisIndex,function(s,l){var u=n.getComponent("parallelAxis",s),f=o[l];t.set(f,u),qr(u)&&(a.set(f,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})},matrix:function(r,e,t,a){var n=r.getReferringComponents("matrix",Ze).models[0];e.coordSysDims=["x","y"];var i=n.getDimensionModel("x"),o=n.getDimensionModel("y");t.set("x",i),t.set("y",o),a.set("x",i),a.set("y",o)}};function qr(r){return r.get("type")==="category"}function yb(r,e,t){t=t||{};var a=t.byIndex,n=t.stackedCoordDimension,i,o,s;mb(e)?i=e:(o=e.schema,i=o.dimensions,s=e.store);var l=!!(r&&r.get("stack")),u,f,c,h;if(T(i,function(m,_){Z(m)&&(i[_]=m={name:m}),l&&!m.isExtraCoord&&(!a&&!u&&m.ordinalMeta&&(u=m),!f&&m.type!=="ordinal"&&m.type!=="time"&&(!n||n===m.coordDim)&&(f=m))}),f&&!a&&!u&&(a=!0),f){c="__\0ecstackresult_"+r.id,h="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var v=f.coordDim,d=f.type,p=0;T(i,function(m){m.coordDim===v&&p++});var y={name:c,coordDim:v,coordDimIndex:p,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},g={name:h,coordDim:h,coordDimIndex:p+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(y.storeDimIndex=s.ensureCalculationDimension(h,d),g.storeDimIndex=s.ensureCalculationDimension(c,d)),o.appendCalculationDimension(y),o.appendCalculationDimension(g)):(i.push(y),i.push(g))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:a,stackedOverDimension:h,stackResultDimension:c}}function mb(r){return!qp(r.schema)}function ya(r,e){return!!e&&e===r.getCalculationInfo("stackedDimension")}function _b(r,e){return ya(r,e)?r.getCalculationInfo("stackResultDimension"):e}function Sb(r,e){var t=r.get("coordinateSystem"),a=Hn.get(t),n;return e&&e.coordSysDims&&(n=X(e.coordSysDims,function(i){var o={name:i},s=e.axisMap.get(i);if(s){var l=s.get("type");o.type=ab(l)}return o})),n||(n=a&&(a.getDimensionsInfo?a.getDimensionsInfo():a.dimensions.slice())||["x","y"]),n}function xb(r,e,t){var a,n;return t&&T(r,function(i,o){var s=i.coordDim,l=t.categoryAxisMap.get(s);l&&(a==null&&(a=o),i.ordinalMeta=l.getOrdinalMeta(),e&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(n=!0)}),!n&&a!=null&&(r[a].otherDims.itemName=0),a}function wa(r,e,t){t=t||{};var a=e.getSourceManager(),n,i=!1;r?(i=!0,n=wu(r)):(n=a.getSource(),i=n.sourceFormat===je);var o=pb(e),s=Sb(e,o),l=t.useEncodeDefaulter,u=Q(l)?l:l?ye(O_,s,e):null,f={coordDimensions:s,generateCoord:t.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},c=Co(n,f),h=xb(c.dimensions,t.createInvertedIndices,o),v=i?null:a.getSharedDataStore(c),d=yb(e,{schema:c,store:v}),p=new Tn(c,e);p.setCalculationInfo(d);var y=h!=null&&bb(n)?function(g,m,_,S){return S===h?_:this.defaultDimValueGetter(g,m,_,S)}:null;return p.hasItemOption=!1,p.initData(i?n:v,null,y),p}function bb(r){if(r.sourceFormat===je){var e=wb(r.data||[]);return!N(Gn(e))}}function wb(r){for(var e=0;e<r.length&&r[e]==null;)e++;return r[e]}function pl(r){return r.type==="interval"||r.type==="log"}function Tb(r,e,t,a,n){var i={},o=i.interval=jh(e/t);a!=null&&o<a&&(o=i.interval=a),n!=null&&o>n&&(o=i.interval=n);var s=i.intervalPrecision=Cn(o),l=i.niceTickExtent=[ke(Math.ceil(r[0]/o)*o,s),ke(Math.floor(r[1]/o)*o,s)];return Cb(l,r),i}function ts(r){var e=Math.pow(10,Xl(r)),t=r/e;return t?t===2?t=3:t===3?t=5:t*=2:t=1,ke(t*e)}function Cn(r){return Pt(r)+2}function Rc(r,e,t){r[e]=Math.max(Math.min(r[e],t[1]),t[0])}function Cb(r,e){!isFinite(r[0])&&(r[0]=e[0]),!isFinite(r[1])&&(r[1]=e[1]),Rc(r,0,e),Rc(r,1,e),r[0]>r[1]&&(r[0]=r[1])}function Eu(r,e){return r>=e[0]&&r<=e[1]}var Mb=(function(){function r(){this.normalize=Ec,this.scale=Oc}return r.prototype.updateMethods=function(e){e.hasBreaks()?(this.normalize=$(e.normalize,e),this.scale=$(e.scale,e)):(this.normalize=Ec,this.scale=Oc)},r})();function Ec(r,e){return e[1]===e[0]?.5:(r-e[0])/(e[1]-e[0])}function Oc(r,e){return r*(e[1]-e[0])+e[0]}function gl(r,e,t){var a=Math.log(r);return[Math.log(t?e[0]:Math.max(0,e[0]))/a,Math.log(t?e[1]:Math.max(0,e[1]))/a]}var fr=(function(){function r(e){this._calculator=new Mb,this._setting=e||{},this._extent=[1/0,-1/0]}return r.prototype.getSetting=function(e){return this._setting[e]},r.prototype._innerUnionExtent=function(e){var t=this._extent;this._innerSetExtent(e[0]<t[0]?e[0]:t[0],e[1]>t[1]?e[1]:t[1])},r.prototype.unionExtentFromData=function(e,t){this._innerUnionExtent(e.getApproximateExtent(t))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(e,t){this._innerSetExtent(e,t)},r.prototype._innerSetExtent=function(e,t){var a=this._extent;isNaN(e)||(a[0]=e),isNaN(t)||(a[1]=t),this._brkCtx&&this._brkCtx.update(a)},r.prototype.setBreaksFromOption=function(e){},r.prototype._innerSetBreak=function(e){this._brkCtx&&(this._brkCtx.setBreaks(e),this._calculator.updateMethods(this._brkCtx),this._brkCtx.update(this._extent))},r.prototype._innerGetBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},r.prototype.hasBreaks=function(){return this._brkCtx?this._brkCtx.hasBreaks():!1},r.prototype._getExtentSpanWithBreaks=function(){return this._brkCtx&&this._brkCtx.hasBreaks()?this._brkCtx.getExtentSpan():this._extent[1]-this._extent[0]},r.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(e){this._isBlank=e},r})();fo(fr);var Db=0,yl=(function(){function r(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++Db,this._onCollect=e.onCollect}return r.createByAxisModel=function(e){var t=e.option,a=t.data,n=a&&X(a,Ab);return new r({categories:n,needCollect:!n,deduplication:t.dedplication!==!1})},r.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},r.prototype.parseAndCollect=function(e){var t,a=this._needCollect;if(!Z(e)&&!a)return e;if(a&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,this._onCollect&&this._onCollect(e,t),t;var n=this._getOrCreateMap();return t=n.get(e),t==null&&(a?(t=this.categories.length,this.categories[t]=e,n.set(e,t),this._onCollect&&this._onCollect(e,t)):t=NaN),t},r.prototype._getOrCreateMap=function(){return this._map||(this._map=ee(this.categories))},r})();function Ab(r){return K(r)&&r.value!=null?r.value:r+""}var eg=(function(r){U(e,r);function e(t){var a=r.call(this,t)||this;a.type="ordinal";var n=a.getSetting("ordinalMeta");return n||(n=new yl({})),N(n)&&(n=new yl({categories:X(n,function(i){return K(i)?i.value:i})})),a._ordinalMeta=n,a._extent=a.getSetting("extent")||[0,n.categories.length-1],a}return e.prototype.parse=function(t){return t==null?NaN:Z(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return Eu(t,this._extent)&&t>=0&&t<this._ordinalMeta.categories.length},e.prototype.normalize=function(t){return t=this._getTickNumber(t),this._calculator.normalize(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(this._calculator.scale(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],a=this._extent,n=a[0];n<=a[1];)t.push({value:n}),n++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(t==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var a=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,a.length);o<l;++o){var u=a[o];n[o]=u,i[u]=o}for(var f=0;o<s;++o){for(;i[f]!=null;)f++;n.push(f),i[f]=o}},e.prototype._getTickNumber=function(t){var a=this._ticksByOrdinalNumber;return a&&t>=0&&t<a.length?a[t]:t},e.prototype.getRawOrdinalNumber=function(t){var a=this._ordinalNumbersByTick;return a&&t>=0&&t<a.length?a[t]:t},e.prototype.getLabel=function(t){if(!this.isBlank()){var a=this.getRawOrdinalNumber(t.value),n=this._ordinalMeta.categories[a];return n==null?"":n+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e})(fr);fr.registerClass(eg);var $t=ke,or=(function(r){U(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return e.prototype.parse=function(t){return t==null||t===""?NaN:Number(t)},e.prototype.contain=function(t){return Eu(t,this._extent)},e.prototype.normalize=function(t){return this._calculator.normalize(t,this._extent)},e.prototype.scale=function(t){return this._calculator.scale(t,this._extent)},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=Cn(t)},e.prototype.getTicks=function(t){t=t||{};var a=this._interval,n=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=Ui(),l=[];if(!a)return l;t.breakTicks;var u=1e4;n[0]<i[0]&&(t.expandToNicedExtent?l.push({value:$t(i[0]-a,o)}):l.push({value:n[0]}));for(var f=function(d,p){return Math.round((p-d)/a)},c=i[0];c<=i[1];){if(l.push({value:c}),c=$t(c+a,o),this._brkCtx){var h=this._brkCtx.calcNiceTickMultiple(c,f);h>=0&&(c=$t(c+h*a,o))}if(l.length>0&&c===l[l.length-1].value)break;if(l.length>u)return[]}var v=l.length?l[l.length-1].value:i[1];return n[1]>v&&(t.expandToNicedExtent?l.push({value:$t(v+a,o)}):l.push({value:n[1]})),t.breakTicks,l},e.prototype.getMinorTicks=function(t){for(var a=this.getTicks({expandToNicedExtent:!0}),n=[],i=this.getExtent(),o=1;o<a.length;o++){var s=a[o],l=a[o-1];if(!(l.break||s.break)){for(var u=0,f=[],c=s.value-l.value,h=c/t,v=Cn(h);u<t-1;){var d=$t(l.value+(u+1)*h,v);d>i[0]&&d<i[1]&&f.push(d),u++}var p=Ui();p&&p.pruneTicksByBreak("auto",f,this._getNonTransBreaks(),function(y){return y},this._interval,i),n.push(f)}}return n},e.prototype._getNonTransBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},e.prototype.getLabel=function(t,a){if(t==null)return"";var n=a&&a.precision;n==null?n=Pt(t.value)||0:n==="auto"&&(n=this._intervalPrecision);var i=$t(t.value,n,!0);return zd(i)},e.prototype.calcNiceTicks=function(t,a,n){t=t||5;var i=this._extent.slice(),o=this._getExtentSpanWithBreaks();if(isFinite(o)){o<0&&(o=-o,i.reverse(),this._innerSetExtent(i[0],i[1]),i=this._extent.slice());var s=Tb(i,o,t,a,n);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},e.prototype.calcNiceExtent=function(t){var a=this._extent.slice();if(a[0]===a[1])if(a[0]!==0){var n=Math.abs(a[0]);t.fixMax||(a[1]+=n/2),a[0]-=n/2}else a[1]=1;var i=a[1]-a[0];isFinite(i)||(a[0]=0,a[1]=1),this._innerSetExtent(a[0],a[1]),a=this._extent.slice(),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval);var o=this._interval,s=this._intervalPrecision;t.fixMin||(a[0]=$t(Math.floor(a[0]/o)*o,s)),t.fixMax||(a[1]=$t(Math.ceil(a[1]/o)*o,s)),this._innerSetExtent(a[0],a[1])},e.prototype.setNiceExtent=function(t,a){this._niceExtent=[t,a]},e.type="interval",e})(fr);fr.registerClass(or);var tg=typeof Float32Array<"u",Lb=tg?Float32Array:Array;function Rt(r){return N(r)?tg?new Float32Array(r):r:new Lb(r)}var ml="__ec_stack_";function rg(r){return r.get("stack")||ml+r.seriesIndex}function Ou(r){return r.dim+r.index}function Ib(r){var e=[],t=r.axis,a="axis0";if(t.type==="category"){for(var n=t.getBandWidth(),i=0;i<r.count;i++)e.push(ae({bandWidth:n,axisKey:a,stackId:ml+i},r));for(var o=ig(e),s=[],i=0;i<r.count;i++){var l=o[a][ml+i];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function ag(r,e){var t=[];return e.eachSeriesByType(r,function(a){og(a)&&t.push(a)}),t}function kb(r){var e={};T(r,function(l){var u=l.coordinateSystem,f=u.getBaseAxis();if(!(f.type!=="time"&&f.type!=="value"))for(var c=l.getData(),h=f.dim+"_"+f.index,v=c.getDimensionIndex(c.mapDimension(f.dim)),d=c.getStore(),p=0,y=d.count();p<y;++p){var g=d.get(v,p);e[h]?e[h].push(g):e[h]=[g]}});var t={};for(var a in e)if(e.hasOwnProperty(a)){var n=e[a];if(n){n.sort(function(l,u){return l-u});for(var i=null,o=1;o<n.length;++o){var s=n[o]-n[o-1];s>0&&(i=i===null?s:Math.min(i,s))}t[a]=i}}return t}function ng(r){var e=kb(r),t=[];return T(r,function(a){var n=a.coordinateSystem,i=n.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var l=i.dim+"_"+i.index,u=e[l],f=Math.abs(o[1]-o[0]),c=i.scale.getExtent(),h=Math.abs(c[1]-c[0]);s=u?f/h*u:f}else{var v=a.getData();s=Math.abs(o[1]-o[0])/v.count()}var d=re(a.get("barWidth"),s),p=re(a.get("barMaxWidth"),s),y=re(a.get("barMinWidth")||(sg(a)?.5:1),s),g=a.get("barGap"),m=a.get("barCategoryGap"),_=a.get("defaultBarGap");t.push({bandWidth:s,barWidth:d,barMaxWidth:p,barMinWidth:y,barGap:g,barCategoryGap:m,defaultBarGap:_,axisKey:Ou(i),stackId:rg(a)})}),ig(t)}function ig(r){var e={};T(r,function(a,n){var i=a.axisKey,o=a.bandWidth,s=e[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:a.defaultBarGap||0,stacks:{}},l=s.stacks;e[i]=s;var u=a.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var f=a.barWidth;f&&!l[u].width&&(l[u].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var c=a.barMaxWidth;c&&(l[u].maxWidth=c);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 t={};return T(e,function(a,n){t[n]={};var i=a.stacks,o=a.bandWidth,s=a.categoryGap;if(s==null){var l=Le(i).length;s=Math.max(35-l*4,15)+"%"}var u=re(s,o),f=re(a.gap,1),c=a.remainedWidth,h=a.autoWidthCount,v=(c-u)/(h+(h-1)*f);v=Math.max(v,0),T(i,function(g){var m=g.maxWidth,_=g.minWidth;if(g.width){var S=g.width;m&&(S=Math.min(S,m)),_&&(S=Math.max(S,_)),g.width=S,c-=S+f*S,h--}else{var S=v;m&&m<S&&(S=Math.min(m,c)),_&&_>S&&(S=_),S!==v&&(g.width=S,c-=S+f*S,h--)}}),v=(c-u)/(h+(h-1)*f),v=Math.max(v,0);var d=0,p;T(i,function(g,m){g.width||(g.width=v),p=g,d+=g.width*(1+f)}),p&&(d-=p.width*f);var y=-d/2;T(i,function(g,m){t[n][m]=t[n][m]||{bandWidth:o,offset:y,width:g.width},y+=g.width*(1+f)})}),t}function Pb(r,e,t){if(r&&e){var a=r[Ou(e)];return a}}function Rb(r,e){var t=ag(r,e),a=ng(t);T(t,function(n){var i=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=rg(n),u=a[Ou(s)][l],f=u.offset,c=u.width;i.setLayout({bandWidth:u.bandWidth,offset:f,size:c})})}function Eb(r){return{seriesType:r,plan:Mu(),reset:function(e){if(og(e)){var t=e.getData(),a=e.coordinateSystem,n=a.getBaseAxis(),i=a.getOtherAxis(n),o=t.getDimensionIndex(t.mapDimension(i.dim)),s=t.getDimensionIndex(t.mapDimension(n.dim)),l=e.get("showBackground",!0),u=t.mapDimension(i.dim),f=t.getCalculationInfo("stackResultDimension"),c=ya(t,u)&&!!t.getCalculationInfo("stackedOnSeries"),h=i.isHorizontal(),v=Ob(n,i),d=sg(e),p=e.get("barMinHeight")||0,y=f&&t.getDimensionIndex(f),g=t.getLayout("size"),m=t.getLayout("offset");return{progress:function(_,S){for(var b=_.count,x=d&&Rt(b*3),w=d&&l&&Rt(b*3),D=d&&Rt(b),M=a.master.getRect(),A=h?M.width:M.height,C,I=S.getStore(),L=0;(C=_.next())!=null;){var E=I.get(c?y:o,C),k=I.get(s,C),P=v,V=void 0;c&&(V=+E-I.get(o,C));var R=void 0,O=void 0,z=void 0,H=void 0;if(h){var Y=a.dataToPoint([E,k]);if(c){var J=a.dataToPoint([V,k]);P=J[0]}R=P,O=Y[1]+m,z=Y[0]-P,H=g,Math.abs(z)<p&&(z=(z<0?-1:1)*p)}else{var Y=a.dataToPoint([k,E]);if(c){var J=a.dataToPoint([k,V]);P=J[1]}R=Y[0]+m,O=P,z=g,H=Y[1]-P,Math.abs(H)<p&&(H=(H<=0?-1:1)*p)}d?(x[L]=R,x[L+1]=O,x[L+2]=h?z:H,w&&(w[L]=h?M.x:R,w[L+1]=h?O:M.y,w[L+2]=A),D[C]=C):S.setItemLayout(C,{x:R,y:O,width:z,height:H}),L+=3}d&&S.setLayout({largePoints:x,largeDataIndices:D,largeBackgroundPoints:w,valueAxisHorizontal:h})}}}}}}function og(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function sg(r){return r.pipelineContext&&r.pipelineContext.large}function Ob(r,e){var t=e.model.get("startValue");return t||(t=0),e.toGlobalCoord(e.dataToCoord(e.type==="log"?t>0?t:1:t))}var Nb=function(r,e,t,a){for(;t<a;){var n=t+a>>>1;r[n][1]<e?t=n+1:a=n}return t},lg=(function(r){U(e,r);function e(t){var a=r.call(this,t)||this;return a.type="time",a}return e.prototype.getLabel=function(t){var a=this.getSetting("useUTC");return _o(t.value,Of[v_(rn(this._minLevelUnit))]||Of.second,a,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(t,a,n){var i=this.getSetting("useUTC"),o=this.getSetting("locale");return h_(t,a,n,o,i)},e.prototype.getTicks=function(t){var a=this._interval,n=this._extent,i=[];if(!a)return i;var o=this.getSetting("useUTC"),s=Yi(n[1],o);i.push({value:n[0],time:{level:0,upperTimeUnit:s,lowerTimeUnit:s}});var l=Ub(this._minLevelUnit,this._approxInterval,o,n,this._getExtentSpanWithBreaks(),this._brkCtx);i=i.concat(l);var u=Yi(n[1],o);i.push({value:n[1],time:{level:0,upperTimeUnit:u,lowerTimeUnit:u}}),this.getSetting("useUTC");var f=Mr.length-1,c=0;return T(i,function(h){f=Math.min(f,fe(Mr,h.time.upperTimeUnit)),c=Math.max(c,h.time.level)}),i},e.prototype.calcNiceExtent=function(t){var a=this.getExtent();if(a[0]===a[1]&&(a[0]-=tt,a[1]+=tt),a[1]===-1/0&&a[0]===1/0){var n=new Date;a[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),a[0]=a[1]-tt}this._innerSetExtent(a[0],a[1]),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},e.prototype.calcNiceTicks=function(t,a,n){t=t||10;var i=this._getExtentSpanWithBreaks();this._approxInterval=i/t,a!=null&&this._approxInterval<a&&(this._approxInterval=a),n!=null&&this._approxInterval>n&&(this._approxInterval=n);var o=ii.length,s=Math.min(Nb(ii,this._approxInterval,0,o),o-1);this._interval=ii[s][1],this._intervalPrecision=Cn(this._interval),this._minLevelUnit=ii[Math.max(s-1,0)][0]},e.prototype.parse=function(t){return oe(t)?t:+Er(t)},e.prototype.contain=function(t){return Eu(t,this._extent)},e.prototype.normalize=function(t){return this._calculator.normalize(t,this._extent)},e.prototype.scale=function(t){return this._calculator.scale(t,this._extent)},e.type="time",e})(or),ii=[["second",uu],["minute",fu],["hour",tn],["quarter-day",tn*6],["half-day",tn*12],["day",tt*1.2],["half-week",tt*3.5],["week",tt*7],["month",tt*31],["quarter",tt*95],["half-year",Ef/2],["year",Ef]];function Bb(r,e,t,a){return Js(new Date(e),r,a).getTime()===Js(new Date(t),r,a).getTime()}function Vb(r,e){return r/=tt,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function zb(r){var e=30*tt;return r/=e,r>6?6:r>3?3:r>2?2:1}function Gb(r){return r/=tn,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function Nc(r,e){return r/=e?fu:uu,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function Fb(r){return jh(r)}function Hb(r,e,t){var a=Math.max(0,fe(Mr,e)-1);return Js(new Date(r),Mr[a],t).getTime()}function Wb(r,e){var t=new Date(0);t[r](1);var a=t.getTime();t[r](1+e);var n=t.getTime()-a;return function(i,o){return Math.max(0,Math.round((o-i)/n))}}function Ub(r,e,t,a,n,i){var o=1e4,s=l_,l=0;function u(L,E,k,P,V,R,O){for(var z=Wb(V,L),H=E,Y=new Date(H);H<k&&H<=a[1]&&(O.push({value:H}),!(l++>o));)if(Y[V](Y[P]()+L),H=Y.getTime(),i){var J=i.calcNiceTickMultiple(H,z);J>0&&(Y[V](Y[P]()+J*L),H=Y.getTime())}O.push({value:H,notAdd:!0})}function f(L,E,k){var P=[],V=!E.length;if(!Bb(rn(L),a[0],a[1],t)){V&&(E=[{value:Hb(a[0],L,t)},{value:a[1]}]);for(var R=0;R<E.length-1;R++){var O=E[R].value,z=E[R+1].value;if(O!==z){var H=void 0,Y=void 0,J=void 0,pe=!1;switch(L){case"year":H=Math.max(1,Math.round(e/tt/365)),Y=Pd(t),J=d_(t);break;case"half-year":case"quarter":case"month":H=zb(e),Y=cu(t),J=Rd(t);break;case"week":case"half-week":case"day":H=Vb(e),Y=vu(t),J=Ed(t),pe=!0;break;case"half-day":case"quarter-day":case"hour":H=Gb(e),Y=hu(t),J=Od(t);break;case"minute":H=Nc(e,!0),Y=du(t),J=Nd(t);break;case"second":H=Nc(e,!1),Y=pu(t),J=Bd(t);break;case"millisecond":H=Fb(e),Y=gu(t),J=Vd(t);break}z>=a[0]&&O<=a[1]&&u(H,O,z,Y,J,pe,P),L==="year"&&k.length>1&&R===0&&k.unshift({value:k[0].value-H})}}for(var R=0;R<P.length;R++)k.push(P[R])}}for(var c=[],h=[],v=0,d=0,p=0;p<s.length;++p){var y=rn(s[p]);if(c_(s[p])){f(s[p],c[c.length-1]||[],h);var g=s[p+1]?rn(s[p+1]):null;if(y!==g){if(h.length){d=v,h.sort(function(L,E){return L.value-E.value});for(var m=[],_=0;_<h.length;++_){var S=h[_].value;(_===0||h[_-1].value!==S)&&(m.push(h[_]),S>=a[0]&&S<=a[1]&&v++)}var b=n/e;if(v>b*1.5&&d>b/1.5||(c.push(m),v>b||r===s[p]))break}h=[]}}}for(var x=Ce(X(c,function(L){return Ce(L,function(E){return E.value>=a[0]&&E.value<=a[1]&&!E.notAdd})}),function(L){return L.length>0}),w=[],D=x.length-1,p=0;p<x.length;++p)for(var M=x[p],A=0;A<M.length;++A){var C=Yi(M[A].value,t);w.push({value:M[A].value,time:{level:D-p,upperTimeUnit:C,lowerTimeUnit:C}})}w.sort(function(L,E){return L.value-E.value});for(var I=[],p=0;p<w.length;++p)(p===0||w[p].value!==w[p-1].value)&&I.push(w[p]);return I}fr.registerClass(lg);var _l=ke,Yb=Math.floor,Xb=Math.ceil,oi=Math.pow,si=Math.log,ug=(function(r){U(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new or,t}return e.prototype.getTicks=function(t){t=t||{};var a=this._extent.slice(),n=this._originalScale.getExtent(),i=r.prototype.getTicks.call(this,t),o=this.base;return this._originalScale._innerGetBreaks(),X(i,function(s){var l=s.value,u=null,f=oi(o,l);l===a[0]&&this._fixMin?u=n[0]:l===a[1]&&this._fixMax&&(u=n[1]);var c;return u!=null&&(f=rs(f,u)),{value:f,break:c}},this)},e.prototype._getNonTransBreaks=function(){return this._originalScale._innerGetBreaks()},e.prototype.setExtent=function(t,a){this._originalScale.setExtent(t,a);var n=gl(this.base,[t,a]);r.prototype.setExtent.call(this,n[0],n[1])},e.prototype.getExtent=function(){var t=this.base,a=r.prototype.getExtent.call(this);a[0]=oi(t,a[0]),a[1]=oi(t,a[1]);var n=this._originalScale.getExtent();return this._fixMin&&(a[0]=rs(a[0],n[0])),this._fixMax&&(a[1]=rs(a[1],n[1])),a},e.prototype.unionExtentFromData=function(t,a){this._originalScale.unionExtentFromData(t,a);var n=gl(this.base,t.getApproximateExtent(a),!0);this._innerUnionExtent(n)},e.prototype.calcNiceTicks=function(t){t=t||10;var a=this._extent.slice(),n=this._getExtentSpanWithBreaks();if(!(!isFinite(n)||n<=0)){var i=Rm(n),o=t/n*i;for(o<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var s=[_l(Xb(a[0]/i)*i),_l(Yb(a[1]/i)*i)];this._interval=i,this._intervalPrecision=Cn(i),this._niceExtent=s}},e.prototype.calcNiceExtent=function(t){r.prototype.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.contain=function(t){return t=si(t)/si(this.base),r.prototype.contain.call(this,t)},e.prototype.normalize=function(t){return t=si(t)/si(this.base),r.prototype.normalize.call(this,t)},e.prototype.scale=function(t){return t=r.prototype.scale.call(this,t),oi(this.base,t)},e.prototype.setBreaksFromOption=function(t){},e.type="log",e})(or);function rs(r,e){return _l(r,Pt(e))}fr.registerClass(ug);var Zb=(function(){function r(e,t,a){this._prepareParams(e,t,a)}return r.prototype._prepareParams=function(e,t,a){a[1]<a[0]&&(a=[NaN,NaN]),this._dataMin=a[0],this._dataMax=a[1];var n=this._isOrdinal=e.type==="ordinal";this._needCrossZero=e.type==="interval"&&t.getNeedCrossZero&&t.getNeedCrossZero();var i=t.get("min",!0);i==null&&(i=t.get("startValue",!0));var o=this._modelMinRaw=i;Q(o)?this._modelMinNum=li(e,o({min:a[0],max:a[1]})):o!=="dataMin"&&(this._modelMinNum=li(e,o));var s=this._modelMaxRaw=t.get("max",!0);if(Q(s)?this._modelMaxNum=li(e,s({min:a[0],max:a[1]})):s!=="dataMax"&&(this._modelMaxNum=li(e,s)),n)this._axisDataLen=t.getCategories().length;else{var l=t.get("boundaryGap"),u=N(l)?l:[l||0,l||0];typeof u[0]=="boolean"||typeof u[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[ln(u[0],1),ln(u[1],1)]}},r.prototype.calculate=function(){var e=this._isOrdinal,t=this._dataMin,a=this._dataMax,n=this._axisDataLen,i=this._boundaryGapInner,o=e?null:a-t||Math.abs(t),s=this._modelMinRaw==="dataMin"?t:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?a:this._modelMaxNum,u=s!=null,f=l!=null;s==null&&(s=e?n?0:NaN:t-i[0]*o),l==null&&(l=e?n?n-1:NaN:a+i[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var c=Tr(s)||Tr(l)||e&&!n;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var h=this._determinedMin,v=this._determinedMax;return h!=null&&(s=h,u=!0),v!=null&&(l=v,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:c}},r.prototype.modifyDataMinMax=function(e,t){this[Kb[e]]=t},r.prototype.setDeterminedMinMax=function(e,t){var a=$b[e];this[a]=t},r.prototype.freeze=function(){this.frozen=!0},r})(),$b={min:"_determinedMin",max:"_determinedMax"},Kb={min:"_dataMin",max:"_dataMax"};function qb(r,e,t){var a=r.rawExtentInfo;return a||(a=new Zb(r,e,t),r.rawExtentInfo=a,a)}function li(r,e){return e==null?null:Tr(e)?NaN:r.parse(e)}function fg(r,e){var t=r.type,a=qb(r,e,r.getExtent()).calculate();r.setBlank(a.isBlank);var n=a.min,i=a.max,o=e.ecModel;if(o&&t==="time"){var s=ag("bar",o),l=!1;if(T(s,function(c){l=l||c.getBaseAxis()===e.axis}),l){var u=ng(s),f=jb(n,i,e,u);n=f.min,i=f.max}}return{extent:[n,i],fixMin:a.minFixed,fixMax:a.maxFixed}}function jb(r,e,t,a){var n=t.axis.getExtent(),i=Math.abs(n[1]-n[0]),o=Pb(a,t.axis);if(o===void 0)return{min:r,max:e};var s=1/0;T(o,function(v){s=Math.min(v.offset,s)});var l=-1/0;T(o,function(v){l=Math.max(v.offset+v.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=e-r,c=1-(s+l)/i,h=f/c-f;return e+=h*(l/u),r-=h*(s/u),{min:r,max:e}}function Bc(r,e){var t=e,a=fg(r,t),n=a.extent,i=t.get("splitNumber");r instanceof ug&&(r.base=t.get("logBase"));var o=r.type,s=t.get("interval"),l=o==="interval"||o==="time";r.setBreaksFromOption(vg(t)),r.setExtent(n[0],n[1]),r.calcNiceExtent({splitNumber:i,fixMin:a.fixMin,fixMax:a.fixMax,minInterval:l?t.get("minInterval"):null,maxInterval:l?t.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function Qb(r,e){if(e=e||r.get("type"),e)switch(e){case"category":return new eg({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new lg({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(fr.getClass(e)||or)}}function Jb(r){var e=r.scale.getExtent(),t=e[0],a=e[1];return!(t>0&&a>0||t<0&&a<0)}function Wn(r){var e=r.getLabelModel().get("formatter");if(r.type==="time"){var t=u_(e);return function(n,i){return r.scale.getFormattedLabel(n,i,t)}}else{if(Z(e))return function(n){var i=r.scale.getLabel(n),o=e.replace("{value}",i??"");return o};if(Q(e)){if(r.type==="category")return function(n,i){return e(ji(r,n),n.value-r.scale.getExtent()[0],null)};var a=Ui();return function(n,i){var o=null;return a&&(o=a.makeAxisLabelFormatterParamBreak(o,n.break)),e(ji(r,n),i,o)}}else return function(n){return r.scale.getLabel(n)}}}function ji(r,e){return r.type==="category"?r.scale.getLabel(e):e.value}function Nu(r){var e=r.get("interval");return e??"auto"}function cg(r){return r.type==="category"&&Nu(r.getLabelModel())===0}function ew(r,e){var t={};return T(r.mapDimensionsAll(e),function(a){t[_b(r,a)]=!0}),Le(t)}function ma(r){return r==="middle"||r==="center"}function Mn(r){return r.getShallow("show")}function vg(r){var e=r.get("breaks",!0);e==null}var hg=(function(){function r(){}return r.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},r.prototype.getCoordSysModel=function(){},r})();function WD(r,e){return e=e||{},Ae(r,null,null,e.state!=="normal")}var Vc=[],tw={registerPreprocessor:Yp,registerProcessor:Xp,registerPostInit:Kx,registerPostUpdate:qx,registerUpdateLifecycle:ku,registerAction:Vr,registerCoordinateSystem:jx,registerLayout:Qx,registerVisual:zr,registerTransform:eb,registerLoading:Zp,registerMap:Jx,registerImpl:Ax,PRIORITY:Wx,ComponentModel:ie,ComponentView:Ue,SeriesModel:Ne,ChartView:Re,registerComponentModel:function(r){ie.registerClass(r)},registerComponentView:function(r){Ue.registerClass(r)},registerSeriesModel:function(r){Ne.registerClass(r)},registerChartView:function(r){Re.registerClass(r)},registerCustomSeries:function(r,e){Ix(r,e)},registerSubTypeDefaulter:function(r,e){ie.registerSubTypeDefaulter(r,e)},registerPainter:function(r,e){sm(r,e)}};function ot(r){if(N(r)){T(r,function(e){ot(e)});return}fe(Vc,r)>=0||(Vc.push(r),Q(r)&&(r={install:r}),r.install(tw))}var rw=ne(),on=ne(),pt={estimate:1,determine:2};function Qi(r){return{out:{noPxChangeTryDetermine:[]},kind:r}}function dg(r,e){var t=X(e,function(a){return r.scale.parse(a)});return r.type==="time"&&t.length>0&&(t.sort(),t.unshift(t[0]),t.push(t[t.length-1])),t}function aw(r,e){var t=r.getLabelModel().get("customValues");if(t){var a=Wn(r),n=r.scale.getExtent(),i=dg(r,t),o=Ce(i,function(s){return s>=n[0]&&s<=n[1]});return{labels:X(o,function(s){var l={value:s};return{formattedLabel:a(l),rawLabel:r.scale.getLabel(l),tickValue:s,time:void 0,break:void 0}})}}return r.type==="category"?iw(r,e):sw(r)}function nw(r,e,t){var a=r.getTickModel().get("customValues");if(a){var n=r.scale.getExtent(),i=dg(r,a);return{ticks:Ce(i,function(o){return o>=n[0]&&o<=n[1]})}}return r.type==="category"?ow(r,e):{ticks:X(r.scale.getTicks(t),function(o){return o.value})}}function iw(r,e){var t=r.getLabelModel(),a=pg(r,t,e);return!t.get("show")||r.scale.isBlank()?{labels:[]}:a}function pg(r,e,t){var a=uw(r),n=Nu(e),i=t.kind===pt.estimate;if(!i){var o=yg(a,n);if(o)return o}var s,l;Q(n)?s=Sg(r,n):(l=n==="auto"?fw(r,t):n,s=_g(r,l));var u={labels:s,labelCategoryInterval:l};return i?t.out.noPxChangeTryDetermine.push(function(){return Sl(a,n,u),!0}):Sl(a,n,u),u}function ow(r,e){var t=lw(r),a=Nu(e),n=yg(t,a);if(n)return n;var i,o;if((!e.get("show")||r.scale.isBlank())&&(i=[]),Q(a))i=Sg(r,a,!0);else if(a==="auto"){var s=pg(r,r.getLabelModel(),Qi(pt.determine));o=s.labelCategoryInterval,i=X(s.labels,function(l){return l.tickValue})}else o=a,i=_g(r,o,!0);return Sl(t,a,{ticks:i,tickCategoryInterval:o})}function sw(r){var e=r.scale.getTicks(),t=Wn(r);return{labels:X(e,function(a,n){return{formattedLabel:t(a,n),rawLabel:r.scale.getLabel(a),tickValue:a.value,time:a.time,break:a.break}})}}var lw=gg("axisTick"),uw=gg("axisLabel");function gg(r){return function(t){return on(t)[r]||(on(t)[r]={list:[]})}}function yg(r,e){for(var t=0;t<r.list.length;t++)if(r.list[t].key===e)return r.list[t].value}function Sl(r,e,t){return r.list.push({key:e,value:t}),t}function fw(r,e){if(e.kind===pt.estimate){var t=r.calculateCategoryInterval(e);return e.out.noPxChangeTryDetermine.push(function(){return on(r).autoInterval=t,!0}),t}var a=on(r).autoInterval;return a??(on(r).autoInterval=r.calculateCategoryInterval(e))}function cw(r,e){var t=e.kind,a=hw(r),n=Wn(r),i=(a.axisRotate-a.labelRotate)/180*Math.PI,o=r.scale,s=o.getExtent(),l=o.count();if(s[1]-s[0]<1)return 0;var u=1,f=40;l>f&&(u=Math.max(1,Math.floor(l/f)));for(var c=s[0],h=r.dataToCoord(c+1)-r.dataToCoord(c),v=Math.abs(h*Math.cos(i)),d=Math.abs(h*Math.sin(i)),p=0,y=0;c<=s[1];c+=u){var g=0,m=0,_=Hh(n({value:c}),a.font,"center","top");g=_.width*1.3,m=_.height*1.3,p=Math.max(p,g,7),y=Math.max(y,m,7)}var S=p/v,b=y/d;isNaN(S)&&(S=1/0),isNaN(b)&&(b=1/0);var x=Math.max(0,Math.floor(Math.min(S,b)));if(t===pt.estimate)return e.out.noPxChangeTryDetermine.push($(vw,null,r,x,l)),x;var w=mg(r,x,l);return w??x}function vw(r,e,t){return mg(r,e,t)==null}function mg(r,e,t){var a=rw(r.model),n=r.getExtent(),i=a.lastAutoInterval,o=a.lastTickCount;if(i!=null&&o!=null&&Math.abs(i-e)<=1&&Math.abs(o-t)<=1&&i>e&&a.axisExtent0===n[0]&&a.axisExtent1===n[1])return i;a.lastTickCount=t,a.lastAutoInterval=e,a.axisExtent0=n[0],a.axisExtent1=n[1]}function hw(r){var e=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function _g(r,e,t){var a=Wn(r),n=r.scale,i=n.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=i[0],f=n.count();u!==0&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var c=cg(r),h=o.get("showMinLabel")||c,v=o.get("showMaxLabel")||c;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(y){var g={value:y};s.push(t?y:{formattedLabel:a(g),rawLabel:n.getLabel(g),tickValue:y,time:void 0,break:void 0})}return s}function Sg(r,e,t){var a=r.scale,n=Wn(r),i=[];return T(a.getTicks(),function(o){var s=a.getLabel(o),l=o.value;e(o.value,s)&&i.push(t?l:{formattedLabel:n(o),rawLabel:s,tickValue:l,time:void 0,break:void 0})}),i}var zc=[0,1],xg=(function(){function r(e,t,a){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=a||[0,0]}return r.prototype.contain=function(e){var t=this._extent,a=Math.min(t[0],t[1]),n=Math.max(t[0],t[1]);return e>=a&&e<=n},r.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(e){return Lm(e||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(e,t){var a=this._extent;a[0]=e,a[1]=t},r.prototype.dataToCoord=function(e,t){var a=this._extent,n=this.scale;return e=n.normalize(n.parse(e)),this.onBand&&n.type==="ordinal"&&(a=a.slice(),Gc(a,n.count())),it(e,zc,a,t)},r.prototype.coordToData=function(e,t){var a=this._extent,n=this.scale;this.onBand&&n.type==="ordinal"&&(a=a.slice(),Gc(a,n.count()));var i=it(e,a,zc,t);return this.scale.scale(i)},r.prototype.pointToData=function(e,t){},r.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),a=nw(this,t,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}),n=a.ticks,i=X(n,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=t.get("alignWithLabel");return dw(this,i,o,e.clamp),i},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var a=this.scale.getMinorTicks(t),n=X(a,function(i){return X(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return n},r.prototype.getViewLabels=function(e){return e=e||Qi(pt.determine),aw(this,e).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),a=t[1]-t[0]+(this.onBand?1:0);a===0&&(a=1);var n=Math.abs(e[1]-e[0]);return Math.abs(n)/a},r.prototype.calculateCategoryInterval=function(e){return e=e||Qi(pt.determine),cw(this,e)},r})();function Gc(r,e){var t=r[1]-r[0],a=e,n=t/a/2;r[0]+=n,r[1]-=n}function dw(r,e,t,a){var n=e.length;if(!r.onBand||t||!n)return;var i=r.getExtent(),o,s;if(n===1)e[0].coord=i[0],e[0].onBand=!0,o=e[1]={coord:i[1],tickValue:e[0].tickValue,onBand:!0};else{var l=e[n-1].tickValue-e[0].tickValue,u=(e[n-1].coord-e[0].coord)/l;T(e,function(v){v.coord-=u/2,v.onBand=!0});var f=r.scale.getExtent();s=1+f[1]-e[n-1].tickValue,o={coord:e[n-1].coord+u*s,tickValue:f[1]+1,onBand:!0},e.push(o)}var c=i[0]>i[1];h(e[0].coord,i[0])&&(a?e[0].coord=i[0]:e.shift()),a&&h(i[0],e[0].coord)&&e.unshift({coord:i[0],onBand:!0}),h(i[1],o.coord)&&(a?o.coord=i[1]:e.pop()),a&&h(o.coord,i[1])&&e.push({coord:i[1],onBand:!0});function h(v,d){return v=ke(v),d=ke(d),c?v>d:v<d}}function UD(r){var e=Ne.extend(r);return Ne.registerClass(e),e}function YD(r){var e=Re.extend(r);return Re.registerClass(e),e}var Na=Math.PI*2,_r=Wh.CMD,pw=["top","right","bottom","left"];function gw(r,e,t,a,n){var i=t.width,o=t.height;switch(r){case"top":a.set(t.x+i/2,t.y-e),n.set(0,-1);break;case"bottom":a.set(t.x+i/2,t.y+o+e),n.set(0,1);break;case"left":a.set(t.x-e,t.y+o/2),n.set(-1,0);break;case"right":a.set(t.x+i+e,t.y+o/2),n.set(1,0);break}}function yw(r,e,t,a,n,i,o,s,l){o-=r,s-=e;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var f=o*t+r,c=s*t+e;if(Math.abs(a-n)%Na<1e-4)return l[0]=f,l[1]=c,u-t;if(i){var h=a;a=Ya(n),n=Ya(h)}else a=Ya(a),n=Ya(n);a>n&&(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]=f,l[1]=c,u-t;var d=t*Math.cos(a)+r,p=t*Math.sin(a)+e,y=t*Math.cos(n)+r,g=t*Math.sin(n)+e,m=(d-o)*(d-o)+(p-s)*(p-s),_=(y-o)*(y-o)+(g-s)*(g-s);return m<_?(l[0]=d,l[1]=p,Math.sqrt(m)):(l[0]=y,l[1]=g,Math.sqrt(_))}function Ji(r,e,t,a,n,i,o,s){var l=n-r,u=i-e,f=t-r,c=a-e,h=Math.sqrt(f*f+c*c);f/=h,c/=h;var v=l*f+u*c,d=v/h;s&&(d=Math.min(Math.max(d,0),1)),d*=h;var p=o[0]=r+d*f,y=o[1]=e+d*c;return Math.sqrt((p-n)*(p-n)+(y-i)*(y-i))}function bg(r,e,t,a,n,i,o){t<0&&(r=r+t,t=-t),a<0&&(e=e+a,a=-a);var s=r+t,l=e+a,u=o[0]=Math.min(Math.max(n,r),s),f=o[1]=Math.min(Math.max(i,e),l);return Math.sqrt((u-n)*(u-n)+(f-i)*(f-i))}var ft=[];function mw(r,e,t){var a=bg(e.x,e.y,e.width,e.height,r.x,r.y,ft);return t.set(ft[0],ft[1]),a}function _w(r,e,t){for(var a=0,n=0,i=0,o=0,s,l,u=1/0,f=e.data,c=r.x,h=r.y,v=0;v<f.length;){var d=f[v++];v===1&&(a=f[v],n=f[v+1],i=a,o=n);var p=u;switch(d){case _r.M:i=f[v++],o=f[v++],a=i,n=o;break;case _r.L:p=Ji(a,n,f[v],f[v+1],c,h,ft,!0),a=f[v++],n=f[v++];break;case _r.C:p=um(a,n,f[v++],f[v++],f[v++],f[v++],f[v],f[v+1],c,h,ft),a=f[v++],n=f[v++];break;case _r.Q:p=lm(a,n,f[v++],f[v++],f[v],f[v+1],c,h,ft),a=f[v++],n=f[v++];break;case _r.A:var y=f[v++],g=f[v++],m=f[v++],_=f[v++],S=f[v++],b=f[v++];v+=1;var x=!!(1-f[v++]);s=Math.cos(S)*m+y,l=Math.sin(S)*_+g,v<=1&&(i=s,o=l);var w=(c-y)*_/m+y;p=yw(y,g,_,S,S+b,x,w,h,ft),a=Math.cos(S+b)*m+y,n=Math.sin(S+b)*_+g;break;case _r.R:i=a=f[v++],o=n=f[v++];var D=f[v++],M=f[v++];p=bg(i,o,D,M,c,h,ft);break;case _r.Z:p=Ji(a,n,i,o,c,h,ft,!0),a=i,n=o;break}p<u&&(u=p,t.set(ft[0],ft[1]))}return u}var ct=new ge,se=new ge,_e=new ge,Tt=new ge,xt=new ge;function Fc(r,e){if(r){var t=r.getTextGuideLine(),a=r.getTextContent();if(a&&t){var n=r.textGuideLineConfig||{},i=[[0,0],[0,0],[0,0]],o=n.candidates||pw,s=a.getBoundingRect().clone();s.applyTransform(a.getComputedTransform());var l=1/0,u=n.anchor,f=r.getComputedTransform(),c=f&&En([],f),h=e.get("length2")||0;u&&_e.copy(u);for(var v=0;v<o.length;v++){var d=o[v];gw(d,0,s,ct,Tt),ge.scaleAndAdd(se,ct,Tt,h),se.transform(c);var p=r.getBoundingRect(),y=u?u.distance(se):r instanceof Be?_w(se,r.path,_e):mw(se,p,_e);y<l&&(l=y,se.transform(f),_e.transform(f),_e.toArray(i[0]),se.toArray(i[1]),ct.toArray(i[2]))}wg(i,e.get("minTurnAngle")),t.setShape({points:i})}}}var eo=[],We=new ge;function wg(r,e){if(e<=180&&e>0){e=e/180*Math.PI,ct.fromArray(r[0]),se.fromArray(r[1]),_e.fromArray(r[2]),ge.sub(Tt,ct,se),ge.sub(xt,_e,se);var t=Tt.len(),a=xt.len();if(!(t<.001||a<.001)){Tt.scale(1/t),xt.scale(1/a);var n=Tt.dot(xt),i=Math.cos(e);if(i<n){var o=Ji(se.x,se.y,_e.x,_e.y,ct.x,ct.y,eo,!1);We.fromArray(eo),We.scaleAndAdd(xt,o/Math.tan(Math.PI-e));var s=_e.x!==se.x?(We.x-se.x)/(_e.x-se.x):(We.y-se.y)/(_e.y-se.y);if(isNaN(s))return;s<0?ge.copy(We,se):s>1&&ge.copy(We,_e),We.toArray(r[1])}}}}function Sw(r,e,t){if(t<=180&&t>0){t=t/180*Math.PI,ct.fromArray(r[0]),se.fromArray(r[1]),_e.fromArray(r[2]),ge.sub(Tt,se,ct),ge.sub(xt,_e,se);var a=Tt.len(),n=xt.len();if(!(a<.001||n<.001)){Tt.scale(1/a),xt.scale(1/n);var i=Tt.dot(e),o=Math.cos(t);if(i<o){var s=Ji(se.x,se.y,_e.x,_e.y,ct.x,ct.y,eo,!1);We.fromArray(eo);var l=Math.PI/2,u=Math.acos(xt.dot(e)),f=l+u-t;if(f>=l)ge.copy(We,_e);else{We.scaleAndAdd(xt,s/Math.tan(Math.PI/2-f));var c=_e.x!==se.x?(We.x-se.x)/(_e.x-se.x):(We.y-se.y)/(_e.y-se.y);if(isNaN(c))return;c<0?ge.copy(We,se):c>1&&ge.copy(We,_e)}We.toArray(r[1])}}}}function as(r,e,t,a){var n=t==="normal",i=n?r:r.ensureState(t);i.ignore=e;var o=a.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=a.getModel("lineStyle").getLineStyle();n?r.useStyle(s):i.style=s}function xw(r,e){var t=e.smooth,a=e.points;if(a)if(r.moveTo(a[0][0],a[0][1]),t>0&&a.length>=3){var n=of(a[0],a[1]),i=of(a[1],a[2]);if(!n||!i){r.lineTo(a[1][0],a[1][1]),r.lineTo(a[2][0],a[2][1]);return}var o=Math.min(n,i)*t,s=ko([],a[1],a[0],o/n),l=ko([],a[1],a[2],o/i),u=ko([],s,l,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),r.bezierCurveTo(l[0],l[1],l[0],l[1],a[2][0],a[2][1])}else for(var f=1;f<a.length;f++)r.lineTo(a[f][0],a[f][1])}function Tg(r,e,t){var a=r.getTextGuideLine(),n=r.getTextContent();if(!n){a&&r.removeTextGuideLine();return}for(var i=e.normal,o=i.get("show"),s=n.ignore,l=0;l<Vi.length;l++){var u=Vi[l],f=e[u],c=u==="normal";if(f){var h=f.get("show"),v=c?s:j(n.states[u]&&n.states[u].ignore,s);if(v||!j(h,o)){var d=c?a:a&&a.states[u];d&&(d.ignore=!0),a&&as(a,!0,u,f);continue}a||(a=new Pr,r.setTextGuideLine(a),!c&&(s||!o)&&as(a,!0,"normal",e.normal),r.stateProxy&&(a.stateProxy=r.stateProxy)),as(a,!1,u,f)}}if(a){ae(a.style,t),a.style.fill=null;var p=i.get("showAbove"),y=r.textGuideLineConfig=r.textGuideLineConfig||{};y.showAbove=p||!1,a.buildPath=xw}}function Cg(r,e){e=e||"labelLine";for(var t={normal:r.getModel(e)},a=0;a<Xe.length;a++){var n=Xe[a];t[n]=r.getModel([n,e])}return t}var Hc=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],bw=1,to=2,Mg=bw|to;function ro(r,e,t){t=t||Mg,e?r.dirty|=t:r.dirty&=~t}function Dg(r,e){return e=e||Mg,r.dirty==null||!!(r.dirty&e)}function sr(r){if(r)return Dg(r)&&Ag(r,r.label,r),r}function Ag(r,e,t){var a=e.getComputedTransform();r.transform=ou(r.transform,a);var n=r.localRect=_n(r.localRect,e.getBoundingRect()),i=e.style,o=i.margin,s=t&&t.marginForce,l=t&&t.minMarginForce,u=t&&t.marginDefault,f=i.__marginType;f==null&&u&&(o=u,f=ia.textMargin);for(var c=0;c<4;c++)ns[c]=f===ia.minMargin&&l&&l[c]!=null?l[c]:s&&s[c]!=null?s[c]:o?o[c]:0;f===ia.textMargin&&mn(n,ns,!1,!1);var h=r.rect=_n(r.rect,n);return a&&h.applyTransform(a),f===ia.minMargin&&mn(h,ns,!1,!1),r.axisAligned=iu(a),(r.label=r.label||{}).ignore=e.ignore,ro(r,!1),ro(r,!0,to),r}var ns=[0,0,0,0];function ww(r,e,t){return r.transform=ou(r.transform,t),r.localRect=_n(r.localRect,e),r.rect=_n(r.rect,e),t&&r.rect.applyTransform(t),r.axisAligned=iu(t),r.obb=void 0,(r.label=r.label||{}).ignore=!1,r}function Tw(r,e){if(r){r.label.x+=e.x,r.label.y+=e.y,r.label.markRedraw();var t=r.transform;t&&(t[4]+=e.x,t[5]+=e.y);var a=r.rect;a&&(a.x+=e.x,a.y+=e.y);var n=r.obb;n&&n.fromBoundingRect(r.localRect,t)}}function xl(r,e){for(var t=0;t<Hc.length;t++){var a=Hc[t];r[a]==null&&(r[a]=e[a])}return sr(r)}function Wc(r){var e=r.obb;return(!e||Dg(r,to))&&(r.obb=e=e||new Gh,e.fromBoundingRect(r.localRect,r.transform),ro(r,!1,to)),e}function bl(r,e,t,a,n){var i=r.length,o=Jt[e],s=pa[e];if(i<2)return!1;r.sort(function(w,D){return w.rect[o]-D.rect[o]});for(var l=0,u,f=!1,c=0;c<i;c++){var h=r[c],v=h.rect;u=v[o]-l,u<0&&(v[o]-=u,h.label[o]-=u,f=!0),l=v[o]+v[s]}var d=r[0],p=r[i-1],y,g;m(),y<0&&b(-y,.8),g<0&&b(g,.8),m(),_(y,g,1),_(g,y,-1),m(),y<0&&x(-y),g<0&&x(g);function m(){y=d.rect[o]-t,g=a-p.rect[o]-p.rect[s]}function _(w,D,M){if(w<0){var A=Math.min(D,-w);if(A>0){S(A*M,0,i);var C=A+w;C<0&&b(-C*M,1)}else b(-w*M,1)}}function S(w,D,M){w!==0&&(f=!0);for(var A=D;A<M;A++){var C=r[A],I=C.rect;I[o]+=w,C.label[o]+=w}}function b(w,D){for(var M=[],A=0,C=1;C<i;C++){var I=r[C-1].rect,L=Math.max(r[C].rect[o]-I[o]-I[s],0);M.push(L),A+=L}if(A){var E=Math.min(Math.abs(w)/A,D);if(w>0)for(var C=0;C<i-1;C++){var k=M[C]*E;S(k,0,C+1)}else for(var C=i-1;C>0;C--){var k=M[C-1]*E;S(-k,C,i)}}}function x(w){var D=w<0?-1:1;w=Math.abs(w);for(var M=Math.ceil(w/(i-1)),A=0;A<i-1;A++)if(D>0?S(M,0,A+1):S(-M,i-A-1,i),w-=M,w<=0)return}return f}function Cw(r){for(var e=0;e<r.length;e++){var t=r[e],a=t.defaultAttr,n=t.labelLine;t.label.attr("ignore",a.ignore),n&&n.attr("ignore",a.labelGuideIgnore)}}function Lg(r){var e=[];r.sort(function(u,f){return(f.suggestIgnore?1:0)-(u.suggestIgnore?1:0)||f.priority-u.priority});function t(u){if(!u.ignore){var f=u.ensureState("emphasis");f.ignore==null&&(f.ignore=!1)}u.ignore=!0}for(var a=0;a<r.length;a++){var n=sr(r[a]);if(!n.label.ignore){for(var i=n.label,o=n.labelLine,s=!1,l=0;l<e.length;l++)if(Bu(n,e[l],null,{touchThreshold:.05})){s=!0;break}s?(t(i),o&&t(o)):e.push(n)}}}function Bu(r,e,t,a){return!r||!e||r.label&&r.label.ignore||e.label&&e.label.ignore||!r.rect.intersect(e.rect,t,a)?!1:r.axisAligned&&e.axisAligned?!0:Wc(r).intersect(Wc(e),t,a)}function Mw(r){if(r){for(var e=[],t=0;t<r.length;t++)e.push(r[t].slice());return e}}function Dw(r,e){var t=r.label,a=e&&e.getTextGuideLine();return{dataIndex:r.dataIndex,dataType:r.dataType,seriesIndex:r.seriesModel.seriesIndex,text:r.label.style.text,rect:r.hostRect,labelRect:r.rect,align:t.style.align,verticalAlign:t.style.verticalAlign,labelLinePoints:Mw(a&&a.shape.points)}}var Uc=["align","verticalAlign","width","height","fontSize"],Fe=new aa,is=ne(),Aw=ne();function ui(r,e,t){for(var a=0;a<t.length;a++){var n=t[a];e[n]!=null&&(r[n]=e[n])}}var fi=["x","y","rotation"],Lw=(function(){function r(){this._labelList=[],this._chartViewList=[]}return r.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},r.prototype._addLabel=function(e,t,a,n,i){var o=n.style,s=n.__hostTarget,l=s.textConfig||{},u=n.getComputedTransform(),f=n.getBoundingRect().plain();Me.applyTransform(f,f,u),u?Fe.setLocalTransform(u):(Fe.x=Fe.y=Fe.rotation=Fe.originX=Fe.originY=0,Fe.scaleX=Fe.scaleY=1),Fe.rotation=Ya(Fe.rotation);var c=n.__hostTarget,h;if(c){h=c.getBoundingRect().plain();var v=c.getComputedTransform();Me.applyTransform(h,h,v)}var d=h&&c.getTextGuideLine();this._labelList.push({label:n,labelLine:d,seriesModel:a,dataIndex:e,dataType:t,layoutOptionOrCb:i,layoutOption:null,rect:f,hostRect:h,priority:h?h.width*h.height:0,defaultAttr:{ignore:n.ignore,labelGuideIgnore:d&&d.ignore,x:Fe.x,y:Fe.y,scaleX:Fe.scaleX,scaleY:Fe.scaleY,rotation:Fe.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:n.cursor,attachedPos:l.position,attachedRot:l.rotation}})},r.prototype.addLabelsOfSeries=function(e){var t=this;this._chartViewList.push(e);var a=e.__model,n=a.get("labelLayout");(Q(n)||Le(n).length)&&e.group.traverse(function(i){if(i.ignore)return!0;var o=i.getTextContent(),s=te(i);o&&!o.disableLabelLayout&&t._addLabel(s.dataIndex,s.dataType,a,o,n)})},r.prototype.updateLayoutConfig=function(e){var t=e.getWidth(),a=e.getHeight();function n(_,S){return function(){Fc(_,S)}}for(var i=0;i<this._labelList.length;i++){var o=this._labelList[i],s=o.label,l=s.__hostTarget,u=o.defaultAttr,f=void 0;Q(o.layoutOptionOrCb)?f=o.layoutOptionOrCb(Dw(o,l)):f=o.layoutOptionOrCb,f=f||{},o.layoutOption=f;var c=Math.PI/180;l&&l.setTextConfig({local:!1,position:f.x!=null||f.y!=null?null:u.attachedPos,rotation:f.rotate!=null?f.rotate*c:u.attachedRot,offset:[f.dx||0,f.dy||0]});var h=!1;if(f.x!=null?(s.x=re(f.x,t),s.setStyle("x",0),h=!0):(s.x=u.x,s.setStyle("x",u.style.x)),f.y!=null?(s.y=re(f.y,a),s.setStyle("y",0),h=!0):(s.y=u.y,s.setStyle("y",u.style.y)),f.labelLinePoints){var v=l.getTextGuideLine();v&&(v.setShape({points:f.labelLinePoints}),h=!1)}var d=is(s);d.needsUpdateLabelLine=h,s.rotation=f.rotate!=null?f.rotate*c:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var p=0;p<Uc.length;p++){var y=Uc[p];s.setStyle(y,f[y]!=null?f[y]:u.style[y])}if(f.draggable){if(s.draggable=!0,s.cursor="move",l){var g=o.seriesModel;if(o.dataIndex!=null){var m=o.seriesModel.getData(o.dataType);g=m.getItemModel(o.dataIndex)}s.on("drag",n(l,g.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},r.prototype.layout=function(e){var t=e.getWidth(),a=e.getHeight(),n=[];T(this._labelList,function(l){l.defaultAttr.ignore||n.push(xl({},l))});var i=Ce(n,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=Ce(n,function(l){return l.layoutOption.moveOverlap==="shiftY"});bl(i,0,0,t),bl(o,1,0,a);var s=Ce(n,function(l){return l.layoutOption.hideOverlap});Cw(s),Lg(s)},r.prototype.processLabelsOverall=function(){var e=this;T(this._chartViewList,function(t){var a=t.__model,n=t.ignoreLabelLineUpdate,i=a.isAnimationEnabled();t.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!n,l=o.getTextContent();!s&&l&&(s=is(l).needsUpdateLabelLine),s&&e._updateLabelLine(o,a),i&&e._animateLabels(o,a)})})},r.prototype._updateLabelLine=function(e,t){var a=e.getTextContent(),n=te(e),i=n.dataIndex;if(a&&i!=null){var o=t.getData(n.dataType),s=o.getItemModel(i),l={},u=o.getItemVisual(i,"style");if(u){var f=o.getVisual("drawType");l.stroke=u[f]}var c=s.getModel("labelLine");Tg(e,Cg(s),l),Fc(e,c)}},r.prototype._animateLabels=function(e,t){var a=e.getTextContent(),n=e.getTextGuideLine();if(a&&(e.forceLabelAnimation||!a.ignore&&!a.invisible&&!e.disableLabelAnimation&&!la(e))){var i=is(a),o=i.oldLayout,s=te(e),l=s.dataIndex,u={x:a.x,y:a.y,rotation:a.rotation},f=t.getData(s.dataType);if(o){a.attr(o);var h=e.prevStates;h&&(fe(h,"select")>=0&&a.attr(i.oldLayoutSelect),fe(h,"emphasis")>=0&&a.attr(i.oldLayoutEmphasis)),Se(a,u,t,l)}else if(a.attr(u),!xa(a).valueAnimation){var c=j(a.style.opacity,1);a.style.opacity=0,Pe(a,{style:{opacity:c}},t,l)}if(i.oldLayout=u,a.states.select){var v=i.oldLayoutSelect={};ui(v,u,fi),ui(v,a.states.select,fi)}if(a.states.emphasis){var d=i.oldLayoutEmphasis={};ui(d,u,fi),ui(d,a.states.emphasis,fi)}Y0(a,l,f,t,t)}if(n&&!n.ignore&&!n.invisible){var i=Aw(n),o=i.oldLayout,p={points:n.shape.points};o?(n.attr({shape:o}),Se(n,{shape:p},t)):(n.setShape(p),n.style.strokePercent=0,Pe(n,{style:{strokePercent:1}},t)),i.oldLayout=p}},r})(),os=ne();function Iw(r){r.registerUpdateLifecycle("series:beforeupdate",function(e,t,a){var n=os(t).labelManager;n||(n=os(t).labelManager=new Lw),n.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(e,t,a){var n=os(t).labelManager;a.updatedSeries.forEach(function(i){n.addLabelsOfSeries(t.getViewOfSeriesModel(i))}),n.updateLayoutConfig(t),n.layout(t),n.processLabelsOverall()})}function kw(r){r.registerPainter("canvas",fm)}var Pw=(function(r){U(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t){return wa(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var a=new le,n=dt("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);a.add(n),n.setStyle(t.lineStyle);var i=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=i==="none"?"circle":i,l=t.itemHeight*.8,u=dt(s,(t.itemWidth-l)/2,(t.itemHeight-l)/2,l,l,t.itemStyle.fill);a.add(u),u.setStyle(t.itemStyle);var f=t.iconRotate==="inherit"?o:t.iconRotate||0;return u.rotation=f*Math.PI/180,u.setOrigin([t.itemWidth/2,t.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill=B.color.neutral00,u.style.lineWidth=2),a},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:6,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e})(Ne);function Dn(r,e){var t=r.mapDimensionsAll("defaultedLabel"),a=t.length;if(a===1){var n=ga(r,e,t[0]);return n!=null?n+"":null}else if(a){for(var i=[],o=0;o<t.length;o++)i.push(ga(r,e,t[o]));return i.join(" ")}}function Ig(r,e){var t=r.mapDimensionsAll("defaultedLabel");if(!N(e))return e+"";for(var a=[],n=0;n<t.length;n++){var i=r.getDimensionIndex(t[n]);i>=0&&a.push(e[i])}return a.join(" ")}var Vu=(function(r){U(e,r);function e(t,a,n,i){var o=r.call(this)||this;return o.updateData(t,a,n,i),o}return e.prototype._createSymbol=function(t,a,n,i,o,s){this.removeAll();var l=dt(t,-1,-1,2,2,null,s);l.attr({z2:j(o,100),culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),l.drift=Rw,this._symbolType=t,this.add(l)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){hn(this.childAt(0))},e.prototype.downplay=function(){dn(this.childAt(0))},e.prototype.setZ=function(t,a){var n=this.childAt(0);n.zlevel=t,n.z=a},e.prototype.setDraggable=function(t,a){var n=this.childAt(0);n.draggable=t,n.cursor=!a&&t?"move":n.cursor},e.prototype.updateData=function(t,a,n,i){this.silent=!1;var o=t.getItemVisual(a,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,a),u=e.getSymbolZ2(t,a),f=o!==this._symbolType,c=i&&i.disableAnimation;if(f){var h=t.getItemVisual(a,"symbolKeepAspect");this._createSymbol(o,t,a,l,u,h)}else{var v=this.childAt(0);v.silent=!1;var d={scaleX:l[0]/2,scaleY:l[1]/2};c?v.attr(d):Se(v,d,s,a),pn(v)}if(this._updateCommon(t,a,l,n,i),f){var v=this.childAt(0);if(!c){var d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:v.style.opacity}};v.scaleX=v.scaleY=0,v.style.opacity=0,Pe(v,d,s,a)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,a,n,i,o){var s=this.childAt(0),l=t.hostModel,u,f,c,h,v,d,p,y,g;if(i&&(u=i.emphasisItemStyle,f=i.blurItemStyle,c=i.selectItemStyle,h=i.focus,v=i.blurScope,p=i.labelStatesModels,y=i.hoverScale,g=i.cursorStyle,d=i.emphasisDisabled),!i||t.hasItemOption){var m=i&&i.itemModel?i.itemModel:t.getItemModel(a),_=m.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),c=m.getModel(["select","itemStyle"]).getItemStyle(),f=m.getModel(["blur","itemStyle"]).getItemStyle(),h=_.get("focus"),v=_.get("blurScope"),d=_.get("disabled"),p=Mt(m),y=_.getShallow("scale"),g=m.getShallow("cursor")}var S=t.getItemVisual(a,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var b=wo(t.getItemVisual(a,"symbolOffset"),n);b&&(s.x=b[0],s.y=b[1]),g&&s.attr("cursor",g);var x=t.getItemVisual(a,"style"),w=x.fill;if(s instanceof Gt){var D=s.style;s.useStyle(F({image:D.image,x:D.x,y:D.y,width:D.width,height:D.height},x))}else s.__isEmptyBrush?s.useStyle(F({},x)):s.useStyle(x),s.style.decal=null,s.setColor(w,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var M=t.getItemVisual(a,"liftZ"),A=this._z2;M!=null?A==null&&(this._z2=s.z2,s.z2+=M):A!=null&&(s.z2=A,this._z2=null);var C=o&&o.useNameLabel;ur(s,p,{labelFetcher:l,labelDataIndex:a,defaultText:I,inheritColor:w,defaultOpacity:x.opacity});function I(k){return C?t.getName(k):Dn(t,k)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var L=s.ensureState("emphasis");L.style=u,s.ensureState("select").style=c,s.ensureState("blur").style=f;var E=y==null||y===!0?Math.max(1.1,3/this._sizeY):isFinite(y)&&y>0?+y:1;L.scaleX=this._sizeX*E,L.scaleY=this._sizeY*E,this.setSymbolScale(1),Vt(this,h,v,d)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,a,n){var i=this.childAt(0),o=te(this).dataIndex,s=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var l=i.getTextContent();l&&Fi(l,{style:{opacity:0}},a,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Fi(i,{style:{opacity:0},scaleX:0,scaleY:0},a,{dataIndex:o,cb:t,removeOpt:s})},e.getSymbolSize=function(t,a){return bo(t.getItemVisual(a,"symbolSize"))},e.getSymbolZ2=function(t,a){return t.getItemVisual(a,"z2")},e})(le);function Rw(r,e){this.parent.drift(r,e)}function ss(r,e,t,a){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(a.isIgnore&&a.isIgnore(t))&&!(a.clipShape&&!a.clipShape.contain(e[0],e[1]))&&r.getItemVisual(t,"symbol")!=="none"}function Yc(r){return r!=null&&!K(r)&&(r={isIgnore:r}),r||{}}function Xc(r){var e=r.hostModel,t=e.getModel("emphasis");return{emphasisItemStyle:t.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:t.get("focus"),blurScope:t.get("blurScope"),emphasisDisabled:t.get("disabled"),hoverScale:t.get("scale"),labelStatesModels:Mt(e),cursorStyle:e.get("cursor")}}var kg=(function(){function r(e){this.group=new le,this._SymbolCtor=e||Vu}return r.prototype.updateData=function(e,t){this._progressiveEls=null,t=Yc(t);var a=this.group,n=e.hostModel,i=this._data,o=this._SymbolCtor,s=t.disableAnimation,l=Xc(e),u={disableAnimation:s},f=t.getSymbolPoint||function(c){return e.getItemLayout(c)};i||a.removeAll(),e.diff(i).add(function(c){var h=f(c);if(ss(e,h,c,t)){var v=new o(e,c,l,u);v.setPosition(h),e.setItemGraphicEl(c,v),a.add(v)}}).update(function(c,h){var v=i.getItemGraphicEl(h),d=f(c);if(!ss(e,d,c,t)){a.remove(v);return}var p=e.getItemVisual(c,"symbol")||"circle",y=v&&v.getSymbolType&&v.getSymbolType();if(!v||y&&y!==p)a.remove(v),v=new o(e,c,l,u),v.setPosition(d);else{v.updateData(e,c,l,u);var g={x:d[0],y:d[1]};s?v.attr(g):Se(v,g,n)}a.add(v),e.setItemGraphicEl(c,v)}).remove(function(c){var h=i.getItemGraphicEl(c);h&&h.fadeOut(function(){a.remove(h)},n)}).execute(),this._getSymbolPoint=f,this._data=e},r.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(a,n){var i=e._getSymbolPoint(n);a.setPosition(i),a.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=Xc(e),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t,a){this._progressiveEls=[],a=Yc(a);function n(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=e.start;i<e.end;i++){var o=t.getItemLayout(i);if(ss(t,o,i,a)){var s=new this._SymbolCtor(t,i,this._seriesScope);s.traverse(n),s.setPosition(o),this.group.add(s),t.setItemGraphicEl(i,s),this._progressiveEls.push(s)}}},r.prototype.eachRendered=function(e){Or(this._progressiveEls||this.group,e)},r.prototype.remove=function(e){var t=this.group,a=this._data;a&&e?a.eachItemGraphicEl(function(n){n.fadeOut(function(){t.remove(n)},a.hostModel)}):t.removeAll()},r})();function Pg(r,e,t){var a=r.getBaseAxis(),n=r.getOtherAxis(a),i=Ew(n,t),o=a.dim,s=n.dim,l=e.mapDimension(s),u=e.mapDimension(o),f=s==="x"||s==="radius"?1:0,c=X(r.dimensions,function(d){return e.mapDimension(d)}),h=!1,v=e.getCalculationInfo("stackResultDimension");return ya(e,c[0])&&(h=!0,c[0]=v),ya(e,c[1])&&(h=!0,c[1]=v),{dataDimsForPoint:c,valueStart:i,valueAxisDim:s,baseAxisDim:o,stacked:!!h,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function Ew(r,e){var t=0,a=r.scale.getExtent();return e==="start"?t=a[0]:e==="end"?t=a[1]:oe(e)&&!isNaN(e)?t=e:a[0]>0?t=a[0]:a[1]<0&&(t=a[1]),t}function Rg(r,e,t,a){var n=NaN;r.stacked&&(n=t.get(t.getCalculationInfo("stackedOverDimension"),a)),isNaN(n)&&(n=r.valueStart);var i=r.baseDataOffset,o=[];return o[i]=t.get(r.baseDim,a),o[1-i]=n,e.dataToPoint(o)}function Ow(r,e){var t=[];return e.diff(r).add(function(a){t.push({cmd:"+",idx:a})}).update(function(a,n){t.push({cmd:"=",idx:n,idx1:a})}).remove(function(a){t.push({cmd:"-",idx:a})}).execute(),t}function Nw(r,e,t,a,n,i,o,s){for(var l=Ow(r,e),u=[],f=[],c=[],h=[],v=[],d=[],p=[],y=Pg(n,e,o),g=r.getLayout("points")||[],m=e.getLayout("points")||[],_=0;_<l.length;_++){var S=l[_],b=!0,x=void 0,w=void 0;switch(S.cmd){case"=":x=S.idx*2,w=S.idx1*2;var D=g[x],M=g[x+1],A=m[w],C=m[w+1];(isNaN(D)||isNaN(M))&&(D=A,M=C),u.push(D,M),f.push(A,C),c.push(t[x],t[x+1]),h.push(a[w],a[w+1]),p.push(e.getRawIndex(S.idx1));break;case"+":var I=S.idx,L=y.dataDimsForPoint,E=n.dataToPoint([e.get(L[0],I),e.get(L[1],I)]);w=I*2,u.push(E[0],E[1]),f.push(m[w],m[w+1]);var k=Rg(y,n,e,I);c.push(k[0],k[1]),h.push(a[w],a[w+1]),p.push(e.getRawIndex(I));break;case"-":b=!1}b&&(v.push(S),d.push(d.length))}d.sort(function(we,Ht){return p[we]-p[Ht]});for(var P=u.length,V=Rt(P),R=Rt(P),O=Rt(P),z=Rt(P),H=[],_=0;_<d.length;_++){var Y=d[_],J=_*2,pe=Y*2;V[J]=u[pe],V[J+1]=u[pe+1],R[J]=f[pe],R[J+1]=f[pe+1],O[J]=c[pe],O[J+1]=c[pe+1],z[J]=h[pe],z[J+1]=h[pe+1],H[_]=v[Y]}return{current:V,next:R,stackedOnCurrent:O,stackedOnNext:z,status:H}}var Kt=Math.min,qt=Math.max;function Dr(r,e){return isNaN(r)||isNaN(e)}function wl(r,e,t,a,n,i,o,s,l){for(var u,f,c,h,v,d,p=t,y=0;y<a;y++){var g=e[p*2],m=e[p*2+1];if(p>=n||p<0)break;if(Dr(g,m)){if(l){p+=i;continue}break}if(p===t)r[i>0?"moveTo":"lineTo"](g,m),c=g,h=m;else{var _=g-u,S=m-f;if(_*_+S*S<.5){p+=i;continue}if(o>0){for(var b=p+i,x=e[b*2],w=e[b*2+1];x===g&&w===m&&y<a;)y++,b+=i,p+=i,x=e[b*2],w=e[b*2+1],g=e[p*2],m=e[p*2+1],_=g-u,S=m-f;var D=y+1;if(l)for(;Dr(x,w)&&D<a;)D++,b+=i,x=e[b*2],w=e[b*2+1];var M=.5,A=0,C=0,I=void 0,L=void 0;if(D>=a||Dr(x,w))v=g,d=m;else{A=x-u,C=w-f;var E=g-u,k=x-g,P=m-f,V=w-m,R=void 0,O=void 0;if(s==="x"){R=Math.abs(E),O=Math.abs(k);var z=A>0?1:-1;v=g-z*R*o,d=m,I=g+z*O*o,L=m}else if(s==="y"){R=Math.abs(P),O=Math.abs(V);var H=C>0?1:-1;v=g,d=m-H*R*o,I=g,L=m+H*O*o}else R=Math.sqrt(E*E+P*P),O=Math.sqrt(k*k+V*V),M=O/(O+R),v=g-A*o*(1-M),d=m-C*o*(1-M),I=g+A*o*M,L=m+C*o*M,I=Kt(I,qt(x,g)),L=Kt(L,qt(w,m)),I=qt(I,Kt(x,g)),L=qt(L,Kt(w,m)),A=I-g,C=L-m,v=g-A*R/O,d=m-C*R/O,v=Kt(v,qt(u,g)),d=Kt(d,qt(f,m)),v=qt(v,Kt(u,g)),d=qt(d,Kt(f,m)),A=g-v,C=m-d,I=g+A*O/R,L=m+C*O/R}r.bezierCurveTo(c,h,v,d,g,m),c=I,h=L}else r.lineTo(g,m)}u=g,f=m,p+=i}return y}var Eg=(function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r})(),Bw=(function(r){U(e,r);function e(t){var a=r.call(this,t)||this;return a.type="ec-polyline",a}return e.prototype.getDefaultStyle=function(){return{stroke:B.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new Eg},e.prototype.buildPath=function(t,a){var n=a.points,i=0,o=n.length/2;if(a.connectNulls){for(;o>0&&Dr(n[o*2-2],n[o*2-1]);o--);for(;i<o&&Dr(n[i*2],n[i*2+1]);i++);}for(;i<o;)i+=wl(t,n,i,o,o,1,a.smooth,a.smoothMonotone,a.connectNulls)+1},e.prototype.getPointOn=function(t,a){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n=this.path,i=n.data,o=Wh.CMD,s,l,u=a==="x",f=[],c=0;c<i.length;){var h=i[c++],v=void 0,d=void 0,p=void 0,y=void 0,g=void 0,m=void 0,_=void 0;switch(h){case o.M:s=i[c++],l=i[c++];break;case o.L:if(v=i[c++],d=i[c++],_=u?(t-s)/(v-s):(t-l)/(d-l),_<=1&&_>=0){var S=u?(d-l)*_+l:(v-s)*_+s;return u?[t,S]:[S,t]}s=v,l=d;break;case o.C:v=i[c++],d=i[c++],p=i[c++],y=i[c++],g=i[c++],m=i[c++];var b=u?sf(s,v,p,g,t,f):sf(l,d,y,m,t,f);if(b>0)for(var x=0;x<b;x++){var w=f[x];if(w<=1&&w>=0){var S=u?lf(l,d,y,m,w):lf(s,v,p,g,w);return u?[t,S]:[S,t]}}s=g,l=m;break}}},e})(Be),Vw=(function(r){U(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e})(Eg),zw=(function(r){U(e,r);function e(t){var a=r.call(this,t)||this;return a.type="ec-polygon",a}return e.prototype.getDefaultShape=function(){return new Vw},e.prototype.buildPath=function(t,a){var n=a.points,i=a.stackedOnPoints,o=0,s=n.length/2,l=a.smoothMonotone;if(a.connectNulls){for(;s>0&&Dr(n[s*2-2],n[s*2-1]);s--);for(;o<s&&Dr(n[o*2],n[o*2+1]);o++);}for(;o<s;){var u=wl(t,n,o,s,s,1,a.smooth,l,a.connectNulls);wl(t,i,o+u-1,u,s,-1,a.stackedOnSmooth,l,a.connectNulls),o+=u+1,t.closePath()}},e})(Be);function Og(r,e,t,a,n){var i=r.getArea(),o=i.x,s=i.y,l=i.width,u=i.height,f=t.get(["lineStyle","width"])||0;o-=f/2,s-=f/2,l+=f,u+=f,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var c=new ve({shape:{x:o,y:s,width:l,height:u}});if(e){var h=r.getBaseAxis(),v=h.isHorizontal(),d=h.inverse;v?(d&&(c.shape.x+=l),c.shape.width=0):(d||(c.shape.y+=u),c.shape.height=0);var p=Q(n)?function(y){n(y,c)}:null;Pe(c,{shape:{width:l,height:u,x:o,y:s}},t,null,a,p)}return c}function Ng(r,e,t){var a=r.getArea(),n=ke(a.r0,1),i=ke(a.r,1),o=new kr({shape:{cx:ke(r.cx,1),cy:ke(r.cy,1),r0:n,r:i,startAngle:a.startAngle,endAngle:a.endAngle,clockwise:a.clockwise}});if(e){var s=r.getBaseAxis().dim==="angle";s?o.shape.endAngle=a.startAngle:o.shape.r=n,Pe(o,{shape:{endAngle:a.endAngle,r:i}},t)}return o}function Bg(r,e,t,a,n){if(r){if(r.type==="polar")return Ng(r,e,t);if(r.type==="cartesian2d")return Og(r,e,t,a,n)}else return null;return null}function An(r,e){return r.type===e}function Zc(r,e){if(r.length===e.length){for(var t=0;t<r.length;t++)if(r[t]!==e[t])return;return!0}}function $c(r){for(var e=1/0,t=1/0,a=-1/0,n=-1/0,i=0;i<r.length;){var o=r[i++],s=r[i++];isNaN(o)||(e=Math.min(o,e),a=Math.max(o,a)),isNaN(s)||(t=Math.min(s,t),n=Math.max(s,n))}return[[e,t],[a,n]]}function Kc(r,e){var t=$c(r),a=t[0],n=t[1],i=$c(e),o=i[0],s=i[1];return Math.max(Math.abs(a[0]-o[0]),Math.abs(a[1]-o[1]),Math.abs(n[0]-s[0]),Math.abs(n[1]-s[1]))}function qc(r){return oe(r)?r:r?.5:0}function Gw(r,e,t){if(!t.valueDim)return[];for(var a=e.count(),n=Rt(a*2),i=0;i<a;i++){var o=Rg(t,r,e,i);n[i*2]=o[0],n[i*2+1]=o[1]}return n}function jt(r,e,t,a,n){var i=t.getBaseAxis(),o=i.dim==="x"||i.dim==="radius"?0:1,s=[],l=0,u=[],f=[],c=[],h=[];if(n){for(l=0;l<r.length;l+=2){var v=e||r;!isNaN(v[l])&&!isNaN(v[l+1])&&h.push(r[l],r[l+1])}r=h}for(l=0;l<r.length-2;l+=2)switch(c[0]=r[l+2],c[1]=r[l+3],f[0]=r[l],f[1]=r[l+1],s.push(f[0],f[1]),a){case"end":u[o]=c[o],u[1-o]=f[1-o],s.push(u[0],u[1]);break;case"middle":var d=(f[o]+c[o])/2,p=[];u[o]=p[o]=d,u[1-o]=f[1-o],p[1-o]=c[1-o],s.push(u[0],u[1]),s.push(p[0],p[1]);break;default:u[o]=f[o],u[1-o]=c[1-o],s.push(u[0],u[1])}return s.push(r[l++],r[l++]),s}function Fw(r,e){var t=[],a=r.length,n,i;function o(f,c,h){var v=f.coord,d=(h-v)/(c.coord-v),p=cm(d,[f.color,c.color]);return{coord:h,color:p}}for(var s=0;s<a;s++){var l=r[s],u=l.coord;if(u<0)n=l;else if(u>e){i?t.push(o(i,l,e)):n&&t.push(o(n,l,0),o(n,l,e));break}else n&&(t.push(o(n,l,0)),n=null),t.push(l),i=l}return t}function Hw(r,e,t){var a=r.getVisual("visualMeta");if(!(!a||!a.length||!r.count())&&e.type==="cartesian2d"){for(var n,i,o=a.length-1;o>=0;o--){var s=r.getDimensionInfo(a[o].dimension);if(n=s&&s.coordDim,n==="x"||n==="y"){i=a[o];break}}if(i){var l=e.getAxis(n),u=X(i.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,c=i.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),c.reverse());var h=Fw(u,n==="x"?t.getWidth():t.getHeight()),v=h.length;if(!v&&f)return u[0].coord<0?c[1]?c[1]:u[f-1].color:c[0]?c[0]:u[0].color;var d=10,p=h[0].coord-d,y=h[v-1].coord+d,g=y-p;if(g<.001)return"transparent";T(h,function(_){_.offset=(_.coord-p)/g}),h.push({offset:v?h[v-1].offset:.5,color:c[1]||"transparent"}),h.unshift({offset:v?h[0].offset:.5,color:c[0]||"transparent"});var m=new Yl(0,0,0,0,h,!0);return m[n]=p,m[n+"2"]=y,m}}}function Ww(r,e,t){var a=r.get("showAllSymbol"),n=a==="auto";if(!(a&&!n)){var i=t.getAxesByScale("ordinal")[0];if(i&&!(n&&Uw(i,e))){var o=e.mapDimension(i.dim),s={};return T(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function Uw(r,e){var t=r.getExtent(),a=Math.abs(t[1]-t[0])/r.scale.count();isNaN(a)&&(a=0);for(var n=e.count(),i=Math.max(1,Math.round(n/5)),o=0;o<n;o+=i)if(Vu.getSymbolSize(e,o)[r.isHorizontal()?1:0]*1.5>a)return!1;return!0}function Yw(r,e){return isNaN(r)||isNaN(e)}function Xw(r){for(var e=r.length/2;e>0&&Yw(r[e*2-2],r[e*2-1]);e--);return e-1}function jc(r,e){return[r[e*2],r[e*2+1]]}function Zw(r,e,t){for(var a=r.length/2,n=t==="x"?0:1,i,o,s=0,l=-1,u=0;u<a;u++)if(o=r[u*2+n],!(isNaN(o)||isNaN(r[u*2+1-n]))){if(u===0){i=o;continue}if(i<=e&&o>=e||i>=e&&o<=e){l=u;break}s=u,i=o}return{range:[s,l],t:(e-i)/(o-i)}}function Vg(r){if(r.get(["endLabel","show"]))return!0;for(var e=0;e<Xe.length;e++)if(r.get([Xe[e],"endLabel","show"]))return!0;return!1}function ls(r,e,t,a){if(An(e,"cartesian2d")){var n=a.getModel("endLabel"),i=n.get("valueAnimation"),o=a.getData(),s={lastFrameIndex:0},l=Vg(a)?function(v,d){r._endLabelOnDuring(v,d,o,s,i,n,e)}:null,u=e.getBaseAxis().isHorizontal(),f=Og(e,t,a,function(){var v=r._endLabel;v&&t&&s.originalX!=null&&v.attr({x:s.originalX,y:s.originalY})},l);if(!a.get("clip",!0)){var c=f.shape,h=Math.max(c.width,c.height);u?(c.y-=h,c.height+=h*2):(c.x-=h,c.width+=h*2)}return l&&l(1,f),f}else return Ng(e,t,a)}function $w(r,e){var t=e.getBaseAxis(),a=t.isHorizontal(),n=t.inverse,i=a?n?"right":"left":"center",o=a?"middle":n?"top":"bottom";return{normal:{align:r.get("align")||i,verticalAlign:r.get("verticalAlign")||o}}}var Kw=(function(r){U(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(){var t=new le,a=new kg;this.group.add(a.group),this._symbolDraw=a,this._lineGroup=t,this._changePolyState=$(this._changePolyState,this)},e.prototype.render=function(t,a,n){var i=t.coordinateSystem,o=this.group,s=t.getData(),l=t.getModel("lineStyle"),u=t.getModel("areaStyle"),f=s.getLayout("points")||[],c=i.type==="polar",h=this._coordSys,v=this._symbolDraw,d=this._polyline,p=this._polygon,y=this._lineGroup,g=!a.ssr&&t.get("animation"),m=!u.isEmpty(),_=u.get("origin"),S=Pg(i,s,_),b=m&&Gw(i,s,S),x=t.get("showSymbol"),w=t.get("connectNulls"),D=x&&!c&&Ww(t,s,i),M=this._data;M&&M.eachItemGraphicEl(function(we,Ht){we.__temp&&(o.remove(we),M.setItemGraphicEl(Ht,null))}),x||v.remove(),o.add(y);var A=c?!1:t.get("step"),C;i&&i.getArea&&t.get("clip",!0)&&(C=i.getArea(),C.width!=null?(C.x-=.1,C.y-=.1,C.width+=.2,C.height+=.2):C.r0&&(C.r0-=.5,C.r+=.5)),this._clipShapeForSymbol=C;var I=Hw(s,i,n)||s.getVisual("style")[s.getVisual("drawType")];if(!(d&&h.type===i.type&&A===this._step))x&&v.updateData(s,{isIgnore:D,clipShape:C,disableAnimation:!0,getSymbolPoint:function(we){return[f[we*2],f[we*2+1]]}}),g&&this._initSymbolLabelAnimation(s,i,C),A&&(b&&(b=jt(b,f,i,A,w)),f=jt(f,null,i,A,w)),d=this._newPolyline(f),m?p=this._newPolygon(f,b):p&&(y.remove(p),p=this._polygon=null),c||this._initOrUpdateEndLabel(t,i,Ir(I)),y.setClipPath(ls(this,i,!0,t));else{m&&!p?p=this._newPolygon(f,b):p&&!m&&(y.remove(p),p=this._polygon=null),c||this._initOrUpdateEndLabel(t,i,Ir(I));var L=y.getClipPath();if(L){var E=ls(this,i,!1,t);Pe(L,{shape:E.shape},t)}else y.setClipPath(ls(this,i,!0,t));x&&v.updateData(s,{isIgnore:D,clipShape:C,disableAnimation:!0,getSymbolPoint:function(we){return[f[we*2],f[we*2+1]]}}),(!Zc(this._stackedOnPoints,b)||!Zc(this._points,f))&&(g?this._doUpdateAnimation(s,b,i,n,A,_,w):(A&&(b&&(b=jt(b,f,i,A,w)),f=jt(f,null,i,A,w)),d.setShape({points:f}),p&&p.setShape({points:f,stackedOnPoints:b})))}var k=t.getModel("emphasis"),P=k.get("focus"),V=k.get("blurScope"),R=k.get("disabled");if(d.useStyle(ae(l.getLineStyle(),{fill:"none",stroke:I,lineJoin:"bevel"})),da(d,t,"lineStyle"),d.style.lineWidth>0&&t.get(["emphasis","lineStyle","width"])==="bolder"){var O=d.getState("emphasis").style;O.lineWidth=+d.style.lineWidth+1}te(d).seriesIndex=t.seriesIndex,Vt(d,P,V,R);var z=qc(t.get("smooth")),H=t.get("smoothMonotone");if(d.setShape({smooth:z,smoothMonotone:H,connectNulls:w}),p){var Y=s.getCalculationInfo("stackedOnSeries"),J=0;p.useStyle(ae(u.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),Y&&(J=qc(Y.get("smooth"))),p.setShape({smooth:z,stackedOnSmooth:J,smoothMonotone:H,connectNulls:w}),da(p,t,"areaStyle"),te(p).seriesIndex=t.seriesIndex,Vt(p,P,V,R)}var pe=this._changePolyState;s.eachItemGraphicEl(function(we){we&&(we.onHoverStateChange=pe)}),this._polyline.onHoverStateChange=pe,this._data=s,this._coordSys=i,this._stackedOnPoints=b,this._points=f,this._step=A,this._valueOrigin=_,t.get("triggerLineEvent")&&(this.packEventData(t,d),p&&this.packEventData(t,p))},e.prototype.packEventData=function(t,a){te(a).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,a,n,i){var o=t.getData(),s=Lr(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 f=l[s*2],c=l[s*2+1];if(isNaN(f)||isNaN(c)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,c))return;var h=t.get("zlevel")||0,v=t.get("z")||0;u=new Vu(o,s),u.x=f,u.y=c,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 Re.prototype.highlight.call(this,t,a,n,i)},e.prototype.downplay=function(t,a,n,i){var o=t.getData(),s=Lr(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 Re.prototype.downplay.call(this,t,a,n,i)},e.prototype._changePolyState=function(t){var a=this._polygon;xf(this._polyline,t),a&&xf(a,t)},e.prototype._newPolyline=function(t){var a=this._polyline;return a&&this._lineGroup.remove(a),a=new Bw({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(a),this._polyline=a,a},e.prototype._newPolygon=function(t,a){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new zw({shape:{points:t,stackedOnPoints:a},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(t,a,n){var i,o,s=a.getBaseAxis(),l=s.inverse;a.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):a.type==="polar"&&(i=s.dim==="angle",o=!0);var u=t.hostModel,f=u.get("animationDuration");Q(f)&&(f=f(null));var c=u.get("animationDelay")||0,h=Q(c)?c(null):c;t.eachItemGraphicEl(function(v,d){var p=v;if(p){var y=[v.x,v.y],g=void 0,m=void 0,_=void 0;if(n)if(o){var S=n,b=a.pointToCoord(y);i?(g=S.startAngle,m=S.endAngle,_=-b[1]/180*Math.PI):(g=S.r0,m=S.r,_=b[0])}else{var x=n;i?(g=x.x,m=x.x+x.width,_=v.x):(g=x.y+x.height,m=x.y,_=v.y)}var w=m===g?0:(_-g)/(m-g);l&&(w=1-w);var D=Q(c)?c(d):f*w+h,M=p.getSymbolPath(),A=M.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:D}),A&&A.animateFrom({style:{opacity:0}},{duration:300,delay:D}),M.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,a,n){var i=t.getModel("endLabel");if(Vg(t)){var o=t.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new de({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=Xw(l);f>=0&&(ur(s,Mt(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:f,defaultText:function(c,h,v){return v!=null?Ig(o,v):Dn(o,c)},enableTextSetter:!0},$w(i,a)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,a,n,i,o,s,l){var u=this._endLabel,f=this._polyline;if(u){t<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var c=n.getLayout("points"),h=n.hostModel,v=h.get("connectNulls"),d=s.get("precision"),p=s.get("distance")||0,y=l.getBaseAxis(),g=y.isHorizontal(),m=y.inverse,_=a.shape,S=m?g?_.x:_.y+_.height:g?_.x+_.width:_.y,b=(g?p:0)*(m?-1:1),x=(g?0:-p)*(m?-1:1),w=g?"x":"y",D=Zw(c,S,w),M=D.range,A=M[1]-M[0],C=void 0;if(A>=1){if(A>1&&!v){var I=jc(c,M[0]);u.attr({x:I[0]+b,y:I[1]+x}),o&&(C=h.getRawValue(M[0]))}else{var I=f.getPointOn(S,w);I&&u.attr({x:I[0]+b,y:I[1]+x});var L=h.getRawValue(M[0]),E=h.getRawValue(M[1]);o&&(C=nd(n,d,L,E,D.t))}i.lastFrameIndex=M[0]}else{var k=t===1||i.lastFrameIndex>0?M[0]:0,I=jc(c,k);o&&(C=h.getRawValue(k)),u.attr({x:I[0]+b,y:I[1]+x})}if(o){var P=xa(u);typeof P.setLabelText=="function"&&P.setLabelText(C)}}},e.prototype._doUpdateAnimation=function(t,a,n,i,o,s,l){var u=this._polyline,f=this._polygon,c=t.hostModel,h=Nw(this._data,t,this._stackedOnPoints,a,this._coordSys,n,this._valueOrigin),v=h.current,d=h.stackedOnCurrent,p=h.next,y=h.stackedOnNext;if(o&&(d=jt(h.stackedOnCurrent,h.current,n,o,l),v=jt(h.current,null,n,o,l),y=jt(h.stackedOnNext,h.next,n,o,l),p=jt(h.next,null,n,o,l)),Kc(v,p)>3e3||f&&Kc(d,y)>3e3){u.stopAnimation(),u.setShape({points:p}),f&&(f.stopAnimation(),f.setShape({points:p,stackedOnPoints:y}));return}u.shape.__points=h.current,u.shape.points=v;var g={shape:{points:p}};h.current!==v&&(g.shape.__points=h.next),u.stopAnimation(),Se(u,g,c),f&&(f.setShape({points:v,stackedOnPoints:d}),f.stopAnimation(),Se(f,{shape:{stackedOnPoints:y}},c),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var m=[],_=h.status,S=0;S<_.length;S++){var b=_[S].cmd;if(b==="="){var x=t.getItemGraphicEl(_[S].idx1);x&&m.push({el:x,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var w=u.shape.__points,D=0;D<m.length;D++){var M=m[D].el,A=m[D].ptIdx*2;M.x=w[A],M.y=w[A+1],M.markRedraw()}})},e.prototype.remove=function(t){var a=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(i,o){i.__temp&&(a.remove(i),n.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e})(Re);function qw(r,e){return{seriesType:r,plan:Mu(),reset:function(t){var a=t.getData(),n=t.coordinateSystem;if(t.pipelineContext,!!n){var i=X(n.dimensions,function(c){return a.mapDimension(c)}).slice(0,2),o=i.length,s=a.getCalculationInfo("stackResultDimension");ya(a,i[0])&&(i[0]=s),ya(a,i[1])&&(i[1]=s);var l=a.getStore(),u=a.getDimensionIndex(i[0]),f=a.getDimensionIndex(i[1]);return o&&{progress:function(c,h){for(var v=c.end-c.start,d=Rt(v*o),p=[],y=[],g=c.start,m=0;g<c.end;g++){var _=void 0;if(o===1){var S=l.get(u,g);_=n.dataToPoint(S,null,y)}else p[0]=l.get(u,g),p[1]=l.get(f,g),_=n.dataToPoint(p,null,y);d[m++]=_[0],d[m++]=_[1]}h.setLayout("points",d)}}}}}}var jw={average:function(r){for(var e=0,t=0,a=0;a<r.length;a++)isNaN(r[a])||(e+=r[a],t++);return t===0?NaN:e/t},sum:function(r){for(var e=0,t=0;t<r.length;t++)e+=r[t]||0;return e},max:function(r){for(var e=-1/0,t=0;t<r.length;t++)r[t]>e&&(e=r[t]);return isFinite(e)?e:NaN},min:function(r){for(var e=1/0,t=0;t<r.length;t++)r[t]<e&&(e=r[t]);return isFinite(e)?e:NaN},nearest:function(r){return r[0]}},Qw=function(r){return Math.round(r.length/2)};function zg(r){return{seriesType:r,reset:function(e,t,a){var n=e.getData(),i=e.get("sampling"),o=e.coordinateSystem,s=n.count();if(s>10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),c=a.getDevicePixelRatio(),h=Math.abs(f[1]-f[0])*(c||1),v=Math.round(s/h);if(isFinite(v)&&v>1){i==="lttb"?e.setData(n.lttbDownSample(n.mapDimension(u.dim),1/v)):i==="minmax"&&e.setData(n.minmaxDownSample(n.mapDimension(u.dim),1/v));var d=void 0;Z(i)?d=jw[i]:Q(i)&&(d=i),d&&e.setData(n.downSample(n.mapDimension(u.dim),1/v,d,Qw))}}}}}function XD(r){r.registerChartView(Kw),r.registerSeriesModel(Pw),r.registerLayout(qw("line")),r.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),a=e.getModel("lineStyle").getLineStyle();a&&!a.stroke&&(a.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",a)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,zg("line"))}var Tl=(function(r){U(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,a){return wa(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,a,n){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(t),s=i.dataToPoint(o);if(n)T(i.getAxes(),function(h,v){if(h.type==="category"&&a!=null){var d=h.getTicksCoords(),p=h.getTickModel().get("alignWithLabel"),y=o[v],g=a[v]==="x1"||a[v]==="y1";if(g&&!p&&(y+=1),d.length<2)return;if(d.length===2){s[v]=h.toGlobalCoord(h.getExtent()[g?1:0]);return}for(var m=void 0,_=void 0,S=1,b=0;b<d.length;b++){var x=d[b].coord,w=b===d.length-1?d[b-1].tickValue+S:d[b].tickValue;if(w===y){_=x;break}else if(w<y)m=x;else if(m!=null&&w>y){_=(x+m)/2;break}b===1&&(S=w-d[0].tickValue)}_==null&&(m?m&&(_=d[d.length-1].coord):_=d[0].coord),s[v]=h.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),c=i.getBaseAxis().isHorizontal()?0:1;s[c]+=u+f/2}return s}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",defaultBarGap:"10%"},e})(Ne);Ne.registerClass(Tl);var Jw=(function(r){U(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(){return wa(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),a=this.get("largeThreshold");return a>t&&(t=a),t},e.prototype.brushSelector=function(t,a,n){return n.rect(a.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=mo(Tl.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:B.color.primary,borderWidth:2}},realtimeSort:!1}),e})(Tl),e1=(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})(),Qc=(function(r){U(e,r);function e(t){var a=r.call(this,t)||this;return a.type="sausage",a}return e.prototype.getDefaultShape=function(){return new e1},e.prototype.buildPath=function(t,a){var n=a.cx,i=a.cy,o=Math.max(a.r0||0,0),s=Math.max(a.r,0),l=(s-o)*.5,u=o+l,f=a.startAngle,c=a.endAngle,h=a.clockwise,v=Math.PI*2,d=h?c-f<v:f-c<v;d||(f=c-(h?v:-v));var p=Math.cos(f),y=Math.sin(f),g=Math.cos(c),m=Math.sin(c);d?(t.moveTo(p*o+n,y*o+i),t.arc(p*u+n,y*u+i,l,-Math.PI+f,f,!h)):t.moveTo(p*s+n,y*s+i),t.arc(n,i,s,f,c,!h),t.arc(g*u+n,m*u+i,l,c-Math.PI*2,c-Math.PI,!h),o!==0&&t.arc(n,i,o,c,f,h)},e})(Be);function t1(r,e){e=e||{};var t=e.isRoundCap;return function(a,n,i){var o=n.position;if(!o||o instanceof Array)return Vs(a,n,i);var s=r(o),l=n.distance!=null?n.distance:5,u=this.shape,f=u.cx,c=u.cy,h=u.r,v=u.r0,d=(h+v)/2,p=u.startAngle,y=u.endAngle,g=(p+y)/2,m=t?Math.abs(h-v)/2:0,_=Math.cos,S=Math.sin,b=f+h*_(p),x=c+h*S(p),w="left",D="top";switch(s){case"startArc":b=f+(v-l)*_(g),x=c+(v-l)*S(g),w="center",D="top";break;case"insideStartArc":b=f+(v+l)*_(g),x=c+(v+l)*S(g),w="center",D="bottom";break;case"startAngle":b=f+d*_(p)+ci(p,l+m,!1),x=c+d*S(p)+vi(p,l+m,!1),w="right",D="middle";break;case"insideStartAngle":b=f+d*_(p)+ci(p,-l+m,!1),x=c+d*S(p)+vi(p,-l+m,!1),w="left",D="middle";break;case"middle":b=f+d*_(g),x=c+d*S(g),w="center",D="middle";break;case"endArc":b=f+(h+l)*_(g),x=c+(h+l)*S(g),w="center",D="bottom";break;case"insideEndArc":b=f+(h-l)*_(g),x=c+(h-l)*S(g),w="center",D="top";break;case"endAngle":b=f+d*_(y)+ci(y,l+m,!0),x=c+d*S(y)+vi(y,l+m,!0),w="left",D="middle";break;case"insideEndAngle":b=f+d*_(y)+ci(y,-l+m,!0),x=c+d*S(y)+vi(y,-l+m,!0),w="right",D="middle";break;default:return Vs(a,n,i)}return a=a||{},a.x=b,a.y=x,a.align=w,a.verticalAlign=D,a}}function r1(r,e,t,a){if(oe(a)){r.setTextConfig({rotation:a});return}else if(N(e)){r.setTextConfig({rotation:0});return}var n=r.shape,i=n.clockwise?n.startAngle:n.endAngle,o=n.clockwise?n.endAngle:n.startAngle,s=(i+o)/2,l,u=t(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=i;break;case"endAngle":case"insideEndAngle":l=o;break;default:r.setTextConfig({rotation:0});return}var f=Math.PI*1.5-l;u==="middle"&&f>Math.PI/2&&f<Math.PI*1.5&&(f-=Math.PI),r.setTextConfig({rotation:f})}function ci(r,e,t){return e*Math.sin(r)*(t?-1:1)}function vi(r,e,t){return e*Math.cos(r)*(t?1:-1)}function $a(r,e,t){var a=r.get("borderRadius");if(a==null)return t?{cornerRadius:0}:null;N(a)||(a=[a,a,a,a]);var n=Math.abs(e.r||0-e.r0||0);return{cornerRadius:X(a,function(i){return ln(i,n)})}}var us=Math.max,fs=Math.min;function a1(r,e){var t=r.getArea&&r.getArea();if(An(r,"cartesian2d")){var a=r.getBaseAxis();if(a.type!=="category"||!a.onBand){var n=e.getLayout("bandWidth");a.isHorizontal()?(t.x-=n,t.width+=n*2):(t.y-=n,t.height+=n*2)}}return t}var n1=(function(r){U(e,r);function e(){var t=r.call(this)||this;return t.type=e.type,t._isFirstFrame=!0,t}return e.prototype.render=function(t,a,n,i){this._model=t,this._removeOnRenderedListener(n),this._updateDrawMode(t);var o=t.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,a,n):this._renderNormal(t,a,n,i))},e.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},e.prototype.incrementalRender=function(t,a){this._progressiveEls=[],this._incrementalRenderLarge(t,a)},e.prototype.eachRendered=function(t){Or(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var a=t.pipelineContext.large;(this._isLargeDraw==null||a!==this._isLargeDraw)&&(this._isLargeDraw=a,this._clear())},e.prototype._renderNormal=function(t,a,n,i){var o=this.group,s=t.getData(),l=this._data,u=t.coordinateSystem,f=u.getBaseAxis(),c;u.type==="cartesian2d"?c=f.isHorizontal():u.type==="polar"&&(c=f.dim==="angle");var h=t.isAnimationEnabled()?t:null,v=i1(t,u);v&&this._enableRealtimeSort(v,s,n);var d=t.get("clip",!0)||v,p=a1(u,s);o.removeClipPath();var y=t.get("roundCap",!0),g=t.get("showBackground",!0),m=t.getModel("backgroundStyle"),_=m.get("borderRadius")||0,S=[],b=this._backgroundEls,x=i&&i.isInitSort,w=i&&i.type==="changeAxisOrder";function D(C){var I=hi[u.type](s,C);if(!I)return null;var L=v1(u,c,I);return L.useStyle(m.getItemStyle()),u.type==="cartesian2d"?L.setShape("r",_):L.setShape("cornerRadius",_),S[C]=L,L}s.diff(l).add(function(C){var I=s.getItemModel(C),L=hi[u.type](s,C,I);if(L&&(g&&D(C),!(!s.hasValue(C)||!av[u.type](L)))){var E=!1;d&&(E=Jc[u.type](p,L));var k=ev[u.type](t,s,C,L,c,h,f.model,!1,y);v&&(k.forceLabelAnimation=!0),nv(k,s,C,I,L,t,c,u.type==="polar"),x?k.attr({shape:L}):v?tv(v,h,k,L,C,c,!1,!1):Pe(k,{shape:L},t,C),s.setItemGraphicEl(C,k),o.add(k),k.ignore=E}}).update(function(C,I){var L=s.getItemModel(C),E=hi[u.type](s,C,L);if(E){if(g){var k=void 0;b.length===0?k=D(I):(k=b[I],k.useStyle(m.getItemStyle()),u.type==="cartesian2d"?k.setShape("r",_):k.setShape("cornerRadius",_),S[C]=k);var P=hi[u.type](s,C),V=Fg(c,P,u);Se(k,{shape:V},h,C)}var R=l.getItemGraphicEl(I);if(!s.hasValue(C)||!av[u.type](E)){o.remove(R);return}var O=!1;d&&(O=Jc[u.type](p,E),O&&o.remove(R));var z=R&&(R.type==="sector"&&y||R.type==="sausage"&&!y);if(z&&(R&&en(R,t,I),R=null),R?pn(R):R=ev[u.type](t,s,C,E,c,h,f.model,!0,y),v&&(R.forceLabelAnimation=!0),w){var H=R.getTextContent();if(H){var Y=xa(H);Y.prevValue!=null&&(Y.prevValue=Y.value)}}else nv(R,s,C,L,E,t,c,u.type==="polar");x?R.attr({shape:E}):v?tv(v,h,R,E,C,c,!0,w):Se(R,{shape:E},t,C,null),s.setItemGraphicEl(C,R),R.ignore=O,o.add(R)}}).remove(function(C){var I=l.getItemGraphicEl(C);I&&en(I,t,C)}).execute();var M=this._backgroundGroup||(this._backgroundGroup=new le);M.removeAll();for(var A=0;A<S.length;++A)M.add(S[A]);o.add(M),this._backgroundEls=S,this._data=s},e.prototype._renderLarge=function(t,a,n){this._clear(),ov(t,this.group),this._updateLargeClip(t)},e.prototype._incrementalRenderLarge=function(t,a){this._removeBackground(),ov(a,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(t){var a=t.get("clip",!0)&&Bg(t.coordinateSystem,!1,t),n=this.group;a?n.setClipPath(a):n.removeClipPath()},e.prototype._enableRealtimeSort=function(t,a,n){var i=this;if(a.count()){var o=t.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(a,t,n),this._isFirstFrame=!1;else{var s=function(l){var u=a.getItemGraphicEl(l),f=u&&u.shape;return f&&Math.abs(o.isHorizontal()?f.height:f.width)||0};this._onRendered=function(){i._updateSortWithinSameData(a,s,o,n)},n.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(t,a,n){var i=[];return t.each(t.mapDimension(a.dim),function(o,s){var l=n(s);l=l??NaN,i.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),i.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:X(i,function(o){return o.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(t,a,n){for(var i=n.scale,o=t.mapDimension(n.dim),s=Number.MAX_VALUE,l=0,u=i.getOrdinalMeta().categories.length;l<u;++l){var f=t.rawIndexOf(o,i.getRawOrdinalNumber(l)),c=f<0?Number.MIN_VALUE:a(t.indexOfRawIndex(f));if(c>s)return!0;s=c}return!1},e.prototype._isOrderDifferentInView=function(t,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(t.ordinalNumbers[o]!==n.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(t,a,n,i){if(this._isOrderChangedWithinSameData(t,a,n)){var o=this._dataSort(t,n,a);this._isOrderDifferentInView(o,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(t,a,n){var i=a.baseAxis,o=this._dataSort(t,i,function(s){return t.get(t.mapDimension(a.otherAxis.dim),s)});n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},e.prototype.remove=function(t,a){this._clear(this._model),this._removeOnRenderedListener(a)},e.prototype.dispose=function(t,a){this._removeOnRenderedListener(a)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var a=this.group,n=this._data;t&&t.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(i){en(i,t,te(i).dataIndex)})):a.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e})(Re),Jc={cartesian2d:function(r,e){var t=e.width<0?-1:1,a=e.height<0?-1:1;t<0&&(e.x+=e.width,e.width=-e.width),a<0&&(e.y+=e.height,e.height=-e.height);var n=r.x+r.width,i=r.y+r.height,o=us(e.x,r.x),s=fs(e.x+e.width,n),l=us(e.y,r.y),u=fs(e.y+e.height,i),f=s<o,c=u<l;return e.x=f&&o>n?s:o,e.y=c&&l>i?u:l,e.width=f?0:s-o,e.height=c?0:u-l,t<0&&(e.x+=e.width,e.width=-e.width),a<0&&(e.y+=e.height,e.height=-e.height),f||c},polar:function(r,e){var t=e.r0<=e.r?1:-1;if(t<0){var a=e.r;e.r=e.r0,e.r0=a}var n=fs(e.r,r.r),i=us(e.r0,r.r0);e.r=n,e.r0=i;var o=n-i<0;if(t<0){var a=e.r;e.r=e.r0,e.r0=a}return o}},ev={cartesian2d:function(r,e,t,a,n,i,o,s,l){var u=new ve({shape:F({},a),z2:1});if(u.__dataIndex=t,u.name="item",i){var f=u.shape,c=n?"height":"width";f[c]=0}return u},polar:function(r,e,t,a,n,i,o,s,l){var u=!n&&l?Qc:kr,f=new u({shape:a,z2:1});f.name="item";var c=Gg(n);if(f.calculateTextPosition=t1(c,{isRoundCap:u===Qc}),i){var h=f.shape,v=n?"r":"endAngle",d={};h[v]=n?a.r0:a.startAngle,d[v]=a[v],(s?Se:Pe)(f,{shape:d},i)}return f}};function i1(r,e){var t=r.get("realtimeSort",!0),a=e.getBaseAxis();if(t&&a.type==="category"&&e.type==="cartesian2d")return{baseAxis:a,otherAxis:e.getOtherAxis(a)}}function tv(r,e,t,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?Se:Pe)(t,{shape:l},e,n,null);var f=e?r.baseAxis.model:null;(o?Se:Pe)(t,{shape:u},f,n)}function rv(r,e){for(var t=0;t<e.length;t++)if(!isFinite(r[e[t]]))return!0;return!1}var o1=["x","y","width","height"],s1=["cx","cy","r","startAngle","endAngle"],av={cartesian2d:function(r){return!rv(r,o1)},polar:function(r){return!rv(r,s1)}},hi={cartesian2d:function(r,e,t){var a=r.getItemLayout(e);if(!a)return null;var n=t?u1(t,a):0,i=a.width>0?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,e,t){var a=r.getItemLayout(e);return{cx:a.cx,cy:a.cy,r0:a.r0,r:a.r,startAngle:a.startAngle,endAngle:a.endAngle,clockwise:a.clockwise}}};function l1(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function Gg(r){return(function(e){var t=e?"Arc":"Angle";return function(a){switch(a){case"start":case"insideStart":case"end":case"insideEnd":return a+t;default:return a}}})(r)}function nv(r,e,t,a,n,i,o,s){var l=e.getItemVisual(t,"style");if(s){if(!i.get("roundCap")){var f=r.shape,c=$a(a.getModel("itemStyle"),f,!0);F(f,c),r.setShape(f)}}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=Mt(a);ur(r,d,{labelFetcher:i,labelDataIndex:t,defaultText:Dn(i.getData(),t),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:v});var p=r.getTextContent();if(s&&p){var y=a.get(["label","position"]);r.textConfig.inside=y==="middle"?!0:null,r1(r,y==="outside"?v:y,Gg(o),a.get(["label","rotate"]))}U0(p,d,i.getRawValue(t),function(m){return Ig(e,m)});var g=a.getModel(["emphasis"]);Vt(r,g.get("focus"),g.get("blurScope"),g.get("disabled")),da(r,a),l1(n)&&(r.style.fill="none",r.style.stroke="none",T(r.states,function(m){m.style&&(m.style.fill=m.style.stroke="none")}))}function u1(r,e){var t=r.get(["itemStyle","borderColor"]);if(!t||t==="none")return 0;var a=r.get(["itemStyle","borderWidth"])||0,n=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),i=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(a,n,i)}var f1=(function(){function r(){}return r})(),iv=(function(r){U(e,r);function e(t){var a=r.call(this,t)||this;return a.type="largeBar",a}return e.prototype.getDefaultShape=function(){return new f1},e.prototype.buildPath=function(t,a){for(var n=a.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f<n.length;f+=3)l[i]=u,l[o]=n[f+2],s[i]=n[f+i],s[o]=n[f+o],t.rect(s[0],s[1],l[0],l[1])},e})(Be);function ov(r,e,t,a){var n=r.getData(),i=n.getLayout("valueAxisHorizontal")?1:0,o=n.getLayout("largeDataIndices"),s=n.getLayout("size"),l=r.getModel("backgroundStyle"),u=n.getLayout("largeBackgroundPoints");if(u){var f=new iv({shape:{points:u},incremental:!!a,silent:!0,z2:0});f.baseDimIdx=i,f.largeDataIndices=o,f.barWidth=s,f.useStyle(l.getItemStyle()),e.add(f),t&&t.push(f)}var c=new iv({shape:{points:n.getLayout("largePoints")},incremental:!!a,ignoreCoarsePointer:!0,z2:1});c.baseDimIdx=i,c.largeDataIndices=o,c.barWidth=s,e.add(c),c.useStyle(n.getVisual("style")),c.style.stroke=null,te(c).seriesIndex=r.seriesIndex,r.get("silent")||(c.on("mousedown",sv),c.on("mousemove",sv)),t&&t.push(c)}var sv=Du(function(r){var e=this,t=c1(e,r.offsetX,r.offsetY);te(e).dataIndex=t>=0?t:null},30,!1);function c1(r,e,t){for(var a=r.baseDimIdx,n=1-a,i=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,f=0,c=i.length/3;f<c;f++){var h=f*3;if(l[a]=u,l[n]=i[h+2],s[a]=i[h+a],s[n]=i[h+n],l[n]<0&&(s[n]+=l[n],l[n]=-l[n]),e>=s[0]&&e<=s[0]+l[0]&&t>=s[1]&&t<=s[1]+l[1])return o[f]}return-1}function Fg(r,e,t){if(An(t,"cartesian2d")){var a=e,n=t.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=t.getArea(),i=e;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 v1(r,e,t){var a=r.type==="polar"?kr:ve;return new a({shape:Fg(e,t,r),silent:!0,z2:0})}function ZD(r){r.registerChartView(n1),r.registerSeriesModel(Jw),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,ye(Rb,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Eb("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,zg("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){var a=e.componentType||"series";t.eachComponent({mainType:a,query:e},function(n){e.sortInfo&&n.axis.setCategorySortInfo(e.sortInfo)})})}var lv=Math.PI*2,di=Math.PI/180;function h1(r,e,t){e.eachSeriesByType(r,function(a){var n=a.getData(),i=n.mapDimension("value"),o=C_(a,t),s=o.cx,l=o.cy,u=o.r,f=o.r0,c=o.viewRect,h=-a.get("startAngle")*di,v=a.get("endAngle"),d=a.get("padAngle")*di;v=v==="auto"?h-lv:-v*di;var p=a.get("minAngle")*di,y=p+d,g=0;n.each(i,function(V){!isNaN(V)&&g++});var m=n.getSum(i),_=Math.PI/(m||g)*2,S=a.get("clockwise"),b=a.get("roseType"),x=a.get("stillShowZeroSum"),w=n.getDataExtent(i);w[0]=0;var D=S?1:-1,M=[h,v],A=D*d/2;vm(M,!S),h=M[0],v=M[1];var C=Hg(a);C.startAngle=h,C.endAngle=v,C.clockwise=S,C.cx=s,C.cy=l,C.r=u,C.r0=f;var I=Math.abs(v-h),L=I,E=0,k=h;if(n.setLayout({viewRect:c,r:u}),n.each(i,function(V,R){var O;if(isNaN(V)){n.setItemLayout(R,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:S,cx:s,cy:l,r0:f,r:b?NaN:u});return}b!=="area"?O=m===0&&x?_:V*_:O=I/g,O<y?(O=y,L-=y):E+=V;var z=k+D*O,H=0,Y=0;d>O?(H=k+D*O/2,Y=H):(H=k+A,Y=z-A),n.setItemLayout(R,{angle:O,startAngle:H,endAngle:Y,clockwise:S,cx:s,cy:l,r0:f,r:b?it(V,w,[f,u]):u}),k=z}),L<lv&&g)if(L<=.001){var P=I/g;n.each(i,function(V,R){if(!isNaN(V)){var O=n.getItemLayout(R);O.angle=P;var z=0,H=0;P<d?(z=h+D*(R+1/2)*P,H=z):(z=h+D*R*P+A,H=h+D*(R+1)*P-A),O.startAngle=z,O.endAngle=H}})}else _=L/E,k=h,n.each(i,function(V,R){if(!isNaN(V)){var O=n.getItemLayout(R),z=O.angle===y?y:V*_,H=0,Y=0;z<d?(H=k+D*z/2,Y=H):(H=k+A,Y=k+D*z-A),O.startAngle=H,O.endAngle=Y,k+=D*z}})})}var Hg=ne();function Wg(r){return{seriesType:r,reset:function(e,t){var a=t.findComponents({mainType:"legend"});if(!(!a||!a.length)){var n=e.getData();n.filterSelf(function(i){for(var o=n.getName(i),s=0;s<a.length;s++)if(!a[s].isSelected(o))return!1;return!0})}}}}var d1=Math.PI/180;function uv(r,e,t,a,n,i,o,s,l,u){if(r.length<2)return;function f(p){for(var y=p.rB,g=y*y,m=0;m<p.list.length;m++){var _=p.list[m],S=Math.abs(_.label.y-t),b=a+_.len,x=b*b,w=Math.sqrt(Math.abs((1-S*S/g)*x)),D=e+(w+_.len2)*n,M=D-_.label.x,A=_.targetTextWidth-M*n;Ug(_,A,!0),_.label.x=D}}function c(p){for(var y={list:[],maxY:0},g={list:[],maxY:0},m=0;m<p.length;m++)if(p[m].labelAlignTo==="none"){var _=p[m],S=_.label.y>t?g:y,b=Math.abs(_.label.y-t);if(b>=S.maxY){var x=_.label.x-e-_.len2*n,w=a+_.len,D=Math.abs(x)<w?Math.sqrt(b*b/(1-x*x/w/w)):w;S.rB=D,S.maxY=b}S.list.push(_)}f(y),f(g)}for(var h=r.length,v=0;v<h;v++)if(r[v].position==="outer"&&r[v].labelAlignTo==="labelLine"){var d=r[v].label.x-u;r[v].linePoints[1][0]+=d,r[v].label.x=u}bl(r,1,l,l+o)&&c(r)}function p1(r,e,t,a,n,i,o,s){for(var l=[],u=[],f=Number.MAX_VALUE,c=-Number.MAX_VALUE,h=0;h<r.length;h++){var v=r[h].label;cs(r[h])||(v.x<e?(f=Math.min(f,v.x),l.push(r[h])):(c=Math.max(c,v.x),u.push(r[h])))}for(var h=0;h<r.length;h++){var d=r[h];if(!cs(d)&&d.linePoints){if(d.labelStyleWidth!=null)continue;var v=d.label,p=d.linePoints,y=void 0;d.labelAlignTo==="edge"?v.x<e?y=p[2][0]-d.labelDistance-o-d.edgeDistance:y=o+n-d.edgeDistance-p[2][0]-d.labelDistance:d.labelAlignTo==="labelLine"?v.x<e?y=f-o-d.bleedMargin:y=o+n-c-d.bleedMargin:v.x<e?y=v.x-o-d.bleedMargin:y=o+n-v.x-d.bleedMargin,d.targetTextWidth=y,Ug(d,y,!1)}}uv(u,e,t,a,1,n,i,o,s,c),uv(l,e,t,a,-1,n,i,o,s,f);for(var h=0;h<r.length;h++){var d=r[h];if(!cs(d)&&d.linePoints){var v=d.label,p=d.linePoints,g=d.labelAlignTo==="edge",m=v.style.padding,_=m?m[1]+m[3]:0,S=v.style.backgroundColor?0:_,b=d.rect.width+S,x=p[1][0]-p[2][0];g?v.x<e?p[2][0]=o+d.edgeDistance+b+d.labelDistance:p[2][0]=o+n-d.edgeDistance-b-d.labelDistance:(v.x<e?p[2][0]=v.x+d.labelDistance:p[2][0]=v.x-d.labelDistance,p[1][0]=p[2][0]+x),p[1][1]=p[2][1]=v.y}}}function Ug(r,e,t){if(r.labelStyleWidth==null){var a=r.label,n=a.style,i=r.rect,o=n.backgroundColor,s=n.padding,l=s?s[1]+s[3]:0,u=n.overflow,f=i.width+(o?0:l);if(e<f||t){if(u&&u.match("break")){a.setStyle("backgroundColor",null),a.setStyle("width",e-l);var c=a.getBoundingRect();a.setStyle("width",Math.ceil(c.width)),a.setStyle("backgroundColor",o)}else{var h=e-l,v=e<f?h:t?h>r.unconstrainedWidth?null:h:null;a.setStyle("width",v)}Yg(i,a)}}}function Yg(r,e){fv.rect=r,Ag(fv,e,g1)}var g1={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},fv={};function cs(r){return r.position==="center"}function y1(r){var e=r.getData(),t=[],a,n,i=!1,o=(r.get("minShowLabelAngle")||0)*d1,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,f=s.x,c=s.y,h=s.height;function v(x){x.ignore=!0}function d(x){if(!x.ignore)return!0;for(var w in x.states)if(x.states[w].ignore===!1)return!0;return!1}e.each(function(x){var w=e.getItemGraphicEl(x),D=w.shape,M=w.getTextContent(),A=w.getTextGuideLine(),C=e.getItemModel(x),I=C.getModel("label"),L=I.get("position")||C.get(["emphasis","label","position"]),E=I.get("distanceToLabelLine"),k=I.get("alignTo"),P=re(I.get("edgeDistance"),u),V=I.get("bleedMargin");V==null&&(V=Math.min(u,h)>200?10:2);var R=C.getModel("labelLine"),O=R.get("length");O=re(O,u);var z=R.get("length2");if(z=re(z,u),Math.abs(D.endAngle-D.startAngle)<o){T(M.states,v),M.ignore=!0,A&&(T(A.states,v),A.ignore=!0);return}if(d(M)){var H=(D.startAngle+D.endAngle)/2,Y=Math.cos(H),J=Math.sin(H),pe,we,Ht,Gr;a=D.cx,n=D.cy;var Wt=L==="inside"||L==="inner";if(L==="center")pe=D.cx,we=D.cy,Gr="center";else{var Ta=(Wt?(D.r+D.r0)/2*Y:D.r*Y)+a,Ca=(Wt?(D.r+D.r0)/2*J:D.r*J)+n;if(pe=Ta+Y*3,we=Ca+J*3,!Wt){var Un=Ta+Y*(O+l-D.r),Yn=Ca+J*(O+l-D.r),Xn=Un+(Y<0?-1:1)*z,cr=Yn;k==="edge"?pe=Y<0?f+P:f+u-P:pe=Xn+(Y<0?-E:E),we=cr,Ht=[[Ta,Ca],[Un,Yn],[Xn,cr]]}Gr=Wt?"center":k==="edge"?Y>0?"right":"left":Y>0?"left":"right"}var Ut=Math.PI,Dt=0,Ma=I.get("rotate");if(oe(Ma))Dt=Ma*(Ut/180);else if(L==="center")Dt=0;else if(Ma==="radial"||Ma===!0){var Yy=Y<0?-H+Ut:-H;Dt=Yy}else if(Ma==="tangential"&&L!=="outside"&&L!=="outer"){var Fr=Math.atan2(Y,J);Fr<0&&(Fr=Ut*2+Fr);var Xy=J>0;Xy&&(Fr=Ut+Fr),Dt=Fr-Ut}if(i=!!Dt,M.x=pe,M.y=we,M.rotation=Dt,M.setStyle({verticalAlign:"middle"}),Wt){M.setStyle({align:Gr});var Lo=M.states.select;Lo&&(Lo.x+=M.x,Lo.y+=M.y)}else{var Ao=new Me(0,0,0,0);Yg(Ao,M),t.push({label:M,labelLine:A,position:L,len:O,len2:z,minTurnAngle:R.get("minTurnAngle"),maxSurfaceAngle:R.get("maxSurfaceAngle"),surfaceNormal:new ge(Y,J),linePoints:Ht,textAlign:Gr,labelDistance:E,labelAlignTo:k,edgeDistance:P,bleedMargin:V,rect:Ao,unconstrainedWidth:Ao.width,labelStyleWidth:M.style.width})}w.setTextConfig({inside:Wt})}}),!i&&r.get("avoidLabelOverlap")&&p1(t,a,n,l,u,h,f,c);for(var p=0;p<t.length;p++){var y=t[p],g=y.label,m=y.labelLine,_=isNaN(g.x)||isNaN(g.y);if(g){g.setStyle({align:y.textAlign}),_&&(T(g.states,v),g.ignore=!0);var S=g.states.select;S&&(S.x+=g.x,S.y+=g.y)}if(m){var b=y.linePoints;_||!b?(T(m.states,v),m.ignore=!0):(wg(b,y.minTurnAngle),Sw(b,y.surfaceNormal,y.maxSurfaceAngle),m.setShape({points:b}),g.__hostTarget.textGuideLineConfig={anchor:new ge(b[0][0],b[0][1])})}}}var m1=(function(r){U(e,r);function e(t,a,n){var i=r.call(this)||this;i.z2=2;var o=new de;return i.setTextContent(o),i.updateData(t,a,n,!0),i}return e.prototype.updateData=function(t,a,n,i){var o=this,s=t.hostModel,l=t.getItemModel(a),u=l.getModel("emphasis"),f=t.getItemLayout(a),c=F($a(l.getModel("itemStyle"),f,!0),f);if(isNaN(c.startAngle)){o.setShape(c);return}if(i){o.setShape(c);var h=s.getShallow("animationType");s.ecModel.ssr?(Pe(o,{scaleX:0,scaleY:0},s,{dataIndex:a,isFrom:!0}),o.originX=c.cx,o.originY=c.cy):h==="scale"?(o.shape.r=f.r0,Pe(o,{shape:{r:f.r}},s,a)):n!=null?(o.setShape({startAngle:n,endAngle:n}),Pe(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,a)):(o.shape.endAngle=f.startAngle,Se(o,{shape:{endAngle:f.endAngle}},s,a))}else pn(o),Se(o,{shape:c},s,a);o.useStyle(t.getItemVisual(a,"style")),da(o,l);var v=(f.startAngle+f.endAngle)/2,d=s.get("selectedOffset"),p=Math.cos(v)*d,y=Math.sin(v)*d,g=l.getShallow("cursor");g&&o.attr("cursor",g),this._updateLabel(s,t,a),o.ensureState("emphasis").shape=F({r:f.r+(u.get("scale")&&u.get("scaleSize")||0)},$a(u.getModel("itemStyle"),f)),F(o.ensureState("select"),{x:p,y,shape:$a(l.getModel(["select","itemStyle"]),f)}),F(o.ensureState("blur"),{shape:$a(l.getModel(["blur","itemStyle"]),f)});var m=o.getTextGuideLine(),_=o.getTextContent();m&&F(m.ensureState("select"),{x:p,y}),F(_.ensureState("select"),{x:p,y}),Vt(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,a,n){var i=this,o=a.getItemModel(n),s=o.getModel("labelLine"),l=a.getItemVisual(n,"style"),u=l&&l.fill,f=l&&l.opacity;ur(i,Mt(o),{labelFetcher:a.hostModel,labelDataIndex:n,inheritColor:u,defaultOpacity:f,defaultText:t.getFormattedLabel(n,"normal")||a.getName(n)});var c=i.getTextContent();i.setTextConfig({position:null,rotation:null}),c.attr({z2:10});var h=o.get(["label","position"]);if(h!=="outside"&&h!=="outer")i.removeTextGuideLine();else{var v=this.getTextGuideLine();v||(v=new Pr,this.setTextGuideLine(v)),Tg(this,Cg(o),{stroke:u,opacity:Rr(s.get(["lineStyle","opacity"]),f,1)})}},e})(kr),_1=(function(r){U(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,a,n,i){var o=t.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var f=o.getItemLayout(0),c=1;isNaN(f&&f.startAngle)&&c<o.count();++c)f=o.getItemLayout(c);f&&(u=f.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&t.get("showEmptyCircle")){var h=Hg(t),v=new kr({shape:q(h)});v.useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=v,l.add(v)}o.diff(s).add(function(d){var p=new m1(o,d,u);o.setItemGraphicEl(d,p),l.add(p)}).update(function(d,p){var y=s.getItemGraphicEl(p);y.updateData(o,d,u),y.off("click"),l.add(y),o.setItemGraphicEl(d,y)}).remove(function(d){var p=s.getItemGraphicEl(d);en(p,t,d)}).execute(),y1(t),t.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(t,a){var n=a.getData(),i=n.getItemLayout(0);if(i){var o=t[0]-i.cx,s=t[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},e.type="pie",e})(Re);function Xg(r,e,t){e=N(e)&&{coordDimensions:e}||F({encodeDefine:r.getEncode()},e);var a=r.getSource(),n=Co(a,e).dimensions,i=new Tn(n,r);return i.initData(a,t),i}var zu=(function(){function r(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return r.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},r.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},r.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},r.prototype.getItemVisual=function(e,t){var a=this._getDataWithEncodedVisual();return a.getItemVisual(e,t)},r})(),S1=ne(),Zg=(function(r){U(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new zu($(this.getData,this),$(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return Xg(this,{coordDimensions:["value"],encodeDefaulter:ye(N_,this)})},e.prototype.getDataParams=function(t){var a=this.getData(),n=S1(a),i=n.seats;if(!i){var o=[];a.each(a.mapDimension("value"),function(l){o.push(l)}),i=n.seats=Im(o,a.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,t);return s.percent=i[t]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(t){Bi(t,"labelLine",["show"]);var a=t.labelLine,n=t.emphasis.labelLine;a.show=a.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"50%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:"box",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%",distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e})(Ne);m_({fullType:Zg.type,getCoord2:function(r){return r.getShallow("center")}});function x1(r){return{seriesType:r,reset:function(e,t){var a=e.getData();a.filterSelf(function(n){var i=a.mapDimension("value"),o=a.get(i,n);return!(oe(o)&&!isNaN(o)&&o<0)})}}}function $D(r){r.registerChartView(_1),r.registerSeriesModel(Zg),px("pie",r.registerAction),r.registerLayout(ye(h1,"pie")),r.registerProcessor(Wg("pie")),r.registerProcessor(x1("pie"))}var $g={left:0,right:0,top:0,bottom:0},ao=["25%","25%"],b1=(function(r){U(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.mergeDefaultAndTheme=function(t,a){var n=ba(t.outerBounds);r.prototype.mergeDefaultAndTheme.apply(this,arguments),n&&t.outerBounds&&zt(t.outerBounds,n)},e.prototype.mergeOption=function(t,a){r.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&t.outerBounds&&zt(this.option.outerBounds,t.outerBounds)},e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:$g,outerBoundsContain:"all",outerBoundsClampWidth:ao[0],outerBoundsClampHeight:ao[1],backgroundColor:B.color.transparent,borderWidth:1,borderColor:B.color.neutral30},e})(ie),Cl=(function(r){U(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Ze).models[0]},e.type="cartesian2dAxis",e})(ie);gt(Cl,hg);var Kg={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:B.color.axisLine,width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15],breakLine:!0},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,color:B.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:B.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[B.color.backgroundTint,B.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:B.color.neutral00,borderColor:B.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},w1=ue({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},Kg),Gu=ue({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:B.color.axisMinorSplitLine,width:1}}},Kg),T1=ue({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Gu),C1=ae({logBase:10},Gu);const qg={category:w1,value:Gu,time:T1,log:C1};var M1={value:1,category:1,time:1,log:1},D1=null;function A1(){return D1}function cv(r,e,t,a){T(M1,function(n,i){var o=ue(ue({},qg[i],!0),a,!0),s=(function(l){U(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=e+"Axis."+i,f}return u.prototype.mergeDefaultAndTheme=function(f,c){var h=xn(this),v=h?ba(f):{},d=c.getTheme();ue(f,d.get(i+"Axis")),ue(f,this.getDefaultOption()),f.type=vv(f),h&&zt(f,v,h)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=yl.createByAxisModel(this))},u.prototype.getCategories=function(f){var c=this.option;if(c.type==="category")return f?c.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.prototype.updateAxisBreaks=function(f){return{breaks:[]}},u.type=e+"Axis."+i,u.defaultOption=o,u})(t);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(e+"Axis",vv)}function vv(r){return r.type||(r.data?"category":"value")}var L1=(function(){function r(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return r.prototype.getAxis=function(e){return this._axes[e]},r.prototype.getAxes=function(){return X(this._dimList,function(e){return this._axes[e]},this)},r.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),Ce(this.getAxes(),function(t){return t.scale.type===e})},r.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},r})(),Ml=["x","y"];function hv(r){return(r.type==="interval"||r.type==="time")&&!r.hasBreaks()}var I1=(function(r){U(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=Ml,t}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,a=this.getAxis("y").scale;if(!(!hv(t)||!hv(a))){var n=t.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 f=(s[0]-o[0])/l,c=(s[1]-o[1])/u,h=o[0]-n[0]*f,v=o[1]-i[0]*c,d=this._transform=[f,0,0,c,h,v];this._invTransform=En([],d)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var a=this.getAxis("x"),n=this.getAxis("y");return a.contain(a.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,a){var n=this.dataToPoint(t),i=this.dataToPoint(a),o=this.getArea(),s=new Me(n[0],n[1],i[0]-n[0],i[1]-n[1]);return o.intersect(s)},e.prototype.dataToPoint=function(t,a,n){n=n||[];var i=t[0],o=t[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return Ct(n,t,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},e.prototype.clampData=function(t,a){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,o=n.getExtent(),s=i.getExtent(),l=n.parse(t[0]),u=i.parse(t[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},e.prototype.pointToData=function(t,a,n){if(n=n||[],this._invTransform)return Ct(n,t,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(t[0]),a),n[1]=o.coordToData(o.toLocalCoord(t[1]),a),n},e.prototype.getOtherAxis=function(t){return this.getAxis(t.dim==="x"?"y":"x")},e.prototype.getArea=function(t){t=t||0;var a=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(a[0],a[1])-t,o=Math.min(n[0],n[1])-t,s=Math.max(a[0],a[1])-i+t,l=Math.max(n[0],n[1])-o+t;return new Me(i,o,s,l)},e})(L1),k1=(function(r){U(e,r);function e(t,a,n,i,o){var s=r.call(this,t,a,n)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.getGlobalExtent=function(t){var a=this.getExtent();return a[0]=this.toGlobalCoord(a[0]),a[1]=this.toGlobalCoord(a[1]),t&&a[0]>a[1]&&a.reverse(),a},e.prototype.pointToData=function(t,a){return this.coordToData(this.toLocalCoord(t[this.dim==="x"?0:1]),a)},e.prototype.setCategorySortInfo=function(t){if(this.type!=="category")return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e})(xg),P1="expandAxisBreak",er=Math.PI,R1=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],E1=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],Ln=ne(),jg=ne(),Qg=(function(){function r(e){this.recordMap={},this.resolveAxisNameOverlap=e}return r.prototype.ensureRecord=function(e){var t=e.axis.dim,a=e.componentIndex,n=this.recordMap,i=n[t]||(n[t]=[]);return i[a]||(i[a]={ready:{}})},r})();function O1(r,e,t,a){var n=t.axis,i=e.ensureRecord(t),o=[],s,l=Fu(r.axisName)&&ma(r.nameLocation);T(a,function(d){var p=sr(d);if(!(!p||p.label.ignore)){o.push(p);var y=i.transGroup;l&&(y.transform?En(Ba,y.transform):Oh(Ba),p.transform&&Nh(Ba,Ba,p.transform),Me.copy(pi,p.localRect),pi.applyTransform(Ba),s?s.union(pi):Me.copy(s=new Me(0,0,0,0),pi))}});var u=Math.abs(i.dirVec.x)>.1?"x":"y",f=i.transGroup[u];if(o.sort(function(d,p){return Math.abs(d.label[u]-f)-Math.abs(p.label[u]-f)}),l&&s){var c=n.getExtent(),h=Math.min(c[0],c[1]),v=Math.max(c[0],c[1])-h;s.union(new Me(h,0,v,1))}i.stOccupiedRect=s,i.labelInfoList=o}var Ba=On(),pi=new Me(0,0,0,0),Jg=function(r,e,t,a,n,i){if(ma(r.nameLocation)){var o=i.stOccupiedRect;o&&ey(ww({},o,i.transGroup.transform),a,n)}else ty(i.labelInfoList,i.dirVec,a,n)};function ey(r,e,t){var a=new ge;Bu(r,e,a,{direction:Math.atan2(t.y,t.x),bidirectional:!1,touchThreshold:.05})&&Tw(e,a)}function ty(r,e,t,a){for(var n=ge.dot(a,e)>=0,i=0,o=r.length;i<o;i++){var s=r[n?i:o-1-i];s.label.ignore||ey(s,t,a)}}var Ot=(function(){function r(e,t,a,n){this.group=new le,this._axisModel=e,this._api=t,this._local={},this._shared=n||new Qg(Jg),this._resetCfgDetermined(a)}return r.prototype.updateCfg=function(e){var t=this._cfg.raw;t.position=e.position,t.labelOffset=e.labelOffset,this._resetCfgDetermined(t)},r.prototype.__getRawCfg=function(){return this._cfg.raw},r.prototype._resetCfgDetermined=function(e){var t=this._axisModel,a=t.getDefaultOption?t.getDefaultOption():{},n=j(e.axisName,t.get("name")),i=t.get("nameMoveOverlap");(i==null||i==="auto")&&(i=j(e.defaultNameMoveOverlap,!0));var o={raw:e,position:e.position,rotation:e.rotation,nameDirection:j(e.nameDirection,1),tickDirection:j(e.tickDirection,1),labelDirection:j(e.labelDirection,1),labelOffset:j(e.labelOffset,0),silent:j(e.silent,!0),axisName:n,nameLocation:Rr(t.get("nameLocation"),a.nameLocation,"end"),shouldNameMoveOverlap:Fu(n)&&i,optionHideOverlap:t.get(["axisLabel","hideOverlap"]),showMinorTicks:t.get(["minorTick","show"])};this._cfg=o;var s=new le({x:o.position[0],y:o.position[1],rotation:o.rotation});s.updateTransform(),this._transformGroup=s;var l=this._shared.ensureRecord(t);l.transGroup=this._transformGroup,l.dirVec=new ge(Math.cos(-o.rotation),Math.sin(-o.rotation))},r.prototype.build=function(e,t){var a=this;return e||(e={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),T(N1,function(n){e[n]&&B1[n](a._cfg,a._local,a._shared,a._axisModel,a.group,a._transformGroup,a._api,t||{})}),this},r.innerTextLayout=function(e,t,a){var n=qh(t-e),i,o;return Oi(n)?(o=a>0?"top":"bottom",i="center"):Oi(n-er)?(o=a>0?"bottom":"top",i="center"):(o="middle",n>0&&n<er?i=a>0?"right":"left":i=a>0?"left":"right"),{rotation:n,textAlign:i,textVerticalAlign:o}},r.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},r.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},r})(),N1=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],B1={axisLine:function(r,e,t,a,n,i,o){var s=a.get(["axisLine","show"]);if(s==="auto"&&(s=!0,r.raw.axisLineAutoShow!=null&&(s=!!r.raw.axisLineAutoShow)),!!s){var l=a.axis.getExtent(),u=i.transform,f=[l[0],0],c=[l[1],0],h=f[0]>c[0];u&&(Ct(f,f,u),Ct(c,c,u));var v=F({lineCap:"round"},a.getModel(["axisLine","lineStyle"]).getLineStyle()),d={strokeContainThreshold:r.raw.strokeContainThreshold||5,silent:!0,z2:1,style:v};if(a.get(["axisLine","breakLine"])&&a.axis.scale.hasBreaks())A1().buildAxisBreakLine(a,n,i,d);else{var p=new nr(F({shape:{x1:f[0],y1:f[1],x2:c[0],y2:c[1]}},d));yn(p.shape,p.style.lineWidth),p.anid="line",n.add(p)}var y=a.get(["axisLine","symbol"]);if(y!=null){var g=a.get(["axisLine","symbolSize"]);Z(y)&&(y=[y,y]),(Z(g)||oe(g))&&(g=[g,g]);var m=wo(a.get(["axisLine","symbolOffset"])||0,g),_=g[0],S=g[1];T([{rotate:r.rotation+Math.PI/2,offset:m[0],r:0},{rotate:r.rotation-Math.PI/2,offset:m[1],r:Math.sqrt((f[0]-c[0])*(f[0]-c[0])+(f[1]-c[1])*(f[1]-c[1]))}],function(b,x){if(y[x]!=="none"&&y[x]!=null){var w=dt(y[x],-_/2,-S/2,_,S,v.stroke,!0),D=b.r+b.offset,M=h?c:f;w.attr({rotation:b.rotate,x:M[0]+D*Math.cos(r.rotation),y:M[1]-D*Math.sin(r.rotation),silent:!0,z2:11}),n.add(w)}})}}},axisTickLabelEstimate:function(r,e,t,a,n,i,o,s){var l=pv(e,n,s);l&&dv(r,e,t,a,n,i,o,pt.estimate)},axisTickLabelDetermine:function(r,e,t,a,n,i,o,s){var l=pv(e,n,s);l&&dv(r,e,t,a,n,i,o,pt.determine);var u=F1(r,n,i,a);G1(r,e.labelLayoutList,u),H1(r,n,i,a,r.tickDirection)},axisName:function(r,e,t,a,n,i,o,s){var l=t.ensureRecord(a);e.nameEl&&(n.remove(e.nameEl),e.nameEl=l.nameLayout=l.nameLocation=null);var u=r.axisName;if(Fu(u)){var f=r.nameLocation,c=r.nameDirection,h=a.getModel("nameTextStyle"),v=a.get("nameGap")||0,d=a.axis.getExtent(),p=a.axis.inverse?-1:1,y=new ge(0,0),g=new ge(0,0);f==="start"?(y.x=d[0]-p*v,g.x=-p):f==="end"?(y.x=d[1]+p*v,g.x=p):(y.x=(d[0]+d[1])/2,y.y=r.labelOffset+c*v,g.y=c);var m=On();g.transform(Uh(m,m,r.rotation));var _=a.get("nameRotate");_!=null&&(_=_*er/180);var S,b;ma(f)?S=Ot.innerTextLayout(r.rotation,_??r.rotation,c):(S=V1(r.rotation,f,_||0,d),b=r.raw.axisNameAvailableWidth,b!=null&&(b=Math.abs(b/Math.sin(S.rotation)),!isFinite(b)&&(b=null)));var x=h.getFont(),w=a.get("nameTruncate",!0)||{},D=w.ellipsis,M=Ar(r.raw.nameTruncateMaxWidth,w.maxWidth,b),A=s.nameMarginLevel||0,C=new de({x:y.x,y:y.y,rotation:S.rotation,silent:Ot.isLabelSilent(a),style:Ae(h,{text:u,font:x,overflow:"truncate",width:M,ellipsis:D,fill:h.getTextColor()||a.get(["axisLine","lineStyle","color"]),align:h.get("align")||S.textAlign,verticalAlign:h.get("verticalAlign")||S.textVerticalAlign}),z2:1});if(po({el:C,componentModel:a,itemName:u}),C.__fullText=u,C.anid="name",a.get("triggerEvent")){var I=Ot.makeAxisEventDataBase(a);I.targetType="axisName",I.name=u,te(C).eventData=I}i.add(C),C.updateTransform(),e.nameEl=C;var L=l.nameLayout=sr({label:C,priority:C.z2,defaultAttr:{ignore:C.ignore},marginDefault:ma(f)?R1[A]:E1[A]});if(l.nameLocation=f,n.add(C),C.decomposeTransform(),r.shouldNameMoveOverlap&&L){var E=t.ensureRecord(a);t.resolveAxisNameOverlap(r,t,a,L,g,E)}}}};function dv(r,e,t,a,n,i,o,s){ay(e)||W1(r,e,n,s,a,o);var l=e.labelLayoutList;U1(r,a,l,i),r.rotation;var u=r.optionHideOverlap;z1(a,l,u),u&&Lg(Ce(l,function(f){return f&&!f.label.ignore})),O1(r,t,a,l)}function V1(r,e,t,a){var n=qh(t-r),i,o,s=a[0]>a[1],l=e==="start"&&!s||e!=="start"&&s;return Oi(n-er/2)?(o=l?"bottom":"top",i="center"):Oi(n-er*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",n<er*1.5&&n>er/2?i=l?"left":"right":i=l?"right":"left"),{rotation:n,textAlign:i,textVerticalAlign:o}}function z1(r,e,t){if(cg(r.axis))return;function a(s,l,u){var f=sr(e[l]),c=sr(e[u]);if(!(!f||!c)){if(s===!1||f.suggestIgnore){Ka(f.label);return}if(c.suggestIgnore){Ka(c.label);return}var h=.1;if(!t){var v=[0,0,0,0];f=xl({marginForce:v},f),c=xl({marginForce:v},c)}Bu(f,c,null,{touchThreshold:h})&&Ka(s?c.label:f.label)}}var n=r.get(["axisLabel","showMinLabel"]),i=r.get(["axisLabel","showMaxLabel"]),o=e.length;a(n,0,1),a(i,o-1,o-2)}function G1(r,e,t){r.showMinorTicks||T(e,function(a){if(a&&a.label.ignore)for(var n=0;n<t.length;n++){var i=t[n],o=jg(i),s=Ln(a.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.tickValue){Ka(i);return}}})}function Ka(r){r&&(r.ignore=!0)}function ry(r,e,t,a,n){for(var i=[],o=[],s=[],l=0;l<r.length;l++){var u=r[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=t,e&&(Ct(o,o,e),Ct(s,s,e));var f=new nr({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:a,z2:2,autoBatch:!0,silent:!0});yn(f.shape,f.style.lineWidth),f.anid=n+"_"+r[l].tickValue,i.push(f);var c=jg(f);c.onBand=!!r[l].onBand,c.tickValue=r[l].tickValue}return i}function F1(r,e,t,a){var n=a.axis,i=a.getModel("axisTick"),o=i.get("show");if(o==="auto"&&(o=!0,r.raw.axisTickAutoShow!=null&&(o=!!r.raw.axisTickAutoShow)),!o||n.scale.isBlank())return[];for(var s=i.getModel("lineStyle"),l=r.tickDirection*i.get("length"),u=n.getTicksCoords(),f=ry(u,t.transform,l,ae(s.getLineStyle(),{stroke:a.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<f.length;c++)e.add(f[c]);return f}function H1(r,e,t,a,n){var i=a.axis,o=a.getModel("minorTick");if(!(!r.showMinorTicks||i.scale.isBlank())){var s=i.getMinorTicksCoords();if(s.length)for(var l=o.getModel("lineStyle"),u=n*o.get("length"),f=ae(l.getLineStyle(),ae(a.getModel("axisTick").getLineStyle(),{stroke:a.get(["axisLine","lineStyle","color"])})),c=0;c<s.length;c++)for(var h=ry(s[c],t.transform,u,f,"minorticks_"+c),v=0;v<h.length;v++)e.add(h[v])}}function pv(r,e,t){if(ay(r)){var a=r.axisLabelsCreationContext,n=a.out.noPxChangeTryDetermine;if(t.noPxChange){for(var i=!0,o=0;o<n.length;o++)i=i&&n[o]();if(i)return!1}n.length&&(e.remove(r.labelGroup),Dl(r,null,null,null))}return!0}function W1(r,e,t,a,n,i){var o=n.axis,s=Ar(r.raw.axisLabelShow,n.get(["axisLabel","show"])),l=new le;t.add(l);var u=Qi(a);if(!s||o.scale.isBlank()){Dl(e,[],l,u);return}var f=n.getModel("axisLabel"),c=o.getViewLabels(u),h=(Ar(r.raw.labelRotate,f.get("rotate"))||0)*er/180,v=Ot.innerTextLayout(r.rotation,h,r.labelDirection),d=n.getCategories&&n.getCategories(!0),p=[],y=n.get("triggerEvent"),g=1/0,m=-1/0;T(c,function(S,b){var x,w=o.scale.type==="ordinal"?o.scale.getRawOrdinalNumber(S.tickValue):S.tickValue,D=S.formattedLabel,M=S.rawLabel,A=f;if(d&&d[w]){var C=d[w];K(C)&&C.textStyle&&(A=new he(C.textStyle,f,n.ecModel))}var I=A.getTextColor()||n.get(["axisLine","lineStyle","color"]),L=A.getShallow("align",!0)||v.textAlign,E=j(A.getShallow("alignMinLabel",!0),L),k=j(A.getShallow("alignMaxLabel",!0),L),P=A.getShallow("verticalAlign",!0)||A.getShallow("baseline",!0)||v.textVerticalAlign,V=j(A.getShallow("verticalAlignMinLabel",!0),P),R=j(A.getShallow("verticalAlignMaxLabel",!0),P),O=10+(((x=S.time)===null||x===void 0?void 0:x.level)||0);g=Math.min(g,O),m=Math.max(m,O);var z=new de({x:0,y:0,rotation:0,silent:Ot.isLabelSilent(n),z2:O,style:Ae(A,{text:D,align:b===0?E:b===c.length-1?k:L,verticalAlign:b===0?V:b===c.length-1?R:P,fill:Q(I)?I(o.type==="category"?M:o.type==="value"?w+"":w,b):I})});z.anid="label_"+w;var H=Ln(z);if(H.break=S.break,H.tickValue=w,H.layoutRotation=v.rotation,po({el:z,componentModel:n,itemName:D,formatterParamsExtra:{isTruncated:function(){return z.isTruncated},value:M,tickIndex:b}}),y){var Y=Ot.makeAxisEventDataBase(n);Y.targetType="axisLabel",Y.value=M,Y.tickIndex=b,S.break&&(Y.break={start:S.break.parsedBreak.vmin,end:S.break.parsedBreak.vmax}),o.type==="category"&&(Y.dataIndex=w),te(z).eventData=Y,S.break&&X1(n,i,z,S.break)}p.push(z),l.add(z)});var _=X(p,function(S){return{label:S,priority:Ln(S).break?S.z2+(m-g+1):S.z2,defaultAttr:{ignore:S.ignore}}});Dl(e,_,l,u)}function ay(r){return!!r.labelLayoutList}function Dl(r,e,t,a){r.labelLayoutList=e,r.labelGroup=t,r.axisLabelsCreationContext=a}function U1(r,e,t,a){var n=e.get(["axisLabel","margin"]);T(t,function(i,o){var s=sr(i);if(s){var l=s.label,u=Ln(l);s.suggestIgnore=l.ignore,l.ignore=!1,uf(It,Y1),It.x=e.axis.dataToCoord(u.tickValue),It.y=r.labelOffset+r.labelDirection*n,It.rotation=u.layoutRotation,a.add(It),It.updateTransform(),a.remove(It),It.decomposeTransform(),uf(l,It),l.markRedraw(),ro(s,!0),sr(s)}})}var It=new ve,Y1=new ve;function Fu(r){return!!r}function X1(r,e,t,a){t.on("click",function(n){var i={type:P1,breaks:[{start:a.parsedBreak.breakOption.start,end:a.parsedBreak.breakOption.end}]};i[r.axis.dim+"AxisIndex"]=r.componentIndex,e.dispatchAction(i)})}function no(r,e,t){t=t||{};var a=e.axis,n={},i=a.getAxesOnZeroOf()[0],o=a.position,s=i?"onZero":o,l=a.dim,u=[r.x,r.x+r.width,r.y,r.y+r.height],f={left:0,right:1,top:0,bottom:1,onZero:2},c=e.get("offset")||0,h=l==="x"?[u[2]-c,u[3]+c]:[u[0]-c,u[1]+c];if(i){var v=i.toGlobalCoord(i.dataToCoord(0));h[f.onZero]=Math.max(Math.min(v,h[1]),h[0])}n.position=[l==="y"?h[f[s]]:u[0],l==="x"?h[f[s]]:u[3]],n.rotation=Math.PI/2*(l==="x"?0:1);var d={top:-1,bottom:1,left:-1,right:1};n.labelDirection=n.tickDirection=n.nameDirection=d[o],n.labelOffset=i?h[f[o]]-h[f.onZero]:0,e.get(["axisTick","inside"])&&(n.tickDirection=-n.tickDirection),Ar(t.labelInside,e.get(["axisLabel","inside"]))&&(n.labelDirection=-n.labelDirection);var p=e.get(["axisLabel","rotate"]);return n.labelRotate=s==="top"?-p:p,n.z2=1,n}function Z1(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function gv(r){var e={xAxisModel:null,yAxisModel:null};return T(e,function(t,a){var n=a.replace(/Model$/,""),i=r.getReferringComponents(n,Ze).models[0];e[a]=i}),e}function $1(r,e,t,a,n,i){for(var o=no(r,t),s=!1,l=!1,u=0;u<e.length;u++)pl(e[u].getOtherAxis(t.axis).scale)&&(s=l=!0,t.axis.type==="category"&&t.axis.onBand&&(l=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=l,o.defaultNameMoveOverlap=i,new Ot(t,a,o,n)}function K1(r,e,t){var a=no(e,t);r.updateCfg(a)}function ny(r,e,t){var a=or.prototype,n=a.getTicks.call(t),i=a.getTicks.call(t,{expandToNicedExtent:!0}),o=n.length-1,s=a.getInterval.call(t),l=fg(r,e),u=l.extent,f=l.fixMin,c=l.fixMax;r.type==="log"&&(u=gl(r.base,u,!0)),r.setBreaksFromOption(vg(e)),r.setExtent(u[0],u[1]),r.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:c});var h=a.getExtent.call(r);f&&(u[0]=h[0]),c&&(u[1]=h[1]);var v=a.getInterval.call(r),d=u[0],p=u[1];if(f&&c)v=(p-d)/o;else if(f)for(p=u[0]+v*o;p<u[1]&&isFinite(p)&&isFinite(u[1]);)v=ts(v),p=u[0]+v*o;else if(c)for(d=u[1]-v*o;d>u[0]&&isFinite(d)&&isFinite(u[0]);)v=ts(v),d=u[1]-v*o;else{var y=r.getTicks().length-1;y>o&&(v=ts(v));var g=v*o;p=Math.ceil(u[1]/v)*v,d=ke(p-g),d<0&&u[0]>=0?(d=0,p=ke(g)):p>0&&u[1]<=0&&(p=0,d=-ke(g))}var m=(n[0].value-i[0].value)/s,_=(n[o].value-i[o].value)/s;a.setExtent.call(r,d+v*m,p+v*_),a.setInterval.call(r,v),(m||_)&&a.setNiceExtent.call(r,d+v,p-v)}var yv=[[3,1],[0,2]],q1=(function(){function r(e,t,a){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Ml,this._initCartesian(e,t,a),this.model=e}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(e,t){var a=this._axesMap;this._updateScale(e,this.model);function n(o){var s,l=Le(o),u=l.length;if(u){for(var f=[],c=u-1;c>=0;c--){var h=+l[c],v=o[h],d=v.model,p=v.scale;pl(p)&&d.get("alignTicks")&&d.get("interval")==null?f.push(v):(Bc(p,d),pl(p)&&(s=v))}f.length&&(s||(s=f.pop(),Bc(s.scale,s.model)),T(f,function(y){ny(y.scale,y.model,s.scale)}))}}n(a.x),n(a.y);var i={};T(a.x,function(o){mv(a,"y",o,i)}),T(a.y,function(o){mv(a,"x",o,i)}),this.resize(this.model,t)},r.prototype.resize=function(e,t,a){var n=Nr(e,t),i=this._rect=qe(e.getBoxLayoutParams(),n.refContainer),o=this._axesMap,s=this._coordsList,l=e.get("containLabel");if(iy(o,i),!a){var u=Q1(i,s,o,l,t),f=void 0;if(l)f=xv(i.clone(),"axisLabel",null,i,o,u,n);else{var c=J1(e,i,n),h=c.outerBoundsRect,v=c.parsedOuterBoundsContain,d=c.outerBoundsClamp;h&&(f=xv(h,v,d,i,o,u,n))}oy(i,o,pt.determine,null,f,n)}T(this._coordsList,function(p){p.calcAffineTransform()})},r.prototype.getAxis=function(e,t){var a=this._axesMap[e];if(a!=null)return a[t||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var a="x"+e+"y"+t;return this._coordsMap[a]}K(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var n=0,i=this._coordsList;n<i.length;n++)if(i[n].getAxis("x").index===e||i[n].getAxis("y").index===t)return i[n]},r.prototype.getCartesians=function(){return this._coordsList.slice()},r.prototype.convertToPixel=function(e,t,a){var n=this._findConvertTarget(t);return n.cartesian?n.cartesian.dataToPoint(a):n.axis?n.axis.toGlobalCoord(n.axis.dataToCoord(a)):null},r.prototype.convertFromPixel=function(e,t,a){var n=this._findConvertTarget(t);return n.cartesian?n.cartesian.pointToData(a):n.axis?n.axis.coordToData(n.axis.toLocalCoord(a)):null},r.prototype._findConvertTarget=function(e){var t=e.seriesModel,a=e.xAxisModel||t&&t.getReferringComponents("xAxis",Ze).models[0],n=e.yAxisModel||t&&t.getReferringComponents("yAxis",Ze).models[0],i=e.gridModel,o=this._coordsList,s,l;if(t)s=t.coordinateSystem,fe(o,s)<0&&(s=null);else if(a&&n)s=this.getCartesian(a.componentIndex,n.componentIndex);else if(a)l=this.getAxis("x",a.componentIndex);else if(n)l=this.getAxis("y",n.componentIndex);else if(i){var u=i.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},r.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},r.prototype._initCartesian=function(e,t,a){var n=this,i=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(t.eachComponent("xAxis",u("x"),this),t.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,T(s.x,function(f,c){T(s.y,function(h,v){var d="x"+c+"y"+v,p=new I1(d);p.master=n,p.model=e,n._coordsMap[d]=p,n._coordsList.push(p),p.addAxis(f),p.addAxis(h)})});function u(f){return function(c,h){if(vs(c,e)){var v=c.get("position");f==="x"?v!=="top"&&v!=="bottom"&&(v=o.bottom?"top":"bottom"):v!=="left"&&v!=="right"&&(v=o.left?"right":"left"),o[v]=!0;var d=new k1(f,Qb(c),[0,0],c.get("type"),v),p=d.type==="category";d.onBand=p&&c.get("boundaryGap"),d.inverse=c.get("inverse"),c.axis=d,d.model=c,d.grid=i,d.index=h,i._axesList.push(d),s[f][h]=d,l[f]++}}}},r.prototype._updateScale=function(e,t){T(this._axesList,function(n){if(n.scale.setExtent(1/0,-1/0),n.type==="category"){var i=n.model.get("categorySortInfo");n.scale.setSortInfo(i)}}),e.eachSeries(function(n){if(Z1(n)){var i=gv(n),o=i.xAxisModel,s=i.yAxisModel;if(!vs(o,t)||!vs(s,t))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=n.getData(),f=l.getAxis("x"),c=l.getAxis("y");a(u,f),a(u,c)}},this);function a(n,i){T(ew(n,i.dim),function(o){i.scale.unionExtentFromData(n,o)})}},r.prototype.getTooltipAxes=function(e){var t=[],a=[];return T(this.getCartesians(),function(n){var i=e!=null&&e!=="auto"?n.getAxis(e):n.getBaseAxis(),o=n.getOtherAxis(i);fe(t,i)<0&&t.push(i),fe(a,o)<0&&a.push(o)}),{baseAxes:t,otherAxes:a}},r.create=function(e,t){var a=[];return e.eachComponent("grid",function(n,i){var o=new r(n,e,t);o.name="grid_"+i,o.resize(n,t,!0),n.coordinateSystem=o,a.push(o)}),e.eachSeries(function(n){yu({targetModel:n,coordSysType:"cartesian2d",coordSysProvider:i});function i(){var o=gv(n),s=o.xAxisModel,l=o.yAxisModel,u=s.getCoordSysModel(),f=u.coordinateSystem;return f.getCartesian(s.componentIndex,l.componentIndex)}}),a},r.dimensions=Ml,r})();function vs(r,e){return r.getCoordSysModel()===e}function mv(r,e,t,a){t.getAxesOnZeroOf=function(){return i?[i]:[]};var n=r[e],i,o=t.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)_v(n[l])&&(i=n[l]);else for(var u in n)if(n.hasOwnProperty(u)&&_v(n[u])&&!a[f(n[u])]){i=n[u];break}i&&(a[f(i)]=!0);function f(c){return c.dim+"_"+c.index}}function _v(r){return r&&r.type!=="category"&&r.type!=="time"&&Jb(r)}function j1(r,e){var t=r.getExtent(),a=t[0]+t[1];r.toGlobalCoord=r.dim==="x"?function(n){return n+e}:function(n){return a-n+e},r.toLocalCoord=r.dim==="x"?function(n){return n-e}:function(n){return a-n+e}}function iy(r,e){T(r.x,function(t){return Sv(t,e.x,e.width)}),T(r.y,function(t){return Sv(t,e.y,e.height)})}function Sv(r,e,t){var a=[0,t],n=r.inverse?1:0;r.setExtent(a[n],a[1-n]),j1(r,e)}function xv(r,e,t,a,n,i,o){oy(a,n,pt.estimate,e,!1,o);var s=[0,0,0,0];u(0),u(1),f(a,0,NaN),f(a,1,NaN);var l=Yh(s,function(h){return h>0})==null;return mn(a,s,!0,!0,t),iy(n,a),l;function u(h){T(n[Jt[h]],function(v){if(Mn(v.model)){var d=i.ensureRecord(v.model),p=d.labelInfoList;if(p)for(var y=0;y<p.length;y++){var g=p[y],m=v.scale.normalize(Ln(g.label).tickValue);m=h===1?1-m:m,f(g.rect,h,m),f(g.rect,1-h,NaN)}var _=d.nameLayout;if(_){var m=ma(d.nameLocation)?.5:NaN;f(_.rect,h,m),f(_.rect,1-h,NaN)}}})}function f(h,v,d){var p=r[Jt[v]]-h[Jt[v]],y=h[pa[v]]+h[Jt[v]]-(r[pa[v]]+r[Jt[v]]);p=c(p,1-d),y=c(y,d);var g=yv[v][0],m=yv[v][1];s[g]=$e(s[g],p),s[m]=$e(s[m],y)}function c(h,v){return h>0&&!Tr(v)&&v>1e-4&&(h/=v),h}}function Q1(r,e,t,a,n){var i=new Qg(eT);return T(t,function(o){return T(o,function(s){if(Mn(s.model)){var l=!a;s.axisBuilder=$1(r,e,s.model,n,i,l)}})}),i}function oy(r,e,t,a,n,i){var o=t===pt.determine;T(e,function(u){return T(u,function(f){Mn(f.model)&&(K1(f.axisBuilder,r,f.model),f.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:n}))})});var s={x:0,y:0};l(0),l(1);function l(u){s[Jt[1-u]]=r[pa[u]]<=i.refContainer[pa[u]]*.5?0:1-u===1?2:1}T(e,function(u,f){return T(u,function(c){Mn(c.model)&&((a==="all"||o)&&c.axisBuilder.build({axisName:!0},{nameMarginLevel:s[f]}),o&&c.axisBuilder.build({axisLine:!0}))})})}function J1(r,e,t){var a,n=r.get("outerBoundsMode",!0);n==="same"?a=e.clone():(n==null||n==="auto")&&(a=qe(r.get("outerBounds",!0)||$g,t.refContainer));var i=r.get("outerBoundsContain",!0),o;i==null||i==="auto"||fe(["all","axisLabel"],i)<0?o="all":o=i;var s=[Gs(j(r.get("outerBoundsClampWidth",!0),ao[0]),e.width),Gs(j(r.get("outerBoundsClampHeight",!0),ao[1]),e.height)];return{outerBoundsRect:a,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var eT=function(r,e,t,a,n,i){var o=t.axis.dim==="x"?"y":"x";Jg(r,e,t,a,n,i),ma(r.nameLocation)||T(e.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&ty(s.labelInfoList,s.dirVec,a,n)})};function tT(r,e){var t={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return rT(t,r,e),t.seriesInvolved&&nT(t,r),t}function rT(r,e,t){var a=e.getComponent("tooltip"),n=e.getComponent("axisPointer"),i=n.get("link",!0)||[],o=[];T(t.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=In(s.model),u=r.coordSysAxesInfo[l]={};r.coordSysMap[l]=s;var f=s.model,c=f.getModel("tooltip",a);if(T(s.getAxes(),ye(p,!1,null)),s.getTooltipAxes&&a&&c.get("show")){var h=c.get("trigger")==="axis",v=c.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(c.get(["axisPointer","axis"]));(h||v)&&T(d.baseAxes,ye(p,v?"cross":!0,h)),v&&T(d.otherAxes,ye(p,"cross",!1))}function p(y,g,m){var _=m.model.getModel("axisPointer",n),S=_.get("show");if(!(!S||S==="auto"&&!y&&!Al(_))){g==null&&(g=_.get("triggerTooltip")),_=y?aT(m,c,n,e,y,g):_;var b=_.get("snap"),x=_.get("triggerEmphasis"),w=In(m.model),D=g||b||m.type==="category",M=r.axesInfo[w]={key:w,axis:m,coordSys:s,axisPointerModel:_,triggerTooltip:g,triggerEmphasis:x,involveSeries:D,snap:b,useHandle:Al(_),seriesModels:[],linkGroup:null};u[w]=M,r.seriesInvolved=r.seriesInvolved||D;var A=iT(i,m);if(A!=null){var C=o[A]||(o[A]={axesInfo:{}});C.axesInfo[w]=M,C.mapper=i[A].mapper,M.linkGroup=C}}}})}function aT(r,e,t,a,n,i){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};T(s,function(h){l[h]=q(o.get(h))}),l.snap=r.type!=="category"&&!!i,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),n==="cross"){var f=o.get(["label","show"]);if(u.show=f??!0,!i){var c=l.lineStyle=o.get("crossStyle");c&&ae(u,c.textStyle)}}return r.model.getModel("axisPointer",new he(l,t,a))}function nT(r,e){e.eachSeries(function(t){var a=t.coordinateSystem,n=t.get(["tooltip","trigger"],!0),i=t.get(["tooltip","show"],!0);!a||!a.model||n==="none"||n===!1||n==="item"||i===!1||t.get(["axisPointer","show"],!0)===!1||T(r.coordSysAxesInfo[In(a.model)],function(o){var s=o.axis;a.getAxis(s.dim)===s&&(o.seriesModels.push(t),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=t.getData().count())})})}function iT(r,e){for(var t=e.model,a=e.dim,n=0;n<r.length;n++){var i=r[n]||{};if(hs(i[a+"AxisId"],t.id)||hs(i[a+"AxisIndex"],t.componentIndex)||hs(i[a+"AxisName"],t.name))return n}}function hs(r,e){return r==="all"||N(r)&&fe(r,e)>=0||r===e}function oT(r){var e=Hu(r);if(e){var t=e.axisPointerModel,a=e.axis.scale,n=t.option,i=t.get("status"),o=t.get("value");o!=null&&(o=a.parse(o));var s=Al(t);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]),o<l[0]&&(o=l[0]),n.value=o,s&&(n.status=e.axis.scale.isBlank()?"hide":"show")}}function Hu(r){var e=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[In(r)]}function sT(r){var e=Hu(r);return e&&e.axisPointerModel}function Al(r){return!!r.get(["handle","show"])}function In(r){return r.type+"||"+r.id}var bv={},sy=(function(r){U(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n,i){this.axisPointerClass&&oT(t),r.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,n,!0)},e.prototype.updateAxisPointer=function(t,a,n,i){this._doUpdateAxisPointerClass(t,n,!1)},e.prototype.remove=function(t,a){var n=this._axisPointer;n&&n.remove(a)},e.prototype.dispose=function(t,a){this._disposeAxisPointer(a),r.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,a,n){var i=e.getAxisPointerClass(this.axisPointerClass);if(i){var o=sT(t);o?(this._axisPointer||(this._axisPointer=new i)).render(t,o,a,n):this._disposeAxisPointer(a)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,a){bv[t]=a},e.getAxisPointerClass=function(t){return t&&bv[t]},e.type="axis",e})(Ue),Ll=ne();function lT(r,e,t,a){var n=t.axis;if(!n.scale.isBlank()){var i=t.getModel("splitArea"),o=i.getModel("areaStyle"),s=o.get("color"),l=a.coordinateSystem.getRect(),u=n.getTicksCoords({tickModel:i,clamp:!0,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(u.length){var f=s.length,c=Ll(r).splitAreaColors,h=ee(),v=0;if(c)for(var d=0;d<u.length;d++){var p=c.get(u[d].tickValue);if(p!=null){v=(p+(f-1)*d)%f;break}}var y=n.toGlobalCoord(u[0].coord),g=o.getAreaStyle();s=N(s)?s:[s];for(var d=1;d<u.length;d++){var m=n.toGlobalCoord(u[d].coord),_=void 0,S=void 0,b=void 0,x=void 0;n.isHorizontal()?(_=y,S=l.y,b=m-_,x=l.height,y=_+b):(_=l.x,S=y,b=l.width,x=m-S,y=S+x);var w=u[d-1].tickValue;w!=null&&h.set(w,v),e.add(new ve({anid:w!=null?"area_"+w:null,shape:{x:_,y:S,width:b,height:x},style:ae({fill:s[v]},g),autoBatch:!0,silent:!0})),v=(v+1)%f}Ll(r).splitAreaColors=h}}}function uT(r){Ll(r).splitAreaColors=null}var fT=["splitArea","splitLine","minorSplitLine","breakArea"],ly=(function(r){U(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="CartesianAxisPointer",t}return e.prototype.render=function(t,a,n,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new le,this.group.add(this._axisGroup),!!Mn(t)){this._axisGroup.add(t.axis.axisBuilder.group),T(fT,function(l){t.get([l,"show"])&&cT[l](this,this._axisGroup,t,t.getCoordSysModel(),n)},this);var s=i&&i.type==="changeAxisOrder"&&i.isInitSort;s||xd(o,this._axisGroup,t),r.prototype.render.call(this,t,a,n,i)}},e.prototype.remove=function(){uT(this)},e.type="cartesianAxis",e})(sy),cT={splitLine:function(r,e,t,a,n){var i=t.axis;if(!i.scale.isBlank()){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=o.get("showMinLine")!==!1,f=o.get("showMaxLine")!==!1;l=N(l)?l:[l];for(var c=a.coordinateSystem.getRect(),h=i.isHorizontal(),v=0,d=i.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),p=[],y=[],g=s.getLineStyle(),m=0;m<d.length;m++){var _=i.toGlobalCoord(d[m].coord);if(!(m===0&&!u||m===d.length-1&&!f)){var S=d[m].tickValue;h?(p[0]=_,p[1]=c.y,y[0]=_,y[1]=c.y+c.height):(p[0]=c.x,p[1]=_,y[0]=c.x+c.width,y[1]=_);var b=v++%l.length,x=new nr({anid:S!=null?"line_"+S:null,autoBatch:!0,shape:{x1:p[0],y1:p[1],x2:y[0],y2:y[1]},style:ae({stroke:l[b]},g),silent:!0});yn(x.shape,g.lineWidth),e.add(x)}}}},minorSplitLine:function(r,e,t,a,n){var i=t.axis,o=t.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=a.coordinateSystem.getRect(),u=i.isHorizontal(),f=i.getMinorTicksCoords();if(f.length)for(var c=[],h=[],v=s.getLineStyle(),d=0;d<f.length;d++)for(var p=0;p<f[d].length;p++){var y=i.toGlobalCoord(f[d][p].coord);u?(c[0]=y,c[1]=l.y,h[0]=y,h[1]=l.y+l.height):(c[0]=l.x,c[1]=y,h[0]=l.x+l.width,h[1]=y);var g=new nr({anid:"minor_line_"+f[d][p].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:h[0],y2:h[1]},style:v,silent:!0});yn(g.shape,v.lineWidth),e.add(g)}},splitArea:function(r,e,t,a,n){lT(r,e,t,a)},breakArea:function(r,e,t,a,n){t.axis.scale}},uy=(function(r){U(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="xAxis",e})(ly),vT=(function(r){U(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=uy.type,t}return e.type="yAxis",e})(ly),hT=(function(r){U(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="grid",t}return e.prototype.render=function(t,a){this.group.removeAll(),t.get("show")&&this.group.add(new ve({shape:t.coordinateSystem.getRect(),style:ae({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e})(Ue),wv={offset:0};function dT(r){r.registerComponentView(hT),r.registerComponentModel(b1),r.registerCoordinateSystem("cartesian2d",q1),cv(r,"x",Cl,wv),cv(r,"y",Cl,wv),r.registerComponentView(uy),r.registerComponentView(vT),r.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}function pT(r){r.eachSeriesByType("radar",function(e){var t=e.getData(),a=[],n=e.coordinateSystem;if(n){var i=n.getIndicatorAxes();T(i,function(o,s){t.each(t.mapDimension(i[s].dim),function(l,u){a[u]=a[u]||[];var f=n.dataToPoint(l,s);a[u][s]=Tv(f)?f:Cv(n)})}),t.each(function(o){var s=Yh(a[o],function(l){return Tv(l)})||Cv(n);a[o].push(s.slice()),t.setItemLayout(o,a[o])})}})}function Tv(r){return!isNaN(r[0])&&!isNaN(r[1])}function Cv(r){return[r.cx,r.cy]}function gT(r){var e=r.polar;if(e){N(e)||(e=[e]);var t=[];T(e,function(a,n){a.indicator?(a.type&&!a.shape&&(a.shape=a.type),r.radar=r.radar||[],N(r.radar)||(r.radar=[r.radar]),r.radar.push(a)):t.push(a)}),r.polar=t}T(r.series,function(a){a&&a.type==="radar"&&a.polarIndex&&(a.radarIndex=a.polarIndex)})}var yT=(function(r){U(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=t.coordinateSystem,o=this.group,s=t.getData(),l=this._data;function u(h,v){var d=h.getItemVisual(v,"symbol")||"circle";if(d!=="none"){var p=bo(h.getItemVisual(v,"symbolSize")),y=dt(d,-1,-1,2,2),g=h.getItemVisual(v,"symbolRotate")||0;return y.attr({style:{strokeNoScale:!0},z2:100,scaleX:p[0]/2,scaleY:p[1]/2,rotation:g*Math.PI/180||0}),y}}function f(h,v,d,p,y,g){d.removeAll();for(var m=0;m<v.length-1;m++){var _=u(p,y);_&&(_.__dimIdx=m,h[m]?(_.setPosition(h[m]),Cd[g?"initProps":"updateProps"](_,{x:v[m][0],y:v[m][1]},t,y)):_.setPosition(v[m]),d.add(_))}}function c(h){return X(h,function(v){return[i.cx,i.cy]})}s.diff(l).add(function(h){var v=s.getItemLayout(h);if(v){var d=new Nn,p=new Pr,y={shape:{points:v}};d.shape.points=c(v),p.shape.points=c(v),Pe(d,y,t,h),Pe(p,y,t,h);var g=new le,m=new le;g.add(p),g.add(d),g.add(m),f(p.shape.points,v,m,s,h,!0),s.setItemGraphicEl(h,g)}}).update(function(h,v){var d=l.getItemGraphicEl(v),p=d.childAt(0),y=d.childAt(1),g=d.childAt(2),m={shape:{points:s.getItemLayout(h)}};m.shape.points&&(f(p.shape.points,m.shape.points,g,s,h,!1),pn(y),pn(p),Se(p,m,t),Se(y,m,t),s.setItemGraphicEl(h,d))}).remove(function(h){o.remove(l.getItemGraphicEl(h))}).execute(),s.eachItemGraphicEl(function(h,v){var d=s.getItemModel(v),p=h.childAt(0),y=h.childAt(1),g=h.childAt(2),m=s.getItemVisual(v,"style"),_=m.fill;o.add(h),p.useStyle(ae(d.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:_})),da(p,d,"lineStyle"),da(y,d,"areaStyle");var S=d.getModel("areaStyle"),b=S.isEmpty()&&S.parentModel.isEmpty();y.ignore=b,T(["emphasis","select","blur"],function(w){var D=d.getModel([w,"areaStyle"]),M=D.isEmpty()&&D.parentModel.isEmpty();y.ensureState(w).ignore=M&&b;var A=d.getModel([w,"lineStyle"]).getLineStyle();p.ensureState(w).style=A;var C=D.getAreaStyle();y.ensureState(w).style=C;var I=d.getModel([w,"itemStyle"]).getItemStyle();g.eachChild(function(L){L.ensureState(w).style=q(I)})}),y.useStyle(ae(d.getModel("areaStyle").getAreaStyle(),{fill:_,opacity:.7,decal:m.decal}));var x=d.getModel("emphasis");g.eachChild(function(w){if(w instanceof Gt){var D=w.style;w.useStyle(F({image:D.image,x:D.x,y:D.y,width:D.width,height:D.height},m))}else w.useStyle(m),w.setColor(_),w.style.strokeNoScale=!0;var M=s.getStore().get(s.getDimensionIndex(w.__dimIdx),v);(M==null||isNaN(M))&&(M=""),ur(w,Mt(d),{labelFetcher:s.hostModel,labelDataIndex:v,labelDimIndex:w.__dimIdx,defaultText:M,inheritColor:_,defaultOpacity:m.opacity})}),Vt(h,x.get("focus"),x.get("blurScope"),x.get("disabled"))}),this._data=s},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type="radar",e})(Re),mT=(function(r){U(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new zu($(this.getData,this),$(this.getRawData,this))},e.prototype.getInitialData=function(t,a){return Xg(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(t,a,n){var i=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),l=this.getData().getName(t),u=l===""?this.name:l,f=dp(this,t);return ir("section",{header:u,sortBlocks:!0,blocks:X(s,function(c){var h=i.get(i.mapDimension(c.dim),t);return ir("nameValue",{markerType:"subItem",markerColor:f,name:c.name,value:h,sortParam:h})})})},e.prototype.getTooltipPosition=function(t){if(t!=null){for(var a=this.getData(),n=this.coordinateSystem,i=a.getValues(X(n.dimensions,function(u){return a.mapDimension(u)}),t),o=0,s=i.length;o<s;o++)if(!isNaN(i[o])){var l=n.getIndicatorAxes();return n.coordToPoint(l[o].dataToCoord(i[o]),o)}}},e.type="series.radar",e.dependencies=["radar"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},e})(Ne),Va=qg.value;function gi(r,e){return ae({show:e},r)}var _T=(function(r){U(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){var t=this.get("boundaryGap"),a=this.get("splitNumber"),n=this.get("scale"),i=this.get("axisLine"),o=this.get("axisTick"),s=this.get("axisLabel"),l=this.get("axisName"),u=this.get(["axisName","show"]),f=this.get(["axisName","formatter"]),c=this.get("axisNameGap"),h=this.get("triggerEvent"),v=X(this.get("indicator")||[],function(d){d.max!=null&&d.max>0&&!d.min?d.min=0:d.min!=null&&d.min<0&&!d.max&&(d.max=0);var p=l;d.color!=null&&(p=ae({color:d.color},l));var y=ue(q(d),{boundaryGap:t,splitNumber:a,scale:n,axisLine:i,axisTick:o,axisLabel:s,name:d.text,showName:u,nameLocation:"end",nameGap:c,nameTextStyle:p,triggerEvent:h},!1);if(Z(f)){var g=y.name;y.name=f.replace("{value}",g??"")}else Q(f)&&(y.name=f(y.name,y));var m=new he(y,null,this.ecModel);return gt(m,hg.prototype),m.mainType="radar",m.componentIndex=this.componentIndex,m},this);this._indicatorModels=v},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"50%",startAngle:90,axisName:{show:!0,color:B.color.axisLabel},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:ue({lineStyle:{color:B.color.neutral20}},Va.axisLine),axisLabel:gi(Va.axisLabel,!1),axisTick:gi(Va.axisTick,!1),splitLine:gi(Va.splitLine,!0),splitArea:gi(Va.splitArea,!0),indicator:[]},e})(ie),ST=(function(r){U(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=this.group;i.removeAll(),this._buildAxes(t,n),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t,a){var n=t.coordinateSystem,i=n.getIndicatorAxes(),o=X(i,function(s){var l=s.model.get("showName")?s.name:"",u=new Ot(s.model,a,{axisName:l,position:[n.cx,n.cy],rotation:s.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return u});T(o,function(s){s.build(),this.group.add(s.group)},this)},e.prototype._buildSplitLineAndArea=function(t){var a=t.coordinateSystem,n=a.getIndicatorAxes();if(!n.length)return;var i=t.get("shape"),o=t.getModel("splitLine"),s=t.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),f=o.get("show"),c=s.get("show"),h=l.get("color"),v=u.get("color"),d=N(h)?h:[h],p=N(v)?v:[v],y=[],g=[];function m(k,P,V){var R=V%P.length;return k[R]=k[R]||[],R}if(i==="circle")for(var _=n[0].getTicksCoords(),S=a.cx,b=a.cy,x=0;x<_.length;x++){if(f){var w=m(y,d,x);y[w].push(new uo({shape:{cx:S,cy:b,r:_[x].coord}}))}if(c&&x<_.length-1){var w=m(g,p,x);g[w].push(new Hl({shape:{cx:S,cy:b,r0:_[x].coord,r:_[x+1].coord}}))}}else for(var D,M=X(n,function(k,P){var V=k.getTicksCoords();return D=D==null?V.length-1:Math.min(V.length-1,D),X(V,function(R){return a.coordToPoint(R.coord,P)})}),A=[],x=0;x<=D;x++){for(var C=[],I=0;I<n.length;I++)C.push(M[I][x]);if(C[0]&&C.push(C[0].slice()),f){var w=m(y,d,x);y[w].push(new Pr({shape:{points:C}}))}if(c&&A){var w=m(g,p,x-1);g[w].push(new Nn({shape:{points:C.concat(A)}}))}A=C.slice().reverse()}var L=l.getLineStyle(),E=u.getAreaStyle();T(g,function(k,P){this.group.add(Ks(k,{style:ae({stroke:"none",fill:p[P%p.length]},E),silent:!0}))},this),T(y,function(k,P){this.group.add(Ks(k,{style:ae({fill:"none",stroke:d[P%d.length]},L),silent:!0}))},this)},e.type="radar",e})(Ue),xT=(function(r){U(e,r);function e(t,a,n){var i=r.call(this,t,a,n)||this;return i.type="value",i.angle=0,i.name="",i}return e})(xg),bT=(function(){function r(e,t,a){this.dimensions=[],this._model=e,this._indicatorAxes=X(e.getIndicatorModels(),function(n,i){var o="indicator_"+i,s=new xT(o,new or);return s.name=n.get("name"),s.model=n,n.axis=s,this.dimensions.push(o),s},this),this.resize(e,a)}return r.prototype.getIndicatorAxes=function(){return this._indicatorAxes},r.prototype.dataToPoint=function(e,t){var a=this._indicatorAxes[t];return this.coordToPoint(a.dataToCoord(e),t)},r.prototype.coordToPoint=function(e,t){var a=this._indicatorAxes[t],n=a.angle,i=this.cx+e*Math.cos(n),o=this.cy-e*Math.sin(n);return[i,o]},r.prototype.pointToData=function(e){var t=e[0]-this.cx,a=e[1]-this.cy,n=Math.sqrt(t*t+a*a);t/=n,a/=n;for(var i=Math.atan2(-a,t),o=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var f=this._indicatorAxes[u],c=Math.abs(i-f.angle);c<o&&(s=f,l=u,o=c)}return[l,+(s&&s.coordToData(n))]},r.prototype.resize=function(e,t){var a=Nr(e,t).refContainer,n=e.get("center"),i=Math.min(a.width,a.height)/2;this.cx=re(n[0],a.width)+a.x,this.cy=re(n[1],a.height)+a.y,this.startAngle=e.get("startAngle")*Math.PI/180;var o=e.get("radius");(Z(o)||oe(o))&&(o=[0,o]),this.r0=re(o[0],i),this.r=re(o[1],i),T(this._indicatorAxes,function(s,l){s.setExtent(this.r0,this.r);var u=this.startAngle+l*Math.PI*2/this._indicatorAxes.length;u=Math.atan2(Math.sin(u),Math.cos(u)),s.angle=u},this)},r.prototype.update=function(e,t){var a=this._indicatorAxes,n=this._model;T(a,function(s){s.scale.setExtent(1/0,-1/0)}),e.eachSeriesByType("radar",function(s,l){if(!(s.get("coordinateSystem")!=="radar"||e.getComponent("radar",s.get("radarIndex"))!==n)){var u=s.getData();T(a,function(f){f.scale.unionExtentFromData(u,u.mapDimension(f.dim))})}},this);var i=n.get("splitNumber"),o=new or;o.setExtent(0,i),o.setInterval(1),T(a,function(s,l){ny(s.scale,s.model,o)})},r.prototype.convertToPixel=function(e,t,a){return console.warn("Not implemented."),null},r.prototype.convertFromPixel=function(e,t,a){return console.warn("Not implemented."),null},r.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},r.create=function(e,t){var a=[];return e.eachComponent("radar",function(n){var i=new r(n,e,t);a.push(i),n.coordinateSystem=i}),e.eachSeriesByType("radar",function(n){n.get("coordinateSystem")==="radar"&&(n.coordinateSystem=a[n.get("radarIndex")||0])}),a},r.dimensions=[],r})();function wT(r){r.registerCoordinateSystem("radar",bT),r.registerComponentModel(_T),r.registerComponentView(ST),r.registerVisual({seriesType:"radar",reset:function(e){var t=e.getData();t.each(function(a){t.setItemVisual(a,"legendIcon","roundRect")}),t.setVisual("legendIcon","roundRect")}})}function KD(r){ot(wT),r.registerChartView(yT),r.registerSeriesModel(mT),r.registerLayout(pT),r.registerProcessor(Wg("radar")),r.registerPreprocessor(gT)}var TT=ne();function Mv(r,e){return!!TT(r)[e]}Vr({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},nt);var CT={axisPointer:1,tooltip:1,brush:1};function MT(r,e,t){var a=e.getComponentByElement(r.topTarget);if(!a||a===t||CT.hasOwnProperty(a.mainType))return!1;var n=a.coordinateSystem;if(!n||n.model===t)return!1;var i=Sn(a),o=Sn(t);return!((i.zlevel-o.zlevel||i.z-o.z)<=0)}var DT=(function(r){U(e,r);function e(t){var a=r.call(this)||this;a._zr=t;var n=$(a._mousedownHandler,a),i=$(a._mousemoveHandler,a),o=$(a._mouseupHandler,a),s=$(a._mousewheelHandler,a),l=$(a._pinchHandler,a);return a.enable=function(u,f){var c=f.zInfo,h=Sn(c.component),v=h.z,d=h.zlevel,p={component:c.component,z:v,zlevel:d,z2:j(c.z2,-1/0)},y=F({},f.triggerInfo);this._opt=ae(F({},f),{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0,zInfoParsed:p,triggerInfo:y}),u==null&&(u=!0),(!this._enabled||this._controlType!==u)&&(this._enabled=!0,this.disable(),(u===!0||u==="move"||u==="pan")&&(Ga(t,"mousedown",n,p),Ga(t,"mousemove",i,p),Ga(t,"mouseup",o,p)),(u===!0||u==="scale"||u==="zoom")&&(Ga(t,"mousewheel",s,p),Ga(t,"pinch",l,p)))},a.disable=function(){this._enabled=!1,Fa(t,"mousedown",n),Fa(t,"mousemove",i),Fa(t,"mouseup",o),Fa(t,"mousewheel",s),Fa(t,"pinch",l)},a}return e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype._checkPointer=function(t,a,n){var i=this._opt,o=i.zInfoParsed;if(MT(t,i.api,o.component))return!1;var s=i.triggerInfo,l=s.roamTrigger,u=!1;return l==="global"&&(u=!0),u||(u=s.isInSelf(t,a,n)),u&&s.isInClip&&!s.isInClip(t,a,n)&&(u=!1),u},e.prototype._decideCursorStyle=function(t,a,n,i){var o=t.target;if(!o&&this._checkPointer(t,a,n))return"grab";if(i)return o&&o.cursor||"default"},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(t){if(!(ff(t)||za(t))){for(var a=t.target;a;){if(a.draggable)return;a=a.__hostTarget||a.parent}var n=t.offsetX,i=t.offsetY;this._checkPointer(t,n,i)&&(this._x=n,this._y=i,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){var a=this._zr;if(!(t.gestureEvent==="pinch"||Mv(a,"globalPan")||za(t))){var n=t.offsetX,i=t.offsetY;if(!this._dragging||!Ii("moveOnMouseMove",t,this._opt)){var o=this._decideCursorStyle(t,n,i,!1);o&&a.setCursorStyle(o);return}a.setCursorStyle("grabbing");var s=this._x,l=this._y,u=n-s,f=i-l;this._x=n,this._y=i,this._opt.preventDefaultMouseMove&&ha(t.event),t.__ecRoamConsumed=!0,Dv(this,"pan","moveOnMouseMove",t,{dx:u,dy:f,oldX:s,oldY:l,newX:n,newY:i,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){if(!za(t)){var a=this._zr;if(!ff(t)){this._dragging=!1;var n=this._decideCursorStyle(t,t.offsetX,t.offsetY,!0);n&&a.setCursorStyle(n)}}},e.prototype._mousewheelHandler=function(t){if(!za(t)){var a=Ii("zoomOnMouseWheel",t,this._opt),n=Ii("moveOnMouseWheel",t,this._opt),i=t.wheelDelta,o=Math.abs(i),s=t.offsetX,l=t.offsetY;if(!(i===0||!a&&!n)){if(a){var u=o>3?1.4:o>1?1.2:1.1,f=i>0?u:1/u;this._checkTriggerMoveZoom(this,"zoom","zoomOnMouseWheel",t,{scale:f,originX:s,originY:l,isAvailableBehavior:null})}if(n){var c=Math.abs(i),h=(i>0?1:-1)*(c>3?.4:c>1?.15:.05);this._checkTriggerMoveZoom(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:h,originX:s,originY:l,isAvailableBehavior:null})}}}},e.prototype._pinchHandler=function(t){if(!(Mv(this._zr,"globalPan")||za(t))){var a=t.pinchScale>1?1.1:1/1.1;this._checkTriggerMoveZoom(this,"zoom",null,t,{scale:a,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e.prototype._checkTriggerMoveZoom=function(t,a,n,i,o){t._checkPointer(i,o.originX,o.originY)&&(ha(i.event),i.__ecRoamConsumed=!0,Dv(t,a,n,i,o))},e})(Vn);function za(r){return r.__ecRoamConsumed}var AT=ne();function Mo(r){var e=AT(r);return e.roam=e.roam||{},e.uniform=e.uniform||{},e}function Ga(r,e,t,a){for(var n=Mo(r),i=n.roam,o=i[e]=i[e]||[],s=0;s<o.length;s++){var l=o[s].zInfoParsed;if((l.zlevel-a.zlevel||l.z-a.z||l.z2-a.z2)<=0)break}o.splice(s,0,{listener:t,zInfoParsed:a}),LT(r,e)}function Fa(r,e,t){for(var a=Mo(r),n=a.roam[e]||[],i=0;i<n.length;i++)if(n[i].listener===t){n.splice(i,1),n.length||IT(r,e);return}}function LT(r,e){var t=Mo(r);t.uniform[e]||r.on(e,t.uniform[e]=function(a){var n=t.roam[e];if(n)for(var i=0;i<n.length;i++)n[i].listener(a)})}function IT(r,e){var t=Mo(r),a=t.uniform;a[e]&&(r.off(e,a[e]),a[e]=null)}function Dv(r,e,t,a,n){n.isAvailableBehavior=$(Ii,null,t,a),r.trigger(e,n)}function Ii(r,e,t){var a=t[r];return!r||a&&(!Z(a)||e.event[a+"Key"])}function kT(r,e,t){var a=r.target;a.x+=e,a.y+=t,a.dirty()}function PT(r,e,t,a){var n=r.target,i=r.zoomLimit,o=r.zoom=r.zoom||1;o*=e,o=Wu(o,i);var s=o/r.zoom;r.zoom=o,fy(n,t,a,s),n.dirty()}function Av(r,e){return r.pointToProjected?r.pointToProjected(e):r.pointToData(e)}function RT(r,e,t){var a=r.getZoom(),n=r.getCenter(),i=e.zoom,o=r.projectedToPoint?r.projectedToPoint(n):r.dataToPoint(n);return e.dx!=null&&e.dy!=null&&(o[0]-=e.dx,o[1]-=e.dy,r.setCenter(Av(r,o))),i!=null&&(i=Wu(a*i,t)/a,fy(r,e.originX,e.originY,i),r.updateTransform(),r.setCenter(Av(r,o)),r.setZoom(i*a)),{center:r.getCenter(),zoom:r.getZoom()}}function fy(r,e,t,a){r.x-=(e-r.x)*(a-1),r.y-=(t-r.y)*(a-1),r.scaleX*=a,r.scaleY*=a}function Wu(r,e){if(e){var t=e.min||0,a=e.max||1/0;r=Math.max(Math.min(a,r),t)}return r}var Lv=Ct,cy=(function(r){U(e,r);function e(t,a){var n=r.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new aa,n._rawTransformable=new aa,n.name=t,n._opt=a,n}return e.prototype.setBoundingRect=function(t,a,n,i){return this._rect=new Me(t,a,n,i),this._updateCenterAndZoom(),this._rect},e.prototype.getBoundingRect=function(){return this._rect},e.prototype.setViewRect=function(t,a,n,i){this._transformTo(t,a,n,i),this._viewRect=new Me(t,a,n,i)},e.prototype._transformTo=function(t,a,n,i){var o=this.getBoundingRect(),s=this._rawTransformable;s.transform=o.calculateTransform(new Me(t,a,n,i));var l=s.parent;s.parent=null,s.decomposeTransform(),s.parent=l,this._updateTransform()},e.prototype.setCenter=function(t){var a=this._opt;a&&a.api&&a.ecModel&&a.ecModel.getShallow("legacyViewCoordSysCenterBase")&&t&&(t=[re(t[0],a.api.getWidth()),re(t[1],a.api.getWidth())]),this._centerOption=q(t),this._updateCenterAndZoom()},e.prototype.setZoom=function(t){this._zoom=Wu(t||1,this.zoomLimit),this._updateCenterAndZoom()},e.prototype.getDefaultCenter=function(){var t=this.getBoundingRect(),a=t.x+t.width/2,n=t.y+t.height/2;return[a,n]},e.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},e.prototype.getZoom=function(){return this._zoom||1},e.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},e.prototype._updateCenterAndZoom=function(){var t=this._centerOption,a=this._rect;t&&a&&(this._center=[re(t[0],a.width,a.x),re(t[1],a.height,a.y)]);var n=this._rawTransformable.getLocalTransform(),i=this._roamTransformable,o=this.getDefaultCenter(),s=this.getCenter(),l=this.getZoom();s=Ct([],s,n),o=Ct([],o,n),i.originX=s[0],i.originY=s[1],i.x=o[0]-s[0],i.y=o[1]-s[1],i.scaleX=i.scaleY=l,this._updateTransform()},e.prototype._updateTransform=function(){var t=this._roamTransformable,a=this._rawTransformable;a.parent=t,t.updateTransform(),a.updateTransform(),Bh(this.transform||(this.transform=[]),a.transform||On()),this._rawTransform=a.getLocalTransform(),this.invTransform=this.invTransform||[],En(this.invTransform,this.transform),this.decomposeTransform()},e.prototype.getTransformInfo=function(){var t=this._rawTransformable,a=this._roamTransformable,n=new aa;return n.transform=a.transform,n.decomposeTransform(),{roam:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY},raw:{x:t.x,y:t.y,scaleX:t.scaleX,scaleY:t.scaleY}}},e.prototype.getViewRect=function(){return this._viewRect},e.prototype.getViewRectAfterRoam=function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},e.prototype.dataToPoint=function(t,a,n){var i=a?this._rawTransform:this.transform;return n=n||[],i?Lv(n,t,i):He(n,t)},e.prototype.pointToData=function(t,a,n){n=n||[];var i=this.invTransform;return i?Lv(n,t,i):(n[0]=t[0],n[1]=t[1],n)},e.prototype.convertToPixel=function(t,a,n){var i=Iv(a);return i===this?i.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,a,n){var i=Iv(a);return i===this?i.pointToData(n):null},e.prototype.containPoint=function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])},e.dimensions=["x","y"],e})(aa);function Iv(r){var e=r.seriesModel;return e?e.coordinateSystem:null}var at=ne();function ET(r){var e=r.mainData,t=r.datas;t||(t={main:e},r.datasAttr={main:"data"}),r.datas=r.mainData=null,vy(e,t,r),T(t,function(a){T(e.TRANSFERABLE_METHODS,function(n){a.wrapMethod(n,ye(OT,r))})}),e.wrapMethod("cloneShallow",ye(BT,r)),T(e.CHANGABLE_METHODS,function(a){e.wrapMethod(a,ye(NT,r))}),ht(t[e.dataType]===e)}function OT(r,e){if(GT(this)){var t=F({},at(this).datas);t[this.dataType]=e,vy(e,t,r)}else Uu(e,this.dataType,at(this).mainData,r);return e}function NT(r,e){return r.struct&&r.struct.update(),e}function BT(r,e){return T(at(e).datas,function(t,a){t!==e&&Uu(t.cloneShallow(),a,e,r)}),e}function VT(r){var e=at(this).mainData;return r==null||e==null?e:at(e).datas[r]}function zT(){var r=at(this).mainData;return r==null?[{data:r}]:X(Le(at(r).datas),function(e){return{type:e,data:at(r).datas[e]}})}function GT(r){return at(r).mainData===r}function vy(r,e,t){at(r).datas={},T(e,function(a,n){Uu(a,n,r,t)})}function Uu(r,e,t,a){at(t).datas[e]=r,at(r).mainData=t,r.dataType=e,a.struct&&(r[a.structAttr]=a.struct,a.struct[a.datasAttr[e]]=r),r.getLinkedData=VT,r.getLinkedDataAll=zT}var kn=T,FT=K,io=-1,ze=(function(){function r(e){var t=e.mappingMethod,a=e.type,n=this.option=q(e);this.type=a,this.mappingMethod=t,this._normalizeData=UT[t];var i=r.visualHandlers[a];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[t],t==="piecewise"?(ds(n),HT(n)):t==="category"?n.categories?WT(n):ds(n,!0):(ht(t!=="linear"||n.dataExtent),ds(n))}return r.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},r.prototype.getNormalizer=function(){return $(this._normalizeData,this)},r.listVisualTypes=function(){return Le(r.visualHandlers)},r.isValidType=function(e){return r.visualHandlers.hasOwnProperty(e)},r.eachVisual=function(e,t,a){K(e)?T(e,t,a):t.call(a,e)},r.mapVisual=function(e,t,a){var n,i=N(e)?[]:K(e)?{}:(n=!0,null);return r.eachVisual(e,function(o,s){var l=t.call(a,o,s);n?i=l:i[s]=l}),i},r.retrieveVisuals=function(e){var t={},a;return e&&kn(r.visualHandlers,function(n,i){e.hasOwnProperty(i)&&(t[i]=e[i],a=!0)}),a?t:null},r.prepareVisualTypes=function(e){if(N(e))e=e.slice();else if(FT(e)){var t=[];kn(e,function(a,n){t.push(n)}),e=t}else return[];return e.sort(function(a,n){return n==="color"&&a!=="color"&&a.indexOf("color")===0?1:-1}),e},r.dependsOn=function(e,t){return t==="color"?!!(e&&e.indexOf(t)===0):e===t},r.findPieceIndex=function(e,t,a){for(var n,i=1/0,o=0,s=t.length;o<s;o++){var l=t[o].value;if(l!=null){if(l===e||Z(l)&&l===e+"")return o;a&&h(l,o)}}for(var o=0,s=t.length;o<s;o++){var u=t[o],f=u.interval,c=u.close;if(f){if(f[0]===-1/0){if(mi(c[1],e,f[1]))return o}else if(f[1]===1/0){if(mi(c[0],f[0],e))return o}else if(mi(c[0],f[0],e)&&mi(c[1],e,f[1]))return o;a&&h(f[0],o),a&&h(f[1],o)}}if(a)return e===1/0?t.length-1:e===-1/0?0:n;function h(v,d){var p=Math.abs(v-e);p<i&&(i=p,n=d)}},r.visualHandlers={color:{applyVisual:Ha("color"),getColorMapper:function(){var e=this.option;return $(e.mappingMethod==="category"?function(t,a){return!a&&(t=this._normalizeData(t)),qa.call(this,t)}:function(t,a,n){var i=!!n;return!a&&(t=this._normalizeData(t)),n=Po(t,e.parsedVisual,n),i?n:xi(n,"rgba")},this)},_normalizedToVisual:{linear:function(e){return xi(Po(e,this.option.parsedVisual),"rgba")},category:qa,piecewise:function(e,t){var a=kl.call(this,t);return a==null&&(a=xi(Po(e,this.option.parsedVisual),"rgba")),a},fixed:Sr}},colorHue:yi(function(e,t){return sa(e,t)}),colorSaturation:yi(function(e,t){return sa(e,null,t)}),colorLightness:yi(function(e,t){return sa(e,null,null,t)}),colorAlpha:yi(function(e,t){return hm(e,t)}),decal:{applyVisual:Ha("decal"),_normalizedToVisual:{linear:null,category:qa,piecewise:null,fixed:null}},opacity:{applyVisual:Ha("opacity"),_normalizedToVisual:Il([0,1])},liftZ:{applyVisual:Ha("liftZ"),_normalizedToVisual:{linear:Sr,category:Sr,piecewise:Sr,fixed:Sr}},symbol:{applyVisual:function(e,t,a){var n=this.mapValueToVisual(e);a("symbol",n)},_normalizedToVisual:{linear:kv,category:qa,piecewise:function(e,t){var a=kl.call(this,t);return a==null&&(a=kv.call(this,e)),a},fixed:Sr}},symbolSize:{applyVisual:Ha("symbolSize"),_normalizedToVisual:Il([0,1])}},r})();function HT(r){var e=r.pieceList;r.hasSpecialVisual=!1,T(e,function(t,a){t.originIndex=a,t.visual!=null&&(r.hasSpecialVisual=!0)})}function WT(r){var e=r.categories,t=r.categoryMap={},a=r.visual;if(kn(e,function(o,s){t[o]=s}),!N(a)){var n=[];K(a)?kn(a,function(o,s){var l=t[s];n[l??io]=o}):n[io]=a,a=hy(r,n)}for(var i=e.length-1;i>=0;i--)a[i]==null&&(delete t[e[i]],e.pop())}function ds(r,e){var t=r.visual,a=[];K(t)?kn(t,function(i){a.push(i)}):t!=null&&a.push(t);var n={color:1,symbol:1};!e&&a.length===1&&!n.hasOwnProperty(r.type)&&(a[1]=a[0]),hy(r,a)}function yi(r){return{applyVisual:function(e,t,a){var n=this.mapValueToVisual(e);a("color",r(t("color"),n))},_normalizedToVisual:Il([0,1])}}function kv(r){var e=this.option.visual;return e[Math.round(it(r,[0,1],[0,e.length-1],!0))]||{}}function Ha(r){return function(e,t,a){a(r,this.mapValueToVisual(e))}}function qa(r){var e=this.option.visual;return e[this.option.loop&&r!==io?r%e.length:r]}function Sr(){return this.option.visual[0]}function Il(r){return{linear:function(e){return it(e,r,this.option.visual,!0)},category:qa,piecewise:function(e,t){var a=kl.call(this,t);return a==null&&(a=it(e,r,this.option.visual,!0)),a},fixed:Sr}}function kl(r){var e=this.option,t=e.pieceList;if(e.hasSpecialVisual){var a=ze.findPieceIndex(r,t),n=t[a];if(n&&n.visual)return n.visual[this.type]}}function hy(r,e){return r.visual=e,r.type==="color"&&(r.parsedVisual=X(e,function(t){var a=Xh(t);return a||[0,0,0,1]})),e}var UT={linear:function(r){return it(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var e=this.option.pieceList,t=ze.findPieceIndex(r,e,!0);if(t!=null)return it(t,[0,e.length-1],[0,1],!0)},category:function(r){var e=this.option.categories?this.option.categoryMap[r]:r;return e??io},fixed:nt};function mi(r,e,t){return r?e<=t:e<t}function YT(r){var e=r.findComponents({mainType:"legend"});!e||!e.length||r.eachSeriesByType("graph",function(t){var a=t.getCategoriesData(),n=t.getGraph(),i=n.data,o=a.mapArray(a.getName);i.filterSelf(function(s){var l=i.getItemModel(s),u=l.getShallow("category");if(u!=null){oe(u)&&(u=o[u]);for(var f=0;f<e.length;f++)if(!e[f].isSelected(u))return!1}return!0})})}function XT(r){var e={};r.eachSeriesByType("graph",function(t){var a=t.getCategoriesData(),n=t.getData(),i={};a.each(function(o){var s=a.getName(o);i["ec-"+s]=o;var l=a.getItemModel(o),u=l.getModel("itemStyle").getItemStyle();u.fill||(u.fill=t.getColorFromPalette(s,e)),a.setItemVisual(o,"style",u);for(var f=["symbol","symbolSize","symbolKeepAspect"],c=0;c<f.length;c++){var h=l.getShallow(f[c],!0);h!=null&&a.setItemVisual(o,f[c],h)}}),a.count()&&n.each(function(o){var s=n.getItemModel(o),l=s.getShallow("category");if(l!=null){Z(l)&&(l=i["ec-"+l]);var u=a.getItemVisual(l,"style"),f=n.ensureUniqueItemVisual(o,"style");F(f,u);for(var c=["symbol","symbolSize","symbolKeepAspect"],h=0;h<c.length;h++)n.setItemVisual(o,c[h],a.getItemVisual(l,c[h]))}})})}function _i(r){return r instanceof Array||(r=[r,r]),r}function ZT(r){r.eachSeriesByType("graph",function(e){var t=e.getGraph(),a=e.getEdgeData(),n=_i(e.get("edgeSymbol")),i=_i(e.get("edgeSymbolSize"));a.setVisual("fromSymbol",n&&n[0]),a.setVisual("toSymbol",n&&n[1]),a.setVisual("fromSymbolSize",i&&i[0]),a.setVisual("toSymbolSize",i&&i[1]),a.setVisual("style",e.getModel("lineStyle").getLineStyle()),a.each(function(o){var s=a.getItemModel(o),l=t.getEdgeByIndex(o),u=_i(s.getShallow("symbol",!0)),f=_i(s.getShallow("symbolSize",!0)),c=s.getModel("lineStyle").getLineStyle(),h=a.ensureUniqueItemVisual(o,"style");switch(F(h,c),h.stroke){case"source":{var v=l.node1.getVisual("style");h.stroke=v&&v.fill;break}case"target":{var v=l.node2.getVisual("style");h.stroke=v&&v.fill;break}}u[0]&&l.setVisual("fromSymbol",u[0]),u[1]&&l.setVisual("toSymbol",u[1]),f[0]&&l.setVisual("fromSymbolSize",f[0]),f[1]&&l.setVisual("toSymbolSize",f[1])})})}var Pl="-->",Do=function(r){return r.get("autoCurveness")||null},dy=function(r,e){var t=Do(r),a=20,n=[];if(oe(t))a=t;else if(N(t)){r.__curvenessList=t;return}e>a&&(a=e);var i=a%2?a+2:a+3;n=[];for(var o=0;o<i;o++)n.push((o%2?o+1:o)/10*(o%2?-1:1));r.__curvenessList=n},Pn=function(r,e,t){var a=[r.id,r.dataIndex].join("."),n=[e.id,e.dataIndex].join(".");return[t.uid,a,n].join(Pl)},py=function(r){var e=r.split(Pl);return[e[0],e[2],e[1]].join(Pl)},$T=function(r,e){var t=Pn(r.node1,r.node2,e);return e.__edgeMap[t]},KT=function(r,e){var t=Rl(Pn(r.node1,r.node2,e),e),a=Rl(Pn(r.node2,r.node1,e),e);return t+a},Rl=function(r,e){var t=e.__edgeMap;return t[r]?t[r].length:0};function qT(r){Do(r)&&(r.__curvenessList=[],r.__edgeMap={},dy(r))}function jT(r,e,t,a){if(Do(t)){var n=Pn(r,e,t),i=t.__edgeMap,o=i[py(n)];i[n]&&!o?i[n].isForward=!0:o&&i[n]&&(o.isForward=!0,i[n].isForward=!1),i[n]=i[n]||[],i[n].push(a)}}function Yu(r,e,t,a){var n=Do(e),i=N(n);if(!n)return null;var o=$T(r,e);if(!o)return null;for(var s=-1,l=0;l<o.length;l++)if(o[l]===t){s=l;break}var u=KT(r,e);dy(e,u),r.lineStyle=r.lineStyle||{};var f=Pn(r.node1,r.node2,e),c=e.__curvenessList,h=i||u%2?0:1;if(o.isForward)return c[h+s];var v=py(f),d=Rl(v,e),p=c[s+d+h];return a?i?n&&n[0]===0?(d+h)%2?p:-p:((d%2?0:1)+h)%2?p:-p:(d+h)%2?p:-p:c[s+d+h]}function gy(r){var e=r.coordinateSystem;if(!(e&&e.type!=="view")){var t=r.getGraph();t.eachNode(function(a){var n=a.getModel();a.setLayout([+n.get("x"),+n.get("y")])}),Xu(t,r)}}function Xu(r,e){r.eachEdge(function(t,a){var n=Rr(t.getModel().get(["lineStyle","curveness"]),-Yu(t,e,a,!0),0),i=rr(t.node1.getLayout()),o=rr(t.node2.getLayout()),s=[i,o];+n&&s.push([(i[0]+o[0])/2-(i[1]-o[1])*n,(i[1]+o[1])/2-(o[0]-i[0])*n]),t.setLayout(s)})}function QT(r,e){r.eachSeriesByType("graph",function(t){var a=t.get("layout"),n=t.coordinateSystem;if(n&&n.type!=="view"){var i=t.getData(),o=[];T(n.dimensions,function(h){o=o.concat(i.mapDimensionsAll(h))});for(var s=0;s<i.count();s++){for(var l=[],u=!1,f=0;f<o.length;f++){var c=i.get(o[f],s);isNaN(c)||(u=!0),l.push(c)}u?i.setItemLayout(s,n.dataToPoint(l)):i.setItemLayout(s,[NaN,NaN])}Xu(i.graph,t)}else(!a||a==="none")&&gy(t)})}function ja(r){var e=r.coordinateSystem;if(e.type!=="view")return 1;var t=r.option.nodeScaleRatio,a=e.scaleX,n=e.getZoom(),i=(n-1)*t+1;return i/a}function Qa(r){var e=r.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),+e}var Pv=Math.PI,ps=[];function Zu(r,e,t,a){var n=r.coordinateSystem;if(!(n&&n.type!=="view")){var i=n.getBoundingRect(),o=r.getData(),s=o.graph,l=i.width/2+i.x,u=i.height/2+i.y,f=Math.min(i.width,i.height)/2,c=o.count();if(o.setLayout({cx:l,cy:u}),!!c){if(t){var h=n.pointToData(a),v=h[0],d=h[1],p=[v-l,d-u];zn(p,p),dm(p,p,f),t.setLayout([l+p[0],u+p[1]],!0);var y=r.get(["circular","rotateLabel"]);yy(t,y,l,u)}JT[e](r,s,o,f,l,u,c),s.eachEdge(function(g,m){var _=Rr(g.getModel().get(["lineStyle","curveness"]),Yu(g,r,m),0),S=rr(g.node1.getLayout()),b=rr(g.node2.getLayout()),x,w=(S[0]+b[0])/2,D=(S[1]+b[1])/2;+_&&(_*=3,x=[l*_+w*(1-_),u*_+D*(1-_)]),g.setLayout([S,b,x])})}}}var JT={value:function(r,e,t,a,n,i,o){var s=0,l=t.getSum("value"),u=Math.PI*2/(l||o);e.eachNode(function(f){var c=f.getValue("value"),h=u*(l?c:1)/2;s+=h,f.setLayout([a*Math.cos(s)+n,a*Math.sin(s)+i]),s+=h})},symbolSize:function(r,e,t,a,n,i,o){var s=0;ps.length=o;var l=ja(r);e.eachNode(function(c){var h=Qa(c);isNaN(h)&&(h=2),h<0&&(h=0),h*=l;var v=Math.asin(h/2/a);isNaN(v)&&(v=Pv/2),ps[c.dataIndex]=v,s+=v*2});var u=(2*Pv-s)/o/2,f=0;e.eachNode(function(c){var h=u+ps[c.dataIndex];f+=h,(!c.getLayout()||!c.getLayout().fixed)&&c.setLayout([a*Math.cos(f)+n,a*Math.sin(f)+i]),f+=h})}};function yy(r,e,t,a){var n=r.getGraphicEl();if(n){var i=r.getModel(),o=i.get(["label","rotate"])||0,s=n.getSymbolPath();if(e){var l=r.getLayout(),u=Math.atan2(l[1]-a,l[0]-t);u<0&&(u=Math.PI*2+u);var f=l[0]<t;f&&(u=u-Math.PI);var c=f?"left":"right";s.setTextConfig({rotation:-u,position:c,origin:"center"});var h=s.ensureState("emphasis");F(h.textConfig||(h.textConfig={}),{position:c})}else s.setTextConfig({rotation:o*=Math.PI/180})}}function eC(r){r.eachSeriesByType("graph",function(e){e.get("layout")==="circular"&&Zu(e,"symbolSize")})}var jr=zs;function tC(r,e,t){for(var a=r,n=e,i=t.rect,o=i.width,s=i.height,l=[i.x+o/2,i.y+s/2],u=t.gravity==null?.1:t.gravity,f=0;f<a.length;f++){var c=a[f];c.p||(c.p=pm(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),c.pp=rr(c.p),c.edges=null}var h=t.friction==null?.6:t.friction,v=h,d,p;return{warmUp:function(){v=h*.8},setFixed:function(y){a[y].fixed=!0},setUnfixed:function(y){a[y].fixed=!1},beforeStep:function(y){d=y},afterStep:function(y){p=y},step:function(y){d&&d(a,n);for(var g=[],m=a.length,_=0;_<n.length;_++){var S=n[_];if(!S.ignoreForceLayout){var b=S.n1,x=S.n2;na(g,x.p,b.p);var w=cf(g)-S.d,D=x.w/(b.w+x.w);isNaN(D)&&(D=0),zn(g,g),!b.fixed&&jr(b.p,b.p,g,D*w*v),!x.fixed&&jr(x.p,x.p,g,-(1-D)*w*v)}}for(var _=0;_<m;_++){var M=a[_];M.fixed||(na(g,l,M.p),jr(M.p,M.p,g,u*v))}for(var _=0;_<m;_++)for(var b=a[_],A=_+1;A<m;A++){var x=a[A];na(g,x.p,b.p);var w=cf(g);w===0&&(gm(g,Math.random()-.5,Math.random()-.5),w=1);var C=(b.rep+x.rep)/w/w;!b.fixed&&jr(b.pp,b.pp,g,C),!x.fixed&&jr(x.pp,x.pp,g,-C)}for(var I=[],_=0;_<m;_++){var M=a[_];M.fixed||(na(I,M.p,M.pp),jr(M.p,M.p,I,v),He(M.pp,M.p))}v=v*.992;var L=v<.01;p&&p(a,n,L),y&&y(L)}}}function rC(r){r.eachSeriesByType("graph",function(e){var t=e.coordinateSystem;if(!(t&&t.type!=="view"))if(e.get("layout")==="force"){var a=e.preservedPoints||{},n=e.getGraph(),i=n.data,o=n.edgeData,s=e.getModel("force"),l=s.get("initLayout");e.preservedPoints?i.each(function(_){var S=i.getId(_);i.setItemLayout(_,a[S]||[NaN,NaN])}):!l||l==="none"?gy(e):l==="circular"&&Zu(e,"value");var u=i.getDataExtent("value"),f=o.getDataExtent("value"),c=s.get("repulsion"),h=s.get("edgeLength"),v=N(c)?c:[c,c],d=N(h)?h:[h,h];d=[d[1],d[0]];var p=i.mapArray("value",function(_,S){var b=i.getItemLayout(S),x=it(_,u,v);return isNaN(x)&&(x=(v[0]+v[1])/2),{w:x,rep:x,fixed:i.getItemModel(S).get("fixed"),p:!b||isNaN(b[0])||isNaN(b[1])?null:b}}),y=o.mapArray("value",function(_,S){var b=n.getEdgeByIndex(S),x=it(_,f,d);isNaN(x)&&(x=(d[0]+d[1])/2);var w=b.getModel(),D=Rr(b.getModel().get(["lineStyle","curveness"]),-Yu(b,e,S,!0),0);return{n1:p[b.node1.dataIndex],n2:p[b.node2.dataIndex],d:x,curveness:D,ignoreForceLayout:w.get("ignoreForceLayout")}}),g=t.getBoundingRect(),m=tC(p,y,{rect:g,gravity:s.get("gravity"),friction:s.get("friction")});m.beforeStep(function(_,S){for(var b=0,x=_.length;b<x;b++)_[b].fixed&&He(_[b].p,n.getNodeByIndex(b).getLayout())}),m.afterStep(function(_,S,b){for(var x=0,w=_.length;x<w;x++)_[x].fixed||n.getNodeByIndex(x).setLayout(_[x].p),a[i.getId(x)]=_[x].p;for(var x=0,w=S.length;x<w;x++){var D=S[x],M=n.getEdgeByIndex(x),A=D.n1.p,C=D.n2.p,I=M.getLayout();I=I?I.slice():[],I[0]=I[0]||[],I[1]=I[1]||[],He(I[0],A),He(I[1],C),+D.curveness&&(I[2]=[(A[0]+C[0])/2-(A[1]-C[1])*D.curveness,(A[1]+C[1])/2-(C[0]-A[0])*D.curveness]),M.setLayout(I)}}),e.forceLayout=m,e.preservedPoints=a,m.step()}else e.forceLayout=null})}function aC(r,e,t){var a=Nr(r,e),n=F(r.getBoxLayoutParams(),{aspect:t}),i=qe(n,a.refContainer);return M_(r,i,t)}function nC(r,e){var t=[];return r.eachSeriesByType("graph",function(a){yu({targetModel:a,coordSysType:"view",coordSysProvider:n,isDefaultDataCoordSys:!0});function n(){var i=a.getData(),o=i.mapArray(function(d){var p=i.getItemModel(d);return[+p.get("x"),+p.get("y")]}),s=[],l=[];ym(o,s,l),l[0]-s[0]===0&&(l[0]+=1,s[0]-=1),l[1]-s[1]===0&&(l[1]+=1,s[1]-=1);var u=(l[0]-s[0])/(l[1]-s[1]),f=aC(a,e,u);isNaN(u)&&(s=[f.x,f.y],l=[f.x+f.width,f.y+f.height]);var c=l[0]-s[0],h=l[1]-s[1],v=new cy(null,{api:e,ecModel:r});return v.zoomLimit=a.get("scaleLimit"),v.setBoundingRect(s[0],s[1],c,h),v.setViewRect(f.x,f.y,f.width,f.height),v.setCenter(a.get("center")),v.setZoom(a.get("zoom")),t.push(v),v}}),t}var Rv=nr.prototype,gs=Wl.prototype,my=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r})();(function(r){U(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e})(my);function ys(r){return isNaN(+r.cpx1)||isNaN(+r.cpy1)}var _y=(function(r){U(e,r);function e(t){var a=r.call(this,t)||this;return a.type="ec-line",a}return e.prototype.getDefaultStyle=function(){return{stroke:B.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new my},e.prototype.buildPath=function(t,a){ys(a)?Rv.buildPath.call(this,t,a):gs.buildPath.call(this,t,a)},e.prototype.pointAt=function(t){return ys(this.shape)?Rv.pointAt.call(this,t):gs.pointAt.call(this,t)},e.prototype.tangentAt=function(t){var a=this.shape,n=ys(a)?[a.x2-a.x1,a.y2-a.y1]:gs.tangentAt.call(this,t);return zn(n,n)},e})(Be),ms=["fromSymbol","toSymbol"];function Ev(r){return"_"+r+"Type"}function Ov(r,e,t){var a=e.getItemVisual(t,r);if(!a||a==="none")return a;var n=e.getItemVisual(t,r+"Size"),i=e.getItemVisual(t,r+"Rotate"),o=e.getItemVisual(t,r+"Offset"),s=e.getItemVisual(t,r+"KeepAspect"),l=bo(n),u=wo(o||0,l);return a+l+u+(i||"")+(s||"")}function Nv(r,e,t){var a=e.getItemVisual(t,r);if(!(!a||a==="none")){var n=e.getItemVisual(t,r+"Size"),i=e.getItemVisual(t,r+"Rotate"),o=e.getItemVisual(t,r+"Offset"),s=e.getItemVisual(t,r+"KeepAspect"),l=bo(n),u=wo(o||0,l),f=dt(a,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return f.__specifiedRotation=i==null||isNaN(i)?void 0:+i*Math.PI/180||0,f.name=r,f}}function iC(r){var e=new _y({name:"line",subPixelOptimize:!0});return El(e.shape,r),e}function El(r,e){r.x1=e[0][0],r.y1=e[0][1],r.x2=e[1][0],r.y2=e[1][1],r.percent=1;var t=e[2];t?(r.cpx1=t[0],r.cpy1=t[1]):(r.cpx1=NaN,r.cpy1=NaN)}var oC=(function(r){U(e,r);function e(t,a,n){var i=r.call(this)||this;return i._createLine(t,a,n),i}return e.prototype._createLine=function(t,a,n){var i=t.hostModel,o=t.getItemLayout(a),s=t.getItemVisual(a,"z2"),l=iC(o);l.shape.percent=0,Pe(l,{z2:j(s,0),shape:{percent:1}},i,a),this.add(l),T(ms,function(u){var f=Nv(u,t,a);this.add(f),this[Ev(u)]=Ov(u,t,a)},this),this._updateCommonStl(t,a,n)},e.prototype.updateData=function(t,a,n){var i=t.hostModel,o=this.childOfName("line"),s=t.getItemLayout(a),l={shape:{}};El(l.shape,s),Se(o,l,i,a),T(ms,function(u){var f=Ov(u,t,a),c=Ev(u);if(this[c]!==f){this.remove(this.childOfName(u));var h=Nv(u,t,a);this.add(h)}this[c]=f},this),this._updateCommonStl(t,a,n)},e.prototype.getLinePath=function(){return this.childAt(0)},e.prototype._updateCommonStl=function(t,a,n){var i=t.hostModel,o=this.childOfName("line"),s=n&&n.emphasisLineStyle,l=n&&n.blurLineStyle,u=n&&n.selectLineStyle,f=n&&n.labelStatesModels,c=n&&n.emphasisDisabled,h=n&&n.focus,v=n&&n.blurScope;if(!n||t.hasItemOption){var d=t.getItemModel(a),p=d.getModel("emphasis");s=p.getModel("lineStyle").getLineStyle(),l=d.getModel(["blur","lineStyle"]).getLineStyle(),u=d.getModel(["select","lineStyle"]).getLineStyle(),c=p.get("disabled"),h=p.get("focus"),v=p.get("blurScope"),f=Mt(d)}var y=t.getItemVisual(a,"style"),g=y.stroke;o.useStyle(y),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=s,o.ensureState("blur").style=l,o.ensureState("select").style=u,T(ms,function(x){var w=this.childOfName(x);if(w){w.setColor(g),w.style.opacity=y.opacity;for(var D=0;D<Xe.length;D++){var M=Xe[D],A=o.getState(M);if(A){var C=A.style||{},I=w.ensureState(M),L=I.style||(I.style={});C.stroke!=null&&(L[w.__isEmptyBrush?"stroke":"fill"]=C.stroke),C.opacity!=null&&(L.opacity=C.opacity)}}w.markRedraw()}},this);var m=i.getRawValue(a);ur(this,f,{labelDataIndex:a,labelFetcher:{getFormattedLabel:function(x,w){return i.getFormattedLabel(x,w,t.dataType)}},inheritColor:g||B.color.neutral99,defaultOpacity:y.opacity,defaultText:(m==null?t.getName(a):isFinite(m)?ke(m):m)+""});var _=this.getTextContent();if(_){var S=f.normal;_.__align=_.style.align,_.__verticalAlign=_.style.verticalAlign,_.__position=S.get("position")||"middle";var b=S.get("distance");N(b)||(b=[b,b]),_.__labelDistance=b}this.setTextConfig({position:null,local:!0,inside:!1}),Vt(this,h,v,c)},e.prototype.highlight=function(){hn(this)},e.prototype.downplay=function(){dn(this)},e.prototype.updateLayout=function(t,a){this.setLinePoints(t.getItemLayout(a))},e.prototype.setLinePoints=function(t){var a=this.childOfName("line");El(a.shape,t),a.dirty()},e.prototype.beforeUpdate=function(){var t=this,a=t.childOfName("fromSymbol"),n=t.childOfName("toSymbol"),i=t.getTextContent();if(!a&&!n&&(!i||i.ignore))return;for(var o=1,s=this.parent;s;)s.scaleX&&(o/=s.scaleX),s=s.parent;var l=t.childOfName("line");if(!this.__dirty&&!l.__dirty)return;var u=l.shape.percent,f=l.pointAt(0),c=l.pointAt(u),h=na([],c,f);zn(h,h);function v(A,C){var I=A.__specifiedRotation;if(I==null){var L=l.tangentAt(C);A.attr("rotation",(C===1?-1:1)*Math.PI/2-Math.atan2(L[1],L[0]))}else A.attr("rotation",I)}if(a&&(a.setPosition(f),v(a,0),a.scaleX=a.scaleY=o*u,a.markRedraw()),n&&(n.setPosition(c),v(n,1),n.scaleX=n.scaleY=o*u,n.markRedraw()),i&&!i.ignore){i.x=i.y=0,i.originX=i.originY=0;var d=void 0,p=void 0,y=i.__labelDistance,g=y[0]*o,m=y[1]*o,_=u/2,S=l.tangentAt(_),b=[S[1],-S[0]],x=l.pointAt(_);b[1]>0&&(b[0]=-b[0],b[1]=-b[1]);var w=S[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var D=-Math.atan2(S[1],S[0]);c[0]<f[0]&&(D=Math.PI+D),i.rotation=D}var M=void 0;switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":M=-m,p="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":M=m,p="top";break;default:M=0,p="middle"}switch(i.__position){case"end":i.x=h[0]*g+c[0],i.y=h[1]*m+c[1],d=h[0]>.8?"left":h[0]<-.8?"right":"center",p=h[1]>.8?"top":h[1]<-.8?"bottom":"middle";break;case"start":i.x=-h[0]*g+f[0],i.y=-h[1]*m+f[1],d=h[0]>.8?"right":h[0]<-.8?"left":"center",p=h[1]>.8?"bottom":h[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=g*w+f[0],i.y=f[1]+M,d=S[0]<0?"right":"left",i.originX=-g*w,i.originY=-M;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=x[0],i.y=x[1]+M,d="center",i.originY=-M;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-g*w+c[0],i.y=c[1]+M,d=S[0]>=0?"right":"left",i.originX=g*w,i.originY=-M;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||p,align:i.__align||d})}},e})(le),sC=(function(){function r(e){this.group=new le,this._LineCtor=e||oC}return r.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var a=this,n=a.group,i=a._lineData;a._lineData=e,i||n.removeAll();var o=Bv(e);e.diff(i).add(function(s){t._doAdd(e,s,o)}).update(function(s,l){t._doUpdate(i,e,l,s,o)}).remove(function(s){n.remove(i.getItemGraphicEl(s))}).execute()},r.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(t,a){t.updateLayout(e,a)},this)},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=Bv(e),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t){this._progressiveEls=[];function a(s){!s.isGroup&&!lC(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var n=e.start;n<e.end;n++){var i=t.getItemLayout(n);if(_s(i)){var o=new this._LineCtor(t,n,this._seriesScope);o.traverse(a),this.group.add(o),t.setItemGraphicEl(n,o),this._progressiveEls.push(o)}}},r.prototype.remove=function(){this.group.removeAll()},r.prototype.eachRendered=function(e){Or(this._progressiveEls||this.group,e)},r.prototype._doAdd=function(e,t,a){var n=e.getItemLayout(t);if(_s(n)){var i=new this._LineCtor(e,t,a);e.setItemGraphicEl(t,i),this.group.add(i)}},r.prototype._doUpdate=function(e,t,a,n,i){var o=e.getItemGraphicEl(a);if(!_s(t.getItemLayout(n))){this.group.remove(o);return}o?o.updateData(t,n,i):o=new this._LineCtor(t,n,i),t.setItemGraphicEl(n,o),this.group.add(o)},r})();function lC(r){return r.animators&&r.animators.length>0}function Bv(r){var e=r.hostModel,t=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:t.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:t.get("disabled"),blurScope:t.get("blurScope"),focus:t.get("focus"),labelStatesModels:Mt(e)}}function Vv(r){return isNaN(r[0])||isNaN(r[1])}function _s(r){return r&&!Vv(r[0])&&!Vv(r[1])}var Ss=[],xs=[],bs=[],Qr=_m,ws=Sm,zv=Math.abs;function Gv(r,e,t){for(var a=r[0],n=r[1],i=r[2],o=1/0,s,l=t*t,u=.1,f=.1;f<=.9;f+=.1){Ss[0]=Qr(a[0],n[0],i[0],f),Ss[1]=Qr(a[1],n[1],i[1],f);var c=zv(ws(Ss,e)-l);c<o&&(o=c,s=f)}for(var h=0;h<32;h++){var v=s+u;xs[0]=Qr(a[0],n[0],i[0],s),xs[1]=Qr(a[1],n[1],i[1],s),bs[0]=Qr(a[0],n[0],i[0],v),bs[1]=Qr(a[1],n[1],i[1],v);var c=ws(xs,e)-l;if(zv(c)<.01)break;var d=ws(bs,e)-l;u/=2,c<0?d>=0?s=s+u:s=s-u:d>=0?s=s-u:s=s+u}return s}function Ts(r,e){var t=[],a=mm,n=[[],[],[]],i=[[],[]],o=[];e/=2,r.eachEdge(function(s,l){var u=s.getLayout(),f=s.getVisual("fromSymbol"),c=s.getVisual("toSymbol");u.__original||(u.__original=[rr(u[0]),rr(u[1])],u[2]&&u.__original.push(rr(u[2])));var h=u.__original;if(u[2]!=null){if(He(n[0],h[0]),He(n[1],h[2]),He(n[2],h[1]),f&&f!=="none"){var v=Qa(s.node1),d=Gv(n,h[0],v*e);a(n[0][0],n[1][0],n[2][0],d,t),n[0][0]=t[3],n[1][0]=t[4],a(n[0][1],n[1][1],n[2][1],d,t),n[0][1]=t[3],n[1][1]=t[4]}if(c&&c!=="none"){var v=Qa(s.node2),d=Gv(n,h[1],v*e);a(n[0][0],n[1][0],n[2][0],d,t),n[1][0]=t[1],n[2][0]=t[2],a(n[0][1],n[1][1],n[2][1],d,t),n[1][1]=t[1],n[2][1]=t[2]}He(u[0],n[0]),He(u[1],n[2]),He(u[2],n[1])}else{if(He(i[0],h[0]),He(i[1],h[1]),na(o,i[1],i[0]),zn(o,o),f&&f!=="none"){var v=Qa(s.node1);zs(i[0],i[0],o,v*e)}if(c&&c!=="none"){var v=Qa(s.node2);zs(i[1],i[1],o,-v*e)}He(u[0],i[0]),He(u[1],i[1])}})}var uC=ne();function fC(r){if(r)return uC(r).bridge}function Fv(r){return r.type==="view"}var cC=(function(r){U(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a){var n=new kg,i=new sC,o=this.group,s=new le;this._controller=new DT(a.getZr()),this._controllerHost={target:s},s.add(n.group),s.add(i.group),o.add(s),this._symbolDraw=n,this._lineDraw=i,this._mainGroup=s,this._firstRender=!0},e.prototype.render=function(t,a,n){var i=this,o=t.coordinateSystem,s=!1;this._model=t,this._api=n,this._active=!0;var l=this._getThumbnailInfo();l&&l.bridge.reset(n);var u=this._symbolDraw,f=this._lineDraw;if(Fv(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?this._mainGroup.attr(c):Se(this._mainGroup,c,t)}Ts(t.getGraph(),ja(t));var h=t.getData();u.updateData(h);var v=t.getEdgeData();f.updateData(v),this._updateNodeAndLinkScale(),this._updateController(null,t,n),clearTimeout(this._layoutTimeout);var d=t.forceLayout,p=t.get(["force","layoutAnimation"]);d&&(s=!0,this._startForceLayoutIteration(d,n,p));var y=t.get("layout");h.graph.eachNode(function(S){var b=S.dataIndex,x=S.getGraphicEl(),w=S.getModel();if(x){x.off("drag").off("dragend");var D=w.get("draggable");D&&x.on("drag",function(A){switch(y){case"force":d.warmUp(),!i._layouting&&i._startForceLayoutIteration(d,n,p),d.setFixed(b),h.setItemLayout(b,[x.x,x.y]);break;case"circular":h.setItemLayout(b,[x.x,x.y]),S.setLayout({fixed:!0},!0),Zu(t,"symbolSize",S,[A.offsetX,A.offsetY]),i.updateLayout(t);break;default:h.setItemLayout(b,[x.x,x.y]),Xu(t.getGraph(),t),i.updateLayout(t);break}}).on("dragend",function(){d&&d.setUnfixed(b)}),x.setDraggable(D,!!w.get("cursor"));var M=w.get(["emphasis","focus"]);M==="adjacency"&&(te(x).focus=S.getAdjacentDataIndices())}}),h.graph.eachEdge(function(S){var b=S.getGraphicEl(),x=S.getModel().get(["emphasis","focus"]);b&&x==="adjacency"&&(te(b).focus={edge:[S.dataIndex],node:[S.node1.dataIndex,S.node2.dataIndex]})});var g=t.get("layout")==="circular"&&t.get(["circular","rotateLabel"]),m=h.getLayout("cx"),_=h.getLayout("cy");h.graph.eachNode(function(S){yy(S,g,m,_)}),this._firstRender=!1,s||this._renderThumbnail(t,n,this._symbolDraw,this._lineDraw)},e.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,a,n){var i=this,o=!1;(function s(){t.step(function(l){i.updateLayout(i._model),(l||!o)&&(o=!0,i._renderThumbnail(i._model,a,i._symbolDraw,i._lineDraw)),(i._layouting=!l)&&(n?i._layoutTimeout=setTimeout(s,16):s())})})()},e.prototype._updateController=function(t,a,n){var i=this._controller,o=this._controllerHost,s=a.coordinateSystem;if(!Fv(s)){i.disable();return}i.enable(a.get("roam"),{api:n,zInfo:{component:a},triggerInfo:{roamTrigger:a.get("roamTrigger"),isInSelf:function(l,u,f){return s.containPoint([u,f])},isInClip:function(l,u,f){return!t||t.contain(u,f)}}}),o.zoomLimit=a.get("scaleLimit"),o.zoom=s.getZoom(),i.off("pan").off("zoom").on("pan",function(l){n.dispatchAction({seriesId:a.id,type:"graphRoam",dx:l.dx,dy:l.dy})}).on("zoom",function(l){n.dispatchAction({seriesId:a.id,type:"graphRoam",zoom:l.scale,originX:l.originX,originY:l.originY})})},e.prototype.updateViewOnPan=function(t,a,n){this._active&&(kT(this._controllerHost,n.dx,n.dy),this._updateThumbnailWindow())},e.prototype.updateViewOnZoom=function(t,a,n){this._active&&(PT(this._controllerHost,n.zoom,n.originX,n.originY),this._updateNodeAndLinkScale(),Ts(t.getGraph(),ja(t)),this._lineDraw.updateLayout(),a.updateLabelLayout(),this._updateThumbnailWindow())},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,a=t.getData(),n=ja(t);a.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(n)})},e.prototype.updateLayout=function(t){this._active&&(Ts(t.getGraph(),ja(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout())},e.prototype.remove=function(){this._active=!1,clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove(),this._controller&&this._controller.disable()},e.prototype._getThumbnailInfo=function(){var t=this._model,a=t.coordinateSystem;if(a.type==="view"){var n=fC(t);if(n)return{bridge:n,coordSys:a}}},e.prototype._updateThumbnailWindow=function(){var t=this._getThumbnailInfo();t&&t.bridge.updateWindow(t.coordSys.transform,this._api)},e.prototype._renderThumbnail=function(t,a,n,i){var o=this._getThumbnailInfo();if(o){var s=new le,l=n.group.children(),u=i.group.children(),f=new le,c=new le;s.add(c),s.add(f);for(var h=0;h<l.length;h++){var v=l[h],d=v.children()[0],p=v.x,y=v.y,g=q(d.shape),m=F(g,{width:d.scaleX,height:d.scaleY,x:p-d.scaleX/2,y:y-d.scaleY/2}),_=q(d.style),S=new d.constructor({shape:m,style:_,z2:151});c.add(S)}for(var h=0;h<u.length;h++){var v=u[h],b=v.children()[0],_=q(b.style),m=q(b.shape),x=new _y({style:_,shape:m,z2:151});f.add(x)}o.bridge.renderContent({api:a,roamType:t.get("roam"),viewportRect:null,group:s,targetTrans:o.coordSys.transform})}},e.type="graph",e})(Re);function Jr(r){return"_EC_"+r}var vC=(function(){function r(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return r.prototype.isDirected=function(){return this._directed},r.prototype.addNode=function(e,t){e=e==null?""+t:""+e;var a=this._nodesMap;if(!a[Jr(e)]){var n=new xr(e,t);return n.hostGraph=this,this.nodes.push(n),a[Jr(e)]=n,n}},r.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},r.prototype.getNodeById=function(e){return this._nodesMap[Jr(e)]},r.prototype.addEdge=function(e,t,a){var n=this._nodesMap,i=this._edgesMap;if(oe(e)&&(e=this.nodes[e]),oe(t)&&(t=this.nodes[t]),e instanceof xr||(e=n[Jr(e)]),t instanceof xr||(t=n[Jr(t)]),!(!e||!t)){var o=e.id+"-"+t.id,s=new Sy(e,t,a);return s.hostGraph=this,this._directed&&(e.outEdges.push(s),t.inEdges.push(s)),e.edges.push(s),e!==t&&t.edges.push(s),this.edges.push(s),i[o]=s,s}},r.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},r.prototype.getEdge=function(e,t){e instanceof xr&&(e=e.id),t instanceof xr&&(t=t.id);var a=this._edgesMap;return this._directed?a[e+"-"+t]:a[e+"-"+t]||a[t+"-"+e]},r.prototype.eachNode=function(e,t){for(var a=this.nodes,n=a.length,i=0;i<n;i++)a[i].dataIndex>=0&&e.call(t,a[i],i)},r.prototype.eachEdge=function(e,t){for(var a=this.edges,n=a.length,i=0;i<n;i++)a[i].dataIndex>=0&&a[i].node1.dataIndex>=0&&a[i].node2.dataIndex>=0&&e.call(t,a[i],i)},r.prototype.breadthFirstTraverse=function(e,t,a,n){if(t instanceof xr||(t=this._nodesMap[Jr(t)]),!!t){for(var i=a==="out"?"outEdges":a==="in"?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!e.call(n,t,null))for(var s=[t];s.length;)for(var l=s.shift(),u=l[i],o=0;o<u.length;o++){var f=u[o],c=f.node1===l?f.node2:f.node1;if(!c.__visited){if(e.call(n,c,l))return;s.push(c),c.__visited=!0}}}},r.prototype.update=function(){for(var e=this.data,t=this.edgeData,a=this.nodes,n=this.edges,i=0,o=a.length;i<o;i++)a[i].dataIndex=-1;for(var i=0,o=e.count();i<o;i++)a[e.getRawIndex(i)].dataIndex=i;t.filterSelf(function(s){var l=n[t.getRawIndex(s)];return l.node1.dataIndex>=0&&l.node2.dataIndex>=0});for(var i=0,o=n.length;i<o;i++)n[i].dataIndex=-1;for(var i=0,o=t.count();i<o;i++)n[t.getRawIndex(i)].dataIndex=i},r.prototype.clone=function(){for(var e=new r(this._directed),t=this.nodes,a=this.edges,n=0;n<t.length;n++)e.addNode(t[n].id,t[n].dataIndex);for(var n=0;n<a.length;n++){var i=a[n];e.addEdge(i.node1.id,i.node2.id,i.dataIndex)}return e},r})(),xr=(function(){function r(e,t){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=e??"",this.dataIndex=t??-1}return r.prototype.degree=function(){return this.edges.length},r.prototype.inDegree=function(){return this.inEdges.length},r.prototype.outDegree=function(){return this.outEdges.length},r.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,a=t.data.getItemModel(this.dataIndex);return a.getModel(e)}},r.prototype.getAdjacentDataIndices=function(){for(var e={edge:[],node:[]},t=0;t<this.edges.length;t++){var a=this.edges[t];a.dataIndex<0||(e.edge.push(a.dataIndex),e.node.push(a.node1.dataIndex,a.node2.dataIndex))}return e},r.prototype.getTrajectoryDataIndices=function(){for(var e=ee(),t=ee(),a=0,n=this.edges.length;a<n;a++){var i=this.edges[a];if(!(i.dataIndex<0)){e.set(i.dataIndex,!0);for(var o=[i.node1],s=[i.node2],l=0;l<o.length;){var u=o[l];l++,t.set(u.dataIndex,!0);for(var f=u.inEdges,c=0,h=f.length,v=void 0,d=void 0;c<h;c++)v=f[c],d=v.dataIndex,d>=0&&!e.hasKey(d)&&(e.set(d,!0),o.push(v.node1))}for(l=0;l<s.length;){var p=s[l];l++,t.set(p.dataIndex,!0);for(var y=p.outEdges,c=0,g=y.length,m=void 0,_=void 0;c<g;c++)m=y[c],_=m.dataIndex,_>=0&&!e.hasKey(_)&&(e.set(_,!0),s.push(m.node2))}}}return{edge:e.keys(),node:t.keys()}},r})(),Sy=(function(){function r(e,t,a){this.dataIndex=-1,this.node1=e,this.node2=t,this.dataIndex=a??-1}return r.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,a=t.edgeData.getItemModel(this.dataIndex);return a.getModel(e)}},r.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},r.prototype.getTrajectoryDataIndices=function(){var e=ee(),t=ee();e.set(this.dataIndex,!0);for(var a=[this.node1],n=[this.node2],i=0;i<a.length;){var o=a[i];i++,t.set(o.dataIndex,!0);for(var s=o.inEdges,l=0,u=s.length,f=void 0,c=void 0;l<u;l++)f=o.inEdges[l],c=f.dataIndex,c>=0&&!e.hasKey(c)&&(e.set(c,!0),a.push(f.node1))}for(i=0;i<n.length;){var h=n[i];i++,t.set(h.dataIndex,!0);for(var v=h.outEdges,l=0,u=v.length,d=void 0,p=void 0;l<u;l++)d=h.outEdges[l],p=d.dataIndex,p>=0&&!e.hasKey(p)&&(e.set(p,!0),n.push(d.node2))}return{edge:e.keys(),node:t.keys()}},r})();function xy(r,e){return{getValue:function(t){var a=this[r][e];return a.getStore().get(a.getDimensionIndex(t||"value"),this.dataIndex)},setVisual:function(t,a){this.dataIndex>=0&&this[r][e].setItemVisual(this.dataIndex,t,a)},getVisual:function(t){return this[r][e].getItemVisual(this.dataIndex,t)},setLayout:function(t,a){this.dataIndex>=0&&this[r][e].setItemLayout(this.dataIndex,t,a)},getLayout:function(){return this[r][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[r][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[r][e].getRawIndex(this.dataIndex)}}}gt(xr,xy("hostGraph","data"));gt(Sy,xy("hostGraph","edgeData"));function hC(r,e,t,a,n){for(var i=new vC(a),o=0;o<r.length;o++)i.addNode(Ar(r[o].id,r[o].name,o),o);for(var s=[],l=[],u=0,o=0;o<e.length;o++){var f=e[o],c=f.source,h=f.target;i.addEdge(c,h,u)&&(l.push(f),s.push(Ar(rt(f.id,null),c+" > "+h)),u++)}var v=t.get("coordinateSystem"),d;if(v==="cartesian2d"||v==="polar"||v==="matrix")d=wa(r,t);else{var p=Hn.get(v),y=p?p.dimensions||[]:[];fe(y,"value")<0&&y.concat(["value"]);var g=Co(r,{coordDimensions:y,encodeDefine:t.getEncode()}).dimensions;d=new Tn(g,t),d.initData(r)}var m=new Tn(["value"],t);return m.initData(l,s),n&&n(d,m),ET({mainData:d,struct:i,structAttr:"graph",datas:{node:d,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var dC=(function(r){U(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments);var a=this;function n(){return a._categoriesData}this.legendVisualProvider=new zu(n,n),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(t){r.prototype.mergeDefaultAndTheme.apply(this,arguments),Bi(t,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,a){var n=t.edges||t.links||[],i=t.data||t.nodes||[],o=this;if(i&&n){qT(this);var s=hC(i,n,this,!0,l);return T(s.edges,function(u){jT(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,f){u.wrapMethod("getItemModel",function(d){var p=o._categoriesModels,y=d.getShallow("category"),g=p[y];return g&&(g.parentModel=d.parentModel,d.parentModel=g),d});var c=he.prototype.getModel;function h(d,p){var y=c.call(this,d,p);return y.resolveParentPath=v,y}f.wrapMethod("getItemModel",function(d){return d.resolveParentPath=v,d.getModel=h,d});function v(d){if(d&&(d[0]==="label"||d[1]==="label")){var p=d.slice();return d[0]==="label"?p[0]="edgeLabel":d[1]==="label"&&(p[1]="edgeLabel"),p}return d}}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,a,n){if(n==="edge"){var i=this.getData(),o=this.getDataParams(t,n),s=i.graph.getEdgeByIndex(t),l=i.getName(s.node1.dataIndex),u=i.getName(s.node2.dataIndex),f=[];return l!=null&&f.push(l),u!=null&&f.push(u),ir("nameValue",{name:f.join(" > "),value:o.value,noValue:o.value==null})}var c=gp({series:this,dataIndex:t,multipleSeries:a});return c},e.prototype._updateCategoriesData=function(){var t=X(this.option.categories||[],function(n){return n.value!=null?n:F({value:0},n)}),a=new Tn(["value"],this);a.initData(t),this._categoriesData=a,this._categoriesModels=a.mapArray(function(n){return a.getItemModel(n)})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return r.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:B.color.neutral50,width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:B.color.primary}}},e})(Ne);function qD(r){r.registerChartView(cC),r.registerSeriesModel(dC),r.registerProcessor(YT),r.registerVisual(XT),r.registerVisual(ZT),r.registerLayout(QT),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,eC),r.registerLayout(rC),r.registerCoordinateSystem("graphView",{dimensions:cy.dimensions,create:nC}),r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},nt),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},nt),r.registerAction({type:"graphRoam",event:"graphRoam",update:"none"},function(e,t,a){t.eachComponent({mainType:"series",query:e},function(n){var i=a.getViewOfSeriesModel(n);i&&(e.dx!=null&&e.dy!=null&&i.updateViewOnPan(n,a,e),e.zoom!=null&&e.originX!=null&&e.originY!=null&&i.updateViewOnZoom(n,a,e));var o=n.coordinateSystem,s=RT(o,e,n.get("scaleLimit"));n.setCenter&&n.setCenter(s.center),n.setZoom&&n.setZoom(s.zoom)})})}function pC(r,e,t,a,n,i){r=r||0;var o=t[1]-t[0];if(n!=null&&(n=ea(n,[0,o])),i!=null&&(i=Math.max(i,n??0)),a==="all"){var s=Math.abs(e[1]-e[0]);s=ea(s,[0,o]),n=i=ea(s,[n,i]),a=0}e[0]=ea(e[0],t),e[1]=ea(e[1],t);var l=Cs(e,a);e[a]+=r;var u=n||0,f=t.slice();l.sign<0?f[0]+=u:f[1]-=u,e[a]=ea(e[a],f);var c;return c=Cs(e,a),n!=null&&(c.sign!==l.sign||c.span<n)&&(e[1-a]=e[a]+l.sign*n),c=Cs(e,a),i!=null&&c.span>i&&(e[1-a]=e[a]+c.sign*i),e}function Cs(r,e){var t=r[e]-r[1-e];return{span:Math.abs(t),sign:t>0?-1:t<0?1:e?-1:1}}function ea(r,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,r))}var gC=256,yC=(function(){function r(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=Ei.createCanvas();this.canvas=e}return r.prototype.update=function(e,t,a,n,i,o){var s=this._getBrush(),l=this._getGradient(i,"inRange"),u=this._getGradient(i,"outOfRange"),f=this.pointSize+this.blurSize,c=this.canvas,h=c.getContext("2d"),v=e.length;c.width=t,c.height=a;for(var d=0;d<v;++d){var p=e[d],y=p[0],g=p[1],m=p[2],_=n(m);h.globalAlpha=_,h.drawImage(s,y-f,g-f)}if(!c.width||!c.height)return c;for(var S=h.getImageData(0,0,c.width,c.height),b=S.data,x=0,w=b.length,D=this.minOpacity,M=this.maxOpacity,A=M-D;x<w;){var _=b[x+3]/256,C=Math.floor(_*(gC-1))*4;if(_>0){var I=o(_)?l:u;_>0&&(_=_*A+D),b[x++]=I[C],b[x++]=I[C+1],b[x++]=I[C+2],b[x++]=I[C+3]*_*256}else x+=4}return h.putImageData(S,0,0),c},r.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=Ei.createCanvas()),t=this.pointSize+this.blurSize,a=t*2;e.width=a,e.height=a;var n=e.getContext("2d");return n.clearRect(0,0,a,a),n.shadowOffsetX=a,n.shadowBlur=this.blurSize,n.shadowColor=B.color.neutral99,n.beginPath(),n.arc(-t,t,this.pointSize,0,Math.PI*2,!0),n.closePath(),n.fill(),e},r.prototype._getGradient=function(e,t){for(var a=this._gradientPixels,n=a[t]||(a[t]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],o=0,s=0;s<256;s++)e[t](s/255,!0,i),n[o++]=i[0],n[o++]=i[1],n[o++]=i[2],n[o++]=i[3];return n},r})();function mC(r,e,t){var a=r[1]-r[0];e=X(e,function(o){return{interval:[(o.interval[0]-r[0])/a,(o.interval[1]-r[0])/a]}});var n=e.length,i=0;return function(o){var s;for(s=i;s<n;s++){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}if(s===n)for(s=i-1;s>=0;s--){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}return s>=0&&s<n&&t[s]}}function _C(r,e){var t=r[1]-r[0];return e=[(e[0]-r[0])/t,(e[1]-r[0])/t],function(a){return a>=e[0]&&a<=e[1]}}function Hv(r){var e=r.dimensions;return e[0]==="lng"&&e[1]==="lat"}var SC=(function(r){U(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i;a.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===t&&(i=s)})}),this._progressiveEls=null,this.group.removeAll();var o=t.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"||o.type==="matrix"?this._renderOnGridLike(t,n,0,t.getData().count()):Hv(o)&&this._renderOnGeo(o,t,i,n)},e.prototype.incrementalPrepareRender=function(t,a,n){this.group.removeAll()},e.prototype.incrementalRender=function(t,a,n,i){var o=a.coordinateSystem;o&&(Hv(o)?this.render(a,n,i):(this._progressiveEls=[],this._renderOnGridLike(a,i,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){Or(this._progressiveEls||this.group,t)},e.prototype._renderOnGridLike=function(t,a,n,i,o){var s=t.coordinateSystem,l=An(s,"cartesian2d"),u=An(s,"matrix"),f,c,h,v;if(l){var d=s.getAxis("x"),p=s.getAxis("y");f=d.getBandWidth()+.5,c=p.getBandWidth()+.5,h=d.scale.getExtent(),v=p.scale.getExtent()}for(var y=this.group,g=t.getData(),m=t.getModel(["emphasis","itemStyle"]).getItemStyle(),_=t.getModel(["blur","itemStyle"]).getItemStyle(),S=t.getModel(["select","itemStyle"]).getItemStyle(),b=t.get(["itemStyle","borderRadius"]),x=Mt(t),w=t.getModel("emphasis"),D=w.get("focus"),M=w.get("blurScope"),A=w.get("disabled"),C=l||u?[g.mapDimension("x"),g.mapDimension("y"),g.mapDimension("value")]:[g.mapDimension("time"),g.mapDimension("value")],I=n;I<i;I++){var L=void 0,E=g.getItemVisual(I,"style");if(l){var k=g.get(C[0],I),P=g.get(C[1],I);if(isNaN(g.get(C[2],I))||isNaN(k)||isNaN(P)||k<h[0]||k>h[1]||P<v[0]||P>v[1])continue;var V=s.dataToPoint([k,P]);L=new ve({shape:{x:V[0]-f/2,y:V[1]-c/2,width:f,height:c},style:E})}else if(u){var R=s.dataToLayout([g.get(C[0],I),g.get(C[1],I)]).rect;if(Tr(R.x))continue;L=new ve({z2:1,shape:R,style:E})}else{if(isNaN(g.get(C[1],I)))continue;var O=s.dataToLayout([g.get(C[0],I)]),R=O.contentRect||O.rect;if(Tr(R.x)||Tr(R.y))continue;L=new ve({z2:1,shape:R,style:E})}if(g.hasItemOption){var z=g.getItemModel(I),H=z.getModel("emphasis");m=H.getModel("itemStyle").getItemStyle(),_=z.getModel(["blur","itemStyle"]).getItemStyle(),S=z.getModel(["select","itemStyle"]).getItemStyle(),b=z.get(["itemStyle","borderRadius"]),D=H.get("focus"),M=H.get("blurScope"),A=H.get("disabled"),x=Mt(z)}L.shape.r=b;var Y=t.getRawValue(I),J="-";Y&&Y[2]!=null&&(J=Y[2]+""),ur(L,x,{labelFetcher:t,labelDataIndex:I,defaultOpacity:E.opacity,defaultText:J}),L.ensureState("emphasis").style=m,L.ensureState("blur").style=_,L.ensureState("select").style=S,Vt(L,D,M,A),L.incremental=o,o&&(L.states.emphasis.hoverLayer=!0),y.add(L),g.setItemGraphicEl(I,L),this._progressiveEls&&this._progressiveEls.push(L)}},e.prototype._renderOnGeo=function(t,a,n,i){var o=n.targetVisuals.inRange,s=n.targetVisuals.outOfRange,l=a.getData(),u=this._hmLayer||this._hmLayer||new yC;u.blurSize=a.get("blurSize"),u.pointSize=a.get("pointSize"),u.minOpacity=a.get("minOpacity"),u.maxOpacity=a.get("maxOpacity");var f=t.getViewRect().clone(),c=t.getRoamTransform();f.applyTransform(c);var h=Math.max(f.x,0),v=Math.max(f.y,0),d=Math.min(f.width+f.x,i.getWidth()),p=Math.min(f.height+f.y,i.getHeight()),y=d-h,g=p-v,m=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],_=l.mapArray(m,function(w,D,M){var A=t.dataToPoint([w,D]);return A[0]-=h,A[1]-=v,A.push(M),A}),S=n.getExtent(),b=n.type==="visualMap.continuous"?_C(S,n.option.range):mC(S,n.getPieceList(),n.option.selected);u.update(_,y,g,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},b);var x=new Gt({style:{width:y,height:g,x:h,y:v,image:u.canvas},silent:!0});this.group.add(x)},e.type="heatmap",e})(Re),xC=(function(r){U(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,a){return wa(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=Hn.get(this.get("coordinateSystem"));if(t&&t.dimensions)return t.dimensions[0]==="lng"&&t.dimensions[1]==="lat"},e.type="series.heatmap",e.dependencies=["grid","geo","calendar","matrix"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:B.color.primary}}},e})(Ne);function jD(r){r.registerChartView(SC),r.registerSeriesModel(xC)}var Wv={color:"fill",borderColor:"stroke"},bC={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Nt=ne(),wC=(function(r){U(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,a){return wa(null,this)},e.prototype.getDataParams=function(t,a,n){var i=r.prototype.getDataParams.call(this,t,a);return n&&(i.info=Nt(n).info),i},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e})(Ne);function TC(r,e){return e=e||[0,0],X(["x","y"],function(t,a){var n=this.getAxis(t),i=e[a],o=r[a]/2;return n.type==="category"?n.getBandWidth():Math.abs(n.dataToCoord(i-o)-n.dataToCoord(i+o))},this)}function CC(r){var e=r.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return r.dataToPoint(t)},size:$(TC,r)}}}function MC(r,e){return e=e||[0,0],X([0,1],function(t){var a=e[t],n=r[t]/2,i=[],o=[];return i[t]=a-n,o[t]=a+n,i[1-t]=o[1-t]=e[1-t],Math.abs(this.dataToPoint(i)[t]-this.dataToPoint(o)[t])},this)}function DC(r){var e=r.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:r.getZoom()},api:{coord:function(t){return r.dataToPoint(t)},size:$(MC,r)}}}function AC(r,e){var t=this.getAxis(),a=e instanceof Array?e[0]:e,n=(r instanceof Array?r[0]:r)/2;return t.type==="category"?t.getBandWidth():Math.abs(t.dataToCoord(a-n)-t.dataToCoord(a+n))}function LC(r){var e=r.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return r.dataToPoint(t)},size:$(AC,r)}}}function IC(r,e){return e=e||[0,0],X(["Radius","Angle"],function(t,a){var n="get"+t+"Axis",i=this[n](),o=e[a],s=r[a]/2,l=i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(o-s)-i.dataToCoord(o+s));return t==="Angle"&&(l=l*Math.PI/180),l},this)}function kC(r){var e=r.getRadiusAxis(),t=r.getAngleAxis(),a=e.getExtent();return a[0]>a[1]&&a.reverse(),{coordSys:{type:"polar",cx:r.cx,cy:r.cy,r:a[1],r0:a[0]},api:{coord:function(n){var i=e.dataToRadius(n[0]),o=t.dataToAngle(n[1]),s=r.coordToPoint([i,o]);return s.push(i,o*Math.PI/180),s},size:$(IC,r)}}}function PC(r){var e=r.getRect(),t=r.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:r.getCellWidth(),cellHeight:r.getCellHeight(),rangeInfo:{start:t.start,end:t.end,weeks:t.weeks,dayCount:t.allDay}},api:{coord:function(a,n){return r.dataToPoint(a,n)},layout:function(a,n){return r.dataToLayout(a,n)}}}}function RC(r){var e=r.getRect();return{coordSys:{type:"matrix",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t,a){return r.dataToPoint(t,a)},layout:function(t,a){return r.dataToLayout(t,a)}}}}function EC(r,e,t,a){return r&&(r.legacy||r.legacy!==!1&&!t&&!a&&e!=="tspan"&&(e==="text"||G(r,"text")))}function OC(r,e,t){var a=r,n,i,o;if(e==="text")o=a;else{o={},G(a,"text")&&(o.text=a.text),G(a,"rich")&&(o.rich=a.rich),G(a,"textFill")&&(o.fill=a.textFill),G(a,"textStroke")&&(o.stroke=a.textStroke),G(a,"fontFamily")&&(o.fontFamily=a.fontFamily),G(a,"fontSize")&&(o.fontSize=a.fontSize),G(a,"fontStyle")&&(o.fontStyle=a.fontStyle),G(a,"fontWeight")&&(o.fontWeight=a.fontWeight),i={type:"text",style:o,silent:!0},n={};var s=G(a,"textPosition");t?n.position=s?a.textPosition:"inside":s&&(n.position=a.textPosition),G(a,"textPosition")&&(n.position=a.textPosition),G(a,"textOffset")&&(n.offset=a.textOffset),G(a,"textRotation")&&(n.rotation=a.textRotation),G(a,"textDistance")&&(n.distance=a.textDistance)}return Uv(o,r),T(o.rich,function(l){Uv(l,l)}),{textConfig:n,textContent:i}}function Uv(r,e){e&&(e.font=e.textFont||e.font,G(e,"textStrokeWidth")&&(r.lineWidth=e.textStrokeWidth),G(e,"textAlign")&&(r.align=e.textAlign),G(e,"textVerticalAlign")&&(r.verticalAlign=e.textVerticalAlign),G(e,"textLineHeight")&&(r.lineHeight=e.textLineHeight),G(e,"textWidth")&&(r.width=e.textWidth),G(e,"textHeight")&&(r.height=e.textHeight),G(e,"textBackgroundColor")&&(r.backgroundColor=e.textBackgroundColor),G(e,"textPadding")&&(r.padding=e.textPadding),G(e,"textBorderColor")&&(r.borderColor=e.textBorderColor),G(e,"textBorderWidth")&&(r.borderWidth=e.textBorderWidth),G(e,"textBorderRadius")&&(r.borderRadius=e.textBorderRadius),G(e,"textBoxShadowColor")&&(r.shadowColor=e.textBoxShadowColor),G(e,"textBoxShadowBlur")&&(r.shadowBlur=e.textBoxShadowBlur),G(e,"textBoxShadowOffsetX")&&(r.shadowOffsetX=e.textBoxShadowOffsetX),G(e,"textBoxShadowOffsetY")&&(r.shadowOffsetY=e.textBoxShadowOffsetY))}function Yv(r,e,t){var a=r;a.textPosition=a.textPosition||t.position||"inside",t.offset!=null&&(a.textOffset=t.offset),t.rotation!=null&&(a.textRotation=t.rotation),t.distance!=null&&(a.textDistance=t.distance);var n=a.textPosition.indexOf("inside")>=0,i=r.fill||B.color.neutral99;Xv(a,e);var o=a.textFill==null;return n?o&&(a.textFill=t.insideFill||B.color.neutral00,!a.textStroke&&t.insideStroke&&(a.textStroke=t.insideStroke),!a.textStroke&&(a.textStroke=i),a.textStrokeWidth==null&&(a.textStrokeWidth=2)):(o&&(a.textFill=r.fill||t.outsideFill||B.color.neutral00),!a.textStroke&&t.outsideStroke&&(a.textStroke=t.outsideStroke)),a.text=e.text,a.rich=e.rich,T(e.rich,function(s){Xv(s,s)}),a}function Xv(r,e){e&&(G(e,"fill")&&(r.textFill=e.fill),G(e,"stroke")&&(r.textStroke=e.fill),G(e,"lineWidth")&&(r.textStrokeWidth=e.lineWidth),G(e,"font")&&(r.font=e.font),G(e,"fontStyle")&&(r.fontStyle=e.fontStyle),G(e,"fontWeight")&&(r.fontWeight=e.fontWeight),G(e,"fontSize")&&(r.fontSize=e.fontSize),G(e,"fontFamily")&&(r.fontFamily=e.fontFamily),G(e,"align")&&(r.textAlign=e.align),G(e,"verticalAlign")&&(r.textVerticalAlign=e.verticalAlign),G(e,"lineHeight")&&(r.textLineHeight=e.lineHeight),G(e,"width")&&(r.textWidth=e.width),G(e,"height")&&(r.textHeight=e.height),G(e,"backgroundColor")&&(r.textBackgroundColor=e.backgroundColor),G(e,"padding")&&(r.textPadding=e.padding),G(e,"borderColor")&&(r.textBorderColor=e.borderColor),G(e,"borderWidth")&&(r.textBorderWidth=e.borderWidth),G(e,"borderRadius")&&(r.textBorderRadius=e.borderRadius),G(e,"shadowColor")&&(r.textBoxShadowColor=e.shadowColor),G(e,"shadowBlur")&&(r.textBoxShadowBlur=e.shadowBlur),G(e,"shadowOffsetX")&&(r.textBoxShadowOffsetX=e.shadowOffsetX),G(e,"shadowOffsetY")&&(r.textBoxShadowOffsetY=e.shadowOffsetY),G(e,"textShadowColor")&&(r.textShadowColor=e.textShadowColor),G(e,"textShadowBlur")&&(r.textShadowBlur=e.textShadowBlur),G(e,"textShadowOffsetX")&&(r.textShadowOffsetX=e.textShadowOffsetX),G(e,"textShadowOffsetY")&&(r.textShadowOffsetY=e.textShadowOffsetY))}var by={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},Zv=Le(by);sn(un,function(r,e){return r[e]=1,r},{});un.join(", ");var oo=["","style","shape","extra"],_a=ne();function $u(r,e,t,a,n){var i=r+"Animation",o=ru(r,a,n)||{},s=_a(e).userDuring;return o.duration>0&&(o.during=s?$(HC,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=r),F(o,t[i]),o}function NC(r,e,t,a){a=a||{};var n=a.dataIndex,i=a.isInit,o=a.clearStyle,s=t.isAnimationEnabled(),l=_a(r),u=e.style;l.userDuring=e.during;var f={},c={};if(UC(r,e,c),r.type==="compound")for(var h=r.shape.paths,v=e.shape.paths,d=0;d<v.length;d++){var p=v[d];Ms("shape",p,h[d])}else Ms("shape",e,c),Ms("extra",e,c);if(!i&&s&&(WC(r,e,f),$v("shape",r,e,f),$v("extra",r,e,f),YC(r,e,u,f)),c.style=u,VC(r,c,o),GC(r,e),s)if(i){var y={};T(oo,function(m){var _=m?e[m]:e;_&&_.enterFrom&&(m&&(y[m]=y[m]||{}),F(m?y[m]:y,_.enterFrom))});var g=$u("enter",r,e,t,n);g.duration>0&&r.animateFrom(y,g)}else zC(r,e,n||0,t,f);BC(r,e),u?r.dirty():r.markRedraw()}function BC(r,e){for(var t=_a(r).leaveToProps,a=0;a<oo.length;a++){var n=oo[a],i=n?e[n]:e;i&&i.leaveTo&&(t||(t=_a(r).leaveToProps={}),n&&(t[n]=t[n]||{}),F(n?t[n]:t,i.leaveTo))}}function Ku(r,e,t,a){if(r){var n=r.parent,i=_a(r).leaveToProps;if(i){var o=$u("update",r,e,t,0);o.done=function(){n&&n.remove(r)},r.animateTo(i,o)}else n&&n.remove(r)}}function va(r){return r==="all"}function VC(r,e,t){var a=e.style;if(!r.isGroup&&a){if(t){r.useStyle({});for(var n=r.animators,i=0;i<n.length;i++){var o=n[i];o.targetName==="style"&&o.changeTarget(r.style)}}r.setStyle(a)}e&&(e.style=null,e&&r.attr(e),e.style=a)}function zC(r,e,t,a,n){if(n){var i=$u("update",r,e,a,t);i.duration>0&&r.animateFrom(n,i)}}function GC(r,e){G(e,"silent")&&(r.silent=e.silent),G(e,"ignore")&&(r.ignore=e.ignore),r instanceof Zh&&G(e,"invisible")&&(r.invisible=e.invisible),r instanceof Be&&G(e,"autoBatch")&&(r.autoBatch=e.autoBatch)}var _t={},FC={setTransform:function(r,e){return _t.el[r]=e,this},getTransform:function(r){return _t.el[r]},setShape:function(r,e){var t=_t.el,a=t.shape||(t.shape={});return a[r]=e,t.dirtyShape&&t.dirtyShape(),this},getShape:function(r){var e=_t.el.shape;if(e)return e[r]},setStyle:function(r,e){var t=_t.el,a=t.style;return a&&(a[r]=e,t.dirtyStyle&&t.dirtyStyle()),this},getStyle:function(r){var e=_t.el.style;if(e)return e[r]},setExtra:function(r,e){var t=_t.el.extra||(_t.el.extra={});return t[r]=e,this},getExtra:function(r){var e=_t.el.extra;if(e)return e[r]}};function HC(){var r=this,e=r.el;if(e){var t=_a(e).userDuring,a=r.userDuring;if(t!==a){r.el=r.userDuring=null;return}_t.el=e,a(FC)}}function $v(r,e,t,a){var n=t[r];if(n){var i=e[r],o;if(i){var s=t.transition,l=n.transition;if(l)if(!o&&(o=a[r]={}),va(l))F(o,i);else for(var u=De(l),f=0;f<u.length;f++){var c=u[f],h=i[c];o[c]=h}else if(va(s)||fe(s,r)>=0){!o&&(o=a[r]={});for(var v=Le(i),f=0;f<v.length;f++){var c=v[f],h=i[c];XC(n[c],h)&&(o[c]=h)}}}}}function Ms(r,e,t){var a=e[r];if(a)for(var n=t[r]={},i=Le(a),o=0;o<i.length;o++){var s=i[o];n[s]=xm(a[s])}}function WC(r,e,t){for(var a=e.transition,n=va(a)?un:De(a||[]),i=0;i<n.length;i++){var o=n[i];if(!(o==="style"||o==="shape"||o==="extra")){var s=r[o];t[o]=s}}}function UC(r,e,t){for(var a=0;a<Zv.length;a++){var n=Zv[a],i=by[n],o=e[n];o&&(t[i[0]]=o[0],t[i[1]]=o[1])}for(var a=0;a<un.length;a++){var s=un[a];e[s]!=null&&(t[s]=e[s])}}function YC(r,e,t,a){if(t){var n=r.style,i;if(n){var o=t.transition,s=e.transition;if(o&&!va(o)){var l=De(o);!i&&(i=a.style={});for(var u=0;u<l.length;u++){var f=l[u],c=n[f];i[f]=c}}else if(r.getAnimationStyleProps&&(va(s)||va(o)||fe(s,"style")>=0)){var h=r.getAnimationStyleProps(),v=h?h.style:null;if(v){!i&&(i=a.style={});for(var d=Le(t),u=0;u<d.length;u++){var f=d[u];if(v[f]){var c=n[f];i[f]=c}}}}}}}function XC(r,e){return Rn(r)?r!==e:r!=null&&isFinite(r)}var wy=ne(),ZC=["percent","easing","shape","style","extra"];function $C(r){r.stopAnimation("keyframe"),r.attr(wy(r))}function Ty(r,e,t){if(!(!t.isAnimationEnabled()||!e)){if(N(e)){T(e,function(s){Ty(r,s,t)});return}var a=e.keyframes,n=e.duration;if(t&&n==null){var i=ru("enter",t,0);n=i&&i.duration}if(!(!a||!n)){var o=wy(r);T(oo,function(s){if(!(s&&!r[s])){var l;a.sort(function(u,f){return u.percent-f.percent}),T(a,function(u){var f=r.animators,c=s?u[s]:u;if(c){var h=Le(c);if(s||(h=Ce(h,function(p){return fe(ZC,p)<0})),!!h.length){l||(l=r.animate(s,e.loop,!0),l.scope="keyframe");for(var v=0;v<f.length;v++)f[v]!==l&&f[v].targetName===l.targetName&&f[v].stopTracks(h);s&&(o[s]=o[s]||{});var d=s?o[s]:o;T(h,function(p){d[p]=((s?r[s]:r)||{})[p]}),l.whenWithKeys(n*u.percent,c,h,u.easing)}}}),l&&l.delay(e.delay||0).duration(n).start(e.easing)}})}}}var Bt="emphasis",tr="normal",qu="blur",ju="select",lr=[tr,Bt,qu,ju],Ds={normal:["itemStyle"],emphasis:[Bt,"itemStyle"],blur:[qu,"itemStyle"],select:[ju,"itemStyle"]},As={normal:["label"],emphasis:[Bt,"label"],blur:[qu,"label"],select:[ju,"label"]},KC=["x","y"],qC="e\0\0",Je={normal:{},emphasis:{},blur:{},select:{}},jC={cartesian2d:CC,geo:DC,single:LC,polar:kC,calendar:PC,matrix:RC};function Ol(r){return r instanceof Be}function Nl(r){return r instanceof Zh}function QC(r,e){e.copyTransform(r),Nl(e)&&Nl(r)&&(e.setStyle(r.style),e.z=r.z,e.z2=r.z2,e.zlevel=r.zlevel,e.invisible=r.invisible,e.ignore=r.ignore,Ol(e)&&Ol(r)&&e.setShape(r.shape))}var JC=(function(r){U(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n,i){this._progressiveEls=null;var o=this._data,s=t.getData(),l=this.group,u=Kv(t,s,a,n);o||l.removeAll(),s.diff(o).add(function(c){Ls(n,null,c,u(c,i),t,l,s)}).remove(function(c){var h=o.getItemGraphicEl(c);h&&Ku(h,Nt(h).option,t)}).update(function(c,h){var v=o.getItemGraphicEl(h);Ls(n,v,c,u(c,i),t,l,s)}).execute();var f=t.get("clip",!0)?Bg(t.coordinateSystem,!1,t):null;f?l.setClipPath(f):l.removeClipPath(),this._data=s},e.prototype.incrementalPrepareRender=function(t,a,n){this.group.removeAll(),this._data=null},e.prototype.incrementalRender=function(t,a,n,i,o){var s=a.getData(),l=Kv(a,s,n,i),u=this._progressiveEls=[];function f(v){v.isGroup||(v.incremental=!0,v.ensureState("emphasis").hoverLayer=!0)}for(var c=t.start;c<t.end;c++){var h=Ls(null,null,c,l(c,o),a,this.group,s);h&&(h.traverse(f),u.push(h))}},e.prototype.eachRendered=function(t){Or(this._progressiveEls||this.group,t)},e.prototype.filterForExposedEvent=function(t,a,n,i){var o=a.element;if(o==null||n.name===o)return!0;for(;(n=n.__hostTarget||n.parent)&&n!==this.group;)if(n.name===o)return!0;return!1},e.type="custom",e})(Re);function Qu(r){var e=r.type,t;if(e==="path"){var a=r.shape,n=a.width!=null&&a.height!=null?{x:a.x||0,y:a.y||0,width:a.width,height:a.height}:null,i=Dy(a);t=gn(i,null,n,a.layout||"center"),Nt(t).customPathData=i}else if(e==="image")t=new Gt({}),Nt(t).customImagePath=r.style.image;else if(e==="text")t=new de({});else if(e==="group")t=new le;else if(e==="compoundPath"){var a=r.shape;if(!a||!a.paths){var o="";Oe(o)}var s=X(a.paths,function(f){if(f.type==="path")return gn(f.shape.pathData,f,null);var c=$s(f.type);if(!c){var h="";Oe(h)}return new c});t=new zh({shape:{paths:s}})}else{var l=$s(e);if(!l){var o="";Oe(o)}t=new l}return Nt(t).customGraphicType=e,t.name=r.name,t.z2EmphasisLift=1,t.z2SelectLift=1,t}function Ju(r,e,t,a,n,i,o){$C(e);var s=n&&n.normal.cfg;s&&e.setTextConfig(s),a&&a.transition==null&&(a.transition=KC);var l=a&&a.style;if(l){if(e.type==="text"){var u=l;G(u,"textFill")&&(u.fill=u.textFill),G(u,"textStroke")&&(u.stroke=u.textStroke)}var f=void 0,c=Ol(e)?l.decal:null;r&&c&&(c.dirty=!0,f=$i(c,r)),l.__decalPattern=f}if(Nl(e)&&l){var f=l.__decalPattern;f&&(l.decal=f)}NC(e,a,i,{dataIndex:t,isInit:o,clearStyle:!0}),Ty(e,a.keyframeAnimation,i)}function Cy(r,e,t,a,n){var i=e.isGroup?null:e,o=n&&n[r].cfg;if(i){var s=i.ensureState(r);if(a===!1){var l=i.getState(r);l&&(l.style=null)}else s.style=a||null;o&&(s.textConfig=o),cd(i)}}function eM(r,e,t){if(!r.isGroup){var a=r,n=t.currentZ,i=t.currentZLevel;a.z=n,a.zlevel=i;var o=e.z2;o!=null&&(a.z2=o||0);for(var s=0;s<lr.length;s++)tM(a,e,lr[s])}}function tM(r,e,t){var a=t===tr,n=a?e:so(e,t),i=n?n.z2:null,o;i!=null&&(o=a?r:r.ensureState(t),o.z2=i||0)}function Kv(r,e,t,a){var n=r.get("renderItem");if(typeof n=="string"){var i=kx(n);i&&(n=i)}var o=r.coordinateSystem,s={};o&&(s=o.prepareCustoms?o.prepareCustoms(o):jC[o.type](o));for(var l=ae({getWidth:a.getWidth,getHeight:a.getHeight,getZr:a.getZr,getDevicePixelRatio:a.getDevicePixelRatio,value:b,style:w,ordinalRawValue:x,styleEmphasis:D,visual:C,barLayout:I,currentSeriesIndices:L,font:E},s.api||{}),u={context:{},seriesId:r.id,seriesName:r.name,seriesIndex:r.seriesIndex,coordSys:s.coordSys,dataInsideLength:e.count(),encode:rM(r.getData()),itemPayload:r.get("itemPayload")||{}},f,c,h={},v={},d={},p={},y=0;y<lr.length;y++){var g=lr[y];d[g]=r.getModel(Ds[g]),p[g]=r.getModel(As[g])}function m(k){return k===f?c||(c=e.getItemModel(k)):e.getItemModel(k)}function _(k,P){return e.hasItemOption?k===f?h[P]||(h[P]=m(k).getModel(Ds[P])):m(k).getModel(Ds[P]):d[P]}function S(k,P){return e.hasItemOption?k===f?v[P]||(v[P]=m(k).getModel(As[P])):m(k).getModel(As[P]):p[P]}return function(k,P){return f=k,c=null,h={},v={},n&&n(ae({dataIndexInside:k,dataIndex:e.getRawIndex(k),actionType:P?P.type:null},u),l)};function b(k,P){return P==null&&(P=f),e.getStore().get(e.getDimensionIndex(k||0),P)}function x(k,P){P==null&&(P=f),k=k||0;var V=e.getDimensionInfo(k);if(!V){var R=e.getDimensionIndex(k);return R>=0?e.getStore().get(R,P):void 0}var O=e.get(V.name,P),z=V&&V.ordinalMeta;return z?z.categories[O]:O}function w(k,P){P==null&&(P=f);var V=e.getItemVisual(P,"style"),R=V&&V.fill,O=V&&V.opacity,z=_(P,tr).getItemStyle();R!=null&&(z.fill=R),O!=null&&(z.opacity=O);var H={inheritColor:Z(R)?R:B.color.neutral99},Y=S(P,tr),J=Ae(Y,null,H,!1,!0);J.text=Y.getShallow("show")?j(r.getFormattedLabel(P,tr),Dn(e,P)):null;var pe=Hi(Y,H,!1);return A(k,z),z=Yv(z,J,pe),k&&M(z,k),z.legacy=!0,z}function D(k,P){P==null&&(P=f);var V=_(P,Bt).getItemStyle(),R=S(P,Bt),O=Ae(R,null,null,!0,!0);O.text=R.getShallow("show")?Rr(r.getFormattedLabel(P,Bt),r.getFormattedLabel(P,tr),Dn(e,P)):null;var z=Hi(R,null,!0);return A(k,V),V=Yv(V,O,z),k&&M(V,k),V.legacy=!0,V}function M(k,P){for(var V in P)G(P,V)&&(k[V]=P[V])}function A(k,P){k&&(k.textFill&&(P.textFill=k.textFill),k.textPosition&&(P.textPosition=k.textPosition))}function C(k,P){if(P==null&&(P=f),G(Wv,k)){var V=e.getItemVisual(P,"style");return V?V[Wv[k]]:null}if(G(bC,k))return e.getItemVisual(P,k)}function I(k){if(o.type==="cartesian2d"){var P=o.getBaseAxis();return Ib(ae({axis:P},k))}}function L(){return t.getCurrentSeriesIndices()}function E(k){return Dd(k,t)}}function rM(r){var e={};return T(r.dimensions,function(t){var a=r.getDimensionInfo(t);if(!a.isExtraCoord){var n=a.coordDim,i=e[n]=e[n]||[];i[a.coordDimIndex]=r.getDimensionIndex(t)}}),e}function Ls(r,e,t,a,n,i,o){if(!a){i.remove(e);return}var s=ef(r,e,t,a,n,i);return s&&o.setItemGraphicEl(t,s),s&&Vt(s,a.focus,a.blurScope,a.emphasisDisabled),s}function ef(r,e,t,a,n,i){var o=-1,s=e;e&&My(e,a,n)&&(o=fe(i.childrenRef(),e),e=null);var l=!e,u=e;u?u.clearStates():(u=Qu(a),s&&QC(s,u)),a.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),a.tooltipDisabled&&(u.tooltipDisabled=!0),Je.normal.cfg=Je.normal.conOpt=Je.emphasis.cfg=Je.emphasis.conOpt=Je.blur.cfg=Je.blur.conOpt=Je.select.cfg=Je.select.conOpt=null,Je.isLegacy=!1,nM(u,t,a,n,l,Je),aM(u,t,a,n,l),Ju(r,u,t,a,Je,n,l),G(a,"info")&&(Nt(u).info=a.info);for(var f=0;f<lr.length;f++){var c=lr[f];if(c!==tr){var h=so(a,c),v=tf(a,h,c);Cy(c,u,h,v,Je)}}return eM(u,a,n),a.type==="group"&&iM(r,u,t,a,n),o>=0?i.replaceAt(u,o):i.add(u),u}function My(r,e,t){var a=Nt(r),n=e.type,i=e.shape,o=e.style;return t.isUniversalTransitionEnabled()||n!=null&&n!==a.customGraphicType||n==="path"&&uM(i)&&Dy(i)!==a.customPathData||n==="image"&&G(o,"image")&&o.image!==a.customImagePath}function aM(r,e,t,a,n){var i=t.clipPath;if(i===!1)r&&r.getClipPath()&&r.removeClipPath();else if(i){var o=r.getClipPath();o&&My(o,i,a)&&(o=null),o||(o=Qu(i),r.setClipPath(o)),Ju(null,o,e,i,null,a,n)}}function nM(r,e,t,a,n,i){if(!(r.isGroup||r.type==="compoundPath")){qv(t,null,i),qv(t,Bt,i);var o=i.normal.conOpt,s=i.emphasis.conOpt,l=i.blur.conOpt,u=i.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var f=r.getTextContent();if(o===!1)f&&r.removeTextContent();else{o=i.normal.conOpt=o||{type:"text"},f?f.clearStates():(f=Qu(o),r.setTextContent(f)),Ju(null,f,e,o,null,a,n);for(var c=o&&o.style,h=0;h<lr.length;h++){var v=lr[h];if(v!==tr){var d=i[v].conOpt;Cy(v,f,d,tf(o,d,v),null)}}c?f.dirty():f.markRedraw()}}}}function qv(r,e,t){var a=e?so(r,e):r,n=e?tf(r,a,Bt):r.style,i=r.type,o=a?a.textConfig:null,s=r.textContent,l=s?e?so(s,e):s:null;if(n&&(t.isLegacy||EC(n,i,!!o,!!l))){t.isLegacy=!0;var u=OC(n,i,!e);!o&&u.textConfig&&(o=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!e&&l){var f=l;!f.type&&(f.type="text")}var c=e?t[e]:t.normal;c.cfg=o,c.conOpt=l}function so(r,e){return e?r?r[e]:null:r}function tf(r,e,t){var a=e&&e.style;return a==null&&t===Bt&&r&&(a=r.styleEmphasis),a}function iM(r,e,t,a,n){var i=a.children,o=i?i.length:0,s=a.$mergeChildren,l=s==="byName"||a.diffChildrenByName,u=s===!1;if(!(!o&&!l&&!u)){if(l){sM({api:r,oldChildren:e.children()||[],newChildren:i||[],dataIndex:t,seriesModel:n,group:e});return}u&&e.removeAll();for(var f=0;f<o;f++){var c=i[f],h=e.childAt(f);c?(c.ignore==null&&(c.ignore=!1),ef(r,h,t,c,n,e)):h.ignore=!0}for(var v=e.childCount()-1;v>=f;v--){var d=e.childAt(v);oM(e,d,n)}}}function oM(r,e,t){e&&Ku(e,Nt(r).option,t)}function sM(r){new $p(r.oldChildren,r.newChildren,jv,jv,r).add(Qv).update(Qv).remove(lM).execute()}function jv(r,e){var t=r&&r.name;return t??qC+e}function Qv(r,e){var t=this.context,a=r!=null?t.newChildren[r]:null,n=e!=null?t.oldChildren[e]:null;ef(t.api,n,t.dataIndex,a,t.seriesModel,t.group)}function lM(r){var e=this.context,t=e.oldChildren[r];t&&Ku(t,Nt(t).option,e.seriesModel)}function Dy(r){return r&&(r.pathData||r.d)}function uM(r){return r&&(G(r,"pathData")||G(r,"d"))}function QD(r){r.registerChartView(JC),r.registerSeriesModel(wC)}var br=ne(),Jv=q,Is=$,fM=(function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(e,t,a,n){var i=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,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,e,t,a);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(a),this._lastGraphicKey=f;var c=this._moveAnimation=this.determineAnimation(e,t);if(!s)s=this._group=new le,this.createPointerEl(s,u,e,t),this.createLabelEl(s,u,e,t),a.getZr().add(s);else{var h=ye(eh,t,c);this.updatePointerEl(s,u,h),this.updateLabelEl(s,u,h,t)}rh(s,t,!0),this._renderHandle(i)}},r.prototype.remove=function(e){this.clear(e)},r.prototype.dispose=function(e){this.clear(e)},r.prototype.determineAnimation=function(e,t){var a=t.get("animation"),n=e.axis,i=n.type==="category",o=t.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=Hu(e).seriesDataCount,u=n.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return a===!0},r.prototype.makeElOption=function(e,t,a,n,i){},r.prototype.createPointerEl=function(e,t,a,n){var i=t.pointer;if(i){var o=br(e).pointerEl=new Cd[i.type](Jv(t.pointer));e.add(o)}},r.prototype.createLabelEl=function(e,t,a,n){if(t.label){var i=br(e).labelEl=new de(Jv(t.label));e.add(i),th(i,n)}},r.prototype.updatePointerEl=function(e,t,a){var n=br(e).pointerEl;n&&t.pointer&&(n.setStyle(t.pointer.style),a(n,{shape:t.pointer.shape}))},r.prototype.updateLabelEl=function(e,t,a,n){var i=br(e).labelEl;i&&(i.setStyle(t.label.style),a(i,{x:t.label.x,y:t.label.y}),th(i,n))},r.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,a=this._api.getZr(),n=this._handle,i=t.getModel("handle"),o=t.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=nu(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){ha(u.event)},onmousedown:Is(this._onHandleDragMove,this,0,0),drift:Is(this._onHandleDragMove,this),ondragend:Is(this._onHandleDragEnd,this)}),a.add(n)),rh(n,t,!1),n.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");N(l)||(l=[l,l]),n.scaleX=l[0]/2,n.scaleY=l[1]/2,mp(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},r.prototype._moveHandleToValue=function(e,t){eh(this._axisPointerModel,!t&&this._moveAnimation,this._handle,ks(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(e,t){var a=this._handle;if(a){this._dragging=!0;var n=this.updateHandleTransform(ks(a),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=n,a.stopAnimation(),a.attr(ks(n)),br(a).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var t=this._payloadInfo,a=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:a.axis.dim,axisIndex:a.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),a=this._group,n=this._handle;t&&a&&(this._lastGraphicKey=null,a&&t.remove(a),n&&t.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),sl(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(e,t,a){return a=a||0,{x:e[a],y:e[1-a],width:t[a],height:t[1-a]}},r})();function eh(r,e,t,a){Ay(br(t).lastProp,a)||(br(t).lastProp=a,e?Se(t,a,r):(t.stopAnimation(),t.attr(a)))}function Ay(r,e){if(K(r)&&K(e)){var t=!0;return T(e,function(a,n){t=t&&Ay(r[n],a)}),!!t}else return r===e}function th(r,e){r[e.get(["label","show"])?"show":"hide"]()}function ks(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function rh(r,e,t){var a=e.get("z"),n=e.get("zlevel");r&&r.traverse(function(i){i.type!=="group"&&(a!=null&&(i.z=a),n!=null&&(i.zlevel=n),i.silent=t)})}function cM(r){var e=r.get("type"),t=r.getModel(e+"Style"),a;return e==="line"?(a=t.getLineStyle(),a.fill=null):e==="shadow"&&(a=t.getAreaStyle(),a.stroke=null),a}function vM(r,e,t,a,n){var i=t.get("value"),o=Ly(i,e.axis,e.ecModel,t.get("seriesDataIndices"),{precision:t.get(["label","precision"]),formatter:t.get(["label","formatter"])}),s=t.getModel("label"),l=Fn(s.get("padding")||0),u=s.getFont(),f=Hh(o,u),c=n.position,h=f.width+l[1]+l[3],v=f.height+l[0]+l[2],d=n.align;d==="right"&&(c[0]-=h),d==="center"&&(c[0]-=h/2);var p=n.verticalAlign;p==="bottom"&&(c[1]-=v),p==="middle"&&(c[1]-=v/2),hM(c,h,v,a);var y=s.get("backgroundColor");(!y||y==="auto")&&(y=e.get(["axisLine","lineStyle","color"])),r.label={x:c[0],y:c[1],style:Ae(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:y}),z2:10}}function hM(r,e,t,a){var n=a.getWidth(),i=a.getHeight();r[0]=Math.min(r[0]+e,n)-e,r[1]=Math.min(r[1]+t,i)-t,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function Ly(r,e,t,a,n){r=e.scale.parse(r);var i=e.scale.getLabel({value:r},{precision:n.precision}),o=n.formatter;if(o){var s={value:ji(e,{value:r}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};T(a,function(l){var u=t.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,c=u&&u.getDataParams(f);c&&s.seriesData.push(c)}),Z(o)?i=o.replace("{value}",i):Q(o)&&(i=o(s))}return i}function Iy(r,e,t){var a=On();return Uh(a,a,t.rotation),bm(a,a,t.position),ua([r.dataToCoord(e),(t.labelOffset||0)+(t.labelDirection||1)*(t.labelMargin||0)],a)}function dM(r,e,t,a,n,i){var o=Ot.innerTextLayout(t.rotation,0,t.labelDirection);t.labelMargin=n.get(["label","margin"]),vM(e,a,n,i,{position:Iy(a.axis,r,t),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function pM(r,e,t){return t=t||0,{x1:r[t],y1:r[1-t],x2:e[t],y2:e[1-t]}}function gM(r,e,t){return t=t||0,{x:r[t],y:r[1-t],width:e[t],height:e[1-t]}}var yM=(function(r){U(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,a,n,i,o){var s=n.axis,l=s.grid,u=i.get("type"),f=ah(l,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(a,!0));if(u&&u!=="none"){var h=cM(i),v=mM[u](s,c,f);v.style=h,t.graphicKey=v.type,t.pointer=v}var d=no(l.getRect(),n);dM(a,t,d,n,i,o)},e.prototype.getHandleTransform=function(t,a,n){var i=no(a.axis.grid.getRect(),a,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=Iy(a.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,a,n,i){var o=n.axis,s=o.grid,l=o.getGlobalExtent(!0),u=ah(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,c=[t.x,t.y];c[f]+=a[f],c[f]=Math.min(l[1],c[f]),c[f]=Math.max(l[0],c[f]);var h=(u[1]+u[0])/2,v=[h,h];v[f]=c[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:t.rotation,cursorPoint:v,tooltipOption:d[f]}},e})(fM);function ah(r,e){var t={};return t[e.dim+"AxisIndex"]=e.index,r.getCartesian(t)}var mM={line:function(r,e,t){var a=pM([e,t[0]],[e,t[1]],nh(r));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(r,e,t){var a=Math.max(1,r.getBandWidth()),n=t[1]-t[0];return{type:"Rect",shape:gM([e-a/2,t[0]],[a,n],nh(r))}}};function nh(r){return r.dim==="x"?0:1}var _M=(function(r){U(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:B.color.border,width:1,type:"dashed"},shadowStyle:{color:B.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:B.color.neutral00,padding:[5,7,5,7],backgroundColor:B.color.accent60,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:B.color.accent40,throttle:40}},e})(ie),Et=ne(),SM=T;function ky(r,e,t){if(!be.node){var a=e.getZr();Et(a).records||(Et(a).records={}),xM(a,e);var n=Et(a).records[r]||(Et(a).records[r]={});n.handler=t}}function xM(r,e){if(Et(r).initialized)return;Et(r).initialized=!0,t("click",ye(ih,"click")),t("mousemove",ye(ih,"mousemove")),t("globalout",wM);function t(a,n){r.on(a,function(i){var o=TM(e);SM(Et(r).records,function(s){s&&n(s,i,o.dispatchAction)}),bM(o.pendings,e)})}}function bM(r,e){var t=r.showTip.length,a=r.hideTip.length,n;t?n=r.showTip[t-1]:a&&(n=r.hideTip[a-1]),n&&(n.dispatchAction=null,e.dispatchAction(n))}function wM(r,e,t){r.handler("leave",null,t)}function ih(r,e,t,a){e.handler(r,t,a)}function TM(r){var e={showTip:[],hideTip:[]},t=function(a){var n=e[a.type];n?n.push(a):(a.dispatchAction=t,r.dispatchAction(a))};return{dispatchAction:t,pendings:e}}function Bl(r,e){if(!be.node){var t=e.getZr(),a=(Et(t).records||{})[r];a&&(Et(t).records[r]=null)}}var CM=(function(r){U(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=a.getComponent("tooltip"),o=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";ky("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})})},e.prototype.remove=function(t,a){Bl("axisPointer",a)},e.prototype.dispose=function(t,a){Bl("axisPointer",a)},e.type="axisPointer",e})(Ue);function Py(r,e){var t=[],a=r.seriesIndex,n;if(a==null||!(n=e.getSeriesByIndex(a)))return{point:[]};var i=n.getData(),o=Lr(i,r);if(o==null||o<0||N(o))return{point:[]};var s=i.getItemGraphicEl(o),l=n.coordinateSystem;if(n.getTooltipPosition)t=n.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),c=f.dim,h=u.dim,v=c==="x"||c==="radius"?1:0,d=i.mapDimension(h),p=[];p[v]=i.get(d,o),p[1-v]=i.get(i.getCalculationInfo("stackResultDimension"),o),t=l.dataToPoint(p)||[]}else t=l.dataToPoint(i.getValues(X(l.dimensions,function(g){return i.mapDimension(g)}),o))||[];else if(s){var y=s.getBoundingRect().clone();y.applyTransform(s.transform),t=[y.x+y.width/2,y.y+y.height/2]}return{point:t,el:s}}var oh=ne();function MM(r,e,t){var a=r.currTrigger,n=[r.x,r.y],i=r,o=r.dispatchAction||$(t.dispatchAction,t),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){ki(n)&&(n=Py({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},e).point);var l=ki(n),u=i.axesInfo,f=s.axesInfo,c=a==="leave"||ki(n),h={},v={},d={list:[],map:{}},p={showPointer:ye(AM,v),showTooltip:ye(LM,d)};T(s.coordSysMap,function(g,m){var _=l||g.containPoint(n);T(s.coordSysAxesInfo[m],function(S,b){var x=S.axis,w=RM(u,S);if(!c&&_&&(!u||w)){var D=w&&w.value;D==null&&!l&&(D=x.pointToData(n)),D!=null&&sh(S,D,p,!1,h)}})});var y={};return T(f,function(g,m){var _=g.linkGroup;_&&!v[m]&&T(_.axesInfo,function(S,b){var x=v[b];if(S!==g&&x){var w=x.value;_.mapper&&(w=g.axis.scale.parse(_.mapper(w,lh(S),lh(g)))),y[g.key]=w}})}),T(y,function(g,m){sh(f[m],g,p,!0,h)}),IM(v,f,h),kM(d,n,r,o),PM(f,o,t),h}}function sh(r,e,t,a,n){var i=r.axis;if(!(i.scale.isBlank()||!i.containData(e))){if(!r.involveSeries){t.showPointer(r,e);return}var o=DM(e,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&n.seriesIndex==null&&F(n,s[0]),!a&&r.snap&&i.containData(l)&&l!=null&&(e=l),t.showPointer(r,e,s),t.showTooltip(r,o,l)}}function DM(r,e){var t=e.axis,a=t.dim,n=r,i=[],o=Number.MAX_VALUE,s=-1;return T(e.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(a),c,h;if(l.getAxisTooltipData){var v=l.getAxisTooltipData(f,r,t);h=v.dataIndices,c=v.nestestValue}else{if(h=l.indicesOfNearest(a,f[0],r,t.type==="category"?.5:null),!h.length)return;c=l.getData().get(f[0],h[0])}if(!(c==null||!isFinite(c))){var d=r-c,p=Math.abs(d);p<=o&&((p<o||d>=0&&s<0)&&(o=p,s=d,n=c,i.length=0),T(h,function(y){i.push({seriesIndex:l.seriesIndex,dataIndexInside:y,dataIndex:l.getData().getRawIndex(y)})}))}}),{payloadBatch:i,snapToValue:n}}function AM(r,e,t,a){r[e.key]={value:t,payloadBatch:a}}function LM(r,e,t,a){var n=t.payloadBatch,i=e.axis,o=i.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!n.length)){var l=e.coordSys.model,u=In(l),f=r.map[u];f||(f=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(f)),f.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 IM(r,e,t){var a=t.axesInfo=[];T(e,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 kM(r,e,t,a){if(ki(e)||!r.list.length){a({type:"hideTip"});return}var n=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};a({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:t.tooltipOption,position:t.position,dataIndexInside:n.dataIndexInside,dataIndex:n.dataIndex,seriesIndex:n.seriesIndex,dataByCoordSys:r.list})}function PM(r,e,t){var a=t.getZr(),n="axisPointerLastHighlights",i=oh(a)[n]||{},o=oh(a)[n]={};T(r,function(u,f){var c=u.axisPointerModel.option;c.status==="show"&&u.triggerEmphasis&&T(c.seriesDataIndices,function(h){var v=h.seriesIndex+" | "+h.dataIndex;o[v]=h})});var s=[],l=[];T(i,function(u,f){!o[f]&&l.push(u)}),T(o,function(u,f){!i[f]&&s.push(u)}),l.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function RM(r,e){for(var t=0;t<(r||[]).length;t++){var a=r[t];if(e.axis.dim===a.axisDim&&e.axis.model.componentIndex===a.axisIndex)return a}}function lh(r){var e=r.axis.model,t={},a=t.axisDim=r.axis.dim;return t.axisIndex=t[a+"AxisIndex"]=e.componentIndex,t.axisName=t[a+"AxisName"]=e.name,t.axisId=t[a+"AxisId"]=e.id,t}function ki(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function Ry(r){sy.registerAxisPointerClass("CartesianAxisPointer",yM),r.registerComponentModel(_M),r.registerComponentView(CM),r.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!N(t)&&(e.axisPointer.link=[t])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=tT(e,t)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},MM)}function JD(r){ot(dT),ot(Ry)}var EM=(function(r){U(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a,n){var i=ba(t);r.prototype.init.apply(this,arguments),uh(t,i)},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),uh(this.option,t)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.layoutMode="box",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:B.color.axisLine,width:1,type:"solid"}},itemStyle:{color:B.color.neutral00,borderWidth:1,borderColor:B.color.neutral10},dayLabel:{show:!0,firstDay:0,position:"start",margin:B.size.s,color:B.color.secondary},monthLabel:{show:!0,position:"start",margin:B.size.s,align:"center",formatter:null,color:B.color.secondary},yearLabel:{show:!0,position:null,margin:B.size.xl,formatter:null,color:B.color.quaternary,fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e})(ie);function uh(r,e){var t=r.cellSize,a;N(t)?a=t:a=r.cellSize=[t,t],a.length===1&&(a[1]=a[0]);var n=X([0,1],function(i){return A_(e,i)&&(a[i]="auto"),a[i]!=null&&a[i]!=="auto"});zt(r,e,{type:"box",ignoreSize:n})}var OM=(function(r){U(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=this.group;i.removeAll();var o=t.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=a.getLocaleModel();this._renderDayRect(t,s,i),this._renderLines(t,s,l,i),this._renderYearText(t,s,l,i),this._renderMonthText(t,u,l,i),this._renderWeekText(t,u,s,l,i)},e.prototype._renderDayRect=function(t,a,n){for(var i=t.coordinateSystem,o=t.getModel("itemStyle").getItemStyle(),s=i.getCellWidth(),l=i.getCellHeight(),u=a.start.time;u<=a.end.time;u=i.getNextNDay(u,1).time){var f=i.dataToCalendarLayout([u],!1).tl,c=new ve({shape:{x:f[0],y:f[1],width:s,height:l},cursor:"default",style:o});n.add(c)}},e.prototype._renderLines=function(t,a,n,i){var o=this,s=t.coordinateSystem,l=t.getModel(["splitLine","lineStyle"]).getLineStyle(),u=t.get(["splitLine","show"]),f=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var c=a.start,h=0;c.time<=a.end.time;h++){d(c.formatedDate),h===0&&(c=s.getDateInfo(a.start.y+"-"+a.start.m));var v=c.date;v.setMonth(v.getMonth()+1),c=s.getDateInfo(v)}d(s.getNextNDay(a.end.time,1).formatedDate);function d(p){o._firstDayOfMonth.push(s.getDateInfo(p)),o._firstDayPoints.push(s.dataToCalendarLayout([p],!1).tl);var y=o._getLinePointsOfOneWeek(t,p,n);o._tlpoints.push(y[0]),o._blpoints.push(y[y.length-1]),u&&o._drawSplitline(y,l,i)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,f,n),l,i),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,f,n),l,i)},e.prototype._getEdgesPoints=function(t,a,n){var i=[t[0].slice(),t[t.length-1].slice()],o=n==="horizontal"?0:1;return i[0][o]=i[0][o]-a/2,i[1][o]=i[1][o]+a/2,i},e.prototype._drawSplitline=function(t,a,n){var i=new Pr({z2:20,shape:{points:t},style:a});n.add(i)},e.prototype._getLinePointsOfOneWeek=function(t,a,n){for(var i=t.coordinateSystem,o=i.getDateInfo(a),s=[],l=0;l<7;l++){var u=i.getNextNDay(o.time,l),f=i.dataToCalendarLayout([u.time],!1);s[2*u.day]=f.tl,s[2*u.day+1]=f[n==="horizontal"?"bl":"tr"]}return s},e.prototype._formatterLabel=function(t,a){return Z(t)&&t?p_(t,a):Q(t)?t(a):a.nameMap},e.prototype._yearTextPositionControl=function(t,a,n,i,o){var s=a[0],l=a[1],u=["center","bottom"];i==="bottom"?(l+=o,u=["center","top"]):i==="left"?s-=o:i==="right"?(s+=o,u=["center","top"]):l-=o;var f=0;return(i==="left"||i==="right")&&(f=Math.PI/2),{rotation:f,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},e.prototype._renderYearText=function(t,a,n,i){var o=t.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=n!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],f=(u[0][0]+u[1][0])/2,c=(u[0][1]+u[1][1])/2,h=n==="horizontal"?0:1,v={top:[f,u[h][1]],bottom:[f,u[1-h][1]],left:[u[1-h][0],c],right:[u[h][0],c]},d=a.start.y;+a.end.y>+a.start.y&&(d=d+"-"+a.end.y);var p=o.get("formatter"),y={start:a.start.y,end:a.end.y,nameMap:d},g=this._formatterLabel(p,y),m=new de({z2:30,style:Ae(o,{text:g}),silent:o.get("silent")});m.attr(this._yearTextPositionControl(m,v[l],n,l,s)),i.add(m)}},e.prototype._monthTextPositionControl=function(t,a,n,i,o){var s="left",l="top",u=t[0],f=t[1];return n==="horizontal"?(f=f+o,a&&(s="center"),i==="start"&&(l="bottom")):(u=u+o,a&&(l="middle"),i==="start"&&(s="right")),{x:u,y:f,align:s,verticalAlign:l}},e.prototype._renderMonthText=function(t,a,n,i){var o=t.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),f=o.get("align"),c=[this._tlpoints,this._blpoints];(!s||Z(s))&&(s&&(a=Qs(s)||a),s=a.get(["time","monthAbbr"])||[]);var h=u==="start"?0:1,v=n==="horizontal"?0:1;l=u==="start"?-l:l;for(var d=f==="center",p=o.get("silent"),y=0;y<c[h].length-1;y++){var g=c[h][y].slice(),m=this._firstDayOfMonth[y];if(d){var _=this._firstDayPoints[y];g[v]=(_[v]+c[0][y+1][v])/2}var S=o.get("formatter"),b=s[+m.m-1],x={yyyy:m.y,yy:(m.y+"").slice(2),MM:m.m,M:+m.m,nameMap:b},w=this._formatterLabel(S,x),D=new de({z2:30,style:F(Ae(o,{text:w}),this._monthTextPositionControl(g,d,n,u,l)),silent:p});i.add(D)}}},e.prototype._weekTextPositionControl=function(t,a,n,i,o){var s="center",l="middle",u=t[0],f=t[1],c=n==="start";return a==="horizontal"?(u=u+i+(c?1:-1)*o[0]/2,s=c?"right":"left"):(f=f+i+(c?1:-1)*o[1]/2,l=c?"bottom":"top"),{x:u,y:f,align:s,verticalAlign:l}},e.prototype._renderWeekText=function(t,a,n,i,o){var s=t.getModel("dayLabel");if(s.get("show")){var l=t.coordinateSystem,u=s.get("position"),f=s.get("nameMap"),c=s.get("margin"),h=l.getFirstDayOfWeek();if(!f||Z(f)){f&&(a=Qs(f)||a);var v=a.get(["time","dayOfWeekShort"]);f=v||X(a.get(["time","dayOfWeekAbbr"]),function(x){return x[0]})}var d=l.getNextNDay(n.end.time,7-n.lweek).time,p=[l.getCellWidth(),l.getCellHeight()];c=re(c,Math.min(p[1],p[0])),u==="start"&&(d=l.getNextNDay(n.start.time,-(7+n.fweek)).time,c=-c);for(var y=s.get("silent"),g=0;g<7;g++){var m=l.getNextNDay(d,g),_=l.dataToCalendarLayout([m.time],!1).center,S=g;S=Math.abs((g+h)%7);var b=new de({z2:30,style:F(Ae(s,{text:f[S]}),this._weekTextPositionControl(_,i,u,c,p)),silent:y});o.add(b)}}},e.type="calendar",e})(Ue),Ps=864e5,NM=(function(){function r(e,t,a){this.type="calendar",this.dimensions=r.dimensions,this.getDimensionsInfo=r.getDimensionsInfo,this._model=e,this._update(t,a)}return r.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},r.prototype.getRangeInfo=function(){return this._rangeInfo},r.prototype.getModel=function(){return this._model},r.prototype.getRect=function(){return this._rect},r.prototype.getCellWidth=function(){return this._sw},r.prototype.getCellHeight=function(){return this._sh},r.prototype.getOrient=function(){return this._orient},r.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},r.prototype.getDateInfo=function(e){e=Er(e);var t=e.getFullYear(),a=e.getMonth()+1,n=a<10?"0"+a:""+a,i=e.getDate(),o=i<10?"0"+i:""+i,s=e.getDay();return s=Math.abs((s+7-this.getFirstDayOfWeek())%7),{y:t+"",m:n,d:o,day:s,time:e.getTime(),formatedDate:t+"-"+n+"-"+o,date:e}},r.prototype.getNextNDay=function(e,t){return t=t||0,t===0?this.getDateInfo(e):(e=new Date(this.getDateInfo(e).time),e.setDate(e.getDate()+t),this.getDateInfo(e))},r.prototype._update=function(e,t){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var a=this._rangeInfo.weeks||1,n=["width","height"],i=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),s=this._orient==="horizontal"?[a,7]:[7,a];T([0,1],function(c){f(i,c)&&(o[n[c]]=i[c]*s[c])});var l={width:t.getWidth(),height:t.getHeight()},u=this._rect=qe(o,l);T([0,1],function(c){f(i,c)||(i[c]=u[n[c]]/s[c])});function f(c,h){return c[h]!=null&&c[h]!=="auto"}this._sw=i[0],this._sh=i[1]},r.prototype.dataToPoint=function(e,t,a){a=a||[],N(e)&&(e=e[0]),t==null&&(t=!0);var n=this.getDateInfo(e),i=this._rangeInfo,o=n.formatedDate;if(t&&!(n.time>=i.start.time&&n.time<i.end.time+Ps))return a[0]=a[1]=NaN,a;var s=n.day,l=this._getRangeInfo([i.start.time,o]).nthWeek;return this._orient==="vertical"?(a[0]=this._rect.x+s*this._sw+this._sw/2,a[1]=this._rect.y+l*this._sh+this._sh/2):(a[0]=this._rect.x+l*this._sw+this._sw/2,a[1]=this._rect.y+s*this._sh+this._sh/2),a},r.prototype.pointToData=function(e){var t=this.pointToDate(e);return t&&t.time},r.prototype.dataToLayout=function(e,t,a){a=a||{};var n=a.rect=a.rect||{},i=a.contentRect=a.contentRect||{},o=this.dataToPoint(e,t);return n.x=o[0]-this._sw/2,n.y=o[1]-this._sh/2,n.width=this._sw,n.height=this._sh,Me.copy(i,n),mn(i,this._lineWidth/2,!0,!0),a},r.prototype.dataToCalendarLayout=function(e,t){var a=this.dataToPoint(e,t);return{center:a,tl:[a[0]-this._sw/2,a[1]-this._sh/2],tr:[a[0]+this._sw/2,a[1]-this._sh/2],br:[a[0]+this._sw/2,a[1]+this._sh/2],bl:[a[0]-this._sw/2,a[1]+this._sh/2]}},r.prototype.pointToDate=function(e){var t=Math.floor((e[0]-this._rect.x)/this._sw)+1,a=Math.floor((e[1]-this._rect.y)/this._sh)+1,n=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(a,t-1,n):this._getDateByWeeksAndDay(t,a-1,n)},r.prototype.convertToPixel=function(e,t,a){var n=Rs(t);return n===this?n.dataToPoint(a):null},r.prototype.convertToLayout=function(e,t,a){var n=Rs(t);return n===this?n.dataToLayout(a):null},r.prototype.convertFromPixel=function(e,t,a){var n=Rs(t);return n===this?n.pointToData(a):null},r.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},r.prototype._initRangeOption=function(){var e=this._model.get("range"),t;if(N(e)&&e.length===1&&(e=e[0]),N(e))t=e;else{var a=e.toString();if(/^\d{4}$/.test(a)&&(t=[a+"-01-01",a+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(a)){var n=this.getDateInfo(a),i=n.date;i.setMonth(i.getMonth()+1);var o=this.getNextNDay(i,-1);t=[n.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(a)&&(t=[a,a])}if(!t)return e;var s=this._getRangeInfo(t);return s.start.time>s.end.time&&t.reverse(),t},r.prototype._getRangeInfo=function(e){var t=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],a;t[0].time>t[1].time&&(a=!0,t.reverse());var n=Math.floor(t[1].time/Ps)-Math.floor(t[0].time/Ps)+1,i=new Date(t[0].time),o=i.getDate(),s=t[1].date.getDate();i.setDate(o+n-1);var l=i.getDate();if(l!==s)for(var u=i.getTime()-t[1].time>0?1:-1;(l=i.getDate())!==s&&(i.getTime()-t[1].time)*u>0;)n-=u,i.setDate(l-u);var f=Math.floor((n+t[0].day+6)/7),c=a?-f+1:f-1;return a&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:n,weeks:f,nthWeek:c,fweek:t[0].day,lweek:t[1].day}},r.prototype._getDateByWeeksAndDay=function(e,t,a){var n=this._getRangeInfo(a);if(e>n.weeks||e===0&&t<n.fweek||e===n.weeks&&t>n.lweek)return null;var i=(e-1)*7-n.fweek+t,o=new Date(n.start.time);return o.setDate(+n.start.d+i),this.getDateInfo(o)},r.create=function(e,t){var a=[];return e.eachComponent("calendar",function(n){var i=new r(n,e,t);a.push(i),n.coordinateSystem=i}),e.eachComponent(function(n,i){yu({targetModel:i,coordSysType:"calendar",coordSysProvider:x_})}),a},r.dimensions=["time","value"],r})();function Rs(r){var e=r.calendarModel,t=r.seriesModel,a=e?e.coordinateSystem:t?t.coordinateSystem:null;return a}function eA(r){r.registerComponentModel(EM),r.registerComponentView(OM),r.registerCoordinateSystem("calendar",NM)}function BM(r,e){var t=Fn(e.get("padding")),a=e.getItemStyle(["color","opacity"]);a.fill=e.get("backgroundColor");var n=new ve({shape:{x:r.x-t[3],y:r.y-t[0],width:r.width+t[1]+t[3],height:r.height+t[0]+t[2],r:e.get("borderRadius")},style:a,silent:!0,z2:-1});return n}var VM=(function(r){U(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:B.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:B.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:B.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:B.color.tertiary,fontSize:14}},e})(ie);function Ey(r){var e=r.get("confine");return e!=null?!!e:r.get("renderMode")==="richText"}function Oy(r){if(be.domSupported){for(var e=document.documentElement.style,t=0,a=r.length;t<a;t++)if(r[t]in e)return r[t]}}var Ny=Oy(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),zM=Oy(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function By(r,e){if(!r)return e;e=Gd(e,!0);var t=r.indexOf(e);return r=t===-1?e:"-"+r.slice(0,t)+"-"+e,r.toLowerCase()}function GM(r,e){var t=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return t?t[e]:null}var FM=By(zM,"transition"),rf=By(Ny,"transform"),HM="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(be.transform3dSupported?"will-change:transform;":"");function WM(r){return r=r==="left"?"right":r==="right"?"left":r==="top"?"bottom":"top",r}function UM(r,e,t){if(!Z(t)||t==="inside")return"";var a=r.get("backgroundColor"),n=r.get("borderWidth");e=Ir(e);var i=WM(t),o=Math.max(Math.round(n)*1.5,6),s="",l=rf+":",u;fe(["left","right"],i)>-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 f=u*Math.PI/180,c=o+n,h=c*Math.abs(Math.cos(f))+c*Math.abs(Math.sin(f)),v=Math.round(((h-Math.SQRT2*n)/2+Math.SQRT2*n-(h-c)/2)*100)/100;s+=";"+i+":-"+v+"px";var d=e+" 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'<div style="'+p.join("")+'"></div>'}function YM(r,e,t){var a="cubic-bezier(0.23,1,0.32,1)",n="",i="";return t&&(n=" "+r/2+"s "+a,i="opacity"+n+",visibility"+n),e||(n=" "+r+"s "+a,i+=(i.length?",":"")+(be.transformSupported?""+rf+n:",left"+n+",top"+n)),FM+":"+i}function fh(r,e,t){var a=r.toFixed(0)+"px",n=e.toFixed(0)+"px";if(!be.transformSupported)return t?"top:"+n+";left:"+a+";":[["top",n],["left",a]];var i=be.transform3dSupported,o="translate"+(i?"3d":"")+"("+a+","+n+(i?",0":"")+")";return t?"top:0;left:0;"+rf+":"+o+";":[["top",0],["left",0],[Ny,o]]}function XM(r){var e=[],t=r.get("fontSize"),a=r.getTextColor();a&&e.push("color:"+a),e.push("font:"+r.getFont());var n=j(r.get("lineHeight"),Math.round(t*3/2));t&&e.push("line-height:"+n+"px");var i=r.get("textShadowColor"),o=r.get("textShadowBlur")||0,s=r.get("textShadowOffsetX")||0,l=r.get("textShadowOffsetY")||0;return i&&o&&e.push("text-shadow:"+s+"px "+l+"px "+o+"px "+i),T(["decoration","align"],function(u){var f=r.get(u);f&&e.push("text-"+u+":"+f)}),e.join(";")}function ZM(r,e,t,a){var n=[],i=r.get("transitionDuration"),o=r.get("backgroundColor"),s=r.get("shadowBlur"),l=r.get("shadowColor"),u=r.get("shadowOffsetX"),f=r.get("shadowOffsetY"),c=r.getModel("textStyle"),h=pp(r,"html"),v=u+"px "+f+"px "+s+"px "+l;return n.push("box-shadow:"+v),e&&i>0&&n.push(YM(i,t,a)),o&&n.push("background-color:"+o),T(["width","color","radius"],function(d){var p="border-"+d,y=Gd(p),g=r.get(y);g!=null&&n.push(p+":"+g+(d==="color"?"":"px"))}),n.push(XM(c)),h!=null&&n.push("padding:"+Fn(h).join("px ")+"px"),n.join(";")+";"}function ch(r,e,t,a,n){var i=e&&e.painter;if(t){var o=i&&i.getViewportRoot();o&&Tm(r,o,t,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]/e.getWidth(),r[3]=r[1]/e.getHeight()}var $M=(function(){function r(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,be.wxa)return null;var a=document.createElement("div");a.domBelongToZr=!0,this.el=a;var n=this._zr=e.getZr(),i=t.appendTo,o=i&&(Z(i)?document.querySelector(i):vf(i)?i:Q(i)&&i(e.getDom()));ch(this._styleCoord,n,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(a),this._api=e,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,f=n.painter.getViewportRoot();wm(f,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(e){if(!this._container){var t=this._api.getDom(),a=GM(t,"position"),n=t.style;n.position!=="absolute"&&a!=="absolute"&&(n.position="relative")}var i=e.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this._enableDisplayTransition=e.get("displayTransition")&&e.get("transitionDuration")>0,this.el.className=e.get("className")||""},r.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var a=this.el,n=a.style,i=this._styleCoord;a.innerHTML?n.cssText=HM+ZM(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+fh(i[0],i[1],!0)+("border-color:"+Ir(t)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):n.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(e,t,a,n,i){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(Z(i)&&a.get("trigger")==="item"&&!Ey(a)&&(s=UM(a,n,i)),Z(e))o.innerHTML=e+s;else if(e){o.innerHTML="",N(e)||(e=[e]);for(var l=0;l<e.length;l++)vf(e[l])&&e[l].parentNode!==o&&o.appendChild(e[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},r.prototype.setEnterable=function(e){this._enterable=e},r.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},r.prototype.moveTo=function(e,t){if(this.el){var a=this._styleCoord;if(ch(a,this._zr,this._container,e,t),a[0]!=null&&a[1]!=null){var n=this.el.style,i=fh(a[0],a[1]);T(i,function(o){n[o[0]]=o[1]})}}},r.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},r.prototype.hide=function(){var e=this,t=this.el.style;this._enableDisplayTransition?(t.visibility="hidden",t.opacity="0"):t.display="none",be.transform3dSupported&&(t.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},r.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout($(this.hide,this),e)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this._zr;Cm(e&&e.painter&&e.painter.getViewportRoot(),this._container);var t=this.el;if(t){t.onmouseenter=t.onmousemove=t.onmouseleave=null;var a=t.parentNode;a&&a.removeChild(t)}this.el=this._container=null},r})(),KM=(function(){function r(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),hh(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return r.prototype.update=function(e){var t=e.get("alwaysShowContent");t&&this._moveIfResized(),this._alwaysShowContent=t},r.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},r.prototype.setContent=function(e,t,a,n,i){var o=this;K(e)&&Oe(""),this.el&&this._zr.remove(this.el);var s=a.getModel("textStyle");this.el=new de({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:n,textShadowColor:s.get("textShadowColor"),fill:a.get(["textStyle","color"]),padding:pp(a,"richText"),verticalAlign:"top",align:"left"},z:a.get("z")}),T(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=a.get(u)}),T(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},r.prototype.setEnterable=function(e){this._enterable=e},r.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),a=vh(e.style);return[t.width+a.left+a.right,t.height+a.top+a.bottom]},r.prototype.moveTo=function(e,t){var a=this.el;if(a){var n=this._styleCoord;hh(n,this._zr,e,t),e=n[0],t=n[1];var i=a.style,o=Qt(i.borderWidth||0),s=vh(i);a.x=e+o+s.left,a.y=t+o+s.top,a.markRedraw()}},r.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},r.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},r.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout($(this.hide,this),e)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this._zr.remove(this.el)},r})();function Qt(r){return Math.max(0,r)}function vh(r){var e=Qt(r.shadowBlur||0),t=Qt(r.shadowOffsetX||0),a=Qt(r.shadowOffsetY||0);return{left:Qt(e-t),right:Qt(e+t),top:Qt(e-a),bottom:Qt(e+a)}}function hh(r,e,t,a){r[0]=t,r[1]=a,r[2]=r[0]/e.getWidth(),r[3]=r[1]/e.getHeight()}var qM=new ve({shape:{x:-1,y:-1,width:2,height:2}}),jM=(function(r){U(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a){if(!(be.node||!a.getDom())){var n=t.getComponent("tooltip"),i=this._renderMode=Qm(n.get("renderMode"));this._tooltipContent=i==="richText"?new KM(a):new $M(a,{appendTo:n.get("appendToBody",!0)?"body":n.get("appendTo",!0)})}},e.prototype.render=function(t,a,n){if(!(be.node||!n.getDom())){this.group.removeAll(),this._tooltipModel=t,this._ecModel=a,this._api=n;var i=this._tooltipContent;i.update(t),i.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&t.get("transitionDuration")?mp(this,"_updatePosition",50,"fixRate"):sl(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel,a=t.get("triggerOn");ky("itemTooltip",this._api,$(function(n,i,o){a!=="none"&&(a.indexOf(n)>=0?this._tryShow(i,o):n==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,a=this._ecModel,n=this._api,i=t.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(t,a,n,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,a,n,i){if(!(i.from===this.uid||be.node||!n.getDom())){var o=dh(i,n);this._ticket="";var s=i.dataByCoordSys,l=tD(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 f=qM;f.x=i.x,f.y=i.y,f.update(),te(f).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:f},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(t,a,n,i))return;var c=Py(i,a),h=c.point[0],v=c.point[1];h!=null&&v!=null&&this._tryShow({offsetX:h,offsetY:v,target:c.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))}},e.prototype.manuallyHideTip=function(t,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(dh(i,n))},e.prototype._manuallyAxisShowTip=function(t,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 f=u.getData(),c=Wa([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(c.get("trigger")==="axis")return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},e.prototype._tryShow=function(t,a){var n=t.target,i=this._tooltipModel;if(i){this._lastX=t.offsetX,this._lastY=t.offsetY;var o=t.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,t);else if(n){var s=te(n);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;oa(n,function(f){if(f.tooltipDisabled)return l=u=null,!0;l||u||(te(f).dataIndex!=null?l=f:te(f).tooltipConfig!=null&&(u=f))},!0),l?this._showSeriesItemTooltip(t,l,a):u?this._showComponentItemTooltip(t,u,a):this._hide(a)}else this._lastDataByCoordSys=null,this._hide(a)}},e.prototype._showOrMove=function(t,a){var n=t.get("showDelay");a=$(a,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(a,n):a()},e.prototype._showAxisTooltip=function(t,a){var n=this._ecModel,i=this._tooltipModel,o=[a.offsetX,a.offsetY],s=Wa([a.tooltipOption],i),l=this._renderMode,u=[],f=ir("section",{blocks:[],noHeader:!0}),c=[],h=new Uo;T(t,function(m){T(m.dataByAxis,function(_){var S=n.getComponent(_.axisDim+"Axis",_.axisIndex),b=_.value;if(!(!S||b==null)){var x=Ly(b,S.axis,n,_.seriesDataIndices,_.valueLabelOpt),w=ir("section",{header:x,noHeader:!Bn(x),sortBlocks:!0,blocks:[]});f.blocks.push(w),T(_.seriesDataIndices,function(D){var M=n.getSeriesByIndex(D.seriesIndex),A=D.dataIndexInside,C=M.getDataParams(A);if(!(C.dataIndex<0)){C.axisDim=_.axisDim,C.axisIndex=_.axisIndex,C.axisType=_.axisType,C.axisId=_.axisId,C.axisValue=ji(S.axis,{value:b}),C.axisValueLabel=x,C.marker=h.makeTooltipMarker("item",Ir(C.color),l);var I=rc(M.formatTooltip(A,!0,null)),L=I.frag;if(L){var E=Wa([M],i).get("valueFormatter");w.blocks.push(E?F({valueFormatter:E},L):L)}I.text&&c.push(I.text),u.push(C)}})}})}),f.blocks.reverse(),c.reverse();var v=a.position,d=s.get("order"),p=lc(f,h,l,d,n.get("useUTC"),s.get("textStyle"));p&&c.unshift(p);var y=l==="richText"?`
|
|
7
|
+
`];function ir(r,e){return e.type=r,e}function il(r){return r.type==="section"}function vp(r){return il(r)?ES:OS}function hp(r){if(il(r)){var e=0,t=r.blocks.length,a=t>1||t>0&&!r.noHeader;return T(r.blocks,function(n){var i=hp(n);i>=e&&(e=i+ +(a&&(!i||il(n)&&!n.noHeader)))}),e}return 0}function ES(r,e,t,a){var n=e.noHeader,i=NS(hp(e)),o=[],s=e.blocks||[];ht(!s||N(s)),s=s||[];var l=r.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(G(u,l)){var f=new mS(u[l],null);s.sort(function(p,y){return f.evaluate(p.sortParam,y.sortParam)})}else l==="seriesDesc"&&s.reverse()}T(s,function(p,y){var g=e.valueFormatter,m=vp(p)(g?F(F({},r),{valueFormatter:g}):r,p,y>0?i.html:0,a);m!=null&&o.push(m)});var c=r.renderMode==="richText"?o.join(i.richText):ol(a,o.join(""),n?t:i.html);if(n)return c;var h=tl(e.header,"ordinal",r.useUTC),v=cp(a,r.renderMode).nameStyle,d=fp(a);return r.renderMode==="richText"?dp(r,h,v)+i.richText+c:ol(a,'<div style="'+v+";"+d+';">'+Ye(h)+"</div>"+c,t)}function OS(r,e,t,a){var n=r.renderMode,i=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=r.useUTC,f=e.valueFormatter||r.valueFormatter||function(S){return S=N(S)?S:[S],X(S,function(b,x){return tl(b,N(v)?v[x]:v,u)})};if(!(i&&o)){var c=s?"":r.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||B.color.secondary,n),h=i?"":tl(l,"ordinal",u),v=e.valueType,d=o?[]:f(e.value,e.dataIndex),p=!s||!i,y=!s&&i,g=cp(a,n),m=g.nameStyle,_=g.valueStyle;return n==="richText"?(s?"":c)+(i?"":dp(r,h,m))+(o?"":zS(r,d,p,y,_)):ol(a,(s?"":c)+(i?"":BS(h,!s,m))+(o?"":VS(d,p,y,_)),t)}}function uc(r,e,t,a,n,i){if(r){var o=vp(r),s={useUTC:n,renderMode:t,orderMode:a,markupStyleCreator:e,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function NS(r){return{html:PS[r],richText:RS[r]}}function ol(r,e,t){var a='<div style="clear:both"></div>',n="margin: "+t+"px 0 0",i=fp(r);return'<div style="'+n+";"+i+';">'+e+a+"</div>"}function BS(r,e,t){var a=e?"margin-left:2px":"";return'<span style="'+t+";"+a+'">'+Ye(r)+"</span>"}function VS(r,e,t,a){var n=t?"10px":"20px",i=e?"float:right;margin-left:"+n:"";return r=N(r)?r:[r],'<span style="'+i+";"+a+'">'+X(r,function(o){return Ye(o)}).join(" ")+"</span>"}function dp(r,e,t){return r.markupStyleCreator.wrapRichTextStyle(e,t)}function zS(r,e,t,a,n){var i=[n],o=a?10:20;return t&&i.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(N(e)?e.join(" "):e,i)}function pp(r,e){var t=r.getData().getItemVisual(e,"style"),a=t[r.visualDrawType];return Ir(a)}function gp(r,e){var t=r.get("padding");return t??(e==="richText"?[8,10]:10)}var Uo=(function(){function r(){this.richTextStyles={},this._nextStyleNameId=Jh()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(e,t,a){var n=a==="richText"?this._generateStyleName():null,i=y_({color:t,type:e,renderMode:a,markerId:n});return Z(i)?i:(this.richTextStyles[n]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(e,t){var a={};N(t)?T(t,function(i){return F(a,i)}):F(a,t);var n=this._generateStyleName();return this.richTextStyles[n]=a,"{"+n+"|"+e+"}"},r})();function yp(r){var e=r.series,t=r.dataIndex,a=r.multipleSeries,n=e.getData(),i=n.mapDimensionsAll("defaultedTooltip"),o=i.length,s=e.getRawValue(t),l=N(s),u=pp(e,t),f,c,h,v;if(o>1||l&&!o){var d=GS(s,e,t,i,u);f=d.inlineValues,c=d.inlineValueTypes,h=d.blocks,v=d.inlineValues[0]}else if(o){var p=n.getDimensionInfo(i[0]);v=f=ga(n,t,i[0]),c=p.type}else v=f=l?s[0]:s;var y=$l(e),g=y&&e.name||"",m=n.getName(t),_=a?g:m;return ir("section",{header:g,noHeader:a||!y,sortParam:v,blocks:[ir("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Bn(_),value:f,valueType:c,dataIndex:t})].concat(h||[])})}function GS(r,e,t,a,n){var i=e.getData(),o=sn(r,function(c,h,v){var d=i.getDimensionInfo(v);return c=c||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];a.length?T(a,function(c){f(ga(i,t,c),c)}):T(r,f);function f(c,h){var v=i.getDimensionInfo(h);!v||v.otherDims.tooltip===!1||(o?u.push(ir("nameValue",{markerType:"subItem",markerColor:n,name:v.displayName,value:c,valueType:v.type})):(s.push(c),l.push(v.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Xt=ne();function Qn(r,e){return r.getName(e)||r.getId(e)}var FS="__universalTransitionEnabled",Ne=(function(r){U(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return e.prototype.init=function(t,a,n){this.seriesIndex=this.componentIndex,this.dataTask=an({count:WS,reset:US}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n);var i=Xt(this).sourceManager=new up(this);i.prepareSource();var o=this.getInitialData(t,n);cc(o,this),this.dataTask.context.data=o,Xt(this).dataBeforeProcessed=o,fc(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(t,a){var n=xn(this),i=n?ba(t):{},o=this.subType;ie.hasClass(o)&&(o+="Series"),ue(t,a.getTheme().get(this.subType)),ue(t,this.getDefaultOption()),Bi(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&zt(t,i,n)},e.prototype.mergeOption=function(t,a){t=ue(this.option,t,!0),this.fillDataTextStyle(t.data);var n=xn(this);n&&zt(this.option,t,n);var i=Xt(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(t,a);cc(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Xt(this).dataBeforeProcessed=o,fc(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(t){if(t&&!Ke(t))for(var a=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&Bi(t[n],"label",a)},e.prototype.getInitialData=function(t,a){},e.prototype.appendData=function(t){var a=this.getRawData();a.appendData(t.data)},e.prototype.getData=function(t){var a=sl(this);if(a){var n=a.context.data;return t==null||!n.getLinkedData?n:n.getLinkedData(t)}else return Xt(this).data},e.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},e.prototype.setData=function(t){var a=sl(this);if(a){var n=a.context;n.outputData=t,a!==this.dataTask&&(n.data=t)}Xt(this).data=t},e.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return ee(t)},e.prototype.getSourceManager=function(){return Xt(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return Xt(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var t=this.get("colorBy");return t||"series"},e.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},e.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},e.prototype.indicesOfNearest=function(t,a,n,i){var o=this.getData(),s=this.coordinateSystem,l=s&&s.getAxis(t);if(!s||!l)return[];var u=l.dataToCoord(n);i==null&&(i=1/0);var f=[],c=1/0,h=-1,v=0;return o.each(a,function(d,p){var y=l.dataToCoord(d),g=u-y,m=Math.abs(g);m<=i&&((m<c||m===c&&g>=0&&h<0)&&(c=m,h=g,v=0),g===h&&(f[v++]=p))}),f.length=v,f},e.prototype.formatTooltip=function(t,a,n){return yp({series:this,dataIndex:t,multipleSeries:a})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(be.node&&!(t&&t.ssr))return!1;var a=this.getShallow("animation");return a&&this.getData().count()>this.getShallow("animationThreshold")&&(a=!1),!!a},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,a,n){var i=this.ecModel,o=xu.prototype.getColorFromPalette.call(this,t,a,n);return o||(o=i.getColorFromPalette(t,a,n)),o},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,a){this._innerSelect(this.getData(a),t)},e.prototype.unselect=function(t,a){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,o=this.getData(a);if(i==="series"||n==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<t.length;s++){var l=t[s],u=Qn(o,l);n[u]=!1,this._selectedDataIndicesMap[u]=-1}}},e.prototype.toggleSelect=function(t,a){for(var n=[],i=0;i<t.length;i++)n[0]=t[i],this.isSelected(t[i],a)?this.unselect(n,a):this.select(n,a)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,a=Le(t),n=[],i=0;i<a.length;i++){var o=t[a[i]];o>=0&&n.push(o)}return n},e.prototype.isSelected=function(t,a){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(a);return(n==="all"||n[Qn(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[FS])return!0;var t=this.option.universalTransition;return t?t===!0?!0:t&&t.enabled:!1},e.prototype._innerSelect=function(t,a){var n,i,o=this.option,s=o.selectedMode,l=a.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){K(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var c=a[f],h=Qn(t,c);u[h]=!0,this._selectedDataIndicesMap[h]=t.getRawIndex(c)}}else if(s==="single"||s===!0){var v=a[l-1],h=Qn(t,v);o.selectedMap=(n={},n[h]=!0,n),this._selectedDataIndicesMap=(i={},i[h]=t.getRawIndex(v),i)}}},e.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var a=[];t.hasItemOption&&t.each(function(n){var i=t.getRawDataItem(n);i&&i.selected&&a.push(n)}),a.length>0&&this._innerSelect(t,a)}},e.registerClass=function(t){return ie.registerClass(t)},e.protoInitialize=(function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"})(),e})(ie);gt(Ne,gS);gt(Ne,xu);sd(Ne,ie);function fc(r){var e=r.name;$l(r)||(r.name=HS(r)||e)}function HS(r){var e=r.getRawData(),t=e.mapDimensionsAll("seriesName"),a=[];return T(t,function(n){var i=e.getDimensionInfo(n);i.displayName&&a.push(i.displayName)}),a.join(" ")}function WS(r){return r.model.getRawData().count()}function US(r){var e=r.model;return e.setData(e.getRawData().cloneShallow()),YS}function YS(r,e){e.outputData&&r.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function cc(r,e){T(am(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(t){r.wrapMethod(t,ye(XS,e))})}function XS(r,e){var t=sl(r);return t&&t.setOutputEnd((e||this).count()),e}function sl(r){var e=(r.ecModel||{}).scheduler,t=e&&e.getPipeline(r.uid);if(t){var a=t.currentTask;if(a){var n=a.agentStubMap;n&&(a=n.get(r.uid))}return a}}var Ue=(function(){function r(){this.group=new le,this.uid=yo("viewComponent")}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,a,n){},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,a,n){},r.prototype.updateLayout=function(e,t,a,n){},r.prototype.updateVisual=function(e,t,a,n){},r.prototype.toggleBlurSeries=function(e,t,a){},r.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},r})();ql(Ue);fo(Ue);function Du(){var r=ne();return function(e){var t=r(e),a=e.pipelineContext,n=!!t.large,i=!!t.progressiveRender,o=t.large=!!(a&&a.large),s=t.progressiveRender=!!(a&&a.progressiveRender);return(n!==o||i!==s)&&"reset"}}var mp=ne(),ZS=Du(),Re=(function(){function r(){this.group=new le,this.uid=yo("viewChart"),this.renderTask=an({plan:$S,reset:KS}),this.renderTask.context={view:this}}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,a,n){},r.prototype.highlight=function(e,t,a,n){var i=e.getData(n&&n.dataType);i&&hc(i,n,"emphasis")},r.prototype.downplay=function(e,t,a,n){var i=e.getData(n&&n.dataType);i&&hc(i,n,"normal")},r.prototype.remove=function(e,t){this.group.removeAll()},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,a,n){this.render(e,t,a,n)},r.prototype.updateLayout=function(e,t,a,n){this.render(e,t,a,n)},r.prototype.updateVisual=function(e,t,a,n){this.render(e,t,a,n)},r.prototype.eachRendered=function(e){Or(this.group,e)},r.markUpdateMethod=function(e,t){mp(e).updateMethod=t},r.protoInitialize=(function(){var e=r.prototype;e.type="chart"})(),r})();function vc(r,e,t){r&&Xs(r)&&(e==="emphasis"?hn:dn)(r,t)}function hc(r,e,t){var a=Lr(r,e),n=e&&e.highlightKey!=null?L0(e.highlightKey):null;a!=null?T(De(a),function(i){vc(r.getItemGraphicEl(i),t,n)}):r.eachItemGraphicEl(function(i){vc(i,t,n)})}ql(Re);fo(Re);function $S(r){return ZS(r.model)}function KS(r){var e=r.model,t=r.ecModel,a=r.api,n=r.payload,i=e.pipelineContext.progressiveRender,o=r.view,s=n&&mp(n).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,t,a,n),qS[l]}var qS={incrementalPrepareRender:{progress:function(r,e){e.view.incrementalRender(r,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(r,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},Xi="\0__throttleOriginMethod",dc="\0__throttleRate",pc="\0__throttleType";function Au(r,e,t){var a,n=0,i=0,o=null,s,l,u,f;e=e||0;function c(){i=new Date().getTime(),o=null,r.apply(l,u||[])}var h=function(){for(var v=[],d=0;d<arguments.length;d++)v[d]=arguments[d];a=new Date().getTime(),l=this,u=v;var p=f||e,y=f||t;f=null,s=a-(y?n:i)-p,clearTimeout(o),y?o=setTimeout(c,p):s>=0?c():o=setTimeout(c,-s),n=a};return h.clear=function(){o&&(clearTimeout(o),o=null)},h.debounceNextCall=function(v){f=v},h}function _p(r,e,t,a){var n=r[e];if(n){var i=n[Xi]||n,o=n[pc],s=n[dc];if(s!==t||o!==a){if(t==null||!a)return r[e]=i;n=r[e]=Au(i,t,a==="debounce"),n[Xi]=i,n[pc]=a,n[dc]=t}return n}}function ll(r,e){var t=r[e];t&&t[Xi]&&(t.clear&&t.clear(),r[e]=t[Xi])}var gc=ne(),yc={itemStyle:vn(Id,!0),lineStyle:vn(Ld,!0)},jS={lineStyle:"stroke",itemStyle:"fill"};function Sp(r,e){var t=r.visualStyleMapper||yc[e];return t||(console.warn("Unknown style type '"+e+"'."),yc.itemStyle)}function xp(r,e){var t=r.visualDrawType||jS[e];return t||(console.warn("Unknown style type '"+e+"'."),"fill")}var QS={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=r.getModel(a),i=Sp(r,a),o=i(n),s=n.getShallow("decal");s&&(t.setVisual("decal",s),s.dirty=!0);var l=xp(r,a),u=o[l],f=Q(u)?u:null,c=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||c){var h=r.getColorFromPalette(r.name,null,e.getSeriesCount());o[l]||(o[l]=h,t.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||Q(o.fill)?h:o.fill,o.stroke=o.stroke==="auto"||Q(o.stroke)?h:o.stroke}if(t.setVisual("style",o),t.setVisual("drawType",l),!e.isSeriesFiltered(r)&&f)return t.setVisual("colorFromPalette",!1),{dataEach:function(v,d){var p=r.getDataParams(d),y=F({},o);y[l]=f(p),v.setItemVisual(d,"style",y)}}}},La=new he,JS={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){if(!(r.ignoreStyleOnData||e.isSeriesFiltered(r))){var t=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=Sp(r,a),i=t.getVisual("drawType");return{dataEach:t.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[a]){La.option=l[a];var u=n(La),f=o.ensureUniqueItemVisual(s,"style");F(f,u),La.option.decal&&(o.setItemVisual(s,"decal",La.option.decal),La.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},ex={performRawSeries:!0,overallReset:function(r){var e=ee();r.eachSeries(function(t){var a=t.getColorBy();if(!t.isColorBySeries()){var n=t.type+"-"+a,i=e.get(n);i||(i={},e.set(n,i)),gc(t).scope=i}}),r.eachSeries(function(t){if(!(t.isColorBySeries()||r.isSeriesFiltered(t))){var a=t.getRawData(),n={},i=t.getData(),o=gc(t).scope,s=t.visualStyleAccessPath||"itemStyle",l=xp(t,s);i.each(function(u){var f=i.getRawIndex(u);n[f]=u}),a.each(function(u){var f=n[u],c=i.getItemVisual(f,"colorFromPalette");if(c){var h=i.ensureUniqueItemVisual(f,"style"),v=a.getName(u)||u+"",d=a.count();h[l]=t.getColorFromPalette(v,o,d)}})}})}},Jn=Math.PI;function tx(r,e){e=e||{},ae(e,{text:"loading",textColor:B.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:B.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var t=new le,a=new ve({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});t.add(a);var n=new de({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),i=new ve({style:{fill:"none"},textContent:n,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});t.add(i);var o;return e.showSpinner&&(o=new Yl({shape:{startAngle:-Jn/2,endAngle:-Jn/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Jn*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Jn*3/2}).delay(300).start("circularInOut"),t.add(o)),t.resize=function(){var s=n.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(r.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),f=r.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:f}),i.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),a.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},t.resize(),t}var bp=(function(){function r(e,t,a,n){this._stageTaskMap=ee(),this.ecInstance=e,this.api=t,a=this._dataProcessorHandlers=a.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=a.concat(n)}return r.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(a){var n=a.overallTask;n&&n.dirty()})},r.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var a=this._pipelineMap.get(e.__pipeline.id),n=a.context,i=!t&&a.progressiveEnabled&&(!n||n.progressiveRender)&&e.__idxInPipeline>a.blockIndex,o=i?a.step:null,s=n&&n.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},r.prototype.updateStreamModes=function(e,t){var a=this._pipelineMap.get(e.uid),n=e.getData(),i=n.count(),o=a.progressiveEnabled&&t.incrementalPrepareRender&&i>=a.threshold,s=e.get("large")&&i>=e.get("largeThreshold"),l=e.get("progressiveChunkMode")==="mod"?i:null;e.pipelineContext=a.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(e){var t=this,a=t._pipelineMap=ee();e.eachSeries(function(n){var i=n.getProgressive(),o=n.uid;a.set(o,{id:o,head:null,tail:null,threshold:n.getProgressiveThreshold(),progressiveEnabled:i&&!(n.preventIncremental&&n.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),t._pipe(n,n.dataTask)})},r.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),a=this.api;T(this._allHandlers,function(n){var i=e.get(n.uid)||e.set(n.uid,{}),o="";ht(!(n.reset&&n.overallReset),o),n.reset&&this._createSeriesStageTask(n,i,t,a),n.overallReset&&this._createOverallStageTask(n,i,t,a)},this)},r.prototype.prepareView=function(e,t,a,n){var i=e.renderTask,o=i.context;o.model=t,o.ecModel=a,o.api=n,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},r.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},r.prototype.performVisualTasks=function(e,t,a){this._performStageTasks(this._visualHandlers,e,t,a)},r.prototype._performStageTasks=function(e,t,a,n){n=n||{};var i=!1,o=this;T(e,function(l,u){if(!(n.visualType&&n.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),c=f.seriesTaskMap,h=f.overallTask;if(h){var v,d=h.agentStubMap;d.each(function(y){s(n,y)&&(y.dirty(),v=!0)}),v&&h.dirty(),o.updatePayload(h,a);var p=o.getPerformArgs(h,n.block);d.each(function(y){y.perform(p)}),h.perform(p)&&(i=!0)}else c&&c.each(function(y,g){s(n,y)&&y.dirty();var m=o.getPerformArgs(y,n.block);m.skip=!l.performRawSeries&&t.isSeriesFiltered(y.context.model),o.updatePayload(y,a),y.perform(m)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},r.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(a){t=a.dataTask.perform()||t}),this.unfinished=t||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},r.prototype.updatePayload=function(e,t){t!=="remain"&&(e.context.payload=t)},r.prototype._createSeriesStageTask=function(e,t,a,n){var i=this,o=t.seriesTaskMap,s=t.seriesTaskMap=ee(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?a.eachRawSeries(f):l?a.eachRawSeriesByType(l,f):u&&u(a,n).each(f);function f(c){var h=c.uid,v=s.set(h,o&&o.get(h)||an({plan:ox,reset:sx,count:ux}));v.context={model:c,ecModel:a,api:n,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(c,v)}},r.prototype._createOverallStageTask=function(e,t,a,n){var i=this,o=t.overallTask=t.overallTask||an({reset:rx});o.context={ecModel:a,api:n,overallReset:e.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=ee(),u=e.seriesType,f=e.getTargetSeries,c=!0,h=!1,v="";ht(!e.createOnAllSeries,v),u?a.eachRawSeriesByType(u,d):f?f(a,n).each(d):(c=!1,T(a.getSeries(),d));function d(p){var y=p.uid,g=l.set(y,s&&s.get(y)||(h=!0,an({reset:ax,onDirty:ix})));g.context={model:p,overallProgress:c},g.agent=o,g.__block=c,i._pipe(p,g)}h&&o.dirty()},r.prototype._pipe=function(e,t){var a=e.uid,n=this._pipelineMap.get(a);!n.head&&(n.head=t),n.tail&&n.tail.pipe(t),n.tail=t,t.__idxInPipeline=n.count++,t.__pipeline=n},r.wrapStageHandler=function(e,t){return Q(e)&&(e={overallReset:e,seriesType:fx(e)}),e.uid=yo("stageHandler"),t&&(e.visualType=t),e},r})();function rx(r){r.overallReset(r.ecModel,r.api,r.payload)}function ax(r){return r.overallProgress&&nx}function nx(){this.agent.dirty(),this.getDownstream().dirty()}function ix(){this.agent&&this.agent.dirty()}function ox(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function sx(r){r.useClearVisual&&r.data.clearAllVisual();var e=r.resetDefines=De(r.reset(r.model,r.ecModel,r.api,r.payload));return e.length>1?X(e,function(t,a){return wp(a)}):lx}var lx=wp(0);function wp(r){return function(e,t){var a=t.data,n=t.resetDefines[r];if(n&&n.dataEach)for(var i=e.start;i<e.end;i++)n.dataEach(a,i);else n&&n.progress&&n.progress(e,a)}}function ux(r){return r.data.count()}function fx(r){Zi=null;try{r(wn,Tp)}catch{}return Zi}var wn={},Tp={},Zi;Cp(wn,bu);Cp(Tp,jd);wn.eachSeriesByType=wn.eachRawSeriesByType=function(r){Zi=r};wn.eachComponent=function(r){r.mainType==="series"&&r.subType&&(Zi=r.subType)};function Cp(r,e){for(var t in e.prototype)r[t]=nt}var W=B.darkColor,cx=W.background,Ia=function(){return{axisLine:{lineStyle:{color:W.axisLine}},splitLine:{lineStyle:{color:W.axisSplitLine}},splitArea:{areaStyle:{color:[W.backgroundTint,W.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:W.axisMinorSplitLine}},axisLabel:{color:W.axisLabel},axisName:{}}},mc={label:{color:W.secondary},itemStyle:{borderColor:W.borderTint},dividerLineStyle:{color:W.border}},Mp={darkMode:!0,color:W.theme,backgroundColor:cx,axisPointer:{lineStyle:{color:W.border},crossStyle:{color:W.borderShade},label:{color:W.tertiary}},legend:{textStyle:{color:W.secondary},pageTextStyle:{color:W.tertiary}},textStyle:{color:W.secondary},title:{textStyle:{color:W.primary},subtextStyle:{color:W.quaternary}},toolbox:{iconStyle:{borderColor:W.accent50}},tooltip:{backgroundColor:W.neutral20,defaultBorderColor:W.border,textStyle:{color:W.tertiary}},dataZoom:{borderColor:W.accent10,textStyle:{color:W.tertiary},brushStyle:{color:W.backgroundTint},handleStyle:{color:W.neutral00,borderColor:W.accent20},moveHandleStyle:{color:W.accent40},emphasis:{handleStyle:{borderColor:W.accent50}},dataBackground:{lineStyle:{color:W.accent30},areaStyle:{color:W.accent20}},selectedDataBackground:{lineStyle:{color:W.accent50},areaStyle:{color:W.accent30}}},visualMap:{textStyle:{color:W.secondary},handleStyle:{borderColor:W.neutral30}},timeline:{lineStyle:{color:W.accent10},label:{color:W.tertiary},controlStyle:{color:W.accent30,borderColor:W.accent30}},calendar:{itemStyle:{color:W.neutral00,borderColor:W.neutral20},dayLabel:{color:W.tertiary},monthLabel:{color:W.secondary},yearLabel:{color:W.secondary}},matrix:{x:mc,y:mc,backgroundColor:{borderColor:W.axisLine},body:{itemStyle:{borderColor:W.borderTint}}},timeAxis:Ia(),logAxis:Ia(),valueAxis:Ia(),categoryAxis:Ia(),line:{symbol:"circle"},graph:{color:W.theme},gauge:{title:{color:W.secondary},axisLine:{lineStyle:{color:[[1,W.neutral05]]}},axisLabel:{color:W.axisLabel},detail:{color:W.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:W.background}},radar:(function(){var r=Ia();return r.axisName={color:W.axisLabel},r.axisLine.lineStyle.color=W.neutral20,r})(),treemap:{breadcrumb:{itemStyle:{color:W.neutral20,textStyle:{color:W.secondary}},emphasis:{itemStyle:{color:W.neutral30}}}},sunburst:{itemStyle:{borderColor:W.background}},map:{itemStyle:{borderColor:W.border,areaColor:W.neutral10},label:{color:W.tertiary},emphasis:{label:{color:W.primary},itemStyle:{areaColor:W.highlight}},select:{label:{color:W.primary},itemStyle:{areaColor:W.highlight}}},geo:{itemStyle:{borderColor:W.border,areaColor:W.neutral10},emphasis:{label:{color:W.primary},itemStyle:{areaColor:W.highlight}},select:{label:{color:W.primary},itemStyle:{color:W.highlight}}}};Mp.categoryAxis.splitLine.show=!1;var vx=(function(){function r(){}return r.prototype.normalizeQuery=function(e){var t={},a={},n={};if(Z(e)){var i=wt(e);t.mainType=i.main||null,t.subType=i.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};T(e,function(l,u){for(var f=!1,c=0;c<o.length;c++){var h=o[c],v=u.lastIndexOf(h);if(v>0&&v===u.length-h.length){var d=u.slice(0,v);d!=="data"&&(t.mainType=d,t[h.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(a[u]=l,f=!0),f||(n[u]=l)})}return{cptQuery:t,dataQuery:a,otherQuery:n}},r.prototype.filter=function(e,t){var a=this.eventInfo;if(!a)return!0;var n=a.targetEl,i=a.packedEvent,o=a.model,s=a.view;if(!o||!s)return!0;var l=t.cptQuery,u=t.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,i,"name")&&f(u,i,"dataIndex")&&f(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,n,i));function f(c,h,v,d){return c[v]==null||h[d||v]===c[v]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r})(),ul=["symbol","symbolSize","symbolRotate","symbolOffset"],_c=ul.concat(["symbolKeepAspect"]),hx={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData();if(r.legendIcon&&t.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var a={},n={},i=!1,o=0;o<ul.length;o++){var s=ul[o],l=r.get(s);Q(l)?(i=!0,n[s]=l):a[s]=l}if(a.symbol=a.symbol||r.defaultSymbol,t.setVisual(F({legendIcon:r.legendIcon||a.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},a)),e.isSeriesFiltered(r))return;var u=Le(n);function f(c,h){for(var v=r.getRawValue(h),d=r.getDataParams(h),p=0;p<u.length;p++){var y=u[p];c.setItemVisual(h,y,n[y](v,d))}}return{dataEach:i?f:null}}},dx={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){if(!r.hasSymbolVisual||e.isSeriesFiltered(r))return;var t=r.getData();function a(n,i){for(var o=n.getItemModel(i),s=0;s<_c.length;s++){var l=_c[s],u=o.getShallow(l,!0);u!=null&&n.setItemVisual(i,l,u)}}return{dataEach:t.hasItemOption?a:null}}};function Dp(r,e,t){switch(t){case"color":var a=r.getItemVisual(e,"style");return a[r.getVisual("drawType")];case"opacity":return r.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getItemVisual(e,t)}}function Ap(r,e){switch(e){case"color":var t=r.getVisual("style");return t[r.getVisual("drawType")];case"opacity":return r.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getVisual(e)}}function px(r,e,t,a){switch(t){case"color":var n=r.ensureUniqueItemVisual(e,"style");n[r.getVisual("drawType")]=a,r.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":r.ensureUniqueItemVisual(e,"style").opacity=a;break;case"symbol":case"symbolSize":case"liftZ":r.setItemVisual(e,t,a);break}}function gx(r,e){function t(a,n){var i=[];return a.eachComponent({mainType:"series",subType:r,query:n},function(o){i.push(o.seriesIndex)}),i}T([[r+"ToggleSelect","toggleSelect"],[r+"Select","select"],[r+"UnSelect","unselect"]],function(a){e(a[0],function(n,i,o){n=F({},n),o.dispatchAction(F(n,{type:a[1],seriesIndex:t(i,n)}))})})}function Xr(r,e,t,a,n){var i=r+e;t.isSilent(i)||a.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=n.selected,f=0;f<u.length;f++)if(u[f].seriesIndex===s){var c=o.getData(),h=Lr(c,n.fromActionPayload);t.trigger(i,{type:i,seriesId:o.id,name:N(h)?c.getName(h[0]):c.getName(h),selected:Z(l)?l:F({},l)})}})}function yx(r,e,t){r.on("selectchanged",function(a){var n=t.getModel();a.isFromClick?(Xr("map","selectchanged",e,n,a),Xr("pie","selectchanged",e,n,a)):a.fromAction==="select"?(Xr("map","selected",e,n,a),Xr("pie","selected",e,n,a)):a.fromAction==="unselect"&&(Xr("map","unselected",e,n,a),Xr("pie","unselected",e,n,a))})}function oa(r,e,t){for(var a;r&&!(e(r)&&(a=r,t));)r=r.__hostTarget||r.parent;return a}var mx=Be.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,e){var t=e.cx,a=e.cy,n=e.width/2,i=e.height/2;r.moveTo(t,a-i),r.lineTo(t+n,a+i),r.lineTo(t-n,a+i),r.closePath()}}),_x=Be.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,e){var t=e.cx,a=e.cy,n=e.width/2,i=e.height/2;r.moveTo(t,a-i),r.lineTo(t+n,a),r.lineTo(t,a+i),r.lineTo(t-n,a),r.closePath()}}),Sx=Be.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,e){var t=e.x,a=e.y,n=e.width/5*3,i=Math.max(n,e.height),o=n/2,s=o*o/(i-o),l=a-i+o+s,u=Math.asin(s/o),f=Math.cos(u)*o,c=Math.sin(u),h=Math.cos(u),v=o*.6,d=o*.7;r.moveTo(t-f,l+s),r.arc(t,l,o,Math.PI-u,Math.PI*2+u),r.bezierCurveTo(t+f-c*v,l+s+h*v,t,a-d,t,a),r.bezierCurveTo(t,a-d,t-f+c*v,l+s+h*v,t-f,l+s),r.closePath()}}),xx=Be.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,e){var t=e.height,a=e.width,n=e.x,i=e.y,o=a/3*2;r.moveTo(n,i),r.lineTo(n+o,i+t),r.lineTo(n,i+t/4*3),r.lineTo(n-o,i+t),r.lineTo(n,i),r.closePath()}}),bx={line:nr,rect:ve,roundRect:ve,square:ve,circle:uo,diamond:_x,pin:Sx,arrow:xx,triangle:mx},wx={line:function(r,e,t,a,n){n.x1=r,n.y1=e+a/2,n.x2=r+t,n.y2=e+a/2},rect:function(r,e,t,a,n){n.x=r,n.y=e,n.width=t,n.height=a},roundRect:function(r,e,t,a,n){n.x=r,n.y=e,n.width=t,n.height=a,n.r=Math.min(t,a)/4},square:function(r,e,t,a,n){var i=Math.min(t,a);n.x=r,n.y=e,n.width=i,n.height=i},circle:function(r,e,t,a,n){n.cx=r+t/2,n.cy=e+a/2,n.r=Math.min(t,a)/2},diamond:function(r,e,t,a,n){n.cx=r+t/2,n.cy=e+a/2,n.width=t,n.height=a},pin:function(r,e,t,a,n){n.x=r+t/2,n.y=e+a/2,n.width=t,n.height=a},arrow:function(r,e,t,a,n){n.x=r+t/2,n.y=e+a/2,n.width=t,n.height=a},triangle:function(r,e,t,a,n){n.cx=r+t/2,n.cy=e+a/2,n.width=t,n.height=a}},fl={};T(bx,function(r,e){fl[e]=new r});var Tx=Be.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,e,t){var a=Vs(r,e,t),n=this.shape;return n&&n.symbolType==="pin"&&e.position==="inside"&&(a.y=t.y+t.height*.4),a},buildPath:function(r,e,t){var a=e.symbolType;if(a!=="none"){var n=fl[a];n||(a="rect",n=fl[a]),wx[a](e.x,e.y,e.width,e.height,n.shape),n.buildPath(r,n.shape,t)}}});function Cx(r,e){if(this.type!=="image"){var t=this.style;this.__isEmptyBrush?(t.stroke=r,t.fill=e||B.color.neutral00,t.lineWidth=2):this.shape.symbolType==="line"?t.stroke=r:t.fill=r,this.markRedraw()}}function dt(r,e,t,a,n,i,o){var s=r.indexOf("empty")===0;s&&(r=r.substr(5,1).toLowerCase()+r.substr(6));var l;return r.indexOf("image://")===0?l=md(r.slice(8),new Me(e,t,a,n),o?"center":"cover"):r.indexOf("path://")===0?l=gn(r.slice(7),{},new Me(e,t,a,n),o?"center":"cover"):l=new Tx({shape:{symbolType:r,x:e,y:t,width:a,height:n}}),l.__isEmptyBrush=s,l.setColor=Cx,i&&l.setColor(i),l}function bo(r){return N(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function wo(r,e){if(r!=null)return N(r)||(r=[r,r]),[re(r[0],e[0])||0,re(j(r[1],r[0]),e[1])||0]}var Yo=new nm,Sc=new im(100),xc=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function $i(r,e){if(r==="none")return null;var t=e.getDevicePixelRatio(),a=e.getZr(),n=a.painter.type==="svg";r.dirty&&Yo.delete(r);var i=Yo.get(r);if(i)return i;var o=ae(r,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=n?1:1/t,Yo.set(r,s),r.dirty=!1,s;function l(u){for(var f=[t],c=!0,h=0;h<xc.length;++h){var v=o[xc[h]];if(v!=null&&!N(v)&&!Z(v)&&!oe(v)&&typeof v!="boolean"){c=!1;break}f.push(v)}var d;if(c){d=f.join(",")+(n?"-svg":"");var p=Sc.get(d);p&&(n?u.svgElement=p:u.image=p)}var y=Ip(o.dashArrayX),g=Mx(o.dashArrayY),m=Lp(o.symbol),_=Dx(y),S=kp(g),b=!n&&Ei.createCanvas(),x=n&&{tag:"g",attrs:{},key:"dcl",children:[]},w=M(),D;b&&(b.width=w.width*t,b.height=w.height*t,D=b.getContext("2d")),A(),c&&Sc.put(d,b||x),u.image=b,u.svgElement=x,u.svgWidth=w.width,u.svgHeight=w.height;function M(){for(var C=1,I=0,L=_.length;I<L;++I)C=gf(C,_[I]);for(var E=1,I=0,L=m.length;I<L;++I)E=gf(E,m[I].length);C*=E;var k=S*_.length*m.length;return{width:Math.max(1,Math.min(C,o.maxTileWidth)),height:Math.max(1,Math.min(k,o.maxTileHeight))}}function A(){D&&(D.clearRect(0,0,b.width,b.height),o.backgroundColor&&(D.fillStyle=o.backgroundColor,D.fillRect(0,0,b.width,b.height)));for(var C=0,I=0;I<g.length;++I)C+=g[I];if(C<=0)return;for(var L=-S,E=0,k=0,P=0;L<w.height;){if(E%2===0){for(var V=k/2%m.length,R=0,O=0,z=0;R<w.width*2;){for(var H=0,I=0;I<y[P].length;++I)H+=y[P][I];if(H<=0)break;if(O%2===0){var Y=(1-o.symbolSize)*.5,J=R+y[P][O]*Y,pe=L+g[E]*Y,we=y[P][O]*o.symbolSize,Ht=g[E]*o.symbolSize,Gr=z/2%m[V].length;Wt(J,pe,we,Ht,m[V][Gr])}R+=y[P][O],++z,++O,O===y[P].length&&(O=0)}++P,P===y.length&&(P=0)}L+=g[E],++k,++E,E===g.length&&(E=0)}function Wt(Ta,Ca,Un,Yn,Xn){var cr=n?1:t,Ut=dt(Xn,Ta*cr,Ca*cr,Un*cr,Yn*cr,o.color,o.symbolKeepAspect);if(n){var Dt=a.painter.renderOneToVNode(Ut);Dt&&x.children.push(Dt)}else om(D,Ut)}}}}function Lp(r){if(!r||r.length===0)return[["rect"]];if(Z(r))return[[r]];for(var e=!0,t=0;t<r.length;++t)if(!Z(r[t])){e=!1;break}if(e)return Lp([r]);for(var a=[],t=0;t<r.length;++t)Z(r[t])?a.push([r[t]]):a.push(r[t]);return a}function Ip(r){if(!r||r.length===0)return[[0,0]];if(oe(r)){var e=Math.ceil(r);return[[e,e]]}for(var t=!0,a=0;a<r.length;++a)if(!oe(r[a])){t=!1;break}if(t)return Ip([r]);for(var n=[],a=0;a<r.length;++a)if(oe(r[a])){var e=Math.ceil(r[a]);n.push([e,e])}else{var e=X(r[a],function(s){return Math.ceil(s)});e.length%2===1?n.push(e.concat(e)):n.push(e)}return n}function Mx(r){if(!r||typeof r=="object"&&r.length===0)return[0,0];if(oe(r)){var e=Math.ceil(r);return[e,e]}var t=X(r,function(a){return Math.ceil(a)});return r.length%2?t.concat(t):t}function Dx(r){return X(r,function(e){return kp(e)})}function kp(r){for(var e=0,t=0;t<r.length;++t)e+=r[t];return r.length%2===1?e*2:e}function Ax(r,e){r.eachRawSeries(function(t){if(!r.isSeriesFiltered(t)){var a=t.getData();a.hasItemVisual()&&a.each(function(o){var s=a.getItemVisual(o,"decal");if(s){var l=a.ensureUniqueItemVisual(o,"style");l.decal=$i(s,e)}});var n=a.getVisual("decal");if(n){var i=a.getVisual("style");i.decal=$i(n,e)}}})}var ut=new Vn,Pp={};function Lx(r,e){Pp[r]=e}function Ix(r){return Pp[r]}var Rp={};function kx(r,e){Rp[r]=e}function Px(r){return Rp[r]}var Rx=1,Ex=800,Ox=900,Nx=1e3,Bx=2e3,Vx=5e3,Ep=1e3,zx=1100,Lu=2e3,Op=3e3,Gx=4e3,To=4500,Fx=4600,Hx=5e3,Wx=6e3,Np=7e3,Ux={PROCESSOR:{FILTER:Nx,SERIES_FILTER:Ex,STATISTIC:Vx},VISUAL:{LAYOUT:Ep,PROGRESSIVE_LAYOUT:zx,GLOBAL:Lu,CHART:Op,POST_CHART_LAYOUT:Fx,COMPONENT:Gx,BRUSH:Hx,CHART_ITEM:To,ARIA:Wx,DECAL:Np}},Te="__flagInMainProcess",ei="__mainProcessVersion",Ie="__pendingUpdate",Xo="__needsUpdateStatus",bc=/^[a-zA-Z0-9_]+$/,Zo="__connectUpdateStatus",wc=0,Yx=1,Xx=2;function Bp(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(this.isDisposed()){this.id;return}return zp(this,r,e)}}function Vp(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return zp(this,r,e)}}function zp(r,e,t){return t[0]=t[0]&&t[0].toLowerCase(),Vn.prototype[e].apply(r,t)}var Gp=(function(r){U(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e})(Vn),Fp=Gp.prototype;Fp.on=Vp("on");Fp.off=Vp("off");var mr,$o,ti,Lt,ri,Ko,qo,Zr,$r,Tc,Cc,jo,Mc,ai,Dc,Hp,Qe,Ac,Kr,Wp=(function(r){U(e,r);function e(t,a,n){var i=r.call(this,new vx)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],n=n||{},i._dom=t;var o="canvas",s="auto",l=!1;i[ei]=1,n.ssr;var u=i._zr=of(t,{renderer:n.renderer||o,devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:j(n.useDirtyRect,l),useCoarsePointer:j(n.useCoarsePointer,s),pointerSize:n.pointerSize});i._ssr=n.ssr,i._throttledZrFlush=Au($(u.flush,u),17),i._updateTheme(a),i._locale=n_(n.locale||kd),i._coordSysMgr=new Hn;var f=i._api=Dc(i);function c(h,v){return h.__prio-v.__prio}return Io(qi,c),Io(hl,c),i._scheduler=new bp(i,f,hl,qi),i._messageCenter=new Gp,i._initEvents(),i.resize=$(i.resize,i),u.animation.on("frame",i._onframe,i),Tc(u,i),Cc(u,i),Ri(i),i}return e.prototype._onframe=function(){if(!this._disposed){Ac(this);var t=this._scheduler;if(this[Ie]){var a=this[Ie].silent;this[Te]=!0,Kr(this);try{mr(this),Lt.update.call(this,null,this[Ie].updateParams)}catch(l){throw this[Te]=!1,this[Ie]=null,l}this._zr.flush(),this[Te]=!1,this[Ie]=null,Zr.call(this,a),$r.call(this,a)}else if(t.unfinished){var n=Rx,i=this._model,o=this._api;t.unfinished=!1;do{var s=+new Date;t.performSeriesTasks(i),t.performDataProcessorTasks(i),Ko(this,i),t.performVisualTasks(i),ai(this,this._model,o,"remain",{}),n-=+new Date-s}while(n>0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,a,n){if(!this[Te]){if(this._disposed){this.id;return}var i,o,s;if(K(a)&&(n=a.lazyUpdate,i=a.silent,o=a.replaceMerge,s=a.transition,a=a.notMerge),this[Te]=!0,Kr(this),!this._model||a){var l=new K_(this._api),u=this._theme,f=this._model=new bu;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(t,{replaceMerge:o},dl);var c={seriesTransition:s,optionChanged:!0};if(n)this[Ie]={silent:i,updateParams:c},this[Te]=!1,this.getZr().wakeUp();else{try{mr(this),Lt.update.call(this,null,c)}catch(h){throw this[Ie]=null,this[Te]=!1,h}this._ssr||this._zr.flush(),this[Ie]=null,this[Te]=!1,Zr.call(this,i),$r.call(this,i)}}},e.prototype.setTheme=function(t,a){if(!this[Te]){if(this._disposed){this.id;return}var n=this._model;if(n){var i=a&&a.silent,o=null;this[Ie]&&(i==null&&(i=this[Ie].silent),o=this[Ie].updateParams,this[Ie]=null),this[Te]=!0,Kr(this);try{this._updateTheme(t),n.setTheme(this._theme),mr(this),Lt.update.call(this,{type:"setTheme"},o)}catch(s){throw this[Te]=!1,s}this[Te]=!1,Zr.call(this,i),$r.call(this,i)}}},e.prototype._updateTheme=function(t){Z(t)&&(t=Up[t]),t&&(t=q(t),t&&Jd(t,!0),this._theme=t)},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||be.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var a=this._zr.painter;return a.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var a=this._zr.painter;return a.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){var t=this._zr,a=t.storage.getDisplayList();return T(a,function(n){n.stopAnimation(null,!0)}),t.painter.toDataURL()},e.prototype.getDataURL=function(t){if(this._disposed){this.id;return}t=t||{};var a=t.excludeComponents,n=this._model,i=[],o=this;T(a,function(l){n.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(i.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return T(i,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(t){if(this._disposed){this.id;return}var a=t.type==="svg",n=this.group,i=Math.min,o=Math.max,s=1/0;if(Lc[n]){var l=s,u=s,f=-s,c=-s,h=[],v=t&&t.pixelRatio||this.getDevicePixelRatio();T(nn,function(_,S){if(_.group===n){var b=a?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(q(t)),x=_.getDom().getBoundingClientRect();l=i(x.left,l),u=i(x.top,u),f=o(x.right,f),c=o(x.bottom,c),h.push({dom:b,left:x.left,top:x.top})}}),l*=v,u*=v,f*=v,c*=v;var d=f-l,p=c-u,y=Ei.createCanvas(),g=of(y,{renderer:a?"svg":"canvas"});if(g.resize({width:d,height:p}),a){var m="";return T(h,function(_){var S=_.left-l,b=_.top-u;m+='<g transform="translate('+S+","+b+')">'+_.dom+"</g>"}),g.painter.getSvgRoot().innerHTML=m,t.connectedBackgroundColor&&g.painter.setBackgroundColor(t.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}else return t.connectedBackgroundColor&&g.add(new ve({shape:{x:0,y:0,width:d,height:p},style:{fill:t.connectedBackgroundColor}})),T(h,function(_){var S=new Gt({style:{x:_.left*v-l,y:_.top*v-u,image:_.dom}});g.add(S)}),g.refreshImmediately(),y.toDataURL("image/"+(t&&t.type||"png"))}else return this.getDataURL(t)},e.prototype.convertToPixel=function(t,a,n){return ri(this,"convertToPixel",t,a,n)},e.prototype.convertToLayout=function(t,a,n){return ri(this,"convertToLayout",t,a,n)},e.prototype.convertFromPixel=function(t,a,n){return ri(this,"convertFromPixel",t,a,n)},e.prototype.containPixel=function(t,a){if(this._disposed){this.id;return}var n=this._model,i,o=Ro(n,t);return T(o,function(s,l){l.indexOf("Models")>=0&&T(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)i=i||!!f.containPoint(a);else if(l==="seriesModels"){var c=this._chartsMap[u.__viewId];c&&c.containPoint&&(i=i||c.containPoint(a,u))}},this)},this),!!i},e.prototype.getVisual=function(t,a){var n=this._model,i=Ro(n,t,{defaultMainType:"series"}),o=i.seriesModel,s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?Dp(s,l,a):Ap(s,a)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;T(Zx,function(n){var i=function(o){var s=t.getModel(),l=o.target,u,f=n==="globalout";if(f?u={}:l&&oa(l,function(p){var y=te(p);if(y&&y.dataIndex!=null){var g=y.dataModel||s.getSeriesByIndex(y.seriesIndex);return u=g&&g.getDataParams(y.dataIndex,y.dataType,l)||{},!0}else if(y.eventData)return u=F({},y.eventData),!0},!0),u){var c=u.componentType,h=u.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",h=u.seriesIndex);var v=c&&h!=null&&s.getComponent(c,h),d=v&&t[v.mainType==="series"?"_chartsMap":"_componentsMap"][v.__viewId];u.event=o,u.type=n,t._$eventProcessor.eventInfo={targetEl:l,packedEvent:u,model:v,view:d},t.trigger(n,u)}};i.zrEventfulCallAtLast=!0,t._zr.on(n,i,t)});var a=this._messageCenter;T(vl,function(n,i){a.on(i,function(o){t.trigger(i,o)})}),yx(a,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var t=this.getDom();t&&nd(this.getDom(),ku,"");var a=this,n=a._api,i=a._model;T(a._componentsViews,function(o){o.dispose(i,n)}),T(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 nn[a.id]},e.prototype.resize=function(t){if(!this[Te]){if(this._disposed){this.id;return}this._zr.resize(t);var a=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!a){var n=a.resetOption("media"),i=t&&t.silent;this[Ie]&&(i==null&&(i=this[Ie].silent),n=!0,this[Ie]=null),this[Te]=!0,Kr(this);try{n&&mr(this),Lt.update.call(this,{type:"resize",animation:F({duration:0},t&&t.animation)})}catch(o){throw this[Te]=!1,o}this[Te]=!1,Zr.call(this,i),$r.call(this,i)}}},e.prototype.showLoading=function(t,a){if(this._disposed){this.id;return}if(K(t)&&(a=t,t=""),t=t||"default",this.hideLoading(),!!pl[t]){var n=pl[t](this._api,a),i=this._zr;this._loadingFX=n,i.add(n)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(t){var a=F({},t);return a.type=cl[t.type],a},e.prototype.dispatchAction=function(t,a){if(this._disposed){this.id;return}if(K(a)||(a={silent:!!a}),!!Ki[t.type]&&this._model){if(this[Te]){this._pendingActions.push(t);return}var n=a.silent;qo.call(this,t,n);var i=a.flush;i?this._zr.flush():i!==!1&&be.browser.weChat&&this._throttledZrFlush(),Zr.call(this,n),$r.call(this,n)}},e.prototype.updateLabelLayout=function(){ut.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed){this.id;return}var a=t.seriesIndex,n=this.getModel(),i=n.getSeriesByIndex(a);i.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=(function(){mr=function(c){var h=c._scheduler;h.restorePipelines(c._model),h.prepareStageTasks(),$o(c,!0),$o(c,!1),h.plan()},$o=function(c,h){for(var v=c._model,d=c._scheduler,p=h?c._componentsViews:c._chartsViews,y=h?c._componentsMap:c._chartsMap,g=c._zr,m=c._api,_=0;_<p.length;_++)p[_].__alive=!1;h?v.eachComponent(function(x,w){x!=="series"&&S(w)}):v.eachSeries(S);function S(x){var w=x.__requireNewView;x.__requireNewView=!1;var D="_ec_"+x.id+"_"+x.type,M=!w&&y[D];if(!M){var A=wt(x.type),C=h?Ue.getClass(A.main,A.sub):Re.getClass(A.sub);M=new C,M.init(v,m),y[D]=M,p.push(M),g.add(M.group)}x.__viewId=M.__id=D,M.__alive=!0,M.__model=x,M.group.__ecComponentInfo={mainType:x.mainType,index:x.componentIndex},!h&&d.prepareView(M,x,v,m)}for(var _=0;_<p.length;){var b=p[_];b.__alive?_++:(!h&&b.renderTask.dispose(),g.remove(b.group),b.dispose(v,m),p.splice(_,1),y[b.__id]===b&&delete y[b.__id],b.__id=b.group.__ecComponentInfo=null)}},ti=function(c,h,v,d,p){var y=c._model;if(y.setUpdatePayload(v),!d){T([].concat(c._componentsViews).concat(c._chartsViews),b);return}var g={};g[d+"Id"]=v[d+"Id"],g[d+"Index"]=v[d+"Index"],g[d+"Name"]=v[d+"Name"];var m={mainType:d,query:g};p&&(m.subType=p);var _=v.excludeSeriesId,S;_!=null&&(S=ee(),T(De(_),function(x){var w=rt(x,null);w!=null&&S.set(w,!0)})),y&&y.eachComponent(m,function(x){var w=S&&S.get(x.id)!=null;if(!w)if(Df(v))if(x instanceof Ne)v.type===Cr&&!v.notBlur&&!x.get(["emphasis","disabled"])&&x0(x,v,c._api);else{var D=tu(x.mainType,x.componentIndex,v.name,c._api),M=D.focusSelf,A=D.dispatchers;v.type===Cr&&M&&!v.notBlur&&Us(x.mainType,x.componentIndex,c._api),A&&T(A,function(C){v.type===Cr?hn(C):dn(C)})}else Zs(v)&&x instanceof Ne&&(T0(x,v,c._api),Cf(x),Qe(c))},c),y&&y.eachComponent(m,function(x){var w=S&&S.get(x.id)!=null;w||b(c[d==="series"?"_chartsMap":"_componentsMap"][x.__viewId])},c);function b(x){x&&x.__alive&&x[h]&&x[h](x.__model,y,c._api,v)}},Lt={prepareAndUpdate:function(c){mr(this),Lt.update.call(this,c,c&&{optionChanged:c.newOption!=null})},update:function(c,h){var v=this._model,d=this._api,p=this._zr,y=this._coordSysMgr,g=this._scheduler;if(v){v.setUpdatePayload(c),g.restoreData(v,c),g.performSeriesTasks(v),y.create(v,d),g.performDataProcessorTasks(v,c),Ko(this,v),y.update(v,d),a(v),g.performVisualTasks(v,c);var m=v.get("backgroundColor")||"transparent";p.setBackgroundColor(m);var _=v.get("darkMode");_!=null&&_!=="auto"&&p.setDarkMode(_),jo(this,v,d,c,h),ut.trigger("afterupdate",v,d)}},updateTransform:function(c){var h=this,v=this._model,d=this._api;if(v){v.setUpdatePayload(c);var p=[];v.eachComponent(function(g,m){if(g!=="series"){var _=h.getViewOfComponentModel(m);if(_&&_.__alive)if(_.updateTransform){var S=_.updateTransform(m,v,d,c);S&&S.update&&p.push(_)}else p.push(_)}});var y=ee();v.eachSeries(function(g){var m=h._chartsMap[g.__viewId];if(m.updateTransform){var _=m.updateTransform(g,v,d,c);_&&_.update&&y.set(g.uid,1)}else y.set(g.uid,1)}),a(v),this._scheduler.performVisualTasks(v,c,{setDirty:!0,dirtyMap:y}),ai(this,v,d,c,{},y),ut.trigger("afterupdate",v,d)}},updateView:function(c){var h=this._model;h&&(h.setUpdatePayload(c),Re.markUpdateMethod(c,"updateView"),a(h),this._scheduler.performVisualTasks(h,c,{setDirty:!0}),jo(this,h,this._api,c,{}),ut.trigger("afterupdate",h,this._api))},updateVisual:function(c){var h=this,v=this._model;v&&(v.setUpdatePayload(c),v.eachSeries(function(d){d.getData().clearAllVisual()}),Re.markUpdateMethod(c,"updateVisual"),a(v),this._scheduler.performVisualTasks(v,c,{visualType:"visual",setDirty:!0}),v.eachComponent(function(d,p){if(d!=="series"){var y=h.getViewOfComponentModel(p);y&&y.__alive&&y.updateVisual(p,v,h._api,c)}}),v.eachSeries(function(d){var p=h._chartsMap[d.__viewId];p.updateVisual(d,v,h._api,c)}),ut.trigger("afterupdate",v,this._api))},updateLayout:function(c){Lt.update.call(this,c)}};function t(c,h,v,d,p){if(c._disposed){c.id;return}for(var y=c._model,g=c._coordSysMgr.getCoordinateSystems(),m,_=Ro(y,v),S=0;S<g.length;S++){var b=g[S];if(b[h]&&(m=b[h](y,_,d,p))!=null)return m}}ri=t,Ko=function(c,h){var v=c._chartsMap,d=c._scheduler;h.eachSeries(function(p){d.updateStreamModes(p,v[p.__viewId])})},qo=function(c,h){var v=this,d=this.getModel(),p=c.type,y=c.escapeConnect,g=Ki[p],m=(g.update||"update").split(":"),_=m.pop(),S=m[0]!=null&&wt(m[0]);this[Te]=!0,Kr(this);var b=[c],x=!1;c.batch&&(x=!0,b=X(c.batch,function(P){return P=ae(F({},P),c),P.batch=null,P}));var w=[],D,M=[],A=g.nonRefinedEventType,C=Zs(c),I=Df(c);if(I&&yd(this._api),T(b,function(P){var V=g.action(P,d,v._api);if(g.refineEvent?M.push(V):D=V,D=D||F({},P),D.type=A,w.push(D),I){var R=Kl(c),O=R.queryOptionMap,z=R.mainTypeSpecified,H=z?O.keys()[0]:"series";ti(v,_,P,H),Qe(v)}else C?(ti(v,_,P,"series"),Qe(v)):S&&ti(v,_,P,S.main,S.sub)}),_!=="none"&&!I&&!C&&!S)try{this[Ie]?(mr(this),Lt.update.call(this,c),this[Ie]=null):Lt[_].call(this,c)}catch(P){throw this[Te]=!1,P}if(x?D={type:A,escapeConnect:y,batch:w}:D=w[0],this[Te]=!1,!h){var L=void 0;if(g.refineEvent){var E=g.refineEvent(M,c,d,this._api).eventContent;ht(K(E)),L=ae({type:g.refinedEventType},E),L.fromAction=c.type,L.fromActionPayload=c,L.escapeConnect=!0}var k=this._messageCenter;k.trigger(D.type,D),L&&k.trigger(L.type,L)}},Zr=function(c){for(var h=this._pendingActions;h.length;){var v=h.shift();qo.call(this,v,c)}},$r=function(c){!c&&this.trigger("updated")},Tc=function(c,h){c.on("rendered",function(v){h.trigger("rendered",v),c.animation.isFinished()&&!h[Ie]&&!h._scheduler.unfinished&&!h._pendingActions.length&&h.trigger("finished")})},Cc=function(c,h){c.on("mouseover",function(v){var d=v.target,p=oa(d,Xs);p&&(b0(p,v,h._api),Qe(h))}).on("mouseout",function(v){var d=v.target,p=oa(d,Xs);p&&(w0(p,v,h._api),Qe(h))}).on("click",function(v){var d=v.target,p=oa(d,function(m){return te(m).dataIndex!=null},!0);if(p){var y=p.selected?"unselect":"select",g=te(p);h._api.dispatchAction({type:y,dataType:g.dataType,dataIndexInside:g.dataIndex,seriesIndex:g.seriesIndex,isFromClick:!0})}})};function a(c){c.clearColorPalette(),c.eachSeries(function(h){h.clearColorPalette()})}function n(c){var h=[],v=[],d=!1;if(c.eachComponent(function(m,_){var S=_.get("zlevel")||0,b=_.get("z")||0,x=_.getZLevelKey();d=d||!!x,(m==="series"?v:h).push({zlevel:S,z:b,idx:_.componentIndex,type:m,key:x})}),d){var p=h.concat(v),y,g;Io(p,function(m,_){return m.zlevel===_.zlevel?m.z-_.z:m.zlevel-_.zlevel}),T(p,function(m){var _=c.getComponent(m.type,m.idx),S=m.zlevel,b=m.key;y!=null&&(S=Math.max(y,S)),b?(S===y&&b!==g&&S++,g=b):g&&(S===y&&S++,g=""),y=S,_.setZLevel(S)})}}jo=function(c,h,v,d,p){n(h),Mc(c,h,v,d,p),T(c._chartsViews,function(y){y.__alive=!1}),ai(c,h,v,d,p),T(c._chartsViews,function(y){y.__alive||y.remove(h,v)})},Mc=function(c,h,v,d,p,y){T(y||c._componentsViews,function(g){var m=g.__model;u(m,g),g.render(m,h,v,d),l(m,g),f(m,g)})},ai=function(c,h,v,d,p,y){var g=c._scheduler;p=F(p||{},{updatedSeries:h.getSeries()}),ut.trigger("series:beforeupdate",h,v,p);var m=!1;h.eachSeries(function(_){var S=c._chartsMap[_.__viewId];S.__alive=!0;var b=S.renderTask;g.updatePayload(b,d),u(_,S),y&&y.get(_.uid)&&b.dirty(),b.perform(g.getPerformArgs(b))&&(m=!0),S.group.silent=!!_.get("silent"),s(_,S),Cf(_)}),g.unfinished=m||g.unfinished,ut.trigger("series:layoutlabels",h,v,p),ut.trigger("series:transition",h,v,p),h.eachSeries(function(_){var S=c._chartsMap[_.__viewId];l(_,S),f(_,S)}),o(c,h),ut.trigger("series:afterupdate",h,v,p)},Qe=function(c){c[Xo]=!0,c.getZr().wakeUp()},Kr=function(c){c[ei]=(c[ei]+1)%1e3},Ac=function(c){c[Xo]&&(c.getZr().storage.traverse(function(h){la(h)||i(h)}),c[Xo]=!1)};function i(c){for(var h=[],v=c.currentStates,d=0;d<v.length;d++){var p=v[d];p==="emphasis"||p==="blur"||p==="select"||h.push(p)}c.selected&&c.states.select&&h.push("select"),c.hoverState===vo&&c.states.emphasis?h.push("emphasis"):c.hoverState===co&&c.states.blur&&h.push("blur"),c.useStates(h)}function o(c,h){var v=c._zr,d=v.storage,p=0;d.traverse(function(y){y.isGroup||p++}),p>h.get("hoverLayerThreshold")&&!be.node&&!be.worker&&h.eachSeries(function(y){if(!y.preventUsingHoverLayer){var g=c._chartsMap[y.__viewId];g.__alive&&g.eachRendered(function(m){m.states.emphasis&&(m.states.emphasis.hoverLayer=!0)})}})}function s(c,h){var v=c.get("blendMode")||null;h.eachRendered(function(d){d.isGroup||(d.style.blend=v)})}function l(c,h){if(!c.preventAutoZ){var v=Sn(c);h.eachRendered(function(d){return Td(d,v.z,v.zlevel),!0})}}function u(c,h){h.eachRendered(function(v){if(!la(v)){var d=v.getTextContent(),p=v.getTextGuideLine();v.stateTransition&&(v.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),v.hasState()?(v.prevStates=v.currentStates,v.clearStates()):v.prevStates&&(v.prevStates=null)}})}function f(c,h){var v=c.getModel("stateAnimation"),d=c.isAnimationEnabled(),p=v.get("duration"),y=p>0?{duration:p,delay:v.get("delay"),easing:v.get("easing")}:null;h.eachRendered(function(g){if(g.states&&g.states.emphasis){if(la(g))return;if(g instanceof Be&&I0(g),g.__dirty){var m=g.prevStates;m&&g.useStates(m)}if(d){g.stateTransition=y;var _=g.getTextContent(),S=g.getTextGuideLine();_&&(_.stateTransition=y),S&&(S.stateTransition=y)}g.__dirty&&i(g)}})}Dc=function(c){return new((function(h){U(v,h);function v(){return h!==null&&h.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(d){for(;d;){var p=d.__ecComponentInfo;if(p!=null)return c._model.getComponent(p.mainType,p.index);d=d.parent}},v.prototype.enterEmphasis=function(d,p){hn(d,p),Qe(c)},v.prototype.leaveEmphasis=function(d,p){dn(d,p),Qe(c)},v.prototype.enterBlur=function(d){S0(d),Qe(c)},v.prototype.leaveBlur=function(d){hd(d),Qe(c)},v.prototype.enterSelect=function(d){dd(d),Qe(c)},v.prototype.leaveSelect=function(d){pd(d),Qe(c)},v.prototype.getModel=function(){return c.getModel()},v.prototype.getViewOfComponentModel=function(d){return c.getViewOfComponentModel(d)},v.prototype.getViewOfSeriesModel=function(d){return c.getViewOfSeriesModel(d)},v.prototype.getMainProcessVersion=function(){return c[ei]},v})(jd))(c)},Hp=function(c){function h(v,d){for(var p=0;p<v.length;p++){var y=v[p];y[Zo]=d}}T(cl,function(v,d){c._messageCenter.on(d,function(p){if(Lc[c.group]&&c[Zo]!==wc){if(p&&p.escapeConnect)return;var y=c.makeActionFromEvent(p),g=[];T(nn,function(m){m!==c&&m.group===c.group&&g.push(m)}),h(g,wc),T(g,function(m){m[Zo]!==Yx&&m.dispatchAction(y)}),h(g,Xx)}})})}})(),e})(Vn),Iu=Wp.prototype;Iu.on=Bp("on");Iu.off=Bp("off");Iu.one=function(r,e,t){var a=this;function n(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];e&&e.apply&&e.apply(this,i),a.off(r,n)}this.on.call(this,r,n,t)};var Zx=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var Ki={},cl={},vl={},hl=[],dl=[],qi=[],Up={},pl={},nn={},Lc={},$x=+new Date-0,ku="_echarts_instance_";function HD(r,e,t){var a=!(t&&t.ssr);if(a){var n=Kx(r);if(n)return n}var i=new Wp(r,e,t);return i.id="ec_"+$x++,nn[i.id]=i,a&&nd(r,ku,i.id),Hp(i),ut.trigger("afterinit",i),i}function Kx(r){return nn[Qm(r,ku)]}function Yp(r,e){Up[r]=e}function Xp(r){fe(dl,r)<0&&dl.push(r)}function Zp(r,e){Ru(hl,r,e,Bx)}function qx(r){Pu("afterinit",r)}function jx(r){Pu("afterupdate",r)}function Pu(r,e){ut.on(r,e)}function Vr(r,e,t){var a,n,i,o,s;Q(e)&&(t=e,e=""),K(r)?(a=r.type,n=r.event,o=r.update,s=r.publishNonRefinedEvent,t||(t=r.action),i=r.refineEvent):(a=r,n=e);function l(f){return f.toLowerCase()}n=l(n||a);var u=i?l(a):n;Ki[a]||(ht(bc.test(a)&&bc.test(n)),i&&ht(n!==a),Ki[a]={actionType:a,refinedEventType:n,nonRefinedEventType:u,update:o,action:t,refineEvent:i},vl[n]=1,i&&s&&(vl[u]=1),cl[u]=a)}function Qx(r,e){Hn.register(r,e)}function Jx(r,e){Ru(qi,r,e,Ep,"layout")}function zr(r,e){Ru(qi,r,e,Op,"visual")}var Ic=[];function Ru(r,e,t,a,n){if((Q(e)||K(e))&&(t=e,e=a),!(fe(Ic,t)>=0)){Ic.push(t);var i=bp.wrapStageHandler(t,n);i.__prio=e,i.__raw=t,r.push(i)}}function $p(r,e){pl[r]=e}function eb(r,e,t){var a=Ix("registerMap");a&&a(r,e,t)}var tb=CS;zr(Lu,QS);zr(To,JS);zr(To,ex);zr(Lu,hx);zr(To,dx);zr(Np,Ax);Xp(Jd);Zp(Ox,sS);$p("default",tx);Vr({type:Cr,event:Cr,update:Cr},nt);Vr({type:bi,event:bi,update:bi},nt);Vr({type:zi,event:Jl,update:zi,action:nt,refineEvent:Eu,publishNonRefinedEvent:!0});Vr({type:Hs,event:Jl,update:Hs,action:nt,refineEvent:Eu,publishNonRefinedEvent:!0});Vr({type:Gi,event:Jl,update:Gi,action:nt,refineEvent:Eu,publishNonRefinedEvent:!0});function Eu(r,e,t,a){return{eventContent:{selected:C0(t),isFromClick:e.isFromClick||!1}}}Yp("default",{});Yp("dark",Mp);function ka(r){return r==null?0:r.length||1}function kc(r){return r}var Kp=(function(){function r(e,t,a,n,i,o){this._old=e,this._new=t,this._oldKeyGetter=a||kc,this._newKeyGetter=n||kc,this.context=i,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(e){return this._add=e,this},r.prototype.update=function(e){return this._update=e,this},r.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},r.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},r.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},r.prototype.remove=function(e){return this._remove=e,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var e=this._old,t=this._new,a={},n=new Array(e.length),i=new Array(t.length);this._initIndexMap(e,null,n,"_oldKeyGetter"),this._initIndexMap(t,a,i,"_newKeyGetter");for(var o=0;o<e.length;o++){var s=n[o],l=a[s],u=ka(l);if(u>1){var f=l.shift();l.length===1&&(a[s]=l[0]),this._update&&this._update(f,o)}else u===1?(a[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,a)},r.prototype._executeMultiple=function(){var e=this._old,t=this._new,a={},n={},i=[],o=[];this._initIndexMap(e,a,i,"_oldKeyGetter"),this._initIndexMap(t,n,o,"_newKeyGetter");for(var s=0;s<i.length;s++){var l=i[s],u=a[l],f=n[l],c=ka(u),h=ka(f);if(c>1&&h===1)this._updateManyToOne&&this._updateManyToOne(f,u),n[l]=null;else if(c===1&&h>1)this._updateOneToMany&&this._updateOneToMany(f,u),n[l]=null;else if(c===1&&h===1)this._update&&this._update(f,u),n[l]=null;else if(c>1&&h>1)this._updateManyToMany&&this._updateManyToMany(f,u),n[l]=null;else if(c>1)for(var v=0;v<c;v++)this._remove&&this._remove(u[v]);else this._remove&&this._remove(u)}this._performRestAdd(o,n)},r.prototype._performRestAdd=function(e,t){for(var a=0;a<e.length;a++){var n=e[a],i=t[n],o=ka(i);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(i[s]);else o===1&&this._add&&this._add(i);t[n]=null}},r.prototype._initIndexMap=function(e,t,a,n){for(var i=this._diffModeMultiple,o=0;o<e.length;o++){var s="_ec_"+this[n](e[o],o);if(i||(a[o]=s),!!t){var l=t[s],u=ka(l);u===0?(t[s]=o,i&&a.push(s)):u===1?t[s]=[l,o]:l.push(o)}}},r})(),rb=(function(){function r(e,t){this._encode=e,this._schema=t}return r.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},r.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},r})();function ab(r,e){var t={},a=t.encode={},n=ee(),i=[],o=[],s={};T(r.dimensions,function(h){var v=r.getDimensionInfo(h),d=v.coordDim;if(d){var p=v.coordDimIndex;Qo(a,d)[p]=h,v.isExtraCoord||(n.set(d,1),ib(v.type)&&(i[0]=h),Qo(s,d)[p]=r.getDimensionIndex(v.name)),v.defaultTooltip&&o.push(h)}Xd.each(function(y,g){var m=Qo(a,g),_=v.otherDims[g];_!=null&&_!==!1&&(m[_]=v.name)})});var l=[],u={};n.each(function(h,v){var d=a[v];u[v]=d[0],l=l.concat(d)}),t.dataDimsOnCoord=l,t.dataDimIndicesOnCoord=X(l,function(h){return r.getDimensionInfo(h).storeDimIndex}),t.encodeFirstDimNotExtra=u;var f=a.label;f&&f.length&&(i=f.slice());var c=a.tooltip;return c&&c.length?o=c.slice():o.length||(o=i.slice()),a.defaultedLabel=i,a.defaultedTooltip=o,t.userOutput=new rb(s,e),t}function Qo(r,e){return r.hasOwnProperty(e)||(r[e]=[]),r[e]}function nb(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function ib(r){return!(r==="ordinal"||r==="time")}var Li=(function(){function r(e){this.otherDims={},e!=null&&F(this,e)}return r})(),ob=ne(),sb={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},qp=(function(){function r(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return r.prototype.isDimensionOmitted=function(){return this._dimOmitted},r.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=Jp(this.source)))},r.prototype.getSourceDimensionIndex=function(e){return j(this._dimNameMap.get(e),-1)},r.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},r.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=tp(this.source),a=!eg(e),n="",i=[],o=0,s=0;o<e;o++){var l=void 0,u=void 0,f=void 0,c=this.dimensions[s];if(c&&c.storeDimIndex===o)l=t?c.name:null,u=c.type,f=c.ordinalMeta,s++;else{var h=this.getSourceDimension(o);h&&(l=t?h.name:null,u=h.type)}i.push({property:l,type:u,ordinalMeta:f}),t&&l!=null&&(!c||!c.isCalculationCoord)&&(n+=a?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),n+="$",n+=sb[u]||"f",f&&(n+=f.uid),n+="$"}var v=this.source,d=[v.seriesLayoutBy,v.startIndex,n].join("$$");return{dimensions:i,hash:d}},r.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,a=0;t<this._fullDimCount;t++){var n=void 0,i=this.dimensions[a];if(i&&i.storeDimIndex===t)i.isCalculationCoord||(n=i.name),a++;else{var o=this.getSourceDimension(t);o&&(n=o.name)}e.push(n)}return e},r.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},r})();function jp(r){return r instanceof qp}function Qp(r){for(var e=ee(),t=0;t<(r||[]).length;t++){var a=r[t],n=K(a)?a.name:a;n!=null&&e.get(n)==null&&e.set(n,t)}return e}function Jp(r){var e=ob(r);return e.dimNameMap||(e.dimNameMap=Qp(r.dimensionsDefine))}function eg(r){return r>30}var Pa=K,Zt=X,lb=typeof Int32Array>"u"?Array:Int32Array,ub="e\0\0",Pc=-1,fb=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],cb=["_approximateExtent"],Rc,ni,Ra,Ea,Jo,Oa,es,Tn=(function(){function r(e,t){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var a,n=!1;jp(e)?(a=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(n=!0,a=e),a=a||["x","y"];for(var i={},o=[],s={},l=!1,u={},f=0;f<a.length;f++){var c=a[f],h=Z(c)?new Li({name:c}):c instanceof Li?c:new Li(c),v=h.name;h.type=h.type||"float",h.coordDim||(h.coordDim=v,h.coordDimIndex=0);var d=h.otherDims=h.otherDims||{};o.push(v),i[v]=h,u[v]!=null&&(l=!0),h.createInvertedIndices&&(s[v]=[]);var p=f;oe(h.storeDimIndex)&&(p=h.storeDimIndex),d.itemName===0&&(this._nameDimIdx=p),d.itemId===0&&(this._idDimIdx=p),n&&(h.storeDimIndex=f)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(l),this.hostModel=t,this._invertedIndicesMap=s,this._dimOmitted){var y=this._dimIdxToName=ee();T(o,function(g){y.set(i[g].storeDimIndex,g)})}}return r.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(t==null)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var a=this._dimIdxToName.get(t);if(a!=null)return a;var n=this._schema.getSourceDimension(t);if(n)return n.name},r.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(t!=null)return t;if(e==null)return-1;var a=this._getDimInfo(e);return a?a.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},r.prototype._recognizeDimIndex=function(e){if(oe(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},r.prototype._getStoreDimIndex=function(e){var t=this.getDimensionIndex(e);return t},r.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},r.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(a){return t.hasOwnProperty(a)?t[a]:void 0}:function(a){return t[a]}},r.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},r.prototype.mapDimension=function(e,t){var a=this._dimSummary;if(t==null)return a.encodeFirstDimNotExtra[e];var n=a.encode[e];return n?n[t]:null},r.prototype.mapDimensionsAll=function(e){var t=this._dimSummary,a=t.encode[e];return(a||[]).slice()},r.prototype.getStore=function(){return this._store},r.prototype.initData=function(e,t,a){var n=this,i;if(e instanceof nl&&(i=e),!i){var o=this.dimensions,s=wu(e)||Rn(e)?new rp(e,o.length):e;i=new nl;var l=Zt(o,function(u){return{type:n._dimInfos[u].type,property:u}});i.initData(s,l,a)}this._store=i,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=ab(this,this._schema),this.userOutput=this._dimSummary.userOutput},r.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},r.prototype.appendValues=function(e,t){var a=this._store.appendValues(e,t&&t.length),n=a.start,i=a.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var s=n;s<i;s++){var l=s-n;this._nameList[s]=t[l],o&&es(this,s)}},r.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,a=0;a<t.length;a++){var n=this._dimInfos[t[a]];n.ordinalMeta&&e.collectOrdinalMeta(n.storeDimIndex,n.ordinalMeta)}},r.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==ar&&!e.fillStorage},r.prototype._doInit=function(e,t){if(!(e>=t)){var a=this._store,n=a.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=n.getSource().sourceFormat,l=s===je;if(l&&!n.pure)for(var u=[],f=e;f<t;f++){var c=n.getItem(f,u);if(!this.hasItemOption&&Gm(c)&&(this.hasItemOption=!0),c){var h=c.name;i[f]==null&&h!=null&&(i[f]=rt(h,null));var v=c.id;o[f]==null&&v!=null&&(o[f]=rt(v,null))}}if(this._shouldMakeIdFromName())for(var f=e;f<t;f++)es(this,f);Rc(this)}},r.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},r.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},r.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},r.prototype.setCalculationInfo=function(e,t){Pa(e)?F(this._calculationInfo,e):this._calculationInfo[e]=t},r.prototype.getName=function(e){var t=this.getRawIndex(e),a=this._nameList[t];return a==null&&this._nameDimIdx!=null&&(a=Ra(this,this._nameDimIdx,t)),a==null&&(a=""),a},r.prototype._getCategory=function(e,t){var a=this._store.get(e,t),n=this._store.getOrdinalMeta(e);return n?n.categories[a]:a},r.prototype.getId=function(e){return ni(this,this.getRawIndex(e))},r.prototype.count=function(){return this._store.count()},r.prototype.get=function(e,t){var a=this._store,n=this._dimInfos[e];if(n)return a.get(n.storeDimIndex,t)},r.prototype.getByRawIndex=function(e,t){var a=this._store,n=this._dimInfos[e];if(n)return a.getByRawIndex(n.storeDimIndex,t)},r.prototype.getIndices=function(){return this._store.getIndices()},r.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},r.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},r.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},r.prototype.getValues=function(e,t){var a=this,n=this._store;return N(e)?n.getValues(Zt(e,function(i){return a._getStoreDimIndex(i)}),t):n.getValues(e)},r.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,a=0,n=t.length;a<n;a++)if(isNaN(this._store.get(t[a],e)))return!1;return!0},r.prototype.indexOfName=function(e){for(var t=0,a=this._store.count();t<a;t++)if(this.getName(t)===e)return t;return-1},r.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},r.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},r.prototype.rawIndexOf=function(e,t){var a=e&&this._invertedIndicesMap[e],n=a&&a[t];return n==null||isNaN(n)?Pc:n},r.prototype.each=function(e,t,a){Q(e)&&(a=t,t=e,e=[]);var n=a||this,i=Zt(Ea(e),this._getStoreDimIndex,this);this._store.each(i,n?$(t,n):t)},r.prototype.filterSelf=function(e,t,a){Q(e)&&(a=t,t=e,e=[]);var n=a||this,i=Zt(Ea(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,n?$(t,n):t),this},r.prototype.selectRange=function(e){var t=this,a={},n=Le(e);return T(n,function(i){var o=t._getStoreDimIndex(i);a[o]=e[i]}),this._store=this._store.selectRange(a),this},r.prototype.mapArray=function(e,t,a){Q(e)&&(a=t,t=e,e=[]),a=a||this;var n=[];return this.each(e,function(){n.push(t&&t.apply(this,arguments))},a),n},r.prototype.map=function(e,t,a,n){var i=a||n||this,o=Zt(Ea(e),this._getStoreDimIndex,this),s=Oa(this);return s._store=this._store.map(o,i?$(t,i):t),s},r.prototype.modify=function(e,t,a,n){var i=a||n||this,o=Zt(Ea(e),this._getStoreDimIndex,this);this._store.modify(o,i?$(t,i):t)},r.prototype.downSample=function(e,t,a,n){var i=Oa(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),t,a,n),i},r.prototype.minmaxDownSample=function(e,t){var a=Oa(this);return a._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),t),a},r.prototype.lttbDownSample=function(e,t){var a=Oa(this);return a._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),a},r.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},r.prototype.getItemModel=function(e){var t=this.hostModel,a=this.getRawDataItem(e);return new he(a,t,t&&t.ecModel)},r.prototype.diff=function(e){var t=this;return new Kp(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(a){return ni(e,a)},function(a){return ni(t,a)})},r.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},r.prototype.setVisual=function(e,t){this._visual=this._visual||{},Pa(e)?F(this._visual,e):this._visual[e]=t},r.prototype.getItemVisual=function(e,t){var a=this._itemVisuals[e],n=a&&a[t];return n??this.getVisual(t)},r.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},r.prototype.ensureUniqueItemVisual=function(e,t){var a=this._itemVisuals,n=a[e];n||(n=a[e]={});var i=n[t];return i==null&&(i=this.getVisual(t),N(i)?i=i.slice():Pa(i)&&(i=F({},i)),n[t]=i),i},r.prototype.setItemVisual=function(e,t,a){var n=this._itemVisuals[e]||{};this._itemVisuals[e]=n,Pa(t)?F(n,t):n[t]=a},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(e,t){Pa(e)?F(this._layout,e):this._layout[e]=t},r.prototype.getLayout=function(e){return this._layout[e]},r.prototype.getItemLayout=function(e){return this._itemLayouts[e]},r.prototype.setItemLayout=function(e,t,a){this._itemLayouts[e]=a?F(this._itemLayouts[e]||{},t):t},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(e,t){var a=this.hostModel&&this.hostModel.seriesIndex;c0(a,this.dataType,e,t),this._graphicEls[e]=t},r.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},r.prototype.eachItemGraphicEl=function(e,t){T(this._graphicEls,function(a,n){a&&e&&e.call(t,a,n)})},r.prototype.cloneShallow=function(e){return e||(e=new r(this._schema?this._schema:Zt(this.dimensions,this._getDimInfo,this),this.hostModel)),Jo(e,this),e._store=this._store,e},r.prototype.wrapMethod=function(e,t){var a=this[e];Q(a)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var n=a.apply(this,arguments);return t.apply(this,[n].concat(sm(arguments)))})},r.internalField=(function(){Rc=function(e){var t=e._invertedIndicesMap;T(t,function(a,n){var i=e._dimInfos[n],o=i.ordinalMeta,s=e._store;if(o){a=t[n]=new lb(o.categories.length);for(var l=0;l<a.length;l++)a[l]=Pc;for(var l=0;l<s.count();l++)a[s.get(i.storeDimIndex,l)]=l}})},Ra=function(e,t,a){return rt(e._getCategory(t,a),null)},ni=function(e,t){var a=e._idList[t];return a==null&&e._idDimIdx!=null&&(a=Ra(e,e._idDimIdx,t)),a==null&&(a=ub+t),a},Ea=function(e){return N(e)||(e=e!=null?[e]:[]),e},Oa=function(e){var t=new r(e._schema?e._schema:Zt(e.dimensions,e._getDimInfo,e),e.hostModel);return Jo(t,e),t},Jo=function(e,t){T(fb.concat(t.__wrappedMethods||[]),function(a){t.hasOwnProperty(a)&&(e[a]=t[a])}),e.__wrappedMethods=t.__wrappedMethods,T(cb,function(a){e[a]=q(t[a])}),e._calculationInfo=F({},t._calculationInfo)},es=function(e,t){var a=e._nameList,n=e._idList,i=e._nameDimIdx,o=e._idDimIdx,s=a[t],l=n[t];if(s==null&&i!=null&&(a[t]=s=Ra(e,i,t)),l==null&&o!=null&&(n[t]=l=Ra(e,o,t)),l==null&&s!=null){var u=e._nameRepeatCount,f=u[s]=(u[s]||0)+1;l=s,f>1&&(l+="__ec__"+f),n[t]=l}}})(),r})();function WD(r,e){return Co(r,e).dimensions}function Co(r,e){wu(r)||(r=Tu(r)),e=e||{};var t=e.coordDimensions||[],a=e.dimensionsDefine||r.dimensionsDefine||[],n=ee(),i=[],o=hb(r,t,a,e.dimensionsCount),s=e.canOmitUnusedDimensions&&eg(o),l=a===r.dimensionsDefine,u=l?Jp(r):Qp(a),f=e.encodeDefine;!f&&e.encodeDefaulter&&(f=e.encodeDefaulter(r,o));for(var c=ee(f),h=new sp(o),v=0;v<h.length;v++)h[v]=-1;function d(M){var A=h[M];if(A<0){var C=a[M],I=K(C)?C:{name:C},L=new Li,E=I.name;E!=null&&u.get(E)!=null&&(L.name=L.displayName=E),I.type!=null&&(L.type=I.type),I.displayName!=null&&(L.displayName=I.displayName);var k=i.length;return h[M]=k,L.storeDimIndex=M,i.push(L),L}return i[A]}if(!s)for(var v=0;v<o;v++)d(v);c.each(function(M,A){var C=De(M).slice();if(C.length===1&&!Z(C[0])&&C[0]<0){c.set(A,!1);return}var I=c.set(A,[]);T(C,function(L,E){var k=Z(L)?u.get(L):L;k!=null&&k<o&&(I[E]=k,y(d(k),A,E))})});var p=0;T(t,function(M){var A,C,I,L;if(Z(M))A=M,L={};else{L=M,A=L.name;var E=L.ordinalMeta;L.ordinalMeta=null,L=F({},L),L.ordinalMeta=E,C=L.dimsDef,I=L.otherDims,L.name=L.coordDim=L.coordDimIndex=L.dimsDef=L.otherDims=null}var k=c.get(A);if(k!==!1){if(k=De(k),!k.length)for(var P=0;P<(C&&C.length||1);P++){for(;p<o&&d(p).coordDim!=null;)p++;p<o&&k.push(p++)}T(k,function(V,R){var O=d(V);if(l&&L.type!=null&&(O.type=L.type),y(ae(O,L),A,R),O.name==null&&C){var z=C[R];!K(z)&&(z={name:z}),O.name=O.displayName=z.name,O.defaultTooltip=z.defaultTooltip}I&&ae(O.otherDims,I)})}});function y(M,A,C){Xd.get(A)!=null?M.otherDims[A]=C:(M.coordDim=A,M.coordDimIndex=C,n.set(A,!0))}var g=e.generateCoord,m=e.generateCoordCount,_=m!=null;m=g?m||1:0;var S=g||"value";function b(M){M.name==null&&(M.name=M.coordDim)}if(s)T(i,function(M){b(M)}),i.sort(function(M,A){return M.storeDimIndex-A.storeDimIndex});else for(var x=0;x<o;x++){var w=d(x),D=w.coordDim;D==null&&(w.coordDim=db(S,n,_),w.coordDimIndex=0,(!g||m<=0)&&(w.isExtraCoord=!0),m--),b(w),w.type==null&&(Kd(r,x)===Ee.Must||w.isExtraCoord&&(w.otherDims.itemName!=null||w.otherDims.seriesName!=null))&&(w.type="ordinal")}return vb(i),new qp({source:r,dimensions:i,fullDimensionCount:o,dimensionOmitted:s})}function vb(r){for(var e=ee(),t=0;t<r.length;t++){var a=r[t],n=a.name,i=e.get(n)||0;i>0&&(a.name=n+(i-1)),i++,e.set(n,i)}}function hb(r,e,t,a){var n=Math.max(r.dimensionsDetectedCount||1,e.length,t.length,a||0);return T(e,function(i){var o;K(i)&&(o=i.dimsDef)&&(n=Math.max(n,o.length))}),n}function db(r,e,t){if(t||e.hasKey(r)){for(var a=0;e.hasKey(r+a);)a++;r+=a}return e.set(r,!0),r}var pb=(function(){function r(e){this.coordSysDims=[],this.axisMap=ee(),this.categoryAxisMap=ee(),this.coordSysName=e}return r})();function gb(r){var e=r.get("coordinateSystem"),t=new pb(e),a=yb[e];if(a)return a(r,t,t.axisMap,t.categoryAxisMap),t}var yb={cartesian2d:function(r,e,t,a){var n=r.getReferringComponents("xAxis",Ze).models[0],i=r.getReferringComponents("yAxis",Ze).models[0];e.coordSysDims=["x","y"],t.set("x",n),t.set("y",i),qr(n)&&(a.set("x",n),e.firstCategoryDimIndex=0),qr(i)&&(a.set("y",i),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(r,e,t,a){var n=r.getReferringComponents("singleAxis",Ze).models[0];e.coordSysDims=["single"],t.set("single",n),qr(n)&&(a.set("single",n),e.firstCategoryDimIndex=0)},polar:function(r,e,t,a){var n=r.getReferringComponents("polar",Ze).models[0],i=n.findAxisModel("radiusAxis"),o=n.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],t.set("radius",i),t.set("angle",o),qr(i)&&(a.set("radius",i),e.firstCategoryDimIndex=0),qr(o)&&(a.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(r,e,t,a){e.coordSysDims=["lng","lat"]},parallel:function(r,e,t,a){var n=r.ecModel,i=n.getComponent("parallel",r.get("parallelIndex")),o=e.coordSysDims=i.dimensions.slice();T(i.parallelAxisIndex,function(s,l){var u=n.getComponent("parallelAxis",s),f=o[l];t.set(f,u),qr(u)&&(a.set(f,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})},matrix:function(r,e,t,a){var n=r.getReferringComponents("matrix",Ze).models[0];e.coordSysDims=["x","y"];var i=n.getDimensionModel("x"),o=n.getDimensionModel("y");t.set("x",i),t.set("y",o),a.set("x",i),a.set("y",o)}};function qr(r){return r.get("type")==="category"}function mb(r,e,t){t=t||{};var a=t.byIndex,n=t.stackedCoordDimension,i,o,s;_b(e)?i=e:(o=e.schema,i=o.dimensions,s=e.store);var l=!!(r&&r.get("stack")),u,f,c,h;if(T(i,function(m,_){Z(m)&&(i[_]=m={name:m}),l&&!m.isExtraCoord&&(!a&&!u&&m.ordinalMeta&&(u=m),!f&&m.type!=="ordinal"&&m.type!=="time"&&(!n||n===m.coordDim)&&(f=m))}),f&&!a&&!u&&(a=!0),f){c="__\0ecstackresult_"+r.id,h="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var v=f.coordDim,d=f.type,p=0;T(i,function(m){m.coordDim===v&&p++});var y={name:c,coordDim:v,coordDimIndex:p,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},g={name:h,coordDim:h,coordDimIndex:p+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(y.storeDimIndex=s.ensureCalculationDimension(h,d),g.storeDimIndex=s.ensureCalculationDimension(c,d)),o.appendCalculationDimension(y),o.appendCalculationDimension(g)):(i.push(y),i.push(g))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:a,stackedOverDimension:h,stackResultDimension:c}}function _b(r){return!jp(r.schema)}function ya(r,e){return!!e&&e===r.getCalculationInfo("stackedDimension")}function Sb(r,e){return ya(r,e)?r.getCalculationInfo("stackResultDimension"):e}function xb(r,e){var t=r.get("coordinateSystem"),a=Hn.get(t),n;return e&&e.coordSysDims&&(n=X(e.coordSysDims,function(i){var o={name:i},s=e.axisMap.get(i);if(s){var l=s.get("type");o.type=nb(l)}return o})),n||(n=a&&(a.getDimensionsInfo?a.getDimensionsInfo():a.dimensions.slice())||["x","y"]),n}function bb(r,e,t){var a,n;return t&&T(r,function(i,o){var s=i.coordDim,l=t.categoryAxisMap.get(s);l&&(a==null&&(a=o),i.ordinalMeta=l.getOrdinalMeta(),e&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(n=!0)}),!n&&a!=null&&(r[a].otherDims.itemName=0),a}function wa(r,e,t){t=t||{};var a=e.getSourceManager(),n,i=!1;r?(i=!0,n=Tu(r)):(n=a.getSource(),i=n.sourceFormat===je);var o=gb(e),s=xb(e,o),l=t.useEncodeDefaulter,u=Q(l)?l:l?ye(N_,s,e):null,f={coordDimensions:s,generateCoord:t.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},c=Co(n,f),h=bb(c.dimensions,t.createInvertedIndices,o),v=i?null:a.getSharedDataStore(c),d=mb(e,{schema:c,store:v}),p=new Tn(c,e);p.setCalculationInfo(d);var y=h!=null&&wb(n)?function(g,m,_,S){return S===h?_:this.defaultDimValueGetter(g,m,_,S)}:null;return p.hasItemOption=!1,p.initData(i?n:v,null,y),p}function wb(r){if(r.sourceFormat===je){var e=Tb(r.data||[]);return!N(Gn(e))}}function Tb(r){for(var e=0;e<r.length&&r[e]==null;)e++;return r[e]}function gl(r){return r.type==="interval"||r.type==="log"}function Cb(r,e,t,a,n){var i={},o=i.interval=Qh(e/t);a!=null&&o<a&&(o=i.interval=a),n!=null&&o>n&&(o=i.interval=n);var s=i.intervalPrecision=Cn(o),l=i.niceTickExtent=[ke(Math.ceil(r[0]/o)*o,s),ke(Math.floor(r[1]/o)*o,s)];return Mb(l,r),i}function ts(r){var e=Math.pow(10,Zl(r)),t=r/e;return t?t===2?t=3:t===3?t=5:t*=2:t=1,ke(t*e)}function Cn(r){return Pt(r)+2}function Ec(r,e,t){r[e]=Math.max(Math.min(r[e],t[1]),t[0])}function Mb(r,e){!isFinite(r[0])&&(r[0]=e[0]),!isFinite(r[1])&&(r[1]=e[1]),Ec(r,0,e),Ec(r,1,e),r[0]>r[1]&&(r[0]=r[1])}function Ou(r,e){return r>=e[0]&&r<=e[1]}var Db=(function(){function r(){this.normalize=Oc,this.scale=Nc}return r.prototype.updateMethods=function(e){e.hasBreaks()?(this.normalize=$(e.normalize,e),this.scale=$(e.scale,e)):(this.normalize=Oc,this.scale=Nc)},r})();function Oc(r,e){return e[1]===e[0]?.5:(r-e[0])/(e[1]-e[0])}function Nc(r,e){return r*(e[1]-e[0])+e[0]}function yl(r,e,t){var a=Math.log(r);return[Math.log(t?e[0]:Math.max(0,e[0]))/a,Math.log(t?e[1]:Math.max(0,e[1]))/a]}var fr=(function(){function r(e){this._calculator=new Db,this._setting=e||{},this._extent=[1/0,-1/0]}return r.prototype.getSetting=function(e){return this._setting[e]},r.prototype._innerUnionExtent=function(e){var t=this._extent;this._innerSetExtent(e[0]<t[0]?e[0]:t[0],e[1]>t[1]?e[1]:t[1])},r.prototype.unionExtentFromData=function(e,t){this._innerUnionExtent(e.getApproximateExtent(t))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(e,t){this._innerSetExtent(e,t)},r.prototype._innerSetExtent=function(e,t){var a=this._extent;isNaN(e)||(a[0]=e),isNaN(t)||(a[1]=t),this._brkCtx&&this._brkCtx.update(a)},r.prototype.setBreaksFromOption=function(e){},r.prototype._innerSetBreak=function(e){this._brkCtx&&(this._brkCtx.setBreaks(e),this._calculator.updateMethods(this._brkCtx),this._brkCtx.update(this._extent))},r.prototype._innerGetBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},r.prototype.hasBreaks=function(){return this._brkCtx?this._brkCtx.hasBreaks():!1},r.prototype._getExtentSpanWithBreaks=function(){return this._brkCtx&&this._brkCtx.hasBreaks()?this._brkCtx.getExtentSpan():this._extent[1]-this._extent[0]},r.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(e){this._isBlank=e},r})();fo(fr);var Ab=0,ml=(function(){function r(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++Ab,this._onCollect=e.onCollect}return r.createByAxisModel=function(e){var t=e.option,a=t.data,n=a&&X(a,Lb);return new r({categories:n,needCollect:!n,deduplication:t.dedplication!==!1})},r.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},r.prototype.parseAndCollect=function(e){var t,a=this._needCollect;if(!Z(e)&&!a)return e;if(a&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,this._onCollect&&this._onCollect(e,t),t;var n=this._getOrCreateMap();return t=n.get(e),t==null&&(a?(t=this.categories.length,this.categories[t]=e,n.set(e,t),this._onCollect&&this._onCollect(e,t)):t=NaN),t},r.prototype._getOrCreateMap=function(){return this._map||(this._map=ee(this.categories))},r})();function Lb(r){return K(r)&&r.value!=null?r.value:r+""}var tg=(function(r){U(e,r);function e(t){var a=r.call(this,t)||this;a.type="ordinal";var n=a.getSetting("ordinalMeta");return n||(n=new ml({})),N(n)&&(n=new ml({categories:X(n,function(i){return K(i)?i.value:i})})),a._ordinalMeta=n,a._extent=a.getSetting("extent")||[0,n.categories.length-1],a}return e.prototype.parse=function(t){return t==null?NaN:Z(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return Ou(t,this._extent)&&t>=0&&t<this._ordinalMeta.categories.length},e.prototype.normalize=function(t){return t=this._getTickNumber(t),this._calculator.normalize(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(this._calculator.scale(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],a=this._extent,n=a[0];n<=a[1];)t.push({value:n}),n++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(t==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var a=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,a.length);o<l;++o){var u=a[o];n[o]=u,i[u]=o}for(var f=0;o<s;++o){for(;i[f]!=null;)f++;n.push(f),i[f]=o}},e.prototype._getTickNumber=function(t){var a=this._ticksByOrdinalNumber;return a&&t>=0&&t<a.length?a[t]:t},e.prototype.getRawOrdinalNumber=function(t){var a=this._ordinalNumbersByTick;return a&&t>=0&&t<a.length?a[t]:t},e.prototype.getLabel=function(t){if(!this.isBlank()){var a=this.getRawOrdinalNumber(t.value),n=this._ordinalMeta.categories[a];return n==null?"":n+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e})(fr);fr.registerClass(tg);var $t=ke,or=(function(r){U(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return e.prototype.parse=function(t){return t==null||t===""?NaN:Number(t)},e.prototype.contain=function(t){return Ou(t,this._extent)},e.prototype.normalize=function(t){return this._calculator.normalize(t,this._extent)},e.prototype.scale=function(t){return this._calculator.scale(t,this._extent)},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=Cn(t)},e.prototype.getTicks=function(t){t=t||{};var a=this._interval,n=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=Ui(),l=[];if(!a)return l;t.breakTicks;var u=1e4;n[0]<i[0]&&(t.expandToNicedExtent?l.push({value:$t(i[0]-a,o)}):l.push({value:n[0]}));for(var f=function(d,p){return Math.round((p-d)/a)},c=i[0];c<=i[1];){if(l.push({value:c}),c=$t(c+a,o),this._brkCtx){var h=this._brkCtx.calcNiceTickMultiple(c,f);h>=0&&(c=$t(c+h*a,o))}if(l.length>0&&c===l[l.length-1].value)break;if(l.length>u)return[]}var v=l.length?l[l.length-1].value:i[1];return n[1]>v&&(t.expandToNicedExtent?l.push({value:$t(v+a,o)}):l.push({value:n[1]})),t.breakTicks,l},e.prototype.getMinorTicks=function(t){for(var a=this.getTicks({expandToNicedExtent:!0}),n=[],i=this.getExtent(),o=1;o<a.length;o++){var s=a[o],l=a[o-1];if(!(l.break||s.break)){for(var u=0,f=[],c=s.value-l.value,h=c/t,v=Cn(h);u<t-1;){var d=$t(l.value+(u+1)*h,v);d>i[0]&&d<i[1]&&f.push(d),u++}var p=Ui();p&&p.pruneTicksByBreak("auto",f,this._getNonTransBreaks(),function(y){return y},this._interval,i),n.push(f)}}return n},e.prototype._getNonTransBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},e.prototype.getLabel=function(t,a){if(t==null)return"";var n=a&&a.precision;n==null?n=Pt(t.value)||0:n==="auto"&&(n=this._intervalPrecision);var i=$t(t.value,n,!0);return Gd(i)},e.prototype.calcNiceTicks=function(t,a,n){t=t||5;var i=this._extent.slice(),o=this._getExtentSpanWithBreaks();if(isFinite(o)){o<0&&(o=-o,i.reverse(),this._innerSetExtent(i[0],i[1]),i=this._extent.slice());var s=Cb(i,o,t,a,n);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},e.prototype.calcNiceExtent=function(t){var a=this._extent.slice();if(a[0]===a[1])if(a[0]!==0){var n=Math.abs(a[0]);t.fixMax||(a[1]+=n/2),a[0]-=n/2}else a[1]=1;var i=a[1]-a[0];isFinite(i)||(a[0]=0,a[1]=1),this._innerSetExtent(a[0],a[1]),a=this._extent.slice(),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval);var o=this._interval,s=this._intervalPrecision;t.fixMin||(a[0]=$t(Math.floor(a[0]/o)*o,s)),t.fixMax||(a[1]=$t(Math.ceil(a[1]/o)*o,s)),this._innerSetExtent(a[0],a[1])},e.prototype.setNiceExtent=function(t,a){this._niceExtent=[t,a]},e.type="interval",e})(fr);fr.registerClass(or);var rg=typeof Float32Array<"u",Ib=rg?Float32Array:Array;function Rt(r){return N(r)?rg?new Float32Array(r):r:new Ib(r)}var _l="__ec_stack_";function ag(r){return r.get("stack")||_l+r.seriesIndex}function Nu(r){return r.dim+r.index}function kb(r){var e=[],t=r.axis,a="axis0";if(t.type==="category"){for(var n=t.getBandWidth(),i=0;i<r.count;i++)e.push(ae({bandWidth:n,axisKey:a,stackId:_l+i},r));for(var o=og(e),s=[],i=0;i<r.count;i++){var l=o[a][_l+i];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function ng(r,e){var t=[];return e.eachSeriesByType(r,function(a){sg(a)&&t.push(a)}),t}function Pb(r){var e={};T(r,function(l){var u=l.coordinateSystem,f=u.getBaseAxis();if(!(f.type!=="time"&&f.type!=="value"))for(var c=l.getData(),h=f.dim+"_"+f.index,v=c.getDimensionIndex(c.mapDimension(f.dim)),d=c.getStore(),p=0,y=d.count();p<y;++p){var g=d.get(v,p);e[h]?e[h].push(g):e[h]=[g]}});var t={};for(var a in e)if(e.hasOwnProperty(a)){var n=e[a];if(n){n.sort(function(l,u){return l-u});for(var i=null,o=1;o<n.length;++o){var s=n[o]-n[o-1];s>0&&(i=i===null?s:Math.min(i,s))}t[a]=i}}return t}function ig(r){var e=Pb(r),t=[];return T(r,function(a){var n=a.coordinateSystem,i=n.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var l=i.dim+"_"+i.index,u=e[l],f=Math.abs(o[1]-o[0]),c=i.scale.getExtent(),h=Math.abs(c[1]-c[0]);s=u?f/h*u:f}else{var v=a.getData();s=Math.abs(o[1]-o[0])/v.count()}var d=re(a.get("barWidth"),s),p=re(a.get("barMaxWidth"),s),y=re(a.get("barMinWidth")||(lg(a)?.5:1),s),g=a.get("barGap"),m=a.get("barCategoryGap"),_=a.get("defaultBarGap");t.push({bandWidth:s,barWidth:d,barMaxWidth:p,barMinWidth:y,barGap:g,barCategoryGap:m,defaultBarGap:_,axisKey:Nu(i),stackId:ag(a)})}),og(t)}function og(r){var e={};T(r,function(a,n){var i=a.axisKey,o=a.bandWidth,s=e[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:a.defaultBarGap||0,stacks:{}},l=s.stacks;e[i]=s;var u=a.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var f=a.barWidth;f&&!l[u].width&&(l[u].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var c=a.barMaxWidth;c&&(l[u].maxWidth=c);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 t={};return T(e,function(a,n){t[n]={};var i=a.stacks,o=a.bandWidth,s=a.categoryGap;if(s==null){var l=Le(i).length;s=Math.max(35-l*4,15)+"%"}var u=re(s,o),f=re(a.gap,1),c=a.remainedWidth,h=a.autoWidthCount,v=(c-u)/(h+(h-1)*f);v=Math.max(v,0),T(i,function(g){var m=g.maxWidth,_=g.minWidth;if(g.width){var S=g.width;m&&(S=Math.min(S,m)),_&&(S=Math.max(S,_)),g.width=S,c-=S+f*S,h--}else{var S=v;m&&m<S&&(S=Math.min(m,c)),_&&_>S&&(S=_),S!==v&&(g.width=S,c-=S+f*S,h--)}}),v=(c-u)/(h+(h-1)*f),v=Math.max(v,0);var d=0,p;T(i,function(g,m){g.width||(g.width=v),p=g,d+=g.width*(1+f)}),p&&(d-=p.width*f);var y=-d/2;T(i,function(g,m){t[n][m]=t[n][m]||{bandWidth:o,offset:y,width:g.width},y+=g.width*(1+f)})}),t}function Rb(r,e,t){if(r&&e){var a=r[Nu(e)];return a}}function Eb(r,e){var t=ng(r,e),a=ig(t);T(t,function(n){var i=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=ag(n),u=a[Nu(s)][l],f=u.offset,c=u.width;i.setLayout({bandWidth:u.bandWidth,offset:f,size:c})})}function Ob(r){return{seriesType:r,plan:Du(),reset:function(e){if(sg(e)){var t=e.getData(),a=e.coordinateSystem,n=a.getBaseAxis(),i=a.getOtherAxis(n),o=t.getDimensionIndex(t.mapDimension(i.dim)),s=t.getDimensionIndex(t.mapDimension(n.dim)),l=e.get("showBackground",!0),u=t.mapDimension(i.dim),f=t.getCalculationInfo("stackResultDimension"),c=ya(t,u)&&!!t.getCalculationInfo("stackedOnSeries"),h=i.isHorizontal(),v=Nb(n,i),d=lg(e),p=e.get("barMinHeight")||0,y=f&&t.getDimensionIndex(f),g=t.getLayout("size"),m=t.getLayout("offset");return{progress:function(_,S){for(var b=_.count,x=d&&Rt(b*3),w=d&&l&&Rt(b*3),D=d&&Rt(b),M=a.master.getRect(),A=h?M.width:M.height,C,I=S.getStore(),L=0;(C=_.next())!=null;){var E=I.get(c?y:o,C),k=I.get(s,C),P=v,V=void 0;c&&(V=+E-I.get(o,C));var R=void 0,O=void 0,z=void 0,H=void 0;if(h){var Y=a.dataToPoint([E,k]);if(c){var J=a.dataToPoint([V,k]);P=J[0]}R=P,O=Y[1]+m,z=Y[0]-P,H=g,Math.abs(z)<p&&(z=(z<0?-1:1)*p)}else{var Y=a.dataToPoint([k,E]);if(c){var J=a.dataToPoint([k,V]);P=J[1]}R=Y[0]+m,O=P,z=g,H=Y[1]-P,Math.abs(H)<p&&(H=(H<=0?-1:1)*p)}d?(x[L]=R,x[L+1]=O,x[L+2]=h?z:H,w&&(w[L]=h?M.x:R,w[L+1]=h?O:M.y,w[L+2]=A),D[C]=C):S.setItemLayout(C,{x:R,y:O,width:z,height:H}),L+=3}d&&S.setLayout({largePoints:x,largeDataIndices:D,largeBackgroundPoints:w,valueAxisHorizontal:h})}}}}}}function sg(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function lg(r){return r.pipelineContext&&r.pipelineContext.large}function Nb(r,e){var t=e.model.get("startValue");return t||(t=0),e.toGlobalCoord(e.dataToCoord(e.type==="log"?t>0?t:1:t))}var Bb=function(r,e,t,a){for(;t<a;){var n=t+a>>>1;r[n][1]<e?t=n+1:a=n}return t},ug=(function(r){U(e,r);function e(t){var a=r.call(this,t)||this;return a.type="time",a}return e.prototype.getLabel=function(t){var a=this.getSetting("useUTC");return _o(t.value,Nf[h_(rn(this._minLevelUnit))]||Nf.second,a,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(t,a,n){var i=this.getSetting("useUTC"),o=this.getSetting("locale");return d_(t,a,n,o,i)},e.prototype.getTicks=function(t){var a=this._interval,n=this._extent,i=[];if(!a)return i;var o=this.getSetting("useUTC"),s=Yi(n[1],o);i.push({value:n[0],time:{level:0,upperTimeUnit:s,lowerTimeUnit:s}});var l=Yb(this._minLevelUnit,this._approxInterval,o,n,this._getExtentSpanWithBreaks(),this._brkCtx);i=i.concat(l);var u=Yi(n[1],o);i.push({value:n[1],time:{level:0,upperTimeUnit:u,lowerTimeUnit:u}}),this.getSetting("useUTC");var f=Mr.length-1,c=0;return T(i,function(h){f=Math.min(f,fe(Mr,h.time.upperTimeUnit)),c=Math.max(c,h.time.level)}),i},e.prototype.calcNiceExtent=function(t){var a=this.getExtent();if(a[0]===a[1]&&(a[0]-=tt,a[1]+=tt),a[1]===-1/0&&a[0]===1/0){var n=new Date;a[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),a[0]=a[1]-tt}this._innerSetExtent(a[0],a[1]),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},e.prototype.calcNiceTicks=function(t,a,n){t=t||10;var i=this._getExtentSpanWithBreaks();this._approxInterval=i/t,a!=null&&this._approxInterval<a&&(this._approxInterval=a),n!=null&&this._approxInterval>n&&(this._approxInterval=n);var o=ii.length,s=Math.min(Bb(ii,this._approxInterval,0,o),o-1);this._interval=ii[s][1],this._intervalPrecision=Cn(this._interval),this._minLevelUnit=ii[Math.max(s-1,0)][0]},e.prototype.parse=function(t){return oe(t)?t:+Er(t)},e.prototype.contain=function(t){return Ou(t,this._extent)},e.prototype.normalize=function(t){return this._calculator.normalize(t,this._extent)},e.prototype.scale=function(t){return this._calculator.scale(t,this._extent)},e.type="time",e})(or),ii=[["second",fu],["minute",cu],["hour",tn],["quarter-day",tn*6],["half-day",tn*12],["day",tt*1.2],["half-week",tt*3.5],["week",tt*7],["month",tt*31],["quarter",tt*95],["half-year",Of/2],["year",Of]];function Vb(r,e,t,a){return el(new Date(e),r,a).getTime()===el(new Date(t),r,a).getTime()}function zb(r,e){return r/=tt,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function Gb(r){var e=30*tt;return r/=e,r>6?6:r>3?3:r>2?2:1}function Fb(r){return r/=tn,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function Bc(r,e){return r/=e?cu:fu,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function Hb(r){return Qh(r)}function Wb(r,e,t){var a=Math.max(0,fe(Mr,e)-1);return el(new Date(r),Mr[a],t).getTime()}function Ub(r,e){var t=new Date(0);t[r](1);var a=t.getTime();t[r](1+e);var n=t.getTime()-a;return function(i,o){return Math.max(0,Math.round((o-i)/n))}}function Yb(r,e,t,a,n,i){var o=1e4,s=u_,l=0;function u(L,E,k,P,V,R,O){for(var z=Ub(V,L),H=E,Y=new Date(H);H<k&&H<=a[1]&&(O.push({value:H}),!(l++>o));)if(Y[V](Y[P]()+L),H=Y.getTime(),i){var J=i.calcNiceTickMultiple(H,z);J>0&&(Y[V](Y[P]()+J*L),H=Y.getTime())}O.push({value:H,notAdd:!0})}function f(L,E,k){var P=[],V=!E.length;if(!Vb(rn(L),a[0],a[1],t)){V&&(E=[{value:Wb(a[0],L,t)},{value:a[1]}]);for(var R=0;R<E.length-1;R++){var O=E[R].value,z=E[R+1].value;if(O!==z){var H=void 0,Y=void 0,J=void 0,pe=!1;switch(L){case"year":H=Math.max(1,Math.round(e/tt/365)),Y=Rd(t),J=p_(t);break;case"half-year":case"quarter":case"month":H=Gb(e),Y=vu(t),J=Ed(t);break;case"week":case"half-week":case"day":H=zb(e),Y=hu(t),J=Od(t),pe=!0;break;case"half-day":case"quarter-day":case"hour":H=Fb(e),Y=du(t),J=Nd(t);break;case"minute":H=Bc(e,!0),Y=pu(t),J=Bd(t);break;case"second":H=Bc(e,!1),Y=gu(t),J=Vd(t);break;case"millisecond":H=Hb(e),Y=yu(t),J=zd(t);break}z>=a[0]&&O<=a[1]&&u(H,O,z,Y,J,pe,P),L==="year"&&k.length>1&&R===0&&k.unshift({value:k[0].value-H})}}for(var R=0;R<P.length;R++)k.push(P[R])}}for(var c=[],h=[],v=0,d=0,p=0;p<s.length;++p){var y=rn(s[p]);if(v_(s[p])){f(s[p],c[c.length-1]||[],h);var g=s[p+1]?rn(s[p+1]):null;if(y!==g){if(h.length){d=v,h.sort(function(L,E){return L.value-E.value});for(var m=[],_=0;_<h.length;++_){var S=h[_].value;(_===0||h[_-1].value!==S)&&(m.push(h[_]),S>=a[0]&&S<=a[1]&&v++)}var b=n/e;if(v>b*1.5&&d>b/1.5||(c.push(m),v>b||r===s[p]))break}h=[]}}}for(var x=Ce(X(c,function(L){return Ce(L,function(E){return E.value>=a[0]&&E.value<=a[1]&&!E.notAdd})}),function(L){return L.length>0}),w=[],D=x.length-1,p=0;p<x.length;++p)for(var M=x[p],A=0;A<M.length;++A){var C=Yi(M[A].value,t);w.push({value:M[A].value,time:{level:D-p,upperTimeUnit:C,lowerTimeUnit:C}})}w.sort(function(L,E){return L.value-E.value});for(var I=[],p=0;p<w.length;++p)(p===0||w[p].value!==w[p-1].value)&&I.push(w[p]);return I}fr.registerClass(ug);var Sl=ke,Xb=Math.floor,Zb=Math.ceil,oi=Math.pow,si=Math.log,fg=(function(r){U(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new or,t}return e.prototype.getTicks=function(t){t=t||{};var a=this._extent.slice(),n=this._originalScale.getExtent(),i=r.prototype.getTicks.call(this,t),o=this.base;return this._originalScale._innerGetBreaks(),X(i,function(s){var l=s.value,u=null,f=oi(o,l);l===a[0]&&this._fixMin?u=n[0]:l===a[1]&&this._fixMax&&(u=n[1]);var c;return u!=null&&(f=rs(f,u)),{value:f,break:c}},this)},e.prototype._getNonTransBreaks=function(){return this._originalScale._innerGetBreaks()},e.prototype.setExtent=function(t,a){this._originalScale.setExtent(t,a);var n=yl(this.base,[t,a]);r.prototype.setExtent.call(this,n[0],n[1])},e.prototype.getExtent=function(){var t=this.base,a=r.prototype.getExtent.call(this);a[0]=oi(t,a[0]),a[1]=oi(t,a[1]);var n=this._originalScale.getExtent();return this._fixMin&&(a[0]=rs(a[0],n[0])),this._fixMax&&(a[1]=rs(a[1],n[1])),a},e.prototype.unionExtentFromData=function(t,a){this._originalScale.unionExtentFromData(t,a);var n=yl(this.base,t.getApproximateExtent(a),!0);this._innerUnionExtent(n)},e.prototype.calcNiceTicks=function(t){t=t||10;var a=this._extent.slice(),n=this._getExtentSpanWithBreaks();if(!(!isFinite(n)||n<=0)){var i=Em(n),o=t/n*i;for(o<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var s=[Sl(Zb(a[0]/i)*i),Sl(Xb(a[1]/i)*i)];this._interval=i,this._intervalPrecision=Cn(i),this._niceExtent=s}},e.prototype.calcNiceExtent=function(t){r.prototype.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.contain=function(t){return t=si(t)/si(this.base),r.prototype.contain.call(this,t)},e.prototype.normalize=function(t){return t=si(t)/si(this.base),r.prototype.normalize.call(this,t)},e.prototype.scale=function(t){return t=r.prototype.scale.call(this,t),oi(this.base,t)},e.prototype.setBreaksFromOption=function(t){},e.type="log",e})(or);function rs(r,e){return Sl(r,Pt(e))}fr.registerClass(fg);var $b=(function(){function r(e,t,a){this._prepareParams(e,t,a)}return r.prototype._prepareParams=function(e,t,a){a[1]<a[0]&&(a=[NaN,NaN]),this._dataMin=a[0],this._dataMax=a[1];var n=this._isOrdinal=e.type==="ordinal";this._needCrossZero=e.type==="interval"&&t.getNeedCrossZero&&t.getNeedCrossZero();var i=t.get("min",!0);i==null&&(i=t.get("startValue",!0));var o=this._modelMinRaw=i;Q(o)?this._modelMinNum=li(e,o({min:a[0],max:a[1]})):o!=="dataMin"&&(this._modelMinNum=li(e,o));var s=this._modelMaxRaw=t.get("max",!0);if(Q(s)?this._modelMaxNum=li(e,s({min:a[0],max:a[1]})):s!=="dataMax"&&(this._modelMaxNum=li(e,s)),n)this._axisDataLen=t.getCategories().length;else{var l=t.get("boundaryGap"),u=N(l)?l:[l||0,l||0];typeof u[0]=="boolean"||typeof u[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[ln(u[0],1),ln(u[1],1)]}},r.prototype.calculate=function(){var e=this._isOrdinal,t=this._dataMin,a=this._dataMax,n=this._axisDataLen,i=this._boundaryGapInner,o=e?null:a-t||Math.abs(t),s=this._modelMinRaw==="dataMin"?t:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?a:this._modelMaxNum,u=s!=null,f=l!=null;s==null&&(s=e?n?0:NaN:t-i[0]*o),l==null&&(l=e?n?n-1:NaN:a+i[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var c=Tr(s)||Tr(l)||e&&!n;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var h=this._determinedMin,v=this._determinedMax;return h!=null&&(s=h,u=!0),v!=null&&(l=v,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:c}},r.prototype.modifyDataMinMax=function(e,t){this[qb[e]]=t},r.prototype.setDeterminedMinMax=function(e,t){var a=Kb[e];this[a]=t},r.prototype.freeze=function(){this.frozen=!0},r})(),Kb={min:"_determinedMin",max:"_determinedMax"},qb={min:"_dataMin",max:"_dataMax"};function jb(r,e,t){var a=r.rawExtentInfo;return a||(a=new $b(r,e,t),r.rawExtentInfo=a,a)}function li(r,e){return e==null?null:Tr(e)?NaN:r.parse(e)}function cg(r,e){var t=r.type,a=jb(r,e,r.getExtent()).calculate();r.setBlank(a.isBlank);var n=a.min,i=a.max,o=e.ecModel;if(o&&t==="time"){var s=ng("bar",o),l=!1;if(T(s,function(c){l=l||c.getBaseAxis()===e.axis}),l){var u=ig(s),f=Qb(n,i,e,u);n=f.min,i=f.max}}return{extent:[n,i],fixMin:a.minFixed,fixMax:a.maxFixed}}function Qb(r,e,t,a){var n=t.axis.getExtent(),i=Math.abs(n[1]-n[0]),o=Rb(a,t.axis);if(o===void 0)return{min:r,max:e};var s=1/0;T(o,function(v){s=Math.min(v.offset,s)});var l=-1/0;T(o,function(v){l=Math.max(v.offset+v.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=e-r,c=1-(s+l)/i,h=f/c-f;return e+=h*(l/u),r-=h*(s/u),{min:r,max:e}}function Vc(r,e){var t=e,a=cg(r,t),n=a.extent,i=t.get("splitNumber");r instanceof fg&&(r.base=t.get("logBase"));var o=r.type,s=t.get("interval"),l=o==="interval"||o==="time";r.setBreaksFromOption(hg(t)),r.setExtent(n[0],n[1]),r.calcNiceExtent({splitNumber:i,fixMin:a.fixMin,fixMax:a.fixMax,minInterval:l?t.get("minInterval"):null,maxInterval:l?t.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function Jb(r,e){if(e=e||r.get("type"),e)switch(e){case"category":return new tg({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new ug({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(fr.getClass(e)||or)}}function ew(r){var e=r.scale.getExtent(),t=e[0],a=e[1];return!(t>0&&a>0||t<0&&a<0)}function Wn(r){var e=r.getLabelModel().get("formatter");if(r.type==="time"){var t=f_(e);return function(n,i){return r.scale.getFormattedLabel(n,i,t)}}else{if(Z(e))return function(n){var i=r.scale.getLabel(n),o=e.replace("{value}",i??"");return o};if(Q(e)){if(r.type==="category")return function(n,i){return e(ji(r,n),n.value-r.scale.getExtent()[0],null)};var a=Ui();return function(n,i){var o=null;return a&&(o=a.makeAxisLabelFormatterParamBreak(o,n.break)),e(ji(r,n),i,o)}}else return function(n){return r.scale.getLabel(n)}}}function ji(r,e){return r.type==="category"?r.scale.getLabel(e):e.value}function Bu(r){var e=r.get("interval");return e??"auto"}function vg(r){return r.type==="category"&&Bu(r.getLabelModel())===0}function tw(r,e){var t={};return T(r.mapDimensionsAll(e),function(a){t[Sb(r,a)]=!0}),Le(t)}function ma(r){return r==="middle"||r==="center"}function Mn(r){return r.getShallow("show")}function hg(r){var e=r.get("breaks",!0);e==null}var dg=(function(){function r(){}return r.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},r.prototype.getCoordSysModel=function(){},r})();function UD(r,e){return e=e||{},Ae(r,null,null,e.state!=="normal")}var zc=[],rw={registerPreprocessor:Xp,registerProcessor:Zp,registerPostInit:qx,registerPostUpdate:jx,registerUpdateLifecycle:Pu,registerAction:Vr,registerCoordinateSystem:Qx,registerLayout:Jx,registerVisual:zr,registerTransform:tb,registerLoading:$p,registerMap:eb,registerImpl:Lx,PRIORITY:Ux,ComponentModel:ie,ComponentView:Ue,SeriesModel:Ne,ChartView:Re,registerComponentModel:function(r){ie.registerClass(r)},registerComponentView:function(r){Ue.registerClass(r)},registerSeriesModel:function(r){Ne.registerClass(r)},registerChartView:function(r){Re.registerClass(r)},registerCustomSeries:function(r,e){kx(r,e)},registerSubTypeDefaulter:function(r,e){ie.registerSubTypeDefaulter(r,e)},registerPainter:function(r,e){lm(r,e)}};function ot(r){if(N(r)){T(r,function(e){ot(e)});return}fe(zc,r)>=0||(zc.push(r),Q(r)&&(r={install:r}),r.install(rw))}var aw=ne(),on=ne(),pt={estimate:1,determine:2};function Qi(r){return{out:{noPxChangeTryDetermine:[]},kind:r}}function pg(r,e){var t=X(e,function(a){return r.scale.parse(a)});return r.type==="time"&&t.length>0&&(t.sort(),t.unshift(t[0]),t.push(t[t.length-1])),t}function nw(r,e){var t=r.getLabelModel().get("customValues");if(t){var a=Wn(r),n=r.scale.getExtent(),i=pg(r,t),o=Ce(i,function(s){return s>=n[0]&&s<=n[1]});return{labels:X(o,function(s){var l={value:s};return{formattedLabel:a(l),rawLabel:r.scale.getLabel(l),tickValue:s,time:void 0,break:void 0}})}}return r.type==="category"?ow(r,e):lw(r)}function iw(r,e,t){var a=r.getTickModel().get("customValues");if(a){var n=r.scale.getExtent(),i=pg(r,a);return{ticks:Ce(i,function(o){return o>=n[0]&&o<=n[1]})}}return r.type==="category"?sw(r,e):{ticks:X(r.scale.getTicks(t),function(o){return o.value})}}function ow(r,e){var t=r.getLabelModel(),a=gg(r,t,e);return!t.get("show")||r.scale.isBlank()?{labels:[]}:a}function gg(r,e,t){var a=fw(r),n=Bu(e),i=t.kind===pt.estimate;if(!i){var o=mg(a,n);if(o)return o}var s,l;Q(n)?s=xg(r,n):(l=n==="auto"?cw(r,t):n,s=Sg(r,l));var u={labels:s,labelCategoryInterval:l};return i?t.out.noPxChangeTryDetermine.push(function(){return xl(a,n,u),!0}):xl(a,n,u),u}function sw(r,e){var t=uw(r),a=Bu(e),n=mg(t,a);if(n)return n;var i,o;if((!e.get("show")||r.scale.isBlank())&&(i=[]),Q(a))i=xg(r,a,!0);else if(a==="auto"){var s=gg(r,r.getLabelModel(),Qi(pt.determine));o=s.labelCategoryInterval,i=X(s.labels,function(l){return l.tickValue})}else o=a,i=Sg(r,o,!0);return xl(t,a,{ticks:i,tickCategoryInterval:o})}function lw(r){var e=r.scale.getTicks(),t=Wn(r);return{labels:X(e,function(a,n){return{formattedLabel:t(a,n),rawLabel:r.scale.getLabel(a),tickValue:a.value,time:a.time,break:a.break}})}}var uw=yg("axisTick"),fw=yg("axisLabel");function yg(r){return function(t){return on(t)[r]||(on(t)[r]={list:[]})}}function mg(r,e){for(var t=0;t<r.list.length;t++)if(r.list[t].key===e)return r.list[t].value}function xl(r,e,t){return r.list.push({key:e,value:t}),t}function cw(r,e){if(e.kind===pt.estimate){var t=r.calculateCategoryInterval(e);return e.out.noPxChangeTryDetermine.push(function(){return on(r).autoInterval=t,!0}),t}var a=on(r).autoInterval;return a??(on(r).autoInterval=r.calculateCategoryInterval(e))}function vw(r,e){var t=e.kind,a=dw(r),n=Wn(r),i=(a.axisRotate-a.labelRotate)/180*Math.PI,o=r.scale,s=o.getExtent(),l=o.count();if(s[1]-s[0]<1)return 0;var u=1,f=40;l>f&&(u=Math.max(1,Math.floor(l/f)));for(var c=s[0],h=r.dataToCoord(c+1)-r.dataToCoord(c),v=Math.abs(h*Math.cos(i)),d=Math.abs(h*Math.sin(i)),p=0,y=0;c<=s[1];c+=u){var g=0,m=0,_=Wh(n({value:c}),a.font,"center","top");g=_.width*1.3,m=_.height*1.3,p=Math.max(p,g,7),y=Math.max(y,m,7)}var S=p/v,b=y/d;isNaN(S)&&(S=1/0),isNaN(b)&&(b=1/0);var x=Math.max(0,Math.floor(Math.min(S,b)));if(t===pt.estimate)return e.out.noPxChangeTryDetermine.push($(hw,null,r,x,l)),x;var w=_g(r,x,l);return w??x}function hw(r,e,t){return _g(r,e,t)==null}function _g(r,e,t){var a=aw(r.model),n=r.getExtent(),i=a.lastAutoInterval,o=a.lastTickCount;if(i!=null&&o!=null&&Math.abs(i-e)<=1&&Math.abs(o-t)<=1&&i>e&&a.axisExtent0===n[0]&&a.axisExtent1===n[1])return i;a.lastTickCount=t,a.lastAutoInterval=e,a.axisExtent0=n[0],a.axisExtent1=n[1]}function dw(r){var e=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function Sg(r,e,t){var a=Wn(r),n=r.scale,i=n.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=i[0],f=n.count();u!==0&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var c=vg(r),h=o.get("showMinLabel")||c,v=o.get("showMaxLabel")||c;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(y){var g={value:y};s.push(t?y:{formattedLabel:a(g),rawLabel:n.getLabel(g),tickValue:y,time:void 0,break:void 0})}return s}function xg(r,e,t){var a=r.scale,n=Wn(r),i=[];return T(a.getTicks(),function(o){var s=a.getLabel(o),l=o.value;e(o.value,s)&&i.push(t?l:{formattedLabel:n(o),rawLabel:s,tickValue:l,time:void 0,break:void 0})}),i}var Gc=[0,1],bg=(function(){function r(e,t,a){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=a||[0,0]}return r.prototype.contain=function(e){var t=this._extent,a=Math.min(t[0],t[1]),n=Math.max(t[0],t[1]);return e>=a&&e<=n},r.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(e){return Im(e||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(e,t){var a=this._extent;a[0]=e,a[1]=t},r.prototype.dataToCoord=function(e,t){var a=this._extent,n=this.scale;return e=n.normalize(n.parse(e)),this.onBand&&n.type==="ordinal"&&(a=a.slice(),Fc(a,n.count())),it(e,Gc,a,t)},r.prototype.coordToData=function(e,t){var a=this._extent,n=this.scale;this.onBand&&n.type==="ordinal"&&(a=a.slice(),Fc(a,n.count()));var i=it(e,a,Gc,t);return this.scale.scale(i)},r.prototype.pointToData=function(e,t){},r.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),a=iw(this,t,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}),n=a.ticks,i=X(n,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=t.get("alignWithLabel");return pw(this,i,o,e.clamp),i},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var a=this.scale.getMinorTicks(t),n=X(a,function(i){return X(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return n},r.prototype.getViewLabels=function(e){return e=e||Qi(pt.determine),nw(this,e).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),a=t[1]-t[0]+(this.onBand?1:0);a===0&&(a=1);var n=Math.abs(e[1]-e[0]);return Math.abs(n)/a},r.prototype.calculateCategoryInterval=function(e){return e=e||Qi(pt.determine),vw(this,e)},r})();function Fc(r,e){var t=r[1]-r[0],a=e,n=t/a/2;r[0]+=n,r[1]-=n}function pw(r,e,t,a){var n=e.length;if(!r.onBand||t||!n)return;var i=r.getExtent(),o,s;if(n===1)e[0].coord=i[0],e[0].onBand=!0,o=e[1]={coord:i[1],tickValue:e[0].tickValue,onBand:!0};else{var l=e[n-1].tickValue-e[0].tickValue,u=(e[n-1].coord-e[0].coord)/l;T(e,function(v){v.coord-=u/2,v.onBand=!0});var f=r.scale.getExtent();s=1+f[1]-e[n-1].tickValue,o={coord:e[n-1].coord+u*s,tickValue:f[1]+1,onBand:!0},e.push(o)}var c=i[0]>i[1];h(e[0].coord,i[0])&&(a?e[0].coord=i[0]:e.shift()),a&&h(i[0],e[0].coord)&&e.unshift({coord:i[0],onBand:!0}),h(i[1],o.coord)&&(a?o.coord=i[1]:e.pop()),a&&h(o.coord,i[1])&&e.push({coord:i[1],onBand:!0});function h(v,d){return v=ke(v),d=ke(d),c?v>d:v<d}}function YD(r){var e=Ne.extend(r);return Ne.registerClass(e),e}function XD(r){var e=Re.extend(r);return Re.registerClass(e),e}var Na=Math.PI*2,_r=Uh.CMD,gw=["top","right","bottom","left"];function yw(r,e,t,a,n){var i=t.width,o=t.height;switch(r){case"top":a.set(t.x+i/2,t.y-e),n.set(0,-1);break;case"bottom":a.set(t.x+i/2,t.y+o+e),n.set(0,1);break;case"left":a.set(t.x-e,t.y+o/2),n.set(-1,0);break;case"right":a.set(t.x+i+e,t.y+o/2),n.set(1,0);break}}function mw(r,e,t,a,n,i,o,s,l){o-=r,s-=e;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var f=o*t+r,c=s*t+e;if(Math.abs(a-n)%Na<1e-4)return l[0]=f,l[1]=c,u-t;if(i){var h=a;a=Ya(n),n=Ya(h)}else a=Ya(a),n=Ya(n);a>n&&(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]=f,l[1]=c,u-t;var d=t*Math.cos(a)+r,p=t*Math.sin(a)+e,y=t*Math.cos(n)+r,g=t*Math.sin(n)+e,m=(d-o)*(d-o)+(p-s)*(p-s),_=(y-o)*(y-o)+(g-s)*(g-s);return m<_?(l[0]=d,l[1]=p,Math.sqrt(m)):(l[0]=y,l[1]=g,Math.sqrt(_))}function Ji(r,e,t,a,n,i,o,s){var l=n-r,u=i-e,f=t-r,c=a-e,h=Math.sqrt(f*f+c*c);f/=h,c/=h;var v=l*f+u*c,d=v/h;s&&(d=Math.min(Math.max(d,0),1)),d*=h;var p=o[0]=r+d*f,y=o[1]=e+d*c;return Math.sqrt((p-n)*(p-n)+(y-i)*(y-i))}function wg(r,e,t,a,n,i,o){t<0&&(r=r+t,t=-t),a<0&&(e=e+a,a=-a);var s=r+t,l=e+a,u=o[0]=Math.min(Math.max(n,r),s),f=o[1]=Math.min(Math.max(i,e),l);return Math.sqrt((u-n)*(u-n)+(f-i)*(f-i))}var ft=[];function _w(r,e,t){var a=wg(e.x,e.y,e.width,e.height,r.x,r.y,ft);return t.set(ft[0],ft[1]),a}function Sw(r,e,t){for(var a=0,n=0,i=0,o=0,s,l,u=1/0,f=e.data,c=r.x,h=r.y,v=0;v<f.length;){var d=f[v++];v===1&&(a=f[v],n=f[v+1],i=a,o=n);var p=u;switch(d){case _r.M:i=f[v++],o=f[v++],a=i,n=o;break;case _r.L:p=Ji(a,n,f[v],f[v+1],c,h,ft,!0),a=f[v++],n=f[v++];break;case _r.C:p=fm(a,n,f[v++],f[v++],f[v++],f[v++],f[v],f[v+1],c,h,ft),a=f[v++],n=f[v++];break;case _r.Q:p=um(a,n,f[v++],f[v++],f[v],f[v+1],c,h,ft),a=f[v++],n=f[v++];break;case _r.A:var y=f[v++],g=f[v++],m=f[v++],_=f[v++],S=f[v++],b=f[v++];v+=1;var x=!!(1-f[v++]);s=Math.cos(S)*m+y,l=Math.sin(S)*_+g,v<=1&&(i=s,o=l);var w=(c-y)*_/m+y;p=mw(y,g,_,S,S+b,x,w,h,ft),a=Math.cos(S+b)*m+y,n=Math.sin(S+b)*_+g;break;case _r.R:i=a=f[v++],o=n=f[v++];var D=f[v++],M=f[v++];p=wg(i,o,D,M,c,h,ft);break;case _r.Z:p=Ji(a,n,i,o,c,h,ft,!0),a=i,n=o;break}p<u&&(u=p,t.set(ft[0],ft[1]))}return u}var ct=new ge,se=new ge,_e=new ge,Tt=new ge,xt=new ge;function Hc(r,e){if(r){var t=r.getTextGuideLine(),a=r.getTextContent();if(a&&t){var n=r.textGuideLineConfig||{},i=[[0,0],[0,0],[0,0]],o=n.candidates||gw,s=a.getBoundingRect().clone();s.applyTransform(a.getComputedTransform());var l=1/0,u=n.anchor,f=r.getComputedTransform(),c=f&&En([],f),h=e.get("length2")||0;u&&_e.copy(u);for(var v=0;v<o.length;v++){var d=o[v];yw(d,0,s,ct,Tt),ge.scaleAndAdd(se,ct,Tt,h),se.transform(c);var p=r.getBoundingRect(),y=u?u.distance(se):r instanceof Be?Sw(se,r.path,_e):_w(se,p,_e);y<l&&(l=y,se.transform(f),_e.transform(f),_e.toArray(i[0]),se.toArray(i[1]),ct.toArray(i[2]))}Tg(i,e.get("minTurnAngle")),t.setShape({points:i})}}}var eo=[],We=new ge;function Tg(r,e){if(e<=180&&e>0){e=e/180*Math.PI,ct.fromArray(r[0]),se.fromArray(r[1]),_e.fromArray(r[2]),ge.sub(Tt,ct,se),ge.sub(xt,_e,se);var t=Tt.len(),a=xt.len();if(!(t<.001||a<.001)){Tt.scale(1/t),xt.scale(1/a);var n=Tt.dot(xt),i=Math.cos(e);if(i<n){var o=Ji(se.x,se.y,_e.x,_e.y,ct.x,ct.y,eo,!1);We.fromArray(eo),We.scaleAndAdd(xt,o/Math.tan(Math.PI-e));var s=_e.x!==se.x?(We.x-se.x)/(_e.x-se.x):(We.y-se.y)/(_e.y-se.y);if(isNaN(s))return;s<0?ge.copy(We,se):s>1&&ge.copy(We,_e),We.toArray(r[1])}}}}function xw(r,e,t){if(t<=180&&t>0){t=t/180*Math.PI,ct.fromArray(r[0]),se.fromArray(r[1]),_e.fromArray(r[2]),ge.sub(Tt,se,ct),ge.sub(xt,_e,se);var a=Tt.len(),n=xt.len();if(!(a<.001||n<.001)){Tt.scale(1/a),xt.scale(1/n);var i=Tt.dot(e),o=Math.cos(t);if(i<o){var s=Ji(se.x,se.y,_e.x,_e.y,ct.x,ct.y,eo,!1);We.fromArray(eo);var l=Math.PI/2,u=Math.acos(xt.dot(e)),f=l+u-t;if(f>=l)ge.copy(We,_e);else{We.scaleAndAdd(xt,s/Math.tan(Math.PI/2-f));var c=_e.x!==se.x?(We.x-se.x)/(_e.x-se.x):(We.y-se.y)/(_e.y-se.y);if(isNaN(c))return;c<0?ge.copy(We,se):c>1&&ge.copy(We,_e)}We.toArray(r[1])}}}}function as(r,e,t,a){var n=t==="normal",i=n?r:r.ensureState(t);i.ignore=e;var o=a.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=a.getModel("lineStyle").getLineStyle();n?r.useStyle(s):i.style=s}function bw(r,e){var t=e.smooth,a=e.points;if(a)if(r.moveTo(a[0][0],a[0][1]),t>0&&a.length>=3){var n=sf(a[0],a[1]),i=sf(a[1],a[2]);if(!n||!i){r.lineTo(a[1][0],a[1][1]),r.lineTo(a[2][0],a[2][1]);return}var o=Math.min(n,i)*t,s=ko([],a[1],a[0],o/n),l=ko([],a[1],a[2],o/i),u=ko([],s,l,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),r.bezierCurveTo(l[0],l[1],l[0],l[1],a[2][0],a[2][1])}else for(var f=1;f<a.length;f++)r.lineTo(a[f][0],a[f][1])}function Cg(r,e,t){var a=r.getTextGuideLine(),n=r.getTextContent();if(!n){a&&r.removeTextGuideLine();return}for(var i=e.normal,o=i.get("show"),s=n.ignore,l=0;l<Vi.length;l++){var u=Vi[l],f=e[u],c=u==="normal";if(f){var h=f.get("show"),v=c?s:j(n.states[u]&&n.states[u].ignore,s);if(v||!j(h,o)){var d=c?a:a&&a.states[u];d&&(d.ignore=!0),a&&as(a,!0,u,f);continue}a||(a=new Pr,r.setTextGuideLine(a),!c&&(s||!o)&&as(a,!0,"normal",e.normal),r.stateProxy&&(a.stateProxy=r.stateProxy)),as(a,!1,u,f)}}if(a){ae(a.style,t),a.style.fill=null;var p=i.get("showAbove"),y=r.textGuideLineConfig=r.textGuideLineConfig||{};y.showAbove=p||!1,a.buildPath=bw}}function Mg(r,e){e=e||"labelLine";for(var t={normal:r.getModel(e)},a=0;a<Xe.length;a++){var n=Xe[a];t[n]=r.getModel([n,e])}return t}var Wc=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],ww=1,to=2,Dg=ww|to;function ro(r,e,t){t=t||Dg,e?r.dirty|=t:r.dirty&=~t}function Ag(r,e){return e=e||Dg,r.dirty==null||!!(r.dirty&e)}function sr(r){if(r)return Ag(r)&&Lg(r,r.label,r),r}function Lg(r,e,t){var a=e.getComputedTransform();r.transform=su(r.transform,a);var n=r.localRect=_n(r.localRect,e.getBoundingRect()),i=e.style,o=i.margin,s=t&&t.marginForce,l=t&&t.minMarginForce,u=t&&t.marginDefault,f=i.__marginType;f==null&&u&&(o=u,f=ia.textMargin);for(var c=0;c<4;c++)ns[c]=f===ia.minMargin&&l&&l[c]!=null?l[c]:s&&s[c]!=null?s[c]:o?o[c]:0;f===ia.textMargin&&mn(n,ns,!1,!1);var h=r.rect=_n(r.rect,n);return a&&h.applyTransform(a),f===ia.minMargin&&mn(h,ns,!1,!1),r.axisAligned=ou(a),(r.label=r.label||{}).ignore=e.ignore,ro(r,!1),ro(r,!0,to),r}var ns=[0,0,0,0];function Tw(r,e,t){return r.transform=su(r.transform,t),r.localRect=_n(r.localRect,e),r.rect=_n(r.rect,e),t&&r.rect.applyTransform(t),r.axisAligned=ou(t),r.obb=void 0,(r.label=r.label||{}).ignore=!1,r}function Cw(r,e){if(r){r.label.x+=e.x,r.label.y+=e.y,r.label.markRedraw();var t=r.transform;t&&(t[4]+=e.x,t[5]+=e.y);var a=r.rect;a&&(a.x+=e.x,a.y+=e.y);var n=r.obb;n&&n.fromBoundingRect(r.localRect,t)}}function bl(r,e){for(var t=0;t<Wc.length;t++){var a=Wc[t];r[a]==null&&(r[a]=e[a])}return sr(r)}function Uc(r){var e=r.obb;return(!e||Ag(r,to))&&(r.obb=e=e||new Fh,e.fromBoundingRect(r.localRect,r.transform),ro(r,!1,to)),e}function wl(r,e,t,a,n){var i=r.length,o=Jt[e],s=pa[e];if(i<2)return!1;r.sort(function(w,D){return w.rect[o]-D.rect[o]});for(var l=0,u,f=!1,c=0;c<i;c++){var h=r[c],v=h.rect;u=v[o]-l,u<0&&(v[o]-=u,h.label[o]-=u,f=!0),l=v[o]+v[s]}var d=r[0],p=r[i-1],y,g;m(),y<0&&b(-y,.8),g<0&&b(g,.8),m(),_(y,g,1),_(g,y,-1),m(),y<0&&x(-y),g<0&&x(g);function m(){y=d.rect[o]-t,g=a-p.rect[o]-p.rect[s]}function _(w,D,M){if(w<0){var A=Math.min(D,-w);if(A>0){S(A*M,0,i);var C=A+w;C<0&&b(-C*M,1)}else b(-w*M,1)}}function S(w,D,M){w!==0&&(f=!0);for(var A=D;A<M;A++){var C=r[A],I=C.rect;I[o]+=w,C.label[o]+=w}}function b(w,D){for(var M=[],A=0,C=1;C<i;C++){var I=r[C-1].rect,L=Math.max(r[C].rect[o]-I[o]-I[s],0);M.push(L),A+=L}if(A){var E=Math.min(Math.abs(w)/A,D);if(w>0)for(var C=0;C<i-1;C++){var k=M[C]*E;S(k,0,C+1)}else for(var C=i-1;C>0;C--){var k=M[C-1]*E;S(-k,C,i)}}}function x(w){var D=w<0?-1:1;w=Math.abs(w);for(var M=Math.ceil(w/(i-1)),A=0;A<i-1;A++)if(D>0?S(M,0,A+1):S(-M,i-A-1,i),w-=M,w<=0)return}return f}function Mw(r){for(var e=0;e<r.length;e++){var t=r[e],a=t.defaultAttr,n=t.labelLine;t.label.attr("ignore",a.ignore),n&&n.attr("ignore",a.labelGuideIgnore)}}function Ig(r){var e=[];r.sort(function(u,f){return(f.suggestIgnore?1:0)-(u.suggestIgnore?1:0)||f.priority-u.priority});function t(u){if(!u.ignore){var f=u.ensureState("emphasis");f.ignore==null&&(f.ignore=!1)}u.ignore=!0}for(var a=0;a<r.length;a++){var n=sr(r[a]);if(!n.label.ignore){for(var i=n.label,o=n.labelLine,s=!1,l=0;l<e.length;l++)if(Vu(n,e[l],null,{touchThreshold:.05})){s=!0;break}s?(t(i),o&&t(o)):e.push(n)}}}function Vu(r,e,t,a){return!r||!e||r.label&&r.label.ignore||e.label&&e.label.ignore||!r.rect.intersect(e.rect,t,a)?!1:r.axisAligned&&e.axisAligned?!0:Uc(r).intersect(Uc(e),t,a)}function Dw(r){if(r){for(var e=[],t=0;t<r.length;t++)e.push(r[t].slice());return e}}function Aw(r,e){var t=r.label,a=e&&e.getTextGuideLine();return{dataIndex:r.dataIndex,dataType:r.dataType,seriesIndex:r.seriesModel.seriesIndex,text:r.label.style.text,rect:r.hostRect,labelRect:r.rect,align:t.style.align,verticalAlign:t.style.verticalAlign,labelLinePoints:Dw(a&&a.shape.points)}}var Yc=["align","verticalAlign","width","height","fontSize"],Fe=new aa,is=ne(),Lw=ne();function ui(r,e,t){for(var a=0;a<t.length;a++){var n=t[a];e[n]!=null&&(r[n]=e[n])}}var fi=["x","y","rotation"],Iw=(function(){function r(){this._labelList=[],this._chartViewList=[]}return r.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},r.prototype._addLabel=function(e,t,a,n,i){var o=n.style,s=n.__hostTarget,l=s.textConfig||{},u=n.getComputedTransform(),f=n.getBoundingRect().plain();Me.applyTransform(f,f,u),u?Fe.setLocalTransform(u):(Fe.x=Fe.y=Fe.rotation=Fe.originX=Fe.originY=0,Fe.scaleX=Fe.scaleY=1),Fe.rotation=Ya(Fe.rotation);var c=n.__hostTarget,h;if(c){h=c.getBoundingRect().plain();var v=c.getComputedTransform();Me.applyTransform(h,h,v)}var d=h&&c.getTextGuideLine();this._labelList.push({label:n,labelLine:d,seriesModel:a,dataIndex:e,dataType:t,layoutOptionOrCb:i,layoutOption:null,rect:f,hostRect:h,priority:h?h.width*h.height:0,defaultAttr:{ignore:n.ignore,labelGuideIgnore:d&&d.ignore,x:Fe.x,y:Fe.y,scaleX:Fe.scaleX,scaleY:Fe.scaleY,rotation:Fe.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:n.cursor,attachedPos:l.position,attachedRot:l.rotation}})},r.prototype.addLabelsOfSeries=function(e){var t=this;this._chartViewList.push(e);var a=e.__model,n=a.get("labelLayout");(Q(n)||Le(n).length)&&e.group.traverse(function(i){if(i.ignore)return!0;var o=i.getTextContent(),s=te(i);o&&!o.disableLabelLayout&&t._addLabel(s.dataIndex,s.dataType,a,o,n)})},r.prototype.updateLayoutConfig=function(e){var t=e.getWidth(),a=e.getHeight();function n(_,S){return function(){Hc(_,S)}}for(var i=0;i<this._labelList.length;i++){var o=this._labelList[i],s=o.label,l=s.__hostTarget,u=o.defaultAttr,f=void 0;Q(o.layoutOptionOrCb)?f=o.layoutOptionOrCb(Aw(o,l)):f=o.layoutOptionOrCb,f=f||{},o.layoutOption=f;var c=Math.PI/180;l&&l.setTextConfig({local:!1,position:f.x!=null||f.y!=null?null:u.attachedPos,rotation:f.rotate!=null?f.rotate*c:u.attachedRot,offset:[f.dx||0,f.dy||0]});var h=!1;if(f.x!=null?(s.x=re(f.x,t),s.setStyle("x",0),h=!0):(s.x=u.x,s.setStyle("x",u.style.x)),f.y!=null?(s.y=re(f.y,a),s.setStyle("y",0),h=!0):(s.y=u.y,s.setStyle("y",u.style.y)),f.labelLinePoints){var v=l.getTextGuideLine();v&&(v.setShape({points:f.labelLinePoints}),h=!1)}var d=is(s);d.needsUpdateLabelLine=h,s.rotation=f.rotate!=null?f.rotate*c:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var p=0;p<Yc.length;p++){var y=Yc[p];s.setStyle(y,f[y]!=null?f[y]:u.style[y])}if(f.draggable){if(s.draggable=!0,s.cursor="move",l){var g=o.seriesModel;if(o.dataIndex!=null){var m=o.seriesModel.getData(o.dataType);g=m.getItemModel(o.dataIndex)}s.on("drag",n(l,g.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},r.prototype.layout=function(e){var t=e.getWidth(),a=e.getHeight(),n=[];T(this._labelList,function(l){l.defaultAttr.ignore||n.push(bl({},l))});var i=Ce(n,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=Ce(n,function(l){return l.layoutOption.moveOverlap==="shiftY"});wl(i,0,0,t),wl(o,1,0,a);var s=Ce(n,function(l){return l.layoutOption.hideOverlap});Mw(s),Ig(s)},r.prototype.processLabelsOverall=function(){var e=this;T(this._chartViewList,function(t){var a=t.__model,n=t.ignoreLabelLineUpdate,i=a.isAnimationEnabled();t.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!n,l=o.getTextContent();!s&&l&&(s=is(l).needsUpdateLabelLine),s&&e._updateLabelLine(o,a),i&&e._animateLabels(o,a)})})},r.prototype._updateLabelLine=function(e,t){var a=e.getTextContent(),n=te(e),i=n.dataIndex;if(a&&i!=null){var o=t.getData(n.dataType),s=o.getItemModel(i),l={},u=o.getItemVisual(i,"style");if(u){var f=o.getVisual("drawType");l.stroke=u[f]}var c=s.getModel("labelLine");Cg(e,Mg(s),l),Hc(e,c)}},r.prototype._animateLabels=function(e,t){var a=e.getTextContent(),n=e.getTextGuideLine();if(a&&(e.forceLabelAnimation||!a.ignore&&!a.invisible&&!e.disableLabelAnimation&&!la(e))){var i=is(a),o=i.oldLayout,s=te(e),l=s.dataIndex,u={x:a.x,y:a.y,rotation:a.rotation},f=t.getData(s.dataType);if(o){a.attr(o);var h=e.prevStates;h&&(fe(h,"select")>=0&&a.attr(i.oldLayoutSelect),fe(h,"emphasis")>=0&&a.attr(i.oldLayoutEmphasis)),Se(a,u,t,l)}else if(a.attr(u),!xa(a).valueAnimation){var c=j(a.style.opacity,1);a.style.opacity=0,Pe(a,{style:{opacity:c}},t,l)}if(i.oldLayout=u,a.states.select){var v=i.oldLayoutSelect={};ui(v,u,fi),ui(v,a.states.select,fi)}if(a.states.emphasis){var d=i.oldLayoutEmphasis={};ui(d,u,fi),ui(d,a.states.emphasis,fi)}X0(a,l,f,t,t)}if(n&&!n.ignore&&!n.invisible){var i=Lw(n),o=i.oldLayout,p={points:n.shape.points};o?(n.attr({shape:o}),Se(n,{shape:p},t)):(n.setShape(p),n.style.strokePercent=0,Pe(n,{style:{strokePercent:1}},t)),i.oldLayout=p}},r})(),os=ne();function kw(r){r.registerUpdateLifecycle("series:beforeupdate",function(e,t,a){var n=os(t).labelManager;n||(n=os(t).labelManager=new Iw),n.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(e,t,a){var n=os(t).labelManager;a.updatedSeries.forEach(function(i){n.addLabelsOfSeries(t.getViewOfSeriesModel(i))}),n.updateLayoutConfig(t),n.layout(t),n.processLabelsOverall()})}function Pw(r){r.registerPainter("canvas",cm)}var Rw=(function(r){U(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t){return wa(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var a=new le,n=dt("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);a.add(n),n.setStyle(t.lineStyle);var i=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=i==="none"?"circle":i,l=t.itemHeight*.8,u=dt(s,(t.itemWidth-l)/2,(t.itemHeight-l)/2,l,l,t.itemStyle.fill);a.add(u),u.setStyle(t.itemStyle);var f=t.iconRotate==="inherit"?o:t.iconRotate||0;return u.rotation=f*Math.PI/180,u.setOrigin([t.itemWidth/2,t.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill=B.color.neutral00,u.style.lineWidth=2),a},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:6,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e})(Ne);function Dn(r,e){var t=r.mapDimensionsAll("defaultedLabel"),a=t.length;if(a===1){var n=ga(r,e,t[0]);return n!=null?n+"":null}else if(a){for(var i=[],o=0;o<t.length;o++)i.push(ga(r,e,t[o]));return i.join(" ")}}function kg(r,e){var t=r.mapDimensionsAll("defaultedLabel");if(!N(e))return e+"";for(var a=[],n=0;n<t.length;n++){var i=r.getDimensionIndex(t[n]);i>=0&&a.push(e[i])}return a.join(" ")}var zu=(function(r){U(e,r);function e(t,a,n,i){var o=r.call(this)||this;return o.updateData(t,a,n,i),o}return e.prototype._createSymbol=function(t,a,n,i,o,s){this.removeAll();var l=dt(t,-1,-1,2,2,null,s);l.attr({z2:j(o,100),culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),l.drift=Ew,this._symbolType=t,this.add(l)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){hn(this.childAt(0))},e.prototype.downplay=function(){dn(this.childAt(0))},e.prototype.setZ=function(t,a){var n=this.childAt(0);n.zlevel=t,n.z=a},e.prototype.setDraggable=function(t,a){var n=this.childAt(0);n.draggable=t,n.cursor=!a&&t?"move":n.cursor},e.prototype.updateData=function(t,a,n,i){this.silent=!1;var o=t.getItemVisual(a,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,a),u=e.getSymbolZ2(t,a),f=o!==this._symbolType,c=i&&i.disableAnimation;if(f){var h=t.getItemVisual(a,"symbolKeepAspect");this._createSymbol(o,t,a,l,u,h)}else{var v=this.childAt(0);v.silent=!1;var d={scaleX:l[0]/2,scaleY:l[1]/2};c?v.attr(d):Se(v,d,s,a),pn(v)}if(this._updateCommon(t,a,l,n,i),f){var v=this.childAt(0);if(!c){var d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:v.style.opacity}};v.scaleX=v.scaleY=0,v.style.opacity=0,Pe(v,d,s,a)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,a,n,i,o){var s=this.childAt(0),l=t.hostModel,u,f,c,h,v,d,p,y,g;if(i&&(u=i.emphasisItemStyle,f=i.blurItemStyle,c=i.selectItemStyle,h=i.focus,v=i.blurScope,p=i.labelStatesModels,y=i.hoverScale,g=i.cursorStyle,d=i.emphasisDisabled),!i||t.hasItemOption){var m=i&&i.itemModel?i.itemModel:t.getItemModel(a),_=m.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),c=m.getModel(["select","itemStyle"]).getItemStyle(),f=m.getModel(["blur","itemStyle"]).getItemStyle(),h=_.get("focus"),v=_.get("blurScope"),d=_.get("disabled"),p=Mt(m),y=_.getShallow("scale"),g=m.getShallow("cursor")}var S=t.getItemVisual(a,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var b=wo(t.getItemVisual(a,"symbolOffset"),n);b&&(s.x=b[0],s.y=b[1]),g&&s.attr("cursor",g);var x=t.getItemVisual(a,"style"),w=x.fill;if(s instanceof Gt){var D=s.style;s.useStyle(F({image:D.image,x:D.x,y:D.y,width:D.width,height:D.height},x))}else s.__isEmptyBrush?s.useStyle(F({},x)):s.useStyle(x),s.style.decal=null,s.setColor(w,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var M=t.getItemVisual(a,"liftZ"),A=this._z2;M!=null?A==null&&(this._z2=s.z2,s.z2+=M):A!=null&&(s.z2=A,this._z2=null);var C=o&&o.useNameLabel;ur(s,p,{labelFetcher:l,labelDataIndex:a,defaultText:I,inheritColor:w,defaultOpacity:x.opacity});function I(k){return C?t.getName(k):Dn(t,k)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var L=s.ensureState("emphasis");L.style=u,s.ensureState("select").style=c,s.ensureState("blur").style=f;var E=y==null||y===!0?Math.max(1.1,3/this._sizeY):isFinite(y)&&y>0?+y:1;L.scaleX=this._sizeX*E,L.scaleY=this._sizeY*E,this.setSymbolScale(1),Vt(this,h,v,d)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,a,n){var i=this.childAt(0),o=te(this).dataIndex,s=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var l=i.getTextContent();l&&Fi(l,{style:{opacity:0}},a,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Fi(i,{style:{opacity:0},scaleX:0,scaleY:0},a,{dataIndex:o,cb:t,removeOpt:s})},e.getSymbolSize=function(t,a){return bo(t.getItemVisual(a,"symbolSize"))},e.getSymbolZ2=function(t,a){return t.getItemVisual(a,"z2")},e})(le);function Ew(r,e){this.parent.drift(r,e)}function ss(r,e,t,a){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(a.isIgnore&&a.isIgnore(t))&&!(a.clipShape&&!a.clipShape.contain(e[0],e[1]))&&r.getItemVisual(t,"symbol")!=="none"}function Xc(r){return r!=null&&!K(r)&&(r={isIgnore:r}),r||{}}function Zc(r){var e=r.hostModel,t=e.getModel("emphasis");return{emphasisItemStyle:t.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:t.get("focus"),blurScope:t.get("blurScope"),emphasisDisabled:t.get("disabled"),hoverScale:t.get("scale"),labelStatesModels:Mt(e),cursorStyle:e.get("cursor")}}var Pg=(function(){function r(e){this.group=new le,this._SymbolCtor=e||zu}return r.prototype.updateData=function(e,t){this._progressiveEls=null,t=Xc(t);var a=this.group,n=e.hostModel,i=this._data,o=this._SymbolCtor,s=t.disableAnimation,l=Zc(e),u={disableAnimation:s},f=t.getSymbolPoint||function(c){return e.getItemLayout(c)};i||a.removeAll(),e.diff(i).add(function(c){var h=f(c);if(ss(e,h,c,t)){var v=new o(e,c,l,u);v.setPosition(h),e.setItemGraphicEl(c,v),a.add(v)}}).update(function(c,h){var v=i.getItemGraphicEl(h),d=f(c);if(!ss(e,d,c,t)){a.remove(v);return}var p=e.getItemVisual(c,"symbol")||"circle",y=v&&v.getSymbolType&&v.getSymbolType();if(!v||y&&y!==p)a.remove(v),v=new o(e,c,l,u),v.setPosition(d);else{v.updateData(e,c,l,u);var g={x:d[0],y:d[1]};s?v.attr(g):Se(v,g,n)}a.add(v),e.setItemGraphicEl(c,v)}).remove(function(c){var h=i.getItemGraphicEl(c);h&&h.fadeOut(function(){a.remove(h)},n)}).execute(),this._getSymbolPoint=f,this._data=e},r.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(a,n){var i=e._getSymbolPoint(n);a.setPosition(i),a.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=Zc(e),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t,a){this._progressiveEls=[],a=Xc(a);function n(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=e.start;i<e.end;i++){var o=t.getItemLayout(i);if(ss(t,o,i,a)){var s=new this._SymbolCtor(t,i,this._seriesScope);s.traverse(n),s.setPosition(o),this.group.add(s),t.setItemGraphicEl(i,s),this._progressiveEls.push(s)}}},r.prototype.eachRendered=function(e){Or(this._progressiveEls||this.group,e)},r.prototype.remove=function(e){var t=this.group,a=this._data;a&&e?a.eachItemGraphicEl(function(n){n.fadeOut(function(){t.remove(n)},a.hostModel)}):t.removeAll()},r})();function Rg(r,e,t){var a=r.getBaseAxis(),n=r.getOtherAxis(a),i=Ow(n,t),o=a.dim,s=n.dim,l=e.mapDimension(s),u=e.mapDimension(o),f=s==="x"||s==="radius"?1:0,c=X(r.dimensions,function(d){return e.mapDimension(d)}),h=!1,v=e.getCalculationInfo("stackResultDimension");return ya(e,c[0])&&(h=!0,c[0]=v),ya(e,c[1])&&(h=!0,c[1]=v),{dataDimsForPoint:c,valueStart:i,valueAxisDim:s,baseAxisDim:o,stacked:!!h,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function Ow(r,e){var t=0,a=r.scale.getExtent();return e==="start"?t=a[0]:e==="end"?t=a[1]:oe(e)&&!isNaN(e)?t=e:a[0]>0?t=a[0]:a[1]<0&&(t=a[1]),t}function Eg(r,e,t,a){var n=NaN;r.stacked&&(n=t.get(t.getCalculationInfo("stackedOverDimension"),a)),isNaN(n)&&(n=r.valueStart);var i=r.baseDataOffset,o=[];return o[i]=t.get(r.baseDim,a),o[1-i]=n,e.dataToPoint(o)}function Nw(r,e){var t=[];return e.diff(r).add(function(a){t.push({cmd:"+",idx:a})}).update(function(a,n){t.push({cmd:"=",idx:n,idx1:a})}).remove(function(a){t.push({cmd:"-",idx:a})}).execute(),t}function Bw(r,e,t,a,n,i,o,s){for(var l=Nw(r,e),u=[],f=[],c=[],h=[],v=[],d=[],p=[],y=Rg(n,e,o),g=r.getLayout("points")||[],m=e.getLayout("points")||[],_=0;_<l.length;_++){var S=l[_],b=!0,x=void 0,w=void 0;switch(S.cmd){case"=":x=S.idx*2,w=S.idx1*2;var D=g[x],M=g[x+1],A=m[w],C=m[w+1];(isNaN(D)||isNaN(M))&&(D=A,M=C),u.push(D,M),f.push(A,C),c.push(t[x],t[x+1]),h.push(a[w],a[w+1]),p.push(e.getRawIndex(S.idx1));break;case"+":var I=S.idx,L=y.dataDimsForPoint,E=n.dataToPoint([e.get(L[0],I),e.get(L[1],I)]);w=I*2,u.push(E[0],E[1]),f.push(m[w],m[w+1]);var k=Eg(y,n,e,I);c.push(k[0],k[1]),h.push(a[w],a[w+1]),p.push(e.getRawIndex(I));break;case"-":b=!1}b&&(v.push(S),d.push(d.length))}d.sort(function(we,Ht){return p[we]-p[Ht]});for(var P=u.length,V=Rt(P),R=Rt(P),O=Rt(P),z=Rt(P),H=[],_=0;_<d.length;_++){var Y=d[_],J=_*2,pe=Y*2;V[J]=u[pe],V[J+1]=u[pe+1],R[J]=f[pe],R[J+1]=f[pe+1],O[J]=c[pe],O[J+1]=c[pe+1],z[J]=h[pe],z[J+1]=h[pe+1],H[_]=v[Y]}return{current:V,next:R,stackedOnCurrent:O,stackedOnNext:z,status:H}}var Kt=Math.min,qt=Math.max;function Dr(r,e){return isNaN(r)||isNaN(e)}function Tl(r,e,t,a,n,i,o,s,l){for(var u,f,c,h,v,d,p=t,y=0;y<a;y++){var g=e[p*2],m=e[p*2+1];if(p>=n||p<0)break;if(Dr(g,m)){if(l){p+=i;continue}break}if(p===t)r[i>0?"moveTo":"lineTo"](g,m),c=g,h=m;else{var _=g-u,S=m-f;if(_*_+S*S<.5){p+=i;continue}if(o>0){for(var b=p+i,x=e[b*2],w=e[b*2+1];x===g&&w===m&&y<a;)y++,b+=i,p+=i,x=e[b*2],w=e[b*2+1],g=e[p*2],m=e[p*2+1],_=g-u,S=m-f;var D=y+1;if(l)for(;Dr(x,w)&&D<a;)D++,b+=i,x=e[b*2],w=e[b*2+1];var M=.5,A=0,C=0,I=void 0,L=void 0;if(D>=a||Dr(x,w))v=g,d=m;else{A=x-u,C=w-f;var E=g-u,k=x-g,P=m-f,V=w-m,R=void 0,O=void 0;if(s==="x"){R=Math.abs(E),O=Math.abs(k);var z=A>0?1:-1;v=g-z*R*o,d=m,I=g+z*O*o,L=m}else if(s==="y"){R=Math.abs(P),O=Math.abs(V);var H=C>0?1:-1;v=g,d=m-H*R*o,I=g,L=m+H*O*o}else R=Math.sqrt(E*E+P*P),O=Math.sqrt(k*k+V*V),M=O/(O+R),v=g-A*o*(1-M),d=m-C*o*(1-M),I=g+A*o*M,L=m+C*o*M,I=Kt(I,qt(x,g)),L=Kt(L,qt(w,m)),I=qt(I,Kt(x,g)),L=qt(L,Kt(w,m)),A=I-g,C=L-m,v=g-A*R/O,d=m-C*R/O,v=Kt(v,qt(u,g)),d=Kt(d,qt(f,m)),v=qt(v,Kt(u,g)),d=qt(d,Kt(f,m)),A=g-v,C=m-d,I=g+A*O/R,L=m+C*O/R}r.bezierCurveTo(c,h,v,d,g,m),c=I,h=L}else r.lineTo(g,m)}u=g,f=m,p+=i}return y}var Og=(function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r})(),Vw=(function(r){U(e,r);function e(t){var a=r.call(this,t)||this;return a.type="ec-polyline",a}return e.prototype.getDefaultStyle=function(){return{stroke:B.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new Og},e.prototype.buildPath=function(t,a){var n=a.points,i=0,o=n.length/2;if(a.connectNulls){for(;o>0&&Dr(n[o*2-2],n[o*2-1]);o--);for(;i<o&&Dr(n[i*2],n[i*2+1]);i++);}for(;i<o;)i+=Tl(t,n,i,o,o,1,a.smooth,a.smoothMonotone,a.connectNulls)+1},e.prototype.getPointOn=function(t,a){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n=this.path,i=n.data,o=Uh.CMD,s,l,u=a==="x",f=[],c=0;c<i.length;){var h=i[c++],v=void 0,d=void 0,p=void 0,y=void 0,g=void 0,m=void 0,_=void 0;switch(h){case o.M:s=i[c++],l=i[c++];break;case o.L:if(v=i[c++],d=i[c++],_=u?(t-s)/(v-s):(t-l)/(d-l),_<=1&&_>=0){var S=u?(d-l)*_+l:(v-s)*_+s;return u?[t,S]:[S,t]}s=v,l=d;break;case o.C:v=i[c++],d=i[c++],p=i[c++],y=i[c++],g=i[c++],m=i[c++];var b=u?lf(s,v,p,g,t,f):lf(l,d,y,m,t,f);if(b>0)for(var x=0;x<b;x++){var w=f[x];if(w<=1&&w>=0){var S=u?uf(l,d,y,m,w):uf(s,v,p,g,w);return u?[t,S]:[S,t]}}s=g,l=m;break}}},e})(Be),zw=(function(r){U(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e})(Og),Gw=(function(r){U(e,r);function e(t){var a=r.call(this,t)||this;return a.type="ec-polygon",a}return e.prototype.getDefaultShape=function(){return new zw},e.prototype.buildPath=function(t,a){var n=a.points,i=a.stackedOnPoints,o=0,s=n.length/2,l=a.smoothMonotone;if(a.connectNulls){for(;s>0&&Dr(n[s*2-2],n[s*2-1]);s--);for(;o<s&&Dr(n[o*2],n[o*2+1]);o++);}for(;o<s;){var u=Tl(t,n,o,s,s,1,a.smooth,l,a.connectNulls);Tl(t,i,o+u-1,u,s,-1,a.stackedOnSmooth,l,a.connectNulls),o+=u+1,t.closePath()}},e})(Be);function Ng(r,e,t,a,n){var i=r.getArea(),o=i.x,s=i.y,l=i.width,u=i.height,f=t.get(["lineStyle","width"])||0;o-=f/2,s-=f/2,l+=f,u+=f,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var c=new ve({shape:{x:o,y:s,width:l,height:u}});if(e){var h=r.getBaseAxis(),v=h.isHorizontal(),d=h.inverse;v?(d&&(c.shape.x+=l),c.shape.width=0):(d||(c.shape.y+=u),c.shape.height=0);var p=Q(n)?function(y){n(y,c)}:null;Pe(c,{shape:{width:l,height:u,x:o,y:s}},t,null,a,p)}return c}function Bg(r,e,t){var a=r.getArea(),n=ke(a.r0,1),i=ke(a.r,1),o=new kr({shape:{cx:ke(r.cx,1),cy:ke(r.cy,1),r0:n,r:i,startAngle:a.startAngle,endAngle:a.endAngle,clockwise:a.clockwise}});if(e){var s=r.getBaseAxis().dim==="angle";s?o.shape.endAngle=a.startAngle:o.shape.r=n,Pe(o,{shape:{endAngle:a.endAngle,r:i}},t)}return o}function Vg(r,e,t,a,n){if(r){if(r.type==="polar")return Bg(r,e,t);if(r.type==="cartesian2d")return Ng(r,e,t,a,n)}else return null;return null}function An(r,e){return r.type===e}function $c(r,e){if(r.length===e.length){for(var t=0;t<r.length;t++)if(r[t]!==e[t])return;return!0}}function Kc(r){for(var e=1/0,t=1/0,a=-1/0,n=-1/0,i=0;i<r.length;){var o=r[i++],s=r[i++];isNaN(o)||(e=Math.min(o,e),a=Math.max(o,a)),isNaN(s)||(t=Math.min(s,t),n=Math.max(s,n))}return[[e,t],[a,n]]}function qc(r,e){var t=Kc(r),a=t[0],n=t[1],i=Kc(e),o=i[0],s=i[1];return Math.max(Math.abs(a[0]-o[0]),Math.abs(a[1]-o[1]),Math.abs(n[0]-s[0]),Math.abs(n[1]-s[1]))}function jc(r){return oe(r)?r:r?.5:0}function Fw(r,e,t){if(!t.valueDim)return[];for(var a=e.count(),n=Rt(a*2),i=0;i<a;i++){var o=Eg(t,r,e,i);n[i*2]=o[0],n[i*2+1]=o[1]}return n}function jt(r,e,t,a,n){var i=t.getBaseAxis(),o=i.dim==="x"||i.dim==="radius"?0:1,s=[],l=0,u=[],f=[],c=[],h=[];if(n){for(l=0;l<r.length;l+=2){var v=e||r;!isNaN(v[l])&&!isNaN(v[l+1])&&h.push(r[l],r[l+1])}r=h}for(l=0;l<r.length-2;l+=2)switch(c[0]=r[l+2],c[1]=r[l+3],f[0]=r[l],f[1]=r[l+1],s.push(f[0],f[1]),a){case"end":u[o]=c[o],u[1-o]=f[1-o],s.push(u[0],u[1]);break;case"middle":var d=(f[o]+c[o])/2,p=[];u[o]=p[o]=d,u[1-o]=f[1-o],p[1-o]=c[1-o],s.push(u[0],u[1]),s.push(p[0],p[1]);break;default:u[o]=f[o],u[1-o]=c[1-o],s.push(u[0],u[1])}return s.push(r[l++],r[l++]),s}function Hw(r,e){var t=[],a=r.length,n,i;function o(f,c,h){var v=f.coord,d=(h-v)/(c.coord-v),p=vm(d,[f.color,c.color]);return{coord:h,color:p}}for(var s=0;s<a;s++){var l=r[s],u=l.coord;if(u<0)n=l;else if(u>e){i?t.push(o(i,l,e)):n&&t.push(o(n,l,0),o(n,l,e));break}else n&&(t.push(o(n,l,0)),n=null),t.push(l),i=l}return t}function Ww(r,e,t){var a=r.getVisual("visualMeta");if(!(!a||!a.length||!r.count())&&e.type==="cartesian2d"){for(var n,i,o=a.length-1;o>=0;o--){var s=r.getDimensionInfo(a[o].dimension);if(n=s&&s.coordDim,n==="x"||n==="y"){i=a[o];break}}if(i){var l=e.getAxis(n),u=X(i.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,c=i.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),c.reverse());var h=Hw(u,n==="x"?t.getWidth():t.getHeight()),v=h.length;if(!v&&f)return u[0].coord<0?c[1]?c[1]:u[f-1].color:c[0]?c[0]:u[0].color;var d=10,p=h[0].coord-d,y=h[v-1].coord+d,g=y-p;if(g<.001)return"transparent";T(h,function(_){_.offset=(_.coord-p)/g}),h.push({offset:v?h[v-1].offset:.5,color:c[1]||"transparent"}),h.unshift({offset:v?h[0].offset:.5,color:c[0]||"transparent"});var m=new Xl(0,0,0,0,h,!0);return m[n]=p,m[n+"2"]=y,m}}}function Uw(r,e,t){var a=r.get("showAllSymbol"),n=a==="auto";if(!(a&&!n)){var i=t.getAxesByScale("ordinal")[0];if(i&&!(n&&Yw(i,e))){var o=e.mapDimension(i.dim),s={};return T(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function Yw(r,e){var t=r.getExtent(),a=Math.abs(t[1]-t[0])/r.scale.count();isNaN(a)&&(a=0);for(var n=e.count(),i=Math.max(1,Math.round(n/5)),o=0;o<n;o+=i)if(zu.getSymbolSize(e,o)[r.isHorizontal()?1:0]*1.5>a)return!1;return!0}function Xw(r,e){return isNaN(r)||isNaN(e)}function Zw(r){for(var e=r.length/2;e>0&&Xw(r[e*2-2],r[e*2-1]);e--);return e-1}function Qc(r,e){return[r[e*2],r[e*2+1]]}function $w(r,e,t){for(var a=r.length/2,n=t==="x"?0:1,i,o,s=0,l=-1,u=0;u<a;u++)if(o=r[u*2+n],!(isNaN(o)||isNaN(r[u*2+1-n]))){if(u===0){i=o;continue}if(i<=e&&o>=e||i>=e&&o<=e){l=u;break}s=u,i=o}return{range:[s,l],t:(e-i)/(o-i)}}function zg(r){if(r.get(["endLabel","show"]))return!0;for(var e=0;e<Xe.length;e++)if(r.get([Xe[e],"endLabel","show"]))return!0;return!1}function ls(r,e,t,a){if(An(e,"cartesian2d")){var n=a.getModel("endLabel"),i=n.get("valueAnimation"),o=a.getData(),s={lastFrameIndex:0},l=zg(a)?function(v,d){r._endLabelOnDuring(v,d,o,s,i,n,e)}:null,u=e.getBaseAxis().isHorizontal(),f=Ng(e,t,a,function(){var v=r._endLabel;v&&t&&s.originalX!=null&&v.attr({x:s.originalX,y:s.originalY})},l);if(!a.get("clip",!0)){var c=f.shape,h=Math.max(c.width,c.height);u?(c.y-=h,c.height+=h*2):(c.x-=h,c.width+=h*2)}return l&&l(1,f),f}else return Bg(e,t,a)}function Kw(r,e){var t=e.getBaseAxis(),a=t.isHorizontal(),n=t.inverse,i=a?n?"right":"left":"center",o=a?"middle":n?"top":"bottom";return{normal:{align:r.get("align")||i,verticalAlign:r.get("verticalAlign")||o}}}var qw=(function(r){U(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(){var t=new le,a=new Pg;this.group.add(a.group),this._symbolDraw=a,this._lineGroup=t,this._changePolyState=$(this._changePolyState,this)},e.prototype.render=function(t,a,n){var i=t.coordinateSystem,o=this.group,s=t.getData(),l=t.getModel("lineStyle"),u=t.getModel("areaStyle"),f=s.getLayout("points")||[],c=i.type==="polar",h=this._coordSys,v=this._symbolDraw,d=this._polyline,p=this._polygon,y=this._lineGroup,g=!a.ssr&&t.get("animation"),m=!u.isEmpty(),_=u.get("origin"),S=Rg(i,s,_),b=m&&Fw(i,s,S),x=t.get("showSymbol"),w=t.get("connectNulls"),D=x&&!c&&Uw(t,s,i),M=this._data;M&&M.eachItemGraphicEl(function(we,Ht){we.__temp&&(o.remove(we),M.setItemGraphicEl(Ht,null))}),x||v.remove(),o.add(y);var A=c?!1:t.get("step"),C;i&&i.getArea&&t.get("clip",!0)&&(C=i.getArea(),C.width!=null?(C.x-=.1,C.y-=.1,C.width+=.2,C.height+=.2):C.r0&&(C.r0-=.5,C.r+=.5)),this._clipShapeForSymbol=C;var I=Ww(s,i,n)||s.getVisual("style")[s.getVisual("drawType")];if(!(d&&h.type===i.type&&A===this._step))x&&v.updateData(s,{isIgnore:D,clipShape:C,disableAnimation:!0,getSymbolPoint:function(we){return[f[we*2],f[we*2+1]]}}),g&&this._initSymbolLabelAnimation(s,i,C),A&&(b&&(b=jt(b,f,i,A,w)),f=jt(f,null,i,A,w)),d=this._newPolyline(f),m?p=this._newPolygon(f,b):p&&(y.remove(p),p=this._polygon=null),c||this._initOrUpdateEndLabel(t,i,Ir(I)),y.setClipPath(ls(this,i,!0,t));else{m&&!p?p=this._newPolygon(f,b):p&&!m&&(y.remove(p),p=this._polygon=null),c||this._initOrUpdateEndLabel(t,i,Ir(I));var L=y.getClipPath();if(L){var E=ls(this,i,!1,t);Pe(L,{shape:E.shape},t)}else y.setClipPath(ls(this,i,!0,t));x&&v.updateData(s,{isIgnore:D,clipShape:C,disableAnimation:!0,getSymbolPoint:function(we){return[f[we*2],f[we*2+1]]}}),(!$c(this._stackedOnPoints,b)||!$c(this._points,f))&&(g?this._doUpdateAnimation(s,b,i,n,A,_,w):(A&&(b&&(b=jt(b,f,i,A,w)),f=jt(f,null,i,A,w)),d.setShape({points:f}),p&&p.setShape({points:f,stackedOnPoints:b})))}var k=t.getModel("emphasis"),P=k.get("focus"),V=k.get("blurScope"),R=k.get("disabled");if(d.useStyle(ae(l.getLineStyle(),{fill:"none",stroke:I,lineJoin:"bevel"})),da(d,t,"lineStyle"),d.style.lineWidth>0&&t.get(["emphasis","lineStyle","width"])==="bolder"){var O=d.getState("emphasis").style;O.lineWidth=+d.style.lineWidth+1}te(d).seriesIndex=t.seriesIndex,Vt(d,P,V,R);var z=jc(t.get("smooth")),H=t.get("smoothMonotone");if(d.setShape({smooth:z,smoothMonotone:H,connectNulls:w}),p){var Y=s.getCalculationInfo("stackedOnSeries"),J=0;p.useStyle(ae(u.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),Y&&(J=jc(Y.get("smooth"))),p.setShape({smooth:z,stackedOnSmooth:J,smoothMonotone:H,connectNulls:w}),da(p,t,"areaStyle"),te(p).seriesIndex=t.seriesIndex,Vt(p,P,V,R)}var pe=this._changePolyState;s.eachItemGraphicEl(function(we){we&&(we.onHoverStateChange=pe)}),this._polyline.onHoverStateChange=pe,this._data=s,this._coordSys=i,this._stackedOnPoints=b,this._points=f,this._step=A,this._valueOrigin=_,t.get("triggerLineEvent")&&(this.packEventData(t,d),p&&this.packEventData(t,p))},e.prototype.packEventData=function(t,a){te(a).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,a,n,i){var o=t.getData(),s=Lr(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 f=l[s*2],c=l[s*2+1];if(isNaN(f)||isNaN(c)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,c))return;var h=t.get("zlevel")||0,v=t.get("z")||0;u=new zu(o,s),u.x=f,u.y=c,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 Re.prototype.highlight.call(this,t,a,n,i)},e.prototype.downplay=function(t,a,n,i){var o=t.getData(),s=Lr(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 Re.prototype.downplay.call(this,t,a,n,i)},e.prototype._changePolyState=function(t){var a=this._polygon;bf(this._polyline,t),a&&bf(a,t)},e.prototype._newPolyline=function(t){var a=this._polyline;return a&&this._lineGroup.remove(a),a=new Vw({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(a),this._polyline=a,a},e.prototype._newPolygon=function(t,a){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new Gw({shape:{points:t,stackedOnPoints:a},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(t,a,n){var i,o,s=a.getBaseAxis(),l=s.inverse;a.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):a.type==="polar"&&(i=s.dim==="angle",o=!0);var u=t.hostModel,f=u.get("animationDuration");Q(f)&&(f=f(null));var c=u.get("animationDelay")||0,h=Q(c)?c(null):c;t.eachItemGraphicEl(function(v,d){var p=v;if(p){var y=[v.x,v.y],g=void 0,m=void 0,_=void 0;if(n)if(o){var S=n,b=a.pointToCoord(y);i?(g=S.startAngle,m=S.endAngle,_=-b[1]/180*Math.PI):(g=S.r0,m=S.r,_=b[0])}else{var x=n;i?(g=x.x,m=x.x+x.width,_=v.x):(g=x.y+x.height,m=x.y,_=v.y)}var w=m===g?0:(_-g)/(m-g);l&&(w=1-w);var D=Q(c)?c(d):f*w+h,M=p.getSymbolPath(),A=M.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:D}),A&&A.animateFrom({style:{opacity:0}},{duration:300,delay:D}),M.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,a,n){var i=t.getModel("endLabel");if(zg(t)){var o=t.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new de({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=Zw(l);f>=0&&(ur(s,Mt(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:f,defaultText:function(c,h,v){return v!=null?kg(o,v):Dn(o,c)},enableTextSetter:!0},Kw(i,a)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,a,n,i,o,s,l){var u=this._endLabel,f=this._polyline;if(u){t<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var c=n.getLayout("points"),h=n.hostModel,v=h.get("connectNulls"),d=s.get("precision"),p=s.get("distance")||0,y=l.getBaseAxis(),g=y.isHorizontal(),m=y.inverse,_=a.shape,S=m?g?_.x:_.y+_.height:g?_.x+_.width:_.y,b=(g?p:0)*(m?-1:1),x=(g?0:-p)*(m?-1:1),w=g?"x":"y",D=$w(c,S,w),M=D.range,A=M[1]-M[0],C=void 0;if(A>=1){if(A>1&&!v){var I=Qc(c,M[0]);u.attr({x:I[0]+b,y:I[1]+x}),o&&(C=h.getRawValue(M[0]))}else{var I=f.getPointOn(S,w);I&&u.attr({x:I[0]+b,y:I[1]+x});var L=h.getRawValue(M[0]),E=h.getRawValue(M[1]);o&&(C=id(n,d,L,E,D.t))}i.lastFrameIndex=M[0]}else{var k=t===1||i.lastFrameIndex>0?M[0]:0,I=Qc(c,k);o&&(C=h.getRawValue(k)),u.attr({x:I[0]+b,y:I[1]+x})}if(o){var P=xa(u);typeof P.setLabelText=="function"&&P.setLabelText(C)}}},e.prototype._doUpdateAnimation=function(t,a,n,i,o,s,l){var u=this._polyline,f=this._polygon,c=t.hostModel,h=Bw(this._data,t,this._stackedOnPoints,a,this._coordSys,n,this._valueOrigin),v=h.current,d=h.stackedOnCurrent,p=h.next,y=h.stackedOnNext;if(o&&(d=jt(h.stackedOnCurrent,h.current,n,o,l),v=jt(h.current,null,n,o,l),y=jt(h.stackedOnNext,h.next,n,o,l),p=jt(h.next,null,n,o,l)),qc(v,p)>3e3||f&&qc(d,y)>3e3){u.stopAnimation(),u.setShape({points:p}),f&&(f.stopAnimation(),f.setShape({points:p,stackedOnPoints:y}));return}u.shape.__points=h.current,u.shape.points=v;var g={shape:{points:p}};h.current!==v&&(g.shape.__points=h.next),u.stopAnimation(),Se(u,g,c),f&&(f.setShape({points:v,stackedOnPoints:d}),f.stopAnimation(),Se(f,{shape:{stackedOnPoints:y}},c),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var m=[],_=h.status,S=0;S<_.length;S++){var b=_[S].cmd;if(b==="="){var x=t.getItemGraphicEl(_[S].idx1);x&&m.push({el:x,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var w=u.shape.__points,D=0;D<m.length;D++){var M=m[D].el,A=m[D].ptIdx*2;M.x=w[A],M.y=w[A+1],M.markRedraw()}})},e.prototype.remove=function(t){var a=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(i,o){i.__temp&&(a.remove(i),n.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e})(Re);function jw(r,e){return{seriesType:r,plan:Du(),reset:function(t){var a=t.getData(),n=t.coordinateSystem;if(t.pipelineContext,!!n){var i=X(n.dimensions,function(c){return a.mapDimension(c)}).slice(0,2),o=i.length,s=a.getCalculationInfo("stackResultDimension");ya(a,i[0])&&(i[0]=s),ya(a,i[1])&&(i[1]=s);var l=a.getStore(),u=a.getDimensionIndex(i[0]),f=a.getDimensionIndex(i[1]);return o&&{progress:function(c,h){for(var v=c.end-c.start,d=Rt(v*o),p=[],y=[],g=c.start,m=0;g<c.end;g++){var _=void 0;if(o===1){var S=l.get(u,g);_=n.dataToPoint(S,null,y)}else p[0]=l.get(u,g),p[1]=l.get(f,g),_=n.dataToPoint(p,null,y);d[m++]=_[0],d[m++]=_[1]}h.setLayout("points",d)}}}}}}var Qw={average:function(r){for(var e=0,t=0,a=0;a<r.length;a++)isNaN(r[a])||(e+=r[a],t++);return t===0?NaN:e/t},sum:function(r){for(var e=0,t=0;t<r.length;t++)e+=r[t]||0;return e},max:function(r){for(var e=-1/0,t=0;t<r.length;t++)r[t]>e&&(e=r[t]);return isFinite(e)?e:NaN},min:function(r){for(var e=1/0,t=0;t<r.length;t++)r[t]<e&&(e=r[t]);return isFinite(e)?e:NaN},nearest:function(r){return r[0]}},Jw=function(r){return Math.round(r.length/2)};function Gg(r){return{seriesType:r,reset:function(e,t,a){var n=e.getData(),i=e.get("sampling"),o=e.coordinateSystem,s=n.count();if(s>10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),c=a.getDevicePixelRatio(),h=Math.abs(f[1]-f[0])*(c||1),v=Math.round(s/h);if(isFinite(v)&&v>1){i==="lttb"?e.setData(n.lttbDownSample(n.mapDimension(u.dim),1/v)):i==="minmax"&&e.setData(n.minmaxDownSample(n.mapDimension(u.dim),1/v));var d=void 0;Z(i)?d=Qw[i]:Q(i)&&(d=i),d&&e.setData(n.downSample(n.mapDimension(u.dim),1/v,d,Jw))}}}}}function ZD(r){r.registerChartView(qw),r.registerSeriesModel(Rw),r.registerLayout(jw("line")),r.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),a=e.getModel("lineStyle").getLineStyle();a&&!a.stroke&&(a.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",a)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,Gg("line"))}var Cl=(function(r){U(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,a){return wa(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,a,n){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(t),s=i.dataToPoint(o);if(n)T(i.getAxes(),function(h,v){if(h.type==="category"&&a!=null){var d=h.getTicksCoords(),p=h.getTickModel().get("alignWithLabel"),y=o[v],g=a[v]==="x1"||a[v]==="y1";if(g&&!p&&(y+=1),d.length<2)return;if(d.length===2){s[v]=h.toGlobalCoord(h.getExtent()[g?1:0]);return}for(var m=void 0,_=void 0,S=1,b=0;b<d.length;b++){var x=d[b].coord,w=b===d.length-1?d[b-1].tickValue+S:d[b].tickValue;if(w===y){_=x;break}else if(w<y)m=x;else if(m!=null&&w>y){_=(x+m)/2;break}b===1&&(S=w-d[0].tickValue)}_==null&&(m?m&&(_=d[d.length-1].coord):_=d[0].coord),s[v]=h.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),c=i.getBaseAxis().isHorizontal()?0:1;s[c]+=u+f/2}return s}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",defaultBarGap:"10%"},e})(Ne);Ne.registerClass(Cl);var e1=(function(r){U(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(){return wa(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),a=this.get("largeThreshold");return a>t&&(t=a),t},e.prototype.brushSelector=function(t,a,n){return n.rect(a.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=mo(Cl.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:B.color.primary,borderWidth:2}},realtimeSort:!1}),e})(Cl),t1=(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})(),Jc=(function(r){U(e,r);function e(t){var a=r.call(this,t)||this;return a.type="sausage",a}return e.prototype.getDefaultShape=function(){return new t1},e.prototype.buildPath=function(t,a){var n=a.cx,i=a.cy,o=Math.max(a.r0||0,0),s=Math.max(a.r,0),l=(s-o)*.5,u=o+l,f=a.startAngle,c=a.endAngle,h=a.clockwise,v=Math.PI*2,d=h?c-f<v:f-c<v;d||(f=c-(h?v:-v));var p=Math.cos(f),y=Math.sin(f),g=Math.cos(c),m=Math.sin(c);d?(t.moveTo(p*o+n,y*o+i),t.arc(p*u+n,y*u+i,l,-Math.PI+f,f,!h)):t.moveTo(p*s+n,y*s+i),t.arc(n,i,s,f,c,!h),t.arc(g*u+n,m*u+i,l,c-Math.PI*2,c-Math.PI,!h),o!==0&&t.arc(n,i,o,c,f,h)},e})(Be);function r1(r,e){e=e||{};var t=e.isRoundCap;return function(a,n,i){var o=n.position;if(!o||o instanceof Array)return Vs(a,n,i);var s=r(o),l=n.distance!=null?n.distance:5,u=this.shape,f=u.cx,c=u.cy,h=u.r,v=u.r0,d=(h+v)/2,p=u.startAngle,y=u.endAngle,g=(p+y)/2,m=t?Math.abs(h-v)/2:0,_=Math.cos,S=Math.sin,b=f+h*_(p),x=c+h*S(p),w="left",D="top";switch(s){case"startArc":b=f+(v-l)*_(g),x=c+(v-l)*S(g),w="center",D="top";break;case"insideStartArc":b=f+(v+l)*_(g),x=c+(v+l)*S(g),w="center",D="bottom";break;case"startAngle":b=f+d*_(p)+ci(p,l+m,!1),x=c+d*S(p)+vi(p,l+m,!1),w="right",D="middle";break;case"insideStartAngle":b=f+d*_(p)+ci(p,-l+m,!1),x=c+d*S(p)+vi(p,-l+m,!1),w="left",D="middle";break;case"middle":b=f+d*_(g),x=c+d*S(g),w="center",D="middle";break;case"endArc":b=f+(h+l)*_(g),x=c+(h+l)*S(g),w="center",D="bottom";break;case"insideEndArc":b=f+(h-l)*_(g),x=c+(h-l)*S(g),w="center",D="top";break;case"endAngle":b=f+d*_(y)+ci(y,l+m,!0),x=c+d*S(y)+vi(y,l+m,!0),w="left",D="middle";break;case"insideEndAngle":b=f+d*_(y)+ci(y,-l+m,!0),x=c+d*S(y)+vi(y,-l+m,!0),w="right",D="middle";break;default:return Vs(a,n,i)}return a=a||{},a.x=b,a.y=x,a.align=w,a.verticalAlign=D,a}}function a1(r,e,t,a){if(oe(a)){r.setTextConfig({rotation:a});return}else if(N(e)){r.setTextConfig({rotation:0});return}var n=r.shape,i=n.clockwise?n.startAngle:n.endAngle,o=n.clockwise?n.endAngle:n.startAngle,s=(i+o)/2,l,u=t(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=i;break;case"endAngle":case"insideEndAngle":l=o;break;default:r.setTextConfig({rotation:0});return}var f=Math.PI*1.5-l;u==="middle"&&f>Math.PI/2&&f<Math.PI*1.5&&(f-=Math.PI),r.setTextConfig({rotation:f})}function ci(r,e,t){return e*Math.sin(r)*(t?-1:1)}function vi(r,e,t){return e*Math.cos(r)*(t?1:-1)}function $a(r,e,t){var a=r.get("borderRadius");if(a==null)return t?{cornerRadius:0}:null;N(a)||(a=[a,a,a,a]);var n=Math.abs(e.r||0-e.r0||0);return{cornerRadius:X(a,function(i){return ln(i,n)})}}var us=Math.max,fs=Math.min;function n1(r,e){var t=r.getArea&&r.getArea();if(An(r,"cartesian2d")){var a=r.getBaseAxis();if(a.type!=="category"||!a.onBand){var n=e.getLayout("bandWidth");a.isHorizontal()?(t.x-=n,t.width+=n*2):(t.y-=n,t.height+=n*2)}}return t}var i1=(function(r){U(e,r);function e(){var t=r.call(this)||this;return t.type=e.type,t._isFirstFrame=!0,t}return e.prototype.render=function(t,a,n,i){this._model=t,this._removeOnRenderedListener(n),this._updateDrawMode(t);var o=t.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,a,n):this._renderNormal(t,a,n,i))},e.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},e.prototype.incrementalRender=function(t,a){this._progressiveEls=[],this._incrementalRenderLarge(t,a)},e.prototype.eachRendered=function(t){Or(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var a=t.pipelineContext.large;(this._isLargeDraw==null||a!==this._isLargeDraw)&&(this._isLargeDraw=a,this._clear())},e.prototype._renderNormal=function(t,a,n,i){var o=this.group,s=t.getData(),l=this._data,u=t.coordinateSystem,f=u.getBaseAxis(),c;u.type==="cartesian2d"?c=f.isHorizontal():u.type==="polar"&&(c=f.dim==="angle");var h=t.isAnimationEnabled()?t:null,v=o1(t,u);v&&this._enableRealtimeSort(v,s,n);var d=t.get("clip",!0)||v,p=n1(u,s);o.removeClipPath();var y=t.get("roundCap",!0),g=t.get("showBackground",!0),m=t.getModel("backgroundStyle"),_=m.get("borderRadius")||0,S=[],b=this._backgroundEls,x=i&&i.isInitSort,w=i&&i.type==="changeAxisOrder";function D(C){var I=hi[u.type](s,C);if(!I)return null;var L=h1(u,c,I);return L.useStyle(m.getItemStyle()),u.type==="cartesian2d"?L.setShape("r",_):L.setShape("cornerRadius",_),S[C]=L,L}s.diff(l).add(function(C){var I=s.getItemModel(C),L=hi[u.type](s,C,I);if(L&&(g&&D(C),!(!s.hasValue(C)||!nv[u.type](L)))){var E=!1;d&&(E=ev[u.type](p,L));var k=tv[u.type](t,s,C,L,c,h,f.model,!1,y);v&&(k.forceLabelAnimation=!0),iv(k,s,C,I,L,t,c,u.type==="polar"),x?k.attr({shape:L}):v?rv(v,h,k,L,C,c,!1,!1):Pe(k,{shape:L},t,C),s.setItemGraphicEl(C,k),o.add(k),k.ignore=E}}).update(function(C,I){var L=s.getItemModel(C),E=hi[u.type](s,C,L);if(E){if(g){var k=void 0;b.length===0?k=D(I):(k=b[I],k.useStyle(m.getItemStyle()),u.type==="cartesian2d"?k.setShape("r",_):k.setShape("cornerRadius",_),S[C]=k);var P=hi[u.type](s,C),V=Hg(c,P,u);Se(k,{shape:V},h,C)}var R=l.getItemGraphicEl(I);if(!s.hasValue(C)||!nv[u.type](E)){o.remove(R);return}var O=!1;d&&(O=ev[u.type](p,E),O&&o.remove(R));var z=R&&(R.type==="sector"&&y||R.type==="sausage"&&!y);if(z&&(R&&en(R,t,I),R=null),R?pn(R):R=tv[u.type](t,s,C,E,c,h,f.model,!0,y),v&&(R.forceLabelAnimation=!0),w){var H=R.getTextContent();if(H){var Y=xa(H);Y.prevValue!=null&&(Y.prevValue=Y.value)}}else iv(R,s,C,L,E,t,c,u.type==="polar");x?R.attr({shape:E}):v?rv(v,h,R,E,C,c,!0,w):Se(R,{shape:E},t,C,null),s.setItemGraphicEl(C,R),R.ignore=O,o.add(R)}}).remove(function(C){var I=l.getItemGraphicEl(C);I&&en(I,t,C)}).execute();var M=this._backgroundGroup||(this._backgroundGroup=new le);M.removeAll();for(var A=0;A<S.length;++A)M.add(S[A]);o.add(M),this._backgroundEls=S,this._data=s},e.prototype._renderLarge=function(t,a,n){this._clear(),sv(t,this.group),this._updateLargeClip(t)},e.prototype._incrementalRenderLarge=function(t,a){this._removeBackground(),sv(a,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(t){var a=t.get("clip",!0)&&Vg(t.coordinateSystem,!1,t),n=this.group;a?n.setClipPath(a):n.removeClipPath()},e.prototype._enableRealtimeSort=function(t,a,n){var i=this;if(a.count()){var o=t.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(a,t,n),this._isFirstFrame=!1;else{var s=function(l){var u=a.getItemGraphicEl(l),f=u&&u.shape;return f&&Math.abs(o.isHorizontal()?f.height:f.width)||0};this._onRendered=function(){i._updateSortWithinSameData(a,s,o,n)},n.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(t,a,n){var i=[];return t.each(t.mapDimension(a.dim),function(o,s){var l=n(s);l=l??NaN,i.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),i.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:X(i,function(o){return o.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(t,a,n){for(var i=n.scale,o=t.mapDimension(n.dim),s=Number.MAX_VALUE,l=0,u=i.getOrdinalMeta().categories.length;l<u;++l){var f=t.rawIndexOf(o,i.getRawOrdinalNumber(l)),c=f<0?Number.MIN_VALUE:a(t.indexOfRawIndex(f));if(c>s)return!0;s=c}return!1},e.prototype._isOrderDifferentInView=function(t,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(t.ordinalNumbers[o]!==n.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(t,a,n,i){if(this._isOrderChangedWithinSameData(t,a,n)){var o=this._dataSort(t,n,a);this._isOrderDifferentInView(o,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(t,a,n){var i=a.baseAxis,o=this._dataSort(t,i,function(s){return t.get(t.mapDimension(a.otherAxis.dim),s)});n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},e.prototype.remove=function(t,a){this._clear(this._model),this._removeOnRenderedListener(a)},e.prototype.dispose=function(t,a){this._removeOnRenderedListener(a)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var a=this.group,n=this._data;t&&t.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(i){en(i,t,te(i).dataIndex)})):a.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e})(Re),ev={cartesian2d:function(r,e){var t=e.width<0?-1:1,a=e.height<0?-1:1;t<0&&(e.x+=e.width,e.width=-e.width),a<0&&(e.y+=e.height,e.height=-e.height);var n=r.x+r.width,i=r.y+r.height,o=us(e.x,r.x),s=fs(e.x+e.width,n),l=us(e.y,r.y),u=fs(e.y+e.height,i),f=s<o,c=u<l;return e.x=f&&o>n?s:o,e.y=c&&l>i?u:l,e.width=f?0:s-o,e.height=c?0:u-l,t<0&&(e.x+=e.width,e.width=-e.width),a<0&&(e.y+=e.height,e.height=-e.height),f||c},polar:function(r,e){var t=e.r0<=e.r?1:-1;if(t<0){var a=e.r;e.r=e.r0,e.r0=a}var n=fs(e.r,r.r),i=us(e.r0,r.r0);e.r=n,e.r0=i;var o=n-i<0;if(t<0){var a=e.r;e.r=e.r0,e.r0=a}return o}},tv={cartesian2d:function(r,e,t,a,n,i,o,s,l){var u=new ve({shape:F({},a),z2:1});if(u.__dataIndex=t,u.name="item",i){var f=u.shape,c=n?"height":"width";f[c]=0}return u},polar:function(r,e,t,a,n,i,o,s,l){var u=!n&&l?Jc:kr,f=new u({shape:a,z2:1});f.name="item";var c=Fg(n);if(f.calculateTextPosition=r1(c,{isRoundCap:u===Jc}),i){var h=f.shape,v=n?"r":"endAngle",d={};h[v]=n?a.r0:a.startAngle,d[v]=a[v],(s?Se:Pe)(f,{shape:d},i)}return f}};function o1(r,e){var t=r.get("realtimeSort",!0),a=e.getBaseAxis();if(t&&a.type==="category"&&e.type==="cartesian2d")return{baseAxis:a,otherAxis:e.getOtherAxis(a)}}function rv(r,e,t,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?Se:Pe)(t,{shape:l},e,n,null);var f=e?r.baseAxis.model:null;(o?Se:Pe)(t,{shape:u},f,n)}function av(r,e){for(var t=0;t<e.length;t++)if(!isFinite(r[e[t]]))return!0;return!1}var s1=["x","y","width","height"],l1=["cx","cy","r","startAngle","endAngle"],nv={cartesian2d:function(r){return!av(r,s1)},polar:function(r){return!av(r,l1)}},hi={cartesian2d:function(r,e,t){var a=r.getItemLayout(e);if(!a)return null;var n=t?f1(t,a):0,i=a.width>0?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,e,t){var a=r.getItemLayout(e);return{cx:a.cx,cy:a.cy,r0:a.r0,r:a.r,startAngle:a.startAngle,endAngle:a.endAngle,clockwise:a.clockwise}}};function u1(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function Fg(r){return(function(e){var t=e?"Arc":"Angle";return function(a){switch(a){case"start":case"insideStart":case"end":case"insideEnd":return a+t;default:return a}}})(r)}function iv(r,e,t,a,n,i,o,s){var l=e.getItemVisual(t,"style");if(s){if(!i.get("roundCap")){var f=r.shape,c=$a(a.getModel("itemStyle"),f,!0);F(f,c),r.setShape(f)}}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=Mt(a);ur(r,d,{labelFetcher:i,labelDataIndex:t,defaultText:Dn(i.getData(),t),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:v});var p=r.getTextContent();if(s&&p){var y=a.get(["label","position"]);r.textConfig.inside=y==="middle"?!0:null,a1(r,y==="outside"?v:y,Fg(o),a.get(["label","rotate"]))}Y0(p,d,i.getRawValue(t),function(m){return kg(e,m)});var g=a.getModel(["emphasis"]);Vt(r,g.get("focus"),g.get("blurScope"),g.get("disabled")),da(r,a),u1(n)&&(r.style.fill="none",r.style.stroke="none",T(r.states,function(m){m.style&&(m.style.fill=m.style.stroke="none")}))}function f1(r,e){var t=r.get(["itemStyle","borderColor"]);if(!t||t==="none")return 0;var a=r.get(["itemStyle","borderWidth"])||0,n=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),i=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(a,n,i)}var c1=(function(){function r(){}return r})(),ov=(function(r){U(e,r);function e(t){var a=r.call(this,t)||this;return a.type="largeBar",a}return e.prototype.getDefaultShape=function(){return new c1},e.prototype.buildPath=function(t,a){for(var n=a.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f<n.length;f+=3)l[i]=u,l[o]=n[f+2],s[i]=n[f+i],s[o]=n[f+o],t.rect(s[0],s[1],l[0],l[1])},e})(Be);function sv(r,e,t,a){var n=r.getData(),i=n.getLayout("valueAxisHorizontal")?1:0,o=n.getLayout("largeDataIndices"),s=n.getLayout("size"),l=r.getModel("backgroundStyle"),u=n.getLayout("largeBackgroundPoints");if(u){var f=new ov({shape:{points:u},incremental:!!a,silent:!0,z2:0});f.baseDimIdx=i,f.largeDataIndices=o,f.barWidth=s,f.useStyle(l.getItemStyle()),e.add(f),t&&t.push(f)}var c=new ov({shape:{points:n.getLayout("largePoints")},incremental:!!a,ignoreCoarsePointer:!0,z2:1});c.baseDimIdx=i,c.largeDataIndices=o,c.barWidth=s,e.add(c),c.useStyle(n.getVisual("style")),c.style.stroke=null,te(c).seriesIndex=r.seriesIndex,r.get("silent")||(c.on("mousedown",lv),c.on("mousemove",lv)),t&&t.push(c)}var lv=Au(function(r){var e=this,t=v1(e,r.offsetX,r.offsetY);te(e).dataIndex=t>=0?t:null},30,!1);function v1(r,e,t){for(var a=r.baseDimIdx,n=1-a,i=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,f=0,c=i.length/3;f<c;f++){var h=f*3;if(l[a]=u,l[n]=i[h+2],s[a]=i[h+a],s[n]=i[h+n],l[n]<0&&(s[n]+=l[n],l[n]=-l[n]),e>=s[0]&&e<=s[0]+l[0]&&t>=s[1]&&t<=s[1]+l[1])return o[f]}return-1}function Hg(r,e,t){if(An(t,"cartesian2d")){var a=e,n=t.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=t.getArea(),i=e;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 h1(r,e,t){var a=r.type==="polar"?kr:ve;return new a({shape:Hg(e,t,r),silent:!0,z2:0})}function $D(r){r.registerChartView(i1),r.registerSeriesModel(e1),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,ye(Eb,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Ob("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,Gg("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){var a=e.componentType||"series";t.eachComponent({mainType:a,query:e},function(n){e.sortInfo&&n.axis.setCategorySortInfo(e.sortInfo)})})}var uv=Math.PI*2,di=Math.PI/180;function d1(r,e,t){e.eachSeriesByType(r,function(a){var n=a.getData(),i=n.mapDimension("value"),o=M_(a,t),s=o.cx,l=o.cy,u=o.r,f=o.r0,c=o.viewRect,h=-a.get("startAngle")*di,v=a.get("endAngle"),d=a.get("padAngle")*di;v=v==="auto"?h-uv:-v*di;var p=a.get("minAngle")*di,y=p+d,g=0;n.each(i,function(V){!isNaN(V)&&g++});var m=n.getSum(i),_=Math.PI/(m||g)*2,S=a.get("clockwise"),b=a.get("roseType"),x=a.get("stillShowZeroSum"),w=n.getDataExtent(i);w[0]=0;var D=S?1:-1,M=[h,v],A=D*d/2;hm(M,!S),h=M[0],v=M[1];var C=Wg(a);C.startAngle=h,C.endAngle=v,C.clockwise=S,C.cx=s,C.cy=l,C.r=u,C.r0=f;var I=Math.abs(v-h),L=I,E=0,k=h;if(n.setLayout({viewRect:c,r:u}),n.each(i,function(V,R){var O;if(isNaN(V)){n.setItemLayout(R,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:S,cx:s,cy:l,r0:f,r:b?NaN:u});return}b!=="area"?O=m===0&&x?_:V*_:O=I/g,O<y?(O=y,L-=y):E+=V;var z=k+D*O,H=0,Y=0;d>O?(H=k+D*O/2,Y=H):(H=k+A,Y=z-A),n.setItemLayout(R,{angle:O,startAngle:H,endAngle:Y,clockwise:S,cx:s,cy:l,r0:f,r:b?it(V,w,[f,u]):u}),k=z}),L<uv&&g)if(L<=.001){var P=I/g;n.each(i,function(V,R){if(!isNaN(V)){var O=n.getItemLayout(R);O.angle=P;var z=0,H=0;P<d?(z=h+D*(R+1/2)*P,H=z):(z=h+D*R*P+A,H=h+D*(R+1)*P-A),O.startAngle=z,O.endAngle=H}})}else _=L/E,k=h,n.each(i,function(V,R){if(!isNaN(V)){var O=n.getItemLayout(R),z=O.angle===y?y:V*_,H=0,Y=0;z<d?(H=k+D*z/2,Y=H):(H=k+A,Y=k+D*z-A),O.startAngle=H,O.endAngle=Y,k+=D*z}})})}var Wg=ne();function Ug(r){return{seriesType:r,reset:function(e,t){var a=t.findComponents({mainType:"legend"});if(!(!a||!a.length)){var n=e.getData();n.filterSelf(function(i){for(var o=n.getName(i),s=0;s<a.length;s++)if(!a[s].isSelected(o))return!1;return!0})}}}}var p1=Math.PI/180;function fv(r,e,t,a,n,i,o,s,l,u){if(r.length<2)return;function f(p){for(var y=p.rB,g=y*y,m=0;m<p.list.length;m++){var _=p.list[m],S=Math.abs(_.label.y-t),b=a+_.len,x=b*b,w=Math.sqrt(Math.abs((1-S*S/g)*x)),D=e+(w+_.len2)*n,M=D-_.label.x,A=_.targetTextWidth-M*n;Yg(_,A,!0),_.label.x=D}}function c(p){for(var y={list:[],maxY:0},g={list:[],maxY:0},m=0;m<p.length;m++)if(p[m].labelAlignTo==="none"){var _=p[m],S=_.label.y>t?g:y,b=Math.abs(_.label.y-t);if(b>=S.maxY){var x=_.label.x-e-_.len2*n,w=a+_.len,D=Math.abs(x)<w?Math.sqrt(b*b/(1-x*x/w/w)):w;S.rB=D,S.maxY=b}S.list.push(_)}f(y),f(g)}for(var h=r.length,v=0;v<h;v++)if(r[v].position==="outer"&&r[v].labelAlignTo==="labelLine"){var d=r[v].label.x-u;r[v].linePoints[1][0]+=d,r[v].label.x=u}wl(r,1,l,l+o)&&c(r)}function g1(r,e,t,a,n,i,o,s){for(var l=[],u=[],f=Number.MAX_VALUE,c=-Number.MAX_VALUE,h=0;h<r.length;h++){var v=r[h].label;cs(r[h])||(v.x<e?(f=Math.min(f,v.x),l.push(r[h])):(c=Math.max(c,v.x),u.push(r[h])))}for(var h=0;h<r.length;h++){var d=r[h];if(!cs(d)&&d.linePoints){if(d.labelStyleWidth!=null)continue;var v=d.label,p=d.linePoints,y=void 0;d.labelAlignTo==="edge"?v.x<e?y=p[2][0]-d.labelDistance-o-d.edgeDistance:y=o+n-d.edgeDistance-p[2][0]-d.labelDistance:d.labelAlignTo==="labelLine"?v.x<e?y=f-o-d.bleedMargin:y=o+n-c-d.bleedMargin:v.x<e?y=v.x-o-d.bleedMargin:y=o+n-v.x-d.bleedMargin,d.targetTextWidth=y,Yg(d,y,!1)}}fv(u,e,t,a,1,n,i,o,s,c),fv(l,e,t,a,-1,n,i,o,s,f);for(var h=0;h<r.length;h++){var d=r[h];if(!cs(d)&&d.linePoints){var v=d.label,p=d.linePoints,g=d.labelAlignTo==="edge",m=v.style.padding,_=m?m[1]+m[3]:0,S=v.style.backgroundColor?0:_,b=d.rect.width+S,x=p[1][0]-p[2][0];g?v.x<e?p[2][0]=o+d.edgeDistance+b+d.labelDistance:p[2][0]=o+n-d.edgeDistance-b-d.labelDistance:(v.x<e?p[2][0]=v.x+d.labelDistance:p[2][0]=v.x-d.labelDistance,p[1][0]=p[2][0]+x),p[1][1]=p[2][1]=v.y}}}function Yg(r,e,t){if(r.labelStyleWidth==null){var a=r.label,n=a.style,i=r.rect,o=n.backgroundColor,s=n.padding,l=s?s[1]+s[3]:0,u=n.overflow,f=i.width+(o?0:l);if(e<f||t){if(u&&u.match("break")){a.setStyle("backgroundColor",null),a.setStyle("width",e-l);var c=a.getBoundingRect();a.setStyle("width",Math.ceil(c.width)),a.setStyle("backgroundColor",o)}else{var h=e-l,v=e<f?h:t?h>r.unconstrainedWidth?null:h:null;a.setStyle("width",v)}Xg(i,a)}}}function Xg(r,e){cv.rect=r,Lg(cv,e,y1)}var y1={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},cv={};function cs(r){return r.position==="center"}function m1(r){var e=r.getData(),t=[],a,n,i=!1,o=(r.get("minShowLabelAngle")||0)*p1,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,f=s.x,c=s.y,h=s.height;function v(x){x.ignore=!0}function d(x){if(!x.ignore)return!0;for(var w in x.states)if(x.states[w].ignore===!1)return!0;return!1}e.each(function(x){var w=e.getItemGraphicEl(x),D=w.shape,M=w.getTextContent(),A=w.getTextGuideLine(),C=e.getItemModel(x),I=C.getModel("label"),L=I.get("position")||C.get(["emphasis","label","position"]),E=I.get("distanceToLabelLine"),k=I.get("alignTo"),P=re(I.get("edgeDistance"),u),V=I.get("bleedMargin");V==null&&(V=Math.min(u,h)>200?10:2);var R=C.getModel("labelLine"),O=R.get("length");O=re(O,u);var z=R.get("length2");if(z=re(z,u),Math.abs(D.endAngle-D.startAngle)<o){T(M.states,v),M.ignore=!0,A&&(T(A.states,v),A.ignore=!0);return}if(d(M)){var H=(D.startAngle+D.endAngle)/2,Y=Math.cos(H),J=Math.sin(H),pe,we,Ht,Gr;a=D.cx,n=D.cy;var Wt=L==="inside"||L==="inner";if(L==="center")pe=D.cx,we=D.cy,Gr="center";else{var Ta=(Wt?(D.r+D.r0)/2*Y:D.r*Y)+a,Ca=(Wt?(D.r+D.r0)/2*J:D.r*J)+n;if(pe=Ta+Y*3,we=Ca+J*3,!Wt){var Un=Ta+Y*(O+l-D.r),Yn=Ca+J*(O+l-D.r),Xn=Un+(Y<0?-1:1)*z,cr=Yn;k==="edge"?pe=Y<0?f+P:f+u-P:pe=Xn+(Y<0?-E:E),we=cr,Ht=[[Ta,Ca],[Un,Yn],[Xn,cr]]}Gr=Wt?"center":k==="edge"?Y>0?"right":"left":Y>0?"left":"right"}var Ut=Math.PI,Dt=0,Ma=I.get("rotate");if(oe(Ma))Dt=Ma*(Ut/180);else if(L==="center")Dt=0;else if(Ma==="radial"||Ma===!0){var Xy=Y<0?-H+Ut:-H;Dt=Xy}else if(Ma==="tangential"&&L!=="outside"&&L!=="outer"){var Fr=Math.atan2(Y,J);Fr<0&&(Fr=Ut*2+Fr);var Zy=J>0;Zy&&(Fr=Ut+Fr),Dt=Fr-Ut}if(i=!!Dt,M.x=pe,M.y=we,M.rotation=Dt,M.setStyle({verticalAlign:"middle"}),Wt){M.setStyle({align:Gr});var Lo=M.states.select;Lo&&(Lo.x+=M.x,Lo.y+=M.y)}else{var Ao=new Me(0,0,0,0);Xg(Ao,M),t.push({label:M,labelLine:A,position:L,len:O,len2:z,minTurnAngle:R.get("minTurnAngle"),maxSurfaceAngle:R.get("maxSurfaceAngle"),surfaceNormal:new ge(Y,J),linePoints:Ht,textAlign:Gr,labelDistance:E,labelAlignTo:k,edgeDistance:P,bleedMargin:V,rect:Ao,unconstrainedWidth:Ao.width,labelStyleWidth:M.style.width})}w.setTextConfig({inside:Wt})}}),!i&&r.get("avoidLabelOverlap")&&g1(t,a,n,l,u,h,f,c);for(var p=0;p<t.length;p++){var y=t[p],g=y.label,m=y.labelLine,_=isNaN(g.x)||isNaN(g.y);if(g){g.setStyle({align:y.textAlign}),_&&(T(g.states,v),g.ignore=!0);var S=g.states.select;S&&(S.x+=g.x,S.y+=g.y)}if(m){var b=y.linePoints;_||!b?(T(m.states,v),m.ignore=!0):(Tg(b,y.minTurnAngle),xw(b,y.surfaceNormal,y.maxSurfaceAngle),m.setShape({points:b}),g.__hostTarget.textGuideLineConfig={anchor:new ge(b[0][0],b[0][1])})}}}var _1=(function(r){U(e,r);function e(t,a,n){var i=r.call(this)||this;i.z2=2;var o=new de;return i.setTextContent(o),i.updateData(t,a,n,!0),i}return e.prototype.updateData=function(t,a,n,i){var o=this,s=t.hostModel,l=t.getItemModel(a),u=l.getModel("emphasis"),f=t.getItemLayout(a),c=F($a(l.getModel("itemStyle"),f,!0),f);if(isNaN(c.startAngle)){o.setShape(c);return}if(i){o.setShape(c);var h=s.getShallow("animationType");s.ecModel.ssr?(Pe(o,{scaleX:0,scaleY:0},s,{dataIndex:a,isFrom:!0}),o.originX=c.cx,o.originY=c.cy):h==="scale"?(o.shape.r=f.r0,Pe(o,{shape:{r:f.r}},s,a)):n!=null?(o.setShape({startAngle:n,endAngle:n}),Pe(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,a)):(o.shape.endAngle=f.startAngle,Se(o,{shape:{endAngle:f.endAngle}},s,a))}else pn(o),Se(o,{shape:c},s,a);o.useStyle(t.getItemVisual(a,"style")),da(o,l);var v=(f.startAngle+f.endAngle)/2,d=s.get("selectedOffset"),p=Math.cos(v)*d,y=Math.sin(v)*d,g=l.getShallow("cursor");g&&o.attr("cursor",g),this._updateLabel(s,t,a),o.ensureState("emphasis").shape=F({r:f.r+(u.get("scale")&&u.get("scaleSize")||0)},$a(u.getModel("itemStyle"),f)),F(o.ensureState("select"),{x:p,y,shape:$a(l.getModel(["select","itemStyle"]),f)}),F(o.ensureState("blur"),{shape:$a(l.getModel(["blur","itemStyle"]),f)});var m=o.getTextGuideLine(),_=o.getTextContent();m&&F(m.ensureState("select"),{x:p,y}),F(_.ensureState("select"),{x:p,y}),Vt(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,a,n){var i=this,o=a.getItemModel(n),s=o.getModel("labelLine"),l=a.getItemVisual(n,"style"),u=l&&l.fill,f=l&&l.opacity;ur(i,Mt(o),{labelFetcher:a.hostModel,labelDataIndex:n,inheritColor:u,defaultOpacity:f,defaultText:t.getFormattedLabel(n,"normal")||a.getName(n)});var c=i.getTextContent();i.setTextConfig({position:null,rotation:null}),c.attr({z2:10});var h=o.get(["label","position"]);if(h!=="outside"&&h!=="outer")i.removeTextGuideLine();else{var v=this.getTextGuideLine();v||(v=new Pr,this.setTextGuideLine(v)),Cg(this,Mg(o),{stroke:u,opacity:Rr(s.get(["lineStyle","opacity"]),f,1)})}},e})(kr),S1=(function(r){U(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,a,n,i){var o=t.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var f=o.getItemLayout(0),c=1;isNaN(f&&f.startAngle)&&c<o.count();++c)f=o.getItemLayout(c);f&&(u=f.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&t.get("showEmptyCircle")){var h=Wg(t),v=new kr({shape:q(h)});v.useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=v,l.add(v)}o.diff(s).add(function(d){var p=new _1(o,d,u);o.setItemGraphicEl(d,p),l.add(p)}).update(function(d,p){var y=s.getItemGraphicEl(p);y.updateData(o,d,u),y.off("click"),l.add(y),o.setItemGraphicEl(d,y)}).remove(function(d){var p=s.getItemGraphicEl(d);en(p,t,d)}).execute(),m1(t),t.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(t,a){var n=a.getData(),i=n.getItemLayout(0);if(i){var o=t[0]-i.cx,s=t[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},e.type="pie",e})(Re);function Zg(r,e,t){e=N(e)&&{coordDimensions:e}||F({encodeDefine:r.getEncode()},e);var a=r.getSource(),n=Co(a,e).dimensions,i=new Tn(n,r);return i.initData(a,t),i}var Gu=(function(){function r(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return r.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},r.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},r.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},r.prototype.getItemVisual=function(e,t){var a=this._getDataWithEncodedVisual();return a.getItemVisual(e,t)},r})(),x1=ne(),$g=(function(r){U(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Gu($(this.getData,this),$(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return Zg(this,{coordDimensions:["value"],encodeDefaulter:ye(B_,this)})},e.prototype.getDataParams=function(t){var a=this.getData(),n=x1(a),i=n.seats;if(!i){var o=[];a.each(a.mapDimension("value"),function(l){o.push(l)}),i=n.seats=km(o,a.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,t);return s.percent=i[t]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(t){Bi(t,"labelLine",["show"]);var a=t.labelLine,n=t.emphasis.labelLine;a.show=a.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"50%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:"box",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%",distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e})(Ne);__({fullType:$g.type,getCoord2:function(r){return r.getShallow("center")}});function b1(r){return{seriesType:r,reset:function(e,t){var a=e.getData();a.filterSelf(function(n){var i=a.mapDimension("value"),o=a.get(i,n);return!(oe(o)&&!isNaN(o)&&o<0)})}}}function KD(r){r.registerChartView(S1),r.registerSeriesModel($g),gx("pie",r.registerAction),r.registerLayout(ye(d1,"pie")),r.registerProcessor(Ug("pie")),r.registerProcessor(b1("pie"))}var Kg={left:0,right:0,top:0,bottom:0},ao=["25%","25%"],w1=(function(r){U(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.mergeDefaultAndTheme=function(t,a){var n=ba(t.outerBounds);r.prototype.mergeDefaultAndTheme.apply(this,arguments),n&&t.outerBounds&&zt(t.outerBounds,n)},e.prototype.mergeOption=function(t,a){r.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&t.outerBounds&&zt(this.option.outerBounds,t.outerBounds)},e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:Kg,outerBoundsContain:"all",outerBoundsClampWidth:ao[0],outerBoundsClampHeight:ao[1],backgroundColor:B.color.transparent,borderWidth:1,borderColor:B.color.neutral30},e})(ie),Ml=(function(r){U(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Ze).models[0]},e.type="cartesian2dAxis",e})(ie);gt(Ml,dg);var qg={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:B.color.axisLine,width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15],breakLine:!0},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,color:B.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:B.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[B.color.backgroundTint,B.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:B.color.neutral00,borderColor:B.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},T1=ue({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},qg),Fu=ue({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:B.color.axisMinorSplitLine,width:1}}},qg),C1=ue({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Fu),M1=ae({logBase:10},Fu);const jg={category:T1,value:Fu,time:C1,log:M1};var D1={value:1,category:1,time:1,log:1},A1=null;function L1(){return A1}function vv(r,e,t,a){T(D1,function(n,i){var o=ue(ue({},jg[i],!0),a,!0),s=(function(l){U(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=e+"Axis."+i,f}return u.prototype.mergeDefaultAndTheme=function(f,c){var h=xn(this),v=h?ba(f):{},d=c.getTheme();ue(f,d.get(i+"Axis")),ue(f,this.getDefaultOption()),f.type=hv(f),h&&zt(f,v,h)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=ml.createByAxisModel(this))},u.prototype.getCategories=function(f){var c=this.option;if(c.type==="category")return f?c.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.prototype.updateAxisBreaks=function(f){return{breaks:[]}},u.type=e+"Axis."+i,u.defaultOption=o,u})(t);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(e+"Axis",hv)}function hv(r){return r.type||(r.data?"category":"value")}var I1=(function(){function r(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return r.prototype.getAxis=function(e){return this._axes[e]},r.prototype.getAxes=function(){return X(this._dimList,function(e){return this._axes[e]},this)},r.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),Ce(this.getAxes(),function(t){return t.scale.type===e})},r.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},r})(),Dl=["x","y"];function dv(r){return(r.type==="interval"||r.type==="time")&&!r.hasBreaks()}var k1=(function(r){U(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=Dl,t}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,a=this.getAxis("y").scale;if(!(!dv(t)||!dv(a))){var n=t.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 f=(s[0]-o[0])/l,c=(s[1]-o[1])/u,h=o[0]-n[0]*f,v=o[1]-i[0]*c,d=this._transform=[f,0,0,c,h,v];this._invTransform=En([],d)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var a=this.getAxis("x"),n=this.getAxis("y");return a.contain(a.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,a){var n=this.dataToPoint(t),i=this.dataToPoint(a),o=this.getArea(),s=new Me(n[0],n[1],i[0]-n[0],i[1]-n[1]);return o.intersect(s)},e.prototype.dataToPoint=function(t,a,n){n=n||[];var i=t[0],o=t[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return Ct(n,t,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},e.prototype.clampData=function(t,a){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,o=n.getExtent(),s=i.getExtent(),l=n.parse(t[0]),u=i.parse(t[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},e.prototype.pointToData=function(t,a,n){if(n=n||[],this._invTransform)return Ct(n,t,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(t[0]),a),n[1]=o.coordToData(o.toLocalCoord(t[1]),a),n},e.prototype.getOtherAxis=function(t){return this.getAxis(t.dim==="x"?"y":"x")},e.prototype.getArea=function(t){t=t||0;var a=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(a[0],a[1])-t,o=Math.min(n[0],n[1])-t,s=Math.max(a[0],a[1])-i+t,l=Math.max(n[0],n[1])-o+t;return new Me(i,o,s,l)},e})(I1),P1=(function(r){U(e,r);function e(t,a,n,i,o){var s=r.call(this,t,a,n)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.getGlobalExtent=function(t){var a=this.getExtent();return a[0]=this.toGlobalCoord(a[0]),a[1]=this.toGlobalCoord(a[1]),t&&a[0]>a[1]&&a.reverse(),a},e.prototype.pointToData=function(t,a){return this.coordToData(this.toLocalCoord(t[this.dim==="x"?0:1]),a)},e.prototype.setCategorySortInfo=function(t){if(this.type!=="category")return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e})(bg),R1="expandAxisBreak",er=Math.PI,E1=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],O1=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],Ln=ne(),Qg=ne(),Jg=(function(){function r(e){this.recordMap={},this.resolveAxisNameOverlap=e}return r.prototype.ensureRecord=function(e){var t=e.axis.dim,a=e.componentIndex,n=this.recordMap,i=n[t]||(n[t]=[]);return i[a]||(i[a]={ready:{}})},r})();function N1(r,e,t,a){var n=t.axis,i=e.ensureRecord(t),o=[],s,l=Hu(r.axisName)&&ma(r.nameLocation);T(a,function(d){var p=sr(d);if(!(!p||p.label.ignore)){o.push(p);var y=i.transGroup;l&&(y.transform?En(Ba,y.transform):Nh(Ba),p.transform&&Bh(Ba,Ba,p.transform),Me.copy(pi,p.localRect),pi.applyTransform(Ba),s?s.union(pi):Me.copy(s=new Me(0,0,0,0),pi))}});var u=Math.abs(i.dirVec.x)>.1?"x":"y",f=i.transGroup[u];if(o.sort(function(d,p){return Math.abs(d.label[u]-f)-Math.abs(p.label[u]-f)}),l&&s){var c=n.getExtent(),h=Math.min(c[0],c[1]),v=Math.max(c[0],c[1])-h;s.union(new Me(h,0,v,1))}i.stOccupiedRect=s,i.labelInfoList=o}var Ba=On(),pi=new Me(0,0,0,0),ey=function(r,e,t,a,n,i){if(ma(r.nameLocation)){var o=i.stOccupiedRect;o&&ty(Tw({},o,i.transGroup.transform),a,n)}else ry(i.labelInfoList,i.dirVec,a,n)};function ty(r,e,t){var a=new ge;Vu(r,e,a,{direction:Math.atan2(t.y,t.x),bidirectional:!1,touchThreshold:.05})&&Cw(e,a)}function ry(r,e,t,a){for(var n=ge.dot(a,e)>=0,i=0,o=r.length;i<o;i++){var s=r[n?i:o-1-i];s.label.ignore||ty(s,t,a)}}var Ot=(function(){function r(e,t,a,n){this.group=new le,this._axisModel=e,this._api=t,this._local={},this._shared=n||new Jg(ey),this._resetCfgDetermined(a)}return r.prototype.updateCfg=function(e){var t=this._cfg.raw;t.position=e.position,t.labelOffset=e.labelOffset,this._resetCfgDetermined(t)},r.prototype.__getRawCfg=function(){return this._cfg.raw},r.prototype._resetCfgDetermined=function(e){var t=this._axisModel,a=t.getDefaultOption?t.getDefaultOption():{},n=j(e.axisName,t.get("name")),i=t.get("nameMoveOverlap");(i==null||i==="auto")&&(i=j(e.defaultNameMoveOverlap,!0));var o={raw:e,position:e.position,rotation:e.rotation,nameDirection:j(e.nameDirection,1),tickDirection:j(e.tickDirection,1),labelDirection:j(e.labelDirection,1),labelOffset:j(e.labelOffset,0),silent:j(e.silent,!0),axisName:n,nameLocation:Rr(t.get("nameLocation"),a.nameLocation,"end"),shouldNameMoveOverlap:Hu(n)&&i,optionHideOverlap:t.get(["axisLabel","hideOverlap"]),showMinorTicks:t.get(["minorTick","show"])};this._cfg=o;var s=new le({x:o.position[0],y:o.position[1],rotation:o.rotation});s.updateTransform(),this._transformGroup=s;var l=this._shared.ensureRecord(t);l.transGroup=this._transformGroup,l.dirVec=new ge(Math.cos(-o.rotation),Math.sin(-o.rotation))},r.prototype.build=function(e,t){var a=this;return e||(e={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),T(B1,function(n){e[n]&&V1[n](a._cfg,a._local,a._shared,a._axisModel,a.group,a._transformGroup,a._api,t||{})}),this},r.innerTextLayout=function(e,t,a){var n=jh(t-e),i,o;return Oi(n)?(o=a>0?"top":"bottom",i="center"):Oi(n-er)?(o=a>0?"bottom":"top",i="center"):(o="middle",n>0&&n<er?i=a>0?"right":"left":i=a>0?"left":"right"),{rotation:n,textAlign:i,textVerticalAlign:o}},r.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},r.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},r})(),B1=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],V1={axisLine:function(r,e,t,a,n,i,o){var s=a.get(["axisLine","show"]);if(s==="auto"&&(s=!0,r.raw.axisLineAutoShow!=null&&(s=!!r.raw.axisLineAutoShow)),!!s){var l=a.axis.getExtent(),u=i.transform,f=[l[0],0],c=[l[1],0],h=f[0]>c[0];u&&(Ct(f,f,u),Ct(c,c,u));var v=F({lineCap:"round"},a.getModel(["axisLine","lineStyle"]).getLineStyle()),d={strokeContainThreshold:r.raw.strokeContainThreshold||5,silent:!0,z2:1,style:v};if(a.get(["axisLine","breakLine"])&&a.axis.scale.hasBreaks())L1().buildAxisBreakLine(a,n,i,d);else{var p=new nr(F({shape:{x1:f[0],y1:f[1],x2:c[0],y2:c[1]}},d));yn(p.shape,p.style.lineWidth),p.anid="line",n.add(p)}var y=a.get(["axisLine","symbol"]);if(y!=null){var g=a.get(["axisLine","symbolSize"]);Z(y)&&(y=[y,y]),(Z(g)||oe(g))&&(g=[g,g]);var m=wo(a.get(["axisLine","symbolOffset"])||0,g),_=g[0],S=g[1];T([{rotate:r.rotation+Math.PI/2,offset:m[0],r:0},{rotate:r.rotation-Math.PI/2,offset:m[1],r:Math.sqrt((f[0]-c[0])*(f[0]-c[0])+(f[1]-c[1])*(f[1]-c[1]))}],function(b,x){if(y[x]!=="none"&&y[x]!=null){var w=dt(y[x],-_/2,-S/2,_,S,v.stroke,!0),D=b.r+b.offset,M=h?c:f;w.attr({rotation:b.rotate,x:M[0]+D*Math.cos(r.rotation),y:M[1]-D*Math.sin(r.rotation),silent:!0,z2:11}),n.add(w)}})}}},axisTickLabelEstimate:function(r,e,t,a,n,i,o,s){var l=gv(e,n,s);l&&pv(r,e,t,a,n,i,o,pt.estimate)},axisTickLabelDetermine:function(r,e,t,a,n,i,o,s){var l=gv(e,n,s);l&&pv(r,e,t,a,n,i,o,pt.determine);var u=H1(r,n,i,a);F1(r,e.labelLayoutList,u),W1(r,n,i,a,r.tickDirection)},axisName:function(r,e,t,a,n,i,o,s){var l=t.ensureRecord(a);e.nameEl&&(n.remove(e.nameEl),e.nameEl=l.nameLayout=l.nameLocation=null);var u=r.axisName;if(Hu(u)){var f=r.nameLocation,c=r.nameDirection,h=a.getModel("nameTextStyle"),v=a.get("nameGap")||0,d=a.axis.getExtent(),p=a.axis.inverse?-1:1,y=new ge(0,0),g=new ge(0,0);f==="start"?(y.x=d[0]-p*v,g.x=-p):f==="end"?(y.x=d[1]+p*v,g.x=p):(y.x=(d[0]+d[1])/2,y.y=r.labelOffset+c*v,g.y=c);var m=On();g.transform(Yh(m,m,r.rotation));var _=a.get("nameRotate");_!=null&&(_=_*er/180);var S,b;ma(f)?S=Ot.innerTextLayout(r.rotation,_??r.rotation,c):(S=z1(r.rotation,f,_||0,d),b=r.raw.axisNameAvailableWidth,b!=null&&(b=Math.abs(b/Math.sin(S.rotation)),!isFinite(b)&&(b=null)));var x=h.getFont(),w=a.get("nameTruncate",!0)||{},D=w.ellipsis,M=Ar(r.raw.nameTruncateMaxWidth,w.maxWidth,b),A=s.nameMarginLevel||0,C=new de({x:y.x,y:y.y,rotation:S.rotation,silent:Ot.isLabelSilent(a),style:Ae(h,{text:u,font:x,overflow:"truncate",width:M,ellipsis:D,fill:h.getTextColor()||a.get(["axisLine","lineStyle","color"]),align:h.get("align")||S.textAlign,verticalAlign:h.get("verticalAlign")||S.textVerticalAlign}),z2:1});if(po({el:C,componentModel:a,itemName:u}),C.__fullText=u,C.anid="name",a.get("triggerEvent")){var I=Ot.makeAxisEventDataBase(a);I.targetType="axisName",I.name=u,te(C).eventData=I}i.add(C),C.updateTransform(),e.nameEl=C;var L=l.nameLayout=sr({label:C,priority:C.z2,defaultAttr:{ignore:C.ignore},marginDefault:ma(f)?E1[A]:O1[A]});if(l.nameLocation=f,n.add(C),C.decomposeTransform(),r.shouldNameMoveOverlap&&L){var E=t.ensureRecord(a);t.resolveAxisNameOverlap(r,t,a,L,g,E)}}}};function pv(r,e,t,a,n,i,o,s){ny(e)||U1(r,e,n,s,a,o);var l=e.labelLayoutList;Y1(r,a,l,i),r.rotation;var u=r.optionHideOverlap;G1(a,l,u),u&&Ig(Ce(l,function(f){return f&&!f.label.ignore})),N1(r,t,a,l)}function z1(r,e,t,a){var n=jh(t-r),i,o,s=a[0]>a[1],l=e==="start"&&!s||e!=="start"&&s;return Oi(n-er/2)?(o=l?"bottom":"top",i="center"):Oi(n-er*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",n<er*1.5&&n>er/2?i=l?"left":"right":i=l?"right":"left"),{rotation:n,textAlign:i,textVerticalAlign:o}}function G1(r,e,t){if(vg(r.axis))return;function a(s,l,u){var f=sr(e[l]),c=sr(e[u]);if(!(!f||!c)){if(s===!1||f.suggestIgnore){Ka(f.label);return}if(c.suggestIgnore){Ka(c.label);return}var h=.1;if(!t){var v=[0,0,0,0];f=bl({marginForce:v},f),c=bl({marginForce:v},c)}Vu(f,c,null,{touchThreshold:h})&&Ka(s?c.label:f.label)}}var n=r.get(["axisLabel","showMinLabel"]),i=r.get(["axisLabel","showMaxLabel"]),o=e.length;a(n,0,1),a(i,o-1,o-2)}function F1(r,e,t){r.showMinorTicks||T(e,function(a){if(a&&a.label.ignore)for(var n=0;n<t.length;n++){var i=t[n],o=Qg(i),s=Ln(a.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.tickValue){Ka(i);return}}})}function Ka(r){r&&(r.ignore=!0)}function ay(r,e,t,a,n){for(var i=[],o=[],s=[],l=0;l<r.length;l++){var u=r[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=t,e&&(Ct(o,o,e),Ct(s,s,e));var f=new nr({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:a,z2:2,autoBatch:!0,silent:!0});yn(f.shape,f.style.lineWidth),f.anid=n+"_"+r[l].tickValue,i.push(f);var c=Qg(f);c.onBand=!!r[l].onBand,c.tickValue=r[l].tickValue}return i}function H1(r,e,t,a){var n=a.axis,i=a.getModel("axisTick"),o=i.get("show");if(o==="auto"&&(o=!0,r.raw.axisTickAutoShow!=null&&(o=!!r.raw.axisTickAutoShow)),!o||n.scale.isBlank())return[];for(var s=i.getModel("lineStyle"),l=r.tickDirection*i.get("length"),u=n.getTicksCoords(),f=ay(u,t.transform,l,ae(s.getLineStyle(),{stroke:a.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<f.length;c++)e.add(f[c]);return f}function W1(r,e,t,a,n){var i=a.axis,o=a.getModel("minorTick");if(!(!r.showMinorTicks||i.scale.isBlank())){var s=i.getMinorTicksCoords();if(s.length)for(var l=o.getModel("lineStyle"),u=n*o.get("length"),f=ae(l.getLineStyle(),ae(a.getModel("axisTick").getLineStyle(),{stroke:a.get(["axisLine","lineStyle","color"])})),c=0;c<s.length;c++)for(var h=ay(s[c],t.transform,u,f,"minorticks_"+c),v=0;v<h.length;v++)e.add(h[v])}}function gv(r,e,t){if(ny(r)){var a=r.axisLabelsCreationContext,n=a.out.noPxChangeTryDetermine;if(t.noPxChange){for(var i=!0,o=0;o<n.length;o++)i=i&&n[o]();if(i)return!1}n.length&&(e.remove(r.labelGroup),Al(r,null,null,null))}return!0}function U1(r,e,t,a,n,i){var o=n.axis,s=Ar(r.raw.axisLabelShow,n.get(["axisLabel","show"])),l=new le;t.add(l);var u=Qi(a);if(!s||o.scale.isBlank()){Al(e,[],l,u);return}var f=n.getModel("axisLabel"),c=o.getViewLabels(u),h=(Ar(r.raw.labelRotate,f.get("rotate"))||0)*er/180,v=Ot.innerTextLayout(r.rotation,h,r.labelDirection),d=n.getCategories&&n.getCategories(!0),p=[],y=n.get("triggerEvent"),g=1/0,m=-1/0;T(c,function(S,b){var x,w=o.scale.type==="ordinal"?o.scale.getRawOrdinalNumber(S.tickValue):S.tickValue,D=S.formattedLabel,M=S.rawLabel,A=f;if(d&&d[w]){var C=d[w];K(C)&&C.textStyle&&(A=new he(C.textStyle,f,n.ecModel))}var I=A.getTextColor()||n.get(["axisLine","lineStyle","color"]),L=A.getShallow("align",!0)||v.textAlign,E=j(A.getShallow("alignMinLabel",!0),L),k=j(A.getShallow("alignMaxLabel",!0),L),P=A.getShallow("verticalAlign",!0)||A.getShallow("baseline",!0)||v.textVerticalAlign,V=j(A.getShallow("verticalAlignMinLabel",!0),P),R=j(A.getShallow("verticalAlignMaxLabel",!0),P),O=10+(((x=S.time)===null||x===void 0?void 0:x.level)||0);g=Math.min(g,O),m=Math.max(m,O);var z=new de({x:0,y:0,rotation:0,silent:Ot.isLabelSilent(n),z2:O,style:Ae(A,{text:D,align:b===0?E:b===c.length-1?k:L,verticalAlign:b===0?V:b===c.length-1?R:P,fill:Q(I)?I(o.type==="category"?M:o.type==="value"?w+"":w,b):I})});z.anid="label_"+w;var H=Ln(z);if(H.break=S.break,H.tickValue=w,H.layoutRotation=v.rotation,po({el:z,componentModel:n,itemName:D,formatterParamsExtra:{isTruncated:function(){return z.isTruncated},value:M,tickIndex:b}}),y){var Y=Ot.makeAxisEventDataBase(n);Y.targetType="axisLabel",Y.value=M,Y.tickIndex=b,S.break&&(Y.break={start:S.break.parsedBreak.vmin,end:S.break.parsedBreak.vmax}),o.type==="category"&&(Y.dataIndex=w),te(z).eventData=Y,S.break&&Z1(n,i,z,S.break)}p.push(z),l.add(z)});var _=X(p,function(S){return{label:S,priority:Ln(S).break?S.z2+(m-g+1):S.z2,defaultAttr:{ignore:S.ignore}}});Al(e,_,l,u)}function ny(r){return!!r.labelLayoutList}function Al(r,e,t,a){r.labelLayoutList=e,r.labelGroup=t,r.axisLabelsCreationContext=a}function Y1(r,e,t,a){var n=e.get(["axisLabel","margin"]);T(t,function(i,o){var s=sr(i);if(s){var l=s.label,u=Ln(l);s.suggestIgnore=l.ignore,l.ignore=!1,ff(It,X1),It.x=e.axis.dataToCoord(u.tickValue),It.y=r.labelOffset+r.labelDirection*n,It.rotation=u.layoutRotation,a.add(It),It.updateTransform(),a.remove(It),It.decomposeTransform(),ff(l,It),l.markRedraw(),ro(s,!0),sr(s)}})}var It=new ve,X1=new ve;function Hu(r){return!!r}function Z1(r,e,t,a){t.on("click",function(n){var i={type:R1,breaks:[{start:a.parsedBreak.breakOption.start,end:a.parsedBreak.breakOption.end}]};i[r.axis.dim+"AxisIndex"]=r.componentIndex,e.dispatchAction(i)})}function no(r,e,t){t=t||{};var a=e.axis,n={},i=a.getAxesOnZeroOf()[0],o=a.position,s=i?"onZero":o,l=a.dim,u=[r.x,r.x+r.width,r.y,r.y+r.height],f={left:0,right:1,top:0,bottom:1,onZero:2},c=e.get("offset")||0,h=l==="x"?[u[2]-c,u[3]+c]:[u[0]-c,u[1]+c];if(i){var v=i.toGlobalCoord(i.dataToCoord(0));h[f.onZero]=Math.max(Math.min(v,h[1]),h[0])}n.position=[l==="y"?h[f[s]]:u[0],l==="x"?h[f[s]]:u[3]],n.rotation=Math.PI/2*(l==="x"?0:1);var d={top:-1,bottom:1,left:-1,right:1};n.labelDirection=n.tickDirection=n.nameDirection=d[o],n.labelOffset=i?h[f[o]]-h[f.onZero]:0,e.get(["axisTick","inside"])&&(n.tickDirection=-n.tickDirection),Ar(t.labelInside,e.get(["axisLabel","inside"]))&&(n.labelDirection=-n.labelDirection);var p=e.get(["axisLabel","rotate"]);return n.labelRotate=s==="top"?-p:p,n.z2=1,n}function $1(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function yv(r){var e={xAxisModel:null,yAxisModel:null};return T(e,function(t,a){var n=a.replace(/Model$/,""),i=r.getReferringComponents(n,Ze).models[0];e[a]=i}),e}function K1(r,e,t,a,n,i){for(var o=no(r,t),s=!1,l=!1,u=0;u<e.length;u++)gl(e[u].getOtherAxis(t.axis).scale)&&(s=l=!0,t.axis.type==="category"&&t.axis.onBand&&(l=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=l,o.defaultNameMoveOverlap=i,new Ot(t,a,o,n)}function q1(r,e,t){var a=no(e,t);r.updateCfg(a)}function iy(r,e,t){var a=or.prototype,n=a.getTicks.call(t),i=a.getTicks.call(t,{expandToNicedExtent:!0}),o=n.length-1,s=a.getInterval.call(t),l=cg(r,e),u=l.extent,f=l.fixMin,c=l.fixMax;r.type==="log"&&(u=yl(r.base,u,!0)),r.setBreaksFromOption(hg(e)),r.setExtent(u[0],u[1]),r.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:c});var h=a.getExtent.call(r);f&&(u[0]=h[0]),c&&(u[1]=h[1]);var v=a.getInterval.call(r),d=u[0],p=u[1];if(f&&c)v=(p-d)/o;else if(f)for(p=u[0]+v*o;p<u[1]&&isFinite(p)&&isFinite(u[1]);)v=ts(v),p=u[0]+v*o;else if(c)for(d=u[1]-v*o;d>u[0]&&isFinite(d)&&isFinite(u[0]);)v=ts(v),d=u[1]-v*o;else{var y=r.getTicks().length-1;y>o&&(v=ts(v));var g=v*o;p=Math.ceil(u[1]/v)*v,d=ke(p-g),d<0&&u[0]>=0?(d=0,p=ke(g)):p>0&&u[1]<=0&&(p=0,d=-ke(g))}var m=(n[0].value-i[0].value)/s,_=(n[o].value-i[o].value)/s;a.setExtent.call(r,d+v*m,p+v*_),a.setInterval.call(r,v),(m||_)&&a.setNiceExtent.call(r,d+v,p-v)}var mv=[[3,1],[0,2]],j1=(function(){function r(e,t,a){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Dl,this._initCartesian(e,t,a),this.model=e}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(e,t){var a=this._axesMap;this._updateScale(e,this.model);function n(o){var s,l=Le(o),u=l.length;if(u){for(var f=[],c=u-1;c>=0;c--){var h=+l[c],v=o[h],d=v.model,p=v.scale;gl(p)&&d.get("alignTicks")&&d.get("interval")==null?f.push(v):(Vc(p,d),gl(p)&&(s=v))}f.length&&(s||(s=f.pop(),Vc(s.scale,s.model)),T(f,function(y){iy(y.scale,y.model,s.scale)}))}}n(a.x),n(a.y);var i={};T(a.x,function(o){_v(a,"y",o,i)}),T(a.y,function(o){_v(a,"x",o,i)}),this.resize(this.model,t)},r.prototype.resize=function(e,t,a){var n=Nr(e,t),i=this._rect=qe(e.getBoxLayoutParams(),n.refContainer),o=this._axesMap,s=this._coordsList,l=e.get("containLabel");if(oy(o,i),!a){var u=J1(i,s,o,l,t),f=void 0;if(l)f=bv(i.clone(),"axisLabel",null,i,o,u,n);else{var c=eT(e,i,n),h=c.outerBoundsRect,v=c.parsedOuterBoundsContain,d=c.outerBoundsClamp;h&&(f=bv(h,v,d,i,o,u,n))}sy(i,o,pt.determine,null,f,n)}T(this._coordsList,function(p){p.calcAffineTransform()})},r.prototype.getAxis=function(e,t){var a=this._axesMap[e];if(a!=null)return a[t||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var a="x"+e+"y"+t;return this._coordsMap[a]}K(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var n=0,i=this._coordsList;n<i.length;n++)if(i[n].getAxis("x").index===e||i[n].getAxis("y").index===t)return i[n]},r.prototype.getCartesians=function(){return this._coordsList.slice()},r.prototype.convertToPixel=function(e,t,a){var n=this._findConvertTarget(t);return n.cartesian?n.cartesian.dataToPoint(a):n.axis?n.axis.toGlobalCoord(n.axis.dataToCoord(a)):null},r.prototype.convertFromPixel=function(e,t,a){var n=this._findConvertTarget(t);return n.cartesian?n.cartesian.pointToData(a):n.axis?n.axis.coordToData(n.axis.toLocalCoord(a)):null},r.prototype._findConvertTarget=function(e){var t=e.seriesModel,a=e.xAxisModel||t&&t.getReferringComponents("xAxis",Ze).models[0],n=e.yAxisModel||t&&t.getReferringComponents("yAxis",Ze).models[0],i=e.gridModel,o=this._coordsList,s,l;if(t)s=t.coordinateSystem,fe(o,s)<0&&(s=null);else if(a&&n)s=this.getCartesian(a.componentIndex,n.componentIndex);else if(a)l=this.getAxis("x",a.componentIndex);else if(n)l=this.getAxis("y",n.componentIndex);else if(i){var u=i.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},r.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},r.prototype._initCartesian=function(e,t,a){var n=this,i=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(t.eachComponent("xAxis",u("x"),this),t.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,T(s.x,function(f,c){T(s.y,function(h,v){var d="x"+c+"y"+v,p=new k1(d);p.master=n,p.model=e,n._coordsMap[d]=p,n._coordsList.push(p),p.addAxis(f),p.addAxis(h)})});function u(f){return function(c,h){if(vs(c,e)){var v=c.get("position");f==="x"?v!=="top"&&v!=="bottom"&&(v=o.bottom?"top":"bottom"):v!=="left"&&v!=="right"&&(v=o.left?"right":"left"),o[v]=!0;var d=new P1(f,Jb(c),[0,0],c.get("type"),v),p=d.type==="category";d.onBand=p&&c.get("boundaryGap"),d.inverse=c.get("inverse"),c.axis=d,d.model=c,d.grid=i,d.index=h,i._axesList.push(d),s[f][h]=d,l[f]++}}}},r.prototype._updateScale=function(e,t){T(this._axesList,function(n){if(n.scale.setExtent(1/0,-1/0),n.type==="category"){var i=n.model.get("categorySortInfo");n.scale.setSortInfo(i)}}),e.eachSeries(function(n){if($1(n)){var i=yv(n),o=i.xAxisModel,s=i.yAxisModel;if(!vs(o,t)||!vs(s,t))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=n.getData(),f=l.getAxis("x"),c=l.getAxis("y");a(u,f),a(u,c)}},this);function a(n,i){T(tw(n,i.dim),function(o){i.scale.unionExtentFromData(n,o)})}},r.prototype.getTooltipAxes=function(e){var t=[],a=[];return T(this.getCartesians(),function(n){var i=e!=null&&e!=="auto"?n.getAxis(e):n.getBaseAxis(),o=n.getOtherAxis(i);fe(t,i)<0&&t.push(i),fe(a,o)<0&&a.push(o)}),{baseAxes:t,otherAxes:a}},r.create=function(e,t){var a=[];return e.eachComponent("grid",function(n,i){var o=new r(n,e,t);o.name="grid_"+i,o.resize(n,t,!0),n.coordinateSystem=o,a.push(o)}),e.eachSeries(function(n){mu({targetModel:n,coordSysType:"cartesian2d",coordSysProvider:i});function i(){var o=yv(n),s=o.xAxisModel,l=o.yAxisModel,u=s.getCoordSysModel(),f=u.coordinateSystem;return f.getCartesian(s.componentIndex,l.componentIndex)}}),a},r.dimensions=Dl,r})();function vs(r,e){return r.getCoordSysModel()===e}function _v(r,e,t,a){t.getAxesOnZeroOf=function(){return i?[i]:[]};var n=r[e],i,o=t.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)Sv(n[l])&&(i=n[l]);else for(var u in n)if(n.hasOwnProperty(u)&&Sv(n[u])&&!a[f(n[u])]){i=n[u];break}i&&(a[f(i)]=!0);function f(c){return c.dim+"_"+c.index}}function Sv(r){return r&&r.type!=="category"&&r.type!=="time"&&ew(r)}function Q1(r,e){var t=r.getExtent(),a=t[0]+t[1];r.toGlobalCoord=r.dim==="x"?function(n){return n+e}:function(n){return a-n+e},r.toLocalCoord=r.dim==="x"?function(n){return n-e}:function(n){return a-n+e}}function oy(r,e){T(r.x,function(t){return xv(t,e.x,e.width)}),T(r.y,function(t){return xv(t,e.y,e.height)})}function xv(r,e,t){var a=[0,t],n=r.inverse?1:0;r.setExtent(a[n],a[1-n]),Q1(r,e)}function bv(r,e,t,a,n,i,o){sy(a,n,pt.estimate,e,!1,o);var s=[0,0,0,0];u(0),u(1),f(a,0,NaN),f(a,1,NaN);var l=Xh(s,function(h){return h>0})==null;return mn(a,s,!0,!0,t),oy(n,a),l;function u(h){T(n[Jt[h]],function(v){if(Mn(v.model)){var d=i.ensureRecord(v.model),p=d.labelInfoList;if(p)for(var y=0;y<p.length;y++){var g=p[y],m=v.scale.normalize(Ln(g.label).tickValue);m=h===1?1-m:m,f(g.rect,h,m),f(g.rect,1-h,NaN)}var _=d.nameLayout;if(_){var m=ma(d.nameLocation)?.5:NaN;f(_.rect,h,m),f(_.rect,1-h,NaN)}}})}function f(h,v,d){var p=r[Jt[v]]-h[Jt[v]],y=h[pa[v]]+h[Jt[v]]-(r[pa[v]]+r[Jt[v]]);p=c(p,1-d),y=c(y,d);var g=mv[v][0],m=mv[v][1];s[g]=$e(s[g],p),s[m]=$e(s[m],y)}function c(h,v){return h>0&&!Tr(v)&&v>1e-4&&(h/=v),h}}function J1(r,e,t,a,n){var i=new Jg(tT);return T(t,function(o){return T(o,function(s){if(Mn(s.model)){var l=!a;s.axisBuilder=K1(r,e,s.model,n,i,l)}})}),i}function sy(r,e,t,a,n,i){var o=t===pt.determine;T(e,function(u){return T(u,function(f){Mn(f.model)&&(q1(f.axisBuilder,r,f.model),f.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:n}))})});var s={x:0,y:0};l(0),l(1);function l(u){s[Jt[1-u]]=r[pa[u]]<=i.refContainer[pa[u]]*.5?0:1-u===1?2:1}T(e,function(u,f){return T(u,function(c){Mn(c.model)&&((a==="all"||o)&&c.axisBuilder.build({axisName:!0},{nameMarginLevel:s[f]}),o&&c.axisBuilder.build({axisLine:!0}))})})}function eT(r,e,t){var a,n=r.get("outerBoundsMode",!0);n==="same"?a=e.clone():(n==null||n==="auto")&&(a=qe(r.get("outerBounds",!0)||Kg,t.refContainer));var i=r.get("outerBoundsContain",!0),o;i==null||i==="auto"||fe(["all","axisLabel"],i)<0?o="all":o=i;var s=[Fs(j(r.get("outerBoundsClampWidth",!0),ao[0]),e.width),Fs(j(r.get("outerBoundsClampHeight",!0),ao[1]),e.height)];return{outerBoundsRect:a,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var tT=function(r,e,t,a,n,i){var o=t.axis.dim==="x"?"y":"x";ey(r,e,t,a,n,i),ma(r.nameLocation)||T(e.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&ry(s.labelInfoList,s.dirVec,a,n)})};function rT(r,e){var t={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return aT(t,r,e),t.seriesInvolved&&iT(t,r),t}function aT(r,e,t){var a=e.getComponent("tooltip"),n=e.getComponent("axisPointer"),i=n.get("link",!0)||[],o=[];T(t.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=In(s.model),u=r.coordSysAxesInfo[l]={};r.coordSysMap[l]=s;var f=s.model,c=f.getModel("tooltip",a);if(T(s.getAxes(),ye(p,!1,null)),s.getTooltipAxes&&a&&c.get("show")){var h=c.get("trigger")==="axis",v=c.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(c.get(["axisPointer","axis"]));(h||v)&&T(d.baseAxes,ye(p,v?"cross":!0,h)),v&&T(d.otherAxes,ye(p,"cross",!1))}function p(y,g,m){var _=m.model.getModel("axisPointer",n),S=_.get("show");if(!(!S||S==="auto"&&!y&&!Ll(_))){g==null&&(g=_.get("triggerTooltip")),_=y?nT(m,c,n,e,y,g):_;var b=_.get("snap"),x=_.get("triggerEmphasis"),w=In(m.model),D=g||b||m.type==="category",M=r.axesInfo[w]={key:w,axis:m,coordSys:s,axisPointerModel:_,triggerTooltip:g,triggerEmphasis:x,involveSeries:D,snap:b,useHandle:Ll(_),seriesModels:[],linkGroup:null};u[w]=M,r.seriesInvolved=r.seriesInvolved||D;var A=oT(i,m);if(A!=null){var C=o[A]||(o[A]={axesInfo:{}});C.axesInfo[w]=M,C.mapper=i[A].mapper,M.linkGroup=C}}}})}function nT(r,e,t,a,n,i){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};T(s,function(h){l[h]=q(o.get(h))}),l.snap=r.type!=="category"&&!!i,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),n==="cross"){var f=o.get(["label","show"]);if(u.show=f??!0,!i){var c=l.lineStyle=o.get("crossStyle");c&&ae(u,c.textStyle)}}return r.model.getModel("axisPointer",new he(l,t,a))}function iT(r,e){e.eachSeries(function(t){var a=t.coordinateSystem,n=t.get(["tooltip","trigger"],!0),i=t.get(["tooltip","show"],!0);!a||!a.model||n==="none"||n===!1||n==="item"||i===!1||t.get(["axisPointer","show"],!0)===!1||T(r.coordSysAxesInfo[In(a.model)],function(o){var s=o.axis;a.getAxis(s.dim)===s&&(o.seriesModels.push(t),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=t.getData().count())})})}function oT(r,e){for(var t=e.model,a=e.dim,n=0;n<r.length;n++){var i=r[n]||{};if(hs(i[a+"AxisId"],t.id)||hs(i[a+"AxisIndex"],t.componentIndex)||hs(i[a+"AxisName"],t.name))return n}}function hs(r,e){return r==="all"||N(r)&&fe(r,e)>=0||r===e}function sT(r){var e=Wu(r);if(e){var t=e.axisPointerModel,a=e.axis.scale,n=t.option,i=t.get("status"),o=t.get("value");o!=null&&(o=a.parse(o));var s=Ll(t);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]),o<l[0]&&(o=l[0]),n.value=o,s&&(n.status=e.axis.scale.isBlank()?"hide":"show")}}function Wu(r){var e=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[In(r)]}function lT(r){var e=Wu(r);return e&&e.axisPointerModel}function Ll(r){return!!r.get(["handle","show"])}function In(r){return r.type+"||"+r.id}var wv={},ly=(function(r){U(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n,i){this.axisPointerClass&&sT(t),r.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,n,!0)},e.prototype.updateAxisPointer=function(t,a,n,i){this._doUpdateAxisPointerClass(t,n,!1)},e.prototype.remove=function(t,a){var n=this._axisPointer;n&&n.remove(a)},e.prototype.dispose=function(t,a){this._disposeAxisPointer(a),r.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,a,n){var i=e.getAxisPointerClass(this.axisPointerClass);if(i){var o=lT(t);o?(this._axisPointer||(this._axisPointer=new i)).render(t,o,a,n):this._disposeAxisPointer(a)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,a){wv[t]=a},e.getAxisPointerClass=function(t){return t&&wv[t]},e.type="axis",e})(Ue),Il=ne();function uT(r,e,t,a){var n=t.axis;if(!n.scale.isBlank()){var i=t.getModel("splitArea"),o=i.getModel("areaStyle"),s=o.get("color"),l=a.coordinateSystem.getRect(),u=n.getTicksCoords({tickModel:i,clamp:!0,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(u.length){var f=s.length,c=Il(r).splitAreaColors,h=ee(),v=0;if(c)for(var d=0;d<u.length;d++){var p=c.get(u[d].tickValue);if(p!=null){v=(p+(f-1)*d)%f;break}}var y=n.toGlobalCoord(u[0].coord),g=o.getAreaStyle();s=N(s)?s:[s];for(var d=1;d<u.length;d++){var m=n.toGlobalCoord(u[d].coord),_=void 0,S=void 0,b=void 0,x=void 0;n.isHorizontal()?(_=y,S=l.y,b=m-_,x=l.height,y=_+b):(_=l.x,S=y,b=l.width,x=m-S,y=S+x);var w=u[d-1].tickValue;w!=null&&h.set(w,v),e.add(new ve({anid:w!=null?"area_"+w:null,shape:{x:_,y:S,width:b,height:x},style:ae({fill:s[v]},g),autoBatch:!0,silent:!0})),v=(v+1)%f}Il(r).splitAreaColors=h}}}function fT(r){Il(r).splitAreaColors=null}var cT=["splitArea","splitLine","minorSplitLine","breakArea"],uy=(function(r){U(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="CartesianAxisPointer",t}return e.prototype.render=function(t,a,n,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new le,this.group.add(this._axisGroup),!!Mn(t)){this._axisGroup.add(t.axis.axisBuilder.group),T(cT,function(l){t.get([l,"show"])&&vT[l](this,this._axisGroup,t,t.getCoordSysModel(),n)},this);var s=i&&i.type==="changeAxisOrder"&&i.isInitSort;s||bd(o,this._axisGroup,t),r.prototype.render.call(this,t,a,n,i)}},e.prototype.remove=function(){fT(this)},e.type="cartesianAxis",e})(ly),vT={splitLine:function(r,e,t,a,n){var i=t.axis;if(!i.scale.isBlank()){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=o.get("showMinLine")!==!1,f=o.get("showMaxLine")!==!1;l=N(l)?l:[l];for(var c=a.coordinateSystem.getRect(),h=i.isHorizontal(),v=0,d=i.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),p=[],y=[],g=s.getLineStyle(),m=0;m<d.length;m++){var _=i.toGlobalCoord(d[m].coord);if(!(m===0&&!u||m===d.length-1&&!f)){var S=d[m].tickValue;h?(p[0]=_,p[1]=c.y,y[0]=_,y[1]=c.y+c.height):(p[0]=c.x,p[1]=_,y[0]=c.x+c.width,y[1]=_);var b=v++%l.length,x=new nr({anid:S!=null?"line_"+S:null,autoBatch:!0,shape:{x1:p[0],y1:p[1],x2:y[0],y2:y[1]},style:ae({stroke:l[b]},g),silent:!0});yn(x.shape,g.lineWidth),e.add(x)}}}},minorSplitLine:function(r,e,t,a,n){var i=t.axis,o=t.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=a.coordinateSystem.getRect(),u=i.isHorizontal(),f=i.getMinorTicksCoords();if(f.length)for(var c=[],h=[],v=s.getLineStyle(),d=0;d<f.length;d++)for(var p=0;p<f[d].length;p++){var y=i.toGlobalCoord(f[d][p].coord);u?(c[0]=y,c[1]=l.y,h[0]=y,h[1]=l.y+l.height):(c[0]=l.x,c[1]=y,h[0]=l.x+l.width,h[1]=y);var g=new nr({anid:"minor_line_"+f[d][p].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:h[0],y2:h[1]},style:v,silent:!0});yn(g.shape,v.lineWidth),e.add(g)}},splitArea:function(r,e,t,a,n){uT(r,e,t,a)},breakArea:function(r,e,t,a,n){t.axis.scale}},fy=(function(r){U(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="xAxis",e})(uy),hT=(function(r){U(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=fy.type,t}return e.type="yAxis",e})(uy),dT=(function(r){U(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="grid",t}return e.prototype.render=function(t,a){this.group.removeAll(),t.get("show")&&this.group.add(new ve({shape:t.coordinateSystem.getRect(),style:ae({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e})(Ue),Tv={offset:0};function pT(r){r.registerComponentView(dT),r.registerComponentModel(w1),r.registerCoordinateSystem("cartesian2d",j1),vv(r,"x",Ml,Tv),vv(r,"y",Ml,Tv),r.registerComponentView(fy),r.registerComponentView(hT),r.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}function gT(r){r.eachSeriesByType("radar",function(e){var t=e.getData(),a=[],n=e.coordinateSystem;if(n){var i=n.getIndicatorAxes();T(i,function(o,s){t.each(t.mapDimension(i[s].dim),function(l,u){a[u]=a[u]||[];var f=n.dataToPoint(l,s);a[u][s]=Cv(f)?f:Mv(n)})}),t.each(function(o){var s=Xh(a[o],function(l){return Cv(l)})||Mv(n);a[o].push(s.slice()),t.setItemLayout(o,a[o])})}})}function Cv(r){return!isNaN(r[0])&&!isNaN(r[1])}function Mv(r){return[r.cx,r.cy]}function yT(r){var e=r.polar;if(e){N(e)||(e=[e]);var t=[];T(e,function(a,n){a.indicator?(a.type&&!a.shape&&(a.shape=a.type),r.radar=r.radar||[],N(r.radar)||(r.radar=[r.radar]),r.radar.push(a)):t.push(a)}),r.polar=t}T(r.series,function(a){a&&a.type==="radar"&&a.polarIndex&&(a.radarIndex=a.polarIndex)})}var mT=(function(r){U(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=t.coordinateSystem,o=this.group,s=t.getData(),l=this._data;function u(h,v){var d=h.getItemVisual(v,"symbol")||"circle";if(d!=="none"){var p=bo(h.getItemVisual(v,"symbolSize")),y=dt(d,-1,-1,2,2),g=h.getItemVisual(v,"symbolRotate")||0;return y.attr({style:{strokeNoScale:!0},z2:100,scaleX:p[0]/2,scaleY:p[1]/2,rotation:g*Math.PI/180||0}),y}}function f(h,v,d,p,y,g){d.removeAll();for(var m=0;m<v.length-1;m++){var _=u(p,y);_&&(_.__dimIdx=m,h[m]?(_.setPosition(h[m]),Md[g?"initProps":"updateProps"](_,{x:v[m][0],y:v[m][1]},t,y)):_.setPosition(v[m]),d.add(_))}}function c(h){return X(h,function(v){return[i.cx,i.cy]})}s.diff(l).add(function(h){var v=s.getItemLayout(h);if(v){var d=new Nn,p=new Pr,y={shape:{points:v}};d.shape.points=c(v),p.shape.points=c(v),Pe(d,y,t,h),Pe(p,y,t,h);var g=new le,m=new le;g.add(p),g.add(d),g.add(m),f(p.shape.points,v,m,s,h,!0),s.setItemGraphicEl(h,g)}}).update(function(h,v){var d=l.getItemGraphicEl(v),p=d.childAt(0),y=d.childAt(1),g=d.childAt(2),m={shape:{points:s.getItemLayout(h)}};m.shape.points&&(f(p.shape.points,m.shape.points,g,s,h,!1),pn(y),pn(p),Se(p,m,t),Se(y,m,t),s.setItemGraphicEl(h,d))}).remove(function(h){o.remove(l.getItemGraphicEl(h))}).execute(),s.eachItemGraphicEl(function(h,v){var d=s.getItemModel(v),p=h.childAt(0),y=h.childAt(1),g=h.childAt(2),m=s.getItemVisual(v,"style"),_=m.fill;o.add(h),p.useStyle(ae(d.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:_})),da(p,d,"lineStyle"),da(y,d,"areaStyle");var S=d.getModel("areaStyle"),b=S.isEmpty()&&S.parentModel.isEmpty();y.ignore=b,T(["emphasis","select","blur"],function(w){var D=d.getModel([w,"areaStyle"]),M=D.isEmpty()&&D.parentModel.isEmpty();y.ensureState(w).ignore=M&&b;var A=d.getModel([w,"lineStyle"]).getLineStyle();p.ensureState(w).style=A;var C=D.getAreaStyle();y.ensureState(w).style=C;var I=d.getModel([w,"itemStyle"]).getItemStyle();g.eachChild(function(L){L.ensureState(w).style=q(I)})}),y.useStyle(ae(d.getModel("areaStyle").getAreaStyle(),{fill:_,opacity:.7,decal:m.decal}));var x=d.getModel("emphasis");g.eachChild(function(w){if(w instanceof Gt){var D=w.style;w.useStyle(F({image:D.image,x:D.x,y:D.y,width:D.width,height:D.height},m))}else w.useStyle(m),w.setColor(_),w.style.strokeNoScale=!0;var M=s.getStore().get(s.getDimensionIndex(w.__dimIdx),v);(M==null||isNaN(M))&&(M=""),ur(w,Mt(d),{labelFetcher:s.hostModel,labelDataIndex:v,labelDimIndex:w.__dimIdx,defaultText:M,inheritColor:_,defaultOpacity:m.opacity})}),Vt(h,x.get("focus"),x.get("blurScope"),x.get("disabled"))}),this._data=s},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type="radar",e})(Re),_T=(function(r){U(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Gu($(this.getData,this),$(this.getRawData,this))},e.prototype.getInitialData=function(t,a){return Zg(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(t,a,n){var i=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),l=this.getData().getName(t),u=l===""?this.name:l,f=pp(this,t);return ir("section",{header:u,sortBlocks:!0,blocks:X(s,function(c){var h=i.get(i.mapDimension(c.dim),t);return ir("nameValue",{markerType:"subItem",markerColor:f,name:c.name,value:h,sortParam:h})})})},e.prototype.getTooltipPosition=function(t){if(t!=null){for(var a=this.getData(),n=this.coordinateSystem,i=a.getValues(X(n.dimensions,function(u){return a.mapDimension(u)}),t),o=0,s=i.length;o<s;o++)if(!isNaN(i[o])){var l=n.getIndicatorAxes();return n.coordToPoint(l[o].dataToCoord(i[o]),o)}}},e.type="series.radar",e.dependencies=["radar"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},e})(Ne),Va=jg.value;function gi(r,e){return ae({show:e},r)}var ST=(function(r){U(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){var t=this.get("boundaryGap"),a=this.get("splitNumber"),n=this.get("scale"),i=this.get("axisLine"),o=this.get("axisTick"),s=this.get("axisLabel"),l=this.get("axisName"),u=this.get(["axisName","show"]),f=this.get(["axisName","formatter"]),c=this.get("axisNameGap"),h=this.get("triggerEvent"),v=X(this.get("indicator")||[],function(d){d.max!=null&&d.max>0&&!d.min?d.min=0:d.min!=null&&d.min<0&&!d.max&&(d.max=0);var p=l;d.color!=null&&(p=ae({color:d.color},l));var y=ue(q(d),{boundaryGap:t,splitNumber:a,scale:n,axisLine:i,axisTick:o,axisLabel:s,name:d.text,showName:u,nameLocation:"end",nameGap:c,nameTextStyle:p,triggerEvent:h},!1);if(Z(f)){var g=y.name;y.name=f.replace("{value}",g??"")}else Q(f)&&(y.name=f(y.name,y));var m=new he(y,null,this.ecModel);return gt(m,dg.prototype),m.mainType="radar",m.componentIndex=this.componentIndex,m},this);this._indicatorModels=v},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"50%",startAngle:90,axisName:{show:!0,color:B.color.axisLabel},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:ue({lineStyle:{color:B.color.neutral20}},Va.axisLine),axisLabel:gi(Va.axisLabel,!1),axisTick:gi(Va.axisTick,!1),splitLine:gi(Va.splitLine,!0),splitArea:gi(Va.splitArea,!0),indicator:[]},e})(ie),xT=(function(r){U(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=this.group;i.removeAll(),this._buildAxes(t,n),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t,a){var n=t.coordinateSystem,i=n.getIndicatorAxes(),o=X(i,function(s){var l=s.model.get("showName")?s.name:"",u=new Ot(s.model,a,{axisName:l,position:[n.cx,n.cy],rotation:s.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return u});T(o,function(s){s.build(),this.group.add(s.group)},this)},e.prototype._buildSplitLineAndArea=function(t){var a=t.coordinateSystem,n=a.getIndicatorAxes();if(!n.length)return;var i=t.get("shape"),o=t.getModel("splitLine"),s=t.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),f=o.get("show"),c=s.get("show"),h=l.get("color"),v=u.get("color"),d=N(h)?h:[h],p=N(v)?v:[v],y=[],g=[];function m(k,P,V){var R=V%P.length;return k[R]=k[R]||[],R}if(i==="circle")for(var _=n[0].getTicksCoords(),S=a.cx,b=a.cy,x=0;x<_.length;x++){if(f){var w=m(y,d,x);y[w].push(new uo({shape:{cx:S,cy:b,r:_[x].coord}}))}if(c&&x<_.length-1){var w=m(g,p,x);g[w].push(new Wl({shape:{cx:S,cy:b,r0:_[x].coord,r:_[x+1].coord}}))}}else for(var D,M=X(n,function(k,P){var V=k.getTicksCoords();return D=D==null?V.length-1:Math.min(V.length-1,D),X(V,function(R){return a.coordToPoint(R.coord,P)})}),A=[],x=0;x<=D;x++){for(var C=[],I=0;I<n.length;I++)C.push(M[I][x]);if(C[0]&&C.push(C[0].slice()),f){var w=m(y,d,x);y[w].push(new Pr({shape:{points:C}}))}if(c&&A){var w=m(g,p,x-1);g[w].push(new Nn({shape:{points:C.concat(A)}}))}A=C.slice().reverse()}var L=l.getLineStyle(),E=u.getAreaStyle();T(g,function(k,P){this.group.add(qs(k,{style:ae({stroke:"none",fill:p[P%p.length]},E),silent:!0}))},this),T(y,function(k,P){this.group.add(qs(k,{style:ae({fill:"none",stroke:d[P%d.length]},L),silent:!0}))},this)},e.type="radar",e})(Ue),bT=(function(r){U(e,r);function e(t,a,n){var i=r.call(this,t,a,n)||this;return i.type="value",i.angle=0,i.name="",i}return e})(bg),wT=(function(){function r(e,t,a){this.dimensions=[],this._model=e,this._indicatorAxes=X(e.getIndicatorModels(),function(n,i){var o="indicator_"+i,s=new bT(o,new or);return s.name=n.get("name"),s.model=n,n.axis=s,this.dimensions.push(o),s},this),this.resize(e,a)}return r.prototype.getIndicatorAxes=function(){return this._indicatorAxes},r.prototype.dataToPoint=function(e,t){var a=this._indicatorAxes[t];return this.coordToPoint(a.dataToCoord(e),t)},r.prototype.coordToPoint=function(e,t){var a=this._indicatorAxes[t],n=a.angle,i=this.cx+e*Math.cos(n),o=this.cy-e*Math.sin(n);return[i,o]},r.prototype.pointToData=function(e){var t=e[0]-this.cx,a=e[1]-this.cy,n=Math.sqrt(t*t+a*a);t/=n,a/=n;for(var i=Math.atan2(-a,t),o=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var f=this._indicatorAxes[u],c=Math.abs(i-f.angle);c<o&&(s=f,l=u,o=c)}return[l,+(s&&s.coordToData(n))]},r.prototype.resize=function(e,t){var a=Nr(e,t).refContainer,n=e.get("center"),i=Math.min(a.width,a.height)/2;this.cx=re(n[0],a.width)+a.x,this.cy=re(n[1],a.height)+a.y,this.startAngle=e.get("startAngle")*Math.PI/180;var o=e.get("radius");(Z(o)||oe(o))&&(o=[0,o]),this.r0=re(o[0],i),this.r=re(o[1],i),T(this._indicatorAxes,function(s,l){s.setExtent(this.r0,this.r);var u=this.startAngle+l*Math.PI*2/this._indicatorAxes.length;u=Math.atan2(Math.sin(u),Math.cos(u)),s.angle=u},this)},r.prototype.update=function(e,t){var a=this._indicatorAxes,n=this._model;T(a,function(s){s.scale.setExtent(1/0,-1/0)}),e.eachSeriesByType("radar",function(s,l){if(!(s.get("coordinateSystem")!=="radar"||e.getComponent("radar",s.get("radarIndex"))!==n)){var u=s.getData();T(a,function(f){f.scale.unionExtentFromData(u,u.mapDimension(f.dim))})}},this);var i=n.get("splitNumber"),o=new or;o.setExtent(0,i),o.setInterval(1),T(a,function(s,l){iy(s.scale,s.model,o)})},r.prototype.convertToPixel=function(e,t,a){return console.warn("Not implemented."),null},r.prototype.convertFromPixel=function(e,t,a){return console.warn("Not implemented."),null},r.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},r.create=function(e,t){var a=[];return e.eachComponent("radar",function(n){var i=new r(n,e,t);a.push(i),n.coordinateSystem=i}),e.eachSeriesByType("radar",function(n){n.get("coordinateSystem")==="radar"&&(n.coordinateSystem=a[n.get("radarIndex")||0])}),a},r.dimensions=[],r})();function TT(r){r.registerCoordinateSystem("radar",wT),r.registerComponentModel(ST),r.registerComponentView(xT),r.registerVisual({seriesType:"radar",reset:function(e){var t=e.getData();t.each(function(a){t.setItemVisual(a,"legendIcon","roundRect")}),t.setVisual("legendIcon","roundRect")}})}function qD(r){ot(TT),r.registerChartView(mT),r.registerSeriesModel(_T),r.registerLayout(gT),r.registerProcessor(Ug("radar")),r.registerPreprocessor(yT)}var CT=ne();function Dv(r,e){return!!CT(r)[e]}Vr({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},nt);var MT={axisPointer:1,tooltip:1,brush:1};function DT(r,e,t){var a=e.getComponentByElement(r.topTarget);if(!a||a===t||MT.hasOwnProperty(a.mainType))return!1;var n=a.coordinateSystem;if(!n||n.model===t)return!1;var i=Sn(a),o=Sn(t);return!((i.zlevel-o.zlevel||i.z-o.z)<=0)}var AT=(function(r){U(e,r);function e(t){var a=r.call(this)||this;a._zr=t;var n=$(a._mousedownHandler,a),i=$(a._mousemoveHandler,a),o=$(a._mouseupHandler,a),s=$(a._mousewheelHandler,a),l=$(a._pinchHandler,a);return a.enable=function(u,f){var c=f.zInfo,h=Sn(c.component),v=h.z,d=h.zlevel,p={component:c.component,z:v,zlevel:d,z2:j(c.z2,-1/0)},y=F({},f.triggerInfo);this._opt=ae(F({},f),{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0,zInfoParsed:p,triggerInfo:y}),u==null&&(u=!0),(!this._enabled||this._controlType!==u)&&(this._enabled=!0,this.disable(),(u===!0||u==="move"||u==="pan")&&(Ga(t,"mousedown",n,p),Ga(t,"mousemove",i,p),Ga(t,"mouseup",o,p)),(u===!0||u==="scale"||u==="zoom")&&(Ga(t,"mousewheel",s,p),Ga(t,"pinch",l,p)))},a.disable=function(){this._enabled=!1,Fa(t,"mousedown",n),Fa(t,"mousemove",i),Fa(t,"mouseup",o),Fa(t,"mousewheel",s),Fa(t,"pinch",l)},a}return e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype._checkPointer=function(t,a,n){var i=this._opt,o=i.zInfoParsed;if(DT(t,i.api,o.component))return!1;var s=i.triggerInfo,l=s.roamTrigger,u=!1;return l==="global"&&(u=!0),u||(u=s.isInSelf(t,a,n)),u&&s.isInClip&&!s.isInClip(t,a,n)&&(u=!1),u},e.prototype._decideCursorStyle=function(t,a,n,i){var o=t.target;if(!o&&this._checkPointer(t,a,n))return"grab";if(i)return o&&o.cursor||"default"},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(t){if(!(cf(t)||za(t))){for(var a=t.target;a;){if(a.draggable)return;a=a.__hostTarget||a.parent}var n=t.offsetX,i=t.offsetY;this._checkPointer(t,n,i)&&(this._x=n,this._y=i,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){var a=this._zr;if(!(t.gestureEvent==="pinch"||Dv(a,"globalPan")||za(t))){var n=t.offsetX,i=t.offsetY;if(!this._dragging||!Ii("moveOnMouseMove",t,this._opt)){var o=this._decideCursorStyle(t,n,i,!1);o&&a.setCursorStyle(o);return}a.setCursorStyle("grabbing");var s=this._x,l=this._y,u=n-s,f=i-l;this._x=n,this._y=i,this._opt.preventDefaultMouseMove&&ha(t.event),t.__ecRoamConsumed=!0,Av(this,"pan","moveOnMouseMove",t,{dx:u,dy:f,oldX:s,oldY:l,newX:n,newY:i,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){if(!za(t)){var a=this._zr;if(!cf(t)){this._dragging=!1;var n=this._decideCursorStyle(t,t.offsetX,t.offsetY,!0);n&&a.setCursorStyle(n)}}},e.prototype._mousewheelHandler=function(t){if(!za(t)){var a=Ii("zoomOnMouseWheel",t,this._opt),n=Ii("moveOnMouseWheel",t,this._opt),i=t.wheelDelta,o=Math.abs(i),s=t.offsetX,l=t.offsetY;if(!(i===0||!a&&!n)){if(a){var u=o>3?1.4:o>1?1.2:1.1,f=i>0?u:1/u;this._checkTriggerMoveZoom(this,"zoom","zoomOnMouseWheel",t,{scale:f,originX:s,originY:l,isAvailableBehavior:null})}if(n){var c=Math.abs(i),h=(i>0?1:-1)*(c>3?.4:c>1?.15:.05);this._checkTriggerMoveZoom(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:h,originX:s,originY:l,isAvailableBehavior:null})}}}},e.prototype._pinchHandler=function(t){if(!(Dv(this._zr,"globalPan")||za(t))){var a=t.pinchScale>1?1.1:1/1.1;this._checkTriggerMoveZoom(this,"zoom",null,t,{scale:a,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e.prototype._checkTriggerMoveZoom=function(t,a,n,i,o){t._checkPointer(i,o.originX,o.originY)&&(ha(i.event),i.__ecRoamConsumed=!0,Av(t,a,n,i,o))},e})(Vn);function za(r){return r.__ecRoamConsumed}var LT=ne();function Mo(r){var e=LT(r);return e.roam=e.roam||{},e.uniform=e.uniform||{},e}function Ga(r,e,t,a){for(var n=Mo(r),i=n.roam,o=i[e]=i[e]||[],s=0;s<o.length;s++){var l=o[s].zInfoParsed;if((l.zlevel-a.zlevel||l.z-a.z||l.z2-a.z2)<=0)break}o.splice(s,0,{listener:t,zInfoParsed:a}),IT(r,e)}function Fa(r,e,t){for(var a=Mo(r),n=a.roam[e]||[],i=0;i<n.length;i++)if(n[i].listener===t){n.splice(i,1),n.length||kT(r,e);return}}function IT(r,e){var t=Mo(r);t.uniform[e]||r.on(e,t.uniform[e]=function(a){var n=t.roam[e];if(n)for(var i=0;i<n.length;i++)n[i].listener(a)})}function kT(r,e){var t=Mo(r),a=t.uniform;a[e]&&(r.off(e,a[e]),a[e]=null)}function Av(r,e,t,a,n){n.isAvailableBehavior=$(Ii,null,t,a),r.trigger(e,n)}function Ii(r,e,t){var a=t[r];return!r||a&&(!Z(a)||e.event[a+"Key"])}function PT(r,e,t){var a=r.target;a.x+=e,a.y+=t,a.dirty()}function RT(r,e,t,a){var n=r.target,i=r.zoomLimit,o=r.zoom=r.zoom||1;o*=e,o=Uu(o,i);var s=o/r.zoom;r.zoom=o,cy(n,t,a,s),n.dirty()}function Lv(r,e){return r.pointToProjected?r.pointToProjected(e):r.pointToData(e)}function ET(r,e,t){var a=r.getZoom(),n=r.getCenter(),i=e.zoom,o=r.projectedToPoint?r.projectedToPoint(n):r.dataToPoint(n);return e.dx!=null&&e.dy!=null&&(o[0]-=e.dx,o[1]-=e.dy,r.setCenter(Lv(r,o))),i!=null&&(i=Uu(a*i,t)/a,cy(r,e.originX,e.originY,i),r.updateTransform(),r.setCenter(Lv(r,o)),r.setZoom(i*a)),{center:r.getCenter(),zoom:r.getZoom()}}function cy(r,e,t,a){r.x-=(e-r.x)*(a-1),r.y-=(t-r.y)*(a-1),r.scaleX*=a,r.scaleY*=a}function Uu(r,e){if(e){var t=e.min||0,a=e.max||1/0;r=Math.max(Math.min(a,r),t)}return r}var Iv=Ct,vy=(function(r){U(e,r);function e(t,a){var n=r.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new aa,n._rawTransformable=new aa,n.name=t,n._opt=a,n}return e.prototype.setBoundingRect=function(t,a,n,i){return this._rect=new Me(t,a,n,i),this._updateCenterAndZoom(),this._rect},e.prototype.getBoundingRect=function(){return this._rect},e.prototype.setViewRect=function(t,a,n,i){this._transformTo(t,a,n,i),this._viewRect=new Me(t,a,n,i)},e.prototype._transformTo=function(t,a,n,i){var o=this.getBoundingRect(),s=this._rawTransformable;s.transform=o.calculateTransform(new Me(t,a,n,i));var l=s.parent;s.parent=null,s.decomposeTransform(),s.parent=l,this._updateTransform()},e.prototype.setCenter=function(t){var a=this._opt;a&&a.api&&a.ecModel&&a.ecModel.getShallow("legacyViewCoordSysCenterBase")&&t&&(t=[re(t[0],a.api.getWidth()),re(t[1],a.api.getWidth())]),this._centerOption=q(t),this._updateCenterAndZoom()},e.prototype.setZoom=function(t){this._zoom=Uu(t||1,this.zoomLimit),this._updateCenterAndZoom()},e.prototype.getDefaultCenter=function(){var t=this.getBoundingRect(),a=t.x+t.width/2,n=t.y+t.height/2;return[a,n]},e.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},e.prototype.getZoom=function(){return this._zoom||1},e.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},e.prototype._updateCenterAndZoom=function(){var t=this._centerOption,a=this._rect;t&&a&&(this._center=[re(t[0],a.width,a.x),re(t[1],a.height,a.y)]);var n=this._rawTransformable.getLocalTransform(),i=this._roamTransformable,o=this.getDefaultCenter(),s=this.getCenter(),l=this.getZoom();s=Ct([],s,n),o=Ct([],o,n),i.originX=s[0],i.originY=s[1],i.x=o[0]-s[0],i.y=o[1]-s[1],i.scaleX=i.scaleY=l,this._updateTransform()},e.prototype._updateTransform=function(){var t=this._roamTransformable,a=this._rawTransformable;a.parent=t,t.updateTransform(),a.updateTransform(),Vh(this.transform||(this.transform=[]),a.transform||On()),this._rawTransform=a.getLocalTransform(),this.invTransform=this.invTransform||[],En(this.invTransform,this.transform),this.decomposeTransform()},e.prototype.getTransformInfo=function(){var t=this._rawTransformable,a=this._roamTransformable,n=new aa;return n.transform=a.transform,n.decomposeTransform(),{roam:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY},raw:{x:t.x,y:t.y,scaleX:t.scaleX,scaleY:t.scaleY}}},e.prototype.getViewRect=function(){return this._viewRect},e.prototype.getViewRectAfterRoam=function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},e.prototype.dataToPoint=function(t,a,n){var i=a?this._rawTransform:this.transform;return n=n||[],i?Iv(n,t,i):He(n,t)},e.prototype.pointToData=function(t,a,n){n=n||[];var i=this.invTransform;return i?Iv(n,t,i):(n[0]=t[0],n[1]=t[1],n)},e.prototype.convertToPixel=function(t,a,n){var i=kv(a);return i===this?i.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,a,n){var i=kv(a);return i===this?i.pointToData(n):null},e.prototype.containPoint=function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])},e.dimensions=["x","y"],e})(aa);function kv(r){var e=r.seriesModel;return e?e.coordinateSystem:null}var at=ne();function OT(r){var e=r.mainData,t=r.datas;t||(t={main:e},r.datasAttr={main:"data"}),r.datas=r.mainData=null,hy(e,t,r),T(t,function(a){T(e.TRANSFERABLE_METHODS,function(n){a.wrapMethod(n,ye(NT,r))})}),e.wrapMethod("cloneShallow",ye(VT,r)),T(e.CHANGABLE_METHODS,function(a){e.wrapMethod(a,ye(BT,r))}),ht(t[e.dataType]===e)}function NT(r,e){if(FT(this)){var t=F({},at(this).datas);t[this.dataType]=e,hy(e,t,r)}else Yu(e,this.dataType,at(this).mainData,r);return e}function BT(r,e){return r.struct&&r.struct.update(),e}function VT(r,e){return T(at(e).datas,function(t,a){t!==e&&Yu(t.cloneShallow(),a,e,r)}),e}function zT(r){var e=at(this).mainData;return r==null||e==null?e:at(e).datas[r]}function GT(){var r=at(this).mainData;return r==null?[{data:r}]:X(Le(at(r).datas),function(e){return{type:e,data:at(r).datas[e]}})}function FT(r){return at(r).mainData===r}function hy(r,e,t){at(r).datas={},T(e,function(a,n){Yu(a,n,r,t)})}function Yu(r,e,t,a){at(t).datas[e]=r,at(r).mainData=t,r.dataType=e,a.struct&&(r[a.structAttr]=a.struct,a.struct[a.datasAttr[e]]=r),r.getLinkedData=zT,r.getLinkedDataAll=GT}var kn=T,HT=K,io=-1,ze=(function(){function r(e){var t=e.mappingMethod,a=e.type,n=this.option=q(e);this.type=a,this.mappingMethod=t,this._normalizeData=YT[t];var i=r.visualHandlers[a];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[t],t==="piecewise"?(ds(n),WT(n)):t==="category"?n.categories?UT(n):ds(n,!0):(ht(t!=="linear"||n.dataExtent),ds(n))}return r.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},r.prototype.getNormalizer=function(){return $(this._normalizeData,this)},r.listVisualTypes=function(){return Le(r.visualHandlers)},r.isValidType=function(e){return r.visualHandlers.hasOwnProperty(e)},r.eachVisual=function(e,t,a){K(e)?T(e,t,a):t.call(a,e)},r.mapVisual=function(e,t,a){var n,i=N(e)?[]:K(e)?{}:(n=!0,null);return r.eachVisual(e,function(o,s){var l=t.call(a,o,s);n?i=l:i[s]=l}),i},r.retrieveVisuals=function(e){var t={},a;return e&&kn(r.visualHandlers,function(n,i){e.hasOwnProperty(i)&&(t[i]=e[i],a=!0)}),a?t:null},r.prepareVisualTypes=function(e){if(N(e))e=e.slice();else if(HT(e)){var t=[];kn(e,function(a,n){t.push(n)}),e=t}else return[];return e.sort(function(a,n){return n==="color"&&a!=="color"&&a.indexOf("color")===0?1:-1}),e},r.dependsOn=function(e,t){return t==="color"?!!(e&&e.indexOf(t)===0):e===t},r.findPieceIndex=function(e,t,a){for(var n,i=1/0,o=0,s=t.length;o<s;o++){var l=t[o].value;if(l!=null){if(l===e||Z(l)&&l===e+"")return o;a&&h(l,o)}}for(var o=0,s=t.length;o<s;o++){var u=t[o],f=u.interval,c=u.close;if(f){if(f[0]===-1/0){if(mi(c[1],e,f[1]))return o}else if(f[1]===1/0){if(mi(c[0],f[0],e))return o}else if(mi(c[0],f[0],e)&&mi(c[1],e,f[1]))return o;a&&h(f[0],o),a&&h(f[1],o)}}if(a)return e===1/0?t.length-1:e===-1/0?0:n;function h(v,d){var p=Math.abs(v-e);p<i&&(i=p,n=d)}},r.visualHandlers={color:{applyVisual:Ha("color"),getColorMapper:function(){var e=this.option;return $(e.mappingMethod==="category"?function(t,a){return!a&&(t=this._normalizeData(t)),qa.call(this,t)}:function(t,a,n){var i=!!n;return!a&&(t=this._normalizeData(t)),n=Po(t,e.parsedVisual,n),i?n:xi(n,"rgba")},this)},_normalizedToVisual:{linear:function(e){return xi(Po(e,this.option.parsedVisual),"rgba")},category:qa,piecewise:function(e,t){var a=Pl.call(this,t);return a==null&&(a=xi(Po(e,this.option.parsedVisual),"rgba")),a},fixed:Sr}},colorHue:yi(function(e,t){return sa(e,t)}),colorSaturation:yi(function(e,t){return sa(e,null,t)}),colorLightness:yi(function(e,t){return sa(e,null,null,t)}),colorAlpha:yi(function(e,t){return dm(e,t)}),decal:{applyVisual:Ha("decal"),_normalizedToVisual:{linear:null,category:qa,piecewise:null,fixed:null}},opacity:{applyVisual:Ha("opacity"),_normalizedToVisual:kl([0,1])},liftZ:{applyVisual:Ha("liftZ"),_normalizedToVisual:{linear:Sr,category:Sr,piecewise:Sr,fixed:Sr}},symbol:{applyVisual:function(e,t,a){var n=this.mapValueToVisual(e);a("symbol",n)},_normalizedToVisual:{linear:Pv,category:qa,piecewise:function(e,t){var a=Pl.call(this,t);return a==null&&(a=Pv.call(this,e)),a},fixed:Sr}},symbolSize:{applyVisual:Ha("symbolSize"),_normalizedToVisual:kl([0,1])}},r})();function WT(r){var e=r.pieceList;r.hasSpecialVisual=!1,T(e,function(t,a){t.originIndex=a,t.visual!=null&&(r.hasSpecialVisual=!0)})}function UT(r){var e=r.categories,t=r.categoryMap={},a=r.visual;if(kn(e,function(o,s){t[o]=s}),!N(a)){var n=[];K(a)?kn(a,function(o,s){var l=t[s];n[l??io]=o}):n[io]=a,a=dy(r,n)}for(var i=e.length-1;i>=0;i--)a[i]==null&&(delete t[e[i]],e.pop())}function ds(r,e){var t=r.visual,a=[];K(t)?kn(t,function(i){a.push(i)}):t!=null&&a.push(t);var n={color:1,symbol:1};!e&&a.length===1&&!n.hasOwnProperty(r.type)&&(a[1]=a[0]),dy(r,a)}function yi(r){return{applyVisual:function(e,t,a){var n=this.mapValueToVisual(e);a("color",r(t("color"),n))},_normalizedToVisual:kl([0,1])}}function Pv(r){var e=this.option.visual;return e[Math.round(it(r,[0,1],[0,e.length-1],!0))]||{}}function Ha(r){return function(e,t,a){a(r,this.mapValueToVisual(e))}}function qa(r){var e=this.option.visual;return e[this.option.loop&&r!==io?r%e.length:r]}function Sr(){return this.option.visual[0]}function kl(r){return{linear:function(e){return it(e,r,this.option.visual,!0)},category:qa,piecewise:function(e,t){var a=Pl.call(this,t);return a==null&&(a=it(e,r,this.option.visual,!0)),a},fixed:Sr}}function Pl(r){var e=this.option,t=e.pieceList;if(e.hasSpecialVisual){var a=ze.findPieceIndex(r,t),n=t[a];if(n&&n.visual)return n.visual[this.type]}}function dy(r,e){return r.visual=e,r.type==="color"&&(r.parsedVisual=X(e,function(t){var a=Zh(t);return a||[0,0,0,1]})),e}var YT={linear:function(r){return it(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var e=this.option.pieceList,t=ze.findPieceIndex(r,e,!0);if(t!=null)return it(t,[0,e.length-1],[0,1],!0)},category:function(r){var e=this.option.categories?this.option.categoryMap[r]:r;return e??io},fixed:nt};function mi(r,e,t){return r?e<=t:e<t}function XT(r){var e=r.findComponents({mainType:"legend"});!e||!e.length||r.eachSeriesByType("graph",function(t){var a=t.getCategoriesData(),n=t.getGraph(),i=n.data,o=a.mapArray(a.getName);i.filterSelf(function(s){var l=i.getItemModel(s),u=l.getShallow("category");if(u!=null){oe(u)&&(u=o[u]);for(var f=0;f<e.length;f++)if(!e[f].isSelected(u))return!1}return!0})})}function ZT(r){var e={};r.eachSeriesByType("graph",function(t){var a=t.getCategoriesData(),n=t.getData(),i={};a.each(function(o){var s=a.getName(o);i["ec-"+s]=o;var l=a.getItemModel(o),u=l.getModel("itemStyle").getItemStyle();u.fill||(u.fill=t.getColorFromPalette(s,e)),a.setItemVisual(o,"style",u);for(var f=["symbol","symbolSize","symbolKeepAspect"],c=0;c<f.length;c++){var h=l.getShallow(f[c],!0);h!=null&&a.setItemVisual(o,f[c],h)}}),a.count()&&n.each(function(o){var s=n.getItemModel(o),l=s.getShallow("category");if(l!=null){Z(l)&&(l=i["ec-"+l]);var u=a.getItemVisual(l,"style"),f=n.ensureUniqueItemVisual(o,"style");F(f,u);for(var c=["symbol","symbolSize","symbolKeepAspect"],h=0;h<c.length;h++)n.setItemVisual(o,c[h],a.getItemVisual(l,c[h]))}})})}function _i(r){return r instanceof Array||(r=[r,r]),r}function $T(r){r.eachSeriesByType("graph",function(e){var t=e.getGraph(),a=e.getEdgeData(),n=_i(e.get("edgeSymbol")),i=_i(e.get("edgeSymbolSize"));a.setVisual("fromSymbol",n&&n[0]),a.setVisual("toSymbol",n&&n[1]),a.setVisual("fromSymbolSize",i&&i[0]),a.setVisual("toSymbolSize",i&&i[1]),a.setVisual("style",e.getModel("lineStyle").getLineStyle()),a.each(function(o){var s=a.getItemModel(o),l=t.getEdgeByIndex(o),u=_i(s.getShallow("symbol",!0)),f=_i(s.getShallow("symbolSize",!0)),c=s.getModel("lineStyle").getLineStyle(),h=a.ensureUniqueItemVisual(o,"style");switch(F(h,c),h.stroke){case"source":{var v=l.node1.getVisual("style");h.stroke=v&&v.fill;break}case"target":{var v=l.node2.getVisual("style");h.stroke=v&&v.fill;break}}u[0]&&l.setVisual("fromSymbol",u[0]),u[1]&&l.setVisual("toSymbol",u[1]),f[0]&&l.setVisual("fromSymbolSize",f[0]),f[1]&&l.setVisual("toSymbolSize",f[1])})})}var Rl="-->",Do=function(r){return r.get("autoCurveness")||null},py=function(r,e){var t=Do(r),a=20,n=[];if(oe(t))a=t;else if(N(t)){r.__curvenessList=t;return}e>a&&(a=e);var i=a%2?a+2:a+3;n=[];for(var o=0;o<i;o++)n.push((o%2?o+1:o)/10*(o%2?-1:1));r.__curvenessList=n},Pn=function(r,e,t){var a=[r.id,r.dataIndex].join("."),n=[e.id,e.dataIndex].join(".");return[t.uid,a,n].join(Rl)},gy=function(r){var e=r.split(Rl);return[e[0],e[2],e[1]].join(Rl)},KT=function(r,e){var t=Pn(r.node1,r.node2,e);return e.__edgeMap[t]},qT=function(r,e){var t=El(Pn(r.node1,r.node2,e),e),a=El(Pn(r.node2,r.node1,e),e);return t+a},El=function(r,e){var t=e.__edgeMap;return t[r]?t[r].length:0};function jT(r){Do(r)&&(r.__curvenessList=[],r.__edgeMap={},py(r))}function QT(r,e,t,a){if(Do(t)){var n=Pn(r,e,t),i=t.__edgeMap,o=i[gy(n)];i[n]&&!o?i[n].isForward=!0:o&&i[n]&&(o.isForward=!0,i[n].isForward=!1),i[n]=i[n]||[],i[n].push(a)}}function Xu(r,e,t,a){var n=Do(e),i=N(n);if(!n)return null;var o=KT(r,e);if(!o)return null;for(var s=-1,l=0;l<o.length;l++)if(o[l]===t){s=l;break}var u=qT(r,e);py(e,u),r.lineStyle=r.lineStyle||{};var f=Pn(r.node1,r.node2,e),c=e.__curvenessList,h=i||u%2?0:1;if(o.isForward)return c[h+s];var v=gy(f),d=El(v,e),p=c[s+d+h];return a?i?n&&n[0]===0?(d+h)%2?p:-p:((d%2?0:1)+h)%2?p:-p:(d+h)%2?p:-p:c[s+d+h]}function yy(r){var e=r.coordinateSystem;if(!(e&&e.type!=="view")){var t=r.getGraph();t.eachNode(function(a){var n=a.getModel();a.setLayout([+n.get("x"),+n.get("y")])}),Zu(t,r)}}function Zu(r,e){r.eachEdge(function(t,a){var n=Rr(t.getModel().get(["lineStyle","curveness"]),-Xu(t,e,a,!0),0),i=rr(t.node1.getLayout()),o=rr(t.node2.getLayout()),s=[i,o];+n&&s.push([(i[0]+o[0])/2-(i[1]-o[1])*n,(i[1]+o[1])/2-(o[0]-i[0])*n]),t.setLayout(s)})}function JT(r,e){r.eachSeriesByType("graph",function(t){var a=t.get("layout"),n=t.coordinateSystem;if(n&&n.type!=="view"){var i=t.getData(),o=[];T(n.dimensions,function(h){o=o.concat(i.mapDimensionsAll(h))});for(var s=0;s<i.count();s++){for(var l=[],u=!1,f=0;f<o.length;f++){var c=i.get(o[f],s);isNaN(c)||(u=!0),l.push(c)}u?i.setItemLayout(s,n.dataToPoint(l)):i.setItemLayout(s,[NaN,NaN])}Zu(i.graph,t)}else(!a||a==="none")&&yy(t)})}function ja(r){var e=r.coordinateSystem;if(e.type!=="view")return 1;var t=r.option.nodeScaleRatio,a=e.scaleX,n=e.getZoom(),i=(n-1)*t+1;return i/a}function Qa(r){var e=r.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),+e}var Rv=Math.PI,ps=[];function $u(r,e,t,a){var n=r.coordinateSystem;if(!(n&&n.type!=="view")){var i=n.getBoundingRect(),o=r.getData(),s=o.graph,l=i.width/2+i.x,u=i.height/2+i.y,f=Math.min(i.width,i.height)/2,c=o.count();if(o.setLayout({cx:l,cy:u}),!!c){if(t){var h=n.pointToData(a),v=h[0],d=h[1],p=[v-l,d-u];zn(p,p),pm(p,p,f),t.setLayout([l+p[0],u+p[1]],!0);var y=r.get(["circular","rotateLabel"]);my(t,y,l,u)}eC[e](r,s,o,f,l,u,c),s.eachEdge(function(g,m){var _=Rr(g.getModel().get(["lineStyle","curveness"]),Xu(g,r,m),0),S=rr(g.node1.getLayout()),b=rr(g.node2.getLayout()),x,w=(S[0]+b[0])/2,D=(S[1]+b[1])/2;+_&&(_*=3,x=[l*_+w*(1-_),u*_+D*(1-_)]),g.setLayout([S,b,x])})}}}var eC={value:function(r,e,t,a,n,i,o){var s=0,l=t.getSum("value"),u=Math.PI*2/(l||o);e.eachNode(function(f){var c=f.getValue("value"),h=u*(l?c:1)/2;s+=h,f.setLayout([a*Math.cos(s)+n,a*Math.sin(s)+i]),s+=h})},symbolSize:function(r,e,t,a,n,i,o){var s=0;ps.length=o;var l=ja(r);e.eachNode(function(c){var h=Qa(c);isNaN(h)&&(h=2),h<0&&(h=0),h*=l;var v=Math.asin(h/2/a);isNaN(v)&&(v=Rv/2),ps[c.dataIndex]=v,s+=v*2});var u=(2*Rv-s)/o/2,f=0;e.eachNode(function(c){var h=u+ps[c.dataIndex];f+=h,(!c.getLayout()||!c.getLayout().fixed)&&c.setLayout([a*Math.cos(f)+n,a*Math.sin(f)+i]),f+=h})}};function my(r,e,t,a){var n=r.getGraphicEl();if(n){var i=r.getModel(),o=i.get(["label","rotate"])||0,s=n.getSymbolPath();if(e){var l=r.getLayout(),u=Math.atan2(l[1]-a,l[0]-t);u<0&&(u=Math.PI*2+u);var f=l[0]<t;f&&(u=u-Math.PI);var c=f?"left":"right";s.setTextConfig({rotation:-u,position:c,origin:"center"});var h=s.ensureState("emphasis");F(h.textConfig||(h.textConfig={}),{position:c})}else s.setTextConfig({rotation:o*=Math.PI/180})}}function tC(r){r.eachSeriesByType("graph",function(e){e.get("layout")==="circular"&&$u(e,"symbolSize")})}var jr=zs;function rC(r,e,t){for(var a=r,n=e,i=t.rect,o=i.width,s=i.height,l=[i.x+o/2,i.y+s/2],u=t.gravity==null?.1:t.gravity,f=0;f<a.length;f++){var c=a[f];c.p||(c.p=gm(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),c.pp=rr(c.p),c.edges=null}var h=t.friction==null?.6:t.friction,v=h,d,p;return{warmUp:function(){v=h*.8},setFixed:function(y){a[y].fixed=!0},setUnfixed:function(y){a[y].fixed=!1},beforeStep:function(y){d=y},afterStep:function(y){p=y},step:function(y){d&&d(a,n);for(var g=[],m=a.length,_=0;_<n.length;_++){var S=n[_];if(!S.ignoreForceLayout){var b=S.n1,x=S.n2;na(g,x.p,b.p);var w=vf(g)-S.d,D=x.w/(b.w+x.w);isNaN(D)&&(D=0),zn(g,g),!b.fixed&&jr(b.p,b.p,g,D*w*v),!x.fixed&&jr(x.p,x.p,g,-(1-D)*w*v)}}for(var _=0;_<m;_++){var M=a[_];M.fixed||(na(g,l,M.p),jr(M.p,M.p,g,u*v))}for(var _=0;_<m;_++)for(var b=a[_],A=_+1;A<m;A++){var x=a[A];na(g,x.p,b.p);var w=vf(g);w===0&&(ym(g,Math.random()-.5,Math.random()-.5),w=1);var C=(b.rep+x.rep)/w/w;!b.fixed&&jr(b.pp,b.pp,g,C),!x.fixed&&jr(x.pp,x.pp,g,-C)}for(var I=[],_=0;_<m;_++){var M=a[_];M.fixed||(na(I,M.p,M.pp),jr(M.p,M.p,I,v),He(M.pp,M.p))}v=v*.992;var L=v<.01;p&&p(a,n,L),y&&y(L)}}}function aC(r){r.eachSeriesByType("graph",function(e){var t=e.coordinateSystem;if(!(t&&t.type!=="view"))if(e.get("layout")==="force"){var a=e.preservedPoints||{},n=e.getGraph(),i=n.data,o=n.edgeData,s=e.getModel("force"),l=s.get("initLayout");e.preservedPoints?i.each(function(_){var S=i.getId(_);i.setItemLayout(_,a[S]||[NaN,NaN])}):!l||l==="none"?yy(e):l==="circular"&&$u(e,"value");var u=i.getDataExtent("value"),f=o.getDataExtent("value"),c=s.get("repulsion"),h=s.get("edgeLength"),v=N(c)?c:[c,c],d=N(h)?h:[h,h];d=[d[1],d[0]];var p=i.mapArray("value",function(_,S){var b=i.getItemLayout(S),x=it(_,u,v);return isNaN(x)&&(x=(v[0]+v[1])/2),{w:x,rep:x,fixed:i.getItemModel(S).get("fixed"),p:!b||isNaN(b[0])||isNaN(b[1])?null:b}}),y=o.mapArray("value",function(_,S){var b=n.getEdgeByIndex(S),x=it(_,f,d);isNaN(x)&&(x=(d[0]+d[1])/2);var w=b.getModel(),D=Rr(b.getModel().get(["lineStyle","curveness"]),-Xu(b,e,S,!0),0);return{n1:p[b.node1.dataIndex],n2:p[b.node2.dataIndex],d:x,curveness:D,ignoreForceLayout:w.get("ignoreForceLayout")}}),g=t.getBoundingRect(),m=rC(p,y,{rect:g,gravity:s.get("gravity"),friction:s.get("friction")});m.beforeStep(function(_,S){for(var b=0,x=_.length;b<x;b++)_[b].fixed&&He(_[b].p,n.getNodeByIndex(b).getLayout())}),m.afterStep(function(_,S,b){for(var x=0,w=_.length;x<w;x++)_[x].fixed||n.getNodeByIndex(x).setLayout(_[x].p),a[i.getId(x)]=_[x].p;for(var x=0,w=S.length;x<w;x++){var D=S[x],M=n.getEdgeByIndex(x),A=D.n1.p,C=D.n2.p,I=M.getLayout();I=I?I.slice():[],I[0]=I[0]||[],I[1]=I[1]||[],He(I[0],A),He(I[1],C),+D.curveness&&(I[2]=[(A[0]+C[0])/2-(A[1]-C[1])*D.curveness,(A[1]+C[1])/2-(C[0]-A[0])*D.curveness]),M.setLayout(I)}}),e.forceLayout=m,e.preservedPoints=a,m.step()}else e.forceLayout=null})}function nC(r,e,t){var a=Nr(r,e),n=F(r.getBoxLayoutParams(),{aspect:t}),i=qe(n,a.refContainer);return D_(r,i,t)}function iC(r,e){var t=[];return r.eachSeriesByType("graph",function(a){mu({targetModel:a,coordSysType:"view",coordSysProvider:n,isDefaultDataCoordSys:!0});function n(){var i=a.getData(),o=i.mapArray(function(d){var p=i.getItemModel(d);return[+p.get("x"),+p.get("y")]}),s=[],l=[];mm(o,s,l),l[0]-s[0]===0&&(l[0]+=1,s[0]-=1),l[1]-s[1]===0&&(l[1]+=1,s[1]-=1);var u=(l[0]-s[0])/(l[1]-s[1]),f=nC(a,e,u);isNaN(u)&&(s=[f.x,f.y],l=[f.x+f.width,f.y+f.height]);var c=l[0]-s[0],h=l[1]-s[1],v=new vy(null,{api:e,ecModel:r});return v.zoomLimit=a.get("scaleLimit"),v.setBoundingRect(s[0],s[1],c,h),v.setViewRect(f.x,f.y,f.width,f.height),v.setCenter(a.get("center")),v.setZoom(a.get("zoom")),t.push(v),v}}),t}var Ev=nr.prototype,gs=Ul.prototype,_y=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r})();(function(r){U(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e})(_y);function ys(r){return isNaN(+r.cpx1)||isNaN(+r.cpy1)}var Sy=(function(r){U(e,r);function e(t){var a=r.call(this,t)||this;return a.type="ec-line",a}return e.prototype.getDefaultStyle=function(){return{stroke:B.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new _y},e.prototype.buildPath=function(t,a){ys(a)?Ev.buildPath.call(this,t,a):gs.buildPath.call(this,t,a)},e.prototype.pointAt=function(t){return ys(this.shape)?Ev.pointAt.call(this,t):gs.pointAt.call(this,t)},e.prototype.tangentAt=function(t){var a=this.shape,n=ys(a)?[a.x2-a.x1,a.y2-a.y1]:gs.tangentAt.call(this,t);return zn(n,n)},e})(Be),ms=["fromSymbol","toSymbol"];function Ov(r){return"_"+r+"Type"}function Nv(r,e,t){var a=e.getItemVisual(t,r);if(!a||a==="none")return a;var n=e.getItemVisual(t,r+"Size"),i=e.getItemVisual(t,r+"Rotate"),o=e.getItemVisual(t,r+"Offset"),s=e.getItemVisual(t,r+"KeepAspect"),l=bo(n),u=wo(o||0,l);return a+l+u+(i||"")+(s||"")}function Bv(r,e,t){var a=e.getItemVisual(t,r);if(!(!a||a==="none")){var n=e.getItemVisual(t,r+"Size"),i=e.getItemVisual(t,r+"Rotate"),o=e.getItemVisual(t,r+"Offset"),s=e.getItemVisual(t,r+"KeepAspect"),l=bo(n),u=wo(o||0,l),f=dt(a,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return f.__specifiedRotation=i==null||isNaN(i)?void 0:+i*Math.PI/180||0,f.name=r,f}}function oC(r){var e=new Sy({name:"line",subPixelOptimize:!0});return Ol(e.shape,r),e}function Ol(r,e){r.x1=e[0][0],r.y1=e[0][1],r.x2=e[1][0],r.y2=e[1][1],r.percent=1;var t=e[2];t?(r.cpx1=t[0],r.cpy1=t[1]):(r.cpx1=NaN,r.cpy1=NaN)}var sC=(function(r){U(e,r);function e(t,a,n){var i=r.call(this)||this;return i._createLine(t,a,n),i}return e.prototype._createLine=function(t,a,n){var i=t.hostModel,o=t.getItemLayout(a),s=t.getItemVisual(a,"z2"),l=oC(o);l.shape.percent=0,Pe(l,{z2:j(s,0),shape:{percent:1}},i,a),this.add(l),T(ms,function(u){var f=Bv(u,t,a);this.add(f),this[Ov(u)]=Nv(u,t,a)},this),this._updateCommonStl(t,a,n)},e.prototype.updateData=function(t,a,n){var i=t.hostModel,o=this.childOfName("line"),s=t.getItemLayout(a),l={shape:{}};Ol(l.shape,s),Se(o,l,i,a),T(ms,function(u){var f=Nv(u,t,a),c=Ov(u);if(this[c]!==f){this.remove(this.childOfName(u));var h=Bv(u,t,a);this.add(h)}this[c]=f},this),this._updateCommonStl(t,a,n)},e.prototype.getLinePath=function(){return this.childAt(0)},e.prototype._updateCommonStl=function(t,a,n){var i=t.hostModel,o=this.childOfName("line"),s=n&&n.emphasisLineStyle,l=n&&n.blurLineStyle,u=n&&n.selectLineStyle,f=n&&n.labelStatesModels,c=n&&n.emphasisDisabled,h=n&&n.focus,v=n&&n.blurScope;if(!n||t.hasItemOption){var d=t.getItemModel(a),p=d.getModel("emphasis");s=p.getModel("lineStyle").getLineStyle(),l=d.getModel(["blur","lineStyle"]).getLineStyle(),u=d.getModel(["select","lineStyle"]).getLineStyle(),c=p.get("disabled"),h=p.get("focus"),v=p.get("blurScope"),f=Mt(d)}var y=t.getItemVisual(a,"style"),g=y.stroke;o.useStyle(y),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=s,o.ensureState("blur").style=l,o.ensureState("select").style=u,T(ms,function(x){var w=this.childOfName(x);if(w){w.setColor(g),w.style.opacity=y.opacity;for(var D=0;D<Xe.length;D++){var M=Xe[D],A=o.getState(M);if(A){var C=A.style||{},I=w.ensureState(M),L=I.style||(I.style={});C.stroke!=null&&(L[w.__isEmptyBrush?"stroke":"fill"]=C.stroke),C.opacity!=null&&(L.opacity=C.opacity)}}w.markRedraw()}},this);var m=i.getRawValue(a);ur(this,f,{labelDataIndex:a,labelFetcher:{getFormattedLabel:function(x,w){return i.getFormattedLabel(x,w,t.dataType)}},inheritColor:g||B.color.neutral99,defaultOpacity:y.opacity,defaultText:(m==null?t.getName(a):isFinite(m)?ke(m):m)+""});var _=this.getTextContent();if(_){var S=f.normal;_.__align=_.style.align,_.__verticalAlign=_.style.verticalAlign,_.__position=S.get("position")||"middle";var b=S.get("distance");N(b)||(b=[b,b]),_.__labelDistance=b}this.setTextConfig({position:null,local:!0,inside:!1}),Vt(this,h,v,c)},e.prototype.highlight=function(){hn(this)},e.prototype.downplay=function(){dn(this)},e.prototype.updateLayout=function(t,a){this.setLinePoints(t.getItemLayout(a))},e.prototype.setLinePoints=function(t){var a=this.childOfName("line");Ol(a.shape,t),a.dirty()},e.prototype.beforeUpdate=function(){var t=this,a=t.childOfName("fromSymbol"),n=t.childOfName("toSymbol"),i=t.getTextContent();if(!a&&!n&&(!i||i.ignore))return;for(var o=1,s=this.parent;s;)s.scaleX&&(o/=s.scaleX),s=s.parent;var l=t.childOfName("line");if(!this.__dirty&&!l.__dirty)return;var u=l.shape.percent,f=l.pointAt(0),c=l.pointAt(u),h=na([],c,f);zn(h,h);function v(A,C){var I=A.__specifiedRotation;if(I==null){var L=l.tangentAt(C);A.attr("rotation",(C===1?-1:1)*Math.PI/2-Math.atan2(L[1],L[0]))}else A.attr("rotation",I)}if(a&&(a.setPosition(f),v(a,0),a.scaleX=a.scaleY=o*u,a.markRedraw()),n&&(n.setPosition(c),v(n,1),n.scaleX=n.scaleY=o*u,n.markRedraw()),i&&!i.ignore){i.x=i.y=0,i.originX=i.originY=0;var d=void 0,p=void 0,y=i.__labelDistance,g=y[0]*o,m=y[1]*o,_=u/2,S=l.tangentAt(_),b=[S[1],-S[0]],x=l.pointAt(_);b[1]>0&&(b[0]=-b[0],b[1]=-b[1]);var w=S[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var D=-Math.atan2(S[1],S[0]);c[0]<f[0]&&(D=Math.PI+D),i.rotation=D}var M=void 0;switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":M=-m,p="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":M=m,p="top";break;default:M=0,p="middle"}switch(i.__position){case"end":i.x=h[0]*g+c[0],i.y=h[1]*m+c[1],d=h[0]>.8?"left":h[0]<-.8?"right":"center",p=h[1]>.8?"top":h[1]<-.8?"bottom":"middle";break;case"start":i.x=-h[0]*g+f[0],i.y=-h[1]*m+f[1],d=h[0]>.8?"right":h[0]<-.8?"left":"center",p=h[1]>.8?"bottom":h[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=g*w+f[0],i.y=f[1]+M,d=S[0]<0?"right":"left",i.originX=-g*w,i.originY=-M;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=x[0],i.y=x[1]+M,d="center",i.originY=-M;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-g*w+c[0],i.y=c[1]+M,d=S[0]>=0?"right":"left",i.originX=g*w,i.originY=-M;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||p,align:i.__align||d})}},e})(le),lC=(function(){function r(e){this.group=new le,this._LineCtor=e||sC}return r.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var a=this,n=a.group,i=a._lineData;a._lineData=e,i||n.removeAll();var o=Vv(e);e.diff(i).add(function(s){t._doAdd(e,s,o)}).update(function(s,l){t._doUpdate(i,e,l,s,o)}).remove(function(s){n.remove(i.getItemGraphicEl(s))}).execute()},r.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(t,a){t.updateLayout(e,a)},this)},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=Vv(e),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t){this._progressiveEls=[];function a(s){!s.isGroup&&!uC(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var n=e.start;n<e.end;n++){var i=t.getItemLayout(n);if(_s(i)){var o=new this._LineCtor(t,n,this._seriesScope);o.traverse(a),this.group.add(o),t.setItemGraphicEl(n,o),this._progressiveEls.push(o)}}},r.prototype.remove=function(){this.group.removeAll()},r.prototype.eachRendered=function(e){Or(this._progressiveEls||this.group,e)},r.prototype._doAdd=function(e,t,a){var n=e.getItemLayout(t);if(_s(n)){var i=new this._LineCtor(e,t,a);e.setItemGraphicEl(t,i),this.group.add(i)}},r.prototype._doUpdate=function(e,t,a,n,i){var o=e.getItemGraphicEl(a);if(!_s(t.getItemLayout(n))){this.group.remove(o);return}o?o.updateData(t,n,i):o=new this._LineCtor(t,n,i),t.setItemGraphicEl(n,o),this.group.add(o)},r})();function uC(r){return r.animators&&r.animators.length>0}function Vv(r){var e=r.hostModel,t=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:t.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:t.get("disabled"),blurScope:t.get("blurScope"),focus:t.get("focus"),labelStatesModels:Mt(e)}}function zv(r){return isNaN(r[0])||isNaN(r[1])}function _s(r){return r&&!zv(r[0])&&!zv(r[1])}var Ss=[],xs=[],bs=[],Qr=Sm,ws=xm,Gv=Math.abs;function Fv(r,e,t){for(var a=r[0],n=r[1],i=r[2],o=1/0,s,l=t*t,u=.1,f=.1;f<=.9;f+=.1){Ss[0]=Qr(a[0],n[0],i[0],f),Ss[1]=Qr(a[1],n[1],i[1],f);var c=Gv(ws(Ss,e)-l);c<o&&(o=c,s=f)}for(var h=0;h<32;h++){var v=s+u;xs[0]=Qr(a[0],n[0],i[0],s),xs[1]=Qr(a[1],n[1],i[1],s),bs[0]=Qr(a[0],n[0],i[0],v),bs[1]=Qr(a[1],n[1],i[1],v);var c=ws(xs,e)-l;if(Gv(c)<.01)break;var d=ws(bs,e)-l;u/=2,c<0?d>=0?s=s+u:s=s-u:d>=0?s=s-u:s=s+u}return s}function Ts(r,e){var t=[],a=_m,n=[[],[],[]],i=[[],[]],o=[];e/=2,r.eachEdge(function(s,l){var u=s.getLayout(),f=s.getVisual("fromSymbol"),c=s.getVisual("toSymbol");u.__original||(u.__original=[rr(u[0]),rr(u[1])],u[2]&&u.__original.push(rr(u[2])));var h=u.__original;if(u[2]!=null){if(He(n[0],h[0]),He(n[1],h[2]),He(n[2],h[1]),f&&f!=="none"){var v=Qa(s.node1),d=Fv(n,h[0],v*e);a(n[0][0],n[1][0],n[2][0],d,t),n[0][0]=t[3],n[1][0]=t[4],a(n[0][1],n[1][1],n[2][1],d,t),n[0][1]=t[3],n[1][1]=t[4]}if(c&&c!=="none"){var v=Qa(s.node2),d=Fv(n,h[1],v*e);a(n[0][0],n[1][0],n[2][0],d,t),n[1][0]=t[1],n[2][0]=t[2],a(n[0][1],n[1][1],n[2][1],d,t),n[1][1]=t[1],n[2][1]=t[2]}He(u[0],n[0]),He(u[1],n[2]),He(u[2],n[1])}else{if(He(i[0],h[0]),He(i[1],h[1]),na(o,i[1],i[0]),zn(o,o),f&&f!=="none"){var v=Qa(s.node1);zs(i[0],i[0],o,v*e)}if(c&&c!=="none"){var v=Qa(s.node2);zs(i[1],i[1],o,-v*e)}He(u[0],i[0]),He(u[1],i[1])}})}var fC=ne();function cC(r){if(r)return fC(r).bridge}function Hv(r){return r.type==="view"}var vC=(function(r){U(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a){var n=new Pg,i=new lC,o=this.group,s=new le;this._controller=new AT(a.getZr()),this._controllerHost={target:s},s.add(n.group),s.add(i.group),o.add(s),this._symbolDraw=n,this._lineDraw=i,this._mainGroup=s,this._firstRender=!0},e.prototype.render=function(t,a,n){var i=this,o=t.coordinateSystem,s=!1;this._model=t,this._api=n,this._active=!0;var l=this._getThumbnailInfo();l&&l.bridge.reset(n);var u=this._symbolDraw,f=this._lineDraw;if(Hv(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?this._mainGroup.attr(c):Se(this._mainGroup,c,t)}Ts(t.getGraph(),ja(t));var h=t.getData();u.updateData(h);var v=t.getEdgeData();f.updateData(v),this._updateNodeAndLinkScale(),this._updateController(null,t,n),clearTimeout(this._layoutTimeout);var d=t.forceLayout,p=t.get(["force","layoutAnimation"]);d&&(s=!0,this._startForceLayoutIteration(d,n,p));var y=t.get("layout");h.graph.eachNode(function(S){var b=S.dataIndex,x=S.getGraphicEl(),w=S.getModel();if(x){x.off("drag").off("dragend");var D=w.get("draggable");D&&x.on("drag",function(A){switch(y){case"force":d.warmUp(),!i._layouting&&i._startForceLayoutIteration(d,n,p),d.setFixed(b),h.setItemLayout(b,[x.x,x.y]);break;case"circular":h.setItemLayout(b,[x.x,x.y]),S.setLayout({fixed:!0},!0),$u(t,"symbolSize",S,[A.offsetX,A.offsetY]),i.updateLayout(t);break;default:h.setItemLayout(b,[x.x,x.y]),Zu(t.getGraph(),t),i.updateLayout(t);break}}).on("dragend",function(){d&&d.setUnfixed(b)}),x.setDraggable(D,!!w.get("cursor"));var M=w.get(["emphasis","focus"]);M==="adjacency"&&(te(x).focus=S.getAdjacentDataIndices())}}),h.graph.eachEdge(function(S){var b=S.getGraphicEl(),x=S.getModel().get(["emphasis","focus"]);b&&x==="adjacency"&&(te(b).focus={edge:[S.dataIndex],node:[S.node1.dataIndex,S.node2.dataIndex]})});var g=t.get("layout")==="circular"&&t.get(["circular","rotateLabel"]),m=h.getLayout("cx"),_=h.getLayout("cy");h.graph.eachNode(function(S){my(S,g,m,_)}),this._firstRender=!1,s||this._renderThumbnail(t,n,this._symbolDraw,this._lineDraw)},e.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,a,n){var i=this,o=!1;(function s(){t.step(function(l){i.updateLayout(i._model),(l||!o)&&(o=!0,i._renderThumbnail(i._model,a,i._symbolDraw,i._lineDraw)),(i._layouting=!l)&&(n?i._layoutTimeout=setTimeout(s,16):s())})})()},e.prototype._updateController=function(t,a,n){var i=this._controller,o=this._controllerHost,s=a.coordinateSystem;if(!Hv(s)){i.disable();return}i.enable(a.get("roam"),{api:n,zInfo:{component:a},triggerInfo:{roamTrigger:a.get("roamTrigger"),isInSelf:function(l,u,f){return s.containPoint([u,f])},isInClip:function(l,u,f){return!t||t.contain(u,f)}}}),o.zoomLimit=a.get("scaleLimit"),o.zoom=s.getZoom(),i.off("pan").off("zoom").on("pan",function(l){n.dispatchAction({seriesId:a.id,type:"graphRoam",dx:l.dx,dy:l.dy})}).on("zoom",function(l){n.dispatchAction({seriesId:a.id,type:"graphRoam",zoom:l.scale,originX:l.originX,originY:l.originY})})},e.prototype.updateViewOnPan=function(t,a,n){this._active&&(PT(this._controllerHost,n.dx,n.dy),this._updateThumbnailWindow())},e.prototype.updateViewOnZoom=function(t,a,n){this._active&&(RT(this._controllerHost,n.zoom,n.originX,n.originY),this._updateNodeAndLinkScale(),Ts(t.getGraph(),ja(t)),this._lineDraw.updateLayout(),a.updateLabelLayout(),this._updateThumbnailWindow())},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,a=t.getData(),n=ja(t);a.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(n)})},e.prototype.updateLayout=function(t){this._active&&(Ts(t.getGraph(),ja(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout())},e.prototype.remove=function(){this._active=!1,clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove(),this._controller&&this._controller.disable()},e.prototype._getThumbnailInfo=function(){var t=this._model,a=t.coordinateSystem;if(a.type==="view"){var n=cC(t);if(n)return{bridge:n,coordSys:a}}},e.prototype._updateThumbnailWindow=function(){var t=this._getThumbnailInfo();t&&t.bridge.updateWindow(t.coordSys.transform,this._api)},e.prototype._renderThumbnail=function(t,a,n,i){var o=this._getThumbnailInfo();if(o){var s=new le,l=n.group.children(),u=i.group.children(),f=new le,c=new le;s.add(c),s.add(f);for(var h=0;h<l.length;h++){var v=l[h],d=v.children()[0],p=v.x,y=v.y,g=q(d.shape),m=F(g,{width:d.scaleX,height:d.scaleY,x:p-d.scaleX/2,y:y-d.scaleY/2}),_=q(d.style),S=new d.constructor({shape:m,style:_,z2:151});c.add(S)}for(var h=0;h<u.length;h++){var v=u[h],b=v.children()[0],_=q(b.style),m=q(b.shape),x=new Sy({style:_,shape:m,z2:151});f.add(x)}o.bridge.renderContent({api:a,roamType:t.get("roam"),viewportRect:null,group:s,targetTrans:o.coordSys.transform})}},e.type="graph",e})(Re);function Jr(r){return"_EC_"+r}var hC=(function(){function r(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return r.prototype.isDirected=function(){return this._directed},r.prototype.addNode=function(e,t){e=e==null?""+t:""+e;var a=this._nodesMap;if(!a[Jr(e)]){var n=new xr(e,t);return n.hostGraph=this,this.nodes.push(n),a[Jr(e)]=n,n}},r.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},r.prototype.getNodeById=function(e){return this._nodesMap[Jr(e)]},r.prototype.addEdge=function(e,t,a){var n=this._nodesMap,i=this._edgesMap;if(oe(e)&&(e=this.nodes[e]),oe(t)&&(t=this.nodes[t]),e instanceof xr||(e=n[Jr(e)]),t instanceof xr||(t=n[Jr(t)]),!(!e||!t)){var o=e.id+"-"+t.id,s=new xy(e,t,a);return s.hostGraph=this,this._directed&&(e.outEdges.push(s),t.inEdges.push(s)),e.edges.push(s),e!==t&&t.edges.push(s),this.edges.push(s),i[o]=s,s}},r.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},r.prototype.getEdge=function(e,t){e instanceof xr&&(e=e.id),t instanceof xr&&(t=t.id);var a=this._edgesMap;return this._directed?a[e+"-"+t]:a[e+"-"+t]||a[t+"-"+e]},r.prototype.eachNode=function(e,t){for(var a=this.nodes,n=a.length,i=0;i<n;i++)a[i].dataIndex>=0&&e.call(t,a[i],i)},r.prototype.eachEdge=function(e,t){for(var a=this.edges,n=a.length,i=0;i<n;i++)a[i].dataIndex>=0&&a[i].node1.dataIndex>=0&&a[i].node2.dataIndex>=0&&e.call(t,a[i],i)},r.prototype.breadthFirstTraverse=function(e,t,a,n){if(t instanceof xr||(t=this._nodesMap[Jr(t)]),!!t){for(var i=a==="out"?"outEdges":a==="in"?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!e.call(n,t,null))for(var s=[t];s.length;)for(var l=s.shift(),u=l[i],o=0;o<u.length;o++){var f=u[o],c=f.node1===l?f.node2:f.node1;if(!c.__visited){if(e.call(n,c,l))return;s.push(c),c.__visited=!0}}}},r.prototype.update=function(){for(var e=this.data,t=this.edgeData,a=this.nodes,n=this.edges,i=0,o=a.length;i<o;i++)a[i].dataIndex=-1;for(var i=0,o=e.count();i<o;i++)a[e.getRawIndex(i)].dataIndex=i;t.filterSelf(function(s){var l=n[t.getRawIndex(s)];return l.node1.dataIndex>=0&&l.node2.dataIndex>=0});for(var i=0,o=n.length;i<o;i++)n[i].dataIndex=-1;for(var i=0,o=t.count();i<o;i++)n[t.getRawIndex(i)].dataIndex=i},r.prototype.clone=function(){for(var e=new r(this._directed),t=this.nodes,a=this.edges,n=0;n<t.length;n++)e.addNode(t[n].id,t[n].dataIndex);for(var n=0;n<a.length;n++){var i=a[n];e.addEdge(i.node1.id,i.node2.id,i.dataIndex)}return e},r})(),xr=(function(){function r(e,t){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=e??"",this.dataIndex=t??-1}return r.prototype.degree=function(){return this.edges.length},r.prototype.inDegree=function(){return this.inEdges.length},r.prototype.outDegree=function(){return this.outEdges.length},r.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,a=t.data.getItemModel(this.dataIndex);return a.getModel(e)}},r.prototype.getAdjacentDataIndices=function(){for(var e={edge:[],node:[]},t=0;t<this.edges.length;t++){var a=this.edges[t];a.dataIndex<0||(e.edge.push(a.dataIndex),e.node.push(a.node1.dataIndex,a.node2.dataIndex))}return e},r.prototype.getTrajectoryDataIndices=function(){for(var e=ee(),t=ee(),a=0,n=this.edges.length;a<n;a++){var i=this.edges[a];if(!(i.dataIndex<0)){e.set(i.dataIndex,!0);for(var o=[i.node1],s=[i.node2],l=0;l<o.length;){var u=o[l];l++,t.set(u.dataIndex,!0);for(var f=u.inEdges,c=0,h=f.length,v=void 0,d=void 0;c<h;c++)v=f[c],d=v.dataIndex,d>=0&&!e.hasKey(d)&&(e.set(d,!0),o.push(v.node1))}for(l=0;l<s.length;){var p=s[l];l++,t.set(p.dataIndex,!0);for(var y=p.outEdges,c=0,g=y.length,m=void 0,_=void 0;c<g;c++)m=y[c],_=m.dataIndex,_>=0&&!e.hasKey(_)&&(e.set(_,!0),s.push(m.node2))}}}return{edge:e.keys(),node:t.keys()}},r})(),xy=(function(){function r(e,t,a){this.dataIndex=-1,this.node1=e,this.node2=t,this.dataIndex=a??-1}return r.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,a=t.edgeData.getItemModel(this.dataIndex);return a.getModel(e)}},r.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},r.prototype.getTrajectoryDataIndices=function(){var e=ee(),t=ee();e.set(this.dataIndex,!0);for(var a=[this.node1],n=[this.node2],i=0;i<a.length;){var o=a[i];i++,t.set(o.dataIndex,!0);for(var s=o.inEdges,l=0,u=s.length,f=void 0,c=void 0;l<u;l++)f=o.inEdges[l],c=f.dataIndex,c>=0&&!e.hasKey(c)&&(e.set(c,!0),a.push(f.node1))}for(i=0;i<n.length;){var h=n[i];i++,t.set(h.dataIndex,!0);for(var v=h.outEdges,l=0,u=v.length,d=void 0,p=void 0;l<u;l++)d=h.outEdges[l],p=d.dataIndex,p>=0&&!e.hasKey(p)&&(e.set(p,!0),n.push(d.node2))}return{edge:e.keys(),node:t.keys()}},r})();function by(r,e){return{getValue:function(t){var a=this[r][e];return a.getStore().get(a.getDimensionIndex(t||"value"),this.dataIndex)},setVisual:function(t,a){this.dataIndex>=0&&this[r][e].setItemVisual(this.dataIndex,t,a)},getVisual:function(t){return this[r][e].getItemVisual(this.dataIndex,t)},setLayout:function(t,a){this.dataIndex>=0&&this[r][e].setItemLayout(this.dataIndex,t,a)},getLayout:function(){return this[r][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[r][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[r][e].getRawIndex(this.dataIndex)}}}gt(xr,by("hostGraph","data"));gt(xy,by("hostGraph","edgeData"));function dC(r,e,t,a,n){for(var i=new hC(a),o=0;o<r.length;o++)i.addNode(Ar(r[o].id,r[o].name,o),o);for(var s=[],l=[],u=0,o=0;o<e.length;o++){var f=e[o],c=f.source,h=f.target;i.addEdge(c,h,u)&&(l.push(f),s.push(Ar(rt(f.id,null),c+" > "+h)),u++)}var v=t.get("coordinateSystem"),d;if(v==="cartesian2d"||v==="polar"||v==="matrix")d=wa(r,t);else{var p=Hn.get(v),y=p?p.dimensions||[]:[];fe(y,"value")<0&&y.concat(["value"]);var g=Co(r,{coordDimensions:y,encodeDefine:t.getEncode()}).dimensions;d=new Tn(g,t),d.initData(r)}var m=new Tn(["value"],t);return m.initData(l,s),n&&n(d,m),OT({mainData:d,struct:i,structAttr:"graph",datas:{node:d,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var pC=(function(r){U(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments);var a=this;function n(){return a._categoriesData}this.legendVisualProvider=new Gu(n,n),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(t){r.prototype.mergeDefaultAndTheme.apply(this,arguments),Bi(t,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,a){var n=t.edges||t.links||[],i=t.data||t.nodes||[],o=this;if(i&&n){jT(this);var s=dC(i,n,this,!0,l);return T(s.edges,function(u){QT(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,f){u.wrapMethod("getItemModel",function(d){var p=o._categoriesModels,y=d.getShallow("category"),g=p[y];return g&&(g.parentModel=d.parentModel,d.parentModel=g),d});var c=he.prototype.getModel;function h(d,p){var y=c.call(this,d,p);return y.resolveParentPath=v,y}f.wrapMethod("getItemModel",function(d){return d.resolveParentPath=v,d.getModel=h,d});function v(d){if(d&&(d[0]==="label"||d[1]==="label")){var p=d.slice();return d[0]==="label"?p[0]="edgeLabel":d[1]==="label"&&(p[1]="edgeLabel"),p}return d}}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,a,n){if(n==="edge"){var i=this.getData(),o=this.getDataParams(t,n),s=i.graph.getEdgeByIndex(t),l=i.getName(s.node1.dataIndex),u=i.getName(s.node2.dataIndex),f=[];return l!=null&&f.push(l),u!=null&&f.push(u),ir("nameValue",{name:f.join(" > "),value:o.value,noValue:o.value==null})}var c=yp({series:this,dataIndex:t,multipleSeries:a});return c},e.prototype._updateCategoriesData=function(){var t=X(this.option.categories||[],function(n){return n.value!=null?n:F({value:0},n)}),a=new Tn(["value"],this);a.initData(t),this._categoriesData=a,this._categoriesModels=a.mapArray(function(n){return a.getItemModel(n)})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return r.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:B.color.neutral50,width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:B.color.primary}}},e})(Ne);function jD(r){r.registerChartView(vC),r.registerSeriesModel(pC),r.registerProcessor(XT),r.registerVisual(ZT),r.registerVisual($T),r.registerLayout(JT),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,tC),r.registerLayout(aC),r.registerCoordinateSystem("graphView",{dimensions:vy.dimensions,create:iC}),r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},nt),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},nt),r.registerAction({type:"graphRoam",event:"graphRoam",update:"none"},function(e,t,a){t.eachComponent({mainType:"series",query:e},function(n){var i=a.getViewOfSeriesModel(n);i&&(e.dx!=null&&e.dy!=null&&i.updateViewOnPan(n,a,e),e.zoom!=null&&e.originX!=null&&e.originY!=null&&i.updateViewOnZoom(n,a,e));var o=n.coordinateSystem,s=ET(o,e,n.get("scaleLimit"));n.setCenter&&n.setCenter(s.center),n.setZoom&&n.setZoom(s.zoom)})})}function gC(r,e,t,a,n,i){r=r||0;var o=t[1]-t[0];if(n!=null&&(n=ea(n,[0,o])),i!=null&&(i=Math.max(i,n??0)),a==="all"){var s=Math.abs(e[1]-e[0]);s=ea(s,[0,o]),n=i=ea(s,[n,i]),a=0}e[0]=ea(e[0],t),e[1]=ea(e[1],t);var l=Cs(e,a);e[a]+=r;var u=n||0,f=t.slice();l.sign<0?f[0]+=u:f[1]-=u,e[a]=ea(e[a],f);var c;return c=Cs(e,a),n!=null&&(c.sign!==l.sign||c.span<n)&&(e[1-a]=e[a]+l.sign*n),c=Cs(e,a),i!=null&&c.span>i&&(e[1-a]=e[a]+c.sign*i),e}function Cs(r,e){var t=r[e]-r[1-e];return{span:Math.abs(t),sign:t>0?-1:t<0?1:e?-1:1}}function ea(r,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,r))}var yC=256,mC=(function(){function r(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=Ei.createCanvas();this.canvas=e}return r.prototype.update=function(e,t,a,n,i,o){var s=this._getBrush(),l=this._getGradient(i,"inRange"),u=this._getGradient(i,"outOfRange"),f=this.pointSize+this.blurSize,c=this.canvas,h=c.getContext("2d"),v=e.length;c.width=t,c.height=a;for(var d=0;d<v;++d){var p=e[d],y=p[0],g=p[1],m=p[2],_=n(m);h.globalAlpha=_,h.drawImage(s,y-f,g-f)}if(!c.width||!c.height)return c;for(var S=h.getImageData(0,0,c.width,c.height),b=S.data,x=0,w=b.length,D=this.minOpacity,M=this.maxOpacity,A=M-D;x<w;){var _=b[x+3]/256,C=Math.floor(_*(yC-1))*4;if(_>0){var I=o(_)?l:u;_>0&&(_=_*A+D),b[x++]=I[C],b[x++]=I[C+1],b[x++]=I[C+2],b[x++]=I[C+3]*_*256}else x+=4}return h.putImageData(S,0,0),c},r.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=Ei.createCanvas()),t=this.pointSize+this.blurSize,a=t*2;e.width=a,e.height=a;var n=e.getContext("2d");return n.clearRect(0,0,a,a),n.shadowOffsetX=a,n.shadowBlur=this.blurSize,n.shadowColor=B.color.neutral99,n.beginPath(),n.arc(-t,t,this.pointSize,0,Math.PI*2,!0),n.closePath(),n.fill(),e},r.prototype._getGradient=function(e,t){for(var a=this._gradientPixels,n=a[t]||(a[t]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],o=0,s=0;s<256;s++)e[t](s/255,!0,i),n[o++]=i[0],n[o++]=i[1],n[o++]=i[2],n[o++]=i[3];return n},r})();function _C(r,e,t){var a=r[1]-r[0];e=X(e,function(o){return{interval:[(o.interval[0]-r[0])/a,(o.interval[1]-r[0])/a]}});var n=e.length,i=0;return function(o){var s;for(s=i;s<n;s++){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}if(s===n)for(s=i-1;s>=0;s--){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}return s>=0&&s<n&&t[s]}}function SC(r,e){var t=r[1]-r[0];return e=[(e[0]-r[0])/t,(e[1]-r[0])/t],function(a){return a>=e[0]&&a<=e[1]}}function Wv(r){var e=r.dimensions;return e[0]==="lng"&&e[1]==="lat"}var xC=(function(r){U(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i;a.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===t&&(i=s)})}),this._progressiveEls=null,this.group.removeAll();var o=t.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"||o.type==="matrix"?this._renderOnGridLike(t,n,0,t.getData().count()):Wv(o)&&this._renderOnGeo(o,t,i,n)},e.prototype.incrementalPrepareRender=function(t,a,n){this.group.removeAll()},e.prototype.incrementalRender=function(t,a,n,i){var o=a.coordinateSystem;o&&(Wv(o)?this.render(a,n,i):(this._progressiveEls=[],this._renderOnGridLike(a,i,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){Or(this._progressiveEls||this.group,t)},e.prototype._renderOnGridLike=function(t,a,n,i,o){var s=t.coordinateSystem,l=An(s,"cartesian2d"),u=An(s,"matrix"),f,c,h,v;if(l){var d=s.getAxis("x"),p=s.getAxis("y");f=d.getBandWidth()+.5,c=p.getBandWidth()+.5,h=d.scale.getExtent(),v=p.scale.getExtent()}for(var y=this.group,g=t.getData(),m=t.getModel(["emphasis","itemStyle"]).getItemStyle(),_=t.getModel(["blur","itemStyle"]).getItemStyle(),S=t.getModel(["select","itemStyle"]).getItemStyle(),b=t.get(["itemStyle","borderRadius"]),x=Mt(t),w=t.getModel("emphasis"),D=w.get("focus"),M=w.get("blurScope"),A=w.get("disabled"),C=l||u?[g.mapDimension("x"),g.mapDimension("y"),g.mapDimension("value")]:[g.mapDimension("time"),g.mapDimension("value")],I=n;I<i;I++){var L=void 0,E=g.getItemVisual(I,"style");if(l){var k=g.get(C[0],I),P=g.get(C[1],I);if(isNaN(g.get(C[2],I))||isNaN(k)||isNaN(P)||k<h[0]||k>h[1]||P<v[0]||P>v[1])continue;var V=s.dataToPoint([k,P]);L=new ve({shape:{x:V[0]-f/2,y:V[1]-c/2,width:f,height:c},style:E})}else if(u){var R=s.dataToLayout([g.get(C[0],I),g.get(C[1],I)]).rect;if(Tr(R.x))continue;L=new ve({z2:1,shape:R,style:E})}else{if(isNaN(g.get(C[1],I)))continue;var O=s.dataToLayout([g.get(C[0],I)]),R=O.contentRect||O.rect;if(Tr(R.x)||Tr(R.y))continue;L=new ve({z2:1,shape:R,style:E})}if(g.hasItemOption){var z=g.getItemModel(I),H=z.getModel("emphasis");m=H.getModel("itemStyle").getItemStyle(),_=z.getModel(["blur","itemStyle"]).getItemStyle(),S=z.getModel(["select","itemStyle"]).getItemStyle(),b=z.get(["itemStyle","borderRadius"]),D=H.get("focus"),M=H.get("blurScope"),A=H.get("disabled"),x=Mt(z)}L.shape.r=b;var Y=t.getRawValue(I),J="-";Y&&Y[2]!=null&&(J=Y[2]+""),ur(L,x,{labelFetcher:t,labelDataIndex:I,defaultOpacity:E.opacity,defaultText:J}),L.ensureState("emphasis").style=m,L.ensureState("blur").style=_,L.ensureState("select").style=S,Vt(L,D,M,A),L.incremental=o,o&&(L.states.emphasis.hoverLayer=!0),y.add(L),g.setItemGraphicEl(I,L),this._progressiveEls&&this._progressiveEls.push(L)}},e.prototype._renderOnGeo=function(t,a,n,i){var o=n.targetVisuals.inRange,s=n.targetVisuals.outOfRange,l=a.getData(),u=this._hmLayer||this._hmLayer||new mC;u.blurSize=a.get("blurSize"),u.pointSize=a.get("pointSize"),u.minOpacity=a.get("minOpacity"),u.maxOpacity=a.get("maxOpacity");var f=t.getViewRect().clone(),c=t.getRoamTransform();f.applyTransform(c);var h=Math.max(f.x,0),v=Math.max(f.y,0),d=Math.min(f.width+f.x,i.getWidth()),p=Math.min(f.height+f.y,i.getHeight()),y=d-h,g=p-v,m=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],_=l.mapArray(m,function(w,D,M){var A=t.dataToPoint([w,D]);return A[0]-=h,A[1]-=v,A.push(M),A}),S=n.getExtent(),b=n.type==="visualMap.continuous"?SC(S,n.option.range):_C(S,n.getPieceList(),n.option.selected);u.update(_,y,g,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},b);var x=new Gt({style:{width:y,height:g,x:h,y:v,image:u.canvas},silent:!0});this.group.add(x)},e.type="heatmap",e})(Re),bC=(function(r){U(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,a){return wa(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=Hn.get(this.get("coordinateSystem"));if(t&&t.dimensions)return t.dimensions[0]==="lng"&&t.dimensions[1]==="lat"},e.type="series.heatmap",e.dependencies=["grid","geo","calendar","matrix"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:B.color.primary}}},e})(Ne);function QD(r){r.registerChartView(xC),r.registerSeriesModel(bC)}var Uv={color:"fill",borderColor:"stroke"},wC={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Nt=ne(),TC=(function(r){U(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,a){return wa(null,this)},e.prototype.getDataParams=function(t,a,n){var i=r.prototype.getDataParams.call(this,t,a);return n&&(i.info=Nt(n).info),i},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e})(Ne);function CC(r,e){return e=e||[0,0],X(["x","y"],function(t,a){var n=this.getAxis(t),i=e[a],o=r[a]/2;return n.type==="category"?n.getBandWidth():Math.abs(n.dataToCoord(i-o)-n.dataToCoord(i+o))},this)}function MC(r){var e=r.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return r.dataToPoint(t)},size:$(CC,r)}}}function DC(r,e){return e=e||[0,0],X([0,1],function(t){var a=e[t],n=r[t]/2,i=[],o=[];return i[t]=a-n,o[t]=a+n,i[1-t]=o[1-t]=e[1-t],Math.abs(this.dataToPoint(i)[t]-this.dataToPoint(o)[t])},this)}function AC(r){var e=r.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:r.getZoom()},api:{coord:function(t){return r.dataToPoint(t)},size:$(DC,r)}}}function LC(r,e){var t=this.getAxis(),a=e instanceof Array?e[0]:e,n=(r instanceof Array?r[0]:r)/2;return t.type==="category"?t.getBandWidth():Math.abs(t.dataToCoord(a-n)-t.dataToCoord(a+n))}function IC(r){var e=r.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return r.dataToPoint(t)},size:$(LC,r)}}}function kC(r,e){return e=e||[0,0],X(["Radius","Angle"],function(t,a){var n="get"+t+"Axis",i=this[n](),o=e[a],s=r[a]/2,l=i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(o-s)-i.dataToCoord(o+s));return t==="Angle"&&(l=l*Math.PI/180),l},this)}function PC(r){var e=r.getRadiusAxis(),t=r.getAngleAxis(),a=e.getExtent();return a[0]>a[1]&&a.reverse(),{coordSys:{type:"polar",cx:r.cx,cy:r.cy,r:a[1],r0:a[0]},api:{coord:function(n){var i=e.dataToRadius(n[0]),o=t.dataToAngle(n[1]),s=r.coordToPoint([i,o]);return s.push(i,o*Math.PI/180),s},size:$(kC,r)}}}function RC(r){var e=r.getRect(),t=r.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:r.getCellWidth(),cellHeight:r.getCellHeight(),rangeInfo:{start:t.start,end:t.end,weeks:t.weeks,dayCount:t.allDay}},api:{coord:function(a,n){return r.dataToPoint(a,n)},layout:function(a,n){return r.dataToLayout(a,n)}}}}function EC(r){var e=r.getRect();return{coordSys:{type:"matrix",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t,a){return r.dataToPoint(t,a)},layout:function(t,a){return r.dataToLayout(t,a)}}}}function OC(r,e,t,a){return r&&(r.legacy||r.legacy!==!1&&!t&&!a&&e!=="tspan"&&(e==="text"||G(r,"text")))}function NC(r,e,t){var a=r,n,i,o;if(e==="text")o=a;else{o={},G(a,"text")&&(o.text=a.text),G(a,"rich")&&(o.rich=a.rich),G(a,"textFill")&&(o.fill=a.textFill),G(a,"textStroke")&&(o.stroke=a.textStroke),G(a,"fontFamily")&&(o.fontFamily=a.fontFamily),G(a,"fontSize")&&(o.fontSize=a.fontSize),G(a,"fontStyle")&&(o.fontStyle=a.fontStyle),G(a,"fontWeight")&&(o.fontWeight=a.fontWeight),i={type:"text",style:o,silent:!0},n={};var s=G(a,"textPosition");t?n.position=s?a.textPosition:"inside":s&&(n.position=a.textPosition),G(a,"textPosition")&&(n.position=a.textPosition),G(a,"textOffset")&&(n.offset=a.textOffset),G(a,"textRotation")&&(n.rotation=a.textRotation),G(a,"textDistance")&&(n.distance=a.textDistance)}return Yv(o,r),T(o.rich,function(l){Yv(l,l)}),{textConfig:n,textContent:i}}function Yv(r,e){e&&(e.font=e.textFont||e.font,G(e,"textStrokeWidth")&&(r.lineWidth=e.textStrokeWidth),G(e,"textAlign")&&(r.align=e.textAlign),G(e,"textVerticalAlign")&&(r.verticalAlign=e.textVerticalAlign),G(e,"textLineHeight")&&(r.lineHeight=e.textLineHeight),G(e,"textWidth")&&(r.width=e.textWidth),G(e,"textHeight")&&(r.height=e.textHeight),G(e,"textBackgroundColor")&&(r.backgroundColor=e.textBackgroundColor),G(e,"textPadding")&&(r.padding=e.textPadding),G(e,"textBorderColor")&&(r.borderColor=e.textBorderColor),G(e,"textBorderWidth")&&(r.borderWidth=e.textBorderWidth),G(e,"textBorderRadius")&&(r.borderRadius=e.textBorderRadius),G(e,"textBoxShadowColor")&&(r.shadowColor=e.textBoxShadowColor),G(e,"textBoxShadowBlur")&&(r.shadowBlur=e.textBoxShadowBlur),G(e,"textBoxShadowOffsetX")&&(r.shadowOffsetX=e.textBoxShadowOffsetX),G(e,"textBoxShadowOffsetY")&&(r.shadowOffsetY=e.textBoxShadowOffsetY))}function Xv(r,e,t){var a=r;a.textPosition=a.textPosition||t.position||"inside",t.offset!=null&&(a.textOffset=t.offset),t.rotation!=null&&(a.textRotation=t.rotation),t.distance!=null&&(a.textDistance=t.distance);var n=a.textPosition.indexOf("inside")>=0,i=r.fill||B.color.neutral99;Zv(a,e);var o=a.textFill==null;return n?o&&(a.textFill=t.insideFill||B.color.neutral00,!a.textStroke&&t.insideStroke&&(a.textStroke=t.insideStroke),!a.textStroke&&(a.textStroke=i),a.textStrokeWidth==null&&(a.textStrokeWidth=2)):(o&&(a.textFill=r.fill||t.outsideFill||B.color.neutral00),!a.textStroke&&t.outsideStroke&&(a.textStroke=t.outsideStroke)),a.text=e.text,a.rich=e.rich,T(e.rich,function(s){Zv(s,s)}),a}function Zv(r,e){e&&(G(e,"fill")&&(r.textFill=e.fill),G(e,"stroke")&&(r.textStroke=e.fill),G(e,"lineWidth")&&(r.textStrokeWidth=e.lineWidth),G(e,"font")&&(r.font=e.font),G(e,"fontStyle")&&(r.fontStyle=e.fontStyle),G(e,"fontWeight")&&(r.fontWeight=e.fontWeight),G(e,"fontSize")&&(r.fontSize=e.fontSize),G(e,"fontFamily")&&(r.fontFamily=e.fontFamily),G(e,"align")&&(r.textAlign=e.align),G(e,"verticalAlign")&&(r.textVerticalAlign=e.verticalAlign),G(e,"lineHeight")&&(r.textLineHeight=e.lineHeight),G(e,"width")&&(r.textWidth=e.width),G(e,"height")&&(r.textHeight=e.height),G(e,"backgroundColor")&&(r.textBackgroundColor=e.backgroundColor),G(e,"padding")&&(r.textPadding=e.padding),G(e,"borderColor")&&(r.textBorderColor=e.borderColor),G(e,"borderWidth")&&(r.textBorderWidth=e.borderWidth),G(e,"borderRadius")&&(r.textBorderRadius=e.borderRadius),G(e,"shadowColor")&&(r.textBoxShadowColor=e.shadowColor),G(e,"shadowBlur")&&(r.textBoxShadowBlur=e.shadowBlur),G(e,"shadowOffsetX")&&(r.textBoxShadowOffsetX=e.shadowOffsetX),G(e,"shadowOffsetY")&&(r.textBoxShadowOffsetY=e.shadowOffsetY),G(e,"textShadowColor")&&(r.textShadowColor=e.textShadowColor),G(e,"textShadowBlur")&&(r.textShadowBlur=e.textShadowBlur),G(e,"textShadowOffsetX")&&(r.textShadowOffsetX=e.textShadowOffsetX),G(e,"textShadowOffsetY")&&(r.textShadowOffsetY=e.textShadowOffsetY))}var wy={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},$v=Le(wy);sn(un,function(r,e){return r[e]=1,r},{});un.join(", ");var oo=["","style","shape","extra"],_a=ne();function Ku(r,e,t,a,n){var i=r+"Animation",o=au(r,a,n)||{},s=_a(e).userDuring;return o.duration>0&&(o.during=s?$(WC,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=r),F(o,t[i]),o}function BC(r,e,t,a){a=a||{};var n=a.dataIndex,i=a.isInit,o=a.clearStyle,s=t.isAnimationEnabled(),l=_a(r),u=e.style;l.userDuring=e.during;var f={},c={};if(YC(r,e,c),r.type==="compound")for(var h=r.shape.paths,v=e.shape.paths,d=0;d<v.length;d++){var p=v[d];Ms("shape",p,h[d])}else Ms("shape",e,c),Ms("extra",e,c);if(!i&&s&&(UC(r,e,f),Kv("shape",r,e,f),Kv("extra",r,e,f),XC(r,e,u,f)),c.style=u,zC(r,c,o),FC(r,e),s)if(i){var y={};T(oo,function(m){var _=m?e[m]:e;_&&_.enterFrom&&(m&&(y[m]=y[m]||{}),F(m?y[m]:y,_.enterFrom))});var g=Ku("enter",r,e,t,n);g.duration>0&&r.animateFrom(y,g)}else GC(r,e,n||0,t,f);VC(r,e),u?r.dirty():r.markRedraw()}function VC(r,e){for(var t=_a(r).leaveToProps,a=0;a<oo.length;a++){var n=oo[a],i=n?e[n]:e;i&&i.leaveTo&&(t||(t=_a(r).leaveToProps={}),n&&(t[n]=t[n]||{}),F(n?t[n]:t,i.leaveTo))}}function qu(r,e,t,a){if(r){var n=r.parent,i=_a(r).leaveToProps;if(i){var o=Ku("update",r,e,t,0);o.done=function(){n&&n.remove(r)},r.animateTo(i,o)}else n&&n.remove(r)}}function va(r){return r==="all"}function zC(r,e,t){var a=e.style;if(!r.isGroup&&a){if(t){r.useStyle({});for(var n=r.animators,i=0;i<n.length;i++){var o=n[i];o.targetName==="style"&&o.changeTarget(r.style)}}r.setStyle(a)}e&&(e.style=null,e&&r.attr(e),e.style=a)}function GC(r,e,t,a,n){if(n){var i=Ku("update",r,e,a,t);i.duration>0&&r.animateFrom(n,i)}}function FC(r,e){G(e,"silent")&&(r.silent=e.silent),G(e,"ignore")&&(r.ignore=e.ignore),r instanceof $h&&G(e,"invisible")&&(r.invisible=e.invisible),r instanceof Be&&G(e,"autoBatch")&&(r.autoBatch=e.autoBatch)}var _t={},HC={setTransform:function(r,e){return _t.el[r]=e,this},getTransform:function(r){return _t.el[r]},setShape:function(r,e){var t=_t.el,a=t.shape||(t.shape={});return a[r]=e,t.dirtyShape&&t.dirtyShape(),this},getShape:function(r){var e=_t.el.shape;if(e)return e[r]},setStyle:function(r,e){var t=_t.el,a=t.style;return a&&(a[r]=e,t.dirtyStyle&&t.dirtyStyle()),this},getStyle:function(r){var e=_t.el.style;if(e)return e[r]},setExtra:function(r,e){var t=_t.el.extra||(_t.el.extra={});return t[r]=e,this},getExtra:function(r){var e=_t.el.extra;if(e)return e[r]}};function WC(){var r=this,e=r.el;if(e){var t=_a(e).userDuring,a=r.userDuring;if(t!==a){r.el=r.userDuring=null;return}_t.el=e,a(HC)}}function Kv(r,e,t,a){var n=t[r];if(n){var i=e[r],o;if(i){var s=t.transition,l=n.transition;if(l)if(!o&&(o=a[r]={}),va(l))F(o,i);else for(var u=De(l),f=0;f<u.length;f++){var c=u[f],h=i[c];o[c]=h}else if(va(s)||fe(s,r)>=0){!o&&(o=a[r]={});for(var v=Le(i),f=0;f<v.length;f++){var c=v[f],h=i[c];ZC(n[c],h)&&(o[c]=h)}}}}}function Ms(r,e,t){var a=e[r];if(a)for(var n=t[r]={},i=Le(a),o=0;o<i.length;o++){var s=i[o];n[s]=bm(a[s])}}function UC(r,e,t){for(var a=e.transition,n=va(a)?un:De(a||[]),i=0;i<n.length;i++){var o=n[i];if(!(o==="style"||o==="shape"||o==="extra")){var s=r[o];t[o]=s}}}function YC(r,e,t){for(var a=0;a<$v.length;a++){var n=$v[a],i=wy[n],o=e[n];o&&(t[i[0]]=o[0],t[i[1]]=o[1])}for(var a=0;a<un.length;a++){var s=un[a];e[s]!=null&&(t[s]=e[s])}}function XC(r,e,t,a){if(t){var n=r.style,i;if(n){var o=t.transition,s=e.transition;if(o&&!va(o)){var l=De(o);!i&&(i=a.style={});for(var u=0;u<l.length;u++){var f=l[u],c=n[f];i[f]=c}}else if(r.getAnimationStyleProps&&(va(s)||va(o)||fe(s,"style")>=0)){var h=r.getAnimationStyleProps(),v=h?h.style:null;if(v){!i&&(i=a.style={});for(var d=Le(t),u=0;u<d.length;u++){var f=d[u];if(v[f]){var c=n[f];i[f]=c}}}}}}}function ZC(r,e){return Rn(r)?r!==e:r!=null&&isFinite(r)}var Ty=ne(),$C=["percent","easing","shape","style","extra"];function KC(r){r.stopAnimation("keyframe"),r.attr(Ty(r))}function Cy(r,e,t){if(!(!t.isAnimationEnabled()||!e)){if(N(e)){T(e,function(s){Cy(r,s,t)});return}var a=e.keyframes,n=e.duration;if(t&&n==null){var i=au("enter",t,0);n=i&&i.duration}if(!(!a||!n)){var o=Ty(r);T(oo,function(s){if(!(s&&!r[s])){var l;a.sort(function(u,f){return u.percent-f.percent}),T(a,function(u){var f=r.animators,c=s?u[s]:u;if(c){var h=Le(c);if(s||(h=Ce(h,function(p){return fe($C,p)<0})),!!h.length){l||(l=r.animate(s,e.loop,!0),l.scope="keyframe");for(var v=0;v<f.length;v++)f[v]!==l&&f[v].targetName===l.targetName&&f[v].stopTracks(h);s&&(o[s]=o[s]||{});var d=s?o[s]:o;T(h,function(p){d[p]=((s?r[s]:r)||{})[p]}),l.whenWithKeys(n*u.percent,c,h,u.easing)}}}),l&&l.delay(e.delay||0).duration(n).start(e.easing)}})}}}var Bt="emphasis",tr="normal",ju="blur",Qu="select",lr=[tr,Bt,ju,Qu],Ds={normal:["itemStyle"],emphasis:[Bt,"itemStyle"],blur:[ju,"itemStyle"],select:[Qu,"itemStyle"]},As={normal:["label"],emphasis:[Bt,"label"],blur:[ju,"label"],select:[Qu,"label"]},qC=["x","y"],jC="e\0\0",Je={normal:{},emphasis:{},blur:{},select:{}},QC={cartesian2d:MC,geo:AC,single:IC,polar:PC,calendar:RC,matrix:EC};function Nl(r){return r instanceof Be}function Bl(r){return r instanceof $h}function JC(r,e){e.copyTransform(r),Bl(e)&&Bl(r)&&(e.setStyle(r.style),e.z=r.z,e.z2=r.z2,e.zlevel=r.zlevel,e.invisible=r.invisible,e.ignore=r.ignore,Nl(e)&&Nl(r)&&e.setShape(r.shape))}var eM=(function(r){U(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n,i){this._progressiveEls=null;var o=this._data,s=t.getData(),l=this.group,u=qv(t,s,a,n);o||l.removeAll(),s.diff(o).add(function(c){Ls(n,null,c,u(c,i),t,l,s)}).remove(function(c){var h=o.getItemGraphicEl(c);h&&qu(h,Nt(h).option,t)}).update(function(c,h){var v=o.getItemGraphicEl(h);Ls(n,v,c,u(c,i),t,l,s)}).execute();var f=t.get("clip",!0)?Vg(t.coordinateSystem,!1,t):null;f?l.setClipPath(f):l.removeClipPath(),this._data=s},e.prototype.incrementalPrepareRender=function(t,a,n){this.group.removeAll(),this._data=null},e.prototype.incrementalRender=function(t,a,n,i,o){var s=a.getData(),l=qv(a,s,n,i),u=this._progressiveEls=[];function f(v){v.isGroup||(v.incremental=!0,v.ensureState("emphasis").hoverLayer=!0)}for(var c=t.start;c<t.end;c++){var h=Ls(null,null,c,l(c,o),a,this.group,s);h&&(h.traverse(f),u.push(h))}},e.prototype.eachRendered=function(t){Or(this._progressiveEls||this.group,t)},e.prototype.filterForExposedEvent=function(t,a,n,i){var o=a.element;if(o==null||n.name===o)return!0;for(;(n=n.__hostTarget||n.parent)&&n!==this.group;)if(n.name===o)return!0;return!1},e.type="custom",e})(Re);function Ju(r){var e=r.type,t;if(e==="path"){var a=r.shape,n=a.width!=null&&a.height!=null?{x:a.x||0,y:a.y||0,width:a.width,height:a.height}:null,i=Ay(a);t=gn(i,null,n,a.layout||"center"),Nt(t).customPathData=i}else if(e==="image")t=new Gt({}),Nt(t).customImagePath=r.style.image;else if(e==="text")t=new de({});else if(e==="group")t=new le;else if(e==="compoundPath"){var a=r.shape;if(!a||!a.paths){var o="";Oe(o)}var s=X(a.paths,function(f){if(f.type==="path")return gn(f.shape.pathData,f,null);var c=Ks(f.type);if(!c){var h="";Oe(h)}return new c});t=new Gh({shape:{paths:s}})}else{var l=Ks(e);if(!l){var o="";Oe(o)}t=new l}return Nt(t).customGraphicType=e,t.name=r.name,t.z2EmphasisLift=1,t.z2SelectLift=1,t}function ef(r,e,t,a,n,i,o){KC(e);var s=n&&n.normal.cfg;s&&e.setTextConfig(s),a&&a.transition==null&&(a.transition=qC);var l=a&&a.style;if(l){if(e.type==="text"){var u=l;G(u,"textFill")&&(u.fill=u.textFill),G(u,"textStroke")&&(u.stroke=u.textStroke)}var f=void 0,c=Nl(e)?l.decal:null;r&&c&&(c.dirty=!0,f=$i(c,r)),l.__decalPattern=f}if(Bl(e)&&l){var f=l.__decalPattern;f&&(l.decal=f)}BC(e,a,i,{dataIndex:t,isInit:o,clearStyle:!0}),Cy(e,a.keyframeAnimation,i)}function My(r,e,t,a,n){var i=e.isGroup?null:e,o=n&&n[r].cfg;if(i){var s=i.ensureState(r);if(a===!1){var l=i.getState(r);l&&(l.style=null)}else s.style=a||null;o&&(s.textConfig=o),vd(i)}}function tM(r,e,t){if(!r.isGroup){var a=r,n=t.currentZ,i=t.currentZLevel;a.z=n,a.zlevel=i;var o=e.z2;o!=null&&(a.z2=o||0);for(var s=0;s<lr.length;s++)rM(a,e,lr[s])}}function rM(r,e,t){var a=t===tr,n=a?e:so(e,t),i=n?n.z2:null,o;i!=null&&(o=a?r:r.ensureState(t),o.z2=i||0)}function qv(r,e,t,a){var n=r.get("renderItem");if(typeof n=="string"){var i=Px(n);i&&(n=i)}var o=r.coordinateSystem,s={};o&&(s=o.prepareCustoms?o.prepareCustoms(o):QC[o.type](o));for(var l=ae({getWidth:a.getWidth,getHeight:a.getHeight,getZr:a.getZr,getDevicePixelRatio:a.getDevicePixelRatio,value:b,style:w,ordinalRawValue:x,styleEmphasis:D,visual:C,barLayout:I,currentSeriesIndices:L,font:E},s.api||{}),u={context:{},seriesId:r.id,seriesName:r.name,seriesIndex:r.seriesIndex,coordSys:s.coordSys,dataInsideLength:e.count(),encode:aM(r.getData()),itemPayload:r.get("itemPayload")||{}},f,c,h={},v={},d={},p={},y=0;y<lr.length;y++){var g=lr[y];d[g]=r.getModel(Ds[g]),p[g]=r.getModel(As[g])}function m(k){return k===f?c||(c=e.getItemModel(k)):e.getItemModel(k)}function _(k,P){return e.hasItemOption?k===f?h[P]||(h[P]=m(k).getModel(Ds[P])):m(k).getModel(Ds[P]):d[P]}function S(k,P){return e.hasItemOption?k===f?v[P]||(v[P]=m(k).getModel(As[P])):m(k).getModel(As[P]):p[P]}return function(k,P){return f=k,c=null,h={},v={},n&&n(ae({dataIndexInside:k,dataIndex:e.getRawIndex(k),actionType:P?P.type:null},u),l)};function b(k,P){return P==null&&(P=f),e.getStore().get(e.getDimensionIndex(k||0),P)}function x(k,P){P==null&&(P=f),k=k||0;var V=e.getDimensionInfo(k);if(!V){var R=e.getDimensionIndex(k);return R>=0?e.getStore().get(R,P):void 0}var O=e.get(V.name,P),z=V&&V.ordinalMeta;return z?z.categories[O]:O}function w(k,P){P==null&&(P=f);var V=e.getItemVisual(P,"style"),R=V&&V.fill,O=V&&V.opacity,z=_(P,tr).getItemStyle();R!=null&&(z.fill=R),O!=null&&(z.opacity=O);var H={inheritColor:Z(R)?R:B.color.neutral99},Y=S(P,tr),J=Ae(Y,null,H,!1,!0);J.text=Y.getShallow("show")?j(r.getFormattedLabel(P,tr),Dn(e,P)):null;var pe=Hi(Y,H,!1);return A(k,z),z=Xv(z,J,pe),k&&M(z,k),z.legacy=!0,z}function D(k,P){P==null&&(P=f);var V=_(P,Bt).getItemStyle(),R=S(P,Bt),O=Ae(R,null,null,!0,!0);O.text=R.getShallow("show")?Rr(r.getFormattedLabel(P,Bt),r.getFormattedLabel(P,tr),Dn(e,P)):null;var z=Hi(R,null,!0);return A(k,V),V=Xv(V,O,z),k&&M(V,k),V.legacy=!0,V}function M(k,P){for(var V in P)G(P,V)&&(k[V]=P[V])}function A(k,P){k&&(k.textFill&&(P.textFill=k.textFill),k.textPosition&&(P.textPosition=k.textPosition))}function C(k,P){if(P==null&&(P=f),G(Uv,k)){var V=e.getItemVisual(P,"style");return V?V[Uv[k]]:null}if(G(wC,k))return e.getItemVisual(P,k)}function I(k){if(o.type==="cartesian2d"){var P=o.getBaseAxis();return kb(ae({axis:P},k))}}function L(){return t.getCurrentSeriesIndices()}function E(k){return Ad(k,t)}}function aM(r){var e={};return T(r.dimensions,function(t){var a=r.getDimensionInfo(t);if(!a.isExtraCoord){var n=a.coordDim,i=e[n]=e[n]||[];i[a.coordDimIndex]=r.getDimensionIndex(t)}}),e}function Ls(r,e,t,a,n,i,o){if(!a){i.remove(e);return}var s=tf(r,e,t,a,n,i);return s&&o.setItemGraphicEl(t,s),s&&Vt(s,a.focus,a.blurScope,a.emphasisDisabled),s}function tf(r,e,t,a,n,i){var o=-1,s=e;e&&Dy(e,a,n)&&(o=fe(i.childrenRef(),e),e=null);var l=!e,u=e;u?u.clearStates():(u=Ju(a),s&&JC(s,u)),a.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),a.tooltipDisabled&&(u.tooltipDisabled=!0),Je.normal.cfg=Je.normal.conOpt=Je.emphasis.cfg=Je.emphasis.conOpt=Je.blur.cfg=Je.blur.conOpt=Je.select.cfg=Je.select.conOpt=null,Je.isLegacy=!1,iM(u,t,a,n,l,Je),nM(u,t,a,n,l),ef(r,u,t,a,Je,n,l),G(a,"info")&&(Nt(u).info=a.info);for(var f=0;f<lr.length;f++){var c=lr[f];if(c!==tr){var h=so(a,c),v=rf(a,h,c);My(c,u,h,v,Je)}}return tM(u,a,n),a.type==="group"&&oM(r,u,t,a,n),o>=0?i.replaceAt(u,o):i.add(u),u}function Dy(r,e,t){var a=Nt(r),n=e.type,i=e.shape,o=e.style;return t.isUniversalTransitionEnabled()||n!=null&&n!==a.customGraphicType||n==="path"&&fM(i)&&Ay(i)!==a.customPathData||n==="image"&&G(o,"image")&&o.image!==a.customImagePath}function nM(r,e,t,a,n){var i=t.clipPath;if(i===!1)r&&r.getClipPath()&&r.removeClipPath();else if(i){var o=r.getClipPath();o&&Dy(o,i,a)&&(o=null),o||(o=Ju(i),r.setClipPath(o)),ef(null,o,e,i,null,a,n)}}function iM(r,e,t,a,n,i){if(!(r.isGroup||r.type==="compoundPath")){jv(t,null,i),jv(t,Bt,i);var o=i.normal.conOpt,s=i.emphasis.conOpt,l=i.blur.conOpt,u=i.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var f=r.getTextContent();if(o===!1)f&&r.removeTextContent();else{o=i.normal.conOpt=o||{type:"text"},f?f.clearStates():(f=Ju(o),r.setTextContent(f)),ef(null,f,e,o,null,a,n);for(var c=o&&o.style,h=0;h<lr.length;h++){var v=lr[h];if(v!==tr){var d=i[v].conOpt;My(v,f,d,rf(o,d,v),null)}}c?f.dirty():f.markRedraw()}}}}function jv(r,e,t){var a=e?so(r,e):r,n=e?rf(r,a,Bt):r.style,i=r.type,o=a?a.textConfig:null,s=r.textContent,l=s?e?so(s,e):s:null;if(n&&(t.isLegacy||OC(n,i,!!o,!!l))){t.isLegacy=!0;var u=NC(n,i,!e);!o&&u.textConfig&&(o=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!e&&l){var f=l;!f.type&&(f.type="text")}var c=e?t[e]:t.normal;c.cfg=o,c.conOpt=l}function so(r,e){return e?r?r[e]:null:r}function rf(r,e,t){var a=e&&e.style;return a==null&&t===Bt&&r&&(a=r.styleEmphasis),a}function oM(r,e,t,a,n){var i=a.children,o=i?i.length:0,s=a.$mergeChildren,l=s==="byName"||a.diffChildrenByName,u=s===!1;if(!(!o&&!l&&!u)){if(l){lM({api:r,oldChildren:e.children()||[],newChildren:i||[],dataIndex:t,seriesModel:n,group:e});return}u&&e.removeAll();for(var f=0;f<o;f++){var c=i[f],h=e.childAt(f);c?(c.ignore==null&&(c.ignore=!1),tf(r,h,t,c,n,e)):h.ignore=!0}for(var v=e.childCount()-1;v>=f;v--){var d=e.childAt(v);sM(e,d,n)}}}function sM(r,e,t){e&&qu(e,Nt(r).option,t)}function lM(r){new Kp(r.oldChildren,r.newChildren,Qv,Qv,r).add(Jv).update(Jv).remove(uM).execute()}function Qv(r,e){var t=r&&r.name;return t??jC+e}function Jv(r,e){var t=this.context,a=r!=null?t.newChildren[r]:null,n=e!=null?t.oldChildren[e]:null;tf(t.api,n,t.dataIndex,a,t.seriesModel,t.group)}function uM(r){var e=this.context,t=e.oldChildren[r];t&&qu(t,Nt(t).option,e.seriesModel)}function Ay(r){return r&&(r.pathData||r.d)}function fM(r){return r&&(G(r,"pathData")||G(r,"d"))}function JD(r){r.registerChartView(eM),r.registerSeriesModel(TC)}var br=ne(),eh=q,Is=$,cM=(function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(e,t,a,n){var i=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,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,e,t,a);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(a),this._lastGraphicKey=f;var c=this._moveAnimation=this.determineAnimation(e,t);if(!s)s=this._group=new le,this.createPointerEl(s,u,e,t),this.createLabelEl(s,u,e,t),a.getZr().add(s);else{var h=ye(th,t,c);this.updatePointerEl(s,u,h),this.updateLabelEl(s,u,h,t)}ah(s,t,!0),this._renderHandle(i)}},r.prototype.remove=function(e){this.clear(e)},r.prototype.dispose=function(e){this.clear(e)},r.prototype.determineAnimation=function(e,t){var a=t.get("animation"),n=e.axis,i=n.type==="category",o=t.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=Wu(e).seriesDataCount,u=n.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return a===!0},r.prototype.makeElOption=function(e,t,a,n,i){},r.prototype.createPointerEl=function(e,t,a,n){var i=t.pointer;if(i){var o=br(e).pointerEl=new Md[i.type](eh(t.pointer));e.add(o)}},r.prototype.createLabelEl=function(e,t,a,n){if(t.label){var i=br(e).labelEl=new de(eh(t.label));e.add(i),rh(i,n)}},r.prototype.updatePointerEl=function(e,t,a){var n=br(e).pointerEl;n&&t.pointer&&(n.setStyle(t.pointer.style),a(n,{shape:t.pointer.shape}))},r.prototype.updateLabelEl=function(e,t,a,n){var i=br(e).labelEl;i&&(i.setStyle(t.label.style),a(i,{x:t.label.x,y:t.label.y}),rh(i,n))},r.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,a=this._api.getZr(),n=this._handle,i=t.getModel("handle"),o=t.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=iu(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){ha(u.event)},onmousedown:Is(this._onHandleDragMove,this,0,0),drift:Is(this._onHandleDragMove,this),ondragend:Is(this._onHandleDragEnd,this)}),a.add(n)),ah(n,t,!1),n.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");N(l)||(l=[l,l]),n.scaleX=l[0]/2,n.scaleY=l[1]/2,_p(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},r.prototype._moveHandleToValue=function(e,t){th(this._axisPointerModel,!t&&this._moveAnimation,this._handle,ks(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(e,t){var a=this._handle;if(a){this._dragging=!0;var n=this.updateHandleTransform(ks(a),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=n,a.stopAnimation(),a.attr(ks(n)),br(a).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var t=this._payloadInfo,a=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:a.axis.dim,axisIndex:a.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),a=this._group,n=this._handle;t&&a&&(this._lastGraphicKey=null,a&&t.remove(a),n&&t.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),ll(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(e,t,a){return a=a||0,{x:e[a],y:e[1-a],width:t[a],height:t[1-a]}},r})();function th(r,e,t,a){Ly(br(t).lastProp,a)||(br(t).lastProp=a,e?Se(t,a,r):(t.stopAnimation(),t.attr(a)))}function Ly(r,e){if(K(r)&&K(e)){var t=!0;return T(e,function(a,n){t=t&&Ly(r[n],a)}),!!t}else return r===e}function rh(r,e){r[e.get(["label","show"])?"show":"hide"]()}function ks(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function ah(r,e,t){var a=e.get("z"),n=e.get("zlevel");r&&r.traverse(function(i){i.type!=="group"&&(a!=null&&(i.z=a),n!=null&&(i.zlevel=n),i.silent=t)})}function vM(r){var e=r.get("type"),t=r.getModel(e+"Style"),a;return e==="line"?(a=t.getLineStyle(),a.fill=null):e==="shadow"&&(a=t.getAreaStyle(),a.stroke=null),a}function hM(r,e,t,a,n){var i=t.get("value"),o=Iy(i,e.axis,e.ecModel,t.get("seriesDataIndices"),{precision:t.get(["label","precision"]),formatter:t.get(["label","formatter"])}),s=t.getModel("label"),l=Fn(s.get("padding")||0),u=s.getFont(),f=Wh(o,u),c=n.position,h=f.width+l[1]+l[3],v=f.height+l[0]+l[2],d=n.align;d==="right"&&(c[0]-=h),d==="center"&&(c[0]-=h/2);var p=n.verticalAlign;p==="bottom"&&(c[1]-=v),p==="middle"&&(c[1]-=v/2),dM(c,h,v,a);var y=s.get("backgroundColor");(!y||y==="auto")&&(y=e.get(["axisLine","lineStyle","color"])),r.label={x:c[0],y:c[1],style:Ae(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:y}),z2:10}}function dM(r,e,t,a){var n=a.getWidth(),i=a.getHeight();r[0]=Math.min(r[0]+e,n)-e,r[1]=Math.min(r[1]+t,i)-t,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function Iy(r,e,t,a,n){r=e.scale.parse(r);var i=e.scale.getLabel({value:r},{precision:n.precision}),o=n.formatter;if(o){var s={value:ji(e,{value:r}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};T(a,function(l){var u=t.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,c=u&&u.getDataParams(f);c&&s.seriesData.push(c)}),Z(o)?i=o.replace("{value}",i):Q(o)&&(i=o(s))}return i}function ky(r,e,t){var a=On();return Yh(a,a,t.rotation),wm(a,a,t.position),ua([r.dataToCoord(e),(t.labelOffset||0)+(t.labelDirection||1)*(t.labelMargin||0)],a)}function pM(r,e,t,a,n,i){var o=Ot.innerTextLayout(t.rotation,0,t.labelDirection);t.labelMargin=n.get(["label","margin"]),hM(e,a,n,i,{position:ky(a.axis,r,t),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function gM(r,e,t){return t=t||0,{x1:r[t],y1:r[1-t],x2:e[t],y2:e[1-t]}}function yM(r,e,t){return t=t||0,{x:r[t],y:r[1-t],width:e[t],height:e[1-t]}}var mM=(function(r){U(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,a,n,i,o){var s=n.axis,l=s.grid,u=i.get("type"),f=nh(l,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(a,!0));if(u&&u!=="none"){var h=vM(i),v=_M[u](s,c,f);v.style=h,t.graphicKey=v.type,t.pointer=v}var d=no(l.getRect(),n);pM(a,t,d,n,i,o)},e.prototype.getHandleTransform=function(t,a,n){var i=no(a.axis.grid.getRect(),a,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=ky(a.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,a,n,i){var o=n.axis,s=o.grid,l=o.getGlobalExtent(!0),u=nh(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,c=[t.x,t.y];c[f]+=a[f],c[f]=Math.min(l[1],c[f]),c[f]=Math.max(l[0],c[f]);var h=(u[1]+u[0])/2,v=[h,h];v[f]=c[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:t.rotation,cursorPoint:v,tooltipOption:d[f]}},e})(cM);function nh(r,e){var t={};return t[e.dim+"AxisIndex"]=e.index,r.getCartesian(t)}var _M={line:function(r,e,t){var a=gM([e,t[0]],[e,t[1]],ih(r));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(r,e,t){var a=Math.max(1,r.getBandWidth()),n=t[1]-t[0];return{type:"Rect",shape:yM([e-a/2,t[0]],[a,n],ih(r))}}};function ih(r){return r.dim==="x"?0:1}var SM=(function(r){U(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:B.color.border,width:1,type:"dashed"},shadowStyle:{color:B.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:B.color.neutral00,padding:[5,7,5,7],backgroundColor:B.color.accent60,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:B.color.accent40,throttle:40}},e})(ie),Et=ne(),xM=T;function Py(r,e,t){if(!be.node){var a=e.getZr();Et(a).records||(Et(a).records={}),bM(a,e);var n=Et(a).records[r]||(Et(a).records[r]={});n.handler=t}}function bM(r,e){if(Et(r).initialized)return;Et(r).initialized=!0,t("click",ye(oh,"click")),t("mousemove",ye(oh,"mousemove")),t("globalout",TM);function t(a,n){r.on(a,function(i){var o=CM(e);xM(Et(r).records,function(s){s&&n(s,i,o.dispatchAction)}),wM(o.pendings,e)})}}function wM(r,e){var t=r.showTip.length,a=r.hideTip.length,n;t?n=r.showTip[t-1]:a&&(n=r.hideTip[a-1]),n&&(n.dispatchAction=null,e.dispatchAction(n))}function TM(r,e,t){r.handler("leave",null,t)}function oh(r,e,t,a){e.handler(r,t,a)}function CM(r){var e={showTip:[],hideTip:[]},t=function(a){var n=e[a.type];n?n.push(a):(a.dispatchAction=t,r.dispatchAction(a))};return{dispatchAction:t,pendings:e}}function Vl(r,e){if(!be.node){var t=e.getZr(),a=(Et(t).records||{})[r];a&&(Et(t).records[r]=null)}}var MM=(function(r){U(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=a.getComponent("tooltip"),o=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";Py("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})})},e.prototype.remove=function(t,a){Vl("axisPointer",a)},e.prototype.dispose=function(t,a){Vl("axisPointer",a)},e.type="axisPointer",e})(Ue);function Ry(r,e){var t=[],a=r.seriesIndex,n;if(a==null||!(n=e.getSeriesByIndex(a)))return{point:[]};var i=n.getData(),o=Lr(i,r);if(o==null||o<0||N(o))return{point:[]};var s=i.getItemGraphicEl(o),l=n.coordinateSystem;if(n.getTooltipPosition)t=n.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),c=f.dim,h=u.dim,v=c==="x"||c==="radius"?1:0,d=i.mapDimension(h),p=[];p[v]=i.get(d,o),p[1-v]=i.get(i.getCalculationInfo("stackResultDimension"),o),t=l.dataToPoint(p)||[]}else t=l.dataToPoint(i.getValues(X(l.dimensions,function(g){return i.mapDimension(g)}),o))||[];else if(s){var y=s.getBoundingRect().clone();y.applyTransform(s.transform),t=[y.x+y.width/2,y.y+y.height/2]}return{point:t,el:s}}var sh=ne();function DM(r,e,t){var a=r.currTrigger,n=[r.x,r.y],i=r,o=r.dispatchAction||$(t.dispatchAction,t),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){ki(n)&&(n=Ry({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},e).point);var l=ki(n),u=i.axesInfo,f=s.axesInfo,c=a==="leave"||ki(n),h={},v={},d={list:[],map:{}},p={showPointer:ye(LM,v),showTooltip:ye(IM,d)};T(s.coordSysMap,function(g,m){var _=l||g.containPoint(n);T(s.coordSysAxesInfo[m],function(S,b){var x=S.axis,w=EM(u,S);if(!c&&_&&(!u||w)){var D=w&&w.value;D==null&&!l&&(D=x.pointToData(n)),D!=null&&lh(S,D,p,!1,h)}})});var y={};return T(f,function(g,m){var _=g.linkGroup;_&&!v[m]&&T(_.axesInfo,function(S,b){var x=v[b];if(S!==g&&x){var w=x.value;_.mapper&&(w=g.axis.scale.parse(_.mapper(w,uh(S),uh(g)))),y[g.key]=w}})}),T(y,function(g,m){lh(f[m],g,p,!0,h)}),kM(v,f,h),PM(d,n,r,o),RM(f,o,t),h}}function lh(r,e,t,a,n){var i=r.axis;if(!(i.scale.isBlank()||!i.containData(e))){if(!r.involveSeries){t.showPointer(r,e);return}var o=AM(e,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&n.seriesIndex==null&&F(n,s[0]),!a&&r.snap&&i.containData(l)&&l!=null&&(e=l),t.showPointer(r,e,s),t.showTooltip(r,o,l)}}function AM(r,e){var t=e.axis,a=t.dim,n=r,i=[],o=Number.MAX_VALUE,s=-1;return T(e.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(a),c,h;if(l.getAxisTooltipData){var v=l.getAxisTooltipData(f,r,t);h=v.dataIndices,c=v.nestestValue}else{if(h=l.indicesOfNearest(a,f[0],r,t.type==="category"?.5:null),!h.length)return;c=l.getData().get(f[0],h[0])}if(!(c==null||!isFinite(c))){var d=r-c,p=Math.abs(d);p<=o&&((p<o||d>=0&&s<0)&&(o=p,s=d,n=c,i.length=0),T(h,function(y){i.push({seriesIndex:l.seriesIndex,dataIndexInside:y,dataIndex:l.getData().getRawIndex(y)})}))}}),{payloadBatch:i,snapToValue:n}}function LM(r,e,t,a){r[e.key]={value:t,payloadBatch:a}}function IM(r,e,t,a){var n=t.payloadBatch,i=e.axis,o=i.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!n.length)){var l=e.coordSys.model,u=In(l),f=r.map[u];f||(f=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(f)),f.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 kM(r,e,t){var a=t.axesInfo=[];T(e,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 PM(r,e,t,a){if(ki(e)||!r.list.length){a({type:"hideTip"});return}var n=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};a({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:t.tooltipOption,position:t.position,dataIndexInside:n.dataIndexInside,dataIndex:n.dataIndex,seriesIndex:n.seriesIndex,dataByCoordSys:r.list})}function RM(r,e,t){var a=t.getZr(),n="axisPointerLastHighlights",i=sh(a)[n]||{},o=sh(a)[n]={};T(r,function(u,f){var c=u.axisPointerModel.option;c.status==="show"&&u.triggerEmphasis&&T(c.seriesDataIndices,function(h){var v=h.seriesIndex+" | "+h.dataIndex;o[v]=h})});var s=[],l=[];T(i,function(u,f){!o[f]&&l.push(u)}),T(o,function(u,f){!i[f]&&s.push(u)}),l.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function EM(r,e){for(var t=0;t<(r||[]).length;t++){var a=r[t];if(e.axis.dim===a.axisDim&&e.axis.model.componentIndex===a.axisIndex)return a}}function uh(r){var e=r.axis.model,t={},a=t.axisDim=r.axis.dim;return t.axisIndex=t[a+"AxisIndex"]=e.componentIndex,t.axisName=t[a+"AxisName"]=e.name,t.axisId=t[a+"AxisId"]=e.id,t}function ki(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function Ey(r){ly.registerAxisPointerClass("CartesianAxisPointer",mM),r.registerComponentModel(SM),r.registerComponentView(MM),r.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!N(t)&&(e.axisPointer.link=[t])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=rT(e,t)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},DM)}function eA(r){ot(pT),ot(Ey)}var OM=(function(r){U(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a,n){var i=ba(t);r.prototype.init.apply(this,arguments),fh(t,i)},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),fh(this.option,t)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.layoutMode="box",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:B.color.axisLine,width:1,type:"solid"}},itemStyle:{color:B.color.neutral00,borderWidth:1,borderColor:B.color.neutral10},dayLabel:{show:!0,firstDay:0,position:"start",margin:B.size.s,color:B.color.secondary},monthLabel:{show:!0,position:"start",margin:B.size.s,align:"center",formatter:null,color:B.color.secondary},yearLabel:{show:!0,position:null,margin:B.size.xl,formatter:null,color:B.color.quaternary,fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e})(ie);function fh(r,e){var t=r.cellSize,a;N(t)?a=t:a=r.cellSize=[t,t],a.length===1&&(a[1]=a[0]);var n=X([0,1],function(i){return L_(e,i)&&(a[i]="auto"),a[i]!=null&&a[i]!=="auto"});zt(r,e,{type:"box",ignoreSize:n})}var NM=(function(r){U(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=this.group;i.removeAll();var o=t.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=a.getLocaleModel();this._renderDayRect(t,s,i),this._renderLines(t,s,l,i),this._renderYearText(t,s,l,i),this._renderMonthText(t,u,l,i),this._renderWeekText(t,u,s,l,i)},e.prototype._renderDayRect=function(t,a,n){for(var i=t.coordinateSystem,o=t.getModel("itemStyle").getItemStyle(),s=i.getCellWidth(),l=i.getCellHeight(),u=a.start.time;u<=a.end.time;u=i.getNextNDay(u,1).time){var f=i.dataToCalendarLayout([u],!1).tl,c=new ve({shape:{x:f[0],y:f[1],width:s,height:l},cursor:"default",style:o});n.add(c)}},e.prototype._renderLines=function(t,a,n,i){var o=this,s=t.coordinateSystem,l=t.getModel(["splitLine","lineStyle"]).getLineStyle(),u=t.get(["splitLine","show"]),f=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var c=a.start,h=0;c.time<=a.end.time;h++){d(c.formatedDate),h===0&&(c=s.getDateInfo(a.start.y+"-"+a.start.m));var v=c.date;v.setMonth(v.getMonth()+1),c=s.getDateInfo(v)}d(s.getNextNDay(a.end.time,1).formatedDate);function d(p){o._firstDayOfMonth.push(s.getDateInfo(p)),o._firstDayPoints.push(s.dataToCalendarLayout([p],!1).tl);var y=o._getLinePointsOfOneWeek(t,p,n);o._tlpoints.push(y[0]),o._blpoints.push(y[y.length-1]),u&&o._drawSplitline(y,l,i)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,f,n),l,i),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,f,n),l,i)},e.prototype._getEdgesPoints=function(t,a,n){var i=[t[0].slice(),t[t.length-1].slice()],o=n==="horizontal"?0:1;return i[0][o]=i[0][o]-a/2,i[1][o]=i[1][o]+a/2,i},e.prototype._drawSplitline=function(t,a,n){var i=new Pr({z2:20,shape:{points:t},style:a});n.add(i)},e.prototype._getLinePointsOfOneWeek=function(t,a,n){for(var i=t.coordinateSystem,o=i.getDateInfo(a),s=[],l=0;l<7;l++){var u=i.getNextNDay(o.time,l),f=i.dataToCalendarLayout([u.time],!1);s[2*u.day]=f.tl,s[2*u.day+1]=f[n==="horizontal"?"bl":"tr"]}return s},e.prototype._formatterLabel=function(t,a){return Z(t)&&t?g_(t,a):Q(t)?t(a):a.nameMap},e.prototype._yearTextPositionControl=function(t,a,n,i,o){var s=a[0],l=a[1],u=["center","bottom"];i==="bottom"?(l+=o,u=["center","top"]):i==="left"?s-=o:i==="right"?(s+=o,u=["center","top"]):l-=o;var f=0;return(i==="left"||i==="right")&&(f=Math.PI/2),{rotation:f,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},e.prototype._renderYearText=function(t,a,n,i){var o=t.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=n!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],f=(u[0][0]+u[1][0])/2,c=(u[0][1]+u[1][1])/2,h=n==="horizontal"?0:1,v={top:[f,u[h][1]],bottom:[f,u[1-h][1]],left:[u[1-h][0],c],right:[u[h][0],c]},d=a.start.y;+a.end.y>+a.start.y&&(d=d+"-"+a.end.y);var p=o.get("formatter"),y={start:a.start.y,end:a.end.y,nameMap:d},g=this._formatterLabel(p,y),m=new de({z2:30,style:Ae(o,{text:g}),silent:o.get("silent")});m.attr(this._yearTextPositionControl(m,v[l],n,l,s)),i.add(m)}},e.prototype._monthTextPositionControl=function(t,a,n,i,o){var s="left",l="top",u=t[0],f=t[1];return n==="horizontal"?(f=f+o,a&&(s="center"),i==="start"&&(l="bottom")):(u=u+o,a&&(l="middle"),i==="start"&&(s="right")),{x:u,y:f,align:s,verticalAlign:l}},e.prototype._renderMonthText=function(t,a,n,i){var o=t.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),f=o.get("align"),c=[this._tlpoints,this._blpoints];(!s||Z(s))&&(s&&(a=Js(s)||a),s=a.get(["time","monthAbbr"])||[]);var h=u==="start"?0:1,v=n==="horizontal"?0:1;l=u==="start"?-l:l;for(var d=f==="center",p=o.get("silent"),y=0;y<c[h].length-1;y++){var g=c[h][y].slice(),m=this._firstDayOfMonth[y];if(d){var _=this._firstDayPoints[y];g[v]=(_[v]+c[0][y+1][v])/2}var S=o.get("formatter"),b=s[+m.m-1],x={yyyy:m.y,yy:(m.y+"").slice(2),MM:m.m,M:+m.m,nameMap:b},w=this._formatterLabel(S,x),D=new de({z2:30,style:F(Ae(o,{text:w}),this._monthTextPositionControl(g,d,n,u,l)),silent:p});i.add(D)}}},e.prototype._weekTextPositionControl=function(t,a,n,i,o){var s="center",l="middle",u=t[0],f=t[1],c=n==="start";return a==="horizontal"?(u=u+i+(c?1:-1)*o[0]/2,s=c?"right":"left"):(f=f+i+(c?1:-1)*o[1]/2,l=c?"bottom":"top"),{x:u,y:f,align:s,verticalAlign:l}},e.prototype._renderWeekText=function(t,a,n,i,o){var s=t.getModel("dayLabel");if(s.get("show")){var l=t.coordinateSystem,u=s.get("position"),f=s.get("nameMap"),c=s.get("margin"),h=l.getFirstDayOfWeek();if(!f||Z(f)){f&&(a=Js(f)||a);var v=a.get(["time","dayOfWeekShort"]);f=v||X(a.get(["time","dayOfWeekAbbr"]),function(x){return x[0]})}var d=l.getNextNDay(n.end.time,7-n.lweek).time,p=[l.getCellWidth(),l.getCellHeight()];c=re(c,Math.min(p[1],p[0])),u==="start"&&(d=l.getNextNDay(n.start.time,-(7+n.fweek)).time,c=-c);for(var y=s.get("silent"),g=0;g<7;g++){var m=l.getNextNDay(d,g),_=l.dataToCalendarLayout([m.time],!1).center,S=g;S=Math.abs((g+h)%7);var b=new de({z2:30,style:F(Ae(s,{text:f[S]}),this._weekTextPositionControl(_,i,u,c,p)),silent:y});o.add(b)}}},e.type="calendar",e})(Ue),Ps=864e5,BM=(function(){function r(e,t,a){this.type="calendar",this.dimensions=r.dimensions,this.getDimensionsInfo=r.getDimensionsInfo,this._model=e,this._update(t,a)}return r.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},r.prototype.getRangeInfo=function(){return this._rangeInfo},r.prototype.getModel=function(){return this._model},r.prototype.getRect=function(){return this._rect},r.prototype.getCellWidth=function(){return this._sw},r.prototype.getCellHeight=function(){return this._sh},r.prototype.getOrient=function(){return this._orient},r.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},r.prototype.getDateInfo=function(e){e=Er(e);var t=e.getFullYear(),a=e.getMonth()+1,n=a<10?"0"+a:""+a,i=e.getDate(),o=i<10?"0"+i:""+i,s=e.getDay();return s=Math.abs((s+7-this.getFirstDayOfWeek())%7),{y:t+"",m:n,d:o,day:s,time:e.getTime(),formatedDate:t+"-"+n+"-"+o,date:e}},r.prototype.getNextNDay=function(e,t){return t=t||0,t===0?this.getDateInfo(e):(e=new Date(this.getDateInfo(e).time),e.setDate(e.getDate()+t),this.getDateInfo(e))},r.prototype._update=function(e,t){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var a=this._rangeInfo.weeks||1,n=["width","height"],i=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),s=this._orient==="horizontal"?[a,7]:[7,a];T([0,1],function(c){f(i,c)&&(o[n[c]]=i[c]*s[c])});var l={width:t.getWidth(),height:t.getHeight()},u=this._rect=qe(o,l);T([0,1],function(c){f(i,c)||(i[c]=u[n[c]]/s[c])});function f(c,h){return c[h]!=null&&c[h]!=="auto"}this._sw=i[0],this._sh=i[1]},r.prototype.dataToPoint=function(e,t,a){a=a||[],N(e)&&(e=e[0]),t==null&&(t=!0);var n=this.getDateInfo(e),i=this._rangeInfo,o=n.formatedDate;if(t&&!(n.time>=i.start.time&&n.time<i.end.time+Ps))return a[0]=a[1]=NaN,a;var s=n.day,l=this._getRangeInfo([i.start.time,o]).nthWeek;return this._orient==="vertical"?(a[0]=this._rect.x+s*this._sw+this._sw/2,a[1]=this._rect.y+l*this._sh+this._sh/2):(a[0]=this._rect.x+l*this._sw+this._sw/2,a[1]=this._rect.y+s*this._sh+this._sh/2),a},r.prototype.pointToData=function(e){var t=this.pointToDate(e);return t&&t.time},r.prototype.dataToLayout=function(e,t,a){a=a||{};var n=a.rect=a.rect||{},i=a.contentRect=a.contentRect||{},o=this.dataToPoint(e,t);return n.x=o[0]-this._sw/2,n.y=o[1]-this._sh/2,n.width=this._sw,n.height=this._sh,Me.copy(i,n),mn(i,this._lineWidth/2,!0,!0),a},r.prototype.dataToCalendarLayout=function(e,t){var a=this.dataToPoint(e,t);return{center:a,tl:[a[0]-this._sw/2,a[1]-this._sh/2],tr:[a[0]+this._sw/2,a[1]-this._sh/2],br:[a[0]+this._sw/2,a[1]+this._sh/2],bl:[a[0]-this._sw/2,a[1]+this._sh/2]}},r.prototype.pointToDate=function(e){var t=Math.floor((e[0]-this._rect.x)/this._sw)+1,a=Math.floor((e[1]-this._rect.y)/this._sh)+1,n=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(a,t-1,n):this._getDateByWeeksAndDay(t,a-1,n)},r.prototype.convertToPixel=function(e,t,a){var n=Rs(t);return n===this?n.dataToPoint(a):null},r.prototype.convertToLayout=function(e,t,a){var n=Rs(t);return n===this?n.dataToLayout(a):null},r.prototype.convertFromPixel=function(e,t,a){var n=Rs(t);return n===this?n.pointToData(a):null},r.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},r.prototype._initRangeOption=function(){var e=this._model.get("range"),t;if(N(e)&&e.length===1&&(e=e[0]),N(e))t=e;else{var a=e.toString();if(/^\d{4}$/.test(a)&&(t=[a+"-01-01",a+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(a)){var n=this.getDateInfo(a),i=n.date;i.setMonth(i.getMonth()+1);var o=this.getNextNDay(i,-1);t=[n.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(a)&&(t=[a,a])}if(!t)return e;var s=this._getRangeInfo(t);return s.start.time>s.end.time&&t.reverse(),t},r.prototype._getRangeInfo=function(e){var t=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],a;t[0].time>t[1].time&&(a=!0,t.reverse());var n=Math.floor(t[1].time/Ps)-Math.floor(t[0].time/Ps)+1,i=new Date(t[0].time),o=i.getDate(),s=t[1].date.getDate();i.setDate(o+n-1);var l=i.getDate();if(l!==s)for(var u=i.getTime()-t[1].time>0?1:-1;(l=i.getDate())!==s&&(i.getTime()-t[1].time)*u>0;)n-=u,i.setDate(l-u);var f=Math.floor((n+t[0].day+6)/7),c=a?-f+1:f-1;return a&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:n,weeks:f,nthWeek:c,fweek:t[0].day,lweek:t[1].day}},r.prototype._getDateByWeeksAndDay=function(e,t,a){var n=this._getRangeInfo(a);if(e>n.weeks||e===0&&t<n.fweek||e===n.weeks&&t>n.lweek)return null;var i=(e-1)*7-n.fweek+t,o=new Date(n.start.time);return o.setDate(+n.start.d+i),this.getDateInfo(o)},r.create=function(e,t){var a=[];return e.eachComponent("calendar",function(n){var i=new r(n,e,t);a.push(i),n.coordinateSystem=i}),e.eachComponent(function(n,i){mu({targetModel:i,coordSysType:"calendar",coordSysProvider:b_})}),a},r.dimensions=["time","value"],r})();function Rs(r){var e=r.calendarModel,t=r.seriesModel,a=e?e.coordinateSystem:t?t.coordinateSystem:null;return a}function tA(r){r.registerComponentModel(OM),r.registerComponentView(NM),r.registerCoordinateSystem("calendar",BM)}function VM(r,e){var t=Fn(e.get("padding")),a=e.getItemStyle(["color","opacity"]);a.fill=e.get("backgroundColor");var n=new ve({shape:{x:r.x-t[3],y:r.y-t[0],width:r.width+t[1]+t[3],height:r.height+t[0]+t[2],r:e.get("borderRadius")},style:a,silent:!0,z2:-1});return n}var zM=(function(r){U(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:B.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:B.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:B.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:B.color.tertiary,fontSize:14}},e})(ie);function Oy(r){var e=r.get("confine");return e!=null?!!e:r.get("renderMode")==="richText"}function Ny(r){if(be.domSupported){for(var e=document.documentElement.style,t=0,a=r.length;t<a;t++)if(r[t]in e)return r[t]}}var By=Ny(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),GM=Ny(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function Vy(r,e){if(!r)return e;e=Fd(e,!0);var t=r.indexOf(e);return r=t===-1?e:"-"+r.slice(0,t)+"-"+e,r.toLowerCase()}function FM(r,e){var t=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return t?t[e]:null}var HM=Vy(GM,"transition"),af=Vy(By,"transform"),WM="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(be.transform3dSupported?"will-change:transform;":"");function UM(r){return r=r==="left"?"right":r==="right"?"left":r==="top"?"bottom":"top",r}function YM(r,e,t){if(!Z(t)||t==="inside")return"";var a=r.get("backgroundColor"),n=r.get("borderWidth");e=Ir(e);var i=UM(t),o=Math.max(Math.round(n)*1.5,6),s="",l=af+":",u;fe(["left","right"],i)>-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 f=u*Math.PI/180,c=o+n,h=c*Math.abs(Math.cos(f))+c*Math.abs(Math.sin(f)),v=Math.round(((h-Math.SQRT2*n)/2+Math.SQRT2*n-(h-c)/2)*100)/100;s+=";"+i+":-"+v+"px";var d=e+" 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'<div style="'+p.join("")+'"></div>'}function XM(r,e,t){var a="cubic-bezier(0.23,1,0.32,1)",n="",i="";return t&&(n=" "+r/2+"s "+a,i="opacity"+n+",visibility"+n),e||(n=" "+r+"s "+a,i+=(i.length?",":"")+(be.transformSupported?""+af+n:",left"+n+",top"+n)),HM+":"+i}function ch(r,e,t){var a=r.toFixed(0)+"px",n=e.toFixed(0)+"px";if(!be.transformSupported)return t?"top:"+n+";left:"+a+";":[["top",n],["left",a]];var i=be.transform3dSupported,o="translate"+(i?"3d":"")+"("+a+","+n+(i?",0":"")+")";return t?"top:0;left:0;"+af+":"+o+";":[["top",0],["left",0],[By,o]]}function ZM(r){var e=[],t=r.get("fontSize"),a=r.getTextColor();a&&e.push("color:"+a),e.push("font:"+r.getFont());var n=j(r.get("lineHeight"),Math.round(t*3/2));t&&e.push("line-height:"+n+"px");var i=r.get("textShadowColor"),o=r.get("textShadowBlur")||0,s=r.get("textShadowOffsetX")||0,l=r.get("textShadowOffsetY")||0;return i&&o&&e.push("text-shadow:"+s+"px "+l+"px "+o+"px "+i),T(["decoration","align"],function(u){var f=r.get(u);f&&e.push("text-"+u+":"+f)}),e.join(";")}function $M(r,e,t,a){var n=[],i=r.get("transitionDuration"),o=r.get("backgroundColor"),s=r.get("shadowBlur"),l=r.get("shadowColor"),u=r.get("shadowOffsetX"),f=r.get("shadowOffsetY"),c=r.getModel("textStyle"),h=gp(r,"html"),v=u+"px "+f+"px "+s+"px "+l;return n.push("box-shadow:"+v),e&&i>0&&n.push(XM(i,t,a)),o&&n.push("background-color:"+o),T(["width","color","radius"],function(d){var p="border-"+d,y=Fd(p),g=r.get(y);g!=null&&n.push(p+":"+g+(d==="color"?"":"px"))}),n.push(ZM(c)),h!=null&&n.push("padding:"+Fn(h).join("px ")+"px"),n.join(";")+";"}function vh(r,e,t,a,n){var i=e&&e.painter;if(t){var o=i&&i.getViewportRoot();o&&Cm(r,o,t,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]/e.getWidth(),r[3]=r[1]/e.getHeight()}var KM=(function(){function r(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,be.wxa)return null;var a=document.createElement("div");a.domBelongToZr=!0,this.el=a;var n=this._zr=e.getZr(),i=t.appendTo,o=i&&(Z(i)?document.querySelector(i):hf(i)?i:Q(i)&&i(e.getDom()));vh(this._styleCoord,n,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(a),this._api=e,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,f=n.painter.getViewportRoot();Tm(f,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(e){if(!this._container){var t=this._api.getDom(),a=FM(t,"position"),n=t.style;n.position!=="absolute"&&a!=="absolute"&&(n.position="relative")}var i=e.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this._enableDisplayTransition=e.get("displayTransition")&&e.get("transitionDuration")>0,this.el.className=e.get("className")||""},r.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var a=this.el,n=a.style,i=this._styleCoord;a.innerHTML?n.cssText=WM+$M(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+ch(i[0],i[1],!0)+("border-color:"+Ir(t)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):n.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(e,t,a,n,i){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(Z(i)&&a.get("trigger")==="item"&&!Oy(a)&&(s=YM(a,n,i)),Z(e))o.innerHTML=e+s;else if(e){o.innerHTML="",N(e)||(e=[e]);for(var l=0;l<e.length;l++)hf(e[l])&&e[l].parentNode!==o&&o.appendChild(e[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},r.prototype.setEnterable=function(e){this._enterable=e},r.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},r.prototype.moveTo=function(e,t){if(this.el){var a=this._styleCoord;if(vh(a,this._zr,this._container,e,t),a[0]!=null&&a[1]!=null){var n=this.el.style,i=ch(a[0],a[1]);T(i,function(o){n[o[0]]=o[1]})}}},r.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},r.prototype.hide=function(){var e=this,t=this.el.style;this._enableDisplayTransition?(t.visibility="hidden",t.opacity="0"):t.display="none",be.transform3dSupported&&(t.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},r.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout($(this.hide,this),e)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this._zr;Mm(e&&e.painter&&e.painter.getViewportRoot(),this._container);var t=this.el;if(t){t.onmouseenter=t.onmousemove=t.onmouseleave=null;var a=t.parentNode;a&&a.removeChild(t)}this.el=this._container=null},r})(),qM=(function(){function r(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),dh(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return r.prototype.update=function(e){var t=e.get("alwaysShowContent");t&&this._moveIfResized(),this._alwaysShowContent=t},r.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},r.prototype.setContent=function(e,t,a,n,i){var o=this;K(e)&&Oe(""),this.el&&this._zr.remove(this.el);var s=a.getModel("textStyle");this.el=new de({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:n,textShadowColor:s.get("textShadowColor"),fill:a.get(["textStyle","color"]),padding:gp(a,"richText"),verticalAlign:"top",align:"left"},z:a.get("z")}),T(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=a.get(u)}),T(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},r.prototype.setEnterable=function(e){this._enterable=e},r.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),a=hh(e.style);return[t.width+a.left+a.right,t.height+a.top+a.bottom]},r.prototype.moveTo=function(e,t){var a=this.el;if(a){var n=this._styleCoord;dh(n,this._zr,e,t),e=n[0],t=n[1];var i=a.style,o=Qt(i.borderWidth||0),s=hh(i);a.x=e+o+s.left,a.y=t+o+s.top,a.markRedraw()}},r.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},r.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},r.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout($(this.hide,this),e)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this._zr.remove(this.el)},r})();function Qt(r){return Math.max(0,r)}function hh(r){var e=Qt(r.shadowBlur||0),t=Qt(r.shadowOffsetX||0),a=Qt(r.shadowOffsetY||0);return{left:Qt(e-t),right:Qt(e+t),top:Qt(e-a),bottom:Qt(e+a)}}function dh(r,e,t,a){r[0]=t,r[1]=a,r[2]=r[0]/e.getWidth(),r[3]=r[1]/e.getHeight()}var jM=new ve({shape:{x:-1,y:-1,width:2,height:2}}),QM=(function(r){U(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a){if(!(be.node||!a.getDom())){var n=t.getComponent("tooltip"),i=this._renderMode=Jm(n.get("renderMode"));this._tooltipContent=i==="richText"?new qM(a):new KM(a,{appendTo:n.get("appendToBody",!0)?"body":n.get("appendTo",!0)})}},e.prototype.render=function(t,a,n){if(!(be.node||!n.getDom())){this.group.removeAll(),this._tooltipModel=t,this._ecModel=a,this._api=n;var i=this._tooltipContent;i.update(t),i.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&t.get("transitionDuration")?_p(this,"_updatePosition",50,"fixRate"):ll(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel,a=t.get("triggerOn");Py("itemTooltip",this._api,$(function(n,i,o){a!=="none"&&(a.indexOf(n)>=0?this._tryShow(i,o):n==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,a=this._ecModel,n=this._api,i=t.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(t,a,n,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,a,n,i){if(!(i.from===this.uid||be.node||!n.getDom())){var o=ph(i,n);this._ticket="";var s=i.dataByCoordSys,l=rD(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 f=jM;f.x=i.x,f.y=i.y,f.update(),te(f).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:f},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(t,a,n,i))return;var c=Ry(i,a),h=c.point[0],v=c.point[1];h!=null&&v!=null&&this._tryShow({offsetX:h,offsetY:v,target:c.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))}},e.prototype.manuallyHideTip=function(t,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(ph(i,n))},e.prototype._manuallyAxisShowTip=function(t,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 f=u.getData(),c=Wa([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(c.get("trigger")==="axis")return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},e.prototype._tryShow=function(t,a){var n=t.target,i=this._tooltipModel;if(i){this._lastX=t.offsetX,this._lastY=t.offsetY;var o=t.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,t);else if(n){var s=te(n);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;oa(n,function(f){if(f.tooltipDisabled)return l=u=null,!0;l||u||(te(f).dataIndex!=null?l=f:te(f).tooltipConfig!=null&&(u=f))},!0),l?this._showSeriesItemTooltip(t,l,a):u?this._showComponentItemTooltip(t,u,a):this._hide(a)}else this._lastDataByCoordSys=null,this._hide(a)}},e.prototype._showOrMove=function(t,a){var n=t.get("showDelay");a=$(a,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(a,n):a()},e.prototype._showAxisTooltip=function(t,a){var n=this._ecModel,i=this._tooltipModel,o=[a.offsetX,a.offsetY],s=Wa([a.tooltipOption],i),l=this._renderMode,u=[],f=ir("section",{blocks:[],noHeader:!0}),c=[],h=new Uo;T(t,function(m){T(m.dataByAxis,function(_){var S=n.getComponent(_.axisDim+"Axis",_.axisIndex),b=_.value;if(!(!S||b==null)){var x=Iy(b,S.axis,n,_.seriesDataIndices,_.valueLabelOpt),w=ir("section",{header:x,noHeader:!Bn(x),sortBlocks:!0,blocks:[]});f.blocks.push(w),T(_.seriesDataIndices,function(D){var M=n.getSeriesByIndex(D.seriesIndex),A=D.dataIndexInside,C=M.getDataParams(A);if(!(C.dataIndex<0)){C.axisDim=_.axisDim,C.axisIndex=_.axisIndex,C.axisType=_.axisType,C.axisId=_.axisId,C.axisValue=ji(S.axis,{value:b}),C.axisValueLabel=x,C.marker=h.makeTooltipMarker("item",Ir(C.color),l);var I=ac(M.formatTooltip(A,!0,null)),L=I.frag;if(L){var E=Wa([M],i).get("valueFormatter");w.blocks.push(E?F({valueFormatter:E},L):L)}I.text&&c.push(I.text),u.push(C)}})}})}),f.blocks.reverse(),c.reverse();var v=a.position,d=s.get("order"),p=uc(f,h,l,d,n.get("useUTC"),s.get("textStyle"));p&&c.unshift(p);var y=l==="richText"?`
|
|
8
8
|
|
|
9
|
-
`:"<br/>",g=c.join(y);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t,u)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,g,u,Math.random()+"",o[0],o[1],v,null,h)})},e.prototype._showSeriesItemTooltip=function(t,a,n){var i=this._ecModel,o=te(a),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,c=o.dataType,h=u.getData(c),v=this._renderMode,d=t.positionDefault,p=Wa([h.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),y=p.get("trigger");if(!(y!=null&&y!=="item")){var g=u.getDataParams(f,c),m=new Uo;g.marker=m.makeTooltipMarker("item",Ir(g.color),v);var _=rc(u.formatTooltip(f,!1,c)),S=p.get("order"),b=p.get("valueFormatter"),x=_.frag,w=x?lc(b?F({valueFormatter:b},x):x,m,v,S,i.get("useUTC"),p.get("textStyle")):_.text,D="item_"+u.name+"_"+f;this._showOrMove(p,function(){this._showTooltipContent(p,w,g,D,t.offsetX,t.offsetY,t.position,t.target,m)}),n({type:"showTip",dataIndexInside:f,dataIndex:h.getRawIndex(f),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,a,n){var i=this._renderMode==="html",o=te(a),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(Z(l)){var f=l;l={content:f,formatter:f},u=!0}u&&i&&l.content&&(l=q(l),l.content=Ye(l.content));var c=[l],h=this._ecModel.getComponent(o.componentMainType,o.componentIndex);h&&c.push(h),c.push({formatter:l.content});var v=t.positionDefault,d=Wa(c,this._tooltipModel,v?{position:v}:null),p=d.get("content"),y=Math.random()+"",g=new Uo;this._showOrMove(d,function(){var m=q(d.get("formatterParams")||{});this._showTooltipContent(d,p,m,y,t.offsetX,t.offsetY,t.position,a,g)}),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,a,n,i,o,s,l,u,f){if(this._ticket="",!(!t.get("showContent")||!t.get("show"))){var c=this._tooltipContent;c.setEnterable(t.get("enterable"));var h=t.get("formatter");l=l||t.get("position");var v=a,d=this._getNearestPoint([o,s],n,t.get("trigger"),t.get("borderColor"),t.get("defaultBorderColor",!0)),p=d.color;if(h)if(Z(h)){var y=t.ecModel.get("useUTC"),g=N(n)?n[0]:n,m=g&&g.axisType&&g.axisType.indexOf("time")>=0;v=h,m&&(v=_o(g.axisValue,v,y)),v=Fd(v,n,!0)}else if(Q(h)){var _=$(function(S,b){S===this._ticket&&(c.setContent(b,f,t,p,l),this._updatePosition(t,l,o,s,c,n,u))},this);this._ticket=i,v=h(n,i,_)}else v=h;c.setContent(v,f,t,p,l),c.show(t,p),this._updatePosition(t,l,o,s,c,n,u)}},e.prototype._getNearestPoint=function(t,a,n,i,o){if(n==="axis"||N(a))return{color:i||o};if(!N(a))return{color:i||a.color||a.borderColor}},e.prototype._updatePosition=function(t,a,n,i,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();a=a||t.get("position");var c=o.getSize(),h=t.get("align"),v=t.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),Q(a)&&(a=a([n,i],s,o.el,d,{viewSize:[u,f],contentSize:c.slice()})),N(a))n=re(a[0],u),i=re(a[1],f);else if(K(a)){var p=a;p.width=c[0],p.height=c[1];var y=qe(p,{width:u,height:f});n=y.x,i=y.y,h=null,v=null}else if(Z(a)&&l){var g=eD(a,d,c,t.get("borderWidth"));n=g[0],i=g[1]}else{var g=QM(n,i,o,u,f,h?null:20,v?null:20);n=g[0],i=g[1]}if(h&&(n-=ph(h)?c[0]/2:h==="right"?c[0]:0),v&&(i-=ph(v)?c[1]/2:v==="bottom"?c[1]:0),Ey(t)){var g=JM(n,i,o,u,f);n=g[0],i=g[1]}o.moveTo(n,i)},e.prototype._updateContentNotChangedOnAxis=function(t,a){var n=this._lastDataByCoordSys,i=this._cbParamsList,o=!!n&&n.length===t.length;return o&&T(n,function(s,l){var u=s.dataByAxis||[],f=t[l]||{},c=f.dataByAxis||[];o=o&&u.length===c.length,o&&T(u,function(h,v){var d=c[v]||{},p=h.seriesDataIndices||[],y=d.seriesDataIndices||[];o=o&&h.value===d.value&&h.axisType===d.axisType&&h.axisId===d.axisId&&p.length===y.length,o&&T(p,function(g,m){var _=y[m];o=o&&g.seriesIndex===_.seriesIndex&&g.dataIndex===_.dataIndex}),i&&T(h.seriesDataIndices,function(g){var m=g.seriesIndex,_=a[m],S=i[m];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=a,!!o},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,a){be.node||!a.getDom()||(sl(this,"_updatePosition"),this._tooltipContent.dispose(),Bl("itemTooltip",a))},e.type="tooltip",e})(Ue);function Wa(r,e,t){var a=e.ecModel,n;t?(n=new he(t,a,a),n=new he(e.option,n,a)):n=e;for(var i=r.length-1;i>=0;i--){var o=r[i];o&&(o instanceof he&&(o=o.get("tooltip",!0)),Z(o)&&(o={formatter:o}),o&&(n=new he(o,n,a)))}return n}function dh(r,e){return r.dispatchAction||$(e.dispatchAction,e)}function QM(r,e,t,a,n,i,o){var s=t.getSize(),l=s[0],u=s[1];return i!=null&&(r+l+i+2>a?r-=l+i:r+=i),o!=null&&(e+u+o>n?e-=u+o:e+=o),[r,e]}function JM(r,e,t,a,n){var i=t.getSize(),o=i[0],s=i[1];return r=Math.min(r+o,a)-o,e=Math.min(e+s,n)-s,r=Math.max(r,0),e=Math.max(e,0),[r,e]}function eD(r,e,t,a){var n=t[0],i=t[1],o=Math.ceil(Math.SQRT2*a)+8,s=0,l=0,u=e.width,f=e.height;switch(r){case"inside":s=e.x+u/2-n/2,l=e.y+f/2-i/2;break;case"top":s=e.x+u/2-n/2,l=e.y-i-o;break;case"bottom":s=e.x+u/2-n/2,l=e.y+f+o;break;case"left":s=e.x-n-o,l=e.y+f/2-i/2;break;case"right":s=e.x+u+o,l=e.y+f/2-i/2}return[s,l]}function ph(r){return r==="center"||r==="middle"}function tD(r,e,t){var a=$l(r).queryOptionMap,n=a.keys()[0];if(!(!n||n==="series")){var i=Sa(e,n,a.get(n),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=t.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=te(u).tooltipConfig;if(f&&f.name===r.name)return l=u,!0}),l)return{componentMainType:n,componentIndex:o.componentIndex,el:l}}}}function tA(r){ot(Ry),r.registerComponentModel(VM),r.registerComponentView(jM),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},nt),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},nt)}var gh=T;function yh(r){if(r){for(var e in r)if(r.hasOwnProperty(e))return!0}}function mh(r,e,t){var a={};return gh(e,function(i){var o=a[i]=n();gh(r[i],function(s,l){if(ze.isValidType(l)){var u={type:l,visual:s};t&&t(u,i),o[l]=new ze(u),l==="opacity"&&(u=q(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new ze(u))}})}),a;function n(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function rD(r,e,t){var a;T(t,function(n){e.hasOwnProperty(n)&&yh(e[n])&&(a=!0)}),a&&T(t,function(n){e.hasOwnProperty(n)&&yh(e[n])?r[n]=q(e[n]):delete r[n]})}function aD(r,e,t,a){var n={};return T(r,function(i){var o=ze.prepareVisualTypes(e[i]);n[i]=o}),{progress:function(o,s){var l;a!=null&&(l=s.getDimensionIndex(a));function u(b){return Mp(s,c,b)}function f(b,x){dx(s,c,b,x)}for(var c,h=s.getStore();(c=o.next())!=null;){var v=s.getRawDataItem(c);if(!(v&&v.visualMap===!1))for(var d=a!=null?h.get(l,c):c,p=t(d),y=e[p],g=n[p],m=0,_=g.length;m<_;m++){var S=g[m];y[S]&&y[S].applyVisual(d,u,f)}}}}}var nD=(function(r){U(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"center",top:B.size.m,backgroundColor:B.color.transparent,borderColor:B.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:B.color.primary},subtextStyle:{fontSize:12,color:B.color.quaternary}},e})(ie),iD=(function(r){U(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){if(this.group.removeAll(),!!t.get("show")){var i=this.group,o=t.getModel("textStyle"),s=t.getModel("subtextStyle"),l=t.get("textAlign"),u=j(t.get("textBaseline"),t.get("textVerticalAlign")),f=new de({style:Ae(o,{text:t.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),c=f.getBoundingRect(),h=t.get("subtext"),v=new de({style:Ae(s,{text:h,fill:s.getTextColor(),y:c.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=t.get("link"),p=t.get("sublink"),y=t.get("triggerEvent",!0);f.silent=!d&&!y,v.silent=!p&&!y,d&&f.on("click",function(){Bf(d,"_"+t.get("target"))}),p&&v.on("click",function(){Bf(p,"_"+t.get("subtarget"))}),te(f).eventData=te(v).eventData=y?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(f),h&&i.add(v);var g=i.getBoundingRect(),m=t.getBoxLayoutParams();m.width=g.width,m.height=g.height;var _=Nr(t,n),S=qe(m,_.refContainer,t.get("padding"));l||(l=t.get("left")||t.get("right"),l==="middle"&&(l="center"),l==="right"?S.x+=S.width:l==="center"&&(S.x+=S.width/2)),u||(u=t.get("top")||t.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?S.y+=S.height:u==="middle"&&(S.y+=S.height/2),u=u||"top"),i.x=S.x,i.y=S.y,i.markRedraw();var b={align:l,verticalAlign:u};f.setStyle(b),v.setStyle(b),g=i.getBoundingRect();var x=S.margin,w=t.getItemStyle(["color","opacity"]);w.fill=t.get("backgroundColor");var D=new ve({shape:{x:g.x-x[3],y:g.y-x[0],width:g.width+x[1]+x[3],height:g.height+x[0]+x[2],r:t.get("borderRadius")},style:w,subPixelOptimize:!0,silent:!0});i.add(D)}},e.type="title",e})(Ue);function rA(r){r.registerComponentModel(nD),r.registerComponentView(iD)}var oD=function(r,e){if(e==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},Vl=(function(r){U(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.prototype.init=function(t,a,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(t,a){r.prototype.mergeOption.call(this,t,a),this._updateSelector(t)},e.prototype._updateSelector=function(t){var a=t.selector,n=this.ecModel;a===!0&&(a=t.selector=["all","inverse"]),N(a)&&T(a,function(i,o){Z(i)&&(i={type:i}),a[o]=ue(i,oD(n,i.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&this.get("selectedMode")==="single"){for(var a=!1,n=0;n<t.length;n++){var i=t[n].get("name");if(this.isSelected(i)){this.select(i),a=!0;break}}!a&&this.select(t[0].get("name"))}},e.prototype._updateData=function(t){var a=[],n=[];t.eachRawSeries(function(l){var u=l.name;n.push(u);var f;if(l.legendVisualProvider){var c=l.legendVisualProvider,h=c.getAllNames();t.isSeriesFiltered(l)||(n=n.concat(h)),h.length?a=a.concat(h):f=!0}else f=!0;f&&Zl(l)&&a.push(l.name)}),this._availableNames=n;var i=this.get("data")||a,o=ee(),s=X(i,function(l){return(Z(l)||oe(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new he(l,this,this.ecModel))},this);this._data=Ce(s,function(l){return!!l})},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var a=this.option.selected,n=this.get("selectedMode");if(n==="single"){var i=this._data;T(i,function(o){a[o.get("name")]=!1})}a[t]=!0},e.prototype.unSelect=function(t){this.get("selectedMode")!=="single"&&(this.option.selected[t]=!1)},e.prototype.toggleSelected=function(t){var a=this.option.selected;a.hasOwnProperty(t)||(a[t]=!0),this[a[t]?"unSelect":"select"](t)},e.prototype.allSelect=function(){var t=this._data,a=this.option.selected;T(t,function(n){a[n.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var t=this._data,a=this.option.selected;T(t,function(n){var i=n.get("name",!0);a.hasOwnProperty(i)||(a[i]=!0),a[i]=!a[i]})},e.prototype.isSelected=function(t){var a=this.option.selected;return!(a.hasOwnProperty(t)&&!a[t])&&fe(this._availableNames,t)>=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",bottom:B.size.m,align:"auto",backgroundColor:B.color.transparent,borderColor:B.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:B.color.disabled,inactiveBorderColor:B.color.disabled,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:B.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:B.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:B.color.tertiary,borderWidth:1,borderColor:B.color.border},emphasis:{selectorLabel:{show:!0,color:B.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},e})(ie),ta=ye,zl=T,Si=le,Vy=(function(r){U(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!1,t}return e.prototype.init=function(){this.group.add(this._contentGroup=new Si),this.group.add(this._selectorGroup=new Si),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,a,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!t.get("show",!0)){var o=t.get("align"),s=t.get("orient");(!o||o==="auto")&&(o=t.get("left")==="right"&&s==="vertical"?"right":"left");var l=t.get("selector",!0),u=t.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,t,a,n,l,s,u);var f=Nr(t,n).refContainer,c=t.getBoxLayoutParams(),h=t.get("padding"),v=qe(c,f,h),d=this.layoutInner(t,o,v,i,l,u),p=qe(ae({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=BM(d,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,a,n,i,o,s,l){var u=this.getContentGroup(),f=ee(),c=a.get("selectedMode"),h=a.get("triggerEvent"),v=[];n.eachRawSeries(function(d){!d.get("legendHoverLink")&&v.push(d.id)}),zl(a.getData(),function(d,p){var y=this,g=d.get("name");if(!this.newlineDisabled&&(g===""||g===`
|
|
10
|
-
`)){var m=new Si;m.newline=!0,u.add(m);return}var _=n.getSeriesByName(g)[0];if(!f.get(g))if(_){var S=_.getData(),b=S.getVisual("legendLineStyle")||{},x=S.getVisual("legendIcon"),w=S.getVisual("style"),D=this._createItem(_,g,p,d,a,t,b,w,x,c,i);D.on("click",ta(
|
|
11
|
-
`||n==="")){var i=r.isSelected(n);G(t,n)?t[n]=t[n]&&i:t[n]=i}}),t}function fD(r){r.registerAction("legendToggleSelect","legendselectchanged",ye(Ua,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",ye(Ua,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",ye(Ua,"inverseSelect")),r.registerAction("legendSelect","legendselected",ye(Ua,"select")),r.registerAction("legendUnSelect","legendunselected",ye(Ua,"unSelect"))}function Gy(r){r.registerComponentModel(Vl),r.registerComponentView(Vy),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,uD),r.registerSubTypeDefaulter("legend",function(){return"plain"}),fD(r)}var cD=(function(r){U(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(t,a,n){var i=ba(t);r.prototype.init.call(this,t,a,n),xh(this,t,i)},e.prototype.mergeOption=function(t,a){r.prototype.mergeOption.call(this,t,a),xh(this,this.option,t)},e.type="legend.scroll",e.defaultOption=mo(Vl.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:B.color.accent50,pageIconInactiveColor:B.color.accent10,pageIconSize:15,pageTextStyle:{color:B.color.tertiary},animationDurationUpdate:800}),e})(Vl);function xh(r,e,t){var a=r.getOrient(),n=[1,1];n[a.index]=0,zt(e,t,{type:"box",ignoreSize:!!n})}var bh=le,Es=["width","height"],Os=["x","y"],vD=(function(r){U(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!0,t._currentIndex=0,t}return e.prototype.init=function(){r.prototype.init.call(this),this.group.add(this._containerGroup=new bh),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new bh)},e.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(t,a,n,i,o,s,l){var u=this;r.prototype.renderInner.call(this,t,a,n,i,o,s,l);var f=this._controllerGroup,c=a.get("pageIconSize",!0),h=N(c)?c:[c,c];d("pagePrev",0);var v=a.getModel("pageTextStyle");f.add(new de({name:"pageText",style:{text:"xx/xx",fill:v.getTextColor(),font:v.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(p,y){var g=p+"DataIndex",m=nu(a.get("pageIcons",!0)[a.getOrient().name][y],{onclick:$(u._pageGo,u,g,a,i)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});m.name=p,f.add(m)}},e.prototype.layoutInner=function(t,a,n,i,o,s){var l=this.getSelectorGroup(),u=t.getOrient().index,f=Es[u],c=Os[u],h=Es[1-u],v=Os[1-u];o&&ca("horizontal",l,t.get("selectorItemGap",!0));var d=t.get("selectorButtonGap",!0),p=l.getBoundingRect(),y=[-p.x,-p.y],g=q(n);o&&(g[f]=n[f]-p[f]-d);var m=this._layoutContentAndController(t,i,g,u,f,h,v,c);if(o){if(s==="end")y[u]+=m[f]+d;else{var _=p[f]+d;y[u]-=_,m[c]-=_}m[f]+=p[f]+d,y[1-u]+=m[v]+m[h]/2-p[h]/2,m[h]=Math.max(m[h],p[h]),m[v]=Math.min(m[v],p[v]+y[1-u]),l.x=y[0],l.y=y[1],l.markRedraw()}return m},e.prototype._layoutContentAndController=function(t,a,n,i,o,s,l,u){var f=this.getContentGroup(),c=this._containerGroup,h=this._controllerGroup;ca(t.get("orient"),f,t.get("itemGap"),i?n.width:null,i?null:n.height),ca("horizontal",h,t.get("pageButtonItemGap",!0));var v=f.getBoundingRect(),d=h.getBoundingRect(),p=this._showController=v[o]>n[o],y=[-v.x,-v.y];a||(y[i]=f[u]);var g=[0,0],m=[-d.x,-d.y],_=j(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(p){var S=t.get("pageButtonPosition",!0);S==="end"?m[i]+=n[o]-d[o]:g[i]+=d[o]+_}m[1-i]+=v[s]/2-d[s]/2,f.setPosition(y),c.setPosition(g),h.setPosition(m);var b={x:0,y:0};if(b[o]=p?n[o]:v[o],b[s]=Math.max(v[s],d[s]),b[l]=Math.min(0,d[l]+m[1-i]),c.__rectSize=n[o],p){var x={x:0,y:0};x[o]=Math.max(n[o]-d[o]-_,0),x[s]=b[s],c.setClipPath(new ve({shape:x})),c.__rectSize=x[o]}else h.eachChild(function(D){D.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(t);return w.pageIndex!=null&&Se(f,{x:w.contentPosition[0],y:w.contentPosition[1]},p?t:null),this._updatePageInfoView(t,w),b},e.prototype._pageGo=function(t,a,n){var i=this._getPageInfo(a)[t];i!=null&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:a.id})},e.prototype._updatePageInfoView=function(t,a){var n=this._controllerGroup;T(["pagePrev","pageNext"],function(f){var c=f+"DataIndex",h=a[c]!=null,v=n.childOfName(f);v&&(v.setStyle("fill",h?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),v.cursor=h?"pointer":"default")});var i=n.childOfName("pageText"),o=t.get("pageFormatter"),s=a.pageIndex,l=s!=null?s+1:0,u=a.pageCount;i&&o&&i.setStyle("text",Z(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(t){var a=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,o=t.getOrient().index,s=Es[o],l=Os[o],u=this._findTargetItemIndex(a),f=n.children(),c=f[u],h=f.length,v=h?1:0,d={contentPosition:[n.x,n.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return d;var p=S(c);d.contentPosition[o]=-p.s;for(var y=u+1,g=p,m=p,_=null;y<=h;++y)_=S(f[y]),(!_&&m.e>g.s+i||_&&!b(_,g.s))&&(m.i>g.i?g=m:g=_,g&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=g.i),++d.pageCount)),m=_;for(var y=u-1,g=p,m=p,_=null;y>=-1;--y)_=S(f[y]),(!_||!b(m,_.s))&&g.i<m.i&&(m=g,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=g.i),++d.pageCount,++d.pageIndex),g=_;return d;function S(x){if(x){var w=x.getBoundingRect(),D=w[l]+x[l];return{s:D,e:D+w[s],i:x.__legendDataIndex}}}function b(x,w){return x.e>=w&&x.s<=w+i}},e.prototype._findTargetItemIndex=function(t){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===t&&(a=s)}),a??i},e.type="legend.scroll",e})(Vy);function hD(r){r.registerAction("legendScroll","legendscroll",function(e,t){var a=e.scrollDataIndex;a!=null&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(n){n.setScrollDataIndex(a)})})}function dD(r){ot(Gy),r.registerComponentModel(cD),r.registerComponentView(vD),hD(r)}function aA(r){ot(Gy),ot(dD)}var Fy={get:function(r,e,t){var a=q((pD[r]||{})[e]);return t&&N(a)?a[a.length-1]:a}},pD={color:{active:["#006edd","#e0ffff"],inactive:[B.color.transparent]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},wh=ze.mapVisual,gD=ze.eachVisual,yD=N,Th=T,mD=Kh,_D=it,lo=(function(r){U(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.stateList=["inRange","outOfRange"],t.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],t.layoutMode={type:"box",ignoreSize:!0},t.dataBound=[-1/0,1/0],t.targetVisuals={},t.controllerVisuals={},t}return e.prototype.init=function(t,a,n){this.mergeDefaultAndTheme(t,n)},e.prototype.optionUpdated=function(t,a){var n=this.option;!a&&rD(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var a=this.stateList;t=$(t,this),this.controllerVisuals=mh(this.option.controller,a,t),this.targetVisuals=mh(this.option.target,a,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesId,a=this.option.seriesIndex;a==null&&t==null&&(a="all");var n=Sa(this.ecModel,"series",{index:a,id:t},{useDefault:!1,enableAll:!0,enableNone:!1}).models;return X(n,function(i){return i.componentIndex})},e.prototype.eachTargetSeries=function(t,a){T(this.getTargetSeriesIndices(),function(n){var i=this.ecModel.getSeriesByIndex(n);i&&t.call(a,i)},this)},e.prototype.isTargetSeries=function(t){var a=!1;return this.eachTargetSeries(function(n){n===t&&(a=!0)}),a},e.prototype.formatValueText=function(t,a,n){var i=this.option,o=i.precision,s=this.dataBound,l=i.formatter,u;n=n||["<",">"],N(t)&&(t=t.slice(),u=!0);var f=a?t:u?[c(t[0]),c(t[1])]:c(t);if(Z(l))return l.replace("{value}",u?f[0]:f).replace("{value2}",u?f[1]:f);if(Q(l))return u?l(t[0],t[1]):l(t);if(u)return t[0]===s[0]?n[0]+" "+f[1]:t[1]===s[1]?n[1]+" "+f[0]:f[0]+" - "+f[1];return f;function c(h){return h===s[0]?"min":h===s[1]?"max":(+h).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,a=mD([t.min,t.max]);this._dataExtent=a},e.prototype.getDataDimensionIndex=function(t){var a=this.option.dimension;if(a!=null)return t.getDimensionIndex(a);for(var n=t.dimensions,i=n.length-1;i>=0;i--){var o=n[i],s=t.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,a=this.option,n={inRange:a.inRange,outOfRange:a.outOfRange},i=a.target||(a.target={}),o=a.controller||(a.controller={});ue(i,n),ue(o,n);var s=this.isCategory();l.call(this,i),l.call(this,o),u.call(this,i,"inRange","outOfRange"),f.call(this,o);function l(c){yD(a.color)&&!c.inRange&&(c.inRange={color:a.color.slice().reverse()}),c.inRange=c.inRange||{color:t.get("gradientColor")}}function u(c,h,v){var d=c[h],p=c[v];d&&!p&&(p=c[v]={},Th(d,function(y,g){if(ze.isValidType(g)){var m=Fy.get(g,"inactive",s);m!=null&&(p[g]=m,g==="color"&&!p.hasOwnProperty("opacity")&&!p.hasOwnProperty("colorAlpha")&&(p.opacity=[0,0]))}}))}function f(c){var h=(c.inRange||{}).symbol||(c.outOfRange||{}).symbol,v=(c.inRange||{}).symbolSize||(c.outOfRange||{}).symbolSize,d=this.get("inactiveColor"),p=this.getItemSymbol(),y=p||"roundRect";Th(this.stateList,function(g){var m=this.itemSize,_=c[g];_||(_=c[g]={color:s?d:[d]}),_.symbol==null&&(_.symbol=h&&q(h)||(s?y:[y])),_.symbolSize==null&&(_.symbolSize=v&&q(v)||(s?m[0]:[m[0],m[0]])),_.symbol=wh(_.symbol,function(x){return x==="none"?y:x});var S=_.symbolSize;if(S!=null){var b=-1/0;gD(S,function(x){x>b&&(b=x)}),_.symbolSize=wh(S,function(x){return _D(x,[0,b],[0,m[0]],!0)})}},this)}},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:B.color.transparent,borderColor:B.color.borderTint,contentColor:B.color.theme[0],inactiveColor:B.color.disabled,borderWidth:0,padding:B.size.m,textGap:10,precision:0,textStyle:{color:B.color.secondary}},e})(ie),Ch=[20,140],SD=(function(r){U(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(t,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(n){n.mappingMethod="linear",n.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){r.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=Ch[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=Ch[1])},e.prototype._resetRange=function(){var t=this.getExtent(),a=this.option.range;!a||a.auto?(t.auto=1,this.option.range=t):N(a)&&(a[0]>a[1]&&a.reverse(),a[0]=Math.max(a[0],t[0]),a[1]=Math.min(a[1],t[1]))},e.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),T(this.stateList,function(t){var a=this.option.controller[t].symbolSize;a&&a[0]!==a[1]&&(a[0]=a[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),a=Kh((this.get("range")||[]).slice());return a[0]>t[1]&&(a[0]=t[1]),a[1]>t[1]&&(a[1]=t[1]),a[0]<t[0]&&(a[0]=t[0]),a[1]<t[0]&&(a[1]=t[0]),a},e.prototype.getValueState=function(t){var a=this.option.range,n=this.getExtent(),i=j(this.option.unboundedRange,!0);return(i&&a[0]<=n[0]||a[0]<=t)&&(i&&a[1]>=n[1]||t<=a[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var a=[];return this.eachTargetSeries(function(n){var i=[],o=n.getData();o.each(this.getDataDimensionIndex(o),function(s,l){t[0]<=s&&s<=t[1]&&i.push(l)},this),a.push({seriesId:n.id,dataIndex:i})},this),a},e.prototype.getVisualMeta=function(t){var a=Mh(this,"outOfRange",this.getExtent()),n=Mh(this,"inRange",this.option.range.slice()),i=[];function o(v,d){i.push({value:v,color:t(v,d)})}for(var s=0,l=0,u=n.length,f=a.length;l<f&&(!n.length||a[l]<=n[0]);l++)a[l]<n[s]&&o(a[l],"outOfRange");for(var c=1;s<u;s++,c=0)c&&i.length&&o(n[s],"outOfRange"),o(n[s],"inRange");for(var c=1;l<f;l++)(!n.length||n[n.length-1]<a[l])&&(c&&(i.length&&o(i[i.length-1].value,"outOfRange"),c=0),o(a[l],"outOfRange"));var h=i.length;return{stops:i,outerColors:[h?i[0].color:"transparent",h?i[h-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=mo(lo.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:B.color.neutral00,borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:B.color.neutral00,borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:B.color.shadow}}),e})(lo);function Mh(r,e,t){if(t[0]===t[1])return t.slice();for(var a=200,n=(t[1]-t[0])/a,i=t[0],o=[],s=0;s<=a&&i<t[1];s++)o.push(i),i+=n;return o.push(t[1]),o}var Hy=(function(r){U(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.autoPositionValues={left:1,right:1,top:1,bottom:1},t}return e.prototype.init=function(t,a){this.ecModel=t,this.api=a},e.prototype.render=function(t,a,n,i){if(this.visualMapModel=t,t.get("show")===!1){this.group.removeAll();return}this.doRender(t,a,n,i)},e.prototype.renderBackground=function(t){var a=this.visualMapModel,n=Fn(a.get("padding")||0),i=t.getBoundingRect();t.add(new ve({z2:-1,silent:!0,shape:{x:i.x-n[3],y:i.y-n[0],width:i.width+n[3]+n[1],height:i.height+n[0]+n[2]},style:{fill:a.get("backgroundColor"),stroke:a.get("borderColor"),lineWidth:a.get("borderWidth")}}))},e.prototype.getControllerVisual=function(t,a,n){n=n||{};var i=n.forceState,o=this.visualMapModel,s={};if(a==="color"){var l=o.get("contentColor");s.color=l}function u(v){return s[v]}function f(v,d){s[v]=d}var c=o.controllerVisuals[i||o.getValueState(t)],h=ze.prepareVisualTypes(c);return T(h,function(v){var d=c[v];n.convertOpacityToAlpha&&v==="opacity"&&(v="colorAlpha",d=c.__alphaForOpacity),ze.dependsOn(v,a)&&d&&d.applyVisual(t,u,f)}),s[a]},e.prototype.positionGroup=function(t){var a=this.visualMapModel,n=this.api,i=Nr(a,n).refContainer;D_(t,a.getBoxLayoutParams(),i)},e.prototype.doRender=function(t,a,n,i){},e.type="visualMap",e})(Ue),Dh=[["left","right","width"],["top","bottom","height"]];function Wy(r,e,t){var a=r.option,n=a.align;if(n!=null&&n!=="auto")return n;for(var i={width:e.getWidth(),height:e.getHeight()},o=a.orient==="horizontal"?1:0,s=Dh[o],l=[0,null,10],u={},f=0;f<3;f++)u[Dh[1-o][f]]=l[f],u[s[f]]=f===2?t[0]:a[s[f]];var c=[["x","width",3],["y","height",0]][o],h=qe(u,i,a.padding);return s[(h.margin[c[2]]||0)+h[c[0]]+h[c[1]]*.5<i[c[1]]*.5?0:1]}function Pi(r,e){return T(r||[],function(t){t.dataIndex!=null&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")}),r}var St=it,xD=T,Ah=Math.min,Ns=Math.max,bD=12,wD=6,TD=(function(r){U(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._shapes={},t._dataInterval=[],t._handleEnds=[],t._hoverLinkDataIndices=[],t}return e.prototype.init=function(t,a){r.prototype.init.call(this,t,a),this._hoverLinkFromSeriesMouseOver=$(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=$(this._hideIndicator,this)},e.prototype.doRender=function(t,a,n,i){(!i||i.type!=="selectDataRange"||i.from!==this.uid)&&this._buildView()},e.prototype._buildView=function(){this.group.removeAll();var t=this.visualMapModel,a=this.group;this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(a);var n=t.get("text");this._renderEndsText(a,n,0),this._renderEndsText(a,n,1),this._updateView(!0),this.renderBackground(a),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(a)},e.prototype._renderEndsText=function(t,a,n){if(a){var i=a[1-n];i=i!=null?i+"":"";var o=this.visualMapModel,s=o.get("textGap"),l=o.itemSize,u=this._shapes.mainGroup,f=this._applyTransform([l[0]/2,n===0?-s:l[1]+s],u),c=this._applyTransform(n===0?"bottom":"top",u),h=this._orient,v=this.visualMapModel.textStyleModel;this.group.add(new de({style:Ae(v,{x:f[0],y:f[1],verticalAlign:v.get("verticalAlign")||(h==="horizontal"?"middle":c),align:v.get("align")||(h==="horizontal"?c:"center"),text:i})}))}},e.prototype._renderBar=function(t){var a=this.visualMapModel,n=this._shapes,i=a.itemSize,o=this._orient,s=this._useHandle,l=Wy(a,this.api,i),u=n.mainGroup=this._createBarGroup(l),f=new le;u.add(f),f.add(n.outOfRange=Lh()),f.add(n.inRange=Lh(null,s?kh(this._orient):null,$(this._dragHandle,this,"all",!1),$(this._dragHandle,this,"all",!0))),f.setClipPath(new ve({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var c=a.textStyleModel.getTextRect("国"),h=Ns(c.width,c.height);s&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(a,u,0,i,h,o),this._createHandle(a,u,1,i,h,o)),this._createIndicator(a,u,i,h,o),t.add(u)},e.prototype._createHandle=function(t,a,n,i,o,s){var l=$(this._dragHandle,this,n,!1),u=$(this._dragHandle,this,n,!0),f=ln(t.get("handleSize"),i[0]),c=dt(t.get("handleIcon"),-f/2,-f/2,f,f,null,!0),h=kh(this._orient);c.attr({cursor:h,draggable:!0,drift:l,ondragend:u,onmousemove:function(g){ha(g.event)}}),c.x=i[0]/2,c.useStyle(t.getModel("handleStyle").getItemStyle()),c.setStyle({strokeNoScale:!0,strokeFirst:!0}),c.style.lineWidth*=2,c.ensureState("emphasis").style=t.getModel(["emphasis","handleStyle"]).getItemStyle(),tu(c,!0),a.add(c);var v=this.visualMapModel.textStyleModel,d=new de({cursor:h,draggable:!0,drift:l,onmousemove:function(g){ha(g.event)},ondragend:u,style:Ae(v,{x:0,y:0,text:""})});d.ensureState("blur").style={opacity:.1},d.stateTransition={duration:200},this.group.add(d);var p=[f,0],y=this._shapes;y.handleThumbs[n]=c,y.handleLabelPoints[n]=p,y.handleLabels[n]=d},e.prototype._createIndicator=function(t,a,n,i,o){var s=ln(t.get("indicatorSize"),n[0]),l=dt(t.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2});var u=t.getModel("indicatorStyle").getItemStyle();if(l instanceof Gt){var f=l.style;l.useStyle(F({image:f.image,x:f.x,y:f.y,width:f.width,height:f.height},u))}else l.useStyle(u);a.add(l);var c=this.visualMapModel.textStyleModel,h=new de({silent:!0,invisible:!0,style:Ae(c,{x:0,y:0,text:""})});this.group.add(h);var v=[(o==="horizontal"?i/2:wD)+n[0]/2,0],d=this._shapes;d.indicator=l,d.indicatorLabel=h,d.indicatorLabelPoint=v,this._firstShowIndicator=!0},e.prototype._dragHandle=function(t,a,n,i){if(this._useHandle){if(this._dragging=!a,!a){var o=this._applyTransform([n,i],this._shapes.mainGroup,!0);this._updateInterval(t,o[1]),this._hideIndicator(),this._updateView()}a===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),a?!this._hovering&&this._clearHoverLinkToSeries():Ih(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},e.prototype._resetInterval=function(){var t=this.visualMapModel,a=this._dataInterval=t.getSelected(),n=t.getExtent(),i=[0,t.itemSize[1]];this._handleEnds=[St(a[0],n,i,!0),St(a[1],n,i,!0)]},e.prototype._updateInterval=function(t,a){a=a||0;var n=this.visualMapModel,i=this._handleEnds,o=[0,n.itemSize[1]];pC(a,i,o,t,0);var s=n.getExtent();this._dataInterval=[St(i[0],o,s,!0),St(i[1],o,s,!0)]},e.prototype._updateView=function(t){var a=this.visualMapModel,n=a.getExtent(),i=this._shapes,o=[0,a.itemSize[1]],s=t?o:this._handleEnds,l=this._createBarVisual(this._dataInterval,n,s,"inRange"),u=this._createBarVisual(n,n,o,"outOfRange");i.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),i.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},e.prototype._createBarVisual=function(t,a,n,i){var o={forceState:i,convertOpacityToAlpha:!0},s=this._makeColorGradient(t,o),l=[this.getControllerVisual(t[0],"symbolSize",o),this.getControllerVisual(t[1],"symbolSize",o)],u=this._createBarPoints(n,l);return{barColor:new Yl(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},e.prototype._makeColorGradient=function(t,a){var n=100,i=[],o=(t[1]-t[0])/n;i.push({color:this.getControllerVisual(t[0],"color",a),offset:0});for(var s=1;s<n;s++){var l=t[0]+o*s;if(l>t[1])break;i.push({color:this.getControllerVisual(l,"color",a),offset:s/n})}return i.push({color:this.getControllerVisual(t[1],"color",a),offset:1}),i},e.prototype._createBarPoints=function(t,a){var n=this.visualMapModel.itemSize;return[[n[0]-a[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-a[1],t[1]]]},e.prototype._createBarGroup=function(t){var a=this._orient,n=this.visualMapModel.get("inverse");return new le(a==="horizontal"&&!n?{scaleX:t==="bottom"?1:-1,rotation:Math.PI/2}:a==="horizontal"&&n?{scaleX:t==="bottom"?-1:1,rotation:-Math.PI/2}:a==="vertical"&&!n?{scaleX:t==="left"?1:-1,scaleY:-1}:{scaleX:t==="left"?1:-1})},e.prototype._updateHandle=function(t,a){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,o=n.handleThumbs,s=n.handleLabels,l=i.itemSize,u=i.getExtent(),f=this._applyTransform("left",n.mainGroup);xD([0,1],function(c){var h=o[c];h.setStyle("fill",a.handlesColor[c]),h.y=t[c];var v=St(t[c],[0,l[1]],u,!0),d=this.getControllerVisual(v,"symbolSize");h.scaleX=h.scaleY=d/l[0],h.x=l[0]-d/2;var p=ua(n.handleLabelPoints[c],wi(h,this.group));if(this._orient==="horizontal"){var y=f==="left"||f==="top"?(l[0]-d)/2:(l[0]-d)/-2;p[1]+=y}s[c].setStyle({x:p[0],y:p[1],text:i.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",n.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,a,n,i){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],f=this._shapes,c=f.indicator;if(c){c.attr("invisible",!1);var h={convertOpacityToAlpha:!0},v=this.getControllerVisual(t,"color",h),d=this.getControllerVisual(t,"symbolSize"),p=St(t,s,u,!0),y=l[0]-d/2,g={x:c.x,y:c.y};c.y=p,c.x=y;var m=ua(f.indicatorLabelPoint,wi(c,this.group)),_=f.indicatorLabel;_.attr("invisible",!1);var S=this._applyTransform("left",f.mainGroup),b=this._orient,x=b==="horizontal";_.setStyle({text:(n||"")+o.formatValueText(a),verticalAlign:x?S:"middle",align:x?"center":S});var w={x:y,y:p,style:{fill:v}},D={style:{x:m[0],y:m[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var M={duration:100,easing:"cubicInOut",additive:!0};c.x=g.x,c.y=g.y,c.animateTo(w,M),_.animateTo(D,M)}else c.attr(w),_.attr(D);this._firstShowIndicator=!1;var A=this._shapes.handleLabels;if(A)for(var C=0;C<A.length;C++)this.api.enterBlur(A[C])}},e.prototype._enableHoverLinkToSeries=function(){var t=this;this._shapes.mainGroup.on("mousemove",function(a){if(t._hovering=!0,!t._dragging){var n=t.visualMapModel.itemSize,i=t._applyTransform([a.offsetX,a.offsetY],t._shapes.mainGroup,!0,!0);i[1]=Ah(Ns(0,i[1]),n[1]),t._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=n[0])}}).on("mouseout",function(){t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()})},e.prototype._enableHoverLinkFromSeries=function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},e.prototype._doHoverLinkToSeries=function(t,a){var n=this.visualMapModel,i=n.itemSize;if(n.option.hoverLink){var o=[0,i[1]],s=n.getExtent();t=Ah(Ns(o[0],t),o[1]);var l=CD(n,s,o),u=[t-l,t+l],f=St(t,o,s,!0),c=[St(u[0],o,s,!0),St(u[1],o,s,!0)];u[0]<o[0]&&(c[0]=-1/0),u[1]>o[1]&&(c[1]=1/0),a&&(c[0]===-1/0?this._showIndicator(f,c[1],"< ",l):c[1]===1/0?this._showIndicator(f,c[0],"> ",l):this._showIndicator(f,f,"≈ ",l));var h=this._hoverLinkDataIndices,v=[];(a||Ih(n))&&(v=this._hoverLinkDataIndices=n.findTargetDataIndices(c));var d=Km(h,v);this._dispatchHighDown("downplay",Pi(d[0],n)),this._dispatchHighDown("highlight",Pi(d[1],n))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var a;if(oa(t.target,function(l){var u=te(l);if(u.dataIndex!=null)return a=u,!0},!0),!!a){var n=this.ecModel.getSeriesByIndex(a.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(n)){var o=n.getData(a.dataType),s=o.getStore().get(i.getDataDimensionIndex(o),a.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var a=this._shapes.handleLabels;if(a)for(var n=0;n<a.length;n++)this.api.leaveBlur(a[n])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",Pi(t,this.visualMapModel)),t.length=0},e.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},e.prototype._applyTransform=function(t,a,n,i){var o=wi(a,i?null:this.group);return N(t)?ua(t,o,n):Sd(t,o,n)},e.prototype._dispatchHighDown=function(t,a){a&&a.length&&this.api.dispatchAction({type:t,batch:a})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e})(Hy);function Lh(r,e,t,a){return new Nn({shape:{points:r},draggable:!!t,cursor:e,drift:t,onmousemove:function(n){ha(n.event)},ondragend:a})}function CD(r,e,t){var a=bD/2,n=r.get("hoverLinkDataSize");return n&&(a=St(n,e,t,!0)/2),a}function Ih(r){var e=r.get("hoverLinkOnHandle");return!!(e??r.get("realtime"))}function kh(r){return r==="vertical"?"ns-resize":"ew-resize"}var MD={type:"selectDataRange",event:"dataRangeSelected",update:"update"},DD=function(r,e){e.eachComponent({mainType:"visualMap",query:r},function(t){t.setSelected(r.selected)})},AD=[{createOnAllSeries:!0,reset:function(r,e){var t=[];return e.eachComponent("visualMap",function(a){var n=r.pipelineContext;!a.isTargetSeries(r)||n&&n.large||t.push(aD(a.stateList,a.targetVisuals,$(a.getValueState,a),a.getDataDimensionIndex(r.getData())))}),t}},{createOnAllSeries:!0,reset:function(r,e){var t=r.getData(),a=[];e.eachComponent("visualMap",function(n){if(n.isTargetSeries(r)){var i=n.getVisualMeta($(LD,null,r,n))||{stops:[],outerColors:[]},o=n.getDataDimensionIndex(t);o>=0&&(i.dimension=o,a.push(i))}}),r.getData().setVisual("visualMeta",a)}}];function LD(r,e,t,a){for(var n=e.targetVisuals[a],i=ze.prepareVisualTypes(n),o={color:Dp(r.getData(),"color")},s=0,l=i.length;s<l;s++){var u=i[s],f=n[u==="opacity"?"__alphaForOpacity":u];f&&f.applyVisual(t,c,h)}return o.color;function c(v){return o[v]}function h(v,d){o[v]=d}}var Ph=T;function ID(r){var e=r&&r.visualMap;N(e)||(e=e?[e]:[]),Ph(e,function(t){if(t){ra(t,"splitList")&&!ra(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var a=t.pieces;a&&N(a)&&Ph(a,function(n){K(n)&&(ra(n,"start")&&!ra(n,"min")&&(n.min=n.start),ra(n,"end")&&!ra(n,"max")&&(n.max=n.end))})}})}function ra(r,e){return r&&r.hasOwnProperty&&r.hasOwnProperty(e)}var Rh=!1;function Uy(r){Rh||(Rh=!0,r.registerSubTypeDefaulter("visualMap",function(e){return!e.categories&&(!(e.pieces?e.pieces.length>0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),r.registerAction(MD,DD),T(AD,function(e){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,e)}),r.registerPreprocessor(ID))}function kD(r){r.registerComponentModel(SD),r.registerComponentView(TD),Uy(r)}var PD=(function(r){U(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._pieceList=[],t}return e.prototype.optionUpdated=function(t,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var n=this._mode=this._determineMode();this._pieceList=[],RD[this._mode].call(this,this._pieceList),this._resetSelected(t,a);var i=this.option.categories;this.resetVisual(function(o,s){n==="categories"?(o.mappingMethod="category",o.categories=q(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=X(this._pieceList,function(l){return l=q(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var t=this.option,a={},n=ze.listVisualTypes(),i=this.isCategory();T(t.pieces,function(s){T(n,function(l){s.hasOwnProperty(l)&&(a[l]=1)})}),T(a,function(s,l){var u=!1;T(this.stateList,function(f){u=u||o(t,f,l)||o(t.target,f,l)},this),!u&&T(this.stateList,function(f){(t[f]||(t[f]={}))[l]=Fy.get(l,f==="inRange"?"active":"inactive",i)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}r.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,a){var n=this.option,i=this._pieceList,o=(a?n:t).selected||{};if(n.selected=o,T(i,function(l,u){var f=this.getSelectedMapKey(l);o.hasOwnProperty(f)||(o[f]=!0)},this),n.selectedMode==="single"){var s=!1;T(i,function(l,u){var f=this.getSelectedMapKey(l);o[f]&&(s?o[f]=!1:s=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return this._mode==="categories"?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=q(t)},e.prototype.getValueState=function(t){var a=ze.findPieceIndex(t,this._pieceList);return a!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[a])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var a=[],n=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var f=ze.findPieceIndex(l,n);f===t&&o.push(u)},this),a.push({seriesId:i.id,dataIndex:o})},this),a},e.prototype.getRepresentValue=function(t){var a;if(this.isCategory())a=t.value;else if(t.value!=null)a=t.value;else{var n=t.interval||[];a=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return a},e.prototype.getVisualMeta=function(t){if(this.isCategory())return;var a=[],n=["",""],i=this;function o(f,c){var h=i.getRepresentValue({interval:f});c||(c=i.getValueState(h));var v=t(h,c);f[0]===-1/0?n[0]=v:f[1]===1/0?n[1]=v:a.push({value:f[0],color:v},{value:f[1],color:v})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return T(s,function(f){var c=f.interval;c&&(c[0]>u&&o([u,c[0]],"outOfRange"),o(c.slice()),u=c[1])},this),{stops:a,outerColors:n}},e.type="visualMap.piecewise",e.defaultOption=mo(lo.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e})(lo),RD={splitNumber:function(r){var e=this.option,t=Math.min(e.precision,20),a=this.getExtent(),n=e.splitNumber;n=Math.max(parseInt(n,10),1),e.splitNumber=n;for(var i=(a[1]-a[0])/n;+i.toFixed(t)!==i&&t<5;)t++;e.precision=t,i=+i.toFixed(t),e.minOpen&&r.push({interval:[-1/0,a[0]],close:[0,0]});for(var o=0,s=a[0];o<n;s+=i,o++){var l=o===n-1?a[1]:s+i;r.push({interval:[s,l],close:[1,1]})}e.maxOpen&&r.push({interval:[a[1],1/0],close:[0,0]}),df(r),T(r,function(u,f){u.index=f,u.text=this.formatValueText(u.interval)},this)},categories:function(r){var e=this.option;T(e.categories,function(t){r.push({text:this.formatValueText(t,!0),value:t})},this),Eh(e,r)},pieces:function(r){var e=this.option;T(e.pieces,function(t,a){K(t)||(t={value:t});var n={text:"",index:a};if(t.label!=null&&(n.text=t.label),t.hasOwnProperty("value")){var i=n.value=t.value;n.interval=[i,i],n.close=[1,1]}else{for(var o=n.interval=[],s=n.close=[0,0],l=[1,0,1],u=[-1/0,1/0],f=[],c=0;c<2;c++){for(var h=[["gte","gt","min"],["lte","lt","max"]][c],v=0;v<3&&o[c]==null;v++)o[c]=t[h[v]],s[c]=l[v],f[c]=v===2;o[c]==null&&(o[c]=u[c])}f[0]&&o[1]===1/0&&(s[0]=0),f[1]&&o[0]===-1/0&&(s[1]=0),o[0]===o[1]&&s[0]&&s[1]&&(n.value=o[0])}n.visual=ze.retrieveVisuals(t),r.push(n)},this),Eh(e,r),df(r),T(r,function(t){var a=t.close,n=[["<","≤"][a[1]],[">","≥"][a[0]]];t.text=t.text||this.formatValueText(t.value!=null?t.value:t.interval,!1,n)},this)}};function Eh(r,e){var t=r.inverse;(r.orient==="vertical"?!t:t)&&e.reverse()}var ED=(function(r){U(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.doRender=function(){var t=this.group;t.removeAll();var a=this.visualMapModel,n=a.get("textGap"),i=a.textStyleModel,o=this._getItemAlign(),s=a.itemSize,l=this._getViewData(),u=l.endsText,f=Ar(a.get("showLabel",!0),!u),c=!a.get("selectedMode");u&&this._renderEndsText(t,u[0],s,f,o),T(l.viewPieceList,function(h){var v=h.piece,d=new le;d.onclick=$(this._onItemClick,this,v),this._enableHoverLink(d,h.indexInModelPieceList);var p=a.getRepresentValue(v);if(this._createItemSymbol(d,p,[0,0,s[0],s[1]],c),f){var y=this.visualMapModel.getValueState(p),g=i.get("align")||o;d.add(new de({style:Ae(i,{x:g==="right"?-n:s[0]+n,y:s[1]/2,text:v.text,verticalAlign:i.get("verticalAlign")||"middle",align:g,opacity:j(i.get("opacity"),y==="outOfRange"?.5:1)}),silent:c}))}t.add(d)},this),u&&this._renderEndsText(t,u[1],s,f,o),ca(a.get("orient"),t,a.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,a){var n=this;t.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(o){var s=n.visualMapModel;s.option.hoverLink&&n.api.dispatchAction({type:o,batch:Pi(s.findTargetDataIndices(a),s)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,a=t.option;if(a.orient==="vertical")return Wy(t,this.api,t.itemSize);var n=a.align;return(!n||n==="auto")&&(n="left"),n},e.prototype._renderEndsText=function(t,a,n,i,o){if(a){var s=new le,l=this.visualMapModel.textStyleModel;s.add(new de({style:Ae(l,{x:i?o==="right"?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?o:"center",text:a})})),t.add(s)}},e.prototype._getViewData=function(){var t=this.visualMapModel,a=X(t.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),n=t.get("text"),i=t.get("orient"),o=t.get("inverse");return(i==="horizontal"?o:!o)?a.reverse():n&&(n=n.slice().reverse()),{viewPieceList:a,endsText:n}},e.prototype._createItemSymbol=function(t,a,n,i){var o=dt(this.getControllerVisual(a,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(a,"color"));o.silent=i,t.add(o)},e.prototype._onItemClick=function(t){var a=this.visualMapModel,n=a.option,i=n.selectedMode;if(i){var o=q(n.selected),s=a.getSelectedMapKey(t);i==="single"||i===!0?(o[s]=!0,T(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},e.type="visualMap.piecewise",e})(Hy);function OD(r){r.registerComponentModel(PD),r.registerComponentView(ED),Uy(r)}function nA(r){ot(kD),ot(OD)}var ND=(function(r){U(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataset",t}return e.prototype.init=function(t,a,n){r.prototype.init.call(this,t,a,n),this._sourceManager=new lp(this),oc(this)},e.prototype.mergeOption=function(t,a){r.prototype.mergeOption.call(this,t,a),oc(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:vt},e})(ie),BD=(function(r){U(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataset",t}return e.type="dataset",e})(Ue);function VD(r){r.registerComponentModel(ND),r.registerComponentView(BD)}ot([kw,VD]);ot(Iw);export{Tn as S,YD as a,WD as b,HD as c,Us as d,UD as e,Yp as f,qe as g,GD as h,qD as i,tA as j,aA as k,it as l,kw as m,FD as n,jD as o,JD as p,nA as q,Qx as r,KD as s,ZD as t,ot as u,$D as v,XD as w,rA as x,eA as y,QD as z};
|
|
9
|
+
`:"<br/>",g=c.join(y);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t,u)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,g,u,Math.random()+"",o[0],o[1],v,null,h)})},e.prototype._showSeriesItemTooltip=function(t,a,n){var i=this._ecModel,o=te(a),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,c=o.dataType,h=u.getData(c),v=this._renderMode,d=t.positionDefault,p=Wa([h.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),y=p.get("trigger");if(!(y!=null&&y!=="item")){var g=u.getDataParams(f,c),m=new Uo;g.marker=m.makeTooltipMarker("item",Ir(g.color),v);var _=ac(u.formatTooltip(f,!1,c)),S=p.get("order"),b=p.get("valueFormatter"),x=_.frag,w=x?uc(b?F({valueFormatter:b},x):x,m,v,S,i.get("useUTC"),p.get("textStyle")):_.text,D="item_"+u.name+"_"+f;this._showOrMove(p,function(){this._showTooltipContent(p,w,g,D,t.offsetX,t.offsetY,t.position,t.target,m)}),n({type:"showTip",dataIndexInside:f,dataIndex:h.getRawIndex(f),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,a,n){var i=this._renderMode==="html",o=te(a),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(Z(l)){var f=l;l={content:f,formatter:f},u=!0}u&&i&&l.content&&(l=q(l),l.content=Ye(l.content));var c=[l],h=this._ecModel.getComponent(o.componentMainType,o.componentIndex);h&&c.push(h),c.push({formatter:l.content});var v=t.positionDefault,d=Wa(c,this._tooltipModel,v?{position:v}:null),p=d.get("content"),y=Math.random()+"",g=new Uo;this._showOrMove(d,function(){var m=q(d.get("formatterParams")||{});this._showTooltipContent(d,p,m,y,t.offsetX,t.offsetY,t.position,a,g)}),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,a,n,i,o,s,l,u,f){if(this._ticket="",!(!t.get("showContent")||!t.get("show"))){var c=this._tooltipContent;c.setEnterable(t.get("enterable"));var h=t.get("formatter");l=l||t.get("position");var v=a,d=this._getNearestPoint([o,s],n,t.get("trigger"),t.get("borderColor"),t.get("defaultBorderColor",!0)),p=d.color;if(h)if(Z(h)){var y=t.ecModel.get("useUTC"),g=N(n)?n[0]:n,m=g&&g.axisType&&g.axisType.indexOf("time")>=0;v=h,m&&(v=_o(g.axisValue,v,y)),v=Hd(v,n,!0)}else if(Q(h)){var _=$(function(S,b){S===this._ticket&&(c.setContent(b,f,t,p,l),this._updatePosition(t,l,o,s,c,n,u))},this);this._ticket=i,v=h(n,i,_)}else v=h;c.setContent(v,f,t,p,l),c.show(t,p),this._updatePosition(t,l,o,s,c,n,u)}},e.prototype._getNearestPoint=function(t,a,n,i,o){if(n==="axis"||N(a))return{color:i||o};if(!N(a))return{color:i||a.color||a.borderColor}},e.prototype._updatePosition=function(t,a,n,i,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();a=a||t.get("position");var c=o.getSize(),h=t.get("align"),v=t.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),Q(a)&&(a=a([n,i],s,o.el,d,{viewSize:[u,f],contentSize:c.slice()})),N(a))n=re(a[0],u),i=re(a[1],f);else if(K(a)){var p=a;p.width=c[0],p.height=c[1];var y=qe(p,{width:u,height:f});n=y.x,i=y.y,h=null,v=null}else if(Z(a)&&l){var g=tD(a,d,c,t.get("borderWidth"));n=g[0],i=g[1]}else{var g=JM(n,i,o,u,f,h?null:20,v?null:20);n=g[0],i=g[1]}if(h&&(n-=gh(h)?c[0]/2:h==="right"?c[0]:0),v&&(i-=gh(v)?c[1]/2:v==="bottom"?c[1]:0),Oy(t)){var g=eD(n,i,o,u,f);n=g[0],i=g[1]}o.moveTo(n,i)},e.prototype._updateContentNotChangedOnAxis=function(t,a){var n=this._lastDataByCoordSys,i=this._cbParamsList,o=!!n&&n.length===t.length;return o&&T(n,function(s,l){var u=s.dataByAxis||[],f=t[l]||{},c=f.dataByAxis||[];o=o&&u.length===c.length,o&&T(u,function(h,v){var d=c[v]||{},p=h.seriesDataIndices||[],y=d.seriesDataIndices||[];o=o&&h.value===d.value&&h.axisType===d.axisType&&h.axisId===d.axisId&&p.length===y.length,o&&T(p,function(g,m){var _=y[m];o=o&&g.seriesIndex===_.seriesIndex&&g.dataIndex===_.dataIndex}),i&&T(h.seriesDataIndices,function(g){var m=g.seriesIndex,_=a[m],S=i[m];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=a,!!o},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,a){be.node||!a.getDom()||(ll(this,"_updatePosition"),this._tooltipContent.dispose(),Vl("itemTooltip",a))},e.type="tooltip",e})(Ue);function Wa(r,e,t){var a=e.ecModel,n;t?(n=new he(t,a,a),n=new he(e.option,n,a)):n=e;for(var i=r.length-1;i>=0;i--){var o=r[i];o&&(o instanceof he&&(o=o.get("tooltip",!0)),Z(o)&&(o={formatter:o}),o&&(n=new he(o,n,a)))}return n}function ph(r,e){return r.dispatchAction||$(e.dispatchAction,e)}function JM(r,e,t,a,n,i,o){var s=t.getSize(),l=s[0],u=s[1];return i!=null&&(r+l+i+2>a?r-=l+i:r+=i),o!=null&&(e+u+o>n?e-=u+o:e+=o),[r,e]}function eD(r,e,t,a,n){var i=t.getSize(),o=i[0],s=i[1];return r=Math.min(r+o,a)-o,e=Math.min(e+s,n)-s,r=Math.max(r,0),e=Math.max(e,0),[r,e]}function tD(r,e,t,a){var n=t[0],i=t[1],o=Math.ceil(Math.SQRT2*a)+8,s=0,l=0,u=e.width,f=e.height;switch(r){case"inside":s=e.x+u/2-n/2,l=e.y+f/2-i/2;break;case"top":s=e.x+u/2-n/2,l=e.y-i-o;break;case"bottom":s=e.x+u/2-n/2,l=e.y+f+o;break;case"left":s=e.x-n-o,l=e.y+f/2-i/2;break;case"right":s=e.x+u+o,l=e.y+f/2-i/2}return[s,l]}function gh(r){return r==="center"||r==="middle"}function rD(r,e,t){var a=Kl(r).queryOptionMap,n=a.keys()[0];if(!(!n||n==="series")){var i=Sa(e,n,a.get(n),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=t.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=te(u).tooltipConfig;if(f&&f.name===r.name)return l=u,!0}),l)return{componentMainType:n,componentIndex:o.componentIndex,el:l}}}}function rA(r){ot(Ey),r.registerComponentModel(zM),r.registerComponentView(QM),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},nt),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},nt)}var yh=T;function mh(r){if(r){for(var e in r)if(r.hasOwnProperty(e))return!0}}function _h(r,e,t){var a={};return yh(e,function(i){var o=a[i]=n();yh(r[i],function(s,l){if(ze.isValidType(l)){var u={type:l,visual:s};t&&t(u,i),o[l]=new ze(u),l==="opacity"&&(u=q(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new ze(u))}})}),a;function n(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function aD(r,e,t){var a;T(t,function(n){e.hasOwnProperty(n)&&mh(e[n])&&(a=!0)}),a&&T(t,function(n){e.hasOwnProperty(n)&&mh(e[n])?r[n]=q(e[n]):delete r[n]})}function nD(r,e,t,a){var n={};return T(r,function(i){var o=ze.prepareVisualTypes(e[i]);n[i]=o}),{progress:function(o,s){var l;a!=null&&(l=s.getDimensionIndex(a));function u(b){return Dp(s,c,b)}function f(b,x){px(s,c,b,x)}for(var c,h=s.getStore();(c=o.next())!=null;){var v=s.getRawDataItem(c);if(!(v&&v.visualMap===!1))for(var d=a!=null?h.get(l,c):c,p=t(d),y=e[p],g=n[p],m=0,_=g.length;m<_;m++){var S=g[m];y[S]&&y[S].applyVisual(d,u,f)}}}}}var iD=(function(r){U(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"center",top:B.size.m,backgroundColor:B.color.transparent,borderColor:B.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:B.color.primary},subtextStyle:{fontSize:12,color:B.color.quaternary}},e})(ie),oD=(function(r){U(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){if(this.group.removeAll(),!!t.get("show")){var i=this.group,o=t.getModel("textStyle"),s=t.getModel("subtextStyle"),l=t.get("textAlign"),u=j(t.get("textBaseline"),t.get("textVerticalAlign")),f=new de({style:Ae(o,{text:t.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),c=f.getBoundingRect(),h=t.get("subtext"),v=new de({style:Ae(s,{text:h,fill:s.getTextColor(),y:c.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=t.get("link"),p=t.get("sublink"),y=t.get("triggerEvent",!0);f.silent=!d&&!y,v.silent=!p&&!y,d&&f.on("click",function(){Vf(d,"_"+t.get("target"))}),p&&v.on("click",function(){Vf(p,"_"+t.get("subtarget"))}),te(f).eventData=te(v).eventData=y?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(f),h&&i.add(v);var g=i.getBoundingRect(),m=t.getBoxLayoutParams();m.width=g.width,m.height=g.height;var _=Nr(t,n),S=qe(m,_.refContainer,t.get("padding"));l||(l=t.get("left")||t.get("right"),l==="middle"&&(l="center"),l==="right"?S.x+=S.width:l==="center"&&(S.x+=S.width/2)),u||(u=t.get("top")||t.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?S.y+=S.height:u==="middle"&&(S.y+=S.height/2),u=u||"top"),i.x=S.x,i.y=S.y,i.markRedraw();var b={align:l,verticalAlign:u};f.setStyle(b),v.setStyle(b),g=i.getBoundingRect();var x=S.margin,w=t.getItemStyle(["color","opacity"]);w.fill=t.get("backgroundColor");var D=new ve({shape:{x:g.x-x[3],y:g.y-x[0],width:g.width+x[1]+x[3],height:g.height+x[0]+x[2],r:t.get("borderRadius")},style:w,subPixelOptimize:!0,silent:!0});i.add(D)}},e.type="title",e})(Ue);function aA(r){r.registerComponentModel(iD),r.registerComponentView(oD)}var sD=function(r,e){if(e==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},zl=(function(r){U(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.prototype.init=function(t,a,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(t,a){r.prototype.mergeOption.call(this,t,a),this._updateSelector(t)},e.prototype._updateSelector=function(t){var a=t.selector,n=this.ecModel;a===!0&&(a=t.selector=["all","inverse"]),N(a)&&T(a,function(i,o){Z(i)&&(i={type:i}),a[o]=ue(i,sD(n,i.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&this.get("selectedMode")==="single"){for(var a=!1,n=0;n<t.length;n++){var i=t[n].get("name");if(this.isSelected(i)){this.select(i),a=!0;break}}!a&&this.select(t[0].get("name"))}},e.prototype._updateData=function(t){var a=[],n=[];t.eachRawSeries(function(l){var u=l.name;n.push(u);var f;if(l.legendVisualProvider){var c=l.legendVisualProvider,h=c.getAllNames();t.isSeriesFiltered(l)||(n=n.concat(h)),h.length?a=a.concat(h):f=!0}else f=!0;f&&$l(l)&&a.push(l.name)}),this._availableNames=n;var i=this.get("data")||a,o=ee(),s=X(i,function(l){return(Z(l)||oe(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new he(l,this,this.ecModel))},this);this._data=Ce(s,function(l){return!!l})},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var a=this.option.selected,n=this.get("selectedMode");if(n==="single"){var i=this._data;T(i,function(o){a[o.get("name")]=!1})}a[t]=!0},e.prototype.unSelect=function(t){this.get("selectedMode")!=="single"&&(this.option.selected[t]=!1)},e.prototype.toggleSelected=function(t){var a=this.option.selected;a.hasOwnProperty(t)||(a[t]=!0),this[a[t]?"unSelect":"select"](t)},e.prototype.allSelect=function(){var t=this._data,a=this.option.selected;T(t,function(n){a[n.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var t=this._data,a=this.option.selected;T(t,function(n){var i=n.get("name",!0);a.hasOwnProperty(i)||(a[i]=!0),a[i]=!a[i]})},e.prototype.isSelected=function(t){var a=this.option.selected;return!(a.hasOwnProperty(t)&&!a[t])&&fe(this._availableNames,t)>=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",bottom:B.size.m,align:"auto",backgroundColor:B.color.transparent,borderColor:B.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:B.color.disabled,inactiveBorderColor:B.color.disabled,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:B.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:B.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:B.color.tertiary,borderWidth:1,borderColor:B.color.border},emphasis:{selectorLabel:{show:!0,color:B.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},e})(ie),ta=ye,Gl=T,Si=le,zy=(function(r){U(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!1,t}return e.prototype.init=function(){this.group.add(this._contentGroup=new Si),this.group.add(this._selectorGroup=new Si),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,a,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!t.get("show",!0)){var o=t.get("align"),s=t.get("orient");(!o||o==="auto")&&(o=t.get("left")==="right"&&s==="vertical"?"right":"left");var l=t.get("selector",!0),u=t.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,t,a,n,l,s,u);var f=Nr(t,n).refContainer,c=t.getBoxLayoutParams(),h=t.get("padding"),v=qe(c,f,h),d=this.layoutInner(t,o,v,i,l,u),p=qe(ae({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=VM(d,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,a,n,i,o,s,l){var u=this.getContentGroup(),f=ee(),c=a.get("selectedMode"),h=a.get("triggerEvent"),v=[];n.eachRawSeries(function(d){!d.get("legendHoverLink")&&v.push(d.id)}),Gl(a.getData(),function(d,p){var y=this,g=d.get("name");if(!this.newlineDisabled&&(g===""||g===`
|
|
10
|
+
`)){var m=new Si;m.newline=!0,u.add(m);return}var _=n.getSeriesByName(g)[0];if(!f.get(g))if(_){var S=_.getData(),b=S.getVisual("legendLineStyle")||{},x=S.getVisual("legendIcon"),w=S.getVisual("style"),D=this._createItem(_,g,p,d,a,t,b,w,x,c,i);D.on("click",ta(Sh,g,null,i,v)).on("mouseover",ta(Fl,_.name,null,i,v)).on("mouseout",ta(Hl,_.name,null,i,v)),n.ssr&&D.eachChild(function(M){var A=te(M);A.seriesIndex=_.seriesIndex,A.dataIndex=p,A.ssrType="legend"}),h&&D.eachChild(function(M){y.packEventData(M,a,_,p,g)}),f.set(g,!0)}else n.eachRawSeries(function(M){var A=this;if(!f.get(g)&&M.legendVisualProvider){var C=M.legendVisualProvider;if(!C.containName(g))return;var I=C.indexOfName(g),L=C.getItemVisual(I,"style"),E=C.getItemVisual(I,"legendIcon"),k=Zh(L.fill);k&&k[3]===0&&(k[3]=.2,L=F(F({},L),{fill:xi(k,"rgba")}));var P=this._createItem(M,g,p,d,a,t,{},L,E,c,i);P.on("click",ta(Sh,null,g,i,v)).on("mouseover",ta(Fl,null,g,i,v)).on("mouseout",ta(Hl,null,g,i,v)),n.ssr&&P.eachChild(function(V){var R=te(V);R.seriesIndex=M.seriesIndex,R.dataIndex=p,R.ssrType="legend"}),h&&P.eachChild(function(V){A.packEventData(V,a,M,p,g)}),f.set(g,!0)}},this)},this),o&&this._createSelector(o,a,i,s,l)},e.prototype.packEventData=function(t,a,n,i,o){var s={componentType:"legend",componentIndex:a.componentIndex,dataIndex:i,value:o,seriesIndex:n.seriesIndex};te(t).eventData=s},e.prototype._createSelector=function(t,a,n,i,o){var s=this.getSelectorGroup();Gl(t,function(u){var f=u.type,c=new de({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect",legendId:a.id})}});s.add(c);var h=a.getModel("selectorLabel"),v=a.getModel(["emphasis","selectorLabel"]);ur(c,{normal:h,emphasis:v},{defaultText:u.title}),Ys(c)})},e.prototype._createItem=function(t,a,n,i,o,s,l,u,f,c,h){var v=t.visualDrawType,d=o.get("itemWidth"),p=o.get("itemHeight"),y=o.isSelected(a),g=i.get("symbolRotate"),m=i.get("symbolKeepAspect"),_=i.get("icon");f=_||f||"roundRect";var S=lD(f,i,l,u,v,y,h),b=new Si,x=i.getModel("textStyle");if(Q(t.getLegendIcon)&&(!_||_==="inherit"))b.add(t.getLegendIcon({itemWidth:d,itemHeight:p,icon:f,iconRotate:g,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}));else{var w=_==="inherit"&&t.getData().getVisual("symbol")?g==="inherit"?t.getData().getVisual("symbolRotate"):g:0;b.add(uD({itemWidth:d,itemHeight:p,icon:f,iconRotate:w,itemStyle:S.itemStyle,symbolKeepAspect:m}))}var D=s==="left"?d+5:-5,M=s,A=o.get("formatter"),C=a;Z(A)&&A?C=A.replace("{name}",a??""):Q(A)&&(C=A(a));var I=y?x.getTextColor():i.get("inactiveColor");b.add(new de({style:Ae(x,{text:C,x:D,y:p/2,fill:I,align:M,verticalAlign:"middle"},{inheritColor:I})}));var L=new ve({shape:b.getBoundingRect(),style:{fill:"transparent"}}),E=i.getModel("tooltip");return E.get("show")&&po({el:L,componentModel:o,itemName:a,itemTooltipOption:E.option}),b.add(L),b.eachChild(function(k){k.silent=!0}),L.silent=!c,this.getContentGroup().add(b),Ys(b),b.__legendDataIndex=n,b},e.prototype.layoutInner=function(t,a,n,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();ca(t.get("orient"),l,t.get("itemGap"),n.width,n.height);var f=l.getBoundingRect(),c=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){ca("horizontal",u,t.get("selectorItemGap",!0));var h=u.getBoundingRect(),v=[-h.x,-h.y],d=t.get("selectorButtonGap",!0),p=t.getOrient().index,y=p===0?"width":"height",g=p===0?"height":"width",m=p===0?"y":"x";s==="end"?v[p]+=f[y]+d:c[p]+=h[y]+d,v[1-p]+=f[g]/2-h[g]/2,u.x=v[0],u.y=v[1],l.x=c[0],l.y=c[1];var _={x:0,y:0};return _[y]=f[y]+d+h[y],_[g]=Math.max(f[g],h[g]),_[m]=Math.min(0,h[m]+v[1-p]),_}else return l.x=c[0],l.y=c[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e})(Ue);function lD(r,e,t,a,n,i,o){function s(y,g){y.lineWidth==="auto"&&(y.lineWidth=g.lineWidth>0?2:0),Gl(y,function(m,_){y[_]==="inherit"&&(y[_]=g[_])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",c=l.getShallow("decal");u.decal=!c||c==="inherit"?a.decal:$i(c,o),u.fill==="inherit"&&(u.fill=a[n]),u.stroke==="inherit"&&(u.stroke=a[f]),u.opacity==="inherit"&&(u.opacity=(n==="fill"?a:t).opacity),s(u,a);var h=e.getModel("lineStyle"),v=h.getLineStyle();if(s(v,t),u.fill==="auto"&&(u.fill=a.fill),u.stroke==="auto"&&(u.stroke=a.fill),v.stroke==="auto"&&(v.stroke=a.fill),!i){var d=e.get("inactiveBorderWidth"),p=u[f];u.lineWidth=d==="auto"?a.lineWidth>0&&p?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),v.stroke=h.get("inactiveColor"),v.lineWidth=h.get("inactiveWidth")}return{itemStyle:u,lineStyle:v}}function uD(r){var e=r.icon||"roundRect",t=dt(e,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return t.setStyle(r.itemStyle),t.rotation=(r.iconRotate||0)*Math.PI/180,t.setOrigin([r.itemWidth/2,r.itemHeight/2]),e.indexOf("empty")>-1&&(t.style.stroke=t.style.fill,t.style.fill=B.color.neutral00,t.style.lineWidth=2),t}function Sh(r,e,t,a){Hl(r,e,t,a),t.dispatchAction({type:"legendToggleSelect",name:r??e}),Fl(r,e,t,a)}function Gy(r){for(var e=r.getZr().storage.getDisplayList(),t,a=0,n=e.length;a<n&&!(t=e[a].states.emphasis);)a++;return t&&t.hoverLayer}function Fl(r,e,t,a){Gy(t)||t.dispatchAction({type:"highlight",seriesName:r,name:e,excludeSeriesId:a})}function Hl(r,e,t,a){Gy(t)||t.dispatchAction({type:"downplay",seriesName:r,name:e,excludeSeriesId:a})}function fD(r){var e=r.findComponents({mainType:"legend"});e&&e.length&&r.filterSeries(function(t){for(var a=0;a<e.length;a++)if(!e[a].isSelected(t.name))return!1;return!0})}function Ua(r,e,t){var a=r==="allSelect"||r==="inverseSelect",n={},i=[];t.eachComponent({mainType:"legend",query:e},function(s){a?s[r]():s[r](e.name),xh(s,n),i.push(s.componentIndex)});var o={};return t.eachComponent("legend",function(s){T(n,function(l,u){s[l?"select":"unSelect"](u)}),xh(s,o)}),a?{selected:o,legendIndex:i}:{name:e.name,selected:o}}function xh(r,e){var t=e||{};return T(r.getData(),function(a){var n=a.get("name");if(!(n===`
|
|
11
|
+
`||n==="")){var i=r.isSelected(n);G(t,n)?t[n]=t[n]&&i:t[n]=i}}),t}function cD(r){r.registerAction("legendToggleSelect","legendselectchanged",ye(Ua,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",ye(Ua,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",ye(Ua,"inverseSelect")),r.registerAction("legendSelect","legendselected",ye(Ua,"select")),r.registerAction("legendUnSelect","legendunselected",ye(Ua,"unSelect"))}function Fy(r){r.registerComponentModel(zl),r.registerComponentView(zy),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,fD),r.registerSubTypeDefaulter("legend",function(){return"plain"}),cD(r)}var vD=(function(r){U(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(t,a,n){var i=ba(t);r.prototype.init.call(this,t,a,n),bh(this,t,i)},e.prototype.mergeOption=function(t,a){r.prototype.mergeOption.call(this,t,a),bh(this,this.option,t)},e.type="legend.scroll",e.defaultOption=mo(zl.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:B.color.accent50,pageIconInactiveColor:B.color.accent10,pageIconSize:15,pageTextStyle:{color:B.color.tertiary},animationDurationUpdate:800}),e})(zl);function bh(r,e,t){var a=r.getOrient(),n=[1,1];n[a.index]=0,zt(e,t,{type:"box",ignoreSize:!!n})}var wh=le,Es=["width","height"],Os=["x","y"],hD=(function(r){U(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!0,t._currentIndex=0,t}return e.prototype.init=function(){r.prototype.init.call(this),this.group.add(this._containerGroup=new wh),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new wh)},e.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(t,a,n,i,o,s,l){var u=this;r.prototype.renderInner.call(this,t,a,n,i,o,s,l);var f=this._controllerGroup,c=a.get("pageIconSize",!0),h=N(c)?c:[c,c];d("pagePrev",0);var v=a.getModel("pageTextStyle");f.add(new de({name:"pageText",style:{text:"xx/xx",fill:v.getTextColor(),font:v.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(p,y){var g=p+"DataIndex",m=iu(a.get("pageIcons",!0)[a.getOrient().name][y],{onclick:$(u._pageGo,u,g,a,i)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});m.name=p,f.add(m)}},e.prototype.layoutInner=function(t,a,n,i,o,s){var l=this.getSelectorGroup(),u=t.getOrient().index,f=Es[u],c=Os[u],h=Es[1-u],v=Os[1-u];o&&ca("horizontal",l,t.get("selectorItemGap",!0));var d=t.get("selectorButtonGap",!0),p=l.getBoundingRect(),y=[-p.x,-p.y],g=q(n);o&&(g[f]=n[f]-p[f]-d);var m=this._layoutContentAndController(t,i,g,u,f,h,v,c);if(o){if(s==="end")y[u]+=m[f]+d;else{var _=p[f]+d;y[u]-=_,m[c]-=_}m[f]+=p[f]+d,y[1-u]+=m[v]+m[h]/2-p[h]/2,m[h]=Math.max(m[h],p[h]),m[v]=Math.min(m[v],p[v]+y[1-u]),l.x=y[0],l.y=y[1],l.markRedraw()}return m},e.prototype._layoutContentAndController=function(t,a,n,i,o,s,l,u){var f=this.getContentGroup(),c=this._containerGroup,h=this._controllerGroup;ca(t.get("orient"),f,t.get("itemGap"),i?n.width:null,i?null:n.height),ca("horizontal",h,t.get("pageButtonItemGap",!0));var v=f.getBoundingRect(),d=h.getBoundingRect(),p=this._showController=v[o]>n[o],y=[-v.x,-v.y];a||(y[i]=f[u]);var g=[0,0],m=[-d.x,-d.y],_=j(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(p){var S=t.get("pageButtonPosition",!0);S==="end"?m[i]+=n[o]-d[o]:g[i]+=d[o]+_}m[1-i]+=v[s]/2-d[s]/2,f.setPosition(y),c.setPosition(g),h.setPosition(m);var b={x:0,y:0};if(b[o]=p?n[o]:v[o],b[s]=Math.max(v[s],d[s]),b[l]=Math.min(0,d[l]+m[1-i]),c.__rectSize=n[o],p){var x={x:0,y:0};x[o]=Math.max(n[o]-d[o]-_,0),x[s]=b[s],c.setClipPath(new ve({shape:x})),c.__rectSize=x[o]}else h.eachChild(function(D){D.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(t);return w.pageIndex!=null&&Se(f,{x:w.contentPosition[0],y:w.contentPosition[1]},p?t:null),this._updatePageInfoView(t,w),b},e.prototype._pageGo=function(t,a,n){var i=this._getPageInfo(a)[t];i!=null&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:a.id})},e.prototype._updatePageInfoView=function(t,a){var n=this._controllerGroup;T(["pagePrev","pageNext"],function(f){var c=f+"DataIndex",h=a[c]!=null,v=n.childOfName(f);v&&(v.setStyle("fill",h?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),v.cursor=h?"pointer":"default")});var i=n.childOfName("pageText"),o=t.get("pageFormatter"),s=a.pageIndex,l=s!=null?s+1:0,u=a.pageCount;i&&o&&i.setStyle("text",Z(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(t){var a=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,o=t.getOrient().index,s=Es[o],l=Os[o],u=this._findTargetItemIndex(a),f=n.children(),c=f[u],h=f.length,v=h?1:0,d={contentPosition:[n.x,n.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return d;var p=S(c);d.contentPosition[o]=-p.s;for(var y=u+1,g=p,m=p,_=null;y<=h;++y)_=S(f[y]),(!_&&m.e>g.s+i||_&&!b(_,g.s))&&(m.i>g.i?g=m:g=_,g&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=g.i),++d.pageCount)),m=_;for(var y=u-1,g=p,m=p,_=null;y>=-1;--y)_=S(f[y]),(!_||!b(m,_.s))&&g.i<m.i&&(m=g,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=g.i),++d.pageCount,++d.pageIndex),g=_;return d;function S(x){if(x){var w=x.getBoundingRect(),D=w[l]+x[l];return{s:D,e:D+w[s],i:x.__legendDataIndex}}}function b(x,w){return x.e>=w&&x.s<=w+i}},e.prototype._findTargetItemIndex=function(t){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===t&&(a=s)}),a??i},e.type="legend.scroll",e})(zy);function dD(r){r.registerAction("legendScroll","legendscroll",function(e,t){var a=e.scrollDataIndex;a!=null&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(n){n.setScrollDataIndex(a)})})}function pD(r){ot(Fy),r.registerComponentModel(vD),r.registerComponentView(hD),dD(r)}function nA(r){ot(Fy),ot(pD)}var Hy={get:function(r,e,t){var a=q((gD[r]||{})[e]);return t&&N(a)?a[a.length-1]:a}},gD={color:{active:["#006edd","#e0ffff"],inactive:[B.color.transparent]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},Th=ze.mapVisual,yD=ze.eachVisual,mD=N,Ch=T,_D=qh,SD=it,lo=(function(r){U(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.stateList=["inRange","outOfRange"],t.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],t.layoutMode={type:"box",ignoreSize:!0},t.dataBound=[-1/0,1/0],t.targetVisuals={},t.controllerVisuals={},t}return e.prototype.init=function(t,a,n){this.mergeDefaultAndTheme(t,n)},e.prototype.optionUpdated=function(t,a){var n=this.option;!a&&aD(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var a=this.stateList;t=$(t,this),this.controllerVisuals=_h(this.option.controller,a,t),this.targetVisuals=_h(this.option.target,a,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesId,a=this.option.seriesIndex;a==null&&t==null&&(a="all");var n=Sa(this.ecModel,"series",{index:a,id:t},{useDefault:!1,enableAll:!0,enableNone:!1}).models;return X(n,function(i){return i.componentIndex})},e.prototype.eachTargetSeries=function(t,a){T(this.getTargetSeriesIndices(),function(n){var i=this.ecModel.getSeriesByIndex(n);i&&t.call(a,i)},this)},e.prototype.isTargetSeries=function(t){var a=!1;return this.eachTargetSeries(function(n){n===t&&(a=!0)}),a},e.prototype.formatValueText=function(t,a,n){var i=this.option,o=i.precision,s=this.dataBound,l=i.formatter,u;n=n||["<",">"],N(t)&&(t=t.slice(),u=!0);var f=a?t:u?[c(t[0]),c(t[1])]:c(t);if(Z(l))return l.replace("{value}",u?f[0]:f).replace("{value2}",u?f[1]:f);if(Q(l))return u?l(t[0],t[1]):l(t);if(u)return t[0]===s[0]?n[0]+" "+f[1]:t[1]===s[1]?n[1]+" "+f[0]:f[0]+" - "+f[1];return f;function c(h){return h===s[0]?"min":h===s[1]?"max":(+h).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,a=_D([t.min,t.max]);this._dataExtent=a},e.prototype.getDataDimensionIndex=function(t){var a=this.option.dimension;if(a!=null)return t.getDimensionIndex(a);for(var n=t.dimensions,i=n.length-1;i>=0;i--){var o=n[i],s=t.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,a=this.option,n={inRange:a.inRange,outOfRange:a.outOfRange},i=a.target||(a.target={}),o=a.controller||(a.controller={});ue(i,n),ue(o,n);var s=this.isCategory();l.call(this,i),l.call(this,o),u.call(this,i,"inRange","outOfRange"),f.call(this,o);function l(c){mD(a.color)&&!c.inRange&&(c.inRange={color:a.color.slice().reverse()}),c.inRange=c.inRange||{color:t.get("gradientColor")}}function u(c,h,v){var d=c[h],p=c[v];d&&!p&&(p=c[v]={},Ch(d,function(y,g){if(ze.isValidType(g)){var m=Hy.get(g,"inactive",s);m!=null&&(p[g]=m,g==="color"&&!p.hasOwnProperty("opacity")&&!p.hasOwnProperty("colorAlpha")&&(p.opacity=[0,0]))}}))}function f(c){var h=(c.inRange||{}).symbol||(c.outOfRange||{}).symbol,v=(c.inRange||{}).symbolSize||(c.outOfRange||{}).symbolSize,d=this.get("inactiveColor"),p=this.getItemSymbol(),y=p||"roundRect";Ch(this.stateList,function(g){var m=this.itemSize,_=c[g];_||(_=c[g]={color:s?d:[d]}),_.symbol==null&&(_.symbol=h&&q(h)||(s?y:[y])),_.symbolSize==null&&(_.symbolSize=v&&q(v)||(s?m[0]:[m[0],m[0]])),_.symbol=Th(_.symbol,function(x){return x==="none"?y:x});var S=_.symbolSize;if(S!=null){var b=-1/0;yD(S,function(x){x>b&&(b=x)}),_.symbolSize=Th(S,function(x){return SD(x,[0,b],[0,m[0]],!0)})}},this)}},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:B.color.transparent,borderColor:B.color.borderTint,contentColor:B.color.theme[0],inactiveColor:B.color.disabled,borderWidth:0,padding:B.size.m,textGap:10,precision:0,textStyle:{color:B.color.secondary}},e})(ie),Mh=[20,140],xD=(function(r){U(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(t,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(n){n.mappingMethod="linear",n.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){r.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=Mh[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=Mh[1])},e.prototype._resetRange=function(){var t=this.getExtent(),a=this.option.range;!a||a.auto?(t.auto=1,this.option.range=t):N(a)&&(a[0]>a[1]&&a.reverse(),a[0]=Math.max(a[0],t[0]),a[1]=Math.min(a[1],t[1]))},e.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),T(this.stateList,function(t){var a=this.option.controller[t].symbolSize;a&&a[0]!==a[1]&&(a[0]=a[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),a=qh((this.get("range")||[]).slice());return a[0]>t[1]&&(a[0]=t[1]),a[1]>t[1]&&(a[1]=t[1]),a[0]<t[0]&&(a[0]=t[0]),a[1]<t[0]&&(a[1]=t[0]),a},e.prototype.getValueState=function(t){var a=this.option.range,n=this.getExtent(),i=j(this.option.unboundedRange,!0);return(i&&a[0]<=n[0]||a[0]<=t)&&(i&&a[1]>=n[1]||t<=a[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var a=[];return this.eachTargetSeries(function(n){var i=[],o=n.getData();o.each(this.getDataDimensionIndex(o),function(s,l){t[0]<=s&&s<=t[1]&&i.push(l)},this),a.push({seriesId:n.id,dataIndex:i})},this),a},e.prototype.getVisualMeta=function(t){var a=Dh(this,"outOfRange",this.getExtent()),n=Dh(this,"inRange",this.option.range.slice()),i=[];function o(v,d){i.push({value:v,color:t(v,d)})}for(var s=0,l=0,u=n.length,f=a.length;l<f&&(!n.length||a[l]<=n[0]);l++)a[l]<n[s]&&o(a[l],"outOfRange");for(var c=1;s<u;s++,c=0)c&&i.length&&o(n[s],"outOfRange"),o(n[s],"inRange");for(var c=1;l<f;l++)(!n.length||n[n.length-1]<a[l])&&(c&&(i.length&&o(i[i.length-1].value,"outOfRange"),c=0),o(a[l],"outOfRange"));var h=i.length;return{stops:i,outerColors:[h?i[0].color:"transparent",h?i[h-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=mo(lo.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:B.color.neutral00,borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:B.color.neutral00,borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:B.color.shadow}}),e})(lo);function Dh(r,e,t){if(t[0]===t[1])return t.slice();for(var a=200,n=(t[1]-t[0])/a,i=t[0],o=[],s=0;s<=a&&i<t[1];s++)o.push(i),i+=n;return o.push(t[1]),o}var Wy=(function(r){U(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.autoPositionValues={left:1,right:1,top:1,bottom:1},t}return e.prototype.init=function(t,a){this.ecModel=t,this.api=a},e.prototype.render=function(t,a,n,i){if(this.visualMapModel=t,t.get("show")===!1){this.group.removeAll();return}this.doRender(t,a,n,i)},e.prototype.renderBackground=function(t){var a=this.visualMapModel,n=Fn(a.get("padding")||0),i=t.getBoundingRect();t.add(new ve({z2:-1,silent:!0,shape:{x:i.x-n[3],y:i.y-n[0],width:i.width+n[3]+n[1],height:i.height+n[0]+n[2]},style:{fill:a.get("backgroundColor"),stroke:a.get("borderColor"),lineWidth:a.get("borderWidth")}}))},e.prototype.getControllerVisual=function(t,a,n){n=n||{};var i=n.forceState,o=this.visualMapModel,s={};if(a==="color"){var l=o.get("contentColor");s.color=l}function u(v){return s[v]}function f(v,d){s[v]=d}var c=o.controllerVisuals[i||o.getValueState(t)],h=ze.prepareVisualTypes(c);return T(h,function(v){var d=c[v];n.convertOpacityToAlpha&&v==="opacity"&&(v="colorAlpha",d=c.__alphaForOpacity),ze.dependsOn(v,a)&&d&&d.applyVisual(t,u,f)}),s[a]},e.prototype.positionGroup=function(t){var a=this.visualMapModel,n=this.api,i=Nr(a,n).refContainer;A_(t,a.getBoxLayoutParams(),i)},e.prototype.doRender=function(t,a,n,i){},e.type="visualMap",e})(Ue),Ah=[["left","right","width"],["top","bottom","height"]];function Uy(r,e,t){var a=r.option,n=a.align;if(n!=null&&n!=="auto")return n;for(var i={width:e.getWidth(),height:e.getHeight()},o=a.orient==="horizontal"?1:0,s=Ah[o],l=[0,null,10],u={},f=0;f<3;f++)u[Ah[1-o][f]]=l[f],u[s[f]]=f===2?t[0]:a[s[f]];var c=[["x","width",3],["y","height",0]][o],h=qe(u,i,a.padding);return s[(h.margin[c[2]]||0)+h[c[0]]+h[c[1]]*.5<i[c[1]]*.5?0:1]}function Pi(r,e){return T(r||[],function(t){t.dataIndex!=null&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")}),r}var St=it,bD=T,Lh=Math.min,Ns=Math.max,wD=12,TD=6,CD=(function(r){U(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._shapes={},t._dataInterval=[],t._handleEnds=[],t._hoverLinkDataIndices=[],t}return e.prototype.init=function(t,a){r.prototype.init.call(this,t,a),this._hoverLinkFromSeriesMouseOver=$(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=$(this._hideIndicator,this)},e.prototype.doRender=function(t,a,n,i){(!i||i.type!=="selectDataRange"||i.from!==this.uid)&&this._buildView()},e.prototype._buildView=function(){this.group.removeAll();var t=this.visualMapModel,a=this.group;this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(a);var n=t.get("text");this._renderEndsText(a,n,0),this._renderEndsText(a,n,1),this._updateView(!0),this.renderBackground(a),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(a)},e.prototype._renderEndsText=function(t,a,n){if(a){var i=a[1-n];i=i!=null?i+"":"";var o=this.visualMapModel,s=o.get("textGap"),l=o.itemSize,u=this._shapes.mainGroup,f=this._applyTransform([l[0]/2,n===0?-s:l[1]+s],u),c=this._applyTransform(n===0?"bottom":"top",u),h=this._orient,v=this.visualMapModel.textStyleModel;this.group.add(new de({style:Ae(v,{x:f[0],y:f[1],verticalAlign:v.get("verticalAlign")||(h==="horizontal"?"middle":c),align:v.get("align")||(h==="horizontal"?c:"center"),text:i})}))}},e.prototype._renderBar=function(t){var a=this.visualMapModel,n=this._shapes,i=a.itemSize,o=this._orient,s=this._useHandle,l=Uy(a,this.api,i),u=n.mainGroup=this._createBarGroup(l),f=new le;u.add(f),f.add(n.outOfRange=Ih()),f.add(n.inRange=Ih(null,s?Ph(this._orient):null,$(this._dragHandle,this,"all",!1),$(this._dragHandle,this,"all",!0))),f.setClipPath(new ve({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var c=a.textStyleModel.getTextRect("国"),h=Ns(c.width,c.height);s&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(a,u,0,i,h,o),this._createHandle(a,u,1,i,h,o)),this._createIndicator(a,u,i,h,o),t.add(u)},e.prototype._createHandle=function(t,a,n,i,o,s){var l=$(this._dragHandle,this,n,!1),u=$(this._dragHandle,this,n,!0),f=ln(t.get("handleSize"),i[0]),c=dt(t.get("handleIcon"),-f/2,-f/2,f,f,null,!0),h=Ph(this._orient);c.attr({cursor:h,draggable:!0,drift:l,ondragend:u,onmousemove:function(g){ha(g.event)}}),c.x=i[0]/2,c.useStyle(t.getModel("handleStyle").getItemStyle()),c.setStyle({strokeNoScale:!0,strokeFirst:!0}),c.style.lineWidth*=2,c.ensureState("emphasis").style=t.getModel(["emphasis","handleStyle"]).getItemStyle(),ru(c,!0),a.add(c);var v=this.visualMapModel.textStyleModel,d=new de({cursor:h,draggable:!0,drift:l,onmousemove:function(g){ha(g.event)},ondragend:u,style:Ae(v,{x:0,y:0,text:""})});d.ensureState("blur").style={opacity:.1},d.stateTransition={duration:200},this.group.add(d);var p=[f,0],y=this._shapes;y.handleThumbs[n]=c,y.handleLabelPoints[n]=p,y.handleLabels[n]=d},e.prototype._createIndicator=function(t,a,n,i,o){var s=ln(t.get("indicatorSize"),n[0]),l=dt(t.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2});var u=t.getModel("indicatorStyle").getItemStyle();if(l instanceof Gt){var f=l.style;l.useStyle(F({image:f.image,x:f.x,y:f.y,width:f.width,height:f.height},u))}else l.useStyle(u);a.add(l);var c=this.visualMapModel.textStyleModel,h=new de({silent:!0,invisible:!0,style:Ae(c,{x:0,y:0,text:""})});this.group.add(h);var v=[(o==="horizontal"?i/2:TD)+n[0]/2,0],d=this._shapes;d.indicator=l,d.indicatorLabel=h,d.indicatorLabelPoint=v,this._firstShowIndicator=!0},e.prototype._dragHandle=function(t,a,n,i){if(this._useHandle){if(this._dragging=!a,!a){var o=this._applyTransform([n,i],this._shapes.mainGroup,!0);this._updateInterval(t,o[1]),this._hideIndicator(),this._updateView()}a===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),a?!this._hovering&&this._clearHoverLinkToSeries():kh(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},e.prototype._resetInterval=function(){var t=this.visualMapModel,a=this._dataInterval=t.getSelected(),n=t.getExtent(),i=[0,t.itemSize[1]];this._handleEnds=[St(a[0],n,i,!0),St(a[1],n,i,!0)]},e.prototype._updateInterval=function(t,a){a=a||0;var n=this.visualMapModel,i=this._handleEnds,o=[0,n.itemSize[1]];gC(a,i,o,t,0);var s=n.getExtent();this._dataInterval=[St(i[0],o,s,!0),St(i[1],o,s,!0)]},e.prototype._updateView=function(t){var a=this.visualMapModel,n=a.getExtent(),i=this._shapes,o=[0,a.itemSize[1]],s=t?o:this._handleEnds,l=this._createBarVisual(this._dataInterval,n,s,"inRange"),u=this._createBarVisual(n,n,o,"outOfRange");i.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),i.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},e.prototype._createBarVisual=function(t,a,n,i){var o={forceState:i,convertOpacityToAlpha:!0},s=this._makeColorGradient(t,o),l=[this.getControllerVisual(t[0],"symbolSize",o),this.getControllerVisual(t[1],"symbolSize",o)],u=this._createBarPoints(n,l);return{barColor:new Xl(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},e.prototype._makeColorGradient=function(t,a){var n=100,i=[],o=(t[1]-t[0])/n;i.push({color:this.getControllerVisual(t[0],"color",a),offset:0});for(var s=1;s<n;s++){var l=t[0]+o*s;if(l>t[1])break;i.push({color:this.getControllerVisual(l,"color",a),offset:s/n})}return i.push({color:this.getControllerVisual(t[1],"color",a),offset:1}),i},e.prototype._createBarPoints=function(t,a){var n=this.visualMapModel.itemSize;return[[n[0]-a[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-a[1],t[1]]]},e.prototype._createBarGroup=function(t){var a=this._orient,n=this.visualMapModel.get("inverse");return new le(a==="horizontal"&&!n?{scaleX:t==="bottom"?1:-1,rotation:Math.PI/2}:a==="horizontal"&&n?{scaleX:t==="bottom"?-1:1,rotation:-Math.PI/2}:a==="vertical"&&!n?{scaleX:t==="left"?1:-1,scaleY:-1}:{scaleX:t==="left"?1:-1})},e.prototype._updateHandle=function(t,a){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,o=n.handleThumbs,s=n.handleLabels,l=i.itemSize,u=i.getExtent(),f=this._applyTransform("left",n.mainGroup);bD([0,1],function(c){var h=o[c];h.setStyle("fill",a.handlesColor[c]),h.y=t[c];var v=St(t[c],[0,l[1]],u,!0),d=this.getControllerVisual(v,"symbolSize");h.scaleX=h.scaleY=d/l[0],h.x=l[0]-d/2;var p=ua(n.handleLabelPoints[c],wi(h,this.group));if(this._orient==="horizontal"){var y=f==="left"||f==="top"?(l[0]-d)/2:(l[0]-d)/-2;p[1]+=y}s[c].setStyle({x:p[0],y:p[1],text:i.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",n.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,a,n,i){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],f=this._shapes,c=f.indicator;if(c){c.attr("invisible",!1);var h={convertOpacityToAlpha:!0},v=this.getControllerVisual(t,"color",h),d=this.getControllerVisual(t,"symbolSize"),p=St(t,s,u,!0),y=l[0]-d/2,g={x:c.x,y:c.y};c.y=p,c.x=y;var m=ua(f.indicatorLabelPoint,wi(c,this.group)),_=f.indicatorLabel;_.attr("invisible",!1);var S=this._applyTransform("left",f.mainGroup),b=this._orient,x=b==="horizontal";_.setStyle({text:(n||"")+o.formatValueText(a),verticalAlign:x?S:"middle",align:x?"center":S});var w={x:y,y:p,style:{fill:v}},D={style:{x:m[0],y:m[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var M={duration:100,easing:"cubicInOut",additive:!0};c.x=g.x,c.y=g.y,c.animateTo(w,M),_.animateTo(D,M)}else c.attr(w),_.attr(D);this._firstShowIndicator=!1;var A=this._shapes.handleLabels;if(A)for(var C=0;C<A.length;C++)this.api.enterBlur(A[C])}},e.prototype._enableHoverLinkToSeries=function(){var t=this;this._shapes.mainGroup.on("mousemove",function(a){if(t._hovering=!0,!t._dragging){var n=t.visualMapModel.itemSize,i=t._applyTransform([a.offsetX,a.offsetY],t._shapes.mainGroup,!0,!0);i[1]=Lh(Ns(0,i[1]),n[1]),t._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=n[0])}}).on("mouseout",function(){t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()})},e.prototype._enableHoverLinkFromSeries=function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},e.prototype._doHoverLinkToSeries=function(t,a){var n=this.visualMapModel,i=n.itemSize;if(n.option.hoverLink){var o=[0,i[1]],s=n.getExtent();t=Lh(Ns(o[0],t),o[1]);var l=MD(n,s,o),u=[t-l,t+l],f=St(t,o,s,!0),c=[St(u[0],o,s,!0),St(u[1],o,s,!0)];u[0]<o[0]&&(c[0]=-1/0),u[1]>o[1]&&(c[1]=1/0),a&&(c[0]===-1/0?this._showIndicator(f,c[1],"< ",l):c[1]===1/0?this._showIndicator(f,c[0],"> ",l):this._showIndicator(f,f,"≈ ",l));var h=this._hoverLinkDataIndices,v=[];(a||kh(n))&&(v=this._hoverLinkDataIndices=n.findTargetDataIndices(c));var d=qm(h,v);this._dispatchHighDown("downplay",Pi(d[0],n)),this._dispatchHighDown("highlight",Pi(d[1],n))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var a;if(oa(t.target,function(l){var u=te(l);if(u.dataIndex!=null)return a=u,!0},!0),!!a){var n=this.ecModel.getSeriesByIndex(a.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(n)){var o=n.getData(a.dataType),s=o.getStore().get(i.getDataDimensionIndex(o),a.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var a=this._shapes.handleLabels;if(a)for(var n=0;n<a.length;n++)this.api.leaveBlur(a[n])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",Pi(t,this.visualMapModel)),t.length=0},e.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},e.prototype._applyTransform=function(t,a,n,i){var o=wi(a,i?null:this.group);return N(t)?ua(t,o,n):xd(t,o,n)},e.prototype._dispatchHighDown=function(t,a){a&&a.length&&this.api.dispatchAction({type:t,batch:a})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e})(Wy);function Ih(r,e,t,a){return new Nn({shape:{points:r},draggable:!!t,cursor:e,drift:t,onmousemove:function(n){ha(n.event)},ondragend:a})}function MD(r,e,t){var a=wD/2,n=r.get("hoverLinkDataSize");return n&&(a=St(n,e,t,!0)/2),a}function kh(r){var e=r.get("hoverLinkOnHandle");return!!(e??r.get("realtime"))}function Ph(r){return r==="vertical"?"ns-resize":"ew-resize"}var DD={type:"selectDataRange",event:"dataRangeSelected",update:"update"},AD=function(r,e){e.eachComponent({mainType:"visualMap",query:r},function(t){t.setSelected(r.selected)})},LD=[{createOnAllSeries:!0,reset:function(r,e){var t=[];return e.eachComponent("visualMap",function(a){var n=r.pipelineContext;!a.isTargetSeries(r)||n&&n.large||t.push(nD(a.stateList,a.targetVisuals,$(a.getValueState,a),a.getDataDimensionIndex(r.getData())))}),t}},{createOnAllSeries:!0,reset:function(r,e){var t=r.getData(),a=[];e.eachComponent("visualMap",function(n){if(n.isTargetSeries(r)){var i=n.getVisualMeta($(ID,null,r,n))||{stops:[],outerColors:[]},o=n.getDataDimensionIndex(t);o>=0&&(i.dimension=o,a.push(i))}}),r.getData().setVisual("visualMeta",a)}}];function ID(r,e,t,a){for(var n=e.targetVisuals[a],i=ze.prepareVisualTypes(n),o={color:Ap(r.getData(),"color")},s=0,l=i.length;s<l;s++){var u=i[s],f=n[u==="opacity"?"__alphaForOpacity":u];f&&f.applyVisual(t,c,h)}return o.color;function c(v){return o[v]}function h(v,d){o[v]=d}}var Rh=T;function kD(r){var e=r&&r.visualMap;N(e)||(e=e?[e]:[]),Rh(e,function(t){if(t){ra(t,"splitList")&&!ra(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var a=t.pieces;a&&N(a)&&Rh(a,function(n){K(n)&&(ra(n,"start")&&!ra(n,"min")&&(n.min=n.start),ra(n,"end")&&!ra(n,"max")&&(n.max=n.end))})}})}function ra(r,e){return r&&r.hasOwnProperty&&r.hasOwnProperty(e)}var Eh=!1;function Yy(r){Eh||(Eh=!0,r.registerSubTypeDefaulter("visualMap",function(e){return!e.categories&&(!(e.pieces?e.pieces.length>0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),r.registerAction(DD,AD),T(LD,function(e){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,e)}),r.registerPreprocessor(kD))}function PD(r){r.registerComponentModel(xD),r.registerComponentView(CD),Yy(r)}var RD=(function(r){U(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._pieceList=[],t}return e.prototype.optionUpdated=function(t,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var n=this._mode=this._determineMode();this._pieceList=[],ED[this._mode].call(this,this._pieceList),this._resetSelected(t,a);var i=this.option.categories;this.resetVisual(function(o,s){n==="categories"?(o.mappingMethod="category",o.categories=q(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=X(this._pieceList,function(l){return l=q(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var t=this.option,a={},n=ze.listVisualTypes(),i=this.isCategory();T(t.pieces,function(s){T(n,function(l){s.hasOwnProperty(l)&&(a[l]=1)})}),T(a,function(s,l){var u=!1;T(this.stateList,function(f){u=u||o(t,f,l)||o(t.target,f,l)},this),!u&&T(this.stateList,function(f){(t[f]||(t[f]={}))[l]=Hy.get(l,f==="inRange"?"active":"inactive",i)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}r.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,a){var n=this.option,i=this._pieceList,o=(a?n:t).selected||{};if(n.selected=o,T(i,function(l,u){var f=this.getSelectedMapKey(l);o.hasOwnProperty(f)||(o[f]=!0)},this),n.selectedMode==="single"){var s=!1;T(i,function(l,u){var f=this.getSelectedMapKey(l);o[f]&&(s?o[f]=!1:s=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return this._mode==="categories"?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=q(t)},e.prototype.getValueState=function(t){var a=ze.findPieceIndex(t,this._pieceList);return a!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[a])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var a=[],n=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var f=ze.findPieceIndex(l,n);f===t&&o.push(u)},this),a.push({seriesId:i.id,dataIndex:o})},this),a},e.prototype.getRepresentValue=function(t){var a;if(this.isCategory())a=t.value;else if(t.value!=null)a=t.value;else{var n=t.interval||[];a=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return a},e.prototype.getVisualMeta=function(t){if(this.isCategory())return;var a=[],n=["",""],i=this;function o(f,c){var h=i.getRepresentValue({interval:f});c||(c=i.getValueState(h));var v=t(h,c);f[0]===-1/0?n[0]=v:f[1]===1/0?n[1]=v:a.push({value:f[0],color:v},{value:f[1],color:v})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return T(s,function(f){var c=f.interval;c&&(c[0]>u&&o([u,c[0]],"outOfRange"),o(c.slice()),u=c[1])},this),{stops:a,outerColors:n}},e.type="visualMap.piecewise",e.defaultOption=mo(lo.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e})(lo),ED={splitNumber:function(r){var e=this.option,t=Math.min(e.precision,20),a=this.getExtent(),n=e.splitNumber;n=Math.max(parseInt(n,10),1),e.splitNumber=n;for(var i=(a[1]-a[0])/n;+i.toFixed(t)!==i&&t<5;)t++;e.precision=t,i=+i.toFixed(t),e.minOpen&&r.push({interval:[-1/0,a[0]],close:[0,0]});for(var o=0,s=a[0];o<n;s+=i,o++){var l=o===n-1?a[1]:s+i;r.push({interval:[s,l],close:[1,1]})}e.maxOpen&&r.push({interval:[a[1],1/0],close:[0,0]}),pf(r),T(r,function(u,f){u.index=f,u.text=this.formatValueText(u.interval)},this)},categories:function(r){var e=this.option;T(e.categories,function(t){r.push({text:this.formatValueText(t,!0),value:t})},this),Oh(e,r)},pieces:function(r){var e=this.option;T(e.pieces,function(t,a){K(t)||(t={value:t});var n={text:"",index:a};if(t.label!=null&&(n.text=t.label),t.hasOwnProperty("value")){var i=n.value=t.value;n.interval=[i,i],n.close=[1,1]}else{for(var o=n.interval=[],s=n.close=[0,0],l=[1,0,1],u=[-1/0,1/0],f=[],c=0;c<2;c++){for(var h=[["gte","gt","min"],["lte","lt","max"]][c],v=0;v<3&&o[c]==null;v++)o[c]=t[h[v]],s[c]=l[v],f[c]=v===2;o[c]==null&&(o[c]=u[c])}f[0]&&o[1]===1/0&&(s[0]=0),f[1]&&o[0]===-1/0&&(s[1]=0),o[0]===o[1]&&s[0]&&s[1]&&(n.value=o[0])}n.visual=ze.retrieveVisuals(t),r.push(n)},this),Oh(e,r),pf(r),T(r,function(t){var a=t.close,n=[["<","≤"][a[1]],[">","≥"][a[0]]];t.text=t.text||this.formatValueText(t.value!=null?t.value:t.interval,!1,n)},this)}};function Oh(r,e){var t=r.inverse;(r.orient==="vertical"?!t:t)&&e.reverse()}var OD=(function(r){U(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.doRender=function(){var t=this.group;t.removeAll();var a=this.visualMapModel,n=a.get("textGap"),i=a.textStyleModel,o=this._getItemAlign(),s=a.itemSize,l=this._getViewData(),u=l.endsText,f=Ar(a.get("showLabel",!0),!u),c=!a.get("selectedMode");u&&this._renderEndsText(t,u[0],s,f,o),T(l.viewPieceList,function(h){var v=h.piece,d=new le;d.onclick=$(this._onItemClick,this,v),this._enableHoverLink(d,h.indexInModelPieceList);var p=a.getRepresentValue(v);if(this._createItemSymbol(d,p,[0,0,s[0],s[1]],c),f){var y=this.visualMapModel.getValueState(p),g=i.get("align")||o;d.add(new de({style:Ae(i,{x:g==="right"?-n:s[0]+n,y:s[1]/2,text:v.text,verticalAlign:i.get("verticalAlign")||"middle",align:g,opacity:j(i.get("opacity"),y==="outOfRange"?.5:1)}),silent:c}))}t.add(d)},this),u&&this._renderEndsText(t,u[1],s,f,o),ca(a.get("orient"),t,a.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,a){var n=this;t.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(o){var s=n.visualMapModel;s.option.hoverLink&&n.api.dispatchAction({type:o,batch:Pi(s.findTargetDataIndices(a),s)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,a=t.option;if(a.orient==="vertical")return Uy(t,this.api,t.itemSize);var n=a.align;return(!n||n==="auto")&&(n="left"),n},e.prototype._renderEndsText=function(t,a,n,i,o){if(a){var s=new le,l=this.visualMapModel.textStyleModel;s.add(new de({style:Ae(l,{x:i?o==="right"?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?o:"center",text:a})})),t.add(s)}},e.prototype._getViewData=function(){var t=this.visualMapModel,a=X(t.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),n=t.get("text"),i=t.get("orient"),o=t.get("inverse");return(i==="horizontal"?o:!o)?a.reverse():n&&(n=n.slice().reverse()),{viewPieceList:a,endsText:n}},e.prototype._createItemSymbol=function(t,a,n,i){var o=dt(this.getControllerVisual(a,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(a,"color"));o.silent=i,t.add(o)},e.prototype._onItemClick=function(t){var a=this.visualMapModel,n=a.option,i=n.selectedMode;if(i){var o=q(n.selected),s=a.getSelectedMapKey(t);i==="single"||i===!0?(o[s]=!0,T(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},e.type="visualMap.piecewise",e})(Wy);function ND(r){r.registerComponentModel(RD),r.registerComponentView(OD),Yy(r)}function iA(r){ot(PD),ot(ND)}var BD=(function(r){U(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataset",t}return e.prototype.init=function(t,a,n){r.prototype.init.call(this,t,a,n),this._sourceManager=new up(this),sc(this)},e.prototype.mergeOption=function(t,a){r.prototype.mergeOption.call(this,t,a),sc(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:vt},e})(ie),VD=(function(r){U(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataset",t}return e.type="dataset",e})(Ue);function zD(r){r.registerComponentModel(BD),r.registerComponentView(VD)}ot([Pw,zD]);ot(kw);export{Tn as S,XD as a,UD as b,WD as c,Ys as d,YD as e,Xp as f,qe as g,FD as h,jD as i,rA as j,nA as k,it as l,Pw as m,HD as n,QD as o,eA as p,iA as q,Jx as r,qD as s,$D as t,ot as u,KD as v,ZD as w,aA as x,tA as y,JD as z};
|