Hacked By AnonymousFox

Current Path : C:/AppServ/www/financial/stacked/code/es5/modules/
Upload File :
Current File : C:/AppServ/www/financial/stacked/code/es5/modules/treemap.js

!/**
 * Highcharts JS v12.1.2 (2025-01-09)
 * @module highcharts/modules/treemap
 * @requires highcharts
 *
 * (c) 2014-2024 Highsoft AS
 * Authors: Jon Arild Nygard / Oystein Moseng
 *
 * License: www.highcharts.com/license
 */function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("highcharts"),require("highcharts").Templating,require("highcharts").Color,require("highcharts").SeriesRegistry,require("highcharts").SVGElement):"function"==typeof define&&define.amd?define("highcharts/modules/treemap",[["highcharts/highcharts"],["highcharts/highcharts","Templating"],["highcharts/highcharts","Color"],["highcharts/highcharts","SeriesRegistry"],["highcharts/highcharts","SVGElement"]],e):"object"==typeof exports?exports["highcharts/modules/treemap"]=e(require("highcharts"),require("highcharts").Templating,require("highcharts").Color,require("highcharts").SeriesRegistry,require("highcharts").SVGElement):t.Highcharts=e(t.Highcharts,t.Highcharts.Templating,t.Highcharts.Color,t.Highcharts.SeriesRegistry,t.Highcharts.SVGElement)}(this,function(t,e,i,o,r){return function(){"use strict";var s,n,a,l,h={620:function(t){t.exports=i},28:function(t){t.exports=r},512:function(t){t.exports=o},984:function(t){t.exports=e},944:function(e){e.exports=t}},p={};function d(t){var e=p[t];if(void 0!==e)return e.exports;var i=p[t]={exports:{}};return h[t](i,i.exports,d),i.exports}d.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return d.d(e,{a:e}),e},d.d=function(t,e){for(var i in e)d.o(e,i)&&!d.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},d.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};var u={};d.d(u,{default:function(){return tW}});var c=d(944),v=d.n(c),g={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}},f=d(984),y=d.n(f)().format,m=v().composed,b=v().addEvent,x=v().defined,T=v().extend,w=v().fireEvent,L=v().isString,A=v().merge,B=v().objectEach,P=v().pick,O=v().pushUnique;function S(){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 C(){this.breadcrumbs&&(this.breadcrumbs.destroy(),this.breadcrumbs=void 0)}function M(){var t=this.breadcrumbs;if(t&&!t.options.floating&&t.level){var e=t.options,i=e.buttonTheme,o=(i.height||0)+2*(i.padding||0)+e.buttonSpacing,r=e.position.verticalAlign;"bottom"===r?(this.marginBottom=(this.marginBottom||0)+o,t.yOffset=o):"middle"!==r?(this.plotTop+=o,t.yOffset=-o):t.yOffset=void 0}}function N(){this.breadcrumbs&&this.breadcrumbs.redraw()}function R(t){!0===t.resetSelection&&this.breadcrumbs&&this.breadcrumbs.alignBreadcrumbsGroup()}var I=function(){function t(e,i){this.elementList={},this.isDirty=!0,this.level=0,this.list=[];var o=A(e.options.drilldown&&e.options.drilldown.drillUpButton,t.defaultOptions,e.options.navigation&&e.options.navigation.breadcrumbs,i);this.chart=e,this.options=o||{}}return t.compose=function(t,e){O(m,"Breadcrumbs")&&(b(t,"destroy",C),b(t,"afterShowResetZoom",S),b(t,"getMargins",M),b(t,"redraw",N),b(t,"selection",R),T(e.lang,g.lang))},t.prototype.updateProperties=function(t){this.setList(t),this.setLevel(),this.isDirty=!0},t.prototype.setList=function(t){this.list=t},t.prototype.setLevel=function(){this.level=this.list.length&&this.list.length-1},t.prototype.getLevel=function(){return this.level},t.prototype.getButtonText=function(t){var e=this.chart,i=this.options,o=e.options.lang,r=P(i.format,i.showFullPath?"{level.name}":"← {level.name}"),s=o&&P(o.drillUpText,o.mainBreadcrumb),n=i.formatter&&i.formatter(t)||y(r,{level:t.levelOptions},e)||"";return(L(n)&&!n.length||"← "===n)&&x(s)&&(n=i.showFullPath?s:"← "+s),n},t.prototype.redraw=function(){this.isDirty&&this.render(),this.group&&this.group.align(),this.isDirty=!1},t.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()},t.prototype.renderFullPathButtons=function(){this.destroySingleButton(),this.resetElementListState(),this.updateListElements(),this.destroyListElements()},t.prototype.renderSingleButton=function(){var t=this.chart,e=this.list,i=this.options.buttonSpacing;this.destroyListElements();var o=this.group?this.group.getBBox().width:i,r=e[e.length-2];!t.drillUpButton&&this.level>0?t.drillUpButton=this.renderButton(r,o,i):t.drillUpButton&&(this.level>0?this.updateSingleButton():this.destroySingleButton())},t.prototype.alignBreadcrumbsGroup=function(t){if(this.group){var e=this.options,i=e.buttonTheme,o=e.position,r="chart"===e.relativeTo||"spacingBox"===e.relativeTo?void 0:"plotBox",s=this.group.getBBox(),n=2*(i.padding||0)+e.buttonSpacing;o.width=s.width+n,o.height=s.height+n;var a=A(o);t&&(a.x+=t),this.options.rtl&&(a.x+=o.width),a.y=P(a.y,this.yOffset,0),this.group.align(a,!0,r)}},t.prototype.renderButton=function(t,e,i){var o=this,r=this.chart,s=o.options,n=A(s.buttonTheme),a=r.renderer.button(o.getButtonText(t),e,i,function(e){var i,r=s.events&&s.events.click;r&&(i=r.call(o,e,t)),!1!==i&&(s.showFullPath?e.newLevel=t.level:e.newLevel=o.level-1,w(o,"up",e))},n).addClass("highcharts-breadcrumbs-button").add(o.group);return r.styledMode||a.attr(s.style),a},t.prototype.renderSeparator=function(t,e){var i=this.chart,o=this.options.separator,r=i.renderer.label(o.text,t,e,void 0,void 0,void 0,!1).addClass("highcharts-breadcrumbs-separator").add(this.group);return i.styledMode||r.css(o.style),r},t.prototype.update=function(t){A(!0,this.options,t),this.destroy(),this.isDirty=!0},t.prototype.updateSingleButton=function(){var t=this.chart,e=this.list[this.level-1];t.drillUpButton&&t.drillUpButton.attr({text:this.getButtonText(e)})},t.prototype.destroy=function(){this.destroySingleButton(),this.destroyListElements(!0),this.group&&this.group.destroy(),this.group=void 0},t.prototype.destroyListElements=function(t){var e=this.elementList;B(e,function(i,o){(t||!e[o].updated)&&((i=e[o]).button&&i.button.destroy(),i.separator&&i.separator.destroy(),delete i.button,delete i.separator,delete e[o])}),t&&(this.elementList={})},t.prototype.destroySingleButton=function(){this.chart.drillUpButton&&(this.chart.drillUpButton.destroy(),this.chart.drillUpButton=void 0)},t.prototype.resetElementListState=function(){B(this.elementList,function(t){t.updated=!1})},t.prototype.updateListElements=function(){for(var t,e,i=this.elementList,o=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,i){t.translate(e-t.getBBox().width,i)},h=this.group?a(this.group,o):o,p=0,d=r.length;p<d;++p){var u=p===d-1,c=void 0,v=void 0;i[(e=r[p]).level]?(c=(t=i[e.level]).button,t.separator||u?t.separator&&u&&(t.separator.destroy(),delete t.separator):(h+=n*o,t.separator=this.renderSeparator(h,o),s&&l(t.separator,h,o),h+=a(t.separator,o)),i[e.level].updated=!0):(c=this.renderButton(e,h,o),s&&l(c,h,o),h+=a(c,o),u||(v=this.renderSeparator(h,o),s&&l(v,h,o),h+=a(v,o)),i[e.level]={button:c,separator:v,updated:!0}),c&&c.setState(u?2:0)}},t.defaultOptions=g.options,t}(),G=d(620),D=d.n(G),E=d(512),U=d.n(E),k=d(28),W=d.n(k),H=U().seriesTypes.column.prototype,V=v().addEvent,F=v().defined;!function(t){function e(t){var e=this.series,i=e.chart.renderer;this.moveToTopOnHover&&this.graphic&&(e.stateMarkerGraphic||(e.stateMarkerGraphic=new(W())(i,"use").css({pointerEvents:"none"}).add(this.graphic.parentGroup)),(null==t?void 0:t.state)==="hover"?(this.graphic.attr({id:this.id}),e.stateMarkerGraphic.attr({href:""+i.url+"#".concat(this.id),visibility:"visible"})):e.stateMarkerGraphic.attr({href:""}))}t.pointMembers={dataLabelOnNull:!0,moveToTopOnHover:!0,isValid:function(){return null!==this.value&&this.value!==1/0&&this.value!==-1/0&&(void 0===this.value||!isNaN(this.value))}},t.seriesMembers={colorKey:"value",axisTypes:["xAxis","yAxis","colorAxis"],parallelArrays:["x","y","value"],pointArrayMap:["value"],trackerGroups:["group","markerGroup","dataLabelsGroup"],colorAttribs:function(t){var e={};return F(t.color)&&(!t.state||"normal"===t.state)&&(e[this.colorProp||"fill"]=t.color),e},pointAttribs:H.pointAttribs},t.compose=function(t){return V(t.prototype.pointClass,"afterSetState",e),t}}(a||(a={}));var _=a,j=function(){function t(t,e,i,o){this.height=t,this.width=e,this.plot=o,this.direction=i,this.startDirection=i,this.total=0,this.nW=0,this.lW=0,this.nH=0,this.lH=0,this.elArr=[],this.lP={total:0,lH:0,nH:0,lW:0,nW:0,nR:0,lR:0,aspectRatio:function(t,e){return Math.max(t/e,e/t)}}}return t.prototype.addElement=function(t){this.lP.total=this.elArr[this.elArr.length-1],this.total=this.total+t,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(t)},t.prototype.reset=function(){this.nW=0,this.lW=0,this.elArr=[],this.total=0},t}(),q=function(){function t(){this.childrenTotal=0,this.visible=!1}return t.prototype.init=function(t,e,i,o,r,s,n){return this.id=t,this.i=e,this.children=i,this.height=o,this.level=r,this.series=s,this.parent=n,this},t}(),z=function(){return(z=Object.assign||function(t){for(var e,i=1,o=arguments.length;i<o;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},K=function(t,e){var i=e.animatableAttribs,o=e.onComplete,r=e.css,s=e.renderer,n=t.series&&t.series.chart.hasRendered?void 0:t.series&&t.series.options.animation,a=t.graphic;if(e.attribs=z(z({},e.attribs),{class:t.getClassName()})||{},t.shouldDraw())a||(a="text"===e.shapeType?s.text():"image"===e.shapeType?s.image(e.imageUrl||"").attr(e.shapeArgs||{}):s[e.shapeType](e.shapeArgs||{}),t.graphic=a,a.add(e.group)),r&&a.css(r),a.attr(e.attribs).animate(i,!e.isNew&&n,o);else if(a){var l=function(){t.graphic=a=a&&a.destroy(),"function"==typeof o&&o()};Object.keys(i).length?a.animate(i,void 0,function(){return l()}):l()}},Y=(s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),Z=U().seriesTypes,X=Z.pie.prototype.pointClass,J=Z.scatter.prototype.pointClass,Q=v().extend,$=v().isNumber,tt=v().pick,te=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.groupedPointsAmount=0,e.shapeType="rect",e}return Y(e,t),e.prototype.draw=function(t){K(this,t)},e.prototype.getClassName=function(){var e=this.series,i=e.options,o=t.prototype.getClassName.call(this);return this.node.level<=e.nodeMap[e.rootNode].level&&this.node.children.length?o+=" highcharts-above-level":this.node.isGroup||this.node.isLeaf||e.nodeMap[e.rootNode].isGroup||tt(i.interactByLeaf,!i.allowTraversingTree)?this.node.isGroup||this.node.isLeaf||e.nodeMap[e.rootNode].isGroup||(o+=" highcharts-internal-node"):o+=" highcharts-internal-node-interactive",o},e.prototype.isValid=function(){return!!(this.id||$(this.value))},e.prototype.setState=function(e){t.prototype.setState.apply(this,arguments),this.graphic&&this.graphic.attr({zIndex:"hover"===e?1:0})},e.prototype.shouldDraw=function(){return $(this.plotY)&&null!==this.y},e}(J);Q(te.prototype,{setVisible:X.prototype.setVisible});var ti=v().isString,to={allowTraversingTree:!1,animationLimit:250,borderRadius:0,showInLegend:!1,marker:void 0,colorByPoint:!1,dataLabels:{defer:!1,enabled:!0,formatter:function(){var t=this&&this.point?this.point:{};return ti(t.name)?t.name:""},inside:!0,padding:2,verticalAlign:"middle",style:{textOverflow:"ellipsis"}},tooltip:{headerFormat:"",pointFormat:"<b>{point.name}</b>: {point.value}<br/>",clusterFormat:"+ {point.groupedPointsAmount} more...<br/>"},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:U().seriesTypes.heatmap?0:.1,halo:!1,opacity:.75,shadow:!1}},legendSymbol:"rectangle",traverseToLeaf:!1,cluster:{className:void 0,color:void 0,enabled:!1,pixelWidth:void 0,pixelHeight:void 0,name:void 0,reductionFactor:void 0,minimumClusterSize:5,layoutAlgorithm:{distance:0,gridSize:0,kmeansThreshold:0},marker:{lineWidth:0,radius:0}}};(l||(l={})).recursive=function t(e,i,o){var r=i.call(o||this,e);!1!==r&&t(r,i,o)};var tr=l,ts=(v().extend,v().isArray),tn=v().isNumber,ta=v().isObject,tl=v().merge,th=v().pick,tp=(v().relativeLength,function(t,e){var i,o,r,s,n,a,l,h=e.index,p=e.mapOptionsToLevel,d=e.parentColor,u=e.parentColorIndex,c=e.series,v=e.colors,g=e.siblings,f=c.points,y=c.chart.options.chart;return t&&(o=f[t.i],r=p[t.level]||{},o&&r.colorByPoint&&(n=o.index%(v?v.length:y.colorCount),s=v&&v[n]),c.chart.styledMode||(a=th(o&&o.options.color,r&&r.color,s,d&&((i=r&&r.colorVariation)&&"brightness"===i.key&&h&&g?D().parse(d).brighten(i.to*(h/g)).get():d),c.color)),l=th(o&&o.options.colorIndex,r&&r.colorIndex,n,u,e.colorIndex)),{color:a,colorIndex:l}}),td=function(t){var e,i,o,r,s,n,a={};if(ta(t))for(r=tn(t.from)?t.from:1,n=t.levels,i={},e=ta(t.defaults)?t.defaults:{},ts(n)&&(i=n.reduce(function(t,i){var o,s,n;return ta(i)&&tn(i.level)&&(s=th((n=tl({},i)).levelIsConstant,e.levelIsConstant),delete n.levelIsConstant,delete n.level,ta(t[o=i.level+(s?0:r-1)])?tl(!0,t[o],n):t[o]=n),t},{})),s=tn(t.to)?t.to:1,o=0;o<=s;o++)a[o]=tl({},e,ta(i[o])?i[o]:{});return a},tu=function(t){var e,i;return ta(t)&&(i=ta(t.options)?t.options:{},e=th(t.rootNode,i.rootId,""),ta(t.userOptions)&&(t.userOptions.rootId=e),t.rootNode=e),e},tc=(n=function(t,e){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),tv=D().parse,tg=v().composed,tf=v().noop,ty=U().seriesTypes,tm=ty.column,tb=ty.scatter,tx=v().addEvent,tT=v().correctFloat,tw=v().crisp,tL=v().defined,tA=v().error,tB=v().extend,tP=v().fireEvent,tO=v().isArray,tS=v().isObject,tC=v().isString,tM=v().merge,tN=v().pick,tR=v().pushUnique,tI=v().splat,tG=v().stableSort,tD=!1;function tE(){var t,e=this.xAxis,i=this.yAxis;e&&i&&(this.is("treemap")?(t={endOnTick:!1,gridLineWidth:0,lineWidth:0,min:0,minPadding:0,max:100,maxPadding:0,startOnTick:!1,title:void 0,tickPositions:[]},tB(i.options,t),tB(e.options,t),tD=!0):tD&&(i.setOptions(i.userOptions),e.setOptions(e.userOptions),tD=!1))}var tU=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tc(e,t),e.compose=function(t){tR(tg,"TreemapSeries")&&tx(t,"afterBindAxes",tE)},e.prototype.algorithmCalcPoints=function(t,e,i,o){var r,s,n,a,l,h=i.plot,p=i.elArr.length-1,d=i.lW,u=i.lH,c=0;e?(d=i.nW,u=i.nH):l=i.elArr[p];for(var v=0,g=i.elArr;v<g.length;v++){var f=g[v];(e||c<p)&&(0===i.direction?(r=h.x,s=h.y,a=f/(n=d)):(r=h.x,s=h.y,n=f/(a=u)),o.push({x:r,y:s,width:n,height:tT(a)}),0===i.direction?h.y=h.y+a:h.x=h.x+n),c+=1}i.reset(),0===i.direction?i.width=i.width-d:i.height=i.height-u,h.y=h.parent.y+(h.parent.height-i.height),h.x=h.parent.x+(h.parent.width-i.width),t&&(i.direction=1-i.direction),e||i.addElement(l)},e.prototype.algorithmFill=function(t,e,i){for(var o,r,s,n,a,l=[],h=e.direction,p=e.x,d=e.y,u=e.width,c=e.height,v=0;v<i.length;v++){var g=i[v];o=e.width*e.height*(g.val/e.val),r=p,s=d,0===h?(u-=n=o/(a=c),p+=n):(c-=a=o/(n=u),d+=a),l.push({x:r,y:s,width:n,height:a,direction:0,val:0}),t&&(h=1-h)}return l},e.prototype.algorithmLowAspectRatio=function(t,e,i){for(var o,r=[],s={x:e.x,y:e.y,parent:e},n=e.direction,a=i.length-1,l=new j(e.height,e.width,n,s),h=0,p=0;p<i.length;p++){var d=i[p];o=e.width*e.height*(d.val/e.val),l.addElement(o),l.lP.nR>l.lP.lR&&this.algorithmCalcPoints(t,!1,l,r,s),h===a&&this.algorithmCalcPoints(t,!0,l,r,s),++h}return r},e.prototype.alignDataLabel=function(t,e,i){tm.prototype.alignDataLabel.apply(this,arguments),t.dataLabel&&t.dataLabel.attr({zIndex:(t.node.zIndex||0)+1})},e.prototype.applyTreeGrouping=function(){var t=this,e=t.parentList||{},i=t.options.cluster,o=(null==i?void 0:i.minimumClusterSize)||5;if(null==i?void 0:i.enabled){var r={},s=function(t){var e;if(null===(e=null==t?void 0:t.point)||void 0===e?void 0:e.shapeArgs){var o=t.point.shapeArgs,n=o.width,a=void 0===n?0:n,l=o.height,h=void 0===l?0:l,p=i.pixelWidth,d=void 0===p?0:p,u=i.pixelHeight,c=void 0===u?0:u,v=tL(c),g=c?d*c:d*d;(a<d||h<(v?c:d)||a*h<g)&&!t.isGroup&&tL(t.parent)&&(r[t.parent]||(r[t.parent]=[]),r[t.parent].push(t))}null==t||t.children.forEach(function(t){s(t)})};s(t.tree);var n=function(s){r[s]&&r[s].length>o&&r[s].forEach(function(o){var r=e[s].indexOf(o.i);if(-1!==r){e[s].splice(r,1);var n="highcharts-grouped-treemap-points-".concat(o.parent||"root"),a=t.points.find(function(t){return t.id===n});if(!a){var l=t.pointClass,h=t.points.length;tB(a=new l(t,{className:i.className,color:i.color,id:n,index:h,isGroup:!0,value:0}),{formatPrefix:"cluster"}),t.points.push(a),e[s].push(h),e[n]=[]}var p=a.groupedPointsAmount+1,d=t.points[a.index].options.value||0,u=i.name||"+ ".concat(p);t.points[a.index].groupedPointsAmount=p,t.points[a.index].options.value=d+(o.point.value||0),t.points[a.index].name=u,e[n].push(o.point.index)}})};for(var a in r)n(a);t.nodeMap={},t.nodeList=[],t.parentList=e;var l=t.buildTree("",-1,0,t.parentList);t.translate(l)}},e.prototype.calculateChildrenAreas=function(t,e){var i=this.options,o=this.mapOptionsToLevel[t.level+1],r=tN((null==o?void 0:o.layoutAlgorithm)&&this[null==o?void 0:o.layoutAlgorithm]&&o.layoutAlgorithm,this.options.layoutAlgorithm),s=i.alternateStartingDirection,n=t.children.filter(function(e){return t.isGroup||!e.ignore});if(r){var a=[];o&&o.layoutStartingDirection&&(e.direction="vertical"===o.layoutStartingDirection?0:1),a=this[r](e,n);for(var l=-1,h=0;h<n.length;h++){var p=n[h],d=a[++l];p.values=tM(d,{val:p.childrenTotal,direction:s?1-e.direction:e.direction}),p.pointValues=tM(d,{x:d.x/this.axisRatio,y:100-d.y-d.height,width:d.width/this.axisRatio}),p.children.length&&this.calculateChildrenAreas(p,p.values)}}},e.prototype.createList=function(t){var e=this.chart,i=e.breadcrumbs,o=[];if(i){var r=0;o.push({level:r,levelOptions:e.series[0]});for(var s=t.target.nodeMap[t.newRootId],n=[];s.parent||""===s.parent;)n.push(s),s=t.target.nodeMap[s.parent];for(var a=0,l=n.reverse();a<l.length;a++){var h=l[a];o.push({level:++r,levelOptions:h})}o.length<=1&&(o.length=0)}return o},e.prototype.drawDataLabels=function(){for(var e,i,o,r,s=this.mapOptionsToLevel,n=this.points.filter(function(t){return t.node.visible||tL(t.dataLabel)}),a=null===(e=tI(this.options.dataLabels||{})[0])||void 0===e?void 0:e.padding,l=0;l<n.length;l++){var h=n[l];if(r=s[h.node.level],o={style:{}},(!h.node.isLeaf&&!h.node.isGroup||h.node.isGroup&&h.node.level<=this.nodeMap[this.rootNode].level)&&(o.enabled=!1),r&&r.dataLabels&&(o=tM(o,r.dataLabels),this.hasDataLabels=function(){return!0}),h.shapeArgs){var p={width:(h.shapeArgs.width||0)-2*(o.padding||a||0)+"px",lineClamp:Math.floor((h.shapeArgs.height||0)/16)};tB(o.style,p),null===(i=h.dataLabel)||void 0===i||i.css(p)}h.dlOptions=tM(o,h.options.dataLabels)}t.prototype.drawDataLabels.call(this,n)},e.prototype.drawPoints=function(t){void 0===t&&(t=this.points);for(var e=this.chart,i=e.renderer,o=e.styledMode,r=this.options,s=o?{}:r.shadow,n=r.borderRadius,a=e.pointCount<r.animationLimit,l=r.allowTraversingTree,h=0,p=t;h<p.length;h++){var d=p[h],u=d.node.levelDynamic,c={},v={},g={},f="level-group-"+d.node.level,y=!!d.graphic,m=a&&y,b=d.shapeArgs;d.shouldDraw()&&(d.isInside=!0,n&&(v.r=n),tM(!0,m?c:v,y?b:{},o?{}:this.pointAttribs(d,d.selected?"select":void 0)),this.colorAttribs&&o&&tB(g,this.colorAttribs(d)),this[f]||(this[f]=i.g(f).attr({zIndex:1e3-(u||0)}).add(this.group),this[f].survive=!0)),d.draw({animatableAttribs:c,attribs:v,css:g,group:this[f],imageUrl:d.imageUrl,renderer:i,shadow:s,shapeArgs:b,shapeType:d.shapeType}),l&&d.graphic&&(d.drillId=r.interactByLeaf?this.drillToByLeaf(d):this.drillToByGroup(d))}},e.prototype.drillToByGroup=function(t){var e=!1;return(!t.node.isLeaf||t.node.isGroup)&&t.node.level-this.nodeMap[this.rootNode].level==1&&(e=t.id),e},e.prototype.drillToByLeaf=function(t){var e,i=t.series.options.traverseToLeaf,o=!1;if(t.node.parent!==this.rootNode&&t.node.isLeaf){if(i)o=t.id;else for(e=t.node;!o;)void 0!==e.parent&&(e=this.nodeMap[e.parent]),e.parent===this.rootNode&&(o=e.id)}return o},e.prototype.drillToNode=function(t,e){tA(32,!1,void 0,{"treemap.drillToNode":"use treemap.setRootNode"}),this.setRootNode(t,e)},e.prototype.drillUp=function(){var t=this.nodeMap[this.rootNode];t&&tC(t.parent)&&this.setRootNode(t.parent,!0,{trigger:"traverseUpButton"})},e.prototype.getExtremes=function(){var e=t.prototype.getExtremes.call(this,this.colorValueData),i=e.dataMin,o=e.dataMax;return this.valueMin=i,this.valueMax=o,t.prototype.getExtremes.call(this)},e.prototype.getListOfParents=function(t,e){for(var i=tO(t)?t:[],o=tO(e)?e:[],r=i.reduce(function(t,e,i){var o=tN(e.parent,"");return void 0===t[o]&&(t[o]=[]),t[o].push(i),t},{"":[]}),s=0,n=Object.keys(r);s<n.length;s++){var a=n[s],l=r[a];if(""!==a&&-1===o.indexOf(a)){for(var h=0;h<l.length;h++){var p=l[h];r[""].push(p)}delete r[a]}}return r},e.prototype.getTree=function(){var t=this.data.map(function(t){return t.id});return this.parentList=this.getListOfParents(this.data,t),this.nodeMap={},this.nodeList=[],this.buildTree("",-1,0,this.parentList||{})},e.prototype.buildTree=function(t,e,i,o,r){for(var s,n=[],a=this.points[e],l=0,h=0,p=o[t]||[];h<p.length;h++){var d=p[h];l=Math.max((s=this.buildTree(this.points[d].id,d,i+1,o,t)).height+1,l),n.push(s)}for(var u=new this.NodeClass().init(t,e,n,l,i,this,r),c=0;c<n.length;c++)n[c].parentNode=u;return this.nodeMap[u.id]=u,this.nodeList.push(u),a&&(a.node=u,u.point=a),u},e.prototype.hasData=function(){return!!this.dataTable.rowCount},e.prototype.init=function(e,i){var o=this,r=tM(i.drillUpButton,i.breadcrumbs),s=tx(o,"setOptions",function(t){var e=t.userOptions;tL(e.allowDrillToNode)&&!tL(e.allowTraversingTree)&&(e.allowTraversingTree=e.allowDrillToNode,delete e.allowDrillToNode),tL(e.drillUpButton)&&!tL(e.traverseUpButton)&&(e.traverseUpButton=e.drillUpButton,delete e.drillUpButton)});t.prototype.init.call(this,e,i),delete o.opacity,o.eventsToUnbind.push(s),o.options.allowTraversingTree&&(o.eventsToUnbind.push(tx(o,"click",o.onClickDrillToNode)),o.eventsToUnbind.push(tx(o,"setRootNode",function(t){var e=o.chart;e.breadcrumbs&&e.breadcrumbs.updateProperties(o.createList(t))})),o.eventsToUnbind.push(tx(o,"update",function(t,e){var i=this.chart.breadcrumbs;i&&t.options.breadcrumbs&&i.update(t.options.breadcrumbs)})),o.eventsToUnbind.push(tx(o,"destroy",function(t){var e=this.chart;e.breadcrumbs&&!t.keepEventsForUpdate&&(e.breadcrumbs.destroy(),e.breadcrumbs=void 0)}))),e.breadcrumbs||(e.breadcrumbs=new I(e,r)),o.eventsToUnbind.push(tx(e.breadcrumbs,"up",function(t){for(var e=this.level-t.newLevel,i=0;i<e;i++)o.drillUp()}))},e.prototype.onClickDrillToNode=function(t){var e=t.point,i=e&&e.drillId;tC(i)&&(e.setState(""),this.setRootNode(i,!0,{trigger:"click"}))},e.prototype.pointAttribs=function(t,e){var i,o=tS(this.mapOptionsToLevel)?this.mapOptionsToLevel:{},r=t&&o[t.node.level]||{},s=this.options,n=e&&s.states&&s.states[e]||{},a=t&&t.getClassName()||"",l={stroke:t&&t.borderColor||r.borderColor||n.borderColor||s.borderColor,"stroke-width":tN(t&&t.borderWidth,r.borderWidth,n.borderWidth,s.borderWidth),dashstyle:t&&t.borderDashStyle||r.borderDashStyle||n.borderDashStyle||s.borderDashStyle,fill:t&&t.color||this.color};return -1!==a.indexOf("highcharts-above-level")?(l.fill="none",l["stroke-width"]=0):-1!==a.indexOf("highcharts-internal-node-interactive")?(i=tN(n.opacity,s.opacity),l.fill=tv(l.fill).setOpacity(i).get(),l.cursor="pointer"):-1!==a.indexOf("highcharts-internal-node")?l.fill="none":e&&(l.fill=tv(l.fill).brighten(n.brightness).get()),l},e.prototype.setColorRecursive=function(t,e,i,o,r){var s=this&&this.chart,n=s&&s.options&&s.options.colors;if(t){var a=tp(t,{colors:n,index:o,mapOptionsToLevel:this.mapOptionsToLevel,parentColor:e,parentColorIndex:i,series:this,siblings:r}),l=this.points[t.i];l&&(l.color=a.color,l.colorIndex=a.colorIndex);for(var h=-1,p=0,d=t.children||[];p<d.length;p++){var u=d[p];this.setColorRecursive(u,a.color,a.colorIndex,++h,t.children.length)}}},e.prototype.setPointValues=function(){for(var t=this.points,e=this.xAxis,i=this.yAxis,o=this.chart.styledMode,r=0;r<t.length;r++){var s=t[r],n=s.node,a=n.pointValues,l=n.visible;if(a&&l){var h=a.height,p=a.width,d=a.x,u=a.y,c=o?0:this.pointAttribs(s)["stroke-width"]||0,v=tw(e.toPixels(d,!0),c,!0),g=tw(e.toPixels(d+p,!0),c,!0),f=tw(i.toPixels(u,!0),c,!0),y=tw(i.toPixels(u+h,!0),c,!0),m={x:Math.min(v,g),y:Math.min(f,y),width:Math.abs(g-v),height:Math.abs(y-f)};s.plotX=m.x+m.width/2,s.plotY=m.y+m.height/2,s.shapeArgs=m}else delete s.plotX,delete s.plotY}},e.prototype.setRootNode=function(t,e,i){tP(this,"setRootNode",tB({newRootId:t,previousRootId:this.rootNode,redraw:tN(e,!0),series:this},i),function(t){var e=t.series;e.idPreviousRoot=t.previousRootId,e.rootNode=t.newRootId,e.isDirty=!0,t.redraw&&e.chart.redraw()})},e.prototype.setState=function(e){this.options.inactiveOtherPoints=!0,t.prototype.setState.call(this,e,!1),this.options.inactiveOtherPoints=!1},e.prototype.setTreeValues=function(t){for(var e,i,o,r=this.options,s=this.rootNode,n=this.nodeMap[s],a="boolean"!=typeof r.levelIsConstant||r.levelIsConstant,l=[],h=this.points[t.i],p=0,d=0,u=t.children;d<u.length;d++){var c=u[d];c=this.setTreeValues(c),l.push(c),c.ignore||(p+=c.val)}tG(l,function(t,e){return(t.sortIndex||0)-(e.sortIndex||0)});var v=tN(h&&h.options.value,p);return h&&(h.value=v),(null==h?void 0:h.isGroup)&&(null===(e=r.cluster)||void 0===e?void 0:e.reductionFactor)&&(v/=r.cluster.reductionFactor),(null===(o=null===(i=t.parentNode)||void 0===i?void 0:i.point)||void 0===o?void 0:o.isGroup)&&this.rootNode!==t.parent&&(t.visible=!1),tB(t,{children:l,childrenTotal:p,ignore:!(tN(h&&h.visible,!0)&&v>0),isLeaf:t.visible&&!p,isGroup:null==h?void 0:h.isGroup,levelDynamic:t.level-(a?0:n.level),name:tN(h&&h.name,""),sortIndex:tN(h&&h.sortIndex,-v),val:v}),t},e.prototype.sliceAndDice=function(t,e){return this.algorithmFill(!0,t,e)},e.prototype.squarified=function(t,e){return this.algorithmLowAspectRatio(!0,t,e)},e.prototype.strip=function(t,e){return this.algorithmLowAspectRatio(!1,t,e)},e.prototype.stripes=function(t,e){return this.algorithmFill(!1,t,e)},e.prototype.translate=function(e){var i,o,r,s,n,a=this,l=a.options,h=!e,p=tu(a);e||p.startsWith("highcharts-grouped-treemap-points-")||((this.points||[]).forEach(function(t){t.isGroup&&t.destroy()}),t.prototype.translate.call(this),e=a.getTree()),a.tree=e=e||a.tree,o=a.nodeMap[p],""===p||o||(a.setRootNode("",!1),p=a.rootNode,o=a.nodeMap[p]),(null===(i=o.point)||void 0===i?void 0:i.isGroup)||(a.mapOptionsToLevel=td({from:o.level+1,levels:l.levels,to:e.height,defaults:{levelIsConstant:a.options.levelIsConstant,colorByPoint:l.colorByPoint}})),tr.recursive(a.nodeMap[a.rootNode],function(t){var e=t.parent,i=!1;return t.visible=!0,(e||""===e)&&(i=a.nodeMap[e]),i}),tr.recursive(a.nodeMap[a.rootNode].children,function(t){for(var e=!1,i=0;i<t.length;i++){var o=t[i];o.visible=!0,o.children.length&&(e=(e||[]).concat(o.children))}return e}),a.setTreeValues(e),a.axisRatio=a.xAxis.len/a.yAxis.len,a.nodeMap[""].pointValues=r={x:0,y:0,width:100,height:100},a.nodeMap[""].values=s=tM(r,{width:r.width*a.axisRatio,direction:"vertical"===l.layoutStartingDirection?0:1,val:e.val}),a.calculateChildrenAreas(e,s),a.colorAxis||l.colorByPoint||a.setColorRecursive(a.tree),l.allowTraversingTree&&o.pointValues&&(n=o.pointValues,a.xAxis.setExtremes(n.x,n.x+n.width,!1),a.yAxis.setExtremes(n.y,n.y+n.height,!1),a.xAxis.setScale(),a.yAxis.setScale()),a.setPointValues(),h&&a.applyTreeGrouping()},e.defaultOptions=tM(tb.defaultOptions,to),e}(tb);tB(tU.prototype,{buildKDTree:tf,colorAttribs:_.seriesMembers.colorAttribs,colorKey:"colorValue",directTouch:!0,getExtremesFromAll:!0,getSymbol:tf,optionalAxis:"colorAxis",parallelArrays:["x","y","value","colorValue"],pointArrayMap:["value","colorValue"],pointClass:te,NodeClass:q,trackerGroups:["group","dataLabelsGroup"],utils:tr}),_.compose(tU),U().registerSeriesType("treemap",tU);var tk=v();tk.Breadcrumbs=tk.Breadcrumbs||I,tk.Breadcrumbs.compose(tk.Chart,tk.defaultOptions),tU.compose(tk.Series);var tW=v();return u.default}()});

Hacked By AnonymousFox1.0, Coded By AnonymousFox