!/**
 * Highstock JS v12.6.0 (2026-04-13)
 * @module highcharts/indicators/trendline
 * @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/trendline",["highcharts/highcharts"],function(t){return r(t,t.SeriesRegistry)}):"object"==typeof exports?exports["highcharts/indicators/trendline"]=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,n={512:function(t){t.exports=r},944:function(r){r.exports=t}},o={};function i(t){var r=o[t];if(void 0!==r)return r.exports;var e=o[t]={exports:{}};return n[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 a={};i.d(a,{default:function(){return _}});var c=i(944),u=i.n(c),s=i(512),f=i.n(s),p=function(t,r,e){if(e||2==arguments.length)for(var n,o=0,i=r.length;o<i;o++)!n&&o in r||(n||(n=Array.prototype.slice.call(r,0,o)),n[o]=r[o]);return t.concat(n||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))}u().doc,u().win,Array.prototype.find;var d=(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 n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}),v=f().seriesTypes.sma,g=function(t){function r(){var r=null!==t&&t.apply(this,arguments)||this;return r.updateAllPoints=!0,r}return d(r,t),r.prototype.getValues=function(t,r){for(var e=t.xData,n=t.yData,o=[],i=[],a=[],c=[],u=r.index,s=0,f=0,p=0,l=0,y=0,d=0;d<e.length;d++)(0===d||e[d]!==e[d-1])&&y++,o.push(y);for(var d=0;d<o.length;d++)p+=o[d],l+=h(n[d])?n[d][u]:n[d];for(var v=p/o.length,g=l/n.length,d=0;d<o.length;d++){var _=h(n[d])?n[d][u]:n[d];s+=(o[d]-v)*(_-g),f+=Math.pow(o[d]-v,2)}for(var d=0;d<o.length;d++)if(e[d]!==a[a.length-1]){var b=e[d],_=g+s/f*(o[d]-v);i.push([b,_]),a.push(b),c.push(_)}return{xData:a,yData:c,values:i}},r.defaultOptions=function(t){for(var r=[],e=1;e<arguments.length;e++)r[e-1]=arguments[e];var n,o=p([t],r,!0),i={},a=function(t,r){return"object"!=typeof t&&(t={}),function(t,r,e){for(var n in t)Object.hasOwnProperty.call(t,n)&&r.call((0,t[n]),t[n],n,t)}(r,function(e,n){if("__proto__"!==n&&"constructor"!==n){var o;!y(e,!0)||(o=null==e?void 0:e.constructor,y(e,!0)&&!l(e)&&(null==o?void 0:o.name)&&"Object"!==o.name)||l(e)?t[n]=r[n]:t[n]=a(t[n]||{},e)}}),t};!0===t&&(i=o[1],o=Array.prototype.slice.call(o,2));var c=o.length;for(n=0;n<c;n++)i=a(i,o[n]);return i}(v.defaultOptions,{params:{period:void 0,index:3}}),r}(v);!function(t,r){var e;for(e in t||(t={}),r)t[e]=r[e]}(g.prototype,{nameBase:"Trendline",nameComponents:void 0}),f().registerSeriesType("trendline",g);var _=u();return a.default}()});