/**
 * Highstock JS v12.6.0 (2026-04-13)
 * @module highcharts/indicators/aroon-oscillator
 * @requires highcharts
 * @requires highcharts/modules/stock
 *
 * Indicator series type for Highcharts Stock
 *
 * (c) 2010-2026 Highsoft AS
 * Author: Wojciech Chmiel
 *
 * A commercial license may be required depending on use.
 * See www.highcharts.com/license
 */import*as t from"../highcharts.js";var e,o={};o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var r in e)o.o(e,r)&&!o.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);let r=t.default;var a=o.n(r);let n=t.default.SeriesRegistry;var i=o.n(n);let{doc:l,win:s}=a();function p(t){return h(t)&&"number"==typeof t.nodeType}function h(t,e){let o;return!!t&&"object"==typeof t&&(!e||"[object Array]"!==(o=Object.prototype.toString.call(t))&&"[object Array Iterator]"!==o)}function c(t,...e){let o,r=[t,...e],a={},n=function(t,e){return"object"!=typeof t&&(t={}),function(t,e,o){for(let o in t)Object.hasOwnProperty.call(t,o)&&e.call((0,t[o]),t[o],o,t)}(e,function(o,r){if("__proto__"!==r&&"constructor"!==r){let a;!h(o,!0)||(a=o?.constructor,h(o,!0)&&!p(o)&&a?.name&&"Object"!==a.name)||p(o)?t[r]=e[r]:t[r]=n(t[r]||{},o)}}),t};!0===t&&(a=r[1],r=Array.prototype.slice.call(r,2));let i=r.length;for(o=0;o<i;o++)a=n(a,r[o]);return a}Array.prototype.find;let{sma:{prototype:u}}=i().seriesTypes;!function(t){let e=["bottomLine"],o=["top","bottom"],a=["top"];function n(t){return"plot"+t.charAt(0).toUpperCase()+t.slice(1)}function i(t,e){let o=[];return(t.pointArrayMap||[]).forEach(t=>{t!==e&&o.push(n(t))}),o}function l(){let t=this,e=t.pointValKey,o=t.linesApiNames,a=t.areaLinesNames,l=t.points,s=t.options,p=t.graph,h={options:{gapSize:s.gapSize}},f=[],y=i(t,e),g=l.length,d;if(y.forEach((t,e)=>{for(f[e]=[];g--;)d=l[g],f[e].push({x:d.x,plotX:d.plotX,plotY:d[t],isNull:null==d[t]});g=l.length}),t.userOptions.fillColor&&a.length){let e=f[y.indexOf(n(a[0]))],o=1===a.length?l:f[y.indexOf(n(a[1]))],r=t.color;t.points=o,t.nextPoints=e,t.color=t.userOptions.fillColor,t.options=c(l,h),t.graph=t.area,t.fillGraph=!0,u.drawGraph.call(t),t.area=t.graph,delete t.nextPoints,delete t.fillGraph,t.color=r}o.forEach((e,o)=>{f[o]?(t.points=f[o],s[e]?t.options=c(s[e].styles,h):(0,r.error)('Error: "There is no '+e+' in DOCS options declared. Check if linesApiNames are consistent with your DOCS line names."'),t.graph=t["graph"+e],u.drawGraph.call(t),t["graph"+e]=t.graph):(0,r.error)('Error: "'+e+" doesn't have equivalent in pointArrayMap. To many elements in linesApiNames relative to pointArrayMap.\"")}),t.points=l,t.options=s,t.graph=p,u.drawGraph.call(t)}function s(t){let e,o=[],r=[];if(t=t||this.points,this.fillGraph&&this.nextPoints){if((e=u.getGraphPath.call(this,this.nextPoints))&&e.length){e[0][0]="L",o=u.getGraphPath.call(this,t),r=e.slice(0,o.length);for(let t=r.length-1;t>=0;t--)o.push(r[t])}}else o=u.getGraphPath.apply(this,arguments);return o}function p(t){let e=[];return(this.pointArrayMap||[]).forEach(o=>{e.push(t[o])}),e}function h(){let t=this.pointArrayMap,e=[],o;e=i(this),u.translate.apply(this,arguments),this.points.forEach(r=>{t.forEach((t,a)=>{o=r[t],this.dataModify&&(o=this.dataModify.modifyValue(o)),null!==o&&(r[e[a]]=this.yAxis.toPixels(o,!0))})})}t.compose=function(t){let r=t.prototype;return r.linesApiNames=r.linesApiNames||e.slice(),r.pointArrayMap=r.pointArrayMap||o.slice(),r.pointValKey=r.pointValKey||"top",r.areaLinesNames=r.areaLinesNames||a.slice(),r.drawGraph=l,r.getGraphPath=s,r.toYData=p,r.translate=h,t}}(e||(e={}));let f=e,{aroon:y}=i().seriesTypes;class g extends y{getValues(t,e){let o,r,a=[],n=[],i=[],l=super.getValues.call(this,t,e);for(r=0;r<l.yData.length;r++)o=l.yData[r][0]-l.yData[r][1],a.push([l.xData[r],o]),n.push(l.xData[r]),i.push(o);return{values:a,xData:n,yData:i}}}g.defaultOptions=c(y.defaultOptions,{tooltip:{pointFormat:'<span style="color:{point.color}">●</span><b> {series.name}</b>: {point.y}'}}),function(t,e){let o;for(o in t||(t={}),e)t[o]=e[o]}(g.prototype,{nameBase:"Aroon Oscillator",linesApiNames:[],pointArrayMap:["y"],pointValKey:"y"}),f.compose(y),i().registerSeriesType("aroonoscillator",g);let d=a();export{d as default};