/** * Highcharts JS v11.2.0 (2023-10-30) * * (c) 2016-2021 Highsoft AS * Authors: Jon Arild Nygard * * License: www.highcharts.com/license */!function(t){"object"==typeof module&&module.exports?(t.default=t,module.exports=t):"function"==typeof define&&define.amd?define("highcharts/modules/sunburst",["highcharts"],function(e){return t(e),t.Highcharts=e,t}):t("undefined"!=typeof Highcharts?Highcharts:void 0)}(function(t){"use strict";var e=t?t._modules:{};function o(t,e,o,i){t.hasOwnProperty(e)||(t[e]=i.apply(null,o),"function"==typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:e,module:t[e]}})))}o(e,"Extensions/Breadcrumbs/BreadcrumbsDefaults.js",[],function(){return{lang:{mainBreadcrumb:"Main"},options:{buttonTheme:{fill:"none",height:18,padding:2,"stroke-width":0,zIndex:7,states:{select:{fill:"none"}},style:{color:"#334eff"}},buttonSpacing:5,floating:!1,format:void 0,relativeTo:"plotBox",rtl:!1,position:{align:"left",verticalAlign:"top",x:0,y:void 0},separator:{text:"/",style:{color:"#666666",fontSize:"0.8em"}},showFullPath:!0,style:{},useHTML:!1,zIndex:7}}}),o(e,"Extensions/Breadcrumbs/Breadcrumbs.js",[e["Extensions/Breadcrumbs/BreadcrumbsDefaults.js"],e["Core/Chart/Chart.js"],e["Core/Templating.js"],e["Core/Utilities.js"]],function(t,e,o,i){var r=o.format,s=i.addEvent,n=i.defined,a=i.extend,l=i.fireEvent,p=i.isString,h=i.merge,d=i.objectEach,u=i.pick,c=[];function v(){if(this.breadcrumbs){var t=this.resetZoomButton&&this.resetZoomButton.getBBox(),e=this.breadcrumbs.options;t&&"right"===e.position.align&&"plotBox"===e.relativeTo&&this.breadcrumbs.alignBreadcrumbsGroup(-t.width-e.buttonSpacing)}}function f(){this.breadcrumbs&&(this.breadcrumbs.destroy(),this.breadcrumbs=void 0)}function g(){var t=this.breadcrumbs;if(t&&!t.options.floating&&t.level){var e=t.options,o=e.buttonTheme,i=(o.height||0)+2*(o.padding||0)+e.buttonSpacing,r=e.position.verticalAlign;"bottom"===r?(this.marginBottom=(this.marginBottom||0)+i,t.yOffset=i):"middle"!==r?(this.plotTop+=i,t.yOffset=-i):t.yOffset=void 0}}function y(){this.breadcrumbs&&this.breadcrumbs.redraw()}function b(t){!0===t.resetSelection&&this.breadcrumbs&&this.breadcrumbs.alignBreadcrumbsGroup()}return function(){function o(t,e){this.elementList={},this.isDirty=!0,this.level=0,this.list=[];var i=h(t.options.drilldown&&t.options.drilldown.drillUpButton,o.defaultOptions,t.options.navigation&&t.options.navigation.breadcrumbs,e);this.chart=t,this.options=i||{}}return o.compose=function(o,r){i.pushUnique(c,o)&&(s(e,"destroy",f),s(e,"afterShowResetZoom",v),s(e,"getMargins",g),s(e,"redraw",y),s(e,"selection",b)),i.pushUnique(c,r)&&a(r.lang,t.lang)},o.prototype.updateProperties=function(t){this.setList(t),this.setLevel(),this.isDirty=!0},o.prototype.setList=function(t){this.list=t},o.prototype.setLevel=function(){this.level=this.list.length&&this.list.length-1},o.prototype.getLevel=function(){return this.level},o.prototype.getButtonText=function(t){var e=this.chart,o=this.options,i=e.options.lang,s=u(o.format,o.showFullPath?"{level.name}":"← {level.name}"),a=i&&u(i.drillUpText,i.mainBreadcrumb),l=o.formatter&&o.formatter(t)||r(s,{level:t.levelOptions},e)||"";return(p(l)&&!l.length||"← "===l)&&n(a)&&(l=o.showFullPath?a:"← "+a),l},o.prototype.redraw=function(){this.isDirty&&this.render(),this.group&&this.group.align(),this.isDirty=!1},o.prototype.render=function(){var t=this.chart,e=this.options;!this.group&&e&&(this.group=t.renderer.g("breadcrumbs-group").addClass("highcharts-no-tooltip highcharts-breadcrumbs").attr({zIndex:e.zIndex}).add()),e.showFullPath?this.renderFullPathButtons():this.renderSingleButton(),this.alignBreadcrumbsGroup()},o.prototype.renderFullPathButtons=function(){this.destroySingleButton(),this.resetElementListState(),this.updateListElements(),this.destroyListElements()},o.prototype.renderSingleButton=function(){var t=this.chart,e=this.list,o=this.options.buttonSpacing;this.destroyListElements();var i=this.group?this.group.getBBox().width:o,r=e[e.length-2];!t.drillUpButton&&this.level>0?t.drillUpButton=this.renderButton(r,i,o):t.drillUpButton&&(this.level>0?this.updateSingleButton():this.destroySingleButton())},o.prototype.alignBreadcrumbsGroup=function(t){if(this.group){var e=this.options,o=e.buttonTheme,i=e.position,r="chart"===e.relativeTo||"spacingBox"===e.relativeTo?void 0:"scrollablePlotBox",s=this.group.getBBox(),n=2*(o.padding||0)+e.buttonSpacing;i.width=s.width+n,i.height=s.height+n;var a=h(i);t&&(a.x+=t),this.options.rtl&&(a.x+=i.width),a.y=u(a.y,this.yOffset,0),this.group.align(a,!0,r)}},o.prototype.renderButton=function(t,e,o){var i=this,r=this.chart,s=i.options,n=h(s.buttonTheme),a=r.renderer.button(i.getButtonText(t),e,o,function(e){var o,r=s.events&&s.events.click;r&&(o=r.call(i,e,t)),!1!==o&&(s.showFullPath?e.newLevel=t.level:e.newLevel=i.level-1,l(i,"up",e))},n).addClass("highcharts-breadcrumbs-button").add(i.group);return r.styledMode||a.attr(s.style),a},o.prototype.renderSeparator=function(t,e){var o=this.chart,i=this.options.separator,r=o.renderer.label(i.text,t,e,void 0,void 0,void 0,!1).addClass("highcharts-breadcrumbs-separator").add(this.group);return o.styledMode||r.css(i.style),r},o.prototype.update=function(t){h(!0,this.options,t),this.destroy(),this.isDirty=!0},o.prototype.updateSingleButton=function(){var t=this.chart,e=this.list[this.level-1];t.drillUpButton&&t.drillUpButton.attr({text:this.getButtonText(e)})},o.prototype.destroy=function(){this.destroySingleButton(),this.destroyListElements(!0),this.group&&this.group.destroy(),this.group=void 0},o.prototype.destroyListElements=function(t){var e=this.elementList;d(e,function(o,i){(t||!e[i].updated)&&((o=e[i]).button&&o.button.destroy(),o.separator&&o.separator.destroy(),delete o.button,delete o.separator,delete e[i])}),t&&(this.elementList={})},o.prototype.destroySingleButton=function(){this.chart.drillUpButton&&(this.chart.drillUpButton.destroy(),this.chart.drillUpButton=void 0)},o.prototype.resetElementListState=function(){d(this.elementList,function(t){t.updated=!1})},o.prototype.updateListElements=function(){for(var t,e,o=this.elementList,i=this.options.buttonSpacing,r=this.list,s=this.options.rtl,n=s?-1:1,a=function(t,e){return n*t.getBBox().width+n*e},l=function(t,e,o){t.translate(e-t.getBBox().width,o)},p=this.group?a(this.group,i):i,h=0,d=r.length;h{point.name}: {point.value}
"},ignoreHiddenPoint:!0,layoutAlgorithm:"sliceAndDice",layoutStartingDirection:"vertical",alternateStartingDirection:!1,levelIsConstant:!0,traverseUpButton:{position:{align:"right",x:-10,y:10}},borderColor:"#e6e6e6",borderWidth:1,colorKey:"colorValue",opacity:.15,states:{hover:{borderColor:"#999999",brightness:t.seriesTypes.heatmap?0:.1,halo:!1,opacity:.75,shadow:!1}},legendSymbol:"rectangle"}}),o(e,"Series/Treemap/TreemapUtilities.js",[e["Core/Utilities.js"]],function(t){var e;return t.objectEach,(e||(e={})).recursive=function t(e,o,i){var r;!1!==(r=o.call(i||this,e))&&t(r,o,i)},e}),o(e,"Series/TreeUtilities.js",[e["Core/Color/Color.js"],e["Core/Utilities.js"]],function(t,e){var o=e.extend,i=e.isArray,r=e.isNumber,s=e.isObject,n=e.merge,a=e.pick;return{getColor:function(e,o){var i,r,s,n,l,p,h,d=o.index,u=o.mapOptionsToLevel,c=o.parentColor,v=o.parentColorIndex,f=o.series,g=o.colors,y=o.siblings,b=f.points,m=f.chart.options.chart;return e&&(r=b[e.i],s=u[e.level]||{},r&&s.colorByPoint&&(l=r.index%(g?g.length:m.colorCount),n=g&&g[l]),f.chart.styledMode||(p=a(r&&r.options.color,s&&s.color,n,c&&((i=s&&s.colorVariation)&&"brightness"===i.key&&d&&y?t.parse(c).brighten(i.to*(d/y)).get():c),f.color)),h=a(r&&r.options.colorIndex,s&&s.colorIndex,l,v,o.colorIndex)),{color:p,colorIndex:h}},getLevelOptions:function(t){var e,o,l,p,h,d,u={};if(s(t))for(p=r(t.from)?t.from:1,d=t.levels,o={},e=s(t.defaults)?t.defaults:{},i(d)&&(o=d.reduce(function(t,o){var i,l,h;return s(o)&&r(o.level)&&(l=a((h=n({},o)).levelIsConstant,e.levelIsConstant),delete h.levelIsConstant,delete h.level,s(t[i=o.level+(l?0:p-1)])?n(!0,t[i],h):t[i]=h),t},{})),h=r(t.to)?t.to:1,l=0;l<=h;l++)u[l]=n({},e,s(o[l])?o[l]:{});return u},setTreeValues:function t(e,i){var r=i.before,s=i.idRoot,n=i.mapIdToNode[s],l=!1!==i.levelIsConstant,p=i.points[e.i],h=p&&p.options||{},d=[],u=0;e.levelDynamic=e.level-(l?0:n.level),e.name=a(p&&p.name,""),e.visible=s===e.id||!0===i.visible,"function"==typeof r&&(e=r(e,i)),e.children.forEach(function(r,s){var n=o({},i);o(n,{index:s,siblings:e.children.length,visible:e.visible}),r=t(r,n),d.push(r),r.visible&&(u+=r.val)});var c=a(h.value,u);return e.visible=c>=0&&(u>0||e.visible),e.children=d,e.childrenTotal=u,e.isLeaf=e.visible&&!u,e.val=c,e},updateRootId:function(t){var e,o;return s(t)&&(o=s(t.options)?t.options:{},e=a(t.rootNode,o.rootId,""),s(t.userOptions)&&(t.userOptions.rootId=e),t.rootNode=e),e}}}),o(e,"Series/Treemap/TreemapSeries.js",[e["Extensions/Breadcrumbs/Breadcrumbs.js"],e["Core/Color/Color.js"],e["Series/ColorMapComposition.js"],e["Core/Globals.js"],e["Core/Series/SeriesRegistry.js"],e["Series/Treemap/TreemapAlgorithmGroup.js"],e["Series/Treemap/TreemapNode.js"],e["Series/Treemap/TreemapPoint.js"],e["Series/Treemap/TreemapSeriesDefaults.js"],e["Series/Treemap/TreemapUtilities.js"],e["Series/TreeUtilities.js"],e["Core/Utilities.js"]],function(t,e,o,i,r,s,n,a,l,p,h,d){var u,c=this&&this.__extends||(u=function(t,e){return(u=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}u(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),v=e.parse,f=i.noop,g=r.seriesTypes,y=g.column,b=g.scatter,m=h.getColor,x=h.getLevelOptions,S=h.updateRootId,T=d.addEvent,w=d.correctFloat,P=d.defined,L=d.error,A=d.extend,C=d.fireEvent,O=d.isArray,R=(d.isNumber,d.isObject),j=d.isString,B=d.merge,I=d.pick,M=d.pushUnique,N=d.stableSort,D=[],U=!1;function _(){var t,e=this.xAxis,o=this.yAxis;e&&o&&(this.is("treemap")?(t={endOnTick:!1,gridLineWidth:0,lineWidth:0,min:0,minPadding:0,max:100,maxPadding:0,startOnTick:!1,title:void 0,tickPositions:[]},A(o.options,t),A(e.options,t),U=!0):U&&(o.setOptions(o.userOptions),e.setOptions(e.userOptions),U=!1))}var E=function(e){function o(){var t=null!==e&&e.apply(this,arguments)||this;return t.axisRatio=void 0,t.data=void 0,t.mapOptionsToLevel=void 0,t.nodeMap=void 0,t.nodeList=void 0,t.options=void 0,t.points=void 0,t.rootNode=void 0,t.tree=void 0,t.level=void 0,t}return c(o,e),o.compose=function(t){M(D,t)&&T(t,"afterBindAxes",_)},o.prototype.algorithmCalcPoints=function(t,e,o,i){var r,s,n,a,l,p=o.plot,h=o.elArr.length-1,d=o.lW,u=o.lH,c=0;e?(d=o.nW,u=o.nH):l=o.elArr[h];for(var v=0,f=o.elArr;vp.lP.lR&&this.algorithmCalcPoints(t,!1,p,r,n),h===l&&this.algorithmCalcPoints(t,!0,p,r,n),++h}return r},o.prototype.alignDataLabel=function(t,e,o){var i=o.style;i&&!P(i.textOverflow)&&e.text&&e.getBBox().width>e.text.textWidth&&e.css({textOverflow:"ellipsis",width:i.width+="px"}),y.prototype.alignDataLabel.apply(this,arguments),t.dataLabel&&t.dataLabel.attr({zIndex:(t.node.zIndex||0)+1})},o.prototype.calculateChildrenAreas=function(t,e){var o=this.options,i=this.mapOptionsToLevel[t.level+1],r=I(this[i&&i.layoutAlgorithm]&&i.layoutAlgorithm,o.layoutAlgorithm),s=o.alternateStartingDirection,n=t.children.filter(function(t){return!t.ignore}),a=[];i&&i.layoutStartingDirection&&(e.direction="vertical"===i.layoutStartingDirection?0:1),a=this[r](e,n);for(var l=-1,p=0;p0),isLeaf:t.visible&&!a,levelDynamic:t.level-(r?0:i.level),name:I(n&&n.name,""),sortIndex:I(n&&n.sortIndex,-d),val:d}),t},o.prototype.sliceAndDice=function(t,e){return this.algorithmFill(!0,t,e)},o.prototype.squarified=function(t,e){return this.algorithmLowAspectRatio(!0,t,e)},o.prototype.strip=function(t,e){return this.algorithmLowAspectRatio(!1,t,e)},o.prototype.stripes=function(t,e){return this.algorithmFill(!1,t,e)},o.prototype.translate=function(){var t,o,i,r,s=this,n=s.options,a=S(s);e.prototype.translate.call(this);var l=s.tree=s.getTree();t=s.nodeMap[a],""===a||t&&t.children.length||(s.setRootNode("",!1),a=s.rootNode,t=s.nodeMap[a]),s.mapOptionsToLevel=x({from:t.level+1,levels:n.levels,to:l.height,defaults:{levelIsConstant:s.options.levelIsConstant,colorByPoint:n.colorByPoint}}),p.recursive(s.nodeMap[s.rootNode],function(t){var e=t.parent,o=!1;return t.visible=!0,(e||""===e)&&(o=s.nodeMap[e]),o}),p.recursive(s.nodeMap[s.rootNode].children,function(t){for(var e=!1,o=0;o-Math.PI||h>Math.PI;return a===-Math.PI/2&&n(p)===n(1.5*Math.PI)&&(a=-Math.PI+Math.PI/360,p=-Math.PI/360,d=!0),p-a>Math.PI&&(d=!1,o=!0,p-a>2*Math.PI-.01&&(a+=.01,p-=.01)),this.dataLabelPath&&(this.dataLabelPath=this.dataLabelPath.destroy()),this.dataLabelPath=i.arc({open:!0,longArc:o?1:0}).attr({start:d?a:p,end:d?p:a,clockwise:+d,x:r.x,y:r.y,r:(s+r.innerR)/2}).add(i.defs),this.dataLabelPath},e.prototype.isValid=function(){return!0},e}(s);return a(p.prototype,{getClassName:r.prototype.getClassName,haloPath:r.prototype.haloPath,setState:r.prototype.setState}),p}),o(e,"Series/Sunburst/SunburstUtilities.js",[e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(t,e){var o=t.seriesTypes.treemap,i=e.isNumber,r=e.isObject,s=e.merge;function n(t,e){var o=[];if(i(t)&&i(e)&&t<=e)for(var r=t;r<=e;r++)o.push(r);return o}return{calculateLevelSizes:function(t,e){var o,a,l,p,h,d=r(e)?e:{},u=0;if(r(t)){o=s({},t),l=n(i(d.from)?d.from:0,i(d.to)?d.to:0),p=Object.keys(o).filter(function(t){return -1===l.indexOf(+t)}),a=h=i(d.diffRadius)?d.diffRadius:0;for(var c=0;c0?e:1,to:e+t.height}},range:n,recursive:o.prototype.utils.recursive}}),o(e,"Series/Sunburst/SunburstNode.js",[e["Series/Treemap/TreemapNode.js"]],function(t){var e,o=this&&this.__extends||(e=function(t,o){return(e=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,o)},function(t,o){if("function"!=typeof o&&null!==o)throw TypeError("Class extends value "+String(o)+" is not a constructor or null");function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)});return function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e}(t)}),o(e,"Series/Sunburst/SunburstSeriesDefaults.js",[],function(){return{center:["50%","50%"],clip:!1,colorByPoint:!1,opacity:1,dataLabels:{allowOverlap:!0,defer:!0,rotationMode:"circular",style:{textOverflow:"ellipsis"}},rootId:void 0,levelIsConstant:!0,levelSize:{value:1,unit:"weight"},slicedOffset:10}}),o(e,"Series/Sunburst/SunburstSeries.js",[e["Series/CenteredUtilities.js"],e["Core/Globals.js"],e["Core/Series/SeriesRegistry.js"],e["Series/Sunburst/SunburstPoint.js"],e["Series/Sunburst/SunburstUtilities.js"],e["Series/TreeUtilities.js"],e["Core/Utilities.js"],e["Series/Sunburst/SunburstNode.js"],e["Series/Sunburst/SunburstSeriesDefaults.js"]],function(t,e,o,i,r,s,n,a,l){var p,h=this&&this.__extends||(p=function(t,e){return(p=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}p(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),d=t.getCenter,u=t.getStartAndEndRadians,c=e.noop,v=o.seriesTypes,f=v.column,g=v.treemap,y=s.getColor,b=s.getLevelOptions,m=s.setTreeValues,x=s.updateRootId,S=n.defined,T=n.error,w=n.extend,P=n.fireEvent,L=n.isNumber,A=n.isObject,C=n.isString,O=n.merge,R=n.splat,j=180/Math.PI,B=function(t,e,o,i){return{x:t+Math.cos(o)*i,y:e+Math.sin(o)*i}};function I(t,e){var o=e.mapIdToNode,i=t.parent,r=i?o[i]:void 0,s=e.series,n=s.chart,a=s.points[t.i],l=y(t,{colors:s.options.colors||n&&n.options.colors,colorIndex:s.colorIndex,index:e.index,mapOptionsToLevel:e.mapOptionsToLevel,parentColor:r&&r.color,parentColorIndex:r&&r.colorIndex,series:e.series,siblings:e.siblings});return t.color=l.color,t.colorIndex=l.colorIndex,a&&(a.color=t.color,a.colorIndex=t.colorIndex,t.sliced=t.id!==e.idRoot&&a.sliced),t}var M=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.center=void 0,e.data=void 0,e.mapOptionsToLevel=void 0,e.nodeMap=void 0,e.options=void 0,e.points=void 0,e.shapeRoot=void 0,e.startAndEndRadians=void 0,e.tree=void 0,e}return h(e,t),e.prototype.alignDataLabel=function(e,o,i){if(!i.textPath||!i.textPath.enabled)return t.prototype.alignDataLabel.call(this,e,o,i)},e.prototype.animate=function(t){var e,o=this.chart,i=[o.plotWidth/2,o.plotHeight/2],r=o.plotLeft,s=o.plotTop,n=this.group;t?(e={translateX:i[0]+r,translateY:i[1]+s,scaleX:.001,scaleY:.001,rotation:10,opacity:.01},n.attr(e)):(e={translateX:r,translateY:s,scaleX:1,scaleY:1,rotation:0,opacity:1},n.animate(e,this.options.animation))},e.prototype.drawPoints=function(){var t,e=this,o=e.mapOptionsToLevel,i=e.shapeRoot,r=e.group,s=e.hasRendered,n=e.rootNode,a=e.idPreviousRoot,l=e.nodeMap,p=l[a],h=p&&p.shapeArgs,d=e.points,u=e.startAndEndRadians,c=e.chart,v=c&&c.options&&c.options.chart||{},g="boolean"!=typeof v.animation||v.animation,y=e.center,b={x:y[0],y:y[1]},m=y[3]/2,x=e.chart.renderer,T=!!(g&&s&&n!==a&&e.dataLabelsGroup),P=!1,C=!1;T&&(e.dataLabelsGroup.attr({opacity:0}),t=function(){P=!0,e.dataLabelsGroup&&e.dataLabelsGroup.animate({opacity:1,visibility:"inherit"})});for(var B=0;Br.radius?(e=0,i.dataLabelPath&&"circular"===a&&(n.textPath={enabled:!0})):i.innerArcLength>1&&i.outerArcLength>1.5*r.radius?"circular"===a?n.textPath={enabled:!0,attributes:{dy:5}}:a="parallel":(i.dataLabel&&i.dataLabel.textPath&&"circular"===a&&(n.textPath={enabled:!1}),a="perpendicular")),"auto"!==a&&"circular"!==a&&(i.dataLabel&&i.dataLabel.textPath&&(n.textPath={enabled:!1}),e=r.end-(r.end-r.start)/2),"parallel"===a?n.style.width=Math.min(2.5*r.radius,(i.outerArcLength+i.innerArcLength)/2):!S(n.style.width)&&r.radius&&(n.style.width=1===i.node.level?2*r.radius:r.radius),"perpendicular"===a&&i.outerArcLength<16&&(n.style.width=1),n.style.width=Math.max(n.style.width-2*(n.padding||0),1),o=e*j%180,"parallel"===a&&(o-=90),o>90?o-=180:o<-90&&(o+=180),n.rotation=o),n.textPath&&(0===i.shapeExisting.innerR&&n.textPath.enabled?(n.rotation=0,n.textPath.enabled=!1,n.style.width=Math.max(2*i.shapeExisting.r-2*(n.padding||0),1)):i.dlOptions&&i.dlOptions.textPath&&!i.dlOptions.textPath.enabled&&"circular"===a&&(n.textPath.enabled=!0),n.textPath.enabled&&(n.rotation=0,n.style.width=Math.max((i.outerArcLength+i.innerArcLength)/2-2*(n.padding||0),1))),0===n.rotation&&(n.rotation=.001),n}({point:I,level:N,optionsPoint:I.options,shapeArgs:U}),!C&&_&&(C=!0,W=t),I.draw({animatableAttribs:E.to,attribs:w(E.from,!c.styledMode&&e.pointAttribs(I,I.selected&&"select")),onComplete:W,group:r,renderer:x,shapeType:"arc",shapeArgs:U})}T&&C?(e.hasRendered=!1,e.options.dataLabels.defer=!0,f.prototype.drawDataLabels.call(e),e.hasRendered=!0,P&&t()):f.prototype.drawDataLabels.call(e),e.idPreviousRoot=n},e.prototype.layoutAlgorithm=function(t,e,o){var i=t.start,r=t.end-i,s=t.val,n=t.x,a=t.y,l=o&&A(o.levelSize)&&L(o.levelSize.value)?o.levelSize.value:0,p=t.r,h=p+l,d=o&&L(o.slicedOffset)?o.slicedOffset:0;return(e||[]).reduce(function(t,e){var o=1/s*e.val*r,u=B(n,a,i+o/2,d),c={x:e.sliced?u.x:n,y:e.sliced?u.y:a,innerR:p,r:h,radius:l,start:i,end:i+o};return t.push(c),i=c.end,t},[])},e.prototype.setRootNode=function(e,o,i){if(1===this.nodeMap[e].level&&1===this.nodeList.filter(function(t){return 1===t.level}).length){if(""===this.idPreviousRoot)return;e=""}t.prototype.setRootNode.call(this,e,o,i)},e.prototype.setShapeArgs=function(t,e,o){var i=o[t.level+1],r=t.children.filter(function(t){return t.visible}),s=[];s=this.layoutAlgorithm(e,r,i);for(var n=-1,a=0;a6.28?{x:p.x,y:p.y}:B(p.x,p.y,h,d),v=l.val?l.childrenTotal>l.val?l.childrenTotal:l.val:l.childrenTotal;this.points[l.i]&&(this.points[l.i].innerArcLength=u*p.innerR,this.points[l.i].outerArcLength=u*p.r),l.shapeArgs=O(p,{plotX:c.x,plotY:c.y+4*Math.abs(Math.cos(h))}),l.values=O(p,{val:v}),l.children.length&&this.setShapeArgs(l,l.values,o)}},e.prototype.translate=function(){var t,e=this.options,o=this.center=this.getCenter(),i=this.startAndEndRadians=u(e.startAngle,e.endAngle),s=o[3]/2,n=o[2]/2-s,a=x(this),l=this.nodeMap,p=l&&l[a],h={};this.shapeRoot=p&&p.shapeArgs,this.processedXData||this.processData(),this.generatePoints(),P(this,"afterTranslate");var d=this.tree=this.getTree(),c=C((p=(l=this.nodeMap)[a]).parent)?p.parent:"",v=l[c],f=r.getLevelFromAndTo(p),g=f.from,y=f.to;t=b({from:g,levels:this.options.levels,to:y,defaults:{colorByPoint:e.colorByPoint,dataLabels:e.dataLabels,levelIsConstant:e.levelIsConstant,levelSize:e.levelSize,slicedOffset:e.slicedOffset}}),t=r.calculateLevelSizes(t,{diffRadius:n,from:g,to:y}),m(d,{before:I,idRoot:a,levelIsConstant:e.levelIsConstant,mapOptionsToLevel:t,mapIdToNode:l,points:this.points,series:this});var S=l[""].shapeArgs={end:i.end,r:s,start:i.start,val:p.val,x:o[0],y:o[1]};this.setShapeArgs(v,S,t),this.mapOptionsToLevel=t;for(var w=0,L=this.data;w