!/**
 * Highstock JS v13.0.0 (2026-06-11)
 * @module highcharts/modules/renko
 * @requires highcharts
 * @requires highcharts/modules/stock
 *
 * Renko series type for Highcharts Stock
 *
 * (c) 2010-2026 Highsoft AS
 * Author: Paweł Lysy
 *
 * A commercial license may be required depending on use,
 * see www.highcharts.com/license
 */function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(e._Highcharts,e._Highcharts.SeriesRegistry,e._Highcharts.Series.types.column):"function"==typeof define&&define.amd?define("highcharts/modules/renko",["highcharts/highcharts"],function(e){return t(e,e.SeriesRegistry,e.Series,["types"],["column"])}):"object"==typeof exports?exports["highcharts/modules/renko"]=t(e._Highcharts,e._Highcharts.SeriesRegistry,e._Highcharts.Series.types.column):e.Highcharts=t(e.Highcharts,e.Highcharts.SeriesRegistry,e.Highcharts.Series.types.column)}("u"<typeof window?this:window,(e,t,o)=>(()=>{"use strict";var r={448:e=>{e.exports=o},512:e=>{e.exports=t},944:t=>{t.exports=e}},s={};function i(e){var t=s[e];if(void 0!==t)return t.exports;var o=s[e]={exports:{}};return r[e](o,o.exports,i),o.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var o in t)i.o(t,o)&&!i.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var n={};i.d(n,{default:()=>f});var a=i(944),h=i.n(a),l=i(512),p=i.n(l);let{column:{prototype:{pointClass:u}}}=p().seriesTypes;var c=i(448),d=i.n(c);class g extends d(){constructor(){super(...arguments),this.hasDerivedData=!0,this.allowDG=!1}init(){super.init.apply(this,arguments),this.renkoData=[]}setData(e,t,o){this.renkoData=[],super.setData(e,t,o,!1)}getXExtremes(e){return this.processData(),{min:(e=this.getColumn("x",!0))[0],max:e[e.length-1]}}getProcessedData(){let e=this.dataTable.getModified(),t=[],o=[],r=[],s=[],i=[],n=this.getColumn("x",!0),h=this.getColumn("y",!0);if(!this.renkoData||this.renkoData.length>0)return{modified:e,closestPointRange:1,cropped:!1,cropStart:0};let l=this.options.boxSize,p=(0,a.isNumber)(l)?l:(0,a.relativeLength)(l,h[0]),u=[],c=n.length,d=0,g=h[0];for(let e=1;e<c;e++){let t=h[e]-h[e-1];if(t>p){2===d&&(g+=p);for(let o=0;o<t/p;o++)u.push({x:n[e]+o,low:g,y:g+p,color:this.options.color,upTrend:!0}),g+=p;d=1}else if(Math.abs(t)>p){1===d&&(g-=p);for(let o=0;o<Math.abs(t)/p;o++)u.push({x:n[e]+o,low:g-p,y:g,color:this.options.downColor,upTrend:!1}),g-=p;d=2}}for(let e of(this.renkoData=u,u))t.push(e.x),o.push(e.y),r.push(e.low),s.push(e.color),i.push(e.upTrend);return this.hasProcessedDataTable=!0,e.setColumn("x",t),e.setColumn("y",o),e.setColumn("low",r),e.setColumn("color",s),e.setColumn("upTrend",i),{modified:e,cropped:!1,cropStart:0,closestPointRange:1}}}g.defaultOptions=(0,a.merge)(d().defaultOptions,{boxSize:4,groupPadding:0,pointPadding:0,downColor:"#ff0000",navigatorOptions:{type:"renko"},fillColor:"transparent",borderWidth:2,lineWidth:0,stickyTracking:!0,borderRadius:{where:"all"},tooltip:{pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.low:.2f} - {point.y:.2f}</b><br/>'}}),(0,a.extend)(g.prototype,{pointClass:class extends u{getClassName(){return super.getClassName.call(this)+(this.upTrend?" highcharts-point-up":" highcharts-point-down")}}}),p().registerSeriesType("renko",g);let f=h();return n.default})());