let e;/**
 * Highcharts JS v13.0.0 (2026-06-11)
 * @module highcharts/modules/mouse-wheel-zoom
 * @requires highcharts
 *
 * Mousewheel zoom module
 *
 * (c) 2023-2026 Highsoft AS
 * Author: Askel Eirik Johansson
 *
 * A commercial license may be required depending on use,
 * see www.highcharts.com/license
 */import*as t from"../highcharts.js";var o={};o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var i in t)o.o(t,i)&&!o.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);let i=t.default;var r=o.n(i);let s={backgroundColor:"color",backgroundColors:"color",borderColor:"color",borderRadius:"string",color:"color",fill:"color",fontSize:"string",labels:"string",name:"string",stroke:"color",title:"string"},{getAssignedAxis:n}={annotationsFieldsTypes:s,getAssignedAxis:function(e){return e.filter(e=>{let t=e.axis.getExtremes(),o=t.min,r=t.max,s=(0,i.pick)(e.axis.minPointOffset,0);return(0,i.isNumber)(o)&&(0,i.isNumber)(r)&&e.value>=o-s&&e.value<=r+s&&!e.axis.options.isInternal})[0]},getFieldType:function(e,t){let o=s[e],r=typeof t;return(0,i.defined)(o)&&(r=o),({string:"text",number:"number",boolean:"checkbox",color:"color"})[r]}},l=[],a={enabled:!0,sensitivity:1.1,showResetButton:!1},h=function(t,o,r,s,n,l,a){let h=(0,i.pick)(a.type,t.zooming.type,""),u=[];"x"===h?u=r:"y"===h?u=s:"xy"===h&&(u=t.axes);let c=t.transform({axes:u,to:{x:n-5,y:l-5,width:10,height:10},from:{x:n-5*o,y:l-5*o,width:10*o,height:10*o},trigger:"mousewheel",allowResetButton:a.showResetButton});return c&&((0,i.defined)(e)&&(0,i.internalClearTimeout)(e),e=setTimeout(()=>{t.pointer?.drop()},400)),c};function u(){var e;let t=(e=this.zooming.mouseWheel,(0,i.isObject)(e)||(e={enabled:e??!0}),(0,i.merge)(a,e));t.enabled&&(0,i.addEvent)(this.container,"wheel",e=>{e=this.pointer?.normalize(e)||e;let{pointer:o}=this,i=o&&!o.inClass(e.target,"highcharts-no-mousewheel");if(this.isInsidePlot(e.chartX-this.plotLeft,e.chartY-this.plotTop)&&i){let i=t.sensitivity||1.1,r=e.detail||(e.deltaY||0)/120,s=n(o.getCoordinates(e).xAxis),l=n(o.getCoordinates(e).yAxis);h(this,Math.pow(i,r),s?[s.axis]:this.xAxis,l?[l.axis]:this.yAxis,e.chartX,e.chartY,t)&&e.preventDefault?.()}})}let c=r();c.MouseWheelZoom=c.MouseWheelZoom||{compose:function(e){-1===l.indexOf(e)&&(l.push(e),(0,i.addEvent)(e,"afterGetContainer",u))}},c.MouseWheelZoom.compose(c.Chart);let d=r();export{d as default};