@perses-dev/trace-table-plugin 0.8.2 → 0.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (84) hide show
  1. package/__mf/css/async/442.d3010b86.css +1 -0
  2. package/__mf/css/async/61.d3010b86.css +1 -0
  3. package/__mf/css/async/823.d3010b86.css +1 -0
  4. package/__mf/js/TraceTable.e7502696.js +6 -0
  5. package/__mf/js/async/{964.1165a855.js → 121.c61bbf00.js} +2 -2
  6. package/__mf/js/async/{488.1ae7b913.js → 177.72614532.js} +1 -1
  7. package/__mf/js/async/192.50983042.js +1 -0
  8. package/__mf/js/async/195.caa80edf.js +7 -0
  9. package/__mf/js/async/2.c67f1fea.js +1 -0
  10. package/__mf/js/async/235.d017b2f3.js +1 -0
  11. package/__mf/js/async/252.7de4457b.js +22 -0
  12. package/__mf/js/async/274.23857c48.js +2 -0
  13. package/__mf/js/async/289.c722d41d.js +147 -0
  14. package/__mf/js/async/356.1520b4b9.js +1 -0
  15. package/__mf/js/async/392.ba8c2c55.js +2 -0
  16. package/__mf/js/async/43.15aacd55.js +2 -0
  17. package/__mf/js/async/470.59b55de8.js +2 -0
  18. package/__mf/js/async/48.0daa445f.js +2 -0
  19. package/__mf/js/async/54.ec6d9b92.js +1 -0
  20. package/__mf/js/async/549.fb982abf.js +2 -0
  21. package/__mf/js/async/{214.0bac5b59.js → 587.6b047404.js} +1 -1
  22. package/__mf/js/async/588.81784db9.js +1 -0
  23. package/__mf/js/async/616.07b86461.js +1 -0
  24. package/__mf/js/async/670.41f6b1c0.js +80 -0
  25. package/__mf/js/async/670.41f6b1c0.js.LICENSE.txt +9 -0
  26. package/__mf/js/async/71.c2e1eaf6.js +1 -0
  27. package/__mf/js/async/873.d4f6eb80.js +1 -0
  28. package/__mf/js/async/941.4fe94885.js +2 -0
  29. package/__mf/js/async/{738.4eaf0328.js → 968.0959d664.js} +1 -1
  30. package/__mf/js/async/978.230c12cb.js +1 -0
  31. package/__mf/js/async/__federation_expose_TraceTable.9ca82930.js +1 -0
  32. package/__mf/js/async/lib-router.d2b2e61c.js +2 -0
  33. package/__mf/js/main.c2261f18.js +6 -0
  34. package/lib/DataTable.js +1 -1
  35. package/lib/DataTable.js.map +1 -1
  36. package/lib/bootstrap.js +1 -1
  37. package/lib/bootstrap.js.map +1 -1
  38. package/lib/cjs/index-federation.js +12 -12
  39. package/lib/cjs/test/mock-trace-data.js +5 -5
  40. package/lib/cjs/utils/palette.js +3 -3
  41. package/mf-manifest.json +34 -35
  42. package/mf-stats.json +34 -35
  43. package/package.json +5 -5
  44. package/__mf/css/async/263.3d4493d2.css +0 -1
  45. package/__mf/css/async/341.3d4493d2.css +0 -1
  46. package/__mf/css/async/759.3d4493d2.css +0 -1
  47. package/__mf/js/TraceTable.8a611d50.js +0 -5
  48. package/__mf/js/async/109.92d5db6e.js +0 -22
  49. package/__mf/js/async/173.085e8c1f.js +0 -2
  50. package/__mf/js/async/175.ba9a4640.js +0 -147
  51. package/__mf/js/async/224.51c57ceb.js +0 -1
  52. package/__mf/js/async/235.be067e8a.js +0 -28
  53. package/__mf/js/async/238.ccd6c3b2.js +0 -1
  54. package/__mf/js/async/292.d26d57c4.js +0 -1
  55. package/__mf/js/async/409.d01a441f.js +0 -1
  56. package/__mf/js/async/445.8804dd58.js +0 -7
  57. package/__mf/js/async/62.724a7239.js +0 -1
  58. package/__mf/js/async/651.996aef16.js +0 -1
  59. package/__mf/js/async/69.0b1487b7.js +0 -2
  60. package/__mf/js/async/694.5d60f324.js +0 -1
  61. package/__mf/js/async/740.3195ce93.js +0 -1
  62. package/__mf/js/async/75.8f589ac7.js +0 -1
  63. package/__mf/js/async/770.06030c80.js +0 -1
  64. package/__mf/js/async/812.f87960e5.js +0 -53
  65. package/__mf/js/async/83.16406283.js +0 -1
  66. package/__mf/js/async/863.17535c71.js +0 -2
  67. package/__mf/js/async/960.3373bed4.js +0 -2
  68. package/__mf/js/async/974.4058b9ce.js +0 -2
  69. package/__mf/js/async/981.92685962.js +0 -2
  70. package/__mf/js/async/__federation_expose_TraceTable.09ba5ecf.js +0 -1
  71. package/__mf/js/async/lib-router.5b98a3da.js +0 -2
  72. package/__mf/js/main.4ee94209.js +0 -5
  73. /package/__mf/js/async/{964.1165a855.js.LICENSE.txt → 121.c61bbf00.js.LICENSE.txt} +0 -0
  74. /package/__mf/js/async/{445.8804dd58.js.LICENSE.txt → 195.caa80edf.js.LICENSE.txt} +0 -0
  75. /package/__mf/js/async/{109.92d5db6e.js.LICENSE.txt → 252.7de4457b.js.LICENSE.txt} +0 -0
  76. /package/__mf/js/async/{960.3373bed4.js.LICENSE.txt → 274.23857c48.js.LICENSE.txt} +0 -0
  77. /package/__mf/js/async/{175.ba9a4640.js.LICENSE.txt → 289.c722d41d.js.LICENSE.txt} +0 -0
  78. /package/__mf/js/async/{981.92685962.js.LICENSE.txt → 392.ba8c2c55.js.LICENSE.txt} +0 -0
  79. /package/__mf/js/async/{69.0b1487b7.js.LICENSE.txt → 43.15aacd55.js.LICENSE.txt} +0 -0
  80. /package/__mf/js/async/{173.085e8c1f.js.LICENSE.txt → 470.59b55de8.js.LICENSE.txt} +0 -0
  81. /package/__mf/js/async/{974.4058b9ce.js.LICENSE.txt → 48.0daa445f.js.LICENSE.txt} +0 -0
  82. /package/__mf/js/async/{812.f87960e5.js.LICENSE.txt → 549.fb982abf.js.LICENSE.txt} +0 -0
  83. /package/__mf/js/async/{863.17535c71.js.LICENSE.txt → 941.4fe94885.js.LICENSE.txt} +0 -0
  84. /package/__mf/js/async/{lib-router.5b98a3da.js.LICENSE.txt → lib-router.d2b2e61c.js.LICENSE.txt} +0 -0
@@ -0,0 +1 @@
1
+ "use strict";(self.chunk_TraceTable=self.chunk_TraceTable||[]).push([["873"],{83824:function(e,t,n){n.r(t),n.d(t,{List:()=>m.A,helper:()=>a,ChartView:()=>v.A,getMap:()=>p.ZB,registerUpdateLifecycle:()=>p.xV,registerProcessor:()=>p.qg,parseGeoJson:()=>ei,Axis:()=>eD.A,registerVisual:()=>p.AF,throttle:()=>w.nF,dispose:()=>p.AS,color:()=>S,extendChartView:()=>eE,registerPostUpdate:()=>p.tb,dependencies:()=>p.El,disConnect:()=>p.zm,getInstanceByDom:()=>p.FP,getCoordinateSystemDimensions:()=>p.Bo,PRIORITY:()=>p.FQ,registerTheme:()=>p.bf,registerPostInit:()=>p.cf,setPlatformAPI:()=>F.Gs,ComponentModel:()=>g.A,registerLoading:()=>p.Ej,setCanvasCreator:()=>p.vV,parseGeoJSON:()=>ei,registerTransform:()=>p.iY,registerAction:()=>p.OH,dataTool:()=>p.p5,innerDrawElementOnCanvas:()=>eP.Xi,extendSeriesModel:()=>eR,vector:()=>b,registerLayout:()=>p.Oh,use:()=>h.Y,Model:()=>T.A,extendComponentView:()=>ek,getInstanceById:()=>p.aQ,graphic:()=>u,zrUtil:()=>A,env:()=>eL.A,extendComponentModel:()=>eN,registerMap:()=>p.mz,init:()=>p.Ts,time:()=>l,SeriesModel:()=>y.A,registerCoordinateSystem:()=>p.pX,zrender:()=>x,matrix:()=>_,util:()=>c,registerLocale:()=>p.E,registerPreprocessor:()=>p.lP,disconnect:()=>p.Zf,format:()=>d,ComponentView:()=>f.A,connect:()=>p.Ng,number:()=>s,version:()=>p.rE});var i,r,o,a={};n.r(a),n.d(a,{createDimensions:()=>k.M,createList:()=>V,createScale:()=>O,createSymbol:()=>R.v5,createTextStyle:()=>B,dataStack:()=>z,enableHoverEmphasis:()=>E.iJ,getECData:()=>P.z,getLayoutRect:()=>L.dV,mixinAxisModelCommonMethods:()=>G});var s={};n.r(s),n.d(s,{MAX_SAFE_INTEGER:()=>er.Is,asc:()=>er.Y6,getPercentWithPrecision:()=>er.wp,getPixelPrecision:()=>er.hb,getPrecision:()=>er.XV,getPrecisionSafe:()=>er.y6,isNumeric:()=>er.kf,isRadianAroundZero:()=>er.dh,linearMap:()=>er.Cb,nice:()=>er.Cm,numericToNumber:()=>er.Sm,parseDate:()=>er._U,quantile:()=>er.YV,quantity:()=>er.au,quantityExponent:()=>er.NX,reformIntervals:()=>er.sL,remRadian:()=>er._7,round:()=>er.LI});var l={};n.r(l),n.d(l,{format:()=>eo.GP,parse:()=>er._U});var u={};n.r(u),n.d(u,{Arc:()=>e_.A,BezierCurve:()=>ex.A,BoundingRect:()=>Y.A,Circle:()=>ec.A,CompoundPath:()=>eA.A,Ellipse:()=>eh.A,Group:()=>el.A,Image:()=>eu.Ay,IncrementalDisplayable:()=>eb.A,Line:()=>em.A,LinearGradient:()=>eS.A,Polygon:()=>ef.A,Polyline:()=>ey.A,RadialGradient:()=>ew.A,Rect:()=>ev.A,Ring:()=>eg.A,Sector:()=>ep.A,Text:()=>ed.Ay,clipPointsByRect:()=>ea.clipPointsByRect,clipRectByRect:()=>ea.clipRectByRect,createIcon:()=>ea.createIcon,extendPath:()=>ea.extendPath,extendShape:()=>ea.extendShape,getShapeClass:()=>ea.getShapeClass,getTransform:()=>ea.getTransform,initProps:()=>es.LW,makeImage:()=>ea.makeImage,makePath:()=>ea.makePath,mergePath:()=>ea.mergePath,registerShape:()=>ea.registerShape,resizePath:()=>ea.resizePath,updateProps:()=>es.oi});var d={};n.r(d),n.d(d,{addCommas:()=>eM.ob,capitalFirst:()=>eM.x5,encodeHTML:()=>eI.Me,formatTime:()=>eM.fU,formatTpl:()=>eM.YK,getTextRect:()=>eT,getTooltipMarker:()=>eM.qg,normalizeCssArray:()=>eM.QX,toCamelCase:()=>eM.Cb,truncateText:()=>eC.EJ});var c={};n.r(c),n.d(c,{bind:()=>A.bind,clone:()=>A.clone,curry:()=>A.curry,defaults:()=>A.defaults,each:()=>A.each,extend:()=>A.extend,filter:()=>A.filter,indexOf:()=>A.indexOf,inherits:()=>A.inherits,isArray:()=>A.isArray,isFunction:()=>A.isFunction,isObject:()=>A.isObject,isString:()=>A.isString,map:()=>A.map,merge:()=>A.merge,reduce:()=>A.reduce});var h=n(74653),p=n(31950),g=n(36805),f=n(43583),y=n(55785),v=n(31440),m=n(15764),x=n(66726),_=n(37817),b=n(28535),A=n(4884),S=n(34196),w=n(89425),M=n(43059),I=n(93530),C=n(54648),T=n(25744),L=n(10675),D=n(41402),P=n(35032),N=n(73394),k=n(85337),R=n(60253),E=n(72059);function V(e){return(0,M.A)(null,e)}var z={isDimensionStacked:D.sJ,enableDataStack:D.iJ,getStackedDimension:D.me};function O(e,t){var n=t;t instanceof T.A||(n=new T.A(t));var i=I.f$(n);return i.setExtent(e[0],e[1]),I.af(i,n),i}function G(e){A.mixin(e,C.L)}function B(e,t){return t=t||{},(0,N.VB)(e,null,null,"normal"!==t.state)}var F=n(46979),W=n(31831),Y=n(51690),H=n(8163);function U(e,t){return 1e-8>Math.abs(e-t)}function X(e,t,n){var i=0,r=e[0];if(!r)return!1;for(var o=1;o<e.length;o++){var a=e[o];i+=(0,H.A)(r[0],r[1],a[0],a[1],t,n),r=a}var s=e[0];return U(r[0],s[0])&&U(r[1],s[1])||(i+=(0,H.A)(r[0],r[1],s[0],s[1],t,n)),0!==i}var j=[];function Z(e,t){for(var n=0;n<e.length;n++)b.applyTransform(e[n],e[n],t)}function q(e,t,n,i){for(var r=0;r<e.length;r++){var o=e[r];i&&(o=i.project(o)),o&&isFinite(o[0])&&isFinite(o[1])&&(b.min(t,t,o),b.max(n,n,o))}}var $=function(){function e(e){this.name=e}return e.prototype.setCenter=function(e){this._center=e},e.prototype.getCenter=function(){var e=this._center;return e||(e=this._center=this.calcCenter()),e},e}(),J=function(e,t){this.type="polygon",this.exterior=e,this.interiors=t},Q=function(e){this.type="linestring",this.points=e},K=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.type="geoJSON",r.geometries=n,r._center=i&&[i[0],i[1]],r}return(0,W.C6)(t,e),t.prototype.calcCenter=function(){for(var e,t=this.geometries,n=0,i=0;i<t.length;i++){var r=t[i],o=r.exterior,a=o&&o.length;a>n&&(e=r,n=a)}if(e)return function(e){for(var t=0,n=0,i=0,r=e.length,o=e[r-1][0],a=e[r-1][1],s=0;s<r;s++){var l=e[s][0],u=e[s][1],d=o*u-l*a;t+=d,n+=(o+l)*d,i+=(a+u)*d,o=l,a=u}return t?[n/t/3,i/t/3,t]:[e[0][0]||0,e[0][1]||0]}(e.exterior);var s=this.getBoundingRect();return[s.x+s.width/2,s.y+s.height/2]},t.prototype.getBoundingRect=function(e){var t=this._rect;if(t&&!e)return t;var n=[1/0,1/0],i=[-1/0,-1/0],r=this.geometries;return(0,A.each)(r,function(t){"polygon"===t.type?q(t.exterior,n,i,e):(0,A.each)(t.points,function(t){q(t,n,i,e)})}),isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])||(n[0]=n[1]=i[0]=i[1]=0),t=new Y.A(n[0],n[1],i[0]-n[0],i[1]-n[1]),e||(this._rect=t),t},t.prototype.contain=function(e){var t=this.getBoundingRect(),n=this.geometries;if(!t.contain(e[0],e[1]))return!1;e:for(var i=0,r=n.length;i<r;i++){var o=n[i];if("polygon"===o.type){var a=o.exterior,s=o.interiors;if(X(a,e[0],e[1])){for(var l=0;l<(s?s.length:0);l++)if(X(s[l],e[0],e[1]))continue e;return!0}}}return!1},t.prototype.transformTo=function(e,t,n,i){var r=this.getBoundingRect(),o=r.width/r.height;n?i||(i=n/o):n=o*i;for(var a=new Y.A(e,t,n,i),s=r.calculateTransform(a),l=this.geometries,u=0;u<l.length;u++){var d=l[u];"polygon"===d.type?(Z(d.exterior,s),(0,A.each)(d.interiors,function(e){Z(e,s)})):(0,A.each)(d.points,function(e){Z(e,s)})}(r=this._rect).copy(a),this._center=[r.x+r.width/2,r.y+r.height/2]},t.prototype.cloneShallow=function(e){null==e&&(e=this.name);var n=new t(e,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},t}($),ee=function(e){function t(t,n){var i=e.call(this,t)||this;return i.type="geoSVG",i._elOnlyForCalculate=n,i}return(0,W.C6)(t,e),t.prototype.calcCenter=function(){for(var e=this._elOnlyForCalculate,t=e.getBoundingRect(),n=[t.x+t.width/2,t.y+t.height/2],i=_.identity(j),r=e;r&&!r.isGeoSVGGraphicRoot;)_.mul(i,r.getLocalTransform(),i),r=r.parent;return _.invert(i,i),b.applyTransform(n,n,i),n},t}($);function et(e,t,n){for(var i=0;i<e.length;i++)e[i]=en(e[i],t[i],n)}function en(e,t,n){for(var i=[],r=t[0],o=t[1],a=0;a<e.length;a+=2){var s=e.charCodeAt(a)-64,l=e.charCodeAt(a+1)-64;l=l>>1^-(1&l),s=(s>>1^-(1&s))+r,l+=o,r=s,o=l,i.push([s/n,l/n])}return i}function ei(e,t){return e=function(e){if(!e.UTF8Encoding)return e;var t=e.UTF8Scale;null==t&&(t=1024);var n=e.features;return A.each(n,function(e){var n=e.geometry,i=n.encodeOffsets,r=n.coordinates;if(i)switch(n.type){case"LineString":n.coordinates=en(r,i,t);break;case"Polygon":case"MultiLineString":et(r,i,t);break;case"MultiPolygon":A.each(r,function(e,n){return et(e,i[n],t)})}}),e.UTF8Encoding=!1,e}(e),A.map(A.filter(e.features,function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0}),function(e){var n=e.properties,i=e.geometry,r=[];switch(i.type){case"Polygon":var o=i.coordinates;r.push(new J(o[0],o.slice(1)));break;case"MultiPolygon":A.each(i.coordinates,function(e){e[0]&&r.push(new J(e[0],e.slice(1)))});break;case"LineString":r.push(new Q([i.coordinates]));break;case"MultiLineString":r.push(new Q(i.coordinates))}var a=new K(n[t||"name"],r,n.cp);return a.properties=n,a})}var er=n(21916),eo=n(29456),ea=n(59033),es=n(68532),el=n(79620),eu=n(64586),ed=n(52384),ec=n(2989),eh=n(19327),ep=n(23917),eg=n(26839),ef=n(97451),ey=n(88297),ev=n(63811),em=n(28887),ex=n(95163),e_=n(76265),eb=n(83081),eA=n(58933),eS=n(87142),ew=n(12152),eM=n(3306),eI=n(26776),eC=n(7988);function eT(e,t,n,i,r,o,a,s){return new ed.Ay({style:{text:e,font:t,align:n,verticalAlign:i,padding:r,rich:o,overflow:a?"truncate":null,lineHeight:s}}).getBoundingRect()}var eL=n(35209),eD=n(71335),eP=n(22489);function eN(e){var t=g.A.extend(e);return g.A.registerClass(t),t}function ek(e){var t=f.A.extend(e);return f.A.registerClass(t),t}function eR(e){var t=y.A.extend(e);return y.A.registerClass(t),t}function eE(e){var t=v.A.extend(e);return v.A.registerClass(t),t}var eV=n(84124),ez=n(5486),eO=n(82883),eG=n(6417),eB=n(50391),eF=["align","verticalAlign","width","height","fontSize"],eW=new ez.Ay,eY=(0,eV.$r)(),eH=(0,eV.$r)();function eU(e,t,n){for(var i=0;i<n.length;i++){var r=n[i];null!=t[r]&&(e[r]=t[r])}}var eX=["x","y","rotation"],ej=function(){function e(){this._labelList=[],this._chartViewList=[]}return e.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},e.prototype._addLabel=function(e,t,n,i,r){var o,a=i.style,s=i.__hostTarget.textConfig||{},l=i.getComputedTransform(),u=i.getBoundingRect().plain();Y.A.applyTransform(u,u,l),l?eW.setLocalTransform(l):(eW.x=eW.y=eW.rotation=eW.originX=eW.originY=0,eW.scaleX=eW.scaleY=1),eW.rotation=(0,eB.n)(eW.rotation);var d=i.__hostTarget;if(d){o=d.getBoundingRect().plain();var c=d.getComputedTransform();Y.A.applyTransform(o,o,c)}var h=o&&d.getTextGuideLine();this._labelList.push({label:i,labelLine:h,seriesModel:n,dataIndex:e,dataType:t,layoutOption:r,computedLayoutOption:null,rect:u,hostRect:o,priority:o?o.width*o.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:h&&h.ignore,x:eW.x,y:eW.y,scaleX:eW.scaleX,scaleY:eW.scaleY,rotation:eW.rotation,style:{x:a.x,y:a.y,align:a.align,verticalAlign:a.verticalAlign,width:a.width,height:a.height,fontSize:a.fontSize},cursor:i.cursor,attachedPos:s.position,attachedRot:s.rotation}})},e.prototype.addLabelsOfSeries=function(e){var t=this;this._chartViewList.push(e);var n=e.__model,i=n.get("labelLayout");((0,A.isFunction)(i)||(0,A.keys)(i).length)&&e.group.traverse(function(e){if(e.ignore)return!0;var r=e.getTextContent(),o=(0,P.z)(e);r&&!r.disableLabelLayout&&t._addLabel(o.dataIndex,o.dataType,n,r,i)})},e.prototype.updateLayoutConfig=function(e){for(var t=e.getWidth(),n=e.getHeight(),i=0;i<this._labelList.length;i++){var r=this._labelList[i],o=r.label,a=o.__hostTarget,s=r.defaultAttr,l=void 0;l=(l=(0,A.isFunction)(r.layoutOption)?r.layoutOption(function(e,t){var n=e.label,i=t&&t.getTextGuideLine();return{dataIndex:e.dataIndex,dataType:e.dataType,seriesIndex:e.seriesModel.seriesIndex,text:e.label.style.text,rect:e.hostRect,labelRect:e.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:function(e){if(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].slice());return t}}(i&&i.shape.points)}}(r,a)):r.layoutOption)||{},r.computedLayoutOption=l;var u=Math.PI/180;a&&a.setTextConfig({local:!1,position:null!=l.x||null!=l.y?null:s.attachedPos,rotation:null!=l.rotate?l.rotate*u:s.attachedRot,offset:[l.dx||0,l.dy||0]});var d=!1;if(null!=l.x?(o.x=(0,er.lo)(l.x,t),o.setStyle("x",0),d=!0):(o.x=s.x,o.setStyle("x",s.style.x)),null!=l.y?(o.y=(0,er.lo)(l.y,n),o.setStyle("y",0),d=!0):(o.y=s.y,o.setStyle("y",s.style.y)),l.labelLinePoints){var c=a.getTextGuideLine();c&&(c.setShape({points:l.labelLinePoints}),d=!1)}eY(o).needsUpdateLabelLine=d,o.rotation=null!=l.rotate?l.rotate*u:s.rotation,o.scaleX=s.scaleX,o.scaleY=s.scaleY;for(var h=0;h<eF.length;h++){var p=eF[h];o.setStyle(p,null!=l[p]?l[p]:s.style[p])}if(l.draggable){if(o.draggable=!0,o.cursor="move",a){var g=r.seriesModel;null!=r.dataIndex&&(g=r.seriesModel.getData(r.dataType).getItemModel(r.dataIndex)),o.on("drag",function(e,t){return function(){(0,eO.lB)(e,t)}}(a,g.getModel("labelLine")))}}else o.off("drag"),o.cursor=s.cursor}},e.prototype.layout=function(e){var t=e.getWidth(),n=e.getHeight(),i=(0,eG.os)(this._labelList),r=(0,A.filter)(i,function(e){return"shiftX"===e.layoutOption.moveOverlap}),o=(0,A.filter)(i,function(e){return"shiftY"===e.layoutOption.moveOverlap});(0,eG.QX)(r,0,t),(0,eG.Xe)(o,0,n);var a=(0,A.filter)(i,function(e){return e.layoutOption.hideOverlap});(0,eG.If)(a)},e.prototype.processLabelsOverall=function(){var e=this;(0,A.each)(this._chartViewList,function(t){var n=t.__model,i=t.ignoreLabelLineUpdate,r=n.isAnimationEnabled();t.group.traverse(function(t){if(t.ignore&&!t.forceLabelAnimation)return!0;var o=!i,a=t.getTextContent();!o&&a&&(o=eY(a).needsUpdateLabelLine),o&&e._updateLabelLine(t,n),r&&e._animateLabels(t,n)})})},e.prototype._updateLabelLine=function(e,t){var n=e.getTextContent(),i=(0,P.z)(e),r=i.dataIndex;if(n&&null!=r){var o=t.getData(i.dataType),a=o.getItemModel(r),s={},l=o.getItemVisual(r,"style");l&&(s.stroke=l[o.getVisual("drawType")]);var u=a.getModel("labelLine");(0,eO.eR)(e,(0,eO.rv)(a),s),(0,eO.lB)(e,u)}},e.prototype._animateLabels=function(e,t){var n=e.getTextContent(),i=e.getTextGuideLine();if(n&&(e.forceLabelAnimation||!n.ignore&&!n.invisible&&!e.disableLabelAnimation&&!(0,es.LR)(e))){var r=eY(n),o=r.oldLayout,a=(0,P.z)(e),s=a.dataIndex,l={x:n.x,y:n.y,rotation:n.rotation},u=t.getData(a.dataType);if(o){n.attr(o);var d=e.prevStates;d&&((0,A.indexOf)(d,"select")>=0&&n.attr(r.oldLayoutSelect),(0,A.indexOf)(d,"emphasis")>=0&&n.attr(r.oldLayoutEmphasis)),(0,es.oi)(n,l,t,s)}else if(n.attr(l),!(0,N.Lu)(n).valueAnimation){var c=(0,A.retrieve2)(n.style.opacity,1);n.style.opacity=0,(0,es.LW)(n,{style:{opacity:c}},t,s)}if(r.oldLayout=l,n.states.select){var h=r.oldLayoutSelect={};eU(h,l,eX),eU(h,n.states.select,eX)}if(n.states.emphasis){var p=r.oldLayoutEmphasis={};eU(p,l,eX),eU(p,n.states.emphasis,eX)}(0,N.xb)(n,s,u,t,t)}if(i&&!i.ignore&&!i.invisible){var r=eH(i),o=r.oldLayout,g={points:i.shape.points};o?(i.attr({shape:o}),(0,es.oi)(i,{shape:g},t)):(i.setShape(g),i.style.strokePercent=0,(0,es.LW)(i,{style:{strokePercent:1}},t)),r.oldLayout=g}},e}(),eZ=(0,eV.$r)();function eq(e){e.registerUpdateLifecycle("series:beforeupdate",function(e,t,n){var i=eZ(t).labelManager;i||(i=eZ(t).labelManager=new ej),i.clearLabels()}),e.registerUpdateLifecycle("series:layoutlabels",function(e,t,n){var i=eZ(t).labelManager;n.updatedSeries.forEach(function(e){i.addLabelsOfSeries(t.getViewOfSeriesModel(e))}),i.updateLayoutConfig(t),i.layout(t),i.processLabelsOverall()})}(0,h.Y)(eq);var e$=n(37573),eJ=n(33553),eQ=n(30070),eK=n(23960),e0=n(27575),e1=Math.sin,e2=Math.cos,e5=Math.PI,e3=2*Math.PI,e6=180/e5,e4=function(){function e(){}return e.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},e.prototype.moveTo=function(e,t){this._add("M",e,t)},e.prototype.lineTo=function(e,t){this._add("L",e,t)},e.prototype.bezierCurveTo=function(e,t,n,i,r,o){this._add("C",e,t,n,i,r,o)},e.prototype.quadraticCurveTo=function(e,t,n,i){this._add("Q",e,t,n,i)},e.prototype.arc=function(e,t,n,i,r,o){this.ellipse(e,t,n,n,0,i,r,o)},e.prototype.ellipse=function(e,t,n,i,r,o,a,s){var l=a-o,u=!s,d=Math.abs(l),c=(0,eJ.Cv)(d-e3)||(u?l>=e3:-l>=e3),h=l>0?l%e3:l%e3+e3,p=!1;p=!!c||!(0,eJ.Cv)(d)&&h>=e5==!!u;var g=e+n*e2(o),f=t+i*e1(o);this._start&&this._add("M",g,f);var y=Math.round(r*e6);if(c){var v=1/this._p,m=(u?1:-1)*(e3-v);this._add("A",n,i,y,1,+u,e+n*e2(o+m),t+i*e1(o+m)),v>.01&&this._add("A",n,i,y,0,+u,g,f)}else{var x=e+n*e2(a),_=t+i*e1(a);this._add("A",n,i,y,+p,+u,x,_)}},e.prototype.rect=function(e,t,n,i){this._add("M",e,t),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},e.prototype.closePath=function(){this._d.length>0&&this._add("Z")},e.prototype._add=function(e,t,n,i,r,o,a,s,l){for(var u=[],d=this._p,c=1;c<arguments.length;c++){var h=arguments[c];if(isNaN(h)){this._invalid=!0;return}u.push(Math.round(h*d)/d)}this._d.push(e+u.join(" ")),this._start="Z"===e},e.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},e.prototype.getStr=function(){return this._str},e}(),e8=n(49020),e7="none",e9=Math.round,te=["lineCap","miterLimit","lineJoin"],tt=(0,A.map)(te,function(e){return"stroke-"+e.toLowerCase()}),tn="http://www.w3.org/2000/svg",ti="http://www.w3.org/1999/xlink",tr="ecmeta_";function to(e){return document.createElementNS(tn,e)}function ta(e,t,n,i,r){return{tag:e,attrs:n||{},children:i,text:r,key:t}}function ts(e,t){var n=(t=t||{}).newline?"\n":"";return function e(t){var i=t.children,r=t.tag,o=t.attrs,a=t.text;return function(e,t){var n=[];if(t)for(var i in t){var r=t[i],o=i;!1!==r&&(!0!==r&&null!=r&&(o+='="'+r+'"'),n.push(o))}return"<"+e+" "+n.join(" ")+">"}(r,o)+("style"!==r?(0,eI.Me)(a):a||"")+(i?""+n+(0,A.map)(i,function(t){return e(t)}).join(n)+n:"")+"</"+r+">"}(e)}function tl(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function tu(e,t,n,i){return ta("svg","root",{width:e,height:t,xmlns:tn,"xmlns:xlink":ti,version:"1.1",baseProfile:"full",viewBox:!!i&&"0 0 "+e+" "+t},n)}var td=n(6945),tc=n(40843),th=n(65978),tp=0,tg={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},tf="transform-origin",ty={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function tv(e,t){var n=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[n]=e,n}function tm(e){return(0,A.isString)(e)?tg[e]?"cubic-bezier("+tg[e]+")":(0,th.w)(e)?e:"":""}function tx(e,t,n,i){var r=e.animators,o=r.length,a=[];if(e instanceof eA.A){var s=function(e,t,n){var i,r,o=e.shape.paths,a={};if((0,A.each)(o,function(e){var t=tl(n.zrId);t.animation=!0,tx(e,{},t,!0);var o=t.cssAnims,s=t.cssNodes,l=(0,A.keys)(o),u=l.length;if(u){var d=o[r=l[u-1]];for(var c in d){var h=d[c];a[c]=a[c]||{d:""},a[c].d+=h.d||""}for(var p in s){var g=s[p].animation;g.indexOf(r)>=0&&(i=g)}}}),i){t.d=!1;var s=tv(a,n);return i.replace(r,s)}}(e,t,n);if(s)a.push(s);else if(!o)return}else if(!o)return;for(var l={},u=0;u<o;u++){var d=r[u],c=[d.getMaxTime()/1e3+"s"],h=tm(d.getClip().easing),p=d.getDelay();h?c.push(h):c.push("linear"),p&&c.push(p/1e3+"s"),d.getLoop()&&c.push("infinite");var g=c.join(" ");l[g]=l[g]||[g,[]],l[g][1].push(d)}for(var f in l){var s=function(r){var o,a,s=r[1],l=s.length,u={},d={},c={},h="animation-timing-function";function p(e,t,n){for(var i=e.getTracks(),r=e.getMaxTime(),o=0;o<i.length;o++){var a=i[o];if(a.needsAnimate()){var s=a.keyframes,l=a.propName;if(n&&(l=n(l)),l)for(var u=0;u<s.length;u++){var d=s[u],c=Math.round(d.time/r*100)+"%",p=tm(d.easing),g=d.rawValue;((0,A.isString)(g)||(0,A.isNumber)(g))&&(t[c]=t[c]||{},t[c][l]=d.rawValue,p&&(t[c][h]=p))}}}}for(var g=0;g<l;g++){var f=s[g],y=f.targetName;y?"shape"===y&&p(f,d):i||p(f,u)}for(var v in u){var m={};(0,ez.IT)(m,e),(0,A.extend)(m,u[v]);var x=(0,eJ.Z1)(m),_=u[v][h];c[v]=x?{transform:x}:{},function(e,t){var n=t.originX,i=t.originY;(n||i)&&(e[tf]=n+"px "+i+"px")}(c[v],m),_&&(c[v][h]=_)}var b=!0;for(var v in d){c[v]=c[v]||{};var S=!o,_=d[v][h];S&&(o=new tc.A);var w=o.len();o.reset(),c[v].d=function(e,t,n){var i=(0,A.extend)({},e.shape);(0,A.extend)(i,t),e.buildPath(n,i);var r=new e4;return r.reset((0,eJ.MD)(e)),n.rebuildPath(r,1),r.generateStr(),r.getStr()}(e,d[v],o);var M=o.len();if(!S&&w!==M){b=!1;break}_&&(c[v][h]=_)}if(!b)for(var v in c)delete c[v].d;if(!i)for(var g=0;g<l;g++){var f=s[g],y=f.targetName;"style"===y&&p(f,c,function(e){return ty[e]})}for(var I=(0,A.keys)(c),C=!0,g=1;g<I.length;g++){var T=I[g-1],L=I[g];if(c[T][tf]!==c[L][tf]){C=!1;break}a=c[T][tf]}if(C&&a){for(var v in c)c[v][tf]&&delete c[v][tf];t[tf]=a}if((0,A.filter)(I,function(e){return(0,A.keys)(c[e]).length>0}).length)return tv(c,n)+" "+r[0]+" both"}(l[f]);s&&a.push(s)}if(a.length){var y=n.zrId+"-cls-"+tp++;n.cssNodes["."+y]={animation:a.join(",")},t.class=y}}function t_(e,t,n,i){var r=JSON.stringify(e),o=n.cssStyleCache[r];o||(o=n.zrId+"-cls-"+tp++,n.cssStyleCache[r]=o,n.cssNodes["."+o+(i?":hover":"")]=e),t.class=t.class?t.class+" "+o:o}var tb=Math.round;function tA(e){return e&&(0,A.isString)(e.src)}function tS(e){return e&&(0,A.isFunction)(e.toDataURL)}function tw(e,t,n,i){!function(e,t,n,i){var r,o,a=null==t.opacity?1:t.opacity;if(n instanceof eu.Ay)return e("opacity",a);if(null!=(r=t.fill)&&r!==e7){var s=(0,eJ.$2)(t.fill);e("fill",s.color);var l=null!=t.fillOpacity?t.fillOpacity*s.opacity*a:s.opacity*a;(i||l<1)&&e("fill-opacity",l)}else e("fill",e7);if(null!=(o=t.stroke)&&o!==e7){var u=(0,eJ.$2)(t.stroke);e("stroke",u.color);var d=t.strokeNoScale?n.getLineScale():1,c=d?(t.lineWidth||0)/d:0,h=null!=t.strokeOpacity?t.strokeOpacity*u.opacity*a:u.opacity*a,p=t.strokeFirst;if((i||1!==c)&&e("stroke-width",c),(i||p)&&e("paint-order",p?"stroke":"fill"),(i||h<1)&&e("stroke-opacity",h),t.lineDash){var g=(0,e8.V)(n),f=g[0],y=g[1];f&&(y=e9(y||0),e("stroke-dasharray",f.join(",")),(y||i)&&e("stroke-dashoffset",y))}else i&&e("stroke-dasharray",e7);for(var v=0;v<te.length;v++){var m=te[v];if(i||t[m]!==eQ.MW[m]){var x=t[m]||eQ.MW[m];x&&e(tt[v],x)}}}else i&&e("stroke",e7)}(function(r,o){var a="fill"===r||"stroke"===r;a&&(0,eJ.bn)(o)?tk(t,e,r,i):a&&(0,eJ.Pt)(o)?tR(n,e,r,i):a&&"none"===o?e[r]="transparent":e[r]=o},t,n,!1),function(e,t,n){var i=e.style;if((0,eJ.dX)(i)){var r=(0,eJ.si)(e),o=n.shadowCache,a=o[r];if(!a){var s=e.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var d=i.shadowOffsetX||0,c=i.shadowOffsetY||0,h=i.shadowBlur,p=(0,eJ.$2)(i.shadowColor),g=p.opacity,f=p.color;a=n.zrId+"-s"+n.shadowIdx++,n.defs[a]=ta("filter",a,{id:a,x:"-100%",y:"-100%",width:"300%",height:"300%"},[ta("feDropShadow","",{dx:d/l,dy:c/u,stdDeviation:h/2/l+" "+h/2/u,"flood-color":f,"flood-opacity":g})]),o[r]=a}t.filter=(0,eJ.Xu)(a)}}(n,e,i)}function tM(e,t){var n=(0,x.getElementSSRData)(t);n&&(n.each(function(t,n){null!=t&&(e[(tr+n).toLowerCase()]=t+"")}),t.isSilent()&&(e[tr+"silent"]="true"))}function tI(e){return(0,eJ.Cv)(e[0]-1)&&(0,eJ.Cv)(e[1])&&(0,eJ.Cv)(e[2])&&(0,eJ.Cv)(e[3]-1)}function tC(e,t,n){if(t&&!((0,eJ.Cv)(t[4])&&(0,eJ.Cv)(t[5])&&tI(t))){var i=n?10:1e4;e.transform=tI(t)?"translate("+tb(t[4]*i)/i+" "+tb(t[5]*i)/i+")":(0,eJ.nV)(t)}}function tT(e,t,n){for(var i=e.points,r=[],o=0;o<i.length;o++)r.push(tb(i[o][0]*n)/n),r.push(tb(i[o][1]*n)/n);t.points=r.join(" ")}function tL(e){return!e.smooth}var tD={circle:[(i=["cx","cy","r"],r=(0,A.map)(i,function(e){return"string"==typeof e?[e,e]:e}),function(e,t,n){for(var i=0;i<r.length;i++){var o=r[i],a=e[o[0]];null!=a&&(t[o[1]]=tb(a*n)/n)}})],polyline:[tT,tL],polygon:[tT,tL]};function tP(e,t){var n=e.style,i=e.shape,r=tD[e.type],o={},a=t.animation,s="path",l=e.style.strokePercent,u=t.compress&&(0,eJ.MD)(e)||4;if(!r||t.willUpdate||r[1]&&!r[1](i)||a&&function(e){for(var t=e.animators,n=0;n<t.length;n++)if("shape"===t[n].targetName)return!0;return!1}(e)||l<1){var d=!e.path||e.shapeChanged();e.path||e.createPathProxy();var c=e.path;d&&(c.beginPath(),e.buildPath(c,e.shape),e.pathUpdated());var h=c.getVersion(),p=e.__svgPathBuilder;e.__svgPathVersion===h&&p&&l===e.__svgPathStrokePercent||(p||(p=e.__svgPathBuilder=new e4),p.reset(u),c.rebuildPath(p,l),p.generateStr(),e.__svgPathVersion=h,e.__svgPathStrokePercent=l),o.d=p.getStr()}else{s=e.type;var g=Math.pow(10,u);r[0](i,o,g)}return tC(o,e.transform),tw(o,n,e,t),tM(o,e),t.animation&&tx(e,o,t),t.emphasis&&function(e,t,n){if(!e.ignore)if(e.isSilent()){var i={"pointer-events":"none"};t_(i,t,n,!0)}else{var r=e.states.emphasis&&e.states.emphasis.style?e.states.emphasis.style:{},o=r.fill;if(!o){var a=e.style&&e.style.fill,s=e.states.select&&e.states.select.style&&e.states.select.style.fill,l=e.currentStates.indexOf("select")>=0&&s||a;l&&(o=(0,S.liftColor)(l))}var u=r.lineWidth;u&&(u/=!r.strokeNoScale&&e.transform?e.transform[0]:1);var i={cursor:"pointer"};o&&(i.fill=o),r.stroke&&(i.stroke=r.stroke),u&&(i["stroke-width"]=u),t_(i,t,n,!0)}}(e,o,t),ta(s,e.id+"",o)}function tN(e,t){return e instanceof eQ.Ay?tP(e,t):e instanceof eu.Ay?function(e,t){var n=e.style,i=n.image;if(i&&!(0,A.isString)(i)&&(tA(i)?i=i.src:tS(i)&&(i=i.toDataURL())),i){var r=n.x||0,o=n.y||0,a={href:i,width:n.width,height:n.height};return r&&(a.x=r),o&&(a.y=o),tC(a,e.transform),tw(a,n,e,t),tM(a,e),t.animation&&tx(e,a,t),ta("image",e.id+"",a)}}(e,t):e instanceof e0.A?function(e,t){var n=e.style,i=n.text;if(null!=i&&(i+=""),!(!i||isNaN(n.x)||isNaN(n.y))){var r=n.font||F.OH,o=n.x||0,a=(0,eJ.sZ)(n.y||0,(0,eK.ks)(r),n.textBaseline),s={"dominant-baseline":"central","text-anchor":eJ.eQ[n.textAlign]||n.textAlign};if((0,ed.XE)(n)){var l="",u=n.fontStyle,d=(0,ed.I5)(n.fontSize);if(!parseFloat(d))return;var c=n.fontFamily||F.zs,h=n.fontWeight;l+="font-size:"+d+";font-family:"+c+";",u&&"normal"!==u&&(l+="font-style:"+u+";"),h&&"normal"!==h&&(l+="font-weight:"+h+";"),s.style=l}else s.style="font: "+r;return i.match(/\s/)&&(s["xml:space"]="preserve"),o&&(s.x=o),a&&(s.y=a),tC(s,e.transform),tw(s,n,e,t),tM(s,e),t.animation&&tx(e,s,t),ta("text",e.id+"",s,void 0,i)}}(e,t):void 0}function tk(e,t,n,i){var r,o=e[n],a={gradientUnits:o.global?"userSpaceOnUse":"objectBoundingBox"};if((0,eJ.OS)(o))r="linearGradient",a.x1=o.x,a.y1=o.y,a.x2=o.x2,a.y2=o.y2;else{if(!(0,eJ.OH)(o))return;r="radialGradient",a.cx=(0,A.retrieve2)(o.x,.5),a.cy=(0,A.retrieve2)(o.y,.5),a.r=(0,A.retrieve2)(o.r,.5)}for(var s=o.colorStops,l=[],u=0,d=s.length;u<d;++u){var c=100*(0,eJ.XP)(s[u].offset)+"%",h=s[u].color,p=(0,eJ.$2)(h),g=p.color,f=p.opacity,y={offset:c};y["stop-color"]=g,f<1&&(y["stop-opacity"]=f),l.push(ta("stop",u+"",y))}var v=ts(ta(r,"",a,l)),m=i.gradientCache,x=m[v];x||(x=i.zrId+"-g"+i.gradientIdx++,m[v]=x,a.id=x,i.defs[x]=ta(r,x,a,l)),t[n]=(0,eJ.Xu)(x)}function tR(e,t,n,i){var r,o,a,s=e.style[n],l=e.getBoundingRect(),u={},d=s.repeat,c="no-repeat"===d,h="repeat-x"===d,p="repeat-y"===d;if((0,eJ.sL)(s)){var g=s.imageWidth,f=s.imageHeight,y=void 0,v=s.image;if((0,A.isString)(v)?y=v:tA(v)?y=v.src:tS(v)&&(y=v.toDataURL()),"undefined"==typeof Image){var m="Image width/height must been given explictly in svg-ssr renderer.";(0,A.assert)(g,m),(0,A.assert)(f,m)}else if(null==g||null==f){var x=function(e,t){if(e){var n=e.elm,i=g||t.width,r=f||t.height;"pattern"===e.tag&&(h?(r=1,i/=l.width):p&&(i=1,r/=l.height)),e.attrs.width=i,e.attrs.height=r,n&&(n.setAttribute("width",i),n.setAttribute("height",r))}},_=(0,td.OD)(y,null,e,function(e){c||x(S,e),x(r,e)});_&&_.width&&_.height&&(g=g||_.width,f=f||_.height)}r=ta("image","img",{href:y,width:g,height:f}),u.width=g,u.height=f}else s.svgElement&&(r=(0,A.clone)(s.svgElement),u.width=s.svgWidth,u.height=s.svgHeight);if(r){c?o=a=1:h?(a=1,o=u.width/l.width):p?(o=1,a=u.height/l.height):u.patternUnits="userSpaceOnUse",null==o||isNaN(o)||(u.width=o),null==a||isNaN(a)||(u.height=a);var b=(0,eJ.Z1)(s);b&&(u.patternTransform=b);var S=ta("pattern","",u,[r]),w=ts(S),M=i.patternCache,I=M[w];I||(I=i.zrId+"-p"+i.patternIdx++,M[w]=I,u.id=I,S=i.defs[I]=ta("pattern",I,u,[r])),t[n]=(0,eJ.Xu)(I)}}function tE(e){return document.createTextNode(e)}function tV(e,t,n){e.insertBefore(t,n)}function tz(e,t){e.removeChild(t)}function tO(e,t){e.appendChild(t)}function tG(e){return e.parentNode}function tB(e){return e.nextSibling}function tF(e,t){e.textContent=t}var tW=ta("","");function tY(e){return void 0===e}function tH(e){return void 0!==e}function tU(e,t){var n=e.key===t.key;return e.tag===t.tag&&n}function tX(e){var t,n=e.children,i=e.tag;if(tH(i)){var r=e.elm=to(i);if(tq(tW,e),(0,A.isArray)(n))for(t=0;t<n.length;++t){var o=n[t];null!=o&&tO(r,tX(o))}else tH(e.text)&&!(0,A.isObject)(e.text)&&tO(r,tE(e.text))}else e.elm=tE(e.text);return e.elm}function tj(e,t,n,i,r){for(;i<=r;++i){var o=n[i];null!=o&&tV(e,tX(o),t)}}function tZ(e,t,n,i){for(;n<=i;++n){var r=t[n];null!=r&&(tH(r.tag)?tz(tG(r.elm),r.elm):tz(e,r.elm))}}function tq(e,t){var n,i=t.elm,r=e&&e.attrs||{},o=t.attrs||{};if(r!==o){for(n in o){var a=o[n];r[n]!==a&&(!0===a?i.setAttribute(n,""):!1===a?i.removeAttribute(n):"style"===n?i.style.cssText=a:120!==n.charCodeAt(0)?i.setAttribute(n,a):"xmlns:xlink"===n||"xmlns"===n?i.setAttributeNS("http://www.w3.org/2000/xmlns/",n,a):58===n.charCodeAt(3)?i.setAttributeNS("http://www.w3.org/XML/1998/namespace",n,a):58===n.charCodeAt(5)?i.setAttributeNS(ti,n,a):i.setAttribute(n,a))}for(n in r)n in o||i.removeAttribute(n)}}var t$=n(47865),tJ=0,tQ=function(){function e(e,t,n){if(this.type="svg",this.refreshHover=tK("refreshHover"),this.configLayer=tK("configLayer"),this.storage=t,this._opts=n=(0,A.extend)({},n),this.root=e,this._id="zr"+tJ++,this._oldVNode=tu(n.width,n.height),e&&!n.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var r=this._svgDom=this._oldVNode.elm=to("svg");tq(null,this._oldVNode),i.appendChild(r),e.appendChild(i)}this.resize(n.width,n.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",function(e,t){if(tU(e,t))!function e(t,n){var i=n.elm=t.elm,r=t.children,o=n.children;t!==n&&(tq(t,n),tY(n.text)?tH(r)&&tH(o)?r!==o&&function(t,n,i){for(var r,o,a,s=0,l=0,u=n.length-1,d=n[0],c=n[u],h=i.length-1,p=i[0],g=i[h];s<=u&&l<=h;)null==d?d=n[++s]:null==c?c=n[--u]:null==p?p=i[++l]:null==g?g=i[--h]:tU(d,p)?(e(d,p),d=n[++s],p=i[++l]):tU(c,g)?(e(c,g),c=n[--u],g=i[--h]):tU(d,g)?(e(d,g),tV(t,d.elm,tB(c.elm)),d=n[++s],g=i[--h]):(tU(c,p)?(e(c,p),tV(t,c.elm,d.elm),c=n[--u]):(tY(r)&&(r=function(e,t,n){for(var i={},r=t;r<=n;++r){var o=e[r].key;void 0!==o&&(i[o]=r)}return i}(n,s,u)),tY(o=r[p.key])||(a=n[o]).tag!==p.tag?tV(t,tX(p),d.elm):(e(a,p),n[o]=void 0,tV(t,a.elm,d.elm))),p=i[++l]);(s<=u||l<=h)&&(s>u?tj(t,null==i[h+1]?null:i[h+1].elm,i,l,h):tZ(t,n,s,u))}(i,r,o):tH(o)?(tH(t.text)&&tF(i,""),tj(i,null,o,0,o.length-1)):tH(r)?tZ(i,r,0,r.length-1):tH(t.text)&&tF(i,""):t.text!==n.text&&(tH(r)&&tZ(i,r,0,r.length-1),tF(i,n.text)))}(e,t);else{var n=e.elm,i=tG(n);tX(t),null!==i&&(tV(i,t.elm,tB(n)),tZ(i,[e],0,0))}}(this._oldVNode,e),this._oldVNode=e}},e.prototype.renderOneToVNode=function(e){return tN(e,tl(this._id))},e.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),n=this._width,i=this._height,r=tl(this._id);r.animation=e.animation,r.willUpdate=e.willUpdate,r.compress=e.compress,r.emphasis=e.emphasis;var o=[],a=this._bgVNode=function(e,t,n,i){var r;if(n&&"none"!==n)if(r=ta("rect","bg",{width:e,height:t,x:"0",y:"0"}),(0,eJ.bn)(n))tk({fill:n},r.attrs,"fill",i);else if((0,eJ.Pt)(n))tR({style:{fill:n},dirty:A.noop,getBoundingRect:function(){return{width:e,height:t}}},r.attrs,"fill",i);else{var o=(0,eJ.$2)(n),a=o.color,s=o.opacity;r.attrs.fill=a,s<1&&(r.attrs["fill-opacity"]=s)}return r}(n,i,this._backgroundColor,r);a&&o.push(a);var s=e.compress?null:this._mainVNode=ta("g","main",{},[]);this._paintList(t,r,s?s.children:o),s&&o.push(s);var l=(0,A.map)((0,A.keys)(r.defs),function(e){return r.defs[e]});if(l.length&&o.push(ta("defs","defs",{},l)),e.animation){var u,d,c,h,p,g,f,y,v=(u=r.cssNodes,d=r.cssAnims,p=" {"+(h=(c={newline:!0}).newline?"\n":""),g=h+"}",f=(0,A.map)((0,A.keys)(u),function(e){return e+p+(0,A.map)((0,A.keys)(u[e]),function(t){return t+":"+u[e][t]+";"}).join(h)+g}).join(h),y=(0,A.map)((0,A.keys)(d),function(e){return"@keyframes "+e+p+(0,A.map)((0,A.keys)(d[e]),function(t){return t+p+(0,A.map)((0,A.keys)(d[e][t]),function(n){var i=d[e][t][n];return"d"===n&&(i='path("'+i+'")'),n+":"+i+";"}).join(h)+g}).join(h)+g}).join(h),f||y?["<![CDATA[",f,y,"]]>"].join(h):"");if(v){var m=ta("style","stl",{},[],v);o.push(m)}}return tu(n,i,o,e.useViewBox)},e.prototype.renderToString=function(e){return e=e||{},ts(this.renderToVNode({animation:(0,A.retrieve2)(e.cssAnimation,!0),emphasis:(0,A.retrieve2)(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:(0,A.retrieve2)(e.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(e,t,n){for(var i,r,o=e.length,a=[],s=0,l=0,u=0;u<o;u++){var d=e[u];if(!d.invisible){var c=d.__clipPaths,h=c&&c.length||0,p=r&&r.length||0,g=void 0;for(g=Math.max(h-1,p-1);g>=0&&(!c||!r||c[g]!==r[g]);g--);for(var f=p-1;f>g;f--)i=a[--s-1];for(var y=g+1;y<h;y++){var v={};!function(e,t,n){var i=n.clipPathCache,r=n.defs,o=i[e.id];if(!o){var a={id:o=n.zrId+"-c"+n.clipPathIdx++};i[e.id]=o,r[o]=ta("clipPath",o,a,[tP(e,n)])}t["clip-path"]=(0,eJ.Xu)(o)}(c[y],v,t);var m=ta("g","clip-g-"+l++,v,[]);(i?i.children:n).push(m),a[s++]=m,i=m}r=c;var x=tN(d,t);x&&(i?i.children:n).push(x)}}},e.prototype.resize=function(e,t){var n=this._opts,i=this.root,r=this._viewport;if(null!=e&&(n.width=e),null!=t&&(n.height=t),i&&r&&(r.style.display="none",e=(0,t$.YC)(i,0,n),t=(0,t$.YC)(i,1,n),r.style.display=""),this._width!==e||this._height!==t){if(this._width=e,this._height=t,r){var o=r.style;o.width=e+"px",o.height=t+"px"}if((0,eJ.Pt)(this._backgroundColor))this.refresh();else{var a=this._svgDom;a&&(a.setAttribute("width",e),a.setAttribute("height",t));var s=this._bgVNode&&this._bgVNode.elm;s&&(s.setAttribute("width",e),s.setAttribute("height",t))}}},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},e.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},e.prototype.toDataURL=function(e){var t=this.renderToString(),n="data:image/svg+xml;";return e?(t=(0,eJ.WG)(t))&&n+"base64,"+t:n+"charset=UTF-8,"+encodeURIComponent(t)},e}();function tK(e){return function(){}}var t0=n(62707),t1=n(31373),t2=n(76545),t5=n(32741);function t3(e){e.eachSeriesByType("radar",function(e){var t=e.getData(),n=[],i=e.coordinateSystem;if(i){var r=i.getIndicatorAxes();A.each(r,function(e,o){t.each(t.mapDimension(r[o].dim),function(e,t){n[t]=n[t]||[];var r,a=i.dataToPoint(e,o);n[t][o]=t6(a)?a:[(r=i).cx,r.cy]})}),t.each(function(e){var r,o=A.find(n[e],function(e){return t6(e)})||[(r=i).cx,r.cy];n[e].push(o.slice()),t.setItemLayout(e,n[e])})}})}function t6(e){return!isNaN(e[0])&&!isNaN(e[1])}var t4=n(31069);function t8(e){var t=e.polar;if(t){A.isArray(t)||(t=[t]);var n=[];A.each(t,function(t,i){t.indicator?(t.type&&!t.shape&&(t.shape=t.type),e.radar=e.radar||[],A.isArray(e.radar)||(e.radar=[e.radar]),e.radar.push(t)):n.push(t)}),e.polar=n}A.each(e.series,function(e){e&&"radar"===e.type&&e.polarIndex&&(e.radarIndex=e.polarIndex)})}var t7=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,W.C6)(t,e),t.prototype.render=function(e,t,n){var i=e.coordinateSystem,r=this.group,o=e.getData(),a=this._data;function s(t,n,i,r,o,a){i.removeAll();for(var s=0;s<n.length-1;s++){var l=function(e,t){var n=e.getItemVisual(t,"symbol")||"circle";if("none"!==n){var i=R.xU(e.getItemVisual(t,"symbolSize")),r=R.v5(n,-1,-1,2,2),o=e.getItemVisual(t,"symbolRotate")||0;return r.attr({style:{strokeNoScale:!0},z2:100,scaleX:i[0]/2,scaleY:i[1]/2,rotation:o*Math.PI/180||0}),r}}(r,o);l&&(l.__dimIdx=s,t[s]?(l.setPosition(t[s]),ea[a?"initProps":"updateProps"](l,{x:n[s][0],y:n[s][1]},e,o)):l.setPosition(n[s]),i.add(l))}}function l(e){return A.map(e,function(e){return[i.cx,i.cy]})}o.diff(a).add(function(t){var n=o.getItemLayout(t);if(n){var i=new ef.A,r=new ey.A,a={shape:{points:n}};i.shape.points=l(n),r.shape.points=l(n),es.LW(i,a,e,t),es.LW(r,a,e,t);var u=new el.A,d=new el.A;u.add(r),u.add(i),u.add(d),s(r.shape.points,n,d,o,t,!0),o.setItemGraphicEl(t,u)}}).update(function(t,n){var i=a.getItemGraphicEl(n),r=i.childAt(0),l=i.childAt(1),u=i.childAt(2),d={shape:{points:o.getItemLayout(t)}};d.shape.points&&(s(r.shape.points,d.shape.points,u,o,t,!1),(0,es.ap)(l),(0,es.ap)(r),es.oi(r,d,e),es.oi(l,d,e),o.setItemGraphicEl(t,i))}).remove(function(e){r.remove(a.getItemGraphicEl(e))}).execute(),o.eachItemGraphicEl(function(e,t){var n=o.getItemModel(t),i=e.childAt(0),a=e.childAt(1),s=e.childAt(2),l=o.getItemVisual(t,"style"),u=l.fill;r.add(e),i.useStyle(A.defaults(n.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:u})),(0,E.Mx)(i,n,"lineStyle"),(0,E.Mx)(a,n,"areaStyle");var d=n.getModel("areaStyle"),c=d.isEmpty()&&d.parentModel.isEmpty();a.ignore=c,A.each(["emphasis","select","blur"],function(e){var t=n.getModel([e,"areaStyle"]),i=t.isEmpty()&&t.parentModel.isEmpty();a.ensureState(e).ignore=i&&c}),a.useStyle(A.defaults(d.getAreaStyle(),{fill:u,opacity:.7,decal:l.decal}));var h=n.getModel("emphasis"),p=h.getModel("itemStyle").getItemStyle();s.eachChild(function(e){if(e instanceof eu.Ay){var i=e.style;e.useStyle(A.extend({image:i.image,x:i.x,y:i.y,width:i.width,height:i.height},l))}else e.useStyle(l),e.setColor(u),e.style.strokeNoScale=!0;e.ensureState("emphasis").style=A.clone(p);var r=o.getStore().get(o.getDimensionIndex(e.__dimIdx),t);(null==r||isNaN(r))&&(r=""),(0,N.qM)(e,(0,N.lx)(n),{labelFetcher:o.hostModel,labelDataIndex:t,labelDimIndex:e.__dimIdx,defaultText:r,inheritColor:u,defaultOpacity:l.opacity})}),(0,E.Lm)(e,h.get("focus"),h.get("blurScope"),h.get("disabled"))}),this._data=o},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type="radar",t}(v.A),t9=n(29605),ne=n(96457),nt=n(56803),nn=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return(0,W.C6)(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new ne.A(A.bind(this.getData,this),A.bind(this.getRawData,this))},t.prototype.getInitialData=function(e,t){return(0,t9.A)(this,{generateCoord:"indicator_",generateCoordCount:1/0})},t.prototype.formatTooltip=function(e,t,n){var i=this.getData(),r=this.coordinateSystem.getIndicatorAxes(),o=this.getData().getName(e),a=""===o?this.name:o,s=(0,nt.aw)(this,e);return(0,nt.Qx)("section",{header:a,sortBlocks:!0,blocks:A.map(r,function(t){var n=i.get(i.mapDimension(t.dim),e);return(0,nt.Qx)("nameValue",{markerType:"subItem",markerColor:s,name:t.name,value:n,sortParam:n})})})},t.prototype.getTooltipPosition=function(e){if(null!=e){for(var t=this.getData(),n=this.coordinateSystem,i=t.getValues(A.map(n.dimensions,function(e){return t.mapDimension(e)}),e),r=0,o=i.length;r<o;r++)if(!isNaN(i[r])){var a=n.getIndicatorAxes();return n.coordToPoint(a[r].dataToCoord(i[r]),r)}}},t.type="series.radar",t.dependencies=["radar"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},t}(y.A),ni=n(2296).A.value;function nr(e,t){return A.defaults({show:t},e)}var no=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,W.C6)(t,e),t.prototype.optionUpdated=function(){var e=this.get("boundaryGap"),t=this.get("splitNumber"),n=this.get("scale"),i=this.get("axisLine"),r=this.get("axisTick"),o=this.get("axisLabel"),a=this.get("axisName"),s=this.get(["axisName","show"]),l=this.get(["axisName","formatter"]),u=this.get("axisNameGap"),d=this.get("triggerEvent"),c=A.map(this.get("indicator")||[],function(c){null!=c.max&&c.max>0&&!c.min?c.min=0:null!=c.min&&c.min<0&&!c.max&&(c.max=0);var h=a;null!=c.color&&(h=A.defaults({color:c.color},a));var p=A.merge(A.clone(c),{boundaryGap:e,splitNumber:t,scale:n,axisLine:i,axisTick:r,axisLabel:o,name:c.text,showName:s,nameLocation:"end",nameGap:u,nameTextStyle:h,triggerEvent:d},!1);if(A.isString(l)){var g=p.name;p.name=l.replace("{value}",null!=g?g:"")}else A.isFunction(l)&&(p.name=l(p.name,p));var f=new T.A(p,null,this.ecModel);return A.mixin(f,C.L.prototype),f.mainType="radar",f.componentIndex=this.componentIndex,f},this);this._indicatorModels=c},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:A.merge({lineStyle:{color:"#bbb"}},ni.axisLine),axisLabel:nr(ni.axisLabel,!1),axisTick:nr(ni.axisTick,!1),splitLine:nr(ni.splitLine,!0),splitArea:nr(ni.splitArea,!0),indicator:[]},t}(g.A),na=n(79132),ns=["axisLine","axisTickLabel","axisName"],nl=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,W.C6)(t,e),t.prototype.render=function(e,t,n){this.group.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes(),i=A.map(n,function(e){var n=e.model.get("showName")?e.name:"";return new na.A(e.model,{axisName:n,position:[t.cx,t.cy],rotation:e.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})});A.each(i,function(e){A.each(ns,e.add,e),this.group.add(e.getGroup())},this)},t.prototype._buildSplitLineAndArea=function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes();if(n.length){var i=e.get("shape"),r=e.getModel("splitLine"),o=e.getModel("splitArea"),a=r.getModel("lineStyle"),s=o.getModel("areaStyle"),l=r.get("show"),u=o.get("show"),d=a.get("color"),c=s.get("color"),h=A.isArray(d)?d:[d],p=A.isArray(c)?c:[c],g=[],f=[];if("circle"===i)for(var y=n[0].getTicksCoords(),v=t.cx,m=t.cy,x=0;x<y.length;x++){if(l){var _=L(g,h,x);g[_].push(new ec.A({shape:{cx:v,cy:m,r:y[x].coord}}))}if(u&&x<y.length-1){var _=L(f,p,x);f[_].push(new eg.A({shape:{cx:v,cy:m,r0:y[x].coord,r:y[x+1].coord}}))}}else for(var b,S=A.map(n,function(e,n){var i=e.getTicksCoords();return b=null==b?i.length-1:Math.min(i.length-1,b),A.map(i,function(e){return t.coordToPoint(e.coord,n)})}),w=[],x=0;x<=b;x++){for(var M=[],I=0;I<n.length;I++)M.push(S[I][x]);if(M[0]&&M.push(M[0].slice()),l){var _=L(g,h,x);g[_].push(new ey.A({shape:{points:M}}))}if(u&&w){var _=L(f,p,x-1);f[_].push(new ef.A({shape:{points:M.concat(w)}}))}w=M.slice().reverse()}var C=a.getLineStyle(),T=s.getAreaStyle();A.each(f,function(e,t){this.group.add(ea.mergePath(e,{style:A.defaults({stroke:"none",fill:p[t%p.length]},T),silent:!0}))},this),A.each(g,function(e,t){this.group.add(ea.mergePath(e,{style:A.defaults({fill:"none",stroke:h[t%h.length]},C),silent:!0}))},this)}function L(e,t,n){var i=n%t.length;return e[i]=e[i]||[],i}},t.type="radar",t}(f.A),nu=function(e){function t(t,n,i){var r=e.call(this,t,n,i)||this;return r.type="value",r.angle=0,r.name="",r}return(0,W.C6)(t,e),t}(eD.A),nd=n(37396),nc=n(10108),nh=function(){function e(e,t,n){this.dimensions=[],this._model=e,this._indicatorAxes=(0,A.map)(e.getIndicatorModels(),function(e,t){var n="indicator_"+t,i=new nu(n,new nd.A);return i.name=e.get("name"),i.model=e,e.axis=i,this.dimensions.push(n),i},this),this.resize(e,n)}return e.prototype.getIndicatorAxes=function(){return this._indicatorAxes},e.prototype.dataToPoint=function(e,t){var n=this._indicatorAxes[t];return this.coordToPoint(n.dataToCoord(e),t)},e.prototype.coordToPoint=function(e,t){var n=this._indicatorAxes[t].angle;return[this.cx+e*Math.cos(n),this.cy-e*Math.sin(n)]},e.prototype.pointToData=function(e){var t,n=e[0]-this.cx,i=e[1]-this.cy,r=Math.sqrt(n*n+i*i);n/=r;for(var o=Math.atan2(-(i/=r),n),a=1/0,s=-1,l=0;l<this._indicatorAxes.length;l++){var u=this._indicatorAxes[l],d=Math.abs(o-u.angle);d<a&&(t=u,s=l,a=d)}return[s,+(t&&t.coordToData(r))]},e.prototype.resize=function(e,t){var n=e.get("center"),i=t.getWidth(),r=t.getHeight(),o=Math.min(i,r)/2;this.cx=er.lo(n[0],i),this.cy=er.lo(n[1],r),this.startAngle=e.get("startAngle")*Math.PI/180;var a=e.get("radius");((0,A.isString)(a)||(0,A.isNumber)(a))&&(a=[0,a]),this.r0=er.lo(a[0],o),this.r=er.lo(a[1],o),(0,A.each)(this._indicatorAxes,function(e,t){e.setExtent(this.r0,this.r);var n=this.startAngle+t*Math.PI*2/this._indicatorAxes.length;e.angle=Math.atan2(Math.sin(n),Math.cos(n))},this)},e.prototype.update=function(e,t){var n=this._indicatorAxes,i=this._model;(0,A.each)(n,function(e){e.scale.setExtent(1/0,-1/0)}),e.eachSeriesByType("radar",function(t,r){if("radar"===t.get("coordinateSystem")&&e.getComponent("radar",t.get("radarIndex"))===i){var o=t.getData();(0,A.each)(n,function(e){e.scale.unionExtentFromData(o,o.mapDimension(e.dim))})}},this);var r=i.get("splitNumber"),o=new nd.A;o.setExtent(0,r),o.setInterval(1),(0,A.each)(n,function(e,t){(0,nc.m)(e.scale,e.model,o)})},e.prototype.convertToPixel=function(e,t,n){return console.warn("Not implemented."),null},e.prototype.convertFromPixel=function(e,t,n){return console.warn("Not implemented."),null},e.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},e.create=function(t,n){var i=[];return t.eachComponent("radar",function(r){var o=new e(r,t,n);i.push(o),r.coordinateSystem=o}),t.eachSeriesByType("radar",function(e){"radar"===e.get("coordinateSystem")&&(e.coordinateSystem=i[e.get("radarIndex")||0])}),i},e.dimensions=[],e}();function np(e){e.registerCoordinateSystem("radar",nh),e.registerComponentModel(no),e.registerComponentView(nl),e.registerVisual({seriesType:"radar",reset:function(e){var t=e.getData();t.each(function(e){t.setItemVisual(e,"legendIcon","roundRect")}),t.setVisual("legendIcon","roundRect")}})}var ng=n(96120);function nf(e,t,n){var i=e.target;i.x+=t,i.y+=n,i.dirty()}function ny(e,t,n,i){var r=e.target,o=e.zoomLimit,a=e.zoom=e.zoom||1;if(a*=t,o){var s=o.min||0;a=Math.max(Math.min(o.max||1/0,a),s)}var l=a/e.zoom;e.zoom=a,r.x-=(n-r.x)*(l-1),r.y-=(i-r.y)*(l-1),r.scaleX*=l,r.scaleY*=l,r.dirty()}var nv=n(10099),nm=n(85038);function nx(e){(0,A.isString)(e)&&(e=new DOMParser().parseFromString(e,"text/xml"));var t=e;for(9===t.nodeType&&(t=t.firstChild);"svg"!==t.nodeName.toLowerCase()||1!==t.nodeType;)t=t.nextSibling;return t}var n_={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},nb=(0,A.keys)(n_),nA={"alignment-baseline":"textBaseline","stop-color":"stopColor"},nS=(0,A.keys)(nA),nw=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(e,t){t=t||{};var n,i,r=nx(e);this._defsUsePending=[];var o=new el.A;this._root=o;var a=[],s=r.getAttribute("viewBox")||"",l=parseFloat(r.getAttribute("width")||t.width),u=parseFloat(r.getAttribute("height")||t.height);isNaN(l)&&(l=null),isNaN(u)&&(u=null),nD(r,o,null,!0,!1);for(var d=r.firstChild;d;)this._parseNode(d,o,a,null,!1,!1),d=d.nextSibling;if(function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i[0].style[i[1]]=e[i[2]]}}(this._defs,this._defsUsePending),this._defsUsePending=[],s){var c=nR(s);c.length>=4&&(n={x:parseFloat(c[0]||0),y:parseFloat(c[1]||0),width:parseFloat(c[2]),height:parseFloat(c[3])})}if(n&&null!=l&&null!=u&&(i=nG(n,{x:0,y:0,width:l,height:u}),!t.ignoreViewBox)){var h=o;(o=new el.A).add(h),h.scaleX=h.scaleY=i.scale,h.x=i.x,h.y=i.y}return t.ignoreRootClip||null==l||null==u||o.setClipPath(new ev.A({shape:{x:0,y:0,width:l,height:u}})),{root:o,width:l,height:u,viewBoxRect:n,viewBoxTransform:i,named:a}},e.prototype._parseNode=function(e,t,n,i,r,a){var s,l=e.nodeName.toLowerCase(),u=i;if("defs"===l&&(r=!0),"text"===l&&(a=!0),"defs"===l||"switch"===l)s=t;else{if(!r){var d=o[l];if(d&&(0,A.hasOwn)(o,l)){s=d.call(this,e,t);var c=e.getAttribute("name");if(c){var h={name:c,namedFrom:null,svgNodeTagLower:l,el:s};n.push(h),"g"===l&&(u=h)}else i&&n.push({name:i.name,namedFrom:i,svgNodeTagLower:l,el:s});t.add(s)}}var p=nM[l];if(p&&(0,A.hasOwn)(nM,l)){var g=p.call(this,e),f=e.getAttribute("id");f&&(this._defs[f]=g)}}if(s&&s.isGroup)for(var y=e.firstChild;y;)1===y.nodeType?this._parseNode(y,s,n,u,r,a):3===y.nodeType&&a&&this._parseText(y,s),y=y.nextSibling},e.prototype._parseText=function(e,t){var n=new e0.A({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});nT(t,n),nD(e,n,this._defsUsePending,!1,!1),function(e,t){var n=t.__selfStyle;if(n){var i=n.textBaseline,r=i;i&&"auto"!==i?"baseline"===i?r="alphabetic":"before-edge"===i||"text-before-edge"===i?r="top":"after-edge"===i||"text-after-edge"===i?r="bottom":("central"===i||"mathematical"===i)&&(r="middle"):r="alphabetic",e.style.textBaseline=r}var o=t.__inheritedStyle;if(o){var a=o.textAlign,s=a;a&&("middle"===a&&(s="center"),e.style.textAlign=s)}}(n,t);var i=n.style,r=i.fontSize;r&&r<9&&(i.fontSize=9,n.scaleX*=r/9,n.scaleY*=r/9);var o=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=o;var a=n.getBoundingRect();return this._textX+=a.width,t.add(n),n},e.internalField=void(o={g:function(e,t){var n=new el.A;return nT(t,n),nD(e,n,this._defsUsePending,!1,!1),n},rect:function(e,t){var n=new ev.A;return nT(t,n),nD(e,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(e,t){var n=new ec.A;return nT(t,n),nD(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),n.silent=!0,n},line:function(e,t){var n=new em.A;return nT(t,n),nD(e,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(e,t){var n=new eh.A;return nT(t,n),nD(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(e,t){var n,i=e.getAttribute("points");i&&(n=nL(i));var r=new ef.A({shape:{points:n||[]},silent:!0});return nT(t,r),nD(e,r,this._defsUsePending,!1,!1),r},polyline:function(e,t){var n,i=e.getAttribute("points");i&&(n=nL(i));var r=new ey.A({shape:{points:n||[]},silent:!0});return nT(t,r),nD(e,r,this._defsUsePending,!1,!1),r},image:function(e,t){var n=new eu.Ay;return nT(t,n),nD(e,n,this._defsUsePending,!1,!1),n.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),n.silent=!0,n},text:function(e,t){var n=e.getAttribute("x")||"0",i=e.getAttribute("y")||"0",r=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(r),this._textY=parseFloat(i)+parseFloat(o);var a=new el.A;return nT(t,a),nD(e,a,this._defsUsePending,!1,!0),a},tspan:function(e,t){var n=e.getAttribute("x"),i=e.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=i&&(this._textY=parseFloat(i));var r=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",a=new el.A;return nT(t,a),nD(e,a,this._defsUsePending,!1,!0),this._textX+=parseFloat(r),this._textY+=parseFloat(o),a},path:function(e,t){var n=e.getAttribute("d")||"",i=(0,nm.UJ)(n);return nT(t,i),nD(e,i,this._defsUsePending,!1,!1),i.silent=!0,i}}),e}(),nM={lineargradient:function(e){var t=parseInt(e.getAttribute("x1")||"0",10),n=parseInt(e.getAttribute("y1")||"0",10),i=parseInt(e.getAttribute("x2")||"10",10),r=parseInt(e.getAttribute("y2")||"0",10),o=new eS.A(t,n,i,r);return nI(e,o),nC(e,o),o},radialgradient:function(e){var t=parseInt(e.getAttribute("cx")||"0",10),n=parseInt(e.getAttribute("cy")||"0",10),i=parseInt(e.getAttribute("r")||"0",10),r=new ew.A(t,n,i);return nI(e,r),nC(e,r),r}};function nI(e,t){"userSpaceOnUse"===e.getAttribute("gradientUnits")&&(t.global=!0)}function nC(e,t){for(var n=e.firstChild;n;){if(1===n.nodeType&&"stop"===n.nodeName.toLocaleLowerCase()){var i=n.getAttribute("offset"),r=void 0;r=i&&i.indexOf("%")>0?parseInt(i,10)/100:i?parseFloat(i):0;var o={};nO(n,o,o);var a=o.stopColor||n.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:r,color:a})}n=n.nextSibling}}function nT(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),(0,A.defaults)(t.__inheritedStyle,e.__inheritedStyle))}function nL(e){for(var t=nR(e),n=[],i=0;i<t.length;i+=2){var r=parseFloat(t[i]),o=parseFloat(t[i+1]);n.push([r,o])}return n}function nD(e,t,n,i,r){var o=t.__inheritedStyle=t.__inheritedStyle||{},a={};1===e.nodeType&&(function(e,t){var n=e.getAttribute("transform");if(n){n=n.replace(/,/g," ");var i=[],r=null;n.replace(nE,function(e,t,n){return i.push(t,n),""});for(var o=i.length-1;o>0;o-=2){var a=i[o],s=i[o-1],l=nR(a);switch(r=r||_.create(),s){case"translate":_.translate(r,r,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":_.scale(r,r,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":_.rotate(r,r,-parseFloat(l[0])*nV,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*nV);_.mul(r,[1,0,u,1,0,0],r);break;case"skewY":var d=Math.tan(parseFloat(l[0])*nV);_.mul(r,[1,d,0,1,0,0],r);break;case"matrix":r[0]=parseFloat(l[0]),r[1]=parseFloat(l[1]),r[2]=parseFloat(l[2]),r[3]=parseFloat(l[3]),r[4]=parseFloat(l[4]),r[5]=parseFloat(l[5])}}t.setLocalTransform(r)}}(e,t),nO(e,o,a),i||function(e,t,n){for(var i=0;i<nb.length;i++){var r=nb[i],o=e.getAttribute(r);null!=o&&(t[n_[r]]=o)}for(var i=0;i<nS.length;i++){var r=nS[i],o=e.getAttribute(r);null!=o&&(n[nA[r]]=o)}}(e,o,a)),t.style=t.style||{},null!=o.fill&&(t.style.fill=nN(t,"fill",o.fill,n)),null!=o.stroke&&(t.style.stroke=nN(t,"stroke",o.stroke,n)),(0,A.each)(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(e){null!=o[e]&&(t.style[e]=parseFloat(o[e]))}),(0,A.each)(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(e){null!=o[e]&&(t.style[e]=o[e])}),r&&(t.__selfStyle=a),o.lineDash&&(t.style.lineDash=(0,A.map)(nR(o.lineDash),function(e){return parseFloat(e)})),("hidden"===o.visibility||"collapse"===o.visibility)&&(t.invisible=!0),"none"===o.display&&(t.ignore=!0)}var nP=/^url\(\s*#(.*?)\)/;function nN(e,t,n,i){var r=n&&n.match(nP);if(r){var o=(0,A.trim)(r[1]);i.push([e,t,o]);return}return"none"===n&&(n=null),n}var nk=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function nR(e){return e.match(nk)||[]}var nE=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,nV=Math.PI/180,nz=/([^\s:;]+)\s*:\s*([^:;]+)/g;function nO(e,t,n){var i,r=e.getAttribute("style");if(r)for(nz.lastIndex=0;null!=(i=nz.exec(r));){var o=i[1],a=(0,A.hasOwn)(n_,o)?n_[o]:null;a&&(t[a]=i[2]);var s=(0,A.hasOwn)(nA,o)?nA[o]:null;s&&(n[s]=i[2])}}function nG(e,t){var n=Math.min(t.width/e.width,t.height/e.height);return{scale:n,x:-(e.x+e.width/2)*n+(t.x+t.width/2),y:-(e.y+e.height/2)*n+(t.y+t.height/2)}}for(var nB=(0,A.createHashMap)(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),nF=function(){function e(e,t){this.type="geoSVG",this._usedGraphicMap=(0,A.createHashMap)(),this._freedGraphics=[],this._mapName=e,this._parsedXML=nx(t)}return e.prototype.load=function(){var e=this._firstGraphic;if(!e){e=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(e),this._boundingRect=this._firstGraphic.boundingRect.clone();var t,n,i,r=(t=e.named,n=[],i=(0,A.createHashMap)(),(0,A.each)(t,function(e){if(null==e.namedFrom){var t=new ee(e.name,e.el);n.push(t),i.set(e.name,t)}}),{regions:n,regionsMap:i}),o=r.regions,a=r.regionsMap;this._regions=o,this._regionsMap=a}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},e.prototype._buildGraphic=function(e){try{var t;i=(n=e&&(t={ignoreViewBox:!0,ignoreRootClip:!0},new nw().parse(e,t))||{}).root,(0,A.assert)(null!=i)}catch(e){throw Error("Invalid svg format\n"+e.message)}var n,i,r=new el.A;r.add(i),r.isGeoSVGGraphicRoot=!0;var o=n.width,a=n.height,s=n.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,d=void 0,c=void 0,h=void 0;if(null!=o?(u=0,c=o):s&&(u=s.x,c=s.width),null!=a?(d=0,h=a):s&&(d=s.y,h=s.height),null==u||null==d){var p=i.getBoundingRect();null==u&&(u=p.x,c=p.width),null==d&&(d=p.y,h=p.height)}l=this._boundingRect=new Y.A(u,d,c,h)}if(s){var g=nG(s,l);i.scaleX=i.scaleY=g.scale,i.x=g.x,i.y=g.y}r.setClipPath(new ev.A({shape:l.plain()}));var f=[];return(0,A.each)(n.named,function(e){var t;null!=nB.get(e.svgNodeTagLower)&&(f.push(e),(t=e.el).silent=!1,t.isGroup&&t.traverse(function(e){e.silent=!1}))}),{root:r,boundingRect:l,named:f}},e.prototype.useGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),t.set(e,n)),n},e.prototype.freeGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);n&&(t.removeKey(e),this._freedGraphics.push(n))},e}(),nW=[126,25],nY="南海诸岛",nH=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],nU=0;nU<nH.length;nU++)for(var nX=0;nX<nH[nU].length;nX++)nH[nU][nX][0]/=10.5,nH[nU][nX][1]/=-14,nH[nU][nX][0]+=nW[0],nH[nU][nX][1]+=nW[1];var nj={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]},nZ=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]],nq=function(){function e(e,t,n){var i;this.type="geoJSON",this._parsedMap=(0,A.createHashMap)(),this._mapName=e,this._specialAreas=n,this._geoJSON=(i=t,(0,A.isString)(i)?"undefined"!=typeof JSON&&JSON.parse?JSON.parse(i):Function("return ("+i+");")():i)}return e.prototype.load=function(e,t){t=t||"name";var n=this._parsedMap.get(t);if(!n){var i=this._parseToRegions(t);n=this._parsedMap.set(t,{regions:i,boundingRect:function(e){for(var t,n=0;n<e.length;n++){var i=e[n].getBoundingRect();(t=t||i.clone()).union(i)}return t}(i)})}var r=(0,A.createHashMap)(),o=[];return(0,A.each)(n.regions,function(t){var n=t.name;e&&(0,A.hasOwn)(e,n)&&(t=t.cloneShallow(n=e[n])),o.push(t),r.set(n,t)}),{regions:o,boundingRect:n.boundingRect||new Y.A(0,0,0,0),regionsMap:r}},e.prototype._parseToRegions=function(e){var t,n=this._mapName,i=this._geoJSON;try{t=i?ei(i,e):[]}catch(e){throw Error("Invalid geoJson format\n"+e.message)}return!function(e,t){if("china"===e){for(var n=0;n<t.length;n++)if(t[n].name===nY)return;t.push(new K(nY,A.map(nH,function(e){return{type:"polygon",exterior:e}}),nW))}}(n,t),(0,A.each)(t,function(e){var t=e.name;if("china"===n){var i=nj[e.name];if(i){var r=e.getCenter();r[0]+=i[0]/10.5,r[1]+=-i[1]/14,e.setCenter(r)}}"china"===n&&"台湾"===e.name&&e.geometries.push({type:"polygon",exterior:nZ[0]});var o=this._specialAreas&&this._specialAreas[t];o&&e.transformTo(o.left,o.top,o.width,o.height)},this),t},e.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},e}(),n$=(0,A.createHashMap)();let nJ=function(e,t,n){if(t.svg){var i=new nF(e,t.svg);n$.set(e,i)}else{var r=t.geoJson||t.geoJSON;r&&!t.features?n=t.specialAreas:r=t;var i=new nq(e,r,n);n$.set(e,i)}},nQ=function(e){return n$.get(e)},nK=function(e){var t=n$.get(e);return t&&"geoJSON"===t.type&&t.getMapForUser()},n0=function(e,t,n){var i=n$.get(e);return i?i.load(t,n):void 0};var n1=n(3818),n2=n(34780),n5=n(38513),n3=["rect","circle","line","ellipse","polygon","polyline","path"],n6=A.createHashMap(n3),n4=A.createHashMap(n3.concat(["g"])),n8=A.createHashMap(n3.concat(["g"])),n7=(0,eV.$r)();function n9(e){var t=e.getItemStyle(),n=e.get("areaColor");return null!=n&&(t.fill=n),t}function ie(e){var t=e.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var it=function(){function e(e){var t=new el.A;this.uid=(0,n1.$Q)("ec_map_draw"),this._controller=new ng.A(e.getZr()),this._controllerHost={target:t},this.group=t,t.add(this._regionsGroup=new el.A),t.add(this._svgGroup=new el.A)}return e.prototype.draw=function(e,t,n,i,r){var o="geo"===e.mainType,a=e.getData&&e.getData();o&&t.eachComponent({mainType:"series",subType:"map"},function(t){a||t.getHostGeoModel()!==e||(a=t.getData())});var s=e.coordinateSystem,l=this._regionsGroup,u=this.group,d=s.getTransformInfo(),c=d.raw,h=d.roam;!l.childAt(0)||r?(u.x=h.x,u.y=h.y,u.scaleX=h.scaleX,u.scaleY=h.scaleY,u.dirty()):es.oi(u,h,e);var p=a&&a.getVisual("visualMeta")&&a.getVisual("visualMeta").length>0,g={api:n,geo:s,mapOrGeoModel:e,data:a,isVisualEncodedByVisualMap:p,isGeo:o,transformInfoRaw:c};"geoJSON"===s.resourceType?this._buildGeoJSON(g):"geoSVG"===s.resourceType&&this._buildSVG(g),this._updateController(e,t,n),this._updateMapSelectHandler(e,l,n,i)},e.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=A.createHashMap(),n=A.createHashMap(),i=this._regionsGroup,r=e.transformInfoRaw,o=e.mapOrGeoModel,a=e.data,s=e.geo.projection,l=s&&s.stream;function u(e,t){return t&&(e=t(e)),e&&[e[0]*r.scaleX+r.x,e[1]*r.scaleY+r.y]}function d(e){return{shape:{points:function(e){for(var t=[],n=!l&&s&&s.project,i=0;i<e.length;++i){var r=u(e[i],n);r&&t.push(r)}return t}(e)}}}i.removeAll(),A.each(e.geo.regions,function(r){var c=r.name,h=t.get(c),p=n.get(c)||{},g=p.dataIdx,f=p.regionModel;h||(h=t.set(c,new el.A),i.add(h),g=a?a.indexOfName(c):null,f=e.isGeo?o.getRegionModel(c):a?a.getItemModel(g):null,n.set(c,{dataIdx:g,regionModel:f}));var y=[],v=[];A.each(r.geometries,function(e){if("polygon"===e.type){var t=[e.exterior].concat(e.interiors||[]);l&&(t=il(t,l)),A.each(t,function(e){y.push(new ef.A(d(e)))})}else{var n=e.points;l&&(n=il(n,l,!0)),A.each(n,function(e){v.push(new ey.A(d(e)))})}});var m=u(r.getCenter(),s&&s.project);function x(t,n){if(t.length){var i=new eA.A({culling:!0,segmentIgnoreThreshold:1,shape:{paths:t}});h.add(i),ii(e,i,g,f),ir(e,i,c,f,o,g,m),n&&(ie(i),A.each(i.states,ie))}}x(y),x(v,!0)}),t.each(function(t,i){var r=n.get(i),a=r.dataIdx,s=r.regionModel;io(e,t,i,s,o,a),ia(e,t,i,s,o),is(e,t,i,s,o)},this)},e.prototype._buildSVG=function(e){var t=e.geo.map,n=e.transformInfoRaw;this._svgGroup.x=n.x,this._svgGroup.y=n.y,this._svgGroup.scaleX=n.scaleX,this._svgGroup.scaleY=n.scaleY,this._svgResourceChanged(t)&&(this._freeSVG(),this._useSVG(t));var i=this._svgDispatcherMap=A.createHashMap(),r=!1;A.each(this._svgGraphicRecord.named,function(t){var n=t.name,o=e.mapOrGeoModel,a=e.data,s=t.svgNodeTagLower,l=t.el,u=a?a.indexOfName(n):null,d=o.getRegionModel(n);null!=n6.get(s)&&l instanceof n5.Ay&&ii(e,l,u,d),l instanceof n5.Ay&&(l.culling=!0),l.z2EmphasisLift=0,t.namedFrom||(null!=n8.get(s)&&ir(e,l,n,d,o,u,null),io(e,l,n,d,o,u),ia(e,l,n,d,o),null!=n4.get(s)&&("self"===is(e,l,n,d,o)&&(r=!0),(i.get(n)||i.set(n,[])).push(l)))},this),this._enableBlurEntireSVG(r,e)},e.prototype._enableBlurEntireSVG=function(e,t){if(e&&t.isGeo){var n=t.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle().opacity;this._svgGraphicRecord.root.traverse(function(e){if(!e.isGroup){(0,E.DW)(e);var t=e.ensureState("blur").style||{};null==t.opacity&&null!=n&&(t.opacity=n),e.ensureState("emphasis")}})}},e.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},e.prototype.findHighDownDispatchers=function(e,t){if(null==e)return[];var n=t.coordinateSystem;if("geoJSON"===n.resourceType){var i=this._regionsGroupByName;if(i){var r=i.get(e);return r?[r]:[]}}else if("geoSVG"===n.resourceType)return this._svgDispatcherMap&&this._svgDispatcherMap.get(e)||[]},e.prototype._svgResourceChanged=function(e){return this._svgMapName!==e},e.prototype._useSVG=function(e){var t=nQ(e);if(t&&"geoSVG"===t.type){var n=t.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=e}},e.prototype._freeSVG=function(){var e=this._svgMapName;if(null!=e){var t=nQ(e);t&&"geoSVG"===t.type&&t.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},e.prototype._updateController=function(e,t,n){var i=e.coordinateSystem,r=this._controller,o=this._controllerHost;o.zoomLimit=e.get("scaleLimit"),o.zoom=i.getZoom(),r.enable(e.get("roam")||!1);var a=e.mainType;function s(){var t={type:"geoRoam",componentType:a};return t[a+"Id"]=e.id,t}r.off("pan").on("pan",function(e){this._mouseDownFlag=!1,nf(o,e.dx,e.dy),n.dispatchAction(A.extend(s(),{dx:e.dx,dy:e.dy,animation:{duration:0}}))},this),r.off("zoom").on("zoom",function(e){this._mouseDownFlag=!1,ny(o,e.scale,e.originX,e.originY),n.dispatchAction(A.extend(s(),{zoom:e.scale,originX:e.originX,originY:e.originY,animation:{duration:0}}))},this),r.setPointerChecker(function(t,r,o){return i.containPoint([r,o])&&!(0,nv.I)(t,n,e)})},e.prototype.resetForLabelLayout=function(){this.group.traverse(function(e){var t=e.getTextContent();t&&(t.ignore=n7(t).ignore)})},e.prototype._updateMapSelectHandler=function(e,t,n,i){var r=this;t.off("mousedown"),t.off("click"),e.get("selectedMode")&&(t.on("mousedown",function(){r._mouseDownFlag=!0}),t.on("click",function(e){r._mouseDownFlag&&(r._mouseDownFlag=!1)}))},e}();function ii(e,t,n,i){var r=i.getModel("itemStyle"),o=i.getModel(["emphasis","itemStyle"]),a=i.getModel(["blur","itemStyle"]),s=i.getModel(["select","itemStyle"]),l=n9(r),u=n9(o),d=n9(s),c=n9(a),h=e.data;if(h){var p=h.getItemVisual(n,"style"),g=h.getItemVisual(n,"decal");e.isVisualEncodedByVisualMap&&p.fill&&(l.fill=p.fill),g&&(l.decal=(0,n2.w)(g,e.api))}t.setStyle(l),t.style.strokeNoScale=!0,t.ensureState("emphasis").style=u,t.ensureState("select").style=d,t.ensureState("blur").style=c,(0,E.DW)(t)}function ir(e,t,n,i,r,o,a){var s=e.data,l=e.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),o)),d=s&&s.getItemLayout(o);if(l||u||d&&d.showLabel){var c=l?n:o,h=void 0;(!s||o>=0)&&(h=r);var p=a?{normal:{align:"center",verticalAlign:"middle"}}:null;(0,N.qM)(t,(0,N.lx)(i),{labelFetcher:h,labelDataIndex:c,defaultText:n},p);var g=t.getTextContent();if(g&&(n7(g).ignore=g.ignore,t.textConfig&&a)){var f=t.getBoundingRect().clone();t.textConfig.layoutRect=f,t.textConfig.position=[(a[0]-f.x)/f.width*100+"%",(a[1]-f.y)/f.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function io(e,t,n,i,r,o){e.data?e.data.setItemGraphicEl(o,t):(0,P.z)(t).eventData={componentType:"geo",componentIndex:r.componentIndex,geoIndex:r.componentIndex,name:n,region:i&&i.option||{}}}function ia(e,t,n,i,r){e.data||ea.setTooltipConfig({el:t,componentModel:r,itemName:n,itemTooltipOption:i.get("tooltip")})}function is(e,t,n,i,r){t.highDownSilentOnTouch=!!r.get("selectedMode");var o=i.getModel("emphasis"),a=o.get("focus");return(0,E.Lm)(t,a,o.get("blurScope"),o.get("disabled")),e.isGeo&&(0,E.ml)(t,r,n),a}function il(e,t,n){var i,r=[];function o(){i=[]}function a(){i.length&&(r.push(i),i=[])}var s=t({polygonStart:o,polygonEnd:a,lineStart:o,lineEnd:a,point:function(e,t){isFinite(e)&&isFinite(t)&&i.push([e,t])},sphere:function(){}});return n||s.polygonStart(),A.each(e,function(e){s.lineStart();for(var t=0;t<e.length;t++)s.point(e[t][0],e[t][1]);s.lineEnd()}),n||s.polygonEnd(),r}var iu=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,W.C6)(t,e),t.prototype.render=function(e,t,n,i){if(!i||"mapToggleSelect"!==i.type||i.from!==this.uid){var r=this.group;if(r.removeAll(),!e.getHostGeoModel()){if(this._mapDraw&&i&&"geoRoam"===i.type&&this._mapDraw.resetForLabelLayout(),i&&"geoRoam"===i.type&&"series"===i.componentType&&i.seriesId===e.id){var o=this._mapDraw;o&&r.add(o.group)}else if(e.needsDrawMap){var o=this._mapDraw||new it(n);r.add(o.group),o.draw(e,t,n,this,i),this._mapDraw=o}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;e.get("showLegendSymbol")&&t.getComponent("legend")&&this._renderSymbols(e,t,n)}}},t.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},t.prototype._renderSymbols=function(e,t,n){var i=e.originalData,r=this.group;i.each(i.mapDimension("value"),function(t,n){if(!isNaN(t)){var o=i.getItemLayout(n);if(o&&o.point){var a=o.point,s=o.offset,l=new ec.A({style:{fill:e.getData().getVisual("style").fill},shape:{cx:a[0]+9*s,cy:a[1],r:3},silent:!0,z2:8+(s?0:E.CA+1)});if(!s){var u=e.mainSeries.getData(),d=i.getName(n),c=u.indexOfName(d),h=i.getItemModel(n),p=h.getModel("label"),g=u.getItemGraphicEl(c);(0,N.qM)(l,(0,N.lx)(h),{labelFetcher:{getFormattedLabel:function(t,n){return e.getFormattedLabel(c,n)}},defaultText:d}),l.disableLabelAnimation=!0,p.get("position")||l.setTextConfig({position:"bottom"}),g.onHoverStateChange=function(e){(0,E.Pk)(l,e)}}r.add(l)}}})},t.type="map",t}(v.A),id=n(88569),ic=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.needsDrawMap=!1,n.seriesGroup=[],n.getTooltipPosition=function(e){if(null!=e){var t=this.getData().getName(e),n=this.coordinateSystem,i=n.getRegion(t);return i&&n.dataToPoint(i.getCenter())}},n}return(0,W.C6)(t,e),t.prototype.getInitialData=function(e){for(var t=(0,t9.A)(this,{coordDimensions:["value"],encodeDefaulter:A.curry(id.ln,this)}),n=A.createHashMap(),i=[],r=0,o=t.count();r<o;r++){var a=t.getName(r);n.set(a,!0)}var s=n0(this.getMapType(),this.option.nameMap,this.option.nameProperty);return A.each(s.regions,function(e){var t=e.name;n.get(t)||i.push(t)}),t.appendValues([],i),t},t.prototype.getHostGeoModel=function(){var e=this.option.geoIndex;return null!=e?this.ecModel.getComponent("geo",e):null},t.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},t.prototype.getRawValue=function(e){var t=this.getData();return t.get(t.mapDimension("value"),e)},t.prototype.getRegionModel=function(e){var t=this.getData();return t.getItemModel(t.indexOfName(e))},t.prototype.formatTooltip=function(e,t,n){for(var i=this.getData(),r=this.getRawValue(e),o=i.getName(e),a=this.seriesGroup,s=[],l=0;l<a.length;l++){var u=a[l].originalData.indexOfName(o),d=i.mapDimension("value");isNaN(a[l].originalData.get(d,u))||s.push(a[l].name)}return(0,nt.Qx)("section",{header:s.join(", "),noHeader:!s.length,blocks:[(0,nt.Qx)("nameValue",{name:o,value:r})]})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.getLegendIcon=function(e){var t=e.icon||"roundRect",n=(0,R.v5)(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill);return n.setStyle(e.itemStyle),n.style.stroke="none",t.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},t}(y.A);function ih(e){var t={};e.eachSeriesByType("map",function(e){var n=e.getHostGeoModel(),i=n?"o"+n.id:"i"+e.getMapType();(t[i]=t[i]||[]).push(e)}),A.each(t,function(e,t){for(var n,i,r,o=(n=A.map(e,function(e){return e.getData()}),i=e[0].get("mapValueCalculation"),r={},A.each(n,function(e){e.each(e.mapDimension("value"),function(t,n){var i="ec-"+e.getName(n);r[i]=r[i]||[],isNaN(t)||r[i].push(t)})}),n[0].map(n[0].mapDimension("value"),function(e,t){for(var o,a="ec-"+n[0].getName(t),s=0,l=1/0,u=-1/0,d=r[a].length,c=0;c<d;c++)l=Math.min(l,r[a][c]),u=Math.max(u,r[a][c]),s+=r[a][c];return o="min"===i?l:"max"===i?u:"average"===i?s/d:s,0===d?NaN:o})),a=0;a<e.length;a++)e[a].originalData=e[a].getData();for(var a=0;a<e.length;a++)e[a].seriesGroup=e,e[a].needsDrawMap=0===a&&!e[a].getHostGeoModel(),e[a].setData(o.cloneShallow()),e[a].mainSeries=e[0]})}function ip(e){var t={};e.eachSeriesByType("map",function(n){var i=n.getMapType();if(!n.getHostGeoModel()&&!t[i]){var r={};A.each(n.seriesGroup,function(t){var n=t.coordinateSystem,i=t.originalData;t.get("showLegendSymbol")&&e.getComponent("legend")&&i.each(i.mapDimension("value"),function(e,t){var o=i.getName(t),a=n.getRegion(o);if(!(!a||isNaN(e))){var s=r[o]||0,l=n.dataToPoint(a.getCenter());r[o]=s+1,i.setItemLayout(t,{point:l,offset:s})}})});var o=n.getData();o.each(function(e){var t=o.getName(e),n=o.getItemLayout(e)||{};n.showLabel=!r[t],o.setItemLayout(e,n)}),t[i]=!0}})}var ig=n(1514),iy=b.applyTransform,iv=function(e){function t(t){var n=e.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new ez.Ay,n._rawTransformable=new ez.Ay,n.name=t,n}return(0,W.C6)(t,e),t.prototype.setBoundingRect=function(e,t,n,i){return this._rect=new Y.A(e,t,n,i),this._rect},t.prototype.getBoundingRect=function(){return this._rect},t.prototype.setViewRect=function(e,t,n,i){this._transformTo(e,t,n,i),this._viewRect=new Y.A(e,t,n,i)},t.prototype._transformTo=function(e,t,n,i){var r=this.getBoundingRect(),o=this._rawTransformable;o.transform=r.calculateTransform(new Y.A(e,t,n,i));var a=o.parent;o.parent=null,o.decomposeTransform(),o.parent=a,this._updateTransform()},t.prototype.setCenter=function(e,t){e&&(this._center=[(0,er.lo)(e[0],t.getWidth()),(0,er.lo)(e[1],t.getHeight())],this._updateCenterAndZoom())},t.prototype.setZoom=function(e){e=e||1;var t=this.zoomLimit;t&&(null!=t.max&&(e=Math.min(t.max,e)),null!=t.min&&(e=Math.max(t.min,e))),this._zoom=e,this._updateCenterAndZoom()},t.prototype.getDefaultCenter=function(){var e=this.getBoundingRect();return[e.x+e.width/2,e.y+e.height/2]},t.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},t.prototype.getZoom=function(){return this._zoom||1},t.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},t.prototype._updateCenterAndZoom=function(){var e=this._rawTransformable.getLocalTransform(),t=this._roamTransformable,n=this.getDefaultCenter(),i=this.getCenter(),r=this.getZoom();i=b.applyTransform([],i,e),n=b.applyTransform([],n,e),t.originX=i[0],t.originY=i[1],t.x=n[0]-i[0],t.y=n[1]-i[1],t.scaleX=t.scaleY=r,this._updateTransform()},t.prototype._updateTransform=function(){var e=this._roamTransformable,t=this._rawTransformable;t.parent=e,e.updateTransform(),t.updateTransform(),_.copy(this.transform||(this.transform=[]),t.transform||_.create()),this._rawTransform=t.getLocalTransform(),this.invTransform=this.invTransform||[],_.invert(this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var e=this._rawTransformable,t=this._roamTransformable,n=new ez.Ay;return n.transform=t.transform,n.decomposeTransform(),{roam:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY},raw:{x:e.x,y:e.y,scaleX:e.scaleX,scaleY:e.scaleY}}},t.prototype.getViewRect=function(){return this._viewRect},t.prototype.getViewRectAfterRoam=function(){var e=this.getBoundingRect().clone();return e.applyTransform(this.transform),e},t.prototype.dataToPoint=function(e,t,n){var i=t?this._rawTransform:this.transform;return n=n||[],i?iy(n,e,i):b.copy(n,e)},t.prototype.pointToData=function(e){var t=this.invTransform;return t?iy([],e,t):[e[0],e[1]]},t.prototype.convertToPixel=function(e,t,n){var i=im(t);return i===this?i.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var i=im(t);return i===this?i.pointToData(n):null},t.prototype.containPoint=function(e){return this.getViewRectAfterRoam().contain(e[0],e[1])},t.dimensions=["x","y"],t}(ez.Ay);function im(e){var t=e.seriesModel;return t?t.coordinateSystem:null}var ix={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},i_=["lng","lat"],ib=function(e){function t(t,n,i){var r,o=e.call(this,t)||this;o.dimensions=i_,o.type="geo",o._nameCoordMap=A.createHashMap(),o.map=n;var a=i.projection,s=n0(n,i.nameMap,i.nameProperty),l=nQ(n);o.resourceType=l?l.type:null;var u=o.regions=s.regions,d=ix[l.type];if(o._regionsMap=s.regionsMap,o.regions=s.regions,o.projection=a,a)for(var c=0;c<u.length;c++){var h=u[c].getBoundingRect(a);(r=r||h.clone()).union(h)}else r=s.boundingRect;return o.setBoundingRect(r.x,r.y,r.width,r.height),o.aspectScale=a?1:A.retrieve2(i.aspectScale,d.aspectScale),o._invertLongitute=!a&&d.invertLongitute,o}return(0,W.C6)(t,e),t.prototype._transformTo=function(e,t,n,i){var r=this.getBoundingRect(),o=this._invertLongitute;r=r.clone(),o&&(r.y=-r.y-r.height);var a=this._rawTransformable;a.transform=r.calculateTransform(new Y.A(e,t,n,i));var s=a.parent;a.parent=null,a.decomposeTransform(),a.parent=s,o&&(a.scaleY=-a.scaleY),this._updateTransform()},t.prototype.getRegion=function(e){return this._regionsMap.get(e)},t.prototype.getRegionByCoord=function(e){for(var t=this.regions,n=0;n<t.length;n++){var i=t[n];if("geoJSON"===i.type&&i.contain(e))return t[n]}},t.prototype.addGeoCoord=function(e,t){this._nameCoordMap.set(e,t)},t.prototype.getGeoCoord=function(e){var t=this._regionsMap.get(e);return this._nameCoordMap.get(e)||t&&t.getCenter()},t.prototype.dataToPoint=function(e,t,n){if(A.isString(e)&&(e=this.getGeoCoord(e)),e){var i=this.projection;return i&&(e=i.project(e)),e&&this.projectedToPoint(e,t,n)}},t.prototype.pointToData=function(e){var t=this.projection;return t&&(e=t.unproject(e)),e&&this.pointToProjected(e)},t.prototype.pointToProjected=function(t){return e.prototype.pointToData.call(this,t)},t.prototype.projectedToPoint=function(t,n,i){return e.prototype.dataToPoint.call(this,t,n,i)},t.prototype.convertToPixel=function(e,t,n){var i=iA(t);return i===this?i.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var i=iA(t);return i===this?i.pointToData(n):null},t}(iv);function iA(e){var t=e.geoModel,n=e.seriesModel;return t?t.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents("geo",eV.US).models[0]||{}).coordinateSystem:null}function iS(e,t){var n,i,r,o=e.get("boundingCoords");if(null!=o){var a=o[0],s=o[1];if(isFinite(a[0])&&isFinite(a[1])&&isFinite(s[0])&&isFinite(s[1])){var l=this.projection;if(l){var u=a[0],d=a[1],c=s[0],h=s[1];a=[1/0,1/0],s=[-1/0,-1/0];var p=function(e,t,n,i){for(var r=n-e,o=i-t,u=0;u<=100;u++){var d=u/100,c=l.project([e+r*d,t+o*d]);b.min(a,a,c),b.max(s,s,c)}};p(u,d,c,d),p(c,d,c,h),p(c,h,u,h),p(u,h,c,d)}this.setBoundingRect(a[0],a[1],s[0]-a[0],s[1]-a[1])}}var g=this.getBoundingRect(),f=e.get("layoutCenter"),y=e.get("layoutSize"),v=t.getWidth(),m=t.getHeight(),x=g.width/g.height*this.aspectScale,_=!1;if(f&&y&&(n=[er.lo(f[0],v),er.lo(f[1],m)],i=er.lo(y,Math.min(v,m)),isNaN(n[0])||isNaN(n[1])||isNaN(i)||(_=!0)),_)r={},x>1?(r.width=i,r.height=i/x):(r.height=i,r.width=i*x),r.y=n[1]-r.height/2,r.x=n[0]-r.width/2;else{var A=e.getBoxLayoutParams();A.aspect=x,r=L.dV(A,{width:v,height:m})}this.setViewRect(r.x,r.y,r.width,r.height),this.setCenter(e.get("center"),t),this.setZoom(e.get("zoom"))}A.mixin(ib,iv);var iw=new(function(){function e(){this.dimensions=i_}return e.prototype.create=function(e,t){var n=[];function i(e){return{nameProperty:e.get("nameProperty"),aspectScale:e.get("aspectScale"),projection:e.get("projection")}}e.eachComponent("geo",function(e,r){var o=e.get("map"),a=new ib(o+r,o,A.extend({nameMap:e.get("nameMap")},i(e)));a.zoomLimit=e.get("scaleLimit"),n.push(a),e.coordinateSystem=a,a.model=e,a.resize=iS,a.resize(e,t)}),e.eachSeries(function(e){if("geo"===e.get("coordinateSystem")){var t=e.get("geoIndex")||0;e.coordinateSystem=n[t]}});var r={};return e.eachSeriesByType("map",function(e){if(!e.getHostGeoModel()){var t=e.getMapType();r[t]=r[t]||[],r[t].push(e)}}),A.each(r,function(e,r){var o=A.map(e,function(e){return e.get("nameMap")}),a=new ib(r,r,A.extend({nameMap:A.mergeAll(o)},i(e[0])));a.zoomLimit=A.retrieve.apply(null,A.map(e,function(e){return e.get("scaleLimit")})),n.push(a),a.resize=iS,a.resize(e[0],t),A.each(e,function(e){e.coordinateSystem=a,A.each(e.get("geoCoord"),function(e,t){a.addGeoCoord(t,e)})})}),n},e.prototype.getFilledRegions=function(e,t,n,i){for(var r=(e||[]).slice(),o=A.createHashMap(),a=0;a<r.length;a++)o.set(r[a].name,r[a]);var s=n0(t,n,i);return A.each(s.regions,function(e){var t=e.name;o.get(t)||r.push({name:t})}),r},e}()),iM=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,W.C6)(t,e),t.prototype.init=function(e,t,n){var i=nQ(e.map);if(i&&"geoJSON"===i.type){var r=e.itemStyle=e.itemStyle||{};"color"in r||(r.color="#eee")}this.mergeDefaultAndTheme(e,n),eV.M5(e,"label",["show"])},t.prototype.optionUpdated=function(){var e=this,t=this.option;t.regions=iw.getFilledRegions(t.regions,t.map,t.nameMap,t.nameProperty);var n={};this._optionModelMap=A.reduce(t.regions||[],function(t,i){var r=i.name;return r&&(t.set(r,new T.A(i,e,e.ecModel)),i.selected&&(n[r]=!0)),t},A.createHashMap()),t.selectedMap||(t.selectedMap=n)},t.prototype.getRegionModel=function(e){return this._optionModelMap.get(e)||new T.A(null,this,this.ecModel)},t.prototype.getFormattedLabel=function(e,t){var n=this.getRegionModel(e),i="normal"===t?n.get(["label","formatter"]):n.get(["emphasis","label","formatter"]),r={name:e};return A.isFunction(i)?(r.status=t,i(r)):A.isString(i)?i.replace("{a}",null!=e?e:""):void 0},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.select=function(e){var t=this.option,n=t.selectedMode;n&&("multiple"!==n&&(t.selectedMap=null),(t.selectedMap||(t.selectedMap={}))[e]=!0)},t.prototype.unSelect=function(e){var t=this.option.selectedMap;t&&(t[e]=!1)},t.prototype.toggleSelected=function(e){this[this.isSelected(e)?"unSelect":"select"](e)},t.prototype.isSelected=function(e){var t=this.option.selectedMap;return!!(t&&t[e])},t.type="geo",t.layoutMode="box",t.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},t}(g.A);function iI(e,t){return e.pointToProjected?e.pointToProjected(t):e.pointToData(t)}function iC(e,t,n,i){var r=e.getZoom(),o=e.getCenter(),a=t.zoom,s=e.projectedToPoint?e.projectedToPoint(o):e.dataToPoint(o);if(null!=t.dx&&null!=t.dy&&(s[0]-=t.dx,s[1]-=t.dy,e.setCenter(iI(e,s),i)),null!=a){if(n){var l=n.min||0;a=Math.max(Math.min(r*a,n.max||1/0),l)/r}e.scaleX*=a,e.scaleY*=a;var u=(t.originX-e.x)*(a-1),d=(t.originY-e.y)*(a-1);e.x-=u,e.y-=d,e.updateTransform(),e.setCenter(iI(e,s),i),e.setZoom(a*r)}return{center:e.getCenter(),zoom:e.getZoom()}}var iT=n(26889),iL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.focusBlurEnabled=!0,n}return(0,W.C6)(t,e),t.prototype.init=function(e,t){this._api=t},t.prototype.render=function(e,t,n,i){if(this._model=e,!e.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new it(n));var r=this._mapDraw;r.draw(e,t,n,this,i),r.group.on("click",this._handleRegionClick,this),r.group.silent=e.get("silent"),this.group.add(r.group),this.updateSelectStatus(e,t,n)},t.prototype._handleRegionClick=function(e){var t;(0,iT.R)(e.target,function(e){return null!=(t=(0,P.z)(e).eventData)},!0),t&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:t.name})},t.prototype.updateSelectStatus=function(e,t,n){var i=this;this._mapDraw.group.traverse(function(e){var t=(0,P.z)(e).eventData;if(t)return i._model.isSelected(t.name)?n.enterSelect(e):n.leaveSelect(e),!0})},t.prototype.findHighDownDispatchers=function(e){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(e,this._model)},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},t.type="geo",t}(f.A);function iD(e,t,n){nJ(e,t,n)}function iP(e){function t(t,n){n.update="geo:updateSelectStatus",e.registerAction(n,function(e,n){var i={},r=[];return n.eachComponent({mainType:"geo",query:e},function(n){n[t](e.name);var o=n.coordinateSystem;(0,A.each)(o.regions,function(e){i[e.name]=n.isSelected(e.name)||!1});var a=[];(0,A.each)(i,function(e,t){i[t]&&a.push(t)}),r.push({geoIndex:n.componentIndex,name:a})}),{selected:i,allSelected:r,name:e.name}})}e.registerCoordinateSystem("geo",iw),e.registerComponentModel(iM),e.registerComponentView(iL),e.registerImpl("registerMap",iD),e.registerImpl("getMap",function(e){return nK(e)}),t("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),t("select",{type:"geoSelect",event:"geoselected"}),t("unSelect",{type:"geoUnSelect",event:"geounselected"}),e.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(e,t,n){var i=e.componentType||"series";t.eachComponent({mainType:i,query:e},function(t){var r=t.coordinateSystem;if("geo"===r.type){var o=iC(r,e,t.get("scaleLimit"),n);t.setCenter&&t.setCenter(o.center),t.setZoom&&t.setZoom(o.zoom),"series"===i&&(0,A.each)(t.seriesGroup,function(e){e.setCenter(o.center),e.setZoom(o.zoom)})}})})}var iN=n(17182);function ik(e,t){var n=e.isExpand?e.children:[],i=e.parentNode.children,r=e.hierNode.i?i[e.hierNode.i-1]:null;if(n.length){!function(e){for(var t=e.children,n=t.length,i=0,r=0;--n>=0;){var o=t[n];o.hierNode.prelim+=i,o.hierNode.modifier+=i,r+=o.hierNode.change,i+=o.hierNode.shift+r}}(e);var o=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;r?(e.hierNode.prelim=r.hierNode.prelim+t(e,r),e.hierNode.modifier=e.hierNode.prelim-o):e.hierNode.prelim=o}else r&&(e.hierNode.prelim=r.hierNode.prelim+t(e,r));e.parentNode.hierNode.defaultAncestor=function(e,t,n,i){if(t){for(var r=e,o=e,a=o.parentNode.children[0],s=t,l=r.hierNode.modifier,u=o.hierNode.modifier,d=a.hierNode.modifier,c=s.hierNode.modifier;s=iz(s),o=iO(o),s&&o;){r=iz(r),a=iO(a),r.hierNode.ancestor=e;var h,p,g,f=s.hierNode.prelim+c-o.hierNode.prelim-u+i(s,o);f>0&&(function(e,t,n){var i=n/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=i,t.hierNode.shift+=n,t.hierNode.modifier+=n,t.hierNode.prelim+=n,e.hierNode.change+=i}((h=s,p=e,g=n,h.hierNode.ancestor.parentNode===p.parentNode?h.hierNode.ancestor:g),e,f),u+=f,l+=f),c+=s.hierNode.modifier,u+=o.hierNode.modifier,l+=r.hierNode.modifier,d+=a.hierNode.modifier}s&&!iz(r)&&(r.hierNode.thread=s,r.hierNode.modifier+=c-l),o&&!iO(a)&&(a.hierNode.thread=o,a.hierNode.modifier+=u-d,n=e)}return n}(e,r,e.parentNode.hierNode.defaultAncestor||i[0],t)}function iR(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function iE(e){return arguments.length?e:iG}function iV(e,t){return{x:t*Math.cos(e-=Math.PI/2),y:t*Math.sin(e)}}function iz(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function iO(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function iG(e,t){return e.parentNode===t.parentNode?1:2}var iB=n(6091),iF=function(){this.parentPoint=[],this.childPoints=[]},iW=function(e){function t(t){return e.call(this,t)||this}return(0,W.C6)(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new iF},t.prototype.buildPath=function(e,t){var n=t.childPoints,i=n.length,r=t.parentPoint,o=n[0],a=n[i-1];if(1===i){e.moveTo(r[0],r[1]),e.lineTo(o[0],o[1]);return}var s=t.orient,l=+("TB"!==s&&"BT"!==s),u=1-l,d=(0,er.lo)(t.forkPosition,1),c=[];c[l]=r[l],c[u]=r[u]+(a[u]-r[u])*d,e.moveTo(r[0],r[1]),e.lineTo(c[0],c[1]),e.moveTo(o[0],o[1]),c[l]=o[l],e.lineTo(c[0],c[1]),c[l]=a[l],e.lineTo(c[0],c[1]),e.lineTo(a[0],a[1]);for(var h=1;h<i-1;h++){var p=n[h];e.moveTo(p[0],p[1]),c[l]=p[l],e.lineTo(c[0],c[1])}},t}(eQ.Ay),iY=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._mainGroup=new el.A,n}return(0,W.C6)(t,e),t.prototype.init=function(e,t){this._controller=new ng.A(t.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},t.prototype.render=function(e,t,n){var i=e.getData(),r=e.layoutInfo,o=this._mainGroup;"radial"===e.get("layout")?(o.x=r.x+r.width/2,o.y=r.y+r.height/2):(o.x=r.x,o.y=r.y),this._updateViewCoordSys(e,n),this._updateController(e,t,n);var a=this._data;i.diff(a).add(function(t){iH(i,t)&&iU(i,t,null,o,e)}).update(function(t,n){var r=a.getItemGraphicEl(n);if(!iH(i,t)){r&&iZ(a,n,r,o,e);return}iU(i,t,r,o,e)}).remove(function(t){var n=a.getItemGraphicEl(t);n&&iZ(a,t,n,o,e)}).execute(),this._nodeScaleRatio=e.get("nodeScaleRatio"),this._updateNodeAndLinkScale(e),!0===e.get("expandAndCollapse")&&i.eachItemGraphicEl(function(t,i){t.off("click").on("click",function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:e.id,dataIndex:i})})}),this._data=i},t.prototype._updateViewCoordSys=function(e,t){var n=e.getData(),i=[];n.each(function(e){var t=n.getItemLayout(e);!t||isNaN(t.x)||isNaN(t.y)||i.push([+t.x,+t.y])});var r=[],o=[];iB.Cr(i,r,o);var a=this._min,s=this._max;o[0]-r[0]==0&&(r[0]=a?a[0]:r[0]-1,o[0]=s?s[0]:o[0]+1),o[1]-r[1]==0&&(r[1]=a?a[1]:r[1]-1,o[1]=s?s[1]:o[1]+1);var l=e.coordinateSystem=new iv;l.zoomLimit=e.get("scaleLimit"),l.setBoundingRect(r[0],r[1],o[0]-r[0],o[1]-r[1]),l.setCenter(e.get("center"),t),l.setZoom(e.get("zoom")),this.group.attr({x:l.x,y:l.y,scaleX:l.scaleX,scaleY:l.scaleY}),this._min=r,this._max=o},t.prototype._updateController=function(e,t,n){var i=this,r=this._controller,o=this._controllerHost,a=this.group;r.setPointerChecker(function(t,i,r){var o=a.getBoundingRect();return o.applyTransform(a.transform),o.contain(i,r)&&!(0,nv.I)(t,n,e)}),r.enable(e.get("roam")),o.zoomLimit=e.get("scaleLimit"),o.zoom=e.coordinateSystem.getZoom(),r.off("pan").off("zoom").on("pan",function(t){nf(o,t.dx,t.dy),n.dispatchAction({seriesId:e.id,type:"treeRoam",dx:t.dx,dy:t.dy})}).on("zoom",function(t){ny(o,t.scale,t.originX,t.originY),n.dispatchAction({seriesId:e.id,type:"treeRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),i._updateNodeAndLinkScale(e),n.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(e){var t=e.getData(),n=this._getNodeGlobalScale(e);t.eachItemGraphicEl(function(e,t){e.setSymbolScale(n)})},t.prototype._getNodeGlobalScale=function(e){var t=e.coordinateSystem;if("view"!==t.type)return 1;var n=this._nodeScaleRatio,i=t.scaleX||1;return((t.getZoom()-1)*n+1)/i},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},t.type="tree",t}(v.A);function iH(e,t){var n=e.getItemLayout(t);return n&&!isNaN(n.x)&&!isNaN(n.y)}function iU(e,t,n,i,r){var o=!n,a=e.tree.getNodeByDataIndex(t),s=a.getModel(),l=a.getVisual("style").fill,u=!1===a.isExpand&&0!==a.children.length?l:"#fff",d=e.tree.root,c=a.parentNode===d?a:a.parentNode||a,h=e.getItemGraphicEl(c.dataIndex),p=c.getLayout(),g=h?{x:h.__oldX,y:h.__oldY,rawX:h.__radialOldRawX,rawY:h.__radialOldRawY}:p,f=a.getLayout();o?((n=new iN.A(e,t,null,{symbolInnerColor:u,useNameLabel:!0})).x=g.x,n.y=g.y):n.updateData(e,t,null,{symbolInnerColor:u,useNameLabel:!0}),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=f.rawX,n.__radialRawY=f.rawY,i.add(n),e.setItemGraphicEl(t,n),n.__oldX=n.x,n.__oldY=n.y,es.oi(n,{x:f.x,y:f.y},r);var y=n.getSymbolPath();if("radial"===r.get("layout")){var v=d.children[0],m=v.getLayout(),x=v.children.length,_=void 0,b=void 0;if(f.x===m.x&&!0===a.isExpand&&v.children.length){var S={x:(v.children[0].getLayout().x+v.children[x-1].getLayout().x)/2,y:(v.children[0].getLayout().y+v.children[x-1].getLayout().y)/2};(_=Math.atan2(S.y-m.y,S.x-m.x))<0&&(_=2*Math.PI+_),(b=S.x<m.x)&&(_-=Math.PI)}else(_=Math.atan2(f.y-m.y,f.x-m.x))<0&&(_=2*Math.PI+_),0===a.children.length||0!==a.children.length&&!1===a.isExpand?(b=f.x<m.x)&&(_-=Math.PI):(b=f.x>m.x)||(_-=Math.PI);var w=b?"left":"right",M=s.getModel("label"),I=M.get("rotate"),C=Math.PI/180*I,T=y.getTextContent();T&&(y.setTextConfig({position:M.get("position")||w,rotation:null==I?-_:C,origin:"center"}),T.setStyle("verticalAlign","middle"))}var L=s.get(["emphasis","focus"]),D="relative"===L?A.concatArray(a.getAncestorsIndices(),a.getDescendantIndices()):"ancestor"===L?a.getAncestorsIndices():"descendant"===L?a.getDescendantIndices():null;D&&((0,P.z)(n).focus=D),function(e,t,n,i,r,o,a,s){var l=t.getModel(),u=e.get("edgeShape"),d=e.get("layout"),c=e.getOrient(),h=e.get(["lineStyle","curveness"]),p=e.get("edgeForkPosition"),g=l.getModel("lineStyle").getLineStyle(),f=i.__edge;if("curve"===u)t.parentNode&&t.parentNode!==n&&(f||(f=i.__edge=new ex.A({shape:iq(d,c,h,r,r)})),es.oi(f,{shape:iq(d,c,h,o,a)},e));else if("polyline"===u&&"orthogonal"===d&&t!==n&&t.children&&0!==t.children.length&&!0===t.isExpand){for(var y=t.children,v=[],m=0;m<y.length;m++){var x=y[m].getLayout();v.push([x.x,x.y])}f||(f=i.__edge=new iW({shape:{parentPoint:[a.x,a.y],childPoints:[[a.x,a.y]],orient:c,forkPosition:p}})),es.oi(f,{shape:{parentPoint:[a.x,a.y],childPoints:v}},e)}f&&!("polyline"===u&&!t.isExpand)&&(f.useStyle(A.defaults({strokeNoScale:!0,fill:null},g)),(0,E.Mx)(f,l,"lineStyle"),(0,E.DW)(f),s.add(f))}(r,a,d,n,g,p,f,i),n.__edge&&(n.onHoverStateChange=function(t){if("blur"!==t){var i=a.parentNode&&e.getItemGraphicEl(a.parentNode.dataIndex);i&&i.hoverState===E.zX||(0,E.Pk)(n.__edge,t)}})}function iX(e,t,n,i,r){var o=ij(t.tree.root,e),a=o.source,s=o.sourceLayout,l=t.getItemGraphicEl(e.dataIndex);if(l){var u=t.getItemGraphicEl(a.dataIndex).__edge,d=l.__edge||(!1===a.isExpand||1===a.children.length?u:void 0),c=i.get("edgeShape"),h=i.get("layout"),p=i.get("orient"),g=i.get(["lineStyle","curveness"]);d&&("curve"===c?es.Nz(d,{shape:iq(h,p,g,s,s),style:{opacity:0}},i,{cb:function(){n.remove(d)},removeOpt:r}):"polyline"===c&&"orthogonal"===i.get("layout")&&es.Nz(d,{shape:{parentPoint:[s.x,s.y],childPoints:[[s.x,s.y]]},style:{opacity:0}},i,{cb:function(){n.remove(d)},removeOpt:r}))}}function ij(e,t){for(var n,i=t.parentNode===e?t:t.parentNode||t;null==(n=i.getLayout());)i=i.parentNode===e?i:i.parentNode||i;return{source:i,sourceLayout:n}}function iZ(e,t,n,i,r){var o=e.tree.getNodeByDataIndex(t),a=ij(e.tree.root,o).sourceLayout,s={duration:r.get("animationDurationUpdate"),easing:r.get("animationEasingUpdate")};es.Nz(n,{x:a.x+1,y:a.y+1},r,{cb:function(){i.remove(n),e.setItemGraphicEl(t,null)},removeOpt:s}),n.fadeOut(null,e.hostModel,{fadeLabel:!0,animation:s}),o.children.forEach(function(t){iX(t,e,i,r,s)}),iX(o,e,i,r,s)}function iq(e,t,n,i,r){if("radial"===e){u=i.rawX,c=i.rawY,d=r.rawX;var o,a,s,l,u,d,c,h=r.rawY,p=iV(u,c),g=iV(u,c+(h-c)*n),f=iV(d,h+(c-h)*n),y=iV(d,h);return{x1:p.x||0,y1:p.y||0,x2:y.x||0,y2:y.y||0,cpx1:g.x||0,cpy1:g.y||0,cpx2:f.x||0,cpy2:f.y||0}}return u=i.x,c=i.y,d=r.x,h=r.y,("LR"===t||"RL"===t)&&(o=u+(d-u)*n,a=c,s=d+(u-d)*n,l=h),("TB"===t||"BT"===t)&&(o=u,a=c+(h-c)*n,s=d,l=h+(c-h)*n),{x1:u,y1:c,x2:d,y2:h,cpx1:o,cpy1:a,cpx2:s,cpy2:l}}var i$=(0,eV.$r)();function iJ(e,t){var n;if(n=this,i$(n).mainData===n){var i=(0,A.extend)({},i$(this).datas);i[this.dataType]=t,i2(t,i,e)}else i5(t,this.dataType,i$(this).mainData,e);return t}function iQ(e,t){return e.struct&&e.struct.update(),t}function iK(e,t){return(0,A.each)(i$(t).datas,function(n,i){n!==t&&i5(n.cloneShallow(),i,t,e)}),t}function i0(e){var t=i$(this).mainData;return null==e||null==t?t:i$(t).datas[e]}function i1(){var e=i$(this).mainData;return null==e?[{data:e}]:(0,A.map)((0,A.keys)(i$(e).datas),function(t){return{type:t,data:i$(e).datas[t]}})}function i2(e,t,n){i$(e).datas={},(0,A.each)(t,function(t,i){i5(t,i,e,n)})}function i5(e,t,n,i){i$(n).datas[t]=e,i$(e).mainData=n,e.dataType=t,i.struct&&(e[i.structAttr]=i.struct,i.struct[i.datasAttr[t]]=e),e.getLinkedData=i0,e.getLinkedDataAll=i1}let i3=function(e){var t=e.mainData,n=e.datas;n||(n={main:t},e.datasAttr={main:"data"}),e.datas=e.mainData=null,i2(t,n,e),(0,A.each)(n,function(n){(0,A.each)(t.TRANSFERABLE_METHODS,function(t){n.wrapMethod(t,(0,A.curry)(iJ,e))})}),t.wrapMethod("cloneShallow",(0,A.curry)(iK,e)),(0,A.each)(t.CHANGABLE_METHODS,function(n){t.wrapMethod(n,(0,A.curry)(iQ,e))}),(0,A.assert)(n[t.dataType]===t)};var i6=function(){function e(e,t){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=e||"",this.hostTree=t}return e.prototype.isRemoved=function(){return this.dataIndex<0},e.prototype.eachNode=function(e,t,n){A.isFunction(e)&&(n=t,t=e,e=null),e=e||{},A.isString(e)&&(e={order:e});var i,r=e.order||"preorder",o=this[e.attr||"children"];"preorder"===r&&(i=t.call(n,this));for(var a=0;!i&&a<o.length;a++)o[a].eachNode(e,t,n);"postorder"===r&&t.call(n,this)},e.prototype.updateDepthAndHeight=function(e){var t=0;this.depth=e;for(var n=0;n<this.children.length;n++){var i=this.children[n];i.updateDepthAndHeight(e+1),i.height>t&&(t=i.height)}this.height=t+1},e.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,n=this.children,i=n.length;t<i;t++){var r=n[t].getNodeById(e);if(r)return r}},e.prototype.contains=function(e){if(e===this)return!0;for(var t=0,n=this.children,i=n.length;t<i;t++){var r=n[t].contains(e);if(r)return r}},e.prototype.getAncestors=function(e){for(var t=[],n=e?this:this.parentNode;n;)t.push(n),n=n.parentNode;return t.reverse(),t},e.prototype.getAncestorsIndices=function(){for(var e=[],t=this;t;)e.push(t.dataIndex),t=t.parentNode;return e.reverse(),e},e.prototype.getDescendantIndices=function(){var e=[];return this.eachNode(function(t){e.push(t.dataIndex)}),e},e.prototype.getValue=function(e){var t=this.hostTree.data;return t.getStore().get(t.getDimensionIndex(e||"value"),this.dataIndex)},e.prototype.setLayout=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},e.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},e.prototype.getModel=function(e){if(!(this.dataIndex<0))return this.hostTree.data.getItemModel(this.dataIndex).getModel(e)},e.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},e.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},e.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},e.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},e.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},e.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t<e.length;++t)if(e[t]===this)return t}return -1},e.prototype.isAncestorOf=function(e){for(var t=e.parentNode;t;){if(t===this)return!0;t=t.parentNode}return!1},e.prototype.isDescendantOf=function(e){return e!==this&&e.isAncestorOf(this)},e}(),i4=function(){function e(e){this.type="tree",this._nodes=[],this.hostModel=e}return e.prototype.eachNode=function(e,t,n){this.root.eachNode(e,t,n)},e.prototype.getNodeByDataIndex=function(e){var t=this.data.getRawIndex(e);return this._nodes[t]},e.prototype.getNodeById=function(e){return this.root.getNodeById(e)},e.prototype.update=function(){for(var e=this.data,t=this._nodes,n=0,i=t.length;n<i;n++)t[n].dataIndex=-1;for(var n=0,i=e.count();n<i;n++)t[e.getRawIndex(n)].dataIndex=n},e.prototype.clearLayouts=function(){this.data.clearItemLayouts()},e.createTree=function(t,n,i){var r=new e(n),o=[],a=1;!function e(t,n){var i,s,l,u=t.value;a=Math.max(a,A.isArray(u)?u.length:1),o.push(t);var d=new i6((0,eV.vS)(t.name,""),r);n?(i=d,l=(s=n).children,i.parentNode!==s&&(l.push(i),i.parentNode=s)):r.root=d,r._nodes.push(d);var c=t.children;if(c)for(var h=0;h<c.length;h++)e(c[h],d)}(t),r.root.updateDepthAndHeight(0);var s=(0,k.A)(o,{coordDimensions:["value"],dimensionsCount:a}).dimensions,l=new m.A(s,n);return l.initData(o),i&&i(l),i3({mainData:l,struct:r,structAttr:"tree"}),r.update(),r},e}();function i8(e,t,n){if(e&&A.indexOf(t,e.type)>=0){var i=n.getData().tree.root,r=e.targetNode;if(A.isString(r)&&(r=i.getNodeById(r)),r&&i.contains(r))return{node:r};var o=e.targetNodeId;if(null!=o&&(r=i.getNodeById(o)))return{node:r}}}function i7(e){for(var t=[];e;)(e=e.parentNode)&&t.push(e);return t.reverse()}function i9(e,t){var n=i7(e);return A.indexOf(n,t)>=0}function re(e,t){for(var n=[];e;){var i=e.dataIndex;n.push({name:e.name,dataIndex:i,value:t.getRawValue(i)}),e=e.parentNode}return n.reverse(),n}var rt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return(0,W.C6)(t,e),t.prototype.getInitialData=function(e){var t={name:e.name,children:e.data},n=e.leaves||{},i=new T.A(n,this,this.ecModel),r=i4.createTree(t,this,function(e){e.wrapMethod("getItemModel",function(e,t){var n=r.getNodeByDataIndex(t);return n&&n.children.length&&n.isExpand||(e.parentModel=i),e})}),o=0;r.eachNode("preorder",function(e){e.depth>o&&(o=e.depth)});var a=e.expandAndCollapse&&e.initialTreeDepth>=0?e.initialTreeDepth:o;return r.root.eachNode("preorder",function(e){var t=e.hostTree.data.getRawDataItem(e.dataIndex);e.isExpand=t&&null!=t.collapsed?!t.collapsed:e.depth<=a}),r.data},t.prototype.getOrient=function(){var e=this.get("orient");return"horizontal"===e?e="LR":"vertical"===e&&(e="TB"),e},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.formatTooltip=function(e,t,n){for(var i=this.getData().tree,r=i.root.children[0],o=i.getNodeByDataIndex(e),a=o.getValue(),s=o.name;o&&o!==r;)s=o.parentNode.name+"."+s,o=o.parentNode;return(0,nt.Qx)("nameValue",{name:s,value:a,noValue:isNaN(a)||null==a})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=re(i,this),n.collapsed=!i.isExpand,n},t.type="series.tree",t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}(y.A);function rn(e,t){for(var n,i=[e];n=i.pop();)if(t(n),n.isExpand){var r=n.children;if(r.length)for(var o=r.length-1;o>=0;o--)i.push(r[o])}}function ri(e,t){e.eachSeriesByType("tree",function(e){!function(e,t){var n=L.dV(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()});e.layoutInfo=n;var i=e.get("layout"),r=0,o=0,a=null;"radial"===i?(r=2*Math.PI,o=Math.min(n.height,n.width)/2,a=iE(function(e,t){return(e.parentNode===t.parentNode?1:2)/e.depth})):(r=n.width,o=n.height,a=iE());var s=e.getData().tree.root,l=s.children[0];if(l){!function(e){e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var t,n,i=[e];t=i.pop();)if(n=t.children,t.isExpand&&n.length)for(var r=n.length,o=r-1;o>=0;o--){var a=n[o];a.hierNode={defaultAncestor:null,ancestor:a,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},i.push(a)}}(s),function(e,t,n){for(var i,r=[e],o=[];i=r.pop();)if(o.push(i),i.isExpand){var a=i.children;if(a.length)for(var s=0;s<a.length;s++)r.push(a[s])}for(;i=o.pop();)t(i,n)}(l,ik,a),s.hierNode.modifier=-l.hierNode.prelim,rn(l,iR);var u=l,d=l,c=l;rn(l,function(e){var t=e.getLayout().x;t<u.getLayout().x&&(u=e),t>d.getLayout().x&&(d=e),e.depth>c.depth&&(c=e)});var h=u===d?1:a(u,d)/2,p=h-u.getLayout().x,g=0,f=0,y=0,v=0;if("radial"===i)g=r/(d.getLayout().x+h+p),f=o/(c.depth-1||1),rn(l,function(e){y=(e.getLayout().x+p)*g,v=(e.depth-1)*f;var t=iV(y,v);e.setLayout({x:t.x,y:t.y,rawX:y,rawY:v},!0)});else{var m=e.getOrient();"RL"===m||"LR"===m?(f=o/(d.getLayout().x+h+p),g=r/(c.depth-1||1),rn(l,function(e){v=(e.getLayout().x+p)*f,y="LR"===m?(e.depth-1)*g:r-(e.depth-1)*g,e.setLayout({x:y,y:v},!0)})):("TB"===m||"BT"===m)&&(g=r/(d.getLayout().x+h+p),f=o/(c.depth-1||1),rn(l,function(e){y=(e.getLayout().x+p)*g,v="TB"===m?(e.depth-1)*f:o-(e.depth-1)*f,e.setLayout({x:y,y:v},!0)}))}}}(e,t)})}function rr(e){e.eachSeriesByType("tree",function(e){var t=e.getData();t.tree.eachNode(function(e){var n=e.getModel().getModel("itemStyle").getItemStyle(),i=t.ensureUniqueItemVisual(e.dataIndex,"style");(0,A.extend)(i,n)})})}var ro=["treemapZoomToNode","treemapRender","treemapMove"],ra=n(57699);function rs(e){var t=e.getData().tree,n={};t.eachNode(function(t){for(var i=t;i&&i.depth>1;)i=i.parentNode;var r=(0,ra.x)(e.ecModel,i.name||i.dataIndex+"",n);t.setVisual("decal",r)})}var rl=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.preventUsingHoverLayer=!0,n}return(0,W.C6)(t,e),t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};!function e(t){var n=0;A.each(t.children,function(t){e(t);var i=t.value;A.isArray(i)&&(i=i[0]),n+=i});var i=t.value;A.isArray(i)&&(i=i[0]),(null==i||isNaN(i))&&(i=n),i<0&&(i=0),A.isArray(t.value)?t.value[0]=i:t.value=i}(n);var i=e.levels||[],r=this.designatedVisualItemStyle={},o=new T.A({itemStyle:r},this,t);i=e.levels=function(e,t){var n,i,r=(0,eV.qB)(t.get("color")),o=(0,eV.qB)(t.get(["aria","decal","decals"]));if(r){e=e||[],A.each(e,function(e){var t=new T.A(e),r=t.get("color"),o=t.get("decal");(t.get(["itemStyle","color"])||r&&"none"!==r)&&(n=!0),(t.get(["itemStyle","decal"])||o&&"none"!==o)&&(i=!0)});var a=e[0]||(e[0]={});return n||(a.color=r.slice()),!i&&o&&(a.decal=o.slice()),e}}(i,t);var a=A.map(i||[],function(e){return new T.A(e,o,t)},this),s=i4.createTree(n,this,function(e){e.wrapMethod("getItemModel",function(e,t){var n=s.getNodeByDataIndex(t);return e.parentModel=(n?a[n.depth]:null)||o,e})});return s.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,t,n){var i=this.getData(),r=this.getRawValue(e),o=i.getName(e);return(0,nt.Qx)("nameValue",{name:o,value:r})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments);return n.treeAncestors=re(this.getData().tree.getNodeByDataIndex(t),this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},A.extend(this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var t=this._idIndexMap;t||(t=this._idIndexMap=A.createHashMap(),this._idIndexMapCount=0);var n=t.get(e);return null==n&&t.set(e,n=this._idIndexMapCount++),n},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;e&&(e===t||t.contains(e))||(this._viewRoot=t)},t.prototype.enableAriaDecal=function(){rs(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.1024,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t}(y.A),ru=n(31393),rd=function(){function e(e){this.group=new el.A,e.add(this.group)}return e.prototype.render=function(e,t,n,i){var r=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),r.get("show")&&n){var a=r.getModel("itemStyle"),s=r.getModel("emphasis"),l=a.getModel("textStyle"),u=s.getModel(["itemStyle","textStyle"]),d={pos:{left:r.get("left"),right:r.get("right"),top:r.get("top"),bottom:r.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:r.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,d,l),this._renderContent(e,d,a,s,l,u,i),L.m$(o,d.pos,d.box)}},e.prototype._prepare=function(e,t,n){for(var i=e;i;i=i.parentNode){var r=(0,eV.vS)(i.getModel().get("name"),""),o=Math.max(n.getTextRect(r).width+16,t.emptyItemWidth);t.totalWidth+=o+8,t.renderList.push({node:i,text:r,width:o})}},e.prototype._renderContent=function(e,t,n,i,r,o,a){for(var s=0,l=t.emptyItemWidth,u=e.get(["breadcrumb","height"]),d=L.HU(t.pos,t.box),c=t.totalWidth,h=t.renderList,p=i.getModel("itemStyle").getItemStyle(),g=h.length-1;g>=0;g--){var f,y,v,m=h[g],x=m.node,_=m.width,b=m.text;c>d.width&&(c-=_-l,_=l,b=null);var S=new ef.A({shape:{points:function(e,t,n,i,r,o){var a=[[r?e:e-5,0],[e+n,0],[e+n,0+i],[r?e:e-5,0+i]];return o||a.splice(2,0,[e+n+5,0+i/2]),r||a.push([e,0+i/2]),a}(s,0,_,u,g===h.length-1,0===g)},style:(0,A.defaults)(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new ed.Ay({style:(0,N.VB)(r,{text:b})}),textConfig:{position:"inside"},z2:1e4*E.CA,onclick:(0,A.curry)(a,x)});S.disableLabelAnimation=!0,S.getTextContent().ensureState("emphasis").style=(0,N.VB)(o,{text:b}),S.ensureState("emphasis").style=p,(0,E.Lm)(S,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(S),f=S,y=e,v=x,(0,P.z)(f).eventData={componentType:"series",componentSubType:"treemap",componentIndex:y.componentIndex,seriesIndex:y.seriesIndex,seriesName:y.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:v&&v.dataIndex,name:v&&v.name},treePathInfo:v&&re(v,y)},s+=_+8}},e.prototype.remove=function(){this.group.removeAll()},e}(),rc=function(){function e(){this._storage=[],this._elExistsMap={}}return e.prototype.add=function(e,t,n,i,r){return!this._elExistsMap[e.id]&&(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:n,delay:i,easing:r}),!0)},e.prototype.finished=function(e){return this._finishedCallback=e,this},e.prototype.start=function(){for(var e=this,t=this._storage.length,n=function(){--t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},i=0,r=this._storage.length;i<r;i++){var o=this._storage[i];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:n,aborted:n})}return this},e}(),rh=n(80266),rp=el.A,rg=ev.A,rf="label",ry="upperLabel",rv=10*E.CA,rm=2*E.CA,rx=3*E.CA,r_=(0,rh.A)([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),rb=function(e){var t=r_(e);return t.stroke=t.fill=t.lineWidth=null,t},rA=(0,eV.$r)(),rS=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._state="ready",n._storage=rw(),n}return(0,W.C6)(t,e),t.prototype.render=function(e,t,n,i){var r=t.findComponents({mainType:"series",subType:"treemap",query:i});if(!(0>(0,A.indexOf)(r,e))){this.seriesModel=e,this.api=n,this.ecModel=t;var o=i8(i,["treemapZoomToNode","treemapRootToNode"],e),a=i&&i.type,s=e.layoutInfo,l=!this._oldTree,u=this._storage,d="treemapRootToNode"===a&&o&&u?{rootNodeGroup:u.nodeGroup[o.node.getRawIndex()],direction:i.direction}:null,c=this._giveContainerGroup(s),h=e.get("animation"),p=this._doRender(c,e,d);!h||l||a&&"treemapZoomToNode"!==a&&"treemapRootToNode"!==a?p.renderFinally():this._doAnimation(c,p,e,d),this._resetController(n),this._renderBreadcrumb(e,n,o)}},t.prototype._giveContainerGroup=function(e){var t=this._containerGroup;return t||(t=this._containerGroup=new rp,this._initEvents(t),this.group.add(t)),t.x=e.x,t.y=e.y,t},t.prototype._doRender=function(e,t,n){var i,r,o=t.getData().tree,a=this._oldTree,s=rw(),l=rw(),u=this._storage,d=[];!function e(i,r,o,a,c){function h(e){return e.getId()}function p(h,p){var g=null!=h?i[h]:null,f=null!=p?r[p]:null,y=function(e,t,n,i,r,o,a,s,l,u){if(a){var d=a.getLayout(),c=e.getData(),h=a.getModel();if(c.setItemGraphicEl(a.dataIndex,null),d&&d.isInView){var p=d.width,g=d.height,f=d.borderWidth,y=d.invisible,v=a.getRawIndex(),m=s&&s.getRawIndex(),x=a.viewChildren,_=d.upperHeight,b=x&&x.length,S=h.getModel("itemStyle"),w=h.getModel(["emphasis","itemStyle"]),M=h.getModel(["blur","itemStyle"]),I=h.getModel(["select","itemStyle"]),C=S.get("borderRadius")||0,T=W("nodeGroup",rp);if(T){if(l.add(T),T.x=d.x||0,T.y=d.y||0,T.markRedraw(),rA(T).nodeWidth=p,rA(T).nodeHeight=g,d.isAboveViewRoot)return T;var L=W("background",rg,u,rm);L&&function(t,n,i){var r=(0,P.z)(n);if(r.dataIndex=a.dataIndex,r.seriesIndex=e.seriesIndex,n.setShape({x:0,y:0,width:p,height:g,r:C}),y)G(n);else{n.invisible=!1;var o=a.getVisual("style"),s=o.stroke,l=rb(S);l.fill=s;var u=r_(w);u.fill=w.get("borderColor");var d=r_(M);d.fill=M.get("borderColor");var c=r_(I);if(c.fill=I.get("borderColor"),i){var h=p-2*f;B(n,s,o.opacity,{x:f,y:0,width:h,height:_})}else n.removeTextContent();n.setStyle(l),n.ensureState("emphasis").style=u,n.ensureState("blur").style=d,n.ensureState("select").style=c,(0,E.DW)(n)}t.add(n)}(T,L,b&&d.upperLabelHeight);var D=h.getModel("emphasis"),k=D.get("focus"),R=D.get("blurScope"),V=D.get("disabled"),z="ancestor"===k?a.getAncestorsIndices():"descendant"===k?a.getDescendantIndices():k;if(b)(0,E.u6)(T)&&(0,E.ix)(T,!1),L&&((0,E.ix)(L,!V),c.setItemGraphicEl(a.dataIndex,L),(0,E.gR)(L,z,R));else{var O=W("content",rg,u,rx);O&&function(t,n){var i=(0,P.z)(n);i.dataIndex=a.dataIndex,i.seriesIndex=e.seriesIndex;var r=Math.max(p-2*f,0),o=Math.max(g-2*f,0);if(n.culling=!0,n.setShape({x:f,y:f,width:r,height:o,r:C}),y)G(n);else{n.invisible=!1;var s=a.getVisual("style"),l=s.fill,u=rb(S);u.fill=l,u.decal=s.decal;var d=r_(w),c=r_(M),h=r_(I);B(n,l,s.opacity,null),n.setStyle(u),n.ensureState("emphasis").style=d,n.ensureState("blur").style=c,n.ensureState("select").style=h,(0,E.DW)(n)}t.add(n)}(T,O),L.disableMorphing=!0,L&&(0,E.u6)(L)&&(0,E.ix)(L,!1),(0,E.ix)(T,!V),c.setItemGraphicEl(a.dataIndex,T),(0,E.gR)(T,z,R)}return T}}}function G(e){e.invisible||o.push(e)}function B(t,n,i,r){var o=h.getModel(r?ry:rf),s=(0,eV.vS)(h.get("name"),null),l=o.getShallow("show");(0,N.qM)(t,(0,N.lx)(h,r?ry:rf),{defaultText:l?s:null,inheritColor:n,defaultOpacity:i,labelFetcher:e,labelDataIndex:a.dataIndex});var u=t.getTextContent();if(u){var c=u.style,p=(0,A.normalizeCssArray)(c.padding||0);r&&(t.setTextConfig({layoutRect:r}),u.disableLabelLayout=!0),u.beforeUpdate=function(){var e=Math.max((r?r.width:t.shape.width)-p[1]-p[3],0),n=Math.max((r?r.height:t.shape.height)-p[0]-p[2],0);(c.width!==e||c.height!==n)&&u.setStyle({width:e,height:n})},c.truncateMinChar=2,c.lineOverflow="truncate",F(c,r,d);var g=u.getState("emphasis");F(g?g.style:null,r,d)}}function F(t,n,i){var r=t?t.text:null;if(!n&&i.isLeafRoot&&null!=r){var o=e.get("drillDownIcon",!0);t.text=o?o+" "+r:r}}function W(e,o,s,l){var u,d,c,h=null!=m&&n[e][m],p=r[e];return h?(n[e][m]=null,u=p,d=h,c=u[v]={},d instanceof rp?(c.oldX=d.x,c.oldY=d.y):c.oldShape=(0,A.extend)({},d.shape)):y||((h=new o)instanceof n5.Ay&&(h.z2=s*rv+l),function(e,t){var n=e[v]={},o=a.parentNode,s=t instanceof el.A;if(o&&(!i||"drillDown"===i.direction)){var l=0,u=0,d=r.background[o.getRawIndex()];!i&&d&&d.oldShape&&(l=d.oldShape.width,u=d.oldShape.height),s?(n.oldX=0,n.oldY=u):n.oldShape={x:l,y:u,width:0,height:0}}n.fadein=!s}(p,h)),t[e][v]=h}}(t,l,u,n,s,d,g,f,o,c);y&&e(g&&g.viewChildren||[],f&&f.viewChildren||[],y,a,c+1)}a?(r=i,(0,A.each)(i,function(e,t){e.isRemoved()||p(t,t)})):new ru.A(r,i,h,h).add(p).update(p).remove((0,A.curry)(p,null)).execute()}(o.root?[o.root]:[],a&&a.root?[a.root]:[],e,o===a||!a,0);var c=(i=u,r=rw(),i&&(0,A.each)(i,function(e,t){var n=r[t];(0,A.each)(e,function(e){e&&(n.push(e),rA(e).willDelete=!0)})}),r);return this._oldTree=o,this._storage=l,{lastsForAnimation:s,willDeleteEls:c,renderFinally:function(){(0,A.each)(c,function(e){(0,A.each)(e,function(e){e.parent&&e.parent.remove(e)})}),(0,A.each)(d,function(e){e.invisible=!0,e.dirty()})}}},t.prototype._doAnimation=function(e,t,n,i){var r=n.get("animationDurationUpdate"),o=n.get("animationEasing"),a=((0,A.isFunction)(r)?0:r)||0,s=((0,A.isFunction)(o)?null:o)||"cubicOut",l=new rc;(0,A.each)(t.willDeleteEls,function(e,t){(0,A.each)(e,function(e,n){if(!e.invisible){var r,o=e.parent,u=rA(o);if(i&&"drillDown"===i.direction)r=o===i.rootNodeGroup?{shape:{x:0,y:0,width:u.nodeWidth,height:u.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var d=0,c=0;u.willDelete||(d=u.nodeWidth/2,c=u.nodeHeight/2),r="nodeGroup"===t?{x:d,y:c,style:{opacity:0}}:{shape:{x:d,y:c,width:0,height:0},style:{opacity:0}}}r&&l.add(e,r,a,0,s)}})}),(0,A.each)(this._storage,function(e,n){(0,A.each)(e,function(e,i){var r=t.lastsForAnimation[n][i],o={};r&&(e instanceof el.A?null!=r.oldX&&(o.x=e.x,o.y=e.y,e.x=r.oldX,e.y=r.oldY):(r.oldShape&&(o.shape=(0,A.extend)({},e.shape),e.setShape(r.oldShape)),r.fadein?(e.setStyle("opacity",0),o.style={opacity:1}):1!==e.style.opacity&&(o.style={opacity:1})),l.add(e,o,a,0,s))})},this),this._state="animating",l.finished((0,A.bind)(function(){this._state="ready",t.renderFinally()},this)).start()},t.prototype._resetController=function(e){var t=this._controller;t||((t=this._controller=new ng.A(e.getZr())).enable(this.seriesModel.get("roam")),t.on("pan",(0,A.bind)(this._onPan,this)),t.on("zoom",(0,A.bind)(this._onZoom,this)));var n=new Y.A(0,0,e.getWidth(),e.getHeight());t.setPointerChecker(function(e,t,i){return n.contain(t,i)})},t.prototype._clearController=function(){var e=this._controller;e&&(e.dispose(),e=null)},t.prototype._onPan=function(e){if("animating"!==this._state&&(Math.abs(e.dx)>3||Math.abs(e.dy)>3)){var t=this.seriesModel.getData().tree.root;if(t){var n=t.getLayout();n&&this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+e.dx,y:n.y+e.dy,width:n.width,height:n.height}})}}},t.prototype._onZoom=function(e){var t=e.originX,n=e.originY;if("animating"!==this._state){var i=this.seriesModel.getData().tree.root;if(!i)return;var r=i.getLayout();if(!r)return;var o=new Y.A(r.x,r.y,r.width,r.height),a=this.seriesModel.layoutInfo;t-=a.x,n-=a.y;var s=_.create();_.translate(s,s,[-t,-n]),_.scale(s,s,[e.scale,e.scale]),_.translate(s,s,[t,n]),o.applyTransform(s),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:o.x,y:o.y,width:o.width,height:o.height}})}},t.prototype._initEvents=function(e){var t=this;e.on("click",function(e){if("ready"===t._state){var n=t.seriesModel.get("nodeClick",!0);if(n){var i=t.findTarget(e.offsetX,e.offsetY);if(i){var r=i.node;if(r.getLayout().isLeafRoot)t._rootToNode(i);else if("zoomToNode"===n)t._zoomToNode(i);else if("link"===n){var o=r.hostTree.data.getItemModel(r.dataIndex),a=o.get("link",!0),s=o.get("target",!0)||"blank";a&&(0,eM.JW)(a,s)}}}}},this)},t.prototype._renderBreadcrumb=function(e,t,n){var i=this;!n&&((n=null!=e.get("leafDepth",!0)?{node:e.getViewRoot()}:this.findTarget(t.getWidth()/2,t.getHeight()/2))||(n={node:e.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new rd(this.group))).render(e,t,n.node,function(t){"animating"!==i._state&&(i9(e.getViewRoot(),t)?i._rootToNode({node:t}):i._zoomToNode({node:t}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=rw(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(e){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype._rootToNode=function(e){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype.findTarget=function(e,t){var n;return this.seriesModel.getViewRoot().eachNode({attr:"viewChildren",order:"preorder"},function(i){var r=this._storage.background[i.getRawIndex()];if(r){var o=r.transformCoordToLocal(e,t),a=r.shape;if(!(a.x<=o[0])||!(o[0]<=a.x+a.width)||!(a.y<=o[1])||!(o[1]<=a.y+a.height))return!1;n={node:i,offsetX:o[0],offsetY:o[1]}}},this),n},t.type="treemap",t}(v.A);function rw(){return{nodeGroup:[],background:[],content:[]}}var rM=n(39111),rI=(0,eV.$r)();let rC={seriesType:"treemap",reset:function(e){var t=e.getData().tree.root;t.isRemoved()||function e(t,n,i,r){var o=t.getModel(),a=t.getLayout(),s=t.hostTree.data;if(a&&!a.invisible&&a.isInView){var l,u,d,c,h,p,g,f=o.getModel("itemStyle"),y=(l=f,u=n,d=r,c=(0,A.extend)({},u),h=d.designatedVisualItemStyle,(0,A.each)(["color","colorAlpha","colorSaturation"],function(e){h[e]=u[e];var t=l.get(e);h[e]=null,null!=t&&(c[e]=t)}),c),v=s.ensureUniqueItemVisual(t.dataIndex,"style"),m=f.get("borderColor"),x=f.get("borderColorSaturation");null!=x&&(p=x,m=null!=(g=rT(y))?(0,S.modifyHSL)(g,null,null,p):null),v.stroke=m;var _=t.viewChildren;if(_&&_.length){var b=function(e,t,n,i,r,o){if(o&&o.length){var a=rD(t,"color")||null!=r.color&&"none"!==r.color&&(rD(t,"colorAlpha")||rD(t,"colorSaturation"));if(a){var s=t.get("visualMin"),l=t.get("visualMax"),u=n.dataExtent.slice();null!=s&&s<u[0]&&(u[0]=s),null!=l&&l>u[1]&&(u[1]=l);var d=t.get("colorMappingBy"),c={type:a.name,dataExtent:u,visual:a.range};"color"===c.type&&("index"===d||"id"===d)?(c.mappingMethod="category",c.loop=!0):c.mappingMethod="linear";var h=new rM.A(c);return rI(h).drColorMappingBy=d,h}}}(0,o,a,0,y,_);(0,A.each)(_,function(t,n){if(t.depth>=i.length||t===i[t.depth]){var a=function(e,t,n,i,r,o){var a=(0,A.extend)({},t);if(r){var s=r.type,l="color"===s&&rI(r).drColorMappingBy,u="index"===l?i:"id"===l?o.mapIdToIndex(n.getId()):n.getValue(e.get("visualDimension"));a[s]=r.mapValueToVisual(u)}return a}(o,y,t,n,b,r);e(t,a,i,r)}})}else v.fill=rT(y)}}(t,{},e.getViewRoot().getAncestors(),e)}};function rT(e){var t=rL(e,"color");if(t){var n=rL(e,"colorAlpha"),i=rL(e,"colorSaturation");return i&&(t=(0,S.modifyHSL)(t,null,null,i)),n&&(t=(0,S.modifyAlpha)(t,n)),t}}function rL(e,t){var n=e[t];if(null!=n&&"none"!==n)return n}function rD(e,t){var n=e.get(t);return(0,A.isArray)(n)&&n.length?{name:t,range:n}:null}var rP=Math.max,rN=Math.min,rk=A.retrieve,rR=A.each,rE=["itemStyle","borderWidth"],rV=["itemStyle","gapWidth"],rz=["upperLabel","show"],rO=["upperLabel","height"];let rG={seriesType:"treemap",reset:function(e,t,n,i){var r=n.getWidth(),o=n.getHeight(),a=e.option,s=L.dV(e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=a.size||[],u=(0,er.lo)(rk(s.width,l[0]),r),d=(0,er.lo)(rk(s.height,l[1]),o),c=i&&i.type,h=i8(i,["treemapZoomToNode","treemapRootToNode"],e),p="treemapRender"===c||"treemapMove"===c?i.rootRect:null,g=e.getViewRoot(),f=i7(g);if("treemapMove"!==c){var y="treemapZoomToNode"===c?function(e,t,n,i,r){var o,a=(t||{}).node,s=[i,r];if(!a||a===n)return s;for(var l=i*r,u=l*e.option.zoomToNodeRatio;o=a.parentNode;){for(var d=0,c=o.children,h=0,p=c.length;h<p;h++)d+=c[h].getValue();var g=a.getValue();if(0===g)return s;u*=d/g;var f=o.getModel(),y=f.get(rE),v=Math.max(y,rF(f));(u+=4*y*y+(3*y+v)*Math.pow(u,.5))>er.Is&&(u=er.Is),a=o}u<l&&(u=l);var m=Math.pow(u/l,.5);return[i*m,r*m]}(e,h,g,u,d):p?[p.width,p.height]:[u,d],v=a.sort;v&&"asc"!==v&&"desc"!==v&&(v="desc");var m={squareRatio:a.squareRatio,sort:v,leafDepth:a.leafDepth};g.hostTree.clearLayouts();var x={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};g.setLayout(x),function e(t,n,i,r){if(!t.isRemoved()){var o,a,s=t.getLayout();o=s.width,a=s.height;var l=t.getModel(),u=l.get(rE),d=l.get(rV)/2,c=rF(l),h=Math.max(u,c),p=u-d,g=h-d;t.setLayout({borderWidth:u,upperHeight:h,upperLabelHeight:c},!0);var f=(o=rP(o-2*p,0))*(a=rP(a-p-g,0)),y=function(e,t,n,i,r,o){var a,s,l=e.children||[],u=i.sort;"asc"!==u&&"desc"!==u&&(u=null);var d=null!=i.leafDepth&&i.leafDepth<=o;if(r&&!d)return e.viewChildren=[];a=l=A.filter(l,function(e){return!e.isRemoved()}),(s=u)&&a.sort(function(e,t){var n="asc"===s?e.getValue()-t.getValue():t.getValue()-e.getValue();return 0===n?"asc"===s?e.dataIndex-t.dataIndex:t.dataIndex-e.dataIndex:n});var c=function(e,t,n){for(var i,r=0,o=0,a=t.length;o<a;o++)r+=t[o].getValue();var s=e.get("visualDimension");return t&&t.length?"value"===s&&n?(i=[t[t.length-1].getValue(),t[0].getValue()],"asc"===n&&i.reverse()):(i=[1/0,-1/0],rR(t,function(e){var t=e.getValue(s);t<i[0]&&(i[0]=t),t>i[1]&&(i[1]=t)})):i=[NaN,NaN],{sum:r,dataExtent:i}}(t,l,u);if(0===c.sum||(c.sum=function(e,t,n,i,r){if(!i)return n;for(var o=e.get("visibleMin"),a=r.length,s=a,l=a-1;l>=0;l--){var u=r["asc"===i?a-l-1:l].getValue();u/n*t<o&&(s=l,n-=u)}return"asc"===i?r.splice(0,a-s):r.splice(s,a-s),n}(t,n,c.sum,u,l),0===c.sum))return e.viewChildren=[];for(var h=0,p=l.length;h<p;h++){var g=l[h].getValue()/c.sum*n;l[h].setLayout({area:g})}return d&&(l.length&&e.setLayout({isLeafRoot:!0},!0),l.length=0),e.viewChildren=l,e.setLayout({dataExtent:c.dataExtent},!0),l}(t,l,f,n,i,r);if(y.length){var v={x:p,y:g,width:o,height:a},m=rN(o,a),x=1/0,_=[];_.area=0;for(var b=0,S=y.length;b<S;){var w=y[b];_.push(w),_.area+=w.getLayout().area;var M=function(e,t,n){for(var i=0,r=1/0,o=0,a=void 0,s=e.length;o<s;o++)(a=e[o].getLayout().area)&&(a<r&&(r=a),a>i&&(i=a));var l=e.area*e.area,u=t*t*n;return l?rP(u*i/l,l/(u*r)):1/0}(_,m,n.squareRatio);M<=x?(b++,x=M):(_.area-=_.pop().getLayout().area,rB(_,m,v,d,!1),m=rN(v.width,v.height),_.length=_.area=0,x=1/0)}if(_.length&&rB(_,m,v,d,!0),!i){var I=l.get("childrenVisibleMin");null!=I&&f<I&&(i=!0)}for(var b=0,S=y.length;b<S;b++)e(y[b],n,i,r+1)}}}(g,m,!1,0),x=g.getLayout(),rR(f,function(e,t){var n=(f[t+1]||g).getValue();e.setLayout(A.extend({dataExtent:[n,n],borderWidth:0,upperHeight:0},x))})}var _=e.getData().tree.root;_.setLayout(function(e,t,n){if(t)return{x:t.x,y:t.y};var i={x:0,y:0};if(!n)return i;var r=n.node,o=r.getLayout();if(!o)return i;for(var a=[o.width/2,o.height/2],s=r;s;){var l=s.getLayout();a[0]+=l.x,a[1]+=l.y,s=s.parentNode}return{x:e.width/2-a[0],y:e.height/2-a[1]}}(s,p,h),!0),e.setLayoutInfo(s),function e(t,n,i,r,o){var a=t.getLayout(),s=i[o],l=s&&s===t;if((!s||l)&&(o!==i.length||t===r)){t.setLayout({isInView:!0,invisible:!l&&!n.intersect(a),isAboveViewRoot:l},!0);var u=new Y.A(n.x-a.x,n.y-a.y,n.width,n.height);rR(t.viewChildren||[],function(t){e(t,u,i,r,o+1)})}}(_,new Y.A(-s.x,-s.y,r,o),f,g,0)}};function rB(e,t,n,i,r){var o=+(t!==n.width),a=1-o,s=["x","y"],l=["width","height"],u=n[s[o]],d=t?e.area/t:0;(r||d>n[l[a]])&&(d=n[l[a]]);for(var c=0,h=e.length;c<h;c++){var p=e[c],g={},f=d?p.getLayout().area/d:0,y=g[l[a]]=rP(d-2*i,0),v=n[s[o]]+n[l[o]]-u,m=c===h-1||v<f?v:f,x=g[l[o]]=rP(m-2*i,0);g[s[a]]=n[s[a]]+rN(i,y/2),g[s[o]]=u+rN(i,x/2),u+=m,p.setLayout(g,!0)}n[s[a]]+=d,n[l[a]]-=d}function rF(e){return e.get(rz)?e.get(rO):0}function rW(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.eachSeriesByType("graph",function(e){var n=e.getCategoriesData(),i=e.getGraph().data,r=n.mapArray(n.getName);i.filterSelf(function(e){var n=i.getItemModel(e).getShallow("category");if(null!=n){(0,A.isNumber)(n)&&(n=r[n]);for(var o=0;o<t.length;o++)if(!t[o].isSelected(n))return!1}return!0})})}function rY(e){var t={};e.eachSeriesByType("graph",function(e){var n=e.getCategoriesData(),i=e.getData(),r={};n.each(function(i){var o=n.getName(i);r["ec-"+o]=i;var a=n.getItemModel(i),s=a.getModel("itemStyle").getItemStyle();s.fill||(s.fill=e.getColorFromPalette(o,t)),n.setItemVisual(i,"style",s);for(var l=["symbol","symbolSize","symbolKeepAspect"],u=0;u<l.length;u++){var d=a.getShallow(l[u],!0);null!=d&&n.setItemVisual(i,l[u],d)}}),n.count()&&i.each(function(e){var t=i.getItemModel(e).getShallow("category");if(null!=t){(0,A.isString)(t)&&(t=r["ec-"+t]);var o=n.getItemVisual(t,"style"),a=i.ensureUniqueItemVisual(e,"style");(0,A.extend)(a,o);for(var s=["symbol","symbolSize","symbolKeepAspect"],l=0;l<s.length;l++)i.setItemVisual(e,s[l],n.getItemVisual(t,s[l]))}})})}function rH(e){return e instanceof Array||(e=[e,e]),e}function rU(e){e.eachSeriesByType("graph",function(e){var t=e.getGraph(),n=e.getEdgeData(),i=rH(e.get("edgeSymbol")),r=rH(e.get("edgeSymbolSize"));n.setVisual("fromSymbol",i&&i[0]),n.setVisual("toSymbol",i&&i[1]),n.setVisual("fromSymbolSize",r&&r[0]),n.setVisual("toSymbolSize",r&&r[1]),n.setVisual("style",e.getModel("lineStyle").getLineStyle()),n.each(function(e){var i=n.getItemModel(e),r=t.getEdgeByIndex(e),o=rH(i.getShallow("symbol",!0)),a=rH(i.getShallow("symbolSize",!0)),s=i.getModel("lineStyle").getLineStyle(),l=n.ensureUniqueItemVisual(e,"style");switch((0,A.extend)(l,s),l.stroke){case"source":var u=r.node1.getVisual("style");l.stroke=u&&u.fill;break;case"target":var u=r.node2.getVisual("style");l.stroke=u&&u.fill}o[0]&&r.setVisual("fromSymbol",o[0]),o[1]&&r.setVisual("toSymbol",o[1]),a[0]&&r.setVisual("fromSymbolSize",a[0]),a[1]&&r.setVisual("toSymbolSize",a[1])})})}var rX=function(e){return e.get("autoCurveness")||null},rj=function(e,t){var n=rX(e),i=20,r=[];if(A.isNumber(n))i=n;else if(A.isArray(n)){e.__curvenessList=n;return}t>i&&(i=t);var o=i%2?i+2:i+3;r=[];for(var a=0;a<o;a++)r.push((a%2?a+1:a)/10*(a%2?-1:1));e.__curvenessList=r},rZ=function(e,t,n){var i=[e.id,e.dataIndex].join("."),r=[t.id,t.dataIndex].join(".");return[n.uid,i,r].join("--\x3e")},rq=function(e){var t=e.split("--\x3e");return[t[0],t[2],t[1]].join("--\x3e")},r$=function(e,t){var n=rZ(e.node1,e.node2,t);return t.__edgeMap[n]},rJ=function(e,t){var n=t.__edgeMap;return n[e]?n[e].length:0};function rQ(e,t,n,i){var r=rX(t),o=A.isArray(r);if(!r)return null;var a=r$(e,t);if(!a)return null;for(var s=-1,l=0;l<a.length;l++)if(a[l]===n){s=l;break}var u=rJ(rZ(e.node1,e.node2,t),t)+rJ(rZ(e.node2,e.node1,t),t);rj(t,u),e.lineStyle=e.lineStyle||{};var d=rZ(e.node1,e.node2,t),c=t.__curvenessList,h=o||u%2?0:1;if(a.isForward)return c[h+s];var p=rJ(rq(d),t),g=c[s+p+h];return i?o?r&&0===r[0]?(p+h)%2?g:-g:((p%2?0:1)+h)%2?g:-g:(p+h)%2?g:-g:c[s+p+h]}function rK(e){var t=e.coordinateSystem;if(!t||"view"===t.type){var n=e.getGraph();n.eachNode(function(e){var t=e.getModel();e.setLayout([+t.get("x"),+t.get("y")])}),r0(n,e)}}function r0(e,t){e.eachEdge(function(e,n){var i=A.retrieve3(e.getModel().get(["lineStyle","curveness"]),-rQ(e,t,n,!0),0),r=b.clone(e.node1.getLayout()),o=b.clone(e.node2.getLayout()),a=[r,o];+i&&a.push([(r[0]+o[0])/2-(r[1]-o[1])*i,(r[1]+o[1])/2-(o[0]-r[0])*i]),e.setLayout(a)})}function r1(e,t){e.eachSeriesByType("graph",function(e){var t=e.get("layout"),n=e.coordinateSystem;if(n&&"view"!==n.type){var i=e.getData(),r=[];(0,A.each)(n.dimensions,function(e){r=r.concat(i.mapDimensionsAll(e))});for(var o=0;o<i.count();o++){for(var a=[],s=!1,l=0;l<r.length;l++){var u=i.get(r[l],o);isNaN(u)||(s=!0),a.push(u)}s?i.setItemLayout(o,n.dataToPoint(a)):i.setItemLayout(o,[NaN,NaN])}r0(i.graph,e)}else t&&"none"!==t||rK(e)})}function r2(e){var t=e.coordinateSystem;if("view"!==t.type)return 1;var n=e.option.nodeScaleRatio,i=t.scaleX;return((t.getZoom()-1)*n+1)/i}function r5(e){var t=e.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}var r3=Math.PI,r6=[];function r4(e,t,n,i){var r=e.coordinateSystem;if(!r||"view"===r.type){var o=r.getBoundingRect(),a=e.getData(),s=a.graph,l=o.width/2+o.x,u=o.height/2+o.y,d=Math.min(o.width,o.height)/2,c=a.count();if(a.setLayout({cx:l,cy:u}),c){if(n){var h=r.pointToData(i),p=[h[0]-l,h[1]-u];b.normalize(p,p),b.scale(p,p,d),n.setLayout([l+p[0],u+p[1]],!0),r7(n,e.get(["circular","rotateLabel"]),l,u)}r8[t](e,s,a,d,l,u,c),s.eachEdge(function(t,n){var i,r=A.retrieve3(t.getModel().get(["lineStyle","curveness"]),rQ(t,e,n),0),o=b.clone(t.node1.getLayout()),a=b.clone(t.node2.getLayout()),s=(o[0]+a[0])/2,d=(o[1]+a[1])/2;+r&&(r*=3,i=[l*r+s*(1-r),u*r+d*(1-r)]),t.setLayout([o,a,i])})}}}var r8={value:function(e,t,n,i,r,o,a){var s=0,l=n.getSum("value"),u=2*Math.PI/(l||a);t.eachNode(function(e){var t=e.getValue("value"),n=u*(l?t:1)/2;s+=n,e.setLayout([i*Math.cos(s)+r,i*Math.sin(s)+o]),s+=n})},symbolSize:function(e,t,n,i,r,o,a){var s=0;r6.length=a;var l=r2(e);t.eachNode(function(e){var t=r5(e);isNaN(t)&&(t=2),t<0&&(t=0);var n=Math.asin((t*=l)/2/i);isNaN(n)&&(n=r3/2),r6[e.dataIndex]=n,s+=2*n});var u=(2*r3-s)/a/2,d=0;t.eachNode(function(e){var t=u+r6[e.dataIndex];d+=t,e.getLayout()&&e.getLayout().fixed||e.setLayout([i*Math.cos(d)+r,i*Math.sin(d)+o]),d+=t})}};function r7(e,t,n,i){var r=e.getGraphicEl();if(r){var o=e.getModel().get(["label","rotate"])||0,a=r.getSymbolPath();if(t){var s=e.getLayout(),l=Math.atan2(s[1]-i,s[0]-n);l<0&&(l=2*Math.PI+l);var u=s[0]<n;u&&(l-=Math.PI);var d=u?"left":"right";a.setTextConfig({rotation:-l,position:d,origin:"center"});var c=a.ensureState("emphasis");A.extend(c.textConfig||(c.textConfig={}),{position:d})}else a.setTextConfig({rotation:o*=Math.PI/180})}}function r9(e){e.eachSeriesByType("graph",function(e){"circular"===e.get("layout")&&r4(e,"symbolSize")})}var oe=b.scaleAndAdd;function ot(e){e.eachSeriesByType("graph",function(e){var t=e.coordinateSystem;if(!t||"view"===t.type)if("force"===e.get("layout")){var n=e.preservedPoints||{},i=e.getGraph(),r=i.data,o=i.edgeData,a=e.getModel("force"),s=a.get("initLayout");e.preservedPoints?r.each(function(e){var t=r.getId(e);r.setItemLayout(e,n[t]||[NaN,NaN])}):s&&"none"!==s?"circular"===s&&r4(e,"value"):rK(e);var l=r.getDataExtent("value"),u=o.getDataExtent("value"),d=a.get("repulsion"),c=a.get("edgeLength"),h=A.isArray(d)?d:[d,d],p=A.isArray(c)?c:[c,c];p=[p[1],p[0]];var g=r.mapArray("value",function(e,t){var n=r.getItemLayout(t),i=(0,er.Cb)(e,l,h);return isNaN(i)&&(i=(h[0]+h[1])/2),{w:i,rep:i,fixed:r.getItemModel(t).get("fixed"),p:!n||isNaN(n[0])||isNaN(n[1])?null:n}}),f=o.mapArray("value",function(t,n){var r=i.getEdgeByIndex(n),o=(0,er.Cb)(t,u,p);isNaN(o)&&(o=(p[0]+p[1])/2);var a=r.getModel(),s=A.retrieve3(r.getModel().get(["lineStyle","curveness"]),-rQ(r,e,n,!0),0);return{n1:g[r.node1.dataIndex],n2:g[r.node2.dataIndex],d:o,curveness:s,ignoreForceLayout:a.get("ignoreForceLayout")}}),y=function(e,t,n){for(var i,r,o=n.rect,a=o.width,s=o.height,l=[o.x+a/2,o.y+s/2],u=null==n.gravity?.1:n.gravity,d=0;d<e.length;d++){var c=e[d];c.p||(c.p=b.create(a*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),c.pp=b.clone(c.p),c.edges=null}var h=null==n.friction?.6:n.friction,p=h;return{warmUp:function(){p=.8*h},setFixed:function(t){e[t].fixed=!0},setUnfixed:function(t){e[t].fixed=!1},beforeStep:function(e){i=e},afterStep:function(e){r=e},step:function(n){i&&i(e,t);for(var o=[],a=e.length,s=0;s<t.length;s++){var d=t[s];if(!d.ignoreForceLayout){var c=d.n1,h=d.n2;b.sub(o,h.p,c.p);var g=b.len(o)-d.d,f=h.w/(c.w+h.w);isNaN(f)&&(f=0),b.normalize(o,o),c.fixed||oe(c.p,c.p,o,f*g*p),h.fixed||oe(h.p,h.p,o,-(1-f)*g*p)}}for(var s=0;s<a;s++){var y=e[s];y.fixed||(b.sub(o,l,y.p),oe(y.p,y.p,o,u*p))}for(var s=0;s<a;s++)for(var c=e[s],v=s+1;v<a;v++){var h=e[v];b.sub(o,h.p,c.p);var g=b.len(o);0===g&&(b.set(o,Math.random()-.5,Math.random()-.5),g=1);var m=(c.rep+h.rep)/g/g;c.fixed||oe(c.pp,c.pp,o,m),h.fixed||oe(h.pp,h.pp,o,-m)}for(var x=[],s=0;s<a;s++){var y=e[s];y.fixed||(b.sub(x,y.p,y.pp),oe(y.p,y.p,x,p),b.copy(y.pp,y.p))}var _=(p*=.992)<.01;r&&r(e,t,_),n&&n(_)}}}(g,f,{rect:t.getBoundingRect(),gravity:a.get("gravity"),friction:a.get("friction")});y.beforeStep(function(e,t){for(var n=0,r=e.length;n<r;n++)e[n].fixed&&b.copy(e[n].p,i.getNodeByIndex(n).getLayout())}),y.afterStep(function(e,t,o){for(var a=0,s=e.length;a<s;a++)e[a].fixed||i.getNodeByIndex(a).setLayout(e[a].p),n[r.getId(a)]=e[a].p;for(var a=0,s=t.length;a<s;a++){var l=t[a],u=i.getEdgeByIndex(a),d=l.n1.p,c=l.n2.p,h=u.getLayout();(h=h?h.slice():[])[0]=h[0]||[],h[1]=h[1]||[],b.copy(h[0],d),b.copy(h[1],c),+l.curveness&&(h[2]=[(d[0]+c[0])/2-(d[1]-c[1])*l.curveness,(d[1]+c[1])/2-(c[0]-d[0])*l.curveness]),u.setLayout(h)}}),e.forceLayout=y,e.preservedPoints=n,y.step()}else e.forceLayout=null})}function on(e,t){var n=[];return e.eachSeriesByType("graph",function(e){var i=e.get("coordinateSystem");if(!i||"view"===i){var r,o=e.getData(),a=o.mapArray(function(e){var t=o.getItemModel(e);return[+t.get("x"),+t.get("y")]}),s=[],l=[];iB.Cr(a,s,l),l[0]-s[0]==0&&(l[0]+=1,s[0]-=1),l[1]-s[1]==0&&(l[1]+=1,s[1]-=1);var u=(l[0]-s[0])/(l[1]-s[1]),d=(r=(0,A.extend)(e.getBoxLayoutParams(),{aspect:u}),(0,L.dV)(r,{width:t.getWidth(),height:t.getHeight()}));isNaN(u)&&(s=[d.x,d.y],l=[d.x+d.width,d.y+d.height]);var c=l[0]-s[0],h=l[1]-s[1],p=d.width,g=d.height,f=e.coordinateSystem=new iv;f.zoomLimit=e.get("scaleLimit"),f.setBoundingRect(s[0],s[1],c,h),f.setViewRect(d.x,d.y,p,g),f.setCenter(e.get("center"),t),f.setZoom(e.get("zoom")),n.push(f)}}),n}var oi=n(22448),or=n(87274),oo=n(26989),oa=[],os=[],ol=[],ou=oo.k3,od=b.distSquare,oc=Math.abs;function oh(e,t,n){for(var i,r=e[0],o=e[1],a=e[2],s=1/0,l=n*n,u=.1,d=.1;d<=.9;d+=.1){oa[0]=ou(r[0],o[0],a[0],d),oa[1]=ou(r[1],o[1],a[1],d);var c=oc(od(oa,t)-l);c<s&&(s=c,i=d)}for(var h=0;h<32;h++){var p=i+u;os[0]=ou(r[0],o[0],a[0],i),os[1]=ou(r[1],o[1],a[1],i),ol[0]=ou(r[0],o[0],a[0],p),ol[1]=ou(r[1],o[1],a[1],p);var c=od(os,t)-l;if(.01>oc(c))break;var g=od(ol,t)-l;u/=2,c<0?g>=0?i+=u:i-=u:g>=0?i-=u:i+=u}return i}function op(e,t){var n=[],i=oo.kx,r=[[],[],[]],o=[[],[]],a=[];t/=2,e.eachEdge(function(e,s){var l=e.getLayout(),u=e.getVisual("fromSymbol"),d=e.getVisual("toSymbol");!l.__original&&(l.__original=[b.clone(l[0]),b.clone(l[1])],l[2]&&l.__original.push(b.clone(l[2])));var c=l.__original;if(null!=l[2]){if(b.copy(r[0],c[0]),b.copy(r[1],c[2]),b.copy(r[2],c[1]),u&&"none"!==u){var h=r5(e.node1),p=oh(r,c[0],h*t);i(r[0][0],r[1][0],r[2][0],p,n),r[0][0]=n[3],r[1][0]=n[4],i(r[0][1],r[1][1],r[2][1],p,n),r[0][1]=n[3],r[1][1]=n[4]}if(d&&"none"!==d){var h=r5(e.node2),p=oh(r,c[1],h*t);i(r[0][0],r[1][0],r[2][0],p,n),r[1][0]=n[1],r[2][0]=n[2],i(r[0][1],r[1][1],r[2][1],p,n),r[1][1]=n[1],r[2][1]=n[2]}b.copy(l[0],r[0]),b.copy(l[1],r[2]),b.copy(l[2],r[1])}else{if(b.copy(o[0],c[0]),b.copy(o[1],c[1]),b.sub(a,o[1],o[0]),b.normalize(a,a),u&&"none"!==u){var h=r5(e.node1);b.scaleAndAdd(o[0],o[0],a,h*t)}if(d&&"none"!==d){var h=r5(e.node2);b.scaleAndAdd(o[1],o[1],a,-h*t)}b.copy(l[0],o[0]),b.copy(l[1],o[1])}})}function og(e){return"view"===e.type}var of=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,W.C6)(t,e),t.prototype.init=function(e,t){var n=new oi.A,i=new or.A,r=this.group;this._controller=new ng.A(t.getZr()),this._controllerHost={target:r},r.add(n.group),r.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},t.prototype.render=function(e,t,n){var i=this,r=e.coordinateSystem;this._model=e;var o=this._symbolDraw,a=this._lineDraw,s=this.group;if(og(r)){var l={x:r.x,y:r.y,scaleX:r.scaleX,scaleY:r.scaleY};this._firstRender?s.attr(l):es.oi(s,l,e)}op(e.getGraph(),r2(e));var u=e.getData();o.updateData(u);var d=e.getEdgeData();a.updateData(d),this._updateNodeAndLinkScale(),this._updateController(e,t,n),clearTimeout(this._layoutTimeout);var c=e.forceLayout,h=e.get(["force","layoutAnimation"]);c&&this._startForceLayoutIteration(c,h);var p=e.get("layout");u.graph.eachNode(function(t){var n=t.dataIndex,r=t.getGraphicEl(),o=t.getModel();if(r){r.off("drag").off("dragend");var a=o.get("draggable");a&&r.on("drag",function(o){switch(p){case"force":c.warmUp(),i._layouting||i._startForceLayoutIteration(c,h),c.setFixed(n),u.setItemLayout(n,[r.x,r.y]);break;case"circular":u.setItemLayout(n,[r.x,r.y]),t.setLayout({fixed:!0},!0),r4(e,"symbolSize",t,[o.offsetX,o.offsetY]),i.updateLayout(e);break;default:u.setItemLayout(n,[r.x,r.y]),r0(e.getGraph(),e),i.updateLayout(e)}}).on("dragend",function(){c&&c.setUnfixed(n)}),r.setDraggable(a,!!o.get("cursor")),"adjacency"===o.get(["emphasis","focus"])&&((0,P.z)(r).focus=t.getAdjacentDataIndices())}}),u.graph.eachEdge(function(e){var t=e.getGraphicEl(),n=e.getModel().get(["emphasis","focus"]);t&&"adjacency"===n&&((0,P.z)(t).focus={edge:[e.dataIndex],node:[e.node1.dataIndex,e.node2.dataIndex]})});var g="circular"===e.get("layout")&&e.get(["circular","rotateLabel"]),f=u.getLayout("cx"),y=u.getLayout("cy");u.graph.eachNode(function(e){r7(e,g,f,y)}),this._firstRender=!1},t.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(e,t){var n=this;!function i(){e.step(function(e){n.updateLayout(n._model),(n._layouting=!e)&&(t?n._layoutTimeout=setTimeout(i,16):i())})}()},t.prototype._updateController=function(e,t,n){var i=this,r=this._controller,o=this._controllerHost,a=this.group;(r.setPointerChecker(function(t,i,r){var o=a.getBoundingRect();return o.applyTransform(a.transform),o.contain(i,r)&&!(0,nv.I)(t,n,e)}),og(e.coordinateSystem))?(r.enable(e.get("roam")),o.zoomLimit=e.get("scaleLimit"),o.zoom=e.coordinateSystem.getZoom(),r.off("pan").off("zoom").on("pan",function(t){nf(o,t.dx,t.dy),n.dispatchAction({seriesId:e.id,type:"graphRoam",dx:t.dx,dy:t.dy})}).on("zoom",function(t){ny(o,t.scale,t.originX,t.originY),n.dispatchAction({seriesId:e.id,type:"graphRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),i._updateNodeAndLinkScale(),op(e.getGraph(),r2(e)),i._lineDraw.updateLayout(),n.updateLabelLayout()})):r.disable()},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,t=e.getData(),n=r2(e);t.eachItemGraphicEl(function(e,t){e&&e.setSymbolScale(n)})},t.prototype.updateLayout=function(e){op(e.getGraph(),r2(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},t.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},t.type="graph",t}(v.A);function oy(e){return"_EC_"+e}var ov=function(){function e(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return e.prototype.isDirected=function(){return this._directed},e.prototype.addNode=function(e,t){e=null==e?""+t:""+e;var n=this._nodesMap;if(!n[oy(e)]){var i=new om(e,t);return i.hostGraph=this,this.nodes.push(i),n[oy(e)]=i,i}},e.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},e.prototype.getNodeById=function(e){return this._nodesMap[oy(e)]},e.prototype.addEdge=function(e,t,n){var i=this._nodesMap,r=this._edgesMap;if(A.isNumber(e)&&(e=this.nodes[e]),A.isNumber(t)&&(t=this.nodes[t]),e instanceof om||(e=i[oy(e)]),t instanceof om||(t=i[oy(t)]),e&&t){var o=e.id+"-"+t.id,a=new ox(e,t,n);return a.hostGraph=this,this._directed&&(e.outEdges.push(a),t.inEdges.push(a)),e.edges.push(a),e!==t&&t.edges.push(a),this.edges.push(a),r[o]=a,a}},e.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},e.prototype.getEdge=function(e,t){e instanceof om&&(e=e.id),t instanceof om&&(t=t.id);var n=this._edgesMap;return this._directed?n[e+"-"+t]:n[e+"-"+t]||n[t+"-"+e]},e.prototype.eachNode=function(e,t){for(var n=this.nodes,i=n.length,r=0;r<i;r++)n[r].dataIndex>=0&&e.call(t,n[r],r)},e.prototype.eachEdge=function(e,t){for(var n=this.edges,i=n.length,r=0;r<i;r++)n[r].dataIndex>=0&&n[r].node1.dataIndex>=0&&n[r].node2.dataIndex>=0&&e.call(t,n[r],r)},e.prototype.breadthFirstTraverse=function(e,t,n,i){if(t instanceof om||(t=this._nodesMap[oy(t)]),t){for(var r="out"===n?"outEdges":"in"===n?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!e.call(i,t,null))for(var a=[t];a.length;)for(var s=a.shift(),l=s[r],o=0;o<l.length;o++){var u=l[o],d=u.node1===s?u.node2:u.node1;if(!d.__visited){if(e.call(i,d,s))return;a.push(d),d.__visited=!0}}}},e.prototype.update=function(){for(var e=this.data,t=this.edgeData,n=this.nodes,i=this.edges,r=0,o=n.length;r<o;r++)n[r].dataIndex=-1;for(var r=0,o=e.count();r<o;r++)n[e.getRawIndex(r)].dataIndex=r;t.filterSelf(function(e){var n=i[t.getRawIndex(e)];return n.node1.dataIndex>=0&&n.node2.dataIndex>=0});for(var r=0,o=i.length;r<o;r++)i[r].dataIndex=-1;for(var r=0,o=t.count();r<o;r++)i[t.getRawIndex(r)].dataIndex=r},e.prototype.clone=function(){for(var t=new e(this._directed),n=this.nodes,i=this.edges,r=0;r<n.length;r++)t.addNode(n[r].id,n[r].dataIndex);for(var r=0;r<i.length;r++){var o=i[r];t.addEdge(o.node1.id,o.node2.id,o.dataIndex)}return t},e}(),om=function(){function e(e,t){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=null==e?"":e,this.dataIndex=null==t?-1:t}return e.prototype.degree=function(){return this.edges.length},e.prototype.inDegree=function(){return this.inEdges.length},e.prototype.outDegree=function(){return this.outEdges.length},e.prototype.getModel=function(e){if(!(this.dataIndex<0))return this.hostGraph.data.getItemModel(this.dataIndex).getModel(e)},e.prototype.getAdjacentDataIndices=function(){for(var e={edge:[],node:[]},t=0;t<this.edges.length;t++){var n=this.edges[t];n.dataIndex<0||(e.edge.push(n.dataIndex),e.node.push(n.node1.dataIndex,n.node2.dataIndex))}return e},e.prototype.getTrajectoryDataIndices=function(){for(var e=A.createHashMap(),t=A.createHashMap(),n=0;n<this.edges.length;n++){var i=this.edges[n];if(!(i.dataIndex<0)){e.set(i.dataIndex,!0);for(var r=[i.node1],o=[i.node2],a=0;a<r.length;){var s=r[a];a++,t.set(s.dataIndex,!0);for(var l=0;l<s.inEdges.length;l++)e.set(s.inEdges[l].dataIndex,!0),r.push(s.inEdges[l].node1)}for(a=0;a<o.length;){var u=o[a];a++,t.set(u.dataIndex,!0);for(var l=0;l<u.outEdges.length;l++)e.set(u.outEdges[l].dataIndex,!0),o.push(u.outEdges[l].node2)}}}return{edge:e.keys(),node:t.keys()}},e}(),ox=function(){function e(e,t,n){this.dataIndex=-1,this.node1=e,this.node2=t,this.dataIndex=null==n?-1:n}return e.prototype.getModel=function(e){if(!(this.dataIndex<0))return this.hostGraph.edgeData.getItemModel(this.dataIndex).getModel(e)},e.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},e.prototype.getTrajectoryDataIndices=function(){var e=A.createHashMap(),t=A.createHashMap();e.set(this.dataIndex,!0);for(var n=[this.node1],i=[this.node2],r=0;r<n.length;){var o=n[r];r++,t.set(o.dataIndex,!0);for(var a=0;a<o.inEdges.length;a++)e.set(o.inEdges[a].dataIndex,!0),n.push(o.inEdges[a].node1)}for(r=0;r<i.length;){var s=i[r];r++,t.set(s.dataIndex,!0);for(var a=0;a<s.outEdges.length;a++)e.set(s.outEdges[a].dataIndex,!0),i.push(s.outEdges[a].node2)}return{edge:e.keys(),node:t.keys()}},e}();function o_(e,t){return{getValue:function(n){var i=this[e][t];return i.getStore().get(i.getDimensionIndex(n||"value"),this.dataIndex)},setVisual:function(n,i){this.dataIndex>=0&&this[e][t].setItemVisual(this.dataIndex,n,i)},getVisual:function(n){return this[e][t].getItemVisual(this.dataIndex,n)},setLayout:function(n,i){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,n,i)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}}A.mixin(om,o_("hostGraph","data")),A.mixin(ox,o_("hostGraph","edgeData"));var ob=n(51907);function oA(e,t,n,i,r){for(var o,a=new ov(i),s=0;s<e.length;s++)a.addNode(A.retrieve(e[s].id,e[s].name,s),s);for(var l=[],u=[],d=0,s=0;s<t.length;s++){var c=t[s],h=c.source,p=c.target;a.addEdge(h,p,d)&&(u.push(c),l.push(A.retrieve((0,eV.vS)(c.id,null),h+" > "+p)),d++)}var g=n.get("coordinateSystem");if("cartesian2d"===g||"polar"===g)o=(0,M.A)(e,n);else{var f=ob.A.get(g),y=f&&f.dimensions||[];0>A.indexOf(y,"value")&&y.concat(["value"]);var v=(0,k.A)(e,{coordDimensions:y,encodeDefine:n.getEncode()}).dimensions;(o=new m.A(v,n)).initData(e)}var x=new m.A(["value"],n);return x.initData(u,l),r&&r(o,x),i3({mainData:o,struct:a,structAttr:"graph",datas:{node:o,edge:x},datasAttr:{node:"data",edge:"edgeData"}}),a.update(),a}var oS=n(6941),ow=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return(0,W.C6)(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments);var n=this;function i(){return n._categoriesData}this.legendVisualProvider=new ne.A(i,i),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(t){e.prototype.mergeDefaultAndTheme.apply(this,arguments),(0,eV.M5)(t,"edgeLabel",["show"])},t.prototype.getInitialData=function(e,t){var n=e.edges||e.links||[],i=e.data||e.nodes||[],r=this;if(i&&n){rX(this)&&(this.__curvenessList=[],this.__edgeMap={},rj(this));var o=oA(i,n,this,!0,function(e,t){e.wrapMethod("getItemModel",function(e){var t=r._categoriesModels[e.getShallow("category")];return t&&(t.parentModel=e.parentModel,e.parentModel=t),e});var n=T.A.prototype.getModel;function i(e,t){var i=n.call(this,e,t);return i.resolveParentPath=o,i}function o(e){if(e&&("label"===e[0]||"label"===e[1])){var t=e.slice();return"label"===e[0]?t[0]="edgeLabel":"label"===e[1]&&(t[1]="edgeLabel"),t}return e}t.wrapMethod("getItemModel",function(e){return e.resolveParentPath=o,e.getModel=i,e})});return A.each(o.edges,function(e){!function(e,t,n,i){if(rX(n)){var r=rZ(e,t,n),o=n.__edgeMap,a=o[rq(r)];o[r]&&!a?o[r].isForward=!0:a&&o[r]&&(a.isForward=!0,o[r].isForward=!1),o[r]=o[r]||[],o[r].push(i)}}(e.node1,e.node2,this,e.dataIndex)},this),o.data}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(e,t,n){if("edge"===n){var i=this.getData(),r=this.getDataParams(e,n),o=i.graph.getEdgeByIndex(e),a=i.getName(o.node1.dataIndex),s=i.getName(o.node2.dataIndex),l=[];return null!=a&&l.push(a),null!=s&&l.push(s),(0,nt.Qx)("nameValue",{name:l.join(" > "),value:r.value,noValue:null==r.value})}return(0,oS.J)({series:this,dataIndex:e,multipleSeries:t})},t.prototype._updateCategoriesData=function(){var e=A.map(this.option.categories||[],function(e){return null!=e.value?e:A.extend({value:0},e)}),t=new m.A(["value"],this);t.initData(e),this._categoriesData=t,this._categoriesModels=t.mapArray(function(e){return t.getItemModel(e)})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.isAnimationEnabled=function(){return e.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(y.A),oM={type:"graphRoam",event:"graphRoam",update:"none"},oI=n(49828),oC=n(45400),oT=["itemStyle","opacity"],oL=function(e){function t(t,n){var i=e.call(this)||this,r=new ey.A,o=new ed.Ay;return i.setTextContent(o),i.setTextGuideLine(r),i.updateData(t,n,!0),i}return(0,W.C6)(t,e),t.prototype.updateData=function(e,t,n){var i=e.hostModel,r=e.getItemModel(t),o=e.getItemLayout(t),a=r.getModel("emphasis"),s=r.get(oT);s=null==s?1:s,n||(0,es.ap)(this),this.useStyle(e.getItemVisual(t,"style")),this.style.lineJoin="round",n?(this.setShape({points:o.points}),this.style.opacity=0,es.LW(this,{style:{opacity:s}},i,t)):es.oi(this,{style:{opacity:s},shape:{points:o.points}},i,t),(0,E.Mx)(this,r),this._updateLabel(e,t),(0,E.Lm)(this,a.get("focus"),a.get("blurScope"),a.get("disabled"))},t.prototype._updateLabel=function(e,t){var n=this.getTextGuideLine(),i=this.getTextContent(),r=e.hostModel,o=e.getItemModel(t),a=e.getItemLayout(t).label,s=e.getItemVisual(t,"style"),l=s.fill;(0,N.qM)(i,(0,N.lx)(o),{labelFetcher:e.hostModel,labelDataIndex:t,defaultOpacity:s.opacity,defaultText:e.getName(t)},{normal:{align:a.textAlign,verticalAlign:a.verticalAlign}}),this.setTextConfig({local:!0,inside:!!a.inside,insideStroke:l,outsideFill:l});var u=a.linePoints;n.setShape({points:u}),this.textGuideLineConfig={anchor:u?new oC.A(u[0][0],u[0][1]):null},es.oi(i,{style:{x:a.x,y:a.y}},r,t),i.attr({rotation:a.rotation,originX:a.x,originY:a.y,z2:10}),(0,eO.eR)(this,(0,eO.rv)(o),{stroke:l})},t}(ef.A),oD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreLabelLineUpdate=!0,n}return(0,W.C6)(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),r=this._data,o=this.group;i.diff(r).add(function(e){var t=new oL(i,e);i.setItemGraphicEl(e,t),o.add(t)}).update(function(e,t){var n=r.getItemGraphicEl(t);n.updateData(i,e),o.add(n),i.setItemGraphicEl(e,n)}).remove(function(t){var n=r.getItemGraphicEl(t);es.t5(n,e,t)}).execute(),this._data=i},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(v.A),oP=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,W.C6)(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new ne.A(A.bind(this.getData,this),A.bind(this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.getInitialData=function(e,t){return(0,t9.A)(this,{coordDimensions:["value"],encodeDefaulter:A.curry(id.ln,this)})},t.prototype._defaultLabelLine=function(e){(0,eV.M5)(e,"labelLine",["show"]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.prototype.getDataParams=function(t){var n=this.getData(),i=e.prototype.getDataParams.call(this,t),r=n.mapDimension("value"),o=n.getSum(r);return i.percent=o?+(n.get(r,t)/o*100).toFixed(2):0,i.$vars.push("percent"),i},t.type="series.funnel",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(y.A);function oN(e,t){e.eachSeriesByType("funnel",function(e){var n,i=e.getData(),r=i.mapDimension("value"),o=e.get("sort"),a=L.dV(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),s=e.get("orient"),l=a.width,u=a.height,d=function(e,t){for(var n=e.mapDimension("value"),i=e.mapArray(n,function(e){return e}),r=[],o="ascending"===t,a=0,s=e.count();a<s;a++)r[a]=a;return(0,A.isFunction)(t)?r.sort(t):"none"!==t&&r.sort(function(e,t){return o?i[e]-i[t]:i[t]-i[e]}),r}(i,o),c=a.x,h=a.y,p="horizontal"===s?[(0,er.lo)(e.get("minSize"),u),(0,er.lo)(e.get("maxSize"),u)]:[(0,er.lo)(e.get("minSize"),l),(0,er.lo)(e.get("maxSize"),l)],g=i.getDataExtent(r),f=e.get("min"),y=e.get("max");null==f&&(f=Math.min(g[0],0)),null==y&&(y=g[1]);var v=e.get("funnelAlign"),m=e.get("gap"),x=(("horizontal"===s?l:u)-m*(i.count()-1))/i.count(),_=function(e,t){if("horizontal"===s){var n,o=i.get(r,e)||0,a=(0,er.Cb)(o,[f,y],p,!0),d=void 0;switch(v){case"top":d=h;break;case"center":d=h+(u-a)/2;break;case"bottom":d=h+(u-a)}return[[t,d],[t,d+a]]}var g=i.get(r,e)||0,m=(0,er.Cb)(g,[f,y],p,!0);switch(v){case"left":n=c;break;case"center":n=c+(l-m)/2;break;case"right":n=c+l-m}return[[n,t],[n+m,t]]};"ascending"===o&&(x=-x,m=-m,"horizontal"===s?c+=l:h+=u,d=d.reverse());for(var b=0;b<d.length;b++){var S=d[b],w=d[b+1],M=i.getItemModel(S);if("horizontal"===s){var I=M.get(["itemStyle","width"]);null==I?I=x:(I=(0,er.lo)(I,l),"ascending"===o&&(I=-I));var C=_(S,c),T=_(w,c+I);c+=I+m,i.setItemLayout(S,{points:C.concat(T.slice().reverse())})}else{var D=M.get(["itemStyle","height"]);null==D?D=x:(D=(0,er.lo)(D,u),"ascending"===o&&(D=-D));var C=_(S,h),T=_(w,h+D);h+=D+m,i.setItemLayout(S,{points:C.concat(T.slice().reverse())})}}n=i.hostModel.get("orient"),i.each(function(e){var t,r,o,a,s=i.getItemModel(e),l=s.getModel("label").get("position"),u=s.getModel("labelLine"),d=i.getItemLayout(e),c=d.points,h="inner"===l||"inside"===l||"center"===l||"insideLeft"===l||"insideRight"===l;if(h)"insideLeft"===l?(r=(c[0][0]+c[3][0])/2+5,o=(c[0][1]+c[3][1])/2,t="left"):"insideRight"===l?(r=(c[1][0]+c[2][0])/2-5,o=(c[1][1]+c[2][1])/2,t="right"):(r=(c[0][0]+c[1][0]+c[2][0]+c[3][0])/4,o=(c[0][1]+c[1][1]+c[2][1]+c[3][1])/4,t="center"),a=[[r,o],[r,o]];else{var p=void 0,g=void 0,f=void 0,y=void 0,v=u.get("length");"left"===l?(p=(c[3][0]+c[0][0])/2,g=(c[3][1]+c[0][1])/2,r=(f=p-v)-5,t="right"):"right"===l?(p=(c[1][0]+c[2][0])/2,g=(c[1][1]+c[2][1])/2,r=(f=p+v)+5,t="left"):"top"===l?(p=(c[3][0]+c[0][0])/2,o=(y=(g=(c[3][1]+c[0][1])/2)-v)-5,t="center"):"bottom"===l?(p=(c[1][0]+c[2][0])/2,o=(y=(g=(c[1][1]+c[2][1])/2)+v)+5,t="center"):"rightTop"===l?(p="horizontal"===n?c[3][0]:c[1][0],g="horizontal"===n?c[3][1]:c[1][1],"horizontal"===n?(o=(y=g-v)-5,t="center"):(r=(f=p+v)+5,t="top")):"rightBottom"===l?(p=c[2][0],g=c[2][1],"horizontal"===n?(o=(y=g+v)+5,t="center"):(r=(f=p+v)+5,t="bottom")):"leftTop"===l?(p=c[0][0],g="horizontal"===n?c[0][1]:c[1][1],"horizontal"===n?(o=(y=g-v)-5,t="center"):(r=(f=p-v)-5,t="right")):"leftBottom"===l?(p="horizontal"===n?c[1][0]:c[3][0],g="horizontal"===n?c[1][1]:c[2][1],"horizontal"===n?(o=(y=g+v)+5,t="center"):(r=(f=p-v)-5,t="right")):(p=(c[1][0]+c[2][0])/2,g=(c[1][1]+c[2][1])/2,"horizontal"===n?(o=(y=g+v)+5,t="center"):(r=(f=p+v)+5,t="left")),"horizontal"===n?r=f=p:o=y=g,a=[[p,g],[f,y]]}d.label={linePoints:a,x:r,y:o,verticalAlign:"middle",textAlign:t,inside:h}})})}var ok=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._dataGroup=new el.A,n._initialized=!1,n}return(0,W.C6)(t,e),t.prototype.init=function(){this.group.add(this._dataGroup)},t.prototype.render=function(e,t,n,i){this._progressiveEls=null;var r=this._dataGroup,o=e.getData(),a=this._data,s=e.coordinateSystem,l=s.dimensions,u=oV(e);if(o.diff(a).add(function(e){oz(oE(o,r,e,l,s),o,e,u)}).update(function(t,n){var i=a.getItemGraphicEl(n),r=oR(o,t,l,s);o.setItemGraphicEl(t,i),es.oi(i,{shape:{points:r}},e,t),(0,es.ap)(i),oz(i,o,t,u)}).remove(function(e){var t=a.getItemGraphicEl(e);r.remove(t)}).execute(),!this._initialized){this._initialized=!0;var d,c,h,p,g,f,y,v=(d=s,c=e,h=function(){setTimeout(function(){r.removeClipPath()})},p=d.model,g=d.getRect(),f=new ev.A({shape:{x:g.x,y:g.y,width:g.width,height:g.height}}),y="horizontal"===p.get("layout")?"width":"height",f.setShape(y,0),es.LW(f,{shape:{width:g.width,height:g.height}},c,h),f);r.setClipPath(v)}this._data=o},t.prototype.incrementalPrepareRender=function(e,t,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},t.prototype.incrementalRender=function(e,t,n){for(var i=t.getData(),r=t.coordinateSystem,o=r.dimensions,a=oV(t),s=this._progressiveEls=[],l=e.start;l<e.end;l++){var u=oE(i,this._dataGroup,l,o,r);u.incremental=!0,oz(u,i,l,a),s.push(u)}},t.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},t.type="parallel",t}(v.A);function oR(e,t,n,i){for(var r=[],o=0;o<n.length;o++){var a,s=n[o],l=e.get(e.mapDimension(s),t);a=l,("category"===i.getAxis(s).type?null==a:null==a||isNaN(a))||r.push(i.dataToPoint(l,s))}return r}function oE(e,t,n,i,r){var o=oR(e,n,i,r),a=new ey.A({shape:{points:o},z2:10});return t.add(a),e.setItemGraphicEl(n,a),a}function oV(e){var t=e.get("smooth",!0);return!0===t&&(t=.3),t=(0,er.Sm)(t),(0,A.eqNaN)(t)&&(t=0),{smooth:t}}function oz(e,t,n,i){e.useStyle(t.getItemVisual(n,"style")),e.style.fill=null,e.setShape("smooth",i.smooth);var r=t.getItemModel(n),o=r.getModel("emphasis");(0,E.Mx)(e,r,"lineStyle"),(0,E.Lm)(e,o.get("focus"),o.get("blurScope"),o.get("disabled"))}var oO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return(0,W.C6)(t,e),t.prototype.getInitialData=function(e,t){return(0,M.A)(null,this,{useEncodeDefaulter:(0,A.bind)(oG,null,this)})},t.prototype.getRawIndicesByActiveState=function(e){var t=this.coordinateSystem,n=this.getData(),i=[];return t.eachActiveState(n,function(t,r){e===t&&i.push(n.getRawIndex(r))}),i},t.type="series.parallel",t.dependencies=["parallel"],t.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},t}(y.A);function oG(e){var t=e.ecModel.getComponent("parallel",e.get("parallelIndex"));if(t){var n={};return(0,A.each)(t.dimensions,function(e){var t=+e.replace("dim","");n[e]=t}),n}}var oB=["lineStyle","opacity"];let oF={seriesType:"parallel",reset:function(e,t){var n=e.coordinateSystem,i={normal:e.get(["lineStyle","opacity"]),active:e.get("activeOpacity"),inactive:e.get("inactiveOpacity")};return{progress:function(e,t){n.eachActiveState(t,function(e,n){var r=i[e];if("normal"===e&&t.hasItemOption){var o=t.getItemModel(n).get(oB,!0);null!=o&&(r=o)}t.ensureUniqueItemVisual(n,"style").opacity=r},e.start,e.end)}}}};function oW(e){var t,n;(function(e){if(!e.parallel){var t=!1;A.each(e.series,function(e){e&&"parallel"===e.type&&(t=!0)}),t&&(e.parallel=[{}])}})(e),t=e,n=eV.qB(t.parallelAxis),A.each(n,function(e){if(A.isObject(e)){var n=e.parallelIndex||0,i=eV.qB(t.parallel)[n];i&&i.parallelAxisDefault&&A.merge(e,i.parallelAxisDefault,!1)}})}var oY=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,W.C6)(t,e),t.prototype.render=function(e,t,n){this._model=e,this._api=n,this._handlers||(this._handlers={},(0,A.each)(oH,function(e,t){n.getZr().on(t,this._handlers[t]=(0,A.bind)(e,this))},this)),(0,w.N)(this,"_throttledDispatchExpand",e.get("axisExpandRate"),"fixRate")},t.prototype.dispose=function(e,t){(0,w.IU)(this,"_throttledDispatchExpand"),(0,A.each)(this._handlers,function(e,n){t.getZr().off(n,e)}),this._handlers=null},t.prototype._throttledDispatchExpand=function(e){this._dispatchExpand(e)},t.prototype._dispatchExpand=function(e){e&&this._api.dispatchAction((0,A.extend)({type:"parallelAxisExpand"},e))},t.type="parallel",t}(f.A),oH={mousedown:function(e){oU(this,"click")&&(this._mouseDownPoint=[e.offsetX,e.offsetY])},mouseup:function(e){var t=this._mouseDownPoint;if(oU(this,"click")&&t){var n=[e.offsetX,e.offsetY];if(Math.pow(t[0]-n[0],2)+Math.pow(t[1]-n[1],2)>5)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);"none"!==i.behavior&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!this._mouseDownPoint&&oU(this,"mousemove")){var t=this._model,n=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),i=n.behavior;"jump"===i&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===i?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===i?null:{duration:0}})}}};function oU(e,t){var n=e._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===t}var oX=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,W.C6)(t,e),t.prototype.init=function(){e.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var t=this.option;e&&A.merge(t,e,!0),this._initDimensions()},t.prototype.contains=function(e,t){var n=e.get("parallelIndex");return null!=n&&t.getComponent("parallel",n)===this},t.prototype.setAxisExpand=function(e){A.each(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(t){e.hasOwnProperty(t)&&(this.option[t]=e[t])},this)},t.prototype._initDimensions=function(){var e=this.dimensions=[],t=this.parallelAxisIndex=[],n=A.filter(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(e){return(e.get("parallelIndex")||0)===this.componentIndex},this);A.each(n,function(n){e.push("dim"+n.get("dim")),t.push(n.componentIndex)})},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t}(g.A),oj=function(e){function t(t,n,i,r,o){var a=e.call(this,t,n,i)||this;return a.type=r||"value",a.axisIndex=o,a}return(0,W.C6)(t,e),t.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},t}(eD.A),oZ=n(91365),oq=A.each,o$=Math.min,oJ=Math.max,oQ=Math.floor,oK=Math.ceil,o0=er.LI,o1=Math.PI,o2=function(){function e(e,t,n){this.type="parallel",this._axesMap=A.createHashMap(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,n)}return e.prototype._init=function(e,t,n){var i=e.dimensions,r=e.parallelAxisIndex;oq(i,function(e,n){var i=r[n],o=t.getComponent("parallelAxis",i),a=this._axesMap.set(e,new oj(e,I.f$(o),[0,0],o.get("type"),i)),s="category"===a.type;a.onBand=s&&o.get("boundaryGap"),a.inverse=o.get("inverse"),o.axis=a,a.model=o,a.coordinateSystem=o.coordinateSystem=this},this)},e.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},e.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),n=t.axisBase,i=t.layoutBase,r=t.pixelDimIndex,o=e[1-r],a=e[r];return o>=n&&o<=n+t.axisLength&&a>=i&&a<=i+t.layoutLength},e.prototype.getModel=function(){return this._model},e.prototype._updateAxesFromSeries=function(e,t){t.eachSeries(function(n){if(e.contains(n,t)){var i=n.getData();oq(this.dimensions,function(e){var t=this._axesMap.get(e);t.scale.unionExtentFromData(i,i.mapDimension(e)),I.af(t.scale,t.model)},this)}},this)},e.prototype.resize=function(e,t){this._rect=L.dV(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},e.prototype.getRect=function(){return this._rect},e.prototype._makeLayoutInfo=function(){var e,t=this._model,n=this._rect,i=["x","y"],r=["width","height"],o=t.get("layout"),a=+("horizontal"!==o),s=n[r[a]],l=[0,s],u=this.dimensions.length,d=o5(t.get("axisExpandWidth"),l),c=o5(t.get("axisExpandCount")||0,[0,u]),h=t.get("axisExpandable")&&u>3&&u>c&&c>1&&d>0&&s>0,p=t.get("axisExpandWindow");p?(e=o5(p[1]-p[0],l),p[1]=p[0]+e):(e=o5(d*(c-1),l),(p=[d*(t.get("axisExpandCenter")||oQ(u/2))-e/2])[1]=p[0]+e);var g=(s-e)/(u-c);g<3&&(g=0);var f=[oQ(o0(p[0]/d,1))+1,oK(o0(p[1]/d,1))-1],y=g/d*p[0];return{layout:o,pixelDimIndex:a,layoutBase:n[i[a]],layoutLength:s,axisBase:n[i[1-a]],axisLength:n[r[1-a]],axisExpandable:h,axisExpandWidth:d,axisCollapseWidth:g,axisExpandWindow:p,axisCount:u,winInnerIndices:f,axisExpandWindow0Pos:y}},e.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),r=i.layout;t.each(function(e){var t=[0,i.axisLength],n=+!!e.inverse;e.setExtent(t[n],t[1-n])}),oq(n,function(t,n){var o=(i.axisExpandable?function(e,t){var n,i,r=t.layoutLength,o=t.axisExpandWidth,a=t.axisCount,s=t.axisCollapseWidth,l=t.winInnerIndices,u=s,d=!1;return e<l[0]?(n=e*s,i=s):e<=l[1]?(n=t.axisExpandWindow0Pos+e*o-t.axisExpandWindow[0],u=o,d=!0):(n=r-(a-1-e)*s,i=s),{position:n,axisNameAvailableWidth:u,axisLabelShow:d,nameTruncateMaxWidth:i}}:function(e,t){var n=t.layoutLength/(t.axisCount-1);return{position:n*e,axisNameAvailableWidth:n,axisLabelShow:!0}})(n,i),a={horizontal:{x:o.position,y:i.axisLength},vertical:{x:0,y:o.position}},s=[a[r].x+e.x,a[r].y+e.y],l={horizontal:o1/2,vertical:0}[r],u=_.create();_.rotate(u,u,l),_.translate(u,u,s),this._axesLayout[t]={position:s,rotation:l,transform:u,axisNameAvailableWidth:o.axisNameAvailableWidth,axisLabelShow:o.axisLabelShow,nameTruncateMaxWidth:o.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},e.prototype.getAxis=function(e){return this._axesMap.get(e)},e.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},e.prototype.eachActiveState=function(e,t,n,i){null==n&&(n=0),null==i&&(i=e.count());var r=this._axesMap,o=this.dimensions,a=[],s=[];A.each(o,function(t){a.push(e.mapDimension(t)),s.push(r.get(t).model)});for(var l=this.hasAxisBrushed(),u=n;u<i;u++){var d=void 0;if(l){d="active";for(var c=e.getValues(a,u),h=0,p=o.length;h<p;h++)if("inactive"===s[h].getActiveState(c[h])){d="inactive";break}}else d="normal";t(d,u)}},e.prototype.hasAxisBrushed=function(){for(var e=this.dimensions,t=this._axesMap,n=!1,i=0,r=e.length;i<r;i++)"normal"!==t.get(e[i]).model.getActiveState()&&(n=!0);return n},e.prototype.axisCoordToPoint=function(e,t){var n=this._axesLayout[t];return ea.applyTransform([e,0],n.transform)},e.prototype.getAxisLayout=function(e){return A.clone(this._axesLayout[e])},e.prototype.getSlidedAxisExpandWindow=function(e){var t,n=this._makeLayoutInfo(),i=n.pixelDimIndex,r=n.axisExpandWindow.slice(),o=r[1]-r[0],a=[0,n.axisExpandWidth*(n.axisCount-1)];if(!this.containPoint(e))return{behavior:"none",axisExpandWindow:r};var s=e[i]-n.layoutBase-n.axisExpandWindow0Pos,l="slide",u=n.axisCollapseWidth,d=this._model.get("axisExpandSlideTriggerArea"),c=null!=d[0];if(u)c&&u&&s<o*d[0]?(l="jump",t=s-o*d[2]):c&&u&&s>o*(1-d[0])?(l="jump",t=s-o*(1-d[2])):(t=s-o*d[1])>=0&&(t=s-o*(1-d[1]))<=0&&(t=0),(t*=n.axisExpandWidth/u)?(0,oZ.A)(t,r,a,"all"):l="none";else{var h=r[1]-r[0];(r=[oJ(0,a[1]*s/h-h/2)])[1]=o$(a[1],r[0]+h),r[0]=r[1]-h}return{axisExpandWindow:r,behavior:l}},e}();function o5(e,t){return o$(oJ(e,t[0]),t[1])}let o3={create:function(e,t){var n=[];return e.eachComponent("parallel",function(i,r){var o=new o2(i,e,t);o.name="parallel_"+r,o.resize(i,t),i.coordinateSystem=o,o.model=i,n.push(o)}),e.eachSeries(function(e){if("parallel"===e.get("coordinateSystem")){var t=e.getReferringComponents("parallel",eV.US).models[0];e.coordinateSystem=t.coordinateSystem}}),n}};var o6=n(96833),o4=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.activeIntervals=[],n}return(0,W.C6)(t,e),t.prototype.getAreaSelectStyle=function(){return(0,rh.A)([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},t.prototype.setActiveIntervals=function(e){var t=this.activeIntervals=A.clone(e);if(t)for(var n=t.length-1;n>=0;n--)er.Y6(t[n])},t.prototype.getActiveState=function(e){var t=this.activeIntervals;if(!t.length)return"normal";if(null==e||isNaN(+e))return"inactive";if(1===t.length){var n=t[0];if(n[0]<=e&&e<=n[1])return"active"}else for(var i=0,r=t.length;i<r;i++)if(t[i][0]<=e&&e<=t[i][1])return"active";return"inactive"},t}(g.A);A.mixin(o4,C.L);var o8=n(88593),o7=n(28709),o9=["axisLine","axisTickLabel","axisName"],ae=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,W.C6)(t,e),t.prototype.init=function(t,n){e.prototype.init.apply(this,arguments),(this._brushController=new o8.A(n.getZr())).on("brush",A.bind(this._onBrush,this))},t.prototype.render=function(e,t,n,i){var r,o,a;if(r=e,o=t,!(a=i)||"axisAreaSelect"!==a.type||o.findComponents({mainType:"parallelAxis",query:a})[0]!==r){this.axisModel=e,this.api=n,this.group.removeAll();var s=this._axisGroup;if(this._axisGroup=new el.A,this.group.add(this._axisGroup),e.get("show")){var l,u=(l=e,t.getComponent("parallel",l.get("parallelIndex"))),d=u.coordinateSystem,c=e.getAreaSelectStyle(),h=c.width,p=e.axis.dim,g=d.getAxisLayout(p),f=A.extend({strokeContainThreshold:h},g),y=new na.A(e,f);A.each(o9,y.add,y),this._axisGroup.add(y.getGroup()),this._refreshBrushController(f,c,e,u,h,n),ea.groupTransition(s,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,t,n,i,r,o){var a,s,l=n.axis.getExtent(),u=l[1]-l[0],d=Math.min(30,.1*Math.abs(u)),c=Y.A.create({x:l[0],y:-r/2,width:u,height:r});c.x-=d,c.width+=2*d,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,x:e.position[0],y:e.position[1]}).setPanels([{panelId:"pl",clipPath:o7.wd(c),isTargetByCursor:o7.x$(c,o,i),getLinearBrushOtherExtent:o7.wx(c,0)}]).enableBrush({brushType:"lineX",brushStyle:t,removeOnClick:!0}).updateCovers((s=(a=n).axis,A.map(a.activeIntervals,function(e){return{brushType:"lineX",panelId:"pl",range:[s.dataToCoord(e[0],!0),s.dataToCoord(e[1],!0)]}})))},t.prototype._onBrush=function(e){var t=e.areas,n=this.axisModel,i=n.axis,r=A.map(t,function(e){return[i.coordToData(e.range[0],!0),i.coordToData(e.range[1],!0)]});(!n.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:r})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(f.A),at={type:"axisAreaSelect",event:"axisAreaSelected"},an={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function ai(e){e.registerComponentView(oY),e.registerComponentModel(oX),e.registerCoordinateSystem("parallel",o3),e.registerPreprocessor(oW),e.registerComponentModel(o4),e.registerComponentView(ae),(0,o6.A)(e,"parallel",o4,an),e.registerAction(at,function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},function(t){t.axis.model.setActiveIntervals(e.intervals)})}),e.registerAction("parallelAxisExpand",function(e,t){t.eachComponent({mainType:"parallel",query:e},function(t){t.setAxisExpand(e)})})}var ar=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0},ao=function(e){function t(t){return e.call(this,t)||this}return(0,W.C6)(t,e),t.prototype.getDefaultShape=function(){return new ar},t.prototype.buildPath=function(e,t){var n=t.extent;e.moveTo(t.x1,t.y1),e.bezierCurveTo(t.cpx1,t.cpy1,t.cpx2,t.cpy2,t.x2,t.y2),"vertical"===t.orient?(e.lineTo(t.x2+n,t.y2),e.bezierCurveTo(t.cpx2+n,t.cpy2,t.cpx1+n,t.cpy1,t.x1+n,t.y1)):(e.lineTo(t.x2,t.y2+n),e.bezierCurveTo(t.cpx2,t.cpy2+n,t.cpx1,t.cpy1+n,t.x1,t.y1+n)),e.closePath()},t.prototype.highlight=function(){(0,E.HY)(this)},t.prototype.downplay=function(){(0,E.SD)(this)},t}(eQ.Ay),aa=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._focusAdjacencyDisabled=!1,n}return(0,W.C6)(t,e),t.prototype.render=function(e,t,n){var i,r,o,a,s=this,l=e.getGraph(),u=this.group,d=e.layoutInfo,c=d.width,h=d.height,p=e.getData(),g=e.getData("edge"),f=e.get("orient");this._model=e,u.removeAll(),u.x=d.x,u.y=d.y,l.eachEdge(function(t){var n,i,r,o,a,s,l,d,p=new ao,y=(0,P.z)(p);y.dataIndex=t.dataIndex,y.seriesIndex=e.seriesIndex,y.dataType="edge";var v=t.getModel(),m=v.getModel("lineStyle"),x=m.get("curveness"),_=t.node1.getLayout(),b=t.node1.getModel(),S=b.get("localX"),w=b.get("localY"),M=t.node2.getLayout(),I=t.node2.getModel(),C=I.get("localX"),T=I.get("localY"),L=t.getLayout();p.shape.extent=Math.max(1,L.dy),p.shape.orient=f,"vertical"===f?(n=(null!=S?S*c:_.x)+L.sy,i=(null!=w?w*h:_.y)+_.dy,r=(null!=C?C*c:M.x)+L.ty,o=null!=T?T*h:M.y,a=n,s=i*(1-x)+o*x,l=r,d=i*x+o*(1-x)):(n=(null!=S?S*c:_.x)+_.dx,i=(null!=w?w*h:_.y)+L.sy,r=null!=C?C*c:M.x,o=(null!=T?T*h:M.y)+L.ty,a=n*(1-x)+r*x,s=i,l=n*x+r*(1-x),d=o),p.setShape({x1:n,y1:i,x2:r,y2:o,cpx1:a,cpy1:s,cpx2:l,cpy2:d}),p.useStyle(m.getItemStyle()),as(p.style,f,t);var D=""+v.get("value"),k=(0,N.lx)(v,"edgeLabel");(0,N.qM)(p,k,{labelFetcher:{getFormattedLabel:function(t,n,i,r,o,a){return e.getFormattedLabel(t,n,"edge",r,(0,A.retrieve3)(o,k.normal&&k.normal.get("formatter"),D),a)}},labelDataIndex:t.dataIndex,defaultText:D}),p.setTextConfig({position:"inside"});var R=v.getModel("emphasis");(0,E.Mx)(p,v,"lineStyle",function(e){var n=e.getItemStyle();return as(n,f,t),n}),u.add(p),g.setItemGraphicEl(t.dataIndex,p);var V=R.get("focus");(0,E.Lm)(p,"adjacency"===V?t.getAdjacentDataIndices():"trajectory"===V?t.getTrajectoryDataIndices():V,R.get("blurScope"),R.get("disabled"))}),l.eachNode(function(t){var n=t.getLayout(),i=t.getModel(),r=i.get("localX"),o=i.get("localY"),a=i.getModel("emphasis"),s=new ev.A({shape:{x:null!=r?r*c:n.x,y:null!=o?o*h:n.y,width:n.dx,height:n.dy},style:i.getModel("itemStyle").getItemStyle(),z2:10});(0,N.qM)(s,(0,N.lx)(i),{labelFetcher:{getFormattedLabel:function(t,n){return e.getFormattedLabel(t,n,"node")}},labelDataIndex:t.dataIndex,defaultText:t.id}),s.disableLabelAnimation=!0,s.setStyle("fill",t.getVisual("color")),s.setStyle("decal",t.getVisual("style").decal),(0,E.Mx)(s,i),u.add(s),p.setItemGraphicEl(t.dataIndex,s),(0,P.z)(s).dataType="node";var l=a.get("focus");(0,E.Lm)(s,"adjacency"===l?t.getAdjacentDataIndices():"trajectory"===l?t.getTrajectoryDataIndices():l,a.get("blurScope"),a.get("disabled"))}),p.eachItemGraphicEl(function(t,i){p.getItemModel(i).get("draggable")&&(t.drift=function(t,r){s._focusAdjacencyDisabled=!0,this.shape.x+=t,this.shape.y+=r,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:p.getRawIndex(i),localX:this.shape.x/c,localY:this.shape.y/h})},t.ondragend=function(){s._focusAdjacencyDisabled=!1},t.draggable=!0,t.cursor="move")}),!this._data&&e.isAnimationEnabled()&&u.setClipPath((i=u.getBoundingRect(),r=e,o=function(){u.removeClipPath()},a=new ev.A({shape:{x:i.x-10,y:i.y-10,width:0,height:i.height+20}}),es.LW(a,{shape:{width:i.width+20}},r,o),a)),this._data=e.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(v.A);function as(e,t,n){switch(e.fill){case"source":e.fill=n.node1.getVisual("color"),e.decal=n.node1.getVisual("style").decal;break;case"target":e.fill=n.node2.getVisual("color"),e.decal=n.node2.getVisual("style").decal;break;case"gradient":var i=n.node1.getVisual("color"),r=n.node2.getVisual("color");(0,A.isString)(i)&&(0,A.isString)(r)&&(e.fill=new eS.A(0,0,+("horizontal"===t),+("vertical"===t),[{color:i,offset:0},{color:r,offset:1}]))}}var al=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,W.C6)(t,e),t.prototype.getInitialData=function(e,t){var n=e.edges||e.links,i=e.data||e.nodes,r=e.levels;this.levelModels=[];for(var o=this.levelModels,a=0;a<r.length;a++)null!=r[a].depth&&r[a].depth>=0&&(o[r[a].depth]=new T.A(r[a],this,t));if(i&&n)return oA(i,n,this,!0,function(e,t){e.wrapMethod("getItemModel",function(e,t){var n=e.parentModel,i=n.getData().getItemLayout(t);if(i){var r=i.depth,o=n.levelModels[r];o&&(e.parentModel=o)}return e}),t.wrapMethod("getItemModel",function(e,t){var n=e.parentModel,i=n.getGraph().getEdgeByIndex(t).node1.getLayout();if(i){var r=i.depth,o=n.levelModels[r];o&&(e.parentModel=o)}return e})}).data},t.prototype.setNodePosition=function(e,t){var n=(this.option.data||this.option.nodes)[e];n.localX=t[0],n.localY=t[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,t,n){function i(e){return isNaN(e)||null==e}if("edge"===n){var r=this.getDataParams(e,n),o=r.data,a=r.value,s=o.source+" -- "+o.target;return(0,nt.Qx)("nameValue",{name:s,value:a,noValue:i(a)})}var l=this.getGraph().getNodeByIndex(e).getLayout().value,u=this.getDataParams(e,n).data.name;return(0,nt.Qx)("nameValue",{name:null!=u?u+"":null,value:l,noValue:i(l)})},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(t,n){var i=e.prototype.getDataParams.call(this,t,n);return null==i.value&&"node"===n&&(i.value=this.getGraph().getNodeByIndex(t).getLayout().value),i},t.type="series.sankey",t.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},t}(y.A);function au(e,t){e.eachSeriesByType("sankey",function(e){var n,i,r,o,a,s,l,u,d,c,h,p,g,f=e.get("nodeWidth"),y=e.get("nodeGap"),v=(n=e,i=t,L.dV(n.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()}));e.layoutInfo=v;var m=v.width,x=v.height,_=e.getGraph(),b=_.nodes,S=_.edges;r=b,A.each(r,function(e){var t=Math.max(am(e.outEdges,av),am(e.inEdges,av),e.getValue()||0);e.setLayout({value:t},!0)});var w=0!==A.filter(b,function(e){return 0===e.getLayout().value}).length?0:e.get("layoutIterations");o=b,a=S,s=f,l=y,u=m,d=x,c=w,h=e.get("orient"),function(e,t,n,i,r,o,a){for(var s,l,u,d=[],c=[],h=[],p=[],g=0,f=0;f<t.length;f++)d[f]=1;for(var f=0;f<e.length;f++)c[f]=e[f].inEdges.length,0===c[f]&&h.push(e[f]);for(var y=-1;h.length;){for(var v=0;v<h.length;v++){var m=h[v],x=m.hostGraph.data.getRawDataItem(m.dataIndex),_=null!=x.depth&&x.depth>=0;_&&x.depth>y&&(y=x.depth),m.setLayout({depth:_?x.depth:g},!0),"vertical"===o?m.setLayout({dy:n},!0):m.setLayout({dx:n},!0);for(var b=0;b<m.outEdges.length;b++){var S=m.outEdges[b];d[t.indexOf(S)]=0;var w=S.node2,M=e.indexOf(w);0==--c[M]&&0>p.indexOf(w)&&p.push(w)}}++g,h=p,p=[]}for(var f=0;f<d.length;f++)if(1===d[f])throw Error("Sankey is a DAG, the original data has cycle!");var I=y>g-1?y:g-1;a&&"left"!==a&&function(e,t,n,i){if("right"===t){for(var r,o,a=[],s=e,l=0;s.length;){for(var u=0;u<s.length;u++){var d=s[u];d.setLayout({skNodeHeight:l},!0);for(var c=0;c<d.inEdges.length;c++){var h=d.inEdges[c];0>a.indexOf(h.node1)&&a.push(h.node1)}}s=a,a=[],++l}A.each(e,function(e){ad(e)||e.setLayout({depth:Math.max(0,i-e.getLayout().skNodeHeight)},!0)})}else{"justify"===t&&(r=e,o=i,A.each(r,function(e){ad(e)||e.outEdges.length||e.setLayout({depth:o},!0)}))}}(e,a,0,I),s=e,l="vertical"===o?(r-n)/I:(i-n)/I,u=o,A.each(s,function(e){var t=e.getLayout().depth*l;"vertical"===u?e.setLayout({y:t},!0):e.setLayout({x:t},!0)})}(o,a,s,u,d,h,e.get("nodeAlign")),function(e,t,n,i,r,o,a){var s,l,u,d,c,h,p,g,f,y,v,m=(s=e,l=[],u="vertical"===a?"y":"x",(d=(0,eV.Sq)(s,function(e){return e.getLayout()[u]})).keys.sort(function(e,t){return e-t}),A.each(d.keys,function(e){l.push(d.buckets.get(e))}),l);c=m,h=t,p=n,g=i,f=r,y=a,v=1/0,A.each(c,function(e){var t=e.length,n=0;A.each(e,function(e){n+=e.getLayout().value});var i="vertical"===y?(g-(t-1)*f)/n:(p-(t-1)*f)/n;i<v&&(v=i)}),A.each(c,function(e){A.each(e,function(e,t){var n=e.getLayout().value*v;"vertical"===y?(e.setLayout({x:t},!0),e.setLayout({dx:n},!0)):(e.setLayout({y:t},!0),e.setLayout({dy:n},!0))})}),A.each(h,function(e){var t=e.getValue()*v;e.setLayout({dy:t},!0)}),ac(m,r,n,i,a);for(var x=1;o>0;o--)(function(e,t,n){A.each(e.slice().reverse(),function(e){A.each(e,function(e){if(e.outEdges.length){var i=am(e.outEdges,ah,n)/am(e.outEdges,av);if(isNaN(i)){var r=e.outEdges.length;i=r?am(e.outEdges,ap,n)/r:0}if("vertical"===n){var o=e.getLayout().x+(i-ay(e,n))*t;e.setLayout({x:o},!0)}else{var a=e.getLayout().y+(i-ay(e,n))*t;e.setLayout({y:a},!0)}}})})})(m,x*=.99,a),ac(m,r,n,i,a),function(e,t,n){A.each(e,function(e){A.each(e,function(e){if(e.inEdges.length){var i=am(e.inEdges,ag,n)/am(e.inEdges,av);if(isNaN(i)){var r=e.inEdges.length;i=r?am(e.inEdges,af,n)/r:0}if("vertical"===n){var o=e.getLayout().x+(i-ay(e,n))*t;e.setLayout({x:o},!0)}else{var a=e.getLayout().y+(i-ay(e,n))*t;e.setLayout({y:a},!0)}}})})}(m,x,a),ac(m,r,n,i,a)}(o,a,d,u,l,c,h),p=o,g="vertical"===h?"x":"y",A.each(p,function(e){e.outEdges.sort(function(e,t){return e.node2.getLayout()[g]-t.node2.getLayout()[g]}),e.inEdges.sort(function(e,t){return e.node1.getLayout()[g]-t.node1.getLayout()[g]})}),A.each(p,function(e){var t=0,n=0;A.each(e.outEdges,function(e){e.setLayout({sy:t},!0),t+=e.getLayout().dy}),A.each(e.inEdges,function(e){e.setLayout({ty:n},!0),n+=e.getLayout().dy})})})}function ad(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return null!=t.depth&&t.depth>=0}function ac(e,t,n,i,r){var o="vertical"===r?"x":"y";A.each(e,function(e){e.sort(function(e,t){return e.getLayout()[o]-t.getLayout()[o]});for(var a,s,l,u=0,d=e.length,c="vertical"===r?"dx":"dy",h=0;h<d;h++)(l=u-(s=e[h]).getLayout()[o])>0&&(a=s.getLayout()[o]+l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),u=s.getLayout()[o]+s.getLayout()[c]+t;if((l=u-t-("vertical"===r?i:n))>0){a=s.getLayout()[o]-l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0),u=a;for(var h=d-2;h>=0;--h)(l=(s=e[h]).getLayout()[o]+s.getLayout()[c]+t-u)>0&&(a=s.getLayout()[o]-l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),u=s.getLayout()[o]}})}function ah(e,t){return ay(e.node2,t)*e.getValue()}function ap(e,t){return ay(e.node2,t)}function ag(e,t){return ay(e.node1,t)*e.getValue()}function af(e,t){return ay(e.node1,t)}function ay(e,t){return"vertical"===t?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function av(e){return e.getValue()}function am(e,t,n){for(var i=0,r=e.length,o=-1;++o<r;){var a=+t(e[o],n);isNaN(a)||(i+=a)}return i}function ax(e){e.eachSeriesByType("sankey",function(e){var t=e.getGraph(),n=t.nodes,i=t.edges;if(n.length){var r=1/0,o=-1/0;A.each(n,function(e){var t=e.getLayout().value;t<r&&(r=t),t>o&&(o=t)}),A.each(n,function(t){var n=new rM.A({type:"color",mappingMethod:"linear",dataExtent:[r,o],visual:e.get("color")}).mapValueToVisual(t.getLayout().value),i=t.getModel().get(["itemStyle","color"]);null!=i?(t.setVisual("color",i),t.setVisual("style",{fill:i})):(t.setVisual("color",n),t.setVisual("style",{fill:n}))})}i.length&&A.each(i,function(e){var t=e.getModel().get("lineStyle");e.setVisual("style",t)})})}var a_=n(1122),ab=function(){function e(){}return e.prototype.getInitialData=function(e,t){var n,i,r=t.getComponent("xAxis",this.get("xAxisIndex")),o=t.getComponent("yAxis",this.get("yAxisIndex")),a=r.get("type"),s=o.get("type");"category"===a?(e.layout="horizontal",n=r.getOrdinalMeta(),i=!0):"category"===s?(e.layout="vertical",n=o.getOrdinalMeta(),i=!0):e.layout=e.layout||"horizontal";var l=["x","y"],u=+("horizontal"!==e.layout),d=this._baseAxisDim=l[u],c=l[1-u],h=[r,o],p=h[u].get("type"),g=h[1-u].get("type"),f=e.data;if(f&&i){var y=[];A.each(f,function(e,t){var n;A.isArray(e)?(n=e.slice(),e.unshift(t)):A.isArray(e.value)?((n=A.extend({},e)).value=n.value.slice(),e.value.unshift(t)):n=e,y.push(n)}),e.data=y}var v=this.defaultValueDimensions,m=[{name:d,type:(0,a_.B)(p),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:c,type:(0,a_.B)(g),dimsDef:v.slice()}];return(0,t9.A)(this,{coordDimensions:m,dimensionsCount:v.length+1,encodeDefaulter:A.curry(id.OC,m,this)})},e.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},e}(),aA=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],n.visualDrawType="stroke",n}return(0,W.C6)(t,e),t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},t}(y.A);(0,A.mixin)(aA,ab,!0);var aS=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,W.C6)(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),r=this.group,o=this._data;this._data||r.removeAll();var a=+("horizontal"===e.get("layout"));i.diff(o).add(function(e){if(i.hasValue(e)){var t=aI(i.getItemLayout(e),i,e,a,!0);i.setItemGraphicEl(e,t),r.add(t)}}).update(function(e,t){var n=o.getItemGraphicEl(t);if(!i.hasValue(e))return void r.remove(n);var s=i.getItemLayout(e);n?((0,es.ap)(n),aC(s,n,i,e)):n=aI(s,i,e,a),r.add(n),i.setItemGraphicEl(e,n)}).remove(function(e){var t=o.getItemGraphicEl(e);t&&r.remove(t)}).execute(),this._data=i},t.prototype.remove=function(e){var t=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl(function(e){e&&t.remove(e)})},t.type="boxplot",t}(v.A),aw=function(){},aM=function(e){function t(t){var n=e.call(this,t)||this;return n.type="boxplotBoxPath",n}return(0,W.C6)(t,e),t.prototype.getDefaultShape=function(){return new aw},t.prototype.buildPath=function(e,t){var n=t.points,i=0;for(e.moveTo(n[i][0],n[i][1]),i++;i<4;i++)e.lineTo(n[i][0],n[i][1]);for(e.closePath();i<n.length;i++)e.moveTo(n[i][0],n[i][1]),i++,e.lineTo(n[i][0],n[i][1])},t}(eQ.Ay);function aI(e,t,n,i,r){var o,a,s,l=e.ends,u=new aM({shape:{points:r?(o=l,a=i,s=e,A.map(o,function(e){return(e=e.slice())[a]=s.initBaseline,e})):l}});return aC(e,u,t,n,r),u}function aC(e,t,n,i,r){var o=n.hostModel;(0,ea[r?"initProps":"updateProps"])(t,{shape:{points:e.ends}},o,i),t.useStyle(n.getItemVisual(i,"style")),t.style.strokeNoScale=!0,t.z2=100;var a=n.getItemModel(i),s=a.getModel("emphasis");(0,E.Mx)(t,a),(0,E.Lm)(t,s.get("focus"),s.get("blurScope"),s.get("disabled"))}var aT=A.each;function aL(e){var t,n;aT((t=[],n=[],e.eachSeriesByType("boxplot",function(e){var i=e.getBaseAxis(),r=A.indexOf(n,i);r<0&&(r=n.length,n[r]=i,t[r]={axis:i,seriesModels:[]}),t[r].seriesModels.push(e)}),t),function(e){var t=e.seriesModels;t.length&&(function(e){var t,n=e.axis,i=e.seriesModels,r=i.length,o=e.boxWidthList=[],a=e.boxOffsetList=[],s=[];if("category"===n.type)t=n.getBandWidth();else{var l=0;aT(i,function(e){l=Math.max(l,e.getData().count())});var u=n.getExtent();t=Math.abs(u[1]-u[0])/l}aT(i,function(e){var n=e.get("boxWidth");A.isArray(n)||(n=[n,n]),s.push([(0,er.lo)(n[0],t)||0,(0,er.lo)(n[1],t)||0])});var d=.8*t-2,c=d/r*.3,h=(d-c*(r-1))/r,p=h/2-d/2;aT(i,function(e,t){a.push(p),p+=c+h,o.push(Math.min(Math.max(h,s[t][0]),s[t][1]))})}(e),aT(t,function(t,n){!function(e,t,n){var i=e.coordinateSystem,r=e.getData(),o=n/2,a=+("horizontal"!==e.get("layout")),s=1-a,l=["x","y"],u=r.mapDimension(l[a]),d=r.mapDimensionsAll(l[s]);if(null!=u&&!(d.length<5))for(var c=0;c<r.count();c++){var h=r.get(u,c),p=x(h,d[2],c),g=x(h,d[0],c),f=x(h,d[1],c),y=x(h,d[3],c),v=x(h,d[4],c),m=[];_(m,f,!1),_(m,y,!0),m.push(g,f,v,y),b(m,g),b(m,v),b(m,p),r.setItemLayout(c,{initBaseline:p[s],ends:m})}function x(e,n,o){var l,u=r.get(n,o),d=[];return d[a]=e,d[s]=u,isNaN(e)||isNaN(u)?l=[NaN,NaN]:(l=i.dataToPoint(d),l[a]+=t),l}function _(e,t,n){var i=t.slice(),r=t.slice();i[a]+=o,r[a]-=o,n?e.push(i,r):e.push(r,i)}function b(e,t){var n=t.slice(),i=t.slice();n[a]-=o,i[a]+=o,e.push(n,i)}}(t,e.boxOffsetList[n],e.boxWidthList[n])}))})}var aD=n(58391),aP=n(95056),aN={type:"echarts:boxplot",transform:function(e){var t=e.upstream;t.sourceFormat!==aP.Km&&(0,aD.$8)("");var n=function(e,t){for(var n=[],i=[],r=(t=t||{}).boundIQR,o="none"===r||0===r,a=0;a<e.length;a++){var s=(0,er.Y6)(e[a].slice()),l=(0,er.YV)(s,.25),u=(0,er.YV)(s,.5),d=(0,er.YV)(s,.75),c=s[0],h=s[s.length-1],p=(null==r?1.5:r)*(d-l),g=o?c:Math.max(c,l-p),f=o?h:Math.min(h,d+p),y=t.itemNameFormatter,v=(0,A.isFunction)(y)?y({value:a}):(0,A.isString)(y)?y.replace("{value}",a+""):a+"";n.push([v,g,l,u,d,f]);for(var m=0;m<s.length;m++){var x=s[m];if(x<g||x>f){var _=[v,x];i.push(_)}}}return{boxData:n,outliers:i}}(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:n.boxData},{data:n.outliers}]}},ak=n(55037),aR=["color","borderColor"],aE=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,W.C6)(t,e),t.prototype.render=function(e,t,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,t,n){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,t,n,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,t):this._incrementalRenderNormal(e,t)},t.prototype.eachRendered=function(e){ea.traverseElements(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;(null==this._isLargeDraw||t!==this._isLargeDraw)&&(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e){var t=e.getData(),n=this._data,i=this.group,r=t.getLayout("isSimpleBox"),o=e.get("clip",!0),a=e.coordinateSystem,s=a.getArea&&a.getArea();this._data||i.removeAll(),t.diff(n).add(function(n){if(t.hasValue(n)){var a=t.getItemLayout(n);if(!(o&&aG(s,a))){var l=aO(a,n,!0);es.LW(l,{shape:{points:a.ends}},e,n),aB(l,t,n,r),i.add(l),t.setItemGraphicEl(n,l)}}}).update(function(a,l){var u=n.getItemGraphicEl(l);if(!t.hasValue(a))return void i.remove(u);var d=t.getItemLayout(a);o&&aG(s,d)?i.remove(u):(u?(es.oi(u,{shape:{points:d.ends}},e,a),(0,es.ap)(u)):u=aO(d,a),aB(u,t,a,r),i.add(u),t.setItemGraphicEl(a,u))}).remove(function(e){var t=n.getItemGraphicEl(e);t&&i.remove(t)}).execute(),this._data=t},t.prototype._renderLarge=function(e){this._clear(),aY(e,this.group);var t=e.get("clip",!0)?(0,ak.Ip)(e.coordinateSystem,!1,e):null;t?this.group.setClipPath(t):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,t){for(var n,i=t.getData(),r=i.getLayout("isSimpleBox");null!=(n=e.next());){var o=aO(i.getItemLayout(n),n);aB(o,i,n,r),o.incremental=!0,this.group.add(o),this._progressiveEls.push(o)}},t.prototype._incrementalRenderLarge=function(e,t){aY(t,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(v.A),aV=function(){},az=function(e){function t(t){var n=e.call(this,t)||this;return n.type="normalCandlestickBox",n}return(0,W.C6)(t,e),t.prototype.getDefaultShape=function(){return new aV},t.prototype.buildPath=function(e,t){var n=t.points;this.__simpleBox?(e.moveTo(n[4][0],n[4][1]),e.lineTo(n[6][0],n[6][1])):(e.moveTo(n[0][0],n[0][1]),e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]),e.lineTo(n[3][0],n[3][1]),e.closePath(),e.moveTo(n[4][0],n[4][1]),e.lineTo(n[5][0],n[5][1]),e.moveTo(n[6][0],n[6][1]),e.lineTo(n[7][0],n[7][1]))},t}(eQ.Ay);function aO(e,t,n){var i,r,o=e.ends;return new az({shape:{points:n?(i=o,r=e,A.map(i,function(e){return(e=e.slice())[1]=r.initBaseline,e})):o},z2:100})}function aG(e,t){for(var n=!0,i=0;i<t.ends.length;i++)if(e.contain(t.ends[i][0],t.ends[i][1])){n=!1;break}return n}function aB(e,t,n,i){var r=t.getItemModel(n);e.useStyle(t.getItemVisual(n,"style")),e.style.strokeNoScale=!0,e.__simpleBox=i,(0,E.Mx)(e,r)}var aF=function(){},aW=function(e){function t(t){var n=e.call(this,t)||this;return n.type="largeCandlestickBox",n}return(0,W.C6)(t,e),t.prototype.getDefaultShape=function(){return new aF},t.prototype.buildPath=function(e,t){for(var n=t.points,i=0;i<n.length;)if(this.__sign===n[i++]){var r=n[i++];e.moveTo(r,n[i++]),e.lineTo(r,n[i++])}else i+=3},t}(eQ.Ay);function aY(e,t,n,i){var r=e.getData(),o=r.getLayout("largePoints"),a=new aW({shape:{points:o},__sign:1,ignoreCoarsePointer:!0});t.add(a);var s=new aW({shape:{points:o},__sign:-1,ignoreCoarsePointer:!0});t.add(s);var l=new aW({shape:{points:o},__sign:0,ignoreCoarsePointer:!0});t.add(l),aH(1,a,e,r),aH(-1,s,e,r),aH(0,l,e,r),i&&(a.incremental=!0,s.incremental=!0),n&&n.push(a,s)}function aH(e,t,n,i){var r=n.get(["itemStyle",e>0?"borderColor":"borderColor0"])||n.get(["itemStyle",e>0?"color":"color0"]);0===e&&(r=n.get(["itemStyle","borderColorDoji"]));var o=n.getModel("itemStyle").getItemStyle(aR);t.useStyle(o),t.style.fill=null,t.style.stroke=r}var aU=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],n}return(0,W.C6)(t,e),t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(e,t,n){var i=t.getItemLayout(e);return i&&n.rect(i.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t}(y.A);function aX(e){e&&A.isArray(e.series)&&A.each(e.series,function(e){A.isObject(e)&&"k"===e.type&&(e.type="candlestick")})}(0,A.mixin)(aU,ab,!0);var aj=n(65132),aZ=["itemStyle","borderColor"],aq=["itemStyle","borderColor0"],a$=["itemStyle","borderColorDoji"],aJ=["itemStyle","color"],aQ=["itemStyle","color0"],aK={seriesType:"candlestick",plan:(0,aj.A)(),performRawSeries:!0,reset:function(e,t){if(!t.isSeriesFiltered(e))return!e.pipelineContext.large&&{progress:function(e,t){for(var n;null!=(n=e.next());){var i=t.getItemModel(n),r=t.getItemLayout(n).sign,o=i.getItemStyle();o.fill=i.get(r>0?aJ:aQ),o.stroke=i.get(0===r?a$:r>0?aZ:aq)||o.fill;var a=t.ensureUniqueItemVisual(n,"style");(0,A.extend)(a,o)}}}}},a0=n(30095),a1={seriesType:"candlestick",plan:(0,aj.A)(),reset:function(e){var t,n,i,r,o,a,s,l,u=e.coordinateSystem,d=e.getData(),c=(t=e,n=d,o="category"===(r=t.getBaseAxis()).type?r.getBandWidth():Math.abs((i=r.getExtent())[1]-i[0])/n.count(),a=(0,er.lo)((0,A.retrieve2)(t.get("barMaxWidth"),o),o),s=(0,er.lo)((0,A.retrieve2)(t.get("barMinWidth"),1),o),null!=(l=t.get("barWidth"))?(0,er.lo)(l,o):Math.max(Math.min(o/2,a),s)),h=d.getDimensionIndex(d.mapDimension("x")),p=(0,A.map)(d.mapDimensionsAll("y"),d.getDimensionIndex,d),g=p[0],f=p[1],y=p[2],v=p[3];if(d.setLayout({candleWidth:c,isSimpleBox:c<=1.3}),!(h<0)&&!(p.length<4))return{progress:e.pipelineContext.large?function(t,n){for(var i,r,o=(0,a0.J)(4*t.count),a=0,s=[],l=[],d=n.getStore(),c=!!e.get(["itemStyle","borderColorDoji"]);null!=(r=t.next());){var p=d.get(h,r),m=d.get(g,r),x=d.get(f,r),_=d.get(y,r),b=d.get(v,r);if(isNaN(p)||isNaN(_)||isNaN(b)){o[a++]=NaN,a+=3;continue}o[a++]=a2(d,r,m,x,f,c),s[0]=p,s[1]=_,i=u.dataToPoint(s,null,l),o[a++]=i?i[0]:NaN,o[a++]=i?i[1]:NaN,s[1]=b,i=u.dataToPoint(s,null,l),o[a++]=i?i[1]:NaN}n.setLayout("largePoints",o)}:function(e,t){for(var n,i=t.getStore();null!=(n=e.next());){var r=i.get(h,n),o=i.get(g,n),a=i.get(f,n),s=i.get(y,n),l=i.get(v,n),d=Math.min(o,a),p=Math.max(o,a),m=w(d,r),x=w(p,r),_=w(s,r),b=w(l,r),A=[];M(A,x,0),M(A,m,1),A.push(I(b),I(x),I(_),I(m));var S=!!t.getItemModel(n).get(["itemStyle","borderColorDoji"]);t.setItemLayout(n,{sign:a2(i,n,o,a,f,S),initBaseline:o>a?x[1]:m[1],ends:A,brushRect:function(e,t,n){var i=w(e,n),r=w(t,n);return i[0]-=c/2,r[0]-=c/2,{x:i[0],y:i[1],width:c,height:r[1]-i[1]}}(s,l,r)})}function w(e,t){var n=[];return n[0]=t,n[1]=e,isNaN(t)||isNaN(e)?[NaN,NaN]:u.dataToPoint(n)}function M(e,t,n){var i=t.slice(),r=t.slice();i[0]=(0,ea.subPixelOptimize)(i[0]+c/2,1,!1),r[0]=(0,ea.subPixelOptimize)(r[0]-c/2,1,!0),n?e.push(i,r):e.push(r,i)}function I(e){return e[0]=(0,ea.subPixelOptimize)(e[0],1),e}}}}};function a2(e,t,n,i,r,o){return n>i?-1:n<i?1:o?0:t>0?e.get(r,t-1)<=i?1:-1:1}function a5(e,t){var n=t.rippleEffectColor||t.color;e.eachChild(function(e){e.attr({z:t.z,zlevel:t.zlevel,style:{stroke:"stroke"===t.brushType?n:null,fill:"fill"===t.brushType?n:null}})})}var a3=function(e){function t(t,n){var i=e.call(this)||this,r=new iN.A(t,n),o=new el.A;return i.add(r),i.add(o),i.updateData(t,n),i}return(0,W.C6)(t,e),t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(e){for(var t=e.symbolType,n=e.color,i=e.rippleNumber,r=this.childAt(1),o=0;o<i;o++){var a=(0,R.v5)(t,-1,-1,2,2,n);a.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var s=-o/i*e.period+e.effectOffset;a.animate("",!0).when(e.period,{scaleX:e.rippleScale/2,scaleY:e.rippleScale/2}).delay(s).start(),a.animateStyle(!0).when(e.period,{opacity:0}).delay(s).start(),r.add(a)}a5(r,e)},t.prototype.updateEffectAnimation=function(e){for(var t=this._effectCfg,n=this.childAt(1),i=["symbolType","period","rippleScale","rippleNumber"],r=0;r<i.length;r++){var o=i[r];if(t[o]!==e[o]){this.stopEffectAnimation(),this.startEffectAnimation(e);return}}a5(n,e)},t.prototype.highlight=function(){(0,E.HY)(this)},t.prototype.downplay=function(){(0,E.SD)(this)},t.prototype.getSymbolType=function(){var e=this.childAt(0);return e&&e.getSymbolType()},t.prototype.updateData=function(e,t){var n=this,i=e.hostModel;this.childAt(0).updateData(e,t);var r=this.childAt(1),o=e.getItemModel(t),a=e.getItemVisual(t,"symbol"),s=(0,R.xU)(e.getItemVisual(t,"symbolSize")),l=e.getItemVisual(t,"style"),u=l&&l.fill,d=o.getModel("emphasis");r.setScale(s),r.traverse(function(e){e.setStyle("fill",u)});var c=(0,R.hV)(e.getItemVisual(t,"symbolOffset"),s);c&&(r.x=c[0],r.y=c[1]),r.rotation=(e.getItemVisual(t,"symbolRotate")||0)*Math.PI/180||0;var h={};h.showEffectOn=i.get("showEffectOn"),h.rippleScale=o.get(["rippleEffect","scale"]),h.brushType=o.get(["rippleEffect","brushType"]),h.period=1e3*o.get(["rippleEffect","period"]),h.effectOffset=t/e.count(),h.z=i.getShallow("z")||0,h.zlevel=i.getShallow("zlevel")||0,h.symbolType=a,h.color=u,h.rippleEffectColor=o.get(["rippleEffect","color"]),h.rippleNumber=o.get(["rippleEffect","number"]),"render"===h.showEffectOn?(this._effectCfg?this.updateEffectAnimation(h):this.startEffectAnimation(h),this._effectCfg=h):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(e){"emphasis"===e?"render"!==h.showEffectOn&&n.startEffectAnimation(h):"normal"===e&&"render"!==h.showEffectOn&&n.stopEffectAnimation()}),this._effectCfg=h,(0,E.Lm)(this,d.get("focus"),d.get("blurScope"),d.get("disabled"))},t.prototype.fadeOut=function(e){e&&e()},t}(el.A),a6=n(97548),a4=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,W.C6)(t,e),t.prototype.init=function(){this._symbolDraw=new oi.A(a3)},t.prototype.render=function(e,t,n){var i=e.getData(),r=this._symbolDraw;r.updateData(i,{clipShape:this._getClipShape(e)}),this.group.add(r.group)},t.prototype._getClipShape=function(e){var t=e.coordinateSystem,n=t&&t.getArea&&t.getArea();return e.get("clip",!0)?n:null},t.prototype.updateTransform=function(e,t,n){var i=e.getData();this.group.dirty();var r=(0,a6.A)("").reset(e,t,n);r.progress&&r.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout()},t.prototype._updateGroupTransform=function(e){var t=e.coordinateSystem;t&&t.getRoamTransform&&(this.group.transform=_.clone(t.getRoamTransform()),this.group.decomposeTransform())},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0)},t.type="effectScatter",t}(v.A),a8=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return(0,W.C6)(t,e),t.prototype.getInitialData=function(e,t){return(0,M.A)(null,this,{useEncodeDefaulter:!0})},t.prototype.brushSelector=function(e,t,n){return n.point(t.getItemLayout(e))},t.type="series.effectScatter",t.dependencies=["grid","polar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},t}(y.A),a7=n(25591),a9=function(e){function t(t,n,i){var r=e.call(this)||this;return r.add(r.createLine(t,n,i)),r._updateEffectSymbol(t,n),r}return(0,W.C6)(t,e),t.prototype.createLine=function(e,t,n){return new a7.A(e,t,n)},t.prototype._updateEffectSymbol=function(e,t){var n=e.getItemModel(t).getModel("effect"),i=n.get("symbolSize"),r=n.get("symbol");A.isArray(i)||(i=[i,i]);var o=e.getItemVisual(t,"style"),a=n.get("color")||o&&o.stroke,s=this.childAt(1);this._symbolType!==r&&(this.remove(s),(s=(0,R.v5)(r,-.5,-.5,1,1,a)).z2=100,s.culling=!0,this.add(s)),s&&(s.setStyle("shadowColor",a),s.setStyle(n.getItemStyle(["color"])),s.scaleX=i[0],s.scaleY=i[1],s.setColor(a),this._symbolType=r,this._symbolScale=i,this._updateEffectAnimation(e,n,t))},t.prototype._updateEffectAnimation=function(e,t,n){var i=this.childAt(1);if(i){var r=e.getItemLayout(n),o=1e3*t.get("period"),a=t.get("loop"),s=t.get("roundTrip"),l=t.get("constantSpeed"),u=A.retrieve(t.get("delay"),function(t){return t/e.count()*o/3});if(i.ignore=!0,this._updateAnimationPoints(i,r),l>0&&(o=this._getLineLength(i)/l*1e3),o!==this._period||a!==this._loop||s!==this._roundTrip){i.stopAnimation();var d=void 0;d=A.isFunction(u)?u(n):u,i.__t>0&&(d=-o*i.__t),this._animateSymbol(i,o,d,a,s)}this._period=o,this._loop=a,this._roundTrip=s}},t.prototype._animateSymbol=function(e,t,n,i,r){if(t>0){e.__t=0;var o=this,a=e.animate("",i).when(r?2*t:t,{__t:r?2:1}).delay(n).during(function(){o._updateSymbolPosition(e)});i||a.done(function(){o.remove(e)}),a.start()}},t.prototype._getLineLength=function(e){return b.dist(e.__p1,e.__cp1)+b.dist(e.__cp1,e.__p2)},t.prototype._updateAnimationPoints=function(e,t){e.__p1=t[0],e.__p2=t[1],e.__cp1=t[2]||[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]},t.prototype.updateData=function(e,t,n){this.childAt(0).updateData(e,t,n),this._updateEffectSymbol(e,t)},t.prototype._updateSymbolPosition=function(e){var t=e.__p1,n=e.__p2,i=e.__cp1,r=e.__t<1?e.__t:2-e.__t,o=[e.x,e.y],a=o.slice(),s=oo.k3,l=oo.z7;o[0]=s(t[0],i[0],n[0],r),o[1]=s(t[1],i[1],n[1],r);var u=e.__t<1?l(t[0],i[0],n[0],r):l(n[0],i[0],t[0],1-r),d=e.__t<1?l(t[1],i[1],n[1],r):l(n[1],i[1],t[1],1-r);e.rotation=-Math.atan2(d,u)-Math.PI/2,("line"===this._symbolType||"rect"===this._symbolType||"roundRect"===this._symbolType)&&(void 0!==e.__lastT&&e.__lastT<e.__t?(e.scaleY=1.05*b.dist(a,o),1===r&&(o[0]=a[0]+(o[0]-a[0])/2,o[1]=a[1]+(o[1]-a[1])/2)):1===e.__lastT?e.scaleY=2*b.dist(t,o):e.scaleY=this._symbolScale[1]),e.__lastT=e.__t,e.ignore=!1,e.x=o[0],e.y=o[1]},t.prototype.updateLayout=function(e,t){this.childAt(0).updateLayout(e,t);var n=e.getItemModel(t).getModel("effect");this._updateEffectAnimation(e,n,t)},t}(el.A),se=function(e){function t(t,n,i){var r=e.call(this)||this;return r._createPolyline(t,n,i),r}return(0,W.C6)(t,e),t.prototype._createPolyline=function(e,t,n){var i=e.getItemLayout(t),r=new ey.A({shape:{points:i}});this.add(r),this._updateCommonStl(e,t,n)},t.prototype.updateData=function(e,t,n){var i=e.hostModel,r=this.childAt(0),o={shape:{points:e.getItemLayout(t)}};es.oi(r,o,i,t),this._updateCommonStl(e,t,n)},t.prototype._updateCommonStl=function(e,t,n){var i=this.childAt(0),r=e.getItemModel(t),o=n&&n.emphasisLineStyle,a=n&&n.focus,s=n&&n.blurScope,l=n&&n.emphasisDisabled;if(!n||e.hasItemOption){var u=r.getModel("emphasis");o=u.getModel("lineStyle").getLineStyle(),l=u.get("disabled"),a=u.get("focus"),s=u.get("blurScope")}i.useStyle(e.getItemVisual(t,"style")),i.style.fill=null,i.style.strokeNoScale=!0,i.ensureState("emphasis").style=o,(0,E.Lm)(this,a,s,l)},t.prototype.updateLayout=function(e,t){this.childAt(0).setShape("points",e.getItemLayout(t))},t}(el.A),st=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._lastFrame=0,t._lastFramePercent=0,t}return(0,W.C6)(t,e),t.prototype.createLine=function(e,t,n){return new se(e,t,n)},t.prototype._updateAnimationPoints=function(e,t){this._points=t;for(var n=[0],i=0,r=1;r<t.length;r++){var o=t[r-1],a=t[r];i+=b.dist(o,a),n.push(i)}if(0===i){this._length=0;return}for(var r=0;r<n.length;r++)n[r]/=i;this._offsets=n,this._length=i},t.prototype._getLineLength=function(){return this._length},t.prototype._updateSymbolPosition=function(e){var t,n=e.__t<1?e.__t:2-e.__t,i=this._points,r=this._offsets,o=i.length;if(r){var a=this._lastFrame;if(n<this._lastFramePercent){for(t=Math.min(a+1,o-1);t>=0&&!(r[t]<=n);t--);t=Math.min(t,o-2)}else{for(t=a;t<o&&!(r[t]>n);t++);t=Math.min(t-1,o-2)}var s=(n-r[t])/(r[t+1]-r[t]),l=i[t],u=i[t+1];e.x=l[0]*(1-s)+s*u[0],e.y=l[1]*(1-s)+s*u[1];var d=e.__t<1?u[0]-l[0]:l[0]-u[0],c=e.__t<1?u[1]-l[1]:l[1]-u[1];e.rotation=-Math.atan2(c,d)-Math.PI/2,this._lastFrame=t,this._lastFramePercent=n,e.ignore=!1}},t}(a9),sn=n(37793),si=n(90493),sr=function(){this.polyline=!1,this.curveness=0,this.segs=[]},so=function(e){function t(t){var n=e.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return(0,W.C6)(t,e),t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new sr},t.prototype.buildPath=function(e,t){var n,i=t.segs,r=t.curveness;if(t.polyline)for(n=this._off;n<i.length;){var o=i[n++];if(o>0){e.moveTo(i[n++],i[n++]);for(var a=1;a<o;a++)e.lineTo(i[n++],i[n++])}}else for(n=this._off;n<i.length;){var s=i[n++],l=i[n++],u=i[n++],d=i[n++];if(e.moveTo(s,l),r>0){var c=(s+u)/2-(l-d)*r,h=(l+d)/2-(u-s)*r;e.quadraticCurveTo(c,h,u,d)}else e.lineTo(u,d)}this.incremental&&(this._off=n,this.notClear=!0)},t.prototype.findDataIndex=function(e,t){var n=this.shape,i=n.segs,r=n.curveness,o=this.style.lineWidth;if(n.polyline)for(var a=0,s=0;s<i.length;){var l=i[s++];if(l>0)for(var u=i[s++],d=i[s++],c=1;c<l;c++){var h=i[s++],p=i[s++];if(sn.l(u,d,h,p,o,e,t))return a}a++}else for(var a=0,s=0;s<i.length;){var u=i[s++],d=i[s++],h=i[s++],p=i[s++];if(r>0){var g=(u+h)/2-(d-p)*r,f=(d+p)/2-(h-u)*r;if(si.l(u,d,g,f,h,p,o,e,t))return a}else if(sn.l(u,d,h,p,o,e,t))return a;a++}return -1},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),i=this.getBoundingRect();return(e=n[0],t=n[1],i.contain(e,t))?(this.hoverDataIdx=this.findDataIndex(e,t))>=0:(this.hoverDataIdx=-1,!1)},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var t=this.shape.segs,n=1/0,i=1/0,r=-1/0,o=-1/0,a=0;a<t.length;){var s=t[a++],l=t[a++];n=Math.min(s,n),r=Math.max(s,r),i=Math.min(l,i),o=Math.max(l,o)}e=this._rect=new Y.A(n,i,r,o)}return e},t}(eQ.Ay),sa=function(){function e(){this.group=new el.A}return e.prototype.updateData=function(e){this._clear();var t=this._create();t.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(t,e)},e.prototype.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clear()},e.prototype.incrementalUpdate=function(e,t){var n=this._newAdded[0],i=t.getLayout("linesPoints"),r=n&&n.shape.segs;if(r&&r.length<2e4){var o=r.length,a=new Float32Array(o+i.length);a.set(r),a.set(i,o),n.setShape({segs:a})}else{this._newAdded=[];var s=this._create();s.incremental=!0,s.setShape({segs:i}),this._setCommon(s,t),s.__startIndex=e.start}},e.prototype.remove=function(){this._clear()},e.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},e.prototype._create=function(){var e=new so({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(e),this.group.add(e),e},e.prototype._setCommon=function(e,t,n){var i=t.hostModel;e.setShape({polyline:i.get("polyline"),curveness:i.get(["lineStyle","curveness"])}),e.useStyle(i.getModel("lineStyle").getLineStyle()),e.style.strokeNoScale=!0;var r=t.getVisual("style");r&&r.stroke&&e.setStyle("stroke",r.stroke),e.setStyle("fill",null);var o=(0,P.z)(e);o.seriesIndex=i.seriesIndex,e.on("mousemove",function(t){o.dataIndex=null;var n=e.hoverDataIdx;n>0&&(o.dataIndex=n+e.__startIndex)})},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),ss={seriesType:"lines",plan:(0,aj.A)(),reset:function(e){var t=e.coordinateSystem;if(t){var n=e.get("polyline"),i=e.pipelineContext.large;return{progress:function(r,o){var a=[];if(i){var s=void 0,l=r.end-r.start;if(n){for(var u=0,d=r.start;d<r.end;d++)u+=e.getLineCoordsCount(d);s=new Float32Array(l+2*u)}else s=new Float32Array(4*l);for(var c=0,h=[],d=r.start;d<r.end;d++){var p=e.getLineCoords(d,a);n&&(s[c++]=p);for(var g=0;g<p;g++)h=t.dataToPoint(a[g],!1,h),s[c++]=h[0],s[c++]=h[1]}o.setLayout("linesPoints",s)}else for(var d=r.start;d<r.end;d++){var f=o.getItemModel(d),p=e.getLineCoords(d,a),y=[];if(n)for(var v=0;v<p;v++)y.push(t.dataToPoint(a[v]));else{y[0]=t.dataToPoint(a[0]),y[1]=t.dataToPoint(a[1]);var m=f.get(["lineStyle","curveness"]);+m&&(y[2]=[(y[0][0]+y[1][0])/2-(y[0][1]-y[1][1])*m,(y[0][1]+y[1][1])/2-(y[1][0]-y[0][0])*m])}o.setItemLayout(d,y)}}}}}},sl=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,W.C6)(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),r=this._updateLineDraw(i,e),o=e.get("zlevel"),a=e.get(["effect","trailLength"]),s=n.getZr(),l="svg"===s.painter.getType();l||s.painter.getLayer(o).clear(!0),null==this._lastZlevel||l||s.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(e)&&a>0&&(l||s.configLayer(o,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(a/10+.9,1),0)})),r.updateData(i);var u=e.get("clip",!0)&&(0,ak.Ip)(e.coordinateSystem,!1,e);u?this.group.setClipPath(u):this.group.removeClipPath(),this._lastZlevel=o,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var i=e.getData();this._updateLineDraw(i,e).incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._lineDraw.incrementalUpdate(e,t.getData()),this._finished=e.end===t.getData().count()},t.prototype.eachRendered=function(e){this._lineDraw&&this._lineDraw.eachRendered(e)},t.prototype.updateTransform=function(e,t,n){var i=e.getData(),r=e.pipelineContext;if(!this._finished||r.large||r.progressiveRender)return{update:!0};var o=ss.reset(e,t,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},t.prototype._updateLineDraw=function(e,t){var n=this._lineDraw,i=this._showEffect(t),r=!!t.get("polyline"),o=t.pipelineContext.large;return n&&i===this._hasEffet&&r===this._isPolyline&&o===this._isLargeDraw||(n&&n.remove(),n=this._lineDraw=o?new sa:new or.A(r?i?st:se:i?a9:a7.A),this._hasEffet=i,this._isPolyline=r,this._isLargeDraw=o),this.group.add(n.group),n},t.prototype._showEffect=function(e){return!!e.get(["effect","show"])},t.prototype._clearLayer=function(e){var t=e.getZr();"svg"!==t.painter.getType()&&null!=this._lastZlevel&&t.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(e,t){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(t)},t.prototype.dispose=function(e,t){this.remove(e,t)},t.type="lines",t}(v.A),su="undefined"==typeof Uint32Array?Array:Uint32Array,sd="undefined"==typeof Float64Array?Array:Float64Array;function sc(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=(0,A.map)(t,function(e){var t={coords:[e[0].coord,e[1].coord]};return e[0].name&&(t.fromName=e[0].name),e[1].name&&(t.toName=e[1].name),(0,A.mergeAll)([t,e[0],e[1]])}))}var sh=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return(0,W.C6)(t,e),t.prototype.init=function(t){t.data=t.data||[],sc(t);var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count)),e.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(t){if(sc(t),t.data){var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count))}e.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(e){var t=this._processFlatCoordsArray(e.data);t.flatCoords&&(this._flatCoords?(this._flatCoords=(0,A.concatArray)(this._flatCoords,t.flatCoords),this._flatCoordsOffset=(0,A.concatArray)(this._flatCoordsOffset,t.flatCoordsOffset)):(this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset),e.data=new Float32Array(t.count)),this.getRawData().appendData(e.data)},t.prototype._getCoordsFromItemModel=function(e){var t=this.getData().getItemModel(e);return t.option instanceof Array?t.option:t.getShallow("coords")},t.prototype.getLineCoordsCount=function(e){return this._flatCoordsOffset?this._flatCoordsOffset[2*e+1]:this._getCoordsFromItemModel(e).length},t.prototype.getLineCoords=function(e,t){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*e],i=this._flatCoordsOffset[2*e+1],r=0;r<i;r++)t[r]=t[r]||[],t[r][0]=this._flatCoords[n+2*r],t[r][1]=this._flatCoords[n+2*r+1];return i}for(var o=this._getCoordsFromItemModel(e),r=0;r<o.length;r++)t[r]=t[r]||[],t[r][0]=o[r][0],t[r][1]=o[r][1];return o.length},t.prototype._processFlatCoordsArray=function(e){var t=0;if(this._flatCoords&&(t=this._flatCoords.length),(0,A.isNumber)(e[0])){for(var n=e.length,i=new su(n),r=new sd(n),o=0,a=0,s=0,l=0;l<n;){s++;var u=e[l++];i[a++]=o+t,i[a++]=u;for(var d=0;d<u;d++){var c=e[l++],h=e[l++];r[o++]=c,r[o++]=h}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,a),flatCoords:r,count:s}}return{flatCoordsOffset:null,flatCoords:null,count:e.length}},t.prototype.getInitialData=function(e,t){var n=new m.A(["value"],this);return n.hasItemOption=!1,n.initData(e.data,[],function(e,t,i,r){if(e instanceof Array)return NaN;n.hasItemOption=!0;var o=e.value;if(null!=o)return o instanceof Array?o[r]:o}),n},t.prototype.formatTooltip=function(e,t,n){var i=this.getData().getItemModel(e),r=i.get("name");if(r)return r;var o=i.get("fromName"),a=i.get("toName"),s=[];return null!=o&&s.push(o),null!=a&&s.push(a),(0,nt.Qx)("nameValue",{name:s.join(" > ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var e=this.option.progressive;return null==e?this.option.large?1e4:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?2e4:this.get("progressiveThreshold"):e},t.prototype.getZLevelKey=function(){var e=this.getModel("effect"),t=e.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:e.get("show")&&t>0?t+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},t}(y.A);function sp(e){return e instanceof Array||(e=[e,e]),e}let sg={seriesType:"lines",reset:function(e){var t=sp(e.get("symbol")),n=sp(e.get("symbolSize")),i=e.getData();return i.setVisual("fromSymbol",t&&t[0]),i.setVisual("toSymbol",t&&t[1]),i.setVisual("fromSymbolSize",n&&n[0]),i.setVisual("toSymbolSize",n&&n[1]),{dataEach:i.hasItemOption?function(e,t){var n=e.getItemModel(t),i=sp(n.getShallow("symbol",!0)),r=sp(n.getShallow("symbolSize",!0));i[0]&&e.setItemVisual(t,"fromSymbol",i[0]),i[1]&&e.setItemVisual(t,"toSymbol",i[1]),r[0]&&e.setItemVisual(t,"fromSymbolSize",r[0]),r[1]&&e.setItemVisual(t,"toSymbolSize",r[1])}:null}}};var sf=n(9356),sy=n(18538),sv=["itemStyle","borderWidth"],sm=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],sx=new ec.A,s_=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,W.C6)(t,e),t.prototype.render=function(e,t,n){var i=this.group,r=e.getData(),o=this._data,a=e.coordinateSystem,s=a.getBaseAxis().isHorizontal(),l=a.master.getRect(),u={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:e,coordSys:a,coordSysExtent:[[l.x,l.x+l.width],[l.y,l.y+l.height]],isHorizontal:s,valueDim:sm[+s],categoryDim:sm[1-s]};r.diff(o).add(function(e){if(r.hasValue(e)){var t=sT(r,e),n=sb(r,e,t,u),o=sP(r,u,n);r.setItemGraphicEl(e,o),i.add(o),sV(o,u,n)}}).update(function(e,t){var n,a,s,l,d,c,h=o.getItemGraphicEl(t);if(!r.hasValue(e))return void i.remove(h);var p=sT(r,e),g=sb(r,e,p,u),f=sk(r,g);h&&f!==h.__pictorialShapeStr&&(i.remove(h),r.setItemGraphicEl(e,null),h=null),h?(n=h,a=u,l=(s=g).animationModel,d=s.dataIndex,c=n.__pictorialBundle,es.oi(c,{x:s.bundlePosition[0],y:s.bundlePosition[1]},l,d),s.symbolRepeat?sw(n,a,s,!0):sM(n,a,s,!0),sI(n,s,!0),sC(n,a,s,!0)):h=sP(r,u,g,!0),r.setItemGraphicEl(e,h),h.__pictorialSymbolMeta=g,i.add(h),sV(h,u,g)}).remove(function(e){var t=o.getItemGraphicEl(e);t&&sN(o,e,t.__pictorialSymbolMeta.animationModel,t)}).execute();var d=e.get("clip",!0)?(0,ak.Ip)(e.coordinateSystem,!1,e):null;return d?i.setClipPath(d):i.removeClipPath(),this._data=r,this.group},t.prototype.remove=function(e,t){var n=this.group,i=this._data;e.get("animation")?i&&i.eachItemGraphicEl(function(t){sN(i,(0,P.z)(t).dataIndex,e,t)}):n.removeAll()},t.type="pictorialBar",t}(v.A);function sb(e,t,n,i){var r,o,a,s,l,u,d,c,h,p,g,f,y,v,m,x,_,b,S,w,M,I=e.getItemLayout(t),C=n.get("symbolRepeat"),T=n.get("symbolClip"),L=n.get("symbolPosition")||"start",D=(n.get("symbolRotate")||0)*Math.PI/180||0,P=n.get("symbolPatternSize")||2,N=n.isAnimationEnabled(),k={dataIndex:t,layout:I,itemModel:n,symbolType:e.getItemVisual(t,"symbol")||"circle",style:e.getItemVisual(t,"style"),symbolClip:T,symbolRepeat:C,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:P,rotation:D,animationModel:N?n:null,hoverScale:N&&n.get(["emphasis","scale"]),z2:n.getShallow("z",!0)||0};(function(e,t,n,i,r){var o,a=i.valueDim,s=e.get("symbolBoundingData"),l=i.coordSys.getOtherAxis(i.coordSys.getBaseAxis()),u=l.toGlobalCoord(l.dataToCoord(0)),d=1-(n[a.wh]<=0);if(A.isArray(s)){var c=[sA(l,s[0])-u,sA(l,s[1])-u];c[1]<c[0]&&c.reverse(),o=c[d]}else o=null!=s?sA(l,s)-u:t?i.coordSysExtent[a.index][d]-u:n[a.wh];r.boundingLength=o,t&&(r.repeatCutLength=n[a.wh]),r.pxSign=o>0?1:-1})(n,C,I,i,k),r=e,o=t,a=I,s=C,l=k.boundingLength,u=k.pxSign,d=P,c=i,h=k,g=c.valueDim,y=Math.abs(a[(f=c.categoryDim).wh]),v=r.getItemVisual(o,"symbolSize"),(p=A.isArray(v)?v.slice():null==v?["100%","100%"]:[v,v])[f.index]=(0,er.lo)(p[f.index],y),p[g.index]=(0,er.lo)(p[g.index],s?y:Math.abs(l)),h.symbolSize=p,m=h.symbolScale=[p[0]/d,p[1]/d],m[g.index]*=(c.isHorizontal?-1:1)*u,x=n,_=k.symbolScale,b=D,S=i,w=k,(M=x.get(sv)||0)&&(sx.attr({scaleX:_[0],scaleY:_[1],rotation:b}),sx.updateTransform(),M/=sx.getLineScale(),M*=_[S.valueDim.index]),w.valueLineWidth=M||0;var E=k.symbolSize,V=(0,R.hV)(n.get("symbolOffset"),E);return function(e,t,n,i,r,o,a,s,l,u,d,c){var h=d.categoryDim,p=d.valueDim,g=c.pxSign,f=Math.max(t[p.index]+s,0),y=f;if(i){var v=Math.abs(l),m=A.retrieve(e.get("symbolMargin"),"15%")+"",x=!1;m.lastIndexOf("!")===m.length-1&&(x=!0,m=m.slice(0,m.length-1));var _=(0,er.lo)(m,t[p.index]),b=Math.max(f+2*_,0),S=x?0:2*_,w=(0,er.kf)(i),M=w?i:sz((v+S)/b);_=(v-M*f)/2/(x?M:Math.max(M-1,1)),b=f+2*_,S=x?0:2*_,w||"fixed"===i||(M=u?sz((Math.abs(u)+S)/b):0),y=M*b-S,c.repeatTimes=M,c.symbolMargin=_}var I=y/2*g,C=c.pathPosition=[];C[h.index]=n[h.wh]/2,C[p.index]="start"===a?I:"end"===a?l-I:l/2,o&&(C[0]+=o[0],C[1]+=o[1]);var T=c.bundlePosition=[];T[h.index]=n[h.xy],T[p.index]=n[p.xy];var L=c.barRectShape=A.extend({},n);L[p.wh]=g*Math.max(Math.abs(n[p.wh]),Math.abs(C[p.index]+I)),L[h.wh]=n[h.wh];var D=c.clipShape={};D[h.xy]=-n[h.xy],D[h.wh]=d.ecSize[h.wh],D[p.xy]=0,D[p.wh]=n[p.wh]}(n,E,I,C,0,V,L,k.valueLineWidth,k.boundingLength,k.repeatCutLength,i,k),k}function sA(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function sS(e){var t=e.symbolPatternSize,n=(0,R.v5)(e.symbolType,-t/2,-t/2,t,t);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function sw(e,t,n,i){var r=e.__pictorialBundle,o=n.symbolSize,a=n.valueLineWidth,s=n.pathPosition,l=t.valueDim,u=n.repeatTimes||0,d=0,c=o[t.valueDim.index]+a+2*n.symbolMargin;for(sR(e,function(e){e.__pictorialAnimationIndex=d,e.__pictorialRepeatTimes=u,d<u?sE(e,null,g(d),n,i):sE(e,null,{scaleX:0,scaleY:0},n,i,function(){r.remove(e)}),d++});d<u;d++){var h=sS(n);h.__pictorialAnimationIndex=d,h.__pictorialRepeatTimes=u,r.add(h);var p=g(d);sE(h,{x:p.x,y:p.y,scaleX:0,scaleY:0},{scaleX:p.scaleX,scaleY:p.scaleY,rotation:p.rotation},n,i)}function g(e){var t=s.slice(),i=n.pxSign,r=e;return("start"===n.symbolRepeatDirection?i>0:i<0)&&(r=u-1-e),t[l.index]=c*(r-u/2+.5)+s[l.index],{x:t[0],y:t[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function sM(e,t,n,i){var r=e.__pictorialBundle,o=e.__pictorialMainPath;o?sE(o,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,i):(o=e.__pictorialMainPath=sS(n),r.add(o),sE(o,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,i))}function sI(e,t,n){var i=A.extend({},t.barRectShape),r=e.__pictorialBarRect;r?sE(r,null,{shape:i},t,n):((r=e.__pictorialBarRect=new ev.A({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}})).disableMorphing=!0,e.add(r))}function sC(e,t,n,i){if(n.symbolClip){var r=e.__pictorialClipPath,o=A.extend({},n.clipShape),a=t.valueDim,s=n.animationModel,l=n.dataIndex;if(r)es.oi(r,{shape:o},s,l);else{o[a.wh]=0,r=new ev.A({shape:o}),e.__pictorialBundle.setClipPath(r),e.__pictorialClipPath=r;var u={};u[a.wh]=n.clipShape[a.wh],ea[i?"updateProps":"initProps"](r,{shape:u},s,l)}}}function sT(e,t){var n=e.getItemModel(t);return n.getAnimationDelayParams=sL,n.isAnimationEnabled=sD,n}function sL(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function sD(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function sP(e,t,n,i){var r=new el.A,o=new el.A;return r.add(o),r.__pictorialBundle=o,o.x=n.bundlePosition[0],o.y=n.bundlePosition[1],n.symbolRepeat?sw(r,t,n):sM(r,t,n),sI(r,n,i),sC(r,t,n,i),r.__pictorialShapeStr=sk(e,n),r.__pictorialSymbolMeta=n,r}function sN(e,t,n,i){var r=i.__pictorialBarRect;r&&r.removeTextContent();var o=[];sR(i,function(e){o.push(e)}),i.__pictorialMainPath&&o.push(i.__pictorialMainPath),i.__pictorialClipPath&&(n=null),A.each(o,function(e){es.Nz(e,{scaleX:0,scaleY:0},n,t,function(){i.parent&&i.parent.remove(i)})}),e.setItemGraphicEl(t,null)}function sk(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function sR(e,t,n){A.each(e.__pictorialBundle.children(),function(i){i!==e.__pictorialBarRect&&t.call(n,i)})}function sE(e,t,n,i,r,o){t&&e.attr(t),i.symbolClip&&!r?n&&e.attr(n):n&&ea[r?"updateProps":"initProps"](e,n,i.animationModel,i.dataIndex,o)}function sV(e,t,n){var i=n.dataIndex,r=n.itemModel,o=r.getModel("emphasis"),a=o.getModel("itemStyle").getItemStyle(),s=r.getModel(["blur","itemStyle"]).getItemStyle(),l=r.getModel(["select","itemStyle"]).getItemStyle(),u=r.getShallow("cursor"),d=o.get("focus"),c=o.get("blurScope"),h=o.get("scale");sR(e,function(e){if(e instanceof eu.Ay){var t=e.style;e.useStyle(A.extend({image:t.image,x:t.x,y:t.y,width:t.width,height:t.height},n.style))}else e.useStyle(n.style);var i=e.ensureState("emphasis");i.style=a,h&&(i.scaleX=1.1*e.scaleX,i.scaleY=1.1*e.scaleY),e.ensureState("blur").style=s,e.ensureState("select").style=l,u&&(e.cursor=u),e.z2=n.z2});var p=t.valueDim.posDesc[+(n.boundingLength>0)],g=e.__pictorialBarRect;g.ignoreClip=!0,(0,N.qM)(g,(0,N.lx)(r),{labelFetcher:t.seriesModel,labelDataIndex:i,defaultText:(0,sy.i)(t.seriesModel.getData(),i),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:p}),(0,E.Lm)(e,d,c,o.get("disabled"))}function sz(e){var t=Math.round(e);return 1e-4>Math.abs(e-t)?t:Math.ceil(e)}var sO=n(77774),sG=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n.defaultSymbol="roundRect",n}return(0,W.C6)(t,e),t.prototype.getInitialData=function(t){return t.stack=null,e.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=(0,n1.G_)(sO.A.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(sO.A),sB=n(30730),sF=n(25970),sW=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._layers=[],n}return(0,W.C6)(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),r=this,o=this.group,a=e.getLayerSeries(),s=i.getLayout("layoutInfo"),l=s.rect,u=s.boundaryGap;function d(e){return e.name}o.x=0,o.y=l.y+u[0];var c=new ru.A(this._layersSeries||[],a,d,d),h=[];function p(t,n,s){var l,u,d=r._layers;if("remove"===t)return void o.remove(d[n]);for(var c=[],p=[],g=a[n].indices,f=0;f<g.length;f++){var y=i.getItemLayout(g[f]),v=y.x,m=y.y0,x=y.y;c.push(v,m),p.push(v,m+x),l=i.getItemVisual(g[f],"style")}var _=i.getItemLayout(g[0]),b=e.getModel("label").get("margin"),A=e.getModel("emphasis");if("add"===t){var S,w,M,I,C=h[n]=new el.A;u=new sF.z({shape:{points:c,stackedOnPoints:p,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),C.add(u),o.add(C),e.isAnimationEnabled()&&u.setClipPath((S=u.getBoundingRect(),w=e,M=function(){u.removeClipPath()},I=new ev.A({shape:{x:S.x-10,y:S.y-10,width:0,height:S.height+20}}),es.LW(I,{shape:{x:S.x-50,width:S.width+100,height:S.height+20}},w,M),I))}else{var C=d[s];u=C.childAt(0),o.add(C),h[n]=C,es.oi(u,{shape:{points:c,stackedOnPoints:p}},e),(0,es.ap)(u)}(0,N.qM)(u,(0,N.lx)(e),{labelDataIndex:g[f-1],defaultText:i.getName(g[f-1]),inheritColor:l.fill},{normal:{verticalAlign:"middle"}}),u.setTextConfig({position:null,local:!0});var T=u.getTextContent();T&&(T.x=_.x-b,T.y=_.y0+_.y/2),u.useStyle(l),i.setItemGraphicEl(n,u),(0,E.Mx)(u,e),(0,E.Lm)(u,A.get("focus"),A.get("blurScope"),A.get("disabled"))}c.add((0,A.bind)(p,this,"add")).update((0,A.bind)(p,this,"update")).remove((0,A.bind)(p,this,"remove")).execute(),this._layersSeries=a,this._layers=h},t.type="themeRiver",t}(v.A),sY=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,W.C6)(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new ne.A(A.bind(this.getData,this),A.bind(this.getRawData,this))},t.prototype.fixData=function(e){var t=e.length,n={},i=(0,eV.Sq)(e,function(e){return n.hasOwnProperty(e[0]+"")||(n[e[0]+""]=-1),e[2]}),r=[];i.buckets.each(function(e,t){r.push({name:t,dataList:e})});for(var o=r.length,a=0;a<o;++a){for(var s=r[a].name,l=0;l<r[a].dataList.length;++l){var u=r[a].dataList[l][0]+"";n[u]=a}for(var u in n)n.hasOwnProperty(u)&&n[u]!==a&&(n[u]=a,e[t]=[u,0,s],t++)}return e},t.prototype.getInitialData=function(e,t){for(var n=this.getReferringComponents("singleAxis",eV.US).models[0].get("type"),i=A.filter(e.data,function(e){return void 0!==e[2]}),r=this.fixData(i||[]),o=[],a=this.nameMap=A.createHashMap(),s=0,l=0;l<r.length;++l)o.push(r[l][2]),!a.get(r[l][2])&&(a.set(r[l][2],s),s++);var u=(0,k.A)(r,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:(0,a_.B)(n)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,d=new m.A(u,this);return d.initData(r),d},t.prototype.getLayerSeries=function(){for(var e=this.getData(),t=e.count(),n=[],i=0;i<t;++i)n[i]=i;var r=e.mapDimension("single"),o=(0,eV.Sq)(n,function(t){return e.get("name",t)}),a=[];return o.buckets.each(function(t,n){t.sort(function(t,n){return e.get(r,t)-e.get(r,n)}),a.push({name:n,indices:t})}),a},t.prototype.getAxisTooltipData=function(e,t,n){A.isArray(e)||(e=e?[e]:[]);for(var i,r=this.getData(),o=this.getLayerSeries(),a=[],s=o.length,l=0;l<s;++l){for(var u=Number.MAX_VALUE,d=-1,c=o[l].indices.length,h=0;h<c;++h){var p=r.get(e[0],o[l].indices[h]),g=Math.abs(p-t);g<=u&&(i=p,u=g,d=o[l].indices[h])}a.push(d)}return{dataIndices:a,nestestValue:i}},t.prototype.formatTooltip=function(e,t,n){var i=this.getData(),r=i.getName(e),o=i.get(i.mapDimension("value"),e);return(0,nt.Qx)("nameValue",{name:r,value:o})},t.type="series.themeRiver",t.dependencies=["singleAxis"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},t}(y.A);function sH(e,t){e.eachSeriesByType("themeRiver",function(e){var t=e.getData(),n=e.coordinateSystem,i={},r=n.getRect();i.rect=r;var o=e.get("boundaryGap"),a=n.getAxis();i.boundaryGap=o,"horizontal"===a.orient?(o[0]=er.lo(o[0],r.height),o[1]=er.lo(o[1],r.height),sU(t,e,r.height-o[0]-o[1])):(o[0]=er.lo(o[0],r.width),o[1]=er.lo(o[1],r.width),sU(t,e,r.width-o[0]-o[1])),t.setLayout("layoutInfo",i)})}function sU(e,t,n){if(e.count())for(var i,r=t.coordinateSystem,o=t.getLayerSeries(),a=e.mapDimension("single"),s=e.mapDimension("value"),l=A.map(o,function(t){return A.map(t.indices,function(t){var n=r.dataToPoint(e.get(a,t));return n[1]=e.get(s,t),n})}),u=function(e){for(var t=e.length,n=e[0].length,i=[],r=[],o=0,a=0;a<n;++a){for(var s=0,l=0;l<t;++l)s+=e[l][a][1];s>o&&(o=s),i.push(s)}for(var u=0;u<n;++u)r[u]=(o-i[u])/2;o=0;for(var d=0;d<n;++d){var c=i[d]+r[d];c>o&&(o=c)}return{y0:r,max:o}}(l),d=u.y0,c=n/u.max,h=o.length,p=o[0].indices.length,g=0;g<p;++g){i=d[g]*c,e.setItemLayout(o[0].indices[g],{layerIndex:0,x:l[0][g][0],y0:i,y:l[0][g][1]*c});for(var f=1;f<h;++f)i+=l[f-1][g][1]*c,e.setItemLayout(o[f].indices[g],{layerIndex:f,x:l[f][g][0],y0:i,y:l[f][g][1]*c})}}var sX=n(27108),sj=function(e){function t(t,n,i,r){var o=e.call(this)||this;o.z2=2,o.textConfig={inside:!0},(0,P.z)(o).seriesIndex=n.seriesIndex;var a=new ed.Ay({z2:4,silent:t.getModel().get(["label","silent"])});return o.setTextContent(a),o.updateData(!0,t,n,i,r),o}return(0,W.C6)(t,e),t.prototype.updateData=function(e,t,n,i,r){this.node=t,t.piece=this,n=n||this._seriesModel,i=i||this._ecModel;var o=this;(0,P.z)(o).dataIndex=t.dataIndex;var a=t.getModel(),s=a.getModel("emphasis"),l=t.getLayout(),u=A.extend({},l);u.label=null;var d=t.getVisual("style");d.lineJoin="bevel";var c=t.getVisual("decal");c&&(d.decal=(0,n2.w)(c,r));var h=(0,sX.i)(a.getModel("itemStyle"),u,!0);A.extend(u,h),A.each(E.BV,function(e){var t=o.ensureState(e),n=a.getModel([e,"itemStyle"]);t.style=n.getItemStyle();var i=(0,sX.i)(n,u);i&&(t.shape=i)}),e?(o.setShape(u),o.shape.r=l.r0,es.LW(o,{shape:{r:l.r}},n,t.dataIndex)):(es.oi(o,{shape:u},n),(0,es.ap)(o)),o.useStyle(d),this._updateLabel(n);var p=a.getShallow("cursor");p&&o.attr("cursor",p),this._seriesModel=n||this._seriesModel,this._ecModel=i||this._ecModel;var g=s.get("focus"),f="ancestor"===g?t.getAncestorsIndices():"descendant"===g?t.getDescendantIndices():g;(0,E.Lm)(this,f,s.get("blurScope"),s.get("disabled"))},t.prototype._updateLabel=function(e){var t=this,n=this.node.getModel(),i=n.getModel("label"),r=this.node.getLayout(),o=r.endAngle-r.startAngle,a=(r.startAngle+r.endAngle)/2,s=Math.cos(a),l=Math.sin(a),u=this,d=u.getTextContent(),c=this.node.dataIndex,h=i.get("minAngle")/180*Math.PI;function p(e,t){var n=e.get(t);return null==n?i.get(t):n}d.ignore=!(i.get("show")&&!(null!=h&&Math.abs(o)<h)),A.each(E.wV,function(i){var h,g="normal"===i?n.getModel("label"):n.getModel([i,"label"]),f="normal"===i,y=f?d:d.ensureState(i),v=e.getFormattedLabel(c,i);f&&(v=v||t.node.name),y.style=(0,N.VB)(g,{},null,"normal"!==i,!0),v&&(y.style.text=v);var m=g.get("show");null==m||f||(y.ignore=!m);var x=p(g,"position"),_=f?u:u.states[i],b=_.style.fill;_.textConfig={outsideFill:"inherit"===g.get("color")?b:null,inside:"outside"!==x};var S=p(g,"distance")||0,w=p(g,"align"),M=p(g,"rotate"),I=.5*Math.PI,C=1.5*Math.PI,T=(0,eB.n)("tangential"===M?Math.PI/2-a:a),L=T>I&&!(0,er.dh)(T-I)&&T<C;"outside"===x?(h=r.r+S,w=L?"right":"left"):w&&"center"!==w?"left"===w?(h=r.r0+S,w=L?"right":"left"):"right"===w&&(h=r.r-S,w=L?"left":"right"):(h=o===2*Math.PI&&0===r.r0?0:(r.r+r.r0)/2,w="center"),y.style.align=w,y.style.verticalAlign=p(g,"verticalAlign")||"middle",y.x=h*s+r.cx,y.y=h*l+r.cy;var D=0;"radial"===M?D=(0,eB.n)(-a)+(L?Math.PI:0):"tangential"===M?D=(0,eB.n)(Math.PI/2-a)+(L?Math.PI:0):A.isNumber(M)&&(D=M*Math.PI/180),y.rotation=(0,eB.n)(D)}),d.dirtyStyle()},t}(ep.A),sZ="sunburstRootToNode",sq="sunburstHighlight",s$=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,W.C6)(t,e),t.prototype.render=function(e,t,n,i){var r,o,a=this;this.seriesModel=e,this.api=n,this.ecModel=t;var s=e.getData(),l=s.tree.root,u=e.getViewRoot(),d=this.group,c=e.get("renderLabelForZeroData"),h=[];u.eachNode(function(e){h.push(e)}),function(i,r){function o(e){return e.getId()}function a(o,a){!function(i,r){if(c||!i||i.getValue()||(i=null),i!==l&&r!==l){if(r&&r.piece){var o;i?(r.piece.updateData(!1,i,e,t,n),s.setItemGraphicEl(i.dataIndex,r.piece)):(o=r)&&o.piece&&(d.remove(o.piece),o.piece=null)}else if(i){var a=new sj(i,e,t,n);d.add(a),s.setItemGraphicEl(i.dataIndex,a)}}}(null==o?null:i[o],null==a?null:r[a])}(0!==i.length||0!==r.length)&&new ru.A(r,i,o,o).add(a).update(a).remove(A.curry(a,null)).execute()}(h,this._oldChildren||[]),r=l,(o=u).depth>0?(a.virtualPiece?a.virtualPiece.updateData(!1,r,e,t,n):(a.virtualPiece=new sj(r,e,t,n),d.add(a.virtualPiece)),o.piece.off("click"),a.virtualPiece.on("click",function(e){a._rootToNode(o.parentNode)})):a.virtualPiece&&(d.remove(a.virtualPiece),a.virtualPiece=null),this._initEvents(),this._oldChildren=h},t.prototype._initEvents=function(){var e=this;this.group.off("click"),this.group.on("click",function(t){var n=!1;e.seriesModel.getViewRoot().eachNode(function(i){if(!n&&i.piece&&i.piece===t.target){var r=i.getModel().get("nodeClick");if("rootToNode"===r)e._rootToNode(i);else if("link"===r){var o=i.getModel(),a=o.get("link");if(a){var s=o.get("target",!0)||"_blank";(0,eM.JW)(a,s)}}n=!0}})})},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:sZ,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},t.prototype.containPoint=function(e,t){var n=t.getData().getItemLayout(0);if(n){var i=e[0]-n.cx,r=e[1]-n.cy,o=Math.sqrt(i*i+r*r);return o<=n.r&&o>=n.r0}},t.type="sunburst",t}(v.A),sJ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreStyleOnData=!0,n}return(0,W.C6)(t,e),t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};!function e(t){var n=0;A.each(t.children,function(t){e(t);var i=t.value;A.isArray(i)&&(i=i[0]),n+=i});var i=t.value;A.isArray(i)&&(i=i[0]),(null==i||isNaN(i))&&(i=n),i<0&&(i=0),A.isArray(t.value)?t.value[0]=i:t.value=i}(n);var i=this._levelModels=A.map(e.levels||[],function(e){return new T.A(e,this,t)},this),r=i4.createTree(n,this,function(e){e.wrapMethod("getItemModel",function(e,t){var n=i[r.getNodeByDataIndex(t).depth];return n&&(e.parentModel=n),e})});return r.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments);return n.treePathInfo=re(this.getData().tree.getNodeByDataIndex(t),this),n},t.prototype.getLevelModel=function(e){return this._levelModels&&this._levelModels[e.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;e&&(e===t||t.contains(e))||(this._viewRoot=t)},t.prototype.enableAriaDecal=function(){rs(this)},t.type="series.sunburst",t.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},t}(y.A),sQ=Math.PI/180;function sK(e,t,n){t.eachSeriesByType(e,function(e){var t=e.get("center"),i=e.get("radius");A.isArray(i)||(i=[0,i]),A.isArray(t)||(t=[t,t]);var r=n.getWidth(),o=n.getHeight(),a=Math.min(r,o),s=(0,er.lo)(t[0],r),l=(0,er.lo)(t[1],o),u=(0,er.lo)(i[0],a/2),d=(0,er.lo)(i[1],a/2),c=-e.get("startAngle")*sQ,h=e.get("minAngle")*sQ,p=e.getData().tree.root,g=e.getViewRoot(),f=g.depth,y=e.get("sort");null!=y&&function e(t,n){var i=t.children||[];t.children=function(e,t){if(A.isFunction(t)){var n=A.map(e,function(e,t){var n=e.getValue();return{params:{depth:e.depth,height:e.height,dataIndex:e.dataIndex,getValue:function(){return n}},index:t}});return n.sort(function(e,n){return t(e.params,n.params)}),A.map(n,function(t){return e[t.index]})}var i="asc"===t;return e.sort(function(e,t){var n=(e.getValue()-t.getValue())*(i?1:-1);return 0===n?(e.dataIndex-t.dataIndex)*(i?-1:1):n})}(i,n),i.length&&A.each(t.children,function(t){e(t,n)})}(g,y);var v=0;A.each(g.children,function(e){!isNaN(e.getValue())&&v++});var m=g.getValue(),x=Math.PI/(m||v)*2,_=g.depth>0,b=(d-u)/(g.height-(_?-1:1)||1),S=e.get("clockwise"),w=e.get("stillShowZeroSum"),M=S?1:-1,I=function(t,n){if(t){var i=n;if(t!==p){var r=t.getValue(),o=0===m&&w?x:r*x;o<h&&(o=h),i=n+M*o;var d=t.depth-f-(_?-1:1),c=u+b*d,g=u+b*(d+1),y=e.getLevelModel(t);if(y){var v=y.get("r0",!0),C=y.get("r",!0),T=y.get("radius",!0);null!=T&&(v=T[0],C=T[1]),null!=v&&(c=(0,er.lo)(v,a/2)),null!=C&&(g=(0,er.lo)(C,a/2))}t.setLayout({angle:o,startAngle:n,endAngle:i,clockwise:S,cx:s,cy:l,r0:c,r:g})}if(t.children&&t.children.length){var L=0;A.each(t.children,function(e){L+=I(e,n+L)})}return i-n}};if(_){var C=2*Math.PI;p.setLayout({angle:C,startAngle:c,endAngle:c+C,clockwise:S,cx:s,cy:l,r0:u,r:u+b})}I(g,c)})}function s0(e){var t={};e.eachSeriesByType("sunburst",function(e){var n=e.getData(),i=n.tree;i.eachNode(function(r){var o=r.getModel().getModel("itemStyle").getItemStyle();o.fill||(o.fill=function(e,n,i){for(var r=e;r&&r.depth>1;)r=r.parentNode;var o=n.getColorFromPalette(r.name||r.dataIndex+"",t);return e.depth>1&&(0,A.isString)(o)&&(o=(0,S.lift)(o,(e.depth-1)/(i-1)*.5)),o}(r,e,i.root.height));var a=n.ensureUniqueItemVisual(r.dataIndex,"style");(0,A.extend)(a,o)})})}var s1=n(23670),s2=n(59738),s5=n(8642),s3=n(86132),s6=n(49024),s4=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,W.C6)(t,e),t.prototype.makeElOption=function(e,t,n,i,r){var o=n.axis;"angle"===o.dim&&(this.animationThreshold=Math.PI/18);var a=o.polar,s=a.getOtherAxis(o).getExtent(),l=o.dataToCoord(t),u=i.get("type");if(u&&"none"!==u){var d=s6.bY(i),c=s8[u](o,a,l,s);c.style=d,e.graphicKey=c.type,e.pointer=c}var h=function(e,t,n,i,r){var o,a,s,l=t.axis,u=l.dataToCoord(e),d=i.getAngleAxis().getExtent()[0];d=d/180*Math.PI;var c=i.getRadiusAxis().getExtent();if("radius"===l.dim){var h=_.create();_.rotate(h,h,d),_.translate(h,h,[i.cx,i.cy]),o=ea.applyTransform([u,-r],h);var p=t.getModel("axisLabel").get("rotate")||0,g=na.A.innerTextLayout(d,p*Math.PI/180,-1);a=g.textAlign,s=g.textVerticalAlign}else{var f=c[1];o=i.coordToPoint([f+r,u]);var y=i.cx,v=i.cy;a=Math.abs(o[0]-y)/f<.3?"center":o[0]>y?"left":"right",s=Math.abs(o[1]-v)/f<.3?"middle":o[1]>v?"top":"bottom"}return{position:o,align:a,verticalAlign:s}}(t,n,0,a,i.get(["label","margin"]));s6.T8(e,n,i,r,h)},t}(s3.A),s8={line:function(e,t,n,i){return"angle"===e.dim?{type:"Line",shape:s6.MU(t.coordToPoint([i[0],n]),t.coordToPoint([i[1],n]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:n}}},shadow:function(e,t,n,i){var r=Math.max(1,e.getBandWidth()),o=Math.PI/180;return"angle"===e.dim?{type:"Sector",shape:s6.u7(t.cx,t.cy,i[0],i[1],(-n-r/2)*o,(-n+r/2)*o)}:{type:"Sector",shape:s6.u7(t.cx,t.cy,n-r/2,n+r/2,0,2*Math.PI)}}},s7=n(11652),s9=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,W.C6)(t,e),t.prototype.findAxisModel=function(e){var t;return this.ecModel.eachComponent(e,function(e){e.getCoordSysModel()===this&&(t=e)},this),t},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(g.A),le=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,W.C6)(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",eV.US).models[0]},t.type="polarAxis",t}(g.A);A.mixin(le,C.L);var lt=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,W.C6)(t,e),t.type="angleAxis",t}(le),ln=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,W.C6)(t,e),t.type="radiusAxis",t}(le),li=function(e){function t(t,n){return e.call(this,"radius",t,n)||this}return(0,W.C6)(t,e),t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)[+("radius"!==this.dim)]},t}(eD.A);li.prototype.dataToRadius=eD.A.prototype.dataToCoord,li.prototype.radiusToData=eD.A.prototype.coordToData;var lr=(0,eV.$r)(),lo=function(e){function t(t,n){return e.call(this,"angle",t,n||[0,360])||this}return(0,W.C6)(t,e),t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)[+("radius"!==this.dim)]},t.prototype.calculateCategoryInterval=function(){var e=this.getLabelModel(),t=this.scale,n=t.getExtent(),i=t.count();if(n[1]-n[0]<1)return 0;var r=n[0],o=Math.abs(this.dataToCoord(r+1)-this.dataToCoord(r)),a=Math.max(eK.NO(null==r?"":r+"",e.getFont(),"center","top").height,7)/o;isNaN(a)&&(a=1/0);var s=Math.max(0,Math.floor(a)),l=lr(this.model),u=l.lastAutoInterval,d=l.lastTickCount;return null!=u&&null!=d&&1>=Math.abs(u-s)&&1>=Math.abs(d-i)&&u>s?s=u:(l.lastTickCount=i,l.lastAutoInterval=s),s},t}(eD.A);lo.prototype.dataToAngle=eD.A.prototype.dataToCoord,lo.prototype.angleToData=eD.A.prototype.coordToData;var la=["radius","angle"],ls=function(){function e(e){this.dimensions=la,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new li,this._angleAxis=new lo,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return e.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},e.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},e.prototype.getAxis=function(e){return this["_"+e+"Axis"]},e.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},e.prototype.getAxesByScale=function(e){var t=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===e&&t.push(n),i.scale.type===e&&t.push(i),t},e.prototype.getAngleAxis=function(){return this._angleAxis},e.prototype.getRadiusAxis=function(){return this._radiusAxis},e.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},e.prototype.getTooltipAxes=function(e){var t=null!=e&&"auto"!==e?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},e.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},e.prototype.pointToData=function(e,t){var n=this.pointToCoord(e);return[this._radiusAxis.radiusToData(n[0],t),this._angleAxis.angleToData(n[1],t)]},e.prototype.pointToCoord=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,i=this.getAngleAxis(),r=i.getExtent(),o=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);i.inverse?o=a-360:a=o+360;var s=Math.sqrt(t*t+n*n);t/=s;for(var l=Math.atan2(-(n/=s),t)/Math.PI*180,u=l<o?1:-1;l<o||l>a;)l+=360*u;return[s,l]},e.prototype.coordToPoint=function(e){var t=e[0],n=e[1]/180*Math.PI;return[Math.cos(n)*t+this.cx,-Math.sin(n)*t+this.cy]},e.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis().getExtent().slice();t[0]>t[1]&&t.reverse();var n=e.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:t[0],r:t[1],startAngle:-n[0]*i,endAngle:-n[1]*i,clockwise:e.inverse,contain:function(e,t){var n=e-this.cx,i=t-this.cy,r=n*n+i*i-1e-4,o=this.r,a=this.r0;return r<=o*o&&r>=a*a}}},e.prototype.convertToPixel=function(e,t,n){return ll(t)===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){return ll(t)===this?this.pointToData(n):null},e}();function ll(e){var t=e.seriesModel,n=e.polarModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}function lu(e,t){var n=this,i=n.getAngleAxis(),r=n.getRadiusAxis();if(i.scale.setExtent(1/0,-1/0),r.scale.setExtent(1/0,-1/0),e.eachSeries(function(e){if(e.coordinateSystem===n){var t=e.getData();A.each((0,I.wq)(t,"radius"),function(e){r.scale.unionExtentFromData(t,e)}),A.each((0,I.wq)(t,"angle"),function(e){i.scale.unionExtentFromData(t,e)})}}),(0,I.af)(i.scale,i.model),(0,I.af)(r.scale,r.model),"category"===i.type&&!i.onBand){var o=i.getExtent(),a=360/i.scale.count();i.inverse?o[1]+=a:o[1]-=a,i.setExtent(o[0],o[1])}}function ld(e,t){var n;if(e.type=t.get("type"),e.scale=(0,I.f$)(t),e.onBand=t.get("boundaryGap")&&"category"===e.type,e.inverse=t.get("inverse"),"angleAxis"===t.mainType){e.inverse=e.inverse!==t.get("clockwise");var i=t.get("startAngle"),r=null!=(n=t.get("endAngle"))?n:i+(e.inverse?-360:360);e.setExtent(i,r)}t.axis=e,e.model=t}let lc={dimensions:la,create:function(e,t){var n=[];return e.eachComponent("polar",function(e,i){var r,o,a,s,l,u,d,c=new ls(i+"");c.update=lu;var h=c.getRadiusAxis(),p=c.getAngleAxis(),g=e.findAxisModel("radiusAxis"),f=e.findAxisModel("angleAxis");ld(h,g),ld(p,f),r=e.get("center"),o=t.getWidth(),a=t.getHeight(),c.cx=(0,er.lo)(r[0],o),c.cy=(0,er.lo)(r[1],a),s=c.getRadiusAxis(),l=Math.min(o,a)/2,null==(u=e.get("radius"))?u=[0,"100%"]:A.isArray(u)||(u=[0,u]),d=[(0,er.lo)(u[0],l),(0,er.lo)(u[1],l)],s.inverse?s.setExtent(d[1],d[0]):s.setExtent(d[0],d[1]),n.push(c),e.coordinateSystem=c,c.model=e}),e.eachSeries(function(e){if("polar"===e.get("coordinateSystem")){var t=e.getReferringComponents("polar",eV.US).models[0];e.coordinateSystem=t.coordinateSystem}}),n}};var lh=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function lp(e,t,n){t[1]>t[0]&&(t=t.slice().reverse());var i=e.coordToPoint([t[0],n]),r=e.coordToPoint([t[1],n]);return{x1:i[0],y1:i[1],x2:r[0],y2:r[1]}}function lg(e){return+!e.getRadiusAxis().inverse}function lf(e){var t=e[0],n=e[e.length-1];t&&n&&1e-4>Math.abs(Math.abs(t.coord-n.coord)-360)&&e.pop()}var ly=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="PolarAxisPointer",n}return(0,W.C6)(t,e),t.prototype.render=function(e,t){if(this.group.removeAll(),e.get("show")){var n=e.axis,i=n.polar,r=i.getRadiusAxis().getExtent(),o=n.getTicksCoords(),a=n.getMinorTicksCoords(),s=A.map(n.getViewLabels(),function(e){e=A.clone(e);var t=n.scale,i="ordinal"===t.type?t.getRawOrdinalNumber(e.tickValue):e.tickValue;return e.coord=n.dataToCoord(i),e});lf(s),lf(o),A.each(lh,function(t){e.get([t,"show"])&&(!n.scale.isBlank()||"axisLine"===t)&&lv[t](this.group,e,i,o,a,r,s)},this)}},t.type="angleAxis",t}(s5.A),lv={axisLine:function(e,t,n,i,r,o){var a,s=t.getModel(["axisLine","lineStyle"]),l=n.getAngleAxis(),u=Math.PI/180,d=l.getExtent(),c=lg(n),h=+!c,p=360===Math.abs(d[1]-d[0])?"Circle":"Arc";(a=0===o[h]?new ea[p]({shape:{cx:n.cx,cy:n.cy,r:o[c],startAngle:-d[0]*u,endAngle:-d[1]*u,clockwise:l.inverse},style:s.getLineStyle(),z2:1,silent:!0}):new eg.A({shape:{cx:n.cx,cy:n.cy,r:o[c],r0:o[h]},style:s.getLineStyle(),z2:1,silent:!0})).style.fill=null,e.add(a)},axisTick:function(e,t,n,i,r,o){var a=t.getModel("axisTick"),s=(a.get("inside")?-1:1)*a.get("length"),l=o[lg(n)],u=A.map(i,function(e){return new em.A({shape:lp(n,[l,l+s],e.coord)})});e.add(ea.mergePath(u,{style:A.defaults(a.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(e,t,n,i,r,o){if(r.length){for(var a=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(a.get("inside")?-1:1)*s.get("length"),u=o[lg(n)],d=[],c=0;c<r.length;c++)for(var h=0;h<r[c].length;h++)d.push(new em.A({shape:lp(n,[u,u+l],r[c][h].coord)}));e.add(ea.mergePath(d,{style:A.defaults(s.getModel("lineStyle").getLineStyle(),A.defaults(a.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(e,t,n,i,r,o,a){var s=t.getCategories(!0),l=t.getModel("axisLabel"),u=l.get("margin"),d=t.get("triggerEvent");A.each(a,function(i,r){var a=l,c=i.tickValue,h=o[lg(n)],p=n.coordToPoint([h+u,i.coord]),g=n.cx,f=n.cy,y=Math.abs(p[0]-g)/h<.3?"center":p[0]>g?"left":"right",v=Math.abs(p[1]-f)/h<.3?"middle":p[1]>f?"top":"bottom";if(s&&s[c]){var m=s[c];A.isObject(m)&&m.textStyle&&(a=new T.A(m.textStyle,l,l.ecModel))}var x=new ed.Ay({silent:na.A.isLabelSilent(t),style:(0,N.VB)(a,{x:p[0],y:p[1],fill:a.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:i.formattedLabel,align:y,verticalAlign:v})});if(e.add(x),d){var _=na.A.makeAxisEventDataBase(t);_.targetType="axisLabel",_.value=i.rawLabel,(0,P.z)(x).eventData=_}},this)},splitLine:function(e,t,n,i,r,o){var a=t.getModel("splitLine").getModel("lineStyle"),s=a.get("color"),l=0;s=s instanceof Array?s:[s];for(var u=[],d=0;d<i.length;d++){var c=l++%s.length;u[c]=u[c]||[],u[c].push(new em.A({shape:lp(n,o,i[d].coord)}))}for(var d=0;d<u.length;d++)e.add(ea.mergePath(u[d],{style:A.defaults({stroke:s[d%s.length]},a.getLineStyle()),silent:!0,z:t.get("z")}))},minorSplitLine:function(e,t,n,i,r,o){if(r.length){for(var a=t.getModel("minorSplitLine").getModel("lineStyle"),s=[],l=0;l<r.length;l++)for(var u=0;u<r[l].length;u++)s.push(new em.A({shape:lp(n,o,r[l][u].coord)}));e.add(ea.mergePath(s,{style:a.getLineStyle(),silent:!0,z:t.get("z")}))}},splitArea:function(e,t,n,i,r,o){if(i.length){var a=t.getModel("splitArea").getModel("areaStyle"),s=a.get("color"),l=0;s=s instanceof Array?s:[s];for(var u=[],d=Math.PI/180,c=-i[0].coord*d,h=Math.min(o[0],o[1]),p=Math.max(o[0],o[1]),g=t.get("clockwise"),f=1,y=i.length;f<=y;f++){var v=f===y?i[0].coord:i[f].coord,m=l++%s.length;u[m]=u[m]||[],u[m].push(new ep.A({shape:{cx:n.cx,cy:n.cy,r0:h,r:p,startAngle:c,endAngle:-v*d,clockwise:g},silent:!0})),c=-v*d}for(var f=0;f<u.length;f++)e.add(ea.mergePath(u[f],{style:A.defaults({fill:s[f%s.length]},a.getAreaStyle()),silent:!0}))}}},lm=["axisLine","axisTickLabel","axisName"],lx=["splitLine","splitArea","minorSplitLine"],l_=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="PolarAxisPointer",n}return(0,W.C6)(t,e),t.prototype.render=function(e,t){if(this.group.removeAll(),e.get("show")){var n,i,r,o=this._axisGroup,a=this._axisGroup=new el.A;this.group.add(a);var s=e.axis,l=s.polar,u=l.getAngleAxis(),d=s.getTicksCoords(),c=s.getMinorTicksCoords(),h=u.getExtent()[0],p=s.getExtent(),g=(n=l,i=e,r=h,{position:[n.cx,n.cy],rotation:r/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:i.getModel("axisLabel").get("rotate"),z2:1}),f=new na.A(e,g);A.each(lm,f.add,f),a.add(f.getGroup()),ea.groupTransition(o,a,e),A.each(lx,function(t){e.get([t,"show"])&&!s.scale.isBlank()&&lb[t](this.group,e,l,h,p,d,c)},this)}},t.type="radiusAxis",t}(s5.A),lb={splitLine:function(e,t,n,i,r,o){var a=t.getModel("splitLine").getModel("lineStyle"),s=a.get("color"),l=0,u=n.getAngleAxis(),d=Math.PI/180,c=u.getExtent(),h=360===Math.abs(c[1]-c[0])?"Circle":"Arc";s=s instanceof Array?s:[s];for(var p=[],g=0;g<o.length;g++){var f=l++%s.length;p[f]=p[f]||[],p[f].push(new ea[h]({shape:{cx:n.cx,cy:n.cy,r:Math.max(o[g].coord,0),startAngle:-c[0]*d,endAngle:-c[1]*d,clockwise:u.inverse}}))}for(var g=0;g<p.length;g++)e.add(ea.mergePath(p[g],{style:A.defaults({stroke:s[g%s.length],fill:null},a.getLineStyle()),silent:!0}))},minorSplitLine:function(e,t,n,i,r,o,a){if(a.length){for(var s=t.getModel("minorSplitLine").getModel("lineStyle"),l=[],u=0;u<a.length;u++)for(var d=0;d<a[u].length;d++)l.push(new ec.A({shape:{cx:n.cx,cy:n.cy,r:a[u][d].coord}}));e.add(ea.mergePath(l,{style:A.defaults({fill:null},s.getLineStyle()),silent:!0}))}},splitArea:function(e,t,n,i,r,o){if(o.length){var a=t.getModel("splitArea").getModel("areaStyle"),s=a.get("color"),l=0;s=s instanceof Array?s:[s];for(var u=[],d=o[0].coord,c=1;c<o.length;c++){var h=l++%s.length;u[h]=u[h]||[],u[h].push(new ep.A({shape:{cx:n.cx,cy:n.cy,r0:d,r:o[c].coord,startAngle:0,endAngle:2*Math.PI},silent:!0})),d=o[c].coord}for(var c=0;c<u.length;c++)e.add(ea.mergePath(u[c],{style:A.defaults({fill:s[c%s.length]},a.getAreaStyle()),silent:!0}))}}};function lA(e){return e.get("stack")||"__ec_stack_"+e.seriesIndex}function lS(e,t){return t.dim+e.model.componentIndex}let lw=function(e,t,n){var i,r,o,a={},s=(i=A.filter(t.getSeriesByType(e),function(e){return!t.isSeriesFiltered(e)&&e.coordinateSystem&&"polar"===e.coordinateSystem.type}),r={},A.each(i,function(e,t){var n=e.getData(),i=e.coordinateSystem,o=i.getBaseAxis(),a=lS(i,o),s=o.getExtent(),l="category"===o.type?o.getBandWidth():Math.abs(s[1]-s[0])/n.count(),u=r[a]||{bandWidth:l,remainedWidth:l,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},d=u.stacks;r[a]=u;var c=lA(e);!d[c]&&u.autoWidthCount++,d[c]=d[c]||{width:0,maxWidth:0};var h=(0,er.lo)(e.get("barWidth"),l),p=(0,er.lo)(e.get("barMaxWidth"),l),g=e.get("barGap"),f=e.get("barCategoryGap");h&&!d[c].width&&(h=Math.min(u.remainedWidth,h),d[c].width=h,u.remainedWidth-=h),p&&(d[c].maxWidth=p),null!=g&&(u.gap=g),null!=f&&(u.categoryGap=f)}),o={},A.each(r,function(e,t){o[t]={};var n,i=e.stacks,r=e.bandWidth,a=(0,er.lo)(e.categoryGap,r),s=(0,er.lo)(e.gap,1),l=e.remainedWidth,u=e.autoWidthCount,d=(l-a)/(u+(u-1)*s);d=Math.max(d,0),A.each(i,function(e,t){var n=e.maxWidth;n&&n<d&&(n=Math.min(n,l),e.width&&(n=Math.min(n,e.width)),l-=n,e.width=n,u--)}),d=Math.max(d=(l-a)/(u+(u-1)*s),0);var c=0;A.each(i,function(e,t){e.width||(e.width=d),n=e,c+=e.width*(1+s)}),n&&(c-=n.width*s);var h=-c/2;A.each(i,function(e,n){o[t][n]=o[t][n]||{offset:h,width:e.width},h+=e.width*(1+s)})}),o);t.eachSeriesByType(e,function(e){if("polar"===e.coordinateSystem.type){var t=e.getData(),n=e.coordinateSystem,i=n.getBaseAxis(),r=lS(n,i),o=lA(e),l=s[r][o],u=l.offset,d=l.width,c=n.getOtherAxis(i),h=e.coordinateSystem.cx,p=e.coordinateSystem.cy,g=e.get("barMinHeight")||0,f=e.get("barMinAngle")||0;a[o]=a[o]||[];for(var y=t.mapDimension(c.dim),v=t.mapDimension(i.dim),m=(0,D.sJ)(t,y),x="radius"!==i.dim||!e.get("roundCap",!0),_=c.dataToCoord(0),b=0,A=t.count();b<A;b++){var S=t.get(y,b),w=t.get(v,b),M=S>=0?"p":"n",I=_;m&&(a[o][w]||(a[o][w]={p:_,n:_}),I=a[o][w][M]);var C=void 0,T=void 0,L=void 0,P=void 0;if("radius"===c.dim){var N=c.dataToCoord(S)-_,k=i.dataToCoord(w);Math.abs(N)<g&&(N=(N<0?-1:1)*g),C=I,T=I+N,P=(L=k-u)-d,m&&(a[o][w][M]=T)}else{var R=c.dataToCoord(S,x)-_,E=i.dataToCoord(w);Math.abs(R)<f&&(R=(R<0?-1:1)*f),T=(C=E+u)+d,L=I,P=I+R,m&&(a[o][w][M]=P)}t.setItemLayout(b,{cx:h,cy:p,r0:C,r:T,startAngle:-L*Math.PI/180,endAngle:-P*Math.PI/180,clockwise:L>=P})}}})};var lM={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},lI={splitNumber:5},lC=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,W.C6)(t,e),t.type="polar",t}(f.A);function lT(e,t){t=t||{};var n=e.coordinateSystem,i=e.axis,r={},o=i.position,a=i.orient,s=n.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};r.position=["vertical"===a?u.vertical[o]:l[0],"horizontal"===a?u.horizontal[o]:l[3]],r.rotation=Math.PI/2*({horizontal:0,vertical:1})[a],r.labelDirection=r.tickDirection=r.nameDirection=({top:-1,bottom:1,right:1,left:-1})[o],e.get(["axisTick","inside"])&&(r.tickDirection=-r.tickDirection),A.retrieve(t.labelInside,e.get(["axisLabel","inside"]))&&(r.labelDirection=-r.labelDirection);var d=t.rotate;return null==d&&(d=e.get(["axisLabel","rotate"])),r.labelRotation="top"===o?-d:d,r.z2=1,r}var lL=n(28767),lD=["axisLine","axisTickLabel","axisName"],lP=["splitArea","splitLine"],lN=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="SingleAxisPointer",n}return(0,W.C6)(t,e),t.prototype.render=function(t,n,i,r){var o=this.group;o.removeAll();var a=this._axisGroup;this._axisGroup=new el.A;var s=lT(t),l=new na.A(t,s);A.each(lD,l.add,l),o.add(this._axisGroup),o.add(l.getGroup()),A.each(lP,function(e){t.get([e,"show"])&&lk[e](this,this.group,this._axisGroup,t)},this),ea.groupTransition(a,this._axisGroup,t),e.prototype.render.call(this,t,n,i,r)},t.prototype.remove=function(){(0,lL.V)(this)},t.type="singleAxis",t}(s5.A),lk={splitLine:function(e,t,n,i){var r=i.axis;if(!r.scale.isBlank()){var o=i.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color");s=s instanceof Array?s:[s];for(var l=a.get("width"),u=i.coordinateSystem.getRect(),d=r.isHorizontal(),c=[],h=0,p=r.getTicksCoords({tickModel:o}),g=[],f=[],y=0;y<p.length;++y){var v=r.toGlobalCoord(p[y].coord);d?(g[0]=v,g[1]=u.y,f[0]=v,f[1]=u.y+u.height):(g[0]=u.x,g[1]=v,f[0]=u.x+u.width,f[1]=v);var m=new em.A({shape:{x1:g[0],y1:g[1],x2:f[0],y2:f[1]},silent:!0});ea.subPixelOptimizeLine(m.shape,l);var x=h++%s.length;c[x]=c[x]||[],c[x].push(m)}for(var _=a.getLineStyle(["color"]),y=0;y<c.length;++y)t.add(ea.mergePath(c[y],{style:A.defaults({stroke:s[y%s.length]},_),silent:!0}))}},splitArea:function(e,t,n,i){(0,lL.Y)(e,n,i,i)}},lR=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,W.C6)(t,e),t.prototype.getCoordSysModel=function(){return this},t.type="singleAxis",t.layoutMode="box",t.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}},t}(g.A);(0,A.mixin)(lR,C.L.prototype);var lE=function(e){function t(t,n,i,r,o){var a=e.call(this,t,n,i)||this;return a.type=r||"value",a.position=o||"bottom",a}return(0,W.C6)(t,e),t.prototype.isHorizontal=function(){var e=this.position;return"top"===e||"bottom"===e},t.prototype.pointToData=function(e,t){return this.coordinateSystem.pointToData(e)[0]},t}(eD.A),lV=["single"],lz=function(){function e(e,t,n){this.type="single",this.dimension="single",this.dimensions=lV,this.axisPointerEnabled=!0,this.model=e,this._init(e,t,n)}return e.prototype._init=function(e,t,n){var i=new lE(this.dimension,I.f$(e),[0,0],e.get("type"),e.get("position")),r="category"===i.type;i.onBand=r&&e.get("boundaryGap"),i.inverse=e.get("inverse"),i.orient=e.get("orient"),e.axis=i,i.model=e,i.coordinateSystem=this,this._axis=i},e.prototype.update=function(e,t){e.eachSeries(function(e){if(e.coordinateSystem===this){var t=e.getData();(0,A.each)(t.mapDimensionsAll(this.dimension),function(e){this._axis.scale.unionExtentFromData(t,e)},this),I.af(this._axis.scale,this._axis.model)}},this)},e.prototype.resize=function(e,t){this._rect=(0,L.dV)({left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")},{width:t.getWidth(),height:t.getHeight()}),this._adjustAxis()},e.prototype.getRect=function(){return this._rect},e.prototype._adjustAxis=function(){var e=this._rect,t=this._axis,n=t.isHorizontal(),i=n?[0,e.width]:[0,e.height],r=+!!t.inverse;t.setExtent(i[r],i[1-r]),this._updateAxisTransform(t,n?e.x:e.y)},e.prototype._updateAxisTransform=function(e,t){var n=e.getExtent(),i=n[0]+n[1],r=e.isHorizontal();e.toGlobalCoord=r?function(e){return e+t}:function(e){return i-e+t},e.toLocalCoord=r?function(e){return e-t}:function(e){return i-e+t}},e.prototype.getAxis=function(){return this._axis},e.prototype.getBaseAxis=function(){return this._axis},e.prototype.getAxes=function(){return[this._axis]},e.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},e.prototype.containPoint=function(e){var t=this.getRect(),n=this.getAxis();return"horizontal"===n.orient?n.contain(n.toLocalCoord(e[0]))&&e[1]>=t.y&&e[1]<=t.y+t.height:n.contain(n.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},e.prototype.pointToData=function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e[+("horizontal"!==t.orient)]))]},e.prototype.dataToPoint=function(e){var t=this.getAxis(),n=this.getRect(),i=[],r=+("horizontal"!==t.orient);return e instanceof Array&&(e=e[0]),i[r]=t.toGlobalCoord(t.dataToCoord(+e)),i[1-r]=0===r?n.y+n.height/2:n.x+n.width/2,i},e.prototype.convertToPixel=function(e,t,n){return lO(t)===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){return lO(t)===this?this.pointToData(n):null},e}();function lO(e){var t=e.seriesModel,n=e.singleAxisModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}let lG={create:function(e,t){var n=[];return e.eachComponent("singleAxis",function(i,r){var o=new lz(i,e,t);o.name="single_"+r,o.resize(i,t),i.coordinateSystem=o,n.push(o)}),e.eachSeries(function(e){if("singleAxis"===e.get("coordinateSystem")){var t=e.getReferringComponents("singleAxis",eV.US).models[0];e.coordinateSystem=t&&t.coordinateSystem}}),n},dimensions:lV};var lB=["x","y"],lF=["width","height"],lW=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,W.C6)(t,e),t.prototype.makeElOption=function(e,t,n,i,r){var o=n.axis,a=o.coordinateSystem,s=lU(a,1-lH(o)),l=a.dataToPoint(t)[0],u=i.get("type");if(u&&"none"!==u){var d=s6.bY(i),c=lY[u](o,l,s);c.style=d,e.graphicKey=c.type,e.pointer=c}var h=lT(n);s6.DA(t,e,h,n,i,r)},t.prototype.getHandleTransform=function(e,t,n){var i=lT(t,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=s6.Tc(t.axis,e,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,i){var r=n.axis,o=r.coordinateSystem,a=lH(r),s=lU(o,a),l=[e.x,e.y];l[a]+=t[a],l[a]=Math.min(s[1],l[a]),l[a]=Math.max(s[0],l[a]);var u=lU(o,1-a),d=(u[1]+u[0])/2,c=[d,d];return c[a]=l[a],{x:l[0],y:l[1],rotation:e.rotation,cursorPoint:c,tooltipOption:{verticalAlign:"middle"}}},t}(s3.A),lY={line:function(e,t,n){return{type:"Line",subPixelOptimize:!0,shape:s6.MU([t,n[0]],[t,n[1]],lH(e))}},shadow:function(e,t,n){var i=e.getBandWidth(),r=n[1]-n[0];return{type:"Rect",shape:s6.cU([t-i/2,n[0]],[i,r],lH(e))}}};function lH(e){return+!e.isHorizontal()}function lU(e,t){var n=e.getRect();return[n[lB[t]],n[lB[t]]+n[lF[t]]]}var lX=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,W.C6)(t,e),t.type="single",t}(f.A),lj=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,W.C6)(t,e),t.prototype.init=function(t,n,i){var r=(0,L.vs)(t);e.prototype.init.apply(this,arguments),lZ(t,r)},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),lZ(this.option,t)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(g.A);function lZ(e,t){var n,i=e.cellSize;1===(n=A.isArray(i)?i:e.cellSize=[i,i]).length&&(n[1]=n[0]);var r=A.map([0,1],function(e){return(0,L.Qf)(t,e)&&(n[e]="auto"),null!=n[e]&&"auto"!==n[e]});(0,L.YA)(e,t,{type:"box",ignoreSize:r})}var lq=n(35396),l$=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,W.C6)(t,e),t.prototype.render=function(e,t,n){var i=this.group;i.removeAll();var r=e.coordinateSystem,o=r.getRangeInfo(),a=r.getOrient(),s=t.getLocaleModel();this._renderDayRect(e,o,i),this._renderLines(e,o,a,i),this._renderYearText(e,o,a,i),this._renderMonthText(e,s,a,i),this._renderWeekText(e,s,o,a,i)},t.prototype._renderDayRect=function(e,t,n){for(var i=e.coordinateSystem,r=e.getModel("itemStyle").getItemStyle(),o=i.getCellWidth(),a=i.getCellHeight(),s=t.start.time;s<=t.end.time;s=i.getNextNDay(s,1).time){var l=i.dataToRect([s],!1).tl,u=new ev.A({shape:{x:l[0],y:l[1],width:o,height:a},cursor:"default",style:r});n.add(u)}},t.prototype._renderLines=function(e,t,n,i){var r=this,o=e.coordinateSystem,a=e.getModel(["splitLine","lineStyle"]).getLineStyle(),s=e.get(["splitLine","show"]),l=a.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var u=t.start,d=0;u.time<=t.end.time;d++){h(u.formatedDate),0===d&&(u=o.getDateInfo(t.start.y+"-"+t.start.m));var c=u.date;c.setMonth(c.getMonth()+1),u=o.getDateInfo(c)}function h(t){r._firstDayOfMonth.push(o.getDateInfo(t)),r._firstDayPoints.push(o.dataToRect([t],!1).tl);var l=r._getLinePointsOfOneWeek(e,t,n);r._tlpoints.push(l[0]),r._blpoints.push(l[l.length-1]),s&&r._drawSplitline(l,a,i)}h(o.getNextNDay(t.end.time,1).formatedDate),s&&this._drawSplitline(r._getEdgesPoints(r._tlpoints,l,n),a,i),s&&this._drawSplitline(r._getEdgesPoints(r._blpoints,l,n),a,i)},t.prototype._getEdgesPoints=function(e,t,n){var i=[e[0].slice(),e[e.length-1].slice()],r=+("horizontal"!==n);return i[0][r]=i[0][r]-t/2,i[1][r]=i[1][r]+t/2,i},t.prototype._drawSplitline=function(e,t,n){var i=new ey.A({z2:20,shape:{points:e},style:t});n.add(i)},t.prototype._getLinePointsOfOneWeek=function(e,t,n){for(var i=e.coordinateSystem,r=i.getDateInfo(t),o=[],a=0;a<7;a++){var s=i.getNextNDay(r.time,a),l=i.dataToRect([s.time],!1);o[2*s.day]=l.tl,o[2*s.day+1]=l["horizontal"===n?"bl":"tr"]}return o},t.prototype._formatterLabel=function(e,t){return(0,A.isString)(e)&&e?(0,eM.io)(e,t):(0,A.isFunction)(e)?e(t):t.nameMap},t.prototype._yearTextPositionControl=function(e,t,n,i,r){var o=t[0],a=t[1],s=["center","bottom"];"bottom"===i?(a+=r,s=["center","top"]):"left"===i?o-=r:"right"===i?(o+=r,s=["center","top"]):a-=r;var l=0;return("left"===i||"right"===i)&&(l=Math.PI/2),{rotation:l,x:o,y:a,style:{align:s[0],verticalAlign:s[1]}}},t.prototype._renderYearText=function(e,t,n,i){var r=e.getModel("yearLabel");if(r.get("show")){var o=r.get("margin"),a=r.get("position");a||(a="horizontal"!==n?"top":"left");var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],l=(s[0][0]+s[1][0])/2,u=(s[0][1]+s[1][1])/2,d=+("horizontal"!==n),c={top:[l,s[d][1]],bottom:[l,s[1-d][1]],left:[s[1-d][0],u],right:[s[d][0],u]},h=t.start.y;+t.end.y>+t.start.y&&(h=h+"-"+t.end.y);var p=r.get("formatter"),g={start:t.start.y,end:t.end.y,nameMap:h},f=this._formatterLabel(p,g),y=new ed.Ay({z2:30,style:(0,N.VB)(r,{text:f})});y.attr(this._yearTextPositionControl(y,c[a],n,a,o)),i.add(y)}},t.prototype._monthTextPositionControl=function(e,t,n,i,r){var o="left",a="top",s=e[0],l=e[1];return"horizontal"===n?(l+=r,t&&(o="center"),"start"===i&&(a="bottom")):(s+=r,t&&(a="middle"),"start"===i&&(o="right")),{x:s,y:l,align:o,verticalAlign:a}},t.prototype._renderMonthText=function(e,t,n,i){var r=e.getModel("monthLabel");if(r.get("show")){var o=r.get("nameMap"),a=r.get("margin"),s=r.get("position"),l=r.get("align"),u=[this._tlpoints,this._blpoints];(!o||(0,A.isString)(o))&&(o&&(t=(0,lq.A4)(o)||t),o=t.get(["time","monthAbbr"])||[]);var d=+("start"!==s),c=+("horizontal"!==n);a="start"===s?-a:a;for(var h="center"===l,p=0;p<u[d].length-1;p++){var g=u[d][p].slice(),f=this._firstDayOfMonth[p];if(h){var y=this._firstDayPoints[p];g[c]=(y[c]+u[0][p+1][c])/2}var v=r.get("formatter"),m=o[f.m-1],x={yyyy:f.y,yy:(f.y+"").slice(2),MM:f.m,M:+f.m,nameMap:m},_=this._formatterLabel(v,x),b=new ed.Ay({z2:30,style:(0,A.extend)((0,N.VB)(r,{text:_}),this._monthTextPositionControl(g,h,n,s,a))});i.add(b)}}},t.prototype._weekTextPositionControl=function(e,t,n,i,r){var o="center",a="middle",s=e[0],l=e[1],u="start"===n;return"horizontal"===t?(s=s+i+(u?1:-1)*r[0]/2,o=u?"right":"left"):(l=l+i+(u?1:-1)*r[1]/2,a=u?"bottom":"top"),{x:s,y:l,align:o,verticalAlign:a}},t.prototype._renderWeekText=function(e,t,n,i,r){var o=e.getModel("dayLabel");if(o.get("show")){var a=e.coordinateSystem,s=o.get("position"),l=o.get("nameMap"),u=o.get("margin"),d=a.getFirstDayOfWeek();(!l||(0,A.isString)(l))&&(l&&(t=(0,lq.A4)(l)||t),l=t.get(["time","dayOfWeekShort"])||(0,A.map)(t.get(["time","dayOfWeekAbbr"]),function(e){return e[0]}));var c=a.getNextNDay(n.end.time,7-n.lweek).time,h=[a.getCellWidth(),a.getCellHeight()];u=(0,er.lo)(u,Math.min(h[1],h[0])),"start"===s&&(c=a.getNextNDay(n.start.time,-(7+n.fweek)).time,u=-u);for(var p=0;p<7;p++){var g=a.getNextNDay(c,p),f=a.dataToRect([g.time],!1).center,y=p;y=Math.abs((p+d)%7);var v=new ed.Ay({z2:30,style:(0,A.extend)((0,N.VB)(o,{text:l[y]}),this._weekTextPositionControl(f,i,s,u,h))});r.add(v)}}},t.type="calendar",t}(f.A),lJ=function(){function e(t,n,i){this.type="calendar",this.dimensions=e.dimensions,this.getDimensionsInfo=e.getDimensionsInfo,this._model=t}return e.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},e.prototype.getRangeInfo=function(){return this._rangeInfo},e.prototype.getModel=function(){return this._model},e.prototype.getRect=function(){return this._rect},e.prototype.getCellWidth=function(){return this._sw},e.prototype.getCellHeight=function(){return this._sh},e.prototype.getOrient=function(){return this._orient},e.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},e.prototype.getDateInfo=function(e){var t=(e=er._U(e)).getFullYear(),n=e.getMonth()+1,i=n<10?"0"+n:""+n,r=e.getDate(),o=r<10?"0"+r:""+r,a=e.getDay();return{y:t+"",m:i,d:o,day:a=Math.abs((a+7-this.getFirstDayOfWeek())%7),time:e.getTime(),formatedDate:t+"-"+i+"-"+o,date:e}},e.prototype.getNextNDay=function(e,t){return 0===(t=t||0)||(e=new Date(this.getDateInfo(e).time)).setDate(e.getDate()+t),this.getDateInfo(e)},e.prototype.update=function(e,t){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,i=["width","height"],r=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),a="horizontal"===this._orient?[n,7]:[7,n];A.each([0,1],function(e){u(r,e)&&(o[i[e]]=r[e]*a[e])});var s={width:t.getWidth(),height:t.getHeight()},l=this._rect=L.dV(o,s);function u(e,t){return null!=e[t]&&"auto"!==e[t]}A.each([0,1],function(e){u(r,e)||(r[e]=l[i[e]]/a[e])}),this._sw=r[0],this._sh=r[1]},e.prototype.dataToPoint=function(e,t){A.isArray(e)&&(e=e[0]),null==t&&(t=!0);var n=this.getDateInfo(e),i=this._rangeInfo,r=n.formatedDate;if(t&&!(n.time>=i.start.time&&n.time<i.end.time+864e5))return[NaN,NaN];var o=n.day,a=this._getRangeInfo([i.start.time,r]).nthWeek;return"vertical"===this._orient?[this._rect.x+o*this._sw+this._sw/2,this._rect.y+a*this._sh+this._sh/2]:[this._rect.x+a*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]},e.prototype.pointToData=function(e){var t=this.pointToDate(e);return t&&t.time},e.prototype.dataToRect=function(e,t){var n=this.dataToPoint(e,t);return{contentShape:{x:n[0]-(this._sw-this._lineWidth)/2,y:n[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:n,tl:[n[0]-this._sw/2,n[1]-this._sh/2],tr:[n[0]+this._sw/2,n[1]-this._sh/2],br:[n[0]+this._sw/2,n[1]+this._sh/2],bl:[n[0]-this._sw/2,n[1]+this._sh/2]}},e.prototype.pointToDate=function(e){var t=Math.floor((e[0]-this._rect.x)/this._sw)+1,n=Math.floor((e[1]-this._rect.y)/this._sh)+1,i=this._rangeInfo.range;return"vertical"===this._orient?this._getDateByWeeksAndDay(n,t-1,i):this._getDateByWeeksAndDay(t,n-1,i)},e.prototype.convertToPixel=function(e,t,n){var i=lQ(t);return i===this?i.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){var i=lQ(t);return i===this?i.pointToData(n):null},e.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},e.prototype._initRangeOption=function(){var e,t=this._model.get("range");if(A.isArray(t)&&1===t.length&&(t=t[0]),A.isArray(t))e=t;else{var n=t.toString();if(/^\d{4}$/.test(n)&&(e=[n+"-01-01",n+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(n)){var i=this.getDateInfo(n),r=i.date;r.setMonth(r.getMonth()+1);var o=this.getNextNDay(r,-1);e=[i.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(e=[n,n])}if(!e)return t;var a=this._getRangeInfo(e);return a.start.time>a.end.time&&e.reverse(),e},e.prototype._getRangeInfo=function(e){var t,n=[this.getDateInfo(e[0]),this.getDateInfo(e[1])];n[0].time>n[1].time&&(t=!0,n.reverse());var i=Math.floor(n[1].time/864e5)-Math.floor(n[0].time/864e5)+1,r=new Date(n[0].time),o=r.getDate(),a=n[1].date.getDate();r.setDate(o+i-1);var s=r.getDate();if(s!==a)for(var l=r.getTime()-n[1].time>0?1:-1;(s=r.getDate())!==a&&(r.getTime()-n[1].time)*l>0;)i-=l,r.setDate(s-l);var u=Math.floor((i+n[0].day+6)/7),d=t?-u+1:u-1;return t&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:i,weeks:u,nthWeek:d,fweek:n[0].day,lweek:n[1].day}},e.prototype._getDateByWeeksAndDay=function(e,t,n){var i=this._getRangeInfo(n);if(e>i.weeks||0===e&&t<i.fweek||e===i.weeks&&t>i.lweek)return null;var r=(e-1)*7-i.fweek+t,o=new Date(i.start.time);return o.setDate(+i.start.d+r),this.getDateInfo(o)},e.create=function(t,n){var i=[];return t.eachComponent("calendar",function(r){var o=new e(r,t,n);i.push(o),r.coordinateSystem=o}),t.eachSeries(function(e){"calendar"===e.get("coordinateSystem")&&(e.coordinateSystem=i[e.get("calendarIndex")||0])}),i},e.dimensions=["time","value"],e}();function lQ(e){var t=e.calendarModel,n=e.seriesModel;return t?t.coordinateSystem:n?n.coordinateSystem:null}function lK(e,t){var n;return A.each(t,function(t){null!=e[t]&&"auto"!==e[t]&&(n=!0)}),n}var l0=["transition","enterFrom","leaveTo"],l1=l0.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function l2(e,t,n){if(n&&(!e[n]&&t[n]&&(e[n]={}),e=e[n],t=t[n]),e&&t)for(var i=n?l0:l1,r=0;r<i.length;r++){var o=i[r];null==e[o]&&null!=t[o]&&(e[o]=t[o])}}var l5=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.preventAutoZ=!0,n}return(0,W.C6)(t,e),t.prototype.mergeOption=function(t,n){var i=this.option.elements;this.option.elements=null,e.prototype.mergeOption.call(this,t,n),this.option.elements=i},t.prototype.optionUpdated=function(e,t){var n=this.option,i=(t?n:e).elements,r=n.elements=t?[]:n.elements,o=[];this._flatten(i,o,null);var a=eV.O2(r,o,"normalMerge"),s=this._elOptionsToUpdate=[];A.each(a,function(e,t){var n=e.newOption;if(n){s.push(n);var i,o,a,l,u=e.existing;if(n.id=e.keyInfo.id,!n.type&&u&&(n.type=u.type),null==n.parentId){var d=n.parentOption;d?n.parentId=d.id:u&&(n.parentId=u.parentId)}n.parentOption=null,i=A.extend({},n),o=r[t],"merge"===(a=n.$action||"merge")?o?(A.merge(o,i,!0),(0,L.YA)(o,i,{ignoreSize:!0}),(0,L.Ir)(n,o),l2(n,o),l2(n,o,"shape"),l2(n,o,"style"),l2(n,o,"extra"),n.clipPath=o.clipPath):r[t]=i:"replace"===a?r[t]=i:"remove"===a&&o&&(r[t]=null),l=r[t],l&&(l.hv=n.hv=[lK(n,["left","right"]),lK(n,["top","bottom"])],"group"===l.type&&(null==l.width&&(l.width=n.width=0),null==l.height&&(l.height=n.height=0)))}},this),n.elements=A.filter(r,function(e){return e&&delete e.$action,null!=e})},t.prototype._flatten=function(e,t,n){A.each(e,function(e){if(e){n&&(e.parentOption=n),t.push(e);var i=e.children;i&&i.length&&this._flatten(i,t,e),delete e.children}},this)},t.prototype.useElOptionsToUpdate=function(){var e=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,e},t.type="graphic",t.defaultOption={elements:[]},t}(g.A),l3=n(45106),l6=n(24707),l4=n(39952),l8={path:null,compoundPath:null,group:el.A,image:eu.Ay,text:ed.Ay},l7=eV.$r(),l9=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,W.C6)(t,e),t.prototype.init=function(){this._elMap=A.createHashMap()},t.prototype.render=function(e,t,n){e!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=e,this._updateElements(e),this._relocate(e,n)},t.prototype._updateElements=function(e){var t=e.useElOptionsToUpdate();if(t){var n=this._elMap,i=this.group,r=e.get("z"),o=e.get("zlevel");A.each(t,function(t){var a=eV.vS(t.id,null),s=null!=a?n.get(a):null,l=eV.vS(t.parentId,null),u=null!=l?n.get(l):i,d=t.type,c=t.style;"text"===d&&c&&t.hv&&t.hv[1]&&(c.textVerticalAlign=c.textBaseline=c.verticalAlign=c.align=null);var h=t.textContent,p=t.textConfig;if(c&&(0,l3.ex)(c,d,!!p,!!h)){var g=(0,l3.lH)(c,d,!0);!p&&g.textConfig&&(p=t.textConfig=g.textConfig),!h&&g.textContent&&(h=g.textContent)}var f=(M=t,M=A.extend({},M),A.each(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(L.Tj),function(e){delete M[e]}),M),y=t.$action||"merge",v="merge"===y,m="replace"===y;if(v){var x=!s,_=s;x?_=ut(a,u,t.type,n):(_&&(l7(_).isNew=!1),(0,l4.$)(_)),_&&((0,l6.rh)(_,f,e,{isInit:x}),ui(_,t,r,o))}else if(m){un(s,t,n,e);var b=ut(a,u,t.type,n);b&&((0,l6.rh)(b,f,e,{isInit:!0}),ui(b,t,r,o))}else"remove"===y&&((0,l6.aB)(s,t),un(s,t,n,e));var S=n.get(a);if(S&&h)if(v){var w=S.getTextContent();w?w.attr(h):S.setTextContent(new ed.Ay(h))}else m&&S.setTextContent(new ed.Ay(h));if(S){var M,I,C,T,D,N=t.clipPath;if(N){var k=N.type,R=void 0,x=!1;if(v){var E=S.getClipPath();R=(x=!E||l7(E).type!==k)?ue(k):E}else m&&(x=!0,R=ue(k));S.setClipPath(R),(0,l6.rh)(R,N,e,{isInit:x}),(0,l4.L)(R,N.keyframeAnimation,e)}var V=l7(S);S.setTextConfig(p),V.option=t,I=S,C=e,T=t,D=(0,P.z)(I).eventData,I.silent||I.ignore||D||(D=(0,P.z)(I).eventData={componentType:"graphic",componentIndex:C.componentIndex,name:I.name}),D&&(D.info=T.info),ea.setTooltipConfig({el:S,componentModel:e,itemName:S.name,itemTooltipOption:t.tooltip}),(0,l4.L)(S,t.keyframeAnimation,e)}})}},t.prototype._relocate=function(e,t){for(var n=e.option.elements,i=this.group,r=this._elMap,o=t.getWidth(),a=t.getHeight(),s=["x","y"],l=0;l<n.length;l++){var u=n[l],d=eV.vS(u.id,null),c=null!=d?r.get(d):null;if(c&&c.isGroup){var h=c.parent,p=h===i,g=l7(c),f=l7(h);g.width=(0,er.lo)(g.option.width,p?o:f.width)||0,g.height=(0,er.lo)(g.option.height,p?a:f.height)||0}}for(var l=n.length-1;l>=0;l--){var u=n[l],d=eV.vS(u.id,null),c=null!=d?r.get(d):null;if(c){var h=c.parent,f=l7(h),y=h===i?{width:o,height:a}:{width:f.width,height:f.height},v={},m=L.m$(c,u,y,null,{hv:u.hv,boundingMode:u.bounding},v);if(!l7(c).isNew&&m){for(var x=u.transition,_={},b=0;b<s.length;b++){var S=s[b],w=v[S];x&&((0,l6.ho)(x)||A.indexOf(x,S)>=0)?_[S]=w:c[S]=w}(0,es.oi)(c,_,e,0)}else c.attr(v)}}},t.prototype._clear=function(){var e=this,t=this._elMap;t.each(function(n){un(n,l7(n).option,t,e._lastGraphicModel)}),this._elMap=A.createHashMap()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(f.A);function ue(e){var t=new(A.hasOwn(l8,e)?l8[e]:ea.getShapeClass(e))({});return l7(t).type=e,t}function ut(e,t,n,i){var r=ue(n);return t.add(r),i.set(e,r),l7(r).id=e,l7(r).isNew=!0,r}function un(e,t,n,i){e&&e.parent&&("group"===e.type&&e.traverse(function(e){un(e,t,n,i)}),(0,l6.h8)(e,t,i),n.removeKey(l7(e).id))}function ui(e,t,n,i){e.isGroup||A.each([["cursor",n5.Ay.prototype.cursor],["zlevel",i||0],["z",n||0],["z2",0]],function(n){var i=n[0];A.hasOwn(t,i)?e[i]=A.retrieve2(t[i],n[1]):null==e[i]&&(e[i]=n[1])}),A.each(A.keys(t),function(n){if(0===n.indexOf("on")){var i=t[n];e[n]=A.isFunction(i)?i:null}}),A.hasOwn(t,"draggable")&&(e.draggable=t.draggable),null!=t.name&&(e.name=t.name),null!=t.id&&(e.id=t.id)}var ur=n(40988),uo=n(55875),ua=["rect","polygon","keep","clear"];function us(e,t){var n=(0,eV.qB)(e?e.brush:[]);if(n.length){var i,r,o=[];A.each(n,function(e){var t=e.hasOwnProperty("toolbox")?e.toolbox:[];t instanceof Array&&(o=o.concat(t))});var a=e&&e.toolbox;A.isArray(a)&&(a=a[0]),a||(e.toolbox=[a={feature:{}}]);var s=a.feature||(a.feature={}),l=s.brush||(s.brush={}),u=l.type||(l.type=[]);u.push.apply(u,o),i=u,r={},A.each(i,function(e){r[e]=1}),i.length=0,A.each(r,function(e,t){i.push(t)}),t&&!u.length&&u.push.apply(u,ua)}}var ul=n(88526),uu={lineX:ud(0),lineY:ud(1),rect:{point:function(e,t,n){return e&&n.boundingRect.contain(e[0],e[1])},rect:function(e,t,n){return e&&n.boundingRect.intersect(e)}},polygon:{point:function(e,t,n){return e&&n.boundingRect.contain(e[0],e[1])&&X(n.range,e[0],e[1])},rect:function(e,t,n){var i=n.range;if(!e||i.length<=1)return!1;var r=e.x,o=e.y,a=e.width,s=e.height,l=i[0];if(X(i,r,o)||X(i,r+a,o)||X(i,r,o+s)||X(i,r+a,o+s)||Y.A.create(e).contain(l[0],l[1])||(0,ea.linePolygonIntersect)(r,o,r+a,o,i)||(0,ea.linePolygonIntersect)(r,o,r,o+s,i)||(0,ea.linePolygonIntersect)(r+a,o,r+a,o+s,i)||(0,ea.linePolygonIntersect)(r,o+s,r+a,o+s,i))return!0}}};function ud(e){var t=["x","y"],n=["width","height"];return{point:function(t,n,i){if(t){var r=i.range;return uc(t[e],r)}},rect:function(i,r,o){if(i){var a=o.range,s=[i[t[e]],i[t[e]]+i[n[e]]];return s[1]<s[0]&&s.reverse(),uc(s[0],a)||uc(s[1],a)||uc(a[0],s)||uc(a[1],s)}}}}function uc(e,t){return t[0]<=e&&e<=t[1]}var uh=n(63785),up=["inBrush","outOfBrush"],ug="__ecBrushSelect",uf="__ecInBrushSelectEvent";function uy(e){e.eachComponent({mainType:"brush"},function(t){(t.brushTargetManager=new uh.A(t.option,e)).setInputRanges(t.areas,e)})}function uv(e,t,n){var i,r,o=[];e.eachComponent({mainType:"brush"},function(e){n&&"takeGlobalCursor"===n.type&&e.setBrushOption("brush"===n.key?n.brushOption:{brushType:!1})}),uy(e),e.eachComponent({mainType:"brush"},function(t,n){var a={brushId:t.id,brushIndex:n,brushName:t.name,areas:A.clone(t.areas),selected:[]};o.push(a);var s=t.option,l=s.brushLink,u=[],d=[],c=[],h=!1;n||(i=s.throttleType,r=s.throttleDelay);var p=A.map(t.areas,function(e){var t,n,i=u_[e.brushType],r=A.defaults({boundingRect:i?i(e):void 0},e);return t=r.brushType,r.selectors=n={point:function(e){return uu[t].point(e,n,r)},rect:function(e){return uu[t].rect(e,n,r)}},r}),g=ul.u1(t.option,up,function(e){e.mappingMethod="fixed"});function f(e){return"all"===l||!!u[e]}function y(e){return!!e.length}A.isArray(l)&&A.each(l,function(e){u[e]=1}),e.eachSeries(function(n,i){var r,o,a,s=c[i]=[];"parallel"===n.subType?(r=n,o=i,a=r.coordinateSystem,h=h||a.hasAxisBrushed(),f(o)&&a.eachActiveState(r.getData(),function(e,t){"active"===e&&(d[t]=1)})):function(n,i,r){if(!(!n.brushSelector||(o=t,a=i,null!=(s=o.option.seriesIndex)&&"all"!==s&&(A.isArray(s)?0>A.indexOf(s,a):a!==s)))&&(A.each(p,function(i){t.brushTargetManager.controlSeries(i,n,e)&&r.push(i),h=h||y(r)}),f(i)&&y(r))){var o,a,s,l=n.getData();l.each(function(e){ux(n,r,l,e)&&(d[e]=1)})}}(n,i,s)}),e.eachSeries(function(e,t){var n={seriesId:e.id,seriesIndex:t,seriesName:e.name,dataIndex:[]};a.selected.push(n);var i=c[t],r=e.getData(),o=f(t)?function(e){return d[e]?(n.dataIndex.push(r.getRawIndex(e)),"inBrush"):"outOfBrush"}:function(t){return ux(e,i,r,t)?(n.dataIndex.push(r.getRawIndex(t)),"inBrush"):"outOfBrush"};(f(t)?h:y(i))&&ul.R3(up,g,r,o)})}),function(e,t,n,i,r){if(r){var o=e.getZr();o[uf]||(o[ug]||(o[ug]=um),w.N(o,ug,n,t)(e,i))}}(t,i,r,o,n)}function um(e,t){if(!e.isDisposed()){var n=e.getZr();n[uf]=!0,e.dispatchAction({type:"brushSelect",batch:t}),n[uf]=!1}}function ux(e,t,n,i){for(var r=0,o=t.length;r<o;r++){var a=t[r];if(e.brushSelector(i,n,a.selectors,a))return!0}}var u_={rect:function(e){return ub(e.range)},polygon:function(e){for(var t,n=e.range,i=0,r=n.length;i<r;i++){t=t||[[1/0,-1/0],[1/0,-1/0]];var o=n[i];o[0]<t[0][0]&&(t[0][0]=o[0]),o[0]>t[0][1]&&(t[0][1]=o[0]),o[1]<t[1][0]&&(t[1][0]=o[1]),o[1]>t[1][1]&&(t[1][1]=o[1])}return t&&ub(t)}};function ub(e){return new Y.A(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var uA=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,W.C6)(t,e),t.prototype.init=function(e,t){this.ecModel=e,this.api=t,this.model,(this._brushController=new o8.A(t.getZr())).on("brush",A.bind(this._onBrush,this)).mount()},t.prototype.render=function(e,t,n,i){this.model=e,this._updateController(e,t,n,i)},t.prototype.updateTransform=function(e,t,n,i){uy(t),this._updateController(e,t,n,i)},t.prototype.updateVisual=function(e,t,n,i){this.updateTransform(e,t,n,i)},t.prototype.updateView=function(e,t,n,i){this._updateController(e,t,n,i)},t.prototype._updateController=function(e,t,n,i){i&&i.$from===e.id||this._brushController.setPanels(e.brushTargetManager.makePanelOpts(n)).enableBrush(e.brushOption).updateCovers(e.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(e){var t=this.model.id,n=this.model.brushTargetManager.setOutputRanges(e.areas,this.ecModel);(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:t,areas:A.clone(n),$from:t}),e.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:t,areas:A.clone(n),$from:t})},t.type="brush",t}(f.A),uS=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.areas=[],n.brushOption={},n}return(0,W.C6)(t,e),t.prototype.optionUpdated=function(e,t){var n=this.option;t||ul.St(n,e,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:"#ddd"},i.hasOwnProperty("liftZ")||(i.liftZ=5)},t.prototype.setAreas=function(e){e&&(this.areas=A.map(e,function(e){return uw(this.option,e)},this))},t.prototype.setBrushOption=function(e){this.brushOption=uw(this.option,e),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},t}(g.A);function uw(e,t){return A.merge({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new T.A(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}var uM=n(91523),uI=["rect","polygon","lineX","lineY","keep","clear"],uC=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,W.C6)(t,e),t.prototype.render=function(e,t,n){var i,r,o;t.eachComponent({mainType:"brush"},function(e){i=e.brushType,r=e.brushOption.brushMode||"single",o=o||!!e.areas.length}),this._brushType=i,this._brushMode=r,A.each(e.get("type",!0),function(t){e.setIconStatus(t,("keep"===t?"multiple"===r:"clear"===t?o:t===i)?"emphasis":"normal")})},t.prototype.updateView=function(e,t,n){this.render(e,t,n)},t.prototype.getIcons=function(){var e=this.model,t=e.get("icon",!0),n={};return A.each(e.get("type",!0),function(e){t[e]&&(n[e]=t[e])}),n},t.prototype.onclick=function(e,t,n){var i=this._brushType,r=this._brushMode;"clear"===n?(t.dispatchAction({type:"axisAreaSelect",intervals:[]}),t.dispatchAction({type:"brush",command:"clear",areas:[]})):t.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?i:i!==n&&n,brushMode:"keep"===n?"multiple"===r?"single":"multiple":r}})},t.getDefaultOption=function(e){return{show:!0,type:uI.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:e.getLocaleModel().get(["toolbox","brush","title"])}},t}(uM.Ms),uT=n(72106),uL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode="box",n}return(0,W.C6)(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),this._initData()},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(e){null==e&&(e=this.option.currentIndex);var t=this._data.count();this.option.loop?e=(e%t+t)%t:(e>=t&&(e=t-1),e<0&&(e=0)),this.option.currentIndex=e},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(e){this.option.autoPlay=!!e},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var e,t=this.option,n=t.data||[],i=t.axisType,r=this._names=[];"category"===i?(e=[],(0,A.each)(n,function(t,n){var i,o=(0,eV.vS)((0,eV.vj)(t),"");(0,A.isObject)(t)?(i=(0,A.clone)(t)).value=n:i=n,e.push(i),r.push(o)})):e=n,(this._data=new m.A([{name:"value",type:{category:"ordinal",time:"time",value:"number"}[i]||"number"}],this)).initData(e,r)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},t.type="timeline",t.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},t}(g.A),uD=n(42345),uP=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,W.C6)(t,e),t.type="timeline.slider",t.defaultOption=(0,n1.G_)(uL.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),t}(uL);(0,A.mixin)(uP,uD.J.prototype);var uN=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,W.C6)(t,e),t.type="timeline",t}(f.A),uk=function(e){function t(t,n,i,r){var o=e.call(this,t,n,i)||this;return o.type=r||"value",o}return(0,W.C6)(t,e),t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},t}(eD.A),uR=n(55724),uE=n(16264),uV=Math.PI,uz=(0,eV.$r)(),uO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,W.C6)(t,e),t.prototype.init=function(e,t){this.api=t},t.prototype.render=function(e,t,n){if(this.model=e,this.api=n,this.ecModel=t,this.group.removeAll(),e.get("show",!0)){var i=this._layout(e,n),r=this._createGroup("_mainGroup"),o=this._createGroup("_labelGroup"),a=this._axis=this._createAxis(i,e);e.formatTooltip=function(e){var t=a.scale.getLabel({value:e});return(0,nt.Qx)("nameValue",{noName:!0,value:t})},(0,A.each)(["AxisLine","AxisTick","Control","CurrentPointer"],function(t){this["_render"+t](i,r,a,e)},this),this._renderAxisLabel(i,o,a,e),this._position(i,e)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(e,t){var n,i,r,o,a,s,l=e.get(["label","position"]),u=e.get("orient"),d=(n=e,i=t,L.dV(n.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()},n.get("padding"))),c={horizontal:"center",vertical:(r=null==l||"auto"===l?"horizontal"===u?d.y+d.height/2<t.getHeight()/2?"-":"+":d.x+d.width/2<t.getWidth()/2?"+":"-":(0,A.isString)(l)?({horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}})[u][l]:l)>=0||"+"===r?"left":"right"},h="vertical"===u?d.height:d.width,p=e.getModel("controlStyle"),g=p.get("show",!0),f=g?p.get("itemSize"):0,y=g?p.get("itemGap"):0,v=f+y,m=e.get(["label","rotate"])||0;m=m*uV/180;var x=p.get("position",!0),_=g&&p.get("showPlayBtn",!0),b=g&&p.get("showPrevBtn",!0),S=g&&p.get("showNextBtn",!0),w=0,M=h;"left"===x||"bottom"===x?(_&&(o=[0,0],w+=v),b&&(a=[w,0],w+=v)):(_&&(o=[M-f,0],M-=v),b&&(a=[0,0],w+=v)),S&&(s=[M-f,0],M-=v);var I=[w,M];return e.get("inverse")&&I.reverse(),{viewRect:d,mainLength:h,orient:u,rotation:({horizontal:0,vertical:uV/2})[u],labelRotation:m,labelPosOpt:r,labelAlign:e.get(["label","align"])||c[u],labelBaseline:e.get(["label","verticalAlign"])||e.get(["label","baseline"])||({horizontal:r>=0||"+"===r?"top":"bottom",vertical:"middle"})[u],playPosition:o,prevBtnPosition:a,nextBtnPosition:s,axisExtent:I,controlSize:f,controlGap:y}},t.prototype._position=function(e,t){var n=this._mainGroup,i=this._labelGroup,r=e.viewRect;if("vertical"===e.orient){var o=_.create(),a=r.x,s=r.y+r.height;_.translate(o,o,[-a,-s]),_.rotate(o,o,-uV/2),_.translate(o,o,[a,s]),(r=r.clone()).applyTransform(o)}var l=y(r),u=y(n.getBoundingRect()),d=y(i.getBoundingRect()),c=[n.x,n.y],h=[i.x,i.y];h[0]=c[0]=l[0][0];var p=e.labelPosOpt;if(null==p||(0,A.isString)(p)){var g=+("+"!==p);v(c,u,l,1,g),v(h,d,l,1,1-g)}else{var g=p>=0?0:1;v(c,u,l,1,g),h[1]=c[1]+p}function f(e){e.originX=l[0][0]-e.x,e.originY=l[1][0]-e.y}function y(e){return[[e.x,e.x+e.width],[e.y,e.y+e.height]]}function v(e,t,n,i,r){e[i]+=n[i][r]-t[i][r]}n.setPosition(c),i.setPosition(h),n.rotation=i.rotation=e.rotation,f(n),f(i)},t.prototype._createAxis=function(e,t){var n=t.getData(),i=t.get("axisType"),r=function(e,t){if(t=t||e.get("type"))switch(t){case"category":return new uR.A({ordinalMeta:e.getCategories(),extent:[1/0,-1/0]});case"time":return new uE.A({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new nd.A}}(t,i);r.getTicks=function(){return n.mapArray(["value"],function(e){return{value:e}})};var o=n.getDataExtent("value");r.setExtent(o[0],o[1]),r.calcNiceTicks();var a=new uk("value",r,e.axisExtent,i);return a.model=t,a},t.prototype._createGroup=function(e){var t=this[e]=new el.A;return this.group.add(t),t},t.prototype._renderAxisLine=function(e,t,n,i){var r=n.getExtent();if(i.get(["lineStyle","show"])){var o=new em.A({shape:{x1:r[0],y1:0,x2:r[1],y2:0},style:(0,A.extend)({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});t.add(o);var a=this._progressLine=new em.A({shape:{x1:r[0],x2:this._currentPointer?this._currentPointer.x:r[0],y1:0,y2:0},style:(0,A.defaults)({lineCap:"round",lineWidth:o.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});t.add(a)}},t.prototype._renderAxisTick=function(e,t,n,i){var r=this,o=i.getData(),a=n.scale.getTicks();this._tickSymbols=[],(0,A.each)(a,function(e){var a=n.dataToCoord(e.value),s=o.getItemModel(e.value),l=s.getModel("itemStyle"),u=s.getModel(["emphasis","itemStyle"]),d=s.getModel(["progress","itemStyle"]),c=uG(s,l,t,{x:a,y:0,onclick:(0,A.bind)(r._changeTimeline,r,e.value)});c.ensureState("emphasis").style=u.getItemStyle(),c.ensureState("progress").style=d.getItemStyle(),(0,E.iJ)(c);var h=(0,P.z)(c);s.get("tooltip")?(h.dataIndex=e.value,h.dataModel=i):h.dataIndex=h.dataModel=null,r._tickSymbols.push(c)})},t.prototype._renderAxisLabel=function(e,t,n,i){var r=this;if(n.getLabelModel().get("show")){var o=i.getData(),a=n.getViewLabels();this._tickLabels=[],(0,A.each)(a,function(i){var a=i.tickValue,s=o.getItemModel(a),l=s.getModel("label"),u=s.getModel(["emphasis","label"]),d=s.getModel(["progress","label"]),c=n.dataToCoord(i.tickValue),h=new ed.Ay({x:c,y:0,rotation:e.labelRotation-e.rotation,onclick:(0,A.bind)(r._changeTimeline,r,a),silent:!1,style:(0,N.VB)(l,{text:i.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});h.ensureState("emphasis").style=(0,N.VB)(u),h.ensureState("progress").style=(0,N.VB)(d),t.add(h),(0,E.iJ)(h),uz(h).dataIndex=a,r._tickLabels.push(h)})}},t.prototype._renderControl=function(e,t,n,i){var r=e.controlSize,o=e.rotation,a=i.getModel("controlStyle").getItemStyle(),s=i.getModel(["emphasis","controlStyle"]).getItemStyle(),l=i.getPlayState(),u=i.get("inverse",!0);function d(e,n,l,u){if(e){var d,c,h,p,g,f,y=(0,eK.lo)((0,A.retrieve2)(i.get(["controlStyle",n+"BtnSize"]),r),r),v=(d=i,c=n+"Icon",h=[0,-y/2,y,y],g=(p={x:e[0],y:e[1],originX:r/2,originY:0,rotation:u?-o:0,rectHover:!0,style:a,onclick:l}).style,f=ea.createIcon(d.get(["controlStyle",c]),p||{},new Y.A(h[0],h[1],h[2],h[3])),g&&f.setStyle(g),f);v.ensureState("emphasis").style=s,t.add(v),(0,E.iJ)(v)}}d(e.nextBtnPosition,"next",(0,A.bind)(this._changeTimeline,this,u?"-":"+")),d(e.prevBtnPosition,"prev",(0,A.bind)(this._changeTimeline,this,u?"+":"-")),d(e.playPosition,l?"stop":"play",(0,A.bind)(this._handlePlayClick,this,!l),!0)},t.prototype._renderCurrentPointer=function(e,t,n,i){var r=i.getData(),o=i.getCurrentIndex(),a=r.getItemModel(o).getModel("checkpointStyle"),s=this;this._currentPointer=uG(a,a,this._mainGroup,{},this._currentPointer,{onCreate:function(e){e.draggable=!0,e.drift=(0,A.bind)(s._handlePointerDrag,s),e.ondragend=(0,A.bind)(s._handlePointerDragend,s),uB(e,s._progressLine,o,n,i,!0)},onUpdate:function(e){uB(e,s._progressLine,o,n,i)}})},t.prototype._handlePlayClick=function(e){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:e,from:this.uid})},t.prototype._handlePointerDrag=function(e,t,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},t.prototype._handlePointerDragend=function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},t.prototype._pointerChangeTimeline=function(e,t){var n=this._toAxisCoord(e)[0],i=this._axis,r=er.Y6(i.getExtent().slice());n>r[1]&&(n=r[1]),n<r[0]&&(n=r[0]),this._currentPointer.x=n,this._currentPointer.markRedraw();var o=this._progressLine;o&&(o.shape.x2=n,o.dirty());var a=this._findNearestTick(n),s=this.model;(t||a!==s.getCurrentIndex()&&s.get("realtime"))&&this._changeTimeline(a)},t.prototype._doPlayStop=function(){var e=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var t=e.model;e._changeTimeline(t.getCurrentIndex()+(t.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},t.prototype._toAxisCoord=function(e){var t=this._mainGroup.getLocalTransform();return ea.applyTransform(e,t,!0)},t.prototype._findNearestTick=function(e){var t,n=this.model.getData(),i=1/0,r=this._axis;return n.each(["value"],function(n,o){var a=Math.abs(r.dataToCoord(n)-e);a<i&&(i=a,t=o)}),t},t.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},t.prototype._changeTimeline=function(e){var t=this.model.getCurrentIndex();"+"===e?e=t+1:"-"===e&&(e=t-1),this.api.dispatchAction({type:"timelineChange",currentIndex:e,from:this.uid})},t.prototype._updateTicksStatus=function(){var e=this.model.getCurrentIndex(),t=this._tickSymbols,n=this._tickLabels;if(t)for(var i=0;i<t.length;i++)t&&t[i]&&t[i].toggleState("progress",i<e);if(n)for(var i=0;i<n.length;i++)n&&n[i]&&n[i].toggleState("progress",uz(n[i]).dataIndex<=e)},t.type="timeline.slider",t}(uN);function uG(e,t,n,i,r,o){var a=t.get("color");if(r)r.setColor(a),n.add(r),o&&o.onUpdate(r);else{var s=e.get("symbol");(r=(0,R.v5)(s,-1,-1,2,2,a)).setStyle("strokeNoScale",!0),n.add(r),o&&o.onCreate(r)}var l=t.getItemStyle(["color"]);r.setStyle(l),i=(0,A.merge)({rectHover:!0,z2:100},i,!0);var u=(0,R.xU)(e.get("symbolSize"));i.scaleX=u[0]/2,i.scaleY=u[1]/2;var d=(0,R.hV)(e.get("symbolOffset"),u);d&&(i.x=(i.x||0)+d[0],i.y=(i.y||0)+d[1]);var c=e.get("symbolRotate");return i.rotation=(c||0)*Math.PI/180||0,r.attr(i),r.updateTransform(),r}function uB(e,t,n,i,r,o){if(!e.dragging){var a=r.getModel("checkpointStyle"),s=i.dataToCoord(r.getData().get("value",n));if(o||!a.get("animation",!0))e.attr({x:s,y:0}),t&&t.attr({shape:{x2:s}});else{var l={duration:a.get("animationDuration",!0),easing:a.get("animationEasing",!0)};e.stopAnimation(null,!0),e.animateTo({x:s,y:0},l),t&&t.animateTo({shape:{x2:s}},l)}}}function uF(e){var t=e&&e.timeline;A.isArray(t)||(t=t?[t]:[]),A.each(t,function(e){e&&function(e){var t=e.type,n={number:"value",time:"time"};if(n[t]&&(e.axisType=n[t],delete e.type),uW(e),uY(e,"controlPosition")){var i=e.controlStyle||(e.controlStyle={});uY(i,"position")||(i.position=e.controlPosition),"none"!==i.position||uY(i,"show")||(i.show=!1,delete i.position),delete e.controlPosition}A.each(e.data||[],function(e){A.isObject(e)&&!A.isArray(e)&&(!uY(e,"value")&&uY(e,"name")&&(e.value=e.name),uW(e))})}(e)})}function uW(e){var t=e.itemStyle||(e.itemStyle={}),n=t.emphasis||(t.emphasis={}),i=e.label||e.label||{},r=i.normal||(i.normal={}),o={normal:1,emphasis:1};A.each(i,function(e,t){o[t]||uY(r,t)||(r[t]=e)}),n.label&&!uY(i,"emphasis")&&(i.emphasis=n.label,delete n.label)}function uY(e,t){return e.hasOwnProperty(t)}var uH=n(48683),uU=n(28502),uX=n(64404),uj=n(50944),uZ=n(61305),uq=n(49747),u$=n(5920),uJ=n(46182),uQ=n(97310),uK=n(12836),u0={label:{enabled:!0},decal:{show:!1}},u1=(0,eV.$r)(),u2={};function u5(e,t){var n=e.getModel("aria");if(n.get("enabled")){var i=A.clone(u0);A.merge(i.label,e.getLocaleModel().get("aria"),!1),A.merge(n.option,i,!1),function(){if(n.getModel("decal").get("show")){var t=A.createHashMap();e.eachSeries(function(e){if(!e.isColorBySeries()){var n=t.get(e.type);n||(n={},t.set(e.type,n)),u1(e).scope=n}}),e.eachRawSeries(function(t){if(!e.isSeriesFiltered(t)){if(A.isFunction(t.enableAriaDecal))return void t.enableAriaDecal();var n=t.getData();if(t.isColorBySeries()){var i=(0,ra.x)(t.ecModel,t.name,u2,e.getSeriesCount()),r=n.getVisual("decal");n.setVisual("decal",u(r,i))}else{var o=t.getRawData(),a={},s=u1(t).scope;n.each(function(e){a[n.getRawIndex(e)]=e});var l=o.count();o.each(function(e){var i=a[e],r=o.getName(e)||e+"",d=(0,ra.x)(t.ecModel,r,s,l),c=n.getItemVisual(i,"decal");n.setItemVisual(i,"decal",u(c,d))})}}function u(e,t){var n=e?A.extend(A.extend({},t),e):t;return n.dirty=!0,n}})}}(),function(){var i,o=e.getLocaleModel().get("aria"),a=n.getModel("label");if(a.option=A.defaults(a.option,o),a.get("enabled")){var s,l=t.getZr().dom;if(a.get("description"))return l.setAttribute("aria-label",a.get("description"));var u=e.getSeriesCount(),d=a.get(["data","maxCount"])||10,c=Math.min(u,a.get(["series","maxCount"])||10);if(u<1)return;var h=((s=e.get("title"))&&s.length&&(s=s[0]),s&&s.text);i=h?r(a.get(["general","withTitle"]),{title:h}):a.get(["general","withoutTitle"]);var p=[];i+=r(u>1?a.get(["series","multiple","prefix"]):a.get(["series","single","prefix"]),{seriesCount:u}),e.eachSeries(function(t,n){if(n<c){var i,o,s=void 0,l=t.get("name")?"withName":"withoutName";s=r(s=u>1?a.get(["series","multiple",l]):a.get(["series","single",l]),{seriesId:t.seriesIndex,seriesName:t.get("name"),seriesType:(i=t.subType,(o=e.getLocaleModel().get(["series","typeNames"]))[i]||o.chart)});var h=t.getData();h.count()>d?s+=r(a.get(["data","partialData"]),{displayCnt:d}):s+=a.get(["data","allData"]);for(var g=a.get(["data","separator","middle"]),f=a.get(["data","separator","end"]),y=[],v=0;v<h.count();v++)if(v<d){var m=h.getName(v),x=h.getValues(v),_=a.get(["data",m?"withName":"withoutName"]);y.push(r(_,{name:m,value:x.join(g)}))}s+=y.join(g)+f,p.push(s)}});var g=a.getModel(["series","multiple","separator"]),f=g.get("middle"),y=g.get("end");i+=p.join(f)+y,l.setAttribute("aria-label",i)}}()}function r(e,t){if(!A.isString(e))return e;var n=e;return A.each(t,function(e,t){n=n.replace(RegExp("\\{\\s*"+t+"\\s*\\}","g"),e)}),n}}function u3(e){if(e&&e.aria){var t=e.aria;null!=t.show&&(t.enabled=t.show),t.label=t.label||{},A.each(["description","general","series","data"],function(e){null!=t[e]&&(t.label[e]=t[e])})}}var u6=n(47163),u4={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},u8=function(){function e(e){null==(this._condVal=(0,A.isString)(e)?new RegExp(e):(0,A.isRegExp)(e)?e:null)&&(0,aD.$8)("")}return e.prototype.evaluate=function(e){var t=typeof e;return(0,A.isString)(t)?this._condVal.test(e):!!(0,A.isNumber)(t)&&this._condVal.test(e+"")},e}(),u7=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),u9=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(!e[t].evaluate())return!1;return!0},e}(),de=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(e[t].evaluate())return!0;return!1},e}(),dt=function(){function e(){}return e.prototype.evaluate=function(){return!this.child.evaluate()},e}(),dn=function(){function e(){}return e.prototype.evaluate=function(){for(var e=!!this.valueParser,t=(0,this.getValue)(this.valueGetterParam),n=e?this.valueParser(t):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(e?n:t))return!1;return!0},e}();function di(e,t){if(!0===e||!1===e){var n,i,r,o,a=new u7;return a.value=e,a}if(da(e)||(0,aD.$8)(""),e.and)return dr("and",e,t);if(e.or)return dr("or",e,t);if(e.not){return n=e,i=t,da(r=n.not)||(0,aD.$8)(""),(o=new dt).child=di(r,i),o.child||(0,aD.$8)(""),o}return function(e,t){for(var n=t.prepareGetValue(e),i=[],r=(0,A.keys)(e),o=e.parser,a=o?(0,u6.zC)(o):null,s=0;s<r.length;s++){var l=r[s];if(!("parser"===l||t.valueGetterAttrMap.get(l))){var u=(0,A.hasOwn)(u4,l)?u4[l]:l,d=e[l],c=a?a(d):d,h=(0,u6.zs)(u,c)||"reg"===u&&new u8(c);h||(0,aD.$8)(""),i.push(h)}}i.length||(0,aD.$8)("");var p=new dn;return p.valueGetterParam=n,p.valueParser=a,p.getValue=t.getValue,p.subCondList=i,p}(e,t)}function dr(e,t,n){var i=t[e];(0,A.isArray)(i)||(0,aD.$8)(""),i.length||(0,aD.$8)("");var r="and"===e?new u9:new de;return r.children=(0,A.map)(i,function(e){return di(e,n)}),r.children.length||(0,aD.$8)(""),r}function da(e){return(0,A.isObject)(e)&&!(0,A.isArrayLike)(e)}var ds=function(){function e(e,t){this._cond=di(e,t)}return e.prototype.evaluate=function(){return this._cond.evaluate()},e}(),dl={type:"echarts:filter",transform:function(e){for(var t,n=e.upstream,i=new ds(e.config,{valueGetterAttrMap:(0,A.createHashMap)({dimension:!0}),prepareGetValue:function(e){var t=e.dimension;(0,A.hasOwn)(e,"dimension")||(0,aD.$8)("");var i=n.getDimensionInfo(t);return i||(0,aD.$8)(""),{dimIdx:i.index}},getValue:function(e){return n.retrieveValueFromItem(t,e.dimIdx)}}),r=[],o=0,a=n.count();o<a;o++)t=n.getRawDataItem(o),i.evaluate()&&r.push(t);return{data:r}}},du={type:"echarts:sort",transform:function(e){var t=e.upstream,n=e.config,i=(0,eV.qB)(n);i.length||(0,aD.$8)("");var r=[];(0,A.each)(i,function(e){var n=e.dimension,i=e.order,o=e.parser,a=e.incomparable;null==n&&(0,aD.$8)(""),"asc"!==i&&"desc"!==i&&(0,aD.$8)(""),a&&"min"!==a&&"max"!==a&&(0,aD.$8)(""),"asc"!==i&&"desc"!==i&&(0,aD.$8)("");var s=t.getDimensionInfo(n);s||(0,aD.$8)("");var l=o?(0,u6.zC)(o):null;o&&!l&&(0,aD.$8)(""),r.push({dimIdx:s.index,parser:l,comparator:new u6.Fl(i,a)})});var o=t.sourceFormat;o!==aP.Km&&o!==aP.Wk&&(0,aD.$8)("");for(var a=[],s=0,l=t.count();s<l;s++)a.push(t.getRawDataItem(s));return a.sort(function(e,n){for(var i=0;i<r.length;i++){var o=r[i],a=t.retrieveValueFromItem(e,o.dimIdx),s=t.retrieveValueFromItem(n,o.dimIdx);o.parser&&(a=o.parser(a),s=o.parser(s));var l=o.comparator.evaluate(a,s);if(0!==l)return l}return 0}),{data:a}}},dd=n(90652),dc=tc.A.CMD;function dh(e,t){return 1e-5>Math.abs(e-t)}function dp(e){var t,n,i,r,o,a=e.data,s=e.len(),l=[],u=0,d=0,c=0,h=0;function p(e,n){t&&t.length>2&&l.push(t),t=[e,n]}function g(e,n,i,r){dh(e,i)&&dh(n,r)||t.push(e,n,i,r,i,r)}for(var f=0;f<s;){var y=a[f++],v=1===f;switch(v&&(u=a[f],d=a[f+1],c=u,h=d,(y===dc.L||y===dc.C||y===dc.Q)&&(t=[c,h])),y){case dc.M:u=c=a[f++],d=h=a[f++],p(c,h);break;case dc.L:g(u,d,n=a[f++],i=a[f++]),u=n,d=i;break;case dc.C:t.push(a[f++],a[f++],a[f++],a[f++],u=a[f++],d=a[f++]);break;case dc.Q:n=a[f++],i=a[f++],r=a[f++],o=a[f++],t.push(u+2/3*(n-u),d+2/3*(i-d),r+2/3*(n-r),o+2/3*(i-o),r,o),u=r,d=o;break;case dc.A:var m=a[f++],x=a[f++],_=a[f++],b=a[f++],A=a[f++],S=a[f++]+A;f+=1;var w=!a[f++];n=Math.cos(A)*_+m,i=Math.sin(A)*b+x,v?p(c=n,h=i):g(u,d,n,i),u=Math.cos(S)*_+m,d=Math.sin(S)*b+x;for(var M=(w?-1:1)*Math.PI/2,I=A;w?I>S:I<S;I+=M){var C=w?Math.max(I+M,S):Math.min(I+M,S);!function(e,n,i,r,o,a){var s=4*Math.tan(Math.abs(n-e)/4)/3,l=n<e?-1:1,u=Math.cos(e),d=Math.sin(e),c=Math.cos(n),h=Math.sin(n),p=c*o+i,g=h*a+r,f=o*s*l,y=a*s*l;t.push(u*o+i-f*d,d*a+r+y*u,p+f*h,g-y*c,p,g)}(I,C,m,x,_,b)}break;case dc.R:c=u=a[f++],h=d=a[f++],n=c+a[f++],i=h+a[f++],p(n,h),g(n,h,n,i),g(n,i,c,i),g(c,i,c,h),g(c,h,n,h);break;case dc.Z:t&&g(u,d,c,h),u=c,d=h}}return t&&t.length>2&&l.push(t),l}function dg(e,t,n){var i=Math.ceil(Math.sqrt(Math.abs(e[t]/e[1-t])*n)),r=Math.floor(n/i);0===r&&(r=1,i=n);for(var o=[],a=0;a<i;a++)o.push(r);var s=n-i*r;if(s>0)for(var a=0;a<s;a++)o[a%i]+=1;return o}function df(e,t,n){for(var i=e.r0,r=e.r,o=e.startAngle,a=Math.abs(e.endAngle-o),s=a*r,l=r-i,u=s>Math.abs(l),d=dg([s,l],+!u,t),c=(u?a:l)/d.length,h=0;h<d.length;h++)for(var p=(u?l:a)/d[h],g=0;g<d[h];g++){var f={};u?(f.startAngle=o+c*h,f.endAngle=o+c*(h+1),f.r0=i+p*g,f.r=i+p*(g+1)):(f.startAngle=o+p*g,f.endAngle=o+p*(g+1),f.r0=i+c*h,f.r=i+c*(h+1)),f.clockwise=e.clockwise,f.cx=e.cx,f.cy=e.cy,n.push(f)}}function dy(e,t){var n=e[e.length-1];n&&n[0]===t[0]&&n[1]===t[1]||e.push(t)}function dv(e){var t=e.points,n=[],i=[];(0,iB.Cr)(t,n,i);var r=new Y.A(n[0],n[1],i[0]-n[0],i[1]-n[1]),o=r.width,a=r.height,s=r.x,l=r.y,u=new oC.A,d=new oC.A;return o>a?(u.x=d.x=s+o/2,u.y=l,d.y=l+a):(u.y=d.y=l+a/2,u.x=s,d.x=s+o),function(e,t,n){for(var i=e.length,r=[],o=0;o<i;o++){var a=e[o],s=e[(o+1)%i],l=function(e,t,n,i,r,o,a,s){var l=n-e,u=i-t,d=a-r,c=s-o,h=d*u-l*c;if(1e-6>Math.abs(h))return null;var p=((e-r)*c-d*(t-o))/h;return p<0||p>1?null:new oC.A(p*l+e,p*u+t)}(a[0],a[1],s[0],s[1],t.x,t.y,n.x,n.y);l&&r.push({projPt:function(e,t,n){var i=new oC.A;oC.A.sub(i,n,t),i.normalize();var r=new oC.A;return oC.A.sub(r,e,t),r.dot(i)}(l,t,n),pt:l,idx:o})}if(r.length<2)return[{points:e},{points:e}];r.sort(function(e,t){return e.projPt-t.projPt});var u=r[0],d=r[r.length-1];if(d.idx<u.idx){var c=u;u=d,d=c}for(var h=[u.pt.x,u.pt.y],p=[d.pt.x,d.pt.y],g=[h],f=[p],o=u.idx+1;o<=d.idx;o++)dy(g,e[o].slice());dy(g,p),dy(g,h);for(var o=d.idx+1;o<=u.idx+i;o++)dy(f,e[o%i].slice());return dy(f,h),dy(f,p),[{points:g},{points:f}]}(t,u,d)}function dm(e,t,n,i){if(1===n)i.push(t);else{var r=Math.floor(n/2),o=e(t);dm(e,o[0],r,i),dm(e,o[1],n-r,i)}return i}function dx(e,t){for(var n=e.length,i=e[n-2],r=e[n-1],o=[],a=0;a<t.length;)o[a++]=i,o[a++]=r;return o}function d_(e){for(var t=0,n=0,i=0,r=e.length,o=0,a=r-2;o<r;a=o,o+=2){var s=e[a],l=e[a+1],u=e[o],d=e[o+1],c=s*d-u*l;t+=c,n+=(s+u)*c,i+=(l+d)*c}return 0===t?[e[0]||0,e[1]||0]:[n/t/3,i/t/3,t]}function db(e){return e.__isCombineMorphing}var dA="__mOriginal_";function dS(e,t,n){var i=dA+t,r=e[i]||e[t];e[i]||(e[i]=e[t]);var o=n.replace,a=n.after,s=n.before;e[t]=function(){var e,t=arguments;return s&&s.apply(this,t),e=o?o.apply(this,t):r.apply(this,t),a&&a.apply(this,t),e}}function dw(e,t){var n=dA+t;e[n]&&(e[t]=e[n],e[n]=null)}function dM(e,t){for(var n=0;n<e.length;n++)for(var i=e[n],r=0;r<i.length;){var o=i[r],a=i[r+1];i[r++]=t[0]*o+t[2]*a+t[4],i[r++]=t[1]*o+t[3]*a+t[5]}}function dI(e,t){var n=e.getUpdatedPathProxy(),i=t.getUpdatedPathProxy(),r=function(e,t){for(var n,i,r,o=[],a=[],s=0;s<Math.max(e.length,t.length);s++){var l=e[s],u=t[s],d=void 0,c=void 0;l?u?(d=(n=function(e,t){var n=e.length,i=t.length;if(n===i)return[e,t];for(var r=[],o=[],a=n<i?e:t,s=Math.min(n,i),l=Math.abs(i-n)/6,u=Math.ceil(l/((s-2)/6))+1,d=[a[0],a[1]],c=l,h=2;h<s;){var p=a[h-2],g=a[h-1],f=a[h++],y=a[h++],v=a[h++],m=a[h++],x=a[h++],_=a[h++];if(c<=0){d.push(f,y,v,m,x,_);continue}for(var b=Math.min(c,u-1)+1,A=1;A<=b;A++){var S=A/b;(0,oo.YT)(p,f,v,x,S,r),(0,oo.YT)(g,y,m,_,S,o),p=r[3],g=o[3],d.push(r[1],o[1],r[2],o[2],p,g),f=r[5],y=o[5],v=r[6],m=o[6]}c-=b-1}return a===e?[d,t]:[e,d]}(l,u))[0],c=n[1],i=d,r=c):(c=dx(r||l,l),d=l):(d=dx(i||u,u),c=u),o.push(d),a.push(c)}return[o,a]}(dp(n),dp(i)),o=r[0],a=r[1],s=e.getComputedTransform(),l=t.getComputedTransform();s&&dM(o,s),l&&dM(a,l),dS(t,"updateTransform",{replace:function(){this.transform=null}}),t.transform=null;var u=function(e,t,n,i){for(var r,o=[],a=0;a<e.length;a++){var s=e[a],l=t[a],u=d_(s),d=d_(l);null==r&&(r=u[2]<0!=d[2]<0);var c=[],h=[],p=0,g=1/0,f=[],y=s.length;r&&(s=function(e){for(var t=[],n=e.length,i=0;i<n;i+=2)t[i]=e[n-i-2],t[i+1]=e[n-i-1];return t}(s));for(var v=6*function(e,t,n,i){for(var r=(e.length-2)/6,o=1/0,a=0,s=e.length,l=s-2,u=0;u<r;u++){for(var d=6*u,c=0,h=0;h<s;h+=2){var p=0===h?d:(d+h-2)%l+2,g=e[p]-n[0],f=e[p+1]-n[1],y=t[h]-i[0],v=t[h+1]-i[1],m=y-g,x=v-f;c+=m*m+x*x}c<o&&(o=c,a=u)}return a}(s,l,u,d),m=y-2,x=0;x<m;x+=2){var _=(v+x)%m+2;c[x+2]=s[_]-u[0],c[x+3]=s[_+1]-u[1]}c[0]=s[v]-u[0],c[1]=s[v+1]-u[1];for(var b=i/10,A=-i/2;A<=i/2;A+=b){for(var S=Math.sin(A),w=Math.cos(A),M=0,x=0;x<s.length;x+=2){var I=c[x],C=c[x+1],T=l[x]-d[0],L=l[x+1]-d[1],D=T*w-L*S,P=T*S+L*w;f[x]=D,f[x+1]=P;var N=D-I,k=P-C;M+=N*N+k*k}if(M<g){g=M,p=A;for(var R=0;R<f.length;R++)h[R]=f[R]}}o.push({from:c,to:h,fromCp:u,toCp:d,rotation:-p})}return o}(o,a,0,Math.PI),d=[];dS(t,"buildPath",{replace:function(e){for(var n=t.__morphT,i=1-n,r=[],o=0;o<u.length;o++){var a=u[o],s=a.from,l=a.to,c=a.rotation*n,h=a.fromCp,p=a.toCp,g=Math.sin(c),f=Math.cos(c);(0,b.lerp)(r,h,p,n);for(var y=0;y<s.length;y+=2){var v=s[y],m=s[y+1],x=l[y],_=l[y+1],A=v*i+x*n,S=m*i+_*n;d[y]=A*f-S*g+r[0],d[y+1]=A*g+S*f+r[1]}var w=d[0],M=d[1];e.moveTo(w,M);for(var y=2;y<s.length;){var x=d[y++],_=d[y++],I=d[y++],C=d[y++],T=d[y++],L=d[y++];w===x&&M===_&&I===T&&C===L?e.lineTo(T,L):e.bezierCurveTo(x,_,I,C,T,L),w=T,M=L}}}})}function dC(e,t,n){if(!e||!t)return t;var i=n.done,r=n.during;return dI(e,t),t.__morphT=0,t.animateTo({__morphT:1},(0,A.defaults)({during:function(e){t.dirtyShape(),r&&r(e)},done:function(){dw(t,"buildPath"),dw(t,"updateTransform"),t.__morphT=-1,t.createPathProxy(),t.dirtyShape(),i&&i()}},n)),t}function dT(e){var t=1/0,n=1/0,i=-1/0,r=-1/0,o=(0,A.map)(e,function(e){var o=e.getBoundingRect(),a=e.getComputedTransform(),s=o.x+o.width/2+(a?a[4]:0),l=o.y+o.height/2+(a?a[5]:0);return t=Math.min(s,t),n=Math.min(l,n),i=Math.max(s,i),r=Math.max(l,r),[s,l]});return(0,A.map)(o,function(o,a){return{cp:o,z:function(e,t,n,i,r,o){e=r===n?0:Math.round(32767*(e-n)/(r-n)),t=o===i?0:Math.round(32767*(t-i)/(o-i));for(var a,s=0,l=32768;l>0;l/=2){var u=0,d=0;(e&l)>0&&(u=1),(t&l)>0&&(d=1),s+=l*l*(3*u^d),0===d&&(1===u&&(e=l-1-e,t=l-1-t),a=e,e=t,t=a)}return s}(o[0],o[1],t,n,i,r),path:e[a]}}).sort(function(e,t){return e.z-t.z}).map(function(e){return e.path})}function dL(e){return function(e,t){var n,i=[],r=e.shape;switch(e.type){case"rect":!function(e,t,n){for(var i=e.width,r=e.height,o=i>r,a=dg([i,r],+!o,t),s=o?"width":"height",l=o?"height":"width",u=o?"x":"y",d=o?"y":"x",c=e[s]/a.length,h=0;h<a.length;h++)for(var p=e[l]/a[h],g=0;g<a[h];g++){var f={};f[u]=h*c,f[d]=g*p,f[s]=c,f[l]=p,f.x+=e.x,f.y+=e.y,n.push(f)}}(r,t,i),n=ev.A;break;case"sector":df(r,t,i),n=ep.A;break;case"circle":df({r0:0,r:r.r,startAngle:0,endAngle:2*Math.PI,cx:r.cx,cy:r.cy},t,i),n=ep.A;break;default:var o=e.getComputedTransform(),a=o?Math.sqrt(Math.max(o[0]*o[0]+o[1]*o[1],o[2]*o[2]+o[3]*o[3])):1,s=(0,A.map)(function(e,t){var n=dp(e),i=[];t=t||1;for(var r=0;r<n.length;r++){var o=n[r],a=[],s=o[0],l=o[1];a.push(s,l);for(var u=2;u<o.length;){var d=o[u++],c=o[u++],h=o[u++],p=o[u++],g=o[u++],f=o[u++];!function e(t,n,i,r,o,a,s,l,u,d){if(dh(t,i)&&dh(n,r)&&dh(o,s)&&dh(a,l))return void u.push(s,l);var c=2/d,h=c*c,p=s-t,g=l-n,f=Math.sqrt(p*p+g*g);p/=f,g/=f;var y=i-t,v=r-n,m=o-s,x=a-l,_=y*y+v*v,b=m*m+x*x;if(_<h&&b<h)return void u.push(s,l);var A=p*y+g*v,S=-p*m-g*x;if(_-A*A<h&&A>=0&&b-S*S<h&&S>=0)return void u.push(s,l);var w=[],M=[];(0,oo.YT)(t,i,o,s,.5,w),(0,oo.YT)(n,r,a,l,.5,M),e(w[0],M[0],w[1],M[1],w[2],M[2],w[3],M[3],u,d),e(w[4],M[4],w[5],M[5],w[6],M[6],w[7],M[7],u,d)}(s,l,d,c,h,p,g,f,a,t),s=g,l=f}i.push(a)}return i}(e.getUpdatedPathProxy(),a),function(e){for(var t=[],n=0;n<e.length;)t.push([e[n++],e[n++]]);return t}),l=s.length;if(0===l)dm(dv,{points:s[0]},t,i);else if(l===t)for(var u=0;u<l;u++)i.push({points:s[u]});else{var d=0,c=(0,A.map)(s,function(e){var t=[],n=[];(0,iB.Cr)(e,t,n);var i=(n[1]-t[1])*(n[0]-t[0]);return d+=i,{poly:e,area:i}});c.sort(function(e,t){return t.area-e.area});for(var h=t,u=0;u<l;u++){var p=c[u];if(h<=0)break;var g=u===l-1?h:Math.ceil(p.area/d*t);g<0||(dm(dv,{points:p.poly},g,i),h-=g)}}n=ef.A}if(!n){for(var f=[],y=0;y<t;y++)f.push((0,nm.rR)(e));return f}for(var v=[],u=0;u<i.length;u++){var m=new n;m.setShape(i[u]),m.setStyle(e.style),m.z=e.z,m.z2=e.z2,m.zlevel=e.zlevel,v.push(m)}return v}(e.path,e.count)}function dD(){return{fromIndividuals:[],toIndividuals:[],count:0}}function dP(e){return(0,A.isArray)(e[0])}function dN(e,t){for(var n=[],i=e.length,r=0;r<i;r++)n.push({one:e[r],many:[]});for(var r=0;r<t.length;r++){var o=t[r].length,a=void 0;for(a=0;a<o;a++)n[a%i].many.push(t[r][a])}for(var s=0,r=i-1;r>=0;r--)if(!n[r].many.length){var l=n[s].many;if(l.length<=1)if(!s)return n;else s=0;var o=l.length,u=Math.ceil(o/2);n[r].many=l.slice(u,o),n[s].many=l.slice(0,u),s++}return n}var dk={clone:function(e){for(var t=[],n=1-Math.pow(1-e.path.style.opacity,1/e.count),i=0;i<e.count;i++){var r=(0,nm.rR)(e.path);r.setStyle("opacity",n),t.push(r)}return t},split:null};function dR(e,t,n,i,r,o){if(e.length&&t.length){var a,s,l=(0,es.Jw)("update",i,r);if(l&&l.duration>0){var u=i.getModel("universalTransition").get("delay"),d=Object.assign({setToFinal:!0},l);dP(e)&&(a=e,s=t),dP(t)&&(a=t,s=e);for(var c=a?a===e:e.length>t.length,h=a?dN(s,a):dN(c?t:e,[c?e:t]),p=0,g=0;g<h.length;g++)p+=h[g].many.length;for(var f=0,g=0;g<h.length;g++)(function e(t,i,r,a,s){var l=t.many,c=t.one;if(1!==l.length||s)for(var h=(0,A.defaults)({dividePath:dk[n],individualDelay:u&&function(e,t,n,i){return u(e+r,a)}},d),p=i?function(e,t,n){var i=[];!function e(t){for(var n=0;n<t.length;n++){var r=t[n];db(r)?e(r.childrenRef()):r instanceof eQ.Ay&&i.push(r)}}(e);var r=i.length;if(!r)return dD();var o=(n.dividePath||dL)({path:t,count:r});if(o.length!==r)return console.error("Invalid morphing: unmatched splitted path"),dD();i=dT(i),o=dT(o);for(var a=n.done,s=n.during,l=n.individualDelay,u=new ez.Ay,d=0;d<r;d++){var c=i[d],h=o[d];h.parent=t,h.copyTransform(u),l||dI(c,h)}function p(e){for(var t=0;t<o.length;t++)o[t].addSelfToZr(e)}function g(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,dw(t,"addSelfToZr"),dw(t,"removeSelfFromZr")}t.__isCombineMorphing=!0,t.childrenRef=function(){return o},dS(t,"addSelfToZr",{after:function(e){p(e)}}),dS(t,"removeSelfFromZr",{after:function(e){for(var t=0;t<o.length;t++)o[t].removeSelfFromZr(e)}});var f=o.length;if(l)for(var y=f,v=function(){0==--y&&(g(),a&&a())},d=0;d<f;d++){var m=l?(0,A.defaults)({delay:(n.delay||0)+l(d,f,i[d],o[d]),done:v},n):n;dC(i[d],o[d],m)}else t.__morphT=0,t.animateTo({__morphT:1},(0,A.defaults)({during:function(e){for(var n=0;n<f;n++){var i=o[n];i.__morphT=t.__morphT,i.dirtyShape()}s&&s(e)},done:function(){g();for(var t=0;t<e.length;t++)dw(e[t],"updateTransform");a&&a()}},n));return t.__zr&&p(t.__zr),{fromIndividuals:i,toIndividuals:o,count:f}}(l,c,h):function(e,t,n){var i=t.length,r=[],o=n.dividePath||dL;if(db(e)){!function e(t){for(var n=0;n<t.length;n++){var i=t[n];db(i)?e(i.childrenRef()):i instanceof eQ.Ay&&r.push(i)}}(e.childrenRef());var a=r.length;if(a<i)for(var s=0,l=a;l<i;l++)r.push((0,nm.rR)(r[s++%a]));r.length=i}else{r=o({path:e,count:i});for(var u=e.getComputedTransform(),l=0;l<r.length;l++)r[l].setLocalTransform(u);if(r.length!==i)return console.error("Invalid morphing: unmatched splitted path"),dD()}r=dT(r),t=dT(t);for(var d=n.individualDelay,l=0;l<i;l++){var c=d?(0,A.defaults)({delay:(n.delay||0)+d(l,i,r[l],t[l])},n):n;dC(r[l],t[l],c)}return{fromIndividuals:r,toIndividuals:t,count:t.length}}(c,l,h),g=p.fromIndividuals,f=p.toIndividuals,y=g.length,v=0;v<y;v++){var m=u?(0,A.defaults)({delay:u(v,y)},d):d;o(g[v],f[v],i?l[v]:t.one,i?t.one:l[v],m)}else{var x=i?l[0]:c,_=i?c:l[0];if(db(x))e({many:[x],one:_},!0,r,a,!0);else{var m=u?(0,A.defaults)({delay:u(r,a)},d):d;dC(x,_,m),o(x,_,x,_,m)}}})(h[g],c,f,p),f+=h[g].many.length}}}function dE(e){if(!e)return[];if((0,A.isArray)(e)){for(var t=[],n=0;n<e.length;n++)t.push(dE(e[n]));return t}var i=[];return e.traverse(function(e){e instanceof eQ.Ay&&!e.disableMorphing&&!e.invisible&&!e.ignore&&i.push(e)}),i}var dV=(0,eV.$r)();function dz(e,t,n,i){var r=function(e,t){for(var n=e.dimensions,i=0;i<n.length;i++){var r=e.getDimensionInfo(n[i]);if(r&&0===r.otherDims[t])return n[i]}}(e,i?"itemChildGroupId":"itemGroupId");if(r){var o=e,a=t,s=r,l=o.getDimensionInfo(s),u=l&&l.ordinalMeta;if(l){var d=o.get(l.name,a);return u&&u.categories[d]||d+""}return}var c=e.getRawDataItem(t),h=i?"childGroupId":"groupId";return c&&c[h]?c[h]+"":i?void 0:n||e.getId(t)}function dO(e){var t=[];return(0,A.each)(e,function(e){var n=e.data,i=e.dataGroupId;if(!(n.count()>1e4))for(var r=n.getIndices(),o=0;o<r.length;o++)t.push({data:n,groupId:dz(n,o,i,!1),childGroupId:dz(n,o,i,!0),divide:e.divide,dataIndex:o})}),t}function dG(e,t,n){e.traverse(function(e){e instanceof eQ.Ay&&(0,es.LW)(e,{style:{opacity:0}},t,{dataIndex:n,isFrom:!0})})}function dB(e){if(e.parent){var t=e.getComputedTransform();e.setLocalTransform(t),e.parent.remove(e)}}function dF(e){e.stopAnimation(),e.isGroup&&e.traverse(function(e){e.stopAnimation()})}function dW(e,t,n){var i=dO(e),r=dO(t);function o(e,t,n,i,r){(n||e)&&t.animateFrom({style:n&&n!==e?(0,A.extend)((0,A.extend)({},n.style),e.style):e.style},r)}var a=!1,s=0,l=(0,A.createHashMap)(),u=(0,A.createHashMap)();i.forEach(function(e){e.groupId&&l.set(e.groupId,!0),e.childGroupId&&u.set(e.childGroupId,!0)});for(var d=0;d<r.length;d++){var c=r[d].groupId;if(u.get(c)){s=1;break}var h=r[d].childGroupId;if(h&&l.get(h)){s=2;break}}function p(e,t){return function(n){var i=n.data,r=n.dataIndex;return t?i.getId(r):e?1===s?n.childGroupId:n.groupId:2===s?n.childGroupId:n.groupId}}var g=function(e,t){var n=e.length;if(n!==t.length)return!1;for(var i=0;i<n;i++){var r=e[i],o=t[i];if(r.data.getId(r.dataIndex)!==o.data.getId(o.dataIndex))return!1}return!0}(i,r),f={};if(!g)for(var d=0;d<r.length;d++){var y=r[d],v=y.data.getItemGraphicEl(y.dataIndex);v&&(f[v.id]=!0)}function m(e,t){var n,s,l=i[t],u=r[e],d=u.data.hostModel,c=l.data.getItemGraphicEl(l.dataIndex),h=u.data.getItemGraphicEl(u.dataIndex);if(c===h){h&&(n=u.dataIndex,(s=(0,es.Jw)("update",d,n))&&h.traverse(function(e){if(e instanceof n5.Ay){var t=(0,es.Xr)(e);t&&e.animateFrom({style:t},s)}}));return}c&&f[c.id]||h&&(dF(h),c?(dF(c),dB(c),a=!0,dR(dE(c),dE(h),u.divide,d,e,o)):dG(h,d,e))}new ru.A(i,r,p(!0,g),p(!1,g),null,"multiple").update(m).updateManyToOne(function(e,t){var n=r[e],s=n.data,l=s.hostModel,u=s.getItemGraphicEl(n.dataIndex),d=(0,A.filter)((0,A.map)(t,function(e){return i[e].data.getItemGraphicEl(i[e].dataIndex)}),function(e){return e&&e!==u&&!f[e.id]});u&&(dF(u),d.length?((0,A.each)(d,function(e){dF(e),dB(e)}),a=!0,dR(dE(d),dE(u),n.divide,l,e,o)):dG(u,l,n.dataIndex))}).updateOneToMany(function(e,t){var n=i[t],s=n.data.getItemGraphicEl(n.dataIndex);if(!s||!f[s.id]){var l=(0,A.filter)((0,A.map)(e,function(e){return r[e].data.getItemGraphicEl(r[e].dataIndex)}),function(e){return e&&e!==s}),u=r[e[0]].data.hostModel;l.length&&((0,A.each)(l,function(e){return dF(e)}),s?(dF(s),dB(s),a=!0,dR(dE(s),dE(l),n.divide,u,e[0],o)):(0,A.each)(l,function(t){return dG(t,u,e[0])}))}}).updateManyToMany(function(e,t){new ru.A(t,e,function(e){return i[e].data.getId(i[e].dataIndex)},function(e){return r[e].data.getId(r[e].dataIndex)}).update(function(n,i){m(e[n],t[i])}).execute()}).execute(),a&&(0,A.each)(t,function(e){var t=e.data.hostModel,i=t&&n.getViewOfSeriesModel(t),r=(0,es.Jw)("update",t,0);i&&t.isAnimationEnabled()&&r&&r.duration>0&&i.group.traverse(function(e){e instanceof eQ.Ay&&!e.animators.length&&e.animateFrom({style:{opacity:0}},r)})})}function dY(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function dH(e){return(0,A.isArray)(e)?e.sort().join(","):e}function dU(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function dX(e,t){for(var n=0;n<e.length;n++)if(null!=t.seriesIndex&&t.seriesIndex===e[n].seriesIndex||null!=t.seriesId&&t.seriesId===e[n].id)return n}(0,h.Y)([e$.a]),(0,h.Y)([function(e){e.registerPainter("svg",tQ)}]),(0,h.Y)([t0.a,t1.a,t2.a,t5.a,function(e){(0,h.Y)(np),e.registerChartView(t7),e.registerSeriesModel(nn),e.registerLayout(t3),e.registerProcessor((0,t4.A)("radar")),e.registerPreprocessor(t8)},function(e){(0,h.Y)(iP),e.registerChartView(iu),e.registerSeriesModel(ic),e.registerLayout(ip),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,ih),(0,ig.I)("map",e.registerAction)},function(e){e.registerChartView(iY),e.registerSeriesModel(rt),e.registerLayout(ri),e.registerVisual(rr),e.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},function(t){var n=e.dataIndex,i=t.getData().tree.getNodeByDataIndex(n);i.isExpand=!i.isExpand})}),e.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(e,t,n){t.eachComponent({mainType:"series",subType:"tree",query:e},function(t){var i=iC(t.coordinateSystem,e,void 0,n);t.setCenter&&t.setCenter(i.center),t.setZoom&&t.setZoom(i.zoom)})})},function(e){e.registerSeriesModel(rl),e.registerChartView(rS),e.registerVisual(rC),e.registerLayout(rG);for(var t=0;t<ro.length;t++)e.registerAction({type:ro[t],update:"updateView"},A.noop);e.registerAction({type:"treemapRootToNode",update:"updateView"},function(e,t){t.eachComponent({mainType:"series",subType:"treemap",query:e},function(t,n){var i=i8(e,["treemapZoomToNode","treemapRootToNode"],t);if(i){var r=t.getViewRoot();r&&(e.direction=i9(r,i.node)?"rollUp":"drillDown"),t.resetViewRoot(i.node)}})})},function(e){e.registerChartView(of),e.registerSeriesModel(ow),e.registerProcessor(rW),e.registerVisual(rY),e.registerVisual(rU),e.registerLayout(r1),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,r9),e.registerLayout(ot),e.registerCoordinateSystem("graphView",{dimensions:iv.dimensions,create:on}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},A.noop),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},A.noop),e.registerAction(oM,function(e,t,n){t.eachComponent({mainType:"series",query:e},function(t){var i=iC(t.coordinateSystem,e,void 0,n);t.setCenter&&t.setCenter(i.center),t.setZoom&&t.setZoom(i.zoom)})})},oI.a,function(e){e.registerChartView(oD),e.registerSeriesModel(oP),e.registerLayout(oN),e.registerProcessor((0,t4.A)("funnel"))},function(e){(0,h.Y)(ai),e.registerChartView(ok),e.registerSeriesModel(oO),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,oF)},function(e){e.registerChartView(aa),e.registerSeriesModel(al),e.registerLayout(au),e.registerVisual(ax),e.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},function(t){t.setNodePosition(e.dataIndex,[e.localX,e.localY])})})},function(e){e.registerSeriesModel(aA),e.registerChartView(aS),e.registerLayout(aL),e.registerTransform(aN)},function(e){e.registerChartView(aE),e.registerSeriesModel(aU),e.registerPreprocessor(aX),e.registerVisual(aK),e.registerLayout(a1)},function(e){e.registerChartView(a4),e.registerSeriesModel(a8),e.registerLayout((0,a6.A)("effectScatter"))},function(e){e.registerChartView(sl),e.registerSeriesModel(sh),e.registerLayout(ss),e.registerVisual(sg)},sf.a,function(e){e.registerChartView(s_),e.registerSeriesModel(sG),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,(0,A.curry)(sB.Zp,"pictorialBar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,(0,sB.KF)("pictorialBar"))},function(e){e.registerChartView(sW),e.registerSeriesModel(sY),e.registerLayout(sH),e.registerProcessor((0,t4.A)("themeRiver"))},function(e){e.registerChartView(s$),e.registerSeriesModel(sJ),e.registerLayout((0,A.curry)(sK,"sunburst")),e.registerProcessor((0,A.curry)(t4.A,"sunburst")),e.registerVisual(s0),e.registerAction({type:sZ,update:"updateView"},function(e,t){t.eachComponent({mainType:"series",subType:"sunburst",query:e},function(t,n){var i=i8(e,[sZ],t);if(i){var r=t.getViewRoot();r&&(e.direction=i9(r,i.node)?"rollUp":"drillDown"),t.resetViewRoot(i.node)}})}),e.registerAction({type:sq,update:"none"},function(e,t,n){e=(0,A.extend)({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},function(t){var n=i8(e,[sq],t);n&&(e.dataIndex=n.node.dataIndex)}),n.dispatchAction((0,A.extend)(e,{type:"highlight"}))}),e.registerAction({type:"sunburstUnhighlight",update:"updateView"},function(e,t,n){e=(0,A.extend)({},e),n.dispatchAction((0,A.extend)(e,{type:"downplay"}))})},s1.a]),(0,h.Y)(s2.a),(0,h.Y)(function(e){(0,h.Y)(s7.a),s5.A.registerAxisPointerClass("PolarAxisPointer",s4),e.registerCoordinateSystem("polar",lc),e.registerComponentModel(s9),e.registerComponentView(lC),(0,o6.A)(e,"angle",lt,lM),(0,o6.A)(e,"radius",ln,lI),e.registerComponentView(ly),e.registerComponentView(l_),e.registerLayout((0,A.curry)(lw,"bar"))}),(0,h.Y)(iP),(0,h.Y)(function(e){(0,h.Y)(s7.a),s5.A.registerAxisPointerClass("SingleAxisPointer",lW),e.registerComponentView(lX),e.registerComponentView(lN),e.registerComponentModel(lR),(0,o6.A)(e,"single",lR,lR.defaultOption),e.registerCoordinateSystem("single",lG)}),(0,h.Y)(ai),(0,h.Y)(function(e){e.registerComponentModel(lj),e.registerComponentView(l$),e.registerCoordinateSystem("calendar",lJ)}),(0,h.Y)(function(e){e.registerComponentModel(l5),e.registerComponentView(l9),e.registerPreprocessor(function(e){var t=e.graphic;(0,A.isArray)(t)?t[0]&&t[0].elements?e.graphic=[e.graphic[0]]:e.graphic=[{elements:t}]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}),(0,h.Y)(ur.a),(0,h.Y)(uo.a),(0,h.Y)(s7.a),(0,h.Y)(function(e){e.registerComponentView(uA),e.registerComponentModel(uS),e.registerPreprocessor(us),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,uv),e.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(e,t){t.eachComponent({mainType:"brush",query:e},function(t){t.setAreas(e.areas)})}),e.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},A.noop),e.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},A.noop),(0,uM.M_)("brush",uC)}),(0,h.Y)(uT.a),(0,h.Y)(function(e){e.registerComponentModel(uP),e.registerComponentView(uO),e.registerSubTypeDefaulter("timeline",function(){return"slider"}),e.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(e,t,n){var i=t.getComponent("timeline");return i&&null!=e.currentIndex&&(i.setCurrentIndex(e.currentIndex),!i.get("loop",!0)&&i.isIndexMax()&&i.getPlayState()&&(i.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:e.from}))),t.resetOption("timeline",{replaceMerge:i.get("replaceMerge",!0)}),(0,A.defaults)({currentIndex:i.option.currentIndex},e)}),e.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(e,t){var n=t.getComponent("timeline");n&&null!=e.playState&&n.setPlayState(e.playState)}),e.registerPreprocessor(uF)}),(0,h.Y)(uH.a),(0,h.Y)(uU.a),(0,h.Y)(uX.a),(0,h.Y)(uj.a),(0,h.Y)(uZ.a),(0,h.Y)(uq.a),(0,h.Y)(u$.a),(0,h.Y)(uJ.a),(0,h.Y)(uQ.a),(0,h.Y)(uK.a),(0,h.Y)(function(e){e.registerPreprocessor(u3),e.registerVisual(e.PRIORITY.VISUAL.ARIA,u5)}),(0,h.Y)(function(e){e.registerTransform(dl),e.registerTransform(du)}),(0,h.Y)(dd.a),(0,h.Y)(function(e){e.registerUpdateLifecycle("series:beforeupdate",function(e,t,n){(0,A.each)((0,eV.qB)(n.seriesTransition),function(e){(0,A.each)((0,eV.qB)(e.to),function(e){for(var t=n.updatedSeries,i=0;i<t.length;i++)(null!=e.seriesIndex&&e.seriesIndex===t[i].seriesIndex||null!=e.seriesId&&e.seriesId===t[i].id)&&(t[i][y.U]=!0)})})}),e.registerUpdateLifecycle("series:transition",function(e,t,n){var i=dV(t);if(i.oldSeries&&n.updatedSeries&&n.optionChanged){var r=n.seriesTransition;if(r)(0,A.each)((0,eV.qB)(r),function(e){var r,o;r=[],o=[],(0,A.each)((0,eV.qB)(e.from),function(e){var t=dX(i.oldSeries,e);t>=0&&r.push({dataGroupId:i.oldDataGroupIds[t],data:i.oldData[t],divide:dU(i.oldData[t]),groupIdDim:e.dimension})}),(0,A.each)((0,eV.qB)(e.to),function(e){var t=dX(n.updatedSeries,e);if(t>=0){var r=n.updatedSeries[t].getData();o.push({dataGroupId:i.oldDataGroupIds[t],data:r,divide:dU(r),groupIdDim:e.dimension})}}),r.length>0&&o.length>0&&dW(r,o,t)});else{var o,a,s,l=(o=(0,A.createHashMap)(),a=(0,A.createHashMap)(),s=(0,A.createHashMap)(),(0,A.each)(i.oldSeries,function(e,t){var n=i.oldDataGroupIds[t],r=i.oldData[t],o=dY(e),l=dH(o);a.set(l,{dataGroupId:n,data:r}),(0,A.isArray)(o)&&(0,A.each)(o,function(e){s.set(e,{key:l,dataGroupId:n,data:r})})}),(0,A.each)(n.updatedSeries,function(e){if(e.isUniversalTransitionEnabled()&&e.isAnimationEnabled()){var t=e.get("dataGroupId"),n=e.getData(),i=dY(e),r=dH(i),l=a.get(r);if(l)o.set(r,{oldSeries:[{dataGroupId:l.dataGroupId,divide:dU(l.data),data:l.data}],newSeries:[{dataGroupId:t,divide:dU(n),data:n}]});else if((0,A.isArray)(i)){var u=[];(0,A.each)(i,function(e){var t=a.get(e);t.data&&u.push({dataGroupId:t.dataGroupId,divide:dU(t.data),data:t.data})}),u.length&&o.set(r,{oldSeries:u,newSeries:[{dataGroupId:t,data:n,divide:dU(n)}]})}else{var d=s.get(i);if(d){var c=o.get(d.key);c||(c={oldSeries:[{dataGroupId:d.dataGroupId,data:d.data,divide:dU(d.data)}],newSeries:[]},o.set(d.key,c)),c.newSeries.push({dataGroupId:t,data:n,divide:dU(n)})}}}}),o);(0,A.each)(l.keys(),function(e){var n=l.get(e);dW(n.oldSeries,n.newSeries,t)})}(0,A.each)(n.updatedSeries,function(e){e[y.U]&&(e[y.U]=!1)})}for(var u=e.getSeries(),d=i.oldSeries=[],c=i.oldDataGroupIds=[],h=i.oldData=[],p=0;p<u.length;p++){var g=u[p].getData();1e4>g.count()&&(d.push(u[p]),c.push(u[p].get("dataGroupId")),h.push(g))}})}),(0,h.Y)(eq)}}]);