!/**
 * Highstock JS v11.4.0 (2024-03-04)
 *
 * Indicator series type for Highcharts Stock
 *
 * (c) 2010-2024 Kacper Madej
 *
 * 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/roc",["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/ROC/ROCIndicator.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,a=e.extend,u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.getValues=function(t,e){var o,n,r=e.period,s=t.xData,a=t.yData,u=a?a.length:0,c=[],p=[],l=[],f=-1;if(!(s.length<=r)){for(i(a[0])&&(f=e.index),o=r;o<u;o++)n=function(t,e,o,n,r){var i,s;return s=r<0?(i=e[o-n])?(e[o]-i)/i*100:null:(i=e[o-n][r])?(e[o][r]-i)/i*100:null,[t[o],s]}(s,a,o,r,f),c.push(n),p.push(n[0]),l.push(n[1]);return{values:c,xData:p,yData:l}}},e.defaultOptions=s(r.defaultOptions,{params:{index:3,period:9}}),e}(r);return a(u.prototype,{nameBase:"Rate of Change"}),t.registerSeriesType("roc",u),u}),o(e,"masters/indicators/roc.src.js",[e["Core/Globals.js"]],function(t){return t})});