!/**
 * Highstock JS v13.0.0 (2026-06-11)
 * @module highcharts/indicators/pivot-points
 * @requires highcharts
 * @requires highcharts/modules/stock
 *
 * Indicator series type for Highcharts Stock
 *
 * (c) 2010-2026 Highsoft AS
 * Author: Paweł Fus
 *
 * A commercial license may be required depending on use,
 * see www.highcharts.com/license
 */function(t,o){"object"==typeof exports&&"object"==typeof module?module.exports=o(t._Highcharts,t._Highcharts.SeriesRegistry):"function"==typeof define&&define.amd?define("highcharts/indicators/pivot-points",["highcharts/highcharts"],function(t){return o(t,t.SeriesRegistry)}):"object"==typeof exports?exports["highcharts/indicators/pivot-points"]=o(t._Highcharts,t._Highcharts.SeriesRegistry):t.Highcharts=o(t.Highcharts,t.Highcharts.SeriesRegistry)}("u"<typeof window?this:window,function(t,o){return function(){"use strict";var e,n,r={512:function(t){t.exports=o},944:function(o){o.exports=t}},a={};function i(t){var o=a[t];if(void 0!==o)return o.exports;var e=a[t]={exports:{}};return r[t](e,e.exports,i),e.exports}i.n=function(t){var o=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(o,{a:o}),o},i.d=function(t,o){for(var e in o)i.o(o,e)&&!i.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:o[e]})},i.o=function(t,o){return Object.prototype.hasOwnProperty.call(t,o)};var p={};i.d(p,{default:function(){return b}});var s=i(944),l=i.n(s),u=i(512),c=i.n(u),f=(e=function(t,o){return(e=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var e in o)o.hasOwnProperty(e)&&(t[e]=o[e])})(t,o)},function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)});function h(t,o){var e,n=t.series.pointArrayMap,r=n.length;for(c().seriesTypes.sma.prototype.pointClass.prototype[o].call(t);r--;)t[e="dataLabel"+n[r]]&&t[e].element&&t[e].destroy(),t[e]=null}var y=function(t){function o(){return null!==t&&t.apply(this,arguments)||this}return f(o,t),o.prototype.destroyElements=function(){h(this,"destroyElements")},o.prototype.destroy=function(){h(this,"destroyElements")},o}(c().seriesTypes.sma.prototype.pointClass),d=(n=function(t,o){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var e in o)Object.prototype.hasOwnProperty.call(o,e)&&(t[e]=o[e])})(t,o)},function(t,o){if("function"!=typeof o&&null!==o)throw TypeError("Class extends value "+String(o)+" is not a constructor or null");function e(){this.constructor=t}n(t,o),t.prototype=null===o?Object.create(o):(e.prototype=o.prototype,new e)}),g=c().seriesTypes.sma,v=function(t){function o(){return null!==t&&t.apply(this,arguments)||this}return d(o,t),o.prototype.toYData=function(t){return[t.P]},o.prototype.translate=function(){var o=this;t.prototype.translate.apply(o),o.points.forEach(function(t){o.pointArrayMap.forEach(function(e){(0,s.defined)(t[e])&&(t["plot"+e]=o.yAxis.toPixels(t[e],!0))})}),o.plotEndPoint=o.xAxis.toPixels(o.endPoint,!0)},o.prototype.getGraphPath=function(o){for(var e,n,r,a=this,i=[[],[],[],[],[],[],[],[],[]],p=a.pointArrayMap.length,l=a.plotEndPoint,u=[],c=o.length;c--;){for(r=0,n=o[c];r<p;r++)e=a.pointArrayMap[r],(0,s.defined)(n[e])&&i[r].push({plotX:n.plotX,plotY:n["plot"+e],isNull:!1},{plotX:l,plotY:n["plot"+e],isNull:!1},{plotX:l,plotY:null,isNull:!0});l=n.plotX}return i.forEach(function(o){u=u.concat(t.prototype.getGraphPath.call(a,o))}),u},o.prototype.drawDataLabels=function(){var o,e,n,r,a=this,i=a.pointArrayMap;a.options.dataLabels.enabled&&(e=a.points.length,i.concat([!1]).forEach(function(p,s){for(r=e;r--;)n=a.points[r],p?(n.y=n[p],n.pivotLine=p,n.plotY=n["plot"+p],o=n["dataLabel"+p],s&&(n["dataLabel"+i[s-1]]=n.dataLabel),n.dataLabels||(n.dataLabels=[]),n.dataLabels[0]=n.dataLabel=o=o&&o.element?o:null):n["dataLabel"+i[s-1]]=n.dataLabel;t.prototype.drawDataLabels.call(a)}))},o.prototype.getValues=function(t,o){var e,n,r,a,i,p,l,u=o.period,c=t.xData,f=t.yData,h=f?f.length:0,y=this[o.algorithm+"Placement"],d=[],g=[],v=[];if(!(c.length<u)&&(0,s.isArray)(f[0])&&4===f[0].length){for(l=u+1;l<=h+u;l+=u)r=c.slice(l-u-1,l),a=f.slice(l-u-1,l),n=r.length,e=r[n-1],p=y(this.getPivotAndHLC(a)),i=d.push([e].concat(p)),g.push(e),v.push(d[i-1].slice(1));return this.endPoint=r[0]+(e-r[0])/n*u,{values:d,xData:g,yData:v}}},o.prototype.getPivotAndHLC=function(t){var o=t[t.length-1][3],e=-1/0,n=1/0;return t.forEach(function(t){e=Math.max(e,t[1]),n=Math.min(n,t[2])}),[(e+n+o)/3,e,n,o]},o.prototype.standardPlacement=function(t){var o=t[1]-t[2];return[null,null,t[0]+o,2*t[0]-t[2],t[0],2*t[0]-t[1],t[0]-o,null,null]},o.prototype.camarillaPlacement=function(t){var o=t[1]-t[2];return[t[3]+1.5*o,t[3]+1.25*o,t[3]+1.1666*o,t[3]+1.0833*o,t[0],t[3]-1.0833*o,t[3]-1.1666*o,t[3]-1.25*o,t[3]-1.5*o]},o.prototype.fibonacciPlacement=function(t){var o=t[1]-t[2];return[null,t[0]+o,t[0]+.618*o,t[0]+.382*o,t[0],t[0]-.382*o,t[0]-.618*o,t[0]-o,null]},o.defaultOptions=(0,s.merge)(g.defaultOptions,{params:{index:void 0,period:28,algorithm:"standard"},marker:{enabled:!1},enableMouseTracking:!1,dataLabels:{enabled:!0,format:"{point.pivotLine}"},dataGrouping:{approximation:"averages"}}),o}(g);(0,s.extend)(v.prototype,{nameBase:"Pivot Points",pointArrayMap:["R4","R3","R2","R1","P","S1","S2","S3","S4"],pointValKey:"P",pointClass:y}),c().registerSeriesType("pivotpoints",v);var b=l();return p.default}()});