!/**
 * Highstock JS v12.6.0 (2026-04-13)
 * @module highcharts/indicators/dmi
 * @requires highcharts
 * @requires highcharts/modules/stock
 *
 * Indicator series type for Highcharts Stock
 *
 * (c) 2010-2026 Highsoft AS
 * Author: Rafał Sebestjański
 *
 * A commercial license may be required depending on use.
 * See www.highcharts.com/license
 */function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(t._Highcharts,t._Highcharts.SeriesRegistry):"function"==typeof define&&define.amd?define("highcharts/indicators/dmi",["highcharts/highcharts"],function(t){return e(t,t.SeriesRegistry)}):"object"==typeof exports?exports["highcharts/indicators/dmi"]=e(t._Highcharts,t._Highcharts.SeriesRegistry):t.Highcharts=e(t.Highcharts,t.Highcharts.SeriesRegistry)}("u"<typeof window?this:window,function(t,e){return function(){"use strict";var r,o,n={512:function(t){t.exports=e},944:function(e){e.exports=t}},i={};function a(t){var e=i[t];if(void 0!==e)return e.exports;var r=i[t]={exports:{}};return n[t](r,r.exports,a),r.exports}a.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return a.d(e,{a:e}),e},a.d=function(t,e){for(var r in e)a.o(e,r)&&!a.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};var s={};a.d(s,{default:function(){return M}});var p=a(944),l=a.n(p),c=a(512),u=a.n(c),h=function(t,e,r){if(r||2==arguments.length)for(var o,n=0,i=e.length;n<i;n++)!o&&n in e||(o||(o=Array.prototype.slice.call(e,0,n)),o[n]=e[n]);return t.concat(o||Array.prototype.slice.call(e))};function f(t,e){return t>1e14?t:parseFloat(t.toPrecision(e||14))}function y(t){return g(t)&&"number"==typeof t.nodeType}function d(t){var e=Object.prototype.toString.call(t);return"[object Array]"===e||"[object Array Iterator]"===e}function g(t,e){return!!t&&"object"==typeof t&&(!e||!d(t))}function v(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var o,n=h([t],e,!0),i={},a=function(t,e){return"object"!=typeof t&&(t={}),function(t,e,r){for(var o in t)Object.hasOwnProperty.call(t,o)&&e.call((0,t[o]),t[o],o,t)}(e,function(r,o){if("__proto__"!==o&&"constructor"!==o){var n;!g(r,!0)||(n=null==r?void 0:r.constructor,g(r,!0)&&!y(r)&&(null==n?void 0:n.name)&&"Object"!==n.name)||y(r)?t[o]=e[o]:t[o]=a(t[o]||{},r)}}),t};!0===t&&(i=n[1],n=Array.prototype.slice.call(n,2));var s=n.length;for(o=0;o<s;o++)i=a(i,n[o]);return i}l().doc,l().win,Array.prototype.find;var m=u().seriesTypes.sma.prototype;!function(t){var e=["bottomLine"],r=["top","bottom"],o=["top"];function n(t){return"plot"+t.charAt(0).toUpperCase()+t.slice(1)}function i(t,e){var r=[];return(t.pointArrayMap||[]).forEach(function(t){t!==e&&r.push(n(t))}),r}function a(){var t,e=this,r=e.pointValKey,o=e.linesApiNames,a=e.areaLinesNames,s=e.points,l=e.options,c=e.graph,u={options:{gapSize:l.gapSize}},h=[],f=i(e,r),y=s.length;if(f.forEach(function(e,r){for(h[r]=[];y--;)t=s[y],h[r].push({x:t.x,plotX:t.plotX,plotY:t[e],isNull:null==t[e]});y=s.length}),e.userOptions.fillColor&&a.length){var d=h[f.indexOf(n(a[0]))],g=1===a.length?s:h[f.indexOf(n(a[1]))],D=e.color;e.points=g,e.nextPoints=d,e.color=e.userOptions.fillColor,e.options=v(s,u),e.graph=e.area,e.fillGraph=!0,m.drawGraph.call(e),e.area=e.graph,delete e.nextPoints,delete e.fillGraph,e.color=D}o.forEach(function(t,r){h[r]?(e.points=h[r],l[t]?e.options=v(l[t].styles,u):(0,p.error)('Error: "There is no '+t+' in DOCS options declared. Check if linesApiNames are consistent with your DOCS line names."'),e.graph=e["graph"+t],m.drawGraph.call(e),e["graph"+t]=e.graph):(0,p.error)('Error: "'+t+" doesn't have equivalent in pointArrayMap. To many elements in linesApiNames relative to pointArrayMap.\"")}),e.points=s,e.options=l,e.graph=c,m.drawGraph.call(e)}function s(t){var e,r=[],o=[];if(t=t||this.points,this.fillGraph&&this.nextPoints){if((e=m.getGraphPath.call(this,this.nextPoints))&&e.length){e[0][0]="L",r=m.getGraphPath.call(this,t),o=e.slice(0,r.length);for(var n=o.length-1;n>=0;n--)r.push(o[n])}}else r=m.getGraphPath.apply(this,arguments);return r}function l(t){var e=[];return(this.pointArrayMap||[]).forEach(function(r){e.push(t[r])}),e}function c(){var t,e=this,r=this.pointArrayMap,o=[];o=i(this),m.translate.apply(this,arguments),this.points.forEach(function(n){r.forEach(function(r,i){t=n[r],e.dataModify&&(t=e.dataModify.modifyValue(t)),null!==t&&(n[o[i]]=e.yAxis.toPixels(t,!0))})})}t.compose=function(t){var n=t.prototype;return n.linesApiNames=n.linesApiNames||e.slice(),n.pointArrayMap=n.pointArrayMap||r.slice(),n.pointValKey=n.pointValKey||"top",n.areaLinesNames=n.areaLinesNames||o.slice(),n.drawGraph=a,n.getGraphPath=s,n.toYData=l,n.translate=c,t}}(o||(o={}));var D=o,b=(r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),x=u().seriesTypes.sma,A=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return b(e,t),e.prototype.calculateDM=function(t,e,r){var o=t[e][1],n=t[e][2],i=t[e-1][1],a=t[e-1][2];return f(o-i>a-n?r?Math.max(o-i,0):0:r?0:Math.max(a-n,0))},e.prototype.calculateDI=function(t,e){return t/e*100},e.prototype.calculateDX=function(t,e){return f(Math.abs(t-e)/Math.abs(t+e)*100)},e.prototype.smoothValues=function(t,e,r){return f(t-t/r+e)},e.prototype.getTR=function(t,e){return f(Math.max(t[1]-t[2],e?Math.abs(t[1]-e[3]):0,e?Math.abs(t[2]-e[3]):0))},e.prototype.getValues=function(t,e){var r=e.period,o=t.xData,n=t.yData,i=n?n.length:0,a=[],s=[],p=[];if(!(o.length<=r)&&d(n[0])&&4===n[0].length){var l,c=0,u=0,h=0;for(l=1;l<i;l++){var f=void 0,y=void 0,g=void 0,v=void 0,m=void 0,D=void 0,b=void 0,x=void 0,A=void 0;l<=r?(v=this.calculateDM(n,l,!0),m=this.calculateDM(n,l),D=this.getTR(n[l],n[l-1]),c+=v,u+=m,h+=D,l===r&&(b=this.calculateDI(c,h),x=this.calculateDI(u,h),A=this.calculateDX(c,u),a.push([o[l],A,b,x]),s.push(o[l]),p.push([A,b,x]))):(v=this.calculateDM(n,l,!0),m=this.calculateDM(n,l),D=this.getTR(n[l],n[l-1]),f=this.smoothValues(c,v,r),y=this.smoothValues(u,m,r),g=this.smoothValues(h,D,r),c=f,u=y,h=g,b=this.calculateDI(c,h),x=this.calculateDI(u,h),A=this.calculateDX(c,u),a.push([o[l],A,b,x]),s.push(o[l]),p.push([A,b,x]))}return{values:a,xData:s,yData:p}}},e.defaultOptions=v(x.defaultOptions,{params:{index:void 0},marker:{enabled:!1},tooltip:{pointFormat:'<span style="color: {point.color}">●</span><b> {series.name}</b><br/><span style="color: {point.color}">DX</span>: {point.y}<br/><span style="color: {point.series.options.plusDILine.styles.lineColor}">+DI</span>: {point.plusDI}<br/><span style="color: {point.series.options.minusDILine.styles.lineColor}">-DI</span>: {point.minusDI}<br/>'},plusDILine:{styles:{lineWidth:1,lineColor:"#06b535"}},minusDILine:{styles:{lineWidth:1,lineColor:"#f21313"}},dataGrouping:{approximation:"averages"}}),e}(x);!function(t,e){var r;for(r in t||(t={}),e)t[r]=e[r]}(A.prototype,{areaLinesNames:[],nameBase:"DMI",linesApiNames:["plusDILine","minusDILine"],pointArrayMap:["y","plusDI","minusDI"],parallelArrays:["x","y","plusDI","minusDI"],pointValKey:"y"}),D.compose(A),u().registerSeriesType("dmi",A);var M=l();return s.default}()});