Hacked By AnonymousFox

Current Path : C:/AppServ/www/financial/stacked/code/es5/modules/
Upload File :
Current File : C:/AppServ/www/financial/stacked/code/es5/modules/navigator.js

!/**
 * Highcharts JS v12.1.2 (2025-01-09)
 * @module highcharts/modules/navigator
 * @requires highcharts
 *
 * Standalone navigator module
 *
 * (c) 2009-2024 Mateusz Bernacik
 *
 * License: www.highcharts.com/license
 */function(t,i){"object"==typeof exports&&"object"==typeof module?module.exports=i(require("highcharts"),require("highcharts").Chart,require("highcharts").Axis,require("highcharts").Color,require("highcharts").SeriesRegistry,require("highcharts").RendererRegistry,require("highcharts").SVGRenderer):"function"==typeof define&&define.amd?define("highcharts/modules/navigator",[["highcharts/highcharts"],["highcharts/highcharts","Chart"],["highcharts/highcharts","Axis"],["highcharts/highcharts","Color"],["highcharts/highcharts","SeriesRegistry"],["highcharts/highcharts","RendererRegistry"],["highcharts/highcharts","SVGRenderer"]],i):"object"==typeof exports?exports["highcharts/modules/navigator"]=i(require("highcharts"),require("highcharts").Chart,require("highcharts").Axis,require("highcharts").Color,require("highcharts").SeriesRegistry,require("highcharts").RendererRegistry,require("highcharts").SVGRenderer):t.Highcharts=i(t.Highcharts,t.Highcharts.Chart,t.Highcharts.Axis,t.Highcharts.Color,t.Highcharts.SeriesRegistry,t.Highcharts.RendererRegistry,t.Highcharts.SVGRenderer)}(this,function(t,i,e,s,r,a,o){return function(){"use strict";var n,h,d={532:function(t){t.exports=e},960:function(t){t.exports=i},620:function(t){t.exports=s},608:function(t){t.exports=a},540:function(t){t.exports=o},512:function(t){t.exports=r},944:function(i){i.exports=t}},l={};function c(t){var i=l[t];if(void 0!==i)return i.exports;var e=l[t]={exports:{}};return d[t](e,e.exports,c),e.exports}c.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return c.d(i,{a:i}),i},c.d=function(t,i){for(var e in i)c.o(i,e)&&!c.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:i[e]})},c.o=function(t,i){return Object.prototype.hasOwnProperty.call(t,i)};var g={};c.d(g,{default:function(){return t5}});var p=c(944),u=c.n(p),v=c(960),f=c.n(v),x=c(532),m=c.n(x),b=u().isTouchDevice,y=u().addEvent,M=u().merge,A=u().pick,E=[];function k(){this.navigator&&this.navigator.setBaseSeries(null,!1)}function O(){var t,i,e,s,r=this.legend,a=this.navigator;if(a){i=r&&r.options,e=a.xAxis,s=a.yAxis;var o=a.scrollbarHeight,n=a.scrollButtonSize;this.inverted?(a.left=a.opposite?this.chartWidth-o-a.height:this.spacing[3]+o,a.top=this.plotTop+n):(a.left=A(e.left,this.plotLeft+n),a.top=a.navigatorOptions.top||this.chartHeight-a.height-o-((null===(t=this.scrollbar)||void 0===t?void 0:t.options.margin)||0)-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(i&&"bottom"===i.verticalAlign&&"proximate"!==i.layout&&i.enabled&&!i.floating?r.legendHeight+A(i.margin,10):0)-(this.titleOffset?this.titleOffset[2]:0)),e&&s&&(this.inverted?e.options.left=s.options.left=a.left:e.options.top=s.options.top=a.top,e.setAxisSize(),s.setAxisSize())}}function w(t){!this.navigator&&!this.scroller&&(this.options.navigator.enabled||this.options.scrollbar.enabled)&&(this.scroller=this.navigator=new n(this),A(t.redraw,!0)&&this.redraw(t.animation))}function S(){var t=this.options;(t.navigator.enabled||t.scrollbar.enabled)&&(this.scroller=this.navigator=new n(this))}function z(){var t=this.options,i=t.navigator,e=t.rangeSelector;if((i&&i.enabled||e&&e.enabled)&&(!b&&"x"===this.zooming.type||b&&"x"===this.zooming.pinchType))return!1}function R(t){var i=t.navigator;if(i&&t.xAxis[0]){var e=t.xAxis[0].getExtremes();i.render(e.min,e.max)}}function D(t){var i=t.options.navigator||{},e=t.options.scrollbar||{};!this.navigator&&!this.scroller&&(i.enabled||e.enabled)&&(M(!0,this.options.navigator,i),M(!0,this.options.scrollbar,e),delete t.options.navigator,delete t.options.scrollbar)}var T=function(t,i){if(u().pushUnique(E,t)){var e=t.prototype;n=i,e.callbacks.push(R),y(t,"afterAddSeries",k),y(t,"afterSetChartSize",O),y(t,"afterUpdate",w),y(t,"beforeRender",S),y(t,"beforeShowResetZoom",z),y(t,"update",D)}},B=u().isTouchDevice,C=u().addEvent,L=u().correctFloat,W=u().defined,P=u().isNumber,H=u().pick;function U(){this.navigatorAxis||(this.navigatorAxis=new I(this))}function N(t){var i,e=this.chart,s=e.options,r=s.navigator,a=this.navigatorAxis,o=e.zooming.pinchType,n=s.rangeSelector,h=e.zooming.type;if(this.isXAxis&&((null==r?void 0:r.enabled)||(null==n?void 0:n.enabled))){if("y"===h&&"zoom"===t.trigger)i=!1;else if(("zoom"===t.trigger&&"xy"===h||B&&"xy"===o)&&this.options.range){var d=a.previousZoom;W(t.min)?a.previousZoom=[this.min,this.max]:d&&(t.min=d[0],t.max=d[1],a.previousZoom=void 0)}}void 0!==i&&t.preventDefault()}var I=function(){function t(t){this.axis=t}return t.compose=function(t){t.keepProps.includes("navigatorAxis")||(t.keepProps.push("navigatorAxis"),C(t,"init",U),C(t,"setExtremes",N))},t.prototype.destroy=function(){this.axis=void 0},t.prototype.toFixedRange=function(t,i,e,s){var r=this.axis,a=(r.pointRange||0)/2,o=H(e,r.translate(t,!0,!r.horiz)),n=H(s,r.translate(i,!0,!r.horiz));return W(e)||(o=L(o+a)),W(s)||(n=L(n-a)),P(o)&&P(n)||(o=n=void 0),{min:o,max:n}},t}(),X=c(620),Y=c.n(X),G=c(512),q=c.n(G),F=Y().parse,j=q().seriesTypes,V={height:40,margin:25,maskInside:!0,handles:{width:7,borderRadius:0,height:15,symbols:["navigator-handle","navigator-handle"],enabled:!0,lineWidth:1,backgroundColor:"#f2f2f2",borderColor:"#999999"},maskFill:F("#667aff").setOpacity(.3).get(),outlineColor:"#999999",outlineWidth:1,series:{type:void 0===j.areaspline?"line":"areaspline",fillOpacity:.05,lineWidth:1,compare:null,sonification:{enabled:!1},dataGrouping:{approximation:"average",enabled:!0,groupPixelWidth:2,firstAnchor:"firstPoint",anchor:"middle",lastAnchor:"lastPoint",units:[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2,3,4]],["week",[1,2,3]],["month",[1,3,6]],["year",null]]},dataLabels:{enabled:!1,zIndex:2},id:"highcharts-navigator-series",className:"highcharts-navigator-series",lineColor:null,marker:{enabled:!1},threshold:null},xAxis:{className:"highcharts-navigator-xaxis",tickLength:0,lineWidth:0,gridLineColor:"#e6e6e6",id:"navigator-x-axis",gridLineWidth:1,tickPixelInterval:200,labels:{align:"left",style:{color:"#000000",fontSize:"0.7em",opacity:.6,textOutline:"2px contrast"},x:3,y:-4},crosshair:!1},yAxis:{className:"highcharts-navigator-yaxis",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,id:"navigator-y-axis",maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}},Z=(u().defined,u().isNumber,u().pick,function(t,i,e){if(e||2==arguments.length)for(var s,r=0,a=i.length;r<a;r++)!s&&r in i||(s||(s=Array.prototype.slice.call(i,0,r)),s[r]=i[r]);return t.concat(s||Array.prototype.slice.call(i))}),_=u().relativeLength,J={"navigator-handle":function(t,i,e,s,r){void 0===r&&(r={});var a,o,n,h,d,l,c,g,p,u,v=r.width?r.width/2:e,f=_(r.borderRadius||0,Math.min(2*v,s));return Z([["M",-1.5,(s=r.height||s)/2-3.5],["L",-1.5,s/2+4.5],["M",.5,s/2-3.5],["L",.5,s/2+4.5]],(c=-v-1,g=2*v+1,p=s,(u={r:f}).r?(a=c,o=.5,n=g,h=p,[["M",a+(l=(null==(d=u)?void 0:d.r)||0),.5],["L",a+n-l,o],["A",l,l,0,0,1,a+n,o+l],["L",a+n,o+h-l],["A",l,l,0,0,1,a+n-l,o+h],["L",a+l,o+h],["A",l,l,0,0,1,a,o+h-l],["L",a,o+l],["A",l,l,0,0,1,a+l,o],["Z"]]):[["M",c,.5],["L",c+g,.5],["L",c+g,.5+p],["L",c,.5+p],["Z"]]),!0)}},K=c(608),Q=c.n(K),$=u().defined,tt=u().setOptions,ti=u().composed,te=Q().getRendererType,ts={setFixedRange:function(t){var i=this.xAxis[0];$(i.dataMax)&&$(i.dataMin)&&t?this.fixedRange=Math.min(t,i.dataMax-i.dataMin):this.fixedRange=t}}.setFixedRange,tr=u().addEvent,ta=u().extend,to=u().pushUnique;function tn(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)}var th=function(t,i,e){I.compose(i),to(ti,"Navigator")&&(t.prototype.setFixedRange=ts,ta(te().prototype.symbols,J),tr(e,"afterUpdate",tn),tt({navigator:V}))},td=u().composed,tl=u().addEvent,tc=u().defined,tg=u().pick,tp=u().pushUnique;!function(t){var i;function e(t){var i=tg(t.options&&t.options.min,t.min),e=tg(t.options&&t.options.max,t.max);return{axisMin:i,axisMax:e,scrollMin:tc(t.dataMin)?Math.min(i,t.min,t.dataMin,tg(t.threshold,1/0)):i,scrollMax:tc(t.dataMax)?Math.max(e,t.max,t.dataMax,tg(t.threshold,-1/0)):e}}function s(){var t=this.scrollbar,i=t&&!t.options.opposite,e=this.horiz?2:i?3:1;t&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[e]+=t.size+(t.options.margin||0))}function r(){var t=this;t.options&&t.options.scrollbar&&t.options.scrollbar.enabled&&(t.options.scrollbar.vertical=!t.horiz,t.options.startOnTick=t.options.endOnTick=!1,t.scrollbar=new i(t.chart.renderer,t.options.scrollbar,t.chart),tl(t.scrollbar,"changed",function(i){var s,r,a=e(t),o=a.axisMin,n=a.axisMax,h=a.scrollMin,d=a.scrollMax-h;if(tc(o)&&tc(n)){if(t.horiz&&!t.reversed||!t.horiz&&t.reversed?(s=h+d*this.to,r=h+d*this.from):(s=h+d*(1-this.from),r=h+d*(1-this.to)),this.shouldUpdateExtremes(i.DOMType)){var l="mousemove"!==i.DOMType&&"touchmove"!==i.DOMType&&void 0;t.setExtremes(r,s,!0,l,i)}else this.setRange(this.from,this.to)}}))}function a(){var t,i,s,r=e(this),a=r.scrollMin,o=r.scrollMax,n=this.scrollbar,h=this.axisTitleMargin+(this.titleOffset||0),d=this.chart.scrollbarsOffsets,l=this.options.margin||0;if(n&&d){if(this.horiz)this.opposite||(d[1]+=h),n.position(this.left,this.top+this.height+2+d[1]-(this.opposite?l:0),this.width,this.height),this.opposite||(d[1]+=l),t=1;else{this.opposite&&(d[0]+=h);var c=void 0;c=n.options.opposite?this.left+this.width+2+d[0]-(this.opposite?0:l):this.opposite?0:l,n.position(c,this.top,this.width,this.height),this.opposite&&(d[0]+=l),t=0}if(d[t]+=n.size+(n.options.margin||0),isNaN(a)||isNaN(o)||!tc(this.min)||!tc(this.max)||this.dataMin===this.dataMax)n.setRange(0,1);else if(this.min===this.max){var g=this.pointRange/(this.dataMax+1);i=g*this.min,s=g*(this.max+1),n.setRange(i,s)}else i=(this.min-a)/(o-a),s=(this.max-a)/(o-a),this.horiz&&!this.reversed||!this.horiz&&this.reversed?n.setRange(i,s):n.setRange(1-s,1-i)}}t.compose=function(t,e){tp(td,"Axis.Scrollbar")&&(i=e,tl(t,"afterGetOffset",s),tl(t,"afterInit",r),tl(t,"afterRender",a))}}(h||(h={}));var tu=h,tv={height:10,barBorderRadius:5,buttonBorderRadius:0,buttonsEnabled:!1,liveRedraw:void 0,margin:void 0,minWidth:6,opposite:!0,step:.2,zIndex:3,barBackgroundColor:"#cccccc",barBorderWidth:0,barBorderColor:"#cccccc",buttonArrowColor:"#333333",buttonBackgroundColor:"#e6e6e6",buttonBorderColor:"#cccccc",buttonBorderWidth:1,rifleColor:"none",trackBackgroundColor:"rgba(255, 255, 255, 0.001)",trackBorderColor:"#cccccc",trackBorderRadius:5,trackBorderWidth:1},tf=u().defaultOptions,tx=u().addEvent,tm=u().correctFloat,tb=u().crisp,ty=u().defined,tM=u().destroyObjectProperties,tA=u().fireEvent,tE=u().merge,tk=u().pick,tO=u().removeEvent,tw=function(){function t(t,i,e){this._events=[],this.chartX=0,this.chartY=0,this.from=0,this.scrollbarButtons=[],this.scrollbarLeft=0,this.scrollbarStrokeWidth=1,this.scrollbarTop=0,this.size=0,this.to=0,this.trackBorderWidth=1,this.x=0,this.y=0,this.init(t,i,e)}return t.compose=function(i){tu.compose(i,t)},t.swapXY=function(t,i){return i&&t.forEach(function(t){for(var i,e=t.length,s=0;s<e;s+=2)"number"==typeof(i=t[s+1])&&(t[s+1]=t[s+2],t[s+2]=i)}),t},t.prototype.addEvents=function(){var t=this.options.inverted?[1,0]:[0,1],i=this.scrollbarButtons,e=this.scrollbarGroup.element,s=this.track.element,r=this.mouseDownHandler.bind(this),a=this.mouseMoveHandler.bind(this),o=this.mouseUpHandler.bind(this),n=[[i[t[0]].element,"click",this.buttonToMinClick.bind(this)],[i[t[1]].element,"click",this.buttonToMaxClick.bind(this)],[s,"click",this.trackClick.bind(this)],[e,"mousedown",r],[e.ownerDocument,"mousemove",a],[e.ownerDocument,"mouseup",o],[e,"touchstart",r],[e.ownerDocument,"touchmove",a],[e.ownerDocument,"touchend",o]];n.forEach(function(t){tx.apply(null,t)}),this._events=n},t.prototype.buttonToMaxClick=function(t){var i=(this.to-this.from)*tk(this.options.step,.2);this.updatePosition(this.from+i,this.to+i),tA(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:t})},t.prototype.buttonToMinClick=function(t){var i=tm(this.to-this.from)*tk(this.options.step,.2);this.updatePosition(tm(this.from-i),tm(this.to-i)),tA(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:t})},t.prototype.cursorToScrollbarPosition=function(t){var i=this.options,e=i.minWidth>this.calculatedWidth?i.minWidth:0;return{chartX:(t.chartX-this.x-this.xOffset)/(this.barWidth-e),chartY:(t.chartY-this.y-this.yOffset)/(this.barWidth-e)}},t.prototype.destroy=function(){var t=this,i=t.chart.scroller;t.removeEvents(),["track","scrollbarRifles","scrollbar","scrollbarGroup","group"].forEach(function(i){t[i]&&t[i].destroy&&(t[i]=t[i].destroy())}),i&&t===i.scrollbar&&(i.scrollbar=null,tM(i.scrollbarButtons))},t.prototype.drawScrollbarButton=function(i){var e=this.renderer,s=this.scrollbarButtons,r=this.options,a=this.size,o=e.g().add(this.group);if(s.push(o),r.buttonsEnabled){var n=e.rect().addClass("highcharts-scrollbar-button").add(o);this.chart.styledMode||n.attr({stroke:r.buttonBorderColor,"stroke-width":r.buttonBorderWidth,fill:r.buttonBackgroundColor}),n.attr(n.crisp({x:-.5,y:-.5,width:a,height:a,r:r.buttonBorderRadius},n.strokeWidth()));var h=e.path(t.swapXY([["M",a/2+(i?-1:1),a/2-3],["L",a/2+(i?-1:1),a/2+3],["L",a/2+(i?2:-2),a/2]],r.vertical)).addClass("highcharts-scrollbar-arrow").add(s[i]);this.chart.styledMode||h.attr({fill:r.buttonArrowColor})}},t.prototype.init=function(t,i,e){this.scrollbarButtons=[],this.renderer=t,this.userOptions=i,this.options=tE(tv,tf.scrollbar,i),this.options.margin=tk(this.options.margin,10),this.chart=e,this.size=tk(this.options.size,this.options.height),i.enabled&&(this.render(),this.addEvents())},t.prototype.mouseDownHandler=function(t){var i,e=(null===(i=this.chart.pointer)||void 0===i?void 0:i.normalize(t))||t,s=this.cursorToScrollbarPosition(e);this.chartX=s.chartX,this.chartY=s.chartY,this.initPositions=[this.from,this.to],this.grabbedCenter=!0},t.prototype.mouseMoveHandler=function(t){var i,e,s=(null===(i=this.chart.pointer)||void 0===i?void 0:i.normalize(t))||t,r=this.options.vertical?"chartY":"chartX",a=this.initPositions||[];this.grabbedCenter&&(!t.touches||0!==t.touches[0][r])&&(e=this.cursorToScrollbarPosition(s)[r]-this[r],this.hasDragged=!0,this.updatePosition(a[0]+e,a[1]+e),this.hasDragged&&tA(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:t.type,DOMEvent:t}))},t.prototype.mouseUpHandler=function(t){this.hasDragged&&tA(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:t.type,DOMEvent:t}),this.grabbedCenter=this.hasDragged=this.chartX=this.chartY=null},t.prototype.position=function(t,i,e,s){var r=this.options,a=r.buttonsEnabled,o=r.margin,n=void 0===o?0:o,h=r.vertical,d=this.rendered?"animate":"attr",l=s,c=0;this.group.show(),this.x=t,this.y=i+this.trackBorderWidth,this.width=e,this.height=s,this.xOffset=l,this.yOffset=c,h?(this.width=this.yOffset=e=c=this.size,this.xOffset=l=0,this.yOffset=c=a?this.size:0,this.barWidth=s-(a?2*e:0),this.x=t+=n):(this.height=s=this.size,this.xOffset=l=a?this.size:0,this.barWidth=e-(a?2*s:0),this.y=this.y+n),this.group[d]({translateX:t,translateY:this.y}),this.track[d]({width:e,height:s}),this.scrollbarButtons[1][d]({translateX:h?0:e-l,translateY:h?s-c:0})},t.prototype.removeEvents=function(){this._events.forEach(function(t){tO.apply(null,t)}),this._events.length=0},t.prototype.render=function(){var i=this.renderer,e=this.options,s=this.size,r=this.chart.styledMode,a=i.g("scrollbar").attr({zIndex:e.zIndex}).hide().add();this.group=a,this.track=i.rect().addClass("highcharts-scrollbar-track").attr({r:e.trackBorderRadius||0,height:s,width:s}).add(a),r||this.track.attr({fill:e.trackBackgroundColor,stroke:e.trackBorderColor,"stroke-width":e.trackBorderWidth});var o=this.trackBorderWidth=this.track.strokeWidth();this.track.attr({x:-tb(0,o),y:-tb(0,o)}),this.scrollbarGroup=i.g().add(a),this.scrollbar=i.rect().addClass("highcharts-scrollbar-thumb").attr({height:s-o,width:s-o,r:e.barBorderRadius||0}).add(this.scrollbarGroup),this.scrollbarRifles=i.path(t.swapXY([["M",-3,s/4],["L",-3,2*s/3],["M",0,s/4],["L",0,2*s/3],["M",3,s/4],["L",3,2*s/3]],e.vertical)).addClass("highcharts-scrollbar-rifles").add(this.scrollbarGroup),r||(this.scrollbar.attr({fill:e.barBackgroundColor,stroke:e.barBorderColor,"stroke-width":e.barBorderWidth}),this.scrollbarRifles.attr({stroke:e.rifleColor,"stroke-width":1})),this.scrollbarStrokeWidth=this.scrollbar.strokeWidth(),this.scrollbarGroup.translate(-tb(0,this.scrollbarStrokeWidth),-tb(0,this.scrollbarStrokeWidth)),this.drawScrollbarButton(0),this.drawScrollbarButton(1)},t.prototype.setRange=function(t,i){var e,s,r=this.options,a=r.vertical,o=r.minWidth,n=this.barWidth,h=!this.rendered||this.hasDragged||this.chart.navigator&&this.chart.navigator.hasDragged?"attr":"animate";if(ty(n)){var d=n*Math.min(i,1);e=Math.ceil(n*(t=Math.max(t,0))),this.calculatedWidth=s=tm(d-e),s<o&&(e=(n-o+s)*t,s=o);var l=Math.floor(e+this.xOffset+this.yOffset),c=s/2-.5;this.from=t,this.to=i,a?(this.scrollbarGroup[h]({translateY:l}),this.scrollbar[h]({height:s}),this.scrollbarRifles[h]({translateY:c}),this.scrollbarTop=l,this.scrollbarLeft=0):(this.scrollbarGroup[h]({translateX:l}),this.scrollbar[h]({width:s}),this.scrollbarRifles[h]({translateX:c}),this.scrollbarLeft=l,this.scrollbarTop=0),s<=12?this.scrollbarRifles.hide():this.scrollbarRifles.show(),!1===r.showFull&&(t<=0&&i>=1?this.group.hide():this.group.show()),this.rendered=!0}},t.prototype.shouldUpdateExtremes=function(t){return tk(this.options.liveRedraw,u().svg&&!u().isTouchDevice&&!this.chart.boosted)||"mouseup"===t||"touchend"===t||!ty(t)},t.prototype.trackClick=function(t){var i,e=(null===(i=this.chart.pointer)||void 0===i?void 0:i.normalize(t))||t,s=this.to-this.from,r=this.y+this.scrollbarTop,a=this.x+this.scrollbarLeft;this.options.vertical&&e.chartY>r||!this.options.vertical&&e.chartX>a?this.updatePosition(this.from+s,this.to+s):this.updatePosition(this.from-s,this.to-s),tA(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:t})},t.prototype.update=function(t){this.destroy(),this.init(this.chart.renderer,tE(!0,this.options,t),this.chart)},t.prototype.updatePosition=function(t,i){i>1&&(t=tm(1-tm(i-t)),i=1),t<0&&(i=tm(i-t),t=0),this.from=t,this.to=i},t.defaultOptions=tv,t}();tf.scrollbar=tE(!0,tw.defaultOptions,tf.scrollbar);var tS=c(540),tz=c.n(tS),tR=function(){return(tR=Object.assign||function(t){for(var i,e=1,s=arguments.length;e<s;e++)for(var r in i=arguments[e])Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t}).apply(this,arguments)},tD=u().defaultOptions,tT=u().isTouchDevice,tB=tz().prototype.symbols,tC=u().addEvent,tL=u().clamp,tW=u().correctFloat,tP=u().defined,tH=u().destroyObjectProperties,tU=u().erase,tN=u().extend,tI=u().find,tX=u().fireEvent,tY=u().isArray,tG=u().isNumber,tq=u().merge,tF=u().pick,tj=u().removeEvent,tV=u().splat;function tZ(t){for(var i=[],e=1;e<arguments.length;e++)i[e-1]=arguments[e];var s=[].filter.call(i,tG);if(s.length)return Math[t].apply(0,s)}var t_=function(){function t(t){this.isDirty=!1,this.scrollbarHeight=0,this.init(t)}return t.compose=function(i,e,s){T(i,t),th(i,e,s)},t.prototype.drawHandle=function(t,i,e,s){var r=this.navigatorOptions.handles.height;this.handles[i][s](e?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(t,10)+.5-r)}:{translateX:Math.round(this.left+parseInt(t,10)),translateY:Math.round(this.top+this.height/2-r/2-1)})},t.prototype.drawOutline=function(t,i,e,s){var r,a,o=this.navigatorOptions.maskInside,n=this.outline.strokeWidth(),h=n/2,d=n%2/2,l=this.scrollButtonSize,c=this.size,g=this.top,p=this.height,u=g-h,v=g+p,f=this.left;e?(r=g+i+d,i=g+t+d,a=[["M",f+p,g-l-d],["L",f+p,r],["L",f,r],["M",f,i],["L",f+p,i],["L",f+p,g+c+l]],o&&a.push(["M",f+p,r-h],["L",f+p,i+h])):(f-=l,t+=f+l-d,i+=f+l-d,a=[["M",f,u],["L",t,u],["L",t,v],["M",i,v],["L",i,u],["L",f+c+2*l,u]],o&&a.push(["M",t-h,u],["L",i+h,u])),this.outline[s]({d:a})},t.prototype.drawMasks=function(t,i,e,s){var r,a,o,n,h=this.left,d=this.top,l=this.height;e?(o=[h,h,h],n=[d,d+t,d+i],a=[l,l,l],r=[t,i-t,this.size-i]):(o=[h,h+t,h+i],n=[d,d,d],a=[t,i-t,this.size-i],r=[l,l,l]),this.shades.forEach(function(t,i){t[s]({x:o[i],y:n[i],width:a[i],height:r[i]})})},t.prototype.renderElements=function(){var t,i,e=this,s=e.navigatorOptions,r=s.maskInside,a=e.chart,o=a.inverted,n=a.renderer,h={cursor:o?"ns-resize":"ew-resize"},d=null!==(t=e.navigatorGroup)&&void 0!==t?t:e.navigatorGroup=n.g("navigator").attr({zIndex:8,visibility:"hidden"}).add();if([!r,r,!r].forEach(function(t,i){var r,o=null!==(r=e.shades[i])&&void 0!==r?r:e.shades[i]=n.rect().addClass("highcharts-navigator-mask"+(1===i?"-inside":"-outside")).add(d);a.styledMode||(o.attr({fill:t?s.maskFill:"rgba(0,0,0,0)"}),1===i&&o.css(h))}),e.outline||(e.outline=n.path().addClass("highcharts-navigator-outline").add(d)),a.styledMode||e.outline.attr({"stroke-width":s.outlineWidth,stroke:s.outlineColor}),null===(i=s.handles)||void 0===i?void 0:i.enabled){var l=s.handles,c=l.height,g=l.width;[0,1].forEach(function(t){var i,s=l.symbols[t];if(e.handles[t]&&e.handles[t].symbolUrl===s){if(!e.handles[t].isImg&&e.handles[t].symbolName!==s){var r=tB[s].call(tB,-g/2-1,0,g,c);e.handles[t].attr({d:r}),e.handles[t].symbolName=s}}else null===(i=e.handles[t])||void 0===i||i.destroy(),e.handles[t]=n.symbol(s,-g/2-1,0,g,c,l),e.handles[t].attr({zIndex:7-t}).addClass("highcharts-navigator-handle highcharts-navigator-handle-"+["left","right"][t]).add(d),e.addMouseEvents();a.inverted&&e.handles[t].attr({rotation:90,rotationOriginX:Math.floor(-g/2),rotationOriginY:(c+g)/2}),a.styledMode||e.handles[t].attr({fill:l.backgroundColor,stroke:l.borderColor,"stroke-width":l.lineWidth,width:l.width,height:l.height,x:-g/2-1,y:0}).css(h)})}},t.prototype.update=function(t,i){var e,s,r,a,o=this;void 0===i&&(i=!1);var n=this.chart,h=n.options.chart.inverted!==(null===(r=n.scrollbar)||void 0===r?void 0:r.options.vertical);if(tq(!0,n.options.navigator,t),this.navigatorOptions=n.options.navigator||{},this.setOpposite(),tP(t.enabled)||h)return this.destroy(),this.navigatorEnabled=t.enabled||this.navigatorEnabled,this.init(n);if(this.navigatorEnabled&&(this.isDirty=!0,!1===t.adaptToUpdatedData&&this.baseSeries.forEach(function(t){tj(t,"updatedData",o.updatedDataHandler)},this),t.adaptToUpdatedData&&this.baseSeries.forEach(function(t){t.eventsToUnbind.push(tC(t,"updatedData",o.updatedDataHandler))},this),(t.series||t.baseSeries)&&this.setBaseSeries(void 0,!1),t.height||t.xAxis||t.yAxis)){this.height=null!==(a=t.height)&&void 0!==a?a:this.height;var d=this.getXAxisOffsets();this.xAxis.update(tR(tR({},t.xAxis),((e={offsets:d})[n.inverted?"width":"height"]=this.height,e[n.inverted?"height":"width"]=void 0,e)),!1),this.yAxis.update(tR(tR({},t.yAxis),((s={})[n.inverted?"width":"height"]=this.height,s)),!1)}i&&n.redraw()},t.prototype.render=function(t,i,e,s){var r,a,o,n,h,d=this.chart,l=this.xAxis,c=l.pointRange||0,g=l.navigatorAxis.fake?d.xAxis[0]:l,p=this.navigatorEnabled,u=this.rendered,v=d.inverted,f=d.xAxis[0].minRange,x=d.xAxis[0].options.maxRange,m=this.scrollButtonSize,b=this.scrollbarHeight;if(!this.hasDragged||tP(e)){if(this.isDirty&&this.renderElements(),t=tW(t-c/2),i=tW(i+c/2),!tG(t)||!tG(i)){if(!u)return;e=0,s=tF(l.width,g.width)}this.left=tF(l.left,d.plotLeft+m+(v?d.plotWidth:0));var y=this.size=n=tF(l.len,(v?d.plotHeight:d.plotWidth)-2*m);r=v?b:n+2*m,e=tF(e,l.toPixels(t,!0)),s=tF(s,l.toPixels(i,!0)),tG(e)&&Math.abs(e)!==1/0||(e=0,s=r);var M=l.toValue(e,!0),A=l.toValue(s,!0),E=Math.abs(tW(A-M));E<f?this.grabbedLeft?e=l.toPixels(A-f-c,!0):this.grabbedRight&&(s=l.toPixels(M+f+c,!0)):tP(x)&&tW(E-c)>x&&(this.grabbedLeft?e=l.toPixels(A-x-c,!0):this.grabbedRight&&(s=l.toPixels(M+x+c,!0))),this.zoomedMax=tL(Math.max(e,s),0,y),this.zoomedMin=tL(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(e,s),0,y),this.range=this.zoomedMax-this.zoomedMin,y=Math.round(this.zoomedMax);var k=Math.round(this.zoomedMin);p&&(this.navigatorGroup.attr({visibility:"inherit"}),h=u&&!this.hasDragged?"animate":"attr",this.drawMasks(k,y,v,h),this.drawOutline(k,y,v,h),this.navigatorOptions.handles.enabled&&(this.drawHandle(k,0,v,h),this.drawHandle(y,1,v,h))),this.scrollbar&&(v?(o=this.top-m,a=this.left-b+(p||!g.opposite?0:(g.titleOffset||0)+g.axisTitleMargin),b=n+2*m):(o=this.top+(p?this.height:-b),a=this.left-m),this.scrollbar.position(a,o,r,b),this.scrollbar.setRange(this.zoomedMin/(n||1),this.zoomedMax/(n||1))),this.rendered=!0,this.isDirty=!1,tX(this,"afterRender")}},t.prototype.addMouseEvents=function(){var t,i,e=this,s=e.chart,r=s.container,a=[];e.mouseMoveHandler=t=function(t){e.onMouseMove(t)},e.mouseUpHandler=i=function(t){e.onMouseUp(t)},(a=e.getPartsEvents("mousedown")).push(tC(s.renderTo,"mousemove",t),tC(r.ownerDocument,"mouseup",i),tC(s.renderTo,"touchmove",t),tC(r.ownerDocument,"touchend",i)),a.concat(e.getPartsEvents("touchstart")),e.eventsToUnbind=a,e.series&&e.series[0]&&a.push(tC(e.series[0].xAxis,"foundExtremes",function(){s.navigator.modifyNavigatorAxisExtremes()}))},t.prototype.getPartsEvents=function(t){var i=this,e=[];return["shades","handles"].forEach(function(s){i[s].forEach(function(r,a){e.push(tC(r.element,t,function(t){i[s+"Mousedown"](t,a)}))})}),e},t.prototype.shadesMousedown=function(t,i){t=(null===(e=this.chart.pointer)||void 0===e?void 0:e.normalize(t))||t;var e,s,r,a,o,n=this.chart,h=this.xAxis,d=this.zoomedMin,l=this.size,c=this.range,g=this.left,p=t.chartX;n.inverted&&(p=t.chartY,g=this.top),1===i?(this.grabbedCenter=p,this.fixedWidth=c,this.dragOffset=p-d):(o=p-g-c/2,0===i?o=Math.max(0,o):2===i&&o+c>=l&&(o=l-c,this.reversedExtremes?(o-=c,r=this.getUnionExtremes().dataMin):s=this.getUnionExtremes().dataMax),o!==d&&(this.fixedWidth=c,tP((a=h.navigatorAxis.toFixedRange(o,o+c,r,s)).min)&&tX(this,"setRange",{min:Math.min(a.min,a.max),max:Math.max(a.min,a.max),redraw:!0,eventArguments:{trigger:"navigator"}})))},t.prototype.handlesMousedown=function(t,i){t=(null===(e=this.chart.pointer)||void 0===e?void 0:e.normalize(t))||t;var e,s=this.chart,r=s.xAxis[0],a=this.reversedExtremes;0===i?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=a?r.min:r.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=a?r.max:r.min),s.setFixedRange(void 0)},t.prototype.onMouseMove=function(t){var i,e,s=this,r=s.chart,a=s.navigatorSize,o=s.range,n=s.dragOffset,h=r.inverted,d=s.left;(!t.touches||0!==t.touches[0].pageX)&&(e=(t=(null===(i=r.pointer)||void 0===i?void 0:i.normalize(t))||t).chartX,h&&(d=s.top,e=t.chartY),s.grabbedLeft?(s.hasDragged=!0,s.render(0,0,e-d,s.otherHandlePos)):s.grabbedRight?(s.hasDragged=!0,s.render(0,0,s.otherHandlePos,e-d)):s.grabbedCenter&&(s.hasDragged=!0,e<n?e=n:e>a+n-o&&(e=a+n-o),s.render(0,0,e-n,e-n+o)),s.hasDragged&&s.scrollbar&&tF(s.scrollbar.options.liveRedraw,!tT&&!this.chart.boosted)&&(t.DOMType=t.type,setTimeout(function(){s.onMouseUp(t)},0)))},t.prototype.onMouseUp=function(t){var i,e,s,r,a,o,n=this.chart,h=this.xAxis,d=this.scrollbar,l=t.DOMEvent||t,c=n.inverted,g=this.rendered&&!this.hasDragged?"animate":"attr";(this.hasDragged&&(!d||!d.hasDragged)||"scrollbar"===t.trigger)&&(s=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?r=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(a=this.fixedExtreme),this.zoomedMax===this.size&&(a=this.reversedExtremes?s.dataMin:s.dataMax),0===this.zoomedMin&&(r=this.reversedExtremes?s.dataMax:s.dataMin),tP((o=h.navigatorAxis.toFixedRange(this.zoomedMin,this.zoomedMax,r,a)).min)&&tX(this,"setRange",{min:Math.min(o.min,o.max),max:Math.max(o.min,o.max),redraw:!0,animation:!this.hasDragged&&null,eventArguments:{trigger:"navigator",triggerOp:"navigator-drag",DOMEvent:l}})),"mousemove"!==t.DOMType&&"touchmove"!==t.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null),this.navigatorEnabled&&tG(this.zoomedMin)&&tG(this.zoomedMax)&&(e=Math.round(this.zoomedMin),i=Math.round(this.zoomedMax),this.shades&&this.drawMasks(e,i,c,g),this.outline&&this.drawOutline(e,i,c,g),this.navigatorOptions.handles.enabled&&Object.keys(this.handles).length===this.handles.length&&(this.drawHandle(e,0,c,g),this.drawHandle(i,1,c,g)))},t.prototype.removeEvents=function(){this.eventsToUnbind&&(this.eventsToUnbind.forEach(function(t){t()}),this.eventsToUnbind=void 0),this.removeBaseSeriesEvents()},t.prototype.removeBaseSeriesEvents=function(){var t=this.baseSeries||[];this.navigatorEnabled&&t[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&t.forEach(function(t){tj(t,"updatedData",this.updatedDataHandler)},this),t[0].xAxis&&tj(t[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes))},t.prototype.getXAxisOffsets=function(){return this.chart.inverted?[this.scrollButtonSize,0,-this.scrollButtonSize,0]:[0,-this.scrollButtonSize,0,this.scrollButtonSize]},t.prototype.init=function(t){var i,e=t.options,s=e.navigator||{},r=s.enabled,a=e.scrollbar||{},o=a.enabled,n=r&&s.height||0,h=o&&a.height||0,d=a.buttonsEnabled&&h||0;this.handles=[],this.shades=[],this.chart=t,this.setBaseSeries(),this.height=n,this.scrollbarHeight=h,this.scrollButtonSize=d,this.scrollbarEnabled=o,this.navigatorEnabled=r,this.navigatorOptions=s,this.scrollbarOptions=a,this.setOpposite();var l=this,c=l.baseSeries,g=t.xAxis.length,p=t.yAxis.length,u=c&&c[0]&&c[0].xAxis||t.xAxis[0]||{options:{}};if(t.isDirtyBox=!0,l.navigatorEnabled){var v=this.getXAxisOffsets();l.xAxis=new(m())(t,tq({breaks:u.options.breaks,ordinal:u.options.ordinal,overscroll:u.options.overscroll},s.xAxis,{type:"datetime",yAxis:null===(i=s.yAxis)||void 0===i?void 0:i.id,index:g,isInternal:!0,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:u.options.ordinal?0:u.options.minPadding,maxPadding:u.options.ordinal?0:u.options.maxPadding,zoomEnabled:!1},t.inverted?{offsets:v,width:n}:{offsets:v,height:n}),"xAxis"),l.yAxis=new(m())(t,tq(s.yAxis,{alignTicks:!1,offset:0,index:p,isInternal:!0,reversed:tF(s.yAxis&&s.yAxis.reversed,t.yAxis[0]&&t.yAxis[0].reversed,!1),zoomEnabled:!1},t.inverted?{width:n}:{height:n}),"yAxis"),c||s.series.data?l.updateNavigatorSeries(!1):0===t.series.length&&(l.unbindRedraw=tC(t,"beforeRedraw",function(){t.series.length>0&&!l.series&&(l.setBaseSeries(),l.unbindRedraw())})),l.reversedExtremes=t.inverted&&!l.xAxis.reversed||!t.inverted&&l.xAxis.reversed,l.renderElements(),l.addMouseEvents()}else l.xAxis={chart:t,navigatorAxis:{fake:!0},translate:function(i,e){var s=t.xAxis[0],r=s.getExtremes(),a=s.len-2*d,o=tZ("min",s.options.min,r.dataMin),n=tZ("max",s.options.max,r.dataMax)-o;return e?i*n/a+o:a*(i-o)/n},toPixels:function(t){return this.translate(t)},toValue:function(t){return this.translate(t,!0)}},l.xAxis.navigatorAxis.axis=l.xAxis,l.xAxis.navigatorAxis.toFixedRange=I.prototype.toFixedRange.bind(l.xAxis.navigatorAxis);if(t.options.scrollbar.enabled){var f=tq(t.options.scrollbar,{vertical:t.inverted});!tG(f.margin)&&l.navigatorEnabled&&(f.margin=t.inverted?-3:3),t.scrollbar=l.scrollbar=new tw(t.renderer,f,t),tC(l.scrollbar,"changed",function(t){var i=l.size,e=i*this.to,s=i*this.from;l.hasDragged=l.scrollbar.hasDragged,l.render(0,0,s,e),this.shouldUpdateExtremes(t.DOMType)&&setTimeout(function(){l.onMouseUp(t)})})}l.addBaseSeriesEvents(),l.addChartEvents()},t.prototype.setOpposite=function(){var t=this.navigatorOptions,i=this.navigatorEnabled,e=this.chart;this.opposite=tF(t.opposite,!!(!i&&e.inverted))},t.prototype.getUnionExtremes=function(t){var i,e=this.chart.xAxis[0],s=this.chart.time,r=this.xAxis,a=r.options,o=e.options;return t&&null===e.dataMin||(i={dataMin:tF(s.parse(null==a?void 0:a.min),tZ("min",s.parse(o.min),e.dataMin,r.dataMin,r.min)),dataMax:tF(s.parse(null==a?void 0:a.max),tZ("max",s.parse(o.max),e.dataMax,r.dataMax,r.max))}),i},t.prototype.setBaseSeries=function(t,i){var e=this.chart,s=this.baseSeries=[];t=t||e.options&&e.options.navigator.baseSeries||(e.series.length?tI(e.series,function(t){return!t.options.isInternal}).index:0),(e.series||[]).forEach(function(i,e){!i.options.isInternal&&(i.options.showInNavigator||(e===t||i.options.id===t)&&!1!==i.options.showInNavigator)&&s.push(i)}),this.xAxis&&!this.xAxis.navigatorAxis.fake&&this.updateNavigatorSeries(!0,i)},t.prototype.updateNavigatorSeries=function(t,i){var e,s,r,a,o,n=this,h=n.chart,d=n.baseSeries,l={enableMouseTracking:!1,index:null,linkedTo:null,group:"nav",padXAxis:!1,xAxis:null===(e=this.navigatorOptions.xAxis)||void 0===e?void 0:e.id,yAxis:null===(s=this.navigatorOptions.yAxis)||void 0===s?void 0:s.id,showInLegend:!1,stacking:void 0,isInternal:!0,states:{inactive:{opacity:1}}},c=n.series=(n.series||[]).filter(function(t){var i=t.baseSeries;return!(0>d.indexOf(i))||(i&&(tj(i,"updatedData",n.updatedDataHandler),delete i.navigatorSeries),t.chart&&t.destroy(),!1)}),g=n.navigatorOptions.series;d&&d.length&&d.forEach(function(t){var e,s=t.navigatorSeries,p=tN({color:t.color,visible:t.visible},tY(g)?tD.navigator.series:g);if(!s||!1!==n.navigatorOptions.adaptToUpdatedData){l.name="Navigator "+d.length,o=(r=t.options||{}).navigatorOptions||{},p.dataLabels=tV(p.dataLabels),(a=tq(r,l,p,o)).pointRange=tF(p.pointRange,o.pointRange,tD.plotOptions[a.type||"line"].pointRange);var u=o.data||p.data;n.hasNavigatorData=n.hasNavigatorData||!!u,a.data=u||(null===(e=r.data)||void 0===e?void 0:e.slice(0)),s&&s.options?s.update(a,i):(t.navigatorSeries=h.initSeries(a),h.setSortedData(),t.navigatorSeries.baseSeries=t,c.push(t.navigatorSeries))}}),(g.data&&!(d&&d.length)||tY(g))&&(n.hasNavigatorData=!1,(g=tV(g)).forEach(function(t,i){l.name="Navigator "+(c.length+1),(a=tq(tD.navigator.series,{color:h.series[i]&&!h.series[i].options.isInternal&&h.series[i].color||h.options.colors[i]||h.options.colors[0]},l,t)).data=t.data,a.data&&(n.hasNavigatorData=!0,c.push(h.initSeries(a)))})),t&&this.addBaseSeriesEvents()},t.prototype.addBaseSeriesEvents=function(){var t=this,i=this,e=i.baseSeries||[];e[0]&&e[0].xAxis&&e[0].eventsToUnbind.push(tC(e[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes)),e.forEach(function(s){s.eventsToUnbind.push(tC(s,"show",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)})),s.eventsToUnbind.push(tC(s,"hide",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)})),!1!==t.navigatorOptions.adaptToUpdatedData&&s.xAxis&&s.eventsToUnbind.push(tC(s,"updatedData",t.updatedDataHandler)),s.eventsToUnbind.push(tC(s,"remove",function(){e&&tU(e,s),this.navigatorSeries&&i.series&&(tU(i.series,this.navigatorSeries),tP(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)}))})},t.prototype.getBaseSeriesMin=function(t){return this.baseSeries.reduce(function(t,i){var e;return Math.min(t,null!==(e=i.getColumn("x")[0])&&void 0!==e?e:t)},t)},t.prototype.modifyNavigatorAxisExtremes=function(){var t=this.xAxis;if(void 0!==t.getExtremes){var i=this.getUnionExtremes(!0);i&&(i.dataMin!==t.min||i.dataMax!==t.max)&&(t.min=i.dataMin,t.max=i.dataMax)}},t.prototype.modifyBaseAxisExtremes=function(){var t,i,e,s=this.chart.navigator,r=this.getExtremes(),a=r.min,o=r.max,n=r.dataMin,h=r.dataMax,d=o-a,l=s.stickToMin,c=s.stickToMax,g=tF(null===(t=this.ordinal)||void 0===t?void 0:t.convertOverscroll(this.options.overscroll),0),p=s.series&&s.series[0],u=!!this.setExtremes;!(this.eventArgs&&"rangeSelectorButton"===this.eventArgs.trigger)&&(l&&(i=(e=n)+d),c&&(i=h+g,l||(e=Math.max(n,i-d,s.getBaseSeriesMin(p&&p.xData?p.xData[0]:-Number.MAX_VALUE)))),u&&(l||c)&&tG(e)&&(this.min=this.userMin=e,this.max=this.userMax=i)),s.stickToMin=s.stickToMax=null},t.prototype.updatedDataHandler=function(){var t=this.chart.navigator,i=this.navigatorSeries,e=t.reversedExtremes?0===Math.round(t.zoomedMin):Math.round(t.zoomedMax)>=Math.round(t.size);t.stickToMax=tF(this.chart.options.navigator&&this.chart.options.navigator.stickToMax,e),t.stickToMin=t.shouldStickToMin(this,t),i&&!t.hasNavigatorData&&(i.options.pointStart=this.getColumn("x")[0],i.setData(this.options.data,!1,null,!1))},t.prototype.shouldStickToMin=function(t,i){var e=i.getBaseSeriesMin(t.getColumn("x")[0]),s=t.xAxis,r=s.max,a=s.min,o=s.options.range;return!!(tG(r)&&tG(a))&&(o&&r-e>0?r-e<o:a<=e)},t.prototype.addChartEvents=function(){this.eventsToUnbind||(this.eventsToUnbind=[]),this.eventsToUnbind.push(tC(this.chart,"redraw",function(){var t=this.navigator,i=t&&(t.baseSeries&&t.baseSeries[0]&&t.baseSeries[0].xAxis||this.xAxis[0]);i&&t.render(i.min,i.max)}),tC(this.chart,"getMargins",function(){var t=this.navigator,i=t.opposite?"plotTop":"marginBottom";this.inverted&&(i=t.opposite?"marginRight":"plotLeft"),this[i]=(this[i]||0)+(t.navigatorEnabled||!this.inverted?t.height+t.scrollbarHeight:0)+t.navigatorOptions.margin}),tC(t,"setRange",function(t){this.chart.xAxis[0].setExtremes(t.min,t.max,t.redraw,t.animation,t.eventArguments)}))},t.prototype.destroy=function(){var t=this;this.removeEvents(),this.xAxis&&(tU(this.chart.xAxis,this.xAxis),tU(this.chart.axes,this.xAxis)),this.yAxis&&(tU(this.chart.yAxis,this.yAxis),tU(this.chart.axes,this.yAxis)),(this.series||[]).forEach(function(t){t.destroy&&t.destroy()}),["series","xAxis","yAxis","shades","outline","scrollbarTrack","scrollbarRifles","scrollbarGroup","scrollbar","navigatorGroup","rendered"].forEach(function(i){t[i]&&t[i].destroy&&t[i].destroy(),t[i]=null}),[this.handles].forEach(function(t){tH(t)}),this.navigatorEnabled=!1},t}(),tJ={chart:{height:70,margin:[0,5,0,5]},exporting:{enabled:!1},legend:{enabled:!1},navigator:{enabled:!1},plotOptions:{series:{states:{hover:{enabled:!1}},marker:{enabled:!1}}},scrollbar:{enabled:!1},title:{text:""},tooltip:{enabled:!1},xAxis:{visible:!1},yAxis:{height:0,visible:!1}},tK=u().merge,tQ=u().addEvent,t$=u().fireEvent,t0=u().pick,t1=function(){function t(t,i){this.boundAxes=[],this.userOptions=i,this.chartOptions=tK(u().getOptions(),tJ,{navigator:i}),this.chartOptions.chart&&i.height&&(this.chartOptions.chart.height=i.height);var e=new(f())(t,this.chartOptions);e.options=tK(e.options,{navigator:{enabled:!0},scrollbar:{enabled:!0}}),this.chartOptions.navigator&&this.chartOptions.scrollbar&&(this.chartOptions.navigator.enabled=!0,this.chartOptions.scrollbar.enabled=!0),this.navigator=new t_(e),e.navigator=this.navigator,this.initNavigator()}return t.navigator=function(i,e){var s=new t(i,e);return u().navigators?u().navigators.push(s):u().navigators=[s],s},t.prototype.bind=function(t,i){var e=this;void 0===i&&(i=!0);var s=this,r=t instanceof f()?t.xAxis[0]:t;if(r instanceof m()){var a=this.navigator.xAxis,o=a.min,n=a.max,h=[];if(i){var d=tQ(r,"setExtremes",function(t){("pan"===t.trigger||"zoom"===t.trigger||"mouseWheelZoom"===t.trigger)&&s.setRange(t.min,t.max,!0,"pan"!==t.trigger,{trigger:r})});h.push(d)}var l=tQ(this.navigator,"setRange",function(t){r.setExtremes(t.min,t.max,t.redraw,t.animation)});h.push(l);var c=this.boundAxes.filter(function(t){return t.axis===r})[0];c||(c={axis:r,callbacks:[]},this.boundAxes.push(c)),c.callbacks=h,r.series.forEach(function(t){t.options.showInNavigator&&s.addSeries(t.options)}),r.setExtremes(o,n),tQ(r,"destroy",function(t){t.keepEvents||e.unbind(r)})}},t.prototype.unbind=function(t){if(!t){this.boundAxes.forEach(function(t){t.callbacks.forEach(function(t){return t()})}),this.boundAxes.length=0;return}for(var i=t instanceof m()?t:t.xAxis[0],e=this.boundAxes.length-1;e>=0;e--)this.boundAxes[e].axis===i&&(this.boundAxes[e].callbacks.forEach(function(t){return t()}),this.boundAxes.splice(e,1))},t.prototype.destroy=function(){this.boundAxes.forEach(function(t){t.callbacks.forEach(function(t){return t()})}),this.boundAxes.length=0,this.navigator.destroy(),this.navigator.chart.destroy()},t.prototype.update=function(t,i){this.chartOptions=tK(this.chartOptions,t.height&&{chart:{height:t.height}},{navigator:t}),this.navigator.chart.update(this.chartOptions,i)},t.prototype.redraw=function(){this.navigator.chart.redraw()},t.prototype.addSeries=function(t){this.navigator.chart.addSeries(tK(t,{showInNavigator:t0(t.showInNavigator,!0)})),this.navigator.setBaseSeries()},t.prototype.initNavigator=function(){var t,i=this.navigator;i.top=1,i.xAxis.setScale(),i.yAxis.setScale(),i.xAxis.render(),i.yAxis.render(),null===(t=i.series)||void 0===t||t.forEach(function(t){t.translate(),t.render(),t.redraw()});var e=this.getInitialExtremes(),s=e.min,r=e.max;i.chart.xAxis[0].userMin=s,i.chart.xAxis[0].userMax=r,i.render(s,r)},t.prototype.getRange=function(){var t=this.navigator.chart.xAxis[0].getExtremes(),i=t.min,e=t.max,s=this.navigator.xAxis.getExtremes(),r=s.userMin,a=s.userMax,o=s.min,n=s.max;return{min:t0(i,o),max:t0(e,n),dataMin:o,dataMax:n,userMin:r,userMax:a}},t.prototype.setRange=function(t,i,e,s,r){t$(this.navigator,"setRange",{min:t,max:i,redraw:e,animation:s,eventArguments:tK(r,{trigger:"navigator"})})},t.prototype.getInitialExtremes=function(){var t=this.navigator.xAxis.getExtremes();return{min:t.min,max:t.max}},t}(),t2=u();t2.StandaloneNavigator=t2.StandaloneNavigator||t1,t2.navigator=t2.StandaloneNavigator.navigator,th(t2.Chart,t2.Axis,t2.Series);var t5=u();return g.default}()});

Hacked By AnonymousFox1.0, Coded By AnonymousFox