/**
 * Highstock JS v11.2.0 (2023-10-30)
 *
 * Indicator series type for Highcharts Stock
 *
 * (c) 2010-2021 Sebastian Bochan
 *
 * 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/cci",["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(t,e,o,n){t.hasOwnProperty(e)||(t[e]=n.apply(null,o),"function"==typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:e,module:t[e]}})))}o(e,"Stock/Indicators/CCI/CCIIndicator.js",[e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(t,e){var o,n=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),r=t.seriesTypes.sma,i=e.isArray,s=e.merge,u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.data=void 0,e.points=void 0,e.options=void 0,e}return n(e,t),e.prototype.getValues=function(t,e){var o,n,r,s,u,a,c,p=e.period,f=t.xData,h=t.yData,d=h?h.length:0,l=[],y=[],g=[],v=[],m=[],_=1;if(!(f.length<=p)&&i(h[0])&&4===h[0].length){for(;_<p;)n=h[_-1],l.push((n[1]+n[2]+n[3])/3),_++;for(c=p;c<=d;c++)u=((n=h[c-1])[1]+n[2]+n[3])/3,r=l.push(u),s=(m=l.slice(r-p)).reduce(function(t,e){return t+e},0)/p,a=function(t,e){var o,n=t.length,r=0;for(o=0;o<n;o++)r+=Math.abs(e-t[o]);return r}(m,s)/p,o=(u-s)/(.015*a),y.push([f[c-1],o]),g.push(f[c-1]),v.push(o);return{values:y,xData:g,yData:v}}},e.defaultOptions=s(r.defaultOptions,{params:{index:void 0}}),e}(r);return t.registerSeriesType("cci",u),u}),o(e,"masters/indicators/cci.src.js",[],function(){})});//# sourceMappingURL=cci.js.map