import{u as xa,y as wa,r as ce,l as Ca,b as W,o as q,c as ee,d as k,i as z,t as U,e as B,w as F,m as ct,x as Ta,z as Aa,E as Da,F as ht,h as dt,g as Ia,p as La,j as Pa}from"./index-f4f34206.js";import{A as ka}from"./index-99ee9cb9.js";import{_ as Oa}from"./_plugin-vue_export-helper-c27b6911.js";import{a7 as Ht,R as de,_ as N,C as Yt,a8 as Y,a9 as Xt,aa as Ma,ab as ke,ac as X,F as E,ad as Ra,e as O,ae as K,v as Ut,af as $t,ag as Ba,ah as qt,ai as Na,aj as xe,ak as Va,al as Ga,am as vt,an as za,g as j,ao as Ea,ap as Wa,aq as gt,ar as Fa,as as Ha,at as Ya,au as ft,av as V,aw as pt,ax as jt,ay as Xa,az as Ua,i as Oe,p as H,a0 as Me,aA as $a,A as Zt,M as _e,aB as qa,aC as ja,aD as Ee,D as we,aE as Za,aF as mt,X as Ka,aG as Qa,aH as Kt,G as Je,f as Ja,aI as Re,P as er,I as tr,aJ as ar,aK as et,aL as yt,aM as rr,aN as ir,aO as Se,aP as nr,aQ as or,aR as Z,aS as tt,aT as sr,aU as Qt,aV as lr,aW as ur,r as cr,w as ae,aX as Jt,Q as at,aY as ea,aZ as _t,a_ as hr,a$ as dr,t as oe,b0 as ta,q as vr,b1 as qe,b2 as gr,V as aa,b3 as ra,b4 as fr,b5 as pr,b6 as ia,b7 as na,b8 as mr,b9 as oa,ba as Be,bb as yr,bc as _r,bd as br,be as Sr,bf as xr,bg as bt,bh as wr,bi as Cr,d as Tr,bj as Ar,j as Dr,bk as Ir,l as Lr,bl as Pr,U as kr,bm as Or,bn as Mr,bo as Rr,m as Br,bp as Nr,bq as We,a3 as Vr,a4 as Gr,E as zr,a5 as Er,a6 as Wr,a2 as Fe}from"./installCanvasRenderer-019b318b.js";function Fr(r,a){var e=Ht(a.get("padding")),t=a.getItemStyle(["color","opacity"]);return t.fill=a.get("backgroundColor"),r=new de({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:a.get("borderRadius")},style:t,silent:!0,z2:-1}),r}var Hr=function(r){N(a,r);function a(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=a.type,e}return a.type="tooltip",a.dependencies=["axisPointer"],a.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}},a}(Yt);const Yr=Hr;function sa(r){var a=r.get("confine");return a!=null?!!a:r.get("renderMode")==="richText"}function la(r){if(Y.domSupported){for(var a=document.documentElement.style,e=0,t=r.length;e-1?(l+="top:50%",s+="translateY(-50%) rotate("+(u=n==="left"?-225:-45)+"deg)"):(l+="left:50%",s+="translateX(-50%) rotate("+(u=n==="top"?225:45)+"deg)");var c=u*Math.PI/180,h=o+i,v=h*Math.abs(Math.cos(c))+h*Math.abs(Math.sin(c)),d=Math.round(((v-Math.SQRT2*i)/2+Math.SQRT2*i-(v-h)/2)*100)/100;l+=";"+n+":-"+d+"px";var g=a+" solid "+i+"px;",f=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",l+";"+s+";","border-bottom:"+g,"border-right:"+g,"background-color:"+t+";"];return'
'}function Kr(r,a){var e="cubic-bezier(0.23,1,0.32,1)",t=" "+r/2+"s "+e,i="opacity"+t+",visibility"+t;return a||(t=" "+r+"s "+e,i+=Y.transformSupported?","+rt+t:",left"+t+",top"+t),$r+":"+i}function St(r,a,e){var t=r.toFixed(0)+"px",i=a.toFixed(0)+"px";if(!Y.transformSupported)return e?"top:"+i+";left:"+t+";":[["top",i],["left",t]];var n=Y.transform3dSupported,o="translate"+(n?"3d":"")+"("+t+","+i+(n?",0":"")+")";return e?"top:0;left:0;"+rt+":"+o+";":[["top",0],["left",0],[ua,o]]}function Qr(r){var a=[],e=r.get("fontSize"),t=r.getTextColor();t&&a.push("color:"+t),a.push("font:"+r.getFont()),e&&a.push("line-height:"+Math.round(e*3/2)+"px");var i=r.get("textShadowColor"),n=r.get("textShadowBlur")||0,o=r.get("textShadowOffsetX")||0,l=r.get("textShadowOffsetY")||0;return i&&n&&a.push("text-shadow:"+o+"px "+l+"px "+n+"px "+i),O(["decoration","align"],function(s){var u=r.get(s);u&&a.push("text-"+s+":"+u)}),a.join(";")}function Jr(r,a,e){var t=[],i=r.get("transitionDuration"),n=r.get("backgroundColor"),o=r.get("shadowBlur"),l=r.get("shadowColor"),s=r.get("shadowOffsetX"),u=r.get("shadowOffsetY"),c=r.getModel("textStyle"),h=$t(r,"html"),v=s+"px "+u+"px "+o+"px "+l;return t.push("box-shadow:"+v),a&&i&&t.push(Kr(i,e)),n&&t.push("background-color:"+n),O(["width","color","radius"],function(d){var g="border-"+d,f=Xt(g),_=r.get(f);_!=null&&t.push(g+":"+_+(d==="color"?"":"px"))}),t.push(Qr(c)),h!=null&&t.push("padding:"+Ht(h).join("px ")+"px"),t.join(";")+";"}function xt(r,a,e,t,i){var n=a&&a.painter;if(e){var o=n&&n.getViewportRoot();o&&Ba(r,o,document.body,t,i)}else{r[0]=t,r[1]=i;var l=n&&n.getViewportRootOffset();l&&(r[0]+=l.offsetLeft,r[1]+=l.offsetTop)}r[2]=r[0]/a.getWidth(),r[3]=r[1]/a.getHeight()}var ei=function(){function r(a,e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Y.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var n=this._zr=e.getZr(),o=this._appendToBody=t&&t.appendToBody;xt(this._styleCoord,n,o,e.getWidth()/2,e.getHeight()/2),o?document.body.appendChild(i):a.appendChild(i),this._container=a;var l=this;i.onmouseenter=function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0},i.onmousemove=function(s){if(s=s||window.event,!l._enterable){var u=n.handler,c=n.painter.getViewportRoot();Ma(c,s,!0),u.dispatch("mousemove",s)}},i.onmouseleave=function(){l._inContent=!1,l._enterable&&l._show&&l.hideLater(l._hideDelay)}}return r.prototype.update=function(a){var e=this._container,t=Ur(e,"position"),i=e.style;i.position!=="absolute"&&t!=="absolute"&&(i.position="relative");var n=a.get("alwaysShowContent");n&&this._moveIfResized(),this._alwaysShowContent=n,this.el.className=a.get("className")||""},r.prototype.show=function(a,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this.el,i=t.style,n=this._styleCoord;t.innerHTML?i.cssText=qr+Jr(a,!this._firstShow,this._longHide)+St(n[0],n[1],!0)+("border-color:"+ke(e)+";")+(a.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(a,e,t,i,n){var o=this.el;if(a==null){o.innerHTML="";return}var l="";if(X(n)&&t.get("trigger")==="item"&&!sa(t)&&(l=Zr(t,i,n)),X(a))o.innerHTML=a+l;else if(a){o.innerHTML="",E(a)||(a=[a]);for(var s=0;s=0?this._tryShow(n,o):i==="leave"&&this._hide(o))},this))},a.prototype._keepShow=function(){var e=this._tooltipModel,t=this._ecModel,i=this._api,n=e.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&n!=="none"&&n!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(e,t,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},a.prototype.manuallyShowTip=function(e,t,i,n){if(!(n.from===this.uid||Y.node||!i.getDom())){var o=Tt(n,i);this._ticket="";var l=n.dataByCoordSys,s=ui(n,t,i);if(s){var u=s.el.getBoundingRect().clone();u.applyTransform(s.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:s.el,position:n.position,positionDefault:"bottom"},o)}else if(n.tooltip&&n.x!=null&&n.y!=null){var c=ii;c.x=n.x,c.y=n.y,c.update(),j(c).tooltipConfig={name:null,option:n.tooltip},this._tryShow({offsetX:n.x,offsetY:n.y,target:c},o)}else if(l)this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,dataByCoordSys:l,tooltipOption:n.tooltipOption},o);else if(n.seriesIndex!=null){if(this._manuallyAxisShowTip(e,t,i,n))return;var h=Ea(n,t),v=h.point[0],d=h.point[1];v!=null&&d!=null&&this._tryShow({offsetX:v,offsetY:d,target:h.el,position:n.position,positionDefault:"bottom"},o)}else n.x!=null&&n.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:n.x,y:n.y}),this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,target:i.getZr().findHover(n.x,n.y).target},o))}},a.prototype.manuallyHideTip=function(e,t,i,n){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,n.from!==this.uid&&this._hide(Tt(n,i))},a.prototype._manuallyAxisShowTip=function(e,t,i,n){var o=n.seriesIndex,l=n.dataIndex,s=t.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||l==null||s==null)){var u=t.getSeriesByIndex(o);if(u){var c=u.getData(),h=me([c.getItemModel(l),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(h.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:l,position:n.position}),!0}}},a.prototype._tryShow=function(e,t){var i=e.target,n=this._tooltipModel;if(n){this._lastX=e.offsetX,this._lastY=e.offsetY;var o=e.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,e);else if(i){this._lastDataByCoordSys=null;var l,s;Wa(i,function(u){if(j(u).dataIndex!=null)return l=u,!0;if(j(u).tooltipConfig!=null)return s=u,!0},!0),l?this._showSeriesItemTooltip(e,l,t):s?this._showComponentItemTooltip(e,s,t):this._hide(t)}else this._lastDataByCoordSys=null,this._hide(t)}},a.prototype._showOrMove=function(e,t){var i=e.get("showDelay");t=K(t,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(t,i):t()},a.prototype._showAxisTooltip=function(e,t){var i=this._ecModel,n=this._tooltipModel,o=[t.offsetX,t.offsetY],l=me([t.tooltipOption],n),s=this._renderMode,u=[],c=gt("section",{blocks:[],noHeader:!0}),h=[],v=new Ee;O(e,function(p){O(p.dataByAxis,function(m){var S=i.getComponent(m.axisDim+"Axis",m.axisIndex),b=m.value;if(!(!S||b==null)){var x=Fa(b,S.axis,i,m.seriesDataIndices,m.valueLabelOpt),T=gt("section",{header:x,noHeader:!Ha(x),sortBlocks:!0,blocks:[]});c.blocks.push(T),O(m.seriesDataIndices,function(w){var I=i.getSeriesByIndex(w.seriesIndex),L=w.dataIndexInside,C=I.getDataParams(L);if(!(C.dataIndex<0)){C.axisDim=m.axisDim,C.axisIndex=m.axisIndex,C.axisType=m.axisType,C.axisId=m.axisId,C.axisValue=Ya(S.axis,{value:b}),C.axisValueLabel=x,C.marker=v.makeTooltipMarker("item",ke(C.color),s);var A=ft(I.formatTooltip(L,!0,null)),D=A.frag;if(D){var M=me([I],n).get("valueFormatter");T.blocks.push(M?V({valueFormatter:M},D):D)}A.text&&h.push(A.text),u.push(C)}})}})}),c.blocks.reverse(),h.reverse();var d=t.position,g=l.get("order"),f=pt(c,v,s,g,i.get("useUTC"),l.get("textStyle"));f&&h.unshift(f);var _=s==="richText"?` `:"
",y=h.join(_);this._showOrMove(l,function(){this._updateContentNotChangedOnAxis(e,u)?this._updatePosition(l,d,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(l,y,u,Math.random()+"",o[0],o[1],d,null,v)})},a.prototype._showSeriesItemTooltip=function(e,t,i){var n=this._ecModel,o=j(t),l=o.seriesIndex,s=n.getSeriesByIndex(l),u=o.dataModel||s,c=o.dataIndex,h=o.dataType,v=u.getData(h),d=this._renderMode,g=e.positionDefault,f=me([v.getItemModel(c),u,s&&(s.coordinateSystem||{}).model],this._tooltipModel,g?{position:g}:null),_=f.get("trigger");if(!(_!=null&&_!=="item")){var y=u.getDataParams(c,h),p=new Ee;y.marker=p.makeTooltipMarker("item",ke(y.color),d);var m=ft(u.formatTooltip(c,!1,h)),S=f.get("order"),b=f.get("valueFormatter"),x=m.frag,T=x?pt(b?V({valueFormatter:b},x):x,p,d,S,n.get("useUTC"),f.get("textStyle")):m.text,w="item_"+u.name+"_"+c;this._showOrMove(f,function(){this._showTooltipContent(f,T,y,w,e.offsetX,e.offsetY,e.position,e.target,p)}),i({type:"showTip",dataIndexInside:c,dataIndex:v.getRawIndex(c),seriesIndex:l,from:this.uid})}},a.prototype._showComponentItemTooltip=function(e,t,i){var n=j(t),o=n.tooltipConfig,l=o.option||{};if(X(l)){var s=l;l={content:s,formatter:s}}var u=[l],c=this._ecModel.getComponent(n.componentMainType,n.componentIndex);c&&u.push(c),u.push({formatter:l.content});var h=e.positionDefault,v=me(u,this._tooltipModel,h?{position:h}:null),d=v.get("content"),g=Math.random()+"",f=new Ee;this._showOrMove(v,function(){var _=jt(v.get("formatterParams")||{});this._showTooltipContent(v,d,_,g,e.offsetX,e.offsetY,e.position,t,f)}),i({type:"showTip",from:this.uid})},a.prototype._showTooltipContent=function(e,t,i,n,o,l,s,u,c){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var h=this._tooltipContent;h.setEnterable(e.get("enterable"));var v=e.get("formatter");s=s||e.get("position");var d=t,g=this._getNearestPoint([o,l],i,e.get("trigger"),e.get("borderColor")),f=g.color;if(v)if(X(v)){var _=e.ecModel.get("useUTC"),y=E(i)?i[0]:i,p=y&&y.axisType&&y.axisType.indexOf("time")>=0;d=v,p&&(d=Xa(y.axisValue,d,_)),d=Ua(d,i,!0)}else if(Oe(v)){var m=K(function(S,b){S===this._ticket&&(h.setContent(b,c,e,f,s),this._updatePosition(e,s,o,l,h,i,u))},this);this._ticket=n,d=v(i,n,m)}else d=v;h.setContent(d,c,e,f,s),h.show(e,f),this._updatePosition(e,s,o,l,h,i,u)}},a.prototype._getNearestPoint=function(e,t,i,n){if(i==="axis"||E(t))return{color:n||(this._renderMode==="html"?"#fff":"none")};if(!E(t))return{color:n||t.color||t.borderColor}},a.prototype._updatePosition=function(e,t,i,n,o,l,s){var u=this._api.getWidth(),c=this._api.getHeight();t=t||e.get("position");var h=o.getSize(),v=e.get("align"),d=e.get("verticalAlign"),g=s&&s.getBoundingRect().clone();if(s&&g.applyTransform(s.transform),Oe(t)&&(t=t([i,n],l,o.el,g,{viewSize:[u,c],contentSize:h.slice()})),E(t))i=H(t[0],u),n=H(t[1],c);else if(qt(t)){var f=t;f.width=h[0],f.height=h[1];var _=Me(f,{width:u,height:c});i=_.x,n=_.y,v=null,d=null}else if(X(t)&&s){var y=li(t,g,h,e.get("borderWidth"));i=y[0],n=y[1]}else{var y=oi(i,n,o,u,c,v?null:20,d?null:20);i=y[0],n=y[1]}if(v&&(i-=At(v)?h[0]/2:v==="right"?h[0]:0),d&&(n-=At(d)?h[1]/2:d==="bottom"?h[1]:0),sa(e)){var y=si(i,n,o,u,c);i=y[0],n=y[1]}o.moveTo(i,n)},a.prototype._updateContentNotChangedOnAxis=function(e,t){var i=this._lastDataByCoordSys,n=this._cbParamsList,o=!!i&&i.length===e.length;return o&&O(i,function(l,s){var u=l.dataByAxis||[],c=e[s]||{},h=c.dataByAxis||[];o=o&&u.length===h.length,o&&O(u,function(v,d){var g=h[d]||{},f=v.seriesDataIndices||[],_=g.seriesDataIndices||[];o=o&&v.value===g.value&&v.axisType===g.axisType&&v.axisId===g.axisId&&f.length===_.length,o&&O(f,function(y,p){var m=_[p];o=o&&y.seriesIndex===m.seriesIndex&&y.dataIndex===m.dataIndex}),n&&O(v.seriesDataIndices,function(y){var p=y.seriesIndex,m=t[p],S=n[p];m&&S&&S.data!==m.data&&(o=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=t,!!o},a.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},a.prototype.dispose=function(e,t){Y.node||!t.getDom()||(vt(this,"_updatePosition"),this._tooltipContent.dispose(),$a("itemTooltip",t))},a.type="tooltip",a}(Zt);function me(r,a,e){var t=a.ecModel,i;e?(i=new _e(e,t,t),i=new _e(a.option,i,t)):i=a;for(var n=r.length-1;n>=0;n--){var o=r[n];o&&(o instanceof _e&&(o=o.get("tooltip",!0)),X(o)&&(o={formatter:o}),o&&(i=new _e(o,i,t)))}return i}function Tt(r,a){return r.dispatchAction||K(a.dispatchAction,a)}function oi(r,a,e,t,i,n,o){var l=e.getSize(),s=l[0],u=l[1];return n!=null&&(r+s+n+2>t?r-=s+n:r+=n),o!=null&&(a+u+o>i?a-=u+o:a+=o),[r,a]}function si(r,a,e,t,i){var n=e.getSize(),o=n[0],l=n[1];return r=Math.min(r+o,t)-o,a=Math.min(a+l,i)-l,r=Math.max(r,0),a=Math.max(a,0),[r,a]}function li(r,a,e,t){var i=e[0],n=e[1],o=Math.ceil(Math.SQRT2*t)+8,l=0,s=0,u=a.width,c=a.height;switch(r){case"inside":l=a.x+u/2-i/2,s=a.y+c/2-n/2;break;case"top":l=a.x+u/2-i/2,s=a.y-n-o;break;case"bottom":l=a.x+u/2-i/2,s=a.y+c+o;break;case"left":l=a.x-i-o,s=a.y+c/2-n/2;break;case"right":l=a.x+u+o,s=a.y+c/2-n/2}return[l,s]}function At(r){return r==="center"||r==="middle"}function ui(r,a,e){var t=qa(r).queryOptionMap,i=t.keys()[0];if(!(!i||i==="series")){var n=ja(a,i,t.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=n.models[0];if(o){var l=e.getViewOfComponentModel(o),s;if(l.group.traverse(function(u){var c=j(u).tooltipConfig;if(c&&c.name===r.name)return s=u,!0}),s)return{componentMainType:i,componentIndex:o.componentIndex,el:s}}}}const ci=ni;function hi(r){we(Za),r.registerComponentModel(Yr),r.registerComponentView(ci),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},mt),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},mt)}var di=function(r,a){if(a==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(a==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},vi=function(r){N(a,r);function a(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=a.type,e.layoutMode={type:"box",ignoreSize:!0},e}return a.prototype.init=function(e,t,i){this.mergeDefaultAndTheme(e,i),e.selected=e.selected||{},this._updateSelector(e)},a.prototype.mergeOption=function(e,t){r.prototype.mergeOption.call(this,e,t),this._updateSelector(e)},a.prototype._updateSelector=function(e){var t=e.selector,i=this.ecModel;t===!0&&(t=e.selector=["all","inverse"]),E(t)&&O(t,function(n,o){X(n)&&(n={type:n}),t[o]=Ka(n,di(i,n.type))})},a.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get("selectedMode")==="single"){for(var t=!1,i=0;i=0},a.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},a.type="legend.plain",a.dependencies=["series"],a.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}},a}(Yt);const je=vi;var he=Z,Ze=O,Ae=tt,gi=function(r){N(a,r);function a(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=a.type,e.newlineDisabled=!1,e}return a.prototype.init=function(){this.group.add(this._contentGroup=new Ae),this.group.add(this._selectorGroup=new Ae),this._isFirstRender=!0},a.prototype.getContentGroup=function(){return this._contentGroup},a.prototype.getSelectorGroup=function(){return this._selectorGroup},a.prototype.render=function(e,t,i){var n=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!e.get("show",!0)){var o=e.get("align"),l=e.get("orient");(!o||o==="auto")&&(o=e.get("left")==="right"&&l==="vertical"?"right":"left");var s=e.get("selector",!0),u=e.get("selectorPosition",!0);s&&(!u||u==="auto")&&(u=l==="horizontal"?"end":"start"),this.renderInner(o,e,t,i,s,l,u);var c=e.getBoxLayoutParams(),h={width:i.getWidth(),height:i.getHeight()},v=e.get("padding"),d=Me(c,h,v),g=this.layoutInner(e,o,d,n,s,u),f=Me(er({width:g.width,height:g.height},c),h,v);this.group.x=f.x-g.x,this.group.y=f.y-g.y,this.group.markRedraw(),this.group.add(this._backgroundEl=Fr(g,e))}},a.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},a.prototype.renderInner=function(e,t,i,n,o,l,s){var u=this.getContentGroup(),c=Kt(),h=t.get("selectedMode"),v=[];i.eachRawSeries(function(d){!d.get("legendHoverLink")&&v.push(d.id)}),Ze(t.getData(),function(d,g){var f=d.get("name");if(!this.newlineDisabled&&(f===""||f===` `)){var _=new Ae;_.newline=!0,u.add(_);return}var y=i.getSeriesByName(f)[0];if(!c.get(f))if(y){var p=y.getData(),m=p.getVisual("legendLineStyle")||{},S=p.getVisual("legendIcon"),b=p.getVisual("style"),x=this._createItem(y,f,g,d,t,e,m,b,S,h,n);x.on("click",he(Dt,f,null,n,v)).on("mouseover",he(Ke,y.name,null,n,v)).on("mouseout",he(Qe,y.name,null,n,v)),c.set(f,!0)}else i.eachRawSeries(function(T){if(!c.get(f)&&T.legendVisualProvider){var w=T.legendVisualProvider;if(!w.containName(f))return;var I=w.indexOfName(f),L=w.getItemVisual(I,"style"),C=w.getItemVisual(I,"legendIcon"),A=tr(L.fill);A&&A[3]===0&&(A[3]=.2,L=V(V({},L),{fill:ar(A,"rgba")}));var D=this._createItem(T,f,g,d,t,e,{},L,C,h,n);D.on("click",he(Dt,null,f,n,v)).on("mouseover",he(Ke,null,f,n,v)).on("mouseout",he(Qe,null,f,n,v)),c.set(f,!0)}},this)},this),o&&this._createSelector(o,t,n,l,s)},a.prototype._createSelector=function(e,t,i,n,o){var l=this.getSelectorGroup();Ze(e,function(u){var c=u.type,h=new xe({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect"})}});l.add(h);var v=t.getModel("selectorLabel"),d=t.getModel(["emphasis","selectorLabel"]);et(h,{normal:v,emphasis:d},{defaultText:u.title}),yt(h)})},a.prototype._createItem=function(e,t,i,n,o,l,s,u,c,h,v){var d=e.visualDrawType,g=o.get("itemWidth"),f=o.get("itemHeight"),_=o.isSelected(t),y=n.get("symbolRotate"),p=n.get("symbolKeepAspect"),m=n.get("icon");c=m||c||"roundRect";var S=fi(c,n,s,u,d,_,v),b=new Ae,x=n.getModel("textStyle");if(Oe(e.getLegendIcon)&&(!m||m==="inherit"))b.add(e.getLegendIcon({itemWidth:g,itemHeight:f,icon:c,iconRotate:y,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:p}));else{var T=m==="inherit"&&e.getData().getVisual("symbol")?y==="inherit"?e.getData().getVisual("symbolRotate"):y:0;b.add(pi({itemWidth:g,itemHeight:f,icon:c,iconRotate:T,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:p}))}var w=l==="left"?g+5:-5,I=l,L=o.get("formatter"),C=t;X(L)&&L?C=L.replace("{name}",t??""):Oe(L)&&(C=L(t));var A=_?x.getTextColor():n.get("inactiveColor");b.add(new xe({style:rr(x,{text:C,x:w,y:f/2,fill:A,align:I,verticalAlign:"middle"},{inheritColor:A})}));var D=new de({shape:b.getBoundingRect(),invisible:!0}),M=n.getModel("tooltip");return M.get("show")&&ir({el:D,componentModel:o,itemName:t,itemTooltipOption:M.option}),b.add(D),b.eachChild(function(P){P.silent=!0}),D.silent=!h,this.getContentGroup().add(b),yt(b),b.__legendDataIndex=i,b},a.prototype.layoutInner=function(e,t,i,n,o,l){var s=this.getContentGroup(),u=this.getSelectorGroup();Se(e.get("orient"),s,e.get("itemGap"),i.width,i.height);var c=s.getBoundingRect(),h=[-c.x,-c.y];if(u.markRedraw(),s.markRedraw(),o){Se("horizontal",u,e.get("selectorItemGap",!0));var v=u.getBoundingRect(),d=[-v.x,-v.y],g=e.get("selectorButtonGap",!0),f=e.getOrient().index,_=f===0?"width":"height",y=f===0?"height":"width",p=f===0?"y":"x";l==="end"?d[f]+=c[_]+g:h[f]+=v[_]+g,d[1-f]+=c[y]/2-v[y]/2,u.x=d[0],u.y=d[1],s.x=h[0],s.y=h[1];var m={x:0,y:0};return m[_]=c[_]+g+v[_],m[y]=Math.max(c[y],v[y]),m[p]=Math.min(0,v[p]+d[1-f]),m}else return s.x=h[0],s.y=h[1],this.group.getBoundingRect()},a.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},a.type="legend.plain",a}(Zt);function fi(r,a,e,t,i,n,o){function l(_,y){_.lineWidth==="auto"&&(_.lineWidth=y.lineWidth>0?2:0),Ze(_,function(p,m){_[m]==="inherit"&&(_[m]=y[m])})}var s=a.getModel("itemStyle"),u=s.getItemStyle(),c=r.lastIndexOf("empty",0)===0?"fill":"stroke",h=s.getShallow("decal");u.decal=!h||h==="inherit"?t.decal:nr(h,o),u.fill==="inherit"&&(u.fill=t[i]),u.stroke==="inherit"&&(u.stroke=t[c]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?t:e).opacity),l(u,t);var v=a.getModel("lineStyle"),d=v.getLineStyle();if(l(d,e),u.fill==="auto"&&(u.fill=t.fill),u.stroke==="auto"&&(u.stroke=t.fill),d.stroke==="auto"&&(d.stroke=t.fill),!n){var g=a.get("inactiveBorderWidth"),f=u[c];u.lineWidth=g==="auto"?t.lineWidth>0&&f?2:0:u.lineWidth,u.fill=a.get("inactiveColor"),u.stroke=a.get("inactiveBorderColor"),d.stroke=v.get("inactiveColor"),d.lineWidth=v.get("inactiveWidth")}return{itemStyle:u,lineStyle:d}}function pi(r){var a=r.icon||"roundRect",e=or(a,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]),a.indexOf("empty")>-1&&(e.style.stroke=e.style.fill,e.style.fill="#fff",e.style.lineWidth=2),e}function Dt(r,a,e,t){Qe(r,a,e,t),e.dispatchAction({type:"legendToggleSelect",name:r??a}),Ke(r,a,e,t)}function ha(r){for(var a=r.getZr().storage.getDisplayList(),e,t=0,i=a.length;ti[o],_=[-d.x,-d.y];t||(_[n]=c[u]);var y=[0,0],p=[-g.x,-g.y],m=cr(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(f){var S=e.get("pageButtonPosition",!0);S==="end"?p[n]+=i[o]-g[o]:y[n]+=g[o]+m}p[1-n]+=d[l]/2-g[l]/2,c.setPosition(_),h.setPosition(y),v.setPosition(p);var b={x:0,y:0};if(b[o]=f?i[o]:d[o],b[l]=Math.max(d[l],g[l]),b[s]=Math.min(0,g[s]+p[1-n]),h.__rectSize=i[o],f){var x={x:0,y:0};x[o]=Math.max(i[o]-g[o]-m,0),x[l]=b[l],h.setClipPath(new de({shape:x})),h.__rectSize=x[o]}else v.eachChild(function(w){w.attr({invisible:!0,silent:!0})});var T=this._getPageInfo(e);return T.pageIndex!=null&&ae(c,{x:T.contentPosition[0],y:T.contentPosition[1]},f?e:null),this._updatePageInfoView(e,T),b},a.prototype._pageGo=function(e,t,i){var n=this._getPageInfo(t)[e];n!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:n,legendId:t.id})},a.prototype._updatePageInfoView=function(e,t){var i=this._controllerGroup;O(["pagePrev","pageNext"],function(c){var h=c+"DataIndex",v=t[h]!=null,d=i.childOfName(c);d&&(d.setStyle("fill",v?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),d.cursor=v?"pointer":"default")});var n=i.childOfName("pageText"),o=e.get("pageFormatter"),l=t.pageIndex,s=l!=null?l+1:0,u=t.pageCount;n&&o&&n.setStyle("text",X(o)?o.replace("{current}",s==null?"":s+"").replace("{total}",u==null?"":u+""):o({current:s,total:u}))},a.prototype._getPageInfo=function(e){var t=e.get("scrollDataIndex",!0),i=this.getContentGroup(),n=this._containerGroup.__rectSize,o=e.getOrient().index,l=He[o],s=Ye[o],u=this._findTargetItemIndex(t),c=i.children(),h=c[u],v=c.length,d=v?1:0,g={contentPosition:[i.x,i.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return g;var f=S(h);g.contentPosition[o]=-f.s;for(var _=u+1,y=f,p=f,m=null;_<=v;++_)m=S(c[_]),(!m&&p.e>y.s+n||m&&!b(m,y.s))&&(p.i>y.i?y=p:y=m,y&&(g.pageNextDataIndex==null&&(g.pageNextDataIndex=y.i),++g.pageCount)),p=m;for(var _=u-1,y=f,p=f,m=null;_>=-1;--_)m=S(c[_]),(!m||!b(p,m.s))&&y.i=T&&x.s<=T+n}},a.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var t,i=this.getContentGroup(),n;return i.eachChild(function(o,l){var s=o.__legendDataIndex;n==null&&s!=null&&(n=l),s===e&&(t=l)}),t??n},a.type="legend.scroll",a}(da);const xi=Si;function wi(r){r.registerAction("legendScroll","legendscroll",function(a,e){var t=a.scrollDataIndex;t!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:a},function(i){i.setScrollDataIndex(t)})})}function Ci(r){we(va),r.registerComponentModel(bi),r.registerComponentView(xi),wi(r)}function Ti(r){we(va),we(Ci)}var ga=function(r){N(a,r);function a(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=a.type,e}return a.prototype.getInitialData=function(e,t){return Jt(null,this,{useEncodeDefaulter:!0})},a.prototype.getMarkerPosition=function(e,t,i){var n=this.coordinateSystem;if(n&&n.clampData){var o=n.clampData(e),l=n.dataToPoint(o);if(i)O(n.getAxes(),function(v,d){if(v.type==="category"&&t!=null){var g=v.getTicksCoords(),f=o[d],_=t[d]==="x1"||t[d]==="y1";if(_&&(f+=1),g.length<2)return;if(g.length===2){l[d]=v.toGlobalCoord(v.getExtent()[_?1:0]);return}for(var y=void 0,p=void 0,m=1,S=0;Sf){p=(b+y)/2;break}S===1&&(m=x-g[0].tickValue)}p==null&&(y?y&&(p=g[g.length-1].coord):p=g[0].coord),l[d]=v.toGlobalCoord(p)}});else{var s=this.getData(),u=s.getLayout("offset"),c=s.getLayout("size"),h=n.getBaseAxis().isHorizontal()?0:1;l[h]+=u+c/2}return l}return[NaN,NaN]},a.type="series.__base_bar__",a.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},a}(at);at.registerClass(ga);const Pt=ga;var Ai=function(r){N(a,r);function a(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=a.type,e}return a.prototype.getInitialData=function(){return Jt(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},a.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},a.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),t=this.get("largeThreshold");return t>e&&(e=t),e},a.prototype.brushSelector=function(e,t,i){return i.rect(t.getItemLayout(e))},a.type="series.bar",a.dependencies=["grid","polar"],a.defaultOption=Qt(Pt.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}),a}(Pt);const Di=Ai;var Ii=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}(),Li=function(r){N(a,r);function a(e){var t=r.call(this,e)||this;return t.type="sausage",t}return a.prototype.getDefaultShape=function(){return new Ii},a.prototype.buildPath=function(e,t){var i=t.cx,n=t.cy,o=Math.max(t.r0||0,0),l=Math.max(t.r,0),s=(l-o)*.5,u=o+s,c=t.startAngle,h=t.endAngle,v=t.clockwise,d=Math.PI*2,g=v?h-cMath.PI/2&&cl)return!0;l=h}return!1},a.prototype._isOrderDifferentInView=function(e,t){for(var i=t.scale,n=i.getExtent(),o=Math.max(0,n[0]),l=Math.min(n[1],i.getOrdinalMeta().categories.length-1);o<=l;++o)if(e.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},a.prototype._updateSortWithinSameData=function(e,t,i,n){if(this._isOrderChangedWithinSameData(e,t,i)){var o=this._dataSort(e,i,t);this._isOrderDifferentInView(o,i)&&(this._removeOnRenderedListener(n),n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:o}))}},a.prototype._dispatchInitSort=function(e,t,i){var n=t.baseAxis,o=this._dataSort(e,n,function(l){return e.get(e.mapDimension(t.otherAxis.dim),l)});i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",isInitSort:!0,axisId:n.index,sortInfo:o})},a.prototype.remove=function(e,t){this._clear(this._model),this._removeOnRenderedListener(t)},a.prototype.dispose=function(e,t){this._removeOnRenderedListener(t)},a.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},a.prototype._clear=function(e){var t=this.group,i=this._data;e&&e.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(n){qe(n,e,j(n).dataIndex)})):t.removeAll(),this._data=null,this._isFirstFrame=!0},a.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},a.type="bar",a}(aa),Ot={cartesian2d:function(r,a){var e=a.width<0?-1:1,t=a.height<0?-1:1;e<0&&(a.x+=a.width,a.width=-a.width),t<0&&(a.y+=a.height,a.height=-a.height);var i=r.x+r.width,n=r.y+r.height,o=Xe(a.x,r.x),l=Ue(a.x+a.width,i),s=Xe(a.y,r.y),u=Ue(a.y+a.height,n),c=li?l:o,a.y=h&&s>n?u:s,a.width=c?0:l-o,a.height=h?0:u-s,e<0&&(a.x+=a.width,a.width=-a.width),t<0&&(a.y+=a.height,a.height=-a.height),c||h},polar:function(r,a){var e=a.r0<=a.r?1:-1;if(e<0){var t=a.r;a.r=a.r0,a.r0=t}var i=Ue(a.r,r.r),n=Xe(a.r0,r.r0);a.r=i,a.r0=n;var o=i-n<0;if(e<0){var t=a.r;a.r=a.r0,a.r0=t}return o}},Mt={cartesian2d:function(r,a,e,t,i,n,o,l,s){var u=new de({shape:V({},t),z2:1});if(u.__dataIndex=e,u.name="item",n){var c=u.shape,h=i?"height":"width";c[h]=0}return u},polar:function(r,a,e,t,i,n,o,l,s){var u=!i&&s?kt:Be,c=new u({shape:t,z2:1});c.name="item";var h=fa(i);if(c.calculateTextPosition=Pi(h,{isRoundCap:u===kt}),n){var v=c.shape,d=i?"r":"endAngle",g={};v[d]=i?t.r0:t.startAngle,g[d]=t[d],(l?ae:oe)(c,{shape:g},n)}return c}};function Ri(r,a){var e=r.get("realtimeSort",!0),t=a.getBaseAxis();if(e&&t.type==="category"&&a.type==="cartesian2d")return{baseAxis:t,otherAxis:a.getOtherAxis(t)}}function Rt(r,a,e,t,i,n,o,l){var s,u;n?(u={x:t.x,width:t.width},s={y:t.y,height:t.height}):(u={y:t.y,height:t.height},s={x:t.x,width:t.width}),l||(o?ae:oe)(e,{shape:s},a,i,null);var c=a?r.baseAxis.model:null;(o?ae:oe)(e,{shape:u},c,i)}function Bt(r,a){for(var e=0;e0?1:-1,o=t.height>0?1:-1;return{x:t.x+n*i/2,y:t.y+o*i/2,width:t.width-n*i,height:t.height-o*i}},polar:function(r,a,e){var t=r.getItemLayout(a);return{cx:t.cx,cy:t.cy,r0:t.r0,r:t.r,startAngle:t.startAngle,endAngle:t.endAngle,clockwise:t.clockwise}}};function Vi(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function fa(r){return function(a){var e=a?"Arc":"Angle";return function(t){switch(t){case"start":case"insideStart":case"end":case"insideEnd":return t+e;default:return t}}}(r)}function Vt(r,a,e,t,i,n,o,l){var s=a.getItemVisual(e,"style");if(l){if(!n.get("roundCap")){var c=r.shape,h=be(t.getModel("itemStyle"),c,!0);V(c,h),r.setShape(c)}}else{var u=t.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(s);var v=t.getShallow("cursor");v&&r.attr("cursor",v);var d=l?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?i.height>=0?"bottom":"top":i.width>=0?"right":"left",g=ra(t);et(r,g,{labelFetcher:n,labelDataIndex:e,defaultText:fr(n.getData(),e),inheritColor:s.fill,defaultOpacity:s.opacity,defaultOutsidePosition:d});var f=r.getTextContent();if(l&&f){var _=t.get(["label","position"]);r.textConfig.inside=_==="middle"?!0:null,ki(r,_==="outside"?d:_,fa(o),t.get(["label","rotate"]))}pr(f,g,n.getRawValue(e),function(p){return yr(a,p)});var y=t.getModel(["emphasis"]);ia(r,y.get("focus"),y.get("blurScope"),y.get("disabled")),na(r,t),Vi(i)&&(r.style.fill="none",r.style.stroke="none",O(r.states,function(p){p.style&&(p.style.fill=p.style.stroke="none")}))}function Gi(r,a){var e=r.get(["itemStyle","borderColor"]);if(!e||e==="none")return 0;var t=r.get(["itemStyle","borderWidth"])||0,i=isNaN(a.width)?Number.MAX_VALUE:Math.abs(a.width),n=isNaN(a.height)?Number.MAX_VALUE:Math.abs(a.height);return Math.min(t,i,n)}var zi=function(){function r(){}return r}(),Gt=function(r){N(a,r);function a(e){var t=r.call(this,e)||this;return t.type="largeBar",t}return a.prototype.getDefaultShape=function(){return new zi},a.prototype.buildPath=function(e,t){for(var i=t.points,n=this.baseDimIdx,o=1-this.baseDimIdx,l=[],s=[],u=this.barWidth,c=0;c=0?e:null},30,!1);function Ei(r,a,e){for(var t=r.baseDimIdx,i=1-t,n=r.shape.points,o=r.largeDataIndices,l=[],s=[],u=r.barWidth,c=0,h=n.length/3;c=l[0]&&a<=l[0]+s[0]&&e>=l[1]&&e<=l[1]+s[1])return o[c]}return-1}function pa(r,a,e){if(oa(e,"cartesian2d")){var t=a,i=e.getArea();return{x:r?t.x:i.x,y:r?i.y:t.y,width:r?t.width:i.width,height:r?i.height:t.height}}else{var i=e.getArea(),n=a;return{cx:i.cx,cy:i.cy,r0:r?i.r0:n.r0,r:r?i.r:n.r,startAngle:r?n.startAngle:0,endAngle:r?n.endAngle:Math.PI*2}}}function Wi(r,a,e){var t=r.type==="polar"?Be:de;return new t({shape:pa(a,e,r),silent:!0,z2:0})}const Fi=Mi;function Hi(r){r.registerChartView(Fi),r.registerSeriesModel(Di),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,Z(Sr,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,_r("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,br("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(a,e){var t=a.componentType||"series";e.eachComponent({mainType:t,query:a},function(i){a.sortInfo&&i.axis.setCategorySortInfo(a.sortInfo)})})}var Pe=Math.PI*2,Wt=Math.PI/180;function ma(r,a){return Me(r.getBoxLayoutParams(),{width:a.getWidth(),height:a.getHeight()})}function ya(r,a){var e=ma(r,a),t=r.get("center"),i=r.get("radius");E(i)||(i=[0,i]);var n=H(e.width,a.getWidth()),o=H(e.height,a.getHeight()),l=Math.min(n,o),s=H(i[0],l/2),u=H(i[1],l/2),c,h,v=r.coordinateSystem;if(v){var d=v.dataToPoint(t);c=d[0]||0,h=d[1]||0}else E(t)||(t=[t,t]),c=H(t[0],n)+e.x,h=H(t[1],o)+e.y;return{cx:c,cy:h,r0:s,r:u}}function Yi(r,a,e){a.eachSeriesByType(r,function(t){var i=t.getData(),n=i.mapDimension("value"),o=ma(t,e),l=ya(t,e),s=l.cx,u=l.cy,c=l.r,h=l.r0,v=-t.get("startAngle")*Wt,d=t.get("minAngle")*Wt,g=0;i.each(n,function(L){!isNaN(L)&&g++});var f=i.getSum(n),_=Math.PI/(f||g)*2,y=t.get("clockwise"),p=t.get("roseType"),m=t.get("stillShowZeroSum"),S=i.getDataExtent(n);S[0]=0;var b=Pe,x=0,T=v,w=y?1:-1;if(i.setLayout({viewRect:o,r:c}),i.each(n,function(L,C){var A;if(isNaN(L)){i.setItemLayout(C,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:y,cx:s,cy:u,r0:h,r:p?NaN:c});return}p!=="area"?A=f===0&&m?_:L*_:A=Pe/g,Ae?y:_,b=Math.abs(m.label.y-e);if(b>=S.maxY){var x=m.label.x-a-m.len2*i,T=t+m.len,w=Math.abs(x)r.unconstrainedWidth?null:d:null;t.setStyle("width",g)}var f=t.getBoundingRect();n.width=f.width;var _=(t.style.margin||0)+2.1;n.height=f.height+_,n.y-=(n.height-h)/2}}}function $e(r){return r.position==="center"}function qi(r){var a=r.getData(),e=[],t,i,n=!1,o=(r.get("minShowLabelAngle")||0)*Ui,l=a.getLayout("viewRect"),s=a.getLayout("r"),u=l.width,c=l.x,h=l.y,v=l.height;function d(x){x.ignore=!0}function g(x){if(!x.ignore)return!0;for(var T in x.states)if(x.states[T].ignore===!1)return!0;return!1}a.each(function(x){var T=a.getItemGraphicEl(x),w=T.shape,I=T.getTextContent(),L=T.getTextGuideLine(),C=a.getItemModel(x),A=C.getModel("label"),D=A.get("position")||C.get(["emphasis","label","position"]),M=A.get("distanceToLabelLine"),P=A.get("alignTo"),Q=H(A.get("edgeDistance"),u),Ne=A.get("bleedMargin"),R=C.getModel("labelLine"),$=R.get("length");$=H($,u);var ie=R.get("length2");if(ie=H(ie,u),Math.abs(w.endAngle-w.startAngle)0?"right":"left":G>0?"left":"right"}var ge=Math.PI,le=0,fe=A.get("rotate");if(Re(fe))le=fe*(ge/180);else if(D==="center")le=0;else if(fe==="radial"||fe===!0){var ba=G<0?-J+ge:-J;le=ba}else if(fe==="tangential"&&D!=="outside"&&D!=="outer"){var ue=Math.atan2(G,ne);ue<0&&(ue=ge*2+ue);var Sa=ne>0;Sa&&(ue=ge+ue),le=ue-ge}if(n=!!le,I.x=ve,I.y=Ce,I.rotation=le,I.setStyle({verticalAlign:"middle"}),se){I.setStyle({align:Te});var ze=I.states.select;ze&&(ze.x+=I.x,ze.y+=I.y)}else{var pe=I.getBoundingRect().clone();pe.applyTransform(I.getComputedTransform());var ut=(I.style.margin||0)+2.1;pe.y-=ut/2,pe.height+=ut,e.push({label:I,labelLine:L,position:D,len:$,len2:ie,minTurnAngle:R.get("minTurnAngle"),maxSurfaceAngle:R.get("maxSurfaceAngle"),surfaceNormal:new bt(G,ne),linePoints:it,textAlign:Te,labelDistance:M,labelAlignTo:P,edgeDistance:Q,bleedMargin:Ne,rect:pe,unconstrainedWidth:pe.width,labelStyleWidth:I.style.width})}T.setTextConfig({inside:se})}}),!n&&r.get("avoidLabelOverlap")&&$i(e,t,i,s,u,v,c,h);for(var f=0;f0){for(var c=o.getItemLayout(0),h=1;isNaN(c&&c.startAngle)&&h=n.r0}},a.type="pie",a}(aa);const Ki=Zi;function Qi(r,a,e){a=E(a)&&{coordDimensions:a}||V({encodeDefine:r.getEncode()},a);var t=r.getSource(),i=Pr(t,a).dimensions,n=new kr(i,r);return n.initData(t,e),n}var Ji=function(){function r(a,e){this._getDataWithEncodedVisual=a,this._getRawData=e}return r.prototype.getAllNames=function(){var a=this._getRawData();return a.mapArray(a.getName)},r.prototype.containName=function(a){var e=this._getRawData();return e.indexOfName(a)>=0},r.prototype.indexOfName=function(a){var e=this._getDataWithEncodedVisual();return e.indexOfName(a)},r.prototype.getItemVisual=function(a,e){var t=this._getDataWithEncodedVisual();return t.getItemVisual(a,e)},r}();const en=Ji;var tn=Br(),an=function(r){N(a,r);function a(){return r!==null&&r.apply(this,arguments)||this}return a.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new en(K(this.getData,this),K(this.getRawData,this)),this._defaultLabelLine(e)},a.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},a.prototype.getInitialData=function(){return Qi(this,{coordDimensions:["value"],encodeDefaulter:Z(Or,this)})},a.prototype.getDataParams=function(e){var t=this.getData(),i=tn(t),n=i.seats;if(!n){var o=[];t.each(t.mapDimension("value"),function(s){o.push(s)}),n=i.seats=Mr(o,t.hostModel.get("percentPrecision"))}var l=r.prototype.getDataParams.call(this,e);return l.percent=n[e]||0,l.$vars.push("percent"),l},a.prototype._defaultLabelLine=function(e){Rr(e,"labelLine",["show"]);var t=e.labelLine,i=e.emphasis.labelLine;t.show=t.show&&e.label.show,i.show=i.show&&e.emphasis.label.show},a.type="series.pie",a.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"},a}(at);const rn=an;function nn(r){return{seriesType:r,reset:function(a,e){var t=a.getData();t.filterSelf(function(i){var n=t.mapDimension("value"),o=t.get(n,i);return!(Re(o)&&!isNaN(o)&&o<0)})}}}function on(r){r.registerChartView(Ki),r.registerSeriesModel(rn),Nr("pie",r.registerAction),r.registerLayout(Z(Yi,"pie")),r.registerProcessor(Xi("pie")),r.registerProcessor(nn("pie"))}const re=r=>(La("data-v-909e8a4d"),r=r(),Pa(),r),sn={class:"container"},ln={class:"title"},un=re(()=>k("span",null,null,-1)),cn=re(()=>k("a",{href:""}," 审定核证项目列表 ",-1)),hn={class:"content-wrap"},dn={key:0,class:"template_image"},vn={class:"filter-bar"},gn={key:0,class:"button-right"},fn={class:"content"},pn={key:1,class:"template_text"},mn={class:"card-header"},yn={class:"text item"},_n={class:"card-header"},bn={class:"text item"},Sn={key:2,class:"template_imagetext"},xn={class:"result"},wn={class:"template_chart_head"},Cn=re(()=>k("div",{class:"result-title"},[k("span"),z(" 项目结论")],-1)),Tn={class:"result"},An={class:"chart"},Dn={class:"chart-item chart-item-left"},In=re(()=>k("div",{class:"product-title"},[k("span"),z(" 项目信息")],-1)),Ln={class:"product-content"},Pn={class:"item"},kn={class:"item-count"},On=re(()=>k("span",null,"tCO2eq",-1)),Mn={class:"item"},Rn={class:"item-count"},Bn=re(()=>k("span",null,"tCO2eq ",-1)),Nn={class:"item"},Vn={class:"item-count"},Gn=re(()=>k("span",null,"% ",-1)),zn=re(()=>k("div",{id:"chart_man",style:{width:"100%",height:"70%"}},null,-1)),En=Aa('
单位面积碳储量tCO2eq/公
碳储量tCO2eq
',1),Wn={__name:"detail",setup(r){we([Vr,Gr,zr,Er,Hi,on,Wr,Ti,hi]);const a={boundary:{label:"项目边界范围",template:"image"},landUse:{label:"土地利用状况",template:"image"},plant:{label:"植物净初级生产力",template:"image"},turn:{label:"碳逆转风险监测",template:"image"},adapt:{label:"适用性条件检查",template:"text"},extra:{label:"额外性论证",template:"text"},sampleResult:{label:"样地抽样结果",template:"imagetext"},reservesResult:{label:"碳储量监测结果",template:"image"},reservesExtent:{label:"结果汇总",name:"reservesExtent",template:"chart"}};xa();const e=wa(),t=ce(""),i=ce("boundary"),n=ce(""),o=ce([]),l=ce(!1),s=ce({}),u=()=>{switch(n.value=a[i.value].template,console.log(n.value),n.value){case"image":setTimeout(()=>{o.value=[],t.value="",o.value=s.value[i.value],o.value.length&&(t.value=o.value[0].img)},0);break;case"text":case"imagetext":setTimeout(()=>{o.value=s.value[i.value],i.value==="adapt"?o.value.extra="适用性条件":i.value==="extra"&&(o.value.extra="免予论证额外性条件")});break;case"chart":setTimeout(()=>{v([{value:s.value.field,name:"项目区面积"},{value:s.value.field,name:"样地数"}]),_(s.value.reservesExtent),y(s.value.reserves)},500);break}console.log(o.value)},c=()=>{},h=async()=>{let{id:p}=e.query,{code:m=0,data:S={}}=await ka.getDetailData(p);if(m)return Da.error(errMsg);console.log(S),S.baseline=S.boundary.baseline,S.boundary=[{name:"基准",img:S.boundary.baseline},{name:"检测",img:S.boundary.monitor}],s.value=S,u()},v=p=>{var m=document.getElementById("chart_man");console.log(m);var S=Fe(m);S.setOption({tooltip:{trigger:"item"},legend:{top:"5%",left:"center",textStyle:{color:"#fff"}},series:[{name:"Access From",type:"pie",radius:["40%","70%"],avoidLabelOverlap:!1,label:{show:!0,color:"#fff",formatter:b=>b.name+b.value+`${b.name=="项目区面积"?"公顷":""}`},data:p}],color:["#1AD443",d]})},d=new We(1,0,0,0,[{offset:0,color:"#3B65F5"},{offset:1,color:"#435CB4"}]),g=new We(0,0,0,1,[{offset:0,color:"#36EBCA"},{offset:.7,color:"#1C6371"},{offset:1,color:"#0f1d4300"}]),f=new We(0,0,0,1,[{offset:0,color:"#FFBE15"},{offset:.7,color:"#b69624e8"},{offset:1,color:"#433b0f00"}]),_=p=>{var m=document.getElementById("chart_man1");console.log(m);var S=Fe(m);S.setOption({grid:{x:50,y:35,x2:30,y2:35},xAxis:{type:"category",data:p.map(b=>b.name),axisLabel:{color:"#fff"}},yAxis:{type:"value",axisLabel:{color:"#fff"},splitLine:{show:!0,lineStyle:{type:"dashed",color:"#ffffff26"}}},legend:{top:0,right:60,icon:"circle",textStyle:{color:"#fff"}},series:[{data:p.map(b=>b.count),type:"bar",name:"实测数据",barWidth:6,itemStyle:{borderRadius:6}},{data:p.map(b=>b.sCount),type:"bar",name:"卫星数据",barWidth:6,itemStyle:{borderRadius:6}}],color:[g,f]})},y=p=>{var m=document.getElementById("chart_man2"),S=Fe(m);S.setOption({grid:{x:50,y:35,x2:30,y2:35},xAxis:{type:"category",data:p.map(b=>b.name),axisLabel:{color:"#fff"}},yAxis:{type:"value",axisLabel:{color:"#fff"},splitLine:{show:!0,lineStyle:{type:"dashed",color:"#ffffff26"}}},legend:{top:0,right:60,icon:"circle",textStyle:{color:"#fff"}},series:[{data:p.map(b=>b.count),type:"bar",name:"实测数据",barWidth:6,itemStyle:{borderRadius:6}},{data:p.map(b=>b.sCount),type:"bar",name:"卫星数据",barWidth:6,itemStyle:{borderRadius:6}}],color:[g,f]})};return Ca(()=>{h()}),(p,m)=>{const S=W("el-tab-pane"),b=W("el-tabs"),x=W("el-option"),T=W("el-select"),w=W("el-button"),I=W("el-image"),L=W("el-card"),C=W("el-col"),A=W("el-row"),D=W("el-input"),M=W("el-dialog");return q(),ee("div",sn,[k("h1",ln,[un,cn,z(" - "+U(s.value.name),1)]),B(b,{modelValue:i.value,"onUpdate:modelValue":m[0]||(m[0]=P=>i.value=P),class:"tabs",onTabChange:u},{default:F(()=>[(q(),ee(ht,null,dt(a,(P,Q)=>B(S,{label:P.label,name:Q},null,8,["label","name"])),64))]),_:1},8,["modelValue"]),k("div",hn,[n.value=="image"?(q(),ee("div",dn,[k("div",vn,[z(" 筛选: "),B(T,{modelValue:t.value,"onUpdate:modelValue":m[1]||(m[1]=P=>t.value=P),class:"m-2",placeholder:"请选择",onChange:c},{default:F(()=>[(q(!0),ee(ht,null,dt(o.value,(P,Q)=>(q(),Ia(x,{key:P.img,label:P.name,value:P.img},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),i.value=="reservesResult"?(q(),ee("div",gn,[z(" 实测数据与卫星遥感数据比对: "),B(w,{type:"primary",onClick:m[2]||(m[2]=P=>l.value=!0)},{default:F(()=>[z("查看")]),_:1})])):ct("",!0)]),k("div",fn,[B(I,{style:{margin:"20px auto 0","max-width":"900px",display:"block"},src:t.value,fit:"contain"},null,8,["src"])])])):n.value=="text"?(q(),ee("div",pn,[B(A,null,{default:F(()=>[B(C,{span:11},{default:F(()=>[B(L,{class:"box-card"},{header:F(()=>[k("div",mn,[k("span",null,"方法学"+U(o.value.name)+U(o.value.extra),1)])]),default:F(()=>[k("div",yn,[k("pre",null,U(o.value.content),1)])]),_:1})]),_:1}),B(C,{span:11},{default:F(()=>[B(L,{class:"box-card"},{header:F(()=>[k("div",_n,[k("span",null,U(o.value.extra)+"检查",1)])]),default:F(()=>[k("div",bn,[k("pre",null,U(o.value.result),1)])]),_:1})]),_:1})]),_:1})])):n.value=="imagetext"?(q(),ee("div",Sn,[k("div",xn,U(o.value.desc),1),B(I,{style:{width:"100%",height:"100%","margin-top":"50px"},src:o.value.img,fit:"contain"},null,8,["src"])])):n.value=="chart"?(q(),ee("div",{key:3,class:"template_chart",style:Ta({"background-image":"url("+s.value.baseline+")"})},[k("section",wn,[Cn,k("div",Tn,[B(D,{class:"row-input",modelValue:s.value.conclusion,"onUpdate:modelValue":m[3]||(m[3]=P=>s.value.conclusion=P),rows:5,type:"textarea",disabled:""},null,8,["modelValue"])])]),k("div",An,[k("div",Dn,[In,k("ul",Ln,[k("li",Pn,[z(" 实地监测碳减排 "),k("div",kn,[z(U(s.value.field),1),On])]),k("li",Mn,[z(" 卫星遥感碳减排 "),k("div",Rn,[z(U(s.value.satellite),1),Bn])]),k("li",Nn,[z(" 实地/卫星遥感监测变化率 "),k("div",Vn,[z(U(s.value.satellite-s.value.field/s.value.field*100)+" ",1),Gn])])]),zn]),En])],4)):ct("",!0)]),B(M,{modelValue:l.value,"onUpdate:modelValue":m[4]||(m[4]=P=>l.value=P),width:"60%","before-close":p.handleClose},{default:F(()=>[B(I,{src:s.value.contrast,fit:p.fit},null,8,["src","fit"])]),_:1},8,["modelValue","before-close"])])}}},Un=Oa(Wn,[["__scopeId","data-v-909e8a4d"]]);export{Un as default};