!/** * Highstock JS v11.4.1 (2024-04-04) * * Indicator series type for Highcharts Stock * * (c) 2010-2024 Wojciech Chmiel * * License: www.highcharts.com/license */function(e){"object"==typeof module&&module.exports?(e.default=e,module.exports=e):"function"==typeof define&&define.amd?define("highcharts/indicators/ppo",["highcharts","highcharts/modules/stock"],function(t){return e(t),e.Highcharts=t,e}):e("undefined"!=typeof Highcharts?Highcharts:void 0)}(function(e){"use strict";var t=e?e._modules:{};function s(e,t,s,o){e.hasOwnProperty(t)||(e[t]=o.apply(null,s),"function"==typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:t,module:e[t]}})))}s(t,"Stock/Indicators/PPO/PPOIndicator.js",[t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,t){let{ema:s}=e.seriesTypes,{correctFloat:o,extend:r,merge:i,error:a}=t;class n extends s{getValues(e,t){let s,r;let i=t.periods,n=t.index,d=[],u=[],p=[];if(2!==i.length||i[1]<=i[0]){a('Error: "PPO requires two periods. Notice, first period should be lower than the second one."');return}let l=super.getValues.call(this,e,{index:n,period:i[0]}),c=super.getValues.call(this,e,{index:n,period:i[1]});if(!l||!c)return;let h=i[1]-i[0];for(r=0;r