/** * Highmaps JS v11.2.0 (2023-10-30) * * Tilemap module * * (c) 2010-2021 Highsoft AS * * 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/tilemap",["highcharts","highcharts/modules/map"],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 n(t,e,n,a){t.hasOwnProperty(e)||(t[e]=a.apply(null,n),"function"==typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:e,module:t[e]}})))}n(e,"Series/Tilemap/TilemapPoint.js",[e["Core/Axis/Color/ColorAxisComposition.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(t,e,n){var a,i=this&&this.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(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 n(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),r=e.series.prototype.pointClass,o=e.seriesTypes.heatmap.prototype.pointClass,s=n.extend,l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.options=void 0,e.radius=void 0,e.series=void 0,e.tileEdges=void 0,e}return i(e,t),e.prototype.haloPath=function(){return this.series.tileShape.haloPath.apply(this,arguments)},e}(o);return s(l.prototype,{setState:r.prototype.setState,setVisible:t.pointSetVisible}),l}),n(e,"Series/Tilemap/TilemapSeriesDefaults.js",[],function(){return{marker:null,states:{hover:{halo:{enabled:!0,size:2,opacity:.5,attributes:{zIndex:3}}}},pointPadding:2,tileShape:"hexagon"}}),n(e,"Series/Tilemap/TilemapShapes.js",[e["Core/Globals.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(t,e,n){var a=t.noop,i=e.seriesTypes,r=i.heatmap,o=i.scatter,s=n.clamp,l=n.pick;function p(t,e,n){var a=t.options;return{xPad:-((a.colsize||1)/e),yPad:-((a.rowsize||1)/n)}}return{hexagon:{alignDataLabel:o.prototype.alignDataLabel,getSeriesPadding:function(t){return p(t,3,2)},haloPath:function(t){if(!t)return[];var e=this.tileEdges;return[["M",e.x2-t,e.y1+t],["L",e.x3+t,e.y1+t],["L",e.x4+1.5*t,e.y2],["L",e.x3+t,e.y3-t],["L",e.x2-t,e.y3-t],["L",e.x1-1.5*t,e.y2],["Z"]]},translate:function(){var t,e=this.options,n=this.xAxis,a=this.yAxis,i=e.pointPadding||0,r=(e.colsize||1)/3,o=(e.rowsize||1)/2;this.generatePoints();for(var p=0,h=this.points;p(e&&e.padding)?t:e},void 0)||{padding:0,axisLengthFactor:1},n=Math.round(e.padding*e.axisLengthFactor);e.padding&&(t.len-=n,t.recomputingForTilemap=!0,t.setAxisTranslation(),delete t.recomputingForTilemap,t.minPixelPadding+=e.padding,t.len+=n)}}var v=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.data=void 0,e.options=void 0,e.points=void 0,e.tileShape=void 0,e}return s(e,t),e.compose=function(t){g(x,t)&&c(t,"afterSetAxisTranslation",m)},e.prototype.alignDataLabel=function(){return this.tileShape.alignDataLabel.apply(this,arguments)},e.prototype.drawPoints=function(){h.prototype.drawPoints.call(this);for(var t=0,e=this.points;t