x-print-designer 0.0.2 → 0.0.3
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/README.md +533 -103
- package/dist/assets/Axis-r61YvV2N.js +8 -0
- package/dist/assets/JsBarcode-BOwNyIpk.js +1 -0
- package/dist/assets/barcode-BoWGE6Vo.js +8 -0
- package/dist/assets/browser-CR_q2Gy7.js +1 -0
- package/dist/assets/canvg-ChoTXRpY.js +18 -0
- package/dist/assets/charts-lpQQN2Ks.js +1 -0
- package/dist/assets/components-D_JDMQgr.js +22 -0
- package/dist/assets/core-BrVw2LCo.js +1 -0
- package/dist/assets/createSeriesData-BS3ONHiF.js +1 -0
- package/dist/assets/customGraphicKeyframeAnimation-CXbdssPk.js +3 -0
- package/dist/assets/dom-to-image-more.min-CWakCYDx.js +1 -0
- package/dist/assets/favicon-o5K9zUr2.ico +0 -0
- package/dist/assets/graphic-DgPervEb.js +29 -0
- package/dist/assets/html2canvas.esm-QH1iLAAe.js +22 -0
- package/dist/assets/index-JEGgaCHA.css +1 -0
- package/dist/assets/index-OtDSuAAX.js +154 -0
- package/dist/assets/jszip.min-DLPWIKb1.js +12 -0
- package/dist/assets/logo-DXm7qK2I.png +0 -0
- package/dist/assets/monaco-DvnI3chM.js +11 -0
- package/dist/assets/pdf-D4995UXf.js +170 -0
- package/dist/assets/purify.es-BaNf_EpD.js +2 -0
- package/dist/assets/renderers-BUy3EJql.js +3 -0
- package/dist/assets/utils-C6aID195.js +1 -0
- package/dist/assets/vendor-ClC5F-pT.js +39 -0
- package/dist/index.html +19 -0
- package/package.json +1 -1
- package/dist/Axis-B3MEVZ27.js +0 -18214
- package/dist/JsBarcode-CaEyZMPG.js +0 -3866
- package/dist/browser-Bl9hyQY4.js +0 -2153
- package/dist/charts-BEFiaBSj.js +0 -18428
- package/dist/components-DLGmq9Hs.js +0 -16442
- package/dist/core-BH5GCqh2.js +0 -233
- package/dist/createSeriesData-C8TQkDhm.js +0 -434
- package/dist/customGraphicKeyframeAnimation-Co1OX5Xt.js +0 -9429
- package/dist/dom-to-image-more.min-CwgZFoL1.js +0 -540
- package/dist/graphic-BP8Wuks8.js +0 -11299
- package/dist/html2canvas.esm-DWZSdXKi.js +0 -7795
- package/dist/index-C8ZY6iyn.js +0 -336
- package/dist/index.es-Bd9RXDZp.js +0 -10445
- package/dist/jspdf.es.min-CXfI1dny.js +0 -11560
- package/dist/jszip.min-DoQFFAlg.js +0 -2354
- package/dist/print-designer.css +0 -1
- package/dist/print-designer.es.js +0 -4
- package/dist/print-designer.umd.js +0 -380
- package/dist/purify.es-CoISWr_W.js +0 -1082
- package/dist/renderers-YjB_OS7R.js +0 -2387
- package/dist/typeof-DxTVrAEz.js +0 -11
- package/dist/web-component-6n-bG7Fh.js +0 -46827
- package/dist/web-component.d.ts +0 -98
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import{p as F,s as un,q as N,o as z,I as ae,aZ as Ma,l as E,V as U,g as S,j as Ce,v as ut,Y as Xe,_ as q,k as kc,h as P,n as K,L as ie,a_ as Ji,aK as Cn,$ as Qe,J as Ta,aJ as Wt,aU as sr,aV as ur,a9 as Ac,ad as Ec,ab as qn,a$ as ji,b0 as eo,b1 as Js,ai as to,b2 as ro,aa as Rc,b3 as no,M as ao,an as io,aj as oo,P as Oe,b4 as Pc,B as rt,a4 as Lc,E as se,a as Dn,f as Ke,aN as js,aI as eu,ay as Oc,aS as Nc,az as tu,au as Ve,aT as Bc,a5 as Fc,b5 as Vc,c as Z,R as lt,C as zc,G as xn,Z as _r,a3 as ru,aF as In,T as Gc,r as fe,m as At,e as De,d as ii,a6 as Ca,b6 as xe,i as we,b as ce,b7 as ln,X as Uc,a0 as $t,O as Hc,b8 as Wc,ar as nu,w as Yc,aP as kn,y as qc,b9 as so,ba as $n,bb as $c,bc as Xc,Q as uo,al as Da,bd as Kc,be as lo,ax as Zc}from"./graphic-DgPervEb.js";var co=1e-4,au=20;function Qc(e){return e.replace(/^\s+|\s+$/g,"")}var Sr=Math.min,Fe=Math.max,Ye=Math.abs;function fo(e,t,r,n){var a=t[0],i=t[1],o=r[0],s=r[1],u=i-a,l=s-o;if(u===0)return l===0?o:(o+s)/2;if(n)if(u>0){if(e<=a)return o;if(e>=i)return s}else{if(e>=a)return o;if(e<=i)return s}else{if(e===a)return o;if(e===i)return s}return(e-a)/u*l+o}var oe=Jc;function Jc(e,t,r){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return jc(e,t,r)}function jc(e,t,r){return F(e)?Qc(e).match(/%$/)?parseFloat(e)/100*t+(r||0):parseFloat(e):e==null?NaN:+e}function Ze(e,t,r){return t==null&&(t=10),t=Math.min(Math.max(0,t),au),e=(+e).toFixed(t),r?e:+e}function Fy(e){return e.sort(function(t,r){return t-r}),e}function tt(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,r=0;r<15;r++,t*=10)if(Math.round(e*t)/t===e)return r}return ef(e)}function ef(e){var t=e.toString().toLowerCase(),r=t.indexOf("e"),n=r>0?+t.slice(r+1):0,a=r>0?r:t.length,i=t.indexOf("."),o=i<0?0:a-1-i;return Math.max(0,o-n)}function tf(e,t){var r=Math.log,n=Math.LN10,a=Math.floor(r(e[1]-e[0])/n),i=Math.round(r(Ye(t[1]-t[0]))/n),o=Math.min(Math.max(-a+i,0),20);return isFinite(o)?o:20}function Vy(e,t,r){if(!e[t])return 0;var n=rf(e,r);return n[t]||0}function rf(e,t){var r=un(e,function(f,d){return f+(isNaN(d)?0:d)},0);if(r===0)return[];for(var n=Math.pow(10,t),a=N(e,function(f){return(isNaN(f)?0:f)/r*n*100}),i=n*100,o=N(a,function(f){return Math.floor(f)}),s=un(o,function(f,d){return f+d},0),u=N(a,function(f,d){return f-o[d]});s<i;){for(var l=Number.NEGATIVE_INFINITY,v=null,c=0,h=u.length;c<h;++c)u[c]>l&&(l=u[c],v=c);++o[v],u[v]=0,++s}return N(o,function(f){return f/n})}function nf(e,t){var r=Math.max(tt(e),tt(t)),n=e+t;return r>au?n:Ze(n,r)}var zy=9007199254740991;function Gy(e){var t=Math.PI*2;return(e%t+t)%t}function Uy(e){return e>-co&&e<co}var af=/^(?:(\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 Et(e){if(e instanceof Date)return e;if(F(e)){var t=af.exec(e);if(!t)return new Date(NaN);if(t[8]){var r=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(r-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,r,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(e==null)return new Date(NaN);return new Date(Math.round(e))}function of(e){return Math.pow(10,oi(e))}function oi(e){if(e===0)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}function iu(e,t){var r=oi(e),n=Math.pow(10,r),a=e/n,i;return t?a<1.5?i=1:a<2.5?i=2:a<4?i=3:a<7?i=5:i=10:a<1?i=1:a<2?i=2:a<3?i=3:a<5?i=5:i=10,e=i*n,r>=-20?+e.toFixed(r<0?-r:0):e}function Hy(e,t){var r=(e.length-1)*t+1,n=Math.floor(r),a=+e[n-1],i=r-n;return i?a+i*(e[n]-a):a}function Wy(e){e.sort(function(u,l){return s(u,l,0)?-1:1});for(var t=-1/0,r=1,n=0;n<e.length;){for(var a=e[n].interval,i=e[n].close,o=0;o<2;o++)a[o]<=t&&(a[o]=t,i[o]=o?1:1-r),t=a[o],r=i[o];a[0]===a[1]&&i[0]*i[1]!==1?e.splice(n,1):n++}return e;function s(u,l,v){return u.interval[v]<l.interval[v]||u.interval[v]===l.interval[v]&&(u.close[v]-l.close[v]===(v?-1:1)||!v&&s(u,l,1))}}function ft(e){var t=parseFloat(e);return t==e&&(t!==0||!F(e)||e.indexOf("x")<=0)?t:NaN}function sf(e){return!isNaN(ft(e))}function ou(){return Math.round(Math.random()*9)}function su(e,t){return t===0?e:su(t,e%t)}function vo(e,t){return e==null?t:t==null?e:e*t/su(e,t)}var uf="[ECharts] ",lf=typeof console<"u"&&console.warn&&console.log;function cf(e,t,r){lf&&console[e](uf+t)}function uu(e,t){cf("error",e)}function Me(e){throw new Error(e)}function ho(e,t,r){return(t-e)*r+e}var lu="series\0",cu="\0_ec_\0";function Se(e){return e instanceof Array?e:e==null?[]:[e]}function po(e,t,r){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var n=0,a=r.length;n<a;n++){var i=r[n];!e.emphasis[t].hasOwnProperty(i)&&e[t].hasOwnProperty(i)&&(e.emphasis[t][i]=e[t][i])}}}var go=["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 An(e){return z(e)&&!E(e)&&!(e instanceof Date)?e.value:e}function ff(e){return z(e)&&!(e instanceof Array)}function vf(e,t,r){var n=r==="normalMerge",a=r==="replaceMerge",i=r==="replaceAll";e=e||[],t=(t||[]).slice();var o=U();S(t,function(u,l){if(!z(u)){t[l]=null;return}});var s=hf(e,o,r);return(n||a)&&df(s,e,o,t),n&&pf(s,t),n||a?gf(s,t,a):i&&yf(s,t),mf(s),s}function hf(e,t,r){var n=[];if(r==="replaceAll")return n;for(var a=0;a<e.length;a++){var i=e[a];i&&i.id!=null&&t.set(i.id,a),n.push({existing:r==="replaceMerge"||br(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return n}function df(e,t,r,n){S(n,function(a,i){if(!(!a||a.id==null)){var o=vr(a.id),s=r.get(o);if(s!=null){var u=e[s];Xe(!u.newOption,'Duplicated option on id "'+o+'".'),u.newOption=a,u.existing=t[s],n[i]=null}}})}function pf(e,t){S(t,function(r,n){if(!(!r||r.name==null))for(var a=0;a<e.length;a++){var i=e[a].existing;if(!e[a].newOption&&i&&(i.id==null||r.id==null)&&!br(r)&&!br(i)&&fu("name",i,r)){e[a].newOption=r,t[n]=null;return}}})}function gf(e,t,r){S(t,function(n){if(n){for(var a,i=0;(a=e[i])&&(a.newOption||br(a.existing)||a.existing&&n.id!=null&&!fu("id",n,a.existing));)i++;a?(a.newOption=n,a.brandNew=r):e.push({newOption:n,brandNew:r,existing:null,keyInfo:null}),i++}})}function yf(e,t){S(t,function(r){e.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function mf(e){var t=U();S(e,function(r){var n=r.existing;n&&t.set(n.id,r)}),S(e,function(r){var n=r.newOption;Xe(!n||n.id==null||!t.get(n.id)||t.get(n.id)===r,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&t.set(n.id,r),!r.keyInfo&&(r.keyInfo={})}),S(e,function(r,n){var a=r.existing,i=r.newOption,o=r.keyInfo;if(z(i)){if(o.name=i.name!=null?vr(i.name):a?a.name:lu+n,a)o.id=vr(a.id);else if(i.id!=null)o.id=vr(i.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(t.get(o.id))}t.set(o.id,r)}})}function fu(e,t,r){var n=ze(t[e],null),a=ze(r[e],null);return n!=null&&a!=null&&n===a}function vr(e){return ze(e,"")}function ze(e,t){return e==null?t:F(e)?e:ae(e)||Ma(e)?e+"":t}function vu(e){var t=e.name;return!!(t&&t.indexOf(lu))}function br(e){return e&&e.id!=null&&vr(e.id).indexOf(cu)===0}function Yy(e){return cu+e}function _f(e,t,r){S(e,function(n){var a=n.newOption;z(a)&&(n.keyInfo.mainType=t,n.keyInfo.subType=Sf(t,a,n.existing,r))})}function Sf(e,t,r,n){var a=t.type?t.type:r?r.subType:n.determineSubType(e,t);return a}function qy(e,t){var r={},n={};return a(e||[],r),a(t||[],n,r),[i(r),i(n)];function a(o,s,u){for(var l=0,v=o.length;l<v;l++){var c=ze(o[l].seriesId,null);if(c==null)return;for(var h=Se(o[l].dataIndex),f=u&&u[c],d=0,g=h.length;d<g;d++){var p=h[d];f&&f[p]?f[p]=null:(s[c]||(s[c]={}))[p]=1}}}function i(o,s){var u=[];for(var l in o)if(o.hasOwnProperty(l)&&o[l]!=null)if(s)u.push(+l);else{var v=i(o[l],!0);v.length&&u.push({seriesId:l,dataIndex:v})}return u}}function En(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return E(t.dataIndex)?N(t.dataIndex,function(r){return e.indexOfRawIndex(r)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return E(t.name)?N(t.name,function(r){return e.indexOfName(r)}):e.indexOfName(t.name)}function ye(){var e="__ec_inner_"+bf++;return function(t){return t[e]||(t[e]={})}}var bf=ou();function Xn(e,t,r){var n=hu(t,r),a=n.mainTypeSpecified,i=n.queryOptionMap,o=n.others,s=o,u=r?r.defaultMainType:null;return!a&&u&&i.set(u,{}),i.each(function(l,v){var c=Pn(e,v,l,{useDefault:u===v,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});s[v+"Models"]=c.models,s[v+"Model"]=c.models[0]}),s}function hu(e,t){var r;if(F(e)){var n={};n[e+"Index"]=0,r=n}else r=e;var a=U(),i={},o=!1;return S(r,function(s,u){if(u==="dataIndex"||u==="dataIndexInside"){i[u]=s;return}var l=u.match(/^(\w+)(Index|Id|Name)$/)||[],v=l[1],c=(l[2]||"").toLowerCase();if(!(!v||!c||t&&t.includeMainTypes&&Ce(t.includeMainTypes,v)<0)){o=o||!!v;var h=a.get(v)||a.set(v,{});h[c]=s}}),{mainTypeSpecified:o,queryOptionMap:a,others:i}}var Rn={useDefault:!0,enableAll:!1,enableNone:!1},$y={useDefault:!1,enableAll:!0,enableNone:!0};function Pn(e,t,r,n){n=n||Rn;var a=r.index,i=r.id,o=r.name,s={models:null,specified:a!=null||i!=null||o!=null};if(!s.specified){var u=void 0;return s.models=n.useDefault&&(u=e.getComponent(t))?[u]:[],s}if(a==="none"||a===!1){if(n.enableNone)return s.models=[],s;a=-1}return a==="all"&&(n.enableAll?a=i=o=null:a=-1),s.models=e.queryComponents({mainType:t,index:a,id:i,name:o}),s}function du(e,t,r){e.setAttribute?e.setAttribute(t,r):e[t]=r}function wf(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function Xy(e){return e==="auto"?ut.domSupported?"html":"richText":e||"html"}function Ky(e,t){var r=U(),n=[];return S(e,function(a){var i=t(a);(r.get(i)||(n.push(i),r.set(i,[]))).push(a)}),{keys:n,buckets:r}}function Mf(e,t,r,n,a){var i=t==null||t==="auto";if(n==null)return n;if(ae(n)){var o=ho(r||0,n,a);return Ze(o,i?Math.max(tt(r||0),tt(n)):t)}else{if(F(n))return a<1?r:n;for(var s=[],u=r,l=n,v=Math.max(u?u.length:0,l.length),c=0;c<v;++c){var h=e.getDimensionInfo(c);if(h&&h.type==="ordinal")s[c]=(a<1&&u?u:l)[c];else{var f=u&&u[c]?u[c]:0,d=l[c],o=ho(f,d,a);s[c]=Ze(o,i?Math.max(tt(f),tt(d)):t)}}return s}}var Zy=(function(){function e(){}return e.prototype.reset=function(t,r,n,a){return this._list=t,this._step=a=a||1,this._idx=r,this._end=n??(a>0?t.length:0),this.item=null,this.key=NaN,this},e.prototype.next=function(){return(this._step>0?this._idx<this._end:this._idx>=this._end)?(this.item=this._list[this._idx],this.key=this._idx=this._idx+this._step,!0):!1},e})();function Qy(e){e.option=e.parentModel=e.ecModel=null}var Tf=".",dt="___EC__COMPONENT__CONTAINER___",pu="___EC__EXTENDED_CLASS___";function qe(e){var t={main:"",sub:""};if(e){var r=e.split(Tf);t.main=r[0]||"",t.sub=r[1]||""}return t}function Cf(e){Xe(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function Df(e){return!!(e&&e[pu])}function si(e,t){e.$constructor=e,e.extend=function(r){var n=this,a;return xf(n)?a=(function(i){q(o,i);function o(){return i.apply(this,arguments)||this}return o})(n):(a=function(){(r.$constructor||n).apply(this,arguments)},kc(a,this)),P(a.prototype,r),a[pu]=!0,a.extend=this.extend,a.superCall=Af,a.superApply=Ef,a.superClass=n,a}}function xf(e){return K(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function gu(e,t){e.extend=t.extend}var If=Math.round(Math.random()*10);function kf(e){var t=["__\0is_clz",If++].join("_");e.prototype[t]=!0,e.isInstance=function(r){return!!(r&&r[t])}}function Af(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return this.superClass.prototype[t].apply(e,r)}function Ef(e,t,r){return this.superClass.prototype[t].apply(e,r)}function Ln(e){var t={};e.registerClass=function(n){var a=n.type||n.prototype.type;if(a){Cf(a),n.prototype.type=a;var i=qe(a);if(!i.sub)t[i.main]=n;else if(i.sub!==dt){var o=r(i);o[i.sub]=n}}return n},e.getClass=function(n,a,i){var o=t[n];if(o&&o[dt]&&(o=a?o[a]:null),i&&!o)throw new Error(a?"Component "+n+"."+(a||"")+" is used but not imported.":n+".type should be specified.");return o},e.getClassesByMainType=function(n){var a=qe(n),i=[],o=t[a.main];return o&&o[dt]?S(o,function(s,u){u!==dt&&i.push(s)}):i.push(o),i},e.hasClass=function(n){var a=qe(n);return!!t[a.main]},e.getAllClassMainTypes=function(){var n=[];return S(t,function(a,i){n.push(i)}),n},e.hasSubTypes=function(n){var a=qe(n),i=t[a.main];return i&&i[dt]};function r(n){var a=t[n.main];return(!a||!a[dt])&&(a=t[n.main]={},a[dt]=!0),a}}function wr(e,t){for(var r=0;r<e.length;r++)e[r][1]||(e[r][1]=e[r][0]);return t=t||!1,function(n,a,i){for(var o={},s=0;s<e.length;s++){var u=e[s][1];if(!(a&&Ce(a,u)>=0||i&&Ce(i,u)<0)){var l=n.getShallow(u,t);l!=null&&(o[e[s][0]]=l)}}return o}}var Rf=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],Pf=wr(Rf),Lf=(function(){function e(){}return e.prototype.getAreaStyle=function(t,r){return Pf(this,t,r)},e})(),Te=ye(),Of=function(e,t,r,n){if(n){var a=Te(n);a.dataIndex=r,a.dataType=t,a.seriesIndex=e,a.ssrType="chart",n.type==="group"&&n.traverse(function(i){var o=Te(i);o.seriesIndex=e,o.dataIndex=r,o.dataType=t,o.ssrType="chart"})}},yo=1,mo={},yu=ye(),ui=ye(),li=0,On=1,Nn=2,vt=["emphasis","blur","select"],_o=["normal","emphasis","blur","select"],Nf=10,Bf=9,Ct="highlight",tn="downplay",cn="select",xa="unselect",fn="toggleSelect",ci="selectchanged";function Lt(e){return e!=null&&e!=="none"}function Bn(e,t,r){e.onHoverStateChange&&(e.hoverState||0)!==r&&e.onHoverStateChange(t),e.hoverState=r}function mu(e){Bn(e,"emphasis",Nn)}function _u(e){e.hoverState===Nn&&Bn(e,"normal",li)}function fi(e){Bn(e,"blur",On)}function Su(e){e.hoverState===On&&Bn(e,"normal",li)}function Ff(e){e.selected=!0}function Vf(e){e.selected=!1}function So(e,t,r){t(e,r)}function nt(e,t,r){So(e,t,r),e.isGroup&&e.traverse(function(n){So(n,t,r)})}function Jy(e,t){switch(t){case"emphasis":e.hoverState=Nn;break;case"normal":e.hoverState=li;break;case"blur":e.hoverState=On;break;case"select":e.selected=!0}}function zf(e,t,r,n){for(var a=e.style,i={},o=0;o<t.length;o++){var s=t[o],u=a[s];i[s]=u??(n&&n[s])}for(var o=0;o<e.animators.length;o++){var l=e.animators[o];l.__fromStateTransition&&l.__fromStateTransition.indexOf(r)<0&&l.targetName==="style"&&l.saveTo(i,t)}return i}function Gf(e,t,r,n){var a=r&&Ce(r,"select")>=0,i=!1;if(e instanceof ie){var o=yu(e),s=a&&o.selectFill||o.normalFill,u=a&&o.selectStroke||o.normalStroke;if(Lt(s)||Lt(u)){n=n||{};var l=n.style||{};l.fill==="inherit"?(i=!0,n=P({},n),l=P({},l),l.fill=s):!Lt(l.fill)&&Lt(s)?(i=!0,n=P({},n),l=P({},l),l.fill=Ji(s)):!Lt(l.stroke)&&Lt(u)&&(i||(n=P({},n),l=P({},l)),l.stroke=Ji(u)),n.style=l}}if(n&&n.z2==null){i||(n=P({},n));var v=e.z2EmphasisLift;n.z2=e.z2+(v??Nf)}return n}function Uf(e,t,r){if(r&&r.z2==null){r=P({},r);var n=e.z2SelectLift;r.z2=e.z2+(n??Bf)}return r}function Hf(e,t,r){var n=Ce(e.currentStates,t)>=0,a=e.style.opacity,i=n?null:zf(e,["opacity"],t,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=P({},r),o=P({opacity:n?a:i.opacity*.1},o),r.style=o),r}function Kn(e,t){var r=this.states[e];if(this.style){if(e==="emphasis")return Gf(this,e,t,r);if(e==="blur")return Hf(this,e,r);if(e==="select")return Uf(this,e,r)}return r}function Wf(e){e.stateProxy=Kn;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=Kn),r&&(r.stateProxy=Kn)}function bo(e,t){!Tu(e,t)&&!e.__highByOuter&&nt(e,mu)}function wo(e,t){!Tu(e,t)&&!e.__highByOuter&&nt(e,_u)}function Ia(e,t){e.__highByOuter|=1<<(t||0),nt(e,mu)}function ka(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&nt(e,_u)}function Yf(e){nt(e,fi)}function bu(e){nt(e,Su)}function wu(e){nt(e,Ff)}function Mu(e){nt(e,Vf)}function Tu(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function Cu(e){var t=e.getModel(),r=[],n=[];t.eachComponent(function(a,i){var o=ui(i),s=a==="series",u=s?e.getViewOfSeriesModel(i):e.getViewOfComponentModel(i);!s&&n.push(u),o.isBlured&&(u.group.traverse(function(l){Su(l)}),s&&r.push(i)),o.isBlured=!1}),S(n,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(r,!1,t)})}function Aa(e,t,r,n){var a=n.getModel();r=r||"coordinateSystem";function i(l,v){for(var c=0;c<v.length;c++){var h=l.getItemGraphicEl(v[c]);h&&bu(h)}}if(e!=null&&!(!t||t==="none")){var o=a.getSeriesByIndex(e),s=o.coordinateSystem;s&&s.master&&(s=s.master);var u=[];a.eachSeries(function(l){var v=o===l,c=l.coordinateSystem;c&&c.master&&(c=c.master);var h=c&&s?c===s:v;if(!(r==="series"&&!v||r==="coordinateSystem"&&!h||t==="series"&&v)){var f=n.getViewOfSeriesModel(l);if(f.group.traverse(function(p){p.__highByOuter&&v&&t==="self"||fi(p)}),Cn(t))i(l.getData(),t);else if(z(t))for(var d=Qe(t),g=0;g<d.length;g++)i(l.getData(d[g]),t[d[g]]);u.push(l),ui(l).isBlured=!0}}),a.eachComponent(function(l,v){if(l!=="series"){var c=n.getViewOfComponentModel(v);c&&c.toggleBlurSeries&&c.toggleBlurSeries(u,!0,a)}})}}function Ea(e,t,r){if(!(e==null||t==null)){var n=r.getModel().getComponent(e,t);if(n){ui(n).isBlured=!0;var a=r.getViewOfComponentModel(n);!a||!a.focusBlurEnabled||a.group.traverse(function(i){fi(i)})}}}function qf(e,t,r){var n=e.seriesIndex,a=e.getData(t.dataType);if(a){var i=En(a,t);i=(E(i)?i[0]:i)||0;var o=a.getItemGraphicEl(i);if(!o)for(var s=a.count(),u=0;!o&&u<s;)o=a.getItemGraphicEl(u++);if(o){var l=Te(o);Aa(n,l.focus,l.blurScope,r)}else{var v=e.get(["emphasis","focus"]),c=e.get(["emphasis","blurScope"]);v!=null&&Aa(n,v,c,r)}}}function vi(e,t,r,n){var a={focusSelf:!1,dispatchers:null};if(e==null||e==="series"||t==null||r==null)return a;var i=n.getModel().getComponent(e,t);if(!i)return a;var o=n.getViewOfComponentModel(i);if(!o||!o.findHighDownDispatchers)return a;for(var s=o.findHighDownDispatchers(r),u,l=0;l<s.length;l++)if(Te(s[l]).focus==="self"){u=!0;break}return{focusSelf:u,dispatchers:s}}function $f(e,t,r){var n=Te(e),a=vi(n.componentMainType,n.componentIndex,n.componentHighDownName,r),i=a.dispatchers,o=a.focusSelf;i?(o&&Ea(n.componentMainType,n.componentIndex,r),S(i,function(s){return bo(s,t)})):(Aa(n.seriesIndex,n.focus,n.blurScope,r),n.focus==="self"&&Ea(n.componentMainType,n.componentIndex,r),bo(e,t))}function Xf(e,t,r){Cu(r);var n=Te(e),a=vi(n.componentMainType,n.componentIndex,n.componentHighDownName,r).dispatchers;a?S(a,function(i){return wo(i,t)}):wo(e,t)}function Kf(e,t,r){if(Pa(t)){var n=t.dataType,a=e.getData(n),i=En(a,t);E(i)||(i=[i]),e[t.type===fn?"toggleSelect":t.type===cn?"select":"unselect"](i,n)}}function Mo(e){var t=e.getAllData();S(t,function(r){var n=r.data,a=r.type;n.eachItemGraphicEl(function(i,o){e.isSelected(o,a)?wu(i):Mu(i)})})}function Zf(e){var t=[];return e.eachSeries(function(r){var n=r.getAllData();S(n,function(a){a.data;var i=a.type,o=r.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:r.seriesIndex};i!=null&&(s.dataType=i),t.push(s)}})}),t}function Qf(e,t,r){Du(e,!0),nt(e,Wf),jf(e,t,r)}function Jf(e){Du(e,!1)}function jy(e,t,r,n){n?Jf(e):Qf(e,t,r)}function jf(e,t,r){var n=Te(e);t!=null?(n.focus=t,n.blurScope=r):n.focus&&(n.focus=null)}var To=["emphasis","blur","select"],ev={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function em(e,t,r,n){r=r||"itemStyle";for(var a=0;a<To.length;a++){var i=To[a],o=t.getModel([i,r]),s=e.ensureState(i);s.style=n?n(o):o[ev[r]]()}}function Du(e,t){var r=t===!1,n=e;e.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=e.highDownSilentOnTouch),(!r||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!r)}function Ra(e){return!!(e&&e.__highDownDispatcher)}function tm(e,t,r){var n=Te(e);n.componentMainType=t.mainType,n.componentIndex=t.componentIndex,n.componentHighDownName=r}function tv(e){var t=mo[e];return t==null&&yo<=32&&(t=mo[e]=yo++),t}function Pa(e){var t=e.type;return t===cn||t===xa||t===fn}function Co(e){var t=e.type;return t===Ct||t===tn}function rv(e){var t=yu(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var r=e.states.select||{};t.selectFill=r.style&&r.style.fill||null,t.selectStroke=r.style&&r.style.stroke||null}var Ot=Ta.CMD,nv=[[],[],[]],Do=Math.sqrt,av=Math.atan2;function iv(e,t){if(t){var r=e.data,n=e.len(),a,i,o,s,u,l,v=Ot.M,c=Ot.C,h=Ot.L,f=Ot.R,d=Ot.A,g=Ot.Q;for(o=0,s=0;o<n;){switch(a=r[o++],s=o,i=0,a){case v:i=1;break;case h:i=1;break;case c:i=3;break;case g:i=2;break;case d:var p=t[4],y=t[5],m=Do(t[0]*t[0]+t[1]*t[1]),_=Do(t[2]*t[2]+t[3]*t[3]),b=av(-t[1]/_,t[0]/m);r[o]*=m,r[o++]+=p,r[o]*=_,r[o++]+=y,r[o++]*=m,r[o++]*=_,r[o++]+=b,r[o++]+=b,o+=2,s=o;break;case f:l[0]=r[o++],l[1]=r[o++],Wt(l,l,t),r[s++]=l[0],r[s++]=l[1],l[0]+=r[o++],l[1]+=r[o++],Wt(l,l,t),r[s++]=l[0],r[s++]=l[1]}for(u=0;u<i;u++){var M=nv[u];M[0]=r[o++],M[1]=r[o++],Wt(M,M,t),r[s++]=M[0],r[s++]=M[1]}}e.increaseVersion()}}var Zn=Math.sqrt,Rr=Math.sin,Pr=Math.cos,Qt=Math.PI;function xo(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function La(e,t){return(e[0]*t[0]+e[1]*t[1])/(xo(e)*xo(t))}function Io(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(La(e,t))}function ko(e,t,r,n,a,i,o,s,u,l,v){var c=u*(Qt/180),h=Pr(c)*(e-r)/2+Rr(c)*(t-n)/2,f=-1*Rr(c)*(e-r)/2+Pr(c)*(t-n)/2,d=h*h/(o*o)+f*f/(s*s);d>1&&(o*=Zn(d),s*=Zn(d));var g=(a===i?-1:1)*Zn((o*o*(s*s)-o*o*(f*f)-s*s*(h*h))/(o*o*(f*f)+s*s*(h*h)))||0,p=g*o*f/s,y=g*-s*h/o,m=(e+r)/2+Pr(c)*p-Rr(c)*y,_=(t+n)/2+Rr(c)*p+Pr(c)*y,b=Io([1,0],[(h-p)/o,(f-y)/s]),M=[(h-p)/o,(f-y)/s],w=[(-1*h-p)/o,(-1*f-y)/s],T=Io(M,w);if(La(M,w)<=-1&&(T=Qt),La(M,w)>=1&&(T=0),T<0){var x=Math.round(T/Qt*1e6)/1e6;T=Qt*2+x%2*Qt}v.addData(l,m,_,o,s,b,T,c,i)}var ov=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,sv=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function uv(e){var t=new Ta;if(!e)return t;var r=0,n=0,a=r,i=n,o,s=Ta.CMD,u=e.match(ov);if(!u)return t;for(var l=0;l<u.length;l++){for(var v=u[l],c=v.charAt(0),h=void 0,f=v.match(sv)||[],d=f.length,g=0;g<d;g++)f[g]=parseFloat(f[g]);for(var p=0;p<d;){var y=void 0,m=void 0,_=void 0,b=void 0,M=void 0,w=void 0,T=void 0,x=r,D=n,I=void 0,k=void 0;switch(c){case"l":r+=f[p++],n+=f[p++],h=s.L,t.addData(h,r,n);break;case"L":r=f[p++],n=f[p++],h=s.L,t.addData(h,r,n);break;case"m":r+=f[p++],n+=f[p++],h=s.M,t.addData(h,r,n),a=r,i=n,c="l";break;case"M":r=f[p++],n=f[p++],h=s.M,t.addData(h,r,n),a=r,i=n,c="L";break;case"h":r+=f[p++],h=s.L,t.addData(h,r,n);break;case"H":r=f[p++],h=s.L,t.addData(h,r,n);break;case"v":n+=f[p++],h=s.L,t.addData(h,r,n);break;case"V":n=f[p++],h=s.L,t.addData(h,r,n);break;case"C":h=s.C,t.addData(h,f[p++],f[p++],f[p++],f[p++],f[p++],f[p++]),r=f[p-2],n=f[p-1];break;case"c":h=s.C,t.addData(h,f[p++]+r,f[p++]+n,f[p++]+r,f[p++]+n,f[p++]+r,f[p++]+n),r+=f[p-2],n+=f[p-1];break;case"S":y=r,m=n,I=t.len(),k=t.data,o===s.C&&(y+=r-k[I-4],m+=n-k[I-3]),h=s.C,x=f[p++],D=f[p++],r=f[p++],n=f[p++],t.addData(h,y,m,x,D,r,n);break;case"s":y=r,m=n,I=t.len(),k=t.data,o===s.C&&(y+=r-k[I-4],m+=n-k[I-3]),h=s.C,x=r+f[p++],D=n+f[p++],r+=f[p++],n+=f[p++],t.addData(h,y,m,x,D,r,n);break;case"Q":x=f[p++],D=f[p++],r=f[p++],n=f[p++],h=s.Q,t.addData(h,x,D,r,n);break;case"q":x=f[p++]+r,D=f[p++]+n,r+=f[p++],n+=f[p++],h=s.Q,t.addData(h,x,D,r,n);break;case"T":y=r,m=n,I=t.len(),k=t.data,o===s.Q&&(y+=r-k[I-4],m+=n-k[I-3]),r=f[p++],n=f[p++],h=s.Q,t.addData(h,y,m,r,n);break;case"t":y=r,m=n,I=t.len(),k=t.data,o===s.Q&&(y+=r-k[I-4],m+=n-k[I-3]),r+=f[p++],n+=f[p++],h=s.Q,t.addData(h,y,m,r,n);break;case"A":_=f[p++],b=f[p++],M=f[p++],w=f[p++],T=f[p++],x=r,D=n,r=f[p++],n=f[p++],h=s.A,ko(x,D,r,n,w,T,_,b,M,h,t);break;case"a":_=f[p++],b=f[p++],M=f[p++],w=f[p++],T=f[p++],x=r,D=n,r+=f[p++],n+=f[p++],h=s.A,ko(x,D,r,n,w,T,_,b,M,h,t);break}}(c==="z"||c==="Z")&&(h=s.Z,t.addData(h),r=a,n=i),o=h}return t.toStatic(),t}var xu=(function(e){q(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(r){},t})(ie);function Iu(e){return e.setData!=null}function ku(e,t){var r=uv(e),n=P({},t);return n.buildPath=function(a){var i=Iu(a);if(i&&a.canSave()){a.appendPath(r);var o=a.getContext();o&&a.rebuildPath(o,1)}else{var o=i?a.getContext():a;o&&r.rebuildPath(o,1)}},n.applyTransform=function(a){iv(r,a),this.dirtyShape()},n}function lv(e,t){return new xu(ku(e,t))}function cv(e,t){var r=ku(e,t),n=(function(a){q(i,a);function i(o){var s=a.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return i})(xu);return n}function fv(e,t){for(var r=[],n=e.length,a=0;a<n;a++){var i=e[a];r.push(i.getUpdatedPathProxy(!0))}var o=new ie(t);return o.createPathProxy(),o.buildPath=function(s){if(Iu(s)){s.appendPath(r);var u=s.getContext();u&&s.rebuildPath(u,1)}},o}var vv=(function(){function e(){this.cx=0,this.cy=0,this.r=0}return e})(),Fn=(function(e){q(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new vv},t.prototype.buildPath=function(r,n){r.moveTo(n.cx+n.r,n.cy),r.arc(n.cx,n.cy,n.r,0,Math.PI*2)},t})(ie);Fn.prototype.type="circle";var hv=(function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e})(),hi=(function(e){q(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new hv},t.prototype.buildPath=function(r,n){var a=.5522848,i=n.cx,o=n.cy,s=n.rx,u=n.ry,l=s*a,v=u*a;r.moveTo(i-s,o),r.bezierCurveTo(i-s,o-v,i-l,o-u,i,o-u),r.bezierCurveTo(i+l,o-u,i+s,o-v,i+s,o),r.bezierCurveTo(i+s,o+v,i+l,o+u,i,o+u),r.bezierCurveTo(i-l,o+u,i-s,o+v,i-s,o),r.closePath()},t})(ie);hi.prototype.type="ellipse";var Au=Math.PI,Qn=Au*2,pt=Math.sin,Nt=Math.cos,dv=Math.acos,ve=Math.atan2,Ao=Math.abs,hr=Math.sqrt,lr=Math.max,We=Math.min,Ne=1e-4;function pv(e,t,r,n,a,i,o,s){var u=r-e,l=n-t,v=o-a,c=s-i,h=c*u-v*l;if(!(h*h<Ne))return h=(v*(t-i)-c*(e-a))/h,[e+h*u,t+h*l]}function Lr(e,t,r,n,a,i,o){var s=e-r,u=t-n,l=(o?i:-i)/hr(s*s+u*u),v=l*u,c=-l*s,h=e+v,f=t+c,d=r+v,g=n+c,p=(h+d)/2,y=(f+g)/2,m=d-h,_=g-f,b=m*m+_*_,M=a-i,w=h*g-d*f,T=(_<0?-1:1)*hr(lr(0,M*M*b-w*w)),x=(w*_-m*T)/b,D=(-w*m-_*T)/b,I=(w*_+m*T)/b,k=(-w*m+_*T)/b,V=x-p,A=D-y,L=I-p,H=k-y;return V*V+A*A>L*L+H*H&&(x=I,D=k),{cx:x,cy:D,x0:-v,y0:-c,x1:x*(a/M-1),y1:D*(a/M-1)}}function gv(e){var t;if(E(e)){var r=e.length;if(!r)return e;r===1?t=[e[0],e[0],0,0]:r===2?t=[e[0],e[0],e[1],e[1]]:r===3?t=e.concat(e[2]):t=e}else t=[e,e,e,e];return t}function yv(e,t){var r,n=lr(t.r,0),a=lr(t.r0||0,0),i=n>0,o=a>0;if(!(!i&&!o)){if(i||(n=a,a=0),a>n){var s=n;n=a,a=s}var u=t.startAngle,l=t.endAngle;if(!(isNaN(u)||isNaN(l))){var v=t.cx,c=t.cy,h=!!t.clockwise,f=Ao(l-u),d=f>Qn&&f%Qn;if(d>Ne&&(f=d),!(n>Ne))e.moveTo(v,c);else if(f>Qn-Ne)e.moveTo(v+n*Nt(u),c+n*pt(u)),e.arc(v,c,n,u,l,!h),a>Ne&&(e.moveTo(v+a*Nt(l),c+a*pt(l)),e.arc(v,c,a,l,u,h));else{var g=void 0,p=void 0,y=void 0,m=void 0,_=void 0,b=void 0,M=void 0,w=void 0,T=void 0,x=void 0,D=void 0,I=void 0,k=void 0,V=void 0,A=void 0,L=void 0,H=n*Nt(u),R=n*pt(u),j=a*Nt(l),W=a*pt(l),$=f>Ne;if($){var ee=t.cornerRadius;ee&&(r=gv(ee),g=r[0],p=r[1],y=r[2],m=r[3]);var B=Ao(n-a)/2;if(_=We(B,y),b=We(B,m),M=We(B,g),w=We(B,p),D=T=lr(_,b),I=x=lr(M,w),(T>Ne||x>Ne)&&(k=n*Nt(l),V=n*pt(l),A=a*Nt(u),L=a*pt(u),f<Au)){var G=pv(H,R,A,L,k,V,j,W);if(G){var te=H-G[0],at=R-G[1],Kt=k-G[0],Zt=V-G[1],kr=1/pt(dv((te*Kt+at*Zt)/(hr(te*te+at*at)*hr(Kt*Kt+Zt*Zt)))/2),Ar=hr(G[0]*G[0]+G[1]*G[1]);D=We(T,(n-Ar)/(kr+1)),I=We(x,(a-Ar)/(kr-1))}}}if(!$)e.moveTo(v+H,c+R);else if(D>Ne){var Re=We(y,D),Pe=We(m,D),O=Lr(A,L,H,R,n,Re,h),Y=Lr(k,V,j,W,n,Pe,h);e.moveTo(v+O.cx+O.x0,c+O.cy+O.y0),D<T&&Re===Pe?e.arc(v+O.cx,c+O.cy,D,ve(O.y0,O.x0),ve(Y.y0,Y.x0),!h):(Re>0&&e.arc(v+O.cx,c+O.cy,Re,ve(O.y0,O.x0),ve(O.y1,O.x1),!h),e.arc(v,c,n,ve(O.cy+O.y1,O.cx+O.x1),ve(Y.cy+Y.y1,Y.cx+Y.x1),!h),Pe>0&&e.arc(v+Y.cx,c+Y.cy,Pe,ve(Y.y1,Y.x1),ve(Y.y0,Y.x0),!h))}else e.moveTo(v+H,c+R),e.arc(v,c,n,u,l,!h);if(!(a>Ne)||!$)e.lineTo(v+j,c+W);else if(I>Ne){var Re=We(g,I),Pe=We(p,I),O=Lr(j,W,k,V,a,-Pe,h),Y=Lr(H,R,A,L,a,-Re,h);e.lineTo(v+O.cx+O.x0,c+O.cy+O.y0),I<x&&Re===Pe?e.arc(v+O.cx,c+O.cy,I,ve(O.y0,O.x0),ve(Y.y0,Y.x0),!h):(Pe>0&&e.arc(v+O.cx,c+O.cy,Pe,ve(O.y0,O.x0),ve(O.y1,O.x1),!h),e.arc(v,c,a,ve(O.cy+O.y1,O.cx+O.x1),ve(Y.cy+Y.y1,Y.cx+Y.x1),h),Re>0&&e.arc(v+Y.cx,c+Y.cy,Re,ve(Y.y1,Y.x1),ve(Y.y0,Y.x0),!h))}else e.lineTo(v+j,c+W),e.arc(v,c,a,l,u,h)}e.closePath()}}}var mv=(function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return e})(),di=(function(e){q(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new mv},t.prototype.buildPath=function(r,n){yv(r,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t})(ie);di.prototype.type="sector";var _v=(function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e})(),pi=(function(e){q(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new _v},t.prototype.buildPath=function(r,n){var a=n.cx,i=n.cy,o=Math.PI*2;r.moveTo(a+n.r,i),r.arc(a,i,n.r,0,o,!1),r.moveTo(a+n.r0,i),r.arc(a,i,n.r0,0,o,!0)},t})(ie);pi.prototype.type="ring";function Sv(e,t,r,n){var a=[],i=[],o=[],s=[],u,l,v,c;if(n){v=[1/0,1/0],c=[-1/0,-1/0];for(var h=0,f=e.length;h<f;h++)sr(v,v,e[h]),ur(c,c,e[h]);sr(v,v,n[0]),ur(c,c,n[1])}for(var h=0,f=e.length;h<f;h++){var d=e[h];if(r)u=e[h?h-1:f-1],l=e[(h+1)%f];else if(h===0||h===f-1){a.push(Ac(e[h]));continue}else u=e[h-1],l=e[h+1];Ec(i,l,u),qn(i,i,t);var g=ji(d,u),p=ji(d,l),y=g+p;y!==0&&(g/=y,p/=y),qn(o,i,-g),qn(s,i,p);var m=eo([],d,o),_=eo([],d,s);n&&(ur(m,m,v),sr(m,m,c),ur(_,_,v),sr(_,_,c)),a.push(m),a.push(_)}return r&&a.push(a.shift()),a}function Eu(e,t,r){var n=t.smooth,a=t.points;if(a&&a.length>=2){if(n){var i=Sv(a,n,r,t.smoothConstraint);e.moveTo(a[0][0],a[0][1]);for(var o=a.length,s=0;s<(r?o:o-1);s++){var u=i[s*2],l=i[s*2+1],v=a[(s+1)%o];e.bezierCurveTo(u[0],u[1],l[0],l[1],v[0],v[1])}}else{e.moveTo(a[0][0],a[0][1]);for(var s=1,c=a.length;s<c;s++)e.lineTo(a[s][0],a[s][1])}r&&e.closePath()}}var bv=(function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e})(),gi=(function(e){q(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new bv},t.prototype.buildPath=function(r,n){Eu(r,n,!0)},t})(ie);gi.prototype.type="polygon";var wv=(function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e})(),yi=(function(e){q(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new wv},t.prototype.buildPath=function(r,n){Eu(r,n,!1)},t})(ie);yi.prototype.type="polyline";var Mv={},Tv=(function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e})(),Vn=(function(e){q(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Tv},t.prototype.buildPath=function(r,n){var a,i,o,s;if(this.subPixelOptimize){var u=Js(Mv,n,this.style);a=u.x1,i=u.y1,o=u.x2,s=u.y2}else a=n.x1,i=n.y1,o=n.x2,s=n.y2;var l=n.percent;l!==0&&(r.moveTo(a,i),l<1&&(o=a*(1-l)+o*l,s=i*(1-l)+s*l),r.lineTo(o,s))},t.prototype.pointAt=function(r){var n=this.shape;return[n.x1*(1-r)+n.x2*r,n.y1*(1-r)+n.y2*r]},t})(ie);Vn.prototype.type="line";var be=[],Cv=(function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return e})();function Eo(e,t,r){var n=e.cpx2,a=e.cpy2;return n!=null||a!=null?[(r?no:ao)(e.x1,e.cpx1,e.cpx2,e.x2,t),(r?no:ao)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(r?io:oo)(e.x1,e.cpx1,e.x2,t),(r?io:oo)(e.y1,e.cpy1,e.y2,t)]}var mi=(function(e){q(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Cv},t.prototype.buildPath=function(r,n){var a=n.x1,i=n.y1,o=n.x2,s=n.y2,u=n.cpx1,l=n.cpy1,v=n.cpx2,c=n.cpy2,h=n.percent;h!==0&&(r.moveTo(a,i),v==null||c==null?(h<1&&(to(a,u,o,h,be),u=be[1],o=be[2],to(i,l,s,h,be),l=be[1],s=be[2]),r.quadraticCurveTo(u,l,o,s)):(h<1&&(ro(a,u,v,o,h,be),u=be[1],v=be[2],o=be[3],ro(i,l,c,s,h,be),l=be[1],c=be[2],s=be[3]),r.bezierCurveTo(u,l,v,c,o,s)))},t.prototype.pointAt=function(r){return Eo(this.shape,r,!1)},t.prototype.tangentAt=function(r){var n=Eo(this.shape,r,!0);return Rc(n,n)},t})(ie);mi.prototype.type="bezier-curve";var Dv=(function(){function e(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e})(),zn=(function(e){q(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Dv},t.prototype.buildPath=function(r,n){var a=n.cx,i=n.cy,o=Math.max(n.r,0),s=n.startAngle,u=n.endAngle,l=n.clockwise,v=Math.cos(s),c=Math.sin(s);r.moveTo(v*o+a,c*o+i),r.arc(a,i,o,s,u,!l)},t})(ie);zn.prototype.type="arc";var Ru=(function(){function e(t){this.colorStops=t||[]}return e.prototype.addColorStop=function(t,r){this.colorStops.push({offset:t,color:r})},e})(),xv=(function(e){q(t,e);function t(r,n,a,i,o,s){var u=e.call(this,o)||this;return u.x=r??0,u.y=n??0,u.x2=a??1,u.y2=i??0,u.type="linear",u.global=s||!1,u}return t})(Ru),Iv=(function(e){q(t,e);function t(r,n,a,i,o){var s=e.call(this,i)||this;return s.x=r??.5,s.y=n??.5,s.r=a??.5,s.type="radial",s.global=o||!1,s}return t})(Ru),Jn=Math.min,kv=Math.max,Or=Math.abs,gt=[0,0],yt=[0,0],le=Pc(),Nr=le.minTv,Br=le.maxTv,Av=(function(){function e(t,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new Oe;for(var n=0;n<2;n++)this._axes[n]=new Oe;t&&this.fromBoundingRect(t,r)}return e.prototype.fromBoundingRect=function(t,r){var n=this._corners,a=this._axes,i=t.x,o=t.y,s=i+t.width,u=o+t.height;if(n[0].set(i,o),n[1].set(s,o),n[2].set(s,u),n[3].set(i,u),r)for(var l=0;l<4;l++)n[l].transform(r);Oe.sub(a[0],n[1],n[0]),Oe.sub(a[1],n[3],n[0]),a[0].normalize(),a[1].normalize();for(var l=0;l<2;l++)this._origin[l]=a[l].dot(n[0])},e.prototype.intersect=function(t,r,n){var a=!0,i=!r;return r&&Oe.set(r,0,0),le.reset(n,!i),!this._intersectCheckOneSide(this,t,i,1)&&(a=!1,i)||!this._intersectCheckOneSide(t,this,i,-1)&&(a=!1,i)||!i&&!le.negativeSize&&Oe.copy(r,a?le.useDir?le.dirMinTv:Nr:Br),a},e.prototype._intersectCheckOneSide=function(t,r,n,a){for(var i=!0,o=0;o<2;o++){var s=t._axes[o];if(t._getProjMinMaxOnAxis(o,t._corners,gt),t._getProjMinMaxOnAxis(o,r._corners,yt),le.negativeSize||gt[1]<yt[0]||gt[0]>yt[1]){if(i=!1,le.negativeSize||n)return i;var u=Or(yt[0]-gt[1]),l=Or(gt[0]-yt[1]);Jn(u,l)>Br.len()&&(u<l?Oe.scale(Br,s,-u*a):Oe.scale(Br,s,l*a))}else if(!n){var u=Or(yt[0]-gt[1]),l=Or(gt[0]-yt[1]);(le.useDir||Jn(u,l)<Nr.len())&&((u<l||!le.bidirectional)&&(Oe.scale(Nr,s,u*a),le.useDir&&le.calcDirMTV()),(u>=l||!le.bidirectional)&&(Oe.scale(Nr,s,-l*a),le.useDir&&le.calcDirMTV()))}}return i},e.prototype._getProjMinMaxOnAxis=function(t,r,n){for(var a=this._axes[t],i=this._origin,o=r[0].dot(a)+i[t],s=o,u=o,l=1;l<r.length;l++){var v=r[l].dot(a)+i[t];s=Jn(v,s),u=kv(v,u)}n[0]=s+le.touchThreshold,n[1]=u-le.touchThreshold,le.negativeSize=n[1]<n[0]},e})(),Ev=[],Rv=(function(e){q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.notClear=!0,r.incremental=!0,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return t.prototype.traverse=function(r,n){r.call(n,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(r,n){n?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},t.prototype.addDisplayables=function(r,n){n=n||!1;for(var a=0;a<r.length;a++)this.addDisplayable(r[a],n)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(r){for(var n=this._cursor;n<this._displayables.length;n++)r&&r(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)r&&r(this._temporaryDisplayables[n])},t.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++){var n=this._displayables[r];n.parent=this,n.update(),n.parent=null}for(var r=0;r<this._temporaryDisplayables.length;r++){var n=this._temporaryDisplayables[r];n.parent=this,n.update(),n.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new rt(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var a=this._displayables[n],i=a.getBoundingRect().clone();a.needLocalTransform()&&i.applyTransform(a.getLocalTransform(Ev)),r.union(i)}this._rect=r}return this._rect},t.prototype.contain=function(r,n){var a=this.transformCoordToLocal(r,n),i=this.getBoundingRect();if(i.contain(a[0],a[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(r,n))return!0}return!1},t})(Lc),Pv=ye();function Lv(e,t,r,n,a){var i;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();i=o&&o.animation}var s=t&&t.isAnimationEnabled(),u=e==="update";if(s){var l=void 0,v=void 0,c=void 0;n?(l=se(n.duration,200),v=se(n.easing,"cubicOut"),c=0):(l=t.getShallow(u?"animationDurationUpdate":"animationDuration"),v=t.getShallow(u?"animationEasingUpdate":"animationEasing"),c=t.getShallow(u?"animationDelayUpdate":"animationDelay")),i&&(i.duration!=null&&(l=i.duration),i.easing!=null&&(v=i.easing),i.delay!=null&&(c=i.delay)),K(c)&&(c=c(r,a)),K(l)&&(l=l(r));var h={duration:l||0,delay:c,easing:v};return h}else return null}function _i(e,t,r,n,a,i,o){var s=!1,u;K(a)?(o=i,i=a,a=null):z(a)&&(i=a.cb,o=a.during,s=a.isFrom,u=a.removeOpt,a=a.dataIndex);var l=e==="leave";l||t.stopAnimation("leave");var v=Lv(e,n,a,l?u||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(t,a):null);if(v&&v.duration>0){var c=v.duration,h=v.delay,f=v.easing,d={duration:c,delay:h||0,easing:f,done:i,force:!!i||!!o,setToFinal:!l,scope:e,during:o};s?t.animateFrom(r,d):t.animateTo(r,d)}else t.stopAnimation(),!s&&t.attr(r),o&&o(1),i&&i()}function Si(e,t,r,n,a,i){_i("update",e,t,r,n,a,i)}function Pu(e,t,r,n,a,i){_i("enter",e,t,r,n,a,i)}function dr(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++){var r=e.animators[t];if(r.scope==="leave")return!0}return!1}function Lu(e,t,r,n,a,i){dr(e)||_i("leave",e,t,r,n,a,i)}function Ro(e,t,r,n){e.removeTextContent(),e.removeTextGuideLine(),Lu(e,{style:{opacity:0}},t,r,n)}function Ov(e,t,r){function n(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(a){a.isGroup||Ro(a,t,r,n)}):Ro(e,t,r,n)}function rm(e){Pv(e).oldStyle=e.style}var Oa={},Nv=["x","y"],Bv=["width","height"];function Fv(e){return ie.extend(e)}var Vv=cv;function zv(e,t){return Vv(e,t)}function Ge(e,t){Oa[e]=t}function Gv(e){if(Oa.hasOwnProperty(e))return Oa[e]}function bi(e,t,r,n){var a=lv(e,t);return r&&(n==="center"&&(r=Nu(r,a.getBoundingRect())),Bu(a,r)),a}function Ou(e,t,r){var n=new Dn({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(a){if(r==="center"){var i={width:a.width,height:a.height};n.setStyle(Nu(t,i))}}});return n}function Nu(e,t){var r=t.width/t.height,n=e.height*r,a;n<=e.width?a=e.height:(n=e.width,a=n/r);var i=e.x+e.width/2,o=e.y+e.height/2;return{x:i-n/2,y:o-a/2,width:n,height:a}}var Uv=fv;function Bu(e,t){if(e.applyTransform){var r=e.getBoundingRect(),n=r.calculateTransform(t);e.applyTransform(n)}}function Hv(e,t){return Js(e,e,{lineWidth:t}),e}function Wv(e,t){return Vc(e,e,t),e}var Yv=Oc;function qv(e,t){for(var r=js([]);e&&e!==t;)eu(r,e.getLocalTransform(),r),e=e.parent;return r}function Fu(e,t,r){return t&&!Cn(t)&&(t=Nc.getLocalTransform(t)),r&&(t=tu([],t)),Wt([],e,t)}function $v(e,t,r){var n=t[4]===0||t[5]===0||t[0]===0?1:Ye(2*t[4]/t[0]),a=t[4]===0||t[5]===0||t[2]===0?1:Ye(2*t[4]/t[2]),i=[e==="left"?-n:e==="right"?n:0,e==="top"?-a:e==="bottom"?a:0];return i=Fu(i,t,r),Ye(i[0])>Ye(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function Po(e){return!e.isGroup}function Xv(e){return e.shape!=null}function Kv(e,t,r){if(!e||!t)return;function n(o){var s={};return o.traverse(function(u){Po(u)&&u.anid&&(s[u.anid]=u)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return Xv(o)&&(s.shape=Z(o.shape)),s}var i=n(e);t.traverse(function(o){if(Po(o)&&o.anid){var s=i[o.anid];if(s){var u=a(o);o.attr(a(s)),Si(o,u,r,Te(o).dataIndex)}}})}function Zv(e,t){return N(e,function(r){var n=r[0];n=Fe(n,t.x),n=Sr(n,t.x+t.width);var a=r[1];return a=Fe(a,t.y),a=Sr(a,t.y+t.height),[n,a]})}function Qv(e,t){var r=Fe(e.x,t.x),n=Sr(e.x+e.width,t.x+t.width),a=Fe(e.y,t.y),i=Sr(e.y+e.height,t.y+t.height);if(n>=r&&i>=a)return{x:r,y:a,width:n-r,height:i-a}}function Jv(e,t,r){var n=P({rectHover:!0},t),a=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(a.image=e.slice(8),Ke(a,r),new Dn(n)):bi(e.replace("path://",""),n,r,"center")}function jv(e,t,r,n,a){for(var i=0,o=a[a.length-1];i<a.length;i++){var s=a[i];if(Vu(e,t,r,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function Vu(e,t,r,n,a,i,o,s){var u=r-e,l=n-t,v=o-a,c=s-i,h=jn(v,c,u,l);if(eh(h))return!1;var f=e-a,d=t-i,g=jn(f,d,u,l)/h;if(g<0||g>1)return!1;var p=jn(f,d,v,c)/h;return!(p<0||p>1)}function jn(e,t,r,n){return e*n-r*t}function eh(e){return e<=1e-6&&e>=-1e-6}function th(e,t,r,n,a){return t==null||(ae(t)?X[0]=X[1]=X[2]=X[3]=t:(X[0]=t[0],X[1]=t[1],X[2]=t[2],X[3]=t[3]),n&&(X[0]=Fe(0,X[0]),X[1]=Fe(0,X[1]),X[2]=Fe(0,X[2]),X[3]=Fe(0,X[3])),r&&(X[0]=-X[0],X[1]=-X[1],X[2]=-X[2],X[3]=-X[3]),Lo(e,X,"x","width",3,1,a&&a[0]||0),Lo(e,X,"y","height",0,2,a&&a[1]||0)),e}var X=[0,0,0,0];function Lo(e,t,r,n,a,i,o){var s=t[i]+t[a],u=e[n];e[n]+=s,o=Fe(0,Sr(o,u)),e[n]<o?(e[n]=o,e[r]+=t[a]>=0?-t[a]:t[i]>=0?u+t[i]:Ye(s)>1e-8?(u-o)*t[a]/s:0):e[r]-=t[a]}function rh(e){var t=e.itemTooltipOption,r=e.componentModel,n=e.itemName,a=F(t)?{formatter:t}:t,i=r.mainType,o=r.componentIndex,s={componentType:i,name:n,$vars:["name"]};s[i+"Index"]=o;var u=e.formatterParamsExtra;u&&S(Qe(u),function(v){Ve(s,v)||(s[v]=u[v],s.$vars.push(v))});var l=Te(e.el);l.componentMainType=i,l.componentIndex=o,l.tooltipConfig={name:n,option:Ke({content:n,encodeHTMLContent:!0,formatterParams:s},a)}}function Na(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function zu(e,t){if(e)if(E(e))for(var r=0;r<e.length;r++)Na(e[r],t);else Na(e,t)}function nh(e){return!e||Ye(e[1])<Fr&&Ye(e[2])<Fr||Ye(e[0])<Fr&&Ye(e[3])<Fr}var Fr=1e-5;function ah(e,t){return e?rt.copy(e,t):t.clone()}function ih(e,t){return t?Bc(e||Fc(),t):void 0}function Gu(e){return{z:e.get("z")||0,zlevel:e.get("zlevel")||0}}function oh(e){var t=-1/0,r=1/0;Na(e,function(i){n(i),n(i.getTextContent()),n(i.getTextGuideLine())});function n(i){if(!(!i||i.isGroup)){var o=i.currentStates;if(o.length)for(var s=0;s<o.length;s++)a(i.states[o[s]]);a(i)}}function a(i){if(i){var o=i.z2;o>t&&(t=o),o<r&&(r=o)}}return r>t&&(r=t=0),{min:r,max:t}}function Uu(e,t,r){Hu(e,t,r,-1/0)}function Hu(e,t,r,n){if(e.ignoreModelZ)return n;var a=e.getTextContent(),i=e.getTextGuideLine(),o=e.isGroup;if(o)for(var s=e.childrenRef(),u=0;u<s.length;u++)n=Fe(Hu(s[u],t,r,n),n);else e.z=t,e.zlevel=r,n=Fe(e.z2||0,n);if(a&&(a.z=t,a.zlevel=r,isFinite(n)&&(a.z2=n+2)),i){var l=e.textGuideLineConfig;i.z=t,i.zlevel=r,isFinite(n)&&(i.z2=n+(l&&l.showAbove?1:-1))}return n}Ge("circle",Fn);Ge("ellipse",hi);Ge("sector",di);Ge("ring",pi);Ge("polygon",gi);Ge("polyline",yi);Ge("rect",lt);Ge("line",Vn);Ge("bezierCurve",mi);Ge("arc",zn);const nm=Object.freeze(Object.defineProperty({__proto__:null,Arc:zn,BezierCurve:mi,BoundingRect:rt,Circle:Fn,CompoundPath:zc,Ellipse:hi,Group:xn,Image:Dn,IncrementalDisplayable:Rv,Line:Vn,LinearGradient:xv,OrientedBoundingRect:Av,Path:ie,Point:Oe,Polygon:gi,Polyline:yi,RadialGradient:Iv,Rect:lt,Ring:pi,Sector:di,Text:_r,WH:Bv,XY:Nv,applyTransform:Fu,calcZ2Range:oh,clipPointsByRect:Zv,clipRectByRect:Qv,createIcon:Jv,ensureCopyRect:ah,ensureCopyTransform:ih,expandOrShrinkRect:th,extendPath:zv,extendShape:Fv,getShapeClass:Gv,getTransform:qv,groupTransition:Kv,initProps:Pu,isBoundingRectAxisAligned:nh,isElementRemoved:dr,lineLineIntersect:Vu,linePolygonIntersect:jv,makeImage:Ou,makePath:bi,mergePath:Uv,registerShape:Ge,removeElement:Lu,removeElementWithFadeOut:Ov,resizePath:Bu,retrieveZInfo:Gu,setTooltipConfig:rh,subPixelOptimize:Yv,subPixelOptimizeLine:Hv,subPixelOptimizeRect:Wv,transformDirection:$v,traverseElements:zu,traverseUpdateZ:Uu,updateProps:Si},Symbol.toStringTag,{value:"Module"}));var Gn={};function Wu(e,t){for(var r=0;r<vt.length;r++){var n=vt[r],a=t[n],i=e.ensureState(n);i.style=i.style||{},i.style.text=a}var o=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(o,!0)}function Ba(e,t,r){var n=e.labelFetcher,a=e.labelDataIndex,i=e.labelDimIndex,o=t.normal,s;n&&(s=n.getFormattedLabel(a,"normal",null,i,o&&o.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=K(e.defaultText)?e.defaultText(a,e,r):e.defaultText);for(var u={normal:s},l=0;l<vt.length;l++){var v=vt[l],c=t[v];u[v]=se(n?n.getFormattedLabel(a,v,null,i,c&&c.get("formatter")):null,s)}return u}function am(e,t,r,n){r=r||Gn;for(var a=e instanceof _r,i=!1,o=0;o<_o.length;o++){var s=t[_o[o]];if(s&&s.getShallow("show")){i=!0;break}}var u=a?e:e.getTextContent();if(i){a||(u||(u=new _r,e.setTextContent(u)),e.stateProxy&&(u.stateProxy=e.stateProxy));var l=Ba(r,t),v=t.normal,c=!!v.getShallow("show"),h=Oo(v,n&&n.normal,r,!1,!a);h.text=l.normal,a||e.setTextConfig(No(v,r,!1));for(var o=0;o<vt.length;o++){var f=vt[o],s=t[f];if(s){var d=u.ensureState(f),g=!!se(s.getShallow("show"),c);if(g!==c&&(d.ignore=!g),d.style=Oo(s,n&&n[f],r,!0,!a),d.style.text=l[f],!a){var p=e.ensureState(f);p.textConfig=No(s,r,!0)}}}u.silent=!!v.getShallow("silent"),u.style.x!=null&&(h.x=u.style.x),u.style.y!=null&&(h.y=u.style.y),u.ignore=!c,u.useStyle(h),u.dirty(),r.enableTextSetter&&(wi(u).setLabelText=function(y){var m=Ba(r,t,y);Wu(u,m)})}else u&&(u.ignore=!0);e.dirty()}function im(e,t){t=t||"label";for(var r={normal:e.getModel(t)},n=0;n<vt.length;n++){var a=vt[n];r[a]=e.getModel([a,t])}return r}function Oo(e,t,r,n,a){var i={};return sh(i,e,r,n,a),t&&P(i,t),i}function No(e,t,r){t=t||{};var n={},a,i=e.getShallow("rotate"),o=se(e.getShallow("distance"),r?null:5),s=e.getShallow("offset");return a=e.getShallow("position")||(r?null:"inside"),a==="outside"&&(a=t.defaultOutsidePosition||"top"),a!=null&&(n.position=a),s!=null&&(n.offset=s),i!=null&&(i*=Math.PI/180,n.rotation=i),o!=null&&(n.distance=o),n.outsideFill=e.get("color")==="inherit"?t.inheritColor||null:"auto",t.autoOverflowArea!=null&&(n.autoOverflowArea=t.autoOverflowArea),t.layoutRect!=null&&(n.layoutRect=t.layoutRect),n}function sh(e,t,r,n,a){r=r||Gn;var i=t.ecModel,o=i&&i.option.textStyle,s=uh(t),u;if(s){u={};var l="richInheritPlainLabel",v=se(t.get(l),i?i.get(l):void 0);for(var c in s)if(s.hasOwnProperty(c)){var h=t.getModel(["rich",c]);zo(u[c]={},h,o,t,v,r,n,a,!1,!0)}}u&&(e.rich=u);var f=t.get("overflow");f&&(e.overflow=f);var d=t.get("lineOverflow");d&&(e.lineOverflow=d);var g=e,p=t.get("minMargin");if(p!=null)p=ae(p)?p/2:0,g.margin=[p,p,p,p],g.__marginType=Go.minMargin;else{var y=t.get("textMargin");y!=null&&(g.margin=ru(y),g.__marginType=Go.textMargin)}zo(e,t,o,null,null,r,n,a,!0,!1)}function uh(e){for(var t;e&&e!==e.ecModel;){var r=(e.option||Gn).rich;if(r){t=t||{};for(var n=Qe(r),a=0;a<n.length;a++){var i=n[a];t[i]=1}}e=e.parentModel}return t}var Bo=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Fo=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],Vo=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function zo(e,t,r,n,a,i,o,s,u,l){r=!o&&r||Gn;var v=i&&i.inheritColor,c=t.getShallow("color"),h=t.getShallow("textBorderColor"),f=se(t.getShallow("opacity"),r.opacity);(c==="inherit"||c==="auto")&&(v?c=v:c=null),(h==="inherit"||h==="auto")&&(v?h=v:h=null),s||(c=c||r.color,h=h||r.textBorderColor),c!=null&&(e.fill=c),h!=null&&(e.stroke=h);var d=se(t.getShallow("textBorderWidth"),r.textBorderWidth);d!=null&&(e.lineWidth=d);var g=se(t.getShallow("textBorderType"),r.textBorderType);g!=null&&(e.lineDash=g);var p=se(t.getShallow("textBorderDashOffset"),r.textBorderDashOffset);p!=null&&(e.lineDashOffset=p),!o&&f==null&&!l&&(f=i&&i.defaultOpacity),f!=null&&(e.opacity=f),!o&&!s&&e.fill==null&&i.inheritColor&&(e.fill=i.inheritColor);for(var y=0;y<Bo.length;y++){var m=Bo[y],_=a!==!1&&n?Gc(t.getShallow(m),n.getShallow(m),r[m]):se(t.getShallow(m),r[m]);_!=null&&(e[m]=_)}for(var y=0;y<Fo.length;y++){var m=Fo[y],_=t.getShallow(m);_!=null&&(e[m]=_)}if(e.verticalAlign==null){var b=t.getShallow("baseline");b!=null&&(e.verticalAlign=b)}if(!u||!i.disableBox){for(var y=0;y<Vo.length;y++){var m=Vo[y],_=t.getShallow(m);_!=null&&(e[m]=_)}var M=t.getShallow("borderType");M!=null&&(e.borderDash=M),(e.backgroundColor==="auto"||e.backgroundColor==="inherit")&&v&&(e.backgroundColor=v),(e.borderColor==="auto"||e.borderColor==="inherit")&&v&&(e.borderColor=v)}}function lh(e,t){var r=t&&t.getModel("textStyle");return In([e.fontStyle||r&&r.getShallow("fontStyle")||"",e.fontWeight||r&&r.getShallow("fontWeight")||"",(e.fontSize||r&&r.getShallow("fontSize")||12)+"px",e.fontFamily||r&&r.getShallow("fontFamily")||"sans-serif"].join(" "))}var wi=ye();function om(e,t,r,n){if(e){var a=wi(e);a.prevValue=a.value,a.value=r;var i=t.normal;a.valueAnimation=i.get("valueAnimation"),a.valueAnimation&&(a.precision=i.get("precision"),a.defaultInterpolatedText=n,a.statesModels=t)}}function sm(e,t,r,n,a){var i=wi(e);if(!i.valueAnimation||i.prevValue===i.value)return;var o=i.defaultInterpolatedText,s=se(i.interpolatedValue,i.prevValue),u=i.value;function l(v){var c=Mf(r,i.precision,s,u,v);i.interpolatedValue=v===1?null:c;var h=Ba({labelDataIndex:t,labelFetcher:a,defaultText:o?o(c):c+""},i.statesModels,c);Wu(e,h)}e.percent=0,(i.prevValue==null?Pu:Si)(e,{percent:1},n,t,null,l)}var Go={minMargin:1,textMargin:2},ch=["textStyle","color"],ea=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],ta=new _r,fh=(function(){function e(){}return e.prototype.getTextColor=function(t){var r=this.ecModel;return this.getShallow("color")||(!t&&r?r.get(ch):null)},e.prototype.getFont=function(){return lh({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},e.prototype.getTextRect=function(t){for(var r={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<ea.length;n++)r[ea[n]]=this.getShallow(ea[n]);return ta.useStyle(r),ta.update(),ta.getBoundingRect()},e})(),Yu=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],vh=wr(Yu),hh=(function(){function e(){}return e.prototype.getLineStyle=function(t){return vh(this,t)},e})(),qu=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],dh=wr(qu),ph=(function(){function e(){}return e.prototype.getItemStyle=function(t,r){return dh(this,t,r)},e})(),pe=(function(){function e(t,r,n){this.parentModel=r,this.ecModel=n,this.option=t}return e.prototype.init=function(t,r,n){},e.prototype.mergeOption=function(t,r){fe(this.option,t,!0)},e.prototype.get=function(t,r){return t==null?this.option:this._doGet(this.parsePath(t),!r&&this.parentModel)},e.prototype.getShallow=function(t,r){var n=this.option,a=n==null?n:n[t];if(a==null&&!r){var i=this.parentModel;i&&(a=i.getShallow(t))}return a},e.prototype.getModel=function(t,r){var n=t!=null,a=n?this.parsePath(t):null,i=n?this._doGet(a):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(a)),new e(i,r,this.ecModel)},e.prototype.isEmpty=function(){return this.option==null},e.prototype.restoreData=function(){},e.prototype.clone=function(){var t=this.constructor;return new t(Z(this.option))},e.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},e.prototype.resolveParentPath=function(t){return t},e.prototype.isAnimationEnabled=function(){if(!ut.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(t,r){var n=this.option;if(!t)return n;for(var a=0;a<t.length&&!(t[a]&&(n=n&&typeof n=="object"?n[t[a]]:null,n==null));a++);return n==null&&r&&(n=r._doGet(this.resolveParentPath(t),r.parentModel)),n},e})();si(pe);kf(pe);At(pe,hh);At(pe,ph);At(pe,Lf);At(pe,fh);var gh=Math.round(Math.random()*10);function Un(e){return[e||"",gh++].join("_")}function yh(e){var t={};e.registerSubTypeDefaulter=function(r,n){var a=qe(r);t[a.main]=n},e.determineSubType=function(r,n){var a=n.type;if(!a){var i=qe(r).main;e.hasSubTypes(r)&&t[i]&&(a=t[i](n))}return a}}function mh(e,t){e.topologicalTravel=function(i,o,s,u){if(!i.length)return;var l=r(o),v=l.graph,c=l.noEntryList,h={};for(S(i,function(m){h[m]=!0});c.length;){var f=c.pop(),d=v[f],g=!!h[f];g&&(s.call(u,f,d.originalDeps.slice()),delete h[f]),S(d.successor,g?y:p)}S(h,function(){var m="";throw new Error(m)});function p(m){v[m].entryCount--,v[m].entryCount===0&&c.push(m)}function y(m){h[m]=!0,p(m)}};function r(i){var o={},s=[];return S(i,function(u){var l=n(o,u),v=l.originalDeps=t(u),c=a(v,i);l.entryCount=c.length,l.entryCount===0&&s.push(u),S(c,function(h){Ce(l.predecessor,h)<0&&l.predecessor.push(h);var f=n(o,h);Ce(f.successor,h)<0&&f.successor.push(u)})}),{graph:o,noEntryList:s}}function n(i,o){return i[o]||(i[o]={predecessor:[],successor:[]}),i[o]}function a(i,o){var s=[];return S(i,function(u){Ce(o,u)>=0&&s.push(u)}),s}}function um(e,t){return fe(fe({},e,!0),t,!0)}const _h={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:". "}}}},Sh={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 vn="ZH",Mi="EN",Yt=Mi,rn={},Ti={},$u=ut.domSupported?(function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Yt).toUpperCase();return e.indexOf(vn)>-1?vn:Yt})():Yt;function Xu(e,t){e=e.toUpperCase(),Ti[e]=new pe(t),rn[e]=t}function bh(e){if(F(e)){var t=rn[e.toUpperCase()]||{};return e===vn||e===Mi?Z(t):fe(Z(t),Z(rn[Yt]),!1)}else return fe(Z(e),Z(rn[Yt]),!1)}function wh(e){return Ti[e]}function Mh(){return Ti[Yt]}Xu(Mi,_h);Xu(vn,Sh);var Th=null;function hn(){return Th}var Ci=1e3,Di=Ci*60,pr=Di*60,Ae=pr*24,Uo=Ae*365,Ch={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})/},nn={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},Dh="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",Vr="{yyyy}-{MM}-{dd}",Ho={year:"{yyyy}",month:"{yyyy}-{MM}",day:Vr,hour:Vr+" "+nn.hour,minute:Vr+" "+nn.minute,second:Vr+" "+nn.second,millisecond:Dh},Dt=["year","month","day","hour","minute","second","millisecond"],xh=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Ih(e){return!F(e)&&!K(e)?kh(e):e}function kh(e){e=e||{};var t={},r=!0;return S(Dt,function(n){r&&(r=e[n]==null)}),S(Dt,function(n,a){var i=e[n];t[n]={};for(var o=null,s=a;s>=0;s--){var u=Dt[s],l=z(i)&&!E(i)?i[u]:i,v=void 0;E(l)?(v=l.slice(),o=v[0]||""):F(l)?(o=l,v=[o]):(o==null?o=nn[n]:Ch[u].test(o)||(o=t[u][u][0]+" "+o),v=[o],r&&(v[1]="{primary|"+o+"}")),t[n][u]=v}}),t}function me(e,t){return e+="","0000".substr(0,t-e.length)+e}function gr(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function Ah(e){return e===gr(e)}function Eh(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function xi(e,t,r,n){var a=Et(e),i=a[Ku(r)](),o=a[Ii(r)]()+1,s=Math.floor((o-1)/3)+1,u=a[ki(r)](),l=a["get"+(r?"UTC":"")+"Day"](),v=a[Ai(r)](),c=(v-1)%12+1,h=a[Ei(r)](),f=a[Ri(r)](),d=a[Pi(r)](),g=v>=12?"pm":"am",p=g.toUpperCase(),y=n instanceof pe?n:wh(n||$u)||Mh(),m=y.getModel("time"),_=m.get("month"),b=m.get("monthAbbr"),M=m.get("dayOfWeek"),w=m.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,g+"").replace(/{A}/g,p+"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,me(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,b[o-1]).replace(/{MM}/g,me(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,me(u,2)).replace(/{d}/g,u+"").replace(/{eeee}/g,M[l]).replace(/{ee}/g,w[l]).replace(/{e}/g,l+"").replace(/{HH}/g,me(v,2)).replace(/{H}/g,v+"").replace(/{hh}/g,me(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,me(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,me(f,2)).replace(/{s}/g,f+"").replace(/{SSS}/g,me(d,3)).replace(/{S}/g,d+"")}function Rh(e,t,r,n,a){var i=null;if(F(r))i=r;else if(K(r)){var o={time:e.time,level:e.time.level},s=hn();s&&s.makeAxisLabelFormatterParamBreak(o,e.break),i=r(e.value,t,o)}else{var u=e.time;if(u){var l=r[u.lowerTimeUnit][u.upperTimeUnit];i=l[Math.min(u.level,l.length-1)]||""}else{var v=dn(e.value,a);i=r[v][v][0]}}return xi(new Date(e.value),i,a,n)}function dn(e,t){var r=Et(e),n=r[Ii(t)]()+1,a=r[ki(t)](),i=r[Ai(t)](),o=r[Ei(t)](),s=r[Ri(t)](),u=r[Pi(t)](),l=u===0,v=l&&s===0,c=v&&o===0,h=c&&i===0,f=h&&a===1,d=f&&n===1;return d?"year":f?"month":h?"day":c?"hour":v?"minute":l?"second":"millisecond"}function Fa(e,t,r){switch(t){case"year":e[Zu(r)](0);case"month":e[Qu(r)](1);case"day":e[Ju(r)](0);case"hour":e[ju(r)](0);case"minute":e[el(r)](0);case"second":e[tl(r)](0)}return e}function Ku(e){return e?"getUTCFullYear":"getFullYear"}function Ii(e){return e?"getUTCMonth":"getMonth"}function ki(e){return e?"getUTCDate":"getDate"}function Ai(e){return e?"getUTCHours":"getHours"}function Ei(e){return e?"getUTCMinutes":"getMinutes"}function Ri(e){return e?"getUTCSeconds":"getSeconds"}function Pi(e){return e?"getUTCMilliseconds":"getMilliseconds"}function Ph(e){return e?"setUTCFullYear":"setFullYear"}function Zu(e){return e?"setUTCMonth":"setMonth"}function Qu(e){return e?"setUTCDate":"setDate"}function Ju(e){return e?"setUTCHours":"setHours"}function ju(e){return e?"setUTCMinutes":"setMinutes"}function el(e){return e?"setUTCSeconds":"setSeconds"}function tl(e){return e?"setUTCMilliseconds":"setMilliseconds"}function rl(e){if(!sf(e))return F(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function lm(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(r,n){return n.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var Lh=ru;function Va(e,t,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(v){return v&&In(v)?v:"-"}function i(v){return!!(v!=null&&!isNaN(v)&&isFinite(v))}var o=t==="time",s=e instanceof Date;if(o||s){var u=o?Et(e):e;if(isNaN(+u)){if(s)return"-"}else return xi(u,n,r)}if(t==="ordinal")return Ma(e)?a(e):ae(e)&&i(e)?e+"":"-";var l=ft(e);return i(l)?rl(l):Ma(e)?a(e):typeof e=="boolean"?e+"":"-"}var Wo=["a","b","c","d","e","f","g"],ra=function(e,t){return"{"+e+(t??"")+"}"};function Oh(e,t,r){E(t)||(t=[t]);var n=t.length;if(!n)return"";for(var a=t[0].$vars||[],i=0;i<a.length;i++){var o=Wo[i];e=e.replace(ra(o),ra(o,0))}for(var s=0;s<n;s++)for(var u=0;u<a.length;u++){var l=t[s][a[u]];e=e.replace(ra(Wo[u],s),r?De(l):l)}return e}function cm(e,t,r){return S(t,function(n,a){e=e.replace("{"+a+"}",n)}),e}function Nh(e,t){var r=F(e)?{color:e,extraCssText:t}:e||{},n=r.color,a=r.type;t=r.extraCssText;var i=r.renderMode||"html";if(!n)return"";if(i==="html")return a==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+De(n)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+De(n)+";"+(t||"")+'"></span>';var o=r.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function fm(e,t,r){(e==="week"||e==="month"||e==="quarter"||e==="half-year"||e==="year")&&(e=`MM-dd
|
|
2
|
+
yyyy`);var n=Et(t),a=r?"getUTC":"get",i=n[a+"FullYear"](),o=n[a+"Month"]()+1,s=n[a+"Date"](),u=n[a+"Hours"](),l=n[a+"Minutes"](),v=n[a+"Seconds"](),c=n[a+"Milliseconds"]();return e=e.replace("MM",me(o,2)).replace("M",o).replace("yyyy",i).replace("yy",me(i%100+"",2)).replace("dd",me(s,2)).replace("d",s).replace("hh",me(u,2)).replace("h",u).replace("mm",me(l,2)).replace("m",l).replace("ss",me(v,2)).replace("s",v).replace("SSS",me(c,3)),e}function vm(e){return e&&e.charAt(0).toUpperCase()+e.substr(1)}function Bh(e,t){return t=t||"transparent",F(e)?e:z(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function hm(e,t){if(t==="_blank"||t==="blank"){var r=window.open();r.opener=null,r.location.href=e}else window.open(e,t)}var an={},na={},Li=(function(){function e(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return e.prototype.create=function(t,r){this._nonSeriesBoxMasterList=n(an),this._normalMasterList=n(na);function n(a,i){var o=[];return S(a,function(s,u){var l=s.create(t,r);o=o.concat(l||[])}),o}},e.prototype.update=function(t,r){S(this._normalMasterList,function(n){n.update&&n.update(t,r)})},e.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},e.register=function(t,r){if(t==="matrix"||t==="calendar"){an[t]=r;return}na[t]=r},e.get=function(t){return na[t]||an[t]},e})();function Fh(e){return!!an[e]}var za={coord:1,coord2:2};function dm(e){nl.set(e.fullType,{getCoord2:void 0}).getCoord2=e.getCoord2}var nl=U();function Vh(e){var t=e.getShallow("coord",!0),r=za.coord;if(t==null){var n=nl.get(e.type);n&&n.getCoord2&&(r=za.coord2,t=n.getCoord2(e))}return{coord:t,from:r}}var et={none:0,dataCoordSys:1,boxCoordSys:2};function zh(e,t){var r=e.getShallow("coordinateSystem"),n=e.getShallow("coordinateSystemUsage",!0),a=et.none;if(r){var i=e.mainType==="series";n==null&&(n=i?"data":"box"),n==="data"?(a=et.dataCoordSys,i||(a=et.none)):n==="box"&&(a=et.boxCoordSys,!i&&!Fh(r)&&(a=et.none))}return{coordSysType:r,kind:a}}function pm(e){var t=e.targetModel,r=e.coordSysType,n=e.coordSysProvider,a=e.isDefaultDataCoordSys;e.allowNotFound;var i=zh(t),o=i.kind,s=i.coordSysType;if(a&&o!==et.dataCoordSys&&(o=et.dataCoordSys,s=r),o===et.none||s!==r)return!1;var u=n(r,t);return u?(o===et.dataCoordSys?t.coordinateSystem=u:t.boxCoordinateSystem=u,!0):!1}var gm=function(e,t){var r=t.getReferringComponents(e,Rn).models[0];return r&&r.coordinateSystem},on=S,Gh=["left","right","top","bottom","width","height"],Tt=[["width","left","right"],["height","top","bottom"]];function Oi(e,t,r,n,a){var i=0,o=0;n==null&&(n=1/0),a==null&&(a=1/0);var s=0;t.eachChild(function(u,l){var v=u.getBoundingRect(),c=t.childAt(l+1),h=c&&c.getBoundingRect(),f,d;if(e==="horizontal"){var g=v.width+(h?-h.x+v.x:0);f=i+g,f>n||u.newline?(i=0,f=g,o+=s+r,s=v.height):s=Math.max(s,v.height)}else{var p=v.height+(h?-h.y+v.y:0);d=o+p,d>a||u.newline?(i+=s+r,o=0,d=p,s=v.width):s=Math.max(s,v.width)}u.newline||(u.x=i,u.y=o,u.markRedraw(),e==="horizontal"?i=f+r:o=d+r)})}var ym=Oi;ii(Oi,"vertical");ii(Oi,"horizontal");function Uh(e,t){return{left:e.getShallow("left",t),top:e.getShallow("top",t),right:e.getShallow("right",t),bottom:e.getShallow("bottom",t),width:e.getShallow("width",t),height:e.getShallow("height",t)}}function Hh(e,t){var r=Wh(e,t,{enableLayoutOnlyByCenter:!0}),n=e.getBoxLayoutParams(),a,i;if(r.type===cr.point)i=r.refPoint,a=pn(n,{width:t.getWidth(),height:t.getHeight()});else{var o=e.get("center"),s=E(o)?o:[o,o];a=pn(n,r.refContainer),i=r.boxCoordFrom===za.coord2?r.refPoint:[oe(s[0],a.width)+a.x,oe(s[1],a.height)+a.y]}return{viewRect:a,center:i}}function mm(e,t){var r=Hh(e,t),n=r.viewRect,a=r.center,i=e.get("radius");E(i)||(i=[0,i]);var o=oe(n.width,t.getWidth()),s=oe(n.height,t.getHeight()),u=Math.min(o,s),l=oe(i[0],u/2),v=oe(i[1],u/2);return{cx:a[0],cy:a[1],r0:l,r:v,viewRect:n}}function pn(e,t,r){r=Lh(r||0);var n=t.width,a=t.height,i=oe(e.left,n),o=oe(e.top,a),s=oe(e.right,n),u=oe(e.bottom,a),l=oe(e.width,n),v=oe(e.height,a),c=r[2]+r[0],h=r[1]+r[3],f=e.aspect;switch(isNaN(l)&&(l=n-s-h-i),isNaN(v)&&(v=a-u-c-o),f!=null&&(isNaN(l)&&isNaN(v)&&(f>n/a?l=n*.8:v=a*.8),isNaN(l)&&(l=f*v),isNaN(v)&&(v=l/f)),isNaN(i)&&(i=n-s-l-h),isNaN(o)&&(o=a-u-v-c),e.left||e.right){case"center":i=n/2-l/2-r[3];break;case"right":i=n-l-h;break}switch(e.top||e.bottom){case"middle":case"center":o=a/2-v/2-r[0];break;case"bottom":o=a-v-c;break}i=i||0,o=o||0,isNaN(l)&&(l=n-h-i-(s||0)),isNaN(v)&&(v=a-c-o-(u||0));var d=new rt((t.x||0)+i+r[3],(t.y||0)+o+r[0],l,v);return d.margin=r,d}function _m(e,t,r){var n=e.getShallow("preserveAspect",!0);if(!n)return t;var a=t.width/t.height;if(Math.abs(Math.atan(r)-Math.atan(a))<1e-9)return t;var i=e.getShallow("preserveAspectAlign",!0),o=e.getShallow("preserveAspectVerticalAlign",!0),s={width:t.width,height:t.height},u=n==="cover";return a>r&&!u||a<r&&u?(s.width=t.height*r,i==="left"?s.left=0:i==="right"?s.right=0:s.left="center"):(s.height=t.width/r,o==="top"?s.top=0:o==="bottom"?s.bottom=0:s.top="middle"),pn(s,t)}var cr={rect:1,point:2};function Wh(e,t,r){var n,a,i,o=e.boxCoordinateSystem,s;if(o){var u=Vh(e),l=u.coord,v=u.from;if(o.dataToLayout){i=cr.rect,s=v;var c=o.dataToLayout(l);n=c.contentRect||c.rect}else r&&r.enableLayoutOnlyByCenter&&o.dataToPoint&&(i=cr.point,s=v,a=o.dataToPoint(l))}return i==null&&(i=cr.rect),i===cr.rect&&(n||(n={x:0,y:0,width:t.getWidth(),height:t.getHeight()}),a=[n.x+n.width/2,n.y+n.height/2]),{type:i,refContainer:n,refPoint:a,boxCoordFrom:s}}function Sm(e,t,r,n,a,i){var o=!a||!a.hv||a.hv[0],s=!a||!a.hv||a.hv[1],u=a&&a.boundingMode||"all";if(i=i||e,i.x=e.x,i.y=e.y,!o&&!s)return!1;var l;if(u==="raw")l=e.type==="group"?new rt(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(l=e.getBoundingRect(),e.needLocalTransform()){var v=e.getLocalTransform();l=l.clone(),l.applyTransform(v)}var c=pn(Ke({width:l.width,height:l.height},t),r,n),h=o?c.x-l.x:0,f=s?c.y-l.y:0;return u==="raw"?(i.x=h,i.y=f):(i.x+=h,i.y+=f),i===e&&e.markRedraw(),!0}function bm(e,t){return e[Tt[t][0]]!=null||e[Tt[t][1]]!=null&&e[Tt[t][2]]!=null}function gn(e){var t=e.layoutMode||e.constructor.layoutMode;return z(t)?t:t?{type:t}:null}function yn(e,t,r){var n=r&&r.ignoreSize;!E(n)&&(n=[n,n]);var a=o(Tt[0],0),i=o(Tt[1],1);u(Tt[0],e,a),u(Tt[1],e,i);function o(l,v){var c={},h=0,f={},d=0,g=2;if(on(l,function(m){f[m]=e[m]}),on(l,function(m){Ve(t,m)&&(c[m]=f[m]=t[m]),s(c,m)&&h++,s(f,m)&&d++}),n[v])return s(t,l[1])?f[l[2]]=null:s(t,l[2])&&(f[l[1]]=null),f;if(d===g||!h)return f;if(h>=g)return c;for(var p=0;p<l.length;p++){var y=l[p];if(!Ve(c,y)&&Ve(e,y)){c[y]=e[y];break}}return c}function s(l,v){return l[v]!=null&&l[v]!=="auto"}function u(l,v,c){on(l,function(h){v[h]=c[h]})}}function al(e){return Yh({},e)}function Yh(e,t){return t&&e&&on(Gh,function(r){Ve(t,r)&&(e[r]=t[r])}),e}var qh=ye(),Q=(function(e){q(t,e);function t(r,n,a){var i=e.call(this,r,n,a)||this;return i.uid=Un("ec_cpt_model"),i}return t.prototype.init=function(r,n,a){this.mergeDefaultAndTheme(r,a)},t.prototype.mergeDefaultAndTheme=function(r,n){var a=gn(this),i=a?al(r):{},o=n.getTheme();fe(r,o.get(this.mainType)),fe(r,this.getDefaultOption()),a&&yn(r,i,a)},t.prototype.mergeOption=function(r,n){fe(this.option,r,!0);var a=gn(this);a&&yn(this.option,r,a)},t.prototype.optionUpdated=function(r,n){},t.prototype.getDefaultOption=function(){var r=this.constructor;if(!Df(r))return r.defaultOption;var n=qh(this);if(!n.defaultOption){for(var a=[],i=r;i;){var o=i.prototype.defaultOption;o&&a.push(o),i=i.superClass}for(var s={},u=a.length-1;u>=0;u--)s=fe(s,a[u],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(r,n){var a=r+"Index",i=r+"Id";return Pn(this.ecModel,r,{index:this.get(a,!0),id:this.get(i,!0)},n)},t.prototype.getBoxLayoutParams=function(){return Uh(this,!1)},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(r){this.option.zlevel=r},t.protoInitialize=(function(){var r=t.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0})(),t})(pe);gu(Q,pe);Ln(Q);yh(Q);mh(Q,$h);function $h(e){var t=[];return S(Q.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=N(t,function(r){return qe(r).main}),e!=="dataset"&&Ce(t,"dataset")<=0&&t.unshift("dataset"),t}var _e={color:{},darkColor:{},size:{}},J=_e.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)"};P(J,{primary:J.neutral80,secondary:J.neutral70,tertiary:J.neutral60,quaternary:J.neutral50,disabled:J.neutral20,border:J.neutral30,borderTint:J.neutral20,borderShade:J.neutral40,background:J.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:J.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:J.neutral70,axisLineTint:J.neutral40,axisTick:J.neutral70,axisTickMinor:J.neutral60,axisLabel:J.neutral70,axisSplitLine:J.neutral15,axisMinorSplitLine:J.neutral05});for(var mt in J)if(J.hasOwnProperty(mt)){var Yo=J[mt];mt==="theme"?_e.darkColor.theme=J.theme.slice():mt==="highlight"?_e.darkColor.highlight="rgba(255,231,130,0.4)":mt.indexOf("accent")===0?_e.darkColor[mt]=Ca(Yo,null,function(e){return e*.5},function(e){return Math.min(1,1.3-e)}):_e.darkColor[mt]=Ca(Yo,null,function(e){return e*.9},function(e){return 1-Math.pow(e,1.5)})}_e.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var il="";typeof navigator<"u"&&(il=navigator.platform||"");var Bt="rgba(0, 0, 0, 0.2)",ol=_e.color.theme[0],Xh=Ca(ol,null,null,.9);const Kh={darkMode:"auto",colorBy:"series",color:_e.color.theme,gradientColor:[Xh,ol],aria:{decal:{decals:[{color:Bt,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Bt,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Bt,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Bt,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Bt,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Bt,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:il.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 Zh=U(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Ue="original",ge="arrayRows",Ee="objectRows",He="keyedColumns",ct="typedArray",sl="unknown",$e="column",Rt="row",he={Must:1,Might:2,Not:3},ul=ye();function Qh(e){ul(e).datasetMap=U()}function wm(e,t,r){var n={},a=Ni(t);if(!a||!e)return n;var i=[],o=[],s=t.ecModel,u=ul(s).datasetMap,l=a.uid+"_"+r.seriesLayoutBy,v,c;e=e.slice(),S(e,function(g,p){var y=z(g)?g:e[p]={name:g};y.type==="ordinal"&&v==null&&(v=p,c=d(y)),n[y.name]=[]});var h=u.get(l)||u.set(l,{categoryWayDim:c,valueWayDim:0});S(e,function(g,p){var y=g.name,m=d(g);if(v==null){var _=h.valueWayDim;f(n[y],_,m),f(o,_,m),h.valueWayDim+=m}else if(v===p)f(n[y],0,m),f(i,0,m);else{var _=h.categoryWayDim;f(n[y],_,m),f(o,_,m),h.categoryWayDim+=m}});function f(g,p,y){for(var m=0;m<y;m++)g.push(p+m)}function d(g){var p=g.dimsDef;return p?p.length:1}return i.length&&(n.itemName=i),o.length&&(n.seriesName=o),n}function Mm(e,t,r){var n={},a=Ni(e);if(!a)return n;var i=t.sourceFormat,o=t.dimensionsDefine,s;(i===Ee||i===He)&&S(o,function(v,c){(z(v)?v.name:v)==="name"&&(s=c)});var u=(function(){for(var v={},c={},h=[],f=0,d=Math.min(5,r);f<d;f++){var g=ll(t.data,i,t.seriesLayoutBy,o,t.startIndex,f);h.push(g);var p=g===he.Not;if(p&&v.v==null&&f!==s&&(v.v=f),(v.n==null||v.n===v.v||!p&&h[v.n]===he.Not)&&(v.n=f),y(v)&&h[v.n]!==he.Not)return v;p||(g===he.Might&&c.v==null&&f!==s&&(c.v=f),(c.n==null||c.n===c.v)&&(c.n=f))}function y(m){return m.v!=null&&m.n!=null}return y(v)?v:y(c)?c:null})();if(u){n.value=[u.v];var l=s??u.n;n.itemName=[l],n.seriesName=[l]}return n}function Ni(e){var t=e.get("data",!0);if(!t)return Pn(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},Rn).models[0]}function Jh(e){return!e.get("transform",!0)&&!e.get("fromTransformResult",!0)?[]:Pn(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},Rn).models}function jh(e,t){return ll(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function ll(e,t,r,n,a,i){var o,s=5;if(xe(e))return he.Not;var u,l;if(n){var v=n[i];z(v)?(u=v.name,l=v.type):F(v)&&(u=v)}if(l!=null)return l==="ordinal"?he.Must:he.Not;if(t===ge){var c=e;if(r===Rt){for(var h=c[i],f=0;f<(h||[]).length&&f<s;f++)if((o=b(h[a+f]))!=null)return o}else for(var f=0;f<c.length&&f<s;f++){var d=c[a+f];if(d&&(o=b(d[i]))!=null)return o}}else if(t===Ee){var g=e;if(!u)return he.Not;for(var f=0;f<g.length&&f<s;f++){var p=g[f];if(p&&(o=b(p[u]))!=null)return o}}else if(t===He){var y=e;if(!u)return he.Not;var h=y[u];if(!h||xe(h))return he.Not;for(var f=0;f<h.length&&f<s;f++)if((o=b(h[f]))!=null)return o}else if(t===Ue)for(var m=e,f=0;f<m.length&&f<s;f++){var p=m[f],_=An(p);if(!E(_))return he.Not;if((o=b(_[i]))!=null)return o}function b(M){var w=F(M);if(M!=null&&Number.isFinite(Number(M))&&M!=="")return w?he.Might:he.Not;if(w&&M!=="-")return he.Must}return he.Not}var Ga=U();function Tm(e,t){Xe(Ga.get(e)==null&&t),Ga.set(e,t)}function ed(e,t,r){var n=Ga.get(t);if(!n)return r;var a=n(e);return a?r.concat(a):r}var qo=ye(),td=ye(),Bi=(function(){function e(){}return e.prototype.getColorFromPalette=function(t,r,n){var a=Se(this.get("color",!0)),i=this.get("colorLayer",!0);return cl(this,qo,a,i,t,r,n)},e.prototype.clearColorPalette=function(){nd(this,qo)},e})();function Cm(e,t,r,n){var a=Se(e.get(["aria","decal","decals"]));return cl(e,td,a,null,t,r,n)}function rd(e,t){for(var r=e.length,n=0;n<r;n++)if(e[n].length>t)return e[n];return e[r-1]}function cl(e,t,r,n,a,i,o){i=i||e;var s=t(i),u=s.paletteIdx||0,l=s.paletteNameMap=s.paletteNameMap||{};if(l.hasOwnProperty(a))return l[a];var v=o==null||!n?r:rd(n,o);if(v=v||r,!(!v||!v.length)){var c=v[u];return a&&(l[a]=c),s.paletteIdx=(u+1)%v.length,c}}function nd(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var zr,Jt,$o,Xo="\0_ec_inner",ad=1,Fi=(function(e){q(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r,n,a,i,o,s){i=i||{},this.option=null,this._theme=new pe(i),this._locale=new pe(o),this._optionManager=s},t.prototype.setOption=function(r,n,a){var i=Qo(n);this._optionManager.setOption(r,a,i),this._resetOption(null,i)},t.prototype.resetOption=function(r,n){return this._resetOption(r,Qo(n))},t.prototype._resetOption=function(r,n){var a=!1,i=this._optionManager;if(!r||r==="recreate"){var o=i.mountOption(r==="recreate");!this.option||r==="recreate"?$o(this,o):(this.restoreData(),this._mergeOption(o,n)),a=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=i.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,n))}if(!r||r==="recreate"||r==="media"){var u=i.getMediaOption(this);u.length&&S(u,function(l){a=!0,this._mergeOption(l,n)},this)}return a},t.prototype.mergeOption=function(r){this._mergeOption(r,null)},t.prototype._mergeOption=function(r,n){var a=this.option,i=this._componentsMap,o=this._componentsCount,s=[],u=U(),l=n&&n.replaceMergeMainTypeMap;Qh(this),S(r,function(c,h){c!=null&&(Q.hasClass(h)?h&&(s.push(h),u.set(h,!0)):a[h]=a[h]==null?Z(c):fe(a[h],c,!0))}),l&&l.each(function(c,h){Q.hasClass(h)&&!u.get(h)&&(s.push(h),u.set(h,!0))}),Q.topologicalTravel(s,Q.getAllClassMainTypes(),v,this);function v(c){var h=ed(this,c,Se(r[c])),f=i.get(c),d=f?l&&l.get(c)?"replaceMerge":"normalMerge":"replaceAll",g=vf(f,h,d);_f(g,c,Q),a[c]=null,i.set(c,null),o.set(c,0);var p=[],y=[],m=0,_;S(g,function(b,M){var w=b.existing,T=b.newOption;if(!T)w&&(w.mergeOption({},this),w.optionUpdated({},!1));else{var x=c==="series",D=Q.getClass(c,b.keyInfo.subType,!x);if(!D)return;if(c==="tooltip"){if(_)return;_=!0}if(w&&w.constructor===D)w.name=b.keyInfo.name,w.mergeOption(T,this),w.optionUpdated(T,!1);else{var I=P({componentIndex:M},b.keyInfo);w=new D(T,this,this,I),P(w,I),b.brandNew&&(w.__requireNewView=!0),w.init(T,this,this),w.optionUpdated(null,!0)}}w?(p.push(w.option),y.push(w),m++):(p.push(void 0),y.push(void 0))},this),a[c]=p,i.set(c,y),o.set(c,m),c==="series"&&zr(this)}this._seriesIndices||zr(this)},t.prototype.getOption=function(){var r=Z(this.option);return S(r,function(n,a){if(Q.hasClass(a)){for(var i=Se(n),o=i.length,s=!1,u=o-1;u>=0;u--)i[u]&&!br(i[u])?s=!0:(i[u]=null,!s&&o--);i.length=o,r[a]=i}}),delete r[Xo],r},t.prototype.setTheme=function(r){this._theme=new pe(r),this._resetOption("recreate",null)},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(r){this._payload=r},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(r,n){var a=this._componentsMap.get(r);if(a){var i=a[n||0];if(i)return i;if(n==null){for(var o=0;o<a.length;o++)if(a[o])return a[o]}}},t.prototype.queryComponents=function(r){var n=r.mainType;if(!n)return[];var a=r.index,i=r.id,o=r.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var u;return a!=null?(u=[],S(Se(a),function(l){s[l]&&u.push(s[l])})):i!=null?u=Ko("id",i,s):o!=null?u=Ko("name",o,s):u=we(s,function(l){return!!l}),Zo(u,r)},t.prototype.findComponents=function(r){var n=r.query,a=r.mainType,i=s(n),o=i?this.queryComponents(i):we(this._componentsMap.get(a),function(l){return!!l});return u(Zo(o,r));function s(l){var v=a+"Index",c=a+"Id",h=a+"Name";return l&&(l[v]!=null||l[c]!=null||l[h]!=null)?{mainType:a,index:l[v],id:l[c],name:l[h]}:null}function u(l){return r.filter?we(l,r.filter):l}},t.prototype.eachComponent=function(r,n,a){var i=this._componentsMap;if(K(r)){var o=n,s=r;i.each(function(c,h){for(var f=0;c&&f<c.length;f++){var d=c[f];d&&s.call(o,h,d,d.componentIndex)}})}else for(var u=F(r)?i.get(r):z(r)?this.findComponents(r):null,l=0;u&&l<u.length;l++){var v=u[l];v&&n.call(a,v,v.componentIndex)}},t.prototype.getSeriesByName=function(r){var n=ze(r,null);return we(this._componentsMap.get("series"),function(a){return!!a&&n!=null&&a.name===n})},t.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},t.prototype.getSeriesByType=function(r){return we(this._componentsMap.get("series"),function(n){return!!n&&n.subType===r})},t.prototype.getSeries=function(){return we(this._componentsMap.get("series"),function(r){return!!r})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(r,n){Jt(this),S(this._seriesIndices,function(a){var i=this._componentsMap.get("series")[a];r.call(n,i,a)},this)},t.prototype.eachRawSeries=function(r,n){S(this._componentsMap.get("series"),function(a){a&&r.call(n,a,a.componentIndex)})},t.prototype.eachSeriesByType=function(r,n,a){Jt(this),S(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];o.subType===r&&n.call(a,o,i)},this)},t.prototype.eachRawSeriesByType=function(r,n,a){return S(this.getSeriesByType(r),n,a)},t.prototype.isSeriesFiltered=function(r){return Jt(this),this._seriesIndicesMap.get(r.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(r,n){Jt(this);var a=[];S(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];r.call(n,o,i)&&a.push(i)},this),this._seriesIndices=a,this._seriesIndicesMap=U(a)},t.prototype.restoreData=function(r){zr(this);var n=this._componentsMap,a=[];n.each(function(i,o){Q.hasClass(o)&&a.push(o)}),Q.topologicalTravel(a,Q.getAllClassMainTypes(),function(i){S(n.get(i),function(o){o&&(i!=="series"||!id(o,r))&&o.restoreData()})})},t.internalField=(function(){zr=function(r){var n=r._seriesIndices=[];S(r._componentsMap.get("series"),function(a){a&&n.push(a.componentIndex)}),r._seriesIndicesMap=U(n)},Jt=function(r){},$o=function(r,n){r.option={},r.option[Xo]=ad,r._componentsMap=U({series:[]}),r._componentsCount=U();var a=n.aria;z(a)&&a.enabled==null&&(a.enabled=!0),od(n,r._theme.option),fe(n,Kh,!1),r._mergeOption(n,null)}})(),t})(pe);function id(e,t){if(t){var r=t.seriesIndex,n=t.seriesId,a=t.seriesName;return r!=null&&e.componentIndex!==r||n!=null&&e.id!==n||a!=null&&e.name!==a}}function od(e,t){var r=e.color&&!e.colorLayer;S(t,function(n,a){a==="colorLayer"&&r||a==="color"&&e.color||Q.hasClass(a)||(typeof n=="object"?e[a]=e[a]?fe(e[a],n,!1):Z(n):e[a]==null&&(e[a]=n))})}function Ko(e,t,r){if(E(t)){var n=U();return S(t,function(i){if(i!=null){var o=ze(i,null);o!=null&&n.set(i,!0)}}),we(r,function(i){return i&&n.get(i[e])})}else{var a=ze(t,null);return we(r,function(i){return i&&a!=null&&i[e]===a})}}function Zo(e,t){return t.hasOwnProperty("subType")?we(e,function(r){return r&&r.subType===t.subType}):e}function Qo(e){var t=U();return e&&S(Se(e.replaceMerge),function(r){t.set(r,!0)}),{replaceMergeMainTypeMap:t}}At(Fi,Bi);var sd=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],fl=(function(){function e(t){S(sd,function(r){this[r]=ce(t[r],t)},this)}return e})(),ud=/^(min|max)?(.+)$/,ld=(function(){function e(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return e.prototype.setOption=function(t,r,n){t&&(S(Se(t.series),function(o){o&&o.data&&xe(o.data)&&ln(o.data)}),S(Se(t.dataset),function(o){o&&o.source&&xe(o.source)&&ln(o.source)})),t=Z(t);var a=this._optionBackup,i=cd(t,r,!a);this._newBaseOption=i.baseOption,a?(i.timelineOptions.length&&(a.timelineOptions=i.timelineOptions),i.mediaList.length&&(a.mediaList=i.mediaList),i.mediaDefault&&(a.mediaDefault=i.mediaDefault)):this._optionBackup=i},e.prototype.mountOption=function(t){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],Z(t?r.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(t){var r,n=this._timelineOptions;if(n.length){var a=t.getComponent("timeline");a&&(r=Z(n[a.getCurrentIndex()]))}return r},e.prototype.getMediaOption=function(t){var r=this._api.getWidth(),n=this._api.getHeight(),a=this._mediaList,i=this._mediaDefault,o=[],s=[];if(!a.length&&!i)return s;for(var u=0,l=a.length;u<l;u++)fd(a[u].query,r,n)&&o.push(u);return!o.length&&i&&(o=[-1]),o.length&&!hd(o,this._currentMediaIndices)&&(s=N(o,function(v){return Z(v===-1?i.option:a[v].option)})),this._currentMediaIndices=o,s},e})();function cd(e,t,r){var n=[],a,i,o=e.baseOption,s=e.timeline,u=e.options,l=e.media,v=!!e.media,c=!!(u||s||o&&o.timeline);o?(i=o,i.timeline||(i.timeline=s)):((c||v)&&(e.options=e.media=null),i=e),v&&E(l)&&S(l,function(f){f&&f.option&&(f.query?n.push(f):a||(a=f))}),h(i),S(u,function(f){return h(f)}),S(n,function(f){return h(f.option)});function h(f){S(t,function(d){d(f,r)})}return{baseOption:i,timelineOptions:u||[],mediaDefault:a,mediaList:n}}function fd(e,t,r){var n={width:t,height:r,aspectratio:t/r},a=!0;return S(e,function(i,o){var s=o.match(ud);if(!(!s||!s[1]||!s[2])){var u=s[1],l=s[2].toLowerCase();vd(n[l],i,u)||(a=!1)}}),a}function vd(e,t,r){return r==="min"?e>=t:r==="max"?e<=t:e===t}function hd(e,t){return e.join(",")===t.join(",")}var Le=S,Mr=z,Jo=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function aa(e){var t=e&&e.itemStyle;if(t)for(var r=0,n=Jo.length;r<n;r++){var a=Jo[r],i=t.normal,o=t.emphasis;i&&i[a]&&(e[a]=e[a]||{},e[a].normal?fe(e[a].normal,i[a]):e[a].normal=i[a],i[a]=null),o&&o[a]&&(e[a]=e[a]||{},e[a].emphasis?fe(e[a].emphasis,o[a]):e[a].emphasis=o[a],o[a]=null)}}function de(e,t,r){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var n=e[t].normal,a=e[t].emphasis;n&&(r?(e[t].normal=e[t].emphasis=null,Ke(e[t],n)):e[t]=n),a&&(e.emphasis=e.emphasis||{},e.emphasis[t]=a,a.focus&&(e.emphasis.focus=a.focus),a.blurScope&&(e.emphasis.blurScope=a.blurScope))}}function fr(e){de(e,"itemStyle"),de(e,"lineStyle"),de(e,"areaStyle"),de(e,"label"),de(e,"labelLine"),de(e,"upperLabel"),de(e,"edgeLabel")}function re(e,t){var r=Mr(e)&&e[t],n=Mr(r)&&r.textStyle;if(n)for(var a=0,i=go.length;a<i;a++){var o=go[a];n.hasOwnProperty(o)&&(r[o]=n[o])}}function ke(e){e&&(fr(e),re(e,"label"),e.emphasis&&re(e.emphasis,"label"))}function dd(e){if(Mr(e)){aa(e),fr(e),re(e,"label"),re(e,"upperLabel"),re(e,"edgeLabel"),e.emphasis&&(re(e.emphasis,"label"),re(e.emphasis,"upperLabel"),re(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(aa(t),ke(t));var r=e.markLine;r&&(aa(r),ke(r));var n=e.markArea;n&&ke(n);var a=e.data;if(e.type==="graph"){a=a||e.nodes;var i=e.links||e.edges;if(i&&!xe(i))for(var o=0;o<i.length;o++)ke(i[o]);S(e.categories,function(l){fr(l)})}if(a&&!xe(a))for(var o=0;o<a.length;o++)ke(a[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)ke(s[o]);if(r=e.markLine,r&&r.data)for(var u=r.data,o=0;o<u.length;o++)E(u[o])?(ke(u[o][0]),ke(u[o][1])):ke(u[o]);e.type==="gauge"?(re(e,"axisLabel"),re(e,"title"),re(e,"detail")):e.type==="treemap"?(de(e.breadcrumb,"itemStyle"),S(e.levels,function(l){fr(l)})):e.type==="tree"&&fr(e.leaves)}}function Je(e){return E(e)?e:e?[e]:[]}function jo(e){return(E(e)?e[0]:e)||{}}function pd(e,t){Le(Je(e.series),function(n){Mr(n)&&dd(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),Le(r,function(n){Le(Je(e[n]),function(a){a&&(re(a,"axisLabel"),re(a.axisPointer,"label"))})}),Le(Je(e.parallel),function(n){var a=n&&n.parallelAxisDefault;re(a,"axisLabel"),re(a&&a.axisPointer,"label")}),Le(Je(e.calendar),function(n){de(n,"itemStyle"),re(n,"dayLabel"),re(n,"monthLabel"),re(n,"yearLabel")}),Le(Je(e.radar),function(n){re(n,"name"),n.name&&n.axisName==null&&(n.axisName=n.name,delete n.name),n.nameGap!=null&&n.axisNameGap==null&&(n.axisNameGap=n.nameGap,delete n.nameGap)}),Le(Je(e.geo),function(n){Mr(n)&&(ke(n),Le(Je(n.regions),function(a){ke(a)}))}),Le(Je(e.timeline),function(n){ke(n),de(n,"label"),de(n,"itemStyle"),de(n,"controlStyle",!0);var a=n.data;E(a)&&S(a,function(i){z(i)&&(de(i,"label"),de(i,"itemStyle"))})}),Le(Je(e.toolbox),function(n){de(n,"iconStyle"),Le(n.feature,function(a){de(a,"iconStyle")})}),re(jo(e.axisPointer),"label"),re(jo(e.tooltip).axisPointer,"label")}function gd(e,t){for(var r=t.split(","),n=e,a=0;a<r.length&&(n=n&&n[r[a]],n!=null);a++);return n}function yd(e,t,r,n){for(var a=t.split(","),i=e,o,s=0;s<a.length-1;s++)o=a[s],i[o]==null&&(i[o]={}),i=i[o];i[a[s]]==null&&(i[a[s]]=r)}function es(e){e&&S(md,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var md=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],_d=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],ia=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function jt(e){var t=e&&e.itemStyle;if(t)for(var r=0;r<ia.length;r++){var n=ia[r][1],a=ia[r][0];t[n]!=null&&(t[a]=t[n])}}function ts(e){e&&e.alignTo==="edge"&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function rs(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function Sd(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus==null&&(e.emphasis.focus="adjacency"))}function vl(e,t){if(e)for(var r=0;r<e.length;r++)t(e[r]),e[r]&&vl(e[r].children,t)}function hl(e,t){pd(e,t),e.series=Se(e.series),S(e.series,function(r){if(z(r)){var n=r.type;if(n==="line")r.clipOverflow!=null&&(r.clip=r.clipOverflow);else if(n==="pie"||n==="gauge"){r.clockWise!=null&&(r.clockwise=r.clockWise),ts(r.label);var a=r.data;if(a&&!xe(a))for(var i=0;i<a.length;i++)ts(a[i]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if(n==="gauge"){var o=gd(r,"pointer.color");o!=null&&yd(r,"itemStyle.color",o)}else if(n==="bar"){jt(r),jt(r.backgroundStyle),jt(r.emphasis);var a=r.data;if(a&&!xe(a))for(var i=0;i<a.length;i++)typeof a[i]=="object"&&(jt(a[i]),jt(a[i]&&a[i].emphasis))}else if(n==="sunburst"){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s)),rs(r),vl(r.data,rs)}else n==="graph"||n==="sankey"?Sd(r):n==="map"&&(r.mapType&&!r.map&&(r.map=r.mapType),r.mapLocation&&Ke(r,r.mapLocation));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(r.emphasis.scale=r.hoverAnimation)),es(r)}}),e.dataRange&&(e.visualMap=e.dataRange),S(_d,function(r){var n=e[r];n&&(E(n)||(n=[n]),S(n,function(a){es(a)}))})}function bd(e){var t=U();e.eachSeries(function(r){var n=r.get("stack");if(n){var a=t.get(n)||t.set(n,[]),i=r.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:r};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;a.push(o)}}),t.each(function(r){if(r.length!==0){var n=r[0].seriesModel,a=n.get("stackOrder")||"seriesAsc";a==="seriesDesc"&&r.reverse(),S(r,function(i,o){i.data.setCalculationInfo("stackedOnSeries",o>0?r[o-1].seriesModel:null)}),wd(r)}})}function wd(e){S(e,function(t,r){var n=[],a=[NaN,NaN],i=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,u=t.seriesModel.get("stackStrategy")||"samesign";o.modify(i,function(l,v,c){var h=o.get(t.stackedDimension,c);if(isNaN(h))return a;var f,d;s?d=o.getRawIndex(c):f=o.get(t.stackedByDimension,c);for(var g=NaN,p=r-1;p>=0;p--){var y=e[p];if(s||(d=y.data.rawIndexOf(y.stackedByDimension,f)),d>=0){var m=y.data.getByRawIndex(y.stackResultDimension,d);if(u==="all"||u==="positive"&&m>0||u==="negative"&&m<0||u==="samesign"&&h>=0&&m>0||u==="samesign"&&h<=0&&m<0){h=nf(h,m),g=m;break}}}return n[0]=h,n[1]=g,n})})}var Hn=(function(){function e(t){this.data=t.data||(t.sourceFormat===He?{}:[]),this.sourceFormat=t.sourceFormat||sl,this.seriesLayoutBy=t.seriesLayoutBy||$e,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var r=this.dimensionsDefine=t.dimensionsDefine;if(r)for(var n=0;n<r.length;n++){var a=r[n];a.type==null&&jh(this,n)===he.Must&&(a.type="ordinal")}}return e})();function dl(e){return e instanceof Hn}function Ua(e,t,r){r=r||pl(e);var n=t.seriesLayoutBy,a=Cd(e,r,n,t.sourceHeader,t.dimensions),i=new Hn({data:e,sourceFormat:r,seriesLayoutBy:n,dimensionsDefine:a.dimensionsDefine,startIndex:a.startIndex,dimensionsDetectedCount:a.dimensionsDetectedCount,metaRawOption:Z(t)});return i}function Md(e){return new Hn({data:e,sourceFormat:xe(e)?ct:Ue})}function Td(e){return new Hn({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:Z(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function pl(e){var t=sl;if(xe(e))t=ct;else if(E(e)){e.length===0&&(t=ge);for(var r=0,n=e.length;r<n;r++){var a=e[r];if(a!=null){if(E(a)||xe(a)){t=ge;break}else if(z(a)){t=Ee;break}}}}else if(z(e)){for(var i in e)if(Ve(e,i)&&Cn(e[i])){t=He;break}}return t}function Cd(e,t,r,n,a){var i,o;if(!e)return{dimensionsDefine:ns(a),startIndex:o,dimensionsDetectedCount:i};if(t===ge){var s=e;n==="auto"||n==null?as(function(l){l!=null&&l!=="-"&&(F(l)?o==null&&(o=1):o=0)},r,s,10):o=ae(n)?n:n?1:0,!a&&o===1&&(a=[],as(function(l,v){a[v]=l!=null?l+"":""},r,s,1/0)),i=a?a.length:r===Rt?s.length:s[0]?s[0].length:null}else if(t===Ee)a||(a=Dd(e));else if(t===He)a||(a=[],S(e,function(l,v){a.push(v)}));else if(t===Ue){var u=An(e[0]);i=E(u)&&u.length||1}return{startIndex:o,dimensionsDefine:ns(a),dimensionsDetectedCount:i}}function Dd(e){for(var t=0,r;t<e.length&&!(r=e[t++]););if(r)return Qe(r)}function ns(e){if(e){var t=U();return N(e,function(r,n){r=z(r)?r:{name:r};var a={name:r.name,displayName:r.displayName,type:r.type};if(a.name==null)return a;a.name+="",a.displayName==null&&(a.displayName=a.name);var i=t.get(a.name);return i?a.name+="-"+i.count++:t.set(a.name,{count:1}),a})}}function as(e,t,r,n){if(t===Rt)for(var a=0;a<r.length&&a<n;a++)e(r[a]?r[a][0]:null,a);else for(var i=r[0]||[],a=0;a<i.length&&a<n;a++)e(i[a],a)}function gl(e){var t=e.sourceFormat;return t===Ee||t===He}var _t,St,bt,wt,is,os,yl=(function(){function e(t,r){var n=dl(t)?t:Md(t);this._source=n;var a=this._data=n.data,i=n.sourceFormat;n.seriesLayoutBy,i===ct&&(this._offset=0,this._dimSize=r,this._data=a),os(this,a,n)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(t,r){},e.prototype.appendData=function(t){},e.prototype.clean=function(){},e.protoInitialize=(function(){var t=e.prototype;t.pure=!1,t.persistent=!0})(),e.internalField=(function(){var t;os=function(o,s,u){var l=u.sourceFormat,v=u.seriesLayoutBy,c=u.startIndex,h=u.dimensionsDefine,f=is[Vi(l,v)];if(P(o,f),l===ct)o.getItem=r,o.count=a,o.fillStorage=n;else{var d=ml(l,v);o.getItem=ce(d,null,s,c,h);var g=_l(l,v);o.count=ce(g,null,s,c,h)}};var r=function(o,s){o=o-this._offset,s=s||[];for(var u=this._data,l=this._dimSize,v=l*o,c=0;c<l;c++)s[c]=u[v+c];return s},n=function(o,s,u,l){for(var v=this._data,c=this._dimSize,h=0;h<c;h++){for(var f=l[h],d=f[0]==null?1/0:f[0],g=f[1]==null?-1/0:f[1],p=s-o,y=u[h],m=0;m<p;m++){var _=v[m*c+h];y[o+m]=_,_<d&&(d=_),_>g&&(g=_)}f[0]=d,f[1]=g}},a=function(){return this._data?this._data.length/this._dimSize:0};is=(t={},t[ge+"_"+$e]={pure:!0,appendData:i},t[ge+"_"+Rt]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Ee]={pure:!0,appendData:i},t[He]={pure:!0,appendData:function(o){var s=this._data;S(o,function(u,l){for(var v=s[l]||(s[l]=[]),c=0;c<(u||[]).length;c++)v.push(u[c])})}},t[Ue]={appendData:i},t[ct]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function i(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}})(),e})(),Gr=function(e){E(e)||uu("series.data or dataset.source must be an array.")};_t={},_t[ge+"_"+$e]=Gr,_t[ge+"_"+Rt]=Gr,_t[Ee]=Gr,_t[He]=function(e,t){for(var r=0;r<t.length;r++){var n=t[r].name;n==null&&uu("dimension name must not be null/undefined.")}},_t[Ue]=Gr;var ss=function(e,t,r,n){return e[n]},xd=(St={},St[ge+"_"+$e]=function(e,t,r,n){return e[n+t]},St[ge+"_"+Rt]=function(e,t,r,n,a){n+=t;for(var i=a||[],o=e,s=0;s<o.length;s++){var u=o[s];i[s]=u?u[n]:null}return i},St[Ee]=ss,St[He]=function(e,t,r,n,a){for(var i=a||[],o=0;o<r.length;o++){var s=r[o].name,u=s!=null?e[s]:null;i[o]=u?u[n]:null}return i},St[Ue]=ss,St);function ml(e,t){var r=xd[Vi(e,t)];return r}var us=function(e,t,r){return e.length},Id=(bt={},bt[ge+"_"+$e]=function(e,t,r){return Math.max(0,e.length-t)},bt[ge+"_"+Rt]=function(e,t,r){var n=e[0];return n?Math.max(0,n.length-t):0},bt[Ee]=us,bt[He]=function(e,t,r){var n=r[0].name,a=n!=null?e[n]:null;return a?a.length:0},bt[Ue]=us,bt);function _l(e,t){var r=Id[Vi(e,t)];return r}var oa=function(e,t,r){return e[t]},kd=(wt={},wt[ge]=oa,wt[Ee]=function(e,t,r){return e[r]},wt[He]=oa,wt[Ue]=function(e,t,r){var n=An(e);return n instanceof Array?n[t]:n},wt[ct]=oa,wt);function Sl(e){var t=kd[e];return t}function Vi(e,t){return e===ge?e+"_"+t:e}function mn(e,t,r){if(e){var n=e.getRawDataItem(t);if(n!=null){var a=e.getStore(),i=a.getSource().sourceFormat;if(r!=null){var o=e.getDimensionIndex(r),s=a.getDimensionProperty(o);return Sl(i)(n,o,s)}else{var u=n;return i===Ue&&(u=An(n)),u}}}}var Ad=/\{@(.+?)\}/g,Ed=(function(){function e(){}return e.prototype.getDataParams=function(t,r){var n=this.getData(r),a=this.getRawValue(t,r),i=n.getRawIndex(t),o=n.getName(t),s=n.getRawDataItem(t),u=n.getItemVisual(t,"style"),l=u&&u[n.getItemVisual(t,"drawType")||"fill"],v=u&&u.stroke,c=this.mainType,h=c==="series",f=n.userOutput&&n.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:r,value:a,color:l,borderColor:v,dimensionNames:f?f.fullDimensions:null,encode:f?f.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(t,r,n,a,i,o){r=r||"normal";var s=this.getData(n),u=this.getDataParams(t,n);if(o&&(u.value=o.interpolatedValue),a!=null&&E(u.value)&&(u.value=u.value[a]),!i){var l=s.getItemModel(t);i=l.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(K(i))return u.status=r,u.dimensionIndex=a,i(u);if(F(i)){var v=Oh(i,u);return v.replace(Ad,function(c,h){var f=h.length,d=h;d.charAt(0)==="["&&d.charAt(f-1)==="]"&&(d=+d.slice(1,f-1));var g=mn(s,t,d);if(o&&E(o.interpolatedValue)){var p=s.getDimensionIndex(d);p>=0&&(g=o.interpolatedValue[p])}return g!=null?g+"":""})}},e.prototype.getRawValue=function(t,r){return mn(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,n){},e})();function Dm(e){var t,r;return z(e)?e.type&&(r=e):t=e,{text:t,frag:r}}function yr(e){return new Rd(e)}var Rd=(function(){function e(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return e.prototype.perform=function(t){var r=this._upstream,n=t&&t.skip;if(this._dirty&&r){var a=this.context;a.data=a.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=this._plan(this.context));var o=v(this._modBy),s=this._modDataCount||0,u=v(t&&t.modBy),l=t&&t.modDataCount||0;(o!==u||s!==l)&&(i="reset");function v(m){return!(m>=1)&&(m=1),m}var c;(this._dirty||i==="reset")&&(this._dirty=!1,c=this._doReset(n)),this._modBy=u,this._modDataCount=l;var h=t&&t.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var f=this._dueIndex,d=Math.min(h!=null?this._dueIndex+h:1/0,this._dueEnd);if(!n&&(c||f<d)){var g=this._progress;if(E(g))for(var p=0;p<g.length;p++)this._doProgress(g[p],f,d,u,l);else this._doProgress(g,f,d,u,l)}this._dueIndex=d;var y=this._settedOutputEnd!=null?this._settedOutputEnd:d;this._outputDueEnd=y}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(t,r,n,a,i){ls.reset(r,n,a,i),this._callingProgress=t,this._callingProgress({start:r,end:n,count:n-r,next:ls.next},this.context)},e.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,n;!t&&this._reset&&(r=this._reset(this.context),r&&r.progress&&(n=r.forceFirstProgress,r=r.progress),E(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var a=this._downstream;return a&&a.dirty(),n},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},e.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},e})(),ls=(function(){var e,t,r,n,a,i={reset:function(u,l,v,c){t=u,e=l,r=v,n=c,a=Math.ceil(n/r),i.next=r>1&&n>0?s:o}};return i;function o(){return t<e?t++:null}function s(){var u=t%a*r+Math.ceil(t/a),l=t>=e?null:u<n?u:t;return t++,l}})();function sn(e,t){var r=t&&t.type;return r==="ordinal"?e:(r==="time"&&!ae(e)&&e!=null&&e!=="-"&&(e=+Et(e)),e==null||e===""?NaN:Number(e))}var Pd=U({number:function(e){return parseFloat(e)},time:function(e){return+Et(e)},trim:function(e){return F(e)?In(e):e}});function xm(e){return Pd.get(e)}var bl={lt:function(e,t){return e<t},lte:function(e,t){return e<=t},gt:function(e,t){return e>t},gte:function(e,t){return e>=t}},Ld=(function(){function e(t,r){if(!ae(r)){var n="";Me(n)}this._opFn=bl[t],this._rvalFloat=ft(r)}return e.prototype.evaluate=function(t){return ae(t)?this._opFn(t,this._rvalFloat):this._opFn(ft(t),this._rvalFloat)},e})(),Od=(function(){function e(t,r){var n=t==="desc";this._resultLT=n?1:-1,r==null&&(r=n?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return e.prototype.evaluate=function(t,r){var n=ae(t)?t:ft(t),a=ae(r)?r:ft(r),i=isNaN(n),o=isNaN(a);if(i&&(n=this._incomparable),o&&(a=this._incomparable),i&&o){var s=F(t),u=F(r);s&&(n=u?t:0),u&&(a=s?r:0)}return n<a?this._resultLT:n>a?-this._resultLT:0},e})(),Nd=(function(){function e(t,r){this._rval=r,this._isEQ=t,this._rvalTypeof=typeof r,this._rvalFloat=ft(r)}return e.prototype.evaluate=function(t){var r=t===this._rval;if(!r){var n=typeof t;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(r=ft(t)===this._rvalFloat)}return this._isEQ?r:!r},e})();function Im(e,t){return e==="eq"||e==="ne"?new Nd(e==="eq",t):Ve(bl,e)?new Ld(e,t):null}var Bd=(function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(t){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(t){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(t,r){},e.prototype.retrieveValueFromItem=function(t,r){},e.prototype.convertValue=function(t,r){return sn(t,r)},e})();function Fd(e,t){var r=new Bd,n=e.data,a=r.sourceFormat=e.sourceFormat,i=e.startIndex,o="";e.seriesLayoutBy!==$e&&Me(o);var s=[],u={},l=e.dimensionsDefine;if(l)S(l,function(g,p){var y=g.name,m={index:p,name:y,displayName:g.displayName};if(s.push(m),y!=null){var _="";Ve(u,y)&&Me(_),u[y]=m}});else for(var v=0;v<e.dimensionsDetectedCount;v++)s.push({index:v});var c=ml(a,$e);t.__isBuiltIn&&(r.getRawDataItem=function(g){return c(n,i,s,g)},r.getRawData=ce(Vd,null,e)),r.cloneRawData=ce(zd,null,e);var h=_l(a,$e);r.count=ce(h,null,n,i,s);var f=Sl(a);r.retrieveValue=function(g,p){var y=c(n,i,s,g);return d(y,p)};var d=r.retrieveValueFromItem=function(g,p){if(g!=null){var y=s[p];if(y)return f(g,p,y.name)}};return r.getDimensionInfo=ce(Gd,null,s,u),r.cloneAllDimensionInfo=ce(Ud,null,s),r}function Vd(e){var t=e.sourceFormat;if(!zi(t)){var r="";Me(r)}return e.data}function zd(e){var t=e.sourceFormat,r=e.data;if(!zi(t)){var n="";Me(n)}if(t===ge){for(var a=[],i=0,o=r.length;i<o;i++)a.push(r[i].slice());return a}else if(t===Ee){for(var a=[],i=0,o=r.length;i<o;i++)a.push(P({},r[i]));return a}}function Gd(e,t,r){if(r!=null){if(ae(r)||!isNaN(r)&&!Ve(t,r))return e[r];if(Ve(t,r))return t[r]}}function Ud(e){return Z(e)}var wl=U();function Hd(e){e=Z(e);var t=e.type,r="";t||Me(r);var n=t.split(":");n.length!==2&&Me(r);var a=!1;n[0]==="echarts"&&(t=n[1],a=!0),e.__isBuiltIn=a,wl.set(t,e)}function Wd(e,t,r){var n=Se(e),a=n.length,i="";a||Me(i);for(var o=0,s=a;o<s;o++){var u=n[o];t=Yd(u,t),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function Yd(e,t,r,n){var a="";t.length||Me(a),z(e)||Me(a);var i=e.type,o=wl.get(i);o||Me(a);var s=N(t,function(l){return Fd(l,o)}),u=Se(o.transform({upstream:s[0],upstreamList:s,config:Z(e.config)}));return N(u,function(l,v){var c="";z(l)||Me(c),l.data||Me(c);var h=pl(l.data);zi(h)||Me(c);var f,d=t[0];if(d&&v===0&&!l.dimensions){var g=d.startIndex;g&&(l.data=d.data.slice(0,g).concat(l.data)),f={seriesLayoutBy:$e,sourceHeader:g,dimensions:d.metaRawOption.dimensions}}else f={seriesLayoutBy:$e,sourceHeader:0,dimensions:l.dimensions};return Ua(l.data,f,null)})}function zi(e){return e===ge||e===Ee}var Wn="undefined",qd=typeof Uint32Array===Wn?Array:Uint32Array,$d=typeof Uint16Array===Wn?Array:Uint16Array,Xd=typeof Int32Array===Wn?Array:Int32Array,cs=typeof Float64Array===Wn?Array:Float64Array,Ml={float:cs,int:Xd,ordinal:Array,number:Array,time:cs},sa;function Ft(e){return e>65535?qd:$d}function Vt(){return[1/0,-1/0]}function Kd(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function fs(e,t,r,n,a){var i=Ml[r||"float"];if(a){var o=e[t],s=o&&o.length;if(s!==n){for(var u=new i(n),l=0;l<s;l++)u[l]=o[l];e[t]=u}}else e[t]=new i(n)}var Ha=(function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=U()}return e.prototype.initData=function(t,r,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var a=t.getSource(),i=this.defaultDimValueGetter=sa[a.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[],gl(a),this._dimensions=N(r,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,t.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(t,r){var n=this._calcDimNameToIdx,a=this._dimensions,i=n.get(t);if(i!=null){if(a[i].type===r)return i}else i=a.length;return a[i]={type:r},n.set(t,i),this._chunks[i]=new Ml[r||"float"](this._rawCount),this._rawExtent[i]=Vt(),i},e.prototype.collectOrdinalMeta=function(t,r){var n=this._chunks[t],a=this._dimensions[t],i=this._rawExtent,o=a.ordinalOffset||0,s=n.length;o===0&&(i[t]=Vt());for(var u=i[t],l=o;l<s;l++){var v=n[l]=r.parseAndCollect(n[l]);isNaN(v)||(u[0]=Math.min(v,u[0]),u[1]=Math.max(v,u[1]))}a.ordinalMeta=r,a.ordinalOffset=s,a.type="ordinal"},e.prototype.getOrdinalMeta=function(t){var r=this._dimensions[t],n=r.ordinalMeta;return n},e.prototype.getDimensionProperty=function(t){var r=this._dimensions[t];return r&&r.property},e.prototype.appendData=function(t){var r=this._provider,n=this.count();r.appendData(t);var a=r.count();return r.persistent||(a+=n),n<a&&this._initDataFromProvider(n,a,!0),[n,a]},e.prototype.appendValues=function(t,r){for(var n=this._chunks,a=this._dimensions,i=a.length,o=this._rawExtent,s=this.count(),u=s+Math.max(t.length,r||0),l=0;l<i;l++){var v=a[l];fs(n,l,v.type,u,!0)}for(var c=[],h=s;h<u;h++)for(var f=h-s,d=0;d<i;d++){var v=a[d],g=sa.arrayRows.call(this,t[f]||c,v.property,f,d);n[d][h]=g;var p=o[d];g<p[0]&&(p[0]=g),g>p[1]&&(p[1]=g)}return this._rawCount=this._count=u,{start:s,end:u}},e.prototype._initDataFromProvider=function(t,r,n){for(var a=this._provider,i=this._chunks,o=this._dimensions,s=o.length,u=this._rawExtent,l=N(o,function(m){return m.property}),v=0;v<s;v++){var c=o[v];u[v]||(u[v]=Vt()),fs(i,v,c.type,r,n)}if(a.fillStorage)a.fillStorage(t,r,i,u);else for(var h=[],f=t;f<r;f++){h=a.getItem(f,h);for(var d=0;d<s;d++){var g=i[d],p=this._dimValueGetter(h,l[d],f,d);g[f]=p;var y=u[d];p<y[0]&&(y[0]=p),p>y[1]&&(y[1]=p)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=r,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(t,r){if(!(r>=0&&r<this._count))return NaN;var n=this._chunks[t];return n?n[this.getRawIndex(r)]:NaN},e.prototype.getValues=function(t,r){var n=[],a=[];if(r==null){r=t,t=[];for(var i=0;i<this._dimensions.length;i++)a.push(i)}else a=t;for(var i=0,o=a.length;i<o;i++)n.push(this.get(a[i],r));return n},e.prototype.getByRawIndex=function(t,r){if(!(r>=0&&r<this._rawCount))return NaN;var n=this._chunks[t];return n?n[r]:NaN},e.prototype.getSum=function(t){var r=this._chunks[t],n=0;if(r)for(var a=0,i=this.count();a<i;a++){var o=this.get(t,a);isNaN(o)||(n+=o)}return n},e.prototype.getMedian=function(t){var r=[];this.each([t],function(i){isNaN(i)||r.push(i)});var n=r.sort(function(i,o){return i-o}),a=this.count();return a===0?0:a%2===1?n[(a-1)/2]:(n[a/2]+n[a/2-1])/2},e.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var r=this._indices,n=r[t];if(n!=null&&n<this._count&&n===t)return t;for(var a=0,i=this._count-1;a<=i;){var o=(a+i)/2|0;if(r[o]<t)a=o+1;else if(r[o]>t)i=o-1;else return o}return-1},e.prototype.getIndices=function(){var t,r=this._indices;if(r){var n=r.constructor,a=this._count;if(n===Array){t=new n(a);for(var i=0;i<a;i++)t[i]=r[i]}else t=new n(r.buffer,0,a)}else{var n=Ft(this._rawCount);t=new n(this.count());for(var i=0;i<t.length;i++)t[i]=i}return t},e.prototype.filter=function(t,r){if(!this._count)return this;for(var n=this.clone(),a=n.count(),i=Ft(n._rawCount),o=new i(a),s=[],u=t.length,l=0,v=t[0],c=n._chunks,h=0;h<a;h++){var f=void 0,d=n.getRawIndex(h);if(u===0)f=r(h);else if(u===1){var g=c[v][d];f=r(g,h)}else{for(var p=0;p<u;p++)s[p]=c[t[p]][d];s[p]=h,f=r.apply(null,s)}f&&(o[l++]=d)}return l<a&&(n._indices=o),n._count=l,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(t){var r=this.clone(),n=r._count;if(!n)return this;var a=Qe(t),i=a.length;if(!i)return this;var o=r.count(),s=Ft(r._rawCount),u=new s(o),l=0,v=a[0],c=t[v][0],h=t[v][1],f=r._chunks,d=!1;if(!r._indices){var g=0;if(i===1){for(var p=f[a[0]],y=0;y<n;y++){var m=p[y];(m>=c&&m<=h||isNaN(m))&&(u[l++]=g),g++}d=!0}else if(i===2){for(var p=f[a[0]],_=f[a[1]],b=t[a[1]][0],M=t[a[1]][1],y=0;y<n;y++){var m=p[y],w=_[y];(m>=c&&m<=h||isNaN(m))&&(w>=b&&w<=M||isNaN(w))&&(u[l++]=g),g++}d=!0}}if(!d)if(i===1)for(var y=0;y<o;y++){var T=r.getRawIndex(y),m=f[a[0]][T];(m>=c&&m<=h||isNaN(m))&&(u[l++]=T)}else for(var y=0;y<o;y++){for(var x=!0,T=r.getRawIndex(y),D=0;D<i;D++){var I=a[D],m=f[I][T];(m<t[I][0]||m>t[I][1])&&(x=!1)}x&&(u[l++]=r.getRawIndex(y))}return l<o&&(r._indices=u),r._count=l,r._extent=[],r._updateGetRawIdx(),r},e.prototype.map=function(t,r){var n=this.clone(t);return this._updateDims(n,t,r),n},e.prototype.modify=function(t,r){this._updateDims(this,t,r)},e.prototype._updateDims=function(t,r,n){for(var a=t._chunks,i=[],o=r.length,s=t.count(),u=[],l=t._rawExtent,v=0;v<r.length;v++)l[r[v]]=Vt();for(var c=0;c<s;c++){for(var h=t.getRawIndex(c),f=0;f<o;f++)u[f]=a[r[f]][h];u[o]=c;var d=n&&n.apply(null,u);if(d!=null){typeof d!="object"&&(i[0]=d,d=i);for(var v=0;v<d.length;v++){var g=r[v],p=d[v],y=l[g],m=a[g];m&&(m[h]=p),p<y[0]&&(y[0]=p),p>y[1]&&(y[1]=p)}}}},e.prototype.lttbDownSample=function(t,r){var n=this.clone([t],!0),a=n._chunks,i=a[t],o=this.count(),s=0,u=Math.floor(1/r),l=this.getRawIndex(0),v,c,h,f=new(Ft(this._rawCount))(Math.min((Math.ceil(o/u)+2)*2,o));f[s++]=l;for(var d=1;d<o-1;d+=u){for(var g=Math.min(d+u,o-1),p=Math.min(d+u*2,o),y=(p+g)/2,m=0,_=g;_<p;_++){var b=this.getRawIndex(_),M=i[b];isNaN(M)||(m+=M)}m/=p-g;var w=d,T=Math.min(d+u,o),x=d-1,D=i[l];v=-1,h=w;for(var I=-1,k=0,_=w;_<T;_++){var b=this.getRawIndex(_),M=i[b];if(isNaN(M)){k++,I<0&&(I=b);continue}c=Math.abs((x-y)*(M-D)-(x-_)*(m-D)),c>v&&(v=c,h=b)}k>0&&k<T-w&&(f[s++]=Math.min(I,h),h=Math.max(I,h)),f[s++]=h,l=h}return f[s++]=this.getRawIndex(o-1),n._count=s,n._indices=f,n.getRawIndex=this._getRawIdx,n},e.prototype.minmaxDownSample=function(t,r){for(var n=this.clone([t],!0),a=n._chunks,i=Math.floor(1/r),o=a[t],s=this.count(),u=new(Ft(this._rawCount))(Math.ceil(s/i)*2),l=0,v=0;v<s;v+=i){var c=v,h=o[this.getRawIndex(c)],f=v,d=o[this.getRawIndex(f)],g=i;v+i>s&&(g=s-v);for(var p=0;p<g;p++){var y=this.getRawIndex(v+p),m=o[y];m<h&&(h=m,c=v+p),m>d&&(d=m,f=v+p)}var _=this.getRawIndex(c),b=this.getRawIndex(f);c<f?(u[l++]=_,u[l++]=b):(u[l++]=b,u[l++]=_)}return n._count=l,n._indices=u,n._updateGetRawIdx(),n},e.prototype.downSample=function(t,r,n,a){for(var i=this.clone([t],!0),o=i._chunks,s=[],u=Math.floor(1/r),l=o[t],v=this.count(),c=i._rawExtent[t]=Vt(),h=new(Ft(this._rawCount))(Math.ceil(v/u)),f=0,d=0;d<v;d+=u){u>v-d&&(u=v-d,s.length=u);for(var g=0;g<u;g++){var p=this.getRawIndex(d+g);s[g]=l[p]}var y=n(s),m=this.getRawIndex(Math.min(d+a(s,y)||0,v-1));l[m]=y,y<c[0]&&(c[0]=y),y>c[1]&&(c[1]=y),h[f++]=m}return i._count=f,i._indices=h,i._updateGetRawIdx(),i},e.prototype.each=function(t,r){if(this._count)for(var n=t.length,a=this._chunks,i=0,o=this.count();i<o;i++){var s=this.getRawIndex(i);switch(n){case 0:r(i);break;case 1:r(a[t[0]][s],i);break;case 2:r(a[t[0]][s],a[t[1]][s],i);break;default:for(var u=0,l=[];u<n;u++)l[u]=a[t[u]][s];l[u]=i,r.apply(null,l)}}},e.prototype.getDataExtent=function(t){var r=this._chunks[t],n=Vt();if(!r)return n;var a=this.count(),i=!this._indices,o;if(i)return this._rawExtent[t].slice();if(o=this._extent[t],o)return o.slice();o=n;for(var s=o[0],u=o[1],l=0;l<a;l++){var v=this.getRawIndex(l),c=r[v];c<s&&(s=c),c>u&&(u=c)}return o=[s,u],this._extent[t]=o,o},e.prototype.getRawDataItem=function(t){var r=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],a=this._chunks,i=0;i<a.length;i++)n.push(a[i][r]);return n},e.prototype.clone=function(t,r){var n=new e,a=this._chunks,i=t&&un(t,function(s,u){return s[u]=!0,s},{});if(i)for(var o=0;o<a.length;o++)n._chunks[o]=i[o]?Kd(a[o]):a[o];else n._chunks=a;return this._copyCommonProps(n),r||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},e.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=Z(this._extent),t._rawExtent=Z(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,r=void 0;if(t===Array){var n=this._indices.length;r=new t(n);for(var a=0;a<n;a++)r[a]=this._indices[a]}else r=new t(this._indices);return r}return null},e.prototype._getRawIdxIdentity=function(t){return t},e.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=(function(){function t(r,n,a,i){return sn(r[i],this._dimensions[i])}sa={arrayRows:t,objectRows:function(r,n,a,i){return sn(r[n],this._dimensions[i])},keyedColumns:t,original:function(r,n,a,i){var o=r&&(r.value==null?r:r.value);return sn(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(r,n,a,i){return r[i]}}})(),e})(),Zd=(function(){function e(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(t,r){this._sourceList=t,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length,a,i;if(Ur(t)){var o=t,s=void 0,u=void 0,l=void 0;if(n){var v=r[0];v.prepareSource(),l=v.getSource(),s=l.data,u=l.sourceFormat,i=[v._getVersionSign()]}else s=o.get("data",!0),u=xe(s)?ct:Ue,i=[];var c=this._getSourceMetaRawOption()||{},h=l&&l.metaRawOption||{},f=se(c.seriesLayoutBy,h.seriesLayoutBy)||null,d=se(c.sourceHeader,h.sourceHeader),g=se(c.dimensions,h.dimensions),p=f!==h.seriesLayoutBy||!!d!=!!h.sourceHeader||g;a=p?[Ua(s,{seriesLayoutBy:f,sourceHeader:d,dimensions:g},u)]:[]}else{var y=t;if(n){var m=this._applyTransform(r);a=m.sourceList,i=m.upstreamSignList}else{var _=y.get("source",!0);a=[Ua(_,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(a,i)},e.prototype._applyTransform=function(t){var r=this._sourceHost,n=r.get("transform",!0),a=r.get("fromTransformResult",!0);if(a!=null){var i="";t.length!==1&&vs(i)}var o,s=[],u=[];return S(t,function(l){l.prepareSource();var v=l.getSource(a||0),c="";a!=null&&!v&&vs(c),s.push(v),u.push(l._getVersionSign())}),n?o=Wd(n,s,{datasetIndex:r.componentIndex}):a!=null&&(o=[Td(s[0])]),{sourceList:o,upstreamSignList:u}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),r=0;r<t.length;r++){var n=t[r];if(n._isDirty()||this._upstreamSignList[r]!==n._getVersionSign())return!0}},e.prototype.getSource=function(t){t=t||0;var r=this._sourceList[t];if(!r){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(t)}return r},e.prototype.getSharedDataStore=function(t){var r=t.makeStoreSchema();return this._innerGetDataStore(r.dimensions,t.source,r.hash)},e.prototype._innerGetDataStore=function(t,r,n){var a=0,i=this._storeList,o=i[a];o||(o=i[a]={});var s=o[n];if(!s){var u=this._getUpstreamSourceManagers()[0];Ur(this._sourceHost)&&u?s=u._innerGetDataStore(t,r,n):(s=new Ha,s.initData(new yl(r,t.length),t)),o[n]=s}return s},e.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(Ur(t)){var r=Ni(t);return r?[r.getSourceManager()]:[]}else return N(Jh(t),function(n){return n.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,r,n,a;if(Ur(t))r=t.get("seriesLayoutBy",!0),n=t.get("sourceHeader",!0),a=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=t;r=i.get("seriesLayoutBy",!0),n=i.get("sourceHeader",!0),a=i.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:n,dimensions:a}},e})();function km(e){var t=e.option.transform;t&&ln(e.option.transform)}function Ur(e){return e.mainType==="series"}function vs(e){throw new Error(e)}var Qd="line-height:1";function Tl(e){var t=e.lineHeight;return t==null?Qd:"line-height:"+De(t+"")+"px"}function Cl(e,t){var r=e.color||_e.color.tertiary,n=e.fontSize||12,a=e.fontWeight||"400",i=e.color||_e.color.secondary,o=e.fontSize||14,s=e.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+De(n+"")+"px;color:"+De(r)+";font-weight:"+De(a+""),valueStyle:"font-size:"+De(o+"")+"px;color:"+De(i)+";font-weight:"+De(s+"")}:{nameStyle:{fontSize:n,fill:r,fontWeight:a},valueStyle:{fontSize:o,fill:i,fontWeight:s}}}var Jd=[0,10,20,30],jd=["",`
|
|
3
|
+
`,`
|
|
4
|
+
|
|
5
|
+
`,`
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
`];function Wa(e,t){return t.type=e,t}function Ya(e){return e.type==="section"}function Dl(e){return Ya(e)?ep:tp}function xl(e){if(Ya(e)){var t=0,r=e.blocks.length,n=r>1||r>0&&!e.noHeader;return S(e.blocks,function(a){var i=xl(a);i>=t&&(t=i+ +(n&&(!i||Ya(a)&&!a.noHeader)))}),t}return 0}function ep(e,t,r,n){var a=t.noHeader,i=rp(xl(t)),o=[],s=t.blocks||[];Xe(!s||E(s)),s=s||[];var u=e.orderMode;if(t.sortBlocks&&u){s=s.slice();var l={valueAsc:"asc",valueDesc:"desc"};if(Ve(l,u)){var v=new Od(l[u],null);s.sort(function(g,p){return v.evaluate(g.sortParam,p.sortParam)})}else u==="seriesDesc"&&s.reverse()}S(s,function(g,p){var y=t.valueFormatter,m=Dl(g)(y?P(P({},e),{valueFormatter:y}):e,g,p>0?i.html:0,n);m!=null&&o.push(m)});var c=e.renderMode==="richText"?o.join(i.richText):qa(n,o.join(""),a?r:i.html);if(a)return c;var h=Va(t.header,"ordinal",e.useUTC),f=Cl(n,e.renderMode).nameStyle,d=Tl(n);return e.renderMode==="richText"?Il(e,h,f)+i.richText+c:qa(n,'<div style="'+f+";"+d+';">'+De(h)+"</div>"+c,r)}function tp(e,t,r,n){var a=e.renderMode,i=t.noName,o=t.noValue,s=!t.markerType,u=t.name,l=e.useUTC,v=t.valueFormatter||e.valueFormatter||function(b){return b=E(b)?b:[b],N(b,function(M,w){return Va(M,E(f)?f[w]:f,l)})};if(!(i&&o)){var c=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||_e.color.secondary,a),h=i?"":Va(u,"ordinal",l),f=t.valueType,d=o?[]:v(t.value,t.dataIndex),g=!s||!i,p=!s&&i,y=Cl(n,a),m=y.nameStyle,_=y.valueStyle;return a==="richText"?(s?"":c)+(i?"":Il(e,h,m))+(o?"":ip(e,d,g,p,_)):qa(n,(s?"":c)+(i?"":np(h,!s,m))+(o?"":ap(d,g,p,_)),r)}}function Am(e,t,r,n,a,i){if(e){var o=Dl(e),s={useUTC:a,renderMode:r,orderMode:n,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,i)}}function rp(e){return{html:Jd[e],richText:jd[e]}}function qa(e,t,r){var n='<div style="clear:both"></div>',a="margin: "+r+"px 0 0",i=Tl(e);return'<div style="'+a+";"+i+';">'+t+n+"</div>"}function np(e,t,r){var n=t?"margin-left:2px":"";return'<span style="'+r+";"+n+'">'+De(e)+"</span>"}function ap(e,t,r,n){var a=r?"10px":"20px",i=t?"float:right;margin-left:"+a:"";return e=E(e)?e:[e],'<span style="'+i+";"+n+'">'+N(e,function(o){return De(o)}).join(" ")+"</span>"}function Il(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function ip(e,t,r,n,a){var i=[a],o=n?10:20;return r&&i.push({padding:[0,0,0,o],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(E(t)?t.join(" "):t,i)}function op(e,t){var r=e.getData().getItemVisual(t,"style"),n=r[e.visualDrawType];return Bh(n)}function Em(e,t){var r=e.get("padding");return r??(t==="richText"?[8,10]:10)}var Rm=(function(){function e(){this.richTextStyles={},this._nextStyleNameId=ou()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,r,n){var a=n==="richText"?this._generateStyleName():null,i=Nh({color:r,type:t,renderMode:n,markerId:a});return F(i)?i:(this.richTextStyles[a]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(t,r){var n={};E(r)?S(r,function(i){return P(n,i)}):P(n,r);var a=this._generateStyleName();return this.richTextStyles[a]=n,"{"+a+"|"+t+"}"},e})();function sp(e){var t=e.series,r=e.dataIndex,n=e.multipleSeries,a=t.getData(),i=a.mapDimensionsAll("defaultedTooltip"),o=i.length,s=t.getRawValue(r),u=E(s),l=op(t,r),v,c,h,f;if(o>1||u&&!o){var d=up(s,t,r,i,l);v=d.inlineValues,c=d.inlineValueTypes,h=d.blocks,f=d.inlineValues[0]}else if(o){var g=a.getDimensionInfo(i[0]);f=v=mn(a,r,i[0]),c=g.type}else f=v=u?s[0]:s;var p=vu(t),y=p&&t.name||"",m=a.getName(r),_=n?y:m;return Wa("section",{header:y,noHeader:n||!p,sortParam:f,blocks:[Wa("nameValue",{markerType:"item",markerColor:l,name:_,noName:!In(_),value:v,valueType:c,dataIndex:r})].concat(h||[])})}function up(e,t,r,n,a){var i=t.getData(),o=un(e,function(c,h,f){var d=i.getDimensionInfo(f);return c=c||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],u=[],l=[];n.length?S(n,function(c){v(mn(i,r,c),c)}):S(e,v);function v(c,h){var f=i.getDimensionInfo(h);!f||f.otherDims.tooltip===!1||(o?l.push(Wa("nameValue",{markerType:"subItem",markerColor:a,name:f.displayName,value:c,valueType:f.type})):(s.push(c),u.push(f.type)))}return{inlineValues:s,inlineValueTypes:u,blocks:l}}var it=ye();function Hr(e,t){return e.getName(t)||e.getId(t)}var lp="__universalTransitionEnabled",kt=(function(e){q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return t.prototype.init=function(r,n,a){this.seriesIndex=this.componentIndex,this.dataTask=yr({count:fp,reset:vp}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,a);var i=it(this).sourceManager=new Zd(this);i.prepareSource();var o=this.getInitialData(r,a);ds(o,this),this.dataTask.context.data=o,it(this).dataBeforeProcessed=o,hs(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(r,n){var a=gn(this),i=a?al(r):{},o=this.subType;Q.hasClass(o)&&(o+="Series"),fe(r,n.getTheme().get(this.subType)),fe(r,this.getDefaultOption()),po(r,"label",["show"]),this.fillDataTextStyle(r.data),a&&yn(r,i,a)},t.prototype.mergeOption=function(r,n){r=fe(this.option,r,!0),this.fillDataTextStyle(r.data);var a=gn(this);a&&yn(this.option,r,a);var i=it(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(r,n);ds(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,it(this).dataBeforeProcessed=o,hs(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(r){if(r&&!xe(r))for(var n=["show"],a=0;a<r.length;a++)r[a]&&r[a].label&&po(r[a],"label",n)},t.prototype.getInitialData=function(r,n){},t.prototype.appendData=function(r){var n=this.getRawData();n.appendData(r.data)},t.prototype.getData=function(r){var n=$a(this);if(n){var a=n.context.data;return r==null||!a.getLinkedData?a:a.getLinkedData(r)}else return it(this).data},t.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},t.prototype.setData=function(r){var n=$a(this);if(n){var a=n.context;a.outputData=r,n!==this.dataTask&&(a.data=r)}it(this).data=r},t.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return U(r)},t.prototype.getSourceManager=function(){return it(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return it(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var r=this.get("colorBy");return r||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},t.prototype.indicesOfNearest=function(r,n,a,i){var o=this.getData(),s=this.coordinateSystem,u=s&&s.getAxis(r);if(!s||!u)return[];var l=u.dataToCoord(a);i==null&&(i=1/0);var v=[],c=1/0,h=-1,f=0;return o.each(n,function(d,g){var p=u.dataToCoord(d),y=l-p,m=Math.abs(y);m<=i&&((m<c||m===c&&y>=0&&h<0)&&(c=m,h=y,f=0),y===h&&(v[f++]=g))}),v.length=f,v},t.prototype.formatTooltip=function(r,n,a){return sp({series:this,dataIndex:r,multipleSeries:n})},t.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(ut.node&&!(r&&r.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(r,n,a){var i=this.ecModel,o=Bi.prototype.getColorFromPalette.call(this,r,n,a);return o||(o=i.getColorFromPalette(r,n,a)),o},t.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},t.prototype.unselect=function(r,n){var a=this.option.selectedMap;if(a){var i=this.option.selectedMode,o=this.getData(n);if(i==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<r.length;s++){var u=r[s],l=Hr(o,u);a[l]=!1,this._selectedDataIndicesMap[l]=-1}}},t.prototype.toggleSelect=function(r,n){for(var a=[],i=0;i<r.length;i++)a[0]=r[i],this.isSelected(r[i],n)?this.unselect(a,n):this.select(a,n)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,n=Qe(r),a=[],i=0;i<n.length;i++){var o=r[n[i]];o>=0&&a.push(o)}return a},t.prototype.isSelected=function(r,n){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(n);return(a==="all"||a[Hr(i,r)])&&!i.getItemModel(r).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[lp])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},t.prototype._innerSelect=function(r,n){var a,i,o=this.option,s=o.selectedMode,u=n.length;if(!(!s||!u)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){z(o.selectedMap)||(o.selectedMap={});for(var l=o.selectedMap,v=0;v<u;v++){var c=n[v],h=Hr(r,c);l[h]=!0,this._selectedDataIndicesMap[h]=r.getRawIndex(c)}}else if(s==="single"||s===!0){var f=n[u-1],h=Hr(r,f);o.selectedMap=(a={},a[h]=!0,a),this._selectedDataIndicesMap=(i={},i[h]=r.getRawIndex(f),i)}}},t.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var n=[];r.hasItemOption&&r.each(function(a){var i=r.getRawDataItem(a);i&&i.selected&&n.push(a)}),n.length>0&&this._innerSelect(r,n)}},t.registerClass=function(r){return Q.registerClass(r)},t.protoInitialize=(function(){var r=t.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"})(),t})(Q);At(kt,Ed);At(kt,Bi);gu(kt,Q);function hs(e){var t=e.name;vu(e)||(e.name=cp(e)||t)}function cp(e){var t=e.getRawData(),r=t.mapDimensionsAll("seriesName"),n=[];return S(r,function(a){var i=t.getDimensionInfo(a);i.displayName&&n.push(i.displayName)}),n.join(" ")}function fp(e){return e.model.getRawData().count()}function vp(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),hp}function hp(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function ds(e,t){S(Uc(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,ii(dp,t))})}function dp(e,t){var r=$a(e);return r&&r.setOutputEnd((t||this).count()),t}function $a(e){var t=(e.ecModel||{}).scheduler,r=t&&t.getPipeline(e.uid);if(r){var n=r.currentTask;if(n){var a=n.agentStubMap;a&&(n=a.get(e.uid))}return n}}var Tr=(function(){function e(){this.group=new xn,this.uid=Un("viewComponent")}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,a){},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,a){},e.prototype.updateLayout=function(t,r,n,a){},e.prototype.updateVisual=function(t,r,n,a){},e.prototype.toggleBlurSeries=function(t,r,n){},e.prototype.eachRendered=function(t){var r=this.group;r&&r.traverse(t)},e})();si(Tr);Ln(Tr);function kl(){var e=ye();return function(t){var r=e(t),n=t.pipelineContext,a=!!r.large,i=!!r.progressiveRender,o=r.large=!!(n&&n.large),s=r.progressiveRender=!!(n&&n.progressiveRender);return(a!==o||i!==s)&&"reset"}}var Al=ye(),pp=kl(),xt=(function(){function e(){this.group=new xn,this.uid=Un("viewChart"),this.renderTask=yr({plan:gp,reset:yp}),this.renderTask.context={view:this}}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,a){},e.prototype.highlight=function(t,r,n,a){var i=t.getData(a&&a.dataType);i&&gs(i,a,"emphasis")},e.prototype.downplay=function(t,r,n,a){var i=t.getData(a&&a.dataType);i&&gs(i,a,"normal")},e.prototype.remove=function(t,r){this.group.removeAll()},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,a){this.render(t,r,n,a)},e.prototype.updateLayout=function(t,r,n,a){this.render(t,r,n,a)},e.prototype.updateVisual=function(t,r,n,a){this.render(t,r,n,a)},e.prototype.eachRendered=function(t){zu(this.group,t)},e.markUpdateMethod=function(t,r){Al(t).updateMethod=r},e.protoInitialize=(function(){var t=e.prototype;t.type="chart"})(),e})();function ps(e,t,r){e&&Ra(e)&&(t==="emphasis"?Ia:ka)(e,r)}function gs(e,t,r){var n=En(e,t),a=t&&t.highlightKey!=null?tv(t.highlightKey):null;n!=null?S(Se(n),function(i){ps(e.getItemGraphicEl(i),r,a)}):e.eachItemGraphicEl(function(i){ps(i,r,a)})}si(xt);Ln(xt);function gp(e){return pp(e.model)}function yp(e){var t=e.model,r=e.ecModel,n=e.api,a=e.payload,i=t.pipelineContext.progressiveRender,o=e.view,s=a&&Al(a).updateMethod,u=i?"incrementalPrepareRender":s&&o[s]?s:"render";return u!=="render"&&o[u](t,r,n,a),mp[u]}var mp={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},_n="\0__throttleOriginMethod",ys="\0__throttleRate",ms="\0__throttleType";function El(e,t,r){var n,a=0,i=0,o=null,s,u,l,v;t=t||0;function c(){i=new Date().getTime(),o=null,e.apply(u,l||[])}var h=function(){for(var f=[],d=0;d<arguments.length;d++)f[d]=arguments[d];n=new Date().getTime(),u=this,l=f;var g=v||t,p=v||r;v=null,s=n-(p?a:i)-g,clearTimeout(o),p?o=setTimeout(c,g):s>=0?c():o=setTimeout(c,-s),a=n};return h.clear=function(){o&&(clearTimeout(o),o=null)},h.debounceNextCall=function(f){v=f},h}function Pm(e,t,r,n){var a=e[t];if(a){var i=a[_n]||a,o=a[ms],s=a[ys];if(s!==r||o!==n){if(r==null||!n)return e[t]=i;a=e[t]=El(i,r,n==="debounce"),a[_n]=i,a[ms]=n,a[ys]=r}return a}}function Lm(e,t){var r=e[t];r&&r[_n]&&(r.clear&&r.clear(),e[t]=r[_n])}var _s=ye(),Ss={itemStyle:wr(qu,!0),lineStyle:wr(Yu,!0)},_p={lineStyle:"stroke",itemStyle:"fill"};function Rl(e,t){var r=e.visualStyleMapper||Ss[t];return r||(console.warn("Unknown style type '"+t+"'."),Ss.itemStyle)}function Pl(e,t){var r=e.visualDrawType||_p[t];return r||(console.warn("Unknown style type '"+t+"'."),"fill")}var Sp={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",a=e.getModel(n),i=Rl(e,n),o=i(a),s=a.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var u=Pl(e,n),l=o[u],v=K(l)?l:null,c=o.fill==="auto"||o.stroke==="auto";if(!o[u]||v||c){var h=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[u]||(o[u]=h,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||K(o.fill)?h:o.fill,o.stroke=o.stroke==="auto"||K(o.stroke)?h:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",u),!t.isSeriesFiltered(e)&&v)return r.setVisual("colorFromPalette",!1),{dataEach:function(f,d){var g=e.getDataParams(d),p=P({},o);p[u]=v(g),f.setItemVisual(d,"style",p)}}}},er=new pe,bp={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",a=Rl(e,n),i=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var u=o.getRawDataItem(s);if(u&&u[n]){er.option=u[n];var l=a(er),v=o.ensureUniqueItemVisual(s,"style");P(v,l),er.option.decal&&(o.setItemVisual(s,"decal",er.option.decal),er.option.decal.dirty=!0),i in l&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},wp={performRawSeries:!0,overallReset:function(e){var t=U();e.eachSeries(function(r){var n=r.getColorBy();if(!r.isColorBySeries()){var a=r.type+"-"+n,i=t.get(a);i||(i={},t.set(a,i)),_s(r).scope=i}}),e.eachSeries(function(r){if(!(r.isColorBySeries()||e.isSeriesFiltered(r))){var n=r.getRawData(),a={},i=r.getData(),o=_s(r).scope,s=r.visualStyleAccessPath||"itemStyle",u=Pl(r,s);i.each(function(l){var v=i.getRawIndex(l);a[v]=l}),n.each(function(l){var v=a[l],c=i.getItemVisual(v,"colorFromPalette");if(c){var h=i.ensureUniqueItemVisual(v,"style"),f=n.getName(l)||l+"",d=n.count();h[u]=r.getColorFromPalette(f,o,d)}})}})}},Wr=Math.PI;function Mp(e,t){t=t||{},Ke(t,{text:"loading",textColor:_e.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:_e.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var r=new xn,n=new lt({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(n);var a=new _r({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),i=new lt({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});r.add(i);var o;return t.showSpinner&&(o=new zn({shape:{startAngle:-Wr/2,endAngle:-Wr/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Wr*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Wr*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=a.getBoundingRect().width,u=t.showSpinner?t.spinnerRadius:0,l=(e.getWidth()-u*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:u),v=e.getHeight()/2;t.showSpinner&&o.setShape({cx:l,cy:v}),i.setShape({x:l-u,y:v-u,width:u*2,height:u*2}),n.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},r.resize(),r}var Ll=(function(){function e(t,r,n,a){this._stageTaskMap=U(),this.ecInstance=t,this.api=r,n=this._dataProcessorHandlers=n.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=n.concat(a)}return e.prototype.restoreData=function(t,r){t.restoreData(r),this._stageTaskMap.each(function(n){var a=n.overallTask;a&&a.dirty()})},e.prototype.getPerformArgs=function(t,r){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),a=n.context,i=!r&&n.progressiveEnabled&&(!a||a.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=i?n.step:null,s=a&&a.modDataCount,u=s!=null?Math.ceil(s/o):null;return{step:o,modBy:u,modDataCount:s}}},e.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},e.prototype.updateStreamModes=function(t,r){var n=this._pipelineMap.get(t.uid),a=t.getData(),i=a.count(),o=n.progressiveEnabled&&r.incrementalPrepareRender&&i>=n.threshold,s=t.get("large")&&i>=t.get("largeThreshold"),u=t.get("progressiveChunkMode")==="mod"?i:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:u,large:s}},e.prototype.restorePipelines=function(t){var r=this,n=r._pipelineMap=U();t.eachSeries(function(a){var i=a.getProgressive(),o=a.uid;n.set(o,{id:o,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:i&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),r._pipe(a,a.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,r=this.api.getModel(),n=this.api;S(this._allHandlers,function(a){var i=t.get(a.uid)||t.set(a.uid,{}),o="";Xe(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,i,r,n),a.overallReset&&this._createOverallStageTask(a,i,r,n)},this)},e.prototype.prepareView=function(t,r,n,a){var i=t.renderTask,o=i.context;o.model=r,o.ecModel=n,o.api=a,i.__block=!t.incrementalPrepareRender,this._pipe(r,i)},e.prototype.performDataProcessorTasks=function(t,r){this._performStageTasks(this._dataProcessorHandlers,t,r,{block:!0})},e.prototype.performVisualTasks=function(t,r,n){this._performStageTasks(this._visualHandlers,t,r,n)},e.prototype._performStageTasks=function(t,r,n,a){a=a||{};var i=!1,o=this;S(t,function(u,l){if(!(a.visualType&&a.visualType!==u.visualType)){var v=o._stageTaskMap.get(u.uid),c=v.seriesTaskMap,h=v.overallTask;if(h){var f,d=h.agentStubMap;d.each(function(p){s(a,p)&&(p.dirty(),f=!0)}),f&&h.dirty(),o.updatePayload(h,n);var g=o.getPerformArgs(h,a.block);d.each(function(p){p.perform(g)}),h.perform(g)&&(i=!0)}else c&&c.each(function(p,y){s(a,p)&&p.dirty();var m=o.getPerformArgs(p,a.block);m.skip=!u.performRawSeries&&r.isSeriesFiltered(p.context.model),o.updatePayload(p,n),p.perform(m)&&(i=!0)})}});function s(u,l){return u.setDirty&&(!u.dirtyMap||u.dirtyMap.get(l.__pipeline.id))}this.unfinished=i||this.unfinished},e.prototype.performSeriesTasks=function(t){var r;t.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(t){var r=t.tail;do{if(r.__block){t.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},e.prototype.updatePayload=function(t,r){r!=="remain"&&(t.context.payload=r)},e.prototype._createSeriesStageTask=function(t,r,n,a){var i=this,o=r.seriesTaskMap,s=r.seriesTaskMap=U(),u=t.seriesType,l=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(v):u?n.eachRawSeriesByType(u,v):l&&l(n,a).each(v);function v(c){var h=c.uid,f=s.set(h,o&&o.get(h)||yr({plan:Ip,reset:kp,count:Ep}));f.context={model:c,ecModel:n,api:a,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(c,f)}},e.prototype._createOverallStageTask=function(t,r,n,a){var i=this,o=r.overallTask=r.overallTask||yr({reset:Tp});o.context={ecModel:n,api:a,overallReset:t.overallReset,scheduler:i};var s=o.agentStubMap,u=o.agentStubMap=U(),l=t.seriesType,v=t.getTargetSeries,c=!0,h=!1,f="";Xe(!t.createOnAllSeries,f),l?n.eachRawSeriesByType(l,d):v?v(n,a).each(d):(c=!1,S(n.getSeries(),d));function d(g){var p=g.uid,y=u.set(p,s&&s.get(p)||(h=!0,yr({reset:Cp,onDirty:xp})));y.context={model:g,overallProgress:c},y.agent=o,y.__block=c,i._pipe(g,y)}h&&o.dirty()},e.prototype._pipe=function(t,r){var n=t.uid,a=this._pipelineMap.get(n);!a.head&&(a.head=r),a.tail&&a.tail.pipe(r),a.tail=r,r.__idxInPipeline=a.count++,r.__pipeline=a},e.wrapStageHandler=function(t,r){return K(t)&&(t={overallReset:t,seriesType:Rp(t)}),t.uid=Un("stageHandler"),r&&(t.visualType=r),t},e})();function Tp(e){e.overallReset(e.ecModel,e.api,e.payload)}function Cp(e){return e.overallProgress&&Dp}function Dp(){this.agent.dirty(),this.getDownstream().dirty()}function xp(){this.agent&&this.agent.dirty()}function Ip(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function kp(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Se(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?N(t,function(r,n){return Ol(n)}):Ap}var Ap=Ol(0);function Ol(e){return function(t,r){var n=r.data,a=r.resetDefines[e];if(a&&a.dataEach)for(var i=t.start;i<t.end;i++)a.dataEach(n,i);else a&&a.progress&&a.progress(t,n)}}function Ep(e){return e.data.count()}function Rp(e){Sn=null;try{e(Cr,Nl)}catch{}return Sn}var Cr={},Nl={},Sn;Bl(Cr,Fi);Bl(Nl,fl);Cr.eachSeriesByType=Cr.eachRawSeriesByType=function(e){Sn=e};Cr.eachComponent=function(e){e.mainType==="series"&&e.subType&&(Sn=e.subType)};function Bl(e,t){for(var r in t.prototype)e[r]=$t}var C=_e.darkColor,Pp=C.background,tr=function(){return{axisLine:{lineStyle:{color:C.axisLine}},splitLine:{lineStyle:{color:C.axisSplitLine}},splitArea:{areaStyle:{color:[C.backgroundTint,C.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:C.axisMinorSplitLine}},axisLabel:{color:C.axisLabel},axisName:{}}},bs={label:{color:C.secondary},itemStyle:{borderColor:C.borderTint},dividerLineStyle:{color:C.border}},Fl={darkMode:!0,color:C.theme,backgroundColor:Pp,axisPointer:{lineStyle:{color:C.border},crossStyle:{color:C.borderShade},label:{color:C.tertiary}},legend:{textStyle:{color:C.secondary},pageTextStyle:{color:C.tertiary}},textStyle:{color:C.secondary},title:{textStyle:{color:C.primary},subtextStyle:{color:C.quaternary}},toolbox:{iconStyle:{borderColor:C.accent50}},tooltip:{backgroundColor:C.neutral20,defaultBorderColor:C.border,textStyle:{color:C.tertiary}},dataZoom:{borderColor:C.accent10,textStyle:{color:C.tertiary},brushStyle:{color:C.backgroundTint},handleStyle:{color:C.neutral00,borderColor:C.accent20},moveHandleStyle:{color:C.accent40},emphasis:{handleStyle:{borderColor:C.accent50}},dataBackground:{lineStyle:{color:C.accent30},areaStyle:{color:C.accent20}},selectedDataBackground:{lineStyle:{color:C.accent50},areaStyle:{color:C.accent30}}},visualMap:{textStyle:{color:C.secondary},handleStyle:{borderColor:C.neutral30}},timeline:{lineStyle:{color:C.accent10},label:{color:C.tertiary},controlStyle:{color:C.accent30,borderColor:C.accent30}},calendar:{itemStyle:{color:C.neutral00,borderColor:C.neutral20},dayLabel:{color:C.tertiary},monthLabel:{color:C.secondary},yearLabel:{color:C.secondary}},matrix:{x:bs,y:bs,backgroundColor:{borderColor:C.axisLine},body:{itemStyle:{borderColor:C.borderTint}}},timeAxis:tr(),logAxis:tr(),valueAxis:tr(),categoryAxis:tr(),line:{symbol:"circle"},graph:{color:C.theme},gauge:{title:{color:C.secondary},axisLine:{lineStyle:{color:[[1,C.neutral05]]}},axisLabel:{color:C.axisLabel},detail:{color:C.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:C.background}},radar:(function(){var e=tr();return e.axisName={color:C.axisLabel},e.axisLine.lineStyle.color=C.neutral20,e})(),treemap:{breadcrumb:{itemStyle:{color:C.neutral20,textStyle:{color:C.secondary}},emphasis:{itemStyle:{color:C.neutral30}}}},sunburst:{itemStyle:{borderColor:C.background}},map:{itemStyle:{borderColor:C.border,areaColor:C.neutral10},label:{color:C.tertiary},emphasis:{label:{color:C.primary},itemStyle:{areaColor:C.highlight}},select:{label:{color:C.primary},itemStyle:{areaColor:C.highlight}}},geo:{itemStyle:{borderColor:C.border,areaColor:C.neutral10},emphasis:{label:{color:C.primary},itemStyle:{areaColor:C.highlight}},select:{label:{color:C.primary},itemStyle:{color:C.highlight}}}};Fl.categoryAxis.splitLine.show=!1;var Lp=(function(){function e(){}return e.prototype.normalizeQuery=function(t){var r={},n={},a={};if(F(t)){var i=qe(t);r.mainType=i.main||null,r.subType=i.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};S(t,function(u,l){for(var v=!1,c=0;c<o.length;c++){var h=o[c],f=l.lastIndexOf(h);if(f>0&&f===l.length-h.length){var d=l.slice(0,f);d!=="data"&&(r.mainType=d,r[h.toLowerCase()]=u,v=!0)}}s.hasOwnProperty(l)&&(n[l]=u,v=!0),v||(a[l]=u)})}return{cptQuery:r,dataQuery:n,otherQuery:a}},e.prototype.filter=function(t,r){var n=this.eventInfo;if(!n)return!0;var a=n.targetEl,i=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var u=r.cptQuery,l=r.dataQuery;return v(u,o,"mainType")&&v(u,o,"subType")&&v(u,o,"index","componentIndex")&&v(u,o,"name")&&v(u,o,"id")&&v(l,i,"name")&&v(l,i,"dataIndex")&&v(l,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,r.otherQuery,a,i));function v(c,h,f,d){return c[f]==null||h[d||f]===c[f]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e})(),Xa=["symbol","symbolSize","symbolRotate","symbolOffset"],ws=Xa.concat(["symbolKeepAspect"]),Op={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData();if(e.legendIcon&&r.setVisual("legendIcon",e.legendIcon),!e.hasSymbolVisual)return;for(var n={},a={},i=!1,o=0;o<Xa.length;o++){var s=Xa[o],u=e.get(s);K(u)?(i=!0,a[s]=u):n[s]=u}if(n.symbol=n.symbol||e.defaultSymbol,r.setVisual(P({legendIcon:e.legendIcon||n.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},n)),t.isSeriesFiltered(e))return;var l=Qe(a);function v(c,h){for(var f=e.getRawValue(h),d=e.getDataParams(h),g=0;g<l.length;g++){var p=l[g];c.setItemVisual(h,p,a[p](f,d))}}return{dataEach:i?v:null}}},Np={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.hasSymbolVisual||t.isSeriesFiltered(e))return;var r=e.getData();function n(a,i){for(var o=a.getItemModel(i),s=0;s<ws.length;s++){var u=ws[s],l=o.getShallow(u,!0);l!=null&&a.setItemVisual(i,u,l)}}return{dataEach:r.hasItemOption?n:null}}};function Bp(e,t,r){switch(r){case"color":var n=e.getItemVisual(t,"style");return n[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,r)}}function Fp(e,t){switch(t){case"color":var r=e.getVisual("style");return r[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(t)}}function Om(e,t,r,n){switch(r){case"color":var a=e.ensureUniqueItemVisual(t,"style");a[e.getVisual("drawType")]=n,e.setItemVisual(t,"colorFromPalette",!1);break;case"opacity":e.ensureUniqueItemVisual(t,"style").opacity=n;break;case"symbol":case"symbolSize":case"liftZ":e.setItemVisual(t,r,n);break}}function Nm(e,t){function r(n,a){var i=[];return n.eachComponent({mainType:"series",subType:e,query:a},function(o){i.push(o.seriesIndex)}),i}S([[e+"ToggleSelect","toggleSelect"],[e+"Select","select"],[e+"UnSelect","unselect"]],function(n){t(n[0],function(a,i,o){a=P({},a),o.dispatchAction(P(a,{type:n[1],seriesIndex:r(i,a)}))})})}function zt(e,t,r,n,a){var i=e+t;r.isSilent(i)||n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,u=o.option.selectedMap,l=a.selected,v=0;v<l.length;v++)if(l[v].seriesIndex===s){var c=o.getData(),h=En(c,a.fromActionPayload);r.trigger(i,{type:i,seriesId:o.id,name:E(h)?c.getName(h[0]):c.getName(h),selected:F(u)?u:P({},u)})}})}function Vp(e,t,r){e.on("selectchanged",function(n){var a=r.getModel();n.isFromClick?(zt("map","selectchanged",t,a,n),zt("pie","selectchanged",t,a,n)):n.fromAction==="select"?(zt("map","selected",t,a,n),zt("pie","selected",t,a,n)):n.fromAction==="unselect"&&(zt("map","unselected",t,a,n),zt("pie","unselected",t,a,n))})}function Yr(e,t,r){for(var n;e&&!(t(e)&&(n=e,r));)e=e.__hostTarget||e.parent;return n}var zp=Math.round(Math.random()*9),Gp=typeof Object.defineProperty=="function",Up=(function(){function e(){this._id="__ec_inner_"+zp++}return e.prototype.get=function(t){return this._guard(t)[this._id]},e.prototype.set=function(t,r){var n=this._guard(t);return Gp?Object.defineProperty(n,this._id,{value:r,enumerable:!1,configurable:!0}):n[this._id]=r,this},e.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},e.prototype.has=function(t){return!!this._guard(t)[this._id]},e.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},e})(),Hp=ie.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,n=t.cy,a=t.width/2,i=t.height/2;e.moveTo(r,n-i),e.lineTo(r+a,n+i),e.lineTo(r-a,n+i),e.closePath()}}),Wp=ie.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,n=t.cy,a=t.width/2,i=t.height/2;e.moveTo(r,n-i),e.lineTo(r+a,n),e.lineTo(r,n+i),e.lineTo(r-a,n),e.closePath()}}),Yp=ie.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.x,n=t.y,a=t.width/5*3,i=Math.max(a,t.height),o=a/2,s=o*o/(i-o),u=n-i+o+s,l=Math.asin(s/o),v=Math.cos(l)*o,c=Math.sin(l),h=Math.cos(l),f=o*.6,d=o*.7;e.moveTo(r-v,u+s),e.arc(r,u,o,Math.PI-l,Math.PI*2+l),e.bezierCurveTo(r+v-c*f,u+s+h*f,r,n-d,r,n),e.bezierCurveTo(r,n-d,r-v+c*f,u+s+h*f,r-v,u+s),e.closePath()}}),qp=ie.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.height,n=t.width,a=t.x,i=t.y,o=n/3*2;e.moveTo(a,i),e.lineTo(a+o,i+r),e.lineTo(a,i+r/4*3),e.lineTo(a-o,i+r),e.lineTo(a,i),e.closePath()}}),$p={line:Vn,rect:lt,roundRect:lt,square:lt,circle:Fn,diamond:Wp,pin:Yp,arrow:qp,triangle:Hp},Xp={line:function(e,t,r,n,a){a.x1=e,a.y1=t+n/2,a.x2=e+r,a.y2=t+n/2},rect:function(e,t,r,n,a){a.x=e,a.y=t,a.width=r,a.height=n},roundRect:function(e,t,r,n,a){a.x=e,a.y=t,a.width=r,a.height=n,a.r=Math.min(r,n)/4},square:function(e,t,r,n,a){var i=Math.min(r,n);a.x=e,a.y=t,a.width=i,a.height=i},circle:function(e,t,r,n,a){a.cx=e+r/2,a.cy=t+n/2,a.r=Math.min(r,n)/2},diamond:function(e,t,r,n,a){a.cx=e+r/2,a.cy=t+n/2,a.width=r,a.height=n},pin:function(e,t,r,n,a){a.x=e+r/2,a.y=t+n/2,a.width=r,a.height=n},arrow:function(e,t,r,n,a){a.x=e+r/2,a.y=t+n/2,a.width=r,a.height=n},triangle:function(e,t,r,n,a){a.cx=e+r/2,a.cy=t+n/2,a.width=r,a.height=n}},Ka={};S($p,function(e,t){Ka[t]=new e});var Kp=ie.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,r){var n=Hc(e,t,r),a=this.shape;return a&&a.symbolType==="pin"&&t.position==="inside"&&(n.y=r.y+r.height*.4),n},buildPath:function(e,t,r){var n=t.symbolType;if(n!=="none"){var a=Ka[n];a||(n="rect",a=Ka[n]),Xp[n](t.x,t.y,t.width,t.height,a.shape),a.buildPath(e,a.shape,r)}}});function Zp(e,t){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=e,r.fill=t||_e.color.neutral00,r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=e:r.fill=e,this.markRedraw()}}function Qp(e,t,r,n,a,i,o){var s=e.indexOf("empty")===0;s&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var u;return e.indexOf("image://")===0?u=Ou(e.slice(8),new rt(t,r,n,a),o?"center":"cover"):e.indexOf("path://")===0?u=bi(e.slice(7),{},new rt(t,r,n,a),o?"center":"cover"):u=new Kp({shape:{symbolType:e,x:t,y:r,width:n,height:a}}),u.__isEmptyBrush=s,u.setColor=Zp,i&&u.setColor(i),u}function Bm(e){return E(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function Fm(e,t){if(e!=null)return E(e)||(e=[e,e]),[oe(e[0],t[0])||0,oe(se(e[1],e[0]),t[1])||0]}var ua=new Up,Ms=new Wc(100),Ts=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Cs(e,t){if(e==="none")return null;var r=t.getDevicePixelRatio(),n=t.getZr(),a=n.painter.type==="svg";e.dirty&&ua.delete(e);var i=ua.get(e);if(i)return i;var o=Ke(e,{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 u(s),s.rotation=o.rotation,s.scaleX=s.scaleY=a?1:1/r,ua.set(e,s),e.dirty=!1,s;function u(l){for(var v=[r],c=!0,h=0;h<Ts.length;++h){var f=o[Ts[h]];if(f!=null&&!E(f)&&!F(f)&&!ae(f)&&typeof f!="boolean"){c=!1;break}v.push(f)}var d;if(c){d=v.join(",")+(a?"-svg":"");var g=Ms.get(d);g&&(a?l.svgElement=g:l.image=g)}var p=zl(o.dashArrayX),y=Jp(o.dashArrayY),m=Vl(o.symbol),_=jp(p),b=Gl(y),M=!a&&nu.createCanvas(),w=a&&{tag:"g",attrs:{},key:"dcl",children:[]},T=D(),x;M&&(M.width=T.width*r,M.height=T.height*r,x=M.getContext("2d")),I(),c&&Ms.put(d,M||w),l.image=M,l.svgElement=w,l.svgWidth=T.width,l.svgHeight=T.height;function D(){for(var k=1,V=0,A=_.length;V<A;++V)k=vo(k,_[V]);for(var L=1,V=0,A=m.length;V<A;++V)L=vo(L,m[V].length);k*=L;var H=b*_.length*m.length;return{width:Math.max(1,Math.min(k,o.maxTileWidth)),height:Math.max(1,Math.min(H,o.maxTileHeight))}}function I(){x&&(x.clearRect(0,0,M.width,M.height),o.backgroundColor&&(x.fillStyle=o.backgroundColor,x.fillRect(0,0,M.width,M.height)));for(var k=0,V=0;V<y.length;++V)k+=y[V];if(k<=0)return;for(var A=-b,L=0,H=0,R=0;A<T.height;){if(L%2===0){for(var j=H/2%m.length,W=0,$=0,ee=0;W<T.width*2;){for(var B=0,V=0;V<p[R].length;++V)B+=p[R][V];if(B<=0)break;if($%2===0){var G=(1-o.symbolSize)*.5,te=W+p[R][$]*G,at=A+y[L]*G,Kt=p[R][$]*o.symbolSize,Zt=y[L]*o.symbolSize,kr=ee/2%m[j].length;Ar(te,at,Kt,Zt,m[j][kr])}W+=p[R][$],++ee,++$,$===p[R].length&&($=0)}++R,R===p.length&&(R=0)}A+=y[L],++H,++L,L===y.length&&(L=0)}function Ar(Re,Pe,O,Y,Ic){var Er=a?1:r,Zi=Qp(Ic,Re*Er,Pe*Er,O*Er,Y*Er,o.color,o.symbolKeepAspect);if(a){var Qi=n.painter.renderOneToVNode(Zi);Qi&&w.children.push(Qi)}else Yc(x,Zi)}}}}function Vl(e){if(!e||e.length===0)return[["rect"]];if(F(e))return[[e]];for(var t=!0,r=0;r<e.length;++r)if(!F(e[r])){t=!1;break}if(t)return Vl([e]);for(var n=[],r=0;r<e.length;++r)F(e[r])?n.push([e[r]]):n.push(e[r]);return n}function zl(e){if(!e||e.length===0)return[[0,0]];if(ae(e)){var t=Math.ceil(e);return[[t,t]]}for(var r=!0,n=0;n<e.length;++n)if(!ae(e[n])){r=!1;break}if(r)return zl([e]);for(var a=[],n=0;n<e.length;++n)if(ae(e[n])){var t=Math.ceil(e[n]);a.push([t,t])}else{var t=N(e[n],function(s){return Math.ceil(s)});t.length%2===1?a.push(t.concat(t)):a.push(t)}return a}function Jp(e){if(!e||typeof e=="object"&&e.length===0)return[0,0];if(ae(e)){var t=Math.ceil(e);return[t,t]}var r=N(e,function(n){return Math.ceil(n)});return e.length%2?r.concat(r):r}function jp(e){return N(e,function(t){return Gl(t)})}function Gl(e){for(var t=0,r=0;r<e.length;++r)t+=e[r];return e.length%2===1?t*2:t}function eg(e,t){e.eachRawSeries(function(r){if(!e.isSeriesFiltered(r)){var n=r.getData();n.hasItemVisual()&&n.each(function(o){var s=n.getItemVisual(o,"decal");if(s){var u=n.ensureUniqueItemVisual(o,"style");u.decal=Cs(s,t)}});var a=n.getVisual("decal");if(a){var i=n.getVisual("style");i.decal=Cs(a,t)}}})}var Be=new kn,Ul={};function tg(e,t){Ul[e]=t}function Hl(e){return Ul[e]}var Wl={};function Yl(e,t){Wl[e]=t}function Vm(e){return Wl[e]}var zm="6.0.0",Gm={zrender:"6.0.0"},rg=1,ng=800,ag=900,ig=1e3,og=2e3,sg=5e3,ql=1e3,ug=1100,Gi=2e3,$l=3e3,lg=4e3,Yn=4500,cg=4600,fg=5e3,vg=6e3,Xl=7e3,hg={PROCESSOR:{FILTER:ig,SERIES_FILTER:ng,STATISTIC:sg},VISUAL:{LAYOUT:ql,PROGRESSIVE_LAYOUT:ug,GLOBAL:Gi,CHART:$l,POST_CHART_LAYOUT:cg,COMPONENT:lg,BRUSH:fg,CHART_ITEM:Yn,ARIA:vg,DECAL:Xl}},ne="__flagInMainProcess",qr="__mainProcessVersion",ue="__pendingUpdate",la="__needsUpdateStatus",Ds=/^[a-zA-Z0-9_]+$/,ca="__connectUpdateStatus",xs=0,dg=1,pg=2;function Kl(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(this.isDisposed()){this.id;return}return Ql(this,e,t)}}function Zl(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Ql(this,e,t)}}function Ql(e,t,r){return r[0]=r[0]&&r[0].toLowerCase(),kn.prototype[t].apply(e,r)}var Jl=(function(e){q(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(kn),jl=Jl.prototype;jl.on=Zl("on");jl.off=Zl("off");var Mt,fa,$r,je,Xr,va,ha,Gt,Ut,Is,ks,da,As,Kr,Es,ec,Ie,Rs,Ht,bn=(function(e){q(t,e);function t(r,n,a){var i=e.call(this,new Lp)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],a=a||{},i._dom=r;var o="canvas",s="auto",u=!1;i[qr]=1,a.ssr&&$c(function(h){var f=Te(h),d=f.dataIndex;if(d!=null){var g=U();return g.set("series_index",f.seriesIndex),g.set("data_index",d),f.ssrType&&g.set("ssr_type",f.ssrType),g}});var l=i._zr=so(r,{renderer:a.renderer||o,devicePixelRatio:a.devicePixelRatio,width:a.width,height:a.height,ssr:a.ssr,useDirtyRect:se(a.useDirtyRect,u),useCoarsePointer:se(a.useCoarsePointer,s),pointerSize:a.pointerSize});i._ssr=a.ssr,i._throttledZrFlush=El(ce(l.flush,l),17),i._updateTheme(n),i._locale=bh(a.locale||$u),i._coordSysMgr=new Li;var v=i._api=Es(i);function c(h,f){return h.__prio-f.__prio}return $n(Mn,c),$n(Ja,c),i._scheduler=new Ll(i,v,Ja,Mn),i._messageCenter=new Jl,i._initEvents(),i.resize=ce(i.resize,i),l.animation.on("frame",i._onframe,i),Is(l,i),ks(l,i),ln(i),i}return t.prototype._onframe=function(){if(!this._disposed){Rs(this);var r=this._scheduler;if(this[ue]){var n=this[ue].silent;this[ne]=!0,Ht(this);try{Mt(this),je.update.call(this,null,this[ue].updateParams)}catch(u){throw this[ne]=!1,this[ue]=null,u}this._zr.flush(),this[ne]=!1,this[ue]=null,Gt.call(this,n),Ut.call(this,n)}else if(r.unfinished){var a=rg,i=this._model,o=this._api;r.unfinished=!1;do{var s=+new Date;r.performSeriesTasks(i),r.performDataProcessorTasks(i),va(this,i),r.performVisualTasks(i),Kr(this,this._model,o,"remain",{}),a-=+new Date-s}while(a>0&&r.unfinished);r.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(r,n,a){if(!this[ne]){if(this._disposed){this.id;return}var i,o,s;if(z(n)&&(a=n.lazyUpdate,i=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[ne]=!0,Ht(this),!this._model||n){var u=new ld(this._api),l=this._theme,v=this._model=new Fi;v.scheduler=this._scheduler,v.ssr=this._ssr,v.init(null,null,null,l,this._locale,u)}this._model.setOption(r,{replaceMerge:o},ja);var c={seriesTransition:s,optionChanged:!0};if(a)this[ue]={silent:i,updateParams:c},this[ne]=!1,this.getZr().wakeUp();else{try{Mt(this),je.update.call(this,null,c)}catch(h){throw this[ue]=null,this[ne]=!1,h}this._ssr||this._zr.flush(),this[ue]=null,this[ne]=!1,Gt.call(this,i),Ut.call(this,i)}}},t.prototype.setTheme=function(r,n){if(!this[ne]){if(this._disposed){this.id;return}var a=this._model;if(a){var i=n&&n.silent,o=null;this[ue]&&(i==null&&(i=this[ue].silent),o=this[ue].updateParams,this[ue]=null),this[ne]=!0,Ht(this);try{this._updateTheme(r),a.setTheme(this._theme),Mt(this),je.update.call(this,{type:"setTheme"},o)}catch(s){throw this[ne]=!1,s}this[ne]=!1,Gt.call(this,i),Ut.call(this,i)}}},t.prototype._updateTheme=function(r){F(r)&&(r=tc[r]),r&&(r=Z(r),r&&hl(r,!0),this._theme=r)},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||ut.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},t.prototype.renderToCanvas=function(r){r=r||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(r){r=r||{};var n=this._zr.painter;return n.renderToString({useViewBox:r.useViewBox})},t.prototype.getSvgDataURL=function(){var r=this._zr,n=r.storage.getDisplayList();return S(n,function(a){a.stopAnimation(null,!0)}),r.painter.toDataURL()},t.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var n=r.excludeComponents,a=this._model,i=[],o=this;S(n,function(u){a.eachComponent({mainType:u},function(l){var v=o._componentsMap[l.__viewId];v.group.ignore||(i.push(v),v.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return S(i,function(u){u.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var n=r.type==="svg",a=this.group,i=Math.min,o=Math.max,s=1/0;if(Tn[a]){var u=s,l=s,v=-s,c=-s,h=[],f=r&&r.pixelRatio||this.getDevicePixelRatio();S(It,function(_,b){if(_.group===a){var M=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(Z(r)),w=_.getDom().getBoundingClientRect();u=i(w.left,u),l=i(w.top,l),v=o(w.right,v),c=o(w.bottom,c),h.push({dom:M,left:w.left,top:w.top})}}),u*=f,l*=f,v*=f,c*=f;var d=v-u,g=c-l,p=nu.createCanvas(),y=so(p,{renderer:n?"svg":"canvas"});if(y.resize({width:d,height:g}),n){var m="";return S(h,function(_){var b=_.left-u,M=_.top-l;m+='<g transform="translate('+b+","+M+')">'+_.dom+"</g>"}),y.painter.getSvgRoot().innerHTML=m,r.connectedBackgroundColor&&y.painter.setBackgroundColor(r.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return r.connectedBackgroundColor&&y.add(new lt({shape:{x:0,y:0,width:d,height:g},style:{fill:r.connectedBackgroundColor}})),S(h,function(_){var b=new Dn({style:{x:_.left*f-u,y:_.top*f-l,image:_.dom}});y.add(b)}),y.refreshImmediately(),p.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},t.prototype.convertToPixel=function(r,n,a){return Xr(this,"convertToPixel",r,n,a)},t.prototype.convertToLayout=function(r,n,a){return Xr(this,"convertToLayout",r,n,a)},t.prototype.convertFromPixel=function(r,n,a){return Xr(this,"convertFromPixel",r,n,a)},t.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var a=this._model,i,o=Xn(a,r);return S(o,function(s,u){u.indexOf("Models")>=0&&S(s,function(l){var v=l.coordinateSystem;if(v&&v.containPoint)i=i||!!v.containPoint(n);else if(u==="seriesModels"){var c=this._chartsMap[l.__viewId];c&&c.containPoint&&(i=i||c.containPoint(n,l))}},this)},this),!!i},t.prototype.getVisual=function(r,n){var a=this._model,i=Xn(a,r,{defaultMainType:"series"}),o=i.seriesModel,s=o.getData(),u=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return u!=null?Bp(s,u,n):Fp(s,n)},t.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},t.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},t.prototype._initEvents=function(){var r=this;S(gg,function(a){var i=function(o){var s=r.getModel(),u=o.target,l,v=a==="globalout";if(v?l={}:u&&Yr(u,function(g){var p=Te(g);if(p&&p.dataIndex!=null){var y=p.dataModel||s.getSeriesByIndex(p.seriesIndex);return l=y&&y.getDataParams(p.dataIndex,p.dataType,u)||{},!0}else if(p.eventData)return l=P({},p.eventData),!0},!0),l){var c=l.componentType,h=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",h=l.seriesIndex);var f=c&&h!=null&&s.getComponent(c,h),d=f&&r[f.mainType==="series"?"_chartsMap":"_componentsMap"][f.__viewId];l.event=o,l.type=a,r._$eventProcessor.eventInfo={targetEl:u,packedEvent:l,model:f,view:d},r.trigger(a,l)}};i.zrEventfulCallAtLast=!0,r._zr.on(a,i,r)});var n=this._messageCenter;S(Qa,function(a,i){n.on(i,function(o){r.trigger(i,o)})}),Vp(n,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var r=this.getDom();r&&du(this.getDom(),Hi,"");var n=this,a=n._api,i=n._model;S(n._componentsViews,function(o){o.dispose(i,a)}),S(n._chartsViews,function(o){o.dispose(i,a)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete It[n.id]},t.prototype.resize=function(r){if(!this[ne]){if(this._disposed){this.id;return}this._zr.resize(r);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var a=n.resetOption("media"),i=r&&r.silent;this[ue]&&(i==null&&(i=this[ue].silent),a=!0,this[ue]=null),this[ne]=!0,Ht(this);try{a&&Mt(this),je.update.call(this,{type:"resize",animation:P({duration:0},r&&r.animation)})}catch(o){throw this[ne]=!1,o}this[ne]=!1,Gt.call(this,i),Ut.call(this,i)}}},t.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(z(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!ei[r]){var a=ei[r](this._api,n),i=this._zr;this._loadingFX=a,i.add(a)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(r){var n=P({},r);return n.type=Za[r.type],n},t.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(z(n)||(n={silent:!!n}),!!wn[r.type]&&this._model){if(this[ne]){this._pendingActions.push(r);return}var a=n.silent;ha.call(this,r,a);var i=n.flush;i?this._zr.flush():i!==!1&&ut.browser.weChat&&this._throttledZrFlush(),Gt.call(this,a),Ut.call(this,a)}},t.prototype.updateLabelLayout=function(){Be.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(r){if(this._disposed){this.id;return}var n=r.seriesIndex,a=this.getModel(),i=a.getSeriesByIndex(n);i.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=(function(){Mt=function(c){var h=c._scheduler;h.restorePipelines(c._model),h.prepareStageTasks(),fa(c,!0),fa(c,!1),h.plan()},fa=function(c,h){for(var f=c._model,d=c._scheduler,g=h?c._componentsViews:c._chartsViews,p=h?c._componentsMap:c._chartsMap,y=c._zr,m=c._api,_=0;_<g.length;_++)g[_].__alive=!1;h?f.eachComponent(function(w,T){w!=="series"&&b(T)}):f.eachSeries(b);function b(w){var T=w.__requireNewView;w.__requireNewView=!1;var x="_ec_"+w.id+"_"+w.type,D=!T&&p[x];if(!D){var I=qe(w.type),k=h?Tr.getClass(I.main,I.sub):xt.getClass(I.sub);D=new k,D.init(f,m),p[x]=D,g.push(D),y.add(D.group)}w.__viewId=D.__id=x,D.__alive=!0,D.__model=w,D.group.__ecComponentInfo={mainType:w.mainType,index:w.componentIndex},!h&&d.prepareView(D,w,f,m)}for(var _=0;_<g.length;){var M=g[_];M.__alive?_++:(!h&&M.renderTask.dispose(),y.remove(M.group),M.dispose(f,m),g.splice(_,1),p[M.__id]===M&&delete p[M.__id],M.__id=M.group.__ecComponentInfo=null)}},$r=function(c,h,f,d,g){var p=c._model;if(p.setUpdatePayload(f),!d){S([].concat(c._componentsViews).concat(c._chartsViews),M);return}var y={};y[d+"Id"]=f[d+"Id"],y[d+"Index"]=f[d+"Index"],y[d+"Name"]=f[d+"Name"];var m={mainType:d,query:y};g&&(m.subType=g);var _=f.excludeSeriesId,b;_!=null&&(b=U(),S(Se(_),function(w){var T=ze(w,null);T!=null&&b.set(T,!0)})),p&&p.eachComponent(m,function(w){var T=b&&b.get(w.id)!=null;if(!T)if(Co(f))if(w instanceof kt)f.type===Ct&&!f.notBlur&&!w.get(["emphasis","disabled"])&&qf(w,f,c._api);else{var x=vi(w.mainType,w.componentIndex,f.name,c._api),D=x.focusSelf,I=x.dispatchers;f.type===Ct&&D&&!f.notBlur&&Ea(w.mainType,w.componentIndex,c._api),I&&S(I,function(k){f.type===Ct?Ia(k):ka(k)})}else Pa(f)&&w instanceof kt&&(Kf(w,f,c._api),Mo(w),Ie(c))},c),p&&p.eachComponent(m,function(w){var T=b&&b.get(w.id)!=null;T||M(c[d==="series"?"_chartsMap":"_componentsMap"][w.__viewId])},c);function M(w){w&&w.__alive&&w[h]&&w[h](w.__model,p,c._api,f)}},je={prepareAndUpdate:function(c){Mt(this),je.update.call(this,c,c&&{optionChanged:c.newOption!=null})},update:function(c,h){var f=this._model,d=this._api,g=this._zr,p=this._coordSysMgr,y=this._scheduler;if(f){f.setUpdatePayload(c),y.restoreData(f,c),y.performSeriesTasks(f),p.create(f,d),y.performDataProcessorTasks(f,c),va(this,f),p.update(f,d),n(f),y.performVisualTasks(f,c);var m=f.get("backgroundColor")||"transparent";g.setBackgroundColor(m);var _=f.get("darkMode");_!=null&&_!=="auto"&&g.setDarkMode(_),da(this,f,d,c,h),Be.trigger("afterupdate",f,d)}},updateTransform:function(c){var h=this,f=this._model,d=this._api;if(f){f.setUpdatePayload(c);var g=[];f.eachComponent(function(y,m){if(y!=="series"){var _=h.getViewOfComponentModel(m);if(_&&_.__alive)if(_.updateTransform){var b=_.updateTransform(m,f,d,c);b&&b.update&&g.push(_)}else g.push(_)}});var p=U();f.eachSeries(function(y){var m=h._chartsMap[y.__viewId];if(m.updateTransform){var _=m.updateTransform(y,f,d,c);_&&_.update&&p.set(y.uid,1)}else p.set(y.uid,1)}),n(f),this._scheduler.performVisualTasks(f,c,{setDirty:!0,dirtyMap:p}),Kr(this,f,d,c,{},p),Be.trigger("afterupdate",f,d)}},updateView:function(c){var h=this._model;h&&(h.setUpdatePayload(c),xt.markUpdateMethod(c,"updateView"),n(h),this._scheduler.performVisualTasks(h,c,{setDirty:!0}),da(this,h,this._api,c,{}),Be.trigger("afterupdate",h,this._api))},updateVisual:function(c){var h=this,f=this._model;f&&(f.setUpdatePayload(c),f.eachSeries(function(d){d.getData().clearAllVisual()}),xt.markUpdateMethod(c,"updateVisual"),n(f),this._scheduler.performVisualTasks(f,c,{visualType:"visual",setDirty:!0}),f.eachComponent(function(d,g){if(d!=="series"){var p=h.getViewOfComponentModel(g);p&&p.__alive&&p.updateVisual(g,f,h._api,c)}}),f.eachSeries(function(d){var g=h._chartsMap[d.__viewId];g.updateVisual(d,f,h._api,c)}),Be.trigger("afterupdate",f,this._api))},updateLayout:function(c){je.update.call(this,c)}};function r(c,h,f,d,g){if(c._disposed){c.id;return}for(var p=c._model,y=c._coordSysMgr.getCoordinateSystems(),m,_=Xn(p,f),b=0;b<y.length;b++){var M=y[b];if(M[h]&&(m=M[h](p,_,d,g))!=null)return m}}Xr=r,va=function(c,h){var f=c._chartsMap,d=c._scheduler;h.eachSeries(function(g){d.updateStreamModes(g,f[g.__viewId])})},ha=function(c,h){var f=this,d=this.getModel(),g=c.type,p=c.escapeConnect,y=wn[g],m=(y.update||"update").split(":"),_=m.pop(),b=m[0]!=null&&qe(m[0]);this[ne]=!0,Ht(this);var M=[c],w=!1;c.batch&&(w=!0,M=N(c.batch,function(R){return R=Ke(P({},R),c),R.batch=null,R}));var T=[],x,D=[],I=y.nonRefinedEventType,k=Pa(c),V=Co(c);if(V&&Cu(this._api),S(M,function(R){var j=y.action(R,d,f._api);if(y.refineEvent?D.push(j):x=j,x=x||P({},R),x.type=I,T.push(x),V){var W=hu(c),$=W.queryOptionMap,ee=W.mainTypeSpecified,B=ee?$.keys()[0]:"series";$r(f,_,R,B),Ie(f)}else k?($r(f,_,R,"series"),Ie(f)):b&&$r(f,_,R,b.main,b.sub)}),_!=="none"&&!V&&!k&&!b)try{this[ue]?(Mt(this),je.update.call(this,c),this[ue]=null):je[_].call(this,c)}catch(R){throw this[ne]=!1,R}if(w?x={type:I,escapeConnect:p,batch:T}:x=T[0],this[ne]=!1,!h){var A=void 0;if(y.refineEvent){var L=y.refineEvent(D,c,d,this._api).eventContent;Xe(z(L)),A=Ke({type:y.refinedEventType},L),A.fromAction=c.type,A.fromActionPayload=c,A.escapeConnect=!0}var H=this._messageCenter;H.trigger(x.type,x),A&&H.trigger(A.type,A)}},Gt=function(c){for(var h=this._pendingActions;h.length;){var f=h.shift();ha.call(this,f,c)}},Ut=function(c){!c&&this.trigger("updated")},Is=function(c,h){c.on("rendered",function(f){h.trigger("rendered",f),c.animation.isFinished()&&!h[ue]&&!h._scheduler.unfinished&&!h._pendingActions.length&&h.trigger("finished")})},ks=function(c,h){c.on("mouseover",function(f){var d=f.target,g=Yr(d,Ra);g&&($f(g,f,h._api),Ie(h))}).on("mouseout",function(f){var d=f.target,g=Yr(d,Ra);g&&(Xf(g,f,h._api),Ie(h))}).on("click",function(f){var d=f.target,g=Yr(d,function(m){return Te(m).dataIndex!=null},!0);if(g){var p=g.selected?"unselect":"select",y=Te(g);h._api.dispatchAction({type:p,dataType:y.dataType,dataIndexInside:y.dataIndex,seriesIndex:y.seriesIndex,isFromClick:!0})}})};function n(c){c.clearColorPalette(),c.eachSeries(function(h){h.clearColorPalette()})}function a(c){var h=[],f=[],d=!1;if(c.eachComponent(function(m,_){var b=_.get("zlevel")||0,M=_.get("z")||0,w=_.getZLevelKey();d=d||!!w,(m==="series"?f:h).push({zlevel:b,z:M,idx:_.componentIndex,type:m,key:w})}),d){var g=h.concat(f),p,y;$n(g,function(m,_){return m.zlevel===_.zlevel?m.z-_.z:m.zlevel-_.zlevel}),S(g,function(m){var _=c.getComponent(m.type,m.idx),b=m.zlevel,M=m.key;p!=null&&(b=Math.max(p,b)),M?(b===p&&M!==y&&b++,y=M):y&&(b===p&&b++,y=""),p=b,_.setZLevel(b)})}}da=function(c,h,f,d,g){a(h),As(c,h,f,d,g),S(c._chartsViews,function(p){p.__alive=!1}),Kr(c,h,f,d,g),S(c._chartsViews,function(p){p.__alive||p.remove(h,f)})},As=function(c,h,f,d,g,p){S(p||c._componentsViews,function(y){var m=y.__model;l(m,y),y.render(m,h,f,d),u(m,y),v(m,y)})},Kr=function(c,h,f,d,g,p){var y=c._scheduler;g=P(g||{},{updatedSeries:h.getSeries()}),Be.trigger("series:beforeupdate",h,f,g);var m=!1;h.eachSeries(function(_){var b=c._chartsMap[_.__viewId];b.__alive=!0;var M=b.renderTask;y.updatePayload(M,d),l(_,b),p&&p.get(_.uid)&&M.dirty(),M.perform(y.getPerformArgs(M))&&(m=!0),b.group.silent=!!_.get("silent"),s(_,b),Mo(_)}),y.unfinished=m||y.unfinished,Be.trigger("series:layoutlabels",h,f,g),Be.trigger("series:transition",h,f,g),h.eachSeries(function(_){var b=c._chartsMap[_.__viewId];u(_,b),v(_,b)}),o(c,h),Be.trigger("series:afterupdate",h,f,g)},Ie=function(c){c[la]=!0,c.getZr().wakeUp()},Ht=function(c){c[qr]=(c[qr]+1)%1e3},Rs=function(c){c[la]&&(c.getZr().storage.traverse(function(h){dr(h)||i(h)}),c[la]=!1)};function i(c){for(var h=[],f=c.currentStates,d=0;d<f.length;d++){var g=f[d];g==="emphasis"||g==="blur"||g==="select"||h.push(g)}c.selected&&c.states.select&&h.push("select"),c.hoverState===Nn&&c.states.emphasis?h.push("emphasis"):c.hoverState===On&&c.states.blur&&h.push("blur"),c.useStates(h)}function o(c,h){var f=c._zr,d=f.storage,g=0;d.traverse(function(p){p.isGroup||g++}),g>h.get("hoverLayerThreshold")&&!ut.node&&!ut.worker&&h.eachSeries(function(p){if(!p.preventUsingHoverLayer){var y=c._chartsMap[p.__viewId];y.__alive&&y.eachRendered(function(m){m.states.emphasis&&(m.states.emphasis.hoverLayer=!0)})}})}function s(c,h){var f=c.get("blendMode")||null;h.eachRendered(function(d){d.isGroup||(d.style.blend=f)})}function u(c,h){if(!c.preventAutoZ){var f=Gu(c);h.eachRendered(function(d){return Uu(d,f.z,f.zlevel),!0})}}function l(c,h){h.eachRendered(function(f){if(!dr(f)){var d=f.getTextContent(),g=f.getTextGuideLine();f.stateTransition&&(f.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),g&&g.stateTransition&&(g.stateTransition=null),f.hasState()?(f.prevStates=f.currentStates,f.clearStates()):f.prevStates&&(f.prevStates=null)}})}function v(c,h){var f=c.getModel("stateAnimation"),d=c.isAnimationEnabled(),g=f.get("duration"),p=g>0?{duration:g,delay:f.get("delay"),easing:f.get("easing")}:null;h.eachRendered(function(y){if(y.states&&y.states.emphasis){if(dr(y))return;if(y instanceof ie&&rv(y),y.__dirty){var m=y.prevStates;m&&y.useStates(m)}if(d){y.stateTransition=p;var _=y.getTextContent(),b=y.getTextGuideLine();_&&(_.stateTransition=p),b&&(b.stateTransition=p)}y.__dirty&&i(y)}})}Es=function(c){return new((function(h){q(f,h);function f(){return h!==null&&h.apply(this,arguments)||this}return f.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},f.prototype.getComponentByElement=function(d){for(;d;){var g=d.__ecComponentInfo;if(g!=null)return c._model.getComponent(g.mainType,g.index);d=d.parent}},f.prototype.enterEmphasis=function(d,g){Ia(d,g),Ie(c)},f.prototype.leaveEmphasis=function(d,g){ka(d,g),Ie(c)},f.prototype.enterBlur=function(d){Yf(d),Ie(c)},f.prototype.leaveBlur=function(d){bu(d),Ie(c)},f.prototype.enterSelect=function(d){wu(d),Ie(c)},f.prototype.leaveSelect=function(d){Mu(d),Ie(c)},f.prototype.getModel=function(){return c.getModel()},f.prototype.getViewOfComponentModel=function(d){return c.getViewOfComponentModel(d)},f.prototype.getViewOfSeriesModel=function(d){return c.getViewOfSeriesModel(d)},f.prototype.getMainProcessVersion=function(){return c[qr]},f})(fl))(c)},ec=function(c){function h(f,d){for(var g=0;g<f.length;g++){var p=f[g];p[ca]=d}}S(Za,function(f,d){c._messageCenter.on(d,function(g){if(Tn[c.group]&&c[ca]!==xs){if(g&&g.escapeConnect)return;var p=c.makeActionFromEvent(g),y=[];S(It,function(m){m!==c&&m.group===c.group&&y.push(m)}),h(y,xs),S(y,function(m){m[ca]!==dg&&m.dispatchAction(p)}),h(y,pg)}})})}})(),t})(kn),Ui=bn.prototype;Ui.on=Kl("on");Ui.off=Kl("off");Ui.one=function(e,t,r){var n=this;function a(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];t&&t.apply&&t.apply(this,i),n.off(e,a)}this.on.call(this,e,a,r)};var gg=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var wn={},Za={},Qa={},Ja=[],ja=[],Mn=[],tc={},ei={},It={},Tn={},yg=+new Date-0,mg=+new Date-0,Hi="_echarts_instance_";function Um(e,t,r){var n=!(r&&r.ssr);if(n){var a=rc(e);if(a)return a}var i=new bn(e,t,r);return i.id="ec_"+yg++,It[i.id]=i,n&&du(e,Hi,i.id),ec(i),Be.trigger("afterinit",i),i}function Hm(e){if(E(e)){var t=e;e=null,S(t,function(r){r.group!=null&&(e=r.group)}),e=e||"g_"+mg++,S(t,function(r){r.group=e})}return Tn[e]=!0,e}function _g(e){Tn[e]=!1}var Wm=_g;function Ym(e){F(e)?e=It[e]:e instanceof bn||(e=rc(e)),e instanceof bn&&!e.isDisposed()&&e.dispose()}function rc(e){return It[wf(e,Hi)]}function qm(e){return It[e]}function nc(e,t){tc[e]=t}function ac(e){Ce(ja,e)<0&&ja.push(e)}function ic(e,t){Yi(Ja,e,t,og)}function Sg(e){Wi("afterinit",e)}function bg(e){Wi("afterupdate",e)}function Wi(e,t){Be.on(e,t)}function Xt(e,t,r){var n,a,i,o,s;K(t)&&(r=t,t=""),z(e)?(n=e.type,a=e.event,o=e.update,s=e.publishNonRefinedEvent,r||(r=e.action),i=e.refineEvent):(n=e,a=t);function u(v){return v.toLowerCase()}a=u(a||n);var l=i?u(n):a;wn[n]||(Xe(Ds.test(n)&&Ds.test(a)),i&&Xe(a!==n),wn[n]={actionType:n,refinedEventType:a,nonRefinedEventType:l,update:o,action:r,refineEvent:i},Qa[a]=1,i&&s&&(Qa[l]=1),Za[l]=n)}function wg(e,t){Li.register(e,t)}function $m(e){var t=Li.get(e);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()}function Xm(e,t){Yl(e,t)}function Mg(e,t){Yi(Mn,e,t,ql,"layout")}function Pt(e,t){Yi(Mn,e,t,$l,"visual")}var Ps=[];function Yi(e,t,r,n,a){if((K(t)||z(t))&&(r=t,t=n),!(Ce(Ps,r)>=0)){Ps.push(r);var i=Ll.wrapStageHandler(r,a);i.__prio=t,i.__raw=r,e.push(i)}}function oc(e,t){ei[e]=t}function Km(e){qc({createCanvas:e})}function Tg(e,t,r){var n=Hl("registerMap");n&&n(e,t,r)}function Zm(e){var t=Hl("getMap");return t&&t(e)}var Cg=Hd;Pt(Gi,Sp);Pt(Yn,bp);Pt(Yn,wp);Pt(Gi,Op);Pt(Yn,Np);Pt(Xl,eg);ac(hl);ic(ag,bd);oc("default",Mp);Xt({type:Ct,event:Ct,update:Ct},$t);Xt({type:tn,event:tn,update:tn},$t);Xt({type:cn,event:ci,update:cn,action:$t,refineEvent:qi,publishNonRefinedEvent:!0});Xt({type:xa,event:ci,update:xa,action:$t,refineEvent:qi,publishNonRefinedEvent:!0});Xt({type:fn,event:ci,update:fn,action:$t,refineEvent:qi,publishNonRefinedEvent:!0});function qi(e,t,r,n){return{eventContent:{selected:Zf(r),isFromClick:t.isFromClick||!1}}}nc("default",{});nc("dark",Fl);var Qm={};function rr(e){return e==null?0:e.length||1}function Ls(e){return e}var Dg=(function(){function e(t,r,n,a,i,o){this._old=t,this._new=r,this._oldKeyGetter=n||Ls,this._newKeyGetter=a||Ls,this.context=i,this._diffModeMultiple=o==="multiple"}return e.prototype.add=function(t){return this._add=t,this},e.prototype.update=function(t){return this._update=t,this},e.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},e.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},e.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},e.prototype.remove=function(t){return this._remove=t,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var t=this._old,r=this._new,n={},a=new Array(t.length),i=new Array(r.length);this._initIndexMap(t,null,a,"_oldKeyGetter"),this._initIndexMap(r,n,i,"_newKeyGetter");for(var o=0;o<t.length;o++){var s=a[o],u=n[s],l=rr(u);if(l>1){var v=u.shift();u.length===1&&(n[s]=u[0]),this._update&&this._update(v,o)}else l===1?(n[s]=null,this._update&&this._update(u,o)):this._remove&&this._remove(o)}this._performRestAdd(i,n)},e.prototype._executeMultiple=function(){var t=this._old,r=this._new,n={},a={},i=[],o=[];this._initIndexMap(t,n,i,"_oldKeyGetter"),this._initIndexMap(r,a,o,"_newKeyGetter");for(var s=0;s<i.length;s++){var u=i[s],l=n[u],v=a[u],c=rr(l),h=rr(v);if(c>1&&h===1)this._updateManyToOne&&this._updateManyToOne(v,l),a[u]=null;else if(c===1&&h>1)this._updateOneToMany&&this._updateOneToMany(v,l),a[u]=null;else if(c===1&&h===1)this._update&&this._update(v,l),a[u]=null;else if(c>1&&h>1)this._updateManyToMany&&this._updateManyToMany(v,l),a[u]=null;else if(c>1)for(var f=0;f<c;f++)this._remove&&this._remove(l[f]);else this._remove&&this._remove(l)}this._performRestAdd(o,a)},e.prototype._performRestAdd=function(t,r){for(var n=0;n<t.length;n++){var a=t[n],i=r[a],o=rr(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);r[a]=null}},e.prototype._initIndexMap=function(t,r,n,a){for(var i=this._diffModeMultiple,o=0;o<t.length;o++){var s="_ec_"+this[a](t[o],o);if(i||(n[o]=s),!!r){var u=r[s],l=rr(u);l===0?(r[s]=o,i&&n.push(s)):l===1?r[s]=[u,o]:u.push(o)}}},e})(),xg=(function(){function e(t,r){this._encode=t,this._schema=r}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},e})();function Ig(e,t){var r={},n=r.encode={},a=U(),i=[],o=[],s={};S(e.dimensions,function(h){var f=e.getDimensionInfo(h),d=f.coordDim;if(d){var g=f.coordDimIndex;pa(n,d)[g]=h,f.isExtraCoord||(a.set(d,1),kg(f.type)&&(i[0]=h),pa(s,d)[g]=e.getDimensionIndex(f.name)),f.defaultTooltip&&o.push(h)}Zh.each(function(p,y){var m=pa(n,y),_=f.otherDims[y];_!=null&&_!==!1&&(m[_]=f.name)})});var u=[],l={};a.each(function(h,f){var d=n[f];l[f]=d[0],u=u.concat(d)}),r.dataDimsOnCoord=u,r.dataDimIndicesOnCoord=N(u,function(h){return e.getDimensionInfo(h).storeDimIndex}),r.encodeFirstDimNotExtra=l;var v=n.label;v&&v.length&&(i=v.slice());var c=n.tooltip;return c&&c.length?o=c.slice():o.length||(o=i.slice()),n.defaultedLabel=i,n.defaultedTooltip=o,r.userOutput=new xg(s,t),r}function pa(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function Jm(e){return e==="category"?"ordinal":e==="time"?"time":"float"}function kg(e){return!(e==="ordinal"||e==="time")}var ga=(function(){function e(t){this.otherDims={},t!=null&&P(this,t)}return e})(),Ag=ye(),Eg={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},Rg=(function(){function e(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=Lg(this.source)))},e.prototype.getSourceDimensionIndex=function(t){return se(this._dimNameMap.get(t),-1)},e.prototype.getSourceDimension=function(t){var r=this.source.dimensionsDefine;if(r)return r[t]},e.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,r=gl(this.source),n=!Og(t),a="",i=[],o=0,s=0;o<t;o++){var u=void 0,l=void 0,v=void 0,c=this.dimensions[s];if(c&&c.storeDimIndex===o)u=r?c.name:null,l=c.type,v=c.ordinalMeta,s++;else{var h=this.getSourceDimension(o);h&&(u=r?h.name:null,l=h.type)}i.push({property:u,type:l,ordinalMeta:v}),r&&u!=null&&(!c||!c.isCalculationCoord)&&(a+=n?u.replace(/\`/g,"`1").replace(/\$/g,"`2"):u),a+="$",a+=Eg[l]||"f",v&&(a+=v.uid),a+="$"}var f=this.source,d=[f.seriesLayoutBy,f.startIndex,a].join("$$");return{dimensions:i,hash:d}},e.prototype.makeOutputDimensionNames=function(){for(var t=[],r=0,n=0;r<this._fullDimCount;r++){var a=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===r)i.isCalculationCoord||(a=i.name),n++;else{var o=this.getSourceDimension(r);o&&(a=o.name)}t.push(a)}return t},e.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e})();function sc(e){return e instanceof Rg}function Pg(e){for(var t=U(),r=0;r<(e||[]).length;r++){var n=e[r],a=z(n)?n.name:n;a!=null&&t.get(a)==null&&t.set(a,r)}return t}function Lg(e){var t=Ag(e);return t.dimNameMap||(t.dimNameMap=Pg(e.dimensionsDefine))}function Og(e){return e>30}var nr=z,ot=N,Ng=typeof Int32Array>"u"?Array:Int32Array,Bg="e\0\0",Os=-1,Fg=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Vg=["_approximateExtent"],Ns,Zr,ar,ir,ya,or,ma,jm=(function(){function e(t,r){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var n,a=!1;sc(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(a=!0,n=t),n=n||["x","y"];for(var i={},o=[],s={},u=!1,l={},v=0;v<n.length;v++){var c=n[v],h=F(c)?new ga({name:c}):c instanceof ga?c:new ga(c),f=h.name;h.type=h.type||"float",h.coordDim||(h.coordDim=f,h.coordDimIndex=0);var d=h.otherDims=h.otherDims||{};o.push(f),i[f]=h,l[f]!=null&&(u=!0),h.createInvertedIndices&&(s[f]=[]);var g=v;ae(h.storeDimIndex)&&(g=h.storeDimIndex),d.itemName===0&&(this._nameDimIdx=g),d.itemId===0&&(this._idDimIdx=g),a&&(h.storeDimIndex=v)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(u),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var p=this._dimIdxToName=U();S(o,function(y){p.set(i[y].storeDimIndex,y)})}}return e.prototype.getDimension=function(t){var r=this._recognizeDimIndex(t);if(r==null)return t;if(r=t,!this._dimOmitted)return this.dimensions[r];var n=this._dimIdxToName.get(r);if(n!=null)return n;var a=this._schema.getSourceDimension(r);if(a)return a.name},e.prototype.getDimensionIndex=function(t){var r=this._recognizeDimIndex(t);if(r!=null)return r;if(t==null)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},e.prototype._recognizeDimIndex=function(t){if(ae(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},e.prototype._getStoreDimIndex=function(t){var r=this.getDimensionIndex(t);return r},e.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},e.prototype._initGetDimensionInfo=function(t){var r=this._dimInfos;this._getDimInfo=t?function(n){return r.hasOwnProperty(n)?r[n]:void 0}:function(n){return r[n]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(t,r){var n=this._dimSummary;if(r==null)return n.encodeFirstDimNotExtra[t];var a=n.encode[t];return a?a[r]:null},e.prototype.mapDimensionsAll=function(t){var r=this._dimSummary,n=r.encode[t];return(n||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(t,r,n){var a=this,i;if(t instanceof Ha&&(i=t),!i){var o=this.dimensions,s=dl(t)||Cn(t)?new yl(t,o.length):t;i=new Ha;var u=ot(o,function(l){return{type:a._dimInfos[l].type,property:l}});i.initData(s,u,n)}this._store=i,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=Ig(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(t){var r=this._store.appendData(t);this._doInit(r[0],r[1])},e.prototype.appendValues=function(t,r){var n=this._store.appendValues(t,r&&r.length),a=n.start,i=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=a;s<i;s++){var u=s-a;this._nameList[s]=r[u],o&&ma(this,s)}},e.prototype._updateOrdinalMeta=function(){for(var t=this._store,r=this.dimensions,n=0;n<r.length;n++){var a=this._dimInfos[r[n]];a.ordinalMeta&&t.collectOrdinalMeta(a.storeDimIndex,a.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==ct&&!t.fillStorage},e.prototype._doInit=function(t,r){if(!(t>=r)){var n=this._store,a=n.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=a.getSource().sourceFormat,u=s===Ue;if(u&&!a.pure)for(var l=[],v=t;v<r;v++){var c=a.getItem(v,l);if(!this.hasItemOption&&ff(c)&&(this.hasItemOption=!0),c){var h=c.name;i[v]==null&&h!=null&&(i[v]=ze(h,null));var f=c.id;o[v]==null&&f!=null&&(o[v]=ze(f,null))}}if(this._shouldMakeIdFromName())for(var v=t;v<r;v++)ma(this,v);Ns(this)}},e.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.setApproximateExtent=function(t,r){r=this.getDimension(r),this._approximateExtent[r]=t.slice()},e.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},e.prototype.setCalculationInfo=function(t,r){nr(t)?P(this._calculationInfo,t):this._calculationInfo[t]=r},e.prototype.getName=function(t){var r=this.getRawIndex(t),n=this._nameList[r];return n==null&&this._nameDimIdx!=null&&(n=ar(this,this._nameDimIdx,r)),n==null&&(n=""),n},e.prototype._getCategory=function(t,r){var n=this._store.get(t,r),a=this._store.getOrdinalMeta(t);return a?a.categories[n]:n},e.prototype.getId=function(t){return Zr(this,this.getRawIndex(t))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(t,r){var n=this._store,a=this._dimInfos[t];if(a)return n.get(a.storeDimIndex,r)},e.prototype.getByRawIndex=function(t,r){var n=this._store,a=this._dimInfos[t];if(a)return n.getByRawIndex(a.storeDimIndex,r)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},e.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},e.prototype.getValues=function(t,r){var n=this,a=this._store;return E(t)?a.getValues(ot(t,function(i){return n._getStoreDimIndex(i)}),r):a.getValues(t)},e.prototype.hasValue=function(t){for(var r=this._dimSummary.dataDimIndicesOnCoord,n=0,a=r.length;n<a;n++)if(isNaN(this._store.get(r[n],t)))return!1;return!0},e.prototype.indexOfName=function(t){for(var r=0,n=this._store.count();r<n;r++)if(this.getName(r)===t)return r;return-1},e.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},e.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},e.prototype.rawIndexOf=function(t,r){var n=t&&this._invertedIndicesMap[t],a=n&&n[r];return a==null||isNaN(a)?Os:a},e.prototype.each=function(t,r,n){K(t)&&(n=r,r=t,t=[]);var a=n||this,i=ot(ir(t),this._getStoreDimIndex,this);this._store.each(i,a?ce(r,a):r)},e.prototype.filterSelf=function(t,r,n){K(t)&&(n=r,r=t,t=[]);var a=n||this,i=ot(ir(t),this._getStoreDimIndex,this);return this._store=this._store.filter(i,a?ce(r,a):r),this},e.prototype.selectRange=function(t){var r=this,n={},a=Qe(t);return S(a,function(i){var o=r._getStoreDimIndex(i);n[o]=t[i]}),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(t,r,n){K(t)&&(n=r,r=t,t=[]),n=n||this;var a=[];return this.each(t,function(){a.push(r&&r.apply(this,arguments))},n),a},e.prototype.map=function(t,r,n,a){var i=n||a||this,o=ot(ir(t),this._getStoreDimIndex,this),s=or(this);return s._store=this._store.map(o,i?ce(r,i):r),s},e.prototype.modify=function(t,r,n,a){var i=n||a||this,o=ot(ir(t),this._getStoreDimIndex,this);this._store.modify(o,i?ce(r,i):r)},e.prototype.downSample=function(t,r,n,a){var i=or(this);return i._store=this._store.downSample(this._getStoreDimIndex(t),r,n,a),i},e.prototype.minmaxDownSample=function(t,r){var n=or(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),r),n},e.prototype.lttbDownSample=function(t,r){var n=or(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),r),n},e.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},e.prototype.getItemModel=function(t){var r=this.hostModel,n=this.getRawDataItem(t);return new pe(n,r,r&&r.ecModel)},e.prototype.diff=function(t){var r=this;return new Dg(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(n){return Zr(t,n)},function(n){return Zr(r,n)})},e.prototype.getVisual=function(t){var r=this._visual;return r&&r[t]},e.prototype.setVisual=function(t,r){this._visual=this._visual||{},nr(t)?P(this._visual,t):this._visual[t]=r},e.prototype.getItemVisual=function(t,r){var n=this._itemVisuals[t],a=n&&n[r];return a??this.getVisual(r)},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(t,r){var n=this._itemVisuals,a=n[t];a||(a=n[t]={});var i=a[r];return i==null&&(i=this.getVisual(r),E(i)?i=i.slice():nr(i)&&(i=P({},i)),a[r]=i),i},e.prototype.setItemVisual=function(t,r,n){var a=this._itemVisuals[t]||{};this._itemVisuals[t]=a,nr(r)?P(a,r):a[r]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){nr(t)?P(this._layout,t):this._layout[t]=r},e.prototype.getLayout=function(t){return this._layout[t]},e.prototype.getItemLayout=function(t){return this._itemLayouts[t]},e.prototype.setItemLayout=function(t,r,n){this._itemLayouts[t]=n?P(this._itemLayouts[t]||{},r):r},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(t,r){var n=this.hostModel&&this.hostModel.seriesIndex;Of(n,this.dataType,t,r),this._graphicEls[t]=r},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,r){S(this._graphicEls,function(n,a){n&&t&&t.call(r,n,a)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:ot(this.dimensions,this._getDimInfo,this),this.hostModel)),ya(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,r){var n=this[t];K(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var a=n.apply(this,arguments);return r.apply(this,[a].concat(Xc(arguments)))})},e.internalField=(function(){Ns=function(t){var r=t._invertedIndicesMap;S(r,function(n,a){var i=t._dimInfos[a],o=i.ordinalMeta,s=t._store;if(o){n=r[a]=new Ng(o.categories.length);for(var u=0;u<n.length;u++)n[u]=Os;for(var u=0;u<s.count();u++)n[s.get(i.storeDimIndex,u)]=u}})},ar=function(t,r,n){return ze(t._getCategory(r,n),null)},Zr=function(t,r){var n=t._idList[r];return n==null&&t._idDimIdx!=null&&(n=ar(t,t._idDimIdx,r)),n==null&&(n=Bg+r),n},ir=function(t){return E(t)||(t=t!=null?[t]:[]),t},or=function(t){var r=new e(t._schema?t._schema:ot(t.dimensions,t._getDimInfo,t),t.hostModel);return ya(r,t),r},ya=function(t,r){S(Fg.concat(r.__wrappedMethods||[]),function(n){r.hasOwnProperty(n)&&(t[n]=r[n])}),t.__wrappedMethods=r.__wrappedMethods,S(Vg,function(n){t[n]=Z(r[n])}),t._calculationInfo=P({},r._calculationInfo)},ma=function(t,r){var n=t._nameList,a=t._idList,i=t._nameDimIdx,o=t._idDimIdx,s=n[r],u=a[r];if(s==null&&i!=null&&(n[r]=s=ar(t,i,r)),u==null&&o!=null&&(a[r]=u=ar(t,o,r)),u==null&&s!=null){var l=t._nameRepeatCount,v=l[s]=(l[s]||0)+1;u=s,v>1&&(u+="__ec__"+v),a[r]=u}}})(),e})();function e_(e,t,r){r=r||{};var n=r.byIndex,a=r.stackedCoordDimension,i,o,s;zg(t)?i=t:(o=t.schema,i=o.dimensions,s=t.store);var u=!!(e&&e.get("stack")),l,v,c,h;if(S(i,function(m,_){F(m)&&(i[_]=m={name:m}),u&&!m.isExtraCoord&&(!n&&!l&&m.ordinalMeta&&(l=m),!v&&m.type!=="ordinal"&&m.type!=="time"&&(!a||a===m.coordDim)&&(v=m))}),v&&!n&&!l&&(n=!0),v){c="__\0ecstackresult_"+e.id,h="__\0ecstackedover_"+e.id,l&&(l.createInvertedIndices=!0);var f=v.coordDim,d=v.type,g=0;S(i,function(m){m.coordDim===f&&g++});var p={name:c,coordDim:f,coordDimIndex:g,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},y={name:h,coordDim:h,coordDimIndex:g+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(p.storeDimIndex=s.ensureCalculationDimension(h,d),y.storeDimIndex=s.ensureCalculationDimension(c,d)),o.appendCalculationDimension(p),o.appendCalculationDimension(y)):(i.push(p),i.push(y))}return{stackedDimension:v&&v.name,stackedByDimension:l&&l.name,isStackedByIndex:n,stackedOverDimension:h,stackResultDimension:c}}function zg(e){return!sc(e.schema)}function uc(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function Gg(e,t){return uc(e,t)?e.getCalculationInfo("stackResultDimension"):t}function t_(e){return e.type==="interval"||e.type==="log"}function Ug(e,t,r,n,a){var i={},o=i.interval=iu(t/r,!0);n!=null&&o<n&&(o=i.interval=n),a!=null&&o>a&&(o=i.interval=a);var s=i.intervalPrecision=Dr(o),u=i.niceTickExtent=[Ze(Math.ceil(e[0]/o)*o,s),Ze(Math.floor(e[1]/o)*o,s)];return Hg(u,e),i}function r_(e){var t=Math.pow(10,oi(e)),r=e/t;return r?r===2?r=3:r===3?r=5:r*=2:r=1,Ze(r*t)}function Dr(e){return tt(e)+2}function Bs(e,t,r){e[t]=Math.max(Math.min(e[t],r[1]),r[0])}function Hg(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),Bs(e,0,t),Bs(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function $i(e,t){return e>=t[0]&&e<=t[1]}var Wg=(function(){function e(){this.normalize=Fs,this.scale=Vs}return e.prototype.updateMethods=function(t){t.hasBreaks()?(this.normalize=ce(t.normalize,t),this.scale=ce(t.scale,t)):(this.normalize=Fs,this.scale=Vs)},e})();function Fs(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function Vs(e,t){return e*(t[1]-t[0])+t[0]}function zs(e,t,r){var n=Math.log(e);return[Math.log(r?t[0]:Math.max(0,t[0]))/n,Math.log(r?t[1]:Math.max(0,t[1]))/n]}var ht=(function(){function e(t){this._calculator=new Wg,this._setting=t||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(t){return this._setting[t]},e.prototype._innerUnionExtent=function(t){var r=this._extent;this._innerSetExtent(t[0]<r[0]?t[0]:r[0],t[1]>r[1]?t[1]:r[1])},e.prototype.unionExtentFromData=function(t,r){this._innerUnionExtent(t.getApproximateExtent(r))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(t,r){this._innerSetExtent(t,r)},e.prototype._innerSetExtent=function(t,r){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(r)||(n[1]=r),this._brkCtx&&this._brkCtx.update(n)},e.prototype.setBreaksFromOption=function(t){},e.prototype._innerSetBreak=function(t){this._brkCtx&&(this._brkCtx.setBreaks(t),this._calculator.updateMethods(this._brkCtx),this._brkCtx.update(this._extent))},e.prototype._innerGetBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},e.prototype.hasBreaks=function(){return this._brkCtx?this._brkCtx.hasBreaks():!1},e.prototype._getExtentSpanWithBreaks=function(){return this._brkCtx&&this._brkCtx.hasBreaks()?this._brkCtx.getExtentSpan():this._extent[1]-this._extent[0]},e.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(t){this._isBlank=t},e})();Ln(ht);var Yg=0,Gs=(function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++Yg,this._onCollect=t.onCollect}return e.createByAxisModel=function(t){var r=t.option,n=r.data,a=n&&N(n,qg);return new e({categories:a,needCollect:!a,deduplication:r.dedplication!==!1})},e.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},e.prototype.parseAndCollect=function(t){var r,n=this._needCollect;if(!F(t)&&!n)return t;if(n&&!this._deduplication)return r=this.categories.length,this.categories[r]=t,this._onCollect&&this._onCollect(t,r),r;var a=this._getOrCreateMap();return r=a.get(t),r==null&&(n?(r=this.categories.length,this.categories[r]=t,a.set(t,r),this._onCollect&&this._onCollect(t,r)):r=NaN),r},e.prototype._getOrCreateMap=function(){return this._map||(this._map=U(this.categories))},e})();function qg(e){return z(e)&&e.value!=null?e.value:e+""}var lc=(function(e){q(t,e);function t(r){var n=e.call(this,r)||this;n.type="ordinal";var a=n.getSetting("ordinalMeta");return a||(a=new Gs({})),E(a)&&(a=new Gs({categories:N(a,function(i){return z(i)?i.value:i})})),n._ordinalMeta=a,n._extent=n.getSetting("extent")||[0,a.categories.length-1],n}return t.prototype.parse=function(r){return r==null?NaN:F(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},t.prototype.contain=function(r){return $i(r,this._extent)&&r>=0&&r<this._ordinalMeta.categories.length},t.prototype.normalize=function(r){return r=this._getTickNumber(r),this._calculator.normalize(r,this._extent)},t.prototype.scale=function(r){return r=Math.round(this._calculator.scale(r,this._extent)),this.getRawOrdinalNumber(r)},t.prototype.getTicks=function(){for(var r=[],n=this._extent,a=n[0];a<=n[1];)r.push({value:a}),a++;return r},t.prototype.getMinorTicks=function(r){},t.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=r.ordinalNumbers,a=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,u=Math.min(s,n.length);o<u;++o){var l=n[o];a[o]=l,i[l]=o}for(var v=0;o<s;++o){for(;i[v]!=null;)v++;a.push(v),i[v]=o}},t.prototype._getTickNumber=function(r){var n=this._ticksByOrdinalNumber;return n&&r>=0&&r<n.length?n[r]:r},t.prototype.getRawOrdinalNumber=function(r){var n=this._ordinalNumbersByTick;return n&&r>=0&&r<n.length?n[r]:r},t.prototype.getLabel=function(r){if(!this.isBlank()){var n=this.getRawOrdinalNumber(r.value),a=this._ordinalMeta.categories[n];return a==null?"":a+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.isInExtentRange=function(r){return r=this._getTickNumber(r),this._extent[0]<=r&&this._extent[1]>=r},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t})(ht);ht.registerClass(lc);var st=Ze,xr=(function(e){q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="interval",r._interval=0,r._intervalPrecision=2,r}return t.prototype.parse=function(r){return r==null||r===""?NaN:Number(r)},t.prototype.contain=function(r){return $i(r,this._extent)},t.prototype.normalize=function(r){return this._calculator.normalize(r,this._extent)},t.prototype.scale=function(r){return this._calculator.scale(r,this._extent)},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(r){this._interval=r,this._niceExtent=this._extent.slice(),this._intervalPrecision=Dr(r)},t.prototype.getTicks=function(r){r=r||{};var n=this._interval,a=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=hn(),u=[];if(!n)return u;r.breakTicks;var l=1e4;a[0]<i[0]&&(r.expandToNicedExtent?u.push({value:st(i[0]-n,o)}):u.push({value:a[0]}));for(var v=function(d,g){return Math.round((g-d)/n)},c=i[0];c<=i[1];){if(u.push({value:c}),c=st(c+n,o),this._brkCtx){var h=this._brkCtx.calcNiceTickMultiple(c,v);h>=0&&(c=st(c+h*n,o))}if(u.length>0&&c===u[u.length-1].value)break;if(u.length>l)return[]}var f=u.length?u[u.length-1].value:i[1];return a[1]>f&&(r.expandToNicedExtent?u.push({value:st(f+n,o)}):u.push({value:a[1]})),r.breakTicks,u},t.prototype.getMinorTicks=function(r){for(var n=this.getTicks({expandToNicedExtent:!0}),a=[],i=this.getExtent(),o=1;o<n.length;o++){var s=n[o],u=n[o-1];if(!(u.break||s.break)){for(var l=0,v=[],c=s.value-u.value,h=c/r,f=Dr(h);l<r-1;){var d=st(u.value+(l+1)*h,f);d>i[0]&&d<i[1]&&v.push(d),l++}var g=hn();g&&g.pruneTicksByBreak("auto",v,this._getNonTransBreaks(),function(p){return p},this._interval,i),a.push(v)}}return a},t.prototype._getNonTransBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},t.prototype.getLabel=function(r,n){if(r==null)return"";var a=n&&n.precision;a==null?a=tt(r.value)||0:a==="auto"&&(a=this._intervalPrecision);var i=st(r.value,a,!0);return rl(i)},t.prototype.calcNiceTicks=function(r,n,a){r=r||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=Ug(i,o,r,n,a);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(r){var n=this._extent.slice();if(n[0]===n[1])if(n[0]!==0){var a=Math.abs(n[0]);r.fixMax||(n[1]+=a/2),n[0]-=a/2}else n[1]=1;var i=n[1]-n[0];isFinite(i)||(n[0]=0,n[1]=1),this._innerSetExtent(n[0],n[1]),n=this._extent.slice(),this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval);var o=this._interval,s=this._intervalPrecision;r.fixMin||(n[0]=st(Math.floor(n[0]/o)*o,s)),r.fixMax||(n[1]=st(Math.ceil(n[1]/o)*o,s)),this._innerSetExtent(n[0],n[1])},t.prototype.setNiceExtent=function(r,n){this._niceExtent=[r,n]},t.type="interval",t})(ht);ht.registerClass(xr);var cc=typeof Float32Array<"u",$g=cc?Float32Array:Array;function _a(e){return E(e)?cc?new Float32Array(e):e:new $g(e)}var ti="__ec_stack_";function fc(e){return e.get("stack")||ti+e.seriesIndex}function Xi(e){return e.dim+e.index}function n_(e){var t=[],r=e.axis,n="axis0";if(r.type==="category"){for(var a=r.getBandWidth(),i=0;i<e.count;i++)t.push(Ke({bandWidth:a,axisKey:n,stackId:ti+i},e));for(var o=dc(t),s=[],i=0;i<e.count;i++){var u=o[n][ti+i];u.offsetCenter=u.offset+u.width/2,s.push(u)}return s}}function vc(e,t){var r=[];return t.eachSeriesByType(e,function(n){pc(n)&&r.push(n)}),r}function Xg(e){var t={};S(e,function(u){var l=u.coordinateSystem,v=l.getBaseAxis();if(!(v.type!=="time"&&v.type!=="value"))for(var c=u.getData(),h=v.dim+"_"+v.index,f=c.getDimensionIndex(c.mapDimension(v.dim)),d=c.getStore(),g=0,p=d.count();g<p;++g){var y=d.get(f,g);t[h]?t[h].push(y):t[h]=[y]}});var r={};for(var n in t)if(t.hasOwnProperty(n)){var a=t[n];if(a){a.sort(function(u,l){return u-l});for(var i=null,o=1;o<a.length;++o){var s=a[o]-a[o-1];s>0&&(i=i===null?s:Math.min(i,s))}r[n]=i}}return r}function hc(e){var t=Xg(e),r=[];return S(e,function(n){var a=n.coordinateSystem,i=a.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var u=i.dim+"_"+i.index,l=t[u],v=Math.abs(o[1]-o[0]),c=i.scale.getExtent(),h=Math.abs(c[1]-c[0]);s=l?v/h*l:v}else{var f=n.getData();s=Math.abs(o[1]-o[0])/f.count()}var d=oe(n.get("barWidth"),s),g=oe(n.get("barMaxWidth"),s),p=oe(n.get("barMinWidth")||(gc(n)?.5:1),s),y=n.get("barGap"),m=n.get("barCategoryGap"),_=n.get("defaultBarGap");r.push({bandWidth:s,barWidth:d,barMaxWidth:g,barMinWidth:p,barGap:y,barCategoryGap:m,defaultBarGap:_,axisKey:Xi(i),stackId:fc(n)})}),dc(r)}function dc(e){var t={};S(e,function(n,a){var i=n.axisKey,o=n.bandWidth,s=t[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:n.defaultBarGap||0,stacks:{}},u=s.stacks;t[i]=s;var l=n.stackId;u[l]||s.autoWidthCount++,u[l]=u[l]||{width:0,maxWidth:0};var v=n.barWidth;v&&!u[l].width&&(u[l].width=v,v=Math.min(s.remainedWidth,v),s.remainedWidth-=v);var c=n.barMaxWidth;c&&(u[l].maxWidth=c);var h=n.barMinWidth;h&&(u[l].minWidth=h);var f=n.barGap;f!=null&&(s.gap=f);var d=n.barCategoryGap;d!=null&&(s.categoryGap=d)});var r={};return S(t,function(n,a){r[a]={};var i=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var u=Qe(i).length;s=Math.max(35-u*4,15)+"%"}var l=oe(s,o),v=oe(n.gap,1),c=n.remainedWidth,h=n.autoWidthCount,f=(c-l)/(h+(h-1)*v);f=Math.max(f,0),S(i,function(y){var m=y.maxWidth,_=y.minWidth;if(y.width){var b=y.width;m&&(b=Math.min(b,m)),_&&(b=Math.max(b,_)),y.width=b,c-=b+v*b,h--}else{var b=f;m&&m<b&&(b=Math.min(m,c)),_&&_>b&&(b=_),b!==f&&(y.width=b,c-=b+v*b,h--)}}),f=(c-l)/(h+(h-1)*v),f=Math.max(f,0);var d=0,g;S(i,function(y,m){y.width||(y.width=f),g=y,d+=y.width*(1+v)}),g&&(d-=g.width*v);var p=-d/2;S(i,function(y,m){r[a][m]=r[a][m]||{bandWidth:o,offset:p,width:y.width},p+=y.width*(1+v)})}),r}function Kg(e,t,r){if(e&&t){var n=e[Xi(t)];return n}}function a_(e,t){var r=vc(e,t),n=hc(r);S(r,function(a){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),u=fc(a),l=n[Xi(s)][u],v=l.offset,c=l.width;i.setLayout({bandWidth:l.bandWidth,offset:v,size:c})})}function i_(e){return{seriesType:e,plan:kl(),reset:function(t){if(pc(t)){var r=t.getData(),n=t.coordinateSystem,a=n.getBaseAxis(),i=n.getOtherAxis(a),o=r.getDimensionIndex(r.mapDimension(i.dim)),s=r.getDimensionIndex(r.mapDimension(a.dim)),u=t.get("showBackground",!0),l=r.mapDimension(i.dim),v=r.getCalculationInfo("stackResultDimension"),c=uc(r,l)&&!!r.getCalculationInfo("stackedOnSeries"),h=i.isHorizontal(),f=Zg(a,i),d=gc(t),g=t.get("barMinHeight")||0,p=v&&r.getDimensionIndex(v),y=r.getLayout("size"),m=r.getLayout("offset");return{progress:function(_,b){for(var M=_.count,w=d&&_a(M*3),T=d&&u&&_a(M*3),x=d&&_a(M),D=n.master.getRect(),I=h?D.width:D.height,k,V=b.getStore(),A=0;(k=_.next())!=null;){var L=V.get(c?p:o,k),H=V.get(s,k),R=f,j=void 0;c&&(j=+L-V.get(o,k));var W=void 0,$=void 0,ee=void 0,B=void 0;if(h){var G=n.dataToPoint([L,H]);if(c){var te=n.dataToPoint([j,H]);R=te[0]}W=R,$=G[1]+m,ee=G[0]-R,B=y,Math.abs(ee)<g&&(ee=(ee<0?-1:1)*g)}else{var G=n.dataToPoint([H,L]);if(c){var te=n.dataToPoint([H,j]);R=te[1]}W=G[0]+m,$=R,ee=y,B=G[1]-R,Math.abs(B)<g&&(B=(B<=0?-1:1)*g)}d?(w[A]=W,w[A+1]=$,w[A+2]=h?ee:B,T&&(T[A]=h?D.x:W,T[A+1]=h?$:D.y,T[A+2]=I),x[k]=k):b.setItemLayout(k,{x:W,y:$,width:ee,height:B}),A+=3}d&&b.setLayout({largePoints:w,largeDataIndices:x,largeBackgroundPoints:T,valueAxisHorizontal:h})}}}}}}function pc(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function gc(e){return e.pipelineContext&&e.pipelineContext.large}function Zg(e,t){var r=t.model.get("startValue");return r||(r=0),t.toGlobalCoord(t.dataToCoord(t.type==="log"?r>0?r:1:r))}var Qg=function(e,t,r,n){for(;r<n;){var a=r+n>>>1;e[a][1]<t?r=a+1:n=a}return r},yc=(function(e){q(t,e);function t(r){var n=e.call(this,r)||this;return n.type="time",n}return t.prototype.getLabel=function(r){var n=this.getSetting("useUTC");return xi(r.value,Ho[Eh(gr(this._minLevelUnit))]||Ho.second,n,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(r,n,a){var i=this.getSetting("useUTC"),o=this.getSetting("locale");return Rh(r,n,a,o,i)},t.prototype.getTicks=function(r){var n=this._interval,a=this._extent,i=[];if(!n)return i;var o=this.getSetting("useUTC"),s=dn(a[1],o);i.push({value:a[0],time:{level:0,upperTimeUnit:s,lowerTimeUnit:s}});var u=iy(this._minLevelUnit,this._approxInterval,o,a,this._getExtentSpanWithBreaks(),this._brkCtx);i=i.concat(u);var l=dn(a[1],o);i.push({value:a[1],time:{level:0,upperTimeUnit:l,lowerTimeUnit:l}}),this.getSetting("useUTC");var v=Dt.length-1,c=0;return S(i,function(h){v=Math.min(v,Ce(Dt,h.time.upperTimeUnit)),c=Math.max(c,h.time.level)}),i},t.prototype.calcNiceExtent=function(r){var n=this.getExtent();if(n[0]===n[1]&&(n[0]-=Ae,n[1]+=Ae),n[1]===-1/0&&n[0]===1/0){var a=new Date;n[1]=+new Date(a.getFullYear(),a.getMonth(),a.getDate()),n[0]=n[1]-Ae}this._innerSetExtent(n[0],n[1]),this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval)},t.prototype.calcNiceTicks=function(r,n,a){r=r||10;var i=this._getExtentSpanWithBreaks();this._approxInterval=i/r,n!=null&&this._approxInterval<n&&(this._approxInterval=n),a!=null&&this._approxInterval>a&&(this._approxInterval=a);var o=Qr.length,s=Math.min(Qg(Qr,this._approxInterval,0,o),o-1);this._interval=Qr[s][1],this._intervalPrecision=Dr(this._interval),this._minLevelUnit=Qr[Math.max(s-1,0)][0]},t.prototype.parse=function(r){return ae(r)?r:+Et(r)},t.prototype.contain=function(r){return $i(r,this._extent)},t.prototype.normalize=function(r){return this._calculator.normalize(r,this._extent)},t.prototype.scale=function(r){return this._calculator.scale(r,this._extent)},t.type="time",t})(xr),Qr=[["second",Ci],["minute",Di],["hour",pr],["quarter-day",pr*6],["half-day",pr*12],["day",Ae*1.2],["half-week",Ae*3.5],["week",Ae*7],["month",Ae*31],["quarter",Ae*95],["half-year",Uo/2],["year",Uo]];function Jg(e,t,r,n){return Fa(new Date(t),e,n).getTime()===Fa(new Date(r),e,n).getTime()}function jg(e,t){return e/=Ae,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function ey(e){var t=30*Ae;return e/=t,e>6?6:e>3?3:e>2?2:1}function ty(e){return e/=pr,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function Us(e,t){return e/=t?Di:Ci,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function ry(e){return iu(e,!0)}function ny(e,t,r){var n=Math.max(0,Ce(Dt,t)-1);return Fa(new Date(e),Dt[n],r).getTime()}function ay(e,t){var r=new Date(0);r[e](1);var n=r.getTime();r[e](1+t);var a=r.getTime()-n;return function(i,o){return Math.max(0,Math.round((o-i)/a))}}function iy(e,t,r,n,a,i){var o=1e4,s=xh,u=0;function l(A,L,H,R,j,W,$){for(var ee=ay(j,A),B=L,G=new Date(B);B<H&&B<=n[1]&&($.push({value:B}),!(u++>o));)if(G[j](G[R]()+A),B=G.getTime(),i){var te=i.calcNiceTickMultiple(B,ee);te>0&&(G[j](G[R]()+te*A),B=G.getTime())}$.push({value:B,notAdd:!0})}function v(A,L,H){var R=[],j=!L.length;if(!Jg(gr(A),n[0],n[1],r)){j&&(L=[{value:ny(n[0],A,r)},{value:n[1]}]);for(var W=0;W<L.length-1;W++){var $=L[W].value,ee=L[W+1].value;if($!==ee){var B=void 0,G=void 0,te=void 0,at=!1;switch(A){case"year":B=Math.max(1,Math.round(t/Ae/365)),G=Ku(r),te=Ph(r);break;case"half-year":case"quarter":case"month":B=ey(t),G=Ii(r),te=Zu(r);break;case"week":case"half-week":case"day":B=jg(t),G=ki(r),te=Qu(r),at=!0;break;case"half-day":case"quarter-day":case"hour":B=ty(t),G=Ai(r),te=Ju(r);break;case"minute":B=Us(t,!0),G=Ei(r),te=ju(r);break;case"second":B=Us(t,!1),G=Ri(r),te=el(r);break;case"millisecond":B=ry(t),G=Pi(r),te=tl(r);break}ee>=n[0]&&$<=n[1]&&l(B,$,ee,G,te,at,R),A==="year"&&H.length>1&&W===0&&H.unshift({value:H[0].value-B})}}for(var W=0;W<R.length;W++)H.push(R[W])}}for(var c=[],h=[],f=0,d=0,g=0;g<s.length;++g){var p=gr(s[g]);if(Ah(s[g])){v(s[g],c[c.length-1]||[],h);var y=s[g+1]?gr(s[g+1]):null;if(p!==y){if(h.length){d=f,h.sort(function(A,L){return A.value-L.value});for(var m=[],_=0;_<h.length;++_){var b=h[_].value;(_===0||h[_-1].value!==b)&&(m.push(h[_]),b>=n[0]&&b<=n[1]&&f++)}var M=a/t;if(f>M*1.5&&d>M/1.5||(c.push(m),f>M||e===s[g]))break}h=[]}}}for(var w=we(N(c,function(A){return we(A,function(L){return L.value>=n[0]&&L.value<=n[1]&&!L.notAdd})}),function(A){return A.length>0}),T=[],x=w.length-1,g=0;g<w.length;++g)for(var D=w[g],I=0;I<D.length;++I){var k=dn(D[I].value,r);T.push({value:D[I].value,time:{level:x-g,upperTimeUnit:k,lowerTimeUnit:k}})}T.sort(function(A,L){return A.value-L.value});for(var V=[],g=0;g<T.length;++g)(g===0||T[g].value!==T[g-1].value)&&V.push(T[g]);return V}ht.registerClass(yc);var ri=Ze,oy=Math.floor,sy=Math.ceil,Jr=Math.pow,jr=Math.log,mc=(function(e){q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="log",r.base=10,r._originalScale=new xr,r}return t.prototype.getTicks=function(r){r=r||{};var n=this._extent.slice(),a=this._originalScale.getExtent(),i=e.prototype.getTicks.call(this,r),o=this.base;return this._originalScale._innerGetBreaks(),N(i,function(s){var u=s.value,l=null,v=Jr(o,u);u===n[0]&&this._fixMin?l=a[0]:u===n[1]&&this._fixMax&&(l=a[1]);var c;return l!=null&&(v=Sa(v,l)),{value:v,break:c}},this)},t.prototype._getNonTransBreaks=function(){return this._originalScale._innerGetBreaks()},t.prototype.setExtent=function(r,n){this._originalScale.setExtent(r,n);var a=zs(this.base,[r,n]);e.prototype.setExtent.call(this,a[0],a[1])},t.prototype.getExtent=function(){var r=this.base,n=e.prototype.getExtent.call(this);n[0]=Jr(r,n[0]),n[1]=Jr(r,n[1]);var a=this._originalScale.getExtent();return this._fixMin&&(n[0]=Sa(n[0],a[0])),this._fixMax&&(n[1]=Sa(n[1],a[1])),n},t.prototype.unionExtentFromData=function(r,n){this._originalScale.unionExtentFromData(r,n);var a=zs(this.base,r.getApproximateExtent(n),!0);this._innerUnionExtent(a)},t.prototype.calcNiceTicks=function(r){r=r||10;var n=this._extent.slice(),a=this._getExtentSpanWithBreaks();if(!(!isFinite(a)||a<=0)){var i=of(a),o=r/a*i;for(o<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var s=[ri(sy(n[0]/i)*i),ri(oy(n[1]/i)*i)];this._interval=i,this._intervalPrecision=Dr(i),this._niceExtent=s}},t.prototype.calcNiceExtent=function(r){e.prototype.calcNiceExtent.call(this,r),this._fixMin=r.fixMin,this._fixMax=r.fixMax},t.prototype.contain=function(r){return r=jr(r)/jr(this.base),e.prototype.contain.call(this,r)},t.prototype.normalize=function(r){return r=jr(r)/jr(this.base),e.prototype.normalize.call(this,r)},t.prototype.scale=function(r){return r=e.prototype.scale.call(this,r),Jr(this.base,r)},t.prototype.setBreaksFromOption=function(r){},t.type="log",t})(xr);function Sa(e,t){return ri(e,tt(t))}ht.registerClass(mc);var uy=(function(){function e(t,r,n){this._prepareParams(t,r,n)}return e.prototype._prepareParams=function(t,r,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var a=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&r.getNeedCrossZero&&r.getNeedCrossZero();var i=r.get("min",!0);i==null&&(i=r.get("startValue",!0));var o=this._modelMinRaw=i;K(o)?this._modelMinNum=en(t,o({min:n[0],max:n[1]})):o!=="dataMin"&&(this._modelMinNum=en(t,o));var s=this._modelMaxRaw=r.get("max",!0);if(K(s)?this._modelMaxNum=en(t,s({min:n[0],max:n[1]})):s!=="dataMax"&&(this._modelMaxNum=en(t,s)),a)this._axisDataLen=r.getCategories().length;else{var u=r.get("boundaryGap"),l=E(u)?u:[u||0,u||0];typeof l[0]=="boolean"||typeof l[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[uo(l[0],1),uo(l[1],1)]}},e.prototype.calculate=function(){var t=this._isOrdinal,r=this._dataMin,n=this._dataMax,a=this._axisDataLen,i=this._boundaryGapInner,o=t?null:n-r||Math.abs(r),s=this._modelMinRaw==="dataMin"?r:this._modelMinNum,u=this._modelMaxRaw==="dataMax"?n:this._modelMaxNum,l=s!=null,v=u!=null;s==null&&(s=t?a?0:NaN:r-i[0]*o),u==null&&(u=t?a?a-1:NaN:n+i[1]*o),(s==null||!isFinite(s))&&(s=NaN),(u==null||!isFinite(u))&&(u=NaN);var c=Da(s)||Da(u)||t&&!a;this._needCrossZero&&(s>0&&u>0&&!l&&(s=0),s<0&&u<0&&!v&&(u=0));var h=this._determinedMin,f=this._determinedMax;return h!=null&&(s=h,l=!0),f!=null&&(u=f,v=!0),{min:s,max:u,minFixed:l,maxFixed:v,isBlank:c}},e.prototype.modifyDataMinMax=function(t,r){this[cy[t]]=r},e.prototype.setDeterminedMinMax=function(t,r){var n=ly[t];this[n]=r},e.prototype.freeze=function(){this.frozen=!0},e})(),ly={min:"_determinedMin",max:"_determinedMax"},cy={min:"_dataMin",max:"_dataMax"};function fy(e,t,r){var n=e.rawExtentInfo;return n||(n=new uy(e,t,r),e.rawExtentInfo=n,n)}function en(e,t){return t==null?null:Da(t)?NaN:e.parse(t)}function vy(e,t){var r=e.type,n=fy(e,t,e.getExtent()).calculate();e.setBlank(n.isBlank);var a=n.min,i=n.max,o=t.ecModel;if(o&&r==="time"){var s=vc("bar",o),u=!1;if(S(s,function(c){u=u||c.getBaseAxis()===t.axis}),u){var l=hc(s),v=hy(a,i,t,l);a=v.min,i=v.max}}return{extent:[a,i],fixMin:n.minFixed,fixMax:n.maxFixed}}function hy(e,t,r,n){var a=r.axis.getExtent(),i=Math.abs(a[1]-a[0]),o=Kg(n,r.axis);if(o===void 0)return{min:e,max:t};var s=1/0;S(o,function(f){s=Math.min(f.offset,s)});var u=-1/0;S(o,function(f){u=Math.max(f.offset+f.width,u)}),s=Math.abs(s),u=Math.abs(u);var l=s+u,v=t-e,c=1-(s+u)/i,h=v/c-v;return t+=h*(u/l),e-=h*(s/l),{min:e,max:t}}function o_(e,t){var r=t,n=vy(e,r),a=n.extent,i=r.get("splitNumber");e instanceof mc&&(e.base=r.get("logBase"));var o=e.type,s=r.get("interval"),u=o==="interval"||o==="time";e.setBreaksFromOption(gy(r)),e.setExtent(a[0],a[1]),e.calcNiceExtent({splitNumber:i,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:u?r.get("minInterval"):null,maxInterval:u?r.get("maxInterval"):null}),s!=null&&e.setInterval&&e.setInterval(s)}function s_(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new lc({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new yc({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(ht.getClass(t)||xr)}}function u_(e){var t=e.scale.getExtent(),r=t[0],n=t[1];return!(r>0&&n>0||r<0&&n<0)}function Ir(e){var t=e.getLabelModel().get("formatter");if(e.type==="time"){var r=Ih(t);return function(a,i){return e.scale.getFormattedLabel(a,i,r)}}else{if(F(t))return function(a){var i=e.scale.getLabel(a),o=t.replace("{value}",i??"");return o};if(K(t)){if(e.type==="category")return function(a,i){return t(Hs(e,a),a.value-e.scale.getExtent()[0],null)};var n=hn();return function(a,i){var o=null;return n&&(o=n.makeAxisLabelFormatterParamBreak(o,a.break)),t(Hs(e,a),i,o)}}else return function(a){return e.scale.getLabel(a)}}}function Hs(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function Ki(e){var t=e.get("interval");return t??"auto"}function dy(e){return e.type==="category"&&Ki(e.getLabelModel())===0}function py(e,t){var r={};return S(e.mapDimensionsAll(t),function(n){r[Gg(e,n)]=!0}),Qe(r)}function l_(e,t,r){t&&S(py(t,r),function(n){var a=t.getApproximateExtent(n);a[0]<e[0]&&(e[0]=a[0]),a[1]>e[1]&&(e[1]=a[1])})}function c_(e){return e==="middle"||e==="center"}function f_(e){return e.getShallow("show")}function gy(e){var t=e.get("breaks",!0);t==null}var v_=(function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e})(),Ws=[],yy={registerPreprocessor:ac,registerProcessor:ic,registerPostInit:Sg,registerPostUpdate:bg,registerUpdateLifecycle:Wi,registerAction:Xt,registerCoordinateSystem:wg,registerLayout:Mg,registerVisual:Pt,registerTransform:Cg,registerLoading:oc,registerMap:Tg,registerImpl:tg,PRIORITY:hg,ComponentModel:Q,ComponentView:Tr,SeriesModel:kt,ChartView:xt,registerComponentModel:function(e){Q.registerClass(e)},registerComponentView:function(e){Tr.registerClass(e)},registerSeriesModel:function(e){kt.registerClass(e)},registerChartView:function(e){xt.registerClass(e)},registerCustomSeries:function(e,t){Yl(e,t)},registerSubTypeDefaulter:function(e,t){Q.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){Kc(e,t)}};function my(e){if(E(e)){S(e,function(t){my(t)});return}Ce(Ws,e)>=0||(Ws.push(e),K(e)&&(e={install:e}),e.install(yy))}var _y=1e-8;function Ys(e,t){return Math.abs(e-t)<_y}function qs(e,t,r){var n=0,a=e[0];if(!a)return!1;for(var i=1;i<e.length;i++){var o=e[i];n+=lo(a[0],a[1],o[0],o[1],t,r),a=o}var s=e[0];return(!Ys(a[0],s[0])||!Ys(a[1],s[1]))&&(n+=lo(a[0],a[1],s[0],s[1],t,r)),n!==0}var Sy=[];function ba(e,t){for(var r=0;r<e.length;r++)Wt(e[r],e[r],t)}function $s(e,t,r,n){for(var a=0;a<e.length;a++){var i=e[a];n&&(i=n.project(i)),i&&isFinite(i[0])&&isFinite(i[1])&&(sr(t,t,i),ur(r,r,i))}}function by(e){for(var t=0,r=0,n=0,a=e.length,i=e[a-1][0],o=e[a-1][1],s=0;s<a;s++){var u=e[s][0],l=e[s][1],v=i*l-u*o;t+=v,r+=(i+u)*v,n+=(o+l)*v,i=u,o=l}return t?[r/t/3,n/t/3,t]:[e[0][0]||0,e[0][1]||0]}var _c=(function(){function e(t){this.name=t}return e.prototype.setCenter=function(t){this._center=t},e.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},e})(),Xs=(function(){function e(t,r){this.type="polygon",this.exterior=t,this.interiors=r}return e})(),Ks=(function(){function e(t){this.type="linestring",this.points=t}return e})(),wy=(function(e){q(t,e);function t(r,n,a){var i=e.call(this,r)||this;return i.type="geoJSON",i.geometries=n,i._center=a&&[a[0],a[1]],i}return t.prototype.calcCenter=function(){for(var r=this.geometries,n,a=0,i=0;i<r.length;i++){var o=r[i],s=o.exterior,u=s&&s.length;u>a&&(n=o,a=u)}if(n)return by(n.exterior);var l=this.getBoundingRect();return[l.x+l.width/2,l.y+l.height/2]},t.prototype.getBoundingRect=function(r){var n=this._rect;if(n&&!r)return n;var a=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return S(o,function(s){s.type==="polygon"?$s(s.exterior,a,i,r):S(s.points,function(u){$s(u,a,i,r)})}),isFinite(a[0])&&isFinite(a[1])&&isFinite(i[0])&&isFinite(i[1])||(a[0]=a[1]=i[0]=i[1]=0),n=new rt(a[0],a[1],i[0]-a[0],i[1]-a[1]),r||(this._rect=n),n},t.prototype.contain=function(r){var n=this.getBoundingRect(),a=this.geometries;if(!n.contain(r[0],r[1]))return!1;e:for(var i=0,o=a.length;i<o;i++){var s=a[i];if(s.type==="polygon"){var u=s.exterior,l=s.interiors;if(qs(u,r[0],r[1])){for(var v=0;v<(l?l.length:0);v++)if(qs(l[v],r[0],r[1]))continue e;return!0}}}return!1},t.prototype.transformTo=function(r,n,a,i){var o=this.getBoundingRect(),s=o.width/o.height;a?i||(i=a/s):a=s*i;for(var u=new rt(r,n,a,i),l=o.calculateTransform(u),v=this.geometries,c=0;c<v.length;c++){var h=v[c];h.type==="polygon"?(ba(h.exterior,l),S(h.interiors,function(f){ba(f,l)})):S(h.points,function(f){ba(f,l)})}o=this._rect,o.copy(u),this._center=[o.x+o.width/2,o.y+o.height/2]},t.prototype.cloneShallow=function(r){r==null&&(r=this.name);var n=new t(r,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},t})(_c),h_=(function(e){q(t,e);function t(r,n){var a=e.call(this,r)||this;return a.type="geoSVG",a._elOnlyForCalculate=n,a}return t.prototype.calcCenter=function(){for(var r=this._elOnlyForCalculate,n=r.getBoundingRect(),a=[n.x+n.width/2,n.y+n.height/2],i=js(Sy),o=r;o&&!o.isGeoSVGGraphicRoot;)eu(i,o.getLocalTransform(),i),o=o.parent;return tu(i,i),Wt(a,a,i),a},t})(_c);function My(e){if(!e.UTF8Encoding)return e;var t=e,r=t.UTF8Scale;r==null&&(r=1024);var n=t.features;return S(n,function(a){var i=a.geometry,o=i.encodeOffsets,s=i.coordinates;if(o)switch(i.type){case"LineString":i.coordinates=Sc(s,o,r);break;case"Polygon":wa(s,o,r);break;case"MultiLineString":wa(s,o,r);break;case"MultiPolygon":S(s,function(u,l){return wa(u,o[l],r)})}}),t.UTF8Encoding=!1,t}function wa(e,t,r){for(var n=0;n<e.length;n++)e[n]=Sc(e[n],t[n],r)}function Sc(e,t,r){for(var n=[],a=t[0],i=t[1],o=0;o<e.length;o+=2){var s=e.charCodeAt(o)-64,u=e.charCodeAt(o+1)-64;s=s>>1^-(s&1),u=u>>1^-(u&1),s+=a,u+=i,a=s,i=u,n.push([s/r,u/r])}return n}function d_(e,t){return e=My(e),N(we(e.features,function(r){return r.geometry&&r.properties&&r.geometry.coordinates.length>0}),function(r){var n=r.properties,a=r.geometry,i=[];switch(a.type){case"Polygon":var o=a.coordinates;i.push(new Xs(o[0],o.slice(1)));break;case"MultiPolygon":S(a.coordinates,function(u){u[0]&&i.push(new Xs(u[0],u.slice(1)))});break;case"LineString":i.push(new Ks([a.coordinates]));break;case"MultiLineString":i.push(new Ks(a.coordinates))}var s=new wy(n[t||"name"],i,n.cp);return s.properties=n,s})}var Ty=ye(),mr=ye(),qt={estimate:1,determine:2};function ni(e){return{out:{noPxChangeTryDetermine:[]},kind:e}}function bc(e,t){var r=N(t,function(n){return e.scale.parse(n)});return e.type==="time"&&r.length>0&&(r.sort(),r.unshift(r[0]),r.push(r[r.length-1])),r}function Cy(e,t){var r=e.getLabelModel().get("customValues");if(r){var n=Ir(e),a=e.scale.getExtent(),i=bc(e,r),o=we(i,function(s){return s>=a[0]&&s<=a[1]});return{labels:N(o,function(s){var u={value:s};return{formattedLabel:n(u),rawLabel:e.scale.getLabel(u),tickValue:s,time:void 0,break:void 0}})}}return e.type==="category"?xy(e,t):ky(e)}function Dy(e,t,r){var n=e.getTickModel().get("customValues");if(n){var a=e.scale.getExtent(),i=bc(e,n);return{ticks:we(i,function(o){return o>=a[0]&&o<=a[1]})}}return e.type==="category"?Iy(e,t):{ticks:N(e.scale.getTicks(r),function(o){return o.value})}}function xy(e,t){var r=e.getLabelModel(),n=wc(e,r,t);return!r.get("show")||e.scale.isBlank()?{labels:[]}:n}function wc(e,t,r){var n=Ey(e),a=Ki(t),i=r.kind===qt.estimate;if(!i){var o=Tc(n,a);if(o)return o}var s,u;K(a)?s=xc(e,a):(u=a==="auto"?Ry(e,r):a,s=Dc(e,u));var l={labels:s,labelCategoryInterval:u};return i?r.out.noPxChangeTryDetermine.push(function(){return ai(n,a,l),!0}):ai(n,a,l),l}function Iy(e,t){var r=Ay(e),n=Ki(t),a=Tc(r,n);if(a)return a;var i,o;if((!t.get("show")||e.scale.isBlank())&&(i=[]),K(n))i=xc(e,n,!0);else if(n==="auto"){var s=wc(e,e.getLabelModel(),ni(qt.determine));o=s.labelCategoryInterval,i=N(s.labels,function(u){return u.tickValue})}else o=n,i=Dc(e,o,!0);return ai(r,n,{ticks:i,tickCategoryInterval:o})}function ky(e){var t=e.scale.getTicks(),r=Ir(e);return{labels:N(t,function(n,a){return{formattedLabel:r(n,a),rawLabel:e.scale.getLabel(n),tickValue:n.value,time:n.time,break:n.break}})}}var Ay=Mc("axisTick"),Ey=Mc("axisLabel");function Mc(e){return function(r){return mr(r)[e]||(mr(r)[e]={list:[]})}}function Tc(e,t){for(var r=0;r<e.list.length;r++)if(e.list[r].key===t)return e.list[r].value}function ai(e,t,r){return e.list.push({key:t,value:r}),r}function Ry(e,t){if(t.kind===qt.estimate){var r=e.calculateCategoryInterval(t);return t.out.noPxChangeTryDetermine.push(function(){return mr(e).autoInterval=r,!0}),r}var n=mr(e).autoInterval;return n??(mr(e).autoInterval=e.calculateCategoryInterval(t))}function Py(e,t){var r=t.kind,n=Oy(e),a=Ir(e),i=(n.axisRotate-n.labelRotate)/180*Math.PI,o=e.scale,s=o.getExtent(),u=o.count();if(s[1]-s[0]<1)return 0;var l=1,v=40;u>v&&(l=Math.max(1,Math.floor(u/v)));for(var c=s[0],h=e.dataToCoord(c+1)-e.dataToCoord(c),f=Math.abs(h*Math.cos(i)),d=Math.abs(h*Math.sin(i)),g=0,p=0;c<=s[1];c+=l){var y=0,m=0,_=Zc(a({value:c}),n.font,"center","top");y=_.width*1.3,m=_.height*1.3,g=Math.max(g,y,7),p=Math.max(p,m,7)}var b=g/f,M=p/d;isNaN(b)&&(b=1/0),isNaN(M)&&(M=1/0);var w=Math.max(0,Math.floor(Math.min(b,M)));if(r===qt.estimate)return t.out.noPxChangeTryDetermine.push(ce(Ly,null,e,w,u)),w;var T=Cc(e,w,u);return T??w}function Ly(e,t,r){return Cc(e,t,r)==null}function Cc(e,t,r){var n=Ty(e.model),a=e.getExtent(),i=n.lastAutoInterval,o=n.lastTickCount;if(i!=null&&o!=null&&Math.abs(i-t)<=1&&Math.abs(o-r)<=1&&i>t&&n.axisExtent0===a[0]&&n.axisExtent1===a[1])return i;n.lastTickCount=r,n.lastAutoInterval=t,n.axisExtent0=a[0],n.axisExtent1=a[1]}function Oy(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function Dc(e,t,r){var n=Ir(e),a=e.scale,i=a.getExtent(),o=e.getLabelModel(),s=[],u=Math.max((t||0)+1,1),l=i[0],v=a.count();l!==0&&u>1&&v/u>2&&(l=Math.round(Math.ceil(l/u)*u));var c=dy(e),h=o.get("showMinLabel")||c,f=o.get("showMaxLabel")||c;h&&l!==i[0]&&g(i[0]);for(var d=l;d<=i[1];d+=u)g(d);f&&d-u!==i[1]&&g(i[1]);function g(p){var y={value:p};s.push(r?p:{formattedLabel:n(y),rawLabel:a.getLabel(y),tickValue:p,time:void 0,break:void 0})}return s}function xc(e,t,r){var n=e.scale,a=Ir(e),i=[];return S(n.getTicks(),function(o){var s=n.getLabel(o),u=o.value;t(o.value,s)&&i.push(r?u:{formattedLabel:a(o),rawLabel:s,tickValue:u,time:void 0,break:void 0})}),i}var Zs=[0,1],p_=(function(){function e(t,r,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=r,this._extent=n||[0,0]}return e.prototype.contain=function(t){var r=this._extent,n=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);return t>=n&&t<=a},e.prototype.containData=function(t){return this.scale.contain(this.scale.parse(t))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(t){return tf(t||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(t,r){var n=this._extent;n[0]=t,n[1]=r},e.prototype.dataToCoord=function(t,r){var n=this._extent,a=this.scale;return t=a.normalize(a.parse(t)),this.onBand&&a.type==="ordinal"&&(n=n.slice(),Qs(n,a.count())),fo(t,Zs,n,r)},e.prototype.coordToData=function(t,r){var n=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(n=n.slice(),Qs(n,a.count()));var i=fo(t,n,Zs,r);return this.scale.scale(i)},e.prototype.pointToData=function(t,r){},e.prototype.getTicksCoords=function(t){t=t||{};var r=t.tickModel||this.getTickModel(),n=Dy(this,r,{breakTicks:t.breakTicks,pruneByBreak:t.pruneByBreak}),a=n.ticks,i=N(a,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=r.get("alignWithLabel");return Ny(this,i,o,t.clamp),i},e.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),r=t.get("splitNumber");r>0&&r<100||(r=5);var n=this.scale.getMinorTicks(r),a=N(n,function(i){return N(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},e.prototype.getViewLabels=function(t){return t=t||ni(qt.determine),Cy(this,t).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var t=this._extent,r=this.scale.getExtent(),n=r[1]-r[0]+(this.onBand?1:0);n===0&&(n=1);var a=Math.abs(t[1]-t[0]);return Math.abs(a)/n},e.prototype.calculateCategoryInterval=function(t){return t=t||ni(qt.determine),Py(this,t)},e})();function Qs(e,t){var r=e[1]-e[0],n=t,a=r/n/2;e[0]+=a,e[1]-=a}function Ny(e,t,r,n){var a=t.length;if(!e.onBand||r||!a)return;var i=e.getExtent(),o,s;if(a===1)t[0].coord=i[0],t[0].onBand=!0,o=t[1]={coord:i[1],tickValue:t[0].tickValue,onBand:!0};else{var u=t[a-1].tickValue-t[0].tickValue,l=(t[a-1].coord-t[0].coord)/u;S(t,function(f){f.coord-=l/2,f.onBand=!0});var v=e.scale.getExtent();s=1+v[1]-t[a-1].tickValue,o={coord:t[a-1].coord+l*s,tickValue:v[1]+1,onBand:!0},t.push(o)}var c=i[0]>i[1];h(t[0].coord,i[0])&&(n?t[0].coord=i[0]:t.shift()),n&&h(i[0],t[0].coord)&&t.unshift({coord:i[0],onBand:!0}),h(i[1],o.coord)&&(n?o.coord=i[1]:t.pop()),n&&h(o.coord,i[1])&&t.push({coord:i[1],onBand:!0});function h(f,d){return f=Ze(f),d=Ze(d),c?f>d:f<d}}export{Ou as $,v_ as A,Wy as B,Gy as C,Ze as D,xi as E,Fa as F,zn as G,mi as H,Fn as I,hi as J,Rv as K,Vn as L,pe as M,xv as N,yi as O,gi as P,pi as Q,Iv as R,di as S,Zv as T,Qv as U,Jv as V,zv as W,Fv as X,Gv as Y,qv as Z,Pu as _,Oo as a,kl as a$,bi as a0,Uv as a1,Ge as a2,Bu as a3,Si as a4,rl as a5,vm as a6,fm as a7,Oh as a8,Nh as a9,Xu as aA,Tg as aB,Sg as aC,bg as aD,ac as aE,ic as aF,nc as aG,Cg as aH,Wi as aI,Pt as aJ,Km as aK,El as aL,my as aM,zm as aN,_o as aO,vt as aP,_e as aQ,_a as aR,Bh as aS,em as aT,jy as aU,En as aV,Jy as aW,am as aX,im as aY,Mf as aZ,wi as a_,Lh as aa,lm as ab,xt as ac,Q as ad,Tr as ae,kt as af,p_ as ag,jm as ah,hg as ai,Hm as aj,Qm as ak,Gm as al,Wm as am,_g as an,Ym as ao,$m as ap,rc as aq,qm as ar,Zm as as,Um as at,d_ as au,Xt as av,wg as aw,Xm as ax,Mg as ay,oc as az,Qp as b,jh as b$,um as b0,zu as b1,Ov as b2,rm as b3,om as b4,a_ as b5,i_ as b6,mm as b7,ye as b8,Mm as b9,_m as bA,Li as bB,sp as bC,Of as bD,sm as bE,Ia as bF,ka as bG,Ky as bH,Jm as bI,wm as bJ,ge as bK,Me as bL,Yv as bM,Fm as bN,Rn as bO,Cs as bP,No as bQ,n_ as bR,lh as bS,Vm as bT,dl as bU,Md as bV,Og as bW,Lg as bX,Pg as bY,Xd as bZ,Zh as b_,rf as ba,po as bb,dm as bc,Nm as bd,nm as be,Bm as bf,op as bg,Wa as bh,Nf as bi,zh as bj,et as bk,On as bl,Lu as bm,Wf as bn,ze as bo,Wh as bp,Cm as bq,Se as br,Sm as bs,Dg as bt,hm as bu,Ra as bv,Du as bw,jf as bx,wr as by,pm as bz,s_ as c,$v as c$,he as c0,Rg as c1,ga as c2,Ue as c3,An as c4,Pm as c5,Lm as c6,Fu as c7,Hs as c8,py as c9,ym as cA,Xn as cB,Tm as cC,Yy as cD,Em as cE,Xy as cF,Yr as cG,Rm as cH,Dm as cI,Am as cJ,hu as cK,Pn as cL,Bp as cM,Om as cN,qs as cO,jv as cP,Ed as cQ,xr as cR,yc as cS,sn as cT,Yf as cU,bu as cV,Gu as cW,Uu as cX,Fp as cY,vu as cZ,Ka as c_,rh as ca,Kv as cb,Hv as cc,al as cd,bm as ce,yn as cf,cm as cg,wh as ch,th as ci,gm as cj,Nv as ck,Bv as cl,Fe as cm,Sr as cn,Gs as co,lc as cp,Zy as cq,Qy as cr,jc as cs,vf as ct,Yh as cu,Gh as cv,$y as cw,l_ as cx,fy as cy,Un as cz,Qf as d,qy as d0,oh as d1,Uh as d2,xm as d3,Im as d4,Od as d5,Ee as d6,Zd as d7,km as d8,$e as d9,ih as da,ah as db,Go as dc,nh as dd,Av as de,mn as df,gn as dg,c_ as dh,dy as di,ni as dj,qt as dk,t_ as dl,vy as dm,zs as dn,gy as dp,r_ as dq,f_ as dr,u_ as ds,lv as dt,h_ as du,wy as dv,tm as dw,Lv as dx,e_ as e,Te as f,Gg as g,pn as h,uc as i,zy as j,Fy as k,Vy as l,tf as m,o_ as n,tt as o,ef as p,sf as q,Uy as r,fo as s,iu as t,ft as u,Et as v,oe as w,Hy as x,of as y,oi as z};
|