/* Highstock JS v9.1.1 (2021-06-03) Indicator series type for Highcharts Stock (c) 2010-2021 Pawel Lysy License: www.highcharts.com/license */ 'use strict';(function(a){"object"===typeof module&&module.exports?(a["default"]=a,module.exports=a):"function"===typeof define&&define.amd?define("highcharts/indicators/cmo",["highcharts","highcharts/modules/stock"],function(g){a(g);a.Highcharts=g;return a}):a("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(a){function g(a,h,g,m){a.hasOwnProperty(h)||(a[h]=m.apply(null,g))}a=a?a._modules:{};g(a,"Stock/Indicators/CMO/CMOIndicator.js",[a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]], function(a,h){var g=this&&this.__extends||function(){var a=function(e,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d])};return a(e,d)};return function(e,d){function b(){this.constructor=e}a(e,d);e.prototype=null===d?Object.create(d):(b.prototype=d.prototype,new b)}}(),m=a.seriesTypes.sma,p=h.isNumber,q=h.merge;h=function(a){function e(){var d=null!==a&&a.apply(this,arguments)||this;d.data=void 0; d.options=void 0;d.points=void 0;return d}g(e,a);e.prototype.getValues=function(a,b){var d=b.period,e=a.xData,f=a.yData;a=f?f.length:0;var g=[],h=[],m=[],c,n=b.index;if(!(e.lengthb[c-1]?f+=b[c]-b[c-1]:b[c]b[c-1]?f+=b[c]-b[c-1]:b[c]b[c-d-1]?f-=k:l-=k,k=0