!/**
 * Highstock JS v11.4.8 (2024-08-29)
 *
 * Indicator series type for Highcharts Stock
 *
 * (c) 2010-2024 Wojciech Chmiel
 *
 * 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/indicators/ao",["highcharts","highcharts/modules/stock"],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 o(e,o,r,s){e.hasOwnProperty(o)||(e[o]=s.apply(null,r),"function"==typeof CustomEvent&&t.win.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:o,module:e[o]}})))}o(e,"Stock/Indicators/AO/AOIndicator.js",[e["Core/Globals.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(t,e,o){let{noop:r}=t,{column:{prototype:s},sma:i}=e.seriesTypes,{extend:a,merge:n,correctFloat:l,isArray:d}=o;class c extends i{drawGraph(){let t;let e=this.options,o=this.points,r=this.userOptions.color,s=e.greaterBarColor,i=e.lowerBarColor,a=o[0];if(!r&&a)for(t=1,a.color=s;t<o.length;t++)o[t].y>o[t-1].y?o[t].color=s:o[t].y<o[t-1].y?o[t].color=i:o[t].color=o[t-1].color}getValues(t){let e=t.xData||[],o=t.yData||[],r=o.length,s=[],i=[],a=[],n,c,u,h,p,f,g=0,m=0;if(!(e.length<=34)&&d(o[0])&&4===o[0].length){for(p=0;p<33;p++)h=(o[p][1]+o[p][2])/2,p>=29&&(m=l(m+h)),g=l(g+h);for(f=33;f<r;f++)m=l(m+(h=(o[f][1]+o[f][2])/2)),g=l(g+h),n=l(m/5-g/34),s.push([e[f],n]),i.push(e[f]),a.push(n),c=f+1-5,u=f+1-34,m=l(m-(o[c][1]+o[c][2])/2),g=l(g-(o[u][1]+o[u][2])/2);return{values:s,xData:i,yData:a}}}}return c.defaultOptions=n(i.defaultOptions,{params:{index:void 0,period:void 0},greaterBarColor:"#06b535",lowerBarColor:"#f21313",threshold:0,groupPadding:.2,pointPadding:.2,crisp:!1,states:{hover:{halo:{size:0}}}}),a(c.prototype,{nameBase:"AO",nameComponents:void 0,markerAttribs:r,getColumnMetrics:s.getColumnMetrics,crispCol:s.crispCol,translate:s.translate,drawPoints:s.drawPoints}),e.registerSeriesType("ao",c),c}),o(e,"masters/indicators/ao.src.js",[e["Core/Globals.js"]],function(t){return t})});