添加项目文件。

This commit is contained in:
jl
2023-01-13 15:30:20 +08:00
parent 40ed216831
commit bf208bde56
834 changed files with 470902 additions and 0 deletions

View File

@ -0,0 +1,50 @@
/*
Highcharts JS v7.0.0 (2018-12-11)
(c) 2016-2018 Highsoft AS
Authors: Jon Arild Nygard
License: www.highcharts.com/license
*/
(function(z){"object"===typeof module&&module.exports?module.exports=z:"function"===typeof define&&define.amd?define(function(){return z}):z("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(z){var N=function(){return function(c){var w=this,k=w.graphic,h=c.animatableAttribs,n=c.onComplete,B=c.css,y=c.renderer;w.shouldDraw()?(k||(w.graphic=k=y[c.shapeType](c.shapeArgs).add(c.group)),k.css(B).attr(c.attribs).animate(h,c.isNew?!1:void 0,n)):k&&k.animate(h,void 0,function(){w.graphic=k=k.destroy();
"function"===typeof n&&n()});k&&k.addClass(w.getClassName(),!0)}}(),K=function(c){var w=c.extend,k=c.isArray,h=c.isObject,n=c.isNumber,B=c.merge,y=c.pick;return{getColor:function(t,l){var D=l.index,f=l.mapOptionsToLevel,h=l.parentColor,k=l.parentColorIndex,x=l.series,C=l.colors,w=l.siblings,p=x.points,n=x.chart.options.chart,E,B,a,b;if(t){p=p[t.i];t=f[t.level]||{};if(f=p&&t.colorByPoint)B=p.index%(C?C.length:n.colorCount),E=C&&C[B];if(!x.chart.styledMode){C=p&&p.options.color;n=t&&t.color;if(a=h)a=
(a=t&&t.colorVariation)&&"brightness"===a.key?c.color(h).brighten(D/w*a.to).get():h;a=y(C,n,E,a,x.color)}b=y(p&&p.options.colorIndex,t&&t.colorIndex,B,k,l.colorIndex)}return{color:a,colorIndex:b}},getLevelOptions:function(c){var l=null,D,f,F,t;if(h(c))for(l={},F=n(c.from)?c.from:1,t=c.levels,f={},D=h(c.defaults)?c.defaults:{},k(t)&&(f=t.reduce(function(c,f){var l,p;h(f)&&n(f.level)&&(p=B({},f),l="boolean"===typeof p.levelIsConstant?p.levelIsConstant:D.levelIsConstant,delete p.levelIsConstant,delete p.level,
f=f.level+(l?0:F-1),h(c[f])?w(c[f],p):c[f]=p);return c},{})),t=n(c.to)?c.to:1,c=0;c<=t;c++)l[c]=B({},D,h(f[c])?f[c]:{});return l},setTreeValues:function l(c,f){var h=f.before,n=f.idRoot,x=f.mapIdToNode[n],k=f.points[c.i],D=k&&k.options||{},p=0,B=[];w(c,{levelDynamic:c.level-(("boolean"===typeof f.levelIsConstant?f.levelIsConstant:1)?0:x.level),name:y(k&&k.name,""),visible:n===c.id||("boolean"===typeof f.visible?f.visible:!1)});"function"===typeof h&&(c=h(c,f));c.children.forEach(function(h,k){var a=
w({},f);w(a,{index:k,siblings:c.children.length,visible:c.visible});h=l(h,a);B.push(h);h.visible&&(p+=h.val)});c.visible=0<p||c.visible;h=y(D.value,p);w(c,{children:B,childrenTotal:p,isLeaf:c.visible&&!p,val:h});return c},updateRootId:function(c){var k;h(c)&&(k=h(c.options)?c.options:{},k=y(c.rootNode,k.rootId,""),h(c.userOptions)&&(c.userOptions.rootId=k),c.rootNode=k);return k}}}(z);(function(c,w){var k=c.seriesType,h=c.seriesTypes,n=c.merge,B=c.extend,y=c.noop,t=w.getColor,l=w.getLevelOptions,
D=c.isArray,f=c.isNumber,F=c.isObject,z=c.isString,x=c.pick,C=c.Series,L=c.stableSort,p=c.Color,H=function(a,b,d){d=d||this;c.objectEach(a,function(c,e){b.call(d,c,e,a)})},E=function(a,b,d){d=d||this;a=b.call(d,a);!1!==a&&E(a,b,d)},M=w.updateRootId;k("treemap","scatter",{showInLegend:!1,marker:!1,colorByPoint:!1,dataLabels:{enabled:!0,defer:!1,verticalAlign:"middle",formatter:function(){var a=this&&this.point?this.point:{};return z(a.name)?a.name:""},inside:!0},tooltip:{headerFormat:"",pointFormat:"\x3cb\x3e{point.name}\x3c/b\x3e: {point.value}\x3cbr/\x3e"},
ignoreHiddenPoint:!0,layoutAlgorithm:"sliceAndDice",layoutStartingDirection:"vertical",alternateStartingDirection:!1,levelIsConstant:!0,drillUpButton:{position:{align:"right",x:-10,y:10}},borderColor:"#e6e6e6",borderWidth:1,opacity:.15,states:{hover:{borderColor:"#999999",brightness:h.heatmap?0:.1,halo:!1,opacity:.75,shadow:!1}}},{pointArrayMap:["value"],directTouch:!0,optionalAxis:"colorAxis",getSymbol:y,parallelArrays:["x","y","value","colorValue"],colorKey:"colorValue",trackerGroups:["group","dataLabelsGroup"],
getListOfParents:function(a,b){a=D(a)?a:[];var d=D(b)?b:[];b=a.reduce(function(a,b,d){b=x(b.parent,"");void 0===a[b]&&(a[b]=[]);a[b].push(d);return a},{"":[]});H(b,function(a,b,c){""!==b&&-1===d.indexOf(b)&&(a.forEach(function(a){c[""].push(a)}),delete c[b])});return b},getTree:function(){var a=this.data.map(function(a){return a.id}),a=this.getListOfParents(this.data,a);this.nodeMap=[];return this.buildNode("",-1,0,a,null)},init:function(a,b){var d=c.colorSeriesMixin;c.colorSeriesMixin&&(this.translateColors=
d.translateColors,this.colorAttribs=d.colorAttribs,this.axisTypes=d.axisTypes);C.prototype.init.call(this,a,b);this.options.allowDrillToNode&&c.addEvent(this,"click",this.onClickDrillToNode)},buildNode:function(a,b,d,c,e){var g=this,m=[],v=g.points[b],q=0,I;(c[a]||[]).forEach(function(b){I=g.buildNode(g.points[b].id,b,d+1,c,a);q=Math.max(I.height+1,q);m.push(I)});b={id:a,i:b,children:m,height:q,level:d,parent:e,visible:!1};g.nodeMap[b.id]=b;v&&(v.node=b);return b},setTreeValues:function(a){var b=
this,d=b.options,c=b.nodeMap[b.rootNode],d="boolean"===typeof d.levelIsConstant?d.levelIsConstant:!0,e=0,g=[],m,u=b.points[a.i];a.children.forEach(function(a){a=b.setTreeValues(a);g.push(a);a.ignore||(e+=a.val)});L(g,function(a,b){return a.sortIndex-b.sortIndex});m=x(u&&u.options.value,e);u&&(u.value=m);B(a,{children:g,childrenTotal:e,ignore:!(x(u&&u.visible,!0)&&0<m),isLeaf:a.visible&&!e,levelDynamic:a.level-(d?0:c.level),name:x(u&&u.name,""),sortIndex:x(u&&u.sortIndex,-m),val:m});return a},calculateChildrenAreas:function(a,
b){var d=this,c=d.options,e=d.mapOptionsToLevel[a.level+1],g=x(d[e&&e.layoutAlgorithm]&&e.layoutAlgorithm,c.layoutAlgorithm),m=c.alternateStartingDirection,u=[];a=a.children.filter(function(a){return!a.ignore});e&&e.layoutStartingDirection&&(b.direction="vertical"===e.layoutStartingDirection?0:1);u=d[g](b,a);a.forEach(function(a,c){c=u[c];a.values=n(c,{val:a.childrenTotal,direction:m?1-b.direction:b.direction});a.pointValues=n(c,{x:c.x/d.axisRatio,width:c.width/d.axisRatio});a.children.length&&d.calculateChildrenAreas(a,
a.values)})},setPointValues:function(){var a=this,b=a.xAxis,d=a.yAxis;a.points.forEach(function(c){var e=c.node,g=e.pointValues,m,u,v=0;a.chart.styledMode||(v=(a.pointAttribs(c)["stroke-width"]||0)%2/2);g&&e.visible?(e=Math.round(b.translate(g.x,0,0,0,1))-v,m=Math.round(b.translate(g.x+g.width,0,0,0,1))-v,u=Math.round(d.translate(g.y,0,0,0,1))-v,g=Math.round(d.translate(g.y+g.height,0,0,0,1))-v,c.shapeType="rect",c.shapeArgs={x:Math.min(e,m),y:Math.min(u,g),width:Math.abs(m-e),height:Math.abs(g-u)},
c.plotX=c.shapeArgs.x+c.shapeArgs.width/2,c.plotY=c.shapeArgs.y+c.shapeArgs.height/2):(delete c.plotX,delete c.plotY)})},setColorRecursive:function(a,b,d,c,e){var g=this,m=g&&g.chart,m=m&&m.options&&m.options.colors,v;if(a){v=t(a,{colors:m,index:c,mapOptionsToLevel:g.mapOptionsToLevel,parentColor:b,parentColorIndex:d,series:g,siblings:e});if(b=g.points[a.i])b.color=v.color,b.colorIndex=v.colorIndex;(a.children||[]).forEach(function(b,d){g.setColorRecursive(b,v.color,v.colorIndex,d,a.children.length)})}},
algorithmGroup:function(a,b,d,c){this.height=a;this.width=b;this.plot=c;this.startDirection=this.direction=d;this.lH=this.nH=this.lW=this.nW=this.total=0;this.elArr=[];this.lP={total:0,lH:0,nH:0,lW:0,nW:0,nR:0,lR:0,aspectRatio:function(a,b){return Math.max(a/b,b/a)}};this.addElement=function(a){this.lP.total=this.elArr[this.elArr.length-1];this.total+=a;0===this.direction?(this.lW=this.nW,this.lP.lH=this.lP.total/this.lW,this.lP.lR=this.lP.aspectRatio(this.lW,this.lP.lH),this.nW=this.total/this.height,
this.lP.nH=this.lP.total/this.nW,this.lP.nR=this.lP.aspectRatio(this.nW,this.lP.nH)):(this.lH=this.nH,this.lP.lW=this.lP.total/this.lH,this.lP.lR=this.lP.aspectRatio(this.lP.lW,this.lH),this.nH=this.total/this.width,this.lP.nW=this.lP.total/this.nH,this.lP.nR=this.lP.aspectRatio(this.lP.nW,this.nH));this.elArr.push(a)};this.reset=function(){this.lW=this.nW=0;this.elArr=[];this.total=0}},algorithmCalcPoints:function(a,b,d,c){var e,g,m,v,q=d.lW,f=d.lH,r=d.plot,h,k=0,p=d.elArr.length-1;b?(q=d.nW,f=d.nH):
h=d.elArr[d.elArr.length-1];d.elArr.forEach(function(a){if(b||k<p)0===d.direction?(e=r.x,g=r.y,m=q,v=a/m):(e=r.x,g=r.y,v=f,m=a/v),c.push({x:e,y:g,width:m,height:v}),0===d.direction?r.y+=v:r.x+=m;k+=1});d.reset();0===d.direction?d.width-=q:d.height-=f;r.y=r.parent.y+(r.parent.height-d.height);r.x=r.parent.x+(r.parent.width-d.width);a&&(d.direction=1-d.direction);b||d.addElement(h)},algorithmLowAspectRatio:function(a,b,d){var c=[],e=this,g,m={x:b.x,y:b.y,parent:b},u=0,q=d.length-1,f=new this.algorithmGroup(b.height,
b.width,b.direction,m);d.forEach(function(d){g=d.val/b.val*b.height*b.width;f.addElement(g);f.lP.nR>f.lP.lR&&e.algorithmCalcPoints(a,!1,f,c,m);u===q&&e.algorithmCalcPoints(a,!0,f,c,m);u+=1});return c},algorithmFill:function(a,b,d){var c=[],e,g=b.direction,m=b.x,u=b.y,q=b.width,f=b.height,r,h,k,p;d.forEach(function(d){e=d.val/b.val*b.height*b.width;r=m;h=u;0===g?(p=f,k=e/p,q-=k,m+=k):(k=q,p=e/k,f-=p,u+=p);c.push({x:r,y:h,width:k,height:p});a&&(g=1-g)});return c},strip:function(a,b){return this.algorithmLowAspectRatio(!1,
a,b)},squarified:function(a,b){return this.algorithmLowAspectRatio(!0,a,b)},sliceAndDice:function(a,b){return this.algorithmFill(!0,a,b)},stripes:function(a,b){return this.algorithmFill(!1,a,b)},translate:function(){var a=this,b=a.options,d=M(a),c,e;C.prototype.translate.call(a);e=a.tree=a.getTree();c=a.nodeMap[d];a.mapOptionsToLevel=l({from:c.level+1,levels:b.levels,to:e.height,defaults:{levelIsConstant:a.options.levelIsConstant,colorByPoint:b.colorByPoint}});""===d||c&&c.children.length||(a.drillToNode("",
!1),d=a.rootNode,c=a.nodeMap[d]);E(a.nodeMap[a.rootNode],function(b){var d=!1,c=b.parent;b.visible=!0;if(c||""===c)d=a.nodeMap[c];return d});E(a.nodeMap[a.rootNode].children,function(a){var b=!1;a.forEach(function(a){a.visible=!0;a.children.length&&(b=(b||[]).concat(a.children))});return b});a.setTreeValues(e);a.axisRatio=a.xAxis.len/a.yAxis.len;a.nodeMap[""].pointValues=d={x:0,y:0,width:100,height:100};a.nodeMap[""].values=d=n(d,{width:d.width*a.axisRatio,direction:"vertical"===b.layoutStartingDirection?
0:1,val:e.val});a.calculateChildrenAreas(e,d);a.colorAxis?a.translateColors():b.colorByPoint||a.setColorRecursive(a.tree);b.allowDrillToNode&&(b=c.pointValues,a.xAxis.setExtremes(b.x,b.x+b.width,!1),a.yAxis.setExtremes(b.y,b.y+b.height,!1),a.xAxis.setScale(),a.yAxis.setScale());a.setPointValues()},drawDataLabels:function(){var a=this,b=a.mapOptionsToLevel,d,c;a.points.filter(function(a){return a.node.visible}).forEach(function(e){c=b[e.node.level];d={style:{}};e.node.isLeaf||(d.enabled=!1);c&&c.dataLabels&&
(d=n(d,c.dataLabels),a._hasPointLabels=!0);e.shapeArgs&&(d.style.width=e.shapeArgs.width,e.dataLabel&&e.dataLabel.css({width:e.shapeArgs.width+"px"}));e.dlOptions=n(d,e.options.dataLabels)});C.prototype.drawDataLabels.call(this)},alignDataLabel:function(a){h.column.prototype.alignDataLabel.apply(this,arguments);a.dataLabel&&a.dataLabel.attr({zIndex:(a.node.zIndex||0)+1})},pointAttribs:function(a,b){var d=F(this.mapOptionsToLevel)?this.mapOptionsToLevel:{},c=a&&d[a.node.level]||{},d=this.options,e=
b&&d.states[b]||{},g=a&&a.getClassName()||"";a={stroke:a&&a.borderColor||c.borderColor||e.borderColor||d.borderColor,"stroke-width":x(a&&a.borderWidth,c.borderWidth,e.borderWidth,d.borderWidth),dashstyle:a&&a.borderDashStyle||c.borderDashStyle||e.borderDashStyle||d.borderDashStyle,fill:a&&a.color||this.color};-1!==g.indexOf("highcharts-above-level")?(a.fill="none",a["stroke-width"]=0):-1!==g.indexOf("highcharts-internal-node-interactive")?(b=x(e.opacity,d.opacity),a.fill=p(a.fill).setOpacity(b).get(),
a.cursor="pointer"):-1!==g.indexOf("highcharts-internal-node")?a.fill="none":b&&(a.fill=p(a.fill).brighten(e.brightness).get());return a},drawPoints:function(){var a=this,b=a.points.filter(function(a){return a.node.visible});b.forEach(function(b){var d="level-group-"+b.node.levelDynamic;a[d]||(a[d]=a.chart.renderer.g(d).attr({zIndex:1E3-b.node.levelDynamic}).add(a.group));b.group=a[d]});h.column.prototype.drawPoints.call(this);this.colorAttribs&&a.chart.styledMode&&this.points.forEach(function(a){a.graphic&&
a.graphic.css(this.colorAttribs(a))},this);a.options.allowDrillToNode&&b.forEach(function(b){b.graphic&&(b.drillId=a.options.interactByLeaf?a.drillToByLeaf(b):a.drillToByGroup(b))})},onClickDrillToNode:function(a){var b=(a=a.point)&&a.drillId;z(b)&&(a.setState(""),this.drillToNode(b))},drillToByGroup:function(a){var b=!1;1!==a.node.level-this.nodeMap[this.rootNode].level||a.node.isLeaf||(b=a.id);return b},drillToByLeaf:function(a){var b=!1;if(a.node.parent!==this.rootNode&&a.node.isLeaf)for(a=a.node;!b;)a=
this.nodeMap[a.parent],a.parent===this.rootNode&&(b=a.id);return b},drillUp:function(){var a=this.nodeMap[this.rootNode];a&&z(a.parent)&&this.drillToNode(a.parent)},drillToNode:function(a,b){var c=this.nodeMap[a];this.idPreviousRoot=this.rootNode;this.rootNode=a;""===a?this.drillUpButton=this.drillUpButton.destroy():this.showDrillUpButton(c&&c.name||a);this.isDirty=!0;x(b,!0)&&this.chart.redraw()},showDrillUpButton:function(a){var b=this;a=a||"\x3c Back";var c=b.options.drillUpButton,f,e;c.text&&
(a=c.text);this.drillUpButton?(this.drillUpButton.placed=!1,this.drillUpButton.attr({text:a}).align()):(e=(f=c.theme)&&f.states,this.drillUpButton=this.chart.renderer.button(a,null,null,function(){b.drillUp()},f,e&&e.hover,e&&e.select).addClass("highcharts-drillup-button").attr({align:c.position.align,zIndex:7}).add().align(c.position,!1,c.relativeTo||"plotBox"))},buildKDTree:y,drawLegendSymbol:c.LegendSymbolMixin.drawRectangle,getExtremes:function(){C.prototype.getExtremes.call(this,this.colorValueData);
this.valueMin=this.dataMin;this.valueMax=this.dataMax;C.prototype.getExtremes.call(this)},getExtremesFromAll:!0,bindAxes:function(){var a={endOnTick:!1,gridLineWidth:0,lineWidth:0,min:0,dataMin:0,minPadding:0,max:100,dataMax:100,maxPadding:0,startOnTick:!1,title:null,tickPositions:[]};C.prototype.bindAxes.call(this);c.extend(this.yAxis.options,a);c.extend(this.xAxis.options,a)},utils:{recursive:E}},{getClassName:function(){var a=c.Point.prototype.getClassName.call(this),b=this.series,d=b.options;
this.node.level<=b.nodeMap[b.rootNode].level?a+=" highcharts-above-level":this.node.isLeaf||x(d.interactByLeaf,!d.allowDrillToNode)?this.node.isLeaf||(a+=" highcharts-internal-node"):a+=" highcharts-internal-node-interactive";return a},isValid:function(){return this.id||f(this.value)},setState:function(a){c.Point.prototype.setState.call(this,a);this.graphic&&this.graphic.attr({zIndex:"hover"===a?1:0})},setVisible:h.pie.prototype.pointClass.prototype.setVisible})})(z,K);(function(c,w,k){var h=c.CenteredSeriesMixin,
n=c.Series,B=c.extend,y=h.getCenter,t=k.getColor,l=k.getLevelOptions,D=h.getStartAndEndRadians,f=c.isNumber,z=c.isObject,K=c.isString,x=c.merge,C=180/Math.PI,h=c.seriesType,L=k.setTreeValues,p=k.updateRootId,H=function(a,b){var c=[];if(f(a)&&f(b)&&a<=b)for(;a<=b;a++)c.push(a);return c},E=function(a,b){var c;b=z(b)?b:{};var k=0,e,g,m,u;z(a)&&(c=x({},a),a=f(b.from)?b.from:0,u=f(b.to)?b.to:0,g=H(a,u),a=Object.keys(c).filter(function(a){return-1===g.indexOf(+a)}),e=m=f(b.diffRadius)?b.diffRadius:0,g.forEach(function(a){a=
c[a];var b=a.levelSize.unit,d=a.levelSize.value;"weight"===b?k+=d:"percentage"===b?(a.levelSize={unit:"pixels",value:d/100*e},m-=a.levelSize.value):"pixels"===b&&(m-=d)}),g.forEach(function(a){var b=c[a];"weight"===b.levelSize.unit&&(b=b.levelSize.value,c[a].levelSize={unit:"pixels",value:b/k*m})}),a.forEach(function(a){c[a].levelSize={value:0,unit:"pixels"}}));return c},M=function(a,b){var c=b.mapIdToNode[a.parent],f=b.series,e=f.chart,g=f.points[a.i],c=t(a,{colors:e&&e.options&&e.options.colors,
colorIndex:f.colorIndex,index:b.index,mapOptionsToLevel:b.mapOptionsToLevel,parentColor:c&&c.color,parentColorIndex:c&&c.colorIndex,series:b.series,siblings:b.siblings});a.color=c.color;a.colorIndex=c.colorIndex;g&&(g.color=a.color,g.colorIndex=a.colorIndex,a.sliced=a.id!==b.idRoot?g.sliced:!1);return a};h("sunburst","treemap",{center:["50%","50%"],colorByPoint:!1,dataLabels:{allowOverlap:!0,defer:!0,style:{textOverflow:"ellipsis"},rotationMode:"auto"},rootId:void 0,levelIsConstant:!0,levelSize:{value:1,
unit:"weight"},slicedOffset:10},{drawDataLabels:c.noop,drawPoints:function(){var a=this,b=a.mapOptionsToLevel,c=a.shapeRoot,k=a.group,e=a.hasRendered,g=a.rootNode,m=a.idPreviousRoot,u=a.nodeMap,h=u[m],p=h&&h.shapeArgs,h=a.points,r=a.startAndEndRadians,t=a.chart,l=t&&t.options&&t.options.chart||{},w="boolean"===typeof l.animation?l.animation:!0,y=a.center[3]/2,D=a.chart.renderer,E,F=!1,H=!1;if(l=!!(w&&e&&g!==m&&a.dataLabelsGroup))a.dataLabelsGroup.attr({opacity:0}),E=function(){F=!0;a.dataLabelsGroup&&
a.dataLabelsGroup.animate({opacity:1,visibility:"visible"})};h.forEach(function(d){var h,v,q=d.node,l=b[q.level];h=d.shapeExisting||{};var n=q.shapeArgs||{},I,F=!(!q.visible||!q.shapeArgs);if(e&&w){var J={};v={end:n.end,start:n.start,innerR:n.innerR,r:n.r,x:n.x,y:n.y};F?!d.graphic&&p&&(J=g===d.id?{start:r.start,end:r.end}:p.end<=n.start?{start:r.end,end:r.end}:{start:r.start,end:r.start},J.innerR=J.r=y):d.graphic&&(m===d.id?v={innerR:y,r:y}:c&&(v=c.end<=h.start?{innerR:y,r:y,start:r.end,end:r.end}:
{innerR:y,r:y,start:r.start,end:r.start}));h=J}else v=n,h={};var J=[n.plotX,n.plotY],A;d.node.isLeaf||(g===d.id?(A=u[g],A=A.parent):A=d.id);B(d,{shapeExisting:n,tooltipPos:J,drillId:A,name:""+(d.name||d.id||d.index),plotX:n.plotX,plotY:n.plotY,value:q.val,isNull:!F});A=d.options;q=z(n)?n:{};A=z(A)?A.dataLabels:{};var l=z(l)?l.dataLabels:{},l=x({style:{}},l,A),G;A=l.rotationMode;f(l.rotation)||("auto"===A&&(1>d.innerArcLength&&d.outerArcLength>q.radius?G=0:A=1<d.innerArcLength&&d.outerArcLength>1.5*
q.radius?"parallel":"perpendicular"),"auto"!==A&&(G=q.end-(q.end-q.start)/2),l.style.width="parallel"===A?Math.min(2.5*q.radius,(d.outerArcLength+d.innerArcLength)/2):q.radius,"perpendicular"===A&&d.series.chart.renderer.fontMetrics(l.style.fontSize).h>d.outerArcLength&&(l.style.width=1),l.style.width=Math.max(l.style.width-2*(l.padding||0),1),G=G*C%180,"parallel"===A&&(G-=90),90<G?G-=180:-90>G&&(G+=180),l.rotation=G);0===l.rotation&&(l.rotation=.001);d.dlOptions=l;!H&&F&&(H=!0,I=E);d.draw({animatableAttribs:v,
attribs:B(h,!t.styledMode&&a.pointAttribs(d,d.selected&&"select")),onComplete:I,group:k,renderer:D,shapeType:"arc",shapeArgs:n})});l&&H?(a.hasRendered=!1,a.options.dataLabels.defer=!0,n.prototype.drawDataLabels.call(a),a.hasRendered=!0,F&&E()):n.prototype.drawDataLabels.call(a)},pointAttribs:c.seriesTypes.column.prototype.pointAttribs,layoutAlgorithm:function(a,b,c){var d=a.start,e=a.end-d,g=a.val,m=a.x,h=a.y,k=c&&z(c.levelSize)&&f(c.levelSize.value)?c.levelSize.value:0,l=a.r,n=l+k,p=c&&f(c.slicedOffset)?
c.slicedOffset:0;return(b||[]).reduce(function(a,b){var c=1/g*b.val*e,f=d+c/2,q=m+Math.cos(f)*p,f=h+Math.sin(f)*p;b={x:b.sliced?q:m,y:b.sliced?f:h,innerR:l,r:n,radius:k,start:d,end:d+c};a.push(b);d=b.end;return a},[])},setShapeArgs:function(a,b,c){var d=[],e=c[a.level+1];a=a.children.filter(function(a){return a.visible});d=this.layoutAlgorithm(b,a,e);a.forEach(function(a,b){b=d[b];var e=b.start+(b.end-b.start)/2,f=b.innerR+(b.r-b.innerR)/2,g=b.end-b.start,f=0===b.innerR&&6.28<g?{x:b.x,y:b.y}:{x:b.x+
Math.cos(e)*f,y:b.y+Math.sin(e)*f},h=a.val?a.childrenTotal>a.val?a.childrenTotal:a.val:a.childrenTotal;this.points[a.i]&&(this.points[a.i].innerArcLength=g*b.innerR,this.points[a.i].outerArcLength=g*b.r);a.shapeArgs=x(b,{plotX:f.x,plotY:f.y+4*Math.abs(Math.cos(e))});a.values=x(b,{val:h});a.children.length&&this.setShapeArgs(a,a.values,c)},this)},translate:function(){var a=this.options,b=this.center=y.call(this),c=this.startAndEndRadians=D(a.startAngle,a.endAngle),f=b[3]/2,e=b[2]/2-f,g=p(this),h=this.nodeMap,
k,q=h&&h[g],t,r;this.shapeRoot=q&&q.shapeArgs;n.prototype.translate.call(this);r=this.tree=this.getTree();h=this.nodeMap;q=h[g];k=K(q.parent)?q.parent:"";t=h[k];k=l({from:0<q.level?q.level:1,levels:this.options.levels,to:r.height,defaults:{colorByPoint:a.colorByPoint,dataLabels:a.dataLabels,levelIsConstant:a.levelIsConstant,levelSize:a.levelSize,slicedOffset:a.slicedOffset}});k=E(k,{diffRadius:e,from:0<q.level?q.level:1,to:r.height});L(r,{before:M,idRoot:g,levelIsConstant:a.levelIsConstant,mapOptionsToLevel:k,
mapIdToNode:h,points:this.points,series:this});a=h[""].shapeArgs={end:c.end,r:f,start:c.start,val:q.val,x:b[0],y:b[1]};this.setShapeArgs(t,a,k);this.mapOptionsToLevel=k},animate:function(a){var b=this.chart,c=[b.plotWidth/2,b.plotHeight/2],f=b.plotLeft,e=b.plotTop,b=this.group;a?(a={translateX:c[0]+f,translateY:c[1]+e,scaleX:.001,scaleY:.001,rotation:10,opacity:.01},b.attr(a)):(a={translateX:f,translateY:e,scaleX:1,scaleY:1,rotation:0,opacity:1},b.animate(a,this.options.animation),this.animate=null)},
utils:{calculateLevelSizes:E,range:H}},{draw:w,shouldDraw:function(){return!this.isNull}})})(z,N,K)});
//# sourceMappingURL=sunburst.js.map