!/**
 * Highstock JS v12.6.0 (2026-04-13)
 * @module highcharts/indicators/accumulation-distribution
 * @requires highcharts
 * @requires highcharts/modules/stock
 *
 * Indicator series type for Highcharts Stock
 *
 * (c) 2010-2026 Highsoft AS
 * Author: Sebastian Bochan
 *
 * A commercial license may be required depending on use.
 * See www.highcharts.com/license
 */function(t,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(t._Highcharts,t._Highcharts.SeriesRegistry):"function"==typeof define&&define.amd?define("highcharts/indicators/accumulation-distribution",["highcharts/highcharts"],function(t){return r(t,t.SeriesRegistry)}):"object"==typeof exports?exports["highcharts/indicators/accumulation-distribution"]=r(t._Highcharts,t._Highcharts.SeriesRegistry):t.Highcharts=r(t.Highcharts,t.Highcharts.SeriesRegistry)}("u"<typeof window?this:window,function(t,r){return function(){"use strict";var e,o={512:function(t){t.exports=r},944:function(r){r.exports=t}},n={};function i(t){var r=n[t];if(void 0!==r)return r.exports;var e=n[t]={exports:{}};return o[t](e,e.exports,i),e.exports}i.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(r,{a:r}),r},i.d=function(t,r){for(var e in r)i.o(r,e)&&!i.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:r[e]})},i.o=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)};var u={};i.d(u,{default:function(){return g}});var a=i(944),c=i.n(a),s=i(512),f=i.n(s),p=function(t,r,e){if(e||2==arguments.length)for(var o,n=0,i=r.length;n<i;n++)!o&&n in r||(o||(o=Array.prototype.slice.call(r,0,n)),o[n]=r[n]);return t.concat(o||Array.prototype.slice.call(r))};function l(t){return h(t)&&"number"==typeof t.nodeType}function h(t,r){var e;return!!t&&"object"==typeof t&&(!r||"[object Array]"!==(e=Object.prototype.toString.call(t))&&"[object Array Iterator]"!==e)}c().doc,c().win,Array.prototype.find;var y=(e=function(t,r){return(e=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var e in r)r.hasOwnProperty(e)&&(t[e]=r[e])})(t,r)},function(t,r){function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}),d=f().seriesTypes.sma,v=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return y(r,t),r.populateAverage=function(t,r,e,o,n){var i=r[o][1],u=r[o][2],a=r[o][3],c=e[o],s=a===i&&a===u||i===u?0:(2*a-u-i)/(i-u)*c;return[t[o],s]},r.prototype.getValues=function(t,e){var o,n,i,u=e.period,c=t.xData,s=t.yData,f=e.volumeSeriesID,p=t.chart.get(f),l=null==p?void 0:p.getColumn("y"),h=s?s.length:0,y=[],d=[],v=[];if(!(c.length<=u)||!h||4===s[0].length){if(!p)return void(0,a.error)("Series "+f+" not found! Check `volumeSeriesID`.",!0,t.chart);for(n=u;n<h;n++)o=y.length,i=r.populateAverage(c,s,l,n,u),o>0&&(i[1]+=y[o-1][1]),y.push(i),d.push(i[0]),v.push(i[1]);return{values:y,xData:d,yData:v}}},r.defaultOptions=function(t){for(var r=[],e=1;e<arguments.length;e++)r[e-1]=arguments[e];var o,n=p([t],r,!0),i={},u=function(t,r){return"object"!=typeof t&&(t={}),function(t,r,e){for(var o in t)Object.hasOwnProperty.call(t,o)&&r.call((0,t[o]),t[o],o,t)}(r,function(e,o){if("__proto__"!==o&&"constructor"!==o){var n;!h(e,!0)||(n=null==e?void 0:e.constructor,h(e,!0)&&!l(e)&&(null==n?void 0:n.name)&&"Object"!==n.name)||l(e)?t[o]=r[o]:t[o]=u(t[o]||{},e)}}),t};!0===t&&(i=n[1],n=Array.prototype.slice.call(n,2));var a=n.length;for(o=0;o<a;o++)i=u(i,n[o]);return i}(d.defaultOptions,{params:{index:void 0,volumeSeriesID:"volume"}}),r}(d);!function(t,r){var e;for(e in t||(t={}),r)t[e]=r[e]}(v.prototype,{nameComponents:!1,nameBase:"Accumulation/Distribution"}),f().registerSeriesType("ad",v);var g=c();return u.default}()});