@qaecy/cue-ui 0.0.38 → 0.0.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/571.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkcue_ui=self.webpackChunkcue_ui||[]).push([[571],{6756(ql,bn,Y){Y.d(bn,{BK:()=>wr,In:()=>ra,Kz:()=>na,Mc:()=>ia,U6:()=>Ur,g0:()=>yi,g8:()=>Yr,r:()=>Gt,u9:()=>Mr});const wr=["#2B5DE6","#1A2B50","#C5E045","#6FA8FF","#00C2E0","#5847EB","#008585","#4ADE80","#0F4C81","#8B5CF6","#FACC15","#FB923C","#F43F5E","#E879F9","#D97706","#334155","#64748B","#94A3B8","#C7D2FE","#F8FAFC"];function Gt(B){switch(B){case"primary":default:return"#2859e1";case"accent":return"#e2f552";case"tertiary":return"#ffffff"}}function Ur(B){switch(B){case"primary":default:return"#1744c2";case"accent":return"#b8cc3f";case"tertiary":return"#eeeeee"}}function Yr(B){const[j,qe,P]=function Dr(B,j){if(void 0===B)return[];const P=window.getComputedStyle(B.nativeElement);return j.map(Z=>P.getPropertyValue(Z).trim()||"")}(B,["--cue-chart-text-color","--cue-chart-border-background-color","--chart-graph-edge-color"]);return{text:j,borderBackground:qe,edgeColor:P}}const Mr={fontFamily:"Poppins, sans-serif",fontWeight:"normal",color:"#333"};function ra(B){return B>=1e6?`${(B/1e6).toFixed(1)}m`:B>=1e3?`${(B/1e3).toFixed(0)}k`:B.toString()}function na(B,j,qe,P){if(1===P)return B;const Z=Ee(B),tt=Ee(j),_t=qe/(P-1);return`rgb(${Math.round(Z.r+(tt.r-Z.r)*_t)}, ${Math.round(Z.g+(tt.g-Z.g)*_t)}, ${Math.round(Z.b+(tt.b-Z.b)*_t)})`}const ia=(B,j)=>void 0===j?B:j.children??[];function yi(B,j,qe=.05,P="Other"){const Z=B.reduce((Le,rt)=>Le+ce(rt),0),tt=[],_t=[];if(B.forEach(Le=>{let rt,Vt;rt=void 0===Le.value&&Array.isArray(Le.children)&&Le.children.length>0?Le.children.reduce((So,Ul)=>So+ce(Ul),0):void 0!==Le.value?Le.value:0,Array.isArray(Le.children)&&Le.children.length>0&&(Vt=yi(Le.children,j,qe,P));const _i={...Le,value:rt,children:Vt};j&&Z>0&&rt/Z<qe?_t.push(_i):tt.push(_i)}),j&&_t.length>0){const Le=_t.reduce((rt,Vt)=>rt+Vt.value,0);tt.push({id:"__grouped_small__",name:P,value:Le,children:_t,isGroup:!0})}return tt}function Ee(B){const j=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(B);return j?{r:parseInt(j[1],16),g:parseInt(j[2],16),b:parseInt(j[3],16)}:{r:0,g:0,b:0}}function ce(B){return"number"==typeof B.value?B.value:Array.isArray(B.children)&&B.children.length>0?B.children.reduce((j,qe)=>j+ce(qe),0):0}},4571(ql,bn,Y){Y.d(bn,{BlockProjectDocuments:()=>Z2});var wr={};Y.r(wr),Y.d(wr,{EPSILON:()=>IS,HashMap:()=>Av,RADIAN_TO_DEGREE:()=>Rv,assert:()=>ar,bind:()=>he,clone:()=>se,concatArray:()=>Pv,createCanvas:()=>MS,createHashMap:()=>ae,createObject:()=>la,curry:()=>Ae,defaults:()=>be,disableUserSelect:()=>Ql,each:()=>D,eqNaN:()=>oa,extend:()=>k,filter:()=>Me,find:()=>LS,guid:()=>Zl,hasOwn:()=>J,indexOf:()=>le,inherits:()=>$l,isArray:()=>z,isArrayLike:()=>Ze,isBuiltInObject:()=>Kl,isDom:()=>Si,isFunction:()=>ee,isGradientObject:()=>aa,isImagePatternObject:()=>Dv,isNumber:()=>ge,isObject:()=>$,isPrimitive:()=>bi,isRegExp:()=>PS,isString:()=>U,isStringSafe:()=>wo,isTypedArray:()=>nt,keys:()=>de,logError:()=>To,map:()=>K,merge:()=>Ce,mergeAll:()=>DS,mixin:()=>Wt,noop:()=>it,normalizeCssArray:()=>Mo,reduce:()=>qt,retrieve:()=>sa,retrieve2:()=>Q,retrieve3:()=>$r,setAsPrimitive:()=>Lo,slice:()=>Do,trim:()=>Ut});var Gt={};Y.r(Gt),Y.d(Gt,{add:()=>Jl,applyTransform:()=>Ct,clone:()=>Ev,copy:()=>kS,create:()=>Tn,dist:()=>Ro,distSquare:()=>wn,distance:()=>Po,distanceSquare:()=>Ov,div:()=>HS,dot:()=>GS,len:()=>eu,lenSquare:()=>tu,length:()=>FS,lengthSquare:()=>NS,lerp:()=>Eo,max:()=>Qr,min:()=>Kr,mul:()=>zS,negate:()=>VS,normalize:()=>kv,scale:()=>Ao,scaleAndAdd:()=>BS,set:()=>OS,sub:()=>Iv});var Ur={};Y.r(Ur),Y.d(Ur,{clone:()=>ob,copy:()=>ko,create:()=>Yt,identity:()=>ua,invert:()=>Mn,mul:()=>Dn,rotate:()=>Bo,scale:()=>Gv,translate:()=>Oo});var Yr={};Y.r(Yr),Y.d(Yr,{fastLerp:()=>gd,fastMapToColor:()=>Ib,lerp:()=>md,lift:()=>Cu,liftColor:()=>Su,lum:()=>ga,mapToColor:()=>kb,modifyAlpha:()=>Ob,modifyHSL:()=>Yo,parse:()=>xt,parseCssFloat:()=>tn,parseCssInt:()=>qo,random:()=>Bb,stringify:()=>nn,toHex:()=>Eb});var Dr={};Y.r(Dr),Y.d(Dr,{dispose:()=>mx,disposeAll:()=>yx,getElementSSRData:()=>Cx,getInstance:()=>_x,init:()=>Yu,registerPainter:()=>Gd,registerSSRDataGetter:()=>Vd,version:()=>Sx});var Mr={};Y.r(Mr),Y.d(Mr,{Arc:()=>Ys,BezierCurve:()=>Ec,BoundingRect:()=>ne,Circle:()=>qs,CompoundPath:()=>oy,Ellipse:()=>Lc,Group:()=>Tt,Image:()=>fn,IncrementalDisplayable:()=>cy,Line:()=>Xi,LinearGradient:()=>ly,OrientedBoundingRect:()=>fy,Path:()=>Se,Point:()=>te,Polygon:()=>Rc,Polyline:()=>ja,RadialGradient:()=>uy,Rect:()=>Ye,Ring:()=>Pc,Sector:()=>Xa,Text:()=>Be,WH:()=>vy,XY:()=>hy,applyTransform:()=>zc,calcZ2Range:()=>FM,clipPointsByRect:()=>Cy,clipRectByRect:()=>Sy,createIcon:()=>Ks,ensureCopyRect:()=>$a,ensureCopyTransform:()=>qc,expandOrShrinkRect:()=>Gc,extendPath:()=>py,extendShape:()=>dy,getShapeClass:()=>Oc,getTransform:()=>yy,groupTransition:()=>kM,initProps:()=>cn,isBoundingRectAxisAligned:()=>Wc,isElementRemoved:()=>Bi,lineLineIntersect:()=>by,linePolygonIntersect:()=>OM,makeImage:()=>Bc,makePath:()=>$s,mergePath:()=>my,registerShape:()=>Ft,removeElement:()=>sg,removeElementWithFadeOut:()=>ug,resizePath:()=>Fc,retrieveZInfo:()=>wy,setTooltipConfig:()=>Za,subPixelOptimize:()=>RM,subPixelOptimizeLine:()=>Nc,subPixelOptimizeRect:()=>PM,transformDirection:()=>EM,traverseElements:()=>Ty,traverseUpdateZ:()=>Dy,updateProps:()=>Qt});var Xr={};Y.r(Xr),Y.d(Xr,{createDimensions:()=>IA,createList:()=>kP,createScale:()=>BP,createSymbol:()=>rl,createTextStyle:()=>NP,dataStack:()=>OP,enableHoverEmphasis:()=>Cs,getECData:()=>ve,getLayoutRect:()=>Fr,mixinAxisModelCommonMethods:()=>FP});var xn={};Y.r(xn),Y.d(xn,{MAX_SAFE_INTEGER:()=>Ax,asc:()=>Dx,getPercentWithPrecision:()=>Mx,getPixelPrecision:()=>Yd,getPrecision:()=>cr,getPrecisionSafe:()=>Ud,isNumeric:()=>Zd,isRadianAroundZero:()=>ba,linearMap:()=>os,nice:()=>$u,numericToNumber:()=>Pr,parseDate:()=>Ar,parsePercent:()=>me,quantile:()=>Rx,quantity:()=>jd,quantityExponent:()=>Zu,reformIntervals:()=>Ex,remRadian:()=>ju,round:()=>fr});var ra={};Y.r(ra),Y.d(ra,{format:()=>Ia,parse:()=>Ar,roundTime:()=>Ls});var na={};Y.r(na),Y.d(na,{Arc:()=>Ys,BezierCurve:()=>Ec,BoundingRect:()=>ne,Circle:()=>qs,CompoundPath:()=>oy,Ellipse:()=>Lc,Group:()=>Tt,Image:()=>fn,IncrementalDisplayable:()=>cy,Line:()=>Xi,LinearGradient:()=>ly,Polygon:()=>Rc,Polyline:()=>ja,RadialGradient:()=>uy,Rect:()=>Ye,Ring:()=>Pc,Sector:()=>Xa,Text:()=>Be,clipPointsByRect:()=>Cy,clipRectByRect:()=>Sy,createIcon:()=>Ks,extendPath:()=>py,extendShape:()=>dy,getShapeClass:()=>Oc,getTransform:()=>yy,initProps:()=>cn,makeImage:()=>Bc,makePath:()=>$s,mergePath:()=>my,registerShape:()=>Ft,resizePath:()=>Fc,updateProps:()=>Qt});var Co={};Y.r(Co),Y.d(Co,{addCommas:()=>Kf,capitalFirst:()=>tw,encodeHTML:()=>at,formatTime:()=>ew,formatTpl:()=>tc,getTextRect:()=>qP,getTooltipMarker:()=>Pg,normalizeCssArray:()=>ka,toCamelCase:()=>Qf,truncateText:()=>l1});var ia={};Y.r(ia),Y.d(ia,{bind:()=>he,clone:()=>se,curry:()=>Ae,defaults:()=>be,each:()=>D,extend:()=>k,filter:()=>Me,indexOf:()=>le,inherits:()=>$l,isArray:()=>z,isFunction:()=>ee,isObject:()=>$,isString:()=>U,map:()=>K,merge:()=>Ce,reduce:()=>qt});var yi={};Y.r(yi),Y.d(yi,{Axis:()=>aR,ChartView:()=>Hr,ComponentModel:()=>xe,ComponentView:()=>Bt,List:()=>wh,Model:()=>Fe,PRIORITY:()=>g0,SeriesModel:()=>vn,color:()=>Yr,connect:()=>uA,dataTool:()=>mA,dependencies:()=>UL,disConnect:()=>fA,disconnect:()=>R0,dispose:()=>cA,env:()=>oe,extendChartView:()=>uR,extendComponentModel:()=>oR,extendComponentView:()=>sR,extendSeriesModel:()=>lR,format:()=>Co,getCoordinateSystemDimensions:()=>vA,getInstanceByDom:()=>ph,getInstanceById:()=>hA,getMap:()=>gA,graphic:()=>na,helper:()=>Xr,init:()=>lA,innerDrawElementOnCanvas:()=>Qc,matrix:()=>Ur,number:()=>xn,parseGeoJSON:()=>b_,parseGeoJson:()=>b_,registerAction:()=>ci,registerCoordinateSystem:()=>k0,registerCustomSeries:()=>dA,registerLayout:()=>O0,registerLoading:()=>Ch,registerLocale:()=>Gf,registerMap:()=>F0,registerPostInit:()=>E0,registerPostUpdate:()=>I0,registerPreprocessor:()=>mh,registerProcessor:()=>yh,registerTheme:()=>gh,registerTransform:()=>N0,registerUpdateLifecycle:()=>gl,registerVisual:()=>dn,setCanvasCreator:()=>pA,setPlatformAPI:()=>bv,throttle:()=>Yc,time:()=>ra,use:()=>pn,util:()=>ia,vector:()=>Gt,version:()=>qL,zrUtil:()=>wr,zrender:()=>Dr});var Ee=Y(467),ce=Y(7705),B=Y(5802),j=Y(2271),qe=Y(6114),P=Y(5547),Z=Y(9079),tt=Y(2771),_t=Y(8359),Le=Y(1413),rt=Y(3236),Vt=Y(4226),_i=Y(9974),So=Y(4360),Ul=Y(8750),sS=Y(1584);var uS=Y(5558);const Cv=new B.nKC("NGX_ECHARTS_CONFIG");class fS{constructor(){this.subject=new tt.m(1),this.subscriptions=new _t.yU}doFilter(e){this.subject.next(e)}dispose(){this.subscriptions.unsubscribe()}notEmpty(e,r){this.subscriptions.add(this.subject.subscribe(n=>{if(n[e]){const i=n[e].currentValue;null!=i&&r(i)}}))}has(e,r){this.subscriptions.add(this.subject.subscribe(n=>{n[e]&&r(n[e].currentValue)}))}notFirst(e,r){this.subscriptions.add(this.subject.subscribe(n=>{n[e]&&!n[e].isFirstChange()&&r(n[e].currentValue)}))}notFirstAndEmpty(e,r){this.subscriptions.add(this.subject.subscribe(n=>{if(n[e]&&!n[e].isFirstChange()){const i=n[e].currentValue;null!=i&&r(i)}}))}}let cS=(()=>{class t{constructor(){this.el=(0,B.WQX)(P.aKT),this.ngZone=(0,B.WQX)(B.SKi),this.config=(0,B.WQX)(Cv),this.options=(0,ce.hFB)(null),this.theme=(0,ce.hFB)(this.config.theme??null),this.initOpts=(0,ce.hFB)(null),this.merge=(0,ce.hFB)(null),this.autoResize=(0,ce.hFB)(!0),this.loading=(0,ce.hFB)(!1),this.loadingType=(0,ce.hFB)("default"),this.loadingOpts=(0,ce.hFB)(null),this.chartInit=(0,ce.CGW)(),this.optionsError=(0,ce.CGW)(),this.chartClick=(0,Z.p)(this.createLazyEvent("click")),this.chartDblClick=(0,Z.p)(this.createLazyEvent("dblclick")),this.chartMouseDown=(0,Z.p)(this.createLazyEvent("mousedown")),this.chartMouseMove=(0,Z.p)(this.createLazyEvent("mousemove")),this.chartMouseUp=(0,Z.p)(this.createLazyEvent("mouseup")),this.chartMouseOver=(0,Z.p)(this.createLazyEvent("mouseover")),this.chartMouseOut=(0,Z.p)(this.createLazyEvent("mouseout")),this.chartGlobalOut=(0,Z.p)(this.createLazyEvent("globalout")),this.chartContextMenu=(0,Z.p)(this.createLazyEvent("contextmenu")),this.chartHighlight=(0,Z.p)(this.createLazyEvent("highlight")),this.chartDownplay=(0,Z.p)(this.createLazyEvent("downplay")),this.chartSelectChanged=(0,Z.p)(this.createLazyEvent("selectchanged")),this.chartLegendSelectChanged=(0,Z.p)(this.createLazyEvent("legendselectchanged")),this.chartLegendSelected=(0,Z.p)(this.createLazyEvent("legendselected")),this.chartLegendUnselected=(0,Z.p)(this.createLazyEvent("legendunselected")),this.chartLegendLegendSelectAll=(0,Z.p)(this.createLazyEvent("legendselectall")),this.chartLegendLegendInverseSelect=(0,Z.p)(this.createLazyEvent("legendinverseselect")),this.chartLegendScroll=(0,Z.p)(this.createLazyEvent("legendscroll")),this.chartDataZoom=(0,Z.p)(this.createLazyEvent("datazoom")),this.chartDataRangeSelected=(0,Z.p)(this.createLazyEvent("datarangeselected")),this.chartGraphRoam=(0,Z.p)(this.createLazyEvent("graphroam")),this.chartGeoRoam=(0,Z.p)(this.createLazyEvent("georoam")),this.chartTreeRoam=(0,Z.p)(this.createLazyEvent("treeroam")),this.chartTimelineChanged=(0,Z.p)(this.createLazyEvent("timelinechanged")),this.chartTimelinePlayChanged=(0,Z.p)(this.createLazyEvent("timelineplaychanged")),this.chartRestore=(0,Z.p)(this.createLazyEvent("restore")),this.chartDataViewChanged=(0,Z.p)(this.createLazyEvent("dataviewchanged")),this.chartMagicTypeChanged=(0,Z.p)(this.createLazyEvent("magictypechanged")),this.chartGeoSelectChanged=(0,Z.p)(this.createLazyEvent("geoselectchanged")),this.chartGeoSelected=(0,Z.p)(this.createLazyEvent("geoselected")),this.chartGeoUnselected=(0,Z.p)(this.createLazyEvent("geounselected")),this.chartAxisAreaSelected=(0,Z.p)(this.createLazyEvent("axisareaselected")),this.chartBrush=(0,Z.p)(this.createLazyEvent("brush")),this.chartBrushEnd=(0,Z.p)(this.createLazyEvent("brushend")),this.chartBrushSelected=(0,Z.p)(this.createLazyEvent("brushselected")),this.chartGlobalCursorTaken=(0,Z.p)(this.createLazyEvent("globalcursortaken")),this.chartRendered=(0,Z.p)(this.createLazyEvent("rendered")),this.chartFinished=(0,Z.p)(this.createLazyEvent("finished")),this.animationFrameID=null,this.chart$=new tt.m(1),this.resize$=new Le.B,this.changeFilter=new fS,this.resizeObFired=!1,this.echarts=this.config.echarts}ngOnChanges(r){this.changeFilter.doFilter(r)}ngOnInit(){if(!window.ResizeObserver)throw new Error("please install a polyfill for ResizeObserver");this.resizeSub=this.resize$.pipe(function lS(t,e=rt.E,r){const n=(0,sS.O)(t,e);return function oS(t,e){return(0,_i.N)((r,n)=>{const{leading:i=!0,trailing:a=!1}=e??{};let o=!1,s=null,l=null,u=!1;const f=()=>{l?.unsubscribe(),l=null,a&&(h(),u&&n.complete())},c=()=>{l=null,u&&n.complete()},v=d=>l=(0,Ul.Tg)(t(d)).subscribe((0,So._)(n,f,c)),h=()=>{if(o){o=!1;const d=s;s=null,n.next(d),!u&&v(d)}};r.subscribe((0,So._)(n,d=>{o=!0,s=d,(!l||l.closed)&&(i?h():v(d))},()=>{u=!0,(!(a&&o&&l)||l.closed)&&n.complete()}))})}(()=>n,r)}(100,rt.E,{leading:!1,trailing:!0})).subscribe(()=>this.resize()),this.autoResize()&&(this.resizeOb=this.ngZone.runOutsideAngular(()=>new window.ResizeObserver(r=>{for(const n of r)n.target===this.el.nativeElement&&(this.resizeObFired?this.animationFrameID=window.requestAnimationFrame(()=>{this.resize$.next()}):this.resizeObFired=!0)})),this.resizeOb.observe(this.el.nativeElement)),this.changeFilter.notFirstAndEmpty("options",r=>this.onOptionsChange(r)),this.changeFilter.notFirstAndEmpty("merge",r=>this.setOption(r)),this.changeFilter.has("loading",r=>this.toggleLoading(!!r)),this.changeFilter.notFirst("theme",()=>this.refreshChart())}ngOnDestroy(){window.clearTimeout(this.initChartTimer),this.resizeSub&&this.resizeSub.unsubscribe(),this.animationFrameID&&window.cancelAnimationFrame(this.animationFrameID),this.resizeOb&&this.resizeOb.unobserve(this.el.nativeElement),this.loadingSub&&this.loadingSub.unsubscribe(),this.changeFilter.dispose(),this.dispose()}ngAfterViewInit(){this.initChartTimer=window.setTimeout(()=>this.initChart())}dispose(){this.chart&&(this.chart.isDisposed()||this.chart.dispose(),this.chart=null)}resize(){this.chart&&this.chart.resize()}toggleLoading(r){this.chart?r?this.chart.showLoading(this.loadingType(),this.loadingOpts()):this.chart.hideLoading():this.loadingSub=this.chart$.subscribe(n=>r?n.showLoading(this.loadingType(),this.loadingOpts()):n.hideLoading())}setOption(r,n){if(this.chart)try{this.chart.setOption(r,n)}catch(i){console.error(i),this.optionsError.emit(i)}}refreshChart(){var r=this;return(0,Ee.A)(function*(){r.dispose(),yield r.initChart()})()}createChart(){const r=this.el.nativeElement;if(window&&window.getComputedStyle){const n=window.getComputedStyle(r,null).getPropertyValue("height");(!n||"0px"===n)&&(!r.style.height||"0px"===r.style.height)&&(r.style.height="400px")}return this.ngZone.runOutsideAngular(()=>("function"==typeof this.echarts?this.echarts:()=>Promise.resolve(this.echarts))().then(({init:i})=>i(r,this.theme()??this.config?.theme,this.initOpts())))}initChart(){var r=this;return(0,Ee.A)(function*(){yield r.onOptionsChange(r.options());const n=r.merge();n&&r.chart&&r.setOption(n)})()}onOptionsChange(r){var n=this;return(0,Ee.A)(function*(){r&&(n.chart||(n.chart=yield n.createChart(),n.chart$.next(n.chart),n.chartInit.emit(n.chart)),n.setOption(n.options(),!0))})()}createLazyEvent(r){return(0,Z.yC)(this.chartInit).pipe((0,uS.n)(n=>new Vt.c(i=>(n.on(r,a=>this.ngZone.run(()=>i.next(a))),()=>{this.chart&&(this.chart.isDisposed()||n.off(r))}))))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275dir=P.FsC({type:t,selectors:[["echarts"],["","echarts",""]],inputs:{options:[1,"options"],theme:[1,"theme"],initOpts:[1,"initOpts"],merge:[1,"merge"],autoResize:[1,"autoResize"],loading:[1,"loading"],loadingType:[1,"loadingType"],loadingOpts:[1,"loadingOpts"]},outputs:{chartInit:"chartInit",optionsError:"optionsError",chartClick:"chartClick",chartDblClick:"chartDblClick",chartMouseDown:"chartMouseDown",chartMouseMove:"chartMouseMove",chartMouseUp:"chartMouseUp",chartMouseOver:"chartMouseOver",chartMouseOut:"chartMouseOut",chartGlobalOut:"chartGlobalOut",chartContextMenu:"chartContextMenu",chartHighlight:"chartHighlight",chartDownplay:"chartDownplay",chartSelectChanged:"chartSelectChanged",chartLegendSelectChanged:"chartLegendSelectChanged",chartLegendSelected:"chartLegendSelected",chartLegendUnselected:"chartLegendUnselected",chartLegendLegendSelectAll:"chartLegendLegendSelectAll",chartLegendLegendInverseSelect:"chartLegendLegendInverseSelect",chartLegendScroll:"chartLegendScroll",chartDataZoom:"chartDataZoom",chartDataRangeSelected:"chartDataRangeSelected",chartGraphRoam:"chartGraphRoam",chartGeoRoam:"chartGeoRoam",chartTreeRoam:"chartTreeRoam",chartTimelineChanged:"chartTimelineChanged",chartTimelinePlayChanged:"chartTimelinePlayChanged",chartRestore:"chartRestore",chartDataViewChanged:"chartDataViewChanged",chartMagicTypeChanged:"chartMagicTypeChanged",chartGeoSelectChanged:"chartGeoSelectChanged",chartGeoSelected:"chartGeoSelected",chartGeoUnselected:"chartGeoUnselected",chartAxisAreaSelected:"chartAxisAreaSelected",chartBrush:"chartBrush",chartBrushEnd:"chartBrushEnd",chartBrushSelected:"chartBrushSelected",chartGlobalCursorTaken:"chartGlobalCursorTaken",chartRendered:"chartRendered",chartFinished:"chartFinished"},exportAs:["echarts"],features:[P.OA$]})}}return t})();function Sv(t){return{provide:Cv,useValue:t}}let hS=(()=>{class t{static forRoot(r){return{ngModule:t,providers:[Sv(r)]}}static forChild(){return{ngModule:t}}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=P.$C({type:t})}static{this.\u0275inj=B.G2t({})}}return t})();var X=Y(5215),vS=function(){return function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}}(),jr=new(function(){return function t(){this.browser=new vS,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}}());"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(jr.wxa=!0,jr.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?jr.worker=!0:!jr.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&"string"==typeof navigator.userAgent&&navigator.userAgent.indexOf("Node.js")>-1?(jr.node=!0,jr.svgSupported=!0):function pS(t,e){var r=e.browser,n=t.match(/Firefox\/([\d.]+)/),i=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),a=t.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(t);if(n&&(r.firefox=!0,r.version=n[1]),i&&(r.ie=!0,r.version=i[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(".")[0]>18),o&&(r.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,e.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),e.domSupported=typeof document<"u"){var l=document.documentElement.style;e.transform3dSupported=(r.ie&&"transition"in l||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),e.transformSupported=e.transform3dSupported||r.ie&&+r.version>=9}}(navigator.userAgent,jr);const oe=jr;var Zr="12px sans-serif",SS=function CS(t){var e={};if(typeof JSON>"u")return e;for(var r=0;r<t.length;r++){var n=String.fromCharCode(r+32),i=(t.charCodeAt(r)-20)/100;e[n]=i}return e}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),Lt={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var t,e;return function(r,n){if(!t){var i=Lt.createCanvas();t=i&&i.getContext("2d")}if(t)return e!==n&&(e=t.font=n||Zr),t.measureText(r);r=r||"";var a=/((?:\d+)?\.?\d*)px/.exec(n=n||Zr),o=a&&+a[1]||12,s=0;if(n.indexOf("mono")>=0)s=o*r.length;else for(var l=0;l<r.length;l++){var u=SS[r[l]];s+=null==u?o:u*o}return{width:s}}}(),loadImage:function(t,e,r){var n=new Image;return n.onload=e,n.onerror=r,n.src=t,n}};function bv(t){for(var e in Lt)t[e]&&(Lt[e]=t[e])}var xv=qt(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),Tv=qt(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),Ci=Object.prototype.toString,bo=Array.prototype,bS=bo.forEach,xS=bo.filter,Xl=bo.slice,TS=bo.map,wv=function(){}.constructor,xo=wv?wv.prototype:null,jl="__proto__",wS=2311;function Zl(){return wS++}function To(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];typeof console<"u"&&console.error.apply(console,t)}function se(t){if(null==t||"object"!=typeof t)return t;var e=t,r=Ci.call(t);if("[object Array]"===r){if(!bi(t)){e=[];for(var n=0,i=t.length;n<i;n++)e[n]=se(t[n])}}else if(Tv[r]){if(!bi(t)){var a=t.constructor;if(a.from)e=a.from(t);else for(e=new a(t.length),n=0,i=t.length;n<i;n++)e[n]=t[n]}}else if(!xv[r]&&!bi(t)&&!Si(t))for(var o in e={},t)t.hasOwnProperty(o)&&o!==jl&&(e[o]=se(t[o]));return e}function Ce(t,e,r){if(!$(e)||!$(t))return r?se(e):t;for(var n in e)if(e.hasOwnProperty(n)&&n!==jl){var i=t[n],a=e[n];!$(a)||!$(i)||z(a)||z(i)||Si(a)||Si(i)||Kl(a)||Kl(i)||bi(a)||bi(i)?(r||!(n in t))&&(t[n]=se(e[n])):Ce(i,a,r)}return t}function DS(t,e){for(var r=t[0],n=1,i=t.length;n<i;n++)r=Ce(r,t[n],e);return r}function k(t,e){if(Object.assign)Object.assign(t,e);else for(var r in e)e.hasOwnProperty(r)&&r!==jl&&(t[r]=e[r]);return t}function be(t,e,r){for(var n=de(e),i=0,a=n.length;i<a;i++){var o=n[i];(r?null!=e[o]:null==t[o])&&(t[o]=e[o])}return t}var MS=Lt.createCanvas;function le(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r}return-1}function $l(t,e){var r=t.prototype;function n(){}for(var i in n.prototype=e.prototype,t.prototype=new n,r)r.hasOwnProperty(i)&&(t.prototype[i]=r[i]);t.prototype.constructor=t,t.superClass=e}function Wt(t,e,r){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(e),i=0;i<n.length;i++){var a=n[i];"constructor"!==a&&(r?null!=e[a]:null==t[a])&&(t[a]=e[a])}else be(t,e,r)}function Ze(t){return!(!t||"string"==typeof t)&&"number"==typeof t.length}function D(t,e,r){if(t&&e)if(t.forEach&&t.forEach===bS)t.forEach(e,r);else if(t.length===+t.length)for(var n=0,i=t.length;n<i;n++)e.call(r,t[n],n,t);else for(var a in t)t.hasOwnProperty(a)&&e.call(r,t[a],a,t)}function K(t,e,r){if(!t)return[];if(!e)return Do(t);if(t.map&&t.map===TS)return t.map(e,r);for(var n=[],i=0,a=t.length;i<a;i++)n.push(e.call(r,t[i],i,t));return n}function qt(t,e,r,n){if(t&&e){for(var i=0,a=t.length;i<a;i++)r=e.call(n,r,t[i],i,t);return r}}function Me(t,e,r){if(!t)return[];if(!e)return Do(t);if(t.filter&&t.filter===xS)return t.filter(e,r);for(var n=[],i=0,a=t.length;i<a;i++)e.call(r,t[i],i,t)&&n.push(t[i]);return n}function LS(t,e,r){if(t&&e)for(var n=0,i=t.length;n<i;n++)if(e.call(r,t[n],n,t))return t[n]}function de(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var r in t)t.hasOwnProperty(r)&&e.push(r);return e}var he=xo&&ee(xo.bind)?xo.call.bind(xo.bind):function AS(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return t.apply(e,r.concat(Xl.call(arguments)))}};function Ae(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return function(){return t.apply(this,e.concat(Xl.call(arguments)))}}function z(t){return Array.isArray?Array.isArray(t):"[object Array]"===Ci.call(t)}function ee(t){return"function"==typeof t}function U(t){return"string"==typeof t}function wo(t){return"[object String]"===Ci.call(t)}function ge(t){return"number"==typeof t}function $(t){var e=typeof t;return"function"===e||!!t&&"object"===e}function Kl(t){return!!xv[Ci.call(t)]}function nt(t){return!!Tv[Ci.call(t)]}function Si(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function aa(t){return null!=t.colorStops}function Dv(t){return null!=t.image}function PS(t){return"[object RegExp]"===Ci.call(t)}function oa(t){return t!=t}function sa(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0,n=t.length;r<n;r++)if(null!=t[r])return t[r]}function Q(t,e){return t??e}function $r(t,e,r){return t??e??r}function Do(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return Xl.apply(t,e)}function Mo(t){if("number"==typeof t)return[t,t,t,t];var e=t.length;return 2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function ar(t,e){if(!t)throw new Error(e)}function Ut(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var Mv="__ec_primitive__";function Lo(t){t[Mv]=!0}function bi(t){return t[Mv]}var RS=function(){function t(){this.data={}}return t.prototype.delete=function(e){var r=this.has(e);return r&&delete this.data[e],r},t.prototype.has=function(e){return this.data.hasOwnProperty(e)},t.prototype.get=function(e){return this.data[e]},t.prototype.set=function(e,r){return this.data[e]=r,this},t.prototype.keys=function(){return de(this.data)},t.prototype.forEach=function(e){var r=this.data;for(var n in r)r.hasOwnProperty(n)&&e(r[n],n)},t}(),Lv="function"==typeof Map,Av=function(){function t(e){var r=z(e);this.data=function ES(){return Lv?new Map:new RS}();var n=this;function i(a,o){r?n.set(a,o):n.set(o,a)}e instanceof t?e.each(i):e&&D(e,i)}return t.prototype.hasKey=function(e){return this.data.has(e)},t.prototype.get=function(e){return this.data.get(e)},t.prototype.set=function(e,r){return this.data.set(e,r),r},t.prototype.each=function(e,r){this.data.forEach(function(n,i){e.call(r,n,i)})},t.prototype.keys=function(){var e=this.data.keys();return Lv?Array.from(e):e},t.prototype.removeKey=function(e){this.data.delete(e)},t}();function ae(t){return new Av(t)}function Pv(t,e){for(var r=new t.constructor(t.length+e.length),n=0;n<t.length;n++)r[n]=t[n];var i=t.length;for(n=0;n<e.length;n++)r[n+i]=e[n];return r}function la(t,e){var r;if(Object.create)r=Object.create(t);else{var n=function(){};n.prototype=t,r=new n}return e&&k(r,e),r}function Ql(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function J(t,e){return t.hasOwnProperty(e)}function it(){}var Rv=180/Math.PI,IS=Number.EPSILON||Math.pow(2,-52);function Tn(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function kS(t,e){return t[0]=e[0],t[1]=e[1],t}function Ev(t){return[t[0],t[1]]}function OS(t,e,r){return t[0]=e,t[1]=r,t}function Jl(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t}function BS(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t}function Iv(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t}function eu(t){return Math.sqrt(tu(t))}var FS=eu;function tu(t){return t[0]*t[0]+t[1]*t[1]}var NS=tu;function zS(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t}function HS(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t}function GS(t,e){return t[0]*e[0]+t[1]*e[1]}function Ao(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t}function kv(t,e){var r=eu(e);return 0===r?(t[0]=0,t[1]=0):(t[0]=e[0]/r,t[1]=e[1]/r),t}function Po(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var Ro=Po;function Ov(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var wn=Ov;function VS(t,e){return t[0]=-e[0],t[1]=-e[1],t}function Eo(t,e,r,n){return t[0]=e[0]+n*(r[0]-e[0]),t[1]=e[1]+n*(r[1]-e[1]),t}function Ct(t,e,r){var n=e[0],i=e[1];return t[0]=r[0]*n+r[2]*i+r[4],t[1]=r[1]*n+r[3]*i+r[5],t}function Kr(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t}function Qr(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t}var xi=function(){return function t(e,r){this.target=e,this.topTarget=r&&r.topTarget}}(),WS=function(){function t(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(e){for(var r=e.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new xi(r,e),"dragstart",e.event))},t.prototype._drag=function(e){var r=this._draggingTarget;if(r){var n=e.offsetX,i=e.offsetY,a=n-this._x,o=i-this._y;this._x=n,this._y=i,r.drift(a,o,e),this.handler.dispatchToElement(new xi(r,e),"drag",e.event);var s=this.handler.findHover(n,i,r).target,l=this._dropTarget;this._dropTarget=s,r!==s&&(l&&s!==l&&this.handler.dispatchToElement(new xi(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new xi(s,e),"dragenter",e.event))}},t.prototype._dragEnd=function(e){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new xi(r,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new xi(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},t}();const qS=WS;var US=function(){function t(e){e&&(this._$eventProcessor=e)}return t.prototype.on=function(e,r,n,i){this._$handlers||(this._$handlers={});var a=this._$handlers;if("function"==typeof r&&(i=n,n=r,r=null),!n||!e)return this;var o=this._$eventProcessor;null!=r&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),a[e]||(a[e]=[]);for(var s=0;s<a[e].length;s++)if(a[e][s].h===n)return this;var l={h:n,query:r,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},u=a[e].length-1,f=a[e][u];return f&&f.callAtLast?a[e].splice(u,0,l):a[e].push(l),this},t.prototype.isSilent=function(e){var r=this._$handlers;return!r||!r[e]||!r[e].length},t.prototype.off=function(e,r){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(r){if(n[e]){for(var i=[],a=0,o=n[e].length;a<o;a++)n[e][a].h!==r&&i.push(n[e][a]);n[e]=i}n[e]&&0===n[e].length&&delete n[e]}else delete n[e];return this},t.prototype.trigger=function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[e],a=this._$eventProcessor;if(i)for(var o=r.length,s=i.length,l=0;l<s;l++){var u=i[l];if(!a||!a.filter||null==u.query||a.filter(e,u.query))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,r[0]);break;case 2:u.h.call(u.ctx,r[0],r[1]);break;default:u.h.apply(u.ctx,r)}}return a&&a.afterTrigger&&a.afterTrigger(e),this},t.prototype.triggerWithContext=function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[e],a=this._$eventProcessor;if(i)for(var o=r.length,s=r[o-1],l=i.length,u=0;u<l;u++){var f=i[u];if(!a||!a.filter||null==f.query||a.filter(e,f.query))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,r[0]);break;case 2:f.h.call(s,r[0],r[1]);break;default:f.h.apply(s,r.slice(1,o-1))}}return a&&a.afterTrigger&&a.afterTrigger(e),this},t}();const or=US;var YS=Math.log(2);function ru(t,e,r,n,i,a){var o=n+"-"+i,s=t.length;if(a.hasOwnProperty(o))return a[o];if(1===e){var l=Math.round(Math.log((1<<s)-1&~i)/YS);return t[r][l]}for(var u=n|1<<r,f=r+1;n&1<<f;)f++;for(var c=0,v=0,h=0;v<s;v++){var d=1<<v;d&i||(c+=(h%2?-1:1)*t[r][v]*ru(t,e-1,f,u,i|d,a),h++)}return a[o]=c,c}function Bv(t,e){var r=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],n={},i=ru(r,8,0,0,0,n);if(0!==i){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)null==a[s]&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*ru(r,7,0===o?1:0,1<<o,1<<s,n)/i*e[o];return function(l,u,f){var c=u*a[6]+f*a[7]+1;l[0]=(u*a[0]+f*a[1]+a[2])/c,l[1]=(u*a[3]+f*a[4]+a[5])/c}}}var Io="___zrEVENTSAVED",nu=[];function iu(t,e,r,n,i){if(e.getBoundingClientRect&&oe.domSupported&&!Fv(e)){var a=e[Io]||(e[Io]={}),o=function ZS(t,e){var r=e.markers;if(r)return r;r=e.markers=[];for(var n=["left","right"],i=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),l=a%2,u=(a>>1)%2;o.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",i[u]+":0",n[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),t.appendChild(o),r.push(o)}return e.clearMarkers=function(){D(r,function(f){f.parentNode&&f.parentNode.removeChild(f)})},r}(e,a),s=function $S(t,e,r){for(var n=r?"invTrans":"trans",i=e[n],a=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=t[u].getBoundingClientRect(),c=2*u,v=f.left,h=f.top;o.push(v,h),l=l&&a&&v===a[c]&&h===a[c+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&i?i:(e.srcCoords=o,e[n]=r?Bv(s,o):Bv(o,s))}(o,a,i);if(s)return s(t,r,n),!0}return!1}function Fv(t){return"CANVAS"===t.nodeName.toUpperCase()}var KS=/([&<>"'])/g,QS={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function at(t){return null==t?"":(t+"").replace(KS,function(e,r){return QS[r]})}var JS=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,au=[],eb=oe.browser.firefox&&+oe.browser.version.split(".")[0]<39;function ou(t,e,r,n){return r=r||{},n?Nv(t,e,r):eb&&null!=e.layerX&&e.layerX!==e.offsetX?(r.zrX=e.layerX,r.zrY=e.layerY):null!=e.offsetX?(r.zrX=e.offsetX,r.zrY=e.offsetY):Nv(t,e,r),r}function Nv(t,e,r){if(oe.domSupported&&t.getBoundingClientRect){var n=e.clientX,i=e.clientY;if(Fv(t)){var a=t.getBoundingClientRect();return r.zrX=n-a.left,void(r.zrY=i-a.top)}if(iu(au,t,n,i))return r.zrX=au[0],void(r.zrY=au[1])}r.zrX=r.zrY=0}function su(t){return t||window.event}function At(t,e,r){if(null!=(e=su(e)).zrX)return e;var n=e.type;if(n&&n.indexOf("touch")>=0){var o="touchend"!==n?e.targetTouches[0]:e.changedTouches[0];o&&ou(t,o,e,r)}else{ou(t,e,e,r);var a=function tb(t){var e=t.wheelDelta;if(e)return e;var r=t.deltaX,n=t.deltaY;return null==r||null==n?e:3*Math.abs(0!==n?n:r)*(n>0?-1:n<0?1:r>0?-1:1)}(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return null==e.which&&void 0!==s&&JS.test(e.type)&&(e.which=1&s?1:2&s?3:4&s?2:0),e}function nb(t,e,r,n){t.removeEventListener(e,r,n)}var zv=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0},ib=function(){function t(){this._track=[]}return t.prototype.recognize=function(e,r,n){return this._doTrack(e,r,n),this._recognize(e)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(e,r,n){var i=e.touches;if(i){for(var a={points:[],touches:[],target:r,event:e},o=0,s=i.length;o<s;o++){var l=i[o],u=ou(n,l,{});a.points.push([u.zrX,u.zrY]),a.touches.push(l)}this._track.push(a)}},t.prototype._recognize=function(e){for(var r in lu)if(lu.hasOwnProperty(r)){var n=lu[r](this._track,e);if(n)return n}},t}();function Hv(t){var e=t[1][0]-t[0][0],r=t[1][1]-t[0][1];return Math.sqrt(e*e+r*r)}var lu={pinch:function(t,e){var r=t.length;if(r){var n=(t[r-1]||{}).points,i=(t[r-2]||{}).points||n;if(i&&i.length>1&&n&&n.length>1){var a=Hv(n)/Hv(i);!isFinite(a)&&(a=1),e.pinchScale=a;var o=function ab(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}(n);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:t[0].target,event:e}}}}};function Yt(){return[1,0,0,1,0,0]}function ua(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function ko(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function Dn(t,e,r){var i=e[1]*r[0]+e[3]*r[1],a=e[0]*r[2]+e[2]*r[3],o=e[1]*r[2]+e[3]*r[3],s=e[0]*r[4]+e[2]*r[5]+e[4],l=e[1]*r[4]+e[3]*r[5]+e[5];return t[0]=e[0]*r[0]+e[2]*r[1],t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t}function Oo(t,e,r){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+r[0],t[5]=e[5]+r[1],t}function Bo(t,e,r,n){void 0===n&&(n=[0,0]);var i=e[0],a=e[2],o=e[4],s=e[1],l=e[3],u=e[5],f=Math.sin(r),c=Math.cos(r);return t[0]=i*c+s*f,t[1]=-i*f+s*c,t[2]=a*c+l*f,t[3]=-a*f+c*l,t[4]=c*(o-n[0])+f*(u-n[1])+n[0],t[5]=c*(u-n[1])-f*(o-n[0])+n[1],t}function Gv(t,e,r){var n=r[0],i=r[1];return t[0]=e[0]*n,t[1]=e[1]*i,t[2]=e[2]*n,t[3]=e[3]*i,t[4]=e[4]*n,t[5]=e[5]*i,t}function Mn(t,e){var r=e[0],n=e[2],i=e[4],a=e[1],o=e[3],s=e[5],l=r*o-a*n;return l?(t[0]=o*(l=1/l),t[1]=-a*l,t[2]=-n*l,t[3]=r*l,t[4]=(n*s-o*i)*l,t[5]=(a*i-r*s)*l,t):null}function ob(t){var e=[1,0,0,1,0,0];return ko(e,t),e}var sb=function(){function t(e,r){this.x=e||0,this.y=r||0}return t.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(e,r){return this.x=e,this.y=r,this},t.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},t.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},t.prototype.scale=function(e){this.x*=e,this.y*=e},t.prototype.scaleAndAdd=function(e,r){this.x+=e.x*r,this.y+=e.y*r},t.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},t.prototype.dot=function(e){return this.x*e.x+this.y*e.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},t.prototype.distance=function(e){var r=this.x-e.x,n=this.y-e.y;return Math.sqrt(r*r+n*n)},t.prototype.distanceSquare=function(e){var r=this.x-e.x,n=this.y-e.y;return r*r+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(e){if(e){var r=this.x,n=this.y;return this.x=e[0]*r+e[2]*n+e[4],this.y=e[1]*r+e[3]*n+e[5],this}},t.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},t.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},t.set=function(e,r,n){e.x=r,e.y=n},t.copy=function(e,r){e.x=r.x,e.y=r.y},t.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},t.lenSquare=function(e){return e.x*e.x+e.y*e.y},t.dot=function(e,r){return e.x*r.x+e.y*r.y},t.add=function(e,r,n){e.x=r.x+n.x,e.y=r.y+n.y},t.sub=function(e,r,n){e.x=r.x-n.x,e.y=r.y-n.y},t.scale=function(e,r,n){e.x=r.x*n,e.y=r.y*n},t.scaleAndAdd=function(e,r,n,i){e.x=r.x+n.x*i,e.y=r.y+n.y*i},t.lerp=function(e,r,n,i){var a=1-i;e.x=a*r.x+i*n.x,e.y=a*r.y+i*n.y},t}();const te=sb;var Ln=Math.min,Ti=Math.max,uu=Math.abs,Vv=["x","y"],lb=["width","height"],An=new te,Pn=new te,Rn=new te,En=new te,St=qv(),fa=St.minTv,fu=St.maxTv,ca=[0,0],cu=function(){function t(e,r,n,i){t.set(this,e,r,n,i)}return t.set=function(e,r,n,i,a){return i<0&&(r+=i,i=-i),a<0&&(n+=a,a=-a),e.x=r,e.y=n,e.width=i,e.height=a,e},t.prototype.union=function(e){var r=Ln(e.x,this.x),n=Ln(e.y,this.y);this.width=isFinite(this.x)&&isFinite(this.width)?Ti(e.x+e.width,this.x+this.width)-r:e.width,this.height=isFinite(this.y)&&isFinite(this.height)?Ti(e.y+e.height,this.y+this.height)-n:e.height,this.x=r,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(e){var r=this,n=e.width/r.width,i=e.height/r.height,a=[1,0,0,1,0,0];return Oo(a,a,[-r.x,-r.y]),Gv(a,a,[n,i]),Oo(a,a,[e.x,e.y]),a},t.prototype.intersect=function(e,r,n){return t.intersect(this,e,r,n)},t.intersect=function(e,r,n,i){n&&te.set(n,0,0);var a=i&&i.outIntersectRect||null,o=i&&i.clamp;if(a&&(a.x=a.y=a.width=a.height=NaN),!e||!r)return!1;e instanceof t||(e=t.set(ub,e.x,e.y,e.width,e.height)),r instanceof t||(r=t.set(fb,r.x,r.y,r.width,r.height));var s=!!n;St.reset(i,s);var l=St.touchThreshold,u=e.x+l,f=e.x+e.width-l,c=e.y+l,v=e.y+e.height-l,h=r.x+l,d=r.x+r.width-l,m=r.y+l,p=r.y+r.height-l;if(u>f||c>v||h>d||m>p)return!1;var g=!(f<h||d<u||v<m||p<c);return(s||a)&&(ca[0]=1/0,ca[1]=0,Wv(u,f,h,d,0,s,a,o),Wv(c,v,m,p,1,s,a,o),s&&te.copy(n,g?St.useDir?St.dirMinTv:fa:fu)),g},t.contain=function(e,r,n){return r>=e.x&&r<=e.x+e.width&&n>=e.y&&n<=e.y+e.height},t.prototype.contain=function(e,r){return t.contain(this,e,r)},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(e,r){return e.x=r.x,e.y=r.y,e.width=r.width,e.height=r.height,e},t.applyTransform=function(e,r,n){if(n){if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],a=n[3],s=n[5];return e.x=r.x*i+n[4],e.y=r.y*a+s,e.width=r.width*i,e.height=r.height*a,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}An.x=Rn.x=r.x,An.y=En.y=r.y,Pn.x=En.x=r.x+r.width,Pn.y=Rn.y=r.y+r.height,An.transform(n),En.transform(n),Pn.transform(n),Rn.transform(n),e.x=Ln(An.x,Pn.x,Rn.x,En.x),e.y=Ln(An.y,Pn.y,Rn.y,En.y);var l=Ti(An.x,Pn.x,Rn.x,En.x),u=Ti(An.y,Pn.y,Rn.y,En.y);e.width=l-e.x,e.height=u-e.y}else e!==r&&t.copy(e,r)},t}(),ub=new cu(0,0,0,0),fb=new cu(0,0,0,0);function Wv(t,e,r,n,i,a,o,s){var l=uu(e-r),u=uu(n-t),f=Ln(l,u),c=Vv[i],v=Vv[1-i],h=lb[i];e<r||n<t?l<u?(a&&(fu[c]=-l),s&&(o[c]=e,o[h]=0)):(a&&(fu[c]=u),s&&(o[c]=t,o[h]=0)):(o&&(o[c]=Ti(t,r),o[h]=Ln(e,n)-o[c]),a&&(f<ca[0]||St.useDir)&&(ca[0]=Ln(f,ca[0]),(l<u||!St.bidirectional)&&(fa[c]=l,fa[v]=0,St.useDir&&St.calcDirMTV()),(l>=u||!St.bidirectional)&&(fa[c]=-u,fa[v]=0,St.useDir&&St.calcDirMTV())))}function qv(){var t=0,e=new te,r=new te,n={minTv:new te,maxTv:new te,useDir:!1,dirMinTv:new te,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(a,o){n.touchThreshold=0,a&&null!=a.touchThreshold&&(n.touchThreshold=Ti(0,a.touchThreshold)),n.negativeSize=!1,o&&(n.minTv.set(1/0,1/0),n.maxTv.set(0,0),n.useDir=!1,a&&null!=a.direction&&(n.useDir=!0,n.dirMinTv.copy(n.minTv),r.copy(n.minTv),t=a.direction,n.bidirectional=null==a.bidirectional||!!a.bidirectional,n.bidirectional||e.set(Math.cos(t),Math.sin(t))))},calcDirMTV:function(){var a=n.minTv,o=n.dirMinTv,s=a.y*a.y+a.x*a.x,l=Math.sin(t),u=Math.cos(t),f=l*a.y+u*a.x;i(f)?i(a.x)&&i(a.y)&&o.set(0,0):(r.x=s*u/f,r.y=s*l/f,i(r.x)&&i(r.y)?o.set(0,0):(n.bidirectional||e.dot(r)>0)&&r.len()<o.len()&&o.copy(r))}};function i(a){return uu(a)<1e-10}return n}const ne=cu;function hb(){zv(this.event)}var vb=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.handler=null,r}return(0,X.C6)(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(or),ha=function(){return function t(e,r){this.x=e,this.y=r}}(),db=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],hu=new ne(0,0,0,0),Yv=function(t){function e(r,n,i,a,o){var s=t.call(this)||this;return s._hovered=new ha(0,0),s.storage=r,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new vb,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new qS(s),s}return(0,X.C6)(e,t),e.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(D(db,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},e.prototype.mousemove=function(r){var n=r.zrX,i=r.zrY,a=jv(this,n,i),o=this._hovered,s=o.target;s&&!s.__zr&&(s=(o=this.findHover(o.x,o.y)).target);var l=this._hovered=a?new ha(n,i):this.findHover(n,i),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(l,"mousemove",r),u&&u!==s&&this.dispatchToElement(l,"mouseover",r)},e.prototype.mouseout=function(r){var n=r.zrEventControl;"only_globalout"!==n&&this.dispatchToElement(this._hovered,"mouseout",r),"no_globalout"!==n&&this.trigger("globalout",{type:"globalout",event:r})},e.prototype.resize=function(){this._hovered=new ha(0,0)},e.prototype.dispatch=function(r,n){var i=this[r];i&&i.call(this,n)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},e.prototype.dispatchToElement=function(r,n,i){var a=(r=r||{}).target;if(!a||!a.silent){for(var o="on"+n,s=function cb(t,e,r){return{type:t,event:r,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:hb}}(n,r,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(n,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){"function"==typeof l[o]&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},e.prototype.findHover=function(r,n,i){var a=this.storage.getDisplayList(),o=new ha(r,n);if(Xv(a,o,r,n,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new ne(r-u,n-u,l,l),c=a.length-1;c>=0;c--){var v=a[c];v!==i&&!v.ignore&&!v.ignoreCoarsePointer&&(!v.parent||!v.parent.ignoreCoarsePointer)&&(hu.copy(v.getBoundingRect()),v.transform&&hu.applyTransform(v.transform),hu.intersect(f)&&s.push(v))}if(s.length)for(var d=Math.PI/12,m=2*Math.PI,p=0;p<u;p+=4)for(var g=0;g<m;g+=d)if(Xv(s,o,r+p*Math.cos(g),n+p*Math.sin(g),i),o.target)return o}return o},e.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new ib);var i=this._gestureMgr;"start"===n&&i.clear();var a=i.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if("end"===n&&i.clear(),a){var o=a.type;r.gestureEvent=o;var s=new ha;s.target=a.target,this.dispatchToElement(s,o,a.event)}},e}(or);function pb(t,e,r){if(t[t.rectHover?"rectContain":"contain"](e,r)){for(var n=t,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(e,r))return!1}n.silent&&(i=!0);var s=n.__hostTarget;n=s?n.ignoreHostSilent?null:s:n.parent}return!i||"silent"}return!1}function Xv(t,e,r,n,i){for(var a=t.length-1;a>=0;a--){var o=t[a],s=void 0;if(o!==i&&!o.ignore&&(s=pb(o,r,n))&&(!e.topTarget&&(e.topTarget=o),"silent"!==s)){e.target=o;break}}}function jv(t,e,r){var n=t.painter;return e<0||e>n.getWidth()||r<0||r>n.getHeight()}D(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){Yv.prototype[t]=function(e){var a,o,r=e.zrX,n=e.zrY,i=jv(this,r,n);if(("mouseup"!==t||!i)&&(o=(a=this.findHover(r,n)).target),"mousedown"===t)this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if("mouseup"===t)this._upEl=o;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||Ro(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,t,e)}});const gb=Yv;function $v(t,e,r,n){var i=e+1;if(i===r)return 1;if(n(t[i++],t[e])<0){for(;i<r&&n(t[i],t[i-1])<0;)i++;!function yb(t,e,r){for(r--;e<r;){var n=t[e];t[e++]=t[r],t[r--]=n}}(t,e,i)}else for(;i<r&&n(t[i],t[i-1])>=0;)i++;return i-e}function Kv(t,e,r,n,i){for(n===e&&n++;n<r;n++){for(var l,a=t[n],o=e,s=n;o<s;)i(a,t[l=o+s>>>1])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:t[o+3]=t[o+2];case 2:t[o+2]=t[o+1];case 1:t[o+1]=t[o];break;default:for(;u>0;)t[o+u]=t[o+u-1],u--}t[o]=a}}function vu(t,e,r,n,i,a){var o=0,s=0,l=1;if(a(t,e[r+i])>0){for(s=n-i;l<s&&a(t,e[r+i+l])>0;)o=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;l<s&&a(t,e[r+i-l])<=0;)o=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}for(o++;o<l;){var f=o+(l-o>>>1);a(t,e[r+f])>0?o=f+1:l=f}return l}function du(t,e,r,n,i,a){var o=0,s=0,l=1;if(a(t,e[r+i])<0){for(s=i+1;l<s&&a(t,e[r+i-l])<0;)o=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=n-i;l<s&&a(t,e[r+i+l])>=0;)o=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o<l;){var f=o+(l-o>>>1);a(t,e[r+f])<0?l=f:o=f+1}return l}function Fo(t,e,r,n){r||(r=0),n||(n=t.length);var i=n-r;if(!(i<2)){var a=0;if(i<32)return void Kv(t,r,n,r+(a=$v(t,r,n,e)),e);var o=function _b(t,e){var n,i,r=7,a=0,o=[];function f(h){var d=n[h],m=i[h],p=n[h+1],g=i[h+1];i[h]=m+g,h===a-3&&(n[h+1]=n[h+2],i[h+1]=i[h+2]),a--;var y=du(t[p],t,d,m,0,e);d+=y,0!==(m-=y)&&0!==(g=vu(t[d+m-1],t,p,g,g-1,e))&&(m<=g?function c(h,d,m,p){var g=0;for(g=0;g<d;g++)o[g]=t[h+g];var y=0,_=m,C=h;if(t[C++]=t[_++],0!==--p)if(1!==d){for(var S,x,T,b=r;;){S=0,x=0,T=!1;do{if(e(t[_],o[y])<0){if(t[C++]=t[_++],x++,S=0,0===--p){T=!0;break}}else if(t[C++]=o[y++],S++,x=0,1===--d){T=!0;break}}while((S|x)<b);if(T)break;do{if(0!==(S=du(t[_],o,y,d,0,e))){for(g=0;g<S;g++)t[C+g]=o[y+g];if(C+=S,y+=S,(d-=S)<=1){T=!0;break}}if(t[C++]=t[_++],0===--p){T=!0;break}if(0!==(x=vu(o[y],t,_,p,0,e))){for(g=0;g<x;g++)t[C+g]=t[_+g];if(C+=x,_+=x,0===(p-=x)){T=!0;break}}if(t[C++]=o[y++],1===--d){T=!0;break}b--}while(S>=7||x>=7);if(T)break;b<0&&(b=0),b+=2}if((r=b)<1&&(r=1),1===d){for(g=0;g<p;g++)t[C+g]=t[_+g];t[C+p]=o[y]}else{if(0===d)throw new Error;for(g=0;g<d;g++)t[C+g]=o[y+g]}}else{for(g=0;g<p;g++)t[C+g]=t[_+g];t[C+p]=o[y]}else for(g=0;g<d;g++)t[C+g]=o[y+g]}(d,m,p,g):function v(h,d,m,p){var g=0;for(g=0;g<p;g++)o[g]=t[m+g];var y=h+d-1,_=p-1,C=m+p-1,b=0,S=0;if(t[C--]=t[y--],0!==--d)if(1!==p){for(var x=r;;){var T=0,w=0,L=!1;do{if(e(o[_],t[y])<0){if(t[C--]=t[y--],T++,w=0,0===--d){L=!0;break}}else if(t[C--]=o[_--],w++,T=0,1===--p){L=!0;break}}while((T|w)<x);if(L)break;do{if(0!==(T=d-du(o[_],t,h,d,d-1,e))){for(d-=T,S=1+(C-=T),b=1+(y-=T),g=T-1;g>=0;g--)t[S+g]=t[b+g];if(0===d){L=!0;break}}if(t[C--]=o[_--],1===--p){L=!0;break}if(0!==(w=p-vu(t[y],o,0,p,p-1,e))){for(p-=w,S=1+(C-=w),b=1+(_-=w),g=0;g<w;g++)t[S+g]=o[b+g];if(p<=1){L=!0;break}}if(t[C--]=t[y--],0===--d){L=!0;break}x--}while(T>=7||w>=7);if(L)break;x<0&&(x=0),x+=2}if((r=x)<1&&(r=1),1===p){for(S=1+(C-=d),b=1+(y-=d),g=d-1;g>=0;g--)t[S+g]=t[b+g];t[C]=o[_]}else{if(0===p)throw new Error;for(b=C-(p-1),g=0;g<p;g++)t[b+g]=o[g]}}else{for(S=1+(C-=d),b=1+(y-=d),g=d-1;g>=0;g--)t[S+g]=t[b+g];t[C]=o[_]}else for(b=C-(p-1),g=0;g<p;g++)t[b+g]=o[g]}(d,m,p,g))}return n=[],i=[],{mergeRuns:function l(){for(;a>1;){var h=a-2;if(h>=1&&i[h-1]<=i[h]+i[h+1]||h>=2&&i[h-2]<=i[h]+i[h-1])i[h-1]<i[h+1]&&h--;else if(i[h]>i[h+1])break;f(h)}},forceMergeRuns:function u(){for(;a>1;){var h=a-2;h>0&&i[h-1]<i[h+1]&&h--,f(h)}},pushRun:function s(h,d){n[a]=h,i[a]=d,a+=1}}}(t,e),s=function mb(t){for(var e=0;t>=32;)e|=1&t,t>>=1;return t+e}(i);do{if((a=$v(t,r,n,e))<s){var l=i;l>s&&(l=s),Kv(t,r,r+l,r+a,e),a=l}o.pushRun(r,a),o.mergeRuns(),i-=a,r+=a}while(0!==i);o.forceMergeRuns()}}var Qv=!1;function pu(){Qv||(Qv=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Jv(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var Cb=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Jv}return t.prototype.traverse=function(e,r){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,r)},t.prototype.getDisplayList=function(e,r){r=r||!1;var n=this._displayList;return(e||!n.length)&&this.updateDisplayList(r),n},t.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var r=this._roots,n=this._displayList,i=0,a=r.length;i<a;i++)this._updateAndAddDisplayable(r[i],null,e);n.length=this._displayListLen,Fo(n,Jv)},t.prototype._updateAndAddDisplayable=function(e,r,n){if(!e.ignore||n){e.beforeUpdate(),e.update(),e.afterUpdate();var i=e.getClipPath(),a=r&&r.length,o=0,s=e.__clipPaths;if(!e.ignoreClip&&(a||i)){if(s||(s=e.__clipPaths=[]),a)for(var l=0;l<r.length;l++)s[o++]=r[l];for(var u=i,f=e;u;)u.parent=f,u.updateTransform(),s[o++]=u,f=u,u=u.getClipPath()}if(s&&(s.length=o),e.childrenRef){for(var c=e.childrenRef(),v=0;v<c.length;v++){var h=c[v];e.__dirty&&(h.__dirty|=1),this._updateAndAddDisplayable(h,s,n)}e.__dirty=0}else{var d=e;isNaN(d.z)&&(pu(),d.z=0),isNaN(d.z2)&&(pu(),d.z2=0),isNaN(d.zlevel)&&(pu(),d.zlevel=0),this._displayList[this._displayListLen++]=d}var m=e.getDecalElement&&e.getDecalElement();m&&this._updateAndAddDisplayable(m,s,n);var p=e.getTextGuideLine();p&&this._updateAndAddDisplayable(p,s,n);var g=e.getTextContent();g&&this._updateAndAddDisplayable(g,s,n)}},t.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},t.prototype.delRoot=function(e){if(e instanceof Array)for(var r=0,n=e.length;r<n;r++)this.delRoot(e[r]);else{var i=le(this._roots,e);i>=0&&this._roots.splice(i,1)}},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}();const Sb=Cb;var ed;ed=oe.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};const gu=ed;var No={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,r=.1;return 0===t?0:1===t?1:(!r||r<1?(r=1,e=.1):e=.4*Math.asin(1/r)/(2*Math.PI),-r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4))},elasticOut:function(t){var e,r=.1;return 0===t?0:1===t?1:(!r||r<1?(r=1,e=.1):e=.4*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,r=.1;return 0===t?0:1===t?1:(!r||r<1?(r=1,e=.1):e=.4*Math.asin(1/r)/(2*Math.PI),(t*=2)<1?r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4)*-.5:r*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-No.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*No.bounceIn(2*t):.5*No.bounceOut(2*t-1)+.5}};const td=No;var zo=Math.pow,Jr=Math.sqrt,nd=Jr(3),Go=1/3,sr=Tn(),Pt=Tn(),Di=Tn();function en(t){return t>-1e-8&&t<1e-8}function id(t){return t>1e-8||t<-1e-8}function Ue(t,e,r,n,i){var a=1-i;return a*a*(a*t+3*i*e)+i*i*(i*n+3*a*r)}function ad(t,e,r,n,i){var a=1-i;return 3*(((e-t)*a+2*(r-e)*i)*a+(n-r)*i*i)}function od(t,e,r,n,i,a){var o=n+3*(e-r)-t,s=3*(r-2*e+t),l=3*(e-t),u=t-i,f=s*s-3*o*l,c=s*l-9*o*u,v=l*l-3*s*u,h=0;if(en(f)&&en(c))en(s)?a[0]=0:(d=-l/s)>=0&&d<=1&&(a[h++]=d);else{var m=c*c-4*f*v;if(en(m)){var p=c/f,g=-p/2;(d=-s/o+p)>=0&&d<=1&&(a[h++]=d),g>=0&&g<=1&&(a[h++]=g)}else if(m>0){var y=Jr(m),_=f*s+1.5*o*(-c+y),C=f*s+1.5*o*(-c-y);(d=(-s-((_=_<0?-zo(-_,Go):zo(_,Go))+(C=C<0?-zo(-C,Go):zo(C,Go))))/(3*o))>=0&&d<=1&&(a[h++]=d)}else{var b=(2*f*s-3*o*c)/(2*Jr(f*f*f)),S=Math.acos(b)/3,x=Jr(f),T=Math.cos(S),d=(-s-2*x*T)/(3*o),w=(g=(-s+x*(T+nd*Math.sin(S)))/(3*o),(-s+x*(T-nd*Math.sin(S)))/(3*o));d>=0&&d<=1&&(a[h++]=d),g>=0&&g<=1&&(a[h++]=g),w>=0&&w<=1&&(a[h++]=w)}}return h}function sd(t,e,r,n,i){var a=6*r-12*e+6*t,o=9*e+3*n-3*t-9*r,s=3*e-3*t,l=0;if(en(o))id(a)&&(u=-s/a)>=0&&u<=1&&(i[l++]=u);else{var f=a*a-4*o*s;if(en(f))i[0]=-a/(2*o);else if(f>0){var u,c=Jr(f),v=(-a-c)/(2*o);(u=(-a+c)/(2*o))>=0&&u<=1&&(i[l++]=u),v>=0&&v<=1&&(i[l++]=v)}}return l}function Vo(t,e,r,n,i,a){var o=(e-t)*i+t,s=(r-e)*i+e,l=(n-r)*i+r,u=(s-o)*i+o,f=(l-s)*i+s,c=(f-u)*i+u;a[0]=t,a[1]=o,a[2]=u,a[3]=c,a[4]=c,a[5]=f,a[6]=l,a[7]=n}function ld(t,e,r,n,i,a,o,s,l,u,f){var c,d,m,p,g,v=.005,h=1/0;sr[0]=l,sr[1]=u;for(var y=0;y<1;y+=.05)Pt[0]=Ue(t,r,i,o,y),Pt[1]=Ue(e,n,a,s,y),(p=wn(sr,Pt))<h&&(c=y,h=p);h=1/0;for(var _=0;_<32&&!(v<1e-4);_++)m=c+v,Pt[0]=Ue(t,r,i,o,d=c-v),Pt[1]=Ue(e,n,a,s,d),p=wn(Pt,sr),d>=0&&p<h?(c=d,h=p):(Di[0]=Ue(t,r,i,o,m),Di[1]=Ue(e,n,a,s,m),g=wn(Di,sr),m<=1&&g<h?(c=m,h=g):v*=.5);return f&&(f[0]=Ue(t,r,i,o,c),f[1]=Ue(e,n,a,s,c)),Jr(h)}function bb(t,e,r,n,i,a,o,s,l){for(var u=t,f=e,c=0,v=1/l,h=1;h<=l;h++){var d=h*v,m=Ue(t,r,i,o,d),p=Ue(e,n,a,s,d),g=m-u,y=p-f;c+=Math.sqrt(g*g+y*y),u=m,f=p}return c}function $e(t,e,r,n){var i=1-n;return i*(i*t+2*n*e)+n*n*r}function ud(t,e,r,n){return 2*((1-n)*(e-t)+n*(r-e))}function fd(t,e,r){var n=t+r-2*e;return 0===n?.5:(t-e)/n}function Wo(t,e,r,n,i){var a=(e-t)*n+t,o=(r-e)*n+e,s=(o-a)*n+a;i[0]=t,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=r}function cd(t,e,r,n,i,a,o,s,l){var u,f=.005,c=1/0;sr[0]=o,sr[1]=s;for(var v=0;v<1;v+=.05)Pt[0]=$e(t,r,i,v),Pt[1]=$e(e,n,a,v),(h=wn(sr,Pt))<c&&(u=v,c=h);c=1/0;for(var d=0;d<32&&!(f<1e-4);d++){var m=u-f,p=u+f;Pt[0]=$e(t,r,i,m),Pt[1]=$e(e,n,a,m);var h=wn(Pt,sr);if(m>=0&&h<c)u=m,c=h;else{Di[0]=$e(t,r,i,p),Di[1]=$e(e,n,a,p);var g=wn(Di,sr);p<=1&&g<c?(u=p,c=g):f*=.5}}return l&&(l[0]=$e(t,r,i,u),l[1]=$e(e,n,a,u)),Jr(c)}function Tb(t,e,r,n,i,a,o){for(var s=t,l=e,u=0,f=1/o,c=1;c<=o;c++){var v=c*f,h=$e(t,r,i,v),d=$e(e,n,a,v),m=h-s,p=d-l;u+=Math.sqrt(m*m+p*p),s=h,l=d}return u}var wb=/cubic-bezier\(([0-9,\.e ]+)\)/;function hd(t){var e=t&&wb.exec(t);if(e){var r=e[1].split(","),n=+Ut(r[0]),i=+Ut(r[1]),a=+Ut(r[2]),o=+Ut(r[3]);if(isNaN(n+i+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:od(0,n,a,1,l,s)&&Ue(0,i,o,1,s[0])}}}var Db=function(){function t(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||it,this.ondestroy=e.ondestroy||it,this.onrestart=e.onrestart||it,e.easing&&this.setEasing(e.easing)}return t.prototype.step=function(e,r){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),!this._paused){var n=this._life,i=e-this._startTime-this._pausedTime,a=i/n;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),1===a){if(!this.loop)return!0;this._startTime=e-i%n,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=r},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(e){this.easing=e,this.easingFunc=ee(e)?e:td[e]||hd(e)},t}();const Mb=Db;var vd=function(){return function t(e){this.value=e}}(),Lb=function(){function t(){this._len=0}return t.prototype.insert=function(e){var r=new vd(e);return this.insertEntry(r),r},t.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},t.prototype.remove=function(e){var r=e.prev,n=e.next;r?r.next=n:this.head=n,n?n.prev=r:this.tail=r,e.next=e.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),Ab=function(){function t(e){this._list=new Lb,this._maxSize=10,this._map={},this._maxSize=e}return t.prototype.put=function(e,r){var n=this._list,i=this._map,a=null;if(null==i[e]){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete i[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new vd(r),s.key=e,n.insertEntry(s),i[e]=s}return a},t.prototype.get=function(e){var r=this._map[e],n=this._list;if(null!=r)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}();const Mi=Ab;var dd={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function Xt(t){return(t=Math.round(t))<0?0:t>255?255:t}function pa(t){return t<0?0:t>1?1:t}function qo(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?Xt(parseFloat(e)/100*255):Xt(parseInt(e,10))}function tn(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?pa(parseFloat(e)/100):pa(parseFloat(e))}function mu(t,e,r){return r<0?r+=1:r>1&&(r-=1),6*r<1?t+(e-t)*r*6:2*r<1?e:3*r<2?t+(e-t)*(2/3-r)*6:t}function rn(t,e,r){return t+(e-t)*r}function Rt(t,e,r,n,i){return t[0]=e,t[1]=r,t[2]=n,t[3]=i,t}function yu(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var pd=new Mi(20),Uo=null;function Li(t,e){Uo&&yu(Uo,e),Uo=pd.put(t,Uo||e.slice())}function xt(t,e){if(t){e=e||[];var r=pd.get(t);if(r)return yu(e,r);var n=(t+="").replace(/ /g,"").toLowerCase();if(n in dd)return yu(e,dd[n]),Li(t,e),e;var a,i=n.length;if("#"===n.charAt(0))return 4===i||5===i?(a=parseInt(n.slice(1,4),16))>=0&&a<=4095?(Rt(e,(3840&a)>>4|(3840&a)>>8,240&a|(240&a)>>4,15&a|(15&a)<<4,5===i?parseInt(n.slice(4),16)/15:1),Li(t,e),e):void Rt(e,0,0,0,1):7===i||9===i?(a=parseInt(n.slice(1,7),16))>=0&&a<=16777215?(Rt(e,(16711680&a)>>16,(65280&a)>>8,255&a,9===i?parseInt(n.slice(7),16)/255:1),Li(t,e),e):void Rt(e,0,0,0,1):void 0;var o=n.indexOf("("),s=n.indexOf(")");if(-1!==o&&s+1===i){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(4!==u.length)return 3===u.length?Rt(e,+u[0],+u[1],+u[2],1):Rt(e,0,0,0,1);f=tn(u.pop());case"rgb":return u.length>=3?(Rt(e,qo(u[0]),qo(u[1]),qo(u[2]),3===u.length?f:tn(u[3])),Li(t,e),e):void Rt(e,0,0,0,1);case"hsla":return 4!==u.length?void Rt(e,0,0,0,1):(u[3]=tn(u[3]),_u(u,e),Li(t,e),e);case"hsl":return 3!==u.length?void Rt(e,0,0,0,1):(_u(u,e),Li(t,e),e);default:return}}Rt(e,0,0,0,1)}}function _u(t,e){var r=(parseFloat(t[0])%360+360)%360/360,n=tn(t[1]),i=tn(t[2]),a=i<=.5?i*(n+1):i+n-i*n,o=2*i-a;return Rt(e=e||[],Xt(255*mu(o,a,r+1/3)),Xt(255*mu(o,a,r)),Xt(255*mu(o,a,r-1/3)),1),4===t.length&&(e[3]=t[3]),e}function Cu(t,e){var r=xt(t);if(r){for(var n=0;n<3;n++)r[n]=e<0?r[n]*(1-e)|0:(255-r[n])*e+r[n]|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return nn(r,4===r.length?"rgba":"rgb")}}function Eb(t){var e=xt(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function gd(t,e,r){if(e&&e.length&&t>=0&&t<=1){r=r||[];var n=t*(e.length-1),i=Math.floor(n),a=Math.ceil(n),o=e[i],s=e[a],l=n-i;return r[0]=Xt(rn(o[0],s[0],l)),r[1]=Xt(rn(o[1],s[1],l)),r[2]=Xt(rn(o[2],s[2],l)),r[3]=pa(rn(o[3],s[3],l)),r}}var Ib=gd;function md(t,e,r){if(e&&e.length&&t>=0&&t<=1){var n=t*(e.length-1),i=Math.floor(n),a=Math.ceil(n),o=xt(e[i]),s=xt(e[a]),l=n-i,u=nn([Xt(rn(o[0],s[0],l)),Xt(rn(o[1],s[1],l)),Xt(rn(o[2],s[2],l)),pa(rn(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:i,rightIndex:a,value:n}:u}}var kb=md;function Yo(t,e,r,n){var i=xt(t);if(t)return i=function Rb(t){if(t){var l,u,e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(e,r,n),a=Math.max(e,r,n),o=a-i,s=(a+i)/2;if(0===o)l=0,u=0;else{u=s<.5?o/(a+i):o/(2-a-i);var f=((a-e)/6+o/2)/o,c=((a-r)/6+o/2)/o,v=((a-n)/6+o/2)/o;e===a?l=v-c:r===a?l=1/3+f-v:n===a&&(l=2/3+c-f),l<0&&(l+=1),l>1&&(l-=1)}var h=[360*l,u,s];return null!=t[3]&&h.push(t[3]),h}}(i),null!=e&&(i[0]=function Pb(t){return(t=Math.round(t))<0?0:t>360?360:t}(ee(e)?e(i[0]):e)),null!=r&&(i[1]=tn(ee(r)?r(i[1]):r)),null!=n&&(i[2]=tn(ee(n)?n(i[2]):n)),nn(_u(i),"rgba")}function Ob(t,e){var r=xt(t);if(r&&null!=e)return r[3]=pa(e),nn(r,"rgba")}function nn(t,e){if(t&&t.length){var r=t[0]+","+t[1]+","+t[2];return("rgba"===e||"hsva"===e||"hsla"===e)&&(r+=","+t[3]),e+"("+r+")"}}function ga(t,e){var r=xt(t);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*e:0}function Bb(){return nn([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")}var yd=new Mi(100);function Su(t){if(U(t)){var e=yd.get(t);return e||(e=Cu(t,-.1),yd.put(t,e)),e}if(aa(t)){var r=k({},t);return r.colorStops=K(t.colorStops,function(n){return{offset:n.offset,color:Cu(n.color,-.1)}}),r}return t}Math,oe.hasGlobalWindow&&ee(window.btoa);var xu=Array.prototype.slice;function Lr(t,e,r){return(e-t)*r+t}function Tu(t,e,r,n){for(var i=e.length,a=0;a<i;a++)t[a]=Lr(e[a],r[a],n);return t}function jo(t,e,r,n){for(var i=e.length,a=0;a<i;a++)t[a]=e[a]+r[a]*n;return t}function bd(t,e,r,n){for(var i=e.length,a=i&&e[0].length,o=0;o<i;o++){t[o]||(t[o]=[]);for(var s=0;s<a;s++)t[o][s]=e[o][s]+r[o][s]*n}return t}function Wb(t,e){for(var r=t.length,n=e.length,i=r>n?e:t,a=Math.min(r,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(r,n);s++)i.push({offset:o.offset,color:o.color.slice()})}function qb(t,e,r){var n=t,i=e;if(n.push&&i.push){var a=n.length,o=i.length;if(a!==o)if(a>o)n.length=o;else for(var l=a;l<o;l++)n.push(1===r?i[l]:xu.call(i[l]));var u=n[0]&&n[0].length;for(l=0;l<n.length;l++)if(1===r)isNaN(n[l])&&(n[l]=i[l]);else for(var f=0;f<u;f++)isNaN(n[l][f])&&(n[l][f]=i[l][f])}}function ya(t){if(Ze(t)){var e=t.length;if(Ze(t[0])){for(var r=[],n=0;n<e;n++)r.push(xu.call(t[n]));return r}return xu.call(t)}return t}function Zo(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=null==t[3]?1:t[3],"rgba("+t.join(",")+")"}function wd(t){return 4===t||5===t}function Qo(t){return 1===t||2===t}var Ca=[0,0,0,0],Yb=function(){function t(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(e,r,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=6,l=r;if(Ze(r)){var u=function Ub(t){return Ze(t&&t[0])?2:1}(r);s=u,(1===u&&!ge(r[0])||2===u&&!ge(r[0][0]))&&(o=!0)}else if(ge(r)&&!oa(r))s=0;else if(U(r))if(isNaN(+r)){var f=xt(r);f&&(l=f,s=3)}else s=0;else if(aa(r)){var c=k({},l);c.colorStops=K(r.colorStops,function(h){return{offset:h.offset,color:xt(h.color)}}),function Hb(t){return"linear"===t.type}(r)?s=4:function Gb(t){return"radial"===t.type}(r)&&(s=5),l=c}0===a?this.valType=s:(s!==this.valType||6===s)&&(o=!0),this.discrete=this.discrete||o;var v={time:e,value:l,rawValue:r,percent:0};return n&&(v.easing=n,v.easingFunc=ee(n)?n:td[n]||hd(n)),i.push(v),v},t.prototype.prepare=function(e,r){var n=this.keyframes;this._needsSort&&n.sort(function(m,p){return m.time-p.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,l=Qo(i),u=wd(i),f=0;f<a;f++){var c=n[f],v=c.value,h=o.value;c.percent=c.time/e,s||(l&&f!==a-1?qb(v,h,i):u&&Wb(v.colorStops,h.colorStops))}if(!s&&5!==i&&r&&this.needsAnimate()&&r.needsAnimate()&&i===r.valType&&!r._finished){this._additiveTrack=r;var d=n[0].value;for(f=0;f<a;f++)0===i?n[f].additiveValue=n[f].value-d:3===i?n[f].additiveValue=jo([],n[f].value,d,-1):Qo(i)&&(n[f].additiveValue=1===i?jo([],n[f].value,d,-1):bd([],n[f].value,d,-1))}},t.prototype.step=function(e,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var f,h,d,n=null!=this._additiveTrack,i=n?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=3===a,c=this._lastFr,v=Math.min;if(1===s)h=d=o[0];else{if(r<0)f=0;else if(r<this._lastFrP){for(f=v(c+1,s-1);f>=0&&!(o[f].percent<=r);f--);f=v(f,s-2)}else{for(f=c;f<s&&!(o[f].percent>r);f++);f=v(f-1,s-2)}d=o[f+1],h=o[f]}if(h&&d){this._lastFr=f,this._lastFrP=r;var p=d.percent-h.percent,g=0===p?1:v((r-h.percent)/p,1);d.easingFunc&&(g=d.easingFunc(g));var y=n?this._additiveValue:u?Ca:e[l];if((Qo(a)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)e[l]=g<1?h.rawValue:d.rawValue;else if(Qo(a))1===a?Tu(y,h[i],d[i],g):function Vb(t,e,r,n){for(var i=e.length,a=i&&e[0].length,o=0;o<i;o++){t[o]||(t[o]=[]);for(var s=0;s<a;s++)t[o][s]=Lr(e[o][s],r[o][s],n)}}(y,h[i],d[i],g);else if(wd(a)){var _=h[i],C=d[i],b=4===a;e[l]={type:b?"linear":"radial",x:Lr(_.x,C.x,g),y:Lr(_.y,C.y,g),colorStops:K(_.colorStops,function(x,T){var w=C.colorStops[T];return{offset:Lr(x.offset,w.offset,g),color:Zo(Tu([],x.color,w.color,g))}}),global:C.global},b?(e[l].x2=Lr(_.x2,C.x2,g),e[l].y2=Lr(_.y2,C.y2,g)):e[l].r=Lr(_.r,C.r,g)}else if(u)Tu(y,h[i],d[i],g),n||(e[l]=Zo(y));else{var S=Lr(h[i],d[i],g);n?this._additiveValue=S:e[l]=S}n&&this._addToTarget(e)}}},t.prototype._addToTarget=function(e){var r=this.valType,n=this.propName,i=this._additiveValue;0===r?e[n]=e[n]+i:3===r?(xt(e[n],Ca),jo(Ca,Ca,i,1),e[n]=Zo(Ca)):1===r?jo(e[n],e[n],i,1):2===r&&bd(e[n],e[n],i,1)},t}(),Xb=function(){function t(e,r,n,i){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=r,r&&i?To("Can' use additive animation on looped animation."):(this._additiveAnimators=i,this._allowDiscrete=n)}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(e){this._target=e},t.prototype.when=function(e,r,n){return this.whenWithKeys(e,r,de(r),n)},t.prototype.whenWithKeys=function(e,r,n,i){for(var a=this._tracks,o=0;o<n.length;o++){var s=n[o],l=a[s];if(!l){l=a[s]=new Yb(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var c=f.keyframes,v=c[c.length-1];u=v&&v.value,3===f.valType&&u&&(u=Zo(u))}else u=this._target[s];if(null==u)continue;e>0&&l.addKeyframe(0,ya(u),i),this._trackKeys.push(s)}l.addKeyframe(e,ya(r[s]),i)}return this._maxTime=Math.max(this._maxTime,e),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var r=e.length,n=0;n<r;n++)e[n].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,r=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,r)for(var n=0;n<r.length;n++)r[n].call(this)},t.prototype._setTracksFinished=function(){for(var e=this._tracks,r=this._trackKeys,n=0;n<r.length;n++)e[r[n]].setFinished()},t.prototype._getAdditiveTrack=function(e){var r,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var a=n[i].getTrack(e);a&&(r=a)}return r},t.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var r=this,n=[],i=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,f=u.length;if(s.prepare(i,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var c=u[f-1];c&&(r._target[s.propName]=c.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var v=new Mb({life:i,loop:this._loop,delay:this._delay||0,onframe:function(h){r._started=2;var d=r._additiveAnimators;if(d){for(var m=!1,p=0;p<d.length;p++)if(d[p]._clip){m=!0;break}m||(r._additiveAnimators=null)}for(p=0;p<n.length;p++)n[p].step(r._target,h);var g=r._onframeCbs;if(g)for(p=0;p<g.length;p++)g[p](r._target,h)},ondestroy:function(){r._doneCallback()}});this._clip=v,this.animation&&this.animation.addClip(v),e&&v.setEasing(e)}else this._doneCallback();return this}},t.prototype.stop=function(e){this._clip&&(e&&this._clip.onframe(1),this._abortedCallback())},t.prototype.delay=function(e){return this._delay=e,this},t.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},t.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},t.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(e){return this._tracks[e]},t.prototype.getTracks=function(){var e=this;return K(this._trackKeys,function(r){return e._tracks[r]})},t.prototype.stopTracks=function(e,r){if(!e.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,a=0;a<e.length;a++){var o=n[e[a]];o&&!o.isFinished()&&(r?o.step(this._target,1):1===this._started&&o.step(this._target,0),o.setFinished())}var s=!0;for(a=0;a<i.length;a++)if(!n[i[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},t.prototype.saveTo=function(e,r,n){if(e){r=r||this._trackKeys;for(var i=0;i<r.length;i++){var a=r[i],o=this._tracks[a];if(o&&!o.isFinished()){var s=o.keyframes,l=s[n?0:s.length-1];l&&(e[a]=ya(l.rawValue))}}}},t.prototype.__changeFinalValue=function(e,r){r=r||de(e);for(var n=0;n<r.length;n++){var i=r[n],a=this._tracks[i];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,e[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},t}();const Mu=Xb;function Ai(){return(new Date).getTime()}var jb=function(t){function e(r){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,n.stage=(r=r||{}).stage||{},n}return(0,X.C6)(e,t),e.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},e.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},e.prototype.removeClip=function(r){if(r.animation){var n=r.prev,i=r.next;n?n.next=i:this._head=i,i?i.prev=n:this._tail=n,r.next=r.prev=r.animation=null}},e.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},e.prototype.update=function(r){for(var n=Ai()-this._pausedTime,i=n-this._time,a=this._head;a;){var o=a.next;a.step(n,i)&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=n,r||(this.trigger("frame",i),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var r=this;this._running=!0,gu(function n(){r._running&&(gu(n),!r._paused&&r.update())})},e.prototype.start=function(){this._running||(this._time=Ai(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Ai(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Ai()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var r=this._head;r;){var n=r.next;r.prev=r.next=r.animation=null,r=n}this._head=this._tail=null},e.prototype.isFinished=function(){return null==this._head},e.prototype.animate=function(r,n){n=n||{},this.start();var i=new Mu(r,n.loop);return this.addAnimator(i),i},e}(or);const Zb=jb;var t,r,Lu=oe.domSupported,Au=(r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:K(t,function(i){var a=i.replace("mouse","pointer");return r.hasOwnProperty(a)?a:i})}),Dd_mouse=["mousemove","mouseup"],Dd_pointer=["pointermove","pointerup"],Md=!1;function Pu(t){var e=t.pointerType;return"pen"===e||"touch"===e}function Ru(t){t&&(t.zrByTouch=!0)}function Ld(t,e){for(var r=e,n=!1;r&&9!==r.nodeType&&!(n=r.domBelongToZr||r!==e&&r===t.painterRoot);)r=r.parentNode;return n}var Jb=function(){return function t(e,r){this.stopPropagation=it,this.stopImmediatePropagation=it,this.preventDefault=it,this.type=r.type,this.target=this.currentTarget=e.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}}(),jt={mousedown:function(t){t=At(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=At(this.dom,t);var e=this.__mayPointerCapture;e&&(t.zrX!==e[0]||t.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=At(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){Ld(this,(t=At(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){Md=!0,t=At(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){Md||(t=At(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){Ru(t=At(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),jt.mousemove.call(this,t),jt.mousedown.call(this,t)},touchmove:function(t){Ru(t=At(this.dom,t)),this.handler.processGesture(t,"change"),jt.mousemove.call(this,t)},touchend:function(t){Ru(t=At(this.dom,t)),this.handler.processGesture(t,"end"),jt.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&jt.click.call(this,t)},pointerdown:function(t){jt.mousedown.call(this,t)},pointermove:function(t){Pu(t)||jt.mousemove.call(this,t)},pointerup:function(t){jt.mouseup.call(this,t)},pointerout:function(t){Pu(t)||jt.mouseout.call(this,t)}};D(["click","dblclick","contextmenu"],function(t){jt[t]=function(e){e=At(this.dom,e),this.trigger(t,e)}});var Eu={pointermove:function(t){Pu(t)||Eu.mousemove.call(this,t)},pointerup:function(t){Eu.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function Jo(t,e,r,n){t.mounted[e]=r,t.listenerOpts[e]=n,function rb(t,e,r,n){t.addEventListener(e,r,n)}(t.domTarget,e,r,n)}function Iu(t){var e=t.mounted;for(var r in e)e.hasOwnProperty(r)&&nb(t.domTarget,r,e[r],t.listenerOpts[r]);t.mounted={}}var Ad=function(){return function t(e,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=r}}(),rx=function(t){function e(r,n){var i=t.call(this)||this;return i.__pointerCapturing=!1,i.dom=r,i.painterRoot=n,i._localHandlerScope=new Ad(r,jt),Lu&&(i._globalHandlerScope=new Ad(document,Eu)),function ex(t,e){var r=e.domHandlers;oe.pointerEventsSupported?D(Au.pointer,function(n){Jo(e,n,function(i){r[n].call(t,i)})}):(oe.touchEventsSupported&&D(Au.touch,function(n){Jo(e,n,function(i){r[n].call(t,i),function Kb(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}(e)})}),D(Au.mouse,function(n){Jo(e,n,function(i){i=su(i),e.touching||r[n].call(t,i)})}))}(i,i._localHandlerScope),i}return(0,X.C6)(e,t),e.prototype.dispose=function(){Iu(this._localHandlerScope),Lu&&Iu(this._globalHandlerScope)},e.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},e.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,Lu&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?function tx(t,e){function r(n){Jo(e,n,function i(a){a=su(a),Ld(t,a.target)||(a=function Qb(t,e){return At(t.dom,new Jb(t,e),!0)}(t,a),e.domHandlers[n].call(t,a))},{capture:!0})}oe.pointerEventsSupported?D(Dd_pointer,r):oe.touchEventsSupported||D(Dd_mouse,r)}(this,n):Iu(n)}},e}(or);const nx=rx;var Pd=1;oe.hasGlobalWindow&&(Pd=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var es=Pd,Ou="#333",Bu="#ccc",Rd=ua;function In(t){return t>5e-5||t<-5e-5}var kn=[],Pi=[],Fu=[1,0,0,1,0,0],Nu=Math.abs,ax=function(){function t(){}return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},t.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},t.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},t.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},t.prototype.needLocalTransform=function(){return In(this.rotation)||In(this.x)||In(this.y)||In(this.scaleX-1)||In(this.scaleY-1)||In(this.skewX)||In(this.skewY)},t.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;r||e?(n=n||[1,0,0,1,0,0],r?this.getLocalTransform(n):Rd(n),e&&(r?Dn(n,e,n):ko(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&(Rd(n),this.invTransform=null)},t.prototype._resolveGlobalScaleRatio=function(e){var r=this.globalScaleRatio;if(null!=r&&1!==r){this.getGlobalScale(kn);var n=kn[0]<0?-1:1,i=kn[1]<0?-1:1,a=((kn[0]-n)*r+n)/kn[0]||0,o=((kn[1]-i)*r+i)/kn[1]||0;e[0]*=a,e[1]*=a,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||[1,0,0,1,0,0],Mn(this.invTransform,e)},t.prototype.getComputedTransform=function(){for(var e=this,r=[];e;)r.push(e),e=e.parent;for(;e=r.pop();)e.updateTransform();return this.transform},t.prototype.setLocalTransform=function(e){if(e){var r=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],i=Math.atan2(e[1],e[0]),a=Math.PI/2+i-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+e[4],this.y=+e[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,r=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||[1,0,0,1,0,0],Dn(Pi,e.invTransform,r),r=Pi);var n=this.originX,i=this.originY;(n||i)&&(Fu[4]=n,Fu[5]=i,Dn(Pi,r,Fu),Pi[4]-=n,Pi[5]-=i,r=Pi),this.setLocalTransform(r)}},t.prototype.getGlobalScale=function(e){var r=this.transform;return e=e||[],r?(e[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),e[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(e[0]=-e[0]),r[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},t.prototype.transformCoordToLocal=function(e,r){var n=[e,r],i=this.invTransform;return i&&Ct(n,n,i),n},t.prototype.transformCoordToGlobal=function(e,r){var n=[e,r],i=this.transform;return i&&Ct(n,n,i),n},t.prototype.getLineScale=function(){var e=this.transform;return e&&Nu(e[0]-1)>1e-10&&Nu(e[3]-1)>1e-10?Math.sqrt(Nu(e[0]*e[3]-e[2]*e[1])):1},t.prototype.copyTransform=function(e){zu(this,e)},t.getLocalTransform=function(e,r){r=r||[];var n=e.originX||0,i=e.originY||0,a=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,f=e.x,c=e.y,v=e.skewX?Math.tan(e.skewX):0,h=e.skewY?Math.tan(-e.skewY):0;if(n||i||s||l){var d=n+s,m=i+l;r[4]=-d*a-v*m*o,r[5]=-m*o-h*d*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=h*a,r[2]=v*o,u&&Bo(r,r,u),r[4]+=n+f,r[5]+=i+c,r},t.initDefaultProps=((e=t.prototype).scaleX=e.scaleY=e.globalScaleRatio=1,void(e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0)),t;var e}(),lr=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function zu(t,e){for(var r=0;r<lr.length;r++){var n=lr[r];t[n]=e[n]}}const ts=ax;var rs;function Zt(t){rs||(rs=new Mi(100));var e=rs.get(t=t||Zr);return e||(e={font:t,strWidthCache:new Mi(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:Lt.measureText("\u56fd",t).width,asciiCharWidth:Lt.measureText("a",t).width},rs.put(t,e)),e}var Hu=0;function kd(t,e){return t.asciiWidthMapTried||(t.asciiWidthMap=function sx(t){if(!(Hu>=5)){t=t||Zr;for(var e=[],r=+new Date,n=0;n<=127;n++)e[n]=Lt.measureText(String.fromCharCode(n),t).width;var i=+new Date-r;return i>16?Hu=5:i>2&&Hu++,e}}(t.font),t.asciiWidthMapTried=!0),0<=e&&e<=127?null!=t.asciiWidthMap?t.asciiWidthMap[e]:t.asciiCharWidth:t.stWideCharWidth}function $t(t,e){var r=t.strWidthCache,n=r.get(e);return null==n&&(n=Lt.measureText(e,t.font).width,r.put(e,n)),n}function Od(t,e,r,n){var i=$t(Zt(e),t),a=ns(e),o=Ri(0,i,r),s=On(0,a,n);return new ne(o,s,i,a)}function Bd(t,e,r,n){var i=((t||"")+"").split("\n");if(1===i.length)return Od(i[0],e,r,n);for(var o=new ne(0,0,0,0),s=0;s<i.length;s++){var l=Od(i[s],e,r,n);0===s?o.copy(l):o.union(l)}return o}function Ri(t,e,r,n){return"right"===r?n?t+=e:t-=e:"center"===r&&(n?t+=e/2:t-=e/2),t}function On(t,e,r,n){return"middle"===r?n?t+=e/2:t-=e/2:"bottom"===r&&(n?t+=e:t-=e),t}function ns(t){return Zt(t).stWideCharWidth}function an(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function Fd(t,e,r){var n=e.position||"inside",i=null!=e.distance?e.distance:5,a=r.height,o=r.width,s=a/2,l=r.x,u=r.y,f="left",c="top";if(n instanceof Array)l+=an(n[0],r.width),u+=an(n[1],r.height),f=null,c=null;else switch(n){case"left":l-=i,u+=s,f="right",c="middle";break;case"right":l+=i+o,u+=s,c="middle";break;case"top":l+=o/2,u-=i,f="center",c="bottom";break;case"bottom":l+=o/2,u+=a+i,f="center";break;case"inside":l+=o/2,u+=s,f="center",c="middle";break;case"insideLeft":l+=i,u+=s,c="middle";break;case"insideRight":l+=o-i,u+=s,f="right",c="middle";break;case"insideTop":l+=o/2,u+=i,f="center";break;case"insideBottom":l+=o/2,u+=a-i,f="center",c="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,f="right";break;case"insideBottomLeft":l+=i,u+=a-i,c="bottom";break;case"insideBottomRight":l+=o-i,u+=a-i,f="right",c="bottom"}return(t=t||{}).x=l,t.y=u,t.align=f,t.verticalAlign=c,t}var Gu="__zr_normal__",Vu=lr.concat(["ignore"]),lx=qt(lr,function(t,e){return t[e]=!0,t},{ignore:!1}),Ei={},ux=new ne(0,0,0,0),is=[],Wu=function(){function t(e){this.id=Zl(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return t.prototype._init=function(e){this.attr(e)},t.prototype.drift=function(e,r,n){switch(this.draggable){case"horizontal":r=0;break;case"vertical":e=0}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=e,i[5]+=r,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(e){var r=this._textContent;if(r&&(!r.ignore||e)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,a=r.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=i?this:null;var u=!1;a.copyTransform(r);var f=null!=n.position,c=n.autoOverflowArea,v=void 0;if((c||f)&&((v=ux).copy(n.layoutRect?n.layoutRect:this.getBoundingRect()),i||v.applyTransform(this.transform)),f){this.calculateTextPosition?this.calculateTextPosition(Ei,n,v):Fd(Ei,n,v),a.x=Ei.x,a.y=Ei.y,o=Ei.align,s=Ei.verticalAlign;var h=n.origin;if(h&&null!=n.rotation){var d=void 0,m=void 0;"center"===h?(d=.5*v.width,m=.5*v.height):(d=an(h[0],v.width),m=an(h[1],v.height)),u=!0,a.originX=-a.x+d+(i?0:v.x),a.originY=-a.y+m+(i?0:v.y)}}null!=n.rotation&&(a.rotation=n.rotation);var p=n.offset;p&&(a.x+=p[0],a.y+=p[1],u||(a.originX=-p[0],a.originY=-p[1]));var g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(c){var y=g.overflowRect=g.overflowRect||new ne(0,0,0,0);a.getLocalTransform(is),Mn(is,is),ne.copy(y,v),y.applyTransform(is)}else g.overflowRect=null;var C=void 0,b=void 0,S=void 0;(null==n.inside?"string"==typeof n.position&&n.position.indexOf("inside")>=0:n.inside)&&this.canBeInsideText()?(b=n.insideStroke,(null==(C=n.insideFill)||"auto"===C)&&(C=this.getInsideTextFill()),(null==b||"auto"===b)&&(b=this.getInsideTextStroke(C),S=!0)):(b=n.outsideStroke,(null==(C=n.outsideFill)||"auto"===C)&&(C=this.getOutsideFill()),(null==b||"auto"===b)&&(b=this.getOutsideStroke(C),S=!0)),((C=C||"#000")!==g.fill||b!==g.stroke||S!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=C,g.stroke=b,g.autoStroke=S,g.align=o,g.verticalAlign=s,r.setDefaultTextStyle(g)),r.__dirty|=1,l&&r.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(e){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Bu:Ou},t.prototype.getOutsideStroke=function(e){var r=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof r&&xt(r);n||(n=[255,255,255,1]);for(var i=n[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(a?0:255)*(1-i);return n[3]=1,nn(n,"rgba")},t.prototype.traverse=function(e,r){},t.prototype.attrKV=function(e,r){"textConfig"===e?this.setTextConfig(r):"textContent"===e?this.setTextContent(r):"clipPath"===e?this.setClipPath(r):"extra"===e?(this.extra=this.extra||{},k(this.extra,r)):this[e]=r},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(e,r){if("string"==typeof e)this.attrKV(e,r);else if($(e))for(var i=de(e),a=0;a<i.length;a++){var o=i[a];this.attrKV(o,e[o])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var r=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],a=i.__fromStateTransition;if(!(i.getLoop()||a&&a!==Gu)){var o=i.targetName;i.saveTo(o?r[o]:r)}}},t.prototype._innerSaveToNormal=function(e){var r=this._normalState;r||(r=this._normalState={}),e.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(e,r,Vu)},t.prototype._savePrimaryToNormal=function(e,r,n){for(var i=0;i<n.length;i++){var a=n[i];null!=e[a]&&!(a in r)&&(r[a]=this[a])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(e){return this.states[e]},t.prototype.ensureState=function(e){var r=this.states;return r[e]||(r[e]={}),r[e]},t.prototype.clearStates=function(e){this.useState(Gu,!1,e)},t.prototype.useState=function(e,r,n,i){var a=e===Gu;if(this.hasState()||!a){var s=this.currentStates,l=this.stateTransition;if(!(le(s,e)>=0)||!r&&1!==s.length){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!a)return void To("State "+e+" not exists.");a||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||i);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,r,!n&&!this.__inHover&&l&&l.duration>0,l);var c=this._textContent,v=this._textGuide;return c&&c.useState(e,r,n,f),v&&v.useState(e,r,n,f),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2),u}}},t.prototype.useStates=function(e,r,n){if(e.length){var i=[],a=this.currentStates,o=e.length,s=o===a.length;if(s)for(var l=0;l<o;l++)if(e[l]!==a[l]){s=!1;break}if(s)return;for(l=0;l<o;l++){var u=e[l],f=void 0;this.stateProxy&&(f=this.stateProxy(u,e)),f||(f=this.states[u]),f&&i.push(f)}var c=i[o-1],v=!!(c&&c.hoverLayer||n);v&&this._toggleHoverLayerFlag(!0);var h=this._mergeStates(i),d=this.stateTransition;this.saveCurrentToNormalState(h),this._applyStateObj(e.join(","),h,this._normalState,!1,!r&&!this.__inHover&&d&&d.duration>0,d);var m=this._textContent,p=this._textGuide;m&&m.useStates(e,r,v),p&&p.useStates(e,r,v),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!v&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2)}else this.clearStates()},t.prototype.isSilent=function(){for(var e=this;e;){if(e.silent)return!0;var r=e.__hostTarget;e=r?e.ignoreHostSilent?null:r:e.parent}return!1},t.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var r=this.animators[e];r.targetName&&r.changeTarget(this[r.targetName])}},t.prototype.removeState=function(e){var r=le(this.currentStates,e);if(r>=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},t.prototype.replaceState=function(e,r,n){var i=this.currentStates.slice(),a=le(i,e),o=le(i,r)>=0;a>=0?o?i.splice(a,1):i[a]=r:n&&!o&&i.push(r),this.useStates(i)},t.prototype.toggleState=function(e,r){r?this.useState(e,!0):this.removeState(e)},t.prototype._mergeStates=function(e){for(var n,r={},i=0;i<e.length;i++){var a=e[i];k(r,a),a.textConfig&&k(n=n||{},a.textConfig)}return n&&(r.textConfig=n),r},t.prototype._applyStateObj=function(e,r,n,i,a,o){var s=!(r&&i);r&&r.textConfig?(this.textConfig=k({},i?this.textConfig:n.textConfig),k(this.textConfig,r.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,f=0;f<Vu.length;f++){var c=Vu[f],v=a&&lx[c];r&&null!=r[c]?v?(u=!0,l[c]=r[c]):this[c]=r[c]:s&&null!=n[c]&&(v?(u=!0,l[c]=n[c]):this[c]=n[c])}if(!a)for(f=0;f<this.animators.length;f++){var h=this.animators[f],d=h.targetName;h.getLoop()||h.__changeFinalValue(d?(r||n)[d]:r||n)}u&&this._transitionState(e,l,o)},t.prototype._attachComponent=function(e){if((!e.__zr||e.__hostTarget)&&e!==this){var r=this.__zr;r&&e.addSelfToZr(r),e.__zr=r,e.__hostTarget=this}},t.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},t.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(e){var r=this._textContent;r!==e&&(r&&r!==e&&this.removeTextContent(),e.innerTransformable=new ts,this._attachComponent(e),this._textContent=e,this.markRedraw())},t.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),k(this.textConfig,e),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=1;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var r=this._textContent,n=this._textGuide;r&&(r.__inHover=e),n&&(n.__inHover=e)},t.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var r=this.animators;if(r)for(var n=0;n<r.length;n++)e.animation.addAnimator(r[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var r=this.animators;if(r)for(var n=0;n<r.length;n++)e.animation.removeAnimator(r[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},t.prototype.animate=function(e,r,n){var a=new Mu(e?this[e]:this,r,n);return e&&(a.targetName=e),this.addAnimator(a,e),a},t.prototype.addAnimator=function(e,r){var n=this.__zr,i=this;e.during(function(){i.updateDuringAnimation(r)}).done(function(){var a=i.animators,o=le(a,e);o>=0&&a.splice(o,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(e){this.markRedraw()},t.prototype.stopAnimation=function(e,r){for(var n=this.animators,i=n.length,a=[],o=0;o<i;o++){var s=n[o];e&&e!==s.scope?a.push(s):s.stop(r)}return this.animators=a,this},t.prototype.animateTo=function(e,r,n){qu(this,e,r,n)},t.prototype.animateFrom=function(e,r,n){qu(this,e,r,n,!0)},t.prototype._transitionState=function(e,r,n,i){for(var a=qu(this,r,n,i),o=0;o<a.length;o++)a[o].__fromStateTransition=e},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=function(){var e=t.prototype;function i(a,o,s,l){function u(f,c){Object.defineProperty(c,0,{get:function(){return f[s]},set:function(v){f[s]=v}}),Object.defineProperty(c,1,{get:function(){return f[l]},set:function(v){f[l]=v}})}Object.defineProperty(e,a,{get:function(){return this[o]||u(this,this[o]=[]),this[o]},set:function(f){this[s]=f[0],this[l]=f[1],this[o]=f,u(this,f)}})}e.type="element",e.name="",e.ignore=e.silent=e.ignoreHostSilent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=1,Object.defineProperty&&(i("position","_legacyPos","x","y"),i("scale","_legacyScale","scaleX","scaleY"),i("origin","_legacyOrigin","originX","originY"))}(),t}();function qu(t,e,r,n,i){var a=[];Nd(t,"",t,e,r=r||{},n,a,i);var o=a.length,s=!1,l=r.done,u=r.aborted,f=function(){s=!0,--o<=0&&(s?l&&l():u&&u())},c=function(){--o<=0&&(s?l&&l():u&&u())};o||l&&l(),a.length>0&&r.during&&a[0].during(function(d,m){r.during(m)});for(var v=0;v<a.length;v++){var h=a[v];f&&h.done(f),c&&h.aborted(c),r.force&&h.duration(r.duration),h.start(r.easing)}return a}function Uu(t,e,r){for(var n=0;n<r;n++)t[n]=e[n]}function cx(t,e,r){if(Ze(e[r]))if(Ze(t[r])||(t[r]=[]),nt(e[r])){var n=e[r].length;t[r].length!==n&&(t[r]=new e[r].constructor(n),Uu(t[r],e[r],n))}else{var i=e[r],a=t[r],o=i.length;if(function fx(t){return Ze(t[0])}(i))for(var s=i[0].length,l=0;l<o;l++)a[l]?Uu(a[l],i[l],s):a[l]=Array.prototype.slice.call(i[l]);else Uu(a,i,o);a.length=i.length}else t[r]=e[r]}function Nd(t,e,r,n,i,a,o,s){for(var l=de(n),u=i.duration,f=i.delay,c=i.additive,v=i.setToFinal,h=!$(a),d=t.animators,m=[],p=0;p<l.length;p++){var y=n[g=l[p]];if(null!=y&&null!=r[g]&&(h||a[g]))if(!$(y)||Ze(y)||aa(y))m.push(g);else{if(e){s||(r[g]=y,t.updateDuringAnimation(e));continue}Nd(t,g,r[g],y,i,a&&a[g],o,s)}else s||(r[g]=y,t.updateDuringAnimation(e),m.push(g))}var _=m.length;if(!c&&_)for(var C=0;C<d.length;C++)if((b=d[C]).targetName===e&&b.stopTracks(m)){var x=le(d,b);d.splice(x,1)}if(i.force||(m=Me(m,function(A){return!function hx(t,e){return t===e||Ze(t)&&Ze(e)&&function vx(t,e){var r=t.length;if(r!==e.length)return!1;for(var n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}(t,e)}(n[A],r[A])}),_=m.length),_>0||i.force&&!o.length){var b,T=void 0,w=void 0,L=void 0;if(s)for(w={},v&&(T={}),C=0;C<_;C++)w[g=m[C]]=r[g],v?T[g]=n[g]:r[g]=n[g];else if(v)for(L={},C=0;C<_;C++){var g;L[g=m[C]]=ya(r[g]),cx(r,n,g)}(b=new Mu(r,!1,!1,c?Me(d,function(R){return R.targetName===e}):null)).targetName=e,i.scope&&(b.scope=i.scope),v&&T&&b.whenWithKeys(0,T,m),L&&b.whenWithKeys(0,L,m),b.whenWithKeys(u??500,s?w:n,m).delay(f||0),t.addAnimator(b,e),o.push(b)}}Wt(Wu,or),Wt(Wu,ts);const zd=Wu;var Hd=function(t){function e(r){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(r),n}return(0,X.C6)(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(r){return this._children[r]},e.prototype.childOfName=function(r){for(var n=this._children,i=0;i<n.length;i++)if(n[i].name===r)return n[i]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(r){return r&&r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),this},e.prototype.addBefore=function(r,n){if(r&&r!==this&&r.parent!==this&&n&&n.parent===this){var i=this._children,a=i.indexOf(n);a>=0&&(i.splice(a,0,r),this._doAdd(r))}return this},e.prototype.replace=function(r,n){var i=le(this._children,r);return i>=0&&this.replaceAt(n,i),this},e.prototype.replaceAt=function(r,n){var i=this._children,a=i[n];if(r&&r!==this&&r.parent!==this&&r!==a){i[n]=r,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(r)}return this},e.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var n=this.__zr;n&&n!==r.__zr&&r.addSelfToZr(n),n&&n.refresh()},e.prototype.remove=function(r){var n=this.__zr,i=this._children,a=le(i,r);return a<0||(i.splice(a,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh()),this},e.prototype.removeAll=function(){for(var r=this._children,n=this.__zr,i=0;i<r.length;i++){var a=r[i];n&&a.removeSelfFromZr(n),a.parent=null}return r.length=0,this},e.prototype.eachChild=function(r,n){for(var i=this._children,a=0;a<i.length;a++)r.call(n,i[a],a);return this},e.prototype.traverse=function(r,n){for(var i=0;i<this._children.length;i++){var a=this._children[i],o=r.call(n,a);a.isGroup&&!o&&a.traverse(r,n)}return this},e.prototype.addSelfToZr=function(r){t.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].addSelfToZr(r)},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].removeSelfFromZr(r)},e.prototype.getBoundingRect=function(r){for(var n=new ne(0,0,0,0),i=r||this._children,a=[],o=null,s=0;s<i.length;s++){var l=i[s];if(!l.ignore&&!l.invisible){var u=l.getBoundingRect(),f=l.getLocalTransform(a);f?(ne.applyTransform(n,u,f),(o=o||n.clone()).union(n)):(o=o||u.clone()).union(u)}}return o||n},e}(zd);Hd.prototype.type="group";const Tt=Hd;var Xu,as={},Bn={},gx=function(){function t(e,r,n){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=r,this.id=e;var a=new Sb,o=n.renderer||"canvas";as[o]||(o=de(as)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var s=new as[o](r,a,n,e),l=n.ssr||s.ssrOnly;this.storage=a,this.painter=s;var h,u=oe.node||oe.worker||l?null:new nx(s.getViewportRoot(),s.root),f=n.useCoarsePointer;(null==f||"auto"===f?oe.touchEventsSupported:!!f)&&(h=Q(n.pointerSize,44)),this.handler=new gb(a,s,u,s.root,h),this.animation=new Zb({stage:{update:l?null:function(){return i._flush(!0)}}}),l||this.animation.start()}return t.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},t.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(e,r){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,r),this.refresh())},t.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=function px(t){if(!t)return!1;if("string"==typeof t)return ga(t,1)<.4;if(t.colorStops){for(var e=t.colorStops,r=0,n=e.length,i=0;i<n;i++)r+=ga(e[i].color,1);return(r/=n)<.4}return!1}(e))},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(e){this._darkMode=e},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(e){this._disposed||(e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!1)},t.prototype._flush=function(e){var r,n=Ai();this._needsRefresh&&(r=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(r=!0,this.refreshHoverImmediately());var i=Ai();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},t.prototype.resize=function(e){this._disposed||(this.painter.resize((e=e||{}).width,e.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},t.prototype.findHover=function(e,r){if(!this._disposed)return this.handler.findHover(e,r)},t.prototype.on=function(e,r,n){return this._disposed||this.handler.on(e,r,n),this},t.prototype.off=function(e,r){this._disposed||this.handler.off(e,r)},t.prototype.trigger=function(e,r){this._disposed||this.handler.trigger(e,r)},t.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),r=0;r<e.length;r++)e[r]instanceof Tt&&e[r].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},t.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,function dx(t){delete Bn[t]}(this.id))},t}();function Yu(t,e){var r=new gx(Zl(),t,e);return Bn[r.id]=r,r}function mx(t){t.dispose()}function yx(){for(var t in Bn)Bn.hasOwnProperty(t)&&Bn[t].dispose();Bn={}}function _x(t){return Bn[t]}function Gd(t,e){as[t]=e}function Cx(t){if("function"==typeof Xu)return Xu(t)}function Vd(t){Xu=t}var Sx="6.0.0",Sa=Math.min,Kt=Math.max,ur=Math.abs;function os(t,e,r,n){var i=e[0],a=e[1],o=r[0],s=r[1],l=a-i,u=s-o;if(0===l)return 0===u?o:(o+s)/2;if(n)if(l>0){if(t<=i)return o;if(t>=a)return s}else{if(t>=i)return o;if(t<=a)return s}else{if(t===i)return o;if(t===a)return s}return(t-i)/l*u+o}var me=function xx(t,e,r){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return function Tx(t,e,r){return U(t)?function bx(t){return t.replace(/^\s+|\s+$/g,"")}(t).match(/%$/)?parseFloat(t)/100*e+(r||0):parseFloat(t):null==t?NaN:+t}(t,e,r)};function fr(t,e,r){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),t=(+t).toFixed(e),r?t:+t}function Dx(t){return t.sort(function(e,r){return e-r}),t}function cr(t){if(t=+t,isNaN(t))return 0;if(t>1e-14)for(var e=1,r=0;r<15;r++,e*=10)if(Math.round(t*e)/e===t)return r;return Ud(t)}function Ud(t){var e=t.toString().toLowerCase(),r=e.indexOf("e"),n=r>0?+e.slice(r+1):0,i=r>0?r:e.length,a=e.indexOf(".");return Math.max(0,(a<0?0:i-1-a)-n)}function Yd(t,e){var r=Math.log,n=Math.LN10,i=Math.floor(r(t[1]-t[0])/n),a=Math.round(r(ur(e[1]-e[0]))/n),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function Mx(t,e,r){return t[e]&&Xd(t,r)[e]||0}function Xd(t,e){var r=qt(t,function(h,d){return h+(isNaN(d)?0:d)},0);if(0===r)return[];for(var n=Math.pow(10,e),i=K(t,function(h){return(isNaN(h)?0:h)/r*n*100}),a=100*n,o=K(i,function(h){return Math.floor(h)}),s=qt(o,function(h,d){return h+d},0),l=K(i,function(h,d){return h-o[d]});s<a;){for(var u=Number.NEGATIVE_INFINITY,f=null,c=0,v=l.length;c<v;++c)l[c]>u&&(u=l[c],f=c);++o[f],l[f]=0,++s}return K(o,function(h){return h/n})}function Lx(t,e){var r=Math.max(cr(t),cr(e)),n=t+e;return r>20?n:fr(n,r)}var Ax=9007199254740991;function ju(t){var e=2*Math.PI;return(t%e+e)%e}function ba(t){return t>-1e-4&&t<1e-4}var Px=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function Ar(t){if(t instanceof Date)return t;if(U(t)){var e=Px.exec(t);if(!e)return new Date(NaN);if(e[8]){var r=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(r-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,r,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}return null==t?new Date(NaN):new Date(Math.round(t))}function jd(t){return Math.pow(10,Zu(t))}function Zu(t){if(0===t)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function $u(t,e){var r=Zu(t),n=Math.pow(10,r),i=t/n;return t=(e?i<1.5?1:i<2.5?2:i<4?3:i<7?5:10:i<1?1:i<2?2:i<3?3:i<5?5:10)*n,r>=-20?+t.toFixed(r<0?-r:0):t}function Rx(t,e){var r=(t.length-1)*e+1,n=Math.floor(r),i=+t[n-1],a=r-n;return a?i+a*(t[n]-i):i}function Ex(t){t.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,r=1,n=0;n<t.length;){for(var i=t[n].interval,a=t[n].close,o=0;o<2;o++)i[o]<=e&&(i[o]=e,a[o]=o?1:1-r),e=i[o],r=a[o];i[0]===i[1]&&a[0]*a[1]!==1?t.splice(n,1):n++}return t;function s(l,u,f){return l.interval[f]<u.interval[f]||l.interval[f]===u.interval[f]&&(l.close[f]-u.close[f]===(f?-1:1)||!f&&s(l,u,1))}}function Pr(t){var e=parseFloat(t);return e==t&&(0!==e||!U(t)||t.indexOf("x")<=0)?e:NaN}function Zd(t){return!isNaN(Pr(t))}function $d(){return Math.round(9*Math.random())}function Kd(t,e){return 0===e?t:Kd(e,t%e)}function Qd(t,e){return null==t?e:null==e?t:t*e/Kd(t,e)}function Jd(t,e,r){return(e-t)*r+t}var ep="series\0";function He(t){return t instanceof Array?t:null==t?[]:[t]}function Ku(t,e,r){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var n=0,i=r.length;n<i;n++){var a=r[n];!t.emphasis[e].hasOwnProperty(a)&&t[e].hasOwnProperty(a)&&(t.emphasis[e][a]=t[e][a])}}}var rp=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function xa(t){return!$(t)||z(t)||t instanceof Date?t:t.value}function Fx(t){return $(t)&&!(t instanceof Array)}function np(t,e,r){var n="normalMerge"===r,i="replaceMerge"===r,a="replaceAll"===r;t=t||[],e=(e||[]).slice();var o=ae();D(e,function(l,u){$(l)||(e[u]=null)});var s=function Nx(t,e,r){var n=[];if("replaceAll"===r)return n;for(var i=0;i<t.length;i++){var a=t[i];a&&null!=a.id&&e.set(a.id,i),n.push({existing:"replaceMerge"===r||wa(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return n}(t,o,r);return(n||i)&&function zx(t,e,r,n){D(n,function(i,a){if(i&&null!=i.id){var o=Ta(i.id),s=r.get(o);if(null!=s){var l=t[s];ar(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=i,l.existing=e[s],n[a]=null}}})}(s,t,o,e),n&&function Hx(t,e){D(e,function(r,n){if(r&&null!=r.name)for(var i=0;i<t.length;i++){var a=t[i].existing;if(!t[i].newOption&&a&&(null==a.id||null==r.id)&&!wa(r)&&!wa(a)&&ip("name",a,r))return t[i].newOption=r,void(e[n]=null)}})}(s,e),n||i?function Gx(t,e,r){D(e,function(n){if(n){for(var i,a=0;(i=t[a])&&(i.newOption||wa(i.existing)||i.existing&&null!=n.id&&!ip("id",n,i.existing));)a++;i?(i.newOption=n,i.brandNew=r):t.push({newOption:n,brandNew:r,existing:null,keyInfo:null}),a++}})}(s,e,i):a&&function Vx(t,e){D(e,function(r){t.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}(s,e),function Wx(t){var e=ae();D(t,function(r){var n=r.existing;n&&e.set(n.id,r)}),D(t,function(r){var n=r.newOption;ar(!n||null==n.id||!e.get(n.id)||e.get(n.id)===r,"id duplicates: "+(n&&n.id)),n&&null!=n.id&&e.set(n.id,r),!r.keyInfo&&(r.keyInfo={})}),D(t,function(r,n){var i=r.existing,a=r.newOption,o=r.keyInfo;if($(a)){if(o.name=null!=a.name?Ta(a.name):i?i.name:ep+n,i)o.id=Ta(i.id);else if(null!=a.id)o.id=Ta(a.id);else{var s=0;do{o.id="\0"+o.name+"\0"+s++}while(e.get(o.id))}e.set(o.id,r)}})}(s),s}function ip(t,e,r){var n=ot(e[t],null),i=ot(r[t],null);return null!=n&&null!=i&&n===i}function Ta(t){return ot(t,"")}function ot(t,e){return null==t?e:U(t)?t:ge(t)||wo(t)?t+"":e}function Qu(t){var e=t.name;return!(!e||!e.indexOf(ep))}function wa(t){return t&&null!=t.id&&0===Ta(t.id).indexOf("\0_ec_\0")}function Da(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?z(e.dataIndex)?K(e.dataIndex,function(r){return t.indexOfRawIndex(r)}):t.indexOfRawIndex(e.dataIndex):null!=e.name?z(e.name)?K(e.name,function(r){return t.indexOfName(r)}):t.indexOfName(e.name):void 0}function ye(){var t="__ec_inner_"+Yx++;return function(e){return e[t]||(e[t]={})}}var Yx=$d();function Ju(t,e,r){var n=ef(e,r),a=n.queryOptionMap,s=n.others,l=r?r.defaultMainType:null;return!n.mainTypeSpecified&&l&&a.set(l,{}),a.each(function(u,f){var c=Ma(t,f,u,{useDefault:l===f,enableAll:!r||null==r.enableAll||r.enableAll,enableNone:!r||null==r.enableNone||r.enableNone});s[f+"Models"]=c.models,s[f+"Model"]=c.models[0]}),s}function ef(t,e){var r;if(U(t)){var n={};n[t+"Index"]=0,r=n}else r=t;var i=ae(),a={},o=!1;return D(r,function(s,l){if("dataIndex"!==l&&"dataIndexInside"!==l){var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],c=(u[2]||"").toLowerCase();!f||!c||e&&e.includeMainTypes&&le(e.includeMainTypes,f)<0||(o=o||!!f,(i.get(f)||i.set(f,{}))[c]=s)}else a[l]=s}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var on={useDefault:!0,enableAll:!1,enableNone:!1};function Ma(t,e,r,n){n=n||on;var i=r.index,a=r.id,o=r.name,s={models:null,specified:null!=i||null!=a||null!=o};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=t.getComponent(e))?[l]:[],s}if("none"===i||!1===i){if(n.enableNone)return s.models=[],s;i=-1}return"all"===i&&(i=n.enableAll?a=o=null:-1),s.models=t.queryComponents({mainType:e,index:i,id:a,name:o}),s}function ap(t,e,r){t.setAttribute?t.setAttribute(e,r):t[e]=r}!function(){function t(){}t.prototype.reset=function(e,r,n,i){return this._list=e,this._step=i=i||1,this._idx=r,this._end=n??(i>0?e.length:0),this.item=null,this.key=NaN,this},t.prototype.next=function(){return(this._step>0?this._idx<this._end:this._idx>=this._end)&&(this.item=this._list[this._idx],this.key=this._idx=this._idx+this._step,!0)}}();var Fn="___EC__COMPONENT__CONTAINER___",op="___EC__EXTENDED_CLASS___";function hr(t){var e={main:"",sub:""};if(t){var r=t.split(".");e.main=r[0]||"",e.sub=r[1]||""}return e}function tf(t,e){t.$constructor=t,t.extend=function(r){var i,n=this;return function Jx(t){return ee(t)&&/^class\s/.test(Function.prototype.toString.call(t))}(n)?i=function(a){function o(){return a.apply(this,arguments)||this}return(0,X.C6)(o,a),o}(n):(i=function(){(r.$constructor||n).apply(this,arguments)},$l(i,this)),k(i.prototype,r),i[op]=!0,i.extend=this.extend,i.superCall=r1,i.superApply=n1,i.superClass=n,i}}function sp(t,e){t.extend=e.extend}var e1=Math.round(10*Math.random());function r1(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return this.superClass.prototype[e].apply(t,r)}function n1(t,e,r){return this.superClass.prototype[e].apply(t,r)}function ss(t){var e={};t.registerClass=function(n){var i=n.type||n.prototype.type;if(i){(function Kx(t){ar(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')})(i),n.prototype.type=i;var a=hr(i);if(a.sub){if(a.sub!==Fn){var o=function r(n){var i=e[n.main];return(!i||!i[Fn])&&((i=e[n.main]={})[Fn]=!0),i}(a);o[a.sub]=n}}else e[a.main]=n}return n},t.getClass=function(n,i,a){var o=e[n];if(o&&o[Fn]&&(o=i?o[i]:null),a&&!o)throw new Error(i?"Component "+n+"."+(i||"")+" is used but not imported.":n+".type should be specified.");return o},t.getClassesByMainType=function(n){var i=hr(n),a=[],o=e[i.main];return o&&o[Fn]?D(o,function(s,l){l!==Fn&&a.push(s)}):a.push(o),a},t.hasClass=function(n){var i=hr(n);return!!e[i.main]},t.getAllClassMainTypes=function(){var n=[];return D(e,function(i,a){n.push(a)}),n},t.hasSubTypes=function(n){var i=hr(n),a=e[i.main];return a&&a[Fn]}}function La(t,e){for(var r=0;r<t.length;r++)t[r][1]||(t[r][1]=t[r][0]);return e=e||!1,function(n,i,a){for(var o={},s=0;s<t.length;s++){var l=t[s][1];if(!(i&&le(i,l)>=0||a&&le(a,l)<0)){var u=n.getShallow(l,e);null!=u&&(o[t[s][0]]=u)}}return o}}var a1=La([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),o1=function(){function t(){}return t.prototype.getAreaStyle=function(e,r){return a1(this,e,r)},t}(),rf=new Mi(50);function s1(t){if("string"==typeof t){var e=rf.get(t);return e&&e.image}return t}function lp(t,e,r,n,i){if(t){if("string"==typeof t){if(e&&e.__zrImageSrc===t||!r)return e;var a=rf.get(t),o={hostEl:r,cb:n,cbPayload:i};return a?!ls(e=a.image)&&a.pending.push(o):((e=Lt.loadImage(t,up,up)).__zrImageSrc=t,rf.put(t,e.__cachedImgObj={image:e,pending:[o]})),e}return t}return e}function up(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var r=t.pending[e],n=r.cb;n&&n(this,r.cbPayload),r.hostEl.dirty()}t.pending.length=0}function ls(t){return t&&t.width&&t.height}var nf=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function l1(t,e,r,n,i){var a={};return fp(a,t,e,r,n,i),a.text}function fp(t,e,r,n,i,a){if(!r)return t.text="",void(t.isTruncated=!1);var o=(e+"").split("\n");a=cp(r,n,i,a);for(var s=!1,l={},u=0,f=o.length;u<f;u++)hp(l,o[u],a),o[u]=l.textLine,s=s||l.isTruncated;t.text=o.join("\n"),t.isTruncated=s}function cp(t,e,r,n){var i=k({},n=n||{});r=Q(r,"..."),i.maxIterations=Q(n.maxIterations,2);var a=i.minChar=Q(n.minChar,0),o=i.fontMeasureInfo=Zt(e),s=o.asciiCharWidth;i.placeholder=Q(n.placeholder,"");for(var l=t=Math.max(0,t-1),u=0;u<a&&l>=s;u++)l-=s;var f=$t(o,r);return f>l&&(r="",f=0),l=t-f,i.ellipsis=r,i.ellipsisWidth=f,i.contentWidth=l,i.containerWidth=t,i}function hp(t,e,r){var n=r.containerWidth,i=r.contentWidth,a=r.fontMeasureInfo;if(!n)return t.textLine="",void(t.isTruncated=!1);var o=$t(a,e);if(o<=n)return t.textLine=e,void(t.isTruncated=!1);for(var s=0;;s++){if(o<=i||s>=r.maxIterations){e+=r.ellipsis;break}var l=0===s?u1(e,i,a):o>0?Math.floor(e.length*i/o):0;o=$t(a,e=e.substr(0,l))}""===e&&(e=r.placeholder),t.textLine=e,t.isTruncated=!0}function u1(t,e,r){for(var n=0,i=0,a=t.length;i<a&&n<e;i++)n+=kd(r,t.charCodeAt(i));return i}var c1=function(){return function t(){}}(),vp=function(){return function t(e){this.tokens=[],e&&(this.tokens=e)}}(),h1=function(){return function t(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}}();function af(t,e,r,n,i){var f,c,a=""===e,o=i&&r.rich[i]||{},s=t.lines,l=o.font||r.font,u=!1;if(n){var v=o.padding,h=v?v[1]+v[3]:0;if(null!=o.width&&"auto"!==o.width){var d=an(o.width,n.width)+h;s.length>0&&d+n.accumWidth>n.width&&(f=e.split("\n"),u=!0),n.accumWidth=d}else{var m=dp(e,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=m.accumWidth+h,c=m.linesWidths,f=m.lines}}f||(f=e.split("\n"));for(var p=Zt(l),g=0;g<f.length;g++){var y=f[g],_=new c1;if(_.styleName=i,_.text=y,_.isLineHolder=!y&&!a,_.width="number"==typeof o.width?o.width:c?c[g]:$t(p,y),g||u)s.push(new vp([_]));else{var C=(s[s.length-1]||(s[0]=new vp)).tokens,b=C.length;1===b&&C[0].isLineHolder?C[0]=_:(y||!b||a)&&C.push(_)}}}var p1=qt(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function g1(t){return!function d1(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}(t)||!!p1[t]}function dp(t,e,r,n,i){for(var a=[],o=[],s="",l="",u=0,f=0,c=Zt(e),v=0;v<t.length;v++){var h=t.charAt(v);if("\n"!==h){var d=kd(c,h.charCodeAt(0)),m=!n&&!g1(h);(a.length?f+d>r:i+f+d>r)?f?(s||l)&&(m?(s||(s=l,l="",f=u=0),a.push(s),o.push(f-u),l+=h,s="",f=u+=d):(l&&(s+=l,l="",u=0),a.push(s),o.push(f),s=h,f=d)):m?(a.push(l),o.push(u),l=h,u=d):(a.push(h),o.push(d)):(f+=d,m?(l+=h,u+=d):(l&&(s+=l,l="",u=0),s+=h))}else l&&(s+=l,f+=u),a.push(s),o.push(f),s="",l="",u=0,f=0}return l&&(s+=l),s&&(a.push(s),o.push(f)),1===a.length&&(f+=i),{accumWidth:f,lines:a,linesWidths:o}}function pp(t,e,r,n,i,a){if(t.baseX=r,t.baseY=n,t.outerWidth=t.outerHeight=null,e){var o=2*e.width,s=2*e.height;ne.set(gp,Ri(r,o,i),On(n,s,a),o,s),ne.intersect(e,gp,null,mp);var l=mp.outIntersectRect;t.outerWidth=l.width,t.outerHeight=l.height,t.baseX=Ri(l.x,l.width,i,!0),t.baseY=On(l.y,l.height,a,!0)}}var gp=new ne(0,0,0,0),mp={outIntersectRect:{},clamp:!0};function of(t){return null!=t?t+="":t=""}function sf(t,e,r,n){var i=new ne(Ri(t.x||0,e,t.textAlign),On(t.y||0,r,t.textBaseline),e,r),a=n??(yp(t)?t.lineWidth:0);return a>0&&(i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a),i}function yp(t){var e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0}var lf="__zr_style_"+Math.round(10*Math.random()),Nn={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},us={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Nn[lf]=!0;var _p=["z","z2","invisible"],y1=["invisible"],_1=function(t){function e(r){return t.call(this,r)||this}return(0,X.C6)(e,t),e.prototype._init=function(r){for(var n=de(r),i=0;i<n.length;i++){var a=n[i];"style"===a?this.useStyle(r[a]):t.prototype.attrKV.call(this,a,r[a])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(r,n,i,a){var o=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&function C1(t,e,r){return uf.copy(t.getBoundingRect()),t.transform&&uf.applyTransform(t.transform),ff.width=e,ff.height=r,!uf.intersect(ff)}(this,r,n)||o&&!o[0]&&!o[3])return!1;if(i&&this.__clipPaths&&this.__clipPaths.length)for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1;if(a&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},e.prototype.contain=function(r,n){return this.rectContain(r,n)},e.prototype.traverse=function(r,n){r.call(n,this)},e.prototype.rectContain=function(r,n){var i=this.transformCoordToLocal(r,n);return this.getBoundingRect().contain(i[0],i[1])},e.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,i=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,l=a.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new ne(0,0,0,0)),n?ne.applyTransform(r,i,n):r.copy(i),(o||s||l)&&(r.width+=2*o+Math.abs(s),r.height+=2*o+Math.abs(l),r.x=Math.min(r.x,r.x+s-o),r.y=Math.min(r.y,r.y+l-o));var u=this.dirtyRectTolerance;r.isZero()||(r.x=Math.floor(r.x-u),r.y=Math.floor(r.y-u),r.width=Math.ceil(r.width+1+2*u),r.height=Math.ceil(r.height+1+2*u))}return r},e.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new ne(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(r){return this.animate("style",r)},e.prototype.updateDuringAnimation=function(r){"style"===r?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(r,n){"style"!==r?t.prototype.attrKV.call(this,r,n):this.style?this.setStyle(n):this.useStyle(n)},e.prototype.setStyle=function(r,n){return"string"==typeof r?this.style[r]=n:k(this.style,r),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(2&this.__dirty)},e.prototype.styleUpdated=function(){this.__dirty&=-3},e.prototype.createStyle=function(r){return la(Nn,r)},e.prototype.useStyle=function(r){r[lf]||(r=this.createStyle(r)),this.__inHover?this.__hoverStyle=r:this.style=r,this.dirtyStyle()},e.prototype.isStyleObject=function(r){return r[lf]},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(r,n,_p)},e.prototype._applyStateObj=function(r,n,i,a,o,s){t.prototype._applyStateObj.call(this,r,n,i,a,o,s);var u,l=!(n&&a);if(n&&n.style?o?a?u=n.style:(u=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(u,n.style)):(u=this._mergeStyle(this.createStyle(),a?this.style:i.style),this._mergeStyle(u,n.style)):l&&(u=i.style),u)if(o){var f=this.style;if(this.style=this.createStyle(l?{}:f),l)for(var c=de(f),v=0;v<c.length;v++)(h=c[v])in u&&(u[h]=u[h],this.style[h]=f[h]);var d=de(u);for(v=0;v<d.length;v++)this.style[h=d[v]]=this.style[h];this._transitionState(r,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);var m=this.__inHover?y1:_p;for(v=0;v<m.length;v++){var h=m[v];n&&null!=n[h]?this[h]=n[h]:l&&null!=i[h]&&(this[h]=i[h])}},e.prototype._mergeStates=function(r){for(var i,n=t.prototype._mergeStates.call(this,r),a=0;a<r.length;a++){var o=r[a];o.style&&this._mergeStyle(i=i||{},o.style)}return i&&(n.style=i),n},e.prototype._mergeStyle=function(r,n){return k(r,n),r},e.prototype.getAnimationStyleProps=function(){return us},e.initDefaultProps=function(){var r=e.prototype;r.type="displayable",r.invisible=!1,r.z=0,r.z2=0,r.zlevel=0,r.culling=!1,r.cursor="pointer",r.rectHover=!1,r.incremental=!1,r._rect=null,r.dirtyRectTolerance=0,r.__dirty=3}(),e}(zd),uf=new ne(0,0,0,0),ff=new ne(0,0,0,0);const zn=_1;var dt=Math.min,pt=Math.max,cf=Math.sin,hf=Math.cos,Hn=2*Math.PI,fs=Tn(),cs=Tn(),hs=Tn();function Cp(t,e,r,n,i,a){i[0]=dt(t,r),i[1]=dt(e,n),a[0]=pt(t,r),a[1]=pt(e,n)}var Sp=[],bp=[];function S1(t,e,r,n,i,a,o,s,l,u){var f=sd,c=Ue,v=f(t,r,i,o,Sp);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var h=0;h<v;h++){var d=c(t,r,i,o,Sp[h]);l[0]=dt(d,l[0]),u[0]=pt(d,u[0])}for(v=f(e,n,a,s,bp),h=0;h<v;h++){var m=c(e,n,a,s,bp[h]);l[1]=dt(m,l[1]),u[1]=pt(m,u[1])}l[0]=dt(t,l[0]),u[0]=pt(t,u[0]),l[0]=dt(o,l[0]),u[0]=pt(o,u[0]),l[1]=dt(e,l[1]),u[1]=pt(e,u[1]),l[1]=dt(s,l[1]),u[1]=pt(s,u[1])}function b1(t,e,r,n,i,a,o,s){var l=fd,u=$e,f=pt(dt(l(t,r,i),1),0),c=pt(dt(l(e,n,a),1),0),v=u(t,r,i,f),h=u(e,n,a,c);o[0]=dt(t,i,v),o[1]=dt(e,a,h),s[0]=pt(t,i,v),s[1]=pt(e,a,h)}function x1(t,e,r,n,i,a,o,s,l){var u=Kr,f=Qr,c=Math.abs(i-a);if(c%Hn<1e-4&&c>1e-4)return s[0]=t-r,s[1]=e-n,l[0]=t+r,void(l[1]=e+n);if(fs[0]=hf(i)*r+t,fs[1]=cf(i)*n+e,cs[0]=hf(a)*r+t,cs[1]=cf(a)*n+e,u(s,fs,cs),f(l,fs,cs),(i%=Hn)<0&&(i+=Hn),(a%=Hn)<0&&(a+=Hn),i>a&&!o?a+=Hn:i<a&&o&&(i+=Hn),o){var v=a;a=i,i=v}for(var h=0;h<a;h+=Math.PI/2)h>i&&(hs[0]=hf(h)*r+t,hs[1]=cf(h)*n+e,u(s,hs,s),f(l,hs,l))}var pe={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Gn=[],Vn=[],vr=[],sn=[],dr=[],pr=[],vf=Math.min,df=Math.max,Wn=Math.cos,qn=Math.sin,Rr=Math.abs,pf=Math.PI,ln=2*pf,gf=typeof Float32Array<"u",Aa=[];function mf(t){return Math.round(t/pf*1e8)/1e8%2*pf}function xp(t,e){var r=mf(t[0]);r<0&&(r+=ln);var i=t[1];i+=r-t[0],!e&&i-r>=ln?i=r+ln:e&&r-i>=ln?i=r-ln:!e&&r>i?i=r+(ln-mf(r-i)):e&&r<i&&(i=r-(ln-mf(i-r))),t[0]=r,t[1]=i}var T1=function(){function t(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(e,r,n){(n=n||0)>0&&(this._ux=Rr(n/es/e)||0,this._uy=Rr(n/es/r)||0)},t.prototype.setDPR=function(e){this.dpr=e},t.prototype.setContext=function(e){this._ctx=e},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(e,r){return this._drawPendingPt(),this.addData(pe.M,e,r),this._ctx&&this._ctx.moveTo(e,r),this._x0=e,this._y0=r,this._xi=e,this._yi=r,this},t.prototype.lineTo=function(e,r){var n=Rr(e-this._xi),i=Rr(r-this._yi),a=n>this._ux||i>this._uy;if(this.addData(pe.L,e,r),this._ctx&&a&&this._ctx.lineTo(e,r),a)this._xi=e,this._yi=r,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=r,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(e,r,n,i,a,o){return this._drawPendingPt(),this.addData(pe.C,e,r,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(e,r,n,i,a,o),this._xi=a,this._yi=o,this},t.prototype.quadraticCurveTo=function(e,r,n,i){return this._drawPendingPt(),this.addData(pe.Q,e,r,n,i),this._ctx&&this._ctx.quadraticCurveTo(e,r,n,i),this._xi=n,this._yi=i,this},t.prototype.arc=function(e,r,n,i,a,o){return this._drawPendingPt(),Aa[0]=i,Aa[1]=a,xp(Aa,o),this.addData(pe.A,e,r,n,n,i=Aa[0],(a=Aa[1])-i,0,o?0:1),this._ctx&&this._ctx.arc(e,r,n,i,a,o),this._xi=Wn(a)*n+e,this._yi=qn(a)*n+r,this},t.prototype.arcTo=function(e,r,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,r,n,i,a),this},t.prototype.rect=function(e,r,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,r,n,i),this.addData(pe.R,e,r,n,i),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(pe.Z);var e=this._ctx,r=this._x0,n=this._y0;return e&&e.closePath(),this._xi=r,this._yi=n,this},t.prototype.fill=function(e){e&&e.fill(),this.toStatic()},t.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(e){if(this._saveData){var r=e.length;(!this.data||this.data.length!==r)&&gf&&(this.data=new Float32Array(r));for(var n=0;n<r;n++)this.data[n]=e[n];this._len=r}},t.prototype.appendPath=function(e){if(this._saveData){e instanceof Array||(e=[e]);for(var r=e.length,n=0,i=this._len,a=0;a<r;a++)n+=e[a].len();var o=this.data;if(gf&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(i+n),i>0&&o))for(var s=0;s<i;s++)this.data[s]=o[s];for(a=0;a<r;a++){var l=e[a].data;for(s=0;s<l.length;s++)this.data[i++]=l[s]}this._len=i}},t.prototype.addData=function(e,r,n,i,a,o,s,l,u){if(this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var c=0;c<arguments.length;c++)f[this._len++]=arguments[c]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],r=0;r<this._len;r++)e[r]=this.data[r];this.data=e}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,gf&&this._len>11&&(this.data=new Float32Array(e)))}},t.prototype.getBoundingRect=function(){vr[0]=vr[1]=dr[0]=dr[1]=Number.MAX_VALUE,sn[0]=sn[1]=pr[0]=pr[1]=-Number.MAX_VALUE;var o,e=this.data,r=0,n=0,i=0,a=0;for(o=0;o<this._len;){var s=e[o++],l=1===o;switch(l&&(i=r=e[o],a=n=e[o+1]),s){case pe.M:r=i=e[o++],n=a=e[o++],dr[0]=i,dr[1]=a,pr[0]=i,pr[1]=a;break;case pe.L:Cp(r,n,e[o],e[o+1],dr,pr),r=e[o++],n=e[o++];break;case pe.C:S1(r,n,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],dr,pr),r=e[o++],n=e[o++];break;case pe.Q:b1(r,n,e[o++],e[o++],e[o],e[o+1],dr,pr),r=e[o++],n=e[o++];break;case pe.A:var u=e[o++],f=e[o++],c=e[o++],v=e[o++],h=e[o++],d=e[o++]+h;o+=1;var m=!e[o++];l&&(i=Wn(h)*c+u,a=qn(h)*v+f),x1(u,f,c,v,h,d,m,dr,pr),r=Wn(d)*c+u,n=qn(d)*v+f;break;case pe.R:Cp(i=r=e[o++],a=n=e[o++],i+e[o++],a+e[o++],dr,pr);break;case pe.Z:r=i,n=a}Kr(vr,vr,dr),Qr(sn,sn,pr)}return 0===o&&(vr[0]=vr[1]=sn[0]=sn[1]=0),new ne(vr[0],vr[1],sn[0]-vr[0],sn[1]-vr[1])},t.prototype._calculateLength=function(){var e=this.data,r=this._len,n=this._ux,i=this._uy,a=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,f=0,c=0,v=0;v<r;){var h=e[v++],d=1===v;d&&(s=a=e[v],l=o=e[v+1]);var m=-1;switch(h){case pe.M:a=s=e[v++],o=l=e[v++];break;case pe.L:var p=e[v++],_=(g=e[v++])-o;(Rr(y=p-a)>n||Rr(_)>i||v===r-1)&&(m=Math.sqrt(y*y+_*_),a=p,o=g);break;case pe.C:var C=e[v++],b=e[v++],g=(p=e[v++],e[v++]),S=e[v++],x=e[v++];m=bb(a,o,C,b,p,g,S,x,10),a=S,o=x;break;case pe.Q:m=Tb(a,o,C=e[v++],b=e[v++],p=e[v++],g=e[v++],10),a=p,o=g;break;case pe.A:var T=e[v++],w=e[v++],L=e[v++],A=e[v++],R=e[v++],M=e[v++],E=M+R;v+=1,d&&(s=Wn(R)*L+T,l=qn(R)*A+w),m=df(L,A)*vf(ln,Math.abs(M)),a=Wn(E)*L+T,o=qn(E)*A+w;break;case pe.R:s=a=e[v++],l=o=e[v++],m=2*e[v++]+2*e[v++];break;case pe.Z:var y=s-a;_=l-o,m=Math.sqrt(y*y+_*_),a=s,o=l}m>=0&&(u[c++]=m,f+=m)}return this._pathLen=f,f},t.prototype.rebuildPath=function(e,r){var s,l,u,f,c,v,d,y,C,b,n=this.data,i=this._ux,a=this._uy,o=this._len,h=r<1,p=0,g=0,_=0;if(!h||(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,y=r*this._pathLen))e:for(var S=0;S<o;){var x=n[S++],T=1===S;switch(T&&(s=u=n[S],l=f=n[S+1]),x!==pe.L&&_>0&&(e.lineTo(C,b),_=0),x){case pe.M:s=u=n[S++],l=f=n[S++],e.moveTo(u,f);break;case pe.L:c=n[S++],v=n[S++];var w=Rr(c-u),L=Rr(v-f);if(w>i||L>a){if(h){if(p+(A=d[g++])>y){e.lineTo(u*(1-(R=(y-p)/A))+c*R,f*(1-R)+v*R);break e}p+=A}e.lineTo(c,v),u=c,f=v,_=0}else{var M=w*w+L*L;M>_&&(C=c,b=v,_=M)}break;case pe.C:var E=n[S++],I=n[S++],O=n[S++],q=n[S++],W=n[S++],H=n[S++];if(h){if(p+(A=d[g++])>y){Vo(u,E,O,W,R=(y-p)/A,Gn),Vo(f,I,q,H,R,Vn),e.bezierCurveTo(Gn[1],Vn[1],Gn[2],Vn[2],Gn[3],Vn[3]);break e}p+=A}e.bezierCurveTo(E,I,O,q,W,H),u=W,f=H;break;case pe.Q:if(E=n[S++],I=n[S++],O=n[S++],q=n[S++],h){if(p+(A=d[g++])>y){Wo(u,E,O,R=(y-p)/A,Gn),Wo(f,I,q,R,Vn),e.quadraticCurveTo(Gn[1],Vn[1],Gn[2],Vn[2]);break e}p+=A}e.quadraticCurveTo(E,I,O,q),u=O,f=q;break;case pe.A:var V=n[S++],G=n[S++],N=n[S++],ie=n[S++],De=n[S++],ht=n[S++],Mt=n[S++],vt=!n[S++],et=N>ie?N:ie,je=Rr(N-ie)>.001,Oe=De+ht,re=!1;if(h&&(p+(A=d[g++])>y&&(Oe=De+ht*(y-p)/A,re=!0),p+=A),je&&e.ellipse?e.ellipse(V,G,N,ie,Mt,De,Oe,vt):e.arc(V,G,et,De,Oe,vt),re)break e;T&&(s=Wn(De)*N+V,l=qn(De)*ie+G),u=Wn(Oe)*N+V,f=qn(Oe)*ie+G;break;case pe.R:s=u=n[S],l=f=n[S+1],c=n[S++],v=n[S++];var fe=n[S++],Tr=n[S++];if(h){if(p+(A=d[g++])>y){var We=y-p;e.moveTo(c,v),e.lineTo(c+vf(We,fe),v),(We-=fe)>0&&e.lineTo(c+fe,v+vf(We,Tr)),(We-=Tr)>0&&e.lineTo(c+df(fe-We,0),v+Tr),(We-=fe)>0&&e.lineTo(c,v+df(Tr-We,0));break e}p+=A}e.rect(c,v,fe,Tr);break;case pe.Z:if(h){var A;if(p+(A=d[g++])>y){var R;e.lineTo(u*(1-(R=(y-p)/A))+s*R,f*(1-R)+l*R);break e}p+=A}e.closePath(),u=s,f=l}}},t.prototype.clone=function(){var e=new t,r=this.data;return e.data=r.slice?r.slice():Array.prototype.slice.call(r),e._len=this._len,e},t.prototype.canSave=function(){return!!this._saveData},t.CMD=pe,t.initDefaultProps=((e=t.prototype)._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,void(e._version=0)),t;var e}();const Un=T1;function Ii(t,e,r,n,i,a,o){if(0===i)return!1;var l,s=i;if(o>e+s&&o>n+s||o<e-s&&o<n-s||a>t+s&&a>r+s||a<t-s&&a<r-s)return!1;if(t===r)return Math.abs(a-t)<=s/2;var f=(l=(e-n)/(t-r))*a-o+(t*n-r*e)/(t-r);return f*f/(l*l+1)<=s/2*s/2}function w1(t,e,r,n,i,a,o,s,l,u,f){if(0===l)return!1;var c=l;return!(f>e+c&&f>n+c&&f>a+c&&f>s+c||f<e-c&&f<n-c&&f<a-c&&f<s-c||u>t+c&&u>r+c&&u>i+c&&u>o+c||u<t-c&&u<r-c&&u<i-c&&u<o-c)&&ld(t,e,r,n,i,a,o,s,u,f,null)<=c/2}function D1(t,e,r,n,i,a,o,s,l){if(0===o)return!1;var u=o;return!(l>e+u&&l>n+u&&l>a+u||l<e-u&&l<n-u&&l<a-u||s>t+u&&s>r+u&&s>i+u||s<t-u&&s<r-u&&s<i-u)&&cd(t,e,r,n,i,a,s,l,null)<=u/2}var Tp=2*Math.PI;function Er(t){return(t%=Tp)<0&&(t+=Tp),t}var Pa=2*Math.PI;function M1(t,e,r,n,i,a,o,s,l){if(0===o)return!1;var u=o;s-=t,l-=e;var f=Math.sqrt(s*s+l*l);if(f-u>r||f+u<r)return!1;if(Math.abs(n-i)%Pa<1e-4)return!0;if(a){var c=n;n=Er(i),i=Er(c)}else n=Er(n),i=Er(i);n>i&&(i+=Pa);var v=Math.atan2(l,s);return v<0&&(v+=Pa),v>=n&&v<=i||v+Pa>=n&&v+Pa<=i}function Ir(t,e,r,n,i,a){if(a>e&&a>n||a<e&&a<n||n===e)return 0;var o=(a-e)/(n-e),s=n<e?1:-1;(1===o||0===o)&&(s=n<e?.5:-.5);var l=o*(r-t)+t;return l===i?1/0:l>i?s:0}var un=Un.CMD,Yn=2*Math.PI,st=[-1,-1,-1],Et=[-1,-1];function P1(){var t=Et[0];Et[0]=Et[1],Et[1]=t}function R1(t,e,r,n,i,a,o,s,l,u){if(u>e&&u>n&&u>a&&u>s||u<e&&u<n&&u<a&&u<s)return 0;var f=od(e,n,a,s,u,st);if(0===f)return 0;for(var c=0,v=-1,h=void 0,d=void 0,m=0;m<f;m++){var p=st[m],g=0===p||1===p?.5:1;Ue(t,r,i,o,p)<l||(v<0&&(v=sd(e,n,a,s,Et),Et[1]<Et[0]&&v>1&&P1(),h=Ue(e,n,a,s,Et[0]),v>1&&(d=Ue(e,n,a,s,Et[1]))),c+=2===v?p<Et[0]?h<e?g:-g:p<Et[1]?d<h?g:-g:s<d?g:-g:p<Et[0]?h<e?g:-g:s<h?g:-g)}return c}function E1(t,e,r,n,i,a,o,s){if(s>e&&s>n&&s>a||s<e&&s<n&&s<a)return 0;var l=function xb(t,e,r,n,i){var a=t-2*e+r,o=2*(e-t),s=t-n,l=0;if(en(a))id(o)&&(u=-s/o)>=0&&u<=1&&(i[l++]=u);else{var f=o*o-4*a*s;if(en(f))(u=-o/(2*a))>=0&&u<=1&&(i[l++]=u);else if(f>0){var u,c=Jr(f),v=(-o-c)/(2*a);(u=(-o+c)/(2*a))>=0&&u<=1&&(i[l++]=u),v>=0&&v<=1&&(i[l++]=v)}}return l}(e,n,a,s,st);if(0===l)return 0;var u=fd(e,n,a);if(u>=0&&u<=1){for(var f=0,c=$e(e,n,a,u),v=0;v<l;v++){var h=0===st[v]||1===st[v]?.5:1;$e(t,r,i,st[v])<o||(f+=st[v]<u?c<e?h:-h:a<c?h:-h)}return f}return h=0===st[0]||1===st[0]?.5:1,$e(t,r,i,st[0])<o?0:a<e?h:-h}function I1(t,e,r,n,i,a,o,s){if((s-=e)>r||s<-r)return 0;var l=Math.sqrt(r*r-s*s);st[0]=-l,st[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=Yn-1e-4){n=0,i=Yn;var f=a?1:-1;return o>=st[0]+t&&o<=st[1]+t?f:0}if(n>i){var c=n;n=i,i=c}n<0&&(n+=Yn,i+=Yn);for(var v=0,h=0;h<2;h++){var d=st[h];if(d+t>o){var m=Math.atan2(s,d);f=a?1:-1,m<0&&(m=Yn+m),(m>=n&&m<=i||m+Yn>=n&&m+Yn<=i)&&(m>Math.PI/2&&m<1.5*Math.PI&&(f=-f),v+=f)}}return v}function wp(t,e,r,n,i){for(var v,h,a=t.data,o=t.len(),s=0,l=0,u=0,f=0,c=0,d=0;d<o;){var m=a[d++],p=1===d;switch(m===un.M&&d>1&&(r||(s+=Ir(l,u,f,c,n,i))),p&&(f=l=a[d],c=u=a[d+1]),m){case un.M:l=f=a[d++],u=c=a[d++];break;case un.L:if(r){if(Ii(l,u,a[d],a[d+1],e,n,i))return!0}else s+=Ir(l,u,a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case un.C:if(r){if(w1(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],e,n,i))return!0}else s+=R1(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case un.Q:if(r){if(D1(l,u,a[d++],a[d++],a[d],a[d+1],e,n,i))return!0}else s+=E1(l,u,a[d++],a[d++],a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case un.A:var g=a[d++],y=a[d++],_=a[d++],C=a[d++],b=a[d++],S=a[d++];d+=1;var x=!!(1-a[d++]);v=Math.cos(b)*_+g,h=Math.sin(b)*C+y,p?(f=v,c=h):s+=Ir(l,u,v,h,n,i);var T=(n-g)*C/_+g;if(r){if(M1(g,y,C,b,b+S,x,e,T,i))return!0}else s+=I1(g,y,C,b,b+S,x,T,i);l=Math.cos(b+S)*_+g,u=Math.sin(b+S)*C+y;break;case un.R:if(f=l=a[d++],c=u=a[d++],v=f+a[d++],h=c+a[d++],r){if(Ii(f,c,v,c,e,n,i)||Ii(v,c,v,h,e,n,i)||Ii(v,h,f,h,e,n,i)||Ii(f,h,f,c,e,n,i))return!0}else s+=Ir(v,c,v,h,n,i),s+=Ir(f,h,f,c,n,i);break;case un.Z:if(r){if(Ii(l,u,f,c,e,n,i))return!0}else s+=Ir(l,u,f,c,n,i);l=f,u=c}}return!r&&!function A1(t,e){return Math.abs(t-e)<1e-4}(u,c)&&(s+=Ir(l,u,f,c,n,i)||0),0!==s}var Dp=be({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Nn),B1={style:be({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},us.style)},yf=lr.concat(["invisible","culling","z","z2","zlevel","parent"]),F1=function(t){function e(r){return t.call(this,r)||this}return(0,X.C6)(e,t),e.prototype.update=function(){var r=this;t.prototype.update.call(this);var n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new e;i.buildPath===e.prototype.buildPath&&(i.buildPath=function(l){r.buildPath(l,r.shape)}),i.silent=!0;var a=i.style;for(var o in n)a[o]!==n[o]&&(a[o]=n[o]);a.fill=n.fill?n.decal:null,a.decal=null,a.shadowColor=null,n.strokeFirst&&(a.stroke=null);for(var s=0;s<yf.length;++s)i[yf[s]]=this[yf[s]];i.__dirty|=1}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(r){var n=de(r);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var a=0;a<n.length;a++){var o=n[a],s=r[o];"style"===o?this.style?k(this.style,s):this.useStyle(s):"shape"===o?k(this.shape,s):t.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var r=this.style.fill;if("none"!==r){if(U(r)){var n=ga(r,0);return n>.5?Ou:n>.2?"#eee":Bu}if(r)return Bu}return Ou},e.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(U(n)){var i=this.__zr;if(!(!i||!i.isDarkMode())==ga(r,0)<.4)return n}},e.prototype.buildPath=function(r,n,i){},e.prototype.pathUpdated=function(){this.__dirty&=-5},e.prototype.getUpdatedPathProxy=function(r){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,r),this.path},e.prototype.createPathProxy=function(){this.path=new Un(!1)},e.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return!(null==n||"none"===n||!(r.lineWidth>0))},e.prototype.hasFill=function(){var n=this.style.fill;return null!=n&&"none"!==n},e.prototype.getBoundingRect=function(){var r=this._rect,n=this.style,i=!r;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||4&this.__dirty)&&(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||i){s.copy(r);var l=n.strokeNoScale?this.getLineScale():1,u=n.lineWidth;this.hasFill()||(u=Math.max(u,this.strokeContainThreshold??4)),l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return r},e.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect(),o=this.style;if(a.contain(r=i[0],n=i[1])){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),function O1(t,e,r,n){return wp(t,e,!0,r,n)}(s,l/u,r,n)))return!0}if(this.hasFill())return function k1(t,e,r){return wp(t,0,!1,e,r)}(s,r,n)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(r){return this.animate("shape",r)},e.prototype.updateDuringAnimation=function(r){"style"===r?this.dirtyStyle():"shape"===r?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(r,n){"shape"===r?this.setShape(n):t.prototype.attrKV.call(this,r,n)},e.prototype.setShape=function(r,n){var i=this.shape;return i||(i=this.shape={}),"string"==typeof r?i[r]=n:k(i,r),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(4&this.__dirty)},e.prototype.createStyle=function(r){return la(Dp,r)},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=k({},this.shape))},e.prototype._applyStateObj=function(r,n,i,a,o,s){t.prototype._applyStateObj.call(this,r,n,i,a,o,s);var u,l=!(n&&a);if(n&&n.shape?o?a?u=n.shape:(u=k({},i.shape),k(u,n.shape)):(u=k({},a?this.shape:i.shape),k(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=k({},this.shape);for(var f={},c=de(u),v=0;v<c.length;v++){var h=c[v];"object"==typeof u[h]?this.shape[h]=u[h]:f[h]=u[h]}this._transitionState(r,{shape:f},s)}else this.shape=u,this.dirtyShape()},e.prototype._mergeStates=function(r){for(var i,n=t.prototype._mergeStates.call(this,r),a=0;a<r.length;a++){var o=r[a];o.shape&&this._mergeStyle(i=i||{},o.shape)}return i&&(n.shape=i),n},e.prototype.getAnimationStyleProps=function(){return B1},e.prototype.isZeroArea=function(){return!1},e.extend=function(r){var n=function(a){function o(s){var l=a.call(this,s)||this;return r.init&&r.init.call(l,s),l}return(0,X.C6)(o,a),o.prototype.getDefaultStyle=function(){return se(r.style)},o.prototype.getDefaultShape=function(){return se(r.shape)},o}(e);for(var i in r)"function"==typeof r[i]&&(n.prototype[i]=r[i]);return n},e.initDefaultProps=function(){var r=e.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=7}(),e}(zn);const Se=F1;var N1=be({strokeFirst:!0,font:Zr,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Dp),Mp=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,X.C6)(e,t),e.prototype.hasStroke=function(){return yp(this.style)},e.prototype.hasFill=function(){var n=this.style.fill;return null!=n&&"none"!==n},e.prototype.createStyle=function(r){return la(N1,r)},e.prototype.setBoundingRect=function(r){this._rect=r},e.prototype.getBoundingRect=function(){return this._rect||(this._rect=function m1(t){var e=of(t.text),r=t.font;return sf(t,$t(Zt(r),e),ns(r),null)}(this.style)),this._rect},e.initDefaultProps=void(e.prototype.dirtyRectTolerance=10),e}(zn);Mp.prototype.type="tspan";const _f=Mp;var z1=be({x:0,y:0},Nn),H1={style:be({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},us.style)},Lp=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,X.C6)(e,t),e.prototype.createStyle=function(r){return la(z1,r)},e.prototype._getSize=function(r){var n=this.style,i=n[r];if(null!=i)return i;var a=function G1(t){return!!(t&&"string"!=typeof t&&t.width&&t.height)}(n.image)?n.image:this.__image;if(!a)return 0;var o="width"===r?"height":"width",s=n[o];return null==s?a[r]:a[r]/a[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return H1},e.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new ne(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},e}(zn);Lp.prototype.type="image";const fn=Lp;var ki=Math.round;function Ap(t,e,r){if(e){var n=e.x1,i=e.x2,a=e.y1,o=e.y2;t.x1=n,t.x2=i,t.y1=a,t.y2=o;var s=r&&r.lineWidth;return s&&(ki(2*n)===ki(2*i)&&(t.x1=t.x2=Xn(n,s,!0)),ki(2*a)===ki(2*o)&&(t.y1=t.y2=Xn(a,s,!0))),t}}function Pp(t,e,r){if(e){var n=e.x,i=e.y,a=e.width,o=e.height;t.x=n,t.y=i,t.width=a,t.height=o;var s=r&&r.lineWidth;return s&&(t.x=Xn(n,s,!0),t.y=Xn(i,s,!0),t.width=Math.max(Xn(n+a,s,!1)-t.x,0===a?0:1),t.height=Math.max(Xn(i+o,s,!1)-t.y,0===o?0:1)),t}}function Xn(t,e,r){if(!e)return t;var n=ki(2*t);return(n+ki(e))%2==0?n/2:(n+(r?1:-1))/2}var W1=function(){return function t(){this.x=0,this.y=0,this.width=0,this.height=0}}(),q1={},Rp=function(t){function e(r){return t.call(this,r)||this}return(0,X.C6)(e,t),e.prototype.getDefaultShape=function(){return new W1},e.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=Pp(q1,n,this.style);i=l.x,a=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else i=n.x,a=n.y,o=n.width,s=n.height;n.r?function V1(t,e){var s,l,u,f,c,r=e.x,n=e.y,i=e.width,a=e.height,o=e.r;i<0&&(r+=i,i=-i),a<0&&(n+=a,a=-a),"number"==typeof o?s=l=u=f=o:o instanceof Array?1===o.length?s=l=u=f=o[0]:2===o.length?(s=u=o[0],l=f=o[1]):3===o.length?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0,s+l>i&&(s*=i/(c=s+l),l*=i/c),u+f>i&&(u*=i/(c=u+f),f*=i/c),l+u>a&&(l*=a/(c=l+u),u*=a/c),s+f>a&&(s*=a/(c=s+f),f*=a/c),t.moveTo(r+s,n),t.lineTo(r+i-l,n),0!==l&&t.arc(r+i-l,n+l,l,-Math.PI/2,0),t.lineTo(r+i,n+a-u),0!==u&&t.arc(r+i-u,n+a-u,u,0,Math.PI/2),t.lineTo(r+f,n+a),0!==f&&t.arc(r+f,n+a-f,f,Math.PI/2,Math.PI),t.lineTo(r,n+s),0!==s&&t.arc(r+s,n+s,s,Math.PI,1.5*Math.PI)}(r,n):r.rect(i,a,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(Se);Rp.prototype.type="rect";const Ye=Rp;var Ep={fill:"#000"},gr={},U1={style:be({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},us.style)},kp=function(t){function e(r){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=Ep,n.attr(r),n}return(0,X.C6)(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r<this._children.length;r++){var n=this._children[r];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},e.prototype.updateTransform=function(){var r=this.innerTransformable;r?(r.updateTransform(),r.transform&&(this.transform=r.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(r){var n=this.innerTransformable;return n?n.getLocalTransform(r):t.prototype.getLocalTransform.call(this,r)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,function $1(t){Fp(t),D(t.rich,Fp)}(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(r){t.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=r},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var r=new ne(0,0,0,0),n=this._children,i=[],a=null,o=0;o<n.length;o++){var s=n[o],l=s.getBoundingRect(),u=s.getLocalTransform(i);u?(r.copy(l),r.applyTransform(u),(a=a||r.clone()).union(r)):(a=a||l.clone()).union(l)}this._rect=a||r}return this._rect},e.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||Ep},e.prototype.setTextContent=function(r){},e.prototype._mergeStyle=function(r,n){if(!n)return r;var i=n.rich,a=r.rich||i&&{};return k(r,n),i&&a?(this._mergeRich(a,i),r.rich=a):a&&(r.rich=a),r},e.prototype._mergeRich=function(r,n){for(var i=de(n),a=0;a<i.length;a++){var o=i[a];r[o]=r[o]||{},k(r[o],n[o])}},e.prototype.getAnimationStyleProps=function(){return U1},e.prototype._getOrCreateChild=function(r){var n=this._children[this._childCursor];return(!n||!(n instanceof r))&&(n=new r),this._children[this._childCursor++]=n,n.__zr=this.__zr,n.parent=this,n},e.prototype._updatePlainTexts=function(){var r=this.style,n=r.font||Zr,i=r.padding,a=this._defaultStyle,o=r.x||0,s=r.y||0,l=r.align||a.align||"left",u=r.verticalAlign||a.verticalAlign||"top";pp(gr,a.overflowRect,o,s,l,u),o=gr.baseX,s=gr.baseY;var c=function f1(t,e,r,n){var i=of(t),a=e.overflow,o=e.padding,s=o?o[1]+o[3]:0,l=o?o[0]+o[2]:0,u=e.font,f="truncate"===a,c=ns(u),v=Q(e.lineHeight,c),h="truncate"===e.lineOverflow,d=!1,m=e.width;null==m&&null!=r&&(m=r-s);var g,p=e.height;null==p&&null!=n&&(p=n-l);var y=(g=null==m||"break"!==a&&"breakAll"!==a?i?i.split("\n"):[]:i?dp(i,e.font,m,"breakAll"===a,0).lines:[]).length*v;if(null==p&&(p=y),y>p&&h){var _=Math.floor(p/v);d=d||g.length>_,y=(g=g.slice(0,_)).length*v}if(i&&f&&null!=m)for(var C=cp(m,u,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),b={},S=0;S<g.length;S++)hp(b,g[S],C),g[S]=b.textLine,d=d||b.isTruncated;var x=p,T=0,w=Zt(u);for(S=0;S<g.length;S++)T=Math.max($t(w,g[S]),T);null==m&&(m=T);var L=m;return{lines:g,height:p,outerWidth:L+=s,outerHeight:x+=l,lineHeight:v,calculatedLineHeight:c,contentWidth:T,contentHeight:y,width:m,isTruncated:d}}(Gp(r),r,gr.outerWidth,gr.outerHeight),v=Cf(r),h=!!r.backgroundColor,d=c.outerHeight,m=c.outerWidth,p=c.lines,g=c.lineHeight;this.isTruncated=!!c.isTruncated;var y=o,_=On(s,c.contentHeight,u);if(v||i){var C=Ri(o,m,l),b=On(s,d,u);v&&this._renderBackground(r,r,C,b,m,d)}_+=g/2,i&&(y=Hp(o,l,i),"top"===u?_+=i[0]:"bottom"===u&&(_-=i[2]));for(var S=0,x=!1,T=!1,w=(zp("fill"in r?r.fill:(T=!0,a.fill))),L=(Np("stroke"in r?r.stroke:h||a.autoStroke&&!T?null:(S=2,x=!0,a.stroke))),A=r.textShadowBlur>0,R=0;R<p.length;R++){var M=this._getOrCreateChild(_f),E=M.createStyle();M.useStyle(E),E.text=p[R],E.x=y,E.y=_,l&&(E.textAlign=l),E.textBaseline="middle",E.opacity=r.opacity,E.strokeFirst=!0,A&&(E.shadowBlur=r.textShadowBlur||0,E.shadowColor=r.textShadowColor||"transparent",E.shadowOffsetX=r.textShadowOffsetX||0,E.shadowOffsetY=r.textShadowOffsetY||0),E.stroke=L,E.fill=w,L&&(E.lineWidth=r.lineWidth||S,E.lineDash=r.lineDash,E.lineDashOffset=r.lineDashOffset||0),E.font=n,Bp(E,r),_+=g,M.setBoundingRect(sf(E,c.contentWidth,c.calculatedLineHeight,x?0:null))}},e.prototype._updateRichTexts=function(){var r=this.style,n=this._defaultStyle,i=r.align||n.align,a=r.verticalAlign||n.verticalAlign,o=r.x||0,s=r.y||0;pp(gr,n.overflowRect,o,s,i,a),o=gr.baseX,s=gr.baseY;var u=function v1(t,e,r,n,i){var a=new h1,o=of(t);if(!o)return a;var s=e.padding,l=s?s[1]+s[3]:0,u=s?s[0]+s[2]:0,f=e.width;null==f&&null!=r&&(f=r-l);var c=e.height;null==c&&null!=n&&(c=n-u);for(var m,v=e.overflow,h="break"!==v&&"breakAll"!==v||null==f?null:{width:f,accumWidth:0,breakAll:"breakAll"===v},d=nf.lastIndex=0;null!=(m=nf.exec(o));){var p=m.index;p>d&&af(a,o.substring(d,p),e,h),af(a,m[2],e,h,m[1]),d=nf.lastIndex}d<o.length&&af(a,o.substring(d,o.length),e,h);var g=[],y=0,_=0,C="truncate"===v,b="truncate"===e.lineOverflow,S={};function x(Mt,vt,et){Mt.width=vt,Mt.lineHeight=et,y+=et,_=Math.max(_,vt)}e:for(var T=0;T<a.lines.length;T++){for(var w=a.lines[T],L=0,A=0,R=0;R<w.tokens.length;R++){var E=(M=w.tokens[R]).styleName&&e.rich[M.styleName]||{},I=M.textPadding=E.padding,O=I?I[1]+I[3]:0,q=M.font=E.font||e.font;M.contentHeight=ns(q);var W=Q(E.height,M.contentHeight);if(M.innerHeight=W,I&&(W+=I[0]+I[2]),M.height=W,M.lineHeight=$r(E.lineHeight,e.lineHeight,W),M.align=E&&E.align||i,M.verticalAlign=E&&E.verticalAlign||"middle",b&&null!=c&&y+M.lineHeight>c){var H=a.lines.length;R>0?(w.tokens=w.tokens.slice(0,R),x(w,A,L),a.lines=a.lines.slice(0,T+1)):a.lines=a.lines.slice(0,T),a.isTruncated=a.isTruncated||a.lines.length<H;break e}var V=E.width,G=null==V||"auto"===V;if("string"==typeof V&&"%"===V.charAt(V.length-1))M.percentWidth=V,g.push(M),M.contentWidth=$t(Zt(q),M.text);else{if(G){var N=E.backgroundColor,ie=N&&N.image;ie&&ls(ie=s1(ie))&&(M.width=Math.max(M.width,ie.width*W/ie.height))}var De=C&&null!=f?f-A:null;null!=De&&De<M.width?!G||De<O?(M.text="",M.width=M.contentWidth=0):(fp(S,M.text,De-O,q,e.ellipsis,{minChar:e.truncateMinChar}),M.text=S.text,a.isTruncated=a.isTruncated||S.isTruncated,M.width=M.contentWidth=$t(Zt(q),M.text)):M.contentWidth=$t(Zt(q),M.text)}M.width+=O,A+=M.width,E&&(L=Math.max(L,M.lineHeight))}x(w,A,L)}for(a.outerWidth=a.width=Q(f,_),a.outerHeight=a.height=Q(c,y),a.contentHeight=y,a.contentWidth=_,a.outerWidth+=l,a.outerHeight+=u,T=0;T<g.length;T++){var M;(M=g[T]).width=parseInt(M.percentWidth,10)/100*a.width}return a}(Gp(r),r,gr.outerWidth,gr.outerHeight,i),f=u.width,c=u.outerWidth,v=u.outerHeight,h=r.padding;this.isTruncated=!!u.isTruncated;var d=Ri(o,c,i),m=On(s,v,a),p=d,g=m;h&&(p+=h[3],g+=h[0]);var y=p+f;Cf(r)&&this._renderBackground(r,r,d,m,c,v);for(var _=!!r.backgroundColor,C=0;C<u.lines.length;C++){for(var b=u.lines[C],S=b.tokens,x=S.length,T=b.lineHeight,w=b.width,L=0,A=p,R=y,M=x-1,E=void 0;L<x&&(!(E=S[L]).align||"left"===E.align);)this._placeToken(E,r,T,g,A,"left",_),w-=E.width,A+=E.width,L++;for(;M>=0&&"right"===(E=S[M]).align;)this._placeToken(E,r,T,g,R,"right",_),w-=E.width,R-=E.width,M--;for(A+=(f-(A-p)-(y-R)-w)/2;L<=M;)this._placeToken(E=S[L],r,T,g,A+E.width/2,"center",_),A+=E.width,L++;g+=T}},e.prototype._placeToken=function(r,n,i,a,o,s,l){var u=n.rich[r.styleName]||{};u.text=r.text;var f=r.verticalAlign,c=a+i/2;"top"===f?c=a+r.height/2:"bottom"===f&&(c=a+i-r.height/2),!r.isLineHolder&&Cf(u)&&this._renderBackground(u,n,"right"===s?o-r.width:"center"===s?o-r.width/2:o,c-r.height/2,r.width,r.height);var h=!!u.backgroundColor,d=r.textPadding;d&&(o=Hp(o,s,d),c-=r.height/2-d[0]-r.innerHeight/2);var m=this._getOrCreateChild(_f),p=m.createStyle();m.useStyle(p);var g=this._defaultStyle,y=!1,_=0,C=!1,b=zp("fill"in u?u.fill:"fill"in n?n.fill:(y=!0,g.fill)),S=Np("stroke"in u?u.stroke:"stroke"in n?n.stroke:h||l||g.autoStroke&&!y?null:(_=2,C=!0,g.stroke)),x=u.textShadowBlur>0||n.textShadowBlur>0;p.text=r.text,p.x=o,p.y=c,x&&(p.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,p.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",p.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,p.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),p.textAlign=s,p.textBaseline="middle",p.font=r.font||Zr,p.opacity=$r(u.opacity,n.opacity,1),Bp(p,u),S&&(p.lineWidth=$r(u.lineWidth,n.lineWidth,_),p.lineDash=Q(u.lineDash,n.lineDash),p.lineDashOffset=n.lineDashOffset||0,p.stroke=S),b&&(p.fill=b),m.setBoundingRect(sf(p,r.contentWidth,r.contentHeight,C?0:null))},e.prototype._renderBackground=function(r,n,i,a,o,s){var m,p,y,l=r.backgroundColor,u=r.borderWidth,f=r.borderColor,c=l&&l.image,v=l&&!c,h=r.borderRadius,d=this;if(v||r.lineHeight||u&&f){(m=this._getOrCreateChild(Ye)).useStyle(m.createStyle()),m.style.fill=null;var g=m.shape;g.x=i,g.y=a,g.width=o,g.height=s,g.r=h,m.dirtyShape()}if(v)(y=m.style).fill=l||null,y.fillOpacity=Q(r.fillOpacity,1);else if(c){(p=this._getOrCreateChild(fn)).onload=function(){d.dirtyStyle()};var _=p.style;_.image=l.image,_.x=i,_.y=a,_.width=o,_.height=s}u&&f&&((y=m.style).lineWidth=u,y.stroke=f,y.strokeOpacity=Q(r.strokeOpacity,1),y.lineDash=r.borderDash,y.lineDashOffset=r.borderDashOffset||0,m.strokeContainThreshold=0,m.hasFill()&&m.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2));var C=(m||p).style;C.shadowBlur=r.shadowBlur||0,C.shadowColor=r.shadowColor||"transparent",C.shadowOffsetX=r.shadowOffsetX||0,C.shadowOffsetY=r.shadowOffsetY||0,C.opacity=$r(r.opacity,n.opacity,1)},e.makeFont=function(r){var n="";return function Z1(t){return null!=t.fontSize||t.fontFamily||t.fontWeight}(r)&&(n=[r.fontStyle,r.fontWeight,j1(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&Ut(n)||r.textFont||r.font},e}(zn),Y1={left:!0,right:1,center:1},X1={top:1,bottom:1,middle:1},Op=["fontStyle","fontWeight","fontSize","fontFamily"];function j1(t){return"string"!=typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?"12px":t+"px":t}function Bp(t,e){for(var r=0;r<Op.length;r++){var n=Op[r],i=e[n];null!=i&&(t[n]=i)}}function Fp(t){if(t){t.font=kp.makeFont(t);var e=t.align;"middle"===e&&(e="center"),t.align=null==e||Y1[e]?e:"left";var r=t.verticalAlign;"center"===r&&(r="middle"),t.verticalAlign=null==r||X1[r]?r:"top",t.padding&&(t.padding=Mo(t.padding))}}function Np(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function zp(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function Hp(t,e,r){return"right"===e?t-r[1]:"center"===e?t+r[3]/2-r[1]/2:t+r[3]}function Gp(t){var e=t.text;return null!=e&&(e+=""),e}function Cf(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}const Be=kp;var ve=ye(),Vp=1,Wp={},qp=ye(),Sf=ye(),mr=["emphasis","blur","select"],ps=["normal","emphasis","blur","select"],jn="highlight",gs="downplay",ms="select",xf="unselect",ys="toggleSelect",Tf="selectchanged";function Oi(t){return null!=t&&"none"!==t}function _s(t,e,r){t.onHoverStateChange&&(t.hoverState||0)!==r&&t.onHoverStateChange(e),t.hoverState=r}function Up(t){_s(t,"emphasis",2)}function Yp(t){2===t.hoverState&&_s(t,"normal",0)}function wf(t){_s(t,"blur",1)}function Xp(t){1===t.hoverState&&_s(t,"normal",0)}function tT(t){t.selected=!0}function rT(t){t.selected=!1}function jp(t,e,r){e(t,r)}function kr(t,e,r){jp(t,e,r),t.isGroup&&t.traverse(function(n){jp(n,e,r)})}function Df(t,e){var r=this.states[t];if(this.style){if("emphasis"===t)return function iT(t,e,r,n){var i=r&&le(r,"select")>=0,a=!1;if(t instanceof Se){var o=qp(t),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(Oi(s)||Oi(l)){var u=(n=n||{}).style||{};"inherit"===u.fill?(a=!0,n=k({},n),(u=k({},u)).fill=s):!Oi(u.fill)&&Oi(s)?(a=!0,n=k({},n),(u=k({},u)).fill=Su(s)):!Oi(u.stroke)&&Oi(l)&&(a||(n=k({},n),u=k({},u)),u.stroke=Su(l)),n.style=u}}return n&&null==n.z2&&(a||(n=k({},n)),n.z2=t.z2+(t.z2EmphasisLift??10)),n}(this,0,e,r);if("blur"===t)return function oT(t,e,r){var n=le(t.currentStates,e)>=0,i=t.style.opacity,a=n?null:function nT(t,e,r,n){for(var i=t.style,a={},o=0;o<e.length;o++){var s=e[o];a[s]=i[s]??(n&&n[s])}for(o=0;o<t.animators.length;o++){var u=t.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(r)<0&&"style"===u.targetName&&u.saveTo(a,e)}return a}(t,["opacity"],e,{opacity:1}),o=(r=r||{}).style||{};return null==o.opacity&&(r=k({},r),o=k({opacity:n?i:.1*a.opacity},o),r.style=o),r}(this,t,r);if("select"===t)return function aT(t,e,r){return r&&null==r.z2&&((r=k({},r)).z2=t.z2+(t.z2SelectLift??9)),r}(this,0,r)}return r}function sT(t){t.stateProxy=Df;var e=t.getTextContent(),r=t.getTextGuideLine();e&&(e.stateProxy=Df),r&&(r.stateProxy=Df)}function Zp(t,e){!eg(t,e)&&!t.__highByOuter&&kr(t,Up)}function $p(t,e){!eg(t,e)&&!t.__highByOuter&&kr(t,Yp)}function Mf(t,e){t.__highByOuter|=1<<(e||0),kr(t,Up)}function Lf(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&kr(t,Yp)}function Kp(t){kr(t,Xp)}function Qp(t){kr(t,tT)}function Jp(t){kr(t,rT)}function eg(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function tg(t){var e=t.getModel(),r=[],n=[];e.eachComponent(function(i,a){var o=Sf(a),s="series"===i,l=s?t.getViewOfSeriesModel(a):t.getViewOfComponentModel(a);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){Xp(u)}),s&&r.push(a)),o.isBlured=!1}),D(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(r,!1,e)})}function Af(t,e,r,n){var i=n.getModel();function a(u,f){for(var c=0;c<f.length;c++){var v=u.getItemGraphicEl(f[c]);v&&Kp(v)}}if(r=r||"coordinateSystem",null!=t&&e&&"none"!==e){var o=i.getSeriesByIndex(t),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries(function(u){var f=o===u,c=u.coordinateSystem;if(c&&c.master&&(c=c.master),!("series"===r&&!f||"coordinateSystem"===r&&!(c&&s?c===s:f)||"series"===e&&f)){if(n.getViewOfSeriesModel(u).group.traverse(function(p){p.__highByOuter&&f&&"self"===e||wf(p)}),Ze(e))a(u.getData(),e);else if($(e))for(var d=de(e),m=0;m<d.length;m++)a(u.getData(d[m]),e[d[m]]);l.push(u),Sf(u).isBlured=!0}}),i.eachComponent(function(u,f){if("series"!==u){var c=n.getViewOfComponentModel(f);c&&c.toggleBlurSeries&&c.toggleBlurSeries(l,!0,i)}})}}function Pf(t,e,r){if(null!=t&&null!=e){var n=r.getModel().getComponent(t,e);if(n){Sf(n).isBlured=!0;var i=r.getViewOfComponentModel(n);!i||!i.focusBlurEnabled||i.group.traverse(function(a){wf(a)})}}}function Rf(t,e,r,n){var i={focusSelf:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==r)return i;var a=n.getModel().getComponent(t,e);if(!a)return i;var o=n.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var l,s=o.findHighDownDispatchers(r),u=0;u<s.length;u++)if("self"===ve(s[u]).focus){l=!0;break}return{focusSelf:l,dispatchers:s}}function rg(t){D(t.getAllData(),function(r){var i=r.type;r.data.eachItemGraphicEl(function(a,o){t.isSelected(o,i)?Qp(a):Jp(a)})})}function vT(t){var e=[];return t.eachSeries(function(r){D(r.getAllData(),function(i){var o=i.type,s=r.getSelectedDataIndices();if(s.length>0){var l={dataIndex:s,seriesIndex:r.seriesIndex};null!=o&&(l.dataType=o),e.push(l)}})}),e}function Cs(t,e,r){ig(t,!0),kr(t,sT),function gT(t,e,r){var n=ve(t);null!=e?(n.focus=e,n.blurScope=r):n.focus&&(n.focus=null)}(t,e,r)}var ng=["emphasis","blur","select"],mT={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function ig(t,e){var r=!1===e,n=t;t.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=t.highDownSilentOnTouch),(!r||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!r)}function Ef(t){return!(!t||!t.__highDownDispatcher)}function If(t){var e=t.type;return e===ms||e===xf||e===ys}function ag(t){var e=t.type;return e===jn||e===gs}var og=ye();function kf(t,e,r,n,i){var a;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();a=o&&o.animation}var l="update"===t;if(e&&e.isAnimationEnabled()){var u=void 0,f=void 0,c=void 0;return n?(u=Q(n.duration,200),f=Q(n.easing,"cubicOut"),c=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),f=e.getShallow(l?"animationEasingUpdate":"animationEasing"),c=e.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(null!=a.duration&&(u=a.duration),null!=a.easing&&(f=a.easing),null!=a.delay&&(c=a.delay)),ee(c)&&(c=c(r,i)),ee(u)&&(u=u(r)),{duration:u||0,delay:c,easing:f}}return null}function Of(t,e,r,n,i,a,o){var l,s=!1;ee(i)?(o=a,a=i,i=null):$(i)&&(a=i.cb,o=i.during,s=i.isFrom,l=i.removeOpt,i=i.dataIndex);var u="leave"===t;u||e.stopAnimation("leave");var f=kf(t,n,i,u?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(e,i):null);if(f&&f.duration>0){var d={duration:f.duration,delay:f.delay||0,easing:f.easing,done:a,force:!!a||!!o,setToFinal:!u,scope:t,during:o};s?e.animateFrom(r,d):e.animateTo(r,d)}else e.stopAnimation(),!s&&e.attr(r),o&&o(1),a&&a()}function Qt(t,e,r,n,i,a){Of("update",t,e,r,n,i,a)}function cn(t,e,r,n,i,a){Of("enter",t,e,r,n,i,a)}function Bi(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++)if("leave"===t.animators[e].scope)return!0;return!1}function sg(t,e,r,n,i,a){Bi(t)||Of("leave",t,e,r,n,i,a)}function lg(t,e,r,n){t.removeTextContent(),t.removeTextGuideLine(),sg(t,{style:{opacity:0}},e,r,n)}function ug(t,e,r){function n(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(i){i.isGroup||lg(i,e,r,n)}):lg(t,e,r,n)}var Ss={};function fg(t,e){for(var r=0;r<mr.length;r++){var n=mr[r],i=e[n],a=t.ensureState(n);a.style=a.style||{},a.style.text=i}var o=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(o,!0)}function Bf(t,e,r){var s,n=t.labelFetcher,i=t.labelDataIndex,a=t.labelDimIndex,o=e.normal;n&&(s=n.getFormattedLabel(i,"normal",null,a,o&&o.get("formatter"),null!=r?{interpolatedValue:r}:null)),null==s&&(s=ee(t.defaultText)?t.defaultText(i,t,r):t.defaultText);for(var l={normal:s},u=0;u<mr.length;u++){var f=mr[u],c=e[f];l[f]=Q(n?n.getFormattedLabel(i,f,null,a,c&&c.get("formatter")):null,s)}return l}function cg(t,e,r,n){r=r||Ss;for(var i=t instanceof Be,a=!1,o=0;o<ps.length;o++)if((s=e[ps[o]])&&s.getShallow("show")){a=!0;break}var l=i?t:t.getTextContent();if(a){i||(l||(l=new Be,t.setTextContent(l)),t.stateProxy&&(l.stateProxy=t.stateProxy));var u=Bf(r,e),f=e.normal,c=!!f.getShallow("show"),v=Or(f,n&&n.normal,r,!1,!i);for(v.text=u.normal,i||t.setTextConfig(hg(f,r,!1)),o=0;o<mr.length;o++){var s,h=mr[o];if(s=e[h]){var d=l.ensureState(h),m=!!Q(s.getShallow("show"),c);m!==c&&(d.ignore=!m),d.style=Or(s,n&&n[h],r,!0,!i),d.style.text=u[h],i||(t.ensureState(h).textConfig=hg(s,r,!0))}}l.silent=!!f.getShallow("silent"),null!=l.style.x&&(v.x=l.style.x),null!=l.style.y&&(v.y=l.style.y),l.ignore=!c,l.useStyle(v),l.dirty(),r.enableTextSetter&&(bs(l).setLabelText=function(g){var y=Bf(r,e,g);fg(l,y)})}else l&&(l.ignore=!0);t.dirty()}function Or(t,e,r,n,i){var a={};return function xT(t,e,r,n,i){r=r||Ss;var l,a=e.ecModel,o=a&&a.option.textStyle,s=function TT(t){for(var e;t&&t!==t.ecModel;){var r=(t.option||Ss).rich;if(r){e=e||{};for(var n=de(r),i=0;i<n.length;i++)e[n[i]]=1}t=t.parentModel}return e}(e);if(s){l={};var u="richInheritPlainLabel",f=Q(e.get(u),a?a.get(u):void 0);for(var c in s)if(s.hasOwnProperty(c)){var v=e.getModel(["rich",c]);gg(l[c]={},v,o,e,f,r,n,i,!1,!0)}}l&&(t.rich=l);var h=e.get("overflow");h&&(t.overflow=h);var d=e.get("lineOverflow");d&&(t.lineOverflow=d);var m=t,p=e.get("minMargin");if(null!=p)p=ge(p)?p/2:0,m.margin=[p,p,p,p],m.__marginType=Fi.minMargin;else{var g=e.get("textMargin");null!=g&&(m.margin=Mo(g),m.__marginType=Fi.textMargin)}gg(t,e,o,null,null,r,n,i,!0,!1)}(a,t,r,n,i),e&&k(a,e),a}function hg(t,e,r){e=e||{};var i,n={},a=t.getShallow("rotate"),o=Q(t.getShallow("distance"),r?null:5),s=t.getShallow("offset");return"outside"===(i=t.getShallow("position")||(r?null:"inside"))&&(i=e.defaultOutsidePosition||"top"),null!=i&&(n.position=i),null!=s&&(n.offset=s),null!=a&&(a*=Math.PI/180,n.rotation=a),null!=o&&(n.distance=o),n.outsideFill="inherit"===t.get("color")?e.inheritColor||null:"auto",null!=e.autoOverflowArea&&(n.autoOverflowArea=e.autoOverflowArea),null!=e.layoutRect&&(n.layoutRect=e.layoutRect),n}var vg=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],dg=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],pg=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function gg(t,e,r,n,i,a,o,s,l,u){r=!o&&r||Ss;var f=a&&a.inheritColor,c=e.getShallow("color"),v=e.getShallow("textBorderColor"),h=Q(e.getShallow("opacity"),r.opacity);("inherit"===c||"auto"===c)&&(c=f||null),("inherit"===v||"auto"===v)&&(v=f||null),s||(c=c||r.color,v=v||r.textBorderColor),null!=c&&(t.fill=c),null!=v&&(t.stroke=v);var d=Q(e.getShallow("textBorderWidth"),r.textBorderWidth);null!=d&&(t.lineWidth=d);var m=Q(e.getShallow("textBorderType"),r.textBorderType);null!=m&&(t.lineDash=m);var p=Q(e.getShallow("textBorderDashOffset"),r.textBorderDashOffset);null!=p&&(t.lineDashOffset=p),!o&&null==h&&!u&&(h=a&&a.defaultOpacity),null!=h&&(t.opacity=h),!o&&!s&&null==t.fill&&a.inheritColor&&(t.fill=a.inheritColor);for(var g=0;g<vg.length;g++){var y=vg[g];null!=(_=!1!==i&&n?$r(e.getShallow(y),n.getShallow(y),r[y]):Q(e.getShallow(y),r[y]))&&(t[y]=_)}for(g=0;g<dg.length;g++)null!=(_=e.getShallow(y=dg[g]))&&(t[y]=_);if(null==t.verticalAlign){var C=e.getShallow("baseline");null!=C&&(t.verticalAlign=C)}if(!l||!a.disableBox){for(g=0;g<pg.length;g++){var _;null!=(_=e.getShallow(y=pg[g]))&&(t[y]=_)}var b=e.getShallow("borderType");null!=b&&(t.borderDash=b),("auto"===t.backgroundColor||"inherit"===t.backgroundColor)&&f&&(t.backgroundColor=f),("auto"===t.borderColor||"inherit"===t.borderColor)&&f&&(t.borderColor=f)}}var bs=ye();var Fi={minMargin:1,textMargin:2},MT=["textStyle","color"],Ff=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Nf=new Be,LT=function(){function t(){}return t.prototype.getTextColor=function(e){var r=this.ecModel;return this.getShallow("color")||(!e&&r?r.get(MT):null)},t.prototype.getFont=function(){return function wT(t,e){var r=e&&e.getModel("textStyle");return Ut([t.fontStyle||r&&r.getShallow("fontStyle")||"",t.fontWeight||r&&r.getShallow("fontWeight")||"",(t.fontSize||r&&r.getShallow("fontSize")||12)+"px",t.fontFamily||r&&r.getShallow("fontFamily")||"sans-serif"].join(" "))}({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(e){for(var r={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<Ff.length;n++)r[Ff[n]]=this.getShallow(Ff[n]);return Nf.useStyle(r),Nf.update(),Nf.getBoundingRect()},t}();const AT=LT;var mg=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],PT=La(mg),RT=function(){function t(){}return t.prototype.getLineStyle=function(e){return PT(this,e)},t}(),yg=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],ET=La(yg),IT=function(){function t(){}return t.prototype.getItemStyle=function(e,r){return ET(this,e,r)},t}(),Zn=function(){function t(e,r,n){this.parentModel=r,this.ecModel=n,this.option=e}return t.prototype.init=function(e,r,n){for(var i=[],a=3;a<arguments.length;a++)i[a-3]=arguments[a]},t.prototype.mergeOption=function(e,r){Ce(this.option,e,!0)},t.prototype.get=function(e,r){return null==e?this.option:this._doGet(this.parsePath(e),!r&&this.parentModel)},t.prototype.getShallow=function(e,r){var n=this.option,i=null==n?n:n[e];if(null==i&&!r){var a=this.parentModel;a&&(i=a.getShallow(e))}return i},t.prototype.getModel=function(e,r){var n=null!=e,i=n?this.parsePath(e):null;return new t(n?this._doGet(i):this.option,r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),this.ecModel)},t.prototype.isEmpty=function(){return null==this.option},t.prototype.restoreData=function(){},t.prototype.clone=function(){return new(0,this.constructor)(se(this.option))},t.prototype.parsePath=function(e){return"string"==typeof e?e.split("."):e},t.prototype.resolveParentPath=function(e){return e},t.prototype.isAnimationEnabled=function(){if(!oe.node&&this.option){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(e,r){var n=this.option;if(!e)return n;for(var i=0;i<e.length&&(!e[i]||null!=(n=n&&"object"==typeof n?n[e[i]]:null));i++);return null==n&&r&&(n=r._doGet(this.resolveParentPath(e),r.parentModel)),n},t}();tf(Zn),function t1(t){var e=["__\0is_clz",e1++].join("_");t.prototype[e]=!0,t.isInstance=function(r){return!(!r||!r[e])}}(Zn),Wt(Zn,RT),Wt(Zn,IT),Wt(Zn,o1),Wt(Zn,AT);const Fe=Zn;var kT=Math.round(10*Math.random());function xs(t){return[t||"",kT++].join("_")}var Ni="EN",ws={},Hf={},_g=oe.domSupported&&(document.documentElement.lang||navigator.language||navigator.browserLanguage||Ni).toUpperCase().indexOf("ZH")>-1?"ZH":Ni;function Gf(t,e){t=t.toUpperCase(),Hf[t]=new Fe(e),ws[t]=e}Gf("EN",{time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}}),Gf("ZH",{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",custom:"\u81ea\u5b9a\u4e49\u56fe\u8868",chart:"\u56fe\u8868"}},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:""}}}});function gt(){return null}var Ra=36e5,It=24*Ra,Cg=365*It,WT={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},Ds={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},Ms="{yyyy}-{MM}-{dd}",Sg={year:"{yyyy}",month:"{yyyy}-{MM}",day:Ms,hour:Ms+" "+Ds.hour,minute:Ms+" "+Ds.minute,second:Ms+" "+Ds.second,millisecond:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},wt=["year","month","day","hour","minute","second","millisecond"],UT=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function lt(t,e){return"0000".substr(0,e-(t+="").length)+t}function Ea(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function jT(t){return t===Ea(t)}function Ia(t,e,r,n){var i=Ar(t),a=i[bg(r)](),o=i[Uf(r)]()+1,s=Math.floor((o-1)/3)+1,l=i[Yf(r)](),u=i["get"+(r?"UTC":"")+"Day"](),f=i[Xf(r)](),c=(f-1)%12+1,v=i[jf(r)](),h=i[Zf(r)](),d=i[$f(r)](),m=f>=12?"pm":"am",p=m.toUpperCase(),g=n instanceof Fe?n:function GT(t){return Hf[t]}(n||_g)||function VT(){return Hf[Ni]}(),y=g.getModel("time"),_=y.get("month"),C=y.get("monthAbbr"),b=y.get("dayOfWeek"),S=y.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,m+"").replace(/{A}/g,p+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,lt(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,C[o-1]).replace(/{MM}/g,lt(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,lt(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,lt(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,lt(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,lt(v,2)).replace(/{m}/g,v+"").replace(/{ss}/g,lt(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,lt(d,3)).replace(/{S}/g,d+"")}function zi(t,e){var r=Ar(t),n=r[Uf(e)]()+1,i=r[Yf(e)](),a=r[Xf(e)](),o=r[jf(e)](),s=r[Zf(e)](),u=0===r[$f(e)](),f=u&&0===s,c=f&&0===o,v=c&&0===a,h=v&&1===i;return h&&1===n?"year":h?"month":v?"day":c?"hour":f?"minute":u?"second":"millisecond"}function Ls(t,e,r){switch(e){case"year":t[xg(r)](0);case"month":t[Tg(r)](1);case"day":t[wg(r)](0);case"hour":t[Dg(r)](0);case"minute":t[Mg(r)](0);case"second":t[Lg(r)](0)}return t}function bg(t){return t?"getUTCFullYear":"getFullYear"}function Uf(t){return t?"getUTCMonth":"getMonth"}function Yf(t){return t?"getUTCDate":"getDate"}function Xf(t){return t?"getUTCHours":"getHours"}function jf(t){return t?"getUTCMinutes":"getMinutes"}function Zf(t){return t?"getUTCSeconds":"getSeconds"}function $f(t){return t?"getUTCMilliseconds":"getMilliseconds"}function KT(t){return t?"setUTCFullYear":"setFullYear"}function xg(t){return t?"setUTCMonth":"setMonth"}function Tg(t){return t?"setUTCDate":"setDate"}function wg(t){return t?"setUTCHours":"setHours"}function Dg(t){return t?"setUTCMinutes":"setMinutes"}function Mg(t){return t?"setUTCSeconds":"setSeconds"}function Lg(t){return t?"setUTCMilliseconds":"setMilliseconds"}function Kf(t){if(!Zd(t))return U(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function Qf(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(r,n){return n.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var ka=Mo;function Jf(t,e,r){function i(f){return f&&Ut(f)?f:"-"}function a(f){return!(null==f||isNaN(f)||!isFinite(f))}var o="time"===e,s=t instanceof Date;if(o||s){var l=o?Ar(t):t;if(!isNaN(+l))return Ia(l,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",r);if(s)return"-"}if("ordinal"===e)return wo(t)?i(t):ge(t)&&a(t)?t+"":"-";var u=Pr(t);return a(u)?Kf(u):wo(t)?i(t):"boolean"==typeof t?t+"":"-"}var Ag=["a","b","c","d","e","f","g"],ec=function(t,e){return"{"+t+(e??"")+"}"};function tc(t,e,r){z(e)||(e=[e]);var n=e.length;if(!n)return"";for(var i=e[0].$vars||[],a=0;a<i.length;a++){var o=Ag[a];t=t.replace(ec(o),ec(o,0))}for(var s=0;s<n;s++)for(var l=0;l<i.length;l++){var u=e[s][i[l]];t=t.replace(ec(Ag[l],s),r?at(u):u)}return t}function Pg(t,e){var r=U(t)?{color:t,extraCssText:e}:t||{},n=r.color,i=r.type;e=r.extraCssText;var a=r.renderMode||"html";return n?"html"===a?"subItem"===i?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+at(n)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+at(n)+";"+(e||"")+'"></span>':{renderMode:a,content:"{"+(r.markerId||"markerX")+"|} ",style:"subItem"===i?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}:""}function ew(t,e,r){("week"===t||"month"===t||"quarter"===t||"half-year"===t||"year"===t)&&(t="MM-dd\nyyyy");var n=Ar(e),i=r?"getUTC":"get",a=n[i+"FullYear"](),o=n[i+"Month"]()+1,s=n[i+"Date"](),l=n[i+"Hours"](),u=n[i+"Minutes"](),f=n[i+"Seconds"](),c=n[i+"Milliseconds"]();return t.replace("MM",lt(o,2)).replace("M",o).replace("yyyy",a).replace("yy",lt(a%100+"",2)).replace("dd",lt(s,2)).replace("d",s).replace("hh",lt(l,2)).replace("h",l).replace("mm",lt(u,2)).replace("m",u).replace("ss",lt(f,2)).replace("s",f).replace("SSS",lt(c,3))}function tw(t){return t&&t.charAt(0).toUpperCase()+t.substr(1)}function Oa(t,e){return e=e||"transparent",U(t)?t:$(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function Rg(t,e){if("_blank"===e||"blank"===e){var r=window.open();r.opener=null,r.location.href=t}else window.open(t,e)}var As={},rc={},nw=function(){function t(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return t.prototype.create=function(e,r){function n(i,a){var o=[];return D(i,function(s,l){var u=s.create(e,r);o=o.concat(u||[])}),o}this._nonSeriesBoxMasterList=n(As),this._normalMasterList=n(rc)},t.prototype.update=function(e,r){D(this._normalMasterList,function(n){n.update&&n.update(e,r)})},t.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},t.register=function(e,r){"matrix"!==e&&"calendar"!==e?rc[e]=r:As[e]=r},t.get=function(e){return rc[e]||As[e]},t}(),Eg=ae();const Ps=nw;var Rs=D,Ig=["left","right","top","bottom","width","height"],$n=[["width","left","right"],["height","top","bottom"]];function ic(t,e,r,n,i){var a=0,o=0;null==n&&(n=1/0),null==i&&(i=1/0);var s=0;e.eachChild(function(l,u){var h,d,f=l.getBoundingRect(),c=e.childAt(u+1),v=c&&c.getBoundingRect();if("horizontal"===t){var m=f.width+(v?-v.x+f.x:0);(h=a+m)>n||l.newline?(a=0,h=m,o+=s+r,s=f.height):s=Math.max(s,f.height)}else{var p=f.height+(v?-v.y+f.y:0);(d=o+p)>i||l.newline?(a+=s+r,o=0,d=p,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),"horizontal"===t?a=h+r:o=d+r)})}var Ba=ic;function Fr(t,e,r){r=ka(r||0);var n=e.width,i=e.height,a=me(t.left,n),o=me(t.top,i),s=me(t.right,n),l=me(t.bottom,i),u=me(t.width,n),f=me(t.height,i),c=r[2]+r[0],v=r[1]+r[3],h=t.aspect;switch(isNaN(u)&&(u=n-s-v-a),isNaN(f)&&(f=i-l-c-o),null!=h&&(isNaN(u)&&isNaN(f)&&(h>n/i?u=.8*n:f=.8*i),isNaN(u)&&(u=h*f),isNaN(f)&&(f=u/h)),isNaN(a)&&(a=n-s-u-v),isNaN(o)&&(o=i-l-f-c),t.left||t.right){case"center":a=n/2-u/2-r[3];break;case"right":a=n-u-v}switch(t.top||t.bottom){case"middle":case"center":o=i/2-f/2-r[0];break;case"bottom":o=i-f-c}a=a||0,o=o||0,isNaN(u)&&(u=n-v-a-(s||0)),isNaN(f)&&(f=i-c-o-(l||0));var d=new ne((e.x||0)+a+r[3],(e.y||0)+o+r[0],u,f);return d.margin=r,d}Ae(ic,"vertical"),Ae(ic,"horizontal");var Fa={rect:1,point:2};function ac(t,e,r){var n,i,a,s,o=t.boxCoordinateSystem;if(o){var l=function ow(t){var e=t.getShallow("coord",!0),r=1;if(null==e){var n=Eg.get(t.type);n&&n.getCoord2&&(r=2,e=n.getCoord2(t))}return{coord:e,from:r}}(t),u=l.coord,f=l.from;if(o.dataToLayout){a=Fa.rect,s=f;var c=o.dataToLayout(u);n=c.contentRect||c.rect}else r&&r.enableLayoutOnlyByCenter&&o.dataToPoint&&(a=Fa.point,s=f,i=o.dataToPoint(u))}return null==a&&(a=Fa.rect),a===Fa.rect&&(n||(n={x:0,y:0,width:e.getWidth(),height:e.getHeight()}),i=[n.x+n.width/2,n.y+n.height/2]),{type:a,refContainer:n,refPoint:i,boxCoordFrom:s}}function cw(t,e,r,n,i,a){var u,o=!i||!i.hv||i.hv[0],s=!i||!i.hv||i.hv[1],l=i&&i.boundingMode||"all";if((a=a||t).x=t.x,a.y=t.y,!o&&!s)return!1;if("raw"===l)u="group"===t.type?new ne(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(u=t.getBoundingRect(),t.needLocalTransform()){var f=t.getLocalTransform();(u=u.clone()).applyTransform(f)}var c=Fr(be({width:u.width,height:u.height},e),r,n),v=o?c.x-u.x:0,h=s?c.y-u.y:0;return"raw"===l?(a.x=v,a.y=h):(a.x+=v,a.y+=h),a===t&&t.markRedraw(),!0}function Es(t){var e=t.layoutMode||t.constructor.layoutMode;return $(e)?e:e?{type:e}:null}function Hi(t,e,r){var n=r&&r.ignoreSize;!z(n)&&(n=[n,n]);var i=o($n[0],0),a=o($n[1],1);function o(u,f){var c={},v=0,h={},d=0;if(Rs(u,function(y){h[y]=t[y]}),Rs(u,function(y){J(e,y)&&(c[y]=h[y]=e[y]),s(c,y)&&v++,s(h,y)&&d++}),n[f])return s(e,u[1])?h[u[2]]=null:s(e,u[2])&&(h[u[1]]=null),h;if(2===d||!v)return h;if(v>=2)return c;for(var p=0;p<u.length;p++){var g=u[p];if(!J(c,g)&&J(t,g)){c[g]=t[g];break}}return c}function s(u,f){return null!=u[f]&&"auto"!==u[f]}function l(u,f,c){Rs(u,function(v){f[v]=c[v]})}l($n[0],t,i),l($n[1],t,a)}function oc(t){return kg({},t)}function kg(t,e){return e&&t&&Rs(Ig,function(r){J(e,r)&&(t[r]=e[r])}),t}var hw=ye(),Gi=function(t){function e(r,n,i){var a=t.call(this,r,n,i)||this;return a.uid=xs("ec_cpt_model"),a}return(0,X.C6)(e,t),e.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i)},e.prototype.mergeDefaultAndTheme=function(r,n){var i=Es(this),a=i?oc(r):{};Ce(r,n.getTheme().get(this.mainType)),Ce(r,this.getDefaultOption()),i&&Hi(r,a,i)},e.prototype.mergeOption=function(r,n){Ce(this.option,r,!0);var i=Es(this);i&&Hi(this.option,r,i)},e.prototype.optionUpdated=function(r,n){},e.prototype.getDefaultOption=function(){var r=this.constructor;if(!function Qx(t){return!(!t||!t[op])}(r))return r.defaultOption;var n=hw(this);if(!n.defaultOption){for(var i=[],a=r;a;){var o=a.prototype.defaultOption;o&&i.push(o),a=a.superClass}for(var s={},l=i.length-1;l>=0;l--)s=Ce(s,i[l],!0);n.defaultOption=s}return n.defaultOption},e.prototype.getReferringComponents=function(r,n){var a=r+"Id";return Ma(this.ecModel,r,{index:this.get(r+"Index",!0),id:this.get(a,!0)},n)},e.prototype.getBoxLayoutParams=function(){return function lw(t,e){return{left:t.getShallow("left",e),top:t.getShallow("top",e),right:t.getShallow("right",e),bottom:t.getShallow("bottom",e),width:t.getShallow("width",e),height:t.getShallow("height",e)}}(this,!1)},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(r){this.option.zlevel=r},e.protoInitialize=function(){var r=e.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0}(),e}(Fe);sp(Gi,Fe),ss(Gi),function OT(t){var e={};t.registerSubTypeDefaulter=function(r,n){var i=hr(r);e[i.main]=n},t.determineSubType=function(r,n){var i=n.type;if(!i){var a=hr(r).main;t.hasSubTypes(r)&&e[a]&&(i=e[a](n))}return i}}(Gi),function BT(t,e){function n(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}t.topologicalTravel=function(a,o,s,l){if(a.length){var u=function r(a){var o={},s=[];return D(a,function(l){var u=n(o,l),c=function i(a,o){var s=[];return D(a,function(l){le(o,l)>=0&&s.push(l)}),s}(u.originalDeps=e(l),a);u.entryCount=c.length,0===u.entryCount&&s.push(l),D(c,function(v){le(u.predecessor,v)<0&&u.predecessor.push(v);var h=n(o,v);le(h.successor,v)<0&&h.successor.push(l)})}),{graph:o,noEntryList:s}}(o),f=u.graph,c=u.noEntryList,v={};for(D(a,function(y){v[y]=!0});c.length;){var h=c.pop(),d=f[h],m=!!v[h];m&&(s.call(l,h,d.originalDeps.slice()),delete v[h]),D(d.successor,m?g:p)}D(v,function(){throw new Error("")})}function p(y){f[y].entryCount--,0===f[y].entryCount&&c.push(y)}function g(y){v[y]=!0,p(y)}}}(Gi,function vw(t){var e=[];return D(Gi.getClassesByMainType(t),function(r){e=e.concat(r.dependencies||r.prototype.dependencies||[])}),e=K(e,function(r){return hr(r).main}),"dataset"!==t&&le(e,"dataset")<=0&&e.unshift("dataset"),e});const xe=Gi;var Kn={color:{},darkColor:{},size:{}},Pe=Kn.color={theme:["#5070dd","#b6d634","#505372","#ff994d","#0ca8df","#ffd10a","#fb628b","#785db0","#3fbe95"],neutral00:"#fff",neutral05:"#f4f7fd",neutral10:"#e8ebf0",neutral15:"#dbdee4",neutral20:"#cfd2d7",neutral25:"#c3c5cb",neutral30:"#b7b9be",neutral35:"#aaacb2",neutral40:"#9ea0a5",neutral45:"#929399",neutral50:"#86878c",neutral55:"#797b7f",neutral60:"#6d6e73",neutral65:"#616266",neutral70:"#54555a",neutral75:"#48494d",neutral80:"#3c3c41",neutral85:"#303034",neutral90:"#232328",neutral95:"#17171b",neutral99:"#000",accent05:"#eff1f9",accent10:"#e0e4f2",accent15:"#d0d6ec",accent20:"#c0c9e6",accent25:"#b1bbdf",accent30:"#a1aed9",accent35:"#91a0d3",accent40:"#8292cc",accent45:"#7285c6",accent50:"#6578ba",accent55:"#5c6da9",accent60:"#536298",accent65:"#4a5787",accent70:"#404c76",accent75:"#374165",accent80:"#2e3654",accent85:"#252b43",accent90:"#1b2032",accent95:"#121521",transparent:"rgba(0,0,0,0)",highlight:"rgba(255,231,130,0.8)"};for(var Qn in k(Pe,{primary:Pe.neutral80,secondary:Pe.neutral70,tertiary:Pe.neutral60,quaternary:Pe.neutral50,disabled:Pe.neutral20,border:Pe.neutral30,borderTint:Pe.neutral20,borderShade:Pe.neutral40,background:Pe.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:Pe.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:Pe.neutral70,axisLineTint:Pe.neutral40,axisTick:Pe.neutral70,axisTickMinor:Pe.neutral60,axisLabel:Pe.neutral70,axisSplitLine:Pe.neutral15,axisMinorSplitLine:Pe.neutral05}),Pe)if(Pe.hasOwnProperty(Qn)){var Og=Pe[Qn];"theme"===Qn?Kn.darkColor.theme=Pe.theme.slice():"highlight"===Qn?Kn.darkColor.highlight="rgba(255,231,130,0.4)":Kn.darkColor[Qn]=0===Qn.indexOf("accent")?Yo(Og,null,function(t){return.5*t},function(t){return Math.min(1,1.3-t)}):Yo(Og,null,function(t){return.9*t},function(t){return 1-Math.pow(t,1.5)})}Kn.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};const ue=Kn;var Bg="";typeof navigator<"u"&&(Bg=navigator.platform||"");var Vi="rgba(0, 0, 0, 0.2)",Fg=ue.color.theme[0],dw=Yo(Fg,null,null,.9);const pw={darkMode:"auto",colorBy:"series",color:ue.color.theme,gradientColor:[dw,Fg],aria:{decal:{decals:[{color:Vi,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Vi,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Vi,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Vi,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Vi,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Vi,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Bg.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 Ng=ae(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Dt="original",Ke="arrayRows",kt="objectRows",Jt="keyedColumns",Nr="typedArray",zg="unknown",yr="column",Jn="row",Hg=ye();function mw(t,e,r){var n={},i=sc(e);if(!i||!t)return n;var f,c,a=[],o=[],l=Hg(e.ecModel).datasetMap,u=i.uid+"_"+r.seriesLayoutBy;D(t=t.slice(),function(m,p){var g=$(m)?m:t[p]={name:m};"ordinal"===g.type&&null==f&&(f=p,c=d(g)),n[g.name]=[]});var v=l.get(u)||l.set(u,{categoryWayDim:c,valueWayDim:0});function h(m,p,g){for(var y=0;y<g;y++)m.push(p+y)}function d(m){var p=m.dimsDef;return p?p.length:1}return D(t,function(m,p){var g=m.name,y=d(m);if(null==f)h(n[g],_=v.valueWayDim,y),h(o,_,y),v.valueWayDim+=y;else if(f===p)h(n[g],0,y),h(a,0,y);else{var _;h(n[g],_=v.categoryWayDim,y),h(o,_,y),v.categoryWayDim+=y}}),a.length&&(n.itemName=a),o.length&&(n.seriesName=o),n}function yw(t,e,r){var n={};if(!sc(t))return n;var s,a=e.sourceFormat,o=e.dimensionsDefine;(a===kt||a===Jt)&&D(o,function(f,c){"name"===($(f)?f.name:f)&&(s=c)});var l=function(){for(var f={},c={},v=[],h=0,d=Math.min(5,r);h<d;h++){var m=Vg(e.data,a,e.seriesLayoutBy,o,e.startIndex,h);v.push(m);var p=3===m;if(p&&null==f.v&&h!==s&&(f.v=h),(null==f.n||f.n===f.v||!p&&3===v[f.n])&&(f.n=h),g(f)&&3!==v[f.n])return f;p||(2===m&&null==c.v&&h!==s&&(c.v=h),(null==c.n||c.n===c.v)&&(c.n=h))}function g(y){return null!=y.v&&null!=y.n}return g(f)?f:g(c)?c:null}();if(l){n.value=[l.v];var u=s??l.n;n.itemName=[u],n.seriesName=[u]}return n}function sc(t){if(!t.get("data",!0))return Ma(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},on).models[0]}function Gg(t,e){return Vg(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function Vg(t,e,r,n,i,a){var o,l,u;if(nt(t))return 3;if(n){var f=n[a];$(f)?(l=f.name,u=f.type):U(f)&&(l=f)}if(null!=u)return"ordinal"===u?1:3;if(e===Ke){var c=t;if(r===Jn){for(var v=c[a],h=0;h<(v||[]).length&&h<5;h++)if(null!=(o=C(v[i+h])))return o}else for(h=0;h<c.length&&h<5;h++){var d=c[i+h];if(d&&null!=(o=C(d[a])))return o}}else if(e===kt){var m=t;if(!l)return 3;for(h=0;h<m.length&&h<5;h++)if((p=m[h])&&null!=(o=C(p[l])))return o}else if(e===Jt){if(!l)return 3;if(!(v=t[l])||nt(v))return 3;for(h=0;h<v.length&&h<5;h++)if(null!=(o=C(v[h])))return o}else if(e===Dt){var y=t;for(h=0;h<y.length&&h<5;h++){var p,_=xa(p=y[h]);if(!z(_))return 3;if(null!=(o=C(_[a])))return o}}function C(b){var S=U(b);return null!=b&&Number.isFinite(Number(b))&&""!==b?S?2:3:S&&"-"!==b?1:void 0}return 3}var lc=ae(),Wg=ye(),uc=(ye(),function(){function t(){}return t.prototype.getColorFromPalette=function(e,r,n){var i=He(this.get("color",!0)),a=this.get("colorLayer",!0);return function qg(t,e,r,n,i,a,o){var s=e(a=a||t),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var f=null!=o&&n?function Tw(t,e){for(var r=t.length,n=0;n<r;n++)if(t[n].length>e)return t[n];return t[r-1]}(n,o):r;if((f=f||r)&&f.length){var c=f[l];return i&&(u[i]=c),s.paletteIdx=(l+1)%f.length,c}}(this,Wg,i,a,e,r,n)},t.prototype.clearColorPalette=function(){!function ww(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}(this,Wg)},t}());var Is,Na,Ug,Yg="\0_ec_inner",jg=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,X.C6)(e,t),e.prototype.init=function(r,n,i,a,o,s){a=a||{},this.option=null,this._theme=new Fe(a),this._locale=new Fe(o),this._optionManager=s},e.prototype.setOption=function(r,n,i){var a=Kg(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},e.prototype.resetOption=function(r,n){return this._resetOption(r,Kg(n))},e.prototype._resetOption=function(r,n){var i=!1,a=this._optionManager;if(!r||"recreate"===r){var o=a.mountOption("recreate"===r);this.option&&"recreate"!==r?(this.restoreData(),this._mergeOption(o,n)):Ug(this,o),i=!0}if(("timeline"===r||"media"===r)&&this.restoreData(),!r||"recreate"===r||"timeline"===r){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!r||"recreate"===r||"media"===r){var l=a.getMediaOption(this);l.length&&D(l,function(u){i=!0,this._mergeOption(u,n)},this)}return i},e.prototype.mergeOption=function(r){this._mergeOption(r,null)},e.prototype._mergeOption=function(r,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=ae(),u=n&&n.replaceMergeMainTypeMap;(function gw(t){Hg(t).datasetMap=ae()})(this),D(r,function(c,v){null!=c&&(xe.hasClass(v)?v&&(s.push(v),l.set(v,!0)):i[v]=null==i[v]?se(c):Ce(i[v],c,!0))}),u&&u.each(function(c,v){xe.hasClass(v)&&!l.get(v)&&(s.push(v),l.set(v,!0))}),xe.topologicalTravel(s,xe.getAllClassMainTypes(),function f(c){var v=function Sw(t,e,r){var n=lc.get(e);if(!n)return r;var i=n(t);return i?r.concat(i):r}(this,c,He(r[c])),h=a.get(c),m=np(h,v,h?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll");(function qx(t,e,r){D(t,function(n){var i=n.newOption;$(i)&&(n.keyInfo.mainType=e,n.keyInfo.subType=function Ux(t,e,r,n){return e.type?e.type:r?r.subType:n.determineSubType(t,e)}(e,i,n.existing,r))})})(m,c,xe),i[c]=null,a.set(c,null),o.set(c,0);var _,p=[],g=[],y=0;D(m,function(b,S){var x=b.existing,T=b.newOption;if(T){var L=xe.getClass(c,b.keyInfo.subType,!("series"===c));if(!L)return;if("tooltip"===c){if(_)return;_=!0}if(x&&x.constructor===L)x.name=b.keyInfo.name,x.mergeOption(T,this),x.optionUpdated(T,!1);else{var M=k({componentIndex:S},b.keyInfo);k(x=new L(T,this,this,M),M),b.brandNew&&(x.__requireNewView=!0),x.init(T,this,this),x.optionUpdated(null,!0)}}else x&&(x.mergeOption({},this),x.optionUpdated({},!1));x?(p.push(x.option),g.push(x),y++):(p.push(void 0),g.push(void 0))},this),i[c]=p,a.set(c,g),o.set(c,y),"series"===c&&Is(this)},this),this._seriesIndices||Is(this)},e.prototype.getOption=function(){var r=se(this.option);return D(r,function(n,i){if(xe.hasClass(i)){for(var a=He(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!wa(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[Yg],r},e.prototype.setTheme=function(r){this._theme=new Fe(r),this._resetOption("recreate",null)},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(r){this._payload=r},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(r,n){var i=this._componentsMap.get(r);if(i){var a=i[n||0];if(a)return a;if(null==n)for(var o=0;o<i.length;o++)if(i[o])return i[o]}},e.prototype.queryComponents=function(r){var n=r.mainType;if(!n)return[];var l,i=r.index,a=r.id,o=r.name,s=this._componentsMap.get(n);return s&&s.length?(null!=i?(l=[],D(He(i),function(u){s[u]&&l.push(s[u])})):l=null!=a?Zg("id",a,s):null!=o?Zg("name",o,s):Me(s,function(u){return!!u}),$g(l,r)):[]},e.prototype.findComponents=function(r){var i=r.mainType,a=function s(u){var f=i+"Index",c=i+"Id",v=i+"Name";return!u||null==u[f]&&null==u[c]&&null==u[v]?null:{mainType:i,index:u[f],id:u[c],name:u[v]}}(r.query);return function l(u){return r.filter?Me(u,r.filter):u}($g(a?this.queryComponents(a):Me(this._componentsMap.get(i),function(u){return!!u}),r))},e.prototype.eachComponent=function(r,n,i){var a=this._componentsMap;if(ee(r)){var o=n,s=r;a.each(function(c,v){for(var h=0;c&&h<c.length;h++){var d=c[h];d&&s.call(o,v,d,d.componentIndex)}})}else for(var l=U(r)?a.get(r):$(r)?this.findComponents(r):null,u=0;l&&u<l.length;u++){var f=l[u];f&&n.call(i,f,f.componentIndex)}},e.prototype.getSeriesByName=function(r){var n=ot(r,null);return Me(this._componentsMap.get("series"),function(i){return!!i&&null!=n&&i.name===n})},e.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},e.prototype.getSeriesByType=function(r){return Me(this._componentsMap.get("series"),function(n){return!!n&&n.subType===r})},e.prototype.getSeries=function(){return Me(this._componentsMap.get("series"),function(r){return!!r})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(r,n){Na(this),D(this._seriesIndices,function(i){var a=this._componentsMap.get("series")[i];r.call(n,a,i)},this)},e.prototype.eachRawSeries=function(r,n){D(this._componentsMap.get("series"),function(i){i&&r.call(n,i,i.componentIndex)})},e.prototype.eachSeriesByType=function(r,n,i){Na(this),D(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===r&&n.call(i,o,a)},this)},e.prototype.eachRawSeriesByType=function(r,n,i){return D(this.getSeriesByType(r),n,i)},e.prototype.isSeriesFiltered=function(r){return Na(this),null==this._seriesIndicesMap.get(r.componentIndex)},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(r,n){Na(this);var i=[];D(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];r.call(n,o,a)&&i.push(a)},this),this._seriesIndices=i,this._seriesIndicesMap=ae(i)},e.prototype.restoreData=function(r){Is(this);var n=this._componentsMap,i=[];n.each(function(a,o){xe.hasClass(o)&&i.push(o)}),xe.topologicalTravel(i,xe.getAllClassMainTypes(),function(a){D(n.get(a),function(o){o&&("series"!==a||!function Rw(t,e){if(e){var r=e.seriesIndex,n=e.seriesId,i=e.seriesName;return null!=r&&t.componentIndex!==r||null!=n&&t.id!==n||null!=i&&t.name!==i}}(o,r))&&o.restoreData()})})},e.internalField=(Is=function(r){var n=r._seriesIndices=[];D(r._componentsMap.get("series"),function(i){i&&n.push(i.componentIndex)}),r._seriesIndicesMap=ae(n)},Na=function(r){},void(Ug=function(r,n){r.option={},r.option[Yg]=1,r._componentsMap=ae({series:[]}),r._componentsCount=ae();var i=n.aria;$(i)&&null==i.enabled&&(i.enabled=!0),function Ew(t,e){var r=t.color&&!t.colorLayer;D(e,function(n,i){"colorLayer"===i&&r||"color"===i&&t.color||xe.hasClass(i)||("object"==typeof n?t[i]=t[i]?Ce(t[i],n,!1):se(n):null==t[i]&&(t[i]=n))})}(n,r._theme.option),Ce(n,pw,!1),r._mergeOption(n,null)})),e}(Fe);function Zg(t,e,r){if(z(e)){var n=ae();return D(e,function(a){null!=a&&null!=ot(a,null)&&n.set(a,!0)}),Me(r,function(a){return a&&n.get(a[t])})}var i=ot(e,null);return Me(r,function(a){return a&&null!=i&&a[t]===i})}function $g(t,e){return e.hasOwnProperty("subType")?Me(t,function(r){return r&&r.subType===e.subType}):t}function Kg(t){var e=ae();return t&&D(He(t.replaceMerge),function(r){e.set(r,!0)}),{replaceMergeMainTypeMap:e}}Wt(jg,uc);const Qg=jg;var Iw=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],kw=function(){return function t(e){D(Iw,function(r){this[r]=he(e[r],e)},this)}}();const Jg=kw;var Ow=/^(min|max)?(.+)$/,Bw=function(){function t(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return t.prototype.setOption=function(e,r,n){e&&(D(He(e.series),function(o){o&&o.data&&nt(o.data)&&Lo(o.data)}),D(He(e.dataset),function(o){o&&o.source&&nt(o.source)&&Lo(o.source)})),e=se(e);var i=this._optionBackup,a=function Fw(t,e,r){var i,a,n=[],o=t.baseOption,s=t.timeline,l=t.options,u=t.media,f=!!t.media,c=!!(l||s||o&&o.timeline);function v(h){D(e,function(d){d(h,r)})}return o?(a=o).timeline||(a.timeline=s):((c||f)&&(t.options=t.media=null),a=t),f&&z(u)&&D(u,function(h){h&&h.option&&(h.query?n.push(h):i||(i=h))}),v(a),D(l,function(h){return v(h)}),D(n,function(h){return v(h.option)}),{baseOption:a,timelineOptions:l||[],mediaDefault:i,mediaList:n}}(e,r,!i);this._newBaseOption=a.baseOption,i?(a.timelineOptions.length&&(i.timelineOptions=a.timelineOptions),a.mediaList.length&&(i.mediaList=a.mediaList),a.mediaDefault&&(i.mediaDefault=a.mediaDefault)):this._optionBackup=a},t.prototype.mountOption=function(e){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],se(e?r.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(e){var r,n=this._timelineOptions;if(n.length){var i=e.getComponent("timeline");i&&(r=se(n[i.getCurrentIndex()]))}return r},t.prototype.getMediaOption=function(e){var r=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!i.length&&!a)return s;for(var l=0,u=i.length;l<u;l++)Nw(i[l].query,r,n)&&o.push(l);return!o.length&&a&&(o=[-1]),o.length&&!function Hw(t,e){return t.join(",")===e.join(",")}(o,this._currentMediaIndices)&&(s=K(o,function(f){return se(-1===f?a.option:i[f].option)})),this._currentMediaIndices=o,s},t}();function Nw(t,e,r){var n={width:e,height:r,aspectratio:e/r},i=!0;return D(t,function(a,o){var s=o.match(Ow);if(s&&s[1]&&s[2]){var l=s[1],u=s[2].toLowerCase();(function zw(t,e,r){return"min"===r?t>=e:"max"===r?t<=e:t===e})(n[u],a,l)||(i=!1)}}),i}const Gw=Bw;var er=D,za=$,em=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function fc(t){var e=t&&t.itemStyle;if(e)for(var r=0,n=em.length;r<n;r++){var i=em[r],a=e.normal,o=e.emphasis;a&&a[i]&&(t[i]=t[i]||{},t[i].normal?Ce(t[i].normal,a[i]):t[i].normal=a[i],a[i]=null),o&&o[i]&&(t[i]=t[i]||{},t[i].emphasis?Ce(t[i].emphasis,o[i]):t[i].emphasis=o[i],o[i]=null)}}function Qe(t,e,r){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var n=t[e].normal,i=t[e].emphasis;n&&(r?(t[e].normal=t[e].emphasis=null,be(t[e],n)):t[e]=n),i&&(t.emphasis=t.emphasis||{},t.emphasis[e]=i,i.focus&&(t.emphasis.focus=i.focus),i.blurScope&&(t.emphasis.blurScope=i.blurScope))}}function Ha(t){Qe(t,"itemStyle"),Qe(t,"lineStyle"),Qe(t,"areaStyle"),Qe(t,"label"),Qe(t,"labelLine"),Qe(t,"upperLabel"),Qe(t,"edgeLabel")}function Ie(t,e){var r=za(t)&&t[e],n=za(r)&&r.textStyle;if(n)for(var i=0,a=rp.length;i<a;i++){var o=rp[i];n.hasOwnProperty(o)&&(r[o]=n[o])}}function Ot(t){t&&(Ha(t),Ie(t,"label"),t.emphasis&&Ie(t.emphasis,"label"))}function zr(t){return z(t)?t:t?[t]:[]}function tm(t){return(z(t)?t[0]:t)||{}}function rm(t){t&&D(Yw,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var Yw=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],Xw=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],cc=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Ga(t){var e=t&&t.itemStyle;if(e)for(var r=0;r<cc.length;r++){var n=cc[r][1];null!=e[n]&&(e[cc[r][0]]=e[n])}}function nm(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&(t.edgeDistance=t.margin)}function im(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function am(t,e){if(t)for(var r=0;r<t.length;r++)e(t[r]),t[r]&&am(t[r].children,e)}function om(t,e){(function Ww(t,e){er(zr(t.series),function(n){za(n)&&function Vw(t){if(za(t)){fc(t),Ha(t),Ie(t,"label"),Ie(t,"upperLabel"),Ie(t,"edgeLabel"),t.emphasis&&(Ie(t.emphasis,"label"),Ie(t.emphasis,"upperLabel"),Ie(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(fc(e),Ot(e));var r=t.markLine;r&&(fc(r),Ot(r));var n=t.markArea;n&&Ot(n);var i=t.data;if("graph"===t.type){i=i||t.nodes;var a=t.links||t.edges;if(a&&!nt(a))for(var o=0;o<a.length;o++)Ot(a[o]);D(t.categories,function(u){Ha(u)})}if(i&&!nt(i))for(o=0;o<i.length;o++)Ot(i[o]);if((e=t.markPoint)&&e.data){var s=e.data;for(o=0;o<s.length;o++)Ot(s[o])}if((r=t.markLine)&&r.data){var l=r.data;for(o=0;o<l.length;o++)z(l[o])?(Ot(l[o][0]),Ot(l[o][1])):Ot(l[o])}"gauge"===t.type?(Ie(t,"axisLabel"),Ie(t,"title"),Ie(t,"detail")):"treemap"===t.type?(Qe(t.breadcrumb,"itemStyle"),D(t.levels,function(u){Ha(u)})):"tree"===t.type&&Ha(t.leaves)}}(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),er(r,function(n){er(zr(t[n]),function(i){i&&(Ie(i,"axisLabel"),Ie(i.axisPointer,"label"))})}),er(zr(t.parallel),function(n){var i=n&&n.parallelAxisDefault;Ie(i,"axisLabel"),Ie(i&&i.axisPointer,"label")}),er(zr(t.calendar),function(n){Qe(n,"itemStyle"),Ie(n,"dayLabel"),Ie(n,"monthLabel"),Ie(n,"yearLabel")}),er(zr(t.radar),function(n){Ie(n,"name"),n.name&&null==n.axisName&&(n.axisName=n.name,delete n.name),null!=n.nameGap&&null==n.axisNameGap&&(n.axisNameGap=n.nameGap,delete n.nameGap)}),er(zr(t.geo),function(n){za(n)&&(Ot(n),er(zr(n.regions),function(i){Ot(i)}))}),er(zr(t.timeline),function(n){Ot(n),Qe(n,"label"),Qe(n,"itemStyle"),Qe(n,"controlStyle",!0);var i=n.data;z(i)&&D(i,function(a){$(a)&&(Qe(a,"label"),Qe(a,"itemStyle"))})}),er(zr(t.toolbox),function(n){Qe(n,"iconStyle"),er(n.feature,function(i){Qe(i,"iconStyle")})}),Ie(tm(t.axisPointer),"label"),Ie(tm(t.tooltip).axisPointer,"label")})(t,e),t.series=He(t.series),D(t.series,function(r){if($(r)){var n=r.type;if("line"===n)null!=r.clipOverflow&&(r.clip=r.clipOverflow);else if("pie"===n||"gauge"===n){if(null!=r.clockWise&&(r.clockwise=r.clockWise),nm(r.label),(i=r.data)&&!nt(i))for(var a=0;a<i.length;a++)nm(i[a]);null!=r.hoverOffset&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if("gauge"===n){var o=function qw(t,e){for(var r=e.split(","),n=t,i=0;i<r.length&&null!=(n=n&&n[r[i]]);i++);return n}(r,"pointer.color");null!=o&&function Uw(t,e,r,n){for(var o,i=e.split(","),a=t,s=0;s<i.length-1;s++)null==a[o=i[s]]&&(a[o]={}),a=a[o];(n||null==a[i[s]])&&(a[i[s]]=r)}(r,"itemStyle.color",o)}else if("bar"===n){var i;if(Ga(r),Ga(r.backgroundStyle),Ga(r.emphasis),(i=r.data)&&!nt(i))for(a=0;a<i.length;a++)"object"==typeof i[a]&&(Ga(i[a]),Ga(i[a]&&i[a].emphasis))}else if("sunburst"===n){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s)),im(r),am(r.data,im)}else"graph"===n||"sankey"===n?function jw(t){t&&null!=t.focusNodeAdjacency&&(t.emphasis=t.emphasis||{},null==t.emphasis.focus&&(t.emphasis.focus="adjacency"))}(r):"map"===n&&(r.mapType&&!r.map&&(r.map=r.mapType),r.mapLocation&&be(r,r.mapLocation));null!=r.hoverAnimation&&(r.emphasis=r.emphasis||{},r.emphasis&&null==r.emphasis.scale&&(r.emphasis.scale=r.hoverAnimation)),rm(r)}}),t.dataRange&&(t.visualMap=t.dataRange),D(Xw,function(r){var n=t[r];n&&(z(n)||(n=[n]),D(n,function(i){rm(i)}))})}var ks=function(){return function t(e){this.data=e.data||(e.sourceFormat===Jt?{}:[]),this.sourceFormat=e.sourceFormat||zg,this.seriesLayoutBy=e.seriesLayoutBy||yr,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var r=this.dimensionsDefine=e.dimensionsDefine;if(r)for(var n=0;n<r.length;n++){var i=r[n];null==i.type&&1===Gg(this,n)&&(i.type="ordinal")}}}();function hc(t){return t instanceof ks}function vc(t,e,r){r=r||sm(t);var n=e.seriesLayoutBy,i=function Qw(t,e,r,n,i){var a,o;if(!t)return{dimensionsDefine:lm(i),startIndex:o,dimensionsDetectedCount:a};if(e===Ke){var s=t;"auto"===n||null==n?um(function(u){null!=u&&"-"!==u&&(U(u)?null==o&&(o=1):o=0)},r,s,10):o=ge(n)?n:n?1:0,!i&&1===o&&(i=[],um(function(u,f){i[f]=null!=u?u+"":""},r,s,1/0)),a=i?i.length:r===Jn?s.length:s[0]?s[0].length:null}else if(e===kt)i||(i=function Jw(t){for(var r,e=0;e<t.length&&!(r=t[e++]););if(r)return de(r)}(t));else if(e===Jt)i||(i=[],D(t,function(u,f){i.push(f)}));else if(e===Dt){var l=xa(t[0]);a=z(l)&&l.length||1}return{startIndex:o,dimensionsDefine:lm(i),dimensionsDetectedCount:a}}(t,r,n,e.sourceHeader,e.dimensions);return new ks({data:t,sourceFormat:r,seriesLayoutBy:n,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:se(e)})}function dc(t){return new ks({data:t,sourceFormat:nt(t)?Nr:Dt})}function Kw(t){return new ks({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:se(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function sm(t){var e=zg;if(nt(t))e=Nr;else if(z(t)){0===t.length&&(e=Ke);for(var r=0,n=t.length;r<n;r++){var i=t[r];if(null!=i){if(z(i)||nt(i)){e=Ke;break}if($(i)){e=kt;break}}}}else if($(t))for(var a in t)if(J(t,a)&&Ze(t[a])){e=Jt;break}return e}function lm(t){if(t){var e=ae();return K(t,function(r,n){var i={name:(r=$(r)?r:{name:r}).name,displayName:r.displayName,type:r.type};if(null==i.name)return i;i.name+="",null==i.displayName&&(i.displayName=i.name);var a=e.get(i.name);return a?i.name+="-"+a.count++:e.set(i.name,{count:1}),i})}}function um(t,e,r,n){if(e===Jn)for(var i=0;i<r.length&&i<n;i++)t(r[i]?r[i][0]:null,i);else{var a=r[0]||[];for(i=0;i<a.length&&i<n;i++)t(a[i],i)}}function fm(t){var e=t.sourceFormat;return e===kt||e===Jt}var cm={},tD=typeof console<"u"&&console.warn&&console.log;function hm(t,e){!function pc(t,e,r){if(tD){if(r){if(cm[e])return;cm[e]=!0}console[t]("[ECharts] "+e)}}("error",t,e)}function ut(t){throw new Error(t)}var ei,ti,ri,ni,dm,pm,gm=function(){function t(e,r){var n=hc(e)?e:dc(e);this._source=n;var i=this._data=n.data;n.sourceFormat===Nr&&(this._offset=0,this._dimSize=r,this._data=i),pm(this,i,n)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(e,r){},t.prototype.appendData=function(e){},t.prototype.clean=function(){},t.protoInitialize=((e=t.prototype).pure=!1,void(e.persistent=!0)),t.internalField=function(){var e;pm=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,c=l.startIndex,v=l.dimensionsDefine;if(k(o,dm[mc(u,f)]),u===Nr)o.getItem=r,o.count=i,o.fillStorage=n;else{var d=ym(u,f);o.getItem=he(d,null,s,c,v);var m=Cm(u,f);o.count=he(m,null,s,c,v)}};var r=function(o,s){s=s||[];for(var l=this._data,u=this._dimSize,f=u*(o-=this._offset),c=0;c<u;c++)s[c]=l[f+c];return s},n=function(o,s,l,u){for(var f=this._data,c=this._dimSize,v=0;v<c;v++){for(var h=u[v],d=null==h[0]?1/0:h[0],m=null==h[1]?-1/0:h[1],p=s-o,g=l[v],y=0;y<p;y++){var _=f[y*c+v];g[o+y]=_,_<d&&(d=_),_>m&&(m=_)}h[0]=d,h[1]=m}},i=function(){return this._data?this._data.length/this._dimSize:0};function a(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}(e={})[Ke+"_"+yr]={pure:!0,appendData:a},e[Ke+"_"+Jn]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[kt]={pure:!0,appendData:a},e[Jt]={pure:!0,appendData:function(o){var s=this._data;D(o,function(l,u){for(var f=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)f.push(l[c])})}},e[Dt]={appendData:a},e[Nr]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},dm=e}(),t;var e}(),Os=function(t){z(t)||hm("series.data or dataset.source must be an array.")},mm=((ei={})[Ke+"_"+yr]=Os,ei[Ke+"_"+Jn]=Os,ei[kt]=Os,ei[Jt]=function(t,e){for(var r=0;r<e.length;r++)null==e[r].name&&hm("dimension name must not be null/undefined.")},ei[Dt]=Os,function(t,e,r,n){return t[n]}),iD=((ti={})[Ke+"_"+yr]=function(t,e,r,n){return t[n+e]},ti[Ke+"_"+Jn]=function(t,e,r,n,i){n+=e;for(var a=i||[],o=t,s=0;s<o.length;s++){var l=o[s];a[s]=l?l[n]:null}return a},ti[kt]=mm,ti[Jt]=function(t,e,r,n,i){for(var a=i||[],o=0;o<r.length;o++){var s=r[o].name,l=null!=s?t[s]:null;a[o]=l?l[n]:null}return a},ti[Dt]=mm,ti);function ym(t,e){return iD[mc(t,e)]}var _m=function(t,e,r){return t.length},aD=((ri={})[Ke+"_"+yr]=function(t,e,r){return Math.max(0,t.length-e)},ri[Ke+"_"+Jn]=function(t,e,r){var n=t[0];return n?Math.max(0,n.length-e):0},ri[kt]=_m,ri[Jt]=function(t,e,r){var n=r[0].name,i=null!=n?t[n]:null;return i?i.length:0},ri[Dt]=_m,ri);function Cm(t,e){return aD[mc(t,e)]}var gc=function(t,e,r){return t[e]},oD=((ni={})[Ke]=gc,ni[kt]=function(t,e,r){return t[r]},ni[Jt]=gc,ni[Dt]=function(t,e,r){var n=xa(t);return n instanceof Array?n[e]:n},ni[Nr]=gc,ni);function Sm(t){return oD[t]}function mc(t,e){return t===Ke?t+"_"+e:t}function Bs(t,e,r){if(t){var n=t.getRawDataItem(e);if(null!=n){var i=t.getStore(),a=i.getSource().sourceFormat;if(null!=r){var o=t.getDimensionIndex(r),s=i.getDimensionProperty(o);return Sm(a)(n,o,s)}var l=n;return a===Dt&&(l=xa(n)),l}}}var sD=/\{@(.+?)\}/g,lD=function(){function t(){}return t.prototype.getDataParams=function(e,r){var n=this.getData(r),i=this.getRawValue(e,r),a=n.getRawIndex(e),o=n.getName(e),s=n.getRawDataItem(e),l=n.getItemVisual(e,"style"),u=l&&l[n.getItemVisual(e,"drawType")||"fill"],f=l&&l.stroke,c=this.mainType,v="series"===c,h=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:v?this.subType:null,seriesIndex:this.seriesIndex,seriesId:v?this.id:null,seriesName:v?this.name:null,name:o,dataIndex:a,data:s,dataType:r,value:i,color:u,borderColor:f,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(e,r,n,i,a,o){r=r||"normal";var s=this.getData(n),l=this.getDataParams(e,n);return o&&(l.value=o.interpolatedValue),null!=i&&z(l.value)&&(l.value=l.value[i]),a||(a=s.getItemModel(e).get("normal"===r?["label","formatter"]:[r,"label","formatter"])),ee(a)?(l.status=r,l.dimensionIndex=i,a(l)):U(a)?tc(a,l).replace(sD,function(c,v){var h=v.length,d=v;"["===d.charAt(0)&&"]"===d.charAt(h-1)&&(d=+d.slice(1,h-1));var m=Bs(s,e,d);if(o&&z(o.interpolatedValue)){var p=s.getDimensionIndex(d);p>=0&&(m=o.interpolatedValue[p])}return null!=m?m+"":""}):void 0},t.prototype.getRawValue=function(e,r){return Bs(this.getData(r),e)},t.prototype.formatTooltip=function(e,r,n){},t}();function bm(t){var e,r;return $(t)?t.type&&(r=t):e=t,{text:e,frag:r}}function Va(t){return new uD(t)}var uD=function(){function t(e){this._reset=(e=e||{}).reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return t.prototype.perform=function(e){var a,r=this._upstream,n=e&&e.skip;if(this._dirty&&r){var i=this.context;i.data=i.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!n&&(a=this._plan(this.context));var c,o=f(this._modBy),s=this._modDataCount||0,l=f(e&&e.modBy),u=e&&e.modDataCount||0;function f(y){return!(y>=1)&&(y=1),y}(o!==l||s!==u)&&(a="reset"),(this._dirty||"reset"===a)&&(this._dirty=!1,c=this._doReset(n)),this._modBy=l,this._modDataCount=u;var v=e&&e.step;if(this._dueEnd=r?r._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,d=Math.min(null!=v?this._dueIndex+v:1/0,this._dueEnd);if(!n&&(c||h<d)){var m=this._progress;if(z(m))for(var p=0;p<m.length;p++)this._doProgress(m[p],h,d,l,u);else this._doProgress(m,h,d,l,u)}this._dueIndex=d,this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:d}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(e,r,n,i,a){xm.reset(r,n,i,a),this._callingProgress=e,this._callingProgress({start:r,end:n,count:n-r,next:xm.next},this.context)},t.prototype._doReset=function(e){var r,n;this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!e&&this._reset&&((r=this._reset(this.context))&&r.progress&&(n=r.forceFirstProgress,r=r.progress),z(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},t}(),xm=function(){var t,e,r,n,i,a={reset:function(l,u,f,c){e=l,t=u,r=f,n=c,i=Math.ceil(n/r),a.next=r>1&&n>0?s:o}};return a;function o(){return e<t?e++:null}function s(){var l=e%i*r+Math.ceil(e/i),u=e>=t?null:l<n?l:e;return e++,u}}();function Fs(t,e){var r=e&&e.type;return"ordinal"===r?t:("time"===r&&!ge(t)&&null!=t&&"-"!==t&&(t=+Ar(t)),null==t||""===t?NaN:Number(t))}ae({number:function(t){return parseFloat(t)},time:function(t){return+Ar(t)},trim:function(t){return U(t)?Ut(t):t}});var vD=function(){function t(e,r){var n="desc"===e;this._resultLT=n?1:-1,null==r&&(r=n?"min":"max"),this._incomparable="min"===r?-1/0:1/0}return t.prototype.evaluate=function(e,r){var n=ge(e)?e:Pr(e),i=ge(r)?r:Pr(r),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=U(e),l=U(r);s&&(n=l?e:0),l&&(i=s?r:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},t}(),pD=function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(e){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(e){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(e,r){},t.prototype.retrieveValueFromItem=function(e,r){},t.prototype.convertValue=function(e,r){return Fs(e,r)},t}();function mD(t){return yc(t.sourceFormat)||ut(""),t.data}function yD(t){var e=t.sourceFormat,r=t.data;if(yc(e)||ut(""),e===Ke){for(var i=[],a=0,o=r.length;a<o;a++)i.push(r[a].slice());return i}if(e===kt){for(i=[],a=0,o=r.length;a<o;a++)i.push(k({},r[a]));return i}}function _D(t,e,r){if(null!=r){if(ge(r)||!isNaN(r)&&!J(e,r))return t[r];if(J(e,r))return e[r]}}function CD(t){return se(t)}var wm=ae();function xD(t,e,r,n){e.length||ut(""),$(t)||ut("");var o=wm.get(t.type);o||ut("");var s=K(e,function(f){return function gD(t,e){var r=new pD,n=t.data,i=r.sourceFormat=t.sourceFormat,a=t.startIndex;t.seriesLayoutBy!==yr&&ut("");var s=[],l={},u=t.dimensionsDefine;if(u)D(u,function(m,p){var g=m.name,y={index:p,name:g,displayName:m.displayName};s.push(y),null!=g&&(J(l,g)&&ut(""),l[g]=y)});else for(var f=0;f<t.dimensionsDetectedCount;f++)s.push({index:f});var c=ym(i,yr);e.__isBuiltIn&&(r.getRawDataItem=function(m){return c(n,a,s,m)},r.getRawData=he(mD,null,t)),r.cloneRawData=he(yD,null,t);var v=Cm(i,yr);r.count=he(v,null,n,a,s);var h=Sm(i);r.retrieveValue=function(m,p){var g=c(n,a,s,m);return d(g,p)};var d=r.retrieveValueFromItem=function(m,p){if(null!=m){var g=s[p];if(g)return h(m,p,g.name)}};return r.getDimensionInfo=he(_D,null,s,l),r.cloneAllDimensionInfo=he(CD,null,s),r}(f,o)});return K(He(o.transform({upstream:s[0],upstreamList:s,config:se(t.config)})),function(f,c){$(f)||ut(""),f.data||ut(""),yc(sm(f.data))||ut("");var d,m=e[0];if(m&&0===c&&!f.dimensions){var p=m.startIndex;p&&(f.data=m.data.slice(0,p).concat(f.data)),d={seriesLayoutBy:yr,sourceHeader:p,dimensions:m.metaRawOption.dimensions}}else d={seriesLayoutBy:yr,sourceHeader:0,dimensions:f.dimensions};return vc(f.data,d,null)})}function yc(t){return t===Ke||t===kt}var _c,Ns="undefined",TD=typeof Uint32Array===Ns?Array:Uint32Array,wD=typeof Uint16Array===Ns?Array:Uint16Array,Dm=typeof Int32Array===Ns?Array:Int32Array,Mm=typeof Float64Array===Ns?Array:Float64Array,Lm={float:Mm,int:Dm,ordinal:Array,number:Array,time:Mm};function Wi(t){return t>65535?TD:wD}function qi(){return[1/0,-1/0]}function DD(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function Am(t,e,r,n,i){var a=Lm[r||"float"];if(i){var o=t[e],s=o&&o.length;if(s!==n){for(var l=new a(n),u=0;u<s;u++)l[u]=o[u];t[e]=l}}else t[e]=new a(n)}var MD=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=ae()}return t.prototype.initData=function(e,r,n){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=e.getSource(),a=this.defaultDimValueGetter=_c[i.sourceFormat];this._dimValueGetter=n||a,this._rawExtent=[],fm(i),this._dimensions=K(r,function(s){return{type:s.type,property:s.property}}),this._initDataFromProvider(0,e.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(e,r){var n=this._calcDimNameToIdx,i=this._dimensions,a=n.get(e);if(null!=a){if(i[a].type===r)return a}else a=i.length;return i[a]={type:r},n.set(e,a),this._chunks[a]=new Lm[r||"float"](this._rawCount),this._rawExtent[a]=[1/0,-1/0],a},t.prototype.collectOrdinalMeta=function(e,r){var n=this._chunks[e],i=this._dimensions[e],a=this._rawExtent,o=i.ordinalOffset||0,s=n.length;0===o&&(a[e]=[1/0,-1/0]);for(var l=a[e],u=o;u<s;u++){var f=n[u]=r.parseAndCollect(n[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1]))}i.ordinalMeta=r,i.ordinalOffset=s,i.type="ordinal"},t.prototype.getOrdinalMeta=function(e){return this._dimensions[e].ordinalMeta},t.prototype.getDimensionProperty=function(e){var r=this._dimensions[e];return r&&r.property},t.prototype.appendData=function(e){var r=this._provider,n=this.count();r.appendData(e);var i=r.count();return r.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},t.prototype.appendValues=function(e,r){for(var n=this._chunks,i=this._dimensions,a=i.length,o=this._rawExtent,s=this.count(),l=s+Math.max(e.length,r||0),u=0;u<a;u++)Am(n,u,i[u].type,l,!0);for(var c=[],v=s;v<l;v++)for(var h=v-s,d=0;d<a;d++){var m=_c.arrayRows.call(this,e[h]||c,i[d].property,h,d);n[d][v]=m;var p=o[d];m<p[0]&&(p[0]=m),m>p[1]&&(p[1]=m)}return this._rawCount=this._count=l,{start:s,end:l}},t.prototype._initDataFromProvider=function(e,r,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=K(o,function(y){return y.property}),f=0;f<s;f++){var c=o[f];l[f]||(l[f]=qi()),Am(a,f,c.type,r,n)}if(i.fillStorage)i.fillStorage(e,r,a,l);else for(var v=[],h=e;h<r;h++){v=i.getItem(h,v);for(var d=0;d<s;d++){var m=a[d],p=this._dimValueGetter(v,u[d],h,d);m[h]=p;var g=l[d];p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=r,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(e,r){if(!(r>=0&&r<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(r)]:NaN},t.prototype.getValues=function(e,r){var n=[],i=[];if(null==r){r=e,e=[];for(var a=0;a<this._dimensions.length;a++)i.push(a)}else i=e;a=0;for(var o=i.length;a<o;a++)n.push(this.get(i[a],r));return n},t.prototype.getByRawIndex=function(e,r){if(!(r>=0&&r<this._rawCount))return NaN;var n=this._chunks[e];return n?n[r]:NaN},t.prototype.getSum=function(e){var n=0;if(this._chunks[e])for(var i=0,a=this.count();i<a;i++){var o=this.get(e,i);isNaN(o)||(n+=o)}return n},t.prototype.getMedian=function(e){var r=[];this.each([e],function(a){isNaN(a)||r.push(a)});var n=r.sort(function(a,o){return a-o}),i=this.count();return 0===i?0:i%2==1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},t.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var r=this._indices,n=r[e];if(null!=n&&n<this._count&&n===e)return e;for(var i=0,a=this._count-1;i<=a;){var o=(i+a)/2|0;if(r[o]<e)i=o+1;else{if(!(r[o]>e))return o;a=o-1}}return-1},t.prototype.getIndices=function(){var e,r=this._indices;if(r){var i=this._count;if((n=r.constructor)===Array){e=new n(i);for(var a=0;a<i;a++)e[a]=r[a]}else e=new n(r.buffer,0,i)}else{var n;for(e=new(n=Wi(this._rawCount))(this.count()),a=0;a<e.length;a++)e[a]=a}return e},t.prototype.filter=function(e,r){if(!this._count)return this;for(var n=this.clone(),i=n.count(),o=new(Wi(n._rawCount))(i),s=[],l=e.length,u=0,f=e[0],c=n._chunks,v=0;v<i;v++){var h=void 0,d=n.getRawIndex(v);if(0===l)h=r(v);else if(1===l)h=r(c[f][d],v);else{for(var p=0;p<l;p++)s[p]=c[e[p]][d];s[p]=v,h=r.apply(null,s)}h&&(o[u++]=d)}return u<i&&(n._indices=o),n._count=u,n._extent=[],n._updateGetRawIdx(),n},t.prototype.selectRange=function(e){var r=this.clone(),n=r._count;if(!n)return this;var i=de(e),a=i.length;if(!a)return this;var o=r.count(),l=new(Wi(r._rawCount))(o),u=0,f=i[0],c=e[f][0],v=e[f][1],h=r._chunks,d=!1;if(!r._indices){var m=0;if(1===a){for(var p=h[i[0]],g=0;g<n;g++)((y=p[g])>=c&&y<=v||isNaN(y))&&(l[u++]=m),m++;d=!0}else if(2===a){p=h[i[0]];var _=h[i[1]],C=e[i[1]][0],b=e[i[1]][1];for(g=0;g<n;g++){var S=_[g];((y=p[g])>=c&&y<=v||isNaN(y))&&(S>=C&&S<=b||isNaN(S))&&(l[u++]=m),m++}d=!0}}if(!d)if(1===a)for(g=0;g<o;g++){var x=r.getRawIndex(g);((y=h[i[0]][x])>=c&&y<=v||isNaN(y))&&(l[u++]=x)}else for(g=0;g<o;g++){for(var T=!0,w=(x=r.getRawIndex(g),0);w<a;w++){var y,L=i[w];((y=h[L][x])<e[L][0]||y>e[L][1])&&(T=!1)}T&&(l[u++]=r.getRawIndex(g))}return u<o&&(r._indices=l),r._count=u,r._extent=[],r._updateGetRawIdx(),r},t.prototype.map=function(e,r){var n=this.clone(e);return this._updateDims(n,e,r),n},t.prototype.modify=function(e,r){this._updateDims(this,e,r)},t.prototype._updateDims=function(e,r,n){for(var i=e._chunks,a=[],o=r.length,s=e.count(),l=[],u=e._rawExtent,f=0;f<r.length;f++)u[r[f]]=qi();for(var c=0;c<s;c++){for(var v=e.getRawIndex(c),h=0;h<o;h++)l[h]=i[r[h]][v];l[o]=c;var d=n&&n.apply(null,l);if(null!=d)for("object"!=typeof d&&(a[0]=d,d=a),f=0;f<d.length;f++){var m=r[f],p=d[f],g=u[m],y=i[m];y&&(y[v]=p),p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}}},t.prototype.lttbDownSample=function(e,r){var f,c,v,n=this.clone([e],!0),a=n._chunks[e],o=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),h=new(Wi(this._rawCount))(Math.min(2*(Math.ceil(o/l)+2),o));h[s++]=u;for(var d=1;d<o-1;d+=l){for(var m=Math.min(d+l,o-1),p=Math.min(d+2*l,o),g=(p+m)/2,y=0,_=m;_<p;_++){var b=a[C=this.getRawIndex(_)];isNaN(b)||(y+=b)}y/=p-m;var S=d,x=Math.min(d+l,o),T=d-1,w=a[u];f=-1,v=S;var L=-1,A=0;for(_=S;_<x;_++){var C;b=a[C=this.getRawIndex(_)],isNaN(b)?(A++,L<0&&(L=C)):(c=Math.abs((T-g)*(b-w)-(T-_)*(y-w)))>f&&(f=c,v=C)}A>0&&A<x-S&&(h[s++]=Math.min(L,v),v=Math.max(L,v)),h[s++]=v,u=v}return h[s++]=this.getRawIndex(o-1),n._count=s,n._indices=h,n.getRawIndex=this._getRawIdx,n},t.prototype.minmaxDownSample=function(e,r){for(var n=this.clone([e],!0),i=n._chunks,a=Math.floor(1/r),o=i[e],s=this.count(),l=new(Wi(this._rawCount))(2*Math.ceil(s/a)),u=0,f=0;f<s;f+=a){var c=f,v=o[this.getRawIndex(c)],h=f,d=o[this.getRawIndex(h)],m=a;f+a>s&&(m=s-f);for(var p=0;p<m;p++){var y=o[this.getRawIndex(f+p)];y<v&&(v=y,c=f+p),y>d&&(d=y,h=f+p)}var _=this.getRawIndex(c),C=this.getRawIndex(h);c<h?(l[u++]=_,l[u++]=C):(l[u++]=C,l[u++]=_)}return n._count=u,n._indices=l,n._updateGetRawIdx(),n},t.prototype.downSample=function(e,r,n,i){for(var a=this.clone([e],!0),o=a._chunks,s=[],l=Math.floor(1/r),u=o[e],f=this.count(),c=a._rawExtent[e]=[1/0,-1/0],v=new(Wi(this._rawCount))(Math.ceil(f/l)),h=0,d=0;d<f;d+=l){l>f-d&&(s.length=l=f-d);for(var m=0;m<l;m++){var p=this.getRawIndex(d+m);s[m]=u[p]}var g=n(s),y=this.getRawIndex(Math.min(d+i(s,g)||0,f-1));u[y]=g,g<c[0]&&(c[0]=g),g>c[1]&&(c[1]=g),v[h++]=y}return a._count=h,a._indices=v,a._updateGetRawIdx(),a},t.prototype.each=function(e,r){if(this._count)for(var n=e.length,i=this._chunks,a=0,o=this.count();a<o;a++){var s=this.getRawIndex(a);switch(n){case 0:r(a);break;case 1:r(i[e[0]][s],a);break;case 2:r(i[e[0]][s],i[e[1]][s],a);break;default:for(var l=0,u=[];l<n;l++)u[l]=i[e[l]][s];u[l]=a,r.apply(null,u)}}},t.prototype.getDataExtent=function(e){var r=this._chunks[e],n=[1/0,-1/0];if(!r)return n;var o,i=this.count();if(!this._indices)return this._rawExtent[e].slice();if(o=this._extent[e])return o.slice();for(var s=(o=n)[0],l=o[1],u=0;u<i;u++){var c=r[this.getRawIndex(u)];c<s&&(s=c),c>l&&(l=c)}return this._extent[e]=o=[s,l],o},t.prototype.getRawDataItem=function(e){var r=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],i=this._chunks,a=0;a<i.length;a++)n.push(i[a][r]);return n},t.prototype.clone=function(e,r){var n=new t,i=this._chunks,a=e&&qt(e,function(s,l){return s[l]=!0,s},{});if(a)for(var o=0;o<i.length;o++)n._chunks[o]=a[o]?DD(i[o]):i[o];else n._chunks=i;return this._copyCommonProps(n),r||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},t.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=se(this._extent),e._rawExtent=se(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,r=void 0;if(e===Array){var n=this._indices.length;r=new e(n);for(var i=0;i<n;i++)r[i]=this._indices[i]}else r=new e(this._indices);return r}return null},t.prototype._getRawIdxIdentity=function(e){return e},t.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function e(r,n,i,a){return Fs(r[a],this._dimensions[a])}_c={arrayRows:e,objectRows:function(r,n,i,a){return Fs(r[n],this._dimensions[a])},keyedColumns:e,original:function(r,n,i,a){var o=r&&(null==r.value?r:r.value);return Fs(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}}(),t}();const Cc=MD;var AD=function(){function t(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(e,r){this._sourceList=e,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var i,a,e=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length;if(zs(e)){var o=e,s=void 0,l=void 0,u=void 0;if(n){var f=r[0];f.prepareSource(),s=(u=f.getSource()).data,l=u.sourceFormat,a=[f._getVersionSign()]}else l=nt(s=o.get("data",!0))?Nr:Dt,a=[];var c=this._getSourceMetaRawOption()||{},v=u&&u.metaRawOption||{},h=Q(c.seriesLayoutBy,v.seriesLayoutBy)||null,d=Q(c.sourceHeader,v.sourceHeader),m=Q(c.dimensions,v.dimensions);i=h!==v.seriesLayoutBy||!!d!=!!v.sourceHeader||m?[vc(s,{seriesLayoutBy:h,sourceHeader:d,dimensions:m},l)]:[]}else{var g=e;if(n){var y=this._applyTransform(r);i=y.sourceList,a=y.upstreamSignList}else i=[vc(g.get("source",!0),this._getSourceMetaRawOption(),null)],a=[]}this._setLocalSource(i,a)},t.prototype._applyTransform=function(e){var r=this._sourceHost,n=r.get("transform",!0),i=r.get("fromTransformResult",!0);null!=i&&1!==e.length&&Pm("");var o,s=[],l=[];return D(e,function(u){u.prepareSource();var f=u.getSource(i||0);null!=i&&!f&&Pm(""),s.push(f),l.push(u._getVersionSign())}),n?o=function bD(t,e){var n=He(t),i=n.length;i||ut("");for(var o=0,s=i;o<s;o++)e=xD(n[o],e),o!==s-1&&(e.length=Math.max(e.length,1));return e}(n,s):null!=i&&(o=[Kw(s[0])]),{sourceList:o,upstreamSignList:l}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),r=0;r<e.length;r++){var n=e[r];if(n._isDirty()||this._upstreamSignList[r]!==n._getVersionSign())return!0}},t.prototype.getSource=function(e){var r=this._sourceList[e=e||0];if(!r){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return r},t.prototype.getSharedDataStore=function(e){var r=e.makeStoreSchema();return this._innerGetDataStore(r.dimensions,e.source,r.hash)},t.prototype._innerGetDataStore=function(e,r,n){var a=this._storeList,o=a[0];o||(o=a[0]={});var s=o[n];if(!s){var l=this._getUpstreamSourceManagers()[0];zs(this._sourceHost)&&l?s=l._innerGetDataStore(e,r,n):(s=new Cc).initData(new gm(r,e.length),e),o[n]=s}return s},t.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(zs(e)){var r=sc(e);return r?[r.getSourceManager()]:[]}return K(function _w(t){return t.get("transform",!0)||t.get("fromTransformResult",!0)?Ma(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},on).models:[]}(e),function(n){return n.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var r,n,i,e=this._sourceHost;if(zs(e))r=e.get("seriesLayoutBy",!0),n=e.get("sourceHeader",!0),i=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=e;r=a.get("seriesLayoutBy",!0),n=a.get("sourceHeader",!0),i=a.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:n,dimensions:i}},t}();function zs(t){return"series"===t.mainType}function Pm(t){throw new Error(t)}function Rm(t){var e=t.lineHeight;return null==e?"line-height:1":"line-height:"+at(e+"")+"px"}function Em(t,e){var r=t.color||ue.color.tertiary,n=t.fontSize||12,i=t.fontWeight||"400",a=t.color||ue.color.secondary,o=t.fontSize||14,s=t.fontWeight||"900";return"html"===e?{nameStyle:"font-size:"+at(n+"")+"px;color:"+at(r)+";font-weight:"+at(i+""),valueStyle:"font-size:"+at(o+"")+"px;color:"+at(a)+";font-weight:"+at(s+"")}:{nameStyle:{fontSize:n,fill:r,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var RD=[0,10,20,30],ED=["","\n","\n\n","\n\n\n"];function Wa(t,e){return e.type=t,e}function Sc(t){return"section"===t.type}function Im(t){return Sc(t)?ID:kD}function km(t){if(Sc(t)){var e=0,r=t.blocks.length,n=r>1||r>0&&!t.noHeader;return D(t.blocks,function(i){var a=km(i);a>=e&&(e=a+ +(n&&(!a||Sc(i)&&!i.noHeader)))}),e}return 0}function ID(t,e,r,n){var i=e.noHeader,a=function OD(t){return{html:RD[t],richText:ED[t]}}(km(e)),o=[],s=e.blocks||[];ar(!s||z(s)),s=s||[];var l=t.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(J(u,l)){var f=new vD(u[l],null);s.sort(function(m,p){return f.evaluate(m.sortParam,p.sortParam)})}else"seriesDesc"===l&&s.reverse()}D(s,function(m,p){var g=e.valueFormatter,y=Im(m)(g?k(k({},t),{valueFormatter:g}):t,m,p>0?a.html:0,n);null!=y&&o.push(y)});var c="richText"===t.renderMode?o.join(a.richText):bc(n,o.join(""),i?r:a.html);if(i)return c;var v=Jf(e.header,"ordinal",t.useUTC),h=Em(n,t.renderMode).nameStyle,d=Rm(n);return"richText"===t.renderMode?Bm(t,v,h)+a.richText+c:bc(n,'<div style="'+h+";"+d+';">'+at(v)+"</div>"+c,r)}function kD(t,e,r,n){var i=t.renderMode,a=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,f=e.valueFormatter||t.valueFormatter||function(C){return K(C=z(C)?C:[C],function(b,S){return Jf(b,z(h)?h[S]:h,u)})};if(!a||!o){var c=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||ue.color.secondary,i),v=a?"":Jf(l,"ordinal",u),h=e.valueType,d=o?[]:f(e.value,e.dataIndex),m=!s||!a,p=!s&&a,g=Em(n,i),y=g.nameStyle,_=g.valueStyle;return"richText"===i?(s?"":c)+(a?"":Bm(t,v,y))+(o?"":function ND(t,e,r,n,i){var a=[i];return r&&a.push({padding:[0,0,0,n?10:20],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(z(e)?e.join(" "):e,a)}(t,d,m,p,_)):bc(n,(s?"":c)+(a?"":function BD(t,e,r){return'<span style="'+r+";"+(e?"margin-left:2px":"")+'">'+at(t)+"</span>"}(v,!s,y))+(o?"":function FD(t,e,r,n){return'<span style="'+(e?"float:right;margin-left:"+(r?"10px":"20px"):"")+";"+n+'">'+K(t=z(t)?t:[t],function(o){return at(o)}).join("&nbsp;&nbsp;")+"</span>"}(d,m,p,_)),r)}}function Om(t,e,r,n,i,a){if(t)return Im(t)({useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,a)}function bc(t,e,r){return'<div style="margin: '+r+"px 0 0;"+Rm(t)+';">'+e+'<div style="clear:both"></div></div>'}function Bm(t,e,r){return t.markupStyleCreator.wrapRichTextStyle(e,r)}function Fm(t,e){return t.get("padding")??("richText"===e?[8,10]:10)}var xc=function(){function t(){this.richTextStyles={},this._nextStyleNameId=$d()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(e,r,n){var i="richText"===n?this._generateStyleName():null,a=Pg({color:r,type:e,renderMode:n,markerId:i});return U(a)?a:(this.richTextStyles[i]=a.style,a.content)},t.prototype.wrapRichTextStyle=function(e,r){var n={};z(r)?D(r,function(a){return k(n,a)}):k(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+e+"}"},t}();var hn=ye();function Hs(t,e){return t.getName(e)||t.getId(e)}var Gs=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return(0,X.C6)(e,t),e.prototype.init=function(r,n,i){this.seriesIndex=this.componentIndex,this.dataTask=Va({count:qD,reset:UD}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i),(hn(this).sourceManager=new AD(this)).prepareSource();var o=this.getInitialData(r,i);zm(o,this),this.dataTask.context.data=o,hn(this).dataBeforeProcessed=o,Nm(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(r,n){var i=Es(this),a=i?oc(r):{},o=this.subType;xe.hasClass(o)&&(o+="Series"),Ce(r,n.getTheme().get(this.subType)),Ce(r,this.getDefaultOption()),Ku(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&Hi(r,a,i)},e.prototype.mergeOption=function(r,n){r=Ce(this.option,r,!0),this.fillDataTextStyle(r.data);var i=Es(this);i&&Hi(this.option,r,i);var a=hn(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);zm(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,hn(this).dataBeforeProcessed=o,Nm(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(r){if(r&&!nt(r))for(var n=["show"],i=0;i<r.length;i++)r[i]&&r[i].label&&Ku(r[i],"label",n)},e.prototype.getInitialData=function(r,n){},e.prototype.appendData=function(r){this.getRawData().appendData(r.data)},e.prototype.getData=function(r){var n=Tc(this);if(n){var i=n.context.data;return null!=r&&i.getLinkedData?i.getLinkedData(r):i}return hn(this).data},e.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},e.prototype.setData=function(r){var n=Tc(this);if(n){var i=n.context;i.outputData=r,n!==this.dataTask&&(i.data=r)}hn(this).data=r},e.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return ae(r)},e.prototype.getSourceManager=function(){return hn(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return hn(this).dataBeforeProcessed},e.prototype.getColorBy=function(){return this.get("colorBy")||"series"},e.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},e.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},e.prototype.indicesOfNearest=function(r,n,i,a){var o=this.getData(),s=this.coordinateSystem,l=s&&s.getAxis(r);if(!s||!l)return[];var u=l.dataToCoord(i);null==a&&(a=1/0);var f=[],c=1/0,v=-1,h=0;return o.each(n,function(d,m){var p=l.dataToCoord(d),g=u-p,y=Math.abs(g);y<=a&&((y<c||y===c&&g>=0&&v<0)&&(c=y,v=g,h=0),g===v&&(f[h++]=m))}),f.length=h,f},e.prototype.formatTooltip=function(r,n,i){return function HD(t){var f,c,v,h,e=t.series,r=t.dataIndex,n=t.multipleSeries,i=e.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=e.getRawValue(r),l=z(s),u=function zD(t,e){return Oa(t.getData().getItemVisual(e,"style")[t.visualDrawType])}(e,r);if(o>1||l&&!o){var d=function GD(t,e,r,n,i){var a=e.getData(),o=qt(t,function(c,v,h){var d=a.getDimensionInfo(h);return c||d&&!1!==d.tooltip&&null!=d.displayName},!1),s=[],l=[],u=[];function f(c,v){var h=a.getDimensionInfo(v);!h||!1===h.otherDims.tooltip||(o?u.push(Wa("nameValue",{markerType:"subItem",markerColor:i,name:h.displayName,value:c,valueType:h.type})):(s.push(c),l.push(h.type)))}return n.length?D(n,function(c){f(Bs(a,r,c),c)}):D(t,f),{inlineValues:s,inlineValueTypes:l,blocks:u}}(s,e,r,a,u);f=d.inlineValues,c=d.inlineValueTypes,v=d.blocks,h=d.inlineValues[0]}else if(o){var m=i.getDimensionInfo(a[0]);h=f=Bs(i,r,a[0]),c=m.type}else h=f=l?s[0]:s;var p=Qu(e),g=p&&e.name||"",y=i.getName(r),_=n?g:y;return Wa("section",{header:g,noHeader:n||!p,sortParam:h,blocks:[Wa("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Ut(_),value:f,valueType:c,dataIndex:r})].concat(v||[])})}({series:this,dataIndex:r,multipleSeries:n})},e.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(oe.node&&(!r||!r.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(r,n,i){var a=this.ecModel,o=uc.prototype.getColorFromPalette.call(this,r,n,i);return o||(o=a.getColorFromPalette(r,n,i)),o},e.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},e.prototype.unselect=function(r,n){var i=this.option.selectedMap;if(i){var a=this.option.selectedMode,o=this.getData(n);if("series"===a||"all"===i)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var s=0;s<r.length;s++){var u=Hs(o,r[s]);i[u]=!1,this._selectedDataIndicesMap[u]=-1}}},e.prototype.toggleSelect=function(r,n){for(var i=[],a=0;a<r.length;a++)i[0]=r[a],this.isSelected(r[a],n)?this.unselect(i,n):this.select(i,n)},e.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,n=de(r),i=[],a=0;a<n.length;a++){var o=r[n[a]];o>=0&&i.push(o)}return i},e.prototype.isSelected=function(r,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return("all"===i||i[Hs(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var r=this.option.universalTransition;return!!r&&(!0===r||r&&r.enabled)},e.prototype._innerSelect=function(r,n){var i,a,o=this.option,s=o.selectedMode,l=n.length;if(s&&l)if("series"===s)o.selectedMap="all";else if("multiple"===s){$(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var c=n[f];u[v=Hs(r,c)]=!0,this._selectedDataIndicesMap[v]=r.getRawIndex(c)}}else if("single"===s||!0===s){var h=n[l-1],v=Hs(r,h);o.selectedMap=((i={})[v]=!0,i),this._selectedDataIndicesMap=((a={})[v]=r.getRawIndex(h),a)}},e.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var n=[];r.hasItemOption&&r.each(function(i){var a=r.getRawDataItem(i);a&&a.selected&&n.push(i)}),n.length>0&&this._innerSelect(r,n)}},e.registerClass=function(r){return xe.registerClass(r)},e.protoInitialize=function(){var r=e.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"}(),e}(xe);function Nm(t){var e=t.name;Qu(t)||(t.name=function WD(t){var e=t.getRawData(),r=e.mapDimensionsAll("seriesName"),n=[];return D(r,function(i){var a=e.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}(t)||e)}function qD(t){return t.model.getRawData().count()}function UD(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),YD}function YD(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function zm(t,e){D(Pv(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(r){t.wrapMethod(r,Ae(XD,e))})}function XD(t,e){var r=Tc(t);return r&&r.setOutputEnd((e||this).count()),e}function Tc(t){var e=(t.ecModel||{}).scheduler,r=e&&e.getPipeline(t.uid);if(r){var n=r.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(t.uid))}return n}}Wt(Gs,lD),Wt(Gs,uc),sp(Gs,xe);const vn=Gs;var wc=function(){function t(){this.group=new Tt,this.uid=xs("viewComponent")}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,n,i){},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,n,i){},t.prototype.updateLayout=function(e,r,n,i){},t.prototype.updateVisual=function(e,r,n,i){},t.prototype.toggleBlurSeries=function(e,r,n){},t.prototype.eachRendered=function(e){var r=this.group;r&&r.traverse(e)},t}();tf(wc),ss(wc);const Bt=wc;var Ui=Un.CMD,ZD=[[],[],[]],Hm=Math.sqrt,$D=Math.atan2,Dc=Math.sqrt,Vs=Math.sin,Ws=Math.cos,qa=Math.PI;function Gm(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Mc(t,e){return(t[0]*e[0]+t[1]*e[1])/(Gm(t)*Gm(e))}function Vm(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(Mc(t,e))}function Wm(t,e,r,n,i,a,o,s,l,u,f){var c=l*(qa/180),v=Ws(c)*(t-r)/2+Vs(c)*(e-n)/2,h=-1*Vs(c)*(t-r)/2+Ws(c)*(e-n)/2,d=v*v/(o*o)+h*h/(s*s);d>1&&(o*=Dc(d),s*=Dc(d));var m=(i===a?-1:1)*Dc((o*o*(s*s)-o*o*(h*h)-s*s*(v*v))/(o*o*(h*h)+s*s*(v*v)))||0,p=m*o*h/s,g=m*-s*v/o,y=(t+r)/2+Ws(c)*p-Vs(c)*g,_=(e+n)/2+Vs(c)*p+Ws(c)*g,C=Vm([1,0],[(v-p)/o,(h-g)/s]),b=[(v-p)/o,(h-g)/s],S=[(-1*v-p)/o,(-1*h-g)/s],x=Vm(b,S);if(Mc(b,S)<=-1&&(x=qa),Mc(b,S)>=1&&(x=0),x<0){var T=Math.round(x/qa*1e6)/1e6;x=2*qa+T%2*qa}f.addData(u,y,_,o,s,C,x,c,a)}var eM=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,tM=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,qm=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,X.C6)(e,t),e.prototype.applyTransform=function(r){},e}(Se);function Um(t){return null!=t.setData}function Ym(t,e){var r=function rM(t){var e=new Un;if(!t)return e;var o,r=0,n=0,i=r,a=n,s=Un.CMD,l=t.match(eM);if(!l)return e;for(var u=0;u<l.length;u++){for(var f=l[u],c=f.charAt(0),v=void 0,h=f.match(tM)||[],d=h.length,m=0;m<d;m++)h[m]=parseFloat(h[m]);for(var p=0;p<d;){var g=void 0,y=void 0,_=void 0,C=void 0,b=void 0,S=void 0,x=void 0,T=r,w=n,L=void 0,A=void 0;switch(c){case"l":r+=h[p++],n+=h[p++],e.addData(v=s.L,r,n);break;case"L":r=h[p++],n=h[p++],e.addData(v=s.L,r,n);break;case"m":r+=h[p++],n+=h[p++],e.addData(v=s.M,r,n),i=r,a=n,c="l";break;case"M":r=h[p++],n=h[p++],e.addData(v=s.M,r,n),i=r,a=n,c="L";break;case"h":r+=h[p++],e.addData(v=s.L,r,n);break;case"H":r=h[p++],e.addData(v=s.L,r,n);break;case"v":n+=h[p++],e.addData(v=s.L,r,n);break;case"V":n=h[p++],e.addData(v=s.L,r,n);break;case"C":e.addData(v=s.C,h[p++],h[p++],h[p++],h[p++],h[p++],h[p++]),r=h[p-2],n=h[p-1];break;case"c":e.addData(v=s.C,h[p++]+r,h[p++]+n,h[p++]+r,h[p++]+n,h[p++]+r,h[p++]+n),r+=h[p-2],n+=h[p-1];break;case"S":g=r,y=n,L=e.len(),A=e.data,o===s.C&&(g+=r-A[L-4],y+=n-A[L-3]),T=h[p++],w=h[p++],r=h[p++],n=h[p++],e.addData(v=s.C,g,y,T,w,r,n);break;case"s":g=r,y=n,L=e.len(),A=e.data,o===s.C&&(g+=r-A[L-4],y+=n-A[L-3]),T=r+h[p++],w=n+h[p++],r+=h[p++],n+=h[p++],e.addData(v=s.C,g,y,T,w,r,n);break;case"Q":T=h[p++],w=h[p++],r=h[p++],n=h[p++],e.addData(v=s.Q,T,w,r,n);break;case"q":T=h[p++]+r,w=h[p++]+n,r+=h[p++],n+=h[p++],e.addData(v=s.Q,T,w,r,n);break;case"T":g=r,y=n,L=e.len(),A=e.data,o===s.Q&&(g+=r-A[L-4],y+=n-A[L-3]),r=h[p++],n=h[p++],e.addData(v=s.Q,g,y,r,n);break;case"t":g=r,y=n,L=e.len(),A=e.data,o===s.Q&&(g+=r-A[L-4],y+=n-A[L-3]),r+=h[p++],n+=h[p++],e.addData(v=s.Q,g,y,r,n);break;case"A":_=h[p++],C=h[p++],b=h[p++],S=h[p++],x=h[p++],Wm(T=r,w=n,r=h[p++],n=h[p++],S,x,_,C,b,v=s.A,e);break;case"a":_=h[p++],C=h[p++],b=h[p++],S=h[p++],x=h[p++],Wm(T=r,w=n,r+=h[p++],n+=h[p++],S,x,_,C,b,v=s.A,e)}}("z"===c||"Z"===c)&&(e.addData(v=s.Z),r=i,n=a),o=v}return e.toStatic(),e}(t),n=k({},e);return n.buildPath=function(i){var o,a=Um(i);a&&i.canSave()?(i.appendPath(r),(o=i.getContext())&&i.rebuildPath(o,1)):(o=a?i.getContext():i)&&r.rebuildPath(o,1)},n.applyTransform=function(i){(function KD(t,e){if(e){var i,a,o,s,l,u,r=t.data,n=t.len(),f=Ui.M,c=Ui.C,v=Ui.L,h=Ui.R,d=Ui.A,m=Ui.Q;for(o=0,s=0;o<n;){switch(i=r[o++],s=o,a=0,i){case f:case v:a=1;break;case c:a=3;break;case m:a=2;break;case d:var p=e[4],g=e[5],y=Hm(e[0]*e[0]+e[1]*e[1]),_=Hm(e[2]*e[2]+e[3]*e[3]),C=$D(-e[1]/_,e[0]/y);r[o]*=y,r[o++]+=p,r[o]*=_,r[o++]+=g,r[o++]*=y,r[o++]*=_,r[o++]+=C,r[o++]+=C,s=o+=2;break;case h:u[0]=r[o++],u[1]=r[o++],Ct(u,u,e),r[s++]=u[0],r[s++]=u[1],u[0]+=r[o++],u[1]+=r[o++],Ct(u,u,e),r[s++]=u[0],r[s++]=u[1]}for(l=0;l<a;l++){var b=ZD[l];b[0]=r[o++],b[1]=r[o++],Ct(b,b,e),r[s++]=b[0],r[s++]=b[1]}}t.increaseVersion()}})(r,i),this.dirtyShape()},n}var oM=function(){return function t(){this.cx=0,this.cy=0,this.r=0}}(),Xm=function(t){function e(r){return t.call(this,r)||this}return(0,X.C6)(e,t),e.prototype.getDefaultShape=function(){return new oM},e.prototype.buildPath=function(r,n){r.moveTo(n.cx+n.r,n.cy),r.arc(n.cx,n.cy,n.r,0,2*Math.PI)},e}(Se);Xm.prototype.type="circle";const qs=Xm;var sM=function(){return function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}}(),jm=function(t){function e(r){return t.call(this,r)||this}return(0,X.C6)(e,t),e.prototype.getDefaultShape=function(){return new sM},e.prototype.buildPath=function(r,n){var i=.5522848,a=n.cx,o=n.cy,s=n.rx,l=n.ry,u=s*i,f=l*i;r.moveTo(a-s,o),r.bezierCurveTo(a-s,o-f,a-u,o-l,a,o-l),r.bezierCurveTo(a+u,o-l,a+s,o-f,a+s,o),r.bezierCurveTo(a+s,o+f,a+u,o+l,a,o+l),r.bezierCurveTo(a-u,o+l,a-s,o+f,a-s,o),r.closePath()},e}(Se);jm.prototype.type="ellipse";const Lc=jm;var Zm=Math.PI,Ac=2*Zm,ii=Math.sin,Yi=Math.cos,lM=Math.acos,Je=Math.atan2,$m=Math.abs,Ua=Math.sqrt,Ya=Math.max,_r=Math.min,tr=1e-4;function Us(t,e,r,n,i,a,o){var s=t-r,l=e-n,u=(o?a:-a)/Ua(s*s+l*l),f=u*l,c=-u*s,v=t+f,h=e+c,d=r+f,m=n+c,p=(v+d)/2,g=(h+m)/2,y=d-v,_=m-h,C=y*y+_*_,b=i-a,S=v*m-d*h,x=(_<0?-1:1)*Ua(Ya(0,b*b*C-S*S)),T=(S*_-y*x)/C,w=(-S*y-_*x)/C,L=(S*_+y*x)/C,A=(-S*y+_*x)/C,R=T-p,M=w-g,E=L-p,I=A-g;return R*R+M*M>E*E+I*I&&(T=L,w=A),{cx:T,cy:w,x0:-f,y0:-c,x1:T*(i/b-1),y1:w*(i/b-1)}}var hM=function(){return function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0}}(),Km=function(t){function e(r){return t.call(this,r)||this}return(0,X.C6)(e,t),e.prototype.getDefaultShape=function(){return new hM},e.prototype.buildPath=function(r,n){!function cM(t,e){var r,n=Ya(e.r,0),i=Ya(e.r0||0,0),a=n>0;if(a||i>0){if(a||(n=i,i=0),i>n){var s=n;n=i,i=s}var l=e.startAngle,u=e.endAngle;if(!isNaN(l)&&!isNaN(u)){var f=e.cx,c=e.cy,v=!!e.clockwise,h=$m(u-l),d=h>Ac&&h%Ac;if(d>tr&&(h=d),n>tr)if(h>Ac-tr)t.moveTo(f+n*Yi(l),c+n*ii(l)),t.arc(f,c,n,l,u,!v),i>tr&&(t.moveTo(f+i*Yi(u),c+i*ii(u)),t.arc(f,c,i,u,l,v));else{var m=void 0,p=void 0,g=void 0,y=void 0,_=void 0,C=void 0,b=void 0,S=void 0,x=void 0,T=void 0,w=void 0,L=void 0,A=void 0,R=void 0,M=void 0,E=void 0,I=n*Yi(l),O=n*ii(l),q=i*Yi(u),W=i*ii(u),H=h>tr;if(H){var V=e.cornerRadius;V&&(r=function fM(t){var e;if(z(t)){var r=t.length;if(!r)return t;e=1===r?[t[0],t[0],0,0]:2===r?[t[0],t[0],t[1],t[1]]:3===r?t.concat(t[2]):t}else e=[t,t,t,t];return e}(V),m=r[0],p=r[1],g=r[2],y=r[3]);var G=$m(n-i)/2;if(_=_r(G,g),C=_r(G,y),b=_r(G,m),S=_r(G,p),w=x=Ya(_,C),L=T=Ya(b,S),(x>tr||T>tr)&&(A=n*Yi(u),R=n*ii(u),M=i*Yi(l),E=i*ii(l),h<Zm)){var N=function uM(t,e,r,n,i,a,o,s){var l=r-t,u=n-e,f=o-i,c=s-a,v=c*l-f*u;if(!(v*v<tr))return[t+(v=(f*(e-a)-c*(t-i))/v)*l,e+v*u]}(I,O,M,E,A,R,q,W);if(N){var ie=I-N[0],De=O-N[1],ht=A-N[0],Mt=R-N[1],vt=1/ii(lM((ie*ht+De*Mt)/(Ua(ie*ie+De*De)*Ua(ht*ht+Mt*Mt)))/2),et=Ua(N[0]*N[0]+N[1]*N[1]);w=_r(x,(n-et)/(vt+1)),L=_r(T,(i-et)/(vt-1))}}}if(H)if(w>tr){var je=_r(g,w),Oe=_r(y,w),re=Us(M,E,I,O,n,je,v),fe=Us(A,R,q,W,n,Oe,v);t.moveTo(f+re.cx+re.x0,c+re.cy+re.y0),w<x&&je===Oe?t.arc(f+re.cx,c+re.cy,w,Je(re.y0,re.x0),Je(fe.y0,fe.x0),!v):(je>0&&t.arc(f+re.cx,c+re.cy,je,Je(re.y0,re.x0),Je(re.y1,re.x1),!v),t.arc(f,c,n,Je(re.cy+re.y1,re.cx+re.x1),Je(fe.cy+fe.y1,fe.cx+fe.x1),!v),Oe>0&&t.arc(f+fe.cx,c+fe.cy,Oe,Je(fe.y1,fe.x1),Je(fe.y0,fe.x0),!v))}else t.moveTo(f+I,c+O),t.arc(f,c,n,l,u,!v);else t.moveTo(f+I,c+O);i>tr&&H?L>tr?(je=_r(m,L),re=Us(q,W,A,R,i,-(Oe=_r(p,L)),v),fe=Us(I,O,M,E,i,-je,v),t.lineTo(f+re.cx+re.x0,c+re.cy+re.y0),L<T&&je===Oe?t.arc(f+re.cx,c+re.cy,L,Je(re.y0,re.x0),Je(fe.y0,fe.x0),!v):(Oe>0&&t.arc(f+re.cx,c+re.cy,Oe,Je(re.y0,re.x0),Je(re.y1,re.x1),!v),t.arc(f,c,i,Je(re.cy+re.y1,re.cx+re.x1),Je(fe.cy+fe.y1,fe.cx+fe.x1),v),je>0&&t.arc(f+fe.cx,c+fe.cy,je,Je(fe.y1,fe.x1),Je(fe.y0,fe.x0),!v))):(t.lineTo(f+q,c+W),t.arc(f,c,i,u,l,v)):t.lineTo(f+q,c+W)}else t.moveTo(f,c);t.closePath()}}}(r,n)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(Se);Km.prototype.type="sector";const Xa=Km;var vM=function(){return function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}}(),Qm=function(t){function e(r){return t.call(this,r)||this}return(0,X.C6)(e,t),e.prototype.getDefaultShape=function(){return new vM},e.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=2*Math.PI;r.moveTo(i+n.r,a),r.arc(i,a,n.r,0,o,!1),r.moveTo(i+n.r0,a),r.arc(i,a,n.r0,0,o,!0)},e}(Se);Qm.prototype.type="ring";const Pc=Qm;function Jm(t,e,r){var n=e.smooth,i=e.points;if(i&&i.length>=2){if(n){var a=function dM(t,e,r,n){var l,u,f,c,i=[],a=[],o=[],s=[];if(n){f=[1/0,1/0],c=[-1/0,-1/0];for(var v=0,h=t.length;v<h;v++)Kr(f,f,t[v]),Qr(c,c,t[v]);Kr(f,f,n[0]),Qr(c,c,n[1])}for(v=0,h=t.length;v<h;v++){var d=t[v];if(r)l=t[v?v-1:h-1],u=t[(v+1)%h];else{if(0===v||v===h-1){i.push(Ev(t[v]));continue}l=t[v-1],u=t[v+1]}Iv(a,u,l),Ao(a,a,e);var m=Po(d,l),p=Po(d,u),g=m+p;0!==g&&(m/=g,p/=g),Ao(o,a,-m),Ao(s,a,p);var y=Jl([],d,o),_=Jl([],d,s);n&&(Qr(y,y,f),Kr(y,y,c),Qr(_,_,f),Kr(_,_,c)),i.push(y),i.push(_)}return r&&i.push(i.shift()),i}(i,n,r,e.smoothConstraint);t.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(r?o:o-1);s++){var l=a[2*s],u=a[2*s+1],f=i[(s+1)%o];t.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{t.moveTo(i[0][0],i[0][1]),s=1;for(var c=i.length;s<c;s++)t.lineTo(i[s][0],i[s][1])}r&&t.closePath()}}var pM=function(){return function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}}(),ey=function(t){function e(r){return t.call(this,r)||this}return(0,X.C6)(e,t),e.prototype.getDefaultShape=function(){return new pM},e.prototype.buildPath=function(r,n){Jm(r,n,!0)},e}(Se);ey.prototype.type="polygon";const Rc=ey;var gM=function(){return function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}}(),ty=function(t){function e(r){return t.call(this,r)||this}return(0,X.C6)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new gM},e.prototype.buildPath=function(r,n){Jm(r,n,!1)},e}(Se);ty.prototype.type="polyline";const ja=ty;var mM={},yM=function(){return function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}}(),ry=function(t){function e(r){return t.call(this,r)||this}return(0,X.C6)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new yM},e.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=Ap(mM,n,this.style);i=l.x1,a=l.y1,o=l.x2,s=l.y2}else i=n.x1,a=n.y1,o=n.x2,s=n.y2;var u=n.percent;0!==u&&(r.moveTo(i,a),u<1&&(o=i*(1-u)+o*u,s=a*(1-u)+s*u),r.lineTo(o,s))},e.prototype.pointAt=function(r){var n=this.shape;return[n.x1*(1-r)+n.x2*r,n.y1*(1-r)+n.y2*r]},e}(Se);ry.prototype.type="line";const Xi=ry;var mt=[],_M=function(){return function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}}();function ny(t,e,r){return null!=t.cpx2||null!=t.cpy2?[(r?ad:Ue)(t.x1,t.cpx1,t.cpx2,t.x2,e),(r?ad:Ue)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(r?ud:$e)(t.x1,t.cpx1,t.x2,e),(r?ud:$e)(t.y1,t.cpy1,t.y2,e)]}var iy=function(t){function e(r){return t.call(this,r)||this}return(0,X.C6)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new _M},e.prototype.buildPath=function(r,n){var i=n.x1,a=n.y1,o=n.x2,s=n.y2,l=n.cpx1,u=n.cpy1,f=n.cpx2,c=n.cpy2,v=n.percent;0!==v&&(r.moveTo(i,a),null==f||null==c?(v<1&&(Wo(i,l,o,v,mt),l=mt[1],o=mt[2],Wo(a,u,s,v,mt),u=mt[1],s=mt[2]),r.quadraticCurveTo(l,u,o,s)):(v<1&&(Vo(i,l,f,o,v,mt),l=mt[1],f=mt[2],o=mt[3],Vo(a,u,c,s,v,mt),u=mt[1],c=mt[2],s=mt[3]),r.bezierCurveTo(l,u,f,c,o,s)))},e.prototype.pointAt=function(r){return ny(this.shape,r,!1)},e.prototype.tangentAt=function(r){var n=ny(this.shape,r,!0);return kv(n,n)},e}(Se);iy.prototype.type="bezier-curve";const Ec=iy;var CM=function(){return function t(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}}(),ay=function(t){function e(r){return t.call(this,r)||this}return(0,X.C6)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new CM},e.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r,0),s=n.startAngle,l=n.endAngle,u=n.clockwise,f=Math.cos(s),c=Math.sin(s);r.moveTo(f*o+i,c*o+a),r.arc(i,a,o,s,l,!u)},e}(Se);ay.prototype.type="arc";const Ys=ay;var SM=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.type="compound",r}return(0,X.C6)(e,t),e.prototype._updatePathDirty=function(){for(var r=this.shape.paths,n=this.shapeChanged(),i=0;i<r.length;i++)n=n||r[i].shapeChanged();n&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],n=this.getGlobalScale(),i=0;i<r.length;i++)r[i].path||r[i].createPathProxy(),r[i].path.setScale(n[0],n[1],r[i].segmentIgnoreThreshold)},e.prototype.buildPath=function(r,n){for(var i=n.paths||[],a=0;a<i.length;a++)i[a].buildPath(r,i[a].shape,!0)},e.prototype.afterBrush=function(){for(var r=this.shape.paths||[],n=0;n<r.length;n++)r[n].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Se.prototype.getBoundingRect.call(this)},e}(Se);const oy=SM;var bM=function(){function t(e){this.colorStops=e||[]}return t.prototype.addColorStop=function(e,r){this.colorStops.push({offset:e,color:r})},t}();const sy=bM;var xM=function(t){function e(r,n,i,a,o,s){var l=t.call(this,o)||this;return l.x=r??0,l.y=n??0,l.x2=i??1,l.y2=a??0,l.type="linear",l.global=s||!1,l}return(0,X.C6)(e,t),e}(sy);const ly=xM;var TM=function(t){function e(r,n,i,a,o){var s=t.call(this,a)||this;return s.x=r??.5,s.y=n??.5,s.r=i??.5,s.type="radial",s.global=o||!1,s}return(0,X.C6)(e,t),e}(sy);const uy=TM;var Ic=Math.min,wM=Math.max,Xs=Math.abs,ai=[0,0],oi=[0,0],Ge=qv(),js=Ge.minTv,Zs=Ge.maxTv,DM=function(){function t(e,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new te;for(n=0;n<2;n++)this._axes[n]=new te;e&&this.fromBoundingRect(e,r)}return t.prototype.fromBoundingRect=function(e,r){var n=this._corners,i=this._axes,a=e.x,o=e.y,s=a+e.width,l=o+e.height;if(n[0].set(a,o),n[1].set(s,o),n[2].set(s,l),n[3].set(a,l),r)for(var u=0;u<4;u++)n[u].transform(r);for(te.sub(i[0],n[1],n[0]),te.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize(),u=0;u<2;u++)this._origin[u]=i[u].dot(n[0])},t.prototype.intersect=function(e,r,n){var i=!0,a=!r;return r&&te.set(r,0,0),Ge.reset(n,!a),!this._intersectCheckOneSide(this,e,a,1)&&(i=!1,a)||!this._intersectCheckOneSide(e,this,a,-1)&&(i=!1,a)||!a&&!Ge.negativeSize&&te.copy(r,i?Ge.useDir?Ge.dirMinTv:js:Zs),i},t.prototype._intersectCheckOneSide=function(e,r,n,i){for(var a=!0,o=0;o<2;o++){var s=e._axes[o];if(e._getProjMinMaxOnAxis(o,e._corners,ai),e._getProjMinMaxOnAxis(o,r._corners,oi),Ge.negativeSize||ai[1]<oi[0]||ai[0]>oi[1]){if(a=!1,Ge.negativeSize||n)return a;var l=Xs(oi[0]-ai[1]),u=Xs(ai[0]-oi[1]);Ic(l,u)>Zs.len()&&te.scale(Zs,s,l<u?-l*i:u*i)}else n||(l=Xs(oi[0]-ai[1]),u=Xs(ai[0]-oi[1]),(Ge.useDir||Ic(l,u)<js.len())&&((l<u||!Ge.bidirectional)&&(te.scale(js,s,l*i),Ge.useDir&&Ge.calcDirMTV()),(l>=u||!Ge.bidirectional)&&(te.scale(js,s,-u*i),Ge.useDir&&Ge.calcDirMTV())))}return a},t.prototype._getProjMinMaxOnAxis=function(e,r,n){for(var i=this._axes[e],a=this._origin,o=r[0].dot(i)+a[e],s=o,l=o,u=1;u<r.length;u++){var f=r[u].dot(i)+a[e];s=Ic(f,s),l=wM(f,l)}n[0]=s+Ge.touchThreshold,n[1]=l-Ge.touchThreshold,Ge.negativeSize=n[1]<n[0]},t}();const fy=DM;var MM=[],LM=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.notClear=!0,r.incremental=!0,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return(0,X.C6)(e,t),e.prototype.traverse=function(r,n){r.call(n,this)},e.prototype.useStyle=function(){this.style={}},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(r,n){n?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},e.prototype.addDisplayables=function(r,n){n=n||!1;for(var i=0;i<r.length;i++)this.addDisplayable(r[i],n)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(r){for(var n=this._cursor;n<this._displayables.length;n++)r&&r(this._displayables[n]);for(n=0;n<this._temporaryDisplayables.length;n++)r&&r(this._temporaryDisplayables[n])},e.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++)(n=this._displayables[r]).parent=this,n.update(),n.parent=null;for(r=0;r<this._temporaryDisplayables.length;r++){var n;(n=this._temporaryDisplayables[r]).parent=this,n.update(),n.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new ne(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var i=this._displayables[n],a=i.getBoundingRect().clone();i.needLocalTransform()&&a.applyTransform(i.getLocalTransform(MM)),r.union(a)}this._rect=r}return this._rect},e.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n);if(this.getBoundingRect().contain(i[0],i[1]))for(var o=0;o<this._displayables.length;o++)if(this._displayables[o].contain(r,n))return!0;return!1},e}(zn);const cy=LM;var kc={},hy=["x","y"],vy=["width","height"];function dy(t){return Se.extend(t)}function py(t,e){return function iM(t,e){var r=Ym(t,e);return function(i){function a(o){var s=i.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return(0,X.C6)(a,i),a}(qm)}(t,e)}function Ft(t,e){kc[t]=e}function Oc(t){if(kc.hasOwnProperty(t))return kc[t]}function $s(t,e,r,n){var i=function nM(t,e){return new qm(Ym(t,e))}(t,e);return r&&("center"===n&&(r=gy(r,i.getBoundingRect())),Fc(i,r)),i}function Bc(t,e,r){var n=new fn({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(i){"center"===r&&n.setStyle(gy(e,{width:i.width,height:i.height}))}});return n}function gy(t,e){var i,r=e.width/e.height,n=t.height*r;return i=n<=t.width?t.height:(n=t.width)/r,{x:t.x+t.width/2-n/2,y:t.y+t.height/2-i/2,width:n,height:i}}var my=function aM(t,e){for(var r=[],n=t.length,i=0;i<n;i++)r.push(t[i].getUpdatedPathProxy(!0));var o=new Se(e);return o.createPathProxy(),o.buildPath=function(s){if(Um(s)){s.appendPath(r);var l=s.getContext();l&&s.rebuildPath(l,1)}},o};function Fc(t,e){if(t.applyTransform){var n=t.getBoundingRect().calculateTransform(e);t.applyTransform(n)}}function Nc(t,e){return Ap(t,t,{lineWidth:e}),t}function PM(t,e){return Pp(t,t,e),t}var RM=Xn;function yy(t,e){for(var r=ua([]);t&&t!==e;)Dn(r,t.getLocalTransform(),r),t=t.parent;return r}function zc(t,e,r){return e&&!Ze(e)&&(e=ts.getLocalTransform(e)),r&&(e=Mn([],e)),Ct([],t,e)}function EM(t,e,r){var n=0===e[4]||0===e[5]||0===e[0]?1:ur(2*e[4]/e[0]),i=0===e[4]||0===e[5]||0===e[2]?1:ur(2*e[4]/e[2]),a=["left"===t?-n:"right"===t?n:0,"top"===t?-i:"bottom"===t?i:0];return a=zc(a,e,r),ur(a[0])>ur(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function _y(t){return!t.isGroup}function kM(t,e,r){if(t&&e){var a=function n(o){var s={};return o.traverse(function(l){_y(l)&&l.anid&&(s[l.anid]=l)}),s}(t);e.traverse(function(o){if(_y(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),Qt(o,l,r,ve(o).dataIndex)}}})}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return function IM(t){return null!=t.shape}(o)&&(s.shape=se(o.shape)),s}}function Cy(t,e){return K(t,function(r){var n=r[0];n=Kt(n,e.x),n=Sa(n,e.x+e.width);var i=r[1];return i=Kt(i,e.y),[n,i=Sa(i,e.y+e.height)]})}function Sy(t,e){var r=Kt(t.x,e.x),n=Sa(t.x+t.width,e.x+e.width),i=Kt(t.y,e.y),a=Sa(t.y+t.height,e.y+e.height);if(n>=r&&a>=i)return{x:r,y:i,width:n-r,height:a-i}}function Ks(t,e,r){var n=k({rectHover:!0},e),i=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(i.image=t.slice(8),be(i,r),new fn(n)):$s(t.replace("path://",""),n,r,"center")}function OM(t,e,r,n,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(by(t,e,r,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function by(t,e,r,n,i,a,o,s){var l=r-t,u=n-e,f=o-i,c=s-a,v=Hc(f,c,l,u);if(function BM(t){return t<=1e-6&&t>=-1e-6}(v))return!1;var h=t-i,d=e-a,m=Hc(h,d,l,u)/v;if(m<0||m>1)return!1;var p=Hc(h,d,f,c)/v;return!(p<0||p>1)}function Hc(t,e,r,n){return t*n-r*e}function Gc(t,e,r,n,i){return null==e||(ge(e)?Te[0]=Te[1]=Te[2]=Te[3]=e:(Te[0]=e[0],Te[1]=e[1],Te[2]=e[2],Te[3]=e[3]),n&&(Te[0]=Kt(0,Te[0]),Te[1]=Kt(0,Te[1]),Te[2]=Kt(0,Te[2]),Te[3]=Kt(0,Te[3])),r&&(Te[0]=-Te[0],Te[1]=-Te[1],Te[2]=-Te[2],Te[3]=-Te[3]),xy(t,Te,"x","width",3,1,i&&i[0]||0),xy(t,Te,"y","height",0,2,i&&i[1]||0)),t}var Te=[0,0,0,0];function xy(t,e,r,n,i,a,o){var s=e[a]+e[i],l=t[n];t[n]+=s,o=Kt(0,Sa(o,l)),t[n]<o?(t[n]=o,t[r]+=e[i]>=0?-e[i]:e[a]>=0?l+e[a]:ur(s)>1e-8?(l-o)*e[i]/s:0):t[r]-=e[i]}function Za(t){var e=t.itemTooltipOption,r=t.componentModel,n=t.itemName,i=U(e)?{formatter:e}:e,a=r.mainType,o=r.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var l=t.formatterParamsExtra;l&&D(de(l),function(f){J(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=ve(t.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:be({content:n,encodeHTMLContent:!0,formatterParams:s},i)}}function Vc(t,e){var r;t.isGroup&&(r=e(t)),r||t.traverse(e)}function Ty(t,e){if(t)if(z(t))for(var r=0;r<t.length;r++)Vc(t[r],e);else Vc(t,e)}function Wc(t){return!t||ur(t[1])<Qs&&ur(t[2])<Qs||ur(t[0])<Qs&&ur(t[3])<Qs}var Qs=1e-5;function $a(t,e){return t?ne.copy(t,e):e.clone()}function qc(t,e){return e?ko(t||[1,0,0,1,0,0],e):void 0}function wy(t){return{z:t.get("z")||0,zlevel:t.get("zlevel")||0}}function FM(t){var e=-1/0,r=1/0;function n(a){if(a&&!a.isGroup){var o=a.currentStates;if(o.length)for(var s=0;s<o.length;s++)i(a.states[o[s]]);i(a)}}function i(a){if(a){var o=a.z2;o>e&&(e=o),o<r&&(r=o)}}return Vc(t,function(a){n(a),n(a.getTextContent()),n(a.getTextGuideLine())}),r>e&&(r=e=0),{min:r,max:e}}function Dy(t,e,r){My(t,e,r,-1/0)}function My(t,e,r,n){if(t.ignoreModelZ)return n;var i=t.getTextContent(),a=t.getTextGuideLine();if(t.isGroup)for(var s=t.childrenRef(),l=0;l<s.length;l++)n=Kt(My(s[l],e,r,n),n);else t.z=e,t.zlevel=r,n=Kt(t.z2||0,n);if(i&&(i.z=e,i.zlevel=r,isFinite(n)&&(i.z2=n+2)),a){var u=t.textGuideLineConfig;a.z=e,a.zlevel=r,isFinite(n)&&(a.z2=n+(u&&u.showAbove?1:-1))}return n}Ft("circle",qs),Ft("ellipse",Lc),Ft("sector",Xa),Ft("ring",Pc),Ft("polygon",Rc),Ft("polyline",ja),Ft("rect",Ye),Ft("line",Xi),Ft("bezierCurve",Ec),Ft("arc",Ys);var Ly=ye(),NM=function jD(){var t=ye();return function(e){var r=t(e),n=e.pipelineContext,i=!!r.large,a=!!r.progressiveRender,o=r.large=!(!n||!n.large),s=r.progressiveRender=!(!n||!n.progressiveRender);return(i!==o||a!==s)&&"reset"}}(),Uc=function(){function t(){this.group=new Tt,this.uid=xs("viewChart"),this.renderTask=Va({plan:zM,reset:HM}),this.renderTask.context={view:this}}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,n,i){},t.prototype.highlight=function(e,r,n,i){var a=e.getData(i&&i.dataType);a&&Py(a,i,"emphasis")},t.prototype.downplay=function(e,r,n,i){var a=e.getData(i&&i.dataType);a&&Py(a,i,"normal")},t.prototype.remove=function(e,r){this.group.removeAll()},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,n,i){this.render(e,r,n,i)},t.prototype.updateLayout=function(e,r,n,i){this.render(e,r,n,i)},t.prototype.updateVisual=function(e,r,n,i){this.render(e,r,n,i)},t.prototype.eachRendered=function(e){Ty(this.group,e)},t.markUpdateMethod=function(e,r){Ly(e).updateMethod=r},t.protoInitialize=void(t.prototype.type="chart"),t}();function Ay(t,e,r){t&&Ef(t)&&("emphasis"===e?Mf:Lf)(t,r)}function Py(t,e,r){var n=Da(t,e),i=e&&null!=e.highlightKey?function _T(t){var e=Wp[t];return null==e&&Vp<=32&&(e=Wp[t]=Vp++),e}(e.highlightKey):null;null!=n?D(He(n),function(a){Ay(t.getItemGraphicEl(a),r,i)}):t.eachItemGraphicEl(function(a){Ay(a,r,i)})}function zM(t){return NM(t.model)}function HM(t){var e=t.model,r=t.ecModel,n=t.api,i=t.payload,a=e.pipelineContext.progressiveRender,o=t.view,s=i&&Ly(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return"render"!==l&&o[l](e,r,n,i),GM[l]}tf(Uc),ss(Uc);var GM={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}};const Hr=Uc;var Js="\0__throttleOriginMethod",Ry="\0__throttleRate",Ey="\0__throttleType";function Yc(t,e,r){var n,s,l,u,f,i=0,a=0,o=null;function c(){a=(new Date).getTime(),o=null,t.apply(l,u||[])}e=e||0;var v=function(){for(var h=[],d=0;d<arguments.length;d++)h[d]=arguments[d];n=(new Date).getTime(),l=this,u=h;var m=f||e,p=f||r;f=null,s=n-(p?i:a)-m,clearTimeout(o),p?o=setTimeout(c,m):s>=0?c():o=setTimeout(c,-s),i=n};return v.clear=function(){o&&(clearTimeout(o),o=null)},v.debounceNextCall=function(h){f=h},v}function Iy(t,e,r,n){var i=t[e];if(i){var a=i[Js]||i;if(i[Ry]!==r||i[Ey]!==n){if(null==r||!n)return t[e]=a;(i=t[e]=Yc(a,r,"debounce"===n))[Js]=a,i[Ey]=n,i[Ry]=r}return i}}function Xc(t,e){var r=t[e];r&&r[Js]&&(r.clear&&r.clear(),t[e]=r[Js])}var ky=ye(),Oy={itemStyle:La(yg,!0),lineStyle:La(mg,!0)},VM={lineStyle:"stroke",itemStyle:"fill"};function By(t,e){return t.visualStyleMapper||Oy[e]||(console.warn("Unknown style type '"+e+"'."),Oy.itemStyle)}function Fy(t,e){return t.visualDrawType||VM[e]||(console.warn("Unknown style type '"+e+"'."),"fill")}var WM={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",i=t.getModel(n),o=By(t,n)(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=Fy(t,n),u=o[l],f=ee(u)?u:null;if(!o[l]||f||"auto"===o.fill||"auto"===o.stroke){var v=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[l]||(o[l]=v,r.setVisual("colorFromPalette",!0)),o.fill="auto"===o.fill||ee(o.fill)?v:o.fill,o.stroke="auto"===o.stroke||ee(o.stroke)?v:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!e.isSeriesFiltered(t)&&f)return r.setVisual("colorFromPalette",!1),{dataEach:function(h,d){var m=t.getDataParams(d),p=k({},o);p[l]=f(m),h.setItemVisual(d,"style",p)}}}},Ka=new Fe,qM={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",i=By(t,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){Ka.option=l[n];var u=i(Ka);k(o.ensureUniqueItemVisual(s,"style"),u),Ka.option.decal&&(o.setItemVisual(s,"decal",Ka.option.decal),Ka.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},UM={performRawSeries:!0,overallReset:function(t){var e=ae();t.eachSeries(function(r){var n=r.getColorBy();if(!r.isColorBySeries()){var i=r.type+"-"+n,a=e.get(i);a||e.set(i,a={}),ky(r).scope=a}}),t.eachSeries(function(r){if(!r.isColorBySeries()&&!t.isSeriesFiltered(r)){var n=r.getRawData(),i={},a=r.getData(),o=ky(r).scope,l=Fy(r,r.visualStyleAccessPath||"itemStyle");a.each(function(u){var f=a.getRawIndex(u);i[f]=u}),n.each(function(u){var f=i[u];if(a.getItemVisual(f,"colorFromPalette")){var v=a.ensureUniqueItemVisual(f,"style"),h=n.getName(u)||u+"",d=n.count();v[l]=r.getColorFromPalette(h,o,d)}})}})}},el=Math.PI,XM=function(){function t(e,r,n,i){this._stageTaskMap=ae(),this.ecInstance=e,this.api=r,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return t.prototype.restoreData=function(e,r){e.restoreData(r),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},t.prototype.getPerformArgs=function(e,r){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),i=n.context,o=!r&&n.progressiveEnabled&&(!i||i.progressiveRender)&&e.__idxInPipeline>n.blockIndex?n.step:null,s=i&&i.modDataCount;return{step:o,modBy:null!=s?Math.ceil(s/o):null,modDataCount:s}}},t.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},t.prototype.updateStreamModes=function(e,r){var n=this._pipelineMap.get(e.uid),a=e.getData().count(),o=n.progressiveEnabled&&r.incrementalPrepareRender&&a>=n.threshold,s=e.get("large")&&a>=e.get("largeThreshold"),l="mod"===e.get("progressiveChunkMode")?a:null;e.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},t.prototype.restorePipelines=function(e){var r=this,n=r._pipelineMap=ae();e.eachSeries(function(i){var a=i.getProgressive(),o=i.uid;n.set(o,{id:o,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:a&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),r._pipe(i,i.dataTask)})},t.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,r=this.api.getModel(),n=this.api;D(this._allHandlers,function(i){var a=e.get(i.uid)||e.set(i.uid,{});ar(!(i.reset&&i.overallReset),""),i.reset&&this._createSeriesStageTask(i,a,r,n),i.overallReset&&this._createOverallStageTask(i,a,r,n)},this)},t.prototype.prepareView=function(e,r,n,i){var a=e.renderTask,o=a.context;o.model=r,o.ecModel=n,o.api=i,a.__block=!e.incrementalPrepareRender,this._pipe(r,a)},t.prototype.performDataProcessorTasks=function(e,r){this._performStageTasks(this._dataProcessorHandlers,e,r,{block:!0})},t.prototype.performVisualTasks=function(e,r,n){this._performStageTasks(this._visualHandlers,e,r,n)},t.prototype._performStageTasks=function(e,r,n,i){i=i||{};var a=!1,o=this;function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}D(e,function(l,u){if(!i.visualType||i.visualType===l.visualType){var f=o._stageTaskMap.get(l.uid),c=f.seriesTaskMap,v=f.overallTask;if(v){var h,d=v.agentStubMap;d.each(function(p){s(i,p)&&(p.dirty(),h=!0)}),h&&v.dirty(),o.updatePayload(v,n);var m=o.getPerformArgs(v,i.block);d.each(function(p){p.perform(m)}),v.perform(m)&&(a=!0)}else c&&c.each(function(p,g){s(i,p)&&p.dirty();var y=o.getPerformArgs(p,i.block);y.skip=!l.performRawSeries&&r.isSeriesFiltered(p.context.model),o.updatePayload(p,n),p.perform(y)&&(a=!0)})}}),this.unfinished=a||this.unfinished},t.prototype.performSeriesTasks=function(e){var r;e.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(e){var r=e.tail;do{if(r.__block){e.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},t.prototype.updatePayload=function(e,r){"remain"!==r&&(e.context.payload=r)},t.prototype._createSeriesStageTask=function(e,r,n,i){var a=this,o=r.seriesTaskMap,s=r.seriesTaskMap=ae(),l=e.seriesType,u=e.getTargetSeries;function f(c){var v=c.uid,h=s.set(v,o&&o.get(v)||Va({plan:QM,reset:JM,count:tL}));h.context={model:c,ecModel:n,api:i,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:a},a._pipe(c,h)}e.createOnAllSeries?n.eachRawSeries(f):l?n.eachRawSeriesByType(l,f):u&&u(n,i).each(f)},t.prototype._createOverallStageTask=function(e,r,n,i){var a=this,o=r.overallTask=r.overallTask||Va({reset:jM});o.context={ecModel:n,api:i,overallReset:e.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=ae(),u=e.seriesType,f=e.getTargetSeries,c=!0,v=!1;function d(m){var p=m.uid,g=l.set(p,s&&s.get(p)||(v=!0,Va({reset:ZM,onDirty:KM})));g.context={model:m,overallProgress:c},g.agent=o,g.__block=c,a._pipe(m,g)}ar(!e.createOnAllSeries,""),u?n.eachRawSeriesByType(u,d):f?f(n,i).each(d):(c=!1,D(n.getSeries(),d)),v&&o.dirty()},t.prototype._pipe=function(e,r){var i=this._pipelineMap.get(e.uid);!i.head&&(i.head=r),i.tail&&i.tail.pipe(r),i.tail=r,r.__idxInPipeline=i.count++,r.__pipeline=i},t.wrapStageHandler=function(e,r){return ee(e)&&(e={overallReset:e,seriesType:rL(e)}),e.uid=xs("stageHandler"),r&&(e.visualType=r),e},t}();function jM(t){t.overallReset(t.ecModel,t.api,t.payload)}function ZM(t){return t.overallProgress&&$M}function $M(){this.agent.dirty(),this.getDownstream().dirty()}function KM(){this.agent&&this.agent.dirty()}function QM(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function JM(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=He(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?K(e,function(r,n){return Ny(n)}):eL}var eL=Ny(0);function Ny(t){return function(e,r){var n=r.data,i=r.resetDefines[t];if(i&&i.dataEach)for(var a=e.start;a<e.end;a++)i.dataEach(n,a);else i&&i.progress&&i.progress(e,n)}}function tL(t){return t.data.count()}function rL(t){tl=null;try{t(Qa,zy)}catch{}return tl}var tl,Qa={},zy={};function Hy(t,e){for(var r in e.prototype)t[r]=it}Hy(Qa,Qg),Hy(zy,Jg),Qa.eachSeriesByType=Qa.eachRawSeriesByType=function(t){tl=t},Qa.eachComponent=function(t){"series"===t.mainType&&t.subType&&(tl=t.subType)};const Gy=XM;var F=ue.darkColor,Ja=function(){return{axisLine:{lineStyle:{color:F.axisLine}},splitLine:{lineStyle:{color:F.axisSplitLine}},splitArea:{areaStyle:{color:[F.backgroundTint,F.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:F.axisMinorSplitLine}},axisLabel:{color:F.axisLabel},axisName:{}}},Vy={label:{color:F.secondary},itemStyle:{borderColor:F.borderTint},dividerLineStyle:{color:F.border}},Wy={darkMode:!0,color:F.theme,backgroundColor:F.background,axisPointer:{lineStyle:{color:F.border},crossStyle:{color:F.borderShade},label:{color:F.tertiary}},legend:{textStyle:{color:F.secondary},pageTextStyle:{color:F.tertiary}},textStyle:{color:F.secondary},title:{textStyle:{color:F.primary},subtextStyle:{color:F.quaternary}},toolbox:{iconStyle:{borderColor:F.accent50}},tooltip:{backgroundColor:F.neutral20,defaultBorderColor:F.border,textStyle:{color:F.tertiary}},dataZoom:{borderColor:F.accent10,textStyle:{color:F.tertiary},brushStyle:{color:F.backgroundTint},handleStyle:{color:F.neutral00,borderColor:F.accent20},moveHandleStyle:{color:F.accent40},emphasis:{handleStyle:{borderColor:F.accent50}},dataBackground:{lineStyle:{color:F.accent30},areaStyle:{color:F.accent20}},selectedDataBackground:{lineStyle:{color:F.accent50},areaStyle:{color:F.accent30}}},visualMap:{textStyle:{color:F.secondary},handleStyle:{borderColor:F.neutral30}},timeline:{lineStyle:{color:F.accent10},label:{color:F.tertiary},controlStyle:{color:F.accent30,borderColor:F.accent30}},calendar:{itemStyle:{color:F.neutral00,borderColor:F.neutral20},dayLabel:{color:F.tertiary},monthLabel:{color:F.secondary},yearLabel:{color:F.secondary}},matrix:{x:Vy,y:Vy,backgroundColor:{borderColor:F.axisLine},body:{itemStyle:{borderColor:F.borderTint}}},timeAxis:Ja(),logAxis:Ja(),valueAxis:Ja(),categoryAxis:Ja(),line:{symbol:"circle"},graph:{color:F.theme},gauge:{title:{color:F.secondary},axisLine:{lineStyle:{color:[[1,F.neutral05]]}},axisLabel:{color:F.axisLabel},detail:{color:F.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:F.background}},radar:function(){var t=Ja();return t.axisName={color:F.axisLabel},t.axisLine.lineStyle.color=F.neutral20,t}(),treemap:{breadcrumb:{itemStyle:{color:F.neutral20,textStyle:{color:F.secondary}},emphasis:{itemStyle:{color:F.neutral30}}}},sunburst:{itemStyle:{borderColor:F.background}},map:{itemStyle:{borderColor:F.border,areaColor:F.neutral10},label:{color:F.tertiary},emphasis:{label:{color:F.primary},itemStyle:{areaColor:F.highlight}},select:{label:{color:F.primary},itemStyle:{areaColor:F.highlight}}},geo:{itemStyle:{borderColor:F.border,areaColor:F.neutral10},emphasis:{label:{color:F.primary},itemStyle:{areaColor:F.highlight}},select:{label:{color:F.primary},itemStyle:{color:F.highlight}}}};Wy.categoryAxis.splitLine.show=!1;const iL=Wy;var aL=function(){function t(){}return t.prototype.normalizeQuery=function(e){var r={},n={},i={};if(U(e)){var a=hr(e);r.mainType=a.main||null,r.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};D(e,function(l,u){for(var f=!1,c=0;c<o.length;c++){var v=o[c],h=u.lastIndexOf(v);if(h>0&&h===u.length-v.length){var d=u.slice(0,h);"data"!==d&&(r.mainType=d,r[v.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(n[u]=l,f=!0),f||(i[u]=l)})}return{cptQuery:r,dataQuery:n,otherQuery:i}},t.prototype.filter=function(e,r){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,a=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=r.cptQuery,u=r.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,a,"name")&&f(u,a,"dataIndex")&&f(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,r.otherQuery,i,a));function f(c,v,h,d){return null==c[h]||v[d||h]===c[h]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),jc=["symbol","symbolSize","symbolRotate","symbolOffset"],qy=jc.concat(["symbolKeepAspect"]),oL={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData();if(t.legendIcon&&r.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){for(var n={},i={},a=!1,o=0;o<jc.length;o++){var s=jc[o],l=t.get(s);ee(l)?(a=!0,i[s]=l):n[s]=l}if(n.symbol=n.symbol||t.defaultSymbol,r.setVisual(k({legendIcon:t.legendIcon||n.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},n)),!e.isSeriesFiltered(t)){var u=de(i);return{dataEach:a?function f(c,v){for(var h=t.getRawValue(v),d=t.getDataParams(v),m=0;m<u.length;m++){var p=u[m];c.setItemVisual(v,p,i[p](h,d))}}:null}}}}},sL={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(t.hasSymbolVisual&&!e.isSeriesFiltered(t))return{dataEach:t.getData().hasItemOption?function n(i,a){for(var o=i.getItemModel(a),s=0;s<qy.length;s++){var l=qy[s],u=o.getShallow(l,!0);null!=u&&i.setItemVisual(a,l,u)}}:null}}};function ji(t,e,r,n,i){var a=t+e;r.isSilent(a)||n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=i.selected,f=0;f<u.length;f++)if(u[f].seriesIndex===s){var c=o.getData(),v=Da(c,i.fromActionPayload);r.trigger(a,{type:a,seriesId:o.id,name:z(v)?c.getName(v[0]):c.getName(v),selected:U(l)?l:k({},l)})}})}function eo(t,e,r){for(var n;t&&(!e(t)||(n=t,!r));)t=t.__hostTarget||t.parent;return n}var hL=Math.round(9*Math.random()),vL="function"==typeof Object.defineProperty,dL=function(){function t(){this._id="__ec_inner_"+hL++}return t.prototype.get=function(e){return this._guard(e)[this._id]},t.prototype.set=function(e,r){var n=this._guard(e);return vL?Object.defineProperty(n,this._id,{value:r,enumerable:!1,configurable:!0}):n[this._id]=r,this},t.prototype.delete=function(e){return!!this.has(e)&&(delete this._guard(e)[this._id],!0)},t.prototype.has=function(e){return!!this._guard(e)[this._id]},t.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},t}();const pL=dL;var mL=Se.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,n=e.cy,i=e.width/2,a=e.height/2;t.moveTo(r,n-a),t.lineTo(r+i,n+a),t.lineTo(r-i,n+a),t.closePath()}}),yL=Se.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,n=e.cy,i=e.width/2,a=e.height/2;t.moveTo(r,n-a),t.lineTo(r+i,n),t.lineTo(r,n+a),t.lineTo(r-i,n),t.closePath()}}),_L=Se.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.x,n=e.y,i=e.width/5*3,a=Math.max(i,e.height),o=i/2,s=o*o/(a-o),l=n-a+o+s,u=Math.asin(s/o),f=Math.cos(u)*o,c=Math.sin(u),v=Math.cos(u),h=.6*o,d=.7*o;t.moveTo(r-f,l+s),t.arc(r,l,o,Math.PI-u,2*Math.PI+u),t.bezierCurveTo(r+f-c*h,l+s+v*h,r,n-d,r,n),t.bezierCurveTo(r,n-d,r-f+c*h,l+s+v*h,r-f,l+s),t.closePath()}}),CL=Se.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.height,i=e.x,a=e.y,o=e.width/3*2;t.moveTo(i,a),t.lineTo(i+o,a+r),t.lineTo(i,a+r/4*3),t.lineTo(i-o,a+r),t.lineTo(i,a),t.closePath()}}),bL={line:function(t,e,r,n,i){i.x1=t,i.y1=e+n/2,i.x2=t+r,i.y2=e+n/2},rect:function(t,e,r,n,i){i.x=t,i.y=e,i.width=r,i.height=n},roundRect:function(t,e,r,n,i){i.x=t,i.y=e,i.width=r,i.height=n,i.r=Math.min(r,n)/4},square:function(t,e,r,n,i){var a=Math.min(r,n);i.x=t,i.y=e,i.width=a,i.height=a},circle:function(t,e,r,n,i){i.cx=t+r/2,i.cy=e+n/2,i.r=Math.min(r,n)/2},diamond:function(t,e,r,n,i){i.cx=t+r/2,i.cy=e+n/2,i.width=r,i.height=n},pin:function(t,e,r,n,i){i.x=t+r/2,i.y=e+n/2,i.width=r,i.height=n},arrow:function(t,e,r,n,i){i.x=t+r/2,i.y=e+n/2,i.width=r,i.height=n},triangle:function(t,e,r,n,i){i.cx=t+r/2,i.cy=e+n/2,i.width=r,i.height=n}},Zc={};D({line:Xi,rect:Ye,roundRect:Ye,square:Ye,circle:qs,diamond:yL,pin:_L,arrow:CL,triangle:mL},function(t,e){Zc[e]=new t});var xL=Se.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,r){var n=Fd(t,e,r),i=this.shape;return i&&"pin"===i.symbolType&&"inside"===e.position&&(n.y=r.y+.4*r.height),n},buildPath:function(t,e,r){var n=e.symbolType;if("none"!==n){var i=Zc[n];i||(i=Zc[n="rect"]),bL[n](e.x,e.y,e.width,e.height,i.shape),i.buildPath(t,i.shape,r)}}});function TL(t,e){if("image"!==this.type){var r=this.style;this.__isEmptyBrush?(r.stroke=t,r.fill=e||ue.color.neutral00,r.lineWidth=2):"line"===this.shape.symbolType?r.stroke=t:r.fill=t,this.markRedraw()}}function rl(t,e,r,n,i,a,o){var l,s=0===t.indexOf("empty");return s&&(t=t.substr(5,1).toLowerCase()+t.substr(6)),(l=0===t.indexOf("image://")?Bc(t.slice(8),new ne(e,r,n,i),o?"center":"cover"):0===t.indexOf("path://")?$s(t.slice(7),{},new ne(e,r,n,i),o?"center":"cover"):new xL({shape:{symbolType:t,x:e,y:r,width:n,height:i}})).__isEmptyBrush=s,l.setColor=TL,a&&l.setColor(a),l}function si(t){return isFinite(t)}function $c(t,e,r){for(var n="radial"===e.type?function ML(t,e,r){var n=r.width,i=r.height,a=Math.min(n,i),o=null==e.x?.5:e.x,s=null==e.y?.5:e.y,l=null==e.r?.5:e.r;return e.global||(o=o*n+r.x,s=s*i+r.y,l*=a),o=si(o)?o:.5,s=si(s)?s:.5,l=l>=0&&si(l)?l:.5,t.createRadialGradient(o,s,0,o,s,l)}(t,e,r):function DL(t,e,r){var n=null==e.x?0:e.x,i=null==e.x2?1:e.x2,a=null==e.y?0:e.y,o=null==e.y2?0:e.y2;return e.global||(n=n*r.width+r.x,i=i*r.width+r.x,a=a*r.height+r.y,o=o*r.height+r.y),n=si(n)?n:0,i=si(i)?i:1,a=si(a)?a:0,o=si(o)?o:0,t.createLinearGradient(n,a,i,o)}(t,e,r),i=e.colorStops,a=0;a<i.length;a++)n.addColorStop(i[a].offset,i[a].color);return n}function nl(t){return parseInt(t,10)}function il(t,e,r){var n=["width","height"][e],i=["clientWidth","clientHeight"][e],a=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(null!=r[n]&&"auto"!==r[n])return parseFloat(r[n]);var s=document.defaultView.getComputedStyle(t);return(t[i]||nl(s[n])||nl(t.style[n]))-(nl(s[a])||0)-(nl(s[o])||0)|0}function Uy(t){var e=t.style,r=e.lineDash&&e.lineWidth>0&&function AL(t,e){return t&&"solid"!==t&&e>0?"dashed"===t?[4*e,2*e]:"dotted"===t?[e]:ge(t)?[t]:z(t)?t:null:null}(e.lineDash,e.lineWidth),n=e.lineDashOffset;if(r){var i=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;i&&1!==i&&(r=K(r,function(a){return a/i}),n/=i)}return[r,n]}var PL=new Un(!0);function al(t){var e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))}function Yy(t){return"string"==typeof t&&"none"!==t}function ol(t){var e=t.fill;return null!=e&&"none"!==e}function Xy(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var r=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=r}else t.fill()}function jy(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var r=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=r}else t.stroke()}function Kc(t,e,r){var n=lp(e.image,e.__image,r);if(ls(n)){var i=t.createPattern(n,e.repeat||"repeat");if("function"==typeof DOMMatrix&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(e.x||0,e.y||0),a.rotateSelf(0,0,(e.rotation||0)*Rv),a.scaleSelf(e.scaleX||1,e.scaleY||1),i.setTransform(a)}return i}}var Zy=["shadowBlur","shadowOffsetX","shadowOffsetY"],$y=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Ky(t,e,r,n,i){var a=!1;if(!n&&e===(r=r||{}))return!1;if(n||e.opacity!==r.opacity){yt(t,i),a=!0;var o=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(o)?Nn.opacity:o}(n||e.blend!==r.blend)&&(a||(yt(t,i),a=!0),t.globalCompositeOperation=e.blend||Nn.blend);for(var s=0;s<Zy.length;s++){var l=Zy[s];(n||e[l]!==r[l])&&(a||(yt(t,i),a=!0),t[l]=t.dpr*(e[l]||0))}return(n||e.shadowColor!==r.shadowColor)&&(a||(yt(t,i),a=!0),t.shadowColor=e.shadowColor||Nn.shadowColor),a}function Qy(t,e,r,n,i){var a=to(e,i.inHover),o=n?null:r&&to(r,i.inHover)||{};if(a===o)return!1;var s=Ky(t,a,o,n,i);if((n||a.fill!==o.fill)&&(s||(yt(t,i),s=!0),Yy(a.fill)&&(t.fillStyle=a.fill)),(n||a.stroke!==o.stroke)&&(s||(yt(t,i),s=!0),Yy(a.stroke)&&(t.strokeStyle=a.stroke)),(n||a.opacity!==o.opacity)&&(s||(yt(t,i),s=!0),t.globalAlpha=null==a.opacity?1:a.opacity),e.hasStroke()){var u=a.lineWidth/(a.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==u&&(s||(yt(t,i),s=!0),t.lineWidth=u)}for(var f=0;f<$y.length;f++){var c=$y[f],v=c[0];(n||a[v]!==o[v])&&(s||(yt(t,i),s=!0),t[v]=a[v]||c[1])}return s}function Jy(t,e){var r=e.transform,n=t.dpr||1;r?t.setTransform(n*r[0],n*r[1],n*r[2],n*r[3],n*r[4],n*r[5]):t.setTransform(n,0,0,n,0,0)}function yt(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function to(t,e){return e&&t.__hoverStyle||t.style}function Qc(t,e){li(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function li(t,e,r,n){var i=e.transform;if(!e.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1))return e.__dirty&=-2,void(e.__isRendered=!1);var a=e.__clipPaths,o=r.prevElClipPaths,s=!1,l=!1;if((!o||function LL(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var r=0;r<t.length;r++)if(t[r]!==e[r])return!0;return!1}(a,o))&&(o&&o.length&&(yt(t,r),t.restore(),l=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),a&&a.length&&(yt(t,r),t.save(),function OL(t,e,r){for(var n=!1,i=0;i<t.length;i++){var a=t[i];n=n||a.isZeroArea(),Jy(e,a),e.beginPath(),a.buildPath(e,a.shape),e.clip()}r.allClipped=n}(a,t,r),s=!0),r.prevElClipPaths=a),r.allClipped)e.__isRendered=!1;else{e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var u=r.prevEl;u||(l=s=!0);var f=e instanceof Se&&e.autoBatch&&function FL(t){var e=ol(t),r=al(t);return!(t.lineDash||!(+e^+r)||e&&"string"!=typeof t.fill||r&&"string"!=typeof t.stroke||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}(e.style);s||function BL(t,e){return t&&e?t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||t[4]!==e[4]||t[5]!==e[5]:!(!t&&!e)}(i,u.transform)?(yt(t,r),Jy(t,e)):f||yt(t,r);var c=to(e,r.inHover);e instanceof Se?(1!==r.lastDrawType&&(l=!0,r.lastDrawType=1),Qy(t,e,u,l,r),(!f||!r.batchFill&&!r.batchStroke)&&t.beginPath(),function RL(t,e,r,n){var i,a=al(r),o=ol(r),s=r.strokePercent,l=s<1,u=!e.path;(!e.silent||l)&&u&&e.createPathProxy();var f=e.path||PL,c=e.__dirty;if(!n){var v=r.fill,h=r.stroke,d=o&&!!v.colorStops,m=a&&!!h.colorStops,p=o&&!!v.image,g=a&&!!h.image,y=void 0,_=void 0,C=void 0,b=void 0,S=void 0;(d||m)&&(S=e.getBoundingRect()),d&&(y=c?$c(t,v,S):e.__canvasFillGradient,e.__canvasFillGradient=y),m&&(_=c?$c(t,h,S):e.__canvasStrokeGradient,e.__canvasStrokeGradient=_),p&&(C=c||!e.__canvasFillPattern?Kc(t,v,e):e.__canvasFillPattern,e.__canvasFillPattern=C),g&&(b=c||!e.__canvasStrokePattern?Kc(t,h,e):e.__canvasStrokePattern,e.__canvasStrokePattern=b),d?t.fillStyle=y:p&&(C?t.fillStyle=C:o=!1),m?t.strokeStyle=_:g&&(b?t.strokeStyle=b:a=!1)}var T,w,x=e.getGlobalScale();f.setScale(x[0],x[1],e.segmentIgnoreThreshold),t.setLineDash&&r.lineDash&&(T=(i=Uy(e))[0],w=i[1]);var L=!0;(u||4&c)&&(f.setDPR(t.dpr),l?f.setContext(null):(f.setContext(t),L=!1),f.reset(),e.buildPath(f,e.shape,n),f.toStatic(),e.pathUpdated()),L&&f.rebuildPath(t,l?s:1),T&&(t.setLineDash(T),t.lineDashOffset=w),n||(r.strokeFirst?(a&&jy(t,r),o&&Xy(t,r)):(o&&Xy(t,r),a&&jy(t,r))),T&&t.setLineDash([])}(t,e,c,f),f&&(r.batchFill=c.fill||"",r.batchStroke=c.stroke||"")):e instanceof _f?(3!==r.lastDrawType&&(l=!0,r.lastDrawType=3),Qy(t,e,u,l,r),function IL(t,e,r){var n,i=r.text;if(null!=i&&(i+=""),i){t.font=r.font||Zr,t.textAlign=r.textAlign,t.textBaseline=r.textBaseline;var a=void 0,o=void 0;t.setLineDash&&r.lineDash&&(a=(n=Uy(e))[0],o=n[1]),a&&(t.setLineDash(a),t.lineDashOffset=o),r.strokeFirst?(al(r)&&t.strokeText(i,r.x,r.y),ol(r)&&t.fillText(i,r.x,r.y)):(ol(r)&&t.fillText(i,r.x,r.y),al(r)&&t.strokeText(i,r.x,r.y)),a&&t.setLineDash([])}}(t,e,c)):e instanceof fn?(2!==r.lastDrawType&&(l=!0,r.lastDrawType=2),function kL(t,e,r,n,i){Ky(t,to(e,i.inHover),r&&to(r,i.inHover),n,i)}(t,e,u,l,r),function EL(t,e,r){var n=e.__image=lp(r.image,e.__image,e,e.onload);if(n&&ls(n)){var i=r.x||0,a=r.y||0,o=e.getWidth(),s=e.getHeight(),l=n.width/n.height;if(null==o&&null!=s?o=s*l:null==s&&null!=o?s=o/l:null==o&&null==s&&(o=n.width,s=n.height),r.sWidth&&r.sHeight)t.drawImage(n,u=r.sx||0,f=r.sy||0,r.sWidth,r.sHeight,i,a,o,s);else if(r.sx&&r.sy){var u,f;t.drawImage(n,u=r.sx,f=r.sy,o-u,s-f,i,a,o,s)}else t.drawImage(n,i,a,o,s)}}(t,e,c)):e.getTemporalDisplayables&&(4!==r.lastDrawType&&(l=!0,r.lastDrawType=4),function NL(t,e,r){var n=e.getDisplayables(),i=e.getTemporalDisplayables();t.save();var o,s,a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover};for(o=e.getCursor(),s=n.length;o<s;o++)(l=n[o]).beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),li(t,l,a,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l;for(var u=0,f=i.length;u<f;u++){var l;(l=i[u]).beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),li(t,l,a,u===f-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}(t,e,r)),f&&n&&yt(t,r),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),r.prevEl=e,e.__dirty=0,e.__isRendered=!0}}var Jc=new pL,i0=new Mi(100),a0=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function eh(t,e){if("none"===t)return null;var r=e.getDevicePixelRatio(),n=e.getZr(),i="svg"===n.painter.type;t.dirty&&Jc.delete(t);var a=Jc.get(t);if(a)return a;var o=be(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});"none"===o.backgroundColor&&(o.backgroundColor=null);var s={repeat:"repeat"};return function l(u){for(var f=[r],c=!0,v=0;v<a0.length;++v){var h=o[a0[v]];if(null!=h&&!z(h)&&!U(h)&&!ge(h)&&"boolean"!=typeof h){c=!1;break}f.push(h)}var d;if(c){d=f.join(",")+(i?"-svg":"");var m=i0.get(d);m&&(i?u.svgElement=m:u.image=m)}var T,p=s0(o.dashArrayX),g=function zL(t){if(!t||"object"==typeof t&&0===t.length)return[0,0];if(ge(t)){var e=Math.ceil(t);return[e,e]}var r=K(t,function(n){return Math.ceil(n)});return t.length%2?r.concat(r):r}(o.dashArrayY),y=o0(o.symbol),_=function HL(t){return K(t,function(e){return l0(e)})}(p),C=l0(g),b=!i&&Lt.createCanvas(),S=i&&{tag:"g",attrs:{},key:"dcl",children:[]},x=function w(){for(var A=1,R=0,M=_.length;R<M;++R)A=Qd(A,_[R]);var E=1;for(R=0,M=y.length;R<M;++R)E=Qd(E,y[R].length);A*=E;var I=C*_.length*y.length;return{width:Math.max(1,Math.min(A,o.maxTileWidth)),height:Math.max(1,Math.min(I,o.maxTileHeight))}}();b&&(b.width=x.width*r,b.height=x.height*r,T=b.getContext("2d")),function L(){T&&(T.clearRect(0,0,b.width,b.height),o.backgroundColor&&(T.fillStyle=o.backgroundColor,T.fillRect(0,0,b.width,b.height)));for(var A=0,R=0;R<g.length;++R)A+=g[R];if(!(A<=0))for(var M=-C,E=0,I=0,O=0;M<x.height;){if(E%2==0){for(var q=I/2%y.length,W=0,H=0,V=0;W<2*x.width;){var G=0;for(R=0;R<p[O].length;++R)G+=p[O][R];if(G<=0)break;if(H%2==0){var N=.5*(1-o.symbolSize);et(W+p[O][H]*N,M+g[E]*N,p[O][H]*o.symbolSize,g[E]*o.symbolSize,y[q][V/2%y[q].length])}W+=p[O][H],++V,++H===p[O].length&&(H=0)}++O===p.length&&(O=0)}M+=g[E],++I,++E===g.length&&(E=0)}function et(je,Oe,re,fe,Tr){var We=i?1:r,Sn=rl(Tr,je*We,Oe*We,re*We,fe*We,o.color,o.symbolKeepAspect);if(i){var qr=n.painter.renderOneToVNode(Sn);qr&&S.children.push(qr)}else Qc(T,Sn)}}(),c&&i0.put(d,b||S),u.image=b,u.svgElement=S,u.svgWidth=x.width,u.svgHeight=x.height}(s),s.rotation=o.rotation,s.scaleX=s.scaleY=i?1:1/r,Jc.set(t,s),t.dirty=!1,s}function o0(t){if(!t||0===t.length)return[["rect"]];if(U(t))return[[t]];for(var e=!0,r=0;r<t.length;++r)if(!U(t[r])){e=!1;break}if(e)return o0([t]);var n=[];for(r=0;r<t.length;++r)U(t[r])?n.push([t[r]]):n.push(t[r]);return n}function s0(t){if(!t||0===t.length)return[[0,0]];if(ge(t))return[[e=Math.ceil(t),e]];for(var r=!0,n=0;n<t.length;++n)if(!ge(t[n])){r=!1;break}if(r)return s0([t]);var i=[];for(n=0;n<t.length;++n)if(ge(t[n])){var e=Math.ceil(t[n]);i.push([e,e])}else e=K(t[n],function(s){return Math.ceil(s)}),i.push(e.length%2==1?e.concat(e):e);return i}function l0(t){for(var e=0,r=0;r<t.length;++r)e+=t[r];return t.length%2==1?2*e:e}const rr=new or;var u0={};function f0(t){return u0[t]}var c0={};function h0(t,e){c0[t]=e}var qL="6.0.0",UL={zrender:"6.0.0"},g0={PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:1e3,PROGRESSIVE_LAYOUT:1100,GLOBAL:2e3,CHART:3e3,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:4500,ARIA:6e3,DECAL:7e3}},Ne="__flagInMainProcess",ll="__mainProcessVersion",Ve="__pendingUpdate",rh="__needsUpdateStatus",m0=/^[a-zA-Z0-9_]+$/,nh="__connectUpdateStatus";function _0(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(!this.isDisposed())return S0(this,t,e)}}function C0(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return S0(this,t,e)}}function S0(t,e,r){return r[0]=r[0]&&r[0].toLowerCase(),or.prototype[e].apply(t,r)}var b0=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,X.C6)(e,t),e}(or),x0=b0.prototype;x0.on=C0("on"),x0.off=C0("off");var ui,ih,ul,Gr,fl,ah,oh,Zi,$i,T0,w0,sh,D0,cl,M0,L0,Nt,A0,Ki,hl=function(t){function e(r,n,i){var a=t.call(this,new aL)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],i=i||{},a._dom=r,a[ll]=1,i.ssr&&Vd(function(h){var d=ve(h),m=d.dataIndex;if(null!=m){var p=ae();return p.set("series_index",d.seriesIndex),p.set("data_index",m),d.ssrType&&p.set("ssr_type",d.ssrType),p}});var f=a._zr=Yu(r,{renderer:i.renderer||"canvas",devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:Q(i.useDirtyRect,!1),useCoarsePointer:Q(i.useCoarsePointer,"auto"),pointerSize:i.pointerSize});a._ssr=i.ssr,a._throttledZrFlush=Yc(he(f.flush,f),17),a._updateTheme(n),a._locale=function HT(t){if(U(t)){var e=ws[t.toUpperCase()]||{};return"ZH"===t||"EN"===t?se(e):Ce(se(e),se(ws[Ni]),!1)}return Ce(se(t),se(ws[Ni]),!1)}(i.locale||_g),a._coordSysMgr=new Ps;var c=a._api=M0(a);function v(h,d){return h.__prio-d.__prio}return Fo(dl,v),Fo(ch,v),a._scheduler=new Gy(a,c,ch,dl),a._messageCenter=new b0,a._initEvents(),a.resize=he(a.resize,a),f.animation.on("frame",a._onframe,a),T0(f,a),w0(f,a),Lo(a),a}return(0,X.C6)(e,t),e.prototype._onframe=function(){if(!this._disposed){A0(this);var r=this._scheduler;if(this[Ve]){var n=this[Ve].silent;this[Ne]=!0,Ki(this);try{ui(this),Gr.update.call(this,null,this[Ve].updateParams)}catch(l){throw this[Ne]=!1,this[Ve]=null,l}this._zr.flush(),this[Ne]=!1,this[Ve]=null,Zi.call(this,n),$i.call(this,n)}else if(r.unfinished){var i=1,a=this._model,o=this._api;r.unfinished=!1;do{var s=+new Date;r.performSeriesTasks(a),r.performDataProcessorTasks(a),ah(this,a),r.performVisualTasks(a),cl(this,this._model,o,"remain",{}),i-=+new Date-s}while(i>0&&r.unfinished);r.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(r,n,i){if(!this[Ne]){if(this._disposed)return;var a,o,s;if($(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[Ne]=!0,Ki(this),!this._model||n){var l=new Gw(this._api),u=this._theme,f=this._model=new Qg;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},hh);var c={seriesTransition:s,optionChanged:!0};if(i)this[Ve]={silent:a,updateParams:c},this[Ne]=!1,this.getZr().wakeUp();else{try{ui(this),Gr.update.call(this,null,c)}catch(v){throw this[Ve]=null,this[Ne]=!1,v}this._ssr||this._zr.flush(),this[Ve]=null,this[Ne]=!1,Zi.call(this,a),$i.call(this,a)}}},e.prototype.setTheme=function(r,n){if(!this[Ne]){if(this._disposed)return;var i=this._model;if(i){var a=n&&n.silent,o=null;this[Ve]&&(null==a&&(a=this[Ve].silent),o=this[Ve].updateParams,this[Ve]=null),this[Ne]=!0,Ki(this);try{this._updateTheme(r),i.setTheme(this._theme),ui(this),Gr.update.call(this,{type:"setTheme"},o)}catch(s){throw this[Ne]=!1,s}this[Ne]=!1,Zi.call(this,a),$i.call(this,a)}}},e.prototype._updateTheme=function(r){U(r)&&(r=P0[r]),r&&((r=se(r))&&om(r,!0),this._theme=r)},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||oe.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},e.prototype.renderToCanvas=function(r){return this._zr.painter.getRenderedCanvas({backgroundColor:(r=r||{}).backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(r){return this._zr.painter.renderToString({useViewBox:(r=r||{}).useViewBox})},e.prototype.getSvgDataURL=function(){var r=this._zr;return D(r.storage.getDisplayList(),function(i){i.stopAnimation(null,!0)}),r.painter.toDataURL()},e.prototype.getDataURL=function(r){if(!this._disposed){var i=this._model,a=[],o=this;D((r=r||{}).excludeComponents,function(l){i.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(a.push(f),f.group.ignore=!0)})});var s="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return D(a,function(l){l.group.ignore=!1}),s}},e.prototype.getConnectedDataURL=function(r){if(!this._disposed){var n="svg"===r.type,i=this.group,a=Math.min,o=Math.max,s=1/0;if(pl[i]){var l=s,u=s,f=-s,c=-s,v=[],h=r&&r.pixelRatio||this.getDevicePixelRatio();D(fi,function(_,C){if(_.group===i){var b=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(se(r)),S=_.getDom().getBoundingClientRect();l=a(S.left,l),u=a(S.top,u),f=o(S.right,f),c=o(S.bottom,c),v.push({dom:b,left:S.left,top:S.top})}});var d=(f*=h)-(l*=h),m=(c*=h)-(u*=h),p=Lt.createCanvas(),g=Yu(p,{renderer:n?"svg":"canvas"});if(g.resize({width:d,height:m}),n){var y="";return D(v,function(_){y+='<g transform="translate('+(_.left-l)+","+(_.top-u)+')">'+_.dom+"</g>"}),g.painter.getSvgRoot().innerHTML=y,r.connectedBackgroundColor&&g.painter.setBackgroundColor(r.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}return r.connectedBackgroundColor&&g.add(new Ye({shape:{x:0,y:0,width:d,height:m},style:{fill:r.connectedBackgroundColor}})),D(v,function(_){var C=new fn({style:{x:_.left*h-l,y:_.top*h-u,image:_.dom}});g.add(C)}),g.refreshImmediately(),p.toDataURL("image/"+(r&&r.type||"png"))}return this.getDataURL(r)}},e.prototype.convertToPixel=function(r,n,i){return fl(this,"convertToPixel",r,n,i)},e.prototype.convertToLayout=function(r,n,i){return fl(this,"convertToLayout",r,n,i)},e.prototype.convertFromPixel=function(r,n,i){return fl(this,"convertFromPixel",r,n,i)},e.prototype.containPixel=function(r,n){var a;if(!this._disposed)return D(Ju(this._model,r),function(s,l){l.indexOf("Models")>=0&&D(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(n);else if("seriesModels"===l){var c=this._chartsMap[u.__viewId];c&&c.containPoint&&(a=a||c.containPoint(n,u))}},this)},this),!!a},e.prototype.getVisual=function(r,n){var a=Ju(this._model,r,{defaultMainType:"series"}),s=a.seriesModel.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return null!=l?function lL(t,e,r){switch(r){case"color":return t.getItemVisual(e,"style")[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,r)}}(s,l,n):function uL(t,e){switch(e){case"color":return t.getVisual("style")[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e)}}(s,n)},e.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},e.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},e.prototype._initEvents=function(){var r=this;D(aA,function(i){var a=function(o){var u,s=r.getModel(),l=o.target;if("globalout"===i?u={}:l&&eo(l,function(m){var p=ve(m);if(p&&null!=p.dataIndex){var g=p.dataModel||s.getSeriesByIndex(p.seriesIndex);return u=g&&g.getDataParams(p.dataIndex,p.dataType,l)||{},!0}if(p.eventData)return u=k({},p.eventData),!0},!0),u){var c=u.componentType,v=u.componentIndex;("markLine"===c||"markPoint"===c||"markArea"===c)&&(c="series",v=u.seriesIndex);var h=c&&null!=v&&s.getComponent(c,v),d=h&&r["series"===h.mainType?"_chartsMap":"_componentsMap"][h.__viewId];u.event=o,u.type=i,r._$eventProcessor.eventInfo={targetEl:l,packedEvent:u,model:h,view:d},r.trigger(i,u)}};a.zrEventfulCallAtLast=!0,r._zr.on(i,a,r)});var n=this._messageCenter;D(fh,function(i,a){n.on(a,function(o){r.trigger(a,o)})}),function cL(t,e,r){t.on("selectchanged",function(n){var i=r.getModel();n.isFromClick?(ji("map","selectchanged",e,i,n),ji("pie","selectchanged",e,i,n)):"select"===n.fromAction?(ji("map","selected",e,i,n),ji("pie","selected",e,i,n)):"unselect"===n.fromAction&&(ji("map","unselected",e,i,n),ji("pie","unselected",e,i,n))})}(n,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){this._disposed||this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(!this._disposed){this._disposed=!0,this.getDom()&&ap(this.getDom(),dh,"");var n=this,i=n._api,a=n._model;D(n._componentsViews,function(o){o.dispose(a,i)}),D(n._chartsViews,function(o){o.dispose(a,i)}),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 fi[n.id]}},e.prototype.resize=function(r){if(!this[Ne]){if(this._disposed)return;this._zr.resize(r);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),n){var i=n.resetOption("media"),a=r&&r.silent;this[Ve]&&(null==a&&(a=this[Ve].silent),i=!0,this[Ve]=null),this[Ne]=!0,Ki(this);try{i&&ui(this),Gr.update.call(this,{type:"resize",animation:k({duration:0},r&&r.animation)})}catch(o){throw this[Ne]=!1,o}this[Ne]=!1,Zi.call(this,a),$i.call(this,a)}}},e.prototype.showLoading=function(r,n){if(!this._disposed&&($(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),vh[r])){var i=vh[r](this._api,n),a=this._zr;this._loadingFX=i,a.add(i)}},e.prototype.hideLoading=function(){this._disposed||(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},e.prototype.makeActionFromEvent=function(r){var n=k({},r);return n.type=uh[r.type],n},e.prototype.dispatchAction=function(r,n){if(!this._disposed&&($(n)||(n={silent:!!n}),vl[r.type]&&this._model)){if(this[Ne])return void this._pendingActions.push(r);var i=n.silent;oh.call(this,r,i);var a=n.flush;a?this._zr.flush():!1!==a&&oe.browser.weChat&&this._throttledZrFlush(),Zi.call(this,i),$i.call(this,i)}},e.prototype.updateLabelLayout=function(){rr.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(r){if(!this._disposed){var n=r.seriesIndex;this.getModel().getSeriesByIndex(n).appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},e.internalField=function(){function n(c){c.clearColorPalette(),c.eachSeries(function(v){v.clearColorPalette()})}function a(c){for(var v=[],h=c.currentStates,d=0;d<h.length;d++){var m=h[d];"emphasis"===m||"blur"===m||"select"===m||v.push(m)}c.selected&&c.states.select&&v.push("select"),2===c.hoverState&&c.states.emphasis?v.push("emphasis"):1===c.hoverState&&c.states.blur&&v.push("blur"),c.useStates(v)}function l(c,v){if(!c.preventAutoZ){var h=wy(c);v.eachRendered(function(d){return Dy(d,h.z,h.zlevel),!0})}}function u(c,v){v.eachRendered(function(h){if(!Bi(h)){var d=h.getTextContent(),m=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),m&&m.stateTransition&&(m.stateTransition=null),h.hasState()?(h.prevStates=h.currentStates,h.clearStates()):h.prevStates&&(h.prevStates=null)}})}function f(c,v){var h=c.getModel("stateAnimation"),d=c.isAnimationEnabled(),m=h.get("duration"),p=m>0?{duration:m,delay:h.get("delay"),easing:h.get("easing")}:null;v.eachRendered(function(g){if(g.states&&g.states.emphasis){if(Bi(g))return;if(g instanceof Se&&function CT(t){var e=qp(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var r=t.states.select||{};e.selectFill=r.style&&r.style.fill||null,e.selectStroke=r.style&&r.style.stroke||null}(g),g.__dirty){var y=g.prevStates;y&&g.useStates(y)}if(d){g.stateTransition=p;var _=g.getTextContent(),C=g.getTextGuideLine();_&&(_.stateTransition=p),C&&(C.stateTransition=p)}g.__dirty&&a(g)}})}ui=function(c){var v=c._scheduler;v.restorePipelines(c._model),v.prepareStageTasks(),ih(c,!0),ih(c,!1),v.plan()},ih=function(c,v){for(var h=c._model,d=c._scheduler,m=v?c._componentsViews:c._chartsViews,p=v?c._componentsMap:c._chartsMap,g=c._zr,y=c._api,_=0;_<m.length;_++)m[_].__alive=!1;function C(S){var x=S.__requireNewView;S.__requireNewView=!1;var T="_ec_"+S.id+"_"+S.type,w=!x&&p[T];if(!w){var L=hr(S.type);(w=new(v?Bt.getClass(L.main,L.sub):Hr.getClass(L.sub))).init(h,y),p[T]=w,m.push(w),g.add(w.group)}S.__viewId=w.__id=T,w.__alive=!0,w.__model=S,w.group.__ecComponentInfo={mainType:S.mainType,index:S.componentIndex},!v&&d.prepareView(w,S,h,y)}for(v?h.eachComponent(function(S,x){"series"!==S&&C(x)}):h.eachSeries(C),_=0;_<m.length;){var b=m[_];b.__alive?_++:(!v&&b.renderTask.dispose(),g.remove(b.group),b.dispose(h,y),m.splice(_,1),p[b.__id]===b&&delete p[b.__id],b.__id=b.group.__ecComponentInfo=null)}},ul=function(c,v,h,d,m){var p=c._model;if(p.setUpdatePayload(h),d){var g={};g[d+"Id"]=h[d+"Id"],g[d+"Index"]=h[d+"Index"],g[d+"Name"]=h[d+"Name"];var y={mainType:d,query:g};m&&(y.subType=m);var C,_=h.excludeSeriesId;null!=_&&(C=ae(),D(He(_),function(S){var x=ot(S,null);null!=x&&C.set(x,!0)})),p&&p.eachComponent(y,function(S){if(!C||null==C.get(S.id))if(ag(h))if(S instanceof vn)h.type===jn&&!h.notBlur&&!S.get(["emphasis","disabled"])&&function uT(t,e,r){var n=t.seriesIndex,i=t.getData(e.dataType);if(i){var a=Da(i,e);a=(z(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),l=0;!o&&l<s;)o=i.getItemGraphicEl(l++);if(o){var u=ve(o);Af(n,u.focus,u.blurScope,r)}else{var f=t.get(["emphasis","focus"]),c=t.get(["emphasis","blurScope"]);null!=f&&Af(n,f,c,r)}}}(S,h,c._api);else{var T=Rf(S.mainType,S.componentIndex,h.name,c._api),L=T.dispatchers;h.type===jn&&T.focusSelf&&!h.notBlur&&Pf(S.mainType,S.componentIndex,c._api),L&&D(L,function(A){h.type===jn?Mf(A):Lf(A)})}else If(h)&&S instanceof vn&&(function hT(t,e){if(If(e)){var n=e.dataType,a=Da(t.getData(n),e);z(a)||(a=[a]),t[e.type===ys?"toggleSelect":e.type===ms?"select":"unselect"](a,n)}}(S,h),rg(S),Nt(c))},c),p&&p.eachComponent(y,function(S){C&&null!=C.get(S.id)||b(c["series"===d?"_chartsMap":"_componentsMap"][S.__viewId])},c)}else D([].concat(c._componentsViews).concat(c._chartsViews),b);function b(S){S&&S.__alive&&S[v]&&S[v](S.__model,p,c._api,h)}},Gr={prepareAndUpdate:function(c){ui(this),Gr.update.call(this,c,c&&{optionChanged:null!=c.newOption})},update:function(c,v){var h=this._model,d=this._api,m=this._zr,p=this._coordSysMgr,g=this._scheduler;if(h){h.setUpdatePayload(c),g.restoreData(h,c),g.performSeriesTasks(h),p.create(h,d),g.performDataProcessorTasks(h,c),ah(this,h),p.update(h,d),n(h),g.performVisualTasks(h,c);var y=h.get("backgroundColor")||"transparent";m.setBackgroundColor(y);var _=h.get("darkMode");null!=_&&"auto"!==_&&m.setDarkMode(_),sh(this,h,d,c,v),rr.trigger("afterupdate",h,d)}},updateTransform:function(c){var v=this,h=this._model,d=this._api;if(h){h.setUpdatePayload(c);var m=[];h.eachComponent(function(g,y){if("series"!==g){var _=v.getViewOfComponentModel(y);if(_&&_.__alive)if(_.updateTransform){var C=_.updateTransform(y,h,d,c);C&&C.update&&m.push(_)}else m.push(_)}});var p=ae();h.eachSeries(function(g){var y=v._chartsMap[g.__viewId];if(y.updateTransform){var _=y.updateTransform(g,h,d,c);_&&_.update&&p.set(g.uid,1)}else p.set(g.uid,1)}),n(h),this._scheduler.performVisualTasks(h,c,{setDirty:!0,dirtyMap:p}),cl(this,h,d,c,{},p),rr.trigger("afterupdate",h,d)}},updateView:function(c){var v=this._model;v&&(v.setUpdatePayload(c),Hr.markUpdateMethod(c,"updateView"),n(v),this._scheduler.performVisualTasks(v,c,{setDirty:!0}),sh(this,v,this._api,c,{}),rr.trigger("afterupdate",v,this._api))},updateVisual:function(c){var v=this,h=this._model;h&&(h.setUpdatePayload(c),h.eachSeries(function(d){d.getData().clearAllVisual()}),Hr.markUpdateMethod(c,"updateVisual"),n(h),this._scheduler.performVisualTasks(h,c,{visualType:"visual",setDirty:!0}),h.eachComponent(function(d,m){if("series"!==d){var p=v.getViewOfComponentModel(m);p&&p.__alive&&p.updateVisual(m,h,v._api,c)}}),h.eachSeries(function(d){v._chartsMap[d.__viewId].updateVisual(d,h,v._api,c)}),rr.trigger("afterupdate",h,this._api))},updateLayout:function(c){Gr.update.call(this,c)}},fl=function r(c,v,h,d,m){if(!c._disposed)for(var y,p=c._model,g=c._coordSysMgr.getCoordinateSystems(),_=Ju(p,h),C=0;C<g.length;C++){var b=g[C];if(b[v]&&null!=(y=b[v](p,_,d,m)))return y}},ah=function(c,v){var h=c._chartsMap,d=c._scheduler;v.eachSeries(function(m){d.updateStreamModes(m,h[m.__viewId])})},oh=function(c,v){var h=this,d=this.getModel(),p=c.escapeConnect,g=vl[c.type],y=(g.update||"update").split(":"),_=y.pop(),C=null!=y[0]&&hr(y[0]);this[Ne]=!0,Ki(this);var b=[c],S=!1;c.batch&&(S=!0,b=K(c.batch,function(O){return(O=be(k({},O),c)).batch=null,O}));var T,x=[],w=[],L=g.nonRefinedEventType,A=If(c),R=ag(c);if(R&&tg(this._api),D(b,function(O){var q=g.action(O,d,h._api);if(g.refineEvent?w.push(q):T=q,(T=T||k({},O)).type=L,x.push(T),R){var W=ef(c),G=W.mainTypeSpecified?W.queryOptionMap.keys()[0]:"series";ul(h,_,O,G),Nt(h)}else A?(ul(h,_,O,"series"),Nt(h)):C&&ul(h,_,O,C.main,C.sub)}),"none"!==_&&!R&&!A&&!C)try{this[Ve]?(ui(this),Gr.update.call(this,c),this[Ve]=null):Gr[_].call(this,c)}catch(O){throw this[Ne]=!1,O}if(T=S?{type:L,escapeConnect:p,batch:x}:x[0],this[Ne]=!1,!v){var M=void 0;if(g.refineEvent){var E=g.refineEvent(w,c,d,this._api).eventContent;ar($(E)),(M=be({type:g.refinedEventType},E)).fromAction=c.type,M.fromActionPayload=c,M.escapeConnect=!0}var I=this._messageCenter;I.trigger(T.type,T),M&&I.trigger(M.type,M)}},Zi=function(c){for(var v=this._pendingActions;v.length;){var h=v.shift();oh.call(this,h,c)}},$i=function(c){!c&&this.trigger("updated")},T0=function(c,v){c.on("rendered",function(h){v.trigger("rendered",h),c.animation.isFinished()&&!v[Ve]&&!v._scheduler.unfinished&&!v._pendingActions.length&&v.trigger("finished")})},w0=function(c,v){c.on("mouseover",function(h){var m=eo(h.target,Ef);m&&(function fT(t,e,r){var n=ve(t),i=Rf(n.componentMainType,n.componentIndex,n.componentHighDownName,r),a=i.dispatchers;a?(i.focusSelf&&Pf(n.componentMainType,n.componentIndex,r),D(a,function(s){return Zp(s,e)})):(Af(n.seriesIndex,n.focus,n.blurScope,r),"self"===n.focus&&Pf(n.componentMainType,n.componentIndex,r),Zp(t,e))}(m,h,v._api),Nt(v))}).on("mouseout",function(h){var m=eo(h.target,Ef);m&&(function cT(t,e,r){tg(r);var n=ve(t),i=Rf(n.componentMainType,n.componentIndex,n.componentHighDownName,r).dispatchers;i?D(i,function(a){return $p(a,e)}):$p(t,e)}(m,h,v._api),Nt(v))}).on("click",function(h){var m=eo(h.target,function(y){return null!=ve(y).dataIndex},!0);if(m){var p=m.selected?"unselect":"select",g=ve(m);v._api.dispatchAction({type:p,dataType:g.dataType,dataIndexInside:g.dataIndex,seriesIndex:g.seriesIndex,isFromClick:!0})}})},sh=function(c,v,h,d,m){(function i(c){var v=[],h=[],d=!1;if(c.eachComponent(function(y,_){var C=_.get("zlevel")||0,b=_.get("z")||0,S=_.getZLevelKey();d=d||!!S,("series"===y?h:v).push({zlevel:C,z:b,idx:_.componentIndex,type:y,key:S})}),d){var p,g,m=v.concat(h);Fo(m,function(y,_){return y.zlevel===_.zlevel?y.z-_.z:y.zlevel-_.zlevel}),D(m,function(y){var _=c.getComponent(y.type,y.idx),C=y.zlevel,b=y.key;null!=p&&(C=Math.max(p,C)),b?(C===p&&b!==g&&C++,g=b):g&&(C===p&&C++,g=""),p=C,_.setZLevel(C)})}})(v),D0(c,v,h,d,m),D(c._chartsViews,function(p){p.__alive=!1}),cl(c,v,h,d,m),D(c._chartsViews,function(p){p.__alive||p.remove(v,h)})},D0=function(c,v,h,d,m,p){D(p||c._componentsViews,function(g){var y=g.__model;u(0,g),g.render(y,v,h,d),l(y,g),f(y,g)})},cl=function(c,v,h,d,m,p){var g=c._scheduler;m=k(m||{},{updatedSeries:v.getSeries()}),rr.trigger("series:beforeupdate",v,h,m);var y=!1;v.eachSeries(function(_){var C=c._chartsMap[_.__viewId];C.__alive=!0;var b=C.renderTask;g.updatePayload(b,d),u(0,C),p&&p.get(_.uid)&&b.dirty(),b.perform(g.getPerformArgs(b))&&(y=!0),C.group.silent=!!_.get("silent"),function s(c,v){var h=c.get("blendMode")||null;v.eachRendered(function(d){d.isGroup||(d.style.blend=h)})}(_,C),rg(_)}),g.unfinished=y||g.unfinished,rr.trigger("series:layoutlabels",v,h,m),rr.trigger("series:transition",v,h,m),v.eachSeries(function(_){var C=c._chartsMap[_.__viewId];l(_,C),f(_,C)}),function o(c,v){var m=0;c._zr.storage.traverse(function(p){p.isGroup||m++}),m>v.get("hoverLayerThreshold")&&!oe.node&&!oe.worker&&v.eachSeries(function(p){if(!p.preventUsingHoverLayer){var g=c._chartsMap[p.__viewId];g.__alive&&g.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}(c,v),rr.trigger("series:afterupdate",v,h,m)},Nt=function(c){c[rh]=!0,c.getZr().wakeUp()},Ki=function(c){c[ll]=(c[ll]+1)%1e3},A0=function(c){c[rh]&&(c.getZr().storage.traverse(function(v){Bi(v)||a(v)}),c[rh]=!1)},M0=function(c){return new(function(v){function h(){return null!==v&&v.apply(this,arguments)||this}return(0,X.C6)(h,v),h.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(d){for(;d;){var m=d.__ecComponentInfo;if(null!=m)return c._model.getComponent(m.mainType,m.index);d=d.parent}},h.prototype.enterEmphasis=function(d,m){Mf(d,m),Nt(c)},h.prototype.leaveEmphasis=function(d,m){Lf(d,m),Nt(c)},h.prototype.enterBlur=function(d){(function lT(t){kr(t,wf)})(d),Nt(c)},h.prototype.leaveBlur=function(d){Kp(d),Nt(c)},h.prototype.enterSelect=function(d){Qp(d),Nt(c)},h.prototype.leaveSelect=function(d){Jp(d),Nt(c)},h.prototype.getModel=function(){return c.getModel()},h.prototype.getViewOfComponentModel=function(d){return c.getViewOfComponentModel(d)},h.prototype.getViewOfSeriesModel=function(d){return c.getViewOfSeriesModel(d)},h.prototype.getMainProcessVersion=function(){return c[ll]},h}(Jg))(c)},L0=function(c){function v(h,d){for(var m=0;m<h.length;m++)h[m][nh]=d}D(uh,function(h,d){c._messageCenter.on(d,function(m){if(pl[c.group]&&0!==c[nh]){if(m&&m.escapeConnect)return;var p=c.makeActionFromEvent(m),g=[];D(fi,function(y){y!==c&&y.group===c.group&&g.push(y)}),v(g,0),D(g,function(y){1!==y[nh]&&y.dispatchAction(p)}),v(g,2)}})})}}(),e}(or),lh=hl.prototype;lh.on=_0("on"),lh.off=_0("off"),lh.one=function(t,e,r){var n=this;this.on.call(this,t,function i(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];e&&e.apply&&e.apply(this,a),n.off(t,i)},r)};var aA=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"],vl={},uh={},fh={},ch=[],hh=[],dl=[],P0={},vh={},fi={},pl={},oA=+new Date-0,sA=+new Date-0,dh="_echarts_instance_";function lA(t,e,r){var n=!(r&&r.ssr);if(n){var i=ph(t);if(i)return i}var a=new hl(t,e,r);return a.id="ec_"+oA++,fi[a.id]=a,n&&ap(t,dh,a.id),L0(a),rr.trigger("afterinit",a),a}function uA(t){if(z(t)){var e=t;t=null,D(e,function(r){null!=r.group&&(t=r.group)}),t=t||"g_"+sA++,D(e,function(r){r.group=t})}return pl[t]=!0,t}function R0(t){pl[t]=!1}var fA=R0;function cA(t){U(t)?t=fi[t]:t instanceof hl||(t=ph(t)),t instanceof hl&&!t.isDisposed()&&t.dispose()}function ph(t){return fi[function Xx(t,e){return t.getAttribute?t.getAttribute(e):t[e]}(t,dh)]}function hA(t){return fi[t]}function gh(t,e){P0[t]=e}function mh(t){le(hh,t)<0&&hh.push(t)}function yh(t,e){_h(ch,t,e,2e3)}function E0(t){gl("afterinit",t)}function I0(t){gl("afterupdate",t)}function gl(t,e){rr.on(t,e)}function ci(t,e,r){var n,i,a,o,s;function l(f){return f.toLowerCase()}ee(e)&&(r=e,e=""),$(t)?(n=t.type,i=t.event,o=t.update,s=t.publishNonRefinedEvent,r||(r=t.action),a=t.refineEvent):(n=t,i=e),i=l(i||n);var u=a?l(n):i;vl[n]||(ar(m0.test(n)&&m0.test(i)),a&&ar(i!==n),vl[n]={actionType:n,refinedEventType:i,nonRefinedEventType:u,update:o,action:r,refineEvent:a},fh[i]=1,a&&s&&(fh[u]=1),uh[u]=n)}function k0(t,e){Ps.register(t,e)}function vA(t){var e=Ps.get(t);if(e)return e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice()}function dA(t,e){h0(t,e)}function O0(t,e){_h(dl,t,e,1e3,"layout")}function dn(t,e){_h(dl,t,e,3e3,"visual")}var B0=[];function _h(t,e,r,n,i){if((ee(e)||$(e))&&(r=e,e=n),!(le(B0,r)>=0)){B0.push(r);var a=Gy.wrapStageHandler(r,i);a.__prio=e,a.__raw=r,t.push(a)}}function Ch(t,e){vh[t]=e}function pA(t){bv({createCanvas:t})}function F0(t,e,r){var n=f0("registerMap");n&&n(t,e,r)}function gA(t){var e=f0("getMap");return e&&e(t)}var N0=function SD(t){var e=(t=se(t)).type;e||ut("");var n=e.split(":");2!==n.length&&ut("");var i=!1;"echarts"===n[0]&&(e=n[1],i=!0),t.__isBuiltIn=i,wm.set(e,t)};function Sh(t,e,r,n){return{eventContent:{selected:vT(r),isFromClick:e.isFromClick||!1}}}dn(2e3,WM),dn(4500,qM),dn(4500,UM),dn(2e3,oL),dn(4500,sL),dn(7e3,function GL(t,e){t.eachRawSeries(function(r){if(!t.isSeriesFiltered(r)){var n=r.getData();n.hasItemVisual()&&n.each(function(o){var s=n.getItemVisual(o,"decal");s&&(n.ensureUniqueItemVisual(o,"style").decal=eh(s,e))});var i=n.getVisual("decal");i&&(n.getVisual("style").decal=eh(i,e))}})}),mh(om),yh(900,function Zw(t){var e=ae();t.eachSeries(function(r){var n=r.get("stack");if(n){var i=e.get(n)||e.set(n,[]),a=r.getData(),o={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:r};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;i.push(o)}}),e.each(function(r){0!==r.length&&("seriesDesc"===(r[0].seriesModel.get("stackOrder")||"seriesAsc")&&r.reverse(),D(r,function(a,o){a.data.setCalculationInfo("stackedOnSeries",o>0?r[o-1].seriesModel:null)}),function $w(t){D(t,function(e,r){var n=[],i=[NaN,NaN],a=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(u,f,c){var h,d,v=o.get(e.stackedDimension,c);if(isNaN(v))return i;s?d=o.getRawIndex(c):h=o.get(e.stackedByDimension,c);for(var m=NaN,p=r-1;p>=0;p--){var g=t[p];if(s||(d=g.data.rawIndexOf(g.stackedByDimension,h)),d>=0){var y=g.data.getByRawIndex(g.stackResultDimension,d);if("all"===l||"positive"===l&&y>0||"negative"===l&&y<0||"samesign"===l&&v>=0&&y>0||"samesign"===l&&v<=0&&y<0){v=Lx(v,y),m=y;break}}}return n[0]=v,n[1]=m,n})})}(r))})}),Ch("default",function YM(t,e){be(e=e||{},{text:"loading",textColor:ue.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:ue.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var r=new Tt,n=new Ye({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});r.add(n);var o,i=new Be({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new Ye({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return r.add(a),e.showSpinner&&((o=new Ys({shape:{startAngle:-el/2,endAngle:-el/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*el/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:3*el/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=i.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(t.getWidth()-2*l-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),f=t.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:f}),a.setShape({x:u-l,y:f-l,width:2*l,height:2*l}),n.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},r.resize(),r}),ci({type:jn,event:jn,update:jn},it),ci({type:gs,event:gs,update:gs},it),ci({type:ms,event:Tf,update:ms,action:it,refineEvent:Sh,publishNonRefinedEvent:!0}),ci({type:xf,event:Tf,update:xf,action:it,refineEvent:Sh,publishNonRefinedEvent:!0}),ci({type:ys,event:Tf,update:ys,action:it,refineEvent:Sh,publishNonRefinedEvent:!0}),gh("default",{}),gh("dark",iL);var mA={},z0=[],yA={registerPreprocessor:mh,registerProcessor:yh,registerPostInit:E0,registerPostUpdate:I0,registerUpdateLifecycle:gl,registerAction:ci,registerCoordinateSystem:k0,registerLayout:O0,registerVisual:dn,registerTransform:N0,registerLoading:Ch,registerMap:F0,registerImpl:function WL(t,e){u0[t]=e},PRIORITY:g0,ComponentModel:xe,ComponentView:Bt,SeriesModel:vn,ChartView:Hr,registerComponentModel:function(t){xe.registerClass(t)},registerComponentView:function(t){Bt.registerClass(t)},registerSeriesModel:function(t){vn.registerClass(t)},registerChartView:function(t){Hr.registerClass(t)},registerCustomSeries:function(t,e){h0(t,e)},registerSubTypeDefaulter:function(t,e){xe.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){Gd(t,e)}};function pn(t){z(t)?D(t,function(e){pn(e)}):le(z0,t)>=0||(z0.push(t),ee(t)&&(t={install:t}),t.install(yA))}function ro(t){return null==t?0:t.length||1}function H0(t){return t}var _A=function(){function t(e,r,n,i,a,o){this._old=e,this._new=r,this._oldKeyGetter=n||H0,this._newKeyGetter=i||H0,this.context=a,this._diffModeMultiple="multiple"===o}return t.prototype.add=function(e){return this._add=e,this},t.prototype.update=function(e){return this._update=e,this},t.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},t.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},t.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},t.prototype.remove=function(e){return this._remove=e,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var e=this._old,r=this._new,n={},i=new Array(e.length),a=new Array(r.length);this._initIndexMap(e,null,i,"_oldKeyGetter"),this._initIndexMap(r,n,a,"_newKeyGetter");for(var o=0;o<e.length;o++){var s=i[o],l=n[s],u=ro(l);if(u>1){var f=l.shift();1===l.length&&(n[s]=l[0]),this._update&&this._update(f,o)}else 1===u?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},t.prototype._executeMultiple=function(){var r=this._new,n={},i={},a=[],o=[];this._initIndexMap(this._old,n,a,"_oldKeyGetter"),this._initIndexMap(r,i,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var l=a[s],u=n[l],f=i[l],c=ro(u),v=ro(f);if(c>1&&1===v)this._updateManyToOne&&this._updateManyToOne(f,u),i[l]=null;else if(1===c&&v>1)this._updateOneToMany&&this._updateOneToMany(f,u),i[l]=null;else if(1===c&&1===v)this._update&&this._update(f,u),i[l]=null;else if(c>1&&v>1)this._updateManyToMany&&this._updateManyToMany(f,u),i[l]=null;else if(c>1)for(var h=0;h<c;h++)this._remove&&this._remove(u[h]);else this._remove&&this._remove(u)}this._performRestAdd(o,i)},t.prototype._performRestAdd=function(e,r){for(var n=0;n<e.length;n++){var i=e[n],a=r[i],o=ro(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else 1===o&&this._add&&this._add(a);r[i]=null}},t.prototype._initIndexMap=function(e,r,n,i){for(var a=this._diffModeMultiple,o=0;o<e.length;o++){var s="_ec_"+this[i](e[o],o);if(a||(n[o]=s),r){var l=r[s],u=ro(l);0===u?(r[s]=o,a&&n.push(s)):1===u?r[s]=[l,o]:l.push(o)}}},t}();const CA=_A;var SA=function(){function t(e,r){this._encode=e,this._schema=r}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t}();function bh(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}const ml=function(){return function t(e){this.otherDims={},null!=e&&k(this,e)}}();var DA=ye(),MA={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},G0=function(){function t(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=q0(this.source)))},t.prototype.getSourceDimensionIndex=function(e){return Q(this._dimNameMap.get(e),-1)},t.prototype.getSourceDimension=function(e){var r=this.source.dimensionsDefine;if(r)return r[e]},t.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,r=fm(this.source),n=!U0(e),i="",a=[],o=0,s=0;o<e;o++){var l=void 0,u=void 0,f=void 0,c=this.dimensions[s];if(c&&c.storeDimIndex===o)l=r?c.name:null,u=c.type,f=c.ordinalMeta,s++;else{var v=this.getSourceDimension(o);v&&(l=r?v.name:null,u=v.type)}a.push({property:l,type:u,ordinalMeta:f}),r&&null!=l&&(!c||!c.isCalculationCoord)&&(i+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),i+="$",i+=MA[u]||"f",f&&(i+=f.uid),i+="$"}var h=this.source;return{dimensions:a,hash:[h.seriesLayoutBy,h.startIndex,i].join("$$")}},t.prototype.makeOutputDimensionNames=function(){for(var e=[],r=0,n=0;r<this._fullDimCount;r++){var i=void 0,a=this.dimensions[n];if(a&&a.storeDimIndex===r)a.isCalculationCoord||(i=a.name),n++;else{var o=this.getSourceDimension(r);o&&(i=o.name)}e.push(i)}return e},t.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t}();function V0(t){return t instanceof G0}function W0(t){for(var e=ae(),r=0;r<(t||[]).length;r++){var n=t[r],i=$(n)?n.name:n;null!=i&&null==e.get(i)&&e.set(i,r)}return e}function q0(t){var e=DA(t);return e.dimNameMap||(e.dimNameMap=W0(t.dimensionsDefine))}function U0(t){return t>30}var X0,yl,io,ao,xh,oo,Th,no=$,gn=K,LA=typeof Int32Array>"u"?Array:Int32Array,PA=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],RA=["_approximateExtent"],EA=function(){function t(e,r){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var n,i=!1;V0(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(i=!0,n=e),n=n||["x","y"];for(var a={},o=[],s={},l=!1,u={},f=0;f<n.length;f++){var c=n[f],v=U(c)?new ml({name:c}):c instanceof ml?c:new ml(c),h=v.name;v.type=v.type||"float",v.coordDim||(v.coordDim=h,v.coordDimIndex=0);var d=v.otherDims=v.otherDims||{};o.push(h),a[h]=v,null!=u[h]&&(l=!0),v.createInvertedIndices&&(s[h]=[]);var m=f;ge(v.storeDimIndex)&&(m=v.storeDimIndex),0===d.itemName&&(this._nameDimIdx=m),0===d.itemId&&(this._idDimIdx=m),i&&(v.storeDimIndex=f)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(l),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var p=this._dimIdxToName=ae();D(o,function(g){p.set(a[g].storeDimIndex,g)})}}return t.prototype.getDimension=function(e){var r=this._recognizeDimIndex(e);if(null==r)return e;if(r=e,!this._dimOmitted)return this.dimensions[r];var n=this._dimIdxToName.get(r);if(null!=n)return n;var i=this._schema.getSourceDimension(r);return i?i.name:void 0},t.prototype.getDimensionIndex=function(e){var r=this._recognizeDimIndex(e);if(null!=r)return r;if(null==e)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},t.prototype._recognizeDimIndex=function(e){if(ge(e)||null!=e&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},t.prototype._getStoreDimIndex=function(e){return this.getDimensionIndex(e)},t.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},t.prototype._initGetDimensionInfo=function(e){var r=this._dimInfos;this._getDimInfo=e?function(n){return r.hasOwnProperty(n)?r[n]:void 0}:function(n){return r[n]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(e,r){var n=this._dimSummary;if(null==r)return n.encodeFirstDimNotExtra[e];var i=n.encode[e];return i?i[r]:null},t.prototype.mapDimensionsAll=function(e){return(this._dimSummary.encode[e]||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(e,r,n){var a,i=this;if(e instanceof Cc&&(a=e),!a){var o=this.dimensions,s=hc(e)||Ze(e)?new gm(e,o.length):e;a=new Cc;var l=gn(o,function(u){return{type:i._dimInfos[u].type,property:u}});a.initData(s,l,n)}this._store=a,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=function bA(t,e){var r={},n=r.encode={},i=ae(),a=[],o=[],s={};D(t.dimensions,function(v){var h=t.getDimensionInfo(v),d=h.coordDim;if(d){var m=h.coordDimIndex;bh(n,d)[m]=v,h.isExtraCoord||(i.set(d,1),function TA(t){return!("ordinal"===t||"time"===t)}(h.type)&&(a[0]=v),bh(s,d)[m]=t.getDimensionIndex(h.name)),h.defaultTooltip&&o.push(v)}Ng.each(function(p,g){var y=bh(n,g),_=h.otherDims[g];null!=_&&!1!==_&&(y[_]=h.name)})});var l=[],u={};i.each(function(v,h){var d=n[h];u[h]=d[0],l=l.concat(d)}),r.dataDimsOnCoord=l,r.dataDimIndicesOnCoord=K(l,function(v){return t.getDimensionInfo(v).storeDimIndex}),r.encodeFirstDimNotExtra=u;var f=n.label;f&&f.length&&(a=f.slice());var c=n.tooltip;return c&&c.length?o=c.slice():o.length||(o=a.slice()),n.defaultedLabel=a,n.defaultedTooltip=o,r.userOutput=new SA(s,e),r}(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(e){var r=this._store.appendData(e);this._doInit(r[0],r[1])},t.prototype.appendValues=function(e,r){var n=this._store.appendValues(e,r&&r.length),i=n.start,a=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=i;s<a;s++)this._nameList[s]=r[s-i],o&&Th(this,s)},t.prototype._updateOrdinalMeta=function(){for(var e=this._store,r=this.dimensions,n=0;n<r.length;n++){var i=this._dimInfos[r[n]];i.ordinalMeta&&e.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return null==this._idDimIdx&&e.getSource().sourceFormat!==Nr&&!e.fillStorage},t.prototype._doInit=function(e,r){if(!(e>=r)){var i=this._store.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList;if(i.getSource().sourceFormat===Dt&&!i.pure)for(var u=[],f=e;f<r;f++){var c=i.getItem(f,u);if(!this.hasItemOption&&Fx(c)&&(this.hasItemOption=!0),c){var v=c.name;null==a[f]&&null!=v&&(a[f]=ot(v,null));var h=c.id;null==o[f]&&null!=h&&(o[f]=ot(h,null))}}if(this._shouldMakeIdFromName())for(f=e;f<r;f++)Th(this,f);X0(this)}},t.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},t.prototype.setApproximateExtent=function(e,r){r=this.getDimension(r),this._approximateExtent[r]=e.slice()},t.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},t.prototype.setCalculationInfo=function(e,r){no(e)?k(this._calculationInfo,e):this._calculationInfo[e]=r},t.prototype.getName=function(e){var r=this.getRawIndex(e),n=this._nameList[r];return null==n&&null!=this._nameDimIdx&&(n=io(this,this._nameDimIdx,r)),null==n&&(n=""),n},t.prototype._getCategory=function(e,r){var n=this._store.get(e,r),i=this._store.getOrdinalMeta(e);return i?i.categories[n]:n},t.prototype.getId=function(e){return yl(this,this.getRawIndex(e))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(e,r){var i=this._dimInfos[e];if(i)return this._store.get(i.storeDimIndex,r)},t.prototype.getByRawIndex=function(e,r){var i=this._dimInfos[e];if(i)return this._store.getByRawIndex(i.storeDimIndex,r)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},t.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},t.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},t.prototype.getValues=function(e,r){var n=this,i=this._store;return z(e)?i.getValues(gn(e,function(a){return n._getStoreDimIndex(a)}),r):i.getValues(e)},t.prototype.hasValue=function(e){for(var r=this._dimSummary.dataDimIndicesOnCoord,n=0,i=r.length;n<i;n++)if(isNaN(this._store.get(r[n],e)))return!1;return!0},t.prototype.indexOfName=function(e){for(var r=0,n=this._store.count();r<n;r++)if(this.getName(r)===e)return r;return-1},t.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},t.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},t.prototype.rawIndexOf=function(e,r){var n=e&&this._invertedIndicesMap[e],i=n&&n[r];return null==i||isNaN(i)?-1:i},t.prototype.each=function(e,r,n){ee(e)&&(n=r,r=e,e=[]);var i=n||this,a=gn(ao(e),this._getStoreDimIndex,this);this._store.each(a,i?he(r,i):r)},t.prototype.filterSelf=function(e,r,n){ee(e)&&(n=r,r=e,e=[]);var i=n||this,a=gn(ao(e),this._getStoreDimIndex,this);return this._store=this._store.filter(a,i?he(r,i):r),this},t.prototype.selectRange=function(e){var r=this,n={},i=de(e),a=[];return D(i,function(o){var s=r._getStoreDimIndex(o);n[s]=e[o],a.push(s)}),this._store=this._store.selectRange(n),this},t.prototype.mapArray=function(e,r,n){ee(e)&&(n=r,r=e,e=[]);var i=[];return this.each(e,function(){i.push(r&&r.apply(this,arguments))},n=n||this),i},t.prototype.map=function(e,r,n,i){var a=n||i||this,o=gn(ao(e),this._getStoreDimIndex,this),s=oo(this);return s._store=this._store.map(o,a?he(r,a):r),s},t.prototype.modify=function(e,r,n,i){var o=n||i||this,s=gn(ao(e),this._getStoreDimIndex,this);this._store.modify(s,o?he(r,o):r)},t.prototype.downSample=function(e,r,n,i){var a=oo(this);return a._store=this._store.downSample(this._getStoreDimIndex(e),r,n,i),a},t.prototype.minmaxDownSample=function(e,r){var n=oo(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),r),n},t.prototype.lttbDownSample=function(e,r){var n=oo(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),r),n},t.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},t.prototype.getItemModel=function(e){var r=this.hostModel,n=this.getRawDataItem(e);return new Fe(n,r,r&&r.ecModel)},t.prototype.diff=function(e){var r=this;return new CA(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(n){return yl(e,n)},function(n){return yl(r,n)})},t.prototype.getVisual=function(e){var r=this._visual;return r&&r[e]},t.prototype.setVisual=function(e,r){this._visual=this._visual||{},no(e)?k(this._visual,e):this._visual[e]=r},t.prototype.getItemVisual=function(e,r){var n=this._itemVisuals[e];return(n&&n[r])??this.getVisual(r)},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(e,r){var n=this._itemVisuals,i=n[e];i||(i=n[e]={});var a=i[r];return null==a&&(z(a=this.getVisual(r))?a=a.slice():no(a)&&(a=k({},a)),i[r]=a),a},t.prototype.setItemVisual=function(e,r,n){var i=this._itemVisuals[e]||{};this._itemVisuals[e]=i,no(r)?k(i,r):i[r]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(e,r){no(e)?k(this._layout,e):this._layout[e]=r},t.prototype.getLayout=function(e){return this._layout[e]},t.prototype.getItemLayout=function(e){return this._itemLayouts[e]},t.prototype.setItemLayout=function(e,r,n){this._itemLayouts[e]=n?k(this._itemLayouts[e]||{},r):r},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(e,r){(function(t,e,r,n){if(n){var i=ve(n);i.dataIndex=r,i.dataType=e,i.seriesIndex=t,i.ssrType="chart","group"===n.type&&n.traverse(function(a){var o=ve(a);o.seriesIndex=t,o.dataIndex=r,o.dataType=e,o.ssrType="chart"})}})(this.hostModel&&this.hostModel.seriesIndex,this.dataType,e,r),this._graphicEls[e]=r},t.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},t.prototype.eachItemGraphicEl=function(e,r){D(this._graphicEls,function(n,i){n&&e&&e.call(r,n,i)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:gn(this.dimensions,this._getDimInfo,this),this.hostModel)),xh(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(e,r){var n=this[e];ee(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat(Do(arguments)))})},t.internalField=(X0=function(e){var r=e._invertedIndicesMap;D(r,function(n,i){var a=e._dimInfos[i],o=a.ordinalMeta,s=e._store;if(o){n=r[i]=new LA(o.categories.length);for(var l=0;l<n.length;l++)n[l]=-1;for(l=0;l<s.count();l++)n[s.get(a.storeDimIndex,l)]=l}})},io=function(e,r,n){return ot(e._getCategory(r,n),null)},yl=function(e,r){var n=e._idList[r];return null==n&&null!=e._idDimIdx&&(n=io(e,e._idDimIdx,r)),null==n&&(n="e\0\0"+r),n},ao=function(e){return z(e)||(e=null!=e?[e]:[]),e},oo=function(e){var r=new t(e._schema?e._schema:gn(e.dimensions,e._getDimInfo,e),e.hostModel);return xh(r,e),r},xh=function(e,r){D(PA.concat(r.__wrappedMethods||[]),function(n){r.hasOwnProperty(n)&&(e[n]=r[n])}),e.__wrappedMethods=r.__wrappedMethods,D(RA,function(n){e[n]=se(r[n])}),e._calculationInfo=k({},r._calculationInfo)},void(Th=function(e,r){var n=e._nameList,i=e._idList,a=e._nameDimIdx,o=e._idDimIdx,s=n[r],l=i[r];if(null==s&&null!=a&&(n[r]=s=io(e,a,r)),null==l&&null!=o&&(i[r]=l=io(e,o,r)),null==l&&null!=s){var u=e._nameRepeatCount,f=u[s]=(u[s]||0)+1;l=s,f>1&&(l+="__ec__"+f),i[r]=l}})),t}();const wh=EA;function IA(t,e){return Dh(t,e).dimensions}function Dh(t,e){hc(t)||(t=dc(t));var r=(e=e||{}).coordDimensions||[],n=e.dimensionsDefine||t.dimensionsDefine||[],i=ae(),a=[],o=function OA(t,e,r,n){var i=Math.max(t.dimensionsDetectedCount||1,e.length,r.length,n||0);return D(e,function(a){var o;$(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}(t,r,n,e.dimensionsCount),s=e.canOmitUnusedDimensions&&U0(o),l=n===t.dimensionsDefine,u=l?q0(t):W0(n),f=e.encodeDefine;!f&&e.encodeDefaulter&&(f=e.encodeDefaulter(t,o));for(var c=ae(f),v=new Dm(o),h=0;h<v.length;h++)v[h]=-1;function d(w){var L=v[w];if(L<0){var A=n[w],R=$(A)?A:{name:A},M=new ml,E=R.name;return null!=E&&null!=u.get(E)&&(M.name=M.displayName=E),null!=R.type&&(M.type=R.type),null!=R.displayName&&(M.displayName=R.displayName),v[w]=a.length,M.storeDimIndex=w,a.push(M),M}return a[L]}if(!s)for(h=0;h<o;h++)d(h);c.each(function(w,L){var A=He(w).slice();if(1===A.length&&!U(A[0])&&A[0]<0)c.set(L,!1);else{var R=c.set(L,[]);D(A,function(M,E){var I=U(M)?u.get(M):M;null!=I&&I<o&&(R[E]=I,p(d(I),L,E))})}});var m=0;function p(w,L,A){null!=Ng.get(L)?w.otherDims[L]=A:(w.coordDim=L,w.coordDimIndex=A,i.set(L,!0))}D(r,function(w){var L,A,R,M;if(U(w))L=w,M={};else{L=(M=w).name;var E=M.ordinalMeta;M.ordinalMeta=null,(M=k({},M)).ordinalMeta=E,A=M.dimsDef,R=M.otherDims,M.name=M.coordDim=M.coordDimIndex=M.dimsDef=M.otherDims=null}var I=c.get(L);if(!1!==I){if(!(I=He(I)).length)for(var O=0;O<(A&&A.length||1);O++){for(;m<o&&null!=d(m).coordDim;)m++;m<o&&I.push(m++)}D(I,function(q,W){var H=d(q);if(l&&null!=M.type&&(H.type=M.type),p(be(H,M),L,W),null==H.name&&A){var V=A[W];!$(V)&&(V={name:V}),H.name=H.displayName=V.name,H.defaultTooltip=V.defaultTooltip}R&&be(H.otherDims,R)})}});var g=e.generateCoord,y=e.generateCoordCount,_=null!=y;y=g?y||1:0;var C=g||"value";function b(w){null==w.name&&(w.name=w.coordDim)}if(s)D(a,function(w){b(w)}),a.sort(function(w,L){return w.storeDimIndex-L.storeDimIndex});else for(var S=0;S<o;S++){var x=d(S);null==x.coordDim&&(x.coordDim=BA(C,i,_),x.coordDimIndex=0,(!g||y<=0)&&(x.isExtraCoord=!0),y--),b(x),null==x.type&&(1===Gg(t,S)||x.isExtraCoord&&(null!=x.otherDims.itemName||null!=x.otherDims.seriesName))&&(x.type="ordinal")}return function kA(t){for(var e=ae(),r=0;r<t.length;r++){var n=t[r],i=n.name,a=e.get(i)||0;a>0&&(n.name=i+(a-1)),a++,e.set(i,a)}}(a),new G0({source:t,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function BA(t,e,r){if(r||e.hasKey(t)){for(var n=0;e.hasKey(t+n);)n++;t+=n}return e.set(t,!0),t}var FA=function(){return function t(e){this.coordSysDims=[],this.axisMap=ae(),this.categoryAxisMap=ae(),this.coordSysName=e}}(),zA={cartesian2d:function(t,e,r,n){var i=t.getReferringComponents("xAxis",on).models[0],a=t.getReferringComponents("yAxis",on).models[0];e.coordSysDims=["x","y"],r.set("x",i),r.set("y",a),Qi(i)&&(n.set("x",i),e.firstCategoryDimIndex=0),Qi(a)&&(n.set("y",a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,r,n){var i=t.getReferringComponents("singleAxis",on).models[0];e.coordSysDims=["single"],r.set("single",i),Qi(i)&&(n.set("single",i),e.firstCategoryDimIndex=0)},polar:function(t,e,r,n){var i=t.getReferringComponents("polar",on).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),Qi(a)&&(n.set("radius",a),e.firstCategoryDimIndex=0),Qi(o)&&(n.set("angle",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e,r,n){e.coordSysDims=["lng","lat"]},parallel:function(t,e,r,n){var i=t.ecModel,a=i.getComponent("parallel",t.get("parallelIndex")),o=e.coordSysDims=a.dimensions.slice();D(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),f=o[l];r.set(f,u),Qi(u)&&(n.set(f,u),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=l))})},matrix:function(t,e,r,n){var i=t.getReferringComponents("matrix",on).models[0];e.coordSysDims=["x","y"];var a=i.getDimensionModel("x"),o=i.getDimensionModel("y");r.set("x",a),r.set("y",o),n.set("x",a),n.set("y",o)}};function Qi(t){return"category"===t.get("type")}function j0(t,e,r){var a,o,s,n=(r=r||{}).byIndex,i=r.stackedCoordDimension;!function HA(t){return!V0(t.schema)}(e)?(a=(o=e.schema).dimensions,s=e.store):a=e;var u,f,c,v,l=!(!t||!t.get("stack"));if(D(a,function(y,_){U(y)&&(a[_]=y={name:y}),l&&!y.isExtraCoord&&(!n&&!u&&y.ordinalMeta&&(u=y),!f&&"ordinal"!==y.type&&"time"!==y.type&&(!i||i===y.coordDim)&&(f=y))}),f&&!n&&!u&&(n=!0),f){c="__\0ecstackresult_"+t.id,v="__\0ecstackedover_"+t.id,u&&(u.createInvertedIndices=!0);var h=f.coordDim,d=f.type,m=0;D(a,function(y){y.coordDim===h&&m++});var p={name:c,coordDim:h,coordDimIndex:m,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},g={name:v,coordDim:v,coordDimIndex:m+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(p.storeDimIndex=s.ensureCalculationDimension(v,d),g.storeDimIndex=s.ensureCalculationDimension(c,d)),o.appendCalculationDimension(p),o.appendCalculationDimension(g)):(a.push(p),a.push(g))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:v,stackResultDimension:c}}function Z0(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function so(t){return cr(t)+2}function K0(t,e,r){t[e]=Math.max(Math.min(t[e],r[1]),r[0])}function Mh(t,e){return t>=e[0]&&t<=e[1]}var KA=function(){function t(){this.normalize=Q0,this.scale=J0}return t.prototype.updateMethods=function(e){e.hasBreaks()?(this.normalize=he(e.normalize,e),this.scale=he(e.scale,e)):(this.normalize=Q0,this.scale=J0)},t}();function Q0(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function J0(t,e){return t*(e[1]-e[0])+e[0]}function e_(t,e,r){var n=Math.log(t);return[Math.log(r?e[0]:Math.max(0,e[0]))/n,Math.log(r?e[1]:Math.max(0,e[1]))/n]}var t_=function(){function t(e){this._calculator=new KA,this._setting=e||{},this._extent=[1/0,-1/0];var r=null;r&&(this._brkCtx=r.createScaleBreakContext(),this._brkCtx.update(this._extent))}return t.prototype.getSetting=function(e){return this._setting[e]},t.prototype._innerUnionExtent=function(e){var r=this._extent;this._innerSetExtent(e[0]<r[0]?e[0]:r[0],e[1]>r[1]?e[1]:r[1])},t.prototype.unionExtentFromData=function(e,r){this._innerUnionExtent(e.getApproximateExtent(r))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(e,r){this._innerSetExtent(e,r)},t.prototype._innerSetExtent=function(e,r){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(r)||(n[1]=r),this._brkCtx&&this._brkCtx.update(n)},t.prototype.setBreaksFromOption=function(e){var r=null;r&&this._innerSetBreak(r.parseAxisBreakOption(e,he(this.parse,this)))},t.prototype._innerSetBreak=function(e){this._brkCtx&&(this._brkCtx.setBreaks(e),this._calculator.updateMethods(this._brkCtx),this._brkCtx.update(this._extent))},t.prototype._innerGetBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},t.prototype.hasBreaks=function(){return!!this._brkCtx&&this._brkCtx.hasBreaks()},t.prototype._getExtentSpanWithBreaks=function(){return this._brkCtx&&this._brkCtx.hasBreaks()?this._brkCtx.getExtentSpan():this._extent[1]-this._extent[0]},t.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(e){this._isBlank=e},t}();ss(t_);const hi=t_;var QA=0,JA=function(){function t(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++QA,this._onCollect=e.onCollect}return t.createByAxisModel=function(e){var r=e.option,n=r.data,i=n&&K(n,eP);return new t({categories:i,needCollect:!i,deduplication:!1!==r.dedplication})},t.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},t.prototype.parseAndCollect=function(e){var r,n=this._needCollect;if(!U(e)&&!n)return e;if(n&&!this._deduplication)return this.categories[r=this.categories.length]=e,this._onCollect&&this._onCollect(e,r),r;var i=this._getOrCreateMap();return null==(r=i.get(e))&&(n?(this.categories[r=this.categories.length]=e,i.set(e,r),this._onCollect&&this._onCollect(e,r)):r=NaN),r},t.prototype._getOrCreateMap=function(){return this._map||(this._map=ae(this.categories))},t}();function eP(t){return $(t)&&null!=t.value?t.value:t+""}const r_=JA;var n_=function(t){function e(r){var n=t.call(this,r)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new r_({})),z(i)&&(i=new r_({categories:K(i,function(a){return $(a)?a.value:a})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return(0,X.C6)(e,t),e.prototype.parse=function(r){return null==r?NaN:U(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},e.prototype.contain=function(r){return Mh(r,this._extent)&&r>=0&&r<this._ordinalMeta.categories.length},e.prototype.normalize=function(r){return r=this._getTickNumber(r),this._calculator.normalize(r,this._extent)},e.prototype.scale=function(r){return r=Math.round(this._calculator.scale(r,this._extent)),this.getRawOrdinalNumber(r)},e.prototype.getTicks=function(){for(var r=[],n=this._extent,i=n[0];i<=n[1];)r.push({value:i}),i++;return r},e.prototype.getMinorTicks=function(r){},e.prototype.setSortInfo=function(r){if(null!=r){for(var n=r.ordinalNumbers,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o<l;++o){var u=n[o];i[o]=u,a[u]=o}for(var f=0;o<s;++o){for(;null!=a[f];)f++;i.push(f),a[f]=o}}else this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null},e.prototype._getTickNumber=function(r){var n=this._ticksByOrdinalNumber;return n&&r>=0&&r<n.length?n[r]:r},e.prototype.getRawOrdinalNumber=function(r){var n=this._ordinalNumbersByTick;return n&&r>=0&&r<n.length?n[r]:r},e.prototype.getLabel=function(r){if(!this.isBlank()){var n=this.getRawOrdinalNumber(r.value),i=this._ordinalMeta.categories[n];return null==i?"":i+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.isInExtentRange=function(r){return r=this._getTickNumber(r),this._extent[0]<=r&&this._extent[1]>=r},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(hi);hi.registerClass(n_);const tP=n_;var mn=fr,i_=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.type="interval",r._interval=0,r._intervalPrecision=2,r}return(0,X.C6)(e,t),e.prototype.parse=function(r){return null==r||""===r?NaN:Number(r)},e.prototype.contain=function(r){return Mh(r,this._extent)},e.prototype.normalize=function(r){return this._calculator.normalize(r,this._extent)},e.prototype.scale=function(r){return this._calculator.scale(r,this._extent)},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(r){this._interval=r,this._niceExtent=this._extent.slice(),this._intervalPrecision=so(r)},e.prototype.getTicks=function(r){var n=this._interval,i=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=null,l=[];if(!n)return l;if("only_break"===(r=r||{}).breakTicks&&s)return s.addBreaksToTicks(l,this._brkCtx.breaks,this._extent),l;i[0]<a[0]&&l.push(r.expandToNicedExtent?{value:mn(a[0]-n,o)}:{value:i[0]});for(var f=function(d,m){return Math.round((m-d)/n)},c=a[0];c<=a[1];){if(l.push({value:c}),c=mn(c+n,o),this._brkCtx){var v=this._brkCtx.calcNiceTickMultiple(c,f);v>=0&&(c=mn(c+v*n,o))}if(l.length>0&&c===l[l.length-1].value)break;if(l.length>1e4)return[]}var h=l.length?l[l.length-1].value:a[1];return i[1]>h&&l.push(r.expandToNicedExtent?{value:mn(h+n,o)}:{value:i[1]}),s&&s.pruneTicksByBreak(r.pruneByBreak,l,this._brkCtx.breaks,function(d){return d.value},this._interval,this._extent),"none"!==r.breakTicks&&s&&s.addBreaksToTicks(l,this._brkCtx.breaks,this._extent),l},e.prototype.getMinorTicks=function(r){for(var n=this.getTicks({expandToNicedExtent:!0}),i=[],a=this.getExtent(),o=1;o<n.length;o++){var s=n[o],l=n[o-1];if(!l.break&&!s.break){for(var u=0,f=[],v=(s.value-l.value)/r,h=so(v);u<r-1;){var d=mn(l.value+(u+1)*v,h);d>a[0]&&d<a[1]&&f.push(d),u++}var m=gt();m&&m.pruneTicksByBreak("auto",f,this._getNonTransBreaks(),function(p){return p},this._interval,a),i.push(f)}}return i},e.prototype._getNonTransBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},e.prototype.getLabel=function(r,n){if(null==r)return"";var i=n&&n.precision;return null==i?i=cr(r.value)||0:"auto"===i&&(i=this._intervalPrecision),Kf(mn(r.value,i,!0))},e.prototype.calcNiceTicks=function(r,n,i){r=r||5;var a=this._extent.slice(),o=this._getExtentSpanWithBreaks();if(isFinite(o)){o<0&&(o=-o,a.reverse(),this._innerSetExtent(a[0],a[1]),a=this._extent.slice());var s=function ZA(t,e,r,n,i){var a={},o=a.interval=$u(e/r,!0);null!=n&&o<n&&(o=a.interval=n),null!=i&&o>i&&(o=a.interval=i);var s=a.intervalPrecision=so(o);return function $A(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),K0(t,0,e),K0(t,1,e),t[0]>t[1]&&(t[0]=t[1])}(a.niceTickExtent=[fr(Math.ceil(t[0]/o)*o,s),fr(Math.floor(t[1]/o)*o,s)],t),a}(a,o,r,n,i);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},e.prototype.calcNiceExtent=function(r){var n=this._extent.slice();if(n[0]===n[1])if(0!==n[0]){var i=Math.abs(n[0]);r.fixMax||(n[1]+=i/2),n[0]-=i/2}else n[1]=1;isFinite(n[1]-n[0])||(n[0]=0,n[1]=1),this._innerSetExtent(n[0],n[1]),n=this._extent.slice(),this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval);var o=this._interval,s=this._intervalPrecision;r.fixMin||(n[0]=mn(Math.floor(n[0]/o)*o,s)),r.fixMax||(n[1]=mn(Math.ceil(n[1]/o)*o,s)),this._innerSetExtent(n[0],n[1])},e.prototype.setNiceExtent=function(r,n){this._niceExtent=[r,n]},e.type="interval",e}(hi);hi.registerClass(i_);const _l=i_;function Ph(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function Rh(t){return t.dim+t.index}function o_(t){var e=function oP(t){var e={};D(t,function(l){var f=l.coordinateSystem.getBaseAxis();if("time"===f.type||"value"===f.type)for(var c=l.getData(),v=f.dim+"_"+f.index,h=c.getDimensionIndex(c.mapDimension(f.dim)),d=c.getStore(),m=0,p=d.count();m<p;++m){var g=d.get(h,m);e[v]?e[v].push(g):e[v]=[g]}});var r={};for(var n in e)if(e.hasOwnProperty(n)){var i=e[n];if(i){i.sort(function(l,u){return l-u});for(var a=null,o=1;o<i.length;++o){var s=i[o]-i[o-1];s>0&&(a=null===a?s:Math.min(a,s))}r[n]=a}}return r}(t),r=[];return D(t,function(n){var s,a=n.coordinateSystem.getBaseAxis(),o=a.getExtent();if("category"===a.type)s=a.getBandWidth();else if("value"===a.type||"time"===a.type){var u=e[a.dim+"_"+a.index],f=Math.abs(o[1]-o[0]),c=a.scale.getExtent(),v=Math.abs(c[1]-c[0]);s=u?f/v*u:f}else{var h=n.getData();s=Math.abs(o[1]-o[0])/h.count()}var d=me(n.get("barWidth"),s),m=me(n.get("barMaxWidth"),s),p=me(n.get("barMinWidth")||(function u_(t){return t.pipelineContext&&t.pipelineContext.large}(n)?.5:1),s),g=n.get("barGap"),y=n.get("barCategoryGap"),_=n.get("defaultBarGap");r.push({bandWidth:s,barWidth:d,barMaxWidth:m,barMinWidth:p,barGap:g,barCategoryGap:y,defaultBarGap:_,axisKey:Rh(a),stackId:Ph(n)})}),function s_(t){var e={};D(t,function(n,i){var a=n.axisKey,o=n.bandWidth,s=e[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:n.defaultBarGap||0,stacks:{}},l=s.stacks;e[a]=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 v=n.barMinWidth;v&&(l[u].minWidth=v);var h=n.barGap;null!=h&&(s.gap=h);var d=n.barCategoryGap;null!=d&&(s.categoryGap=d)});var r={};return D(e,function(n,i){r[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(null==s){var l=de(a).length;s=Math.max(35-4*l,15)+"%"}var u=me(s,o),f=me(n.gap,1),c=n.remainedWidth,v=n.autoWidthCount,h=(c-u)/(v+(v-1)*f);h=Math.max(h,0),D(a,function(g){var y=g.maxWidth,_=g.minWidth;if(g.width){var C=g.width;y&&(C=Math.min(C,y)),_&&(C=Math.max(C,_)),g.width=C,c-=C+f*C,v--}else C=h,y&&y<C&&(C=Math.min(y,c)),_&&_>C&&(C=_),C!==h&&(g.width=C,c-=C+f*C,v--)}),h=(c-u)/(v+(v-1)*f),h=Math.max(h,0);var m,d=0;D(a,function(g,y){g.width||(g.width=h),m=g,d+=g.width*(1+f)}),m&&(d-=m.width*f);var p=-d/2;D(a,function(g,y){r[i][y]=r[i][y]||{bandWidth:o,offset:p,width:g.width},p+=g.width*(1+f)})}),r}(r)}var f_=function(t){function e(r){var n=t.call(this,r)||this;return n.type="time",n}return(0,X.C6)(e,t),e.prototype.getLabel=function(r){var n=this.getSetting("useUTC");return Ia(r.value,Sg[function ZT(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(Ea(this._minLevelUnit))]||Sg.second,n,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(r,n,i){var a=this.getSetting("useUTC");return function $T(t,e,r,n,i){var a=null;if(U(r))a=r;else if(ee(r)){var o={time:t.time,level:t.time.level},s=null;s&&s.makeAxisLabelFormatterParamBreak(o,t.break),a=r(t.value,e,o)}else{var l=t.time;if(l){var u=r[l.lowerTimeUnit][l.upperTimeUnit];a=u[Math.min(l.level,u.length-1)]||""}else{var f=zi(t.value,i);a=r[f][f][0]}}return Ia(new Date(t.value),a,i,n)}(r,n,i,this.getSetting("locale"),a)},e.prototype.getTicks=function(r){r=r||{};var i=this._extent,a=null,o=[];if(!this._interval)return o;var s=this.getSetting("useUTC");var l=zi(i[1],s);o.push({value:i[0],time:{level:0,upperTimeUnit:l,lowerTimeUnit:l}});var u=function gP(t,e,r,n,i,a){var s=UT,l=0;function u(M,E,I,O,q,W,H){for(var V=function pP(t,e){var r=new Date(0);r[t](1);var n=r.getTime();r[t](1+e);var i=r.getTime()-n;return function(a,o){return Math.max(0,Math.round((o-a)/i))}}(q,M),G=E,N=new Date(G);G<I&&G<=n[1]&&(H.push({value:G}),!(l++>1e4));)if(N[q](N[O]()+M),G=N.getTime(),a){var ie=a.calcNiceTickMultiple(G,V);ie>0&&(N[q](N[O]()+ie*M),G=N.getTime())}H.push({value:G,notAdd:!0})}function f(M,E,I){var O=[],q=!E.length;if(!c_(Ea(M),n[0],n[1],r)){q&&(E=[{value:dP(n[0],M,r)},{value:n[1]}]);for(var W=0;W<E.length-1;W++){var H=E[W].value,V=E[W+1].value;if(H!==V){var G=void 0,N=void 0,ie=void 0;switch(M){case"year":G=Math.max(1,Math.round(e/It/365)),N=bg(r),ie=KT(r);break;case"half-year":case"quarter":case"month":G=cP(e),N=Uf(r),ie=xg(r);break;case"week":case"half-week":case"day":G=fP(e),N=Yf(r),ie=Tg(r);break;case"half-day":case"quarter-day":case"hour":G=hP(e),N=Xf(r),ie=wg(r);break;case"minute":G=h_(e,!0),N=jf(r),ie=Dg(r);break;case"second":G=h_(e,!1),N=Zf(r),ie=Mg(r);break;case"millisecond":G=vP(e),N=$f(r),ie=Lg(r)}V>=n[0]&&H<=n[1]&&u(G,H,V,N,ie,0,O),"year"===M&&I.length>1&&0===W&&I.unshift({value:I[0].value-G})}}for(W=0;W<O.length;W++)I.push(O[W])}}for(var c=[],v=[],h=0,d=0,m=0;m<s.length;++m){var p=Ea(s[m]);if(jT(s[m])&&(f(s[m],c[c.length-1]||[],v),p!==(s[m+1]?Ea(s[m+1]):null))){if(v.length){d=h,v.sort(function(M,E){return M.value-E.value});for(var y=[],_=0;_<v.length;++_){var C=v[_].value;(0===_||v[_-1].value!==C)&&(y.push(v[_]),C>=n[0]&&C<=n[1]&&h++)}var b=i/e;if(h>1.5*b&&d>b/1.5||(c.push(y),h>b||t===s[m]))break}v=[]}}var S=Me(K(c,function(M){return Me(M,function(E){return E.value>=n[0]&&E.value<=n[1]&&!E.notAdd})}),function(M){return M.length>0}),x=[],T=S.length-1;for(m=0;m<S.length;++m)for(var w=S[m],L=0;L<w.length;++L){var A=zi(w[L].value,r);x.push({value:w[L].value,time:{level:T-m,upperTimeUnit:A,lowerTimeUnit:A}})}x.sort(function(M,E){return M.value-E.value});var R=[];for(m=0;m<x.length;++m)(0===m||x[m].value!==x[m-1].value)&&R.push(x[m]);return R}(this._minLevelUnit,this._approxInterval,s,i,this._getExtentSpanWithBreaks(),this._brkCtx);o=o.concat(u);var f=zi(i[1],s);o.push({value:i[1],time:{level:0,upperTimeUnit:f,lowerTimeUnit:f}});this.getSetting("useUTC");var v=wt.length-1,h=0;return D(o,function(d){v=Math.min(v,le(wt,d.time.upperTimeUnit)),h=Math.max(h,d.time.level)}),o},e.prototype.calcNiceExtent=function(r){var n=this.getExtent();if(n[0]===n[1]&&(n[0]-=It,n[1]+=It),n[1]===-1/0&&n[0]===1/0){var i=new Date;n[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),n[0]=n[1]-It}this._innerSetExtent(n[0],n[1]),this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval)},e.prototype.calcNiceTicks=function(r,n,i){r=r||10;var a=this._getExtentSpanWithBreaks();this._approxInterval=a/r,null!=n&&this._approxInterval<n&&(this._approxInterval=n),null!=i&&this._approxInterval>i&&(this._approxInterval=i);var o=Cl.length,s=Math.min(function(t,e,r,n){for(;r<n;){var i=r+n>>>1;t[i][1]<e?r=i+1:n=i}return r}(Cl,this._approxInterval,0,o),o-1);this._interval=Cl[s][1],this._intervalPrecision=so(this._interval),this._minLevelUnit=Cl[Math.max(s-1,0)][0]},e.prototype.parse=function(r){return ge(r)?r:+Ar(r)},e.prototype.contain=function(r){return Mh(r,this._extent)},e.prototype.normalize=function(r){return this._calculator.normalize(r,this._extent)},e.prototype.scale=function(r){return this._calculator.scale(r,this._extent)},e.type="time",e}(_l),Cl=[["second",1e3],["minute",6e4],["hour",Ra],["quarter-day",6*Ra],["half-day",12*Ra],["day",1.2*It],["half-week",3.5*It],["week",7*It],["month",31*It],["quarter",95*It],["half-year",Cg/2],["year",Cg]];function c_(t,e,r,n){return Ls(new Date(e),t,n).getTime()===Ls(new Date(r),t,n).getTime()}function fP(t,e){return(t/=It)>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function cP(t){return(t/=30*It)>6?6:t>3?3:t>2?2:1}function hP(t){return(t/=Ra)>12?12:t>6?6:t>3.5?4:t>2?2:1}function h_(t,e){return(t/=e?6e4:1e3)>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function vP(t){return $u(t,!0)}function dP(t,e,r){var n=Math.max(0,le(wt,e)-1);return Ls(new Date(t),wt[n],r).getTime()}hi.registerClass(f_);const mP=f_;var Eh=fr,yP=Math.floor,_P=Math.ceil,Sl=Math.pow,bl=Math.log,v_=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.type="log",r.base=10,r._originalScale=new _l,r}return(0,X.C6)(e,t),e.prototype.getTicks=function(r){r=r||{};var n=this._extent.slice(),i=this._originalScale.getExtent(),a=t.prototype.getTicks.call(this,r),o=this.base,s=this._originalScale._innerGetBreaks(),l=null;return K(a,function(u){var h,f=u.value,c=null,v=Sl(o,f);if(f===n[0]&&this._fixMin?c=i[0]:f===n[1]&&this._fixMax&&(c=i[1]),l){var d=l.getTicksLogTransformBreak(u,o,s,xl);h=d.vBreak,null==c&&(c=d.brkRoundingCriterion)}return null!=c&&(v=xl(v,c)),{value:v,break:h}},this)},e.prototype._getNonTransBreaks=function(){return this._originalScale._innerGetBreaks()},e.prototype.setExtent=function(r,n){this._originalScale.setExtent(r,n);var i=e_(this.base,[r,n]);t.prototype.setExtent.call(this,i[0],i[1])},e.prototype.getExtent=function(){var r=this.base,n=t.prototype.getExtent.call(this);n[0]=Sl(r,n[0]),n[1]=Sl(r,n[1]);var i=this._originalScale.getExtent();return this._fixMin&&(n[0]=xl(n[0],i[0])),this._fixMax&&(n[1]=xl(n[1],i[1])),n},e.prototype.unionExtentFromData=function(r,n){this._originalScale.unionExtentFromData(r,n);var i=e_(this.base,r.getApproximateExtent(n),!0);this._innerUnionExtent(i)},e.prototype.calcNiceTicks=function(r){r=r||10;var n=this._extent.slice(),i=this._getExtentSpanWithBreaks();if(isFinite(i)&&!(i<=0)){var a=jd(i);for(r/i*a<=.5&&(a*=10);!isNaN(a)&&Math.abs(a)<1&&Math.abs(a)>0;)a*=10;var s=[Eh(_P(n[0]/a)*a),Eh(yP(n[1]/a)*a)];this._interval=a,this._intervalPrecision=so(a),this._niceExtent=s}},e.prototype.calcNiceExtent=function(r){t.prototype.calcNiceExtent.call(this,r),this._fixMin=r.fixMin,this._fixMax=r.fixMax},e.prototype.contain=function(r){return r=bl(r)/bl(this.base),t.prototype.contain.call(this,r)},e.prototype.normalize=function(r){return r=bl(r)/bl(this.base),t.prototype.normalize.call(this,r)},e.prototype.scale=function(r){return r=t.prototype.scale.call(this,r),Sl(this.base,r)},e.prototype.setBreaksFromOption=function(r){var n=null;if(n){var i=n.logarithmicParseBreaksFromOption(r,this.base,he(this.parse,this)),o=i.parsedLogged;this._originalScale._innerSetBreak(i.parsedOriginal),this._innerSetBreak(o)}},e.type="log",e}(_l);function xl(t,e){return Eh(t,cr(e))}hi.registerClass(v_);const CP=v_;var SP=function(){function t(e,r,n){this._prepareParams(e,r,n)}return t.prototype._prepareParams=function(e,r,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var i=this._isOrdinal="ordinal"===e.type;this._needCrossZero="interval"===e.type&&r.getNeedCrossZero&&r.getNeedCrossZero();var a=r.get("min",!0);null==a&&(a=r.get("startValue",!0));var o=this._modelMinRaw=a;ee(o)?this._modelMinNum=Tl(e,o({min:n[0],max:n[1]})):"dataMin"!==o&&(this._modelMinNum=Tl(e,o));var s=this._modelMaxRaw=r.get("max",!0);if(ee(s)?this._modelMaxNum=Tl(e,s({min:n[0],max:n[1]})):"dataMax"!==s&&(this._modelMaxNum=Tl(e,s)),i)this._axisDataLen=r.getCategories().length;else{var l=r.get("boundaryGap"),u=z(l)?l:[l||0,l||0];this._boundaryGapInner="boolean"==typeof u[0]||"boolean"==typeof u[1]?[0,0]:[an(u[0],1),an(u[1],1)]}},t.prototype.calculate=function(){var e=this._isOrdinal,r=this._dataMin,n=this._dataMax,i=this._axisDataLen,a=this._boundaryGapInner,o=e?null:n-r||Math.abs(r),s="dataMin"===this._modelMinRaw?r:this._modelMinNum,l="dataMax"===this._modelMaxRaw?n:this._modelMaxNum,u=null!=s,f=null!=l;null==s&&(s=e?i?0:NaN:r-a[0]*o),null==l&&(l=e?i?i-1:NaN:n+a[1]*o),(null==s||!isFinite(s))&&(s=NaN),(null==l||!isFinite(l))&&(l=NaN);var c=oa(s)||oa(l)||e&&!i;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var v=this._determinedMin,h=this._determinedMax;return null!=v&&(s=v,u=!0),null!=h&&(l=h,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:c}},t.prototype.modifyDataMinMax=function(e,r){this[xP[e]]=r},t.prototype.setDeterminedMinMax=function(e,r){this[bP[e]]=r},t.prototype.freeze=function(){this.frozen=!0},t}(),bP={min:"_determinedMin",max:"_determinedMax"},xP={min:"_dataMin",max:"_dataMax"};function Tl(t,e){return null==e?null:oa(e)?NaN:t.parse(e)}function LP(t,e){var r=e,n=function DP(t,e){var r=t.type,n=function TP(t,e,r){var n=t.rawExtentInfo;return n||(n=new SP(t,e,r),t.rawExtentInfo=n,n)}(t,e,t.getExtent()).calculate();t.setBlank(n.isBlank);var i=n.min,a=n.max,o=e.ecModel;if(o&&"time"===r){var s=function a_(t,e){var r=[];return e.eachSeriesByType(t,function(n){(function l_(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type})(n)&&r.push(n)}),r}("bar",o),l=!1;if(D(s,function(c){l=l||c.getBaseAxis()===e.axis}),l){var u=o_(s),f=function MP(t,e,r,n){var i=r.axis.getExtent(),a=Math.abs(i[1]-i[0]),o=function sP(t,e,r){if(t&&e){var n=t[Rh(e)];return null!=n&&null!=r?n[Ph(r)]:n}}(n,r.axis);if(void 0===o)return{min:t,max:e};var s=1/0;D(o,function(h){s=Math.min(h.offset,s)});var l=-1/0;D(o,function(h){l=Math.max(h.offset+h.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=e-t,v=f/(1-(s+l)/a)-f;return{min:t-=v*(s/u),max:e+=v*(l/u)}}(i,a,e,u);i=f.min,a=f.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}(t,r),i=n.extent,a=r.get("splitNumber");t instanceof CP&&(t.base=r.get("logBase"));var o=t.type,s=r.get("interval"),l="interval"===o||"time"===o;t.setBreaksFromOption(function RP(t){t.get("breaks",!0)}(r)),t.setExtent(i[0],i[1]),t.calcNiceExtent({splitNumber:a,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?r.get("minInterval"):null,maxInterval:l?r.get("maxInterval"):null}),null!=s&&t.setInterval&&t.setInterval(s)}function lo(t){var e=t.getLabelModel().get("formatter");if("time"===t.type){var r=function YT(t){return U(t)||ee(t)?t:function XT(t){t=t||{};var e={},r=!0;return D(wt,function(n){r&&(r=null==t[n])}),D(wt,function(n,i){var a=t[n];e[n]={};for(var o=null,s=i;s>=0;s--){var l=wt[s],u=$(a)&&!z(a)?a[l]:a,f=void 0;z(u)?o=(f=u.slice())[0]||"":U(u)?f=[o=u]:(null==o?o=Ds[n]:WT[l].test(o)||(o=e[l][l][0]+" "+o),f=[o],r&&(f[1]="{primary|"+o+"}")),e[n][l]=f}}),e}(t)}(e);return function(i,a){return t.scale.getFormattedLabel(i,a,r)}}if(U(e))return function(i){var a=t.scale.getLabel(i);return e.replace("{value}",a??"")};if(ee(e)){if("category"===t.type)return function(i,a){return e(wl(t,i),i.value-t.scale.getExtent()[0],null)};var n=null;return function(i,a){var o=null;return n&&(o=n.makeAxisLabelFormatterParamBreak(o,i.break)),e(wl(t,i),a,o)}}return function(i){return t.scale.getLabel(i)}}function wl(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function kh(t){return t.get("interval")??"auto"}function d_(t){return"category"===t.type&&0===kh(t.getLabelModel())}function Dl(t){return"middle"===t||"center"===t}var IP=function(){function t(){}return t.prototype.getNeedCrossZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t}();function kP(t){return function qA(t,e,r){r=r||{};var i,n=e.getSourceManager(),a=!1;t?(a=!0,i=dc(t)):a=(i=n.getSource()).sourceFormat===Dt;var o=function NA(t){var e=t.get("coordinateSystem"),r=new FA(e),n=zA[e];if(n)return n(t,r,r.axisMap,r.categoryAxisMap),r}(e),s=function VA(t,e){var i,r=t.get("coordinateSystem"),n=Ps.get(r);return e&&e.coordSysDims&&(i=K(e.coordSysDims,function(a){var o={name:a},s=e.axisMap.get(a);if(s){var l=s.get("type");o.type=function xA(t){return"category"===t?"ordinal":"time"===t?"time":"float"}(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}(e,o),l=r.useEncodeDefaulter,u=ee(l)?l:l?Ae(mw,s,e):null,c=Dh(i,{coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a}),v=function WA(t,e,r){var n,i;return r&&D(t,function(a,o){var l=r.categoryAxisMap.get(a.coordDim);l&&(null==n&&(n=o),a.ordinalMeta=l.getOrdinalMeta(),e&&(a.createInvertedIndices=!0)),null!=a.otherDims.itemName&&(i=!0)}),!i&&null!=n&&(t[n].otherDims.itemName=0),n}(c.dimensions,r.createInvertedIndices,o),h=a?null:n.getSharedDataStore(c),d=j0(e,{schema:c,store:h}),m=new wh(c,e);m.setCalculationInfo(d);var p=null!=v&&function UA(t){if(t.sourceFormat===Dt){var e=function YA(t){for(var e=0;e<t.length&&null==t[e];)e++;return t[e]}(t.data||[]);return!z(xa(e))}}(i)?function(g,y,_,C){return C===v?_:this.defaultDimValueGetter(g,y,_,C)}:null;return m.hasItemOption=!1,m.initData(a?i:h,null,p),m}(null,t)}var OP={isDimensionStacked:Z0,enableDataStack:j0,getStackedDimension:function GA(t,e){return Z0(t,e)?t.getCalculationInfo("stackResultDimension"):e}};function BP(t,e){var r=e;e instanceof Fe||(r=new Fe(e));var n=function AP(t,e){if(e=e||t.get("type"))switch(e){case"category":return new tP({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new mP({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(hi.getClass(e)||_l)}}(r);return n.setExtent(t[0],t[1]),LP(n,r),n}function FP(t){Wt(t,IP)}function NP(t,e){return Or(t,null,null,"normal"!==(e=e||{}).state)}function p_(t,e){return Math.abs(t-e)<1e-8}function g_(t,e,r){var n=0,i=t[0];if(!i)return!1;for(var a=1;a<t.length;a++){var o=t[a];n+=Ir(i[0],i[1],o[0],o[1],e,r),i=o}var s=t[0];return(!p_(i[0],s[0])||!p_(i[1],s[1]))&&(n+=Ir(i[0],i[1],s[0],s[1],e,r)),0!==n}var HP=[];function Oh(t,e){for(var r=0;r<t.length;r++)Ct(t[r],t[r],e)}function m_(t,e,r,n){for(var i=0;i<t.length;i++){var a=t[i];n&&(a=n.project(a)),a&&isFinite(a[0])&&isFinite(a[1])&&(Kr(e,e,a),Qr(r,r,a))}}var y_=function(){function t(e){this.name=e}return t.prototype.setCenter=function(e){this._center=e},t.prototype.getCenter=function(){var e=this._center;return e||(e=this._center=this.calcCenter()),e},t}(),__=function(){return function t(e,r){this.type="polygon",this.exterior=e,this.interiors=r}}(),C_=function(){return function t(e){this.type="linestring",this.points=e}}(),VP=function(t){function e(r,n,i){var a=t.call(this,r)||this;return a.type="geoJSON",a.geometries=n,a._center=i&&[i[0],i[1]],a}return(0,X.C6)(e,t),e.prototype.calcCenter=function(){for(var n,r=this.geometries,i=0,a=0;a<r.length;a++){var o=r[a],s=o.exterior,l=s&&s.length;l>i&&(n=o,i=l)}if(n)return function GP(t){for(var e=0,r=0,n=0,i=t.length,a=t[i-1][0],o=t[i-1][1],s=0;s<i;s++){var l=t[s][0],u=t[s][1],f=a*u-l*o;e+=f,r+=(a+l)*f,n+=(o+u)*f,a=l,o=u}return e?[r/e/3,n/e/3,e]:[t[0][0]||0,t[0][1]||0]}(n.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.prototype.getBoundingRect=function(r){var n=this._rect;if(n&&!r)return n;var i=[1/0,1/0],a=[-1/0,-1/0];return D(this.geometries,function(s){"polygon"===s.type?m_(s.exterior,i,a,r):D(s.points,function(l){m_(l,i,a,r)})}),isFinite(i[0])&&isFinite(i[1])&&isFinite(a[0])&&isFinite(a[1])||(i[0]=i[1]=a[0]=a[1]=0),n=new ne(i[0],i[1],a[0]-i[0],a[1]-i[1]),r||(this._rect=n),n},e.prototype.contain=function(r){var n=this.getBoundingRect(),i=this.geometries;if(!n.contain(r[0],r[1]))return!1;e:for(var a=0,o=i.length;a<o;a++){var s=i[a];if("polygon"===s.type){var u=s.interiors;if(g_(s.exterior,r[0],r[1])){for(var f=0;f<(u?u.length:0);f++)if(g_(u[f],r[0],r[1]))continue e;return!0}}}return!1},e.prototype.transformTo=function(r,n,i,a){var o=this.getBoundingRect(),s=o.width/o.height;i?a||(a=i/s):i=s*a;for(var l=new ne(r,n,i,a),u=o.calculateTransform(l),f=this.geometries,c=0;c<f.length;c++){var v=f[c];"polygon"===v.type?(Oh(v.exterior,u),D(v.interiors,function(h){Oh(h,u)})):D(v.points,function(h){Oh(h,u)})}(o=this._rect).copy(l),this._center=[o.x+o.width/2,o.y+o.height/2]},e.prototype.cloneShallow=function(r){null==r&&(r=this.name);var n=new e(r,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},e}(y_);function Bh(t,e,r){for(var n=0;n<t.length;n++)t[n]=S_(t[n],e[n],r)}function S_(t,e,r){for(var n=[],i=e[0],a=e[1],o=0;o<t.length;o+=2){var s=t.charCodeAt(o)-64,l=t.charCodeAt(o+1)-64;s=s>>1^-(1&s),l=l>>1^-(1&l),i=s+=i,a=l+=a,n.push([s/r,l/r])}return n}function b_(t,e){return t=function WP(t){if(!t.UTF8Encoding)return t;var e=t,r=e.UTF8Scale;return null==r&&(r=1024),D(e.features,function(i){var a=i.geometry,o=a.encodeOffsets,s=a.coordinates;if(o)switch(a.type){case"LineString":a.coordinates=S_(s,o,r);break;case"Polygon":case"MultiLineString":Bh(s,o,r);break;case"MultiPolygon":D(s,function(l,u){return Bh(l,o[u],r)})}}),e.UTF8Encoding=!1,e}(t),K(Me(t.features,function(r){return r.geometry&&r.properties&&r.geometry.coordinates.length>0}),function(r){var n=r.properties,i=r.geometry,a=[];switch(i.type){case"Polygon":var o=i.coordinates;a.push(new __(o[0],o.slice(1)));break;case"MultiPolygon":D(i.coordinates,function(l){l[0]&&a.push(new __(l[0],l.slice(1)))});break;case"LineString":a.push(new C_([i.coordinates]));break;case"MultiLineString":a.push(new C_(i.coordinates))}var s=new VP(n[e||"name"],a,n.cp);return s.properties=n,s})}function qP(t,e,r,n,i,a,o,s){return new Be({style:{text:t,font:e,align:r,verticalAlign:n,padding:i,rich:a,overflow:o?"truncate":null,lineHeight:s}}).getBoundingRect()}!function(t){function e(r,n){var i=t.call(this,r)||this;return i.type="geoSVG",i._elOnlyForCalculate=n,i}(0,X.C6)(e,t),e.prototype.calcCenter=function(){for(var r=this._elOnlyForCalculate,n=r.getBoundingRect(),i=[n.x+n.width/2,n.y+n.height/2],a=ua(HP),o=r;o&&!o.isGeoSVGGraphicRoot;)Dn(a,o.getLocalTransform(),a),o=o.parent;return Mn(a,a),Ct(i,i,a),i}}(y_);var UP=ye(),uo=ye();function Ml(t){return{out:{noPxChangeTryDetermine:[]},kind:t}}function x_(t,e){var r=K(e,function(n){return t.scale.parse(n)});return"time"===t.type&&r.length>0&&(r.sort(),r.unshift(r[0]),r.push(r[r.length-1])),r}function T_(t,e,r){var s,l,n=QP(t),i=kh(e),a=1===r.kind;if(!a){var o=D_(n,i);if(o)return o}ee(i)?s=A_(t,i):(l="auto"===i?function JP(t,e){if(1===e.kind){var r=t.calculateCategoryInterval(e);return e.out.noPxChangeTryDetermine.push(function(){return uo(t).autoInterval=r,!0}),r}return uo(t).autoInterval??(uo(t).autoInterval=t.calculateCategoryInterval(e))}(t,r):i,s=L_(t,l));var u={labels:s,labelCategoryInterval:l};return a?r.out.noPxChangeTryDetermine.push(function(){return Fh(n,i,u),!0}):Fh(n,i,u),u}var KP=w_("axisTick"),QP=w_("axisLabel");function w_(t){return function(r){return uo(r)[t]||(uo(r)[t]={list:[]})}}function D_(t,e){for(var r=0;r<t.list.length;r++)if(t.list[r].key===e)return t.list[r].value}function Fh(t,e,r){return t.list.push({key:e,value:r}),r}function tR(t,e,r){return null==M_(t,e,r)}function M_(t,e,r){var n=UP(t.model),i=t.getExtent(),a=n.lastAutoInterval,o=n.lastTickCount;if(null!=a&&null!=o&&Math.abs(a-e)<=1&&Math.abs(o-r)<=1&&a>e&&n.axisExtent0===i[0]&&n.axisExtent1===i[1])return a;n.lastTickCount=r,n.lastAutoInterval=e,n.axisExtent0=i[0],n.axisExtent1=i[1]}function L_(t,e,r){var n=lo(t),i=t.scale,a=i.getExtent(),o=t.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=a[0],f=i.count();0!==u&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var c=d_(t),v=o.get("showMinLabel")||c,h=o.get("showMaxLabel")||c;v&&u!==a[0]&&m(a[0]);for(var d=u;d<=a[1];d+=l)m(d);function m(p){var g={value:p};s.push(r?p:{formattedLabel:n(g),rawLabel:i.getLabel(g),tickValue:p,time:void 0,break:void 0})}return h&&d-l!==a[1]&&m(a[1]),s}function A_(t,e,r){var n=t.scale,i=lo(t),a=[];return D(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;e(o.value,s)&&a.push(r?l:{formattedLabel:i(o),rawLabel:s,tickValue:l,time:void 0,break:void 0})}),a}var P_=[0,1],nR=function(){function t(e,r,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=r,this._extent=n||[0,0]}return t.prototype.contain=function(e){var r=this._extent,n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return e>=n&&e<=i},t.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(e){return Yd(e||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(e,r){var n=this._extent;n[0]=e,n[1]=r},t.prototype.dataToCoord=function(e,r){var n=this._extent,i=this.scale;return e=i.normalize(i.parse(e)),this.onBand&&"ordinal"===i.type&&R_(n=n.slice(),i.count()),os(e,P_,n,r)},t.prototype.coordToData=function(e,r){var n=this._extent,i=this.scale;this.onBand&&"ordinal"===i.type&&R_(n=n.slice(),i.count());var a=os(e,n,P_,r);return this.scale.scale(a)},t.prototype.pointToData=function(e,r){},t.prototype.getTicksCoords=function(e){var r=(e=e||{}).tickModel||this.getTickModel(),a=K(function XP(t,e,r){var n=t.getTickModel().get("customValues");if(n){var i=t.scale.getExtent();return{ticks:Me(x_(t,n),function(o){return o>=i[0]&&o<=i[1]})}}return"category"===t.type?function ZP(t,e){var a,o,r=KP(t),n=kh(e),i=D_(r,n);if(i)return i;if((!e.get("show")||t.scale.isBlank())&&(a=[]),ee(n))a=A_(t,n,!0);else if("auto"===n){var s=T_(t,t.getLabelModel(),Ml(2));o=s.labelCategoryInterval,a=K(s.labels,function(l){return l.tickValue})}else a=L_(t,o=n,!0);return Fh(r,n,{ticks:a,tickCategoryInterval:o})}(t,e):{ticks:K(t.scale.getTicks(r),function(o){return o.value})}}(this,r,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}).ticks,function(s){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this);return function iR(t,e,r,n){var i=e.length;if(t.onBand&&!r&&i){var o,a=t.getExtent();if(1===i)e[0].coord=a[0],e[0].onBand=!0,o=e[1]={coord:a[1],tickValue:e[0].tickValue,onBand:!0};else{var u=(e[i-1].coord-e[0].coord)/(e[i-1].tickValue-e[0].tickValue);D(e,function(h){h.coord-=u/2,h.onBand=!0});var f=t.scale.getExtent();e.push(o={coord:e[i-1].coord+u*(1+f[1]-e[i-1].tickValue),tickValue:f[1]+1,onBand:!0})}var c=a[0]>a[1];v(e[0].coord,a[0])&&(n?e[0].coord=a[0]:e.shift()),n&&v(a[0],e[0].coord)&&e.unshift({coord:a[0],onBand:!0}),v(a[1],o.coord)&&(n?o.coord=a[1]:e.pop()),n&&v(o.coord,a[1])&&e.push({coord:a[1],onBand:!0})}function v(h,d){return h=fr(h),d=fr(d),c?h>d:h<d}}(this,a,r.get("alignWithLabel"),e.clamp),a},t.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var r=this.model.getModel("minorTick").get("splitNumber");return r>0&&r<100||(r=5),K(this.scale.getMinorTicks(r),function(a){return K(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this)},t.prototype.getViewLabels=function(e){return function YP(t,e){var r=t.getLabelModel().get("customValues");if(r){var n=lo(t),i=t.scale.getExtent();return{labels:K(Me(x_(t,r),function(s){return s>=i[0]&&s<=i[1]}),function(s){var l={value:s};return{formattedLabel:n(l),rawLabel:t.scale.getLabel(l),tickValue:s,time:void 0,break:void 0}})}}return"category"===t.type?function jP(t,e){var r=t.getLabelModel(),n=T_(t,r,e);return!r.get("show")||t.scale.isBlank()?{labels:[]}:n}(t,e):function $P(t){var e=t.scale.getTicks(),r=lo(t);return{labels:K(e,function(n,i){return{formattedLabel:r(n,i),rawLabel:t.scale.getLabel(n),tickValue:n.value,time:n.time,break:n.break}})}}(t)}(this,e=e||Ml(2)).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var e=this._extent,r=this.scale.getExtent(),n=r[1]-r[0]+(this.onBand?1:0);0===n&&(n=1);var i=Math.abs(e[1]-e[0]);return Math.abs(i)/n},t.prototype.calculateCategoryInterval=function(e){return function eR(t,e){var r=e.kind,n=function rR(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}(t),i=lo(t),a=(n.axisRotate-n.labelRotate)/180*Math.PI,o=t.scale,s=o.getExtent(),l=o.count();if(s[1]-s[0]<1)return 0;var u=1;l>40&&(u=Math.max(1,Math.floor(l/40)));for(var c=s[0],v=t.dataToCoord(c+1)-t.dataToCoord(c),h=Math.abs(v*Math.cos(a)),d=Math.abs(v*Math.sin(a)),m=0,p=0;c<=s[1];c+=u){var y,_=Bd(i({value:c}),n.font,"center","top");y=1.3*_.height,m=Math.max(m,1.3*_.width,7),p=Math.max(p,y,7)}var C=m/h,b=p/d;isNaN(C)&&(C=1/0),isNaN(b)&&(b=1/0);var S=Math.max(0,Math.floor(Math.min(C,b)));return 1===r?(e.out.noPxChangeTryDetermine.push(he(tR,null,t,S,l)),S):M_(t,S,l)??S}(this,e=e||Ml(2))},t}();function R_(t,e){var i=(t[1]-t[0])/e/2;t[0]+=i,t[1]-=i}const aR=nR;function oR(t){var e=xe.extend(t);return xe.registerClass(e),e}function sR(t){var e=Bt.extend(t);return Bt.registerClass(e),e}function lR(t){var e=vn.extend(t);return vn.registerClass(e),e}function uR(t){var e=Hr.extend(t);return Hr.registerClass(e),e}var fo=2*Math.PI,vi=Un.CMD,fR=["top","right","bottom","left"];function cR(t,e,r,n,i){var a=r.width,o=r.height;switch(t){case"top":n.set(r.x+a/2,r.y-e),i.set(0,-1);break;case"bottom":n.set(r.x+a/2,r.y+o+e),i.set(0,1);break;case"left":n.set(r.x-e,r.y+o/2),i.set(-1,0);break;case"right":n.set(r.x+a+e,r.y+o/2),i.set(1,0)}}function hR(t,e,r,n,i,a,o,s,l){o-=t,s-=e;var u=Math.sqrt(o*o+s*s),f=(o/=u)*r+t,c=(s/=u)*r+e;if(Math.abs(n-i)%fo<1e-4)return l[0]=f,l[1]=c,u-r;if(a){var v=n;n=Er(i),i=Er(v)}else n=Er(n),i=Er(i);n>i&&(i+=fo);var h=Math.atan2(s,o);if(h<0&&(h+=fo),h>=n&&h<=i||h+fo>=n&&h+fo<=i)return l[0]=f,l[1]=c,u-r;var d=r*Math.cos(n)+t,m=r*Math.sin(n)+e,p=r*Math.cos(i)+t,g=r*Math.sin(i)+e,y=(d-o)*(d-o)+(m-s)*(m-s),_=(p-o)*(p-o)+(g-s)*(g-s);return y<_?(l[0]=d,l[1]=m,Math.sqrt(y)):(l[0]=p,l[1]=g,Math.sqrt(_))}function Ll(t,e,r,n,i,a,o,s){var l=i-t,u=a-e,f=r-t,c=n-e,v=Math.sqrt(f*f+c*c),d=(l*(f/=v)+u*(c/=v))/v;s&&(d=Math.min(Math.max(d,0),1));var m=o[0]=t+(d*=v)*f,p=o[1]=e+d*c;return Math.sqrt((m-i)*(m-i)+(p-a)*(p-a))}function E_(t,e,r,n,i,a,o){r<0&&(t+=r,r=-r),n<0&&(e+=n,n=-n);var s=t+r,l=e+n,u=o[0]=Math.min(Math.max(i,t),s),f=o[1]=Math.min(Math.max(a,e),l);return Math.sqrt((u-i)*(u-i)+(f-a)*(f-a))}var nr=[];function vR(t,e,r){var n=E_(e.x,e.y,e.width,e.height,t.x,t.y,nr);return r.set(nr[0],nr[1]),n}function dR(t,e,r){for(var s,l,n=0,i=0,a=0,o=0,u=1/0,f=e.data,c=t.x,v=t.y,h=0;h<f.length;){var d=f[h++];1===h&&(a=n=f[h],o=i=f[h+1]);var m=u;switch(d){case vi.M:n=a=f[h++],i=o=f[h++];break;case vi.L:m=Ll(n,i,f[h],f[h+1],c,v,nr,!0),n=f[h++],i=f[h++];break;case vi.C:m=ld(n,i,f[h++],f[h++],f[h++],f[h++],f[h],f[h+1],c,v,nr),n=f[h++],i=f[h++];break;case vi.Q:m=cd(n,i,f[h++],f[h++],f[h],f[h+1],c,v,nr),n=f[h++],i=f[h++];break;case vi.A:var p=f[h++],g=f[h++],y=f[h++],_=f[h++],C=f[h++],b=f[h++];h+=1;var S=!!(1-f[h++]);s=Math.cos(C)*y+p,l=Math.sin(C)*_+g,h<=1&&(a=s,o=l),m=hR(p,g,_,C,C+b,S,(c-p)*_/y+p,v,nr),n=Math.cos(C+b)*y+p,i=Math.sin(C+b)*_+g;break;case vi.R:m=E_(a=n=f[h++],o=i=f[h++],f[h++],f[h++],c,v,nr);break;case vi.Z:m=Ll(n,i,a,o,c,v,nr,!0),n=a,i=o}m<u&&(u=m,r.set(nr[0],nr[1]))}return u}var ir=new te,_e=new te,Re=new te,Cr=new te,Sr=new te;function I_(t,e){if(t){var r=t.getTextGuideLine(),n=t.getTextContent();if(n&&r){var i=t.textGuideLineConfig||{},a=[[0,0],[0,0],[0,0]],o=i.candidates||fR,s=n.getBoundingRect().clone();s.applyTransform(n.getComputedTransform());var l=1/0,u=i.anchor,f=t.getComputedTransform(),c=f&&Mn([],f),v=e.get("length2")||0;u&&Re.copy(u);for(var h=0;h<o.length;h++){cR(o[h],0,s,ir,Cr),te.scaleAndAdd(_e,ir,Cr,v),_e.transform(c);var m=t.getBoundingRect(),p=u?u.distance(_e):t instanceof Se?dR(_e,t.path,Re):vR(_e,m,Re);p<l&&(l=p,_e.transform(f),Re.transform(f),Re.toArray(a[0]),_e.toArray(a[1]),ir.toArray(a[2]))}k_(a,e.get("minTurnAngle")),r.setShape({points:a})}}}var Al=[],ft=new te;function k_(t,e){if(e<=180&&e>0){e=e/180*Math.PI,ir.fromArray(t[0]),_e.fromArray(t[1]),Re.fromArray(t[2]),te.sub(Cr,ir,_e),te.sub(Sr,Re,_e);var r=Cr.len(),n=Sr.len();if(!(r<.001||n<.001)){Cr.scale(1/r),Sr.scale(1/n);var i=Cr.dot(Sr);if(Math.cos(e)<i){var o=Ll(_e.x,_e.y,Re.x,Re.y,ir.x,ir.y,Al,!1);ft.fromArray(Al),ft.scaleAndAdd(Sr,o/Math.tan(Math.PI-e));var s=Re.x!==_e.x?(ft.x-_e.x)/(Re.x-_e.x):(ft.y-_e.y)/(Re.y-_e.y);if(isNaN(s))return;s<0?te.copy(ft,_e):s>1&&te.copy(ft,Re),ft.toArray(t[1])}}}}function pR(t,e,r){if(r<=180&&r>0){r=r/180*Math.PI,ir.fromArray(t[0]),_e.fromArray(t[1]),Re.fromArray(t[2]),te.sub(Cr,_e,ir),te.sub(Sr,Re,_e);var n=Cr.len(),i=Sr.len();if(!(n<.001||i<.001)&&(Cr.scale(1/n),Sr.scale(1/i),Cr.dot(e)<Math.cos(r))){var s=Ll(_e.x,_e.y,Re.x,Re.y,ir.x,ir.y,Al,!1);ft.fromArray(Al);var l=Math.PI/2,f=l+Math.acos(Sr.dot(e))-r;if(f>=l)te.copy(ft,Re);else{ft.scaleAndAdd(Sr,s/Math.tan(Math.PI/2-f));var c=Re.x!==_e.x?(ft.x-_e.x)/(Re.x-_e.x):(ft.y-_e.y)/(Re.y-_e.y);if(isNaN(c))return;c<0?te.copy(ft,_e):c>1&&te.copy(ft,Re)}ft.toArray(t[1])}}}function Nh(t,e,r,n){var i="normal"===r,a=i?t:t.ensureState(r);a.ignore=e;var o=n.get("smooth");o&&!0===o&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();i?t.useStyle(s):a.style=s}function gR(t,e){var r=e.smooth,n=e.points;if(n)if(t.moveTo(n[0][0],n[0][1]),r>0&&n.length>=3){var i=Ro(n[0],n[1]),a=Ro(n[1],n[2]);if(!i||!a)return t.lineTo(n[1][0],n[1][1]),void t.lineTo(n[2][0],n[2][1]);var o=Math.min(i,a)*r,s=Eo([],n[1],n[0],o/i),l=Eo([],n[1],n[2],o/a),u=Eo([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var f=1;f<n.length;f++)t.lineTo(n[f][0],n[f][1])}function O_(t,e,r){var n=t.getTextGuideLine(),i=t.getTextContent();if(i){for(var a=e.normal,o=a.get("show"),s=i.ignore,l=0;l<ps.length;l++){var u=ps[l],f=e[u],c="normal"===u;if(f){var v=f.get("show");if((c?s:Q(i.states[u]&&i.states[u].ignore,s))||!Q(v,o)){var d=c?n:n&&n.states[u];d&&(d.ignore=!0),n&&Nh(n,!0,u,f);continue}n||(n=new ja,t.setTextGuideLine(n),!c&&(s||!o)&&Nh(n,!0,"normal",e.normal),t.stateProxy&&(n.stateProxy=t.stateProxy)),Nh(n,!1,u,f)}}if(n){be(n.style,r),n.style.fill=null;var m=a.get("showAbove");(t.textGuideLineConfig=t.textGuideLineConfig||{}).showAbove=m||!1,n.buildPath=gR}}else n&&t.removeTextGuideLine()}function B_(t,e){for(var r={normal:t.getModel(e=e||"labelLine")},n=0;n<mr.length;n++){var i=mr[n];r[i]=t.getModel([i,e])}return r}var F_=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"];function Rl(t,e,r){r=r||3,e?t.dirty|=r:t.dirty&=~r}function z_(t,e){return e=e||3,null==t.dirty||!!(t.dirty&e)}function br(t){if(t)return z_(t)&&H_(t,t.label,t),t}function H_(t,e,r){var n=e.getComputedTransform();t.transform=qc(t.transform,n);var i=t.localRect=$a(t.localRect,e.getBoundingRect()),a=e.style,o=a.margin,s=r&&r.marginForce,l=r&&r.minMarginForce,u=r&&r.marginDefault,f=a.__marginType;null==f&&u&&(o=u,f=Fi.textMargin);for(var c=0;c<4;c++)zh[c]=f===Fi.minMargin&&l&&null!=l[c]?l[c]:s&&null!=s[c]?s[c]:o?o[c]:0;f===Fi.textMargin&&Gc(i,zh,!1,!1);var v=t.rect=$a(t.rect,i);return n&&v.applyTransform(n),f===Fi.minMargin&&Gc(v,zh,!1,!1),t.axisAligned=Wc(n),(t.label=t.label||{}).ignore=e.ignore,Rl(t,!1),Rl(t,!0,2),t}var zh=[0,0,0,0];function Hh(t,e){for(var r=0;r<F_.length;r++){var n=F_[r];null==t[n]&&(t[n]=e[n])}return br(t)}function G_(t){var e=t.obb;return(!e||z_(t,2))&&(t.obb=e=e||new fy,e.fromBoundingRect(t.localRect,t.transform),Rl(t,!1,2)),e}function Gh(t,e,r,n,i){var a=t.length,o=hy[e],s=vy[e];if(a<2)return!1;t.sort(function(w,L){return w.rect[o]-L.rect[o]});for(var u,l=0,f=!1,c=0,v=0;v<a;v++){var h=t[v],d=h.rect;(u=d[o]-l)<0&&(d[o]-=u,h.label[o]-=u,f=!0),c+=Math.max(-u,0),l=d[o]+d[s]}c>0&&i&&S(-c/a,0,a);var y,_,p=t[0],g=t[a-1];function C(){y=p.rect[o]-r,_=n-g.rect[o]-g.rect[s]}function b(w,L,A){if(w<0){var R=Math.min(L,-w);if(R>0){S(R*A,0,a);var M=R+w;M<0&&x(-M*A,1)}else x(-w*A,1)}}function S(w,L,A){0!==w&&(f=!0);for(var R=L;R<A;R++){var M=t[R];M.rect[o]+=w,M.label[o]+=w}}function x(w,L){for(var A=[],R=0,M=1;M<a;M++){var E=t[M-1].rect,I=Math.max(t[M].rect[o]-E[o]-E[s],0);A.push(I),R+=I}if(R){var O=Math.min(Math.abs(w)/R,L);if(w>0)for(M=0;M<a-1;M++)S(A[M]*O,0,M+1);else for(M=a-1;M>0;M--)S(-A[M-1]*O,M,a)}}function T(w){var L=w<0?-1:1;w=Math.abs(w);for(var A=Math.ceil(w/(a-1)),R=0;R<a-1;R++)if(L>0?S(A,0,R+1):S(-A,a-R-1,a),(w-=A)<=0)return}return C(),y<0&&x(-y,.8),_<0&&x(_,.8),C(),b(y,_,1),b(_,y,-1),C(),y<0&&T(-y),_<0&&T(_),f}function V_(t){var e=[];function r(u){if(!u.ignore){var f=u.ensureState("emphasis");null==f.ignore&&(f.ignore=!1)}u.ignore=!0}t.sort(function(u,f){return(f.suggestIgnore?1:0)-(u.suggestIgnore?1:0)||f.priority-u.priority});for(var n=0;n<t.length;n++){var i=br(t[n]);if(!i.label.ignore){for(var a=i.label,o=i.labelLine,s=!1,l=0;l<e.length;l++)if(Vh(i,e[l],null,{touchThreshold:.05})){s=!0;break}s?(r(a),o&&r(o)):e.push(i)}}}function Vh(t,e,r,n){return!(!t||!e||t.label&&t.label.ignore||e.label&&e.label.ignore||!t.rect.intersect(e.rect,r,n))&&(!(!t.axisAligned||!e.axisAligned)||G_(t).intersect(G_(e),r,n))}function SR(t){if(t){for(var e=[],r=0;r<t.length;r++)e.push(t[r].slice());return e}}function bR(t,e){var r=t.label,n=e&&e.getTextGuideLine();return{dataIndex:t.dataIndex,dataType:t.dataType,seriesIndex:t.seriesModel.seriesIndex,text:t.label.style.text,rect:t.hostRect,labelRect:t.rect,align:r.style.align,verticalAlign:r.style.verticalAlign,labelLinePoints:SR(n&&n.shape.points)}}var W_=["align","verticalAlign","width","height","fontSize"],ct=new ts,Wh=ye(),xR=ye();function El(t,e,r){for(var n=0;n<r.length;n++){var i=r[n];null!=e[i]&&(t[i]=e[i])}}var Il=["x","y","rotation"],TR=function(){function t(){this._labelList=[],this._chartViewList=[]}return t.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},t.prototype._addLabel=function(e,r,n,i,a){var o=i.style,l=i.__hostTarget.textConfig||{},u=i.getComputedTransform(),f=i.getBoundingRect().plain();ne.applyTransform(f,f,u),u?ct.setLocalTransform(u):(ct.x=ct.y=ct.rotation=ct.originX=ct.originY=0,ct.scaleX=ct.scaleY=1),ct.rotation=Er(ct.rotation);var v,c=i.__hostTarget;if(c){v=c.getBoundingRect().plain();var h=c.getComputedTransform();ne.applyTransform(v,v,h)}var d=v&&c.getTextGuideLine();this._labelList.push({label:i,labelLine:d,seriesModel:n,dataIndex:e,dataType:r,layoutOptionOrCb:a,layoutOption:null,rect:f,hostRect:v,priority:v?v.width*v.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:d&&d.ignore,x:ct.x,y:ct.y,scaleX:ct.scaleX,scaleY:ct.scaleY,rotation:ct.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:i.cursor,attachedPos:l.position,attachedRot:l.rotation}})},t.prototype.addLabelsOfSeries=function(e){var r=this;this._chartViewList.push(e);var n=e.__model,i=n.get("labelLayout");(ee(i)||de(i).length)&&e.group.traverse(function(a){if(a.ignore)return!0;var o=a.getTextContent(),s=ve(a);o&&!o.disableLabelLayout&&r._addLabel(s.dataIndex,s.dataType,n,o,i)})},t.prototype.updateLayoutConfig=function(e){var r=e.getWidth(),n=e.getHeight();function i(_,C){return function(){I_(_,C)}}for(var a=0;a<this._labelList.length;a++){var o=this._labelList[a],s=o.label,l=s.__hostTarget,u=o.defaultAttr,f=void 0;f=ee(o.layoutOptionOrCb)?o.layoutOptionOrCb(bR(o,l)):o.layoutOptionOrCb,o.layoutOption=f=f||{};var c=Math.PI/180;l&&l.setTextConfig({local:!1,position:null!=f.x||null!=f.y?null:u.attachedPos,rotation:null!=f.rotate?f.rotate*c:u.attachedRot,offset:[f.dx||0,f.dy||0]});var v=!1;if(null!=f.x?(s.x=me(f.x,r),s.setStyle("x",0),v=!0):(s.x=u.x,s.setStyle("x",u.style.x)),null!=f.y?(s.y=me(f.y,n),s.setStyle("y",0),v=!0):(s.y=u.y,s.setStyle("y",u.style.y)),f.labelLinePoints){var h=l.getTextGuideLine();h&&(h.setShape({points:f.labelLinePoints}),v=!1)}Wh(s).needsUpdateLabelLine=v,s.rotation=null!=f.rotate?f.rotate*c:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var m=0;m<W_.length;m++){var p=W_[m];s.setStyle(p,null!=f[p]?f[p]:u.style[p])}if(f.draggable){if(s.draggable=!0,s.cursor="move",l){var g=o.seriesModel;null!=o.dataIndex&&(g=o.seriesModel.getData(o.dataType).getItemModel(o.dataIndex)),s.on("drag",i(l,g.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},t.prototype.layout=function(e){var r=e.getWidth(),n=e.getHeight(),i=[];D(this._labelList,function(l){l.defaultAttr.ignore||i.push(Hh({},l))});var a=Me(i,function(l){return"shiftX"===l.layoutOption.moveOverlap}),o=Me(i,function(l){return"shiftY"===l.layoutOption.moveOverlap});Gh(a,0,0,r),Gh(o,1,0,n);var s=Me(i,function(l){return l.layoutOption.hideOverlap});(function CR(t){for(var e=0;e<t.length;e++){var r=t[e],n=r.defaultAttr,i=r.labelLine;r.label.attr("ignore",n.ignore),i&&i.attr("ignore",n.labelGuideIgnore)}})(s),V_(s)},t.prototype.processLabelsOverall=function(){var e=this;D(this._chartViewList,function(r){var n=r.__model,i=r.ignoreLabelLineUpdate,a=n.isAnimationEnabled();r.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!i,l=o.getTextContent();!s&&l&&(s=Wh(l).needsUpdateLabelLine),s&&e._updateLabelLine(o,n),a&&e._animateLabels(o,n)})})},t.prototype._updateLabelLine=function(e,r){var n=e.getTextContent(),i=ve(e),a=i.dataIndex;if(n&&null!=a){var o=r.getData(i.dataType),s=o.getItemModel(a),l={},u=o.getItemVisual(a,"style");if(u){var f=o.getVisual("drawType");l.stroke=u[f]}var c=s.getModel("labelLine");O_(e,B_(s),l),I_(e,c)}},t.prototype._animateLabels=function(e,r){var n=e.getTextContent(),i=e.getTextGuideLine();if(n&&(e.forceLabelAnimation||!n.ignore&&!n.invisible&&!e.disableLabelAnimation&&!Bi(e))){var o=(a=Wh(n)).oldLayout,s=ve(e),l=s.dataIndex,u={x:n.x,y:n.y,rotation:n.rotation},f=r.getData(s.dataType);if(o){n.attr(o);var v=e.prevStates;v&&(le(v,"select")>=0&&n.attr(a.oldLayoutSelect),le(v,"emphasis")>=0&&n.attr(a.oldLayoutEmphasis)),Qt(n,u,r,l)}else if(n.attr(u),!bs(n).valueAnimation){var c=Q(n.style.opacity,1);n.style.opacity=0,cn(n,{style:{opacity:c}},r,l)}if(a.oldLayout=u,n.states.select){var h=a.oldLayoutSelect={};El(h,u,Il),El(h,n.states.select,Il)}if(n.states.emphasis){var d=a.oldLayoutEmphasis={};El(d,u,Il),El(d,n.states.emphasis,Il)}!function DT(t,e,r,n,i){var a=bs(t);if(a.valueAnimation&&a.prevValue!==a.value){var o=a.defaultInterpolatedText,s=Q(a.interpolatedValue,a.prevValue),l=a.value;t.percent=0,(null==a.prevValue?cn:Qt)(t,{percent:1},n,e,null,function u(f){var c=function Zx(t,e,r,n,i){var a=null==e||"auto"===e;if(null==n)return n;if(ge(n))return fr(o=Jd(r||0,n,i),a?Math.max(cr(r||0),cr(n)):e);if(U(n))return i<1?r:n;for(var s=[],l=r,u=n,f=Math.max(l?l.length:0,u.length),c=0;c<f;++c){var v=t.getDimensionInfo(c);if(v&&"ordinal"===v.type)s[c]=(i<1&&l?l:u)[c];else{var h=l&&l[c]?l[c]:0,d=u[c],o=Jd(h,d,i);s[c]=fr(o,a?Math.max(cr(h),cr(d)):e)}}return s}(r,a.precision,s,l,f);a.interpolatedValue=1===f?null:c;var v=Bf({labelDataIndex:e,labelFetcher:i,defaultText:o?o(c):c+""},a.statesModels,c);fg(t,v)})}}(n,l,f,r,r)}if(i&&!i.ignore&&!i.invisible){var a=xR(i),m={points:i.shape.points};(o=a.oldLayout)?(i.attr({shape:o}),Qt(i,{shape:m},r)):(i.setShape(m),i.style.strokePercent=0,cn(i,{style:{strokePercent:1}},r)),a.oldLayout=m}},t}();const wR=TR;var qh=ye();function q_(t){t.registerUpdateLifecycle("series:beforeupdate",function(e,r,n){var i=qh(r).labelManager;i||(i=qh(r).labelManager=new wR),i.clearLabels()}),t.registerUpdateLifecycle("series:layoutlabels",function(e,r,n){var i=qh(r).labelManager;n.updatedSeries.forEach(function(a){i.addLabelsOfSeries(r.getViewOfSeriesModel(a))}),i.updateLayoutConfig(r),i.layout(r),i.processLabelsOverall()})}pn(q_);var U_=2*Math.PI,kl=Math.PI/180;function DR(t,e,r){e.eachSeriesByType(t,function(n){var i=n.getData(),a=i.mapDimension("value"),o=function fw(t,e){var r=function uw(t,e){var i,a,r=ac(t,e,{enableLayoutOnlyByCenter:!0}),n=t.getBoxLayoutParams();if(r.type===Fa.point)a=r.refPoint,i=Fr(n,{width:e.getWidth(),height:e.getHeight()});else{var o=t.get("center"),s=z(o)?o:[o,o];i=Fr(n,r.refContainer),a=2===r.boxCoordFrom?r.refPoint:[me(s[0],i.width)+i.x,me(s[1],i.height)+i.y]}return{viewRect:i,center:a}}(t,e),n=r.viewRect,i=r.center,a=t.get("radius");z(a)||(a=[0,a]);var o=me(n.width,e.getWidth()),s=me(n.height,e.getHeight()),l=Math.min(o,s),u=me(a[0],l/2),f=me(a[1],l/2);return{cx:i[0],cy:i[1],r0:u,r:f,viewRect:n}}(n,r),s=o.cx,l=o.cy,u=o.r,f=o.r0,c=o.viewRect,v=-n.get("startAngle")*kl,h=n.get("endAngle"),d=n.get("padAngle")*kl;h="auto"===h?v-U_:-h*kl;var p=n.get("minAngle")*kl+d,g=0;i.each(a,function(q){!isNaN(q)&&g++});var y=i.getSum(a),_=Math.PI/(y||g)*2,C=n.get("clockwise"),b=n.get("roseType"),S=n.get("stillShowZeroSum"),x=i.getDataExtent(a);x[0]=0;var T=C?1:-1,w=[v,h],L=T*d/2;xp(w,!C),v=w[0],h=w[1];var A=Y_(n);A.startAngle=v,A.endAngle=h,A.clockwise=C,A.cx=s,A.cy=l,A.r=u,A.r0=f;var R=Math.abs(h-v),M=R,E=0,I=v;if(i.setLayout({viewRect:c,r:u}),i.each(a,function(q,W){var H;if(isNaN(q))i.setItemLayout(W,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:C,cx:s,cy:l,r0:f,r:b?NaN:u});else{(H="area"!==b?0===y&&S?_:q*_:R/g)<p?(H=p,M-=p):E+=q;var V=I+T*H,G=0,N=0;d>H?N=G=I+T*H/2:(G=I+L,N=V-L),i.setItemLayout(W,{angle:H,startAngle:G,endAngle:N,clockwise:C,cx:s,cy:l,r0:f,r:b?os(q,x,[f,u]):u}),I=V}}),M<U_&&g)if(M<=.001){var O=R/g;i.each(a,function(q,W){if(!isNaN(q)){var H=i.getItemLayout(W);H.angle=O;var V=0,G=0;O<d?G=V=v+T*(W+.5)*O:(V=v+T*W*O+L,G=v+T*(W+1)*O-L),H.startAngle=V,H.endAngle=G}})}else _=M/E,I=v,i.each(a,function(q,W){if(!isNaN(q)){var H=i.getItemLayout(W),V=H.angle===p?p:q*_,G=0,N=0;V<d?N=G=I+T*V/2:(G=I+L,N=I+T*V-L),H.startAngle=G,H.endAngle=N,I+=T*V}})})}var Y_=ye(),LR=Math.PI/180;function X_(t,e,r,n,i,a,o,s,l,u){if(!(t.length<2)){for(var v=t.length,h=0;h<v;h++)"outer"===t[h].position&&"labelLine"===t[h].labelAlignTo&&(t[h].linePoints[1][0]+=t[h].label.x-u,t[h].label.x=u);Gh(t,1,l,l+o)&&function c(m){for(var p={list:[],maxY:0},g={list:[],maxY:0},y=0;y<m.length;y++)if("none"===m[y].labelAlignTo){var _=m[y],C=_.label.y>r?g:p,b=Math.abs(_.label.y-r);if(b>=C.maxY){var S=_.label.x-e-_.len2*i,x=n+_.len,T=Math.abs(S)<x?Math.sqrt(b*b/(1-S*S/x/x)):x;C.rB=T,C.maxY=b}C.list.push(_)}f(p),f(g)}(t)}function f(m){for(var p=m.rB,g=p*p,y=0;y<m.list.length;y++){var _=m.list[y],C=Math.abs(_.label.y-r),b=n+_.len,x=Math.sqrt(Math.abs(b*b*(1-C*C/g))),T=e+(x+_.len2)*i;j_(_,_.targetTextWidth-(T-_.label.x)*i,!0),_.label.x=T}}}function j_(t,e,r){if(null==t.labelStyleWidth){var n=t.label,i=n.style,a=t.rect,o=i.backgroundColor,s=i.padding,l=s?s[1]+s[3]:0,u=i.overflow,f=a.width+(o?0:l);if(e<f||r){if(u&&u.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",e-l);var c=n.getBoundingRect();n.setStyle("width",Math.ceil(c.width)),n.setStyle("backgroundColor",o)}else{var v=e-l;n.setStyle("width",e<f?v:r?v>t.unconstrainedWidth?null:v:null)}Z_(a,n)}}}function Z_(t,e){$_.rect=t,H_($_,e,PR)}var PR={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},$_={};function Uh(t){return"center"===t.position}function Ol(t,e,r){var n=t.get("borderRadius");if(null==n)return r?{cornerRadius:0}:null;z(n)||(n=[n,n,n,n]);var i=Math.abs(e.r||0-e.r0||0);return{cornerRadius:K(n,function(a){return an(a,i)})}}var ER=function(t){function e(r,n,i){var a=t.call(this)||this;a.z2=2;var o=new Be;return a.setTextContent(o),a.updateData(r,n,i,!0),a}return(0,X.C6)(e,t),e.prototype.updateData=function(r,n,i,a){var o=this,s=r.hostModel,l=r.getItemModel(n),u=l.getModel("emphasis"),f=r.getItemLayout(n),c=k(Ol(l.getModel("itemStyle"),f,!0),f);if(isNaN(c.startAngle))o.setShape(c);else{if(a){o.setShape(c);var v=s.getShallow("animationType");s.ecModel.ssr?(cn(o,{scaleX:0,scaleY:0},s,{dataIndex:n,isFrom:!0}),o.originX=c.cx,o.originY=c.cy):"scale"===v?(o.shape.r=f.r0,cn(o,{shape:{r:f.r}},s,n)):null!=i?(o.setShape({startAngle:i,endAngle:i}),cn(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,n)):(o.shape.endAngle=f.startAngle,Qt(o,{shape:{endAngle:f.endAngle}},s,n))}else(function ST(t){og(t).oldStyle=t.style})(o),Qt(o,{shape:c},s,n);o.useStyle(r.getItemVisual(n,"style")),function yT(t,e,r,n){r=r||"itemStyle";for(var i=0;i<ng.length;i++){var a=ng[i],o=e.getModel([a,r]);t.ensureState(a).style=n?n(o):o[mT[r]]()}}(o,l);var h=(f.startAngle+f.endAngle)/2,d=s.get("selectedOffset"),m=Math.cos(h)*d,p=Math.sin(h)*d,g=l.getShallow("cursor");g&&o.attr("cursor",g),this._updateLabel(s,r,n),o.ensureState("emphasis").shape=k({r:f.r+(u.get("scale")&&u.get("scaleSize")||0)},Ol(u.getModel("itemStyle"),f)),k(o.ensureState("select"),{x:m,y:p,shape:Ol(l.getModel(["select","itemStyle"]),f)}),k(o.ensureState("blur"),{shape:Ol(l.getModel(["blur","itemStyle"]),f)});var y=o.getTextGuideLine(),_=o.getTextContent();y&&k(y.ensureState("select"),{x:m,y:p}),k(_.ensureState("select"),{x:m,y:p}),function pT(t,e,r,n){n?function dT(t){ig(t,!1)}(t):Cs(t,e,r)}(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))}},e.prototype._updateLabel=function(r,n,i){var a=this,o=n.getItemModel(i),s=o.getModel("labelLine"),l=n.getItemVisual(i,"style"),u=l&&l.fill,f=l&&l.opacity;cg(a,function bT(t,e){for(var r={normal:t.getModel(e=e||"label")},n=0;n<mr.length;n++){var i=mr[n];r[i]=t.getModel([i,e])}return r}(o),{labelFetcher:n.hostModel,labelDataIndex:i,inheritColor:u,defaultOpacity:f,defaultText:r.getFormattedLabel(i,"normal")||n.getName(i)});var c=a.getTextContent();a.setTextConfig({position:null,rotation:null}),c.attr({z2:10});var v=o.get(["label","position"]);if("outside"!==v&&"outer"!==v)a.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new ja,this.setTextGuideLine(h)),O_(this,B_(o),{stroke:u,opacity:$r(s.get(["lineStyle","opacity"]),f,1)})}},e}(Xa),IR=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.ignoreLabelLineUpdate=!0,r}return(0,X.C6)(e,t),e.prototype.render=function(r,n,i,a){var u,o=r.getData(),s=this._data,l=this.group;if(!s&&o.count()>0){for(var f=o.getItemLayout(0),c=1;isNaN(f&&f.startAngle)&&c<o.count();++c)f=o.getItemLayout(c);f&&(u=f.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),0===o.count()&&r.get("showEmptyCircle")){var v=Y_(r),h=new Xa({shape:se(v)});h.useStyle(r.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=h,l.add(h)}o.diff(s).add(function(d){var m=new ER(o,d,u);o.setItemGraphicEl(d,m),l.add(m)}).update(function(d,m){var p=s.getItemGraphicEl(m);p.updateData(o,d,u),p.off("click"),l.add(p),o.setItemGraphicEl(d,p)}).remove(function(d){ug(s.getItemGraphicEl(d),r,d)}).execute(),function RR(t){var n,i,e=t.getData(),r=[],a=!1,o=(t.get("minShowLabelAngle")||0)*LR,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,f=s.x,c=s.y,v=s.height;function h(S){S.ignore=!0}e.each(function(S){var x=e.getItemGraphicEl(S),T=x.shape,w=x.getTextContent(),L=x.getTextGuideLine(),A=e.getItemModel(S),R=A.getModel("label"),M=R.get("position")||A.get(["emphasis","label","position"]),E=R.get("distanceToLabelLine"),I=R.get("alignTo"),O=me(R.get("edgeDistance"),u),q=R.get("bleedMargin");null==q&&(q=Math.min(u,v)>200?10:2);var W=A.getModel("labelLine"),H=W.get("length");H=me(H,u);var V=W.get("length2");if(V=me(V,u),Math.abs(T.endAngle-T.startAngle)<o)return D(w.states,h),w.ignore=!0,void(L&&(D(L.states,h),L.ignore=!0));if(function d(S){if(!S.ignore)return!0;for(var x in S.states)if(!1===S.states[x].ignore)return!0;return!1}(w)){var De,ht,Mt,vt,G=(T.startAngle+T.endAngle)/2,N=Math.cos(G),ie=Math.sin(G);n=T.cx,i=T.cy;var et="inside"===M||"inner"===M;if("center"===M)De=T.cx,ht=T.cy,vt="center";else{var je=(et?(T.r+T.r0)/2*N:T.r*N)+n,Oe=(et?(T.r+T.r0)/2*ie:T.r*ie)+i;if(De=je+3*N,ht=Oe+3*ie,!et){var re=je+N*(H+l-T.r),fe=Oe+ie*(H+l-T.r),Tr=re+(N<0?-1:1)*V;De="edge"===I?N<0?f+O:f+u-O:Tr+(N<0?-E:E),ht=fe,Mt=[[je,Oe],[re,fe],[Tr,fe]]}vt=et?"center":"edge"===I?N>0?"right":"left":N>0?"left":"right"}var Sn=Math.PI,qr=0,_o=R.get("rotate");if(ge(_o))qr=_o*(Sn/180);else if("center"===M)qr=0;else if("radial"===_o||!0===_o)qr=N<0?-G+Sn:-G;else if("tangential"===_o&&"outside"!==M&&"outer"!==M){var ta=Math.atan2(N,ie);ta<0&&(ta=2*Sn+ta),ie>0&&(ta=Sn+ta),qr=ta-Sn}if(a=!!qr,w.x=De,w.y=ht,w.rotation=qr,w.setStyle({verticalAlign:"middle"}),et){w.setStyle({align:vt});var _v=w.states.select;_v&&(_v.x+=w.x,_v.y+=w.y)}else{var yv=new ne(0,0,0,0);Z_(yv,w),r.push({label:w,labelLine:L,position:M,len:H,len2:V,minTurnAngle:W.get("minTurnAngle"),maxSurfaceAngle:W.get("maxSurfaceAngle"),surfaceNormal:new te(N,ie),linePoints:Mt,textAlign:vt,labelDistance:E,labelAlignTo:I,edgeDistance:O,bleedMargin:q,rect:yv,unconstrainedWidth:yv.width,labelStyleWidth:w.style.width})}x.setTextConfig({inside:et})}}),!a&&t.get("avoidLabelOverlap")&&function AR(t,e,r,n,i,a,o,s){for(var l=[],u=[],f=Number.MAX_VALUE,c=-Number.MAX_VALUE,v=0;v<t.length;v++){var h=t[v].label;Uh(t[v])||(h.x<e?(f=Math.min(f,h.x),l.push(t[v])):(c=Math.max(c,h.x),u.push(t[v])))}for(v=0;v<t.length;v++)if(!Uh(d=t[v])&&d.linePoints){if(null!=d.labelStyleWidth)continue;h=d.label;var p,m=d.linePoints;d.targetTextWidth=p="edge"===d.labelAlignTo?h.x<e?m[2][0]-d.labelDistance-o-d.edgeDistance:o+i-d.edgeDistance-m[2][0]-d.labelDistance:"labelLine"===d.labelAlignTo?h.x<e?f-o-d.bleedMargin:o+i-c-d.bleedMargin:h.x<e?h.x-o-d.bleedMargin:o+i-h.x-d.bleedMargin,j_(d,p,!1)}for(X_(u,e,r,n,1,0,a,0,s,c),X_(l,e,r,n,-1,0,a,0,s,f),v=0;v<t.length;v++){var d;if(!Uh(d=t[v])&&d.linePoints){var y=(h=d.label).style.padding,b=d.rect.width+(h.style.backgroundColor?0:y?y[1]+y[3]:0),S=(m=d.linePoints)[1][0]-m[2][0];"edge"===d.labelAlignTo?m[2][0]=h.x<e?o+d.edgeDistance+b+d.labelDistance:o+i-d.edgeDistance-b-d.labelDistance:(m[2][0]=h.x<e?h.x+d.labelDistance:h.x-d.labelDistance,m[1][0]=m[2][0]+S),m[1][1]=m[2][1]=h.y}}}(r,n,i,l,u,v,f,c);for(var m=0;m<r.length;m++){var p=r[m],g=p.label,y=p.labelLine,_=isNaN(g.x)||isNaN(g.y);if(g){g.setStyle({align:p.textAlign}),_&&(D(g.states,h),g.ignore=!0);var C=g.states.select;C&&(C.x+=g.x,C.y+=g.y)}if(y){var b=p.linePoints;_||!b?(D(y.states,h),y.ignore=!0):(k_(b,p.minTurnAngle),pR(b,p.surfaceNormal,p.maxSurfaceAngle),y.setShape({points:b}),g.__hostTarget.textGuideLineConfig={anchor:new te(b[0][0],b[0][1])})}}}(r),"expansion"!==r.get("animationTypeUpdate")&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(r,n){var a=n.getData().getItemLayout(0);if(a){var o=r[0]-a.cx,s=r[1]-a.cy,l=Math.sqrt(o*o+s*s);return l<=a.r&&l>=a.r0}},e.type="pie",e}(Hr);const kR=IR;var BR=function(){function t(e,r){this._getDataWithEncodedVisual=e,this._getRawData=r}return t.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},t.prototype.containName=function(e){return this._getRawData().indexOfName(e)>=0},t.prototype.indexOfName=function(e){return this._getDataWithEncodedVisual().indexOfName(e)},t.prototype.getItemVisual=function(e,r){return this._getDataWithEncodedVisual().getItemVisual(e,r)},t}();const FR=BR;var NR=ye(),K_=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,X.C6)(e,t),e.prototype.init=function(r){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new FR(he(this.getData,this),he(this.getRawData,this)),this._defaultLabelLine(r)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return function OR(t,e,r){e=z(e)&&{coordDimensions:e}||k({encodeDefine:t.getEncode()},e);var n=t.getSource(),i=Dh(n,e).dimensions,a=new wh(i,t);return a.initData(n,r),a}(this,{coordDimensions:["value"],encodeDefaulter:Ae(yw,this)})},e.prototype.getDataParams=function(r){var n=this.getData(),i=NR(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),a=i.seats=Xd(o,n.hostModel.get("percentPrecision"))}var s=t.prototype.getDataParams.call(this,r);return s.percent=a[r]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(r){Ku(r,"labelLine",["show"]);var n=r.labelLine,i=r.emphasis.labelLine;n.show=n.show&&r.label.show,i.show=i.show&&r.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"50%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:"box",left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(vn);!function aw(t){Eg.set(t.fullType,{getCoord2:void 0}).getCoord2=t.getCoord2}({fullType:K_.type,getCoord2:function(t){return t.getShallow("center")}});const zR=K_;var VR=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.type=e.type,r.layoutMode={type:"box",ignoreSize:!0},r}return(0,X.C6)(e,t),e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"center",top:ue.size.m,backgroundColor:ue.color.transparent,borderColor:ue.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:ue.color.primary},subtextStyle:{fontSize:12,color:ue.color.quaternary}},e}(xe),WR=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.type=e.type,r}return(0,X.C6)(e,t),e.prototype.render=function(r,n,i){if(this.group.removeAll(),r.get("show")){var a=this.group,o=r.getModel("textStyle"),s=r.getModel("subtextStyle"),l=r.get("textAlign"),u=Q(r.get("textBaseline"),r.get("textVerticalAlign")),f=new Be({style:Or(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),c=f.getBoundingRect(),v=r.get("subtext"),h=new Be({style:Or(s,{text:v,fill:s.getTextColor(),y:c.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=r.get("link"),m=r.get("sublink"),p=r.get("triggerEvent",!0);f.silent=!d&&!p,h.silent=!m&&!p,d&&f.on("click",function(){Rg(d,"_"+r.get("target"))}),m&&h.on("click",function(){Rg(m,"_"+r.get("subtarget"))}),ve(f).eventData=ve(h).eventData=p?{componentType:"title",componentIndex:r.componentIndex}:null,a.add(f),v&&a.add(h);var g=a.getBoundingRect(),y=r.getBoxLayoutParams();y.width=g.width,y.height=g.height;var C=Fr(y,ac(r,i).refContainer,r.get("padding"));l||("middle"===(l=r.get("left")||r.get("right"))&&(l="center"),"right"===l?C.x+=C.width:"center"===l&&(C.x+=C.width/2)),u||("center"===(u=r.get("top")||r.get("bottom"))&&(u="middle"),"bottom"===u?C.y+=C.height:"middle"===u&&(C.y+=C.height/2),u=u||"top"),a.x=C.x,a.y=C.y,a.markRedraw();var b={align:l,verticalAlign:u};f.setStyle(b),h.setStyle(b),g=a.getBoundingRect();var S=C.margin,x=r.getItemStyle(["color","opacity"]);x.fill=r.get("backgroundColor");var T=new Ye({shape:{x:g.x-S[3],y:g.y-S[0],width:g.width+S[1]+S[3],height:g.height+S[0]+S[2],r:r.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});a.add(T)}},e.type="title",e}(Bt);function Yh(t,e){return"all"===t||z(t)&&le(t,e)>=0||t===e}function Xh(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[co(t)]}function jh(t){return!!t.get(["handle","show"])}function co(t){return t.type+"||"+t.id}var Q_={},QR=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.type=e.type,r}return(0,X.C6)(e,t),e.prototype.render=function(r,n,i,a){this.axisPointerClass&&function $R(t){var e=Xh(t);if(e){var r=e.axisPointerModel,n=e.axis.scale,i=r.option,a=r.get("status"),o=r.get("value");null!=o&&(o=n.parse(o));var s=jh(r);null==a&&(i.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==o||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),i.value=o,s&&(i.status=e.axis.scale.isBlank()?"hide":"show")}}(r),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,i,!0)},e.prototype.updateAxisPointer=function(r,n,i,a){this._doUpdateAxisPointerClass(r,i,!1)},e.prototype.remove=function(r,n){var i=this._axisPointer;i&&i.remove(n)},e.prototype.dispose=function(r,n){this._disposeAxisPointer(n),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(r,n,i){var a=e.getAxisPointerClass(this.axisPointerClass);if(a){var o=function KR(t){var e=Xh(t);return e&&e.axisPointerModel}(r);o?(this._axisPointer||(this._axisPointer=new a)).render(r,o,n,i):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},e.registerAxisPointerClass=function(r,n){Q_[r]=n},e.getAxisPointerClass=function(r){return r&&Q_[r]},e.type="axis",e}(Bt);const JR=QR;var di=ye(),J_=se,Zh=he,eE=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(e,r,n,i){var a=r.get("value"),o=r.get("status");if(this._axisModel=e,this._axisPointerModel=r,this._api=n,i||this._lastValue!==a||this._lastStatus!==o){this._lastValue=a,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||"hide"===o)return s&&s.hide(),void(l&&l.hide());s&&s.show(),l&&l.show();var u={};this.makeElOption(u,a,e,r,n);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=f;var c=this._moveAnimation=this.determineAnimation(e,r);if(s){var v=Ae(eC,r,c);this.updatePointerEl(s,u,v),this.updateLabelEl(s,u,v,r)}else s=this._group=new Tt,this.createPointerEl(s,u,e,r),this.createLabelEl(s,u,e,r),n.getZr().add(s);nC(s,r,!0),this._renderHandle(a)}},t.prototype.remove=function(e){this.clear(e)},t.prototype.dispose=function(e){this.clear(e)},t.prototype.determineAnimation=function(e,r){var n=r.get("animation"),i=e.axis,a="category"===i.type,o=r.get("snap");if(!o&&!a)return!1;if("auto"===n||null==n){var s=this.animationThreshold;if(a&&i.getBandWidth()>s)return!0;if(o){var l=Xh(e).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return!0===n},t.prototype.makeElOption=function(e,r,n,i,a){},t.prototype.createPointerEl=function(e,r,n,i){var a=r.pointer;if(a){var o=di(e).pointerEl=new Mr[a.type](J_(r.pointer));e.add(o)}},t.prototype.createLabelEl=function(e,r,n,i){if(r.label){var a=di(e).labelEl=new Be(J_(r.label));e.add(a),rC(a,i)}},t.prototype.updatePointerEl=function(e,r,n){var i=di(e).pointerEl;i&&r.pointer&&(i.setStyle(r.pointer.style),n(i,{shape:r.pointer.shape}))},t.prototype.updateLabelEl=function(e,r,n,i){var a=di(e).labelEl;a&&(a.setStyle(r.label.style),n(a,{x:r.label.x,y:r.label.y}),rC(a,i))},t.prototype._renderHandle=function(e){if(!this._dragging&&this.updateHandleTransform){var s,r=this._axisPointerModel,n=this._api.getZr(),i=this._handle,a=r.getModel("handle"),o=r.get("status");if(!a.get("show")||!o||"hide"===o)return i&&n.remove(i),void(this._handle=null);this._handle||(s=!0,i=this._handle=Ks(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){zv(u.event)},onmousedown:Zh(this._onHandleDragMove,this,0,0),drift:Zh(this._onHandleDragMove,this),ondragend:Zh(this._onHandleDragEnd,this)}),n.add(i)),nC(i,r,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");z(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,Iy(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},t.prototype._moveHandleToValue=function(e,r){eC(this._axisPointerModel,!r&&this._moveAnimation,this._handle,$h(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(e,r){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform($h(n),[e,r],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr($h(i)),di(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){if(this._handle){var r=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var r=e.getZr(),n=this._group,i=this._handle;r&&n&&(this._lastGraphicKey=null,n&&r.remove(n),i&&r.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),Xc(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(e,r,n){return{x:e[n=n||0],y:e[1-n],width:r[n],height:r[1-n]}},t}();function eC(t,e,r,n){tC(di(r).lastProp,n)||(di(r).lastProp=n,e?Qt(r,n,t):(r.stopAnimation(),r.attr(n)))}function tC(t,e){if($(t)&&$(e)){var r=!0;return D(e,function(n,i){r=r&&tC(t[i],n)}),!!r}return t===e}function rC(t,e){t[e.get(["label","show"])?"show":"hide"]()}function $h(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function nC(t,e,r){var n=e.get("z"),i=e.get("zlevel");t&&t.traverse(function(a){"group"!==a.type&&(null!=n&&(a.z=n),null!=i&&(a.zlevel=i),a.silent=r)})}const tE=eE;var _n=Math.PI,uE=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],fE=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],ho=ye(),sC=ye(),cE=function(){function t(e){this.recordMap={},this.resolveAxisNameOverlap=e}return t.prototype.ensureRecord=function(e){var r=e.axis.dim,n=e.componentIndex,i=this.recordMap,a=i[r]||(i[r]=[]);return a[n]||(a[n]={ready:{}})},t}(),vo=[1,0,0,1,0,0],Bl=new ne(0,0,0,0),vE=function(t,e,r,n,i,a){if(Dl(t.nameLocation)){var o=a.stOccupiedRect;o&&lC(function yR(t,e,r){return t.transform=qc(t.transform,r),t.localRect=$a(t.localRect,e),t.rect=$a(t.rect,e),r&&t.rect.applyTransform(r),t.axisAligned=Wc(r),t.obb=void 0,(t.label=t.label||{}).ignore=!1,t}({},o,a.transGroup.transform),n,i)}else!function dE(t,e,r,n){for(var i=te.dot(n,e)>=0,a=0,o=t.length;a<o;a++){var s=t[i?a:o-1-a];s.label.ignore||lC(s,r,n)}}(a.labelInfoList,a.dirVec,n,i)};function lC(t,e,r){var n=new te;Vh(t,e,n,{direction:Math.atan2(r.y,r.x),bidirectional:!1,touchThreshold:.05})&&function _R(t,e){if(t){t.label.x+=e.x,t.label.y+=e.y,t.label.markRedraw();var r=t.transform;r&&(r[4]+=e.x,r[5]+=e.y);var n=t.rect;n&&(n.x+=e.x,n.y+=e.y);var i=t.obb;i&&i.fromBoundingRect(t.localRect,r)}}(e,n)}var pi=function(){function t(e,r,n,i){this.group=new Tt,this._axisModel=e,this._api=r,this._local={},this._shared=i||new cE(vE),this._resetCfgDetermined(n)}return t.prototype.updateCfg=function(e){var n=this._cfg.raw;n.position=e.position,n.labelOffset=e.labelOffset,this._resetCfgDetermined(n)},t.prototype.__getRawCfg=function(){return this._cfg.raw},t.prototype._resetCfgDetermined=function(e){var r=this._axisModel,n=r.getDefaultOption?r.getDefaultOption():{},i=Q(e.axisName,r.get("name")),a=r.get("nameMoveOverlap");(null==a||"auto"===a)&&(a=Q(e.defaultNameMoveOverlap,!0));var o={raw:e,position:e.position,rotation:e.rotation,nameDirection:Q(e.nameDirection,1),tickDirection:Q(e.tickDirection,1),labelDirection:Q(e.labelDirection,1),labelOffset:Q(e.labelOffset,0),silent:Q(e.silent,!0),axisName:i,nameLocation:$r(r.get("nameLocation"),n.nameLocation,"end"),shouldNameMoveOverlap:tv(i)&&a,optionHideOverlap:r.get(["axisLabel","hideOverlap"]),showMinorTicks:r.get(["minorTick","show"])};this._cfg=o;var s=new Tt({x:o.position[0],y:o.position[1],rotation:o.rotation});s.updateTransform(),this._transformGroup=s;var l=this._shared.ensureRecord(r);l.transGroup=this._transformGroup,l.dirVec=new te(Math.cos(-o.rotation),Math.sin(-o.rotation))},t.prototype.build=function(e,r){var n=this;return e||(e={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),D(pE,function(i){e[i]&&gE[i](n._cfg,n._local,n._shared,n._axisModel,n.group,n._transformGroup,n._api,r||{})}),this},t.innerTextLayout=function(e,r,n){var a,o,i=ju(r-e);return ba(i)?(o=n>0?"top":"bottom",a="center"):ba(i-_n)?(o=n>0?"bottom":"top",a="center"):(o="middle",a=i>0&&i<_n?n>0?"right":"left":n>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:o}},t.makeAxisEventDataBase=function(e){var r={componentType:e.mainType,componentIndex:e.componentIndex};return r[e.mainType+"Index"]=e.componentIndex,r},t.isLabelSilent=function(e){var r=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||r&&r.show)},t}(),pE=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],gE={axisLine:function(t,e,r,n,i,a,o){var l=n.get(["axisLine","show"]);if("auto"===l&&(l=!0,null!=t.raw.axisLineAutoShow&&(l=!!t.raw.axisLineAutoShow)),l){var u=n.axis.getExtent(),f=a.transform,c=[u[0],0],v=[u[1],0],h=c[0]>v[0];f&&(Ct(c,c,f),Ct(v,v,f));var d=k({lineCap:"round"},n.getModel(["axisLine","lineStyle"]).getLineStyle()),m={strokeContainThreshold:t.raw.strokeContainThreshold||5,silent:!0,z2:1,style:d};if(n.get(["axisLine","breakLine"])&&n.axis.scale.hasBreaks())null.buildAxisBreakLine(n,i,a,m);else{var p=new Xi(k({shape:{x1:c[0],y1:c[1],x2:v[0],y2:v[1]}},m));Nc(p.shape,p.style.lineWidth),p.anid="line",i.add(p)}var g=n.get(["axisLine","symbol"]);if(null!=g){var y=n.get(["axisLine","symbolSize"]);U(g)&&(g=[g,g]),(U(y)||ge(y))&&(y=[y,y]);var _=function wL(t,e){if(null!=t)return z(t)||(t=[t,t]),[me(t[0],e[0])||0,me(Q(t[1],t[0]),e[1])||0]}(n.get(["axisLine","symbolOffset"])||0,y),C=y[0],b=y[1];D([{rotate:t.rotation+Math.PI/2,offset:_[0],r:0},{rotate:t.rotation-Math.PI/2,offset:_[1],r:Math.sqrt((c[0]-v[0])*(c[0]-v[0])+(c[1]-v[1])*(c[1]-v[1]))}],function(S,x){if("none"!==g[x]&&null!=g[x]){var T=rl(g[x],-C/2,-b/2,C,b,d.stroke,!0),w=S.r+S.offset,L=h?v:c;T.attr({rotation:S.rotate,x:L[0]+w*Math.cos(t.rotation),y:L[1]-w*Math.sin(t.rotation),silent:!0,z2:11}),i.add(T)}})}}},axisTickLabelEstimate:function(t,e,r,n,i,a,o,s){cC(e,i,s)&&uC(t,e,r,n,i,a,o,1)},axisTickLabelDetermine:function(t,e,r,n,i,a,o,s){cC(e,i,s)&&uC(t,e,r,n,i,a,o,2);var f=function CE(t,e,r,n){var i=n.axis,a=n.getModel("axisTick"),o=a.get("show");if("auto"===o&&(o=!0,null!=t.raw.axisTickAutoShow&&(o=!!t.raw.axisTickAutoShow)),!o||i.scale.isBlank())return[];for(var s=a.getModel("lineStyle"),l=t.tickDirection*a.get("length"),f=fC(i.getTicksCoords(),r.transform,l,be(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<f.length;c++)e.add(f[c]);return f}(t,i,a,n);(function _E(t,e,r){t.showMinorTicks||D(e,function(n){if(n&&n.label.ignore)for(var i=0;i<r.length;i++){var a=r[i],o=sC(a),s=ho(n.label);if(null!=o.tickValue&&!o.onBand&&o.tickValue===s.tickValue)return void po(a)}})})(t,e.labelLayoutList,f),function SE(t,e,r,n,i){var a=n.axis,o=n.getModel("minorTick");if(t.showMinorTicks&&!a.scale.isBlank()){var s=a.getMinorTicksCoords();if(s.length)for(var l=o.getModel("lineStyle"),u=i*o.get("length"),f=be(l.getLineStyle(),be(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),c=0;c<s.length;c++)for(var v=fC(s[c],r.transform,u,f,"minorticks_"+c),h=0;h<v.length;h++)e.add(v[h])}}(t,i,a,n,t.tickDirection)},axisName:function(t,e,r,n,i,a,o,s){var l=r.ensureRecord(n);e.nameEl&&(i.remove(e.nameEl),e.nameEl=l.nameLayout=l.nameLocation=null);var f=t.axisName;if(tv(f)){var c=t.nameLocation,v=t.nameDirection,h=n.getModel("nameTextStyle"),d=n.get("nameGap")||0,m=n.axis.getExtent(),p=n.axis.inverse?-1:1,g=new te(0,0),y=new te(0,0);"start"===c?(g.x=m[0]-p*d,y.x=-p):"end"===c?(g.x=m[1]+p*d,y.x=p):(g.x=(m[0]+m[1])/2,g.y=t.labelOffset+v*d,y.y=v);var _=[1,0,0,1,0,0];y.transform(Bo(_,_,t.rotation));var b,S,C=n.get("nameRotate");null!=C&&(C=C*_n/180),Dl(c)?b=pi.innerTextLayout(t.rotation,C??t.rotation,v):(b=function mE(t,e,r,n){var a,o,i=ju(r-t),s=n[0]>n[1],l="start"===e&&!s||"start"!==e&&s;return ba(i-_n/2)?(o=l?"bottom":"top",a="center"):ba(i-1.5*_n)?(o=l?"top":"bottom",a="center"):(o="middle",a=i<1.5*_n&&i>_n/2?l?"left":"right":l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}(t.rotation,c,C||0,m),null!=(S=t.raw.axisNameAvailableWidth)&&(S=Math.abs(S/Math.sin(b.rotation)),!isFinite(S)&&(S=null)));var x=h.getFont(),T=n.get("nameTruncate",!0)||{},w=T.ellipsis,L=sa(t.raw.nameTruncateMaxWidth,T.maxWidth,S),A=s.nameMarginLevel||0,R=new Be({x:g.x,y:g.y,rotation:b.rotation,silent:pi.isLabelSilent(n),style:Or(h,{text:f,font:x,overflow:"truncate",width:L,ellipsis:w,fill:h.getTextColor()||n.get(["axisLine","lineStyle","color"]),align:h.get("align")||b.textAlign,verticalAlign:h.get("verticalAlign")||b.textVerticalAlign}),z2:1});if(Za({el:R,componentModel:n,itemName:f}),R.__fullText=f,R.anid="name",n.get("triggerEvent")){var M=pi.makeAxisEventDataBase(n);M.targetType="axisName",M.name=f,ve(R).eventData=M}a.add(R),R.updateTransform(),e.nameEl=R;var E=l.nameLayout=br({label:R,priority:R.z2,defaultAttr:{ignore:R.ignore},marginDefault:Dl(c)?uE[A]:fE[A]});if(l.nameLocation=c,i.add(R),R.decomposeTransform(),t.shouldNameMoveOverlap&&E){var I=r.ensureRecord(n);r.resolveAxisNameOverlap(t,r,n,E,y,I)}}}};function uC(t,e,r,n,i,a,o,s){hC(e)||function bE(t,e,r,n,i,a){var o=i.axis,s=sa(t.raw.axisLabelShow,i.get(["axisLabel","show"])),l=new Tt;r.add(l);var u=Ml(n);if(s&&!o.scale.isBlank()){var f=i.getModel("axisLabel"),c=o.getViewLabels(u),v=(sa(t.raw.labelRotate,f.get("rotate"))||0)*_n/180,h=pi.innerTextLayout(t.rotation,v,t.labelDirection),d=i.getCategories&&i.getCategories(!0),m=[],p=i.get("triggerEvent"),g=1/0,y=-1/0;D(c,function(C,b){var S,x="ordinal"===o.scale.type?o.scale.getRawOrdinalNumber(C.tickValue):C.tickValue,T=C.formattedLabel,w=C.rawLabel,L=f;if(d&&d[x]){var A=d[x];$(A)&&A.textStyle&&(L=new Fe(A.textStyle,f,i.ecModel))}var R=L.getTextColor()||i.get(["axisLine","lineStyle","color"]),M=L.getShallow("align",!0)||h.textAlign,E=Q(L.getShallow("alignMinLabel",!0),M),I=Q(L.getShallow("alignMaxLabel",!0),M),O=L.getShallow("verticalAlign",!0)||L.getShallow("baseline",!0)||h.textVerticalAlign,q=Q(L.getShallow("verticalAlignMinLabel",!0),O),W=Q(L.getShallow("verticalAlignMaxLabel",!0),O),H=10+((null===(S=C.time)||void 0===S?void 0:S.level)||0);g=Math.min(g,H),y=Math.max(y,H);var V=new Be({x:0,y:0,rotation:0,silent:pi.isLabelSilent(i),z2:H,style:Or(L,{text:T,align:0===b?E:b===c.length-1?I:M,verticalAlign:0===b?q:b===c.length-1?W:O,fill:ee(R)?R("category"===o.type?w:"value"===o.type?x+"":x,b):R})});V.anid="label_"+x;var G=ho(V);if(G.break=C.break,G.tickValue=x,G.layoutRotation=h.rotation,Za({el:V,componentModel:i,itemName:T,formatterParamsExtra:{isTruncated:function(){return V.isTruncated},value:w,tickIndex:b}}),p){var N=pi.makeAxisEventDataBase(i);N.targetType="axisLabel",N.value=w,N.tickIndex=b,C.break&&(N.break={start:C.break.parsedBreak.vmin,end:C.break.parsedBreak.vmax}),"category"===o.type&&(N.dataIndex=x),ve(V).eventData=N,C.break&&function wE(t,e,r,n){r.on("click",function(i){var a={type:"expandAxisBreak",breaks:[{start:n.parsedBreak.breakOption.start,end:n.parsedBreak.breakOption.end}]};a[t.axis.dim+"AxisIndex"]=t.componentIndex,e.dispatchAction(a)})}(i,a,V,C.break)}m.push(V),l.add(V)}),ev(e,K(m,function(C){return{label:C,priority:ho(C).break?C.z2+(y-g+1):C.z2,defaultAttr:{ignore:C.ignore}}}),l,u)}else ev(e,[],l,u)}(t,e,i,s,n,o);var l=e.labelLayoutList;(function xE(t,e,r,n){var i=e.get(["axisLabel","margin"]);D(r,function(a,o){var s=br(a);if(s){var l=s.label,u=ho(l);s.suggestIgnore=l.ignore,l.ignore=!1,zu(Vr,TE),Vr.x=e.axis.dataToCoord(u.tickValue),Vr.y=t.labelOffset+t.labelDirection*i,Vr.rotation=u.layoutRotation,n.add(Vr),Vr.updateTransform(),n.remove(Vr),Vr.decomposeTransform(),zu(l,Vr),l.markRedraw(),Rl(s,!0),br(s)}})})(t,n,l,a),function DE(t,e,r){var n=null;if(n){var i=n.retrieveAxisBreakPairs(r,function(o){return o&&ho(o.label).break},!0),a=t.get(["breakLabelLayout","moveOverlap"],!0);(!0===a||"auto"===a)&&D(i,function(o){null.adjustBreakLabelPair(t.axis.inverse,e,[br(r[o[0]]),br(r[o[1]])])})}}(n,t.rotation,l);var u=t.optionHideOverlap;(function yE(t,e,r){if(!d_(t.axis)){var i=t.get(["axisLabel","showMinLabel"]),a=t.get(["axisLabel","showMaxLabel"]),o=e.length;n(i,0,1),n(a,o-1,o-2)}function n(s,l,u){var f=br(e[l]),c=br(e[u]);if(f&&c){if(!1===s||f.suggestIgnore)return void po(f.label);if(c.suggestIgnore)return void po(c.label);if(!r){var h=[0,0,0,0];f=Hh({marginForce:h},f),c=Hh({marginForce:h},c)}Vh(f,c,null,{touchThreshold:.1})&&po(s?c.label:f.label)}}})(n,l,u),u&&V_(Me(l,function(f){return f&&!f.label.ignore})),function hE(t,e,r,n){var s,i=r.axis,a=e.ensureRecord(r),o=[],l=tv(t.axisName)&&Dl(t.nameLocation);D(n,function(d){var m=br(d);if(m&&!m.label.ignore){o.push(m);var p=a.transGroup;l&&(p.transform?Mn(vo,p.transform):ua(vo),m.transform&&Dn(vo,vo,m.transform),ne.copy(Bl,m.localRect),Bl.applyTransform(vo),s?s.union(Bl):ne.copy(s=new ne(0,0,0,0),Bl))}});var u=Math.abs(a.dirVec.x)>.1?"x":"y",f=a.transGroup[u];if(o.sort(function(d,m){return Math.abs(d.label[u]-f)-Math.abs(m.label[u]-f)}),l&&s){var c=i.getExtent(),v=Math.min(c[0],c[1]),h=Math.max(c[0],c[1])-v;s.union(new ne(v,0,h,1))}a.stOccupiedRect=s,a.labelInfoList=o}(t,r,n,l)}function po(t){t&&(t.ignore=!0)}function fC(t,e,r,n,i){for(var a=[],o=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=r,e&&(Ct(o,o,e),Ct(s,s,e));var f=new Xi({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});Nc(f.shape,f.style.lineWidth),f.anid=i+"_"+t[l].tickValue,a.push(f);var c=sC(f);c.onBand=!!t[l].onBand,c.tickValue=t[l].tickValue}return a}function cC(t,e,r){if(hC(t)){var i=t.axisLabelsCreationContext.out.noPxChangeTryDetermine;if(r.noPxChange){for(var a=!0,o=0;o<i.length;o++)a=a&&i[o]();if(a)return!1}i.length&&(e.remove(t.labelGroup),ev(t,null,null,null))}return!0}function hC(t){return!!t.labelLayoutList}function ev(t,e,r,n){t.labelLayoutList=e,t.labelGroup=r,t.axisLabelsCreationContext=n}var Vr=new Ye,TE=new Ye;function tv(t){return!!t}const ME=pi;function vC(t,e,r,n,i){t=e.scale.parse(t);var a=e.scale.getLabel({value:t},{precision:i.precision}),o=i.formatter;if(o){var s={value:wl(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};D(n,function(l){var u=r.getSeriesByIndex(l.seriesIndex),c=u&&u.getDataParams(l.dataIndexInside);c&&s.seriesData.push(c)}),U(o)?a=o.replace("{value}",a):ee(o)&&(a=o(s))}return a}function dC(t,e,r){var n=[1,0,0,1,0,0];return Bo(n,n,r.rotation),Oo(n,n,r.position),zc([t.dataToCoord(e),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function IE(t,e,r){return{x:t[r=r||0],y:t[1-r],width:e[r],height:e[1-r]}}function Fl(t,e,r){r=r||{};var n=e.axis,i={},a=n.getAxesOnZeroOf()[0],o=n.position,s=a?"onZero":o,l=n.dim,u=[t.x,t.x+t.width,t.y,t.y+t.height],f={left:0,right:1,top:0,bottom:1,onZero:2},c=e.get("offset")||0,v="x"===l?[u[2]-c,u[3]+c]:[u[0]-c,u[1]+c];if(a){var h=a.toGlobalCoord(a.dataToCoord(0));v[f.onZero]=Math.max(Math.min(h,v[1]),v[0])}i.position=["y"===l?v[f[s]]:u[0],"x"===l?v[f[s]]:u[3]],i.rotation=Math.PI/2*("x"===l?0:1),i.labelDirection=i.tickDirection=i.nameDirection={top:-1,bottom:1,left:-1,right:1}[o],i.labelOffset=a?v[f[o]]-v[f.onZero]:0,e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),sa(r.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var m=e.get(["axisLabel","rotate"]);return i.labelRotate="top"===s?-m:m,i.z2=1,i}var NE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,X.C6)(e,t),e.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis,l=s.grid,u=a.get("type"),f=pC(l,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&"none"!==u){var v=function LE(t){var n,e=t.get("type"),r=t.getModel(e+"Style");return"line"===e?(n=r.getLineStyle()).fill=null:"shadow"===e&&((n=r.getAreaStyle()).stroke=null),n}(a),h=zE[u](s,c,f);h.style=v,r.graphicKey=h.type,r.pointer=h}!function RE(t,e,r,n,i,a){var o=ME.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=i.get(["label","margin"]),function AE(t,e,r,n,i){var o=vC(r.get("value"),e.axis,e.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=ka(s.get("padding")||0),u=s.getFont(),f=Bd(o,u),c=i.position,v=f.width+l[1]+l[3],h=f.height+l[0]+l[2],d=i.align;"right"===d&&(c[0]-=v),"center"===d&&(c[0]-=v/2);var m=i.verticalAlign;"bottom"===m&&(c[1]-=h),"middle"===m&&(c[1]-=h/2),function PE(t,e,r,n){var i=n.getWidth(),a=n.getHeight();t[0]=Math.min(t[0]+e,i)-e,t[1]=Math.min(t[1]+r,a)-r,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}(c,v,h,n);var p=s.get("backgroundColor");(!p||"auto"===p)&&(p=e.get(["axisLine","lineStyle","color"])),t.label={x:c[0],y:c[1],style:Or(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:p}),z2:10}}(e,n,i,a,{position:dC(n.axis,t,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}(n,r,Fl(l.getRect(),i),i,a,o)},e.prototype.getHandleTransform=function(r,n,i){var a=Fl(n.axis.grid.getRect(),n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=dC(n.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(r,n,i,a){var o=i.axis,s=o.grid,l=o.getGlobalExtent(!0),u=pC(s,o).getOtherAxis(o).getGlobalExtent(),f="x"===o.dim?0:1,c=[r.x,r.y];c[f]+=n[f],c[f]=Math.min(l[1],c[f]),c[f]=Math.max(l[0],c[f]);var v=(u[1]+u[0])/2,h=[v,v];return h[f]=c[f],{x:c[0],y:c[1],rotation:r.rotation,cursorPoint:h,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][f]}},e}(tE);function pC(t,e){var r={};return r[e.dim+"AxisIndex"]=e.index,t.getCartesian(r)}var zE={line:function(t,e,r){var n=function EE(t,e,r){return{x1:t[r=r||0],y1:t[1-r],x2:e[r],y2:e[1-r]}}([e,r[0]],[e,r[1]],gC(t));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(t,e,r){var n=Math.max(1,t.getBandWidth());return{type:"Rect",shape:IE([e-n/2,r[0]],[n,r[1]-r[0]],gC(t))}}};function gC(t){return"x"===t.dim?0:1}const HE=NE;var GE=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.type=e.type,r}return(0,X.C6)(e,t),e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:ue.color.border,width:1,type:"dashed"},shadowStyle:{color:ue.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:ue.color.neutral00,padding:[5,7,5,7],backgroundColor:ue.color.accent60,borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:ue.color.accent40,throttle:40}},e}(xe);const VE=GE;var Wr=ye(),WE=D;function mC(t,e,r){if(!oe.node){var n=e.getZr();Wr(n).records||(Wr(n).records={}),function qE(t,e){function r(n,i){t.on(n,function(a){var o=function XE(t){var e={showTip:[],hideTip:[]},r=function(n){var i=e[n.type];i?i.push(n):(n.dispatchAction=r,t.dispatchAction(n))};return{dispatchAction:r,pendings:e}}(e);WE(Wr(t).records,function(s){s&&i(s,a,o.dispatchAction)}),function UE(t,e){var i,r=t.showTip.length,n=t.hideTip.length;r?i=t.showTip[r-1]:n&&(i=t.hideTip[n-1]),i&&(i.dispatchAction=null,e.dispatchAction(i))}(o.pendings,e)})}Wr(t).initialized||(Wr(t).initialized=!0,r("click",Ae(yC,"click")),r("mousemove",Ae(yC,"mousemove")),r("globalout",YE))}(n,e),(Wr(n).records[t]||(Wr(n).records[t]={})).handler=r}}function YE(t,e,r){t.handler("leave",null,r)}function yC(t,e,r,n){e.handler(t,r,n)}function rv(t,e){if(!oe.node){var r=e.getZr();(Wr(r).records||{})[t]&&(Wr(r).records[t]=null)}}var jE=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.type=e.type,r}return(0,X.C6)(e,t),e.prototype.render=function(r,n,i){var a=n.getComponent("tooltip"),o=r.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";mC("axisPointer",i,function(s,l,u){"none"!==o&&("leave"===s||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(r,n){rv("axisPointer",n)},e.prototype.dispose=function(r,n){rv("axisPointer",n)},e.type="axisPointer",e}(Bt);const ZE=jE;function _C(t,e){var i,r=[],n=t.seriesIndex;if(null==n||!(i=e.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=Da(a,t);if(null==o||o<0||z(o))return{point:[]};var s=a.getItemGraphicEl(o),l=i.coordinateSystem;if(i.getTooltipPosition)r=i.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u).dim,h="x"===c||"radius"===c?1:0,d=a.mapDimension(u.dim),m=[];m[h]=a.get(d,o),m[1-h]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(m)||[]}else r=l.dataToPoint(a.getValues(K(l.dimensions,function(g){return a.mapDimension(g)}),o))||[];else if(s){var p=s.getBoundingRect().clone();p.applyTransform(s.transform),r=[p.x+p.width/2,p.y+p.height/2]}return{point:r,el:s}}var CC=ye();function $E(t,e,r){var n=t.currTrigger,i=[t.x,t.y],a=t,o=t.dispatchAction||he(r.dispatchAction,r),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){Nl(i)&&(i=_C({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},e).point);var l=Nl(i),u=a.axesInfo,f=s.axesInfo,c="leave"===n||Nl(i),v={},h={},d={list:[],map:{}},m={showPointer:Ae(QE,h),showTooltip:Ae(JE,d)};D(s.coordSysMap,function(g,y){var _=l||g.containPoint(i);D(s.coordSysAxesInfo[y],function(C,b){var S=C.axis,x=function nI(t,e){for(var r=0;r<(t||[]).length;r++){var n=t[r];if(e.axis.dim===n.axisDim&&e.axis.model.componentIndex===n.axisIndex)return n}}(u,C);if(!c&&_&&(!u||x)){var T=x&&x.value;null==T&&!l&&(T=S.pointToData(i)),null!=T&&SC(C,T,m,!1,v)}})});var p={};return D(f,function(g,y){var _=g.linkGroup;_&&!h[y]&&D(_.axesInfo,function(C,b){var S=h[b];if(C!==g&&S){var x=S.value;_.mapper&&(x=g.axis.scale.parse(_.mapper(x,bC(C),bC(g)))),p[g.key]=x}})}),D(p,function(g,y){SC(f[y],g,m,!0,v)}),function eI(t,e,r){var n=r.axesInfo=[];D(e,function(i,a){var o=i.axisPointerModel.option,s=t[a];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),"show"===o.status&&n.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}(h,f,v),function tI(t,e,r,n){if(!Nl(e)&&t.list.length){var i=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:t.list})}else n({type:"hideTip"})}(d,i,t,o),function rI(t,e,r){var n=r.getZr(),i="axisPointerLastHighlights",a=CC(n)[i]||{},o=CC(n)[i]={};D(t,function(u,f){var c=u.axisPointerModel.option;"show"===c.status&&u.triggerEmphasis&&D(c.seriesDataIndices,function(v){o[v.seriesIndex+" | "+v.dataIndex]=v})});var s=[],l=[];D(a,function(u,f){!o[f]&&l.push(u)}),D(o,function(u,f){!a[f]&&s.push(u)}),l.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}(f,0,r),v}}function SC(t,e,r,n,i){var a=t.axis;if(!a.scale.isBlank()&&a.containData(e)){if(!t.involveSeries)return void r.showPointer(t,e);var o=function KE(t,e){var r=e.axis,n=r.dim,i=t,a=[],o=Number.MAX_VALUE,s=-1;return D(e.seriesModels,function(l,u){var c,v,f=l.getData().mapDimensionsAll(n);if(l.getAxisTooltipData){var h=l.getAxisTooltipData(f,t,r);v=h.dataIndices,c=h.nestestValue}else{if(!(v=l.indicesOfNearest(n,f[0],t,"category"===r.type?.5:null)).length)return;c=l.getData().get(f[0],v[0])}if(null!=c&&isFinite(c)){var d=t-c,m=Math.abs(d);m<=o&&((m<o||d>=0&&s<0)&&(o=m,s=d,i=c,a.length=0),D(v,function(p){a.push({seriesIndex:l.seriesIndex,dataIndexInside:p,dataIndex:l.getData().getRawIndex(p)})}))}}),{payloadBatch:a,snapToValue:i}}(e,t),s=o.payloadBatch,l=o.snapToValue;s[0]&&null==i.seriesIndex&&k(i,s[0]),!n&&t.snap&&a.containData(l)&&null!=l&&(e=l),r.showPointer(t,e,s),r.showTooltip(t,o,l)}}function QE(t,e,r,n){t[e.key]={value:r,payloadBatch:n}}function JE(t,e,r,n){var i=r.payloadBatch,a=e.axis,o=a.model,s=e.axisPointerModel;if(e.triggerTooltip&&i.length){var l=e.coordSys.model,u=co(l),f=t.map[u];f||(f=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(f)),f.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function bC(t){var e=t.axis.model,r={},n=r.axisDim=t.axis.dim;return r.axisIndex=r[n+"AxisIndex"]=e.componentIndex,r.axisName=r[n+"AxisName"]=e.name,r.axisId=r[n+"AxisId"]=e.id,r}function Nl(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function iI(t){JR.registerAxisPointerClass("CartesianAxisPointer",HE),t.registerComponentModel(VE),t.registerComponentView(ZE),t.registerPreprocessor(function(e){if(e){(!e.axisPointer||0===e.axisPointer.length)&&(e.axisPointer={});var r=e.axisPointer.link;r&&!z(r)&&(e.axisPointer.link=[r])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(e,r){e.getComponent("axisPointer").coordSysAxesInfo=function UR(t,e){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function YR(t,e,r){var n=e.getComponent("tooltip"),i=e.getComponent("axisPointer"),a=i.get("link",!0)||[],o=[];D(r.getCoordinateSystems(),function(s){if(s.axisPointerEnabled){var l=co(s.model),u=t.coordSysAxesInfo[l]={};t.coordSysMap[l]=s;var c=s.model.getModel("tooltip",n);if(D(s.getAxes(),Ae(m,!1,null)),s.getTooltipAxes&&n&&c.get("show")){var v="axis"===c.get("trigger"),h="cross"===c.get(["axisPointer","type"]),d=s.getTooltipAxes(c.get(["axisPointer","axis"]));(v||h)&&D(d.baseAxes,Ae(m,!h||"cross",v)),h&&D(d.otherAxes,Ae(m,"cross",!1))}}function m(p,g,y){var _=y.model.getModel("axisPointer",i),C=_.get("show");if(C&&("auto"!==C||p||jh(_))){null==g&&(g=_.get("triggerTooltip")),_=p?function XR(t,e,r,n,i,a){var o=e.getModel("axisPointer"),l={};D(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(v){l[v]=se(o.get(v))}),l.snap="category"!==t.type&&!!a,"cross"===o.get("type")&&(l.type="line");var u=l.label||(l.label={});if(null==u.show&&(u.show=!1),"cross"===i){var f=o.get(["label","show"]);if(u.show=f??!0,!a){var c=l.lineStyle=o.get("crossStyle");c&&be(u,c.textStyle)}}return t.model.getModel("axisPointer",new Fe(l,r,n))}(y,c,i,e,p,g):_;var b=_.get("snap"),S=_.get("triggerEmphasis"),x=co(y.model),T=g||b||"category"===y.type,w=t.axesInfo[x]={key:x,axis:y,coordSys:s,axisPointerModel:_,triggerTooltip:g,triggerEmphasis:S,involveSeries:T,snap:b,useHandle:jh(_),seriesModels:[],linkGroup:null};u[x]=w,t.seriesInvolved=t.seriesInvolved||T;var L=function ZR(t,e){for(var r=e.model,n=e.dim,i=0;i<t.length;i++){var a=t[i]||{};if(Yh(a[n+"AxisId"],r.id)||Yh(a[n+"AxisIndex"],r.componentIndex)||Yh(a[n+"AxisName"],r.name))return i}}(a,y);if(null!=L){var A=o[L]||(o[L]={axesInfo:{}});A.axesInfo[x]=w,A.mapper=a[L].mapper,w.linkGroup=A}}}})}(r,t,e),r.seriesInvolved&&function jR(t,e){e.eachSeries(function(r){var n=r.coordinateSystem,i=r.get(["tooltip","trigger"],!0),a=r.get(["tooltip","show"],!0);!n||!n.model||"none"===i||!1===i||"item"===i||!1===a||!1===r.get(["axisPointer","show"],!0)||D(t.coordSysAxesInfo[co(n.model)],function(o){var s=o.axis;n.getAxis(s.dim)===s&&(o.seriesModels.push(r),null==o.seriesDataCount&&(o.seriesDataCount=0),o.seriesDataCount+=r.getData().count())})})}(r,t),r}(e,r)}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},$E)}var aI=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.type=e.type,r}return(0,X.C6)(e,t),e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:ue.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:ue.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:ue.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:ue.color.tertiary,fontSize:14}},e}(xe);const oI=aI;function xC(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function TC(t){if(oe.domSupported)for(var e=document.documentElement.style,r=0,n=t.length;r<n;r++)if(t[r]in e)return t[r]}var wC=TC(["transform","webkitTransform","OTransform","MozTransform","msTransform"]);function DC(t,e){if(!t)return e;e=Qf(e,!0);var r=t.indexOf(e);return(t=-1===r?e:"-"+t.slice(0,r)+"-"+e).toLowerCase()}var uI=DC(TC(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),"transition"),nv=DC(wC,"transform"),fI="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(oe.transform3dSupported?"will-change:transform;":"");function MC(t,e,r){var n=t.toFixed(0)+"px",i=e.toFixed(0)+"px";if(!oe.transformSupported)return r?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=oe.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return r?"top:0;left:0;"+nv+":"+o+";":[["top",0],["left",0],[wC,o]]}function LC(t,e,r,n,i){var a=e&&e.painter;if(r){var o=a&&a.getViewportRoot();o&&function XS(t,e,r,n,i){iu(nu,e,n,i,!0)&&iu(t,r,nu[0],nu[1])}(t,o,r,n,i)}else{t[0]=n,t[1]=i;var s=a&&a.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var gI=function(){function t(e,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,oe.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=e.getZr(),a=r.appendTo,o=a&&(U(a)?document.querySelector(a):Si(a)?a:ee(a)&&a(e.getDom()));LC(this._styleCoord,i,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(n),this._api=e,this._container=o;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=i.handler;At(i.painter.getViewportRoot(),l,!0),u.dispatch("mousemove",l)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return t.prototype.update=function(e){if(!this._container){var r=this._api.getDom(),n=function lI(t,e){var r=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return r?e?r[e]:r:null}(r,"position"),i=r.style;"absolute"!==i.position&&"absolute"!==n&&(i.position="relative")}var a=e.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this._enableDisplayTransition=e.get("displayTransition")&&e.get("transitionDuration")>0,this.el.className=e.get("className")||""},t.prototype.show=function(e,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,a=this._styleCoord;n.innerHTML?i.cssText=fI+function pI(t,e,r,n){var i=[],a=t.get("transitionDuration"),o=t.get("backgroundColor"),s=t.get("shadowBlur"),l=t.get("shadowColor"),u=t.get("shadowOffsetX"),f=t.get("shadowOffsetY"),c=t.getModel("textStyle"),v=Fm(t,"html");return i.push("box-shadow:"+u+"px "+f+"px "+s+"px "+l),e&&a>0&&i.push(function vI(t,e,r){var n="cubic-bezier(0.23,1,0.32,1)",i="",a="";return r&&(a="opacity"+(i=" "+t/2+"s "+n)+",visibility"+i),e||(i=" "+t+"s "+n,a+=(a.length?",":"")+(oe.transformSupported?""+nv+i:",left"+i+",top"+i)),uI+":"+a}(a,r,n)),o&&i.push("background-color:"+o),D(["width","color","radius"],function(d){var m="border-"+d,p=Qf(m),g=t.get(p);null!=g&&i.push(m+":"+g+("color"===d?"":"px"))}),i.push(function dI(t){var e=[],r=t.get("fontSize"),n=t.getTextColor();n&&e.push("color:"+n),e.push("font:"+t.getFont());var i=Q(t.get("lineHeight"),Math.round(3*r/2));r&&e.push("line-height:"+i+"px");var a=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,s=t.get("textShadowOffsetX")||0,l=t.get("textShadowOffsetY")||0;return a&&o&&e.push("text-shadow:"+s+"px "+l+"px "+o+"px "+a),D(["decoration","align"],function(u){var f=t.get(u);f&&e.push("text-"+u+":"+f)}),e.join(";")}(c)),null!=v&&i.push("padding:"+ka(v).join("px ")+"px"),i.join(";")+";"}(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+MC(a[0],a[1],!0)+"border-color:"+Oa(r)+";"+(e.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(e,r,n,i,a){var o=this.el;if(null!=e){var s="";if(U(a)&&"item"===n.get("trigger")&&!xC(n)&&(s=function hI(t,e,r){if(!U(r)||"inside"===r)return"";var n=t.get("backgroundColor"),i=t.get("borderWidth");e=Oa(e);var u,a=function cI(t){return"left"===t?"right":"right"===t?"left":"top"===t?"bottom":"top"}(r),o=Math.max(1.5*Math.round(i),6),s="",l=nv+":";le(["left","right"],a)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u="left"===a?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u="top"===a?225:45)+"deg)");var f=u*Math.PI/180,c=o+i,v=c*Math.abs(Math.cos(f))+c*Math.abs(Math.sin(f)),d=e+" solid "+i+"px;";return'<div style="'+["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",(s+=";"+a+":-"+Math.round(100*((v-Math.SQRT2*i)/2+Math.SQRT2*i-(v-c)/2))/100+"px")+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+n+";"].join("")+'"></div>'}(n,i,a)),U(e))o.innerHTML=e+s;else if(e){o.innerHTML="",z(e)||(e=[e]);for(var l=0;l<e.length;l++)Si(e[l])&&e[l].parentNode!==o&&o.appendChild(e[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}}else o.innerHTML=""},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},t.prototype.moveTo=function(e,r){if(this.el){var n=this._styleCoord;if(LC(n,this._zr,this._container,e,r),null!=n[0]&&null!=n[1]){var i=this.el.style;D(MC(n[0],n[1]),function(o){i[o[0]]=o[1]})}}},t.prototype._moveIfResized=function(){var r=this._styleCoord[3];this.moveTo(this._styleCoord[2]*this._zr.getWidth(),r*this._zr.getHeight())},t.prototype.hide=function(){var e=this,r=this.el.style;this._enableDisplayTransition?(r.visibility="hidden",r.opacity="0"):r.display="none",oe.transform3dSupported&&(r.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},t.prototype.hideLater=function(e){this._show&&(!this._inContent||!this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(he(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this._zr;!function jS(t,e){function r(n){var i=n[Io];i&&(i.clearMarkers&&i.clearMarkers(),delete n[Io])}t&&r(t),e&&r(e)}(e&&e.painter&&e.painter.getViewportRoot(),this._container);var r=this.el;if(r){r.onmouseenter=r.onmousemove=r.onmouseleave=null;var n=r.parentNode;n&&n.removeChild(r)}this.el=this._container=null},t}();const mI=gI;var yI=function(){function t(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),PC(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return t.prototype.update=function(e){var r=e.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(e,r,n,i,a){var o=this;$(e)&&ut(""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new Be({style:{rich:r.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:Fm(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),D(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=n.get(u)}),D(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el,r=this.el.getBoundingRect(),n=AC(e.style);return[r.width+n.left+n.right,r.height+n.top+n.bottom]},t.prototype.moveTo=function(e,r){var n=this.el;if(n){var i=this._styleCoord;PC(i,this._zr,e,r),e=i[0],r=i[1];var a=n.style,o=Cn(a.borderWidth||0),s=AC(a);n.x=e+o+s.left,n.y=r+o+s.top,n.markRedraw()}},t.prototype._moveIfResized=function(){var r=this._styleCoord[3];this.moveTo(this._styleCoord[2]*this._zr.getWidth(),r*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(e){this._show&&(!this._inContent||!this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(he(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t}();function Cn(t){return Math.max(0,t)}function AC(t){var e=Cn(t.shadowBlur||0),r=Cn(t.shadowOffsetX||0),n=Cn(t.shadowOffsetY||0);return{left:Cn(e-r),right:Cn(e+r),top:Cn(e-n),bottom:Cn(e+n)}}function PC(t,e,r,n){t[0]=r,t[1]=n,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}const _I=yI;var CI=new Ye({shape:{x:-1,y:-1,width:2,height:2}}),SI=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.type=e.type,r}return(0,X.C6)(e,t),e.prototype.init=function(r,n){if(!oe.node&&n.getDom()){var i=r.getComponent("tooltip"),a=this._renderMode=function jx(t){return"auto"===t?oe.domSupported?"html":"richText":t||"html"}(i.get("renderMode"));this._tooltipContent="richText"===a?new _I(n):new mI(n,{appendTo:i.get("appendToBody",!0)?"body":i.get("appendTo",!0)})}},e.prototype.render=function(r,n,i){if(!oe.node&&i.getDom()){this.group.removeAll(),this._tooltipModel=r,this._ecModel=n,this._api=i;var a=this._tooltipContent;a.update(r),a.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&r.get("transitionDuration")?Iy(this,"_updatePosition",50,"fixRate"):Xc(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var n=this._tooltipModel.get("triggerOn");mC("itemTooltip",this._api,he(function(i,a,o){"none"!==n&&(n.indexOf(i)>=0?this._tryShow(a,o):"leave"===i&&this._hide(o))},this))},e.prototype._keepShow=function(){var r=this._tooltipModel,n=this._ecModel,i=this._api,a=r.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==a&&"click"!==a){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(r,n,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(r,n,i,a){if(a.from!==this.uid&&!oe.node&&i.getDom()){var o=RC(a,i);this._ticket="";var s=a.dataByCoordSys,l=function wI(t,e,r){var n=ef(t).queryOptionMap,i=n.keys()[0];if(i&&"series"!==i){var l,o=Ma(e,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(o&&(r.getViewOfComponentModel(o).group.traverse(function(u){var f=ve(u).tooltipConfig;if(f&&f.name===t.name)return l=u,!0}),l))return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}(a,n,i);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:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&null!=a.x&&null!=a.y){var f=CI;f.x=a.x,f.y=a.y,f.update(),ve(f).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:f},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(null!=a.seriesIndex){if(this._manuallyAxisShowTip(r,n,i,a))return;var c=_C(a,n),v=c.point[0],h=c.point[1];null!=v&&null!=h&&this._tryShow({offsetX:v,offsetY:h,target:c.el,position:a.position,positionDefault:"bottom"},o)}else null!=a.x&&null!=a.y&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},o))}},e.prototype.manuallyHideTip=function(r,n,i,a){this._tooltipModel&&this._tooltipContent.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(RC(a,i))},e.prototype._manuallyAxisShowTip=function(r,n,i,a){var o=a.seriesIndex,s=a.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(null!=o&&null!=s&&null!=l){var u=n.getSeriesByIndex(o);if(u&&"axis"===go([u.getData().getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}},e.prototype._tryShow=function(r,n){var i=r.target;if(this._tooltipModel){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(i){var l,u;if("legend"===ve(i).ssrType)return;this._lastDataByCoordSys=null,eo(i,function(f){if(f.tooltipDisabled)return l=u=null,!0;l||u||(null!=ve(f).dataIndex?l=f:null!=ve(f).tooltipConfig&&(u=f))},!0),l?this._showSeriesItemTooltip(r,l,n):u?this._showComponentItemTooltip(r,u,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},e.prototype._showOrMove=function(r,n){var i=r.get("showDelay");n=he(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},e.prototype._showAxisTooltip=function(r,n){var i=this._ecModel,a=this._tooltipModel,o=[n.offsetX,n.offsetY],s=go([n.tooltipOption],a),l=this._renderMode,u=[],f=Wa("section",{blocks:[],noHeader:!0}),c=[],v=new xc;D(r,function(y){D(y.dataByAxis,function(_){var C=i.getComponent(_.axisDim+"Axis",_.axisIndex),b=_.value;if(C&&null!=b){var S=vC(b,C.axis,i,_.seriesDataIndices,_.valueLabelOpt),x=Wa("section",{header:S,noHeader:!Ut(S),sortBlocks:!0,blocks:[]});f.blocks.push(x),D(_.seriesDataIndices,function(T){var w=i.getSeriesByIndex(T.seriesIndex),L=T.dataIndexInside,A=w.getDataParams(L);if(!(A.dataIndex<0)){A.axisDim=_.axisDim,A.axisIndex=_.axisIndex,A.axisType=_.axisType,A.axisId=_.axisId,A.axisValue=wl(C.axis,{value:b}),A.axisValueLabel=S,A.marker=v.makeTooltipMarker("item",Oa(A.color),l);var R=bm(w.formatTooltip(L,!0,null)),M=R.frag;if(M){var E=go([w],a).get("valueFormatter");x.blocks.push(E?k({valueFormatter:E},M):M)}R.text&&c.push(R.text),u.push(A)}})}})}),f.blocks.reverse(),c.reverse();var h=n.position,d=s.get("order"),m=Om(f,v,l,d,i.get("useUTC"),s.get("textStyle"));m&&c.unshift(m);var g=c.join("richText"===l?"\n\n":"<br/>");this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,g,u,Math.random()+"",o[0],o[1],h,null,v)})},e.prototype._showSeriesItemTooltip=function(r,n,i){var a=this._ecModel,o=ve(n),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,c=o.dataType,v=u.getData(c),h=this._renderMode,d=r.positionDefault,m=go([v.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),p=m.get("trigger");if(null==p||"item"===p){var g=u.getDataParams(f,c),y=new xc;g.marker=y.makeTooltipMarker("item",Oa(g.color),h);var _=bm(u.formatTooltip(f,!1,c)),C=m.get("order"),b=m.get("valueFormatter"),S=_.frag,x=S?Om(b?k({valueFormatter:b},S):S,y,h,C,a.get("useUTC"),m.get("textStyle")):_.text,T="item_"+u.name+"_"+f;this._showOrMove(m,function(){this._showTooltipContent(m,x,g,T,r.offsetX,r.offsetY,r.position,r.target,y)}),i({type:"showTip",dataIndexInside:f,dataIndex:v.getRawIndex(f),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(r,n,i){var a="html"===this._renderMode,o=ve(n),l=o.tooltipConfig.option||{},u=l.encodeHTMLContent;U(l)&&(l={content:l,formatter:l},u=!0),u&&a&&l.content&&((l=se(l)).content=at(l.content));var c=[l],v=this._ecModel.getComponent(o.componentMainType,o.componentIndex);v&&c.push(v),c.push({formatter:l.content});var h=r.positionDefault,d=go(c,this._tooltipModel,h?{position:h}:null),m=d.get("content"),p=Math.random()+"",g=new xc;this._showOrMove(d,function(){var y=se(d.get("formatterParams")||{});this._showTooltipContent(d,m,y,p,r.offsetX,r.offsetY,r.position,n,g)}),i({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(r,n,i,a,o,s,l,u,f){if(this._ticket="",r.get("showContent")&&r.get("show")){var c=this._tooltipContent;c.setEnterable(r.get("enterable"));var v=r.get("formatter");l=l||r.get("position");var h=n,m=this._getNearestPoint([o,s],i,r.get("trigger"),r.get("borderColor"),r.get("defaultBorderColor",!0)).color;if(v)if(U(v)){var p=r.ecModel.get("useUTC"),g=z(i)?i[0]:i;h=v,g&&g.axisType&&g.axisType.indexOf("time")>=0&&(h=Ia(g.axisValue,h,p)),h=tc(h,i,!0)}else if(ee(v)){var _=he(function(C,b){C===this._ticket&&(c.setContent(b,f,r,m,l),this._updatePosition(r,l,o,s,c,i,u))},this);this._ticket=a,h=v(i,a,_)}else h=v;c.setContent(h,f,r,m,l),c.show(r,m),this._updatePosition(r,l,o,s,c,i,u)}},e.prototype._getNearestPoint=function(r,n,i,a,o){return"axis"===i||z(n)?{color:a||o}:z(n)?void 0:{color:a||n.color||n.borderColor}},e.prototype._updatePosition=function(r,n,i,a,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();n=n||r.get("position");var c=o.getSize(),v=r.get("align"),h=r.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),ee(n)&&(n=n([i,a],s,o.el,d,{viewSize:[u,f],contentSize:c.slice()})),z(n))i=me(n[0],u),a=me(n[1],f);else if($(n)){var m=n;m.width=c[0],m.height=c[1];var p=Fr(m,{width:u,height:f});i=p.x,a=p.y,v=null,h=null}else if(U(n)&&l){var g=function TI(t,e,r,n){var i=r[0],a=r[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=e.width,f=e.height;switch(t){case"inside":s=e.x+u/2-i/2,l=e.y+f/2-a/2;break;case"top":s=e.x+u/2-i/2,l=e.y-a-o;break;case"bottom":s=e.x+u/2-i/2,l=e.y+f+o;break;case"left":s=e.x-i-o,l=e.y+f/2-a/2;break;case"right":s=e.x+u+o,l=e.y+f/2-a/2}return[s,l]}(n,d,c,r.get("borderWidth"));i=g[0],a=g[1]}else g=function bI(t,e,r,n,i,a,o){var s=r.getSize(),l=s[0],u=s[1];return null!=a&&(t+l+a+2>n?t-=l+a:t+=a),null!=o&&(e+u+o>i?e-=u+o:e+=o),[t,e]}(i,a,o,u,f,v?null:20,h?null:20),i=g[0],a=g[1];v&&(i-=EC(v)?c[0]/2:"right"===v?c[0]:0),h&&(a-=EC(h)?c[1]/2:"bottom"===h?c[1]:0),xC(r)&&(g=function xI(t,e,r,n,i){var a=r.getSize(),o=a[0],s=a[1];return t=Math.min(t+o,n)-o,e=Math.min(e+s,i)-s,[t=Math.max(t,0),e=Math.max(e,0)]}(i,a,o,u,f),i=g[0],a=g[1]),o.moveTo(i,a)},e.prototype._updateContentNotChangedOnAxis=function(r,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===r.length;return o&&D(i,function(s,l){var u=s.dataByAxis||[],c=(r[l]||{}).dataByAxis||[];(o=o&&u.length===c.length)&&D(u,function(v,h){var d=c[h]||{},m=v.seriesDataIndices||[],p=d.seriesDataIndices||[];(o=o&&v.value===d.value&&v.axisType===d.axisType&&v.axisId===d.axisId&&m.length===p.length)&&D(m,function(g,y){var _=p[y];o=o&&g.seriesIndex===_.seriesIndex&&g.dataIndex===_.dataIndex}),a&&D(v.seriesDataIndices,function(g){var y=g.seriesIndex,_=n[y],C=a[y];_&&C&&C.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!o},e.prototype._hide=function(r){this._lastDataByCoordSys=null,r({type:"hideTip",from:this.uid})},e.prototype.dispose=function(r,n){oe.node||!n.getDom()||(Xc(this,"_updatePosition"),this._tooltipContent.dispose(),rv("itemTooltip",n))},e.type="tooltip",e}(Bt);function go(t,e,r){var i,n=e.ecModel;r?(i=new Fe(r,n,n),i=new Fe(e.option,i,n)):i=e;for(var a=t.length-1;a>=0;a--){var o=t[a];o&&(o instanceof Fe&&(o=o.get("tooltip",!0)),U(o)&&(o={formatter:o}),o&&(i=new Fe(o,i,n)))}return i}function RC(t,e){return t.dispatchAction||he(e.dispatchAction,e)}function EC(t){return"center"===t||"middle"===t}const DI=SI;var AI=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.type=e.type,r.layoutMode={type:"box",ignoreSize:!0},r}return(0,X.C6)(e,t),e.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i),r.selected=r.selected||{},this._updateSelector(r)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.call(this,r,n),this._updateSelector(r)},e.prototype._updateSelector=function(r){var n=r.selector,i=this.ecModel;!0===n&&(n=r.selector=["all","inverse"]),z(n)&&D(n,function(a,o){U(a)&&(a={type:a}),n[o]=Ce(a,function(t,e){return"all"===e?{type:"all",title:t.getLocaleModel().get(["legend","selector","all"])}:"inverse"===e?{type:"inverse",title:t.getLocaleModel().get(["legend","selector","inverse"])}:void 0}(i,a.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var r=this._data;if(r[0]&&"single"===this.get("selectedMode")){for(var n=!1,i=0;i<r.length;i++){var a=r[i].get("name");if(this.isSelected(a)){this.select(a),n=!0;break}}!n&&this.select(r[0].get("name"))}},e.prototype._updateData=function(r){var n=[],i=[];r.eachRawSeries(function(l){var f;if(i.push(l.name),l.legendVisualProvider){var v=l.legendVisualProvider.getAllNames();r.isSeriesFiltered(l)||(i=i.concat(v)),v.length?n=n.concat(v):f=!0}else f=!0;f&&Qu(l)&&n.push(l.name)}),this._availableNames=i;var a=this.get("data")||n,o=ae(),s=K(a,function(l){return(U(l)||ge(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new Fe(l,this,this.ecModel))},this);this._data=Me(s,function(l){return!!l})},e.prototype.getData=function(){return this._data},e.prototype.select=function(r){var n=this.option.selected;"single"===this.get("selectedMode")&&D(this._data,function(o){n[o.get("name")]=!1}),n[r]=!0},e.prototype.unSelect=function(r){"single"!==this.get("selectedMode")&&(this.option.selected[r]=!1)},e.prototype.toggleSelected=function(r){var n=this.option.selected;n.hasOwnProperty(r)||(n[r]=!0),this[n[r]?"unSelect":"select"](r)},e.prototype.allSelect=function(){var n=this.option.selected;D(this._data,function(i){n[i.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var n=this.option.selected;D(this._data,function(i){var a=i.get("name",!0);n.hasOwnProperty(a)||(n[a]=!0),n[a]=!n[a]})},e.prototype.isSelected=function(r){var n=this.option.selected;return!(n.hasOwnProperty(r)&&!n[r])&&le(this._availableNames,r)>=0},e.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",bottom:ue.size.m,align:"auto",backgroundColor:ue.color.transparent,borderColor:ue.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:ue.color.disabled,inactiveBorderColor:ue.color.disabled,inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:ue.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:ue.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:ue.color.tertiary,borderWidth:1,borderColor:ue.color.border},emphasis:{selectorLabel:{show:!0,color:ue.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},e}(xe);const iv=AI;var Ji=Ae,av=D,zl=Tt,RI=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.type=e.type,r.newlineDisabled=!1,r}return(0,X.C6)(e,t),e.prototype.init=function(){this.group.add(this._contentGroup=new zl),this.group.add(this._selectorGroup=new zl),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(r,n,i){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),r.get("show",!0)){var o=r.get("align"),s=r.get("orient");(!o||"auto"===o)&&(o="right"===r.get("left")&&"vertical"===s?"right":"left");var l=r.get("selector",!0),u=r.get("selectorPosition",!0);l&&(!u||"auto"===u)&&(u="horizontal"===s?"end":"start"),this.renderInner(o,r,n,i,l,s,u);var f=ac(r,i).refContainer,c=r.getBoxLayoutParams(),v=r.get("padding"),h=Fr(c,f,v),d=this.layoutInner(r,o,h,a,l,u),m=Fr(be({width:d.width,height:d.height},c),f,v);this.group.x=m.x-d.x,this.group.y=m.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=function PI(t,e){var r=ka(e.get("padding")),n=e.getItemStyle(["color","opacity"]);return n.fill=e.get("backgroundColor"),new Ye({shape:{x:t.x-r[3],y:t.y-r[0],width:t.width+r[1]+r[3],height:t.height+r[0]+r[2],r:e.get("borderRadius")},style:n,silent:!0,z2:-1})}(d,r))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this.getContentGroup(),f=ae(),c=n.get("selectedMode"),v=n.get("triggerEvent"),h=[];i.eachRawSeries(function(d){!d.get("legendHoverLink")&&h.push(d.id)}),av(n.getData(),function(d,m){var p=this,g=d.get("name");if(!this.newlineDisabled&&(""===g||"\n"===g)){var y=new zl;return y.newline=!0,void u.add(y)}var _=i.getSeriesByName(g)[0];if(!f.get(g))if(_){var C=_.getData(),b=C.getVisual("legendLineStyle")||{},S=C.getVisual("legendIcon"),x=C.getVisual("style"),T=this._createItem(_,g,m,d,n,r,b,x,S,c,a);T.on("click",Ji(IC,g,null,a,h)).on("mouseover",Ji(ov,_.name,null,a,h)).on("mouseout",Ji(sv,_.name,null,a,h)),i.ssr&&T.eachChild(function(w){var L=ve(w);L.seriesIndex=_.seriesIndex,L.dataIndex=m,L.ssrType="legend"}),v&&T.eachChild(function(w){p.packEventData(w,n,_,m,g)}),f.set(g,!0)}else i.eachRawSeries(function(w){var L=this;if(!f.get(g)&&w.legendVisualProvider){var A=w.legendVisualProvider;if(!A.containName(g))return;var R=A.indexOfName(g),M=A.getItemVisual(R,"style"),E=A.getItemVisual(R,"legendIcon"),I=xt(M.fill);I&&0===I[3]&&(I[3]=.2,M=k(k({},M),{fill:nn(I,"rgba")}));var O=this._createItem(w,g,m,d,n,r,{},M,E,c,a);O.on("click",Ji(IC,null,g,a,h)).on("mouseover",Ji(ov,null,g,a,h)).on("mouseout",Ji(sv,null,g,a,h)),i.ssr&&O.eachChild(function(q){var W=ve(q);W.seriesIndex=w.seriesIndex,W.dataIndex=m,W.ssrType="legend"}),v&&O.eachChild(function(q){L.packEventData(q,n,w,m,g)}),f.set(g,!0)}},this)},this),o&&this._createSelector(o,n,a,s,l)},e.prototype.packEventData=function(r,n,i,a,o){var s={componentType:"legend",componentIndex:n.componentIndex,dataIndex:a,value:o,seriesIndex:i.seriesIndex};ve(r).eventData=s},e.prototype._createSelector=function(r,n,i,a,o){var s=this.getSelectorGroup();av(r,function(u){var f=u.type,c=new Be({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:"all"===f?"legendAllSelect":"legendInverseSelect",legendId:n.id})}});s.add(c),cg(c,{normal:n.getModel("selectorLabel"),emphasis:n.getModel(["emphasis","selectorLabel"])},{defaultText:u.title}),Cs(c)})},e.prototype._createItem=function(r,n,i,a,o,s,l,u,f,c,v){var h=r.visualDrawType,d=o.get("itemWidth"),m=o.get("itemHeight"),p=o.isSelected(n),g=a.get("symbolRotate"),y=a.get("symbolKeepAspect"),_=a.get("icon"),C=function EI(t,e,r,n,i,a,o){function s(p,g){"auto"===p.lineWidth&&(p.lineWidth=g.lineWidth>0?2:0),av(p,function(y,_){"inherit"===p[_]&&(p[_]=g[_])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),f=0===t.lastIndexOf("empty",0)?"fill":"stroke",c=l.getShallow("decal");u.decal=c&&"inherit"!==c?eh(c,o):n.decal,"inherit"===u.fill&&(u.fill=n[i]),"inherit"===u.stroke&&(u.stroke=n[f]),"inherit"===u.opacity&&(u.opacity=("fill"===i?n:r).opacity),s(u,n);var v=e.getModel("lineStyle"),h=v.getLineStyle();if(s(h,r),"auto"===u.fill&&(u.fill=n.fill),"auto"===u.stroke&&(u.stroke=n.fill),"auto"===h.stroke&&(h.stroke=n.fill),!a){var d=e.get("inactiveBorderWidth");u.lineWidth="auto"===d?n.lineWidth>0&&u[f]?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),h.stroke=v.get("inactiveColor"),h.lineWidth=v.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}(f=_||f||"roundRect",a,l,u,h,p,v),b=new zl,S=a.getModel("textStyle");if(!ee(r.getLegendIcon)||_&&"inherit"!==_){var x="inherit"===_&&r.getData().getVisual("symbol")?"inherit"===g?r.getData().getVisual("symbolRotate"):g:0;b.add(function II(t){var e=t.icon||"roundRect",r=rl(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return r.setStyle(t.itemStyle),r.rotation=(t.iconRotate||0)*Math.PI/180,r.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill=ue.color.neutral00,r.style.lineWidth=2),r}({itemWidth:d,itemHeight:m,icon:f,iconRotate:x,itemStyle:C.itemStyle,lineStyle:C.lineStyle,symbolKeepAspect:y}))}else b.add(r.getLegendIcon({itemWidth:d,itemHeight:m,icon:f,iconRotate:g,itemStyle:C.itemStyle,lineStyle:C.lineStyle,symbolKeepAspect:y}));var T="left"===s?d+5:-5,w=s,L=o.get("formatter"),A=n;U(L)&&L?A=L.replace("{name}",n??""):ee(L)&&(A=L(n));var R=p?S.getTextColor():a.get("inactiveColor");b.add(new Be({style:Or(S,{text:A,x:T,y:m/2,fill:R,align:w,verticalAlign:"middle"},{inheritColor:R})}));var M=new Ye({shape:b.getBoundingRect(),style:{fill:"transparent"}}),E=a.getModel("tooltip");return E.get("show")&&Za({el:M,componentModel:o,itemName:n,itemTooltipOption:E.option}),b.add(M),b.eachChild(function(I){I.silent=!0}),M.silent=!c,this.getContentGroup().add(b),Cs(b),b.__legendDataIndex=i,b},e.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Ba(r.get("orient"),l,r.get("itemGap"),i.width,i.height);var f=l.getBoundingRect(),c=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){Ba("horizontal",u,r.get("selectorItemGap",!0));var v=u.getBoundingRect(),h=[-v.x,-v.y],d=r.get("selectorButtonGap",!0),m=r.getOrient().index,p=0===m?"width":"height",g=0===m?"height":"width",y=0===m?"y":"x";"end"===s?h[m]+=f[p]+d:c[m]+=v[p]+d,h[1-m]+=f[g]/2-v[g]/2,u.x=h[0],u.y=h[1],l.x=c[0],l.y=c[1];var _={x:0,y:0};return _[p]=f[p]+d+v[p],_[g]=Math.max(f[g],v[g]),_[y]=Math.min(0,v[y]+h[1-m]),_}return l.x=c[0],l.y=c[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(Bt);function IC(t,e,r,n){sv(t,e,r,n),r.dispatchAction({type:"legendToggleSelect",name:t??e}),ov(t,e,r,n)}function kC(t){for(var r,e=t.getZr().storage.getDisplayList(),n=0,i=e.length;n<i&&!(r=e[n].states.emphasis);)n++;return r&&r.hoverLayer}function ov(t,e,r,n){kC(r)||r.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:n})}function sv(t,e,r,n){kC(r)||r.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:n})}const OC=RI;function kI(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(r){for(var n=0;n<e.length;n++)if(!e[n].isSelected(r.name))return!1;return!0})}function mo(t,e,r){var n="allSelect"===t||"inverseSelect"===t,i={},a=[];r.eachComponent({mainType:"legend",query:e},function(s){n?s[t]():s[t](e.name),BC(s,i),a.push(s.componentIndex)});var o={};return r.eachComponent("legend",function(s){D(i,function(l,u){s[l?"select":"unSelect"](u)}),BC(s,o)}),n?{selected:o,legendIndex:a}:{name:e.name,selected:o}}function BC(t,e){var r=e||{};return D(t.getData(),function(n){var i=n.get("name");if("\n"!==i&&""!==i){var a=t.isSelected(i);r[i]=J(r,i)?r[i]&&a:a}}),r}function FC(t){t.registerComponentModel(iv),t.registerComponentView(OC),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,kI),t.registerSubTypeDefaulter("legend",function(){return"plain"}),function OI(t){t.registerAction("legendToggleSelect","legendselectchanged",Ae(mo,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",Ae(mo,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",Ae(mo,"inverseSelect")),t.registerAction("legendSelect","legendselected",Ae(mo,"select")),t.registerAction("legendUnSelect","legendunselected",Ae(mo,"unSelect"))}(t)}var BI=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.type=e.type,r}return(0,X.C6)(e,t),e.prototype.setScrollDataIndex=function(r){this.option.scrollDataIndex=r},e.prototype.init=function(r,n,i){var a=oc(r);t.prototype.init.call(this,r,n,i),NC(this,r,a)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.call(this,r,n),NC(this,this.option,r)},e.type="legend.scroll",e.defaultOption=function FT(t,e){return Ce(Ce({},t,!0),e,!0)}(iv.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:ue.color.accent50,pageIconInactiveColor:ue.color.accent10,pageIconSize:15,pageTextStyle:{color:ue.color.tertiary},animationDurationUpdate:800}),e}(iv);function NC(t,e,r){var i=[1,1];i[t.getOrient().index]=0,Hi(e,r,{type:"box",ignoreSize:!!i})}const FI=BI;var zC=Tt,lv=["width","height"],uv=["x","y"],NI=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.type=e.type,r.newlineDisabled=!0,r._currentIndex=0,r}return(0,X.C6)(e,t),e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new zC),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new zC)},e.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this;t.prototype.renderInner.call(this,r,n,i,a,o,s,l);var f=this._controllerGroup,c=n.get("pageIconSize",!0),v=z(c)?c:[c,c];d("pagePrev",0);var h=n.getModel("pageTextStyle");function d(m,p){var g=m+"DataIndex",y=Ks(n.get("pageIcons",!0)[n.getOrient().name][p],{onclick:he(u._pageGo,u,g,n,a)},{x:-v[0]/2,y:-v[1]/2,width:v[0],height:v[1]});y.name=m,f.add(y)}f.add(new Be({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1)},e.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getSelectorGroup(),u=r.getOrient().index,f=lv[u],c=uv[u],v=lv[1-u],h=uv[1-u];o&&Ba("horizontal",l,r.get("selectorItemGap",!0));var d=r.get("selectorButtonGap",!0),m=l.getBoundingRect(),p=[-m.x,-m.y],g=se(i);o&&(g[f]=i[f]-m[f]-d);var y=this._layoutContentAndController(r,a,g,u,f,v,h,c);if(o){if("end"===s)p[u]+=y[f]+d;else{var _=m[f]+d;p[u]-=_,y[c]-=_}y[f]+=m[f]+d,p[1-u]+=y[h]+y[v]/2-m[v]/2,y[v]=Math.max(y[v],m[v]),y[h]=Math.min(y[h],m[h]+p[1-u]),l.x=p[0],l.y=p[1],l.markRedraw()}return y},e.prototype._layoutContentAndController=function(r,n,i,a,o,s,l,u){var f=this.getContentGroup(),c=this._containerGroup,v=this._controllerGroup;Ba(r.get("orient"),f,r.get("itemGap"),a?i.width:null,a?null:i.height),Ba("horizontal",v,r.get("pageButtonItemGap",!0));var h=f.getBoundingRect(),d=v.getBoundingRect(),m=this._showController=h[o]>i[o],p=[-h.x,-h.y];n||(p[a]=f[u]);var g=[0,0],y=[-d.x,-d.y],_=Q(r.get("pageButtonGap",!0),r.get("itemGap",!0));m&&("end"===r.get("pageButtonPosition",!0)?y[a]+=i[o]-d[o]:g[a]+=d[o]+_),y[1-a]+=h[s]/2-d[s]/2,f.setPosition(p),c.setPosition(g),v.setPosition(y);var b={x:0,y:0};if(b[o]=m?i[o]:h[o],b[s]=Math.max(h[s],d[s]),b[l]=Math.min(0,d[l]+y[1-a]),c.__rectSize=i[o],m){var S={x:0,y:0};S[o]=Math.max(i[o]-d[o]-_,0),S[s]=b[s],c.setClipPath(new Ye({shape:S})),c.__rectSize=S[o]}else v.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var x=this._getPageInfo(r);return null!=x.pageIndex&&Qt(f,{x:x.contentPosition[0],y:x.contentPosition[1]},m?r:null),this._updatePageInfoView(r,x),b},e.prototype._pageGo=function(r,n,i){var a=this._getPageInfo(n)[r];null!=a&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},e.prototype._updatePageInfoView=function(r,n){var i=this._controllerGroup;D(["pagePrev","pageNext"],function(f){var v=null!=n[f+"DataIndex"],h=i.childOfName(f);h&&(h.setStyle("fill",r.get(v?"pageIconColor":"pageIconInactiveColor",!0)),h.cursor=v?"pointer":"default")});var a=i.childOfName("pageText"),o=r.get("pageFormatter"),s=n.pageIndex,l=null!=s?s+1:0,u=n.pageCount;a&&o&&a.setStyle("text",U(o)?o.replace("{current}",null==l?"":l+"").replace("{total}",null==u?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=r.getOrient().index,s=lv[o],l=uv[o],u=this._findTargetItemIndex(n),f=i.children(),c=f[u],v=f.length,h=v?1:0,d={contentPosition:[i.x,i.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return d;var m=C(c);d.contentPosition[o]=-m.s;for(var p=u+1,g=m,y=m,_=null;p<=v;++p)(!(_=C(f[p]))&&y.e>g.s+a||_&&!b(_,g.s))&&(g=y.i>g.i?y:_)&&(null==d.pageNextDataIndex&&(d.pageNextDataIndex=g.i),++d.pageCount),y=_;for(p=u-1,g=m,y=m,_=null;p>=-1;--p)(!(_=C(f[p]))||!b(y,_.s))&&g.i<y.i&&(y=g,null==d.pagePrevDataIndex&&(d.pagePrevDataIndex=g.i),++d.pageCount,++d.pageIndex),g=_;return d;function C(S){if(S){var x=S.getBoundingRect(),T=x[l]+S[l];return{s:T,e:T+x[s],i:S.__legendDataIndex}}}function b(S,x){return S.e>=x&&S.s<=x+a}},e.prototype._findTargetItemIndex=function(r){return this._showController?(this.getContentGroup().eachChild(function(o,s){var l=o.__legendDataIndex;null==a&&null!=l&&(a=s),l===r&&(n=s)}),n??a):0;var n,a},e.type="legend.scroll",e}(OC);const zI=NI;function GI(t){pn(FC),t.registerComponentModel(FI),t.registerComponentView(zI),function HI(t){t.registerAction("legendScroll","legendscroll",function(e,r){var n=e.scrollDataIndex;null!=n&&r.eachComponent({mainType:"legend",subType:"scroll",query:e},function(i){i.setScrollDataIndex(n)})})}(t)}function HC(t,e){var r;return D(e,function(n){null!=t[n]&&"auto"!==t[n]&&(r=!0)}),r}var GC=["transition","enterFrom","leaveTo"],UI=GC.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function Hl(t,e,r){if(r&&(!t[r]&&e[r]&&(t[r]={}),t=t[r],e=e[r]),t&&e)for(var n=r?GC:UI,i=0;i<n.length;i++){var a=n[i];null==t[a]&&null!=e[a]&&(t[a]=e[a])}}var XI=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.type=e.type,r.preventAutoZ=!0,r}return(0,X.C6)(e,t),e.prototype.mergeOption=function(r,n){var i=this.option.elements;this.option.elements=null,t.prototype.mergeOption.call(this,r,n),this.option.elements=i},e.prototype.optionUpdated=function(r,n){var i=this.option,a=(n?i:r).elements,o=i.elements=n?[]:i.elements,s=[];this._flatten(a,s,null);var l=np(o,s,"normalMerge"),u=this._elOptionsToUpdate=[];D(l,function(f,c){var v=f.newOption;v&&(u.push(v),function WI(t,e){var r=t.existing;if(e.id=t.keyInfo.id,!e.type&&r&&(e.type=r.type),null==e.parentId){var n=e.parentOption;n?e.parentId=n.id:r&&(e.parentId=r.parentId)}e.parentOption=null}(f,v),function qI(t,e,r){var n=k({},r),i=t[e],a=r.$action||"merge";"merge"===a?i?(Ce(i,n,!0),Hi(i,n,{ignoreSize:!0}),kg(r,i),Hl(r,i),Hl(r,i,"shape"),Hl(r,i,"style"),Hl(r,i,"extra"),r.clipPath=i.clipPath):t[e]=n:"replace"===a?t[e]=n:"remove"===a&&i&&(t[e]=null)}(o,c,v),function YI(t,e){if(t&&(t.hv=e.hv=[HC(e,["left","right"]),HC(e,["top","bottom"])],"group"===t.type)){var r=t,n=e;null==r.width&&(r.width=n.width=0),null==r.height&&(r.height=n.height=0)}}(o[c],v))},this),i.elements=Me(o,function(f){return f&&delete f.$action,null!=f})},e.prototype._flatten=function(r,n,i){D(r,function(a){if(a){i&&(a.parentOption=i),n.push(a);var o=a.children;o&&o.length&&this._flatten(o,n,a),delete a.children}},this)},e.prototype.useElOptionsToUpdate=function(){var r=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,r},e.type="graphic",e.defaultOption={elements:[]},e}(xe);function VC(t,e){e&&(e.font=e.textFont||e.font,J(e,"textStrokeWidth")&&(t.lineWidth=e.textStrokeWidth),J(e,"textAlign")&&(t.align=e.textAlign),J(e,"textVerticalAlign")&&(t.verticalAlign=e.textVerticalAlign),J(e,"textLineHeight")&&(t.lineHeight=e.textLineHeight),J(e,"textWidth")&&(t.width=e.textWidth),J(e,"textHeight")&&(t.height=e.textHeight),J(e,"textBackgroundColor")&&(t.backgroundColor=e.textBackgroundColor),J(e,"textPadding")&&(t.padding=e.textPadding),J(e,"textBorderColor")&&(t.borderColor=e.textBorderColor),J(e,"textBorderWidth")&&(t.borderWidth=e.textBorderWidth),J(e,"textBorderRadius")&&(t.borderRadius=e.textBorderRadius),J(e,"textBoxShadowColor")&&(t.shadowColor=e.textBoxShadowColor),J(e,"textBoxShadowBlur")&&(t.shadowBlur=e.textBoxShadowBlur),J(e,"textBoxShadowOffsetX")&&(t.shadowOffsetX=e.textBoxShadowOffsetX),J(e,"textBoxShadowOffsetY")&&(t.shadowOffsetY=e.textBoxShadowOffsetY))}var qC={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},UC=de(qC),Gl=(qt(lr,function(t,e){return t[e]=1,t},{}),lr.join(", "),["","style","shape","extra"]),ea=ye();function cv(t,e,r,n,i){var a=t+"Animation",o=kf(t,n,i)||{},s=ea(e).userDuring;return o.duration>0&&(o.during=s?he(r2,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=t),k(o,r[a]),o}function hv(t,e,r,n){var i=(n=n||{}).dataIndex,a=n.isInit,o=n.clearStyle,s=r.isAnimationEnabled(),l=ea(t),u=e.style;l.userDuring=e.during;var f={},c={};if(function i2(t,e,r){for(var n=0;n<UC.length;n++){var i=UC[n],a=qC[i],o=e[i];o&&(r[a[0]]=o[0],r[a[1]]=o[1])}for(n=0;n<lr.length;n++){var s=lr[n];null!=e[s]&&(r[s]=e[s])}}(0,e,c),"compound"===t.type)for(var v=t.shape.paths,h=e.shape.paths,d=0;d<h.length;d++)vv("shape",h[d],v[d]);else vv("shape",e,c),vv("extra",e,c);if(!a&&s&&(function n2(t,e,r){for(var n=e.transition,i=gi(n)?lr:He(n||[]),a=0;a<i.length;a++){var o=i[a];"style"!==o&&"shape"!==o&&"extra"!==o&&(r[o]=t[o])}}(t,e,f),XC("shape",t,e,f),XC("extra",t,e,f),function a2(t,e,r,n){if(r){var a,i=t.style;if(i){var o=r.transition,s=e.transition;if(o&&!gi(o)){var l=He(o);!a&&(a=n.style={});for(var u=0;u<l.length;u++)a[f=l[u]]=i[f]}else if(t.getAnimationStyleProps&&(gi(s)||gi(o)||le(s,"style")>=0)){var v=t.getAnimationStyleProps(),h=v?v.style:null;if(h){!a&&(a=n.style={});var d=de(r);for(u=0;u<d.length;u++){var f;h[f=d[u]]&&(a[f]=i[f])}}}}}}(t,e,u,f)),c.style=u,function QI(t,e,r){var n=e.style;if(!t.isGroup&&n){if(r){t.useStyle({});for(var i=t.animators,a=0;a<i.length;a++){var o=i[a];"style"===o.targetName&&o.changeTarget(t.style)}}t.setStyle(n)}e&&(e.style=null,e&&t.attr(e),e.style=n)}(t,c,o),function e2(t,e){J(e,"silent")&&(t.silent=e.silent),J(e,"ignore")&&(t.ignore=e.ignore),t instanceof zn&&J(e,"invisible")&&(t.invisible=e.invisible),t instanceof Se&&J(e,"autoBatch")&&(t.autoBatch=e.autoBatch)}(t,e),s)if(a){var p={};D(Gl,function(y){var _=y?e[y]:e;_&&_.enterFrom&&(y&&(p[y]=p[y]||{}),k(y?p[y]:p,_.enterFrom))});var g=cv("enter",t,e,r,i);g.duration>0&&t.animateFrom(p,g)}else!function JI(t,e,r,n,i){if(i){var a=cv("update",t,e,n,r);a.duration>0&&t.animateFrom(i,a)}}(t,e,i||0,r,f);YC(t,e),u?t.dirty():t.markRedraw()}function YC(t,e){for(var r=ea(t).leaveToProps,n=0;n<Gl.length;n++){var i=Gl[n],a=i?e[i]:e;a&&a.leaveTo&&(r||(r=ea(t).leaveToProps={}),i&&(r[i]=r[i]||{}),k(i?r[i]:r,a.leaveTo))}}function gi(t){return"all"===t}var xr={},t2={setTransform:function(t,e){return xr.el[t]=e,this},getTransform:function(t){return xr.el[t]},setShape:function(t,e){var r=xr.el;return(r.shape||(r.shape={}))[t]=e,r.dirtyShape&&r.dirtyShape(),this},getShape:function(t){var e=xr.el.shape;if(e)return e[t]},setStyle:function(t,e){var r=xr.el,n=r.style;return n&&(n[t]=e,r.dirtyStyle&&r.dirtyStyle()),this},getStyle:function(t){var e=xr.el.style;if(e)return e[t]},setExtra:function(t,e){return(xr.el.extra||(xr.el.extra={}))[t]=e,this},getExtra:function(t){var e=xr.el.extra;if(e)return e[t]}};function r2(){var t=this,e=t.el;if(e){var r=ea(e).userDuring,n=t.userDuring;if(r!==n)return void(t.el=t.userDuring=null);xr.el=e,n(t2)}}function XC(t,e,r,n){var i=r[t];if(i){var o,a=e[t];if(a){var s=r.transition,l=i.transition;if(l)if(!o&&(o=n[t]={}),gi(l))k(o,a);else for(var u=He(l),f=0;f<u.length;f++)o[c=u[f]]=v=a[c];else if(gi(s)||le(s,t)>=0){!o&&(o=n[t]={});var h=de(a);for(f=0;f<h.length;f++){var c,v;o2(i[c=h[f]],v=a[c])&&(o[c]=v)}}}}}function vv(t,e,r){var n=e[t];if(n)for(var i=r[t]={},a=de(n),o=0;o<a.length;o++){var s=a[o];i[s]=ya(n[s])}}function o2(t,e){return Ze(t)?t!==e:null!=t&&isFinite(t)}var jC=ye(),s2=["percent","easing","shape","style","extra"];function dv(t,e,r){if(r.isAnimationEnabled()&&e){if(z(e))return void D(e,function(s){dv(t,s,r)});var n=e.keyframes,i=e.duration;if(r&&null==i){var a=kf("enter",r,0);i=a&&a.duration}if(n&&i){var o=jC(t);D(Gl,function(s){var l;s&&!t[s]||(n.sort(function(f,c){return f.percent-c.percent}),D(n,function(f){var c=t.animators,v=s?f[s]:f;if(v){var h=de(v);if(s||(h=Me(h,function(p){return le(s2,p)<0})),h.length){l||((l=t.animate(s,e.loop,!0)).scope="keyframe");for(var d=0;d<c.length;d++)c[d]!==l&&c[d].targetName===l.targetName&&c[d].stopTracks(h);s&&(o[s]=o[s]||{});var m=s?o[s]:o;D(h,function(p){m[p]=((s?t[s]:t)||{})[p]}),l.whenWithKeys(i*f.percent,v,h,f.easing)}}}),l&&l.delay(e.delay||0).duration(i).start(e.easing))})}}}var ZC={path:null,compoundPath:null,group:Tt,image:fn,text:Be},zt=ye(),u2=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.type=e.type,r}return(0,X.C6)(e,t),e.prototype.init=function(){this._elMap=ae()},e.prototype.render=function(r,n,i){r!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=r,this._updateElements(r),this._relocate(r,i)},e.prototype._updateElements=function(r){var n=r.useElOptionsToUpdate();if(n){var i=this._elMap,a=this.group,o=r.get("z"),s=r.get("zlevel");D(n,function(l){var u=ot(l.id,null),f=null!=u?i.get(u):null,c=ot(l.parentId,null),v=null!=c?i.get(c):a,h=l.type,d=l.style;"text"===h&&d&&l.hv&&l.hv[1]&&(d.textVerticalAlign=d.textBaseline=d.verticalAlign=d.align=null);var m=l.textContent,p=l.textConfig;if(d&&function ZI(t,e,r,n){return t&&(t.legacy||!1!==t.legacy&&!r&&!n&&"tspan"!==e&&("text"===e||J(t,"text")))}(d,h,!!p,!!m)){var g=function $I(t,e,r){var i,a,o,n=t;if("text"===e)o=n;else{o={},J(n,"text")&&(o.text=n.text),J(n,"rich")&&(o.rich=n.rich),J(n,"textFill")&&(o.fill=n.textFill),J(n,"textStroke")&&(o.stroke=n.textStroke),J(n,"fontFamily")&&(o.fontFamily=n.fontFamily),J(n,"fontSize")&&(o.fontSize=n.fontSize),J(n,"fontStyle")&&(o.fontStyle=n.fontStyle),J(n,"fontWeight")&&(o.fontWeight=n.fontWeight),a={type:"text",style:o,silent:!0},i={};var s=J(n,"textPosition");r?i.position=s?n.textPosition:"inside":s&&(i.position=n.textPosition),J(n,"textPosition")&&(i.position=n.textPosition),J(n,"textOffset")&&(i.offset=n.textOffset),J(n,"textRotation")&&(i.rotation=n.textRotation),J(n,"textDistance")&&(i.distance=n.textDistance)}return VC(o,t),D(o.rich,function(l){VC(l,l)}),{textConfig:i,textContent:a}}(d,h,!0);!p&&g.textConfig&&(p=l.textConfig=g.textConfig),!m&&g.textContent&&(m=g.textContent)}var y=function f2(t){return t=k({},t),D(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(Ig),function(e){delete t[e]}),t}(l),_=l.$action||"merge",C="merge"===_,b="replace"===_;if(C){var x=f;(S=!f)?x=$C(u,v,l.type,i):(x&&(zt(x).isNew=!1),function l2(t){t.stopAnimation("keyframe"),t.attr(jC(t))}(x)),x&&(hv(x,y,r,{isInit:S}),KC(x,l,o,s))}else if(b){Vl(f,l,i,r);var T=$C(u,v,l.type,i);T&&(hv(T,y,r,{isInit:!0}),KC(T,l,o,s))}else"remove"===_&&(YC(f,l),Vl(f,l,i,r));var w=i.get(u);if(w&&m)if(C){var L=w.getTextContent();L?L.attr(m):w.setTextContent(new Be(m))}else b&&w.setTextContent(new Be(m));if(w){var A=l.clipPath;if(A){var R=A.type,M=void 0,S=!1;if(C){var E=w.getClipPath();M=(S=!E||zt(E).type!==R)?pv(R):E}else b&&(S=!0,M=pv(R));w.setClipPath(M),hv(M,A,r,{isInit:S}),dv(M,A.keyframeAnimation,r)}var I=zt(w);w.setTextConfig(p),I.option=l,function c2(t,e,r){var n=ve(t).eventData;!t.silent&&!t.ignore&&!n&&(n=ve(t).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:t.name}),n&&(n.info=r.info)}(w,r,l),Za({el:w,componentModel:r,itemName:w.name,itemTooltipOption:l.tooltip}),dv(w,l.keyframeAnimation,r)}})}},e.prototype._relocate=function(r,n){for(var i=r.option.elements,a=this.group,o=this._elMap,s=n.getWidth(),l=n.getHeight(),u=["x","y"],f=0;f<i.length;f++)if((h=null!=(v=ot((c=i[f]).id,null))?o.get(v):null)&&h.isGroup){var m=(d=h.parent)===a,p=zt(h),g=zt(d);p.width=me(p.option.width,m?s:g.width)||0,p.height=me(p.option.height,m?l:g.height)||0}for(f=i.length-1;f>=0;f--){var c,v,h;if(h=null!=(v=ot((c=i[f]).id,null))?o.get(v):null){g=zt(d=h.parent);var d,_={},C=cw(h,c,d===a?{width:s,height:l}:{width:g.width,height:g.height},null,{hv:c.hv,boundingMode:c.bounding},_);if(!zt(h).isNew&&C){for(var b=c.transition,S={},x=0;x<u.length;x++){var T=u[x],w=_[T];b&&(gi(b)||le(b,T)>=0)?S[T]=w:h[T]=w}Qt(h,S,r,0)}else h.attr(_)}}},e.prototype._clear=function(){var r=this,n=this._elMap;n.each(function(i){Vl(i,zt(i).option,n,r._lastGraphicModel)}),this._elMap=ae()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(Bt);function pv(t){var r=new(J(ZC,t)?ZC[t]:Oc(t))({});return zt(r).type=t,r}function $C(t,e,r,n){var i=pv(r);return e.add(i),n.set(t,i),zt(i).id=t,zt(i).isNew=!0,i}function Vl(t,e,r,n){t&&t.parent&&("group"===t.type&&t.traverse(function(a){Vl(a,e,r,n)}),function KI(t,e,r,n){if(t){var i=t.parent,a=ea(t).leaveToProps;if(a){var o=cv("update",t,e,r,0);o.done=function(){i&&i.remove(t),n&&n()},t.animateTo(a,o)}else i&&i.remove(t),n&&n()}}(t,e,n),r.removeKey(zt(t).id))}function KC(t,e,r,n){t.isGroup||D([["cursor",zn.prototype.cursor],["zlevel",n||0],["z",r||0],["z2",0]],function(i){var a=i[0];J(e,a)?t[a]=Q(e[a],i[1]):null==t[a]&&(t[a]=i[1])}),D(de(e),function(i){if(0===i.indexOf("on")){var a=e[i];t[i]=ee(a)?a:null}}),J(e,"draggable")&&(t.draggable=e.draggable),null!=e.name&&(t.name=e.name),null!=e.id&&(t.id=e.id)}function QC(t,e,r){var n=Lt.createCanvas(),i=e.getWidth(),a=e.getHeight(),o=n.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=i+"px",o.height=a+"px",n.setAttribute("data-zr-dom-id",t)),n.width=i*r,n.height=a*r,n}var v2=function(t){function e(r,n,i){var o,a=t.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.incremental=!1,a.zlevel=0,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__used=!1,a.__drawIndex=0,a.__startIndex=0,a.__endIndex=0,a.__prevStartIndex=null,a.__prevEndIndex=null,i=i||es,"string"==typeof r?o=QC(r,n,i):$(r)&&(r=(o=r).id),a.id=r,a.dom=o;var s=o.style;return s&&(Ql(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),a.painter=n,a.dpr=i,a}return(0,X.C6)(e,t),e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var r=this.dpr;this.domBack=QC("back-"+this.id,this.painter,r),this.ctxBack=this.domBack.getContext("2d"),1!==r&&this.ctxBack.scale(r,r)},e.prototype.createRepaintRects=function(r,n,i,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var p,o=[],s=this.maxRepaintRectCount,l=!1,u=new ne(0,0,0,0);function f(y){if(y.isFinite()&&!y.isZero())if(0===o.length)(_=new ne(0,0,0,0)).copy(y),o.push(_);else{for(var C=!1,b=1/0,S=0,x=0;x<o.length;++x){var T=o[x];if(T.intersect(y)){var w=new ne(0,0,0,0);w.copy(T),w.union(y),o[x]=w,C=!0;break}if(l){u.copy(y),u.union(T);var M=u.width*u.height-y.width*y.height-T.width*T.height;M<b&&(b=M,S=x)}}var _;l&&(o[S].union(y),C=!0),C||((_=new ne(0,0,0,0)).copy(y),o.push(_)),l||(l=o.length>=s)}}for(var c=this.__startIndex;c<this.__endIndex;++c)if(v=r[c]){var h=v.shouldBePainted(i,a,!0,!0);(d=v.__isRendered&&(1&v.__dirty||!h)?v.getPrevPaintRect():null)&&f(d);var m=h&&(1&v.__dirty||!v.__isRendered)?v.getPaintRect():null;m&&f(m)}for(c=this.__prevStartIndex;c<this.__prevEndIndex;++c){var v,d;h=(v=n[c])&&v.shouldBePainted(i,a,!0,!0),!v||h&&v.__zr||!v.__isRendered||(d=v.getPrevPaintRect())&&f(d)}do{for(p=!1,c=0;c<o.length;)if(o[c].isZero())o.splice(c,1);else{for(var g=c+1;g<o.length;)o[c].intersect(o[g])?(p=!0,o[c].union(o[g]),o.splice(g,1)):g++;c++}}while(p);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(r,n){var i=this.dpr,a=this.dom,o=a.style,s=this.domBack;o&&(o.width=r+"px",o.height=n+"px"),a.width=r*i,a.height=n*i,s&&(s.width=r*i,s.height=n*i,1!==i&&this.ctxBack.scale(i,i))},e.prototype.clear=function(r,n,i){var a=this.dom,o=this.ctx,s=a.width,l=a.height;n=n||this.clearColor;var u=this.motionBlur&&!r,f=this.lastFrameAlpha,c=this.dpr,v=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(a,0,0,s/c,l/c));var h=this.domBack;function d(m,p,g,y){if(o.clearRect(m,p,g,y),n&&"transparent"!==n){var _=void 0;aa(n)?(_=(n.global||n.__width===g&&n.__height===y)&&n.__canvasGradient||$c(o,n,{x:0,y:0,width:g,height:y}),n.__canvasGradient=_,n.__width=g,n.__height=y):Dv(n)&&(n.scaleX=n.scaleX||c,n.scaleY=n.scaleY||c,_=Kc(o,n,{dirty:function(){v.setUnpainted(),v.painter.refresh()}})),o.save(),o.fillStyle=_||n,o.fillRect(m,p,g,y),o.restore()}u&&(o.save(),o.globalAlpha=f,o.drawImage(h,m,p,g,y),o.restore())}!i||u?d(0,0,s,l):i.length&&D(i,function(m){d(m.x*c,m.y*c,m.width*c,m.height*c)})},e}(or);const gv=v2;var mi=314159,m2=function(){function t(e,r,n,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var a=!e.nodeName||"CANVAS"===e.nodeName.toUpperCase();this._opts=n=k({},n||{}),this.dpr=n.devicePixelRatio||es,this._singleCanvas=a,this.root=e,e.style&&(Ql(e),e.innerHTML=""),this.storage=r;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(a){var f=e,c=f.width,v=f.height;null!=n.width&&(c=n.width),null!=n.height&&(v=n.height),this.dpr=n.devicePixelRatio||1,f.width=c*this.dpr,f.height=v*this.dpr,this._width=c,this._height=v;var h=new gv(f,this,this.dpr);h.__builtin__=!0,h.initContext(),l[mi]=h,h.zlevel=mi,s.push(mi),this._domRoot=e}else{this._width=il(e,0,n),this._height=il(e,1,n);var u=this._domRoot=function g2(t,e){var r=document.createElement("div");return r.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",r}(this._width,this._height);e.appendChild(u)}}return t.prototype.getType=function(){return"canvas"},t.prototype.isSingleCanvas=function(){return this._singleCanvas},t.prototype.getViewportRoot=function(){return this._domRoot},t.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},t.prototype.refresh=function(e){var r=this.storage.getDisplayList(!0),n=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(r,n,e,this._redrawId);for(var a=0;a<i.length;a++){var s=this._layers[i[a]];!s.__builtin__&&s.refresh&&s.refresh(0===a?this._backgroundColor:null)}return this._opts.useDirtyRect&&(this._prevDisplayList=r.slice()),this},t.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},t.prototype._paintHoverList=function(e){var r=e.length,n=this._hoverlayer;if(n&&n.clear(),r){for(var a,i={inHover:!0,viewWidth:this._width,viewHeight:this._height},o=0;o<r;o++){var s=e[o];s.__inHover&&(n||(n=this._hoverlayer=this.getLayer(1e5)),a||(a=n.ctx).save(),li(a,s,i,o===r-1))}a&&a.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(1e5)},t.prototype.paintOne=function(e,r){Qc(e,r)},t.prototype._paintList=function(e,r,n,i){if(this._redrawId===i){n=n||!1,this._updateLayerStatus(e);var a=this._doPaintList(e,r,n),o=a.finished,s=a.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(e),o)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;gu(function(){l._paintList(e,r,n,i)})}}},t.prototype._compositeManually=function(){var e=this.getLayer(mi).ctx,r=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,r,n),this.eachBuiltinLayer(function(i){i.virtual&&e.drawImage(i.dom,0,0,r,n)})},t.prototype._doPaintList=function(e,r,n){for(var i=this,a=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var u=this._layers[this._zlevelList[s]];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||n)&&a.push(u)}for(var f=!0,c=!1,v=function(m){var p=a[m],g=p.ctx,y=o&&p.createRepaintRects(e,r,h._width,h._height),_=n?p.__startIndex:p.__drawIndex,C=!n&&p.incremental&&Date.now,b=C&&Date.now(),S=p.zlevel===h._zlevelList[0]?h._backgroundColor:null;if(p.__startIndex===p.__endIndex)p.clear(!1,S,y);else if(_===p.__startIndex){var x=e[_];(!x.incremental||!x.notClear||n)&&p.clear(!1,S,y)}-1===_&&(console.error("For some unknown reason. drawIndex is -1"),_=p.__startIndex);var T,w=function(M){var E={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(T=_;T<p.__endIndex;T++){var I=e[T];if(I.__inHover&&(c=!0),i._doPaintEl(I,p,o,M,E,T===p.__endIndex-1),C&&Date.now()-b>15)break}E.prevElClipPaths&&g.restore()};if(y)if(0===y.length)T=p.__endIndex;else for(var L=h.dpr,A=0;A<y.length;++A){var R=y[A];g.save(),g.beginPath(),g.rect(R.x*L,R.y*L,R.width*L,R.height*L),g.clip(),w(R),g.restore()}else g.save(),w(),g.restore();p.__drawIndex=T,p.__drawIndex<p.__endIndex&&(f=!1)},h=this,d=0;d<a.length;d++)v(d);return oe.wxa&&D(this._layers,function(m){m&&m.ctx&&m.ctx.draw&&m.ctx.draw()}),{finished:f,needsRefreshHover:c}},t.prototype._doPaintEl=function(e,r,n,i,a,o){var s=r.ctx;if(n){var l=e.getPaintRect();(!i||l&&l.intersect(i))&&(li(s,e,a,o),e.setPrevPaintRect(l))}else li(s,e,a,o)},t.prototype.getLayer=function(e,r){this._singleCanvas&&!this._needsManuallyCompositing&&(e=mi);var n=this._layers[e];return n||((n=new gv("zr_"+e,this,this.dpr)).zlevel=e,n.__builtin__=!0,this._layerConfig[e]?Ce(n,this._layerConfig[e],!0):this._layerConfig[e-.01]&&Ce(n,this._layerConfig[e-.01],!0),r&&(n.virtual=r),this.insertLayer(e,n),n.initContext()),n},t.prototype.insertLayer=function(e,r){var n=this._layers,i=this._zlevelList,a=i.length,o=this._domRoot,s=null,l=-1;if(!n[e]&&function p2(t){return!(!t||!t.__builtin__&&("function"!=typeof t.resize||"function"!=typeof t.refresh))}(r)){if(a>0&&e>i[0]){for(l=0;l<a-1&&!(i[l]<e&&i[l+1]>e);l++);s=n[i[l]]}if(i.splice(l+1,0,e),n[e]=r,!r.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(r.dom,u.nextSibling):o.appendChild(r.dom)}else o.firstChild?o.insertBefore(r.dom,o.firstChild):o.appendChild(r.dom);r.painter||(r.painter=this)}},t.prototype.eachLayer=function(e,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i];e.call(r,this._layers[a],a)}},t.prototype.eachBuiltinLayer=function(e,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i],o=this._layers[a];o.__builtin__&&e.call(r,o,a)}},t.prototype.eachOtherLayer=function(e,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i],o=this._layers[a];o.__builtin__||e.call(r,o,a)}},t.prototype.getLayers=function(){return this._layers},t.prototype._updateLayerStatus=function(e){function r(c){a&&(a.__endIndex!==c&&(a.__dirty=!0),a.__endIndex=c)}if(this.eachBuiltinLayer(function(c,v){c.__dirty=c.__used=!1}),this._singleCanvas)for(var n=1;n<e.length;n++)if((i=e[n]).zlevel!==e[n-1].zlevel||i.incremental){this._needsManuallyCompositing=!0;break}var s,l,a=null,o=0;for(l=0;l<e.length;l++){var i,u=(i=e[l]).zlevel,f=void 0;s!==u&&(s=u,o=0),i.incremental?((f=this.getLayer(u+.001,this._needsManuallyCompositing)).incremental=!0,o=1):f=this.getLayer(u+(o>0?.01:0),this._needsManuallyCompositing),f.__builtin__||To("ZLevel "+u+" has been used by unkown layer "+f.id),f!==a&&(f.__used=!0,f.__startIndex!==l&&(f.__dirty=!0),f.__startIndex=l,f.__drawIndex=f.incremental?-1:l,r(l),a=f),1&i.__dirty&&!i.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=l))}r(l),this.eachBuiltinLayer(function(c,v){!c.__used&&c.getElementCount()>0&&(c.__dirty=!0,c.__startIndex=c.__endIndex=c.__drawIndex=0),c.__dirty&&c.__drawIndex<0&&(c.__drawIndex=c.__startIndex)})},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(e){e.clear()},t.prototype.setBackgroundColor=function(e){this._backgroundColor=e,D(this._layers,function(r){r.setUnpainted()})},t.prototype.configLayer=function(e,r){if(r){var n=this._layerConfig;n[e]?Ce(n[e],r,!0):n[e]=r;for(var i=0;i<this._zlevelList.length;i++){var a=this._zlevelList[i];a!==e&&a!==e+.01||Ce(this._layers[a],n[e],!0)}}},t.prototype.delLayer=function(e){var r=this._layers,n=this._zlevelList,i=r[e];i&&(i.dom.parentNode.removeChild(i.dom),delete r[e],n.splice(le(n,e),1))},t.prototype.resize=function(e,r){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts,a=this.root;if(null!=e&&(i.width=e),null!=r&&(i.height=r),e=il(a,0,i),r=il(a,1,i),n.style.display="",this._width!==e||r!==this._height){for(var o in n.style.width=e+"px",n.style.height=r+"px",this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(e,r);this.refresh(!0)}this._width=e,this._height=r}else{if(null==e||null==r)return;this._width=e,this._height=r,this.getLayer(mi).resize(e,r)}return this},t.prototype.clearLayer=function(e){var r=this._layers[e];r&&r.clear()},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},t.prototype.getRenderedCanvas=function(e){if(this._singleCanvas&&!this._compositeManually)return this._layers[mi].dom;var r=new gv("image",this,(e=e||{}).pixelRatio||this.dpr);r.initContext(),r.clear(!1,e.backgroundColor||this._backgroundColor);var n=r.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var i=r.dom.width,a=r.dom.height;this.eachLayer(function(c){c.__builtin__?n.drawImage(c.dom,0,0,i,a):c.renderToCanvas&&(n.save(),c.renderToCanvas(n),n.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++)li(n,s[l],o,l===u-1);return r.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t}();const y2=m2;var Ht=Y(6756),eS=Y(2245),tS=Y(5381),C2=Y(6170);const S2=["chart"],b2=()=>({renderer:"canvas",width:"auto",height:"auto"});function x2(t,e){if(1&t&&(P.j41(0,"cue-flexcontainer",3),P.nrm(1,"cue-typography",5),P.k0s()),2&t){const r=P.XpG();P.R7$(),P.Y8G("innerHTML",r.currentHoveredValue()||r.formattedSum(),P.npT)}}function T2(t,e){if(1&t&&(P.j41(0,"cue-flexcontainer",4)(1,"cue-typography",6),P.EFF(2),P.k0s()()),2&t){const r=P.XpG();P.R7$(2),P.JRh(r.currentHoveredValue())}}pn([function qR(t){t.registerComponentModel(VR),t.registerComponentView(WR)},function MI(t){pn(iI),t.registerComponentModel(oI),t.registerComponentView(DI),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},it),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},it)},function VI(t){pn(FC),pn(GI)},function GR(t){t.registerChartView(kR),t.registerSeriesModel(zR),function fL(t,e){function r(n,i){var a=[];return n.eachComponent({mainType:"series",subType:t,query:i},function(o){a.push(o.seriesIndex)}),a}D([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],function(n){e(n[0],function(i,a,o){i=k({},i),o.dispatchAction(k(i,{type:n[1],seriesIndex:r(a,i)}))})})}("pie",t.registerAction),t.registerLayout(Ae(DR,"pie")),t.registerProcessor(function MR(t){return{seriesType:t,reset:function(e,r){var n=r.findComponents({mainType:"legend"});if(n&&n.length){var i=e.getData();i.filterSelf(function(a){for(var o=i.getName(a),s=0;s<n.length;s++)if(!n[s].isSelected(o))return!1;return!0})}}}}("pie")),t.registerProcessor(function HR(t){return{seriesType:t,reset:function(e,r){var n=e.getData();n.filterSelf(function(i){var a=n.mapDimension("value"),o=n.get(a,i);return!(ge(o)&&!isNaN(o)&&o<0)})}}}("pie"))},function _2(t){t.registerPainter("canvas",y2)},q_,function h2(t){t.registerComponentModel(XI),t.registerComponentView(u2),t.registerPreprocessor(function(e){var r=e.graphic;z(r)?e.graphic=r[0]&&r[0].elements?[e.graphic[0]]:[{elements:r}]:r&&!r.elements&&(e.graphic=[{elements:[r]}])})}]);let rS=(()=>{class t{data=ce.hFB.required();variant=(0,ce.hFB)("primary");doughnut=(0,ce.hFB)(!1);hoverType=(0,ce.hFB)("name");labelType=(0,ce.hFB)("name");clickable=(0,ce.hFB)(!0);labelThresholdPct=(0,ce.hFB)(3);groupSmallFractions=(0,ce.hFB)(void 0);clickedCategory=(0,ce.CGW)();clickedCanvas=(0,ce.CGW)();radius=(0,j.EW)(()=>this.doughnut()?["40%","70%"]:"70%");startColor=(0,j.EW)(()=>(0,Ht.r)(this.variant()));endColor=(0,j.EW)(()=>(0,Ht.U6)(this.variant()));currentParent=(0,B.vPA)(void 0);saturated=(0,j.EW)(()=>{const r=this.groupSmallFractions();return r?.enabled?(0,Ht.g0)(this.data(),!0,r.threshold,r.groupName):(0,Ht.g0)(this.data(),!1)});chartData=(0,j.EW)(()=>(0,Ht.Mc)(this.saturated(),this.currentParent()));borderColor=(0,j.EW)(()=>"tertiary"===this.variant()?"#cccccc":this.borderBackgroundColor());textColor=(0,B.vPA)("#333");borderBackgroundColor=(0,B.vPA)("#fff");sum=(0,j.EW)(()=>this.chartData().reduce((r,n)=>r+n.value,0));formattedSum=(0,j.EW)(()=>(0,Ht.In)(this.sum()));chartInstance=null;currentHoveredValue=(0,B.vPA)(null);chartRef;ngAfterViewInit(){this.updateColors()}updateColors(){const r=(0,Ht.g8)(this.chartRef);this.textColor.set(r.text),this.borderBackgroundColor.set(r.borderBackground)}onChartInit(r){this.chartInstance=r,this.setupChartEvents()}setupChartEvents(){this.chartInstance&&(this.chartInstance.on("mouseover",r=>{r.data&&(this.updateHoveredValue(r.data),this.chartInstance?.setOption(this.chartOptions()))}),this.chartInstance.on("mouseout",()=>{this.currentHoveredValue.set(null),this.chartInstance?.setOption(this.chartOptions())}),this.chartInstance.on("click",r=>{const n=window.event||r.event;n&&"function"==typeof n.stopPropagation&&n.stopPropagation(),r.data&&(!0!==r.data?.isGroup&&this.clickedCategory.emit(r.data),this.currentParent.set(void 0!==r.data.children&&r.data.children.length>0?r.data:void 0))}))}onData=(0,B.QZP)(()=>{this.data(),this.currentHoveredValue.set(null)});handleCanvasClick(){this.clickedCanvas.emit(),this.currentParent.set(void 0)}updateHoveredValue(r){switch(this.hoverType()){case"value":this.currentHoveredValue.set(r.value.toString());break;case"valueShort":this.currentHoveredValue.set((0,Ht.In)(r.value));break;case"pct":{const n=(r.value/this.sum()*100).toFixed(1);this.currentHoveredValue.set(`${n}%`);break}case"nameValue":this.currentHoveredValue.set(`${r.name}${this.doughnut()?"<br>":": "}${r.value.toString()}`);break;case"nameValueShort":this.currentHoveredValue.set(`${r.name}${this.doughnut()?"<br>":": "}${(0,Ht.In)(r.value)}`);break;case"namePct":{const n=(r.value/this.sum()*100).toFixed(1);this.currentHoveredValue.set(`${r.name}${this.doughnut()?"<br>":": "}${n}%`);break}default:this.currentHoveredValue.set(r.name)}}chartOptions=(0,j.EW)(()=>{const r=this.chartData();return{fontStyle:Ht.u9,series:[{name:"Distribution",type:"pie",radius:this.radius(),cursor:this.clickable()?"pointer":"default",data:r.map((n,i)=>({...n,itemStyle:{color:(0,Ht.Kz)(this.startColor(),this.endColor(),i,r.length),borderColor:this.borderColor(),borderWidth:"tertiary"===this.variant()?1:2,borderType:"solid"}})),emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)",borderWidth:"tertiary"===this.variant()?2:0,borderColor:"tertiary"===this.variant()?"#999999":"transparent"}},labelLine:{show:!1},label:{color:this.textColor(),distanceToLabelLine:-20,position:"outside",show:"none"!==this.labelType(),formatter:n=>{const{data:i}=n,a=i.value/this.sum()*100;if(a<this.labelThresholdPct())return"";switch(this.labelType()){case"value":return i.value;case"valueShort":return(0,Ht.In)(i.value);case"pct":return`${a.toFixed(1)}%`;default:return i.name}}}}]}});static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P.VBU({type:t,selectors:[["cue-pie-chart"]],viewQuery:function(n,i){if(1&n&&P.GBs(S2,5),2&n){let a;P.mGM(a=P.lsd())&&(i.chartRef=a.first)}},inputs:{data:[1,"data"],variant:[1,"variant"],doughnut:[1,"doughnut"],hoverType:[1,"hoverType"],labelType:[1,"labelType"],clickable:[1,"clickable"],labelThresholdPct:[1,"labelThresholdPct"],groupSmallFractions:[1,"groupSmallFractions"]},outputs:{clickedCategory:"clickedCategory",clickedCanvas:"clickedCanvas"},features:[P.Jv_([Sv({echarts:yi})])],decls:5,vars:5,consts:[["chart",""],["cueDarkMode","",1,"chart-container",3,"darkModeChange","click"],["echarts","",1,"chart",3,"chartInit","options","initOpts"],["justify","center",1,"center-text"],["justify","center",1,"bottom-text"],["size","l","weight","semibold","align","center",3,"innerHTML"],["size","l","weight","semibold"]],template:function(n,i){1&n&&(P.j41(0,"div",1),P.bIt("darkModeChange",function(){return i.updateColors()})("click",function(){return i.handleCanvasClick()}),P.j41(1,"div",2,0),P.bIt("chartInit",function(o){return i.onChartInit(o)}),P.k0s(),P.nVh(3,x2,2,1,"cue-flexcontainer",3),P.nVh(4,T2,3,1,"cue-flexcontainer",4),P.k0s()),2&n&&(P.R7$(),P.Y8G("options",i.chartOptions())("initOpts",P.lJ4(4,b2)),P.R7$(2),P.vxM(i.doughnut()?3:-1),P.R7$(),P.vxM(i.doughnut()?-1:4))},dependencies:[hS,cS,eS.Typography,tS.n,C2.R],styles:[".chart-container[_ngcontent-%COMP%]{position:relative;width:100%;height:400px}.chart[_ngcontent-%COMP%]{width:100%;height:100%}.center-text[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);text-align:center;pointer-events:none;width:80%}.bottom-text[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;right:0;text-align:center;padding-bottom:10px}"]})}return t})();var nS=Y(7573);const iS=[{"@id":"https://dev.qaecy.com/enum#ConstructionProcessDocument","@type":"qcy:ContentCategory",children:[{"@id":"https://dev.qaecy.com/enum#ScheduleDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Schedule Document"}},{"@id":"https://dev.qaecy.com/enum#SafetyDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Safety Document"}},{"@id":"https://dev.qaecy.com/enum#QualityAssuranceDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"QA/QC Document"}},{"@id":"https://dev.qaecy.com/enum#ProgressStatusReport","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Progress & Status Report"}},{"@id":"https://dev.qaecy.com/enum#OtherConstructionProcessDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Other Construction Management Document"}},{"@id":"https://dev.qaecy.com/enum#ChangeOrderRFIDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Change Order & RFI Document"}}],label:{"@language":"en","@value":"Construction Process & Management Document"}},{"@id":"https://dev.qaecy.com/enum#ContractualDocument","@type":"qcy:ContentCategory",children:[{"@id":"https://dev.qaecy.com/enum#PurchaseOrLeaseAgreement","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Purchase & Lease Agreement"}},{"@id":"https://dev.qaecy.com/enum#OtherContractualDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Other Contractual & Legal Document"}},{"@id":"https://dev.qaecy.com/enum#InsuranceBondDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Insurance & Bond Document"}},{"@id":"https://dev.qaecy.com/enum#ConstructionContract","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Construction Contract"}}],label:{"@language":"en","@value":"Contractual & Legal Document"}},{"@id":"https://dev.qaecy.com/enum#DesignDocument","@type":"qcy:ContentCategory",children:[{"@id":"https://dev.qaecy.com/enum#OtherDesignDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Other Design Document"}},{"@id":"https://dev.qaecy.com/enum#LandscapeDesignDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Landscape Design Document"}},{"@id":"https://dev.qaecy.com/enum#InteriorDesignDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Interior Design Document"}},{"@id":"https://dev.qaecy.com/enum#EngineeringDesignDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Engineering Design Document"}},{"@id":"https://dev.qaecy.com/enum#ArchitecturalDesignDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Architectural Design Document"}}],label:{"@language":"en","@value":"Design Document"}},{"@id":"https://dev.qaecy.com/enum#FinancialAdministrativeDocument","@type":"qcy:ContentCategory",children:[{"@id":"https://dev.qaecy.com/enum#OtherFinancialAdministrativeDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Other Financial & Administrative Document"}},{"@id":"https://dev.qaecy.com/enum#InvoicePaymentDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Invoice or Payment Document"}},{"@id":"https://dev.qaecy.com/enum#BudgetEstimateDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Budget or Estimate Document"}},{"@id":"https://dev.qaecy.com/enum#AppraisalValuationDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Appraisal or Valuation Document"}}],label:{"@language":"en","@value":"Financial & Administrative Document"}},{"@id":"https://dev.qaecy.com/enum#MiscDocument","@type":"qcy:ContentCategory",children:[{"@id":"https://dev.qaecy.com/enum#OtherMiscDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Other Miscellaneous Document"}},{"@id":"https://dev.qaecy.com/enum#MarketingCloseoutDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Marketing or Project Closeout Document"}},{"@id":"https://dev.qaecy.com/enum#DueDiligenceDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Due Diligence Document"}},{"@id":"https://dev.qaecy.com/enum#CorrespondenceDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Correspondence Document"}}],label:{"@language":"en","@value":"Miscellaneous Document"}},{"@id":"https://dev.qaecy.com/enum#OperationsMaintenanceDocument","@type":"qcy:ContentCategory",children:[{"@id":"https://dev.qaecy.com/enum#WarrantyDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Warranty or Guarantee Document"}},{"@id":"https://dev.qaecy.com/enum#OtherOperationsMaintenanceDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Other O&M Document"}},{"@id":"https://dev.qaecy.com/enum#OperationManual","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Operation Manual"}},{"@id":"https://dev.qaecy.com/enum#MaintenanceLog","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Maintenance Log"}},{"@id":"https://dev.qaecy.com/enum#AsBuiltDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"As-Built Document"}}],label:{"@language":"en","@value":"Operations & Maintenance Document"}},{"@id":"https://dev.qaecy.com/enum#RegulatoryComplianceDocument","@type":"qcy:ContentCategory",children:[{"@id":"https://dev.qaecy.com/enum#PermitDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Permit Document"}},{"@id":"https://dev.qaecy.com/enum#OtherRegulatoryComplianceDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Other Regulatory & Compliance Document"}},{"@id":"https://dev.qaecy.com/enum#InspectionDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Inspection Document"}},{"@id":"https://dev.qaecy.com/enum#ComplianceReport","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Compliance Report"}},{"@id":"https://dev.qaecy.com/enum#CertificationDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Certification Document"}}],label:{"@language":"en","@value":"Regulatory & Compliance Document"}},{"@id":"https://dev.qaecy.com/enum#RequirementsDocument","@type":"qcy:ContentCategory",children:[{"@id":"https://dev.qaecy.com/enum#TechnicalRequirementsDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Technical Requirements Document"}},{"@id":"https://dev.qaecy.com/enum#ScopeOfWorkDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Scope of Work (SOW) Document"}},{"@id":"https://dev.qaecy.com/enum#PerformanceRequirementsDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Performance Requirements Document"}},{"@id":"https://dev.qaecy.com/enum#OtherRequirementsDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Other Requirements & Scoping Document"}},{"@id":"https://dev.qaecy.com/enum#FunctionalRequirementsDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Functional Requirements Document"}}],label:{"@language":"en","@value":"Requirements & Scoping Document"}}],R2=(t,e,r="size")=>{const n=Array.isArray(t)?t.reduce((o,s)=>({...o,[s.id]:s.value}),{}):Object.entries(t).reduce((o,[s,l])=>{const u="number"==typeof l?l:l[r];return{...o,[s]:u}},{});if(e&&e.length>0)return E2(n,e);const i=Object.entries(n).map(([o,s])=>({id:o,value:s}));if(!(t=>{const e=(()=>{const t=new Set,e=r=>{for(const n of r)t.add(n["@id"]),n.children&&e(n.children)};return e(iS),t})(),r=Array.isArray(t)?t.map(n=>n.id):Object.keys(t);for(const n of r)if(!e.has(n))return!1;return!0})(n))return i.map(o=>({id:o.id,name:String(o.id),value:o.value}));const a=o=>{const s=n[o["@id"]]||0,l=o.children?o.children.map(f=>a(f)).filter(f=>void 0!==f):void 0;let u=s;if(l&&l.length>0&&(u+=l.reduce((f,c)=>f+(c.value||0),0)),u>0)return{id:o["@id"],name:o.label["@value"],value:u,children:l&&l.length>0?l:void 0}};return iS.map(o=>a(o)).filter(o=>void 0!==o)},E2=(t,e)=>{const r=new Map,n=[];e.forEach(a=>{r.set(a.iri,{id:a.iri,name:a.label,value:t[a.iri]||0,children:[]})}),e.forEach(a=>{const o=r.get(a.iri);a.parent&&r.has(a.parent)?r.get(a.parent).children.push(o):n.push(o)});const i=a=>{let o=0;return a.children&&a.children.length>0&&(a.children=a.children.map(s=>i(s)).filter(s=>void 0!==s),o=a.children.reduce((s,l)=>s+(l.value||0),0)),(!a.children||0===a.children.length)&&delete a.children,a.value=(a.value||0)+o,(a.value||0)>0?a:void 0};return n.map(a=>i(a)).filter(a=>void 0!==a)};class I2{docListFilterRequest=(0,Ee.A)(function*(){console.warn("docListFilterRequest block request not implemented")});alternativeRepresentationsRequest=()=>{throw new Error("No alternative representation request handler defined")};buildAgentPlan=(0,Ee.A)(function*(){console.warn("buildAgentPlan not implemented")});downloadURLRequest=(e,r=`${nS.E.qcy}InformationObject`)=>{throw console.log(e,r),new Error("No download URL request handler defined")};requestDocumentsByFilter=(0,Ee.A)(function*(){return console.warn("requestDocumentsByFilter not implemented"),[]});documentDuplicatesRequest=(0,Ee.A)(function*(){return console.warn("documentDuplicatesRequest not implemented"),{}});executeAgentPlan=(0,Ee.A)(function*(){return console.warn("executeAgentPlan not implemented"),"xx"});filteredDocumentListRequest;openDocumentInFileManager=()=>{console.warn("openDocumentInFileManager not implemented")};openDocumentInViewer;openEntityInViewer;queryHandler=(0,Ee.A)(function*(){throw new Error("No query handler defined")});relatedDocumentsRequest=(0,Ee.A)(function*(){console.warn("relatedDocumentsRequest block request not implemented")});requestEntityLocations=()=>{console.warn("requestEntityLocations not implemented")};requestFullScreen=()=>{console.warn("requestFullScreen not implemented")};requestGeoFeatures=()=>(console.warn("requestGeoFeatures not implemented"),Promise.resolve([]));requestRDFChange;rowClickHandler=()=>{throw new Error("No row click handler defined")};rowHoverHandler=()=>{throw new Error("No row hover handler defined")};subsequentBlockRequest=(0,Ee.A)(function*(){console.warn("subsequentBlockRequest not implemented")});requestEntityData=()=>{console.warn("requestEntityData not implemented")};requestEntityRelationships=(0,Ee.A)(function*(){console.warn("requestEntityRelationships not implemented")});openEntity=()=>{console.warn("openEntity not implemented")};requestDocumentData=()=>{console.warn("requestDocumentData not implemented")};requestDocumentURL;removeAgentPlanFromHistory=(0,Ee.A)(function*(){console.warn("removeAgentPlanFromHistory not implemented")})}class k2{canEditContentCategory=!1;canEditEntityCategories=!1}let O2=(()=>{class t{handlers=(0,B.vPA)(new I2);projectId=(0,B.vPA)("");portalBaseURL=(0,B.vPA)("");resourceBaseURL=(0,B.vPA)("");graphIsSaturated=(0,B.vPA)(!1);privileges=(0,B.vPA)(new k2);availableContentCategories=(0,B.vPA)(void 0);availableEntityCategories=(0,B.vPA)(void 0);availableEntityRelationships=(0,B.vPA)(void 0);entityInfoMap=(0,B.vPA)({});documentInfoMap=(0,B.vPA)({});static \u0275fac=function(n){return new(n||t)};static \u0275prov=B.jDH({token:t,factory:t.\u0275fac})}return t})(),B2=(()=>{class t{ctx=(0,B.WQX)(O2);data=ce.hFB.required();config=ce.hFB.required();handlers=(0,j.EW)(()=>this.config().handlers);navigated=(0,ce.CGW)();selectedContentCategories=(0,B.vPA)([]);onReset=(0,B.QZP)(()=>{this.handleCanvasClick()});fullTree=(0,j.EW)(()=>R2(this.data().documents,this.ctx.availableContentCategories(),"count"));chartData=(0,j.EW)(()=>{const r=this.selectedContentCategories();if(!r.length)return this.fullTree();const n=r[0],i=o=>{for(const s of o){if(s.id===n)return s;if(s.children){const l=i(s.children);if(l)return l}}};return i(this.fullTree())?.children??this.fullTree()});groupSmallFractions=(0,j.EW)(()=>({enabled:!0,threshold:.05,groupName:"Rest"}));handleContentCategoryClick(r){var n=this;return(0,Ee.A)(function*(){const i=o=>{const s=[];return s.push(o.id),Array.isArray(o.children)&&o.children.forEach(l=>{s.push(...i(l))}),s};if(r.children&&r.children.length>0)return n.selectedContentCategories.set([r.id]),void n.navigated.emit({filterBy:"contentCat",values:i(r),label:r.name??r.id});const a=i(r);n.selectedContentCategories.set(a),n.navigated.emit({filterBy:"contentCat",values:a,label:r.name??r.id}),n.requestDocumentList(r)})()}requestDocumentList(r){var n=this;return(0,Ee.A)(function*(){const i=n.handlers()?.subsequentBlockRequest;if((t=>t===`${nS.E["qcy-e"]}ContractualDocument`||"https://dev.qaecy.com/c/tend/enum#RentalContract"===t)(r.id)&&void 0!==i)return void i({id:"content-category",data:{categoryIRI:r.id},config:n.config(),focusOnAdd:!1},r.name??r.id,!0);const o=n.handlers()?.docListFilterRequest;if(void 0===o)return;const s=yield o("contentCat",[r.id]);s&&void 0!==i&&i({id:"document-list",data:s,config:n.config(),focusOnAdd:!0},r.name??r.id,!0)})()}handleCanvasClick(){this.selectedContentCategories.set([]),this.navigated.emit(null)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P.VBU({type:t,selectors:[["cue-block-documents-by-content-category"]],inputs:{data:[1,"data"],config:[1,"config"]},outputs:{navigated:"navigated"},decls:1,vars:4,consts:[[1,"chart",3,"clickedCanvas","clickedCategory","data","doughnut","hoverType","groupSmallFractions"]],template:function(n,i){1&n&&(P.j41(0,"cue-pie-chart",0),P.bIt("clickedCanvas",function(){return i.handleCanvasClick()})("clickedCategory",function(o){return i.handleContentCategoryClick(o)}),P.k0s()),2&n&&P.Y8G("data",i.chartData())("doughnut",!1)("hoverType","nameValue")("groupSmallFractions",i.groupSmallFractions())},dependencies:[rS],encapsulation:2,changeDetection:0})}return t})();var mv=Y(4820);const yo="unknown";let N2=(()=>{class t{data=ce.hFB.required();config=ce.hFB.required();handlers=(0,j.EW)(()=>this.config().handlers);navigated=(0,ce.CGW)();documentInfoReady=(0,ce.CGW)();documentInfo=(0,j.EW)(()=>{const r=this.data().documents;return Object.entries(r).map(([n,i])=>{const a=n.toLowerCase();return{id:n,name:n,value:i.count,info:qe.V[a]}})});categorySuffixMap=(0,j.EW)(()=>{const r={};return this.documentInfo().forEach(n=>{const i=n.info?.type;void 0===i||i===mv.p.UNKNOWN?(Object.keys(r).includes(yo)||(r[yo]=[]),r[yo].push(n.name)):(Object.keys(r).includes(i)||(r[i]=[]),r[i].push(n.name))}),r});groupSmallFractions=(0,j.EW)(()=>({enabled:!0,threshold:.05,groupName:"other"}));onDocumentInfo=(0,B.QZP)(()=>{this.documentInfoReady.emit(this.documentInfo())});byCategory=(0,j.EW)(()=>{const r={};let n=0;return this.documentInfo().forEach(i=>{const a=i.info?.type;void 0===a||a===mv.p.UNKNOWN?n+=i.value??0:(Object.keys(r).includes(a)||(r[a]=0),r[a]+=i.value??0)}),n>0&&(r[yo]=n),Object.keys(r).map(i=>({name:i,value:r[i],id:i}))});docChartData=(0,j.EW)(()=>{const r=this.selectedMimeCategories();if(!r.length)return this.byCategory();const n=[];if(r.includes(yo)){const i=this.documentInfo().filter(a=>void 0===a.info||a.info.type===mv.p.UNKNOWN);n.push(...i)}return this.documentInfo().forEach(i=>{r.includes(i.info?.type??"")&&n.push(i)}),n});selectedMimeCategories=(0,B.vPA)([]);selectedSuffixes=(0,B.vPA)([]);handleDataClick(r){var n=this;return(0,Ee.A)(function*(){const i=r.name,a=n.selectedMimeCategories();if(!i?.startsWith(".")&&!a.length){n.selectedMimeCategories.set([i??""]);const d=n.categorySuffixMap()[i??""];return void n.navigated.emit({filterBy:"suffix",values:d,label:i??""})}const s=d=>{const m=[];return m.push(d.name??""),Array.isArray(d.children)&&d.children.forEach(p=>{m.push(...s(p))}),m},l=s(r),u=n.handlers()?.docListFilterRequest;if(void 0===u)return;let f;const c=l.some(d=>d.startsWith("."));if(console.log("[DocumentsBySuffix] handleDataClick",c,l),c)f=yield u("suffix",l),n.navigated.emit({filterBy:"suffix",values:l,label:i??""});else{const d=n.categorySuffixMap()[l[0]];f=yield u("suffix",d),n.navigated.emit({filterBy:"suffix",values:d,label:l[0]})}if(!f)return;const v=n.handlers()?.subsequentBlockRequest;void 0!==v?v({id:"document-list",data:f,config:n.config(),focusOnAdd:!0},i,!0):console.error("subsequentBlockRequest is undefined!")})()}handleCanvasClick(){this.selectedMimeCategories.update(()=>[]),this.selectedSuffixes.update(()=>[]),this.navigated.emit(null)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P.VBU({type:t,selectors:[["cue-block-documents-by-suffix"]],inputs:{data:[1,"data"],config:[1,"config"]},outputs:{navigated:"navigated",documentInfoReady:"documentInfoReady"},decls:1,vars:5,consts:[[1,"chart",3,"clickedCategory","clickedCanvas","data","doughnut","hoverType","groupSmallFractions","labelThresholdPct"]],template:function(n,i){1&n&&(P.j41(0,"cue-pie-chart",0),P.bIt("clickedCategory",function(o){return i.handleDataClick(o)})("clickedCanvas",function(){return i.handleCanvasClick()}),P.k0s()),2&n&&P.Y8G("data",i.docChartData())("doughnut",!0)("hoverType","nameValue")("groupSmallFractions",i.groupSmallFractions())("labelThresholdPct",1)},dependencies:[rS],encapsulation:2,changeDetection:0})}return t})();var aS=Y(1493),H2=Y(9352);const G2=t=>({percent:t}),V2=t=>({count:t});function W2(t,e){if(1&t){const r=P.RV6();P.j41(0,"cue-block-documents-by-suffix",11),P.bIt("navigated",function(i){B.eBV(r);const a=P.XpG();return B.Njj(a.handleNavigated(i))}),P.k0s()}if(2&t){P.XpG();const r=P.r8f(2),n=P.r8f(4);P.Y8G("data",r)("config",n)}}function q2(t,e){if(1&t){const r=P.RV6();P.j41(0,"cue-block-documents-by-content-category",11),P.bIt("navigated",function(i){B.eBV(r);const a=P.XpG();return B.Njj(a.handleNavigated(i))}),P.k0s()}if(2&t){P.XpG();const r=P.r8f(3),n=P.r8f(4);P.Y8G("data",r)("config",n)}}function U2(t,e){if(1&t&&(P.nrm(0,"cue-typography",7),P.nI1(1,"transloco")),2&t){const r=P.XpG();P.Y8G("innerHTML",P.i5U(1,1,"components.contentBlocks.projectDocuments.pctOpenFormats",P.eq3(4,G2,r.openFormatPct())),P.npT)}}function Y2(t,e){if(1&t){const r=P.RV6();P.j41(0,"cue-typography",12),P.nI1(1,"transloco"),P.bIt("click",function(){B.eBV(r);const i=P.XpG();return B.Njj(i.getDuplicates())}),P.k0s()}2&t&&P.Y8G("innerHTML",P.i5U(1,1,1===e?"components.contentBlocks.projectDocuments.duplicateFilesSingular":"components.contentBlocks.projectDocuments.duplicateFilesPlural",P.eq3(4,V2,e)),P.npT)}function X2(t,e){if(1&t&&(P.j41(0,"cue-typography",10),P.EFF(1),P.k0s()),2&t){const r=P.XpG();P.R7$(),P.SpI("\u2696\ufe0f ",r.humanSize()," ")}}function j2(t,e){if(1&t&&(P.j41(0,"cue-typography",10),P.EFF(1),P.k0s()),2&t){const r=P.XpG();P.R7$(),P.E5c("",r.filterKey(),": ",r.humanSizeFiltered()," (",r.countFiltered(),")")}}let Z2=(()=>{class t{data=(0,ce.hFB)(void 0);_data=(0,B.vPA)(void 0);constructor(){let r=null;(0,B.QZP)(()=>{const n=this.data();null!==r&&clearTimeout(r),(0,j.O8)(()=>this._data.set(n)),r=setTimeout(()=>{r=null,(0,j.O8)(()=>this._data.set(this.data()))},100)})}config=ce.hFB.required();handlers=(0,j.EW)(()=>this.config().handlers);filterKey=(0,B.vPA)("");bySuffix=(0,j.EW)(()=>{const r=this._data();if(r?.documentsBySuffix&&0!==Object.keys(r.documentsBySuffix).length)return{documents:r.documentsBySuffix}});byContentCategory=(0,j.EW)(()=>{const r=this._data();if(r?.documentsByContentCategory&&0!==Object.keys(r.documentsByContentCategory).length)return{documents:r.documentsByContentCategory}});duplicateCount=(0,j.EW)(()=>this._data()?.duplicateCount??0);size=(0,j.EW)(()=>{const r=this._data();if(!r)return 0;const n=Object.values(r.documentsBySuffix||{}).reduce((a,o)=>a+(o?.size||0),0),i=Object.values(r.documentsByContentCategory||{}).reduce((a,o)=>a+(o?.size||0),0);return Math.max(n,i)});documentCount=(0,j.EW)(()=>{const r=this._data();if(!r)return 0;const n=Object.values(r.documentsBySuffix||{}).reduce((a,o)=>a+(o?.count||0),0),i=Object.values(r.documentsByContentCategory||{}).reduce((a,o)=>a+(o?.count||0),0);return Math.max(n,i)});sizeFiltered=(0,B.vPA)(0);countFiltered=(0,B.vPA)(0);humanSize=(0,j.EW)(()=>(0,aS.b)(this.size()));humanSizeFiltered=(0,j.EW)(()=>(0,aS.b)(this.sizeFiltered()));openFormatPct=(0,j.EW)(()=>{const r=this._data();if(!r?.documentsBySuffix)return 0;let n=0,i=0;for(const[o,s]of Object.entries(r.documentsBySuffix)){if(!s)continue;const l=Number(s.count||0);n+=l;const u=o.toLowerCase().trim(),f=u.startsWith(".")?u:`.${u}`;qe.V[f]?.open&&(i+=l)}return n>0?Math.round(i/n*100):null});configWithFilterResolver=(0,j.EW)(()=>{var r=this;const n=this.config();return{...n,handlers:{...n.handlers,docListFilterRequest:(i=(0,Ee.A)(function*(a,o){if(console.log("[ProjectDocuments] docListFilterRequest",a,o),!o||0===o.length)return;const s="contentCat"===a?(t=>{const e=t.split("#").pop()??t,r={AgreementDocument:"Agreement",ArchitecturalDesignDocument:"Architectural Design",AsBuiltDocument:"As-Built",BudgetEstimateDocument:"Budget Estimate",CertificationDocument:"Certification",ComplianceDocument:"Compliance",CorrespondenceDocument:"Correspondence",ConstructionContract:"Construction Contract",ConstructionProcessDocument:"Construction Process",ContractCondition:"Contract Condition",ContractRole:"Contract Role",ContractualDocument:"Contract",CostControlDocument:"Cost Control",DesignDocument:"Design Document",EmailAddress:"Email Address",EngineeringDesignDocument:"Engineering Design",FinancialAdministrativeDocument:"Financial/Administrative",FunctionalRequirementsDocument:"Functional Requirements",InspectionDocument:"Inspection",InsuranceBondDocument:"Insurance/Bond",InteriorDesignDocument:"Interior Design",MarketingCloseoutDocument:"Marketing Closeout",MiscDocument:"Miscellaneous",OperationManual:"Operation Manual",OperationsMaintenanceDocument:"Operations & Maintenance",OperationsManualDocument:"Operations Manual",OtherDocument:"Other",OtherContent:"Other Content",ProgressStatusReport:"Progress Status Report",QualityAssuranceDocument:"Quality Assurance",QualityControlDocument:"Quality Control",RegulatoryComplianceDocument:"Regulatory Compliance",SafetyDocument:"Safety",ScheduleDocument:"Schedule",SiteAssessmentDocument:"Site Assessment",TechnicalRequirementsDocument:"Technical Requirements",TechnicalSpecificationDocument:"Technical Specification",TenderingDocument:"Tendering Document",TermsAndConditionsDocument:"Terms & Conditions"};return void 0===r[e]&&console.log(`No pretty label for category: ${e}`),r[e]??e})(o[0]):o[0];if(r.filterKey.set(s),"suffix"===a){const c=r._data()?.documentsBySuffix;if(c){const v=o.reduce((d,m)=>d+(c[m.toLowerCase()]?.size||0),0),h=o.reduce((d,m)=>d+(c[m.toLowerCase()]?.count||0),0);r.sizeFiltered.set(v),r.countFiltered.set(h)}}else if("contentCat"===a){const c=r._data()?.documentsByContentCategory;if(c){const v=o.reduce((d,m)=>d+(c[m]?.size||0),0),h=o.reduce((d,m)=>d+(c[m]?.count||0),0);r.sizeFiltered.set(v),r.countFiltered.set(h)}}const l=n.handlers?.requestDocumentsByFilter;if(!l)return void console.warn("No requestDocumentsByFilter handler defined");const f=yield l([{type:"suffix"===a?"suffix":"content",included:o,excluded:[]}]);return{ids:f.map(c=>({id:c})),totalCount:f.length}}),function(o,s){return i.apply(this,arguments)})}};var i});handleNavigated(r){if(!r)return this.sizeFiltered.set(0),this.countFiltered.set(0),void this.filterKey.set("");this.filterKey.set(r.label);const n=this._data();if(!n)return;let i=0,a=0;if("suffix"===r.filterBy){const o=n.documentsBySuffix;r.values.forEach(s=>{const l=s.toLowerCase();i+=o[l]?.size||0,a+=o[l]?.count||0})}else if("contentCat"===r.filterBy){const o=n.documentsByContentCategory;r.values.forEach(s=>{i+=o[s]?.size||0,a+=o[s]?.count||0})}this.sizeFiltered.set(i),this.countFiltered.set(a)}handleCanvasClick(){this.sizeFiltered.set(0),this.countFiltered.set(0)}getDuplicates(){var r=this;return(0,Ee.A)(function*(){const n=r.handlers()?.subsequentBlockRequest;if(void 0===n)return void console.warn("No handler for subsequent block request");const i=r.handlers()?.documentDuplicatesRequest;if(!i)return void console.warn("No documentDuplicatesRequest handler defined");const a=yield i();n({id:"document-duplicates",config:r.config(),data:a,focusOnAdd:!0},"Duplicates",!0)})()}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P.VBU({type:t,selectors:[["cue-block-project-documents"]],inputs:{data:[1,"data"],config:[1,"config"]},decls:19,vars:13,consts:[["direction","column"],[1,"container",3,"click"],["id","chart-1",1,"chart"],[3,"data","config"],["id","chart-2",1,"chart"],["direction","column","align","center",1,"stats"],[1,"stat-line"],["size","l",3,"innerHTML"],["size","l",1,"clickable",3,"innerHTML"],["direction","column","align","center",1,"sizes"],["size","l"],[3,"navigated","data","config"],["size","l",1,"clickable",3,"click","innerHTML"]],template:function(n,i){if(1&n&&(P.j41(0,"cue-flexcontainer",0)(1,"div",1),P.bIt("click",function(){return i.handleCanvasClick()}),P.SS7(2)(3)(4),P.j41(5,"div",2),P.nVh(6,W2,1,2,"cue-block-documents-by-suffix",3),P.k0s(),P.j41(7,"div",4),P.nVh(8,q2,1,2,"cue-block-documents-by-content-category",3),P.k0s(),P.j41(9,"cue-flexcontainer",5)(10,"div",6),P.nVh(11,U2,2,6,"cue-typography",7),P.k0s(),P.j41(12,"div",6),P.nVh(13,Y2,2,6,"cue-typography",8),P.k0s()(),P.j41(14,"cue-flexcontainer",9)(15,"div",6),P.nVh(16,X2,2,1,"cue-typography",10),P.k0s(),P.j41(17,"div",6),P.nVh(18,j2,2,3,"cue-typography",10),P.k0s()()()()),2&n){let a;P.R7$(2);const o=P.bH3(i.bySuffix());P.R7$();const s=P.bH3(i.byContentCategory());P.R7$(),P.bH3(i.configWithFilterResolver()),P.R7$(),P.xc7("opacity",o?1:0),P.R7$(),P.vxM(o?6:-1),P.R7$(),P.xc7("opacity",s?1:0),P.R7$(),P.vxM(s?8:-1),P.R7$(3),P.vxM(null!==i.openFormatPct()?11:-1),P.R7$(2),P.vxM((a=i.duplicateCount())?13:-1,a),P.R7$(3),P.vxM(i.size()>0?16:-1),P.R7$(2),P.vxM(i.sizeFiltered()>0?18:-1)}},dependencies:[eS.Typography,tS.n,B2,N2,H2.Kj],styles:[".container[_ngcontent-%COMP%]{height:700px;width:100%;position:relative;overflow:hidden}.chart[_ngcontent-%COMP%]{position:absolute;width:470px;height:350px;transition:opacity .5s ease-in-out}#chart-1[_ngcontent-%COMP%]{top:20px;left:0}#chart-2[_ngcontent-%COMP%]{bottom:50px;right:0}.stats[_ngcontent-%COMP%]{position:absolute;right:230px;top:180px;transform:translate(50%);min-height:80px;justify-content:center}.sizes[_ngcontent-%COMP%]{position:absolute;left:230px;bottom:180px;transform:translate(-50%);min-height:80px;justify-content:center}.stat-line[_ngcontent-%COMP%]{height:32px;display:flex;align-items:center;justify-content:center}.clickable[_ngcontent-%COMP%]:hover{cursor:pointer;transform:scale(1.05)}"],changeDetection:0})}return t})()},1493(ql,bn,Y){function wr(Gt,Ur=!1,Yr=1){const Dr=Ur?1e3:1024;if(Math.abs(Gt)<Dr)return Gt+" B";const Mr=Ur?["kB","MB","GB","TB","PB","EB","ZB","YB"]:["KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"];let Xr=-1;const xn=10**Yr;do{Gt/=Dr,++Xr}while(Math.round(Math.abs(Gt)*xn)/xn>=Dr&&Xr<Mr.length-1);return Gt.toFixed(Yr)+" "+Mr[Xr]}Y.d(bn,{b:()=>wr})},7573(ql,bn,Y){Y.d(bn,{E:()=>wr});const wr={qcy:"https://dev.qaecy.com/ont#","qcy-e":"https://dev.qaecy.com/enum#","qcy-f":"https://dev.qaecy.com/functions#",obc:"https://w3id.org/obc#",dicc:"https://w3id.org/digitalconstruction/0.5/Contexts#",dicv:"https://w3id.org/digitalconstruction/0.5/Variables#",dice:"https://w3id.org/digitalconstruction/0.5/Entities#",dicp:"https://w3id.org/digitalconstruction/0.5/Processes#",dica:"https://w3id.org/digitalconstruction/0.5/Agents#",dici:"https://w3id.org/digitalconstruction/0.5/Information#",dicbm:"https://w3id.org/digitalconstruction/0.5/Materials#",dicob:"https://w3id.org/digitalconstruction/0.5/Occupancy#",dicl:"https://w3id.org/digitalconstruction/0.5/Lifecycle#",dices:"https://w3id.org/digitalconstruction/0.5/Energy#",dicu:"https://w3id.org/digitalconstruction/0.5/Units#",diclvl:"https://w3id.org/digitalconstruction/0.5/Levels#",dicstg:"https://w3id.org/digitalconstruction/0.5/Stages#"}}}]);