marketplacepos 2.8.0 → 2.8.2
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.
- package/Marketplace/369.8c9ca2ecf6f3a760.js +1 -0
- package/Marketplace/379.fd2e5a0bd36c9b00.js +1 -0
- package/Marketplace/393.9113a28596b36003.js +1 -0
- package/Marketplace/397.c6768a042e8257c0.js +1 -0
- package/Marketplace/3rdpartylicenses.txt +3 -0
- package/Marketplace/408.c73edfe24695a688.js +1 -0
- package/Marketplace/425.03f8f97da7452806.js +1 -0
- package/Marketplace/46.40ebac81bd0fb91b.js +1 -0
- package/Marketplace/{53.7e8bb7325980dfd5.js → 53.ab0f83f4bba76774.js} +1 -1
- package/Marketplace/655.9604b4370243c059.js +1 -0
- package/Marketplace/717.5d253da5bb63552f.js +1 -0
- package/Marketplace/718.455a3c47fb180214.js +1 -0
- package/Marketplace/{859.b43bda3adda95fa3.js → 859.3a4d26983bbb5254.js} +1 -1
- package/Marketplace/874.5b06431d2b5a1e8f.js +1 -0
- package/Marketplace/877.bab93e3da1ff1928.js +1 -0
- package/Marketplace/884.06eb48b1f2379d09.js +1 -0
- package/Marketplace/{913.6b5b3db030c3bc49.js → 913.ac94f56e393c389b.js} +1 -1
- package/Marketplace/997.1e5281aa64540dee.js +1 -0
- package/Marketplace/common.29d2fb726f28cde8.js +1 -0
- package/Marketplace/index.html +3 -3
- package/Marketplace/main.f21ded8d313b0b60.js +1 -0
- package/Marketplace/runtime.2d126c69c13cad80.js +1 -0
- package/package.json +1 -1
- package/Marketplace/369.b5bcb467b3ca04c8.js +0 -1
- package/Marketplace/397.55fafd1d8945185c.js +0 -1
- package/Marketplace/408.b53797a5bda9f7f8.js +0 -1
- package/Marketplace/46.67982fb195b43a4d.js +0 -1
- package/Marketplace/655.09b1b17f23a59b7e.js +0 -1
- package/Marketplace/717.2e5a78cf17e9bed1.js +0 -1
- package/Marketplace/718.78930b2d3e9fc2bd.js +0 -1
- package/Marketplace/82.fecf4fa3a3743326.js +0 -1
- package/Marketplace/87.0c53ec1547d4d5d5.js +0 -1
- package/Marketplace/874.7662257927081a57.js +0 -1
- package/Marketplace/877.7e5f8104980e0168.js +0 -1
- package/Marketplace/884.45404dc14d1585a7.js +0 -1
- package/Marketplace/970.7c36426f4bcc50cb.js +0 -1
- package/Marketplace/997.08e3f8cf0bafff67.js +0 -1
- package/Marketplace/common.df21aa97084954ce.js +0 -1
- package/Marketplace/main.c27e23d32d8dc713.js +0 -1
- package/Marketplace/runtime.447f149bd5bc7630.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunkpos_marketplace=self.webpackChunkpos_marketplace||[]).push([[655],{9655:(Ot,Lt,vt)=>{"use strict";vt.r(Lt),vt.d(Lt,{DashboardModule:()=>K});var At=vt(6895),Tt=vt(3470),ct=vt(4782),U=vt(4004),X=vt(9694),Y=vt(1889),M=vt(4650),rt=vt(529),it=vt(4461);class ot{constructor(J){this.Chart=J.Chart,this.PerformanceChannel=J.PerformanceChannel,this.lineChartOptions=this.generateLineChartOptions(),this.pieChartOptions=this.generatePieChartOptions()}generateLineChartOptions(){let J=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(Z=>(J=0,Z?.Data.forEach(nt=>{0==nt&&(J+=1)}),J!=Z.Data.length)).map(Z=>({name:Z.Name,data:Z.Data,type:"spline",color:Y.g.getCssChannelColor(Z.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(F=>F.Order>0).map(F=>({name:F.Name,y:F.Order,color:Y.g.getCssChannelColor(F.TypeID)}))}]}}}class q{constructor(J){this.http=J}getDashboardData(J){const Z=(new rt.LE).set("range","Week"==J?0:1);return this.http.get("/api/dashboard/GetDashboardData",{params:Z}).pipe((0,U.U)(nt=>new ot(nt)))}getChannelShortcuts(){return[{name:"Tokopedia",class:"btn-tokopedia",typeId:X.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:X.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:X.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:X.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(J){return new(J||q)(M.LFG(rt.eN))},q.\u0275prov=M.Yz7({token:q,factory:q.\u0275fac});var B=vt(7481),I=vt(4006);let O=(()=>{class Q{constructor(F,Z){this.el=F,this._zone=Z,this.updateChange=new M.vpe(!0),this.chartInstance=new M.vpe}ngOnChanges(F){const Z=F.update&&F.update.currentValue;(F.options||Z)&&(this.wrappedUpdateOrCreateChart(),Z&&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 Q.\u0275fac=function(F){return new(F||Q)(M.Y36(M.SBq),M.Y36(M.R0b))},Q.\u0275cmp=M.Xpm({type:Q,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(F,Z){},encapsulation:2}),Q})(),g=(()=>{class Q{}return Q.\u0275fac=function(F){return new(F||Q)},Q.\u0275mod=M.oAB({type:Q}),Q.\u0275inj=M.cJS({}),Q})();var f=vt(8796),y=vt(7253),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(Q,J){if(1&Q){const F=M.EpF();M.TgZ(0,"div",3),M.NdJ("@arrowPosition.start",function(){M.CHM(F);const nt=M.oxw();return M.KtG(nt._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){M.CHM(F);const nt=M.oxw();return M.KtG(nt._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&Q){const F=M.oxw();M.Q6J("@arrowOpacity",F._getArrowViewState())("@arrowPosition",F._getArrowViewState())("@allowChildren",F._getArrowDirectionState()),M.xp6(2),M.Q6J("@indicator",F._getArrowDirectionState()),M.xp6(1),M.Q6J("@leftPointer",F._getArrowDirectionState()),M.xp6(1),M.Q6J("@rightPointer",F._getArrowDirectionState())}}const r=["*"],c=new M.OlP("MAT_SORT_DEFAULT_OPTIONS"),i=(0,x.dB)((0,x.Id)(class{}));let s=(()=>{class Q extends i{get direction(){return this._direction}set direction(F){this._direction=F}get disableClear(){return this._disableClear}set disableClear(F){this._disableClear=(0,C.Ig)(F)}constructor(F){super(),this._defaultOptions=F,this.sortables=new Map,this._stateChanges=new w.x,this.start="asc",this._direction="",this.sortChange=new M.vpe}register(F){this.sortables.set(F.id,F)}deregister(F){this.sortables.delete(F.id)}sort(F){this.active!=F.id?(this.active=F.id,this.direction=F.start?F.start:this.start):this.direction=this.getNextSortDirection(F),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(F){if(!F)return"";let nt=function d(Q,J){let F=["asc","desc"];return"desc"==Q&&F.reverse(),J||F.push(""),F}(F.start||this.start,F?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear),$=nt.indexOf(this.direction)+1;return $>=nt.length&&($=0),nt[$]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return Q.\u0275fac=function(F){return new(F||Q)(M.Y36(c,8))},Q.\u0275dir=M.lG2({type:Q,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]}),Q})();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 Q{constructor(){this.changes=new w.x}}return Q.\u0275fac=function(F){return new(F||Q)},Q.\u0275prov=M.Yz7({token:Q,factory:Q.\u0275fac,providedIn:"root"}),Q})();const R={provide:L,deps:[[new M.FiY,new M.tp0,L]],useFactory:function G(Q){return Q||new L}},e=(0,x.Id)(class{});let l=(()=>{class Q extends e{get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(F){this._updateSortActionDescription(F)}get disableClear(){return this._disableClear}set disableClear(F){this._disableClear=(0,C.Ig)(F)}constructor(F,Z,nt,$,z,N,tt,et){super(),this._intl=F,this._changeDetectorRef=Z,this._sort=nt,this._columnDef=$,this._focusMonitor=z,this._elementRef=N,this._ariaDescriber=tt,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",et?.arrowPosition&&(this.arrowPosition=et?.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(F=>{const Z=!!F;Z!==this._showIndicatorHint&&(this._setIndicatorHintVisible(Z),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(F){this._isDisabled()&&F||(this._showIndicatorHint=F,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(F){this._viewState=F||{},this._disableViewStateAnimation&&(this._viewState={toState:F.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(F){!this._isDisabled()&&(F.keyCode===v.L_||F.keyCode===v.K5)&&(F.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 F=this._viewState.fromState;return(F?`${F}-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(F){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,F)),this._sortActionDescription=F}_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 Q.\u0275fac=function(F){return new(F||Q)(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))},Q.\u0275cmp=M.Xpm({type:Q,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(F,Z){1&F&&M.NdJ("click",function(){return Z._handleClick()})("keydown",function($){return Z._handleKeydown($)})("mouseenter",function(){return Z._setIndicatorHintVisible(!0)})("mouseleave",function(){return Z._setIndicatorHintVisible(!1)}),2&F&&(M.uIk("aria-sort",Z._getAriaSortAttribute()),M.ekj("mat-sort-header-disabled",Z._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(F,Z){1&F&&(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&F&&(M.ekj("mat-sort-header-sorted",Z._isSorted())("mat-sort-header-position-before","before"===Z.arrowPosition),M.uIk("tabindex",Z._isDisabled()?null:0)("role",Z._isDisabled()?null:"button"),M.xp6(3),M.Q6J("ngIf",Z._renderArrow()))},dependencies:[At.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}),Q})(),P=(()=>{class Q{}return Q.\u0275fac=function(F){return new(F||Q)},Q.\u0275mod=M.oAB({type:Q}),Q.\u0275inj=M.cJS({providers:[R],imports:[At.ez,x.BQ]}),Q})();class E{transform(J,F,Z,nt){let $=0;return J&&!Z&&!nt&&J.forEach(z=>$+=z[F]-0),Z&&nt&&J.forEach(z=>{z[Z]==nt&&($+=z[F]-0)}),$}}function b(Q,J){if(1&Q&&(M.TgZ(0,"tr",33)(1,"td"),M._UZ(2,"img",34),M.qZA(),M.TgZ(3,"td",35),M._uU(4),M.qZA(),M.TgZ(5,"td",36),M._uU(6),M.ALo(7,"number"),M.qZA(),M.TgZ(8,"td",37),M._uU(9),M.ALo(10,"number"),M.qZA(),M.TgZ(11,"td",38),M._uU(12),M.ALo(13,"number"),M.qZA()()),2&Q){const F=J.$implicit;M.xp6(2),M.Q6J("src",F.logo,M.LSH),M.xp6(2),M.Oqu(F.Name),M.xp6(2),M.Oqu(M.lcZ(7,5,F.Products)),M.xp6(3),M.Oqu(M.lcZ(10,7,F.Order)),M.xp6(3),M.Oqu(M.lcZ(13,9,F.Amount))}}function n(Q,J){if(1&Q&&(M.ynx(0),M.TgZ(1,"div",39)(2,"div",18)(3,"table",40)(4,"tbody")(5,"tr")(6,"td",41),M._UZ(7,"img",34),M.qZA(),M.TgZ(8,"td",42)(9,"a",43),M._uU(10,"Seller Center"),M.qZA()(),M.TgZ(11,"td",42)(12,"a",44),M._uU(13,"Chat"),M.qZA()(),M.TgZ(14,"td",42)(15,"a",43),M._uU(16,"Campaign"),M.qZA()()()()()()(),M.BQk()),2&Q){const F=J.$implicit;M.xp6(7),M.Q6J("src",F.logo,M.LSH),M.xp6(2),M.Tol(F.class),M.Q6J("href",F.sellerCenter,M.LSH),M.xp6(3),M.Tol(F.class),M.Q6J("href",F.chat,M.LSH),M.xp6(3),M.Tol(F.class),M.Q6J("href",F.campaign,M.LSH)}}function S(Q,J){if(1&Q){const F=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,"Transaction"),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,"Order Count Cart"),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,"Channel Performance"),M.qZA()(),M.TgZ(24,"div",9)(25,"div",18)(26,"table",19),M.NdJ("matSortChange",function(nt){const z=M.CHM(F).ngIf,N=M.oxw();return M.KtG(N.onSort(nt,z))}),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),M.YNc(58,n,17,10,"ng-container",32),M.qZA()(),M.BQk()}if(2&Q){const F=J.ngIf,Z=M.oxw();M.xp6(9),M.Q6J("Highcharts",Z.Highcharts)("options",F.lineChartOptions),M.xp6(8),M.Q6J("Highcharts",Z.Highcharts)("options",F.pieChartOptions),M.xp6(22),M.Q6J("ngForOf",F.PerformanceChannel),M.xp6(7),M.Oqu(M.lcZ(47,9,M.xi3(48,11,F.PerformanceChannel,"Products"))),M.xp6(4),M.hij("",M.lcZ(51,14,M.xi3(52,16,F.PerformanceChannel,"Order"))," "),M.xp6(4),M.hij("",M.lcZ(55,19,M.xi3(56,21,F.PerformanceChannel,"Amount"))," "),M.xp6(4),M.Q6J("ngForOf",Z.channelShortcut)}}E.\u0275fac=function(J){return new(J||E)},E.\u0275pipe=M.Yjl({name:"sum",type:E,pure:!0});const u=function(){return["Week","Month"]};class _{constructor(J){this.dashboardService=J,this.Highcharts=Tt,this.filter="Week",this.channelType=X.x,this.channelShortcut=J.getChannelShortcuts()}ngOnInit(){this.initDashboardData()}initDashboardData(){this.dashboardData$=this.dashboardService.getDashboardData(this.filter).pipe((0,ct.d)(),(0,U.U)(J=>(J.PerformanceChannel=J.PerformanceChannel.map(F=>(F.logo=Y.g.getChannelLogoByTypeId(F.TypeID),F)),this.performanceChannelSource=JSON.parse(JSON.stringify(J.PerformanceChannel)),J.PerformanceChannel=this.sorting(J.PerformanceChannel,"Amount","desc"),this.filterChannelShortcut(J.PerformanceChannel),J)))}filterChannelShortcut(J){const F=J.filter((Z,nt,$)=>$.findIndex(z=>z.TypeID==Z.TypeID)===nt);this.channelShortcut=this.channelShortcut.filter(Z=>-1!==F.findIndex(nt=>nt.TypeID==Z.typeId))}sorting(J,F,Z){return J.sort((nt,$)=>Y.g.compare(nt[F],$[F],"asc"==Z))}onFilter(){this.initDashboardData()}onSort(J,F){F.PerformanceChannel=J.active&&""!==J.direction?F.PerformanceChannel.sort((Z,nt)=>{const $="asc"===J.direction;switch(J.active){case"Products":return Y.g.compare(Z.Products,nt.Products,$);case"Order":return Y.g.compare(Z.Order,nt.Order,$);case"Amount":return Y.g.compare(Z.Amount,nt.Amount,$);default:return 0}}):JSON.parse(JSON.stringify(this.performanceChannelSource))}}_.\u0275fac=function(J){return new(J||_)(M.Y36(q))},_.\u0275cmp=M.Xpm({type:_,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"],[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"],[1,"card","shortcut","py-2"],[1,"table","table-sm","table-borderless"],[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(J,F){1&J&&(M.TgZ(0,"mainpanel",0),M.NdJ("onSubmit",function(){return F.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(nt){return F.filter=nt}),M.qZA()()()(),M.TgZ(7,"content")(8,"div",4),M.YNc(9,S,59,24,"ng-container",5),M.ALo(10,"async"),M.qZA()()()),2&J&&(M.Q6J("hideSearchBox",!0),M.xp6(6),M.Q6J("items",M.DdM(6,u))("ngModel",F.filter),M.xp6(3),M.Q6J("ngIf",M.lcZ(10,4,F.dashboardData$)))},dependencies:[At.sg,At.O5,B.p,I.JJ,I.On,O,f.w9,s,l,At.Ov,At.JJ,E],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 D=vt(284);class H{}H.\u0275fac=function(J){return new(J||H)},H.\u0275mod=M.oAB({type:H}),H.\u0275inj=M.cJS({providers:[E],imports:[At.ez]});var W=vt(1108);const V=[{path:"",component:_}];class K{}K.\u0275fac=function(J){return new(J||K)},K.\u0275mod=M.oAB({type:K}),K.\u0275inj=M.cJS({providers:[q],imports:[At.ez,D.Bz.forChild(V),B.R,I.u5,g,f.A0,H,W.f,P]})},3470:function(Ot,Lt,vt){var At,Tt,ct;Tt=typeof window<"u"?window:this,ct=function(Tt){function ct(X,Y,M,rt){X.hasOwnProperty(Y)||(X[Y]=rt.apply(null,M),"function"==typeof CustomEvent&&Tt.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:Y,module:X[Y]}})))}var U={};return ct(U,"Core/Globals.js",[],function(){var X,Y;return(Y=X||(X={})).SVG_NS="http://www.w3.org/2000/svg",Y.product="Highcharts",Y.version="10.3.3",Y.win=typeof Tt<"u"?Tt:{},Y.doc=Y.win.document,Y.svg=Y.doc&&Y.doc.createElementNS&&!!Y.doc.createElementNS(Y.SVG_NS,"svg").createSVGRect,Y.userAgent=Y.win.navigator&&Y.win.navigator.userAgent||"",Y.isChrome=-1!==Y.userAgent.indexOf("Chrome"),Y.isFirefox=-1!==Y.userAgent.indexOf("Firefox"),Y.isMS=/(edge|msie|trident)/i.test(Y.userAgent)&&!Y.win.opera,Y.isSafari=!Y.isChrome&&-1!==Y.userAgent.indexOf("Safari"),Y.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(Y.userAgent),Y.isWebKit=-1!==Y.userAgent.indexOf("AppleWebKit"),Y.deg2rad=2*Math.PI/360,Y.hasBidiBug=Y.isFirefox&&4>parseInt(Y.userAgent.split("Firefox/")[1],10),Y.hasTouch=!!Y.win.TouchEvent,Y.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],Y.noop=function(){},Y.supportsPassiveEvents=function(){var M=!1;if(!Y.isMS){var rt=Object.defineProperty({},"passive",{get:function(){M=!0}});Y.win.addEventListener&&Y.win.removeEventListener&&(Y.win.addEventListener("testPassive",Y.noop,rt),Y.win.removeEventListener("testPassive",Y.noop,rt))}return M}(),Y.charts=[],Y.dateFormats={},Y.seriesTypes={},Y.symbolSizes={},Y.chartCount=0,X}),ct(U,"Core/Utilities.js",[U["Core/Globals.js"]],function(X){function Y(i,s,d,a){var m=s?"Highcharts error":"Highcharts warning";32===i&&(i=m+": Deprecated member");var L=O(i),G=L?m+" #"+i+": www.highcharts.com/errors/"+i+"/":i.toString();if(typeof a<"u"){var R="";L&&(G+="?"),A(a,function(e,l){R+="\n - ".concat(l,": ").concat(e),L&&(G+=encodeURI(l)+"="+encodeURI(e))}),G+=R}k(X,"displayError",{chart:d,code:i,message:G,params:a},function(){if(s)throw Error(G);o.console&&-1===Y.messages.indexOf(G)&&console.warn(G)}),Y.messages.push(G)}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(G,R){g(G)?i.setAttribute(R,G):a?(m=i.getAttribute(R))||"class"!==R||(m=i.getAttribute(R+"Name")):i.removeAttribute(R)};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){X.isMS&&!X.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(R,e){var l=i.removeEventListener||X.removeEventListenerPolyfill;l&&l.call(i,R,e,!1)}function m(R){var e;if(i.nodeName){if(s){var l={};l[s]=!0}else l=R;A(l,function(P,E){if(R[E])for(e=R[E].length;e--;)a(E,R[E][e].fn)})}}var L="function"==typeof i&&i.prototype||i;if(Object.hasOwnProperty.call(L,"hcEvents")){var G=L.hcEvents;s?(L=G[s]||[],d?(G[s]=L.filter(function(R){return d!==R.fn}),a(s,d)):(m(G),G[s]=[])):(m(G),delete L.hcEvents)}}function k(i,s,d,a){if(d=d||{},p.createEvent&&(i.dispatchEvent||i.fireEvent&&i!==X)){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,G=!1;L.hcEvents;)Object.hasOwnProperty.call(L,"hcEvents")&&L.hcEvents[s]&&(m.length&&(G=!0),m.unshift.apply(m,L.hcEvents[s])),L=Object.getPrototypeOf(L);G&&m.sort(function(R,e){return R.order-e.order}),m.forEach(function(R){!1===R.fn.call(i,d)&&d.preventDefault()})}a&&!d.defaultPrevented&&a.call(i,d)}var r=X.charts,p=X.doc,o=X.win;(Y||(Y={})).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){X[s]=function(d){var a;return Y(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(X[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,X.Point&&i instanceof X.Point&&i.series&&i.series.chart&&(i.series.chart.runTrackerClick=!0);var L=i.addEventListener||X.addEventListenerPolyfill;return L&&L.call(i,s,d,!!X.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(G,R){return G.order-R.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:Y,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=X.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||Y(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 Y(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 Y(32,!1,void 0,{"Highcharts.keys":"use Object.keys"}),Object.keys(i)},merge:function(){var i,s=arguments,d={},a=function(L,G){return"object"!=typeof L&&(L={}),A(G,function(R,e){"__proto__"!==e&&"constructor"!==e&&(L[e]=!q(R,!0)||I(R)||B(R)?G[e]:a(L[e]||{},R))}),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,G=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(R){return R%1==0}):.1>=d&&(s=[1/d]))),a=0;a<s.length&&(L=s[a],!(m&&L*d>=i||!m&&G<=(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,G){return 0===(a=s(L,G))?L.safeI-G.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(X,Y){var M=Y.isNumber,rt=Y.merge,it=Y.pInt;return function(){function ot(q){this.rgba=[NaN,NaN,NaN,NaN],this.input=q;var B=X.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(X,Y){var M=X.win,rt=Y.defined,it=Y.error,ot=Y.extend,q=Y.isObject,B=Y.merge,I=Y.objectEach,O=Y.pad,g=Y.pick,f=Y.splat,y=Y.timeUnits,C=X.isSafari&&M.Intl&&M.Intl.DateTimeFormat.prototype.formatRange,v=X.isSafari&&M.Intl&&!M.Intl.DateTimeFormat.prototype.formatRange;return Y=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 X.defaultOptions.lang&&X.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=X.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)},X.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}(),Y}),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(X,Y,M,rt,it,ot){Y=Y.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:X,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:Y("#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(X,Y,M){var rt=X.parse,it=Y.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(X,Y){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=X.timers.length;v--;)X.timers[v].elem!==y||C&&C!==X.timers[v].prop||(X.timers[v].stopped=!0)}var it=Y.defined,ot=Y.getStyle,q=Y.isArray,B=Y.isNumber,I=Y.isObject,O=Y.merge,g=Y.objectEach,f=Y.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 X(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(X,Y){var M=X.SVG_NS,rt=Y.attr,it=Y.createElement,ot=Y.css,q=Y.error,B=Y.isFunction,I=Y.isString,O=Y.objectEach,g=Y.splat,f=(Y=X.win.trustedTypes)&&B(Y.createPolicy)&&Y.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,"<"))}),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?X.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=X.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(X,Y){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=X.defaultOptions,it=X.defaultTime,ot=Y.getNestedProperty,q=Y.isNumber,B=Y.pick,I=Y.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(X){var it,Y=X.clamp,M=X.pick,rt=X.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=Y(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(X,Y,M,rt){var it=X.animate,ot=X.animObject,q=X.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 X=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 G=this.zIndexSetter();return G||(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(G,R){return-1===L.indexOf(R)&&G.push(R),G},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,E,G={},R=this.renderer,e=R.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,R[l],"scrollablePlotBox"===l?R.plotBox:void 0,R);var b=a.verticalAlign;return R=(L.x||0)+(a.x||0),e=(L.y||0)+(a.y||0),"right"===(l=a.align)?P=1:"center"===l&&(P=2),P&&(R+=(L.width-(a.width||0))/P),G[m?"translateX":"x"]=Math.round(R),"bottom"===b?E=1:"middle"===b&&(E=2),E&&(e+=(L.height-(a.height||0))/E),G[m?"translateY":"y"]=Math.round(e),this[this.placed?"animate":"attr"](G),this.placed=!0,this.alignAttr=G,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 G=this,R=ot(t(m,this.renderer.globalAnimation,!0));return m=R.defer,t(I.hidden,I.msHidden,I.webkitHidden,!1)&&(R.duration=0),0!==R.duration?(L&&(R.complete=L),i(function(){G.element&&it(G,a,R)},m)):(this.attr(a,void 0,L||R.complete),h(a,function(e,l){R.step&&R.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 G=I.createElementNS(g,"tspan");C(G,{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)}),G.appendChild(l)});var R=0;[].forEach.call(a.querySelectorAll("text tspan"),function(e){R+=Number(e.getAttribute("dy"))}),(L=I.createElementNS(g,"tspan")).textContent="\u200b",C(L,{x:Number(m.getAttribute("x")),dy:-R}),G.appendChild(L),a.insertBefore(G,a.firstChild)}},d.prototype.attr=function(a,m,L,G){var l,E,b,R=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,R):(h(a,function(S,u){E=!1,G||q(this,u),this.symbolName&&-1!==e.indexOf(u)&&(l||(this.symbolAttr(a),l=!0),E=!0),!this.rotation||"x"!==u&&"y"!==u||(this.doTransform=!0),E||((b=this[u+"Setter"]||this._defaultSetter).call(this,S,u,R),!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 R,e,l,P,E,b,n,S,u,_,H,G=this.renderer,D=[];j(this.renderer,"complexColor",{args:arguments},function(){if(a.radialGradient?e="radialGradient":a.linearGradient&&(e="linearGradient"),e){if(E=G.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,G.getRadialAttr(u,P=l),{gradientUnits:"userSpaceOnUse"})),h(l,function(V,K){"id"!==K&&D.push(K,V)}),h(b,function(V){D.push(V)}),D=D.join(","),E[D])_=E[D].attr("id");else{l.id=_=s();var W=E[D]=G.createElement(e).attr(l).add(G.defs);W.radAttr=P,W.stops=[],b.forEach(function(V){0===V[1].indexOf("rgba")?(R=Y.parse(V[1]),n=R.get("rgb"),S=R.get("a")):(n=V[1],S=1),V=G.createElement("stop").attr({offset:V[0],"stop-color":n,"stop-opacity":S}).add(W),W.stops.push(V)})}L.setAttribute(m,H="url("+G.url+"#"+_+")"),L.gradient=D,a.toString=function(){return H}}})},d.prototype.css=function(a){var m=this.styles,L={},G=this.element,R=!m;if(a.color&&(a.fill=a.color),m&&h(a,function(P,E){m&&m[E]!==P&&(L[E]=P,R=!0)}),R){if(m&&(a=A(m,L)),null===a.width||"auto"===a.width)delete this.textWidth;else if("text"===G.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);G.namespaceURI===this.SVG_NS&&["textOutline","textOverflow","width"].forEach(function(P){return l&&delete l[P]}),x(G,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,G=m.ownerSVGElement,R=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&&G){var e=a.clipPath;[].forEach.call(G.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(G=0;G<a.stops.length;G++)a.stops[G].destroy();a.stops.length=0,a.stops=void 0}for(a.safeRemoveChild(m),L.styledMode||a.destroyShadows();R&&R.div&&0===R.div.childNodes.length;)m=R.parentGroup,a.safeRemoveChild(R.div),delete R.div,R=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(G,R,e){return R&&R.join?(e?G+" ":"")+R.join(" "):(R||"").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,G=this.element,R=this.renderer,e=this.styles,l=this.textStr,P=R.cache,E=R.cacheKeys,b=G.namespaceURI===this.SVG_NS;m=t(m,this.rotation,0);var S,n=R.styledMode?G&&d.prototype.getStyle.call(G,"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||R.forExport){try{var _=this.fakeTS&&function(H){var W=G.querySelector(".highcharts-text-outline");W&&x(W,{display:H})};r(_)&&_("none"),S=G.getBBox?A({},G.getBBox()):{width:G.offsetWidth,height:G.offsetHeight,x:0,y:0},r(_)&&_("")}catch{}(!S||0>S.width)&&(S={x:0,y:0,width:0,height:0})}else S=this.htmlGetBBox();if(R.isSVG&&(R=S.width,a=S.height,b&&(S.height=a={"11px,17":14,"13px,20":16}[""+(n||"")+",".concat(Math.round(a))]||a),m)){b=Number(G.getAttribute("y")||0)-S.y,L={right:1,center:.5}[L||0]||0,e=m*B,n=(m-90)*B;var D=R*Math.cos(e);m=R*Math.sin(e),_=Math.cos(n),e=Math.sin(n),D=(_=(n=(R=S.x+L*(R-D)+b*_)+D)-a*_)-D,m=(a=(L=(b=S.y+b-L*m+b*e)+m)-a*e)-m,S.x=Math.min(R,n,_,D),S.y=Math.min(b,L,a,m),S.width=Math.max(R,n,_,D)-S.x,S.height=Math.max(b,L,a,m)-S.y}if(u&&(""===l||0<S.height)){for(;250<E.length;)delete P[E.shift()];P[u]||E.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 G=this.renderer.url,R=this.text||this,e=R.textPath,l=m.attributes,P=m.enabled;return a=a||e&&e.path,e&&e.undo(),a&&P?(m=y(R,"afterModifyTree",function(E){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),R.attr(n),L.attr({transform:""}),L.box&&(L.box=L.box.destroy()),n=E.nodes.slice(0),E.nodes.length=0,E.nodes[0]={tagName:"textPath",attributes:A(l,{"text-anchor":l.textAnchor,href:""+G+"#".concat(b)}),children:n}}}),R.textPath={path:a,undo:m}):(R.attr({dx:0,dy:0}),delete R.textPath),this.added&&(R.textCache="",this.renderer.buildText(R)),this},d.prototype.shadow=function(a,m,L){var G=[],R=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,E=!1;if(!0===a?b=l:"object"==typeof a&&(b=A(l,a)),b&&(b&&e&&h(b,function(_,D){_!==e[D]&&(E=!0)}),E&&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=R.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):R.parentNode&&R.parentNode.insertBefore(S,R),G.push(S)}this.shadows=G}}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(/</g,"<").replace(/>/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 G=this.shadows;if(G)for(var R=G.length;R--;)L.call(G[R],"height"===a?Math.max(m-(G[R].cutHeight||0),0):"d"===a?this.d:m,a,G[R])},d.prototype.updateTransform=function(){var a=this.element,m=this.matrix,L=this.rotation;L=void 0===L?0:L;var G=this.scaleX,R=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(G)||w(R))&&e.push("scale("+t(G,1)+" "+t(R,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,G=this.parentGroup,R=(G||L).element||L.box,e=this.element;L=R===L.box;var E,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)&&G&&(G.handleZ=!0),E=(m=R.childNodes).length-1;0<=E&&!l;E--){P=(G=m[E]).getAttribute("data-z-index");var b=!w(P);G!==e&&(0>a&&b&&!L&&!E?(R.insertBefore(e,m[E]),l=!0):(c(P)<=a||b&&(!w(a)||0<=a))&&(R.insertBefore(e,m[E+1]||null),l=!0))}l||(R.insertBefore(e,m[L?3:0]||null),l=!0)}return l},d}(),X.prototype.strokeSetter=X.prototype.fillSetter,X.prototype.yGetter=X.prototype.xGetter,X.prototype.matrixSetter=X.prototype.rotationOriginXSetter=X.prototype.rotationOriginYSetter=X.prototype.rotationSetter=X.prototype.scaleXSetter=X.prototype.scaleYSetter=X.prototype.translateXSetter=X.prototype.translateYSetter=X.prototype.verticalAlignSetter=function(d,a){this[a]=d,this.doTransform=!0},X}),ct(U,"Core/Renderer/RendererRegistry.js",[U["Core/Globals.js"]],function(X){var Y,M,rt;return(M=Y||(Y={})).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,X.Renderer=ot)},Y}),ct(U,"Core/Renderer/SVG/SVGLabel.js",[U["Core/Renderer/SVG/SVGElement.js"],U["Core/Utilities.js"]],function(X,Y){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=Y.defined,it=Y.extend,ot=Y.isNumber,q=Y.merge,B=Y.pick,I=Y.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 X.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()),X.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}(X)}),ct(U,"Core/Renderer/SVG/Symbols.js",[U["Core/Utilities.js"]],function(X){function Y(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=X.defined,ot=X.isNumber,q=X.pick;return{arc:Y,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 Y(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(X,Y,M){var rt=Y.doc,it=Y.SVG_NS,ot=Y.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 X(w),this.modifyTree(w.nodes),w.addToDOM(v),this.modifyDOM(),this.ellipsis&&-1!==(v.textContent||"").indexOf("\u2026")&&C.attr("title",this.unescapeEntities(C.textStr||"",["<",">"])),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(X,Y,M,rt,it,ot,q,B,I){var R,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,G=I.uniqueKey;return M=function(){function e(l,P,E,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,E,b,n,S,u)}return e.prototype.init=function(l,P,E,b,n,S,u){var H,_=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),D=_.element;u||_.css(this.getStyle(b)),l.appendChild(D),k(l,"dir","ltr"),-1===l.innerHTML.indexOf("xmlns")&&k(D,"xmlns",this.SVG_NS),this.isSVG=!0,this.box=D,this.boxWrapper=_,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,E,!1),y&&l.getBoundingClientRect&&((P=function(){p(l,{left:0,top:0}),H=l.getBoundingClientRect(),p(l,{left:Math.ceil(H.left)-H.left+"px",top:Math.ceil(H.top)-H.top+"px"})})(),this.unSubPixelFix=j(A,"resize",P))},e.prototype.definition=function(l){return new X([l]).addToDOM(this.defs.element)},e.prototype.getReferenceURL=function(){if((y||v)&&f.getElementsByTagName("base").length){if(!o(R)){var l=G();l=new X([{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);R="hitme"===(P&&P.id),f.body.removeChild(l)}if(R)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=Y.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,E,b,n,S,u,_,D,H){void 0===n&&(n={});var W=this.label(l,P,E,D,void 0,void 0,H,void 0,"button"),V=this.styledMode;l=n.states||{};var K=0;delete(n=a(n)).states;var Q=a({color:"#333333",cursor:"pointer",fontWeight:"normal"},n.style);delete n.style;var J=X.filterUserAttributes(n);if(W.attr(a({padding:8,r:2},J)),!V){J=a({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1},J);var F=(S=a(J,{fill:"#e6e6e6"},X.filterUserAttributes(S||l.hover||{}))).style;delete S.style;var Z=(u=a(J,{fill:"#e6ebf5",style:{color:"#000000",fontWeight:"bold"}},X.filterUserAttributes(u||l.select||{}))).style;delete u.style;var nt=(_=a(J,{style:{color:"#cccccc"}},X.filterUserAttributes(_||l.disabled||{}))).style;delete _.style}return j(W.element,C?"mouseover":"mouseenter",function(){3!==K&&W.setState(1)}),j(W.element,C?"mouseout":"mouseleave",function(){3!==K&&W.setState(K)}),W.setState=function($){1!==$&&(W.state=K=$),W.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][$||0]),V||(W.attr([J,S,u,_][$||0]),s($=[Q,F,Z,nt][$||0])&&W.css($))},V||(W.attr(J).css(t({cursor:"default"},Q)),H&&W.text.css({pointerEvents:"none"})),W.on("touchstart",function($){return $.stopPropagation()}).on("click",function($){3!==K&&b.call(W,$)})},e.prototype.crispLine=function(l,P,E){void 0===E&&(E="round");var b=l[0],n=l[1];return o(b[1])&&b[1]===n[1]&&(b[1]=n[1]=Math[E](b[1])-P%2/2),o(b[2])&&b[2]===n[2]&&(b[2]=n[2]=Math[E](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,E){return l=s(l)?l:typeof l>"u"?{}:{x:l,y:P,r:E},(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,E,b,n,S){return s(l)?(P=(b=l).y,E=b.r,l=b.x):b={innerR:b,start:n,end:S},(l=this.symbol("arc",l,P,E,E,b)).r=E,l},e.prototype.rect=function(l,P,E,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(E,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(_,D,H){u.r=_,k(H,{rx:_,ry:_})},u.rGetter=function(){return u.r||0},u.attr(l)},e.prototype.setSize=function(l,P,E){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(E,!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,E,b,n,S){var u={preserveAspectRatio:"none"},_=function(H,W){H.setAttributeNS?H.setAttributeNS("http://www.w3.org/1999/xlink","href",W):H.setAttribute("hc-svg-href",W)};i(P)&&(u.x=P),i(E)&&(u.y=E),i(b)&&(u.width=b),i(n)&&(u.height=n);var D=this.createElement("image").attr(u);return P=function(H){_(D.element,l),S.call(D,H)},S?(_(D.element,"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),E=new A.Image,j(E,"load",P),E.src=l,E.complete&&P({})):_(D.element,l),D},e.prototype.symbol=function(l,P,E,b,n,S){var V,u=this,_=/^url\((.*?)\)$/,D=_.test(l),H=!D&&(this.symbols[l]?l:"circle"),W=H&&this.symbols[H];if(W){"number"==typeof P&&(V=W.call(this.symbols,Math.round(P||0),Math.round(E||0),b||0,n||0,S));var K=this.path(V);u.styledMode||K.attr("fill","none"),t(K,{symbolName:H||void 0,x:P,y:E,width:b,height:n}),S&&t(K,S)}else if(D){var Q=l.match(_)[1],J=K=this.image(Q);J.imgwidth=m(T[Q]&&T[Q].width,S&&S.width),J.imgheight=m(T[Q]&&T[Q].height,S&&S.height);var F=function(Z){return Z.attr({width:Z.width,height:Z.height})};["width","height"].forEach(function(Z){J[Z+"Setter"]=function(nt,$){this[$]=nt,nt=this.alignByTranslate;var z=this.element,N=this.width,tt=this.height,et=this.imgwidth,st=this.imgheight,at=this["img"+$];if(o(at)){var ht=1;S&&"within"===S.backgroundSize&&N&&tt?(ht=Math.min(N/et,tt/st),at=Math.round(at*ht),k(z,{width:Math.round(et*ht),height:Math.round(st*ht)})):z&&z.setAttribute($,at),nt||this.translate(((N||0)-at*ht)/2,((tt||0)-at*ht)/2)}}}),o(P)&&J.attr({x:P,y:E}),J.isImg=!0,o(J.imgwidth)&&o(J.imgheight)?F(J):(J.attr({width:0,height:0}),r("img",{onload:function(){var Z=O[u.chartIndex];0===this.width&&(p(this,{position:"absolute",top:"-999em"}),f.body.appendChild(this)),T[Q]={width:this.width,height:this.height},J.imgwidth=this.width,J.imgheight=this.height,J.element&&F(J),this.parentNode&&this.parentNode.removeChild(this),u.imgCount--,!u.imgCount&&Z&&!Z.hasLoaded&&Z.onload()},src:Q}),this.imgCount++)}return K},e.prototype.clipRect=function(l,P,E,b){var n=G()+"-",S=this.createElement("clipPath").attr({id:n}).add(this.defs);return(l=this.rect(l,P,E,b,0).add(S)).id=n,l.clipPath=S,l.count=0,l},e.prototype.text=function(l,P,E,b){var n={};return!b||!this.allowHTML&&this.forExport?(n.x=Math.round(P||0),E&&(n.y=Math.round(E)),o(l)&&(n.text=l),l=this.createElement("text").attr(n),(!b||this.forExport&&!this.allowHTML)&&(l.xSetter=function(S,u,_){for(var V,D=_.getElementsByTagName("tspan"),H=_.getAttribute(u),W=0;W<D.length;W++)(V=D[W]).getAttribute(u)===H&&V.setAttribute(u,S);_.setAttribute(u,S)}),l):this.html(l,P,E)},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,E){var b=l;return P&&E&&(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=[],E=[],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(E[0])&&i(l[n])&&E.length===b[E[0].toUpperCase()]&&l.splice(n,0,E[0].replace("M","L").replace("m","l")),"string"==typeof l[n]&&(E.length&&P.push(E.slice(0)),E.length=0),E.push(l[n]);return P.push(E.slice(0)),P},e.prototype.label=function(l,P,E,b,n,S,u,_,D){return new ot(this,l,P,E,b,n,S,u,_,D)},e.prototype.alignElements=function(){this.alignedObjects.forEach(function(l){return l.align()})},e}(),t(M.prototype,{Element:it,SVG_NS:w,escapes:{"&":"&","<":"<",">":">","'":"'",'"':"""},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(X,Y,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=X.isFirefox,ot=X.isMS,q=X.isWebKit,B=X.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}(Y)}),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(X,Y,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;Y.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,X.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 X=(()=>{return(Y=X||(X={})).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"},Y.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},Y.defaultLeftAxisOptions={labels:{x:-15},title:{rotation:270}},Y.defaultRightAxisOptions={labels:{x:15},title:{rotation:90}},Y.defaultBottomAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}},Y.defaultTopAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}},X;var Y})();return X}),ct(U,"Core/Foundation.js",[U["Core/Utilities.js"]],function(X){var ot,Y=X.addEvent,M=X.isFunction,rt=X.objectEach,it=X.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,Y(B,g,O)))})},ot}),ct(U,"Core/Axis/Tick.js",[U["Core/FormatUtilities.js"],U["Core/Globals.js"],U["Core/Utilities.js"]],function(X,Y,M){var rt=Y.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 G=function(e){return o.formatter?o.formatter.call(e,e):o.format?(e.text=w.defaultLabelFormatter.call(e,e),X.format(o.format,e,A)):w.defaultLabelFormatter.call(e,e)};T=G.call(L,L);var R=a&&a.list;x.shortenLabel=R?function(){for(d=0;d<R.length;d++)if(I(L,{dateTimeLabelFormat:R[d]}),s.attr({text:G.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(X,Y,M,rt,it,ot,q,B){var I=X.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,G=function(R,e){return c(e,void 0,void 0,s(R.options.allowDecimals,.5>e||void 0!==R.tickAmount),!!R.tickAmount)};return function(){function R(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 R.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 E=this.options,b=E.labels,n=E.type;this.userOptions=l,this.minPixelPadding=0,this.reversed=s(E.reversed,this.reversed),this.visible=E.visible,this.zoomEnabled=E.zoomEnabled,this.hasNames="category"===n||!0===E.categories,this.categories=E.categories||(this.hasNames?[]:void 0),this.names||(this.names=[],this.names.keys={}),this.plotLinesAndBandsGroups={},this.positiveValuesOnly=!!this.logarithmic,this.isLinked=w(E.linkedTo),this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},this.len=0,this.minRange=this.userMinRange=E.minRange||E.maxZoom,this.range=E.range,this.offset=E.offset||0,this.min=this.max=null,l=s(E.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,E),r(this,"afterInit")},R.prototype.setOptions=function(e){this.options=t(Y.defaultXAxisOptions,"yAxis"===this.coll&&Y.defaultYAxisOptions,[Y.defaultTopAxisOptions,Y.defaultRightAxisOptions,Y.defaultBottomAxisOptions,Y.defaultLeftAxisOptions][this.side],t(O[this.coll],e)),r(this,"afterSetOptions",{userOptions:e})},R.prototype.defaultLabelFormatter=function(e){var l=this.axis;e=this.chart.numberFormatter;var P=o(this.value)?this.value:NaN,E=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,_=S&&S.length;if(l.categories)var D="".concat(this.value);else if(b)D=E.dateFormat(b,P);else if(_&&1e3<=u)for(;_--&&typeof D>"u";)u>=(l=Math.pow(n,_+1))&&10*P%l==0&&null!==S[_]&&0!==P&&(D=e(P/l,-1)+S[_]);return typeof D>"u"&&(D=1e4<=Math.abs(P)?e(P,-1):e(P,-1,void 0,"")),D},R.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(E){if(E.visible||!l.options.chart.ignoreHiddenSeries){var b=E.options,n=b.threshold;if(e.hasVisibleSeries=!0,e.positiveValuesOnly&&0>=n&&(n=null),e.isXAxis){if((b=E.xData).length){b=e.logarithmic?b.filter(e.validatePositiveValue):b;var S=(P=E.getXExtremes(b)).min,u=P.max;o(S)||S instanceof Date||(b=b.filter(o),S=(P=E.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 E=E.applyExtremes(),o(E.dataMin)&&(S=E.dataMin,e.dataMin=Math.min(s(e.dataMin,S),S)),o(E.dataMax)&&(u=E.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")},R.prototype.translate=function(e,l,P,E,b,n){var S=this.linkedParent||this,u=E&&S.old?S.old.min:S.min;if(!o(u))return NaN;var _=S.minPixelPadding;b=(S.isOrdinal||S.brokenAxis&&S.brokenAxis.hasBreaks||S.logarithmic&&b)&&S.lin2val;var D=1,H=0;return(E=E&&S.old?S.old.transA:S.transA)||(E=S.transA),P&&(D*=-1,H=S.len),S.reversed&&(H-=(D*=-1)*(S.sector||S.len)),l?(n=(e*D+H-_)/E+u,b&&(n=S.lin2val(n))):(b&&(e=S.val2lin(e)),e=D*(e-u)*E,n=(S.isRadial?e:x(e))+H+D*_+(o(n)?E*n:0)),n},R.prototype.toPixels=function(e,l){return this.translate(e,!1,!this.horiz,void 0,!0)+(l?0:this.pos)},R.prototype.toValue=function(e,l){return this.translate(e-(l?0:this.pos),!0,!this.horiz,void 0,!0)},R.prototype.getPlotLinePath=function(e){function l($,z,N){return"pass"!==K&&($<z||$>N)&&(K?$=v($,z,N):nt=!0),$}var Q,J,F,Z,nt,P=this,E=P.chart,b=P.left,n=P.top,S=e.old,u=e.value,_=e.lineWidth,D=S&&E.oldChartHeight||E.chartHeight,H=S&&E.oldChartWidth||E.chartWidth,W=P.transB,V=e.translatedValue,K=e.force;return r(this,"getPlotLinePath",e={value:u,lineWidth:_,old:S,force:K,acrossPanes:e.acrossPanes,translatedValue:V},function($){V=s(V,P.translate(u,void 0,void 0,S)),V=v(V,-1e5,1e5),Q=F=Math.round(V+W),J=Z=Math.round(D-V-W),o(V)?P.horiz?(J=n,Z=D-P.bottom,Q=F=l(Q,b,b+P.width)):(Q=b,F=H-P.right,J=Z=l(J,n,n+P.height)):(nt=!0,K=!1),$.path=nt&&!K?null:E.renderer.crispLine([["M",Q,J],["L",F,Z]],_||1)}),e.path},R.prototype.getLinearTickPositions=function(e,l,P){var E=x(Math.floor(l/e)*e);P=x(Math.ceil(P/e)*e);var n,b=[];if(x(E+e)===E&&(n=20),this.single)return[l];for(l=E;l<=P&&(b.push(l),(l=x(l+e,n))!==S);)var S=l;return b},R.prototype.getMinorTickInterval=function(){var e=this.options;return!0===e.minorTicks?s(e.minorTickInterval,"auto"):!1===e.minorTicks?null:e.minorTickInterval},R.prototype.getMinorTickPositions=function(){var e=this.options,l=this.tickPositions,P=this.minorTickInterval,E=this.pointRangePadding||0,b=this.min-E,n=(E=this.max+E)-b,S=[];if(n&&n/P<this.len/3){var u=this.logarithmic;if(u)this.paddedTicks.forEach(function(_,D,H){D&&S.push.apply(S,u.getLogTickPositions(P,H[D-1],H[D],!0))});else if(this.dateTime&&"auto"===this.getMinorTickInterval())S=S.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(P),b,E,e.startOfWeek));else for(e=b+(l[0]-b)%P;e<=E&&e!==S[0];e+=P)S.push(e)}return 0!==S.length&&this.trimTicks(S),S},R.prototype.adjustForMinRange=function(){var n,S,u,_,e=this.options,l=this.logarithmic,P=this.min,E=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(V){if(u=V.xData,_=V.xIncrement?1:u.length-1,1<u.length)for(n=_;0<n;n--)S=u[n]-u[n-1],(!b||S<b)&&(b=S)}),this.minRange=Math.min(5*b,this.dataMax-this.dataMin))),E-P<this.minRange){var D=this.dataMax-this.dataMin>=this.minRange,H=this.minRange,W=(H-E+P)/2;W=[P-W,s(e.min,P-W)],D&&(W[2]=this.logarithmic?this.logarithmic.log2lin(this.dataMin):this.dataMin),E=[(P=y(W))+H,s(e.max,P+H)],D&&(E[2]=l?l.log2lin(this.dataMax):this.dataMax),(E=C(E))-P<H&&(W[0]=E-H,W[1]=s(e.min,E-H),P=y(W))}this.min=P,this.max=E},R.prototype.getClosest=function(){var e;return this.categories?e=1:this.series.forEach(function(l){var P=l.closestPointRange,E=l.visible||!l.chart.options.chart.ignoreHiddenSeries;!l.noSharedTooltip&&w(P)&&E&&(e=w(e)?Math.min(e,P):P)}),e},R.prototype.nameToX=function(e){var l=p(this.options.categories),P=l?this.categories:this.names,E=e.options.x;if(e.series.requireSorting=!1,w(E)||(E=this.options.uniqueNames&&P?l?P.indexOf(e.name):s(P.keys[e.name],-1):e.series.autoIncrement()),-1===E){if(!l&&P)var b=P.length}else b=E;return typeof b<"u"?(this.names[b]=e.name,this.names.keys[e.name]=b):e.x&&(b=e.x),b},R.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(E,b){if(E&&E.options&&typeof E.name<"u"){var n=e.nameToX(E);typeof n<"u"&&n!==E.x&&(E.x=n,P.xData[b]=n)}})}))},R.prototype.setAxisTranslation=function(){var _,e=this,l=e.max-e.min,P=e.linkedParent,E=!!e.categories,b=e.isXAxis,n=e.axisPointRange||0,S=0,u=0;if(b||E||n){var D=e.getClosest();P?(S=P.minPointOffset,u=P.pointRangePadding):e.series.forEach(function(H){var W=E?1:b?s(H.options.pointRange,D,0):e.axisPointRange||0,V=H.options.pointPlacement;n=Math.max(n,W),(!e.single||E)&&(H=H.is("xrange")?!b:b,S=Math.max(S,H&&h(V)?0:W/2),u=Math.max(u,H&&"on"===V?0:W))}),e.minPointOffset=S*=P=e.ordinal&&e.ordinal.slope&&D?e.ordinal.slope/D:1,e.pointRangePadding=u*=P,e.pointRange=Math.min(n,e.single&&E?1:l),b&&(e.closestPointRange=D)}e.translationSlope=e.transA=_=e.staticScale||e.len/(l+u||1),e.transB=e.horiz?e.left:e.bottom,e.minPixelPadding=_*S,r(this,"afterSetAxisTranslation")},R.prototype.minFromRange=function(){return this.max-this.range},R.prototype.setTickInterval=function(e){var l=this.chart,P=this.logarithmic,E=this.options,b=this.isXAxis,n=this.isLinked,S=E.tickPixelInterval,u=this.categories,_=this.softThreshold,D=E.maxPadding,H=E.minPadding,W=o(E.tickInterval)&&0<=E.tickInterval?E.tickInterval:void 0,V=o(this.threshold)?this.threshold:null;this.dateTime||u||n||this.getTickAmount();var K=s(this.userMin,E.min),Q=s(this.userMax,E.max);if(n){this.linkedParent=l[this.coll][E.linkedTo];var J=this.linkedParent.getExtremes();this.min=s(J.min,J.dataMin),this.max=s(J.max,J.dataMax),E.type!==this.linkedParent.options.type&&j(11,1,l)}else{if(_&&w(V))if(this.dataMin>=V)J=V,H=0;else if(this.dataMax<=V){var F=V;D=0}this.min=s(K,J,this.dataMin),this.max=s(Q,F,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=K=Math.max(this.dataMin,this.minFromRange()),this.userMax=Q=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(K)&&H&&(this.min-=l*H),!w(Q)&&D&&(this.max+=l*D)),o(this.userMin)||(o(E.softMin)&&E.softMin<this.min&&(this.min=K=E.softMin),o(E.floor)&&(this.min=Math.max(this.min,E.floor))),o(this.userMax)||(o(E.softMax)&&E.softMax>this.max&&(this.max=Q=E.softMax),o(E.ceiling)&&(this.max=Math.min(this.max,E.ceiling))),_&&w(this.dataMin)&&(V=V||0,!w(K)&&this.min<V&&this.dataMin>=V?this.min=this.options.minRange?Math.min(V,this.max-this.minRange):V:!w(Q)&&this.max>V&&this.dataMax<=V&&(this.max=this.options.minRange?Math.max(V,this.min+this.minRange):V)),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 Z=this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max);this.series.forEach(function(nt){nt.forceCrop=nt.forceCropping&&nt.forceCropping(),nt.processData(Z)}),r(this,"postProcessData",{hasExtremesChanged:Z})}this.setAxisTranslation(),r(this,"initialAxisTranslation"),this.pointRange&&!W&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval)),e=s(E.minTickInterval,this.dateTime&&!this.series.some(function(nt){return nt.noSharedTooltip})?this.closestPointRange:0),!W&&this.tickInterval<e&&(this.tickInterval=e),this.dateTime||this.logarithmic||W||(this.tickInterval=G(this,this.tickInterval)),this.tickAmount||(this.tickInterval=this.unsquish()),this.setTickPositions()},R.prototype.setTickPositions=function(){var u,e=this.options,l=e.tickPositions,P=e.tickPositioner,E=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"===E&&this.tickInterval?this.tickInterval/5:E,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(E=e=this.tickInterval;E<=2*e&&(n=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&n.length>this.tickAmount);)this.tickInterval=G(this,E*=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(_){return _.is("heatmap")&&"between"===_.options.pointPlacement})&&(this.min-=.5,this.max+=.5),l||u||this.adjustTickAmount()),r(this,"afterSetTickPositions")},R.prototype.trimTicks=function(e,l,P){var E=e[0],b=e[e.length-1],n=!this.isOrdinal&&this.minPointOffset||0;if(r(this,"trimTicks"),!this.isLinked){if(l&&E!==-1/0)this.min=E;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(E)&&!this.options.tickPositions&&e.push((b+E)/2)}},R.prototype.alignToOthers=function(){var n,e=this,l=[this],P=e.options,E="yAxis"===this.coll&&this.chart.options.chart.alignThresholds,b=[];if(e.thresholdAlignment=void 0,(!1!==this.chart.options.chart.alignTicks&&P.alignTicks||E)&&!1!==P.startOnTick&&!1!==P.endOnTick&&!e.logarithmic){var S=function(D){var H=D.options;return[D.horiz?H.left:H.top,H.width,H.height,H.pane].join()},u=S(this);this.chart[this.coll].forEach(function(D){var H=D.series;H.length&&H.some(function(W){return W.visible})&&D!==e&&S(D)===u&&(n=!0,l.push(D))})}if(n&&E){l.forEach(function(D){D=D.getThresholdAlignment(e),o(D)&&b.push(D)});var _=1<b.length?b.reduce(function(D,H){return D+H},0)/b.length:void 0;l.forEach(function(D){D.thresholdAlignment=_})}return n},R.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},R.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},R.prototype.adjustTickAmount=function(){var e=this,l=e.finalTickAmt,P=e.max,E=e.min,b=e.options,n=e.tickPositions,S=e.tickAmount,u=e.thresholdAlignment,_=n&&n.length,D=s(e.threshold,e.softThreshold?0:null),H=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(E)&&o(P)){if(u=function(){e.transA*=(_-1)/(S-1),e.min=b.startOnTick?n[0]:Math.min(E,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]!==D||n.length!==S||n[0]>E||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]-H)):n.push(x(n[n.length-1]+H));if(H>8*e.tickInterval)break;H*=2}u()}else if(_<S){for(;n.length<S;)n.length%2||E===D?n.push(x(n[n.length-1]+H)):n.unshift(x(n[0]-H));u()}if(w(l)){for(H=D=n.length;H--;)(3===l&&H%2==1||2>=l&&0<H&&H<D-1)&&n.splice(H,1);e.finalTickAmt=void 0}}},R.prototype.setScale=function(){var e=!1,l=!1;this.series.forEach(function(E){e=e||E.isDirtyData||E.isDirty,l=l||E.xAxis&&E.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")},R.prototype.setExtremes=function(e,l,P,E,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(E)})},R.prototype.zoom=function(e,l){var P=this,E=this.dataMin,b=this.dataMax,n=this.options,S=Math.min(E,s(n.min,E)),u=Math.max(b,s(n.max,b));return r(this,"zoom",e={newMin:e,newMax:l},function(_){var D=_.newMin,H=_.newMax;(D!==P.min||H!==P.max)&&(P.allowZoomOutside||(w(E)&&(D<S&&(D=S),D>u&&(D=u)),w(b)&&(H<S&&(H=S),H>u&&(H=u))),P.displayBtn=typeof D<"u"||typeof H<"u",P.setExtremes(D,H,!1,void 0,{trigger:"zoom"})),_.zoomed=!0}),e.zoomed},R.prototype.setAxisSize=function(){var e=this.chart,l=this.options,P=l.offsets||[0,0,0,0],E=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(E?b:n,0),this.pos=E?l:S},R.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}},R.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)},R.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},R.prototype.tickSize=function(e){var l=this.options,P=s(l["tick"===e?"tickWidth":"minorTickWidth"],"tick"===e&&this.isXAxis&&!this.categories?1:0),E=l["tick"===e?"tickLength":"minorTickLength"];if(P&&E){"inside"===l[e+"Position"]&&(E=-E);var b=[E,P]}return r(this,"afterTickSize",e={tickSize:b}),e.tickSize},R.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)},R.prototype.unsquish=function(){var e=this.options.labels,l=this.horiz,P=this.tickInterval,E=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(F){var Z=F/(E||1);return(Z=1<Z?Math.ceil(Z):1)*P>S&&F!==1/0&&E!==1/0&&S&&(Z=Math.ceil(S/P)),x(Z*P)},_=P,D=Number.MAX_VALUE;if(l){if(!e.staggerLines)if(o(b))var H=[b];else E<e.autoRotationLimit&&(H=e.autoRotation);if(H)for(var W=l=void 0,V=0,K=H;V<K.length;V++){var Q=K[V];if((Q===b||Q&&-90<=Q&&90>=Q)&&(W=(l=u(Math.abs(n.h/Math.sin(f*Q))))+Math.abs(Q/360))<D){D=W;var J=Q;_=l}}}else _=u(n.h);return this.autoRotation=H,this.labelRotation=s(J,o(b)?b:0),e.step?P:_},R.prototype.getSlotWidth=function(e){var l=this.chart,P=this.horiz,E=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>E.step)return E.rotation?0:(this.staggerLines||1)*this.len/b;if(!P){if(void 0!==(e=E.style.width))return parseInt(String(e),10);if(n)return n-l.spacing[3]}return.33*l.chartWidth},R.prototype.renderUnsquish=function(){var e=this.chart,l=e.renderer,P=this.tickPositions,E=this.ticks,b=this.options.labels,n=b.style,S=this.horiz,u=this.getSlotWidth(),_=Math.max(1,Math.round(u-2*b.padding)),D={},H=this.labelMetrics(),W=n.textOverflow,V=0;if(h(b.rotation)||(D.rotation=b.rotation||0),P.forEach(function(F){(F=E[F]).movedLabel&&F.replaceMovedLabel(),F&&F.label&&F.label.textPxLength>V&&(V=F.label.textPxLength)}),this.maxLabelLength=V,this.autoRotation)V>_&&V>H.h?D.rotation=this.labelRotation:this.labelRotation=0;else if(u){var K=_;if(!W){var Q="clip";for(_=P.length;!S&&_--;){var J=P[_];(J=E[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-(H.h-H.f)&&(J.specificTextOverflow="ellipsis"))}}}D.rotation&&(K=V>.5*e.chartHeight?.33*e.chartHeight:V,W||(Q="ellipsis")),(this.labelAlign=b.align||this.autoLabelAlign(this.labelRotation))&&(D.align=this.labelAlign),P.forEach(function(F){var Z=(F=E[F])&&F.label,nt=n.width,$={};Z&&(Z.attr(D),F.shortenLabel?F.shortenLabel():K&&!nt&&"nowrap"!==n.whiteSpace&&(K<Z.textPxLength||"SPAN"===Z.element.tagName)?($.width=K+"px",W||($.textOverflow=Z.specificTextOverflow||Q),Z.css($)):Z.styles&&Z.styles.width&&!$.width&&!nt&&Z.css({width:null}),delete Z.specificTextOverflow,F.rotation=D.rotation)},this),this.tickRotCorr=l.rotCorr(H.b,this.labelRotation||0,0!==this.side)},R.prototype.hasData=function(){return this.series.some(function(e){return e.hasData()})||this.options.showEmpty&&w(this.min)&&w(this.max)},R.prototype.addTitle=function(e){var S,E=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:E?"right":"left",middle:"center",high:E?"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)},R.prototype.generateTick=function(e){var l=this.ticks;l[e]?l[e].addLabel():l[e]=new q(this,e)},R.prototype.getOffset=function(){var e=this,l=this,P=l.chart,E=l.horiz,b=l.options,n=l.side,S=l.ticks,u=l.tickPositions,_=l.coll,D=l.axisParent,H=P.renderer,W=P.inverted&&!l.isZAxis?[1,0,3,2][n]:n,V=l.hasData(),K=b.title,Q=b.labels,J=P.axisOffset;P=P.clipOffset;var nt,F=[-1,1,1,-1][n],Z=b.className,$=0,z=0,N=0;if(l.showAxis=nt=V||b.showEmpty,l.staggerLines=l.horiz&&Q.staggerLines||void 0,!l.axisGroup){var tt=function(st,at,ht){return H.g(st).attr({zIndex:ht}).addClass("highcharts-".concat(_.toLowerCase()).concat(at," ")+(e.isRadial?"highcharts-radial-axis".concat(at," "):"")+(Z||"")).add(D)};l.gridGroup=tt("grid","-grid",b.gridZIndex),l.axisGroup=tt("axis","",b.zIndex),l.labelGroup=tt("axis-labels","-labels",Q.zIndex)}if(V||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(Q.reserveSpace,"center"===l.labelAlign||null,l.reserveSpaceDefault)&&u.forEach(function(st){N=Math.max(S[st].getLabelSize(),N)}),l.staggerLines&&(N*=l.staggerLines),l.labelOffset=N*(l.opposite?-1:1)):i(S,function(st,at){st.destroy(),delete S[at]}),K&&K.text&&!1!==K.enabled&&(l.addTitle(nt),nt&&!1!==K.reserveSpace)){l.titleOffset=$=l.axisTitle.getBBox()[E?"height":"width"];var et=K.offset;z=w(et)?0:s(K.margin,E?5:10)}l.renderLine(),l.offset=F*s(b.offset,J[n]?J[n]+(b.margin||0):0),l.tickRotCorr=l.tickRotCorr||{x:0,y:0},K=0===n?-l.labelMetrics().h:2===n?l.tickRotCorr.y:0,V=Math.abs(N)+z,N&&(V=V-K+F*(E?s(Q.y,l.tickRotCorr.y+8*F):Q.x)),l.axisTitleMargin=s(et,V),l.getMaxLabelDimensions&&(l.maxLabelDimensions=l.getMaxLabelDimensions(S,u)),"colorAxis"!==_&&(E=this.tickSize("tick"),J[n]=Math.max(J[n],(l.axisTitleMargin||0)+$+F*l.offset,V,u&&u.length&&E?E[0]+F*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")},R.prototype.getLinePath=function(e){var l=this.chart,P=this.opposite,E=this.offset,b=this.horiz,n=this.left+(P?this.width:0)+E;return E=l.chartHeight-this.bottom-(P?this.height:0)+E,P&&(e*=-1),l.renderer.crispLine([["M",b?this.left:n,b?E:this.top],["L",b?l.chartWidth-this.right:n,b?E:l.chartHeight-this.bottom]],e)},R.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}))},R.prototype.getTitlePosition=function(){var e=this.horiz,l=this.left,P=this.top,E=this.len,b=this.options.title,n=e?l:P,S=this.opposite,u=this.offset,_=b.x,D=b.y,H=this.axisTitle,W=this.chart.renderer.fontMetrics(b.style.fontSize,H);return H=H?Math.max(H.getBBox(!1,0).height-W.h-1,0):0,E={low:n+(e?0:E),middle:n+E/2,high:n+(e?E:0)}[b.align],l=(e?P+this.height:l)+(e?1:-1)*(S?-1:1)*(this.axisTitleMargin||0)+[-H,H,W.f,-H][this.side],r(this,"afterGetTitlePosition",{titlePosition:e={x:e?E+_:l+(S?this.width:0)+u+_,y:e?l+D-(S?this.height:0)+u:E+D}}),e},R.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)},R.prototype.renderTick=function(e,l,P){var E=this.ticks;(!this.isLinked||e>=this.min&&e<=this.max||this.grid&&this.grid.isColumn)&&(E[e]||(E[e]=new q(this,e)),P&&E[e].isNew&&E[e].render(l,!0,-1),E[e].render(l))},R.prototype.render=function(){var F,Z,e=this,l=e.chart,P=e.logarithmic,E=e.options,b=e.isLinked,n=e.tickPositions,S=e.axisTitle,u=e.ticks,_=e.minorTicks,D=e.alternateBands,H=E.stackLabels,W=E.alternateGridColor,V=e.tickmarkOffset,K=e.axisLine,Q=e.showAxis,J=I(l.renderer.globalAnimation);if(e.labelEdge.length=0,e.overlap=!1,[u,_,D].forEach(function($){i($,function(z){z.isActive=!1})}),e.hasData()||b){var nt=e.chart.hasRendered&&e.old&&o(e.old.min);e.minorTickInterval&&!e.categories&&e.getMinorTickPositions().forEach(function($){e.renderMinorTick($,nt)}),n.length&&(n.forEach(function($,z){e.renderTick($,z,nt)}),V&&(0===e.min||e.single)&&(u[-1]||(u[-1]=new q(e,-1,null,!0)),u[-1].render(-1))),W&&n.forEach(function($,z){Z=typeof n[z+1]<"u"?n[z+1]+V:e.max-V,z%2==0&&$<e.max&&Z<=e.max+(l.polar?-V:V)&&(D[$]||(D[$]=new ot.PlotLineOrBand(e)),F=$+V,D[$].options={from:P?P.lin2log(F):F,to:P?P.lin2log(Z):Z,color:W,className:"highcharts-alternate-grid"},D[$].render(),D[$].isActive=!0)}),e._addedPlotLB||(e._addedPlotLB=!0,(E.plotLines||[]).concat(E.plotBands||[]).forEach(function($){e.addPlotBandOrLine($)}))}[u,_,D].forEach(function($){var z=[],N=J.duration;i($,function(tt,et){tt.isActive||(tt.render(et,!1,0),tt.isActive=!1,z.push(et))}),L(function(){for(var tt=z.length;tt--;)$[z[tt]]&&!$[z[tt]].isActive&&($[z[tt]].destroy(),delete $[z[tt]])},$!==D&&l.hasRendered&&N?N:0)}),K&&(K[K.isPlaced?"animate":"attr"]({d:this.getLinePath(K.strokeWidth())}),K.isPlaced=!0,K[Q?"show":"hide"](Q)),S&&Q&&(E=e.getTitlePosition(),S[S.isNew?"attr":"animate"](E),S.isNew=!1),H&&H.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")},R.prototype.redraw=function(){this.visible&&(this.render(),this.plotLinesAndBands.forEach(function(e){e.render()})),this.series.forEach(function(e){e.isDirty=!0})},R.prototype.getKeepProps=function(){return this.keepProps||R.keepProps},R.prototype.destroy=function(e){var l=this,P=l.plotLinesAndBands,E=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=E},R.prototype.drawCrosshair=function(e,l){var n,P=this.crosshair,E=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)||!E)){if(E?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();E=this.categories&&!this.isRadial,S||(this.cross=S=b.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(E?"category ":"thin ")+(P.className||"")).attr({zIndex:s(P.zIndex,2)}).add(),b.styledMode||(S.attr({stroke:P.color||(E?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}),E&&!P.width&&S.attr({"stroke-width":this.transA}),this.cross.e=e}else this.hideCrosshair();r(this,"afterDrawCrosshair",{e,point:l})},R.prototype.hideCrosshair=function(){this.cross&&this.cross.hide(),r(this,"afterHideCrosshair")},R.prototype.hasVerticalPanning=function(){var e=this.chart.options.chart.panning;return!!(e&&e.enabled&&/y/.test(e.type))},R.prototype.validatePositiveValue=function(e){return o(e)&&0<e},R.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()},R.prototype.remove=function(e){for(var l=this.chart,P=this.coll,E=this.series,b=E.length;b--;)E[b]&&E[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()},R.prototype.setTitle=function(e,l){this.update({title:e},l)},R.prototype.setCategories=function(e,l){this.update({categories:e},l)},R.defaultOptions=Y.defaultXAxisOptions,R.keepProps="extKey hcEvents names series userMax userMin".split(" "),R}()}),ct(U,"Core/Axis/DateTimeAxis.js",[U["Core/Utilities.js"]],function(X){var ot,Y=X.addEvent,M=X.getMagnitude,rt=X.normalizeTickInterval,it=X.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,Y(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(X){var it,Y=X.addEvent,M=X.normalizeTickInterval,rt=X.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"),Y(g,"init",q),Y(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(X){var it,Y=X.erase,M=X.extend,rt=X.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&&Y(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(X,Y){var M=Y.arrayMax,rt=Y.arrayMin,it=Y.defined,ot=Y.destroyObjectProperties,q=Y.erase,B=Y.fireEvent,I=Y.merge,O=Y.objectEach,g=Y.pick;return function(){function f(y,C){this.axis=y,C&&(this.options=C,this.id=C.id)}return f.compose=function(y){return X.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(G,R){i.on(R,function(e){j[R].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(X,Y,M,rt,it){var ot=X.format,q=Y.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=Y.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)}),Y.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(G){m.call(a,r.distance),c.style.left=G+"px"},a.ySetter=function(G){L.call(a,r.distance),c.style.top=G+"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])},G=L("y"),R=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,_,D,H,W,V){var K=s?"y"===S?t*m.scaleY:t*m.scaleX:t,Q=(_-D)/2,J=D<H-t,F=H+t+D<u,Z=H-K-_+Q;if(H=H+K-Q,l&&F)c[S]=H;else if(!l&&J)c[S]=Z;else if(J)c[S]=Math.min(V-D,0>Z-i?Z:Z-i);else{if(!F)return!1;c[S]=Math.max(W,H+i+_>u?H:H+i)}},E=function(S,u,_,D,H){var W;return H<t||H>u-t?W=!1:c[S]=H<_/2?1:H>u-D/2?u-D-2:H-_/2,W},b=function(S){var u=G;G=R,R=u,e=S},n=function(){!1!==P.apply(0,G)?!1!==E.apply(0,R)||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 G=(r=this.getAnchor(r,p))[0],R=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=G,l=R;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:G,plotY:R,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(F,Z,nt,$,z){return void 0===z&&(z=!0),nt?(Z=D?0:K,F=I(F-$/2,S.left,S.right-$-(h.outside?H:0))):(Z-=W,F=I(F=z?F-$-E:F+E,z?F:S.left,S.right)),{x:F,y:Z}}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,G=c.scrollablePixelsY;G=void 0===G?0:G;var e=c.scrollingContainer,l=(e=void 0===e?{scrollLeft:0,scrollTop:0}:e).scrollLeft;e=e.scrollTop;var P=c.styledMode,E=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(),_=this.renderer||t.renderer,D=!(!t.xAxis[0]||!t.xAxis[0].opposite),H=(t=L.getChartPosition()).left;t=t.top;var W=m+e,V=0,K=d-G;x(r)&&(r=[!1,r]),r=r.slice(0,p.length+1).reduce(function(F,Z,nt){if(!1!==Z&&""!==Z){var $=(nt=p[nt-1]||{isHeader:!0,plotX:p[0].plotX,plotY:d,series:{}}).isHeader,z=$?h:nt.series;Z=Z.toString();var N=z.tt,tt=nt.isHeader,et=nt.series;N||(N={padding:b.padding,r:b.borderRadius},P||(N.fill=b.backgroundColor,N["stroke-width"]=b.borderWidth),N=_.label("",0,0,b[tt?"headerShape":"shape"],void 0,void 0,b.useHTML).addClass(h.getClassName(nt,!0,tt)).attr(N).add(u)),N.isActive=!0,N.attr({text:Z}),P||N.css(b.style).shadow(b.shadow).attr({stroke:b.borderColor||nt.color||et.color||"#333333"}),Z=(tt=(z=z.tt=N).getBBox()).width+z.strokeWidth(),$&&(K+=V=tt.height,D&&(W-=V)),et=void 0===(et=nt.plotX)?0:et,N=void 0===(N=nt.plotY)?0:N;var st=nt.series;if(nt.isHeader){et=a+et;var at=m+d/2}else{var ht=st.xAxis,dt=st.yAxis;et=ht.pos+I(et,-E,ht.len+E),st.shouldShowTooltip(0,dt.pos-m+N,{ignoreX:!0})&&(at=dt.pos+N)}et=I(et,S.left-E,S.right+E),"number"==typeof at?(tt=tt.height+1,N=n?n.call(h,Z,tt,nt):o(et,at,$,Z),F.push({align:n?0:void 0,anchorX:et,anchorY:at,boxWidth:Z,point:nt,rank:T(N.rank,$?1:0),size:tt,target:N.y,tt:z,x:N.x})):z.isActive=!1}return F},[]),!n&&r.some(function(F){var Z=(h.outside?H:0)+F.anchorX;return Z<S.left&&Z+F.boxWidth<S.right||Z<H-S.left+F.boxWidth&&S.right-Z>Z})&&(r=r.map(function(F){var Z=o(F.anchorX,F.anchorY,F.point.isHeader,F.boxWidth,!1);return f(F,{target:Z.y,x:Z.x})})),h.cleanSplit(),B(r,K);var Q=H,J=H;r.forEach(function(F){var Z=F.x,nt=F.boxWidth;(F=F.isHeader)||(h.outside&&H+Z<Q&&(Q=H+Z),!F&&h.outside&&Q+nt>J&&(J=H+Z))}),r.forEach(function(F){var Z=F.x,nt=F.anchorX,$=F.pos,z=F.point.isHeader;if($={visibility:typeof $>"u"?"hidden":"inherit",x:Z,y:($||0)+W,anchorX:nt,anchorY:F.anchorY},h.outside&&Z<nt){var N=H-Q;0<N&&(z||($.x=Z+N,$.anchorX=nt+N),z&&($.x=(J-Q)/2,$.anchorX=nt+N))}F.tt.attr($)}),r=h.container,G=h.renderer,h.outside&&r&&G&&(c=u.getBBox(),G.setSize(c.width+c.x,c.height+c.y,!1),r.style.left=Q+"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(X,Y,M,rt,it){var ot=Y.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),R.data[e]=T(R.data[e],!0)||T(t,!0)?a.options:k(t,R.data[e]),m.isDirty=m.isDirtyData=!0,!m.fixedBox&&m.hasCartesianSeries&&(G.isDirtyBox=!0),"point"===R.legendType&&(G.isDirtyLegend=!0),c&&G.redraw(i)}var e,a=this,m=a.series,L=a.graphic,G=m.chart,R=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 E,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"]||{},R=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&&R.states&&R.states[t]&&!1===R.states[t].enabled)){if(this.state=t,l&&(E=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)}E&&this.graphic.animate(E,k(e.options.chart.animation,L.animation,a.animation)),b&&b.hide()}else t&&L&&(a=R.symbol||i.symbol,b&&b.currentSymbol!==a&&(b=b.destroy()),E&&(b?b[c?"animate":"attr"]({x:E.x,y:E.y}):a&&(i.stateMarkerGraphic=b=e.renderer.symbol(a,E.x,E.y,E.width,E.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));E=(b=this.graphic||b)&&b.visibility||"inherit",(d=d.halo)&&d.size&&b&&"hidden"!==E&&!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:E,zIndex:-1}),P.point=this,e.styledMode||P.attr(f({fill:this.color||i.color,"fill-opacity":d.opacity},X.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(X,Y,M,rt){var it=X.parse,ot=Y.charts,q=Y.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=[],Y.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,G=r.chartY,R=this.selectionMarker;R&&R.touch||(L<h?L=h:L>h+c&&(L=h+c),G<t?G=t:G>t+i&&(G=t+i),this.hasDragged=Math.sqrt(Math.pow(s-L,2)+Math.pow(d-G,2)),10<this.hasDragged&&(h=p.isInsidePlot(s-h,d-t,{visiblePlotOnly:!0}),L=(G=this.getSelectionMarkerAttrs(L,G)).shapeType,G=G.attrs,!p.hasCartesianSeries&&!p.mapView||!this.zoomX&&!this.zoomY||!h||m||R||(this.selectionMarker=R=p.renderer[L](),R.attr({class:"highcharts-selection-marker",zIndex:7}).add(),p.styledMode||R.attr({fill:o.selectionMarkerFill||it("#335cad").setOpacity(.25).get()})),R&&R.attr(G),h&&!R&&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 G=L.horiz,R="touchend"===r.type?L.minPixelPadding:0,e=L.toValue((G?c:i)+R);G=L.toValue((G?c+s:i+d)-R),a[L.coll].push({axis:L,min:Math.min(e,G),max:Math.max(e,G)}),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 G=y(L.points,function(R){return R.x===m.x&&!R.isNull});x(G)&&(L.boosted&&L.boost&&(G=L.boost.getPoint(G)),i.push(G))}):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),Y.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 G=p.selectionMarker;1<c?p.initiated=!0:L&&(p.initiated=!1),s&&p.initiated&&!a&&!1!==r.cancelable&&r.preventDefault(),[].map.call(t,function(R){return p.normalize(R)}),"touchstart"===r.type?([].forEach.call(t,function(R,e){h[e]={chartX:R.chartX,chartY:R.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(R){if(R.zoomEnabled){var e=o.bounds[R.horiz?"h":"v"],l=R.minPixelPadding,P=R.toPixels(Math.min(A(R.options.min,R.dataMin),R.dataMin)),E=R.toPixels(Math.max(A(R.options.max,R.dataMax),R.dataMax)),b=Math.max(P,E);e.min=Math.min(R.pos,Math.min(P,E)-l),e.max=Math.max(R.pos+R.len,b+l)}}),p.res=!0):L?this.runPointActions(p.normalize(r)):h.length&&(C(o,"touchpan",{originalEvent:r},function(){G||(p.selectionMarker=G=f({destroy:q,touch:!0},o.plotBox)),p.pinchTranslate(h,t,d,G,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,G=r?"width":"height",R=d["plot"+(r?"Left":"Top")],e=d.inverted,l=d.bounds[r?"h":"v"],P=1===p.length,E=p[0][L],b=!P&&p[1][L];p=function(){"number"==typeof D&&20<Math.abs(E-b)&&(u=s||Math.abs(_-D)/Math.abs(E-b)),S=(R-_)/u+E,n=d["plot"+(r?"Width":"Height")]/u};var n,S,u=s||1,_=o[0][L],D=!P&&o[1][L];if(p(),(o=S)<l.min){o=l.min;var H=!0}else o+n>l.max&&(o=l.max-n,H=!0);H?(_-=.8*(_-i[a][0]),"number"==typeof D&&(D-=.8*(D-i[a][1])),p()):i[a]=[_,D],e||(c[a]=S-R,c[G]=n),c=e?1/u:u,t[G]=n,t[a]=o,h[e?r?"scaleY":"scaleX":"scale"+m]=u,h["translate"+m]=c*R+(_-c*E)},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 G,L=A((m.crosshair||{}).snap,!0);L&&((G=h.hoverPoint)&&G.series[m.coll]===m||(G=y(d,function(R){return R.series&&R.series[m.coll]===m}))),G||!L?m.drawCrosshair(r,G):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;Y.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=Y.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(X,Y,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[Y.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=X.charts,B=X.doc,I=X.noop,O=X.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!(X.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}(Y)}),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(X,Y,M,rt,it,ot){var q=X.animObject,B=X.setAnimation,I=Y.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,G=t.options&&t.options.marker,R={fill:L};d&&d.css({fill:m,color:m}),a&&a.attr({stroke:L}),i&&(G&&i.isMarker&&(R=t.pointAttribs(),c||(R.stroke=R.fill=s)),i.attr(R))}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,G=this.itemHiddenStyle,R="horizontal"===d.layout?k(d.itemDistance,20):0,e=!d.rtl,l=!t.series,P=!l&&t.series.drawLegendSymbol?t.series:t,E=P.options,b=this.createCheckboxForItem&&E&&E.showCheckbox,n=d.useHTML,S=t.options.className,u=c.label;E=a+m+R+(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:G)),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)),E=this.symbolWidth+m+R+(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)-E+"px"}),this.setText(t),i=u.getBBox(),s=this.fontMetrics&&this.fontMetrics.h||0,t.itemWidth=t.checkboxOffset=d.itemWidth||c.labelWidth||i.width+E,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,G=this.maxLegendWidth;c=c.alignColumns&&this.totalItemWidth>G?this.maxItemWidth:t.itemWidth;var R=t.legendItem||{};s&&this.itemX-i+c>G&&(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),R.x=this.itemX,R.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 G,R=i;if(L.yAxis){L.xAxis.options.reversed&&(R=!R),L.points&&(G=w(R?L.points:L.points.slice(0).reverse(),function(l){return A(l.plotY)})),R=this.itemMarginTop+L.legendItem.label.getBBox().height+this.itemMarginBottom;var e=L.yAxis.top-t.plotTop;L.visible?(G=G?G.plotY:L.yAxis.height,G+=e-.3*R):G=e+L.yAxis.height,c.push({target:G,size:R,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(R,e){return(R.options&&R.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 G=this.lastItemY+this.lastLineHeight+this.titleHeight;G=this.handleOverflow(G),G+=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<G&&m[m.placed?"animate":"attr"](m.crisp.call({},{x:0,y:0,width:d,height:G},m.strokeWidth())),a[L?"show":"hide"](),t.styledMode&&"none"===a.getStyle("display")&&(d=G=0),this.legendWidth=d,this.legendHeight=G,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,_,c=this,i=this.chart,s=i.renderer,d=this.options,a=d.y,m="top"===d.verticalAlign,L=this.padding,G=d.maxHeight,R=d.navigation,e=k(R.animation,!0),l=R.arrowSize||12,P=this.pages,E=this.allItems,b=function(W){"number"==typeof W?H.attr({height:W}):H&&(c.clipRect=H.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(D),i.styledMode||c[W].attr("fill","rgba(0,0,0,0.0001)"),c[W]};a=i.spacingBox.height+(m?-a:a)-L;var D=this.nav,H=this.clipRect;return"horizontal"!==d.layout||"middle"===d.verticalAlign||d.floating||(a/=2),G&&(a=Math.min(a,G)),P.length=0,t&&0<a&&t>a&&!1!==R.enabled?(this.clipHeight=S=Math.max(a-20-this.titleHeight-L,0),this.currentPage=k(this.currentPage,1),this.fullHeight=t,E.forEach(function(W,V){W=(_=W.legendItem||{}).y||0;var K=Math.round(_.label.getBBox().height),Q=P.length;(!Q||W-P[Q-1]>S&&(u||W)!==P[Q-1])&&(P.push(u||W),Q++),_.pageIx=Q-1,u&&((E[V-1].legendItem||{}).pageIx=Q-1),V===E.length-1&&W+K-P[Q-1]>S&&K<=S&&(P.push(W),_.pageIx=Q),W!==u&&(u=W)}),H||(H=c.clipRect=s.clipRect(0,L,9999,0),c.contentGroup.clip(H)),b(S),D||(this.nav=D=s.g().attr({zIndex:1}).add(this.group),this.up=s.symbol("triangle",0,0,l,l).add(D),n("upTracker").on("click",function(){c.scroll(-1,e)}),this.pager=s.text("",15,10).addClass("highcharts-legend-navigation"),!i.styledMode&&R.style&&this.pager.css(R.style),this.pager.add(D),this.down=s.symbol("triangle-down",0,0,l,l).add(D),n("downTracker").on("click",function(){c.scroll(1,e)})),c.scroll(0),t=a):D&&(b(),this.nav=D.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,G=this.pager,R=this.padding,e=this.currentPage+t;e>a&&(e=a),0<e&&(typeof c<"u"&&B(c,s),this.nav.attr({translateX:R,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"})}),G.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",G=s.chart.styledMode,R=function(l){s.allItems.forEach(function(P){t!==P&&[P].concat(P.linkedSeries||[]).forEach(function(E){E.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&&R("inactive"),t.setState("hover"),t.visible&&a.addClass(L),G||c.css(s.options.itemHoverStyle)}).on("mouseout",function(){s.chart.styledMode||c.css(j(t.visible?s.itemStyle:s.itemHiddenStyle)),R(""),a.removeClass(L),t.setState()}).on("click",function(l){var P=function(){t.setVisible&&t.setVisible(),R(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(X,Y,M,rt){var B,it=Y.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=X.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(X,Y,M,rt,it,ot,q,B,I,O,g,f,y,C,v){var x=X.animate,w=X.animObject,T=X.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,G=C.defined,R=C.discardElement,e=C.erase,l=C.error,P=C.extend,E=C.find,b=C.fireEvent,n=C.getStyle,S=C.isArray,u=C.isNumber,_=C.isObject,D=C.isString,H=C.merge,W=C.objectEach,V=C.pick,K=C.pInt,Q=C.relativeLength,J=C.removeEvent,F=C.splat,Z=C.syncTimeout,nt=C.uniqueKey;return X=function(){function $(z,N,tt){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(z,N,tt)}return $.chart=function(z,N,tt){return new $(z,N,tt)},$.prototype.getArgs=function(z,N,tt){D(z)||z.nodeName?(this.renderTo=z,this.init(N,tt)):this.init(z,N)},$.prototype.init=function(z,N){var tt=z.plotOptions||{};b(this,"init",{args:arguments},function(){var et=H(A,z),st=et.chart;W(et.plotOptions,function(ht,dt){_(ht)&&(ht.tooltip=tt[dt]&&H(tt[dt].tooltip)||void 0)}),et.tooltip.userOptions=z.chart&&z.chart.forExport&&z.tooltip.userOptions||z.tooltip,this.userOptions=z,this.margin=[],this.spacing=[],this.bounds={h:{},v:{}},this.labelCollectors=[],this.callback=N,this.isResizing=0;var at=st.zooming=st.zooming||{};z.chart&&!z.chart.zooming&&(at.resetButton=st.resetZoomButton),at.key=V(at.key,st.zoomKey),at.pinchType=V(at.pinchType,st.pinchType),at.singleTouch=V(at.singleTouch,st.zoomBySingleTouch),at.type=V(at.type,st.zoomType),this.options=et,this.axes=[],this.series=[],this.time=z.time&&Object.keys(z.time).length?new y(z.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()})},$.prototype.initSeries=function(z){var N=this.options.chart,tt=i[N=z.type||N.type||N.defaultSeriesType];return tt||l(17,!0,this,{missingModuleFor:N}),"function"==typeof(N=new tt).init&&N.init(this,z),N},$.prototype.setSeriesData=function(){this.getSeriesOrderByLinks().forEach(function(z){z.points||z.data||!z.enabledDataSorting||z.setData(z.options.data,!1)})},$.prototype.getSeriesOrderByLinks=function(){return this.series.concat().sort(function(z,N){return z.linkedSeries.length||N.linkedSeries.length?N.linkedSeries.length-z.linkedSeries.length:0})},$.prototype.orderSeries=function(z){var N=this.series;z=z||0;for(var tt=N.length;z<tt;++z)N[z]&&(N[z].index=z,N[z].name=N[z].getName())},$.prototype.isInsidePlot=function(z,N,tt){void 0===tt&&(tt={});var et=this.inverted,st=this.plotBox,at=this.plotLeft,ht=this.plotTop,dt=this.scrollablePlotBox,ft=0,lt=0;tt.visiblePlotOnly&&this.scrollingContainer&&(ft=(lt=this.scrollingContainer).scrollLeft,lt=lt.scrollTop);var pt=tt.series;if(st=tt.visiblePlotOnly&&dt||st,z={x:dt=tt.inverted?N:z,y:N=tt.inverted?z:N,isInsidePlot:!0,options:tt},!tt.ignoreX){var yt=pt&&(et&&!this.polar?pt.yAxis:pt.xAxis)||{pos:at,len:1/0};(dt=tt.paneCoordinates?yt.pos+dt:at+dt)>=Math.max(ft+at,yt.pos)&&dt<=Math.min(ft+at+st.width,yt.pos+yt.len)||(z.isInsidePlot=!1)}return!tt.ignoreY&&z.isInsidePlot&&(et=tt.axis&&!tt.axis.isXAxis&&tt.axis||pt&&(et?pt.xAxis:pt.yAxis)||{pos:ht,len:1/0},(tt=tt.paneCoordinates?et.pos+N:ht+N)>=Math.max(lt+ht,et.pos)&&tt<=Math.min(lt+ht+st.height,et.pos+et.len)||(z.isInsidePlot=!1)),b(this,"afterIsInsidePlot",z),z.isInsidePlot},$.prototype.redraw=function(z){b(this,"beforeRedraw");var N=this.hasCartesianSeries?this.axes:this.colorAxis||[],tt=this.series,et=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&&z,this),dt&&this.temporaryDisplay(),this.layOutTitles(),z=tt.length;z--;){var yt=tt[z];if(yt.options.stacking||yt.options.centerInCategory){var gt=!0;if(yt.isDirty){var mt=!0;break}}}if(mt)for(z=tt.length;z--;)(yt=tt[z]).options.stacking&&(yt.isDirty=!0);tt.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(),N.forEach(function(ut){ut.updateNames(),ut.setScale()}),this.getMargins(),N.forEach(function(ut){ut.isDirty&&(lt=!0)}),N.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"),tt.forEach(function(ut){(lt||ut.isDirty)&&ut.visible&&ut.redraw(),ut.isDirtyData=!1}),et&&et.reset(!0),ht.draw(),b(this,"redraw"),b(this,"render"),dt&&this.temporaryDisplay(!0),ft.forEach(function(ut){ut.call()})},$.prototype.get=function(z){function N(at){return at.id===z||at.options&&at.options.id===z}for(var tt=this.series,et=E(this.axes,N)||E(this.series,N),st=0;!et&&st<tt.length;st++)et=E(tt[st].points||[],N);return et},$.prototype.getAxes=function(){var z=this,N=this.options,tt=N.xAxis=F(N.xAxis||{});N=N.yAxis=F(N.yAxis||{}),b(this,"getAxes"),tt.forEach(function(et,st){et.index=st,et.isX=!0}),N.forEach(function(et,st){et.index=st}),tt.concat(N).forEach(function(et){new Y(z,et)}),b(this,"afterGetAxes")},$.prototype.getSelectedPoints=function(){return this.series.reduce(function(z,N){return N.getPointsCollection().forEach(function(tt){V(tt.selectedStaging,tt.selected)&&z.push(tt)}),z},[])},$.prototype.getSelectedSeries=function(){return this.series.filter(function(z){return z.selected})},$.prototype.setTitle=function(z,N,tt){this.applyDescription("title",z),this.applyDescription("subtitle",N),this.applyDescription("caption",void 0),this.layOutTitles(tt)},$.prototype.applyDescription=function(z,N){var tt=this,et="title"===z?{color:"#333333",fontSize:this.options.isStock?"16px":"18px"}:{color:"#666666"};et=this.options[z]=H(!this.styledMode&&{style:et},this.options[z],N);var st=this[z];st&&N&&(this[z]=st=st.destroy()),et&&!st&&((st=this.renderer.text(et.text,0,0,et.useHTML).attr({align:et.align,class:"highcharts-"+z,zIndex:et.zIndex||4}).add()).update=function(at){tt[{title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"}[z]](at)},this.styledMode||st.css(et.style),this[z]=st)},$.prototype.layOutTitles=function(z){var N=[0,0,0],tt=this.renderer,et=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?N[0]+2:0,ht){this.styledMode||(lt=dt.style&&dt.style.fontSize),lt=tt.fontMetrics(lt,ht).b,ht.css({width:(dt.width||et.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?N[0]=Math.ceil(N[0]+pt):"bottom"===ft&&(N[2]=Math.ceil(N[2]+pt)))}},this),N[0]&&"top"===(this.options.title.verticalAlign||"top")&&(N[0]+=this.options.title.margin),N[2]&&"bottom"===this.options.caption.verticalAlign&&(N[2]+=this.options.caption.margin);var st=!this.titleOffset||this.titleOffset.join(",")!==N.join(",");this.titleOffset=N,b(this,"afterLayOutTitles"),!this.isDirtyBox&&st&&(this.isDirtyBox=this.isDirtyLegend=st,this.hasRendered&&V(z,!0)&&this.isDirtyBox&&this.redraw())},$.prototype.getChartSize=function(){var z=this.options.chart,N=z.width;z=z.height;var tt=this.renderTo;G(N)||(this.containerWidth=n(tt,"width")),G(z)||(this.containerHeight=n(tt,"height")),this.chartWidth=Math.max(0,N||this.containerWidth||600),this.chartHeight=Math.max(0,Q(z,this.chartWidth)||(1<this.containerHeight?this.containerHeight:400))},$.prototype.temporaryDisplay=function(z){var N=this.renderTo;if(z)for(;N&&N.style;)N.hcOrigStyle&&(L(N,N.hcOrigStyle),delete N.hcOrigStyle),N.hcOrigDetached&&(o.body.removeChild(N),N.hcOrigDetached=!1),N=N.parentNode;else for(;N&&N.style&&(o.body.contains(N)||N.parentNode||(N.hcOrigDetached=!0,o.body.appendChild(N)),("none"===n(N,"display",!1)||N.hcOricDetached)&&(N.hcOrigStyle={display:N.style.display,height:N.style.height,overflow:N.style.overflow},z={display:"block",overflow:"hidden"},N!==this.renderTo&&(z.height=0),L(N,z),N.offsetWidth||N.style.setProperty("display","block","important")),(N=N.parentNode)!==o.body););},$.prototype.setClassName=function(z){this.container.className="highcharts-container "+(z||"")},$.prototype.getContainer=function(){var et,z=this.options,N=z.chart,tt=nt(),st=this.renderTo;st||(this.renderTo=st=N.renderTo),D(st)&&(this.renderTo=st=o.getElementById(st)),st||l(13,!0,this);var at=K(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,N.skipClone||st.offsetWidth||this.temporaryDisplay(),this.getChartSize(),at=this.chartWidth;var ht=this.chartHeight;if(L(st,{overflow:"hidden"}),this.styledMode||(et=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"},N.style||{})),this.container=tt=m("div",{id:tt},et,st),this._cursor=tt.style.cursor,this.renderer=new(N.renderer||!t?O.getRendererType(N.renderer):f)(tt,at,ht,void 0,N.forExport,z.exporting&&z.exporting.allowHTML,this.styledMode),T(void 0,this),this.setClassName(N.className),this.styledMode)for(var dt in z.defs)this.renderer.definition(z.defs[dt]);else this.renderer.setStyle(N.style);this.renderer.chartIndex=this.index,b(this,"afterGetContainer")},$.prototype.getMargins=function(z){var N=this.spacing,tt=this.margin,et=this.titleOffset;this.resetMargins(),et[0]&&!G(tt[0])&&(this.plotTop=Math.max(this.plotTop,et[0]+N[0])),et[2]&&!G(tt[2])&&(this.marginBottom=Math.max(this.marginBottom,et[2]+N[2])),this.legend&&this.legend.display&&this.legend.adjustMargins(tt,N),b(this,"getMargins"),z||this.getAxisMargins()},$.prototype.getAxisMargins=function(){var z=this,N=z.axisOffset=[0,0,0,0],tt=z.colorAxis,et=z.margin,st=function(at){at.forEach(function(ht){ht.visible&&ht.getOffset()})};z.hasCartesianSeries?st(z.axes):tt&&tt.length&&st(tt),h.forEach(function(at,ht){G(et[ht])||(z[at]+=N[ht])}),z.setChartSize()},$.prototype.reflow=function(z){var N=this,tt=N.options.chart,et=N.renderTo,st=G(tt.width)&&G(tt.height),at=tt.width||n(et,"width");tt=tt.height||n(et,"height"),et=z?z.target:c,delete N.pointer.chartPosition,!st&&!N.isPrinting&&at&&tt&&(et===c||et===o)&&((at!==N.containerWidth||tt!==N.containerHeight)&&(C.clearTimeout(N.reflowTimeout),N.reflowTimeout=Z(function(){N.container&&N.setSize(void 0,void 0,!1)},z?100:0)),N.containerWidth=at,N.containerHeight=tt)},$.prototype.setReflow=function(z){var N=this;!1===z||this.unbindReflow?!1===z&&this.unbindReflow&&(this.unbindReflow=this.unbindReflow()):(this.unbindReflow=s(c,"resize",function(tt){N.options&&N.reflow(tt)}),s(this,"destroy",this.unbindReflow))},$.prototype.setSize=function(z,N,tt){var et=this,st=et.renderer;et.isResizing+=1,T(tt,et),tt=st.globalAnimation,et.oldChartHeight=et.chartHeight,et.oldChartWidth=et.chartWidth,typeof z<"u"&&(et.options.chart.width=z),typeof N<"u"&&(et.options.chart.height=N),et.getChartSize(),et.styledMode||(tt?x:L)(et.container,{width:et.chartWidth+"px",height:et.chartHeight+"px"},tt),et.setChartSize(!0),st.setSize(et.chartWidth,et.chartHeight,tt),et.axes.forEach(function(at){at.isDirty=!0,at.setScale()}),et.isDirtyLegend=!0,et.isDirtyBox=!0,et.layOutTitles(),et.getMargins(),et.redraw(tt),et.oldChartHeight=null,b(et,"resize"),Z(function(){et&&b(et,"endResize",null,function(){--et.isResizing})},w(tt).duration)},$.prototype.setChartSize=function(z){var ft,lt,pt,yt,N=this.inverted,tt=this.renderer,et=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(et-ft-this.marginRight)),this.plotHeight=yt=Math.max(0,Math.round(st-lt-this.marginBottom)),this.plotSizeX=N?yt:pt,this.plotSizeY=N?pt:yt,this.plotBorderWidth=at.plotBorderWidth||0,this.spacingBox=tt.spacingBox={x:ht[3],y:ht[0],width:et-ht[3]-ht[1],height:st-ht[0]-ht[2]},this.plotBox=tt.plotBox={x:ft,y:lt,width:pt,height:yt},N=2*Math.floor(this.plotBorderWidth/2),et=Math.ceil(Math.max(N,dt[3])/2),st=Math.ceil(Math.max(N,dt[0])/2),this.clipBox={x:et,y:st,width:Math.floor(this.plotSizeX-Math.max(N,dt[1])/2-et),height:Math.max(0,Math.floor(this.plotSizeY-Math.max(N,dt[2])/2-st))},z||(this.axes.forEach(function(gt){gt.setAxisSize(),gt.setAxisTranslation()}),tt.alignElements()),b(this,"afterSetChartSize",{skipAxes:z})},$.prototype.resetMargins=function(){b(this,"resetMargins");var z=this,N=z.options.chart;["margin","spacing"].forEach(function(tt){var et=N[tt],st=_(et)?et:[et,et,et,et];["Top","Right","Bottom","Left"].forEach(function(at,ht){z[tt][ht]=V(N[tt+at],st[ht])})}),h.forEach(function(tt,et){z[tt]=V(z.margin[et],z.spacing[et])}),z.axisOffset=[0,0,0,0],z.clipOffset=[0,0,0,0]},$.prototype.drawChartBox=function(){var kt,z=this.options.chart,N=this.renderer,tt=this.chartWidth,et=this.chartHeight,st=this.styledMode,at=this.plotBGImage,ht=z.backgroundColor,dt=z.plotBackgroundColor,ft=z.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,wt="animate";if(St||(this.chartBackground=St=N.rect().addClass("highcharts-background").add(),wt="attr"),st)var Mt=kt=St.strokeWidth();else kt=(Mt=z.borderWidth||0)+(z.shadow?8:0),ht={fill:ht||"none"},(Mt||St["stroke-width"])&&(ht.stroke=z.borderColor,ht["stroke-width"]=Mt),St.attr(ht).shadow(z.shadow);St[wt]({x:kt/2,y:kt/2,width:tt-kt-Mt%2,height:et-kt-Mt%2,r:z.borderRadius}),wt="animate",xt||(wt="attr",this.plotBackground=xt=N.rect().addClass("highcharts-plot-background").add()),xt[wt](mt),st||(xt.attr({fill:dt||"none"}).shadow(z.plotShadow),ft&&(at?(ft!==at.attr("href")&&at.attr("href",ft),at.animate(mt)):this.plotBGImage=N.image(ft,lt,pt,yt,gt).add())),ut?ut.animate({width:Ct.width,height:Ct.height}):this.clipRect=N.clipRect(Ct),wt="animate",Pt||(wt="attr",this.plotBorder=Pt=N.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),st||Pt.attr({stroke:z.plotBorderColor,"stroke-width":z.plotBorderWidth||0,fill:"none"}),Pt[wt](Pt.crisp({x:lt,y:pt,width:yt,height:gt},-Pt.strokeWidth())),this.isDirtyBox=!1,b(this,"afterDrawChartBox")},$.prototype.propFromSeries=function(){var et,st,at,z=this,N=z.options.chart,tt=z.options.series;["inverted","angular","polar"].forEach(function(ht){for(st=i[N.type||N.defaultSeriesType],at=N[ht]||st&&st.prototype[ht],et=tt&&tt.length;!at&&et--;)(st=i[tt[et].type])&&st.prototype[ht]&&(at=!0);z[ht]=at})},$.prototype.linkSeries=function(){var z=this,N=z.series;N.forEach(function(tt){tt.linkedSeries.length=0}),N.forEach(function(tt){var et=tt.options.linkedTo;D(et)&&(et=":previous"===et?z.series[tt.index-1]:z.get(et))&&et.linkedParent!==tt&&(et.linkedSeries.push(tt),tt.linkedParent=et,et.enabledDataSorting&&tt.setDataSortingOptions(),tt.visible=V(tt.options.visible,et.options.visible,tt.visible))}),b(this,"afterLinkSeries")},$.prototype.renderSeries=function(){this.series.forEach(function(z){z.translate(),z.render()})},$.prototype.renderLabels=function(){var z=this,N=z.options.labels;N.items&&N.items.forEach(function(tt){var et=P(N.style,tt.style),st=K(et.left)+z.plotLeft,at=K(et.top)+z.plotTop+12;delete et.left,delete et.top,z.renderer.text(tt.html,st,at).attr({zIndex:2}).css(et).add()})},$.prototype.render=function(){var z=this.axes,N=this.colorAxis,tt=this.renderer,et=this.options,st=function(lt){lt.forEach(function(pt){pt.visible&&pt.render()})},at=0;this.setTitle(),this.legend=new q(this,et.legend),this.getStacks&&this.getStacks(),this.getMargins(!0),this.setChartSize(),et=this.plotWidth,z.some(function(lt){if(lt.horiz&<.visible&<.options.labels.enabled&<.series.length)return at=21,!0});var ht=this.plotHeight=Math.max(this.plotHeight-at,0);z.forEach(function(lt){lt.setScale()}),this.getAxisMargins();var dt=1.1<et/this.plotWidth,ft=1.05<ht/this.plotHeight;(dt||ft)&&(z.forEach(function(lt){(lt.horiz&&dt||!lt.horiz&&ft)&<.setTickInterval(!0)}),this.getMargins()),this.drawChartBox(),this.hasCartesianSeries?st(z):N&&N.length&&st(N),this.seriesGroup||(this.seriesGroup=tt.g("series-group").attr({zIndex:3}).add()),this.renderSeries(),this.renderLabels(),this.addCredits(),this.setResponsive&&this.setResponsive(),this.hasRendered=!0},$.prototype.addCredits=function(z){var N=this,tt=H(!0,this.options.credits,z);tt.enabled&&!this.credits&&(this.credits=this.renderer.text(tt.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){tt.href&&(c.location.href=tt.href)}).attr({align:tt.position.align,zIndex:8}),N.styledMode||this.credits.css(tt.style),this.credits.add().align(tt.position),this.credits.update=function(et){N.credits=N.credits.destroy(),N.addCredits(et)})},$.prototype.destroy=function(){var at,z=this,N=z.axes,tt=z.series,et=z.container,st=et&&et.parentNode;for(b(z,"destroy"),z.renderer.forExport?e(p,z):p[z.index]=void 0,ot.chartCount--,z.renderTo.removeAttribute("data-highcharts-chart"),J(z),at=N.length;at--;)N[at]=N[at].destroy();for(this.scroller&&this.scroller.destroy&&this.scroller.destroy(),at=tt.length;at--;)tt[at]=tt[at].destroy();"title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer".split(" ").forEach(function(ht){var dt=z[ht];dt&&dt.destroy&&(z[ht]=dt.destroy())}),et&&(et.innerHTML=v.emptyHTML,J(et),st&&R(et)),W(z,function(ht,dt){delete z[dt]})},$.prototype.firstRender=function(){var z=this,N=z.options;(!z.isReadyToRender||z.isReadyToRender())&&(z.getContainer(),z.resetMargins(),z.setChartSize(),z.propFromSeries(),z.getAxes(),(S(N.series)?N.series:[]).forEach(function(tt){z.initSeries(tt)}),z.linkSeries(),z.setSeriesData(),b(z,"beforeRender"),I&&(z.pointer=B.isRequired()?new B(z,N):new I(z,N)),z.render(),z.pointer.getChartPosition(),!z.renderer.imgCount&&!z.hasLoaded&&z.onload(),z.temporaryDisplay(!0))},$.prototype.onload=function(){this.callbacks.concat([this.callback]).forEach(function(z){z&&typeof this.index<"u"&&z.apply(this,[this])},this),b(this,"load"),b(this,"render"),G(this.index)&&this.setReflow(this.options.chart.reflow),this.warnIfA11yModuleNotLoaded(),this.hasLoaded=!0},$.prototype.warnIfA11yModuleNotLoaded=function(){var z=this.options,N=this.title;z&&!this.accessibility&&(this.renderer.boxWrapper.attr({role:"img","aria-label":(N&&N.element.textContent||"").replace(/</g,"<")}),z.accessibility&&!1===z.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))},$.prototype.addSeries=function(z,N,tt){var st,et=this;return z&&(N=V(N,!0),b(et,"addSeries",{options:z},function(){st=et.initSeries(z),et.isDirtyLegend=!0,et.linkSeries(),st.enabledDataSorting&&st.setData(z.data,!1),b(et,"afterAddSeries",{series:st}),N&&et.redraw(tt)})),st},$.prototype.addAxis=function(z,N,tt,et){return this.createAxis(N?"xAxis":"yAxis",{axis:z,redraw:tt,animation:et})},$.prototype.addColorAxis=function(z,N,tt){return this.createAxis("colorAxis",{axis:z,redraw:N,animation:tt})},$.prototype.createAxis=function(z,N){return z=new Y(this,H(N.axis,{index:this[z].length,isX:"xAxis"===z})),V(N.redraw,!0)&&this.redraw(N.animation),z},$.prototype.showLoading=function(z){var N=this,tt=N.options,et=tt.loading,st=function(){at&&L(at,{left:N.plotLeft+"px",top:N.plotTop+"px",width:N.plotWidth+"px",height:N.plotHeight+"px"})},at=N.loadingDiv,ht=N.loadingSpan;at||(N.loadingDiv=at=m("div",{className:"highcharts-loading highcharts-loading-hidden"},null,N.container)),ht||(N.loadingSpan=ht=m("span",{className:"highcharts-loading-inner"},null,at),s(N,"redraw",st)),at.className="highcharts-loading",v.setElementHTML(ht,V(z,tt.lang.loading,"")),N.styledMode||(L(at,P(et.style,{zIndex:10})),L(ht,et.labelStyle),N.loadingShown||(L(at,{opacity:0,display:""}),x(at,{opacity:et.style.opacity||.5},{duration:et.showDuration||0}))),N.loadingShown=!0,st()},$.prototype.hideLoading=function(){var z=this.options,N=this.loadingDiv;N&&(N.className="highcharts-loading highcharts-loading-hidden",this.styledMode||x(N,{opacity:0},{duration:z.loading.hideDuration||100,complete:function(){L(N,{display:"none"})}})),this.loadingShown=!1},$.prototype.update=function(z,N,tt,et){var ft,lt,st=this,at={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},ht=z.isResponsiveOptions,dt=[];b(st,"update",{options:z}),ht||st.setResponsive(!1,!0),z=a(z,st.options),st.userOptions=H(st.userOptions,z);var pt=z.chart;if(pt){if(H(!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&&z.colors&&(this.options.colors=z.colors),z.time&&(this.time===j&&(this.time=new y(z.time)),H(!0,st.options.time,z.time)),W(z,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)&&H(!0,st.options[mt],z[mt]),"chart"!==mt&&-1!==st.propsRequireUpdateSeries.indexOf(mt)&&(ft=!0)}),this.collectionsWithUpdate.forEach(function(gt){if(z[gt]){var mt=[];st[gt].forEach(function(ut,Ct){ut.options.isInternal||mt.push(V(ut.options.index,Ct))}),F(z[gt]).forEach(function(ut,Ct){var xt,St=G(ut.id);St&&(xt=st.get(ut.id)),!xt&&st[gt]&&(xt=st[gt][mt?mt[Ct]:Ct])&&St&&G(xt.options.id)&&(xt=void 0),xt&&xt.coll===gt&&(xt.update(ut,!1),tt&&(xt.touched=!0)),!xt&&tt&&st.collectionsWithInit[gt]&&(st.collectionsWithInit[gt][0].apply(st,[ut].concat(st.collectionsWithInit[gt][1]||[]).concat([!1])).touched=!0)}),tt&&st[gt].forEach(function(ut){ut.touched||ut.options.isInternal?delete ut.touched:dt.push(ut)})}}),dt.forEach(function(gt){gt.chart&>.remove&>.remove(!1)}),yt&&st.axes.forEach(function(gt){gt.update({},!1)}),ft&&st.getSeriesOrderByLinks().forEach(function(gt){gt.chart&>.update({},!1)},this),yt=pt&&pt.width,pt=pt&&(D(pt.height)?Q(pt.height,yt||st.chartWidth):pt.height),lt||u(yt)&&yt!==st.chartWidth||u(pt)&&pt!==st.chartHeight?st.setSize(yt,pt,et):V(N,!0)&&st.redraw(et),b(st,"afterUpdate",{options:z,redraw:N,animation:et})},$.prototype.setSubtitle=function(z,N){this.applyDescription("subtitle",z),this.layOutTitles(N)},$.prototype.setCaption=function(z,N){this.applyDescription("caption",z),this.layOutTitles(N)},$.prototype.showResetZoom=function(){function z(){N.zoomOut()}var N=this,tt=A.lang,et=N.options.chart.zooming.resetButton,st=et.theme,at="chart"===et.relativeTo||"spacingBox"===et.relativeTo?null:"scrollablePlotBox";b(this,"beforeShowResetZoom",null,function(){N.resetZoomButton=N.renderer.button(tt.resetZoom,null,null,z,st).attr({align:et.position.align,title:tt.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(et.position,!1,at)}),b(this,"afterShowResetZoom")},$.prototype.zoomOut=function(){b(this,"selection",{resetSelection:!0},this.zoom)},$.prototype.zoom=function(z){var st,N=this,tt=N.pointer,et=!1;!z||z.resetSelection?(N.axes.forEach(function(ht){st=ht.zoom()}),tt.initiated=!1):z.xAxis.concat(z.yAxis).forEach(function(ht){var dt=ht.axis;(tt[dt.isXAxis?"zoomX":"zoomY"]&&G(tt.mouseDownX)&&G(tt.mouseDownY)&&N.isInsidePlot(tt.mouseDownX-N.plotLeft,tt.mouseDownY-N.plotTop,{axis:dt})||!G(N.inverted?tt.mouseDownX:tt.mouseDownY))&&(st=dt.zoom(ht.min,ht.max),dt.displayBtn&&(et=!0))});var at=N.resetZoomButton;et&&!at?N.showResetZoom():!et&&_(at)&&(N.resetZoomButton=at.destroy()),st&&N.redraw(V(N.options.chart.animation,z&&z.animation,100>N.pointCount))},$.prototype.pan=function(z,N){var tt=this,et=tt.hoverPoints;N="object"==typeof N?N:{enabled:N,type:"x"};var st=tt.options.chart;st&&st.panning&&(st.panning=N);var ht,at=N.type;b(this,"pan",{originalEvent:z},function(){et&&et.forEach(function(lt){lt.setState()});var dt=tt.xAxis;"xy"===at?dt=dt.concat(tt.yAxis):"y"===at&&(dt=tt.yAxis);var ft={};dt.forEach(function(lt){if(lt.options.panningEnabled&&!lt.options.isInternal){var pt=lt.horiz,yt=z[pt?"chartX":"chartY"],gt=tt[pt=pt?"mouseDownX":"mouseDownY"],mt=lt.minPointOffset||0,ut=lt.reversed&&!tt.inverted||!lt.reversed&&tt.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&<.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(wt){var Mt=wt.getProcessedData(!0);Mt=wt.getExtremes(Mt.yData,!0),kt||(kt={startMin:Number.MAX_VALUE,startMax:-Number.MAX_VALUE}),u(Mt.dataMin)&&u(Mt.dataMax)&&(kt.startMin=Math.min(V(wt.options.threshold,1/0),Mt.dataMin,kt.startMin),kt.startMax=Math.max(V(wt.options.threshold,-1/0),Mt.dataMax,kt.startMax))}),ut=Math.min(V(kt&&kt.startMin,Ct.dataMin),mt?Ct.min:lt.toValue(lt.toPixels(Ct.min)-lt.minPixelPadding)),xt=Math.max(V(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&>!==Ct.min&&St!==Ct.max&>>=ut&&St<=xt&&(lt.setExtremes(gt,St,!1,!1,{trigger:"pan"}),!tt.resetZoomButton&>!==ut&&St!==xt&&at.match("y")&&(tt.showResetZoom(),lt.displayBtn=!1),ht=!0),ft[pt]=yt)}}),W(ft,function(lt,pt){tt[pt]=lt}),ht&&tt.redraw(!1),L(tt.container,{cursor:"move"})})},$}(),P(X.prototype,{callbacks:[],collectionsWithInit:{xAxis:[X.prototype.addAxis,[!0]],yAxis:[X.prototype.addAxis,[!1]],series:[X.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(" ")}),X}),ct(U,"Core/Legend/LegendSymbol.js",[U["Core/Utilities.js"]],function(X){var it,ot,Y=X.extend,M=X.merge,rt=X.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,Y({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(X,Y,M,rt,it,ot,q,B,I,O){var g=X.animObject,f=X.setAnimation,y=Y.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,G=O.merge,R=O.objectEach,e=O.pick,l=O.removeEvent,P=O.splat,E=O.syncTimeout;return X=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,_=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 H,D=S.events;(D&&D.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),_.length&&(H=_[_.length-1]),u._i=e(H&&H._i,-1)+1,u.opacity=u.options.opacity,n.orderSeries(this.insert(_)),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 _,n=this,S=n.options,u=n.chart;s(this,"bindAxes",null,function(){(n.axisTypes||[]).forEach(function(D){var H=0;u[D].forEach(function(W){_=W.options,(S[D]===H&&!_.isInternal||typeof S[D]<"u"&&S[D]===_.id||typeof S[D]>"u"&&0===_.index)&&(n.insert(W.series),n[D]=W,W.isDirty=!0),_.isInternal||H++}),n[D]||n.optionalAxis===D||t(18,!0,u)})}),s(this,"afterBindAxes")},b.prototype.updateParallelArrays=function(n,S){var u=n.series,_=arguments,D=m(S)?function(H){var W="y"===H&&u.toYData?u.toYData(n):n[H];u[H+"Data"][S]=W}:function(H){Array.prototype[S].apply(u[H+"Data"],Array.prototype.slice.call(_,2))};u.parallelArrays.forEach(D)},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,_=S.relativeXValue,D=this.chart.time,H=this.xIncrement;return H=e(H,S.pointStart,0),this.pointInterval=W=e(this.pointInterval,S.pointInterval,1),_&&m(n)&&(W*=n),u&&(S=new D.Date(H),"day"===u?D.set("Date",S,D.get("Date",S)+W):"month"===u?D.set("Month",S,D.get("Month",S)+W):"year"===u&&D.set("FullYear",S,D.get("FullYear",S)+W),W=S.getTime()-H),_&&m(n)?H+W:(this.xIncrement=H+W,H)},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,_=u.plotOptions,D=S.userOptions||{};n=G(n),S=S.styledMode;var H={plotOptions:_,userOptions:n};s(this,"setOptions",H);var W=H.plotOptions[this.type],V=D.plotOptions||{};return this.userOptions=H.userOptions,D=G(W,_.series,D.plotOptions&&D.plotOptions[this.type],n),this.tooltipOptions=G(y.tooltip,y.plotOptions.series&&y.plotOptions.series.tooltip,y.plotOptions[this.type].tooltip,u.tooltip.userOptions,_.series&&_.series.tooltip,_[this.type].tooltip,n.tooltip),this.stickyTracking=e(n.stickyTracking,V[this.type]&&V[this.type].stickyTracking,V.series&&V.series.stickyTracking,!(!this.tooltipOptions.shared||this.noSharedTooltip)||D.stickyTracking),null===W.marker&&delete D.marker,this.zoneAxis=D.zoneAxis,_=this.zones=(D.zones||[]).slice(),!D.negativeColor&&!D.negativeFillColor||D.zones||(u={value:D[this.zoneAxis+"Threshold"]||D.threshold||0,className:"highcharts-negative"},S||(u.color=D.negativeColor,u.fillColor=D.negativeFillColor),_.push(u)),_.length&&o(_[_.length-1].value)&&_.push(S?{}:{color:this.color,fillColor:this.fillColor}),s(this,"afterSetOptions",{options:D}),D},b.prototype.getName=function(){return e(this.options.name,"Series "+(this.index+1))},b.prototype.getCyclic=function(n,S,u){var _=this.chart,D=this.userOptions,H=n+"Index",W=n+"Counter",V=u?u.length:e(_.options.chart[n+"Count"],_[n+"Count"]);if(!S){var K=e(D[H],D["_"+H]);o(K)||(_.series.length||(_[W]=0),D["_"+H]=K=_[W]%V,_[W]+=1),u&&(S=u[K])}typeof K<"u"&&(this[H]=K),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,V,u=n.id,_=n.x,D=this.points,H=this.options.dataSorting;if(u)(H=this.chart.get(u))instanceof ot&&(W=H);else if((this.linkedParent||this.enabledDataSorting||this.options.relativeXValue)&&(W=function(Q){return!Q.touched&&Q.index===n.index},H&&H.matchByName?W=function(Q){return!Q.touched&&Q.name===n.name}:this.options.relativeXValue&&(W=function(Q){return!Q.touched&&Q.options.x===n.x}),!(W=i(D,W))))return;if(W){var K=W&&W.index;typeof K<"u"&&(V=!0)}return typeof K>"u"&&m(_)&&(K=this.xData.indexOf(_,S)),-1!==K&&typeof K<"u"&&this.cropped&&(K=K>=this.cropStart?K-this.cropStart:K),!V&&m(K)&&D[K]&&D[K].touched&&(K=void 0),K},b.prototype.updateData=function(n,S){var K,Q,J,u=this.options,_=u.dataSorting,D=this.points,H=[],W=this.requireSorting,V=n.length===D.length,F=!0;if(this.xIncrement=null,n.forEach(function(Z,nt){var $=o(Z)&&this.pointClass.prototype.optionsToObject.call({series:this},Z)||{};$.id||m($.x)?(-1===($=this.findPointIndex($,J))||typeof $>"u"?H.push(Z):D[$]&&Z!==u.data[$]?(D[$].update(Z,!1,null,!1),D[$].touched=!0,W&&(J=$+1)):D[$]&&(D[$].touched=!0),(!V||nt!==$||_&&_.enabled||this.hasDerivedData)&&(K=!0)):H.push(Z)},this),K)for(n=D.length;n--;)(Q=D[n])&&!Q.touched&&Q.remove&&Q.remove(!1,S);else!V||_&&_.enabled?F=!1:(n.forEach(function(Z,nt){Z!==D[nt].y&&D[nt].update&&D[nt].update(Z,!1,null,!1)}),H.length=0);return D.forEach(function(Z){Z&&(Z.touched=!1)}),!!F&&(H.forEach(function(Z){this.addPoint(Z,!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,_){void 0===S&&(S=!0);var D=this,H=D.points,W=H&&H.length||0,V=D.options,K=D.chart,Q=V.dataSorting,J=D.xAxis,F=V.turboThreshold,Z=this.xData,nt=this.yData,$=D.pointArrayMap;$=$&&$.length;var N,z=V.keys,tt=0,et=1,st=null;if(!K.options.chart.allowMutatingData){V.data&&delete D.options.data,D.userOptions.data&&delete D.userOptions.data;var at=G(!0,n)}if(at=(n=at||n||[]).length,Q&&Q.enabled&&(n=this.sortData(n)),K.options.chart.allowMutatingData&&!1!==_&&at&&W&&!D.cropped&&!D.hasGroupedData&&D.visible&&!D.boosted&&(N=this.updateData(n,u)),!N){if(D.xIncrement=null,D.colorCounter=0,this.parallelArrays.forEach(function(ht){D[ht+"Data"].length=0}),F&&at>F)if(st=D.getFirstValidPoint(n),m(st))for(u=0;u<at;u++)Z[u]=this.autoIncrement(),nt[u]=n[u];else if(a(st))if($)if(st.length===$)for(u=0;u<at;u++)Z[u]=this.autoIncrement(),nt[u]=n[u];else for(u=0;u<at;u++)Z[u]=(_=n[u])[0],nt[u]=_.slice(1,$+1);else if(z&&(tt=0<=(tt=z.indexOf("x"))?tt:0,et=0<=(et=z.indexOf("y"))?et:1),1===st.length&&(et=0),tt===et)for(u=0;u<at;u++)Z[u]=this.autoIncrement(),nt[u]=n[u][et];else for(u=0;u<at;u++)Z[u]=(_=n[u])[tt],nt[u]=_[et];else t(12,!1,K);else for(u=0;u<at;u++)typeof n[u]<"u"&&(D.pointClass.prototype.applyOptions.apply(_={series:D},[n[u]]),D.updateParallelArrays(_,u));for(nt&&L(nt[0])&&t(14,!0,K),D.data=[],D.options.data=D.userOptions.data=n,u=W;u--;)H[u]&&H[u].destroy&&H[u].destroy();J&&(J.minRange=J.userMinRange),D.isDirty=K.isDirtyBox=!0,D.isDirtyData=!!H,u=!1}"point"===V.legendType&&(this.processData(),this.generatePoints()),S&&K.redraw(u)},b.prototype.sortData=function(n){var S=this,u=S.options.dataSorting.sortKey||"y",_=function(D,H){return o(H)&&D.pointClass.prototype.optionsToObject.call({series:D},H)||{}};return n.forEach(function(D,H){n[H]=_(S,D),n[H].index=H},this),n.concat().sort(function(D,H){return D=d(u,D),(H=d(u,H))<D?-1:H>D?1:0}).forEach(function(D,H){D.x=H},this),S.linkedSeries&&S.linkedSeries.forEach(function(D){var H=D.options,W=H.data;H.dataSorting&&H.dataSorting.enabled||!W||(W.forEach(function(V,K){W[K]=_(D,V),n[K]&&(W[K].x=n[K].x,W[K].index=K)}),D.setData(W,!1))}),n},b.prototype.getProcessedData=function(n){var S=this.xAxis,u=this.options,_=u.cropThreshold,D=n||this.getExtremesFromAll||u.getExtremesFromAll,H=this.isCartesian;n=S&&S.val2lin,u=!(!S||!S.logarithmic);var W=0,V=this.xData,K=this.yData,Q=this.requireSorting,J=!1,F=V.length;if(S){var Z=(J=S.getExtremes()).min,nt=J.max;J=!(!S.categories||S.names.length)}if(H&&this.sorted&&!D&&(!_||F>_||this.forceCrop))if(V[F-1]<Z||V[0]>nt)V=[],K=[];else if(this.yData&&(V[0]<Z||V[F-1]>nt)){var $=this.cropData(this.xData,this.yData,Z,nt);V=$.xData,K=$.yData,W=$.start,$=!0}for(_=V.length||1;--_;)if(0<(S=u?n(V[_])-n(V[_-1]):V[_]-V[_-1])&&(typeof z>"u"||S<z))var z=S;else 0>S&&Q&&!J&&(t(15,!1,this.chart),Q=!1);return{xData:V,yData:K,cropped:$,cropStart:W,closestPointRange:z}},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,_,D){var W,H=n.length,V=0,K=H;for(D=e(D,this.cropShoulder),W=0;W<H;W++)if(n[W]>=u){V=Math.max(0,W-D);break}for(u=W;u<H;u++)if(n[u]>_){K=u+D;break}return{xData:n.slice(V,K),yData:S.slice(V,K),start:V,end:K}},b.prototype.generatePoints=function(){var n=this.options,S=this.processedData||n.data,u=this.processedXData,_=this.processedYData,D=this.pointClass,H=u.length,W=this.cropStart||0,V=this.hasGroupedData,K=n.keys,Q=[];n=n.dataGrouping&&n.dataGrouping.groupAll?W:0;var J,F,Z=this.data;if(!Z&&!V){var nt=[];nt.length=S.length,Z=this.data=nt}for(K&&V&&(this.options.keys=!1),F=0;F<H;F++){if(nt=W+F,V){var $=(new D).init(this,[u[F]].concat(P(_[F])));$.dataGroup=this.groupMap[n+F],$.dataGroup.options&&($.options=$.dataGroup.options,c($,$.dataGroup.options),delete $.dataLabels)}else($=Z[nt])||typeof S[nt]>"u"||(Z[nt]=$=(new D).init(this,S[nt],u[F]));$&&($.index=V?n+F:nt,Q[F]=$)}if(this.options.keys=K,Z&&(H!==(J=Z.length)||V))for(F=0;F<J;F++)F!==W||V||(F+=H),Z[F]&&(Z[F].destroyElements(),Z[F].plotX=void 0);this.data=Z,this.points=Q,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,_=this.yAxis,D=this.processedXData||this.xData,H=[],W=this.requireSorting?this.cropShoulder:0;_=!!_&&_.positiveValuesOnly;var V,K=0,Q=0,J=0,F=(n=n||this.stackedYData||this.processedYData||[]).length;if(u){var Z=u.getExtremes();K=Z.min,Q=Z.max}for(V=0;V<F;V++){var nt=D[V],$=(m(Z=n[V])||a(Z))&&(Z.length||0<Z||!_);if(nt=S||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!u||(D[V+W]||nt)>=K&&(D[V-W]||nt)<=Q,$&&nt)if($=Z.length)for(;$--;)m(Z[$])&&(H[J++]=Z[$]);else H[J++]=Z}return n={activeYData:H,dataMin:j(H),dataMax:A(H)},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,_=null;null===_&&u<S;)_=n[u],u++;return _},b.prototype.translate=function(){this.processedXData||this.processData(),this.generatePoints();var nt,$,n=this.options,S=n.stacking,u=this.xAxis,_=u.categories,D=this.enabledDataSorting,H=this.yAxis,W=this.points,V=W.length,K=this.pointPlacementToXValue(),Q=!!K,J=n.threshold,F=n.startFromThreshold?J:0,Z=this.zoneAxis||"y",z=Number.MAX_VALUE;for(nt=0;nt<V;nt++){var N=W[nt],tt=N.x,et=void 0,st=void 0,at=N.y,ht=N.low,dt=S&&H.stacking&&H.stacking.stacks[(this.negStacks&&at<(F?0:J)?"-":"")+this.stackKey];if((H.positiveValuesOnly&&!H.validatePositiveValue(at)||u.positiveValuesOnly&&!u.validatePositiveValue(tt))&&(N.isNull=!0),N.plotX=$=p(k(u.translate(tt,0,0,0,1,K,"flags"===this.type),-1e5,1e5)),S&&this.visible&&dt&&dt[tt]){var ft=this.getStackIndicator(ft,tt,this.index);!N.isNull&&ft.key&&(st=(et=dt[tt]).points[ft.key]),et&&a(st)&&(at=st[1],(ht=st[0])===F&&ft.key===dt[tt].base&&(ht=e(m(J)?J:H.min)),H.positiveValuesOnly&&o(ht)&&0>=ht&&(ht=void 0),N.total=N.stackTotal=e(et.total),N.percentage=o(N.y)&&et.total?N.y/et.total*100:void 0,N.stackY=at,this.irregularWidths||et.setOffset(this.pointXOffset||0,this.barW||0,void 0,void 0,void 0,this.xAxis))}if(N.yBottom=o(ht)?k(H.translate(ht,0,1,0,1),-1e5,1e5):void 0,this.dataModify&&(at=this.dataModify.modifyValue(at,nt)),N.plotY=void 0,m(at)&&typeof(et=H.translate(at,!1,!0,!1,!0))<"u"&&(N.plotY=k(et,-1e5,1e5)),N.isInside=this.isPointInside(N),N.clientX=Q?p(u.translate(tt,0,0,0,1,K)):$,N.negative=N[Z]<(n[Z+"Threshold"]||J||0),N.category=e(_&&_[N.x],N.x),!N.isNull&&!1!==N.visible){typeof lt<"u"&&(z=Math.min(z,Math.abs($-lt)));var lt=$}N.zone=this.zones.length?N.getZone():void 0,!N.graphic&&this.group&&D&&(N.isNew=!0)}this.closestPointRangePx=z,s(this,"afterTranslate")},b.prototype.getValidPoints=function(n,S,u){var _=this.chart;return(n||this.points||[]).filter(function(D){return!(S&&!_.isInsidePlot(D.plotX,D.plotY,{inverted:_.inverted}))&&!1!==D.visible&&(u||!D.isNull)})},b.prototype.getClipBox=function(){var n=this.chart,S=this.xAxis,u=this.yAxis,_=G(n.clipBox);return S&&S.len!==n.plotSizeX&&(_.width=S.len),u&&u.len!==n.plotSizeY&&(_.height=u.len),_},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,_=n.sharedClips;n=n.renderer;var D=this.getClipBox(),H=this.getSharedClipKey(),W=_[H];W?W.animate(D):_[H]=W=n.clipRect(D),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,_=this.markerGroup,D=S.inverted,H=g(this.options.animation),W=[this.getSharedClipKey(),H.duration,H.easing,H.defer].join(),V=S.sharedClips[W],K=S.sharedClips[W+"m"];if(n&&u)H=this.getClipBox(),V?V.attr("height",H.height):(H.width=0,D&&(H.x=S.plotHeight),V=S.renderer.clipRect(H),S.sharedClips[W]=V,K=S.renderer.clipRect({x:-99,y:-99,width:D?S.plotWidth+199:99,height:D?99:S.plotHeight+199}),S.sharedClips[W+"m"]=K),u.clip(V),_&&_.clip(K);else if(V&&!V.hasClass("highcharts-animating")){S=this.getClipBox();var Q=H.step;_&&_.element.childNodes.length&&(H.step=function(J,F){Q&&Q.apply(F,arguments),"width"===F.prop&&K&&K.element&&K.attr(D?"height":"width",J+99)}),V.addClass("highcharts-animating").animate(S,H)}},b.prototype.afterAnimate=function(){var n=this;this.setClip(),R(this.chart.sharedClips,function(S,u,_){S&&!n.chart.container.querySelector('[clip-path="url(#'.concat(S.id,')"]'))&&(S.destroy(),delete _[u])}),this.finishedAnimating=!0,s(this,"afterAnimate")},b.prototype.drawPoints=function(n){void 0===n&&(n=this.points);var K,Q,S=this.chart,u=S.styledMode,_=this.colorAxis,D=this.options.marker,H=this[this.specialGroup||"markerGroup"],W=this.xAxis,V=e(D.enabled,!(W&&!W.isRadial)||null,this.closestPointRangePx>=D.enabledThreshold*D.radius);if(!1!==D.enabled||this._hasPointMarkers)for(K=0;K<n.length;K++){var J=n[K],F=(Q=J.graphic)?"animate":"attr",Z=J.marker||{},nt=!!J.marker;if((V&&typeof Z.enabled>"u"||Z.enabled)&&!J.isNull&&!1!==J.visible){var $=e(Z.symbol,this.symbol,"rect"),z=this.markerAttribs(J,J.selected&&"select");this.enabledDataSorting&&(J.startXPos=W.reversed?-(z.width||0):W.width);var N=!1!==J.isInside;!Q&&N&&(0<(z.width||0)||J.hasImage)&&(J.graphic=Q=S.renderer.symbol($,z.x,z.y,z.width,z.height,nt?Z:D).add(H),this.enabledDataSorting&&S.hasRendered&&(Q.attr({x:J.startXPos}),F="animate")),Q&&"animate"===F&&Q[N?"show":"hide"](N).animate(z),Q&&(Z=this.pointAttribs(J,u||!J.selected?void 0:"select"),u?_&&Q.css({fill:Z.fill}):Q[F](Z)),Q&&Q.addClass(J.getClassName(),!0)}else Q&&(J.graphic=Q.destroy())}},b.prototype.markerAttribs=function(n,S){var u=this.options,_=u.marker,D=n.marker||{},H=D.symbol||_.symbol,W={},V=e(D.radius,_&&_.radius);return S&&(_=_.states[S],V=e((S=D.states&&D.states[S])&&S.radius,_&&_.radius,V&&V+(_&&_.radiusPlus||0))),n.hasImage=H&&0===H.indexOf("url"),n.hasImage&&(V=0),n=n.pos(),m(V)&&n&&(W.x=n[0]-V,W.y=n[1]-V,u.crisp&&(W.x=Math.floor(W.x))),V&&(W.width=W.height=2*V),W},b.prototype.pointAttribs=function(n,S){var u=this.options.marker,_=n&&n.options,D=_&&_.marker||{},H=_&&_.color,W=n&&n.color,V=n&&n.zone&&n.zone.color,K=this.color;return n=e(D.lineWidth,u.lineWidth),_=1,K=H||V||W||K,H=D.fillColor||u.fillColor||K,W=D.lineColor||u.lineColor||K,u=u.states[S=S||"normal"]||{},n=e((S=D.states&&D.states[S]||{}).lineWidth,u.lineWidth,n+e(S.lineWidthPlus,u.lineWidthPlus,0)),{stroke:W=S.lineColor||u.lineColor||W,"stroke-width":n,fill:H=S.fillColor||u.fillColor||H,opacity:_=e(S.opacity,u.opacity,_)}},b.prototype.destroy=function(n){var W,V,K,S=this,u=S.chart,_=/AppleWebKit\/533/.test(w.navigator.userAgent),D=S.data||[];for(s(S,"destroy",{keepEventsForUpdate:n}),this.removeEvents(n),(S.axisTypes||[]).forEach(function(Q){(K=S[Q])&&K.series&&(h(K.series,S),K.isDirty=K.forceRedraw=!0)}),S.legendItem&&S.chart.legend.destroyItem(S),W=D.length;W--;)(V=D[W])&&V.destroy&&V.destroy();S.clips&&S.clips.forEach(function(Q){return Q.destroy()}),O.clearTimeout(S.animationTimeout),R(S,function(Q,J){Q instanceof I&&!Q.survive&&Q[_&&"group"===J?"hide":"destroy"]()}),u.hoverSeries===S&&(u.hoverSeries=void 0),h(u.series,S),u.orderSeries(),R(S,function(Q,J){n&&"hcEvents"===J||delete S[J]})},b.prototype.applyZones=function(){var J,F,Z,nt,$,z,N,tt,n=this,S=this.chart,u=S.renderer,_=this.zones,D=this.clips||[],H=this.graph,W=this.area,V=Math.max(S.plotWidth,S.plotHeight),K=this[(this.zoneAxis||"y")+"Axis"],Q=S.inverted,et=!1;if(_.length&&(H||W)&&K&&typeof K.min<"u"){var st=K.reversed,at=K.horiz;H&&!this.showLine&&H.hide(),W&&W.hide();var ht=K.getExtremes();_.forEach(function(dt,ft){J=st?at?S.plotWidth:0:at?0:K.toPixels(ht.min)||0,J=k(e(F,J),0,V),F=k(Math.round(K.toPixels(e(dt.value,ht.max),!0)||0),0,V),et&&(J=F=K.toPixels(ht.max)),nt=Math.abs(J-F),$=Math.min(J,F),z=Math.max(J,F),K.isXAxis?(Z={x:Q?z:$,y:0,width:nt,height:V},at||(Z.x=S.plotHeight-Z.x)):(Z={x:0,y:Q?z:$,width:V,height:nt},at&&(Z.y=S.plotWidth-Z.y)),Q&&u.isVML&&(Z=K.isXAxis?{x:0,y:st?$:z,height:Z.width,width:S.chartWidth}:{x:Z.y-S.plotLeft-S.spacingBox.x,y:0,width:Z.height,height:S.chartHeight}),D[ft]?D[ft].animate(Z):D[ft]=u.clipRect(Z),N=n["zone-area-"+ft],tt=n["zone-graph-"+ft],H&&tt&&tt.clip(D[ft]),W&&N&&N.clip(D[ft]),et=dt.value>ht.max,n.resetZones&&0===F&&(F=void 0)}),this.clips=D}else n.visible&&(H&&H.show(),W&&W.show())},b.prototype.plotGroup=function(n,S,u,_,D){var H=this[n],W=!H;return u={visibility:u,zIndex:_||.1},typeof this.opacity>"u"||this.chart.styledMode||"inactive"===this.state||(u.opacity=this.opacity),W&&(this[n]=H=this.chart.renderer.g().add(D)),H.addClass("highcharts-"+S+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(o(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(H.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),H.attr(u)[W?"attr":"animate"](this.getPlotBox(S)),H},b.prototype.getPlotBox=function(n){var S=this.xAxis,u=this.yAxis,_=this.chart;return n=_.inverted&&!_.polar&&S&&!1!==this.invertible&&"series"===n,_.inverted&&(S=u,u=this.xAxis),{translateX:S?S.left:_.plotLeft,translateY:u?u.top:_.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,_=g(u.animation),D=n.visible?"inherit":"hidden",H=u.zIndex,W=n.hasRendered,V=S.seriesGroup;S=!n.finishedAnimating&&S.renderer.isSVG?_.duration:0,s(this,"render"),n.plotGroup("group","series",D,H,V),n.markerGroup=n.plotGroup("markerGroup","markers",D,H,V),!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&&_.defer&&(S+=_.defer),n.animationTimeout=E(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,_=this.yAxis,D=this.chart.inverted;return this.searchKDTree({clientX:D?u.len-n.chartY+u.pos:n.chartX-u.pos,plotY:D?_.len-n.chartX+_.pos:n.chartY-_.pos},S,n)},b.prototype.buildKDTree=function(n){function S(D,H,W){var V=D&&D.length;if(V){var K=u.kdAxisArray[H%W];return D.sort(function(Q,J){return Q[K]-J[K]}),{point:D[V=Math.floor(V/2)],left:S(D.slice(0,V),H+1,W),right:S(D.slice(V+1),H+1,W)}}}this.buildingKdTree=!0;var u=this,_=-1<u.options.findNearestPointBy.indexOf("y")?2:1;delete u.kdTree,E(function(){u.kdTree=S(u.getValidPoints(null,!u.directTouch),_,_),u.buildingKdTree=!1},u.options.kdNow||n&&"touchstart"===n.type?0:1)},b.prototype.searchKDTree=function(n,S,u){var D=this,H=this.kdAxisArray[0],W=this.kdAxisArray[1],V=S?"distX":"dist";if(S=-1<D.options.findNearestPointBy.indexOf("y")?2:1,this.kdTree||this.buildingKdTree||this.buildKDTree(u),this.kdTree)return function _(K,Q,J,F){var Z=Q.point,nt=D.kdAxisArray[J%F],$=Z,z=o(K[H])&&o(Z[H])?Math.pow(K[H]-Z[H],2):null,N=o(K[W])&&o(Z[W])?Math.pow(K[W]-Z[W],2):null;return Z.dist=o(N=(z||0)+(N||0))?Math.sqrt(N):Number.MAX_VALUE,Z.distX=o(z)?Math.sqrt(z):Number.MAX_VALUE,z=0>(nt=K[nt]-Z[nt])?"right":"left",Q[N=0>nt?"left":"right"]&&($=(N=_(K,Q[N],J+1,F))[V]<$[V]?N:Z),Q[z]&&Math.sqrt(nt*nt)<$[V]&&($=(K=_(K,Q[z],J+1,F))[V]<$[V]?K:$),$}(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,_=this.yAxis;return typeof n.plotY<"u"&&typeof n.plotX<"u"&&0<=n.plotY&&n.plotY<=(_?_.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,_=[].concat(u?n.areaPath:n.graphPath),D=n.chart,H=D.pointer,W=D.renderer,V=D.options.tooltip.snap,K=n.tracker,Q=function(F){D.hoverSeries!==n&&n.onMouseOver()},J="rgba(192,192,192,"+(x?1e-4:.002)+")";K?K.attr({d:_}):n.graph&&(n.tracker=W.path(_).attr({visibility:n.visible?"inherit":"hidden",zIndex:2}).addClass(u?"highcharts-tracker-area":"highcharts-tracker-line").add(n.group),D.styledMode||n.tracker.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:J,fill:u?J:"none","stroke-width":n.graph.strokeWidth()+(u?0:2*V)}),[n.tracker,n.markerGroup,n.dataLabelsGroup].forEach(function(F){F&&(F.addClass("highcharts-tracker").on("mouseover",Q).on("mouseout",function(Z){H.onTrackerMouseOut(Z)}),S.cursor&&!D.styledMode&&F.css({cursor:S.cursor}),v)&&F.on("touchstart",Q)})),s(this,"afterDrawTracker")},b.prototype.addPoint=function(n,S,u,_,D){var H=this.options,W=this.data,V=this.chart,K=this.xAxis;K=K&&K.hasNames&&K.names;var F,Q=H.data,J=this.xData;S=e(S,!0);var Z={series:this};this.pointClass.prototype.applyOptions.apply(Z,[n]);var nt=Z.x,$=J.length;if(this.requireSorting&&nt<J[$-1])for(F=!0;$&&J[$-1]>nt;)$--;this.updateParallelArrays(Z,"splice",$,0,0),this.updateParallelArrays(Z,$),K&&Z.name&&(K[nt]=Z.name),Q.splice($,0,n),(F||this.processedData)&&(this.data.splice($,0,null),this.processData()),"point"===H.legendType&&this.generatePoints(),u&&(W[0]&&W[0].remove?W[0].remove(!1):(W.shift(),this.updateParallelArrays(Z,"shift"),Q.shift())),!1!==D&&s(this,"addPoint",{point:Z}),this.isDirtyData=this.isDirty=!0,S&&V.redraw(_)},b.prototype.removePoint=function(n,S,u){var _=this,D=_.data,H=D[n],W=_.points,V=_.chart,K=function(){W&&W.length===D.length&&W.splice(n,1),D.splice(n,1),_.options.data.splice(n,1),_.updateParallelArrays(H||{series:_},"splice",n,1),H&&H.destroy(),_.isDirty=!0,_.isDirtyData=!0,S&&V.redraw()};f(u,V),S=e(S,!0),H?H.firePointEvent("remove",null,K):K()},b.prototype.remove=function(n,S,u,_){function D(){H.destroy(_),W.isDirtyLegend=W.isDirtyBox=!0,W.linkSeries(),e(n,!0)&&W.redraw(S)}var H=this,W=H.chart;!1!==u?s(H,"remove",null,D):D()},b.prototype.update=function(n,S){n=r(n,this.userOptions),s(this,"update",{options:n});var u=this,_=u.chart,D=u.userOptions,H=u.initialType||u.type,W=_.options.plotOptions,V=T[H].prototype,K=u.finishedAnimating&&{animation:!1},Q={},J=["eventOptions","navigatorSeries","baseSeries"],F=n.type||D.type||_.options.chart.type,Z=!(this.hasDerivedData||F&&F!==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(F=F||H,Z&&(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($){J.push($+"Data")}),n.data&&(n.dataSorting&&c(u.options.dataSorting,n.dataSorting),this.setData(n.data,!1))),n=G(D,K,{index:typeof D.index>"u"?u.index:D.index,pointStart:e(W&&W.series&&W.series.pointStart,D.pointStart,u.xData[0])},!Z&&{data:u.options.data},n),Z&&n.data&&(n.data=u.options.data),(J=["group","markerGroup","dataLabelsGroup","transformGroup","shadowGroup"].concat(J)).forEach(function($){J[$]=u[$],delete u[$]}),W=!1,T[F]){if(W=F!==u.type,u.remove(!1,!1,!1,!0),W)if(Object.setPrototypeOf)Object.setPrototypeOf(u,T[F].prototype);else{for(nt in K=Object.hasOwnProperty.call(u,"hcEvents")&&u.hcEvents,V)u[nt]=void 0;c(u,T[F].prototype),K?u.hcEvents=K:delete u.hcEvents}}else t(17,!0,_,{missingModuleFor:F});if(J.forEach(function($){u[$]=J[$]}),u.init(_,n),Z&&this.points){if(!1===(n=u.options).visible)Q.graphic=1,Q.dataLabel=1;else if(!u._hasPointLabels){var nt=n.dataLabels;D=D.marker||{},!(V=n.marker)||!1!==V.enabled&&D.symbol===V.symbol&&D.height===V.height&&D.width===V.width||(Q.graphic=1),nt&&!1===nt.enabled&&(Q.dataLabel=1)}for(D=0,V=this.points;D<V.length;D++)(nt=V[D])&&nt.series&&(nt.resolveColor(),Object.keys(Q).length&&nt.destroyElements(Q),!1===n.showInLegend&&nt.legendItem&&_.legend.destroyItem(nt))}u.initialType=H,_.linkSeries(),W&&u.linkedSeries.length&&(u.isDirtyData=!0),s(this,"afterUpdate"),e(S,!0)&&_.redraw(!!Z&&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,_=this.userOptions[n];return _?S!==_: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,_=S.hoverPoint;S.hoverSeries=null,_&&_.onMouseOut(),this&&n.events.mouseOut&&s(this,"mouseOut"),!u||this.stickyTracking||u.shared&&!this.noSharedTooltip||u.hide(),S.series.forEach(function(D){D.setState("",!0)})},b.prototype.setState=function(n,S){var u=this,_=u.options,D=u.graph,H=_.inactiveOtherPoints,W=_.states,V=e(W[n||"normal"]&&W[n||"normal"].animation,u.chart.options.chart.animation),K=_.lineWidth,Q=0,J=_.opacity;if(u.state!==(n=n||"")&&([u.group,u.markerGroup,u.dataLabelsGroup].forEach(function(F){F&&(u.state&&F.removeClass("highcharts-series-"+u.state),n&&F.addClass("highcharts-series-"+n))}),u.state=n,!u.chart.styledMode)){if(W[n]&&!1===W[n].enabled)return;if(n&&(K=W[n].lineWidth||K+(W[n].lineWidthPlus||0),J=e(W[n].opacity,J)),D&&!D.dashstyle&&m(K))for(D.animate(_={"stroke-width":K},V);u["zone-graph-"+Q];)u["zone-graph-"+Q].animate(_,V),Q+=1;H||[u.group,u.markerGroup,u.dataLabelsGroup,u.labelBySeries].forEach(function(F){F&&F.animate({opacity:J},V)})}S&&H&&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,_=u.chart,D=_.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(V){u[V]&&u[V][W]()}),(_.hoverSeries===u||(_.hoverPoint&&_.hoverPoint.series)===u)&&u.onMouseOut(),u.legendItem&&_.legend.colorizeItem(u,n),u.isDirty=!0,u.options.stacking&&_.series.forEach(function(V){V.options.stacking&&V.visible&&(V.isDirty=!0)}),u.linkedSeries.forEach(function(V){V.setVisible(n,!1)}),D&&(_.isDirtyBox=!0),s(u,W),!1!==S&&_.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(X.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=X,X}),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(X,Y,M,rt,it,ot){var q=X.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=Y.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(Y,"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(X,Y,M){var rt=X.format,it=Y.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(X,Y,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 R,e,G=d.length;G--;)m=c.getStackIndicator(m,R=d[G],c.index,L),(e=(R=s[L]&&s[L][R])&&R.points[m.key])&&a.call(c,e,R,G)})}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,G=this.options,R=G.threshold,e=o(G.startFromThreshold&&R,0);G=G.stack;var n,S,l="-"+(c=c?""+this.type+",".concat(s):this.stackKey),P=this.negStacks,E=(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],_=a[S],D=this.getStackIndicator(D,u,this.index),H=D.key,W=(n=P&&_<(e?0:R))?l:c;E[W]||(E[W]={}),E[W][u]||(b[W]&&b[W][u]?(E[W][u]=b[W][u],E[W][u].total=null):E[W][u]=new rt(i,i.options.stackLabels,!!n,u,G)),W=E[W][u],null!==_?(W.points[H]=W.points[this.index]=[o(W.cumulative,e)],T(W.cumulative)||(W.base=H),W.touched=i.stacking.stacksTouched,0<D.index&&!1===this.singleStacks&&(W.points[H][0]=W.points[this.index+","+u+",0"][0])):W.points[H]=W.points[this.index]=null,"percent"===s?(n=n?c:l,W.total=P&&E[n]&&E[n][u]?(n=E[n][u]).total=Math.max(n.total,W.total)+Math.abs(_)||0:w(W.total+(Math.abs(_)||0))):"group"===s?(k(_)&&(_=_[0]),null!==_&&(W.total=(W.total||0)+1)):W.total=w(W.total+(_||0)),W.cumulative="group"===s?(W.total||1)-1:o(W.cumulative,e)+(_||0),null!==_&&(W.points[H].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=X.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(G){G.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(X,Y,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(X.defaultOptions,{}),B}(X),Y.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(X,Y,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=X.parse,q=M.seriesTypes.line;X=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 G=L[m+"Null"]||0;if(m=L[m+"Cliff"]||0,L=!0,m||G){var R=(G?d[0]:d[1])+m,e=d[0]+m;L=!!G}else!x&&y[a]&&y[a].isNull&&(R=e=r);typeof R<"u"&&(A.push({plotX:i,plotY:null===R?p:w.getThreshold(R),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 G=1===L?"rightNull":"leftNull",R=A[x[i+L]],e=0;if(R)for(var l=o;0<=l&&l<r;){var P=k[l].index;(d=R.points[P])||(P===C.index?j[c][G]=!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),X(rt.prototype,{singleStacks:!1,drawLegendSymbol:Y.drawRectangle}),M.registerSeriesType("area",rt),rt}),ct(U,"Series/Spline/SplineSeries.js",[U["Core/Series/SeriesRegistry.js"],U["Core/Utilities.js"]],function(X,Y){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=X.seriesTypes.line,it=Y.merge,ot=Y.pick;return Y=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),X.registerSeriesType("spline",Y),Y}),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(X,Y,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(X.defaultOptions,q.defaultOptions),g}(X),B(rt.prototype,{getGraphPath:ot.getGraphPath,getStackPoints:ot.getStackPoints,drawGraph:ot.drawGraph,drawLegendSymbol:Y.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(X,Y,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=X.animObject,g=Y.parse,f=rt.hasTouch;X=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(R){var e=R.yAxis,l=R.options;if(R.type===o.type&&(R.visible||!o.chart.options.chart.ignoreHiddenSeries)&&c.len===e.len&&c.pos===e.pos){if(l.stacking&&"group"!==l.stacking){typeof s[d=R.stackKey]>"u"&&(s[d]=a++);var P=s[d]}else!1!==l.grouping&&(P=a++);R.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,G=(m-2*L)/(a||1);return h=Math.min(h.maxPointWidth||t.len,j(h.pointWidth,G*(1-2*h.pointPadding))),o.columnMetrics={width:h,offset:(G-h)/2+(L+((o.columnIndex||0)+(i?1:0))*G-m/2)*(i?-1:1),paddedWidth:G,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 G=L[t.x.toString()];G&&(L=G.points[i.index],s?(L&&(a=m),G.hasValidPoints&&(d?m++:m--)):w(L)&&(L=Object.keys(G.points).filter(function(R){return!R.match(",")&&G.points[R]&&1<G.points[R].length}).map(parseFloat).sort(function(R,e){return e-R}),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(),G=L.width,R=o.pointXOffset=L.offset,e=o.dataMin,l=o.dataMax,P=o.barW=Math.max(G,1+2*c);h.inverted&&(a-=.5),t.pointPadding&&(P=Math.ceil(P)),ot.prototype.translate.apply(o),o.points.forEach(function(E){var b=j(E.yBottom,a),n=999+Math.abs(b),S=E.plotX||0;n=y(E.plotY,-n,s.len+n);var u=Math.min(n,b),_=Math.max(n,b)-u,D=G,H=S+R,W=P;m&&Math.abs(_)<m&&(_=m,S=!s.reversed&&!E.negative||s.reversed&&E.negative,T(d)&&T(l)&&E.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(E.options.pointWidth)&&(D=W=Math.ceil(E.options.pointWidth),H-=Math.round((D-G)/2)),t.centerInCategory&&(H=o.adjustForMissingColumns(H,D,E,L)),E.barX=H,E.pointWidth=D,E.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-H-W/2,_]:[i.left-h.plotLeft+H+W/2,y(n+s.pos-h.plotTop,s.pos-h.plotTop,s.len+s.pos-h.plotTop),_],E.shapeType=o.pointClass.prototype.shapeType||"rect",E.shapeArgs=o.crispCol.apply(o,E.isNull?[H,a,W,0]:[H,u,W,_])})},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 G=o.getZone();d=o.options.color||G&&(G.color||o.nonZonedColor)||this.color,G&&(a=G.borderColor||a,c=G.dashStyle||c,m=G.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,G=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,G="animate"),m&&L&&m[G](A(d)),c.borderRadius&&m[G]({r:c.borderRadius}),t.styledMode||m[G](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:X,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(X,Y,M){var v,rt=X.getDeferredAnimation,it=Y.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,G=o.plotY,R=t.rotation,e=t.align,l=ot(L)&&ot(G)&&d.isInsidePlot(L,Math.round(G),{inverted:a,paneCoordinates:!0,series:s});G=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){R&&h.attr({align:e}),e=h.getBBox(!0);var E=[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}),R?(P=!1,E=d.renderer.rotCorr(b,R),b={x:c.x+(t.x||0)+c.width/2+E.x,y:c.y+(t.y||0)+{top:0,middle:.5,bottom:1}[t.verticalAlign]*c.height},E=[e.x-Number(h.attr("x")),e.y-Number(h.attr("y"))],G(b),h[i?"attr":"animate"](b)):(G(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,G=b.y,L=d.isInsidePlot(c+=E[0],G+=E[1],{paneCoordinates:!0,series:s})&&d.isInsidePlot(c+e.width,G+e.height,{paneCoordinates:!0,series:s})),t.shape&&!R&&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 R=h.plotGroup("dataLabelsGroup","data-labels",i?"inherit":"hidden",L.zIndex||6);R.attr({opacity:+i}),!i&&(i=h.dataLabelsGroup)&&(h.visible&&R.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 E=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(E){var _=e.getLabelConfig(),D=y(l[e.formatPrefix+"Format"],l.format);_=ot(D)?it(D,_,t):(l[e.formatPrefix+"Formatter"]||l.formatter).call(_,l),D=l.style;var H=l.rotation;t.styledMode||(D.color=y(l.color,D.color,h.color,"#000000"),"contrast"===D.color?(e.contrastColor=s.getContrast(e.color||h.color),D.color=!ot(u)&&l.inside||0>u||c.stacking?e.contrastColor:m):delete e.contrastColor,c.cursor&&(D.cursor=c.cursor));var W={r:l.borderRadius||0,rotation:H,padding:l.padding,zIndex:1};if(!t.styledMode){var V=l.borderColor;W.fill="auto"===(u=l.backgroundColor)?e.color:u,W.stroke="auto"===V?e.color:V,W["stroke-width"]=l.borderWidth}f(W,function(K,Q){typeof K>"u"&&delete W[Q]})}!n||E&&ot(_)&&!!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]))),E&&ot(_)?(n?W.text=_:(e.dataLabels=e.dataLabels||[],n=e.dataLabels[P]=H?s.text(_,0,0,l.useHTML).addClass("highcharts-data-label"):s.label(_,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(D).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(R),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,G=h.x;G=void 0===G?0:G;var R=h.y;R=void 0===R?0:R;var e=(t.x||0)+L;if(0>e){"right"===a&&0<=G?(h.align="left",h.inside=!0):G-=e;var l=!0}return(e=(t.x||0)+c.width-L)>d.plotWidth&&("left"===a&&0>=G?(h.align="right",h.inside=!0):G+=d.plotWidth-e,l=!0),0>(e=t.y+L)&&("bottom"===m&&0<=R?(h.verticalAlign="top",h.inside=!0):R-=e,l=!0),(e=(t.y||0)+c.height-L)>d.plotHeight&&("top"===m&&0>=R?(h.verticalAlign="bottom",h.inside=!0):R+=d.plotHeight-e,l=!0),l&&(h.x=G,h.y=R,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(X,Y,M){var q,rt=Y.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){X.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(X,Y,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(X.defaultOptions,{}),B}(X),it(M.prototype,{inverted:!0}),Y.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(X,Y,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=Y.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,X),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()}),Y.registerSeriesType("scatter",M),M}),ct(U,"Series/CenteredUtilities.js",[U["Core/Globals.js"],U["Core/Series/Series.js"],U["Core/Utilities.js"]],function(X,Y,M){var I,O,rt=X.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 Y||(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(X,Y,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=X.setAnimation,ot=M.addEvent,q=M.defined;X=M.extend;var B=M.isNumber,I=M.pick,O=M.relativeLength;return Y=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}(Y),X(Y.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}}}),Y}),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(X,Y,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=X.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 G=t+a*h,R={x:k[0],y:k[1],r:k[2]/2,innerR:k[3]/2,start:Math.round(1e3*L)/1e3,end:Math.round(1e3*G)/1e3};m.shapeType="arc",m.shapeArgs=R,m.labelDistance=w(m.options.dataLabels&&m.options.dataLabels.distance,i),m.labelDistance=T(m.labelDistance,R.r),this.maxLabelDistance=Math.max(this.maxLabelDistance||0,m.labelDistance),(G=(G+L)/2)>1.5*Math.PI?G-=2*Math.PI:G<-Math.PI/2&&(G+=2*Math.PI),m.slicedTranslation={translateX:Math.round(Math.cos(G)*p),translateY:Math.round(Math.sin(G)*p)},R=Math.cos(G)*k[2]/2;var e=Math.sin(G)*k[2]/2;m.tooltipPos=[k[0]+.7*R,k[1]+.7*e],m.half=G<-Math.PI/2||G>Math.PI/2?1:0,m.angle=G,L=Math.min(o,m.labelDistance/5),m.labelPosition={natural:{x:k[0]+R+Math.cos(G)*m.labelDistance,y:k[1]+e+Math.sin(G)*m.labelDistance},final:{},alignment:0>m.labelDistance?"center":m.half?"right":"left",connectorPosition:{breakAt:{x:k[0]+R+Math.cos(G)*L,y:k[1]+e+Math.sin(G)*L},touchingSliceAt:{x:k[0]+R,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:Y.prototype.drawTracker,getCenter:X.getCenter,getSymbol:M,isCartesian:!1,noSharedTooltip:!0,pointAttribs:Y.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(X,Y,M,rt,it){var v,ot=Y.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,E,b,n,S,u,_,D,H,W,V,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],G=[[],[]],R=[0,0,0,0],e=r.dataLabelPositioners;r.visible&&(h.enabled||r._hasPointLabels)&&(p.forEach(function(K){K.dataLabel&&K.visible&&K.dataLabel.shortened&&(K.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),K.dataLabel.shortened=!1)}),B.prototype.drawDataLabels.apply(r),p.forEach(function(K){K.dataLabel&&(K.visible?(G[K.half].push(K),K.dataLabel._pos=null,!g(h.style.width)&&!g(K.options.dataLabels&&K.options.dataLabels.style&&K.options.dataLabels.style.width)&&K.dataLabel.getBBox().width>d&&(K.dataLabel.css({width:Math.round(.7*d)+"px"}),K.dataLabel.shortened=!0)):(K.dataLabel=K.dataLabel.destroy(),K.dataLabels&&1===K.dataLabels.length&&delete K.dataLabels))}),G.forEach(function(K,Q){var Z,J=K.length,F=[];if(J){if(r.sortByAngle(K,Q-.5),0<r.maxLabelDistance){var nt=Math.max(0,L-m-r.maxLabelDistance),$=Math.min(L+m+r.maxLabelDistance,o.plotHeight);K.forEach(function(z){0<z.labelDistance&&z.dataLabel&&(z.top=Math.max(0,L-m-z.labelDistance),z.bottom=Math.min(L+m+z.labelDistance,o.plotHeight),Z=z.dataLabel.getBBox().height||21,z.distributeBox={target:z.labelPosition.natural.y-z.top+Z/2,size:Z,rank:z.y},F.push(z.distributeBox))}),q(F,nt=$+Z-nt,nt/5)}for(W=0;W<J;W++){if(b=(l=K[W]).dataLabel,H=!1===l.visible?"hidden":"inherit",D=nt=(S=l.labelPosition).natural.y,F&&g(l.distributeBox)&&(typeof l.distributeBox.pos>"u"?H="hidden":(u=l.distributeBox.size,D=e.radialDistributionY(l))),delete l.positionIndex,h.justify)_=e.justify(l,m,a);else switch(h.alignTo){case"connectors":_=e.alignToConnectors(K,Q,c,s);break;case"plotEdges":_=e.alignToPlotEdges(b,Q,c,s);break;default:_=e.radialDistributionX(r,l,D,nt)}b._attr={visibility:H,align:S.alignment},b._pos={x:_+y((V=l.options.dataLabels||{}).x,h.x)+({left:t,right:-t}[S.alignment]||0),y:D+y(V.y,h.y)-10},S.final.x=_,S.final.y=D,y(h.crop,!0)&&(n=b.getBBox().width,nt=null,_-n<t&&1===Q?(nt=Math.round(n-_+t),R[3]=Math.max(nt,R[3])):_+n>c-t&&0===Q&&(nt=Math.round(_+n-c+t),R[1]=Math.max(nt,R[1])),0>D-u/2?R[0]=Math.max(Math.round(u/2-D),R[0]):D+u/2>i&&(R[2]=Math.max(Math.round(D+u/2-i),R[2])),b.sideOverflow=nt)}}}),0===I(R)||this.verifyDataLabelOverflow(R))&&(this.placeDataLabels(),this.points.forEach(function(K){var Q;V=f(h,K.options.dataLabels),(P=y(V.connectorWidth,1))&&(E=K.connector,(b=K.dataLabel)&&b._pos&&K.visible&&0<K.labelDistance?(H=b._attr.visibility,(Q=!E)&&(K.connector=E=o.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+K.colorIndex+(K.className?" "+K.className:"")).add(r.dataLabelsGroup),o.styledMode||E.attr({"stroke-width":P,stroke:V.connectorColor||K.color||"#666666"})),E[Q?"attr":"animate"]({d:K.getConnectorPath()}),E.attr("visibility",H)):E&&(K.connector=E.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){X.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(X,Y){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=Y.fireEvent,ot=Y.isArray,q=Y.isNumber,B=Y.objectEach,I=Y.pick;(0,Y.addEvent)(X,"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)}),X.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(X){var g,Y=X.extend,M=X.find,rt=X.isArray,it=X.isObject,ot=X.merge,q=X.objectEach,B=X.pick,I=X.splat,O=X.uniqueKey;return function(f){var y=[];f.compose=function(v){return-1===y.indexOf(v)&&(y.push(v),Y(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(X,Y,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,G,R){return X.animate=it.animate,X.animObject=it.animObject,X.getDeferredAnimation=it.getDeferredAnimation,X.setAnimation=it.setAnimation,X.stop=it.stop,X.timers=rt.timers,X.AST=ot,X.Axis=y,X.Chart=p,X.chart=p.chart,X.Fx=rt,X.Legend=r,X.PlotLineOrBand=x,X.Point=A,X.Pointer=k.isRequired()?k:j,X.Series=t,X.StackItem=h,X.SVGElement=I,X.SVGRenderer=O,X.Tick=w,X.Time=R,X.Tooltip=T,X.Color=G,X.color=G.parse,f.compose(O),g.compose(I),X.defaultOptions=M.defaultOptions,X.getOptions=M.getOptions,X.time=M.defaultTime,X.setOptions=M.setOptions,X.dateFormat=q.dateFormat,X.format=q.format,X.numberFormat=q.numberFormat,X.addEvent=Y.addEvent,X.arrayMax=Y.arrayMax,X.arrayMin=Y.arrayMin,X.attr=Y.attr,X.clearTimeout=Y.clearTimeout,X.correctFloat=Y.correctFloat,X.createElement=Y.createElement,X.css=Y.css,X.defined=Y.defined,X.destroyObjectProperties=Y.destroyObjectProperties,X.discardElement=Y.discardElement,X.distribute=B.distribute,X.erase=Y.erase,X.error=Y.error,X.extend=Y.extend,X.extendClass=Y.extendClass,X.find=Y.find,X.fireEvent=Y.fireEvent,X.getMagnitude=Y.getMagnitude,X.getStyle=Y.getStyle,X.inArray=Y.inArray,X.isArray=Y.isArray,X.isClass=Y.isClass,X.isDOMElement=Y.isDOMElement,X.isFunction=Y.isFunction,X.isNumber=Y.isNumber,X.isObject=Y.isObject,X.isString=Y.isString,X.keys=Y.keys,X.merge=Y.merge,X.normalizeTickInterval=Y.normalizeTickInterval,X.objectEach=Y.objectEach,X.offset=Y.offset,X.pad=Y.pad,X.pick=Y.pick,X.pInt=Y.pInt,X.relativeLength=Y.relativeLength,X.removeEvent=Y.removeEvent,X.seriesType=c.seriesType,X.splat=Y.splat,X.stableSort=Y.stableSort,X.syncTimeout=Y.syncTimeout,X.timeUnits=Y.timeUnits,X.uniqueKey=Y.uniqueKey,X.useSerialIds=Y.useSerialIds,X.wrap=Y.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),X}),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!==(At=function(){return ct(Tt)}.call(Lt,vt,Lt,Ot))&&(Ot.exports=At)}}]);
|