diff --git a/.DS_Store b/.DS_Store index 5fd4c7d1..9931b90e 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/assets/echarts.ab55e4f1.js b/assets/echarts.ab55e4f1.js new file mode 100644 index 00000000..a7f1a4d0 --- /dev/null +++ b/assets/echarts.ab55e4f1.js @@ -0,0 +1,41 @@ +import{i as F,r as Da,m as z,c as W,e as w,a as ie,b as st,d as H,f as oe,g as po,h as O,j as ce,k as tg,l as B,n as U,L as Uf,o as Rn,p as Ue,P as ye,q as _l,s as rg,t as se,u as ng,v as te,Z as Or,w as gt,x as ag,y as ig,z as og,A as sg,B as Yf,C as go,T as $f,D as fs,E as er,F as lg,G as Ha,H as Xf,S as or,R as Zf,I as vs,J as En,K as fe,M as tr,N as Kf,O as hs,Q as de,U as be,V as ug,W as cg,X as qf,Y as fg,_ as Oe,$ as Aa,a0 as Se,a1 as On,a2 as K,a3 as Z,a4 as St,a5 as vg,a6 as ze,a7 as j,a8 as Ge,a9 as xe,aa as ne,ab as Ma,ac as hg,ad as mt,ae as mo,af as dg,ag as jf,ah as pg,ai as Bn,aj as Sl,ak as yi,al as gg,am as yo,an as _o,ao as mg,ap as ds,aq as Qf,ar as xl,as as _i,at as yg,au as _g,av as Xn,aw as Dr,ax as Jf,ay as Sg,az as xg,aA as bg,aB as ev,aC as bl,aD as wg,aE as Cg,aF as Tg,aG as Dg,aH as Ag,aI as wl,aJ as Cl,aK as Mg,aL as Ig,aM as Lg,aN as Pg,aO as kg,aP as Rg,aQ as Eg,aR as Og,aS as Bg}from"./zrender.536036ea.js";/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */var So=function(r,t){return So=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])},So(r,t)};function N(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");So(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var Tl=1e-4,tv=20;function Ng(r){return r.replace(/^\s+|\s+$/g,"")}function Et(r,t,e,n){var a=t[0],i=t[1],o=e[0],s=e[1],l=i-a,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(n)if(l>0){if(r<=a)return o;if(r>=i)return s}else{if(r>=a)return o;if(r<=i)return s}else{if(r===a)return o;if(r===i)return s}return(r-a)/l*u+o}function ee(r,t){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return F(r)?Ng(r).match(/%$/)?parseFloat(r)/100*t:parseFloat(r):r==null?NaN:+r}function me(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),tv),r=(+r).toFixed(t),e?r:+r}function Vg(r){return r.sort(function(t,e){return t-e}),r}function dt(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var t=1,e=0;e<15;e++,t*=10)if(Math.round(r*t)/t===r)return e}return zg(r)}function zg(r){var t=r.toString().toLowerCase(),e=t.indexOf("e"),n=e>0?+t.slice(e+1):0,a=e>0?e:t.length,i=t.indexOf("."),o=i<0?0:a-1-i;return Math.max(0,o-n)}function rv(r,t){var e=Math.log,n=Math.LN10,a=Math.floor(e(r[1]-r[0])/n),i=Math.round(e(Math.abs(t[1]-t[0]))/n),o=Math.min(Math.max(-a+i,0),20);return isFinite(o)?o:20}function Fg(r,t){var e=Da(r,function(v,d){return v+(isNaN(d)?0:d)},0);if(e===0)return[];for(var n=Math.pow(10,t),a=z(r,function(v){return(isNaN(v)?0:v)/e*n*100}),i=n*100,o=z(a,function(v){return Math.floor(v)}),s=Da(o,function(v,d){return v+d},0),l=z(a,function(v,d){return v-o[d]});su&&(u=l[f],c=f);++o[c],l[c]=0,++s}return z(o,function(v){return v/n})}function Gg(r,t){var e=Math.max(dt(r),dt(t)),n=r+t;return e>tv?n:me(n,e)}function nv(r){var t=Math.PI*2;return(r%t+t)%t}function Ia(r){return r>-Tl&&r=10&&t++,t}function av(r,t){var e=ps(r),n=Math.pow(10,e),a=r/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,r=i*n,e>=-20?+r.toFixed(e<0?-e:0):r}function Nt(r){var t=parseFloat(r);return t==r&&(t!==0||!F(r)||r.indexOf("x")<=0)?t:NaN}function iv(r){return!isNaN(Nt(r))}function ov(){return Math.round(Math.random()*9)}function sv(r,t){return t===0?r:sv(t,r%t)}function Dl(r,t){return r==null?t:t==null?r:r*t/sv(r,t)}function q(r){throw new Error(r)}function Al(r,t,e){return(t-r)*e+r}var lv="series\0",uv="\0_ec_\0";function ve(r){return r instanceof Array?r:r==null?[]:[r]}function xo(r,t,e){if(r){r[t]=r[t]||{},r.emphasis=r.emphasis||{},r.emphasis[t]=r.emphasis[t]||{};for(var n=0,a=e.length;n=0||i&&ie(i,l)<0)){var u=n.getShallow(l,t);u!=null&&(o[r[s][0]]=u)}}return o}}var hm=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],dm=_n(hm),pm=function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return dm(this,t,e)},r}(),Q=le(),gm=function(r,t,e,n){if(n){var a=Q(n);a.dataIndex=e,a.dataType=t,a.seriesIndex=r,n.type==="group"&&n.traverse(function(i){var o=Q(i);o.seriesIndex=r,o.dataIndex=e,o.dataType=t})}},Il=1,Ll={},pv=le(),_s=le(),Ss=0,Ya=1,$a=2,We=["emphasis","blur","select"],La=["normal","emphasis","blur","select"],mm=10,ym=9,jt="highlight",ma="downplay",fn="select",ya="unselect",vn="toggleSelect";function cr(r){return r!=null&&r!=="none"}var Pl=new Uf(100);function kl(r){if(F(r)){var t=Pl.get(r);return t||(t=_l(r,-.1),Pl.put(r,t)),t}else if(rg(r)){var e=B({},r);return e.colorStops=z(r.colorStops,function(n){return{offset:n.offset,color:_l(n.color,-.1)}}),e}return r}function Xa(r,t,e){r.onHoverStateChange&&(r.hoverState||0)!==e&&r.onHoverStateChange(t),r.hoverState=e}function gv(r){Xa(r,"emphasis",$a)}function mv(r){r.hoverState===$a&&Xa(r,"normal",Ss)}function xs(r){Xa(r,"blur",Ya)}function yv(r){r.hoverState===Ya&&Xa(r,"normal",Ss)}function _m(r){r.selected=!0}function Sm(r){r.selected=!1}function Rl(r,t,e){t(r,e)}function xt(r,t,e){Rl(r,t,e),r.isGroup&&r.traverse(function(n){Rl(n,t,e)})}function El(r,t){switch(t){case"emphasis":r.hoverState=$a;break;case"normal":r.hoverState=Ss;break;case"blur":r.hoverState=Ya;break;case"select":r.selected=!0}}function xm(r,t,e,n){for(var a=r.style,i={},o=0;o=0,i=!1;if(r instanceof ye){var o=pv(r),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(cr(s)||cr(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(i=!0,n=B({},n),u=B({},u),u.fill=s):!cr(u.fill)&&cr(s)?(i=!0,n=B({},n),u=B({},u),u.fill=kl(s)):!cr(u.stroke)&&cr(l)&&(i||(n=B({},n),u=B({},u)),u.stroke=kl(l)),n.style=u}}if(n&&n.z2==null){i||(n=B({},n));var c=r.z2EmphasisLift;n.z2=r.z2+(c!=null?c:mm)}return n}function wm(r,t,e){if(e&&e.z2==null){e=B({},e);var n=r.z2SelectLift;e.z2=r.z2+(n!=null?n:ym)}return e}function Cm(r,t,e){var n=ie(r.currentStates,t)>=0,a=r.style.opacity,i=n?null:xm(r,["opacity"],t,{opacity:1});e=e||{};var o=e.style||{};return o.opacity==null&&(e=B({},e),o=B({opacity:n?a:i.opacity*.1},o),e.style=o),e}function Si(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return bm(this,r,t,e);if(r==="blur")return Cm(this,r,e);if(r==="select")return wm(this,r,e)}return e}function Tm(r){r.stateProxy=Si;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=Si),e&&(e.stateProxy=Si)}function Ol(r,t){!bv(r,t)&&!r.__highByOuter&&xt(r,gv)}function Bl(r,t){!bv(r,t)&&!r.__highByOuter&&xt(r,mv)}function Ar(r,t){r.__highByOuter|=1<<(t||0),xt(r,gv)}function Mr(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&xt(r,mv)}function Dm(r){xt(r,xs)}function _v(r){xt(r,yv)}function Sv(r){xt(r,_m)}function xv(r){xt(r,Sm)}function bv(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function wv(r){var t=r.getModel(),e=[],n=[];t.eachComponent(function(a,i){var o=_s(i),s=a==="series",l=s?r.getViewOfSeriesModel(i):r.getViewOfComponentModel(i);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){yv(u)}),s&&e.push(i)),o.isBlured=!1}),w(n,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(e,!1,t)})}function bo(r,t,e,n){var a=n.getModel();e=e||"coordinateSystem";function i(u,c){for(var f=0;f0){var s={dataIndex:o,seriesIndex:e.seriesIndex};i!=null&&(s.dataType=i),t.push(s)}})}),t}function Co(r,t,e){Cv(r,!0),xt(r,Tm),Rm(r,t,e)}function km(r){Cv(r,!1)}function Ir(r,t,e,n){n?km(r):Co(r,t,e)}function Rm(r,t,e){var n=Q(r);t!=null?(n.focus=t,n.blurScope=e):n.focus&&(n.focus=null)}var Vl=["emphasis","blur","select"],Em={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Sn(r,t,e,n){e=e||"itemStyle";for(var a=0;a0){var f=c.duration,h=c.delay,v=c.easing,d={duration:f,delay:h||0,easing:v,done:i,force:!!i||!!o,setToFinal:!u,scope:r,during:o};s?t.animateFrom(e,d):t.animateTo(e,d)}else t.stopAnimation(),!s&&t.attr(e),o&&o(1),i&&i()}function pe(r,t,e,n,a,i){ws("update",r,t,e,n,a,i)}function Te(r,t,e,n,a,i){ws("enter",r,t,e,n,a,i)}function xr(r){if(!r.__zr)return!0;for(var t=0;tMath.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function Gl(r){return!r.isGroup}function Um(r){return r.shape!=null}function Lv(r,t,e){if(!r||!t)return;function n(o){var s={};return o.traverse(function(l){Gl(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return Um(o)&&(s.shape=B({},o.shape)),s}var i=n(r);t.traverse(function(o){if(Gl(o)&&o.anid){var s=i[o.anid];if(s){var l=a(o);o.attr(a(s)),pe(o,l,e,Q(o).dataIndex)}}})}function Pv(r,t){return z(r,function(e){var n=e[0];n=ka(n,t.x),n=Ra(n,t.x+t.width);var a=e[1];return a=ka(a,t.y),a=Ra(a,t.y+t.height),[n,a]})}function Ym(r,t){var e=ka(r.x,t.x),n=Ra(r.x+r.width,t.x+t.width),a=ka(r.y,t.y),i=Ra(r.y+r.height,t.y+t.height);if(n>=e&&i>=a)return{x:e,y:a,width:n-e,height:i-a}}function qa(r,t,e){var n=B({rectHover:!0},t),a=n.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(a.image=r.slice(8),te(a,e),new Or(n)):Cs(r.replace("path://",""),n,e,"center")}function $m(r,t,e,n,a){for(var i=0,o=a[a.length-1];i1)return!1;var g=xi(v,d,c,f)/h;return!(g<0||g>1)}function xi(r,t,e,n){return r*n-e*t}function Xm(r){return r<=1e-6&&r>=-1e-6}function ja(r){var t=r.itemTooltipOption,e=r.componentModel,n=r.itemName,a=F(t)?{formatter:t}:t,i=e.mainType,o=e.componentIndex,s={componentType:i,name:n,$vars:["name"]};s[i+"Index"]=o;var l=r.formatterParamsExtra;l&&w(Ue(l),function(c){gt(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=Q(r.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:n,option:te({content:n,formatterParams:s},a)}}function Wl(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function zn(r,t){if(r)if(O(r))for(var e=0;e=0&&s.push(l)}),s}}function Ms(r,t){return K(K({},r,!0),t,!0)}const uy={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},cy={time:{month:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"],dayOfWeekAbbr:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53CD\u9009"}},toolbox:{brush:{title:{rect:"\u77E9\u5F62\u9009\u62E9",polygon:"\u5708\u9009",lineX:"\u6A2A\u5411\u9009\u62E9",lineY:"\u7EB5\u5411\u9009\u62E9",keep:"\u4FDD\u6301\u9009\u62E9",clear:"\u6E05\u9664\u9009\u62E9"}},dataView:{title:"\u6570\u636E\u89C6\u56FE",lang:["\u6570\u636E\u89C6\u56FE","\u5173\u95ED","\u5237\u65B0"]},dataZoom:{title:{zoom:"\u533A\u57DF\u7F29\u653E",back:"\u533A\u57DF\u7F29\u653E\u8FD8\u539F"}},magicType:{title:{line:"\u5207\u6362\u4E3A\u6298\u7EBF\u56FE",bar:"\u5207\u6362\u4E3A\u67F1\u72B6\u56FE",stack:"\u5207\u6362\u4E3A\u5806\u53E0",tiled:"\u5207\u6362\u4E3A\u5E73\u94FA"}},restore:{title:"\u8FD8\u539F"},saveAsImage:{title:"\u4FDD\u5B58\u4E3A\u56FE\u7247",lang:["\u53F3\u952E\u53E6\u5B58\u4E3A\u56FE\u7247"]}},series:{typeNames:{pie:"\u997C\u56FE",bar:"\u67F1\u72B6\u56FE",line:"\u6298\u7EBF\u56FE",scatter:"\u6563\u70B9\u56FE",effectScatter:"\u6D9F\u6F2A\u6563\u70B9\u56FE",radar:"\u96F7\u8FBE\u56FE",tree:"\u6811\u56FE",treemap:"\u77E9\u5F62\u6811\u56FE",boxplot:"\u7BB1\u578B\u56FE",candlestick:"K\u7EBF\u56FE",k:"K\u7EBF\u56FE",heatmap:"\u70ED\u529B\u56FE",map:"\u5730\u56FE",parallel:"\u5E73\u884C\u5750\u6807\u56FE",lines:"\u7EBF\u56FE",graph:"\u5173\u7CFB\u56FE",sankey:"\u6851\u57FA\u56FE",funnel:"\u6F0F\u6597\u56FE",gauge:"\u4EEA\u8868\u76D8\u56FE",pictorialBar:"\u8C61\u5F62\u67F1\u56FE",themeRiver:"\u4E3B\u9898\u6CB3\u6D41\u56FE",sunburst:"\u65ED\u65E5\u56FE"}},aria:{general:{withTitle:"\u8FD9\u662F\u4E00\u4E2A\u5173\u4E8E\u201C{title}\u201D\u7684\u56FE\u8868\u3002",withoutTitle:"\u8FD9\u662F\u4E00\u4E2A\u56FE\u8868\uFF0C"},series:{single:{prefix:"",withName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\uFF0C\u8868\u793A{seriesName}\u3002",withoutName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\u3002"},multiple:{prefix:"\u5B83\u7531{seriesCount}\u4E2A\u56FE\u8868\u7CFB\u5217\u7EC4\u6210\u3002",withName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A\u8868\u793A{seriesName}\u7684{seriesType}\uFF0C",withoutName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A{seriesType}\uFF0C",separator:{middle:"\uFF1B",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636E\u662F\u2014\u2014",partialData:"\u5176\u4E2D\uFF0C\u524D{displayCnt}\u9879\u662F\u2014\u2014",withName:"{name}\u7684\u6570\u636E\u662F{value}",withoutName:"{value}",separator:{middle:"\uFF0C",end:""}}}};var Ea="ZH",Is="EN",wn=Is,Sa={},Ls={},Bv=ce.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return r.indexOf(Ea)>-1?Ea:wn}():wn;function Nv(r,t){r=r.toUpperCase(),Ls[r]=new Ce(t),Sa[r]=t}function fy(r){if(F(r)){var t=Sa[r.toUpperCase()]||{};return r===Ea||r===Is?Z(t):K(Z(t),Z(Sa[wn]),!1)}else return K(Z(r),Z(Sa[wn]),!1)}function vy(r){return Ls[r]}function hy(){return Ls[wn]}Nv(Is,uy);Nv(Ea,cy);var Ps=1e3,ks=Ps*60,hn=ks*60,Fe=hn*24,Zl=Fe*365,on={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},Zn="{yyyy}-{MM}-{dd}",Kl={year:"{yyyy}",month:"{yyyy}-{MM}",day:Zn,hour:Zn+" "+on.hour,minute:Zn+" "+on.minute,second:Zn+" "+on.second,millisecond:on.none},Ci=["year","month","day","hour","minute","second","millisecond"],Vv=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Ht(r,t){return r+="","0000".substr(0,t-r.length)+r}function br(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function dy(r){return r===br(r)}function py(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Ja(r,t,e,n){var a=yt(r),i=a[Rs(e)](),o=a[wr(e)]()+1,s=Math.floor((o-1)/3)+1,l=a[ei(e)](),u=a["get"+(e?"UTC":"")+"Day"](),c=a[Cn(e)](),f=(c-1)%12+1,h=a[ti(e)](),v=a[ri(e)](),d=a[ni(e)](),p=n instanceof Ce?n:vy(n||Bv)||hy(),g=p.getModel("time"),m=g.get("month"),y=g.get("monthAbbr"),_=g.get("dayOfWeek"),S=g.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,i%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,m[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,Ht(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Ht(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Ht(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Ht(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,Ht(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,Ht(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,Ht(d,3)).replace(/{S}/g,d+"")}function gy(r,t,e,n,a){var i=null;if(F(e))i=e;else if(U(e))i=e(r.value,t,{level:r.level});else{var o=B({},on);if(r.level>0)for(var s=0;s=0;--s)if(l[u]){i=l[u];break}i=i||o.none}if(O(i)){var f=r.level==null?0:r.level>=0?r.level:i.length+r.level;f=Math.min(f,i.length-1),i=i[f]}}return Ja(new Date(r.value),i,a,n)}function zv(r,t){var e=yt(r),n=e[wr(t)]()+1,a=e[ei(t)](),i=e[Cn(t)](),o=e[ti(t)](),s=e[ri(t)](),l=e[ni(t)](),u=l===0,c=u&&s===0,f=c&&o===0,h=f&&i===0,v=h&&a===1,d=v&&n===1;return d?"year":v?"month":h?"day":f?"hour":c?"minute":u?"second":"millisecond"}function ql(r,t,e){var n=oe(r)?yt(r):r;switch(t=t||zv(r,e),t){case"year":return n[Rs(e)]();case"half-year":return n[wr(e)]()>=6?1:0;case"quarter":return Math.floor((n[wr(e)]()+1)/4);case"month":return n[wr(e)]();case"day":return n[ei(e)]();case"half-day":return n[Cn(e)]()/24;case"hour":return n[Cn(e)]();case"minute":return n[ti(e)]();case"second":return n[ri(e)]();case"millisecond":return n[ni(e)]()}}function Rs(r){return r?"getUTCFullYear":"getFullYear"}function wr(r){return r?"getUTCMonth":"getMonth"}function ei(r){return r?"getUTCDate":"getDate"}function Cn(r){return r?"getUTCHours":"getHours"}function ti(r){return r?"getUTCMinutes":"getMinutes"}function ri(r){return r?"getUTCSeconds":"getSeconds"}function ni(r){return r?"getUTCMilliseconds":"getMilliseconds"}function my(r){return r?"setUTCFullYear":"setFullYear"}function Fv(r){return r?"setUTCMonth":"setMonth"}function Gv(r){return r?"setUTCDate":"setDate"}function Wv(r){return r?"setUTCHours":"setHours"}function Hv(r){return r?"setUTCMinutes":"setMinutes"}function Uv(r){return r?"setUTCSeconds":"setSeconds"}function Yv(r){return r?"setUTCMilliseconds":"setMilliseconds"}function $v(r){if(!iv(r))return F(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function Xv(r,t){return r=(r||"").toLowerCase().replace(/-(.)/g,function(e,n){return n.toUpperCase()}),t&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var ai=vg;function Io(r,t,e){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(c){return c&&On(c)?c:"-"}function i(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=t==="time",s=r instanceof Date;if(o||s){var l=o?yt(r):r;if(isNaN(+l)){if(s)return"-"}else return Ja(l,n,e)}if(t==="ordinal")return po(r)?a(r):oe(r)&&i(r)?r+"":"-";var u=Nt(r);return i(u)?$v(u):po(r)?a(r):typeof r=="boolean"?r+"":"-"}var jl=["a","b","c","d","e","f","g"],Ti=function(r,t){return"{"+r+(t==null?"":t)+"}"};function Zv(r,t,e){O(t)||(t=[t]);var n=t.length;if(!n)return"";for(var a=t[0].$vars||[],i=0;i':'';var o=e.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 nr(r,t){return t=t||"transparent",F(r)?r:H(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function Ql(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var xa=w,_y=["left","right","top","bottom","width","height"],Kn=[["width","left","right"],["height","top","bottom"]];function Es(r,t,e,n,a){var i=0,o=0;n==null&&(n=1/0),a==null&&(a=1/0);var s=0;t.eachChild(function(l,u){var c=l.getBoundingRect(),f=t.childAt(u+1),h=f&&f.getBoundingRect(),v,d;if(r==="horizontal"){var p=c.width+(h?-h.x+c.x:0);v=i+p,v>n||l.newline?(i=0,v=p,o+=s+e,s=c.height):s=Math.max(s,c.height)}else{var g=c.height+(h?-h.y+c.y:0);d=o+g,d>a||l.newline?(i+=s+e,o=0,d=g,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),r==="horizontal"?i=v+e:o=d+e)})}var Cr=Es;j(Es,"vertical");j(Es,"horizontal");function zt(r,t,e){e=ai(e||0);var n=t.width,a=t.height,i=ee(r.left,n),o=ee(r.top,a),s=ee(r.right,n),l=ee(r.bottom,a),u=ee(r.width,n),c=ee(r.height,a),f=e[2]+e[0],h=e[1]+e[3],v=r.aspect;switch(isNaN(u)&&(u=n-s-h-i),isNaN(c)&&(c=a-l-f-o),v!=null&&(isNaN(u)&&isNaN(c)&&(v>n/a?u=n*.8:c=a*.8),isNaN(u)&&(u=v*c),isNaN(c)&&(c=u/v)),isNaN(i)&&(i=n-s-u-h),isNaN(o)&&(o=a-l-c-f),r.left||r.right){case"center":i=n/2-u/2-e[3];break;case"right":i=n-u-h;break}switch(r.top||r.bottom){case"middle":case"center":o=a/2-c/2-e[0];break;case"bottom":o=a-c-f;break}i=i||0,o=o||0,isNaN(u)&&(u=n-h-i-(s||0)),isNaN(c)&&(c=a-f-o-(l||0));var d=new Oe(i+e[3],o+e[0],u,c);return d.margin=e,d}function Sy(r,t,e,n,a,i){var o=!a||!a.hv||a.hv[0],s=!a||!a.hv||a.hv[1],l=a&&a.boundingMode||"all";if(i=i||r,i.x=r.x,i.y=r.y,!o&&!s)return!1;var u;if(l==="raw")u=r.type==="group"?new Oe(0,0,+t.width||0,+t.height||0):r.getBoundingRect();else if(u=r.getBoundingRect(),r.needLocalTransform()){var c=r.getLocalTransform();u=u.clone(),u.applyTransform(c)}var f=zt(te({width:u.width,height:u.height},t),e,n),h=o?f.x-u.x:0,v=s?f.y-u.y:0;return l==="raw"?(i.x=h,i.y=v):(i.x+=h,i.y+=v),i===r&&r.markRedraw(),!0}function Tn(r){var t=r.layoutMode||r.constructor.layoutMode;return H(t)?t:t?{type:t}:null}function Lr(r,t,e){var n=e&&e.ignoreSize;!O(n)&&(n=[n,n]);var a=o(Kn[0],0),i=o(Kn[1],1);u(Kn[0],r,a),u(Kn[1],r,i);function o(c,f){var h={},v=0,d={},p=0,g=2;if(xa(c,function(_){d[_]=r[_]}),xa(c,function(_){s(t,_)&&(h[_]=d[_]=t[_]),l(h,_)&&v++,l(d,_)&&p++}),n[f])return l(t,c[1])?d[c[2]]=null:l(t,c[2])&&(d[c[1]]=null),d;if(p===g||!v)return d;if(v>=g)return h;for(var m=0;m=0;l--)s=K(s,a[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(e,n){var a=e+"Index",i=e+"Id";return Vn(this.ecModel,e,{index:this.get(a,!0),id:this.get(i,!0)},n)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0}(),t}(Ce);dv(zr,Ce);Ua(zr);sy(zr);ly(zr,wy);function wy(r){var t=[];return w(zr.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=z(t,function(e){return rt(e).main}),r!=="dataset"&&ie(t,"dataset")<=0&&t.unshift("dataset"),t}const ae=zr;var Kv="";typeof navigator<"u"&&(Kv=navigator.platform||"");var fr="rgba(0, 0, 0, 0.2)";const Cy={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:fr,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:fr,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:fr,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:fr,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:fr,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:fr,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Kv.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var qv=W(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),Ye="original",Pe="arrayRows",$e="objectRows",ut="keyedColumns",Bt="typedArray",jv="unknown",ot="column",Fr="row",we={Must:1,Might:2,Not:3},Qv=le();function Ty(r){Qv(r).datasetMap=W()}function Jv(r,t,e){var n={},a=Os(t);if(!a||!r)return n;var i=[],o=[],s=t.ecModel,l=Qv(s).datasetMap,u=a.uid+"_"+e.seriesLayoutBy,c,f;r=r.slice(),w(r,function(p,g){var m=H(p)?p:r[g]={name:p};m.type==="ordinal"&&c==null&&(c=g,f=d(m)),n[m.name]=[]});var h=l.get(u)||l.set(u,{categoryWayDim:f,valueWayDim:0});w(r,function(p,g){var m=p.name,y=d(p);if(c==null){var _=h.valueWayDim;v(n[m],_,y),v(o,_,y),h.valueWayDim+=y}else if(c===g)v(n[m],0,y),v(i,0,y);else{var _=h.categoryWayDim;v(n[m],_,y),v(o,_,y),h.categoryWayDim+=y}});function v(p,g,m){for(var y=0;yt)return r[n];return r[e-1]}function rh(r,t,e,n,a,i,o){i=i||r;var s=t(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(a))return u[a];var c=o==null||!n?e:Py(n,o);if(c=c||e,!(!c||!c.length)){var f=c[l];return a&&(u[a]=f),s.paletteIdx=(l+1)%c.length,f}}function ky(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var qn,Yr,tu,ru="\0_ec_inner",Ry=1,nh=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e,n,a,i,o,s){i=i||{},this.option=null,this._theme=new Ce(i),this._locale=new Ce(o),this._optionManager=s},t.prototype.setOption=function(e,n,a){var i=iu(n);this._optionManager.setOption(e,a,i),this._resetOption(null,i)},t.prototype.resetOption=function(e,n){return this._resetOption(e,iu(n))},t.prototype._resetOption=function(e,n){var a=!1,i=this._optionManager;if(!e||e==="recreate"){var o=i.mountOption(e==="recreate");!this.option||e==="recreate"?tu(this,o):(this.restoreData(),this._mergeOption(o,n)),a=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var s=i.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,n))}if(!e||e==="recreate"||e==="media"){var l=i.getMediaOption(this);l.length&&w(l,function(u){a=!0,this._mergeOption(u,n)},this)}return a},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,n){var a=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=W(),u=n&&n.replaceMergeMainTypeMap;Ty(this),w(e,function(f,h){f!=null&&(ae.hasClass(h)?h&&(s.push(h),l.set(h,!0)):a[h]=a[h]==null?Z(f):K(a[h],f,!0))}),u&&u.each(function(f,h){ae.hasClass(h)&&!l.get(h)&&(s.push(h),l.set(h,!0))}),ae.topologicalTravel(s,ae.getAllClassMainTypes(),c,this);function c(f){var h=Iy(this,f,ve(e[f])),v=i.get(f),d=v?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",p=Yg(v,h,d);Jg(p,f,ae),a[f]=null,i.set(f,null),o.set(f,0);var g=[],m=[],y=0,_;w(p,function(S,b){var x=S.existing,C=S.newOption;if(!C)x&&(x.mergeOption({},this),x.optionUpdated({},!1));else{var T=f==="series",D=ae.getClass(f,S.keyInfo.subType,!T);if(!D)return;if(f==="tooltip"){if(_)return;_=!0}if(x&&x.constructor===D)x.name=S.keyInfo.name,x.mergeOption(C,this),x.optionUpdated(C,!1);else{var M=B({componentIndex:b},S.keyInfo);x=new D(C,this,this,M),B(x,M),S.brandNew&&(x.__requireNewView=!0),x.init(C,this,this),x.optionUpdated(null,!0)}}x?(g.push(x.option),m.push(x),y++):(g.push(void 0),m.push(void 0))},this),a[f]=g,i.set(f,m),o.set(f,y),f==="series"&&qn(this)}this._seriesIndices||qn(this)},t.prototype.getOption=function(){var e=Z(this.option);return w(e,function(n,a){if(ae.hasClass(a)){for(var i=ve(n),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!yn(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,e[a]=i}}),delete e[ru],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,n){var a=this._componentsMap.get(e);if(a){var i=a[n||0];if(i)return i;if(n==null){for(var o=0;o=t:e==="max"?r<=t:r===t}function Uy(r,t){return r.join(",")===t.join(",")}const Yy=Fy;var Ze=w,Dn=H,ou=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Ai(r){var t=r&&r.itemStyle;if(!!t)for(var e=0,n=ou.length;e=0;g--){var m=r[g];if(s||(d=m.data.rawIndexOf(m.stackedByDimension,v)),d>=0){var y=m.data.getByRawIndex(m.stackResultDimension,d);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&h>=0&&y>0||l==="samesign"&&h<=0&&y<0){h=Gg(h,y),p=y;break}}}return n[0]=h,n[1]=p,n})})}var oi=function(){function r(t){this.data=t.data||(t.sourceFormat===ut?{}:[]),this.sourceFormat=t.sourceFormat||jv,this.seriesLayoutBy=t.seriesLayoutBy||ot,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;np&&(p=_)}v[0]=d,v[1]=p}},a=function(){return this._data?this._data.length/this._dimSize:0};hu=(t={},t[Pe+"_"+ot]={pure:!0,appendData:i},t[Pe+"_"+Fr]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[$e]={pure:!0,appendData:i},t[ut]={pure:!0,appendData:function(o){var s=this._data;w(o,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},t[Ye]={appendData:i},t[Bt]={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=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},r.prototype.getRawValue=function(t,e){return Pr(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,n){},r}();function mu(r){var t,e;return H(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function dn(r){return new u0(r)}var u0=function(){function r(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return r.prototype.perform=function(t){var e=this._upstream,n=t&&t.skip;if(this._dirty&&e){var a=this.context;a.data=a.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(i="reset");function c(y){return!(y>=1)&&(y=1),y}var f;(this._dirty||i==="reset")&&(this._dirty=!1,f=this._doReset(n)),this._modBy=l,this._modDataCount=u;var h=t&&t.step;if(e?this._dueEnd=e._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var v=this._dueIndex,d=Math.min(h!=null?this._dueIndex+h:1/0,this._dueEnd);if(!n&&(f||v1&&n>0?s:o}};return i;function o(){return t=r?null:lt},gte:function(r,t){return r>=t}},f0=function(){function r(t,e){if(!oe(e)){var n="";q(n)}this._opFn=ph[t],this._rvalFloat=Nt(e)}return r.prototype.evaluate=function(t){return oe(t)?this._opFn(t,this._rvalFloat):this._opFn(Nt(t),this._rvalFloat)},r}(),gh=function(){function r(t,e){var n=t==="desc";this._resultLT=n?1:-1,e==null&&(e=n?"min":"max"),this._incomparable=e==="min"?-1/0:1/0}return r.prototype.evaluate=function(t,e){var n=oe(t)?t:Nt(t),a=oe(e)?e:Nt(e),i=isNaN(n),o=isNaN(a);if(i&&(n=this._incomparable),o&&(a=this._incomparable),i&&o){var s=F(t),l=F(e);s&&(n=l?t:0),l&&(a=s?e:0)}return na?-this._resultLT:0},r}(),v0=function(){function r(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=Nt(e)}return r.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(e=Nt(t)===this._rvalFloat)}return this._isEQ?e:!e},r}();function h0(r,t){return r==="eq"||r==="ne"?new v0(r==="eq",t):gt(ph,r)?new f0(r,t):null}var d0=function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(t){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(t){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(t,e){},r.prototype.retrieveValueFromItem=function(t,e){},r.prototype.convertValue=function(t,e){return ba(t,e)},r}();function p0(r,t){var e=new d0,n=r.data,a=e.sourceFormat=r.sourceFormat,i=r.startIndex,o="";r.seriesLayoutBy!==ot&&q(o);var s=[],l={},u=r.dimensionsDefine;if(u)w(u,function(p,g){var m=p.name,y={index:g,name:m,displayName:p.displayName};if(s.push(y),m!=null){var _="";gt(l,m)&&q(_),l[m]=y}});else for(var c=0;c65535?w0:C0}function vr(){return[1/0,-1/0]}function T0(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function Su(r,t,e,n,a){var i=_h[e||"float"];if(a){var o=r[t],s=o&&o.length;if(s!==n){for(var l=new i(n),u=0;ug[1]&&(g[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(t,e,n){for(var a=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=z(o,function(y){return y.property}),c=0;cm[1]&&(m[1]=g)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=e,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(t,e){if(!(e>=0&&e=0&&e=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(n!=null&&nt)i=o-1;else return o}return-1},r.prototype.indicesOfNearest=function(t,e,n){var a=this._chunks,i=a[t],o=[];if(!i)return o;n==null&&(n=1/0);for(var s=1/0,l=-1,u=0,c=0,f=this.count();c=0&&l<0)&&(s=d,l=v,u=0),v===l&&(o[u++]=c))}return o.length=u,o},r.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,a=this._count;if(n===Array){t=new n(a);for(var i=0;i=f&&y<=h||isNaN(y))&&(l[u++]=p),p++}d=!0}else if(i===2){for(var g=v[a[0]],_=v[a[1]],S=t[a[1]][0],b=t[a[1]][1],m=0;m=f&&y<=h||isNaN(y))&&(x>=S&&x<=b||isNaN(x))&&(l[u++]=p),p++}d=!0}}if(!d)if(i===1)for(var m=0;m=f&&y<=h||isNaN(y))&&(l[u++]=C)}else for(var m=0;mt[M][1])&&(T=!1)}T&&(l[u++]=e.getRawIndex(m))}return um[1]&&(m[1]=g)}}}},r.prototype.lttbDownSample=function(t,e){var n=this.clone([t],!0),a=n._chunks,i=a[t],o=this.count(),s=0,l=Math.floor(1/e),u=this.getRawIndex(0),c,f,h,v=new(Xr(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));v[s++]=u;for(var d=1;dc&&(c=f,h=S)}A>0&&Ac-d&&(l=c-d,s.length=l);for(var p=0;pf[1]&&(f[1]=m),h[v++]=y}return i._count=v,i._indices=h,i._updateGetRawIdx(),i},r.prototype.each=function(t,e){if(!!this._count)for(var n=t.length,a=this._chunks,i=0,o=this.count();il&&(l=f)}return o=[s,l],this._extent[t]=o,o},r.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],a=this._chunks,i=0;i=0?this._indices[t]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function t(e,n,a,i){return ba(e[i],this._dimensions[i])}Li={arrayRows:t,objectRows:function(e,n,a,i){return ba(e[n],this._dimensions[i])},keyedColumns:t,original:function(e,n,a,i){var o=e&&(e.value==null?e:e.value);return ba(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(e,n,a,i){return e[i]}}}(),r}(),Sh=function(){function r(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,e=this._getUpstreamSourceManagers(),n=!!e.length,a,i;if(jn(t)){var o=t,s=void 0,l=void 0,u=void 0;if(n){var c=e[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,i=[c._getVersionSign()]}else s=o.get("data",!0),l=Ge(s)?Bt:Ye,i=[];var f=this._getSourceMetaRawOption()||{},h=u&&u.metaRawOption||{},v=se(f.seriesLayoutBy,h.seriesLayoutBy)||null,d=se(f.sourceHeader,h.sourceHeader),p=se(f.dimensions,h.dimensions),g=v!==h.seriesLayoutBy||!!d!=!!h.sourceHeader||p;a=g?[Po(s,{seriesLayoutBy:v,sourceHeader:d,dimensions:p},l)]:[]}else{var m=t;if(n){var y=this._applyTransform(e);a=y.sourceList,i=y.upstreamSignList}else{var _=m.get("source",!0);a=[Po(_,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(a,i)},r.prototype._applyTransform=function(t){var e=this._sourceHost,n=e.get("transform",!0),a=e.get("fromTransformResult",!0);if(a!=null){var i="";t.length!==1&&bu(i)}var o,s=[],l=[];return w(t,function(u){u.prepareSource();var c=u.getSource(a||0),f="";a!=null&&!c&&bu(f),s.push(c),l.push(u._getVersionSign())}),n?o=x0(n,s,{datasetIndex:e.componentIndex}):a!=null&&(o=[t0(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e1||e>0&&!r.noHeader;return w(r.blocks,function(a){var i=Ch(a);i>=t&&(t=i+ +(n&&(!i||Ro(a)&&!a.noHeader)))}),t}return 0}function M0(r,t,e,n){var a=t.noHeader,i=L0(Ch(t)),o=[],s=t.blocks||[];st(!s||O(s)),s=s||[];var l=r.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(gt(u,l)){var c=new gh(u[l],null);s.sort(function(d,p){return c.evaluate(d.sortParam,p.sortParam)})}else l==="seriesDesc"&&s.reverse()}w(s,function(d,p){var g=t.valueFormatter,m=wh(d)(g?B(B({},r),{valueFormatter:g}):r,d,p>0?i.html:0,n);m!=null&&o.push(m)});var f=r.renderMode==="richText"?o.join(i.richText):Eo(o.join(""),a?e:i.html);if(a)return f;var h=Io(t.header,"ordinal",r.useUTC),v=bh(n,r.renderMode).nameStyle;return r.renderMode==="richText"?Th(r,h,v)+i.richText+f:Eo('
'+ze(h)+"
"+f,e)}function I0(r,t,e,n){var a=r.renderMode,i=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=r.useUTC,c=t.valueFormatter||r.valueFormatter||function(S){return S=O(S)?S:[S],z(S,function(b,x){return Io(b,O(v)?v[x]:v,u)})};if(!(i&&o)){var f=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",a),h=i?"":Io(l,"ordinal",u),v=t.valueType,d=o?[]:c(t.value),p=!s||!i,g=!s&&i,m=bh(n,a),y=m.nameStyle,_=m.valueStyle;return a==="richText"?(s?"":f)+(i?"":Th(r,h,y))+(o?"":R0(r,d,p,g,_)):Eo((s?"":f)+(i?"":P0(h,!s,y))+(o?"":k0(d,p,g,_)),e)}}function wu(r,t,e,n,a,i){if(!!r){var o=wh(r),s={useUTC:a,renderMode:e,orderMode:n,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function L0(r){return{html:D0[r],richText:A0[r]}}function Eo(r,t){var e='
',n="margin: "+t+"px 0 0";return'
'+r+e+"
"}function P0(r,t,e){var n=t?"margin-left:2px":"";return''+ze(r)+""}function k0(r,t,e,n){var a=e?"10px":"20px",i=t?"float:right;margin-left:"+a:"";return r=O(r)?r:[r],''+z(r,function(o){return ze(o)}).join("  ")+""}function Th(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function R0(r,t,e,n,a){var i=[a],o=n?10:20;return e&&i.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(O(t)?t.join(" "):t,i)}function E0(r,t){var e=r.getData().getItemVisual(t,"style"),n=e[r.visualDrawType];return nr(n)}function Dh(r,t){var e=r.get("padding");return e!=null?e:t==="richText"?[8,10]:10}var Pi=function(){function r(){this.richTextStyles={},this._nextStyleNameId=ov()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,n){var a=n==="richText"?this._generateStyleName():null,i=yy({color:e,type:t,renderMode:n,markerId:a});return F(i)?i:(this.richTextStyles[a]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(t,e){var n={};O(e)?w(e,function(i){return B(n,i)}):B(n,e);var a=this._generateStyleName();return this.richTextStyles[a]=n,"{"+a+"|"+t+"}"},r}();function O0(r){var t=r.series,e=r.dataIndex,n=r.multipleSeries,a=t.getData(),i=a.mapDimensionsAll("defaultedTooltip"),o=i.length,s=t.getRawValue(e),l=O(s),u=E0(t,e),c,f,h,v;if(o>1||l&&!o){var d=B0(s,t,e,i,u);c=d.inlineValues,f=d.inlineValueTypes,h=d.blocks,v=d.inlineValues[0]}else if(o){var p=a.getDimensionInfo(i[0]);v=c=Pr(a,e,i[0]),f=p.type}else v=c=l?s[0]:s;var g=gs(t),m=g&&t.name||"",y=a.getName(e),_=n?m:y;return An("section",{header:m,noHeader:n||!g,sortParam:v,blocks:[An("nameValue",{markerType:"item",markerColor:u,name:_,noName:!On(_),value:c,valueType:f})].concat(h||[])})}function B0(r,t,e,n,a){var i=t.getData(),o=Da(r,function(f,h,v){var d=i.getDimensionInfo(v);return f=f||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];n.length?w(n,function(f){c(Pr(i,e,f),f)}):w(r,c);function c(f,h){var v=i.getDimensionInfo(h);!v||v.otherDims.tooltip===!1||(o?u.push(An("nameValue",{markerType:"subItem",markerColor:a,name:v.displayName,value:f,valueType:v.type})):(s.push(f),l.push(v.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Dt=le();function Qn(r,t){return r.getName(t)||r.getId(t)}var wa="__universalTransitionEnabled",li=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return t.prototype.init=function(e,n,a){this.seriesIndex=this.componentIndex,this.dataTask=dn({count:V0,reset:z0}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,a);var i=Dt(this).sourceManager=new Sh(this);i.prepareSource();var o=this.getInitialData(e,a);Tu(o,this),this.dataTask.context.data=o,Dt(this).dataBeforeProcessed=o,Cu(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,n){var a=Tn(this),i=a?ii(e):{},o=this.subType;ae.hasClass(o)&&(o+="Series"),K(e,n.getTheme().get(this.subType)),K(e,this.getDefaultOption()),xo(e,"label",["show"]),this.fillDataTextStyle(e.data),a&&Lr(e,i,a)},t.prototype.mergeOption=function(e,n){e=K(this.option,e,!0),this.fillDataTextStyle(e.data);var a=Tn(this);a&&Lr(this.option,e,a);var i=Dt(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(e,n);Tu(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Dt(this).dataBeforeProcessed=o,Cu(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!Ge(e))for(var n=["show"],a=0;athis.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,n,a){var i=this.ecModel,o=Bs.prototype.getColorFromPalette.call(this,e,n,a);return o||(o=i.getColorFromPalette(e,n,a)),o},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,n){this._innerSelect(this.getData(n),e)},t.prototype.unselect=function(e,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=0&&a.push(o)}return a},t.prototype.isSelected=function(e,n){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(n);return(a==="all"||a[Qn(i,e)])&&!i.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[wa])return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,n){var a,i,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){H(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c0&&this._innerSelect(e,n)}},t.registerClass=function(e){return ae.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"}(),t}(ae);St(li,l0);St(li,Bs);dv(li,ae);function Cu(r){var t=r.name;gs(r)||(r.name=N0(r)||t)}function N0(r){var t=r.getRawData(),e=t.mapDimensionsAll("seriesName"),n=[];return w(e,function(a){var i=t.getDimensionInfo(a);i.displayName&&n.push(i.displayName)}),n.join(" ")}function V0(r){return r.model.getRawData().count()}function z0(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),F0}function F0(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Tu(r,t){w(hg(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,j(G0,t))})}function G0(r,t){var e=Oo(r);return e&&e.setOutputEnd((t||this).count()),t}function Oo(r){var t=(r.ecModel||{}).scheduler,e=t&&t.getPipeline(r.uid);if(e){var n=e.currentTask;if(n){var a=n.agentStubMap;a&&(n=a.get(r.uid))}return n}}const lt=li;var Ws=function(){function r(){this.group=new de,this.uid=Fn("viewComponent")}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,a){},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,a){},r.prototype.updateLayout=function(t,e,n,a){},r.prototype.updateVisual=function(t,e,n,a){},r.prototype.toggleBlurSeries=function(t,e,n){},r.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},r}();ys(Ws);Ua(Ws);const He=Ws;function Gn(){var r=le();return function(t){var e=r(t),n=t.pipelineContext,a=!!e.large,i=!!e.progressiveRender,o=e.large=!!(n&&n.large),s=e.progressiveRender=!!(n&&n.progressiveRender);return(a!==o||i!==s)&&"reset"}}var Ah=le(),W0=Gn(),Hs=function(){function r(){this.group=new de,this.uid=Fn("viewChart"),this.renderTask=dn({plan:H0,reset:U0}),this.renderTask.context={view:this}}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,a){},r.prototype.highlight=function(t,e,n,a){var i=t.getData(a&&a.dataType);!i||Au(i,a,"emphasis")},r.prototype.downplay=function(t,e,n,a){var i=t.getData(a&&a.dataType);!i||Au(i,a,"normal")},r.prototype.remove=function(t,e){this.group.removeAll()},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,a){this.render(t,e,n,a)},r.prototype.updateLayout=function(t,e,n,a){this.render(t,e,n,a)},r.prototype.updateVisual=function(t,e,n,a){this.render(t,e,n,a)},r.prototype.eachRendered=function(t){zn(this.group,t)},r.markUpdateMethod=function(t,e){Ah(t).updateMethod=e},r.protoInitialize=function(){var t=r.prototype;t.type="chart"}(),r}();function Du(r,t,e){r&&To(r)&&(t==="emphasis"?Ar:Mr)(r,e)}function Au(r,t,e){var n=rr(r,t),a=t&&t.highlightKey!=null?Om(t.highlightKey):null;n!=null?w(ve(n),function(i){Du(r.getItemGraphicEl(i),e,a)}):r.eachItemGraphicEl(function(i){Du(i,e,a)})}ys(Hs);Ua(Hs);function H0(r){return W0(r.model)}function U0(r){var t=r.model,e=r.ecModel,n=r.api,a=r.payload,i=t.pipelineContext.progressiveRender,o=r.view,s=a&&Ah(a).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,e,n,a),Y0[l]}var Y0={incrementalPrepareRender:{progress:function(r,t){t.view.incrementalRender(r,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(r,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};const Ee=Hs;var Oa="\0__throttleOriginMethod",Mu="\0__throttleRate",Iu="\0__throttleType";function Us(r,t,e){var n,a=0,i=0,o=null,s,l,u,c;t=t||0;function f(){i=new Date().getTime(),o=null,r.apply(l,u||[])}var h=function(){for(var v=[],d=0;d=0?f():o=setTimeout(f,-s),a=n};return h.clear=function(){o&&(clearTimeout(o),o=null)},h.debounceNextCall=function(v){c=v},h}function Mh(r,t,e,n){var a=r[t];if(!!a){var i=a[Oa]||a,o=a[Iu],s=a[Mu];if(s!==e||o!==n){if(e==null||!n)return r[t]=i;a=r[t]=Us(i,e,n==="debounce"),a[Oa]=i,a[Iu]=n,a[Mu]=e}return a}}function Bo(r,t){var e=r[t];e&&e[Oa]&&(e.clear&&e.clear(),r[t]=e[Oa])}var Lu=le(),Pu={itemStyle:_n(Ov,!0),lineStyle:_n(Ev,!0)},$0={lineStyle:"stroke",itemStyle:"fill"};function Ih(r,t){var e=r.visualStyleMapper||Pu[t];return e||(console.warn("Unkown style type '"+t+"'."),Pu.itemStyle)}function Lh(r,t){var e=r.visualDrawType||$0[t];return e||(console.warn("Unkown style type '"+t+"'."),"fill")}var X0={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",a=r.getModel(n),i=Ih(r,n),o=i(a),s=a.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var l=Lh(r,n),u=o[l],c=U(u)?u:null,f=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||f){var h=r.getColorFromPalette(r.name,null,t.getSeriesCount());o[l]||(o[l]=h,e.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||U(o.fill)?h:o.fill,o.stroke=o.stroke==="auto"||U(o.stroke)?h:o.stroke}if(e.setVisual("style",o),e.setVisual("drawType",l),!t.isSeriesFiltered(r)&&c)return e.setVisual("colorFromPalette",!1),{dataEach:function(v,d){var p=r.getDataParams(d),g=B({},o);g[l]=c(p),v.setItemVisual(d,"style",g)}}}},Zr=new Ce,Z0={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",a=Ih(r,n),i=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){Zr.option=l[n];var u=a(Zr),c=o.ensureUniqueItemVisual(s,"style");B(c,u),Zr.option.decal&&(o.setItemVisual(s,"decal",Zr.option.decal),Zr.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},K0={performRawSeries:!0,overallReset:function(r){var t=W();r.eachSeries(function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var a=e.type+"-"+n,i=t.get(a);i||(i={},t.set(a,i)),Lu(e).scope=i}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var n=e.getRawData(),a={},i=e.getData(),o=Lu(e).scope,s=e.visualStyleAccessPath||"itemStyle",l=Lh(e,s);i.each(function(u){var c=i.getRawIndex(u);a[c]=u}),n.each(function(u){var c=a[u],f=i.getItemVisual(c,"colorFromPalette");if(f){var h=i.ensureUniqueItemVisual(c,"style"),v=n.getName(u)||u+"",d=n.count();h[l]=e.getColorFromPalette(v,o,d)}})}})}},Jn=Math.PI;function q0(r,t){t=t||{},te(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var e=new de,n=new fe({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(n);var a=new be({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 fe({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});e.add(i);var o;return t.showSpinner&&(o=new hs({shape:{startAngle:-Jn/2,endAngle:-Jn/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:Jn*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Jn*3/2}).delay(300).start("circularInOut"),e.add(o)),e.resize=function(){var s=a.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(r.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),c=r.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:c}),i.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},e.resize(),e}var j0=function(){function r(t,e,n,a){this._stageTaskMap=W(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=n.concat(a)}return r.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(n){var a=n.overallTask;a&&a.dirty()})},r.prototype.getPerformArgs=function(t,e){if(!!t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),a=n.context,i=!e&&n.progressiveEnabled&&(!a||a.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=i?n.step:null,s=a&&a.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},r.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),a=t.getData(),i=a.count(),o=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,s=t.get("large")&&i>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?i:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=W();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}),e._pipe(a,a.dataTask)})},r.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;w(this._allHandlers,function(a){var i=t.get(a.uid)||t.set(a.uid,{}),o="";st(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,i,e,n),a.overallReset&&this._createOverallStageTask(a,i,e,n)},this)},r.prototype.prepareView=function(t,e,n,a){var i=t.renderTask,o=i.context;o.model=e,o.ecModel=n,o.api=a,i.__block=!t.incrementalPrepareRender,this._pipe(e,i)},r.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},r.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},r.prototype._performStageTasks=function(t,e,n,a){a=a||{};var i=!1,o=this;w(t,function(l,u){if(!(a.visualType&&a.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),f=c.seriesTaskMap,h=c.overallTask;if(h){var v,d=h.agentStubMap;d.each(function(g){s(a,g)&&(g.dirty(),v=!0)}),v&&h.dirty(),o.updatePayload(h,n);var p=o.getPerformArgs(h,a.block);d.each(function(g){g.perform(p)}),h.perform(p)&&(i=!0)}else f&&f.each(function(g,m){s(a,g)&&g.dirty();var y=o.getPerformArgs(g,a.block);y.skip=!l.performRawSeries&&e.isSeriesFiltered(g.context.model),o.updatePayload(g,n),g.perform(y)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},r.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(n){e=n.dataTask.perform()||e}),this.unfinished=e||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},r.prototype.updatePayload=function(t,e){e!=="remain"&&(t.context.payload=e)},r.prototype._createSeriesStageTask=function(t,e,n,a){var i=this,o=e.seriesTaskMap,s=e.seriesTaskMap=W(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(c):l?n.eachRawSeriesByType(l,c):u&&u(n,a).each(c);function c(f){var h=f.uid,v=s.set(h,o&&o.get(h)||dn({plan:r_,reset:n_,count:i_}));v.context={model:f,ecModel:n,api:a,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(f,v)}},r.prototype._createOverallStageTask=function(t,e,n,a){var i=this,o=e.overallTask=e.overallTask||dn({reset:Q0});o.context={ecModel:n,api:a,overallReset:t.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=W(),u=t.seriesType,c=t.getTargetSeries,f=!0,h=!1,v="";st(!t.createOnAllSeries,v),u?n.eachRawSeriesByType(u,d):c?c(n,a).each(d):(f=!1,w(n.getSeries(),d));function d(p){var g=p.uid,m=l.set(g,s&&s.get(g)||(h=!0,dn({reset:J0,onDirty:t_})));m.context={model:p,overallProgress:f},m.agent=o,m.__block=f,i._pipe(p,m)}h&&o.dirty()},r.prototype._pipe=function(t,e){var n=t.uid,a=this._pipelineMap.get(n);!a.head&&(a.head=e),a.tail&&a.tail.pipe(e),a.tail=e,e.__idxInPipeline=a.count++,e.__pipeline=a},r.wrapStageHandler=function(t,e){return U(t)&&(t={overallReset:t,seriesType:o_(t)}),t.uid=Fn("stageHandler"),e&&(t.visualType=e),t},r}();function Q0(r){r.overallReset(r.ecModel,r.api,r.payload)}function J0(r){return r.overallProgress&&e_}function e_(){this.agent.dirty(),this.getDownstream().dirty()}function t_(){this.agent&&this.agent.dirty()}function r_(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function n_(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=ve(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?z(t,function(e,n){return Ph(n)}):a_}var a_=Ph(0);function Ph(r){return function(t,e){var n=e.data,a=e.resetDefines[r];if(a&&a.dataEach)for(var i=t.start;i0&&v===u.length-h.length){var d=u.slice(0,v);d!=="data"&&(e.mainType=d,e[h.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(n[u]=l,c=!0),c||(a[u]=l)})}return{cptQuery:e,dataQuery:n,otherQuery:a}},r.prototype.filter=function(t,e){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 l=e.cptQuery,u=e.dataQuery;return c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,i,"name")&&c(u,i,"dataIndex")&&c(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,a,i));function c(f,h,v,d){return f[v]==null||h[d||v]===f[v]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),No=["symbol","symbolSize","symbolRotate","symbolOffset"],Ou=No.concat(["symbolKeepAspect"]),c_={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData();if(r.legendIcon&&e.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var n={},a={},i=!1,o=0;o0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,n,a){if(!this[De]){if(this._disposed){this.id;return}var i,o,s;if(H(n)&&(a=n.lazyUpdate,i=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[De]=!0,!this._model||n){var l=new Yy(this._api),u=this._theme,c=this._model=new ah;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(e,{replaceMerge:o},Go);var f={seriesTransition:s,optionChanged:!0};if(a)this[ke]={silent:i,updateParams:f},this[De]=!1,this.getZr().wakeUp();else{try{dr(this),At.update.call(this,null,f)}catch(h){throw this[ke]=null,this[De]=!1,h}this._ssr||this._zr.flush(),this[ke]=null,this[De]=!1,Kr.call(this,i),qr.call(this,i)}}},t.prototype.setTheme=function(){},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||P_&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var n=this._zr.painter;return n.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(!!ce.svgSupported){var e=this._zr,n=e.storage.getDisplayList();return w(n,function(a){a.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e=e||{};var n=e.excludeComponents,a=this._model,i=[],o=this;w(n,function(l){a.eachComponent({mainType:l},function(u){var c=o._componentsMap[u.__viewId];c.group.ignore||(i.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return w(i,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var n=e.type==="svg",a=this.group,i=Math.min,o=Math.max,s=1/0;if(Yu[a]){var l=s,u=s,c=-s,f=-s,h=[],v=e&&e.pixelRatio||this.getDevicePixelRatio();w(gn,function(_,S){if(_.group===a){var b=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(Z(e)),x=_.getDom().getBoundingClientRect();l=i(x.left,l),u=i(x.top,u),c=o(x.right,c),f=o(x.bottom,f),h.push({dom:b,left:x.left,top:x.top})}}),l*=v,u*=v,c*=v,f*=v;var d=c-l,p=f-u,g=jf.createCanvas(),m=Sl(g,{renderer:n?"svg":"canvas"});if(m.resize({width:d,height:p}),n){var y="";return w(h,function(_){var S=_.left-l,b=_.top-u;y+=''+_.dom+""}),m.painter.getSvgRoot().innerHTML=y,e.connectedBackgroundColor&&m.painter.setBackgroundColor(e.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return e.connectedBackgroundColor&&m.add(new fe({shape:{x:0,y:0,width:d,height:p},style:{fill:e.connectedBackgroundColor}})),w(h,function(_){var S=new Or({style:{x:_.left*v-l,y:_.top*v-u,image:_.dom}});m.add(S)}),m.refreshImmediately(),g.toDataURL("image/"+(e&&e.type||"png"))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,n){return Bi(this,"convertToPixel",e,n)},t.prototype.convertFromPixel=function(e,n){return Bi(this,"convertFromPixel",e,n)},t.prototype.containPixel=function(e,n){if(this._disposed){this.id;return}var a=this._model,i,o=cn(a,e);return w(o,function(s,l){l.indexOf("Models")>=0&&w(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)i=i||!!c.containPoint(n);else if(l==="seriesModels"){var f=this._chartsMap[u.__viewId];f&&f.containPoint&&(i=i||f.containPoint(n,u))}},this)},this),!!i},t.prototype.getVisual=function(e,n){var a=this._model,i=cn(a,e,{defaultMainType:"series"}),o=i.seriesModel,s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?v_(s,l,n):h_(s,n)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;w($_,function(n){var a=function(i){var o=e.getModel(),s=i.target,l,u=n==="globalout";if(u?l={}:s&&ln(s,function(d){var p=Q(d);if(p&&p.dataIndex!=null){var g=p.dataModel||o.getSeriesByIndex(p.seriesIndex);return l=g&&g.getDataParams(p.dataIndex,p.dataType)||{},!0}else if(p.eventData)return l=B({},p.eventData),!0},!0),l){var c=l.componentType,f=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",f=l.seriesIndex);var h=c&&f!=null&&o.getComponent(c,f),v=h&&e[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];l.event=i,l.type=n,e._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:h,view:v},e.trigger(n,l)}};a.zrEventfulCallAtLast=!0,e._zr.on(n,a,e)}),w(pn,function(n,a){e._messageCenter.on(a,function(i){this.trigger(a,i)},e)}),w(["selectchanged"],function(n){e._messageCenter.on(n,function(a){this.trigger(n,a)},e)}),p_(this._messageCenter,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 e=this.getDom();e&&fv(this.getDom(),Zs,"");var n=this,a=n._api,i=n._model;w(n._componentsViews,function(o){o.dispose(i,a)}),w(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 gn[n.id]},t.prototype.resize=function(e){if(!this[De]){if(this._disposed){this.id;return}this._zr.resize(e);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var a=n.resetOption("media"),i=e&&e.silent;this[ke]&&(i==null&&(i=this[ke].silent),a=!0,this[ke]=null),this[De]=!0;try{a&&dr(this),At.update.call(this,{type:"resize",animation:B({duration:0},e&&e.animation)})}catch(o){throw this[De]=!1,o}this[De]=!1,Kr.call(this,i),qr.call(this,i)}}},t.prototype.showLoading=function(e,n){if(this._disposed){this.id;return}if(H(e)&&(n=e,e=""),e=e||"default",this.hideLoading(),!!Wo[e]){var a=Wo[e](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(e){var n=B({},e);return n.type=pn[e.type],n},t.prototype.dispatchAction=function(e,n){if(this._disposed){this.id;return}if(H(n)||(n={silent:!!n}),!!Na[e.type]&&!!this._model){if(this[De]){this._pendingActions.push(e);return}var a=n.silent;Vi.call(this,e,a);var i=n.flush;i?this._zr.flush():i!==!1&&ce.browser.weChat&&this._throttledZrFlush(),Kr.call(this,a),qr.call(this,a)}},t.prototype.updateLabelLayout=function(){qe.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var n=e.seriesIndex,a=this.getModel(),i=a.getSeriesByIndex(n);i.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){dr=function(f){var h=f._scheduler;h.restorePipelines(f._model),h.prepareStageTasks(),Oi(f,!0),Oi(f,!1),h.plan()},Oi=function(f,h){for(var v=f._model,d=f._scheduler,p=h?f._componentsViews:f._chartsViews,g=h?f._componentsMap:f._chartsMap,m=f._zr,y=f._api,_=0;_h.get("hoverLayerThreshold")&&!ce.node&&!ce.worker&&h.eachSeries(function(g){if(!g.preventUsingHoverLayer){var m=f._chartsMap[g.__viewId];m.__alive&&m.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}function o(f,h){var v=f.get("blendMode")||null;h.eachRendered(function(d){d.isGroup||(d.style.blend=v)})}function s(f,h){if(!f.preventAutoZ){var v=f.get("z")||0,d=f.get("zlevel")||0;h.eachRendered(function(p){return l(p,v,d,-1/0),!0})}}function l(f,h,v,d){var p=f.getTextContent(),g=f.getTextGuideLine(),m=f.isGroup;if(m)for(var y=f.childrenRef(),_=0;_0?{duration:p,delay:v.get("delay"),easing:v.get("easing")}:null;h.eachRendered(function(m){if(m.states&&m.states.emphasis){if(xr(m))return;if(m instanceof ye&&Bm(m),m.__dirty){var y=m.prevStates;y&&m.useStates(y)}if(d){m.stateTransition=g;var _=m.getTextContent(),S=m.getTextGuideLine();_&&(_.stateTransition=g),S&&(S.stateTransition=g)}m.__dirty&&a(m)}})}Hu=function(f){return new(function(h){N(v,h);function v(){return h!==null&&h.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(d){for(;d;){var p=d.__ecComponentInfo;if(p!=null)return f._model.getComponent(p.mainType,p.index);d=d.parent}},v.prototype.enterEmphasis=function(d,p){Ar(d,p),Be(f)},v.prototype.leaveEmphasis=function(d,p){Mr(d,p),Be(f)},v.prototype.enterBlur=function(d){Dm(d),Be(f)},v.prototype.leaveBlur=function(d){_v(d),Be(f)},v.prototype.enterSelect=function(d){Sv(d),Be(f)},v.prototype.leaveSelect=function(d){xv(d),Be(f)},v.prototype.getModel=function(){return f.getModel()},v.prototype.getViewOfComponentModel=function(d){return f.getViewOfComponentModel(d)},v.prototype.getViewOfSeriesModel=function(d){return f.getViewOfSeriesModel(d)},v}(ih))(f)},Zh=function(f){function h(v,d){for(var p=0;p=0)){$u.push(e);var i=Eh.wrapStageHandler(e,a);i.__prio=t,i.__raw=e,r.push(i)}}function ed(r,t){Wo[r]=t}function J_(r,t,e){var n=L_("registerMap");n&&n(r,t,e)}var eS=S0;lr($s,X0);lr(ui,Z0);lr(ui,K0);lr($s,c_);lr(ui,f_);lr(Wh,A_);Qh(sh);Jh(E_,Jy);ed("default",q0);ct({type:jt,event:jt,update:jt},mt);ct({type:ma,event:ma,update:ma},mt);ct({type:fn,event:fn,update:fn},mt);ct({type:ya,event:ya,update:ya},mt);ct({type:vn,event:vn,update:vn},mt);jh("light",s_);jh("dark",l_);function jr(r){return r==null?0:r.length||1}function Xu(r){return r}var tS=function(){function r(t,e,n,a,i,o){this._old=t,this._new=e,this._oldKeyGetter=n||Xu,this._newKeyGetter=a||Xu,this.context=i,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(t){return this._add=t,this},r.prototype.update=function(t){return this._update=t,this},r.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},r.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},r.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},r.prototype.remove=function(t){return this._remove=t,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},a=new Array(t.length),i=new Array(e.length);this._initIndexMap(t,null,a,"_oldKeyGetter"),this._initIndexMap(e,n,i,"_newKeyGetter");for(var o=0;o1){var c=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(c,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,n)},r.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},a={},i=[],o=[];this._initIndexMap(t,n,i,"_oldKeyGetter"),this._initIndexMap(e,a,o,"_newKeyGetter");for(var s=0;s1&&h===1)this._updateManyToOne&&this._updateManyToOne(c,u),a[l]=null;else if(f===1&&h>1)this._updateOneToMany&&this._updateOneToMany(c,u),a[l]=null;else if(f===1&&h===1)this._update&&this._update(c,u),a[l]=null;else if(f>1&&h>1)this._updateManyToMany&&this._updateManyToMany(c,u),a[l]=null;else if(f>1)for(var v=0;v1)for(var s=0;s30}var Qr=H,Mt=z,lS=typeof Int32Array>"u"?Array:Int32Array,uS="e\0\0",Zu=-1,cS=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],fS=["_approximateExtent"],Ku,na,Jr,en,Gi,aa,Wi,vS=function(){function r(t,e){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var n,a=!1;rd(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(a=!0,n=t),n=n||["x","y"];for(var i={},o=[],s={},l=!1,u={},c=0;c=e)){var n=this._store,a=n.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=a.getSource().sourceFormat,l=s===Ye;if(l&&!a.pure)for(var u=[],c=t;c0},r.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,a=n[t];a||(a=n[t]={});var i=a[e];return i==null&&(i=this.getVisual(e),O(i)?i=i.slice():Qr(i)&&(i=B({},i)),a[e]=i),i},r.prototype.setItemVisual=function(t,e,n){var a=this._itemVisuals[t]||{};this._itemVisuals[t]=a,Qr(e)?B(a,e):a[e]=n},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){Qr(t)?B(this._layout,t):this._layout[t]=e},r.prototype.getLayout=function(t){return this._layout[t]},r.prototype.getItemLayout=function(t){return this._itemLayouts[t]},r.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?B(this._itemLayouts[t]||{},e):e},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;gm(n,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,e){w(this._graphicEls,function(n,a){n&&t&&t.call(e,n,a)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:Mt(this.dimensions,this._getDimInfo,this),this.hostModel)),Gi(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var n=this[t];!U(n)||(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var a=n.apply(this,arguments);return e.apply(this,[a].concat(gg(arguments)))})},r.internalField=function(){Ku=function(t){var e=t._invertedIndicesMap;w(e,function(n,a){var i=t._dimInfos[a],o=i.ordinalMeta,s=t._store;if(o){n=e[a]=new lS(o.categories.length);for(var l=0;l1&&(l+="__ec__"+c),a[e]=l}}}(),r}();const od=vS;function sd(r,t){Vs(r)||(r=zs(r)),t=t||{};var e=t.coordDimensions||[],n=t.dimensionsDefine||r.dimensionsDefine||[],a=W(),i=[],o=dS(r,e,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&id(o),l=n===r.dimensionsDefine,u=l?ad(r):nd(n),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(r,o));for(var f=W(c),h=new yh(o),v=0;v0&&(n.name=a+(i-1)),i++,t.set(a,i)}}function dS(r,t,e,n){var a=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,n||0);return w(t,function(i){var o;H(i)&&(o=i.dimsDef)&&(a=Math.max(a,o.length))}),a}function pS(r,t,e){var n=t.data;if(e||n.hasOwnProperty(r)){for(var a=0;n.hasOwnProperty(r+a);)a++;r+=a}return t.set(r,!0),r}var gS=function(){function r(t){this.coordSysDims=[],this.axisMap=W(),this.categoryAxisMap=W(),this.coordSysName=t}return r}();function mS(r){var t=r.get("coordinateSystem"),e=new gS(t),n=yS[t];if(n)return n(r,e,e.axisMap,e.categoryAxisMap),e}var yS={cartesian2d:function(r,t,e,n){var a=r.getReferringComponents("xAxis",Le).models[0],i=r.getReferringComponents("yAxis",Le).models[0];t.coordSysDims=["x","y"],e.set("x",a),e.set("y",i),pr(a)&&(n.set("x",a),t.firstCategoryDimIndex=0),pr(i)&&(n.set("y",i),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,n){var a=r.getReferringComponents("singleAxis",Le).models[0];t.coordSysDims=["single"],e.set("single",a),pr(a)&&(n.set("single",a),t.firstCategoryDimIndex=0)},polar:function(r,t,e,n){var a=r.getReferringComponents("polar",Le).models[0],i=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",i),e.set("angle",o),pr(i)&&(n.set("radius",i),t.firstCategoryDimIndex=0),pr(o)&&(n.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(r,t,e,n){t.coordSysDims=["lng","lat"]},parallel:function(r,t,e,n){var a=r.ecModel,i=a.getComponent("parallel",r.get("parallelIndex")),o=t.coordSysDims=i.dimensions.slice();w(i.parallelAxisIndex,function(s,l){var u=a.getComponent("parallelAxis",s),c=o[l];e.set(c,u),pr(u)&&(n.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function pr(r){return r.get("type")==="category"}function _S(r,t,e){e=e||{};var n=e.byIndex,a=e.stackedCoordDimension,i,o,s;SS(t)?i=t:(o=t.schema,i=o.dimensions,s=t.store);var l=!!(r&&r.get("stack")),u,c,f,h;if(w(i,function(y,_){F(y)&&(i[_]=y={name:y}),l&&!y.isExtraCoord&&(!n&&!u&&y.ordinalMeta&&(u=y),!c&&y.type!=="ordinal"&&y.type!=="time"&&(!a||a===y.coordDim)&&(c=y))}),c&&!n&&!u&&(n=!0),c){f="__\0ecstackresult_"+r.id,h="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var v=c.coordDim,d=c.type,p=0;w(i,function(y){y.coordDim===v&&p++});var g={name:f,coordDim:v,coordDimIndex:p,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},m={name:h,coordDim:h,coordDimIndex:p+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(h,d),m.storeDimIndex=s.ensureCalculationDimension(f,d)),o.appendCalculationDimension(g),o.appendCalculationDimension(m)):(i.push(g),i.push(m))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:h,stackResultDimension:f}}function SS(r){return!rd(r.schema)}function kr(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function xS(r,t){return kr(r,t)?r.getCalculationInfo("stackResultDimension"):t}function bS(r,t){var e=r.get("coordinateSystem"),n=Ns.get(e),a;return t&&t.coordSysDims&&(a=z(t.coordSysDims,function(i){var o={name:i},s=t.axisMap.get(i);if(s){var l=s.get("type");o.type=Ho(l)}return o})),a||(a=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),a}function wS(r,t,e){var n,a;return e&&w(r,function(i,o){var s=i.coordDim,l=e.categoryAxisMap.get(s);l&&(n==null&&(n=o),i.ordinalMeta=l.getOrdinalMeta(),t&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(a=!0)}),!a&&n!=null&&(r[n].otherDims.itemName=0),n}function ci(r,t,e){e=e||{};var n=t.getSourceManager(),a,i=!1;r?(i=!0,a=zs(r)):(a=n.getSource(),i=a.sourceFormat===Ye);var o=mS(t),s=bS(t,o),l=e.useEncodeDefaulter,u=U(l)?l:l?j(Jv,s,t):null,c={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},f=sd(a,c),h=wS(f.dimensions,e.createInvertedIndices,o),v=i?null:n.getSharedDataStore(f),d=_S(t,{schema:f,store:v}),p=new od(f,t);p.setCalculationInfo(d);var g=h!=null&&CS(a)?function(m,y,_,S){return S===h?_:this.defaultDimValueGetter(m,y,_,S)}:null;return p.hasItemOption=!1,p.initData(i?a:v,null,g),p}function CS(r){if(r.sourceFormat===Ye){var t=TS(r.data||[]);return!O(Nn(t))}}function TS(r){for(var t=0;te[1]&&(e[1]=t[1])},r.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},r.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(t){this._isBlank=t},r}();Ua(ld);const bt=ld;var DS=0,AS=function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++DS}return r.createByAxisModel=function(t){var e=t.option,n=e.data,a=n&&z(n,MS);return new r({categories:a,needCollect:!a,deduplication:e.dedplication!==!1})},r.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},r.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!F(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var a=this._getOrCreateMap();return e=a.get(t),e==null&&(n?(e=this.categories.length,this.categories[e]=t,a.set(t,e)):e=NaN),e},r.prototype._getOrCreateMap=function(){return this._map||(this._map=W(this.categories))},r}();function MS(r){return H(r)&&r.value!=null?r.value:r+""}const Uo=AS;function Yo(r){return r.type==="interval"||r.type==="log"}function IS(r,t,e,n){var a={},i=r[1]-r[0],o=a.interval=av(i/t,!0);e!=null&&on&&(o=a.interval=n);var s=a.intervalPrecision=ud(o),l=a.niceTickExtent=[me(Math.ceil(r[0]/o)*o,s),me(Math.floor(r[1]/o)*o,s)];return LS(l,r),a}function Hi(r){var t=Math.pow(10,ps(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,me(e*t)}function ud(r){return dt(r)+2}function qu(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function LS(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),qu(r,0,t),qu(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function fi(r,t){return r>=t[0]&&r<=t[1]}function vi(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function hi(r,t){return r*(t[1]-t[0])+t[0]}var cd=function(r){N(t,r);function t(e){var n=r.call(this,e)||this;n.type="ordinal";var a=n.getSetting("ordinalMeta");return a||(a=new Uo({})),O(a)&&(a=new Uo({categories:z(a,function(i){return H(i)?i.value:i})})),n._ordinalMeta=a,n._extent=n.getSetting("extent")||[0,a.categories.length-1],n}return t.prototype.parse=function(e){return e==null?NaN:F(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),fi(e,this._extent)&&this._ordinalMeta.categories[e]!=null},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),vi(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(hi(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],n=this._extent,a=n[0];a<=n[1];)e.push({value:a}),a++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=e.ordinalNumbers,a=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o=0&&e=0&&e=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(bt);bt.registerClass(cd);const fd=cd;var Xt=me,vd=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return fi(e,this._extent)},t.prototype.normalize=function(e){return vi(e,this._extent)},t.prototype.scale=function(e){return hi(e,this._extent)},t.prototype.setExtent=function(e,n){var a=this._extent;isNaN(e)||(a[0]=parseFloat(e)),isNaN(n)||(a[1]=parseFloat(n))},t.prototype.unionExtent=function(e){var n=this._extent;e[0]n[1]&&(n[1]=e[1]),this.setExtent(n[0],n[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=ud(e)},t.prototype.getTicks=function(e){var n=this._interval,a=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var l=1e4;a[0]l)return[];var c=s.length?s[s.length-1].value:i[1];return a[1]>c&&(e?s.push({value:Xt(c+n,o)}):s.push({value:a[1]})),s},t.prototype.getMinorTicks=function(e){for(var n=this.getTicks(!0),a=[],i=this.getExtent(),o=1;oi[0]&&v0&&(i=i===null?s:Math.min(i,s))}e[n]=i}}return e}function pd(r){var t=RS(r),e=[];return w(r,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 l=i.dim+"_"+i.index,u=t[l],c=Math.abs(o[1]-o[0]),f=i.scale.getExtent(),h=Math.abs(f[1]-f[0]);s=u?c/h*u:c}else{var v=n.getData();s=Math.abs(o[1]-o[0])/v.count()}var d=ee(n.get("barWidth"),s),p=ee(n.get("barMaxWidth"),s),g=ee(n.get("barMinWidth")||(_d(n)?.5:1),s),m=n.get("barGap"),y=n.get("barCategoryGap");e.push({bandWidth:s,barWidth:d,barMaxWidth:p,barMinWidth:g,barGap:m,barCategoryGap:y,axisKey:Qs(i),stackId:js(n)})}),ES(e)}function ES(r){var t={};w(r,function(n,a){var i=n.axisKey,o=n.bandWidth,s=t[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[i]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=n.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var f=n.barMaxWidth;f&&(l[u].maxWidth=f);var h=n.barMinWidth;h&&(l[u].minWidth=h);var v=n.barGap;v!=null&&(s.gap=v);var d=n.barCategoryGap;d!=null&&(s.categoryGap=d)});var e={};return w(t,function(n,a){e[a]={};var i=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=Ue(i).length;s=Math.max(35-l*4,15)+"%"}var u=ee(s,o),c=ee(n.gap,1),f=n.remainedWidth,h=n.autoWidthCount,v=(f-u)/(h+(h-1)*c);v=Math.max(v,0),w(i,function(m){var y=m.maxWidth,_=m.minWidth;if(m.width){var S=m.width;y&&(S=Math.min(S,y)),_&&(S=Math.max(S,_)),m.width=S,f-=S+c*S,h--}else{var S=v;y&&yS&&(S=_),S!==v&&(m.width=S,f-=S+c*S,h--)}}),v=(f-u)/(h+(h-1)*c),v=Math.max(v,0);var d=0,p;w(i,function(m,y){m.width||(m.width=v),p=m,d+=m.width*(1+c)}),p&&(d-=p.width*c);var g=-d/2;w(i,function(m,y){e[a][y]=e[a][y]||{bandWidth:o,offset:g,width:m.width},g+=m.width*(1+c)})}),e}function OS(r,t,e){if(r&&t){var n=r[Qs(t)];return n!=null&&e!=null?n[js(e)]:n}}function gd(r,t){var e=dd(r,t),n=pd(e);w(e,function(a){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=js(a),u=n[Qs(s)][l],c=u.offset,f=u.width;i.setLayout({bandWidth:u.bandWidth,offset:c,size:f})})}function md(r){return{seriesType:r,plan:Gn(),reset:function(t){if(!!yd(t)){var e=t.getData(),n=t.coordinateSystem,a=n.getBaseAxis(),i=n.getOtherAxis(a),o=e.getDimensionIndex(e.mapDimension(i.dim)),s=e.getDimensionIndex(e.mapDimension(a.dim)),l=t.get("showBackground",!0),u=e.mapDimension(i.dim),c=e.getCalculationInfo("stackResultDimension"),f=kr(e,u)&&!!e.getCalculationInfo("stackedOnSeries"),h=i.isHorizontal(),v=BS(a,i),d=_d(t),p=t.get("barMinHeight")||0,g=c&&e.getDimensionIndex(c),m=e.getLayout("size"),y=e.getLayout("offset");return{progress:function(_,S){for(var b=_.count,x=d&&nt(b*3),C=d&&l&&nt(b*3),T=d&&nt(b),D=n.master.getRect(),M=h?D.width:D.height,A,I=S.getStore(),L=0;(A=_.next())!=null;){var P=I.get(f?g:o,A),k=I.get(s,A),V=v,$=void 0;f&&($=+P-I.get(o,A));var R=void 0,E=void 0,G=void 0,Y=void 0;if(h){var X=n.dataToPoint([P,k]);if(f){var J=n.dataToPoint([$,k]);V=J[0]}R=V,E=X[1]+y,G=X[0]-V,Y=m,Math.abs(G)>>1;r[a][1]a&&(this._approxInterval=a);var s=ia.length,l=Math.min(NS(ia,this._approxInterval,0,s),s-1);this._interval=ia[l][1],this._minLevelUnit=ia[Math.max(l-1,0)][0]},t.prototype.parse=function(e){return oe(e)?e:+yt(e)},t.prototype.contain=function(e){return fi(this.parse(e),this._extent)},t.prototype.normalize=function(e){return vi(this.parse(e),this._extent)},t.prototype.scale=function(e){return hi(e,this._extent)},t.type="time",t}(Wn),ia=[["second",Ps],["minute",ks],["hour",hn],["quarter-day",hn*6],["half-day",hn*12],["day",Fe*1.2],["half-week",Fe*3.5],["week",Fe*7],["month",Fe*31],["quarter",Fe*95],["half-year",Zl/2],["year",Zl]];function VS(r,t,e,n){var a=yt(t),i=yt(e),o=function(d){return ql(a,d,n)===ql(i,d,n)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},c=function(){return u()&&o("hour")},f=function(){return c()&&o("minute")},h=function(){return f()&&o("second")},v=function(){return h()&&o("millisecond")};switch(r){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return f();case"second":return h();case"millisecond":return v()}}function zS(r,t){return r/=Fe,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function FS(r){var t=30*Fe;return r/=t,r>6?6:r>3?3:r>2?2:1}function GS(r){return r/=hn,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function ju(r,t){return r/=t?ks:Ps,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function WS(r){return av(r,!0)}function HS(r,t,e){var n=new Date(r);switch(br(t)){case"year":case"month":n[Fv(e)](0);case"day":n[Gv(e)](1);case"hour":n[Wv(e)](0);case"minute":n[Hv(e)](0);case"second":n[Uv(e)](0),n[Yv(e)](0)}return n.getTime()}function US(r,t,e,n){var a=1e4,i=Vv,o=0;function s(M,A,I,L,P,k,V){for(var $=new Date(A),R=A,E=$[L]();R1&&k===0&&I.unshift({value:I[0].value-R})}}for(var k=0;k=n[0]&&y<=n[1]&&f++)}var _=(n[1]-n[0])/t;if(f>_*1.5&&h>_/1.5||(u.push(g),f>_||r===i[v]))break}c=[]}}}for(var S=xe(z(u,function(M){return xe(M,function(A){return A.value>=n[0]&&A.value<=n[1]&&!A.notAdd})}),function(M){return M.length>0}),b=[],x=S.length-1,v=0;v0;)i*=10;var s=[me(ZS(n[0]/i)*i),me(XS(n[1]/i)*i)];this._interval=i,this._niceExtent=s}},t.prototype.calcNiceExtent=function(e){mn.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return e=Ke(e)/Ke(this.base),fi(e,this._extent)},t.prototype.normalize=function(e){return e=Ke(e)/Ke(this.base),vi(e,this._extent)},t.prototype.scale=function(e){return e=hi(e,this._extent),oa(this.base,e)},t.type="log",t}(bt),xd=Js.prototype;xd.getMinorTicks=mn.getMinorTicks;xd.getLabel=mn.getLabel;function sa(r,t){return $S(r,dt(t))}bt.registerClass(Js);const KS=Js;var qS=function(){function r(t,e,n){this._prepareParams(t,e,n)}return r.prototype._prepareParams=function(t,e,n){n[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var h=this._determinedMin,v=this._determinedMax;return h!=null&&(s=h,u=!0),v!=null&&(l=v,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:f}},r.prototype.modifyDataMinMax=function(t,e){this[QS[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var n=jS[t];this[n]=e},r.prototype.freeze=function(){this.frozen=!0},r}(),jS={min:"_determinedMin",max:"_determinedMax"},QS={min:"_dataMin",max:"_dataMax"};function bd(r,t,e){var n=r.rawExtentInfo;return n||(n=new qS(r,t,e),r.rawExtentInfo=n,n)}function la(r,t){return t==null?null:_o(t)?NaN:r.parse(t)}function wd(r,t){var e=r.type,n=bd(r,t,r.getExtent()).calculate();r.setBlank(n.isBlank);var a=n.min,i=n.max,o=t.ecModel;if(o&&e==="time"){var s=dd("bar",o),l=!1;if(w(s,function(f){l=l||f.getBaseAxis()===t.axis}),l){var u=pd(s),c=JS(a,i,t,u);a=c.min,i=c.max}}return{extent:[a,i],fixMin:n.minFixed,fixMax:n.maxFixed}}function JS(r,t,e,n){var a=e.axis.getExtent(),i=a[1]-a[0],o=OS(n,e.axis);if(o===void 0)return{min:r,max:t};var s=1/0;w(o,function(v){s=Math.min(v.offset,s)});var l=-1/0;w(o,function(v){l=Math.max(v.offset+v.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=t-r,f=1-(s+l)/i,h=c/f-c;return t+=h*(l/u),r-=h*(s/u),{min:r,max:t}}function Ju(r,t){var e=t,n=wd(r,e),a=n.extent,i=e.get("splitNumber");r instanceof KS&&(r.base=e.get("logBase"));var o=r.type,s=e.get("interval"),l=o==="interval"||o==="time";r.setExtent(a[0],a[1]),r.calcNiceExtent({splitNumber:i,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?e.get("minInterval"):null,maxInterval:l?e.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function ex(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new fd({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new YS({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(bt.getClass(t)||Wn)}}function tx(r){var t=r.scale.getExtent(),e=t[0],n=t[1];return!(e>0&&n>0||e<0&&n<0)}function Hn(r){var t=r.getLabelModel().get("formatter"),e=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?function(n){return function(a,i){return r.scale.getFormattedLabel(a,i,n)}}(t):F(t)?function(n){return function(a){var i=r.scale.getLabel(a),o=n.replace("{value}",i!=null?i:"");return o}}(t):U(t)?function(n){return function(a,i){return e!=null&&(i=a.value-e),n(el(r,a),i,a.level!=null?{level:a.level}:null)}}(t):function(n){return r.scale.getLabel(n)}}function el(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function rx(r){var t=r.model,e=r.scale;if(!(!t.get(["axisLabel","show"])||e.isBlank())){var n,a,i=e.getExtent();e instanceof fd?a=e.count():(n=e.getTicks(),a=n.length);var o=r.getLabelModel(),s=Hn(r),l,u=1;a>40&&(u=Math.ceil(a/40));for(var c=0;cr[1]&&(r[1]=a[1])})}var ix=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},r.prototype.getCoordSysModel=function(){},r}(),ec=[],ox={registerPreprocessor:Qh,registerProcessor:Jh,registerPostInit:K_,registerPostUpdate:q_,registerUpdateLifecycle:Ks,registerAction:ct,registerCoordinateSystem:j_,registerLayout:Q_,registerVisual:lr,registerTransform:eS,registerLoading:ed,registerMap:J_,registerImpl:I_,PRIORITY:H_,ComponentModel:ae,ComponentView:He,SeriesModel:lt,ChartView:Ee,registerComponentModel:function(r){ae.registerClass(r)},registerComponentView:function(r){He.registerClass(r)},registerSeriesModel:function(r){lt.registerClass(r)},registerChartView:function(r){Ee.registerClass(r)},registerSubTypeDefaulter:function(r,t){ae.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){mg(r,t)}};function _t(r){if(O(r)){w(r,function(t){_t(t)});return}ie(ec,r)>=0||(ec.push(r),U(r)&&(r={install:r}),r.install(ox))}var Ln=le();function sx(r){return r.type==="category"?ux(r):fx(r)}function lx(r,t){return r.type==="category"?cx(r,t):{ticks:z(r.scale.getTicks(),function(e){return e.value})}}function ux(r){var t=r.getLabelModel(),e=Dd(r,t);return!t.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:e.labelCategoryInterval}:e}function Dd(r,t){var e=Ad(r,"labels"),n=tl(t),a=Md(e,n);if(a)return a;var i,o;return U(n)?i=Pd(r,n):(o=n==="auto"?vx(r):n,i=Ld(r,o)),Id(e,n,{labels:i,labelCategoryInterval:o})}function cx(r,t){var e=Ad(r,"ticks"),n=tl(t),a=Md(e,n);if(a)return a;var i,o;if((!t.get("show")||r.scale.isBlank())&&(i=[]),U(n))i=Pd(r,n,!0);else if(n==="auto"){var s=Dd(r,r.getLabelModel());o=s.labelCategoryInterval,i=z(s.labels,function(l){return l.tickValue})}else o=n,i=Ld(r,o,!0);return Id(e,n,{ticks:i,tickCategoryInterval:o})}function fx(r){var t=r.scale.getTicks(),e=Hn(r);return{labels:z(t,function(n,a){return{level:n.level,formattedLabel:e(n,a),rawLabel:r.scale.getLabel(n),tickValue:n.value}})}}function Ad(r,t){return Ln(r)[t]||(Ln(r)[t]=[])}function Md(r,t){for(var e=0;e40&&(s=Math.max(1,Math.floor(o/40)));for(var l=i[0],u=r.dataToCoord(l+1)-r.dataToCoord(l),c=Math.abs(u*Math.cos(n)),f=Math.abs(u*Math.sin(n)),h=0,v=0;l<=i[1];l+=s){var d=0,p=0,g=ds(e({value:l}),t.font,"center","top");d=g.width*1.3,p=g.height*1.3,h=Math.max(h,d,7),v=Math.max(v,p,7)}var m=h/c,y=v/f;isNaN(m)&&(m=1/0),isNaN(y)&&(y=1/0);var _=Math.max(0,Math.floor(Math.min(m,y))),S=Ln(r.model),b=r.getExtent(),x=S.lastAutoInterval,C=S.lastTickCount;return x!=null&&C!=null&&Math.abs(x-_)<=1&&Math.abs(C-o)<=1&&x>_&&S.axisExtent0===b[0]&&S.axisExtent1===b[1]?_=x:(S.lastTickCount=o,S.lastAutoInterval=_,S.axisExtent0=b[0],S.axisExtent1=b[1]),_}function dx(r){var t=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function Ld(r,t,e){var n=Hn(r),a=r.scale,i=a.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=i[0],c=a.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var f=Cd(r),h=o.get("showMinLabel")||f,v=o.get("showMaxLabel")||f;h&&u!==i[0]&&p(i[0]);for(var d=u;d<=i[1];d+=l)p(d);v&&d-l!==i[1]&&p(i[1]);function p(g){var m={value:g};s.push(e?g:{formattedLabel:n(m),rawLabel:a.getLabel(m),tickValue:g})}return s}function Pd(r,t,e){var n=r.scale,a=Hn(r),i=[];return w(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;t(o.value,s)&&i.push(e?l:{formattedLabel:a(o),rawLabel:s,tickValue:l})}),i}var tc=[0,1],px=function(){function r(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return r.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),a=Math.max(e[0],e[1]);return t>=n&&t<=a},r.prototype.containData=function(t){return this.scale.contain(t)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(t){return rv(t||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},r.prototype.dataToCoord=function(t,e){var n=this._extent,a=this.scale;return t=a.normalize(t),this.onBand&&a.type==="ordinal"&&(n=n.slice(),rc(n,a.count())),Et(t,tc,n,e)},r.prototype.coordToData=function(t,e){var n=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(n=n.slice(),rc(n,a.count()));var i=Et(t,n,tc,e);return this.scale.scale(i)},r.prototype.pointToData=function(t,e){},r.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),n=lx(this,e),a=n.ticks,i=z(a,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=e.get("alignWithLabel");return gx(this,i,o,t.clamp),i},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var n=this.scale.getMinorTicks(e),a=z(n,function(i){return z(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},r.prototype.getViewLabels=function(){return sx(this).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);n===0&&(n=1);var a=Math.abs(t[1]-t[0]);return Math.abs(a)/n},r.prototype.calculateCategoryInterval=function(){return hx(this)},r}();function rc(r,t){var e=r[1]-r[0],n=t,a=e/n/2;r[0]+=a,r[1]-=a}function gx(r,t,e,n){var a=t.length;if(!r.onBand||e||!a)return;var i=r.getExtent(),o,s;if(a===1)t[0].coord=i[0],o=t[1]={coord:i[0]};else{var l=t[a-1].tickValue-t[0].tickValue,u=(t[a-1].coord-t[0].coord)/l;w(t,function(v){v.coord-=u/2});var c=r.scale.getExtent();s=1+c[1]-t[a-1].tickValue,o={coord:t[a-1].coord+u*s},t.push(o)}var f=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]}),h(i[1],o.coord)&&(n?o.coord=i[1]:t.pop()),n&&h(o.coord,i[1])&&t.push({coord:i[1]});function h(v,d){return v=me(v),d=me(d),f?v>d:va&&(a+=tn);var v=Math.atan2(s,o);if(v<0&&(v+=tn),v>=n&&v<=a||v+tn>=n&&v+tn<=a)return l[0]=c,l[1]=f,u-e;var d=e*Math.cos(n)+r,p=e*Math.sin(n)+t,g=e*Math.cos(a)+r,m=e*Math.sin(a)+t,y=(d-o)*(d-o)+(p-s)*(p-s),_=(g-o)*(g-o)+(m-s)*(m-s);return y<_?(l[0]=d,l[1]=p,Math.sqrt(y)):(l[0]=g,l[1]=m,Math.sqrt(_))}function za(r,t,e,n,a,i,o,s){var l=a-r,u=i-t,c=e-r,f=n-t,h=Math.sqrt(c*c+f*f);c/=h,f/=h;var v=l*c+u*f,d=v/h;s&&(d=Math.min(Math.max(d,0),1)),d*=h;var p=o[0]=r+d*c,g=o[1]=t+d*f;return Math.sqrt((p-a)*(p-a)+(g-i)*(g-i))}function kd(r,t,e,n,a,i,o){e<0&&(r=r+e,e=-e),n<0&&(t=t+n,n=-n);var s=r+e,l=t+n,u=o[0]=Math.min(Math.max(a,r),s),c=o[1]=Math.min(Math.max(i,t),l);return Math.sqrt((u-a)*(u-a)+(c-i)*(c-i))}var je=[];function xx(r,t,e){var n=kd(t.x,t.y,t.width,t.height,r.x,r.y,je);return e.set(je[0],je[1]),n}function bx(r,t,e){for(var n=0,a=0,i=0,o=0,s,l,u=1/0,c=t.data,f=r.x,h=r.y,v=0;v0){t=t/180*Math.PI,Je.fromArray(r[0]),re.fromArray(r[1]),ue.fromArray(r[2]),Se.sub(at,Je,re),Se.sub(tt,ue,re);var e=at.len(),n=tt.len();if(!(e<.001||n<.001)){at.scale(1/e),tt.scale(1/n);var a=at.dot(tt),i=Math.cos(t);if(i1&&Se.copy(Ie,ue),Ie.toArray(r[1])}}}}function wx(r,t,e){if(e<=180&&e>0){e=e/180*Math.PI,Je.fromArray(r[0]),re.fromArray(r[1]),ue.fromArray(r[2]),Se.sub(at,re,Je),Se.sub(tt,ue,re);var n=at.len(),a=tt.len();if(!(n<.001||a<.001)){at.scale(1/n),tt.scale(1/a);var i=at.dot(t),o=Math.cos(e);if(i=l)Se.copy(Ie,ue);else{Ie.scaleAndAdd(tt,s/Math.tan(Math.PI/2-c));var f=ue.x!==re.x?(Ie.x-re.x)/(ue.x-re.x):(Ie.y-re.y)/(ue.y-re.y);if(isNaN(f))return;f<0?Se.copy(Ie,re):f>1&&Se.copy(Ie,ue)}Ie.toArray(r[1])}}}}function ac(r,t,e,n){var a=e==="normal",i=a?r:r.ensureState(e);i.ignore=t;var o=n.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();a?r.useStyle(s):i.style=s}function Cx(r,t){var e=t.smooth,n=t.points;if(!!n)if(r.moveTo(n[0][0],n[0][1]),e>0&&n.length>=3){var a=xl(n[0],n[1]),i=xl(n[1],n[2]);if(!a||!i){r.lineTo(n[1][0],n[1][1]),r.lineTo(n[2][0],n[2][1]);return}var o=Math.min(a,i)*e,s=_i([],n[1],n[0],o/a),l=_i([],n[1],n[2],o/i),u=_i([],s,l,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),r.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var c=1;c0&&i&&b(-c/o,0,o);var p=r[0],g=r[o-1],m,y;_(),m<0&&x(-m,.8),y<0&&x(y,.8),_(),S(m,y,1),S(y,m,-1),_(),m<0&&C(-m),y<0&&C(y);function _(){m=p.rect[t]-n,y=a-g.rect[t]-g.rect[e]}function S(T,D,M){if(T<0){var A=Math.min(D,-T);if(A>0){b(A*M,0,o);var I=A+T;I<0&&x(-I*M,1)}else x(-T*M,1)}}function b(T,D,M){T!==0&&(u=!0);for(var A=D;A0)for(var I=0;I0;I--){var V=M[I-1]*k;b(-V,I,o)}}}function C(T){var D=T<0?-1:1;T=Math.abs(T);for(var M=Math.ceil(T/(o-1)),A=0;A0?b(M,0,A+1):b(-M,o-A-1,o),T-=M,T<=0)return}return u}function Tx(r,t,e,n){return Nd(r,"x","width",t,e,n)}function Vd(r,t,e,n){return Nd(r,"y","height",t,e,n)}function zd(r){var t=[];r.sort(function(p,g){return g.priority-p.priority});var e=new Oe(0,0,0,0);function n(p){if(!p.ignore){var g=p.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}p.ignore=!0}for(var a=0;a=0&&n.attr(i.oldLayoutSelect),ie(h,"emphasis")>=0&&n.attr(i.oldLayoutEmphasis)),pe(n,u,e,l)}else if(n.attr(u),!Vr(n).valueAnimation){var f=se(n.style.opacity,1);n.style.opacity=0,Te(n,{style:{opacity:f}},e,l)}if(i.oldLayout=u,n.states.select){var v=i.oldLayoutSelect={};ua(v,u,ca),ua(v,n.states.select,ca)}if(n.states.emphasis){var d=i.oldLayoutEmphasis={};ua(d,u,ca),ua(d,n.states.emphasis,ca)}Qm(n,l,c,e,e)}if(a&&!a.ignore&&!a.invisible){var i=Mx(a),o=i.oldLayout,p={points:a.shape.points};o?(a.attr({shape:o}),pe(a,{shape:p},e)):(a.setShape(p),a.style.strokePercent=0,Te(a,{style:{strokePercent:1}},e)),i.oldLayout=p}},r}();const Lx=Ix;var Yi=le();function uD(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){var a=Yi(e).labelManager;a||(a=Yi(e).labelManager=new Lx),a.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(t,e,n){var a=Yi(e).labelManager;n.updatedSeries.forEach(function(i){a.addLabelsOfSeries(e.getViewOfSeriesModel(i))}),a.updateLayoutConfig(e),a.layout(e),a.processLabelsOverall()})}var Px=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(ae);const kx=Px;var $o=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Le).models[0]},t.type="cartesian2dAxis",t}(ae);St($o,ix);var Fd={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},Rx=K({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},Fd),rl=K({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},Fd),Ex=K({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},rl),Ox=te({logBase:10},rl);const Bx={category:Rx,value:rl,time:Ex,log:Ox};var Nx={value:1,category:1,time:1,log:1};function oc(r,t,e,n){w(Nx,function(a,i){var o=K(K({},Bx[i],!0),n,!0),s=function(l){N(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=t+"Axis."+i,c}return u.prototype.mergeDefaultAndTheme=function(c,f){var h=Tn(this),v=h?ii(c):{},d=f.getTheme();K(c,d.get(i+"Axis")),K(c,this.getDefaultOption()),c.type=sc(c),h&&Lr(c,v,h)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=Uo.createByAxisModel(this))},u.prototype.getCategories=function(c){var f=this.option;if(f.type==="category")return c?f.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=t+"Axis."+i,u.defaultOption=o,u}(e);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(t+"Axis",sc)}function sc(r){return r.type||(r.data?"category":"value")}var Vx=function(){function r(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return r.prototype.getAxis=function(t){return this._axes[t]},r.prototype.getAxes=function(){return z(this._dimList,function(t){return this._axes[t]},this)},r.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),xe(this.getAxes(),function(e){return e.scale.type===t})},r.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},r}();const zx=Vx;var Xo=["x","y"];function lc(r){return r.type==="interval"||r.type==="time"}var Fx=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=Xo,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!lc(e)||!lc(n))){var a=e.getExtent(),i=n.getExtent(),o=this.dataToPoint([a[0],i[0]]),s=this.dataToPoint([a[1],i[1]]),l=a[1]-a[0],u=i[1]-i[0];if(!(!l||!u)){var c=(s[0]-o[0])/l,f=(s[1]-o[1])/u,h=o[0]-a[0]*c,v=o[1]-i[0]*f,d=this._transform=[c,0,0,f,h,v];this._invTransform=fs([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var n=this.getAxis("x"),a=this.getAxis("y");return n.contain(n.toLocalCoord(e[0]))&&a.contain(a.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,n){var a=this.dataToPoint(e),i=this.dataToPoint(n),o=this.getArea(),s=new Oe(a[0],a[1],i[0]-a[0],i[1]-a[1]);return o.intersect(s)},t.prototype.dataToPoint=function(e,n,a){a=a||[];var i=e[0],o=e[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return er(a,e,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return a[0]=s.toGlobalCoord(s.dataToCoord(i,n)),a[1]=l.toGlobalCoord(l.dataToCoord(o,n)),a},t.prototype.clampData=function(e,n){var a=this.getAxis("x").scale,i=this.getAxis("y").scale,o=a.getExtent(),s=i.getExtent(),l=a.parse(e[0]),u=i.parse(e[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},t.prototype.pointToData=function(e,n){var a=[];if(this._invTransform)return er(a,e,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return a[0]=i.coordToData(i.toLocalCoord(e[0]),n),a[1]=o.coordToData(o.toLocalCoord(e[1]),n),a},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim==="x"?"y":"x")},t.prototype.getArea=function(){var e=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),a=Math.min(e[0],e[1]),i=Math.min(n[0],n[1]),o=Math.max(e[0],e[1])-a,s=Math.max(n[0],n[1])-i;return new Oe(a,i,o,s)},t}(zx),Gx=function(r){N(t,r);function t(e,n,a,i,o){var s=r.call(this,e,n,a)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.getGlobalExtent=function(e){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),e&&n[0]>n[1]&&n.reverse(),n},t.prototype.pointToData=function(e,n){return this.coordToData(this.toLocalCoord(e[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(e){if(this.type!=="category")return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(mx);const Wx=Gx;function Zo(r,t,e){e=e||{};var n=r.coordinateSystem,a=t.axis,i={},o=a.getAxesOnZeroOf()[0],s=a.position,l=o?"onZero":s,u=a.dim,c=n.getRect(),f=[c.x,c.x+c.width,c.y,c.y+c.height],h={left:0,right:1,top:0,bottom:1,onZero:2},v=t.get("offset")||0,d=u==="x"?[f[2]-v,f[3]+v]:[f[0]-v,f[1]+v];if(o){var p=o.toGlobalCoord(o.dataToCoord(0));d[h.onZero]=Math.max(Math.min(p,d[1]),d[0])}i.position=[u==="y"?d[h[l]]:f[0],u==="x"?d[h[l]]:f[3]],i.rotation=Math.PI/2*(u==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=g[s],i.labelOffset=o?d[h[s]]-d[h.onZero]:0,t.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),Dr(e.labelInside,t.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var m=t.get(["axisLabel","rotate"]);return i.labelRotate=l==="top"?-m:m,i.z2=1,i}function uc(r){return r.get("coordinateSystem")==="cartesian2d"}function cc(r){var t={xAxisModel:null,yAxisModel:null};return w(t,function(e,n){var a=n.replace(/Model$/,""),i=r.getReferringComponents(a,Le).models[0];t[n]=i}),t}var $i=Math.log;function Hx(r,t,e){var n=Wn.prototype,a=n.getTicks.call(e),i=n.getTicks.call(e,!0),o=a.length-1,s=n.getInterval.call(e),l=wd(r,t),u=l.extent,c=l.fixMin,f=l.fixMax;if(r.type==="log"){var h=$i(r.base);u=[$i(u[0])/h,$i(u[1])/h]}r.setExtent(u[0],u[1]),r.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:f});var v=n.getExtent.call(r);c&&(u[0]=v[0]),f&&(u[1]=v[1]);var d=n.getInterval.call(r),p=u[0],g=u[1];if(c&&f)d=(g-p)/o;else if(c)for(g=u[0]+d*o;gu[0]&&isFinite(p)&&isFinite(u[0]);)d=Hi(d),p=u[1]-d*o;else{var m=r.getTicks().length-1;m>o&&(d=Hi(d));var y=d*o;g=Math.ceil(u[1]/d)*d,p=me(g-y),p<0&&u[0]>=0?(p=0,g=me(y)):g>0&&u[1]<=0&&(g=0,p=-me(y))}var _=(a[0].value-i[0].value)/s,S=(a[o].value-i[o].value)/s;n.setExtent.call(r,p+d*_,g+d*S),n.setInterval.call(r,d),(_||S)&&n.setNiceExtent.call(r,p+d,g-d)}var Ux=function(){function r(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Xo,this._initCartesian(t,e,n),this.model=t}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(t,e){var n=this._axesMap;this._updateScale(t,this.model);function a(o){var s,l=Ue(o),u=l.length;if(!!u){for(var c=[],f=u-1;f>=0;f--){var h=+l[f],v=o[h],d=v.model,p=v.scale;Yo(p)&&d.get("alignTicks")&&d.get("interval")==null?c.push(v):(Ju(p,d),Yo(p)&&(s=v))}c.length&&(s||(s=c.pop(),Ju(s.scale,s.model)),w(c,function(g){Hx(g.scale,g.model,s.scale)}))}}a(n.x),a(n.y);var i={};w(n.x,function(o){fc(n,"y",o,i)}),w(n.y,function(o){fc(n,"x",o,i)}),this.resize(this.model,e)},r.prototype.resize=function(t,e,n){var a=t.getBoxLayoutParams(),i=!n&&t.get("containLabel"),o=zt(a,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var s=this._axesList;l(),i&&(w(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=rx(u);if(c){var f=u.isHorizontal()?"height":"width",h=u.model.get(["axisLabel","margin"]);o[f]-=c[f]+h,u.position==="top"?o.y+=c.height+h:u.position==="left"&&(o.x+=c.width+h)}}}),l()),w(this._coordsList,function(u){u.calcAffineTransform()});function l(){w(s,function(u){var c=u.isHorizontal(),f=c?[0,o.width]:[0,o.height],h=u.inverse?1:0;u.setExtent(f[h],f[1-h]),Yx(u,c?o.x:o.y)})}},r.prototype.getAxis=function(t,e){var n=this._axesMap[t];if(n!=null)return n[e||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(t,e){if(t!=null&&e!=null){var n="x"+t+"y"+e;return this._coordsMap[n]}H(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var a=0,i=this._coordsList;a0?"top":"bottom",i="center"):Ia(a-Ot)?(o=n>0?"bottom":"top",i="center"):(o="middle",a>0&&a0?"right":"left":i=n>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:o}},r.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},r.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},r}(),hc={axisLine:function(r,t,e,n){var a=t.get(["axisLine","show"]);if(a==="auto"&&r.handleAutoShown&&(a=r.handleAutoShown("axisLine")),!!a){var i=t.axis.getExtent(),o=n.transform,s=[i[0],0],l=[i[1],0],u=s[0]>l[0];o&&(er(s,s,o),er(l,l,o));var c=B({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new tr({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});bn(f.shape,f.style.lineWidth),f.anid="line",e.add(f);var h=t.get(["axisLine","symbol"]);if(h!=null){var v=t.get(["axisLine","symbolSize"]);F(h)&&(h=[h,h]),(F(v)||oe(v))&&(v=[v,v]);var d=Ys(t.get(["axisLine","symbolOffset"])||0,v),p=v[0],g=v[1];w([{rotate:r.rotation+Math.PI/2,offset:d[0],r:0},{rotate:r.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(m,y){if(h[y]!=="none"&&h[y]!=null){var _=Ft(h[y],-p/2,-g/2,p,g,c.stroke,!0),S=m.r+m.offset,b=u?l:s;_.attr({rotation:m.rotate,x:b[0]+S*Math.cos(r.rotation),y:b[1]-S*Math.sin(r.rotation),silent:!0,z2:11}),e.add(_)}})}}},axisTickLabel:function(r,t,e,n){var a=Kx(e,n,t,r),i=jx(e,n,t,r);if(Zx(t,i,a),qx(e,n,t,r.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=Bd(z(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));zd(o)}},axisName:function(r,t,e,n){var a=Dr(r.axisName,t.get("name"));if(!!a){var i=t.get("nameLocation"),o=r.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),c=u[0]>u[1]?-1:1,f=[i==="start"?u[0]-c*l:i==="end"?u[1]+c*l:(u[0]+u[1])/2,pc(i)?r.labelOffset+o*l:0],h,v=t.get("nameRotate");v!=null&&(v=v*Ot/180);var d;pc(i)?h=Qt.innerTextLayout(r.rotation,v!=null?v:r.rotation,o):(h=Xx(r.rotation,i,v||0,u),d=r.axisNameAvailableWidth,d!=null&&(d=Math.abs(d/Math.sin(h.rotation)),!isFinite(d)&&(d=null)));var p=s.getFont(),g=t.get("nameTruncate",!0)||{},m=g.ellipsis,y=Dr(r.nameTruncateMaxWidth,g.maxWidth,d),_=new be({x:f[0],y:f[1],rotation:h.rotation,silent:Qt.isLabelSilent(t),style:Vt(s,{text:a,font:p,overflow:"truncate",width:y,ellipsis:m,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||h.textAlign,verticalAlign:s.get("verticalAlign")||h.textVerticalAlign}),z2:1});if(ja({el:_,componentModel:t,itemName:a}),_.__fullText=a,_.anid="name",t.get("triggerEvent")){var S=Qt.makeAxisEventDataBase(t);S.targetType="axisName",S.name=a,Q(_).eventData=S}n.add(_),_.updateTransform(),e.add(_),_.decomposeTransform()}}};function Xx(r,t,e,n){var a=nv(e-r),i,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return Ia(a-Ot/2)?(o=l?"bottom":"top",i="center"):Ia(a-Ot*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",aOt/2?i=l?"left":"right":i=l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function Zx(r,t,e){if(!Cd(r.axis)){var n=r.get(["axisLabel","showMinLabel"]),a=r.get(["axisLabel","showMaxLabel"]);t=t||[],e=e||[];var i=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=e[0],c=e[1],f=e[e.length-1],h=e[e.length-2];n===!1?(Ne(i),Ne(u)):dc(i,o)&&(n?(Ne(o),Ne(c)):(Ne(i),Ne(u))),a===!1?(Ne(s),Ne(f)):dc(l,s)&&(a?(Ne(l),Ne(h)):(Ne(s),Ne(f)))}}function Ne(r){r&&(r.ignore=!0)}function dc(r,t){var e=r&&r.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!e||!n)){var a=Yf([]);return Jf(a,a,-r.rotation),e.applyTransform(go([],a,r.getLocalTransform())),n.applyTransform(go([],a,t.getLocalTransform())),e.intersect(n)}}function pc(r){return r==="middle"||r==="center"}function Gd(r,t,e,n,a){for(var i=[],o=[],s=[],l=0;l=0||r===t}function nb(r){var t=nl(r);if(!!t){var e=t.axisPointerModel,n=t.axis.scale,a=e.option,i=e.get("status"),o=e.get("value");o!=null&&(o=n.parse(o));var s=Ko(e);i==null&&(a.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),os)return!0;if(o){var l=nl(t).seriesDataCount,u=a.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},r.prototype.makeElOption=function(t,e,n,a,i){},r.prototype.createPointerEl=function(t,e,n,a){var i=e.pointer;if(i){var o=qt(t).pointerEl=new As[i.type](yc(e.pointer));t.add(o)}},r.prototype.createLabelEl=function(t,e,n,a){if(e.label){var i=qt(t).labelEl=new be(yc(e.label));t.add(i),Sc(i,a)}},r.prototype.updatePointerEl=function(t,e,n){var a=qt(t).pointerEl;a&&e.pointer&&(a.setStyle(e.pointer.style),n(a,{shape:e.pointer.shape}))},r.prototype.updateLabelEl=function(t,e,n,a){var i=qt(t).labelEl;i&&(i.setStyle(e.label.style),n(i,{x:e.label.x,y:e.label.y}),Sc(i,a))},r.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e=this._axisPointerModel,n=this._api.getZr(),a=this._handle,i=e.getModel("handle"),o=e.get("status");if(!i.get("show")||!o||o==="hide"){a&&n.remove(a),this._handle=null;return}var s;this._handle||(s=!0,a=this._handle=qa(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Sg(u.event)},onmousedown:Ki(this._onHandleDragMove,this,0,0),drift:Ki(this._onHandleDragMove,this),ondragend:Ki(this._onHandleDragEnd,this)}),n.add(a)),xc(a,e,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");O(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,Mh(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},r.prototype._moveHandleToValue=function(t,e){_c(this._axisPointerModel,!e&&this._moveAnimation,this._handle,qi(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(!!n){this._dragging=!0;var a=this.updateHandleTransform(qi(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=a,n.stopAnimation(),n.attr(qi(a)),qt(n).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(!!t){var e=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(!!t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,a=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),a&&e.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),Bo(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}},r}();function _c(r,t,e,n){Xd(qt(e).lastProp,n)||(qt(e).lastProp=n,t?pe(e,n,r):(e.stopAnimation(),e.attr(n)))}function Xd(r,t){if(H(r)&&H(t)){var e=!0;return w(t,function(n,a){e=e&&Xd(r[a],n)}),!!e}else return r===t}function Sc(r,t){r[t.get(["label","show"])?"show":"hide"]()}function qi(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function xc(r,t,e){var n=t.get("z"),a=t.get("zlevel");r&&r.traverse(function(i){i.type!=="group"&&(n!=null&&(i.z=n),a!=null&&(i.zlevel=a),i.silent=e)})}const db=hb;function pb(r){var t=r.get("type"),e=r.getModel(t+"Style"),n;return t==="line"?(n=e.getLineStyle(),n.fill=null):t==="shadow"&&(n=e.getAreaStyle(),n.stroke=null),n}function gb(r,t,e,n,a){var i=e.get("value"),o=Zd(i,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),l=ai(s.get("padding")||0),u=s.getFont(),c=ds(o,u),f=a.position,h=c.width+l[1]+l[3],v=c.height+l[0]+l[2],d=a.align;d==="right"&&(f[0]-=h),d==="center"&&(f[0]-=h/2);var p=a.verticalAlign;p==="bottom"&&(f[1]-=v),p==="middle"&&(f[1]-=v/2),mb(f,h,v,n);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=t.get(["axisLine","lineStyle","color"])),r.label={x:f[0],y:f[1],style:Vt(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function mb(r,t,e,n){var a=n.getWidth(),i=n.getHeight();r[0]=Math.min(r[0]+t,a)-t,r[1]=Math.min(r[1]+e,i)-e,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function Zd(r,t,e,n,a){r=t.scale.parse(r);var i=t.scale.getLabel({value:r},{precision:a.precision}),o=a.formatter;if(o){var s={value:el(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};w(n,function(l){var u=e.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,f=u&&u.getDataParams(c);f&&s.seriesData.push(f)}),F(o)?i=o.replace("{value}",i):U(o)&&(i=o(s))}return i}function Kd(r,t,e){var n=bg();return Jf(n,n,e.rotation),xg(n,n,e.position),Ds([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],n)}function yb(r,t,e,n,a,i){var o=Wd.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=a.get(["label","margin"]),gb(t,n,a,i,{position:Kd(n.axis,r,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function _b(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function Sb(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}var xb=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,n,a,i,o){var s=a.axis,l=s.grid,u=i.get("type"),c=bc(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var h=pb(i),v=bb[u](s,f,c);v.style=h,e.graphicKey=v.type,e.pointer=v}var d=Zo(l.model,a);yb(n,e,d,a,i,o)},t.prototype.getHandleTransform=function(e,n,a){var i=Zo(n.axis.grid.model,n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=Kd(n.axis,e,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,n,a,i){var o=a.axis,s=o.grid,l=o.getGlobalExtent(!0),u=bc(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,f=[e.x,e.y];f[c]+=n[c],f[c]=Math.min(l[1],f[c]),f[c]=Math.max(l[0],f[c]);var h=(u[1]+u[0])/2,v=[h,h];v[c]=f[c];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:e.rotation,cursorPoint:v,tooltipOption:d[c]}},t}(db);function bc(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var bb={line:function(r,t,e){var n=_b([t,e[0]],[t,e[1]],wc(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,t,e){var n=Math.max(1,r.getBandWidth()),a=e[1]-e[0];return{type:"Rect",shape:Sb([t-n/2,e[0]],[n,a],wc(r))}}};function wc(r){return r.dim==="x"?0:1}const wb=xb;var Cb=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(ae);const Tb=Cb;var pt=le(),Db=w;function qd(r,t,e){if(!ce.node){var n=t.getZr();pt(n).records||(pt(n).records={}),Ab(n,t);var a=pt(n).records[r]||(pt(n).records[r]={});a.handler=e}}function Ab(r,t){if(pt(r).initialized)return;pt(r).initialized=!0,e("click",j(Cc,"click")),e("mousemove",j(Cc,"mousemove")),e("globalout",Ib);function e(n,a){r.on(n,function(i){var o=Lb(t);Db(pt(r).records,function(s){s&&a(s,i,o.dispatchAction)}),Mb(o.pendings,t)})}}function Mb(r,t){var e=r.showTip.length,n=r.hideTip.length,a;e?a=r.showTip[e-1]:n&&(a=r.hideTip[n-1]),a&&(a.dispatchAction=null,t.dispatchAction(a))}function Ib(r,t,e){r.handler("leave",null,e)}function Cc(r,t,e,n){t.handler(r,e,n)}function Lb(r){var t={showTip:[],hideTip:[]},e=function(n){var a=t[n.type];a?a.push(n):(n.dispatchAction=e,r.dispatchAction(n))};return{dispatchAction:e,pendings:t}}function jo(r,t){if(!ce.node){var e=t.getZr(),n=(pt(e).records||{})[r];n&&(pt(e).records[r]=null)}}var Pb=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){var i=n.getComponent("tooltip"),o=e.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";qd("axisPointer",a,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(e,n){jo("axisPointer",n)},t.prototype.dispose=function(e,n){jo("axisPointer",n)},t.type="axisPointer",t}(He);const kb=Pb;function jd(r,t){var e=[],n=r.seriesIndex,a;if(n==null||!(a=t.getSeriesByIndex(n)))return{point:[]};var i=a.getData(),o=rr(i,r);if(o==null||o<0||O(o))return{point:[]};var s=i.getItemGraphicEl(o),l=a.coordinateSystem;if(a.getTooltipPosition)e=a.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),f=c.dim,h=u.dim,v=f==="x"||f==="radius"?1:0,d=i.mapDimension(h),p=[];p[v]=i.get(d,o),p[1-v]=i.get(i.getCalculationInfo("stackResultDimension"),o),e=l.dataToPoint(p)||[]}else e=l.dataToPoint(i.getValues(z(l.dimensions,function(m){return i.mapDimension(m)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),e=[g.x+g.width/2,g.y+g.height/2]}return{point:e,el:s}}var Tc=le();function Rb(r,t,e){var n=r.currTrigger,a=[r.x,r.y],i=r,o=r.dispatchAction||ne(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(!!s){Ta(a)&&(a=jd({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},t).point);var l=Ta(a),u=i.axesInfo,c=s.axesInfo,f=n==="leave"||Ta(a),h={},v={},d={list:[],map:{}},p={showPointer:j(Ob,v),showTooltip:j(Bb,d)};w(s.coordSysMap,function(m,y){var _=l||m.containPoint(a);w(s.coordSysAxesInfo[y],function(S,b){var x=S.axis,C=Fb(u,S);if(!f&&_&&(!u||C)){var T=C&&C.value;T==null&&!l&&(T=x.pointToData(a)),T!=null&&Dc(S,T,p,!1,h)}})});var g={};return w(c,function(m,y){var _=m.linkGroup;_&&!v[y]&&w(_.axesInfo,function(S,b){var x=v[b];if(S!==m&&x){var C=x.value;_.mapper&&(C=m.axis.scale.parse(_.mapper(C,Ac(S),Ac(m)))),g[m.key]=C}})}),w(g,function(m,y){Dc(c[y],m,p,!0,h)}),Nb(v,c,h),Vb(d,a,r,o),zb(c,o,e),h}}function Dc(r,t,e,n,a){var i=r.axis;if(!(i.scale.isBlank()||!i.containData(t))){if(!r.involveSeries){e.showPointer(r,t);return}var o=Eb(t,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&a.seriesIndex==null&&B(a,s[0]),!n&&r.snap&&i.containData(l)&&l!=null&&(t=l),e.showPointer(r,t,s),e.showTooltip(r,o,l)}}function Eb(r,t){var e=t.axis,n=e.dim,a=r,i=[],o=Number.MAX_VALUE,s=-1;return w(t.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(n),f,h;if(l.getAxisTooltipData){var v=l.getAxisTooltipData(c,r,e);h=v.dataIndices,f=v.nestestValue}else{if(h=l.getData().indicesOfNearest(c[0],r,e.type==="category"?.5:null),!h.length)return;f=l.getData().get(c[0],h[0])}if(!(f==null||!isFinite(f))){var d=r-f,p=Math.abs(d);p<=o&&((p=0&&s<0)&&(o=p,s=d,a=f,i.length=0),w(h,function(g){i.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:i,snapToValue:a}}function Ob(r,t,e,n){r[t.key]={value:e,payloadBatch:n}}function Bb(r,t,e,n){var a=e.payloadBatch,i=t.axis,o=i.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!a.length)){var l=t.coordSys.model,u=Pn(l),c=r.map[u];c||(c=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(c)),c.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function Nb(r,t,e){var n=e.axesInfo=[];w(t,function(a,i){var o=a.axisPointerModel.option,s=r[i];s?(!a.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!a.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:o.value})})}function Vb(r,t,e,n){if(Ta(t)||!r.list.length){n({type:"hideTip"});return}var a=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:e.tooltipOption,position:e.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:r.list})}function zb(r,t,e){var n=e.getZr(),a="axisPointerLastHighlights",i=Tc(n)[a]||{},o=Tc(n)[a]={};w(r,function(u,c){var f=u.axisPointerModel.option;f.status==="show"&&w(f.seriesDataIndices,function(h){var v=h.seriesIndex+" | "+h.dataIndex;o[v]=h})});var s=[],l=[];w(i,function(u,c){!o[c]&&l.push(u)}),w(o,function(u,c){!i[c]&&s.push(u)}),l.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function Fb(r,t){for(var e=0;e<(r||[]).length;e++){var n=r[e];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function Ac(r){var t=r.axis.model,e={},n=e.axisDim=r.axis.dim;return e.axisIndex=e[n+"AxisIndex"]=t.componentIndex,e.axisName=e[n+"AxisName"]=t.name,e.axisId=e[n+"AxisId"]=t.id,e}function Ta(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function Qd(r){Hd.registerAxisPointerClass("CartesianAxisPointer",wb),r.registerComponentModel(Tb),r.registerComponentView(kb),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!O(e)&&(t.axisPointer.link=[e])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=Qx(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Rb)}function cD(r){_t($d),_t(Qd)}var Mc="\0_ec_interaction_mutex";function Gb(r,t,e){var n=Jd(r);n[t]=e}function Wb(r,t,e){var n=Jd(r),a=n[t];a===e&&(n[t]=null)}function Jd(r){return r[Mc]||(r[Mc]={})}ct({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},mt);var Hb={axisPointer:1,tooltip:1,brush:1};function Ub(r,t,e){var n=t.getComponentByElement(r.topTarget),a=n&&n.coordinateSystem;return n&&n!==e&&!Hb.hasOwnProperty(n.mainType)&&a&&a.model!==e}function ep(r,t,e,n,a,i){r=r||0;var o=e[1]-e[0];if(a!=null&&(a=gr(a,[0,o])),i!=null&&(i=Math.max(i,a!=null?a:0)),n==="all"){var s=Math.abs(t[1]-t[0]);s=gr(s,[0,o]),a=i=gr(s,[a,i]),n=0}t[0]=gr(t[0],e),t[1]=gr(t[1],e);var l=ji(t,n);t[n]+=r;var u=a||0,c=e.slice();l.sign<0?c[0]+=u:c[1]-=u,t[n]=gr(t[n],c);var f;return f=ji(t,n),a!=null&&(f.sign!==l.sign||f.spani&&(t[1-n]=t[n]+f.sign*i),t}function ji(r,t){var e=r[t]-r[1-t];return{span:Math.abs(e),sign:e>0?-1:e<0?1:t?-1:1}}function gr(r,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,r))}var ar=!0,kn=Math.min,Rr=Math.max,Yb=Math.pow,$b=1e4,Xb=6,Zb=6,Ic="globalPan",Kb={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},qb={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},Lc={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},jb=0,Qb=function(r){N(t,r);function t(e){var n=r.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=e,n.group=new de,n._uid="brushController_"+jb++,w(iw,function(a,i){this._handlers[i]=ne(a,this)},n),n}return t.prototype.enableBrush=function(e){return this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},t.prototype._doEnableBrush=function(e){var n=this._zr;this._enableGlobalPan||Gb(n,Ic,this._uid),w(this._handlers,function(a,i){n.on(i,a)}),this._brushType=e.brushType,this._brushOption=K(Z(Lc),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;Wb(e,Ic,this._uid),w(this._handlers,function(n,a){e.off(a,n)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var n=this._panels={};w(e,function(a){n[a.panelId]=Z(a)})}else this._panels=null;return this},t.prototype.mount=function(e){e=e||{},this._enableGlobalPan=e.enableGlobalPan;var n=this.group;return this._zr.add(n),n.attr({x:e.x||0,y:e.y||0,rotation:e.rotation||0,scaleX:e.scaleX||1,scaleY:e.scaleY||1}),this._transform=n.getLocalTransform(),this},t.prototype.updateCovers=function(e){e=z(e,function(h){return K(Z(Lc),h,!0)});var n="\0-brush-index-",a=this._covers,i=this._covers=[],o=this,s=this._creatingCover;return new In(a,e,u,l).add(c).update(c).remove(f).execute(),this;function l(h,v){return(h.id!=null?h.id:n+v)+"-"+h.brushType}function u(h,v){return l(h.__brushOption,v)}function c(h,v){var d=e[h];if(v!=null&&a[v]===s)i[h]=a[v];else{var p=i[h]=v!=null?(a[v].__brushOption=d,a[v]):rp(o,tp(o,d));al(o,p)}}function f(h){a[h]!==s&&o.group.remove(a[h])}},t.prototype.unmount=function(){return this.enableBrush(!1),Qo(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(Bn);function tp(r,t){var e=di[t.brushType].createCover(r,t);return e.__brushOption=t,ap(e,t),r.group.add(e),e}function rp(r,t){var e=il(t);return e.endCreating&&(e.endCreating(r,t),ap(t,t.__brushOption)),t}function np(r,t){var e=t.__brushOption;il(t).updateCoverShape(r,t,e.range,e)}function ap(r,t){var e=t.z;e==null&&(e=$b),r.traverse(function(n){n.z=e,n.z2=e})}function al(r,t){il(t).updateCommon(r,t),np(r,t)}function il(r){return di[r.__brushOption.brushType]}function ol(r,t,e){var n=r._panels;if(!n)return ar;var a,i=r._transform;return w(n,function(o){o.isTargetByCursor(t,e,i)&&(a=o)}),a}function ip(r,t){var e=r._panels;if(!e)return ar;var n=t.__brushOption.panelId;return n!=null?e[n]:ar}function Qo(r){var t=r._covers,e=t.length;return w(t,function(n){r.group.remove(n)},r),t.length=0,!!e}function ir(r,t){var e=z(r._covers,function(n){var a=n.__brushOption,i=Z(a.range);return{brushType:a.brushType,panelId:a.panelId,range:i}});r.trigger("brush",{areas:e,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function Jb(r){var t=r._track;if(!t.length)return!1;var e=t[t.length-1],n=t[0],a=e[0]-n[0],i=e[1]-n[1],o=Yb(a*a+i*i,.5);return o>Xb}function op(r){var t=r.length-1;return t<0&&(t=0),[r[0],r[t]]}function sp(r,t,e,n){var a=new de;return a.add(new fe({name:"main",style:sl(e),silent:!0,draggable:!0,cursor:"move",drift:j(Pc,r,t,a,["n","s","w","e"]),ondragend:j(ir,t,{isEnd:!0})})),w(n,function(i){a.add(new fe({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:j(Pc,r,t,a,i),ondragend:j(ir,t,{isEnd:!0})}))}),a}function lp(r,t,e,n){var a=n.brushStyle.lineWidth||0,i=Rr(a,Zb),o=e[0][0],s=e[1][0],l=o-a/2,u=s-a/2,c=e[0][1],f=e[1][1],h=c-i+a/2,v=f-i+a/2,d=c-o,p=f-s,g=d+a,m=p+a;ht(r,t,"main",o,s,d,p),n.transformable&&(ht(r,t,"w",l,u,i,m),ht(r,t,"e",h,u,i,m),ht(r,t,"n",l,u,g,i),ht(r,t,"s",l,v,g,i),ht(r,t,"nw",l,u,i,i),ht(r,t,"ne",h,u,i,i),ht(r,t,"sw",l,v,i,i),ht(r,t,"se",h,v,i,i))}function Jo(r,t){var e=t.__brushOption,n=e.transformable,a=t.childAt(0);a.useStyle(sl(e)),a.attr({silent:!n,cursor:n?"move":"default"}),w([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=t.childOfName(i.join("")),s=i.length===1?es(r,i[0]):tw(r,i);o&&o.attr({silent:!n,invisible:!n,cursor:n?qb[s]+"-resize":null})})}function ht(r,t,e,n,a,i,o){var s=t.childOfName(e);s&&s.setShape(nw(ll(r,t,[[n,a],[n+i,a+o]])))}function sl(r){return te({strokeNoScale:!0},r.brushStyle)}function up(r,t,e,n){var a=[kn(r,e),kn(t,n)],i=[Rr(r,e),Rr(t,n)];return[[a[0],i[0]],[a[1],i[1]]]}function ew(r){return Ts(r.group)}function es(r,t){var e={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},a=Iv(e[t],ew(r));return n[a]}function tw(r,t){var e=[es(r,t[0]),es(r,t[1])];return(e[0]==="e"||e[0]==="w")&&e.reverse(),e.join("")}function Pc(r,t,e,n,a,i){var o=e.__brushOption,s=r.toRectRange(o.range),l=cp(t,a,i);w(n,function(u){var c=Kb[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=r.fromRectRange(up(s[0][0],s[1][0],s[0][1],s[1][1])),al(t,e),ir(t,{isEnd:!1})}function rw(r,t,e,n){var a=t.__brushOption.range,i=cp(r,e,n);w(a,function(o){o[0]+=i[0],o[1]+=i[1]}),al(r,t),ir(r,{isEnd:!1})}function cp(r,t,e){var n=r.group,a=n.transformCoordToLocal(t,e),i=n.transformCoordToLocal(0,0);return[a[0]-i[0],a[1]-i[1]]}function ll(r,t,e){var n=ip(r,t);return n&&n!==ar?n.clipPath(e,r._transform):Z(e)}function nw(r){var t=kn(r[0][0],r[1][0]),e=kn(r[0][1],r[1][1]),n=Rr(r[0][0],r[1][0]),a=Rr(r[0][1],r[1][1]);return{x:t,y:e,width:n-t,height:a-e}}function aw(r,t,e){if(!(!r._brushType||ow(r,t.offsetX,t.offsetY))){var n=r._zr,a=r._covers,i=ol(r,t,e);if(!r._dragging)for(var o=0;on.getWidth()||e<0||e>n.getHeight()}var di={lineX:Ec(0),lineY:Ec(1),rect:{createCover:function(r,t){function e(n){return n}return sp({toRectRange:e,fromRectRange:e},r,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var t=op(r);return up(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(r,t,e,n){lp(r,t,e,n)},updateCommon:Jo,contain:rs},polygon:{createCover:function(r,t){var e=new de;return e.add(new En({name:"main",style:sl(t),silent:!0})),e},getCreatingRange:function(r){return r},endCreating:function(r,t){t.remove(t.childAt(0)),t.add(new vs({name:"main",draggable:!0,drift:j(rw,r,t),ondragend:j(ir,r,{isEnd:!0})}))},updateCoverShape:function(r,t,e,n){t.childAt(0).setShape({points:ll(r,t,e)})},updateCommon:Jo,contain:rs}};function Ec(r){return{createCover:function(t,e){return sp({toRectRange:function(n){var a=[n,[0,100]];return r&&a.reverse(),a},fromRectRange:function(n){return n[r]}},t,e,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(t){var e=op(t),n=kn(e[0][r],e[1][r]),a=Rr(e[0][r],e[1][r]);return[n,a]},updateCoverShape:function(t,e,n,a){var i,o=ip(t,e);if(o!==ar&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(r);else{var s=t._zr;i=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[n,i];r&&l.reverse(),lp(t,e,l,a)},updateCommon:Jo,contain:rs}}const sw=Qb;function lw(r){return r=ul(r),function(t){return Pv(t,r)}}function uw(r,t){return r=ul(r),function(e){var n=t!=null?t:e,a=n?r.width:r.height,i=n?r.x:r.y;return[i,i+(a||0)]}}function cw(r,t,e){var n=ul(r);return function(a,i){return n.contain(i[0],i[1])&&!Ub(a,t,e)}}function ul(r){return Oe.create(r)}var Oc=["x","y","radius","angle","single"],fw=["cartesian2d","polar","singleAxis"];function vw(r){var t=r.get("coordinateSystem");return ie(fw,t)>=0}function Sr(r){return r+"Axis"}function hw(r,t){var e=W(),n=[],a=W();r.eachComponent({mainType:"dataZoom",query:t},function(c){a.get(c.uid)||s(c)});var i;do i=!1,r.eachComponent("dataZoom",o);while(i);function o(c){!a.get(c.uid)&&l(c)&&(s(c),i=!0)}function s(c){a.set(c.uid,!0),n.push(c),u(c)}function l(c){var f=!1;return c.eachTargetAxis(function(h,v){var d=e.get(h);d&&d[v]&&(f=!0)}),f}function u(c){c.eachTargetAxis(function(f,h){(e.get(f)||e.set(f,[]))[h]=!0})}return n}var Qi=function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},r}(),dw=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._autoThrottle=!0,e._noTarget=!0,e._rangePropMode=["percent","percent"],e}return t.prototype.init=function(e,n,a){var i=Bc(e);this.settledOption=i,this.mergeDefaultAndTheme(e,a),this._doInit(i)},t.prototype.mergeOption=function(e){var n=Bc(e);K(this.option,e,!0),K(this.settledOption,n,!0),this._doInit(n)},t.prototype._doInit=function(e){var n=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var a=this.settledOption;w([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(n[i[0]]=a[i[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),n=this._targetAxisInfoMap=W(),a=this._fillSpecifiedTargetAxis(n);a?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var n=!1;return w(Oc,function(a){var i=this.getReferringComponents(Sr(a),rm);if(!!i.specified){n=!0;var o=new Qi;w(i.models,function(s){o.add(s.componentIndex)}),e.set(a,o)}},this),n},t.prototype._fillAutoTargetAxisByOrient=function(e,n){var a=this.ecModel,i=!0;if(i){var o=n==="vertical"?"y":"x",s=a.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=a.findComponents({mainType:"singleAxis",filter:function(c){return c.get("orient",!0)===n}});l(s,"single")}function l(u,c){var f=u[0];if(!!f){var h=new Qi;if(h.add(f.componentIndex),e.set(c,h),i=!1,c==="x"||c==="y"){var v=f.getReferringComponents("grid",Le).models[0];v&&w(u,function(d){f.componentIndex!==d.componentIndex&&v===d.getReferringComponents("grid",Le).models[0]&&h.add(d.componentIndex)})}}}i&&w(Oc,function(u){if(!!i){var c=a.findComponents({mainType:Sr(u),filter:function(h){return h.get("type",!0)==="category"}});if(c[0]){var f=new Qi;f.add(c[0].componentIndex),e.set(u,f),i=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(n){!e&&(e=n)},this),e==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var n=this.ecModel.option;this.option.throttle=n.animation&&n.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var n=this._rangePropMode,a=this.get("rangeMode");w([["start","startValue"],["end","endValue"]],function(i,o){var s=e[i[0]]!=null,l=e[i[1]]!=null;s&&!l?n[o]="percent":!s&&l?n[o]="value":a?n[o]=a[o]:s&&(n[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(n,a){e==null&&(e=this.ecModel.getComponent(Sr(n),a))},this),e},t.prototype.eachTargetAxis=function(e,n){this._targetAxisInfoMap.each(function(a,i){w(a.indexList,function(o){e.call(n,i,o)})})},t.prototype.getAxisProxy=function(e,n){var a=this.getAxisModel(e,n);if(a)return a.__dzAxisProxy},t.prototype.getAxisModel=function(e,n){var a=this._targetAxisInfoMap.get(e);if(a&&a.indexMap[n])return this.ecModel.getComponent(Sr(e),n)},t.prototype.setRawRange=function(e){var n=this.option,a=this.settledOption;w([["start","startValue"],["end","endValue"]],function(i){(e[i[0]]!=null||e[i[1]]!=null)&&(n[i[0]]=a[i[0]]=e[i[0]],n[i[1]]=a[i[1]]=e[i[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var n=this.option;w(["start","startValue","end","endValue"],function(a){n[a]=e[a]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,n){if(e==null&&n==null){var a=this.findRepresentativeAxisProxy();if(a)return a.getDataValueWindow()}else return this.getAxisProxy(e,n).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var n,a=this._targetAxisInfoMap.keys(),i=0;io[1];if(_&&!S&&!b)return!0;_&&(g=!0),S&&(d=!0),b&&(p=!0)}return g&&d&&p})}else _r(c,function(v){if(i==="empty")l.setData(u=u.map(v,function(p){return s(p)?p:NaN}));else{var d={};d[v]=o,u.selectRange(d)}});_r(c,function(v){u.setApproximateExtent(o,v)})}});function s(l){return l>=o[0]&&l<=o[1]}},r.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._dataExtent;_r(["min","max"],function(a){var i=e.get(a+"Span"),o=e.get(a+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=Et(n[0]+o,n,[0,100],!0):i!=null&&(o=Et(i,[0,100],n,!0)-n[0]),t[a+"Span"]=i,t[a+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,n=this._valueWindow;if(!!e){var a=rv(n,[0,500]);a=Math.min(a,20);var i=t.axis.scale.rawExtentInfo;e[0]!==0&&i.setDeterminedMinMax("min",+n[0].toFixed(a)),e[1]!==100&&i.setDeterminedMinMax("max",+n[1].toFixed(a)),i.freeze()}},r}();function ww(r,t,e){var n=[1/0,-1/0];_r(e,function(o){ax(n,o.getData(),t)});var a=r.getAxisModel(),i=bd(a.axis.scale,a,n).calculate();return[i.min,i.max]}const Cw=bw;var Tw={getTargetSeries:function(r){function t(a){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=r.getComponent(Sr(o),s);a(o,s,l,i)})})}t(function(a,i,o,s){o.__dzAxisProxy=null});var e=[];t(function(a,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new Cw(a,i,s,r),e.push(o.__dzAxisProxy))});var n=W();return w(e,function(a){w(a.getTargetSeriesModels(),function(i){n.set(i.uid,i)})}),n},overallReset:function(r,t){r.eachComponent("dataZoom",function(e){e.eachTargetAxis(function(n,a){e.getAxisProxy(n,a).reset(e)}),e.eachTargetAxis(function(n,a){e.getAxisProxy(n,a).filterData(e,t)})}),r.eachComponent("dataZoom",function(e){var n=e.findRepresentativeAxisProxy();if(n){var a=n.getDataPercentWindow(),i=n.getDataValueWindow();e.setCalculatedRange({start:a[0],end:a[1],startValue:i[0],endValue:i[1]})}})}};const Dw=Tw;function Aw(r){r.registerAction("dataZoom",function(t,e){var n=hw(e,t);w(n,function(a){a.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var Vc=!1;function Mw(r){Vc||(Vc=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,Dw),Aw(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function Iw(r){r.registerComponentModel(mw),r.registerComponentView(xw),Mw(r)}var Qe=function(){function r(){}return r}(),vp={};function rn(r,t){vp[r]=t}function hp(r){return vp[r]}var Lw=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){r.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;w(this.option.feature,function(n,a){var i=hp(a);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(e)),K(n,i.defaultOption))})},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t}(ae);const Pw=Lw;function kw(r,t,e){var n=t.getBoxLayoutParams(),a=t.get("padding"),i={width:e.getWidth(),height:e.getHeight()},o=zt(n,i,a);Cr(t.get("orient"),r,t.get("itemGap"),o.width,o.height),Sy(r,n,i,a)}function dp(r,t){var e=ai(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),r=new fe({shape:{x:r.x-e[3],y:r.y-e[0],width:r.width+e[1]+e[3],height:r.height+e[0]+e[2],r:t.get("borderRadius")},style:n,silent:!0,z2:-1}),r}var Rw=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,a,i){var o=this.group;if(o.removeAll(),!e.get("show"))return;var s=+e.get("itemSize"),l=e.get("orient")==="vertical",u=e.get("feature")||{},c=this._features||(this._features={}),f=[];w(u,function(d,p){f.push(p)}),new In(this._featureNames||[],f).add(h).update(h).remove(j(h,null)).execute(),this._featureNames=f;function h(d,p){var g=f[d],m=f[p],y=u[g],_=new Ce(y,e,e.ecModel),S;if(i&&i.newTitle!=null&&i.featureName===g&&(y.title=i.newTitle),g&&!m){if(Ew(g))S={onclick:_.option.onclick,featureName:g};else{var b=hp(g);if(!b)return;S=new b}c[g]=S}else if(S=c[m],!S)return;S.uid=Fn("toolbox-feature"),S.model=_,S.ecModel=n,S.api=a;var x=S instanceof Qe;if(!g&&m){x&&S.dispose&&S.dispose(n,a);return}if(!_.get("show")||x&&S.unusable){x&&S.remove&&S.remove(n,a);return}v(_,S,g),_.setIconStatus=function(C,T){var D=this.option,M=this.iconPaths;D.iconStatus=D.iconStatus||{},D.iconStatus[C]=T,M[C]&&(T==="emphasis"?Ar:Mr)(M[C])},S instanceof Qe&&S.render&&S.render(_,n,a,i)}function v(d,p,g){var m=d.getModel("iconStyle"),y=d.getModel(["emphasis","iconStyle"]),_=p instanceof Qe&&p.getIcons?p.getIcons():d.get("icon"),S=d.get("title")||{},b,x;F(_)?(b={},b[g]=_):b=_,F(S)?(x={},x[g]=S):x=S;var C=d.iconPaths={};w(b,function(T,D){var M=qa(T,{},{x:-s/2,y:-s/2,width:s,height:s});M.setStyle(m.getItemStyle());var A=M.ensureState("emphasis");A.style=y.getItemStyle();var I=new be({style:{text:x[D],align:y.get("textAlign"),borderRadius:y.get("textBorderRadius"),padding:y.get("textPadding"),fill:null},ignore:!0});M.setTextContent(I),ja({el:M,componentModel:e,itemName:D,formatterParamsExtra:{title:x[D]}}),M.__title=x[D],M.on("mouseover",function(){var L=y.getItemStyle(),P=l?e.get("right")==null&&e.get("left")!=="right"?"right":"left":e.get("bottom")==null&&e.get("top")!=="bottom"?"bottom":"top";I.setStyle({fill:y.get("textFill")||L.fill||L.stroke||"#000",backgroundColor:y.get("textBackgroundColor")}),M.setTextConfig({position:y.get("textPosition")||P}),I.ignore=!e.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){d.get(["iconStatus",D])!=="emphasis"&&a.leaveEmphasis(this),I.hide()}),(d.get(["iconStatus",D])==="emphasis"?Ar:Mr)(M),o.add(M),M.on("click",ne(p.onclick,p,n,a,D)),C[D]=M})}kw(o,e,a),o.add(dp(o.getBoundingRect(),e)),l||o.eachChild(function(d){var p=d.__title,g=d.ensureState("emphasis"),m=g.textConfig||(g.textConfig={}),y=d.getTextContent(),_=y&&y.ensureState("emphasis");if(_&&!U(_)&&p){var S=_.style||(_.style={}),b=ds(p,be.makeFont(S)),x=d.x+o.x,C=d.y+o.y+s,T=!1;C+b.height>a.getHeight()&&(m.position="top",T=!0);var D=T?-5-b.height:s+10;x+b.width/2>a.getWidth()?(m.position=["100%",D],S.align="right"):x-b.width/2<0&&(m.position=[0,D],S.align="left")}})},t.prototype.updateView=function(e,n,a,i){w(this._features,function(o){o instanceof Qe&&o.updateView&&o.updateView(o.model,n,a,i)})},t.prototype.remove=function(e,n){w(this._features,function(a){a instanceof Qe&&a.remove&&a.remove(e,n)}),this.group.removeAll()},t.prototype.dispose=function(e,n){w(this._features,function(a){a instanceof Qe&&a.dispose&&a.dispose(e,n)})},t.type="toolbox",t}(He);function Ew(r){return r.indexOf("my")===0}const Ow=Rw;var Bw=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){var a=this.model,i=a.get("name")||e.get("title.0.text")||"echarts",o=n.getZr().painter.getType()==="svg",s=o?"svg":a.get("type",!0)||"png",l=n.getConnectedDataURL({type:s,backgroundColor:a.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:a.get("connectedBackgroundColor"),excludeComponents:a.get("excludeComponents"),pixelRatio:a.get("pixelRatio")}),u=ce.browser;if(U(MouseEvent)&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=i+"."+s,c.target="_blank",c.href=l;var f=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(f)}else if(window.navigator.msSaveOrOpenBlob||o){var h=l.split(","),v=h[0].indexOf("base64")>-1,d=o?decodeURIComponent(h[1]):h[1];v&&(d=window.atob(d));var p=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=d.length,m=new Uint8Array(g);g--;)m[g]=d.charCodeAt(g);var y=new Blob([m]);window.navigator.msSaveOrOpenBlob(y,p)}else{var _=document.createElement("iframe");document.body.appendChild(_);var S=_.contentWindow,b=S.document;b.open("image/svg+xml","replace"),b.write(d),b.close(),S.focus(),b.execCommand("SaveAs",!0,p),document.body.removeChild(_)}}else{var x=a.get("lang"),C='',T=window.open();T.document.write(C),T.document.title=i}},t.getDefaultOption=function(e){var n={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:e.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return n},t}(Qe);const Nw=Bw;var zc="__ec_magicType_stack__",Vw=[["line","bar"],["stack"]],zw=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getIcons=function(){var e=this.model,n=e.get("icon"),a={};return w(e.get("type"),function(i){n[i]&&(a[i]=n[i])}),a},t.getDefaultOption=function(e){var n={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:e.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return n},t.prototype.onclick=function(e,n,a){var i=this.model,o=i.get(["seriesIndex",a]);if(!!Fc[a]){var s={series:[]},l=function(f){var h=f.subType,v=f.id,d=Fc[a](h,v,f,i);d&&(te(d,f.option),s.series.push(d));var p=f.coordinateSystem;if(p&&p.type==="cartesian2d"&&(a==="line"||a==="bar")){var g=p.getAxesByScale("ordinal")[0];if(g){var m=g.dim,y=m+"Axis",_=f.getReferringComponents(y,Le).models[0],S=_.componentIndex;s[y]=s[y]||[];for(var b=0;b<=S;b++)s[y][S]=s[y][S]||{};s[y][S].boundaryGap=a==="bar"}}};w(Vw,function(f){ie(f,a)>=0&&w(f,function(h){i.setIconStatus(h,"normal")})}),i.setIconStatus(a,"emphasis"),e.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,c=a;a==="stack"&&(u=K({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",a])!=="emphasis"&&(c="tiled")),n.dispatchAction({type:"changeMagicType",currentType:c,newOption:s,newTitle:u,featureName:"magicType"})}},t}(Qe),Fc={line:function(r,t,e,n){if(r==="bar")return K({id:t,type:"line",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},n.get(["option","line"])||{},!0)},bar:function(r,t,e,n){if(r==="line")return K({id:t,type:"bar",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},n.get(["option","bar"])||{},!0)},stack:function(r,t,e,n){var a=e.get("stack")===zc;if(r==="line"||r==="bar")return n.setIconStatus("stack",a?"normal":"emphasis"),K({id:t,stack:a?"":zc},n.get(["option","stack"])||{},!0)}};ct({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,t){t.mergeOption(r.newOption)});const Fw=zw;var pi=new Array(60).join("-"),Er=" ";function Gw(r){var t={},e=[],n=[];return r.eachRawSeries(function(a){var i=a.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;t[s]||(t[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},n.push({axisDim:o.dim,axisIndex:o.index})),t[s].series.push(a)}else e.push(a)}else e.push(a)}),{seriesGroupByCategoryAxis:t,other:e,meta:n}}function Ww(r){var t=[];return w(r,function(e,n){var a=e.categoryAxis,i=e.valueAxis,o=i.dim,s=[" "].concat(z(e.series,function(v){return v.name})),l=[a.model.getCategories()];w(e.series,function(v){var d=v.getRawData();l.push(v.getRawData().mapArray(d.mapDimension(o),function(p){return p}))});for(var u=[s.join(Er)],c=0;c=0)return!0}var ns=new RegExp("["+Er+"]+","g");function $w(r){for(var t=r.split(/\n+/g),e=Ga(t.shift()).split(ns),n=[],a=z(e,function(l){return{name:l,data:[]}}),i=0;i=0;i--){var o=e[i];if(o[a])break}if(i<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:a})[0];if(s){var l=s.getPercentRange();e[0][a]={dataZoomId:a,start:l[0],end:l[1]}}}}),e.push(t)}function Jw(r){var t=cl(r),e=t[t.length-1];t.length>1&&t.pop();var n={};return pp(e,function(a,i){for(var o=t.length-1;o>=0;o--)if(a=t[o][i],a){n[i]=a;break}}),n}function e1(r){gp(r).snapshots=null}function t1(r){return cl(r).length}function cl(r){var t=gp(r);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var r1=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){e1(e),n.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){var n={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:e.getLocaleModel().get(["toolbox","restore","title"])};return n},t}(Qe);ct({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,t){t.resetOption("recreate")});const n1=r1;var a1=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],i1=function(){function r(t,e,n){var a=this;this._targetInfoList=[];var i=Gc(e,t);w(o1,function(o,s){(!n||!n.include||ie(n.include,s)>=0)&&o(i,a._targetInfoList)})}return r.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,function(n,a,i){if((n.coordRanges||(n.coordRanges=[])).push(a),!n.coordRange){n.coordRange=a;var o=Ji[n.brushType](0,i,a);n.__rangeOffset={offset:Yc[n.brushType](o.values,n.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},r.prototype.matchOutputRanges=function(t,e,n){w(t,function(a){var i=this.findTargetInfo(a,e);i&&i!==!0&&w(i.coordSyses,function(o){var s=Ji[a.brushType](1,o,a.range,!0);n(a,s.values,o,e)})},this)},r.prototype.setInputRanges=function(t,e){w(t,function(n){var a=this.findTargetInfo(n,e);if(n.range=n.range||[],a&&a!==!0){n.panelId=a.panelId;var i=Ji[n.brushType](0,a.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?Yc[n.brushType](i.values,o.offset,s1(i.xyMinMax,o.xyMinMax)):i.values}},this)},r.prototype.makePanelOpts=function(t,e){return z(this._targetInfoList,function(n){var a=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e?e(n):null,clipPath:lw(a),isTargetByCursor:cw(a,t,n.coordSysModel),getLinearBrushOtherExtent:uw(a)}})},r.prototype.controlSeries=function(t,e,n){var a=this.findTargetInfo(t,n);return a===!0||a&&ie(a.coordSyses,e.coordinateSystem)>=0},r.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,a=Gc(e,t),i=0;ir[1]&&r.reverse(),r}function Gc(r,t){return cn(r,t,{includeMainTypes:a1})}var o1={grid:function(r,t){var e=r.xAxisModels,n=r.yAxisModels,a=r.gridModels,i=W(),o={},s={};!e&&!n&&!a||(w(e,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),w(n,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),w(a,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var u=l.coordinateSystem,c=[];w(u.getCartesians(),function(f,h){(ie(e,f.getAxis("x").model)>=0||ie(n,f.getAxis("y").model)>=0)&&c.push(f)}),t.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:c[0],coordSyses:c,getPanelRect:Hc.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(r,t){w(r.geoModels,function(e){var n=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:Hc.geo})})}},Wc=[function(r,t){var e=r.xAxisModel,n=r.yAxisModel,a=r.gridModel;return!a&&e&&(a=e.axis.grid.model),!a&&n&&(a=n.axis.grid.model),a&&a===t.gridModel},function(r,t){var e=r.geoModel;return e&&e===t.geoModel}],Hc={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,t=r.getBoundingRect().clone();return t.applyTransform(Ts(r)),t}},Ji={lineX:j(Uc,0),lineY:j(Uc,1),rect:function(r,t,e,n){var a=r?t.pointToData([e[0][0],e[1][0]],n):t.dataToPoint([e[0][0],e[1][0]],n),i=r?t.pointToData([e[0][1],e[1][1]],n):t.dataToPoint([e[0][1],e[1][1]],n),o=[as([a[0],i[0]]),as([a[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(r,t,e,n){var a=[[1/0,-1/0],[1/0,-1/0]],i=z(e,function(o){var s=r?t.pointToData(o,n):t.dataToPoint(o,n);return a[0][0]=Math.min(a[0][0],s[0]),a[1][0]=Math.min(a[1][0],s[1]),a[0][1]=Math.max(a[0][1],s[0]),a[1][1]=Math.max(a[1][1],s[1]),s});return{values:i,xyMinMax:a}}};function Uc(r,t,e,n){var a=e.getAxis(["x","y"][r]),i=as(z([0,1],function(s){return t?a.coordToData(a.toLocalCoord(n[s]),!0):a.toGlobalCoord(a.dataToCoord(n[s]))})),o=[];return o[r]=i,o[1-r]=[NaN,NaN],{values:i,xyMinMax:o}}var Yc={lineX:j($c,0),lineY:j($c,1),rect:function(r,t,e){return[[r[0][0]-e[0]*t[0][0],r[0][1]-e[0]*t[0][1]],[r[1][0]-e[1]*t[1][0],r[1][1]-e[1]*t[1][1]]]},polygon:function(r,t,e){return z(r,function(n,a){return[n[0]-e[0]*t[a][0],n[1]-e[1]*t[a][1]]})}};function $c(r,t,e,n){return[t[0]-n[r]*e[0],t[1]-n[r]*e[1]]}function s1(r,t){var e=Xc(r),n=Xc(t),a=[e[0]/n[0],e[1]/n[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function Xc(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}const mp=i1;var is=w,l1=Qg("toolbox-dataZoom_"),u1=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,a,i){this._brushController||(this._brushController=new sw(a.getZr()),this._brushController.on("brush",ne(this._onBrush,this)).mount()),v1(e,n,this,i,a),f1(e,n)},t.prototype.onclick=function(e,n,a){c1[a].call(this)},t.prototype.remove=function(e,n){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,n){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var n=e.areas;if(!e.isEnd||!n.length)return;var a={},i=this.ecModel;this._brushController.updateCovers([]);var o=new mp(fl(this.model),i,{include:["grid"]});o.matchOutputRanges(n,i,function(u,c,f){if(f.type==="cartesian2d"){var h=u.brushType;h==="rect"?(s("x",f,c[0]),s("y",f,c[1])):s({lineX:"x",lineY:"y"}[h],f,c)}}),Qw(i,a),this._dispatchZoomAction(a);function s(u,c,f){var h=c.getAxis(u),v=h.model,d=l(u,v,i),p=d.findRepresentativeAxisProxy(v).getMinMaxSpan();(p.minValueSpan!=null||p.maxValueSpan!=null)&&(f=ep(0,f.slice(),h.scale.getExtent(),0,p.minValueSpan,p.maxValueSpan)),d&&(a[d.id]={dataZoomId:d.id,startValue:f[0],endValue:f[1]})}function l(u,c,f){var h;return f.eachComponent({mainType:"dataZoom",subType:"select"},function(v){var d=v.getAxisModel(u,c.componentIndex);d&&(h=v)}),h}},t.prototype._dispatchZoomAction=function(e){var n=[];is(e,function(a,i){n.push(Z(a))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},t.getDefaultOption=function(e){var n={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:e.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return n},t}(Qe),c1={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(Jw(this.ecModel))}};function fl(r){var t={xAxisIndex:r.get("xAxisIndex",!0),yAxisIndex:r.get("yAxisIndex",!0),xAxisId:r.get("xAxisId",!0),yAxisId:r.get("yAxisId",!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex="all"),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex="all"),t}function f1(r,t){r.setIconStatus("back",t1(t)>1?"emphasis":"normal")}function v1(r,t,e,n,a){var i=e._isZoomActive;n&&n.type==="takeGlobalCursor"&&(i=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),e._isZoomActive=i,r.setIconStatus("zoom",i?"emphasis":"normal");var o=new mp(fl(r),t,{include:["grid"]}),s=o.makePanelOpts(a,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});e._brushController.setPanels(s).enableBrush(i&&s.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}My("dataZoom",function(r){var t=r.getComponent("toolbox",0),e=["feature","dataZoom"];if(!t||t.get(e)==null)return;var n=t.getModel(e),a=[],i=fl(n),o=cn(r,i);is(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),is(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,c){var f=l.componentIndex,h={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:l1+u+f};h[c]=f,a.push(h)}return a});const h1=u1;function fD(r){r.registerComponentModel(Pw),r.registerComponentView(Ow),rn("saveAsImage",Nw),rn("magicType",Fw),rn("dataView",jw),rn("dataZoom",h1),rn("restore",n1),_t(Iw)}var d1=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(ae);const p1=d1;function yp(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function _p(r){if(!!ce.domSupported){for(var t=document.documentElement.style,e=0,n=r.length;e-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var c=u*Math.PI/180,f=o+a,h=f*Math.abs(Math.cos(c))+f*Math.abs(Math.sin(c)),v=Math.round(((h-Math.SQRT2*a)/2+Math.SQRT2*a-(h-f)/2)*100)/100;s+=";"+i+":-"+v+"px";var d=t+" solid "+a+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+n+";"];return'
'}function b1(r,t){var e="cubic-bezier(0.23,1,0.32,1)",n=" "+r/2+"s "+e,a="opacity"+n+",visibility"+n;return t||(n=" "+r+"s "+e,a+=ce.transformSupported?","+vl+n:",left"+n+",top"+n),y1+":"+a}function Zc(r,t,e){var n=r.toFixed(0)+"px",a=t.toFixed(0)+"px";if(!ce.transformSupported)return e?"top:"+a+";left:"+n+";":[["top",a],["left",n]];var i=ce.transform3dSupported,o="translate"+(i?"3d":"")+"("+n+","+a+(i?",0":"")+")";return e?"top:0;left:0;"+vl+":"+o+";":[["top",0],["left",0],[Sp,o]]}function w1(r){var t=[],e=r.get("fontSize"),n=r.getTextColor();n&&t.push("color:"+n),t.push("font:"+r.getFont()),e&&t.push("line-height:"+Math.round(e*3/2)+"px");var a=r.get("textShadowColor"),i=r.get("textShadowBlur")||0,o=r.get("textShadowOffsetX")||0,s=r.get("textShadowOffsetY")||0;return a&&i&&t.push("text-shadow:"+o+"px "+s+"px "+i+"px "+a),w(["decoration","align"],function(l){var u=r.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function C1(r,t,e){var n=[],a=r.get("transitionDuration"),i=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),l=r.get("shadowOffsetX"),u=r.get("shadowOffsetY"),c=r.getModel("textStyle"),f=Dh(r,"html"),h=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+h),t&&a&&n.push(b1(a,e)),i&&n.push("background-color:"+i),w(["width","color","radius"],function(v){var d="border-"+v,p=Xv(d),g=r.get(p);g!=null&&n.push(d+":"+g+(v==="color"?"":"px"))}),n.push(w1(c)),f!=null&&n.push("padding:"+ai(f).join("px ")+"px"),n.join(";")+";"}function Kc(r,t,e,n,a){var i=t&&t.painter;if(e){var o=i&&i.getViewportRoot();o&&Cg(r,o,document.body,n,a)}else{r[0]=n,r[1]=a;var s=i&&i.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var T1=function(){function r(t,e,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,ce.wxa)return null;var a=document.createElement("div");a.domBelongToZr=!0,this.el=a;var i=this._zr=e.getZr(),o=this._appendToBody=n&&n.appendToBody;Kc(this._styleCoord,i,o,e.getWidth()/2,e.getHeight()/2),o?document.body.appendChild(a):t.appendChild(a),this._container=t;var s=this;a.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},a.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=i.handler,c=i.painter.getViewportRoot();wg(c,l,!0),u.dispatch("mousemove",l)}},a.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(t){var e=this._container,n=m1(e,"position"),a=e.style;a.position!=="absolute"&&n!=="absolute"&&(a.position="relative");var i=t.get("alwaysShowContent");i&&this._moveIfResized(),this.el.className=t.get("className")||""},r.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,a=n.style,i=this._styleCoord;n.innerHTML?a.cssText=_1+C1(t,!this._firstShow,this._longHide)+Zc(i[0],i[1],!0)+("border-color:"+nr(e)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(t,e,n,a,i){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(F(i)&&n.get("trigger")==="item"&&!yp(n)&&(s=x1(n,a,i)),F(t))o.innerHTML=t+s;else if(t){o.innerHTML="",O(t)||(t=[t]);for(var l=0;l=0?this._tryShow(i,o):a==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,n=this._ecModel,a=this._api,i=e.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&o.manuallyShowTip(e,n,a,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,n,a,i){if(!(i.from===this.uid||ce.node||!a.getDom())){var o=Qc(i,a);this._ticket="";var s=i.dataByCoordSys,l=E1(i,n,a);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var c=I1;c.x=i.x,c.y=i.y,c.update(),Q(c).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:c},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(e,n,a,i))return;var f=jd(i,n),h=f.point[0],v=f.point[1];h!=null&&v!=null&&this._tryShow({offsetX:h,offsetY:v,target:f.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:a.getZr().findHover(i.x,i.y).target},o))}},t.prototype.manuallyHideTip=function(e,n,a,i){var o=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(Qc(i,a))},t.prototype._manuallyAxisShowTip=function(e,n,a,i){var o=i.seriesIndex,s=i.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(!!u){var c=u.getData(),f=nn([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(f.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},t.prototype._tryShow=function(e,n){var a=e.target,i=this._tooltipModel;if(!!i){this._lastX=e.offsetX,this._lastY=e.offsetY;var o=e.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,e);else if(a){this._lastDataByCoordSys=null;var s,l;ln(a,function(u){if(Q(u).dataIndex!=null)return s=u,!0;if(Q(u).tooltipConfig!=null)return l=u,!0},!0),s?this._showSeriesItemTooltip(e,s,n):l?this._showComponentItemTooltip(e,l,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(e,n){var a=e.get("showDelay");n=ne(n,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(n,a):n()},t.prototype._showAxisTooltip=function(e,n){var a=this._ecModel,i=this._tooltipModel,o=[n.offsetX,n.offsetY],s=nn([n.tooltipOption],i),l=this._renderMode,u=[],c=An("section",{blocks:[],noHeader:!0}),f=[],h=new Pi;w(e,function(y){w(y.dataByAxis,function(_){var S=a.getComponent(_.axisDim+"Axis",_.axisIndex),b=_.value;if(!(!S||b==null)){var x=Zd(b,S.axis,a,_.seriesDataIndices,_.valueLabelOpt),C=An("section",{header:x,noHeader:!On(x),sortBlocks:!0,blocks:[]});c.blocks.push(C),w(_.seriesDataIndices,function(T){var D=a.getSeriesByIndex(T.seriesIndex),M=T.dataIndexInside,A=D.getDataParams(M);if(!(A.dataIndex<0)){A.axisDim=_.axisDim,A.axisIndex=_.axisIndex,A.axisType=_.axisType,A.axisId=_.axisId,A.axisValue=el(S.axis,{value:b}),A.axisValueLabel=x,A.marker=h.makeTooltipMarker("item",nr(A.color),l);var I=mu(D.formatTooltip(M,!0,null)),L=I.frag;if(L){var P=nn([D],i).get("valueFormatter");C.blocks.push(P?B({valueFormatter:P},L):L)}I.text&&f.push(I.text),u.push(A)}})}})}),c.blocks.reverse(),f.reverse();var v=n.position,d=s.get("order"),p=wu(c,h,l,d,a.get("useUTC"),s.get("textStyle"));p&&f.unshift(p);var g=l==="richText"?` + +`:"
",m=f.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,u)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,m,u,Math.random()+"",o[0],o[1],v,null,h)})},t.prototype._showSeriesItemTooltip=function(e,n,a){var i=this._ecModel,o=Q(n),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,f=o.dataType,h=u.getData(f),v=this._renderMode,d=e.positionDefault,p=nn([h.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var m=u.getDataParams(c,f),y=new Pi;m.marker=y.makeTooltipMarker("item",nr(m.color),v);var _=mu(u.formatTooltip(c,!1,f)),S=p.get("order"),b=p.get("valueFormatter"),x=_.frag,C=x?wu(b?B({valueFormatter:b},x):x,y,v,S,i.get("useUTC"),p.get("textStyle")):_.text,T="item_"+u.name+"_"+c;this._showOrMove(p,function(){this._showTooltipContent(p,C,m,T,e.offsetX,e.offsetY,e.position,e.target,y)}),a({type:"showTip",dataIndexInside:c,dataIndex:h.getRawIndex(c),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,n,a){var i=Q(n),o=i.tooltipConfig,s=o.option||{};if(F(s)){var l=s;s={content:l,formatter:l}}var u=[s],c=this._ecModel.getComponent(i.componentMainType,i.componentIndex);c&&u.push(c),u.push({formatter:s.content});var f=e.positionDefault,h=nn(u,this._tooltipModel,f?{position:f}:null),v=h.get("content"),d=Math.random()+"",p=new Pi;this._showOrMove(h,function(){var g=Z(h.get("formatterParams")||{});this._showTooltipContent(h,v,g,d,e.offsetX,e.offsetY,e.position,n,p)}),a({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,n,a,i,o,s,l,u,c){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var f=this._tooltipContent;f.setEnterable(e.get("enterable"));var h=e.get("formatter");l=l||e.get("position");var v=n,d=this._getNearestPoint([o,s],a,e.get("trigger"),e.get("borderColor")),p=d.color;if(h)if(F(h)){var g=e.ecModel.get("useUTC"),m=O(a)?a[0]:a,y=m&&m.axisType&&m.axisType.indexOf("time")>=0;v=h,y&&(v=Ja(m.axisValue,v,g)),v=Zv(v,a,!0)}else if(U(h)){var _=ne(function(S,b){S===this._ticket&&(f.setContent(b,c,e,p,l),this._updatePosition(e,l,o,s,f,a,u))},this);this._ticket=i,v=h(a,i,_)}else v=h;f.setContent(v,c,e,p,l),f.show(e,p),this._updatePosition(e,l,o,s,f,a,u)}},t.prototype._getNearestPoint=function(e,n,a,i){if(a==="axis"||O(n))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!O(n))return{color:i||n.color||n.borderColor}},t.prototype._updatePosition=function(e,n,a,i,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();n=n||e.get("position");var f=o.getSize(),h=e.get("align"),v=e.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),U(n)&&(n=n([a,i],s,o.el,d,{viewSize:[u,c],contentSize:f.slice()})),O(n))a=ee(n[0],u),i=ee(n[1],c);else if(H(n)){var p=n;p.width=f[0],p.height=f[1];var g=zt(p,{width:u,height:c});a=g.x,i=g.y,h=null,v=null}else if(F(n)&&l){var m=R1(n,d,f,e.get("borderWidth"));a=m[0],i=m[1]}else{var m=P1(a,i,o,u,c,h?null:20,v?null:20);a=m[0],i=m[1]}if(h&&(a-=Jc(h)?f[0]/2:h==="right"?f[0]:0),v&&(i-=Jc(v)?f[1]/2:v==="bottom"?f[1]:0),yp(e)){var m=k1(a,i,o,u,c);a=m[0],i=m[1]}o.moveTo(a,i)},t.prototype._updateContentNotChangedOnAxis=function(e,n){var a=this._lastDataByCoordSys,i=this._cbParamsList,o=!!a&&a.length===e.length;return o&&w(a,function(s,l){var u=s.dataByAxis||[],c=e[l]||{},f=c.dataByAxis||[];o=o&&u.length===f.length,o&&w(u,function(h,v){var d=f[v]||{},p=h.seriesDataIndices||[],g=d.seriesDataIndices||[];o=o&&h.value===d.value&&h.axisType===d.axisType&&h.axisId===d.axisId&&p.length===g.length,o&&w(p,function(m,y){var _=g[y];o=o&&m.seriesIndex===_.seriesIndex&&m.dataIndex===_.dataIndex}),i&&w(h.seriesDataIndices,function(m){var y=m.seriesIndex,_=n[y],S=i[y];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=n,!!o},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,n){ce.node||!n.getDom()||(Bo(this,"_updatePosition"),this._tooltipContent.dispose(),jo("itemTooltip",n))},t.type="tooltip",t}(He);function nn(r,t,e){var n=t.ecModel,a;e?(a=new Ce(e,n,n),a=new Ce(t.option,a,n)):a=t;for(var i=r.length-1;i>=0;i--){var o=r[i];o&&(o instanceof Ce&&(o=o.get("tooltip",!0)),F(o)&&(o={formatter:o}),o&&(a=new Ce(o,a,n)))}return a}function Qc(r,t){return r.dispatchAction||ne(t.dispatchAction,t)}function P1(r,t,e,n,a,i,o){var s=e.getSize(),l=s[0],u=s[1];return i!=null&&(r+l+i+2>n?r-=l+i:r+=i),o!=null&&(t+u+o>a?t-=u+o:t+=o),[r,t]}function k1(r,t,e,n,a){var i=e.getSize(),o=i[0],s=i[1];return r=Math.min(r+o,n)-o,t=Math.min(t+s,a)-s,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function R1(r,t,e,n){var a=e[0],i=e[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=t.width,c=t.height;switch(r){case"inside":s=t.x+u/2-a/2,l=t.y+c/2-i/2;break;case"top":s=t.x+u/2-a/2,l=t.y-i-o;break;case"bottom":s=t.x+u/2-a/2,l=t.y+c+o;break;case"left":s=t.x-a-o,l=t.y+c/2-i/2;break;case"right":s=t.x+u+o,l=t.y+c/2-i/2}return[s,l]}function Jc(r){return r==="center"||r==="middle"}function E1(r,t,e){var n=ms(r).queryOptionMap,a=n.keys()[0];if(!(!a||a==="series")){var i=Vn(t,a,n.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(!!o){var s=e.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var c=Q(u).tooltipConfig;if(c&&c.name===r.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}}const O1=L1;function vD(r){_t(Qd),r.registerComponentModel(p1),r.registerComponentView(O1),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},mt),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},mt)}var B1=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(ae),N1=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){if(this.group.removeAll(),!!e.get("show")){var i=this.group,o=e.getModel("textStyle"),s=e.getModel("subtextStyle"),l=e.get("textAlign"),u=se(e.get("textBaseline"),e.get("textVerticalAlign")),c=new be({style:Vt(o,{text:e.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),f=c.getBoundingRect(),h=e.get("subtext"),v=new be({style:Vt(s,{text:h,fill:s.getTextColor(),y:f.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=e.get("link"),p=e.get("sublink"),g=e.get("triggerEvent",!0);c.silent=!d&&!g,v.silent=!p&&!g,d&&c.on("click",function(){Ql(d,"_"+e.get("target"))}),p&&v.on("click",function(){Ql(p,"_"+e.get("subtarget"))}),Q(c).eventData=Q(v).eventData=g?{componentType:"title",componentIndex:e.componentIndex}:null,i.add(c),h&&i.add(v);var m=i.getBoundingRect(),y=e.getBoxLayoutParams();y.width=m.width,y.height=m.height;var _=zt(y,{width:a.getWidth(),height:a.getHeight()},e.get("padding"));l||(l=e.get("left")||e.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=e.get("top")||e.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),i.x=_.x,i.y=_.y,i.markRedraw();var S={align:l,verticalAlign:u};c.setStyle(S),v.setStyle(S),m=i.getBoundingRect();var b=_.margin,x=e.getItemStyle(["color","opacity"]);x.fill=e.get("backgroundColor");var C=new fe({shape:{x:m.x-b[3],y:m.y-b[0],width:m.width+b[1]+b[3],height:m.height+b[0]+b[2],r:e.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});i.add(C)}},t.type="title",t}(He);function hD(r){r.registerComponentModel(B1),r.registerComponentView(N1)}function gi(r,t){var e=r.mapDimensionsAll("defaultedLabel"),n=e.length;if(n===1){var a=Pr(r,t,e[0]);return a!=null?a+"":null}else if(n){for(var i=[],o=0;o=0&&n.push(t[i])}return n.join(" ")}var V1=function(r){N(t,r);function t(e,n,a,i){var o=r.call(this)||this;return o.updateData(e,n,a,i),o}return t.prototype._createSymbol=function(e,n,a,i,o){this.removeAll();var s=Ft(e,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=z1,this._symbolType=e,this.add(s)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){Ar(this.childAt(0))},t.prototype.downplay=function(){Mr(this.childAt(0))},t.prototype.setZ=function(e,n){var a=this.childAt(0);a.zlevel=e,a.z=n},t.prototype.setDraggable=function(e,n){var a=this.childAt(0);a.draggable=e,a.cursor=!n&&e?"move":a.cursor},t.prototype.updateData=function(e,n,a,i){this.silent=!1;var o=e.getItemVisual(n,"symbol")||"circle",s=e.hostModel,l=t.getSymbolSize(e,n),u=o!==this._symbolType,c=i&&i.disableAnimation;if(u){var f=e.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,e,n,l,f)}else{var h=this.childAt(0);h.silent=!1;var v={scaleX:l[0]/2,scaleY:l[1]/2};c?h.attr(v):pe(h,v,s,n),Ka(h)}if(this._updateCommon(e,n,l,a,i),u){var h=this.childAt(0);if(!c){var v={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,Te(h,v,s,n)}}c&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,n,a,i,o){var s=this.childAt(0),l=e.hostModel,u,c,f,h,v,d,p,g,m;if(i&&(u=i.emphasisItemStyle,c=i.blurItemStyle,f=i.selectItemStyle,h=i.focus,v=i.blurScope,p=i.labelStatesModels,g=i.hoverScale,m=i.cursorStyle,d=i.emphasisDisabled),!i||e.hasItemOption){var y=i&&i.itemModel?i.itemModel:e.getItemModel(n),_=y.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),f=y.getModel(["select","itemStyle"]).getItemStyle(),c=y.getModel(["blur","itemStyle"]).getItemStyle(),h=_.get("focus"),v=_.get("blurScope"),d=_.get("disabled"),p=Nr(y),g=_.getShallow("scale"),m=y.getShallow("cursor")}var S=e.getItemVisual(n,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var b=Ys(e.getItemVisual(n,"symbolOffset"),a);b&&(s.x=b[0],s.y=b[1]),m&&s.attr("cursor",m);var x=e.getItemVisual(n,"style"),C=x.fill;if(s instanceof Or){var T=s.style;s.useStyle(B({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},x))}else s.__isEmptyBrush?s.useStyle(B({},x)):s.useStyle(x),s.style.decal=null,s.setColor(C,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var D=e.getItemVisual(n,"liftZ"),M=this._z2;D!=null?M==null&&(this._z2=s.z2,s.z2+=D):M!=null&&(s.z2=M,this._z2=null);var A=o&&o.useNameLabel;Br(s,p,{labelFetcher:l,labelDataIndex:n,defaultText:I,inheritColor:C,defaultOpacity:x.opacity});function I(k){return A?e.getName(k):gi(e,k)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var L=s.ensureState("emphasis");L.style=u,s.ensureState("select").style=f,s.ensureState("blur").style=c;var P=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;L.scaleX=this._sizeX*P,L.scaleY=this._sizeY*P,this.setSymbolScale(1),Ir(this,h,v,d)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,n,a){var i=this.childAt(0),o=Q(this).dataIndex,s=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var l=i.getTextContent();l&&xn(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();xn(i,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:e,removeOpt:s})},t.getSymbolSize=function(e,n){return C_(e.getItemVisual(n,"symbolSize"))},t}(de);function z1(r,t){this.parent.drift(r,t)}const hl=V1;function eo(r,t,e,n){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(n.isIgnore&&n.isIgnore(e))&&!(n.clipShape&&!n.clipShape.contain(t[0],t[1]))&&r.getItemVisual(e,"symbol")!=="none"}function ef(r){return r!=null&&!H(r)&&(r={isIgnore:r}),r||{}}function tf(r){var t=r.hostModel,e=t.getModel("emphasis");return{emphasisItemStyle:e.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:e.get("focus"),blurScope:e.get("blurScope"),emphasisDisabled:e.get("disabled"),hoverScale:e.get("scale"),labelStatesModels:Nr(t),cursorStyle:t.get("cursor")}}var F1=function(){function r(t){this.group=new de,this._SymbolCtor=t||hl}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=ef(e);var n=this.group,a=t.hostModel,i=this._data,o=this._SymbolCtor,s=e.disableAnimation,l=tf(t),u={disableAnimation:s},c=e.getSymbolPoint||function(f){return t.getItemLayout(f)};i||n.removeAll(),t.diff(i).add(function(f){var h=c(f);if(eo(t,h,f,e)){var v=new o(t,f,l,u);v.setPosition(h),t.setItemGraphicEl(f,v),n.add(v)}}).update(function(f,h){var v=i.getItemGraphicEl(h),d=c(f);if(!eo(t,d,f,e)){n.remove(v);return}var p=t.getItemVisual(f,"symbol")||"circle",g=v&&v.getSymbolType&&v.getSymbolType();if(!v||g&&g!==p)n.remove(v),v=new o(t,f,l,u),v.setPosition(d);else{v.updateData(t,f,l,u);var m={x:d[0],y:d[1]};s?v.attr(m):pe(v,m,a)}n.add(v),t.setItemGraphicEl(f,v)}).remove(function(f){var h=i.getItemGraphicEl(f);h&&h.fadeOut(function(){n.remove(h)},a)}).execute(),this._getSymbolPoint=c,this._data=t},r.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(n,a){var i=t._getSymbolPoint(a);n.setPosition(i),n.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=tf(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,n){this._progressiveEls=[],n=ef(n);function a(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(ae);const os=W1;var mr=j,ss=w,fa=de,H1=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!1,e}return t.prototype.init=function(){this.group.add(this._contentGroup=new fa),this.group.add(this._selectorGroup=new fa),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,n,a){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!e.get("show",!0)){var o=e.get("align"),s=e.get("orient");(!o||o==="auto")&&(o=e.get("left")==="right"&&s==="vertical"?"right":"left");var l=e.get("selector",!0),u=e.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,e,n,a,l,s,u);var c=e.getBoxLayoutParams(),f={width:a.getWidth(),height:a.getHeight()},h=e.get("padding"),v=zt(c,f,h),d=this.layoutInner(e,o,v,i,l,u),p=zt(te({width:d.width,height:d.height},c),f,h);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=dp(d,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,n,a,i,o,s,l){var u=this.getContentGroup(),c=W(),f=n.get("selectedMode"),h=[];a.eachRawSeries(function(v){!v.get("legendHoverLink")&&h.push(v.id)}),ss(n.getData(),function(v,d){var p=v.get("name");if(!this.newlineDisabled&&(p===""||p===` +`)){var g=new fa;g.newline=!0,u.add(g);return}var m=a.getSeriesByName(p)[0];if(!c.get(p))if(m){var y=m.getData(),_=y.getVisual("legendLineStyle")||{},S=y.getVisual("legendIcon"),b=y.getVisual("style"),x=this._createItem(m,p,d,v,n,e,_,b,S,f,i);x.on("click",mr(rf,p,null,i,h)).on("mouseover",mr(ls,m.name,null,i,h)).on("mouseout",mr(us,m.name,null,i,h)),c.set(p,!0)}else a.eachRawSeries(function(C){if(!c.get(p)&&C.legendVisualProvider){var T=C.legendVisualProvider;if(!T.containName(p))return;var D=T.indexOfName(p),M=T.getItemVisual(D,"style"),A=T.getItemVisual(D,"legendIcon"),I=Tg(M.fill);I&&I[3]===0&&(I[3]=.2,M=B(B({},M),{fill:Dg(I,"rgba")}));var L=this._createItem(C,p,d,v,n,e,{},M,A,f,i);L.on("click",mr(rf,null,p,i,h)).on("mouseover",mr(ls,null,p,i,h)).on("mouseout",mr(us,null,p,i,h)),c.set(p,!0)}},this)},this),o&&this._createSelector(o,n,i,s,l)},t.prototype._createSelector=function(e,n,a,i,o){var s=this.getSelectorGroup();ss(e,function(u){var c=u.type,f=new be({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(f);var h=n.getModel("selectorLabel"),v=n.getModel(["emphasis","selectorLabel"]);Br(f,{normal:h,emphasis:v},{defaultText:u.title}),Co(f)})},t.prototype._createItem=function(e,n,a,i,o,s,l,u,c,f,h){var v=e.visualDrawType,d=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(n),m=i.get("symbolRotate"),y=i.get("symbolKeepAspect"),_=i.get("icon");c=_||c||"roundRect";var S=U1(c,i,l,u,v,g,h),b=new fa,x=i.getModel("textStyle");if(U(e.getLegendIcon)&&(!_||_==="inherit"))b.add(e.getLegendIcon({itemWidth:d,itemHeight:p,icon:c,iconRotate:m,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:y}));else{var C=_==="inherit"&&e.getData().getVisual("symbol")?m==="inherit"?e.getData().getVisual("symbolRotate"):m:0;b.add(Y1({itemWidth:d,itemHeight:p,icon:c,iconRotate:C,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:y}))}var T=s==="left"?d+5:-5,D=s,M=o.get("formatter"),A=n;F(M)&&M?A=M.replace("{name}",n!=null?n:""):U(M)&&(A=M(n));var I=i.get("inactiveColor");b.add(new be({style:Vt(x,{text:A,x:T,y:p/2,fill:g?x.getTextColor():I,align:D,verticalAlign:"middle"})}));var L=new fe({shape:b.getBoundingRect(),invisible:!0}),P=i.getModel("tooltip");return P.get("show")&&ja({el:L,componentModel:o,itemName:n,itemTooltipOption:P.option}),b.add(L),b.eachChild(function(k){k.silent=!0}),L.silent=!f,this.getContentGroup().add(b),Co(b),b.__legendDataIndex=a,b},t.prototype.layoutInner=function(e,n,a,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Cr(e.get("orient"),l,e.get("itemGap"),a.width,a.height);var c=l.getBoundingRect(),f=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){Cr("horizontal",u,e.get("selectorItemGap",!0));var h=u.getBoundingRect(),v=[-h.x,-h.y],d=e.get("selectorButtonGap",!0),p=e.getOrient().index,g=p===0?"width":"height",m=p===0?"height":"width",y=p===0?"y":"x";s==="end"?v[p]+=c[g]+d:f[p]+=h[g]+d,v[1-p]+=c[m]/2-h[m]/2,u.x=v[0],u.y=v[1],l.x=f[0],l.y=f[1];var _={x:0,y:0};return _[g]=c[g]+d+h[g],_[m]=Math.max(c[m],h[m]),_[y]=Math.min(0,h[y]+v[1-p]),_}else return l.x=f[0],l.y=f[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(He);function U1(r,t,e,n,a,i,o){function s(g,m){g.lineWidth==="auto"&&(g.lineWidth=m.lineWidth>0?2:0),ss(g,function(y,_){g[_]==="inherit"&&(g[_]=m[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=r.lastIndexOf("empty",0)===0?"fill":"stroke",f=l.getShallow("decal");u.decal=!f||f==="inherit"?n.decal:zo(f,o),u.fill==="inherit"&&(u.fill=n[a]),u.stroke==="inherit"&&(u.stroke=n[c]),u.opacity==="inherit"&&(u.opacity=(a==="fill"?n:e).opacity),s(u,n);var h=t.getModel("lineStyle"),v=h.getLineStyle();if(s(v,e),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),v.stroke==="auto"&&(v.stroke=n.fill),!i){var d=t.get("inactiveBorderWidth"),p=u[c];u.lineWidth=d==="auto"?n.lineWidth>0&&p?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),v.stroke=h.get("inactiveColor"),v.lineWidth=h.get("inactiveWidth")}return{itemStyle:u,lineStyle:v}}function Y1(r){var t=r.icon||"roundRect",e=Ft(t,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return e.setStyle(r.itemStyle),e.rotation=(r.iconRotate||0)*Math.PI/180,e.setOrigin([r.itemWidth/2,r.itemHeight/2]),t.indexOf("empty")>-1&&(e.style.stroke=e.style.fill,e.style.fill="#fff",e.style.lineWidth=2),e}function rf(r,t,e,n){us(r,t,e,n),e.dispatchAction({type:"legendToggleSelect",name:r!=null?r:t}),ls(r,t,e,n)}function Cp(r){for(var t=r.getZr().storage.getDisplayList(),e,n=0,a=t.length;na[o],g=[-v.x,-v.y];n||(g[i]=c[u]);var m=[0,0],y=[-d.x,-d.y],_=se(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(p){var S=e.get("pageButtonPosition",!0);S==="end"?y[i]+=a[o]-d[o]:m[i]+=d[o]+_}y[1-i]+=v[s]/2-d[s]/2,c.setPosition(g),f.setPosition(m),h.setPosition(y);var b={x:0,y:0};if(b[o]=p?a[o]:v[o],b[s]=Math.max(v[s],d[s]),b[l]=Math.min(0,d[l]+y[1-i]),f.__rectSize=a[o],p){var x={x:0,y:0};x[o]=Math.max(a[o]-d[o]-_,0),x[s]=b[s],f.setClipPath(new fe({shape:x})),f.__rectSize=x[o]}else h.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var C=this._getPageInfo(e);return C.pageIndex!=null&&pe(c,{x:C.contentPosition[0],y:C.contentPosition[1]},p?e:null),this._updatePageInfoView(e,C),b},t.prototype._pageGo=function(e,n,a){var i=this._getPageInfo(n)[e];i!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:n.id})},t.prototype._updatePageInfoView=function(e,n){var a=this._controllerGroup;w(["pagePrev","pageNext"],function(c){var f=c+"DataIndex",h=n[f]!=null,v=a.childOfName(c);v&&(v.setStyle("fill",h?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),v.cursor=h?"pointer":"default")});var i=a.childOfName("pageText"),o=e.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;i&&o&&i.setStyle("text",F(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(e){var n=e.get("scrollDataIndex",!0),a=this.getContentGroup(),i=this._containerGroup.__rectSize,o=e.getOrient().index,s=to[o],l=ro[o],u=this._findTargetItemIndex(n),c=a.children(),f=c[u],h=c.length,v=h?1:0,d={contentPosition:[a.x,a.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return d;var p=S(f);d.contentPosition[o]=-p.s;for(var g=u+1,m=p,y=p,_=null;g<=h;++g)_=S(c[g]),(!_&&y.e>m.s+i||_&&!b(_,m.s))&&(y.i>m.i?m=y:m=_,m&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=m.i),++d.pageCount)),y=_;for(var g=u-1,m=p,y=p,_=null;g>=-1;--g)_=S(c[g]),(!_||!b(y,_.s))&&m.i=C&&x.s<=C+i}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var n,a=this.getContentGroup(),i;return a.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===e&&(n=s)}),n!=null?n:i},t.type="legend.scroll",t}(Tp);const j1=q1;function Q1(r){r.registerAction("legendScroll","legendscroll",function(t,e){var n=t.scrollDataIndex;n!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(a){a.setScrollDataIndex(n)})})}function J1(r){_t(Dp),r.registerComponentModel(K1),r.registerComponentView(j1),Q1(r)}function dD(r){_t(Dp),_t(J1)}var eC={label:{enabled:!0},decal:{show:!1}},of=le(),tC={};function rC(r,t){var e=r.getModel("aria");if(!e.get("enabled"))return;var n=Z(eC);K(n.label,r.getLocaleModel().get("aria"),!1),K(e.option,n,!1),a(),i();function a(){var u=e.getModel("decal"),c=u.get("show");if(c){var f=W();r.eachSeries(function(h){if(!h.isColorBySeries()){var v=f.get(h.type);v||(v={},f.set(h.type,v)),of(h).scope=v}}),r.eachRawSeries(function(h){if(r.isSeriesFiltered(h))return;if(U(h.enableAriaDecal)){h.enableAriaDecal();return}var v=h.getData();if(h.isColorBySeries()){var y=eu(h.ecModel,h.name,tC,r.getSeriesCount()),_=v.getVisual("decal");v.setVisual("decal",S(_,y))}else{var d=h.getRawData(),p={},g=of(h).scope;v.each(function(b){var x=v.getRawIndex(b);p[x]=b});var m=d.count();d.each(function(b){var x=p[b],C=d.getName(b)||b+"",T=eu(h.ecModel,C,g,m),D=v.getItemVisual(x,"decal");v.setItemVisual(x,"decal",S(D,T))})}function S(b,x){var C=b?B(B({},x),b):x;return C.dirty=!0,C}})}}function i(){var u=r.getLocaleModel().get("aria"),c=e.getModel("label");if(c.option=te(c.option,u),!!c.get("enabled")){var f=t.getZr().dom;if(c.get("description")){f.setAttribute("aria-label",c.get("description"));return}var h=r.getSeriesCount(),v=c.get(["data","maxCount"])||10,d=c.get(["series","maxCount"])||10,p=Math.min(h,d),g;if(!(h<1)){var m=s();if(m){var y=c.get(["general","withTitle"]);g=o(y,{title:m})}else g=c.get(["general","withoutTitle"]);var _=[],S=h>1?c.get(["series","multiple","prefix"]):c.get(["series","single","prefix"]);g+=o(S,{seriesCount:h}),r.eachSeries(function(T,D){if(D1?c.get(["series","multiple",I]):c.get(["series","single",I]),M=o(M,{seriesId:T.seriesIndex,seriesName:T.get("name"),seriesType:l(T.subType)});var L=T.getData();if(L.count()>v){var P=c.get(["data","partialData"]);M+=o(P,{displayCnt:v})}else M+=c.get(["data","allData"]);for(var k=c.get(["data","separator","middle"]),V=c.get(["data","separator","end"]),$=[],R=0;R":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},aC=function(){function r(t){var e=this._condVal=F(t)?new RegExp(t):Ag(t)?t:null;if(e==null){var n="";q(n)}}return r.prototype.evaluate=function(t){var e=typeof t;return F(e)?this._condVal.test(t):oe(e)?this._condVal.test(t+""):!1},r}(),iC=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),oC=function(){function r(){}return r.prototype.evaluate=function(){for(var t=this.children,e=0;e-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),n},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(lt);const _C=yC;function Mp(r,t,e){var n=r.getBaseAxis(),a=r.getOtherAxis(n),i=SC(a,e),o=n.dim,s=a.dim,l=t.mapDimension(s),u=t.mapDimension(o),c=s==="x"||s==="radius"?1:0,f=z(r.dimensions,function(d){return t.mapDimension(d)}),h=!1,v=t.getCalculationInfo("stackResultDimension");return kr(t,f[0])&&(h=!0,f[0]=v),kr(t,f[1])&&(h=!0,f[1]=v),{dataDimsForPoint:f,valueStart:i,valueAxisDim:s,baseAxisDim:o,stacked:!!h,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function SC(r,t){var e=0,n=r.scale.getExtent();return t==="start"?e=n[0]:t==="end"?e=n[1]:oe(t)&&!isNaN(t)?e=t:n[0]>0?e=n[0]:n[1]<0&&(e=n[1]),e}function Ip(r,t,e,n){var a=NaN;r.stacked&&(a=e.get(e.getCalculationInfo("stackedOverDimension"),n)),isNaN(a)&&(a=r.valueStart);var i=r.baseDataOffset,o=[];return o[i]=e.get(r.baseDim,n),o[1-i]=a,t.dataToPoint(o)}function xC(r,t){var e=[];return t.diff(r).add(function(n){e.push({cmd:"+",idx:n})}).update(function(n,a){e.push({cmd:"=",idx:a,idx1:n})}).remove(function(n){e.push({cmd:"-",idx:n})}).execute(),e}function bC(r,t,e,n,a,i,o,s){for(var l=xC(r,t),u=[],c=[],f=[],h=[],v=[],d=[],p=[],g=Mp(a,t,o),m=r.getLayout("points")||[],y=t.getLayout("points")||[],_=0;_=a||p<0)break;if(Jt(m,y)){if(l){p+=i;continue}break}if(p===e)r[i>0?"moveTo":"lineTo"](m,y),f=m,h=y;else{var _=m-u,S=y-c;if(_*_+S*S<.5){p+=i;continue}if(o>0){for(var b=p+i,x=t[b*2],C=t[b*2+1];x===m&&C===y&&g=n||Jt(x,C))v=m,d=y;else{M=x-u,A=C-c;var P=m-u,k=x-m,V=y-c,$=C-y,R=void 0,E=void 0;if(s==="x"){R=Math.abs(P),E=Math.abs(k);var G=M>0?1:-1;v=m-G*R*o,d=y,I=m+G*E*o,L=y}else if(s==="y"){R=Math.abs(V),E=Math.abs($);var Y=A>0?1:-1;v=m,d=y-Y*R*o,I=m,L=y+Y*E*o}else R=Math.sqrt(P*P+V*V),E=Math.sqrt(k*k+$*$),D=E/(E+R),v=m-M*o*(1-D),d=y-A*o*(1-D),I=m+M*o*D,L=y+A*o*D,I=It(I,Lt(x,m)),L=It(L,Lt(C,y)),I=Lt(I,It(x,m)),L=Lt(L,It(C,y)),M=I-m,A=L-y,v=m-M*R/E,d=y-A*R/E,v=It(v,Lt(u,m)),d=It(d,Lt(c,y)),v=Lt(v,It(u,m)),d=Lt(d,It(c,y)),M=m-v,A=y-d,I=m+M*E/R,L=y+A*E/R}r.bezierCurveTo(f,h,v,d,m,y),f=I,h=L}else r.lineTo(m,y)}u=m,c=y,p+=i}return g}var Lp=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),wC=function(r){N(t,r);function t(e){var n=r.call(this,e)||this;return n.type="ec-polyline",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Lp},t.prototype.buildPath=function(e,n){var a=n.points,i=0,o=a.length/2;if(n.connectNulls){for(;o>0&&Jt(a[o*2-2],a[o*2-1]);o--);for(;i=0){var S=u?(d-l)*_+l:(v-s)*_+s;return u?[e,S]:[S,e]}s=v,l=d;break;case o.C:v=i[f++],d=i[f++],p=i[f++],g=i[f++],m=i[f++],y=i[f++];var b=u?wl(s,v,p,m,e,c):wl(l,d,g,y,e,c);if(b>0)for(var x=0;x=0){var S=u?Cl(l,d,g,y,C):Cl(s,v,p,m,C);return u?[e,S]:[S,e]}}s=m,l=y;break}}},t}(ye),CC=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(Lp),TC=function(r){N(t,r);function t(e){var n=r.call(this,e)||this;return n.type="ec-polygon",n}return t.prototype.getDefaultShape=function(){return new CC},t.prototype.buildPath=function(e,n){var a=n.points,i=n.stackedOnPoints,o=0,s=a.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&Jt(a[s*2-2],a[s*2-1]);s--);for(;ot){i?e.push(o(i,l,t)):a&&e.push(o(a,l,0),o(a,l,t));break}else a&&(e.push(o(a,l,0)),a=null),e.push(l),i=l}return e}function MC(r,t,e){var n=r.getVisual("visualMeta");if(!(!n||!n.length||!r.count())&&t.type==="cartesian2d"){for(var a,i,o=n.length-1;o>=0;o--){var s=r.getDimensionInfo(n[o].dimension);if(a=s&&s.coordDim,a==="x"||a==="y"){i=n[o];break}}if(!!i){var l=t.getAxis(a),u=z(i.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),c=u.length,f=i.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),f.reverse());var h=AC(u,a==="x"?e.getWidth():e.getHeight()),v=h.length;if(!v&&c)return u[0].coord<0?f[1]?f[1]:u[c-1].color:f[0]?f[0]:u[0].color;var d=10,p=h[0].coord-d,g=h[v-1].coord+d,m=g-p;if(m<.001)return"transparent";w(h,function(_){_.offset=(_.coord-p)/m}),h.push({offset:v?h[v-1].offset:.5,color:f[1]||"transparent"}),h.unshift({offset:v?h[0].offset:.5,color:f[0]||"transparent"});var y=new qf(0,0,0,0,h,!0);return y[a]=p,y[a+"2"]=g,y}}}function IC(r,t,e){var n=r.get("showAllSymbol"),a=n==="auto";if(!(n&&!a)){var i=e.getAxesByScale("ordinal")[0];if(!!i&&!(a&&LC(i,t))){var o=t.mapDimension(i.dim),s={};return w(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function LC(r,t){var e=r.getExtent(),n=Math.abs(e[1]-e[0])/r.scale.count();isNaN(n)&&(n=0);for(var a=t.count(),i=Math.max(1,Math.round(a/5)),o=0;on)return!1;return!0}function PC(r,t){return isNaN(r)||isNaN(t)}function kC(r){for(var t=r.length/2;t>0&&PC(r[t*2-2],r[t*2-1]);t--);return t-1}function hf(r,t){return[r[t*2],r[t*2+1]]}function RC(r,t,e){for(var n=r.length/2,a=e==="x"?0:1,i,o,s=0,l=-1,u=0;u=t||i>=t&&o<=t){l=u;break}s=u,i=o}return{range:[s,l],t:(t-i)/(o-i)}}function Ep(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var G=p.getState("emphasis").style;G.lineWidth=+p.style.lineWidth+1}Q(p).seriesIndex=e.seriesIndex,Ir(p,$,R,E);var Y=vf(e.get("smooth")),X=e.get("smoothMonotone");if(p.setShape({smooth:Y,smoothMonotone:X,connectNulls:T}),g){var J=l.getCalculationInfo("stackedOnSeries"),_e=0;g.useStyle(te(c.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),J&&(_e=vf(J.get("smooth"))),g.setShape({smooth:Y,stackedOnSmooth:_e,smoothMonotone:X,connectNulls:T}),Sn(g,e,"areaStyle"),Q(g).seriesIndex=e.seriesIndex,Ir(g,$,R,E)}var Xe=function(ge){i._changePolyState(ge)};l.eachItemGraphicEl(function(ge){ge&&(ge.onHoverStateChange=Xe)}),this._polyline.onHoverStateChange=Xe,this._data=l,this._coordSys=o,this._stackedOnPoints=x,this._points=f,this._step=A,this._valueOrigin=S,e.get("triggerLineEvent")&&(this.packEventData(e,p),g&&this.packEventData(e,g))},t.prototype.packEventData=function(e,n){Q(n).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,n,a,i){var o=e.getData(),s=rr(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var c=l[s*2],f=l[s*2+1];if(isNaN(c)||isNaN(f)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,f))return;var h=e.get("zlevel")||0,v=e.get("z")||0;u=new hl(o,s),u.x=c,u.y=f,u.setZ(h,v);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=h,d.z=v,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Ee.prototype.highlight.call(this,e,n,a,i)},t.prototype.downplay=function(e,n,a,i){var o=e.getData(),s=rr(o,i);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Ee.prototype.downplay.call(this,e,n,a,i)},t.prototype._changePolyState=function(e){var n=this._polygon;El(this._polyline,e),n&&El(n,e)},t.prototype._newPolyline=function(e){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new wC({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},t.prototype._newPolygon=function(e,n){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new TC({shape:{points:e,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},t.prototype._initSymbolLabelAnimation=function(e,n,a){var i,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):n.type==="polar"&&(i=s.dim==="angle",o=!0);var u=e.hostModel,c=u.get("animationDuration");U(c)&&(c=c(null));var f=u.get("animationDelay")||0,h=U(f)?f(null):f;e.eachItemGraphicEl(function(v,d){var p=v;if(p){var g=[v.x,v.y],m=void 0,y=void 0,_=void 0;if(a)if(o){var S=a,b=n.pointToCoord(g);i?(m=S.startAngle,y=S.endAngle,_=-b[1]/180*Math.PI):(m=S.r0,y=S.r,_=b[0])}else{var x=a;i?(m=x.x,y=x.x+x.width,_=v.x):(m=x.y+x.height,y=x.y,_=v.y)}var C=y===m?0:(_-m)/(y-m);l&&(C=1-C);var T=U(f)?f(d):c*C+h,D=p.getSymbolPath(),M=D.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),M&&M.animateFrom({style:{opacity:0}},{duration:300,delay:T}),D.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,n,a){var i=e.getModel("endLabel");if(Ep(e)){var o=e.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new be({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=kC(l);c>=0&&(Br(s,Nr(e,"endLabel"),{inheritColor:a,labelFetcher:e,labelDataIndex:c,defaultText:function(f,h,v){return v!=null?bp(o,v):gi(o,f)},enableTextSetter:!0},EC(i,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,n,a,i,o,s,l){var u=this._endLabel,c=this._polyline;if(u){e<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var f=a.getLayout("points"),h=a.hostModel,v=h.get("connectNulls"),d=s.get("precision"),p=s.get("distance")||0,g=l.getBaseAxis(),m=g.isHorizontal(),y=g.inverse,_=n.shape,S=y?m?_.x:_.y+_.height:m?_.x+_.width:_.y,b=(m?p:0)*(y?-1:1),x=(m?0:-p)*(y?-1:1),C=m?"x":"y",T=RC(f,S,C),D=T.range,M=D[1]-D[0],A=void 0;if(M>=1){if(M>1&&!v){var I=hf(f,D[0]);u.attr({x:I[0]+b,y:I[1]+x}),o&&(A=h.getRawValue(D[0]))}else{var I=c.getPointOn(S,C);I&&u.attr({x:I[0]+b,y:I[1]+x});var L=h.getRawValue(D[0]),P=h.getRawValue(D[1]);o&&(A=vv(a,d,L,P,T.t))}i.lastFrameIndex=D[0]}else{var k=e===1||i.lastFrameIndex>0?D[0]:0,I=hf(f,k);o&&(A=h.getRawValue(k)),u.attr({x:I[0]+b,y:I[1]+x})}o&&Vr(u).setLabelText(A)}},t.prototype._doUpdateAnimation=function(e,n,a,i,o,s,l){var u=this._polyline,c=this._polygon,f=e.hostModel,h=bC(this._data,e,this._stackedOnPoints,n,this._coordSys,a,this._valueOrigin),v=h.current,d=h.stackedOnCurrent,p=h.next,g=h.stackedOnNext;if(o&&(v=Pt(h.current,a,o,l),d=Pt(h.stackedOnCurrent,a,o,l),p=Pt(h.next,a,o,l),g=Pt(h.stackedOnNext,a,o,l)),ff(v,p)>3e3||c&&ff(d,g)>3e3){u.stopAnimation(),u.setShape({points:p}),c&&(c.stopAnimation(),c.setShape({points:p,stackedOnPoints:g}));return}u.shape.__points=h.current,u.shape.points=v;var m={shape:{points:p}};h.current!==v&&(m.shape.__points=h.next),u.stopAnimation(),pe(u,m,f),c&&(c.setShape({points:v,stackedOnPoints:d}),c.stopAnimation(),pe(c,{shape:{stackedOnPoints:g}},f),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var y=[],_=h.status,S=0;S<_.length;S++){var b=_[S].cmd;if(b==="="){var x=e.getItemGraphicEl(_[S].idx1);x&&y.push({el:x,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var C=u.shape.__points,T=0;Tt&&(t=r[e]);return isFinite(t)?t:NaN},min:function(r){for(var t=1/0,e=0;e10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),f=n.getDevicePixelRatio(),h=Math.abs(c[1]-c[0])*(f||1),v=Math.round(s/h);if(isFinite(v)&&v>1){i==="lttb"&&t.setData(a.lttbDownSample(a.mapDimension(u.dim),1/v));var d=void 0;F(i)?d=NC[i]:U(i)&&(d=i),d&&t.setData(a.downSample(a.mapDimension(u.dim),1/v,d,VC))}}}}}function yD(r){r.registerChartView(BC),r.registerSeriesModel(_C),r.registerLayout(gl("line",!0)),r.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",n)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,Op("line"))}var Bp=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,n){return ci(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e){var n=this.coordinateSystem;if(n&&n.clampData){var a=n.dataToPoint(n.clampData(e)),i=this.getData(),o=i.getLayout("offset"),s=i.getLayout("size"),l=n.getBaseAxis().isHorizontal()?0:1;return a[l]+=o+s/2,a}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(lt);lt.registerClass(Bp);const Wa=Bp;var zC=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(){return ci(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>e&&(e=n),e},t.prototype.brushSelector=function(e,n,a){return a.rect(n.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=Ms(Wa.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(Wa);const FC=zC;var GC=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),WC=function(r){N(t,r);function t(e){var n=r.call(this,e)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new GC},t.prototype.buildPath=function(e,n){var a=n.cx,i=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,c=n.startAngle,f=n.endAngle,h=n.clockwise,v=Math.PI*2,d=h?f-cMath.PI/2&&cs)return!0;s=f}return!1},t.prototype._isOrderDifferentInView=function(e,n){for(var a=n.scale,i=a.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],a.getOrdinalMeta().categories.length-1);o<=s;++o)if(e.ordinalNumbers[o]!==a.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(e,n,a,i){if(!!this._isOrderChangedWithinSameData(e,n,a)){var o=this._dataSort(e,a,n);this._isOrderDifferentInView(o,a)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(e,n,a){var i=n.baseAxis,o=this._dataSort(e,i,function(s){return e.get(e.mapDimension(n.otherAxis.dim),s)});a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},t.prototype.remove=function(e,n){this._clear(this._model),this._removeOnRenderedListener(n)},t.prototype.dispose=function(e,n){this._removeOnRenderedListener(n)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var n=this.group,a=this._data;e&&e.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(i){Pa(i,e,Q(i).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(Ee),pf={cartesian2d:function(r,t){var e=t.width<0?-1:1,n=t.height<0?-1:1;e<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height);var a=r.x+r.width,i=r.y+r.height,o=ao(t.x,r.x),s=io(t.x+t.width,a),l=ao(t.y,r.y),u=io(t.y+t.height,i),c=sa?s:o,t.y=f&&l>i?u:l,t.width=c?0:s-o,t.height=f?0:u-l,e<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),c||f},polar:function(r,t){var e=t.r0<=t.r?1:-1;if(e<0){var n=t.r;t.r=t.r0,t.r0=n}var a=io(t.r,r.r),i=ao(t.r0,r.r0);t.r=a,t.r0=i;var o=a-i<0;if(e<0){var n=t.r;t.r=t.r0,t.r0=n}return o}},gf={cartesian2d:function(r,t,e,n,a,i,o,s,l){var u=new fe({shape:B({},n),z2:1});if(u.__dataIndex=e,u.name="item",i){var c=u.shape,f=a?"height":"width";c[f]=0}return u},polar:function(r,t,e,n,a,i,o,s,l){var u=!a&&l?df:or,c=new u({shape:n,z2:1});c.name="item";var f=Np(a);if(c.calculateTextPosition=HC(f,{isRoundCap:u===df}),i){var h=c.shape,v=a?"r":"endAngle",d={};h[v]=a?0:n.startAngle,d[v]=n[v],(s?pe:Te)(c,{shape:d},i)}return c}};function XC(r,t){var e=r.get("realtimeSort",!0),n=t.getBaseAxis();if(e&&n.type==="category"&&t.type==="cartesian2d")return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}function mf(r,t,e,n,a,i,o,s){var l,u;i?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?pe:Te)(e,{shape:l},t,a,null);var c=t?r.baseAxis.model:null;(o?pe:Te)(e,{shape:u},c,a)}function yf(r,t){for(var e=0;e0?1:-1,o=n.height>0?1:-1;return{x:n.x+i*a/2,y:n.y+o*a/2,width:n.width-i*a,height:n.height-o*a}},polar:function(r,t,e){var n=r.getItemLayout(t);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function qC(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function Np(r){return function(t){var e=t?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+e;default:return n}}}(r)}function Sf(r,t,e,n,a,i,o,s){var l=t.getItemVisual(e,"style");s||r.setShape("r",n.get(["itemStyle","borderRadius"])||0),r.useStyle(l);var u=n.getShallow("cursor");u&&r.attr("cursor",u);var c=s?o?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":o?a.height>=0?"bottom":"top":a.width>=0?"right":"left",f=Nr(n);Br(r,f,{labelFetcher:i,labelDataIndex:e,defaultText:gi(i.getData(),e),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:c});var h=r.getTextContent();if(s&&h){var v=n.get(["label","position"]);r.textConfig.inside=v==="middle"?!0:null,UC(r,v==="outside"?c:v,Np(o),n.get(["label","rotate"]))}jm(h,f,i.getRawValue(e),function(p){return bp(t,p)});var d=n.getModel(["emphasis"]);Ir(r,d.get("focus"),d.get("blurScope"),d.get("disabled")),Sn(r,n),qC(a)&&(r.style.fill="none",r.style.stroke="none",w(r.states,function(p){p.style&&(p.style.fill=p.style.stroke="none")}))}function jC(r,t){var e=r.get(["itemStyle","borderColor"]);if(!e||e==="none")return 0;var n=r.get(["itemStyle","borderWidth"])||0,a=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),i=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,a,i)}var QC=function(){function r(){}return r}(),xf=function(r){N(t,r);function t(e){var n=r.call(this,e)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new QC},t.prototype.buildPath=function(e,n){for(var a=n.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c=0?e:null},30,!1);function JC(r,t,e){for(var n=r.baseDimIdx,a=1-n,i=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,c=0,f=i.length/3;c=s[0]&&t<=s[0]+l[0]&&e>=s[1]&&e<=s[1]+l[1])return o[c]}return-1}function Vp(r,t,e){if(dl(e,"cartesian2d")){var n=t,a=e.getArea();return{x:r?n.x:a.x,y:r?a.y:n.y,width:r?n.width:a.width,height:r?a.height:n.height}}else{var a=e.getArea(),i=t;return{cx:a.cx,cy:a.cy,r0:r?a.r0:i.r0,r:r?a.r:i.r,startAngle:r?i.startAngle:0,endAngle:r?i.endAngle:Math.PI*2}}}function eT(r,t,e){var n=r.type==="polar"?or:fe;return new n({shape:Vp(t,e,r),silent:!0,z2:0})}const tT=$C;function _D(r){r.registerChartView(tT),r.registerSeriesModel(FC),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,j(gd,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,md("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,Op("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},function(a){t.sortInfo&&a.axis.setCategorySortInfo(t.sortInfo)})})}var pa=Math.PI*2,Cf=Math.PI/180;function zp(r,t){return zt(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Fp(r,t){var e=zp(r,t),n=r.get("center"),a=r.get("radius");O(a)||(a=[0,a]),O(n)||(n=[n,n]);var i=ee(e.width,t.getWidth()),o=ee(e.height,t.getHeight()),s=Math.min(i,o),l=ee(a[0],s/2),u=ee(a[1],s/2),c,f,h=r.coordinateSystem;if(h){var v=h.dataToPoint(n);c=v[0]||0,f=v[1]||0}else c=ee(n[0],i)+e.x,f=ee(n[1],o)+e.y;return{cx:c,cy:f,r0:l,r:u}}function rT(r,t,e){t.eachSeriesByType(r,function(n){var a=n.getData(),i=a.mapDimension("value"),o=zp(n,e),s=Fp(n,e),l=s.cx,u=s.cy,c=s.r,f=s.r0,h=-n.get("startAngle")*Cf,v=n.get("minAngle")*Cf,d=0;a.each(i,function(M){!isNaN(M)&&d++});var p=a.getSum(i),g=Math.PI/(p||d)*2,m=n.get("clockwise"),y=n.get("roseType"),_=n.get("stillShowZeroSum"),S=a.getDataExtent(i);S[0]=0;var b=pa,x=0,C=h,T=m?1:-1;if(a.setLayout({viewRect:o,r:c}),a.each(i,function(M,A){var I;if(isNaN(M)){a.setItemLayout(A,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:m,cx:l,cy:u,r0:f,r:y?NaN:c});return}y!=="area"?I=p===0&&_?g:M*g:I=pa/d,Ie?m:g,b=Math.abs(_.label.y-e);if(b>=S.maxY){var x=_.label.x-t-_.len2*a,C=n+_.len,T=Math.abs(x)r.unconstrainedWidth?null:v:null;n.setStyle("width",d)}var p=n.getBoundingRect();i.width=p.width;var g=(n.style.margin||0)+2.1;i.height=p.height+g,i.y-=(i.height-f)/2}}}function oo(r){return r.position==="center"}function oT(r){var t=r.getData(),e=[],n,a,i=!1,o=(r.get("minShowLabelAngle")||0)*aT,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,c=s.x,f=s.y,h=s.height;function v(x){x.ignore=!0}function d(x){if(!x.ignore)return!0;for(var C in x.states)if(x.states[C].ignore===!1)return!0;return!1}t.each(function(x){var C=t.getItemGraphicEl(x),T=C.shape,D=C.getTextContent(),M=C.getTextGuideLine(),A=t.getItemModel(x),I=A.getModel("label"),L=I.get("position")||A.get(["emphasis","label","position"]),P=I.get("distanceToLabelLine"),k=I.get("alignTo"),V=ee(I.get("edgeDistance"),u),$=I.get("bleedMargin"),R=A.getModel("labelLine"),E=R.get("length");E=ee(E,u);var G=R.get("length2");if(G=ee(G,u),Math.abs(T.endAngle-T.startAngle)0?"right":"left":X>0?"left":"right"}var Tt=Math.PI,ft=0,Hr=I.get("rotate");if(oe(Hr))ft=Hr*(Tt/180);else if(L==="center")ft=0;else if(Hr==="radial"||Hr===!0){var Jp=X<0?-Y+Tt:-Y;ft=Jp}else if(Hr==="tangential"&&L!=="outside"&&L!=="outer"){var ur=Math.atan2(X,J);ur<0&&(ur=Tt*2+ur);var eg=J>0;eg&&(ur=Tt+ur),ft=ur-Tt}if(i=!!ft,D.x=_e,D.y=Xe,D.rotation=ft,D.setStyle({verticalAlign:"middle"}),Ct){D.setStyle({align:wt});var mi=D.states.select;mi&&(mi.x+=D.x,mi.y+=D.y)}else{var Ur=D.getBoundingRect().clone();Ur.applyTransform(D.getComputedTransform());var yl=(D.style.margin||0)+2.1;Ur.y-=yl/2,Ur.height+=yl,e.push({label:D,labelLine:M,position:L,len:E,len2:G,minTurnAngle:R.get("minTurnAngle"),maxSurfaceAngle:R.get("maxSurfaceAngle"),surfaceNormal:new Se(X,J),linePoints:ge,textAlign:wt,labelDistance:P,labelAlignTo:k,edgeDistance:V,bleedMargin:$,rect:Ur,unconstrainedWidth:Ur.width,labelStyleWidth:D.style.width})}C.setTextConfig({inside:Ct})}}),!i&&r.get("avoidLabelOverlap")&&iT(e,n,a,l,u,h,c,f);for(var p=0;p0){for(var c=o.getItemLayout(0),f=1;isNaN(c&&c.startAngle)&&f=i.r0}},t.type="pie",t}(Ee);const uT=lT;function Wp(r,t,e){t=O(t)&&{coordDimensions:t}||B({encodeDefine:r.getEncode()},t);var n=r.getSource(),a=sd(n,t).dimensions,i=new od(a,r);return i.initData(n,e),i}var cT=function(){function r(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return r.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},r.prototype.containName=function(t){var e=this._getRawData();return e.indexOfName(t)>=0},r.prototype.indexOfName=function(t){var e=this._getDataWithEncodedVisual();return e.indexOfName(t)},r.prototype.getItemVisual=function(t,e){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,e)},r}();const fT=cT;var vT=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new fT(ne(this.getData,this),ne(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){var e=Wp(this,{coordDimensions:["value"],encodeDefaulter:j(Dy,this)}),n=[];return e.each(e.mapDimension("value"),function(a){n.push(a)}),this.seats=Fg(n,e.hostModel.get("percentPrecision")),e},t.prototype.getDataParams=function(e){var n=r.prototype.getDataParams.call(this,e);return n.percent=this.seats[e],n.$vars.push("percent"),n},t.prototype._defaultLabelLine=function(e){xo(e,"labelLine",["show"]);var n=e.labelLine,a=e.emphasis.labelLine;n.show=n.show&&e.label.show,a.show=a.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(lt);const hT=vT;function dT(r){return{seriesType:r,reset:function(t,e){var n=t.getData();n.filterSelf(function(a){var i=n.mapDimension("value"),o=n.get(i,a);return!(oe(o)&&!isNaN(o)&&o<0)})}}}function SD(r){r.registerChartView(uT),r.registerSeriesModel(hT),d_("pie",r.registerAction),r.registerLayout(j(rT,"pie")),r.registerProcessor(nT("pie")),r.registerProcessor(dT("pie"))}var pT=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e,n){return ci(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return e==null?this.option.large?5e3:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e==null?this.option.large?1e4:this.get("progressiveThreshold"):e},t.prototype.brushSelector=function(e,n,a){return a.point(n.getItemLayout(e))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},t}(lt);const gT=pT;var Hp=4,mT=function(){function r(){}return r}(),yT=function(r){N(t,r);function t(e){var n=r.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.getDefaultShape=function(){return new mT},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,n){var a=n.points,i=n.size,o=this.symbolProxy,s=o.shape,l=e.getContext?e.getContext():e,u=l&&i[0]=0;u--){var c=u*2,f=i[c]-s/2,h=i[c+1]-l/2;if(e>=f&&n>=h&&e<=f+s&&n<=h+l)return u}return-1},t.prototype.contain=function(e,n){var a=this.transformCoordToLocal(e,n),i=this.getBoundingRect();if(e=a[0],n=a[1],i.contain(e,n)){var o=this.hoverDataIdx=this.findDataIndex(e,n);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var n=this.shape,a=n.points,i=n.size,o=i[0],s=i[1],l=1/0,u=1/0,c=-1/0,f=-1/0,h=0;h=0&&(u.dataIndex=f+(t.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}();const ST=_T;var xT=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){var i=e.getData(),o=this._updateSymbolDraw(i,e);o.updateData(i,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,n,a){var i=e.getData(),o=this._updateSymbolDraw(i,e);o.incrementalPrepareUpdate(i),this._finished=!1},t.prototype.incrementalRender=function(e,n,a){this._symbolDraw.incrementalUpdate(e,n.getData(),{clipShape:this._getClipShape(n)}),this._finished=e.end===n.getData().count()},t.prototype.updateTransform=function(e,n,a){var i=e.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=gl("").reset(e,n,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){var n=e.coordinateSystem,a=n&&n.getArea&&n.getArea();return e.get("clip",!0)?a:null},t.prototype._updateSymbolDraw=function(e,n){var a=this._symbolDraw,i=n.pipelineContext,o=i.large;return(!a||o!==this._isLargeDraw)&&(a&&a.remove(),a=this._symbolDraw=o?new ST:new wp,this._isLargeDraw=o,this.group.removeAll()),this.group.add(a.group),a},t.prototype.remove=function(e,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(Ee);const bT=xT;function xD(r){_t($d),r.registerSeriesModel(gT),r.registerChartView(bT),r.registerLayout(gl("scatter"))}var wT=function(){function r(){}return r.prototype.getInitialData=function(t,e){var n,a=e.getComponent("xAxis",this.get("xAxisIndex")),i=e.getComponent("yAxis",this.get("yAxisIndex")),o=a.get("type"),s=i.get("type"),l;o==="category"?(t.layout="horizontal",n=a.getOrdinalMeta(),l=!0):s==="category"?(t.layout="vertical",n=i.getOrdinalMeta(),l=!0):t.layout=t.layout||"horizontal";var u=["x","y"],c=t.layout==="horizontal"?0:1,f=this._baseAxisDim=u[c],h=u[1-c],v=[a,i],d=v[c].get("type"),p=v[1-c].get("type"),g=t.data;if(g&&l){var m=[];w(g,function(S,b){var x;O(S)?(x=S.slice(),S.unshift(b)):O(S.value)?(x=B({},S),x.value=x.value.slice(),S.value.unshift(b)):x=S,m.push(x)}),t.data=m}var y=this.defaultValueDimensions,_=[{name:f,type:Ho(d),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:Ho(p),dimsDef:y.slice()}];return Wp(this,{coordDimensions:_,dimensionsCount:y.length+1,encodeDefaulter:j(Jv,_,this)})},r.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},r}(),CT=["color","borderColor"],TT=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,n,a){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,n,a,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,n):this._incrementalRenderNormal(e,n)},t.prototype.eachRendered=function(e){zn(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var n=e.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(e){var n=e.getData(),a=this._data,i=this.group,o=n.getLayout("isSimpleBox"),s=e.get("clip",!0),l=e.coordinateSystem,u=l.getArea&&l.getArea();this._data||i.removeAll(),n.diff(a).add(function(c){if(n.hasValue(c)){var f=n.getItemLayout(c);if(s&&Df(u,f))return;var h=so(f,c,!0);Te(h,{shape:{points:f.ends}},e,c),lo(h,n,c,o),i.add(h),n.setItemGraphicEl(c,h)}}).update(function(c,f){var h=a.getItemGraphicEl(f);if(!n.hasValue(c)){i.remove(h);return}var v=n.getItemLayout(c);if(s&&Df(u,v)){i.remove(h);return}h?(pe(h,{shape:{points:v.ends}},e,c),Ka(h)):h=so(v),lo(h,n,c,o),i.add(h),n.setItemGraphicEl(c,h)}).remove(function(c){var f=a.getItemGraphicEl(c);f&&i.remove(f)}).execute(),this._data=n},t.prototype._renderLarge=function(e){this._clear(),Mf(e,this.group);var n=e.get("clip",!0)?Rp(e.coordinateSystem,!1,e):null;n?this.group.setClipPath(n):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,n){for(var a=n.getData(),i=a.getLayout("isSimpleBox"),o;(o=e.next())!=null;){var s=a.getItemLayout(o),l=so(s);lo(l,a,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},t.prototype._incrementalRenderLarge=function(e,n){Mf(n,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(Ee),DT=function(){function r(){}return r}(),AT=function(r){N(t,r);function t(e){var n=r.call(this,e)||this;return n.type="normalCandlestickBox",n}return t.prototype.getDefaultShape=function(){return new DT},t.prototype.buildPath=function(e,n){var a=n.points;this.__simpleBox?(e.moveTo(a[4][0],a[4][1]),e.lineTo(a[6][0],a[6][1])):(e.moveTo(a[0][0],a[0][1]),e.lineTo(a[1][0],a[1][1]),e.lineTo(a[2][0],a[2][1]),e.lineTo(a[3][0],a[3][1]),e.closePath(),e.moveTo(a[4][0],a[4][1]),e.lineTo(a[5][0],a[5][1]),e.moveTo(a[6][0],a[6][1]),e.lineTo(a[7][0],a[7][1]))},t}(ye);function so(r,t,e){var n=r.ends;return new AT({shape:{points:e?MT(n,r):n},z2:100})}function Df(r,t){for(var e=!0,n=0;n0?"borderColor":"borderColor0"])||e.get(["itemStyle",r>0?"color":"color0"]),i=e.getModel("itemStyle").getItemStyle(CT);t.useStyle(i),t.style.fill=null,t.style.stroke=a}const LT=TT;var Up=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],e}return t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(e,n,a){var i=n.getItemLayout(e);return i&&a.rect(i.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t}(lt);St(Up,wT,!0);const PT=Up;function kT(r){!r||!O(r.series)||w(r.series,function(t){H(t)&&t.type==="k"&&(t.type="candlestick")})}var RT=["itemStyle","borderColor"],ET=["itemStyle","borderColor0"],OT=["itemStyle","color"],BT=["itemStyle","color0"],NT={seriesType:"candlestick",plan:Gn(),performRawSeries:!0,reset:function(r,t){function e(i,o){return o.get(i>0?OT:BT)}function n(i,o){return o.get(i>0?RT:ET)}if(!t.isSeriesFiltered(r)){var a=r.pipelineContext.large;return!a&&{progress:function(i,o){for(var s;(s=i.next())!=null;){var l=o.getItemModel(s),u=o.getItemLayout(s).sign,c=l.getItemStyle();c.fill=e(u,l),c.stroke=n(u,l)||c.fill;var f=o.ensureUniqueItemVisual(s,"style");B(f,c)}}}}}};const VT=NT;var zT={seriesType:"candlestick",plan:Gn(),reset:function(r){var t=r.coordinateSystem,e=r.getData(),n=FT(r,e),a=0,i=1,o=["x","y"],s=e.getDimensionIndex(e.mapDimension(o[a])),l=z(e.mapDimensionsAll(o[i]),e.getDimensionIndex,e),u=l[0],c=l[1],f=l[2],h=l[3];if(e.setLayout({candleWidth:n,isSimpleBox:n<=1.3}),s<0||l.length<4)return;return{progress:r.pipelineContext.large?d:v};function v(p,g){for(var m,y=g.getStore();(m=p.next())!=null;){var _=y.get(s,m),S=y.get(u,m),b=y.get(c,m),x=y.get(f,m),C=y.get(h,m),T=Math.min(S,b),D=Math.max(S,b),M=k(T,_),A=k(D,_),I=k(x,_),L=k(C,_),P=[];V(P,A,0),V(P,M,1),P.push(R(L),R(A),R(I),R(M)),g.setItemLayout(m,{sign:Lf(y,m,S,b,c),initBaseline:S>b?A[i]:M[i],ends:P,brushRect:$(x,C,_)})}function k(E,G){var Y=[];return Y[a]=G,Y[i]=E,isNaN(G)||isNaN(E)?[NaN,NaN]:t.dataToPoint(Y)}function V(E,G,Y){var X=G.slice(),J=G.slice();X[a]=_a(X[a]+n/2,1,!1),J[a]=_a(J[a]-n/2,1,!0),Y?E.push(X,J):E.push(J,X)}function $(E,G,Y){var X=k(E,Y),J=k(G,Y);return X[a]-=n/2,J[a]-=n/2,{x:X[0],y:X[1],width:n,height:J[1]-X[1]}}function R(E){return E[a]=_a(E[a],1),E}}function d(p,g){for(var m=nt(p.count*4),y=0,_,S=[],b=[],x,C=g.getStore();(x=p.next())!=null;){var T=C.get(s,x),D=C.get(u,x),M=C.get(c,x),A=C.get(f,x),I=C.get(h,x);if(isNaN(T)||isNaN(A)||isNaN(I)){m[y++]=NaN,y+=3;continue}m[y++]=Lf(C,x,D,M,c),S[a]=T,S[i]=A,_=t.dataToPoint(S,null,b),m[y++]=_?_[0]:NaN,m[y++]=_?_[1]:NaN,S[i]=I,_=t.dataToPoint(S,null,b),m[y++]=_?_[1]:NaN}g.setLayout("largePoints",m)}}};function Lf(r,t,e,n,a){var i;return e>n?i=-1:e0?r.get(a,t-1)<=n?1:-1:1,i}function FT(r,t){var e=r.getBaseAxis(),n,a=e.type==="category"?e.getBandWidth():(n=e.getExtent(),Math.abs(n[1]-n[0])/t.count()),i=ee(se(r.get("barMaxWidth"),a),a),o=ee(se(r.get("barMinWidth"),1),a),s=r.get("barWidth");return s!=null?ee(s,a):Math.max(Math.min(a/2,i),o)}const GT=zT;function bD(r){r.registerChartView(LT),r.registerSeriesModel(PT),r.registerPreprocessor(kT),r.registerVisual(VT),r.registerLayout(GT)}var WT=["itemStyle","borderWidth"],Pf=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],uo=new Ha,HT=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){var i=this.group,o=e.getData(),s=this._data,l=e.coordinateSystem,u=l.getBaseAxis(),c=u.isHorizontal(),f=l.master.getRect(),h={ecSize:{width:a.getWidth(),height:a.getHeight()},seriesModel:e,coordSys:l,coordSysExtent:[[f.x,f.x+f.width],[f.y,f.y+f.height]],isHorizontal:c,valueDim:Pf[+c],categoryDim:Pf[1-+c]};return o.diff(s).add(function(v){if(!!o.hasValue(v)){var d=Rf(o,v),p=kf(o,v,d,h),g=Ef(o,h,p);o.setItemGraphicEl(v,g),i.add(g),Bf(g,h,p)}}).update(function(v,d){var p=s.getItemGraphicEl(d);if(!o.hasValue(v)){i.remove(p);return}var g=Rf(o,v),m=kf(o,v,g,h),y=qp(o,m);p&&y!==p.__pictorialShapeStr&&(i.remove(p),o.setItemGraphicEl(v,null),p=null),p?qT(p,h,m):p=Ef(o,h,m,!0),o.setItemGraphicEl(v,p),p.__pictorialSymbolMeta=m,i.add(p),Bf(p,h,m)}).remove(function(v){var d=s.getItemGraphicEl(v);d&&Of(s,v,d.__pictorialSymbolMeta.animationModel,d)}).execute(),this._data=o,this.group},t.prototype.remove=function(e,n){var a=this.group,i=this._data;e.get("animation")?i&&i.eachItemGraphicEl(function(o){Of(i,Q(o).dataIndex,e,o)}):a.removeAll()},t.type="pictorialBar",t}(Ee);function kf(r,t,e,n){var a=r.getItemLayout(t),i=e.get("symbolRepeat"),o=e.get("symbolClip"),s=e.get("symbolPosition")||"start",l=e.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=e.get("symbolPatternSize")||2,f=e.isAnimationEnabled(),h={dataIndex:t,layout:a,itemModel:e,symbolType:r.getItemVisual(t,"symbol")||"circle",style:r.getItemVisual(t,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:e.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:f?e:null,hoverScale:f&&e.get(["emphasis","scale"]),z2:e.getShallow("z",!0)||0};UT(e,i,a,n,h),YT(r,t,a,i,o,h.boundingLength,h.pxSign,c,n,h),$T(e,h.symbolScale,u,n,h);var v=h.symbolSize,d=Ys(e.get("symbolOffset"),v);return XT(e,v,a,i,o,d,s,h.valueLineWidth,h.boundingLength,h.repeatCutLength,n,h),h}function UT(r,t,e,n,a){var i=n.valueDim,o=r.get("symbolBoundingData"),s=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(e[i.wh]<=0),c;if(O(o)){var f=[co(s,o[0])-l,co(s,o[1])-l];f[1]0?1:-1}function co(r,t){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(t)))}function YT(r,t,e,n,a,i,o,s,l,u){var c=l.valueDim,f=l.categoryDim,h=Math.abs(e[f.wh]),v=r.getItemVisual(t,"symbolSize"),d;O(v)?d=v.slice():v==null?d=["100%","100%"]:d=[v,v],d[f.index]=ee(d[f.index],h),d[c.index]=ee(d[c.index],n?h:Math.abs(i)),u.symbolSize=d;var p=u.symbolScale=[d[0]/s,d[1]/s];p[c.index]*=(l.isHorizontal?-1:1)*o}function $T(r,t,e,n,a){var i=r.get(WT)||0;i&&(uo.attr({scaleX:t[0],scaleY:t[1],rotation:e}),uo.updateTransform(),i/=uo.getLineScale(),i*=t[n.valueDim.index]),a.valueLineWidth=i||0}function XT(r,t,e,n,a,i,o,s,l,u,c,f){var h=c.categoryDim,v=c.valueDim,d=f.pxSign,p=Math.max(t[v.index]+s,0),g=p;if(n){var m=Math.abs(l),y=Dr(r.get("symbolMargin"),"15%")+"",_=!1;y.lastIndexOf("!")===y.length-1&&(_=!0,y=y.slice(0,y.length-1));var S=ee(y,t[v.index]),b=Math.max(p+S*2,0),x=_?0:S*2,C=iv(n),T=C?n:Nf((m+x)/b),D=m-T*p;S=D/2/(_?T:Math.max(T-1,1)),b=p+S*2,x=_?0:S*2,!C&&n!=="fixed"&&(T=u?Nf((Math.abs(u)+x)/b):0),g=T*b-x,f.repeatTimes=T,f.symbolMargin=S}var M=d*(g/2),A=f.pathPosition=[];A[h.index]=e[h.wh]/2,A[v.index]=o==="start"?M:o==="end"?l-M:l/2,i&&(A[0]+=i[0],A[1]+=i[1]);var I=f.bundlePosition=[];I[h.index]=e[h.xy],I[v.index]=e[v.xy];var L=f.barRectShape=B({},e);L[v.wh]=d*Math.max(Math.abs(e[v.wh]),Math.abs(A[v.index]+M)),L[h.wh]=e[h.wh];var P=f.clipShape={};P[h.xy]=-e[h.xy],P[h.wh]=c.ecSize[h.wh],P[v.xy]=0,P[v.wh]=e[v.wh]}function Yp(r){var t=r.symbolPatternSize,e=Ft(r.symbolType,-t/2,-t/2,t,t);return e.attr({culling:!0}),e.type!=="image"&&e.setStyle({strokeNoScale:!0}),e}function $p(r,t,e,n){var a=r.__pictorialBundle,i=e.symbolSize,o=e.valueLineWidth,s=e.pathPosition,l=t.valueDim,u=e.repeatTimes||0,c=0,f=i[t.valueDim.index]+o+e.symbolMargin*2;for(ml(r,function(p){p.__pictorialAnimationIndex=c,p.__pictorialRepeatTimes=u,c0:m<0)&&(y=u-1-p),g[l.index]=f*(y-u/2+.5)+s[l.index],{x:g[0],y:g[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation}}}function Xp(r,t,e,n){var a=r.__pictorialBundle,i=r.__pictorialMainPath;i?Tr(i,null,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation},e,n):(i=r.__pictorialMainPath=Yp(e),a.add(i),Tr(i,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:0,scaleY:0,rotation:e.rotation},{scaleX:e.symbolScale[0],scaleY:e.symbolScale[1]},e,n))}function Zp(r,t,e){var n=B({},t.barRectShape),a=r.__pictorialBarRect;a?Tr(a,null,{shape:n},t,e):(a=r.__pictorialBarRect=new fe({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),a.disableMorphing=!0,r.add(a))}function Kp(r,t,e,n){if(e.symbolClip){var a=r.__pictorialClipPath,i=B({},e.clipShape),o=t.valueDim,s=e.animationModel,l=e.dataIndex;if(a)pe(a,{shape:i},s,l);else{i[o.wh]=0,a=new fe({shape:i}),r.__pictorialBundle.setClipPath(a),r.__pictorialClipPath=a;var u={};u[o.wh]=e.clipShape[o.wh],As[n?"updateProps":"initProps"](a,{shape:u},s,l)}}}function Rf(r,t){var e=r.getItemModel(t);return e.getAnimationDelayParams=ZT,e.isAnimationEnabled=KT,e}function ZT(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function KT(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function Ef(r,t,e,n){var a=new de,i=new de;return a.add(i),a.__pictorialBundle=i,i.x=e.bundlePosition[0],i.y=e.bundlePosition[1],e.symbolRepeat?$p(a,t,e):Xp(a,t,e),Zp(a,e,n),Kp(a,t,e,n),a.__pictorialShapeStr=qp(r,e),a.__pictorialSymbolMeta=e,a}function qT(r,t,e){var n=e.animationModel,a=e.dataIndex,i=r.__pictorialBundle;pe(i,{x:e.bundlePosition[0],y:e.bundlePosition[1]},n,a),e.symbolRepeat?$p(r,t,e,!0):Xp(r,t,e,!0),Zp(r,e,!0),Kp(r,t,e,!0)}function Of(r,t,e,n){var a=n.__pictorialBarRect;a&&a.removeTextContent();var i=[];ml(n,function(o){i.push(o)}),n.__pictorialMainPath&&i.push(n.__pictorialMainPath),n.__pictorialClipPath&&(e=null),w(i,function(o){xn(o,{scaleX:0,scaleY:0},e,t,function(){n.parent&&n.parent.remove(n)})}),r.setItemGraphicEl(t,null)}function qp(r,t){return[r.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function ml(r,t,e){w(r.__pictorialBundle.children(),function(n){n!==r.__pictorialBarRect&&t.call(e,n)})}function Tr(r,t,e,n,a,i){t&&r.attr(t),n.symbolClip&&!a?e&&r.attr(e):e&&As[a?"updateProps":"initProps"](r,e,n.animationModel,n.dataIndex,i)}function Bf(r,t,e){var n=e.dataIndex,a=e.itemModel,i=a.getModel("emphasis"),o=i.getModel("itemStyle").getItemStyle(),s=a.getModel(["blur","itemStyle"]).getItemStyle(),l=a.getModel(["select","itemStyle"]).getItemStyle(),u=a.getShallow("cursor"),c=i.get("focus"),f=i.get("blurScope"),h=i.get("scale");ml(r,function(p){if(p instanceof Or){var g=p.style;p.useStyle(B({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},e.style))}else p.useStyle(e.style);var m=p.ensureState("emphasis");m.style=o,h&&(m.scaleX=p.scaleX*1.1,m.scaleY=p.scaleY*1.1),p.ensureState("blur").style=s,p.ensureState("select").style=l,u&&(p.cursor=u),p.z2=e.z2});var v=t.valueDim.posDesc[+(e.boundingLength>0)],d=r.__pictorialBarRect;Br(d,Nr(a),{labelFetcher:t.seriesModel,labelDataIndex:n,defaultText:gi(t.seriesModel.getData(),n),inheritColor:e.style.fill,defaultOpacity:e.style.opacity,defaultOutsidePosition:v}),Ir(r,c,f,i.get("disabled"))}function Nf(r){var t=Math.round(r);return Math.abs(r-t)<1e-4?t:Math.ceil(r)}const jT=HT;var QT=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e.defaultSymbol="roundRect",e}return t.prototype.getInitialData=function(e){return e.stack=null,r.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=Ms(Wa.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(Wa);const JT=QT;function wD(r){r.registerChartView(jT),r.registerSeriesModel(JT),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,j(gd,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,md("pictorialBar"))}function Vf(r){return O(r[0])}function zf(r,t){for(var e=[],n=r.length,a=0;a=0;a--)if(!e[a].many.length){var l=e[s].many;if(l.length<=1)if(s)s=0;else return e;var i=l.length,u=Math.ceil(i/2);e[a].many=l.slice(u,i),e[s].many=l.slice(0,u),s++}return e}var eD={clone:function(r){for(var t=[],e=1-Math.pow(1-r.path.style.opacity,1/r.count),n=0;n0))return;var s=n.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;Vf(r)&&(u=r,c=t),Vf(t)&&(u=t,c=r);function f(m,y,_,S,b){var x=m.many,C=m.one;if(x.length===1&&!b){var T=y?x[0]:C,D=y?C:x[0];if(Lg(T))f({many:[T],one:D},!0,_,S,!0);else{var M=s?te({delay:s(_,S)},l):l;Pg(T,D,M),i(T,D,T,D,M)}}else for(var A=te({dividePath:eD[e],individualDelay:s&&function($,R,E,G){return s($+_,S)}},l),I=y?kg(x,C,A):Rg(C,x,A),L=I.fromIndividuals,P=I.toIndividuals,k=L.length,V=0;Vt.length,v=u?zf(c,u):zf(h?t:r,[h?r:t]),d=0,p=0;pjp))for(var a=n.getIndices(),i=rD(n),o=0;o0&&S.group.traverse(function(x){x instanceof ye&&!x.animators.length&&x.animateFrom({style:{opacity:0}},b)})})}function Gf(r){var t=r.getModel("universalTransition").get("seriesKey");return t||r.id}function Wf(r){return O(r)?r.sort().join(","):r}function Rt(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function iD(r,t){var e=W(),n=W(),a=W();return w(r.oldSeries,function(i,o){var s=r.oldData[o],l=Gf(i),u=Wf(l);n.set(u,s),O(l)&&w(l,function(c){a.set(c,{data:s,key:u})})}),w(t.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.getData(),s=Gf(i),l=Wf(s),u=n.get(l);if(u)e.set(l,{oldSeries:[{divide:Rt(u),data:u}],newSeries:[{divide:Rt(o),data:o}]});else if(O(s)){var c=[];w(s,function(v){var d=n.get(v);d&&c.push({divide:Rt(d),data:d})}),c.length&&e.set(l,{oldSeries:c,newSeries:[{data:o,divide:Rt(o)}]})}else{var f=a.get(s);if(f){var h=e.get(f.key);h||(h={oldSeries:[{data:f.data,divide:Rt(f.data)}],newSeries:[]},e.set(f.key,h)),h.newSeries.push({data:o,divide:Rt(o)})}}}}),e}function Hf(r,t){for(var e=0;e=0&&a.push({data:t.oldData[s],divide:Rt(t.oldData[s]),dim:o.dimension})}),w(ve(r.to),function(o){var s=Hf(e.updatedSeries,o);if(s>=0){var l=e.updatedSeries[s].getData();i.push({data:l,divide:Rt(l),dim:o.dimension})}}),a.length>0&&i.length>0&&Qp(a,i,n)}function CD(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){w(ve(n.seriesTransition),function(a){w(ve(a.to),function(i){for(var o=n.updatedSeries,s=0;s0){if(r<=a)return o;if(r>=i)return s}else{if(r>=a)return o;if(r<=i)return s}else{if(r===a)return o;if(r===i)return s}return(r-a)/l*u+o}function re(r,t){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return z(r)?gg(r).match(/%$/)?parseFloat(r)/100*t:parseFloat(r):r==null?NaN:+r}function de(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),Gc),r=(+r).toFixed(t),e?r:+r}function mg(r){return r.sort(function(t,e){return t-e}),r}function dt(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var t=1,e=0;e<15;e++,t*=10)if(Math.round(r*t)/t===r)return e}return yg(r)}function yg(r){var t=r.toString().toLowerCase(),e=t.indexOf("e"),n=e>0?+t.slice(e+1):0,a=e>0?e:t.length,i=t.indexOf("."),o=i<0?0:a-1-i;return Math.max(0,o-n)}function Wc(r,t){var e=Math.log,n=Math.LN10,a=Math.floor(e(r[1]-r[0])/n),i=Math.round(e(Math.abs(t[1]-t[0]))/n),o=Math.min(Math.max(-a+i,0),20);return isFinite(o)?o:20}function _g(r,t){var e=Ca(r,function(v,d){return v+(isNaN(d)?0:d)},0);if(e===0)return[];for(var n=Math.pow(10,t),a=F(r,function(v){return(isNaN(v)?0:v)/e*n*100}),i=n*100,o=F(a,function(v){return Math.floor(v)}),s=Ca(o,function(v,d){return v+d},0),l=F(a,function(v,d){return v-o[d]});su&&(u=l[c],f=c);++o[f],l[f]=0,++s}return F(o,function(v){return v/n})}function Sg(r,t){var e=Math.max(dt(r),dt(t)),n=r+t;return e>Gc?n:de(n,e)}function Hc(r){var t=Math.PI*2;return(r%t+t)%t}function Da(r){return r>-ml&&r=10&&t++,t}function Uc(r,t){var e=fs(r),n=Math.pow(10,e),a=r/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,r=i*n,e>=-20?+r.toFixed(e<0?-e:0):r}function Bt(r){var t=parseFloat(r);return t==r&&(t!==0||!z(r)||r.indexOf("x")<=0)?t:NaN}function wg(r){return!isNaN(Bt(r))}function Yc(){return Math.round(Math.random()*9)}function $c(r,t){return t===0?r:$c(t,r%t)}function yl(r,t){return r==null?t:t==null?r:r*t/$c(r,t)}function q(r){throw new Error(r)}function _l(r,t,e){return(t-r)*e+r}var Zc="series\0",Xc="\0_ec_\0";function ce(r){return r instanceof Array?r:r==null?[]:[r]}function po(r,t,e){if(r){r[t]=r[t]||{},r.emphasis=r.emphasis||{},r.emphasis[t]=r.emphasis[t]||{};for(var n=0,a=e.length;n=0||i&&ie(i,l)<0)){var u=n.getShallow(l,t);u!=null&&(o[r[s][0]]=u)}}return o}}var Zg=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],Xg=dn(Zg),Kg=function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return Xg(this,t,e)},r}(),J=le(),qg=function(r,t,e,n){if(n){var a=J(n);a.dataIndex=e,a.dataType=t,a.seriesIndex=r,n.type==="group"&&n.traverse(function(i){var o=J(i);o.seriesIndex=r,o.dataIndex=e,o.dataType=t})}},xl=1,bl={},ev=le(),ds=le(),ps=0,Wa=1,Ha=2,We=["emphasis","blur","select"],Ma=["normal","emphasis","blur","select"],jg=10,Qg=9,qt="highlight",pa="downplay",an="select",ga="unselect",on="toggleSelect";function fr(r){return r!=null&&r!=="none"}var wl=new Lc(100);function Cl(r){if(z(r)){var t=wl.get(r);return t||(t=cl(r,-.1),wl.put(r,t)),t}else if(Op(r)){var e=N({},r);return e.colorStops=F(r.colorStops,function(n){return{offset:n.offset,color:cl(n.color,-.1)}}),e}return r}function Ua(r,t,e){r.onHoverStateChange&&(r.hoverState||0)!==e&&r.onHoverStateChange(t),r.hoverState=e}function tv(r){Ua(r,"emphasis",Ha)}function rv(r){r.hoverState===Ha&&Ua(r,"normal",ps)}function gs(r){Ua(r,"blur",Wa)}function nv(r){r.hoverState===Wa&&Ua(r,"normal",ps)}function Jg(r){r.selected=!0}function em(r){r.selected=!1}function Tl(r,t,e){t(r,e)}function xt(r,t,e){Tl(r,t,e),r.isGroup&&r.traverse(function(n){Tl(n,t,e)})}function Al(r,t){switch(t){case"emphasis":r.hoverState=Ha;break;case"normal":r.hoverState=ps;break;case"blur":r.hoverState=Wa;break;case"select":r.selected=!0}}function tm(r,t,e,n){for(var a=r.style,i={},o=0;o=0,i=!1;if(r instanceof ge){var o=ev(r),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(fr(s)||fr(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(i=!0,n=N({},n),u=N({},u),u.fill=s):!fr(u.fill)&&fr(s)?(i=!0,n=N({},n),u=N({},u),u.fill=Cl(s)):!fr(u.stroke)&&fr(l)&&(i||(n=N({},n),u=N({},u)),u.stroke=Cl(l)),n.style=u}}if(n&&n.z2==null){i||(n=N({},n));var f=r.z2EmphasisLift;n.z2=r.z2+(f!=null?f:jg)}return n}function nm(r,t,e){if(e&&e.z2==null){e=N({},e);var n=r.z2SelectLift;e.z2=r.z2+(n!=null?n:Qg)}return e}function am(r,t,e){var n=ie(r.currentStates,t)>=0,a=r.style.opacity,i=n?null:tm(r,["opacity"],t,{opacity:1});e=e||{};var o=e.style||{};return o.opacity==null&&(e=N({},e),o=N({opacity:n?a:i.opacity*.1},o),e.style=o),e}function gi(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return rm(this,r,t,e);if(r==="blur")return am(this,r,e);if(r==="select")return nm(this,r,e)}return e}function im(r){r.stateProxy=gi;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=gi),e&&(e.stateProxy=gi)}function Dl(r,t){!sv(r,t)&&!r.__highByOuter&&xt(r,tv)}function Ml(r,t){!sv(r,t)&&!r.__highByOuter&&xt(r,rv)}function Tr(r,t){r.__highByOuter|=1<<(t||0),xt(r,tv)}function Ar(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&xt(r,rv)}function om(r){xt(r,gs)}function av(r){xt(r,nv)}function iv(r){xt(r,Jg)}function ov(r){xt(r,em)}function sv(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function lv(r){var t=r.getModel(),e=[],n=[];t.eachComponent(function(a,i){var o=ds(i),s=a==="series",l=s?r.getViewOfSeriesModel(i):r.getViewOfComponentModel(i);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){nv(u)}),s&&e.push(i)),o.isBlured=!1}),w(n,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(e,!1,t)})}function go(r,t,e,n){var a=n.getModel();e=e||"coordinateSystem";function i(u,f){for(var c=0;c0){var s={dataIndex:o,seriesIndex:e.seriesIndex};i!=null&&(s.dataType=i),t.push(s)}})}),t}function yo(r,t,e){uv(r,!0),xt(r,im),hm(r,t,e)}function vm(r){uv(r,!1)}function pn(r,t,e,n){n?vm(r):yo(r,t,e)}function hm(r,t,e){var n=J(r);t!=null?(n.focus=t,n.blurScope=e):n.focus&&(n.focus=null)}var Ll=["emphasis","blur","select"],dm={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function gn(r,t,e,n){e=e||"itemStyle";for(var a=0;a0){var c=f.duration,h=f.delay,v=f.easing,d={duration:c,delay:h||0,easing:v,done:i,force:!!i||!!o,setToFinal:!u,scope:r,during:o};s?t.animateFrom(e,d):t.animateTo(e,d)}else t.stopAnimation(),!s&&t.attr(e),o&&o(1),i&&i()}function Se(r,t,e,n,a,i){ys("update",r,t,e,n,a,i)}function Te(r,t,e,n,a,i){ys("enter",r,t,e,n,a,i)}function xr(r){if(!r.__zr)return!0;for(var t=0;tMath.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function Rl(r){return!r.isGroup}function Cm(r){return r.shape!=null}function pv(r,t,e){if(!r||!t)return;function n(o){var s={};return o.traverse(function(l){Rl(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return Cm(o)&&(s.shape=N({},o.shape)),s}var i=n(r);t.traverse(function(o){if(Rl(o)&&o.anid){var s=i[o.anid];if(s){var l=a(o);o.attr(a(s)),Se(o,l,e,J(o).dataIndex)}}})}function gv(r,t){return F(r,function(e){var n=e[0];n=Pa(n,t.x),n=ka(n,t.x+t.width);var a=e[1];return a=Pa(a,t.y),a=ka(a,t.y+t.height),[n,a]})}function Tm(r,t){var e=Pa(r.x,t.x),n=ka(r.x+r.width,t.x+t.width),a=Pa(r.y,t.y),i=ka(r.y+r.height,t.y+t.height);if(n>=e&&i>=a)return{x:e,y:a,width:n-e,height:i-a}}function Za(r,t,e){var n=N({rectHover:!0},t),a=n.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(a.image=r.slice(8),ee(a,e),new In(n)):_s(r.replace("path://",""),n,e,"center")}function Am(r,t,e,n,a){for(var i=0,o=a[a.length-1];i1)return!1;var m=mi(v,d,f,c)/h;return!(m<0||m>1)}function mi(r,t,e,n){return r*n-e*t}function Dm(r){return r<=1e-6&&r>=-1e-6}function Xa(r){var t=r.itemTooltipOption,e=r.componentModel,n=r.itemName,a=z(t)?{formatter:t}:t,i=e.mainType,o=e.componentIndex,s={componentType:i,name:n,$vars:["name"]};s[i+"Index"]=o;var l=r.formatterParamsExtra;l&&w(Ue(l),function(f){gt(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=J(r.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:n,option:ee({content:n,formatterParams:s},a)}}function El(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function On(r,t){if(r)if(O(r))for(var e=0;e=0&&s.push(l)}),s}}function xv(r,t){return K(K({},r,!0),t,!0)}const Um={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},Ym={time:{month:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"],dayOfWeekAbbr:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53CD\u9009"}},toolbox:{brush:{title:{rect:"\u77E9\u5F62\u9009\u62E9",polygon:"\u5708\u9009",lineX:"\u6A2A\u5411\u9009\u62E9",lineY:"\u7EB5\u5411\u9009\u62E9",keep:"\u4FDD\u6301\u9009\u62E9",clear:"\u6E05\u9664\u9009\u62E9"}},dataView:{title:"\u6570\u636E\u89C6\u56FE",lang:["\u6570\u636E\u89C6\u56FE","\u5173\u95ED","\u5237\u65B0"]},dataZoom:{title:{zoom:"\u533A\u57DF\u7F29\u653E",back:"\u533A\u57DF\u7F29\u653E\u8FD8\u539F"}},magicType:{title:{line:"\u5207\u6362\u4E3A\u6298\u7EBF\u56FE",bar:"\u5207\u6362\u4E3A\u67F1\u72B6\u56FE",stack:"\u5207\u6362\u4E3A\u5806\u53E0",tiled:"\u5207\u6362\u4E3A\u5E73\u94FA"}},restore:{title:"\u8FD8\u539F"},saveAsImage:{title:"\u4FDD\u5B58\u4E3A\u56FE\u7247",lang:["\u53F3\u952E\u53E6\u5B58\u4E3A\u56FE\u7247"]}},series:{typeNames:{pie:"\u997C\u56FE",bar:"\u67F1\u72B6\u56FE",line:"\u6298\u7EBF\u56FE",scatter:"\u6563\u70B9\u56FE",effectScatter:"\u6D9F\u6F2A\u6563\u70B9\u56FE",radar:"\u96F7\u8FBE\u56FE",tree:"\u6811\u56FE",treemap:"\u77E9\u5F62\u6811\u56FE",boxplot:"\u7BB1\u578B\u56FE",candlestick:"K\u7EBF\u56FE",k:"K\u7EBF\u56FE",heatmap:"\u70ED\u529B\u56FE",map:"\u5730\u56FE",parallel:"\u5E73\u884C\u5750\u6807\u56FE",lines:"\u7EBF\u56FE",graph:"\u5173\u7CFB\u56FE",sankey:"\u6851\u57FA\u56FE",funnel:"\u6F0F\u6597\u56FE",gauge:"\u4EEA\u8868\u76D8\u56FE",pictorialBar:"\u8C61\u5F62\u67F1\u56FE",themeRiver:"\u4E3B\u9898\u6CB3\u6D41\u56FE",sunburst:"\u65ED\u65E5\u56FE"}},aria:{general:{withTitle:"\u8FD9\u662F\u4E00\u4E2A\u5173\u4E8E\u201C{title}\u201D\u7684\u56FE\u8868\u3002",withoutTitle:"\u8FD9\u662F\u4E00\u4E2A\u56FE\u8868\uFF0C"},series:{single:{prefix:"",withName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\uFF0C\u8868\u793A{seriesName}\u3002",withoutName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\u3002"},multiple:{prefix:"\u5B83\u7531{seriesCount}\u4E2A\u56FE\u8868\u7CFB\u5217\u7EC4\u6210\u3002",withName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A\u8868\u793A{seriesName}\u7684{seriesType}\uFF0C",withoutName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A{seriesType}\uFF0C",separator:{middle:"\uFF1B",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636E\u662F\u2014\u2014",partialData:"\u5176\u4E2D\uFF0C\u524D{displayCnt}\u9879\u662F\u2014\u2014",withName:"{name}\u7684\u6570\u636E\u662F{value}",withoutName:"{value}",separator:{middle:"\uFF0C",end:""}}}};var Ra="ZH",bs="EN",yn=bs,ya={},ws={},bv=fe.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return r.indexOf(Ra)>-1?Ra:yn}():yn;function wv(r,t){r=r.toUpperCase(),ws[r]=new Ce(t),ya[r]=t}function $m(r){if(z(r)){var t=ya[r.toUpperCase()]||{};return r===Ra||r===bs?X(t):K(X(t),X(ya[yn]),!1)}else return K(X(r),X(ya[yn]),!1)}function Zm(r){return ws[r]}function Xm(){return ws[yn]}wv(bs,Um);wv(Ra,Ym);var Cs=1e3,Ts=Cs*60,sn=Ts*60,Fe=sn*24,zl=Fe*365,Jr={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},$n="{yyyy}-{MM}-{dd}",Gl={year:"{yyyy}",month:"{yyyy}-{MM}",day:$n,hour:$n+" "+Jr.hour,minute:$n+" "+Jr.minute,second:$n+" "+Jr.second,millisecond:Jr.none},Si=["year","month","day","hour","minute","second","millisecond"],Cv=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Wt(r,t){return r+="","0000".substr(0,t-r.length)+r}function br(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function Km(r){return r===br(r)}function qm(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function qa(r,t,e,n){var a=yt(r),i=a[As(e)](),o=a[wr(e)]()+1,s=Math.floor((o-1)/3)+1,l=a[ja(e)](),u=a["get"+(e?"UTC":"")+"Day"](),f=a[_n(e)](),c=(f-1)%12+1,h=a[Qa(e)](),v=a[Ja(e)](),d=a[ei(e)](),p=n instanceof Ce?n:Zm(n||bv)||Xm(),m=p.getModel("time"),g=m.get("month"),y=m.get("monthAbbr"),_=m.get("dayOfWeek"),S=m.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,i%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,g[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,Wt(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Wt(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Wt(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,Wt(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,Wt(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,Wt(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,Wt(d,3)).replace(/{S}/g,d+"")}function jm(r,t,e,n,a){var i=null;if(z(e))i=e;else if(U(e))i=e(r.value,t,{level:r.level});else{var o=N({},Jr);if(r.level>0)for(var s=0;s=0;--s)if(l[u]){i=l[u];break}i=i||o.none}if(O(i)){var c=r.level==null?0:r.level>=0?r.level:i.length+r.level;c=Math.min(c,i.length-1),i=i[c]}}return qa(new Date(r.value),i,a,n)}function Tv(r,t){var e=yt(r),n=e[wr(t)]()+1,a=e[ja(t)](),i=e[_n(t)](),o=e[Qa(t)](),s=e[Ja(t)](),l=e[ei(t)](),u=l===0,f=u&&s===0,c=f&&o===0,h=c&&i===0,v=h&&a===1,d=v&&n===1;return d?"year":v?"month":h?"day":c?"hour":f?"minute":u?"second":"millisecond"}function Wl(r,t,e){var n=oe(r)?yt(r):r;switch(t=t||Tv(r,e),t){case"year":return n[As(e)]();case"half-year":return n[wr(e)]()>=6?1:0;case"quarter":return Math.floor((n[wr(e)]()+1)/4);case"month":return n[wr(e)]();case"day":return n[ja(e)]();case"half-day":return n[_n(e)]()/24;case"hour":return n[_n(e)]();case"minute":return n[Qa(e)]();case"second":return n[Ja(e)]();case"millisecond":return n[ei(e)]()}}function As(r){return r?"getUTCFullYear":"getFullYear"}function wr(r){return r?"getUTCMonth":"getMonth"}function ja(r){return r?"getUTCDate":"getDate"}function _n(r){return r?"getUTCHours":"getHours"}function Qa(r){return r?"getUTCMinutes":"getMinutes"}function Ja(r){return r?"getUTCSeconds":"getSeconds"}function ei(r){return r?"getUTCMilliseconds":"getMilliseconds"}function Qm(r){return r?"setUTCFullYear":"setFullYear"}function Av(r){return r?"setUTCMonth":"setMonth"}function Dv(r){return r?"setUTCDate":"setDate"}function Mv(r){return r?"setUTCHours":"setHours"}function Iv(r){return r?"setUTCMinutes":"setMinutes"}function Lv(r){return r?"setUTCSeconds":"setSeconds"}function Pv(r){return r?"setUTCMilliseconds":"setMilliseconds"}function kv(r){if(!wg(r))return z(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function Rv(r,t){return r=(r||"").toLowerCase().replace(/-(.)/g,function(e,n){return n.toUpperCase()}),t&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var ti=Yp;function wo(r,t,e){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(f){return f&&Pn(f)?f:"-"}function i(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=t==="time",s=r instanceof Date;if(o||s){var l=o?yt(r):r;if(isNaN(+l)){if(s)return"-"}else return qa(l,n,e)}if(t==="ordinal")return lo(r)?a(r):oe(r)&&i(r)?r+"":"-";var u=Bt(r);return i(u)?kv(u):lo(r)?a(r):typeof r=="boolean"?r+"":"-"}var Hl=["a","b","c","d","e","f","g"],xi=function(r,t){return"{"+r+(t==null?"":t)+"}"};function Ev(r,t,e){O(t)||(t=[t]);var n=t.length;if(!n)return"";for(var a=t[0].$vars||[],i=0;i':'';var o=e.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 rr(r,t){return t=t||"transparent",z(r)?r:H(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function Ul(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var _a=w,ey=["left","right","top","bottom","width","height"],Zn=[["width","left","right"],["height","top","bottom"]];function Ds(r,t,e,n,a){var i=0,o=0;n==null&&(n=1/0),a==null&&(a=1/0);var s=0;t.eachChild(function(l,u){var f=l.getBoundingRect(),c=t.childAt(u+1),h=c&&c.getBoundingRect(),v,d;if(r==="horizontal"){var p=f.width+(h?-h.x+f.x:0);v=i+p,v>n||l.newline?(i=0,v=p,o+=s+e,s=f.height):s=Math.max(s,f.height)}else{var m=f.height+(h?-h.y+f.y:0);d=o+m,d>a||l.newline?(i+=s+e,o=0,d=m,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),r==="horizontal"?i=v+e:o=d+e)})}var Cr=Ds;Q(Ds,"vertical");Q(Ds,"horizontal");function Ft(r,t,e){e=ti(e||0);var n=t.width,a=t.height,i=re(r.left,n),o=re(r.top,a),s=re(r.right,n),l=re(r.bottom,a),u=re(r.width,n),f=re(r.height,a),c=e[2]+e[0],h=e[1]+e[3],v=r.aspect;switch(isNaN(u)&&(u=n-s-h-i),isNaN(f)&&(f=a-l-c-o),v!=null&&(isNaN(u)&&isNaN(f)&&(v>n/a?u=n*.8:f=a*.8),isNaN(u)&&(u=v*f),isNaN(f)&&(f=u/v)),isNaN(i)&&(i=n-s-u-h),isNaN(o)&&(o=a-l-f-c),r.left||r.right){case"center":i=n/2-u/2-e[3];break;case"right":i=n-u-h;break}switch(r.top||r.bottom){case"middle":case"center":o=a/2-f/2-e[0];break;case"bottom":o=a-f-c;break}i=i||0,o=o||0,isNaN(u)&&(u=n-h-i-(s||0)),isNaN(f)&&(f=a-c-o-(l||0));var d=new Ee(i+e[3],o+e[0],u,f);return d.margin=e,d}function ty(r,t,e,n,a,i){var o=!a||!a.hv||a.hv[0],s=!a||!a.hv||a.hv[1],l=a&&a.boundingMode||"all";if(i=i||r,i.x=r.x,i.y=r.y,!o&&!s)return!1;var u;if(l==="raw")u=r.type==="group"?new Ee(0,0,+t.width||0,+t.height||0):r.getBoundingRect();else if(u=r.getBoundingRect(),r.needLocalTransform()){var f=r.getLocalTransform();u=u.clone(),u.applyTransform(f)}var c=Ft(ee({width:u.width,height:u.height},t),e,n),h=o?c.x-u.x:0,v=s?c.y-u.y:0;return l==="raw"?(i.x=h,i.y=v):(i.x+=h,i.y+=v),i===r&&r.markRedraw(),!0}function Sn(r){var t=r.layoutMode||r.constructor.layoutMode;return H(t)?t:t?{type:t}:null}function Dr(r,t,e){var n=e&&e.ignoreSize;!O(n)&&(n=[n,n]);var a=o(Zn[0],0),i=o(Zn[1],1);u(Zn[0],r,a),u(Zn[1],r,i);function o(f,c){var h={},v=0,d={},p=0,m=2;if(_a(f,function(_){d[_]=r[_]}),_a(f,function(_){s(t,_)&&(h[_]=d[_]=t[_]),l(h,_)&&v++,l(d,_)&&p++}),n[c])return l(t,f[1])?d[f[2]]=null:l(t,f[2])&&(d[f[1]]=null),d;if(p===m||!v)return d;if(v>=m)return h;for(var g=0;g=0;l--)s=K(s,a[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(e,n){var a=e+"Index",i=e+"Id";return En(this.ecModel,e,{index:this.get(a,!0),id:this.get(i,!0)},n)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0}(),t}(Ce);Jc(Rr,Ce);Ga(Rr);Wm(Rr);Hm(Rr,ay);function ay(r){var t=[];return w(Rr.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=F(t,function(e){return rt(e).main}),r!=="dataset"&&ie(t,"dataset")<=0&&t.unshift("dataset"),t}const ae=Rr;var Ov="";typeof navigator<"u"&&(Ov=navigator.platform||"");var cr="rgba(0, 0, 0, 0.2)";const iy={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:cr,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:cr,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:cr,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:cr,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:cr,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:cr,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Ov.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var Nv=W(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),Ye="original",Pe="arrayRows",$e="objectRows",ut="keyedColumns",Nt="typedArray",Bv="unknown",ot="column",Er="row",we={Must:1,Might:2,Not:3},Vv=le();function oy(r){Vv(r).datasetMap=W()}function Fv(r,t,e){var n={},a=Ms(t);if(!a||!r)return n;var i=[],o=[],s=t.ecModel,l=Vv(s).datasetMap,u=a.uid+"_"+e.seriesLayoutBy,f,c;r=r.slice(),w(r,function(p,m){var g=H(p)?p:r[m]={name:p};g.type==="ordinal"&&f==null&&(f=m,c=d(g)),n[g.name]=[]});var h=l.get(u)||l.set(u,{categoryWayDim:c,valueWayDim:0});w(r,function(p,m){var g=p.name,y=d(p);if(f==null){var _=h.valueWayDim;v(n[g],_,y),v(o,_,y),h.valueWayDim+=y}else if(f===m)v(n[g],0,y),v(i,0,y);else{var _=h.categoryWayDim;v(n[g],_,y),v(o,_,y),h.categoryWayDim+=y}});function v(p,m,g){for(var y=0;yt)return r[n];return r[e-1]}function Wv(r,t,e,n,a,i,o){i=i||r;var s=t(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(a))return u[a];var f=o==null||!n?e:vy(n,o);if(f=f||e,!(!f||!f.length)){var c=f[l];return a&&(u[a]=c),s.paletteIdx=(l+1)%f.length,c}}function hy(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var Xn,Fr,Zl,Xl="\0_ec_inner",dy=1,Hv=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e,n,a,i,o,s){i=i||{},this.option=null,this._theme=new Ce(i),this._locale=new Ce(o),this._optionManager=s},t.prototype.setOption=function(e,n,a){var i=jl(n);this._optionManager.setOption(e,a,i),this._resetOption(null,i)},t.prototype.resetOption=function(e,n){return this._resetOption(e,jl(n))},t.prototype._resetOption=function(e,n){var a=!1,i=this._optionManager;if(!e||e==="recreate"){var o=i.mountOption(e==="recreate");!this.option||e==="recreate"?Zl(this,o):(this.restoreData(),this._mergeOption(o,n)),a=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var s=i.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,n))}if(!e||e==="recreate"||e==="media"){var l=i.getMediaOption(this);l.length&&w(l,function(u){a=!0,this._mergeOption(u,n)},this)}return a},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,n){var a=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=W(),u=n&&n.replaceMergeMainTypeMap;oy(this),w(e,function(c,h){c!=null&&(ae.hasClass(h)?h&&(s.push(h),l.set(h,!0)):a[h]=a[h]==null?X(c):K(a[h],c,!0))}),u&&u.each(function(c,h){ae.hasClass(h)&&!l.get(h)&&(s.push(h),l.set(h,!0))}),ae.topologicalTravel(s,ae.getAllClassMainTypes(),f,this);function f(c){var h=fy(this,c,ce(e[c])),v=i.get(c),d=v?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",p=Tg(v,h,d);Rg(p,c,ae),a[c]=null,i.set(c,null),o.set(c,0);var m=[],g=[],y=0,_;w(p,function(S,b){var x=S.existing,C=S.newOption;if(!C)x&&(x.mergeOption({},this),x.optionUpdated({},!1));else{var T=c==="series",A=ae.getClass(c,S.keyInfo.subType,!T);if(!A)return;if(c==="tooltip"){if(_)return;_=!0}if(x&&x.constructor===A)x.name=S.keyInfo.name,x.mergeOption(C,this),x.optionUpdated(C,!1);else{var M=N({componentIndex:b},S.keyInfo);x=new A(C,this,this,M),N(x,M),S.brandNew&&(x.__requireNewView=!0),x.init(C,this,this),x.optionUpdated(null,!0)}}x?(m.push(x.option),g.push(x),y++):(m.push(void 0),g.push(void 0))},this),a[c]=m,i.set(c,g),o.set(c,y),c==="series"&&Xn(this)}this._seriesIndices||Xn(this)},t.prototype.getOption=function(){var e=X(this.option);return w(e,function(n,a){if(ae.hasClass(a)){for(var i=ce(n),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!hn(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,e[a]=i}}),delete e[Xl],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,n){var a=this._componentsMap.get(e);if(a){var i=a[n||0];if(i)return i;if(n==null){for(var o=0;o=t:e==="max"?r<=t:r===t}function Ty(r,t){return r.join(",")===t.join(",")}const Ay=xy;var Xe=w,xn=H,Ql=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function wi(r){var t=r&&r.itemStyle;if(!!t)for(var e=0,n=Ql.length;e=0;m--){var g=r[m];if(s||(d=g.data.rawIndexOf(g.stackedByDimension,v)),d>=0){var y=g.data.getByRawIndex(g.stackResultDimension,d);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&h>=0&&y>0||l==="samesign"&&h<=0&&y<0){h=Sg(h,y),p=y;break}}}return n[0]=h,n[1]=p,n})})}var ni=function(){function r(t){this.data=t.data||(t.sourceFormat===ut?{}:[]),this.sourceFormat=t.sourceFormat||Bv,this.seriesLayoutBy=t.seriesLayoutBy||ot,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;np&&(p=_)}v[0]=d,v[1]=p}},a=function(){return this._data?this._data.length/this._dimSize:0};iu=(t={},t[Pe+"_"+ot]={pure:!0,appendData:i},t[Pe+"_"+Er]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[$e]={pure:!0,appendData:i},t[ut]={pure:!0,appendData:function(o){var s=this._data;w(o,function(l,u){for(var f=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)f.push(l[c])})}},t[Ye]={appendData:i},t[Nt]={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=0&&(p=o.interpolatedValue[m])}return p!=null?p+"":""})}},r.prototype.getRawValue=function(t,e){return Mr(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,n){},r}();function uu(r){var t,e;return H(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function ln(r){return new Uy(r)}var Uy=function(){function r(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return r.prototype.perform=function(t){var e=this._upstream,n=t&&t.skip;if(this._dirty&&e){var a=this.context;a.data=a.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(i="reset");function f(y){return!(y>=1)&&(y=1),y}var c;(this._dirty||i==="reset")&&(this._dirty=!1,c=this._doReset(n)),this._modBy=l,this._modDataCount=u;var h=t&&t.step;if(e?this._dueEnd=e._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var v=this._dueIndex,d=Math.min(h!=null?this._dueIndex+h:1/0,this._dueEnd);if(!n&&(c||v1&&n>0?s:o}};return i;function o(){return t=r?null:lt},gte:function(r,t){return r>=t}},$y=function(){function r(t,e){if(!oe(e)){var n="";q(n)}this._opFn=th[t],this._rvalFloat=Bt(e)}return r.prototype.evaluate=function(t){return oe(t)?this._opFn(t,this._rvalFloat):this._opFn(Bt(t),this._rvalFloat)},r}(),rh=function(){function r(t,e){var n=t==="desc";this._resultLT=n?1:-1,e==null&&(e=n?"min":"max"),this._incomparable=e==="min"?-1/0:1/0}return r.prototype.evaluate=function(t,e){var n=oe(t)?t:Bt(t),a=oe(e)?e:Bt(e),i=isNaN(n),o=isNaN(a);if(i&&(n=this._incomparable),o&&(a=this._incomparable),i&&o){var s=z(t),l=z(e);s&&(n=l?t:0),l&&(a=s?e:0)}return na?-this._resultLT:0},r}(),Zy=function(){function r(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=Bt(e)}return r.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(e=Bt(t)===this._rvalFloat)}return this._isEQ?e:!e},r}();function Xy(r,t){return r==="eq"||r==="ne"?new Zy(r==="eq",t):gt(th,r)?new $y(r,t):null}var Ky=function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(t){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(t){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(t,e){},r.prototype.retrieveValueFromItem=function(t,e){},r.prototype.convertValue=function(t,e){return Sa(t,e)},r}();function qy(r,t){var e=new Ky,n=r.data,a=e.sourceFormat=r.sourceFormat,i=r.startIndex,o="";r.seriesLayoutBy!==ot&&q(o);var s=[],l={},u=r.dimensionsDefine;if(u)w(u,function(p,m){var g=p.name,y={index:m,name:g,displayName:p.displayName};if(s.push(y),g!=null){var _="";gt(l,g)&&q(_),l[g]=y}});else for(var f=0;f65535?a0:i0}function vr(){return[1/0,-1/0]}function o0(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function vu(r,t,e,n,a){var i=ih[e||"float"];if(a){var o=r[t],s=o&&o.length;if(s!==n){for(var l=new i(n),u=0;um[1]&&(m[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(t,e,n){for(var a=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=F(o,function(y){return y.property}),f=0;fg[1]&&(g[1]=m)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=e,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(t,e){if(!(e>=0&&e=0&&e=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(n!=null&&nt)i=o-1;else return o}return-1},r.prototype.indicesOfNearest=function(t,e,n){var a=this._chunks,i=a[t],o=[];if(!i)return o;n==null&&(n=1/0);for(var s=1/0,l=-1,u=0,f=0,c=this.count();f=0&&l<0)&&(s=d,l=v,u=0),v===l&&(o[u++]=f))}return o.length=u,o},r.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,a=this._count;if(n===Array){t=new n(a);for(var i=0;i=c&&y<=h||isNaN(y))&&(l[u++]=p),p++}d=!0}else if(i===2){for(var m=v[a[0]],_=v[a[1]],S=t[a[1]][0],b=t[a[1]][1],g=0;g=c&&y<=h||isNaN(y))&&(x>=S&&x<=b||isNaN(x))&&(l[u++]=p),p++}d=!0}}if(!d)if(i===1)for(var g=0;g=c&&y<=h||isNaN(y))&&(l[u++]=C)}else for(var g=0;gt[M][1])&&(T=!1)}T&&(l[u++]=e.getRawIndex(g))}return ug[1]&&(g[1]=m)}}}},r.prototype.lttbDownSample=function(t,e){var n=this.clone([t],!0),a=n._chunks,i=a[t],o=this.count(),s=0,l=Math.floor(1/e),u=this.getRawIndex(0),f,c,h,v=new(Gr(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));v[s++]=u;for(var d=1;df&&(f=c,h=S)}D>0&&Df-d&&(l=f-d,s.length=l);for(var p=0;pc[1]&&(c[1]=g),h[v++]=y}return i._count=v,i._indices=h,i._updateGetRawIdx(),i},r.prototype.each=function(t,e){if(!!this._count)for(var n=t.length,a=this._chunks,i=0,o=this.count();il&&(l=c)}return o=[s,l],this._extent[t]=o,o},r.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],a=this._chunks,i=0;i=0?this._indices[t]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function t(e,n,a,i){return Sa(e[i],this._dimensions[i])}Ai={arrayRows:t,objectRows:function(e,n,a,i){return Sa(e[n],this._dimensions[i])},keyedColumns:t,original:function(e,n,a,i){var o=e&&(e.value==null?e:e.value);return Sa(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(e,n,a,i){return e[i]}}}(),r}(),oh=function(){function r(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,e=this._getUpstreamSourceManagers(),n=!!e.length,a,i;if(Kn(t)){var o=t,s=void 0,l=void 0,u=void 0;if(n){var f=e[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,i=[f._getVersionSign()]}else s=o.get("data",!0),l=Ge(s)?Nt:Ye,i=[];var c=this._getSourceMetaRawOption()||{},h=u&&u.metaRawOption||{},v=se(c.seriesLayoutBy,h.seriesLayoutBy)||null,d=se(c.sourceHeader,h.sourceHeader),p=se(c.dimensions,h.dimensions),m=v!==h.seriesLayoutBy||!!d!=!!h.sourceHeader||p;a=m?[To(s,{seriesLayoutBy:v,sourceHeader:d,dimensions:p},l)]:[]}else{var g=t;if(n){var y=this._applyTransform(e);a=y.sourceList,i=y.upstreamSignList}else{var _=g.get("source",!0);a=[To(_,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(a,i)},r.prototype._applyTransform=function(t){var e=this._sourceHost,n=e.get("transform",!0),a=e.get("fromTransformResult",!0);if(a!=null){var i="";t.length!==1&&du(i)}var o,s=[],l=[];return w(t,function(u){u.prepareSource();var f=u.getSource(a||0),c="";a!=null&&!f&&du(c),s.push(f),l.push(u._getVersionSign())}),n?o=r0(n,s,{datasetIndex:e.componentIndex}):a!=null&&(o=[Ny(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e1||e>0&&!r.noHeader;return w(r.blocks,function(a){var i=fh(a);i>=t&&(t=i+ +(n&&(!i||Do(a)&&!a.noHeader)))}),t}return 0}function u0(r,t,e,n){var a=t.noHeader,i=c0(fh(t)),o=[],s=t.blocks||[];st(!s||O(s)),s=s||[];var l=r.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(gt(u,l)){var f=new rh(u[l],null);s.sort(function(d,p){return f.evaluate(d.sortParam,p.sortParam)})}else l==="seriesDesc"&&s.reverse()}w(s,function(d,p){var m=t.valueFormatter,g=uh(d)(m?N(N({},r),{valueFormatter:m}):r,d,p>0?i.html:0,n);g!=null&&o.push(g)});var c=r.renderMode==="richText"?o.join(i.richText):Mo(o.join(""),a?e:i.html);if(a)return c;var h=wo(t.header,"ordinal",r.useUTC),v=lh(n,r.renderMode).nameStyle;return r.renderMode==="richText"?ch(r,h,v)+i.richText+c:Mo('
'+Ve(h)+"
"+c,e)}function f0(r,t,e,n){var a=r.renderMode,i=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=r.useUTC,f=t.valueFormatter||r.valueFormatter||function(S){return S=O(S)?S:[S],F(S,function(b,x){return wo(b,O(v)?v[x]:v,u)})};if(!(i&&o)){var c=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",a),h=i?"":wo(l,"ordinal",u),v=t.valueType,d=o?[]:f(t.value),p=!s||!i,m=!s&&i,g=lh(n,a),y=g.nameStyle,_=g.valueStyle;return a==="richText"?(s?"":c)+(i?"":ch(r,h,y))+(o?"":d0(r,d,p,m,_)):Mo((s?"":c)+(i?"":v0(h,!s,y))+(o?"":h0(d,p,m,_)),e)}}function pu(r,t,e,n,a,i){if(!!r){var o=uh(r),s={useUTC:a,renderMode:e,orderMode:n,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function c0(r){return{html:s0[r],richText:l0[r]}}function Mo(r,t){var e='
',n="margin: "+t+"px 0 0";return'
'+r+e+"
"}function v0(r,t,e){var n=t?"margin-left:2px":"";return''+Ve(r)+""}function h0(r,t,e,n){var a=e?"10px":"20px",i=t?"float:right;margin-left:"+a:"";return r=O(r)?r:[r],''+F(r,function(o){return Ve(o)}).join("  ")+""}function ch(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function d0(r,t,e,n,a){var i=[a],o=n?10:20;return e&&i.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(O(t)?t.join(" "):t,i)}function p0(r,t){var e=r.getData().getItemVisual(t,"style"),n=e[r.visualDrawType];return rr(n)}function vh(r,t){var e=r.get("padding");return e!=null?e:t==="richText"?[8,10]:10}var Di=function(){function r(){this.richTextStyles={},this._nextStyleNameId=Yc()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,n){var a=n==="richText"?this._generateStyleName():null,i=Jm({color:e,type:t,renderMode:n,markerId:a});return z(i)?i:(this.richTextStyles[a]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(t,e){var n={};O(e)?w(e,function(i){return N(n,i)}):N(n,e);var a=this._generateStyleName();return this.richTextStyles[a]=n,"{"+a+"|"+t+"}"},r}();function g0(r){var t=r.series,e=r.dataIndex,n=r.multipleSeries,a=t.getData(),i=a.mapDimensionsAll("defaultedTooltip"),o=i.length,s=t.getRawValue(e),l=O(s),u=p0(t,e),f,c,h,v;if(o>1||l&&!o){var d=m0(s,t,e,i,u);f=d.inlineValues,c=d.inlineValueTypes,h=d.blocks,v=d.inlineValues[0]}else if(o){var p=a.getDimensionInfo(i[0]);v=f=Mr(a,e,i[0]),c=p.type}else v=f=l?s[0]:s;var m=cs(t),g=m&&t.name||"",y=a.getName(e),_=n?g:y;return bn("section",{header:g,noHeader:n||!m,sortParam:v,blocks:[bn("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Pn(_),value:f,valueType:c})].concat(h||[])})}function m0(r,t,e,n,a){var i=t.getData(),o=Ca(r,function(c,h,v){var d=i.getDimensionInfo(v);return c=c||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];n.length?w(n,function(c){f(Mr(i,e,c),c)}):w(r,f);function f(c,h){var v=i.getDimensionInfo(h);!v||v.otherDims.tooltip===!1||(o?u.push(bn("nameValue",{markerType:"subItem",markerColor:a,name:v.displayName,value:c,valueType:v.type})):(s.push(c),l.push(v.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var At=le();function qn(r,t){return r.getName(t)||r.getId(t)}var xa="__universalTransitionEnabled",ii=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return t.prototype.init=function(e,n,a){this.seriesIndex=this.componentIndex,this.dataTask=ln({count:_0,reset:S0}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,a);var i=At(this).sourceManager=new oh(this);i.prepareSource();var o=this.getInitialData(e,a);mu(o,this),this.dataTask.context.data=o,At(this).dataBeforeProcessed=o,gu(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,n){var a=Sn(this),i=a?ri(e):{},o=this.subType;ae.hasClass(o)&&(o+="Series"),K(e,n.getTheme().get(this.subType)),K(e,this.getDefaultOption()),po(e,"label",["show"]),this.fillDataTextStyle(e.data),a&&Dr(e,i,a)},t.prototype.mergeOption=function(e,n){e=K(this.option,e,!0),this.fillDataTextStyle(e.data);var a=Sn(this);a&&Dr(this.option,e,a);var i=At(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(e,n);mu(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,At(this).dataBeforeProcessed=o,gu(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!Ge(e))for(var n=["show"],a=0;athis.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,n,a){var i=this.ecModel,o=Is.prototype.getColorFromPalette.call(this,e,n,a);return o||(o=i.getColorFromPalette(e,n,a)),o},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,n){this._innerSelect(this.getData(n),e)},t.prototype.unselect=function(e,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=0&&a.push(o)}return a},t.prototype.isSelected=function(e,n){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(n);return(a==="all"||a[qn(i,e)])&&!i.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[xa])return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,n){var a,i,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){H(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f0&&this._innerSelect(e,n)}},t.registerClass=function(e){return ae.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"}(),t}(ae);St(ii,Hy);St(ii,Is);Jc(ii,ae);function gu(r){var t=r.name;cs(r)||(r.name=y0(r)||t)}function y0(r){var t=r.getRawData(),e=t.mapDimensionsAll("seriesName"),n=[];return w(e,function(a){var i=t.getDimensionInfo(a);i.displayName&&n.push(i.displayName)}),n.join(" ")}function _0(r){return r.model.getRawData().count()}function S0(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),x0}function x0(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function mu(r,t){w($p(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,Q(b0,t))})}function b0(r,t){var e=Io(r);return e&&e.setOutputEnd((t||this).count()),t}function Io(r){var t=(r.ecModel||{}).scheduler,e=t&&t.getPipeline(r.uid);if(e){var n=e.currentTask;if(n){var a=n.agentStubMap;a&&(n=a.get(r.uid))}return n}}const lt=ii;var Os=function(){function r(){this.group=new _e,this.uid=Vn("viewComponent")}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,a){},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,a){},r.prototype.updateLayout=function(t,e,n,a){},r.prototype.updateVisual=function(t,e,n,a){},r.prototype.toggleBlurSeries=function(t,e,n){},r.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},r}();hs(Os);Ga(Os);const He=Os;function Fn(){var r=le();return function(t){var e=r(t),n=t.pipelineContext,a=!!e.large,i=!!e.progressiveRender,o=e.large=!!(n&&n.large),s=e.progressiveRender=!!(n&&n.progressiveRender);return(a!==o||i!==s)&&"reset"}}var hh=le(),w0=Fn(),Ns=function(){function r(){this.group=new _e,this.uid=Vn("viewChart"),this.renderTask=ln({plan:C0,reset:T0}),this.renderTask.context={view:this}}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,a){},r.prototype.highlight=function(t,e,n,a){var i=t.getData(a&&a.dataType);!i||_u(i,a,"emphasis")},r.prototype.downplay=function(t,e,n,a){var i=t.getData(a&&a.dataType);!i||_u(i,a,"normal")},r.prototype.remove=function(t,e){this.group.removeAll()},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,a){this.render(t,e,n,a)},r.prototype.updateLayout=function(t,e,n,a){this.render(t,e,n,a)},r.prototype.updateVisual=function(t,e,n,a){this.render(t,e,n,a)},r.prototype.eachRendered=function(t){On(this.group,t)},r.markUpdateMethod=function(t,e){hh(t).updateMethod=e},r.protoInitialize=function(){var t=r.prototype;t.type="chart"}(),r}();function yu(r,t,e){r&&_o(r)&&(t==="emphasis"?Tr:Ar)(r,e)}function _u(r,t,e){var n=tr(r,t),a=t&&t.highlightKey!=null?pm(t.highlightKey):null;n!=null?w(ce(n),function(i){yu(r.getItemGraphicEl(i),e,a)}):r.eachItemGraphicEl(function(i){yu(i,e,a)})}hs(Ns);Ga(Ns);function C0(r){return w0(r.model)}function T0(r){var t=r.model,e=r.ecModel,n=r.api,a=r.payload,i=t.pipelineContext.progressiveRender,o=r.view,s=a&&hh(a).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,e,n,a),A0[l]}var A0={incrementalPrepareRender:{progress:function(r,t){t.view.incrementalRender(r,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(r,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};const ze=Ns;var Ea="\0__throttleOriginMethod",Su="\0__throttleRate",xu="\0__throttleType";function Bs(r,t,e){var n,a=0,i=0,o=null,s,l,u,f;t=t||0;function c(){i=new Date().getTime(),o=null,r.apply(l,u||[])}var h=function(){for(var v=[],d=0;d=0?c():o=setTimeout(c,-s),a=n};return h.clear=function(){o&&(clearTimeout(o),o=null)},h.debounceNextCall=function(v){f=v},h}function dh(r,t,e,n){var a=r[t];if(!!a){var i=a[Ea]||a,o=a[xu],s=a[Su];if(s!==e||o!==n){if(e==null||!n)return r[t]=i;a=r[t]=Bs(i,e,n==="debounce"),a[Ea]=i,a[xu]=n,a[Su]=e}return a}}function Lo(r,t){var e=r[t];e&&e[Ea]&&(e.clear&&e.clear(),r[t]=e[Ea])}var bu=le(),wu={itemStyle:dn(Sv,!0),lineStyle:dn(_v,!0)},D0={lineStyle:"stroke",itemStyle:"fill"};function ph(r,t){var e=r.visualStyleMapper||wu[t];return e||(console.warn("Unkown style type '"+t+"'."),wu.itemStyle)}function gh(r,t){var e=r.visualDrawType||D0[t];return e||(console.warn("Unkown style type '"+t+"'."),"fill")}var M0={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",a=r.getModel(n),i=ph(r,n),o=i(a),s=a.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var l=gh(r,n),u=o[l],f=U(u)?u:null,c=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||c){var h=r.getColorFromPalette(r.name,null,t.getSeriesCount());o[l]||(o[l]=h,e.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||U(o.fill)?h:o.fill,o.stroke=o.stroke==="auto"||U(o.stroke)?h:o.stroke}if(e.setVisual("style",o),e.setVisual("drawType",l),!t.isSeriesFiltered(r)&&f)return e.setVisual("colorFromPalette",!1),{dataEach:function(v,d){var p=r.getDataParams(d),m=N({},o);m[l]=f(p),v.setItemVisual(d,"style",m)}}}},Wr=new Ce,I0={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",a=ph(r,n),i=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){Wr.option=l[n];var u=a(Wr),f=o.ensureUniqueItemVisual(s,"style");N(f,u),Wr.option.decal&&(o.setItemVisual(s,"decal",Wr.option.decal),Wr.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},L0={performRawSeries:!0,overallReset:function(r){var t=W();r.eachSeries(function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var a=e.type+"-"+n,i=t.get(a);i||(i={},t.set(a,i)),bu(e).scope=i}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var n=e.getRawData(),a={},i=e.getData(),o=bu(e).scope,s=e.visualStyleAccessPath||"itemStyle",l=gh(e,s);i.each(function(u){var f=i.getRawIndex(u);a[f]=u}),n.each(function(u){var f=a[u],c=i.getItemVisual(f,"colorFromPalette");if(c){var h=i.ensureUniqueItemVisual(f,"style"),v=n.getName(u)||u+"",d=n.count();h[l]=e.getColorFromPalette(v,o,d)}})}})}},jn=Math.PI;function P0(r,t){t=t||{},ee(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var e=new _e,n=new pe({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(n);var a=new be({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 pe({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});e.add(i);var o;return t.showSpinner&&(o=new ls({shape:{startAngle:-jn/2,endAngle:-jn/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:jn*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:jn*3/2}).delay(300).start("circularInOut"),e.add(o)),e.resize=function(){var s=a.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(r.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),f=r.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:f}),i.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},e.resize(),e}var k0=function(){function r(t,e,n,a){this._stageTaskMap=W(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=n.concat(a)}return r.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(n){var a=n.overallTask;a&&a.dirty()})},r.prototype.getPerformArgs=function(t,e){if(!!t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),a=n.context,i=!e&&n.progressiveEnabled&&(!a||a.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=i?n.step:null,s=a&&a.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},r.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),a=t.getData(),i=a.count(),o=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,s=t.get("large")&&i>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?i:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=W();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}),e._pipe(a,a.dataTask)})},r.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;w(this._allHandlers,function(a){var i=t.get(a.uid)||t.set(a.uid,{}),o="";st(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,i,e,n),a.overallReset&&this._createOverallStageTask(a,i,e,n)},this)},r.prototype.prepareView=function(t,e,n,a){var i=t.renderTask,o=i.context;o.model=e,o.ecModel=n,o.api=a,i.__block=!t.incrementalPrepareRender,this._pipe(e,i)},r.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},r.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},r.prototype._performStageTasks=function(t,e,n,a){a=a||{};var i=!1,o=this;w(t,function(l,u){if(!(a.visualType&&a.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),c=f.seriesTaskMap,h=f.overallTask;if(h){var v,d=h.agentStubMap;d.each(function(m){s(a,m)&&(m.dirty(),v=!0)}),v&&h.dirty(),o.updatePayload(h,n);var p=o.getPerformArgs(h,a.block);d.each(function(m){m.perform(p)}),h.perform(p)&&(i=!0)}else c&&c.each(function(m,g){s(a,m)&&m.dirty();var y=o.getPerformArgs(m,a.block);y.skip=!l.performRawSeries&&e.isSeriesFiltered(m.context.model),o.updatePayload(m,n),m.perform(y)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},r.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(n){e=n.dataTask.perform()||e}),this.unfinished=e||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},r.prototype.updatePayload=function(t,e){e!=="remain"&&(t.context.payload=e)},r.prototype._createSeriesStageTask=function(t,e,n,a){var i=this,o=e.seriesTaskMap,s=e.seriesTaskMap=W(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(f):l?n.eachRawSeriesByType(l,f):u&&u(n,a).each(f);function f(c){var h=c.uid,v=s.set(h,o&&o.get(h)||ln({plan:B0,reset:V0,count:z0}));v.context={model:c,ecModel:n,api:a,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(c,v)}},r.prototype._createOverallStageTask=function(t,e,n,a){var i=this,o=e.overallTask=e.overallTask||ln({reset:R0});o.context={ecModel:n,api:a,overallReset:t.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=W(),u=t.seriesType,f=t.getTargetSeries,c=!0,h=!1,v="";st(!t.createOnAllSeries,v),u?n.eachRawSeriesByType(u,d):f?f(n,a).each(d):(c=!1,w(n.getSeries(),d));function d(p){var m=p.uid,g=l.set(m,s&&s.get(m)||(h=!0,ln({reset:E0,onDirty:N0})));g.context={model:p,overallProgress:c},g.agent=o,g.__block=c,i._pipe(p,g)}h&&o.dirty()},r.prototype._pipe=function(t,e){var n=t.uid,a=this._pipelineMap.get(n);!a.head&&(a.head=e),a.tail&&a.tail.pipe(e),a.tail=e,e.__idxInPipeline=a.count++,e.__pipeline=a},r.wrapStageHandler=function(t,e){return U(t)&&(t={overallReset:t,seriesType:G0(t)}),t.uid=Vn("stageHandler"),e&&(t.visualType=e),t},r}();function R0(r){r.overallReset(r.ecModel,r.api,r.payload)}function E0(r){return r.overallProgress&&O0}function O0(){this.agent.dirty(),this.getDownstream().dirty()}function N0(){this.agent&&this.agent.dirty()}function B0(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function V0(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=ce(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?F(t,function(e,n){return mh(n)}):F0}var F0=mh(0);function mh(r){return function(t,e){var n=e.data,a=e.resetDefines[r];if(a&&a.dataEach)for(var i=t.start;i0&&v===u.length-h.length){var d=u.slice(0,v);d!=="data"&&(e.mainType=d,e[h.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(n[u]=l,f=!0),f||(a[u]=l)})}return{cptQuery:e,dataQuery:n,otherQuery:a}},r.prototype.filter=function(t,e){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 l=e.cptQuery,u=e.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,i,"name")&&f(u,i,"dataIndex")&&f(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,a,i));function f(c,h,v,d){return c[v]==null||h[d||v]===c[v]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),Po=["symbol","symbolSize","symbolRotate","symbolOffset"],Du=Po.concat(["symbolKeepAspect"]),Y0={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData();if(r.legendIcon&&e.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var n={},a={},i=!1,o=0;o0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,n,a){if(!this[Ae]){if(this._disposed){this.id;return}var i,o,s;if(H(n)&&(a=n.lazyUpdate,i=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[Ae]=!0,!this._model||n){var l=new Ay(this._api),u=this._theme,f=this._model=new Uv;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(e,{replaceMerge:o},Oo);var c={seriesTransition:s,optionChanged:!0};if(a)this[ke]={silent:i,updateParams:c},this[Ae]=!1,this.getZr().wakeUp();else{try{dr(this),Dt.update.call(this,null,c)}catch(h){throw this[ke]=null,this[Ae]=!1,h}this._ssr||this._zr.flush(),this[ke]=null,this[Ae]=!1,Hr.call(this,i),Ur.call(this,i)}}},t.prototype.setTheme=function(){},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||v_&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var n=this._zr.painter;return n.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(!!fe.svgSupported){var e=this._zr,n=e.storage.getDisplayList();return w(n,function(a){a.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e=e||{};var n=e.excludeComponents,a=this._model,i=[],o=this;w(n,function(l){a.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(i.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return w(i,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var n=e.type==="svg",a=this.group,i=Math.min,o=Math.max,s=1/0;if(Bu[a]){var l=s,u=s,f=-s,c=-s,h=[],v=e&&e.pixelRatio||this.getDevicePixelRatio();w(fn,function(_,S){if(_.group===a){var b=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(X(e)),x=_.getDom().getBoundingClientRect();l=i(x.left,l),u=i(x.top,u),f=o(x.right,f),c=o(x.bottom,c),h.push({dom:b,left:x.left,top:x.top})}}),l*=v,u*=v,f*=v,c*=v;var d=f-l,p=c-u,m=Bc.createCanvas(),g=vl(m,{renderer:n?"svg":"canvas"});if(g.resize({width:d,height:p}),n){var y="";return w(h,function(_){var S=_.left-l,b=_.top-u;y+=''+_.dom+""}),g.painter.getSvgRoot().innerHTML=y,e.connectedBackgroundColor&&g.painter.setBackgroundColor(e.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}else return e.connectedBackgroundColor&&g.add(new pe({shape:{x:0,y:0,width:d,height:p},style:{fill:e.connectedBackgroundColor}})),w(h,function(_){var S=new In({style:{x:_.left*v-l,y:_.top*v-u,image:_.dom}});g.add(S)}),g.refreshImmediately(),m.toDataURL("image/"+(e&&e.type||"png"))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,n){return ki(this,"convertToPixel",e,n)},t.prototype.convertFromPixel=function(e,n){return ki(this,"convertFromPixel",e,n)},t.prototype.containPixel=function(e,n){if(this._disposed){this.id;return}var a=this._model,i,o=nn(a,e);return w(o,function(s,l){l.indexOf("Models")>=0&&w(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)i=i||!!f.containPoint(n);else if(l==="seriesModels"){var c=this._chartsMap[u.__viewId];c&&c.containPoint&&(i=i||c.containPoint(n,u))}},this)},this),!!i},t.prototype.getVisual=function(e,n){var a=this._model,i=nn(a,e,{defaultMainType:"series"}),o=i.seriesModel,s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?Z0(s,l,n):X0(s,n)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;w(D_,function(n){var a=function(i){var o=e.getModel(),s=i.target,l,u=n==="globalout";if(u?l={}:s&&tn(s,function(d){var p=J(d);if(p&&p.dataIndex!=null){var m=p.dataModel||o.getSeriesByIndex(p.seriesIndex);return l=m&&m.getDataParams(p.dataIndex,p.dataType)||{},!0}else if(p.eventData)return l=N({},p.eventData),!0},!0),l){var f=l.componentType,c=l.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",c=l.seriesIndex);var h=f&&c!=null&&o.getComponent(f,c),v=h&&e[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];l.event=i,l.type=n,e._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:h,view:v},e.trigger(n,l)}};a.zrEventfulCallAtLast=!0,e._zr.on(n,a,e)}),w(un,function(n,a){e._messageCenter.on(a,function(i){this.trigger(a,i)},e)}),w(["selectchanged"],function(n){e._messageCenter.on(n,function(a){this.trigger(n,a)},e)}),q0(this._messageCenter,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 e=this.getDom();e&&qc(this.getDom(),zs,"");var n=this,a=n._api,i=n._model;w(n._componentsViews,function(o){o.dispose(i,a)}),w(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 fn[n.id]},t.prototype.resize=function(e){if(!this[Ae]){if(this._disposed){this.id;return}this._zr.resize(e);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var a=n.resetOption("media"),i=e&&e.silent;this[ke]&&(i==null&&(i=this[ke].silent),a=!0,this[ke]=null),this[Ae]=!0;try{a&&dr(this),Dt.update.call(this,{type:"resize",animation:N({duration:0},e&&e.animation)})}catch(o){throw this[Ae]=!1,o}this[Ae]=!1,Hr.call(this,i),Ur.call(this,i)}}},t.prototype.showLoading=function(e,n){if(this._disposed){this.id;return}if(H(e)&&(n=e,e=""),e=e||"default",this.hideLoading(),!!No[e]){var a=No[e](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(e){var n=N({},e);return n.type=un[e.type],n},t.prototype.dispatchAction=function(e,n){if(this._disposed){this.id;return}if(H(n)||(n={silent:!!n}),!!Na[e.type]&&!!this._model){if(this[Ae]){this._pendingActions.push(e);return}var a=n.silent;Ei.call(this,e,a);var i=n.flush;i?this._zr.flush():i!==!1&&fe.browser.weChat&&this._throttledZrFlush(),Hr.call(this,a),Ur.call(this,a)}},t.prototype.updateLabelLayout=function(){qe.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var n=e.seriesIndex,a=this.getModel(),i=a.getSeriesByIndex(n);i.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){dr=function(c){var h=c._scheduler;h.restorePipelines(c._model),h.prepareStageTasks(),Pi(c,!0),Pi(c,!1),h.plan()},Pi=function(c,h){for(var v=c._model,d=c._scheduler,p=h?c._componentsViews:c._chartsViews,m=h?c._componentsMap:c._chartsMap,g=c._zr,y=c._api,_=0;_h.get("hoverLayerThreshold")&&!fe.node&&!fe.worker&&h.eachSeries(function(m){if(!m.preventUsingHoverLayer){var g=c._chartsMap[m.__viewId];g.__alive&&g.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}function o(c,h){var v=c.get("blendMode")||null;h.eachRendered(function(d){d.isGroup||(d.style.blend=v)})}function s(c,h){if(!c.preventAutoZ){var v=c.get("z")||0,d=c.get("zlevel")||0;h.eachRendered(function(p){return l(p,v,d,-1/0),!0})}}function l(c,h,v,d){var p=c.getTextContent(),m=c.getTextGuideLine(),g=c.isGroup;if(g)for(var y=c.childrenRef(),_=0;_0?{duration:p,delay:v.get("delay"),easing:v.get("easing")}:null;h.eachRendered(function(g){if(g.states&&g.states.emphasis){if(xr(g))return;if(g instanceof ge&&gm(g),g.__dirty){var y=g.prevStates;y&&g.useStates(y)}if(d){g.stateTransition=m;var _=g.getTextContent(),S=g.getTextGuideLine();_&&(_.stateTransition=m),S&&(S.stateTransition=m)}g.__dirty&&a(g)}})}Ou=function(c){return new(function(h){B(v,h);function v(){return h!==null&&h.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(d){for(;d;){var p=d.__ecComponentInfo;if(p!=null)return c._model.getComponent(p.mainType,p.index);d=d.parent}},v.prototype.enterEmphasis=function(d,p){Tr(d,p),Oe(c)},v.prototype.leaveEmphasis=function(d,p){Ar(d,p),Oe(c)},v.prototype.enterBlur=function(d){om(d),Oe(c)},v.prototype.leaveBlur=function(d){av(d),Oe(c)},v.prototype.enterSelect=function(d){iv(d),Oe(c)},v.prototype.leaveSelect=function(d){ov(d),Oe(c)},v.prototype.getModel=function(){return c.getModel()},v.prototype.getViewOfComponentModel=function(d){return c.getViewOfComponentModel(d)},v.prototype.getViewOfSeriesModel=function(d){return c.getViewOfSeriesModel(d)},v}(Yv))(c)},Oh=function(c){function h(v,d){for(var p=0;p=0)){Vu.push(e);var i=Sh.wrapStageHandler(e,a);i.__prio=t,i.__raw=e,r.push(i)}}function Gh(r,t){No[r]=t}function E_(r,t,e){var n=c_("registerMap");n&&n(r,t,e)}var O_=t0;lr(Vs,M0);lr(oi,I0);lr(oi,L0);lr(Vs,Y0);lr(oi,$0);lr(Ih,l_);Fh(Zv);zh(p_,Ey);Gh("default",P0);ft({type:qt,event:qt,update:qt},mt);ft({type:pa,event:pa,update:pa},mt);ft({type:an,event:an,update:an},mt);ft({type:ga,event:ga,update:ga},mt);ft({type:on,event:on,update:on},mt);Vh("light",W0);Vh("dark",H0);function Yr(r){return r==null?0:r.length||1}function Fu(r){return r}var N_=function(){function r(t,e,n,a,i,o){this._old=t,this._new=e,this._oldKeyGetter=n||Fu,this._newKeyGetter=a||Fu,this.context=i,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(t){return this._add=t,this},r.prototype.update=function(t){return this._update=t,this},r.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},r.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},r.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},r.prototype.remove=function(t){return this._remove=t,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},a=new Array(t.length),i=new Array(e.length);this._initIndexMap(t,null,a,"_oldKeyGetter"),this._initIndexMap(e,n,i,"_newKeyGetter");for(var o=0;o1){var f=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(f,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,n)},r.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},a={},i=[],o=[];this._initIndexMap(t,n,i,"_oldKeyGetter"),this._initIndexMap(e,a,o,"_newKeyGetter");for(var s=0;s1&&h===1)this._updateManyToOne&&this._updateManyToOne(f,u),a[l]=null;else if(c===1&&h>1)this._updateOneToMany&&this._updateOneToMany(f,u),a[l]=null;else if(c===1&&h===1)this._update&&this._update(f,u),a[l]=null;else if(c>1&&h>1)this._updateManyToMany&&this._updateManyToMany(f,u),a[l]=null;else if(c>1)for(var v=0;v1)for(var s=0;s30}var $r=H,Mt=F,H_=typeof Int32Array>"u"?Array:Int32Array,U_="e\0\0",zu=-1,Y_=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],$_=["_approximateExtent"],Gu,ta,Zr,Xr,Bi,ra,Vi,Z_=function(){function r(t,e){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var n,a=!1;Hh(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(a=!0,n=t),n=n||["x","y"];for(var i={},o=[],s={},l=!1,u={},f=0;f=e)){var n=this._store,a=n.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=a.getSource().sourceFormat,l=s===Ye;if(l&&!a.pure)for(var u=[],f=t;f0},r.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,a=n[t];a||(a=n[t]={});var i=a[e];return i==null&&(i=this.getVisual(e),O(i)?i=i.slice():$r(i)&&(i=N({},i)),a[e]=i),i},r.prototype.setItemVisual=function(t,e,n){var a=this._itemVisuals[t]||{};this._itemVisuals[t]=a,$r(e)?N(a,e):a[e]=n},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){$r(t)?N(this._layout,t):this._layout[t]=e},r.prototype.getLayout=function(t){return this._layout[t]},r.prototype.getItemLayout=function(t){return this._itemLayouts[t]},r.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?N(this._itemLayouts[t]||{},e):e},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;qg(n,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,e){w(this._graphicEls,function(n,a){n&&t&&t.call(e,n,a)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:Mt(this.dimensions,this._getDimInfo,this),this.hostModel)),Bi(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var n=this[t];!U(n)||(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var a=n.apply(this,arguments);return e.apply(this,[a].concat(Kp(arguments)))})},r.internalField=function(){Gu=function(t){var e=t._invertedIndicesMap;w(e,function(n,a){var i=t._dimInfos[a],o=i.ordinalMeta,s=t._store;if(o){n=e[a]=new H_(o.categories.length);for(var l=0;l1&&(l+="__ec__"+f),a[e]=l}}}(),r}();const Zh=Z_;function Xh(r,t){Ps(r)||(r=ks(r)),t=t||{};var e=t.coordDimensions||[],n=t.dimensionsDefine||r.dimensionsDefine||[],a=W(),i=[],o=K_(r,e,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&$h(o),l=n===r.dimensionsDefine,u=l?Yh(r):Uh(n),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(r,o));for(var c=W(f),h=new ah(o),v=0;v0&&(n.name=a+(i-1)),i++,t.set(a,i)}}function K_(r,t,e,n){var a=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,n||0);return w(t,function(i){var o;H(i)&&(o=i.dimsDef)&&(a=Math.max(a,o.length))}),a}function q_(r,t,e){var n=t.data;if(e||n.hasOwnProperty(r)){for(var a=0;n.hasOwnProperty(r+a);)a++;r+=a}return t.set(r,!0),r}var j_=function(){function r(t){this.coordSysDims=[],this.axisMap=W(),this.categoryAxisMap=W(),this.coordSysName=t}return r}();function Q_(r){var t=r.get("coordinateSystem"),e=new j_(t),n=J_[t];if(n)return n(r,e,e.axisMap,e.categoryAxisMap),e}var J_={cartesian2d:function(r,t,e,n){var a=r.getReferringComponents("xAxis",Le).models[0],i=r.getReferringComponents("yAxis",Le).models[0];t.coordSysDims=["x","y"],e.set("x",a),e.set("y",i),pr(a)&&(n.set("x",a),t.firstCategoryDimIndex=0),pr(i)&&(n.set("y",i),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,n){var a=r.getReferringComponents("singleAxis",Le).models[0];t.coordSysDims=["single"],e.set("single",a),pr(a)&&(n.set("single",a),t.firstCategoryDimIndex=0)},polar:function(r,t,e,n){var a=r.getReferringComponents("polar",Le).models[0],i=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",i),e.set("angle",o),pr(i)&&(n.set("radius",i),t.firstCategoryDimIndex=0),pr(o)&&(n.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(r,t,e,n){t.coordSysDims=["lng","lat"]},parallel:function(r,t,e,n){var a=r.ecModel,i=a.getComponent("parallel",r.get("parallelIndex")),o=t.coordSysDims=i.dimensions.slice();w(i.parallelAxisIndex,function(s,l){var u=a.getComponent("parallelAxis",s),f=o[l];e.set(f,u),pr(u)&&(n.set(f,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function pr(r){return r.get("type")==="category"}function eS(r,t,e){e=e||{};var n=e.byIndex,a=e.stackedCoordDimension,i,o,s;tS(t)?i=t:(o=t.schema,i=o.dimensions,s=t.store);var l=!!(r&&r.get("stack")),u,f,c,h;if(w(i,function(y,_){z(y)&&(i[_]=y={name:y}),l&&!y.isExtraCoord&&(!n&&!u&&y.ordinalMeta&&(u=y),!f&&y.type!=="ordinal"&&y.type!=="time"&&(!a||a===y.coordDim)&&(f=y))}),f&&!n&&!u&&(n=!0),f){c="__\0ecstackresult_"+r.id,h="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var v=f.coordDim,d=f.type,p=0;w(i,function(y){y.coordDim===v&&p++});var m={name:c,coordDim:v,coordDimIndex:p,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},g={name:h,coordDim:h,coordDimIndex:p+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(m.storeDimIndex=s.ensureCalculationDimension(h,d),g.storeDimIndex=s.ensureCalculationDimension(c,d)),o.appendCalculationDimension(m),o.appendCalculationDimension(g)):(i.push(m),i.push(g))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:h,stackResultDimension:c}}function tS(r){return!Hh(r.schema)}function Ir(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function rS(r,t){return Ir(r,t)?r.getCalculationInfo("stackResultDimension"):t}function nS(r,t){var e=r.get("coordinateSystem"),n=Ls.get(e),a;return t&&t.coordSysDims&&(a=F(t.coordSysDims,function(i){var o={name:i},s=t.axisMap.get(i);if(s){var l=s.get("type");o.type=Bo(l)}return o})),a||(a=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),a}function aS(r,t,e){var n,a;return e&&w(r,function(i,o){var s=i.coordDim,l=e.categoryAxisMap.get(s);l&&(n==null&&(n=o),i.ordinalMeta=l.getOrdinalMeta(),t&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(a=!0)}),!a&&n!=null&&(r[n].otherDims.itemName=0),n}function si(r,t,e){e=e||{};var n=t.getSourceManager(),a,i=!1;r?(i=!0,a=ks(r)):(a=n.getSource(),i=a.sourceFormat===Ye);var o=Q_(t),s=nS(t,o),l=e.useEncodeDefaulter,u=U(l)?l:l?Q(Fv,s,t):null,f={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},c=Xh(a,f),h=aS(c.dimensions,e.createInvertedIndices,o),v=i?null:n.getSharedDataStore(c),d=eS(t,{schema:c,store:v}),p=new Zh(c,t);p.setCalculationInfo(d);var m=h!=null&&iS(a)?function(g,y,_,S){return S===h?_:this.defaultDimValueGetter(g,y,_,S)}:null;return p.hasItemOption=!1,p.initData(i?a:v,null,m),p}function iS(r){if(r.sourceFormat===Ye){var t=oS(r.data||[]);return!O(Rn(t))}}function oS(r){for(var t=0;te[1]&&(e[1]=t[1])},r.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},r.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(t){this._isBlank=t},r}();Ga(Kh);const bt=Kh;var sS=0,lS=function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++sS}return r.createByAxisModel=function(t){var e=t.option,n=e.data,a=n&&F(n,uS);return new r({categories:a,needCollect:!a,deduplication:e.dedplication!==!1})},r.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},r.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!z(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var a=this._getOrCreateMap();return e=a.get(t),e==null&&(n?(e=this.categories.length,this.categories[e]=t,a.set(t,e)):e=NaN),e},r.prototype._getOrCreateMap=function(){return this._map||(this._map=W(this.categories))},r}();function uS(r){return H(r)&&r.value!=null?r.value:r+""}const Vo=lS;function Fo(r){return r.type==="interval"||r.type==="log"}function fS(r,t,e,n){var a={},i=r[1]-r[0],o=a.interval=Uc(i/t,!0);e!=null&&on&&(o=a.interval=n);var s=a.intervalPrecision=qh(o),l=a.niceTickExtent=[de(Math.ceil(r[0]/o)*o,s),de(Math.floor(r[1]/o)*o,s)];return cS(l,r),a}function Fi(r){var t=Math.pow(10,fs(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,de(e*t)}function qh(r){return dt(r)+2}function Wu(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function cS(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),Wu(r,0,t),Wu(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function li(r,t){return r>=t[0]&&r<=t[1]}function ui(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function fi(r,t){return r*(t[1]-t[0])+t[0]}var jh=function(r){B(t,r);function t(e){var n=r.call(this,e)||this;n.type="ordinal";var a=n.getSetting("ordinalMeta");return a||(a=new Vo({})),O(a)&&(a=new Vo({categories:F(a,function(i){return H(i)?i.value:i})})),n._ordinalMeta=a,n._extent=n.getSetting("extent")||[0,a.categories.length-1],n}return t.prototype.parse=function(e){return e==null?NaN:z(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),li(e,this._extent)&&this._ordinalMeta.categories[e]!=null},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),ui(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(fi(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],n=this._extent,a=n[0];a<=n[1];)e.push({value:a}),a++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=e.ordinalNumbers,a=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o=0&&e=0&&e=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(bt);bt.registerClass(jh);const Qh=jh;var $t=de,Jh=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return li(e,this._extent)},t.prototype.normalize=function(e){return ui(e,this._extent)},t.prototype.scale=function(e){return fi(e,this._extent)},t.prototype.setExtent=function(e,n){var a=this._extent;isNaN(e)||(a[0]=parseFloat(e)),isNaN(n)||(a[1]=parseFloat(n))},t.prototype.unionExtent=function(e){var n=this._extent;e[0]n[1]&&(n[1]=e[1]),this.setExtent(n[0],n[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=qh(e)},t.prototype.getTicks=function(e){var n=this._interval,a=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var l=1e4;a[0]l)return[];var f=s.length?s[s.length-1].value:i[1];return a[1]>f&&(e?s.push({value:$t(f+n,o)}):s.push({value:a[1]})),s},t.prototype.getMinorTicks=function(e){for(var n=this.getTicks(!0),a=[],i=this.getExtent(),o=1;oi[0]&&v0&&(i=i===null?s:Math.min(i,s))}e[n]=i}}return e}function rd(r){var t=dS(r),e=[];return w(r,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 l=i.dim+"_"+i.index,u=t[l],f=Math.abs(o[1]-o[0]),c=i.scale.getExtent(),h=Math.abs(c[1]-c[0]);s=u?f/h*u:f}else{var v=n.getData();s=Math.abs(o[1]-o[0])/v.count()}var d=re(n.get("barWidth"),s),p=re(n.get("barMaxWidth"),s),m=re(n.get("barMinWidth")||(ad(n)?.5:1),s),g=n.get("barGap"),y=n.get("barCategoryGap");e.push({bandWidth:s,barWidth:d,barMaxWidth:p,barMinWidth:m,barGap:g,barCategoryGap:y,axisKey:Us(i),stackId:Hs(n)})}),pS(e)}function pS(r){var t={};w(r,function(n,a){var i=n.axisKey,o=n.bandWidth,s=t[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[i]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var f=n.barWidth;f&&!l[u].width&&(l[u].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var c=n.barMaxWidth;c&&(l[u].maxWidth=c);var h=n.barMinWidth;h&&(l[u].minWidth=h);var v=n.barGap;v!=null&&(s.gap=v);var d=n.barCategoryGap;d!=null&&(s.categoryGap=d)});var e={};return w(t,function(n,a){e[a]={};var i=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=Ue(i).length;s=Math.max(35-l*4,15)+"%"}var u=re(s,o),f=re(n.gap,1),c=n.remainedWidth,h=n.autoWidthCount,v=(c-u)/(h+(h-1)*f);v=Math.max(v,0),w(i,function(g){var y=g.maxWidth,_=g.minWidth;if(g.width){var S=g.width;y&&(S=Math.min(S,y)),_&&(S=Math.max(S,_)),g.width=S,c-=S+f*S,h--}else{var S=v;y&&yS&&(S=_),S!==v&&(g.width=S,c-=S+f*S,h--)}}),v=(c-u)/(h+(h-1)*f),v=Math.max(v,0);var d=0,p;w(i,function(g,y){g.width||(g.width=v),p=g,d+=g.width*(1+f)}),p&&(d-=p.width*f);var m=-d/2;w(i,function(g,y){e[a][y]=e[a][y]||{bandWidth:o,offset:m,width:g.width},m+=g.width*(1+f)})}),e}function gS(r,t,e){if(r&&t){var n=r[Us(t)];return n!=null&&e!=null?n[Hs(e)]:n}}function mS(r,t){var e=td(r,t),n=rd(e);w(e,function(a){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=Hs(a),u=n[Us(s)][l],f=u.offset,c=u.width;i.setLayout({bandWidth:u.bandWidth,offset:f,size:c})})}function yS(r){return{seriesType:r,plan:Fn(),reset:function(t){if(!!nd(t)){var e=t.getData(),n=t.coordinateSystem,a=n.getBaseAxis(),i=n.getOtherAxis(a),o=e.getDimensionIndex(e.mapDimension(i.dim)),s=e.getDimensionIndex(e.mapDimension(a.dim)),l=t.get("showBackground",!0),u=e.mapDimension(i.dim),f=e.getCalculationInfo("stackResultDimension"),c=Ir(e,u)&&!!e.getCalculationInfo("stackedOnSeries"),h=i.isHorizontal(),v=_S(a,i),d=ad(t),p=t.get("barMinHeight")||0,m=f&&e.getDimensionIndex(f),g=e.getLayout("size"),y=e.getLayout("offset");return{progress:function(_,S){for(var b=_.count,x=d&&nt(b*3),C=d&&l&&nt(b*3),T=d&&nt(b),A=n.master.getRect(),M=h?A.width:A.height,D,I=S.getStore(),L=0;(D=_.next())!=null;){var P=I.get(c?m:o,D),k=I.get(s,D),V=v,$=void 0;c&&($=+P-I.get(o,D));var R=void 0,E=void 0,G=void 0,Y=void 0;if(h){var Z=n.dataToPoint([P,k]);if(c){var j=n.dataToPoint([$,k]);V=j[0]}R=V,E=Z[1]+y,G=Z[0]-V,Y=g,Math.abs(G)>>1;r[a][1]a&&(this._approxInterval=a);var s=na.length,l=Math.min(SS(na,this._approxInterval,0,s),s-1);this._interval=na[l][1],this._minLevelUnit=na[Math.max(l-1,0)][0]},t.prototype.parse=function(e){return oe(e)?e:+yt(e)},t.prototype.contain=function(e){return li(this.parse(e),this._extent)},t.prototype.normalize=function(e){return ui(this.parse(e),this._extent)},t.prototype.scale=function(e){return fi(e,this._extent)},t.type="time",t}(zn),na=[["second",Cs],["minute",Ts],["hour",sn],["quarter-day",sn*6],["half-day",sn*12],["day",Fe*1.2],["half-week",Fe*3.5],["week",Fe*7],["month",Fe*31],["quarter",Fe*95],["half-year",zl/2],["year",zl]];function xS(r,t,e,n){var a=yt(t),i=yt(e),o=function(d){return Wl(a,d,n)===Wl(i,d,n)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},f=function(){return u()&&o("hour")},c=function(){return f()&&o("minute")},h=function(){return c()&&o("second")},v=function(){return h()&&o("millisecond")};switch(r){case"year":return s();case"month":return l();case"day":return u();case"hour":return f();case"minute":return c();case"second":return h();case"millisecond":return v()}}function bS(r,t){return r/=Fe,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function wS(r){var t=30*Fe;return r/=t,r>6?6:r>3?3:r>2?2:1}function CS(r){return r/=sn,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function Hu(r,t){return r/=t?Ts:Cs,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function TS(r){return Uc(r,!0)}function AS(r,t,e){var n=new Date(r);switch(br(t)){case"year":case"month":n[Av(e)](0);case"day":n[Dv(e)](1);case"hour":n[Mv(e)](0);case"minute":n[Iv(e)](0);case"second":n[Lv(e)](0),n[Pv(e)](0)}return n.getTime()}function DS(r,t,e,n){var a=1e4,i=Cv,o=0;function s(M,D,I,L,P,k,V){for(var $=new Date(D),R=D,E=$[L]();R1&&k===0&&I.unshift({value:I[0].value-R})}}for(var k=0;k=n[0]&&y<=n[1]&&c++)}var _=(n[1]-n[0])/t;if(c>_*1.5&&h>_/1.5||(u.push(m),c>_||r===i[v]))break}f=[]}}}for(var S=xe(F(u,function(M){return xe(M,function(D){return D.value>=n[0]&&D.value<=n[1]&&!D.notAdd})}),function(M){return M.length>0}),b=[],x=S.length-1,v=0;v0;)i*=10;var s=[de(PS(n[0]/i)*i),de(LS(n[1]/i)*i)];this._interval=i,this._niceExtent=s}},t.prototype.calcNiceExtent=function(e){cn.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return e=Ke(e)/Ke(this.base),li(e,this._extent)},t.prototype.normalize=function(e){return e=Ke(e)/Ke(this.base),ui(e,this._extent)},t.prototype.scale=function(e){return e=fi(e,this._extent),aa(this.base,e)},t.type="log",t}(bt),od=Ys.prototype;od.getMinorTicks=cn.getMinorTicks;od.getLabel=cn.getLabel;function ia(r,t){return IS(r,dt(t))}bt.registerClass(Ys);const kS=Ys;var RS=function(){function r(t,e,n){this._prepareParams(t,e,n)}return r.prototype._prepareParams=function(t,e,n){n[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var h=this._determinedMin,v=this._determinedMax;return h!=null&&(s=h,u=!0),v!=null&&(l=v,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:c}},r.prototype.modifyDataMinMax=function(t,e){this[OS[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var n=ES[t];this[n]=e},r.prototype.freeze=function(){this.frozen=!0},r}(),ES={min:"_determinedMin",max:"_determinedMax"},OS={min:"_dataMin",max:"_dataMax"};function sd(r,t,e){var n=r.rawExtentInfo;return n||(n=new RS(r,t,e),r.rawExtentInfo=n,n)}function oa(r,t){return t==null?null:vo(t)?NaN:r.parse(t)}function ld(r,t){var e=r.type,n=sd(r,t,r.getExtent()).calculate();r.setBlank(n.isBlank);var a=n.min,i=n.max,o=t.ecModel;if(o&&e==="time"){var s=td("bar",o),l=!1;if(w(s,function(c){l=l||c.getBaseAxis()===t.axis}),l){var u=rd(s),f=NS(a,i,t,u);a=f.min,i=f.max}}return{extent:[a,i],fixMin:n.minFixed,fixMax:n.maxFixed}}function NS(r,t,e,n){var a=e.axis.getExtent(),i=a[1]-a[0],o=gS(n,e.axis);if(o===void 0)return{min:r,max:t};var s=1/0;w(o,function(v){s=Math.min(v.offset,s)});var l=-1/0;w(o,function(v){l=Math.max(v.offset+v.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=t-r,c=1-(s+l)/i,h=f/c-f;return t+=h*(l/u),r-=h*(s/u),{min:r,max:t}}function Yu(r,t){var e=t,n=ld(r,e),a=n.extent,i=e.get("splitNumber");r instanceof kS&&(r.base=e.get("logBase"));var o=r.type,s=e.get("interval"),l=o==="interval"||o==="time";r.setExtent(a[0],a[1]),r.calcNiceExtent({splitNumber:i,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?e.get("minInterval"):null,maxInterval:l?e.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function BS(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new Qh({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new MS({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(bt.getClass(t)||zn)}}function VS(r){var t=r.scale.getExtent(),e=t[0],n=t[1];return!(e>0&&n>0||e<0&&n<0)}function Gn(r){var t=r.getLabelModel().get("formatter"),e=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?function(n){return function(a,i){return r.scale.getFormattedLabel(a,i,n)}}(t):z(t)?function(n){return function(a){var i=r.scale.getLabel(a),o=n.replace("{value}",i!=null?i:"");return o}}(t):U(t)?function(n){return function(a,i){return e!=null&&(i=a.value-e),n($s(r,a),i,a.level!=null?{level:a.level}:null)}}(t):function(n){return r.scale.getLabel(n)}}function $s(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function FS(r){var t=r.model,e=r.scale;if(!(!t.get(["axisLabel","show"])||e.isBlank())){var n,a,i=e.getExtent();e instanceof Qh?a=e.count():(n=e.getTicks(),a=n.length);var o=r.getLabelModel(),s=Gn(r),l,u=1;a>40&&(u=Math.ceil(a/40));for(var f=0;fr[1]&&(r[1]=a[1])})}var WS=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},r.prototype.getCoordSysModel=function(){},r}(),$u=[],HS={registerPreprocessor:Fh,registerProcessor:zh,registerPostInit:L_,registerPostUpdate:P_,registerUpdateLifecycle:Gs,registerAction:ft,registerCoordinateSystem:k_,registerLayout:R_,registerVisual:lr,registerTransform:O_,registerLoading:Gh,registerMap:E_,registerImpl:f_,PRIORITY:C_,ComponentModel:ae,ComponentView:He,SeriesModel:lt,ChartView:ze,registerComponentModel:function(r){ae.registerClass(r)},registerComponentView:function(r){He.registerClass(r)},registerSeriesModel:function(r){lt.registerClass(r)},registerChartView:function(r){ze.registerClass(r)},registerSubTypeDefaulter:function(r,t){ae.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){qp(r,t)}};function _t(r){if(O(r)){w(r,function(t){_t(t)});return}ie($u,r)>=0||($u.push(r),U(r)&&(r={install:r}),r.install(HS))}var Tn=le();function US(r){return r.type==="category"?$S(r):XS(r)}function YS(r,t){return r.type==="category"?ZS(r,t):{ticks:F(r.scale.getTicks(),function(e){return e.value})}}function $S(r){var t=r.getLabelModel(),e=cd(r,t);return!t.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:e.labelCategoryInterval}:e}function cd(r,t){var e=vd(r,"labels"),n=Zs(t),a=hd(e,n);if(a)return a;var i,o;return U(n)?i=gd(r,n):(o=n==="auto"?KS(r):n,i=pd(r,o)),dd(e,n,{labels:i,labelCategoryInterval:o})}function ZS(r,t){var e=vd(r,"ticks"),n=Zs(t),a=hd(e,n);if(a)return a;var i,o;if((!t.get("show")||r.scale.isBlank())&&(i=[]),U(n))i=gd(r,n,!0);else if(n==="auto"){var s=cd(r,r.getLabelModel());o=s.labelCategoryInterval,i=F(s.labels,function(l){return l.tickValue})}else o=n,i=pd(r,o,!0);return dd(e,n,{ticks:i,tickCategoryInterval:o})}function XS(r){var t=r.scale.getTicks(),e=Gn(r);return{labels:F(t,function(n,a){return{level:n.level,formattedLabel:e(n,a),rawLabel:r.scale.getLabel(n),tickValue:n.value}})}}function vd(r,t){return Tn(r)[t]||(Tn(r)[t]=[])}function hd(r,t){for(var e=0;e40&&(s=Math.max(1,Math.floor(o/40)));for(var l=i[0],u=r.dataToCoord(l+1)-r.dataToCoord(l),f=Math.abs(u*Math.cos(n)),c=Math.abs(u*Math.sin(n)),h=0,v=0;l<=i[1];l+=s){var d=0,p=0,m=us(e({value:l}),t.font,"center","top");d=m.width*1.3,p=m.height*1.3,h=Math.max(h,d,7),v=Math.max(v,p,7)}var g=h/f,y=v/c;isNaN(g)&&(g=1/0),isNaN(y)&&(y=1/0);var _=Math.max(0,Math.floor(Math.min(g,y))),S=Tn(r.model),b=r.getExtent(),x=S.lastAutoInterval,C=S.lastTickCount;return x!=null&&C!=null&&Math.abs(x-_)<=1&&Math.abs(C-o)<=1&&x>_&&S.axisExtent0===b[0]&&S.axisExtent1===b[1]?_=x:(S.lastTickCount=o,S.lastAutoInterval=_,S.axisExtent0=b[0],S.axisExtent1=b[1]),_}function jS(r){var t=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function pd(r,t,e){var n=Gn(r),a=r.scale,i=a.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=i[0],f=a.count();u!==0&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var c=ud(r),h=o.get("showMinLabel")||c,v=o.get("showMaxLabel")||c;h&&u!==i[0]&&p(i[0]);for(var d=u;d<=i[1];d+=l)p(d);v&&d-l!==i[1]&&p(i[1]);function p(m){var g={value:m};s.push(e?m:{formattedLabel:n(g),rawLabel:a.getLabel(g),tickValue:m})}return s}function gd(r,t,e){var n=r.scale,a=Gn(r),i=[];return w(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;t(o.value,s)&&i.push(e?l:{formattedLabel:a(o),rawLabel:s,tickValue:l})}),i}var Zu=[0,1],QS=function(){function r(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return r.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),a=Math.max(e[0],e[1]);return t>=n&&t<=a},r.prototype.containData=function(t){return this.scale.contain(t)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(t){return Wc(t||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},r.prototype.dataToCoord=function(t,e){var n=this._extent,a=this.scale;return t=a.normalize(t),this.onBand&&a.type==="ordinal"&&(n=n.slice(),Xu(n,a.count())),Et(t,Zu,n,e)},r.prototype.coordToData=function(t,e){var n=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(n=n.slice(),Xu(n,a.count()));var i=Et(t,n,Zu,e);return this.scale.scale(i)},r.prototype.pointToData=function(t,e){},r.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),n=YS(this,e),a=n.ticks,i=F(a,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=e.get("alignWithLabel");return JS(this,i,o,t.clamp),i},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var n=this.scale.getMinorTicks(e),a=F(n,function(i){return F(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},r.prototype.getViewLabels=function(){return US(this).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);n===0&&(n=1);var a=Math.abs(t[1]-t[0]);return Math.abs(a)/n},r.prototype.calculateCategoryInterval=function(){return qS(this)},r}();function Xu(r,t){var e=r[1]-r[0],n=t,a=e/n/2;r[0]+=a,r[1]-=a}function JS(r,t,e,n){var a=t.length;if(!r.onBand||e||!a)return;var i=r.getExtent(),o,s;if(a===1)t[0].coord=i[0],o=t[1]={coord:i[0]};else{var l=t[a-1].tickValue-t[0].tickValue,u=(t[a-1].coord-t[0].coord)/l;w(t,function(v){v.coord-=u/2});var f=r.scale.getExtent();s=1+f[1]-t[a-1].tickValue,o={coord:t[a-1].coord+u*s},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]}),h(i[1],o.coord)&&(n?o.coord=i[1]:t.pop()),n&&h(o.coord,i[1])&&t.push({coord:i[1]});function h(v,d){return v=de(v),d=de(d),c?v>d:va&&(a+=Kr);var v=Math.atan2(s,o);if(v<0&&(v+=Kr),v>=n&&v<=a||v+Kr>=n&&v+Kr<=a)return l[0]=f,l[1]=c,u-e;var d=e*Math.cos(n)+r,p=e*Math.sin(n)+t,m=e*Math.cos(a)+r,g=e*Math.sin(a)+t,y=(d-o)*(d-o)+(p-s)*(p-s),_=(m-o)*(m-o)+(g-s)*(g-s);return y<_?(l[0]=d,l[1]=p,Math.sqrt(y)):(l[0]=m,l[1]=g,Math.sqrt(_))}function Va(r,t,e,n,a,i,o,s){var l=a-r,u=i-t,f=e-r,c=n-t,h=Math.sqrt(f*f+c*c);f/=h,c/=h;var v=l*f+u*c,d=v/h;s&&(d=Math.min(Math.max(d,0),1)),d*=h;var p=o[0]=r+d*f,m=o[1]=t+d*c;return Math.sqrt((p-a)*(p-a)+(m-i)*(m-i))}function md(r,t,e,n,a,i,o){e<0&&(r=r+e,e=-e),n<0&&(t=t+n,n=-n);var s=r+e,l=t+n,u=o[0]=Math.min(Math.max(a,r),s),f=o[1]=Math.min(Math.max(i,t),l);return Math.sqrt((u-a)*(u-a)+(f-i)*(f-i))}var je=[];function ax(r,t,e){var n=md(t.x,t.y,t.width,t.height,r.x,r.y,je);return e.set(je[0],je[1]),n}function ix(r,t,e){for(var n=0,a=0,i=0,o=0,s,l,u=1/0,f=t.data,c=r.x,h=r.y,v=0;v0){t=t/180*Math.PI,Je.fromArray(r[0]),te.fromArray(r[1]),ue.fromArray(r[2]),ye.sub(at,Je,te),ye.sub(tt,ue,te);var e=at.len(),n=tt.len();if(!(e<.001||n<.001)){at.scale(1/e),tt.scale(1/n);var a=at.dot(tt),i=Math.cos(t);if(i1&&ye.copy(Ie,ue),Ie.toArray(r[1])}}}}function ox(r,t,e){if(e<=180&&e>0){e=e/180*Math.PI,Je.fromArray(r[0]),te.fromArray(r[1]),ue.fromArray(r[2]),ye.sub(at,te,Je),ye.sub(tt,ue,te);var n=at.len(),a=tt.len();if(!(n<.001||a<.001)){at.scale(1/n),tt.scale(1/a);var i=at.dot(t),o=Math.cos(e);if(i=l)ye.copy(Ie,ue);else{Ie.scaleAndAdd(tt,s/Math.tan(Math.PI/2-f));var c=ue.x!==te.x?(Ie.x-te.x)/(ue.x-te.x):(Ie.y-te.y)/(ue.y-te.y);if(isNaN(c))return;c<0?ye.copy(Ie,te):c>1&&ye.copy(Ie,ue)}Ie.toArray(r[1])}}}}function qu(r,t,e,n){var a=e==="normal",i=a?r:r.ensureState(e);i.ignore=t;var o=n.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();a?r.useStyle(s):i.style=s}function sx(r,t){var e=t.smooth,n=t.points;if(!!n)if(r.moveTo(n[0][0],n[0][1]),e>0&&n.length>=3){var a=hl(n[0],n[1]),i=hl(n[1],n[2]);if(!a||!i){r.lineTo(n[1][0],n[1][1]),r.lineTo(n[2][0],n[2][1]);return}var o=Math.min(a,i)*e,s=pi([],n[1],n[0],o/a),l=pi([],n[1],n[2],o/i),u=pi([],s,l,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),r.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var f=1;f0&&i&&b(-f/o,0,o);var p=r[0],m=r[o-1],g,y;_(),g<0&&x(-g,.8),y<0&&x(y,.8),_(),S(g,y,1),S(y,g,-1),_(),g<0&&C(-g),y<0&&C(y);function _(){g=p.rect[t]-n,y=a-m.rect[t]-m.rect[e]}function S(T,A,M){if(T<0){var D=Math.min(A,-T);if(D>0){b(D*M,0,o);var I=D+T;I<0&&x(-I*M,1)}else x(-T*M,1)}}function b(T,A,M){T!==0&&(u=!0);for(var D=A;D0)for(var I=0;I0;I--){var V=M[I-1]*k;b(-V,I,o)}}}function C(T){var A=T<0?-1:1;T=Math.abs(T);for(var M=Math.ceil(T/(o-1)),D=0;D0?b(M,0,D+1):b(-M,o-D-1,o),T-=M,T<=0)return}return u}function lx(r,t,e,n){return bd(r,"x","width",t,e,n)}function wd(r,t,e,n){return bd(r,"y","height",t,e,n)}function Cd(r){var t=[];r.sort(function(p,m){return m.priority-p.priority});var e=new Ee(0,0,0,0);function n(p){if(!p.ignore){var m=p.ensureState("emphasis");m.ignore==null&&(m.ignore=!1)}p.ignore=!0}for(var a=0;a=0&&n.attr(i.oldLayoutSelect),ie(h,"emphasis")>=0&&n.attr(i.oldLayoutEmphasis)),Se(n,u,e,l)}else if(n.attr(u),!kr(n).valueAnimation){var c=se(n.style.opacity,1);n.style.opacity=0,Te(n,{style:{opacity:c}},e,l)}if(i.oldLayout=u,n.states.select){var v=i.oldLayoutSelect={};sa(v,u,la),sa(v,n.states.select,la)}if(n.states.emphasis){var d=i.oldLayoutEmphasis={};sa(d,u,la),sa(d,n.states.emphasis,la)}Rm(n,l,f,e,e)}if(a&&!a.ignore&&!a.invisible){var i=cx(a),o=i.oldLayout,p={points:a.shape.points};o?(a.attr({shape:o}),Se(a,{shape:p},e)):(a.setShape(p),a.style.strokePercent=0,Te(a,{style:{strokePercent:1}},e)),i.oldLayout=p}},r}();const hx=vx;var Gi=le();function ET(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){var a=Gi(e).labelManager;a||(a=Gi(e).labelManager=new hx),a.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(t,e,n){var a=Gi(e).labelManager;n.updatedSeries.forEach(function(i){a.addLabelsOfSeries(e.getViewOfSeriesModel(i))}),a.updateLayoutConfig(e),a.layout(e),a.processLabelsOverall()})}var dx=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(ae);const px=dx;var zo=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Le).models[0]},t.type="cartesian2dAxis",t}(ae);St(zo,WS);var Td={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},gx=K({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},Td),Xs=K({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},Td),mx=K({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Xs),yx=ee({logBase:10},Xs);const _x={category:gx,value:Xs,time:mx,log:yx};var Sx={value:1,category:1,time:1,log:1};function Qu(r,t,e,n){w(Sx,function(a,i){var o=K(K({},_x[i],!0),n,!0),s=function(l){B(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=t+"Axis."+i,f}return u.prototype.mergeDefaultAndTheme=function(f,c){var h=Sn(this),v=h?ri(f):{},d=c.getTheme();K(f,d.get(i+"Axis")),K(f,this.getDefaultOption()),f.type=Ju(f),h&&Dr(f,v,h)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=Vo.createByAxisModel(this))},u.prototype.getCategories=function(f){var c=this.option;if(c.type==="category")return f?c.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=t+"Axis."+i,u.defaultOption=o,u}(e);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(t+"Axis",Ju)}function Ju(r){return r.type||(r.data?"category":"value")}var xx=function(){function r(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return r.prototype.getAxis=function(t){return this._axes[t]},r.prototype.getAxes=function(){return F(this._dimList,function(t){return this._axes[t]},this)},r.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),xe(this.getAxes(),function(e){return e.scale.type===t})},r.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},r}();const bx=xx;var Go=["x","y"];function ef(r){return r.type==="interval"||r.type==="time"}var wx=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=Go,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!ef(e)||!ef(n))){var a=e.getExtent(),i=n.getExtent(),o=this.dataToPoint([a[0],i[0]]),s=this.dataToPoint([a[1],i[1]]),l=a[1]-a[0],u=i[1]-i[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,c=(s[1]-o[1])/u,h=o[0]-a[0]*f,v=o[1]-i[0]*c,d=this._transform=[f,0,0,c,h,v];this._invTransform=is([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var n=this.getAxis("x"),a=this.getAxis("y");return n.contain(n.toLocalCoord(e[0]))&&a.contain(a.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,n){var a=this.dataToPoint(e),i=this.dataToPoint(n),o=this.getArea(),s=new Ee(a[0],a[1],i[0]-a[0],i[1]-a[1]);return o.intersect(s)},t.prototype.dataToPoint=function(e,n,a){a=a||[];var i=e[0],o=e[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return Jt(a,e,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return a[0]=s.toGlobalCoord(s.dataToCoord(i,n)),a[1]=l.toGlobalCoord(l.dataToCoord(o,n)),a},t.prototype.clampData=function(e,n){var a=this.getAxis("x").scale,i=this.getAxis("y").scale,o=a.getExtent(),s=i.getExtent(),l=a.parse(e[0]),u=i.parse(e[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},t.prototype.pointToData=function(e,n){var a=[];if(this._invTransform)return Jt(a,e,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return a[0]=i.coordToData(i.toLocalCoord(e[0]),n),a[1]=o.coordToData(o.toLocalCoord(e[1]),n),a},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim==="x"?"y":"x")},t.prototype.getArea=function(){var e=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),a=Math.min(e[0],e[1]),i=Math.min(n[0],n[1]),o=Math.max(e[0],e[1])-a,s=Math.max(n[0],n[1])-i;return new Ee(a,i,o,s)},t}(bx),Cx=function(r){B(t,r);function t(e,n,a,i,o){var s=r.call(this,e,n,a)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.getGlobalExtent=function(e){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),e&&n[0]>n[1]&&n.reverse(),n},t.prototype.pointToData=function(e,n){return this.coordToData(this.toLocalCoord(e[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(e){if(this.type!=="category")return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(ex);const Tx=Cx;function Wo(r,t,e){e=e||{};var n=r.coordinateSystem,a=t.axis,i={},o=a.getAxesOnZeroOf()[0],s=a.position,l=o?"onZero":s,u=a.dim,f=n.getRect(),c=[f.x,f.x+f.width,f.y,f.y+f.height],h={left:0,right:1,top:0,bottom:1,onZero:2},v=t.get("offset")||0,d=u==="x"?[c[2]-v,c[3]+v]:[c[0]-v,c[1]+v];if(o){var p=o.toGlobalCoord(o.dataToCoord(0));d[h.onZero]=Math.max(Math.min(p,d[1]),d[0])}i.position=[u==="y"?d[h[l]]:c[0],u==="x"?d[h[l]]:c[3]],i.rotation=Math.PI/2*(u==="x"?0:1);var m={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=m[s],i.labelOffset=o?d[h[s]]-d[h.onZero]:0,t.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),vn(e.labelInside,t.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var g=t.get(["axisLabel","rotate"]);return i.labelRotate=l==="top"?-g:g,i.z2=1,i}function tf(r){return r.get("coordinateSystem")==="cartesian2d"}function rf(r){var t={xAxisModel:null,yAxisModel:null};return w(t,function(e,n){var a=n.replace(/Model$/,""),i=r.getReferringComponents(a,Le).models[0];t[n]=i}),t}var Wi=Math.log;function Ax(r,t,e){var n=zn.prototype,a=n.getTicks.call(e),i=n.getTicks.call(e,!0),o=a.length-1,s=n.getInterval.call(e),l=ld(r,t),u=l.extent,f=l.fixMin,c=l.fixMax;if(r.type==="log"){var h=Wi(r.base);u=[Wi(u[0])/h,Wi(u[1])/h]}r.setExtent(u[0],u[1]),r.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:c});var v=n.getExtent.call(r);f&&(u[0]=v[0]),c&&(u[1]=v[1]);var d=n.getInterval.call(r),p=u[0],m=u[1];if(f&&c)d=(m-p)/o;else if(f)for(m=u[0]+d*o;mu[0]&&isFinite(p)&&isFinite(u[0]);)d=Fi(d),p=u[1]-d*o;else{var g=r.getTicks().length-1;g>o&&(d=Fi(d));var y=d*o;m=Math.ceil(u[1]/d)*d,p=de(m-y),p<0&&u[0]>=0?(p=0,m=de(y)):m>0&&u[1]<=0&&(m=0,p=-de(y))}var _=(a[0].value-i[0].value)/s,S=(a[o].value-i[o].value)/s;n.setExtent.call(r,p+d*_,m+d*S),n.setInterval.call(r,d),(_||S)&&n.setNiceExtent.call(r,p+d,m-d)}var Dx=function(){function r(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Go,this._initCartesian(t,e,n),this.model=t}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(t,e){var n=this._axesMap;this._updateScale(t,this.model);function a(o){var s,l=Ue(o),u=l.length;if(!!u){for(var f=[],c=u-1;c>=0;c--){var h=+l[c],v=o[h],d=v.model,p=v.scale;Fo(p)&&d.get("alignTicks")&&d.get("interval")==null?f.push(v):(Yu(p,d),Fo(p)&&(s=v))}f.length&&(s||(s=f.pop(),Yu(s.scale,s.model)),w(f,function(m){Ax(m.scale,m.model,s.scale)}))}}a(n.x),a(n.y);var i={};w(n.x,function(o){nf(n,"y",o,i)}),w(n.y,function(o){nf(n,"x",o,i)}),this.resize(this.model,e)},r.prototype.resize=function(t,e,n){var a=t.getBoxLayoutParams(),i=!n&&t.get("containLabel"),o=Ft(a,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var s=this._axesList;l(),i&&(w(s,function(u){if(!u.model.get(["axisLabel","inside"])){var f=FS(u);if(f){var c=u.isHorizontal()?"height":"width",h=u.model.get(["axisLabel","margin"]);o[c]-=f[c]+h,u.position==="top"?o.y+=f.height+h:u.position==="left"&&(o.x+=f.width+h)}}}),l()),w(this._coordsList,function(u){u.calcAffineTransform()});function l(){w(s,function(u){var f=u.isHorizontal(),c=f?[0,o.width]:[0,o.height],h=u.inverse?1:0;u.setExtent(c[h],c[1-h]),Mx(u,f?o.x:o.y)})}},r.prototype.getAxis=function(t,e){var n=this._axesMap[t];if(n!=null)return n[e||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(t,e){if(t!=null&&e!=null){var n="x"+t+"y"+e;return this._coordsMap[n]}H(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var a=0,i=this._coordsList;a0?"top":"bottom",i="center"):Da(a-Ot)?(o=n>0?"bottom":"top",i="center"):(o="middle",a>0&&a0?"right":"left":i=n>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:o}},r.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},r.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},r}(),of={axisLine:function(r,t,e,n){var a=t.get(["axisLine","show"]);if(a==="auto"&&r.handleAutoShown&&(a=r.handleAutoShown("axisLine")),!!a){var i=t.axis.getExtent(),o=n.transform,s=[i[0],0],l=[i[1],0],u=s[0]>l[0];o&&(Jt(s,s,o),Jt(l,l,o));var f=N({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),c=new er({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:f,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});mn(c.shape,c.style.lineWidth),c.anid="line",e.add(c);var h=t.get(["axisLine","symbol"]);if(h!=null){var v=t.get(["axisLine","symbolSize"]);z(h)&&(h=[h,h]),(z(v)||oe(v))&&(v=[v,v]);var d=bh(t.get(["axisLine","symbolOffset"])||0,v),p=v[0],m=v[1];w([{rotate:r.rotation+Math.PI/2,offset:d[0],r:0},{rotate:r.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(g,y){if(h[y]!=="none"&&h[y]!=null){var _=nr(h[y],-p/2,-m/2,p,m,f.stroke,!0),S=g.r+g.offset,b=u?l:s;_.attr({rotation:g.rotate,x:b[0]+S*Math.cos(r.rotation),y:b[1]-S*Math.sin(r.rotation),silent:!0,z2:11}),e.add(_)}})}}},axisTickLabel:function(r,t,e,n){var a=kx(e,n,t,r),i=Ex(e,n,t,r);if(Px(t,i,a),Rx(e,n,t,r.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=xd(F(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));Cd(o)}},axisName:function(r,t,e,n){var a=vn(r.axisName,t.get("name"));if(!!a){var i=t.get("nameLocation"),o=r.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),f=u[0]>u[1]?-1:1,c=[i==="start"?u[0]-f*l:i==="end"?u[1]+f*l:(u[0]+u[1])/2,lf(i)?r.labelOffset+o*l:0],h,v=t.get("nameRotate");v!=null&&(v=v*Ot/180);var d;lf(i)?h=jt.innerTextLayout(r.rotation,v!=null?v:r.rotation,o):(h=Lx(r.rotation,i,v||0,u),d=r.axisNameAvailableWidth,d!=null&&(d=Math.abs(d/Math.sin(h.rotation)),!isFinite(d)&&(d=null)));var p=s.getFont(),m=t.get("nameTruncate",!0)||{},g=m.ellipsis,y=vn(r.nameTruncateMaxWidth,m.maxWidth,d),_=new be({x:c[0],y:c[1],rotation:h.rotation,silent:jt.isLabelSilent(t),style:Vt(s,{text:a,font:p,overflow:"truncate",width:y,ellipsis:g,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||h.textAlign,verticalAlign:s.get("verticalAlign")||h.textVerticalAlign}),z2:1});if(Xa({el:_,componentModel:t,itemName:a}),_.__fullText=a,_.anid="name",t.get("triggerEvent")){var S=jt.makeAxisEventDataBase(t);S.targetType="axisName",S.name=a,J(_).eventData=S}n.add(_),_.updateTransform(),e.add(_),_.decomposeTransform()}}};function Lx(r,t,e,n){var a=Hc(e-r),i,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return Da(a-Ot/2)?(o=l?"bottom":"top",i="center"):Da(a-Ot*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",aOt/2?i=l?"left":"right":i=l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function Px(r,t,e){if(!ud(r.axis)){var n=r.get(["axisLabel","showMinLabel"]),a=r.get(["axisLabel","showMaxLabel"]);t=t||[],e=e||[];var i=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=e[0],f=e[1],c=e[e.length-1],h=e[e.length-2];n===!1?(Ne(i),Ne(u)):sf(i,o)&&(n?(Ne(o),Ne(f)):(Ne(i),Ne(u))),a===!1?(Ne(s),Ne(c)):sf(l,s)&&(a?(Ne(l),Ne(h)):(Ne(s),Ne(c)))}}function Ne(r){r&&(r.ignore=!0)}function sf(r,t){var e=r&&r.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!e||!n)){var a=Pc([]);return Fc(a,a,-r.rotation),e.applyTransform(uo([],a,r.getLocalTransform())),n.applyTransform(uo([],a,t.getLocalTransform())),e.intersect(n)}}function lf(r){return r==="middle"||r==="center"}function Ad(r,t,e,n,a){for(var i=[],o=[],s=[],l=0;l=0||r===t}function zx(r){var t=Ks(r);if(!!t){var e=t.axisPointerModel,n=t.axis.scale,a=e.option,i=e.get("status"),o=e.get("value");o!=null&&(o=n.parse(o));var s=Ho(e);i==null&&(a.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),os)return!0;if(o){var l=Ks(t).seriesDataCount,u=a.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},r.prototype.makeElOption=function(t,e,n,a,i){},r.prototype.createPointerEl=function(t,e,n,a){var i=e.pointer;if(i){var o=Kt(t).pointerEl=new Mm[i.type](cf(e.pointer));t.add(o)}},r.prototype.createLabelEl=function(t,e,n,a){if(e.label){var i=Kt(t).labelEl=new be(cf(e.label));t.add(i),hf(i,a)}},r.prototype.updatePointerEl=function(t,e,n){var a=Kt(t).pointerEl;a&&e.pointer&&(a.setStyle(e.pointer.style),n(a,{shape:e.pointer.shape}))},r.prototype.updateLabelEl=function(t,e,n,a){var i=Kt(t).labelEl;i&&(i.setStyle(e.label.style),n(i,{x:e.label.x,y:e.label.y}),hf(i,a))},r.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e=this._axisPointerModel,n=this._api.getZr(),a=this._handle,i=e.getModel("handle"),o=e.get("status");if(!i.get("show")||!o||o==="hide"){a&&n.remove(a),this._handle=null;return}var s;this._handle||(s=!0,a=this._handle=Za(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Jp(u.event)},onmousedown:Yi(this._onHandleDragMove,this,0,0),drift:Yi(this._onHandleDragMove,this),ondragend:Yi(this._onHandleDragEnd,this)}),n.add(a)),df(a,e,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");O(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,dh(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},r.prototype._moveHandleToValue=function(t,e){vf(this._axisPointerModel,!e&&this._moveAnimation,this._handle,$i(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(!!n){this._dragging=!0;var a=this.updateHandleTransform($i(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=a,n.stopAnimation(),n.attr($i(a)),Kt(n).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(!!t){var e=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(!!t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,a=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),a&&e.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),Lo(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}},r}();function vf(r,t,e,n){kd(Kt(e).lastProp,n)||(Kt(e).lastProp=n,t?Se(e,n,r):(e.stopAnimation(),e.attr(n)))}function kd(r,t){if(H(r)&&H(t)){var e=!0;return w(t,function(n,a){e=e&&kd(r[a],n)}),!!e}else return r===t}function hf(r,t){r[t.get(["label","show"])?"show":"hide"]()}function $i(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function df(r,t,e){var n=t.get("z"),a=t.get("zlevel");r&&r.traverse(function(i){i.type!=="group"&&(n!=null&&(i.z=n),a!=null&&(i.zlevel=a),i.silent=e)})}const jx=qx;function Qx(r){var t=r.get("type"),e=r.getModel(t+"Style"),n;return t==="line"?(n=e.getLineStyle(),n.fill=null):t==="shadow"&&(n=e.getAreaStyle(),n.stroke=null),n}function Jx(r,t,e,n,a){var i=e.get("value"),o=Rd(i,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),l=ti(s.get("padding")||0),u=s.getFont(),f=us(o,u),c=a.position,h=f.width+l[1]+l[3],v=f.height+l[0]+l[2],d=a.align;d==="right"&&(c[0]-=h),d==="center"&&(c[0]-=h/2);var p=a.verticalAlign;p==="bottom"&&(c[1]-=v),p==="middle"&&(c[1]-=v/2),eb(c,h,v,n);var m=s.get("backgroundColor");(!m||m==="auto")&&(m=t.get(["axisLine","lineStyle","color"])),r.label={x:c[0],y:c[1],style:Vt(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:m}),z2:10}}function eb(r,t,e,n){var a=n.getWidth(),i=n.getHeight();r[0]=Math.min(r[0]+t,a)-t,r[1]=Math.min(r[1]+e,i)-e,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function Rd(r,t,e,n,a){r=t.scale.parse(r);var i=t.scale.getLabel({value:r},{precision:a.precision}),o=a.formatter;if(o){var s={value:$s(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};w(n,function(l){var u=e.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,c=u&&u.getDataParams(f);c&&s.seriesData.push(c)}),z(o)?i=o.replace("{value}",i):U(o)&&(i=o(s))}return i}function Ed(r,t,e){var n=tg();return Fc(n,n,e.rotation),eg(n,n,e.position),xs([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],n)}function tb(r,t,e,n,a,i){var o=Dd.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=a.get(["label","margin"]),Jx(t,n,a,i,{position:Ed(n.axis,r,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function rb(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function nb(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}var ab=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,n,a,i,o){var s=a.axis,l=s.grid,u=i.get("type"),f=pf(l,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var h=Qx(i),v=ib[u](s,c,f);v.style=h,e.graphicKey=v.type,e.pointer=v}var d=Wo(l.model,a);tb(n,e,d,a,i,o)},t.prototype.getHandleTransform=function(e,n,a){var i=Wo(n.axis.grid.model,n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=Ed(n.axis,e,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,n,a,i){var o=a.axis,s=o.grid,l=o.getGlobalExtent(!0),u=pf(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,c=[e.x,e.y];c[f]+=n[f],c[f]=Math.min(l[1],c[f]),c[f]=Math.max(l[0],c[f]);var h=(u[1]+u[0])/2,v=[h,h];v[f]=c[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:e.rotation,cursorPoint:v,tooltipOption:d[f]}},t}(jx);function pf(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var ib={line:function(r,t,e){var n=rb([t,e[0]],[t,e[1]],gf(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,t,e){var n=Math.max(1,r.getBandWidth()),a=e[1]-e[0];return{type:"Rect",shape:nb([t-n/2,e[0]],[n,a],gf(r))}}};function gf(r){return r.dim==="x"?0:1}const ob=ab;var sb=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(ae);const lb=sb;var pt=le(),ub=w;function Od(r,t,e){if(!fe.node){var n=t.getZr();pt(n).records||(pt(n).records={}),fb(n,t);var a=pt(n).records[r]||(pt(n).records[r]={});a.handler=e}}function fb(r,t){if(pt(r).initialized)return;pt(r).initialized=!0,e("click",Q(mf,"click")),e("mousemove",Q(mf,"mousemove")),e("globalout",vb);function e(n,a){r.on(n,function(i){var o=hb(t);ub(pt(r).records,function(s){s&&a(s,i,o.dispatchAction)}),cb(o.pendings,t)})}}function cb(r,t){var e=r.showTip.length,n=r.hideTip.length,a;e?a=r.showTip[e-1]:n&&(a=r.hideTip[n-1]),a&&(a.dispatchAction=null,t.dispatchAction(a))}function vb(r,t,e){r.handler("leave",null,e)}function mf(r,t,e,n){t.handler(r,e,n)}function hb(r){var t={showTip:[],hideTip:[]},e=function(n){var a=t[n.type];a?a.push(n):(n.dispatchAction=e,r.dispatchAction(n))};return{dispatchAction:e,pendings:t}}function Yo(r,t){if(!fe.node){var e=t.getZr(),n=(pt(e).records||{})[r];n&&(pt(e).records[r]=null)}}var db=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){var i=n.getComponent("tooltip"),o=e.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";Od("axisPointer",a,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(e,n){Yo("axisPointer",n)},t.prototype.dispose=function(e,n){Yo("axisPointer",n)},t.type="axisPointer",t}(He);const pb=db;function Nd(r,t){var e=[],n=r.seriesIndex,a;if(n==null||!(a=t.getSeriesByIndex(n)))return{point:[]};var i=a.getData(),o=tr(i,r);if(o==null||o<0||O(o))return{point:[]};var s=i.getItemGraphicEl(o),l=a.coordinateSystem;if(a.getTooltipPosition)e=a.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),c=f.dim,h=u.dim,v=c==="x"||c==="radius"?1:0,d=i.mapDimension(h),p=[];p[v]=i.get(d,o),p[1-v]=i.get(i.getCalculationInfo("stackResultDimension"),o),e=l.dataToPoint(p)||[]}else e=l.dataToPoint(i.getValues(F(l.dimensions,function(g){return i.mapDimension(g)}),o))||[];else if(s){var m=s.getBoundingRect().clone();m.applyTransform(s.transform),e=[m.x+m.width/2,m.y+m.height/2]}return{point:e,el:s}}var yf=le();function gb(r,t,e){var n=r.currTrigger,a=[r.x,r.y],i=r,o=r.dispatchAction||ne(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(!!s){wa(a)&&(a=Nd({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},t).point);var l=wa(a),u=i.axesInfo,f=s.axesInfo,c=n==="leave"||wa(a),h={},v={},d={list:[],map:{}},p={showPointer:Q(yb,v),showTooltip:Q(_b,d)};w(s.coordSysMap,function(g,y){var _=l||g.containPoint(a);w(s.coordSysAxesInfo[y],function(S,b){var x=S.axis,C=wb(u,S);if(!c&&_&&(!u||C)){var T=C&&C.value;T==null&&!l&&(T=x.pointToData(a)),T!=null&&_f(S,T,p,!1,h)}})});var m={};return w(f,function(g,y){var _=g.linkGroup;_&&!v[y]&&w(_.axesInfo,function(S,b){var x=v[b];if(S!==g&&x){var C=x.value;_.mapper&&(C=g.axis.scale.parse(_.mapper(C,Sf(S),Sf(g)))),m[g.key]=C}})}),w(m,function(g,y){_f(f[y],g,p,!0,h)}),Sb(v,f,h),xb(d,a,r,o),bb(f,o,e),h}}function _f(r,t,e,n,a){var i=r.axis;if(!(i.scale.isBlank()||!i.containData(t))){if(!r.involveSeries){e.showPointer(r,t);return}var o=mb(t,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&a.seriesIndex==null&&N(a,s[0]),!n&&r.snap&&i.containData(l)&&l!=null&&(t=l),e.showPointer(r,t,s),e.showTooltip(r,o,l)}}function mb(r,t){var e=t.axis,n=e.dim,a=r,i=[],o=Number.MAX_VALUE,s=-1;return w(t.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(n),c,h;if(l.getAxisTooltipData){var v=l.getAxisTooltipData(f,r,e);h=v.dataIndices,c=v.nestestValue}else{if(h=l.getData().indicesOfNearest(f[0],r,e.type==="category"?.5:null),!h.length)return;c=l.getData().get(f[0],h[0])}if(!(c==null||!isFinite(c))){var d=r-c,p=Math.abs(d);p<=o&&((p=0&&s<0)&&(o=p,s=d,a=c,i.length=0),w(h,function(m){i.push({seriesIndex:l.seriesIndex,dataIndexInside:m,dataIndex:l.getData().getRawIndex(m)})}))}}),{payloadBatch:i,snapToValue:a}}function yb(r,t,e,n){r[t.key]={value:e,payloadBatch:n}}function _b(r,t,e,n){var a=e.payloadBatch,i=t.axis,o=i.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!a.length)){var l=t.coordSys.model,u=An(l),f=r.map[u];f||(f=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(f)),f.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function Sb(r,t,e){var n=e.axesInfo=[];w(t,function(a,i){var o=a.axisPointerModel.option,s=r[i];s?(!a.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!a.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:o.value})})}function xb(r,t,e,n){if(wa(t)||!r.list.length){n({type:"hideTip"});return}var a=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:e.tooltipOption,position:e.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:r.list})}function bb(r,t,e){var n=e.getZr(),a="axisPointerLastHighlights",i=yf(n)[a]||{},o=yf(n)[a]={};w(r,function(u,f){var c=u.axisPointerModel.option;c.status==="show"&&w(c.seriesDataIndices,function(h){var v=h.seriesIndex+" | "+h.dataIndex;o[v]=h})});var s=[],l=[];w(i,function(u,f){!o[f]&&l.push(u)}),w(o,function(u,f){!i[f]&&s.push(u)}),l.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function wb(r,t){for(var e=0;e<(r||[]).length;e++){var n=r[e];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function Sf(r){var t=r.axis.model,e={},n=e.axisDim=r.axis.dim;return e.axisIndex=e[n+"AxisIndex"]=t.componentIndex,e.axisName=e[n+"AxisName"]=t.name,e.axisId=e[n+"AxisId"]=t.id,e}function wa(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function Bd(r){Md.registerAxisPointerClass("CartesianAxisPointer",ob),r.registerComponentModel(lb),r.registerComponentView(pb),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!O(e)&&(t.axisPointer.link=[e])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=Ox(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},gb)}function OT(r){_t(Pd),_t(Bd)}var xf="\0_ec_interaction_mutex";function Cb(r,t,e){var n=Vd(r);n[t]=e}function Tb(r,t,e){var n=Vd(r),a=n[t];a===e&&(n[t]=null)}function Vd(r){return r[xf]||(r[xf]={})}ft({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},mt);var Ab={axisPointer:1,tooltip:1,brush:1};function Db(r,t,e){var n=t.getComponentByElement(r.topTarget),a=n&&n.coordinateSystem;return n&&n!==e&&!Ab.hasOwnProperty(n.mainType)&&a&&a.model!==e}function Fd(r,t,e,n,a,i){r=r||0;var o=e[1]-e[0];if(a!=null&&(a=gr(a,[0,o])),i!=null&&(i=Math.max(i,a!=null?a:0)),n==="all"){var s=Math.abs(t[1]-t[0]);s=gr(s,[0,o]),a=i=gr(s,[a,i]),n=0}t[0]=gr(t[0],e),t[1]=gr(t[1],e);var l=Zi(t,n);t[n]+=r;var u=a||0,f=e.slice();l.sign<0?f[0]+=u:f[1]-=u,t[n]=gr(t[n],f);var c;return c=Zi(t,n),a!=null&&(c.sign!==l.sign||c.spani&&(t[1-n]=t[n]+c.sign*i),t}function Zi(r,t){var e=r[t]-r[1-t];return{span:Math.abs(e),sign:e>0?-1:e<0?1:t?-1:1}}function gr(r,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,r))}var ar=!0,Dn=Math.min,Lr=Math.max,Mb=Math.pow,Ib=1e4,Lb=6,Pb=6,bf="globalPan",kb={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},Rb={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},wf={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},Eb=0,Ob=function(r){B(t,r);function t(e){var n=r.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=e,n.group=new _e,n._uid="brushController_"+Eb++,w(Wb,function(a,i){this._handlers[i]=ne(a,this)},n),n}return t.prototype.enableBrush=function(e){return this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},t.prototype._doEnableBrush=function(e){var n=this._zr;this._enableGlobalPan||Cb(n,bf,this._uid),w(this._handlers,function(a,i){n.on(i,a)}),this._brushType=e.brushType,this._brushOption=K(X(wf),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;Tb(e,bf,this._uid),w(this._handlers,function(n,a){e.off(a,n)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var n=this._panels={};w(e,function(a){n[a.panelId]=X(a)})}else this._panels=null;return this},t.prototype.mount=function(e){e=e||{},this._enableGlobalPan=e.enableGlobalPan;var n=this.group;return this._zr.add(n),n.attr({x:e.x||0,y:e.y||0,rotation:e.rotation||0,scaleX:e.scaleX||1,scaleY:e.scaleY||1}),this._transform=n.getLocalTransform(),this},t.prototype.updateCovers=function(e){e=F(e,function(h){return K(X(wf),h,!0)});var n="\0-brush-index-",a=this._covers,i=this._covers=[],o=this,s=this._creatingCover;return new Cn(a,e,u,l).add(f).update(f).remove(c).execute(),this;function l(h,v){return(h.id!=null?h.id:n+v)+"-"+h.brushType}function u(h,v){return l(h.__brushOption,v)}function f(h,v){var d=e[h];if(v!=null&&a[v]===s)i[h]=a[v];else{var p=i[h]=v!=null?(a[v].__brushOption=d,a[v]):Gd(o,zd(o,d));qs(o,p)}}function c(h){a[h]!==s&&o.group.remove(a[h])}},t.prototype.unmount=function(){return this.enableBrush(!1),$o(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(kn);function zd(r,t){var e=ci[t.brushType].createCover(r,t);return e.__brushOption=t,Hd(e,t),r.group.add(e),e}function Gd(r,t){var e=js(t);return e.endCreating&&(e.endCreating(r,t),Hd(t,t.__brushOption)),t}function Wd(r,t){var e=t.__brushOption;js(t).updateCoverShape(r,t,e.range,e)}function Hd(r,t){var e=t.z;e==null&&(e=Ib),r.traverse(function(n){n.z=e,n.z2=e})}function qs(r,t){js(t).updateCommon(r,t),Wd(r,t)}function js(r){return ci[r.__brushOption.brushType]}function Qs(r,t,e){var n=r._panels;if(!n)return ar;var a,i=r._transform;return w(n,function(o){o.isTargetByCursor(t,e,i)&&(a=o)}),a}function Ud(r,t){var e=r._panels;if(!e)return ar;var n=t.__brushOption.panelId;return n!=null?e[n]:ar}function $o(r){var t=r._covers,e=t.length;return w(t,function(n){r.group.remove(n)},r),t.length=0,!!e}function ir(r,t){var e=F(r._covers,function(n){var a=n.__brushOption,i=X(a.range);return{brushType:a.brushType,panelId:a.panelId,range:i}});r.trigger("brush",{areas:e,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function Nb(r){var t=r._track;if(!t.length)return!1;var e=t[t.length-1],n=t[0],a=e[0]-n[0],i=e[1]-n[1],o=Mb(a*a+i*i,.5);return o>Lb}function Yd(r){var t=r.length-1;return t<0&&(t=0),[r[0],r[t]]}function $d(r,t,e,n){var a=new _e;return a.add(new pe({name:"main",style:Js(e),silent:!0,draggable:!0,cursor:"move",drift:Q(Cf,r,t,a,["n","s","w","e"]),ondragend:Q(ir,t,{isEnd:!0})})),w(n,function(i){a.add(new pe({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Q(Cf,r,t,a,i),ondragend:Q(ir,t,{isEnd:!0})}))}),a}function Zd(r,t,e,n){var a=n.brushStyle.lineWidth||0,i=Lr(a,Pb),o=e[0][0],s=e[1][0],l=o-a/2,u=s-a/2,f=e[0][1],c=e[1][1],h=f-i+a/2,v=c-i+a/2,d=f-o,p=c-s,m=d+a,g=p+a;ht(r,t,"main",o,s,d,p),n.transformable&&(ht(r,t,"w",l,u,i,g),ht(r,t,"e",h,u,i,g),ht(r,t,"n",l,u,m,i),ht(r,t,"s",l,v,m,i),ht(r,t,"nw",l,u,i,i),ht(r,t,"ne",h,u,i,i),ht(r,t,"sw",l,v,i,i),ht(r,t,"se",h,v,i,i))}function Zo(r,t){var e=t.__brushOption,n=e.transformable,a=t.childAt(0);a.useStyle(Js(e)),a.attr({silent:!n,cursor:n?"move":"default"}),w([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=t.childOfName(i.join("")),s=i.length===1?Xo(r,i[0]):Vb(r,i);o&&o.attr({silent:!n,invisible:!n,cursor:n?Rb[s]+"-resize":null})})}function ht(r,t,e,n,a,i,o){var s=t.childOfName(e);s&&s.setShape(zb(el(r,t,[[n,a],[n+i,a+o]])))}function Js(r){return ee({strokeNoScale:!0},r.brushStyle)}function Xd(r,t,e,n){var a=[Dn(r,e),Dn(t,n)],i=[Lr(r,e),Lr(t,n)];return[[a[0],i[0]],[a[1],i[1]]]}function Bb(r){return Ss(r.group)}function Xo(r,t){var e={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},a=dv(e[t],Bb(r));return n[a]}function Vb(r,t){var e=[Xo(r,t[0]),Xo(r,t[1])];return(e[0]==="e"||e[0]==="w")&&e.reverse(),e.join("")}function Cf(r,t,e,n,a,i){var o=e.__brushOption,s=r.toRectRange(o.range),l=Kd(t,a,i);w(n,function(u){var f=kb[u];s[f[0]][f[1]]+=l[f[0]]}),o.range=r.fromRectRange(Xd(s[0][0],s[1][0],s[0][1],s[1][1])),qs(t,e),ir(t,{isEnd:!1})}function Fb(r,t,e,n){var a=t.__brushOption.range,i=Kd(r,e,n);w(a,function(o){o[0]+=i[0],o[1]+=i[1]}),qs(r,t),ir(r,{isEnd:!1})}function Kd(r,t,e){var n=r.group,a=n.transformCoordToLocal(t,e),i=n.transformCoordToLocal(0,0);return[a[0]-i[0],a[1]-i[1]]}function el(r,t,e){var n=Ud(r,t);return n&&n!==ar?n.clipPath(e,r._transform):X(e)}function zb(r){var t=Dn(r[0][0],r[1][0]),e=Dn(r[0][1],r[1][1]),n=Lr(r[0][0],r[1][0]),a=Lr(r[0][1],r[1][1]);return{x:t,y:e,width:n-t,height:a-e}}function Gb(r,t,e){if(!(!r._brushType||Hb(r,t.offsetX,t.offsetY))){var n=r._zr,a=r._covers,i=Qs(r,t,e);if(!r._dragging)for(var o=0;on.getWidth()||e<0||e>n.getHeight()}var ci={lineX:Df(0),lineY:Df(1),rect:{createCover:function(r,t){function e(n){return n}return $d({toRectRange:e,fromRectRange:e},r,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var t=Yd(r);return Xd(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(r,t,e,n){Zd(r,t,e,n)},updateCommon:Zo,contain:qo},polygon:{createCover:function(r,t){var e=new _e;return e.add(new Ln({name:"main",style:Js(t),silent:!0})),e},getCreatingRange:function(r){return r},endCreating:function(r,t){t.remove(t.childAt(0)),t.add(new ss({name:"main",draggable:!0,drift:Q(Fb,r,t),ondragend:Q(ir,r,{isEnd:!0})}))},updateCoverShape:function(r,t,e,n){t.childAt(0).setShape({points:el(r,t,e)})},updateCommon:Zo,contain:qo}};function Df(r){return{createCover:function(t,e){return $d({toRectRange:function(n){var a=[n,[0,100]];return r&&a.reverse(),a},fromRectRange:function(n){return n[r]}},t,e,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(t){var e=Yd(t),n=Dn(e[0][r],e[1][r]),a=Lr(e[0][r],e[1][r]);return[n,a]},updateCoverShape:function(t,e,n,a){var i,o=Ud(t,e);if(o!==ar&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(r);else{var s=t._zr;i=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[n,i];r&&l.reverse(),Zd(t,e,l,a)},updateCommon:Zo,contain:qo}}const Ub=Ob;function Yb(r){return r=tl(r),function(t){return gv(t,r)}}function $b(r,t){return r=tl(r),function(e){var n=t!=null?t:e,a=n?r.width:r.height,i=n?r.x:r.y;return[i,i+(a||0)]}}function Zb(r,t,e){var n=tl(r);return function(a,i){return n.contain(i[0],i[1])&&!Db(a,t,e)}}function tl(r){return Ee.create(r)}var Mf=["x","y","radius","angle","single"],Xb=["cartesian2d","polar","singleAxis"];function Kb(r){var t=r.get("coordinateSystem");return ie(Xb,t)>=0}function Sr(r){return r+"Axis"}function qb(r,t){var e=W(),n=[],a=W();r.eachComponent({mainType:"dataZoom",query:t},function(f){a.get(f.uid)||s(f)});var i;do i=!1,r.eachComponent("dataZoom",o);while(i);function o(f){!a.get(f.uid)&&l(f)&&(s(f),i=!0)}function s(f){a.set(f.uid,!0),n.push(f),u(f)}function l(f){var c=!1;return f.eachTargetAxis(function(h,v){var d=e.get(h);d&&d[v]&&(c=!0)}),c}function u(f){f.eachTargetAxis(function(c,h){(e.get(c)||e.set(c,[]))[h]=!0})}return n}var Xi=function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},r}(),jb=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._autoThrottle=!0,e._noTarget=!0,e._rangePropMode=["percent","percent"],e}return t.prototype.init=function(e,n,a){var i=If(e);this.settledOption=i,this.mergeDefaultAndTheme(e,a),this._doInit(i)},t.prototype.mergeOption=function(e){var n=If(e);K(this.option,e,!0),K(this.settledOption,n,!0),this._doInit(n)},t.prototype._doInit=function(e){var n=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var a=this.settledOption;w([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(n[i[0]]=a[i[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),n=this._targetAxisInfoMap=W(),a=this._fillSpecifiedTargetAxis(n);a?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var n=!1;return w(Mf,function(a){var i=this.getReferringComponents(Sr(a),Ng);if(!!i.specified){n=!0;var o=new Xi;w(i.models,function(s){o.add(s.componentIndex)}),e.set(a,o)}},this),n},t.prototype._fillAutoTargetAxisByOrient=function(e,n){var a=this.ecModel,i=!0;if(i){var o=n==="vertical"?"y":"x",s=a.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=a.findComponents({mainType:"singleAxis",filter:function(f){return f.get("orient",!0)===n}});l(s,"single")}function l(u,f){var c=u[0];if(!!c){var h=new Xi;if(h.add(c.componentIndex),e.set(f,h),i=!1,f==="x"||f==="y"){var v=c.getReferringComponents("grid",Le).models[0];v&&w(u,function(d){c.componentIndex!==d.componentIndex&&v===d.getReferringComponents("grid",Le).models[0]&&h.add(d.componentIndex)})}}}i&&w(Mf,function(u){if(!!i){var f=a.findComponents({mainType:Sr(u),filter:function(h){return h.get("type",!0)==="category"}});if(f[0]){var c=new Xi;c.add(f[0].componentIndex),e.set(u,c),i=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(n){!e&&(e=n)},this),e==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var n=this.ecModel.option;this.option.throttle=n.animation&&n.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var n=this._rangePropMode,a=this.get("rangeMode");w([["start","startValue"],["end","endValue"]],function(i,o){var s=e[i[0]]!=null,l=e[i[1]]!=null;s&&!l?n[o]="percent":!s&&l?n[o]="value":a?n[o]=a[o]:s&&(n[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(n,a){e==null&&(e=this.ecModel.getComponent(Sr(n),a))},this),e},t.prototype.eachTargetAxis=function(e,n){this._targetAxisInfoMap.each(function(a,i){w(a.indexList,function(o){e.call(n,i,o)})})},t.prototype.getAxisProxy=function(e,n){var a=this.getAxisModel(e,n);if(a)return a.__dzAxisProxy},t.prototype.getAxisModel=function(e,n){var a=this._targetAxisInfoMap.get(e);if(a&&a.indexMap[n])return this.ecModel.getComponent(Sr(e),n)},t.prototype.setRawRange=function(e){var n=this.option,a=this.settledOption;w([["start","startValue"],["end","endValue"]],function(i){(e[i[0]]!=null||e[i[1]]!=null)&&(n[i[0]]=a[i[0]]=e[i[0]],n[i[1]]=a[i[1]]=e[i[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var n=this.option;w(["start","startValue","end","endValue"],function(a){n[a]=e[a]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,n){if(e==null&&n==null){var a=this.findRepresentativeAxisProxy();if(a)return a.getDataValueWindow()}else return this.getAxisProxy(e,n).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var n,a=this._targetAxisInfoMap.keys(),i=0;io[1];if(_&&!S&&!b)return!0;_&&(m=!0),S&&(d=!0),b&&(p=!0)}return m&&d&&p})}else _r(f,function(v){if(i==="empty")l.setData(u=u.map(v,function(p){return s(p)?p:NaN}));else{var d={};d[v]=o,u.selectRange(d)}});_r(f,function(v){u.setApproximateExtent(o,v)})}});function s(l){return l>=o[0]&&l<=o[1]}},r.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._dataExtent;_r(["min","max"],function(a){var i=e.get(a+"Span"),o=e.get(a+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=Et(n[0]+o,n,[0,100],!0):i!=null&&(o=Et(i,[0,100],n,!0)-n[0]),t[a+"Span"]=i,t[a+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,n=this._valueWindow;if(!!e){var a=Wc(n,[0,500]);a=Math.min(a,20);var i=t.axis.scale.rawExtentInfo;e[0]!==0&&i.setDeterminedMinMax("min",+n[0].toFixed(a)),e[1]!==100&&i.setDeterminedMinMax("max",+n[1].toFixed(a)),i.freeze()}},r}();function ow(r,t,e){var n=[1/0,-1/0];_r(e,function(o){GS(n,o.getData(),t)});var a=r.getAxisModel(),i=sd(a.axis.scale,a,n).calculate();return[i.min,i.max]}const sw=iw;var lw={getTargetSeries:function(r){function t(a){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=r.getComponent(Sr(o),s);a(o,s,l,i)})})}t(function(a,i,o,s){o.__dzAxisProxy=null});var e=[];t(function(a,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new sw(a,i,s,r),e.push(o.__dzAxisProxy))});var n=W();return w(e,function(a){w(a.getTargetSeriesModels(),function(i){n.set(i.uid,i)})}),n},overallReset:function(r,t){r.eachComponent("dataZoom",function(e){e.eachTargetAxis(function(n,a){e.getAxisProxy(n,a).reset(e)}),e.eachTargetAxis(function(n,a){e.getAxisProxy(n,a).filterData(e,t)})}),r.eachComponent("dataZoom",function(e){var n=e.findRepresentativeAxisProxy();if(n){var a=n.getDataPercentWindow(),i=n.getDataValueWindow();e.setCalculatedRange({start:a[0],end:a[1],startValue:i[0],endValue:i[1]})}})}};const uw=lw;function fw(r){r.registerAction("dataZoom",function(t,e){var n=qb(e,t);w(n,function(a){a.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var Pf=!1;function cw(r){Pf||(Pf=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,uw),fw(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function vw(r){r.registerComponentModel(ew),r.registerComponentView(aw),cw(r)}var Qe=function(){function r(){}return r}(),jd={};function qr(r,t){jd[r]=t}function Qd(r){return jd[r]}var hw=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){r.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;w(this.option.feature,function(n,a){var i=Qd(a);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(e)),K(n,i.defaultOption))})},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t}(ae);const dw=hw;function pw(r,t,e){var n=t.getBoxLayoutParams(),a=t.get("padding"),i={width:e.getWidth(),height:e.getHeight()},o=Ft(n,i,a);Cr(t.get("orient"),r,t.get("itemGap"),o.width,o.height),ty(r,n,i,a)}function Jd(r,t){var e=ti(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),r=new pe({shape:{x:r.x-e[3],y:r.y-e[0],width:r.width+e[1]+e[3],height:r.height+e[0]+e[2],r:t.get("borderRadius")},style:n,silent:!0,z2:-1}),r}var gw=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,a,i){var o=this.group;if(o.removeAll(),!e.get("show"))return;var s=+e.get("itemSize"),l=e.get("orient")==="vertical",u=e.get("feature")||{},f=this._features||(this._features={}),c=[];w(u,function(d,p){c.push(p)}),new Cn(this._featureNames||[],c).add(h).update(h).remove(Q(h,null)).execute(),this._featureNames=c;function h(d,p){var m=c[d],g=c[p],y=u[m],_=new Ce(y,e,e.ecModel),S;if(i&&i.newTitle!=null&&i.featureName===m&&(y.title=i.newTitle),m&&!g){if(mw(m))S={onclick:_.option.onclick,featureName:m};else{var b=Qd(m);if(!b)return;S=new b}f[m]=S}else if(S=f[g],!S)return;S.uid=Vn("toolbox-feature"),S.model=_,S.ecModel=n,S.api=a;var x=S instanceof Qe;if(!m&&g){x&&S.dispose&&S.dispose(n,a);return}if(!_.get("show")||x&&S.unusable){x&&S.remove&&S.remove(n,a);return}v(_,S,m),_.setIconStatus=function(C,T){var A=this.option,M=this.iconPaths;A.iconStatus=A.iconStatus||{},A.iconStatus[C]=T,M[C]&&(T==="emphasis"?Tr:Ar)(M[C])},S instanceof Qe&&S.render&&S.render(_,n,a,i)}function v(d,p,m){var g=d.getModel("iconStyle"),y=d.getModel(["emphasis","iconStyle"]),_=p instanceof Qe&&p.getIcons?p.getIcons():d.get("icon"),S=d.get("title")||{},b,x;z(_)?(b={},b[m]=_):b=_,z(S)?(x={},x[m]=S):x=S;var C=d.iconPaths={};w(b,function(T,A){var M=Za(T,{},{x:-s/2,y:-s/2,width:s,height:s});M.setStyle(g.getItemStyle());var D=M.ensureState("emphasis");D.style=y.getItemStyle();var I=new be({style:{text:x[A],align:y.get("textAlign"),borderRadius:y.get("textBorderRadius"),padding:y.get("textPadding"),fill:null},ignore:!0});M.setTextContent(I),Xa({el:M,componentModel:e,itemName:A,formatterParamsExtra:{title:x[A]}}),M.__title=x[A],M.on("mouseover",function(){var L=y.getItemStyle(),P=l?e.get("right")==null&&e.get("left")!=="right"?"right":"left":e.get("bottom")==null&&e.get("top")!=="bottom"?"bottom":"top";I.setStyle({fill:y.get("textFill")||L.fill||L.stroke||"#000",backgroundColor:y.get("textBackgroundColor")}),M.setTextConfig({position:y.get("textPosition")||P}),I.ignore=!e.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){d.get(["iconStatus",A])!=="emphasis"&&a.leaveEmphasis(this),I.hide()}),(d.get(["iconStatus",A])==="emphasis"?Tr:Ar)(M),o.add(M),M.on("click",ne(p.onclick,p,n,a,A)),C[A]=M})}pw(o,e,a),o.add(Jd(o.getBoundingRect(),e)),l||o.eachChild(function(d){var p=d.__title,m=d.ensureState("emphasis"),g=m.textConfig||(m.textConfig={}),y=d.getTextContent(),_=y&&y.ensureState("emphasis");if(_&&!U(_)&&p){var S=_.style||(_.style={}),b=us(p,be.makeFont(S)),x=d.x+o.x,C=d.y+o.y+s,T=!1;C+b.height>a.getHeight()&&(g.position="top",T=!0);var A=T?-5-b.height:s+10;x+b.width/2>a.getWidth()?(g.position=["100%",A],S.align="right"):x-b.width/2<0&&(g.position=[0,A],S.align="left")}})},t.prototype.updateView=function(e,n,a,i){w(this._features,function(o){o instanceof Qe&&o.updateView&&o.updateView(o.model,n,a,i)})},t.prototype.remove=function(e,n){w(this._features,function(a){a instanceof Qe&&a.remove&&a.remove(e,n)}),this.group.removeAll()},t.prototype.dispose=function(e,n){w(this._features,function(a){a instanceof Qe&&a.dispose&&a.dispose(e,n)})},t.type="toolbox",t}(He);function mw(r){return r.indexOf("my")===0}const yw=gw;var _w=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){var a=this.model,i=a.get("name")||e.get("title.0.text")||"echarts",o=n.getZr().painter.getType()==="svg",s=o?"svg":a.get("type",!0)||"png",l=n.getConnectedDataURL({type:s,backgroundColor:a.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:a.get("connectedBackgroundColor"),excludeComponents:a.get("excludeComponents"),pixelRatio:a.get("pixelRatio")}),u=fe.browser;if(U(MouseEvent)&&(u.newEdge||!u.ie&&!u.edge)){var f=document.createElement("a");f.download=i+"."+s,f.target="_blank",f.href=l;var c=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});f.dispatchEvent(c)}else if(window.navigator.msSaveOrOpenBlob||o){var h=l.split(","),v=h[0].indexOf("base64")>-1,d=o?decodeURIComponent(h[1]):h[1];v&&(d=window.atob(d));var p=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var m=d.length,g=new Uint8Array(m);m--;)g[m]=d.charCodeAt(m);var y=new Blob([g]);window.navigator.msSaveOrOpenBlob(y,p)}else{var _=document.createElement("iframe");document.body.appendChild(_);var S=_.contentWindow,b=S.document;b.open("image/svg+xml","replace"),b.write(d),b.close(),S.focus(),b.execCommand("SaveAs",!0,p),document.body.removeChild(_)}}else{var x=a.get("lang"),C='',T=window.open();T.document.write(C),T.document.title=i}},t.getDefaultOption=function(e){var n={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:e.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return n},t}(Qe);const Sw=_w;var kf="__ec_magicType_stack__",xw=[["line","bar"],["stack"]],bw=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getIcons=function(){var e=this.model,n=e.get("icon"),a={};return w(e.get("type"),function(i){n[i]&&(a[i]=n[i])}),a},t.getDefaultOption=function(e){var n={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:e.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return n},t.prototype.onclick=function(e,n,a){var i=this.model,o=i.get(["seriesIndex",a]);if(!!Rf[a]){var s={series:[]},l=function(c){var h=c.subType,v=c.id,d=Rf[a](h,v,c,i);d&&(ee(d,c.option),s.series.push(d));var p=c.coordinateSystem;if(p&&p.type==="cartesian2d"&&(a==="line"||a==="bar")){var m=p.getAxesByScale("ordinal")[0];if(m){var g=m.dim,y=g+"Axis",_=c.getReferringComponents(y,Le).models[0],S=_.componentIndex;s[y]=s[y]||[];for(var b=0;b<=S;b++)s[y][S]=s[y][S]||{};s[y][S].boundaryGap=a==="bar"}}};w(xw,function(c){ie(c,a)>=0&&w(c,function(h){i.setIconStatus(h,"normal")})}),i.setIconStatus(a,"emphasis"),e.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,f=a;a==="stack"&&(u=K({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",a])!=="emphasis"&&(f="tiled")),n.dispatchAction({type:"changeMagicType",currentType:f,newOption:s,newTitle:u,featureName:"magicType"})}},t}(Qe),Rf={line:function(r,t,e,n){if(r==="bar")return K({id:t,type:"line",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},n.get(["option","line"])||{},!0)},bar:function(r,t,e,n){if(r==="line")return K({id:t,type:"bar",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},n.get(["option","bar"])||{},!0)},stack:function(r,t,e,n){var a=e.get("stack")===kf;if(r==="line"||r==="bar")return n.setIconStatus("stack",a?"normal":"emphasis"),K({id:t,stack:a?"":kf},n.get(["option","stack"])||{},!0)}};ft({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,t){t.mergeOption(r.newOption)});const ww=bw;var vi=new Array(60).join("-"),Pr=" ";function Cw(r){var t={},e=[],n=[];return r.eachRawSeries(function(a){var i=a.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;t[s]||(t[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},n.push({axisDim:o.dim,axisIndex:o.index})),t[s].series.push(a)}else e.push(a)}else e.push(a)}),{seriesGroupByCategoryAxis:t,other:e,meta:n}}function Tw(r){var t=[];return w(r,function(e,n){var a=e.categoryAxis,i=e.valueAxis,o=i.dim,s=[" "].concat(F(e.series,function(v){return v.name})),l=[a.model.getCategories()];w(e.series,function(v){var d=v.getRawData();l.push(v.getRawData().mapArray(d.mapDimension(o),function(p){return p}))});for(var u=[s.join(Pr)],f=0;f=0)return!0}var jo=new RegExp("["+Pr+"]+","g");function Iw(r){for(var t=r.split(/\n+/g),e=za(t.shift()).split(jo),n=[],a=F(e,function(l){return{name:l,data:[]}}),i=0;i=0;i--){var o=e[i];if(o[a])break}if(i<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:a})[0];if(s){var l=s.getPercentRange();e[0][a]={dataZoomId:a,start:l[0],end:l[1]}}}}),e.push(t)}function Nw(r){var t=rl(r),e=t[t.length-1];t.length>1&&t.pop();var n={};return ep(e,function(a,i){for(var o=t.length-1;o>=0;o--)if(a=t[o][i],a){n[i]=a;break}}),n}function Bw(r){tp(r).snapshots=null}function Vw(r){return rl(r).length}function rl(r){var t=tp(r);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var Fw=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){Bw(e),n.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){var n={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:e.getLocaleModel().get(["toolbox","restore","title"])};return n},t}(Qe);ft({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,t){t.resetOption("recreate")});const zw=Fw;var Gw=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],Ww=function(){function r(t,e,n){var a=this;this._targetInfoList=[];var i=Ef(e,t);w(Hw,function(o,s){(!n||!n.include||ie(n.include,s)>=0)&&o(i,a._targetInfoList)})}return r.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,function(n,a,i){if((n.coordRanges||(n.coordRanges=[])).push(a),!n.coordRange){n.coordRange=a;var o=Ki[n.brushType](0,i,a);n.__rangeOffset={offset:Vf[n.brushType](o.values,n.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},r.prototype.matchOutputRanges=function(t,e,n){w(t,function(a){var i=this.findTargetInfo(a,e);i&&i!==!0&&w(i.coordSyses,function(o){var s=Ki[a.brushType](1,o,a.range,!0);n(a,s.values,o,e)})},this)},r.prototype.setInputRanges=function(t,e){w(t,function(n){var a=this.findTargetInfo(n,e);if(n.range=n.range||[],a&&a!==!0){n.panelId=a.panelId;var i=Ki[n.brushType](0,a.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?Vf[n.brushType](i.values,o.offset,Uw(i.xyMinMax,o.xyMinMax)):i.values}},this)},r.prototype.makePanelOpts=function(t,e){return F(this._targetInfoList,function(n){var a=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e?e(n):null,clipPath:Yb(a),isTargetByCursor:Zb(a,t,n.coordSysModel),getLinearBrushOtherExtent:$b(a)}})},r.prototype.controlSeries=function(t,e,n){var a=this.findTargetInfo(t,n);return a===!0||a&&ie(a.coordSyses,e.coordinateSystem)>=0},r.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,a=Ef(e,t),i=0;ir[1]&&r.reverse(),r}function Ef(r,t){return nn(r,t,{includeMainTypes:Gw})}var Hw={grid:function(r,t){var e=r.xAxisModels,n=r.yAxisModels,a=r.gridModels,i=W(),o={},s={};!e&&!n&&!a||(w(e,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),w(n,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),w(a,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var u=l.coordinateSystem,f=[];w(u.getCartesians(),function(c,h){(ie(e,c.getAxis("x").model)>=0||ie(n,c.getAxis("y").model)>=0)&&f.push(c)}),t.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:f[0],coordSyses:f,getPanelRect:Nf.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(r,t){w(r.geoModels,function(e){var n=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:Nf.geo})})}},Of=[function(r,t){var e=r.xAxisModel,n=r.yAxisModel,a=r.gridModel;return!a&&e&&(a=e.axis.grid.model),!a&&n&&(a=n.axis.grid.model),a&&a===t.gridModel},function(r,t){var e=r.geoModel;return e&&e===t.geoModel}],Nf={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,t=r.getBoundingRect().clone();return t.applyTransform(Ss(r)),t}},Ki={lineX:Q(Bf,0),lineY:Q(Bf,1),rect:function(r,t,e,n){var a=r?t.pointToData([e[0][0],e[1][0]],n):t.dataToPoint([e[0][0],e[1][0]],n),i=r?t.pointToData([e[0][1],e[1][1]],n):t.dataToPoint([e[0][1],e[1][1]],n),o=[Qo([a[0],i[0]]),Qo([a[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(r,t,e,n){var a=[[1/0,-1/0],[1/0,-1/0]],i=F(e,function(o){var s=r?t.pointToData(o,n):t.dataToPoint(o,n);return a[0][0]=Math.min(a[0][0],s[0]),a[1][0]=Math.min(a[1][0],s[1]),a[0][1]=Math.max(a[0][1],s[0]),a[1][1]=Math.max(a[1][1],s[1]),s});return{values:i,xyMinMax:a}}};function Bf(r,t,e,n){var a=e.getAxis(["x","y"][r]),i=Qo(F([0,1],function(s){return t?a.coordToData(a.toLocalCoord(n[s]),!0):a.toGlobalCoord(a.dataToCoord(n[s]))})),o=[];return o[r]=i,o[1-r]=[NaN,NaN],{values:i,xyMinMax:o}}var Vf={lineX:Q(Ff,0),lineY:Q(Ff,1),rect:function(r,t,e){return[[r[0][0]-e[0]*t[0][0],r[0][1]-e[0]*t[0][1]],[r[1][0]-e[1]*t[1][0],r[1][1]-e[1]*t[1][1]]]},polygon:function(r,t,e){return F(r,function(n,a){return[n[0]-e[0]*t[a][0],n[1]-e[1]*t[a][1]]})}};function Ff(r,t,e,n){return[t[0]-n[r]*e[0],t[1]-n[r]*e[1]]}function Uw(r,t){var e=zf(r),n=zf(t),a=[e[0]/n[0],e[1]/n[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function zf(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}const rp=Ww;var Jo=w,Yw=kg("toolbox-dataZoom_"),$w=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,a,i){this._brushController||(this._brushController=new Ub(a.getZr()),this._brushController.on("brush",ne(this._onBrush,this)).mount()),Kw(e,n,this,i,a),Xw(e,n)},t.prototype.onclick=function(e,n,a){Zw[a].call(this)},t.prototype.remove=function(e,n){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,n){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var n=e.areas;if(!e.isEnd||!n.length)return;var a={},i=this.ecModel;this._brushController.updateCovers([]);var o=new rp(nl(this.model),i,{include:["grid"]});o.matchOutputRanges(n,i,function(u,f,c){if(c.type==="cartesian2d"){var h=u.brushType;h==="rect"?(s("x",c,f[0]),s("y",c,f[1])):s({lineX:"x",lineY:"y"}[h],c,f)}}),Ow(i,a),this._dispatchZoomAction(a);function s(u,f,c){var h=f.getAxis(u),v=h.model,d=l(u,v,i),p=d.findRepresentativeAxisProxy(v).getMinMaxSpan();(p.minValueSpan!=null||p.maxValueSpan!=null)&&(c=Fd(0,c.slice(),h.scale.getExtent(),0,p.minValueSpan,p.maxValueSpan)),d&&(a[d.id]={dataZoomId:d.id,startValue:c[0],endValue:c[1]})}function l(u,f,c){var h;return c.eachComponent({mainType:"dataZoom",subType:"select"},function(v){var d=v.getAxisModel(u,f.componentIndex);d&&(h=v)}),h}},t.prototype._dispatchZoomAction=function(e){var n=[];Jo(e,function(a,i){n.push(X(a))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},t.getDefaultOption=function(e){var n={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:e.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return n},t}(Qe),Zw={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(Nw(this.ecModel))}};function nl(r){var t={xAxisIndex:r.get("xAxisIndex",!0),yAxisIndex:r.get("yAxisIndex",!0),xAxisId:r.get("xAxisId",!0),yAxisId:r.get("yAxisId",!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex="all"),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex="all"),t}function Xw(r,t){r.setIconStatus("back",Vw(t)>1?"emphasis":"normal")}function Kw(r,t,e,n,a){var i=e._isZoomActive;n&&n.type==="takeGlobalCursor"&&(i=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),e._isZoomActive=i,r.setIconStatus("zoom",i?"emphasis":"normal");var o=new rp(nl(r),t,{include:["grid"]}),s=o.makePanelOpts(a,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});e._brushController.setPanels(s).enableBrush(i&&s.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}uy("dataZoom",function(r){var t=r.getComponent("toolbox",0),e=["feature","dataZoom"];if(!t||t.get(e)==null)return;var n=t.getModel(e),a=[],i=nl(n),o=nn(r,i);Jo(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),Jo(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,f){var c=l.componentIndex,h={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:Yw+u+c};h[f]=c,a.push(h)}return a});const qw=$w;function NT(r){r.registerComponentModel(dw),r.registerComponentView(yw),qr("saveAsImage",Sw),qr("magicType",ww),qr("dataView",Ew),qr("dataZoom",qw),qr("restore",zw),_t(vw)}var jw=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(ae);const Qw=jw;function np(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function ap(r){if(!!fe.domSupported){for(var t=document.documentElement.style,e=0,n=r.length;e-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var f=u*Math.PI/180,c=o+a,h=c*Math.abs(Math.cos(f))+c*Math.abs(Math.sin(f)),v=Math.round(((h-Math.SQRT2*a)/2+Math.SQRT2*a-(h-c)/2)*100)/100;s+=";"+i+":-"+v+"px";var d=t+" solid "+a+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+n+";"];return'
'}function i1(r,t){var e="cubic-bezier(0.23,1,0.32,1)",n=" "+r/2+"s "+e,a="opacity"+n+",visibility"+n;return t||(n=" "+r+"s "+e,a+=fe.transformSupported?","+al+n:",left"+n+",top"+n),t1+":"+a}function Gf(r,t,e){var n=r.toFixed(0)+"px",a=t.toFixed(0)+"px";if(!fe.transformSupported)return e?"top:"+a+";left:"+n+";":[["top",a],["left",n]];var i=fe.transform3dSupported,o="translate"+(i?"3d":"")+"("+n+","+a+(i?",0":"")+")";return e?"top:0;left:0;"+al+":"+o+";":[["top",0],["left",0],[ip,o]]}function o1(r){var t=[],e=r.get("fontSize"),n=r.getTextColor();n&&t.push("color:"+n),t.push("font:"+r.getFont()),e&&t.push("line-height:"+Math.round(e*3/2)+"px");var a=r.get("textShadowColor"),i=r.get("textShadowBlur")||0,o=r.get("textShadowOffsetX")||0,s=r.get("textShadowOffsetY")||0;return a&&i&&t.push("text-shadow:"+o+"px "+s+"px "+i+"px "+a),w(["decoration","align"],function(l){var u=r.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function s1(r,t,e){var n=[],a=r.get("transitionDuration"),i=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),l=r.get("shadowOffsetX"),u=r.get("shadowOffsetY"),f=r.getModel("textStyle"),c=vh(r,"html"),h=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+h),t&&a&&n.push(i1(a,e)),i&&n.push("background-color:"+i),w(["width","color","radius"],function(v){var d="border-"+v,p=Rv(d),m=r.get(p);m!=null&&n.push(d+":"+m+(v==="color"?"":"px"))}),n.push(o1(f)),c!=null&&n.push("padding:"+ti(c).join("px ")+"px"),n.join(";")+";"}function Wf(r,t,e,n,a){var i=t&&t.painter;if(e){var o=i&&i.getViewportRoot();o&&ng(r,o,document.body,n,a)}else{r[0]=n,r[1]=a;var s=i&&i.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var l1=function(){function r(t,e,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,fe.wxa)return null;var a=document.createElement("div");a.domBelongToZr=!0,this.el=a;var i=this._zr=e.getZr(),o=this._appendToBody=n&&n.appendToBody;Wf(this._styleCoord,i,o,e.getWidth()/2,e.getHeight()/2),o?document.body.appendChild(a):t.appendChild(a),this._container=t;var s=this;a.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},a.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=i.handler,f=i.painter.getViewportRoot();rg(f,l,!0),u.dispatch("mousemove",l)}},a.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(t){var e=this._container,n=e1(e,"position"),a=e.style;a.position!=="absolute"&&n!=="absolute"&&(a.position="relative");var i=t.get("alwaysShowContent");i&&this._moveIfResized(),this.el.className=t.get("className")||""},r.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,a=n.style,i=this._styleCoord;n.innerHTML?a.cssText=r1+s1(t,!this._firstShow,this._longHide)+Gf(i[0],i[1],!0)+("border-color:"+rr(e)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(t,e,n,a,i){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(z(i)&&n.get("trigger")==="item"&&!np(n)&&(s=a1(n,a,i)),z(t))o.innerHTML=t+s;else if(t){o.innerHTML="",O(t)||(t=[t]);for(var l=0;l=0?this._tryShow(i,o):a==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,n=this._ecModel,a=this._api,i=e.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&o.manuallyShowTip(e,n,a,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,n,a,i){if(!(i.from===this.uid||fe.node||!a.getDom())){var o=Yf(i,a);this._ticket="";var s=i.dataByCoordSys,l=m1(i,n,a);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var f=v1;f.x=i.x,f.y=i.y,f.update(),J(f).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:f},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(e,n,a,i))return;var c=Nd(i,n),h=c.point[0],v=c.point[1];h!=null&&v!=null&&this._tryShow({offsetX:h,offsetY:v,target:c.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:a.getZr().findHover(i.x,i.y).target},o))}},t.prototype.manuallyHideTip=function(e,n,a,i){var o=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(Yf(i,a))},t.prototype._manuallyAxisShowTip=function(e,n,a,i){var o=i.seriesIndex,s=i.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(!!u){var f=u.getData(),c=jr([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(c.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},t.prototype._tryShow=function(e,n){var a=e.target,i=this._tooltipModel;if(!!i){this._lastX=e.offsetX,this._lastY=e.offsetY;var o=e.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,e);else if(a){this._lastDataByCoordSys=null;var s,l;tn(a,function(u){if(J(u).dataIndex!=null)return s=u,!0;if(J(u).tooltipConfig!=null)return l=u,!0},!0),s?this._showSeriesItemTooltip(e,s,n):l?this._showComponentItemTooltip(e,l,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(e,n){var a=e.get("showDelay");n=ne(n,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(n,a):n()},t.prototype._showAxisTooltip=function(e,n){var a=this._ecModel,i=this._tooltipModel,o=[n.offsetX,n.offsetY],s=jr([n.tooltipOption],i),l=this._renderMode,u=[],f=bn("section",{blocks:[],noHeader:!0}),c=[],h=new Di;w(e,function(y){w(y.dataByAxis,function(_){var S=a.getComponent(_.axisDim+"Axis",_.axisIndex),b=_.value;if(!(!S||b==null)){var x=Rd(b,S.axis,a,_.seriesDataIndices,_.valueLabelOpt),C=bn("section",{header:x,noHeader:!Pn(x),sortBlocks:!0,blocks:[]});f.blocks.push(C),w(_.seriesDataIndices,function(T){var A=a.getSeriesByIndex(T.seriesIndex),M=T.dataIndexInside,D=A.getDataParams(M);if(!(D.dataIndex<0)){D.axisDim=_.axisDim,D.axisIndex=_.axisIndex,D.axisType=_.axisType,D.axisId=_.axisId,D.axisValue=$s(S.axis,{value:b}),D.axisValueLabel=x,D.marker=h.makeTooltipMarker("item",rr(D.color),l);var I=uu(A.formatTooltip(M,!0,null)),L=I.frag;if(L){var P=jr([A],i).get("valueFormatter");C.blocks.push(P?N({valueFormatter:P},L):L)}I.text&&c.push(I.text),u.push(D)}})}})}),f.blocks.reverse(),c.reverse();var v=n.position,d=s.get("order"),p=pu(f,h,l,d,a.get("useUTC"),s.get("textStyle"));p&&c.unshift(p);var m=l==="richText"?` - -`:"
",g=c.join(m);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,u)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,g,u,Math.random()+"",o[0],o[1],v,null,h)})},t.prototype._showSeriesItemTooltip=function(e,n,a){var i=this._ecModel,o=J(n),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,c=o.dataType,h=u.getData(c),v=this._renderMode,d=e.positionDefault,p=jr([h.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),m=p.get("trigger");if(!(m!=null&&m!=="item")){var g=u.getDataParams(f,c),y=new Di;g.marker=y.makeTooltipMarker("item",rr(g.color),v);var _=uu(u.formatTooltip(f,!1,c)),S=p.get("order"),b=p.get("valueFormatter"),x=_.frag,C=x?pu(b?N({valueFormatter:b},x):x,y,v,S,i.get("useUTC"),p.get("textStyle")):_.text,T="item_"+u.name+"_"+f;this._showOrMove(p,function(){this._showTooltipContent(p,C,g,T,e.offsetX,e.offsetY,e.position,e.target,y)}),a({type:"showTip",dataIndexInside:f,dataIndex:h.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,n,a){var i=J(n),o=i.tooltipConfig,s=o.option||{};if(z(s)){var l=s;s={content:l,formatter:l}}var u=[s],f=this._ecModel.getComponent(i.componentMainType,i.componentIndex);f&&u.push(f),u.push({formatter:s.content});var c=e.positionDefault,h=jr(u,this._tooltipModel,c?{position:c}:null),v=h.get("content"),d=Math.random()+"",p=new Di;this._showOrMove(h,function(){var m=X(h.get("formatterParams")||{});this._showTooltipContent(h,v,m,d,e.offsetX,e.offsetY,e.position,n,p)}),a({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,n,a,i,o,s,l,u,f){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var c=this._tooltipContent;c.setEnterable(e.get("enterable"));var h=e.get("formatter");l=l||e.get("position");var v=n,d=this._getNearestPoint([o,s],a,e.get("trigger"),e.get("borderColor")),p=d.color;if(h)if(z(h)){var m=e.ecModel.get("useUTC"),g=O(a)?a[0]:a,y=g&&g.axisType&&g.axisType.indexOf("time")>=0;v=h,y&&(v=qa(g.axisValue,v,m)),v=Ev(v,a,!0)}else if(U(h)){var _=ne(function(S,b){S===this._ticket&&(c.setContent(b,f,e,p,l),this._updatePosition(e,l,o,s,c,a,u))},this);this._ticket=i,v=h(a,i,_)}else v=h;c.setContent(v,f,e,p,l),c.show(e,p),this._updatePosition(e,l,o,s,c,a,u)}},t.prototype._getNearestPoint=function(e,n,a,i){if(a==="axis"||O(n))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!O(n))return{color:i||n.color||n.borderColor}},t.prototype._updatePosition=function(e,n,a,i,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();n=n||e.get("position");var c=o.getSize(),h=e.get("align"),v=e.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),U(n)&&(n=n([a,i],s,o.el,d,{viewSize:[u,f],contentSize:c.slice()})),O(n))a=re(n[0],u),i=re(n[1],f);else if(H(n)){var p=n;p.width=c[0],p.height=c[1];var m=Ft(p,{width:u,height:f});a=m.x,i=m.y,h=null,v=null}else if(z(n)&&l){var g=g1(n,d,c,e.get("borderWidth"));a=g[0],i=g[1]}else{var g=d1(a,i,o,u,f,h?null:20,v?null:20);a=g[0],i=g[1]}if(h&&(a-=$f(h)?c[0]/2:h==="right"?c[0]:0),v&&(i-=$f(v)?c[1]/2:v==="bottom"?c[1]:0),np(e)){var g=p1(a,i,o,u,f);a=g[0],i=g[1]}o.moveTo(a,i)},t.prototype._updateContentNotChangedOnAxis=function(e,n){var a=this._lastDataByCoordSys,i=this._cbParamsList,o=!!a&&a.length===e.length;return o&&w(a,function(s,l){var u=s.dataByAxis||[],f=e[l]||{},c=f.dataByAxis||[];o=o&&u.length===c.length,o&&w(u,function(h,v){var d=c[v]||{},p=h.seriesDataIndices||[],m=d.seriesDataIndices||[];o=o&&h.value===d.value&&h.axisType===d.axisType&&h.axisId===d.axisId&&p.length===m.length,o&&w(p,function(g,y){var _=m[y];o=o&&g.seriesIndex===_.seriesIndex&&g.dataIndex===_.dataIndex}),i&&w(h.seriesDataIndices,function(g){var y=g.seriesIndex,_=n[y],S=i[y];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=n,!!o},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,n){fe.node||!n.getDom()||(Lo(this,"_updatePosition"),this._tooltipContent.dispose(),Yo("itemTooltip",n))},t.type="tooltip",t}(He);function jr(r,t,e){var n=t.ecModel,a;e?(a=new Ce(e,n,n),a=new Ce(t.option,a,n)):a=t;for(var i=r.length-1;i>=0;i--){var o=r[i];o&&(o instanceof Ce&&(o=o.get("tooltip",!0)),z(o)&&(o={formatter:o}),o&&(a=new Ce(o,a,n)))}return a}function Yf(r,t){return r.dispatchAction||ne(t.dispatchAction,t)}function d1(r,t,e,n,a,i,o){var s=e.getSize(),l=s[0],u=s[1];return i!=null&&(r+l+i+2>n?r-=l+i:r+=i),o!=null&&(t+u+o>a?t-=u+o:t+=o),[r,t]}function p1(r,t,e,n,a){var i=e.getSize(),o=i[0],s=i[1];return r=Math.min(r+o,n)-o,t=Math.min(t+s,a)-s,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function g1(r,t,e,n){var a=e[0],i=e[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=t.width,f=t.height;switch(r){case"inside":s=t.x+u/2-a/2,l=t.y+f/2-i/2;break;case"top":s=t.x+u/2-a/2,l=t.y-i-o;break;case"bottom":s=t.x+u/2-a/2,l=t.y+f+o;break;case"left":s=t.x-a-o,l=t.y+f/2-i/2;break;case"right":s=t.x+u+o,l=t.y+f/2-i/2}return[s,l]}function $f(r){return r==="center"||r==="middle"}function m1(r,t,e){var n=vs(r).queryOptionMap,a=n.keys()[0];if(!(!a||a==="series")){var i=En(t,a,n.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(!!o){var s=e.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=J(u).tooltipConfig;if(f&&f.name===r.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}}const y1=h1;function BT(r){_t(Bd),r.registerComponentModel(Qw),r.registerComponentView(y1),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},mt),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},mt)}var _1=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(ae),S1=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){if(this.group.removeAll(),!!e.get("show")){var i=this.group,o=e.getModel("textStyle"),s=e.getModel("subtextStyle"),l=e.get("textAlign"),u=se(e.get("textBaseline"),e.get("textVerticalAlign")),f=new be({style:Vt(o,{text:e.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),c=f.getBoundingRect(),h=e.get("subtext"),v=new be({style:Vt(s,{text:h,fill:s.getTextColor(),y:c.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=e.get("link"),p=e.get("sublink"),m=e.get("triggerEvent",!0);f.silent=!d&&!m,v.silent=!p&&!m,d&&f.on("click",function(){Ul(d,"_"+e.get("target"))}),p&&v.on("click",function(){Ul(p,"_"+e.get("subtarget"))}),J(f).eventData=J(v).eventData=m?{componentType:"title",componentIndex:e.componentIndex}:null,i.add(f),h&&i.add(v);var g=i.getBoundingRect(),y=e.getBoxLayoutParams();y.width=g.width,y.height=g.height;var _=Ft(y,{width:a.getWidth(),height:a.getHeight()},e.get("padding"));l||(l=e.get("left")||e.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=e.get("top")||e.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),i.x=_.x,i.y=_.y,i.markRedraw();var S={align:l,verticalAlign:u};f.setStyle(S),v.setStyle(S),g=i.getBoundingRect();var b=_.margin,x=e.getItemStyle(["color","opacity"]);x.fill=e.get("backgroundColor");var C=new pe({shape:{x:g.x-b[3],y:g.y-b[0],width:g.width+b[1]+b[3],height:g.height+b[0]+b[2],r:e.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});i.add(C)}},t.type="title",t}(He);function VT(r){r.registerComponentModel(_1),r.registerComponentView(S1)}function il(r,t){var e=r.mapDimensionsAll("defaultedLabel"),n=e.length;if(n===1){var a=Mr(r,t,e[0]);return a!=null?a+"":null}else if(n){for(var i=[],o=0;o=0&&n.push(t[i])}return n.join(" ")}var x1=function(r){B(t,r);function t(e,n,a,i){var o=r.call(this)||this;return o.updateData(e,n,a,i),o}return t.prototype._createSymbol=function(e,n,a,i,o){this.removeAll();var s=nr(e,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=b1,this._symbolType=e,this.add(s)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){Tr(this.childAt(0))},t.prototype.downplay=function(){Ar(this.childAt(0))},t.prototype.setZ=function(e,n){var a=this.childAt(0);a.zlevel=e,a.z=n},t.prototype.setDraggable=function(e,n){var a=this.childAt(0);a.draggable=e,a.cursor=!n&&e?"move":a.cursor},t.prototype.updateData=function(e,n,a,i){this.silent=!1;var o=e.getItemVisual(n,"symbol")||"circle",s=e.hostModel,l=t.getSymbolSize(e,n),u=o!==this._symbolType,f=i&&i.disableAnimation;if(u){var c=e.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,e,n,l,c)}else{var h=this.childAt(0);h.silent=!1;var v={scaleX:l[0]/2,scaleY:l[1]/2};f?h.attr(v):Se(h,v,s,n),$a(h)}if(this._updateCommon(e,n,l,a,i),u){var h=this.childAt(0);if(!f){var v={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,Te(h,v,s,n)}}f&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,n,a,i,o){var s=this.childAt(0),l=e.hostModel,u,f,c,h,v,d,p,m,g;if(i&&(u=i.emphasisItemStyle,f=i.blurItemStyle,c=i.selectItemStyle,h=i.focus,v=i.blurScope,p=i.labelStatesModels,m=i.hoverScale,g=i.cursorStyle,d=i.emphasisDisabled),!i||e.hasItemOption){var y=i&&i.itemModel?i.itemModel:e.getItemModel(n),_=y.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),c=y.getModel(["select","itemStyle"]).getItemStyle(),f=y.getModel(["blur","itemStyle"]).getItemStyle(),h=_.get("focus"),v=_.get("blurScope"),d=_.get("disabled"),p=Bn(y),m=_.getShallow("scale"),g=y.getShallow("cursor")}var S=e.getItemVisual(n,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var b=bh(e.getItemVisual(n,"symbolOffset"),a);b&&(s.x=b[0],s.y=b[1]),g&&s.attr("cursor",g);var x=e.getItemVisual(n,"style"),C=x.fill;if(s instanceof In){var T=s.style;s.useStyle(N({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},x))}else s.__isEmptyBrush?s.useStyle(N({},x)):s.useStyle(x),s.style.decal=null,s.setColor(C,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var A=e.getItemVisual(n,"liftZ"),M=this._z2;A!=null?M==null&&(this._z2=s.z2,s.z2+=A):M!=null&&(s.z2=M,this._z2=null);var D=o&&o.useNameLabel;Nn(s,p,{labelFetcher:l,labelDataIndex:n,defaultText:I,inheritColor:C,defaultOpacity:x.opacity});function I(k){return D?e.getName(k):il(e,k)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var L=s.ensureState("emphasis");L.style=u,s.ensureState("select").style=c,s.ensureState("blur").style=f;var P=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;L.scaleX=this._sizeX*P,L.scaleY=this._sizeY*P,this.setSymbolScale(1),pn(this,h,v,d)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,n,a){var i=this.childAt(0),o=J(this).dataIndex,s=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var l=i.getTextContent();l&&Ia(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Ia(i,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:e,removeOpt:s})},t.getSymbolSize=function(e,n){return i_(e.getItemVisual(n,"symbolSize"))},t}(_e);function b1(r,t){this.parent.drift(r,t)}const ol=x1;function qi(r,t,e,n){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(n.isIgnore&&n.isIgnore(e))&&!(n.clipShape&&!n.clipShape.contain(t[0],t[1]))&&r.getItemVisual(e,"symbol")!=="none"}function Zf(r){return r!=null&&!H(r)&&(r={isIgnore:r}),r||{}}function Xf(r){var t=r.hostModel,e=t.getModel("emphasis");return{emphasisItemStyle:e.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:e.get("focus"),blurScope:e.get("blurScope"),emphasisDisabled:e.get("disabled"),hoverScale:e.get("scale"),labelStatesModels:Bn(t),cursorStyle:t.get("cursor")}}var w1=function(){function r(t){this.group=new _e,this._SymbolCtor=t||ol}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=Zf(e);var n=this.group,a=t.hostModel,i=this._data,o=this._SymbolCtor,s=e.disableAnimation,l=Xf(t),u={disableAnimation:s},f=e.getSymbolPoint||function(c){return t.getItemLayout(c)};i||n.removeAll(),t.diff(i).add(function(c){var h=f(c);if(qi(t,h,c,e)){var v=new o(t,c,l,u);v.setPosition(h),t.setItemGraphicEl(c,v),n.add(v)}}).update(function(c,h){var v=i.getItemGraphicEl(h),d=f(c);if(!qi(t,d,c,e)){n.remove(v);return}var p=t.getItemVisual(c,"symbol")||"circle",m=v&&v.getSymbolType&&v.getSymbolType();if(!v||m&&m!==p)n.remove(v),v=new o(t,c,l,u),v.setPosition(d);else{v.updateData(t,c,l,u);var g={x:d[0],y:d[1]};s?v.attr(g):Se(v,g,a)}n.add(v),t.setItemGraphicEl(c,v)}).remove(function(c){var h=i.getItemGraphicEl(c);h&&h.fadeOut(function(){n.remove(h)},a)}).execute(),this._getSymbolPoint=f,this._data=t},r.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(n,a){var i=t._getSymbolPoint(a);n.setPosition(i),n.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Xf(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,n){this._progressiveEls=[],n=Zf(n);function a(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(ae);const es=T1;var mr=Q,ts=w,ua=_e,A1=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!1,e}return t.prototype.init=function(){this.group.add(this._contentGroup=new ua),this.group.add(this._selectorGroup=new ua),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,n,a){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!e.get("show",!0)){var o=e.get("align"),s=e.get("orient");(!o||o==="auto")&&(o=e.get("left")==="right"&&s==="vertical"?"right":"left");var l=e.get("selector",!0),u=e.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,e,n,a,l,s,u);var f=e.getBoxLayoutParams(),c={width:a.getWidth(),height:a.getHeight()},h=e.get("padding"),v=Ft(f,c,h),d=this.layoutInner(e,o,v,i,l,u),p=Ft(ee({width:d.width,height:d.height},f),c,h);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=Jd(d,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,n,a,i,o,s,l){var u=this.getContentGroup(),f=W(),c=n.get("selectedMode"),h=[];a.eachRawSeries(function(v){!v.get("legendHoverLink")&&h.push(v.id)}),ts(n.getData(),function(v,d){var p=v.get("name");if(!this.newlineDisabled&&(p===""||p===` -`)){var m=new ua;m.newline=!0,u.add(m);return}var g=a.getSeriesByName(p)[0];if(!f.get(p))if(g){var y=g.getData(),_=y.getVisual("legendLineStyle")||{},S=y.getVisual("legendIcon"),b=y.getVisual("style"),x=this._createItem(g,p,d,v,n,e,_,b,S,c,i);x.on("click",mr(Kf,p,null,i,h)).on("mouseover",mr(rs,g.name,null,i,h)).on("mouseout",mr(ns,g.name,null,i,h)),f.set(p,!0)}else a.eachRawSeries(function(C){if(!f.get(p)&&C.legendVisualProvider){var T=C.legendVisualProvider;if(!T.containName(p))return;var A=T.indexOfName(p),M=T.getItemVisual(A,"style"),D=T.getItemVisual(A,"legendIcon"),I=ag(M.fill);I&&I[3]===0&&(I[3]=.2,M=N(N({},M),{fill:ig(I,"rgba")}));var L=this._createItem(C,p,d,v,n,e,{},M,D,c,i);L.on("click",mr(Kf,null,p,i,h)).on("mouseover",mr(rs,null,p,i,h)).on("mouseout",mr(ns,null,p,i,h)),f.set(p,!0)}},this)},this),o&&this._createSelector(o,n,i,s,l)},t.prototype._createSelector=function(e,n,a,i,o){var s=this.getSelectorGroup();ts(e,function(u){var f=u.type,c=new be({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(c);var h=n.getModel("selectorLabel"),v=n.getModel(["emphasis","selectorLabel"]);Nn(c,{normal:h,emphasis:v},{defaultText:u.title}),yo(c)})},t.prototype._createItem=function(e,n,a,i,o,s,l,u,f,c,h){var v=e.visualDrawType,d=o.get("itemWidth"),p=o.get("itemHeight"),m=o.isSelected(n),g=i.get("symbolRotate"),y=i.get("symbolKeepAspect"),_=i.get("icon");f=_||f||"roundRect";var S=D1(f,i,l,u,v,m,h),b=new ua,x=i.getModel("textStyle");if(U(e.getLegendIcon)&&(!_||_==="inherit"))b.add(e.getLegendIcon({itemWidth:d,itemHeight:p,icon:f,iconRotate:g,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:y}));else{var C=_==="inherit"&&e.getData().getVisual("symbol")?g==="inherit"?e.getData().getVisual("symbolRotate"):g:0;b.add(M1({itemWidth:d,itemHeight:p,icon:f,iconRotate:C,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:y}))}var T=s==="left"?d+5:-5,A=s,M=o.get("formatter"),D=n;z(M)&&M?D=M.replace("{name}",n!=null?n:""):U(M)&&(D=M(n));var I=i.get("inactiveColor");b.add(new be({style:Vt(x,{text:D,x:T,y:p/2,fill:m?x.getTextColor():I,align:A,verticalAlign:"middle"})}));var L=new pe({shape:b.getBoundingRect(),invisible:!0}),P=i.getModel("tooltip");return P.get("show")&&Xa({el:L,componentModel:o,itemName:n,itemTooltipOption:P.option}),b.add(L),b.eachChild(function(k){k.silent=!0}),L.silent=!c,this.getContentGroup().add(b),yo(b),b.__legendDataIndex=a,b},t.prototype.layoutInner=function(e,n,a,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Cr(e.get("orient"),l,e.get("itemGap"),a.width,a.height);var f=l.getBoundingRect(),c=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){Cr("horizontal",u,e.get("selectorItemGap",!0));var h=u.getBoundingRect(),v=[-h.x,-h.y],d=e.get("selectorButtonGap",!0),p=e.getOrient().index,m=p===0?"width":"height",g=p===0?"height":"width",y=p===0?"y":"x";s==="end"?v[p]+=f[m]+d:c[p]+=h[m]+d,v[1-p]+=f[g]/2-h[g]/2,u.x=v[0],u.y=v[1],l.x=c[0],l.y=c[1];var _={x:0,y:0};return _[m]=f[m]+d+h[m],_[g]=Math.max(f[g],h[g]),_[y]=Math.min(0,h[y]+v[1-p]),_}else return l.x=c[0],l.y=c[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(He);function D1(r,t,e,n,a,i,o){function s(m,g){m.lineWidth==="auto"&&(m.lineWidth=g.lineWidth>0?2:0),ts(m,function(y,_){m[_]==="inherit"&&(m[_]=g[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",c=l.getShallow("decal");u.decal=!c||c==="inherit"?n.decal:Ro(c,o),u.fill==="inherit"&&(u.fill=n[a]),u.stroke==="inherit"&&(u.stroke=n[f]),u.opacity==="inherit"&&(u.opacity=(a==="fill"?n:e).opacity),s(u,n);var h=t.getModel("lineStyle"),v=h.getLineStyle();if(s(v,e),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),v.stroke==="auto"&&(v.stroke=n.fill),!i){var d=t.get("inactiveBorderWidth"),p=u[f];u.lineWidth=d==="auto"?n.lineWidth>0&&p?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),v.stroke=h.get("inactiveColor"),v.lineWidth=h.get("inactiveWidth")}return{itemStyle:u,lineStyle:v}}function M1(r){var t=r.icon||"roundRect",e=nr(t,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return e.setStyle(r.itemStyle),e.rotation=(r.iconRotate||0)*Math.PI/180,e.setOrigin([r.itemWidth/2,r.itemHeight/2]),t.indexOf("empty")>-1&&(e.style.stroke=e.style.fill,e.style.fill="#fff",e.style.lineWidth=2),e}function Kf(r,t,e,n){ns(r,t,e,n),e.dispatchAction({type:"legendToggleSelect",name:r!=null?r:t}),rs(r,t,e,n)}function up(r){for(var t=r.getZr().storage.getDisplayList(),e,n=0,a=t.length;na[o],m=[-v.x,-v.y];n||(m[i]=f[u]);var g=[0,0],y=[-d.x,-d.y],_=se(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(p){var S=e.get("pageButtonPosition",!0);S==="end"?y[i]+=a[o]-d[o]:g[i]+=d[o]+_}y[1-i]+=v[s]/2-d[s]/2,f.setPosition(m),c.setPosition(g),h.setPosition(y);var b={x:0,y:0};if(b[o]=p?a[o]:v[o],b[s]=Math.max(v[s],d[s]),b[l]=Math.min(0,d[l]+y[1-i]),c.__rectSize=a[o],p){var x={x:0,y:0};x[o]=Math.max(a[o]-d[o]-_,0),x[s]=b[s],c.setClipPath(new pe({shape:x})),c.__rectSize=x[o]}else h.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var C=this._getPageInfo(e);return C.pageIndex!=null&&Se(f,{x:C.contentPosition[0],y:C.contentPosition[1]},p?e:null),this._updatePageInfoView(e,C),b},t.prototype._pageGo=function(e,n,a){var i=this._getPageInfo(n)[e];i!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:n.id})},t.prototype._updatePageInfoView=function(e,n){var a=this._controllerGroup;w(["pagePrev","pageNext"],function(f){var c=f+"DataIndex",h=n[c]!=null,v=a.childOfName(f);v&&(v.setStyle("fill",h?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),v.cursor=h?"pointer":"default")});var i=a.childOfName("pageText"),o=e.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;i&&o&&i.setStyle("text",z(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(e){var n=e.get("scrollDataIndex",!0),a=this.getContentGroup(),i=this._containerGroup.__rectSize,o=e.getOrient().index,s=ji[o],l=Qi[o],u=this._findTargetItemIndex(n),f=a.children(),c=f[u],h=f.length,v=h?1:0,d={contentPosition:[a.x,a.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return d;var p=S(c);d.contentPosition[o]=-p.s;for(var m=u+1,g=p,y=p,_=null;m<=h;++m)_=S(f[m]),(!_&&y.e>g.s+i||_&&!b(_,g.s))&&(y.i>g.i?g=y:g=_,g&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=g.i),++d.pageCount)),y=_;for(var m=u-1,g=p,y=p,_=null;m>=-1;--m)_=S(f[m]),(!_||!b(y,_.s))&&g.i=C&&x.s<=C+i}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var n,a=this.getContentGroup(),i;return a.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===e&&(n=s)}),n!=null?n:i},t.type="legend.scroll",t}(fp);const E1=R1;function O1(r){r.registerAction("legendScroll","legendscroll",function(t,e){var n=t.scrollDataIndex;n!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(a){a.setScrollDataIndex(n)})})}function N1(r){_t(cp),r.registerComponentModel(k1),r.registerComponentView(E1),O1(r)}function FT(r){_t(cp),_t(N1)}var B1={label:{enabled:!0},decal:{show:!1}},Qf=le(),V1={};function F1(r,t){var e=r.getModel("aria");if(!e.get("enabled"))return;var n=X(B1);K(n.label,r.getLocaleModel().get("aria"),!1),K(e.option,n,!1),a(),i();function a(){var u=e.getModel("decal"),f=u.get("show");if(f){var c=W();r.eachSeries(function(h){if(!h.isColorBySeries()){var v=c.get(h.type);v||(v={},c.set(h.type,v)),Qf(h).scope=v}}),r.eachRawSeries(function(h){if(r.isSeriesFiltered(h))return;if(U(h.enableAriaDecal)){h.enableAriaDecal();return}var v=h.getData();if(h.isColorBySeries()){var y=$l(h.ecModel,h.name,V1,r.getSeriesCount()),_=v.getVisual("decal");v.setVisual("decal",S(_,y))}else{var d=h.getRawData(),p={},m=Qf(h).scope;v.each(function(b){var x=v.getRawIndex(b);p[x]=b});var g=d.count();d.each(function(b){var x=p[b],C=d.getName(b)||b+"",T=$l(h.ecModel,C,m,g),A=v.getItemVisual(x,"decal");v.setItemVisual(x,"decal",S(A,T))})}function S(b,x){var C=b?N(N({},x),b):x;return C.dirty=!0,C}})}}function i(){var u=r.getLocaleModel().get("aria"),f=e.getModel("label");if(f.option=ee(f.option,u),!!f.get("enabled")){var c=t.getZr().dom;if(f.get("description")){c.setAttribute("aria-label",f.get("description"));return}var h=r.getSeriesCount(),v=f.get(["data","maxCount"])||10,d=f.get(["series","maxCount"])||10,p=Math.min(h,d),m;if(!(h<1)){var g=s();if(g){var y=f.get(["general","withTitle"]);m=o(y,{title:g})}else m=f.get(["general","withoutTitle"]);var _=[],S=h>1?f.get(["series","multiple","prefix"]):f.get(["series","single","prefix"]);m+=o(S,{seriesCount:h}),r.eachSeries(function(T,A){if(A1?f.get(["series","multiple",I]):f.get(["series","single",I]),M=o(M,{seriesId:T.seriesIndex,seriesName:T.get("name"),seriesType:l(T.subType)});var L=T.getData();if(L.count()>v){var P=f.get(["data","partialData"]);M+=o(P,{displayCnt:v})}else M+=f.get(["data","allData"]);for(var k=f.get(["data","separator","middle"]),V=f.get(["data","separator","end"]),$=[],R=0;R":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},G1=function(){function r(t){var e=this._condVal=z(t)?new RegExp(t):og(t)?t:null;if(e==null){var n="";q(n)}}return r.prototype.evaluate=function(t){var e=typeof t;return z(e)?this._condVal.test(t):oe(e)?this._condVal.test(t+""):!1},r}(),W1=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),H1=function(){function r(){}return r.prototype.evaluate=function(){for(var t=this.children,e=0;e-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),n},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(lt);const rC=tC;function hp(r,t,e){var n=r.getBaseAxis(),a=r.getOtherAxis(n),i=nC(a,e),o=n.dim,s=a.dim,l=t.mapDimension(s),u=t.mapDimension(o),f=s==="x"||s==="radius"?1:0,c=F(r.dimensions,function(d){return t.mapDimension(d)}),h=!1,v=t.getCalculationInfo("stackResultDimension");return Ir(t,c[0])&&(h=!0,c[0]=v),Ir(t,c[1])&&(h=!0,c[1]=v),{dataDimsForPoint:c,valueStart:i,valueAxisDim:s,baseAxisDim:o,stacked:!!h,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function nC(r,t){var e=0,n=r.scale.getExtent();return t==="start"?e=n[0]:t==="end"?e=n[1]:oe(t)&&!isNaN(t)?e=t:n[0]>0?e=n[0]:n[1]<0&&(e=n[1]),e}function dp(r,t,e,n){var a=NaN;r.stacked&&(a=e.get(e.getCalculationInfo("stackedOverDimension"),n)),isNaN(a)&&(a=r.valueStart);var i=r.baseDataOffset,o=[];return o[i]=e.get(r.baseDim,n),o[1-i]=a,t.dataToPoint(o)}function aC(r,t){var e=[];return t.diff(r).add(function(n){e.push({cmd:"+",idx:n})}).update(function(n,a){e.push({cmd:"=",idx:a,idx1:n})}).remove(function(n){e.push({cmd:"-",idx:n})}).execute(),e}function iC(r,t,e,n,a,i,o,s){for(var l=aC(r,t),u=[],f=[],c=[],h=[],v=[],d=[],p=[],m=hp(a,t,o),g=r.getLayout("points")||[],y=t.getLayout("points")||[],_=0;_=a||p<0)break;if(Qt(g,y)){if(l){p+=i;continue}break}if(p===e)r[i>0?"moveTo":"lineTo"](g,y),c=g,h=y;else{var _=g-u,S=y-f;if(_*_+S*S<.5){p+=i;continue}if(o>0){for(var b=p+i,x=t[b*2],C=t[b*2+1];x===g&&C===y&&m=n||Qt(x,C))v=g,d=y;else{M=x-u,D=C-f;var P=g-u,k=x-g,V=y-f,$=C-y,R=void 0,E=void 0;if(s==="x"){R=Math.abs(P),E=Math.abs(k);var G=M>0?1:-1;v=g-G*R*o,d=y,I=g+G*E*o,L=y}else if(s==="y"){R=Math.abs(V),E=Math.abs($);var Y=D>0?1:-1;v=g,d=y-Y*R*o,I=g,L=y+Y*E*o}else R=Math.sqrt(P*P+V*V),E=Math.sqrt(k*k+$*$),A=E/(E+R),v=g-M*o*(1-A),d=y-D*o*(1-A),I=g+M*o*A,L=y+D*o*A,I=It(I,Lt(x,g)),L=It(L,Lt(C,y)),I=Lt(I,It(x,g)),L=Lt(L,It(C,y)),M=I-g,D=L-y,v=g-M*R/E,d=y-D*R/E,v=It(v,Lt(u,g)),d=It(d,Lt(f,y)),v=Lt(v,It(u,g)),d=Lt(d,It(f,y)),M=g-v,D=y-d,I=g+M*E/R,L=y+D*E/R}r.bezierCurveTo(c,h,v,d,g,y),c=I,h=L}else r.lineTo(g,y)}u=g,f=y,p+=i}return m}var pp=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),oC=function(r){B(t,r);function t(e){var n=r.call(this,e)||this;return n.type="ec-polyline",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new pp},t.prototype.buildPath=function(e,n){var a=n.points,i=0,o=a.length/2;if(n.connectNulls){for(;o>0&&Qt(a[o*2-2],a[o*2-1]);o--);for(;i=0){var S=u?(d-l)*_+l:(v-s)*_+s;return u?[e,S]:[S,e]}s=v,l=d;break;case o.C:v=i[c++],d=i[c++],p=i[c++],m=i[c++],g=i[c++],y=i[c++];var b=u?pl(s,v,p,g,e,f):pl(l,d,m,y,e,f);if(b>0)for(var x=0;x=0){var S=u?gl(l,d,m,y,C):gl(s,v,p,g,C);return u?[e,S]:[S,e]}}s=g,l=y;break}}},t}(ge),sC=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(pp),lC=function(r){B(t,r);function t(e){var n=r.call(this,e)||this;return n.type="ec-polygon",n}return t.prototype.getDefaultShape=function(){return new sC},t.prototype.buildPath=function(e,n){var a=n.points,i=n.stackedOnPoints,o=0,s=a.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&Qt(a[s*2-2],a[s*2-1]);s--);for(;ot){i?e.push(o(i,l,t)):a&&e.push(o(a,l,0),o(a,l,t));break}else a&&(e.push(o(a,l,0)),a=null),e.push(l),i=l}return e}function cC(r,t,e){var n=r.getVisual("visualMeta");if(!(!n||!n.length||!r.count())&&t.type==="cartesian2d"){for(var a,i,o=n.length-1;o>=0;o--){var s=r.getDimensionInfo(n[o].dimension);if(a=s&&s.coordDim,a==="x"||a==="y"){i=n[o];break}}if(!!i){var l=t.getAxis(a),u=F(i.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,c=i.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),c.reverse());var h=fC(u,a==="x"?e.getWidth():e.getHeight()),v=h.length;if(!v&&f)return u[0].coord<0?c[1]?c[1]:u[f-1].color:c[0]?c[0]:u[0].color;var d=10,p=h[0].coord-d,m=h[v-1].coord+d,g=m-p;if(g<.001)return"transparent";w(h,function(_){_.offset=(_.coord-p)/g}),h.push({offset:v?h[v-1].offset:.5,color:c[1]||"transparent"}),h.unshift({offset:v?h[0].offset:.5,color:c[0]||"transparent"});var y=new Nc(0,0,0,0,h,!0);return y[a]=p,y[a+"2"]=m,y}}}function vC(r,t,e){var n=r.get("showAllSymbol"),a=n==="auto";if(!(n&&!a)){var i=e.getAxesByScale("ordinal")[0];if(!!i&&!(a&&hC(i,t))){var o=t.mapDimension(i.dim),s={};return w(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function hC(r,t){var e=r.getExtent(),n=Math.abs(e[1]-e[0])/r.scale.count();isNaN(n)&&(n=0);for(var a=t.count(),i=Math.max(1,Math.round(a/5)),o=0;on)return!1;return!0}function dC(r,t){return isNaN(r)||isNaN(t)}function pC(r){for(var t=r.length/2;t>0&&dC(r[t*2-2],r[t*2-1]);t--);return t-1}function ic(r,t){return[r[t*2],r[t*2+1]]}function gC(r,t,e){for(var n=r.length/2,a=e==="x"?0:1,i,o,s=0,l=-1,u=0;u=t||i>=t&&o<=t){l=u;break}s=u,i=o}return{range:[s,l],t:(t-i)/(o-i)}}function _p(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var G=p.getState("emphasis").style;G.lineWidth=+p.style.lineWidth+1}J(p).seriesIndex=e.seriesIndex,pn(p,$,R,E);var Y=ac(e.get("smooth")),Z=e.get("smoothMonotone");if(p.setShape({smooth:Y,smoothMonotone:Z,connectNulls:T}),m){var j=l.getCalculationInfo("stackedOnSeries"),me=0;m.useStyle(ee(f.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),j&&(me=ac(j.get("smooth"))),m.setShape({smooth:Y,stackedOnSmooth:me,smoothMonotone:Z,connectNulls:T}),gn(m,e,"areaStyle"),J(m).seriesIndex=e.seriesIndex,pn(m,$,R,E)}var Ze=function(he){i._changePolyState(he)};l.eachItemGraphicEl(function(he){he&&(he.onHoverStateChange=Ze)}),this._polyline.onHoverStateChange=Ze,this._data=l,this._coordSys=o,this._stackedOnPoints=x,this._points=c,this._step=D,this._valueOrigin=S,e.get("triggerLineEvent")&&(this.packEventData(e,p),m&&this.packEventData(e,m))},t.prototype.packEventData=function(e,n){J(n).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,n,a,i){var o=e.getData(),s=tr(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],c=l[s*2+1];if(isNaN(f)||isNaN(c)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,c))return;var h=e.get("zlevel")||0,v=e.get("z")||0;u=new ol(o,s),u.x=f,u.y=c,u.setZ(h,v);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=h,d.z=v,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else ze.prototype.highlight.call(this,e,n,a,i)},t.prototype.downplay=function(e,n,a,i){var o=e.getData(),s=tr(o,i);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else ze.prototype.downplay.call(this,e,n,a,i)},t.prototype._changePolyState=function(e){var n=this._polygon;Al(this._polyline,e),n&&Al(n,e)},t.prototype._newPolyline=function(e){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new oC({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},t.prototype._newPolygon=function(e,n){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new lC({shape:{points:e,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},t.prototype._initSymbolLabelAnimation=function(e,n,a){var i,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):n.type==="polar"&&(i=s.dim==="angle",o=!0);var u=e.hostModel,f=u.get("animationDuration");U(f)&&(f=f(null));var c=u.get("animationDelay")||0,h=U(c)?c(null):c;e.eachItemGraphicEl(function(v,d){var p=v;if(p){var m=[v.x,v.y],g=void 0,y=void 0,_=void 0;if(a)if(o){var S=a,b=n.pointToCoord(m);i?(g=S.startAngle,y=S.endAngle,_=-b[1]/180*Math.PI):(g=S.r0,y=S.r,_=b[0])}else{var x=a;i?(g=x.x,y=x.x+x.width,_=v.x):(g=x.y+x.height,y=x.y,_=v.y)}var C=y===g?0:(_-g)/(y-g);l&&(C=1-C);var T=U(c)?c(d):f*C+h,A=p.getSymbolPath(),M=A.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),M&&M.animateFrom({style:{opacity:0}},{duration:300,delay:T}),A.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,n,a){var i=e.getModel("endLabel");if(_p(e)){var o=e.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new be({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=pC(l);f>=0&&(Nn(s,Bn(e,"endLabel"),{inheritColor:a,labelFetcher:e,labelDataIndex:f,defaultText:function(c,h,v){return v!=null?sp(o,v):il(o,c)},enableTextSetter:!0},mC(i,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,n,a,i,o,s,l){var u=this._endLabel,f=this._polyline;if(u){e<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var c=a.getLayout("points"),h=a.hostModel,v=h.get("connectNulls"),d=s.get("precision"),p=s.get("distance")||0,m=l.getBaseAxis(),g=m.isHorizontal(),y=m.inverse,_=n.shape,S=y?g?_.x:_.y+_.height:g?_.x+_.width:_.y,b=(g?p:0)*(y?-1:1),x=(g?0:-p)*(y?-1:1),C=g?"x":"y",T=gC(c,S,C),A=T.range,M=A[1]-A[0],D=void 0;if(M>=1){if(M>1&&!v){var I=ic(c,A[0]);u.attr({x:I[0]+b,y:I[1]+x}),o&&(D=h.getRawValue(A[0]))}else{var I=f.getPointOn(S,C);I&&u.attr({x:I[0]+b,y:I[1]+x});var L=h.getRawValue(A[0]),P=h.getRawValue(A[1]);o&&(D=jc(a,d,L,P,T.t))}i.lastFrameIndex=A[0]}else{var k=e===1||i.lastFrameIndex>0?A[0]:0,I=ic(c,k);o&&(D=h.getRawValue(k)),u.attr({x:I[0]+b,y:I[1]+x})}o&&kr(u).setLabelText(D)}},t.prototype._doUpdateAnimation=function(e,n,a,i,o,s,l){var u=this._polyline,f=this._polygon,c=e.hostModel,h=iC(this._data,e,this._stackedOnPoints,n,this._coordSys,a,this._valueOrigin),v=h.current,d=h.stackedOnCurrent,p=h.next,m=h.stackedOnNext;if(o&&(v=Pt(h.current,a,o,l),d=Pt(h.stackedOnCurrent,a,o,l),p=Pt(h.next,a,o,l),m=Pt(h.stackedOnNext,a,o,l)),nc(v,p)>3e3||f&&nc(d,m)>3e3){u.stopAnimation(),u.setShape({points:p}),f&&(f.stopAnimation(),f.setShape({points:p,stackedOnPoints:m}));return}u.shape.__points=h.current,u.shape.points=v;var g={shape:{points:p}};h.current!==v&&(g.shape.__points=h.next),u.stopAnimation(),Se(u,g,c),f&&(f.setShape({points:v,stackedOnPoints:d}),f.stopAnimation(),Se(f,{shape:{stackedOnPoints:m}},c),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var y=[],_=h.status,S=0;S<_.length;S++){var b=_[S].cmd;if(b==="="){var x=e.getItemGraphicEl(_[S].idx1);x&&y.push({el:x,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var C=u.shape.__points,T=0;Tt&&(t=r[e]);return isFinite(t)?t:NaN},min:function(r){for(var t=1/0,e=0;e10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),c=n.getDevicePixelRatio(),h=Math.abs(f[1]-f[0])*(c||1),v=Math.round(s/h);if(isFinite(v)&&v>1){i==="lttb"&&t.setData(a.lttbDownSample(a.mapDimension(u.dim),1/v));var d=void 0;z(i)?d=SC[i]:U(i)&&(d=i),d&&t.setData(a.downSample(a.mapDimension(u.dim),1/v,d,xC))}}}}}function HT(r){r.registerChartView(_C),r.registerSeriesModel(rC),r.registerLayout(ul("line",!0)),r.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",n)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,Sp("line"))}var xp=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,n){return si(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e){var n=this.coordinateSystem;if(n&&n.clampData){var a=n.dataToPoint(n.clampData(e)),i=this.getData(),o=i.getLayout("offset"),s=i.getLayout("size"),l=n.getBaseAxis().isHorizontal()?0:1;return a[l]+=o+s/2,a}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(lt);lt.registerClass(xp);const oc=xp;var bC=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(){return si(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>e&&(e=n),e},t.prototype.brushSelector=function(e,n,a){return a.rect(n.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=xv(oc.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(oc);const wC=bC;var CC=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),TC=function(r){B(t,r);function t(e){var n=r.call(this,e)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new CC},t.prototype.buildPath=function(e,n){var a=n.cx,i=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,f=n.startAngle,c=n.endAngle,h=n.clockwise,v=Math.PI*2,d=h?c-fMath.PI/2&&fs)return!0;s=c}return!1},t.prototype._isOrderDifferentInView=function(e,n){for(var a=n.scale,i=a.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],a.getOrdinalMeta().categories.length-1);o<=s;++o)if(e.ordinalNumbers[o]!==a.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(e,n,a,i){if(!!this._isOrderChangedWithinSameData(e,n,a)){var o=this._dataSort(e,a,n);this._isOrderDifferentInView(o,a)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(e,n,a){var i=n.baseAxis,o=this._dataSort(e,i,function(s){return e.get(e.mapDimension(n.otherAxis.dim),s)});a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},t.prototype.remove=function(e,n){this._clear(this._model),this._removeOnRenderedListener(n)},t.prototype.dispose=function(e,n){this._removeOnRenderedListener(n)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var n=this.group,a=this._data;e&&e.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(i){La(i,e,J(i).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(ze),lc={cartesian2d:function(r,t){var e=t.width<0?-1:1,n=t.height<0?-1:1;e<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height);var a=r.x+r.width,i=r.y+r.height,o=eo(t.x,r.x),s=to(t.x+t.width,a),l=eo(t.y,r.y),u=to(t.y+t.height,i),f=sa?s:o,t.y=c&&l>i?u:l,t.width=f?0:s-o,t.height=c?0:u-l,e<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),f||c},polar:function(r,t){var e=t.r0<=t.r?1:-1;if(e<0){var n=t.r;t.r=t.r0,t.r0=n}var a=to(t.r,r.r),i=eo(t.r0,r.r0);t.r=a,t.r0=i;var o=a-i<0;if(e<0){var n=t.r;t.r=t.r0,t.r0=n}return o}},uc={cartesian2d:function(r,t,e,n,a,i,o,s,l){var u=new pe({shape:N({},n),z2:1});if(u.__dataIndex=e,u.name="item",i){var f=u.shape,c=a?"height":"width";f[c]=0}return u},polar:function(r,t,e,n,a,i,o,s,l){var u=!a&&l?sc:or,f=new u({shape:n,z2:1});f.name="item";var c=bp(a);if(f.calculateTextPosition=AC(c,{isRoundCap:u===sc}),i){var h=f.shape,v=a?"r":"endAngle",d={};h[v]=a?0:n.startAngle,d[v]=n[v],(s?Se:Te)(f,{shape:d},i)}return f}};function LC(r,t){var e=r.get("realtimeSort",!0),n=t.getBaseAxis();if(e&&n.type==="category"&&t.type==="cartesian2d")return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}function fc(r,t,e,n,a,i,o,s){var l,u;i?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?Se:Te)(e,{shape:l},t,a,null);var f=t?r.baseAxis.model:null;(o?Se:Te)(e,{shape:u},f,a)}function cc(r,t){for(var e=0;e0?1:-1,o=n.height>0?1:-1;return{x:n.x+i*a/2,y:n.y+o*a/2,width:n.width-i*a,height:n.height-o*a}},polar:function(r,t,e){var n=r.getItemLayout(t);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function RC(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function bp(r){return function(t){var e=t?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+e;default:return n}}}(r)}function hc(r,t,e,n,a,i,o,s){var l=t.getItemVisual(e,"style");s||r.setShape("r",n.get(["itemStyle","borderRadius"])||0),r.useStyle(l);var u=n.getShallow("cursor");u&&r.attr("cursor",u);var f=s?o?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":o?a.height>=0?"bottom":"top":a.width>=0?"right":"left",c=Bn(n);Nn(r,c,{labelFetcher:i,labelDataIndex:e,defaultText:il(i.getData(),e),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:f});var h=r.getTextContent();if(s&&h){var v=n.get(["label","position"]);r.textConfig.inside=v==="middle"?!0:null,DC(r,v==="outside"?f:v,bp(o),n.get(["label","rotate"]))}km(h,c,i.getRawValue(e),function(p){return sp(t,p)});var d=n.getModel(["emphasis"]);pn(r,d.get("focus"),d.get("blurScope"),d.get("disabled")),gn(r,n),RC(a)&&(r.style.fill="none",r.style.stroke="none",w(r.states,function(p){p.style&&(p.style.fill=p.style.stroke="none")}))}function EC(r,t){var e=r.get(["itemStyle","borderColor"]);if(!e||e==="none")return 0;var n=r.get(["itemStyle","borderWidth"])||0,a=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),i=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,a,i)}var OC=function(){function r(){}return r}(),dc=function(r){B(t,r);function t(e){var n=r.call(this,e)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new OC},t.prototype.buildPath=function(e,n){for(var a=n.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f=0?e:null},30,!1);function NC(r,t,e){for(var n=r.baseDimIdx,a=1-n,i=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,f=0,c=i.length/3;f=s[0]&&t<=s[0]+l[0]&&e>=s[1]&&e<=s[1]+l[1])return o[f]}return-1}function wp(r,t,e){if(sl(e,"cartesian2d")){var n=t,a=e.getArea();return{x:r?n.x:a.x,y:r?a.y:n.y,width:r?n.width:a.width,height:r?a.height:n.height}}else{var a=e.getArea(),i=t;return{cx:a.cx,cy:a.cy,r0:r?a.r0:i.r0,r:r?a.r:i.r,startAngle:r?i.startAngle:0,endAngle:r?i.endAngle:Math.PI*2}}}function BC(r,t,e){var n=r.type==="polar"?or:pe;return new n({shape:wp(t,e,r),silent:!0,z2:0})}const VC=IC;function UT(r){r.registerChartView(VC),r.registerSeriesModel(wC),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,Q(mS,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,yS("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,Sp("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},function(a){t.sortInfo&&a.axis.setCategorySortInfo(t.sortInfo)})})}var ha=Math.PI*2,mc=Math.PI/180;function Cp(r,t){return Ft(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Tp(r,t){var e=Cp(r,t),n=r.get("center"),a=r.get("radius");O(a)||(a=[0,a]),O(n)||(n=[n,n]);var i=re(e.width,t.getWidth()),o=re(e.height,t.getHeight()),s=Math.min(i,o),l=re(a[0],s/2),u=re(a[1],s/2),f,c,h=r.coordinateSystem;if(h){var v=h.dataToPoint(n);f=v[0]||0,c=v[1]||0}else f=re(n[0],i)+e.x,c=re(n[1],o)+e.y;return{cx:f,cy:c,r0:l,r:u}}function FC(r,t,e){t.eachSeriesByType(r,function(n){var a=n.getData(),i=a.mapDimension("value"),o=Cp(n,e),s=Tp(n,e),l=s.cx,u=s.cy,f=s.r,c=s.r0,h=-n.get("startAngle")*mc,v=n.get("minAngle")*mc,d=0;a.each(i,function(M){!isNaN(M)&&d++});var p=a.getSum(i),m=Math.PI/(p||d)*2,g=n.get("clockwise"),y=n.get("roseType"),_=n.get("stillShowZeroSum"),S=a.getDataExtent(i);S[0]=0;var b=ha,x=0,C=h,T=g?1:-1;if(a.setLayout({viewRect:o,r:f}),a.each(i,function(M,D){var I;if(isNaN(M)){a.setItemLayout(D,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:g,cx:l,cy:u,r0:c,r:y?NaN:f});return}y!=="area"?I=p===0&&_?m:M*m:I=ha/d,Ie?g:m,b=Math.abs(_.label.y-e);if(b>=S.maxY){var x=_.label.x-t-_.len2*a,C=n+_.len,T=Math.abs(x)r.unconstrainedWidth?null:v:null;n.setStyle("width",d)}var p=n.getBoundingRect();i.width=p.width;var m=(n.style.margin||0)+2.1;i.height=p.height+m,i.y-=(i.height-c)/2}}}function ro(r){return r.position==="center"}function HC(r){var t=r.getData(),e=[],n,a,i=!1,o=(r.get("minShowLabelAngle")||0)*GC,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,f=s.x,c=s.y,h=s.height;function v(x){x.ignore=!0}function d(x){if(!x.ignore)return!0;for(var C in x.states)if(x.states[C].ignore===!1)return!0;return!1}t.each(function(x){var C=t.getItemGraphicEl(x),T=C.shape,A=C.getTextContent(),M=C.getTextGuideLine(),D=t.getItemModel(x),I=D.getModel("label"),L=I.get("position")||D.get(["emphasis","label","position"]),P=I.get("distanceToLabelLine"),k=I.get("alignTo"),V=re(I.get("edgeDistance"),u),$=I.get("bleedMargin"),R=D.getModel("labelLine"),E=R.get("length");E=re(E,u);var G=R.get("length2");if(G=re(G,u),Math.abs(T.endAngle-T.startAngle)0?"right":"left":Z>0?"left":"right"}var Tt=Math.PI,ct=0,Br=I.get("rotate");if(oe(Br))ct=Br*(Tt/180);else if(L==="center")ct=0;else if(Br==="radial"||Br===!0){var kp=Z<0?-Y+Tt:-Y;ct=kp}else if(Br==="tangential"&&L!=="outside"&&L!=="outer"){var ur=Math.atan2(Z,j);ur<0&&(ur=Tt*2+ur);var Rp=j>0;Rp&&(ur=Tt+ur),ct=ur-Tt}if(i=!!ct,A.x=me,A.y=Ze,A.rotation=ct,A.setStyle({verticalAlign:"middle"}),Ct){A.setStyle({align:wt});var hi=A.states.select;hi&&(hi.x+=A.x,hi.y+=A.y)}else{var Vr=A.getBoundingRect().clone();Vr.applyTransform(A.getComputedTransform());var fl=(A.style.margin||0)+2.1;Vr.y-=fl/2,Vr.height+=fl,e.push({label:A,labelLine:M,position:L,len:E,len2:G,minTurnAngle:R.get("minTurnAngle"),maxSurfaceAngle:R.get("maxSurfaceAngle"),surfaceNormal:new ye(Z,j),linePoints:he,textAlign:wt,labelDistance:P,labelAlignTo:k,edgeDistance:V,bleedMargin:$,rect:Vr,unconstrainedWidth:Vr.width,labelStyleWidth:A.style.width})}C.setTextConfig({inside:Ct})}}),!i&&r.get("avoidLabelOverlap")&&WC(e,n,a,l,u,h,f,c);for(var p=0;p0){for(var f=o.getItemLayout(0),c=1;isNaN(f&&f.startAngle)&&c=i.r0}},t.type="pie",t}(ze);const $C=YC;function Dp(r,t,e){t=O(t)&&{coordDimensions:t}||N({encodeDefine:r.getEncode()},t);var n=r.getSource(),a=Xh(n,t).dimensions,i=new Zh(a,r);return i.initData(n,e),i}var ZC=function(){function r(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return r.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},r.prototype.containName=function(t){var e=this._getRawData();return e.indexOfName(t)>=0},r.prototype.indexOfName=function(t){var e=this._getDataWithEncodedVisual();return e.indexOfName(t)},r.prototype.getItemVisual=function(t,e){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,e)},r}();const XC=ZC;var KC=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new XC(ne(this.getData,this),ne(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){var e=Dp(this,{coordDimensions:["value"],encodeDefaulter:Q(sy,this)}),n=[];return e.each(e.mapDimension("value"),function(a){n.push(a)}),this.seats=_g(n,e.hostModel.get("percentPrecision")),e},t.prototype.getDataParams=function(e){var n=r.prototype.getDataParams.call(this,e);return n.percent=this.seats[e],n.$vars.push("percent"),n},t.prototype._defaultLabelLine=function(e){po(e,"labelLine",["show"]);var n=e.labelLine,a=e.emphasis.labelLine;n.show=n.show&&e.label.show,a.show=a.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(lt);const qC=KC;function jC(r){return{seriesType:r,reset:function(t,e){var n=t.getData();n.filterSelf(function(a){var i=n.mapDimension("value"),o=n.get(i,a);return!(oe(o)&&!isNaN(o)&&o<0)})}}}function YT(r){r.registerChartView($C),r.registerSeriesModel(qC),K0("pie",r.registerAction),r.registerLayout(Q(FC,"pie")),r.registerProcessor(zC("pie")),r.registerProcessor(jC("pie"))}var QC=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e,n){return si(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return e==null?this.option.large?5e3:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e==null?this.option.large?1e4:this.get("progressiveThreshold"):e},t.prototype.brushSelector=function(e,n,a){return a.point(n.getItemLayout(e))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},t}(lt);const JC=QC;var Mp=4,eT=function(){function r(){}return r}(),tT=function(r){B(t,r);function t(e){var n=r.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.getDefaultShape=function(){return new eT},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,n){var a=n.points,i=n.size,o=this.symbolProxy,s=o.shape,l=e.getContext?e.getContext():e,u=l&&i[0]=0;u--){var f=u*2,c=i[f]-s/2,h=i[f+1]-l/2;if(e>=c&&n>=h&&e<=c+s&&n<=h+l)return u}return-1},t.prototype.contain=function(e,n){var a=this.transformCoordToLocal(e,n),i=this.getBoundingRect();if(e=a[0],n=a[1],i.contain(e,n)){var o=this.hoverDataIdx=this.findDataIndex(e,n);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var n=this.shape,a=n.points,i=n.size,o=i[0],s=i[1],l=1/0,u=1/0,f=-1/0,c=-1/0,h=0;h=0&&(u.dataIndex=c+(t.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}();const nT=rT;var aT=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){var i=e.getData(),o=this._updateSymbolDraw(i,e);o.updateData(i,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,n,a){var i=e.getData(),o=this._updateSymbolDraw(i,e);o.incrementalPrepareUpdate(i),this._finished=!1},t.prototype.incrementalRender=function(e,n,a){this._symbolDraw.incrementalUpdate(e,n.getData(),{clipShape:this._getClipShape(n)}),this._finished=e.end===n.getData().count()},t.prototype.updateTransform=function(e,n,a){var i=e.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=ul("").reset(e,n,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){var n=e.coordinateSystem,a=n&&n.getArea&&n.getArea();return e.get("clip",!0)?a:null},t.prototype._updateSymbolDraw=function(e,n){var a=this._symbolDraw,i=n.pipelineContext,o=i.large;return(!a||o!==this._isLargeDraw)&&(a&&a.remove(),a=this._symbolDraw=o?new nT:new lp,this._isLargeDraw=o,this.group.removeAll()),this.group.add(a.group),a},t.prototype.remove=function(e,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(ze);const iT=aT;function $T(r){_t(Pd),r.registerSeriesModel(JC),r.registerChartView(iT),r.registerLayout(ul("scatter"))}var oT=function(){function r(){}return r.prototype.getInitialData=function(t,e){var n,a=e.getComponent("xAxis",this.get("xAxisIndex")),i=e.getComponent("yAxis",this.get("yAxisIndex")),o=a.get("type"),s=i.get("type"),l;o==="category"?(t.layout="horizontal",n=a.getOrdinalMeta(),l=!0):s==="category"?(t.layout="vertical",n=i.getOrdinalMeta(),l=!0):t.layout=t.layout||"horizontal";var u=["x","y"],f=t.layout==="horizontal"?0:1,c=this._baseAxisDim=u[f],h=u[1-f],v=[a,i],d=v[f].get("type"),p=v[1-f].get("type"),m=t.data;if(m&&l){var g=[];w(m,function(S,b){var x;O(S)?(x=S.slice(),S.unshift(b)):O(S.value)?(x=N({},S),x.value=x.value.slice(),S.value.unshift(b)):x=S,g.push(x)}),t.data=g}var y=this.defaultValueDimensions,_=[{name:c,type:Bo(d),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:Bo(p),dimsDef:y.slice()}];return Dp(this,{coordDimensions:_,dimensionsCount:y.length+1,encodeDefaulter:Q(Fv,_,this)})},r.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},r}(),sT=["color","borderColor"],lT=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,n,a){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,n,a,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,n):this._incrementalRenderNormal(e,n)},t.prototype.eachRendered=function(e){On(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var n=e.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(e){var n=e.getData(),a=this._data,i=this.group,o=n.getLayout("isSimpleBox"),s=e.get("clip",!0),l=e.coordinateSystem,u=l.getArea&&l.getArea();this._data||i.removeAll(),n.diff(a).add(function(f){if(n.hasValue(f)){var c=n.getItemLayout(f);if(s&&_c(u,c))return;var h=no(c,f,!0);Te(h,{shape:{points:c.ends}},e,f),ao(h,n,f,o),i.add(h),n.setItemGraphicEl(f,h)}}).update(function(f,c){var h=a.getItemGraphicEl(c);if(!n.hasValue(f)){i.remove(h);return}var v=n.getItemLayout(f);if(s&&_c(u,v)){i.remove(h);return}h?(Se(h,{shape:{points:v.ends}},e,f),$a(h)):h=no(v),ao(h,n,f,o),i.add(h),n.setItemGraphicEl(f,h)}).remove(function(f){var c=a.getItemGraphicEl(f);c&&i.remove(c)}).execute(),this._data=n},t.prototype._renderLarge=function(e){this._clear(),xc(e,this.group);var n=e.get("clip",!0)?yp(e.coordinateSystem,!1,e):null;n?this.group.setClipPath(n):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,n){for(var a=n.getData(),i=a.getLayout("isSimpleBox"),o;(o=e.next())!=null;){var s=a.getItemLayout(o),l=no(s);ao(l,a,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},t.prototype._incrementalRenderLarge=function(e,n){xc(n,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(ze),uT=function(){function r(){}return r}(),fT=function(r){B(t,r);function t(e){var n=r.call(this,e)||this;return n.type="normalCandlestickBox",n}return t.prototype.getDefaultShape=function(){return new uT},t.prototype.buildPath=function(e,n){var a=n.points;this.__simpleBox?(e.moveTo(a[4][0],a[4][1]),e.lineTo(a[6][0],a[6][1])):(e.moveTo(a[0][0],a[0][1]),e.lineTo(a[1][0],a[1][1]),e.lineTo(a[2][0],a[2][1]),e.lineTo(a[3][0],a[3][1]),e.closePath(),e.moveTo(a[4][0],a[4][1]),e.lineTo(a[5][0],a[5][1]),e.moveTo(a[6][0],a[6][1]),e.lineTo(a[7][0],a[7][1]))},t}(ge);function no(r,t,e){var n=r.ends;return new fT({shape:{points:e?cT(n,r):n},z2:100})}function _c(r,t){for(var e=!0,n=0;n0?"borderColor":"borderColor0"])||e.get(["itemStyle",r>0?"color":"color0"]),i=e.getModel("itemStyle").getItemStyle(sT);t.useStyle(i),t.style.fill=null,t.style.stroke=a}const hT=lT;var Ip=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],e}return t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(e,n,a){var i=n.getItemLayout(e);return i&&a.rect(i.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t}(lt);St(Ip,oT,!0);const dT=Ip;function pT(r){!r||!O(r.series)||w(r.series,function(t){H(t)&&t.type==="k"&&(t.type="candlestick")})}var gT=["itemStyle","borderColor"],mT=["itemStyle","borderColor0"],yT=["itemStyle","color"],_T=["itemStyle","color0"],ST={seriesType:"candlestick",plan:Fn(),performRawSeries:!0,reset:function(r,t){function e(i,o){return o.get(i>0?yT:_T)}function n(i,o){return o.get(i>0?gT:mT)}if(!t.isSeriesFiltered(r)){var a=r.pipelineContext.large;return!a&&{progress:function(i,o){for(var s;(s=i.next())!=null;){var l=o.getItemModel(s),u=o.getItemLayout(s).sign,f=l.getItemStyle();f.fill=e(u,l),f.stroke=n(u,l)||f.fill;var c=o.ensureUniqueItemVisual(s,"style");N(c,f)}}}}}};const xT=ST;var bT={seriesType:"candlestick",plan:Fn(),reset:function(r){var t=r.coordinateSystem,e=r.getData(),n=wT(r,e),a=0,i=1,o=["x","y"],s=e.getDimensionIndex(e.mapDimension(o[a])),l=F(e.mapDimensionsAll(o[i]),e.getDimensionIndex,e),u=l[0],f=l[1],c=l[2],h=l[3];if(e.setLayout({candleWidth:n,isSimpleBox:n<=1.3}),s<0||l.length<4)return;return{progress:r.pipelineContext.large?d:v};function v(p,m){for(var g,y=m.getStore();(g=p.next())!=null;){var _=y.get(s,g),S=y.get(u,g),b=y.get(f,g),x=y.get(c,g),C=y.get(h,g),T=Math.min(S,b),A=Math.max(S,b),M=k(T,_),D=k(A,_),I=k(x,_),L=k(C,_),P=[];V(P,D,0),V(P,M,1),P.push(R(L),R(D),R(I),R(M)),m.setItemLayout(g,{sign:wc(y,g,S,b,f),initBaseline:S>b?D[i]:M[i],ends:P,brushRect:$(x,C,_)})}function k(E,G){var Y=[];return Y[a]=G,Y[i]=E,isNaN(G)||isNaN(E)?[NaN,NaN]:t.dataToPoint(Y)}function V(E,G,Y){var Z=G.slice(),j=G.slice();Z[a]=ma(Z[a]+n/2,1,!1),j[a]=ma(j[a]-n/2,1,!0),Y?E.push(Z,j):E.push(j,Z)}function $(E,G,Y){var Z=k(E,Y),j=k(G,Y);return Z[a]-=n/2,j[a]-=n/2,{x:Z[0],y:Z[1],width:n,height:j[1]-Z[1]}}function R(E){return E[a]=ma(E[a],1),E}}function d(p,m){for(var g=nt(p.count*4),y=0,_,S=[],b=[],x,C=m.getStore();(x=p.next())!=null;){var T=C.get(s,x),A=C.get(u,x),M=C.get(f,x),D=C.get(c,x),I=C.get(h,x);if(isNaN(T)||isNaN(D)||isNaN(I)){g[y++]=NaN,y+=3;continue}g[y++]=wc(C,x,A,M,f),S[a]=T,S[i]=D,_=t.dataToPoint(S,null,b),g[y++]=_?_[0]:NaN,g[y++]=_?_[1]:NaN,S[i]=I,_=t.dataToPoint(S,null,b),g[y++]=_?_[1]:NaN}m.setLayout("largePoints",g)}}};function wc(r,t,e,n,a){var i;return e>n?i=-1:e0?r.get(a,t-1)<=n?1:-1:1,i}function wT(r,t){var e=r.getBaseAxis(),n,a=e.type==="category"?e.getBandWidth():(n=e.getExtent(),Math.abs(n[1]-n[0])/t.count()),i=re(se(r.get("barMaxWidth"),a),a),o=re(se(r.get("barMinWidth"),1),a),s=r.get("barWidth");return s!=null?re(s,a):Math.max(Math.min(a/2,i),o)}const CT=bT;function ZT(r){r.registerChartView(hT),r.registerSeriesModel(dT),r.registerPreprocessor(pT),r.registerVisual(xT),r.registerLayout(CT)}function Cc(r){return O(r[0])}function Tc(r,t){for(var e=[],n=r.length,a=0;a=0;a--)if(!e[a].many.length){var l=e[s].many;if(l.length<=1)if(s)s=0;else return e;var i=l.length,u=Math.ceil(i/2);e[a].many=l.slice(u,i),e[s].many=l.slice(0,u),s++}return e}var TT={clone:function(r){for(var t=[],e=1-Math.pow(1-r.path.style.opacity,1/r.count),n=0;n0))return;var s=n.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,f;Cc(r)&&(u=r,f=t),Cc(t)&&(u=t,f=r);function c(g,y,_,S,b){var x=g.many,C=g.one;if(x.length===1&&!b){var T=y?x[0]:C,A=y?C:x[0];if(ug(T))c({many:[T],one:A},!0,_,S,!0);else{var M=s?ee({delay:s(_,S)},l):l;fg(T,A,M),i(T,A,T,A,M)}}else for(var D=ee({dividePath:TT[e],individualDelay:s&&function($,R,E,G){return s($+_,S)}},l),I=y?cg(x,C,D):vg(C,x,D),L=I.fromIndividuals,P=I.toIndividuals,k=L.length,V=0;Vt.length,v=u?Tc(f,u):Tc(h?t:r,[h?r:t]),d=0,p=0;pLp))for(var a=n.getIndices(),i=DT(n),o=0;o0&&S.group.traverse(function(x){x instanceof ge&&!x.animators.length&&x.animateFrom({style:{opacity:0}},b)})})}function Dc(r){var t=r.getModel("universalTransition").get("seriesKey");return t||r.id}function Mc(r){return O(r)?r.sort().join(","):r}function Rt(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function LT(r,t){var e=W(),n=W(),a=W();return w(r.oldSeries,function(i,o){var s=r.oldData[o],l=Dc(i),u=Mc(l);n.set(u,s),O(l)&&w(l,function(f){a.set(f,{data:s,key:u})})}),w(t.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.getData(),s=Dc(i),l=Mc(s),u=n.get(l);if(u)e.set(l,{oldSeries:[{divide:Rt(u),data:u}],newSeries:[{divide:Rt(o),data:o}]});else if(O(s)){var f=[];w(s,function(v){var d=n.get(v);d&&f.push({divide:Rt(d),data:d})}),f.length&&e.set(l,{oldSeries:f,newSeries:[{data:o,divide:Rt(o)}]})}else{var c=a.get(s);if(c){var h=e.get(c.key);h||(h={oldSeries:[{data:c.data,divide:Rt(c.data)}],newSeries:[]},e.set(c.key,h)),h.newSeries.push({data:o,divide:Rt(o)})}}}}),e}function Ic(r,t){for(var e=0;e=0&&a.push({data:t.oldData[s],divide:Rt(t.oldData[s]),dim:o.dimension})}),w(ce(r.to),function(o){var s=Ic(e.updatedSeries,o);if(s>=0){var l=e.updatedSeries[s].getData();i.push({data:l,divide:Rt(l),dim:o.dimension})}}),a.length>0&&i.length>0&&Pp(a,i,n)}function XT(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){w(ce(n.seriesTransition),function(a){w(ce(a.to),function(i){for(var o=n.updatedSeries,s=0;s{e&&s&&a&&e.addEventListener(s,a,r)},se=(e,s,a,r=!1)=>{e&&s&&a&&e.removeEventListener(s,a,r)},k=(e,s)=>{e&&(w(s,"Object")?Object.keys(s).forEach(a=>{e.style[a]=s[a]}):w(s,"String")&&s.split(";").forEach(r=>{const[l,n]=r.split(":");l&&n&&(e.style[l.trim()]=n.trim())}))},h=x({name:"RayChart",props:{width:{type:String,default:"100%"},height:{type:String,default:"100%"},autoResize:{type:[Boolean,Object],default:!0},canvasRender:{type:Boolean,default:!0},showAria:{type:Boolean,default:!1},options:{type:Object,default:()=>({})},success:{type:Function,default:()=>({})},error:{type:Function,default:()=>({})},theme:{type:[String,Object],default:""},autoChangeTheme:{type:Boolean,default:!1},use:{type:Array,default:()=>[]}},setup(e){const s=L(),{themeValue:a}=T(s),r=m(),l=m();let n;const g=K(()=>({"--ray-chart-width":e.width,"--ray-chart-height":e.height})),E=async()=>{f([D,V,U,j,z,M,I,N]),f([P,_,W,q,G]),f([X,H]),f([J]);try{f(e.use)}catch{console.error("Error: wrong property and method passed in extend attribute")}},b=()=>{let o=R(e.options);const c=p=>Object.assign({},o,p);return e.showAria&&(o=c({aria:{enabled:!0,decal:{show:!0}}})),o},i=o=>{var v,A;const c=r.value,p=b(),{height:B,width:O}=c.getBoundingClientRect();B===0&&k(c,{height:"200px"}),O===0&&k(c,{width:"200px"});try{n=$(c,o),l.value=n,p&&n.setOption(p),(v=e.success)==null||v.call(e,n)}catch{(A=e.error)==null||A.call(e)}},d=o=>{if(e.autoChangeTheme){i(o?"dark":"");return}e.theme||i("")},y=()=>{n&&(n.clear(),n.dispose())},C=()=>{n&&n.resize()};return F(()=>[a.value],([o])=>{e.autoChangeTheme&&(y(),d(o))}),F(()=>e.showAria,()=>{y(),(e.autoChangeTheme||e.theme)&&a.value?i("dark"):i("")}),Q(async()=>{await E()}),Y(()=>{Z(()=>{e.autoChangeTheme?d(a.value):e.theme?i("dark"):i(""),e.autoResize&&ae(window,"resize",C)})}),ee(()=>{y(),se(window,"resize",C)}),{rayChartRef:r,cssVarsRef:g,echartInstance:l}},render(){return t("div",{class:"ray-chart",style:[this.cssVarsRef],ref:"rayChartRef"},null)}}),$e=x({name:"Echart",setup(){const e=m(),s=m(!1),a=m(!1);return{baseOptions:{legend:{},tooltip:{},xAxis:{type:"category",data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]},yAxis:{type:"value"},series:[{name:"\u65E5\u671F",data:[120,200,150,80,70,110,130],type:"bar",showBackground:!0,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)"}}]},baseChartRef:e,chartLoading:s,handleLoadingShow:i=>{if(e.value){const{echartInstance:d}=e.value;i?d.showLoading():d.hideLoading()}},chartAria:a,handleAriaShow:i=>{a.value=i},handleChartRenderSuccess:i=>{window.$notification.info({title:"\u53EF\u89C6\u5316\u56FE\u6E32\u67D3\u6210\u529F\u56DE\u8C03\u51FD\u6570",content:"\u53EF\u89C6\u5316\u56FE\u6E32\u67D3\u6210\u529F, \u5E76\u4E14\u8FD4\u56DE\u4E86\u5F53\u524D\u53EF\u89C6\u5316\u56FE\u5B9E\u4F8B",duration:5*1e3}),console.log(i)},basePieOptions:{title:{text:"Referer of a Website",subtext:"Fake Data",left:"center"},tooltip:{trigger:"item"},legend:{orient:"vertical",left:"left"},series:[{name:"Access From",type:"pie",radius:"50%",data:[{value:1048,name:"Search Engine"},{value:735,name:"Direct"},{value:580,name:"Email"},{value:484,name:"Union Ads"},{value:300,name:"Video Ads"}],emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]},baseLineOptions:{title:{text:"Stacked Area Chart"},tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}}},legend:{data:["Email","Union Ads","Video Ads","Direct","Search Engine"]},toolbox:{feature:{saveAsImage:{}}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",boundaryGap:!1,data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]}],yAxis:[{type:"value"}],series:[{name:"Email",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:[120,132,101,134,90,230,210]},{name:"Union Ads",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:[220,182,191,234,290,330,310]},{name:"Video Ads",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:[150,232,201,154,190,330,410]},{name:"Direct",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:[320,332,301,334,390,330,320]},{name:"Search Engine",type:"line",stack:"Total",label:{show:!0,position:"top"},areaStyle:{},emphasis:{focus:"series"},data:[820,932,901,934,1290,1330,1320]}]}}},render(){return t("div",{class:"echart"},[t(u,{title:"RayChart\u7EC4\u4EF6\u4F7F\u7528"},{default:()=>[te("\u5728\u4F7F\u7528\u8BE5\u7EC4\u4EF6\u65F6, \u4E00\u5B9A\u8981\u6CE8\u610F\u6839\u7EC4\u4EF6\u7684\u9AD8\u5EA6\u521D\u59CB\u5316\u95EE\u9898, \u5982\u679C\u9700\u8981\u4F7F\u7528\u5176\u4F59\u7684\u56FE\u4F8B, \u53EA\u9700\u8981\u4ECE echarts \u4E2D\u5BFC\u5165\u5BF9\u5E94\u7EC4\u4EF6, \u5E76\u4E14\u4F7F\u7528 use \u65B9\u6CD5\u6CE8\u518C. \u8BE5\u7EC4\u4EF6\u5B9E\u73B0\u4E86\u81EA\u52A8\u8DDF\u968F\u6A21\u677F\u4E3B\u9898\u5207\u6362\u529F\u80FD, \u4F46\u662F\u52A8\u6001\u5207\u6362\u635F\u8017\u8F83\u5927, \u6240\u4EE5\u9ED8\u8BA4\u4E0D\u542F\u7528")]}),t(u,{title:"\u57FA\u7840\u4F7F\u7528"},{default:()=>[t("div",{class:"chart--container"},[t(h,{options:this.baseOptions},null)])]}),t(u,{title:"\u6E32\u67D3\u6210\u529F\u540E\u8FD0\u884C\u56DE\u8C03\u51FD\u6570"},{default:()=>[t("div",{class:"chart--container"},[t(h,{options:this.basePieOptions,success:this.handleChartRenderSuccess.bind(this)},null)])]}),t(u,{title:"\u80FD\u8DDF\u968F\u4E3B\u9898\u5207\u6362\u7684\u53EF\u89C6\u5316\u56FE"},{default:()=>[t("div",{class:"chart--container"},[t(h,{autoChangeTheme:!0,options:this.baseLineOptions,showAria:this.chartAria},null)])]}),t(u,{title:"\u4E0D\u8DDF\u968F\u4E3B\u9898\u5207\u6362\u7684\u6697\u8272\u4E3B\u9898\u53EF\u89C6\u5316\u56FE"},{default:()=>[t("div",{class:"chart--container"},[t(h,{theme:"dark",options:this.baseOptions},null)])]}),t(u,{title:"\u52A0\u8F7D\u52A8\u753B"},{default:()=>[t(S,{value:this.chartLoading,"onUpdate:value":e=>this.chartLoading=e,onUpdateValue:this.handleLoadingShow.bind(this),style:["padding: 18px 0"]},{checked:()=>"\u9690\u85CF\u52A0\u8F7D\u52A8\u753B",unchecked:()=>"\u663E\u793A\u52A0\u8F7D\u52A8\u753B"}),t("div",{class:"chart--container"},[t(h,{ref:"baseChartRef",options:this.baseOptions},null)])]}),t(u,{title:"\u8D34\u753B\u53EF\u89C6\u5316\u56FE"},{default:()=>[t(S,{value:this.chartAria,"onUpdate:value":e=>this.chartAria=e,onUpdateValue:this.handleAriaShow.bind(this),style:["padding: 18px 0"]},{checked:()=>"\u9690\u85CF\u8D34\u82B1",unchecked:()=>"\u663E\u793A\u8D34\u82B1"}),t("div",{class:"chart--container"},[t(h,{options:this.baseOptions,showAria:this.chartAria},null)])]})])}});export{$e as default}; diff --git a/assets/index.2312553f.js.gz b/assets/index.2312553f.js.gz deleted file mode 100644 index a76e1f43..00000000 Binary files a/assets/index.2312553f.js.gz and /dev/null differ diff --git a/assets/index.32b1927e.js b/assets/index.32b1927e.js new file mode 100644 index 00000000..69e49ab1 --- /dev/null +++ b/assets/index.32b1927e.js @@ -0,0 +1 @@ +import{s as R}from"./pinia.04532b5d.js";import{c as L}from"./lodash-es.474663c3.js";import{b as $}from"./index.a4c9b7e0.js";import{v as F}from"./hook.746076e4.js";import{u as f,i as D,a as V,b as U,c as j,d as z,e as M,f as N,g as P,h as _,j as I,k as W,l as q,m as G,n as X,o as H,p as J,q as K,r as Q}from"./echarts.ab55e4f1.js";import{e as k,r as m,l as Y,w as E,h as Z,o as ee,n as te,f as ae,ao as t,c as se}from"./@vue.6f9b3ecc.js";import{M as u,u as S}from"./naive-ui.7944048f.js";import"./vue-demi.b3a9cad9.js";import"./pinia-plugin-persistedstate.c449c8e7.js";import"./vue-i18n.715a0b35.js";import"./@intlify.c1495d3a.js";import"./vue-router.e6f2912b.js";import"./@vueuse.a0b06385.js";import"./screenfull.c1f291d3.js";import"./date-fns.03faffa8.js";import"./vueuc.feb70412.js";import"./evtd.9eee5233.js";import"./seemly.786de437.js";import"./@css-render.66179467.js";import"./vooks.d8957d1b.js";import"./vdirs.9b78243b.js";import"./@juggle.32c34d6c.js";import"./css-render.20ab466e.js";import"./@emotion.6322e2ae.js";import"./treemate.80cdf2c2.js";import"./date-fns-tz.974adeb4.js";import"./async-validator.fb49d0f5.js";import"./zrender.536036ea.js";const ie=(e,i,a,r=!1)=>{e&&i&&a&&e.addEventListener(i,a,r)},ne=(e,i,a,r=!1)=>{e&&i&&a&&e.removeEventListener(i,a,r)},O=(e,i)=>{e&&(F(i,"Object")?Object.keys(i).forEach(a=>{e.style[a]=i[a]}):F(i,"String")&&i.split(";").forEach(r=>{const[l,s]=r.split(":");l&&s&&(e.style[l.trim()]=s.trim())}))},h=k({name:"RayChart",props:{width:{type:String,default:"100%"},height:{type:String,default:"100%"},autoResize:{type:[Boolean,Object],default:!0},canvasRender:{type:Boolean,default:!0},showAria:{type:Boolean,default:!1},options:{type:Object,default:()=>({})},success:{type:Function,default:()=>({})},error:{type:Function,default:()=>({})},theme:{type:[String,Object],default:""},autoChangeTheme:{type:Boolean,default:!1},use:{type:Array,default:()=>[]},watchOptions:{type:Boolean,default:!0}},setup(e){const i=$(),{themeValue:a}=R(i),r=m(),l=m();let s;const b=Y(()=>({"--ray-chart-width":e.width,"--ray-chart-height":e.height})),C=async()=>{f([V,U,j,z,M,N,P,_]),f([I,W,q,G,X,H]),f([J,K]),f([Q]);try{f(e.use)}catch{console.error("Error: wrong property and method passed in extend attribute")}},y=()=>{let o=L(e.options);const c=p=>Object.assign({},o,p);return e.showAria&&(o=c({aria:{enabled:!0,decal:{show:!0}}})),o},n=o=>{var v,A;const c=r.value,p=y(),{height:x,width:B}=c.getBoundingClientRect();x===0&&O(c,{height:"200px"}),B===0&&O(c,{width:"200px"});try{s=D(c,o),l.value=s,p&&s.setOption(p),(v=e.success)==null||v.call(e,s)}catch(T){(A=e.error)==null||A.call(e),console.error(T)}},d=o=>{if(e.autoChangeTheme){n(o?"dark":"");return}e.theme||n("")},g=()=>{s&&(s.clear(),s.dispose())},w=()=>{s&&s.resize()};return E(()=>[a.value],([o])=>{e.autoChangeTheme&&(g(),d(o))}),E(()=>e.showAria,()=>{g(),(e.autoChangeTheme||e.theme)&&a.value?n("dark"):n("")}),e.watchOptions&&E(()=>e.watchOptions,()=>{const o=y();s==null||s.setOption(o)}),Z(async()=>{await C()}),ee(()=>{te(()=>{e.autoChangeTheme?d(a.value):e.theme?n("dark"):n(""),e.autoResize&&ie(window,"resize",w)})}),ae(()=>{g(),ne(window,"resize",w)}),{rayChartRef:r,cssVarsRef:b,echartInstance:l}},render(){return t("div",{class:"ray-chart",style:[this.cssVarsRef],ref:"rayChartRef"},null)}}),De=k({name:"Echart",setup(){const e=m(),i=m(!1),a=m(!1);return{baseOptions:{legend:{},tooltip:{},xAxis:{type:"category",data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]},yAxis:{type:"value"},series:[{name:"\u65E5\u671F",data:[120,200,150,80,70,110,130],type:"bar",showBackground:!0,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)"}}]},baseChartRef:e,chartLoading:i,handleLoadingShow:n=>{if(e.value){const{echartInstance:d}=e.value;n?d.showLoading():d.hideLoading()}},chartAria:a,handleAriaShow:n=>{a.value=n},handleChartRenderSuccess:n=>{window.$notification.info({title:"\u53EF\u89C6\u5316\u56FE\u6E32\u67D3\u6210\u529F\u56DE\u8C03\u51FD\u6570",content:"\u53EF\u89C6\u5316\u56FE\u6E32\u67D3\u6210\u529F, \u5E76\u4E14\u8FD4\u56DE\u4E86\u5F53\u524D\u53EF\u89C6\u5316\u56FE\u5B9E\u4F8B",duration:5*1e3}),console.log(n)},basePieOptions:{title:{text:"Referer of a Website",subtext:"Fake Data",left:"center"},tooltip:{trigger:"item"},legend:{orient:"vertical",left:"left"},series:[{name:"Access From",type:"pie",radius:"50%",data:[{value:1048,name:"Search Engine"},{value:735,name:"Direct"},{value:580,name:"Email"},{value:484,name:"Union Ads"},{value:300,name:"Video Ads"}],emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]},baseLineOptions:{title:{text:"Stacked Area Chart"},tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}}},legend:{data:["Email","Union Ads","Video Ads","Direct","Search Engine"]},toolbox:{feature:{saveAsImage:{}}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",boundaryGap:!1,data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]}],yAxis:[{type:"value"}],series:[{name:"Email",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:[120,132,101,134,90,230,210]},{name:"Union Ads",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:[220,182,191,234,290,330,310]},{name:"Video Ads",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:[150,232,201,154,190,330,410]},{name:"Direct",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:[320,332,301,334,390,330,320]},{name:"Search Engine",type:"line",stack:"Total",label:{show:!0,position:"top"},areaStyle:{},emphasis:{focus:"series"},data:[820,932,901,934,1290,1330,1320]}]}}},render(){return t("div",{class:"echart"},[t(u,{title:"RayChart\u7EC4\u4EF6\u4F7F\u7528"},{default:()=>[se("\u5728\u4F7F\u7528\u8BE5\u7EC4\u4EF6\u65F6, \u4E00\u5B9A\u8981\u6CE8\u610F\u6839\u7EC4\u4EF6\u7684\u9AD8\u5EA6\u521D\u59CB\u5316\u95EE\u9898, \u5982\u679C\u9700\u8981\u4F7F\u7528\u5176\u4F59\u7684\u56FE\u4F8B, \u53EA\u9700\u8981\u4ECE echarts \u4E2D\u5BFC\u5165\u5BF9\u5E94\u7EC4\u4EF6, \u5E76\u4E14\u4F7F\u7528 use \u65B9\u6CD5\u6CE8\u518C. \u8BE5\u7EC4\u4EF6\u5B9E\u73B0\u4E86\u81EA\u52A8\u8DDF\u968F\u6A21\u677F\u4E3B\u9898\u5207\u6362\u529F\u80FD, \u4F46\u662F\u52A8\u6001\u5207\u6362\u635F\u8017\u8F83\u5927, \u6240\u4EE5\u9ED8\u8BA4\u4E0D\u542F\u7528")]}),t(u,{title:"\u57FA\u7840\u4F7F\u7528"},{default:()=>[t("div",{class:"chart--container"},[t(h,{options:this.baseOptions},null)])]}),t(u,{title:"\u6E32\u67D3\u6210\u529F\u540E\u8FD0\u884C\u56DE\u8C03\u51FD\u6570"},{default:()=>[t("div",{class:"chart--container"},[t(h,{options:this.basePieOptions,success:this.handleChartRenderSuccess.bind(this)},null)])]}),t(u,{title:"\u80FD\u8DDF\u968F\u4E3B\u9898\u5207\u6362\u7684\u53EF\u89C6\u5316\u56FE"},{default:()=>[t("div",{class:"chart--container"},[t(h,{autoChangeTheme:!0,options:this.baseLineOptions,showAria:this.chartAria},null)])]}),t(u,{title:"\u4E0D\u8DDF\u968F\u4E3B\u9898\u5207\u6362\u7684\u6697\u8272\u4E3B\u9898\u53EF\u89C6\u5316\u56FE"},{default:()=>[t("div",{class:"chart--container"},[t(h,{theme:"dark",options:this.baseOptions},null)])]}),t(u,{title:"\u52A0\u8F7D\u52A8\u753B"},{default:()=>[t(S,{value:this.chartLoading,"onUpdate:value":e=>this.chartLoading=e,onUpdateValue:this.handleLoadingShow.bind(this),style:["padding: 18px 0"]},{checked:()=>"\u9690\u85CF\u52A0\u8F7D\u52A8\u753B",unchecked:()=>"\u663E\u793A\u52A0\u8F7D\u52A8\u753B"}),t("div",{class:"chart--container"},[t(h,{ref:"baseChartRef",options:this.baseOptions},null)])]}),t(u,{title:"\u8D34\u753B\u53EF\u89C6\u5316\u56FE"},{default:()=>[t(S,{value:this.chartAria,"onUpdate:value":e=>this.chartAria=e,onUpdateValue:this.handleAriaShow.bind(this),style:["padding: 18px 0"]},{checked:()=>"\u9690\u85CF\u8D34\u82B1",unchecked:()=>"\u663E\u793A\u8D34\u82B1"}),t("div",{class:"chart--container"},[t(h,{options:this.baseOptions,showAria:this.chartAria},null)])]})])}});export{De as default}; diff --git a/assets/index.32b1927e.js.gz b/assets/index.32b1927e.js.gz new file mode 100644 index 00000000..278a2cf5 Binary files /dev/null and b/assets/index.32b1927e.js.gz differ diff --git a/assets/index.03e26d4c.js b/assets/index.5a60ebad.js similarity index 97% rename from assets/index.03e26d4c.js rename to assets/index.5a60ebad.js index bc150f0c..b1733833 100644 --- a/assets/index.03e26d4c.js +++ b/assets/index.5a60ebad.js @@ -1 +1 @@ -import{R as r}from"./index.d6645ad3.js";import{R as n}from"./index.8edb05c4.js";import{M as s,w as m,x as d,E as f,B as i,q as o}from"./naive-ui.7944048f.js";import{e as c,ao as t,q as b,d as E,c as a}from"./@vue.6f9b3ecc.js";import"./pinia.04532b5d.js";import"./vue-demi.b3a9cad9.js";import"./pinia-plugin-persistedstate.c449c8e7.js";import"./vue-i18n.715a0b35.js";import"./@intlify.c1495d3a.js";import"./vue-router.e6f2912b.js";import"./lodash-es.474663c3.js";import"./@vueuse.a0b06385.js";import"./screenfull.c1f291d3.js";import"./date-fns.03faffa8.js";import"./vueuc.feb70412.js";import"./evtd.9eee5233.js";import"./seemly.786de437.js";import"./@css-render.66179467.js";import"./vooks.d8957d1b.js";import"./vdirs.9b78243b.js";import"./@juggle.32c34d6c.js";import"./css-render.20ab466e.js";import"./@emotion.6322e2ae.js";import"./treemate.80cdf2c2.js";import"./date-fns-tz.974adeb4.js";import"./async-validator.fb49d0f5.js";function p(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!E(e)}const M=c({name:"Dashboard",setup(){return{coverLetterOptions:[{label:"\u638C\u63E1\u642C\u7816\u6846\u67B6",des:()=>t(o,null,{default:()=>[t(i,{type:"success"},{default:()=>[a("Vue3.x")]}),t(i,{type:"info"},{default:()=>[a("React")]})]})},{label:"\u4ECE\u4E8B\u642C\u7816\u65F6\u957F",des:()=>t(o,null,{default:()=>[t(i,{type:"success"},{default:()=>[a("\u7EC3\u4E60\u65F6\u957F\u4E24\u5E74\u534A\u7684\u5C0F\u767D\u524D\u7AEF\u642C\u7816\u5E08")]})]})},{label:"\u4E2A\u4EBA",des:()=>t(o,{align:"center"},{default:()=>[t(r,{name:"ray",size:"22"},null),a("\u52AA\u529B\u642C\u7816\u3001\u52AA\u529B\u6478\u9C7C, \u5EFA\u8BBE\u7F8E\u4E3D\u5BB6\u56ED")]}),span:2},{label:"\u8865\u5145\u8BF4\u660E",des:()=>t(o,{align:"center"},{default:()=>[a("\u5982\u679C\u6709\u5E0C\u671B\u8865\u5145\u7684\u529F\u80FD\u53EF\u4EE5\u5728"),t("a",{class:"dashboard-link",href:"https://github.com/XiaoDaiGua-Ray/ray-template"},[a("GitHub")]),a("\u63D0\u4E00\u4E2A Issues")]}),span:2}]}},render(){let e;return t(f,{class:"dashboard-layout layout-full"},{default:()=>[t(s,null,{header:()=>b(r,{name:"ray",size:"64"},{}),default:()=>"\u5F53\u4F60\u770B\u89C1\u8FD9\u4E2A\u9875\u9762\u540E, \u5C31\u8BF4\u660E\u9879\u76EE\u5DF2\u7ECF\u542F\u52A8\u6210\u529F\u4E86~"}),t(s,{title:"\u4E2A\u4EBA\u4ECB\u7ECD"},{default:()=>[t(m,{bordered:!0,labelPlacement:"left",column:2},p(e=this.coverLetterOptions.map(u=>{let l;return t(d,{key:u.label,label:u.label,span:u==null?void 0:u.span},p(l=u.des())?l:{default:()=>[l]})}))?e:{default:()=>[e]})]}),t(s,{title:"\u53CB\u60C5\u94FE\u63A5"},{default:()=>[t(n,null,null)]})]})}});export{M as default}; +import{R as r}from"./index.a4c9b7e0.js";import{R as n}from"./index.8edb05c4.js";import{M as s,w as m,x as d,E as f,B as i,q as o}from"./naive-ui.7944048f.js";import{e as c,ao as t,q as b,d as E,c as a}from"./@vue.6f9b3ecc.js";import"./pinia.04532b5d.js";import"./vue-demi.b3a9cad9.js";import"./pinia-plugin-persistedstate.c449c8e7.js";import"./vue-i18n.715a0b35.js";import"./@intlify.c1495d3a.js";import"./vue-router.e6f2912b.js";import"./lodash-es.474663c3.js";import"./@vueuse.a0b06385.js";import"./screenfull.c1f291d3.js";import"./date-fns.03faffa8.js";import"./vueuc.feb70412.js";import"./evtd.9eee5233.js";import"./seemly.786de437.js";import"./@css-render.66179467.js";import"./vooks.d8957d1b.js";import"./vdirs.9b78243b.js";import"./@juggle.32c34d6c.js";import"./css-render.20ab466e.js";import"./@emotion.6322e2ae.js";import"./treemate.80cdf2c2.js";import"./date-fns-tz.974adeb4.js";import"./async-validator.fb49d0f5.js";function p(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!E(e)}const M=c({name:"Dashboard",setup(){return{coverLetterOptions:[{label:"\u638C\u63E1\u642C\u7816\u6846\u67B6",des:()=>t(o,null,{default:()=>[t(i,{type:"success"},{default:()=>[a("Vue3.x")]}),t(i,{type:"info"},{default:()=>[a("React")]})]})},{label:"\u4ECE\u4E8B\u642C\u7816\u65F6\u957F",des:()=>t(o,null,{default:()=>[t(i,{type:"success"},{default:()=>[a("\u7EC3\u4E60\u65F6\u957F\u4E24\u5E74\u534A\u7684\u5C0F\u767D\u524D\u7AEF\u642C\u7816\u5E08")]})]})},{label:"\u4E2A\u4EBA",des:()=>t(o,{align:"center"},{default:()=>[t(r,{name:"ray",size:"22"},null),a("\u52AA\u529B\u642C\u7816\u3001\u52AA\u529B\u6478\u9C7C, \u5EFA\u8BBE\u7F8E\u4E3D\u5BB6\u56ED")]}),span:2},{label:"\u8865\u5145\u8BF4\u660E",des:()=>t(o,{align:"center"},{default:()=>[a("\u5982\u679C\u6709\u5E0C\u671B\u8865\u5145\u7684\u529F\u80FD\u53EF\u4EE5\u5728"),t("a",{class:"dashboard-link",href:"https://github.com/XiaoDaiGua-Ray/ray-template"},[a("GitHub")]),a("\u63D0\u4E00\u4E2A Issues")]}),span:2}]}},render(){let e;return t(f,{class:"dashboard-layout layout-full"},{default:()=>[t(s,null,{header:()=>b(r,{name:"ray",size:"64"},{}),default:()=>"\u5F53\u4F60\u770B\u89C1\u8FD9\u4E2A\u9875\u9762\u540E, \u5C31\u8BF4\u660E\u9879\u76EE\u5DF2\u7ECF\u542F\u52A8\u6210\u529F\u4E86~"}),t(s,{title:"\u4E2A\u4EBA\u4ECB\u7ECD"},{default:()=>[t(m,{bordered:!0,labelPlacement:"left",column:2},p(e=this.coverLetterOptions.map(u=>{let l;return t(d,{key:u.label,label:u.label,span:u==null?void 0:u.span},p(l=u.des())?l:{default:()=>[l]})}))?e:{default:()=>[e]})]}),t(s,{title:"\u53CB\u60C5\u94FE\u63A5"},{default:()=>[t(n,null,null)]})]})}});export{M as default}; diff --git a/assets/index.5a60ebad.js.gz b/assets/index.5a60ebad.js.gz new file mode 100644 index 00000000..18b597bb Binary files /dev/null and b/assets/index.5a60ebad.js.gz differ diff --git a/assets/index.4b70f135.css b/assets/index.5ba451c9.css similarity index 63% rename from assets/index.4b70f135.css rename to assets/index.5ba451c9.css index 7d33e71b..9c32df30 100644 --- a/assets/index.4b70f135.css +++ b/assets/index.5ba451c9.css @@ -1 +1 @@ -.echart{width:100%;height:100%}.echart .n-card{margin-top:18px}.echart .n-card:first-child{margin-top:0}.echart .chart--container{width:100%;height:500px}.ray-chart{width:var(--ray-chart-width);height:var(--ray-chart-height);border:none;outline:none} +.echart{width:100%;height:100%}.echart .n-card{margin-top:18px}.echart .n-card:first-child{margin-top:0}.echart .chart--container{width:100%;height:500px}.ray-chart{width:var(--ray-chart-width);height:var(--ray-chart-height);border:none;outline:none;-webkit-box-sizing:border-box;box-sizing:border-box} diff --git a/assets/index.91e5b918.js b/assets/index.80d76c0e.js similarity index 99% rename from assets/index.91e5b918.js rename to assets/index.80d76c0e.js index 594c0200..dcfce75c 100644 --- a/assets/index.91e5b918.js +++ b/assets/index.80d76c0e.js @@ -1 +1 @@ -import{s as G}from"./pinia.04532b5d.js";import{b as O,R as E}from"./index.d6645ad3.js";import{V as $}from"./vuedraggable.69650ee3.js";import{M as h,N as L,S as A,q as g,I as v,T as j,U as Y,R as H,A as X,r as R,V as q,W as J,X as C,Y as I,Z as K,H as T,_ as W,u as Z,E as Q,B as ee}from"./naive-ui.7944048f.js";import{e as w,i as te,r as F,ao as e,l as k,E as z,p as ae,M as U,F as N,x as le,n as ue,c as r,q as b}from"./@vue.6f9b3ecc.js";import{p as ie}from"./print-js.47d9cc28.js";import{u as ne}from"./hook.746076e4.js";import{u as y,w as se}from"./xlsx.842cb549.js";import{d as oe}from"./dayjs.9ac94883.js";import"./vue-demi.b3a9cad9.js";import"./pinia-plugin-persistedstate.c449c8e7.js";import"./vue-i18n.715a0b35.js";import"./@intlify.c1495d3a.js";import"./vue-router.e6f2912b.js";import"./lodash-es.474663c3.js";import"./@vueuse.a0b06385.js";import"./screenfull.c1f291d3.js";import"./date-fns.03faffa8.js";import"./vueuc.feb70412.js";import"./evtd.9eee5233.js";import"./seemly.786de437.js";import"./@css-render.66179467.js";import"./vooks.d8957d1b.js";import"./vdirs.9b78243b.js";import"./@juggle.32c34d6c.js";import"./css-render.20ab466e.js";import"./@emotion.6322e2ae.js";import"./treemate.80cdf2c2.js";import"./date-fns-tz.974adeb4.js";import"./async-validator.fb49d0f5.js";import"./vue.3e1409f3.js";import"./sortablejs.95e4fa30.js";const re=t=>t.map(l=>(l.fixed&&(l.fixed==="right"?l.rightFixedActivated=!0:l.leftFixedActivated=!0),l.resizable&&(l.resizeColumnActivated=!0),l)),de=w({name:"TableSetting",emits:["columnsUpdate"],setup(t,{emit:a}){const l=O(),u=te("tableSettingProvider",{}),i=F(re(u.modelColumns.value)),d=F(!0),{themeValue:s}=G(l);return{settingOptions:i,handleDraggableEnd:()=>{a("columnsUpdate",i.value)},handleFixedClick:(c,p)=>{const n=`${c}FixedActivated`,o=i.value[p];n==="leftFixedActivated"?o.rightFixedActivated=!1:n==="rightFixedActivated"&&(o.leftFixedActivated=!1),o[n]=!o[n],o[n]?o.fixed=c:o.fixed=void 0,i.value[p]=o,a("columnsUpdate",i.value)},disableDraggable:d,FixedPopoverIcon:c=>{const{element:p,name:n,tooltip:o,fn:_,index:B,fixed:x,key:V}=c;return e(A,null,{trigger:()=>e(E,{customClassName:`draggable-item__icon ${p[V]?"draggable-item__icon--actived":""}`,name:n,size:"18",onClick:_.bind(this,x,B)},null),default:()=>o})},handleResizeColumnClick:c=>{const p=i.value[c];p.resizeColumnActivated=!p.resizeColumnActivated,p.resizable=p.resizeColumnActivated,i.value[c]=p,a("columnsUpdate",i.value)},themeValue:s}},render(){return e(A,{trigger:"click",placement:"bottom",showArrow:!1,raw:!0},{trigger:()=>e(E,{customClassName:"ray-table__setting",name:"setting",size:"18"},null),default:()=>e(h,{bordered:!1,class:"table-setting__card"},{default:()=>e($,{class:["ray-table__setting-option--draggable"],modelValue:this.settingOptions,"onUpdate:modelValue":t=>this.settingOptions=t,itemKey:"key",disabled:!this.disableDraggable,onEnd:this.handleDraggableEnd.bind(this)},{item:({element:t,index:a})=>e("div",{class:["draggable-item",this.themeValue?"draggable-item--dark":""]},[e(E,{customClassName:"draggable-item__d--icon",name:"draggable",size:"18"},null),e(L,null,{default:()=>[e("span",null,[t.title])]}),this.FixedPopoverIcon({element:t,name:"left_arrow",tooltip:"\u5DE6\u56FA\u5B9A",fn:this.handleFixedClick,index:a,fixed:"left",key:"leftFixedActivated"}),e(A,null,{trigger:()=>e(E,{customClassName:`draggable-item__icon ${t.resizeColumnActivated?"draggable-item__icon--actived":""}`,name:"resize_h",size:"18",onClick:this.handleResizeColumnClick.bind(this,a)},null),default:()=>"\u4FEE\u6539\u5217\u5BBD"}),this.FixedPopoverIcon({element:t,name:"right_arrow",tooltip:"\u53F3\u56FA\u5B9A",fn:this.handleFixedClick,index:a,fixed:"right",key:"rightFixedActivated"})])})})})}}),M=w({name:"TableAction",props:{tooltip:{type:String,required:!0},negativeText:{type:String,default:"\u53D6\u6D88"},positiveText:{type:String,default:"\u786E\u8BA4"},icon:{type:String,required:!0},iconSize:{type:Number,default:18}},emits:["positive","negative"],setup(t,{emit:a}){const l=F(!1);return{handleEmit:i=>{a(i==="positive"?"positive":"negative"),l.value=!1},showPopoconfirm:l}},render(){return e(j,{show:this.showPopoconfirm,"onUpdate:show":t=>this.showPopoconfirm=t,showArrow:!0},{trigger:()=>e(E,{name:this.icon,size:this.iconSize,customClassName:"ray-table-icon"},null),default:()=>this.tooltip,action:()=>e(g,null,{default:()=>[e(v,{size:"small",ghost:!0,onClick:this.handleEmit.bind(this,"negative")},{default:()=>[this.negativeText]}),e(v,{size:"small",ghost:!0,type:"info",onClick:this.handleEmit.bind(this,"positive")},{default:()=>[this.positiveText]})]})})}}),pe={...Y,rightClickMenu:{type:Array,default:()=>[]},title:{type:[String,Object],default:""},action:{type:Boolean,default:!0},actionExtra:{type:Object,default:()=>({})},showMenu:{type:Boolean,default:!0},exportTooltip:{type:String,default:"\u662F\u5426\u5BFC\u51FA\u4E3AExcel\u8868\u683C?"},exportType:{type:String,default:"xlsx"},exportPositiveText:{type:String,default:"\u786E\u8BA4"},exportNegativeText:{type:String,default:"\u53D6\u6D88"},exportFilename:{type:String,default:""},printPositiveText:{type:String,default:"\u786E\u8BA4"},printNegativeText:{type:String,default:"\u53D6\u6D88"},printTooltip:{type:String,default:"\u662F\u5426\u6253\u5370\u8BE5\u8868\u683C?"},printType:{type:String,default:"html"},printOptions:{type:Object,default:()=>({})},printIcon:{type:String,default:"print"},exportExcelIcon:{type:String,default:"export_excel"},tableHeaderSpace:{type:String,default:"10px"},bordered:{type:Boolean,default:!0}},ce=t=>t.reduce((l,u)=>(l[u.key]=u.title,l),{}),me=(t,a,l)=>{for(let u=t.s.c;u<=t.e.c;u++){const i=y.encode_col(u)+"1";a[i].v=l[a[i].v]}},he=async(t,a,l={})=>{await new Promise((u,i)=>{if(t!=null&&t.length){const d=ce(a!=null?a:[]),s=y.json_to_sheet(t),m=y.book_new(),f=l.filename?l.filename+".xlsx":oe().format("YYYY-MM-DD")+"\u5BFC\u51FA\u8868\u683C.xlsx";y.book_append_sheet(m,s,"Data");const D=y.decode_range(s["!ref"]);a!=null&&a.length&&me(D,s,d),se(m,f),u()}else i()})},S=w({name:"RayTable",props:pe,emits:["update:columns","menuSelect","exportSuccess","exportError"],setup(t,{emit:a}){const l=ne(),u=k(()=>t.rightClickMenu),i=k({get:()=>t.columns,set:n=>{a("update:columns",n)}}),d=z({x:0,y:0,showMenu:!1});let s=-1;const m=k(()=>({"--ray-table-header-space":t.tableHeaderSpace}));ae("tableSettingProvider",{modelRightClickMenu:u,modelColumns:i});const f=n=>{i.value=n},D=(n,o)=>{a("menuSelect",n,s,o),d.showMenu=!1},P=(n,o)=>{var B;return{...(B=t.rowProps)==null?void 0:B.call(t,n,o),onContextmenu:x=>{x.preventDefault(),s=o,d.showMenu=!1,ue().then(()=>{d.showMenu=!0,d.x=x.clientX,d.y=x.clientY})}}},c=async()=>{if(t.data.length&&t.columns.length)try{await he(t.data,t.columns,{filename:t.exportFilename}),a("exportSuccess")}catch{a("exportError")}},p=()=>{const n=Object.assign({},t.printOptions,{printable:l,type:t.printType,documentTitle:t.printOptions.documentTitle?t.printOptions.documentTitle:"\u8868\u683C"});ie(n)};return{tableUUID:l,handleColumnsUpdate:f,...U(d),handleRowProps:P,handleRightMenuSelect:D,handleExportPositive:c,handlePrintPositive:p,cssVars:m}},render(){return e(h,{class:"ray-table",bordered:this.bordered,style:[this.cssVars]},{default:()=>e(N,null,[e(H,le({id:this.tableUUID},this.$props,{rowProps:this.handleRowProps.bind(this)}),{empty:()=>{var t,a;return(a=(t=this.$slots)==null?void 0:t.empty)==null?void 0:a.call(t)},loading:()=>{var t,a;return(a=(t=this.$slots)==null?void 0:t.loading)==null?void 0:a.call(t)}}),this.showMenu?e(X,{show:this.showMenu,placement:"bottom-start",trigger:"manual",x:this.x,y:this.y,options:this.rightClickMenu,onClickoutside:()=>this.showMenu=!1,onSelect:this.handleRightMenuSelect.bind(this)},null):""]),header:()=>this.title,"header-extra":()=>this.action?e("div",{class:"ray-table-header-extra__space"},[e(M,{icon:this.printIcon,tooltip:this.printTooltip,positiveText:this.printPositiveText,negativeText:this.printNegativeText,onPositive:this.handlePrintPositive.bind(this)},null),e(R,{vertical:!0},null),e(M,{icon:this.exportExcelIcon,tooltip:this.exportTooltip,positiveText:this.exportPositiveText,negativeText:this.exportNegativeText,onPositive:this.handleExportPositive.bind(this)},null),e(R,{vertical:!0},null),e(de,{onColumnsUpdate:this.handleColumnsUpdate.bind(this)},null)]):"",footer:()=>{var t,a;return(a=(t=this.$slots).tableFooter)==null?void 0:a.call(t)}})}});const ge={value:{type:Boolean,default:!0},collapseToggleText:{type:Array,default:()=>["\u5C55\u5F00","\u6536\u8D77"]},bordered:{type:Boolean,default:!0},...q},fe=w({name:"RayCollapseGrid",props:ge,emits:["updateValue"],setup(t,{emit:a}){const l=F(t.value),u=()=>{l.value=!l.value,a("updateValue",l.value)};return{modelCollapsed:l,handleCollapse:u,CollapseIcon:()=>e("div",{class:"collapse-icon",onClick:u.bind(this)},[e("span",null,[l.value?t.collapseToggleText[0]:t.collapseToggleText[1]]),e(E,{customClassName:`collapse-icon--arrow ${l.value?"":"collapse-icon--arrow__expanded"}`,name:"expanded",size:"14"},null)])}},render(){return e(h,{bordered:this.bordered},{default:()=>e(J,{class:"ray-collapse-grid",collapsed:this.modelCollapsed,xGap:this.xGap||12,yGap:this.yGap||18,cols:this.cols,collapsedRows:this.collapsedRows},{default:()=>{var t,a;return[(a=(t=this.$slots).default)==null?void 0:a.call(t),e(C,{suffix:!0,class:"ray-collapse-grid__suffix--btn"},{default:()=>[e(g,{justify:"end"},{default:()=>{var l,u;return[(u=(l=this.$slots).action)==null?void 0:u.call(l),this.CollapseIcon()]}})]})]}})})}}),Je=w({name:"TableView",setup(){const t=[{title:"Name",key:"name"},{title:"Age",key:"age"},{title:"Address",key:"address"},{title:"Tags",key:"tags",render:s=>s.tags.map(f=>b(ee,{style:{marginRight:"6px"},type:"info",bordered:!1},{default:()=>f}))},{title:"Action",key:"actions",render:s=>b(v,{size:"small"},{default:()=>"Send Email"})}],a=F([...t].map(s=>({...s,width:400}))),l=F([{key:0,name:"John Brown",age:32,address:"New York No. 1 Lake Park",tags:["nice","developer"]},{key:1,name:"Jim Green",age:42,address:"London No. 1 Lake Park",tags:["wow"]},{key:2,name:"Joe Black",age:32,address:"Sidney No. 1 Lake Park",tags:["cool","teacher"]}]),u=[{label:"\u7F16\u8F91",key:"edit"},{label:()=>b("span",{style:{color:"red"}},"\u5220\u9664"),key:"delete"}],i=z({gridItemCount:4,gridCollapsedRows:1,tableLoading:!1}),d=(s,m)=>{s==="delete"&&l.value.splice(m,1)};return{...U(i),tableData:l,actionColumns:a,baseColumns:t,tableMenuOptions:u,handleMenuSelect:d}},render(){return e(Q,null,{default:()=>[e(h,{title:"RayTable"},{default:()=>[e("p",null,[r("\u8BE5\u7EC4\u4EF6\u57FA\u4E8E Naive UI DataTable \u7EC4\u4EF6\u5C01\u88C5. \u5B9E\u73B0\u53F3\u952E\u83DC\u5355, \u8868\u683C\u6807\u9898, \u5BFC\u51FA\u4E3A excel \u64CD\u4F5C\u680F\u7B49\u529F\u80FD")]),e("p",null,[r("RayTable \u5B8C\u5168\u7EE7\u627F DataTable \u7684\u6240\u6709\u5C5E\u6027\u4E0E\u65B9\u6CD5")]),e("p",null,[r("\u76F8\u5173\u62D3\u5C55 props \u5C5E\u6027, \u53EF\u4EE5\u5728\u6E90\u7801\u4F4D\u7F6E src/components/RayTable/src/props.ts \u4E2D\u67E5\u770B\u76F8\u5173\u4EE3\u7801\u4E0E\u6CE8\u91CA")]),e("p",null,[r("\u8BE5\u7EC4\u4EF6\u53EF\u4EE5\u914D\u5408 RayCollapseGird \u7EC4\u4EF6\u4F7F\u7528\u5B9E\u73B0\u53EF\u6298\u53E0\u641C\u7D22\u680F")])]}),e(h,{style:["margin-top: 18px"]},{default:()=>e(g,{vertical:!0},{default:()=>[e(g,{style:["margin-top: 18px"]},{default:()=>[r("\u8BE5\u7EC4\u4EF6\u57FA\u4E8E NGird \u5B9E\u73B0, \u4F46\u662F\u7531\u4E8E css grid \u9650\u5236, \u4E0D\u80FD\u5BF9\u4E8E NGridItem \u7EC4\u4EF6\u8FDB\u884C\u4E8C\u6B21\u5C01\u88C5, \u6240\u4EE5\u4F7F\u7528\u65F6\u5FC5\u987B\u914D\u5408 NGridItem \u4F7F\u7528\u624D\u80FD\u5B9E\u73B0\u793A\u4F8B\u6548\u679C(\u4F7F\u7528 NGridItem \u5305\u88F9\u5143\u7D20\u5373\u53EF).")]}),e(g,{style:["margin-top: 18px"]},{default:()=>[e(g,{align:"center"},{default:()=>[r("\u6570\u91CF "),e(I,{value:this.gridItemCount,"onUpdate:value":t=>this.gridItemCount=t},null)]}),e(g,{align:"center"},{default:()=>[r("\u884C\u6570 "),e(I,{value:this.gridCollapsedRows,"onUpdate:value":t=>this.gridCollapsedRows=t},null)]})]}),e(fe,{collapsedRows:this.gridCollapsedRows,cols:this.gridItemCount,onUpdateValue:t=>window.$message.info(`\u6211\u662F RayCollapseGrid \u7EC4\u4EF6${t?"\u6536\u8D77":"\u5C55\u5F00"}\u7684\u56DE\u8C03\u51FD\u6570`)},{action:()=>e(N,null,[e(v,null,{default:()=>[r("\u641C\u7D22")]}),e(v,null,{default:()=>[r("\u91CD\u7F6E")]})]),default:()=>e(N,null,[e(C,null,{default:()=>[e(K,null,null)]}),e(C,null,{default:()=>[e(T,null,null)]}),e(C,null,{default:()=>[e(W,{type:"datetimerange",clearable:!0},null)]}),e(C,null,{default:()=>[e(T,null,null)]}),e(C,null,{default:()=>[e(T,null,null)]})])})]})}),e(h,{title:"\u57FA\u7840\u4F7F\u7528",style:["margin-top: 18px"]},{default:()=>[e(S,{title:b(Z,{onUpdateValue:t=>this.tableLoading=t},{}),data:this.tableData,columns:this.baseColumns,action:!1,pagination:{pageSize:10},loading:this.tableLoading},{tableFooter:()=>"\u8868\u683C\u7684\u5E95\u90E8\u5185\u5BB9\u533A\u57DF\uFF0C\u6709\u65F6\u5019\u4F60\u53EF\u80FD\u4F1A\u7528\u4E0A"})]}),e(h,{style:["margin-top: 18px"]},{header:()=>e("div",null,[e("p",null,[r("\u4F7F\u7528\u54CD\u5E94\u5F0F\u65B9\u6CD5\u4EE3\u7406 columns \u5E76\u4E14\u6253\u5F00 action \u5219\u53EF\u4EE5\u542F\u7528\u64CD\u4F5C\u680F(v-model:columns)")]),e("p",null,[r("\u62D6\u62FD\u64CD\u4F5C\u680F\u52A8\u6001\u5207\u6362\u8868\u683C\u5217")]),e("p",null,[r("\u70B9\u51FB\u5DE6\u53F3\u56FA\u5B9A\u6309\u94AE, \u5373\u53EF\u52A8\u6001\u56FA\u5B9A\u5217")]),e("p",null,[r("\u70B9\u51FB\u4FEE\u6539\u5217\u5BBD\u5EA6, \u5373\u53EF\u62D6\u52A8\u5217\u4FEE\u6539\u5BBD\u5EA6")]),e("p",null,[r("\u70B9\u51FB\u5BFC\u51FA\u6309\u94AE\u5373\u53EF\u5BFC\u51FA excel \u8868\u683C, \u9ED8\u8BA4\u4EE5\u5217\u4E3A\u8868\u5934\u8F93\u51FA")]),e("p",null,[r("\u70B9\u51FB\u6253\u5370\u6309\u94AE\u5373\u53EF\u6253\u5370\u8BE5\u8868\u683C")])]),default:()=>e(S,{title:b(T,{placeholder:"\u8BF7\u8F93\u5165\u68C0\u7D22\u6761\u4EF6",style:["width: 200px"]}),data:this.tableData,columns:this.actionColumns,"onUpdate:columns":t=>this.actionColumns=t},null)}),e(h,{title:"\u53F3\u952E\u83DC\u5355",style:["margin-top: 18px"]},{default:()=>[e(S,{title:"\u53F3\u952E\u83DC\u5355\u8868\u683C",action:!1,data:this.tableData,columns:this.baseColumns,rightClickMenu:this.tableMenuOptions,onMenuSelect:this.handleMenuSelect.bind(this)},null)]})]})}});export{Je as default}; +import{s as G}from"./pinia.04532b5d.js";import{b as O,R as E}from"./index.a4c9b7e0.js";import{V as $}from"./vuedraggable.69650ee3.js";import{M as h,N as L,S as A,q as g,I as v,T as j,U as Y,R as H,A as X,r as R,V as q,W as J,X as C,Y as I,Z as K,H as T,_ as W,u as Z,E as Q,B as ee}from"./naive-ui.7944048f.js";import{e as w,i as te,r as F,ao as e,l as k,E as z,p as ae,M as U,F as N,x as le,n as ue,c as r,q as b}from"./@vue.6f9b3ecc.js";import{p as ie}from"./print-js.47d9cc28.js";import{u as ne}from"./hook.746076e4.js";import{u as y,w as se}from"./xlsx.842cb549.js";import{d as oe}from"./dayjs.9ac94883.js";import"./vue-demi.b3a9cad9.js";import"./pinia-plugin-persistedstate.c449c8e7.js";import"./vue-i18n.715a0b35.js";import"./@intlify.c1495d3a.js";import"./vue-router.e6f2912b.js";import"./lodash-es.474663c3.js";import"./@vueuse.a0b06385.js";import"./screenfull.c1f291d3.js";import"./date-fns.03faffa8.js";import"./vueuc.feb70412.js";import"./evtd.9eee5233.js";import"./seemly.786de437.js";import"./@css-render.66179467.js";import"./vooks.d8957d1b.js";import"./vdirs.9b78243b.js";import"./@juggle.32c34d6c.js";import"./css-render.20ab466e.js";import"./@emotion.6322e2ae.js";import"./treemate.80cdf2c2.js";import"./date-fns-tz.974adeb4.js";import"./async-validator.fb49d0f5.js";import"./vue.3e1409f3.js";import"./sortablejs.95e4fa30.js";const re=t=>t.map(l=>(l.fixed&&(l.fixed==="right"?l.rightFixedActivated=!0:l.leftFixedActivated=!0),l.resizable&&(l.resizeColumnActivated=!0),l)),de=w({name:"TableSetting",emits:["columnsUpdate"],setup(t,{emit:a}){const l=O(),u=te("tableSettingProvider",{}),i=F(re(u.modelColumns.value)),d=F(!0),{themeValue:s}=G(l);return{settingOptions:i,handleDraggableEnd:()=>{a("columnsUpdate",i.value)},handleFixedClick:(c,p)=>{const n=`${c}FixedActivated`,o=i.value[p];n==="leftFixedActivated"?o.rightFixedActivated=!1:n==="rightFixedActivated"&&(o.leftFixedActivated=!1),o[n]=!o[n],o[n]?o.fixed=c:o.fixed=void 0,i.value[p]=o,a("columnsUpdate",i.value)},disableDraggable:d,FixedPopoverIcon:c=>{const{element:p,name:n,tooltip:o,fn:_,index:B,fixed:x,key:V}=c;return e(A,null,{trigger:()=>e(E,{customClassName:`draggable-item__icon ${p[V]?"draggable-item__icon--actived":""}`,name:n,size:"18",onClick:_.bind(this,x,B)},null),default:()=>o})},handleResizeColumnClick:c=>{const p=i.value[c];p.resizeColumnActivated=!p.resizeColumnActivated,p.resizable=p.resizeColumnActivated,i.value[c]=p,a("columnsUpdate",i.value)},themeValue:s}},render(){return e(A,{trigger:"click",placement:"bottom",showArrow:!1,raw:!0},{trigger:()=>e(E,{customClassName:"ray-table__setting",name:"setting",size:"18"},null),default:()=>e(h,{bordered:!1,class:"table-setting__card"},{default:()=>e($,{class:["ray-table__setting-option--draggable"],modelValue:this.settingOptions,"onUpdate:modelValue":t=>this.settingOptions=t,itemKey:"key",disabled:!this.disableDraggable,onEnd:this.handleDraggableEnd.bind(this)},{item:({element:t,index:a})=>e("div",{class:["draggable-item",this.themeValue?"draggable-item--dark":""]},[e(E,{customClassName:"draggable-item__d--icon",name:"draggable",size:"18"},null),e(L,null,{default:()=>[e("span",null,[t.title])]}),this.FixedPopoverIcon({element:t,name:"left_arrow",tooltip:"\u5DE6\u56FA\u5B9A",fn:this.handleFixedClick,index:a,fixed:"left",key:"leftFixedActivated"}),e(A,null,{trigger:()=>e(E,{customClassName:`draggable-item__icon ${t.resizeColumnActivated?"draggable-item__icon--actived":""}`,name:"resize_h",size:"18",onClick:this.handleResizeColumnClick.bind(this,a)},null),default:()=>"\u4FEE\u6539\u5217\u5BBD"}),this.FixedPopoverIcon({element:t,name:"right_arrow",tooltip:"\u53F3\u56FA\u5B9A",fn:this.handleFixedClick,index:a,fixed:"right",key:"rightFixedActivated"})])})})})}}),M=w({name:"TableAction",props:{tooltip:{type:String,required:!0},negativeText:{type:String,default:"\u53D6\u6D88"},positiveText:{type:String,default:"\u786E\u8BA4"},icon:{type:String,required:!0},iconSize:{type:Number,default:18}},emits:["positive","negative"],setup(t,{emit:a}){const l=F(!1);return{handleEmit:i=>{a(i==="positive"?"positive":"negative"),l.value=!1},showPopoconfirm:l}},render(){return e(j,{show:this.showPopoconfirm,"onUpdate:show":t=>this.showPopoconfirm=t,showArrow:!0},{trigger:()=>e(E,{name:this.icon,size:this.iconSize,customClassName:"ray-table-icon"},null),default:()=>this.tooltip,action:()=>e(g,null,{default:()=>[e(v,{size:"small",ghost:!0,onClick:this.handleEmit.bind(this,"negative")},{default:()=>[this.negativeText]}),e(v,{size:"small",ghost:!0,type:"info",onClick:this.handleEmit.bind(this,"positive")},{default:()=>[this.positiveText]})]})})}}),pe={...Y,rightClickMenu:{type:Array,default:()=>[]},title:{type:[String,Object],default:""},action:{type:Boolean,default:!0},actionExtra:{type:Object,default:()=>({})},showMenu:{type:Boolean,default:!0},exportTooltip:{type:String,default:"\u662F\u5426\u5BFC\u51FA\u4E3AExcel\u8868\u683C?"},exportType:{type:String,default:"xlsx"},exportPositiveText:{type:String,default:"\u786E\u8BA4"},exportNegativeText:{type:String,default:"\u53D6\u6D88"},exportFilename:{type:String,default:""},printPositiveText:{type:String,default:"\u786E\u8BA4"},printNegativeText:{type:String,default:"\u53D6\u6D88"},printTooltip:{type:String,default:"\u662F\u5426\u6253\u5370\u8BE5\u8868\u683C?"},printType:{type:String,default:"html"},printOptions:{type:Object,default:()=>({})},printIcon:{type:String,default:"print"},exportExcelIcon:{type:String,default:"export_excel"},tableHeaderSpace:{type:String,default:"10px"},bordered:{type:Boolean,default:!0}},ce=t=>t.reduce((l,u)=>(l[u.key]=u.title,l),{}),me=(t,a,l)=>{for(let u=t.s.c;u<=t.e.c;u++){const i=y.encode_col(u)+"1";a[i].v=l[a[i].v]}},he=async(t,a,l={})=>{await new Promise((u,i)=>{if(t!=null&&t.length){const d=ce(a!=null?a:[]),s=y.json_to_sheet(t),m=y.book_new(),f=l.filename?l.filename+".xlsx":oe().format("YYYY-MM-DD")+"\u5BFC\u51FA\u8868\u683C.xlsx";y.book_append_sheet(m,s,"Data");const D=y.decode_range(s["!ref"]);a!=null&&a.length&&me(D,s,d),se(m,f),u()}else i()})},S=w({name:"RayTable",props:pe,emits:["update:columns","menuSelect","exportSuccess","exportError"],setup(t,{emit:a}){const l=ne(),u=k(()=>t.rightClickMenu),i=k({get:()=>t.columns,set:n=>{a("update:columns",n)}}),d=z({x:0,y:0,showMenu:!1});let s=-1;const m=k(()=>({"--ray-table-header-space":t.tableHeaderSpace}));ae("tableSettingProvider",{modelRightClickMenu:u,modelColumns:i});const f=n=>{i.value=n},D=(n,o)=>{a("menuSelect",n,s,o),d.showMenu=!1},P=(n,o)=>{var B;return{...(B=t.rowProps)==null?void 0:B.call(t,n,o),onContextmenu:x=>{x.preventDefault(),s=o,d.showMenu=!1,ue().then(()=>{d.showMenu=!0,d.x=x.clientX,d.y=x.clientY})}}},c=async()=>{if(t.data.length&&t.columns.length)try{await he(t.data,t.columns,{filename:t.exportFilename}),a("exportSuccess")}catch{a("exportError")}},p=()=>{const n=Object.assign({},t.printOptions,{printable:l,type:t.printType,documentTitle:t.printOptions.documentTitle?t.printOptions.documentTitle:"\u8868\u683C"});ie(n)};return{tableUUID:l,handleColumnsUpdate:f,...U(d),handleRowProps:P,handleRightMenuSelect:D,handleExportPositive:c,handlePrintPositive:p,cssVars:m}},render(){return e(h,{class:"ray-table",bordered:this.bordered,style:[this.cssVars]},{default:()=>e(N,null,[e(H,le({id:this.tableUUID},this.$props,{rowProps:this.handleRowProps.bind(this)}),{empty:()=>{var t,a;return(a=(t=this.$slots)==null?void 0:t.empty)==null?void 0:a.call(t)},loading:()=>{var t,a;return(a=(t=this.$slots)==null?void 0:t.loading)==null?void 0:a.call(t)}}),this.showMenu?e(X,{show:this.showMenu,placement:"bottom-start",trigger:"manual",x:this.x,y:this.y,options:this.rightClickMenu,onClickoutside:()=>this.showMenu=!1,onSelect:this.handleRightMenuSelect.bind(this)},null):""]),header:()=>this.title,"header-extra":()=>this.action?e("div",{class:"ray-table-header-extra__space"},[e(M,{icon:this.printIcon,tooltip:this.printTooltip,positiveText:this.printPositiveText,negativeText:this.printNegativeText,onPositive:this.handlePrintPositive.bind(this)},null),e(R,{vertical:!0},null),e(M,{icon:this.exportExcelIcon,tooltip:this.exportTooltip,positiveText:this.exportPositiveText,negativeText:this.exportNegativeText,onPositive:this.handleExportPositive.bind(this)},null),e(R,{vertical:!0},null),e(de,{onColumnsUpdate:this.handleColumnsUpdate.bind(this)},null)]):"",footer:()=>{var t,a;return(a=(t=this.$slots).tableFooter)==null?void 0:a.call(t)}})}});const ge={value:{type:Boolean,default:!0},collapseToggleText:{type:Array,default:()=>["\u5C55\u5F00","\u6536\u8D77"]},bordered:{type:Boolean,default:!0},...q},fe=w({name:"RayCollapseGrid",props:ge,emits:["updateValue"],setup(t,{emit:a}){const l=F(t.value),u=()=>{l.value=!l.value,a("updateValue",l.value)};return{modelCollapsed:l,handleCollapse:u,CollapseIcon:()=>e("div",{class:"collapse-icon",onClick:u.bind(this)},[e("span",null,[l.value?t.collapseToggleText[0]:t.collapseToggleText[1]]),e(E,{customClassName:`collapse-icon--arrow ${l.value?"":"collapse-icon--arrow__expanded"}`,name:"expanded",size:"14"},null)])}},render(){return e(h,{bordered:this.bordered},{default:()=>e(J,{class:"ray-collapse-grid",collapsed:this.modelCollapsed,xGap:this.xGap||12,yGap:this.yGap||18,cols:this.cols,collapsedRows:this.collapsedRows},{default:()=>{var t,a;return[(a=(t=this.$slots).default)==null?void 0:a.call(t),e(C,{suffix:!0,class:"ray-collapse-grid__suffix--btn"},{default:()=>[e(g,{justify:"end"},{default:()=>{var l,u;return[(u=(l=this.$slots).action)==null?void 0:u.call(l),this.CollapseIcon()]}})]})]}})})}}),Je=w({name:"TableView",setup(){const t=[{title:"Name",key:"name"},{title:"Age",key:"age"},{title:"Address",key:"address"},{title:"Tags",key:"tags",render:s=>s.tags.map(f=>b(ee,{style:{marginRight:"6px"},type:"info",bordered:!1},{default:()=>f}))},{title:"Action",key:"actions",render:s=>b(v,{size:"small"},{default:()=>"Send Email"})}],a=F([...t].map(s=>({...s,width:400}))),l=F([{key:0,name:"John Brown",age:32,address:"New York No. 1 Lake Park",tags:["nice","developer"]},{key:1,name:"Jim Green",age:42,address:"London No. 1 Lake Park",tags:["wow"]},{key:2,name:"Joe Black",age:32,address:"Sidney No. 1 Lake Park",tags:["cool","teacher"]}]),u=[{label:"\u7F16\u8F91",key:"edit"},{label:()=>b("span",{style:{color:"red"}},"\u5220\u9664"),key:"delete"}],i=z({gridItemCount:4,gridCollapsedRows:1,tableLoading:!1}),d=(s,m)=>{s==="delete"&&l.value.splice(m,1)};return{...U(i),tableData:l,actionColumns:a,baseColumns:t,tableMenuOptions:u,handleMenuSelect:d}},render(){return e(Q,null,{default:()=>[e(h,{title:"RayTable"},{default:()=>[e("p",null,[r("\u8BE5\u7EC4\u4EF6\u57FA\u4E8E Naive UI DataTable \u7EC4\u4EF6\u5C01\u88C5. \u5B9E\u73B0\u53F3\u952E\u83DC\u5355, \u8868\u683C\u6807\u9898, \u5BFC\u51FA\u4E3A excel \u64CD\u4F5C\u680F\u7B49\u529F\u80FD")]),e("p",null,[r("RayTable \u5B8C\u5168\u7EE7\u627F DataTable \u7684\u6240\u6709\u5C5E\u6027\u4E0E\u65B9\u6CD5")]),e("p",null,[r("\u76F8\u5173\u62D3\u5C55 props \u5C5E\u6027, \u53EF\u4EE5\u5728\u6E90\u7801\u4F4D\u7F6E src/components/RayTable/src/props.ts \u4E2D\u67E5\u770B\u76F8\u5173\u4EE3\u7801\u4E0E\u6CE8\u91CA")]),e("p",null,[r("\u8BE5\u7EC4\u4EF6\u53EF\u4EE5\u914D\u5408 RayCollapseGird \u7EC4\u4EF6\u4F7F\u7528\u5B9E\u73B0\u53EF\u6298\u53E0\u641C\u7D22\u680F")])]}),e(h,{style:["margin-top: 18px"]},{default:()=>e(g,{vertical:!0},{default:()=>[e(g,{style:["margin-top: 18px"]},{default:()=>[r("\u8BE5\u7EC4\u4EF6\u57FA\u4E8E NGird \u5B9E\u73B0, \u4F46\u662F\u7531\u4E8E css grid \u9650\u5236, \u4E0D\u80FD\u5BF9\u4E8E NGridItem \u7EC4\u4EF6\u8FDB\u884C\u4E8C\u6B21\u5C01\u88C5, \u6240\u4EE5\u4F7F\u7528\u65F6\u5FC5\u987B\u914D\u5408 NGridItem \u4F7F\u7528\u624D\u80FD\u5B9E\u73B0\u793A\u4F8B\u6548\u679C(\u4F7F\u7528 NGridItem \u5305\u88F9\u5143\u7D20\u5373\u53EF).")]}),e(g,{style:["margin-top: 18px"]},{default:()=>[e(g,{align:"center"},{default:()=>[r("\u6570\u91CF "),e(I,{value:this.gridItemCount,"onUpdate:value":t=>this.gridItemCount=t},null)]}),e(g,{align:"center"},{default:()=>[r("\u884C\u6570 "),e(I,{value:this.gridCollapsedRows,"onUpdate:value":t=>this.gridCollapsedRows=t},null)]})]}),e(fe,{collapsedRows:this.gridCollapsedRows,cols:this.gridItemCount,onUpdateValue:t=>window.$message.info(`\u6211\u662F RayCollapseGrid \u7EC4\u4EF6${t?"\u6536\u8D77":"\u5C55\u5F00"}\u7684\u56DE\u8C03\u51FD\u6570`)},{action:()=>e(N,null,[e(v,null,{default:()=>[r("\u641C\u7D22")]}),e(v,null,{default:()=>[r("\u91CD\u7F6E")]})]),default:()=>e(N,null,[e(C,null,{default:()=>[e(K,null,null)]}),e(C,null,{default:()=>[e(T,null,null)]}),e(C,null,{default:()=>[e(W,{type:"datetimerange",clearable:!0},null)]}),e(C,null,{default:()=>[e(T,null,null)]}),e(C,null,{default:()=>[e(T,null,null)]})])})]})}),e(h,{title:"\u57FA\u7840\u4F7F\u7528",style:["margin-top: 18px"]},{default:()=>[e(S,{title:b(Z,{onUpdateValue:t=>this.tableLoading=t},{}),data:this.tableData,columns:this.baseColumns,action:!1,pagination:{pageSize:10},loading:this.tableLoading},{tableFooter:()=>"\u8868\u683C\u7684\u5E95\u90E8\u5185\u5BB9\u533A\u57DF\uFF0C\u6709\u65F6\u5019\u4F60\u53EF\u80FD\u4F1A\u7528\u4E0A"})]}),e(h,{style:["margin-top: 18px"]},{header:()=>e("div",null,[e("p",null,[r("\u4F7F\u7528\u54CD\u5E94\u5F0F\u65B9\u6CD5\u4EE3\u7406 columns \u5E76\u4E14\u6253\u5F00 action \u5219\u53EF\u4EE5\u542F\u7528\u64CD\u4F5C\u680F(v-model:columns)")]),e("p",null,[r("\u62D6\u62FD\u64CD\u4F5C\u680F\u52A8\u6001\u5207\u6362\u8868\u683C\u5217")]),e("p",null,[r("\u70B9\u51FB\u5DE6\u53F3\u56FA\u5B9A\u6309\u94AE, \u5373\u53EF\u52A8\u6001\u56FA\u5B9A\u5217")]),e("p",null,[r("\u70B9\u51FB\u4FEE\u6539\u5217\u5BBD\u5EA6, \u5373\u53EF\u62D6\u52A8\u5217\u4FEE\u6539\u5BBD\u5EA6")]),e("p",null,[r("\u70B9\u51FB\u5BFC\u51FA\u6309\u94AE\u5373\u53EF\u5BFC\u51FA excel \u8868\u683C, \u9ED8\u8BA4\u4EE5\u5217\u4E3A\u8868\u5934\u8F93\u51FA")]),e("p",null,[r("\u70B9\u51FB\u6253\u5370\u6309\u94AE\u5373\u53EF\u6253\u5370\u8BE5\u8868\u683C")])]),default:()=>e(S,{title:b(T,{placeholder:"\u8BF7\u8F93\u5165\u68C0\u7D22\u6761\u4EF6",style:["width: 200px"]}),data:this.tableData,columns:this.actionColumns,"onUpdate:columns":t=>this.actionColumns=t},null)}),e(h,{title:"\u53F3\u952E\u83DC\u5355",style:["margin-top: 18px"]},{default:()=>[e(S,{title:"\u53F3\u952E\u83DC\u5355\u8868\u683C",action:!1,data:this.tableData,columns:this.baseColumns,rightClickMenu:this.tableMenuOptions,onMenuSelect:this.handleMenuSelect.bind(this)},null)]})]})}});export{Je as default}; diff --git a/assets/index.80d76c0e.js.gz b/assets/index.80d76c0e.js.gz new file mode 100644 index 00000000..5342a0d3 Binary files /dev/null and b/assets/index.80d76c0e.js.gz differ diff --git a/assets/index.91e5b918.js.gz b/assets/index.91e5b918.js.gz deleted file mode 100644 index dac40c1f..00000000 Binary files a/assets/index.91e5b918.js.gz and /dev/null differ diff --git a/assets/index.d6645ad3.js b/assets/index.a4c9b7e0.js similarity index 99% rename from assets/index.d6645ad3.js rename to assets/index.a4c9b7e0.js index 730adbac..2da05936 100644 --- a/assets/index.d6645ad3.js +++ b/assets/index.a4c9b7e0.js @@ -1 +1 @@ -import{E as H,M as N,e as v,l as y,ao as n,w as h1,q as L,r as x,x as g1,aH as D,af as I,b6 as $,aN as y1,aP as f1,T as v1,c as z1,d as k,H as Q}from"./@vue.6f9b3ecc.js";import{d as E,s as C,c as w1}from"./pinia.04532b5d.js";import{s as _1}from"./pinia-plugin-persistedstate.c449c8e7.js";import{c as b1,u as M}from"./vue-i18n.715a0b35.js";import{z as j,d as F,e as S1,a as C1,N as X,c as L1,b as M1,f as T1,g as O1,h as V1,i as R1,j as x1,k as H1,s as N1,l as k1,m as E1,n as P1,t as B1,o as P,p as A1,q as _,r as R,u as K,v as D1,w as I1,x as $1,y as j1,A as U,B as Y,C as F1,D as K1,E as q,F as U1}from"./naive-ui.7944048f.js";import{u as e1,a as q1,R as W1,c as G1,b as Z1}from"./vue-router.e6f2912b.js";import{i as J1}from"./lodash-es.474663c3.js";import{u as Q1}from"./@vueuse.a0b06385.js";import{s as W}from"./screenfull.c1f291d3.js";import"./vue-demi.b3a9cad9.js";import"./@intlify.c1495d3a.js";import"./date-fns.03faffa8.js";import"./vueuc.feb70412.js";import"./evtd.9eee5233.js";import"./seemly.786de437.js";import"./@css-render.66179467.js";import"./vooks.d8957d1b.js";import"./vdirs.9b78243b.js";import"./@juggle.32c34d6c.js";import"./css-render.20ab466e.js";import"./@emotion.6322e2ae.js";import"./treemate.80cdf2c2.js";import"./date-fns-tz.974adeb4.js";import"./async-validator.fb49d0f5.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))a(l);new MutationObserver(l=>{for(const i of l)if(i.type==="childList")for(const r of i.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&a(r)}).observe(document,{childList:!0,subtree:!0});function o(l){const i={};return l.integrity&&(i.integrity=l.integrity),l.referrerpolicy&&(i.referrerPolicy=l.referrerpolicy),l.crossorigin==="use-credentials"?i.credentials="include":l.crossorigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function a(l){if(l.ep)return;l.ep=!0;const i=o(l);fetch(l.href,i)}})();if(typeof window<"u"){let e=function(){var t=document.body,o=document.getElementById("__svg__icons__dom__");o||(o=document.createElementNS("http://www.w3.org/2000/svg","svg"),o.style.position="absolute",o.style.width="0",o.style.height="0",o.id="__svg__icons__dom__",o.setAttribute("xmlns","http://www.w3.org/2000/svg"),o.setAttribute("xmlns:link","http://www.w3.org/1999/xlink")),o.innerHTML='',t.insertBefore(o,t.lastChild)};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",e):e()}const X1={"en-US":{GlobalMenuOptions:{Dashboard:e=>{const{normalize:t}=e;return t(["Home"])},Rely:e=>{const{normalize:t}=e;return t(["Rely"])},RelyAbout:e=>{const{normalize:t}=e;return t(["Rely About"])},Error:e=>{const{normalize:t}=e;return t(["Error Page"])},Echart:e=>{const{normalize:t}=e;return t(["Chart"])},scrollReveal:e=>{const{normalize:t}=e;return t(["Scroll Reveal"])},Axios:e=>{const{normalize:t}=e;return t(["Axios Request"])},Table:e=>{const{normalize:t}=e;return t(["Table"])},Doc:e=>{const{normalize:t}=e;return t(["Doc"])},DocLocal:e=>{const{normalize:t}=e;return t(["Doc (China)"])}},LayoutHeaderTooltipOptions:{Reload:e=>{const{normalize:t}=e;return t(["Reload Current Page"])},Lock:e=>{const{normalize:t}=e;return t(["Lock"])},Setting:e=>{const{normalize:t}=e;return t(["Setting"])},Github:e=>{const{normalize:t}=e;return t(["Github"])},FullScreen:e=>{const{normalize:t}=e;return t(["Full Screen"])},CancelFullScreen:e=>{const{normalize:t}=e;return t(["Cancel Full Screen"])}},LayoutHeaderSettingOptions:{Title:e=>{const{normalize:t}=e;return t(["Configuration"])},ThemeOptions:{Title:e=>{const{normalize:t}=e;return t(["Theme"])},Dark:e=>{const{normalize:t}=e;return t(["Dark"])},Light:e=>{const{normalize:t}=e;return t(["Light"])},PrimaryColorConfig:e=>{const{normalize:t}=e;return t(["Primary Color"])}}},LoginModule:{Register:e=>{const{normalize:t}=e;return t(["Register"])},Signin:e=>{const{normalize:t}=e;return t(["Signin"])},NamePlaceholder:e=>{const{normalize:t}=e;return t(["please enter user name"])},PasswordPlaceholder:e=>{const{normalize:t}=e;return t(["please enter password"])},Login:e=>{const{normalize:t}=e;return t(["Login"])},Name:e=>{const{normalize:t}=e;return t(["User Name"])},Password:e=>{const{normalize:t}=e;return t(["User Password"])}}},"zh-CN":{GlobalMenuOptions:{Dashboard:e=>{const{normalize:t}=e;return t(["\u9996\u9875"])},Rely:e=>{const{normalize:t}=e;return t(["\u4F9D\u8D56\u9879"])},RelyAbout:e=>{const{normalize:t}=e;return t(["\u5173\u4E8E"])},Error:e=>{const{normalize:t}=e;return t(["\u9519\u8BEF\u9875"])},Echart:e=>{const{normalize:t}=e;return t(["\u53EF\u89C6\u5316"])},scrollReveal:e=>{const{normalize:t}=e;return t(["\u6EDA\u52A8\u52A8\u753B"])},Axios:e=>{const{normalize:t}=e;return t(["\u8BF7\u6C42"])},Table:e=>{const{normalize:t}=e;return t(["\u8868\u683C"])},Doc:e=>{const{normalize:t}=e;return t(["\u6587\u6863"])},DocLocal:e=>{const{normalize:t}=e;return t(["\u6587\u6863 (\u56FD\u5185\u5730\u5740)"])}},LayoutHeaderTooltipOptions:{Reload:e=>{const{normalize:t}=e;return t(["\u5237\u65B0\u5F53\u524D\u9875\u9762"])},Lock:e=>{const{normalize:t}=e;return t(["\u9501\u5C4F"])},Setting:e=>{const{normalize:t}=e;return t(["\u8BBE\u7F6E"])},Github:e=>{const{normalize:t}=e;return t(["Github"])},FullScreen:e=>{const{normalize:t}=e;return t(["\u5168\u5C4F"])},CancelFullScreen:e=>{const{normalize:t}=e;return t(["\u9000\u51FA\u5168\u5C4F"])}},LayoutHeaderSettingOptions:{Title:e=>{const{normalize:t}=e;return t(["\u9879\u76EE\u914D\u7F6E"])},ThemeOptions:{Title:e=>{const{normalize:t}=e;return t(["\u4E3B\u9898"])},Dark:e=>{const{normalize:t}=e;return t(["\u6697\u8272"])},Light:e=>{const{normalize:t}=e;return t(["\u660E\u4EAE"])},PrimaryColorConfig:e=>{const{normalize:t}=e;return t(["\u4E3B\u9898\u8272"])}}},LoginModule:{Register:e=>{const{normalize:t}=e;return t(["\u6CE8\u518C"])},Signin:e=>{const{normalize:t}=e;return t(["\u767B\u9646"])},NamePlaceholder:e=>{const{normalize:t}=e;return t(["\u8BF7\u8F93\u5165\u7528\u6237\u540D"])},PasswordPlaceholder:e=>{const{normalize:t}=e;return t(["\u8BF7\u8F93\u5165\u5BC6\u7801"])},Login:e=>{const{normalize:t}=e;return t(["\u767B \u9646"])},Name:e=>{const{normalize:t}=e;return t(["\u7528\u6237\u540D"])},Password:e=>{const{normalize:t}=e;return t(["\u5BC6\u7801"])}}}},t1=(e,t,o="sessionStorage")=>{const a=JSON.stringify(t);o==="localStorage"?window.localStorage.setItem(e,a):window.sessionStorage.setItem(e,a)},w=(e,t="sessionStorage")=>{const o=t==="localStorage"?window.localStorage.getItem(e):window.sessionStorage.getItem(e);return Object.is(o,null)?"no":JSON.parse(o)},Y1=(e,t="sessionStorage")=>{switch(e){case"all":window.window.localStorage.clear(),window.sessionStorage.clear();break;case"all-sessionStorage":window.sessionStorage.clear();break;case"all-localStorage":window.localStorage.clear();break;default:t==="localStorage"?window.localStorage.removeItem(e):window.sessionStorage.removeItem(e)}},o1=()=>w("localeLanguage","localStorage")!=="no"?w("localeLanguage","localStorage"):"zh-CN",n1=e=>{const t=o1(),o=b1({locale:t,allowComposition:!0,messages:X1});e.use(o)},e2=()=>[{key:"zh-CN",label:"\u4E2D\u6587(\u7B80\u4F53)"},{key:"en-US",label:"English(US)"}],l1=e=>{switch(e){case"zh-CN":return{local:j,dateLocal:F};case"en-US":return{local:S1,dateLocal:C1};default:return{local:j,dateLocal:F}}},t2=()=>{const e=o1();return l1(e)},T=E("setting",()=>{const e=H({drawerPlacement:"right",primaryColorOverride:{common:{primaryColor:"#2d8cf0"}},themeValue:!1,reloadRouteSwitch:!0,menuTagSwitch:!0,naiveLocal:t2(),spinSwitch:!1}),{locale:t}=M(),o=i=>{t.value=i,e.naiveLocal=l1(i)},a=i=>{e.primaryColorOverride.common.primaryColor=i},l=(i,r)=>{Object.hasOwn(e,r)&&typeof e[r]=="boolean"&&(e[r]=i)};return{...N(e),updateLocale:o,changePrimaryColor:a,changeSwitcher:l}},{persist:{key:"piniaSettingStore"}});const z=v({name:"RayIcon",props:{color:{type:String,default:"currentColor"},prefix:{type:String,default:"icon"},name:{type:String,required:!0},size:{type:[Number,String],default:14},width:{type:[Number,String],default:0},height:{type:[Number,String],default:0},customClassName:{type:String,default:""},depth:{type:Number,default:1}},setup(e){const t=y(()=>e.color),o=y(()=>`#${e.prefix}-${e.name}`),a=y(()=>({"--ray-icon-width":e.width?e.width+"px":e.size+"px","--ray-icon-height":e.height?e.height+"px":e.size+"px","--ray-icon-depth":e.depth}));return{modelColor:t,symbolId:o,cssVars:a}},render(){return n("span",{class:["ray-icon",this.customClassName],style:[this.cssVars]},[n("svg",{rayIconAttribute:"ray-icon",ariaHidden:!0},[n("use",{"xlink:href":this.symbolId,fill:this.modelColor},null)])])}}),o2=["login","error-page","doc"],n2=["admin"],l2=e=>{const{role:t}=C(a1()),{meta:o,name:a}=e,l=(o==null?void 0:o.hidden)===void 0||(o==null?void 0:o.hidden)===!1?o==null?void 0:o.hidden:!0;return n2.includes(t.value)||o2.includes(a)?l:o!=null&&o.role?o.role.includes(t.value)&&l:l},i1=E("menu",()=>{const e=e1(),t=q1(),{t:o}=M(),a=w("menuKey")==="no"?"/dashboard":w("menuKey"),l=H({menuKey:a,options:[],collapsed:!1,menuTagOptions:[]}),i=c=>{c.path!==l.menuKey&&(l.menuTagOptions.find(g=>g.path===c.path)||l.menuTagOptions.push(c))},r=(c,p)=>{const g=p.meta;g.windowOpen?window.open(g.windowOpen):(i(p),l.menuKey=c,e.push(`${p.path}`),t1("menuKey",c))},u=c=>{const p=g=>{var O;for(const d of g)if((O=d==null?void 0:d.children)!=null&&O.length&&p(d.children),c===d.path){r(d.path,d);break}};p(l.options)},h=()=>{const c=e.getRoutes().find(g=>g.name==="layout"),p=(g,O)=>g.map(d=>{var A;(A=d.children)!=null&&A.length&&(d.children=p(d.children));const{meta:b}=d,B={...d,key:d.path,label:()=>L(X,null,{default:()=>o(`GlobalMenuOptions.${b.i18nKey}`)})},p1={icon:()=>L(z,{name:b.icon,size:20},{})},V=b!=null&&b.icon?Object.assign({},B,p1):B;return d.path===a&&l.menuTagOptions.push(V),V.show=l2(d),V});l.options=p(c==null?void 0:c.children)},s=c=>l.collapsed=c,m=c=>l.menuTagOptions.splice(c,1);return h1(()=>t.fullPath,c=>{u(c)},{immediate:!0}),{...N(l),menuModelValueChange:r,setupAppRoutes:h,collapsedMenu:s,spliceMenTagOptions:m}}),a1=E("signin",()=>{const e=H({role:""}),t=o=>J1(o)?1:(e.role="admin",0);return{...N(e),signin:t}},{persist:{key:"piniaSigninStore"}}),G=w1(),r1=e=>{e.use(G),G.use(_1)},i2=v({name:"GlobalProvider",setup(){const e=T(),t=y(()=>e.primaryColorOverride),o=y(()=>e.themeValue?H1:null),a=y(()=>e.naiveLocal),{message:l,notification:i,dialog:r,loadingBar:u}=L1(["message","dialog","notification","loadingBar"],{configProviderProps:y(()=>({theme:o.value}))});return window.$dialog=r,window.$message=l,window.$loadingBar=u,window.$notification=i,{modelPrimaryColorOverride:t,modelThemeValue:o,modelLocal:a}},render(){return n(x1,{themeOverrides:this.modelPrimaryColorOverride,theme:this.modelThemeValue,locale:this.modelLocal.local,dateLocal:this.modelLocal.dateLocal},{default:()=>[n(M1,null,{default:()=>[n(T1,null,{default:()=>[n(O1,null,{default:()=>[n(V1,null,{default:()=>{var e,t;return[n(R1,null,null),(t=(e=this.$slots).default)==null?void 0:t.call(e)]}})]})]})]})]})}}),s1=x(!1),ie=e=>s1.value=e,a2=v({name:"GlobalSpin",props:{...N1},setup(){return{spinValue:s1,overrides:{opacitySpinning:"0"}}},render(){return n(k1,g1(this.$props,{show:this.spinValue,themeOverrides:this.overrides}),{default:()=>{var e,t;return(t=(e=this.$slots).default)==null?void 0:t.call(e)},description:()=>{var e,t;return(t=(e=this.$slots).description)==null?void 0:t.call(e)}})}}),c1=v({name:"App",render(){return n(i2,null,{default:()=>[n(a2,null,{default:()=>n(W1,null,null),description:()=>"lodaing..."})]})}}),r2="modulepreload",s2=function(e){return"/"+e},Z={},f=function(t,o,a){if(!o||o.length===0)return t();const l=document.getElementsByTagName("link");return Promise.all(o.map(i=>{if(i=s2(i),i in Z)return;Z[i]=!0;const r=i.endsWith(".css"),u=r?'[rel="stylesheet"]':"";if(!!a)for(let m=l.length-1;m>=0;m--){const c=l[m];if(c.href===i&&(!r||c.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${u}`))return;const s=document.createElement("link");if(s.rel=r?"stylesheet":r2,r||(s.as="script",s.crossOrigin=""),s.href=i,document.head.appendChild(s),r)return new Promise((m,c)=>{s.addEventListener("load",m),s.addEventListener("error",()=>c(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t())};const c2=v({__name:"index",props:{transitionPropName:{type:String,default:"fade"},transitionMode:{type:String,default:"out-in"},transitionAppear:{type:Boolean,default:!0}},setup(e){return(t,o)=>{const a=y1("router-view");return D(),I(a,null,{default:$(({Component:l,route:i})=>[n(v1,{name:e.transitionPropName,mode:e.transitionMode,appear:e.transitionAppear},{default:$(()=>[(D(),I(f1(l),{key:i.fullPath}))]),_:2},1032,["name","mode","appear"])]),_:1})}}});const u2=v({name:"LayoutMenu",setup(){const e=i1(),t=e1(),{menuModelValueChange:o,setupAppRoutes:a,collapsedMenu:l}=e,i=y({get:()=>e.menuKey,set:()=>{}}),r=y(()=>e.options),u=y(()=>e.collapsed),h=64,{layout:{sideBarLogo:s}}={pkg:{dependencies:{"@vueuse/core":"^9.1.0","amfe-flexible":"^2.2.1",axios:"^1.2.0","crypto-js":"^4.1.1",dayjs:"^1.11.7",echarts:"^5.4.0","lodash-es":"^4.17.21","naive-ui":"^2.34.3",pinia:"^2.0.17","pinia-plugin-persistedstate":"^2.4.0","print-js":"^1.6.0",sass:"^1.54.3",screenfull:"^6.0.2",vue:"^3.2.37","vue-i18n":"^9.2.2","vue-router":"^4.1.3",vuedraggable:"^4.1.0",xlsx:"^0.18.5"},devDependencies:{"@babel/core":"^7.20.2","@babel/eslint-parser":"^7.19.1","@commitlint/cli":"^17.4.2","@commitlint/config-conventional":"^17.4.2","@intlify/unplugin-vue-i18n":"^0.5.0","@types/crypto-js":"^4.1.1","@types/scrollreveal":"^0.0.8","@typescript-eslint/eslint-plugin":"^5.42.1","@typescript-eslint/parser":"^5.42.1","@vitejs/plugin-vue":"^3.0.0","@vitejs/plugin-vue-jsx":"^2.0.0",autoprefixer:"^10.4.8",depcheck:"^1.4.3",eslint:"^8.0.1","eslint-config-prettier":"^8.5.0","eslint-config-standard-with-typescript":"^23.0.0","eslint-plugin-import":"^2.25.2","eslint-plugin-n":"^15.0.0","eslint-plugin-prettier":"^4.2.1","eslint-plugin-promise":"^6.0.0","eslint-plugin-react":"^7.31.10","eslint-plugin-vue":"^9.7.0",husky:"^8.0.3","lint-staged":"^13.1.0",postcss:"^8.1.0","postcss-pxtorem":"^6.0.0",prettier:"^2.7.1","rollup-plugin-visualizer":"^5.8.3","svg-sprite-loader":"^6.0.11",typescript:"*","unplugin-auto-import":"^0.11.0","unplugin-vue-components":"^0.22.0",vite:"^3.2.4","vite-plugin-compression":"^0.5.1","vite-plugin-eslint":"^1.8.1","vite-plugin-imp":"^2.3.1","vite-plugin-inspect":"^0.6.0","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^3.4.0","vue-tsc":"^1.0.9"},name:"ray-template",version:"3.0.8"},layout:{copyright:"Copyright \xA9 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}}},m=()=>{s&&s.url&&(s.jumpType==="station"?t.push(s.url):window.open(s.url))};return a(),{modelMenuKey:i,menuModelValueChange:o,modelMenuOptions:r,modelCollapsed:u,collapsedMenu:l,collapsedWidth:h,sideBarLogo:s,handleSideBarLogoClick:m}},render(){return n(P1,{bordered:!0,showTrigger:!0,collapseMode:"width",collapsedWidth:this.collapsedWidth,onUpdateCollapsed:this.collapsedMenu.bind(this),nativeScrollbar:!1},{default:()=>[this.sideBarLogo?n("div",{class:["ray-menu__logo",this.sideBarLogo.url?"ray-menu__logo-url":""],onClick:this.handleSideBarLogoClick.bind(this)},[n(z,{name:this.sideBarLogo.icon,size:"30"},null),n("h1",{class:[this.modelCollapsed?"":"ray-menu__logo-title--open","ray-menu__logo-title"]},[n(X,null,{default:()=>[this.sideBarLogo.title]})])]):"",n(E1,{value:this.modelMenuKey,"onUpdate:value":e=>this.modelMenuKey=e,options:this.modelMenuOptions,indent:24,collapsed:this.modelCollapsed,collapsedIconSize:22,collapsedWidth:this.collapsedWidth,onUpdateValue:this.menuModelValueChange.bind(this)},null)]})}});const d2=v({name:"RayTooltipIcon",props:{...B1,iconName:{type:String,required:!0},customClassName:{type:String,default:""},tooltipText:{type:String,default:""}},emits:["click"],setup(e,{emit:t}){return{handleClick:a=>{t("click",a)}}},render(){return n(P,this.$props,{trigger:()=>n(z,{name:this.iconName,size:"18",customClassName:`ray-tooltip-text__icon ${this.customClassName}`,onClick:this.handleClick.bind(this)},null),default:()=>this.tooltipText})}});const m2=()=>["#FFFFFF","#18A058","#2d8cf0","#F0A020","rgba(208, 48, 80, 1)"];function J(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!k(e)}const p2=v({name:"SettingDrawer",props:{show:{type:Boolean,default:!1},placement:{type:String,default:"right"},width:{type:Number,default:280}},emits:["update:show"],setup(e,{emit:t}){const{t:o}=M(),a=T(),{changePrimaryColor:l,changeSwitcher:i}=a,{themeValue:r,primaryColorOverride:u,menuTagSwitch:h}=C(a);return{modelShow:y({get:()=>e.show,set:c=>{t("update:show",c)}}),ray:o,handleRailStyle:()=>({backgroundColor:"#000000"}),changePrimaryColor:l,themeValue:r,primaryColorOverride:u,menuTagSwitch:h,changeSwitcher:i}},render(){let e,t;return n(j1,{show:this.modelShow,"onUpdate:show":o=>this.modelShow=o,placement:this.placement,width:this.width},{default:()=>[n(A1,{title:this.ray("LayoutHeaderSettingOptions.Title")},{default:()=>[n(_,{class:"setting-drawer__space",vertical:!0},{default:()=>[n(R,{titlePlacement:"center"},J(e=this.ray("LayoutHeaderSettingOptions.ThemeOptions.Title"))?e:{default:()=>[e]}),n(_,{justify:"center"},{default:()=>[n(P,null,{trigger:()=>n(K,{value:this.themeValue,"onUpdate:value":o=>this.themeValue=o,railStyle:this.handleRailStyle.bind(this),onUpdateValue:o=>this.changeSwitcher(o,"themeValue")},{"checked-icon":()=>L(z,{name:"dark"},{}),"unchecked-icon":()=>L(z,{name:"light"},{})}),default:()=>this.themeValue?this.ray("LayoutHeaderSettingOptions.ThemeOptions.Dark"):this.ray("LayoutHeaderSettingOptions.ThemeOptions.Light")})]}),n(R,{titlePlacement:"center"},J(t=this.ray("LayoutHeaderSettingOptions.ThemeOptions.PrimaryColorConfig"))?t:{default:()=>[t]}),n(D1,{swatches:m2(),value:this.primaryColorOverride.common.primaryColor,"onUpdate:value":o=>this.primaryColorOverride.common.primaryColor=o,onUpdateValue:this.changePrimaryColor.bind(this)},null),n(R,{titlePlacement:"center"},{default:()=>[z1("\u754C\u9762\u663E\u793A")]}),n(I1,{labelPlacement:"left",column:1},{default:()=>[n($1,{label:"\u663E\u793A\u591A\u6807\u7B7E"},{default:()=>[n(K,{value:this.menuTagSwitch,"onUpdate:value":o=>this.menuTagSwitch=o,onUpdateValue:o=>this.changeSwitcher(o,"menuTagSwitch")},null)]})]})]})]})]})}}),h2=()=>[{key:"person",label:"\u4E2A\u4EBA\u4FE1\u606F"},{type:"divider",key:"d1"},{key:"logout",label:"\u9000\u51FA\u767B\u9646"}],g2=()=>{window.$message.info("\u8D26\u53F7\u9000\u51FA\u4E2D..."),Y1("all-sessionStorage"),setTimeout(()=>window.location.reload(),300)};function y2(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!k(e)}const f2=v({name:"SiderBar",setup(){const e=T(),{t}=M(),{updateLocale:o,changeSwitcher:a}=e,l=x(e.drawerPlacement),i=x(!1),r=w("person"),u=[{name:"reload",size:18,tooltip:"LayoutHeaderTooltipOptions.Reload"}],h=[{name:"fullscreen",size:18,tooltip:"LayoutHeaderTooltipOptions.FullScreen",eventKey:"screen"},{name:"github",size:18,tooltip:"LayoutHeaderTooltipOptions.Github",eventKey:"github"},{name:"setting",size:18,tooltip:"LayoutHeaderTooltipOptions.Setting",eventKey:"setting"}],s={reload:()=>{a(!1,"reloadRouteSwitch"),setTimeout(()=>a(!0,"reloadRouteSwitch"),1.5*1e3)},setting:()=>{i.value=!0},github:()=>{window.open("https://github.com/XiaoDaiGua-Ray/ray-template")},fullscreen:()=>{W.isEnabled?W.toggle():window.$message.warning("\u60A8\u7684\u6D4F\u89C8\u5668\u4E0D\u652F\u6301\u5168\u5C4F~")}};return{leftIconOptions:u,rightTooltipIconOptions:h,t,handleIconClick:p=>{var g;(g=s[p])==null||g.call(s)},modelDrawerPlacement:l,showSettings:i,updateLocale:o,handlePersonSelect:p=>{p==="logout"?window.$dialog.warning({title:"\u63D0\u793A",content:"\u60A8\u786E\u5B9A\u8981\u9000\u51FA\u767B\u5F55\u5417",positiveText:"\u786E\u5B9A",negativeText:"\u4E0D\u786E\u5B9A",onPositiveClick:()=>{g2()}}):window.$message.info("\u8FD9\u4E2A\u4EBA\u5F88\u61D2, \u6CA1\u505A\u8FD9\u4E2A\u529F\u80FD~")},person:r}},render(){let e;return n(F1,{class:"layout-header",bordered:!0},{default:()=>[n(_,{class:"layout-header__method",align:"center",justify:"space-between"},{default:()=>[n(_,{align:"center"},y2(e=this.leftIconOptions.map(t=>n(P,null,{trigger:()=>n(z,{customClassName:"layout-header__method--icon",name:t.name,size:t.size,onClick:this.handleIconClick.bind(this,t.name)},null),default:()=>this.t(t.tooltip)})))?e:{default:()=>[e]}),n(_,{align:"center"},{default:()=>[this.rightTooltipIconOptions.map(t=>n(d2,{iconName:t.name,tooltipText:this.t(t.tooltip),onClick:this.handleIconClick.bind(this,t.name)},null)),n(U,{options:e2(),onSelect:t=>this.updateLocale(String(t)),trigger:"click"},{default:()=>[n(z,{customClassName:"layout-header__method--icon",name:"language",size:"18"},null)]}),n(U,{options:h2(),onSelect:this.handlePersonSelect.bind(this),trigger:"click"},{default:()=>[n(Y,{checkable:!0,size:"large"},{icon:()=>n(z,{customClassName:"layout-header__method--icon",name:"ray",size:"18"},null),default:()=>this.person.name})]})]})]}),n(p2,{show:this.showSettings,"onUpdate:show":t=>this.showSettings=t,placement:this.modelDrawerPlacement},null)]})}});function v2(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!k(e)}const z2=v({name:"MenuTag",setup(){const e=i1(),{menuTagOptions:t,menuKey:o}=C(e),{menuModelValueChange:a,spliceMenTagOptions:l}=e;return{menuTagOptions:t,menuModelValueChange:a,handleCloseTag:u=>{if(l(u),o.value!=="/dashboard"){const h=t.value,s=h.length,m=h[s-1];a(m.key,m)}},menuKey:o,handleTagClick:u=>{a(u.key,u)}}},render(){let e;return n(K1,{class:"menu-tag",xScrollable:!0},{default:()=>[n(_,{class:"menu-tag-sapce",wrap:!1,align:"center"},v2(e=this.menuTagOptions.map((t,o)=>n(Y,{closable:t.key!=="/dashboard"&&this.menuTagOptions.length>1,onClose:()=>this.handleCloseTag(o),type:t.key===this.menuKey?"success":"info",onClick:this.handleTagClick.bind(this,t),bordered:!1},{default:()=>[typeof t.label=="function"?t.label():t.label]})))?e:{default:()=>[e]})]})}}),w2=v({name:"Layout",setup(){const e=T(),{height:t}=Q1(),{themeValue:o,reloadRouteSwitch:a,menuTagSwitch:l}=C(e),i=y(()=>{let u={};return e.menuTagSwitch?u={"--layout-content-height":"calc(100% - 110px)"}:u={"--layout-content-height":"calc(100% - 64px)"},u}),{layout:{copyright:r}}={pkg:{dependencies:{"@vueuse/core":"^9.1.0","amfe-flexible":"^2.2.1",axios:"^1.2.0","crypto-js":"^4.1.1",dayjs:"^1.11.7",echarts:"^5.4.0","lodash-es":"^4.17.21","naive-ui":"^2.34.3",pinia:"^2.0.17","pinia-plugin-persistedstate":"^2.4.0","print-js":"^1.6.0",sass:"^1.54.3",screenfull:"^6.0.2",vue:"^3.2.37","vue-i18n":"^9.2.2","vue-router":"^4.1.3",vuedraggable:"^4.1.0",xlsx:"^0.18.5"},devDependencies:{"@babel/core":"^7.20.2","@babel/eslint-parser":"^7.19.1","@commitlint/cli":"^17.4.2","@commitlint/config-conventional":"^17.4.2","@intlify/unplugin-vue-i18n":"^0.5.0","@types/crypto-js":"^4.1.1","@types/scrollreveal":"^0.0.8","@typescript-eslint/eslint-plugin":"^5.42.1","@typescript-eslint/parser":"^5.42.1","@vitejs/plugin-vue":"^3.0.0","@vitejs/plugin-vue-jsx":"^2.0.0",autoprefixer:"^10.4.8",depcheck:"^1.4.3",eslint:"^8.0.1","eslint-config-prettier":"^8.5.0","eslint-config-standard-with-typescript":"^23.0.0","eslint-plugin-import":"^2.25.2","eslint-plugin-n":"^15.0.0","eslint-plugin-prettier":"^4.2.1","eslint-plugin-promise":"^6.0.0","eslint-plugin-react":"^7.31.10","eslint-plugin-vue":"^9.7.0",husky:"^8.0.3","lint-staged":"^13.1.0",postcss:"^8.1.0","postcss-pxtorem":"^6.0.0",prettier:"^2.7.1","rollup-plugin-visualizer":"^5.8.3","svg-sprite-loader":"^6.0.11",typescript:"*","unplugin-auto-import":"^0.11.0","unplugin-vue-components":"^0.22.0",vite:"^3.2.4","vite-plugin-compression":"^0.5.1","vite-plugin-eslint":"^1.8.1","vite-plugin-imp":"^2.3.1","vite-plugin-inspect":"^0.6.0","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^3.4.0","vue-tsc":"^1.0.9"},name:"ray-template",version:"3.0.8"},layout:{copyright:"Copyright \xA9 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}}};return{windowHeight:t,modelReloadRoute:a,modelMenuTagSwitch:l,cssVarsRef:i,copyright:r,themeValue:o}},render(){return n("div",{class:["layout",this.themeValue?"layout--dark":""],style:[`height: ${this.windowHeight}px`,this.cssVarsRef]},[n(q,{class:"layout-full",hasSider:!0},{default:()=>[n(u2,null,null),n(q,null,{default:()=>[n(f2,null,null),this.modelMenuTagSwitch?n(z2,null,null):"",n(U1,{class:"layout-content__router-view",nativeScrollbar:!1},{default:()=>[this.modelReloadRoute?n(c2,null,null):"",this.copyright?n("div",{class:"layout-footer"},[this.copyright]):""]})]})]})])}}),_2={path:"/dashboard",name:"dashboard",component:()=>f(()=>import("./index.03e26d4c.js"),["assets/index.03e26d4c.js","assets/index.8edb05c4.js","assets/naive-ui.7944048f.js","assets/date-fns.03faffa8.js","assets/vueuc.feb70412.js","assets/@vue.6f9b3ecc.js","assets/evtd.9eee5233.js","assets/seemly.786de437.js","assets/@css-render.66179467.js","assets/vooks.d8957d1b.js","assets/vdirs.9b78243b.js","assets/@juggle.32c34d6c.js","assets/css-render.20ab466e.js","assets/@emotion.6322e2ae.js","assets/lodash-es.474663c3.js","assets/treemate.80cdf2c2.js","assets/date-fns-tz.974adeb4.js","assets/async-validator.fb49d0f5.js","assets/pinia.04532b5d.js","assets/vue-demi.b3a9cad9.js","assets/pinia-plugin-persistedstate.c449c8e7.js","assets/vue-i18n.715a0b35.js","assets/@intlify.c1495d3a.js","assets/vue-router.e6f2912b.js","assets/@vueuse.a0b06385.js","assets/screenfull.c1f291d3.js","assets/index.dc50c796.css"]),meta:{i18nKey:"Dashboard",icon:"dashboard"}},b2={path:"/rely",name:"rely",component:()=>f(()=>import("./index.da4867fc.js"),["assets/index.da4867fc.js","assets/vue-router.e6f2912b.js","assets/@vue.6f9b3ecc.js"]),meta:{i18nKey:"Rely",icon:"rely"},children:[{path:"/rely-about",name:"rely-about",component:()=>f(()=>import("./index.949e380a.js"),["assets/index.949e380a.js","assets/@vue.6f9b3ecc.js","assets/naive-ui.7944048f.js","assets/date-fns.03faffa8.js","assets/vueuc.feb70412.js","assets/evtd.9eee5233.js","assets/seemly.786de437.js","assets/@css-render.66179467.js","assets/vooks.d8957d1b.js","assets/vdirs.9b78243b.js","assets/@juggle.32c34d6c.js","assets/css-render.20ab466e.js","assets/@emotion.6322e2ae.js","assets/lodash-es.474663c3.js","assets/treemate.80cdf2c2.js","assets/date-fns-tz.974adeb4.js","assets/async-validator.fb49d0f5.js","assets/index.184de73a.css"]),meta:{i18nKey:"RelyAbout"}}]},S2={path:"/error",name:"error",component:()=>f(()=>import("./index.21c569cb.js"),["assets/index.21c569cb.js","assets/vue-router.e6f2912b.js","assets/@vue.6f9b3ecc.js","assets/naive-ui.7944048f.js","assets/date-fns.03faffa8.js","assets/vueuc.feb70412.js","assets/evtd.9eee5233.js","assets/seemly.786de437.js","assets/@css-render.66179467.js","assets/vooks.d8957d1b.js","assets/vdirs.9b78243b.js","assets/@juggle.32c34d6c.js","assets/css-render.20ab466e.js","assets/@emotion.6322e2ae.js","assets/lodash-es.474663c3.js","assets/treemate.80cdf2c2.js","assets/date-fns-tz.974adeb4.js","assets/async-validator.fb49d0f5.js","assets/index.fa813b60.css"]),meta:{i18nKey:"Error",icon:"error"}},C2={path:"/echart",name:"echart",component:()=>f(()=>import("./index.2312553f.js"),["assets/index.2312553f.js","assets/pinia.04532b5d.js","assets/vue-demi.b3a9cad9.js","assets/@vue.6f9b3ecc.js","assets/lodash-es.474663c3.js","assets/hook.746076e4.js","assets/echarts.bdfdf659.js","assets/zrender.a83c43bd.js","assets/naive-ui.7944048f.js","assets/date-fns.03faffa8.js","assets/vueuc.feb70412.js","assets/evtd.9eee5233.js","assets/seemly.786de437.js","assets/@css-render.66179467.js","assets/vooks.d8957d1b.js","assets/vdirs.9b78243b.js","assets/@juggle.32c34d6c.js","assets/css-render.20ab466e.js","assets/@emotion.6322e2ae.js","assets/treemate.80cdf2c2.js","assets/date-fns-tz.974adeb4.js","assets/async-validator.fb49d0f5.js","assets/pinia-plugin-persistedstate.c449c8e7.js","assets/vue-i18n.715a0b35.js","assets/@intlify.c1495d3a.js","assets/vue-router.e6f2912b.js","assets/@vueuse.a0b06385.js","assets/screenfull.c1f291d3.js","assets/index.4b70f135.css"]),meta:{i18nKey:"Echart",icon:"echart"}},L2={path:"/scroll-reveal",name:"scroll-reveal",component:()=>f(()=>import("./index.09cfa672.js"),["assets/index.09cfa672.js","assets/@vue.6f9b3ecc.js","assets/naive-ui.7944048f.js","assets/date-fns.03faffa8.js","assets/vueuc.feb70412.js","assets/evtd.9eee5233.js","assets/seemly.786de437.js","assets/@css-render.66179467.js","assets/vooks.d8957d1b.js","assets/vdirs.9b78243b.js","assets/@juggle.32c34d6c.js","assets/css-render.20ab466e.js","assets/@emotion.6322e2ae.js","assets/lodash-es.474663c3.js","assets/treemate.80cdf2c2.js","assets/date-fns-tz.974adeb4.js","assets/async-validator.fb49d0f5.js","assets/index.0d9096a4.css"]),meta:{i18nKey:"scrollReveal",icon:"scroll_reveal",hidden:!1}},M2={path:"/axios",name:"axios",component:()=>f(()=>import("./index.6ce0b2a6.js"),["assets/index.6ce0b2a6.js","assets/axios.754b77ca.js","assets/form-data.2b153385.js","assets/naive-ui.7944048f.js","assets/date-fns.03faffa8.js","assets/vueuc.feb70412.js","assets/@vue.6f9b3ecc.js","assets/evtd.9eee5233.js","assets/seemly.786de437.js","assets/@css-render.66179467.js","assets/vooks.d8957d1b.js","assets/vdirs.9b78243b.js","assets/@juggle.32c34d6c.js","assets/css-render.20ab466e.js","assets/@emotion.6322e2ae.js","assets/lodash-es.474663c3.js","assets/treemate.80cdf2c2.js","assets/date-fns-tz.974adeb4.js","assets/async-validator.fb49d0f5.js","assets/index.2b2366c8.css"]),meta:{i18nKey:"Axios",icon:"axios"}},T2={path:"/table",name:"table",component:()=>f(()=>import("./index.91e5b918.js"),["assets/index.91e5b918.js","assets/pinia.04532b5d.js","assets/vue-demi.b3a9cad9.js","assets/@vue.6f9b3ecc.js","assets/vuedraggable.69650ee3.js","assets/date-fns.03faffa8.js","assets/vue.3e1409f3.js","assets/sortablejs.95e4fa30.js","assets/naive-ui.7944048f.js","assets/vueuc.feb70412.js","assets/evtd.9eee5233.js","assets/seemly.786de437.js","assets/@css-render.66179467.js","assets/vooks.d8957d1b.js","assets/vdirs.9b78243b.js","assets/@juggle.32c34d6c.js","assets/css-render.20ab466e.js","assets/@emotion.6322e2ae.js","assets/lodash-es.474663c3.js","assets/treemate.80cdf2c2.js","assets/date-fns-tz.974adeb4.js","assets/async-validator.fb49d0f5.js","assets/print-js.47d9cc28.js","assets/hook.746076e4.js","assets/xlsx.842cb549.js","assets/dayjs.9ac94883.js","assets/pinia-plugin-persistedstate.c449c8e7.js","assets/vue-i18n.715a0b35.js","assets/@intlify.c1495d3a.js","assets/vue-router.e6f2912b.js","assets/@vueuse.a0b06385.js","assets/screenfull.c1f291d3.js","assets/index.8e9f9bce.css"]),meta:{i18nKey:"Table",icon:"table"}},O2={path:"/doc",name:"doc",component:()=>f(()=>import("./index.f3d451e8.js"),["assets/index.f3d451e8.js","assets/@vue.6f9b3ecc.js"]),meta:{i18nKey:"Doc",icon:"doc",windowOpen:"https://xiaodaigua-ray.github.io/ray-template-doc/"}},V2={path:"/doc",name:"doc",component:()=>f(()=>import("./index.f3d451e8.js"),["assets/index.f3d451e8.js","assets/@vue.6f9b3ecc.js"]),meta:{i18nKey:"DocLocal",icon:"doc",windowOpen:"https://ray-template.yunkuangao.com/"}},R2=[_2,C2,T2,M2,L2,S2,O2,V2,b2],x2=[{path:"/",name:"login",component:()=>f(()=>import("./index.ac816ac0.js"),["assets/index.ac816ac0.js","assets/vue-i18n.715a0b35.js","assets/@intlify.c1495d3a.js","assets/@vue.6f9b3ecc.js","assets/@vueuse.a0b06385.js","assets/vue-router.e6f2912b.js","assets/naive-ui.7944048f.js","assets/date-fns.03faffa8.js","assets/vueuc.feb70412.js","assets/evtd.9eee5233.js","assets/seemly.786de437.js","assets/@css-render.66179467.js","assets/vooks.d8957d1b.js","assets/vdirs.9b78243b.js","assets/@juggle.32c34d6c.js","assets/css-render.20ab466e.js","assets/@emotion.6322e2ae.js","assets/lodash-es.474663c3.js","assets/treemate.80cdf2c2.js","assets/date-fns-tz.974adeb4.js","assets/async-validator.fb49d0f5.js","assets/index.8edb05c4.js","assets/pinia.04532b5d.js","assets/vue-demi.b3a9cad9.js","assets/pinia-plugin-persistedstate.c449c8e7.js","assets/screenfull.c1f291d3.js","assets/index.6a9d9035.css"])},{path:"/",name:"layout",redirect:"/dashboard",component:w2,children:R2},{path:"/:catchAll(.*)",name:"error-page",component:()=>f(()=>import("./index.21c569cb.js"),["assets/index.21c569cb.js","assets/vue-router.e6f2912b.js","assets/@vue.6f9b3ecc.js","assets/naive-ui.7944048f.js","assets/date-fns.03faffa8.js","assets/vueuc.feb70412.js","assets/evtd.9eee5233.js","assets/seemly.786de437.js","assets/@css-render.66179467.js","assets/vooks.d8957d1b.js","assets/vdirs.9b78243b.js","assets/@juggle.32c34d6c.js","assets/css-render.20ab466e.js","assets/@emotion.6322e2ae.js","assets/lodash-es.474663c3.js","assets/treemate.80cdf2c2.js","assets/date-fns-tz.974adeb4.js","assets/async-validator.fb49d0f5.js","assets/index.fa813b60.css"])}],H2=e=>{const{beforeEach:t}=e,o=a=>{a("/dashboard"),t1("menuKey","/dashboard")};t((a,l,i)=>{const r=w("token"),u=w("menuKey"),{role:h}=C(a1()),{meta:s}=a;r!=="no"?(()=>s.role?s.role.length===0?!0:s.role.includes(h.value):!0)()?a.path==="/"||l.path==="/login"?u!=="no"?i(u):o(i):i():o(i):a.path==="/"||l.path==="/login"?i():i("/")})},S=G1({history:Z1(),routes:x2,scrollBehavior:()=>({left:0,top:0})}),u1=()=>H2(S),d1=e=>{e.use(S)},m1=()=>{S.beforeEach(()=>{var e;(e=window==null?void 0:window.$loadingBar)==null||e.start()}),S.afterEach(()=>{var e;(e=window==null?void 0:window.$loadingBar)==null||e.finish()}),S.onError(()=>{var e;(e=window==null?void 0:window.$loadingBar)==null||e.error()})},N2=()=>{const e=Q(c1);n1(e),r1(e),d1(e),m1(),u1(),e.mount("#app")},k2=()=>{let e;window.__WUJIE_MOUNT=()=>{e=Q(c1),n1(e),r1(e),d1(e),m1(),u1(),e.mount("#app")},window.__WUJIE_UNMOUNT=()=>{e.unmount()},window.__WUJIE.mount()};window.__POWERED_BY_WUJIE__?k2():N2();export{z as R,ie as a,T as b,e2 as c,t1 as s,a1 as u}; +import{E as H,M as N,e as v,l as y,ao as n,w as h1,q as L,r as x,x as g1,aH as D,af as I,b6 as $,aN as y1,aP as f1,T as v1,c as z1,d as k,H as Q}from"./@vue.6f9b3ecc.js";import{d as E,s as C,c as w1}from"./pinia.04532b5d.js";import{s as _1}from"./pinia-plugin-persistedstate.c449c8e7.js";import{c as b1,u as M}from"./vue-i18n.715a0b35.js";import{z as j,d as F,e as S1,a as C1,N as X,c as L1,b as M1,f as T1,g as O1,h as V1,i as R1,j as x1,k as H1,s as N1,l as k1,m as E1,n as P1,t as B1,o as P,p as A1,q as _,r as R,u as K,v as D1,w as I1,x as $1,y as j1,A as U,B as Y,C as F1,D as K1,E as q,F as U1}from"./naive-ui.7944048f.js";import{u as e1,a as q1,R as W1,c as G1,b as Z1}from"./vue-router.e6f2912b.js";import{i as J1}from"./lodash-es.474663c3.js";import{u as Q1}from"./@vueuse.a0b06385.js";import{s as W}from"./screenfull.c1f291d3.js";import"./vue-demi.b3a9cad9.js";import"./@intlify.c1495d3a.js";import"./date-fns.03faffa8.js";import"./vueuc.feb70412.js";import"./evtd.9eee5233.js";import"./seemly.786de437.js";import"./@css-render.66179467.js";import"./vooks.d8957d1b.js";import"./vdirs.9b78243b.js";import"./@juggle.32c34d6c.js";import"./css-render.20ab466e.js";import"./@emotion.6322e2ae.js";import"./treemate.80cdf2c2.js";import"./date-fns-tz.974adeb4.js";import"./async-validator.fb49d0f5.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))a(l);new MutationObserver(l=>{for(const i of l)if(i.type==="childList")for(const r of i.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&a(r)}).observe(document,{childList:!0,subtree:!0});function o(l){const i={};return l.integrity&&(i.integrity=l.integrity),l.referrerpolicy&&(i.referrerPolicy=l.referrerpolicy),l.crossorigin==="use-credentials"?i.credentials="include":l.crossorigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function a(l){if(l.ep)return;l.ep=!0;const i=o(l);fetch(l.href,i)}})();if(typeof window<"u"){let e=function(){var t=document.body,o=document.getElementById("__svg__icons__dom__");o||(o=document.createElementNS("http://www.w3.org/2000/svg","svg"),o.style.position="absolute",o.style.width="0",o.style.height="0",o.id="__svg__icons__dom__",o.setAttribute("xmlns","http://www.w3.org/2000/svg"),o.setAttribute("xmlns:link","http://www.w3.org/1999/xlink")),o.innerHTML='',t.insertBefore(o,t.lastChild)};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",e):e()}const X1={"en-US":{GlobalMenuOptions:{Dashboard:e=>{const{normalize:t}=e;return t(["Home"])},Rely:e=>{const{normalize:t}=e;return t(["Rely"])},RelyAbout:e=>{const{normalize:t}=e;return t(["Rely About"])},Error:e=>{const{normalize:t}=e;return t(["Error Page"])},Echart:e=>{const{normalize:t}=e;return t(["Chart"])},scrollReveal:e=>{const{normalize:t}=e;return t(["Scroll Reveal"])},Axios:e=>{const{normalize:t}=e;return t(["Axios Request"])},Table:e=>{const{normalize:t}=e;return t(["Table"])},Doc:e=>{const{normalize:t}=e;return t(["Doc"])},DocLocal:e=>{const{normalize:t}=e;return t(["Doc (China)"])}},LayoutHeaderTooltipOptions:{Reload:e=>{const{normalize:t}=e;return t(["Reload Current Page"])},Lock:e=>{const{normalize:t}=e;return t(["Lock"])},Setting:e=>{const{normalize:t}=e;return t(["Setting"])},Github:e=>{const{normalize:t}=e;return t(["Github"])},FullScreen:e=>{const{normalize:t}=e;return t(["Full Screen"])},CancelFullScreen:e=>{const{normalize:t}=e;return t(["Cancel Full Screen"])}},LayoutHeaderSettingOptions:{Title:e=>{const{normalize:t}=e;return t(["Configuration"])},ThemeOptions:{Title:e=>{const{normalize:t}=e;return t(["Theme"])},Dark:e=>{const{normalize:t}=e;return t(["Dark"])},Light:e=>{const{normalize:t}=e;return t(["Light"])},PrimaryColorConfig:e=>{const{normalize:t}=e;return t(["Primary Color"])}}},LoginModule:{Register:e=>{const{normalize:t}=e;return t(["Register"])},Signin:e=>{const{normalize:t}=e;return t(["Signin"])},NamePlaceholder:e=>{const{normalize:t}=e;return t(["please enter user name"])},PasswordPlaceholder:e=>{const{normalize:t}=e;return t(["please enter password"])},Login:e=>{const{normalize:t}=e;return t(["Login"])},Name:e=>{const{normalize:t}=e;return t(["User Name"])},Password:e=>{const{normalize:t}=e;return t(["User Password"])}}},"zh-CN":{GlobalMenuOptions:{Dashboard:e=>{const{normalize:t}=e;return t(["\u9996\u9875"])},Rely:e=>{const{normalize:t}=e;return t(["\u4F9D\u8D56\u9879"])},RelyAbout:e=>{const{normalize:t}=e;return t(["\u5173\u4E8E"])},Error:e=>{const{normalize:t}=e;return t(["\u9519\u8BEF\u9875"])},Echart:e=>{const{normalize:t}=e;return t(["\u53EF\u89C6\u5316"])},scrollReveal:e=>{const{normalize:t}=e;return t(["\u6EDA\u52A8\u52A8\u753B"])},Axios:e=>{const{normalize:t}=e;return t(["\u8BF7\u6C42"])},Table:e=>{const{normalize:t}=e;return t(["\u8868\u683C"])},Doc:e=>{const{normalize:t}=e;return t(["\u6587\u6863"])},DocLocal:e=>{const{normalize:t}=e;return t(["\u6587\u6863 (\u56FD\u5185\u5730\u5740)"])}},LayoutHeaderTooltipOptions:{Reload:e=>{const{normalize:t}=e;return t(["\u5237\u65B0\u5F53\u524D\u9875\u9762"])},Lock:e=>{const{normalize:t}=e;return t(["\u9501\u5C4F"])},Setting:e=>{const{normalize:t}=e;return t(["\u8BBE\u7F6E"])},Github:e=>{const{normalize:t}=e;return t(["Github"])},FullScreen:e=>{const{normalize:t}=e;return t(["\u5168\u5C4F"])},CancelFullScreen:e=>{const{normalize:t}=e;return t(["\u9000\u51FA\u5168\u5C4F"])}},LayoutHeaderSettingOptions:{Title:e=>{const{normalize:t}=e;return t(["\u9879\u76EE\u914D\u7F6E"])},ThemeOptions:{Title:e=>{const{normalize:t}=e;return t(["\u4E3B\u9898"])},Dark:e=>{const{normalize:t}=e;return t(["\u6697\u8272"])},Light:e=>{const{normalize:t}=e;return t(["\u660E\u4EAE"])},PrimaryColorConfig:e=>{const{normalize:t}=e;return t(["\u4E3B\u9898\u8272"])}}},LoginModule:{Register:e=>{const{normalize:t}=e;return t(["\u6CE8\u518C"])},Signin:e=>{const{normalize:t}=e;return t(["\u767B\u9646"])},NamePlaceholder:e=>{const{normalize:t}=e;return t(["\u8BF7\u8F93\u5165\u7528\u6237\u540D"])},PasswordPlaceholder:e=>{const{normalize:t}=e;return t(["\u8BF7\u8F93\u5165\u5BC6\u7801"])},Login:e=>{const{normalize:t}=e;return t(["\u767B \u9646"])},Name:e=>{const{normalize:t}=e;return t(["\u7528\u6237\u540D"])},Password:e=>{const{normalize:t}=e;return t(["\u5BC6\u7801"])}}}},t1=(e,t,o="sessionStorage")=>{const a=JSON.stringify(t);o==="localStorage"?window.localStorage.setItem(e,a):window.sessionStorage.setItem(e,a)},w=(e,t="sessionStorage")=>{const o=t==="localStorage"?window.localStorage.getItem(e):window.sessionStorage.getItem(e);return Object.is(o,null)?"no":JSON.parse(o)},Y1=(e,t="sessionStorage")=>{switch(e){case"all":window.window.localStorage.clear(),window.sessionStorage.clear();break;case"all-sessionStorage":window.sessionStorage.clear();break;case"all-localStorage":window.localStorage.clear();break;default:t==="localStorage"?window.localStorage.removeItem(e):window.sessionStorage.removeItem(e)}},o1=()=>w("localeLanguage","localStorage")!=="no"?w("localeLanguage","localStorage"):"zh-CN",n1=e=>{const t=o1(),o=b1({locale:t,allowComposition:!0,messages:X1});e.use(o)},e2=()=>[{key:"zh-CN",label:"\u4E2D\u6587(\u7B80\u4F53)"},{key:"en-US",label:"English(US)"}],l1=e=>{switch(e){case"zh-CN":return{local:j,dateLocal:F};case"en-US":return{local:S1,dateLocal:C1};default:return{local:j,dateLocal:F}}},t2=()=>{const e=o1();return l1(e)},T=E("setting",()=>{const e=H({drawerPlacement:"right",primaryColorOverride:{common:{primaryColor:"#2d8cf0"}},themeValue:!1,reloadRouteSwitch:!0,menuTagSwitch:!0,naiveLocal:t2(),spinSwitch:!1}),{locale:t}=M(),o=i=>{t.value=i,e.naiveLocal=l1(i)},a=i=>{e.primaryColorOverride.common.primaryColor=i},l=(i,r)=>{Object.hasOwn(e,r)&&typeof e[r]=="boolean"&&(e[r]=i)};return{...N(e),updateLocale:o,changePrimaryColor:a,changeSwitcher:l}},{persist:{key:"piniaSettingStore"}});const z=v({name:"RayIcon",props:{color:{type:String,default:"currentColor"},prefix:{type:String,default:"icon"},name:{type:String,required:!0},size:{type:[Number,String],default:14},width:{type:[Number,String],default:0},height:{type:[Number,String],default:0},customClassName:{type:String,default:""},depth:{type:Number,default:1}},setup(e){const t=y(()=>e.color),o=y(()=>`#${e.prefix}-${e.name}`),a=y(()=>({"--ray-icon-width":e.width?e.width+"px":e.size+"px","--ray-icon-height":e.height?e.height+"px":e.size+"px","--ray-icon-depth":e.depth}));return{modelColor:t,symbolId:o,cssVars:a}},render(){return n("span",{class:["ray-icon",this.customClassName],style:[this.cssVars]},[n("svg",{rayIconAttribute:"ray-icon",ariaHidden:!0},[n("use",{"xlink:href":this.symbolId,fill:this.modelColor},null)])])}}),o2=["login","error-page","doc"],n2=["admin"],l2=e=>{const{role:t}=C(a1()),{meta:o,name:a}=e,l=(o==null?void 0:o.hidden)===void 0||(o==null?void 0:o.hidden)===!1?o==null?void 0:o.hidden:!0;return n2.includes(t.value)||o2.includes(a)?l:o!=null&&o.role?o.role.includes(t.value)&&l:l},i1=E("menu",()=>{const e=e1(),t=q1(),{t:o}=M(),a=w("menuKey")==="no"?"/dashboard":w("menuKey"),l=H({menuKey:a,options:[],collapsed:!1,menuTagOptions:[]}),i=c=>{c.path!==l.menuKey&&(l.menuTagOptions.find(g=>g.path===c.path)||l.menuTagOptions.push(c))},r=(c,p)=>{const g=p.meta;g.windowOpen?window.open(g.windowOpen):(i(p),l.menuKey=c,e.push(`${p.path}`),t1("menuKey",c))},u=c=>{const p=g=>{var O;for(const d of g)if((O=d==null?void 0:d.children)!=null&&O.length&&p(d.children),c===d.path){r(d.path,d);break}};p(l.options)},h=()=>{const c=e.getRoutes().find(g=>g.name==="layout"),p=(g,O)=>g.map(d=>{var A;(A=d.children)!=null&&A.length&&(d.children=p(d.children));const{meta:b}=d,B={...d,key:d.path,label:()=>L(X,null,{default:()=>o(`GlobalMenuOptions.${b.i18nKey}`)})},p1={icon:()=>L(z,{name:b.icon,size:20},{})},V=b!=null&&b.icon?Object.assign({},B,p1):B;return d.path===a&&l.menuTagOptions.push(V),V.show=l2(d),V});l.options=p(c==null?void 0:c.children)},s=c=>l.collapsed=c,m=c=>l.menuTagOptions.splice(c,1);return h1(()=>t.fullPath,c=>{u(c)},{immediate:!0}),{...N(l),menuModelValueChange:r,setupAppRoutes:h,collapsedMenu:s,spliceMenTagOptions:m}}),a1=E("signin",()=>{const e=H({role:""}),t=o=>J1(o)?1:(e.role="admin",0);return{...N(e),signin:t}},{persist:{key:"piniaSigninStore"}}),G=w1(),r1=e=>{e.use(G),G.use(_1)},i2=v({name:"GlobalProvider",setup(){const e=T(),t=y(()=>e.primaryColorOverride),o=y(()=>e.themeValue?H1:null),a=y(()=>e.naiveLocal),{message:l,notification:i,dialog:r,loadingBar:u}=L1(["message","dialog","notification","loadingBar"],{configProviderProps:y(()=>({theme:o.value}))});return window.$dialog=r,window.$message=l,window.$loadingBar=u,window.$notification=i,{modelPrimaryColorOverride:t,modelThemeValue:o,modelLocal:a}},render(){return n(x1,{themeOverrides:this.modelPrimaryColorOverride,theme:this.modelThemeValue,locale:this.modelLocal.local,dateLocal:this.modelLocal.dateLocal},{default:()=>[n(M1,null,{default:()=>[n(T1,null,{default:()=>[n(O1,null,{default:()=>[n(V1,null,{default:()=>{var e,t;return[n(R1,null,null),(t=(e=this.$slots).default)==null?void 0:t.call(e)]}})]})]})]})]})}}),s1=x(!1),ie=e=>s1.value=e,a2=v({name:"GlobalSpin",props:{...N1},setup(){return{spinValue:s1,overrides:{opacitySpinning:"0"}}},render(){return n(k1,g1(this.$props,{show:this.spinValue,themeOverrides:this.overrides}),{default:()=>{var e,t;return(t=(e=this.$slots).default)==null?void 0:t.call(e)},description:()=>{var e,t;return(t=(e=this.$slots).description)==null?void 0:t.call(e)}})}}),c1=v({name:"App",render(){return n(i2,null,{default:()=>[n(a2,null,{default:()=>n(W1,null,null),description:()=>"lodaing..."})]})}}),r2="modulepreload",s2=function(e){return"/"+e},Z={},f=function(t,o,a){if(!o||o.length===0)return t();const l=document.getElementsByTagName("link");return Promise.all(o.map(i=>{if(i=s2(i),i in Z)return;Z[i]=!0;const r=i.endsWith(".css"),u=r?'[rel="stylesheet"]':"";if(!!a)for(let m=l.length-1;m>=0;m--){const c=l[m];if(c.href===i&&(!r||c.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${u}`))return;const s=document.createElement("link");if(s.rel=r?"stylesheet":r2,r||(s.as="script",s.crossOrigin=""),s.href=i,document.head.appendChild(s),r)return new Promise((m,c)=>{s.addEventListener("load",m),s.addEventListener("error",()=>c(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t())};const c2=v({__name:"index",props:{transitionPropName:{type:String,default:"fade"},transitionMode:{type:String,default:"out-in"},transitionAppear:{type:Boolean,default:!0}},setup(e){return(t,o)=>{const a=y1("router-view");return D(),I(a,null,{default:$(({Component:l,route:i})=>[n(v1,{name:e.transitionPropName,mode:e.transitionMode,appear:e.transitionAppear},{default:$(()=>[(D(),I(f1(l),{key:i.fullPath}))]),_:2},1032,["name","mode","appear"])]),_:1})}}});const u2=v({name:"LayoutMenu",setup(){const e=i1(),t=e1(),{menuModelValueChange:o,setupAppRoutes:a,collapsedMenu:l}=e,i=y({get:()=>e.menuKey,set:()=>{}}),r=y(()=>e.options),u=y(()=>e.collapsed),h=64,{layout:{sideBarLogo:s}}={pkg:{dependencies:{"@vueuse/core":"^9.1.0","amfe-flexible":"^2.2.1",axios:"^1.2.0","crypto-js":"^4.1.1",dayjs:"^1.11.7",echarts:"^5.4.0","lodash-es":"^4.17.21","naive-ui":"^2.34.3",pinia:"^2.0.17","pinia-plugin-persistedstate":"^2.4.0","print-js":"^1.6.0",sass:"^1.54.3",screenfull:"^6.0.2",vue:"^3.2.37","vue-i18n":"^9.2.2","vue-router":"^4.1.3",vuedraggable:"^4.1.0",xlsx:"^0.18.5"},devDependencies:{"@babel/core":"^7.20.2","@babel/eslint-parser":"^7.19.1","@commitlint/cli":"^17.4.2","@commitlint/config-conventional":"^17.4.2","@intlify/unplugin-vue-i18n":"^0.5.0","@types/crypto-js":"^4.1.1","@types/scrollreveal":"^0.0.8","@typescript-eslint/eslint-plugin":"^5.42.1","@typescript-eslint/parser":"^5.42.1","@vitejs/plugin-vue":"^3.0.0","@vitejs/plugin-vue-jsx":"^2.0.0",autoprefixer:"^10.4.8",depcheck:"^1.4.3",eslint:"^8.0.1","eslint-config-prettier":"^8.5.0","eslint-config-standard-with-typescript":"^23.0.0","eslint-plugin-import":"^2.25.2","eslint-plugin-n":"^15.0.0","eslint-plugin-prettier":"^4.2.1","eslint-plugin-promise":"^6.0.0","eslint-plugin-react":"^7.31.10","eslint-plugin-vue":"^9.7.0",husky:"^8.0.3","lint-staged":"^13.1.0",postcss:"^8.1.0","postcss-pxtorem":"^6.0.0",prettier:"^2.7.1","rollup-plugin-visualizer":"^5.8.3","svg-sprite-loader":"^6.0.11",typescript:"*","unplugin-auto-import":"^0.11.0","unplugin-vue-components":"^0.22.0",vite:"^3.2.4","vite-plugin-compression":"^0.5.1","vite-plugin-eslint":"^1.8.1","vite-plugin-imp":"^2.3.1","vite-plugin-inspect":"^0.6.0","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^3.4.0","vue-tsc":"^1.0.9"},name:"ray-template",version:"3.0.8"},layout:{copyright:"Copyright \xA9 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}}},m=()=>{s&&s.url&&(s.jumpType==="station"?t.push(s.url):window.open(s.url))};return a(),{modelMenuKey:i,menuModelValueChange:o,modelMenuOptions:r,modelCollapsed:u,collapsedMenu:l,collapsedWidth:h,sideBarLogo:s,handleSideBarLogoClick:m}},render(){return n(P1,{bordered:!0,showTrigger:!0,collapseMode:"width",collapsedWidth:this.collapsedWidth,onUpdateCollapsed:this.collapsedMenu.bind(this),nativeScrollbar:!1},{default:()=>[this.sideBarLogo?n("div",{class:["ray-menu__logo",this.sideBarLogo.url?"ray-menu__logo-url":""],onClick:this.handleSideBarLogoClick.bind(this)},[n(z,{name:this.sideBarLogo.icon,size:"30"},null),n("h1",{class:[this.modelCollapsed?"":"ray-menu__logo-title--open","ray-menu__logo-title"]},[n(X,null,{default:()=>[this.sideBarLogo.title]})])]):"",n(E1,{value:this.modelMenuKey,"onUpdate:value":e=>this.modelMenuKey=e,options:this.modelMenuOptions,indent:24,collapsed:this.modelCollapsed,collapsedIconSize:22,collapsedWidth:this.collapsedWidth,onUpdateValue:this.menuModelValueChange.bind(this)},null)]})}});const d2=v({name:"RayTooltipIcon",props:{...B1,iconName:{type:String,required:!0},customClassName:{type:String,default:""},tooltipText:{type:String,default:""}},emits:["click"],setup(e,{emit:t}){return{handleClick:a=>{t("click",a)}}},render(){return n(P,this.$props,{trigger:()=>n(z,{name:this.iconName,size:"18",customClassName:`ray-tooltip-text__icon ${this.customClassName}`,onClick:this.handleClick.bind(this)},null),default:()=>this.tooltipText})}});const m2=()=>["#FFFFFF","#18A058","#2d8cf0","#F0A020","rgba(208, 48, 80, 1)"];function J(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!k(e)}const p2=v({name:"SettingDrawer",props:{show:{type:Boolean,default:!1},placement:{type:String,default:"right"},width:{type:Number,default:280}},emits:["update:show"],setup(e,{emit:t}){const{t:o}=M(),a=T(),{changePrimaryColor:l,changeSwitcher:i}=a,{themeValue:r,primaryColorOverride:u,menuTagSwitch:h}=C(a);return{modelShow:y({get:()=>e.show,set:c=>{t("update:show",c)}}),ray:o,handleRailStyle:()=>({backgroundColor:"#000000"}),changePrimaryColor:l,themeValue:r,primaryColorOverride:u,menuTagSwitch:h,changeSwitcher:i}},render(){let e,t;return n(j1,{show:this.modelShow,"onUpdate:show":o=>this.modelShow=o,placement:this.placement,width:this.width},{default:()=>[n(A1,{title:this.ray("LayoutHeaderSettingOptions.Title")},{default:()=>[n(_,{class:"setting-drawer__space",vertical:!0},{default:()=>[n(R,{titlePlacement:"center"},J(e=this.ray("LayoutHeaderSettingOptions.ThemeOptions.Title"))?e:{default:()=>[e]}),n(_,{justify:"center"},{default:()=>[n(P,null,{trigger:()=>n(K,{value:this.themeValue,"onUpdate:value":o=>this.themeValue=o,railStyle:this.handleRailStyle.bind(this),onUpdateValue:o=>this.changeSwitcher(o,"themeValue")},{"checked-icon":()=>L(z,{name:"dark"},{}),"unchecked-icon":()=>L(z,{name:"light"},{})}),default:()=>this.themeValue?this.ray("LayoutHeaderSettingOptions.ThemeOptions.Dark"):this.ray("LayoutHeaderSettingOptions.ThemeOptions.Light")})]}),n(R,{titlePlacement:"center"},J(t=this.ray("LayoutHeaderSettingOptions.ThemeOptions.PrimaryColorConfig"))?t:{default:()=>[t]}),n(D1,{swatches:m2(),value:this.primaryColorOverride.common.primaryColor,"onUpdate:value":o=>this.primaryColorOverride.common.primaryColor=o,onUpdateValue:this.changePrimaryColor.bind(this)},null),n(R,{titlePlacement:"center"},{default:()=>[z1("\u754C\u9762\u663E\u793A")]}),n(I1,{labelPlacement:"left",column:1},{default:()=>[n($1,{label:"\u663E\u793A\u591A\u6807\u7B7E"},{default:()=>[n(K,{value:this.menuTagSwitch,"onUpdate:value":o=>this.menuTagSwitch=o,onUpdateValue:o=>this.changeSwitcher(o,"menuTagSwitch")},null)]})]})]})]})]})}}),h2=()=>[{key:"person",label:"\u4E2A\u4EBA\u4FE1\u606F"},{type:"divider",key:"d1"},{key:"logout",label:"\u9000\u51FA\u767B\u9646"}],g2=()=>{window.$message.info("\u8D26\u53F7\u9000\u51FA\u4E2D..."),Y1("all-sessionStorage"),setTimeout(()=>window.location.reload(),300)};function y2(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!k(e)}const f2=v({name:"SiderBar",setup(){const e=T(),{t}=M(),{updateLocale:o,changeSwitcher:a}=e,l=x(e.drawerPlacement),i=x(!1),r=w("person"),u=[{name:"reload",size:18,tooltip:"LayoutHeaderTooltipOptions.Reload"}],h=[{name:"fullscreen",size:18,tooltip:"LayoutHeaderTooltipOptions.FullScreen",eventKey:"screen"},{name:"github",size:18,tooltip:"LayoutHeaderTooltipOptions.Github",eventKey:"github"},{name:"setting",size:18,tooltip:"LayoutHeaderTooltipOptions.Setting",eventKey:"setting"}],s={reload:()=>{a(!1,"reloadRouteSwitch"),setTimeout(()=>a(!0,"reloadRouteSwitch"),1.5*1e3)},setting:()=>{i.value=!0},github:()=>{window.open("https://github.com/XiaoDaiGua-Ray/ray-template")},fullscreen:()=>{W.isEnabled?W.toggle():window.$message.warning("\u60A8\u7684\u6D4F\u89C8\u5668\u4E0D\u652F\u6301\u5168\u5C4F~")}};return{leftIconOptions:u,rightTooltipIconOptions:h,t,handleIconClick:p=>{var g;(g=s[p])==null||g.call(s)},modelDrawerPlacement:l,showSettings:i,updateLocale:o,handlePersonSelect:p=>{p==="logout"?window.$dialog.warning({title:"\u63D0\u793A",content:"\u60A8\u786E\u5B9A\u8981\u9000\u51FA\u767B\u5F55\u5417",positiveText:"\u786E\u5B9A",negativeText:"\u4E0D\u786E\u5B9A",onPositiveClick:()=>{g2()}}):window.$message.info("\u8FD9\u4E2A\u4EBA\u5F88\u61D2, \u6CA1\u505A\u8FD9\u4E2A\u529F\u80FD~")},person:r}},render(){let e;return n(F1,{class:"layout-header",bordered:!0},{default:()=>[n(_,{class:"layout-header__method",align:"center",justify:"space-between"},{default:()=>[n(_,{align:"center"},y2(e=this.leftIconOptions.map(t=>n(P,null,{trigger:()=>n(z,{customClassName:"layout-header__method--icon",name:t.name,size:t.size,onClick:this.handleIconClick.bind(this,t.name)},null),default:()=>this.t(t.tooltip)})))?e:{default:()=>[e]}),n(_,{align:"center"},{default:()=>[this.rightTooltipIconOptions.map(t=>n(d2,{iconName:t.name,tooltipText:this.t(t.tooltip),onClick:this.handleIconClick.bind(this,t.name)},null)),n(U,{options:e2(),onSelect:t=>this.updateLocale(String(t)),trigger:"click"},{default:()=>[n(z,{customClassName:"layout-header__method--icon",name:"language",size:"18"},null)]}),n(U,{options:h2(),onSelect:this.handlePersonSelect.bind(this),trigger:"click"},{default:()=>[n(Y,{checkable:!0,size:"large"},{icon:()=>n(z,{customClassName:"layout-header__method--icon",name:"ray",size:"18"},null),default:()=>this.person.name})]})]})]}),n(p2,{show:this.showSettings,"onUpdate:show":t=>this.showSettings=t,placement:this.modelDrawerPlacement},null)]})}});function v2(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!k(e)}const z2=v({name:"MenuTag",setup(){const e=i1(),{menuTagOptions:t,menuKey:o}=C(e),{menuModelValueChange:a,spliceMenTagOptions:l}=e;return{menuTagOptions:t,menuModelValueChange:a,handleCloseTag:u=>{if(l(u),o.value!=="/dashboard"){const h=t.value,s=h.length,m=h[s-1];a(m.key,m)}},menuKey:o,handleTagClick:u=>{a(u.key,u)}}},render(){let e;return n(K1,{class:"menu-tag",xScrollable:!0},{default:()=>[n(_,{class:"menu-tag-sapce",wrap:!1,align:"center"},v2(e=this.menuTagOptions.map((t,o)=>n(Y,{closable:t.key!=="/dashboard"&&this.menuTagOptions.length>1,onClose:()=>this.handleCloseTag(o),type:t.key===this.menuKey?"success":"info",onClick:this.handleTagClick.bind(this,t),bordered:!1},{default:()=>[typeof t.label=="function"?t.label():t.label]})))?e:{default:()=>[e]})]})}}),w2=v({name:"Layout",setup(){const e=T(),{height:t}=Q1(),{themeValue:o,reloadRouteSwitch:a,menuTagSwitch:l}=C(e),i=y(()=>{let u={};return e.menuTagSwitch?u={"--layout-content-height":"calc(100% - 110px)"}:u={"--layout-content-height":"calc(100% - 64px)"},u}),{layout:{copyright:r}}={pkg:{dependencies:{"@vueuse/core":"^9.1.0","amfe-flexible":"^2.2.1",axios:"^1.2.0","crypto-js":"^4.1.1",dayjs:"^1.11.7",echarts:"^5.4.0","lodash-es":"^4.17.21","naive-ui":"^2.34.3",pinia:"^2.0.17","pinia-plugin-persistedstate":"^2.4.0","print-js":"^1.6.0",sass:"^1.54.3",screenfull:"^6.0.2",vue:"^3.2.37","vue-i18n":"^9.2.2","vue-router":"^4.1.3",vuedraggable:"^4.1.0",xlsx:"^0.18.5"},devDependencies:{"@babel/core":"^7.20.2","@babel/eslint-parser":"^7.19.1","@commitlint/cli":"^17.4.2","@commitlint/config-conventional":"^17.4.2","@intlify/unplugin-vue-i18n":"^0.5.0","@types/crypto-js":"^4.1.1","@types/scrollreveal":"^0.0.8","@typescript-eslint/eslint-plugin":"^5.42.1","@typescript-eslint/parser":"^5.42.1","@vitejs/plugin-vue":"^3.0.0","@vitejs/plugin-vue-jsx":"^2.0.0",autoprefixer:"^10.4.8",depcheck:"^1.4.3",eslint:"^8.0.1","eslint-config-prettier":"^8.5.0","eslint-config-standard-with-typescript":"^23.0.0","eslint-plugin-import":"^2.25.2","eslint-plugin-n":"^15.0.0","eslint-plugin-prettier":"^4.2.1","eslint-plugin-promise":"^6.0.0","eslint-plugin-react":"^7.31.10","eslint-plugin-vue":"^9.7.0",husky:"^8.0.3","lint-staged":"^13.1.0",postcss:"^8.1.0","postcss-pxtorem":"^6.0.0",prettier:"^2.7.1","rollup-plugin-visualizer":"^5.8.3","svg-sprite-loader":"^6.0.11",typescript:"*","unplugin-auto-import":"^0.11.0","unplugin-vue-components":"^0.22.0",vite:"^3.2.4","vite-plugin-compression":"^0.5.1","vite-plugin-eslint":"^1.8.1","vite-plugin-imp":"^2.3.1","vite-plugin-inspect":"^0.6.0","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^3.4.0","vue-tsc":"^1.0.9"},name:"ray-template",version:"3.0.8"},layout:{copyright:"Copyright \xA9 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}}};return{windowHeight:t,modelReloadRoute:a,modelMenuTagSwitch:l,cssVarsRef:i,copyright:r,themeValue:o}},render(){return n("div",{class:["layout",this.themeValue?"layout--dark":""],style:[`height: ${this.windowHeight}px`,this.cssVarsRef]},[n(q,{class:"layout-full",hasSider:!0},{default:()=>[n(u2,null,null),n(q,null,{default:()=>[n(f2,null,null),this.modelMenuTagSwitch?n(z2,null,null):"",n(U1,{class:"layout-content__router-view",nativeScrollbar:!1},{default:()=>[this.modelReloadRoute?n(c2,null,null):"",this.copyright?n("div",{class:"layout-footer"},[this.copyright]):""]})]})]})])}}),_2={path:"/dashboard",name:"dashboard",component:()=>f(()=>import("./index.5a60ebad.js"),["assets/index.5a60ebad.js","assets/index.8edb05c4.js","assets/naive-ui.7944048f.js","assets/date-fns.03faffa8.js","assets/vueuc.feb70412.js","assets/@vue.6f9b3ecc.js","assets/evtd.9eee5233.js","assets/seemly.786de437.js","assets/@css-render.66179467.js","assets/vooks.d8957d1b.js","assets/vdirs.9b78243b.js","assets/@juggle.32c34d6c.js","assets/css-render.20ab466e.js","assets/@emotion.6322e2ae.js","assets/lodash-es.474663c3.js","assets/treemate.80cdf2c2.js","assets/date-fns-tz.974adeb4.js","assets/async-validator.fb49d0f5.js","assets/pinia.04532b5d.js","assets/vue-demi.b3a9cad9.js","assets/pinia-plugin-persistedstate.c449c8e7.js","assets/vue-i18n.715a0b35.js","assets/@intlify.c1495d3a.js","assets/vue-router.e6f2912b.js","assets/@vueuse.a0b06385.js","assets/screenfull.c1f291d3.js","assets/index.dc50c796.css"]),meta:{i18nKey:"Dashboard",icon:"dashboard"}},b2={path:"/rely",name:"rely",component:()=>f(()=>import("./index.da4867fc.js"),["assets/index.da4867fc.js","assets/vue-router.e6f2912b.js","assets/@vue.6f9b3ecc.js"]),meta:{i18nKey:"Rely",icon:"rely"},children:[{path:"/rely-about",name:"rely-about",component:()=>f(()=>import("./index.949e380a.js"),["assets/index.949e380a.js","assets/@vue.6f9b3ecc.js","assets/naive-ui.7944048f.js","assets/date-fns.03faffa8.js","assets/vueuc.feb70412.js","assets/evtd.9eee5233.js","assets/seemly.786de437.js","assets/@css-render.66179467.js","assets/vooks.d8957d1b.js","assets/vdirs.9b78243b.js","assets/@juggle.32c34d6c.js","assets/css-render.20ab466e.js","assets/@emotion.6322e2ae.js","assets/lodash-es.474663c3.js","assets/treemate.80cdf2c2.js","assets/date-fns-tz.974adeb4.js","assets/async-validator.fb49d0f5.js","assets/index.184de73a.css"]),meta:{i18nKey:"RelyAbout"}}]},S2={path:"/error",name:"error",component:()=>f(()=>import("./index.21c569cb.js"),["assets/index.21c569cb.js","assets/vue-router.e6f2912b.js","assets/@vue.6f9b3ecc.js","assets/naive-ui.7944048f.js","assets/date-fns.03faffa8.js","assets/vueuc.feb70412.js","assets/evtd.9eee5233.js","assets/seemly.786de437.js","assets/@css-render.66179467.js","assets/vooks.d8957d1b.js","assets/vdirs.9b78243b.js","assets/@juggle.32c34d6c.js","assets/css-render.20ab466e.js","assets/@emotion.6322e2ae.js","assets/lodash-es.474663c3.js","assets/treemate.80cdf2c2.js","assets/date-fns-tz.974adeb4.js","assets/async-validator.fb49d0f5.js","assets/index.fa813b60.css"]),meta:{i18nKey:"Error",icon:"error"}},C2={path:"/echart",name:"echart",component:()=>f(()=>import("./index.32b1927e.js"),["assets/index.32b1927e.js","assets/pinia.04532b5d.js","assets/vue-demi.b3a9cad9.js","assets/@vue.6f9b3ecc.js","assets/lodash-es.474663c3.js","assets/hook.746076e4.js","assets/echarts.ab55e4f1.js","assets/zrender.536036ea.js","assets/naive-ui.7944048f.js","assets/date-fns.03faffa8.js","assets/vueuc.feb70412.js","assets/evtd.9eee5233.js","assets/seemly.786de437.js","assets/@css-render.66179467.js","assets/vooks.d8957d1b.js","assets/vdirs.9b78243b.js","assets/@juggle.32c34d6c.js","assets/css-render.20ab466e.js","assets/@emotion.6322e2ae.js","assets/treemate.80cdf2c2.js","assets/date-fns-tz.974adeb4.js","assets/async-validator.fb49d0f5.js","assets/pinia-plugin-persistedstate.c449c8e7.js","assets/vue-i18n.715a0b35.js","assets/@intlify.c1495d3a.js","assets/vue-router.e6f2912b.js","assets/@vueuse.a0b06385.js","assets/screenfull.c1f291d3.js","assets/index.5ba451c9.css"]),meta:{i18nKey:"Echart",icon:"echart"}},L2={path:"/scroll-reveal",name:"scroll-reveal",component:()=>f(()=>import("./index.09cfa672.js"),["assets/index.09cfa672.js","assets/@vue.6f9b3ecc.js","assets/naive-ui.7944048f.js","assets/date-fns.03faffa8.js","assets/vueuc.feb70412.js","assets/evtd.9eee5233.js","assets/seemly.786de437.js","assets/@css-render.66179467.js","assets/vooks.d8957d1b.js","assets/vdirs.9b78243b.js","assets/@juggle.32c34d6c.js","assets/css-render.20ab466e.js","assets/@emotion.6322e2ae.js","assets/lodash-es.474663c3.js","assets/treemate.80cdf2c2.js","assets/date-fns-tz.974adeb4.js","assets/async-validator.fb49d0f5.js","assets/index.0d9096a4.css"]),meta:{i18nKey:"scrollReveal",icon:"scroll_reveal",hidden:!1}},M2={path:"/axios",name:"axios",component:()=>f(()=>import("./index.6ce0b2a6.js"),["assets/index.6ce0b2a6.js","assets/axios.754b77ca.js","assets/form-data.2b153385.js","assets/naive-ui.7944048f.js","assets/date-fns.03faffa8.js","assets/vueuc.feb70412.js","assets/@vue.6f9b3ecc.js","assets/evtd.9eee5233.js","assets/seemly.786de437.js","assets/@css-render.66179467.js","assets/vooks.d8957d1b.js","assets/vdirs.9b78243b.js","assets/@juggle.32c34d6c.js","assets/css-render.20ab466e.js","assets/@emotion.6322e2ae.js","assets/lodash-es.474663c3.js","assets/treemate.80cdf2c2.js","assets/date-fns-tz.974adeb4.js","assets/async-validator.fb49d0f5.js","assets/index.2b2366c8.css"]),meta:{i18nKey:"Axios",icon:"axios"}},T2={path:"/table",name:"table",component:()=>f(()=>import("./index.80d76c0e.js"),["assets/index.80d76c0e.js","assets/pinia.04532b5d.js","assets/vue-demi.b3a9cad9.js","assets/@vue.6f9b3ecc.js","assets/vuedraggable.69650ee3.js","assets/date-fns.03faffa8.js","assets/vue.3e1409f3.js","assets/sortablejs.95e4fa30.js","assets/naive-ui.7944048f.js","assets/vueuc.feb70412.js","assets/evtd.9eee5233.js","assets/seemly.786de437.js","assets/@css-render.66179467.js","assets/vooks.d8957d1b.js","assets/vdirs.9b78243b.js","assets/@juggle.32c34d6c.js","assets/css-render.20ab466e.js","assets/@emotion.6322e2ae.js","assets/lodash-es.474663c3.js","assets/treemate.80cdf2c2.js","assets/date-fns-tz.974adeb4.js","assets/async-validator.fb49d0f5.js","assets/print-js.47d9cc28.js","assets/hook.746076e4.js","assets/xlsx.842cb549.js","assets/dayjs.9ac94883.js","assets/pinia-plugin-persistedstate.c449c8e7.js","assets/vue-i18n.715a0b35.js","assets/@intlify.c1495d3a.js","assets/vue-router.e6f2912b.js","assets/@vueuse.a0b06385.js","assets/screenfull.c1f291d3.js","assets/index.8e9f9bce.css"]),meta:{i18nKey:"Table",icon:"table"}},O2={path:"/doc",name:"doc",component:()=>f(()=>import("./index.f3d451e8.js"),["assets/index.f3d451e8.js","assets/@vue.6f9b3ecc.js"]),meta:{i18nKey:"Doc",icon:"doc",windowOpen:"https://xiaodaigua-ray.github.io/ray-template-doc/"}},V2={path:"/doc",name:"doc",component:()=>f(()=>import("./index.f3d451e8.js"),["assets/index.f3d451e8.js","assets/@vue.6f9b3ecc.js"]),meta:{i18nKey:"DocLocal",icon:"doc",windowOpen:"https://ray-template.yunkuangao.com/"}},R2=[_2,C2,T2,M2,L2,S2,O2,V2,b2],x2=[{path:"/",name:"login",component:()=>f(()=>import("./index.e2d2de24.js"),["assets/index.e2d2de24.js","assets/vue-i18n.715a0b35.js","assets/@intlify.c1495d3a.js","assets/@vue.6f9b3ecc.js","assets/@vueuse.a0b06385.js","assets/vue-router.e6f2912b.js","assets/naive-ui.7944048f.js","assets/date-fns.03faffa8.js","assets/vueuc.feb70412.js","assets/evtd.9eee5233.js","assets/seemly.786de437.js","assets/@css-render.66179467.js","assets/vooks.d8957d1b.js","assets/vdirs.9b78243b.js","assets/@juggle.32c34d6c.js","assets/css-render.20ab466e.js","assets/@emotion.6322e2ae.js","assets/lodash-es.474663c3.js","assets/treemate.80cdf2c2.js","assets/date-fns-tz.974adeb4.js","assets/async-validator.fb49d0f5.js","assets/index.8edb05c4.js","assets/pinia.04532b5d.js","assets/vue-demi.b3a9cad9.js","assets/pinia-plugin-persistedstate.c449c8e7.js","assets/screenfull.c1f291d3.js","assets/index.6a9d9035.css"])},{path:"/",name:"layout",redirect:"/dashboard",component:w2,children:R2},{path:"/:catchAll(.*)",name:"error-page",component:()=>f(()=>import("./index.21c569cb.js"),["assets/index.21c569cb.js","assets/vue-router.e6f2912b.js","assets/@vue.6f9b3ecc.js","assets/naive-ui.7944048f.js","assets/date-fns.03faffa8.js","assets/vueuc.feb70412.js","assets/evtd.9eee5233.js","assets/seemly.786de437.js","assets/@css-render.66179467.js","assets/vooks.d8957d1b.js","assets/vdirs.9b78243b.js","assets/@juggle.32c34d6c.js","assets/css-render.20ab466e.js","assets/@emotion.6322e2ae.js","assets/lodash-es.474663c3.js","assets/treemate.80cdf2c2.js","assets/date-fns-tz.974adeb4.js","assets/async-validator.fb49d0f5.js","assets/index.fa813b60.css"])}],H2=e=>{const{beforeEach:t}=e,o=a=>{a("/dashboard"),t1("menuKey","/dashboard")};t((a,l,i)=>{const r=w("token"),u=w("menuKey"),{role:h}=C(a1()),{meta:s}=a;r!=="no"?(()=>s.role?s.role.length===0?!0:s.role.includes(h.value):!0)()?a.path==="/"||l.path==="/login"?u!=="no"?i(u):o(i):i():o(i):a.path==="/"||l.path==="/login"?i():i("/")})},S=G1({history:Z1(),routes:x2,scrollBehavior:()=>({left:0,top:0})}),u1=()=>H2(S),d1=e=>{e.use(S)},m1=()=>{S.beforeEach(()=>{var e;(e=window==null?void 0:window.$loadingBar)==null||e.start()}),S.afterEach(()=>{var e;(e=window==null?void 0:window.$loadingBar)==null||e.finish()}),S.onError(()=>{var e;(e=window==null?void 0:window.$loadingBar)==null||e.error()})},N2=()=>{const e=Q(c1);n1(e),r1(e),d1(e),m1(),u1(),e.mount("#app")},k2=()=>{let e;window.__WUJIE_MOUNT=()=>{e=Q(c1),n1(e),r1(e),d1(e),m1(),u1(),e.mount("#app")},window.__WUJIE_UNMOUNT=()=>{e.unmount()},window.__WUJIE.mount()};window.__POWERED_BY_WUJIE__?k2():N2();export{z as R,ie as a,T as b,e2 as c,t1 as s,a1 as u}; diff --git a/assets/index.d6645ad3.js.gz b/assets/index.a4c9b7e0.js.gz similarity index 92% rename from assets/index.d6645ad3.js.gz rename to assets/index.a4c9b7e0.js.gz index 71b525cd..fb691bd2 100644 Binary files a/assets/index.d6645ad3.js.gz and b/assets/index.a4c9b7e0.js.gz differ diff --git a/assets/index.ac816ac0.js.gz b/assets/index.ac816ac0.js.gz deleted file mode 100644 index ccfc4b2e..00000000 Binary files a/assets/index.ac816ac0.js.gz and /dev/null differ diff --git a/assets/index.ac816ac0.js b/assets/index.e2d2de24.js similarity index 98% rename from assets/index.ac816ac0.js rename to assets/index.e2d2de24.js index 531f42ca..bd7cd389 100644 --- a/assets/index.ac816ac0.js +++ b/assets/index.e2d2de24.js @@ -1 +1 @@ -import{u as w}from"./vue-i18n.715a0b35.js";import{u as b}from"./@vueuse.a0b06385.js";import{u as y}from"./vue-router.e6f2912b.js";import{u as v,a as d,s as m,b as S,c as R,R as F}from"./index.d6645ad3.js";import{G as p,H as g,I as M,J as P,K as C,q as V,L as x,A as T,M as I,O as k,P as c,r as O}from"./naive-ui.7944048f.js";import{e as r,r as h,ao as e,d as $,E as j,M as q,c as f}from"./@vue.6f9b3ecc.js";import{R as H}from"./index.8edb05c4.js";import"./@intlify.c1495d3a.js";import"./pinia.04532b5d.js";import"./vue-demi.b3a9cad9.js";import"./pinia-plugin-persistedstate.c449c8e7.js";import"./lodash-es.474663c3.js";import"./screenfull.c1f291d3.js";import"./date-fns.03faffa8.js";import"./vueuc.feb70412.js";import"./evtd.9eee5233.js";import"./seemly.786de437.js";import"./@css-render.66179467.js";import"./vooks.d8957d1b.js";import"./vdirs.9b78243b.js";import"./@juggle.32c34d6c.js";import"./css-render.20ab466e.js";import"./@emotion.6322e2ae.js";import"./treemate.80cdf2c2.js";import"./date-fns-tz.974adeb4.js";import"./async-validator.fb49d0f5.js";function U(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!$(t)}const z=r({name:"Signin",setup(){const{t}=w(),o=v(),{signin:n}=o,s=()=>({name:"ray",pwd:"123456"}),a=y(),i=h(s()),l=h(),L={name:{required:!0,message:t("LoginModule.NamePlaceholder"),trigger:["blur","input"]},pwd:{required:!0,message:t("LoginModule.PasswordPlaceholder"),trigger:["blur","input"]}};return{signinForm:i,loginFormRef:l,handleLogin:()=>{var u;(u=l.value)==null||u.validate(N=>{N?window.$message.error("\u4E0D\u53EF\u4EE5\u8FD9\u6837\u54DF, \u4E0D\u53EF\u4EE5\u54DF"):(d(!0),n(i.value)===0&&setTimeout(()=>{d(!1),window.$message.success(`\u6B22\u8FCE${i.value.name}\u767B\u9646~`),m("token","tokenValue"),m("person",i.value),a.push("/dashboard")},2*1e3))})},rules:L,t}},render(){let t;return e(P,{model:this.signinForm,ref:"loginFormRef",rules:this.rules},{default:()=>[e(p,{label:this.t("LoginModule.Name"),path:"name"},{default:()=>[e(g,{value:this.signinForm.name,"onUpdate:value":o=>this.signinForm.name=o,placeholder:this.t("LoginModule.NamePlaceholder")},null)]}),e(p,{label:this.t("LoginModule.Password"),path:"pwd"},{default:()=>[e(g,{value:this.signinForm.pwd,"onUpdate:value":o=>this.signinForm.pwd=o,type:"password",placeholder:this.t("LoginModule.PasswordPlaceholder")},null)]}),e(M,{style:["width: 100%","margin-to: 18px"],type:"primary",onClick:this.handleLogin.bind(this)},U(t=this.t("LoginModule.Login"))?t:{default:()=>[t]})]})}}),A=r({name:"Register",render(){return e(C,{status:"info",title:"\u63D0\u793A",description:"\u6211\u5B9E\u5728\u662F\u4E0D\u60F3\u5199\u4E86..."},null)}}),he=r({name:"Login",setup(){const t=j({tabsValue:"signin"}),{t:o}=w(),{height:n}=b(),s=S(),{updateLocale:a}=s;return{...q(t),windowHeight:n,updateLocale:a,ray:o}},render(){return e("div",{class:["login"],style:[`height: ${this.windowHeight}px`]},[e(V,null,{default:()=>[e(x,{class:"login-title",type:"info"},{default:()=>[f("Ray Template")]}),e(T,{options:R(),onSelect:t=>this.updateLocale(t)},{default:()=>[e(F,{customClassName:"login-icon",name:"language",size:"18"},null)]})]}),e(I,null,{default:()=>[e(k,{value:this.tabsValue,"onUpdate:value":t=>this.tabsValue=t},{default:()=>[e(c,{tab:this.ray("LoginModule.Signin"),name:"signin"},{default:()=>[e(z,null,null)]}),e(c,{tab:this.ray("LoginModule.Register"),name:"register"},{default:()=>[e(A,null,null)]})]}),e(O,null,{default:()=>[f("\u53CB\u60C5\u94FE\u63A5")]}),e(H,null,null)]})])}});export{he as default}; +import{u as w}from"./vue-i18n.715a0b35.js";import{u as b}from"./@vueuse.a0b06385.js";import{u as y}from"./vue-router.e6f2912b.js";import{u as v,a as d,s as m,b as S,c as R,R as F}from"./index.a4c9b7e0.js";import{G as p,H as g,I as M,J as P,K as C,q as V,L as x,A as T,M as I,O as k,P as c,r as O}from"./naive-ui.7944048f.js";import{e as r,r as h,ao as e,d as $,E as j,M as q,c as f}from"./@vue.6f9b3ecc.js";import{R as H}from"./index.8edb05c4.js";import"./@intlify.c1495d3a.js";import"./pinia.04532b5d.js";import"./vue-demi.b3a9cad9.js";import"./pinia-plugin-persistedstate.c449c8e7.js";import"./lodash-es.474663c3.js";import"./screenfull.c1f291d3.js";import"./date-fns.03faffa8.js";import"./vueuc.feb70412.js";import"./evtd.9eee5233.js";import"./seemly.786de437.js";import"./@css-render.66179467.js";import"./vooks.d8957d1b.js";import"./vdirs.9b78243b.js";import"./@juggle.32c34d6c.js";import"./css-render.20ab466e.js";import"./@emotion.6322e2ae.js";import"./treemate.80cdf2c2.js";import"./date-fns-tz.974adeb4.js";import"./async-validator.fb49d0f5.js";function U(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!$(t)}const z=r({name:"Signin",setup(){const{t}=w(),o=v(),{signin:n}=o,s=()=>({name:"ray",pwd:"123456"}),a=y(),i=h(s()),l=h(),L={name:{required:!0,message:t("LoginModule.NamePlaceholder"),trigger:["blur","input"]},pwd:{required:!0,message:t("LoginModule.PasswordPlaceholder"),trigger:["blur","input"]}};return{signinForm:i,loginFormRef:l,handleLogin:()=>{var u;(u=l.value)==null||u.validate(N=>{N?window.$message.error("\u4E0D\u53EF\u4EE5\u8FD9\u6837\u54DF, \u4E0D\u53EF\u4EE5\u54DF"):(d(!0),n(i.value)===0&&setTimeout(()=>{d(!1),window.$message.success(`\u6B22\u8FCE${i.value.name}\u767B\u9646~`),m("token","tokenValue"),m("person",i.value),a.push("/dashboard")},2*1e3))})},rules:L,t}},render(){let t;return e(P,{model:this.signinForm,ref:"loginFormRef",rules:this.rules},{default:()=>[e(p,{label:this.t("LoginModule.Name"),path:"name"},{default:()=>[e(g,{value:this.signinForm.name,"onUpdate:value":o=>this.signinForm.name=o,placeholder:this.t("LoginModule.NamePlaceholder")},null)]}),e(p,{label:this.t("LoginModule.Password"),path:"pwd"},{default:()=>[e(g,{value:this.signinForm.pwd,"onUpdate:value":o=>this.signinForm.pwd=o,type:"password",placeholder:this.t("LoginModule.PasswordPlaceholder")},null)]}),e(M,{style:["width: 100%","margin-to: 18px"],type:"primary",onClick:this.handleLogin.bind(this)},U(t=this.t("LoginModule.Login"))?t:{default:()=>[t]})]})}}),A=r({name:"Register",render(){return e(C,{status:"info",title:"\u63D0\u793A",description:"\u6211\u5B9E\u5728\u662F\u4E0D\u60F3\u5199\u4E86..."},null)}}),he=r({name:"Login",setup(){const t=j({tabsValue:"signin"}),{t:o}=w(),{height:n}=b(),s=S(),{updateLocale:a}=s;return{...q(t),windowHeight:n,updateLocale:a,ray:o}},render(){return e("div",{class:["login"],style:[`height: ${this.windowHeight}px`]},[e(V,null,{default:()=>[e(x,{class:"login-title",type:"info"},{default:()=>[f("Ray Template")]}),e(T,{options:R(),onSelect:t=>this.updateLocale(t)},{default:()=>[e(F,{customClassName:"login-icon",name:"language",size:"18"},null)]})]}),e(I,null,{default:()=>[e(k,{value:this.tabsValue,"onUpdate:value":t=>this.tabsValue=t},{default:()=>[e(c,{tab:this.ray("LoginModule.Signin"),name:"signin"},{default:()=>[e(z,null,null)]}),e(c,{tab:this.ray("LoginModule.Register"),name:"register"},{default:()=>[e(A,null,null)]})]}),e(O,null,{default:()=>[f("\u53CB\u60C5\u94FE\u63A5")]}),e(H,null,null)]})])}});export{he as default}; diff --git a/assets/index.e2d2de24.js.gz b/assets/index.e2d2de24.js.gz new file mode 100644 index 00000000..b3b20637 Binary files /dev/null and b/assets/index.e2d2de24.js.gz differ diff --git a/assets/zrender.a83c43bd.js b/assets/zrender.536036ea.js similarity index 99% rename from assets/zrender.a83c43bd.js rename to assets/zrender.536036ea.js index 304e7097..a14f193e 100644 --- a/assets/zrender.a83c43bd.js +++ b/assets/zrender.536036ea.js @@ -26,4 +26,4 @@ PERFORMANCE OF THIS SOFTWARE. `):[];var l=v.length*s,c=st(t.height,l);if(l>c&&h){var _=Math.floor(c/s);v=v.slice(0,_)}if(e&&a&&u!=null)for(var g=go(u,n,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),d=0;ds&&bi(r,e.substring(s,h),t,o),bi(r,f[2],t,o,f[1]),s=Ti.lastIndex}sn){b>0?(y.tokens=y.tokens.slice(0,b),d(y,T,m),r.lines=r.lines.slice(0,p+1)):r.lines=r.lines.slice(0,p);break t}var S=M.width,A=S==null||S==="auto";if(typeof S=="string"&&S.charAt(S.length-1)==="%")w.percentWidth=S,u.push(w),w.contentWidth=ut(w.text,P);else{if(A){var x=M.backgroundColor,E=x&&x.image;E&&(E=Jf(E),Ke(E)&&(w.width=Math.max(w.width,E.width*R/E.height)))}var D=_&&i!=null?i-T:null;D!=null&&D0&&_+i.accumWidth>i.width&&(u=t.split(` `),h=!0),i.accumWidth=_}else{var g=mo(t,f,i.width,i.breakAll,i.accumWidth);i.accumWidth=g.accumWidth+c,v=g.linesWidths,u=g.lines}}else u=t.split(` `);for(var d=0;d=33&&t<=383}var oh=Ue(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function sh(e){return ah(e)?!!oh[e]:!0}function mo(e,t,r,i,n){for(var a=[],o=[],s="",f="",h=0,u=0,v=0;vr:n+u+c>r){u?(s||f)&&(_?(s||(s=f,f="",h=0,u=h),a.push(s),o.push(u-h),f+=l,h+=c,s="",u=h):(f&&(s+=f,f="",h=0),a.push(s),o.push(u),s=l,u=c)):_?(a.push(f),o.push(h),f=l,h=c):(a.push(l),o.push(c));continue}u+=c,_?(f+=l,h+=c):(f&&(s+=f,f="",h=0),s+=l)}return!a.length&&!s&&(s=e,f="",h=0),f&&(s+=f),s&&(a.push(s),o.push(u)),a.length===1&&(u+=n),{accumWidth:u,lines:a,linesWidths:o}}var rn="__zr_style_"+Math.round(Math.random()*10),hr={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Je={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};hr[rn]=!0;var ra=["z","z2","invisible"],fh=["invisible"],hh=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var i=ht(r),n=0;n1e-4){s[0]=e-r,s[1]=t-i,f[0]=e+r,f[1]=t+i;return}if(_e[0]=Pi(n)*r+e,_e[1]=Li(n)*i+t,ge[0]=Pi(a)*r+e,ge[1]=Li(a)*i+t,h(s,_e,ge),u(f,_e,ge),n=n%Vt,n<0&&(n=n+Vt),a=a%Vt,a<0&&(a=a+Vt),n>a&&!o?a+=Vt:nn&&(ye[0]=Pi(c)*r+e,ye[1]=Li(c)*i+t,h(s,ye,s),u(f,ye,f))}var B={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Qt=[],Kt=[],mt=[],At=[],wt=[],Tt=[],Ri=Math.min,Si=Math.max,Jt=Math.cos,jt=Math.sin,St=Math.abs,en=Math.PI,It=en*2,Di=typeof Float32Array<"u",Nr=[];function xi(e){var t=Math.round(e/en*1e8)/1e8;return t%2*en}function dh(e,t){var r=xi(e[0]);r<0&&(r+=It);var i=r-e[0],n=e[1];n+=i,!t&&n-r>=It?n=r+It:t&&r-n>=It?n=r-It:!t&&r>n?n=r+(It-xi(r-n)):t&&r0&&(this._ux=St(i/$e/t)||0,this._uy=St(i/$e/r)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(t,r){return this._drawPendingPt(),this.addData(B.M,t,r),this._ctx&&this._ctx.moveTo(t,r),this._x0=t,this._y0=r,this._xi=t,this._yi=r,this},e.prototype.lineTo=function(t,r){var i=St(t-this._xi),n=St(r-this._yi),a=i>this._ux||n>this._uy;if(this.addData(B.L,t,r),this._ctx&&a&&this._ctx.lineTo(t,r),a)this._xi=t,this._yi=r,this._pendingPtDist=0;else{var o=i*i+n*n;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=r,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(t,r,i,n,a,o){return this._drawPendingPt(),this.addData(B.C,t,r,i,n,a,o),this._ctx&&this._ctx.bezierCurveTo(t,r,i,n,a,o),this._xi=a,this._yi=o,this},e.prototype.quadraticCurveTo=function(t,r,i,n){return this._drawPendingPt(),this.addData(B.Q,t,r,i,n),this._ctx&&this._ctx.quadraticCurveTo(t,r,i,n),this._xi=i,this._yi=n,this},e.prototype.arc=function(t,r,i,n,a,o){this._drawPendingPt(),Nr[0]=n,Nr[1]=a,dh(Nr,o),n=Nr[0],a=Nr[1];var s=a-n;return this.addData(B.A,t,r,i,i,n,s,0,o?0:1),this._ctx&&this._ctx.arc(t,r,i,n,a,o),this._xi=Jt(a)*i+t,this._yi=jt(a)*i+r,this},e.prototype.arcTo=function(t,r,i,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,r,i,n,a),this},e.prototype.rect=function(t,r,i,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,r,i,n),this.addData(B.R,t,r,i,n),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(B.Z);var t=this._ctx,r=this._x0,i=this._y0;return t&&t.closePath(),this._xi=r,this._yi=i,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(t){var r=t.length;!(this.data&&this.data.length===r)&&Di&&(this.data=new Float32Array(r));for(var i=0;iu.length&&(this._expandData(),u=this.data);for(var v=0;v0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],r=0;r11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){mt[0]=mt[1]=wt[0]=wt[1]=Number.MAX_VALUE,At[0]=At[1]=Tt[0]=Tt[1]=-Number.MAX_VALUE;var t=this.data,r=0,i=0,n=0,a=0,o;for(o=0;oi||St(m)>n||l===r-1)&&(g=Math.sqrt(y*y+m*m),a=d,o=p);break}case B.C:{var T=t[l++],b=t[l++],d=t[l++],p=t[l++],w=t[l++],M=t[l++];g=vf(a,o,T,b,d,p,w,M,10),a=w,o=M;break}case B.Q:{var T=t[l++],b=t[l++],d=t[l++],p=t[l++];g=df(a,o,T,b,d,p,10),a=d,o=p;break}case B.A:var C=t[l++],L=t[l++],P=t[l++],R=t[l++],S=t[l++],A=t[l++],x=A+S;l+=1,t[l++],_&&(s=Jt(S)*P+C,f=jt(S)*R+L),g=Si(P,R)*Ri(It,Math.abs(A)),a=Jt(x)*P+C,o=jt(x)*R+L;break;case B.R:{s=a=t[l++],f=o=t[l++];var E=t[l++],D=t[l++];g=E*2+D*2;break}case B.Z:{var y=s-a,m=f-o;g=Math.sqrt(y*y+m*m),a=s,o=f;break}}g>=0&&(h[v++]=g,u+=g)}return this._pathLen=u,u},e.prototype.rebuildPath=function(t,r){var i=this.data,n=this._ux,a=this._uy,o=this._len,s,f,h,u,v,l,c=r<1,_,g,d=0,p=0,y,m=0,T,b;if(c&&(this._pathSegLen||this._calculateLength(),_=this._pathSegLen,g=this._pathLen,y=r*g,!y))return;t:for(var w=0;w0&&(t.lineTo(T,b),m=0),M){case B.M:s=h=i[w++],f=u=i[w++],t.moveTo(h,u);break;case B.L:{v=i[w++],l=i[w++];var L=St(v-h),P=St(l-u);if(L>n||P>a){if(c){var R=_[p++];if(d+R>y){var S=(y-d)/R;t.lineTo(h*(1-S)+v*S,u*(1-S)+l*S);break t}d+=R}t.lineTo(v,l),h=v,u=l,m=0}else{var A=L*L+P*P;A>m&&(T=v,b=l,m=A)}break}case B.C:{var x=i[w++],E=i[w++],D=i[w++],z=i[w++],k=i[w++],W=i[w++];if(c){var R=_[p++];if(d+R>y){var S=(y-d)/R;kt(h,x,D,k,S,Qt),kt(u,E,z,W,S,Kt),t.bezierCurveTo(Qt[1],Kt[1],Qt[2],Kt[2],Qt[3],Kt[3]);break t}d+=R}t.bezierCurveTo(x,E,D,z,k,W),h=k,u=W;break}case B.Q:{var x=i[w++],E=i[w++],D=i[w++],z=i[w++];if(c){var R=_[p++];if(d+R>y){var S=(y-d)/R;ze(h,x,D,S,Qt),ze(u,E,z,S,Kt),t.quadraticCurveTo(Qt[1],Kt[1],Qt[2],Kt[2]);break t}d+=R}t.quadraticCurveTo(x,E,D,z),h=D,u=z;break}case B.A:var X=i[w++],Z=i[w++],Y=i[w++],nt=i[w++],at=i[w++],Rt=i[w++],$t=i[w++],Nt=!i[w++],Wt=Y>nt?Y:nt,j=St(Y-nt)>.001,q=at+Rt,I=!1;if(c){var R=_[p++];d+R>y&&(q=at+Rt*(y-d)/R,I=!0),d+=R}if(j&&t.ellipse?t.ellipse(X,Z,Y,nt,$t,at,q,Nt):t.arc(X,Z,Wt,at,q,Nt),I)break t;C&&(s=Jt(at)*Y+X,f=jt(at)*nt+Z),h=Jt(q)*Y+X,u=jt(q)*nt+Z;break;case B.R:s=h=i[w],f=u=i[w+1],v=i[w++],l=i[w++];var F=i[w++],Fr=i[w++];if(c){var R=_[p++];if(d+R>y){var yt=y-d;t.moveTo(v,l),t.lineTo(v+Ri(yt,F),l),yt-=F,yt>0&&t.lineTo(v+F,l+Ri(yt,Fr)),yt-=Fr,yt>0&&t.lineTo(v+Si(F-yt,0),l+Fr),yt-=F,yt>0&&t.lineTo(v,l+Si(Fr-yt,0));break t}d+=R}t.rect(v,l,F,Fr);break;case B.Z:if(c){var R=_[p++];if(d+R>y){var S=(y-d)/R;t.lineTo(h*(1-S)+s*S,u*(1-S)+f*S);break t}d+=R}t.closePath(),h=s,u=f}}},e.prototype.clone=function(){var t=new e,r=this.data;return t.data=r.slice?r.slice():Array.prototype.slice.call(r),t._len=this._len,t},e.CMD=B,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();const vr=ph;function _r(e,t,r,i,n,a,o){if(n===0)return!1;var s=n,f=0,h=e;if(o>t+s&&o>i+s||oe+s&&a>r+s||at+v&&u>i+v&&u>a+v&&u>s+v||ue+v&&h>r+v&&h>n+v&&h>o+v||ht+h&&f>i+h&&f>a+h||fe+h&&s>r+h&&s>n+h||sr||u+hn&&(n+=Wr);var l=Math.atan2(f,s);return l<0&&(l+=Wr),l>=i&&l<=n||l+Wr>=i&&l+Wr<=n}function tr(e,t,r,i,n,a){if(a>t&&a>i||an?s:0}var Et=vr.CMD,rr=Math.PI*2,mh=1e-4;function wh(e,t){return Math.abs(e-t)t&&h>i&&h>a&&h>s||h1&&Th(),c=U(t,i,a,s,lt[0]),l>1&&(_=U(t,i,a,s,lt[1]))),l===2?dt&&s>i&&s>a||s=0&&h<=1){for(var u=0,v=Q(t,i,a,h),l=0;lr||s<-r)return 0;var f=Math.sqrt(r*r-s*s);J[0]=-f,J[1]=f;var h=Math.abs(i-n);if(h<1e-4)return 0;if(h>=rr-1e-4){i=0,n=rr;var u=a?1:-1;return o>=J[0]+e&&o<=J[1]+e?u:0}if(i>n){var v=i;i=n,n=v}i<0&&(i+=rr,n+=rr);for(var l=0,c=0;c<2;c++){var _=J[c];if(_+e>o){var g=Math.atan2(s,_),u=a?1:-1;g<0&&(g=rr+g),(g>=i&&g<=n||g+rr>=i&&g+rr<=n)&&(g>Math.PI/2&&g1&&(r||(s+=tr(f,h,u,v,i,n))),d&&(f=a[_],h=a[_+1],u=f,v=h),g){case Et.M:u=a[_++],v=a[_++],f=u,h=v;break;case Et.L:if(r){if(_r(f,h,a[_],a[_+1],t,i,n))return!0}else s+=tr(f,h,a[_],a[_+1],i,n)||0;f=a[_++],h=a[_++];break;case Et.C:if(r){if(_h(f,h,a[_++],a[_++],a[_++],a[_++],a[_],a[_+1],t,i,n))return!0}else s+=bh(f,h,a[_++],a[_++],a[_++],a[_++],a[_],a[_+1],i,n)||0;f=a[_++],h=a[_++];break;case Et.Q:if(r){if(gh(f,h,a[_++],a[_++],a[_],a[_+1],t,i,n))return!0}else s+=Ch(f,h,a[_++],a[_++],a[_],a[_+1],i,n)||0;f=a[_++],h=a[_++];break;case Et.A:var p=a[_++],y=a[_++],m=a[_++],T=a[_++],b=a[_++],w=a[_++];_+=1;var M=!!(1-a[_++]);l=Math.cos(b)*m+p,c=Math.sin(b)*T+y,d?(u=l,v=c):s+=tr(f,h,l,c,i,n);var C=(i-p)*T/m+p;if(r){if(yh(p,y,T,b,b+w,M,t,C,n))return!0}else s+=Mh(p,y,T,b,b+w,M,C,n);f=Math.cos(b+w)*m+p,h=Math.sin(b+w)*T+y;break;case Et.R:u=f=a[_++],v=h=a[_++];var L=a[_++],P=a[_++];if(l=u+L,c=v+P,r){if(_r(u,v,l,v,t,i,n)||_r(l,v,l,c,t,i,n)||_r(l,c,u,c,t,i,n)||_r(u,c,u,v,t,i,n))return!0}else s+=tr(l,v,l,c,i,n),s+=tr(u,c,u,v,i,n);break;case Et.Z:if(r){if(_r(f,h,u,v,t,i,n))return!0}else s+=tr(f,h,u,v,i,n);f=u,h=v;break}}return!r&&!wh(h,v)&&(s+=tr(f,h,u,v,i,n)||0),s!==0}function Lh(e,t,r){return To(e,0,!1,t,r)}function Ph(e,t,r,i){return To(e,t,!0,r,i)}var bo=gt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},hr),Rh={style:gt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Je.style)},Ai=ee.concat(["invisible","culling","z","z2","zlevel","parent"]),Sh=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.update=function(){var r=this;e.prototype.update.call(this);var i=this.style;if(i.decal){var n=this._decalEl=this._decalEl||new t;n.buildPath===t.prototype.buildPath&&(n.buildPath=function(f){r.buildPath(f,r.shape)}),n.silent=!0;var a=n.style;for(var o in i)a[o]!==i[o]&&(a[o]=i[o]);a.fill=i.fill?i.decal:null,a.decal=null,a.shadowColor=null,i.strokeFirst&&(a.stroke=null);for(var s=0;s.5?Ji:i>.2?zf:ji}else if(r)return ji}return Ji},t.prototype.getInsideTextStroke=function(r){var i=this.style.fill;if(Bi(i)){var n=this.__zr,a=!!(n&&n.isDarkMode()),o=ke(r,0)0))},t.prototype.hasFill=function(){var r=this.style,i=r.fill;return i!=null&&i!=="none"},t.prototype.getBoundingRect=function(){var r=this._rect,i=this.style,n=!r;if(n){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&wr)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||n){s.copy(r);var f=i.strokeNoScale?this.getLineScale():1,h=i.lineWidth;if(!this.hasFill()){var u=this.strokeContainThreshold;h=Math.max(h,u==null?4:u)}f>1e-10&&(s.width+=h/f,s.height+=h/f,s.x-=h/f/2,s.y-=h/f/2)}return s}return r},t.prototype.contain=function(r,i){var n=this.transformCoordToLocal(r,i),a=this.getBoundingRect(),o=this.style;if(r=n[0],i=n[1],a.contain(r,i)){var s=this.path;if(this.hasStroke()){var f=o.lineWidth,h=o.strokeNoScale?this.getLineScale():1;if(h>1e-10&&(this.hasFill()||(f=Math.max(f,this.strokeContainThreshold)),Ph(s,f/h,r,i)))return!0}if(this.hasFill())return Lh(s,r,i)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=wr,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(r){return this.animate("shape",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(r,i){r==="shape"?this.setShape(i):e.prototype.attrKV.call(this,r,i)},t.prototype.setShape=function(r,i){var n=this.shape;return n||(n=this.shape={}),typeof r=="string"?n[r]=i:$(n,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&wr)},t.prototype.createStyle=function(r){return Qe(bo,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var i=this._normalState;r.shape&&!i.shape&&(i.shape=$({},this.shape))},t.prototype._applyStateObj=function(r,i,n,a,o,s){e.prototype._applyStateObj.call(this,r,i,n,a,o,s);var f=!(i&&a),h;if(i&&i.shape?o?a?h=i.shape:(h=$({},n.shape),$(h,i.shape)):(h=$({},a?this.shape:n.shape),$(h,i.shape)):f&&(h=n.shape),h)if(o){this.shape=$({},this.shape);for(var u={},v=ht(h),l=0;l0},t.prototype.hasFill=function(){var r=this.style,i=r.fill;return i!=null&&i!=="none"},t.prototype.createStyle=function(r){return Qe(Dh,r)},t.prototype.setBoundingRect=function(r){this._rect=r},t.prototype.getBoundingRect=function(){var r=this.style;if(!this._rect){var i=r.text;i!=null?i+="":i="";var n=$f(i,r.font,r.textAlign,r.textBaseline);if(n.x+=r.x||0,n.y+=r.y||0,this.hasStroke()){var a=r.lineWidth;n.x-=a/2,n.y-=a/2,n.width+=a,n.height+=a}this._rect=n}return this._rect},t.initDefaultProps=function(){var r=t.prototype;r.dirtyRectTolerance=10}(),t}(ae);Co.prototype.type="tspan";const nn=Co;var xh=gt({x:0,y:0},hr),Ah={style:gt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Je.style)};function Eh(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var Mo=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return Qe(xh,r)},t.prototype._getSize=function(r){var i=this.style,n=i[r];if(n!=null)return n;var a=Eh(i.image)?i.image:this.__image;if(!a)return 0;var o=r==="width"?"height":"width",s=i[o];return s==null?a[r]:a[r]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return Ah},t.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new N(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},t}(ae);Mo.prototype.type="image";const Lo=Mo;function Ih(e,t){var r=t.x,i=t.y,n=t.width,a=t.height,o=t.r,s,f,h,u;n<0&&(r=r+n,n=-n),a<0&&(i=i+a,a=-a),typeof o=="number"?s=f=h=u=o:o instanceof Array?o.length===1?s=f=h=u=o[0]:o.length===2?(s=h=o[0],f=u=o[1]):o.length===3?(s=o[0],f=u=o[1],h=o[2]):(s=o[0],f=o[1],h=o[2],u=o[3]):s=f=h=u=0;var v;s+f>n&&(v=s+f,s*=n/v,f*=n/v),h+u>n&&(v=h+u,h*=n/v,u*=n/v),f+h>a&&(v=f+h,f*=a/v,h*=a/v),s+u>a&&(v=s+u,s*=a/v,u*=a/v),e.moveTo(r+s,i),e.lineTo(r+n-f,i),f!==0&&e.arc(r+n-f,i+f,f,-Math.PI/2,0),e.lineTo(r+n,i+a-h),h!==0&&e.arc(r+n-h,i+a-h,h,0,Math.PI/2),e.lineTo(r+u,i+a),u!==0&&e.arc(r+u,i+a-u,u,Math.PI/2,Math.PI),e.lineTo(r,i+s),s!==0&&e.arc(r+s,i+s,s,Math.PI,Math.PI*1.5)}var Lr=Math.round;function Oh(e,t,r){if(!!t){var i=t.x1,n=t.x2,a=t.y1,o=t.y2;e.x1=i,e.x2=n,e.y1=a,e.y2=o;var s=r&&r.lineWidth;return s&&(Lr(i*2)===Lr(n*2)&&(e.x1=e.x2=Pr(i,s,!0)),Lr(a*2)===Lr(o*2)&&(e.y1=e.y2=Pr(a,s,!0))),e}}function Fh(e,t,r){if(!!t){var i=t.x,n=t.y,a=t.width,o=t.height;e.x=i,e.y=n,e.width=a,e.height=o;var s=r&&r.lineWidth;return s&&(e.x=Pr(i,s,!0),e.y=Pr(n,s,!0),e.width=Math.max(Pr(i+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(Pr(n+o,s,!1)-e.y,o===0?0:1)),e}}function Pr(e,t,r){if(!t)return e;var i=Lr(e*2);return(i+Lr(t))%2===0?i/2:(i+(r?1:-1))/2}var Bh=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),Hh={},Po=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Bh},t.prototype.buildPath=function(r,i){var n,a,o,s;if(this.subPixelOptimize){var f=Fh(Hh,i,this.style);n=f.x,a=f.y,o=f.width,s=f.height,f.r=i.r,i=f}else n=i.x,a=i.y,o=i.width,s=i.height;i.r?Ih(r,i):r.rect(n,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(G);Po.prototype.type="rect";const Ro=Po;var oa={fill:"#000"},sa=2,zh={style:gt({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Je.style)},So=function(e){H(t,e);function t(r){var i=e.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=oa,i.attr(r),i}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r0,S=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),A=o.calculatedLineHeight,x=0;x=0&&(x=w[A],x.align==="right");)this._placeToken(x,r,C,p,S,"right",m),L-=x.width,S-=x.width,A--;for(R+=(a-(R-d)-(y-S)-L)/2;P<=A;)x=w[P],this._placeToken(x,r,C,p,R+x.width/2,"center",m),R+=x.width,P++;p+=C}},t.prototype._placeToken=function(r,i,n,a,o,s,f){var h=i.rich[r.styleName]||{};h.text=r.text;var u=r.verticalAlign,v=a+n/2;u==="top"?v=a+r.height/2:u==="bottom"&&(v=a+n-r.height/2);var l=!r.isLineHolder&&Ei(h);l&&this._renderBackground(h,i,s==="right"?o-r.width:s==="center"?o-r.width/2:o,v-r.height/2,r.width,r.height);var c=!!h.backgroundColor,_=r.textPadding;_&&(o=ca(o,s,_),v-=r.height/2-_[0]-r.innerHeight/2);var g=this._getOrCreateChild(nn),d=g.createStyle();g.useStyle(d);var p=this._defaultStyle,y=!1,m=0,T=la("fill"in h?h.fill:"fill"in i?i.fill:(y=!0,p.fill)),b=va("stroke"in h?h.stroke:"stroke"in i?i.stroke:!c&&!f&&(!p.autoStroke||y)?(m=sa,p.stroke):null),w=h.textShadowBlur>0||i.textShadowBlur>0;d.text=r.text,d.x=o,d.y=v,w&&(d.shadowBlur=h.textShadowBlur||i.textShadowBlur||0,d.shadowColor=h.textShadowColor||i.textShadowColor||"transparent",d.shadowOffsetX=h.textShadowOffsetX||i.textShadowOffsetX||0,d.shadowOffsetY=h.textShadowOffsetY||i.textShadowOffsetY||0),d.textAlign=s,d.textBaseline="middle",d.font=r.font||ur,d.opacity=De(h.opacity,i.opacity,1),ha(d,h),b&&(d.lineWidth=De(h.lineWidth,i.lineWidth,m),d.lineDash=st(h.lineDash,i.lineDash),d.lineDashOffset=i.lineDashOffset||0,d.stroke=b),T&&(d.fill=T);var M=r.contentWidth,C=r.contentHeight;g.setBoundingRect(new N(Ur(d.x,M,d.textAlign),Tr(d.y,C,d.textBaseline),M,C))},t.prototype._renderBackground=function(r,i,n,a,o,s){var f=r.backgroundColor,h=r.borderWidth,u=r.borderColor,v=f&&f.image,l=f&&!v,c=r.borderRadius,_=this,g,d;if(l||r.lineHeight||h&&u){g=this._getOrCreateChild(Ro),g.useStyle(g.createStyle()),g.style.fill=null;var p=g.shape;p.x=n,p.y=a,p.width=o,p.height=s,p.r=c,g.dirtyShape()}if(l){var y=g.style;y.fill=f||null,y.fillOpacity=st(r.fillOpacity,1)}else if(v){d=this._getOrCreateChild(Lo),d.onload=function(){_.dirtyStyle()};var m=d.style;m.image=f.image,m.x=n,m.y=a,m.width=o,m.height=s}if(h&&u){var y=g.style;y.lineWidth=h,y.stroke=u,y.strokeOpacity=st(r.strokeOpacity,1),y.lineDash=r.borderDash,y.lineDashOffset=r.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var T=(g||d).style;T.shadowBlur=r.shadowBlur||0,T.shadowColor=r.shadowColor||"transparent",T.shadowOffsetX=r.shadowOffsetX||0,T.shadowOffsetY=r.shadowOffsetY||0,T.opacity=De(r.opacity,i.opacity,1)},t.makeFont=function(r){var i="";return Wh(r)&&(i=[r.fontStyle,r.fontWeight,Nh(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),i&&Xr(i)||r.textFont||r.font},t}(ae),kh={left:!0,right:1,center:1},$h={top:1,bottom:1,middle:1},fa=["fontStyle","fontWeight","fontSize","fontFamily"];function Nh(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?ln+"px":e+"px"}function ha(e,t){for(var r=0;r1&&(o*=Ii(_),s*=Ii(_));var g=(n===a?-1:1)*Ii((o*o*(s*s)-o*o*(c*c)-s*s*(l*l))/(o*o*(c*c)+s*s*(l*l)))||0,d=g*o*c/s,p=g*-s*l/o,y=(e+r)/2+Te(v)*d-we(v)*p,m=(t+i)/2+we(v)*d+Te(v)*p,T=ga([1,0],[(l-d)/o,(c-p)/s]),b=[(l-d)/o,(c-p)/s],w=[(-1*l-d)/o,(-1*c-p)/s],M=ga(b,w);if(an(b,w)<=-1&&(M=Yr),an(b,w)>=1&&(M=0),M<0){var C=Math.round(M/Yr*1e6)/1e6;M=Yr*2+C%2*Yr}u.addData(h,y,m,o,s,T,M,v,a)}var qh=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,Zh=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Uh(e){var t=new vr;if(!e)return t;var r=0,i=0,n=r,a=i,o,s=vr.CMD,f=e.match(qh);if(!f)return t;for(var h=0;hx*x+E*E&&(C=P,L=R),{cx:C,cy:L,x0:-u,y0:-v,x1:C*(n/b-1),y1:L*(n/b-1)}}function jh(e){var t;if(re(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 tu(e,t){var r,i=Vr(t.r,0),n=Vr(t.r0||0,0),a=i>0,o=n>0;if(!(!a&&!o)){if(a||(i=n,n=0),n>i){var s=i;i=n,n=s}var f=t.startAngle,h=t.endAngle;if(!(isNaN(f)||isNaN(h))){var u=t.cx,v=t.cy,l=!!t.clockwise,c=ma(h-f),_=c>Oi&&c%Oi;if(_>dt&&(c=_),!(i>dt))e.moveTo(u,v);else if(c>Oi-dt)e.moveTo(u+i*yr(f),v+i*er(f)),e.arc(u,v,i,f,h,!l),n>dt&&(e.moveTo(u+n*yr(h),v+n*er(h)),e.arc(u,v,n,h,f,l));else{var g=void 0,d=void 0,p=void 0,y=void 0,m=void 0,T=void 0,b=void 0,w=void 0,M=void 0,C=void 0,L=void 0,P=void 0,R=void 0,S=void 0,A=void 0,x=void 0,E=i*yr(f),D=i*er(f),z=n*yr(h),k=n*er(h),W=c>dt;if(W){var X=t.cornerRadius;X&&(r=jh(X),g=r[0],d=r[1],p=r[2],y=r[3]);var Z=ma(i-n)/2;if(m=bt(Z,p),T=bt(Z,y),b=bt(Z,g),w=bt(Z,d),L=M=Vr(m,T),P=C=Vr(b,w),(M>dt||C>dt)&&(R=i*yr(h),S=i*er(h),A=n*yr(f),x=n*er(f),cdt){var j=bt(p,L),q=bt(y,L),I=be(A,x,E,D,i,j,l),F=be(R,S,z,k,i,q,l);e.moveTo(u+I.cx+I.x0,v+I.cy+I.y0),L0&&e.arc(u+I.cx,v+I.cy,j,V(I.y0,I.x0),V(I.y1,I.x1),!l),e.arc(u,v,i,V(I.cy+I.y1,I.cx+I.x1),V(F.cy+F.y1,F.cx+F.x1),!l),q>0&&e.arc(u+F.cx,v+F.cy,q,V(F.y1,F.x1),V(F.y0,F.x0),!l))}else e.moveTo(u+E,v+D),e.arc(u,v,i,f,h,!l);if(!(n>dt)||!W)e.lineTo(u+z,v+k);else if(P>dt){var j=bt(g,P),q=bt(d,P),I=be(z,k,R,S,n,-q,l),F=be(E,D,A,x,n,-j,l);e.lineTo(u+I.cx+I.x0,v+I.cy+I.y0),P0&&e.arc(u+I.cx,v+I.cy,q,V(I.y0,I.x0),V(I.y1,I.x1),!l),e.arc(u,v,n,V(I.cy+I.y1,I.cx+I.x1),V(F.cy+F.y1,F.cx+F.x1),l),j>0&&e.arc(u+F.cx,v+F.cy,j,V(F.y1,F.x1),V(F.y0,F.x0),!l))}else e.lineTo(u+z,v+k),e.arc(u,v,n,h,f,l)}e.closePath()}}}var ru=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}(),Ho=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new ru},t.prototype.buildPath=function(r,i){tu(r,i)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(G);Ho.prototype.type="sector";const wa=Ho;var eu=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),zo=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new eu},t.prototype.buildPath=function(r,i){var n=i.cx,a=i.cy,o=Math.PI*2;r.moveTo(n+i.r,a),r.arc(n,a,i.r,0,o,!1),r.moveTo(n+i.r0,a),r.arc(n,a,i.r0,0,o,!0)},t}(G);zo.prototype.type="ring";const Mv=zo;function iu(e,t,r,i){var n=[],a=[],o=[],s=[],f,h,u,v;if(i){u=[1/0,1/0],v=[-1/0,-1/0];for(var l=0,c=e.length;l=2){if(i){var a=iu(n,i,r,t.smoothConstraint);e.moveTo(n[0][0],n[0][1]);for(var o=n.length,s=0;s<(r?o:o-1);s++){var f=a[s*2],h=a[s*2+1],u=n[(s+1)%o];e.bezierCurveTo(f[0],f[1],h[0],h[1],u[0],u[1])}}else{e.moveTo(n[0][0],n[0][1]);for(var s=1,v=n.length;snr[1]){if(s=!1,a)return s;var u=Math.abs(nr[0]-ir[1]),v=Math.abs(ir[0]-nr[1]);Math.min(u,v)>n.len()&&(u=0&&sr(f)?f:.5;var h=e.createRadialGradient(o,s,0,o,s,f);return h}function on(e,t,r){for(var i=t.type==="radial"?bu(e,t,r):Tu(e,t,r),n=t.colorStops,a=0;a0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:Se(e)?[e]:re(e)?e:null}function qo(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&Mu(t.lineDash,t.lineWidth),i=t.lineDashOffset;if(r){var n=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;n&&n!==1&&(r=xt(r,function(a){return a/n}),i/=n)}return[r,i]}var Lu=new vr(!0);function Ne(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function ba(e){return typeof e=="string"&&e!=="none"}function We(e){var t=e.fill;return t!=null&&t!=="none"}function Ca(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=r}else e.fill()}function Ma(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=r}else e.stroke()}function sn(e,t,r){var i=_o(t.image,t.__image,r);if(Ke(i)){var n=e.createPattern(i,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&n&&n.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*ms),a.scaleSelf(t.scaleX||1,t.scaleY||1),n.setTransform(a)}return n}}function Pu(e,t,r,i){var n,a=Ne(r),o=We(r),s=r.strokePercent,f=s<1,h=!t.path;(!t.silent||f)&&h&&t.createPathProxy();var u=t.path||Lu,v=t.__dirty;if(!i){var l=r.fill,c=r.stroke,_=o&&!!l.colorStops,g=a&&!!c.colorStops,d=o&&!!l.image,p=a&&!!c.image,y=void 0,m=void 0,T=void 0,b=void 0,w=void 0;(_||g)&&(w=t.getBoundingRect()),_&&(y=v?on(e,l,w):t.__canvasFillGradient,t.__canvasFillGradient=y),g&&(m=v?on(e,c,w):t.__canvasStrokeGradient,t.__canvasStrokeGradient=m),d&&(T=v||!t.__canvasFillPattern?sn(e,l,t):t.__canvasFillPattern,t.__canvasFillPattern=T),p&&(b=v||!t.__canvasStrokePattern?sn(e,c,t):t.__canvasStrokePattern,t.__canvasStrokePattern=T),_?e.fillStyle=y:d&&(T?e.fillStyle=T:o=!1),g?e.strokeStyle=m:p&&(b?e.strokeStyle=b:a=!1)}var M=t.getGlobalScale();u.setScale(M[0],M[1],t.segmentIgnoreThreshold);var C,L;e.setLineDash&&r.lineDash&&(n=qo(t),C=n[0],L=n[1]);var P=!0;(h||v&wr)&&(u.setDPR(e.dpr),f?u.setContext(null):(u.setContext(e),P=!1),u.reset(),t.buildPath(u,t.shape,i),u.toStatic(),t.pathUpdated()),P&&u.rebuildPath(e,f?s:1),C&&(e.setLineDash(C),e.lineDashOffset=L),i||(r.strokeFirst?(a&&Ma(e,r),o&&Ca(e,r)):(o&&Ca(e,r),a&&Ma(e,r))),C&&e.setLineDash([])}function Ru(e,t,r){var i=t.__image=_o(r.image,t.__image,t,t.onload);if(!(!i||!Ke(i))){var n=r.x||0,a=r.y||0,o=t.getWidth(),s=t.getHeight(),f=i.width/i.height;if(o==null&&s!=null?o=s*f:s==null&&o!=null?s=o/f:o==null&&s==null&&(o=i.width,s=i.height),r.sWidth&&r.sHeight){var h=r.sx||0,u=r.sy||0;e.drawImage(i,h,u,r.sWidth,r.sHeight,n,a,o,s)}else if(r.sx&&r.sy){var h=r.sx,u=r.sy,v=o-h,l=s-u;e.drawImage(i,h,u,v,l,n,a,o,s)}else e.drawImage(i,n,a,o,s)}}function Su(e,t,r){var i,n=r.text;if(n!=null&&(n+=""),n){e.font=r.font||ur,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var a=void 0,o=void 0;e.setLineDash&&r.lineDash&&(i=qo(t),a=i[0],o=i[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),r.strokeFirst?(Ne(r)&&e.strokeText(n,r.x,r.y),We(r)&&e.fillText(n,r.x,r.y)):(We(r)&&e.fillText(n,r.x,r.y),Ne(r)&&e.strokeText(n,r.x,r.y)),a&&e.setLineDash([])}}var La=["shadowBlur","shadowOffsetX","shadowOffsetY"],Pa=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Zo(e,t,r,i,n){var a=!1;if(!i&&(r=r||{},t===r))return!1;if(i||t.opacity!==r.opacity){it(e,n),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?hr.opacity:o}(i||t.blend!==r.blend)&&(a||(it(e,n),a=!0),e.globalCompositeOperation=t.blend||hr.blend);for(var s=0;s2&&i.push(n),n=[A,x]}function u(A,x,E,D){Rr(A,E)&&Rr(x,D)||n.push(A,x,E,D,E,D)}function v(A,x,E,D,z,k){var W=Math.abs(x-A),X=Math.tan(W/4)*4/3,Z=xC:R2&&i.push(n),i}function hn(e,t,r,i,n,a,o,s,f,h){if(Rr(e,r)&&Rr(t,i)&&Rr(n,o)&&Rr(a,s)){f.push(o,s);return}var u=2/h,v=u*u,l=o-e,c=s-t,_=Math.sqrt(l*l+c*c);l/=_,c/=_;var g=r-e,d=i-t,p=n-o,y=a-s,m=g*g+d*d,T=p*p+y*y;if(m=0&&C=0){f.push(o,s);return}var L=[],P=[];kt(e,r,n,o,.5,L),kt(t,i,a,s,.5,P),hn(L[0],P[0],L[1],P[1],L[2],P[2],L[3],P[3],f,h),hn(L[4],P[4],L[5],P[5],L[6],P[6],L[7],P[7],f,h)}function Fu(e,t){var r=fn(e),i=[];t=t||1;for(var n=0;n0)for(var h=0;hMath.abs(h),v=Vo([f,h],u?0:1,t),l=(u?s:h)/v.length,c=0;cn,o=Vo([i,n],a?0:1,t),s=a?"width":"height",f=a?"height":"width",h=a?"x":"y",u=a?"y":"x",v=e[s]/o.length,l=0;l1?null:new O(g*f+e,g*h+t)}function zu(e,t,r){var i=new O;O.sub(i,r,t),i.normalize();var n=new O;O.sub(n,e,t);var a=n.dot(i);return a}function mr(e,t){var r=e[e.length-1];r&&r[0]===t[0]&&r[1]===t[1]||e.push(t)}function ku(e,t,r){for(var i=e.length,n=[],a=0;ao?(h.x=u.x=s+a/2,h.y=f,u.y=f+o):(h.y=u.y=f+o/2,h.x=s,u.x=s+a),ku(t,h,u)}function Ye(e,t,r,i){if(r===1)i.push(t);else{var n=Math.floor(r/2),a=e(t);Ye(e,a[0],n,i),Ye(e,a[1],r-n,i)}return i}function $u(e,t){for(var r=[],i=0;i0)for(var b=i/r,w=-i/2;w<=i/2;w+=b){for(var M=Math.sin(w),C=Math.cos(w),L=0,m=0;m0;h/=2){var u=0,v=0;(e&h)>0&&(u=1),(t&h)>0&&(v=1),s+=h*h*(3*u^v),v===0&&(u===1&&(e=h-1-e,t=h-1-t),f=e,e=t,t=f)}return s}function Xe(e){var t=1/0,r=1/0,i=-1/0,n=-1/0,a=xt(e,function(s){var f=s.getBoundingRect(),h=s.getComputedTransform(),u=f.x+f.width/2+(h?h[4]:0),v=f.y+f.height/2+(h?h[5]:0);return t=Math.min(u,t),r=Math.min(v,r),i=Math.max(u,i),n=Math.max(v,n),[u,v]}),o=xt(a,function(s,f){return{cp:s,z:Vu(s[0],s[1],t,r,i,n),path:e[f]}});return o.sort(function(s,f){return s.z-f.z}).map(function(s){return s.path})}function jo(e){return Yu(e.path,e.count)}function vn(){return{fromIndividuals:[],toIndividuals:[],count:0}}function Fv(e,t,r){var i=[];function n(b){for(var w=0;w=s)}}for(var v=this.__startIndex;v15)break}}x.prevElClipPaths&&p.restore()};if(y)if(y.length===0)C=d.__endIndex;else for(var P=c.dpr,R=0;R0&&t>n[0]){for(f=0;ft);f++);s=i[n[f]]}if(n.splice(f+1,0,t),i[t]=r,!r.virtual)if(s){var h=s.dom;h.nextSibling?o.insertBefore(r.dom,h.nextSibling):o.appendChild(r.dom)}else o.firstChild?o.insertBefore(r.dom,o.firstChild):o.appendChild(r.dom);r.__painter=this}},e.prototype.eachLayer=function(t,r){for(var i=this._zlevelList,n=0;n0?Re:0),this._needsManuallyCompositing),u.__builtin__||pn("ZLevel "+h+" has been used by unkown layer "+u.id),u!==a&&(u.__used=!0,u.__startIndex!==f&&(u.__dirty=!0),u.__startIndex=f,u.incremental?u.__drawIndex=-1:u.__drawIndex=f,r(f),a=u),n.__dirty&ot&&!n.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=f))}r(f),this.eachBuiltinLayer(function(v,l){!v.__used&&v.getElementCount()>0&&(v.__dirty=!0,v.__startIndex=v.__endIndex=v.__drawIndex=0),v.__dirty&&v.__drawIndex<0&&(v.__drawIndex=v.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(t){t.clear()},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t,ft(this._layers,function(r){r.setUnpainted()})},e.prototype.configLayer=function(t,r){if(r){var i=this._layerConfig;i[t]?Gr(i[t],r,!0):i[t]=r;for(var n=0;nr:n+u+c>r){u?(s||f)&&(_?(s||(s=f,f="",h=0,u=h),a.push(s),o.push(u-h),f+=l,h+=c,s="",u=h):(f&&(s+=f,f="",h=0),a.push(s),o.push(u),s=l,u=c)):_?(a.push(f),o.push(h),f=l,h=c):(a.push(l),o.push(c));continue}u+=c,_?(f+=l,h+=c):(f&&(s+=f,f="",h=0),s+=l)}return!a.length&&!s&&(s=e,f="",h=0),f&&(s+=f),s&&(a.push(s),o.push(u)),a.length===1&&(u+=n),{accumWidth:u,lines:a,linesWidths:o}}var rn="__zr_style_"+Math.round(Math.random()*10),hr={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Je={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};hr[rn]=!0;var ra=["z","z2","invisible"],fh=["invisible"],hh=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var i=ht(r),n=0;n1e-4){s[0]=e-r,s[1]=t-i,f[0]=e+r,f[1]=t+i;return}if(_e[0]=Pi(n)*r+e,_e[1]=Li(n)*i+t,ge[0]=Pi(a)*r+e,ge[1]=Li(a)*i+t,h(s,_e,ge),u(f,_e,ge),n=n%Vt,n<0&&(n=n+Vt),a=a%Vt,a<0&&(a=a+Vt),n>a&&!o?a+=Vt:nn&&(ye[0]=Pi(c)*r+e,ye[1]=Li(c)*i+t,h(s,ye,s),u(f,ye,f))}var B={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Qt=[],Kt=[],mt=[],At=[],wt=[],Tt=[],Ri=Math.min,Si=Math.max,Jt=Math.cos,jt=Math.sin,St=Math.abs,en=Math.PI,It=en*2,Di=typeof Float32Array<"u",Nr=[];function xi(e){var t=Math.round(e/en*1e8)/1e8;return t%2*en}function dh(e,t){var r=xi(e[0]);r<0&&(r+=It);var i=r-e[0],n=e[1];n+=i,!t&&n-r>=It?n=r+It:t&&r-n>=It?n=r-It:!t&&r>n?n=r+(It-xi(r-n)):t&&r0&&(this._ux=St(i/$e/t)||0,this._uy=St(i/$e/r)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(t,r){return this._drawPendingPt(),this.addData(B.M,t,r),this._ctx&&this._ctx.moveTo(t,r),this._x0=t,this._y0=r,this._xi=t,this._yi=r,this},e.prototype.lineTo=function(t,r){var i=St(t-this._xi),n=St(r-this._yi),a=i>this._ux||n>this._uy;if(this.addData(B.L,t,r),this._ctx&&a&&this._ctx.lineTo(t,r),a)this._xi=t,this._yi=r,this._pendingPtDist=0;else{var o=i*i+n*n;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=r,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(t,r,i,n,a,o){return this._drawPendingPt(),this.addData(B.C,t,r,i,n,a,o),this._ctx&&this._ctx.bezierCurveTo(t,r,i,n,a,o),this._xi=a,this._yi=o,this},e.prototype.quadraticCurveTo=function(t,r,i,n){return this._drawPendingPt(),this.addData(B.Q,t,r,i,n),this._ctx&&this._ctx.quadraticCurveTo(t,r,i,n),this._xi=i,this._yi=n,this},e.prototype.arc=function(t,r,i,n,a,o){this._drawPendingPt(),Nr[0]=n,Nr[1]=a,dh(Nr,o),n=Nr[0],a=Nr[1];var s=a-n;return this.addData(B.A,t,r,i,i,n,s,0,o?0:1),this._ctx&&this._ctx.arc(t,r,i,n,a,o),this._xi=Jt(a)*i+t,this._yi=jt(a)*i+r,this},e.prototype.arcTo=function(t,r,i,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,r,i,n,a),this},e.prototype.rect=function(t,r,i,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,r,i,n),this.addData(B.R,t,r,i,n),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(B.Z);var t=this._ctx,r=this._x0,i=this._y0;return t&&t.closePath(),this._xi=r,this._yi=i,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(t){var r=t.length;!(this.data&&this.data.length===r)&&Di&&(this.data=new Float32Array(r));for(var i=0;iu.length&&(this._expandData(),u=this.data);for(var v=0;v0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],r=0;r11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){mt[0]=mt[1]=wt[0]=wt[1]=Number.MAX_VALUE,At[0]=At[1]=Tt[0]=Tt[1]=-Number.MAX_VALUE;var t=this.data,r=0,i=0,n=0,a=0,o;for(o=0;oi||St(m)>n||l===r-1)&&(g=Math.sqrt(y*y+m*m),a=d,o=p);break}case B.C:{var T=t[l++],b=t[l++],d=t[l++],p=t[l++],w=t[l++],M=t[l++];g=vf(a,o,T,b,d,p,w,M,10),a=w,o=M;break}case B.Q:{var T=t[l++],b=t[l++],d=t[l++],p=t[l++];g=df(a,o,T,b,d,p,10),a=d,o=p;break}case B.A:var C=t[l++],L=t[l++],P=t[l++],R=t[l++],S=t[l++],A=t[l++],x=A+S;l+=1,t[l++],_&&(s=Jt(S)*P+C,f=jt(S)*R+L),g=Si(P,R)*Ri(It,Math.abs(A)),a=Jt(x)*P+C,o=jt(x)*R+L;break;case B.R:{s=a=t[l++],f=o=t[l++];var E=t[l++],D=t[l++];g=E*2+D*2;break}case B.Z:{var y=s-a,m=f-o;g=Math.sqrt(y*y+m*m),a=s,o=f;break}}g>=0&&(h[v++]=g,u+=g)}return this._pathLen=u,u},e.prototype.rebuildPath=function(t,r){var i=this.data,n=this._ux,a=this._uy,o=this._len,s,f,h,u,v,l,c=r<1,_,g,d=0,p=0,y,m=0,T,b;if(c&&(this._pathSegLen||this._calculateLength(),_=this._pathSegLen,g=this._pathLen,y=r*g,!y))return;t:for(var w=0;w0&&(t.lineTo(T,b),m=0),M){case B.M:s=h=i[w++],f=u=i[w++],t.moveTo(h,u);break;case B.L:{v=i[w++],l=i[w++];var L=St(v-h),P=St(l-u);if(L>n||P>a){if(c){var R=_[p++];if(d+R>y){var S=(y-d)/R;t.lineTo(h*(1-S)+v*S,u*(1-S)+l*S);break t}d+=R}t.lineTo(v,l),h=v,u=l,m=0}else{var A=L*L+P*P;A>m&&(T=v,b=l,m=A)}break}case B.C:{var x=i[w++],E=i[w++],D=i[w++],z=i[w++],k=i[w++],W=i[w++];if(c){var R=_[p++];if(d+R>y){var S=(y-d)/R;kt(h,x,D,k,S,Qt),kt(u,E,z,W,S,Kt),t.bezierCurveTo(Qt[1],Kt[1],Qt[2],Kt[2],Qt[3],Kt[3]);break t}d+=R}t.bezierCurveTo(x,E,D,z,k,W),h=k,u=W;break}case B.Q:{var x=i[w++],E=i[w++],D=i[w++],z=i[w++];if(c){var R=_[p++];if(d+R>y){var S=(y-d)/R;ze(h,x,D,S,Qt),ze(u,E,z,S,Kt),t.quadraticCurveTo(Qt[1],Kt[1],Qt[2],Kt[2]);break t}d+=R}t.quadraticCurveTo(x,E,D,z),h=D,u=z;break}case B.A:var X=i[w++],Z=i[w++],Y=i[w++],nt=i[w++],at=i[w++],Rt=i[w++],$t=i[w++],Nt=!i[w++],Wt=Y>nt?Y:nt,j=St(Y-nt)>.001,q=at+Rt,I=!1;if(c){var R=_[p++];d+R>y&&(q=at+Rt*(y-d)/R,I=!0),d+=R}if(j&&t.ellipse?t.ellipse(X,Z,Y,nt,$t,at,q,Nt):t.arc(X,Z,Wt,at,q,Nt),I)break t;C&&(s=Jt(at)*Y+X,f=jt(at)*nt+Z),h=Jt(q)*Y+X,u=jt(q)*nt+Z;break;case B.R:s=h=i[w],f=u=i[w+1],v=i[w++],l=i[w++];var F=i[w++],Fr=i[w++];if(c){var R=_[p++];if(d+R>y){var yt=y-d;t.moveTo(v,l),t.lineTo(v+Ri(yt,F),l),yt-=F,yt>0&&t.lineTo(v+F,l+Ri(yt,Fr)),yt-=Fr,yt>0&&t.lineTo(v+Si(F-yt,0),l+Fr),yt-=F,yt>0&&t.lineTo(v,l+Si(Fr-yt,0));break t}d+=R}t.rect(v,l,F,Fr);break;case B.Z:if(c){var R=_[p++];if(d+R>y){var S=(y-d)/R;t.lineTo(h*(1-S)+s*S,u*(1-S)+f*S);break t}d+=R}t.closePath(),h=s,u=f}}},e.prototype.clone=function(){var t=new e,r=this.data;return t.data=r.slice?r.slice():Array.prototype.slice.call(r),t._len=this._len,t},e.CMD=B,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();const vr=ph;function _r(e,t,r,i,n,a,o){if(n===0)return!1;var s=n,f=0,h=e;if(o>t+s&&o>i+s||oe+s&&a>r+s||at+v&&u>i+v&&u>a+v&&u>s+v||ue+v&&h>r+v&&h>n+v&&h>o+v||ht+h&&f>i+h&&f>a+h||fe+h&&s>r+h&&s>n+h||sr||u+hn&&(n+=Wr);var l=Math.atan2(f,s);return l<0&&(l+=Wr),l>=i&&l<=n||l+Wr>=i&&l+Wr<=n}function tr(e,t,r,i,n,a){if(a>t&&a>i||an?s:0}var Et=vr.CMD,rr=Math.PI*2,mh=1e-4;function wh(e,t){return Math.abs(e-t)t&&h>i&&h>a&&h>s||h1&&Th(),c=U(t,i,a,s,lt[0]),l>1&&(_=U(t,i,a,s,lt[1]))),l===2?dt&&s>i&&s>a||s=0&&h<=1){for(var u=0,v=Q(t,i,a,h),l=0;lr||s<-r)return 0;var f=Math.sqrt(r*r-s*s);J[0]=-f,J[1]=f;var h=Math.abs(i-n);if(h<1e-4)return 0;if(h>=rr-1e-4){i=0,n=rr;var u=a?1:-1;return o>=J[0]+e&&o<=J[1]+e?u:0}if(i>n){var v=i;i=n,n=v}i<0&&(i+=rr,n+=rr);for(var l=0,c=0;c<2;c++){var _=J[c];if(_+e>o){var g=Math.atan2(s,_),u=a?1:-1;g<0&&(g=rr+g),(g>=i&&g<=n||g+rr>=i&&g+rr<=n)&&(g>Math.PI/2&&g1&&(r||(s+=tr(f,h,u,v,i,n))),d&&(f=a[_],h=a[_+1],u=f,v=h),g){case Et.M:u=a[_++],v=a[_++],f=u,h=v;break;case Et.L:if(r){if(_r(f,h,a[_],a[_+1],t,i,n))return!0}else s+=tr(f,h,a[_],a[_+1],i,n)||0;f=a[_++],h=a[_++];break;case Et.C:if(r){if(_h(f,h,a[_++],a[_++],a[_++],a[_++],a[_],a[_+1],t,i,n))return!0}else s+=bh(f,h,a[_++],a[_++],a[_++],a[_++],a[_],a[_+1],i,n)||0;f=a[_++],h=a[_++];break;case Et.Q:if(r){if(gh(f,h,a[_++],a[_++],a[_],a[_+1],t,i,n))return!0}else s+=Ch(f,h,a[_++],a[_++],a[_],a[_+1],i,n)||0;f=a[_++],h=a[_++];break;case Et.A:var p=a[_++],y=a[_++],m=a[_++],T=a[_++],b=a[_++],w=a[_++];_+=1;var M=!!(1-a[_++]);l=Math.cos(b)*m+p,c=Math.sin(b)*T+y,d?(u=l,v=c):s+=tr(f,h,l,c,i,n);var C=(i-p)*T/m+p;if(r){if(yh(p,y,T,b,b+w,M,t,C,n))return!0}else s+=Mh(p,y,T,b,b+w,M,C,n);f=Math.cos(b+w)*m+p,h=Math.sin(b+w)*T+y;break;case Et.R:u=f=a[_++],v=h=a[_++];var L=a[_++],P=a[_++];if(l=u+L,c=v+P,r){if(_r(u,v,l,v,t,i,n)||_r(l,v,l,c,t,i,n)||_r(l,c,u,c,t,i,n)||_r(u,c,u,v,t,i,n))return!0}else s+=tr(l,v,l,c,i,n),s+=tr(u,c,u,v,i,n);break;case Et.Z:if(r){if(_r(f,h,u,v,t,i,n))return!0}else s+=tr(f,h,u,v,i,n);f=u,h=v;break}}return!r&&!wh(h,v)&&(s+=tr(f,h,u,v,i,n)||0),s!==0}function Lh(e,t,r){return To(e,0,!1,t,r)}function Ph(e,t,r,i){return To(e,t,!0,r,i)}var bo=gt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},hr),Rh={style:gt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Je.style)},Ai=ee.concat(["invisible","culling","z","z2","zlevel","parent"]),Sh=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.update=function(){var r=this;e.prototype.update.call(this);var i=this.style;if(i.decal){var n=this._decalEl=this._decalEl||new t;n.buildPath===t.prototype.buildPath&&(n.buildPath=function(f){r.buildPath(f,r.shape)}),n.silent=!0;var a=n.style;for(var o in i)a[o]!==i[o]&&(a[o]=i[o]);a.fill=i.fill?i.decal:null,a.decal=null,a.shadowColor=null,i.strokeFirst&&(a.stroke=null);for(var s=0;s.5?Ji:i>.2?zf:ji}else if(r)return ji}return Ji},t.prototype.getInsideTextStroke=function(r){var i=this.style.fill;if(Bi(i)){var n=this.__zr,a=!!(n&&n.isDarkMode()),o=ke(r,0)0))},t.prototype.hasFill=function(){var r=this.style,i=r.fill;return i!=null&&i!=="none"},t.prototype.getBoundingRect=function(){var r=this._rect,i=this.style,n=!r;if(n){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&wr)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||n){s.copy(r);var f=i.strokeNoScale?this.getLineScale():1,h=i.lineWidth;if(!this.hasFill()){var u=this.strokeContainThreshold;h=Math.max(h,u==null?4:u)}f>1e-10&&(s.width+=h/f,s.height+=h/f,s.x-=h/f/2,s.y-=h/f/2)}return s}return r},t.prototype.contain=function(r,i){var n=this.transformCoordToLocal(r,i),a=this.getBoundingRect(),o=this.style;if(r=n[0],i=n[1],a.contain(r,i)){var s=this.path;if(this.hasStroke()){var f=o.lineWidth,h=o.strokeNoScale?this.getLineScale():1;if(h>1e-10&&(this.hasFill()||(f=Math.max(f,this.strokeContainThreshold)),Ph(s,f/h,r,i)))return!0}if(this.hasFill())return Lh(s,r,i)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=wr,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(r){return this.animate("shape",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(r,i){r==="shape"?this.setShape(i):e.prototype.attrKV.call(this,r,i)},t.prototype.setShape=function(r,i){var n=this.shape;return n||(n=this.shape={}),typeof r=="string"?n[r]=i:$(n,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&wr)},t.prototype.createStyle=function(r){return Qe(bo,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var i=this._normalState;r.shape&&!i.shape&&(i.shape=$({},this.shape))},t.prototype._applyStateObj=function(r,i,n,a,o,s){e.prototype._applyStateObj.call(this,r,i,n,a,o,s);var f=!(i&&a),h;if(i&&i.shape?o?a?h=i.shape:(h=$({},n.shape),$(h,i.shape)):(h=$({},a?this.shape:n.shape),$(h,i.shape)):f&&(h=n.shape),h)if(o){this.shape=$({},this.shape);for(var u={},v=ht(h),l=0;l0},t.prototype.hasFill=function(){var r=this.style,i=r.fill;return i!=null&&i!=="none"},t.prototype.createStyle=function(r){return Qe(Dh,r)},t.prototype.setBoundingRect=function(r){this._rect=r},t.prototype.getBoundingRect=function(){var r=this.style;if(!this._rect){var i=r.text;i!=null?i+="":i="";var n=$f(i,r.font,r.textAlign,r.textBaseline);if(n.x+=r.x||0,n.y+=r.y||0,this.hasStroke()){var a=r.lineWidth;n.x-=a/2,n.y-=a/2,n.width+=a,n.height+=a}this._rect=n}return this._rect},t.initDefaultProps=function(){var r=t.prototype;r.dirtyRectTolerance=10}(),t}(ae);Co.prototype.type="tspan";const nn=Co;var xh=gt({x:0,y:0},hr),Ah={style:gt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Je.style)};function Eh(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var Mo=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return Qe(xh,r)},t.prototype._getSize=function(r){var i=this.style,n=i[r];if(n!=null)return n;var a=Eh(i.image)?i.image:this.__image;if(!a)return 0;var o=r==="width"?"height":"width",s=i[o];return s==null?a[r]:a[r]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return Ah},t.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new N(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},t}(ae);Mo.prototype.type="image";const Lo=Mo;function Ih(e,t){var r=t.x,i=t.y,n=t.width,a=t.height,o=t.r,s,f,h,u;n<0&&(r=r+n,n=-n),a<0&&(i=i+a,a=-a),typeof o=="number"?s=f=h=u=o:o instanceof Array?o.length===1?s=f=h=u=o[0]:o.length===2?(s=h=o[0],f=u=o[1]):o.length===3?(s=o[0],f=u=o[1],h=o[2]):(s=o[0],f=o[1],h=o[2],u=o[3]):s=f=h=u=0;var v;s+f>n&&(v=s+f,s*=n/v,f*=n/v),h+u>n&&(v=h+u,h*=n/v,u*=n/v),f+h>a&&(v=f+h,f*=a/v,h*=a/v),s+u>a&&(v=s+u,s*=a/v,u*=a/v),e.moveTo(r+s,i),e.lineTo(r+n-f,i),f!==0&&e.arc(r+n-f,i+f,f,-Math.PI/2,0),e.lineTo(r+n,i+a-h),h!==0&&e.arc(r+n-h,i+a-h,h,0,Math.PI/2),e.lineTo(r+u,i+a),u!==0&&e.arc(r+u,i+a-u,u,Math.PI/2,Math.PI),e.lineTo(r,i+s),s!==0&&e.arc(r+s,i+s,s,Math.PI,Math.PI*1.5)}var Lr=Math.round;function Oh(e,t,r){if(!!t){var i=t.x1,n=t.x2,a=t.y1,o=t.y2;e.x1=i,e.x2=n,e.y1=a,e.y2=o;var s=r&&r.lineWidth;return s&&(Lr(i*2)===Lr(n*2)&&(e.x1=e.x2=Pr(i,s,!0)),Lr(a*2)===Lr(o*2)&&(e.y1=e.y2=Pr(a,s,!0))),e}}function Fh(e,t,r){if(!!t){var i=t.x,n=t.y,a=t.width,o=t.height;e.x=i,e.y=n,e.width=a,e.height=o;var s=r&&r.lineWidth;return s&&(e.x=Pr(i,s,!0),e.y=Pr(n,s,!0),e.width=Math.max(Pr(i+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(Pr(n+o,s,!1)-e.y,o===0?0:1)),e}}function Pr(e,t,r){if(!t)return e;var i=Lr(e*2);return(i+Lr(t))%2===0?i/2:(i+(r?1:-1))/2}var Bh=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),Hh={},Po=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Bh},t.prototype.buildPath=function(r,i){var n,a,o,s;if(this.subPixelOptimize){var f=Fh(Hh,i,this.style);n=f.x,a=f.y,o=f.width,s=f.height,f.r=i.r,i=f}else n=i.x,a=i.y,o=i.width,s=i.height;i.r?Ih(r,i):r.rect(n,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(G);Po.prototype.type="rect";const Ro=Po;var oa={fill:"#000"},sa=2,zh={style:gt({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Je.style)},So=function(e){H(t,e);function t(r){var i=e.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=oa,i.attr(r),i}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r0,S=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),A=o.calculatedLineHeight,x=0;x=0&&(x=w[A],x.align==="right");)this._placeToken(x,r,C,p,S,"right",m),L-=x.width,S-=x.width,A--;for(R+=(a-(R-d)-(y-S)-L)/2;P<=A;)x=w[P],this._placeToken(x,r,C,p,R+x.width/2,"center",m),R+=x.width,P++;p+=C}},t.prototype._placeToken=function(r,i,n,a,o,s,f){var h=i.rich[r.styleName]||{};h.text=r.text;var u=r.verticalAlign,v=a+n/2;u==="top"?v=a+r.height/2:u==="bottom"&&(v=a+n-r.height/2);var l=!r.isLineHolder&&Ei(h);l&&this._renderBackground(h,i,s==="right"?o-r.width:s==="center"?o-r.width/2:o,v-r.height/2,r.width,r.height);var c=!!h.backgroundColor,_=r.textPadding;_&&(o=ca(o,s,_),v-=r.height/2-_[0]-r.innerHeight/2);var g=this._getOrCreateChild(nn),d=g.createStyle();g.useStyle(d);var p=this._defaultStyle,y=!1,m=0,T=la("fill"in h?h.fill:"fill"in i?i.fill:(y=!0,p.fill)),b=va("stroke"in h?h.stroke:"stroke"in i?i.stroke:!c&&!f&&(!p.autoStroke||y)?(m=sa,p.stroke):null),w=h.textShadowBlur>0||i.textShadowBlur>0;d.text=r.text,d.x=o,d.y=v,w&&(d.shadowBlur=h.textShadowBlur||i.textShadowBlur||0,d.shadowColor=h.textShadowColor||i.textShadowColor||"transparent",d.shadowOffsetX=h.textShadowOffsetX||i.textShadowOffsetX||0,d.shadowOffsetY=h.textShadowOffsetY||i.textShadowOffsetY||0),d.textAlign=s,d.textBaseline="middle",d.font=r.font||ur,d.opacity=De(h.opacity,i.opacity,1),ha(d,h),b&&(d.lineWidth=De(h.lineWidth,i.lineWidth,m),d.lineDash=st(h.lineDash,i.lineDash),d.lineDashOffset=i.lineDashOffset||0,d.stroke=b),T&&(d.fill=T);var M=r.contentWidth,C=r.contentHeight;g.setBoundingRect(new N(Ur(d.x,M,d.textAlign),Tr(d.y,C,d.textBaseline),M,C))},t.prototype._renderBackground=function(r,i,n,a,o,s){var f=r.backgroundColor,h=r.borderWidth,u=r.borderColor,v=f&&f.image,l=f&&!v,c=r.borderRadius,_=this,g,d;if(l||r.lineHeight||h&&u){g=this._getOrCreateChild(Ro),g.useStyle(g.createStyle()),g.style.fill=null;var p=g.shape;p.x=n,p.y=a,p.width=o,p.height=s,p.r=c,g.dirtyShape()}if(l){var y=g.style;y.fill=f||null,y.fillOpacity=st(r.fillOpacity,1)}else if(v){d=this._getOrCreateChild(Lo),d.onload=function(){_.dirtyStyle()};var m=d.style;m.image=f.image,m.x=n,m.y=a,m.width=o,m.height=s}if(h&&u){var y=g.style;y.lineWidth=h,y.stroke=u,y.strokeOpacity=st(r.strokeOpacity,1),y.lineDash=r.borderDash,y.lineDashOffset=r.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var T=(g||d).style;T.shadowBlur=r.shadowBlur||0,T.shadowColor=r.shadowColor||"transparent",T.shadowOffsetX=r.shadowOffsetX||0,T.shadowOffsetY=r.shadowOffsetY||0,T.opacity=De(r.opacity,i.opacity,1)},t.makeFont=function(r){var i="";return Wh(r)&&(i=[r.fontStyle,r.fontWeight,Nh(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),i&&Xr(i)||r.textFont||r.font},t}(ae),kh={left:!0,right:1,center:1},$h={top:1,bottom:1,middle:1},fa=["fontStyle","fontWeight","fontSize","fontFamily"];function Nh(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?ln+"px":e+"px"}function ha(e,t){for(var r=0;r1&&(o*=Ii(_),s*=Ii(_));var g=(n===a?-1:1)*Ii((o*o*(s*s)-o*o*(c*c)-s*s*(l*l))/(o*o*(c*c)+s*s*(l*l)))||0,d=g*o*c/s,p=g*-s*l/o,y=(e+r)/2+Te(v)*d-we(v)*p,m=(t+i)/2+we(v)*d+Te(v)*p,T=ga([1,0],[(l-d)/o,(c-p)/s]),b=[(l-d)/o,(c-p)/s],w=[(-1*l-d)/o,(-1*c-p)/s],M=ga(b,w);if(an(b,w)<=-1&&(M=Yr),an(b,w)>=1&&(M=0),M<0){var C=Math.round(M/Yr*1e6)/1e6;M=Yr*2+C%2*Yr}u.addData(h,y,m,o,s,T,M,v,a)}var qh=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,Zh=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Uh(e){var t=new vr;if(!e)return t;var r=0,i=0,n=r,a=i,o,s=vr.CMD,f=e.match(qh);if(!f)return t;for(var h=0;hx*x+E*E&&(C=P,L=R),{cx:C,cy:L,x0:-u,y0:-v,x1:C*(n/b-1),y1:L*(n/b-1)}}function jh(e){var t;if(re(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 tu(e,t){var r,i=Vr(t.r,0),n=Vr(t.r0||0,0),a=i>0,o=n>0;if(!(!a&&!o)){if(a||(i=n,n=0),n>i){var s=i;i=n,n=s}var f=t.startAngle,h=t.endAngle;if(!(isNaN(f)||isNaN(h))){var u=t.cx,v=t.cy,l=!!t.clockwise,c=ma(h-f),_=c>Oi&&c%Oi;if(_>dt&&(c=_),!(i>dt))e.moveTo(u,v);else if(c>Oi-dt)e.moveTo(u+i*yr(f),v+i*er(f)),e.arc(u,v,i,f,h,!l),n>dt&&(e.moveTo(u+n*yr(h),v+n*er(h)),e.arc(u,v,n,h,f,l));else{var g=void 0,d=void 0,p=void 0,y=void 0,m=void 0,T=void 0,b=void 0,w=void 0,M=void 0,C=void 0,L=void 0,P=void 0,R=void 0,S=void 0,A=void 0,x=void 0,E=i*yr(f),D=i*er(f),z=n*yr(h),k=n*er(h),W=c>dt;if(W){var X=t.cornerRadius;X&&(r=jh(X),g=r[0],d=r[1],p=r[2],y=r[3]);var Z=ma(i-n)/2;if(m=bt(Z,p),T=bt(Z,y),b=bt(Z,g),w=bt(Z,d),L=M=Vr(m,T),P=C=Vr(b,w),(M>dt||C>dt)&&(R=i*yr(h),S=i*er(h),A=n*yr(f),x=n*er(f),cdt){var j=bt(p,L),q=bt(y,L),I=be(A,x,E,D,i,j,l),F=be(R,S,z,k,i,q,l);e.moveTo(u+I.cx+I.x0,v+I.cy+I.y0),L0&&e.arc(u+I.cx,v+I.cy,j,V(I.y0,I.x0),V(I.y1,I.x1),!l),e.arc(u,v,i,V(I.cy+I.y1,I.cx+I.x1),V(F.cy+F.y1,F.cx+F.x1),!l),q>0&&e.arc(u+F.cx,v+F.cy,q,V(F.y1,F.x1),V(F.y0,F.x0),!l))}else e.moveTo(u+E,v+D),e.arc(u,v,i,f,h,!l);if(!(n>dt)||!W)e.lineTo(u+z,v+k);else if(P>dt){var j=bt(g,P),q=bt(d,P),I=be(z,k,R,S,n,-q,l),F=be(E,D,A,x,n,-j,l);e.lineTo(u+I.cx+I.x0,v+I.cy+I.y0),P0&&e.arc(u+I.cx,v+I.cy,q,V(I.y0,I.x0),V(I.y1,I.x1),!l),e.arc(u,v,n,V(I.cy+I.y1,I.cx+I.x1),V(F.cy+F.y1,F.cx+F.x1),l),j>0&&e.arc(u+F.cx,v+F.cy,j,V(F.y1,F.x1),V(F.y0,F.x0),!l))}else e.lineTo(u+z,v+k),e.arc(u,v,n,h,f,l)}e.closePath()}}}var ru=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}(),Ho=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new ru},t.prototype.buildPath=function(r,i){tu(r,i)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(G);Ho.prototype.type="sector";const wa=Ho;var eu=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),zo=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new eu},t.prototype.buildPath=function(r,i){var n=i.cx,a=i.cy,o=Math.PI*2;r.moveTo(n+i.r,a),r.arc(n,a,i.r,0,o,!1),r.moveTo(n+i.r0,a),r.arc(n,a,i.r0,0,o,!0)},t}(G);zo.prototype.type="ring";const Mv=zo;function iu(e,t,r,i){var n=[],a=[],o=[],s=[],f,h,u,v;if(i){u=[1/0,1/0],v=[-1/0,-1/0];for(var l=0,c=e.length;l=2){if(i){var a=iu(n,i,r,t.smoothConstraint);e.moveTo(n[0][0],n[0][1]);for(var o=n.length,s=0;s<(r?o:o-1);s++){var f=a[s*2],h=a[s*2+1],u=n[(s+1)%o];e.bezierCurveTo(f[0],f[1],h[0],h[1],u[0],u[1])}}else{e.moveTo(n[0][0],n[0][1]);for(var s=1,v=n.length;snr[1]){if(s=!1,a)return s;var u=Math.abs(nr[0]-ir[1]),v=Math.abs(ir[0]-nr[1]);Math.min(u,v)>n.len()&&(u=0&&sr(f)?f:.5;var h=e.createRadialGradient(o,s,0,o,s,f);return h}function on(e,t,r){for(var i=t.type==="radial"?bu(e,t,r):Tu(e,t,r),n=t.colorStops,a=0;a0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:Se(e)?[e]:re(e)?e:null}function qo(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&Mu(t.lineDash,t.lineWidth),i=t.lineDashOffset;if(r){var n=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;n&&n!==1&&(r=xt(r,function(a){return a/n}),i/=n)}return[r,i]}var Lu=new vr(!0);function Ne(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function ba(e){return typeof e=="string"&&e!=="none"}function We(e){var t=e.fill;return t!=null&&t!=="none"}function Ca(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=r}else e.fill()}function Ma(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=r}else e.stroke()}function sn(e,t,r){var i=_o(t.image,t.__image,r);if(Ke(i)){var n=e.createPattern(i,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&n&&n.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*ms),a.scaleSelf(t.scaleX||1,t.scaleY||1),n.setTransform(a)}return n}}function Pu(e,t,r,i){var n,a=Ne(r),o=We(r),s=r.strokePercent,f=s<1,h=!t.path;(!t.silent||f)&&h&&t.createPathProxy();var u=t.path||Lu,v=t.__dirty;if(!i){var l=r.fill,c=r.stroke,_=o&&!!l.colorStops,g=a&&!!c.colorStops,d=o&&!!l.image,p=a&&!!c.image,y=void 0,m=void 0,T=void 0,b=void 0,w=void 0;(_||g)&&(w=t.getBoundingRect()),_&&(y=v?on(e,l,w):t.__canvasFillGradient,t.__canvasFillGradient=y),g&&(m=v?on(e,c,w):t.__canvasStrokeGradient,t.__canvasStrokeGradient=m),d&&(T=v||!t.__canvasFillPattern?sn(e,l,t):t.__canvasFillPattern,t.__canvasFillPattern=T),p&&(b=v||!t.__canvasStrokePattern?sn(e,c,t):t.__canvasStrokePattern,t.__canvasStrokePattern=T),_?e.fillStyle=y:d&&(T?e.fillStyle=T:o=!1),g?e.strokeStyle=m:p&&(b?e.strokeStyle=b:a=!1)}var M=t.getGlobalScale();u.setScale(M[0],M[1],t.segmentIgnoreThreshold);var C,L;e.setLineDash&&r.lineDash&&(n=qo(t),C=n[0],L=n[1]);var P=!0;(h||v&wr)&&(u.setDPR(e.dpr),f?u.setContext(null):(u.setContext(e),P=!1),u.reset(),t.buildPath(u,t.shape,i),u.toStatic(),t.pathUpdated()),P&&u.rebuildPath(e,f?s:1),C&&(e.setLineDash(C),e.lineDashOffset=L),i||(r.strokeFirst?(a&&Ma(e,r),o&&Ca(e,r)):(o&&Ca(e,r),a&&Ma(e,r))),C&&e.setLineDash([])}function Ru(e,t,r){var i=t.__image=_o(r.image,t.__image,t,t.onload);if(!(!i||!Ke(i))){var n=r.x||0,a=r.y||0,o=t.getWidth(),s=t.getHeight(),f=i.width/i.height;if(o==null&&s!=null?o=s*f:s==null&&o!=null?s=o/f:o==null&&s==null&&(o=i.width,s=i.height),r.sWidth&&r.sHeight){var h=r.sx||0,u=r.sy||0;e.drawImage(i,h,u,r.sWidth,r.sHeight,n,a,o,s)}else if(r.sx&&r.sy){var h=r.sx,u=r.sy,v=o-h,l=s-u;e.drawImage(i,h,u,v,l,n,a,o,s)}else e.drawImage(i,n,a,o,s)}}function Su(e,t,r){var i,n=r.text;if(n!=null&&(n+=""),n){e.font=r.font||ur,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var a=void 0,o=void 0;e.setLineDash&&r.lineDash&&(i=qo(t),a=i[0],o=i[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),r.strokeFirst?(Ne(r)&&e.strokeText(n,r.x,r.y),We(r)&&e.fillText(n,r.x,r.y)):(We(r)&&e.fillText(n,r.x,r.y),Ne(r)&&e.strokeText(n,r.x,r.y)),a&&e.setLineDash([])}}var La=["shadowBlur","shadowOffsetX","shadowOffsetY"],Pa=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Zo(e,t,r,i,n){var a=!1;if(!i&&(r=r||{},t===r))return!1;if(i||t.opacity!==r.opacity){it(e,n),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?hr.opacity:o}(i||t.blend!==r.blend)&&(a||(it(e,n),a=!0),e.globalCompositeOperation=t.blend||hr.blend);for(var s=0;s2&&i.push(n),n=[A,x]}function u(A,x,E,D){Rr(A,E)&&Rr(x,D)||n.push(A,x,E,D,E,D)}function v(A,x,E,D,z,k){var W=Math.abs(x-A),X=Math.tan(W/4)*4/3,Z=xC:R2&&i.push(n),i}function hn(e,t,r,i,n,a,o,s,f,h){if(Rr(e,r)&&Rr(t,i)&&Rr(n,o)&&Rr(a,s)){f.push(o,s);return}var u=2/h,v=u*u,l=o-e,c=s-t,_=Math.sqrt(l*l+c*c);l/=_,c/=_;var g=r-e,d=i-t,p=n-o,y=a-s,m=g*g+d*d,T=p*p+y*y;if(m=0&&C=0){f.push(o,s);return}var L=[],P=[];kt(e,r,n,o,.5,L),kt(t,i,a,s,.5,P),hn(L[0],P[0],L[1],P[1],L[2],P[2],L[3],P[3],f,h),hn(L[4],P[4],L[5],P[5],L[6],P[6],L[7],P[7],f,h)}function Fu(e,t){var r=fn(e),i=[];t=t||1;for(var n=0;n0)for(var h=0;hMath.abs(h),v=Vo([f,h],u?0:1,t),l=(u?s:h)/v.length,c=0;cn,o=Vo([i,n],a?0:1,t),s=a?"width":"height",f=a?"height":"width",h=a?"x":"y",u=a?"y":"x",v=e[s]/o.length,l=0;l1?null:new O(g*f+e,g*h+t)}function zu(e,t,r){var i=new O;O.sub(i,r,t),i.normalize();var n=new O;O.sub(n,e,t);var a=n.dot(i);return a}function mr(e,t){var r=e[e.length-1];r&&r[0]===t[0]&&r[1]===t[1]||e.push(t)}function ku(e,t,r){for(var i=e.length,n=[],a=0;ao?(h.x=u.x=s+a/2,h.y=f,u.y=f+o):(h.y=u.y=f+o/2,h.x=s,u.x=s+a),ku(t,h,u)}function Ye(e,t,r,i){if(r===1)i.push(t);else{var n=Math.floor(r/2),a=e(t);Ye(e,a[0],n,i),Ye(e,a[1],r-n,i)}return i}function $u(e,t){for(var r=[],i=0;i0)for(var b=i/r,w=-i/2;w<=i/2;w+=b){for(var M=Math.sin(w),C=Math.cos(w),L=0,m=0;m0;h/=2){var u=0,v=0;(e&h)>0&&(u=1),(t&h)>0&&(v=1),s+=h*h*(3*u^v),v===0&&(u===1&&(e=h-1-e,t=h-1-t),f=e,e=t,t=f)}return s}function Xe(e){var t=1/0,r=1/0,i=-1/0,n=-1/0,a=xt(e,function(s){var f=s.getBoundingRect(),h=s.getComputedTransform(),u=f.x+f.width/2+(h?h[4]:0),v=f.y+f.height/2+(h?h[5]:0);return t=Math.min(u,t),r=Math.min(v,r),i=Math.max(u,i),n=Math.max(v,n),[u,v]}),o=xt(a,function(s,f){return{cp:s,z:Vu(s[0],s[1],t,r,i,n),path:e[f]}});return o.sort(function(s,f){return s.z-f.z}).map(function(s){return s.path})}function jo(e){return Yu(e.path,e.count)}function vn(){return{fromIndividuals:[],toIndividuals:[],count:0}}function Fv(e,t,r){var i=[];function n(b){for(var w=0;w=s)}}for(var v=this.__startIndex;v15)break}}x.prevElClipPaths&&p.restore()};if(y)if(y.length===0)C=d.__endIndex;else for(var P=c.dpr,R=0;R0&&t>n[0]){for(f=0;ft);f++);s=i[n[f]]}if(n.splice(f+1,0,t),i[t]=r,!r.virtual)if(s){var h=s.dom;h.nextSibling?o.insertBefore(r.dom,h.nextSibling):o.appendChild(r.dom)}else o.firstChild?o.insertBefore(r.dom,o.firstChild):o.appendChild(r.dom);r.__painter=this}},e.prototype.eachLayer=function(t,r){for(var i=this._zlevelList,n=0;n0?Re:0),this._needsManuallyCompositing),u.__builtin__||pn("ZLevel "+h+" has been used by unkown layer "+u.id),u!==a&&(u.__used=!0,u.__startIndex!==f&&(u.__dirty=!0),u.__startIndex=f,u.incremental?u.__drawIndex=-1:u.__drawIndex=f,r(f),a=u),n.__dirty&ot&&!n.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=f))}r(f),this.eachBuiltinLayer(function(v,l){!v.__used&&v.getElementCount()>0&&(v.__dirty=!0,v.__startIndex=v.__endIndex=v.__drawIndex=0),v.__dirty&&v.__drawIndex<0&&(v.__drawIndex=v.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(t){t.clear()},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t,ft(this._layers,function(r){r.setUnpainted()})},e.prototype.configLayer=function(t,r){if(r){var i=this._layerConfig;i[t]?Gr(i[t],r,!0):i[t]=r;for(var n=0;n