!/**
 * Highcharts JS v13.0.0 (2026-06-11)
 * @module highcharts/modules/mouse-wheel-zoom
 * @requires highcharts
 *
 * Non-cartesian series zoom module
 *
 * (c) 2024-2026 Highsoft AS
 * Author: Hubert Kozik
 *
 * A commercial license may be required depending on use,
 * see www.highcharts.com/license
 */function(t,o){"object"==typeof exports&&"object"==typeof module?module.exports=o(t._Highcharts):"function"==typeof define&&define.amd?define("highcharts/modules/non-cartesian-zoom",["highcharts/highcharts"],function(t){return o(t)}):"object"==typeof exports?exports["highcharts/modules/non-cartesian-zoom"]=o(t._Highcharts):t.Highcharts=o(t.Highcharts)}("u"<typeof window?this:window,function(t){return function(){"use strict";var o={944:function(o){o.exports=t}},e={};function i(t){var n=e[t];if(void 0!==n)return n.exports;var a=e[t]={exports:{}};return o[t](a,a.exports,i),a.exports}i.n=function(t){var o=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(o,{a:o}),o},i.d=function(t,o){for(var e in o)i.o(o,e)&&!i.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:o[e]})},i.o=function(t,o){return Object.prototype.hasOwnProperty.call(t,o)};var n={};i.d(n,{default:function(){return g}});var a=i(944),r=i.n(a),s=r().composed;function h(t){var o=this,e=t.trigger,i=t.selection,n=t.reset,a=t.from,r=void 0===a?{}:a,s=t.to,h=void 0===s?{}:s;"xy"===o.zooming.type&&("mousewheel"===e||"pan"===e||i||n)&&o.series.forEach(function(i){var n,a,s,l,p;if(!i.isCartesian&&!1!==i.options.zoomEnabled){i.isDirty=!0,o.isDirtyBox=!0,t.hasZoomed=!0;var c=o.plotWidth,d=void 0===c?0:c,u=o.plotHeight,f=void 0===u?0:u;if("pan"===e&&i.zooming)i.zooming.panX-=(h.x||0)/d,i.zooming.panY-=(h.y||0)/f;else if(Object.keys(r).length){var m=h.width,g=h.height,v=Math.abs((null==(n=i.group)?void 0:n.scaleX)||1),z=r.x,x=void 0===z?0:z,y=r.y,b=void 0===y?0:y,X=r.width,Y=void 0===X?1:X,w=r.height,C=void 0===w?1:w,L=x,E=b,M=(null==(a=i.zooming)?void 0:a.scale)||(null==(s=i.group)?void 0:s.scaleX)||1,S=((null==(l=i.zooming)?void 0:l.width)||1)*d,j=((null==(p=i.zooming)?void 0:p.height)||1)*f;if(Object.keys(h).length)S=Y/(void 0===m?1:m)*S,j=Y/(void 0===g?1:g)*j,x-=o.plotLeft,b-=o.plotTop,L=x-S/2,E=b-j/2,M=Math.min(d/S,f/j);else{Y/=v,C/=v,M=Math.min(d/Y,f/C);var B=0,P=0;i.zooming&&(B=i.zooming.x*d,P=i.zooming.y*f);var T=(x-o.plotLeft)/(d-Y*v||1),G=(b-o.plotTop)/(f-C*v||1);S=Y,j=C,x-=o.plotLeft,b-=o.plotTop,x/=v,b/=v,x+=B+Y*T,b+=P+C*G,L-=o.plotLeft,E-=o.plotTop,L/=v,E/=v,L+=B,E+=P}i.zooming={x:L/d,y:E/f,zoomX:x/d,zoomY:b/f,width:S/d,height:j/f,scale:M,panX:0,panY:0},M<1&&delete i.zooming}else delete i.zooming}})}function l(t){var o,e=this.chart,i=this.group,n=this.zooming,a=e.plotSizeX,r=void 0===a?0:a,s=e.plotSizeY,h=void 0===s?0:s,l=t.scale,p=t.translateX,c=t.translateY,d=t.name,u=0,f=0,m=p,g=c;e.inverted&&(r=(o=[h,r])[0],h=o[1]),i&&n&&(l=n.scale,u=n.zoomX*r*(l-Math.abs(i.scaleX||1)),f=n.zoomY*h*(l-Math.abs(i.scaleY||1)),"series"===d&&(n.x=Math.max(0,Math.min(1-n.width,n.x+n.panX/l)),u+=n.panX*r,n.panX=0,n.y=Math.max(0,Math.min(1-n.height,n.y+n.panY/l)),f+=n.panY*h,n.panY=0),p=(i.translateX||m)-u,(c=(i.translateY||g)-f)>g?c=g:(i.translateY||g)-f<h*(1-l)+g&&(c=h*(1-l)+g),p>m?p=m:p<r*(1-l)+m&&(p=r*(1-l)+m),t.scale=l,t.translateX=p,t.translateY=c)}function p(){var t,o;this.series.find(function(t){return!!t.zooming})&&(this.zoomClipRect||(this.zoomClipRect=this.renderer.clipRect()),this.zoomClipRect.attr({x:this.plotLeft,y:this.plotTop,width:this.inverted?this.clipBox.height:this.clipBox.width,height:this.inverted?this.clipBox.width:this.clipBox.height}),o=this.zoomClipRect),null==(t=this.seriesGroup)||t.clip(o),this.series.forEach(function(t){var e;null==(e=t.dataLabelsParentGroups)||e.forEach(function(t){t.clip(o)})})}function c(t){if(t.point.series&&!t.point.series.isCartesian&&t.point.series.group&&t.point.series.zooming){var o=t.point.series.chart,e=t.point.series.zooming.scale,i=t.point.series.group.translateX||0,n=t.point.series.group.translateY||0;t.ret[0]=t.ret[0]*e+i-o.plotLeft,t.ret[1]=t.ret[1]*e+n-o.plotTop}}function d(t){t.skipAxes&&this.series.forEach(function(t){t.group&&t.zooming&&t.group.attr({translateX:0,translateY:0,scaleX:1,scaleY:1})})}function u(t){var o,e,i=t.index,n=t.zIndex;(null==(o=this.hasDataLabels)?void 0:o.call(this))&&(this.dataLabelsParentGroups||(this.dataLabelsParentGroups=[]),(e=this.dataLabelsParentGroups)[i]||(e[i]=this.chart.renderer.g().attr({zIndex:void 0===n?6:n}).add()))}var f=function(){function t(){}return t.compose=function(t,o,e){(0,a.pushUnique)(s,"NonCartesianSeriesZoom")&&((0,a.addEvent)(t,"afterDrawChartBox",p),(0,a.addEvent)(t,"transform",h),(0,a.addEvent)(t,"afterSetChartSize",d),(0,a.addEvent)(o,"getPlotBox",l),(0,a.addEvent)(o,"initDataLabelsGroup",u),(0,a.addEvent)(e,"getAnchor",c))},t}(),m=r();m.NonCartesianSeriesZoom=m.NonCartesianSeriesZoom||f,m.NonCartesianSeriesZoom.compose(m.Chart,m.Series,m.Tooltip);var g=r();return n.default}()});