/*
 Highcharts JS v10.3.1 (2022-10-31)

 Annotations module

 (c) 2009-2021 Torstein Honsi

 License: www.highcharts.com/license
*/
(function(e){"object"===typeof module&&module.exports?(e["default"]=e,module.exports=e):"function"===typeof define&&define.amd?define("highcharts/modules/annotations-advanced",["highcharts"],function(r){e(r);e.Highcharts=r;return e}):e("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(e){function r(e,l,m,k){e.hasOwnProperty(l)||(e[l]=k.apply(null,m),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:l,module:e[l]}})))}e=e?e._modules:
{};r(e,"Extensions/Annotations/AnnotationChart.js",[e["Core/Utilities.js"]],function(e){function l(b,a){b=this.initAnnotation(b);this.options.annotations.push(b.options);f(a,!0)&&(b.redraw(),b.graphic.attr({opacity:1}));return b}function m(){var b=this;b.plotBoxClip=this.renderer.clipRect(this.plotBox);b.controlPointsGroup=b.renderer.g("control-points").attr({zIndex:99}).clip(b.plotBoxClip).add();b.options.annotations.forEach(function(a,c){if(!b.annotations.some(function(b){return b.options===a})){var h=
b.initAnnotation(a);b.options.annotations[c]=h.options}});b.drawAnnotations();a(b,"redraw",b.drawAnnotations);a(b,"destroy",function(){b.plotBoxClip.destroy();b.controlPointsGroup.destroy()});a(b,"exportData",function(a){var c=(this.options.exporting&&this.options.exporting.csv||{}).columnHeaderFormatter,h=!a.dataRows[1].xValues,d=b.options.lang&&b.options.lang.exportData&&b.options.lang.exportData.annotationHeader,f=function(b){if(c){var a=c(b);if(!1!==a)return a}a=d+" "+b;return h?{columnTitle:a,
topLevelColumnTitle:a}:a},q=a.dataRows[0].length,v=b.options.exporting&&b.options.exporting.csv&&b.options.exporting.csv.annotations&&b.options.exporting.csv.annotations.itemDelimiter,g=b.options.exporting&&b.options.exporting.csv&&b.options.exporting.csv.annotations&&b.options.exporting.csv.annotations.join;b.annotations.forEach(function(b){b.options.labelOptions&&b.options.labelOptions.includeInDataExport&&b.labels.forEach(function(b){if(b.options.text){var c=b.options.text;b.points.forEach(function(b){var h=
b.x,d=b.series.xAxis?b.series.xAxis.options.index:-1,f=!1;if(-1===d){b=a.dataRows[0].length;for(var p=Array(b),u=0;u<b;++u)p[u]="";p.push(c);p.xValues=[];p.xValues[d]=h;a.dataRows.push(p);f=!0}f||a.dataRows.forEach(function(b){!f&&b.xValues&&void 0!==d&&h===b.xValues[d]&&(g&&b.length>q?b[b.length-1]+=v+c:b.push(c),f=!0)});if(!f){b=a.dataRows[0].length;p=Array(b);for(u=0;u<b;++u)p[u]="";p[0]=h;p.push(c);p.xValues=[];void 0!==d&&(p.xValues[d]=h);a.dataRows.push(p)}})}})});var p=0;a.dataRows.forEach(function(b){p=
Math.max(p,b.length)});for(var x=p-a.dataRows[0].length,e=0;e<x;e++){var D=f(e+1);h?(a.dataRows[0].push(D.topLevelColumnTitle),a.dataRows[1].push(D.columnTitle)):a.dataRows[0].push(D)}})}function k(){this.plotBoxClip.attr(this.plotBox);this.annotations.forEach(function(b){b.redraw();b.graphic.animate({opacity:1},b.animationConfig)})}function n(a){var d=this.annotations,f="annotations"===a.coll?a:b(d,function(b){return b.options.id===a});f&&(h(f,"remove"),c(this.options.annotations,f.options),c(d,
f),f.destroy())}function g(){this.annotations=[];this.options.annotations||(this.options.annotations=[])}function d(b){this.chart.hasDraggedAnnotation||b.apply(this,Array.prototype.slice.call(arguments,1))}var a=e.addEvent,c=e.erase,b=e.find,h=e.fireEvent,f=e.pick,q=e.wrap,x=[],p;(function(b){b.compose=function(b,c,h){-1===x.indexOf(c)&&(x.push(c),a(c,"afterInit",g),c=c.prototype,c.addAnnotation=l,c.callbacks.push(m),c.collectionsWithInit.annotations=[l],c.collectionsWithUpdate.push("annotations"),
c.drawAnnotations=k,c.removeAnnotation=n,c.initAnnotation=function(a){a=new (b.types[a.type]||b)(this,a);this.annotations.push(a);return a});-1===x.indexOf(h)&&(x.push(h),q(h.prototype,"onContainerMouseDown",d))}})(p||(p={}));return p});r(e,"Extensions/Annotations/AnnotationDefaults.js",[e["Core/Utilities.js"]],function(e){var l=e.defined;return{visible:!0,animation:{},crop:!0,draggable:"xy",labelOptions:{align:"center",allowOverlap:!1,backgroundColor:"rgba(0, 0, 0, 0.75)",borderColor:"#000000",borderRadius:3,
borderWidth:1,className:"highcharts-no-tooltip",crop:!1,formatter:function(){return l(this.y)?""+this.y:"Annotation label"},includeInDataExport:!0,overflow:"justify",padding:5,shadow:!1,shape:"callout",style:{fontSize:"11px",fontWeight:"normal",color:"contrast"},useHTML:!1,verticalAlign:"bottom",x:0,y:-16},shapeOptions:{stroke:"rgba(0, 0, 0, 0.75)",strokeWidth:1,fill:"rgba(0, 0, 0, 0.75)",r:0,snap:2},controlPointOptions:{events:{},style:{cursor:"pointer",fill:"#ffffff",stroke:"#000000","stroke-width":2},
height:10,symbol:"circle",visible:!1,width:10},events:{},zIndex:6}});r(e,"Extensions/Annotations/EventEmitter.js",[e["Core/Globals.js"],e["Core/Utilities.js"]],function(e,l){var m=e.doc,k=e.isTouchDevice,n=l.addEvent,g=l.fireEvent,d=l.objectEach,a=l.pick,c=l.removeEvent;return function(){function b(){}b.prototype.addEvents=function(){var b=this,a=function(a){n(a,k?"touchstart":"mousedown",function(a){b.onMouseDown(a)},{passive:!1})};a(this.graphic.element);(b.labels||[]).forEach(function(b){b.options.useHTML&&
b.graphic.text&&a(b.graphic.text.element)});d(b.options.events,function(a,c){var h=function(h){"click"===c&&b.cancelClick||a.call(b,b.chart.pointer.normalize(h),b.target)};if(-1===(b.nonDOMEvents||[]).indexOf(c))b.graphic.on(c,h);else n(b,c,h,{passive:!1})});if(b.options.draggable&&(n(b,"drag",b.onDrag),!b.graphic.renderer.styledMode)){var c={cursor:{x:"ew-resize",y:"ns-resize",xy:"move"}[b.options.draggable]};b.graphic.css(c);(b.labels||[]).forEach(function(b){b.options.useHTML&&b.graphic.text&&
b.graphic.text.css(c)})}b.isUpdating||g(b,"add")};b.prototype.destroy=function(){this.removeDocEvents();c(this);this.hcEvents=null};b.prototype.mouseMoveToRadians=function(b,a,c){var h=b.prevChartY-c,d=b.prevChartX-a;c=b.chartY-c;b=b.chartX-a;this.chart.inverted&&(a=d,d=h,h=a,a=b,b=c,c=a);return Math.atan2(c,b)-Math.atan2(h,d)};b.prototype.mouseMoveToScale=function(b,a,c){a=(b.chartX-a||1)/(b.prevChartX-a||1);b=(b.chartY-c||1)/(b.prevChartY-c||1);this.chart.inverted&&(c=b,b=a,a=c);return{x:a,y:b}};
b.prototype.mouseMoveToTranslation=function(b){var a=b.chartX-b.prevChartX;b=b.chartY-b.prevChartY;if(this.chart.inverted){var c=b;b=a;a=c}return{x:a,y:b}};b.prototype.onDrag=function(b){if(this.chart.isInsidePlot(b.chartX-this.chart.plotLeft,b.chartY-this.chart.plotTop,{visiblePlotOnly:!0})){var a=this.mouseMoveToTranslation(b);"x"===this.options.draggable&&(a.y=0);"y"===this.options.draggable&&(a.x=0);this.points.length?this.translate(a.x,a.y):(this.shapes.forEach(function(b){return b.translate(a.x,
a.y)}),this.labels.forEach(function(b){return b.translate(a.x,a.y)}));this.redraw(!1)}};b.prototype.onMouseDown=function(b){b.preventDefault&&b.preventDefault();if(2!==b.button){var c=this,d=c.chart.pointer;b=d.normalize(b);var h=b.chartX,p=b.chartY;c.cancelClick=!1;c.chart.hasDraggedAnnotation=!0;c.removeDrag=n(m,k?"touchmove":"mousemove",function(b){c.hasDragged=!0;b=d.normalize(b);b.prevChartX=h;b.prevChartY=p;g(c,"drag",b);h=b.chartX;p=b.chartY},k?{passive:!1}:void 0);c.removeMouseUp=n(m,k?"touchend":
"mouseup",function(b){var d=a(c.target&&c.target.annotation,c.target);d&&(d.cancelClick=c.hasDragged);c.cancelClick=c.hasDragged;c.hasDragged=!1;c.chart.hasDraggedAnnotation=!1;g(a(d,c),"afterUpdate");c.onMouseUp(b)},k?{passive:!1}:void 0)}};b.prototype.onMouseUp=function(b){var a=this.chart;b=this.target||this;var c=a.options.annotations;a=a.annotations.indexOf(b);this.removeDocEvents();c[a]=b.options};b.prototype.removeDocEvents=function(){this.removeDrag&&(this.removeDrag=this.removeDrag());this.removeMouseUp&&
(this.removeMouseUp=this.removeMouseUp())};return b}()});r(e,"Extensions/Annotations/ControlPoint.js",[e["Extensions/Annotations/EventEmitter.js"],e["Core/Utilities.js"]],function(e,l){var m=this&&this.__extends||function(){var g=function(d,a){g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return g(d,a)};return function(d,a){function c(){this.constructor=d}g(d,a);d.prototype=null===a?Object.create(a):
(c.prototype=a.prototype,new c)}}(),k=l.merge,n=l.pick;e=function(g){function d(a,c,b,d){var h=g.call(this)||this;h.graphic=void 0;h.nonDOMEvents=["drag"];h.chart=a;h.target=c;h.options=b;h.index=n(b.index,d);return h}m(d,g);d.prototype.destroy=function(){g.prototype.destroy.call(this);this.graphic&&(this.graphic=this.graphic.destroy());this.options=this.target=this.chart=null};d.prototype.redraw=function(a){this.graphic[a?"animate":"attr"](this.options.positioner.call(this,this.target))};d.prototype.render=
function(){var a=this.chart,c=this.options;this.graphic=a.renderer.symbol(c.symbol,0,0,c.width,c.height).add(a.controlPointsGroup).css(c.style);this.setVisibility(c.visible);this.addEvents()};d.prototype.setVisibility=function(a){this.graphic[a?"show":"hide"]();this.options.visible=a};d.prototype.update=function(a){var c=this.chart,b=this.target,d=this.index;a=k(!0,this.options,a);this.destroy();this.constructor(c,b,a,d);this.render(c.controlPointsGroup);this.redraw()};return d}(e);"";return e});
r(e,"Extensions/Annotations/MockPoint.js",[e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(e,l){var m=e.series.prototype,k=l.defined,n=l.fireEvent;e=function(){function g(d,a,c){this.plotY=this.plotX=void 0;this.mock=!0;this.series={visible:!0,chart:d,getPlotBox:m.getPlotBox};this.target=a||null;this.options=c;this.applyOptions(this.getOptions())}g.fromPoint=function(d){return new g(d.series.chart,null,{x:d.x,y:d.y,xAxis:d.series.xAxis,yAxis:d.series.yAxis})};g.pointToPixels=function(d,
a){var c=d.series,b=c.chart,h=d.plotX||0,f=d.plotY||0;b.inverted&&(d.mock?(h=d.plotY,f=d.plotX):(h=b.plotWidth-(d.plotY||0),f=b.plotHeight-(d.plotX||0)));c&&!a&&(d=c.getPlotBox(),h+=d.translateX,f+=d.translateY);return{x:h,y:f}};g.pointToOptions=function(d){return{x:d.x,y:d.y,xAxis:d.series.xAxis,yAxis:d.series.yAxis}};g.prototype.applyOptions=function(d){this.command=d.command;this.setAxis(d,"x");this.setAxis(d,"y");this.refresh()};g.prototype.getLabelConfig=function(){return{x:this.x,y:this.y,point:this}};
g.prototype.getOptions=function(){return this.hasDynamicOptions()?this.options(this.target):this.options};g.prototype.hasDynamicOptions=function(){return"function"===typeof this.options};g.prototype.isInsidePlot=function(){var d=this.plotX,a=this.plotY,c=this.series.xAxis,b=this.series.yAxis,h={x:d,y:a,isInsidePlot:!0,options:{}};c&&(h.isInsidePlot=k(d)&&0<=d&&d<=c.len);b&&(h.isInsidePlot=h.isInsidePlot&&k(a)&&0<=a&&a<=b.len);n(this.series.chart,"afterIsInsidePlot",h);return h.isInsidePlot};g.prototype.refresh=
function(){var d=this.series,a=d.xAxis;d=d.yAxis;var c=this.getOptions();a?(this.x=c.x,this.plotX=a.toPixels(c.x,!0)):(this.x=void 0,this.plotX=c.x);d?(this.y=c.y,this.plotY=d.toPixels(c.y,!0)):(this.y=null,this.plotY=c.y);this.isInside=this.isInsidePlot()};g.prototype.refreshOptions=function(){var d=this.series,a=d.xAxis;d=d.yAxis;this.x=this.options.x=a?this.options.x=a.toValue(this.plotX,!0):this.plotX;this.y=this.options.y=d?d.toValue(this.plotY,!0):this.plotY};g.prototype.rotate=function(d,a,
c){if(!this.hasDynamicOptions()){var b=Math.cos(c);c=Math.sin(c);var h=this.plotX-d,f=this.plotY-a;this.plotX=h*b-f*c+d;this.plotY=h*c+f*b+a;this.refreshOptions()}};g.prototype.scale=function(d,a,c,b){if(!this.hasDynamicOptions()){var h=this.plotY*b;this.plotX=(1-c)*d+this.plotX*c;this.plotY=(1-b)*a+h;this.refreshOptions()}};g.prototype.setAxis=function(d,a){a+="Axis";d=d[a];var c=this.series.chart;this.series[a]="object"===typeof d?d:k(d)?c[a][d]||c.get(d):null};g.prototype.toAnchor=function(){var d=
[this.plotX,this.plotY,0,0];this.series.chart.inverted&&(d[0]=this.plotY,d[1]=this.plotX);return d};g.prototype.translate=function(d,a,c,b){this.hasDynamicOptions()||(this.plotX+=c,this.plotY+=b,this.refreshOptions())};return g}();"";return e});r(e,"Extensions/Annotations/Controllables/Controllable.js",[e["Extensions/Annotations/ControlPoint.js"],e["Extensions/Annotations/MockPoint.js"],e["Core/Tooltip.js"],e["Core/Utilities.js"]],function(e,l,m,k){var n=k.isObject,g=k.isString,d=k.merge,a=k.splat;
k=function(){function c(b,a,c,d){this.graphic=void 0;this.annotation=b;this.chart=b.chart;this.collection="label"===d?"labels":"shapes";this.options=a;this.points=[];this.controlPoints=[];this.index=c;this.itemType=d;this.init(b,a,c)}c.prototype.addControlPoints=function(){var b=this,a=this.controlPoints,c=this.options.controlPoints||[];c.forEach(function(h,f){h=d(b.options.controlPointOptions,h);h.index||(h.index=f);c[f]=h;a.push(new e(b.chart,b,h))})};c.prototype.anchor=function(b){var a=b.series.getPlotBox(),
c=b.series.chart,q=b.mock?b.toAnchor():m.prototype.getAnchor.call({chart:b.series.chart},b);q={x:q[0]+(this.options.x||0),y:q[1]+(this.options.y||0),height:q[2]||0,width:q[3]||0};return{relativePosition:q,absolutePosition:d(q,{x:q.x+(b.mock?a.translateX:c.plotLeft),y:q.y+(b.mock?a.translateY:c.plotTop)})}};c.prototype.attr=function(){for(var b=0;b<arguments.length;b++);this.graphic.attr.apply(this.graphic,arguments)};c.prototype.attrsFromOptions=function(b){var a=this.constructor.attrsMap,c={},d=
this.chart.styledMode,g;for(g in b){var e=a[g];"undefined"===typeof a[g]||d&&-1!==["fill","stroke","stroke-width"].indexOf(e)||(c[e]=b[g])}return c};c.prototype.destroy=function(){this.graphic&&(this.graphic=this.graphic.destroy());this.tracker&&(this.tracker=this.tracker.destroy());this.controlPoints.forEach(function(b){return b.destroy()});this.options=this.controlPoints=this.points=this.chart=null;this.annotation&&(this.annotation=null)};c.prototype.getPointsOptions=function(){var b=this.options;
return b.points||b.point&&a(b.point)};c.prototype.init=function(b,a,c){this.annotation=b;this.chart=b.chart;this.options=a;this.points=[];this.controlPoints=[];this.index=c;this.linkPoints();this.addControlPoints()};c.prototype.linkPoints=function(){var b=this.getPointsOptions(),a=this.points,c=b&&b.length||0,d;for(d=0;d<c;d++){var g=this.point(b[d],a[d]);if(!g){a.length=0;return}g.mock&&g.refresh();a[d]=g}return a};c.prototype.point=function(b,a){if(b&&b.series)return b;a&&null!==a.series||(n(b)?
a=new l(this.chart,this,b):g(b)?a=this.chart.get(b)||null:"function"===typeof b&&(a=b.call(a,this),a=a.series?a:new l(this.chart,this,b)));return a};c.prototype.render=function(b){this.controlPoints.forEach(function(b){return b.render()})};c.prototype.redraw=function(b){this.controlPoints.forEach(function(a){return a.redraw(b)})};c.prototype.rotate=function(b,a,c){this.transform("rotate",b,a,c)};c.prototype.scale=function(b,a,c,d){this.transform("scale",b,a,c,d)};c.prototype.setControlPointsVisibility=
function(b){this.controlPoints.forEach(function(a){a.setVisibility(b)})};c.prototype.shouldBeDrawn=function(){return!!this.points.length};c.prototype.transform=function(b,a,c,d,g){var h=this;if(this.chart.inverted){var f=a;a=c;c=f}this.points.forEach(function(f,q){return h.transformPoint(b,a,c,d,g,q)},this)};c.prototype.transformPoint=function(b,a,c,d,g,e){var h=this.points[e];h.mock||(h=this.points[e]=l.fromPoint(h));h[b](a,c,d,g)};c.prototype.translate=function(b,a){this.transform("translate",null,
null,b,a)};c.prototype.translatePoint=function(b,a,c){this.transformPoint("translate",null,null,b,a,c)};c.prototype.translateShape=function(b,a,c){var d=this.annotation.chart,h=this.annotation.userOptions,f=d.annotations.indexOf(this.annotation);d=d.options.annotations[f];this.translatePoint(b,a,0);c&&this.translatePoint(b,a,1);d[this.collection][this.index].point=this.options.point;h[this.collection][this.index].point=this.options.point};c.prototype.update=function(b){var a=this.annotation;b=d(!0,
this.options,b);var c=this.graphic.parentGroup;this.destroy();this.constructor(a,b,this.index,this.itemType);this.render(c);this.redraw()};return c}();"";return k});r(e,"Extensions/Annotations/Controllables/ControllableDefaults.js",[],function(){return{defaultMarkers:{arrow:{tagName:"marker",attributes:{id:"arrow",refY:5,refX:9,markerWidth:10,markerHeight:10},children:[{tagName:"path",attributes:{d:"M 0 0 L 10 5 L 0 10 Z","stroke-width":0}}]},"reverse-arrow":{tagName:"marker",attributes:{id:"reverse-arrow",
refY:5,refX:1,markerWidth:10,markerHeight:10},children:[{tagName:"path",attributes:{d:"M 0 5 L 10 0 L 10 10 Z","stroke-width":0}}]}}}});r(e,"Extensions/Annotations/Controllables/ControllablePath.js",[e["Extensions/Annotations/Controllables/Controllable.js"],e["Extensions/Annotations/Controllables/ControllableDefaults.js"],e["Core/Globals.js"],e["Core/Utilities.js"]],function(e,l,m,k){function n(b){return function(a){this.attr(b,"url(#"+a+")")}}function g(){this.options.defs=q(c,this.options.defs||
{})}function d(b,a){var c={attributes:{id:b}},d={stroke:a.color||"none",fill:a.color||"rgba(0, 0, 0, 0.75)"};c.children=a.children&&a.children.map(function(b){return q(d,b)});a=q(!0,{attributes:{markerWidth:20,markerHeight:20,refX:0,refY:0,orient:"auto"}},a,c);a=this.definition(a);a.id=b;return a}var a=this&&this.__extends||function(){var b=function(a,c){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var c in a)a.hasOwnProperty(c)&&(b[c]=a[c])};
return b(a,c)};return function(a,c){function d(){this.constructor=a}b(a,c);a.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)}}(),c=l.defaultMarkers,b=k.addEvent,h=k.defined,f=k.extend,q=k.merge,x=k.uniqueKey,p=[],v=n("marker-end"),D=n("marker-start"),z="rgba(192,192,192,"+(m.svg?.0001:.002)+")";return function(c){function e(b,a,d){b=c.call(this,b,a,d,"shape")||this;b.type="path";return b}a(e,c);e.compose=function(a,c){-1===p.indexOf(a)&&(p.push(a),b(a,"afterGetContainer",g));-1===
p.indexOf(c)&&(p.push(c),c.prototype.addMarker=d)};e.prototype.toD=function(){var b=this.options.d;if(b)return"function"===typeof b?b.call(this):b;b=this.points;var a=b.length,c=[],d=a,h=b[0],f=d&&this.anchor(h).absolutePosition,g=0;if(f)for(c.push(["M",f.x,f.y]);++g<a&&d;)h=b[g],d=h.command||"L",f=this.anchor(h).absolutePosition,"M"===d?c.push([d,f.x,f.y]):"L"===d?c.push([d,f.x,f.y]):"Z"===d&&c.push([d]),d=h.series.visible;return d&&this.graphic?this.chart.renderer.crispLine(c,this.graphic.strokeWidth()):
null};e.prototype.shouldBeDrawn=function(){return c.prototype.shouldBeDrawn.call(this)||!!this.options.d};e.prototype.render=function(b){var a=this.options,d=this.attrsFromOptions(a);this.graphic=this.annotation.chart.renderer.path([["M",0,0]]).attr(d).add(b);a.className&&this.graphic.addClass(a.className);this.tracker=this.annotation.chart.renderer.path([["M",0,0]]).addClass("highcharts-tracker-line").attr({zIndex:2}).add(b);this.annotation.chart.styledMode||this.tracker.attr({"stroke-linejoin":"round",
stroke:z,fill:z,"stroke-width":this.graphic.strokeWidth()+2*a.snap});c.prototype.render.call(this);f(this.graphic,{markerStartSetter:D,markerEndSetter:v});this.setMarkers(this)};e.prototype.redraw=function(b){if(this.graphic){var a=this.toD(),d=b?"animate":"attr";a?(this.graphic[d]({d:a}),this.tracker[d]({d:a})):(this.graphic.attr({d:"M 0 -9000000000"}),this.tracker.attr({d:"M 0 -9000000000"}));this.graphic.placed=this.tracker.placed=!!a}c.prototype.redraw.call(this,b)};e.prototype.setMarkers=function(b){var a=
b.options,c=b.chart,d=c.options.defs,f=a.fill,g=h(f)&&"none"!==f?f:a.stroke;["markerStart","markerEnd"].forEach(function(h){var f=a[h],e;if(f){for(e in d){var p=d[e];if((f===(p.attributes&&p.attributes.id)||f===p.id)&&"marker"===p.tagName){var v=p;break}}v&&(f=b[h]=c.renderer.addMarker((a.id||x())+"-"+f,q(v,{color:g})),b.attr(h,f.getAttribute("id")))}})};e.attrsMap={dashStyle:"dashstyle",strokeWidth:"stroke-width",stroke:"stroke",fill:"fill",zIndex:"zIndex"};return e}(e)});r(e,"Extensions/Annotations/Controllables/ControllableRect.js",
[e["Extensions/Annotations/Controllables/Controllable.js"],e["Extensions/Annotations/Controllables/ControllablePath.js"],e["Core/Utilities.js"]],function(e,l,m){var k=this&&this.__extends||function(){var g=function(d,a){g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return g(d,a)};return function(d,a){function c(){this.constructor=d}g(d,a);d.prototype=null===a?Object.create(a):(c.prototype=a.prototype,
new c)}}(),n=m.merge;return function(g){function d(a,c,b){a=g.call(this,a,c,b,"shape")||this;a.type="rect";a.translate=g.prototype.translateShape;return a}k(d,g);d.prototype.render=function(a){var c=this.attrsFromOptions(this.options);this.graphic=this.annotation.chart.renderer.rect(0,-9E9,0,0).attr(c).add(a);g.prototype.render.call(this)};d.prototype.redraw=function(a){if(this.graphic){var c=this.anchor(this.points[0]).absolutePosition;if(c)this.graphic[a?"animate":"attr"]({x:c.x,y:c.y,width:this.options.width,
height:this.options.height});else this.attr({x:0,y:-9E9});this.graphic.placed=!!c}g.prototype.redraw.call(this,a)};d.attrsMap=n(l.attrsMap,{width:"width",height:"height"});return d}(e)});r(e,"Extensions/Annotations/Controllables/ControllableCircle.js",[e["Extensions/Annotations/Controllables/Controllable.js"],e["Extensions/Annotations/Controllables/ControllablePath.js"],e["Core/Utilities.js"]],function(e,l,m){var k=this&&this.__extends||function(){var g=function(d,a){g=Object.setPrototypeOf||{__proto__:[]}instanceof
Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return g(d,a)};return function(d,a){function c(){this.constructor=d}g(d,a);d.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)}}(),n=m.merge;return function(g){function d(a,c,b){a=g.call(this,a,c,b,"shape")||this;a.type="circle";a.translate=g.prototype.translateShape;return a}k(d,g);d.prototype.redraw=function(a){if(this.graphic){var c=this.anchor(this.points[0]).absolutePosition;
if(c)this.graphic[a?"animate":"attr"]({x:c.x,y:c.y,r:this.options.r});else this.graphic.attr({x:0,y:-9E9});this.graphic.placed=!!c}g.prototype.redraw.call(this,a)};d.prototype.render=function(a){var c=this.attrsFromOptions(this.options);this.graphic=this.annotation.chart.renderer.circle(0,-9E9,0).attr(c).add(a);g.prototype.render.call(this)};d.prototype.setRadius=function(a){this.options.r=a};d.attrsMap=n(l.attrsMap,{r:"r"});return d}(e)});r(e,"Extensions/Annotations/Controllables/ControllableEllipse.js",
[e["Extensions/Annotations/Controllables/Controllable.js"],e["Extensions/Annotations/Controllables/ControllablePath.js"],e["Core/Utilities.js"]],function(e,l,m){var k=this&&this.__extends||function(){var d=function(a,c){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var c in a)a.hasOwnProperty(c)&&(b[c]=a[c])};return d(a,c)};return function(a,c){function b(){this.constructor=a}d(a,c);a.prototype=null===c?Object.create(c):(b.prototype=c.prototype,
new b)}}(),n=m.merge,g=m.defined;return function(d){function a(a,b,h){a=d.call(this,a,b,h,"shape")||this;a.type="ellipse";return a}k(a,d);a.prototype.init=function(a,b,h){g(b.yAxis)&&b.points.forEach(function(a){a.yAxis=b.yAxis});g(b.xAxis)&&b.points.forEach(function(a){a.xAxis=b.xAxis});d.prototype.init.call(this,a,b,h)};a.prototype.render=function(a){this.graphic=this.annotation.chart.renderer.createElement("ellipse").attr(this.attrsFromOptions(this.options)).add(a);d.prototype.render.call(this)};
a.prototype.translate=function(a,b){d.prototype.translateShape.call(this,a,b,!0)};a.prototype.getDistanceFromLine=function(a,b,d,f){return Math.abs((b.y-a.y)*d-(b.x-a.x)*f+b.x*a.y-b.y*a.x)/Math.sqrt((b.y-a.y)*(b.y-a.y)+(b.x-a.x)*(b.x-a.x))};a.prototype.getAttrs=function(a,b){var c=a.x,d=a.y,g=b.x,e=b.y;b=(c+g)/2;a=(d+e)/2;var p=Math.sqrt((c-g)*(c-g)/4+(d-e)*(d-e)/4);d=180*Math.atan((e-d)/(g-c))/Math.PI;b<c&&(d+=180);c=this.getRY();return{cx:b,cy:a,rx:p,ry:c,angle:d}};a.prototype.getRY=function(){var a=
this.getYAxis();return g(a)?Math.abs(a.toPixels(this.options.ry)-a.toPixels(0)):this.options.ry};a.prototype.getYAxis=function(){return this.chart.yAxis[this.options.yAxis]};a.prototype.getAbsolutePosition=function(a){return this.anchor(a).absolutePosition};a.prototype.redraw=function(a){if(this.graphic){var b=this.getAbsolutePosition(this.points[0]),c=this.getAbsolutePosition(this.points[1]);c=this.getAttrs(b,c);if(b)this.graphic[a?"animate":"attr"]({cx:c.cx,cy:c.cy,rx:c.rx,ry:c.ry,rotation:c.angle,
rotationOriginX:c.cx,rotationOriginY:c.cy});else this.graphic.attr({x:0,y:-9E9});this.graphic.placed=!!b}d.prototype.redraw.call(this,a)};a.prototype.setYRadius=function(a){var b=this.annotation.userOptions.shapes;this.options.ry=a;b&&b[0]&&(b[0].ry=a,b[0].ry=a)};a.attrsMap=n(l.attrsMap,{ry:"ry"});return a}(e)});r(e,"Extensions/Annotations/Controllables/ControllableLabel.js",[e["Extensions/Annotations/Controllables/Controllable.js"],e["Core/FormatUtilities.js"],e["Extensions/Annotations/MockPoint.js"],
e["Core/Tooltip.js"],e["Core/Utilities.js"]],function(e,l,m,k,n){function g(a,c,d,h,f){var g=f&&f.anchorX;f=f&&f.anchorY;var e=d/2;if(b(g)&&b(f)){var q=[["M",g,f]];var p=c-f;0>p&&(p=-h-p);p<d&&(e=g<a+d/2?p:d-p);f>c+h?q.push(["L",a+e,c+h]):f<c?q.push(["L",a+e,c]):g<a?q.push(["L",a,c+h/2]):g>a+d&&q.push(["L",a+d,c+h/2])}return q||[]}var d=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&
(a[c]=b[c])};return a(b,c)};return function(b,c){function d(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)}}(),a=l.format,c=n.extend,b=n.isNumber,h=n.pick,f=[];return function(b){function e(a,c,d){return b.call(this,a,c,d,"label")||this}d(e,b);e.alignedPosition=function(b,a){var c=b.align,d=b.verticalAlign,h=(a.x||0)+(b.x||0),f=(a.y||0)+(b.y||0),e,g;"right"===c?e=1:"center"===c&&(e=2);e&&(h+=(a.width-(b.width||0))/e);"bottom"===d?g=1:"middle"===d&&
(g=2);g&&(f+=(a.height-(b.height||0))/g);return{x:Math.round(h),y:Math.round(f)}};e.compose=function(b){-1===f.indexOf(b)&&(f.push(b),b.prototype.symbols.connector=g)};e.justifiedOptions=function(b,a,c,d){var h=c.align,f=c.verticalAlign,e=a.box?0:a.padding||0,g=a.getBBox();a={align:h,verticalAlign:f,x:c.x,y:c.y,width:a.width,height:a.height};c=(d.x||0)-b.plotLeft;d=(d.y||0)-b.plotTop;var q=c+e;0>q&&("right"===h?a.align="left":a.x=(a.x||0)-q);q=c+g.width-e;q>b.plotWidth&&("left"===h?a.align="right":
a.x=(a.x||0)+b.plotWidth-q);q=d+e;0>q&&("bottom"===f?a.verticalAlign="top":a.y=(a.y||0)-q);q=d+g.height-e;q>b.plotHeight&&("top"===f?a.verticalAlign="bottom":a.y=(a.y||0)+b.plotHeight-q);return a};e.prototype.translatePoint=function(a,c){b.prototype.translatePoint.call(this,a,c,0)};e.prototype.translate=function(a,b){var c=this.annotation.chart,d=this.annotation.userOptions,h=c.annotations.indexOf(this.annotation);h=c.options.annotations[h];c.inverted&&(c=a,a=b,b=c);this.options.x+=a;this.options.y+=
b;h[this.collection][this.index].x=this.options.x;h[this.collection][this.index].y=this.options.y;d[this.collection][this.index].x=this.options.x;d[this.collection][this.index].y=this.options.y};e.prototype.render=function(a){var c=this.options,d=this.attrsFromOptions(c),h=c.style;this.graphic=this.annotation.chart.renderer.label("",0,-9999,c.shape,null,null,c.useHTML,null,"annotation-label").attr(d).add(a);this.annotation.chart.styledMode||("contrast"===h.color&&(h.color=this.annotation.chart.renderer.getContrast(-1<
e.shapesWithoutBackground.indexOf(c.shape)?"#FFFFFF":c.backgroundColor)),this.graphic.css(c.style).shadow(c.shadow));c.className&&this.graphic.addClass(c.className);this.graphic.labelrank=c.labelrank;b.prototype.render.call(this)};e.prototype.redraw=function(c){var d=this.options,h=this.text||d.format||d.text,f=this.graphic,e=this.points[0];f?(f.attr({text:h?a(String(h),e.getLabelConfig(),this.annotation.chart):d.formatter.call(e,this)}),d=this.anchor(e),(h=this.position(d))?(f.alignAttr=h,h.anchorX=
d.absolutePosition.x,h.anchorY=d.absolutePosition.y,f[c?"animate":"attr"](h)):f.attr({x:0,y:-9999}),f.placed=!!h,b.prototype.redraw.call(this,c)):this.redraw(c)};e.prototype.anchor=function(a){var c=b.prototype.anchor.apply(this,arguments),d=this.options.x||0,h=this.options.y||0;c.absolutePosition.x-=d;c.absolutePosition.y-=h;c.relativePosition.x-=d;c.relativePosition.y-=h;return c};e.prototype.position=function(a){var b=this.graphic,d=this.annotation.chart,f=this.points[0],g=this.options,q=a.absolutePosition,
p=a.relativePosition,x=f.series.visible&&m.prototype.isInsidePlot.call(f);if(b&&x){var t=b.width;a=void 0===t?0:t;t=b.height;var n=void 0===t?0:t;g.distance?t=k.prototype.getPosition.call({chart:d,distance:h(g.distance,16)},a,n,{plotX:p.x,plotY:p.y,negative:f.negative,ttBelow:f.ttBelow,h:p.height||p.width}):g.positioner?t=g.positioner.call(this):(f={x:q.x,y:q.y,width:0,height:0},t=e.alignedPosition(c(g,{width:a,height:n}),f),"justify"===this.options.overflow&&(t=e.alignedPosition(e.justifiedOptions(d,
b,g,t),f)));g.crop&&(b=t.x-d.plotLeft,g=t.y-d.plotTop,x=d.isInsidePlot(b,g)&&d.isInsidePlot(b+a,g+n))}return x?t:null};e.attrsMap={backgroundColor:"fill",borderColor:"stroke",borderWidth:"stroke-width",zIndex:"zIndex",borderRadius:"r",padding:"padding"};e.shapesWithoutBackground=["connector"];return e}(e)});r(e,"Extensions/Annotations/Controllables/ControllableImage.js",[e["Extensions/Annotations/Controllables/Controllable.js"],e["Extensions/Annotations/Controllables/ControllableLabel.js"]],function(e,
l){var m=this&&this.__extends||function(){var e=function(k,g){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,a){d.__proto__=a}||function(d,a){for(var c in a)a.hasOwnProperty(c)&&(d[c]=a[c])};return e(k,g)};return function(k,g){function d(){this.constructor=k}e(k,g);k.prototype=null===g?Object.create(g):(d.prototype=g.prototype,new d)}}();return function(e){function k(g,d,a){g=e.call(this,g,d,a,"shape")||this;g.type="image";g.translate=e.prototype.translateShape;return g}m(k,e);
k.prototype.render=function(g){var d=this.attrsFromOptions(this.options),a=this.options;this.graphic=this.annotation.chart.renderer.image(a.src,0,-9E9,a.width,a.height).attr(d).add(g);this.graphic.width=a.width;this.graphic.height=a.height;e.prototype.render.call(this)};k.prototype.redraw=function(g){if(this.graphic){var d=this.anchor(this.points[0]);if(d=l.prototype.position.call(this,d))this.graphic[g?"animate":"attr"]({x:d.x,y:d.y});else this.graphic.attr({x:0,y:-9E9});this.graphic.placed=!!d}e.prototype.redraw.call(this,
g)};k.attrsMap={width:"width",height:"height",zIndex:"zIndex"};return k}(e)});r(e,"Core/Chart/ChartNavigationComposition.js",[],function(){var e;(function(e){e.compose=function(e){e.navigation||(e.navigation=new m(e));return e};var m=function(){function e(e){this.updates=[];this.chart=e}e.prototype.addUpdate=function(e){this.chart.navigation.updates.push(e)};e.prototype.update=function(e,g){var d=this;this.updates.forEach(function(a){a.call(d.chart,e,g)})};return e}();e.Additions=m})(e||(e={}));return e});
r(e,"Extensions/Annotations/NavigationBindingsUtilities.js",[e["Core/Utilities.js"]],function(e){var l=e.defined,m=e.isNumber,k=e.pick,n={backgroundColor:"string",borderColor:"string",borderRadius:"string",color:"string",fill:"string",fontSize:"string",labels:"string",name:"string",stroke:"string",title:"string"};return{annotationsFieldsTypes:n,getAssignedAxis:function(e){return e.filter(function(d){var a=d.axis.getExtremes(),c=a.min;a=a.max;var b=k(d.axis.minPointOffset,0);return m(c)&&m(a)&&d.value>=
c-b&&d.value<=a+b&&!d.axis.options.isInternal})[0]},getFieldType:function(e,d){e=n[e];d=typeof d;l(e)&&(d=e);return{string:"text",number:"number","boolean":"checkbox"}[d]}}});r(e,"Extensions/Annotations/NavigationBindingsDefaults.js",[e["Extensions/Annotations/NavigationBindingsUtilities.js"],e["Core/Utilities.js"]],function(e,l){var m=e.getAssignedAxis,k=l.isNumber,n=l.merge;return{lang:{navigation:{popup:{simpleShapes:"Simple shapes",lines:"Lines",circle:"Circle",ellipse:"Ellipse",rectangle:"Rectangle",
label:"Label",shapeOptions:"Shape options",typeOptions:"Details",fill:"Fill",format:"Text",strokeWidth:"Line width",stroke:"Line color",title:"Title",name:"Name",labelOptions:"Label options",labels:"Labels",backgroundColor:"Background color",backgroundColors:"Background colors",borderColor:"Border color",borderRadius:"Border radius",borderWidth:"Border width",style:"Style",padding:"Padding",fontSize:"Font size",color:"Color",height:"Height",shapes:"Shape options"}}},navigation:{bindingsClassName:"highcharts-bindings-container",
bindings:{circleAnnotation:{className:"highcharts-circle-annotation",start:function(e){var d=this.chart.pointer.getCoordinates(e);e=m(d.xAxis);d=m(d.yAxis);var a=this.chart.options.navigation;if(e&&d)return this.chart.addAnnotation(n({langKey:"circle",type:"basicAnnotation",shapes:[{type:"circle",point:{x:e.value,y:d.value,xAxis:e.axis.options.index,yAxis:d.axis.options.index},r:5}]},a.annotationsOptions,a.bindings.circleAnnotation.annotationsOptions))},steps:[function(e,d){var a=d.options.shapes;
a=a&&a[0]&&a[0].point||{};if(k(a.xAxis)&&k(a.yAxis)){var c=this.chart.inverted;var b=this.chart.xAxis[a.xAxis].toPixels(a.x);a=this.chart.yAxis[a.yAxis].toPixels(a.y);c=Math.max(Math.sqrt(Math.pow(c?a-e.chartX:b-e.chartX,2)+Math.pow(c?b-e.chartY:a-e.chartY,2)),5)}d.update({shapes:[{r:c}]})}]},ellipseAnnotation:{className:"highcharts-ellipse-annotation",start:function(e){var d=this.chart.pointer.getCoordinates(e);e=m(d.xAxis);d=m(d.yAxis);var a=this.chart.options.navigation;if(e&&d)return this.chart.addAnnotation(n({langKey:"ellipse",
type:"basicAnnotation",shapes:[{type:"ellipse",xAxis:e.axis.options.index,yAxis:d.axis.options.index,points:[{x:e.value,y:d.value},{x:e.value,y:d.value}],ry:1}]},a.annotationsOptions,a.bindings.ellipseAnnotation.annotationOptions))},steps:[function(e,d){d=d.shapes[0];var a=d.getAbsolutePosition(d.points[1]);d.translatePoint(e.chartX-a.x,e.chartY-a.y,1);d.redraw(!1)},function(e,d){d=d.shapes[0];var a=d.getAbsolutePosition(d.points[0]),c=d.getAbsolutePosition(d.points[1]);e=d.getDistanceFromLine(a,
c,e.chartX,e.chartY);a=d.getYAxis();e=Math.abs(a.toValue(0)-a.toValue(e));d.setYRadius(e);d.redraw(!1)}]},rectangleAnnotation:{className:"highcharts-rectangle-annotation",start:function(e){e=this.chart.pointer.getCoordinates(e);var d=m(e.xAxis),a=m(e.yAxis);if(d&&a){e=d.value;var c=a.value;d=d.axis.options.index;a=a.axis.options.index;var b=this.chart.options.navigation;return this.chart.addAnnotation(n({langKey:"rectangle",type:"basicAnnotation",shapes:[{type:"path",points:[{xAxis:d,yAxis:a,x:e,
y:c},{xAxis:d,yAxis:a,x:e,y:c},{xAxis:d,yAxis:a,x:e,y:c},{xAxis:d,yAxis:a,x:e,y:c},{command:"Z"}]}]},b.annotationsOptions,b.bindings.rectangleAnnotation.annotationsOptions))}},steps:[function(e,d){var a=d.options.shapes;a=a&&a[0]&&a[0].points||[];var c=this.chart.pointer.getCoordinates(e);e=m(c.xAxis);c=m(c.yAxis);e&&c&&(e=e.value,c=c.value,a[1].x=e,a[2].x=e,a[2].y=c,a[3].y=c,d.update({shapes:[{points:a}]}))}]},labelAnnotation:{className:"highcharts-label-annotation",start:function(e){var d=this.chart.pointer.getCoordinates(e);
e=m(d.xAxis);d=m(d.yAxis);var a=this.chart.options.navigation;if(e&&d)return this.chart.addAnnotation(n({langKey:"label",type:"basicAnnotation",labelOptions:{format:"{y:.2f}"},labels:[{point:{xAxis:e.axis.options.index,yAxis:d.axis.options.index,x:e.value,y:d.value},overflow:"none",crop:!0}]},a.annotationsOptions,a.bindings.labelAnnotation.annotationsOptions))}}},events:{},annotationsOptions:{animation:{defer:0}}}}});r(e,"Extensions/Annotations/NavigationBindings.js",[e["Core/Chart/ChartNavigationComposition.js"],
e["Core/Defaults.js"],e["Core/FormatUtilities.js"],e["Core/Globals.js"],e["Extensions/Annotations/NavigationBindingsDefaults.js"],e["Extensions/Annotations/NavigationBindingsUtilities.js"],e["Core/Utilities.js"]],function(e,l,m,k,n,g,d){function a(a,b){var c=w.Element.prototype,d=c.matches||c.msMatchesSelector||c.webkitMatchesSelector,e=null;if(c.closest)e=c.closest.call(a,b);else{do{if(d.call(a,b))return a;a=a.parentElement||a.parentNode}while(null!==a&&1===a.nodeType)}return e}function c(){this.chart.navigationBindings&&
this.chart.navigationBindings.deselectAnnotation()}function b(){this.navigationBindings&&this.navigationBindings.destroy()}function h(){var a=this.options;a&&a.navigation&&a.navigation.bindings&&(this.navigationBindings=new J(this,a.navigation),this.navigationBindings.initEvents(),this.navigationBindings.initUpdate())}function f(){var a=this.navigationBindings;if(this&&a){var b=!1;this.series.forEach(function(a){!a.options.isInternal&&a.visible&&(b=!0)});if(this.navigationBindings&&this.navigationBindings.container&&
this.navigationBindings.container[0]){var c=this.navigationBindings.container[0];A(a.boundClassNames,function(a,d){if(d=c.querySelectorAll("."+d))for(var e=0;e<d.length;e++){var h=d[e],f=h.className;"normal"===a.noDataState?-1!==f.indexOf("highcharts-disabled-btn")&&h.classList.remove("highcharts-disabled-btn"):b?-1!==f.indexOf("highcharts-disabled-btn")&&h.classList.remove("highcharts-disabled-btn"):-1===f.indexOf("highcharts-disabled-btn")&&(h.className+=" highcharts-disabled-btn")}})}}}function q(){this.deselectAnnotation()}
function x(){this.selectedButtonElement=null}function p(a){var b=a.prototype.defaultOptions.events&&a.prototype.defaultOptions.events.click;K(!0,a.prototype.defaultOptions.events,{click:function(a){var c=this,d=c.chart.navigationBindings,e=d.activeAnnotation;b&&b.call(c,a);e!==c?(d.deselectAnnotation(),d.activeAnnotation=c,c.setControlPointsVisibility(!0),t(d,"showPopup",{annotation:c,formType:"annotation-toolbar",options:d.annotationToFields(c),onSubmit:function(a){if("remove"===a.actionType)d.activeAnnotation=
!1,d.chart.removeAnnotation(c);else{var b={};d.fieldsToOptions(a.fields,b);d.deselectAnnotation();a=b.typeOptions;"measure"===c.options.type&&(a.crosshairY.enabled=0!==a.crosshairY.strokeWidth,a.crosshairX.enabled=0!==a.crosshairX.strokeWidth);c.update(b)}}})):t(d,"closePopup");a.activeAnnotation=!0}})}var v=l.setOptions,D=m.format,z=k.doc,w=k.win,y=g.getFieldType,u=d.addEvent,E=d.attr,t=d.fireEvent,C=d.isArray,B=d.isFunction,r=d.isNumber,I=d.isObject,K=d.merge,A=d.objectEach,G=d.pick,F=[],J=function(){function d(a,
b){this.selectedButton=this.boundClassNames=void 0;this.chart=a;this.options=b;this.eventsToUnbind=[];this.container=this.chart.container.getElementsByClassName(this.options.bindingsClassName||"");this.container.length||(this.container=z.getElementsByClassName(this.options.bindingsClassName||""))}d.compose=function(a,e){-1===F.indexOf(a)&&(F.push(a),u(a,"remove",c),p(a),A(a.types,function(a){p(a)}));-1===F.indexOf(e)&&(F.push(e),u(e,"destroy",b),u(e,"load",h),u(e,"render",f));-1===F.indexOf(d)&&(F.push(d),
u(d,"closePopup",q),u(d,"deselectButton",x));-1===F.indexOf(v)&&(F.push(v),v(n))};d.prototype.initEvents=function(){var a=this,b=a.chart,c=a.container,d=a.options;a.boundClassNames={};A(d.bindings||{},function(b){a.boundClassNames[b.className]=b});[].forEach.call(c,function(b){a.eventsToUnbind.push(u(b,"click",function(c){var d=a.getButtonEvents(b,c);d&&-1===d.button.className.indexOf("highcharts-disabled-btn")&&a.bindingsButtonClick(d.button,d.events,c)}))});A(d.events||{},function(b,c){B(b)&&a.eventsToUnbind.push(u(a,
c,b,{passive:!1}))});a.eventsToUnbind.push(u(b.container,"click",function(c){!b.cancelClick&&b.isInsidePlot(c.chartX-b.plotLeft,c.chartY-b.plotTop,{visiblePlotOnly:!0})&&a.bindingsChartClick(this,c)}));a.eventsToUnbind.push(u(b.container,k.isTouchDevice?"touchmove":"mousemove",function(b){a.bindingsContainerMouseMove(this,b)},k.isTouchDevice?{passive:!1}:void 0))};d.prototype.initUpdate=function(){var a=this;e.compose(this.chart).navigation.addUpdate(function(b){a.update(b)})};d.prototype.bindingsButtonClick=
function(a,b,c){var d=this.chart,e=d.renderer.boxWrapper,h=!0;this.selectedButtonElement&&(this.selectedButtonElement.classList===a.classList&&(h=!1),t(this,"deselectButton",{button:this.selectedButtonElement}),this.nextEvent&&(this.currentUserDetails&&"annotations"===this.currentUserDetails.coll&&d.removeAnnotation(this.currentUserDetails),this.mouseMoveEvent=this.nextEvent=!1));h?(this.selectedButton=b,this.selectedButtonElement=a,t(this,"selectButton",{button:a}),b.init&&b.init.call(this,a,c),
(b.start||b.steps)&&d.renderer.boxWrapper.addClass("highcharts-draw-mode")):(d.stockTools&&d.stockTools.toggleButtonActiveClass(a),e.removeClass("highcharts-draw-mode"),this.mouseMoveEvent=this.nextEvent=!1,this.selectedButton=null)};d.prototype.bindingsChartClick=function(b,c){b=this.chart;var d=this.activeAnnotation,e=this.selectedButton;b=b.renderer.boxWrapper;d&&(d.cancelClick||c.activeAnnotation||!c.target.parentNode||a(c.target,".highcharts-popup")?d.cancelClick&&setTimeout(function(){d.cancelClick=
!1},0):t(this,"closePopup"));e&&e.start&&(this.nextEvent?(this.nextEvent(c,this.currentUserDetails),this.steps&&(this.stepIndex++,e.steps[this.stepIndex]?this.mouseMoveEvent=this.nextEvent=e.steps[this.stepIndex]:(t(this,"deselectButton",{button:this.selectedButtonElement}),b.removeClass("highcharts-draw-mode"),e.end&&e.end.call(this,c,this.currentUserDetails),this.mouseMoveEvent=this.nextEvent=!1,this.selectedButton=null))):(this.currentUserDetails=e.start.call(this,c))&&e.steps?(this.stepIndex=
0,this.steps=!0,this.mouseMoveEvent=this.nextEvent=e.steps[this.stepIndex]):(t(this,"deselectButton",{button:this.selectedButtonElement}),b.removeClass("highcharts-draw-mode"),this.steps=!1,this.selectedButton=null,e.end&&e.end.call(this,c,this.currentUserDetails)))};d.prototype.bindingsContainerMouseMove=function(a,b){this.mouseMoveEvent&&this.mouseMoveEvent(b,this.currentUserDetails)};d.prototype.fieldsToOptions=function(a,b){A(a,function(a,c){var d=parseFloat(a),e=c.split("."),h=e.length-1;!r(d)||
a.match(/px/g)||c.match(/format/g)||(a=d);if("undefined"!==a){var f=b;e.forEach(function(b,c){var d=G(e[c+1],"");h===c?f[b]=a:(f[b]||(f[b]=d.match(/\d/g)?[]:{}),f=f[b])})}});return b};d.prototype.deselectAnnotation=function(){this.activeAnnotation&&(this.activeAnnotation.setControlPointsVisibility(!1),this.activeAnnotation=!1)};d.prototype.annotationToFields=function(a){function b(c,d,e,f,q){if(e&&c&&-1===g.indexOf(d)&&(0<=(e.indexOf&&e.indexOf(d))||e[d]||!0===e))if(C(c))f[d]=[],c.forEach(function(a,
c){I(a)?(f[d][c]={},A(a,function(a,e){b(a,e,h[d],f[d][c],d)})):b(a,0,h[d],f[d],d)});else if(I(c)){var p={};C(f)?(f.push(p),p[d]={},p=p[d]):f[d]=p;A(c,function(a,c){b(a,c,0===d?e:h[d],p,d)})}else"format"===d?f[d]=[D(c,a.labels[0].points[0]).toString(),"text"]:C(f)?f.push([c,y(q,c)]):f[d]=[c,y(d,c)]}var c=a.options,e=d.annotationsEditable,h=e.nestedOptions,f=G(c.type,c.shapes&&c.shapes[0]&&c.shapes[0].type,c.labels&&c.labels[0]&&c.labels[0].type,"label"),g=d.annotationsNonEditable[c.langKey]||[],q=
{langKey:c.langKey,type:f};A(c,function(a,d){"typeOptions"===d?(q[d]={},A(c[d],function(a,c){b(a,c,h,q[d],c)})):b(a,d,e[f],q,d)});return q};d.prototype.getClickedClassNames=function(a,b){var c=b.target;b=[];for(var d;c&&((d=E(c,"class"))&&(b=b.concat(d.split(" ").map(function(a){return[a,c]}))),c=c.parentNode,c!==a););return b};d.prototype.getButtonEvents=function(a,b){var c=this,d;this.getClickedClassNames(a,b).forEach(function(a){c.boundClassNames[a[0]]&&!d&&(d={events:c.boundClassNames[a[0]],button:a[1]})});
return d};d.prototype.update=function(a){this.options=K(!0,this.options,a);this.removeEvents();this.initEvents()};d.prototype.removeEvents=function(){this.eventsToUnbind.forEach(function(a){return a()})};d.prototype.destroy=function(){this.removeEvents()};d.annotationsEditable={nestedOptions:{labelOptions:["style","format","backgroundColor"],labels:["style"],label:["style"],style:["fontSize","color"],background:["fill","strokeWidth","stroke"],innerBackground:["fill","strokeWidth","stroke"],outerBackground:["fill",
"strokeWidth","stroke"],shapeOptions:["fill","strokeWidth","stroke"],shapes:["fill","strokeWidth","stroke"],line:["strokeWidth","stroke"],backgroundColors:[!0],connector:["fill","strokeWidth","stroke"],crosshairX:["strokeWidth","stroke"],crosshairY:["strokeWidth","stroke"]},circle:["shapes"],ellipse:["shapes"],verticalLine:[],label:["labelOptions"],measure:["background","crosshairY","crosshairX"],fibonacci:[],tunnel:["background","line","height"],pitchfork:["innerBackground","outerBackground"],rect:["shapes"],
crookedLine:[],basicAnnotation:["shapes","labelOptions"]};d.annotationsNonEditable={rectangle:["crosshairX","crosshairY","labelOptions"],ellipse:["labelOptions"],circle:["labelOptions"]};return d}();"";return J});r(e,"Extensions/Annotations/Popup/PopupAnnotations.js",[e["Core/Globals.js"],e["Core/Utilities.js"]],function(e,l){function m(b,e,x,p,v,l){var f=this;if(e){var q=this.addInput,y=this.lang,u,E;c(p,function(c,h){u=""!==x?x+"."+h:h;a(c)&&(!d(c)||d(c)&&a(c[0])?(E=y[h]||h,E.match(/\d/g)||v.push([!0,
E,b]),m.call(f,b,e,u,c,v,!1)):v.push([f,u,"annotation",b,c]))});l&&(h(v,function(a){return a[1].match(/format/g)?-1:1}),n&&v.reverse(),v.forEach(function(a){!0===a[0]?g("span",{className:"highcharts-annotation-title"},void 0,a[2]).appendChild(k.createTextNode(a[1])):(a[4]={value:a[4][0],type:a[4][1]},q.apply(a[0],a.splice(1)))}))}}var k=e.doc,n=e.isFirefox,g=l.createElement,d=l.isArray,a=l.isObject,c=l.objectEach,b=l.pick,h=l.stableSort;return{addForm:function(a,b,c,d){if(a){var e=this.container,
h=this.lang,f=g("h2",{className:"highcharts-popup-main-title"},void 0,e);f.appendChild(k.createTextNode(h[b.langKey]||b.langKey||""));f=g("div",{className:"highcharts-popup-lhs-col highcharts-popup-lhs-full"},void 0,e);var q=g("div",{className:"highcharts-popup-bottom-row"},void 0,e);m.call(this,f,a,"",b,[],!0);this.addButton(q,d?h.addButton||"Add":h.saveButton||"Save",d?"add":"save",e,c)}},addToolbar:function(a,c,d){var e=this,h=this.lang,f=this.container,q=this.showForm;-1===f.className.indexOf("highcharts-annotation-toolbar")&&
(f.className+=" highcharts-annotation-toolbar");a&&(f.style.top=a.plotTop+10+"px");g("span",void 0,void 0,f).appendChild(k.createTextNode(b(h[c.langKey]||c.langKey,c.shapes&&c.shapes[0].type,"")));var w=this.addButton(f,h.removeButton||"Remove","remove",f,d);w.className+=" highcharts-annotation-remove-button";w.style["background-image"]="url("+this.iconsURL+"destroy.svg)";w=this.addButton(f,h.editButton||"Edit","edit",f,function(){q.call(e,"annotation-edit",a,c,d)});w.className+=" highcharts-annotation-edit-button";
w.style["background-image"]="url("+this.iconsURL+"edit.svg)"}}});r(e,"Extensions/Annotations/Popup/PopupIndicators.js",[e["Core/Renderer/HTML/AST.js"],e["Core/Globals.js"],e["Extensions/Annotations/NavigationBindingsUtilities.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(e,l,m,k,n){function g(a){var b=w("div",{className:"highcharts-popup-lhs-col"},void 0,a);a=w("div",{className:"highcharts-popup-rhs-col"},void 0,a);w("div",{className:"highcharts-popup-rhs-col-wrapper"},
void 0,a);return{lhsCol:b,rhsCol:a}}function d(b,c,d,h){var g=this,G=g.lang,y=c.querySelectorAll(".highcharts-popup-lhs-col")[0];c=c.querySelectorAll(".highcharts-popup-rhs-col")[0];var k="edit"===d;d=k?b.series:b.options.plotOptions||{};if(b||!d){var m,l=[];k||u(d)?u(d)&&(l=q.call(this,d)):l=f.call(this,d,h);C(l,function(a,b){a=a.indicatorFullName.toLowerCase();b=b.indicatorFullName.toLowerCase();return a<b?-1:a>b?1:0});y.children[1]&&y.children[1].remove();var A=w("ul",{className:"highcharts-indicator-list"},
void 0,y),t=c.querySelectorAll(".highcharts-popup-rhs-col-wrapper")[0];l.forEach(function(c){var d=c.indicatorFullName,h=c.indicatorType,f=c.series;m=w("li",{className:"highcharts-indicator-list"},void 0,A);m.appendChild(v.createTextNode(d));["click","touchstart"].forEach(function(c){z(m,c,function(){var c=t.parentNode.children[1],d=f.params||f.options.params;t.innerHTML=e.emptyHTML;w("h3",{className:"highcharts-indicator-title"},void 0,t).appendChild(v.createTextNode(x(f,h).indicatorFullName));w("input",
{type:"hidden",name:"highcharts-type-"+h,value:h},void 0,t);p.call(g,h,"series",b,t,f,f.linkedParent&&f.linkedParent.options.id);d.volumeSeriesID&&p.call(g,h,"volume",b,t,f,f.linkedParent&&d.volumeSeriesID);a.call(g,b,"params",d,h,t);c&&(c.style.display="block");k&&f.options&&w("input",{type:"hidden",name:"highcharts-id-"+h,value:f.options.id},void 0,t).setAttribute("highcharts-data-series-id",f.options.id)})})});0<A.childNodes.length?A.childNodes[0].click():k||(e.setElementHTML(t.parentNode.children[0],
G.noFilterMatch||""),t.parentNode.children[1].style.display="none")}}function a(c,d,e,f,g){var q=this;if(c){var p=this.addInput;t(e,function(e,G){var k=d+"."+G;y(e)&&k&&(E(e)&&(p.call(q,k,f,g,{}),a.call(q,c,k,e,f,g)),k in r?(k=b.call(q,f,k,g),h.call(q,c,d,k,f,G,e)):"params.volumeSeriesID"===k||u(e)||p.call(q,k,f,g,{value:e,type:"number"}))})}}function c(a,b){var c=this,e=b.querySelectorAll(".highcharts-popup-lhs-col")[0];b=this.lang.clearFilter;e=w("div",{className:"highcharts-input-wrapper"},void 0,
e);var h=this.addInput("searchIndicators","input",e,{value:"",type:"text",htmlFor:"search-indicators",labelClassName:"highcharts-input-search-indicators-label"}),f=w("a",{textContent:b},void 0,e);h.classList.add("highcharts-input-search-indicators");f.classList.add("clear-filter-button");z(h,"input",function(b){d.call(c,a,c.container,"add",this.value);f.style.display=this.value.length?"inline-block":"none"});["click","touchstart"].forEach(function(b){z(f,b,function(){h.value="";d.call(c,a,c.container,
"add","");f.style.display="none"})})}function b(a,b,c){var d=b.split(".");d=d[d.length-1];a="highcharts-"+b+"-type-"+a;var e=this.lang;w("label",{htmlFor:a},null,c).appendChild(v.createTextNode(e[d]||b));c=w("select",{name:a,className:"highcharts-popup-field",id:"highcharts-select-"+b},null,c);c.setAttribute("id","highcharts-select-"+b);return c}function h(a,b,c,d,e,h,f){"series"===b||"volume"===b?a.series.forEach(function(a){var d=a.options,e=d.name||d.params?a.name:d.id||"";"highcharts-navigator-series"!==
d.id&&d.id!==(f&&f.options&&f.options.id)&&(y(h)||"volume"!==b||"column"!==a.type||(h=d.id),w("option",{value:d.id},void 0,c).appendChild(v.createTextNode(e)))}):d&&e&&H[e+"-"+d].forEach(function(a){w("option",{value:a},void 0,c).appendChild(v.createTextNode(a))});y(h)&&(c.value=h)}function f(a,b){var c=this.chart&&this.chart.options.lang,d=c&&c.navigation&&c.navigation.popup&&c.navigation.popup.indicatorAliases,e=[],h;t(a,function(a,c){var f=a&&a.options;if(a.params||f&&f.params)if(f=x(a,c),c=f.indicatorFullName,
f=f.indicatorType,b){var g=b.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");g=new RegExp(g,"i");var q=d&&d[f]&&d[f].join(" ")||"";if(c.match(g)||q.match(g))h={indicatorFullName:c,indicatorType:f,series:a},e.push(h)}else h={indicatorFullName:c,indicatorType:f,series:a},e.push(h)});return e}function q(a){var b=[];a.forEach(function(a){a.is("sma")&&b.push({indicatorFullName:a.name,indicatorType:a.type,series:a})});return b}function x(a,b){var c=a.options,d=D[b]&&D[b].prototype.nameBase||b.toUpperCase();c&&c.type&&
(b=a.options.type,d=a.name);return{indicatorFullName:d,indicatorType:b}}function p(a,c,d,e,f,g){d&&(a=b.call(this,a,c,e),h.call(this,d,c,a,void 0,void 0,void 0,f),y(g)&&(a.value=g))}var v=l.doc,D=k.seriesTypes,z=n.addEvent,w=n.createElement,y=n.defined,u=n.isArray,E=n.isObject,t=n.objectEach,C=n.stableSort,r;(function(a){a[a["params.algorithm"]=0]="params.algorithm";a[a["params.average"]=1]="params.average"})(r||(r={}));var H={"algorithm-pivotpoints":["standard","fibonacci","camarilla"],"average-disparityindex":["sma",
"ema","dema","tema","wma"]};return{addForm:function(a,b,e){b=this.lang;if(a){this.tabs.init.call(this,a);var h=this.container.querySelectorAll(".highcharts-tab-item-content");g(h[0]);c.call(this,a,h[0]);d.call(this,a,h[0],"add");var f=h[0].querySelectorAll(".highcharts-popup-rhs-col")[0];this.addButton(f,b.addButton||"add","add",f,e);g(h[1]);d.call(this,a,h[1],"edit");f=h[1].querySelectorAll(".highcharts-popup-rhs-col")[0];this.addButton(f,b.saveButton||"save","edit",f,e);this.addButton(f,b.removeButton||
"remove","remove",f,e)}},getAmount:function(){var a=0;this.series.forEach(function(b){(b.params||b.options.params)&&a++});return a}}});r(e,"Extensions/Annotations/Popup/PopupTabs.js",[e["Core/Globals.js"],e["Core/Utilities.js"]],function(e,l){function m(){return c("div",{className:"highcharts-tab-item-content highcharts-no-mousewheel"},void 0,this.container)}function k(a,e){var b=this.container,h=this.lang,g="highcharts-tab-item";0===e&&(g+=" highcharts-tab-disabled");e=c("span",{className:g},void 0,
b);e.appendChild(d.createTextNode(h[a+"Button"]||a));e.setAttribute("highcharts-data-tab-type",a);return e}function n(a,c){var b=this.container.querySelectorAll(".highcharts-tab-item-content");a.className+=" highcharts-tab-item-active";b[c].className+=" highcharts-tab-item-show"}function g(b){var c=this;this.container.querySelectorAll(".highcharts-tab-item").forEach(function(d,e){0===b&&"edit"===d.getAttribute("highcharts-data-tab-type")||["click","touchstart"].forEach(function(b){a(d,b,function(){var a=
c.container,b=a.querySelectorAll(".highcharts-tab-item");a=a.querySelectorAll(".highcharts-tab-item-content");for(var d=0;d<b.length;d++)b[d].classList.remove("highcharts-tab-item-active"),a[d].classList.remove("highcharts-tab-item-show");n.call(c,this,e)})})})}var d=e.doc,a=l.addEvent,c=l.createElement;return{init:function(a){if(a){a=this.indicators.getAmount.call(a);var b=k.call(this,"add");k.call(this,"edit",a);m.call(this);m.call(this);g.call(this,a);n.call(this,b,0)}}}});r(e,"Extensions/Annotations/Popup/Popup.js",
[e["Core/Renderer/HTML/AST.js"],e["Core/Defaults.js"],e["Core/Globals.js"],e["Extensions/Annotations/Popup/PopupAnnotations.js"],e["Extensions/Annotations/Popup/PopupIndicators.js"],e["Extensions/Annotations/Popup/PopupTabs.js"],e["Core/Utilities.js"]],function(e,l,m,k,n,g,d){function a(a,b){var c=Array.prototype.slice.call(a.querySelectorAll("input")),d=Array.prototype.slice.call(a.querySelectorAll("select")),e=a.querySelectorAll("#highcharts-select-series > option:checked")[0];a=a.querySelectorAll("#highcharts-select-volume > option:checked")[0];
var h={actionType:b,linkedTo:e&&e.getAttribute("value")||"",fields:{}};c.forEach(function(a){var b=a.getAttribute("highcharts-data-name");a.getAttribute("highcharts-data-series-id")?h.seriesId=a.value:b?h.fields[b]=a.value:h.type=a.value});d.forEach(function(a){var b=a.id;"highcharts-select-series"!==b&&"highcharts-select-volume"!==b&&(b=b.split("highcharts-select-")[1],h.fields[b]=a.value)});a&&(h.fields["params.volumeSeriesID"]=a.getAttribute("value")||"");return h}var c=l.getOptions,b=m.doc,h=
d.addEvent,f=d.createElement;l=d.extend;var q=d.fireEvent,x=d.pick;d=function(){function d(a,b,d){this.chart=d;this.iconsURL=b;this.lang=c().lang.navigation.popup;this.container=f("div",{className:"highcharts-popup highcharts-no-tooltip"},void 0,a);h(this.container,"mousedown",function(){var a=d&&d.navigationBindings&&d.navigationBindings.activeAnnotation;if(a){a.cancelClick=!0;var b=h(m.doc,"click",function(){setTimeout(function(){a.cancelClick=!1},0);b()})}});this.addCloseBtn()}d.prototype.init=
function(a,b,c){d.call(this,a,b,c)};d.prototype.addCloseBtn=function(){var a=this,b=this.iconsURL,c=f("div",{className:"highcharts-popup-close"},void 0,this.container);c.style["background-image"]="url("+(b.match(/png|svg|jpeg|jpg|gif/ig)?b:b+"close.svg")+")";["click","touchstart"].forEach(function(b){h(c,b,function(){a.chart?q(a.chart.navigationBindings,"closePopup"):a.closePopup()})})};d.prototype.addInput=function(a,c,d,e){var h=a.split(".");h=h[h.length-1];var g=this.lang;c="highcharts-"+c+"-"+
x(e.htmlFor,h);c.match(/\d/g)||f("label",{htmlFor:c,className:e.labelClassName},void 0,d).appendChild(b.createTextNode(g[h]||h));d=f("input",{name:c,value:e.value,type:e.type,className:"highcharts-popup-field"},void 0,d);d.setAttribute("highcharts-data-name",a);return d};d.prototype.addButton=function(c,d,e,g,q){var k=this,p=f("button",void 0,void 0,c);p.appendChild(b.createTextNode(d));q&&["click","touchstart"].forEach(function(b){h(p,b,function(){k.closePopup();return q(a(g,e))})});return p};d.prototype.showPopup=
function(){var a=this.container,b=a.querySelectorAll(".highcharts-popup-close")[0];this.formType=void 0;a.innerHTML=e.emptyHTML;0<=a.className.indexOf("highcharts-annotation-toolbar")&&(a.classList.remove("highcharts-annotation-toolbar"),a.removeAttribute("style"));a.appendChild(b);a.style.display="block";a.style.height=""};d.prototype.closePopup=function(){this.container.style.display="none"};d.prototype.showForm=function(a,b,c,d){b&&(this.showPopup(),"indicators"===a&&this.indicators.addForm.call(this,
b,c,d),"annotation-toolbar"===a&&this.annotations.addToolbar.call(this,b,c,d),"annotation-edit"===a&&this.annotations.addForm.call(this,b,c,d),"flag"===a&&this.annotations.addForm.call(this,b,c,d,!0),this.formType=a,this.container.style.height=this.container.offsetHeight+"px")};return d}();l(d.prototype,{annotations:k,indicators:n,tabs:g});return d});r(e,"Extensions/Annotations/Popup/PopupComposition.js",[e["Extensions/Annotations/Popup/Popup.js"],e["Core/Utilities.js"]],function(e,l){function m(){this.popup&&
this.popup.closePopup()}function k(a){this.popup||(this.popup=new e(this.chart.container,this.chart.options.navigation.iconsURL||this.chart.options.stockTools&&this.chart.options.stockTools.gui.iconsURL||"https://code.highcharts.com/10.3.1/gfx/stock-icons/",this.chart));this.popup.showForm(a.formType,this.chart,a.options,a.onSubmit)}function n(a,b){this.inClass(b.target,"highcharts-popup")||a.apply(this,Array.prototype.slice.call(arguments,1))}var g=l.addEvent,d=l.wrap,a=[];return{compose:function(c,
b){-1===a.indexOf(c)&&(a.push(c),g(c,"closePopup",m),g(c,"showPopup",k));-1===a.indexOf(b)&&(a.push(b),d(b.prototype,"onContainerMouseDown",n))}}});r(e,"Extensions/Annotations/Annotation.js",[e["Core/Animation/AnimationUtilities.js"],e["Extensions/Annotations/AnnotationChart.js"],e["Extensions/Annotations/AnnotationDefaults.js"],e["Extensions/Annotations/Controllables/Controllable.js"],e["Extensions/Annotations/Controllables/ControllableRect.js"],e["Extensions/Annotations/Controllables/ControllableCircle.js"],
e["Extensions/Annotations/Controllables/ControllableEllipse.js"],e["Extensions/Annotations/Controllables/ControllablePath.js"],e["Extensions/Annotations/Controllables/ControllableImage.js"],e["Extensions/Annotations/Controllables/ControllableLabel.js"],e["Extensions/Annotations/ControlPoint.js"],e["Extensions/Annotations/EventEmitter.js"],e["Extensions/Annotations/MockPoint.js"],e["Extensions/Annotations/NavigationBindings.js"],e["Extensions/Annotations/Popup/PopupComposition.js"],e["Core/Utilities.js"]],
function(e,l,m,k,n,g,d,a,c,b,h,f,q,x,p,v){function r(a){var b=a.graphic;a=a.points.some(function(a){return!1!==a.series.visible&&!1!==a.visible});b&&(a?"hidden"===b.visibility&&b.show():b.hide())}function z(a,b){var c={};["labels","shapes"].forEach(function(d){var e=a[d];e&&(c[d]=b[d]?I(b[d]).map(function(a,b){return B(e[b],a)}):a[d])});return c}var w=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,
b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function d(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)}}(),y=e.getDeferredAnimation,u=k.prototype,E=v.destroyObjectProperties,t=v.erase,C=v.fireEvent,B=v.merge,H=v.pick,I=v.splat;e=function(e){function f(a,b){var c=e.call(this)||this;c.annotation=void 0;c.coll="annotations";c.collection=void 0;c.animationConfig=void 0;c.graphic=void 0;c.group=void 0;c.labelCollector=
void 0;c.labelsGroup=void 0;c.shapesGroup=void 0;c.chart=a;c.points=[];c.controlPoints=[];c.coll="annotations";c.labels=[];c.shapes=[];c.options=B(c.defaultOptions,b);c.userOptions=b;b=z(c.options,b);c.options.labels=b.labels;c.options.shapes=b.shapes;c.init(a,c.options);return c}w(f,e);f.compose=function(c,d,e){l.compose(f,c,d);b.compose(e);a.compose(c,e);x.compose(f,c);p.compose(x,d)};f.prototype.addClipPaths=function(){this.setClipAxes();this.clipXAxis&&this.clipYAxis&&this.options.crop&&(this.clipRect=
this.chart.renderer.clipRect(this.getClipBox()))};f.prototype.addLabels=function(){var a=this,b=this.options.labels||[];b.forEach(function(c,d){c=a.initLabel(c,d);B(!0,b[d],c.options)})};f.prototype.addShapes=function(){var a=this,b=this.options.shapes||[];b.forEach(function(c,d){c=a.initShape(c,d);B(!0,b[d],c.options)})};f.prototype.destroy=function(){var a=this.chart,b=function(a){a.destroy()};this.labels.forEach(b);this.shapes.forEach(b);this.clipYAxis=this.clipXAxis=null;t(a.labelCollectors,this.labelCollector);
e.prototype.destroy.call(this);u.destroy.call(this);E(this,a)};f.prototype.destroyItem=function(a){t(this[a.itemType+"s"],a);a.destroy()};f.prototype.getClipBox=function(){if(this.clipXAxis&&this.clipYAxis)return{x:this.clipXAxis.left,y:this.clipYAxis.top,width:this.clipXAxis.width,height:this.clipYAxis.height}};f.prototype.init=function(a,b,c){a=this.chart;b=this.options.animation;this.linkPoints();this.addControlPoints();this.addShapes();this.addLabels();this.setLabelCollector();this.animationConfig=
y(a,b)};f.prototype.initLabel=function(a,c){a=B(this.options.labelOptions,{controlPointOptions:this.options.controlPointOptions},a);c=new b(this,a,c);c.itemType="label";this.labels.push(c);return c};f.prototype.initShape=function(a,b){a=B(this.options.shapeOptions,{controlPointOptions:this.options.controlPointOptions},a);b=new f.shapesMap[a.type](this,a,b);b.itemType="shape";this.shapes.push(b);return b};f.prototype.redraw=function(a){this.linkPoints();this.graphic||this.render();this.clipRect&&this.clipRect.animate(this.getClipBox());
this.redrawItems(this.shapes,a);this.redrawItems(this.labels,a);u.redraw.call(this,a)};f.prototype.redrawItem=function(a,b){a.linkPoints();a.shouldBeDrawn()?(a.graphic||this.renderItem(a),a.redraw(H(b,!0)&&a.graphic.placed),a.points.length&&r(a)):this.destroyItem(a)};f.prototype.redrawItems=function(a,b){for(var c=a.length;c--;)this.redrawItem(a[c],b)};f.prototype.remove=function(){return this.chart.removeAnnotation(this)};f.prototype.render=function(){var a=this.chart.renderer;this.graphic=a.g("annotation").attr({opacity:0,
zIndex:this.options.zIndex,visibility:this.options.visible?"inherit":"hidden"}).add();this.shapesGroup=a.g("annotation-shapes").add(this.graphic);this.options.crop&&this.shapesGroup.clip(this.chart.plotBoxClip);this.labelsGroup=a.g("annotation-labels").attr({translateX:0,translateY:0}).add(this.graphic);this.addClipPaths();this.clipRect&&this.graphic.clip(this.clipRect);this.renderItems(this.shapes);this.renderItems(this.labels);this.addEvents();u.render.call(this)};f.prototype.renderItem=function(a){a.render("label"===
a.itemType?this.labelsGroup:this.shapesGroup)};f.prototype.renderItems=function(a){for(var b=a.length;b--;)this.renderItem(a[b])};f.prototype.setClipAxes=function(){var a=this.chart.xAxis,b=this.chart.yAxis,c=(this.options.labels||[]).concat(this.options.shapes||[]).reduce(function(c,d){d=d&&(d.point||d.points&&d.points[0]);return[a[d&&d.xAxis]||c[0],b[d&&d.yAxis]||c[1]]},[]);this.clipXAxis=c[0];this.clipYAxis=c[1]};f.prototype.setControlPointsVisibility=function(a){var b=function(b){b.setControlPointsVisibility(a)};
u.setControlPointsVisibility.call(this,a);this.shapes.forEach(b);this.labels.forEach(b)};f.prototype.setLabelCollector=function(){var a=this;a.labelCollector=function(){return a.labels.reduce(function(a,b){b.options.allowOverlap||a.push(b.graphic);return a},[])};a.chart.labelCollectors.push(a.labelCollector)};f.prototype.setOptions=function(a){this.options=B(this.defaultOptions,a)};f.prototype.setVisibility=function(a){var b=this.options,c=this.chart.navigationBindings;a=H(a,!b.visible);this.graphic.attr("visibility",
a?"inherit":"hidden");a||(this.setControlPointsVisibility(!1),c.activeAnnotation===this&&c.popup&&"annotation-toolbar"===c.popup.formType&&C(c,"closePopup"));b.visible=a};f.prototype.update=function(a,b){var c=this.chart,d=z(this.userOptions,a),e=c.annotations.indexOf(this);a=B(!0,this.userOptions,a);a.labels=d.labels;a.shapes=d.shapes;this.destroy();this.constructor(c,a);c.options.annotations[e]=a;this.isUpdating=!0;H(b,!0)&&c.redraw();C(this,"afterUpdate");this.isUpdating=!1};f.ControlPoint=h;f.MockPoint=
q;f.shapesMap={rect:n,circle:g,ellipse:d,path:a,image:c};f.types={};return f}(f);B(!0,e.prototype,k.prototype,B(e.prototype,{nonDOMEvents:["add","afterUpdate","drag","remove"],defaultOptions:m}));"";return e});r(e,"Extensions/Annotations/Types/BasicAnnotation.js",[e["Extensions/Annotations/Annotation.js"],e["Extensions/Annotations/MockPoint.js"],e["Core/Utilities.js"]],function(e,l,m){var k=this&&this.__extends||function(){var e=function(d,a){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&
function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return e(d,a)};return function(d,a){function c(){this.constructor=d}e(d,a);d.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)}}();m=m.merge;var n=function(g){function d(){return null!==g&&g.apply(this,arguments)||this}k(d,g);d.prototype.addControlPoints=function(){var a=this.options,c=d.basicControlPoints,b=this.basicType;(a.labels||a.shapes||[]).forEach(function(a){a.controlPoints=c[b]})};
d.prototype.init=function(){var a=this.options;a.shapes?(delete a.labelOptions,this.basicType=(a=a.shapes[0].type)&&"path"!==a?a:"rectangle"):(delete a.shapes,this.basicType="label");e.prototype.init.apply(this,arguments)};d.basicControlPoints={label:[{symbol:"triangle-down",positioner:function(a){if(!a.graphic.placed)return{x:0,y:-9E7};a=l.pointToPixels(a.points[0]);return{x:a.x-this.graphic.width/2,y:a.y-this.graphic.height/2}},events:{drag:function(a,c){a=this.mouseMoveToTranslation(a);c.translatePoint(a.x,
a.y);c.annotation.userOptions.labels[0].point=c.options.point;c.redraw(!1)}}},{symbol:"square",positioner:function(a){return a.graphic.placed?{x:a.graphic.alignAttr.x-this.graphic.width/2,y:a.graphic.alignAttr.y-this.graphic.height/2}:{x:0,y:-9E7}},events:{drag:function(a,c){a=this.mouseMoveToTranslation(a);c.translate(a.x,a.y);c.annotation.userOptions.labels[0].point=c.options.point;c.redraw(!1)}}}],rectangle:[{positioner:function(a){a=l.pointToPixels(a.points[2]);return{x:a.x-4,y:a.y-4}},events:{drag:function(a,
c){var b=c.annotation,d=this.chart.pointer.getCoordinates(a);a=d.xAxis[0].value;d=d.yAxis[0].value;var e=c.options.points,g=b.userOptions.shapes;e[1].x=a;e[2].x=a;e[2].y=d;e[3].y=d;g&&g[0]&&(g[0].points=c.options.points);b.redraw(!1)}}}],circle:[{positioner:function(a){var c=l.pointToPixels(a.points[0]);a=a.options.r;return{x:c.x+a*Math.cos(Math.PI/4)-this.graphic.width/2,y:c.y+a*Math.sin(Math.PI/4)-this.graphic.height/2}},events:{drag:function(a,c){var b=c.annotation;a=this.mouseMoveToTranslation(a);
b=b.userOptions.shapes;c.setRadius(Math.max(c.options.r+a.y/Math.sin(Math.PI/4),5));b&&b[0]&&(b[0].r=c.options.r,b[0].point=c.options.point);c.redraw(!1)}}}],ellipse:[{positioner:function(a){a=a.getAbsolutePosition(a.points[0]);return{x:a.x-this.graphic.width/2,y:a.y-this.graphic.height/2}},events:{drag:function(a,c){var b=c.getAbsolutePosition(c.points[0]);c.translatePoint(a.chartX-b.x,a.chartY-b.y,0);c.redraw(!1)}}},{positioner:function(a){a=a.getAbsolutePosition(a.points[1]);return{x:a.x-this.graphic.width/
2,y:a.y-this.graphic.height/2}},events:{drag:function(a,c){var b=c.getAbsolutePosition(c.points[1]);c.translatePoint(a.chartX-b.x,a.chartY-b.y,1);c.redraw(!1)}}},{positioner:function(a){var c=a.getAbsolutePosition(a.points[0]),b=a.getAbsolutePosition(a.points[1]);a=a.getAttrs(c,b);return{x:a.cx-this.graphic.width/2+a.ry*Math.sin(a.angle*Math.PI/180),y:a.cy-this.graphic.height/2-a.ry*Math.cos(a.angle*Math.PI/180)}},events:{drag:function(a,c){var b=c.getAbsolutePosition(c.points[0]),d=c.getAbsolutePosition(c.points[1]);
a=c.getDistanceFromLine(b,d,a.chartX,a.chartY);b=c.getYAxis();a=Math.abs(b.toValue(0)-b.toValue(a));c.setYRadius(a);c.redraw(!1)}}}]};return d}(e);n.prototype.defaultOptions=m(e.prototype.defaultOptions,{});return e.types.basicAnnotation=n});r(e,"Extensions/Annotations/Types/CrookedLine.js",[e["Extensions/Annotations/Annotation.js"],e["Extensions/Annotations/ControlPoint.js"],e["Extensions/Annotations/MockPoint.js"],e["Core/Utilities.js"]],function(e,l,m,k){var n=this&&this.__extends||function(){var d=
function(a,c){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return d(a,c)};return function(a,c){function b(){this.constructor=a}d(a,c);a.prototype=null===c?Object.create(c):(b.prototype=c.prototype,new b)}}(),g=k.merge;k=function(d){function a(){return null!==d&&d.apply(this,arguments)||this}n(a,d);a.prototype.setClipAxes=function(){this.clipXAxis=this.chart.xAxis[this.options.typeOptions.xAxis];
this.clipYAxis=this.chart.yAxis[this.options.typeOptions.yAxis]};a.prototype.getPointsOptions=function(){var a=this.options.typeOptions;return(a.points||[]).map(function(b){b.xAxis=a.xAxis;b.yAxis=a.yAxis;return b})};a.prototype.getControlPointsOptions=function(){return this.getPointsOptions()};a.prototype.addControlPoints=function(){this.getControlPointsOptions().forEach(function(a,b){b=new l(this.chart,this,g(this.options.controlPointOptions,a.controlPoint),b);this.controlPoints.push(b);a.controlPoint=
b.options},this)};a.prototype.addShapes=function(){var a=this.options.typeOptions,b=this.initShape(g(a.line,{type:"path",points:this.points.map(function(a,b){return function(a){return a.annotation.points[b]}})}),0);a.line=b.options};return a}(e);k.prototype.defaultOptions=g(e.prototype.defaultOptions,{typeOptions:{xAxis:0,yAxis:0,line:{fill:"none"}},controlPointOptions:{positioner:function(d){var a=this.graphic;d=m.pointToPixels(d.points[this.index]);return{x:d.x-a.width/2,y:d.y-a.height/2}},events:{drag:function(d,
a){a.chart.isInsidePlot(d.chartX-a.chart.plotLeft,d.chartY-a.chart.plotTop,{visiblePlotOnly:!0})&&(d=this.mouseMoveToTranslation(d),a.translatePoint(d.x,d.y,this.index),a.options.typeOptions.points[this.index].x=a.points[this.index].x,a.options.typeOptions.points[this.index].y=a.points[this.index].y,a.redraw(!1))}}}});return e.types.crookedLine=k});r(e,"Extensions/Annotations/Types/ElliottWave.js",[e["Extensions/Annotations/Annotation.js"],e["Extensions/Annotations/Types/CrookedLine.js"],e["Core/Utilities.js"]],
function(e,l,m){var k=this&&this.__extends||function(){var e=function(d,a){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return e(d,a)};return function(d,a){function c(){this.constructor=d}e(d,a);d.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)}}(),n=m.merge;m=function(e){function d(){return null!==e&&e.apply(this,arguments)||this}k(d,e);d.prototype.addLabels=function(){var a=
this;this.getPointsOptions().forEach(function(c,b){var d=a.initLabel(n(c.label,{text:a.options.typeOptions.labels[b],point:function(a){return a.annotation.points[b]}}),!1);c.label=d.options})};return d}(l);m.prototype.defaultOptions=n(l.prototype.defaultOptions,{typeOptions:{labels:"(0) (A) (B) (C) (D) (E)".split(" "),line:{strokeWidth:1}},labelOptions:{align:"center",allowOverlap:!0,crop:!0,overflow:"none",type:"rect",backgroundColor:"none",borderWidth:0,y:-5}});return e.types.elliottWave=m});r(e,
"Extensions/Annotations/Types/Tunnel.js",[e["Extensions/Annotations/Annotation.js"],e["Extensions/Annotations/ControlPoint.js"],e["Extensions/Annotations/Types/CrookedLine.js"],e["Extensions/Annotations/MockPoint.js"],e["Core/Utilities.js"]],function(e,l,m,k,n){var g=this&&this.__extends||function(){var a=function(c,b){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(c,b)};return function(c,
b){function d(){this.constructor=c}a(c,b);c.prototype=null===b?Object.create(b):(d.prototype=b.prototype,new d)}}(),d=n.merge;n=function(a){function c(){return null!==a&&a.apply(this,arguments)||this}g(c,a);c.prototype.getPointsOptions=function(){var a=m.prototype.getPointsOptions.call(this);a[2]=this.heightPointOptions(a[1]);a[3]=this.heightPointOptions(a[0]);return a};c.prototype.getControlPointsOptions=function(){return this.getPointsOptions().slice(0,2)};c.prototype.heightPointOptions=function(a){a=
d(a);a.y+=this.options.typeOptions.height;return a};c.prototype.addControlPoints=function(){m.prototype.addControlPoints.call(this);var a=this.options,c=a.typeOptions;a=new l(this.chart,this,d(a.controlPointOptions,c.heightControlPoint),2);this.controlPoints.push(a);c.heightControlPoint=a.options};c.prototype.addShapes=function(){this.addLine();this.addBackground()};c.prototype.addLine=function(){var a=this.initShape(d(this.options.typeOptions.line,{type:"path",points:[this.points[0],this.points[1],
function(a){a=k.pointToOptions(a.annotation.points[2]);a.command="M";return a},this.points[3]]}),0);this.options.typeOptions.line=a.options};c.prototype.addBackground=function(){var a=this.initShape(d(this.options.typeOptions.background,{type:"path",points:this.points.slice()}),1);this.options.typeOptions.background=a.options};c.prototype.translateSide=function(a,c,d){d=Number(d);var b=0===d?3:2;this.translatePoint(a,c,d);this.translatePoint(a,c,b)};c.prototype.translateHeight=function(a){this.translatePoint(0,
a,2);this.translatePoint(0,a,3);this.options.typeOptions.height=this.points[3].y-this.points[0].y;this.userOptions.typeOptions.height=this.options.typeOptions.height};return c}(m);n.prototype.defaultOptions=d(m.prototype.defaultOptions,{typeOptions:{background:{fill:"rgba(130, 170, 255, 0.4)",strokeWidth:0},line:{strokeWidth:1},height:-2,heightControlPoint:{positioner:function(a){var c=k.pointToPixels(a.points[2]);a=k.pointToPixels(a.points[3]);var b=(c.x+a.x)/2;return{x:b-this.graphic.width/2,y:(a.y-
c.y)/(a.x-c.x)*(b-c.x)+c.y-this.graphic.height/2}},events:{drag:function(a,c){c.chart.isInsidePlot(a.chartX-c.chart.plotLeft,a.chartY-c.chart.plotTop,{visiblePlotOnly:!0})&&(c.translateHeight(this.mouseMoveToTranslation(a).y),c.redraw(!1))}}}},controlPointOptions:{events:{drag:function(a,c){c.chart.isInsidePlot(a.chartX-c.chart.plotLeft,a.chartY-c.chart.plotTop,{visiblePlotOnly:!0})&&(a=this.mouseMoveToTranslation(a),c.translateSide(a.x,a.y,!!this.index),c.redraw(!1))}}}});return e.types.tunnel=n});
r(e,"Extensions/Annotations/Types/InfinityLine.js",[e["Extensions/Annotations/Annotation.js"],e["Extensions/Annotations/Types/CrookedLine.js"],e["Extensions/Annotations/MockPoint.js"],e["Core/Utilities.js"]],function(e,l,m,k){var n=this&&this.__extends||function(){var d=function(a,c){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return d(a,c)};return function(a,c){function b(){this.constructor=
a}d(a,c);a.prototype=null===c?Object.create(c):(b.prototype=c.prototype,new b)}}(),g=k.merge;k=function(d){function a(){return null!==d&&d.apply(this,arguments)||this}n(a,d);a.edgePoint=function(c,b){return function(d){d=d.annotation;var e=d.options.typeOptions.type,h=d.points;if("horizontalLine"===e||"verticalLine"===e)h=[h[0],new m(d.chart,h[0].target,{x:h[0].x+ +("horizontalLine"===e),y:h[0].y+ +("verticalLine"===e),xAxis:h[0].options.xAxis,yAxis:h[0].options.yAxis})];return a.findEdgePoint(h[c],
h[b])}};a.findEdgeCoordinate=function(a,b,d,e){var c="x"===d?"y":"x";return(b[d]-a[d])*(e-a[c])/(b[c]-a[c])+a[d]};a.findEdgePoint=function(c,b){var d=c.series.chart,e=c.series.xAxis,g=b.series.yAxis,k=m.pointToPixels(c);b=m.pointToPixels(b);var p=b.x-k.x,l=b.y-k.y,n=e.left,z=n+e.width;e=g.top;g=e+g.height;z=0>p?n:z;var w=0>l?e:g;n={x:0===p?k.x:z,y:0===l?k.y:w};0!==p&&0!==l&&(p=a.findEdgeCoordinate(k,b,"y",z),k=a.findEdgeCoordinate(k,b,"x",w),p>=e&&p<=g?(n.x=z,n.y=p):(n.x=k,n.y=w));n.x-=d.plotLeft;
n.y-=d.plotTop;c.series.chart.inverted&&(c=n.x,n.x=n.y,n.y=c);return n};a.prototype.addShapes=function(){var c=this.options.typeOptions,b=[this.points[0],a.endEdgePoint];c.type.match(/line/gi)&&(b[0]=a.startEdgePoint);b=this.initShape(g(c.line,{type:"path",points:b}),0);c.line=b.options};a.endEdgePoint=a.edgePoint(0,1);a.startEdgePoint=a.edgePoint(1,0);return a}(l);k.prototype.defaultOptions=g(l.prototype.defaultOptions,{});e.types.infinityLine=k;"";return k});r(e,"Extensions/Annotations/Types/TimeCycles.js",
[e["Extensions/Annotations/Annotation.js"],e["Extensions/Annotations/Types/CrookedLine.js"],e["Extensions/Annotations/ControlPoint.js"],e["Core/Utilities.js"]],function(e,l,m,k){function n(a,c,d,e){for(var b=[],f=1;f<=c;f++)b.push(["A",a/2,a/2,0,1,1,d+f*a,e]);return b}var g=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,c)};return function(b,
c){function d(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)}}(),d=k.merge,a=k.isNumber,c=k.defined;k=function(b){function e(){return null!==b&&b.apply(this,arguments)||this}g(e,b);e.prototype.init=function(a,d,e){c(d.yAxis)&&d.points.forEach(function(a){a.yAxis=d.yAxis});c(d.xAxis)&&d.points.forEach(function(a){a.xAxis=d.xAxis});b.prototype.init.call(this,a,d,e)};e.prototype.setPath=function(){this.shapes[0].options.d=this.getPath()};e.prototype.getPath=
function(){return[["M",this.startX,this.y]].concat(n(this.pixelInterval,this.numberOfCircles,this.startX,this.y))};e.prototype.addShapes=function(){var a=this.options.typeOptions;this.setPathProperties();var b=this.initShape(d(a.line,{type:"path",d:this.getPath(),points:this.options.points}),0);a.line=b.options};e.prototype.addControlPoints=function(){var a=this,b=this.options,c=b.typeOptions;b.controlPointOptions.style.cursor=this.chart.inverted?"ns-resize":"ew-resize";c.controlPointOptions.forEach(function(c){c=
d(b.controlPointOptions,c);c=new m(a.chart,a,c,0);a.controlPoints.push(c)})};e.prototype.setPathProperties=function(){var b=this.options.typeOptions,c=b.points;if(c){var d=c[0],e=this.chart.xAxis[b.xAxis||0],h=this.chart.yAxis[b.yAxis||0];b=d.x;var g=d.y;d=c[1].x;b&&d&&(c=a(g)?h.toPixels(g):h.top+h.height,b=a(b)?e.toPixels(b):e.left,h=a(d)?e.toPixels(d):e.left+30,h=Math.round(Math.max(Math.abs(h-b),2)),d=Math.floor(e.len/h)+2,this.startX=b-(Math.floor((b-e.left)/h)+1)*h,this.y=c,this.pixelInterval=
h,this.numberOfCircles=d)}};e.prototype.redraw=function(a){this.setPathProperties();this.setPath();b.prototype.redraw.call(this,a)};return e}(l);k.prototype.defaultOptions=d(l.prototype.defaultOptions,{typeOptions:{controlPointOptions:[{positioner:function(a){return{x:a.anchor(a.points[0]).absolutePosition.x-this.graphic.width/2,y:a.y-this.graphic.height}},events:{drag:function(a,c){var b=c.anchor(c.points[0]).absolutePosition;c.translatePoint(a.chartX-b.x,0,0);c.redraw(!1)}}},{positioner:function(a){return{x:a.anchor(a.points[1]).absolutePosition.x-
this.graphic.width/2,y:a.y-this.graphic.height}},events:{drag:function(a,c){var b=c.anchor(c.points[1]).absolutePosition;c.translatePoint(a.chartX-b.x,0,1);c.redraw(!1)}}}]}});e.types.timeCycles=k;"";return k});r(e,"Extensions/Annotations/Types/Fibonacci.js",[e["Extensions/Annotations/Annotation.js"],e["Extensions/Annotations/MockPoint.js"],e["Extensions/Annotations/Types/Tunnel.js"],e["Core/Utilities.js"]],function(e,l,m,k){function n(a,c){return function(){var b=this.annotation;if(!b.startRetracements||
!b.endRetracements)return[];var d=this.anchor(b.startRetracements[a]).absolutePosition,e=this.anchor(b.endRetracements[a]).absolutePosition;d=[["M",Math.round(d.x),Math.round(d.y)],["L",Math.round(e.x),Math.round(e.y)]];c&&(e=this.anchor(b.endRetracements[a-1]).absolutePosition,b=this.anchor(b.startRetracements[a-1]).absolutePosition,d.push(["L",Math.round(e.x),Math.round(e.y)],["L",Math.round(b.x),Math.round(b.y)]));return d}}var g=this&&this.__extends||function(){var a=function(c,b){a=Object.setPrototypeOf||
{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(c,b)};return function(c,b){function d(){this.constructor=c}a(c,b);c.prototype=null===b?Object.create(b):(d.prototype=b.prototype,new d)}}(),d=k.merge;k=function(a){function c(){return null!==a&&a.apply(this,arguments)||this}g(c,a);c.prototype.linkPoints=function(){a.prototype.linkPoints.call(this);this.linkRetracementsPoints()};c.prototype.linkRetracementsPoints=function(){var a=
this,d=this.points,e=d[0].y-d[3].y,g=d[1].y-d[2].y,k=d[0].x,l=d[1].x;c.levels.forEach(function(b,c){var f=d[0].y-e*b;b=d[1].y-g*b;a.startRetracements=a.startRetracements||[];a.endRetracements=a.endRetracements||[];a.linkRetracementPoint(c,k,f,a.startRetracements);a.linkRetracementPoint(c,l,b,a.endRetracements)})};c.prototype.linkRetracementPoint=function(a,c,d,e){var b=e[a],f=this.options.typeOptions;b?(b.options.x=c,b.options.y=d,b.refresh()):e[a]=new l(this.chart,this,{x:c,y:d,xAxis:f.xAxis,yAxis:f.yAxis})};
c.prototype.addShapes=function(){c.levels.forEach(function(a,c){var b=this.options.typeOptions;a=b.backgroundColors;var d=b.lineColor;b=b.lineColors;this.initShape({type:"path",d:n(c),stroke:b[c]||d},c);0<c&&this.initShape({type:"path",fill:a[c-1],strokeWidth:0,d:n(c,!0)})},this)};c.prototype.addLabels=function(){c.levels.forEach(function(a,c){var b=this.options.typeOptions;a=this.initLabel(d(b.labels[c],{point:function(a){return l.pointToOptions(a.annotation.startRetracements[c])},text:a.toString()}));
b.labels[c]=a.options},this)};c.levels=[0,.236,.382,.5,.618,.786,1];return c}(m);k.prototype.defaultOptions=d(m.prototype.defaultOptions,{typeOptions:{height:2,backgroundColors:"rgba(130, 170, 255, 0.4);rgba(139, 191, 216, 0.4);rgba(150, 216, 192, 0.4);rgba(156, 229, 161, 0.4);rgba(162, 241, 130, 0.4);rgba(169, 255, 101, 0.4)".split(";"),lineColor:"#999999",lineColors:[],labels:[]},labelOptions:{allowOverlap:!0,align:"right",backgroundColor:"none",borderWidth:0,crop:!1,overflow:"none",shape:"rect",
style:{color:"grey"},verticalAlign:"middle",y:0}});return e.types.fibonacci=k});r(e,"Extensions/Annotations/Types/FibonacciTimeZones.js",[e["Extensions/Annotations/Annotation.js"],e["Extensions/Annotations/ControlPoint.js"],e["Extensions/Annotations/Types/CrookedLine.js"],e["Extensions/Annotations/Types/InfinityLine.js"],e["Extensions/Annotations/MockPoint.js"],e["Core/Utilities.js"]],function(e,l,m,k,n,g){function d(a,c,d){return function(b){var e=b.annotation.chart;b=b.annotation.points;var f=b[0].series.xAxis.toValue(b[0].plotX+
(e.inverted?e.plotTop:e.plotLeft)+d*(1<b.length?b[1].plotX-b[0].plotX:0));b=[new n(e,b[0].target,{x:f,y:0,xAxis:b[0].options.xAxis,yAxis:b[0].options.yAxis}),new n(e,b[0].target,{x:f,y:1,xAxis:b[0].options.xAxis,yAxis:b[0].options.yAxis})];return k.findEdgePoint(b[a],b[c])}}var a=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,c)};return function(b,
c){function d(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)}}(),c=g.merge;g=function(b){function e(){return null!==b&&b.apply(this,arguments)||this}a(e,b);e.prototype.addShapes=function(){for(var a=1,b=1,e=0;11>e;e++){var h=e?a:0;h=[d(1,0,h),d(0,1,h)];b=a+b;a=b-a;1===e&&(this.secondLineEdgePoints=[h[0],h[1]]);this.initShape(c(this.options.typeOptions.line,{type:"path",points:h}),e)}};e.prototype.addControlPoints=function(){var a=this.options,b=a.typeOptions;
a=new l(this.chart,this,c(a.controlPointOptions,b.controlPointOptions),0);this.controlPoints.push(a);b.controlPointOptions=a.options};return e}(m);g.prototype.defaultOptions=c(m.prototype.defaultOptions,{typeOptions:{line:{stroke:"rgba(0, 0, 0, 0.75)",strokeWidth:1,fill:void 0},controlPointOptions:{positioner:function(){var a=this.target,c=this.graphic,d=a.secondLineEdgePoints,e={annotation:a};var g=d[0](e).y;var k=d[1](e).y;a=this.chart.plotLeft;var l=this.chart.plotTop;d=d[0](e).x;g=(g+k)/2;this.chart.inverted&&
(g=[g,d],d=g[0],g=g[1]);return{x:a+d-c.width/2,y:l+g-c.height/2}},events:{drag:function(a,c){c.chart.isInsidePlot(a.chartX-c.chart.plotLeft,a.chartY-c.chart.plotTop,{visiblePlotOnly:!0})&&(a=this.mouseMoveToTranslation(a),c.translatePoint(a.x,0,1),c.redraw(!1))}}}}});e.types.fibonacciTimeZones=g;"";return g});r(e,"Extensions/Annotations/Types/Pitchfork.js",[e["Extensions/Annotations/Annotation.js"],e["Extensions/Annotations/Types/InfinityLine.js"],e["Extensions/Annotations/MockPoint.js"],e["Core/Utilities.js"]],
function(e,l,m,k){var n=this&&this.__extends||function(){var d=function(a,c){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return d(a,c)};return function(a,c){function b(){this.constructor=a}d(a,c);a.prototype=null===c?Object.create(c):(b.prototype=c.prototype,new b)}}(),g=k.merge;k=function(d){function a(){return null!==d&&d.apply(this,arguments)||this}n(a,d);a.outerLineEdgePoint=function(c){return function(b){var d=
b.annotation,e=d.points;return a.findEdgePoint(e[c],e[0],new m(d.chart,b,d.midPointOptions()))}};a.findEdgePoint=function(a,b,d){b=Math.atan2(d.plotY-b.plotY,d.plotX-b.plotX);return{x:a.plotX+1E7*Math.cos(b),y:a.plotY+1E7*Math.sin(b)}};a.middleLineEdgePoint=function(a){var b=a.annotation;return l.findEdgePoint(b.points[0],new m(b.chart,a,b.midPointOptions()))};a.prototype.midPointOptions=function(){var a=this.points;return{x:(a[1].x+a[2].x)/2,y:(a[1].y+a[2].y)/2,xAxis:a[0].series.xAxis,yAxis:a[0].series.yAxis}};
a.prototype.addShapes=function(){this.addLines();this.addBackgrounds()};a.prototype.addLines=function(){this.initShape({type:"path",points:[this.points[0],a.middleLineEdgePoint]},0);this.initShape({type:"path",points:[this.points[1],a.topLineEdgePoint]},1);this.initShape({type:"path",points:[this.points[2],a.bottomLineEdgePoint]},2)};a.prototype.addBackgrounds=function(){var a=this.shapes,b=this.options.typeOptions,d=this.initShape(g(b.innerBackground,{type:"path",points:[function(a){var b=a.annotation;
a=b.points;b=b.midPointOptions();return{x:(a[1].x+b.x)/2,y:(a[1].y+b.y)/2,xAxis:b.xAxis,yAxis:b.yAxis}},a[1].points[1],a[2].points[1],function(a){var b=a.annotation;a=b.points;b=b.midPointOptions();return{x:(b.x+a[2].x)/2,y:(b.y+a[2].y)/2,xAxis:b.xAxis,yAxis:b.yAxis}}]}),3);a=this.initShape(g(b.outerBackground,{type:"path",points:[this.points[1],a[1].points[1],a[2].points[1],this.points[2]]}),4);b.innerBackground=d.options;b.outerBackground=a.options};a.topLineEdgePoint=a.outerLineEdgePoint(1);a.bottomLineEdgePoint=
a.outerLineEdgePoint(0);return a}(l);k.prototype.defaultOptions=g(l.prototype.defaultOptions,{typeOptions:{innerBackground:{fill:"rgba(130, 170, 255, 0.4)",strokeWidth:0},outerBackground:{fill:"rgba(156, 229, 161, 0.4)",strokeWidth:0}}});return e.types.pitchfork=k});r(e,"Extensions/Annotations/Types/VerticalLine.js",[e["Extensions/Annotations/Annotation.js"],e["Extensions/Annotations/MockPoint.js"],e["Core/Utilities.js"]],function(e,l,m){var k=this&&this.__extends||function(){var d=function(a,c){d=
Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return d(a,c)};return function(a,c){function b(){this.constructor=a}d(a,c);a.prototype=null===c?Object.create(c):(b.prototype=c.prototype,new b)}}(),n=m.merge,g=m.pick;m=function(d){function a(){return null!==d&&d.apply(this,arguments)||this}k(a,d);a.connectorFirstPoint=function(a){var b=a.annotation;a=b.chart;var c=a.inverted,d=b.points[0],e=g(d.series.yAxis&&
d.series.yAxis.left,0),k=g(d.series.yAxis&&d.series.yAxis.top,0);b=b.options.typeOptions.label.offset;var m=l.pointToPixels(d,!0)[c?"x":"y"];return{x:d.x,xAxis:d.series.xAxis,y:m+b+(c?e-a.plotLeft:k-a.plotTop)}};a.connectorSecondPoint=function(a){var b=a.annotation;a=b.chart;var c=a.inverted,d=b.options.typeOptions;b=b.points[0];var e=g(b.series.yAxis&&b.series.yAxis.left,0),k=g(b.series.yAxis&&b.series.yAxis.top,0),m=l.pointToPixels(b,!0)[c?"x":"y"],n=d.yOffset;0>d.label.offset&&(n*=-1);return{x:b.x,
xAxis:b.series.xAxis,y:m+n+(c?e-a.plotLeft:k-a.plotTop)}};a.prototype.getPointsOptions=function(){return[this.options.typeOptions.point]};a.prototype.addShapes=function(){var c=this.options.typeOptions,b=this.initShape(n(c.connector,{type:"path",points:[a.connectorFirstPoint,a.connectorSecondPoint]}),0);c.connector=b.options};a.prototype.addLabels=function(){var a=this.options.typeOptions,b=a.label,d=0,e=b.offset,g=0>b.offset?"bottom":"top",k="center";this.chart.inverted&&(d=b.offset,e=0,g="middle",
k=0>b.offset?"right":"left");b=this.initLabel(n(b,{verticalAlign:g,align:k,x:d,y:e}));a.label=b.options};return a}(e);m.prototype.defaultOptions=n(e.prototype.defaultOptions,{typeOptions:{yOffset:10,label:{offset:-40,point:function(d){return d.annotation.points[0]},allowOverlap:!0,backgroundColor:"none",borderWidth:0,crop:!0,overflow:"none",shape:"rect",text:"{y:.2f}"},connector:{strokeWidth:1,markerEnd:"arrow"}}});return e.types.verticalLine=m});r(e,"Extensions/Annotations/Types/Measure.js",[e["Extensions/Annotations/Annotation.js"],
e["Extensions/Annotations/ControlPoint.js"],e["Core/Utilities.js"]],function(e,l,m){function k(){var a=this.chart.series,b=g(this.xAxisMin,this.xAxisMax,this.yAxisMin,this.yAxisMax),c=0,d=!1;a.forEach(function(a){a.visible&&"highcharts-navigator-series"!==a.options.id&&a.points.forEach(function(a){!a.isNull&&a.x>b.xAxisMin&&a.x<=b.xAxisMax&&a.y>b.yAxisMin&&a.y<=b.yAxisMax&&(c++,d=!0)})});d||(c="");return c}function n(){return"Min: "+this.min+"<br>Max: "+this.max+"<br>Average: "+this.average+"<br>Bins: "+
this.bins}function g(a,b,c,d){return{xAxisMin:Math.min(b,a),xAxisMax:Math.max(b,a),yAxisMin:Math.min(d,c),yAxisMax:Math.max(d,c)}}function d(a,b,c){return a.toValue(a.toPixels(b)+c)}function a(){var a=this.chart.series,b=g(this.xAxisMin,this.xAxisMax,this.yAxisMin,this.yAxisMax),c=-Infinity,d=!1;a.forEach(function(a){a.visible&&"highcharts-navigator-series"!==a.options.id&&a.points.forEach(function(a){!a.isNull&&a.y>c&&a.x>b.xAxisMin&&a.x<=b.xAxisMax&&a.y>b.yAxisMin&&a.y<=b.yAxisMax&&(c=a.y,d=!0)})});
d||(c="");return c}function c(){var a=this.chart.series,b=g(this.xAxisMin,this.xAxisMax,this.yAxisMin,this.yAxisMax),c=Infinity,d=!1;a.forEach(function(a){a.visible&&"highcharts-navigator-series"!==a.options.id&&a.points.forEach(function(a){!a.isNull&&a.y<c&&a.x>b.xAxisMin&&a.x<=b.xAxisMax&&a.y>b.yAxisMin&&a.y<=b.yAxisMax&&(c=a.y,d=!0)})});d||(c="");return c}function b(b){var e=this.options.typeOptions,g=this.chart.xAxis[e.xAxis];e=this.chart.yAxis[e.yAxis];var f=this.offsetX,h=this.offsetY;this.xAxisMin=
d(g,this.startXMin,f);this.xAxisMax=d(g,this.startXMax,f);this.yAxisMin=d(e,this.startYMin,h);this.yAxisMax=d(e,this.startYMax,h);this.min=c.call(this);this.max=a.call(this);g="";""!==this.max&&""!==this.min&&(g=(this.max+this.min)/2);this.average=g;this.bins=k.call(this);b&&this.resize(0,0)}function h(a,b,c,e,g){var f=this.options.typeOptions,h=f.selectType,k=this.chart.xAxis[f.xAxis];f=this.chart.yAxis[f.yAxis];var l=this.startXMin,m=this.startXMax,n=this.startYMin,u=this.startYMax,y=this.offsetX,
p=this.offsetY;b&&("x"===h?0===c?this.startXMin=d(k,l,e):this.startXMax=d(k,m,e):"y"===h?0===c?this.startYMin=d(f,n,g):this.startYMax=d(f,u,g):(this.startXMax=d(k,m,e),this.startYMax=d(f,u,g)));a&&(this.startXMin=d(k,l,y),this.startXMax=d(k,m,y),this.startYMin=d(f,n,p),this.startYMax=d(f,u,p),this.offsetY=this.offsetX=0)}var f=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&
(a[c]=b[c])};return a(b,c)};return function(b,c){function d(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)}}(),q=m.defined,r=m.extend,p=m.isNumber,v=m.merge,C=m.pick;m=function(a){function c(){return null!==a&&a.apply(this,arguments)||this}f(c,a);c.prototype.init=function(a,b,c){e.prototype.init.call(this,a,b,c);this.resizeY=this.resizeX=this.offsetY=this.offsetX=0;a=this.options.typeOptions;var f=this.chart;c=f.inverted;b=f.xAxis[a.xAxis];f=f.yAxis[a.yAxis];
var g=a.background,h=c?g.height:g.width;g=c?g.width:g.height;var k=a.selectType,l=c?b.left:f.top;c=c?f.top:b.left;this.startXMin=a.point.x;this.startYMin=a.point.y;p(h)?this.startXMax=this.startXMin+h:this.startXMax=d(b,this.startXMin,parseFloat(h));p(g)?this.startYMax=this.startYMin-g:this.startYMax=d(f,this.startYMin,parseFloat(g));"x"===k?(this.startYMin=f.toValue(l),this.startYMax=f.toValue(l+f.len)):"y"===k&&(this.startXMin=b.toValue(c),this.startXMax=b.toValue(c+b.len));this.addValues();this.addShapes()};
c.prototype.setClipAxes=function(){this.clipXAxis=this.chart.xAxis[this.options.typeOptions.xAxis];this.clipYAxis=this.chart.yAxis[this.options.typeOptions.yAxis]};c.prototype.pointsOptions=function(){return this.options.points};c.prototype.shapePointsOptions=function(){var a=this.options.typeOptions,b=a.xAxis;a=a.yAxis;return[{x:this.xAxisMin,y:this.yAxisMin,xAxis:b,yAxis:a},{x:this.xAxisMax,y:this.yAxisMin,xAxis:b,yAxis:a},{x:this.xAxisMax,y:this.yAxisMax,xAxis:b,yAxis:a},{x:this.xAxisMin,y:this.yAxisMax,
xAxis:b,yAxis:a}]};c.prototype.addControlPoints=function(){var a=this.chart.inverted,b=this.options.controlPointOptions,c=this.options.typeOptions.selectType;q(this.userOptions.controlPointOptions&&this.userOptions.controlPointOptions.style.cursor)||("x"===c?b.style.cursor=a?"ns-resize":"ew-resize":"y"===c&&(b.style.cursor=a?"ew-resize":"ns-resize"));a=new l(this.chart,this,this.options.controlPointOptions,0);this.controlPoints.push(a);"xy"!==c&&(a=new l(this.chart,this,this.options.controlPointOptions,
1),this.controlPoints.push(a))};c.prototype.addValues=function(a){var c=this.options.typeOptions,d=c.label.formatter;b.call(this,a);c.label.enabled&&(0<this.labels.length?this.labels[0].text=d&&d.call(this)||n.call(this):this.initLabel(r({shape:"rect",backgroundColor:"none",color:"black",borderWidth:0,dashStyle:"Dash",overflow:"allow",align:"left",y:0,x:0,verticalAlign:"top",crop:!0,xAxis:0,yAxis:0,point:function(a){var b=a.annotation;a=a.options;return{x:b.xAxisMin,y:b.yAxisMin,xAxis:C(c.xAxis,a.xAxis),
yAxis:C(c.yAxis,a.yAxis)}},text:d&&d.call(this)||n.call(this)},c.label),void 0))};c.prototype.addShapes=function(){this.addCrosshairs();this.addBackground()};c.prototype.addBackground=function(){"undefined"!==typeof this.shapePointsOptions()[0].x&&this.initShape(r({type:"path",points:this.shapePointsOptions()},this.options.typeOptions.background),2)};c.prototype.addCrosshairs=function(){var a=this.chart,b=this.options.typeOptions,c=a.xAxis[b.xAxis],d=a.yAxis[b.yAxis],e=a.inverted;a={point:this.options.typeOptions.point,
type:"path"};var f=c.toPixels(this.xAxisMin),g=c.toPixels(this.xAxisMax),h=d.toPixels(this.yAxisMin),k=d.toPixels(this.yAxisMax);d=[];c=[];e&&(e=f,f=h,h=e,e=g,g=k,k=e);b.crosshairX.enabled&&(d=[["M",f,h+(k-h)/2],["L",g,h+(k-h)/2]]);b.crosshairY.enabled&&(c=[["M",f+(g-f)/2,h],["L",f+(g-f)/2,k]]);0<this.shapes.length?(this.shapes[0].options.d=d,this.shapes[1].options.d=c):(f=v(a,b.crosshairX),b=v(a,b.crosshairY),this.initShape(r({d:d},f),0),this.initShape(r({d:c},b),1))};c.prototype.onDrag=function(a){var b=
this.mouseMoveToTranslation(a),c=this.options.typeOptions.selectType;a="y"===c?0:b.x;b="x"===c?0:b.y;this.translate(a,b);this.offsetX+=a;this.offsetY+=b;this.redraw(!1,!1,!0)};c.prototype.resize=function(a,b,c,d){var e=this.shapes[2];"x"===d?0===c?(e.translatePoint(a,0,0),e.translatePoint(a,b,3)):(e.translatePoint(a,0,1),e.translatePoint(a,b,2)):"y"===d?0===c?(e.translatePoint(0,b,0),e.translatePoint(0,b,1)):(e.translatePoint(0,b,2),e.translatePoint(0,b,3)):(e.translatePoint(a,0,1),e.translatePoint(a,
b,2),e.translatePoint(0,b,3));h.call(this,!1,!0,c,a,b);this.options.typeOptions.background.height=Math.abs(this.startYMax-this.startYMin);this.options.typeOptions.background.width=Math.abs(this.startXMax-this.startXMin)};c.prototype.redraw=function(a,b,c){this.linkPoints();this.graphic||this.render();c&&h.call(this,!0,!1);this.clipRect&&this.clipRect.animate(this.getClipBox());this.addValues(b);this.addCrosshairs();this.redrawItems(this.shapes,a);this.redrawItems(this.labels,a);this.controlPoints.forEach(function(a){return a.redraw()})};
c.prototype.translate=function(a,b){this.shapes.forEach(function(c){return c.translate(a,b)});this.options.typeOptions.point.x=this.startXMin;this.options.typeOptions.point.y=this.startYMin};return c}(e);m.prototype.defaultOptions=v(e.prototype.defaultOptions,{typeOptions:{selectType:"xy",xAxis:0,yAxis:0,background:{fill:"rgba(130, 170, 255, 0.4)",strokeWidth:0,stroke:void 0},crosshairX:{enabled:!0,zIndex:6,dashStyle:"Dash",markerEnd:"arrow"},crosshairY:{enabled:!0,zIndex:6,dashStyle:"Dash",markerEnd:"arrow"},
label:{enabled:!0,style:{fontSize:"11px",color:"#666666"},formatter:void 0}},controlPointOptions:{positioner:function(a){var b=this.index,c=a.chart,d=a.options,e=d.typeOptions,f=e.selectType;d=d.controlPointOptions;var h=c.inverted,k=c.xAxis[e.xAxis];c=c.yAxis[e.yAxis];var l=g(a.xAxisMin,a.xAxisMax,a.yAxisMin,a.yAxisMax);e=a.xAxisMax;var m=a.yAxisMax;"x"===f&&(m=(l.yAxisMax-l.yAxisMin)/2,0===b&&(e=a.xAxisMin));"y"===f&&(e=l.xAxisMin+(l.xAxisMax-l.xAxisMin)/2,0===b&&(m=a.yAxisMin));h?(a=c.toPixels(m),
b=k.toPixels(e)):(a=k.toPixels(e),b=c.toPixels(m));return{x:a-d.width/2,y:b-d.height/2}},events:{drag:function(a,b){var c=this.mouseMoveToTranslation(a);a=b.options.typeOptions.selectType;var d="y"===a?0:c.x;c="x"===a?0:c.y;b.resize(d,c,this.index,a);b.resizeX+=d;b.resizeY+=c;b.redraw(!1,!0)}}}});return e.types.measure=m});r(e,"masters/modules/annotations-advanced.src.js",[e["Core/Globals.js"],e["Extensions/Annotations/Annotation.js"]],function(e,l){e.Annotation=l;l.compose(e.Chart,e.Pointer,e.SVGRenderer)})});
//# sourceMappingURL=annotations-advanced.js.map