marketplacepos 2.8.1 → 2.8.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/Marketplace/3.8bcc67645faedceb.js +1 -0
  2. package/Marketplace/369.00fa5850755b564c.js +1 -0
  3. package/Marketplace/379.fd2e5a0bd36c9b00.js +1 -0
  4. package/Marketplace/393.9113a28596b36003.js +1 -0
  5. package/Marketplace/397.ca5b2d31b8a43c67.js +1 -0
  6. package/Marketplace/3rdpartylicenses.txt +3 -0
  7. package/Marketplace/408.4699157318f765d5.js +1 -0
  8. package/Marketplace/425.03f8f97da7452806.js +1 -0
  9. package/Marketplace/46.40ebac81bd0fb91b.js +1 -0
  10. package/Marketplace/53.0935a71a693bcaa6.js +1 -0
  11. package/Marketplace/655.9604b4370243c059.js +1 -0
  12. package/Marketplace/717.5d253da5bb63552f.js +1 -0
  13. package/Marketplace/718.455a3c47fb180214.js +1 -0
  14. package/Marketplace/72.d59410fd71caf119.js +1 -0
  15. package/Marketplace/{859.b43bda3adda95fa3.js → 859.3a4d26983bbb5254.js} +1 -1
  16. package/Marketplace/874.5b06431d2b5a1e8f.js +1 -0
  17. package/Marketplace/884.d556fd68d978ebbf.js +1 -0
  18. package/Marketplace/{913.6b5b3db030c3bc49.js → 913.ac94f56e393c389b.js} +1 -1
  19. package/Marketplace/997.1e5281aa64540dee.js +1 -0
  20. package/Marketplace/common.7ce512ca9d1674b7.js +1 -0
  21. package/Marketplace/index.html +3 -3
  22. package/Marketplace/main.1f9360e329df45f0.js +1 -0
  23. package/Marketplace/runtime.f47a01fcff98d816.js +1 -0
  24. package/package.json +1 -1
  25. package/Marketplace/369.33e88f5dbfad2a11.js +0 -1
  26. package/Marketplace/397.55fafd1d8945185c.js +0 -1
  27. package/Marketplace/408.b53797a5bda9f7f8.js +0 -1
  28. package/Marketplace/46.67982fb195b43a4d.js +0 -1
  29. package/Marketplace/53.7e8bb7325980dfd5.js +0 -1
  30. package/Marketplace/655.09b1b17f23a59b7e.js +0 -1
  31. package/Marketplace/717.2e5a78cf17e9bed1.js +0 -1
  32. package/Marketplace/718.78930b2d3e9fc2bd.js +0 -1
  33. package/Marketplace/72.a5fd86c341c782ab.js +0 -1
  34. package/Marketplace/82.fecf4fa3a3743326.js +0 -1
  35. package/Marketplace/87.0c53ec1547d4d5d5.js +0 -1
  36. package/Marketplace/874.7662257927081a57.js +0 -1
  37. package/Marketplace/877.7e5f8104980e0168.js +0 -1
  38. package/Marketplace/884.45404dc14d1585a7.js +0 -1
  39. package/Marketplace/970.7c36426f4bcc50cb.js +0 -1
  40. package/Marketplace/997.08e3f8cf0bafff67.js +0 -1
  41. package/Marketplace/common.df21aa97084954ce.js +0 -1
  42. package/Marketplace/main.eecfefa4252b5eed.js +0 -1
  43. package/Marketplace/runtime.de26ccbce9eb9189.js +0 -1
@@ -0,0 +1 @@
1
+ (self.webpackChunkpos_marketplace=self.webpackChunkpos_marketplace||[]).push([[655],{9655:(Ot,Lt,vt)=>{"use strict";vt.r(Lt),vt.d(Lt,{DashboardModule:()=>nt});var wt=vt(6895),Tt=vt(3470),ct=vt(4782),U=vt(4004),G=vt(9694),F=vt(1889),M=vt(4650),rt=vt(529),it=vt(4461);class ot{constructor(K){this.Chart=K.Chart,this.PerformanceChannel=K.PerformanceChannel,this.lineChartOptions=this.generateLineChartOptions(),this.pieChartOptions=this.generatePieChartOptions()}generateLineChartOptions(){let K=0;return{chart:{type:"spline",inverted:!1},credits:{enabled:!1},yAxis:{title:{text:""}},xAxis:{categories:this.Chart.XAxis,labels:{style:{fontSize:"10px"}}},title:{text:""},legend:{itemMarginTop:2,itemMarginBottom:2,itemStyle:{fontSize:"10px"}},tooltip:{pointFormatter:function(){return'<span style="color:'+this.color+'">\u25cf</span> '+this.series.name+": <b>"+Tt.numberFormat(this.y,0,",",".")+" IDR</b><br/>"}},series:this.Chart.Area.filter(et=>(K=0,et?.Data.forEach(V=>{0==V&&(K+=1)}),K!=et.Data.length)).map(et=>({name:et.Name,data:et.Data,type:"spline",color:F.g.getCssChannelColor(et.TypeID)}))}}generatePieChartOptions(){return{credits:{enabled:!1},title:{text:""},legend:{itemMarginTop:2,itemMarginBottom:2,itemStyle:{fontSize:"10px"}},plotOptions:{pie:{allowPointSelect:!0,cursor:"pointer",dataLabels:{enabled:!0,format:"<b>{point.name}</b>: {point.y} Orders"},showInLegend:!0}},series:[{type:"pie",name:"Total",data:this.Chart.Pie.filter(X=>X.Order>0).map(X=>({name:X.Name,y:X.Order,color:F.g.getCssChannelColor(X.TypeID)}))}]}}}class q{constructor(K){this.http=K}getDashboardData(K){const et=(new rt.LE).set("range","Week"==K?0:1);return this.http.get("/api/dashboard/GetDashboardData",{params:et}).pipe((0,U.U)(V=>new ot(V)))}getChannelShortcuts(){return[{name:"Tokopedia",class:"btn-tokopedia",typeId:G.x.Tokopedia,campaign:"https://seller.tokopedia.com/promo",chat:"https://seller.tokopedia.com/chat",logo:it.$.TOKOPEDIA,sellerCenter:"https://seller.tokopedia.com"},{name:"Shopee",class:"btn-shopee",typeId:G.x.ShopeeV2,campaign:"https://seller.shopee.co.id/portal/marketing",chat:"https://seller.shopee.co.id/webchat/conversations",logo:it.$.SHOOPE,sellerCenter:"https://seller.shopee.co.id/"},{name:"Tiktok",class:"btn-tiktok",typeId:G.x.Tiktok,campaign:"https://seller-id.tiktok.com",chat:"https://seller-id.tiktok.com/chat?lang=id-ID&from=seller_center_navigation_im",logo:it.$.TIKTOK,sellerCenter:"https://seller-id.tiktok.com"},{name:"Lazada",class:"btn-lazada",typeId:G.x.Lazada,campaign:"https://sellercenter.lazada.co.id/apps/promotion/home?",chat:"https://sellercenter.lazada.co.id/apps/im/chat",logo:it.$.LAZADA,sellerCenter:"https://sellercenter.lazada.co.id"}]}}q.\u0275fac=function(K){return new(K||q)(M.LFG(rt.eN))},q.\u0275prov=M.Yz7({token:q,factory:q.\u0275fac});var B=vt(7481),I=vt(4006);let O=(()=>{class J{constructor(X,et){this.el=X,this._zone=et,this.updateChange=new M.vpe(!0),this.chartInstance=new M.vpe}ngOnChanges(X){const et=X.update&&X.update.currentValue;(X.options||et)&&(this.wrappedUpdateOrCreateChart(),et&&this.updateChange.emit(!1))}wrappedUpdateOrCreateChart(){this.runOutsideAngular?this._zone.runOutsideAngular(()=>{this.updateOrCreateChart()}):this.updateOrCreateChart()}updateOrCreateChart(){this.chart&&this.chart.update?this.chart.update(this.options,!0,this.oneToOne||!1):(this.chart=this.Highcharts[this.constructorType||"chart"](this.el.nativeElement,this.options,this.callbackFunction||null),this.chartInstance.emit(this.chart))}ngOnDestroy(){this.chart&&(this.chart.destroy(),this.chart=null)}}return J.\u0275fac=function(X){return new(X||J)(M.Y36(M.SBq),M.Y36(M.R0b))},J.\u0275cmp=M.Xpm({type:J,selectors:[["highcharts-chart"]],inputs:{Highcharts:"Highcharts",constructorType:"constructorType",callbackFunction:"callbackFunction",oneToOne:"oneToOne",runOutsideAngular:"runOutsideAngular",options:"options",update:"update"},outputs:{updateChange:"updateChange",chartInstance:"chartInstance"},features:[M.TTD],decls:0,vars:0,template:function(X,et){},encapsulation:2}),J})(),g=(()=>{class J{}return J.\u0275fac=function(X){return new(X||J)},J.\u0275mod=M.oAB({type:J}),J.\u0275inj=M.cJS({}),J})();var f=vt(8796),y=vt(2693),C=vt(1281),v=vt(9521),x=vt(3238),w=vt(7579),T=vt(6451),A=vt(7340);const j=["mat-sort-header",""];function k(J,K){if(1&J){const X=M.EpF();M.TgZ(0,"div",3),M.NdJ("@arrowPosition.start",function(){M.CHM(X);const V=M.oxw();return M.KtG(V._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){M.CHM(X);const V=M.oxw();return M.KtG(V._disableViewStateAnimation=!1)}),M._UZ(1,"div",4),M.TgZ(2,"div",5),M._UZ(3,"div",6)(4,"div",7)(5,"div",8),M.qZA()()}if(2&J){const X=M.oxw();M.Q6J("@arrowOpacity",X._getArrowViewState())("@arrowPosition",X._getArrowViewState())("@allowChildren",X._getArrowDirectionState()),M.xp6(2),M.Q6J("@indicator",X._getArrowDirectionState()),M.xp6(1),M.Q6J("@leftPointer",X._getArrowDirectionState()),M.xp6(1),M.Q6J("@rightPointer",X._getArrowDirectionState())}}const r=["*"],c=new M.OlP("MAT_SORT_DEFAULT_OPTIONS"),i=(0,x.dB)((0,x.Id)(class{}));let s=(()=>{class J extends i{get direction(){return this._direction}set direction(X){this._direction=X}get disableClear(){return this._disableClear}set disableClear(X){this._disableClear=(0,C.Ig)(X)}constructor(X){super(),this._defaultOptions=X,this.sortables=new Map,this._stateChanges=new w.x,this.start="asc",this._direction="",this.sortChange=new M.vpe}register(X){this.sortables.set(X.id,X)}deregister(X){this.sortables.delete(X.id)}sort(X){this.active!=X.id?(this.active=X.id,this.direction=X.start?X.start:this.start):this.direction=this.getNextSortDirection(X),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(X){if(!X)return"";let V=function d(J,K){let X=["asc","desc"];return"desc"==J&&X.reverse(),K||X.push(""),X}(X.start||this.start,X?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear),R=V.indexOf(this.direction)+1;return R>=V.length&&(R=0),V[R]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return J.\u0275fac=function(X){return new(X||J)(M.Y36(c,8))},J.\u0275dir=M.lG2({type:J,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],active:["matSortActive","active"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[M.qOj,M.TTD]}),J})();const a=x.mZ.ENTERING+" "+x.yN.STANDARD_CURVE,m={indicator:(0,A.X$)("indicator",[(0,A.SB)("active-asc, asc",(0,A.oB)({transform:"translateY(0px)"})),(0,A.SB)("active-desc, desc",(0,A.oB)({transform:"translateY(10px)"})),(0,A.eR)("active-asc <=> active-desc",(0,A.jt)(a))]),leftPointer:(0,A.X$)("leftPointer",[(0,A.SB)("active-asc, asc",(0,A.oB)({transform:"rotate(-45deg)"})),(0,A.SB)("active-desc, desc",(0,A.oB)({transform:"rotate(45deg)"})),(0,A.eR)("active-asc <=> active-desc",(0,A.jt)(a))]),rightPointer:(0,A.X$)("rightPointer",[(0,A.SB)("active-asc, asc",(0,A.oB)({transform:"rotate(45deg)"})),(0,A.SB)("active-desc, desc",(0,A.oB)({transform:"rotate(-45deg)"})),(0,A.eR)("active-asc <=> active-desc",(0,A.jt)(a))]),arrowOpacity:(0,A.X$)("arrowOpacity",[(0,A.SB)("desc-to-active, asc-to-active, active",(0,A.oB)({opacity:1})),(0,A.SB)("desc-to-hint, asc-to-hint, hint",(0,A.oB)({opacity:.54})),(0,A.SB)("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",(0,A.oB)({opacity:0})),(0,A.eR)("* => asc, * => desc, * => active, * => hint, * => void",(0,A.jt)("0ms")),(0,A.eR)("* <=> *",(0,A.jt)(a))]),arrowPosition:(0,A.X$)("arrowPosition",[(0,A.eR)("* => desc-to-hint, * => desc-to-active",(0,A.jt)(a,(0,A.F4)([(0,A.oB)({transform:"translateY(-25%)"}),(0,A.oB)({transform:"translateY(0)"})]))),(0,A.eR)("* => hint-to-desc, * => active-to-desc",(0,A.jt)(a,(0,A.F4)([(0,A.oB)({transform:"translateY(0)"}),(0,A.oB)({transform:"translateY(25%)"})]))),(0,A.eR)("* => asc-to-hint, * => asc-to-active",(0,A.jt)(a,(0,A.F4)([(0,A.oB)({transform:"translateY(25%)"}),(0,A.oB)({transform:"translateY(0)"})]))),(0,A.eR)("* => hint-to-asc, * => active-to-asc",(0,A.jt)(a,(0,A.F4)([(0,A.oB)({transform:"translateY(0)"}),(0,A.oB)({transform:"translateY(-25%)"})]))),(0,A.SB)("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",(0,A.oB)({transform:"translateY(0)"})),(0,A.SB)("hint-to-desc, active-to-desc, desc",(0,A.oB)({transform:"translateY(-25%)"})),(0,A.SB)("hint-to-asc, active-to-asc, asc",(0,A.oB)({transform:"translateY(25%)"}))]),allowChildren:(0,A.X$)("allowChildren",[(0,A.eR)("* <=> *",[(0,A.IO)("@*",(0,A.pV)(),{optional:!0})])])};let L=(()=>{class J{constructor(){this.changes=new w.x}}return J.\u0275fac=function(X){return new(X||J)},J.\u0275prov=M.Yz7({token:J,factory:J.\u0275fac,providedIn:"root"}),J})();const _={provide:L,deps:[[new M.FiY,new M.tp0,L]],useFactory:function Y(J){return J||new L}},e=(0,x.Id)(class{});let l=(()=>{class J extends e{get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(X){this._updateSortActionDescription(X)}get disableClear(){return this._disableClear}set disableClear(X){this._disableClear=(0,C.Ig)(X)}constructor(X,et,V,R,H,Q,tt,st){super(),this._intl=X,this._changeDetectorRef=et,this._sort=V,this._columnDef=R,this._focusMonitor=H,this._elementRef=Q,this._ariaDescriber=tt,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",st?.arrowPosition&&(this.arrowPosition=st?.arrowPosition),this._handleStateChanges()}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(X=>{const et=!!X;et!==this._showIndicatorHint&&(this._setIndicatorHintVisible(et),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(X){this._isDisabled()&&X||(this._showIndicatorHint=X,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(X){this._viewState=X||{},this._disableViewStateAnimation&&(this._viewState={toState:X.toState})}_toggleOnInteraction(){this._sort.sort(this),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(X){!this._isDisabled()&&(X.keyCode===v.L_||X.keyCode===v.K5)&&(X.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const X=this._viewState.fromState;return(X?`${X}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(X){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,X)),this._sortActionDescription=X}_handleStateChanges(){this._rerenderSubscription=(0,T.T)(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}}return J.\u0275fac=function(X){return new(X||J)(M.Y36(L),M.Y36(M.sBO),M.Y36(s,8),M.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),M.Y36(y.tE),M.Y36(M.SBq),M.Y36(y.$s,8),M.Y36(c,8))},J.\u0275cmp=M.Xpm({type:J,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(X,et){1&X&&M.NdJ("click",function(){return et._handleClick()})("keydown",function(R){return et._handleKeydown(R)})("mouseenter",function(){return et._setIndicatorHintVisible(!0)})("mouseleave",function(){return et._setIndicatorHintVisible(!1)}),2&X&&(M.uIk("aria-sort",et._getAriaSortAttribute()),M.ekj("mat-sort-header-disabled",et._isDisabled()))},inputs:{disabled:"disabled",id:["mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",sortActionDescription:"sortActionDescription",disableClear:"disableClear"},exportAs:["matSortHeader"],features:[M.qOj],attrs:j,ngContentSelectors:r,decls:4,vars:7,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(X,et){1&X&&(M.F$t(),M.TgZ(0,"div",0)(1,"div",1),M.Hsn(2),M.qZA(),M.YNc(3,k,6,6,"div",2),M.qZA()),2&X&&(M.ekj("mat-sort-header-sorted",et._isSorted())("mat-sort-header-position-before","before"===et.arrowPosition),M.uIk("tabindex",et._isDisabled()?null:0)("role",et._isDisabled()?null:"button"),M.xp6(3),M.Q6J("ngIf",et._renderArrow()))},dependencies:[wt.O5],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}"],encapsulation:2,data:{animation:[m.indicator,m.leftPointer,m.rightPointer,m.arrowOpacity,m.arrowPosition,m.allowChildren]},changeDetection:0}),J})(),P=(()=>{class J{}return J.\u0275fac=function(X){return new(X||J)},J.\u0275mod=M.oAB({type:J}),J.\u0275inj=M.cJS({providers:[_],imports:[wt.ez,x.BQ]}),J})();class D{transform(K,X,et,V){let R=0;return K&&!et&&!V&&K.forEach(H=>R+=H[X]-0),et&&V&&K.forEach(H=>{H[et]==V&&(R+=H[X]-0)}),R}}function b(J,K){if(1&J&&(M.TgZ(0,"tr",34)(1,"td"),M._UZ(2,"img",35),M.qZA(),M.TgZ(3,"td",36),M._uU(4),M.qZA(),M.TgZ(5,"td",37),M._uU(6),M.ALo(7,"number"),M.qZA(),M.TgZ(8,"td",38),M._uU(9),M.ALo(10,"number"),M.qZA(),M.TgZ(11,"td",39),M._uU(12),M.ALo(13,"number"),M.qZA()()),2&J){const X=K.$implicit;M.xp6(2),M.Q6J("src",X.logo,M.LSH),M.xp6(2),M.Oqu(X.Name),M.xp6(2),M.Oqu(M.lcZ(7,5,X.Products)),M.xp6(3),M.Oqu(M.lcZ(10,7,X.Order)),M.xp6(3),M.Oqu(M.lcZ(13,9,X.Amount))}}D.\u0275fac=function(K){return new(K||D)},D.\u0275pipe=M.Yjl({name:"sum",type:D,pure:!0});const n=function(J){return{"border-color":J}};function S(J,K){if(1&J&&(M.TgZ(0,"tr",40)(1,"td",41),M._UZ(2,"img",35),M.qZA(),M.TgZ(3,"td",42)(4,"a",43),M._uU(5,"Seller Center"),M.qZA()(),M.TgZ(6,"td",42)(7,"a",44),M._uU(8,"Chat"),M.qZA()(),M.TgZ(9,"td",42)(10,"a",43),M._uU(11,"Campaign"),M.qZA()()()),2&J){const X=K.$implicit,et=K.index,V=M.oxw(2);M.Q6J("ngStyle",M.VKq(11,n,V.channelShortcut.length-1==et?"white":"")),M.xp6(2),M.Q6J("src",X.logo,M.LSH),M.xp6(2),M.Tol(X.class),M.Q6J("href",X.sellerCenter,M.LSH),M.xp6(3),M.Tol(X.class),M.Q6J("href",X.chat,M.LSH),M.xp6(3),M.Tol(X.class),M.Q6J("href",X.campaign,M.LSH)}}function u(J,K){if(1&J){const X=M.EpF();M.ynx(0),M.TgZ(1,"div",6)(2,"div",7)(3,"div",8)(4,"div",9)(5,"div",10)(6,"h1",11),M._uU(7,"Daily Sales"),M.qZA()(),M.TgZ(8,"div",12),M._UZ(9,"highcharts-chart",13),M.qZA()()()(),M.TgZ(10,"div",7)(11,"div",8)(12,"div",9)(13,"div",10)(14,"h1",11),M._uU(15),M.qZA()(),M.TgZ(16,"div",12),M._UZ(17,"highcharts-chart",13),M.qZA()()()()(),M.TgZ(18,"div",14)(19,"div",15)(20,"div",8)(21,"div",16)(22,"h1",17),M._uU(23),M.qZA()(),M.TgZ(24,"div",9)(25,"div",18)(26,"table",19),M.NdJ("matSortChange",function(V){const H=M.CHM(X).ngIf,Q=M.oxw();return M.KtG(Q.onSort(V,H))}),M.TgZ(27,"thead")(28,"tr",20),M._UZ(29,"th",21),M.TgZ(30,"th",22),M._uU(31,"Store Name"),M.qZA(),M.TgZ(32,"th",23),M._uU(33," Products"),M.qZA(),M.TgZ(34,"th",24),M._uU(35,"Order "),M.qZA(),M.TgZ(36,"th",25),M._uU(37,"Amount "),M.qZA()()(),M.TgZ(38,"tbody"),M.YNc(39,b,14,11,"tr",26),M.qZA(),M.TgZ(40,"tfoot")(41,"tr",27),M._UZ(42,"td",28),M.TgZ(43,"td",29),M._uU(44,"Total"),M.qZA(),M.TgZ(45,"td",30),M._uU(46),M.ALo(47,"number"),M.ALo(48,"sum"),M.qZA(),M.TgZ(49,"td",30),M._uU(50),M.ALo(51,"number"),M.ALo(52,"sum"),M.qZA(),M.TgZ(53,"td",30),M._uU(54),M.ALo(55,"number"),M.ALo(56,"sum"),M.qZA()()()()()()()(),M.TgZ(57,"div",31)(58,"div",8)(59,"div",16)(60,"h1",17),M._uU(61,"Seller Center Shortcut"),M.qZA()(),M.TgZ(62,"div",9)(63,"div",18)(64,"table",32)(65,"tbody"),M.YNc(66,S,12,13,"tr",33),M.qZA()()()()()()(),M.BQk()}if(2&J){const X=K.ngIf,et=M.oxw();M.xp6(9),M.Q6J("Highcharts",et.Highcharts)("options",X.lineChartOptions),M.xp6(6),M.hij("Order Count (",et.dateTitle,")"),M.xp6(2),M.Q6J("Highcharts",et.Highcharts)("options",X.pieChartOptions),M.xp6(6),M.hij("Channel Sales (",et.dateTitle,")"),M.xp6(16),M.Q6J("ngForOf",X.PerformanceChannel),M.xp6(7),M.Oqu(M.lcZ(47,11,M.xi3(48,13,X.PerformanceChannel,"Products"))),M.xp6(4),M.hij("",M.lcZ(51,16,M.xi3(52,18,X.PerformanceChannel,"Order"))," "),M.xp6(4),M.hij("",M.lcZ(55,21,M.xi3(56,23,X.PerformanceChannel,"Amount"))," "),M.xp6(12),M.Q6J("ngForOf",et.channelShortcut)}}const z=function(){return["Week","Month"]};class E{constructor(K,X){this.dashboardService=K,this.datePipe=X,this.Highcharts=Tt,this.filter="Week",this.channelType=G.x,this.channelShortcut=K.getChannelShortcuts()}ngOnInit(){this.initDashboardData()}initDashboardData(){this.dashboardData$=this.dashboardService.getDashboardData(this.filter).pipe((0,ct.d)(),(0,U.U)(K=>(K.PerformanceChannel=K.PerformanceChannel.map(X=>(X.logo=F.g.getChannelLogoByTypeId(X.TypeID),X)),this.performanceChannelSource=JSON.parse(JSON.stringify(K.PerformanceChannel)),K.PerformanceChannel=this.sorting(K.PerformanceChannel,"Amount","desc"),this.filterChannelShortcut(K.PerformanceChannel),this.generateDateTitle(),K)))}generateDateTitle(){const K=new Date,X=this.datePipe.transform(K,"dd MMMM"),et=new Date;let V;et.setDate("Week"==this.filter?et.getDate()-6:et.getDate()-30),V=et.getMonth()==K.getMonth()?this.datePipe.transform(et,"dd"):this.datePipe.transform(et,"dd MMMM"),this.dateTitle=`${V}-${X}`}filterChannelShortcut(K){const X=K.filter((et,V,R)=>R.findIndex(H=>H.TypeID==et.TypeID)===V);this.channelShortcut=this.channelShortcut.filter(et=>-1!==X.findIndex(V=>V.TypeID==et.typeId))}sorting(K,X,et){return K.sort((V,R)=>F.g.compare(V[X],R[X],"asc"==et))}onFilter(){this.initDashboardData()}onSort(K,X){X.PerformanceChannel=K.active&&""!==K.direction?X.PerformanceChannel.sort((et,V)=>{const R="asc"===K.direction;switch(K.active){case"Products":return F.g.compare(et.Products,V.Products,R);case"Order":return F.g.compare(et.Order,V.Order,R);case"Amount":return F.g.compare(et.Amount,V.Amount,R);default:return 0}}):JSON.parse(JSON.stringify(this.performanceChannelSource))}}E.\u0275fac=function(K){return new(K||E)(M.Y36(q),M.Y36(wt.uU))},E.\u0275cmp=M.Xpm({type:E,selectors:[["app-dashboard"]],decls:11,vars:7,consts:[["headerTitle","Dashboard",3,"hideSearchBox","onSubmit"],["container",""],[1,"mb-3","fw-normal"],["bindLabel","Name","name","channelid","bindValue","ID",1,"center-text",3,"items","ngModel","ngModelChange"],[1,"container-fluid"],[4,"ngIf"],[1,"row","mt-6"],[1,"col-6"],[1,"card"],[1,"card-body"],[1,"d-flex","justify-content-start"],[1,"card-title","ms-4","mt-6"],[1,"mt-5"],[2,"display","block","width","100%","height","100%",3,"Highcharts","options"],[1,"row"],[1,"col-8"],[1,"d-flex","justify-content-start","border-bottom"],[1,"card-title","my-6","ms-10"],[1,"table-responsive","mt-2"],["matSort","",1,"table",3,"matSortChange"],[2,"border","none !important"],[2,"width","10px"],[2,"width","200px","padding-left","0px"],["arrowPosition","before","mat-sort-header","Products",1,"text-end",2,"width","70px"],["arrowPosition","before","mat-sort-header","Order",1,"text-end",2,"width","70px"],["arrowPosition","before","mat-sort-header","Amount",1,"text-end",2,"width","70px"],["class","py-4",4,"ngFor","ngForOf"],[1,"fw-bold","fs-5","border-bottom-0"],[1,"border-bottom-0",2,"width","10px"],[1,"border-bottom-0",2,"width","210px","padding-left","0px"],[1,"text-end","border-bottom-0"],[1,"col-4"],[1,"table"],[3,"ngStyle",4,"ngFor","ngForOf"],[1,"py-4"],["alt","",2,"width","25px",3,"src"],[2,"width","210px","padding-left","0px"],[1,"text-end",2,"width","100px"],[1,"text-end",2,"width","115px"],[1,"text-end",2,"width","70px"],[3,"ngStyle"],[1,"text-end",2,"width","45px"],[1,"text-center"],["role","button","target","_blank","type","button",1,"btn","btn-sm","rounded",3,"href"],["role","button","type","button","target","_blank",1,"btn","btn-sm","rounded",3,"href"]],template:function(K,X){1&K&&(M.TgZ(0,"mainpanel",0),M.NdJ("onSubmit",function(){return X.onFilter()}),M.TgZ(1,"filters")(2,"div",1)(3,"div")(4,"h5",2),M._uU(5,"Select a Period"),M.qZA(),M.TgZ(6,"ng-select",3),M.NdJ("ngModelChange",function(V){return X.filter=V}),M.qZA()()()(),M.TgZ(7,"content")(8,"div",4),M.YNc(9,u,67,26,"ng-container",5),M.ALo(10,"async"),M.qZA()()()),2&K&&(M.Q6J("hideSearchBox",!0),M.xp6(6),M.Q6J("items",M.DdM(6,z))("ngModel",X.filter),M.xp6(3),M.Q6J("ngIf",M.lcZ(10,4,X.dashboardData$)))},dependencies:[wt.sg,wt.O5,wt.PC,B.p,I.JJ,I.On,O,f.w9,s,l,wt.Ov,wt.JJ,D],styles:[".btn-shopee[_ngcontent-%COMP%]{background-color:#ee4d2d;color:#fff}.btn-lazada[_ngcontent-%COMP%]{background-color:#ff00b2;color:#fff}.btn-tokopedia[_ngcontent-%COMP%]{background-color:var(--G500, #03AC0E);color:#fff}.btn-tiktok[_ngcontent-%COMP%]{background-color:#000;color:#fff}.btn-woocommerce[_ngcontent-%COMP%]{background-color:#674399;color:#fff}.btn-kalcare[_ngcontent-%COMP%]{background-color:#80bc00;color:#fff}.btn-sm[_ngcontent-%COMP%]{font-size:12px!important}.card-title[_ngcontent-%COMP%]{font-weight:300;color:#4d4d4d;margin:0}.card.shortcut[_ngcontent-%COMP%]{margin-bottom:10px!important}"]});var N=vt(284);class W{}W.\u0275fac=function(K){return new(K||W)},W.\u0275mod=M.oAB({type:W}),W.\u0275inj=M.cJS({providers:[D],imports:[wt.ez]});var Z=vt(1108);const $=[{path:"",component:E}];class nt{}nt.\u0275fac=function(K){return new(K||nt)},nt.\u0275mod=M.oAB({type:nt}),nt.\u0275inj=M.cJS({providers:[q],imports:[wt.ez,N.Bz.forChild($),B.R,I.u5,g,f.A0,W,Z.f,P]})},3470:function(Ot,Lt,vt){var wt,Tt,ct;Tt=typeof window<"u"?window:this,ct=function(Tt){function ct(G,F,M,rt){G.hasOwnProperty(F)||(G[F]=rt.apply(null,M),"function"==typeof CustomEvent&&Tt.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:F,module:G[F]}})))}var U={};return ct(U,"Core/Globals.js",[],function(){var G,F;return(F=G||(G={})).SVG_NS="http://www.w3.org/2000/svg",F.product="Highcharts",F.version="10.3.3",F.win=typeof Tt<"u"?Tt:{},F.doc=F.win.document,F.svg=F.doc&&F.doc.createElementNS&&!!F.doc.createElementNS(F.SVG_NS,"svg").createSVGRect,F.userAgent=F.win.navigator&&F.win.navigator.userAgent||"",F.isChrome=-1!==F.userAgent.indexOf("Chrome"),F.isFirefox=-1!==F.userAgent.indexOf("Firefox"),F.isMS=/(edge|msie|trident)/i.test(F.userAgent)&&!F.win.opera,F.isSafari=!F.isChrome&&-1!==F.userAgent.indexOf("Safari"),F.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(F.userAgent),F.isWebKit=-1!==F.userAgent.indexOf("AppleWebKit"),F.deg2rad=2*Math.PI/360,F.hasBidiBug=F.isFirefox&&4>parseInt(F.userAgent.split("Firefox/")[1],10),F.hasTouch=!!F.win.TouchEvent,F.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],F.noop=function(){},F.supportsPassiveEvents=function(){var M=!1;if(!F.isMS){var rt=Object.defineProperty({},"passive",{get:function(){M=!0}});F.win.addEventListener&&F.win.removeEventListener&&(F.win.addEventListener("testPassive",F.noop,rt),F.win.removeEventListener("testPassive",F.noop,rt))}return M}(),F.charts=[],F.dateFormats={},F.seriesTypes={},F.symbolSizes={},F.chartCount=0,G}),ct(U,"Core/Utilities.js",[U["Core/Globals.js"]],function(G){function F(i,s,d,a){var m=s?"Highcharts error":"Highcharts warning";32===i&&(i=m+": Deprecated member");var L=O(i),Y=L?m+" #"+i+": www.highcharts.com/errors/"+i+"/":i.toString();if(typeof a<"u"){var _="";L&&(Y+="?"),A(a,function(e,l){_+="\n - ".concat(l,": ").concat(e),L&&(Y+=encodeURI(l)+"="+encodeURI(e))}),Y+=_}k(G,"displayError",{chart:d,code:i,message:Y,params:a},function(){if(s)throw Error(Y);o.console&&-1===F.messages.indexOf(Y)&&console.warn(Y)}),F.messages.push(Y)}function rt(i,s){return parseInt(i,s||10)}function it(i){return"string"==typeof i}function ot(i){return"[object Array]"===(i=Object.prototype.toString.call(i))||"[object Array Iterator]"===i}function q(i,s){return!(!i||"object"!=typeof i||s&&ot(i))}function B(i){return q(i)&&"number"==typeof i.nodeType}function I(i){var s=i&&i.constructor;return!(!q(i,!0)||B(i)||!s||!s.name||"Object"===s.name)}function O(i){return"number"==typeof i&&!isNaN(i)&&1/0>i&&-1/0<i}function g(i){return typeof i<"u"&&null!==i}function f(i,s,d){var m,a=it(s)&&!g(d),L=function(Y,_){g(Y)?i.setAttribute(_,Y):a?(m=i.getAttribute(_))||"class"!==_||(m=i.getAttribute(_+"Name")):i.removeAttribute(_)};return it(s)?L(d,s):A(s,L),m}function y(i,s){var d;for(d in i||(i={}),s)i[d]=s[d];return i}function C(){for(var i=arguments,s=i.length,d=0;d<s;d++){var a=i[d];if(typeof a<"u"&&null!==a)return a}}function v(i,s){G.isMS&&!G.svg&&s&&g(s.opacity)&&(s.filter="alpha(opacity=".concat(100*s.opacity,")")),y(i.style,s)}function x(i){return Math.pow(10,Math.floor(Math.log(i)/Math.LN10))}function w(i,s){return 1e14<i?i:parseFloat(i.toPrecision(s||14))}function A(i,s,d){for(var a in i)Object.hasOwnProperty.call(i,a)&&s.call(d||i[a],i[a],a,i)}function j(i,s,d){function a(_,e){var l=i.removeEventListener||G.removeEventListenerPolyfill;l&&l.call(i,_,e,!1)}function m(_){var e;if(i.nodeName){if(s){var l={};l[s]=!0}else l=_;A(l,function(P,D){if(_[D])for(e=_[D].length;e--;)a(D,_[D][e].fn)})}}var L="function"==typeof i&&i.prototype||i;if(Object.hasOwnProperty.call(L,"hcEvents")){var Y=L.hcEvents;s?(L=Y[s]||[],d?(Y[s]=L.filter(function(_){return d!==_.fn}),a(s,d)):(m(Y),Y[s]=[])):(m(Y),delete L.hcEvents)}}function k(i,s,d,a){if(d=d||{},p.createEvent&&(i.dispatchEvent||i.fireEvent&&i!==G)){var m=p.createEvent("Events");m.initEvent(s,!0,!0),d=y(m,d),i.dispatchEvent?i.dispatchEvent(d):i.fireEvent(s,d)}else if(i.hcEvents){d.target||y(d,{preventDefault:function(){d.defaultPrevented=!0},target:i,type:s}),m=[];for(var L=i,Y=!1;L.hcEvents;)Object.hasOwnProperty.call(L,"hcEvents")&&L.hcEvents[s]&&(m.length&&(Y=!0),m.unshift.apply(m,L.hcEvents[s])),L=Object.getPrototypeOf(L);Y&&m.sort(function(_,e){return _.order-e.order}),m.forEach(function(_){!1===_.fn.call(i,d)&&d.preventDefault()})}a&&!d.defaultPrevented&&a.call(i,d)}var r=G.charts,p=G.doc,o=G.win;(F||(F={})).messages=[],Math.easeInOutSine=function(i){return-.5*(Math.cos(Math.PI*i)-1)};var h=Array.prototype.find?function(i,s){return i.find(s)}:function(i,s){var d,a=i.length;for(d=0;d<a;d++)if(s(i[d],d))return i[d]};A({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(i,s){G[s]=function(d){var a;return F(32,!1,void 0,((a={})["Highcharts.".concat(s)]="use Array.".concat(i),a)),Array.prototype[i].apply(d,[].slice.call(arguments,1))}});var t,i,s,c=(i=Math.random().toString(36).substring(2,9)+"-",s=0,function(){return"highcharts-"+(t?"":i)+s++});return o.jQuery&&(o.jQuery.fn.highcharts=function(){var i=[].slice.call(arguments);if(this[0])return i[0]?(new(G[it(i[0])?i.shift():"Chart"])(this[0],i[0],i[1]),this):r[f(this[0],"data-highcharts-chart")]}),h={addEvent:function(i,s,d,a){void 0===a&&(a={});var m="function"==typeof i&&i.prototype||i;Object.hasOwnProperty.call(m,"hcEvents")||(m.hcEvents={}),m=m.hcEvents,G.Point&&i instanceof G.Point&&i.series&&i.series.chart&&(i.series.chart.runTrackerClick=!0);var L=i.addEventListener||G.addEventListenerPolyfill;return L&&L.call(i,s,d,!!G.supportsPassiveEvents&&{passive:void 0===a.passive?-1!==s.indexOf("touch"):a.passive,capture:!1}),m[s]||(m[s]=[]),m[s].push({fn:d,order:"number"==typeof a.order?a.order:1/0}),m[s].sort(function(Y,_){return Y.order-_.order}),function(){j(i,s,d)}},arrayMax:function(i){for(var s=i.length,d=i[0];s--;)i[s]>d&&(d=i[s]);return d},arrayMin:function(i){for(var s=i.length,d=i[0];s--;)i[s]<d&&(d=i[s]);return d},attr:f,clamp:function(i,s,d){return i>s?i<d?i:d:s},cleanRecursively:function M(i,s){var d={};return A(i,function(a,m){q(i[m],!0)&&!i.nodeType&&s[m]?(a=M(i[m],s[m]),Object.keys(a).length&&(d[m]=a)):(q(i[m])||i[m]!==s[m]||m in i&&!(m in s))&&(d[m]=i[m])}),d},clearTimeout:function(i){g(i)&&clearTimeout(i)},correctFloat:w,createElement:function(i,s,d,a,m){return i=p.createElement(i),s&&y(i,s),m&&v(i,{padding:"0",border:"none",margin:"0"}),d&&v(i,d),a&&a.appendChild(i),i},css:v,defined:g,destroyObjectProperties:function(i,s){A(i,function(d,a){d&&d!==s&&d.destroy&&d.destroy(),delete i[a]})},discardElement:function(i){i&&i.parentElement&&i.parentElement.removeChild(i)},erase:function(i,s){for(var d=i.length;d--;)if(i[d]===s){i.splice(d,1);break}},error:F,extend:y,extendClass:function(i,s){var d=function(){};return y(d.prototype=new i,s),d},find:h,fireEvent:k,getMagnitude:x,getNestedProperty:function(i,s){for(i=i.split(".");i.length&&g(s);){var d=i.shift();if(typeof d>"u"||"__proto__"===d||!g(s=s[d])||"function"==typeof s||"number"==typeof s.nodeType||s===o)return}return s},getStyle:function T(i,s,d){var a=G.getStyle||T;if("width"===s)return s=Math.min(i.offsetWidth,i.scrollWidth),(d=i.getBoundingClientRect&&i.getBoundingClientRect().width)<s&&d>=s-1&&(s=Math.floor(d)),Math.max(0,s-(a(i,"padding-left",!0)||0)-(a(i,"padding-right",!0)||0));if("height"===s)return Math.max(0,Math.min(i.offsetHeight,i.scrollHeight)-(a(i,"padding-top",!0)||0)-(a(i,"padding-bottom",!0)||0));if(o.getComputedStyle||F(27,!0),i=o.getComputedStyle(i,void 0)){var m=i.getPropertyValue(s);C(d,"opacity"!==s)&&(m=rt(m))}return m},inArray:function(i,s,d){return F(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"}),s.indexOf(i,d)},isArray:ot,isClass:I,isDOMElement:B,isFunction:function(i){return"function"==typeof i},isNumber:O,isObject:q,isString:it,keys:function(i){return F(32,!1,void 0,{"Highcharts.keys":"use Object.keys"}),Object.keys(i)},merge:function(){var i,s=arguments,d={},a=function(L,Y){return"object"!=typeof L&&(L={}),A(Y,function(_,e){"__proto__"!==e&&"constructor"!==e&&(L[e]=!q(_,!0)||I(_)||B(_)?Y[e]:a(L[e]||{},_))}),L};!0===s[0]&&(d=s[1],s=Array.prototype.slice.call(s,2));var m=s.length;for(i=0;i<m;i++)d=a(d,s[i]);return d},normalizeTickInterval:function(i,s,d,a,m){var L=i,Y=i/(d=C(d,x(i)));for(s||(s=m?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===a&&(1===d?s=s.filter(function(_){return _%1==0}):.1>=d&&(s=[1/d]))),a=0;a<s.length&&(L=s[a],!(m&&L*d>=i||!m&&Y<=(s[a]+(s[a+1]||s[a]))/2));a++);return w(L*d,-Math.round(Math.log(.001)/Math.LN10))},objectEach:A,offset:function(i){var s=p.documentElement;return{top:(i=i.parentElement||i.parentNode?i.getBoundingClientRect():{top:0,left:0,width:0,height:0}).top+(o.pageYOffset||s.scrollTop)-(s.clientTop||0),left:i.left+(o.pageXOffset||s.scrollLeft)-(s.clientLeft||0),width:i.width,height:i.height}},pad:function(i,s,d){return Array((s||2)+1-String(i).replace("-","").length).join(d||"0")+i},pick:C,pInt:rt,relativeLength:function(i,s,d){return/%$/.test(i)?s*parseFloat(i)/100+(d||0):parseFloat(i)},removeEvent:j,splat:function(i){return ot(i)?i:[i]},stableSort:function(i,s){var a,m,d=i.length;for(m=0;m<d;m++)i[m].safeI=m;for(i.sort(function(L,Y){return 0===(a=s(L,Y))?L.safeI-Y.safeI:a}),m=0;m<d;m++)delete i[m].safeI},syncTimeout:function(i,s,d){return 0<s?setTimeout(i,s,d):(i.call(0,d),-1)},timeUnits:{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},uniqueKey:c,useSerialIds:function(i){return t=C(i,t)},wrap:function(i,s,d){var a=i[s];i[s]=function(){var m=arguments,L=this;return d.apply(this,[function(){return a.apply(L,arguments.length?arguments:m)}].concat([].slice.call(arguments)))}}},h}),ct(U,"Core/Chart/ChartDefaults.js",[],function(){return{alignThresholds:!1,panning:{enabled:!1,type:"x"},styledMode:!1,borderRadius:0,colorCount:10,allowMutatingData:!0,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}},zoomBySingleTouch:!1,zooming:{singleTouch:!1,resetButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}}},width:null,height:null,borderColor:"#335cad",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"}}),ct(U,"Core/Color/Color.js",[U["Core/Globals.js"],U["Core/Utilities.js"]],function(G,F){var M=F.isNumber,rt=F.merge,it=F.pInt;return function(){function ot(q){this.rgba=[NaN,NaN,NaN,NaN],this.input=q;var B=G.Color;return B&&B!==ot?new B(q):this instanceof ot?void this.init(q):new ot(q)}return ot.parse=function(q){return q?new ot(q):ot.None},ot.prototype.init=function(q){var B;if("object"==typeof q&&typeof q.stops<"u")this.stops=q.stops.map(function(f){return new ot(f[1])});else if("string"==typeof q){if(this.input=q=ot.names[q.toLowerCase()]||q,"#"===q.charAt(0)){var I=q.length,O=parseInt(q.substr(1),16);7===I?B=[(16711680&O)>>16,(65280&O)>>8,255&O,1]:4===I&&(B=[(3840&O)>>4|(3840&O)>>8,(240&O)>>4|240&O,(15&O)<<4|15&O,1])}if(!B)for(O=ot.parsers.length;O--&&!B;){var g=ot.parsers[O];(I=g.regex.exec(q))&&(B=g.parse(I))}}B&&(this.rgba=B)},ot.prototype.get=function(q){var B=this.input,I=this.rgba;if("object"==typeof B&&typeof this.stops<"u"){var O=rt(B);return O.stops=[].slice.call(O.stops),this.stops.forEach(function(g,f){O.stops[f]=[O.stops[f][0],g.get(q)]}),O}return I&&M(I[0])?"rgb"===q||!q&&1===I[3]?"rgb("+I[0]+","+I[1]+","+I[2]+")":"a"===q?"".concat(I[3]):"rgba("+I.join(",")+")":B},ot.prototype.brighten=function(q){var B=this.rgba;if(this.stops)this.stops.forEach(function(O){O.brighten(q)});else if(M(q)&&0!==q)for(var I=0;3>I;I++)B[I]+=it(255*q),0>B[I]&&(B[I]=0),255<B[I]&&(B[I]=255);return this},ot.prototype.setOpacity=function(q){return this.rgba[3]=q,this},ot.prototype.tweenTo=function(q,B){var I=this.rgba,O=q.rgba;return M(I[0])&&M(O[0])?((q=1!==O[3]||1!==I[3])?"rgba(":"rgb(")+Math.round(O[0]+(I[0]-O[0])*(1-B))+","+Math.round(O[1]+(I[1]-O[1])*(1-B))+","+Math.round(O[2]+(I[2]-O[2])*(1-B))+(q?","+(O[3]+(I[3]-O[3])*(1-B)):"")+")":q.input||"none"},ot.names={white:"#ffffff",black:"#000000"},ot.parsers=[{regex:/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/,parse:function(q){return[it(q[1]),it(q[2]),it(q[3]),parseFloat(q[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(q){return[it(q[1]),it(q[2]),it(q[3]),1]}}],ot.None=new ot(""),ot}()}),ct(U,"Core/Color/Palettes.js",[],function(){return{colors:"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" ")}}),ct(U,"Core/Time.js",[U["Core/Globals.js"],U["Core/Utilities.js"]],function(G,F){var M=G.win,rt=F.defined,it=F.error,ot=F.extend,q=F.isObject,B=F.merge,I=F.objectEach,O=F.pad,g=F.pick,f=F.splat,y=F.timeUnits,C=G.isSafari&&M.Intl&&M.Intl.DateTimeFormat.prototype.formatRange,v=G.isSafari&&M.Intl&&!M.Intl.DateTimeFormat.prototype.formatRange;return F=function(){function x(w){this.options={},this.variableTimezone=this.useUTC=!1,this.Date=M.Date,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.update(w)}return x.prototype.get=function(w,T){if(this.variableTimezone||this.timezoneOffset){var A=T.getTime(),j=A-this.getTimezoneOffset(T);return T.setTime(j),w=T["getUTC"+w](),T.setTime(A),w}return this.useUTC?T["getUTC"+w]():T["get"+w]()},x.prototype.set=function(w,T,A){if(this.variableTimezone||this.timezoneOffset){if("Milliseconds"===w||"Seconds"===w||"Minutes"===w&&this.getTimezoneOffset(T)%36e5==0)return T["setUTC"+w](A);var j=this.getTimezoneOffset(T);return j=T.getTime()-j,T.setTime(j),T["setUTC"+w](A),w=this.getTimezoneOffset(T),j=T.getTime()+w,T.setTime(j)}return this.useUTC||C&&"FullYear"===w?T["setUTC"+w](A):T["set"+w](A)},x.prototype.update=function(w){void 0===w&&(w={});var T=g(w.useUTC,!0);this.options=w=B(!0,this.options,w),this.Date=w.Date||M.Date||Date,this.timezoneOffset=(this.useUTC=T)&&w.timezoneOffset||void 0,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.variableTimezone=T&&!(!w.getTimezoneOffset&&!w.timezone)},x.prototype.makeTime=function(w,T,A,j,k,r){if(this.useUTC){var p=this.Date.UTC.apply(0,arguments),o=this.getTimezoneOffset(p),h=this.getTimezoneOffset(p+=o);o!==h?p+=h-o:o-36e5!==this.getTimezoneOffset(p-36e5)||v||(p-=36e5)}else p=new this.Date(w,T,g(A,1),g(j,0),g(k,0),g(r,0)).getTime();return p},x.prototype.timezoneOffsetFunction=function(){var w=this,T=this.options,A=T.getTimezoneOffset,j=T.moment||M.moment;if(!this.useUTC)return function(k){return 6e4*new Date(k.toString()).getTimezoneOffset()};if(T.timezone){if(j)return function(k){return 6e4*-j.tz(k,T.timezone).utcOffset()};it(25)}return this.useUTC&&A?function(k){return 6e4*A(k.valueOf())}:function(){return 6e4*(w.timezoneOffset||0)}},x.prototype.dateFormat=function(w,T,A){if(!rt(T)||isNaN(T))return G.defaultOptions.lang&&G.defaultOptions.lang.invalidDate||"";w=g(w,"%Y-%m-%d %H:%M:%S");var j=this,k=new this.Date(T),r=this.get("Hours",k),p=this.get("Day",k),o=this.get("Date",k),h=this.get("Month",k),t=this.get("FullYear",k),c=G.defaultOptions.lang,i=c&&c.weekdays,s=c&&c.shortWeekdays;return k=ot({a:s?s[p]:i[p].substr(0,3),A:i[p],d:O(o),e:O(o,2," "),w:p,b:c.shortMonths[h],B:c.months[h],m:O(h+1),o:h+1,y:t.toString().substr(2,2),Y:t,H:O(r),k:r,I:O(r%12||12),l:r%12||12,M:O(this.get("Minutes",k)),p:12>r?"AM":"PM",P:12>r?"am":"pm",S:O(k.getSeconds()),L:O(Math.floor(T%1e3),3)},G.dateFormats),I(k,function(d,a){for(;-1!==w.indexOf("%"+a);)w=w.replace("%"+a,"function"==typeof d?d.call(j,T):d)}),A?w.substr(0,1).toUpperCase()+w.substr(1):w},x.prototype.resolveDTLFormat=function(w){return q(w,!0)?w:{main:(w=f(w))[0],from:w[1],to:w[2]}},x.prototype.getTimeTicks=function(w,T,A,j){var c,k=this,r=[],p={},o=new k.Date(T),h=w.unitRange,t=w.count||1;if(j=g(j,1),rt(T)){if(k.set("Milliseconds",o,h>=y.second?0:t*Math.floor(k.get("Milliseconds",o)/t)),h>=y.second&&k.set("Seconds",o,h>=y.minute?0:t*Math.floor(k.get("Seconds",o)/t)),h>=y.minute&&k.set("Minutes",o,h>=y.hour?0:t*Math.floor(k.get("Minutes",o)/t)),h>=y.hour&&k.set("Hours",o,h>=y.day?0:t*Math.floor(k.get("Hours",o)/t)),h>=y.day&&k.set("Date",o,h>=y.month?1:Math.max(1,t*Math.floor(k.get("Date",o)/t))),h>=y.month){k.set("Month",o,h>=y.year?0:t*Math.floor(k.get("Month",o)/t));var i=k.get("FullYear",o)}h>=y.year&&k.set("FullYear",o,i-i%t),h===y.week&&(i=k.get("Day",o),k.set("Date",o,k.get("Date",o)-i+j+(i<j?-7:0))),i=k.get("FullYear",o),j=k.get("Month",o);var s=k.get("Date",o),d=k.get("Hours",o);for(T=o.getTime(),!k.variableTimezone&&k.useUTC||!rt(A)||(c=A-T>4*y.month||k.getTimezoneOffset(T)!==k.getTimezoneOffset(A)),T=o.getTime(),o=1;T<A;)r.push(T),T=h===y.year?k.makeTime(i+o*t,0):h===y.month?k.makeTime(i,j+o*t):!c||h!==y.day&&h!==y.week?c&&h===y.hour&&1<t?k.makeTime(i,j,s,d+o*t):T+h*t:k.makeTime(i,j,s+o*t*(h===y.day?1:7)),o++;r.push(T),h<=y.hour&&1e4>r.length&&r.forEach(function(a){a%18e5==0&&"000000000"===k.dateFormat("%H%M%S%L",a)&&(p[a]="day")})}return r.info=ot(w,{higherRanks:p,totalRange:h*t}),r},x.prototype.getDateFormat=function(w,T,A,j){var k=this.dateFormat("%m-%d %H:%M:%S.%L",T),r={millisecond:15,second:12,minute:9,hour:6,day:3},p="millisecond";for(o in y){if(w===y.week&&+this.dateFormat("%w",T)===A&&"00:00:00.000"===k.substr(6)){var o="week";break}if(y[o]>w){o=p;break}if(r[o]&&k.substr(r[o])!=="01-01 00:00:00.000".substr(r[o]))break;"week"!==o&&(p=o)}return this.resolveDTLFormat(j[o]).main},x}(),F}),ct(U,"Core/Defaults.js",[U["Core/Chart/ChartDefaults.js"],U["Core/Color/Color.js"],U["Core/Globals.js"],U["Core/Color/Palettes.js"],U["Core/Time.js"],U["Core/Utilities.js"]],function(G,F,M,rt,it,ot){F=F.parse;var q=ot.merge,B={colors:rt.colors,symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:"January February March April May June July August September October November December".split(" "),shortMonths:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),weekdays:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),decimalPoint:".",numericSymbols:"kMGTPE".split(""),resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{},time:{Date:void 0,getTimezoneOffset:void 0,timezone:void 0,timezoneOffset:0,useUTC:!0},chart:G,title:{text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{text:"",align:"center",widthAdjust:-44},caption:{margin:15,text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},labels:{style:{position:"absolute",color:"#333333"}},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",layout:"horizontal",labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{activeColor:"#003399",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#cccccc"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:M.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %b %e, %H:%M:%S.%L",second:"%A, %b %e, %H:%M:%S",minute:"%A, %b %e, %H:%M",hour:"%A, %b %e, %H:%M",day:"%A, %b %e, %Y",week:"Week from %A, %b %e, %Y",month:"%B %Y",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,padding:8,shape:"callout",shared:!1,snap:M.isTouchDevice?25:10,headerFormat:'<span style="font-size: 10px">{point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">\u25cf</span> {series.name}: <b>{point.y}</b><br/>',backgroundColor:F("#f7f7f7").setOpacity(.85).get(),borderWidth:1,shadow:!0,stickOnContact:!1,style:{color:"#333333",cursor:"default",fontSize:"12px",whiteSpace:"nowrap"},useHTML:!1},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"9px"},text:"Highcharts.com"}};B.chart.styledMode=!1;var I=new it(q(B.global,B.time));return{defaultOptions:B,defaultTime:I,getOptions:function(){return B},setOptions:function(O){return q(!0,B,O),(O.time||O.global)&&(M.time?M.time.update(q(B.global,B.time,O.global,O.time)):M.time=I),B}}}),ct(U,"Core/Animation/Fx.js",[U["Core/Color/Color.js"],U["Core/Globals.js"],U["Core/Utilities.js"]],function(G,F,M){var rt=G.parse,it=F.win,ot=M.isNumber,q=M.objectEach;return function(){function B(I,O,g){this.pos=NaN,this.options=O,this.elem=I,this.prop=g}return B.prototype.dSetter=function(){var I=this.paths,O=I&&I[0];I=I&&I[1];var g=this.now||0,f=[];if(1!==g&&O&&I)if(O.length===I.length&&1>g)for(var y=0;y<I.length;y++){for(var C=O[y],v=I[y],x=[],w=0;w<v.length;w++){var T=C[w],A=v[w];x[w]=ot(T)&&ot(A)&&("A"!==v[0]||4!==w&&5!==w)?T+g*(A-T):A}f.push(x)}else f=I;else f=this.toD||[];this.elem.attr("d",f,void 0,!0)},B.prototype.update=function(){var I=this.elem,O=this.prop,g=this.now,f=this.options.step;this[O+"Setter"]?this[O+"Setter"]():I.attr?I.element&&I.attr(O,g,null,!0):I.style[O]=g+this.unit,f&&f.call(I,g,this)},B.prototype.run=function(I,O,g){var f=this,y=f.options,C=function(w){return!C.stopped&&f.step(w)},v=it.requestAnimationFrame||function(w){setTimeout(w,13)},x=function(){for(var w=0;w<B.timers.length;w++)B.timers[w]()||B.timers.splice(w--,1);B.timers.length&&v(x)};I!==O||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=I,this.end=O,this.unit=g,this.now=this.start,this.pos=0,C.elem=this.elem,C.prop=this.prop,C()&&1===B.timers.push(C)&&v(x)):(delete y.curAnim[this.prop],y.complete&&0===Object.keys(y.curAnim).length&&y.complete.call(this.elem))},B.prototype.step=function(I){var O=+new Date,g=this.options,f=this.elem,y=g.complete,C=g.duration,v=g.curAnim;if(f.attr&&!f.element)I=!1;else if(I||O>=C+this.startTime){this.now=this.end,this.pos=1,this.update();var x=v[this.prop]=!0;q(v,function(w){!0!==w&&(x=!1)}),x&&y&&y.call(f),I=!1}else this.pos=g.easing((O-this.startTime)/C),this.now=this.start+(this.end-this.start)*this.pos,this.update(),I=!0;return I},B.prototype.initPath=function(I,O,g){function f(k,r){for(;k.length<j;){var p=k[0],o=r[j-k.length];o&&"M"===p[0]&&(k[0]="C"===o[0]?["C",p[1],p[2],p[1],p[2],p[1],p[2]]:["L",p[1],p[2]]),k.unshift(p),x&&(p=k.pop(),k.push(k[k.length-1],p))}}function y(k,r){for(;k.length<j;)if("C"===(r=k[Math.floor(k.length/w)-1].slice())[0]&&(r[1]=r[5],r[2]=r[6]),x){var p=k[Math.floor(k.length/w)].slice();k.splice(k.length/2,0,r,p)}else k.push(r)}var C=I.startX,v=I.endX;g=g.slice();var x=I.isArea,w=x?2:1;if(!(O=O&&O.slice()))return[g,g];if(C&&v&&v.length){for(I=0;I<C.length;I++){if(C[I]===v[0]){var T=I;break}if(C[0]===v[v.length-C.length+I]){T=I;var A=!0;break}if(C[C.length-1]===v[v.length-C.length+I]){T=C.length-I;break}}typeof T>"u"&&(O=[])}if(O.length&&ot(T)){var j=g.length+T*w;A?(f(O,g),y(g,O)):(f(g,O),y(O,g))}return[O,g]},B.prototype.fillSetter=function(){B.prototype.strokeSetter.apply(this,arguments)},B.prototype.strokeSetter=function(){this.elem.attr(this.prop,rt(this.start).tweenTo(rt(this.end),this.pos),void 0,!0)},B.timers=[],B}()}),ct(U,"Core/Animation/AnimationUtilities.js",[U["Core/Animation/Fx.js"],U["Core/Utilities.js"]],function(G,F){function M(y){return I(y)?O({duration:500,defer:0},y):{duration:y?500:0,defer:0}}function rt(y,C){for(var v=G.timers.length;v--;)G.timers[v].elem!==y||C&&C!==G.timers[v].prop||(G.timers[v].stopped=!0)}var it=F.defined,ot=F.getStyle,q=F.isArray,B=F.isNumber,I=F.isObject,O=F.merge,g=F.objectEach,f=F.pick;return{animate:function(y,C,v){var x,T,A,w="";if(!I(v)){var j=arguments;v={duration:j[2],easing:j[3],complete:j[4]}}B(v.duration)||(v.duration=400),v.easing="function"==typeof v.easing?v.easing:Math[v.easing]||Math.easeInOutSine,v.curAnim=O(C),g(C,function(k,r){rt(y,r),A=new G(y,v,r),T=void 0,"d"===r&&q(C.d)?(A.paths=A.initPath(y,y.pathArray,C.d),A.toD=C.d,x=0,T=1):y.attr?x=y.attr(r):(x=parseFloat(ot(y,r))||0,"opacity"!==r&&(w="px")),T||(T=k),"string"==typeof T&&T.match("px")&&(T=T.replace(/px/g,"")),A.run(x,T,w)})},animObject:M,getDeferredAnimation:function(y,C,v){var x=M(C),w=0,T=0;return(v?[v]:y.series).forEach(function(A){A=M(A.options.animation),w=C&&it(C.defer)?x.defer:Math.max(w,A.duration+A.defer),T=Math.min(x.duration,A.duration)}),y.renderer.forExport&&(w=0),{defer:Math.max(0,w-T),duration:Math.min(w,T)}},setAnimation:function(y,C){C.renderer.globalAnimation=f(y,C.options.chart.animation,!0)},stop:rt}}),ct(U,"Core/Renderer/HTML/AST.js",[U["Core/Globals.js"],U["Core/Utilities.js"]],function(G,F){var M=G.SVG_NS,rt=F.attr,it=F.createElement,ot=F.css,q=F.error,B=F.isFunction,I=F.isString,O=F.objectEach,g=F.splat,f=(F=G.win.trustedTypes)&&B(F.createPolicy)&&F.createPolicy("highcharts",{createHTML:function(v){return v}}),y=f?f.createHTML(""):"";try{var C=!!(new DOMParser).parseFromString(y,"text/html")}catch{C=!1}return function(){function v(x){this.nodes="string"==typeof x?this.parseMarkup(x):x}return v.filterUserAttributes=function(x){return O(x,function(w,T){var A=!0;-1===v.allowedAttributes.indexOf(T)&&(A=!1),-1!==["background","dynsrc","href","lowsrc","src"].indexOf(T)&&(A=I(w)&&v.allowedReferences.some(function(j){return 0===w.indexOf(j)})),A||(q(33,!1,void 0,{"Invalid attribute in config":"".concat(T)}),delete x[T]),I(w)&&x[T]&&(x[T]=w.replace(/</g,"&lt;"))}),x},v.parseStyle=function(x){return x.split(";").reduce(function(w,T){var A=(T=T.split(":").map(function(j){return j.trim()})).shift();return A&&T.length&&(w[A.replace(/-([a-z])/g,function(j){return j[1].toUpperCase()})]=T.join(":")),w},{})},v.setElementHTML=function(x,w){x.innerHTML=v.emptyHTML,w&&new v(w).addToDOM(x)},v.prototype.addToDOM=function(x){return function w(T,A){var j;return g(T).forEach(function(k){var r=k.tagName,p=k.textContent?G.doc.createTextNode(k.textContent):void 0,o=v.bypassHTMLFiltering;if(r)if("#text"===r)var h=p;else if(-1!==v.allowedTags.indexOf(r)||o){r=G.doc.createElementNS("svg"===r?M:A.namespaceURI||M,r);var t=k.attributes||{};O(k,function(c,i){"tagName"!==i&&"attributes"!==i&&"children"!==i&&"style"!==i&&"textContent"!==i&&(t[i]=c)}),rt(r,o?t:v.filterUserAttributes(t)),k.style&&ot(r,k.style),p&&r.appendChild(p),w(k.children||[],r),h=r}else q(33,!1,void 0,{"Invalid tagName in config":r});h&&A.appendChild(h),j=h}),j}(this.nodes,x)},v.prototype.parseMarkup=function(x){var w=[];if(x=x.trim().replace(/ style=(["'])/g," data-style=$1"),C)x=(new DOMParser).parseFromString(f?f.createHTML(x):x,"text/html");else{var T=it("div");T.innerHTML=x,x={body:T}}var A=function(j,k){var r=j.nodeName.toLowerCase(),p={tagName:r};if("#text"===r&&(p.textContent=j.textContent||""),r=j.attributes){var o={};[].forEach.call(r,function(t){"data-style"===t.name?p.style=v.parseStyle(t.value):o[t.name]=t.value}),p.attributes=o}if(j.childNodes.length){var h=[];[].forEach.call(j.childNodes,function(t){A(t,h)}),h.length&&(p.children=h)}k.push(p)};return[].forEach.call(x.body.childNodes,function(j){return A(j,w)}),w},v.allowedAttributes="aria-controls aria-describedby aria-expanded aria-haspopup aria-hidden aria-label aria-labelledby aria-live aria-pressed aria-readonly aria-roledescription aria-selected class clip-path color colspan cx cy d dx dy disabled fill height href id in markerHeight markerWidth offset opacity orient padding paddingLeft paddingRight patternUnits r refX refY role scope slope src startOffset stdDeviation stroke stroke-linecap stroke-width style tableValues result rowspan summary target tabindex text-align text-anchor textAnchor textLength title type valign width x x1 x2 xlink:href y y1 y2 zIndex".split(" "),v.allowedReferences="https:// http:// mailto: / ../ ./ #".split(" "),v.allowedTags="a abbr b br button caption circle clipPath code dd defs div dl dt em feComponentTransfer feFuncA feFuncB feFuncG feFuncR feGaussianBlur feOffset feMerge feMergeNode filter h1 h2 h3 h4 h5 h6 hr i img li linearGradient marker ol p path pattern pre rect small span stop strong style sub sup svg table text textPath thead title tbody tspan td th tr u ul #text".split(" "),v.emptyHTML=y,v.bypassHTMLFiltering=!1,v}()}),ct(U,"Core/FormatUtilities.js",[U["Core/Defaults.js"],U["Core/Utilities.js"]],function(G,F){function M(O,g,f,y){g=+g;var C=rt.lang,v=((O=+O||0).toString().split(".")[1]||"").split("e")[0].length,x=O.toString().split("e"),w=g;if(-1===g)g=Math.min(v,20);else if(q(g)){if(g&&x[1]&&0>x[1]){var T=g+ +x[1];0<=T?(x[0]=(+x[0]).toExponential(T).split("e")[0],g=T):(x[0]=x[0].split(".")[0]||0,O=20>g?(x[0]*Math.pow(10,x[1])).toFixed(g):0,x[1]=0)}}else g=2;T=(Math.abs(x[1]?x[0]:O)+Math.pow(10,-Math.max(g,v)-1)).toFixed(g);var A=3<(v=String(I(T))).length?v.length%3:0;return f=B(f,C.decimalPoint),y=B(y,C.thousandsSep),O=(0>O?"-":"")+(A?v.substr(0,A)+y:""),O=0>+x[1]&&!w?"0":O+v.substr(A).replace(/(\d{3})(?=\d)/g,"$1"+y),g&&(O+=f+T.slice(-g)),x[1]&&0!=+O&&(O+="e"+x[1]),O}var rt=G.defaultOptions,it=G.defaultTime,ot=F.getNestedProperty,q=F.isNumber,B=F.pick,I=F.pInt;return{dateFormat:function(O,g,f){return it.dateFormat(O,g,f)},format:function(O,g,f){var y="{",C=!1,v=/f$/,x=/\.([0-9])/,w=rt.lang,T=f&&f.time||it;f=f&&f.numberFormatter||M;for(var A=[];O;){var j=O.indexOf(y);if(-1===j)break;var k=O.slice(0,j);if(C){if(k=k.split(":"),y=ot(k.shift()||"",g),k.length&&"number"==typeof y)if(k=k.join(":"),v.test(k)){var r=parseInt((k.match(x)||["","-1"])[1],10);null!==y&&(y=f(y,r,w.decimalPoint,-1<k.indexOf(",")?w.thousandsSep:""))}else y=T.dateFormat(k,y);A.push(y)}else A.push(k);O=O.slice(j+1),y=(C=!C)?"}":"{"}return A.push(O),A.join("")},numberFormat:M}}),ct(U,"Core/Renderer/RendererUtilities.js",[U["Core/Utilities.js"]],function(G){var it,F=G.clamp,M=G.pick,rt=G.stableSort;return(it||(it={})).distribute=function q(B,I,O){var v,g=B,f=g.reducedLen||I,y=function(A,j){return(j.rank||0)-(A.rank||0)},C=function(A,j){return A.target-j.target},x=!0,w=[],T=0;for(v=B.length;v--;)T+=B[v].size;if(T>f){for(rt(B,y),T=v=0;T<=f;)T+=B[v].size,v++;w=B.splice(v-1,B.length)}for(rt(B,C),B=B.map(function(A){return{size:A.size,targets:[A.target],align:M(A.align,.5)}});x;){for(v=B.length;v--;)f=B[v],y=(Math.min.apply(0,f.targets)+Math.max.apply(0,f.targets))/2,f.pos=F(y-f.size*f.align,0,I-f.size);for(v=B.length,x=!1;v--;)0<v&&B[v-1].pos+B[v-1].size>B[v].pos&&(B[v-1].size+=B[v].size,B[v-1].targets=B[v-1].targets.concat(B[v].targets),B[v-1].align=.5,B[v-1].pos+B[v-1].size>I&&(B[v-1].pos=I-B[v-1].size),B.splice(v,1),x=!0)}return g.push.apply(g,w),v=0,B.some(function(A){var j=0;return(A.targets||[]).some(function(){return g[v].pos=A.pos+j,typeof O<"u"&&Math.abs(g[v].pos-g[v].target)>O?(g.slice(0,v+1).forEach(function(k){return delete k.pos}),g.reducedLen=(g.reducedLen||I)-.1*I,g.reducedLen>.1*I&&q(g,I,O),!0):(j+=g[v].size,v++,!1)})}),rt(g,C),g},it}),ct(U,"Core/Renderer/SVG/SVGElement.js",[U["Core/Animation/AnimationUtilities.js"],U["Core/Color/Color.js"],U["Core/Globals.js"],U["Core/Utilities.js"]],function(G,F,M,rt){var it=G.animate,ot=G.animObject,q=G.stop,B=M.deg2rad,I=M.doc,O=M.svg,g=M.SVG_NS,f=M.win,y=rt.addEvent,C=rt.attr,v=rt.createElement,x=rt.css,w=rt.defined,T=rt.erase,A=rt.extend,j=rt.fireEvent,k=rt.isArray,r=rt.isFunction,p=rt.isString,o=rt.merge,h=rt.objectEach,t=rt.pick,c=rt.pInt,i=rt.syncTimeout,s=rt.uniqueKey;return G=function(){function d(){this.element=void 0,this.onEvents={},this.opacity=1,this.renderer=void 0,this.SVG_NS=g,this.symbolCustomAttribs="x y width height r start end innerR anchorX anchorY rounded".split(" ")}return d.prototype._defaultGetter=function(a){return a=t(this[a+"Value"],this[a],this.element?this.element.getAttribute(a):null,0),/^[\-0-9\.]+$/.test(a)&&(a=parseFloat(a)),a},d.prototype._defaultSetter=function(a,m,L){L.setAttribute(m,a)},d.prototype.add=function(a){var m=this.renderer,L=this.element;if(a&&(this.parentGroup=a),typeof this.textStr<"u"&&"text"===this.element.nodeName&&m.buildText(this),this.added=!0,!a||a.handleZ||this.zIndex)var Y=this.zIndexSetter();return Y||(a?a.element:m.box).appendChild(L),this.onAdd&&this.onAdd(),this},d.prototype.addClass=function(a,m){var L=m?"":this.attr("class")||"";return(a=(a||"").split(/ /g).reduce(function(Y,_){return-1===L.indexOf(_)&&Y.push(_),Y},L?[L]:[]).join(" "))!==L&&this.attr("class",a),this},d.prototype.afterSetters=function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)},d.prototype.align=function(a,m,L){var l,P,D,Y={},_=this.renderer,e=_.alignedObjects;a?(this.alignOptions=a,this.alignByTranslate=m,(!L||p(L))&&(this.alignTo=l=L||"renderer",T(e,this),e.push(this),L=void 0)):(a=this.alignOptions,m=this.alignByTranslate,l=this.alignTo),L=t(L,_[l],"scrollablePlotBox"===l?_.plotBox:void 0,_);var b=a.verticalAlign;return _=(L.x||0)+(a.x||0),e=(L.y||0)+(a.y||0),"right"===(l=a.align)?P=1:"center"===l&&(P=2),P&&(_+=(L.width-(a.width||0))/P),Y[m?"translateX":"x"]=Math.round(_),"bottom"===b?D=1:"middle"===b&&(D=2),D&&(e+=(L.height-(a.height||0))/D),Y[m?"translateY":"y"]=Math.round(e),this[this.placed?"animate":"attr"](Y),this.placed=!0,this.alignAttr=Y,this},d.prototype.alignSetter=function(a){var m={left:"start",center:"middle",right:"end"};m[a]&&(this.alignValue=a,this.element.setAttribute("text-anchor",m[a]))},d.prototype.animate=function(a,m,L){var Y=this,_=ot(t(m,this.renderer.globalAnimation,!0));return m=_.defer,t(I.hidden,I.msHidden,I.webkitHidden,!1)&&(_.duration=0),0!==_.duration?(L&&(_.complete=L),i(function(){Y.element&&it(Y,a,_)},m)):(this.attr(a,void 0,L||_.complete),h(a,function(e,l){_.step&&_.step.call(this,e,{prop:l,pos:1,elem:this})},this)),this},d.prototype.applyTextOutline=function(a){var m=this.element;-1!==a.indexOf("contrast")&&(a=a.replace(/contrast/g,this.renderer.getContrast(m.style.fill)));var L=a.split(" ");if(a=L[L.length-1],(L=L[0])&&"none"!==L&&M.svg){this.fakeTS=!0,L=L.replace(/(^[\d\.]+)(.*?)$/g,function(e,l,P){return 2*Number(l)+P}),this.removeTextOutline();var Y=I.createElementNS(g,"tspan");C(Y,{class:"highcharts-text-outline",fill:a,stroke:a,"stroke-width":L,"stroke-linejoin":"round"}),a=m.querySelector("textPath")||m,[].forEach.call(a.childNodes,function(e){var l=e.cloneNode(!0);l.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(function(P){return l.removeAttribute(P)}),Y.appendChild(l)});var _=0;[].forEach.call(a.querySelectorAll("text tspan"),function(e){_+=Number(e.getAttribute("dy"))}),(L=I.createElementNS(g,"tspan")).textContent="\u200b",C(L,{x:Number(m.getAttribute("x")),dy:-_}),Y.appendChild(L),a.insertBefore(Y,a.firstChild)}},d.prototype.attr=function(a,m,L,Y){var l,D,b,_=this.element,e=this.symbolCustomAttribs,P=this;if("string"==typeof a&&typeof m<"u"){var n=a;(a={})[n]=m}return"string"==typeof a?P=(this[a+"Getter"]||this._defaultGetter).call(this,a,_):(h(a,function(S,u){D=!1,Y||q(this,u),this.symbolName&&-1!==e.indexOf(u)&&(l||(this.symbolAttr(a),l=!0),D=!0),!this.rotation||"x"!==u&&"y"!==u||(this.doTransform=!0),D||((b=this[u+"Setter"]||this._defaultSetter).call(this,S,u,_),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(u)&&this.updateShadows(u,S,b))},this),this.afterSetters()),L&&L.call(this),P},d.prototype.clip=function(a){return this.attr("clip-path",a?"url("+this.renderer.url+"#"+a.id+")":"none")},d.prototype.crisp=function(a,m){m=m||a.strokeWidth||0;var L=Math.round(m)%2/2;return a.x=Math.floor(a.x||this.x||0)+L,a.y=Math.floor(a.y||this.y||0)+L,a.width=Math.floor((a.width||this.width||0)-2*L),a.height=Math.floor((a.height||this.height||0)-2*L),w(a.strokeWidth)&&(a.strokeWidth=m),a},d.prototype.complexColor=function(a,m,L){var _,e,l,P,D,b,n,S,u,z,N,Y=this.renderer,E=[];j(this.renderer,"complexColor",{args:arguments},function(){if(a.radialGradient?e="radialGradient":a.linearGradient&&(e="linearGradient"),e){if(D=Y.gradients,b=a.stops,u=L.radialReference,k(l=a[e])&&(a[e]=l={x1:l[0],y1:l[1],x2:l[2],y2:l[3],gradientUnits:"userSpaceOnUse"}),"radialGradient"===e&&u&&!w(l.gradientUnits)&&(l=o(l,Y.getRadialAttr(u,P=l),{gradientUnits:"userSpaceOnUse"})),h(l,function(Z,$){"id"!==$&&E.push($,Z)}),h(b,function(Z){E.push(Z)}),E=E.join(","),D[E])z=D[E].attr("id");else{l.id=z=s();var W=D[E]=Y.createElement(e).attr(l).add(Y.defs);W.radAttr=P,W.stops=[],b.forEach(function(Z){0===Z[1].indexOf("rgba")?(_=F.parse(Z[1]),n=_.get("rgb"),S=_.get("a")):(n=Z[1],S=1),Z=Y.createElement("stop").attr({offset:Z[0],"stop-color":n,"stop-opacity":S}).add(W),W.stops.push(Z)})}L.setAttribute(m,N="url("+Y.url+"#"+z+")"),L.gradient=E,a.toString=function(){return N}}})},d.prototype.css=function(a){var m=this.styles,L={},Y=this.element,_=!m;if(a.color&&(a.fill=a.color),m&&h(a,function(P,D){m&&m[D]!==P&&(L[D]=P,_=!0)}),_){if(m&&(a=A(m,L)),null===a.width||"auto"===a.width)delete this.textWidth;else if("text"===Y.nodeName.toLowerCase()&&a.width)var e=this.textWidth=c(a.width);this.styles=a,e&&!O&&this.renderer.forExport&&delete a.width;var l=o(a);Y.namespaceURI===this.SVG_NS&&["textOutline","textOverflow","width"].forEach(function(P){return l&&delete l[P]}),x(Y,l),this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),a.textOutline&&this.applyTextOutline(a.textOutline))}return this},d.prototype.dashstyleSetter=function(a){var m=this["stroke-width"];if("inherit"===m&&(m=1),a=a&&a.toLowerCase()){var L=a.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");for(a=L.length;a--;)L[a]=""+c(L[a])*t(m,NaN);a=L.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",a)}},d.prototype.destroy=function(){var a=this,m=a.element||{},L=a.renderer,Y=m.ownerSVGElement,_=L.isSVG&&"SPAN"===m.nodeName&&a.parentGroup||void 0;if(m.onclick=m.onmouseout=m.onmouseover=m.onmousemove=m.point=null,q(a),a.clipPath&&Y){var e=a.clipPath;[].forEach.call(Y.querySelectorAll("[clip-path],[CLIP-PATH]"),function(l){-1<l.getAttribute("clip-path").indexOf(e.element.id)&&l.removeAttribute("clip-path")}),a.clipPath=e.destroy()}if(a.stops){for(Y=0;Y<a.stops.length;Y++)a.stops[Y].destroy();a.stops.length=0,a.stops=void 0}for(a.safeRemoveChild(m),L.styledMode||a.destroyShadows();_&&_.div&&0===_.div.childNodes.length;)m=_.parentGroup,a.safeRemoveChild(_.div),delete _.div,_=m;a.alignTo&&T(L.alignedObjects,a),h(a,function(l,P){a[P]&&a[P].parentGroup===a&&a[P].destroy&&a[P].destroy(),delete a[P]})},d.prototype.destroyShadows=function(){(this.shadows||[]).forEach(function(a){this.safeRemoveChild(a)},this),this.shadows=void 0},d.prototype.dSetter=function(a,m,L){k(a)&&("string"==typeof a[0]&&(a=this.renderer.pathToSegments(a)),this.pathArray=a,a=a.reduce(function(Y,_,e){return _&&_.join?(e?Y+" ":"")+_.join(" "):(_||"").toString()},"")),/(NaN| {2}|^$)/.test(a)&&(a="M 0 0"),this[m]!==a&&(L.setAttribute(m,a),this[m]=a)},d.prototype.fadeOut=function(a){var m=this;m.animate({opacity:0},{duration:t(a,150),complete:function(){m.hide()}})},d.prototype.fillSetter=function(a,m,L){"string"==typeof a?L.setAttribute(m,a):a&&this.complexColor(a,m,L)},d.prototype.getBBox=function(a,m){var L=this.alignValue,Y=this.element,_=this.renderer,e=this.styles,l=this.textStr,P=_.cache,D=_.cacheKeys,b=Y.namespaceURI===this.SVG_NS;m=t(m,this.rotation,0);var S,n=_.styledMode?Y&&d.prototype.getStyle.call(Y,"font-size"):e&&e.fontSize;if(w(l)){var u=l.toString();-1===u.indexOf("<")&&(u=u.replace(/[0-9]/g,"0")),u+=["",m,n,this.textWidth,L,e&&e.textOverflow,e&&e.fontWeight].join()}if(u&&!a&&(S=P[u]),!S){if(b||_.forExport){try{var z=this.fakeTS&&function(N){var W=Y.querySelector(".highcharts-text-outline");W&&x(W,{display:N})};r(z)&&z("none"),S=Y.getBBox?A({},Y.getBBox()):{width:Y.offsetWidth,height:Y.offsetHeight,x:0,y:0},r(z)&&z("")}catch{}(!S||0>S.width)&&(S={x:0,y:0,width:0,height:0})}else S=this.htmlGetBBox();if(_.isSVG&&(_=S.width,a=S.height,b&&(S.height=a={"11px,17":14,"13px,20":16}[""+(n||"")+",".concat(Math.round(a))]||a),m)){b=Number(Y.getAttribute("y")||0)-S.y,L={right:1,center:.5}[L||0]||0,e=m*B,n=(m-90)*B;var E=_*Math.cos(e);m=_*Math.sin(e),z=Math.cos(n),e=Math.sin(n),E=(z=(n=(_=S.x+L*(_-E)+b*z)+E)-a*z)-E,m=(a=(L=(b=S.y+b-L*m+b*e)+m)-a*e)-m,S.x=Math.min(_,n,z,E),S.y=Math.min(b,L,a,m),S.width=Math.max(_,n,z,E)-S.x,S.height=Math.max(b,L,a,m)-S.y}if(u&&(""===l||0<S.height)){for(;250<D.length;)delete P[D.shift()];P[u]||D.push(u),P[u]=S}}return S},d.prototype.getStyle=function(a){return f.getComputedStyle(this.element||this,"").getPropertyValue(a)},d.prototype.hasClass=function(a){return-1!==(""+this.attr("class")).split(" ").indexOf(a)},d.prototype.hide=function(){return this.attr({visibility:"hidden"})},d.prototype.htmlGetBBox=function(){return{height:0,width:0,x:0,y:0}},d.prototype.init=function(a,m){this.element="span"===m?v(m):I.createElementNS(this.SVG_NS,m),this.renderer=a,j(this,"afterInit")},d.prototype.on=function(a,m){var L=this.onEvents;return L[a]&&L[a](),L[a]=y(this.element,a,m),this},d.prototype.opacitySetter=function(a,m,L){this.opacity=a=Number(Number(a).toFixed(3)),L.setAttribute(m,a)},d.prototype.removeClass=function(a){return this.attr("class",(""+this.attr("class")).replace(p(a)?new RegExp("(^| )".concat(a,"( |$)")):a," ").replace(/ +/g," ").trim())},d.prototype.removeTextOutline=function(){var a=this.element.querySelector("tspan.highcharts-text-outline");a&&this.safeRemoveChild(a)},d.prototype.safeRemoveChild=function(a){var m=a.parentNode;m&&m.removeChild(a)},d.prototype.setRadialReference=function(a){var m=this.element.gradient&&this.renderer.gradients[this.element.gradient];return this.element.radialReference=a,m&&m.radAttr&&m.animate(this.renderer.getRadialAttr(a,m.radAttr)),this},d.prototype.setTextPath=function(a,m){var L=this;m=o(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},m);var Y=this.renderer.url,_=this.text||this,e=_.textPath,l=m.attributes,P=m.enabled;return a=a||e&&e.path,e&&e.undo(),a&&P?(m=y(_,"afterModifyTree",function(D){if(a&&P){var b=a.attr("id");b||a.attr("id",b=s());var n={x:0,y:0};w(l.dx)&&(n.dx=l.dx,delete l.dx),w(l.dy)&&(n.dy=l.dy,delete l.dy),_.attr(n),L.attr({transform:""}),L.box&&(L.box=L.box.destroy()),n=D.nodes.slice(0),D.nodes.length=0,D.nodes[0]={tagName:"textPath",attributes:A(l,{"text-anchor":l.textAnchor,href:""+Y+"#".concat(b)}),children:n}}}),_.textPath={path:a,undo:m}):(_.attr({dx:0,dy:0}),delete _.textPath),this.added&&(_.textCache="",this.renderer.buildText(_)),this},d.prototype.shadow=function(a,m,L){var Y=[],_=this.element,e=this.oldShadowOptions,l=this.parentGroup,P=l&&90===l.rotation;l={color:"#000000",offsetX:P?-1:1,offsetY:P?-1:1,opacity:.15,width:3};var b,D=!1;if(!0===a?b=l:"object"==typeof a&&(b=A(l,a)),b&&(b&&e&&h(b,function(z,E){z!==e[E]&&(D=!0)}),D&&this.destroyShadows(),this.oldShadowOptions=b),b){if(!this.shadows){l=b.opacity/b.width;var n=P?"translate(".concat(b.offsetY,", ").concat(b.offsetX,")"):"translate(".concat(b.offsetX,", ").concat(b.offsetY,")");for(P=1;P<=b.width;P++){var S=_.cloneNode(!1),u=2*b.width+1-2*P;C(S,{stroke:a.color||"#000000","stroke-opacity":l*P,"stroke-width":u,transform:n,fill:"none"}),S.setAttribute("class",(S.getAttribute("class")||"")+" highcharts-shadow"),L&&(C(S,"height",Math.max(C(S,"height")-u,0)),S.cutHeight=u),m?m.element.appendChild(S):_.parentNode&&_.parentNode.insertBefore(S,_),Y.push(S)}this.shadows=Y}}else this.destroyShadows();return this},d.prototype.show=function(a){return void 0===a&&(a=!0),this.attr({visibility:a?"inherit":"visible"})},d.prototype["stroke-widthSetter"]=function(a,m,L){this[m]=a,L.setAttribute(m,a)},d.prototype.strokeWidth=function(){if(!this.renderer.styledMode)return this["stroke-width"]||0;var a=this.getStyle("stroke-width"),m=0;if(a.indexOf("px")===a.length-2)m=c(a);else if(""!==a){var L=I.createElementNS(g,"rect");C(L,{width:a,"stroke-width":0}),this.element.parentNode.appendChild(L),m=L.getBBox().width,L.parentNode.removeChild(L)}return m},d.prototype.symbolAttr=function(a){var m=this;"x y r start end width height innerR anchorX anchorY clockwise".split(" ").forEach(function(L){m[L]=t(a[L],m[L])}),m.attr({d:m.renderer.symbols[m.symbolName](m.x,m.y,m.width,m.height,m)})},d.prototype.textSetter=function(a){a!==this.textStr&&(delete this.textPxLength,this.textStr=a,this.added&&this.renderer.buildText(this))},d.prototype.titleSetter=function(a){var m=this.element,L=m.getElementsByTagName("title")[0]||I.createElementNS(this.SVG_NS,"title");m.insertBefore?m.insertBefore(L,m.firstChild):m.appendChild(L),L.textContent=String(t(a,"")).replace(/<[^>]*>/g,"").replace(/&lt;/g,"<").replace(/&gt;/g,">")},d.prototype.toFront=function(){var a=this.element;return a.parentNode.appendChild(a),this},d.prototype.translate=function(a,m){return this.attr({translateX:a,translateY:m})},d.prototype.updateShadows=function(a,m,L){var Y=this.shadows;if(Y)for(var _=Y.length;_--;)L.call(Y[_],"height"===a?Math.max(m-(Y[_].cutHeight||0),0):"d"===a?this.d:m,a,Y[_])},d.prototype.updateTransform=function(){var a=this.element,m=this.matrix,L=this.rotation;L=void 0===L?0:L;var Y=this.scaleX,_=this.scaleY,e=this.translateX,l=this.translateY;e=["translate("+(void 0===e?0:e)+","+(void 0===l?0:l)+")"],w(m)&&e.push("matrix("+m.join(",")+")"),L&&e.push("rotate("+L+" "+t(this.rotationOriginX,a.getAttribute("x"),0)+" "+t(this.rotationOriginY,a.getAttribute("y")||0)+")"),(w(Y)||w(_))&&e.push("scale("+t(Y,1)+" "+t(_,1)+")"),e.length&&!(this.text||this).textPath&&a.setAttribute("transform",e.join(" "))},d.prototype.visibilitySetter=function(a,m,L){"inherit"===a?L.removeAttribute(m):this[m]!==a&&L.setAttribute(m,a),this[m]=a},d.prototype.xGetter=function(a){return"circle"===this.element.nodeName&&("x"===a?a="cx":"y"===a&&(a="cy")),this._defaultGetter(a)},d.prototype.zIndexSetter=function(a,m){var L=this.renderer,Y=this.parentGroup,_=(Y||L).element||L.box,e=this.element;L=_===L.box;var D,l=!1,P=this.added;if(w(a)?(e.setAttribute("data-z-index",a),this[m]===(a=+a)&&(P=!1)):w(this[m])&&e.removeAttribute("data-z-index"),this[m]=a,P){for((a=this.zIndex)&&Y&&(Y.handleZ=!0),D=(m=_.childNodes).length-1;0<=D&&!l;D--){P=(Y=m[D]).getAttribute("data-z-index");var b=!w(P);Y!==e&&(0>a&&b&&!L&&!D?(_.insertBefore(e,m[D]),l=!0):(c(P)<=a||b&&(!w(a)||0<=a))&&(_.insertBefore(e,m[D+1]||null),l=!0))}l||(_.insertBefore(e,m[L?3:0]||null),l=!0)}return l},d}(),G.prototype.strokeSetter=G.prototype.fillSetter,G.prototype.yGetter=G.prototype.xGetter,G.prototype.matrixSetter=G.prototype.rotationOriginXSetter=G.prototype.rotationOriginYSetter=G.prototype.rotationSetter=G.prototype.scaleXSetter=G.prototype.scaleYSetter=G.prototype.translateXSetter=G.prototype.translateYSetter=G.prototype.verticalAlignSetter=function(d,a){this[a]=d,this.doTransform=!0},G}),ct(U,"Core/Renderer/RendererRegistry.js",[U["Core/Globals.js"]],function(G){var F,M,rt;return(M=F||(F={})).rendererTypes={},M.getRendererType=function(it){return void 0===it&&(it=rt),M.rendererTypes[it]||M.rendererTypes[rt]},M.registerRendererType=function(it,ot,q){M.rendererTypes[it]=ot,(!rt||q)&&(rt=it,G.Renderer=ot)},F}),ct(U,"Core/Renderer/SVG/SVGLabel.js",[U["Core/Renderer/SVG/SVGElement.js"],U["Core/Utilities.js"]],function(G,F){var O,M=this&&this.__extends||(O=function(g,f){return(O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,C){y.__proto__=C}||function(y,C){for(var v in C)C.hasOwnProperty(v)&&(y[v]=C[v])})(g,f)},function(g,f){function y(){this.constructor=g}O(g,f),g.prototype=null===f?Object.create(f):(y.prototype=f.prototype,new y)}),rt=F.defined,it=F.extend,ot=F.isNumber,q=F.merge,B=F.pick,I=F.removeEvent;return function(O){function g(f,y,C,v,x,w,T,A,j,k){var p,r=O.call(this)||this;return r.paddingLeftSetter=r.paddingSetter,r.paddingRightSetter=r.paddingSetter,r.init(f,"g"),r.textStr=y,r.x=C,r.y=v,r.anchorX=w,r.anchorY=T,r.baseline=j,r.className=k,r.addClass("button"===k?"highcharts-no-tooltip":"highcharts-label"),k&&r.addClass("highcharts-"+k),r.text=f.text(void 0,0,0,A).attr({zIndex:1}),"string"==typeof x&&((p=/^url\((.*?)\)$/.test(x))||r.renderer.symbols[x])&&(r.symbolKey=x),r.bBox=g.emptyBBox,r.padding=3,r.baselineOffset=0,r.needsBox=f.styledMode||p,r.deferredAttr={},r.alignFactor=0,r}return M(g,O),g.prototype.alignSetter=function(f){(f={left:0,center:.5,right:1}[f])!==this.alignFactor&&(this.alignFactor=f,this.bBox&&ot(this.xSetting)&&this.attr({x:this.xSetting}))},g.prototype.anchorXSetter=function(f,y){this.anchorX=f,this.boxAttr(y,Math.round(f)-this.getCrispAdjust()-this.xSetting)},g.prototype.anchorYSetter=function(f,y){this.anchorY=f,this.boxAttr(y,f-this.ySetting)},g.prototype.boxAttr=function(f,y){this.box?this.box.attr(f,y):this.deferredAttr[f]=y},g.prototype.css=function(f){if(f){var y={};f=q(f),g.textProps.forEach(function(C){typeof f[C]<"u"&&(y[C]=f[C],delete f[C])}),this.text.css(y),"fontSize"in y||"fontWeight"in y?this.updateTextPadding():("width"in y||"textOverflow"in y)&&this.updateBoxSize()}return G.prototype.css.call(this,f)},g.prototype.destroy=function(){I(this.element,"mouseenter"),I(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),G.prototype.destroy.call(this)},g.prototype.fillSetter=function(f,y){f&&(this.needsBox=!0),this.fill=f,this.boxAttr(y,f)},g.prototype.getBBox=function(){this.textStr&&0===this.bBox.width&&0===this.bBox.height&&this.updateBoxSize();var f=this.padding,y=B(this.paddingLeft,f);return{width:this.width,height:this.height,x:this.bBox.x-y,y:this.bBox.y-f}},g.prototype.getCrispAdjust=function(){return this.renderer.styledMode&&this.box?this.box.strokeWidth()%2/2:(this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2},g.prototype.heightSetter=function(f){this.heightSetting=f},g.prototype.onAdd=function(){this.text.add(this),this.attr({text:B(this.textStr,""),x:this.x||0,y:this.y||0}),this.box&&rt(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})},g.prototype.paddingSetter=function(f,y){ot(f)?f!==this[y]&&(this[y]=f,this.updateTextPadding()):this[y]=void 0},g.prototype.rSetter=function(f,y){this.boxAttr(y,f)},g.prototype.shadow=function(f){return f&&!this.renderer.styledMode&&(this.updateBoxSize(),this.box&&this.box.shadow(f)),this},g.prototype.strokeSetter=function(f,y){this.stroke=f,this.boxAttr(y,f)},g.prototype["stroke-widthSetter"]=function(f,y){f&&(this.needsBox=!0),this["stroke-width"]=f,this.boxAttr(y,f)},g.prototype["text-alignSetter"]=function(f){this.textAlign=f},g.prototype.textSetter=function(f){typeof f<"u"&&this.text.attr({text:f}),this.updateTextPadding()},g.prototype.updateBoxSize=function(){var f=this.text,y=f.element.style,C={},v=this.padding,x=this.bBox=ot(this.widthSetting)&&ot(this.heightSetting)&&!this.textAlign||!rt(f.textStr)?g.emptyBBox:f.getBBox();this.width=this.getPaddedWidth(),this.height=(this.heightSetting||x.height||0)+2*v,y=this.renderer.fontMetrics(y&&y.fontSize,f),this.baselineOffset=v+Math.min((this.text.firstLineMetrics||y).b,x.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-y.h)/2),this.needsBox&&!f.textPath&&(this.box||((f=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect()).addClass(("button"===this.className?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),f.add(this)),f=this.getCrispAdjust(),C.x=f,C.y=(this.baseline?-this.baselineOffset:0)+f,C.width=Math.round(this.width),C.height=Math.round(this.height),this.box.attr(it(C,this.deferredAttr)),this.deferredAttr={})},g.prototype.updateTextPadding=function(){var f=this.text;if(!f.textPath){this.updateBoxSize();var y=this.baseline?0:this.baselineOffset,C=B(this.paddingLeft,this.padding);rt(this.widthSetting)&&this.bBox&&("center"===this.textAlign||"right"===this.textAlign)&&(C+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width)),(C!==f.x||y!==f.y)&&(f.attr("x",C),f.hasBoxWidthChanged&&(this.bBox=f.getBBox(!0)),typeof y<"u"&&f.attr("y",y)),f.x=C,f.y=y}},g.prototype.widthSetter=function(f){this.widthSetting=ot(f)?f:void 0},g.prototype.getPaddedWidth=function(){var f=this.padding,y=B(this.paddingLeft,f);return f=B(this.paddingRight,f),(this.widthSetting||this.bBox.width||0)+y+f},g.prototype.xSetter=function(f){this.x=f,this.alignFactor&&(f-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0),this.xSetting=Math.round(f),this.attr("translateX",this.xSetting)},g.prototype.ySetter=function(f){this.ySetting=this.y=Math.round(f),this.attr("translateY",this.ySetting)},g.emptyBBox={width:0,height:0,x:0,y:0},g.textProps="color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow width".split(" "),g}(G)}),ct(U,"Core/Renderer/SVG/Symbols.js",[U["Core/Utilities.js"]],function(G){function F(B,I,O,g,f){var y=[];if(f){var C=f.start||0,v=q(f.r,O);O=q(f.r,g||O);var x=(f.end||0)-.001;g=f.innerR;var w=q(f.open,.001>Math.abs((f.end||0)-C-2*Math.PI)),T=Math.cos(C),A=Math.sin(C),j=Math.cos(x),k=Math.sin(x);C=q(f.longArc,.001>x-C-Math.PI?0:1),y.push(["M",B+v*T,I+O*A],["A",v,O,0,C,q(f.clockwise,1),B+v*j,I+O*k]),it(g)&&y.push(w?["M",B+g*j,I+g*k]:["L",B+g*j,I+g*k],["A",g,g,0,C,it(f.clockwise)?1-f.clockwise:0,B+g*T,I+g*A]),w||y.push(["Z"])}return y}function M(B,I,O,g,f){return f&&f.r?rt(B,I,O,g,f):[["M",B,I],["L",B+O,I],["L",B+O,I+g],["L",B,I+g],["Z"]]}function rt(B,I,O,g,f){return[["M",B+(f=f&&f.r||0),I],["L",B+O-f,I],["C",B+O,I,B+O,I,B+O,I+f],["L",B+O,I+g-f],["C",B+O,I+g,B+O,I+g,B+O-f,I+g],["L",B+f,I+g],["C",B,I+g,B,I+g,B,I+g-f],["L",B,I+f],["C",B,I,B,I,B+f,I]]}var it=G.defined,ot=G.isNumber,q=G.pick;return{arc:F,callout:function(B,I,O,g,f){var y=Math.min(f&&f.r||0,O,g),C=y+6,v=f&&f.anchorX;f=f&&f.anchorY||0;var x=rt(B,I,O,g,{r:y});return ot(v)&&(B+v>=O?f>I+C&&f<I+g-C?x.splice(3,1,["L",B+O,f-6],["L",B+O+6,f],["L",B+O,f+6],["L",B+O,I+g-y]):x.splice(3,1,["L",B+O,g/2],["L",v,f],["L",B+O,g/2],["L",B+O,I+g-y]):0>=B+v?f>I+C&&f<I+g-C?x.splice(7,1,["L",B,f+6],["L",B-6,f],["L",B,f-6],["L",B,I+y]):x.splice(7,1,["L",B,g/2],["L",v,f],["L",B,g/2],["L",B,I+y]):f&&f>g&&v>B+C&&v<B+O-C?x.splice(5,1,["L",v+6,I+g],["L",v,I+g+6],["L",v-6,I+g],["L",B+y,I+g]):f&&0>f&&v>B+C&&v<B+O-C&&x.splice(1,1,["L",v-6,I],["L",v,I-6],["L",v+6,I],["L",O-y,I])),x},circle:function(B,I,O,g){return F(B+O/2,I+g/2,O/2,g/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(B,I,O,g){return[["M",B+O/2,I],["L",B+O,I+g/2],["L",B+O/2,I+g],["L",B,I+g/2],["Z"]]},rect:M,roundedRect:rt,square:M,triangle:function(B,I,O,g){return[["M",B+O/2,I],["L",B+O,I+g],["L",B,I+g],["Z"]]},"triangle-down":function(B,I,O,g){return[["M",B,I],["L",B+O,I],["L",B+O/2,I+g],["Z"]]}}}),ct(U,"Core/Renderer/SVG/TextBuilder.js",[U["Core/Renderer/HTML/AST.js"],U["Core/Globals.js"],U["Core/Utilities.js"]],function(G,F,M){var rt=F.doc,it=F.SVG_NS,ot=F.win,q=M.attr,B=M.extend,I=M.fireEvent,O=M.isString,g=M.objectEach,f=M.pick;return function(){function y(C){var v=C.styles;this.renderer=C.renderer,this.svgElement=C,this.width=C.textWidth,this.textLineHeight=v&&v.lineHeight,this.textOutline=v&&v.textOutline,this.ellipsis=!(!v||"ellipsis"!==v.textOverflow),this.noWrap=!(!v||"nowrap"!==v.whiteSpace),this.fontSize=v&&v.fontSize}return y.prototype.buildSVG=function(){var C=this.svgElement,v=C.element,x=C.renderer,w=f(C.textStr,"").toString(),T=-1!==w.indexOf("<"),A=v.childNodes;x=this.width&&!C.added&&x.box;var k=[w,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,this.fontSize,this.width].join();if(k!==C.textCache){for(C.textCache=k,delete C.actualWidth,k=A.length;k--;)v.removeChild(A[k]);T||this.ellipsis||this.width||C.textPath||-1!==w.indexOf(" ")&&(!this.noWrap||/<br.*?>/g.test(w))?""!==w&&(x&&x.appendChild(v),w=new G(w),this.modifyTree(w.nodes),w.addToDOM(v),this.modifyDOM(),this.ellipsis&&-1!==(v.textContent||"").indexOf("\u2026")&&C.attr("title",this.unescapeEntities(C.textStr||"",["&lt;","&gt;"])),x&&x.removeChild(v)):v.appendChild(rt.createTextNode(this.unescapeEntities(w))),O(this.textOutline)&&C.applyTextOutline&&C.applyTextOutline(this.textOutline)}},y.prototype.modifyDOM=function(){var w,C=this,v=this.svgElement,x=q(v.element,"x");for(v.firstLineMetrics=void 0;(w=v.element.firstChild)&&/^[\s\u200B]*$/.test(w.textContent||" ");)v.element.removeChild(w);[].forEach.call(v.element.querySelectorAll("tspan.highcharts-br"),function(k,r){k.nextSibling&&k.previousSibling&&(0===r&&1===k.previousSibling.nodeType&&(v.firstLineMetrics=v.renderer.fontMetrics(void 0,k.previousSibling)),q(k,{dy:C.getLineHeight(k.nextSibling),x}))});var T=this.width||0;if(T){var j=function(k){[].slice.call(k.childNodes).forEach(function(r){r.nodeType===ot.Node.TEXT_NODE?function(k,r){var p=k.textContent||"",o=p.replace(/([^\^])-/g,"$1- ").split(" "),h=!C.noWrap&&(1<o.length||1<v.element.childNodes.length),t=C.getLineHeight(r),c=0,i=v.actualWidth;if(C.ellipsis)p&&C.truncate(k,p,void 0,0,Math.max(0,T-parseInt(C.fontSize||12,10)),function(s,d){return s.substring(0,d)+"\u2026"});else if(h){for(p=[],h=[];r.firstChild&&r.firstChild!==k;)h.push(r.firstChild),r.removeChild(r.firstChild);for(;o.length;)o.length&&!C.noWrap&&0<c&&(p.push(k.textContent||""),k.textContent=o.join(" ").replace(/- /g,"-")),C.truncate(k,void 0,o,0===c&&i||0,T,function(s,d){return o.slice(0,d).join(" ").replace(/- /g,"-")}),i=v.actualWidth,c++;h.forEach(function(s){r.insertBefore(s,k)}),p.forEach(function(s){r.insertBefore(rt.createTextNode(s),k),(s=rt.createElementNS(it,"tspan")).textContent="\u200b",q(s,{dy:t,x}),r.insertBefore(s,k)})}}(r,k):(-1!==r.className.baseVal.indexOf("highcharts-br")&&(v.actualWidth=0),j(r))})};j(v.element)}},y.prototype.getLineHeight=function(C){var v;return C=C.nodeType===ot.Node.TEXT_NODE?C.parentElement:C,this.renderer.styledMode||(v=C&&/(px|em)$/.test(C.style.fontSize)?C.style.fontSize:this.fontSize||this.renderer.style.fontSize||12),this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(v,C||this.svgElement.element).h},y.prototype.modifyTree=function(C){var v=this,x=function(w,T){var A=w.attributes;A=void 0===A?{}:A;var j=w.children,k=w.style;k=void 0===k?{}:k;var r=w.tagName,p=v.renderer.styledMode;"b"===r||"strong"===r?p?A.class="highcharts-strong":k.fontWeight="bold":("i"===r||"em"===r)&&(p?A.class="highcharts-emphasized":k.fontStyle="italic"),k&&k.color&&(k.fill=k.color),"br"===r?(A.class="highcharts-br",w.textContent="\u200b",(T=C[T+1])&&T.textContent&&(T.textContent=T.textContent.replace(/^ +/gm,""))):"a"===r&&j&&j.some(function(o){return"#text"===o.tagName})&&(w.children=[{children:j,tagName:"tspan"}]),"#text"!==r&&"a"!==r&&(w.tagName="tspan"),B(w,{attributes:A,style:k}),j&&j.filter(function(o){return"#text"!==o.tagName}).forEach(x)};C.forEach(x),I(this.svgElement,"afterModifyTree",{nodes:C})},y.prototype.truncate=function(C,v,x,w,T,A){var c,j=this.svgElement,k=j.renderer,r=j.rotation,p=[],o=x?1:0,h=(v||x||"").length,t=h,i=function(d,a){a=a||d;var m=C.parentNode;if(m&&typeof p[a]>"u")if(m.getSubStringLength)try{p[a]=w+m.getSubStringLength(0,x?a+1:a)}catch{}else k.getSpanWidth&&(C.textContent=A(v||x,d),p[a]=w+k.getSpanWidth(j,C));return p[a]};j.rotation=0;var s=i(C.textContent.length);if(w+s>T){for(;o<=h;)t=Math.ceil((o+h)/2),x&&(c=A(x,t)),s=i(t,c&&c.length-1),o===h?o=h+1:s>T?h=t-1:o=t;0===h?C.textContent="":v&&h===v.length-1||(C.textContent=c||A(v||x,t))}x&&x.splice(0,t),j.actualWidth=s,j.rotation=r},y.prototype.unescapeEntities=function(C,v){return g(this.renderer.escapes,function(x,w){v&&-1!==v.indexOf(x)||(C=C.toString().replace(new RegExp(x,"g"),w))}),C},y}()}),ct(U,"Core/Renderer/SVG/SVGRenderer.js",[U["Core/Renderer/HTML/AST.js"],U["Core/Color/Color.js"],U["Core/Globals.js"],U["Core/Renderer/RendererRegistry.js"],U["Core/Renderer/SVG/SVGElement.js"],U["Core/Renderer/SVG/SVGLabel.js"],U["Core/Renderer/SVG/Symbols.js"],U["Core/Renderer/SVG/TextBuilder.js"],U["Core/Utilities.js"]],function(G,F,M,rt,it,ot,q,B,I){var _,O=M.charts,g=M.deg2rad,f=M.doc,y=M.isFirefox,C=M.isMS,v=M.isWebKit,x=M.noop,w=M.SVG_NS,T=M.symbolSizes,A=M.win,j=I.addEvent,k=I.attr,r=I.createElement,p=I.css,o=I.defined,h=I.destroyObjectProperties,t=I.extend,c=I.isArray,i=I.isNumber,s=I.isObject,d=I.isString,a=I.merge,m=I.pick,L=I.pInt,Y=I.uniqueKey;return M=function(){function e(l,P,D,b,n,S,u){this.width=this.url=this.style=this.isSVG=this.imgCount=this.height=this.gradients=this.globalAnimation=this.defs=this.chartIndex=this.cacheKeys=this.cache=this.boxWrapper=this.box=this.alignedObjects=void 0,this.init(l,P,D,b,n,S,u)}return e.prototype.init=function(l,P,D,b,n,S,u){var N,z=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),E=z.element;u||z.css(this.getStyle(b)),l.appendChild(E),k(l,"dir","ltr"),-1===l.innerHTML.indexOf("xmlns")&&k(E,"xmlns",this.SVG_NS),this.isSVG=!0,this.box=E,this.boxWrapper=z,this.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(f.createTextNode("Created with Highcharts 10.3.3")),this.defs=this.createElement("defs").add(),this.allowHTML=S,this.forExport=n,this.styledMode=u,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.setSize(P,D,!1),y&&l.getBoundingClientRect&&((P=function(){p(l,{left:0,top:0}),N=l.getBoundingClientRect(),p(l,{left:Math.ceil(N.left)-N.left+"px",top:Math.ceil(N.top)-N.top+"px"})})(),this.unSubPixelFix=j(A,"resize",P))},e.prototype.definition=function(l){return new G([l]).addToDOM(this.defs.element)},e.prototype.getReferenceURL=function(){if((y||v)&&f.getElementsByTagName("base").length){if(!o(_)){var l=Y();l=new G([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:l},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":"url(#".concat(l,")"),fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(f.body),p(l,{position:"fixed",top:0,left:0,zIndex:9e5});var P=f.elementFromPoint(6,6);_="hitme"===(P&&P.id),f.body.removeChild(l)}if(_)return A.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20")}return""},e.prototype.getStyle=function(l){return this.style=t({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},l)},e.prototype.setStyle=function(l){this.boxWrapper.css(this.getStyle(l))},e.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width},e.prototype.destroy=function(){var l=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),h(this.gradients||{}),this.gradients=null,l&&(this.defs=l.destroy()),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null},e.prototype.createElement=function(l){var P=new this.Element;return P.init(this,l),P},e.prototype.getRadialAttr=function(l,P){return{cx:l[0]-l[2]/2+(P.cx||0)*l[2],cy:l[1]-l[2]/2+(P.cy||0)*l[2],r:(P.r||0)*l[2]}},e.prototype.buildText=function(l){new B(l).buildSVG()},e.prototype.getContrast=function(l){return 1.05/(.05+(l=.2126*(l=F.parse(l).rgba.map(function(P){return.03928>=(P/=255)?P/12.92:Math.pow((P+.055)/1.055,2.4)}))[0]+.7152*l[1]+.0722*l[2]))>(l+.05)/.05?"#FFFFFF":"#000000"},e.prototype.button=function(l,P,D,b,n,S,u,z,E,N){void 0===n&&(n={});var W=this.label(l,P,D,E,void 0,void 0,N,void 0,"button"),Z=this.styledMode;l=n.states||{};var $=0;delete(n=a(n)).states;var nt=a({color:"#333333",cursor:"pointer",fontWeight:"normal"},n.style);delete n.style;var J=G.filterUserAttributes(n);if(W.attr(a({padding:8,r:2},J)),!Z){J=a({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1},J);var K=(S=a(J,{fill:"#e6e6e6"},G.filterUserAttributes(S||l.hover||{}))).style;delete S.style;var X=(u=a(J,{fill:"#e6ebf5",style:{color:"#000000",fontWeight:"bold"}},G.filterUserAttributes(u||l.select||{}))).style;delete u.style;var et=(z=a(J,{style:{color:"#cccccc"}},G.filterUserAttributes(z||l.disabled||{}))).style;delete z.style}return j(W.element,C?"mouseover":"mouseenter",function(){3!==$&&W.setState(1)}),j(W.element,C?"mouseout":"mouseleave",function(){3!==$&&W.setState($)}),W.setState=function(V){1!==V&&(W.state=$=V),W.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][V||0]),Z||(W.attr([J,S,u,z][V||0]),s(V=[nt,K,X,et][V||0])&&W.css(V))},Z||(W.attr(J).css(t({cursor:"default"},nt)),N&&W.text.css({pointerEvents:"none"})),W.on("touchstart",function(V){return V.stopPropagation()}).on("click",function(V){3!==$&&b.call(W,V)})},e.prototype.crispLine=function(l,P,D){void 0===D&&(D="round");var b=l[0],n=l[1];return o(b[1])&&b[1]===n[1]&&(b[1]=n[1]=Math[D](b[1])-P%2/2),o(b[2])&&b[2]===n[2]&&(b[2]=n[2]=Math[D](b[2])+P%2/2),l},e.prototype.path=function(l){var P=this.styledMode?{}:{fill:"none"};return c(l)?P.d=l:s(l)&&t(P,l),this.createElement("path").attr(P)},e.prototype.circle=function(l,P,D){return l=s(l)?l:typeof l>"u"?{}:{x:l,y:P,r:D},(P=this.createElement("circle")).xSetter=P.ySetter=function(b,n,S){S.setAttribute("c"+n,b)},P.attr(l)},e.prototype.arc=function(l,P,D,b,n,S){return s(l)?(P=(b=l).y,D=b.r,l=b.x):b={innerR:b,start:n,end:S},(l=this.symbol("arc",l,P,D,D,b)).r=D,l},e.prototype.rect=function(l,P,D,b,n,S){n=s(l)?l.r:n;var u=this.createElement("rect");return l=s(l)?l:typeof l>"u"?{}:{x:l,y:P,width:Math.max(D,0),height:Math.max(b,0)},this.styledMode||(typeof S<"u"&&(l["stroke-width"]=S,l=u.crisp(l)),l.fill="none"),n&&(l.r=n),u.rSetter=function(z,E,N){u.r=z,k(N,{rx:z,ry:z})},u.rGetter=function(){return u.r||0},u.attr(l)},e.prototype.setSize=function(l,P,D){this.width=l,this.height=P,this.boxWrapper.animate({width:l,height:P},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:m(D,!0)?void 0:0}),this.alignElements()},e.prototype.g=function(l){var P=this.createElement("g");return l?P.attr({class:"highcharts-"+l}):P},e.prototype.image=function(l,P,D,b,n,S){var u={preserveAspectRatio:"none"},z=function(N,W){N.setAttributeNS?N.setAttributeNS("http://www.w3.org/1999/xlink","href",W):N.setAttribute("hc-svg-href",W)};i(P)&&(u.x=P),i(D)&&(u.y=D),i(b)&&(u.width=b),i(n)&&(u.height=n);var E=this.createElement("image").attr(u);return P=function(N){z(E.element,l),S.call(E,N)},S?(z(E.element,"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),D=new A.Image,j(D,"load",P),D.src=l,D.complete&&P({})):z(E.element,l),E},e.prototype.symbol=function(l,P,D,b,n,S){var Z,u=this,z=/^url\((.*?)\)$/,E=z.test(l),N=!E&&(this.symbols[l]?l:"circle"),W=N&&this.symbols[N];if(W){"number"==typeof P&&(Z=W.call(this.symbols,Math.round(P||0),Math.round(D||0),b||0,n||0,S));var $=this.path(Z);u.styledMode||$.attr("fill","none"),t($,{symbolName:N||void 0,x:P,y:D,width:b,height:n}),S&&t($,S)}else if(E){var nt=l.match(z)[1],J=$=this.image(nt);J.imgwidth=m(T[nt]&&T[nt].width,S&&S.width),J.imgheight=m(T[nt]&&T[nt].height,S&&S.height);var K=function(X){return X.attr({width:X.width,height:X.height})};["width","height"].forEach(function(X){J[X+"Setter"]=function(et,V){this[V]=et,et=this.alignByTranslate;var R=this.element,H=this.width,Q=this.height,tt=this.imgwidth,st=this.imgheight,at=this["img"+V];if(o(at)){var ht=1;S&&"within"===S.backgroundSize&&H&&Q?(ht=Math.min(H/tt,Q/st),at=Math.round(at*ht),k(R,{width:Math.round(tt*ht),height:Math.round(st*ht)})):R&&R.setAttribute(V,at),et||this.translate(((H||0)-at*ht)/2,((Q||0)-at*ht)/2)}}}),o(P)&&J.attr({x:P,y:D}),J.isImg=!0,o(J.imgwidth)&&o(J.imgheight)?K(J):(J.attr({width:0,height:0}),r("img",{onload:function(){var X=O[u.chartIndex];0===this.width&&(p(this,{position:"absolute",top:"-999em"}),f.body.appendChild(this)),T[nt]={width:this.width,height:this.height},J.imgwidth=this.width,J.imgheight=this.height,J.element&&K(J),this.parentNode&&this.parentNode.removeChild(this),u.imgCount--,!u.imgCount&&X&&!X.hasLoaded&&X.onload()},src:nt}),this.imgCount++)}return $},e.prototype.clipRect=function(l,P,D,b){var n=Y()+"-",S=this.createElement("clipPath").attr({id:n}).add(this.defs);return(l=this.rect(l,P,D,b,0).add(S)).id=n,l.clipPath=S,l.count=0,l},e.prototype.text=function(l,P,D,b){var n={};return!b||!this.allowHTML&&this.forExport?(n.x=Math.round(P||0),D&&(n.y=Math.round(D)),o(l)&&(n.text=l),l=this.createElement("text").attr(n),(!b||this.forExport&&!this.allowHTML)&&(l.xSetter=function(S,u,z){for(var Z,E=z.getElementsByTagName("tspan"),N=z.getAttribute(u),W=0;W<E.length;W++)(Z=E[W]).getAttribute(u)===N&&Z.setAttribute(u,S);z.setAttribute(u,S)}),l):this.html(l,P,D)},e.prototype.fontMetrics=function(l,P){return l=!this.styledMode&&/px/.test(l)||!A.getComputedStyle?l||P&&P.style&&P.style.fontSize||this.style&&this.style.fontSize:P&&it.prototype.getStyle.call(P,"font-size"),{h:P=24>(l=/px/.test(l)?L(l):12)?l+3:Math.round(1.2*l),b:Math.round(.8*P),f:l}},e.prototype.rotCorr=function(l,P,D){var b=l;return P&&D&&(b=Math.max(b*Math.cos(P*g),4)),{x:-l/3*Math.sin(P*g),y:b}},e.prototype.pathToSegments=function(l){for(var P=[],D=[],b={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},n=0;n<l.length;n++)d(D[0])&&i(l[n])&&D.length===b[D[0].toUpperCase()]&&l.splice(n,0,D[0].replace("M","L").replace("m","l")),"string"==typeof l[n]&&(D.length&&P.push(D.slice(0)),D.length=0),D.push(l[n]);return P.push(D.slice(0)),P},e.prototype.label=function(l,P,D,b,n,S,u,z,E){return new ot(this,l,P,D,b,n,S,u,z,E)},e.prototype.alignElements=function(){this.alignedObjects.forEach(function(l){return l.align()})},e}(),t(M.prototype,{Element:it,SVG_NS:w,escapes:{"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"},symbols:q,draw:x}),rt.registerRendererType("svg",M,!0),M}),ct(U,"Core/Renderer/HTML/HTMLElement.js",[U["Core/Globals.js"],U["Core/Renderer/SVG/SVGElement.js"],U["Core/Utilities.js"]],function(G,F,M){var C,rt=this&&this.__extends||(C=function(v,x){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,T){w.__proto__=T}||function(w,T){for(var A in T)T.hasOwnProperty(A)&&(w[A]=T[A])})(v,x)},function(v,x){function w(){this.constructor=v}C(v,x),v.prototype=null===x?Object.create(x):(w.prototype=x.prototype,new w)}),it=G.isFirefox,ot=G.isMS,q=G.isWebKit,B=G.win,I=M.css,O=M.defined,g=M.extend,f=M.pick,y=M.pInt;return function(C){function v(){return null!==C&&C.apply(this,arguments)||this}return rt(v,C),v.compose=function(x){if(-1===v.composedClasses.indexOf(x)){v.composedClasses.push(x);var w=v.prototype,T=x.prototype;T.getSpanCorrection=w.getSpanCorrection,T.htmlCss=w.htmlCss,T.htmlGetBBox=w.htmlGetBBox,T.htmlUpdateTransform=w.htmlUpdateTransform,T.setSpanRotation=w.setSpanRotation}return x},v.prototype.getSpanCorrection=function(x,w,T){this.xCorr=-x*T,this.yCorr=-w},v.prototype.htmlCss=function(x){var w="SPAN"===this.element.tagName&&x&&"width"in x,T=f(w&&x.width,void 0);if(w){delete x.width,this.textWidth=T;var A=!0}return x&&"ellipsis"===x.textOverflow&&(x.whiteSpace="nowrap",x.overflow="hidden"),this.styles=g(this.styles,x),I(this.element,x),A&&this.htmlUpdateTransform(),this},v.prototype.htmlGetBBox=function(){var x=this.element;return{x:x.offsetLeft,y:x.offsetTop,width:x.offsetWidth,height:x.offsetHeight}},v.prototype.htmlUpdateTransform=function(){if(this.added){var x=this.renderer,w=this.element,T=this.translateX||0,A=this.translateY||0,j=this.x||0,k=this.y||0,r=this.textAlign||"left",p={left:0,center:.5,right:1}[r],o=this.styles;if(o=o&&o.whiteSpace,I(w,{marginLeft:T,marginTop:A}),!x.styledMode&&this.shadows&&this.shadows.forEach(function(d){I(d,{marginLeft:T+1,marginTop:A+1})}),this.inverted&&[].forEach.call(w.childNodes,function(d){x.invertChild(d,w)}),"SPAN"===w.tagName){var h=this.rotation,t=this.textWidth&&y(this.textWidth),c=[h,r,w.innerHTML,this.textWidth,this.textAlign].join(),i=void 0;if(i=!1,t!==this.oldTextWidth){if(this.textPxLength)var s=this.textPxLength;else I(w,{width:"",whiteSpace:o||"nowrap"}),s=w.offsetWidth;(t>this.oldTextWidth||s>t)&&(/[ \-]/.test(w.textContent||w.innerText)||"ellipsis"===w.style.textOverflow)&&(I(w,{width:s>t||h?t+"px":"auto",display:"block",whiteSpace:o||"normal"}),this.oldTextWidth=t,i=!0)}this.hasBoxWidthChanged=i,c!==this.cTT&&(i=x.fontMetrics(w.style.fontSize,w).b,!O(h)||h===(this.oldRotation||0)&&r===this.oldAlign||this.setSpanRotation(h,p,i),this.getSpanCorrection(!O(h)&&this.textPxLength||w.offsetWidth,i,p,h,r)),I(w,{left:j+(this.xCorr||0)+"px",top:k+(this.yCorr||0)+"px"}),this.cTT=c,this.oldRotation=h,this.oldAlign=r}}else this.alignOnAdd=!0},v.prototype.setSpanRotation=function(x,w,T){var A={},j=ot&&!/Edge/.test(B.navigator.userAgent)?"-ms-transform":q?"-webkit-transform":it?"MozTransform":B.opera?"-o-transform":void 0;j&&(A[j]=A.transform="rotate("+x+"deg)",A[j+(it?"Origin":"-origin")]=A.transformOrigin=100*w+"% "+T+"px",I(this.element,A))},v.composedClasses=[],v}(F)}),ct(U,"Core/Renderer/HTML/HTMLRenderer.js",[U["Core/Renderer/HTML/AST.js"],U["Core/Renderer/SVG/SVGElement.js"],U["Core/Renderer/SVG/SVGRenderer.js"],U["Core/Utilities.js"]],function(G,F,M,rt){var O,it=this&&this.__extends||(O=function(g,f){return(O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,C){y.__proto__=C}||function(y,C){for(var v in C)C.hasOwnProperty(v)&&(y[v]=C[v])})(g,f)},function(g,f){function y(){this.constructor=g}O(g,f),g.prototype=null===f?Object.create(f):(y.prototype=f.prototype,new y)}),ot=rt.attr,q=rt.createElement,B=rt.extend,I=rt.pick;return function(O){function g(){return null!==O&&O.apply(this,arguments)||this}return it(g,O),g.compose=function(f){return-1===g.composedClasses.indexOf(f)&&(g.composedClasses.push(f),f.prototype.html=g.prototype.html),f},g.prototype.html=function(f,y,C){var v=this.createElement("span"),x=v.element,w=v.renderer,T=w.isSVG,A=function(j,k){["opacity","visibility"].forEach(function(r){j[r+"Setter"]=function(p,o,h){var t=j.div?j.div.style:k;F.prototype[r+"Setter"].call(this,p,o,h),t&&(t[o]=p)}}),j.addedSetters=!0};return v.textSetter=function(j){j!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,G.setElementHTML(this.element,I(j,"")),this.textStr=j,v.doTransform=!0)},T&&A(v,v.element.style),v.xSetter=v.ySetter=v.alignSetter=v.rotationSetter=function(j,k){"align"===k?v.alignValue=v.textAlign=j:v[k]=j,v.doTransform=!0},v.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)},v.attr({text:f,x:Math.round(y),y:Math.round(C)}).css({position:"absolute"}),w.styledMode||v.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize}),x.style.whiteSpace="nowrap",v.css=v.htmlCss,T&&(v.add=function(j){var k=w.box.parentNode,r=[];if(this.parentGroup=j){var p=j.div;if(!p){for(;j;)r.push(j),j=j.parentGroup;r.reverse().forEach(function(o){function h(s,d){o[d]=s,"translateX"===d?i.left=s+"px":i.top=s+"px",o.doTransform=!0}var s,t=ot(o.element,"class"),c=o.styles||{},i=(p=o.div=o.div||q("div",t?{className:t}:void 0,{position:"absolute",left:(o.translateX||0)+"px",top:(o.translateY||0)+"px",display:o.display,opacity:o.opacity,cursor:c.cursor,pointerEvents:c.pointerEvents,visibility:o.visibility},p||k)).style;B(o,{classSetter:(s=p,function(d){this.element.setAttribute("class",d),s.className=d}),on:function(){return r[0].div&&v.on.apply({element:r[0].div,onEvents:o.onEvents},arguments),o},translateXSetter:h,translateYSetter:h}),o.addedSetters||A(o)})}}else p=k;return p.appendChild(x),v.added=!0,v.alignOnAdd&&v.htmlUpdateTransform(),v}),v},g.composedClasses=[],g}(M)}),ct(U,"Core/Axis/AxisDefaults.js",[],function(){var G=(()=>{return(F=G||(G={})).defaultXAxisOptions={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",range:!1},second:{main:"%H:%M:%S",range:!1},minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e. %b"},week:{main:"%e. %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:!1,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotation:void 0,autoRotationLimit:80,distance:void 0,enabled:!0,indentation:10,overflow:"justify",padding:5,reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,x:0,zIndex:7,style:{color:"#666666",cursor:"default",fontSize:"11px"}},maxPadding:.01,minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minPadding:.01,offset:void 0,opposite:!1,reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",rotation:0,useHTML:!1,x:0,y:0,style:{color:"#666666"}},type:"linear",uniqueNames:!0,visible:!0,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#ccd6eb",lineWidth:1,gridLineColor:"#e6e6e6",gridLineWidth:void 0,tickColor:"#ccd6eb"},F.defaultYAxisOptions={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){return(0,this.axis.chart.numberFormatter)(this.total||0,-1)},style:{color:"#000000",fontSize:"11px",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0},F.defaultLeftAxisOptions={labels:{x:-15},title:{rotation:270}},F.defaultRightAxisOptions={labels:{x:15},title:{rotation:90}},F.defaultBottomAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}},F.defaultTopAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}},G;var F})();return G}),ct(U,"Core/Foundation.js",[U["Core/Utilities.js"]],function(G){var ot,F=G.addEvent,M=G.isFunction,rt=G.objectEach,it=G.removeEvent;return(ot||(ot={})).registerEventOptions=function(B,I){B.eventOptions=B.eventOptions||{},rt(I.events,function(O,g){B.eventOptions[g]!==O&&(B.eventOptions[g]&&(it(B,g,B.eventOptions[g]),delete B.eventOptions[g]),M(O)&&(B.eventOptions[g]=O,F(B,g,O)))})},ot}),ct(U,"Core/Axis/Tick.js",[U["Core/FormatUtilities.js"],U["Core/Globals.js"],U["Core/Utilities.js"]],function(G,F,M){var rt=F.deg2rad,it=M.clamp,ot=M.correctFloat,q=M.defined,B=M.destroyObjectProperties,I=M.extend,O=M.fireEvent,g=M.isNumber,f=M.merge,y=M.objectEach,C=M.pick;return function(){function v(x,w,T,A,j){this.isNewLabel=this.isNew=!0,this.axis=x,this.pos=w,this.type=T||"",this.parameters=j||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,O(this,"init"),T||A||this.addLabel()}return v.prototype.addLabel=function(){var x=this,w=x.axis,T=w.options,A=w.chart,j=w.categories,k=w.logarithmic,r=w.names,p=x.pos,o=C(x.options&&x.options.labels,T.labels),h=w.tickPositions,t=p===h[0],c=p===h[h.length-1],i=(!o.step||1===o.step)&&1===w.tickInterval;h=h.info;var d,s=x.label;if(j=this.parameters.category||(j?C(j[p],r[p],p):p),k&&g(j)&&(j=ot(k.lin2log(j))),w.dateTime)if(h)var a=A.time.resolveDTLFormat(T.dateTimeLabelFormats[!T.grid&&h.higherRanks[p]||h.unitName]),m=a.main;else g(j)&&(m=w.dateTime.getXDateFormat(j,T.dateTimeLabelFormats||{}));x.isFirst=t,x.isLast=c;var L={axis:w,chart:A,dateTimeLabelFormat:m,isFirst:t,isLast:c,pos:p,tick:x,tickPositionInfo:h,value:j};O(this,"labelFormat",L);var Y=function(e){return o.formatter?o.formatter.call(e,e):o.format?(e.text=w.defaultLabelFormatter.call(e,e),G.format(o.format,e,A)):w.defaultLabelFormatter.call(e,e)};T=Y.call(L,L);var _=a&&a.list;x.shortenLabel=_?function(){for(d=0;d<_.length;d++)if(I(L,{dateTimeLabelFormat:_[d]}),s.attr({text:Y.call(L,L)}),s.getBBox().width<w.getSlotWidth(x)-2*o.padding)return;s.attr({text:""})}:void 0,i&&w._addedPlotLB&&x.moveLabel(T,o),q(s)||x.movedLabel?s&&s.textStr!==T&&!i&&(!s.textWidth||o.style.width||s.styles.width||s.css({width:null}),s.attr({text:T}),s.textPxLength=s.getBBox().width):(x.label=s=x.createLabel({x:0,y:0},T,o),x.rotation=0)},v.prototype.createLabel=function(x,w,T){var A=this.axis,j=A.chart;return(x=q(w)&&T.enabled?j.renderer.text(w,x.x,x.y,T.useHTML).add(A.labelGroup):null)&&(j.styledMode||x.css(f(T.style)),x.textPxLength=x.getBBox().width),x},v.prototype.destroy=function(){B(this,this.axis)},v.prototype.getPosition=function(x,w,T,A){var j=this.axis,k=j.chart,r=A&&k.oldChartHeight||k.chartHeight;return(x={x:x?ot(j.translate(w+T,void 0,void 0,A)+j.transB):j.left+j.offset+(j.opposite?(A&&k.oldChartWidth||k.chartWidth)-j.right-j.left:0),y:x?r-j.bottom+j.offset-(j.opposite?j.height:0):ot(r-j.translate(w+T,void 0,void 0,A)-j.transB)}).y=it(x.y,-1e5,1e5),O(this,"afterGetPosition",{pos:x}),x},v.prototype.getLabelPosition=function(x,w,T,A,j,k,r,p){var o=this.axis,h=o.transA,t=o.isLinked&&o.linkedParent?o.linkedParent.reversed:o.reversed,c=o.staggerLines,i=o.tickRotCorr||{x:0,y:0},s=A||o.reserveSpaceDefault?0:-o.labelOffset*("center"===o.labelAlign?.5:1),d={};return T=0===o.side?T.rotation?-8:-T.getBBox().height:2===o.side?i.y+8:Math.cos(T.rotation*rt)*(i.y-T.getBBox(!1,0).height/2),q(j.y)&&(T=0===o.side&&o.horiz?j.y+T:j.y),x=x+j.x+s+i.x-(k&&A?k*h*(t?-1:1):0),w=w+T-(k&&!A?k*h*(t?1:-1):0),c&&(A=r/(p||1)%c,o.opposite&&(A=c-A-1),w+=o.labelOffset/c*A),d.x=x,d.y=Math.round(w),O(this,"afterGetLabelPosition",{pos:d,tickmarkOffset:k,index:r}),d},v.prototype.getLabelSize=function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0},v.prototype.getMarkPath=function(x,w,T,A,j,k){return k.crispLine([["M",x,w],["L",x+(j?0:-T),w+(j?T:0)]],A)},v.prototype.handleOverflow=function(x){var w=this.axis,T=w.options.labels,A=x.x,j=w.chart.chartWidth,k=w.chart.spacing,r=C(w.labelLeft,Math.min(w.pos,k[3]));k=C(w.labelRight,Math.max(w.isRadial?0:w.pos+w.len,j-k[1]));var a,p=this.label,o=this.rotation,h={left:0,center:.5,right:1}[w.labelAlign||p.attr("align")],t=p.getBBox().width,c=w.getSlotWidth(this),i={},s=c,d=1;o||"justify"!==T.overflow?0>o&&A-h*t<r?a=Math.round(A/Math.cos(o*rt)-r):0<o&&A+h*t>k&&(a=Math.round((j-A)/Math.cos(o*rt))):(j=A+(1-h)*t,A-h*t<r?s=x.x+s*(1-h)-r:j>k&&(s=k-x.x+s*h,d=-1),(s=Math.min(c,s))<c&&"center"===w.labelAlign&&(x.x+=d*(c-s-h*(c-Math.min(t,s)))),(t>s||w.autoRotation&&(p.styles||{}).width)&&(a=s)),a&&(this.shortenLabel?this.shortenLabel():(i.width=Math.floor(a)+"px",(T.style||{}).textOverflow||(i.textOverflow="ellipsis"),p.css(i)))},v.prototype.moveLabel=function(x,w){var T=this,A=T.label,j=T.axis,k=j.reversed,r=!1;if(A&&A.textStr===x?(T.movedLabel=A,r=!0,delete T.label):y(j.ticks,function(o){r||o.isNew||o===T||!o.label||o.label.textStr!==x||(T.movedLabel=o.label,r=!0,o.labelPos=T.movedLabel.xy,delete o.label)}),!r&&(T.labelPos||A)){var p=T.labelPos||A.xy;T.movedLabel=T.createLabel({x:A=j.horiz?k?0:j.width+j.left:p.x,y:j=j.horiz?p.y:k?j.width+j.left:0},x,w),T.movedLabel&&T.movedLabel.attr({opacity:0})}},v.prototype.render=function(x,w,T){var A=this.axis,j=A.horiz,k=this.pos,r=C(this.tickmarkOffset,A.tickmarkOffset);r=(k=this.getPosition(j,k,r,w)).x,A=j&&r===A.pos+A.len||!j&&k.y===A.pos?-1:1,j=C(T,this.label&&this.label.newOpacity,1),T=C(T,1),this.isActive=!0,this.renderGridLine(w,T,A),this.renderMark(k,T,A),this.renderLabel(k,w,j,x),this.isNew=!1,O(this,"afterRender")},v.prototype.renderGridLine=function(x,w,T){var A=this.axis,j=A.options,k={},r=this.pos,p=this.type,o=C(this.tickmarkOffset,A.tickmarkOffset),h=A.chart.renderer,t=this.gridLine,c=j.gridLineWidth,i=j.gridLineColor,s=j.gridLineDashStyle;"minor"===this.type&&(c=j.minorGridLineWidth,i=j.minorGridLineColor,s=j.minorGridLineDashStyle),t||(A.chart.styledMode||(k.stroke=i,k["stroke-width"]=c||0,k.dashstyle=s),p||(k.zIndex=1),x&&(w=0),this.gridLine=t=h.path().attr(k).addClass("highcharts-"+(p?p+"-":"")+"grid-line").add(A.gridGroup)),t&&(T=A.getPlotLinePath({value:r+o,lineWidth:t.strokeWidth()*T,force:"pass",old:x,acrossPanes:!1}))&&t[x||this.isNew?"attr":"animate"]({d:T,opacity:w})},v.prototype.renderMark=function(x,w,T){var A=this.axis,j=A.options,k=A.chart.renderer,r=this.type,p=A.tickSize(r?r+"Tick":"tick"),o=x.x;x=x.y;var h=C(j["minor"!==r?"tickWidth":"minorTickWidth"],!r&&A.isXAxis?1:0);j=j["minor"!==r?"tickColor":"minorTickColor"];var t=this.mark,c=!t;p&&(A.opposite&&(p[0]=-p[0]),t||(this.mark=t=k.path().addClass("highcharts-"+(r?r+"-":"")+"tick").add(A.axisGroup),A.chart.styledMode||t.attr({stroke:j,"stroke-width":h})),t[c?"attr":"animate"]({d:this.getMarkPath(o,x,p[0],t.strokeWidth()*T,A.horiz,k),opacity:w}))},v.prototype.renderLabel=function(x,w,T,A){var j=this.axis,k=j.horiz,r=j.options,p=this.label,o=r.labels,h=o.step;j=C(this.tickmarkOffset,j.tickmarkOffset);var t=x.x;x=x.y;var c=!0;p&&g(t)&&(p.xy=x=this.getLabelPosition(t,x,p,k,o,j,A,h),this.isFirst&&!this.isLast&&!r.showFirstLabel||this.isLast&&!this.isFirst&&!r.showLastLabel?c=!1:!k||o.step||o.rotation||w||0===T||this.handleOverflow(x),h&&A%h&&(c=!1),c&&g(x.y)?(x.opacity=T,p[this.isNewLabel?"attr":"animate"](x).show(!0),this.isNewLabel=!1):(p.hide(),this.isNewLabel=!0))},v.prototype.replaceMovedLabel=function(){var x=this.label,w=this.axis,T=w.reversed;x&&!this.isNew&&(x.animate({x:w.horiz?T?w.left:w.width+w.left:x.xy.x,y:T=w.horiz?x.xy.y:T?w.width+w.top:w.top,opacity:0},void 0,x.destroy),delete this.label),w.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel},v}()}),ct(U,"Core/Axis/Axis.js",[U["Core/Animation/AnimationUtilities.js"],U["Core/Axis/AxisDefaults.js"],U["Core/Color/Color.js"],U["Core/Defaults.js"],U["Core/Foundation.js"],U["Core/Globals.js"],U["Core/Axis/Tick.js"],U["Core/Utilities.js"]],function(G,F,M,rt,it,ot,q,B){var I=G.animObject,O=rt.defaultOptions,g=it.registerEventOptions,f=ot.deg2rad,y=B.arrayMax,C=B.arrayMin,v=B.clamp,x=B.correctFloat,w=B.defined,T=B.destroyObjectProperties,A=B.erase,j=B.error,k=B.extend,r=B.fireEvent,p=B.isArray,o=B.isNumber,h=B.isString,t=B.merge,c=B.normalizeTickInterval,i=B.objectEach,s=B.pick,d=B.relativeLength,a=B.removeEvent,m=B.splat,L=B.syncTimeout,Y=function(_,e){return c(e,void 0,void 0,s(_.options.allowDecimals,.5>e||void 0!==_.tickAmount),!!_.tickAmount)};return function(){function _(e,l){this.zoomEnabled=this.width=this.visible=this.userOptions=this.translationSlope=this.transB=this.transA=this.top=this.ticks=this.tickRotCorr=this.tickPositions=this.tickmarkOffset=this.tickInterval=this.tickAmount=this.side=this.series=this.right=this.positiveValuesOnly=this.pos=this.pointRangePadding=this.pointRange=this.plotLinesAndBandsGroups=this.plotLinesAndBands=this.paddedTicks=this.overlap=this.options=this.offset=this.names=this.minPixelPadding=this.minorTicks=this.minorTickInterval=this.min=this.maxLabelLength=this.max=this.len=this.left=this.labelFormatter=this.labelEdge=this.isLinked=this.height=this.hasVisibleSeries=this.hasNames=this.eventOptions=this.coll=this.closestPointRange=this.chart=this.bottom=this.alternateBands=void 0,this.init(e,l)}return _.prototype.init=function(e,l){var P=l.isX;this.chart=e,this.horiz=e.inverted&&!this.isZAxis?!P:P,this.isXAxis=P,this.coll=this.coll||(P?"xAxis":"yAxis"),r(this,"init",{userOptions:l}),this.opposite=s(l.opposite,this.opposite),this.side=s(l.side,this.side,this.horiz?this.opposite?0:2:this.opposite?1:3),this.setOptions(l);var D=this.options,b=D.labels,n=D.type;this.userOptions=l,this.minPixelPadding=0,this.reversed=s(D.reversed,this.reversed),this.visible=D.visible,this.zoomEnabled=D.zoomEnabled,this.hasNames="category"===n||!0===D.categories,this.categories=D.categories||(this.hasNames?[]:void 0),this.names||(this.names=[],this.names.keys={}),this.plotLinesAndBandsGroups={},this.positiveValuesOnly=!!this.logarithmic,this.isLinked=w(D.linkedTo),this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},this.len=0,this.minRange=this.userMinRange=D.minRange||D.maxZoom,this.range=D.range,this.offset=D.offset||0,this.min=this.max=null,l=s(D.crosshair,m(e.options.tooltip.crosshairs)[P?0:1]),this.crosshair=!0===l?{}:l,-1===e.axes.indexOf(this)&&(P?e.axes.splice(e.xAxis.length,0,this):e.axes.push(this),e[this.coll].push(this)),this.series=this.series||[],e.inverted&&!this.isZAxis&&P&&typeof this.reversed>"u"&&(this.reversed=!0),this.labelRotation=o(b.rotation)?b.rotation:void 0,g(this,D),r(this,"afterInit")},_.prototype.setOptions=function(e){this.options=t(F.defaultXAxisOptions,"yAxis"===this.coll&&F.defaultYAxisOptions,[F.defaultTopAxisOptions,F.defaultRightAxisOptions,F.defaultBottomAxisOptions,F.defaultLeftAxisOptions][this.side],t(O[this.coll],e)),r(this,"afterSetOptions",{userOptions:e})},_.prototype.defaultLabelFormatter=function(e){var l=this.axis;e=this.chart.numberFormatter;var P=o(this.value)?this.value:NaN,D=l.chart.time,b=this.dateTimeLabelFormat,n=O.lang,S=n.numericSymbols;n=n.numericSymbolMagnitude||1e3;var u=l.logarithmic?Math.abs(P):l.tickInterval,z=S&&S.length;if(l.categories)var E="".concat(this.value);else if(b)E=D.dateFormat(b,P);else if(z&&1e3<=u)for(;z--&&typeof E>"u";)u>=(l=Math.pow(n,z+1))&&10*P%l==0&&null!==S[z]&&0!==P&&(E=e(P/l,-1)+S[z]);return typeof E>"u"&&(E=1e4<=Math.abs(P)?e(P,-1):e(P,-1,void 0,"")),E},_.prototype.getSeriesExtremes=function(){var P,e=this,l=e.chart;r(this,"getSeriesExtremes",null,function(){e.hasVisibleSeries=!1,e.dataMin=e.dataMax=e.threshold=null,e.softThreshold=!e.isXAxis,e.series.forEach(function(D){if(D.visible||!l.options.chart.ignoreHiddenSeries){var b=D.options,n=b.threshold;if(e.hasVisibleSeries=!0,e.positiveValuesOnly&&0>=n&&(n=null),e.isXAxis){if((b=D.xData).length){b=e.logarithmic?b.filter(e.validatePositiveValue):b;var S=(P=D.getXExtremes(b)).min,u=P.max;o(S)||S instanceof Date||(b=b.filter(o),S=(P=D.getXExtremes(b)).min,u=P.max),b.length&&(e.dataMin=Math.min(s(e.dataMin,S),S),e.dataMax=Math.max(s(e.dataMax,u),u))}}else D=D.applyExtremes(),o(D.dataMin)&&(S=D.dataMin,e.dataMin=Math.min(s(e.dataMin,S),S)),o(D.dataMax)&&(u=D.dataMax,e.dataMax=Math.max(s(e.dataMax,u),u)),w(n)&&(e.threshold=n),(!b.softThreshold||e.positiveValuesOnly)&&(e.softThreshold=!1)}})}),r(this,"afterGetSeriesExtremes")},_.prototype.translate=function(e,l,P,D,b,n){var S=this.linkedParent||this,u=D&&S.old?S.old.min:S.min;if(!o(u))return NaN;var z=S.minPixelPadding;b=(S.isOrdinal||S.brokenAxis&&S.brokenAxis.hasBreaks||S.logarithmic&&b)&&S.lin2val;var E=1,N=0;return(D=D&&S.old?S.old.transA:S.transA)||(D=S.transA),P&&(E*=-1,N=S.len),S.reversed&&(N-=(E*=-1)*(S.sector||S.len)),l?(n=(e*E+N-z)/D+u,b&&(n=S.lin2val(n))):(b&&(e=S.val2lin(e)),e=E*(e-u)*D,n=(S.isRadial?e:x(e))+N+E*z+(o(n)?D*n:0)),n},_.prototype.toPixels=function(e,l){return this.translate(e,!1,!this.horiz,void 0,!0)+(l?0:this.pos)},_.prototype.toValue=function(e,l){return this.translate(e-(l?0:this.pos),!0,!this.horiz,void 0,!0)},_.prototype.getPlotLinePath=function(e){function l(V,R,H){return"pass"!==$&&(V<R||V>H)&&($?V=v(V,R,H):et=!0),V}var nt,J,K,X,et,P=this,D=P.chart,b=P.left,n=P.top,S=e.old,u=e.value,z=e.lineWidth,E=S&&D.oldChartHeight||D.chartHeight,N=S&&D.oldChartWidth||D.chartWidth,W=P.transB,Z=e.translatedValue,$=e.force;return r(this,"getPlotLinePath",e={value:u,lineWidth:z,old:S,force:$,acrossPanes:e.acrossPanes,translatedValue:Z},function(V){Z=s(Z,P.translate(u,void 0,void 0,S)),Z=v(Z,-1e5,1e5),nt=K=Math.round(Z+W),J=X=Math.round(E-Z-W),o(Z)?P.horiz?(J=n,X=E-P.bottom,nt=K=l(nt,b,b+P.width)):(nt=b,K=N-P.right,J=X=l(J,n,n+P.height)):(et=!0,$=!1),V.path=et&&!$?null:D.renderer.crispLine([["M",nt,J],["L",K,X]],z||1)}),e.path},_.prototype.getLinearTickPositions=function(e,l,P){var D=x(Math.floor(l/e)*e);P=x(Math.ceil(P/e)*e);var n,b=[];if(x(D+e)===D&&(n=20),this.single)return[l];for(l=D;l<=P&&(b.push(l),(l=x(l+e,n))!==S);)var S=l;return b},_.prototype.getMinorTickInterval=function(){var e=this.options;return!0===e.minorTicks?s(e.minorTickInterval,"auto"):!1===e.minorTicks?null:e.minorTickInterval},_.prototype.getMinorTickPositions=function(){var e=this.options,l=this.tickPositions,P=this.minorTickInterval,D=this.pointRangePadding||0,b=this.min-D,n=(D=this.max+D)-b,S=[];if(n&&n/P<this.len/3){var u=this.logarithmic;if(u)this.paddedTicks.forEach(function(z,E,N){E&&S.push.apply(S,u.getLogTickPositions(P,N[E-1],N[E],!0))});else if(this.dateTime&&"auto"===this.getMinorTickInterval())S=S.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(P),b,D,e.startOfWeek));else for(e=b+(l[0]-b)%P;e<=D&&e!==S[0];e+=P)S.push(e)}return 0!==S.length&&this.trimTicks(S),S},_.prototype.adjustForMinRange=function(){var n,S,u,z,e=this.options,l=this.logarithmic,P=this.min,D=this.max,b=0;if(this.isXAxis&&typeof this.minRange>"u"&&!l&&(w(e.min)||w(e.max)||w(e.floor)||w(e.ceiling)?this.minRange=null:(this.series.forEach(function(Z){if(u=Z.xData,z=Z.xIncrement?1:u.length-1,1<u.length)for(n=z;0<n;n--)S=u[n]-u[n-1],(!b||S<b)&&(b=S)}),this.minRange=Math.min(5*b,this.dataMax-this.dataMin))),D-P<this.minRange){var E=this.dataMax-this.dataMin>=this.minRange,N=this.minRange,W=(N-D+P)/2;W=[P-W,s(e.min,P-W)],E&&(W[2]=this.logarithmic?this.logarithmic.log2lin(this.dataMin):this.dataMin),D=[(P=y(W))+N,s(e.max,P+N)],E&&(D[2]=l?l.log2lin(this.dataMax):this.dataMax),(D=C(D))-P<N&&(W[0]=D-N,W[1]=s(e.min,D-N),P=y(W))}this.min=P,this.max=D},_.prototype.getClosest=function(){var e;return this.categories?e=1:this.series.forEach(function(l){var P=l.closestPointRange,D=l.visible||!l.chart.options.chart.ignoreHiddenSeries;!l.noSharedTooltip&&w(P)&&D&&(e=w(e)?Math.min(e,P):P)}),e},_.prototype.nameToX=function(e){var l=p(this.options.categories),P=l?this.categories:this.names,D=e.options.x;if(e.series.requireSorting=!1,w(D)||(D=this.options.uniqueNames&&P?l?P.indexOf(e.name):s(P.keys[e.name],-1):e.series.autoIncrement()),-1===D){if(!l&&P)var b=P.length}else b=D;return typeof b<"u"?(this.names[b]=e.name,this.names.keys[e.name]=b):e.x&&(b=e.x),b},_.prototype.updateNames=function(){var e=this,l=this.names;0<l.length&&(Object.keys(l.keys).forEach(function(P){delete l.keys[P]}),l.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(function(P){P.xIncrement=null,(!P.points||P.isDirtyData)&&(e.max=Math.max(e.max,P.xData.length-1),P.processData(),P.generatePoints()),P.data.forEach(function(D,b){if(D&&D.options&&typeof D.name<"u"){var n=e.nameToX(D);typeof n<"u"&&n!==D.x&&(D.x=n,P.xData[b]=n)}})}))},_.prototype.setAxisTranslation=function(){var z,e=this,l=e.max-e.min,P=e.linkedParent,D=!!e.categories,b=e.isXAxis,n=e.axisPointRange||0,S=0,u=0;if(b||D||n){var E=e.getClosest();P?(S=P.minPointOffset,u=P.pointRangePadding):e.series.forEach(function(N){var W=D?1:b?s(N.options.pointRange,E,0):e.axisPointRange||0,Z=N.options.pointPlacement;n=Math.max(n,W),(!e.single||D)&&(N=N.is("xrange")?!b:b,S=Math.max(S,N&&h(Z)?0:W/2),u=Math.max(u,N&&"on"===Z?0:W))}),e.minPointOffset=S*=P=e.ordinal&&e.ordinal.slope&&E?e.ordinal.slope/E:1,e.pointRangePadding=u*=P,e.pointRange=Math.min(n,e.single&&D?1:l),b&&(e.closestPointRange=E)}e.translationSlope=e.transA=z=e.staticScale||e.len/(l+u||1),e.transB=e.horiz?e.left:e.bottom,e.minPixelPadding=z*S,r(this,"afterSetAxisTranslation")},_.prototype.minFromRange=function(){return this.max-this.range},_.prototype.setTickInterval=function(e){var l=this.chart,P=this.logarithmic,D=this.options,b=this.isXAxis,n=this.isLinked,S=D.tickPixelInterval,u=this.categories,z=this.softThreshold,E=D.maxPadding,N=D.minPadding,W=o(D.tickInterval)&&0<=D.tickInterval?D.tickInterval:void 0,Z=o(this.threshold)?this.threshold:null;this.dateTime||u||n||this.getTickAmount();var $=s(this.userMin,D.min),nt=s(this.userMax,D.max);if(n){this.linkedParent=l[this.coll][D.linkedTo];var J=this.linkedParent.getExtremes();this.min=s(J.min,J.dataMin),this.max=s(J.max,J.dataMax),D.type!==this.linkedParent.options.type&&j(11,1,l)}else{if(z&&w(Z))if(this.dataMin>=Z)J=Z,N=0;else if(this.dataMax<=Z){var K=Z;E=0}this.min=s($,J,this.dataMin),this.max=s(nt,K,this.dataMax)}if(P&&(this.positiveValuesOnly&&!e&&0>=Math.min(this.min,s(this.dataMin,this.min))&&j(10,1,l),this.min=x(P.log2lin(this.min),16),this.max=x(P.log2lin(this.max),16)),this.range&&w(this.max)&&(this.userMin=this.min=$=Math.max(this.dataMin,this.minFromRange()),this.userMax=nt=this.max,this.range=null),r(this,"foundExtremes"),this.beforePadding&&this.beforePadding(),this.adjustForMinRange(),!(u||this.axisPointRange||this.stacking&&this.stacking.usePercentage||n)&&w(this.min)&&w(this.max)&&(l=this.max-this.min)&&(!w($)&&N&&(this.min-=l*N),!w(nt)&&E&&(this.max+=l*E)),o(this.userMin)||(o(D.softMin)&&D.softMin<this.min&&(this.min=$=D.softMin),o(D.floor)&&(this.min=Math.max(this.min,D.floor))),o(this.userMax)||(o(D.softMax)&&D.softMax>this.max&&(this.max=nt=D.softMax),o(D.ceiling)&&(this.max=Math.min(this.max,D.ceiling))),z&&w(this.dataMin)&&(Z=Z||0,!w($)&&this.min<Z&&this.dataMin>=Z?this.min=this.options.minRange?Math.min(Z,this.max-this.minRange):Z:!w(nt)&&this.max>Z&&this.dataMax<=Z&&(this.max=this.options.minRange?Math.max(Z,this.min+this.minRange):Z)),o(this.min)&&o(this.max)&&!this.chart.polar&&this.min>this.max&&(w(this.options.min)?this.max=this.min:w(this.options.max)&&(this.min=this.max)),this.tickInterval=this.min===this.max||typeof this.min>"u"||typeof this.max>"u"?1:n&&this.linkedParent&&!W&&S===this.linkedParent.options.tickPixelInterval?W=this.linkedParent.tickInterval:s(W,this.tickAmount?(this.max-this.min)/Math.max(this.tickAmount-1,1):void 0,u?1:(this.max-this.min)*S/Math.max(this.len,S)),b&&!e){var X=this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max);this.series.forEach(function(et){et.forceCrop=et.forceCropping&&et.forceCropping(),et.processData(X)}),r(this,"postProcessData",{hasExtremesChanged:X})}this.setAxisTranslation(),r(this,"initialAxisTranslation"),this.pointRange&&!W&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval)),e=s(D.minTickInterval,this.dateTime&&!this.series.some(function(et){return et.noSharedTooltip})?this.closestPointRange:0),!W&&this.tickInterval<e&&(this.tickInterval=e),this.dateTime||this.logarithmic||W||(this.tickInterval=Y(this,this.tickInterval)),this.tickAmount||(this.tickInterval=this.unsquish()),this.setTickPositions()},_.prototype.setTickPositions=function(){var u,e=this.options,l=e.tickPositions,P=e.tickPositioner,D=this.getMinorTickInterval(),b=this.hasVerticalPanning(),n="colorAxis"===this.coll,S=(n||!b)&&e.startOnTick;if(b=(n||!b)&&e.endOnTick,n=[],this.tickmarkOffset=this.categories&&"between"===e.tickmarkPlacement&&1===this.tickInterval?.5:0,this.minorTickInterval="auto"===D&&this.tickInterval?this.tickInterval/5:D,this.single=this.min===this.max&&w(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==e.allowDecimals),l)n=l.slice();else if(o(this.min)&&o(this.max)){if(this.ordinal&&this.ordinal.positions||!((this.max-this.min)/this.tickInterval>Math.max(2*this.len,200)))if(this.dateTime)n=this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,e.units),this.min,this.max,e.startOfWeek,this.ordinal&&this.ordinal.positions,this.closestPointRange,!0);else if(this.logarithmic)n=this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else for(D=e=this.tickInterval;D<=2*e&&(n=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&n.length>this.tickAmount);)this.tickInterval=Y(this,D*=1.1);else n=[this.min,this.max],j(19,!1,this.chart);n.length>this.len&&(n=[n[0],n[n.length-1]])[0]===n[1]&&(n.length=1),P&&(this.tickPositions=n,(u=P.apply(this,[this.min,this.max]))&&(n=u))}this.tickPositions=n,this.paddedTicks=n.slice(0),this.trimTicks(n,S,b),!this.isLinked&&o(this.min)&&o(this.max)&&(this.single&&2>n.length&&!this.categories&&!this.series.some(function(z){return z.is("heatmap")&&"between"===z.options.pointPlacement})&&(this.min-=.5,this.max+=.5),l||u||this.adjustTickAmount()),r(this,"afterSetTickPositions")},_.prototype.trimTicks=function(e,l,P){var D=e[0],b=e[e.length-1],n=!this.isOrdinal&&this.minPointOffset||0;if(r(this,"trimTicks"),!this.isLinked){if(l&&D!==-1/0)this.min=D;else for(;this.min-n>e[0];)e.shift();if(P)this.max=b;else for(;this.max+n<e[e.length-1];)e.pop();0===e.length&&w(D)&&!this.options.tickPositions&&e.push((b+D)/2)}},_.prototype.alignToOthers=function(){var n,e=this,l=[this],P=e.options,D="yAxis"===this.coll&&this.chart.options.chart.alignThresholds,b=[];if(e.thresholdAlignment=void 0,(!1!==this.chart.options.chart.alignTicks&&P.alignTicks||D)&&!1!==P.startOnTick&&!1!==P.endOnTick&&!e.logarithmic){var S=function(E){var N=E.options;return[E.horiz?N.left:N.top,N.width,N.height,N.pane].join()},u=S(this);this.chart[this.coll].forEach(function(E){var N=E.series;N.length&&N.some(function(W){return W.visible})&&E!==e&&S(E)===u&&(n=!0,l.push(E))})}if(n&&D){l.forEach(function(E){E=E.getThresholdAlignment(e),o(E)&&b.push(E)});var z=1<b.length?b.reduce(function(E,N){return E+N},0)/b.length:void 0;l.forEach(function(E){E.thresholdAlignment=z})}return n},_.prototype.getThresholdAlignment=function(e){if((!o(this.dataMin)||this!==e&&this.series.some(function(l){return l.isDirty||l.isDirtyData}))&&this.getSeriesExtremes(),o(this.threshold))return e=v((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1),this.options.reversed&&(e=1-e),e},_.prototype.getTickAmount=function(){var e=this.options,l=e.tickPixelInterval,P=e.tickAmount;!w(e.tickInterval)&&!P&&this.len<l&&!this.isRadial&&!this.logarithmic&&e.startOnTick&&e.endOnTick&&(P=2),!P&&this.alignToOthers()&&(P=Math.ceil(this.len/l)+1),4>P&&(this.finalTickAmt=P,P=5),this.tickAmount=P},_.prototype.adjustTickAmount=function(){var e=this,l=e.finalTickAmt,P=e.max,D=e.min,b=e.options,n=e.tickPositions,S=e.tickAmount,u=e.thresholdAlignment,z=n&&n.length,E=s(e.threshold,e.softThreshold?0:null),N=e.tickInterval;if(o(u)){var W=.5>u?Math.ceil(u*(S-1)):Math.floor(u*(S-1));b.reversed&&(W=S-1-W)}if(e.hasData()&&o(D)&&o(P)){if(u=function(){e.transA*=(z-1)/(S-1),e.min=b.startOnTick?n[0]:Math.min(D,n[0]),e.max=b.endOnTick?n[n.length-1]:Math.max(P,n[n.length-1])},o(W)&&o(e.threshold)){for(;n[W]!==E||n.length!==S||n[0]>D||n[n.length-1]<P;){for(n.length=0,n.push(e.threshold);n.length<S;)void 0===n[W]||n[W]>e.threshold?n.unshift(x(n[0]-N)):n.push(x(n[n.length-1]+N));if(N>8*e.tickInterval)break;N*=2}u()}else if(z<S){for(;n.length<S;)n.length%2||D===E?n.push(x(n[n.length-1]+N)):n.unshift(x(n[0]-N));u()}if(w(l)){for(N=E=n.length;N--;)(3===l&&N%2==1||2>=l&&0<N&&N<E-1)&&n.splice(N,1);e.finalTickAmt=void 0}}},_.prototype.setScale=function(){var e=!1,l=!1;this.series.forEach(function(D){e=e||D.isDirtyData||D.isDirty,l=l||D.xAxis&&D.xAxis.isDirty||!1}),this.setAxisSize();var P=this.len!==(this.old&&this.old.len);P||e||l||this.isLinked||this.forceRedraw||this.userMin!==(this.old&&this.old.userMin)||this.userMax!==(this.old&&this.old.userMax)||this.alignToOthers()?(this.stacking&&(this.stacking.resetStacks(),this.stacking.buildStacks()),this.forceRedraw=!1,this.getSeriesExtremes(),this.setTickInterval(),this.isDirty||(this.isDirty=P||this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max))):this.stacking&&this.stacking.cleanStacks(),e&&this.panningState&&(this.panningState.isDirty=!0),r(this,"afterSetScale")},_.prototype.setExtremes=function(e,l,P,D,b){var n=this,S=n.chart;P=s(P,!0),n.series.forEach(function(u){delete u.kdTree}),b=k(b,{min:e,max:l}),r(n,"setExtremes",b,function(){n.userMin=e,n.userMax=l,n.eventArgs=b,P&&S.redraw(D)})},_.prototype.zoom=function(e,l){var P=this,D=this.dataMin,b=this.dataMax,n=this.options,S=Math.min(D,s(n.min,D)),u=Math.max(b,s(n.max,b));return r(this,"zoom",e={newMin:e,newMax:l},function(z){var E=z.newMin,N=z.newMax;(E!==P.min||N!==P.max)&&(P.allowZoomOutside||(w(D)&&(E<S&&(E=S),E>u&&(E=u)),w(b)&&(N<S&&(N=S),N>u&&(N=u))),P.displayBtn=typeof E<"u"||typeof N<"u",P.setExtremes(E,N,!1,void 0,{trigger:"zoom"})),z.zoomed=!0}),e.zoomed},_.prototype.setAxisSize=function(){var e=this.chart,l=this.options,P=l.offsets||[0,0,0,0],D=this.horiz,b=this.width=Math.round(d(s(l.width,e.plotWidth-P[3]+P[1]),e.plotWidth)),n=this.height=Math.round(d(s(l.height,e.plotHeight-P[0]+P[2]),e.plotHeight)),S=this.top=Math.round(d(s(l.top,e.plotTop+P[0]),e.plotHeight,e.plotTop));l=this.left=Math.round(d(s(l.left,e.plotLeft+P[3]),e.plotWidth,e.plotLeft)),this.bottom=e.chartHeight-n-S,this.right=e.chartWidth-b-l,this.len=Math.max(D?b:n,0),this.pos=D?l:S},_.prototype.getExtremes=function(){var e=this.logarithmic;return{min:e?x(e.lin2log(this.min)):this.min,max:e?x(e.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},_.prototype.getThreshold=function(e){var l=this.logarithmic,P=l?l.lin2log(this.min):this.min;return l=l?l.lin2log(this.max):this.max,null===e||e===-1/0?e=P:e===1/0?e=l:P>e?e=P:l<e&&(e=l),this.translate(e,0,1,0,1)},_.prototype.autoLabelAlign=function(e){var l=(s(e,0)-90*this.side+720)%360;return r(this,"autoLabelAlign",e={align:"center"},function(P){15<l&&165>l?P.align="right":195<l&&345>l&&(P.align="left")}),e.align},_.prototype.tickSize=function(e){var l=this.options,P=s(l["tick"===e?"tickWidth":"minorTickWidth"],"tick"===e&&this.isXAxis&&!this.categories?1:0),D=l["tick"===e?"tickLength":"minorTickLength"];if(P&&D){"inside"===l[e+"Position"]&&(D=-D);var b=[D,P]}return r(this,"afterTickSize",e={tickSize:b}),e.tickSize},_.prototype.labelMetrics=function(){var e=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style.fontSize,this.ticks[e]&&this.ticks[e].label)},_.prototype.unsquish=function(){var e=this.options.labels,l=this.horiz,P=this.tickInterval,D=this.len/(((this.categories?1:0)+this.max-this.min)/P),b=e.rotation,n=this.labelMetrics(),S=Math.max(this.max-this.min,0),u=function(K){var X=K/(D||1);return(X=1<X?Math.ceil(X):1)*P>S&&K!==1/0&&D!==1/0&&S&&(X=Math.ceil(S/P)),x(X*P)},z=P,E=Number.MAX_VALUE;if(l){if(!e.staggerLines)if(o(b))var N=[b];else D<e.autoRotationLimit&&(N=e.autoRotation);if(N)for(var W=l=void 0,Z=0,$=N;Z<$.length;Z++){var nt=$[Z];if((nt===b||nt&&-90<=nt&&90>=nt)&&(W=(l=u(Math.abs(n.h/Math.sin(f*nt))))+Math.abs(nt/360))<E){E=W;var J=nt;z=l}}}else z=u(n.h);return this.autoRotation=N,this.labelRotation=s(J,o(b)?b:0),e.step?P:z},_.prototype.getSlotWidth=function(e){var l=this.chart,P=this.horiz,D=this.options.labels,b=Math.max(this.tickPositions.length-(this.categories?0:1),1),n=l.margin[3];if(e&&o(e.slotWidth))return e.slotWidth;if(P&&2>D.step)return D.rotation?0:(this.staggerLines||1)*this.len/b;if(!P){if(void 0!==(e=D.style.width))return parseInt(String(e),10);if(n)return n-l.spacing[3]}return.33*l.chartWidth},_.prototype.renderUnsquish=function(){var e=this.chart,l=e.renderer,P=this.tickPositions,D=this.ticks,b=this.options.labels,n=b.style,S=this.horiz,u=this.getSlotWidth(),z=Math.max(1,Math.round(u-2*b.padding)),E={},N=this.labelMetrics(),W=n.textOverflow,Z=0;if(h(b.rotation)||(E.rotation=b.rotation||0),P.forEach(function(K){(K=D[K]).movedLabel&&K.replaceMovedLabel(),K&&K.label&&K.label.textPxLength>Z&&(Z=K.label.textPxLength)}),this.maxLabelLength=Z,this.autoRotation)Z>z&&Z>N.h?E.rotation=this.labelRotation:this.labelRotation=0;else if(u){var $=z;if(!W){var nt="clip";for(z=P.length;!S&&z--;){var J=P[z];(J=D[J].label)&&(J.styles&&"ellipsis"===J.styles.textOverflow?J.css({textOverflow:"clip"}):J.textPxLength>u&&J.css({width:u+"px"}),J.getBBox().height>this.len/P.length-(N.h-N.f)&&(J.specificTextOverflow="ellipsis"))}}}E.rotation&&($=Z>.5*e.chartHeight?.33*e.chartHeight:Z,W||(nt="ellipsis")),(this.labelAlign=b.align||this.autoLabelAlign(this.labelRotation))&&(E.align=this.labelAlign),P.forEach(function(K){var X=(K=D[K])&&K.label,et=n.width,V={};X&&(X.attr(E),K.shortenLabel?K.shortenLabel():$&&!et&&"nowrap"!==n.whiteSpace&&($<X.textPxLength||"SPAN"===X.element.tagName)?(V.width=$+"px",W||(V.textOverflow=X.specificTextOverflow||nt),X.css(V)):X.styles&&X.styles.width&&!V.width&&!et&&X.css({width:null}),delete X.specificTextOverflow,K.rotation=E.rotation)},this),this.tickRotCorr=l.rotCorr(N.b,this.labelRotation||0,0!==this.side)},_.prototype.hasData=function(){return this.series.some(function(e){return e.hasData()})||this.options.showEmpty&&w(this.min)&&w(this.max)},_.prototype.addTitle=function(e){var S,D=this.opposite,b=this.options.title,n=this.chart.styledMode;this.axisTitle||((S=b.textAlign)||(S=(this.horiz?{low:"left",middle:"center",high:"right"}:{low:D?"right":"left",middle:"center",high:D?"left":"right"})[b.align]),this.axisTitle=this.chart.renderer.text(b.text||"",0,0,b.useHTML).attr({zIndex:7,rotation:b.rotation,align:S}).addClass("highcharts-axis-title"),n||this.axisTitle.css(t(b.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=!0),n||b.style.width||this.isRadial||this.axisTitle.css({width:this.len+"px"}),this.axisTitle[e?"show":"hide"](e)},_.prototype.generateTick=function(e){var l=this.ticks;l[e]?l[e].addLabel():l[e]=new q(this,e)},_.prototype.getOffset=function(){var e=this,l=this,P=l.chart,D=l.horiz,b=l.options,n=l.side,S=l.ticks,u=l.tickPositions,z=l.coll,E=l.axisParent,N=P.renderer,W=P.inverted&&!l.isZAxis?[1,0,3,2][n]:n,Z=l.hasData(),$=b.title,nt=b.labels,J=P.axisOffset;P=P.clipOffset;var et,K=[-1,1,1,-1][n],X=b.className,V=0,R=0,H=0;if(l.showAxis=et=Z||b.showEmpty,l.staggerLines=l.horiz&&nt.staggerLines||void 0,!l.axisGroup){var Q=function(st,at,ht){return N.g(st).attr({zIndex:ht}).addClass("highcharts-".concat(z.toLowerCase()).concat(at," ")+(e.isRadial?"highcharts-radial-axis".concat(at," "):"")+(X||"")).add(E)};l.gridGroup=Q("grid","-grid",b.gridZIndex),l.axisGroup=Q("axis","",b.zIndex),l.labelGroup=Q("axis-labels","-labels",nt.zIndex)}if(Z||l.isLinked?(u.forEach(function(st){l.generateTick(st)}),l.renderUnsquish(),l.reserveSpaceDefault=0===n||2===n||{1:"left",3:"right"}[n]===l.labelAlign,s(nt.reserveSpace,"center"===l.labelAlign||null,l.reserveSpaceDefault)&&u.forEach(function(st){H=Math.max(S[st].getLabelSize(),H)}),l.staggerLines&&(H*=l.staggerLines),l.labelOffset=H*(l.opposite?-1:1)):i(S,function(st,at){st.destroy(),delete S[at]}),$&&$.text&&!1!==$.enabled&&(l.addTitle(et),et&&!1!==$.reserveSpace)){l.titleOffset=V=l.axisTitle.getBBox()[D?"height":"width"];var tt=$.offset;R=w(tt)?0:s($.margin,D?5:10)}l.renderLine(),l.offset=K*s(b.offset,J[n]?J[n]+(b.margin||0):0),l.tickRotCorr=l.tickRotCorr||{x:0,y:0},$=0===n?-l.labelMetrics().h:2===n?l.tickRotCorr.y:0,Z=Math.abs(H)+R,H&&(Z=Z-$+K*(D?s(nt.y,l.tickRotCorr.y+8*K):nt.x)),l.axisTitleMargin=s(tt,Z),l.getMaxLabelDimensions&&(l.maxLabelDimensions=l.getMaxLabelDimensions(S,u)),"colorAxis"!==z&&(D=this.tickSize("tick"),J[n]=Math.max(J[n],(l.axisTitleMargin||0)+V+K*l.offset,Z,u&&u.length&&D?D[0]+K*l.offset:0),b=!l.axisLine||b.offset?0:2*Math.floor(l.axisLine.strokeWidth()/2),P[W]=Math.max(P[W],b)),r(this,"afterGetOffset")},_.prototype.getLinePath=function(e){var l=this.chart,P=this.opposite,D=this.offset,b=this.horiz,n=this.left+(P?this.width:0)+D;return D=l.chartHeight-this.bottom-(P?this.height:0)+D,P&&(e*=-1),l.renderer.crispLine([["M",b?this.left:n,b?D:this.top],["L",b?l.chartWidth-this.right:n,b?D:l.chartHeight-this.bottom]],e)},_.prototype.renderLine=function(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.chart.styledMode||this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))},_.prototype.getTitlePosition=function(){var e=this.horiz,l=this.left,P=this.top,D=this.len,b=this.options.title,n=e?l:P,S=this.opposite,u=this.offset,z=b.x,E=b.y,N=this.axisTitle,W=this.chart.renderer.fontMetrics(b.style.fontSize,N);return N=N?Math.max(N.getBBox(!1,0).height-W.h-1,0):0,D={low:n+(e?0:D),middle:n+D/2,high:n+(e?D:0)}[b.align],l=(e?P+this.height:l)+(e?1:-1)*(S?-1:1)*(this.axisTitleMargin||0)+[-N,N,W.f,-N][this.side],r(this,"afterGetTitlePosition",{titlePosition:e={x:e?D+z:l+(S?this.width:0)+u+z,y:e?l+E-(S?this.height:0)+u:D+E}}),e},_.prototype.renderMinorTick=function(e,l){var P=this.minorTicks;P[e]||(P[e]=new q(this,e,"minor")),l&&P[e].isNew&&P[e].render(null,!0),P[e].render(null,!1,1)},_.prototype.renderTick=function(e,l,P){var D=this.ticks;(!this.isLinked||e>=this.min&&e<=this.max||this.grid&&this.grid.isColumn)&&(D[e]||(D[e]=new q(this,e)),P&&D[e].isNew&&D[e].render(l,!0,-1),D[e].render(l))},_.prototype.render=function(){var K,X,e=this,l=e.chart,P=e.logarithmic,D=e.options,b=e.isLinked,n=e.tickPositions,S=e.axisTitle,u=e.ticks,z=e.minorTicks,E=e.alternateBands,N=D.stackLabels,W=D.alternateGridColor,Z=e.tickmarkOffset,$=e.axisLine,nt=e.showAxis,J=I(l.renderer.globalAnimation);if(e.labelEdge.length=0,e.overlap=!1,[u,z,E].forEach(function(V){i(V,function(R){R.isActive=!1})}),e.hasData()||b){var et=e.chart.hasRendered&&e.old&&o(e.old.min);e.minorTickInterval&&!e.categories&&e.getMinorTickPositions().forEach(function(V){e.renderMinorTick(V,et)}),n.length&&(n.forEach(function(V,R){e.renderTick(V,R,et)}),Z&&(0===e.min||e.single)&&(u[-1]||(u[-1]=new q(e,-1,null,!0)),u[-1].render(-1))),W&&n.forEach(function(V,R){X=typeof n[R+1]<"u"?n[R+1]+Z:e.max-Z,R%2==0&&V<e.max&&X<=e.max+(l.polar?-Z:Z)&&(E[V]||(E[V]=new ot.PlotLineOrBand(e)),K=V+Z,E[V].options={from:P?P.lin2log(K):K,to:P?P.lin2log(X):X,color:W,className:"highcharts-alternate-grid"},E[V].render(),E[V].isActive=!0)}),e._addedPlotLB||(e._addedPlotLB=!0,(D.plotLines||[]).concat(D.plotBands||[]).forEach(function(V){e.addPlotBandOrLine(V)}))}[u,z,E].forEach(function(V){var R=[],H=J.duration;i(V,function(Q,tt){Q.isActive||(Q.render(tt,!1,0),Q.isActive=!1,R.push(tt))}),L(function(){for(var Q=R.length;Q--;)V[R[Q]]&&!V[R[Q]].isActive&&(V[R[Q]].destroy(),delete V[R[Q]])},V!==E&&l.hasRendered&&H?H:0)}),$&&($[$.isPlaced?"animate":"attr"]({d:this.getLinePath($.strokeWidth())}),$.isPlaced=!0,$[nt?"show":"hide"](nt)),S&&nt&&(D=e.getTitlePosition(),S[S.isNew?"attr":"animate"](D),S.isNew=!1),N&&N.enabled&&e.stacking&&e.stacking.renderStackTotals(),e.old={len:e.len,max:e.max,min:e.min,transA:e.transA,userMax:e.userMax,userMin:e.userMin},e.isDirty=!1,r(this,"afterRender")},_.prototype.redraw=function(){this.visible&&(this.render(),this.plotLinesAndBands.forEach(function(e){e.render()})),this.series.forEach(function(e){e.isDirty=!0})},_.prototype.getKeepProps=function(){return this.keepProps||_.keepProps},_.prototype.destroy=function(e){var l=this,P=l.plotLinesAndBands,D=this.eventOptions;if(r(this,"destroy",{keepEvents:e}),e||a(l),[l.ticks,l.minorTicks,l.alternateBands].forEach(function(n){T(n)}),P)for(e=P.length;e--;)P[e].destroy();for(var b in"axisLine axisTitle axisGroup gridGroup labelGroup cross scrollbar".split(" ").forEach(function(n){l[n]&&(l[n]=l[n].destroy())}),l.plotLinesAndBandsGroups)l.plotLinesAndBandsGroups[b]=l.plotLinesAndBandsGroups[b].destroy();i(l,function(n,S){-1===l.getKeepProps().indexOf(S)&&delete l[S]}),this.eventOptions=D},_.prototype.drawCrosshair=function(e,l){var n,P=this.crosshair,D=s(P&&P.snap,!0),b=this.chart,S=this.cross;if(r(this,"drawCrosshair",{e,point:l}),e||(e=this.cross&&this.cross.e),P&&!1!==(w(l)||!D)){if(D?w(l)&&(n=s("colorAxis"!==this.coll?l.crosshairPos:null,this.isXAxis?l.plotX:this.len-l.plotY)):n=e&&(this.horiz?e.chartX-this.pos:this.len-e.chartY+this.pos),w(n)){var u={value:l&&(this.isXAxis?l.x:s(l.stackY,l.y)),translatedValue:n};b.polar&&k(u,{isCrosshair:!0,chartX:e&&e.chartX,chartY:e&&e.chartY,point:l}),u=this.getPlotLinePath(u)||null}if(!w(u))return void this.hideCrosshair();D=this.categories&&!this.isRadial,S||(this.cross=S=b.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(D?"category ":"thin ")+(P.className||"")).attr({zIndex:s(P.zIndex,2)}).add(),b.styledMode||(S.attr({stroke:P.color||(D?M.parse("#ccd6eb").setOpacity(.25).get():"#cccccc"),"stroke-width":s(P.width,1)}).css({"pointer-events":"none"}),P.dashStyle&&S.attr({dashstyle:P.dashStyle}))),S.show().attr({d:u}),D&&!P.width&&S.attr({"stroke-width":this.transA}),this.cross.e=e}else this.hideCrosshair();r(this,"afterDrawCrosshair",{e,point:l})},_.prototype.hideCrosshair=function(){this.cross&&this.cross.hide(),r(this,"afterHideCrosshair")},_.prototype.hasVerticalPanning=function(){var e=this.chart.options.chart.panning;return!!(e&&e.enabled&&/y/.test(e.type))},_.prototype.validatePositiveValue=function(e){return o(e)&&0<e},_.prototype.update=function(e,l){var P=this.chart;e=t(this.userOptions,e),this.destroy(!0),this.init(P,e),P.isDirtyBox=!0,s(l,!0)&&P.redraw()},_.prototype.remove=function(e){for(var l=this.chart,P=this.coll,D=this.series,b=D.length;b--;)D[b]&&D[b].remove(!1);A(l.axes,this),A(l[P],this),l[P].forEach(function(n,S){n.options.index=n.userOptions.index=S}),this.destroy(),l.isDirtyBox=!0,s(e,!0)&&l.redraw()},_.prototype.setTitle=function(e,l){this.update({title:e},l)},_.prototype.setCategories=function(e,l){this.update({categories:e},l)},_.defaultOptions=F.defaultXAxisOptions,_.keepProps="extKey hcEvents names series userMax userMin".split(" "),_}()}),ct(U,"Core/Axis/DateTimeAxis.js",[U["Core/Utilities.js"]],function(G){var ot,F=G.addEvent,M=G.getMagnitude,rt=G.normalizeTickInterval,it=G.timeUnits;return function(q){function B(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function I(f){"datetime"!==f.userOptions.type?this.dateTime=void 0:this.dateTime||(this.dateTime=new g(this))}var O=[];q.compose=function(f){return-1===O.indexOf(f)&&(O.push(f),f.keepProps.push("dateTime"),f.prototype.getTimeTicks=B,F(f,"init",I)),f};var g=function(){function f(y){this.axis=y}return f.prototype.normalizeTimeTickInterval=function(y,C){var T,v=C||[["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]],["week",[1,2]],["month",[1,2,3,4,6]],["year",null]],x=it[(C=v[v.length-1])[0]],w=C[1];for(T=0;T<v.length&&(x=it[(C=v[T])[0]],w=C[1],!(v[T+1]&&y<=(x*w[w.length-1]+it[v[T+1][0]])/2));T++);return x===it.year&&y<5*x&&(w=[1,2,5]),{unitRange:x,count:y=rt(y/x,w,"year"===C[0]?Math.max(M(y/x),1):1),unitName:C[0]}},f.prototype.getXDateFormat=function(y,C){var v=this.axis,x=v.chart.time;return v.closestPointRange?x.getDateFormat(v.closestPointRange,y,v.options.startOfWeek,C)||x.resolveDTLFormat(C.year).main:x.resolveDTLFormat(C.day).main},f}();q.Additions=g}(ot||(ot={})),ot}),ct(U,"Core/Axis/LogarithmicAxis.js",[U["Core/Utilities.js"]],function(G){var it,F=G.addEvent,M=G.normalizeTickInterval,rt=G.pick;return function(ot){function q(g){var f=this.logarithmic;"logarithmic"!==g.userOptions.type?this.logarithmic=void 0:f||(this.logarithmic=new O(this))}function B(){var g=this.logarithmic;g&&(this.lin2val=function(f){return g.lin2log(f)},this.val2lin=function(f){return g.log2lin(f)})}var I=[];ot.compose=function(g){return-1===I.indexOf(g)&&(I.push(g),g.keepProps.push("logarithmic"),F(g,"init",q),F(g,"afterInit",B)),g};var O=function(){function g(f){this.axis=f}return g.prototype.getLogTickPositions=function(f,y,C,v){var x=this.axis,w=x.len,T=x.options,A=[];if(v||(this.minorAutoInterval=void 0),.5<=f)f=Math.round(f),A=x.getLinearTickPositions(f,y,C);else if(.08<=f){var k,j=Math.floor(y),r=T=void 0;for(w=.3<f?[1,2,4]:.15<f?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];j<C+1&&!r;j++){var p=w.length;for(k=0;k<p&&!r;k++){var o=this.log2lin(this.lin2log(j)*w[k]);o>y&&(!v||T<=C)&&typeof T<"u"&&A.push(T),T>C&&(r=!0),T=o}}}else y=this.lin2log(y),C=this.lin2log(C),f=v?x.getMinorTickInterval():T.tickInterval,f=rt("auto"===f?null:f,this.minorAutoInterval,T.tickPixelInterval/(v?5:1)*(C-y)/((v?w/x.tickPositions.length:w)||1)),f=M(f),A=x.getLinearTickPositions(f,y,C).map(this.log2lin),v||(this.minorAutoInterval=f/5);return v||(x.tickInterval=f),A},g.prototype.lin2log=function(f){return Math.pow(10,f)},g.prototype.log2lin=function(f){return Math.log(f)/Math.LN10},g}();ot.Additions=O}(it||(it={})),it}),ct(U,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[U["Core/Utilities.js"]],function(G){var it,F=G.erase,M=G.extend,rt=G.isNumber;return function(ot){var B,q=[];ot.compose=function(O,g){return B||(B=O),-1===q.indexOf(g)&&(q.push(g),M(g.prototype,I.prototype)),g};var I=function(){function O(){}return O.prototype.getPlotBandPath=function(g,f,y){void 0===y&&(y=this.options);var C=this.getPlotLinePath({value:f,force:!0,acrossPanes:y.acrossPanes}),v=[],x=this.horiz;if(f=!rt(this.min)||!rt(this.max)||g<this.min&&f<this.min||g>this.max&&f>this.max,g=this.getPlotLinePath({value:g,force:!0,acrossPanes:y.acrossPanes}),y=1,g&&C){if(f){var w=g.toString()===C.toString();y=0}for(f=0;f<g.length;f+=2){var T=g[f],A=g[f+1],j=C[f],k=C[f+1];"M"!==T[0]&&"L"!==T[0]||"M"!==A[0]&&"L"!==A[0]||"M"!==j[0]&&"L"!==j[0]||"M"!==k[0]&&"L"!==k[0]||(x&&j[1]===T[1]?(j[1]+=y,k[1]+=y):x||j[2]!==T[2]||(j[2]+=y,k[2]+=y),v.push(["M",T[1],T[2]],["L",A[1],A[2]],["L",k[1],k[2]],["L",j[1],j[2]],["Z"])),v.isFlat=w}}return v},O.prototype.addPlotBand=function(g){return this.addPlotBandOrLine(g,"plotBands")},O.prototype.addPlotLine=function(g){return this.addPlotBandOrLine(g,"plotLines")},O.prototype.addPlotBandOrLine=function(g,f){var y=this,C=this.userOptions,v=new B(this,g);if(this.visible&&(v=v.render()),v){if(this._addedPlotLB||(this._addedPlotLB=!0,(C.plotLines||[]).concat(C.plotBands||[]).forEach(function(w){y.addPlotBandOrLine(w)})),f){var x=C[f]||[];x.push(g),C[f]=x}this.plotLinesAndBands.push(v)}return v},O.prototype.removePlotBandOrLine=function(g){var f=this.plotLinesAndBands,y=this.options,C=this.userOptions;if(f){for(var v=f.length;v--;)f[v].id===g&&f[v].destroy();[y.plotLines||[],C.plotLines||[],y.plotBands||[],C.plotBands||[]].forEach(function(x){for(v=x.length;v--;)(x[v]||{}).id===g&&F(x,x[v])})}},O.prototype.removePlotBand=function(g){this.removePlotBandOrLine(g)},O.prototype.removePlotLine=function(g){this.removePlotBandOrLine(g)},O}()}(it||(it={})),it}),ct(U,"Core/Axis/PlotLineOrBand/PlotLineOrBand.js",[U["Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js"],U["Core/Utilities.js"]],function(G,F){var M=F.arrayMax,rt=F.arrayMin,it=F.defined,ot=F.destroyObjectProperties,q=F.erase,B=F.fireEvent,I=F.merge,O=F.objectEach,g=F.pick;return function(){function f(y,C){this.axis=y,C&&(this.options=C,this.id=C.id)}return f.compose=function(y){return G.compose(f,y)},f.prototype.render=function(){B(this,"render");var y=this,C=y.axis,v=C.horiz,x=C.logarithmic,w=y.options,T=w.color,A=g(w.zIndex,0),j=w.events,k={},r=C.chart.renderer,p=w.label,o=y.label,h=w.to,t=w.from,c=w.value,i=y.svgElem,s=[],d=it(t)&&it(h);s=it(c);var a=!i,m={class:"highcharts-plot-"+(d?"band ":"line ")+(w.className||"")},L=d?"bands":"lines";if(x&&(t=x.log2lin(t),h=x.log2lin(h),c=x.log2lin(c)),C.chart.styledMode||(s?(m.stroke=T||"#999999",m["stroke-width"]=g(w.width,1),w.dashStyle&&(m.dashstyle=w.dashStyle)):d&&(m.fill=T||"#e6ebf5",w.borderWidth&&(m.stroke=w.borderColor,m["stroke-width"]=w.borderWidth))),k.zIndex=A,(x=C.plotLinesAndBandsGroups[L+="-"+A])||(C.plotLinesAndBandsGroups[L]=x=r.g("plot-"+L).attr(k).add()),a&&(y.svgElem=i=r.path().attr(m).add(x)),s)s=C.getPlotLinePath({value:c,lineWidth:i.strokeWidth(),acrossPanes:w.acrossPanes});else{if(!d)return;s=C.getPlotBandPath(t,h,w)}return!y.eventsAdded&&j&&(O(j,function(Y,_){i.on(_,function(e){j[_].apply(y,[e])})}),y.eventsAdded=!0),(a||!i.d)&&s&&s.length?i.attr({d:s}):i&&(s?(i.show(),i.animate({d:s})):i.d&&(i.hide(),o&&(y.label=o=o.destroy()))),p&&(it(p.text)||it(p.formatter))&&s&&s.length&&0<C.width&&0<C.height&&!s.isFlat?(p=I({align:v&&d&&"center",x:v?!d&&4:10,verticalAlign:!v&&d&&"middle",y:v?d?16:10:d?6:-4,rotation:v&&!d&&90},p),this.renderLabel(p,s,d,A)):o&&o.hide(),y},f.prototype.renderLabel=function(y,C,v,x){var w=this.axis,T=w.chart.renderer,A=this.label;A||(this.label=A=T.text(this.getLabelText(y),0,0,y.useHTML).attr({align:y.textAlign||y.align,rotation:y.rotation,class:"highcharts-plot-"+(v?"band":"line")+"-label "+(y.className||""),zIndex:x}).add(),w.chart.styledMode||A.css(I({textOverflow:"ellipsis"},y.style))),x=C.xBounds||[C[0][1],C[1][1],v?C[2][1]:C[0][1]],C=C.yBounds||[C[0][2],C[1][2],v?C[2][2]:C[0][2]],v=rt(x),T=rt(C),A.align(y,!1,{x:v,y:T,width:M(x)-v,height:M(C)-T}),A.alignValue&&"left"!==A.alignValue||(y=y.clip?w.width:w.chart.chartWidth,A.css({width:(90===A.rotation?w.height-(A.alignAttr.y-w.top):y-(A.alignAttr.x-w.left))+"px"})),A.show(!0)},f.prototype.getLabelText=function(y){return it(y.formatter)?y.formatter.call(this):y.text},f.prototype.destroy=function(){q(this.axis.plotLinesAndBands,this),delete this.axis,ot(this)},f}()}),ct(U,"Core/Tooltip.js",[U["Core/FormatUtilities.js"],U["Core/Globals.js"],U["Core/Renderer/RendererUtilities.js"],U["Core/Renderer/RendererRegistry.js"],U["Core/Utilities.js"]],function(G,F,M,rt,it){var ot=G.format,q=F.doc,B=M.distribute,I=it.clamp,O=it.css,g=it.discardElement,f=it.extend,y=it.fireEvent,C=it.isArray,v=it.isNumber,x=it.isString,w=it.merge,T=it.pick,A=it.splat,j=it.syncTimeout;return function(){function k(r,p){this.allowShared=!0,this.container=void 0,this.crosshairs=[],this.distance=0,this.isHidden=!0,this.isSticky=!1,this.now={},this.options={},this.outside=!1,this.chart=r,this.init(r,p)}return k.prototype.applyFilter=function(){var r=this.chart;r.renderer.definition({tagName:"filter",attributes:{id:"drop-shadow-"+r.index,opacity:.5},children:[{tagName:"feGaussianBlur",attributes:{in:"SourceAlpha",stdDeviation:1}},{tagName:"feOffset",attributes:{dx:1,dy:1}},{tagName:"feComponentTransfer",children:[{tagName:"feFuncA",attributes:{type:"linear",slope:.3}}]},{tagName:"feMerge",children:[{tagName:"feMergeNode"},{tagName:"feMergeNode",attributes:{in:"SourceGraphic"}}]}]})},k.prototype.bodyFormatter=function(r){return r.map(function(p){var o=p.series.tooltipOptions;return(o[(p.point.formatPrefix||"point")+"Formatter"]||p.point.tooltipFormatter).call(p.point,o[(p.point.formatPrefix||"point")+"Format"]||"")})},k.prototype.cleanSplit=function(r){this.chart.series.forEach(function(p){var o=p&&p.tt;o&&(!o.isActive||r?p.tt=o.destroy():o.isActive=!1)})},k.prototype.defaultFormatter=function(r){var p=this.points||A(this),o=[r.tooltipFooterHeaderFormatter(p[0])];return(o=o.concat(r.bodyFormatter(p))).push(r.tooltipFooterHeaderFormatter(p[0],!0)),o},k.prototype.destroy=function(){this.label&&(this.label=this.label.destroy()),this.split&&this.tt&&(this.cleanSplit(!0),this.tt=this.tt.destroy()),this.renderer&&(this.renderer=this.renderer.destroy(),g(this.container)),it.clearTimeout(this.hideTimer),it.clearTimeout(this.tooltipTimeout)},k.prototype.getAnchor=function(r,p){var o=this.chart,h=o.pointer,t=o.inverted,c=o.plotTop;if(o=o.plotLeft,(r=A(r))[0].series&&r[0].series.yAxis&&!r[0].series.yAxis.options.reversedStacks&&(r=r.slice().reverse()),this.followPointer&&p)typeof p.chartX>"u"&&(p=h.normalize(p)),r=[p.chartX-o,p.chartY-c];else if(r[0].tooltipPos)r=r[0].tooltipPos;else{var i=0,s=0;r.forEach(function(d){(d=d.pos(!0))&&(i+=d[0],s+=d[1])}),i/=r.length,s/=r.length,this.shared&&1<r.length&&p&&(t?i=p.chartX:s=p.chartY),r=[i-o,s-c]}return r.map(Math.round)},k.prototype.getClassName=function(r,p,o){var h=r.series,t=h.options;return[this.options.className,"highcharts-label",o&&"highcharts-tooltip-header",p?"highcharts-tooltip-box":"highcharts-tooltip",!o&&"highcharts-color-"+T(r.colorIndex,h.colorIndex),t&&t.className].filter(x).join(" ")},k.prototype.getLabel=function(){var c,r=this,p=this.chart.styledMode,o=this.options,h=this.split&&this.allowShared,t=o.style.pointerEvents||(this.shouldStickOnContact()?"auto":"none"),i=this.chart.renderer;if(r.label){var s=!r.label.hasClass("highcharts-label");(h&&!s||!h&&s)&&r.destroy()}if(!this.label){if(this.outside){s=this.chart.options.chart.style;var d=rt.getRendererType();this.container=c=F.doc.createElement("div"),c.className="highcharts-tooltip-container",O(c,{position:"absolute",top:"1px",pointerEvents:t,zIndex:Math.max(this.options.style.zIndex||0,(s&&s.zIndex||0)+3)}),F.doc.body.appendChild(c),this.renderer=i=new d(c,0,0,s,void 0,void 0,i.styledMode)}if(h?this.label=i.g("tooltip"):(this.label=i.label("",0,0,o.shape,void 0,void 0,o.useHTML,void 0,"tooltip").attr({padding:o.padding,r:o.borderRadius}),p||this.label.attr({fill:o.backgroundColor,"stroke-width":o.borderWidth}).css(o.style).css({pointerEvents:t}).shadow(o.shadow)),p&&o.shadow&&(this.applyFilter(),this.label.attr({filter:"url(#drop-shadow-"+this.chart.index+")"})),r.outside&&!r.split){var a=this.label,m=a.xSetter,L=a.ySetter;a.xSetter=function(Y){m.call(a,r.distance),c.style.left=Y+"px"},a.ySetter=function(Y){L.call(a,r.distance),c.style.top=Y+"px"}}this.label.attr({zIndex:8}).add()}return this.label},k.prototype.getPosition=function(r,p,o){var e,h=this.chart,t=this.distance,c={},i=h.inverted&&o.h||0,s=this.outside,d=s?q.documentElement.clientWidth-2*t:h.chartWidth,a=s?Math.max(q.body.scrollHeight,q.documentElement.scrollHeight,q.body.offsetHeight,q.documentElement.offsetHeight,q.documentElement.clientHeight):h.chartHeight,m=h.pointer.getChartPosition(),L=function(S){var u="x"===S;return[S,u?d:a,u?r:p].concat(s?[u?r*m.scaleX:p*m.scaleY,u?m.left-t+(o.plotX+h.plotLeft)*m.scaleX:m.top-t+(o.plotY+h.plotTop)*m.scaleY,0,u?d:a]:[u?r:p,u?o.plotX+h.plotLeft:o.plotY+h.plotTop,u?h.plotLeft:h.plotTop,u?h.plotLeft+h.plotWidth:h.plotTop+h.plotHeight])},Y=L("y"),_=L("x");L=!!o.negative,!h.polar&&h.hoverSeries&&h.hoverSeries.yAxis&&h.hoverSeries.yAxis.reversed&&(L=!L);var l=!this.followPointer&&T(o.ttBelow,!h.inverted===L),P=function(S,u,z,E,N,W,Z){var $=s?"y"===S?t*m.scaleY:t*m.scaleX:t,nt=(z-E)/2,J=E<N-t,K=N+t+E<u,X=N-$-z+nt;if(N=N+$-nt,l&&K)c[S]=N;else if(!l&&J)c[S]=X;else if(J)c[S]=Math.min(Z-E,0>X-i?X:X-i);else{if(!K)return!1;c[S]=Math.max(W,N+i+z>u?N:N+i)}},D=function(S,u,z,E,N){var W;return N<t||N>u-t?W=!1:c[S]=N<z/2?1:N>u-E/2?u-E-2:N-z/2,W},b=function(S){var u=Y;Y=_,_=u,e=S},n=function(){!1!==P.apply(0,Y)?!1!==D.apply(0,_)||e||(b(!0),n()):e?c.x=c.y=0:(b(!0),n())};return(h.inverted||1<this.len)&&b(),n(),c},k.prototype.hide=function(r){var p=this;it.clearTimeout(this.hideTimer),r=T(r,this.options.hideDelay),this.isHidden||(this.hideTimer=j(function(){p.getLabel().fadeOut(r&&void 0),p.isHidden=!0},r))},k.prototype.init=function(r,p){this.chart=r,this.options=p,this.crosshairs=[],this.now={x:0,y:0},this.isHidden=!0,this.split=p.split&&!r.inverted&&!r.polar,this.shared=p.shared||this.split,this.outside=T(p.outside,!(!r.scrollablePixelsX&&!r.scrollablePixelsY))},k.prototype.shouldStickOnContact=function(r){return!(this.followPointer||!this.options.stickOnContact||r&&!this.chart.pointer.inClass(r.target,"highcharts-tooltip"))},k.prototype.move=function(r,p,o,h){var t=this,c=t.now,i=!1!==t.options.animation&&!t.isHidden&&(1<Math.abs(r-c.x)||1<Math.abs(p-c.y)),s=t.followPointer||1<t.len;f(c,{x:i?(2*c.x+r)/3:r,y:i?(c.y+p)/2:p,anchorX:s?void 0:i?(2*c.anchorX+o)/3:o,anchorY:s?void 0:i?(c.anchorY+h)/2:h}),t.getLabel().attr(c),t.drawTracker(),i&&(it.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){t&&t.move(r,p,o,h)},32))},k.prototype.refresh=function(r,p){var o=this.chart,h=this.options,t=o.pointer,c=A(r),i=c[0],s=[],d=h.formatter||this.defaultFormatter,a=this.shared,m=o.styledMode,L={};if(h.enabled&&i.series){it.clearTimeout(this.hideTimer),this.allowShared=!(!C(r)&&r.series&&r.series.noSharedTooltip),this.followPointer=!this.split&&i.series.tooltipOptions.followPointer;var Y=(r=this.getAnchor(r,p))[0],_=r[1];if(a&&this.allowShared?(t.applyInactiveState(c),c.forEach(function(P){P.setState("hover"),s.push(P.getLabelConfig())}),(L={x:i.category,y:i.y}).points=s):L=i.getLabelConfig(),this.len=s.length,d=d.call(L,this),this.distance=T((a=i.series).tooltipOptions.distance,16),!1===d)this.hide();else{if(this.split&&this.allowShared)this.renderSplit(d,c);else{var e=Y,l=_;if(p&&t.isDirectTouch&&(e=p.chartX-o.plotLeft,l=p.chartY-o.plotTop),!o.polar&&!1!==a.options.clip&&!c.some(function(P){return t.isDirectTouch||P.series.shouldShowTooltip(e,l)}))return void this.hide();p=this.getLabel(),h.style.width&&!m||p.css({width:o.spacingBox.width+"px"}),p.attr({text:d&&d.join?d.join(""):d}),p.addClass(this.getClassName(i),!0),m||p.attr({stroke:h.borderColor||i.color||a.color||"#666666"}),this.updatePosition({plotX:Y,plotY:_,negative:i.negative,ttBelow:i.ttBelow,h:r[2]||0})}this.isHidden&&this.label&&this.label.attr({opacity:1}).show(),this.isHidden=!1}y(this,"refresh")}},k.prototype.renderSplit=function(r,p){function o(K,X,et,V,R){return void 0===R&&(R=!0),et?(X=E?0:$,K=I(K-V/2,S.left,S.right-V-(h.outside?N:0))):(X-=W,K=I(K=R?K-V-D:K+D,R?K:S.left,S.right)),{x:K,y:X}}var h=this,t=h.chart,c=h.chart,i=c.chartWidth,s=c.chartHeight,d=c.plotHeight,a=c.plotLeft,m=c.plotTop,L=c.pointer,Y=c.scrollablePixelsY;Y=void 0===Y?0:Y;var e=c.scrollingContainer,l=(e=void 0===e?{scrollLeft:0,scrollTop:0}:e).scrollLeft;e=e.scrollTop;var P=c.styledMode,D=h.distance,b=h.options,n=h.options.positioner,S=h.outside&&"number"!=typeof c.scrollablePixelsX?q.documentElement.getBoundingClientRect():{left:l,right:l+i,top:e,bottom:e+s},u=h.getLabel(),z=this.renderer||t.renderer,E=!(!t.xAxis[0]||!t.xAxis[0].opposite),N=(t=L.getChartPosition()).left;t=t.top;var W=m+e,Z=0,$=d-Y;x(r)&&(r=[!1,r]),r=r.slice(0,p.length+1).reduce(function(K,X,et){if(!1!==X&&""!==X){var V=(et=p[et-1]||{isHeader:!0,plotX:p[0].plotX,plotY:d,series:{}}).isHeader,R=V?h:et.series;X=X.toString();var H=R.tt,Q=et.isHeader,tt=et.series;H||(H={padding:b.padding,r:b.borderRadius},P||(H.fill=b.backgroundColor,H["stroke-width"]=b.borderWidth),H=z.label("",0,0,b[Q?"headerShape":"shape"],void 0,void 0,b.useHTML).addClass(h.getClassName(et,!0,Q)).attr(H).add(u)),H.isActive=!0,H.attr({text:X}),P||H.css(b.style).shadow(b.shadow).attr({stroke:b.borderColor||et.color||tt.color||"#333333"}),X=(Q=(R=R.tt=H).getBBox()).width+R.strokeWidth(),V&&($+=Z=Q.height,E&&(W-=Z)),tt=void 0===(tt=et.plotX)?0:tt,H=void 0===(H=et.plotY)?0:H;var st=et.series;if(et.isHeader){tt=a+tt;var at=m+d/2}else{var ht=st.xAxis,dt=st.yAxis;tt=ht.pos+I(tt,-D,ht.len+D),st.shouldShowTooltip(0,dt.pos-m+H,{ignoreX:!0})&&(at=dt.pos+H)}tt=I(tt,S.left-D,S.right+D),"number"==typeof at?(Q=Q.height+1,H=n?n.call(h,X,Q,et):o(tt,at,V,X),K.push({align:n?0:void 0,anchorX:tt,anchorY:at,boxWidth:X,point:et,rank:T(H.rank,V?1:0),size:Q,target:H.y,tt:R,x:H.x})):R.isActive=!1}return K},[]),!n&&r.some(function(K){var X=(h.outside?N:0)+K.anchorX;return X<S.left&&X+K.boxWidth<S.right||X<N-S.left+K.boxWidth&&S.right-X>X})&&(r=r.map(function(K){var X=o(K.anchorX,K.anchorY,K.point.isHeader,K.boxWidth,!1);return f(K,{target:X.y,x:X.x})})),h.cleanSplit(),B(r,$);var nt=N,J=N;r.forEach(function(K){var X=K.x,et=K.boxWidth;(K=K.isHeader)||(h.outside&&N+X<nt&&(nt=N+X),!K&&h.outside&&nt+et>J&&(J=N+X))}),r.forEach(function(K){var X=K.x,et=K.anchorX,V=K.pos,R=K.point.isHeader;if(V={visibility:typeof V>"u"?"hidden":"inherit",x:X,y:(V||0)+W,anchorX:et,anchorY:K.anchorY},h.outside&&X<et){var H=N-nt;0<H&&(R||(V.x=X+H,V.anchorX=et+H),R&&(V.x=(J-nt)/2,V.anchorX=et+H))}K.tt.attr(V)}),r=h.container,Y=h.renderer,h.outside&&r&&Y&&(c=u.getBBox(),Y.setSize(c.width+c.x,c.height+c.y,!1),r.style.left=nt+"px",r.style.top=t+"px")},k.prototype.drawTracker=function(){if(this.shouldStickOnContact()){var r=this.chart,p=this.label,o=this.shared?r.hoverPoints:r.hoverPoint;if(p&&o){var h={x:0,y:0,width:0,height:0};o=this.getAnchor(o);var t=p.getBBox();o[0]+=r.plotLeft-p.translateX,o[1]+=r.plotTop-p.translateY,h.x=Math.min(0,o[0]),h.y=Math.min(0,o[1]),h.width=0>o[0]?Math.max(Math.abs(o[0]),t.width-o[0]):Math.max(Math.abs(o[0]),t.width),h.height=0>o[1]?Math.max(Math.abs(o[1]),t.height-Math.abs(o[1])):Math.max(Math.abs(o[1]),t.height),this.tracker?this.tracker.attr(h):(this.tracker=p.renderer.rect(h).addClass("highcharts-tracker").add(p),r.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}}else this.tracker&&this.tracker.destroy()},k.prototype.styledModeFormat=function(r){return r.replace('style="font-size: 10px"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex} {series.options.className} {point.options.className}"')},k.prototype.tooltipFooterHeaderFormatter=function(r,p){var o=r.series,h=o.tooltipOptions,t=o.xAxis,c=t&&t.dateTime,i=h.xDateFormat,s=h[p?"footerFormat":"headerFormat"];return y(this,"headerFormatter",t={isFooter:p,labelConfig:r},function(d){c&&!i&&v(r.key)&&(i=c.getXDateFormat(r.key,h.dateTimeLabelFormats)),c&&i&&(r.point&&r.point.tooltipDateKeys||["key"]).forEach(function(a){s=s.replace("{point."+a+"}","{point."+a+":"+i+"}")}),o.chart.styledMode&&(s=this.styledModeFormat(s)),d.text=ot(s,{point:r,series:o},this.chart)}),t.text},k.prototype.update=function(r){this.destroy(),w(!0,this.chart.options.tooltip.userOptions,r),this.init(this.chart,w(!0,this.options,r))},k.prototype.updatePosition=function(r){var p=this.chart,o=this.distance,h=this.options,t=p.pointer,c=this.getLabel(),i=t.getChartPosition();t=i.left;var s=i.top,d=i.scaleX;i=i.scaleY;var a=(h.positioner||this.getPosition).call(this,c.width,c.height,r),m=(r.plotX||0)+p.plotLeft;r=(r.plotY||0)+p.plotTop,this.outside&&(h.positioner&&(a.x+=t-o,a.y+=s-o),this.renderer.setSize(c.width+(o=h.borderWidth+2*o),c.height+o,!1),(1!==d||1!==i)&&(O(this.container,{transform:"scale(".concat(d,", ").concat(i,")")}),m*=d,r*=i),m+=t-a.x,r+=s-a.y),this.move(Math.round(a.x),Math.round(a.y||0),m,r)},k}()}),ct(U,"Core/Series/Point.js",[U["Core/Renderer/HTML/AST.js"],U["Core/Animation/AnimationUtilities.js"],U["Core/Defaults.js"],U["Core/FormatUtilities.js"],U["Core/Utilities.js"]],function(G,F,M,rt,it){var ot=F.animObject,q=M.defaultOptions,B=rt.format,I=it.addEvent,O=it.defined,g=it.erase,f=it.extend,y=it.fireEvent,C=it.getNestedProperty,v=it.isArray,x=it.isFunction,w=it.isNumber,T=it.isObject,A=it.merge,j=it.objectEach,k=it.pick,r=it.syncTimeout,p=it.removeEvent,o=it.uniqueKey;return function(){function h(){this.category=void 0,this.formatPrefix="point",this.id=void 0,this.isNull=!1,this.percentage=this.options=this.name=void 0,this.selected=!1,this.total=this.shapeArgs=this.series=void 0,this.visible=!0,this.x=void 0}return h.prototype.animateBeforeDestroy=function(){var t=this,c={x:t.startXPos,opacity:0},i=t.getGraphicalProps();i.singular.forEach(function(s){t[s]=t[s].animate("dataLabel"===s?{x:t[s].startXPos,y:t[s].startYPos,opacity:0}:c)}),i.plural.forEach(function(s){t[s].forEach(function(d){d.element&&d.animate(f({x:t.startXPos},d.startYPos?{x:d.startXPos,y:d.startYPos}:{}))})})},h.prototype.applyOptions=function(t,c){var i=this.series,s=i.options.pointValKey||i.pointValKey;return t=h.prototype.optionsToObject.call(this,t),f(this,t),this.options=this.options?f(this.options,t):t,t.group&&delete this.group,t.dataLabels&&delete this.dataLabels,s&&(this.y=h.prototype.getNestedProperty.call(this,s)),this.formatPrefix=(this.isNull=this.isValid&&!this.isValid())?"null":"point",this.selected&&(this.state="select"),"name"in this&&typeof c>"u"&&i.xAxis&&i.xAxis.hasNames&&(this.x=i.xAxis.nameToX(this)),typeof this.x>"u"&&i?this.x=typeof c>"u"?i.autoIncrement():c:w(t.x)&&i.options.relativeXValue&&(this.x=i.autoIncrement(t.x)),this},h.prototype.destroy=function(){function t(){for(m in(c.graphic||c.graphics||c.dataLabel||c.dataLabels)&&(p(c),c.destroyElements()),c)c[m]=null}var c=this,i=c.series,s=i.chart;i=i.options.dataSorting;var m,d=s.hoverPoints,a=ot(c.series.chart.renderer.globalAnimation);c.legendItem&&s.legend.destroyItem(c),d&&(c.setState(),g(d,c),d.length||(s.hoverPoints=null)),c===s.hoverPoint&&c.onMouseOut(),i&&i.enabled?(this.animateBeforeDestroy(),r(t,a.duration)):t(),s.pointCount--},h.prototype.destroyElements=function(t){var c=this;(t=c.getGraphicalProps(t)).singular.forEach(function(i){c[i]=c[i].destroy()}),t.plural.forEach(function(i){c[i].forEach(function(s){s&&s.element&&s.destroy()}),delete c[i]})},h.prototype.firePointEvent=function(t,c,i){var s=this,d=this.series.options;(d.point.events[t]||s.options&&s.options.events&&s.options.events[t])&&s.importEvents(),"click"===t&&d.allowPointSelect&&(i=function(a){s.select&&s.select(null,a.ctrlKey||a.metaKey||a.shiftKey)}),y(s,t,c,i)},h.prototype.getClassName=function(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+(typeof this.colorIndex<"u"?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")},h.prototype.getGraphicalProps=function(t){var d,c=this,i=[],s={singular:[],plural:[]};for((t=t||{graphic:1,dataLabel:1}).graphic&&i.push("graphic","shadowGroup"),t.dataLabel&&i.push("dataLabel","dataLabelPath","dataLabelUpper","connector"),d=i.length;d--;){var a=i[d];c[a]&&s.singular.push(a)}return["graphic","dataLabel","connector"].forEach(function(m){var L=m+"s";t[m]&&c[L]&&s.plural.push(L)}),s},h.prototype.getLabelConfig=function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},h.prototype.getNestedProperty=function(t){if(t)return 0===t.indexOf("custom.")?C(t,this.options):this[t]},h.prototype.getZone=function(){var t=this.series,c=t.zones;t=t.zoneAxis||"y";var i,s=0;for(i=c[s];this[t]>=i.value;)i=c[++s];return this.nonZonedColor||(this.nonZonedColor=this.color),this.color=i&&i.color&&!this.options.color?i.color:this.nonZonedColor,i},h.prototype.hasNewShapeType=function(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType},h.prototype.init=function(t,c,i){return this.series=t,this.applyOptions(c,i),this.id=O(this.id)?this.id:o(),this.resolveColor(),t.chart.pointCount++,y(this,"afterInit"),this},h.prototype.isValid=function(){return null!==this.x&&w(this.y)},h.prototype.optionsToObject=function(t){var c=this.series,i=c.options.keys,s=i||c.pointArrayMap||["y"],d=s.length,a={},m=0,L=0;if(w(t)||null===t)a[s[0]]=t;else if(v(t))for(!i&&t.length>d&&("string"==(c=typeof t[0])?a.name=t[0]:"number"===c&&(a.x=t[0]),m++);L<d;)i&&typeof t[m]>"u"||(0<s[L].indexOf(".")?h.prototype.setNestedProperty(a,t[m],s[L]):a[s[L]]=t[m]),m++,L++;else"object"==typeof t&&(a=t,t.dataLabels&&(c._hasPointLabels=!0),t.marker&&(c._hasPointMarkers=!0));return a},h.prototype.pos=function(t,c){void 0===c&&(c=this.plotY);var i=this.plotX,s=this.series,d=s.chart,a=s.xAxis;s=s.yAxis;var m=0,L=0;if(w(i)&&w(c))return t&&(m=a?a.pos:d.plotLeft,L=s?s.pos:d.plotTop),d.inverted&&a&&s?[s.len-c+L,a.len-i+m]:[i+m,c+L]},h.prototype.resolveColor=function(){var t=this.series,c=t.chart.styledMode,i=t.chart.options.chart.colorCount;if(delete this.nonZonedColor,t.options.colorByPoint){if(!c){var s=(i=t.options.colors||t.chart.options.colors)[t.colorCounter];i=i.length}c=t.colorCounter,t.colorCounter++,t.colorCounter===i&&(t.colorCounter=0)}else c||(s=t.color),c=t.colorIndex;this.colorIndex=k(this.options.colorIndex,c),this.color=k(this.options.color,s)},h.prototype.setNestedProperty=function(t,c,i){return i.split(".").reduce(function(s,d,a,m){return s[d]=m.length-1===a?c:T(s[d],!0)?s[d]:{},s[d]},t),t},h.prototype.shouldDraw=function(){return!this.isNull},h.prototype.tooltipFormatter=function(t){var c=this.series,i=c.tooltipOptions,s=k(i.valueDecimals,""),d=i.valuePrefix||"",a=i.valueSuffix||"";return c.chart.styledMode&&(t=c.chart.tooltip.styledModeFormat(t)),(c.pointArrayMap||["y"]).forEach(function(m){m="{point."+m,(d||a)&&(t=t.replace(RegExp(m+"}","g"),d+m+"}"+a)),t=t.replace(RegExp(m+"}","g"),m+":,."+s+"f}")}),B(t,{point:this,series:this.series},c.chart)},h.prototype.update=function(t,c,i,s){function d(){a.applyOptions(t);var l=L&&a.hasMockGraphic;l=null===a.y?!l:l,L&&l&&(a.graphic=L.destroy(),delete a.hasMockGraphic),T(t,!0)&&(L&&L.element&&t&&t.marker&&typeof t.marker.symbol<"u"&&(a.graphic=L.destroy()),t&&t.dataLabels&&a.dataLabel&&(a.dataLabel=a.dataLabel.destroy()),a.connector&&(a.connector=a.connector.destroy())),m.updateParallelArrays(a,e=a.index),_.data[e]=T(_.data[e],!0)||T(t,!0)?a.options:k(t,_.data[e]),m.isDirty=m.isDirtyData=!0,!m.fixedBox&&m.hasCartesianSeries&&(Y.isDirtyBox=!0),"point"===_.legendType&&(Y.isDirtyLegend=!0),c&&Y.redraw(i)}var e,a=this,m=a.series,L=a.graphic,Y=m.chart,_=m.options;c=k(c,!0),!1===s?d():a.firePointEvent("update",{options:t},d)},h.prototype.remove=function(t,c){this.series.removePoint(this.series.data.indexOf(this),t,c)},h.prototype.select=function(t,c){var i=this,s=i.series,d=s.chart;this.selectedStaging=t=k(t,!i.selected),i.firePointEvent(t?"select":"unselect",{accumulate:c},function(){i.selected=i.options.selected=t,s.options.data[s.data.indexOf(i)]=i.options,i.setState(t&&"select"),c||d.getSelectedPoints().forEach(function(a){var m=a.series;a.selected&&a!==i&&(a.selected=a.options.selected=!1,m.options.data[m.data.indexOf(a)]=a.options,a.setState(d.hoverPoints&&m.options.inactiveOtherPoints?"inactive":""),a.firePointEvent("unselect"))})}),delete this.selectedStaging},h.prototype.onMouseOver=function(t){var c=this.series.chart,i=c.pointer;t=t?i.normalize(t):i.getChartCoordinatesFromPoint(this,c.inverted),i.runPointActions(t,this)},h.prototype.onMouseOut=function(){var t=this.series.chart;this.firePointEvent("mouseOut"),this.series.options.inactiveOtherPoints||(t.hoverPoints||[]).forEach(function(c){c.setState()}),t.hoverPoints=t.hoverPoint=null},h.prototype.importEvents=function(){if(!this.hasImportedEvents){var t=this,c=A(t.series.options.point,t.options).events;t.events=c,j(c,function(i,s){x(i)&&I(t,s,i)}),this.hasImportedEvents=!0}},h.prototype.setState=function(t,c){var D,i=this.series,s=this.state,d=i.options.states[t||"normal"]||{},a=q.plotOptions[i.type].marker&&i.options.marker,L=a&&a.states&&a.states[t||"normal"]||{},_=this.marker||{},e=i.chart,l=a&&i.markerAttribs,P=i.halo,b=i.stateMarkerGraphic;if(!((t=t||"")===this.state&&!c||this.selected&&"select"!==t||!1===d.enabled||t&&(!1===L.enabled||a&&!1===a.enabled&&!1===L.enabled)||t&&_.states&&_.states[t]&&!1===_.states[t].enabled)){if(this.state=t,l&&(D=i.markerAttribs(this,t)),this.graphic&&!this.hasMockGraphic){if(s&&this.graphic.removeClass("highcharts-point-"+s),t&&this.graphic.addClass("highcharts-point-"+t),!e.styledMode){s=i.pointAttribs(this,t);var n=k(e.options.chart.animation,d.animation),S=s.opacity;i.options.inactiveOtherPoints&&w(S)&&((this.dataLabels||[]).forEach(function(u){u&&!u.hasClass("highcharts-data-label-hidden")&&u.animate({opacity:S},n)}),this.connector&&this.connector.animate({opacity:S},n)),this.graphic.animate(s,n)}D&&this.graphic.animate(D,k(e.options.chart.animation,L.animation,a.animation)),b&&b.hide()}else t&&L&&(a=_.symbol||i.symbol,b&&b.currentSymbol!==a&&(b=b.destroy()),D&&(b?b[c?"animate":"attr"]({x:D.x,y:D.y}):a&&(i.stateMarkerGraphic=b=e.renderer.symbol(a,D.x,D.y,D.width,D.height).add(i.markerGroup),b.currentSymbol=a)),!e.styledMode&&b&&"inactive"!==this.state&&b.attr(i.pointAttribs(this,t))),b&&(b[t&&this.isInside?"show":"hide"](),b.element.point=this,b.addClass(this.getClassName(),!0));D=(b=this.graphic||b)&&b.visibility||"inherit",(d=d.halo)&&d.size&&b&&"hidden"!==D&&!this.isCluster?(P||(i.halo=P=e.renderer.path().add(b.parentGroup)),P.show()[c?"animate":"attr"]({d:this.haloPath(d.size)}),P.attr({class:"highcharts-halo highcharts-color-"+k(this.colorIndex,i.colorIndex)+(this.className?" "+this.className:""),visibility:D,zIndex:-1}),P.point=this,e.styledMode||P.attr(f({fill:this.color||i.color,"fill-opacity":d.opacity},G.filterUserAttributes(d.attributes||{})))):P&&P.point&&P.point.haloPath&&P.animate({d:P.point.haloPath(0)},null,P.hide),y(this,"afterSetState",{state:t})}},h.prototype.haloPath=function(t){var c=this.pos();return c?this.series.chart.renderer.symbols.circle(Math.floor(c[0])-t,c[1]-t,2*t,2*t):[]},h}()}),ct(U,"Core/Pointer.js",[U["Core/Color/Color.js"],U["Core/Globals.js"],U["Core/Tooltip.js"],U["Core/Utilities.js"]],function(G,F,M,rt){var it=G.parse,ot=F.charts,q=F.noop,B=rt.addEvent,I=rt.attr,O=rt.css,g=rt.defined,f=rt.extend,y=rt.find,C=rt.fireEvent,v=rt.isNumber,x=rt.isObject,w=rt.objectEach,T=rt.offset,A=rt.pick,j=rt.splat;return function(){function k(r,p){this.lastValidTouch={},this.pinchDown=[],this.runChartClick=!1,this.eventsToUnbind=[],this.chart=r,this.hasDragged=!1,this.options=p,this.init(r,p)}return k.prototype.applyInactiveState=function(r){var o,p=[];(r||[]).forEach(function(h){p.push(o=h.series),o.linkedParent&&p.push(o.linkedParent),o.linkedSeries&&(p=p.concat(o.linkedSeries)),o.navigatorSeries&&p.push(o.navigatorSeries)}),this.chart.series.forEach(function(h){-1===p.indexOf(h)?h.setState("inactive",!0):h.options.inactiveOtherPoints&&h.setAllPointsToState("inactive")})},k.prototype.destroy=function(){var r=this;this.eventsToUnbind.forEach(function(p){return p()}),this.eventsToUnbind=[],F.chartCount||(k.unbindDocumentMouseUp&&(k.unbindDocumentMouseUp=k.unbindDocumentMouseUp()),k.unbindDocumentTouchEnd&&(k.unbindDocumentTouchEnd=k.unbindDocumentTouchEnd())),clearInterval(r.tooltipTimeout),w(r,function(p,o){r[o]=void 0})},k.prototype.getSelectionMarkerAttrs=function(r,p){var o=this,h={args:{chartX:r,chartY:p},attrs:{},shapeType:"rect"};return C(this,"getSelectionMarkerAttrs",h,function(t){var c=o.chart,i=o.mouseDownX;i=void 0===i?0:i;var s=o.mouseDownY;s=void 0===s?0:s;var d=o.zoomHor,a=o.zoomVert;(t=t.attrs).x=c.plotLeft,t.y=c.plotTop,t.width=d?1:c.plotWidth,t.height=a?1:c.plotHeight,d&&(c=r-i,t.width=Math.abs(c),t.x=(0<c?0:c)+i),a&&(c=p-s,t.height=Math.abs(c),t.y=(0<c?0:c)+s)}),h},k.prototype.drag=function(r){var p=this.chart,o=p.options.chart,h=p.plotLeft,t=p.plotTop,c=p.plotWidth,i=p.plotHeight,s=this.mouseDownX||0,d=this.mouseDownY||0,a=x(o.panning)?o.panning&&o.panning.enabled:o.panning,m=o.panKey&&r[o.panKey+"Key"],L=r.chartX,Y=r.chartY,_=this.selectionMarker;_&&_.touch||(L<h?L=h:L>h+c&&(L=h+c),Y<t?Y=t:Y>t+i&&(Y=t+i),this.hasDragged=Math.sqrt(Math.pow(s-L,2)+Math.pow(d-Y,2)),10<this.hasDragged&&(h=p.isInsidePlot(s-h,d-t,{visiblePlotOnly:!0}),L=(Y=this.getSelectionMarkerAttrs(L,Y)).shapeType,Y=Y.attrs,!p.hasCartesianSeries&&!p.mapView||!this.zoomX&&!this.zoomY||!h||m||_||(this.selectionMarker=_=p.renderer[L](),_.attr({class:"highcharts-selection-marker",zIndex:7}).add(),p.styledMode||_.attr({fill:o.selectionMarkerFill||it("#335cad").setOpacity(.25).get()})),_&&_.attr(Y),h&&!_&&a&&p.pan(r,o.panning)))},k.prototype.dragStart=function(r){var p=this.chart;p.mouseIsDown=r.type,p.cancelClick=!1,p.mouseDownX=this.mouseDownX=r.chartX,p.mouseDownY=this.mouseDownY=r.chartY},k.prototype.getSelectionBox=function(r){var p={args:{marker:r},result:{}};return C(this,"getSelectionBox",p,function(o){o.result={x:r.attr?+r.attr("x"):r.x,y:r.attr?+r.attr("y"):r.y,width:r.attr?r.attr("width"):r.width,height:r.attr?r.attr("height"):r.height}}),p.result},k.prototype.drop=function(r){var p=this,o=this.chart,h=this.hasPinched;if(this.selectionMarker){var t=this.getSelectionBox(this.selectionMarker),c=t.x,i=t.y,s=t.width,d=t.height,a={originalEvent:r,xAxis:[],yAxis:[],x:c,y:i,width:s,height:d},m=!!o.mapView;(this.hasDragged||h)&&(o.axes.forEach(function(L){if(L.zoomEnabled&&g(L.min)&&(h||p[{xAxis:"zoomX",yAxis:"zoomY"}[L.coll]])&&v(c)&&v(i)&&v(s)&&v(d)){var Y=L.horiz,_="touchend"===r.type?L.minPixelPadding:0,e=L.toValue((Y?c:i)+_);Y=L.toValue((Y?c+s:i+d)-_),a[L.coll].push({axis:L,min:Math.min(e,Y),max:Math.max(e,Y)}),m=!0}}),m&&C(o,"selection",a,function(L){o.zoom(f(L,h?{animation:!1}:null))})),v(o.index)&&(this.selectionMarker=this.selectionMarker.destroy()),h&&this.scaleGroups()}o&&v(o.index)&&(O(o.container,{cursor:o._cursor}),o.cancelClick=10<this.hasDragged,o.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])},k.prototype.findNearestKDPoint=function(r,p,o){var h;return r.forEach(function(t){var c=!(t.noSharedTooltip&&p)&&0>t.options.findNearestPointBy.indexOf("y");if(t=t.searchPoint(o,c),(c=x(t,!0)&&t.series)&&!(c=!x(h,!0))){var i=h.dist-t.dist,s=(t.series.group&&t.series.group.zIndex)-(h.series.group&&h.series.group.zIndex);c=0<(0!=(c=h.distX-t.distX)&&p?c:0!==i?i:0!==s?s:h.series.index>t.series.index?-1:1)}c&&(h=t)}),h},k.prototype.getChartCoordinatesFromPoint=function(r,p){var o=r.series,h=o.xAxis;o=o.yAxis;var t=r.shapeArgs;if(h&&o){var c=A(r.clientX,r.plotX),i=r.plotY||0;return r.isNode&&t&&v(t.x)&&v(t.y)&&(c=t.x,i=t.y),p?{chartX:o.len+o.pos-i,chartY:h.len+h.pos-c}:{chartX:c+h.pos,chartY:i+o.pos}}if(t&&t.x&&t.y)return{chartX:t.x,chartY:t.y}},k.prototype.getChartPosition=function(){if(this.chartPosition)return this.chartPosition;var r=this.chart.container,p=T(r);this.chartPosition={left:p.left,top:p.top,scaleX:1,scaleY:1};var o=r.offsetWidth;return r=r.offsetHeight,2<o&&2<r&&(this.chartPosition.scaleX=p.width/o,this.chartPosition.scaleY=p.height/r),this.chartPosition},k.prototype.getCoordinates=function(r){var p={xAxis:[],yAxis:[]};return this.chart.axes.forEach(function(o){p[o.isXAxis?"xAxis":"yAxis"].push({axis:o,value:o.toValue(r[o.horiz?"chartX":"chartY"])})}),p},k.prototype.getHoverData=function(r,p,o,h,t,c){var i=[];h=!(!h||!r);var s=function(L){return L.visible&&!(!t&&L.directTouch)&&A(L.options.enableMouseTracking,!0)},d={chartX:c?c.chartX:void 0,chartY:c?c.chartY:void 0,shared:t};C(this,"beforeGetHoverData",d);var a=p&&!p.stickyTracking?[p]:o.filter(function(L){return L.stickyTracking&&(d.filter||s)(L)}),m=h||!c?r:this.findNearestKDPoint(a,t,c);return p=m&&m.series,m&&(t&&!p.noSharedTooltip?(a=o.filter(function(L){return d.filter?d.filter(L):s(L)&&!L.noSharedTooltip})).forEach(function(L){var Y=y(L.points,function(_){return _.x===m.x&&!_.isNull});x(Y)&&(L.boosted&&L.boost&&(Y=L.boost.getPoint(Y)),i.push(Y))}):i.push(m)),C(this,"afterGetHoverData",d={hoverPoint:m}),{hoverPoint:d.hoverPoint,hoverSeries:p,hoverPoints:i}},k.prototype.getPointFromEvent=function(r){r=r.target;for(var p;r&&!p;)p=r.point,r=r.parentNode;return p},k.prototype.onTrackerMouseOut=function(r){r=r.relatedTarget||r.toElement;var p=this.chart.hoverSeries;this.isDirectTouch=!1,!p||!r||p.stickyTracking||this.inClass(r,"highcharts-tooltip")||this.inClass(r,"highcharts-series-"+p.index)&&this.inClass(r,"highcharts-tracker")||p.onMouseOut()},k.prototype.inClass=function(r,p){for(var o;r;){if(o=I(r,"class")){if(-1!==o.indexOf(p))return!0;if(-1!==o.indexOf("highcharts-container"))return!1}r=r.parentElement}},k.prototype.init=function(r,p){this.options=p,this.chart=r,this.runChartClick=!(!p.chart.events||!p.chart.events.click),this.pinchDown=[],this.lastValidTouch={},M&&(r.tooltip=new M(r,p.tooltip)),this.setDOMEvents()},k.prototype.normalize=function(r,p){var o=r.touches,h=o?o.length?o.item(0):A(o.changedTouches,r.changedTouches)[0]:r;return p||(p=this.getChartPosition()),o=h.pageX-p.left,h=h.pageY-p.top,o/=p.scaleX,h/=p.scaleY,f(r,{chartX:Math.round(o),chartY:Math.round(h)})},k.prototype.onContainerClick=function(r){var p=this.chart,o=p.hoverPoint;r=this.normalize(r);var h=p.plotLeft,t=p.plotTop;p.cancelClick||(o&&this.inClass(r.target,"highcharts-tracker")?(C(o.series,"click",f(r,{point:o})),p.hoverPoint&&o.firePointEvent("click",r)):(f(r,this.getCoordinates(r)),p.isInsidePlot(r.chartX-h,r.chartY-t,{visiblePlotOnly:!0})&&C(p,"click",r)))},k.prototype.onContainerMouseDown=function(r){var p=1==(1&(r.buttons||r.button));r=this.normalize(r),F.isFirefox&&0!==r.button&&this.onContainerMouseMove(r),(typeof r.button>"u"||p)&&(this.zoomOption(r),p&&r.preventDefault&&r.preventDefault(),this.dragStart(r))},k.prototype.onContainerMouseLeave=function(r){var p=ot[A(k.hoverChartIndex,-1)],o=this.chart.tooltip;r=this.normalize(r),p&&(r.relatedTarget||r.toElement)&&(p.pointer.reset(),p.pointer.chartPosition=void 0),o&&!o.isHidden&&this.reset()},k.prototype.onContainerMouseEnter=function(r){delete this.chartPosition},k.prototype.onContainerMouseMove=function(r){var p=this.chart,o=p.tooltip;r=this.normalize(r),this.setHoverChartIndex(),r.preventDefault||(r.returnValue=!1),("mousedown"===p.mouseIsDown||this.touchSelect(r))&&this.drag(r),p.openMenu||!this.inClass(r.target,"highcharts-tracker")&&!p.isInsidePlot(r.chartX-p.plotLeft,r.chartY-p.plotTop,{visiblePlotOnly:!0})||o&&o.shouldStickOnContact(r)||(this.inClass(r.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(r))},k.prototype.onDocumentTouchEnd=function(r){var p=ot[A(k.hoverChartIndex,-1)];p&&p.pointer.drop(r)},k.prototype.onContainerTouchMove=function(r){this.touchSelect(r)?this.onContainerMouseMove(r):this.touch(r)},k.prototype.onContainerTouchStart=function(r){this.touchSelect(r)?this.onContainerMouseDown(r):(this.zoomOption(r),this.touch(r,!0))},k.prototype.onDocumentMouseMove=function(r){var p=this.chart,o=p.tooltip,h=this.chartPosition;r=this.normalize(r,h),!h||p.isInsidePlot(r.chartX-p.plotLeft,r.chartY-p.plotTop,{visiblePlotOnly:!0})||o&&o.shouldStickOnContact(r)||this.inClass(r.target,"highcharts-tracker")||this.reset()},k.prototype.onDocumentMouseUp=function(r){var p=ot[A(k.hoverChartIndex,-1)];p&&p.pointer.drop(r)},k.prototype.pinch=function(r){var p=this,o=p.chart,h=p.pinchDown,t=r.touches||[],c=t.length,i=p.lastValidTouch,s=p.hasZoom,d={},a=1===c&&(p.inClass(r.target,"highcharts-tracker")&&o.runTrackerClick||p.runChartClick),m={},L=p.chart.tooltip;L=1===c&&A(L&&L.options.followTouchMove,!0);var Y=p.selectionMarker;1<c?p.initiated=!0:L&&(p.initiated=!1),s&&p.initiated&&!a&&!1!==r.cancelable&&r.preventDefault(),[].map.call(t,function(_){return p.normalize(_)}),"touchstart"===r.type?([].forEach.call(t,function(_,e){h[e]={chartX:_.chartX,chartY:_.chartY}}),i.x=[h[0].chartX,h[1]&&h[1].chartX],i.y=[h[0].chartY,h[1]&&h[1].chartY],o.axes.forEach(function(_){if(_.zoomEnabled){var e=o.bounds[_.horiz?"h":"v"],l=_.minPixelPadding,P=_.toPixels(Math.min(A(_.options.min,_.dataMin),_.dataMin)),D=_.toPixels(Math.max(A(_.options.max,_.dataMax),_.dataMax)),b=Math.max(P,D);e.min=Math.min(_.pos,Math.min(P,D)-l),e.max=Math.max(_.pos+_.len,b+l)}}),p.res=!0):L?this.runPointActions(p.normalize(r)):h.length&&(C(o,"touchpan",{originalEvent:r},function(){Y||(p.selectionMarker=Y=f({destroy:q,touch:!0},o.plotBox)),p.pinchTranslate(h,t,d,Y,m,i),p.hasPinched=s,p.scaleGroups(d,m)}),p.res&&(p.res=!1,this.reset(!1,0)))},k.prototype.pinchTranslate=function(r,p,o,h,t,c){this.zoomHor&&this.pinchTranslateDirection(!0,r,p,o,h,t,c),this.zoomVert&&this.pinchTranslateDirection(!1,r,p,o,h,t,c)},k.prototype.pinchTranslateDirection=function(r,p,o,h,t,c,i,s){var d=this.chart,a=r?"x":"y",m=r?"X":"Y",L="chart"+m,Y=r?"width":"height",_=d["plot"+(r?"Left":"Top")],e=d.inverted,l=d.bounds[r?"h":"v"],P=1===p.length,D=p[0][L],b=!P&&p[1][L];p=function(){"number"==typeof E&&20<Math.abs(D-b)&&(u=s||Math.abs(z-E)/Math.abs(D-b)),S=(_-z)/u+D,n=d["plot"+(r?"Width":"Height")]/u};var n,S,u=s||1,z=o[0][L],E=!P&&o[1][L];if(p(),(o=S)<l.min){o=l.min;var N=!0}else o+n>l.max&&(o=l.max-n,N=!0);N?(z-=.8*(z-i[a][0]),"number"==typeof E&&(E-=.8*(E-i[a][1])),p()):i[a]=[z,E],e||(c[a]=S-_,c[Y]=n),c=e?1/u:u,t[Y]=n,t[a]=o,h[e?r?"scaleY":"scaleX":"scale"+m]=u,h["translate"+m]=c*_+(z-c*D)},k.prototype.reset=function(r,p){var o=this.chart,h=o.hoverSeries,t=o.hoverPoint,c=o.hoverPoints,i=o.tooltip,s=i&&i.shared?c:t;r&&s&&j(s).forEach(function(d){d.series.isCartesian&&typeof d.plotX>"u"&&(r=!1)}),r?i&&s&&j(s).length&&(i.refresh(s),i.shared&&c?c.forEach(function(d){d.setState(d.state,!0),d.series.isCartesian&&(d.series.xAxis.crosshair&&d.series.xAxis.drawCrosshair(null,d),d.series.yAxis.crosshair&&d.series.yAxis.drawCrosshair(null,d))}):t&&(t.setState(t.state,!0),o.axes.forEach(function(d){d.crosshair&&t.series[d.coll]===d&&d.drawCrosshair(null,t)}))):(t&&t.onMouseOut(),c&&c.forEach(function(d){d.setState()}),h&&h.onMouseOut(),i&&i.hide(p),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),o.axes.forEach(function(d){d.hideCrosshair()}),this.hoverX=o.hoverPoints=o.hoverPoint=null)},k.prototype.runPointActions=function(r,p,o){var h=this.chart,t=h.tooltip&&h.tooltip.options.enabled?h.tooltip:void 0,c=!!t&&t.shared,i=p||h.hoverPoint,s=i&&i.series||h.hoverSeries;p=this.getHoverData(i,s,h.series,(!r||"touchmove"!==r.type)&&(!!p||s&&s.directTouch&&this.isDirectTouch),c,r),i=p.hoverPoint;var d=p.hoverPoints;p=(s=p.hoverSeries)&&s.tooltipOptions.followPointer&&!s.tooltipOptions.split;var a=c&&s&&!s.noSharedTooltip;if(i&&(o||i!==h.hoverPoint||t&&t.isHidden)){if((h.hoverPoints||[]).forEach(function(m){-1===d.indexOf(m)&&m.setState()}),h.hoverSeries!==s&&s.onMouseOver(),this.applyInactiveState(d),(d||[]).forEach(function(m){m.setState("hover")}),h.hoverPoint&&h.hoverPoint.firePointEvent("mouseOut"),!i.series)return;h.hoverPoints=d,h.hoverPoint=i,i.firePointEvent("mouseOver",void 0,function(){t&&i&&t.refresh(a?d:i,r)})}else p&&t&&!t.isHidden&&(o=t.getAnchor([{}],r),h.isInsidePlot(o[0],o[1],{visiblePlotOnly:!0})&&t.updatePosition({plotX:o[0],plotY:o[1]}));this.unDocMouseMove||(this.unDocMouseMove=B(h.container.ownerDocument,"mousemove",function(m){var L=ot[k.hoverChartIndex];L&&L.pointer.onDocumentMouseMove(m)}),this.eventsToUnbind.push(this.unDocMouseMove)),h.axes.forEach(function(m){var Y,L=A((m.crosshair||{}).snap,!0);L&&((Y=h.hoverPoint)&&Y.series[m.coll]===m||(Y=y(d,function(_){return _.series&&_.series[m.coll]===m}))),Y||!L?m.drawCrosshair(r,Y):m.hideCrosshair()})},k.prototype.scaleGroups=function(r,p){var o=this.chart;o.series.forEach(function(h){var t=r||h.getPlotBox();h.group&&(h.xAxis&&h.xAxis.zoomEnabled||o.mapView)&&(h.group.attr(t),h.markerGroup&&(h.markerGroup.attr(t),h.markerGroup.clip(p?o.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(t))}),o.clipRect.attr(p||o.clipBox)},k.prototype.setDOMEvents=function(){var r=this,p=this.chart.container,o=p.ownerDocument;p.onmousedown=this.onContainerMouseDown.bind(this),p.onmousemove=this.onContainerMouseMove.bind(this),p.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(B(p,"mouseenter",this.onContainerMouseEnter.bind(this))),this.eventsToUnbind.push(B(p,"mouseleave",this.onContainerMouseLeave.bind(this))),k.unbindDocumentMouseUp||(k.unbindDocumentMouseUp=B(o,"mouseup",this.onDocumentMouseUp.bind(this)));for(var h=this.chart.renderTo.parentElement;h&&"BODY"!==h.tagName;)this.eventsToUnbind.push(B(h,"scroll",function(){delete r.chartPosition})),h=h.parentElement;F.hasTouch&&(this.eventsToUnbind.push(B(p,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1})),this.eventsToUnbind.push(B(p,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),k.unbindDocumentTouchEnd||(k.unbindDocumentTouchEnd=B(o,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))},k.prototype.setHoverChartIndex=function(){var r=this.chart,p=F.charts[A(k.hoverChartIndex,-1)];p&&p!==r&&p.pointer.onContainerMouseLeave({relatedTarget:r.container}),p&&p.mouseIsDown||(k.hoverChartIndex=r.index)},k.prototype.touch=function(r,p){var o=this.chart;if(this.setHoverChartIndex(),1===r.touches.length)if(r=this.normalize(r),o.isInsidePlot(r.chartX-o.plotLeft,r.chartY-o.plotTop,{visiblePlotOnly:!0})&&!o.openMenu){if(p&&this.runPointActions(r),"touchmove"===r.type)var t=!!(p=this.pinchDown)[0]&&4<=Math.sqrt(Math.pow(p[0].chartX-r.chartX,2)+Math.pow(p[0].chartY-r.chartY,2));A(t,!0)&&this.pinch(r)}else p&&this.reset();else 2===r.touches.length&&this.pinch(r)},k.prototype.touchSelect=function(r){return!(!this.chart.options.chart.zooming.singleTouch||!r.touches||1!==r.touches.length)},k.prototype.zoomOption=function(r){var p=this.chart,o=p.options.chart;p=p.inverted;var h=o.zooming.type||"";/touch/.test(r.type)&&(h=A(o.zooming.pinchType,h)),this.zoomX=r=/x/.test(h),this.zoomY=o=/y/.test(h),this.zoomHor=r&&!p||o&&p,this.zoomVert=o&&!p||r&&p,this.hasZoom=r||o},k}()}),ct(U,"Core/MSPointer.js",[U["Core/Globals.js"],U["Core/Pointer.js"],U["Core/Utilities.js"]],function(G,F,M){function rt(){var T=[];return T.item=function(A){return this[A]},y(x,function(A){T.push({pageX:A.pageX,pageY:A.pageY,target:A.target})}),T}function it(T,A,j,k){var r=q[F.hoverChartIndex||NaN];"touch"!==T.pointerType&&T.pointerType!==T.MSPOINTER_TYPE_TOUCH||!r||(r=r.pointer,k(T),r[A]({type:j,target:T.currentTarget,preventDefault:I,touches:rt()}))}var T,ot=this&&this.__extends||(T=function(A,j){return(T=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,r){k.__proto__=r}||function(k,r){for(var p in r)r.hasOwnProperty(p)&&(k[p]=r[p])})(A,j)},function(A,j){function k(){this.constructor=A}T(A,j),A.prototype=null===j?Object.create(j):(k.prototype=j.prototype,new k)}),q=G.charts,B=G.doc,I=G.noop,O=G.win,g=M.addEvent,f=M.css,y=M.objectEach,C=M.pick,v=M.removeEvent,x={},w=!!O.PointerEvent;return function(T){function A(){return null!==T&&T.apply(this,arguments)||this}return ot(A,T),A.isRequired=function(){return!(G.hasTouch||!O.PointerEvent&&!O.MSPointerEvent)},A.prototype.batchMSEvents=function(j){j(this.chart.container,w?"pointerdown":"MSPointerDown",this.onContainerPointerDown),j(this.chart.container,w?"pointermove":"MSPointerMove",this.onContainerPointerMove),j(B,w?"pointerup":"MSPointerUp",this.onDocumentPointerUp)},A.prototype.destroy=function(){this.batchMSEvents(v),T.prototype.destroy.call(this)},A.prototype.init=function(j,k){T.prototype.init.call(this,j,k),this.hasZoom&&f(j.container,{"-ms-touch-action":"none","touch-action":"none"})},A.prototype.onContainerPointerDown=function(j){it(j,"onContainerTouchStart","touchstart",function(k){x[k.pointerId]={pageX:k.pageX,pageY:k.pageY,target:k.currentTarget}})},A.prototype.onContainerPointerMove=function(j){it(j,"onContainerTouchMove","touchmove",function(k){x[k.pointerId]={pageX:k.pageX,pageY:k.pageY},x[k.pointerId].target||(x[k.pointerId].target=k.currentTarget)})},A.prototype.onDocumentPointerUp=function(j){it(j,"onDocumentTouchEnd","touchend",function(k){delete x[k.pointerId]})},A.prototype.setDOMEvents=function(){var j=this.chart.tooltip;T.prototype.setDOMEvents.call(this),(this.hasZoom||C(j&&j.options.followTouchMove,!0))&&this.batchMSEvents(g)},A}(F)}),ct(U,"Core/Legend/Legend.js",[U["Core/Animation/AnimationUtilities.js"],U["Core/FormatUtilities.js"],U["Core/Globals.js"],U["Core/Series/Point.js"],U["Core/Renderer/RendererUtilities.js"],U["Core/Utilities.js"]],function(G,F,M,rt,it,ot){var q=G.animObject,B=G.setAnimation,I=F.format,O=M.marginNames,g=it.distribute,f=ot.addEvent,y=ot.createElement,C=ot.css,v=ot.defined,x=ot.discardElement,w=ot.find,T=ot.fireEvent,A=ot.isNumber,j=ot.merge,k=ot.pick,r=ot.relativeLength,p=ot.stableSort,o=ot.syncTimeout;return function(){function h(t,c){this.allItems=[],this.contentGroup=this.box=void 0,this.display=!1,this.group=void 0,this.offsetWidth=this.maxLegendWidth=this.maxItemWidth=this.legendWidth=this.legendHeight=this.lastLineHeight=this.lastItemY=this.itemY=this.itemX=this.itemMarginTop=this.itemMarginBottom=this.itemHeight=this.initialItemY=0,this.options=void 0,this.padding=0,this.pages=[],this.proximate=!1,this.scrollGroup=void 0,this.widthOption=this.totalItemWidth=this.titleHeight=this.symbolWidth=this.symbolHeight=0,this.chart=t,this.init(t,c)}return h.prototype.init=function(t,c){this.chart=t,this.setOptions(c),c.enabled&&(this.render(),f(this.chart,"endResize",function(){this.legend.positionCheckboxes()}),this.proximate?this.unchartrender=f(this.chart,"render",function(){this.legend.proximatePositions(),this.legend.positionItems()}):this.unchartrender&&this.unchartrender())},h.prototype.setOptions=function(t){var c=k(t.padding,8);this.options=t,this.chart.styledMode||(this.itemStyle=t.itemStyle,this.itemHiddenStyle=j(this.itemStyle,t.itemHiddenStyle)),this.itemMarginTop=t.itemMarginTop||0,this.itemMarginBottom=t.itemMarginBottom||0,this.padding=c,this.initialItemY=c-5,this.symbolWidth=k(t.symbolWidth,16),this.pages=[],this.proximate="proximate"===t.layout&&!this.chart.inverted,this.baseline=void 0},h.prototype.update=function(t,c){var i=this.chart;this.setOptions(j(!0,this.options,t)),this.destroy(),i.isDirtyLegend=i.isDirtyBox=!0,k(c,!0)&&i.redraw(),T(this,"afterUpdate")},h.prototype.colorizeItem=function(t,c){var i=t.legendItem||{},s=i.group,d=i.label,a=i.line;if(i=i.symbol,s&&s[c?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){var m=this.options;s=this.itemHiddenStyle.color,m=c?m.itemStyle.color:s;var L=c&&t.color||s,Y=t.options&&t.options.marker,_={fill:L};d&&d.css({fill:m,color:m}),a&&a.attr({stroke:L}),i&&(Y&&i.isMarker&&(_=t.pointAttribs(),c||(_.stroke=_.fill=s)),i.attr(_))}T(this,"afterColorizeItem",{item:t,visible:c})},h.prototype.positionItems=function(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()},h.prototype.positionItem=function(t){var c=this,i=t.legendItem||{},s=i.group,d=i.x;d=void 0===d?0:d,i=void 0===(i=i.y)?0:i;var a=this.options,m=a.symbolPadding,L=!a.rtl;a=t.checkbox,s&&s.element&&(m={translateX:L?d:this.legendWidth-d-2*m-4,translateY:i},s[v(s.translateY)?"animate":"attr"](m,void 0,function(){T(c,"afterPositionItem",{item:t})})),a&&(a.x=d,a.y=i)},h.prototype.destroyItem=function(t){for(var c=t.checkbox,i=t.legendItem||{},s=0,d=["group","label","line","symbol"];s<d.length;s++){var a=d[s];i[a]&&(i[a]=i[a].destroy())}c&&x(c),t.legendItem=void 0},h.prototype.destroy=function(){for(var t=0,c=this.getAllItems();t<c.length;t++)this.destroyItem(c[t]);for(t=0,c="clipRect up down pager nav box title group".split(" ");t<c.length;t++){var i=c[t];this[i]&&(this[i]=this[i].destroy())}this.display=null},h.prototype.positionCheckboxes=function(){var t=this.group&&this.group.alignAttr,c=this.clipHeight||this.legendHeight,i=this.titleHeight;if(t){var s=t.translateY;this.allItems.forEach(function(d){var a=d.checkbox;if(a){var m=s+i+a.y+(this.scrollOffset||0)+3;C(a,{left:t.translateX+d.checkboxOffset+a.x-20+"px",top:m+"px",display:this.proximate||m>s-6&&m<s+c-6?"":"none"})}},this)}},h.prototype.renderTitle=function(){var t=this.options,c=this.padding,i=t.title,s=0;i.text&&(this.title||(this.title=this.chart.renderer.label(i.text,c-3,c-4,void 0,void 0,void 0,t.useHTML,void 0,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(i.style),this.title.add(this.group)),i.width||this.title.css({width:this.maxLegendWidth+"px"}),s=(t=this.title.getBBox()).height,this.offsetWidth=t.width,this.contentGroup.attr({translateY:s})),this.titleHeight=s},h.prototype.setText=function(t){var c=this.options;t.legendItem.label.attr({text:c.labelFormat?I(c.labelFormat,t,this.chart):c.labelFormatter.call(t)})},h.prototype.renderItem=function(t){var c=t.legendItem=t.legendItem||{},i=this.chart,s=i.renderer,d=this.options,a=this.symbolWidth,m=d.symbolPadding||0,L=this.itemStyle,Y=this.itemHiddenStyle,_="horizontal"===d.layout?k(d.itemDistance,20):0,e=!d.rtl,l=!t.series,P=!l&&t.series.drawLegendSymbol?t.series:t,D=P.options,b=this.createCheckboxForItem&&D&&D.showCheckbox,n=d.useHTML,S=t.options.className,u=c.label;D=a+m+_+(b?20:0),u||(c.group=s.g("legend-item").addClass("highcharts-"+P.type+"-series highcharts-color-"+t.colorIndex+(S?" "+S:"")+(l?" highcharts-series-"+t.index:"")).attr({zIndex:1}).add(this.scrollGroup),c.label=u=s.text("",e?a+m:-m,this.baseline||0,n),i.styledMode||u.css(j(t.visible?L:Y)),u.attr({align:e?"left":"right",zIndex:2}).add(c.group),this.baseline||(this.fontMetrics=s.fontMetrics(i.styledMode?12:L.fontSize,u),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,u.attr("y",this.baseline),this.symbolHeight=d.symbolHeight||this.fontMetrics.f,d.squareSymbol&&(this.symbolWidth=k(d.symbolWidth,Math.max(this.symbolHeight,16)),D=this.symbolWidth+m+_+(b?20:0),e&&u.attr("x",this.symbolWidth+m))),P.drawLegendSymbol(this,t),this.setItemEvents&&this.setItemEvents(t,u,n)),b&&!t.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(t),this.colorizeItem(t,t.visible),!i.styledMode&&L.width||u.css({width:(d.itemWidth||this.widthOption||i.spacingBox.width)-D+"px"}),this.setText(t),i=u.getBBox(),s=this.fontMetrics&&this.fontMetrics.h||0,t.itemWidth=t.checkboxOffset=d.itemWidth||c.labelWidth||i.width+D,this.maxItemWidth=Math.max(this.maxItemWidth,t.itemWidth),this.totalItemWidth+=t.itemWidth,this.itemHeight=t.itemHeight=Math.round(c.labelHeight||(i.height>1.5*s?i.height:s))},h.prototype.layoutItem=function(t){var c=this.options,i=this.padding,s="horizontal"===c.layout,d=t.itemHeight,a=this.itemMarginBottom,m=this.itemMarginTop,L=s?k(c.itemDistance,20):0,Y=this.maxLegendWidth;c=c.alignColumns&&this.totalItemWidth>Y?this.maxItemWidth:t.itemWidth;var _=t.legendItem||{};s&&this.itemX-i+c>Y&&(this.itemX=i,this.lastLineHeight&&(this.itemY+=m+this.lastLineHeight+a),this.lastLineHeight=0),this.lastItemY=m+this.itemY+a,this.lastLineHeight=Math.max(d,this.lastLineHeight),_.x=this.itemX,_.y=this.itemY,s?this.itemX+=c:(this.itemY+=m+d+a,this.lastLineHeight=d),this.offsetWidth=this.widthOption||Math.max((s?this.itemX-i-(t.checkbox?0:L):c)+i,this.offsetWidth)},h.prototype.getAllItems=function(){var t=[];return this.chart.series.forEach(function(c){var i=c&&c.options;c&&k(i.showInLegend,!v(i.linkedTo)&&void 0,!0)&&(t=t.concat((c.legendItem||{}).labels||("point"===i.legendType?c.data:c)))}),T(this,"afterGetAllItems",{allItems:t}),t},h.prototype.getAlignment=function(){var t=this.options;return this.proximate?t.align.charAt(0)+"tv":t.floating?"":t.align.charAt(0)+t.verticalAlign.charAt(0)+t.layout.charAt(0)},h.prototype.adjustMargins=function(t,c){var i=this.chart,s=this.options,d=this.getAlignment();d&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(a,m){a.test(d)&&!v(t[m])&&(i[O[m]]=Math.max(i[O[m]],i.legend[(m+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][m]*s[m%2?"x":"y"]+k(s.margin,12)+c[m]+(i.titleOffset[m]||0)))})},h.prototype.proximatePositions=function(){var t=this.chart,c=[],i="left"===this.options.align;this.allItems.forEach(function(L){var Y,_=i;if(L.yAxis){L.xAxis.options.reversed&&(_=!_),L.points&&(Y=w(_?L.points:L.points.slice(0).reverse(),function(l){return A(l.plotY)})),_=this.itemMarginTop+L.legendItem.label.getBBox().height+this.itemMarginBottom;var e=L.yAxis.top-t.plotTop;L.visible?(Y=Y?Y.plotY:L.yAxis.height,Y+=e-.3*_):Y=e+L.yAxis.height,c.push({target:Y,size:_,item:L})}},this);for(var s,d=0,a=g(c,t.plotHeight);d<a.length;d++){var m=a[d];s=m.item.legendItem||{},A(m.pos)&&(s.y=t.plotTop-t.spacing[0]+m.pos)}},h.prototype.render=function(){var t=this.chart,c=t.renderer,i=this.options,s=this.padding,d=this.getAllItems(),a=this.group,m=this.box;this.itemX=s,this.itemY=this.initialItemY,this.lastItemY=this.offsetWidth=0,this.widthOption=r(i.width,t.spacingBox.width-s);var L=t.spacingBox.width-2*s-i.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,2))&&(L/=2),this.maxLegendWidth=this.widthOption||L,a||(this.group=a=c.g("legend").addClass(i.className||"").attr({zIndex:7}).add(),this.contentGroup=c.g().attr({zIndex:1}).add(a),this.scrollGroup=c.g().add(this.contentGroup)),this.renderTitle(),p(d,function(_,e){return(_.options&&_.options.legendIndex||0)-(e.options&&e.options.legendIndex||0)}),i.reversed&&d.reverse(),this.allItems=d,this.display=L=!!d.length,this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0,d.forEach(this.renderItem,this),d.forEach(this.layoutItem,this),d=(this.widthOption||this.offsetWidth)+s;var Y=this.lastItemY+this.lastLineHeight+this.titleHeight;Y=this.handleOverflow(Y),Y+=s,m||(this.box=m=c.rect().addClass("highcharts-legend-box").attr({r:i.borderRadius}).add(a)),t.styledMode||m.attr({stroke:i.borderColor,"stroke-width":i.borderWidth||0,fill:i.backgroundColor||"none"}).shadow(i.shadow),0<d&&0<Y&&m[m.placed?"animate":"attr"](m.crisp.call({},{x:0,y:0,width:d,height:Y},m.strokeWidth())),a[L?"show":"hide"](),t.styledMode&&"none"===a.getStyle("display")&&(d=Y=0),this.legendWidth=d,this.legendHeight=Y,L&&this.align(),this.proximate||this.positionItems(),T(this,"afterRender")},h.prototype.align=function(t){void 0===t&&(t=this.chart.spacingBox);var c=this.chart,i=this.options,s=t.y;/(lth|ct|rth)/.test(this.getAlignment())&&0<c.titleOffset[0]?s+=c.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&0<c.titleOffset[2]&&(s-=c.titleOffset[2]),s!==t.y&&(t=j(t,{y:s})),c.hasRendered||(this.group.placed=!1),this.group.align(j(i,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":i.verticalAlign}),!0,t)},h.prototype.handleOverflow=function(t){var S,u,z,c=this,i=this.chart,s=i.renderer,d=this.options,a=d.y,m="top"===d.verticalAlign,L=this.padding,Y=d.maxHeight,_=d.navigation,e=k(_.animation,!0),l=_.arrowSize||12,P=this.pages,D=this.allItems,b=function(W){"number"==typeof W?N.attr({height:W}):N&&(c.clipRect=N.destroy(),c.contentGroup.clip()),c.contentGroup.div&&(c.contentGroup.div.style.clip=W?"rect("+L+"px,9999px,"+(L+W)+"px,0)":"auto")},n=function(W){return c[W]=s.circle(0,0,1.3*l).translate(l/2,l/2).add(E),i.styledMode||c[W].attr("fill","rgba(0,0,0,0.0001)"),c[W]};a=i.spacingBox.height+(m?-a:a)-L;var E=this.nav,N=this.clipRect;return"horizontal"!==d.layout||"middle"===d.verticalAlign||d.floating||(a/=2),Y&&(a=Math.min(a,Y)),P.length=0,t&&0<a&&t>a&&!1!==_.enabled?(this.clipHeight=S=Math.max(a-20-this.titleHeight-L,0),this.currentPage=k(this.currentPage,1),this.fullHeight=t,D.forEach(function(W,Z){W=(z=W.legendItem||{}).y||0;var $=Math.round(z.label.getBBox().height),nt=P.length;(!nt||W-P[nt-1]>S&&(u||W)!==P[nt-1])&&(P.push(u||W),nt++),z.pageIx=nt-1,u&&((D[Z-1].legendItem||{}).pageIx=nt-1),Z===D.length-1&&W+$-P[nt-1]>S&&$<=S&&(P.push(W),z.pageIx=nt),W!==u&&(u=W)}),N||(N=c.clipRect=s.clipRect(0,L,9999,0),c.contentGroup.clip(N)),b(S),E||(this.nav=E=s.g().attr({zIndex:1}).add(this.group),this.up=s.symbol("triangle",0,0,l,l).add(E),n("upTracker").on("click",function(){c.scroll(-1,e)}),this.pager=s.text("",15,10).addClass("highcharts-legend-navigation"),!i.styledMode&&_.style&&this.pager.css(_.style),this.pager.add(E),this.down=s.symbol("triangle-down",0,0,l,l).add(E),n("downTracker").on("click",function(){c.scroll(1,e)})),c.scroll(0),t=a):E&&(b(),this.nav=E.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),t},h.prototype.scroll=function(t,c){var i=this,s=this.chart,d=this.pages,a=d.length,m=this.clipHeight,L=this.options.navigation,Y=this.pager,_=this.padding,e=this.currentPage+t;e>a&&(e=a),0<e&&(typeof c<"u"&&B(c,s),this.nav.attr({translateX:_,translateY:m+this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach(function(l){l.attr({class:1===e?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),Y.attr({text:e+"/"+a}),[this.down,this.downTracker].forEach(function(l){l.attr({x:18+this.pager.getBBox().width,class:e===a?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),s.styledMode||(this.up.attr({fill:1===e?L.inactiveColor:L.activeColor}),this.upTracker.css({cursor:1===e?"default":"pointer"}),this.down.attr({fill:e===a?L.inactiveColor:L.activeColor}),this.downTracker.css({cursor:e===a?"default":"pointer"})),this.scrollOffset=-d[e-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=e,this.positionCheckboxes(),t=q(k(c,s.renderer.globalAnimation,!0)),o(function(){T(i,"afterScroll",{currentPage:e})},t.duration))},h.prototype.setItemEvents=function(t,c,i){var s=this,d=t.legendItem||{},a=s.chart.renderer.boxWrapper,m=t instanceof rt,L="highcharts-legend-"+(m?"point":"series")+"-active",Y=s.chart.styledMode,_=function(l){s.allItems.forEach(function(P){t!==P&&[P].concat(P.linkedSeries||[]).forEach(function(D){D.setState(l,!m)})})},e=0;for(i=i?[c,d.symbol]:[d.group];e<i.length;e++)(d=i[e])&&d.on("mouseover",function(){t.visible&&_("inactive"),t.setState("hover"),t.visible&&a.addClass(L),Y||c.css(s.options.itemHoverStyle)}).on("mouseout",function(){s.chart.styledMode||c.css(j(t.visible?s.itemStyle:s.itemHiddenStyle)),_(""),a.removeClass(L),t.setState()}).on("click",function(l){var P=function(){t.setVisible&&t.setVisible(),_(t.visible?"inactive":"")};a.removeClass(L),l={browserEvent:l},t.firePointEvent?t.firePointEvent("legendItemClick",l,P):T(t,"legendItemClick",l,P)})},h.prototype.createCheckboxForItem=function(t){t.checkbox=y("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:t.selected,defaultChecked:t.selected},this.options.itemCheckboxStyle,this.chart.container),f(t.checkbox,"click",function(c){T(t.series||t,"checkboxClick",{checked:c.target.checked,item:t},function(){t.select()})})},h}()}),ct(U,"Core/Series/SeriesRegistry.js",[U["Core/Globals.js"],U["Core/Defaults.js"],U["Core/Series/Point.js"],U["Core/Utilities.js"]],function(G,F,M,rt){var B,it=F.defaultOptions,ot=rt.extendClass,q=rt.merge;return function(I){function O(g,f){var y=it.plotOptions||{},C=f.defaultOptions,v=f.prototype;v.type=g,v.pointClass||(v.pointClass=M),C&&(y[g]=C),I.seriesTypes[g]=f}I.seriesTypes=G.seriesTypes,I.registerSeriesType=O,I.seriesType=function(g,f,y,C,v){var x=it.plotOptions||{};return x[g]=q(x[f=f||""],y),O(g,ot(I.seriesTypes[f]||function(){},C)),I.seriesTypes[g].prototype.type=g,v&&(I.seriesTypes[g].prototype.pointClass=ot(M,v)),I.seriesTypes[g]}}(B||(B={})),B}),ct(U,"Core/Chart/Chart.js",[U["Core/Animation/AnimationUtilities.js"],U["Core/Axis/Axis.js"],U["Core/Defaults.js"],U["Core/FormatUtilities.js"],U["Core/Foundation.js"],U["Core/Globals.js"],U["Core/Legend/Legend.js"],U["Core/MSPointer.js"],U["Core/Pointer.js"],U["Core/Renderer/RendererRegistry.js"],U["Core/Series/SeriesRegistry.js"],U["Core/Renderer/SVG/SVGRenderer.js"],U["Core/Time.js"],U["Core/Utilities.js"],U["Core/Renderer/HTML/AST.js"]],function(G,F,M,rt,it,ot,q,B,I,O,g,f,y,C,v){var x=G.animate,w=G.animObject,T=G.setAnimation,A=M.defaultOptions,j=M.defaultTime,k=rt.numberFormat,r=it.registerEventOptions,p=ot.charts,o=ot.doc,h=ot.marginNames,t=ot.svg,c=ot.win,i=g.seriesTypes,s=C.addEvent,d=C.attr,a=C.cleanRecursively,m=C.createElement,L=C.css,Y=C.defined,_=C.discardElement,e=C.erase,l=C.error,P=C.extend,D=C.find,b=C.fireEvent,n=C.getStyle,S=C.isArray,u=C.isNumber,z=C.isObject,E=C.isString,N=C.merge,W=C.objectEach,Z=C.pick,$=C.pInt,nt=C.relativeLength,J=C.removeEvent,K=C.splat,X=C.syncTimeout,et=C.uniqueKey;return G=function(){function V(R,H,Q){this.series=this.renderTo=this.renderer=this.pointer=this.pointCount=this.plotWidth=this.plotTop=this.plotLeft=this.plotHeight=this.plotBox=this.options=this.numberFormatter=this.margin=this.legend=this.labelCollectors=this.isResizing=this.index=this.eventOptions=this.container=this.colorCounter=this.clipBox=this.chartWidth=this.chartHeight=this.bounds=this.axisOffset=this.axes=void 0,this.sharedClips={},this.yAxis=this.xAxis=this.userOptions=this.titleOffset=this.time=this.symbolCounter=this.spacingBox=this.spacing=void 0,this.getArgs(R,H,Q)}return V.chart=function(R,H,Q){return new V(R,H,Q)},V.prototype.getArgs=function(R,H,Q){E(R)||R.nodeName?(this.renderTo=R,this.init(H,Q)):this.init(R,H)},V.prototype.init=function(R,H){var Q=R.plotOptions||{};b(this,"init",{args:arguments},function(){var tt=N(A,R),st=tt.chart;W(tt.plotOptions,function(ht,dt){z(ht)&&(ht.tooltip=Q[dt]&&N(Q[dt].tooltip)||void 0)}),tt.tooltip.userOptions=R.chart&&R.chart.forExport&&R.tooltip.userOptions||R.tooltip,this.userOptions=R,this.margin=[],this.spacing=[],this.bounds={h:{},v:{}},this.labelCollectors=[],this.callback=H,this.isResizing=0;var at=st.zooming=st.zooming||{};R.chart&&!R.chart.zooming&&(at.resetButton=st.resetZoomButton),at.key=Z(at.key,st.zoomKey),at.pinchType=Z(at.pinchType,st.pinchType),at.singleTouch=Z(at.singleTouch,st.zoomBySingleTouch),at.type=Z(at.type,st.zoomType),this.options=tt,this.axes=[],this.series=[],this.time=R.time&&Object.keys(R.time).length?new y(R.time):ot.time,this.numberFormatter=st.numberFormatter||k,this.styledMode=st.styledMode,this.hasCartesianSeries=st.showAxes,this.index=p.length,p.push(this),ot.chartCount++,r(this,st),this.xAxis=[],this.yAxis=[],this.pointCount=this.colorCounter=this.symbolCounter=0,b(this,"afterInit"),this.firstRender()})},V.prototype.initSeries=function(R){var H=this.options.chart,Q=i[H=R.type||H.type||H.defaultSeriesType];return Q||l(17,!0,this,{missingModuleFor:H}),"function"==typeof(H=new Q).init&&H.init(this,R),H},V.prototype.setSeriesData=function(){this.getSeriesOrderByLinks().forEach(function(R){R.points||R.data||!R.enabledDataSorting||R.setData(R.options.data,!1)})},V.prototype.getSeriesOrderByLinks=function(){return this.series.concat().sort(function(R,H){return R.linkedSeries.length||H.linkedSeries.length?H.linkedSeries.length-R.linkedSeries.length:0})},V.prototype.orderSeries=function(R){var H=this.series;R=R||0;for(var Q=H.length;R<Q;++R)H[R]&&(H[R].index=R,H[R].name=H[R].getName())},V.prototype.isInsidePlot=function(R,H,Q){void 0===Q&&(Q={});var tt=this.inverted,st=this.plotBox,at=this.plotLeft,ht=this.plotTop,dt=this.scrollablePlotBox,ft=0,lt=0;Q.visiblePlotOnly&&this.scrollingContainer&&(ft=(lt=this.scrollingContainer).scrollLeft,lt=lt.scrollTop);var pt=Q.series;if(st=Q.visiblePlotOnly&&dt||st,R={x:dt=Q.inverted?H:R,y:H=Q.inverted?R:H,isInsidePlot:!0,options:Q},!Q.ignoreX){var yt=pt&&(tt&&!this.polar?pt.yAxis:pt.xAxis)||{pos:at,len:1/0};(dt=Q.paneCoordinates?yt.pos+dt:at+dt)>=Math.max(ft+at,yt.pos)&&dt<=Math.min(ft+at+st.width,yt.pos+yt.len)||(R.isInsidePlot=!1)}return!Q.ignoreY&&R.isInsidePlot&&(tt=Q.axis&&!Q.axis.isXAxis&&Q.axis||pt&&(tt?pt.xAxis:pt.yAxis)||{pos:ht,len:1/0},(Q=Q.paneCoordinates?tt.pos+H:ht+H)>=Math.max(lt+ht,tt.pos)&&Q<=Math.min(lt+ht+st.height,tt.pos+tt.len)||(R.isInsidePlot=!1)),b(this,"afterIsInsidePlot",R),R.isInsidePlot},V.prototype.redraw=function(R){b(this,"beforeRedraw");var H=this.hasCartesianSeries?this.axes:this.colorAxis||[],Q=this.series,tt=this.pointer,st=this.legend,at=this.userOptions.legend,ht=this.renderer,dt=ht.isHidden(),ft=[],lt=this.isDirtyBox,pt=this.isDirtyLegend;for(this.setResponsive&&this.setResponsive(!1),T(!!this.hasRendered&&R,this),dt&&this.temporaryDisplay(),this.layOutTitles(),R=Q.length;R--;){var yt=Q[R];if(yt.options.stacking||yt.options.centerInCategory){var gt=!0;if(yt.isDirty){var mt=!0;break}}}if(mt)for(R=Q.length;R--;)(yt=Q[R]).options.stacking&&(yt.isDirty=!0);Q.forEach(function(ut){ut.isDirty&&("point"===ut.options.legendType?("function"==typeof ut.updateTotals&&ut.updateTotals(),pt=!0):at&&(at.labelFormatter||at.labelFormat)&&(pt=!0)),ut.isDirtyData&&b(ut,"updatedData")}),pt&&st&&st.options.enabled&&(st.render(),this.isDirtyLegend=!1),gt&&this.getStacks(),H.forEach(function(ut){ut.updateNames(),ut.setScale()}),this.getMargins(),H.forEach(function(ut){ut.isDirty&&(lt=!0)}),H.forEach(function(ut){var Ct=ut.min+","+ut.max;ut.extKey!==Ct&&(ut.extKey=Ct,ft.push(function(){b(ut,"afterSetExtremes",P(ut.eventArgs,ut.getExtremes())),delete ut.eventArgs})),(lt||gt)&&ut.redraw()}),lt&&this.drawChartBox(),b(this,"predraw"),Q.forEach(function(ut){(lt||ut.isDirty)&&ut.visible&&ut.redraw(),ut.isDirtyData=!1}),tt&&tt.reset(!0),ht.draw(),b(this,"redraw"),b(this,"render"),dt&&this.temporaryDisplay(!0),ft.forEach(function(ut){ut.call()})},V.prototype.get=function(R){function H(at){return at.id===R||at.options&&at.options.id===R}for(var Q=this.series,tt=D(this.axes,H)||D(this.series,H),st=0;!tt&&st<Q.length;st++)tt=D(Q[st].points||[],H);return tt},V.prototype.getAxes=function(){var R=this,H=this.options,Q=H.xAxis=K(H.xAxis||{});H=H.yAxis=K(H.yAxis||{}),b(this,"getAxes"),Q.forEach(function(tt,st){tt.index=st,tt.isX=!0}),H.forEach(function(tt,st){tt.index=st}),Q.concat(H).forEach(function(tt){new F(R,tt)}),b(this,"afterGetAxes")},V.prototype.getSelectedPoints=function(){return this.series.reduce(function(R,H){return H.getPointsCollection().forEach(function(Q){Z(Q.selectedStaging,Q.selected)&&R.push(Q)}),R},[])},V.prototype.getSelectedSeries=function(){return this.series.filter(function(R){return R.selected})},V.prototype.setTitle=function(R,H,Q){this.applyDescription("title",R),this.applyDescription("subtitle",H),this.applyDescription("caption",void 0),this.layOutTitles(Q)},V.prototype.applyDescription=function(R,H){var Q=this,tt="title"===R?{color:"#333333",fontSize:this.options.isStock?"16px":"18px"}:{color:"#666666"};tt=this.options[R]=N(!this.styledMode&&{style:tt},this.options[R],H);var st=this[R];st&&H&&(this[R]=st=st.destroy()),tt&&!st&&((st=this.renderer.text(tt.text,0,0,tt.useHTML).attr({align:tt.align,class:"highcharts-"+R,zIndex:tt.zIndex||4}).add()).update=function(at){Q[{title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"}[R]](at)},this.styledMode||st.css(tt.style),this[R]=st)},V.prototype.layOutTitles=function(R){var H=[0,0,0],Q=this.renderer,tt=this.spacingBox;["title","subtitle","caption"].forEach(function(at){var lt,ht=this[at],dt=this.options[at],ft=dt.verticalAlign||"top";if(at="title"===at?"top"===ft?-3:0:"top"===ft?H[0]+2:0,ht){this.styledMode||(lt=dt.style&&dt.style.fontSize),lt=Q.fontMetrics(lt,ht).b,ht.css({width:(dt.width||tt.width+(dt.widthAdjust||0))+"px"});var pt=Math.round(ht.getBBox(dt.useHTML).height);ht.align(P({y:"bottom"===ft?lt:at+lt,height:pt},dt),!1,"spacingBox"),dt.floating||("top"===ft?H[0]=Math.ceil(H[0]+pt):"bottom"===ft&&(H[2]=Math.ceil(H[2]+pt)))}},this),H[0]&&"top"===(this.options.title.verticalAlign||"top")&&(H[0]+=this.options.title.margin),H[2]&&"bottom"===this.options.caption.verticalAlign&&(H[2]+=this.options.caption.margin);var st=!this.titleOffset||this.titleOffset.join(",")!==H.join(",");this.titleOffset=H,b(this,"afterLayOutTitles"),!this.isDirtyBox&&st&&(this.isDirtyBox=this.isDirtyLegend=st,this.hasRendered&&Z(R,!0)&&this.isDirtyBox&&this.redraw())},V.prototype.getChartSize=function(){var R=this.options.chart,H=R.width;R=R.height;var Q=this.renderTo;Y(H)||(this.containerWidth=n(Q,"width")),Y(R)||(this.containerHeight=n(Q,"height")),this.chartWidth=Math.max(0,H||this.containerWidth||600),this.chartHeight=Math.max(0,nt(R,this.chartWidth)||(1<this.containerHeight?this.containerHeight:400))},V.prototype.temporaryDisplay=function(R){var H=this.renderTo;if(R)for(;H&&H.style;)H.hcOrigStyle&&(L(H,H.hcOrigStyle),delete H.hcOrigStyle),H.hcOrigDetached&&(o.body.removeChild(H),H.hcOrigDetached=!1),H=H.parentNode;else for(;H&&H.style&&(o.body.contains(H)||H.parentNode||(H.hcOrigDetached=!0,o.body.appendChild(H)),("none"===n(H,"display",!1)||H.hcOricDetached)&&(H.hcOrigStyle={display:H.style.display,height:H.style.height,overflow:H.style.overflow},R={display:"block",overflow:"hidden"},H!==this.renderTo&&(R.height=0),L(H,R),H.offsetWidth||H.style.setProperty("display","block","important")),(H=H.parentNode)!==o.body););},V.prototype.setClassName=function(R){this.container.className="highcharts-container "+(R||"")},V.prototype.getContainer=function(){var tt,R=this.options,H=R.chart,Q=et(),st=this.renderTo;st||(this.renderTo=st=H.renderTo),E(st)&&(this.renderTo=st=o.getElementById(st)),st||l(13,!0,this);var at=$(d(st,"data-highcharts-chart"));u(at)&&p[at]&&p[at].hasRendered&&p[at].destroy(),d(st,"data-highcharts-chart",this.index),st.innerHTML=v.emptyHTML,H.skipClone||st.offsetWidth||this.temporaryDisplay(),this.getChartSize(),at=this.chartWidth;var ht=this.chartHeight;if(L(st,{overflow:"hidden"}),this.styledMode||(tt=P({position:"relative",overflow:"hidden",width:at+"px",height:ht+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none","touch-action":"manipulation",outline:"none"},H.style||{})),this.container=Q=m("div",{id:Q},tt,st),this._cursor=Q.style.cursor,this.renderer=new(H.renderer||!t?O.getRendererType(H.renderer):f)(Q,at,ht,void 0,H.forExport,R.exporting&&R.exporting.allowHTML,this.styledMode),T(void 0,this),this.setClassName(H.className),this.styledMode)for(var dt in R.defs)this.renderer.definition(R.defs[dt]);else this.renderer.setStyle(H.style);this.renderer.chartIndex=this.index,b(this,"afterGetContainer")},V.prototype.getMargins=function(R){var H=this.spacing,Q=this.margin,tt=this.titleOffset;this.resetMargins(),tt[0]&&!Y(Q[0])&&(this.plotTop=Math.max(this.plotTop,tt[0]+H[0])),tt[2]&&!Y(Q[2])&&(this.marginBottom=Math.max(this.marginBottom,tt[2]+H[2])),this.legend&&this.legend.display&&this.legend.adjustMargins(Q,H),b(this,"getMargins"),R||this.getAxisMargins()},V.prototype.getAxisMargins=function(){var R=this,H=R.axisOffset=[0,0,0,0],Q=R.colorAxis,tt=R.margin,st=function(at){at.forEach(function(ht){ht.visible&&ht.getOffset()})};R.hasCartesianSeries?st(R.axes):Q&&Q.length&&st(Q),h.forEach(function(at,ht){Y(tt[ht])||(R[at]+=H[ht])}),R.setChartSize()},V.prototype.reflow=function(R){var H=this,Q=H.options.chart,tt=H.renderTo,st=Y(Q.width)&&Y(Q.height),at=Q.width||n(tt,"width");Q=Q.height||n(tt,"height"),tt=R?R.target:c,delete H.pointer.chartPosition,!st&&!H.isPrinting&&at&&Q&&(tt===c||tt===o)&&((at!==H.containerWidth||Q!==H.containerHeight)&&(C.clearTimeout(H.reflowTimeout),H.reflowTimeout=X(function(){H.container&&H.setSize(void 0,void 0,!1)},R?100:0)),H.containerWidth=at,H.containerHeight=Q)},V.prototype.setReflow=function(R){var H=this;!1===R||this.unbindReflow?!1===R&&this.unbindReflow&&(this.unbindReflow=this.unbindReflow()):(this.unbindReflow=s(c,"resize",function(Q){H.options&&H.reflow(Q)}),s(this,"destroy",this.unbindReflow))},V.prototype.setSize=function(R,H,Q){var tt=this,st=tt.renderer;tt.isResizing+=1,T(Q,tt),Q=st.globalAnimation,tt.oldChartHeight=tt.chartHeight,tt.oldChartWidth=tt.chartWidth,typeof R<"u"&&(tt.options.chart.width=R),typeof H<"u"&&(tt.options.chart.height=H),tt.getChartSize(),tt.styledMode||(Q?x:L)(tt.container,{width:tt.chartWidth+"px",height:tt.chartHeight+"px"},Q),tt.setChartSize(!0),st.setSize(tt.chartWidth,tt.chartHeight,Q),tt.axes.forEach(function(at){at.isDirty=!0,at.setScale()}),tt.isDirtyLegend=!0,tt.isDirtyBox=!0,tt.layOutTitles(),tt.getMargins(),tt.redraw(Q),tt.oldChartHeight=null,b(tt,"resize"),X(function(){tt&&b(tt,"endResize",null,function(){--tt.isResizing})},w(Q).duration)},V.prototype.setChartSize=function(R){var ft,lt,pt,yt,H=this.inverted,Q=this.renderer,tt=this.chartWidth,st=this.chartHeight,at=this.options.chart,ht=this.spacing,dt=this.clipOffset;this.plotLeft=ft=Math.round(this.plotLeft),this.plotTop=lt=Math.round(this.plotTop),this.plotWidth=pt=Math.max(0,Math.round(tt-ft-this.marginRight)),this.plotHeight=yt=Math.max(0,Math.round(st-lt-this.marginBottom)),this.plotSizeX=H?yt:pt,this.plotSizeY=H?pt:yt,this.plotBorderWidth=at.plotBorderWidth||0,this.spacingBox=Q.spacingBox={x:ht[3],y:ht[0],width:tt-ht[3]-ht[1],height:st-ht[0]-ht[2]},this.plotBox=Q.plotBox={x:ft,y:lt,width:pt,height:yt},H=2*Math.floor(this.plotBorderWidth/2),tt=Math.ceil(Math.max(H,dt[3])/2),st=Math.ceil(Math.max(H,dt[0])/2),this.clipBox={x:tt,y:st,width:Math.floor(this.plotSizeX-Math.max(H,dt[1])/2-tt),height:Math.max(0,Math.floor(this.plotSizeY-Math.max(H,dt[2])/2-st))},R||(this.axes.forEach(function(gt){gt.setAxisSize(),gt.setAxisTranslation()}),Q.alignElements()),b(this,"afterSetChartSize",{skipAxes:R})},V.prototype.resetMargins=function(){b(this,"resetMargins");var R=this,H=R.options.chart;["margin","spacing"].forEach(function(Q){var tt=H[Q],st=z(tt)?tt:[tt,tt,tt,tt];["Top","Right","Bottom","Left"].forEach(function(at,ht){R[Q][ht]=Z(H[Q+at],st[ht])})}),h.forEach(function(Q,tt){R[Q]=Z(R.margin[tt],R.spacing[tt])}),R.axisOffset=[0,0,0,0],R.clipOffset=[0,0,0,0]},V.prototype.drawChartBox=function(){var kt,R=this.options.chart,H=this.renderer,Q=this.chartWidth,tt=this.chartHeight,st=this.styledMode,at=this.plotBGImage,ht=R.backgroundColor,dt=R.plotBackgroundColor,ft=R.plotBackgroundImage,lt=this.plotLeft,pt=this.plotTop,yt=this.plotWidth,gt=this.plotHeight,mt=this.plotBox,ut=this.clipRect,Ct=this.clipBox,St=this.chartBackground,xt=this.plotBackground,Pt=this.plotBorder,Mt="animate";if(St||(this.chartBackground=St=H.rect().addClass("highcharts-background").add(),Mt="attr"),st)var At=kt=St.strokeWidth();else kt=(At=R.borderWidth||0)+(R.shadow?8:0),ht={fill:ht||"none"},(At||St["stroke-width"])&&(ht.stroke=R.borderColor,ht["stroke-width"]=At),St.attr(ht).shadow(R.shadow);St[Mt]({x:kt/2,y:kt/2,width:Q-kt-At%2,height:tt-kt-At%2,r:R.borderRadius}),Mt="animate",xt||(Mt="attr",this.plotBackground=xt=H.rect().addClass("highcharts-plot-background").add()),xt[Mt](mt),st||(xt.attr({fill:dt||"none"}).shadow(R.plotShadow),ft&&(at?(ft!==at.attr("href")&&at.attr("href",ft),at.animate(mt)):this.plotBGImage=H.image(ft,lt,pt,yt,gt).add())),ut?ut.animate({width:Ct.width,height:Ct.height}):this.clipRect=H.clipRect(Ct),Mt="animate",Pt||(Mt="attr",this.plotBorder=Pt=H.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),st||Pt.attr({stroke:R.plotBorderColor,"stroke-width":R.plotBorderWidth||0,fill:"none"}),Pt[Mt](Pt.crisp({x:lt,y:pt,width:yt,height:gt},-Pt.strokeWidth())),this.isDirtyBox=!1,b(this,"afterDrawChartBox")},V.prototype.propFromSeries=function(){var tt,st,at,R=this,H=R.options.chart,Q=R.options.series;["inverted","angular","polar"].forEach(function(ht){for(st=i[H.type||H.defaultSeriesType],at=H[ht]||st&&st.prototype[ht],tt=Q&&Q.length;!at&&tt--;)(st=i[Q[tt].type])&&st.prototype[ht]&&(at=!0);R[ht]=at})},V.prototype.linkSeries=function(){var R=this,H=R.series;H.forEach(function(Q){Q.linkedSeries.length=0}),H.forEach(function(Q){var tt=Q.options.linkedTo;E(tt)&&(tt=":previous"===tt?R.series[Q.index-1]:R.get(tt))&&tt.linkedParent!==Q&&(tt.linkedSeries.push(Q),Q.linkedParent=tt,tt.enabledDataSorting&&Q.setDataSortingOptions(),Q.visible=Z(Q.options.visible,tt.options.visible,Q.visible))}),b(this,"afterLinkSeries")},V.prototype.renderSeries=function(){this.series.forEach(function(R){R.translate(),R.render()})},V.prototype.renderLabels=function(){var R=this,H=R.options.labels;H.items&&H.items.forEach(function(Q){var tt=P(H.style,Q.style),st=$(tt.left)+R.plotLeft,at=$(tt.top)+R.plotTop+12;delete tt.left,delete tt.top,R.renderer.text(Q.html,st,at).attr({zIndex:2}).css(tt).add()})},V.prototype.render=function(){var R=this.axes,H=this.colorAxis,Q=this.renderer,tt=this.options,st=function(lt){lt.forEach(function(pt){pt.visible&&pt.render()})},at=0;this.setTitle(),this.legend=new q(this,tt.legend),this.getStacks&&this.getStacks(),this.getMargins(!0),this.setChartSize(),tt=this.plotWidth,R.some(function(lt){if(lt.horiz&&lt.visible&&lt.options.labels.enabled&&lt.series.length)return at=21,!0});var ht=this.plotHeight=Math.max(this.plotHeight-at,0);R.forEach(function(lt){lt.setScale()}),this.getAxisMargins();var dt=1.1<tt/this.plotWidth,ft=1.05<ht/this.plotHeight;(dt||ft)&&(R.forEach(function(lt){(lt.horiz&&dt||!lt.horiz&&ft)&&lt.setTickInterval(!0)}),this.getMargins()),this.drawChartBox(),this.hasCartesianSeries?st(R):H&&H.length&&st(H),this.seriesGroup||(this.seriesGroup=Q.g("series-group").attr({zIndex:3}).add()),this.renderSeries(),this.renderLabels(),this.addCredits(),this.setResponsive&&this.setResponsive(),this.hasRendered=!0},V.prototype.addCredits=function(R){var H=this,Q=N(!0,this.options.credits,R);Q.enabled&&!this.credits&&(this.credits=this.renderer.text(Q.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){Q.href&&(c.location.href=Q.href)}).attr({align:Q.position.align,zIndex:8}),H.styledMode||this.credits.css(Q.style),this.credits.add().align(Q.position),this.credits.update=function(tt){H.credits=H.credits.destroy(),H.addCredits(tt)})},V.prototype.destroy=function(){var at,R=this,H=R.axes,Q=R.series,tt=R.container,st=tt&&tt.parentNode;for(b(R,"destroy"),R.renderer.forExport?e(p,R):p[R.index]=void 0,ot.chartCount--,R.renderTo.removeAttribute("data-highcharts-chart"),J(R),at=H.length;at--;)H[at]=H[at].destroy();for(this.scroller&&this.scroller.destroy&&this.scroller.destroy(),at=Q.length;at--;)Q[at]=Q[at].destroy();"title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer".split(" ").forEach(function(ht){var dt=R[ht];dt&&dt.destroy&&(R[ht]=dt.destroy())}),tt&&(tt.innerHTML=v.emptyHTML,J(tt),st&&_(tt)),W(R,function(ht,dt){delete R[dt]})},V.prototype.firstRender=function(){var R=this,H=R.options;(!R.isReadyToRender||R.isReadyToRender())&&(R.getContainer(),R.resetMargins(),R.setChartSize(),R.propFromSeries(),R.getAxes(),(S(H.series)?H.series:[]).forEach(function(Q){R.initSeries(Q)}),R.linkSeries(),R.setSeriesData(),b(R,"beforeRender"),I&&(R.pointer=B.isRequired()?new B(R,H):new I(R,H)),R.render(),R.pointer.getChartPosition(),!R.renderer.imgCount&&!R.hasLoaded&&R.onload(),R.temporaryDisplay(!0))},V.prototype.onload=function(){this.callbacks.concat([this.callback]).forEach(function(R){R&&typeof this.index<"u"&&R.apply(this,[this])},this),b(this,"load"),b(this,"render"),Y(this.index)&&this.setReflow(this.options.chart.reflow),this.warnIfA11yModuleNotLoaded(),this.hasLoaded=!0},V.prototype.warnIfA11yModuleNotLoaded=function(){var R=this.options,H=this.title;R&&!this.accessibility&&(this.renderer.boxWrapper.attr({role:"img","aria-label":(H&&H.element.textContent||"").replace(/</g,"&lt;")}),R.accessibility&&!1===R.accessibility.enabled||l('Highcharts warning: Consider including the "accessibility.js" module to make your chart more usable for people with disabilities. Set the "accessibility.enabled" option to false to remove this warning. See https://www.highcharts.com/docs/accessibility/accessibility-module.',!1,this))},V.prototype.addSeries=function(R,H,Q){var st,tt=this;return R&&(H=Z(H,!0),b(tt,"addSeries",{options:R},function(){st=tt.initSeries(R),tt.isDirtyLegend=!0,tt.linkSeries(),st.enabledDataSorting&&st.setData(R.data,!1),b(tt,"afterAddSeries",{series:st}),H&&tt.redraw(Q)})),st},V.prototype.addAxis=function(R,H,Q,tt){return this.createAxis(H?"xAxis":"yAxis",{axis:R,redraw:Q,animation:tt})},V.prototype.addColorAxis=function(R,H,Q){return this.createAxis("colorAxis",{axis:R,redraw:H,animation:Q})},V.prototype.createAxis=function(R,H){return R=new F(this,N(H.axis,{index:this[R].length,isX:"xAxis"===R})),Z(H.redraw,!0)&&this.redraw(H.animation),R},V.prototype.showLoading=function(R){var H=this,Q=H.options,tt=Q.loading,st=function(){at&&L(at,{left:H.plotLeft+"px",top:H.plotTop+"px",width:H.plotWidth+"px",height:H.plotHeight+"px"})},at=H.loadingDiv,ht=H.loadingSpan;at||(H.loadingDiv=at=m("div",{className:"highcharts-loading highcharts-loading-hidden"},null,H.container)),ht||(H.loadingSpan=ht=m("span",{className:"highcharts-loading-inner"},null,at),s(H,"redraw",st)),at.className="highcharts-loading",v.setElementHTML(ht,Z(R,Q.lang.loading,"")),H.styledMode||(L(at,P(tt.style,{zIndex:10})),L(ht,tt.labelStyle),H.loadingShown||(L(at,{opacity:0,display:""}),x(at,{opacity:tt.style.opacity||.5},{duration:tt.showDuration||0}))),H.loadingShown=!0,st()},V.prototype.hideLoading=function(){var R=this.options,H=this.loadingDiv;H&&(H.className="highcharts-loading highcharts-loading-hidden",this.styledMode||x(H,{opacity:0},{duration:R.loading.hideDuration||100,complete:function(){L(H,{display:"none"})}})),this.loadingShown=!1},V.prototype.update=function(R,H,Q,tt){var ft,lt,st=this,at={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},ht=R.isResponsiveOptions,dt=[];b(st,"update",{options:R}),ht||st.setResponsive(!1,!0),R=a(R,st.options),st.userOptions=N(st.userOptions,R);var pt=R.chart;if(pt){if(N(!0,st.options.chart,pt),"className"in pt&&st.setClassName(pt.className),"reflow"in pt&&st.setReflow(pt.reflow),"inverted"in pt||"polar"in pt||"type"in pt){st.propFromSeries();var yt=!0}"alignTicks"in pt&&(yt=!0),"events"in pt&&r(this,pt),W(pt,function(gt,mt){-1!==st.propsRequireUpdateSeries.indexOf("chart."+mt)&&(ft=!0),-1!==st.propsRequireDirtyBox.indexOf(mt)&&(st.isDirtyBox=!0),-1!==st.propsRequireReflow.indexOf(mt)&&(ht?st.isDirtyBox=!0:lt=!0)}),!st.styledMode&&pt.style&&st.renderer.setStyle(st.options.chart.style||{})}!st.styledMode&&R.colors&&(this.options.colors=R.colors),R.time&&(this.time===j&&(this.time=new y(R.time)),N(!0,st.options.time,R.time)),W(R,function(gt,mt){st[mt]&&"function"==typeof st[mt].update?st[mt].update(gt,!1):"function"==typeof st[at[mt]]?st[at[mt]](gt):"colors"!==mt&&-1===st.collectionsWithUpdate.indexOf(mt)&&N(!0,st.options[mt],R[mt]),"chart"!==mt&&-1!==st.propsRequireUpdateSeries.indexOf(mt)&&(ft=!0)}),this.collectionsWithUpdate.forEach(function(gt){if(R[gt]){var mt=[];st[gt].forEach(function(ut,Ct){ut.options.isInternal||mt.push(Z(ut.options.index,Ct))}),K(R[gt]).forEach(function(ut,Ct){var xt,St=Y(ut.id);St&&(xt=st.get(ut.id)),!xt&&st[gt]&&(xt=st[gt][mt?mt[Ct]:Ct])&&St&&Y(xt.options.id)&&(xt=void 0),xt&&xt.coll===gt&&(xt.update(ut,!1),Q&&(xt.touched=!0)),!xt&&Q&&st.collectionsWithInit[gt]&&(st.collectionsWithInit[gt][0].apply(st,[ut].concat(st.collectionsWithInit[gt][1]||[]).concat([!1])).touched=!0)}),Q&&st[gt].forEach(function(ut){ut.touched||ut.options.isInternal?delete ut.touched:dt.push(ut)})}}),dt.forEach(function(gt){gt.chart&&gt.remove&&gt.remove(!1)}),yt&&st.axes.forEach(function(gt){gt.update({},!1)}),ft&&st.getSeriesOrderByLinks().forEach(function(gt){gt.chart&&gt.update({},!1)},this),yt=pt&&pt.width,pt=pt&&(E(pt.height)?nt(pt.height,yt||st.chartWidth):pt.height),lt||u(yt)&&yt!==st.chartWidth||u(pt)&&pt!==st.chartHeight?st.setSize(yt,pt,tt):Z(H,!0)&&st.redraw(tt),b(st,"afterUpdate",{options:R,redraw:H,animation:tt})},V.prototype.setSubtitle=function(R,H){this.applyDescription("subtitle",R),this.layOutTitles(H)},V.prototype.setCaption=function(R,H){this.applyDescription("caption",R),this.layOutTitles(H)},V.prototype.showResetZoom=function(){function R(){H.zoomOut()}var H=this,Q=A.lang,tt=H.options.chart.zooming.resetButton,st=tt.theme,at="chart"===tt.relativeTo||"spacingBox"===tt.relativeTo?null:"scrollablePlotBox";b(this,"beforeShowResetZoom",null,function(){H.resetZoomButton=H.renderer.button(Q.resetZoom,null,null,R,st).attr({align:tt.position.align,title:Q.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(tt.position,!1,at)}),b(this,"afterShowResetZoom")},V.prototype.zoomOut=function(){b(this,"selection",{resetSelection:!0},this.zoom)},V.prototype.zoom=function(R){var st,H=this,Q=H.pointer,tt=!1;!R||R.resetSelection?(H.axes.forEach(function(ht){st=ht.zoom()}),Q.initiated=!1):R.xAxis.concat(R.yAxis).forEach(function(ht){var dt=ht.axis;(Q[dt.isXAxis?"zoomX":"zoomY"]&&Y(Q.mouseDownX)&&Y(Q.mouseDownY)&&H.isInsidePlot(Q.mouseDownX-H.plotLeft,Q.mouseDownY-H.plotTop,{axis:dt})||!Y(H.inverted?Q.mouseDownX:Q.mouseDownY))&&(st=dt.zoom(ht.min,ht.max),dt.displayBtn&&(tt=!0))});var at=H.resetZoomButton;tt&&!at?H.showResetZoom():!tt&&z(at)&&(H.resetZoomButton=at.destroy()),st&&H.redraw(Z(H.options.chart.animation,R&&R.animation,100>H.pointCount))},V.prototype.pan=function(R,H){var Q=this,tt=Q.hoverPoints;H="object"==typeof H?H:{enabled:H,type:"x"};var st=Q.options.chart;st&&st.panning&&(st.panning=H);var ht,at=H.type;b(this,"pan",{originalEvent:R},function(){tt&&tt.forEach(function(lt){lt.setState()});var dt=Q.xAxis;"xy"===at?dt=dt.concat(Q.yAxis):"y"===at&&(dt=Q.yAxis);var ft={};dt.forEach(function(lt){if(lt.options.panningEnabled&&!lt.options.isInternal){var pt=lt.horiz,yt=R[pt?"chartX":"chartY"],gt=Q[pt=pt?"mouseDownX":"mouseDownY"],mt=lt.minPointOffset||0,ut=lt.reversed&&!Q.inverted||!lt.reversed&&Q.inverted?-1:1,Ct=lt.getExtremes(),St=lt.toValue(gt-yt,!0)+mt*ut,xt=lt.toValue(gt+lt.len-yt,!0)-(mt*ut||lt.isXAxis&&lt.pointRangePadding||0),Pt=xt<St;ut=lt.hasVerticalPanning(),gt=Pt?xt:St,St=Pt?St:xt;var kt=lt.panningState;!ut||lt.isXAxis||kt&&!kt.isDirty||lt.series.forEach(function(Mt){var At=Mt.getProcessedData(!0);At=Mt.getExtremes(At.yData,!0),kt||(kt={startMin:Number.MAX_VALUE,startMax:-Number.MAX_VALUE}),u(At.dataMin)&&u(At.dataMax)&&(kt.startMin=Math.min(Z(Mt.options.threshold,1/0),At.dataMin,kt.startMin),kt.startMax=Math.max(Z(Mt.options.threshold,-1/0),At.dataMax,kt.startMax))}),ut=Math.min(Z(kt&&kt.startMin,Ct.dataMin),mt?Ct.min:lt.toValue(lt.toPixels(Ct.min)-lt.minPixelPadding)),xt=Math.max(Z(kt&&kt.startMax,Ct.dataMax),mt?Ct.max:lt.toValue(lt.toPixels(Ct.max)+lt.minPixelPadding)),lt.panningState=kt,lt.isOrdinal||(0<(mt=ut-gt)&&(St+=mt,gt=ut),0<(mt=St-xt)&&(St=xt,gt-=mt),lt.series.length&&gt!==Ct.min&&St!==Ct.max&&gt>=ut&&St<=xt&&(lt.setExtremes(gt,St,!1,!1,{trigger:"pan"}),!Q.resetZoomButton&&gt!==ut&&St!==xt&&at.match("y")&&(Q.showResetZoom(),lt.displayBtn=!1),ht=!0),ft[pt]=yt)}}),W(ft,function(lt,pt){Q[pt]=lt}),ht&&Q.redraw(!1),L(Q.container,{cursor:"move"})})},V}(),P(G.prototype,{callbacks:[],collectionsWithInit:{xAxis:[G.prototype.addAxis,[!0]],yAxis:[G.prototype.addAxis,[!1]],series:[G.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:"backgroundColor borderColor borderWidth borderRadius plotBackgroundColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),propsRequireReflow:"margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft".split(" "),propsRequireUpdateSeries:"chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions time tooltip".split(" ")}),G}),ct(U,"Core/Legend/LegendSymbol.js",[U["Core/Utilities.js"]],function(G){var it,ot,F=G.extend,M=G.merge,rt=G.pick;return(ot=it||(it={})).drawLineMarker=function(q){var B=this.legendItem=this.legendItem||{},I=this.options,O=q.symbolWidth,g=q.symbolHeight,f=g/2,y=this.chart.renderer,C=B.group;q=q.baseline-Math.round(.3*q.fontMetrics.b);var v={},x=I.marker,w=0;this.chart.styledMode||(v={"stroke-width":Math.min(I.lineWidth||0,24)},I.dashStyle?v.dashstyle=I.dashStyle:"square"!==I.linecap&&(v["stroke-linecap"]="round")),B.line=y.path().addClass("highcharts-graph").attr(v).add(C),v["stroke-linecap"]&&(w=Math.min(B.line.strokeWidth(),O)/2),B.line.attr({d:[["M",w,q],["L",O-w,q]]}),x&&!1!==x.enabled&&O&&(I=Math.min(rt(x.radius,f),f),0===this.symbol.indexOf("url")&&(x=M(x,{width:g,height:g}),I=0),B.symbol=B=y.symbol(this.symbol,O/2-I,q-I,2*I,2*I,F({context:"legend"},x)).addClass("highcharts-point").add(C),B.isMarker=!0)},ot.drawRectangle=function(q,B){var I=q.symbolHeight,O=q.options.squareSymbol;(B=B.legendItem||{}).symbol=this.chart.renderer.rect(O?(q.symbolWidth-I)/2:0,q.baseline-I+1,O?I:q.symbolWidth,I,rt(q.options.symbolRadius,I/2)).addClass("highcharts-point").attr({zIndex:3}).add(B.group)},it}),ct(U,"Core/Series/SeriesDefaults.js",[],function(){return{lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1e3},events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",borderWidth:0,defer:!0,formatter:function(){return"number"!=typeof this.y?"":(0,this.series.chart.numberFormatter)(this.y,-1)},padding:5,style:{fontSize:"11px",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:50},opacity:.2}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:"x"}}),ct(U,"Core/Series/Series.js",[U["Core/Animation/AnimationUtilities.js"],U["Core/Defaults.js"],U["Core/Foundation.js"],U["Core/Globals.js"],U["Core/Legend/LegendSymbol.js"],U["Core/Series/Point.js"],U["Core/Series/SeriesDefaults.js"],U["Core/Series/SeriesRegistry.js"],U["Core/Renderer/SVG/SVGElement.js"],U["Core/Utilities.js"]],function(G,F,M,rt,it,ot,q,B,I,O){var g=G.animObject,f=G.setAnimation,y=F.defaultOptions,C=M.registerEventOptions,v=rt.hasTouch,x=rt.svg,w=rt.win,T=B.seriesTypes,A=O.arrayMax,j=O.arrayMin,k=O.clamp,r=O.cleanRecursively,p=O.correctFloat,o=O.defined,h=O.erase,t=O.error,c=O.extend,i=O.find,s=O.fireEvent,d=O.getNestedProperty,a=O.isArray,m=O.isNumber,L=O.isString,Y=O.merge,_=O.objectEach,e=O.pick,l=O.removeEvent,P=O.splat,D=O.syncTimeout;return G=function(){function b(){this.zones=this.yAxis=this.xAxis=this.userOptions=this.tooltipOptions=this.processedYData=this.processedXData=this.points=this.options=this.linkedSeries=this.index=this.eventsToUnbind=this.eventOptions=this.data=this.chart=this._i=void 0}return b.prototype.init=function(n,S){s(this,"init",{options:S});var u=this,z=n.series;this.eventsToUnbind=[],u.chart=n,u.options=u.setOptions(S),S=u.options,u.linkedSeries=[],u.bindAxes(),c(u,{name:S.name,state:"",visible:!1!==S.visible,selected:!0===S.selected}),C(this,S);var N,E=S.events;(E&&E.click||S.point&&S.point.events&&S.point.events.click||S.allowPointSelect)&&(n.runTrackerClick=!0),u.getColor(),u.getSymbol(),u.parallelArrays.forEach(function(W){u[W+"Data"]||(u[W+"Data"]=[])}),u.isCartesian&&(n.hasCartesianSeries=!0),z.length&&(N=z[z.length-1]),u._i=e(N&&N._i,-1)+1,u.opacity=u.options.opacity,n.orderSeries(this.insert(z)),S.dataSorting&&S.dataSorting.enabled?u.setDataSortingOptions():u.points||u.data||u.setData(S.data,!1),s(this,"afterInit")},b.prototype.is=function(n){return T[n]&&this instanceof T[n]},b.prototype.insert=function(n){var u,S=this.options.index;if(m(S)){for(u=n.length;u--;)if(S>=e(n[u].options.index,n[u]._i)){n.splice(u+1,0,this);break}-1===u&&n.unshift(this),u+=1}else n.push(this);return e(u,n.length-1)},b.prototype.bindAxes=function(){var z,n=this,S=n.options,u=n.chart;s(this,"bindAxes",null,function(){(n.axisTypes||[]).forEach(function(E){var N=0;u[E].forEach(function(W){z=W.options,(S[E]===N&&!z.isInternal||typeof S[E]<"u"&&S[E]===z.id||typeof S[E]>"u"&&0===z.index)&&(n.insert(W.series),n[E]=W,W.isDirty=!0),z.isInternal||N++}),n[E]||n.optionalAxis===E||t(18,!0,u)})}),s(this,"afterBindAxes")},b.prototype.updateParallelArrays=function(n,S){var u=n.series,z=arguments,E=m(S)?function(N){var W="y"===N&&u.toYData?u.toYData(n):n[N];u[N+"Data"][S]=W}:function(N){Array.prototype[S].apply(u[N+"Data"],Array.prototype.slice.call(z,2))};u.parallelArrays.forEach(E)},b.prototype.hasData=function(){return this.visible&&typeof this.dataMax<"u"&&typeof this.dataMin<"u"||this.visible&&this.yData&&0<this.yData.length},b.prototype.autoIncrement=function(n){var W,S=this.options,u=S.pointIntervalUnit,z=S.relativeXValue,E=this.chart.time,N=this.xIncrement;return N=e(N,S.pointStart,0),this.pointInterval=W=e(this.pointInterval,S.pointInterval,1),z&&m(n)&&(W*=n),u&&(S=new E.Date(N),"day"===u?E.set("Date",S,E.get("Date",S)+W):"month"===u?E.set("Month",S,E.get("Month",S)+W):"year"===u&&E.set("FullYear",S,E.get("FullYear",S)+W),W=S.getTime()-N),z&&m(n)?N+W:(this.xIncrement=N+W,N)},b.prototype.setDataSortingOptions=function(){var n=this.options;c(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),o(n.pointRange)||(n.pointRange=1)},b.prototype.setOptions=function(n){var S=this.chart,u=S.options,z=u.plotOptions,E=S.userOptions||{};n=Y(n),S=S.styledMode;var N={plotOptions:z,userOptions:n};s(this,"setOptions",N);var W=N.plotOptions[this.type],Z=E.plotOptions||{};return this.userOptions=N.userOptions,E=Y(W,z.series,E.plotOptions&&E.plotOptions[this.type],n),this.tooltipOptions=Y(y.tooltip,y.plotOptions.series&&y.plotOptions.series.tooltip,y.plotOptions[this.type].tooltip,u.tooltip.userOptions,z.series&&z.series.tooltip,z[this.type].tooltip,n.tooltip),this.stickyTracking=e(n.stickyTracking,Z[this.type]&&Z[this.type].stickyTracking,Z.series&&Z.series.stickyTracking,!(!this.tooltipOptions.shared||this.noSharedTooltip)||E.stickyTracking),null===W.marker&&delete E.marker,this.zoneAxis=E.zoneAxis,z=this.zones=(E.zones||[]).slice(),!E.negativeColor&&!E.negativeFillColor||E.zones||(u={value:E[this.zoneAxis+"Threshold"]||E.threshold||0,className:"highcharts-negative"},S||(u.color=E.negativeColor,u.fillColor=E.negativeFillColor),z.push(u)),z.length&&o(z[z.length-1].value)&&z.push(S?{}:{color:this.color,fillColor:this.fillColor}),s(this,"afterSetOptions",{options:E}),E},b.prototype.getName=function(){return e(this.options.name,"Series "+(this.index+1))},b.prototype.getCyclic=function(n,S,u){var z=this.chart,E=this.userOptions,N=n+"Index",W=n+"Counter",Z=u?u.length:e(z.options.chart[n+"Count"],z[n+"Count"]);if(!S){var $=e(E[N],E["_"+N]);o($)||(z.series.length||(z[W]=0),E["_"+N]=$=z[W]%Z,z[W]+=1),u&&(S=u[$])}typeof $<"u"&&(this[N]=$),this[n]=S},b.prototype.getColor=function(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||y.plotOptions[this.type].color,this.chart.options.colors)},b.prototype.getPointsCollection=function(){return(this.hasGroupedData?this.points:this.data)||[]},b.prototype.getSymbol=function(){this.getCyclic("symbol",this.options.marker.symbol,this.chart.options.symbols)},b.prototype.findPointIndex=function(n,S){var W,Z,u=n.id,z=n.x,E=this.points,N=this.options.dataSorting;if(u)(N=this.chart.get(u))instanceof ot&&(W=N);else if((this.linkedParent||this.enabledDataSorting||this.options.relativeXValue)&&(W=function(nt){return!nt.touched&&nt.index===n.index},N&&N.matchByName?W=function(nt){return!nt.touched&&nt.name===n.name}:this.options.relativeXValue&&(W=function(nt){return!nt.touched&&nt.options.x===n.x}),!(W=i(E,W))))return;if(W){var $=W&&W.index;typeof $<"u"&&(Z=!0)}return typeof $>"u"&&m(z)&&($=this.xData.indexOf(z,S)),-1!==$&&typeof $<"u"&&this.cropped&&($=$>=this.cropStart?$-this.cropStart:$),!Z&&m($)&&E[$]&&E[$].touched&&($=void 0),$},b.prototype.updateData=function(n,S){var $,nt,J,u=this.options,z=u.dataSorting,E=this.points,N=[],W=this.requireSorting,Z=n.length===E.length,K=!0;if(this.xIncrement=null,n.forEach(function(X,et){var V=o(X)&&this.pointClass.prototype.optionsToObject.call({series:this},X)||{};V.id||m(V.x)?(-1===(V=this.findPointIndex(V,J))||typeof V>"u"?N.push(X):E[V]&&X!==u.data[V]?(E[V].update(X,!1,null,!1),E[V].touched=!0,W&&(J=V+1)):E[V]&&(E[V].touched=!0),(!Z||et!==V||z&&z.enabled||this.hasDerivedData)&&($=!0)):N.push(X)},this),$)for(n=E.length;n--;)(nt=E[n])&&!nt.touched&&nt.remove&&nt.remove(!1,S);else!Z||z&&z.enabled?K=!1:(n.forEach(function(X,et){X!==E[et].y&&E[et].update&&E[et].update(X,!1,null,!1)}),N.length=0);return E.forEach(function(X){X&&(X.touched=!1)}),!!K&&(N.forEach(function(X){this.addPoint(X,!1,null,null,!1)},this),null===this.xIncrement&&this.xData&&this.xData.length&&(this.xIncrement=A(this.xData),this.autoIncrement()),!0)},b.prototype.setData=function(n,S,u,z){void 0===S&&(S=!0);var E=this,N=E.points,W=N&&N.length||0,Z=E.options,$=E.chart,nt=Z.dataSorting,J=E.xAxis,K=Z.turboThreshold,X=this.xData,et=this.yData,V=E.pointArrayMap;V=V&&V.length;var H,R=Z.keys,Q=0,tt=1,st=null;if(!$.options.chart.allowMutatingData){Z.data&&delete E.options.data,E.userOptions.data&&delete E.userOptions.data;var at=Y(!0,n)}if(at=(n=at||n||[]).length,nt&&nt.enabled&&(n=this.sortData(n)),$.options.chart.allowMutatingData&&!1!==z&&at&&W&&!E.cropped&&!E.hasGroupedData&&E.visible&&!E.boosted&&(H=this.updateData(n,u)),!H){if(E.xIncrement=null,E.colorCounter=0,this.parallelArrays.forEach(function(ht){E[ht+"Data"].length=0}),K&&at>K)if(st=E.getFirstValidPoint(n),m(st))for(u=0;u<at;u++)X[u]=this.autoIncrement(),et[u]=n[u];else if(a(st))if(V)if(st.length===V)for(u=0;u<at;u++)X[u]=this.autoIncrement(),et[u]=n[u];else for(u=0;u<at;u++)X[u]=(z=n[u])[0],et[u]=z.slice(1,V+1);else if(R&&(Q=0<=(Q=R.indexOf("x"))?Q:0,tt=0<=(tt=R.indexOf("y"))?tt:1),1===st.length&&(tt=0),Q===tt)for(u=0;u<at;u++)X[u]=this.autoIncrement(),et[u]=n[u][tt];else for(u=0;u<at;u++)X[u]=(z=n[u])[Q],et[u]=z[tt];else t(12,!1,$);else for(u=0;u<at;u++)typeof n[u]<"u"&&(E.pointClass.prototype.applyOptions.apply(z={series:E},[n[u]]),E.updateParallelArrays(z,u));for(et&&L(et[0])&&t(14,!0,$),E.data=[],E.options.data=E.userOptions.data=n,u=W;u--;)N[u]&&N[u].destroy&&N[u].destroy();J&&(J.minRange=J.userMinRange),E.isDirty=$.isDirtyBox=!0,E.isDirtyData=!!N,u=!1}"point"===Z.legendType&&(this.processData(),this.generatePoints()),S&&$.redraw(u)},b.prototype.sortData=function(n){var S=this,u=S.options.dataSorting.sortKey||"y",z=function(E,N){return o(N)&&E.pointClass.prototype.optionsToObject.call({series:E},N)||{}};return n.forEach(function(E,N){n[N]=z(S,E),n[N].index=N},this),n.concat().sort(function(E,N){return E=d(u,E),(N=d(u,N))<E?-1:N>E?1:0}).forEach(function(E,N){E.x=N},this),S.linkedSeries&&S.linkedSeries.forEach(function(E){var N=E.options,W=N.data;N.dataSorting&&N.dataSorting.enabled||!W||(W.forEach(function(Z,$){W[$]=z(E,Z),n[$]&&(W[$].x=n[$].x,W[$].index=$)}),E.setData(W,!1))}),n},b.prototype.getProcessedData=function(n){var S=this.xAxis,u=this.options,z=u.cropThreshold,E=n||this.getExtremesFromAll||u.getExtremesFromAll,N=this.isCartesian;n=S&&S.val2lin,u=!(!S||!S.logarithmic);var W=0,Z=this.xData,$=this.yData,nt=this.requireSorting,J=!1,K=Z.length;if(S){var X=(J=S.getExtremes()).min,et=J.max;J=!(!S.categories||S.names.length)}if(N&&this.sorted&&!E&&(!z||K>z||this.forceCrop))if(Z[K-1]<X||Z[0]>et)Z=[],$=[];else if(this.yData&&(Z[0]<X||Z[K-1]>et)){var V=this.cropData(this.xData,this.yData,X,et);Z=V.xData,$=V.yData,W=V.start,V=!0}for(z=Z.length||1;--z;)if(0<(S=u?n(Z[z])-n(Z[z-1]):Z[z]-Z[z-1])&&(typeof R>"u"||S<R))var R=S;else 0>S&&nt&&!J&&(t(15,!1,this.chart),nt=!1);return{xData:Z,yData:$,cropped:V,cropStart:W,closestPointRange:R}},b.prototype.processData=function(n){if(this.isCartesian&&!this.isDirty&&!this.xAxis.isDirty&&!this.yAxis.isDirty&&!n)return!1;n=this.getProcessedData(),this.cropped=n.cropped,this.cropStart=n.cropStart,this.processedXData=n.xData,this.processedYData=n.yData,this.closestPointRange=this.basePointRange=n.closestPointRange,s(this,"afterProcessData")},b.prototype.cropData=function(n,S,u,z,E){var W,N=n.length,Z=0,$=N;for(E=e(E,this.cropShoulder),W=0;W<N;W++)if(n[W]>=u){Z=Math.max(0,W-E);break}for(u=W;u<N;u++)if(n[u]>z){$=u+E;break}return{xData:n.slice(Z,$),yData:S.slice(Z,$),start:Z,end:$}},b.prototype.generatePoints=function(){var n=this.options,S=this.processedData||n.data,u=this.processedXData,z=this.processedYData,E=this.pointClass,N=u.length,W=this.cropStart||0,Z=this.hasGroupedData,$=n.keys,nt=[];n=n.dataGrouping&&n.dataGrouping.groupAll?W:0;var J,K,X=this.data;if(!X&&!Z){var et=[];et.length=S.length,X=this.data=et}for($&&Z&&(this.options.keys=!1),K=0;K<N;K++){if(et=W+K,Z){var V=(new E).init(this,[u[K]].concat(P(z[K])));V.dataGroup=this.groupMap[n+K],V.dataGroup.options&&(V.options=V.dataGroup.options,c(V,V.dataGroup.options),delete V.dataLabels)}else(V=X[et])||typeof S[et]>"u"||(X[et]=V=(new E).init(this,S[et],u[K]));V&&(V.index=Z?n+K:et,nt[K]=V)}if(this.options.keys=$,X&&(N!==(J=X.length)||Z))for(K=0;K<J;K++)K!==W||Z||(K+=N),X[K]&&(X[K].destroyElements(),X[K].plotX=void 0);this.data=X,this.points=nt,s(this,"afterGeneratePoints")},b.prototype.getXExtremes=function(n){return{min:j(n),max:A(n)}},b.prototype.getExtremes=function(n,S){var u=this.xAxis,z=this.yAxis,E=this.processedXData||this.xData,N=[],W=this.requireSorting?this.cropShoulder:0;z=!!z&&z.positiveValuesOnly;var Z,$=0,nt=0,J=0,K=(n=n||this.stackedYData||this.processedYData||[]).length;if(u){var X=u.getExtremes();$=X.min,nt=X.max}for(Z=0;Z<K;Z++){var et=E[Z],V=(m(X=n[Z])||a(X))&&(X.length||0<X||!z);if(et=S||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!u||(E[Z+W]||et)>=$&&(E[Z-W]||et)<=nt,V&&et)if(V=X.length)for(;V--;)m(X[V])&&(N[J++]=X[V]);else N[J++]=X}return n={activeYData:N,dataMin:j(N),dataMax:A(N)},s(this,"afterGetExtremes",{dataExtremes:n}),n},b.prototype.applyExtremes=function(){var n=this.getExtremes();return this.dataMin=n.dataMin,this.dataMax=n.dataMax,n},b.prototype.getFirstValidPoint=function(n){for(var S=n.length,u=0,z=null;null===z&&u<S;)z=n[u],u++;return z},b.prototype.translate=function(){this.processedXData||this.processData(),this.generatePoints();var et,V,n=this.options,S=n.stacking,u=this.xAxis,z=u.categories,E=this.enabledDataSorting,N=this.yAxis,W=this.points,Z=W.length,$=this.pointPlacementToXValue(),nt=!!$,J=n.threshold,K=n.startFromThreshold?J:0,X=this.zoneAxis||"y",R=Number.MAX_VALUE;for(et=0;et<Z;et++){var H=W[et],Q=H.x,tt=void 0,st=void 0,at=H.y,ht=H.low,dt=S&&N.stacking&&N.stacking.stacks[(this.negStacks&&at<(K?0:J)?"-":"")+this.stackKey];if((N.positiveValuesOnly&&!N.validatePositiveValue(at)||u.positiveValuesOnly&&!u.validatePositiveValue(Q))&&(H.isNull=!0),H.plotX=V=p(k(u.translate(Q,0,0,0,1,$,"flags"===this.type),-1e5,1e5)),S&&this.visible&&dt&&dt[Q]){var ft=this.getStackIndicator(ft,Q,this.index);!H.isNull&&ft.key&&(st=(tt=dt[Q]).points[ft.key]),tt&&a(st)&&(at=st[1],(ht=st[0])===K&&ft.key===dt[Q].base&&(ht=e(m(J)?J:N.min)),N.positiveValuesOnly&&o(ht)&&0>=ht&&(ht=void 0),H.total=H.stackTotal=e(tt.total),H.percentage=o(H.y)&&tt.total?H.y/tt.total*100:void 0,H.stackY=at,this.irregularWidths||tt.setOffset(this.pointXOffset||0,this.barW||0,void 0,void 0,void 0,this.xAxis))}if(H.yBottom=o(ht)?k(N.translate(ht,0,1,0,1),-1e5,1e5):void 0,this.dataModify&&(at=this.dataModify.modifyValue(at,et)),H.plotY=void 0,m(at)&&typeof(tt=N.translate(at,!1,!0,!1,!0))<"u"&&(H.plotY=k(tt,-1e5,1e5)),H.isInside=this.isPointInside(H),H.clientX=nt?p(u.translate(Q,0,0,0,1,$)):V,H.negative=H[X]<(n[X+"Threshold"]||J||0),H.category=e(z&&z[H.x],H.x),!H.isNull&&!1!==H.visible){typeof lt<"u"&&(R=Math.min(R,Math.abs(V-lt)));var lt=V}H.zone=this.zones.length?H.getZone():void 0,!H.graphic&&this.group&&E&&(H.isNew=!0)}this.closestPointRangePx=R,s(this,"afterTranslate")},b.prototype.getValidPoints=function(n,S,u){var z=this.chart;return(n||this.points||[]).filter(function(E){return!(S&&!z.isInsidePlot(E.plotX,E.plotY,{inverted:z.inverted}))&&!1!==E.visible&&(u||!E.isNull)})},b.prototype.getClipBox=function(){var n=this.chart,S=this.xAxis,u=this.yAxis,z=Y(n.clipBox);return S&&S.len!==n.plotSizeX&&(z.width=S.len),u&&u.len!==n.plotSizeY&&(z.height=u.len),z},b.prototype.getSharedClipKey=function(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0)},b.prototype.setClip=function(){var n=this.chart,S=this.group,u=this.markerGroup,z=n.sharedClips;n=n.renderer;var E=this.getClipBox(),N=this.getSharedClipKey(),W=z[N];W?W.animate(E):z[N]=W=n.clipRect(E),S&&S.clip(!1===this.options.clip?void 0:W),u&&u.clip()},b.prototype.animate=function(n){var S=this.chart,u=this.group,z=this.markerGroup,E=S.inverted,N=g(this.options.animation),W=[this.getSharedClipKey(),N.duration,N.easing,N.defer].join(),Z=S.sharedClips[W],$=S.sharedClips[W+"m"];if(n&&u)N=this.getClipBox(),Z?Z.attr("height",N.height):(N.width=0,E&&(N.x=S.plotHeight),Z=S.renderer.clipRect(N),S.sharedClips[W]=Z,$=S.renderer.clipRect({x:-99,y:-99,width:E?S.plotWidth+199:99,height:E?99:S.plotHeight+199}),S.sharedClips[W+"m"]=$),u.clip(Z),z&&z.clip($);else if(Z&&!Z.hasClass("highcharts-animating")){S=this.getClipBox();var nt=N.step;z&&z.element.childNodes.length&&(N.step=function(J,K){nt&&nt.apply(K,arguments),"width"===K.prop&&$&&$.element&&$.attr(E?"height":"width",J+99)}),Z.addClass("highcharts-animating").animate(S,N)}},b.prototype.afterAnimate=function(){var n=this;this.setClip(),_(this.chart.sharedClips,function(S,u,z){S&&!n.chart.container.querySelector('[clip-path="url(#'.concat(S.id,')"]'))&&(S.destroy(),delete z[u])}),this.finishedAnimating=!0,s(this,"afterAnimate")},b.prototype.drawPoints=function(n){void 0===n&&(n=this.points);var $,nt,S=this.chart,u=S.styledMode,z=this.colorAxis,E=this.options.marker,N=this[this.specialGroup||"markerGroup"],W=this.xAxis,Z=e(E.enabled,!(W&&!W.isRadial)||null,this.closestPointRangePx>=E.enabledThreshold*E.radius);if(!1!==E.enabled||this._hasPointMarkers)for($=0;$<n.length;$++){var J=n[$],K=(nt=J.graphic)?"animate":"attr",X=J.marker||{},et=!!J.marker;if((Z&&typeof X.enabled>"u"||X.enabled)&&!J.isNull&&!1!==J.visible){var V=e(X.symbol,this.symbol,"rect"),R=this.markerAttribs(J,J.selected&&"select");this.enabledDataSorting&&(J.startXPos=W.reversed?-(R.width||0):W.width);var H=!1!==J.isInside;!nt&&H&&(0<(R.width||0)||J.hasImage)&&(J.graphic=nt=S.renderer.symbol(V,R.x,R.y,R.width,R.height,et?X:E).add(N),this.enabledDataSorting&&S.hasRendered&&(nt.attr({x:J.startXPos}),K="animate")),nt&&"animate"===K&&nt[H?"show":"hide"](H).animate(R),nt&&(X=this.pointAttribs(J,u||!J.selected?void 0:"select"),u?z&&nt.css({fill:X.fill}):nt[K](X)),nt&&nt.addClass(J.getClassName(),!0)}else nt&&(J.graphic=nt.destroy())}},b.prototype.markerAttribs=function(n,S){var u=this.options,z=u.marker,E=n.marker||{},N=E.symbol||z.symbol,W={},Z=e(E.radius,z&&z.radius);return S&&(z=z.states[S],Z=e((S=E.states&&E.states[S])&&S.radius,z&&z.radius,Z&&Z+(z&&z.radiusPlus||0))),n.hasImage=N&&0===N.indexOf("url"),n.hasImage&&(Z=0),n=n.pos(),m(Z)&&n&&(W.x=n[0]-Z,W.y=n[1]-Z,u.crisp&&(W.x=Math.floor(W.x))),Z&&(W.width=W.height=2*Z),W},b.prototype.pointAttribs=function(n,S){var u=this.options.marker,z=n&&n.options,E=z&&z.marker||{},N=z&&z.color,W=n&&n.color,Z=n&&n.zone&&n.zone.color,$=this.color;return n=e(E.lineWidth,u.lineWidth),z=1,$=N||Z||W||$,N=E.fillColor||u.fillColor||$,W=E.lineColor||u.lineColor||$,u=u.states[S=S||"normal"]||{},n=e((S=E.states&&E.states[S]||{}).lineWidth,u.lineWidth,n+e(S.lineWidthPlus,u.lineWidthPlus,0)),{stroke:W=S.lineColor||u.lineColor||W,"stroke-width":n,fill:N=S.fillColor||u.fillColor||N,opacity:z=e(S.opacity,u.opacity,z)}},b.prototype.destroy=function(n){var W,Z,$,S=this,u=S.chart,z=/AppleWebKit\/533/.test(w.navigator.userAgent),E=S.data||[];for(s(S,"destroy",{keepEventsForUpdate:n}),this.removeEvents(n),(S.axisTypes||[]).forEach(function(nt){($=S[nt])&&$.series&&(h($.series,S),$.isDirty=$.forceRedraw=!0)}),S.legendItem&&S.chart.legend.destroyItem(S),W=E.length;W--;)(Z=E[W])&&Z.destroy&&Z.destroy();S.clips&&S.clips.forEach(function(nt){return nt.destroy()}),O.clearTimeout(S.animationTimeout),_(S,function(nt,J){nt instanceof I&&!nt.survive&&nt[z&&"group"===J?"hide":"destroy"]()}),u.hoverSeries===S&&(u.hoverSeries=void 0),h(u.series,S),u.orderSeries(),_(S,function(nt,J){n&&"hcEvents"===J||delete S[J]})},b.prototype.applyZones=function(){var J,K,X,et,V,R,H,Q,n=this,S=this.chart,u=S.renderer,z=this.zones,E=this.clips||[],N=this.graph,W=this.area,Z=Math.max(S.plotWidth,S.plotHeight),$=this[(this.zoneAxis||"y")+"Axis"],nt=S.inverted,tt=!1;if(z.length&&(N||W)&&$&&typeof $.min<"u"){var st=$.reversed,at=$.horiz;N&&!this.showLine&&N.hide(),W&&W.hide();var ht=$.getExtremes();z.forEach(function(dt,ft){J=st?at?S.plotWidth:0:at?0:$.toPixels(ht.min)||0,J=k(e(K,J),0,Z),K=k(Math.round($.toPixels(e(dt.value,ht.max),!0)||0),0,Z),tt&&(J=K=$.toPixels(ht.max)),et=Math.abs(J-K),V=Math.min(J,K),R=Math.max(J,K),$.isXAxis?(X={x:nt?R:V,y:0,width:et,height:Z},at||(X.x=S.plotHeight-X.x)):(X={x:0,y:nt?R:V,width:Z,height:et},at&&(X.y=S.plotWidth-X.y)),nt&&u.isVML&&(X=$.isXAxis?{x:0,y:st?V:R,height:X.width,width:S.chartWidth}:{x:X.y-S.plotLeft-S.spacingBox.x,y:0,width:X.height,height:S.chartHeight}),E[ft]?E[ft].animate(X):E[ft]=u.clipRect(X),H=n["zone-area-"+ft],Q=n["zone-graph-"+ft],N&&Q&&Q.clip(E[ft]),W&&H&&H.clip(E[ft]),tt=dt.value>ht.max,n.resetZones&&0===K&&(K=void 0)}),this.clips=E}else n.visible&&(N&&N.show(),W&&W.show())},b.prototype.plotGroup=function(n,S,u,z,E){var N=this[n],W=!N;return u={visibility:u,zIndex:z||.1},typeof this.opacity>"u"||this.chart.styledMode||"inactive"===this.state||(u.opacity=this.opacity),W&&(this[n]=N=this.chart.renderer.g().add(E)),N.addClass("highcharts-"+S+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(o(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(N.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),N.attr(u)[W?"attr":"animate"](this.getPlotBox(S)),N},b.prototype.getPlotBox=function(n){var S=this.xAxis,u=this.yAxis,z=this.chart;return n=z.inverted&&!z.polar&&S&&!1!==this.invertible&&"series"===n,z.inverted&&(S=u,u=this.xAxis),{translateX:S?S.left:z.plotLeft,translateY:u?u.top:z.plotTop,rotation:n?90:0,rotationOriginX:n?(S.len-u.len)/2:0,rotationOriginY:n?(S.len+u.len)/2:0,scaleX:n?-1:1,scaleY:1}},b.prototype.removeEvents=function(n){n||l(this),this.eventsToUnbind.length&&(this.eventsToUnbind.forEach(function(S){S()}),this.eventsToUnbind.length=0)},b.prototype.render=function(){var n=this,S=n.chart,u=n.options,z=g(u.animation),E=n.visible?"inherit":"hidden",N=u.zIndex,W=n.hasRendered,Z=S.seriesGroup;S=!n.finishedAnimating&&S.renderer.isSVG?z.duration:0,s(this,"render"),n.plotGroup("group","series",E,N,Z),n.markerGroup=n.plotGroup("markerGroup","markers",E,N,Z),!1!==u.clip&&n.setClip(),n.animate&&S&&n.animate(!0),n.drawGraph&&(n.drawGraph(),n.applyZones()),n.visible&&n.drawPoints(),n.drawDataLabels&&n.drawDataLabels(),n.redrawPoints&&n.redrawPoints(),n.drawTracker&&!1!==n.options.enableMouseTracking&&n.drawTracker(),n.animate&&S&&n.animate(),W||(S&&z.defer&&(S+=z.defer),n.animationTimeout=D(function(){n.afterAnimate()},S||0)),n.isDirty=!1,n.hasRendered=!0,s(n,"afterRender")},b.prototype.redraw=function(){var n=this.isDirty||this.isDirtyData;this.translate(),this.render(),n&&delete this.kdTree},b.prototype.searchPoint=function(n,S){var u=this.xAxis,z=this.yAxis,E=this.chart.inverted;return this.searchKDTree({clientX:E?u.len-n.chartY+u.pos:n.chartX-u.pos,plotY:E?z.len-n.chartX+z.pos:n.chartY-z.pos},S,n)},b.prototype.buildKDTree=function(n){function S(E,N,W){var Z=E&&E.length;if(Z){var $=u.kdAxisArray[N%W];return E.sort(function(nt,J){return nt[$]-J[$]}),{point:E[Z=Math.floor(Z/2)],left:S(E.slice(0,Z),N+1,W),right:S(E.slice(Z+1),N+1,W)}}}this.buildingKdTree=!0;var u=this,z=-1<u.options.findNearestPointBy.indexOf("y")?2:1;delete u.kdTree,D(function(){u.kdTree=S(u.getValidPoints(null,!u.directTouch),z,z),u.buildingKdTree=!1},u.options.kdNow||n&&"touchstart"===n.type?0:1)},b.prototype.searchKDTree=function(n,S,u){var E=this,N=this.kdAxisArray[0],W=this.kdAxisArray[1],Z=S?"distX":"dist";if(S=-1<E.options.findNearestPointBy.indexOf("y")?2:1,this.kdTree||this.buildingKdTree||this.buildKDTree(u),this.kdTree)return function z($,nt,J,K){var X=nt.point,et=E.kdAxisArray[J%K],V=X,R=o($[N])&&o(X[N])?Math.pow($[N]-X[N],2):null,H=o($[W])&&o(X[W])?Math.pow($[W]-X[W],2):null;return X.dist=o(H=(R||0)+(H||0))?Math.sqrt(H):Number.MAX_VALUE,X.distX=o(R)?Math.sqrt(R):Number.MAX_VALUE,R=0>(et=$[et]-X[et])?"right":"left",nt[H=0>et?"left":"right"]&&(V=(H=z($,nt[H],J+1,K))[Z]<V[Z]?H:X),nt[R]&&Math.sqrt(et*et)<V[Z]&&(V=($=z($,nt[R],J+1,K))[Z]<V[Z]?$:V),V}(n,this.kdTree,S,S)},b.prototype.pointPlacementToXValue=function(){var n=this.options,S=n.pointRange,u=this.xAxis;return"between"===(n=n.pointPlacement)&&(n=u.reversed?-.5:.5),m(n)?n*(S||u.pointRange):0},b.prototype.isPointInside=function(n){var S=this.chart,u=this.xAxis,z=this.yAxis;return typeof n.plotY<"u"&&typeof n.plotX<"u"&&0<=n.plotY&&n.plotY<=(z?z.len:S.plotHeight)&&0<=n.plotX&&n.plotX<=(u?u.len:S.plotWidth)},b.prototype.drawTracker=function(){var n=this,S=n.options,u=S.trackByArea,z=[].concat(u?n.areaPath:n.graphPath),E=n.chart,N=E.pointer,W=E.renderer,Z=E.options.tooltip.snap,$=n.tracker,nt=function(K){E.hoverSeries!==n&&n.onMouseOver()},J="rgba(192,192,192,"+(x?1e-4:.002)+")";$?$.attr({d:z}):n.graph&&(n.tracker=W.path(z).attr({visibility:n.visible?"inherit":"hidden",zIndex:2}).addClass(u?"highcharts-tracker-area":"highcharts-tracker-line").add(n.group),E.styledMode||n.tracker.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:J,fill:u?J:"none","stroke-width":n.graph.strokeWidth()+(u?0:2*Z)}),[n.tracker,n.markerGroup,n.dataLabelsGroup].forEach(function(K){K&&(K.addClass("highcharts-tracker").on("mouseover",nt).on("mouseout",function(X){N.onTrackerMouseOut(X)}),S.cursor&&!E.styledMode&&K.css({cursor:S.cursor}),v)&&K.on("touchstart",nt)})),s(this,"afterDrawTracker")},b.prototype.addPoint=function(n,S,u,z,E){var N=this.options,W=this.data,Z=this.chart,$=this.xAxis;$=$&&$.hasNames&&$.names;var K,nt=N.data,J=this.xData;S=e(S,!0);var X={series:this};this.pointClass.prototype.applyOptions.apply(X,[n]);var et=X.x,V=J.length;if(this.requireSorting&&et<J[V-1])for(K=!0;V&&J[V-1]>et;)V--;this.updateParallelArrays(X,"splice",V,0,0),this.updateParallelArrays(X,V),$&&X.name&&($[et]=X.name),nt.splice(V,0,n),(K||this.processedData)&&(this.data.splice(V,0,null),this.processData()),"point"===N.legendType&&this.generatePoints(),u&&(W[0]&&W[0].remove?W[0].remove(!1):(W.shift(),this.updateParallelArrays(X,"shift"),nt.shift())),!1!==E&&s(this,"addPoint",{point:X}),this.isDirtyData=this.isDirty=!0,S&&Z.redraw(z)},b.prototype.removePoint=function(n,S,u){var z=this,E=z.data,N=E[n],W=z.points,Z=z.chart,$=function(){W&&W.length===E.length&&W.splice(n,1),E.splice(n,1),z.options.data.splice(n,1),z.updateParallelArrays(N||{series:z},"splice",n,1),N&&N.destroy(),z.isDirty=!0,z.isDirtyData=!0,S&&Z.redraw()};f(u,Z),S=e(S,!0),N?N.firePointEvent("remove",null,$):$()},b.prototype.remove=function(n,S,u,z){function E(){N.destroy(z),W.isDirtyLegend=W.isDirtyBox=!0,W.linkSeries(),e(n,!0)&&W.redraw(S)}var N=this,W=N.chart;!1!==u?s(N,"remove",null,E):E()},b.prototype.update=function(n,S){n=r(n,this.userOptions),s(this,"update",{options:n});var u=this,z=u.chart,E=u.userOptions,N=u.initialType||u.type,W=z.options.plotOptions,Z=T[N].prototype,$=u.finishedAnimating&&{animation:!1},nt={},J=["eventOptions","navigatorSeries","baseSeries"],K=n.type||E.type||z.options.chart.type,X=!(this.hasDerivedData||K&&K!==this.type||typeof n.pointStart<"u"||typeof n.pointInterval<"u"||typeof n.relativeXValue<"u"||n.joinBy||n.mapData||u.hasOptionChanged("dataGrouping")||u.hasOptionChanged("pointStart")||u.hasOptionChanged("pointInterval")||u.hasOptionChanged("pointIntervalUnit")||u.hasOptionChanged("keys"));if(K=K||N,X&&(J.push("data","isDirtyData","points","processedData","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","clips","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX"),!1!==n.visible&&J.push("area","graph"),u.parallelArrays.forEach(function(V){J.push(V+"Data")}),n.data&&(n.dataSorting&&c(u.options.dataSorting,n.dataSorting),this.setData(n.data,!1))),n=Y(E,$,{index:typeof E.index>"u"?u.index:E.index,pointStart:e(W&&W.series&&W.series.pointStart,E.pointStart,u.xData[0])},!X&&{data:u.options.data},n),X&&n.data&&(n.data=u.options.data),(J=["group","markerGroup","dataLabelsGroup","transformGroup","shadowGroup"].concat(J)).forEach(function(V){J[V]=u[V],delete u[V]}),W=!1,T[K]){if(W=K!==u.type,u.remove(!1,!1,!1,!0),W)if(Object.setPrototypeOf)Object.setPrototypeOf(u,T[K].prototype);else{for(et in $=Object.hasOwnProperty.call(u,"hcEvents")&&u.hcEvents,Z)u[et]=void 0;c(u,T[K].prototype),$?u.hcEvents=$:delete u.hcEvents}}else t(17,!0,z,{missingModuleFor:K});if(J.forEach(function(V){u[V]=J[V]}),u.init(z,n),X&&this.points){if(!1===(n=u.options).visible)nt.graphic=1,nt.dataLabel=1;else if(!u._hasPointLabels){var et=n.dataLabels;E=E.marker||{},!(Z=n.marker)||!1!==Z.enabled&&E.symbol===Z.symbol&&E.height===Z.height&&E.width===Z.width||(nt.graphic=1),et&&!1===et.enabled&&(nt.dataLabel=1)}for(E=0,Z=this.points;E<Z.length;E++)(et=Z[E])&&et.series&&(et.resolveColor(),Object.keys(nt).length&&et.destroyElements(nt),!1===n.showInLegend&&et.legendItem&&z.legend.destroyItem(et))}u.initialType=N,z.linkSeries(),W&&u.linkedSeries.length&&(u.isDirtyData=!0),s(this,"afterUpdate"),e(S,!0)&&z.redraw(!!X&&void 0)},b.prototype.setName=function(n){this.name=this.options.name=this.userOptions.name=n,this.chart.isDirtyLegend=!0},b.prototype.hasOptionChanged=function(n){var S=this.options[n],u=this.chart.options.plotOptions,z=this.userOptions[n];return z?S!==z:S!==e(u&&u[this.type]&&u[this.type][n],u&&u.series&&u.series[n],S)},b.prototype.onMouseOver=function(){var n=this.chart,S=n.hoverSeries;n.pointer.setHoverChartIndex(),S&&S!==this&&S.onMouseOut(),this.options.events.mouseOver&&s(this,"mouseOver"),this.setState("hover"),n.hoverSeries=this},b.prototype.onMouseOut=function(){var n=this.options,S=this.chart,u=S.tooltip,z=S.hoverPoint;S.hoverSeries=null,z&&z.onMouseOut(),this&&n.events.mouseOut&&s(this,"mouseOut"),!u||this.stickyTracking||u.shared&&!this.noSharedTooltip||u.hide(),S.series.forEach(function(E){E.setState("",!0)})},b.prototype.setState=function(n,S){var u=this,z=u.options,E=u.graph,N=z.inactiveOtherPoints,W=z.states,Z=e(W[n||"normal"]&&W[n||"normal"].animation,u.chart.options.chart.animation),$=z.lineWidth,nt=0,J=z.opacity;if(u.state!==(n=n||"")&&([u.group,u.markerGroup,u.dataLabelsGroup].forEach(function(K){K&&(u.state&&K.removeClass("highcharts-series-"+u.state),n&&K.addClass("highcharts-series-"+n))}),u.state=n,!u.chart.styledMode)){if(W[n]&&!1===W[n].enabled)return;if(n&&($=W[n].lineWidth||$+(W[n].lineWidthPlus||0),J=e(W[n].opacity,J)),E&&!E.dashstyle&&m($))for(E.animate(z={"stroke-width":$},Z);u["zone-graph-"+nt];)u["zone-graph-"+nt].animate(z,Z),nt+=1;N||[u.group,u.markerGroup,u.dataLabelsGroup,u.labelBySeries].forEach(function(K){K&&K.animate({opacity:J},Z)})}S&&N&&u.points&&u.setAllPointsToState(n||void 0)},b.prototype.setAllPointsToState=function(n){this.points.forEach(function(S){S.setState&&S.setState(n)})},b.prototype.setVisible=function(n,S){var u=this,z=u.chart,E=z.options.chart.ignoreHiddenSeries,W=(u.visible=n=u.options.visible=u.userOptions.visible=typeof n>"u"?!u.visible:n)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(Z){u[Z]&&u[Z][W]()}),(z.hoverSeries===u||(z.hoverPoint&&z.hoverPoint.series)===u)&&u.onMouseOut(),u.legendItem&&z.legend.colorizeItem(u,n),u.isDirty=!0,u.options.stacking&&z.series.forEach(function(Z){Z.options.stacking&&Z.visible&&(Z.isDirty=!0)}),u.linkedSeries.forEach(function(Z){Z.setVisible(n,!1)}),E&&(z.isDirtyBox=!0),s(u,W),!1!==S&&z.redraw()},b.prototype.show=function(){this.setVisible(!0)},b.prototype.hide=function(){this.setVisible(!1)},b.prototype.select=function(n){this.selected=n=this.options.selected=typeof n>"u"?!this.selected:n,this.checkbox&&(this.checkbox.checked=n),s(this,n?"select":"unselect")},b.prototype.shouldShowTooltip=function(n,S,u){return void 0===u&&(u={}),u.series=this,u.visiblePlotOnly=!0,this.chart.isInsidePlot(n,S,u)},b.defaultOptions=q,b.types=B.seriesTypes,b.registerType=B.registerSeriesType,b}(),c(G.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,drawLegendSymbol:it.drawLineMarker,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:ot,requireSorting:!0,sorted:!0}),B.series=G,G}),ct(U,"Extensions/ScrollablePlotArea.js",[U["Core/Animation/AnimationUtilities.js"],U["Core/Axis/Axis.js"],U["Core/Chart/Chart.js"],U["Core/Series/Series.js"],U["Core/Renderer/RendererRegistry.js"],U["Core/Utilities.js"]],function(G,F,M,rt,it,ot){var q=G.stop,B=ot.addEvent,I=ot.createElement,O=ot.defined,g=ot.merge,f=ot.pick;B(M,"afterSetChartSize",function(y){var C=this.options.chart.scrollablePlotArea,v=C&&C.minWidth;if(C=C&&C.minHeight,!this.renderer.forExport){if(v){if(this.scrollablePixelsX=v=Math.max(0,v-this.chartWidth)){this.scrollablePlotBox=this.renderer.scrollablePlotBox=g(this.plotBox),this.plotBox.width=this.plotWidth+=v,this.inverted?this.clipBox.height+=v:this.clipBox.width+=v;var x={1:{name:"right",value:v}}}}else C&&(this.scrollablePixelsY=v=Math.max(0,C-this.chartHeight),O(v)&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=g(this.plotBox),this.plotBox.height=this.plotHeight+=v,this.inverted?this.clipBox.width+=v:this.clipBox.height+=v,x={2:{name:"bottom",value:v}}));x&&!y.skipAxes&&this.axes.forEach(function(w){x[w.side]?w.getPlotLinePath=function(){var T=x[w.side].name,A=this[T];this[T]=A-x[w.side].value;var j=F.prototype.getPlotLinePath.apply(this,arguments);return this[T]=A,j}:(w.setAxisSize(),w.setAxisTranslation())})}}),B(M,"render",function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()}),M.prototype.setUpScrolling=function(){var v,y=this,C={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(C.overflowX="auto"),this.scrollablePixelsY&&(C.overflowY="auto"),this.scrollingParent=I("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo),this.scrollingContainer=I("div",{className:"highcharts-scrolling"},C,this.scrollingParent),B(this.scrollingContainer,"scroll",function(){y.pointer&&(delete y.pointer.chartPosition,y.hoverPoint&&(v=y.hoverPoint),y.pointer.runPointActions(void 0,v,!0))}),this.innerContainer=I("div",{className:"highcharts-inner-container"},null,this.scrollingContainer),this.innerContainer.appendChild(this.container),this.setUpScrolling=null},M.prototype.moveFixedElements=function(){var x,y=this.container,C=this.fixedRenderer,v=".highcharts-breadcrumbs-group .highcharts-contextbutton .highcharts-credits .highcharts-legend .highcharts-legend-checkbox .highcharts-navigator-series .highcharts-navigator-xaxis .highcharts-navigator-yaxis .highcharts-navigator .highcharts-reset-zoom .highcharts-drillup-button .highcharts-scrollbar .highcharts-subtitle .highcharts-title".split(" ");this.scrollablePixelsX&&!this.inverted?x=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted||this.scrollablePixelsY&&!this.inverted?x=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(x=".highcharts-yaxis"),x&&v.push(x+":not(.highcharts-radial-axis)",x+"-labels:not(.highcharts-radial-axis-labels)"),v.forEach(function(w){[].forEach.call(y.querySelectorAll(w),function(T){(T.namespaceURI===C.SVG_NS?C.box:C.box.parentNode).appendChild(T),T.style.pointerEvents="auto"})})},M.prototype.applyFixed=function(){var y=!this.fixedDiv,C=this.options.chart,v=C.scrollablePlotArea,x=it.getRendererType();y?(this.fixedDiv=I("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(C.style&&C.style.zIndex||0)+2,top:0},null,!0),this.scrollingContainer&&this.scrollingContainer.parentNode.insertBefore(this.fixedDiv,this.scrollingContainer),this.renderTo.style.overflow="visible",this.fixedRenderer=C=new x(this.fixedDiv,this.chartWidth,this.chartHeight,this.options.chart.style),this.scrollableMask=C.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":f(v.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),B(this,"afterShowResetZoom",this.moveFixedElements),B(this,"afterApplyDrilldown",this.moveFixedElements),B(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight),(this.scrollableDirty||y)&&(this.scrollableDirty=!1,this.moveFixedElements()),C=this.chartWidth+(this.scrollablePixelsX||0),x=this.chartHeight+(this.scrollablePixelsY||0),q(this.container),this.container.style.width=C+"px",this.container.style.height=x+"px",this.renderer.boxWrapper.attr({width:C,height:x,viewBox:[0,0,C,x].join(" ")}),this.chartBackground.attr({width:C,height:x}),this.scrollingContainer.style.height=this.chartHeight+"px",y&&(v.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*v.scrollPositionX),v.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*v.scrollPositionY)),y=this.plotTop-(x=this.axisOffset)[0]-1,v=this.plotLeft-x[3]-1,C=this.plotTop+this.plotHeight+x[2]+1,x=this.plotLeft+this.plotWidth+x[1]+1;var w=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),T=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);y=this.scrollablePixelsX?[["M",0,y],["L",this.plotLeft-1,y],["L",this.plotLeft-1,C],["L",0,C],["Z"],["M",w,y],["L",this.chartWidth,y],["L",this.chartWidth,C],["L",w,C],["Z"]]:this.scrollablePixelsY?[["M",v,0],["L",v,this.plotTop-1],["L",x,this.plotTop-1],["L",x,0],["Z"],["M",v,T],["L",v,this.chartHeight],["L",x,this.chartHeight],["L",x,T],["Z"]]:[["M",0,0]],"adjustHeight"!==this.redrawTrigger&&this.scrollableMask.attr({d:y})},B(F,"afterInit",function(){this.chart.scrollableDirty=!0}),B(rt,"show",function(){this.chart.scrollableDirty=!0})}),ct(U,"Core/Axis/Stacking/StackItem.js",[U["Core/FormatUtilities.js"],U["Core/Series/SeriesRegistry.js"],U["Core/Utilities.js"]],function(G,F,M){var rt=G.format,it=F.series,ot=M.destroyObjectProperties,q=M.pick,B=M.isNumber;return function(){function I(O,g,f,y,C){var v=O.chart.inverted,x=O.reversed;this.axis=O,O=this.isNegative=!!f!=!!x,this.options=g=g||{},this.x=y,this.cumulative=this.total=null,this.points={},this.hasValidPoints=!1,this.stack=C,this.rightCliff=this.leftCliff=0,this.alignOptions={align:g.align||(v?O?"left":"right":"center"),verticalAlign:g.verticalAlign||(v?"middle":O?"bottom":"top"),y:g.y,x:g.x},this.textAlign=g.textAlign||(v?O?"right":"left":"center")}return I.prototype.destroy=function(){ot(this,this.axis)},I.prototype.render=function(O){var g=this.axis.chart,f=this.options,y=f.format;y=y?rt(y,this,g):f.formatter.call(this),this.label?this.label.attr({text:y,visibility:"hidden"}):(this.label=g.renderer.label(y,null,void 0,f.shape,void 0,void 0,f.useHTML,!1,"stack-labels"),y={r:f.borderRadius||0,text:y,padding:q(f.padding,5),visibility:"hidden"},g.styledMode||(y.fill=f.backgroundColor,y.stroke=f.borderColor,y["stroke-width"]=f.borderWidth,this.label.css(f.style||{})),this.label.attr(y),this.label.added||this.label.add(O)),this.label.labelrank=g.plotSizeY},I.prototype.setOffset=function(O,g,f,y,C,v){var x=this.alignOptions,w=this.axis,T=this.label,A=this.options,j=this.textAlign,k=w.chart;O=this.getStackBox({xOffset:O,width:g,boxBottom:f,boxTop:y,defaultX:C,xAxis:v}),C=x.verticalAlign,T&&O&&(g=T.getBBox(),f=T.padding,y="justify"===q(A.overflow,"justify"),x.x=A.x||0,x.y=A.y||0,j=(C=this.adjustStackPosition({labelBox:g,verticalAlign:C,textAlign:j})).x,C=C.y,O.x-=j,O.y-=C,T.align(x,!1,O),(j=k.isInsidePlot(T.alignAttr.x+x.x+j,T.alignAttr.y+x.y+C))||(y=!1),y&&it.prototype.justifyDataLabel.call(w,T,x,T.alignAttr,g,O),T.attr({x:T.alignAttr.x,y:T.alignAttr.y,rotation:A.rotation,rotationOriginX:g.width/2,rotationOriginY:g.height/2}),q(!y&&A.crop,!0)&&(j=B(T.x)&&B(T.y)&&k.isInsidePlot(T.x-f+T.width,T.y)&&k.isInsidePlot(T.x+f,T.y)),T[j?"show":"hide"]())},I.prototype.adjustStackPosition=function(O){var g=O.labelBox,f={bottom:0,middle:1,top:2,right:1,center:0,left:-1};return{x:g.width/2+g.width/2*f[O.textAlign],y:g.height/2*f[O.verticalAlign]}},I.prototype.getStackBox=function(O){var g=this.axis,f=g.chart,y=O.boxTop,C=O.defaultX,v=O.xOffset,x=O.width,w=O.boxBottom;return y=g.stacking.usePercentage?100:q(y,this.total,0),y=g.toPixels(y),O=q(C,(O.xAxis||f.xAxis[0]).toPixels(this.x))+v,g=g.toPixels(w||0),g=Math.abs(y-g),w=this.isNegative,f.inverted?{x:(w?y:y-g)-f.plotLeft,y:O-f.plotTop,width:g,height:x}:{x:O-f.plotLeft,y:(w?y-g:y)-f.plotTop,width:x,height:g}},I}()}),ct(U,"Core/Axis/Stacking/StackingAxis.js",[U["Core/Animation/AnimationUtilities.js"],U["Core/Axis/Axis.js"],U["Core/Series/SeriesRegistry.js"],U["Core/Axis/Stacking/StackItem.js"],U["Core/Utilities.js"]],function(G,F,M,rt,it){function ot(){var c=this,i=c.inverted;c.yAxis.forEach(function(s){s.stacking&&s.stacking.stacks&&s.hasVisibleSeries&&(s.stacking.oldStacks=s.stacking.stacks)}),c.series.forEach(function(s){var d=s.xAxis&&s.xAxis.options||{};!s.options.stacking||!0!==s.visible&&!1!==c.options.chart.ignoreHiddenSeries||(s.stackKey=[s.type,o(s.options.stack,""),i?d.top:d.left,i?d.height:d.width].join())})}function q(){var c=this.stacking;if(c){var i=c.stacks;p(i,function(s,d){A(s),i[d]=null}),c&&c.stackTotalGroup&&c.stackTotalGroup.destroy()}}function B(){"yAxis"!==this.coll||this.stacking||(this.stacking=new h(this))}function I(c,i,s,d){return!T(c)||c.x!==i||d&&c.stackKey!==d?c={x:i,index:0,key:d,stackKey:d}:c.index++,c.key=[s,i,c.index].join(),c}function O(){var m,c=this,i=c.stackKey,s=c.yAxis.stacking.stacks,d=c.processedXData,a=c[c.options.stacking+"Stacker"];a&&[i,"-"+i].forEach(function(L){for(var _,e,Y=d.length;Y--;)m=c.getStackIndicator(m,_=d[Y],c.index,L),(e=(_=s[L]&&s[L][_])&&_.points[m.key])&&a.call(c,e,_,Y)})}function g(c,i,s){c[0]=w(c[0]*(i=i.total?100/i.total:0)),c[1]=w(c[1]*i),this.stackedYData[s]=c[1]}function f(){var c=this.yAxis.stacking;this.options.centerInCategory&&(this.is("column")||this.is("columnrange"))&&!this.options.stacking&&1<this.chart.series.length?v.setStackedPoints.call(this,"group"):c&&p(c.stacks,function(i,s){"group"===s.slice(-5)&&(p(i,function(d){return d.destroy()}),delete c.stacks[s])})}function y(c){var i=this.chart,s=c||this.options.stacking;if(s&&(!0===this.visible||!1===i.options.chart.ignoreHiddenSeries)){var d=this.processedXData,a=this.processedYData,m=[],L=a.length,Y=this.options,_=Y.threshold,e=o(Y.startFromThreshold&&_,0);Y=Y.stack;var n,S,l="-"+(c=c?""+this.type+",".concat(s):this.stackKey),P=this.negStacks,D=(i="group"===s?i.yAxis[0]:this.yAxis).stacking.stacks,b=i.stacking.oldStacks;for(i.stacking.stacksTouched+=1,S=0;S<L;S++){var u=d[S],z=a[S],E=this.getStackIndicator(E,u,this.index),N=E.key,W=(n=P&&z<(e?0:_))?l:c;D[W]||(D[W]={}),D[W][u]||(b[W]&&b[W][u]?(D[W][u]=b[W][u],D[W][u].total=null):D[W][u]=new rt(i,i.options.stackLabels,!!n,u,Y)),W=D[W][u],null!==z?(W.points[N]=W.points[this.index]=[o(W.cumulative,e)],T(W.cumulative)||(W.base=N),W.touched=i.stacking.stacksTouched,0<E.index&&!1===this.singleStacks&&(W.points[N][0]=W.points[this.index+","+u+",0"][0])):W.points[N]=W.points[this.index]=null,"percent"===s?(n=n?c:l,W.total=P&&D[n]&&D[n][u]?(n=D[n][u]).total=Math.max(n.total,W.total)+Math.abs(z)||0:w(W.total+(Math.abs(z)||0))):"group"===s?(k(z)&&(z=z[0]),null!==z&&(W.total=(W.total||0)+1)):W.total=w(W.total+(z||0)),W.cumulative="group"===s?(W.total||1)-1:o(W.cumulative,e)+(z||0),null!==z&&(W.points[N].push(W.cumulative),m[S]=W.cumulative,W.hasValidPoints=!0)}"percent"===s&&(i.stacking.usePercentage=!0),"group"!==s&&(this.stackedYData=m),i.stacking.oldStacks={}}}var t,c,i,C=G.getDeferredAnimation,v=M.series.prototype,x=it.addEvent,w=it.correctFloat,T=it.defined,A=it.destroyObjectProperties,j=it.fireEvent,k=it.isArray,r=it.isNumber,p=it.objectEach,o=it.pick,h=function(){function c(i){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=i}return c.prototype.buildStacks=function(){var m,i=this.axis,s=i.series,d=i.options.reversedStacks,a=s.length;for(this.usePercentage=!1,m=a;m--;){var L=s[d?m:a-m-1];L.setStackedPoints(),L.setGroupedPoints()}for(m=0;m<a;m++)s[m].modifyStacks();j(i,"afterBuildStacks")},c.prototype.cleanStacks=function(){if(this.oldStacks)var i=this.stacks=this.oldStacks;p(i,function(s){p(s,function(d){d.cumulative=d.total})})},c.prototype.resetStacks=function(){var i=this;p(this.stacks,function(s){p(s,function(d,a){r(d.touched)&&d.touched<i.stacksTouched?(d.destroy(),delete s[a]):(d.total=null,d.cumulative=null)})})},c.prototype.renderStackTotals=function(){var i=this.axis,s=i.chart,d=s.renderer,a=this.stacks;i=C(s,i.options.stackLabels&&i.options.stackLabels.animation||!1);var m=this.stackTotalGroup=this.stackTotalGroup||d.g("stack-labels").attr({zIndex:6,opacity:0}).add();m.translate(s.plotLeft,s.plotTop),p(a,function(L){p(L,function(Y){Y.render(m)})}),m.animate({opacity:1},i)},c}();return c=t||(t={}),i=[],c.compose=function(s,d,a){-1===i.indexOf(s)&&(i.push(s),x(s,"init",B),x(s,"destroy",q)),-1===i.indexOf(d)&&(i.push(d),d.prototype.getStacks=ot),-1===i.indexOf(a)&&(i.push(a),(s=a.prototype).getStackIndicator=I,s.modifyStacks=O,s.percentStacker=g,s.setGroupedPoints=f,s.setStackedPoints=y)},t}),ct(U,"Series/Line/LineSeries.js",[U["Core/Series/Series.js"],U["Core/Series/SeriesRegistry.js"],U["Core/Utilities.js"]],function(G,F,M){var q,rt=this&&this.__extends||(q=function(B,I){return(q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,g){O.__proto__=g}||function(O,g){for(var f in g)g.hasOwnProperty(f)&&(O[f]=g[f])})(B,I)},function(B,I){function O(){this.constructor=B}q(B,I),B.prototype=null===I?Object.create(I):(O.prototype=I.prototype,new O)}),it=M.defined,ot=M.merge;return M=function(q){function B(){var I=null!==q&&q.apply(this,arguments)||this;return I.data=void 0,I.options=void 0,I.points=void 0,I}return rt(B,q),B.prototype.drawGraph=function(){var I=this,O=this.options,g=(this.gappedPath||this.getGraphPath).call(this),f=this.chart.styledMode,y=[["graph","highcharts-graph"]];f||y[0].push(O.lineColor||this.color||"#cccccc",O.dashStyle),(y=I.getZonesGraphs(y)).forEach(function(C,v){var x=C[0],w=I[x],T=w?"animate":"attr";w?(w.endX=I.preventGraphAnimation?null:g.xMap,w.animate({d:g})):g.length&&(I[x]=w=I.chart.renderer.path(g).addClass(C[1]).attr({zIndex:1}).add(I.group)),w&&!f&&(x={stroke:C[2],"stroke-width":O.lineWidth||0,fill:I.fillGraph&&I.color||"none"},C[3]?x.dashstyle=C[3]:"square"!==O.linecap&&(x["stroke-linecap"]=x["stroke-linejoin"]="round"),w[T](x).shadow(2>v&&O.shadow)),w&&(w.startX=g.xMap,w.isArea=g.isArea)})},B.prototype.getGraphPath=function(I,O,g){var x,f=this,y=f.options,C=[],v=[],w=y.step,T=(I=I||f.points).reversed;return T&&I.reverse(),(w={right:1,center:2}[w]||w&&3)&&T&&(w=4-w),(I=this.getValidPoints(I,!1,!(y.connectNulls&&!O&&!g))).forEach(function(A,j){var k=A.plotX,r=A.plotY,p=I[j-1];(A.leftCliff||p&&p.rightCliff)&&!g&&(x=!0),A.isNull&&!it(O)&&0<j?x=!y.connectNulls:A.isNull&&!O?x=!0:(0===j||x?j=[["M",A.plotX,A.plotY]]:f.getPointSpline?j=[f.getPointSpline(I,A,j)]:w?(j=1===w?[["L",p.plotX,r]]:2===w?[["L",(p.plotX+k)/2,p.plotY],["L",(p.plotX+k)/2,r]]:[["L",k,p.plotY]]).push(["L",k,r]):j=[["L",k,r]],v.push(A.x),w&&(v.push(A.x),2===w&&v.push(A.x)),C.push.apply(C,j),x=!1)}),C.xMap=v,f.graphPath=C},B.prototype.getZonesGraphs=function(I){return this.zones.forEach(function(O,g){g=["zone-graph-"+g,"highcharts-graph highcharts-zone-graph-"+g+" "+(O.className||"")],this.chart.styledMode||g.push(O.color||this.color,O.dashStyle||this.options.dashStyle),I.push(g)},this),I},B.defaultOptions=ot(G.defaultOptions,{}),B}(G),F.registerSeriesType("line",M),M}),ct(U,"Series/Area/AreaSeries.js",[U["Core/Color/Color.js"],U["Core/Legend/LegendSymbol.js"],U["Core/Series/SeriesRegistry.js"],U["Core/Utilities.js"]],function(G,F,M,rt){var g,it=this&&this.__extends||(g=function(f,y){return(g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,v){C.__proto__=v}||function(C,v){for(var x in v)v.hasOwnProperty(x)&&(C[x]=v[x])})(f,y)},function(f,y){function C(){this.constructor=f}g(f,y),f.prototype=null===y?Object.create(y):(C.prototype=y.prototype,new C)}),ot=G.parse,q=M.seriesTypes.line;G=rt.extend;var B=rt.merge,I=rt.objectEach,O=rt.pick;return rt=function(g){function f(){var y=null!==g&&g.apply(this,arguments)||this;return y.data=void 0,y.options=void 0,y.points=void 0,y}return it(f,g),f.prototype.drawGraph=function(){this.areaPath=[],g.prototype.drawGraph.apply(this);var y=this,C=this.areaPath,v=this.options,x=[["area","highcharts-area",this.color,v.fillColor]];this.zones.forEach(function(w,T){x.push(["zone-area-"+T,"highcharts-area highcharts-zone-area-"+T+" "+w.className,w.color||y.color,w.fillColor||v.fillColor])}),x.forEach(function(w){var T=w[0],A={},j=y[T],k=j?"animate":"attr";j?(j.endX=y.preventGraphAnimation?null:C.xMap,j.animate({d:C})):(A.zIndex=0,(j=y[T]=y.chart.renderer.path(C).addClass(w[1]).add(y.group)).isArea=!0),y.chart.styledMode||(A.fill=O(w[3],ot(w[2]).setOpacity(O(v.fillOpacity,.75)).get())),j[k](A),j.startX=C.xMap,j.shiftUnit=v.step?2:1})},f.prototype.getGraphPath=function(y){var C=q.prototype.getGraphPath,v=this.options,x=v.stacking,w=this.yAxis,T=[],A=[],j=this.index,k=w.stacking.stacks[this.stackKey],r=v.threshold,p=Math.round(w.getThreshold(v.threshold));v=O(v.connectNulls,"percent"===x);var o=function(d,a,m){var L=y[d];d=x&&k[L.x].points[j];var Y=L[m+"Null"]||0;if(m=L[m+"Cliff"]||0,L=!0,m||Y){var _=(Y?d[0]:d[1])+m,e=d[0]+m;L=!!Y}else!x&&y[a]&&y[a].isNull&&(_=e=r);typeof _<"u"&&(A.push({plotX:i,plotY:null===_?p:w.getThreshold(_),isNull:L,isCliff:!0}),T.push({plotX:i,plotY:null===e?p:w.getThreshold(e),doCurve:!1}))};y=y||this.points,x&&(y=this.getStackPoints(y));for(var h=0,t=y.length;h<t;++h){x||(y[h].leftCliff=y[h].rightCliff=y[h].leftNull=y[h].rightNull=void 0);var c=y[h].isNull,i=O(y[h].rectPlotX,y[h].plotX),s=x?O(y[h].yBottom,p):p;(!c||v)&&(v||o(h,h-1,"left"),c&&!x&&v||(A.push(y[h]),T.push({x:h,plotX:i,plotY:s})),v||o(h,h+1,"right"))}return o=C.call(this,A,!0,!0),T.reversed=!0,(s=(c=C.call(this,T,!0,!0))[0])&&"M"===s[0]&&(c[0]=["L",s[1],s[2]]),(c=o.concat(c)).length&&c.push(["Z"]),C=C.call(this,A,!1,v),c.xMap=o.xMap,this.areaPath=c,C},f.prototype.getStackPoints=function(y){var C=this,v=[],x=[],w=this.xAxis,T=this.yAxis,A=T.stacking.stacks[this.stackKey],j={},k=T.series,r=k.length,p=T.options.reversedStacks?1:-1,o=k.indexOf(C);if(y=y||this.points,this.options.stacking){for(var h=0;h<y.length;h++)y[h].leftNull=y[h].rightNull=void 0,j[y[h].x]=y[h];I(A,function(c,i){null!==c.total&&x.push(i)}),x.sort(function(c,i){return c-i});var t=k.map(function(c){return c.visible});x.forEach(function(c,i){var d,a,s=0;if(j[c]&&!j[c].isNull)v.push(j[c]),[-1,1].forEach(function(L){var Y=1===L?"rightNull":"leftNull",_=A[x[i+L]],e=0;if(_)for(var l=o;0<=l&&l<r;){var P=k[l].index;(d=_.points[P])||(P===C.index?j[c][Y]=!0:t[l]&&(a=A[c].points[P])&&(e-=a[1]-a[0])),l+=p}j[c][1===L?"rightCliff":"leftCliff"]=e});else{for(var m=o;0<=m&&m<r;){if(d=A[c].points[k[m].index]){s=d[1];break}m+=p}s=O(s,0),s=T.translate(s,0,1,0,1),v.push({isNull:!0,plotX:w.translate(c,0,0,0,1),x:c,plotY:s,yBottom:s})}})}return v},f.defaultOptions=B(q.defaultOptions,{threshold:0}),f}(q),G(rt.prototype,{singleStacks:!1,drawLegendSymbol:F.drawRectangle}),M.registerSeriesType("area",rt),rt}),ct(U,"Series/Spline/SplineSeries.js",[U["Core/Series/SeriesRegistry.js"],U["Core/Utilities.js"]],function(G,F){var q,M=this&&this.__extends||(q=function(B,I){return(q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,g){O.__proto__=g}||function(O,g){for(var f in g)g.hasOwnProperty(f)&&(O[f]=g[f])})(B,I)},function(B,I){function O(){this.constructor=B}q(B,I),B.prototype=null===I?Object.create(I):(O.prototype=I.prototype,new O)}),rt=G.seriesTypes.line,it=F.merge,ot=F.pick;return F=function(q){function B(){var I=null!==q&&q.apply(this,arguments)||this;return I.data=void 0,I.options=void 0,I.points=void 0,I}return M(B,q),B.prototype.getPointSpline=function(I,O,g){var f=O.plotX||0,y=O.plotY||0,C=I[g-1];if(g=I[g+1],C&&!C.isNull&&!1!==C.doCurve&&!O.isCliff&&g&&!g.isNull&&!1!==g.doCurve&&!O.isCliff){var v=g.plotX||0,x=0,w=(1.5*f+(C.plotX||0))/2.5,T=(1.5*y+(I=C.plotY||0))/2.5,A=(1.5*y+(g=g.plotY||0))/2.5;(v=(1.5*f+v)/2.5)!==w&&(x=(A-T)*(v-f)/(v-w)+y-A),A+=x,(T+=x)>I&&T>y?A=2*y-(T=Math.max(I,y)):T<I&&T<y&&(A=2*y-(T=Math.min(I,y))),A>g&&A>y?T=2*y-(A=Math.max(g,y)):A<g&&A<y&&(T=2*y-(A=Math.min(g,y))),O.rightContX=v,O.rightContY=A}return O=["C",ot(C.rightContX,C.plotX,0),ot(C.rightContY,C.plotY,0),ot(w,f,0),ot(T,y,0),f,y],C.rightContX=C.rightContY=void 0,O},B.defaultOptions=it(rt.defaultOptions),B}(rt),G.registerSeriesType("spline",F),F}),ct(U,"Series/AreaSpline/AreaSplineSeries.js",[U["Series/Spline/SplineSeries.js"],U["Core/Legend/LegendSymbol.js"],U["Core/Series/SeriesRegistry.js"],U["Core/Utilities.js"]],function(G,F,M,rt){var O,it=this&&this.__extends||(O=function(g,f){return(O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,C){y.__proto__=C}||function(y,C){for(var v in C)C.hasOwnProperty(v)&&(y[v]=C[v])})(g,f)},function(g,f){function y(){this.constructor=g}O(g,f),g.prototype=null===f?Object.create(f):(y.prototype=f.prototype,new y)}),ot=M.seriesTypes,q=ot.area;ot=ot.area.prototype;var B=rt.extend,I=rt.merge;return rt=function(O){function g(){var f=null!==O&&O.apply(this,arguments)||this;return f.data=void 0,f.points=void 0,f.options=void 0,f}return it(g,O),g.defaultOptions=I(G.defaultOptions,q.defaultOptions),g}(G),B(rt.prototype,{getGraphPath:ot.getGraphPath,getStackPoints:ot.getStackPoints,drawGraph:ot.drawGraph,drawLegendSymbol:F.drawRectangle}),M.registerSeriesType("areaspline",rt),rt}),ct(U,"Series/Column/ColumnSeriesDefaults.js",[],function(){return{borderRadius:0,centerInCategory:!1,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.1},select:{color:"#cccccc",borderColor:"#000000"}},dataLabels:{align:void 0,verticalAlign:void 0,y:void 0},startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0,borderColor:"#ffffff"}}),ct(U,"Series/Column/ColumnSeries.js",[U["Core/Animation/AnimationUtilities.js"],U["Core/Color/Color.js"],U["Series/Column/ColumnSeriesDefaults.js"],U["Core/Globals.js"],U["Core/Legend/LegendSymbol.js"],U["Core/Series/Series.js"],U["Core/Series/SeriesRegistry.js"],U["Core/Utilities.js"]],function(G,F,M,rt,it,ot,q,B){var r,I=this&&this.__extends||(r=function(p,o){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,t){h.__proto__=t}||function(h,t){for(var c in t)t.hasOwnProperty(c)&&(h[c]=t[c])})(p,o)},function(p,o){function h(){this.constructor=p}r(p,o),p.prototype=null===o?Object.create(o):(h.prototype=o.prototype,new h)}),O=G.animObject,g=F.parse,f=rt.hasTouch;G=rt.noop;var y=B.clamp,C=B.defined,v=B.extend,x=B.fireEvent,w=B.isArray,T=B.isNumber,A=B.merge,j=B.pick,k=B.objectEach;return B=function(r){function p(){var o=null!==r&&r.apply(this,arguments)||this;return o.borderWidth=void 0,o.data=void 0,o.group=void 0,o.options=void 0,o.points=void 0,o}return I(p,r),p.prototype.animate=function(o){var h=this,t=this.yAxis,c=h.options,i=this.chart.inverted,s={},d=i?"translateX":"translateY";if(o)s.scaleY=.001,o=y(t.toPixels(c.threshold),t.pos,t.pos+t.len),i?s.translateX=o-t.len:s.translateY=o,h.clipBox&&h.setClip(),h.group.attr(s);else{var a=Number(h.group.attr(d));h.group.animate({scaleY:1},v(O(h.options.animation),{step:function(m,L){h.group&&(s[d]=a+L.pos*(t.pos-a),h.group.attr(s))}}))}},p.prototype.init=function(o,h){r.prototype.init.apply(this,arguments);var t=this;(o=t.chart).hasRendered&&o.series.forEach(function(c){c.type===t.type&&(c.isDirty=!0)})},p.prototype.getColumnMetrics=function(){var o=this,h=o.options,t=o.xAxis,c=o.yAxis,i=t.options.reversedStacks;i=t.reversed&&!i||!t.reversed&&i;var d,s={},a=0;!1===h.grouping?a=1:o.chart.series.forEach(function(_){var e=_.yAxis,l=_.options;if(_.type===o.type&&(_.visible||!o.chart.options.chart.ignoreHiddenSeries)&&c.len===e.len&&c.pos===e.pos){if(l.stacking&&"group"!==l.stacking){typeof s[d=_.stackKey]>"u"&&(s[d]=a++);var P=s[d]}else!1!==l.grouping&&(P=a++);_.columnIndex=P}});var m=Math.min(Math.abs(t.transA)*(t.ordinal&&t.ordinal.slope||h.pointRange||t.closestPointRange||t.tickInterval||1),t.len),L=m*h.groupPadding,Y=(m-2*L)/(a||1);return h=Math.min(h.maxPointWidth||t.len,j(h.pointWidth,Y*(1-2*h.pointPadding))),o.columnMetrics={width:h,offset:(Y-h)/2+(L+((o.columnIndex||0)+(i?1:0))*Y-m/2)*(i?-1:1),paddedWidth:Y,columnCount:a},o.columnMetrics},p.prototype.crispCol=function(o,h,t,c){var i=this.chart,s=this.borderWidth,d=-(s%2?.5:0);return s=s%2?.5:1,i.inverted&&i.renderer.isVML&&(s+=1),this.options.crisp&&(t=Math.round(o+t)+d,t-=o=Math.round(o)+d),c=Math.round(h+c)+s,d=.5>=Math.abs(h)&&.5<c,c-=h=Math.round(h)+s,d&&c&&(--h,c+=1),{x:o,y:h,width:t,height:c}},p.prototype.adjustForMissingColumns=function(o,h,t,c){var i=this,s=this.options.stacking;if(!t.isNull&&1<c.columnCount){var d=this.yAxis.options.reversedStacks,a=0,m=d?0:-c.columnCount;k(this.yAxis.stacking&&this.yAxis.stacking.stacks,function(L){if("number"==typeof t.x){var Y=L[t.x.toString()];Y&&(L=Y.points[i.index],s?(L&&(a=m),Y.hasValidPoints&&(d?m++:m--)):w(L)&&(L=Object.keys(Y.points).filter(function(_){return!_.match(",")&&Y.points[_]&&1<Y.points[_].length}).map(parseFloat).sort(function(_,e){return e-_}),a=L.indexOf(i.index),m=L.length))}}),o=(t.plotX||0)+((m-1)*c.paddedWidth+h)/2-h-a*c.paddedWidth}return o},p.prototype.translate=function(){var o=this,h=o.chart,t=o.options,c=o.dense=2>o.closestPointRange*o.xAxis.transA;c=o.borderWidth=j(t.borderWidth,c?0:1);var i=o.xAxis,s=o.yAxis,d=t.threshold,a=o.translatedThreshold=s.getThreshold(d),m=j(t.minPointLength,5),L=o.getColumnMetrics(),Y=L.width,_=o.pointXOffset=L.offset,e=o.dataMin,l=o.dataMax,P=o.barW=Math.max(Y,1+2*c);h.inverted&&(a-=.5),t.pointPadding&&(P=Math.ceil(P)),ot.prototype.translate.apply(o),o.points.forEach(function(D){var b=j(D.yBottom,a),n=999+Math.abs(b),S=D.plotX||0;n=y(D.plotY,-n,s.len+n);var u=Math.min(n,b),z=Math.max(n,b)-u,E=Y,N=S+_,W=P;m&&Math.abs(z)<m&&(z=m,S=!s.reversed&&!D.negative||s.reversed&&D.negative,T(d)&&T(l)&&D.y===d&&l<=d&&(s.min||0)<d&&(e!==l||(s.max||0)<=d)&&(S=!S),u=Math.abs(u-a)>m?b-m:a-(S?m:0)),C(D.options.pointWidth)&&(E=W=Math.ceil(D.options.pointWidth),N-=Math.round((E-Y)/2)),t.centerInCategory&&(N=o.adjustForMissingColumns(N,E,D,L)),D.barX=N,D.pointWidth=E,D.tooltipPos=h.inverted?[y(s.len+s.pos-h.plotLeft-n,s.pos-h.plotLeft,s.len+s.pos-h.plotLeft),i.len+i.pos-h.plotTop-N-W/2,z]:[i.left-h.plotLeft+N+W/2,y(n+s.pos-h.plotTop,s.pos-h.plotTop,s.len+s.pos-h.plotTop),z],D.shapeType=o.pointClass.prototype.shapeType||"rect",D.shapeArgs=o.crispCol.apply(o,D.isNull?[N,a,W,0]:[N,u,W,z])})},p.prototype.drawGraph=function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")},p.prototype.pointAttribs=function(o,h){var t=this.options,c=this.pointAttrToOptions||{},i=c.stroke||"borderColor",s=c["stroke-width"]||"borderWidth",d=o&&o.color||this.color,a=o&&o[i]||t[i]||d;c=o&&o.options.dashStyle||t.dashStyle;var m=o&&o[s]||t[s]||this[s]||0,L=j(o&&o.opacity,t.opacity,1);if(o&&this.zones.length){var Y=o.getZone();d=o.options.color||Y&&(Y.color||o.nonZonedColor)||this.color,Y&&(a=Y.borderColor||a,c=Y.dashStyle||c,m=Y.borderWidth||m)}return h&&o&&(h=(o=A(t.states[h],o.options.states&&o.options.states[h]||{})).brightness,d=o.color||typeof h<"u"&&g(d).brighten(o.brightness).get()||d,a=o[i]||a,m=o[s]||m,c=o.dashStyle||c,L=j(o.opacity,L)),i={fill:d,stroke:a,"stroke-width":m,opacity:L},c&&(i.dashstyle=c),i},p.prototype.drawPoints=function(o){void 0===o&&(o=this.points);var d,h=this,t=this.chart,c=h.options,i=t.renderer,s=c.animationLimit||250;o.forEach(function(a){var m=a.graphic,L=!!m,Y=m&&t.pointCount<s?"animate":"attr";T(a.plotY)&&null!==a.y?(d=a.shapeArgs,m&&a.hasNewShapeType()&&(m=m.destroy()),h.enabledDataSorting&&(a.startXPos=h.xAxis.reversed?-(d&&d.width||0):h.xAxis.width),m||(a.graphic=m=i[a.shapeType](d).add(a.group||h.group))&&h.enabledDataSorting&&t.hasRendered&&t.pointCount<s&&(m.attr({x:a.startXPos}),L=!0,Y="animate"),m&&L&&m[Y](A(d)),c.borderRadius&&m[Y]({r:c.borderRadius}),t.styledMode||m[Y](h.pointAttribs(a,a.selected&&"select")).shadow(!1!==a.allowShadow&&c.shadow,null,c.stacking&&!c.borderRadius),m&&(m.addClass(a.getClassName(),!0),m.attr({visibility:a.visible?"inherit":"hidden"}))):m&&(a.graphic=m.destroy())})},p.prototype.drawTracker=function(o){void 0===o&&(o=this.points);var s,h=this,t=h.chart,c=t.pointer,i=function(d){var a=c.getPointFromEvent(d);typeof a<"u"&&(c.isDirectTouch=!0,a.onMouseOver(d))};o.forEach(function(d){s=w(d.dataLabels)?d.dataLabels:d.dataLabel?[d.dataLabel]:[],d.graphic&&(d.graphic.element.point=d),s.forEach(function(a){a.div?a.div.point=d:a.element.point=d})}),h._hasTracking||(h.trackerGroups.forEach(function(d){h[d]&&(h[d].addClass("highcharts-tracker").on("mouseover",i).on("mouseout",function(a){c.onTrackerMouseOut(a)}),f&&h[d].on("touchstart",i),!t.styledMode&&h.options.cursor&&h[d].css({cursor:h.options.cursor}))}),h._hasTracking=!0),x(this,"afterDrawTracker")},p.prototype.remove=function(){var o=this,h=o.chart;h.hasRendered&&h.series.forEach(function(t){t.type===o.type&&(t.isDirty=!0)}),ot.prototype.remove.apply(o,arguments)},p.defaultOptions=A(ot.defaultOptions,M),p}(ot),v(B.prototype,{cropShoulder:0,directTouch:!0,drawLegendSymbol:it.drawRectangle,getSymbol:G,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]}),q.registerSeriesType("column",B),B}),ct(U,"Core/Series/DataLabel.js",[U["Core/Animation/AnimationUtilities.js"],U["Core/FormatUtilities.js"],U["Core/Utilities.js"]],function(G,F,M){var v,rt=G.getDeferredAnimation,it=F.format,ot=M.defined,q=M.extend,B=M.fireEvent,I=M.isArray,O=M.isString,g=M.merge,f=M.objectEach,y=M.pick,C=M.splat;return function(x){function w(o,h,t,c,i){var s=this,d=this.chart,a=this.isCartesian&&d.inverted,m=this.enabledDataSorting,L=o.plotX,Y=o.plotY,_=t.rotation,e=t.align,l=ot(L)&&ot(Y)&&d.isInsidePlot(L,Math.round(Y),{inverted:a,paneCoordinates:!0,series:s});Y=function(n){m&&s.xAxis&&!P&&s.setDataLabelStartPos(o,h,i,l,n)};var P="justify"===y(t.overflow,m?"none":"justify");if(L=this.visible&&!1!==o.visible&&ot(L)&&(o.series.forceDL||m&&!P||l||y(t.inside,!!this.options.stacking)&&c&&d.isInsidePlot(L,a?c.x+1:c.y+c.height-1,{inverted:a,paneCoordinates:!0,series:s})),a=o.pos(),L&&a){_&&h.attr({align:e}),e=h.getBBox(!0);var D=[0,0],b=d.renderer.fontMetrics(d.styledMode?void 0:t.style.fontSize,h).b;c=q({x:a[0],y:Math.round(a[1]),width:0,height:0},c),q(t,{width:e.width,height:e.height}),_?(P=!1,D=d.renderer.rotCorr(b,_),b={x:c.x+(t.x||0)+c.width/2+D.x,y:c.y+(t.y||0)+{top:0,middle:.5,bottom:1}[t.verticalAlign]*c.height},D=[e.x-Number(h.attr("x")),e.y-Number(h.attr("y"))],Y(b),h[i?"attr":"animate"](b)):(Y(c),h.align(t,void 0,c),b=h.alignAttr),P&&0<=c.height?this.justifyDataLabel(h,t,b,e,c,i):y(t.crop,!0)&&(c=b.x,Y=b.y,L=d.isInsidePlot(c+=D[0],Y+=D[1],{paneCoordinates:!0,series:s})&&d.isInsidePlot(c+e.width,Y+e.height,{paneCoordinates:!0,series:s})),t.shape&&!_&&h[i?"attr":"animate"]({anchorX:a[0],anchorY:a[1]})}i&&m&&(h.placed=!1),L||m&&!P?h.show():(h.hide(),h.placed=!1)}function A(o){void 0===o&&(o=this.points);var h=this,t=h.chart,c=h.options,i=h.hasRendered||0,s=t.renderer,d=t.options.chart,a=d.backgroundColor,m=s.getContrast(O(d=d.plotBackgroundColor)&&d||O(a)&&a||"#000000"),L=c.dataLabels;if(a=L.animation,a=L.defer?rt(t,a,h):{defer:0,duration:0},L=k(k(t.options.plotOptions&&t.options.plotOptions.series&&t.options.plotOptions.series.dataLabels,t.options.plotOptions&&t.options.plotOptions[h.type]&&t.options.plotOptions[h.type].dataLabels),L),B(this,"drawDataLabels"),I(L)||L.enabled||h._hasPointLabels){var _=h.plotGroup("dataLabelsGroup","data-labels",i?"inherit":"hidden",L.zIndex||6);_.attr({opacity:+i}),!i&&(i=h.dataLabelsGroup)&&(h.visible&&_.show(),i[c.animation?"animate":"attr"]({opacity:1},a)),o.forEach(function(e){C(k(L,e.dlOptions||e.options&&e.options.dataLabels)).forEach(function(l,P){var D=l.enabled&&(!e.isNull||e.dataLabelOnNull)&&function T(o,h){var t=h.filter;return!t||(h=t.operator,o=o[t.property],t=t.value,">"===h&&o>t||"<"===h&&o<t||">="===h&&o>=t||"<="===h&&o<=t||"=="===h&&o==t||"==="===h&&o===t)}(e,l),b=e.connectors?e.connectors[P]:e.connector,n=e.dataLabels?e.dataLabels[P]:e.dataLabel,S=!n,u=y(l.distance,e.labelDistance);if(D){var z=e.getLabelConfig(),E=y(l[e.formatPrefix+"Format"],l.format);z=ot(E)?it(E,z,t):(l[e.formatPrefix+"Formatter"]||l.formatter).call(z,l),E=l.style;var N=l.rotation;t.styledMode||(E.color=y(l.color,E.color,h.color,"#000000"),"contrast"===E.color?(e.contrastColor=s.getContrast(e.color||h.color),E.color=!ot(u)&&l.inside||0>u||c.stacking?e.contrastColor:m):delete e.contrastColor,c.cursor&&(E.cursor=c.cursor));var W={r:l.borderRadius||0,rotation:N,padding:l.padding,zIndex:1};if(!t.styledMode){var Z=l.borderColor;W.fill="auto"===(u=l.backgroundColor)?e.color:u,W.stroke="auto"===Z?e.color:Z,W["stroke-width"]=l.borderWidth}f(W,function($,nt){typeof $>"u"&&delete W[nt]})}!n||D&&ot(z)&&!!n.div==!!l.useHTML&&(n.rotation&&l.rotation||n.rotation===l.rotation)||(S=!0,e.dataLabel=n=e.dataLabel&&e.dataLabel.destroy(),e.dataLabels&&(1===e.dataLabels.length?delete e.dataLabels:delete e.dataLabels[P]),P||delete e.dataLabel,b&&(e.connector=e.connector.destroy(),e.connectors&&(1===e.connectors.length?delete e.connectors:delete e.connectors[P]))),D&&ot(z)?(n?W.text=z:(e.dataLabels=e.dataLabels||[],n=e.dataLabels[P]=N?s.text(z,0,0,l.useHTML).addClass("highcharts-data-label"):s.label(z,0,0,l.shape,null,null,l.useHTML,null,"data-label"),P||(e.dataLabel=n),n.addClass(" highcharts-data-label-color-"+e.colorIndex+" "+(l.className||"")+(l.useHTML?" highcharts-tracker":""))),n.options=l,n.attr(W),t.styledMode||n.css(E).shadow(l.shadow),(P=l[e.formatPrefix+"TextPath"]||l.textPath)&&!l.useHTML&&(n.setTextPath(e.getDataLabelPath&&e.getDataLabelPath(n)||e.graphic,P),e.dataLabelPath&&!P.enabled&&(e.dataLabelPath=e.dataLabelPath.destroy())),n.added||n.add(_),h.alignDataLabel(e,n,l,null,S)):n&&n.hide()})})}B(this,"afterDrawDataLabels")}function j(o,h,t,c,i,s){var d=this.chart,a=h.align,m=h.verticalAlign,L=o.box?0:o.padding||0,Y=h.x;Y=void 0===Y?0:Y;var _=h.y;_=void 0===_?0:_;var e=(t.x||0)+L;if(0>e){"right"===a&&0<=Y?(h.align="left",h.inside=!0):Y-=e;var l=!0}return(e=(t.x||0)+c.width-L)>d.plotWidth&&("left"===a&&0>=Y?(h.align="right",h.inside=!0):Y+=d.plotWidth-e,l=!0),0>(e=t.y+L)&&("bottom"===m&&0<=_?(h.verticalAlign="top",h.inside=!0):_-=e,l=!0),(e=(t.y||0)+c.height-L)>d.plotHeight&&("top"===m&&0>=_?(h.verticalAlign="bottom",h.inside=!0):_+=d.plotHeight-e,l=!0),l&&(h.x=Y,h.y=_,o.placed=!s,o.align(h,void 0,i)),l}function k(o,h){var c,t=[];if(I(o)&&!I(h))t=o.map(function(i){return g(i,h)});else if(I(h)&&!I(o))t=h.map(function(i){return g(o,i)});else if(I(o)||I(h))for(c=Math.max(o.length,h.length);c--;)t[c]=g(o[c],h[c]);else t=g(o,h);return t}function r(o,h,t,c,i){var s=this.chart,d=s.inverted,a=this.xAxis,m=a.reversed,L=d?h.height/2:h.width/2;o=(o=o.pointWidth)?o/2:0,h.startXPos=d?i.x:m?-L-o:a.width-L+o,h.startYPos=d?m?this.yAxis.height-L+o:-L-o:i.y,c?"hidden"===h.visibility&&(h.show(),h.attr({opacity:0}).animate({opacity:1})):h.attr({opacity:1}).animate({opacity:0},void 0,h.hide),s.hasRendered&&(t&&h.attr({x:h.startXPos,y:h.startYPos}),h.placed=!0)}var p=[];x.compose=function(o){if(-1===p.indexOf(o)){var h=o.prototype;p.push(o),h.alignDataLabel=w,h.drawDataLabels=A,h.justifyDataLabel=j,h.setDataLabelStartPos=r}}}(v||(v={})),v}),ct(U,"Series/Column/ColumnDataLabel.js",[U["Core/Series/DataLabel.js"],U["Core/Series/SeriesRegistry.js"],U["Core/Utilities.js"]],function(G,F,M){var q,rt=F.series,it=M.merge,ot=M.pick;return function(B){function I(g,f,y,C,v){var x=this.chart.inverted,w=g.series,T=(w.xAxis?w.xAxis.len:this.chart.plotSizeX)||0,A=g.dlBox||g.shapeArgs,j=ot(g.below,g.plotY>ot(this.translatedThreshold,w=(w.yAxis?w.yAxis.len:this.chart.plotSizeY)||0)),k=ot(y.inside,!!this.options.stacking);A&&(0>(C=it(A)).y&&(C.height+=C.y,C.y=0),0<(A=C.y+C.height-w)&&A<C.height&&(C.height-=A),x&&(C={x:w-C.y-C.height,y:T-C.x-C.width,width:C.height,height:C.width}),k||(x?(C.x+=j?0:C.width,C.width=0):(C.y+=j?C.height:0,C.height=0))),y.align=ot(y.align,!x||k?"center":j?"right":"left"),y.verticalAlign=ot(y.verticalAlign,x||k?"middle":j?"top":"bottom"),rt.prototype.alignDataLabel.call(this,g,f,y,C,v),y.inside&&g.contrastColor&&f.css({color:g.contrastColor})}var O=[];B.compose=function(g){G.compose(rt),-1===O.indexOf(g)&&(O.push(g),g.prototype.alignDataLabel=I)}}(q||(q={})),q}),ct(U,"Series/Bar/BarSeries.js",[U["Series/Column/ColumnSeries.js"],U["Core/Series/SeriesRegistry.js"],U["Core/Utilities.js"]],function(G,F,M){var q,rt=this&&this.__extends||(q=function(B,I){return(q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,g){O.__proto__=g}||function(O,g){for(var f in g)g.hasOwnProperty(f)&&(O[f]=g[f])})(B,I)},function(B,I){function O(){this.constructor=B}q(B,I),B.prototype=null===I?Object.create(I):(O.prototype=I.prototype,new O)}),it=M.extend,ot=M.merge;return M=function(q){function B(){var I=null!==q&&q.apply(this,arguments)||this;return I.data=void 0,I.options=void 0,I.points=void 0,I}return rt(B,q),B.defaultOptions=ot(G.defaultOptions,{}),B}(G),it(M.prototype,{inverted:!0}),F.registerSeriesType("bar",M),M}),ct(U,"Series/Scatter/ScatterSeriesDefaults.js",[],function(){return{lineWidth:0,findNearestPointBy:"xy",jitter:{x:0,y:0},marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">\u25cf</span> <span style="font-size: 10px"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}}}),ct(U,"Series/Scatter/ScatterSeries.js",[U["Series/Scatter/ScatterSeriesDefaults.js"],U["Core/Series/SeriesRegistry.js"],U["Core/Utilities.js"]],function(G,F,M){var O,rt=this&&this.__extends||(O=function(g,f){return(O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,C){y.__proto__=C}||function(y,C){for(var v in C)C.hasOwnProperty(v)&&(y[v]=C[v])})(g,f)},function(g,f){function y(){this.constructor=g}O(g,f),g.prototype=null===f?Object.create(f):(y.prototype=f.prototype,new y)}),it=F.seriesTypes,ot=it.column,q=it.line;it=M.addEvent;var B=M.extend,I=M.merge;return M=function(O){function g(){var f=null!==O&&O.apply(this,arguments)||this;return f.data=void 0,f.options=void 0,f.points=void 0,f}return rt(g,O),g.prototype.applyJitter=function(){var f=this,y=this.options.jitter,C=this.points.length;y&&this.points.forEach(function(v,x){["x","y"].forEach(function(w,T){var A="plot"+w.toUpperCase();if(y[w]&&!v.isNull){var j=f[w+"Axis"],k=y[w]*j.transA;if(j&&!j.isLog){var r=Math.max(0,v[A]-k);j=Math.min(j.len,v[A]+k),T=1e4*Math.sin(x+T*C),v[A]=r+(j-r)*(T-Math.floor(T)),"x"===w&&(v.clientX=v.plotX)}}})})},g.prototype.drawGraph=function(){this.options.lineWidth?O.prototype.drawGraph.call(this):this.graph&&(this.graph=this.graph.destroy())},g.defaultOptions=I(q.defaultOptions,G),g}(q),B(M.prototype,{drawTracker:ot.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1}),it(M,"afterTranslate",function(){this.applyJitter()}),F.registerSeriesType("scatter",M),M}),ct(U,"Series/CenteredUtilities.js",[U["Core/Globals.js"],U["Core/Series/Series.js"],U["Core/Utilities.js"]],function(G,F,M){var I,O,rt=G.deg2rad,it=M.fireEvent,ot=M.isNumber,q=M.pick,B=M.relativeLength;return(O=I||(I={})).getCenter=function(){var g=this.options,f=this.chart,y=2*(g.slicedOffset||0),C=f.plotWidth-2*y,v=f.plotHeight-2*y,x=g.center,w=Math.min(C,v),T=g.thickness,A=g.size,j=g.innerSize||0;for("string"==typeof A&&(A=parseFloat(A)),"string"==typeof j&&(j=parseFloat(j)),g=[q(x[0],"50%"),q(x[1],"50%"),q(A&&0>A?void 0:g.size,"100%"),q(j&&0>j?void 0:g.innerSize||0,"0%")],!f.angular||this instanceof F||(g[3]=0),x=0;4>x;++x)A=g[x],f=2>x||2===x&&/%$/.test(A),g[x]=B(A,[C,v,w,g[2]][x])+(f?y:0);return g[3]>g[2]&&(g[3]=g[2]),ot(T)&&2*T<g[2]&&0<T&&(g[3]=g[2]-2*T),it(this,"afterGetCenter",{positions:g}),g},O.getStartAndEndRadians=function(g,f){return g=ot(g)?g:0,f=ot(f)&&f>g&&360>f-g?f:g+360,{start:rt*(g+-90),end:rt*(f+-90)}},I}),ct(U,"Series/Pie/PiePoint.js",[U["Core/Animation/AnimationUtilities.js"],U["Core/Series/Point.js"],U["Core/Utilities.js"]],function(G,F,M){var g,rt=this&&this.__extends||(g=function(f,y){return(g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,v){C.__proto__=v}||function(C,v){for(var x in v)v.hasOwnProperty(x)&&(C[x]=v[x])})(f,y)},function(f,y){function C(){this.constructor=f}g(f,y),f.prototype=null===y?Object.create(y):(C.prototype=y.prototype,new C)}),it=G.setAnimation,ot=M.addEvent,q=M.defined;G=M.extend;var B=M.isNumber,I=M.pick,O=M.relativeLength;return F=function(g){function f(){var y=null!==g&&g.apply(this,arguments)||this;return y.labelDistance=void 0,y.options=void 0,y.series=void 0,y}return rt(f,g),f.prototype.getConnectorPath=function(){var y=this.labelPosition,C=this.series.options.dataLabels,v=this.connectorShapes,x=C.connectorShape;return v[x]&&(x=v[x]),x.call(this,{x:y.final.x,y:y.final.y,alignment:y.alignment},y.connectorPosition,C)},f.prototype.getTranslate=function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},f.prototype.haloPath=function(y){var C=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(C.x,C.y,C.r+y,C.r+y,{innerR:C.r-1,start:C.start,end:C.end})},f.prototype.init=function(){var y=this;g.prototype.init.apply(this,arguments),this.name=I(this.name,"Slice");var C=function(v){y.slice("select"===v.type)};return ot(this,"select",C),ot(this,"unselect",C),this},f.prototype.isValid=function(){return B(this.y)&&0<=this.y},f.prototype.setVisible=function(y,C){var v=this,x=this.series,w=x.chart,T=x.options.ignoreHiddenPoint;C=I(C,T),y!==this.visible&&(this.visible=this.options.visible=y=typeof y>"u"?!this.visible:y,x.options.data[x.data.indexOf(this)]=this.options,["graphic","dataLabel","connector","shadowGroup"].forEach(function(A){v[A]&&v[A][y?"show":"hide"](y)}),this.legendItem&&w.legend.colorizeItem(this,y),y||"hover"!==this.state||this.setState(""),T&&(x.isDirty=!0),C&&w.redraw())},f.prototype.slice=function(y,C,v){var x=this.series;it(v,x.chart),I(C,!0),this.sliced=this.options.sliced=q(y)?y:!this.sliced,x.options.data[x.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate()),this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},f}(F),G(F.prototype,{connectorShapes:{fixedOffset:function(g,f,y){var C=f.breakAt;return f=f.touchingSliceAt,[["M",g.x,g.y],y.softConnector?["C",g.x+("left"===g.alignment?-5:5),g.y,2*C.x-f.x,2*C.y-f.y,C.x,C.y]:["L",C.x,C.y],["L",f.x,f.y]]},straight:function(g,f){return[["M",g.x,g.y],["L",(f=f.touchingSliceAt).x,f.y]]},crookedLine:function(g,f,y){f=f.touchingSliceAt;var C=this.series,v=C.center[0],x=C.chart.plotWidth,w=C.chart.plotLeft;C=g.alignment;var T=this.shapeArgs.r;return y=O(y.crookDistance,1),y=["L",x="left"===C?v+T+(x+w-v-T)*(1-y):w+(v-T)*y,g.y],v=!0,("left"===C?x>g.x||x<f.x:x<g.x||x>f.x)&&(v=!1),g=[["M",g.x,g.y]],v&&g.push(y),g.push(["L",f.x,f.y]),g}}}),F}),ct(U,"Series/Pie/PieSeriesDefaults.js",[],function(){return{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,connectorPadding:5,connectorShape:"fixedOffset",crookDistance:"70%",distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},softConnector:!0,x:0},fillColor:void 0,ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:"#ffffff",borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}}}),ct(U,"Series/Pie/PieSeries.js",[U["Series/CenteredUtilities.js"],U["Series/Column/ColumnSeries.js"],U["Core/Globals.js"],U["Core/Legend/LegendSymbol.js"],U["Series/Pie/PiePoint.js"],U["Series/Pie/PieSeriesDefaults.js"],U["Core/Series/Series.js"],U["Core/Series/SeriesRegistry.js"],U["Core/Renderer/SVG/Symbols.js"],U["Core/Utilities.js"]],function(G,F,M,rt,it,ot,q,B,I,O){var A,g=this&&this.__extends||(A=function(j,k){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,p){r.__proto__=p}||function(r,p){for(var o in p)p.hasOwnProperty(o)&&(r[o]=p[o])})(j,k)},function(j,k){function r(){this.constructor=j}A(j,k),j.prototype=null===k?Object.create(k):(r.prototype=k.prototype,new r)}),f=G.getStartAndEndRadians;M=M.noop;var y=O.clamp,C=O.extend,v=O.fireEvent,x=O.merge,w=O.pick,T=O.relativeLength;return O=function(A){function j(){var k=null!==A&&A.apply(this,arguments)||this;return k.center=void 0,k.data=void 0,k.maxLabelDistance=void 0,k.options=void 0,k.points=void 0,k}return g(j,A),j.prototype.animate=function(k){var r=this,o=r.startAngleRad;k||r.points.forEach(function(h){var t=h.graphic,c=h.shapeArgs;t&&c&&(t.attr({r:w(h.startR,r.center&&r.center[3]/2),start:o,end:o}),t.animate({r:c.r,start:c.start,end:c.end},r.options.animation))})},j.prototype.drawEmpty=function(){var k=this.startAngleRad,r=this.endAngleRad,p=this.options;if(0===this.total&&this.center){var o=this.center[0],h=this.center[1];this.graph||(this.graph=this.chart.renderer.arc(o,h,this.center[1]/2,0,k,r).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:I.arc(o,h,this.center[2]/2,0,{start:k,end:r,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":p.borderWidth,fill:p.fillColor||"none",stroke:p.color||"#cccccc"})}else this.graph&&(this.graph=this.graph.destroy())},j.prototype.drawPoints=function(){var k=this.chart.renderer;this.points.forEach(function(r){r.graphic&&r.hasNewShapeType()&&(r.graphic=r.graphic.destroy()),r.graphic||(r.graphic=k[r.shapeType](r.shapeArgs).add(r.series.group),r.delayedRendering=!0)})},j.prototype.generatePoints=function(){A.prototype.generatePoints.call(this),this.updateTotals()},j.prototype.getX=function(k,r,p){var o=this.center,h=this.radii?this.radii[p.index]||0:o[2]/2;return k=Math.asin(y((k-o[1])/(h+p.labelDistance),-1,1)),o[0]+(r?-1:1)*Math.cos(k)*(h+p.labelDistance)+(0<p.labelDistance?(r?-1:1)*this.options.dataLabels.padding:0)},j.prototype.hasData=function(){return!!this.processedXData.length},j.prototype.redrawPoints=function(){var h,t,c,i,k=this,r=k.chart,p=r.renderer,o=k.options.shadow;this.drawEmpty(),!o||k.shadowGroup||r.styledMode||(k.shadowGroup=p.g("shadow").attr({zIndex:-1}).add(k.group)),k.points.forEach(function(s){var d={};if(t=s.graphic,!s.isNull&&t){var a=void 0;i=s.shapeArgs,h=s.getTranslate(),r.styledMode||(a=s.shadowGroup,o&&!a&&(a=s.shadowGroup=p.g("shadow").add(k.shadowGroup)),a&&a.attr(h),c=k.pointAttribs(s,s.selected&&"select")),s.delayedRendering?(t.setRadialReference(k.center).attr(i).attr(h),r.styledMode||t.attr(c).attr({"stroke-linejoin":"round"}).shadow(o,a),s.delayedRendering=!1):(t.setRadialReference(k.center),r.styledMode||x(!0,d,c),x(!0,d,i,h),t.animate(d)),t.attr({visibility:s.visible?"inherit":"hidden"}),t.addClass(s.getClassName(),!0)}else t&&(s.graphic=t.destroy())})},j.prototype.sortByAngle=function(k,r){k.sort(function(p,o){return typeof p.angle<"u"&&(o.angle-p.angle)*r})},j.prototype.translate=function(k){v(this,"translate"),this.generatePoints();var r=this.options,p=r.slicedOffset,o=p+(r.borderWidth||0),h=f(r.startAngle,r.endAngle),t=this.startAngleRad=h.start;h=(this.endAngleRad=h.end)-t;var c=this.points,i=r.dataLabels.distance;r=r.ignoreHiddenPoint;var d,s=c.length,a=0;for(k||(this.center=k=this.getCenter()),d=0;d<s;d++){var m=c[d],L=t+a*h;!m.isValid()||r&&!m.visible||(a+=m.percentage/100);var Y=t+a*h,_={x:k[0],y:k[1],r:k[2]/2,innerR:k[3]/2,start:Math.round(1e3*L)/1e3,end:Math.round(1e3*Y)/1e3};m.shapeType="arc",m.shapeArgs=_,m.labelDistance=w(m.options.dataLabels&&m.options.dataLabels.distance,i),m.labelDistance=T(m.labelDistance,_.r),this.maxLabelDistance=Math.max(this.maxLabelDistance||0,m.labelDistance),(Y=(Y+L)/2)>1.5*Math.PI?Y-=2*Math.PI:Y<-Math.PI/2&&(Y+=2*Math.PI),m.slicedTranslation={translateX:Math.round(Math.cos(Y)*p),translateY:Math.round(Math.sin(Y)*p)},_=Math.cos(Y)*k[2]/2;var e=Math.sin(Y)*k[2]/2;m.tooltipPos=[k[0]+.7*_,k[1]+.7*e],m.half=Y<-Math.PI/2||Y>Math.PI/2?1:0,m.angle=Y,L=Math.min(o,m.labelDistance/5),m.labelPosition={natural:{x:k[0]+_+Math.cos(Y)*m.labelDistance,y:k[1]+e+Math.sin(Y)*m.labelDistance},final:{},alignment:0>m.labelDistance?"center":m.half?"right":"left",connectorPosition:{breakAt:{x:k[0]+_+Math.cos(Y)*L,y:k[1]+e+Math.sin(Y)*L},touchingSliceAt:{x:k[0]+_,y:k[1]+e}}}}v(this,"afterTranslate")},j.prototype.updateTotals=function(){var o,k=this.points,r=k.length,p=this.options.ignoreHiddenPoint,h=0;for(o=0;o<r;o++){var t=k[o];!t.isValid()||p&&!t.visible||(h+=t.y)}for(this.total=h,o=0;o<r;o++)(t=k[o]).percentage=0<h&&(t.visible||!p)?t.y/h*100:0,t.total=h},j.defaultOptions=x(q.defaultOptions,ot),j}(q),C(O.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawLegendSymbol:rt.drawRectangle,drawTracker:F.prototype.drawTracker,getCenter:G.getCenter,getSymbol:M,isCartesian:!1,noSharedTooltip:!0,pointAttribs:F.prototype.pointAttribs,pointClass:it,requireSorting:!1,searchPoint:M,trackerGroups:["group","dataLabelsGroup"]}),B.registerSeriesType("pie",O),O}),ct(U,"Series/Pie/PieDataLabel.js",[U["Core/Series/DataLabel.js"],U["Core/Globals.js"],U["Core/Renderer/RendererUtilities.js"],U["Core/Series/SeriesRegistry.js"],U["Core/Utilities.js"]],function(G,F,M,rt,it){var v,ot=F.noop,q=M.distribute,B=rt.series,I=it.arrayMax,O=it.clamp,g=it.defined,f=it.merge,y=it.pick,C=it.relativeLength;return function(x){function w(){var l,P,D,b,n,S,u,z,E,N,W,Z,r=this,p=r.data,o=r.chart,h=r.options.dataLabels||{},t=h.connectorPadding,c=o.plotWidth,i=o.plotHeight,s=o.plotLeft,d=Math.round(o.chartWidth/3),a=r.center,m=a[2]/2,L=a[1],Y=[[],[]],_=[0,0,0,0],e=r.dataLabelPositioners;r.visible&&(h.enabled||r._hasPointLabels)&&(p.forEach(function($){$.dataLabel&&$.visible&&$.dataLabel.shortened&&($.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),$.dataLabel.shortened=!1)}),B.prototype.drawDataLabels.apply(r),p.forEach(function($){$.dataLabel&&($.visible?(Y[$.half].push($),$.dataLabel._pos=null,!g(h.style.width)&&!g($.options.dataLabels&&$.options.dataLabels.style&&$.options.dataLabels.style.width)&&$.dataLabel.getBBox().width>d&&($.dataLabel.css({width:Math.round(.7*d)+"px"}),$.dataLabel.shortened=!0)):($.dataLabel=$.dataLabel.destroy(),$.dataLabels&&1===$.dataLabels.length&&delete $.dataLabels))}),Y.forEach(function($,nt){var X,J=$.length,K=[];if(J){if(r.sortByAngle($,nt-.5),0<r.maxLabelDistance){var et=Math.max(0,L-m-r.maxLabelDistance),V=Math.min(L+m+r.maxLabelDistance,o.plotHeight);$.forEach(function(R){0<R.labelDistance&&R.dataLabel&&(R.top=Math.max(0,L-m-R.labelDistance),R.bottom=Math.min(L+m+R.labelDistance,o.plotHeight),X=R.dataLabel.getBBox().height||21,R.distributeBox={target:R.labelPosition.natural.y-R.top+X/2,size:X,rank:R.y},K.push(R.distributeBox))}),q(K,et=V+X-et,et/5)}for(W=0;W<J;W++){if(b=(l=$[W]).dataLabel,N=!1===l.visible?"hidden":"inherit",E=et=(S=l.labelPosition).natural.y,K&&g(l.distributeBox)&&(typeof l.distributeBox.pos>"u"?N="hidden":(u=l.distributeBox.size,E=e.radialDistributionY(l))),delete l.positionIndex,h.justify)z=e.justify(l,m,a);else switch(h.alignTo){case"connectors":z=e.alignToConnectors($,nt,c,s);break;case"plotEdges":z=e.alignToPlotEdges(b,nt,c,s);break;default:z=e.radialDistributionX(r,l,E,et)}b._attr={visibility:N,align:S.alignment},b._pos={x:z+y((Z=l.options.dataLabels||{}).x,h.x)+({left:t,right:-t}[S.alignment]||0),y:E+y(Z.y,h.y)-10},S.final.x=z,S.final.y=E,y(h.crop,!0)&&(n=b.getBBox().width,et=null,z-n<t&&1===nt?(et=Math.round(n-z+t),_[3]=Math.max(et,_[3])):z+n>c-t&&0===nt&&(et=Math.round(z+n-c+t),_[1]=Math.max(et,_[1])),0>E-u/2?_[0]=Math.max(Math.round(u/2-E),_[0]):E+u/2>i&&(_[2]=Math.max(Math.round(E+u/2-i),_[2])),b.sideOverflow=et)}}}),0===I(_)||this.verifyDataLabelOverflow(_))&&(this.placeDataLabels(),this.points.forEach(function($){var nt;Z=f(h,$.options.dataLabels),(P=y(Z.connectorWidth,1))&&(D=$.connector,(b=$.dataLabel)&&b._pos&&$.visible&&0<$.labelDistance?(N=b._attr.visibility,(nt=!D)&&($.connector=D=o.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+$.colorIndex+($.className?" "+$.className:"")).add(r.dataLabelsGroup),o.styledMode||D.attr({"stroke-width":P,stroke:Z.connectorColor||$.color||"#666666"})),D[nt?"attr":"animate"]({d:$.getConnectorPath()}),D.attr("visibility",N)):D&&($.connector=D.destroy()))}))}function T(){this.points.forEach(function(r){var o,p=r.dataLabel;p&&r.visible&&((o=p._pos)?(p.sideOverflow&&(p._attr.width=Math.max(p.getBBox().width-p.sideOverflow,0),p.css({width:p._attr.width+"px",textOverflow:(this.options.dataLabels.style||{}).textOverflow||"ellipsis"}),p.shortened=!0),p.attr(p._attr),p[p.moved?"animate":"attr"](o),p.moved=!0):p&&p.attr({y:-9999})),delete r.distributeBox},this)}function A(r){var p=this.center,o=this.options,h=o.center,t=o.minSize||80,c=null!==o.size;if(!c){if(null!==h[0])var i=Math.max(p[2]-Math.max(r[1],r[3]),t);else i=Math.max(p[2]-r[1]-r[3],t),p[0]+=(r[3]-r[1])/2;null!==h[1]?i=O(i,t,p[2]-Math.max(r[0],r[2])):(i=O(i,t,p[2]-r[0]-r[2]),p[1]+=(r[0]-r[2])/2),i<p[2]?(p[2]=i,p[3]=Math.min(o.thickness?Math.max(0,i-2*o.thickness):Math.max(0,C(o.innerSize||0,i)),i),this.translate(p),this.drawDataLabels&&this.drawDataLabels()):c=!0}return c}var j=[],k={radialDistributionY:function(r){return r.top+r.distributeBox.pos},radialDistributionX:function(r,p,o,h){return r.getX(o<p.top+2||o>p.bottom-2?h:o,p.half,p)},justify:function(r,p,o){return o[0]+(r.half?-1:1)*(p+r.labelDistance)},alignToPlotEdges:function(r,p,o,h){return r=r.getBBox().width,p?r+h:o-r-h},alignToConnectors:function(r,p,o,h){var c,t=0;return r.forEach(function(i){(c=i.dataLabel.getBBox().width)>t&&(t=c)}),p?t+h:o-t-h}};x.compose=function(r){G.compose(B),-1===j.indexOf(r)&&(j.push(r),(r=r.prototype).dataLabelPositioners=k,r.alignDataLabel=ot,r.drawDataLabels=w,r.placeDataLabels=T,r.verifyDataLabelOverflow=A)}}(v||(v={})),v}),ct(U,"Extensions/OverlappingDataLabels.js",[U["Core/Chart/Chart.js"],U["Core/Utilities.js"]],function(G,F){function M(O,g){var f=!1;if(O){var y=O.newOpacity;O.oldOpacity!==y&&(O.alignAttr&&O.placed?(O[y?"removeClass":"addClass"]("highcharts-data-label-hidden"),f=!0,O.alignAttr.opacity=y,O[O.isOld?"animate":"attr"](O.alignAttr,null,function(){g.styledMode||O.css({pointerEvents:y?"auto":"none"})}),it(g,"afterHideOverlappingLabel")):O.attr({opacity:y})),O.isOld=!0}return f}var it=F.fireEvent,ot=F.isArray,q=F.isNumber,B=F.objectEach,I=F.pick;(0,F.addEvent)(G,"render",function(){var O=this,g=[];(this.labelCollectors||[]).forEach(function(f){g=g.concat(f())}),(this.yAxis||[]).forEach(function(f){f.stacking&&f.options.stackLabels&&!f.options.stackLabels.allowOverlap&&B(f.stacking.stacks,function(y){B(y,function(C){C.label&&g.push(C.label)})})}),(this.series||[]).forEach(function(f){var y=f.options.dataLabels;f.visible&&(!1!==y.enabled||f._hasPointLabels)&&((y=function(C){return C.forEach(function(v){v.visible&&(ot(v.dataLabels)?v.dataLabels:v.dataLabel?[v.dataLabel]:[]).forEach(function(x){var w=x.options;x.labelrank=I(w.labelrank,v.labelrank,v.shapeArgs&&v.shapeArgs.height),w.allowOverlap?(x.oldOpacity=x.opacity,x.newOpacity=1,M(x,O)):g.push(x)})})})(f.nodes||[]),y(f.points))}),this.hideOverlappingLabels(g)}),G.prototype.hideOverlappingLabels=function(O){var C,v,x,g=this,f=O.length,y=g.renderer,w=!1,T=function(k){var r,h,p=k.box?0:k.padding||0,o=r=0;if(k&&(!k.alignAttr||k.placed)){var t=k.alignAttr||{x:k.attr("x"),y:k.attr("y")},c=k.parentGroup;return k.width||(r=k.getBBox(),k.width=r.width,k.height=r.height,r=y.fontMetrics(null,k.element).h),(h={left:"0",center:"0.5",right:"1"}[k.alignValue])?o=+h*(k.width-2*p):q(k.x)&&Math.round(k.x)!==k.translateX&&(o=k.x-k.translateX),{x:t.x+(c.translateX||0)+p-(o||0),y:t.y+(c.translateY||0)+p-r,width:k.width-2*p,height:k.height-2*p}}};for(v=0;v<f;v++)(C=O[v])&&(C.oldOpacity=C.opacity,C.newOpacity=1,C.absoluteBox=T(C));for(O.sort(function(k,r){return(r.labelrank||0)-(k.labelrank||0)}),v=0;v<f;v++){var A=(T=O[v])&&T.absoluteBox;for(C=v+1;C<f;++C){var j=(x=O[C])&&x.absoluteBox;!A||!j||T===x||0===T.newOpacity||0===x.newOpacity||"hidden"===T.visibility||"hidden"===x.visibility||j.x>=A.x+A.width||j.x+j.width<=A.x||j.y>=A.y+A.height||j.y+j.height<=A.y||((T.labelrank<x.labelrank?T:x).newOpacity=0)}}O.forEach(function(k){M(k,g)&&(w=!0)}),w&&it(g,"afterHideAllOverlappingLabels")}}),ct(U,"Core/Responsive.js",[U["Core/Utilities.js"]],function(G){var g,F=G.extend,M=G.find,rt=G.isArray,it=G.isObject,ot=G.merge,q=G.objectEach,B=G.pick,I=G.splat,O=G.uniqueKey;return function(f){var y=[];f.compose=function(v){return-1===y.indexOf(v)&&(y.push(v),F(v.prototype,C.prototype)),v};var C=function(){function v(){}return v.prototype.currentOptions=function(x){var T=this,A={};return function w(j,k,r,p){var o;q(j,function(h,t){if(!p&&-1<T.collectionsWithUpdate.indexOf(t)&&k[t])for(h=I(h),r[t]=[],o=0;o<Math.max(h.length,k[t].length);o++)k[t][o]&&(void 0===h[o]?r[t][o]=k[t][o]:(r[t][o]={},w(h[o],k[t][o],r[t][o],p+1)));else it(h)?(r[t]=rt(h)?[]:{},w(h,k[t]||{},r[t],p+1)):r[t]=typeof k[t]>"u"?null:k[t]})}(x,this.options,A,0),A},v.prototype.matchResponsiveRule=function(x,w){var T=x.condition;(T.callback||function(){return this.chartWidth<=B(T.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=B(T.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=B(T.minWidth,0)&&this.chartHeight>=B(T.minHeight,0)}).call(this)&&w.push(x._id)},v.prototype.setResponsive=function(x,w){var T=this,A=this.options.responsive,j=this.currentResponsive,k=[];!w&&A&&A.rules&&A.rules.forEach(function(r){typeof r._id>"u"&&(r._id=O()),T.matchResponsiveRule(r,k)},this),(w=ot.apply(void 0,k.map(function(r){return M((A||{}).rules||[],function(p){return p._id===r})}).map(function(r){return r&&r.chartOptions}))).isResponsiveOptions=!0,(k=k.toString()||void 0)!==(j&&j.ruleIds)&&(j&&this.update(j.undoOptions,x,!0),k?((j=this.currentOptions(w)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:k,mergedOptions:w,undoOptions:j},this.update(w,x,!0)):this.currentResponsive=void 0)},v}()}(g||(g={})),g}),ct(U,"masters/highcharts.src.js",[U["Core/Globals.js"],U["Core/Utilities.js"],U["Core/Defaults.js"],U["Core/Animation/Fx.js"],U["Core/Animation/AnimationUtilities.js"],U["Core/Renderer/HTML/AST.js"],U["Core/FormatUtilities.js"],U["Core/Renderer/RendererUtilities.js"],U["Core/Renderer/SVG/SVGElement.js"],U["Core/Renderer/SVG/SVGRenderer.js"],U["Core/Renderer/HTML/HTMLElement.js"],U["Core/Renderer/HTML/HTMLRenderer.js"],U["Core/Axis/Axis.js"],U["Core/Axis/DateTimeAxis.js"],U["Core/Axis/LogarithmicAxis.js"],U["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],U["Core/Axis/Tick.js"],U["Core/Tooltip.js"],U["Core/Series/Point.js"],U["Core/Pointer.js"],U["Core/MSPointer.js"],U["Core/Legend/Legend.js"],U["Core/Chart/Chart.js"],U["Core/Axis/Stacking/StackingAxis.js"],U["Core/Axis/Stacking/StackItem.js"],U["Core/Series/Series.js"],U["Core/Series/SeriesRegistry.js"],U["Series/Column/ColumnSeries.js"],U["Series/Column/ColumnDataLabel.js"],U["Series/Pie/PieSeries.js"],U["Series/Pie/PieDataLabel.js"],U["Core/Series/DataLabel.js"],U["Core/Responsive.js"],U["Core/Color/Color.js"],U["Core/Time.js"]],function(G,F,M,rt,it,ot,q,B,I,O,g,f,y,C,v,x,w,T,A,j,k,r,p,o,h,t,c,i,s,d,a,m,L,Y,_){return G.animate=it.animate,G.animObject=it.animObject,G.getDeferredAnimation=it.getDeferredAnimation,G.setAnimation=it.setAnimation,G.stop=it.stop,G.timers=rt.timers,G.AST=ot,G.Axis=y,G.Chart=p,G.chart=p.chart,G.Fx=rt,G.Legend=r,G.PlotLineOrBand=x,G.Point=A,G.Pointer=k.isRequired()?k:j,G.Series=t,G.StackItem=h,G.SVGElement=I,G.SVGRenderer=O,G.Tick=w,G.Time=_,G.Tooltip=T,G.Color=Y,G.color=Y.parse,f.compose(O),g.compose(I),G.defaultOptions=M.defaultOptions,G.getOptions=M.getOptions,G.time=M.defaultTime,G.setOptions=M.setOptions,G.dateFormat=q.dateFormat,G.format=q.format,G.numberFormat=q.numberFormat,G.addEvent=F.addEvent,G.arrayMax=F.arrayMax,G.arrayMin=F.arrayMin,G.attr=F.attr,G.clearTimeout=F.clearTimeout,G.correctFloat=F.correctFloat,G.createElement=F.createElement,G.css=F.css,G.defined=F.defined,G.destroyObjectProperties=F.destroyObjectProperties,G.discardElement=F.discardElement,G.distribute=B.distribute,G.erase=F.erase,G.error=F.error,G.extend=F.extend,G.extendClass=F.extendClass,G.find=F.find,G.fireEvent=F.fireEvent,G.getMagnitude=F.getMagnitude,G.getStyle=F.getStyle,G.inArray=F.inArray,G.isArray=F.isArray,G.isClass=F.isClass,G.isDOMElement=F.isDOMElement,G.isFunction=F.isFunction,G.isNumber=F.isNumber,G.isObject=F.isObject,G.isString=F.isString,G.keys=F.keys,G.merge=F.merge,G.normalizeTickInterval=F.normalizeTickInterval,G.objectEach=F.objectEach,G.offset=F.offset,G.pad=F.pad,G.pick=F.pick,G.pInt=F.pInt,G.relativeLength=F.relativeLength,G.removeEvent=F.removeEvent,G.seriesType=c.seriesType,G.splat=F.splat,G.stableSort=F.stableSort,G.syncTimeout=F.syncTimeout,G.timeUnits=F.timeUnits,G.uniqueKey=F.uniqueKey,G.useSerialIds=F.useSerialIds,G.wrap=F.wrap,s.compose(i),m.compose(t),C.compose(y),v.compose(y),a.compose(d),x.compose(y),L.compose(p),o.compose(y,p,t),G}),U["masters/highcharts.src.js"]._modules=U,U["masters/highcharts.src.js"]},Ot.exports?(ct.default=ct,Ot.exports=Tt.document?ct(Tt):ct):void 0!==(wt=function(){return ct(Tt)}.call(Lt,vt,Lt,Ot))&&(Ot.exports=wt)}}]);