!/**
 * Highstock JS v12.6.0 (2026-04-13)
 * @module highcharts/indicators/vwap
 * @requires highcharts
 * @requires highcharts/modules/stock
 *
 * Indicator series type for Highcharts Stock
 *
 * (c) 2010-2026 Highsoft AS
 * Author: Paweł Dalek
 *
 * 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/vwap",["highcharts/highcharts"],function(t){return r(t,t.SeriesRegistry)}):"object"==typeof exports?exports["highcharts/indicators/vwap"]=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 _}});var a=i(944),c=i.n(a),s=i(512),p=i.n(s),f=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 y(t)&&"number"==typeof t.nodeType}function h(t){var r=Object.prototype.toString.call(t);return"[object Array]"===r||"[object Array Iterator]"===r}function y(t,r){return!!t&&"object"==typeof t&&(!r||!h(t))}c().doc,c().win,Array.prototype.find;var v=(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=p().seriesTypes.sma,g=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return v(r,t),r.prototype.getValues=function(t,r){var e,o=t.chart,n=t.xData,i=t.yData,u=r.period,c=!0;return(e=o.get(r.volumeSeriesID))?(h(i[0])||(c=!1),this.calculateVWAPValues(c,n,i,e,u)):void(0,a.error)("Series "+r.volumeSeriesID+" not found! Check `volumeSeriesID`.",!0,o)},r.prototype.calculateVWAPValues=function(t,r,e,o,n){var i,u,a,c,s,p,f=o.getColumn("y"),l=f.length,h=r.length,y=[],v=[],d=[],g=[],_=[];for(s=0,i=h<=l?h:l,p=0;s<i;s++)u=(t?(e[s][1]+e[s][2]+e[s][3])/3:e[s])*f[s],a=p?y[s-1]+u:u,c=p?v[s-1]+f[s]:f[s],y.push(a),v.push(c),_.push([r[s],a/c]),d.push(_[s][0]),g.push(_[s][1]),++p===n&&(p=0);return{values:_,xData:d,yData:g}},r.defaultOptions=function(t){for(var r=[],e=1;e<arguments.length;e++)r[e-1]=arguments[e];var o,n=f([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;!y(e,!0)||(n=null==e?void 0:e.constructor,y(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,period:30,volumeSeriesID:"volume"}}),r}(d);p().registerSeriesType("vwap",g);var _=c();return u.default}()});