!/**
 * Highcharts JS v12.6.0 (2026-04-13)
 * @module highcharts/modules/color-axis
 * @requires highcharts
 *
 * ColorAxis module
 *
 * (c) 2012-2026 Highsoft AS
 * Author: Paweł Potaczek
 *
 * A commercial license may be required depending on use.
 * See www.highcharts.com/license
 */function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(t._Highcharts,t._Highcharts.Axis,t._Highcharts.Color,t._Highcharts.SeriesRegistry):"function"==typeof define&&define.amd?define("highcharts/modules/coloraxis",["highcharts/highcharts"],function(t){return e(t,t.Axis,t.Color,t.SeriesRegistry)}):"object"==typeof exports?exports["highcharts/modules/coloraxis"]=e(t._Highcharts,t._Highcharts.Axis,t._Highcharts.Color,t._Highcharts.SeriesRegistry):t.Highcharts=e(t.Highcharts,t.Highcharts.Axis,t.Highcharts.Color,t.Highcharts.SeriesRegistry)}("u"<typeof window?this:window,function(t,e,o,i){return function(){"use strict";var s,r,n,a,l={512:function(t){t.exports=i},532:function(t){t.exports=e},620:function(t){t.exports=o},944:function(e){e.exports=t}},h={};function c(t){var e=h[t];if(void 0!==e)return e.exports;var o=h[t]={exports:{}};return l[t](o,o.exports,c),o.exports}c.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return c.d(e,{a:e}),e},c.d=function(t,e){for(var o in e)c.o(e,o)&&!c.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},c.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};var p={};c.d(p,{default:function(){return K}});var d=c(944),u=c.n(d),f=c(532),v=c.n(f),g=c(620),y=c.n(g),m=function(t,e,o){if(o||2==arguments.length)for(var i,s=0,r=e.length;s<r;s++)!i&&s in e||(i||(i=Array.prototype.slice.call(e,0,s)),i[s]=e[s]);return t.concat(i||Array.prototype.slice.call(e))},x=u().doc;function b(t,e,o,i){void 0===i&&(i={});var s="function"==typeof t&&t.prototype||t;Object.hasOwnProperty.call(s,"hcEvents")||(s.hcEvents={});var r=s.hcEvents;u().Point&&t instanceof u().Point&&t.series&&t.series.chart&&(t.series.chart.runTrackerClick=!0);var n=t.addEventListener;n&&n.call(t,e,o,!!u().supportsPassiveEvents&&{passive:void 0===i.passive?-1!==e.indexOf("touch"):i.passive,capture:!1}),r[e]||(r[e]=[]);var a={fn:o,order:"number"==typeof i.order?i.order:1/0};return r[e].push(a),r[e].sort(function(t,e){return t.order-e.order}),function(){!function(t,e,o){function i(e,o){var i=t.removeEventListener;i&&i.call(t,e,o,!1)}function s(o){var s,r;t.nodeName&&(e?(s={})[e]=!0:s=o,L(s,function(t,e){if(o[e])for(r=o[e].length;r--;)i(e,o[e][r].fn)}))}var r="function"==typeof t&&t.prototype||t;if(Object.hasOwnProperty.call(r,"hcEvents")){var n=r.hcEvents;if(e){var a=n[e]||[];o?(n[e]=a.filter(function(t){return o!==t.fn}),i(e,o)):(s(n),n[e]=[])}else s(n),delete r.hcEvents}}(t,e,o)}}function C(t,e){var o;for(o in t||(t={}),e)t[o]=e[o];return t}function A(t){return I(t)&&"number"==typeof t.nodeType}function w(t){var e=Object.prototype.toString.call(t);return"[object Array]"===e||"[object Array Iterator]"===e}function I(t,e){return!!t&&"object"==typeof t&&(!e||!w(t))}function E(t){for(var e=[],o=1;o<arguments.length;o++)e[o-1]=arguments[o];var i,s=m([t],e,!0),r={},n=function(t,e){return"object"!=typeof t&&(t={}),L(e,function(o,i){if("__proto__"!==i&&"constructor"!==i){var s;!I(o,!0)||(s=null==o?void 0:o.constructor,I(o,!0)&&!A(o)&&(null==s?void 0:s.name)&&"Object"!==s.name)||A(o)?t[i]=e[i]:t[i]=n(t[i]||{},o)}}),t};!0===t&&(r=s[1],s=Array.prototype.slice.call(s,2));var a=s.length;for(i=0;i<a;i++)r=n(r,s[i]);return r}function L(t,e,o){for(var i in t)Object.hasOwnProperty.call(t,i)&&e.call(o||t[i],t[i],i,t)}function O(){for(var t=arguments,e=t.length,o=0;o<e;o++){var i=t[o];if(null!=i)return i}}function P(t,e,o){return/%$/.test(t)?e*parseFloat(t)/100+(o||0):parseFloat(t)}u().win,Array.prototype.find;var S=y().parse;(s=n||(n={})).initDataClasses=function(t){var e,o,i,s=this.chart,r=this.legendItem=this.legendItem||{},n=this.options,a=t.dataClasses||[],l=s.options.chart.colorCount,h=0;this.dataClasses=o=[],r.labels=[];for(var c=0,p=a.length;c<p;++c)e=E(e=a[c]),o.push(e),(s.styledMode||!e.color)&&("category"===n.dataClassColor?(s.styledMode||(l=(i=s.options.colors||[]).length,e.color=i[h]),e.colorIndex=h,++h===l&&(h=0)):e.color=S(n.minColor).tweenTo(S(n.maxColor),p<2?.5:c/(p-1)))},s.initStops=function(){for(var t=this.options,e=this.stops=t.stops||[[0,t.minColor||""],[1,t.maxColor||""]],o=0,i=e.length;o<i;++o)e[o].color=S(e[o][1])},s.normalizedValue=function(t){var e=this.max||0,o=this.min||0;return this.logarithmic&&(t=this.logarithmic.log2lin(t)),1-(e-t)/(e-o||1)},s.toColor=function(t,e){var o,i,s,r,n,a,l=this.dataClasses,h=this.stops;if(l){for(a=l.length;a--;)if(i=(n=l[a]).from,s=n.to,(void 0===i||t>=i)&&(void 0===s||t<=s)){r=n.color,e&&(e.dataClass=a,e.colorIndex=n.colorIndex);break}}else{for(o=this.normalizedValue(t),a=h.length;a--&&!(o>h[a][0]););i=h[a]||h[a+1],o=1-((s=h[a+1]||i)[0]-o)/(s[0]-i[0]||1),r=i.color.tweenTo(s.color,o)}return r};var T=n,M=y().parse;!function(t){var e;function o(){var t,o=this,i=this.userOptions;this.colorAxis=[],i.colorAxis&&(i.colorAxis=w(t=i.colorAxis)?t:[t],i.colorAxis.map(function(t){return new e(o,t)}))}function i(t){var e,o,i=this,s=this.chart.colorAxis||[],r=function(e){var o=t.allItems.indexOf(e);-1!==o&&(i.destroyItem(t.allItems[o]),t.allItems.splice(o,1))},n=[];for(s.forEach(function(t){(null==(e=t.options)?void 0:e.showInLegend)&&(e.dataClasses&&e.visible?n=n.concat(t.getDataClassLegendSymbols()):e.visible&&n.push(t),t.series.forEach(function(t){(!t.options.showInLegend||e.dataClasses)&&("point"===t.options.legendType?t.points.forEach(function(t){r(t)}):r(t))}))}),o=n.length;o--;)t.allItems.unshift(n[o])}function s(t){t.visible&&t.item.legendColor&&t.item.legendItem.symbol.attr({fill:t.item.legendColor})}function r(t){var e;null==(e=this.chart.colorAxis)||e.forEach(function(e){e.update({},t.redraw)})}function n(){var t;((null==(t=this.chart.colorAxis)?void 0:t.length)||this.colorAttribs)&&this.translateColors()}function a(){var t=this.axisTypes;t?-1===t.indexOf("colorAxis")&&t.push("colorAxis"):this.axisTypes=["colorAxis"]}function l(t){var e=this,o=t?"show":"hide";e.visible=e.options.visible=!!t,["graphic","dataLabel"].forEach(function(t){e[t]&&e[t][o]()}),this.series.buildKDTree()}function h(){var t=this,e=this.getPointsCollection(),o=this.options.nullColor,i=this.colorAxis,s=this.colorKey;e.forEach(function(e){var r=e.getNestedProperty(s),n=e.options.color||(e.isNull||null===e.value?o:i&&void 0!==r?i.toColor(r,e):e.color||t.color);n&&e.color!==n&&(e.color=n,"point"===t.options.legendType&&e.legendItem&&e.legendItem.label&&t.chart.legend.colorizeItem(e,e.visible))})}function c(){this.elem.attr("fill",M(this.start).tweenTo(M(this.end),this.pos),void 0,!0)}function p(){this.elem.attr("stroke",M(this.start).tweenTo(M(this.end),this.pos),void 0,!0)}t.compose=function(t,d,u,f,v){var g,y,m=d.prototype,x=u.prototype,A=v.prototype;m.collectionsWithUpdate.includes("colorAxis")||(e=t,m.collectionsWithUpdate.push("colorAxis"),m.collectionsWithInit.colorAxis=[m.addColorAxis],b(d,"afterCreateAxes",o),y=(g=d).prototype.createAxis,g.prototype.createAxis=function(t,o){if("colorAxis"!==t)return y.apply(this,arguments);var i=new e(this,E(o.axis,{index:this[t].length,isX:!1}));return this.isDirtyLegend=!0,this.axes.forEach(function(t){t.series=[]}),this.series.forEach(function(t){t.bindAxes(),t.isDirtyData=!0}),O(o.redraw,!0)&&this.redraw(o.animation),i},x.fillSetter=c,x.strokeSetter=p,b(f,"afterGetAllItems",i),b(f,"afterColorizeItem",s),b(f,"afterUpdate",r),C(A,{optionalAxis:"colorAxis",translateColors:h}),C(A.pointClass.prototype,{setVisible:l}),b(v,"afterTranslate",n,{order:1}),b(v,"bindAxes",a))},t.pointSetVisible=l}(a||(a={}));var z=a,_=c(512),j=c.n(_),k=(r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),D=u().defaultOptions,H=j().series;D.colorAxis=E(D.xAxis,{lineWidth:0,minPadding:0,maxPadding:0,gridLineColor:"#ffffff",gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:"#999999"},labels:{distance:8,overflow:"justify",rotation:0},minColor:"#e6e9ff",maxColor:"#0022ff",tickLength:5,title:{margin:5},showInLegend:!0});var V=function(t){function e(e,o){var i=t.call(this,e,o)||this;return i.coll="colorAxis",i.visible=!0,i.init(e,o),i}return k(e,t),e.compose=function(t,o,i,s){z.compose(e,t,o,i,s)},e.prototype.init=function(e,o){var i=e.options.legend||{},s=o.layout?"vertical"!==o.layout:"vertical"!==i.layout;this.side=o.side||s?2:1,this.reversed=o.reversed,this.opposite=!s,t.prototype.init.call(this,e,o,"colorAxis"),this.userOptions=o,w(e.userOptions.colorAxis)&&(e.userOptions.colorAxis[this.index]=o),o.dataClasses&&this.initDataClasses(o),this.initStops(),this.horiz=s,this.zoomEnabled=!1},e.prototype.hasData=function(){return!!(this.tickPositions||[]).length},e.prototype.setTickPositions=function(){if(!this.dataClasses)return t.prototype.setTickPositions.call(this)},e.prototype.setOptions=function(e){var o=this.chart.options.legend||{},i=D.colorAxis,s=E("vertical"!==(e.layout||o.layout||i.layout)?{title:{rotation:0}}:{title:{rotation:90,margin:10}},i,e,{showEmpty:!1,visible:this.chart.options.legend.enabled&&!1!==e.visible});t.prototype.setOptions.call(this,s),this.options.crosshair=this.options.marker},e.prototype.setAxisSize=function(){var t,o=this.chart,i=null==(t=this.legendItem)?void 0:t.symbol,s=this.getSize(),r=s.width,n=s.height;i&&(this.left=+i.attr("x"),this.top=+i.attr("y"),this.width=r=+i.attr("width"),this.height=n=+i.attr("height"),this.right=o.chartWidth-this.left-r,this.bottom=o.chartHeight-this.top-n,this.pos=this.horiz?this.left:this.top),this.len=(this.horiz?r:n)||e.defaultLegendLength},e.prototype.getOffset=function(){var o,i=null==(o=this.legendItem)?void 0:o.group,s=this.chart.axisOffset[this.side];if(i){this.axisParent=i,t.prototype.getOffset.call(this);var r=this.chart.legend;r.allItems.forEach(function(t){t instanceof e&&t.drawLegendSymbol(r,t)}),r.render(),this.chart.getMargins(!0),this.added||(this.added=!0),this.labelLeft=0,this.labelRight=this.width,this.chart.axisOffset[this.side]=s}},e.prototype.setLegendColor=function(){var t=this.horiz,e=this.reversed,o=+!!e,i=+!e,s=t?[o,0,i,0]:[0,i,0,o];this.legendColor={linearGradient:{x1:s[0],y1:s[1],x2:s[2],y2:s[3]},stops:this.stops}},e.prototype.drawLegendSymbol=function(t,e){var o,i,s,r,n,a=e.legendItem||{},l=t.padding,h=t.options,c=this.options.labels,p=O(h.itemDistance,10),d=this.horiz,u=this.getSize(),f=u.width,v=u.height,g=O(h.labelPadding,d?16:30);this.setLegendColor();var y=0,m=0;if((null==(o=this.options.title)?void 0:o.text)&&!this.axisTitle){this.axisGroup||(this.axisParent=a.group,this.createGroups());var x=this.len,b=this.top,C=this.left,A=this.width;this.len=d?f:v,this.top=0,this.left=0,this.width=f,this.addTitle(!0),this.len=x,this.top=b,this.left=C,this.width=A}if(this.axisTitle){var w=this.axisTitle.getBBox();y=w.height,m=w.width}var I=this.options.title||{},E=this.axisTitle&&null!=(i=I.margin)?i:0,L=d?y+E:0;a.symbol||(a.symbol=this.chart.renderer.symbol("roundedRect").attr({r:null!=(s=h.symbolRadius)?s:3,zIndex:1}).add(a.group)),a.symbol.attr({x:0,y:(t.baseline||0)-11+L,width:f,height:v}),d?(a.labelWidth=Math.max(f+l+p,m||0),a.labelHeight=v+l+g+y+E):(a.labelWidth=f+l+(null!=(n=null!=(r=c.x)?r:c.distance)?n:0)+(this.maxLabelLength||0)+(m||0)+E,a.labelHeight=Math.max(v+l,y||0))},e.prototype.getTitlePosition=function(e){var o,i,s,r,n=t.prototype.getTitlePosition.call(this,e),a=null!=(i=null==(o=this.options.title)?void 0:o.margin)?i:0;if(this.horiz&&e)n.y=this.top-a;else if(!this.horiz&&e){var l=this.options.labels||{},h=null!=(r=null!=(s=l.x)?s:l.distance)?r:0;n.x=this.left+this.width+h+(this.maxLabelLength||0)+a}return n},e.prototype.setState=function(t){this.series.forEach(function(e){e.setState(t)})},e.prototype.setVisible=function(){},e.prototype.getSeriesExtremes=function(){var t,e,o,i,s=this.series,r=s.length;for(this.dataMin=1/0,this.dataMax=-1/0;r--;){e=(i=s[r]).colorKey=O(i.options.colorKey,i.colorKey,i.pointValKey,i.zoneAxis,"y"),o=i[e+"Min"]&&i[e+"Max"];for(var n,a,l=0,h=[e,"value","y"];l<h.length;l++){var c=h[l];if((t=i.getColumn(c)).length)break}if(o)i.minColorValue=i[e+"Min"],i.maxColorValue=i[e+"Max"];else{var p=H.prototype.getExtremes.call(i,t);i.minColorValue=p.dataMin,i.maxColorValue=p.dataMax}null!=i.minColorValue&&null!=i.maxColorValue&&(this.dataMin=Math.min(this.dataMin,i.minColorValue),this.dataMax=Math.max(this.dataMax,i.maxColorValue)),o||H.prototype.applyExtremes.call(i)}},e.prototype.drawCrosshair=function(e,o){var i,s=this.legendItem||{},r=null==o?void 0:o.plotX,n=null==o?void 0:o.plotY,a=this.pos,l=this.len;o&&((i=this.toPixels(o.getNestedProperty(o.series.colorKey)))<a?i=a-2:i>a+l&&(i=a+l+2),o.plotX=i,o.plotY=this.len-i,t.prototype.drawCrosshair.call(this,e,o),o.plotX=r,o.plotY=n,this.cross&&!this.cross.addedToColorAxis&&s.group&&(this.cross.addClass("highcharts-coloraxis-marker").add(s.group),this.cross.addedToColorAxis=!0,this.chart.styledMode||"object"!=typeof this.crosshair||this.cross.attr({fill:this.crosshair.color})))},e.prototype.getPlotLinePath=function(e){var o=this.left,i=e.translatedValue,s=this.top;return"number"==typeof i&&!isNaN(i)&&i<1/0&&i>-1/0?this.horiz?[["M",i-4,s-6],["L",i+4,s-6],["L",i,s],["Z"]]:[["M",o,i],["L",o-6,i+6],["L",o-6,i-6],["Z"]]:t.prototype.getPlotLinePath.call(this,e)},e.prototype.update=function(e,o){var i,s=this.chart.legend;this.series.forEach(function(t){t.isDirtyData=!0}),(e.dataClasses&&s.allItems||this.dataClasses)&&this.destroyItems(),t.prototype.update.call(this,e,o),(null==(i=this.legendItem)?void 0:i.label)&&(this.setLegendColor(),s.colorizeItem(this,!0))},e.prototype.destroyItems=function(){var t=this.chart,e=this.legendItem||{};if(e.label)t.legend.destroyItem(this);else if(e.labels)for(var o=0,i=e.labels;o<i.length;o++){var s=i[o];t.legend.destroyItem(s)}t.isDirtyLegend=!0},e.prototype.destroy=function(){this.chart.isDirtyLegend=!0,this.destroyItems(),t.prototype.destroy.apply(this,[].slice.call(arguments))},e.prototype.remove=function(e){this.destroyItems(),t.prototype.remove.call(this,e)},e.prototype.getDataClassLegendSymbols=function(){var t,e=this,o=e.chart,i=e.legendItem&&e.legendItem.labels||[],s=o.options.legend,r=O(s.valueDecimals,-1),n=O(s.valueSuffix,""),a=function(t){return e.series.reduce(function(e,o){return e.push.apply(e,o.points.filter(function(e){return e.dataClass===t})),e},[])};return i.length||e.dataClasses.forEach(function(s,l){var h=s.from,c=s.to,p=o.numberFormatter,d=!0;t="",void 0===h?t="< ":void 0===c&&(t="> "),void 0!==h&&(t+=p(h,r)+n),void 0!==h&&void 0!==c&&(t+=" - "),void 0!==c&&(t+=p(c,r)+n),i.push(C({chart:o,name:t,options:{},drawLegendSymbol:H.prototype.drawLegendSymbol,visible:!0,isDataClass:!0,setState:function(t){for(var e=0,o=a(l);e<o.length;e++)o[e].setState(t)},setVisible:function(){this.visible=d=e.visible=!d;for(var t=[],i=0,s=a(l);i<s.length;i++){var r=s[i];r.setVisible(d),r.hiddenInDataClass=!d,-1===t.indexOf(r.series)&&t.push(r.series)}o.legend.colorizeItem(this,d),t.forEach(function(t){!function(t,e,o,i){if(o=o||{},(null==x?void 0:x.createEvent)&&(t.dispatchEvent||t.fireEvent&&t!==u())){var s=x.createEvent("Events");s.initEvent(e,!0,!0),o=C(s,o),t.dispatchEvent?t.dispatchEvent(o):t.fireEvent(e,o)}else if(t.hcEvents){o.target||C(o,{preventDefault:function(){o.defaultPrevented=!0},target:t,type:e});for(var r=[],n=t,a=!1;n.hcEvents;)Object.hasOwnProperty.call(n,"hcEvents")&&n.hcEvents[e]&&(r.length&&(a=!0),r.unshift.apply(r,n.hcEvents[e])),n=Object.getPrototypeOf(n);a&&r.sort(function(t,e){return t.order-e.order}),r.forEach(function(e){!1===e.fn.call(t,o,t)&&o.preventDefault()})}}(t,"afterDataClassLegendClick")})}},s))}),i},e.prototype.getSize=function(){var t=this.chart,o=this.horiz,i=this.options,s=i.height,r=i.width,n=t.options.legend;return{width:O(null!=r?P(r,t.chartWidth):void 0,null==n?void 0:n.symbolWidth,o?e.defaultLegendLength:12),height:O(null!=s?P(s,t.chartHeight):void 0,null==n?void 0:n.symbolHeight,o?12:e.defaultLegendLength)}},e.defaultLegendLength=200,e.keepProps=["legendItem"],e}(v());C(V.prototype,T),Array.prototype.push.apply(v().keepProps,V.keepProps);var W=u();W.ColorAxis=W.ColorAxis||V,W.ColorAxis.compose(W.Chart,W.Fx,W.Legend,W.Series);var K=u();return p.default}()});