PageSourceSearch

https://ssurgoqt.com/assets/xyChart-C9JF7ToM.js

js ssurgoqt.com collected 2026-10-04 05:51:43 UTC 151,329 bytes, 1 lines download raw bytes

vendor: 4,204 bytes, line 1
1import{s7 as te}from"./index-tMz818nX.js";import{w as Ge,c as G,r as it,S as ze,a as Ne,D as he,C as Be,T as We}from"./Tick-iCQh79J7.js";import{T as st,C as at,a as S,p as ge,i as v,U as pe,ap as Ye,aK as I,b as ee,I as Xe,g as R,e as z,R as ue,r as me,k as nt,B as xe,X as re,l as T,as as Le,aL as Oe,P as ie,m as j,ad as Fe,h as ot,aM as rt,aF as lt,A as Ue,aj as Ie,aN as Re,j as _e,v as je,aO as H,M as ht,Z as ut,f as le,aP as ct,aC as dt,L as He,y as U,z as N,aQ as Ze,c as ft}from"./Theme-CtIRMHv-.js";import{B as gt,R as Ve}from"./Button-OLOh-TBr.js";import{C as Ee}from"./ColorSet-5ABIWGDm.js";import{s as F}from"./DefaultTheme-C87M8xXl.js";function qe(P){return typeof P=="object"&&"length"in P?P:Array.from(P)}function Ke(P){this._context=P}Ke.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(P,e){switch(P=+P,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(P,e):this._context.moveTo(P,e);break;case 1:this._point=2;default:this._context.lineTo(P,e);break}}};function Qe(P){return new Ke(P)}function Je(P){return P[0]}function $e(P){return P[1]}function et(P,e){var t=G(!0),i=null,s=Qe,a=null,o=Ge(r);P=typeof P=="function"?P:P===void 0?Je:G(P),e=typeof e=="function"?e:e===void 0?$e:G(e);function r(n){var h,u=(n=qe(n)).length,l,c=!1,d;for(i==null&&(a=s(d=o())),h=0;h<=u;++h)!(h<u&&t(l=n[h],h,n))===c&&((c=!c)?a.lineStart():a.lineEnd()),c&&a.point(+P(l,h,n),+e(l,h,n));if(d)return a=null,d+""||null}return r.x=function(n){return arguments.length?(P=typeof n=="function"?n:G(+n),r):P},r.y=function(n){return arguments.length?(e=typeof n=="function"?n:G(+n),r):e},r.defined=function(n){return arguments.length?(t=typeof n=="function"?n:G(!!n),r):t},r.curve=function(n){return arguments.length?(s=n,i!=null&&(a=s(i)),r):s},r.context=function(n){return arguments.length?(n==null?i=a=null:a=s(i=n),r):i},r}function pt(P,e,t){var i=null,s=G(!0),a=null,o=Qe,r=null,n=Ge(h);P=typeof P=="function"?P:P===void 0?Je:G(+P),e=typeof e=="function"?e:e===void 0?G(0):G(+e),t=typeof t=="function"?t:t===void 0?$e:G(+t);function h(l){var c,d,g,m=(l=qe(l)).length,f,p=!1,b,_=new Array(m),x=new Array(m);for(a==null&&(r=o(b=n())),c=0;c<=m;++c){if(!(c<m&&s(f=l[c],c,l))===p)if(p=!p)d=c,r.areaStart(),r.lineStart();else{for(r.lineEnd(),r.lineStart(),g=c-1;g>=d;--g)r.point(_[g],x[g]);r.lineEnd(),r.areaEnd()}p&&(_[c]=+P(f,c,l),x[c]=+e(f,c,l),r.point(i?+i(f,c,l):_[c],t?+t(f,c,l):x[c]))}if(b)return r=null,b+""||null}function u(){return et().defined(s).curve(o).context(a)}return h.x=function(l){return arguments.length?(P=typeof l=="function"?l:G(+l),i=null,h):P},h.x0=function(l){return arguments.length?(P=typeof l=="function"?l:G(+l),h):P},h.x1=function(l){return arguments.length?(i=l==null?null:typeof l=="function"?l:G(+l),h):i},h.y=function(l){return arguments.length?(e=typeof l=="function"?l:G(+l),t=null,h):e},h.y0=function(l){return arguments.length?(e=typeof l=="function"?l:G(+l),h):e},h.y1=function(l){return arguments.length?(t=l==null?null:typeof l=="function"?l:G(+l),h):t},h.lineX0=h.lineY0=function(){return u().x(P).y(e)},h.lineY1=function(){return u().x(P).y(t)},h.lineX1=function(){return u().x(i).y(e)},h.defined=function(l){return arguments.length?(s=typeof l=="function"?l:G(!!l),h):s},h.curve=function(l){return arguments.length?(o=l,a!=null&&(r=o(a)),h):o},h.context=function(l){return arguments.length?(l==null?a=r=null:r=o(a=l),h):a},h}class mt extends st{setupDefaultRules(){super.setupDefaultRules();const e=this._root.interfaceColors,t=this._root.language,i=this.rule.bind(this);i("XYChart").setAll({colors:Ee.new(this._root,{}),paddingLeft:20,paddingRight:20,paddingTop:16,paddingBottom:16,panX:!1,panY:!1,wheelStep:.25,arrangeTooltips:!0,pinchZoomX:!1,pinchZoomY:!1}),i("XYSeries").setAll({legendLabelText:"{name}"}),i("Rectangle",["plotbackground","xy","background"]).setAll({fill:at.fromHex(0),fillOpacity:0}),i("XYChart",["scrollbar","chart"]).setAll({paddingBottom:0,paddingLeft:0,paddingTop:0,paddingRight:0,colors:Ee.new(this._root,{saturation:0})});
vendor: 7,263 bytes, line 1
1{const n=i("Graphics",["scrollbar","overlay"]);n.setAll({fillOpacity:.5}),F(n,"fill",e,"background")}i("RoundedRectangle",["xy","scrollbar","thumb"]).setAll({cornerRadiusTR:0,cornerRadiusTL:0,cornerRadiusBR:0,cornerRadiusBL:0,fillOpacity:0,focusable:!0}),i("RoundedRectangle",["xy","scrollbar","thumb"]).states.create("hover",{fillOpacity:.4}),i("RoundedRectangle",["xy","scrollbar","chart","background"]).setAll({cornerRadiusTL:0,cornerRadiusBL:0,cornerRadiusTR:0,cornerRadiusBR:0}),i("RoundedRectangle",["xy","scrollbar","chart","background","resize","button"]).setAll({cornerRadiusBL:40,cornerRadiusBR:40,cornerRadiusTL:40,cornerRadiusTR:40}),i("AxisRendererX",["xy","chart","scrollbar"]).setAll({strokeOpacity:0,inside:!0}),i("AxisRendererY",["xy","chart","scrollbar"]).setAll({strokeOpacity:0,inside:!0,minGridDistance:5}),i("AxisLabel",["xy","scrollbar","x"]).setAll({opacity:.5,centerY:S,minPosition:.01,maxPosition:.99,fontSize:"0.8em"}),i("AxisLabel",["category"]).setAll({text:"{category}",populateText:!0}),i("AxisLabel",["x"]).setAll({centerY:0}),i("AxisLabel",["x","inside"]).setAll({centerY:S}),i("AxisLabel",["x","inside","opposite"]).setAll({centerY:0}),i("AxisLabel",["x","opposite"]).setAll({centerY:S}),i("AxisLabel",["y"]).setAll({centerX:S}),i("AxisLabel",["y","inside"]).setAll({centerX:0}),i("AxisLabel",["y","inside","opposite"]).setAll({centerX:S}),i("AxisLabel",["y","opposite"]).setAll({centerX:0}),i("AxisLabel",["minor"]).setAll({fontSize:"0.6em"}),i("AxisLabel",["xy","scrollbar","y"]).setAll({visible:!1}),i("Grid",["xy","scrollbar","y"]).setAll({visible:!1}),i("Grid",["xy","scrollbar","x"]).setAll({opacity:.5}),i("XYCursor").setAll({behavior:"none",layer:30,exportable:!1,snapToSeriesBy:"xy",moveThreshold:1});{const n=i("Grid",["cursor","x"]);n.setAll({forceInactive:!0,strokeOpacity:.8,strokeDasharray:[2,2],role:"slider",ariaLabel:t.translate("Use left and right arrows to move selection")}),F(n,"stroke",e,"alternativeBackground")}{const n=i("Grid",["cursor","y"]);n.setAll({forceInactive:!0,strokeOpacity:.8,strokeDasharray:[2,2],role:"slider",ariaLabel:t.translate("Use up and down arrows to move selection")}),F(n,"stroke",e,"alternativeBackground")}{const n=i("Graphics",["cursor","selection"]);n.setAll({fillOpacity:.15}),F(n,"fill",e,"alternativeBackground")}i("Axis").setAll({zoomOut:!0,start:0,end:1,minZoomCount:1,maxZoomCount:1/0,maxZoomFactor:1e3,maxDeviation:.1,snapTooltip:!0,tooltipLocation:.5,panX:!0,panY:!0,zoomX:!0,zoomY:!0,fixAxisSize:!0}),i("AxisLabel").setAll({location:.5,multiLocation:0,centerX:ge,centerY:ge,paddingTop:3,paddingBottom:3,paddingLeft:5,paddingRight:5}),i("Container",["axis","header"]).setAll({layer:30}),i("Rectangle",["axis","header","background"]).setAll({crisp:!0});{const n=i("AxisRenderer");n.setAll({crisp:!0,strokeOpacity:0}),F(n,"stroke",e,"grid")}i("AxisRendererX").setAll({minGridDistance:120,opposite:!1,inversed:!1,cellStartLocation:0,cellEndLocation:1,width:S}),i("AxisRendererY").setAll({minGridDistance:40,opposite:!1,inversed:!1,cellStartLocation:0,cellEndLocation:1,height:S});{const n=i("Rectangle",["axis","thumb","zoomgrip"]);n.setAll({fillOpacity:0}),F(n,"fill",e,"alternativeBackground"),n.states.create("hover",{fillOpacity:.1})}i("Rectangle",["axis","thumb","x","zoomgrip"]).setAll({cursorOverStyle:"ew-resize"}),i("Rectangle",["axis","thumb","y","zoomgrip"]).setAll({cursorOverStyle:"ns-resize"});{const n=i("Grid");n.setAll({location:0,strokeOpacity:.15,crisp:!0}),F(n,"stroke",e,"grid")}{const n=i("Grid",["minor"]);n.setAll({location:0,strokeOpacity:.07,crisp:!0}),F(n,"stroke",e,"grid")}i("Grid",["base"]).setAll({strokeOpacity:.3});{const n=i("Graphics",["axis","fill"]);n.setAll({visible:!1,isMeasured:!1,position:"absolute",fillOpacity:.05}),F(n,"fill",e,"alternativeBackground")}i("Graphics",["axis","fill","range"]).setAll({isMeasured:!0}),i("Graphics",["series","fill","range"]).setAll({visible:!1,isMeasured:!0}),i("Grid",["series","range"]).setAll({visible:!1}),i("AxisTick",["series","range"]).setAll({visible:!1}),i("AxisLabel",["series","range"]).setAll({visible:!1});{const n=i("AxisTick");n.setAll({location:.5,multiLocation:0,strokeOpacity:1,isMeasured:!1,position:"absolute",visible:!1}),F(n,"stroke",e,"grid")}i("CategoryAxis").setAll({startLocation:0,endLocation:1,fillRule:(n,h)=>{const u=n.get("axisFill");u&&(!v(h)||h%2==0?u.setPrivate("visible",!0):u.setPrivate("visible",!1))}});const s=[{timeUnit:"millisecond",count:1},{timeUnit:"millisecond",count:5},{timeUnit:"millisecond",count:10},{timeUnit:"millisecond",count:50},{timeUnit:"millisecond",count:100},{timeUnit:"millisecond",count:500},{timeUnit:"second",count:1},{timeUnit:"second",count:5},{timeUnit:"second",count:10},{timeUnit:"second",count:30},{timeUnit:"minute",count:1},{timeUnit:"minute",count:5},{timeUnit:"minute",count:10},{timeUnit:"minute",count:15},{timeUnit:"minute",count:30},{timeUnit:"hour",count:1},{timeUnit:"hour",count:3},{timeUnit:"hour",count:6},{timeUnit:"hour",count:12},{timeUnit:"day",count:1},{timeUnit:"day",count:2},{timeUnit:"day",count:3},{timeUnit:"day",count:4},{timeUnit:"day",count:5},{timeUnit:"week",count:1},{timeUnit:"month",count:1},{timeUnit:"month",count:2},{timeUnit:"month",count:3},{timeUnit:"month",count:6},{timeUnit:"year",count:1},{timeUnit:"year",count:2},{timeUnit:"year",count:5},{timeUnit:"year",count:10},{timeUnit:"year",count:50},{timeUnit:"year",count:100},{timeUnit:"year",count:200},{timeUnit:"year",count:500},{timeUnit:"year",count:1e3},{timeUnit:"year",count:2e3},{timeUnit:"year",count:5e3},{timeUnit:"year",count:1e4},{timeUnit:"year",count:1e5}],a={millisecond:t.translate("_date_millisecond"),second:t.translate("_date_second"),minute:t.translate("_date_minute"),hour:t.translate("_date_hour"),day:t.translate("_date_day"),week:t.translate("_date_day"),month:t.translate("_date_month"),year:t.translate("_date_year")},o={millisecond:t.translate("_date_millisecond"),second:t.translate("_date_second"),minute:t.translate("_date_minute"),hour:t.translate("_date_day"),day:t.translate("_date_day"),week:t.translate("_date_day"),month:t.translate("_date_month")+" "+t.translate("_date_year"),year:t.translate("_date_year")},r={millisecond:t.translate("_date_millisecond_full"),second:t.translate("_date_second_full"),minute:t.translate("_date_minute_full"),hour:t.translate("_date_hour_full"),day:t.translate("_date_day_full"),week:t.translate("_date_week_full"),month:t.translate("_date_month_full"),year:t.translate("_date_year")};i("CategoryDateAxis").setAll({markUnitChange:!0,gridIntervals:Ye(s),dateFormats:pe(a),periodChangeDateFormats:pe(o)}),i("DateAxis").setAll({maxZoomFactor:null,strictMinMax:!0,startLocation:0,endLocation:1,markUnitChange:!0,groupData:!1,groupCount:500,skipFirstMinor:!0,weekLabelLocation:0,gridIntervals:Ye(s),dateFormats:pe(a),periodChangeDateFormats:pe(o),tooltipDateFormats:r,groupIntervals:[{timeUnit:"millisecond",count:1},{timeUnit:"millisecond",count:10},{timeUnit:"millisecond",count:100},{timeUnit:"second",count:1},{timeUnit:"second",count:10},{timeUnit:"minute",count:1},{timeUnit:"minute",count:10},{timeUnit:"hour",count:1},{timeUnit:"day",count:1},{timeUnit:"week",count:1},{timeUnit:"month",count:1},{timeUnit:"year",count:1}],fillRule:n=>{const h=n.get("axisFill");
1if(h){const u=n.component,l=n.get("value"),c=n.get("endValue"),d=u.intervalDuration(),g=u.getPrivate("baseInterval"),m=u.getPrivate("gridInterval",g);let f=u.getPrivate("min",0);if(f=it(new Date(f),m.timeUnit,m.count,this._root.locale.firstDayOfWeek,this._root.utc,void 0,this._root.timezone).getTime(),l!=null&&c!=null){const p=Math.round(Math.round((l-f)/d))/2;p==Math.round(p)?h.setPrivate("visible",!0):h.setPrivate("visible",!1)}}}}),i("GaplessDateAxis").setAll({fillRule:n=>{const h=n.get("axisFill");if(h){const u=n.get("index");let l=!1;(!v(u)||u%2==0)&&(l=!0),h.setPrivate("visible",l)}}}),i("ValueAxis").setAll({baseValue:0,logarithmic:!1,strictMinMax:!1,autoZoom:!0,fillRule:n=>{const h=n.get("axisFill");if(h){const u=n.component,l=n.get("value"),c=u.getPrivate("step");v(l)&&v(c)&&(I(l/c/2,5)==Math.round(l/c/2)?h.setPrivate("visible",!1):h.setPrivate("visible",!0))}}}),i("DurationAxis").setAll({baseUnit:"second"}),i("XYSeries").setAll({maskBullets:!0,stackToNegative:!0,locationX:.5,locationY:.5,snapTooltip:!1,openValueXGrouped:"open",openValueYGrouped:"open",valueXGrouped:"close",valueYGrouped:"close",seriesTooltipTarget:"series"}),i("BaseColumnSeries").setAll({adjustBulletPosition:!0}),i("ColumnSeries").setAll({clustered:!0}),i("RoundedRectangle",["series","column"]).setAll({position:"absolute",isMeasured:!1,width:ee(70),height:ee(70),strokeWidth:1,strokeOpacity:1,cornerRadiusBL:0,
vendor: 7,292 bytes, line 1
1cornerRadiusTL:0,cornerRadiusBR:0,cornerRadiusTR:0,fillOpacity:1,role:"figure"}),i("LineSeries").setAll({connect:!0,autoGapCount:1.1,stackToNegative:!1}),i("Graphics",["series","stroke"]).setAll({position:"absolute",strokeWidth:1,strokeOpacity:1,isMeasured:!1}),i("Graphics",["series","fill"]).setAll({visible:!1,fillOpacity:0,position:"absolute",strokeWidth:0,strokeOpacity:0,isMeasured:!1}),i("Graphics",["line","series","legend","marker","stroke"]).setAll({draw:(n,h)=>{const u=h.parent;if(u){const l=u.height(),c=u.width();n.moveTo(0,l/2),n.lineTo(c,l/2)}}});{const n=i("Graphics",["line","series","legend","marker","stroke"]).states.create("disabled",{});F(n,"stroke",e,"disabled")}i("Graphics",["line","series","legend","marker","fill"]).setAll({draw:(n,h)=>{const u=h.parent;if(u){const l=u.height(),c=u.width();n.moveTo(0,0),n.lineTo(c,0),n.lineTo(c,l),n.lineTo(0,l),n.lineTo(0,0)}}});{const n=i("Graphics",["line","series","legend","marker","fill"]).states.create("disabled",{});F(n,"stroke",e,"disabled")}i("SmoothedXYLineSeries").setAll({tension:.5}),i("SmoothedXLineSeries").setAll({tension:.5}),i("SmoothedYLineSeries").setAll({tension:.5}),i("Candlestick").setAll({position:"absolute",isMeasured:!1,width:ee(50),height:ee(50),strokeWidth:1,strokeOpacity:1,cornerRadiusBL:0,cornerRadiusTL:0,cornerRadiusBR:0,cornerRadiusTR:0,fillOpacity:1,role:"figure"}),i("OHLC").setAll({width:ee(80),height:ee(80)}),i("CandlestickSeries").setAll({lowValueXGrouped:"low",lowValueYGrouped:"low",highValueXGrouped:"high",highValueYGrouped:"high",openValueXGrouped:"open",openValueYGrouped:"open",valueXGrouped:"close",valueYGrouped:"close"});{const n=i("Rectangle",["column","autocolor"]).states.create("riseFromOpen",{});F(n,"fill",e,"positive"),F(n,"stroke",e,"positive")}{const n=i("Rectangle",["column","autocolor"]).states.create("dropFromOpen",{});F(n,"fill",e,"negative"),F(n,"stroke",e,"negative")}i("Rectangle",["column","autocolor","pro"]).states.create("riseFromOpen",{fillOpacity:0}),i("Rectangle",["column","autocolor","pro"]).states.create("dropFromOpen",{fillOpacity:1});{const n=i("Rectangle",["column","autocolor","pro"]).states.create("riseFromPrevious",{});F(n,"fill",e,"positive"),F(n,"stroke",e,"positive")}{const n=i("Rectangle",["column","autocolor","pro"]).states.create("dropFromPrevious",{});F(n,"fill",e,"negative"),F(n,"stroke",e,"negative")}i("RoundedRectangle",["rangegrip"]).setAll({strokeOpacity:0,fillOpacity:0,strokeWidth:1,width:12,height:12});{const n=i("Graphics",["rangegrip","button","icon"]);n.setAll({interactive:!1,crisp:!0,strokeOpacity:.5,draw:h=>{h.moveTo(0,.5),h.lineTo(0,12.5),h.moveTo(2,.5),h.lineTo(2,12.5),h.moveTo(4,.5),h.lineTo(4,12.5)}}),F(n,"stroke",e,"secondaryButtonText")}i("Button",["rangegrip"]).setAll({draggable:!0,paddingTop:0,paddingBottom:0}),i("Button",["rangegrip","vertical"]).setAll({rotation:90,cursorOverStyle:"ns-resize",centerX:ge}),i("Button",["rangegrip","horizontal"]).setAll({cursorOverStyle:"ew-resize",centerX:ge}),i("Button",["rangegrip","vertical","left"]).setAll({centerY:S}),i("Button",["rangegrip","vertical","right"]).setAll({centerY:0}),i("Button",["rangegrip","horizontal","top"]).setAll({centerY:0}),i("Button",["rangegrip","horizontal","bottom"]).setAll({centerY:S})}}class Ae extends ze{constructor(){super(...arguments),Object.defineProperty(this,"xAxes",{enumerable:!0,configurable:!0,writable:!0,value:new Xe}),Object.defineProperty(this,"yAxes",{enumerable:!0,configurable:!0,writable:!0,value:new Xe}),Object.defineProperty(this,"topAxesContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.chartContainer.children.push(R.new(this._root,{width:S,layout:this._root.verticalLayout}))}),Object.defineProperty(this,"yAxesAndPlotContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.chartContainer.children.push(R.new(this._root,{width:S,height:S,layout:this._root.horizontalLayout}))}),Object.defineProperty(this,"bottomAxesContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.chartContainer.children.push(R.new(this._root,{width:S,layout:this._root.verticalLayout}))}),Object.defineProperty(this,"leftAxesContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.yAxesAndPlotContainer.children.push(R.new(this._root,{height:S,layout:this._root.horizontalLayout}))}),Object.defineProperty(this,"plotsContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.yAxesAndPlotContainer.children.push(R.new(this._root,{width:S,height:S,maskContent:!1}))}),Object.defineProperty(this,"plotContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.plotsContainer.children.push(R.new(this._root,{width:S,height:S}))}),Object.defineProperty(this,"topPlotContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.plotsContainer.children.push(R.new(this._root,{width:S,height:S}))}),Object.defineProperty(this,"gridContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.plotContainer.children.push(R.new(this._root,{width:S,height:S,isMeasured:!1}))}),Object.defineProperty(this,"topGridContainer",{enumerable:!0,configurable:!0,writable:!0,value:R.new(this._root,{width:S,height:S,isMeasured:!1})}),Object.defineProperty(this,"rightAxesContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.yAxesAndPlotContainer.children.push(R.new(this._root,{height:S,layout:this._root.horizontalLayout}))}),Object.defineProperty(this,"axisHeadersContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.plotContainer.children.push(R.new(this._root,{}))}),Object.defineProperty(this,"zoomOutButton",{enumerable:!0,configurable:!0,writable:!0,value:this.topPlotContainer.children.push(gt.new(this._root,{themeTags:["zoom"],icon:z.new(this._root,{themeTags:["button","icon"]})}))}),Object.defineProperty(this,"_movePoint",{enumerable:!0,configurable:!0,writable:!0,value:{x:0,y:0}}),Object.defineProperty(this,"_wheelDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_otherCharts",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_movePoints",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_downStartX",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_downEndX",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_downStartY",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_downEndY",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}_afterNew(){this._defaultThemes.push(mt.new(this._root)),super._afterNew(),this._disposers.push(this.xAxes),this._disposers.push(this.yAxes);const e=this._root;let t=this._root.verticalLayout;const i=this.zoomOutButton;i.events.on("click",()=>{this.zoomOut()}),i.hide(0),i.states.lookup("default").set("opacity",1),this.chartContainer.set("layout",t);const s=this.plotContainer;s.children.push(this.seriesContainer),this._disposers.push(this._processAxis(this.xAxes,this.bottomAxesContainer)),this._disposers.push(this._processAxis(this.yAxes,this.leftAxesContainer)),s.children.push(this.topGridContainer),s.children.push(this.bulletsContainer),s.set("interactive",!0),s.set("interactiveChildren",!1),s.set("background",ue.new(e,{themeTags:["plotbackground","xy","background"]}
1)),this._disposers.push(s.events.on("pointerdown",a=>{this._handlePlotDown(a)})),this._disposers.push(s.events.on("globalpointerup",a=>{this._handlePlotUp(a)})),this._disposers.push(s.events.on("globalpointermove",a=>{this._handlePlotMove(a)})),this._maskGrid(),this._setUpTouch()}_beforeChanged(){super._beforeChanged(),(this.isDirty("pinchZoomX")||this.isDirty("pinchZoomY")||this.get("panX")||this.get("panY"))&&this._setUpTouch()}_setUpTouch(){this.plotContainer._display.cancelTouch||(this.plotContainer._display.cancelTouch=!!(this.get("pinchZoomX")||this.get("pinchZoomY")||this.get("panX")||this.get("panY")))}_maskGrid(){this.gridContainer.set("maskContent",!0),this.topGridContainer.set("maskContent",!0)}_removeSeries(e){e._unstack(),e._posXDp&&e._posXDp.dispose(),e._posYDp&&e._posYDp.dispose(),e.set("baseAxis",void 0);const t=e.get("xAxis");t&&(me(t.series,e),t.markDirtyExtremes());const i=e.get("yAxis");i&&(me(i.series,e),i.markDirtyExtremes());const s=this.get("cursor");if(s){const a=s.get("snapToSeries");a&&me(a,e)}super._removeSeries(e)}handleWheel(e){const t=this.get("wheelX"),i=this.get("wheelY"),s=this.plotContainer,a=e.originalEvent;let o=!1;if(nt(a,this))o=!0;else return;const r=s.toLocal(e.point),n=this.get("wheelStep",.2),h=a.deltaY/100,u=a.deltaX/100,l=this.get("wheelZoomPositionX"),c=this.get("wheelZoomPositionY");(t==="zoomX"||t==="zoomXY")&&u!=0&&this.xAxes.each(d=>{if(d.get("zoomX")){let g=d.get("start"),m=d.get("end"),f=d.fixPosition(r.x/s.width());l!=null&&(f=l);let p=d.get("maxDeviation",0),b=Math.min(1+p,Math.max(-p,g-n*(m-g)*u*f)),_=Math.max(-p,Math.min(1+p,m+n*(m-g)*u*(1-f)));b==g&&_==m&&(o=!1),1/(_-b)<d.getPrivate("maxZoomFactor",1/0)/d.get("minZoomCount",1)?this._handleWheelAnimation(d.zoom(b,_)):o=!1}}),(i==="zoomX"||i==="zoomXY")&&h!=0&&this.xAxes.each(d=>{if(d.get("zoomX")){let g=d.get("start"),m=d.get("end"),f=d.fixPosition(r.x/s.width());l!=null&&(f=l);let p=d.get("maxDeviation",0),b=Math.min(1+p,Math.max(-p,g-n*(m-g)*h*f)),_=Math.max(-p,Math.min(1+p,m+n*(m-g)*h*(1-f)));b==g&&_==m&&(o=!1),1/(_-b)<d.getPrivate("maxZoomFactor",1/0)/d.get("minZoomCount",1)?this._handleWheelAnimation(d.zoom(b,_)):o=!1}}),(t==="zoomY"||t==="zoomXY")&&u!=0&&this.yAxes.each(d=>{if(d.get("zoomY")){let g=d.get("start"),m=d.get("end"),f=d.fixPosition(r.y/s.height());c!=null&&(f=c);let p=d.get("maxDeviation",0),b=Math.min(1+p,Math.max(-p,g-n*(m-g)*u*f)),_=Math.max(-p,Math.min(1+p,m+n*(m-g)*u*(1-f)));b==g&&_==m&&(o=!1),1/(_-b)<d.getPrivate("maxZoomFactor",1/0)/d.get("minZoomCount",1)?this._handleWheelAnimation(d.zoom(b,_)):o=!1}}),(i==="zoomY"||i==="zoomXY")&&h!=0&&this.yAxes.each(d=>{if(d.get("zoomY")){let g=d.get("start"),m=d.get("end"),f=d.fixPosition(r.y/s.height());c!=null&&(f=c);let p=d.get("maxDeviation",0),b=Math.min(1+p,Math.max(-p,g-n*(m-g)*h*f)),_=Math.max(-p,Math.min(1+p,m+n*(m-g)*h*(1-f)));b==g&&_==m&&(o=!1),1/(_-b)<d.getPrivate("maxZoomFactor",1/0)/d.get("minZoomCount",1)?this._handleWheelAnimation(d.zoom(b,_)):o=!1}}),(t==="panX"||t==="panXY")&&u!=0&&this.xAxes.each(d=>{if(d.get("panX")){let g=d.get("start"),m=d.get("end"),f=this._getWheelSign(d)*n*(m-g)*u,p=g+f,b=m+f,_=this._fixWheel(p,b);p=_[0],b=_[1],p==g&&b==m&&(o=!1),this._handleWheelAnimation(d.zoom(p,b))}}),(i==="panX"||i==="panXY")&&h!=0&&this.xAxes.each(d=>{if(d.get("panX")){let g=d.get("start"),m=d.get("end"),f=this._getWheelSign(d)*n*(m-g)*h,p=g+f,b=m+f,_=this._fixWheel(p,b);p=_[0],b=_[1],p==g&&b==m&&(o=!1),this._handleWheelAnimation(d.zoom(p,b))}}),(t==="panY"||t==="panXY")&&u!=0&&this.yAxes.each(d=>{if(d.get("panY")){let g=d.get("start"),m=d.get("end"),f=this._getWheelSign(d)*n*(m-g)*u,p=g+f,b=m+f,_=this._fixWheel(p,b);p=_[0],b=_[1],p==g&&b==m&&(o=!1),this._handleWheelAnimation(d.zoom(p,b))}}),(i==="panY"||i==="panXY")&&h!=0&&this.yAxes.each(d=>{if(d.get("panY")){let g=d.get("start"),m=d.get("end"),f=this._getWheelSign(d)*n*(m-g)*h,p=g-f,b=m-f,_=this._fixWheel(p,b);p=_[0],b=_[1],p==g&&b==m&&(o=!1),this._handleWheelAnimation(d.zoom(p,b))}}),o&&a.preventDefault()}_handleSetWheel(){const e=this.get("wheelX"),t=this.get("wheelY"),i=this.plotContainer;e!=="none"||t!=="none"?(this._wheelDp=i.events.on("wheel",s=>{const a=s.originalEvent;(e!=="none"&&Math.abs(a.deltaX)!=0||t!=="none"&&Math.abs(a.deltaY)!=0)&&this.handleWheel(s)}),this._disposers.push(this._wheelDp)):this._wheelDp&&this._wheelDp.dispose()}_getWheelSign(e){let t=1;return e.get("renderer").get("inversed")&&(t=-1),t}_fixWheel(e,t){const i=t-e;return e<0&&(e=0,t=e+i),t>1&&(t=1,e=t-i),[e,t]}_handlePlotDown(e){const t=e.originalEvent;if(t.button==2)return;const i=this.plotContainer;let s=i.toLocal(e.point);if((this.get("pinchZoomX")||this.get("pinchZoomY"))&&t.pointerId&&xe(i._downPoints).length>0){const o=this.xAxes.getIndex(0),r=this.yAxes.getIndex(0);o&&(this._downStartX=o.get("start",0),this._downEndX=o.get("end",1)),r&&(this._downStartY=r.get("start",0),this._downEndY=r.get("end",1))}if((this.get("panX")||this.get("panY"))&&s.x>=0&&s.y>=0&&s.x<=i.width()&&s.y<=this.height()){this._downPoint={x:t.clientX,y:t.clientY};const a=this.get("panX"),o=this.get("panY");a&&this.xAxes.each(n=>{n._panStart=n.get("start"),n._panEnd=n.get("end")}),o&&this.yAxes.each(n=>{n._panStart=n.get("start"),n._panEnd=n.get("end")});const r="panstarted";this.events.isEnabled(r)&&this.events.dispatch(r,{type:r,target:this,originalEvent:e.originalEvent})}}_handleWheelAnimation(e){e?e.events.on("stopped",()=>{this._dispatchWheelAnimation()}):this._dispatchWheelAnimation()}_dispatchWheelAnimation(){const e="wheelended";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this})}_handlePlotUp(e){const t=this._downPoint;if(t&&(this.get("panX")||this.get("panY"))){if(e.originalEvent.clientX==t.x&&e.originalEvent.clientY==t.y){const s="pancancelled";this.events.isEnabled(s)&&this.events.dispatch(s,{type:s,target:this,originalEvent:e.originalEvent})}const i="panended";this.events.isEnabled(i)&&this.events.dispatch(i,{type:i,target:this,originalEvent:e.originalEvent})}this._downPoint=void 0,this.xAxes.each(i=>{i._isPanning=!1}),this.yAxes.each(i=>{i._isPanning=!1})}_handlePlotMove(e){const t=this.plotContainer;if(this.get("pinchZoomX")||this.get("pinchZoomY")){const a=e.originalEvent.pointerId;if(a&&(this._movePoints[a]=e.point,xe(t._downPoints).length>1)){this._handlePinch();return}}let i=this._downPoint;
1if(i){i=t.toLocal(this._root.documentPointToRoot(i));let s=t.toLocal(e.point);const a=this.get("panX"),o=this.get("panY");if(a){let r=this.get("scrollbarX");r&&r.events.disableType("rangechanged"),this.xAxes.each(n=>{if(n.get("panX")){n._isPanning=!0;let h=n._panStart,u=n._panEnd,c=(u-h)*(i.x-s.x)/t.width();n.get("renderer").get("inversed")&&(c*=-1);let d=h+c,g=u+c;g-d<1+n.get("maxDeviation",1)*2&&(n.set("start",d),n.set("end",g))}}),r&&r.events.enableType("rangechanged")}if(o){let r=this.get("scrollbarY");r&&r.events.disableType("rangechanged"),this.yAxes.each(n=>{if(n.get("panY")){n._isPanning=!0;let h=n._panStart,u=n._panEnd,c=(u-h)*(i.y-s.y)/t.height();n.get("renderer").get("inversed")&&(c*=-1);let d=h-c,g=u-c;g-d<1+n.get("maxDeviation",1)*2&&(n.set("start",d),n.set("end",g))}}),r&&r.events.enableType("rangechanged")}}}_handlePinch(){const e=this.plotContainer;let t=0,i=[],s=[];if(re(e._downPoints,(a,o)=>{i[t]=o;let r=this._movePoints[a];r&&(s[t]=r),t++}),i.length>1&&s.length>1){const a=e.width(),o=e.height();let r=i[0],n=i[1],h=s[0],u=s[1];if(r&&n&&h&&u){if(h=e.toLocal(h),u=e.toLocal(u),r=e.toLocal(r),n=e.toLocal(n),this.get("pinchZoomX")){const l=this._downStartX,c=this._downEndX;if(l!=null&&c!=null){r.x>n.x&&([r,n]=[n,r],[h,u]=[u,h]);let d=l+r.x/a*(c-l),g=l+n.x/a*(c-l),m=l+h.x/a*(c-l),f=l+u.x/a*(c-l),p=Math.max(.001,g-d),b=Math.max(.001,f-m),_=p/b,x=l*_+d-m*_,k=c*_+g-f*_;this.xAxes.each(y=>{let A=y.fixPosition(x),D=y.fixPosition(k);y.zoom(A,D,0)})}}if(this.get("pinchZoomY")){const l=this._downStartY,c=this._downEndY;if(l!=null&&c!=null){r.y<n.y&&([r,n]=[n,r],[h,u]=[u,h]);let d=l+(1-r.y/o)*(c-l),g=l+(1-n.y/o)*(c-l),m=l+(1-h.y/o)*(c-l),f=l+(1-u.y/o)*(c-l),p=Math.max(.001,g-d),b=Math.max(.001,f-m),_=p/b,x=l*_+d-m*_,k=c*_+g-f*_;this.yAxes.each(y=>{let A=y.fixPosition(x),D=y.fixPosition(k);y.zoom(A,D,0)})}}}}}_handleCursorPosition(){const e=this.get("cursor");if(e){const t=e.getPrivate("point");let i=e.get("snapToSeries");if(e._downPoint&&(i=void 0),i&&t){const s=e.get("snapToSeriesBy"),a=[];T(i,n=>{if(!n.isHidden()&&!n.isHiding())if(s!="x!"&&s!="y!"){const h=n.startIndex(),u=n.endIndex();for(let l=h;l<u;l++){const c=n.dataItems[l];c&&!c.isHidden()&&a.push(c)}}else{const h=n.get("tooltipDataItem");h&&a.push(h)}});let o=1/0,r;if(T(a,n=>{const h=n.get("point");if(h){let u=0;s=="x"||s=="x!"?u=Math.abs(t.x-h.x):s=="y"||s=="y!"?u=Math.abs(t.y-h.y):u=Math.hypot(t.x-h.x,t.y-h.y),u<o&&(o=u,r=n)}}),T(i,n=>{const h=n.get("tooltip");h&&h._setDataItem(void 0)}),r){let n=r.component;n.showDataItemTooltip(r),n.setRaw("tooltipDataItem",r);const h=r.get("point");h&&e.handleMove(n.toGlobal({x:h.x-n.x(),y:h.y-n.y()}),!0)}}}}_updateCursor(){let e=this.get("cursor");e&&e.updateCursor()}_addCursor(e){this.plotContainer.children.push(e)}_prepareChildren(){if(super._prepareChildren(),this.series.each(e=>{this._colorize(e)}),(this.isDirty("wheelX")||this.isDirty("wheelY"))&&this._handleSetWheel(),this.isDirty("cursor")){const e=this._prevSettings.cursor,t=this.get("cursor");t!==e&&(this._disposeProperty("cursor"),e&&e.dispose(),t&&(t._setChart(this),this._addCursor(t),this._pushPropertyDisposer("cursor",t.events.on("selectended",()=>{this._handleCursorSelectEnd()}))),this._prevSettings.cursor=t)}if(this.isDirty("scrollbarX")){const e=this._prevSettings.scrollbarX,t=this.get("scrollbarX");t!==e&&(this._disposeProperty("scrollbarX"),e&&e.dispose(),t&&(t.parent||this.topAxesContainer.children.push(t),this._pushPropertyDisposer("scrollbarX",t.events.on("rangechanged",i=>{this._handleScrollbar(this.xAxes,i.start,i.end,i.grip)})),this._pushPropertyDisposer("scrollbarX",t.events.on("released",()=>{this.xAxes.each(i=>{i.get("zoomable")&&this._handleAxisSelection(i)})})),t.setPrivate("positionTextFunction",i=>{const s=this.xAxes.getIndex(0);return s&&s.getTooltipText(i,!1)||""})),this._prevSettings.scrollbarX=t)}if(this.isDirty("scrollbarY")){const e=this._prevSettings.scrollbarY,t=this.get("scrollbarY");t!==e&&(this._disposeProperty("scrollbarY"),e&&e.dispose(),t&&(t.parent||this.rightAxesContainer.children.push(t),this._pushPropertyDisposer("scrollbarY",t.events.on("rangechanged",i=>{this._handleScrollbar(this.yAxes,i.start,i.end,i.grip)})),this._pushPropertyDisposer("scrollbarY",t.events.on("released",()=>{this.yAxes.each(i=>{i.get("zoomable")&&this._handleAxisSelection(i)})})),t.setPrivate("positionTextFunction",i=>{const s=this.yAxes.getIndex(0);return s&&s.getTooltipText(i,!1)||""})),this._prevSettings.scrollbarY=t)}this._handleZoomOut()}_processSeries(e){super._processSeries(e);const t=e.get("xAxis"),i=e.get("yAxis");Le(t.series,e),Le(i.series,e),e._posXDp=e.addDisposer(t.events.on("positionchanged",()=>{e._fixPosition()})),e._posXDp=e.addDisposer(i.events.on("positionchanged",()=>{e._fixPosition()}
1)),e.get("baseAxis")||(i.isType("CategoryAxis")||i.isType("DateAxis")?e.set("baseAxis",i):e.set("baseAxis",t)),e.get("stacked")&&(e._markDirtyKey("stacked"),T(e.dataItems,s=>{s.set("stackToItemY",void 0),s.set("stackToItemX",void 0)})),e._markDirtyAxes(),i.markDirtyExtremes(),t.markDirtyExtremes(),t._seriesAdded=!0,i._seriesAdded=!0,this._colorize(e)}_colorize(e){const t=this.get("colors");if(t&&e.get("fill")==null){const s=t.next();e._setSoft("stroke",s),e._setSoft("fill",s)}const i=this.get("patterns");if(i&&e.get("fillPattern")==null){const s=i.next();e._setSoft("fillPattern",s)}}_handleCursorSelectEnd(){const e=this.get("cursor"),t=e.get("behavior"),i=e.getPrivate("downPositionX",0),s=e.getPrivate("downPositionY",0),a=Math.min(1,Math.max(0,e.getPrivate("positionX",.5))),o=Math.min(1,Math.max(0,e.getPrivate("positionY",.5)));this.xAxes.each(r=>{if(t==="zoomX"||t==="zoomXY"){let n=r.toAxisPosition(i),h=r.toAxisPosition(a);r.zoom(n,h)}r.setPrivate("updateScrollbar",!0)}),this.yAxes.each(r=>{if(t==="zoomY"||t==="zoomXY"){let n=r.toAxisPosition(s),h=r.toAxisPosition(o);r.zoom(n,h)}r.setPrivate("updateScrollbar",!0)})}_handleScrollbar(e,t,i,s){e.each(a=>{let o=a.fixPosition(t),r=a.fixPosition(i),n=a.zoom(o,r,void 0,s);const h="updateScrollbar";a.setPrivateRaw(h,!1),n?n.events.on("stopped",()=>{a.setPrivateRaw(h,!0)}):a.setPrivateRaw(h,!0)})}_processAxis(e,t){return e.events.onAll(i=>{if(i.type==="clear")T(i.oldValues,s=>{this._removeAxis(s)});else if(i.type==="push")t.children.push(i.newValue),i.newValue.processChart(this);else if(i.type==="setIndex")t.children.setIndex(i.index,i.newValue),i.newValue.processChart(this);else if(i.type==="insertIndex")t.children.insertIndex(i.index,i.newValue),i.newValue.processChart(this);else if(i.type==="removeIndex")this._removeAxis(i.oldValue);else if(i.type==="moveIndex")t.children.moveValue(i.value,i.newIndex),i.value.processChart(this);else throw new Error("Unknown IListEvent type")})}_removeAxis(e){if(!e.isDisposed()){const t=e.parent;t&&t.children.removeValue(e);const i=e.gridContainer,s=i.parent;s&&s.children.removeValue(i);const a=e.topGridContainer,o=a.parent;o&&o.children.removeValue(a)}}_updateChartLayout(){const e=this.leftAxesContainer.width(),t=this.rightAxesContainer.width(),i=this.bottomAxesContainer;i.set("paddingLeft",e),i.set("paddingRight",t);const s=this.topAxesContainer;s.set("paddingLeft",e),s.set("paddingRight",t)}processAxis(e){var t=this.get("cursor");t&&(this.addDisposer(e.on("start",()=>{this._updateCursor()})),this.addDisposer(e.on("end",()=>{this._updateCursor()})))}_handleAxisSelection(e,t){let i=e.fixPosition(e.get("start",0)),s=e.fixPosition(e.get("end",1));if(i>s&&([i,s]=[s,i]),this.xAxes.indexOf(e)!=-1){if(t||e.getPrivate("updateScrollbar")){let a=this.get("scrollbarX");a&&(!a.getPrivate("isBusy")||t)&&(a.setRaw("start",i),a.setRaw("end",s),a.updateGrips())}}else if(this.yAxes.indexOf(e)!=-1&&(t||e.getPrivate("updateScrollbar"))){let a=this.get("scrollbarY");a&&(!a.getPrivate("isBusy")||t)&&(a.setRaw("start",i),a.setRaw("end",s),a.updateGrips())}this._handleZoomOut()}_handleZoomOut(){let e=this.zoomOutButton;if(e&&e.parent){let t=!1;this.xAxes.each(i=>{i.get("zoomOut",!0)&&(I(i.get("start",0),5)!=0||I(i.get("end",1),5)!=1)&&(t=!0)}),this.yAxes.each(i=>{i.get("zoomOut",!0)&&(I(i.get("start",0),5)!=0||I(i.get("end",1),5)!=1)&&(t=!0)}),t?e.isHidden()&&e.show():e.hide()}}inPlot(e){const t=this.plotContainer,i=this.getPrivate("otherCharts",this._otherCharts),s=t.toGlobal(e);if(e.x>=-.5&&e.y>=-.5&&e.x<=t.width()+.5&&e.y<=t.height()+.5)return!0;if(i)for(let a=i.length-1;a>=0;a--){const o=i[a];if(o!=this){const r=o.plotContainer,n=this._root.rootPointToDocument(s),h=o._root.documentPointToRoot(n),u=r.toLocal(h);if(u.x>=-.1&&u.y>=-.1&&u.x<=r.width()+.1&&u.y<=r.height()+.1)return!0}}return!1}arrangeTooltips(){const e=this.plotContainer,t=e.width(),i=e.height();let s=this.height();const a=this._root.tooltipContainer.get("layerMargin");a&&a.bottom>s&&(s=a.bottom);let o=e._display.toGlobal({x:0,y:0}),r=e._display.toGlobal({x:t,y:i});const n=[];let h=0,u=1/0,l=this._movePoint,c=this.get("maxTooltipDistance"),d=this.get("maxTooltipDistanceBy","xy"),g,m;v(c)&&this.series.each(p=>{if(!p.isHidden()){const b=p.get("tooltip");if(b){let _=b.get("pointTo");if(_){let x=Math.hypot(l.x-_.x,l.y-_.y);
1d=="x"?x=Math.abs(l.x-_.x):d=="y"&&(x=Math.abs(l.y-_.y)),x<u&&(u=x,g=p,m=_)}}}});const f=[];if(this.series.each(p=>{const b=p.get("tooltip");if(b&&!b.get("forceHidden")){let _=!1,x=b.get("pointTo");if(x){if(c>=0){let k=b.get("pointTo");if(k&&m&&p!=g){let y=Math.hypot(m.x-k.x,m.y-k.y);d=="x"?y=Math.abs(m.x-k.x):d=="y"&&(y=Math.abs(m.y-k.y)),y>c&&(_=!0)}}else c==-1&&p!=g&&(_=!0);!this.inPlot(this._tooltipToLocal(x))||!b.dataItem?_=!0:_||(h+=x.y),_||p.isHidden()||p.isHiding()?b.hide(0):(b.show(),n.push(b),f.push(p))}}}),this.setPrivate("tooltipSeries",f),this.get("arrangeTooltips")){let p=0,b=0;const _=this._root.tooltipContainer,x=n.length;if(h/x>i/2+o.y){n.sort((A,D)=>Oe(D.get("pointTo").y,A.get("pointTo").y));let y=r.y;if(T(n,A=>{let D=A.height();b++,p+=D;let w=A.get("centerY");w instanceof ie&&(D*=w.value),D+=A.get("marginBottom",0),A.set("bounds",{left:o.x,top:o.y,right:r.x,bottom:y}),A.setPrivate("customData",{left:o.x,top:o.y,right:r.x,bottom:y}),y=Math.min(y-D,A._fy-D),A.parent==_&&_.children.moveValue(A,0)}),y<0){n.reverse();let A=y;T(n,D=>{b++;let w=D.get("bounds");if(w){let M=w.top-y,C=w.bottom-y;M<A&&(M=A,C=M+D.height()),D.set("bounds",{left:w.left,top:M,right:w.right,bottom:C}),A=w.bottom-y+D.get("marginBottom",0)}})}}else{n.reverse(),n.sort((A,D)=>Oe(A.get("pointTo").y,D.get("pointTo").y));let y=0;if(T(n,A=>{b++;let D=A.height();p+=D;let w=A.get("centerY");w instanceof ie&&(D*=w.value),D+=A.get("marginBottom",0),A.set("bounds",{left:o.x,top:y,right:r.x,bottom:Math.max(o.y+s,y+D)}),A.parent==_&&_.children.moveValue(A,0),y=Math.max(y+D,A._fy+D)}),y>s){n.reverse();let A=s;T(n,D=>{b++;let w=D.get("bounds");if(w){let M=w.top-(s-y),C=w.bottom-(s-y);C>A&&(C=A,M=C-D.height()),D.set("bounds",{left:w.left,top:M,right:w.right,bottom:C}),A=C-D.height()-D.get("marginBottom",0)}})}}p==0&&b>0&&this._disposers.push(this.root.events.once("frameended",()=>{this.arrangeTooltips()}))}}_tooltipToLocal(e){return this.plotContainer.toLocal(e)}zoomOut(){this.xAxes.each(e=>{e.get("zoomOut",!0)&&(e.setPrivate("updateScrollbar",!0),e.zoom(0,1))}),this.yAxes.each(e=>{e.get("zoomOut",!0)&&(e.setPrivate("updateScrollbar",!0),e.zoom(0,1))})}_dispose(){super._dispose();const e=this.get("cursor");e&&e.dispose()}}Object.defineProperty(Ae,"className",{enumerable:!0,configurable:!0,writable:!0,value:"XYChart"});Object.defineProperty(Ae,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:ze.classNames.concat([Ae.className])});class se extends z{_beforeChanged(){super._beforeChanged(),(this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&(this._clear=!0)}}Object.defineProperty(se,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Grid"});Object.defineProperty(se,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:z.classNames.concat([se.className])});class De extends R{constructor(){super(...arguments),Object.defineProperty(this,"_alwaysShow",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"lineX",{enumerable:!0,configurable:!0,writable:!0,value:this.children.push(se.new(this._root,{themeTags:["x"]}))}),Object.defineProperty(this,"lineY",{enumerable:!0,configurable:!0,writable:!0,value:this.children.push(se.new(this._root,{themeTags:["y"]}))}),Object.defineProperty(this,"selection",{enumerable:!0,configurable:!0,writable:!0,value:this.children.push(z.new(this._root,{themeTags:["selection","cursor"],layer:30}))}),Object.defineProperty(this,"_movePoint",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_lastPoint",{enumerable:!0,configurable:!0,writable:!0,value:{x:0,y:0}}),Object.defineProperty(this,"_lastPoint2",{enumerable:!0,configurable:!0,writable:!0,value:{x:0,y:0}}),Object.defineProperty(this,"_tooltipX",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_tooltipY",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"chart",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_toX",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_toY",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}_afterNew(){this._settings.themeTags=j(this._settings.themeTags,["xy","cursor"]),super._afterNew(),this.setAll({width:S,height:S,isMeasured:!0,position:"absolute"}),this.states.create("hidden",{visible:!0,opacity:0}
1),this._drawLines(),this.setPrivateRaw("visible",!1),this._disposers.push(this.setTimeout(()=>{this.setPrivate("visible",!0)},500)),this._disposers.push(this.lineX.events.on("positionchanged",()=>{this._handleXLine()})),this._disposers.push(this.lineY.events.on("positionchanged",()=>{this._handleYLine()})),this._disposers.push(this.lineX.events.on("focus",()=>this._handleLineFocus())),this._disposers.push(this.lineX.events.on("blur",()=>this._handleLineBlur())),this._disposers.push(this.lineY.events.on("focus",()=>this._handleLineFocus())),this._disposers.push(this.lineY.events.on("blur",()=>this._handleLineBlur())),Fe("keyboardevents")&&this._disposers.push(ot(document,"keydown",e=>{this._handleLineMove(lt(e),e.ctrlKey)}))}_setUpTouch(){const e=this.chart;e&&(e.plotContainer._display.cancelTouch=this.get("behavior")!="none")}_handleXLine(){let e=this.lineX.x(),t=!0;(e<0||e>this.width())&&(t=!1),this.lineX.setPrivate("visible",t)}_handleYLine(){let e=this.lineY.y(),t=!0;(e<0||e>this.height())&&(t=!1),this.lineY.setPrivate("visible",t)}_handleLineMove(e,t){let i="";const s=this.chart;let a;if(s&&s.xAxes.length){this._root.focused(this.lineX)?(i="positionX",a=s.xAxes.getIndex(0)):this._root.focused(this.lineY)&&(a=s.yAxes.getIndex(0),i="positionY");let o=1;if(t&&(o=5),a){let r=a.get("renderer").get("inversed",!1),n;e=="ArrowRight"||e=="ArrowDown"?n=1:e=="ArrowLeft"||e=="ArrowUp"?n=-1:e=="Tab"&&(n=0),n!=null&&(r&&(n*=-1),this.set(i,a.nextPosition(n*o)))}}}_handleLineFocus(){this._alwaysShow=this.get("alwaysShow",!1),this.setAll({positionX:this.getPrivate("positionX",0),positionY:this.getPrivate("positionY",0),alwaysShow:!0}),this._handleLineMove("Tab")}_handleLineBlur(){(this.lineX.isFocus()||this.lineY.isFocus())&&this.setAll({positionX:void 0,positionY:void 0,alwaysShow:this._alwaysShow})}_prepareChildren(){if(super._prepareChildren(),this.isDirty("xAxis")){this._tooltipX=!1;const e=this.get("xAxis");if(e){const t=e.get("tooltip");t&&(this._tooltipX=!0,this._disposers.push(t.on("pointTo",()=>{this._updateXLine(t)})))}}if(this.isDirty("yAxis")){this._tooltipY=!1;const e=this.get("yAxis");if(e){const t=e.get("tooltip");t&&(this._tooltipY=!0,this._disposers.push(t.on("pointTo",()=>{this._updateYLine(t)})))}}}_handleSyncWith(){const e=this.chart;if(e){const t=this.get("syncWith"),i=[];t&&T(t,s=>{const a=s.chart;a&&i.push(a)}),e._otherCharts=i}}_updateChildren(){if(super._updateChildren(),this._handleSyncWith(),this.isDirty("positionX")||this.isDirty("positionY")){const e=this.get("positionX"),t=this.get("positionY");e==null&&t==null?this.hide(0):(this._movePoint=this.toGlobal(this._getPoint(this.get("positionX",0),this.get("positionY",0))),this.handleMove())}}_updateXLine(e){let t=I(this._display.toLocal(e.get("pointTo",{x:0,y:0})).x,3);this._toX!=t&&(this.lineX.animate({key:"x",to:t,duration:e.get("animationDuration",0),easing:e.get("animationEasing")}),this._toX=t)}_updateYLine(e){let t=I(this._display.toLocal(e.get("pointTo",{x:0,y:0})).y,3);this._toY!=t&&(this.lineY.animate({key:"y",to:t,duration:e.get("animationDuration",0),easing:e.get("animationEasing")}),this._toY=t)}_drawLines(){this.lineX.set("draw",e=>{e.moveTo(0,0),e.lineTo(0,this.height())}),this.lineY.set("draw",e=>{e.moveTo(0,0),e.lineTo(this.width(),0)})}updateCursor(){this.get("alwaysShow")&&(this._movePoint=this.toGlobal(this._getPoint(this.get("positionX",0),this.get("positionY",0)))),this.handleMove()}_setChart(e){this.chart=e,this._handleSyncWith();const t=e.plotContainer;this.events.on("boundschanged",()=>{this._disposers.push(this.setTimeout(()=>{this.updateCursor()},50))}),Fe("touchevents")&&(this._disposers.push(t.events.on("click",s=>{rt(s.originalEvent)&&this._handleMove(s)})),this._setUpTouch()),this._disposers.push(t.events.on("pointerdown",s=>{this._handleCursorDown(s)})),this._disposers.push(t.events.on("globalpointerup",s=>{this._handleCursorUp(s),!s.native&&!this.isHidden()&&this._handleMove(s)})),this._disposers.push(t.events.on("globalpointermove",s=>{!this.get("syncWith")&&xe(t._downPoints).length==0&&!s.native&&this.isHidden()||(this._handleMove(s),Math.hypot(this._lastPoint2.x-s.point.x,this._lastPoint2.y-s.point.y)>1&&(this._handleLineBlur(),this._lastPoint2=s.point))}));const i=this.parent;i&&i.children.moveValue(this.selection)}_inPlot(e){const t=this.chart;return t?t.inPlot(e):!1}_handleCursorDown(e){if(e.originalEvent.button==2)return;const t=e.point;let i=this._display.toLocal(t);const s=this.chart;if(this.selection.set("draw",()=>{}
1),s&&this._inPlot(i)){if(this._downPoint=i,this.get("behavior")!="none"){this.selection.show();const r="selectstarted";this.events.isEnabled(r)&&this.events.dispatch(r,{type:r,target:this,originalEvent:e.originalEvent})}let a=this._getPosition(i).x,o=this._getPosition(i).y;this.setPrivate("downPositionX",a),this.setPrivate("downPositionY",o)}}_handleCursorUp(e){if(this._downPoint){const t=this.get("behavior","none");if(t!="none"){t.charAt(0)==="z"&&this.selection.hide();const i=e.point;let s=this._display.toLocal(i);const a=this._downPoint,o=this.get("moveThreshold",1);if(s&&a){let r=!1;if((t==="zoomX"||t==="zoomXY"||t==="selectX"||t==="selectXY")&&Math.abs(s.x-a.x)>o&&(r=!0),(t==="zoomY"||t==="zoomXY"||t==="selectY"||t==="selectXY")&&Math.abs(s.y-a.y)>o&&(r=!0),r){const n="selectended";this.events.isEnabled(n)&&this.events.dispatch(n,{type:n,target:this,originalEvent:e.originalEvent})}else{const n="selectcancelled";this.events.isEnabled(n)&&this.events.dispatch(n,{type:n,target:this,originalEvent:e.originalEvent})}}}}this._downPoint=void 0}_handleMove(e){if(this.getPrivate("visible")){const t=this.chart;if(t&&xe(t.plotContainer._downPoints).length>1){this.set("forceHidden",!0);return}else this.set("forceHidden",!1);const i=e.point,s=this._lastPoint;if(Math.round(s.x)===Math.round(i.x)&&Math.round(s.y)===Math.round(i.y))return;this._lastPoint=i,this.setPrivate("lastPoint",i),this.handleMove({x:i.x,y:i.y},!1,e.originalEvent)}}_getPosition(e){return{x:e.x/this.width(),y:e.y/this.height()}}handleMove(e,t,i){e||(e=this._movePoint);const s=this.get("alwaysShow");if(!e){this.hide(0);return}this._movePoint=e;let a=this._display.toLocal(e),o=this.chart;if(o&&(this._inPlot(a)||this._downPoint)){o._movePoint=e,this.isHidden()&&(this.show(),this.get("behavior","").charAt(0)=="z"&&this.selection.set("draw",()=>{}));let r=a.x,n=a.y,h=this._getPosition(a);this.setPrivate("point",a);let u=this.get("snapToSeries");this._downPoint&&(u=void 0);let l=this.get("positionX"),c=h.x;v(l)&&(c=l);let d=this.get("positionY"),g=h.y;v(d)&&(g=d),this.setPrivate("positionX",c),this.setPrivate("positionY",g);const m=this._getPoint(c,g);if(r=m.x,n=m.y,o.xAxes.each(f=>{f._handleCursorPosition(c,u),s&&f.handleCursorShow()}),o.yAxes.each(f=>{f._handleCursorPosition(g,u),s&&f.handleCursorShow()}),!t){o._handleCursorPosition();const f="cursormoved";this.events.isEnabled(f)&&this.events.dispatch(f,{type:f,target:this,point:e,originalEvent:i})}this._updateLines(r,n),o.arrangeTooltips()}else if(!this._downPoint&&!s){this.hide(0);const r="cursorhidden";this.events.isEnabled(r)&&this.events.dispatch(r,{type:r,target:this})}this._downPoint&&this.get("behavior")!="none"&&this._updateSelection(a)}_getPoint(e,t){return{x:this.width()*e,y:this.height()*t}}_updateLines(e,t){this._tooltipX||this.lineX.set("x",e),this._tooltipY||this.lineY.set("y",t),this._drawLines()}_updateSelection(e){const t=this.selection,i=this.get("behavior"),s=this.width(),a=this.height();e.x<0&&(e.x=0),e.x>s&&(e.x=s),e.y<0&&(e.y=0),e.y>a&&(e.y=a),t.set("draw",o=>{const r=this._downPoint;r&&(i==="zoomXY"||i==="selectXY"?(o.moveTo(r.x,r.y),o.lineTo(r.x,e.y),o.lineTo(e.x,e.y),o.lineTo(e.x,r.y),o.lineTo(r.x,r.y)):i==="zoomX"||i==="selectX"?(o.moveTo(r.x,0),o.lineTo(r.x,a),o.lineTo(e.x,a),o.lineTo(e.x,0),o.lineTo(r.x,0)):(i==="zoomY"||i==="selectY")&&(o.moveTo(0,r.y),o.lineTo(s,r.y),o.lineTo(s,e.y),o.lineTo(0,e.y),o.lineTo(0,r.y)))})}_onHide(){if(this.isHidden()){let e=this.chart;e&&(e.xAxes.each(t=>{t.handleCursorHide()}),e.yAxes.each(t=>{t.handleCursorHide()}),e.series.each(t=>{t.handleCursorHide()}))}super._onHide()}_onShow(){if(!this.isHidden()){let e=this.chart;e&&(e.xAxes.each(t=>{t.handleCursorShow()}),e.yAxes.each(t=>{t.handleCursorShow()}))}super._onShow()}_dispose(){super._dispose(),this.selection.dispose()}}Object.defineProperty(De,"className",{enumerable:!0,configurable:!0,writable:!0,value:"XYCursor"});Object.defineProperty(De,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:R.classNames.concat([De.className])});function xt(P,e){return P==null?e:e==null?P:e<P?e:P}function _t(P,e){return P==null?e:e==null||P>e?P:e}class Z extends Ne{constructor(){super(...arguments),Object.defineProperty(this,"_xField",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_yField",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_xOpenField",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_yOpenField",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_xLowField",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_xHighField",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_yLowField",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_yHighField",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_axesDirty",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_stackDirty",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_selectionProcessed",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_dataSets",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_mainContainerMask",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_x",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_y",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_bullets",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"mainContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.children.push(R.new(this._root,{}))}),Object.defineProperty(this,"axisRanges",{enumerable:!0,configurable:!0,writable:!0,value:new Ue}),Object.defineProperty(this,"_skipped",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_couldStackTo",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_reallyStackedTo",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_stackedSeries",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_aLocationX0",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_aLocationX1",{enumerable:!0,configurable:!0,writable:!0,value:1}),Object.defineProperty(this,"_aLocationY0",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_aLocationY1",{enumerable:!0,configurable:!0,writable:!0,value:1}),Object.defineProperty(this,"_showBullets",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"valueXFields",{enumerable:!0,configurable:!0,writable:!0,value:["valueX","openValueX","lowValueX","highValueX"]}),Object.defineProperty(this,"valueYFields",{enumerable:!0,configurable:!0,writable:!0,value:["valueY","openValueY","lowValueY","highValueY"]}),Object.defineProperty(this,"_valueXFields",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_valueYFields",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_valueXShowFields",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_valueYShowFields",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"__valueXShowFields",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"__valueYShowFields",{enumerable:!0,configurable:!0,writable:!0,value:void 0}
1),Object.defineProperty(this,"_emptyDataItem",{enumerable:!0,configurable:!0,writable:!0,value:new he(this,void 0,{})}),Object.defineProperty(this,"_dataSetId",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_tooltipFieldX",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_tooltipFieldY",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_posXDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_posYDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}_afterNew(){this.fields.push("categoryX","categoryY","openCategoryX","openCategoryY"),this.valueFields.push("valueX","valueY","openValueX","openValueY","lowValueX","lowValueY","highValueX","highValueY"),this._setRawDefault("vcx",1),this._setRawDefault("vcy",1),this._setRawDefault("valueXShow","valueXWorking"),this._setRawDefault("valueYShow","valueYWorking"),this._setRawDefault("openValueXShow","openValueXWorking"),this._setRawDefault("openValueYShow","openValueYWorking"),this._setRawDefault("lowValueXShow","lowValueXWorking"),this._setRawDefault("lowValueYShow","lowValueYWorking"),this._setRawDefault("highValueXShow","highValueXWorking"),this._setRawDefault("highValueYShow","highValueYWorking"),this._setRawDefault("lowValueXGrouped","low"),this._setRawDefault("lowValueYGrouped","low"),this._setRawDefault("highValueXGrouped","high"),this._setRawDefault("highValueYGrouped","high"),super._afterNew(),this.set("maskContent",!0),this._disposers.push(this.axisRanges.events.onAll(e=>{if(e.type==="clear")T(e.oldValues,t=>{this._removeAxisRange(t)});else if(e.type==="push")this._processAxisRange(e.newValue);else if(e.type==="setIndex")this._processAxisRange(e.newValue);else if(e.type==="insertIndex")this._processAxisRange(e.newValue);else if(e.type==="removeIndex")this._removeAxisRange(e.oldValue);else if(e.type==="moveIndex")this._processAxisRange(e.value);else throw new Error("Unknown IStreamEvent type")})),this.states.create("hidden",{opacity:1,visible:!1}),this.onPrivate("startIndex",()=>{this.root.events.once("frameended",()=>{this.updateLegendValue()})}),this.onPrivate("endIndex",()=>{this.root.events.once("frameended",()=>{this.updateLegendValue()})}),this._makeFieldNames()}_processAxisRange(e){const t=R.new(this._root,{});e.container=t,this.children.push(t),e.series=this;const i=e.axisDataItem;i.setRaw("isRange",!0);const s=i.component;if(s){s._processAxisRange(i,["range","series"]);const a=i.get("bullet");if(a){const r=a.get("sprite");r&&r.setPrivate("visible",!1)}const o=i.get("axisFill");o&&t.set("mask",o),s._seriesAxisRanges.push(i)}}_onDataClear(){super._onDataClear(),re(this._dataSets,(e,t)=>{T(t,i=>{i.dispose()}),t.length=0})}_removeAxisRange(e){const t=e.axisDataItem,i=t.component;t.dispose(),me(i._seriesAxisRanges,t);const s=e.container;s&&s.dispose()}_updateFields(){super._updateFields(),this._valueXFields=[],this._valueYFields=[],this._valueXShowFields=[],this._valueYShowFields=[],this.__valueXShowFields=[],this.__valueYShowFields=[],this.valueXFields&&T(this.valueXFields,e=>{if(this.get(e+"Field")){this._valueXFields.push(e);let i=this.get(e+"Show");this.__valueXShowFields.push(i),i.indexOf("Working")!=-1?this._valueXShowFields.push(i.split("Working")[0]):this._valueXShowFields.push(i)}}),this.valueYFields&&T(this.valueYFields,e=>{if(this.get(e+"Field")){this._valueYFields.push(e);let i=this.get(e+"Show");this.__valueYShowFields.push(i),i.indexOf("Working")!=-1?this._valueYShowFields.push(i.split("Working")[0]):this._valueYShowFields.push(i)}})}_dispose(){super._dispose(),this._bullets={};const e=this.chart;e&&e.series.removeValue(this),Ie(this.get("xAxis").series,this),Ie(this.get("yAxis").series,this)}_min(e,t){let i=xt(this.getPrivate(e),t);this.setPrivate(e,i)}_max(e,t){let i=_t(this.getPrivate(e),t);this.setPrivate(e,i)}_shouldMakeBullet(e){const t=this.get("xAxis"),i=this.get("yAxis"),s=this.get("baseAxis");if(!t.inited||!i.inited)return!1;const a=this.get("minBulletDistance",0);if(a>0){let o=this.startIndex(),n=this.endIndex()-o;if(t==s){if(t.get("renderer").axisLength()/n<a/5)return!1}else if(i==s&&i.get("renderer").axisLength()/n<a/5)return!1}return e.get(this._xField)!=null&&e.get(this._yField)!=null}_makeFieldNames(){const e=this.get("xAxis"),t=this.get("yAxis"),i=e.getPrivate("name"),s=Re(i),a=t.getPrivate("name"),o=Re(a),r=e.get("renderer").getPrivate("letter"),n=t.get("renderer").getPrivate("letter"),h="open",u="low",l="high",c="Show";e.className==="ValueAxis"?(this._xField=this.get(i+r+c),this._xOpenField=this.get(h+s+r+c),this._xLowField=this.get(u+s+r+c),this._xHighField=this.get(l+s+r+c)):(this._xField=i+r,this._xOpenField=h+s+r,this._xLowField=u+s+r,this._xHighField=l+s+r),t.className==="ValueAxis"?(this._yField=this.get(a+n+c),this._yOpenField=this.get(h+o+n+c),this._yLowField=this.get(u+o+n+c),this._yHighField=this.get(l+o+n+c)):(this._yField=a+n,this._yOpenField=h+o+n,this._yLowField=u+o+n,this._yHighField=l+o+n)}_fixVC(){const e=this.get("xAxis"),t=this.get("yAxis"),i=this.get("baseAxis"),s=this.states.lookup("hidden"),a=this.get("sequencedInterpolation");if(s){let o=0;a&&(o=.999999999999),e===i?s.set("vcy",o):(t===i||s.set("vcy",o),s.set("vcx",o))}}_handleMaskBullets(){this.isDirty("maskBullets")&&this.bulletsContainer.set("maskContent",this.get("maskBullets"))}_fixPosition(){const e=this.get("xAxis"),t=this.get("yAxis");this.set("x",e.x()-_e(e.get("centerX",0),e.width())-e.parent.get("paddingLeft",0)),this.set("y",t.y()-_e(t.get("centerY",0),t.height())-t.parent.get("paddingTop",0)),this.bulletsContainer.set("y",this.y()),this.bulletsContainer.set("x",this.x())}_prepareChildren(){super._prepareChildren(),this._bullets={},(this.isDirty("valueYShow")||this.isDirty("valueXShow")||this.isDirty("openValueYShow")||this.isDirty("openValueXShow")||this.isDirty("lowValueYShow")||this.isDirty("lowValueXShow")||this.isDirty("highValueYShow")||this.isDirty("highValueXShow"))&&(this._updateFields(),this._makeFieldNames(),this._valuesDirt
1y=!0),(this.isDirty("xAxis")||this.isDirty("yAxis"))&&(this._valuesDirty=!0),this.set("width",this.get("xAxis").width()),this.set("height",this.get("yAxis").height()),this._handleMaskBullets();const e=this.get("xAxis"),t=this.get("yAxis"),i=this.get("baseAxis"),s=this.get("tooltipPositionX");let a;switch(s){case"open":a=this._xOpenField;break;case"low":a=this._xLowField;break;case"high":a=this._xHighField;break;default:a=this._xField}this._tooltipFieldX=a;const o=this.get("tooltipPositionY");let r;switch(o){case"open":r=this._yOpenField;break;case"low":r=this._yLowField;break;case"high":r=this._yHighField;break;default:r=this._yField}this._tooltipFieldY=r,this.isDirty("baseAxis")&&this._fixVC(),this._fixPosition();const n=this.get("stacked");if(this.isDirty("stacked")&&(n?this._valuesDirty&&!this._dataProcessed||this._stack():this._unstack()),this._valuesDirty&&!this._dataProcessed&&(this._dataProcessed=!0,n&&this._stack(),T(this.dataItems,h=>{T(this._valueXShowFields,u=>{let l=h.get(u);l!=null&&(n&&(l+=this.getStackedXValue(h,u)),this._min("minX",l),this._max("maxX",l))}),T(this._valueYShowFields,u=>{let l=h.get(u);l!=null&&(n&&(l+=this.getStackedYValue(h,u)),this._min("minY",l),this._max("maxY",l))}),e.processSeriesDataItem(h,this._valueXFields),t.processSeriesDataItem(h,this._valueYFields)}),e._seriesValuesDirty=!0,t._seriesValuesDirty=!0,this.get("ignoreMinMax")||((this.isPrivateDirty("minX")||this.isPrivateDirty("maxX"))&&e.markDirtyExtremes(),(this.isPrivateDirty("minY")||this.isPrivateDirty("maxY"))&&t.markDirtyExtremes()),this._markStakedDirtyStack(),this.get("tooltipDataItem")||this.updateLegendValue(void 0)),(this.isDirty("vcx")||this.isDirty("vcy"))&&this._markStakedDirtyStack(),this._dataGrouped||(e._groupSeriesD
1ata(this),t._groupSeriesData(this),this._dataGrouped=!0),this._valuesDirty||this.isPrivateDirty("startIndex")||this.isPrivateDirty("adjustedStartIndex")||this.isPrivateDirty("endIndex")||this.isDirty("vcx")||this.isDirty("vcy")||this._stackDirty||this._sizeDirty){let h=this.startIndex(),u=this.endIndex(),l=this.get("minBulletDistance",0);if(l>0&&i&&(i.get("renderer").axisLength()/(u-h)>l?this._showBullets=!0:this._showBullets=!1),(this._psi!=h||this._pei!=u||this.isDirty("vcx")||this.isDirty("vcy")||this.isPrivateDirty("adjustedStartIndex")||this._stackDirty||this._valuesDirty)&&!this._selectionProcessed){this._selectionProcessed=!0;const c=this.get("vcx",1),d=this.get("vcy",1),g=this.get("stacked",!1),m=this.getPrivate("outOfSelection");if(i===e||!i)if(t._calculateTotals(),this.setPrivateRaw("selectionMinY",void 0),this.setPrivateRaw("selectionMaxY",void 0),m)t.markDirtySelectionExtremes();else for(let f=h;f<u;f++)this.processYSelectionDataItem(this.dataItems[f],d,g);if(i===t||!i)if(e._calculateTotals(),this.setPrivateRaw("selectionMinX",void 0),this.setPrivateRaw("selectionMaxX",void 0),m)t.markDirtySelectionExtremes();else for(let f=h;f<u;f++)this.processXSelectionDataItem(this.dataItems[f],c,g);if((i===e||!i)&&(this.get("valueYShow")!=="valueYWorking"||this.get("useSelectionExtremes"))){const f=this.getPrivate("selectionMinY");f!=null&&(this.setPrivateRaw("minY",f),t.markDirtyExtremes());const p=this.getPrivate("selectionMaxY");p!=null&&(this.setPrivateRaw("maxY",p),t.markDirtyExtremes())}if((i===t||!i)&&(this.get("valueXShow")!=="valueXWorking"||this.get("useSelectionExtremes"))){const f=this.getPrivate("selectionMinX");f!=null&&(this.setPrivateRaw("minX",f),t.markDirtyExtremes());const p=this.getPrivate("selectionMaxX");p!=null&&(this.setPrivateRaw("maxX",p),e.markDirtyExtremes())}(this.isPrivateDirty("selectionMinX")||this.isPrivateDirty("selectionMaxX"))&&e.markDirtySelectionExtremes(),(this.isPrivateDirty("selectionMinY")||this.isPrivateDirty("selectionMaxY"))&&t.markDirtySelectionExtremes()}}}_makeRangeMask(){if(this.axisRanges.length>0){let e=this._mainContainerMask;e==null&&(e=this.children.push(z.new(this._root,{})),this._mainContainerMask=e,e.set("draw",(t,i)=>{const s=this.parent;if(s){const a=this._root.container.width(),o=this._root.container.height();t.moveTo(-a,-o),t.lineTo(-a,o*2),t.lineTo(a*2,o*2),t.lineTo(a*2,-o),t.lineTo(-a,-o),this.axisRanges.each(r=>{const n=r.axisDataItem.get("axisFill");if(s&&n){let h=n.get("draw");h&&h(t,i)}})}this.mainContainer._display.mask=e._display})),e.markDirty(),e._markDirtyKey("fill")}else this.mainContainer._display.mask=null}_updateChildren(){super._updateChildren(),this._x=this.x(),this._y=this.y(),this._makeRangeMask()}_stack(){const e=this.chart;if(e){const t=e.series.indexOf(this);if(this._couldStackTo=[],t>0){let i;for(let s=t-1;s>=0&&(i=e.series.getIndex(s),!(i.get("xAxis")===this.get("xAxis")&&i.get("yAxis")===this.get("yAxis")&&i.className===this.className&&(this._couldStackTo.push(i),!i.get("stacked"))));s--);}this._stackDataItems()}}_unstack(){re(this._reallyStackedTo,(e,t)=>{delete t._stackedSeries[this.uid]}),this._reallyStackedTo={},T(this.dataItems,e=>{e.setRaw("stackToItemY",void 0),e.setRaw("stackToItemX",void 0)})}_handleRemoved(){const e=this.get("xAxis");e&&e._handleSeriesRemoved();const t=this.get("yAxis");t&&t._handleSeriesRemoved()}_stackDataItems(){const e=this.get("baseAxis"),t=this.get("xAxis"),i=this.get("yAxis");let s,a;e===t?(s="valueY",a="stackToItemY"):e===i&&(s="valueX",a="stackToItemX");let o=this._couldStackTo.length,r=0;const n=this.get("stackToNegative");this._reallyStackedTo={},T(this.dataItems,h=>{for(let u=0;u<o;u++){let l=this._couldStackTo[u],c=l.dataItems[r],d=h.get(s);if(c){let g=c.get(s);if(n)if(v(d)){if(v(g)){if(u==o-1&&h.setRaw(a,void 0),d>=0&&g>=0){h.setRaw(a,c),this._reallyStackedTo[l.uid]=l,l._stackedSeries[this.uid]=this;break}if(d<0&&g<0){h.setRaw(a,c),this._reallyStackedTo[l.uid]=l,l._stackedSeries[this.uid]=this;break}}}else break;else if(v(d)&&v(g)){h.setRaw(a,c),this._reallyStackedTo[l.uid]=l,l._stackedSeries[this.uid]=this;break}}}r++})}processXSelectionDataItem(e,t,i){T(this.__valueXShowFields,s=>{let a=e.get(s);a!=null&&(i&&(a+=this.getStackedXValueWorking(e,s)),this._min("selectionMinX",a),this._max("selectionMaxX",a*t))})}processYSelectionDataItem(e,t,i){T(this.__valueYShowFields,s=>{let a=e.get(s);a!=null&&(i&&(a+=this.getStackedYValueWorking(e,s)),this._min("selectionMinY",a),this._max("selectionMaxY",a*t))})}getStackedYValueWorking(e,t){const i=e.get("stackToItemY");
vendor: 5,026 bytes, line 1
1if(i){const s=i.component;return i.get(t,0)*s.get("vcy",1)+this.getStackedYValueWorking(i,t)}return 0}getStackedXValueWorking(e,t){const i=e.get("stackToItemX");if(i){const s=i.component;return i.get(t,0)*s.get("vcx",1)+this.getStackedXValueWorking(i,t)}return 0}getStackedYValue(e,t){const i=e.get("stackToItemY");return i?i.get(t,0)+this.getStackedYValue(i,t):0}getStackedXValue(e,t){const i=e.get("stackToItemX");return i?i.get(t,0)+this.getStackedXValue(i,t):0}createLegendMarker(e){this.updateLegendMarker()}_markDirtyAxes(){this._axesDirty=!0,this.markDirty()}_markDataSetDirty(){this._afterDataChange(),this._valuesDirty=!0,this._dataProcessed=!1,this._aggregatesCalculated=!1,this.markDirty()}_clearDirty(){super._clearDirty(),this._axesDirty=!1,this._selectionProcessed=!1,this._stackDirty=!1,this._dataProcessed=!1}_positionBullet(e){let t=e.get("sprite");if(t){let i=t.dataItem,s=e.get("locationX",i.get("locationX",.5)),a=e.get("locationY",i.get("locationY",.5)),o=this.get("xAxis"),r=this.get("yAxis"),n=this.get("exactLocationX",!1),h=this.get("exactLocationY",!1),u=o.getDataItemPositionX(i,this._xField,s,this.get("vcx",1),n),l=r.getDataItemPositionY(i,this._yField,a,this.get("vcy",1),h),c=this.getPoint(u,l),d=i.get("left",c.x),g=i.get("right",c.x),m=i.get("top",c.y),f=i.get("bottom",c.y),p=0,b=0,_=g-d,x=f-m;if(this._shouldShowBullet(u,l)){t.setPrivate("visible",!e.getPrivate("hidden"));let k=e.get("field");const y=this.get("baseAxis"),A=this.get("xAxis"),D=this.get("yAxis");if(k!=null){let M;y==A?(k=="value"?M=this._yField:k=="open"?M=this._yOpenField:k=="high"?M=this._yHighField:k=="low"&&(M=this._yLowField),M&&(l=D.getDataItemPositionY(i,M,0,this.get("vcy",1),h),c=D.get("renderer").positionToPoint(l),b=c.y,p=d+_*s)):(k=="value"?M=this._xField:k=="open"?M=this._xOpenField:k=="high"?M=this._xHighField:k=="low"&&(M=this._xLowField),M&&(u=A.getDataItemPositionX(i,M,0,this.get("vcx",1),n),c=A.get("renderer").positionToPoint(u),p=c.x,b=f-x*a))}else p=d+_*s,b=f-x*a;const w=e.get("stacked");if(w){const M=this.chart;if(y==A){let C=this._bullets[u+"_"+l];if(C){let L=C.bounds(),V=t.localBounds(),B=b;b=L.top,w=="down"?b=L.bottom-V.top:w=="auto"?M&&(B<M.plotContainer.height()/2?b=L.bottom-V.top:b+=V.bottom):b+=V.bottom}this._bullets[u+"_"+l]=t}else{let C=this._bullets[u+"_"+l];if(C){let L=C.bounds(),V=t.localBounds(),B=p;p=L.right,w=="down"?p=L.left-V.right:w=="auto"?M&&(B<M.plotContainer.width()/2?p=L.left-V.right:p-=V.left):p-=V.left}this._bullets[u+"_"+l]=t}}t.isType("Label")&&(t.setPrivate("maxWidth",Math.abs(_)),t.setPrivate("maxHeight",Math.abs(x))),t.setAll({x:p,y:b})}else t.setPrivate("visible",!1)}}_shouldShowBullet(e,t){return this._showBullets}setDataSet(e){if(this._dataSets[e]){this._handleDataSetChange(),this._dataItems=this._dataSets[e],this._markDataSetDirty(),this._dataSetId=e;const t="datasetchanged";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this,id:e})}}resetGrouping(){re(this._dataSets,(e,t)=>{t!=this._mainDataItems&&T(t,i=>{i.dispose()})}),this._dataSets={},this._dataItems=this.mainDataItems}_handleDataSetChange(){T(this._dataItems,e=>{let t=e.bullets;t&&T(t,i=>{if(i){let s=i.get("sprite");s&&s.setPrivate("visible",!1)}})}),this._selectionProcessed=!1}show(e){const t=Object.create(null,{show:{get:()=>super.show}});return te(this,void 0,void 0,function*(){this._fixVC();let i=[];i.push(t.show.call(this,e).then(()=>{this._isShowing=!1;let s=this.get("xAxis"),a=this.get("yAxis"),o=this.get("baseAxis");a!==o&&a.markDirtySelectionExtremes(),s!==o&&s.markDirtySelectionExtremes()})),i.push(this.bulletsContainer.show(e)),i.push(this._sequencedShowHide(!0,e)),yield Promise.all(i)})}hide(e){const t=Object.create(null,{hide:{get:()=>super.hide}});return te(this,void 0,void 0,function*(){this._fixVC();let i=[];i.push(t.hide.call(this,e).then(()=>{this._isHiding=!1})),i.push(this.bulletsContainer.hide(e)),i.push(this._sequencedShowHide(!1,e)),yield Promise.all(i)})}showDataItem(e,t){const i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return te(this,void 0,void 0,function*(){const s=[i.showDataItem.call(this,e,t)];v(t)||(t=this.get("stateAnimationDuration",0));const a=this.get("stateAnimationEasing");T(this._valueFields,o=>{s.push(e.animate({key:o+"Working",to:e.get(o),duration:t,easing:a}).waitForStop())}),yield Promise.all(s)})}hideDataItem(e,t){const i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return te(this,void 0,void 0,function*(){const s=[i.hideDataItem.call(this,e,t)];let a=this.states.lookup("hidden");a||(a=this.states.create("hidden",{})),v(t)||(t=a.get("stateAnimationDuration",this.get("stateAnimationDuration",0)));const o=a.get("stateAnimationEasing",this.get("stateAnimationEasing")),r=this.get("xAxis"),n=this.get("yAxis"),h=this.get("baseAxis"),u=this.get("stacked");if((h===r||!h)&&T(this._valueYFields,l=>{let c=n.getPrivate("min"),d=n.baseValue();v(c)&&c>d&&(d=c),u&&(d=0),e.get(l)!=null&&s.push(e.animate({key:l+"Working",to:d,duration:t,easing:o}).waitForStop())}
1),h===n||!h){let l=r.getPrivate("min"),c=r.baseValue();v(l)&&l>c&&(c=l),u&&(c=0),T(this._valueXFields,d=>{e.get(d)!=null&&s.push(e.animate({key:d+"Working",to:c,duration:t,easing:o}).waitForStop())})}yield Promise.all(s)})}_markDirtyStack(){this._stackDirty=!0,this.markDirty(),this._markStakedDirtyStack()}_markStakedDirtyStack(){const e=this._stackedSeries;e&&re(e,(t,i)=>{i._stackDirty||i._markDirtyStack()})}_afterChanged(){super._afterChanged(),this._skipped&&(this._markDirtyAxes(),this._skipped=!1)}showDataItemTooltip(e){this.getPrivate("doNotUpdateLegend")||(this.updateLegendMarker(e),this.updateLegendValue(e));const t=this.get("tooltip"),i=this.get("exactLocationX",!1),s=this.get("exactLocationY",!1);if(t)if(!this.isHidden()&&this.get("visible")){if(t._setDataItem(e),e){let a=this.get("locationX",0),o=this.get("locationY",1),r=e.get("locationX",a),n=e.get("locationY",o);const h=this.get("xAxis"),u=this.get("yAxis"),l=this.get("vcx",1),c=this.get("vcy",1),d=h.getDataItemPositionX(e,this._tooltipFieldX,this._aLocationX0+(this._aLocationX1-this._aLocationX0)*r,l,i),g=u.getDataItemPositionY(e,this._tooltipFieldY,this._aLocationY0+(this._aLocationY1-this._aLocationY0)*n,c,s),m=this.getPoint(d,g);let f=!0;if(T(this._valueFields,p=>{e.get(p)==null&&(f=!1)}),f){const p=this.chart;p&&p.inPlot(m)?(t.label.text.markDirtyText(),t.set("tooltipTarget",this._getTooltipTarget(e)),t.set("pointTo",this._display.toGlobal({x:m.x,y:m.y}))):t._setDataItem(void 0)}else t._setDataItem(void 0)}}else this.hideTooltip()}hideTooltip(){const e=this.get("tooltip");return e&&e.set("tooltipTarget",this),super.hideTooltip()}_getTooltipTarget(e){if(this.get("seriesTooltipTarget")=="bullet"){const t=e.bullets;if(t&&t.length>0){const s=t[0].get("sprite");if(s)return s}}return this}updateLegendValue(e){const t=this.get("legendDataItem");if(t){const i=t.get("label");if(i){let a="";e?(i._setDataItem(e),a=this.get("legendLabelText",i.get("text",this.get("name","")))):(i._setDataItem(this._emptyDataItem),a=this.get("legendRangeLabelText",this.get("legendLabelText",i.get("text",this.get("name",""))))),i.set("text",a)}const s=t.get("valueLabel");if(s){let a="";e?(s._setDataItem(e),a=this.get("legendValueText",s.get("text",""))):(s._setDataItem(this._emptyDataItem),a=this.get("legendRangeValueText",s.get("text",""))),s.set("text",a)}}}_getItemReaderLabel(){let e="X: {"+this._xField;return this.get("xAxis").isType("DateAxis")&&(e+=".formatDate()"),e+="}; Y: {"+this._yField,this.get("yAxis").isType("DateAxis")&&(e+=".formatDate()"),e+="}",e}getPoint(e,t){let i=this.get("xAxis").get("renderer").positionToCoordinate(e),s=this.get("yAxis").get("renderer").positionToCoordinate(t),a=999999999;return s<-a&&(s=-a),s>a&&(s=a),i<-a&&(i=-a),i>a&&(i=a),{x:i,y:s}}_shouldInclude(e){return!0}handleCursorHide(){this.hideTooltip(),this.updateLegendValue(void 0),this.updateLegendMarker(void 0)}_afterDataChange(){super._afterDataChange(),this.get("xAxis")._markDirtyKey("start"),this.get("yAxis")._markDirtyKey("start"),this.resetExtremes()}resetExtremes(){this.setPrivate("selectionMinX",void 0),this.setPrivate("selectionMaxX",void 0),this.setPrivate("selectionMinY",void 0),this.setPrivate("selectionMaxY",void 0),this.setPrivate("minX",void 0),this.setPrivate("minY",void 0),this.setPrivate("maxX",void 0),this.setPrivate("maxY",void 0)}createAxisRange(e){return this.axisRanges.push({axisDataItem:e})}get mainDataItems(){return this._mainDataItems}_adjustStartIndex(e){const t=this.get("xAxis");if(this.get("baseAxis")==t&&t.isType("DateAxis")){const s=t.baseDuration(),a=t.getPrivate("selectionMin",t.getPrivate("min",0)),o=s*this.get("locationX",.5);let r=-1/0;for(;r<a;){const n=this.dataItems[e];if(n){const h=n.open;if(h?r=h.valueX:r=n.get("valueX",0),r+=o,r<a)e++;else break}else break}}return e}}Object.defineProperty(Z,"className",{enumerable:!0,configurable:!0,writable:!0,value:"XYSeries"});Object.defineProperty(Z,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:Ne.classNames.concat([Z.className])});class q extends Z{constructor(){super(...arguments),Object.defineProperty(this,"_ph",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_pw",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_columnsUpdated",{enumerable:!0,configurable:!0,writable:!0,value:!1})}_makeGraphics(e,t){return this.makeColumn(t,e)}_makeFieldNames(){super._makeFieldNames();const e=this.get("xAxis"),t=this.get("yAxis"),i="CategoryAxis",s="ValueAxis";e.isType(i)&&(this.get("openCategoryXField")||(this._xOpenField=this._xField)),e.isType(s)&&(this.get("openValueXField")||(this._xOpenField=this._xField)),t.isType(i)&&(this.get("openCategoryYField")||(this._yOpenField=this._yField)),t.isType(s)&&(this.get("openValueYField")||(this._yOpenField=this._yField))}_prepareChildren(){super._prepareChildren();const e=this.get("xAxis"),t=this.get("yAxis"),i=this.dataItems.length,s=Math.max(0,this.startIndex()-2),a=Math.min(this.endIndex()+2,i-1);if(e.inited&&t.inited)for(let o=s;o<=a;o++){let r=this.dataItems[o];this._createGraphics(r)}}_updateChildren(){const e=this.chart;e&&(this._ph=e.plotContainer.height(),this._pw=e.plotContainer.width());const t=this.get("xAxis"),i=this.get("yAxis"),s=this.get("baseAxis"),a=this.columns.template;this.isDirty("fill")&&a.get("fill")==null&&a.set("fill",this.get("fill")),this.isDirty("fillPattern")&&a.get("fillPattern")==null&&a.set("fillPattern",this.get("fillPattern")),this.isDirty("stroke")&&a.get("stroke")==null&&a.set("stroke",this.get("stroke"));let o=0,r=0,n=0;T(s.series,p=>{if(p instanceof q){const b=p.get("stacked");b&&n==0&&r++,!b&&p.get("clustered")&&r++}p===this&&(o=r-1),n++}),this.get("clustered")||(o=0,r=1),r===0&&(r=1,o=0);const h=t.get("renderer"),u=i.get("renderer"),l="cellStartLocation",c="cellEndLocation",d=h.get(l,0),g=h.get(c,1),m=u.get(l,0),f=u.get(c,1);if(this._aLocationX0=d+o/r*(g-d),this._aLocationX1=d+(o+1)/r*(g-d),this._aLocationY0=m+o/r*(f-m),this._aLocationY1=m+(o+1)/r*(f-m),t.inited&&i.inited){if(this._axesDirty||this._valuesDirt
1y||this._stackDirty||this.isDirty("vcx")||this.isDirty("vcy")||this._sizeDirty){const p=this.dataItems.length;let b=Math.max(0,this.startIndex()-2),_=Math.min(this.endIndex()+2,p-1);for(let y=0;y<b;y++)this._toggleColumn(this.dataItems[y],!1);let x=this.dataItems[b];for(let y=b;y<=_;y++){let A=this.dataItems[y];if(A.get("valueX")!=null&&A.get("valueY")!=null){if(x=A,y>0&&b>0)for(let D=y-1;D>=0;D--){let w=this.dataItems[D];if(w.get("valueX")!=null&&w.get("valueY")!=null){x=w;break}}break}else this._toggleColumn(A,!1)}this._beforeColumnsDraw();let k=0;i.isType("CategoryAxis")&&t.isType("CategoryAxis")?k=2:t===s?k=0:i===s&&(k=1);for(let y=b;y<=_;y++){let A=this.dataItems[y];this._updateGraphics(A,x,k),A.get("valueX")!=null&&A.get("valueY")!=null&&(x=A)}this._afterColumnsDraw();for(let y=_+1;y<p;y++)this._toggleColumn(this.dataItems[y],!1);this._columnsUpdated=!0}}else this._skipped=!0;this.getPrivate("doNotUpdateLegend")||this.updateLegendMarker(this.get("tooltipDataItem")),super._updateChildren()}_afterChanged(){super._afterChanged(),this._columnsUpdated=!1}_beforeColumnsDraw(){}_afterColumnsDraw(){}_createGraphics(e){let t=e.get("graphics");if(!t){t=this._makeGraphics(this.columns,e),e.set("graphics",t),t._setDataItem(e);const i=e.get("legendDataItem");if(i){const a=i.get("markerRectangle");if(a){const o=a.states.lookup("default");T(je,r=>{const n=t.get(r,this.get(r));a.set(r,n),o.set(r,n)})}}let s=e.get("rangeGraphics");s&&T(s,a=>{a.dispose()}),s=[],e.setRaw("rangeGraphics",s),this.axisRanges.each(a=>{const o=a.container,r=this._makeGraphics(a.columns,e);s&&s.push(r),r.setPrivate("list",a.columns),o.children.push(r)})}}createAxisRange(e){return T(this.dataItems,t=>{const i=t.get("graphics");i&&(i.dispose(),t.set("graphics",void 0))}),super.createAxisRange(e)}_updateGraphics(e,t,i){let s=e.get("graphics");const a=this._xField,o=this._yField,r=e.get(a),n=e.get(o),h=this.get("exactLocationX",!1);if(r!=null&&n!=null){const u=this._xOpenField,l=this._yOpenField,c=this.get("locationX",e.get("locationX",.5)),d=this.get("locationY",e.get("locationY",.5)),g=this.get("openLocationX",e.get("openLocationX",c)),m=this.get("openLocationY",e.get("openLocationY",d)),f=s.get("width"),p=s.get("height"),b=this.get("stacked"),_=this.get("xAxis"),x=this.get("yAxis"),k=_.get("start"),y=_.get("end"),A=x.get("start"),D=x.get("end");let w,M,C,L,V=this.get("vcy",1),B=this.get("vcx",1),J=!1,ne=!1;if(i==0){let E=this._aLocationX0+g-.5,Y=this._aLocationX1+c-.5;if(f instanceof ie){let O=(Y-E)*(1-f.value)/2;E+=O,Y-=O}if(w=_.getDataItemPositionX(e,u,E,B,h),M=_.getDataItemPositionX(e,a,Y,B,h),C=x.getDataItemPositionY(e,o,d,V),this._yOpenField!==this._yField)L=x.getDataItemPositionY(e,l,m,V);else if(b){let O=e.get("stackToItemY");O?L=x.getDataItemPositionY(O,o,m,O.component.get("vcy")):L=x.basePosition()}else L=x.basePosition();e.setRaw("point",{x:w+(M-w)/2,y:C}),ne=!0}else if(i==1){let E=this._aLocationY0+m-.5,Y=this._aLocationY1+d-.5;if(p instanceof ie){let O=(Y-E)*(1-p.value)/2;E+=O,Y-=O}if(C=x.getDataItemPositionY(e,l,E,V),L=x.getDataItemPositionY(e,o,Y,V),M=_.getDataItemPositionX(e,a,c,B,h),this._xOpenField!==this._xField)w=_.getDataItemPositionX(e,u,g,B,h);else if(b){let O=e.get("stackToItemX");O?w=_.getDataItemPositionX(O,a,g,O.component.get("vcx"),h):w=_.basePosition()}else w=_.basePosition();J=!0,e.setRaw("point",{x:M,y:C+(L-C)/2})}else if(i==2){let E=this._aLocationX0+g-.5,Y=this._aLocationX1+c-.5;if(f instanceof ie){let O=(Y-E)*(1-f.value)/2;E+=O,Y-=O}if(w=_.getDataItemPositionX(e,u,E,B),M=_.getDataItemPositionX(e,a,Y,B),E=this._aLocationY0+m-.5,Y=this._aLocationY1+d-.5,p instanceof ie){let O=(Y-E)*(1-p.value)/2;E+=O,Y-=O}C=x.getDataItemPositionY(e,l,E,V),L=x.getDataItemPositionY(e,o,Y,V),e.setRaw("point",{x:w+(M-w)/2,y:C+(L-C)/2})}this._applyGraphicsStates(e,t),this._updateSeriesGraphics(e,s,w,M,C,L,J,ne),w<k&&M<k||w>y&&M>y||C<A&&L<=A||C>=D&&L>D||H(w)||H(C)?this._toggleColumn(e,!1):this._toggleColumn(e,!0);let ce=e.get("rangeGraphics");ce&&T(ce,E=>{this._updateSeriesGraphics(e,E,w,M,C,L,J,ne)})}else this._toggleColumn(e,!1)}_updateSeriesGraphics(e,t,i,s,a,o,r,n){const h=t.get("width"),u=t.get("height"),l=t.get("maxWidth"),c=t.get("maxHeight"),d=this.getPoint(i,a),g=this.getPoint(s,o),m=e.get("point");if(m){const f=this.getPoint(m.x,m.y);m.x=f.x+this._x,m.y=f.y+this._y}if(i=d.x,s=g.x,a=d.y,o=g.y,v(h)){const f=(s-i-h)/2;i+=f,s-=f}if(v(l)&&l<Math.abs(s-i)){const f=(s-i-l)/2;i+=f,s-=f}if(v(u)){const f=(o-a-u)/2;a+=f,o-=f}if(v(c)&&c<Math.abs(o-a)){const f=(o-a-c)/2;a+=f,o-=f}this.get("adjustBulletPosition")&&(r&&(s=Math.min(Math.max(0,s),this._pw),i=Math.min(Math.max(0,i),this._pw)),n&&(a=Math.min(Math.max(0,a),this._ph),o=Math.min(Math.max(0,o),this._ph))),e.setRaw("left",i),e.setRaw("right",s),e.setRaw("top",a),e.setRaw("bottom",o),t.setPrivate("width",s-i),t.setPrivate("height",o-a),t.set("x",i),t.set("y",o-(o-a))}_handleDataSetChange(){super._handleDataSetChange(),T(this._dataItems,e=>{this._toggleColumn(e,!1)})}_applyGraphicsStates(e,t){const i=e.get("graphics"),s=i.states.lookup("dropFromOpen"),a=i.states.lookup("riseFromOpen"),o=i.states.lookup("dropFromPrevious"),r=i.states.lookup("riseFromPrevious");if(s||o||a||r){const n=this.get("xAxis"),h=this.get("yAxis"),u=this.get("baseAxis");let l,c,d;u===n&&h.isType("ValueAxis")?(l=e.get(this._yOpenField),c=e.get(this._yField),d=t.get(this._yField)):u===h&&n.isType("ValueAxis")&&(l=e.get(this._xOpenField),c=e.get(this._xField),d=t.get(this._xField)),v(l)&&v(c)&&(c<l?s&&s.apply():a&&a.apply(),v(d)&&(c<d?o&&o.apply():r&&r.apply()))}}disposeDataItem(e){super.disposeDataItem(e);const t=e.get("graphics");t&&(this.columns.removeValue(t),t.dispose());const i=e.get("rangeGraphics");i&&T(i,s=>{const a=s.getPrivate("list");a&&a.removeValue(s),s.dispose()})}hideDataItem(e,t){const i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return te(this,void 0,void 0,function*(){const s=[i.hideDataItem.call(this,e,t)],a=e.get("graphics");a&&s.push(a.hide(t));const o=e.get("rangeGraphics");o&&T(o,r=>{s.push(r.hide(t))}),yield Promise.all(s)})}_toggleColumn(e,t){const i=e.get("graphics");i&&i.setPrivate("visible",t);const s=e.get("rangeGraphics");s&&T(s,o=>{o.setPrivate("visible",t)});const a=e.bullets;a&&T(a,o=>{o.setPrivate("hidden",!t)})}showDataItem(e,t){const i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return te(this,void 0,void 0,function*(){const s=[i.showDataItem.call(this,e,t)],a=e.get("graphics");a&&s.push(a.show(t));const o=e.get("rangeGraphics");o&&T(o,r=>{s.push(r.show(t))}),yield Promise.all(s)})}updateLegendMarker(e){let t=this.get("legendDataItem");if(this.get("useLastColorForLegendMarker")&&!e){const i=this.dataItems[this.endIndex()-1];i&&(e=i)}if(t){let i=this.columns.template;if(e){let a=e.get("graphics");a&&(i=a)}const s=t.get("markerRectangle");if(s&&!t.get("itemContainer").get("disabled")){const a=s.states.lookup("default");T(je,o=>{const r=i.get(o,this.get(o));s.set(o,r),a.set(o,r)})}}}_getTooltipTarget(e){if(this.get("seriesTooltipTarget")=="bullet")return super._getTooltipTarget(e);let t=e.get("graphics");return t||this}}Object.defineProperty(q,"className",{enumerable:!0,configurable:!0,writable:!0,value:"BaseColumnSeries"});Object.defineProperty(q,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:Z.classNames.c
1oncat([q.className])});class K extends Be{constructor(){super(...arguments),Object.defineProperty(this,"_series",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_isPanning",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"minorDataItems",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"labelsContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.children.push(R.new(this._root,{}))}),Object.defineProperty(this,"gridContainer",{enumerable:!0,configurable:!0,writable:!0,value:R.new(this._root,{width:S,height:S})}),Object.defineProperty(this,"topGridContainer",{enumerable:!0,configurable:!0,writable:!0,value:R.new(this._root,{width:S,height:S})}),Object.defineProperty(this,"bulletsContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.children.push(R.new(this._root,{isMeasured:!1,width:S,height:S,position:"absolute"}))}),Object.defineProperty(this,"chart",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_rangesDirty",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_panStart",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_panEnd",{enumerable:!0,configurable:!0,writable:!0,value:1}),Object.defineProperty(this,"_sAnimation",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_eAnimation",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_skipSync",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"axisRanges",{enumerable:!0,configurable:!0,writable:!0,value:new Ue}),Object.defineProperty(this,"_seriesAxisRanges",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"ghostLabel",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_cursorPosition",{enumerable:!0,configurable:!0,writable:!0,value:-1}),Object.defineProperty(this,"_snapToSeries",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_seriesValuesDirty",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_seriesAdded",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"axisHeader",{enumerable:!0,configurable:!0,writable:!0,value:this.children.push(R.new(this._root,{themeTags:["axis","header"],position:"absolute",background:ue.new(this._root,{themeTags:["header","background"],fill:this._root.interfaceColors.get("background")})}))}),Object.defineProperty(this,"_bullets",{enumerable:!0,configurable:!0,writable:!0,value:{}})}_dispose(){this.gridContainer.dispose(),this.topGridContainer.dispose(),this.bulletsContainer.dispose(),this.labelsContainer.dispose(),this.axisHeader.dispose(),super._dispose()}_afterNew(){super._afterNew(),this.setPrivate("updateScrollbar",!0),this._disposers.push(this.axisRanges.events.onAll(t=>{if(t.type==="clear")T(t.oldValues,i=>{i.dispose()});else if(t.type==="push")this._processAxisRange(t.newValue,["range"]);else if(t.type==="setIndex")this._processAxisRange(t.newValue,["range"]);else if(t.type==="insertIndex")this._processAxisRange(t.newValue,["range"]);else if(t.type==="removeIndex")this.disposeDataItem(t.oldValue);else if(t.type==="moveIndex")this._processAxisRange(t.value,["range"]);else throw new Error("Unknown IStreamEvent type")}));const e=this.get("renderer");e&&(e.axis=this,e.processAxis()),this.children.push(e),this._createGhostLabel()}_createGhostLabel(){const t=this.get("renderer").makeLabel(new he(this,void 0,{}),[]);t.adapters.disable("text"),t.setAll({opacity:0,tooltipText:void 0,tooltipHTML:void 0,interactive:!1}),t.events.disable(),this.ghostLabel=t}_updateFinals(e,t){}zoom(e,t,i,s){if(this.get("zoomable",!0))if(this._updateFinals(e,t),this.get("start")!==e||this.get("end")!=t){let a=this._sAnimation,o=this._eAnimation;e>t&&([e,t]=[t,e]);let r=this.get("maxDeviation",.5)*Math.min(1,t-e);e<-r&&(e=-r),t>1+r&&(t=1+r);let n=this.getPrivate("maxZoomFactor",this.get("maxZoomFactor",100)),h=n;v(i)||(i=this.get("interpolationDuration",0)),s||(s="end"),t===1&&e!==0&&(e<this.get("start",0)?s="start":s="end"),e===0&&t!==1&&(t>this.get("end",1)?s="end":s="start");let u=this.get("minZoomCount",0);const l=this.dataItems;l&&l.length<u&&(u=l.length);let c=this.get("maxZoomCount",1/0);v(u)&&(n=h/u);let d=1;if(v(c)&&(d=h/c),e>t&&([e,t]=[t,e]),s==="start"?(c>0&&1/(t-e)<d&&(t=e+1/d),1/(t-e)>n&&(t=e+1/n),t>1&&t-e<1/n&&(e=t-1/n)):(c>0&&1/(t-e)<d&&(e=t-1/d),1/(t-e)>n&&(e=t-1/n),e<0&&t-e<1/n&&(t=e+1/n)),1/(t-e)>n&&(t=e+1/n),1/(t-e)>n&&(e=t-1/n),c!=null&&u!=null&&e==this.get("start")&&t==this.get("end")){const g=this.chart;g&&g._handleAxisSelection(this,!0)}if((a&&a.playing&&a.to==e||this.get("start")==e)&&(o&&o.playing&&o.to==t||this.get("end")==t))return;if(i>0){let g=this.get("interpolationEasing"),m,f;if(this.get("start")!=e&&(m=this.animate({key:"start",to:e,duration:i,easing:g})),this.get("end")!=t&&(f=this.animate({key:"end",to:t,duration:i,easing:g})),this._sAnimation=m,this._eAnimation=f,m)return m;if(f)return f}else this.set("start",e),this.set("end",t),this.root.events.once("frameended",()=>{this.markDirtyKey("start")})}else this._sAnimation&&this._sAnimation.stop(),this._eAnimation&&this._eAnimation.stop()}get series(){return this._series}_processAxisRange(e,t){e.setRaw("isRange",!0),this._createAssets(e,t),this._rangesDirty=!0,this._prepareDataItem(e);const i=e.get("above"),s=this.topGridContainer,a=e.get("grid");i&&a&&s.children.moveValue(a);const o=e.get("axisFill");i&&o&&s.children.moveValue(o)}_prepareDataItem(e,t){}markDirtyExtremes(){}markDirtySelectionExtremes(){}_calculateTotals(){}_updateAxisRanges(){this._bullets={},this.axisRanges.each(e=>{this._prepareDataItem(e)}),T(this._seriesAxisRanges,e=>{this._prepareDataItem(e)})}_prepareChildren(){super._prepareChildren();const e=this.ghostLabel;if(e&&(this.get("fixAxisSize")?e.set("visible",!0):e.set("visible",!1)),this.isDirty("start")||this.isDirty("end")){const i=this.chart;
1i&&i._updateCursor();let s=this.get("start",0),a=this.get("end",1),o=this.get("maxDeviation",.5)*Math.min(1,a-s);if(s<-o){let r=s+o;s=-o,this.setRaw("start",s),this.isDirty("end")&&this.setRaw("end",a-r)}if(a>1+o){let r=a-1-o;a=1+o,this.setRaw("end",a),this.isDirty("start")&&this.setRaw("start",s-r)}}const t=this.get("renderer");if(t._start=this.get("start"),t._end=this.get("end"),t._inversed=t.get("inversed",!1),t._axisLength=t.axisLength()/(t._end-t._start),t._updateLC(),this.isDirty("tooltip")){const i=this.get("tooltip");if(i){const s=t.get("themeTags");i.addTag("axis"),i.addTag(this.className.toLowerCase()),i._applyThemes(),s&&(i.set("themeTags",j(i.get("themeTags"),s)),i.label._applyThemes())}}}_updateTooltipBounds(){const e=this.get("tooltip");e&&this.get("renderer").updateTooltipBounds(e)}_updateBounds(){super._updateBounds(),this._updateTooltipBounds()}processChart(e){this.chart=e;const t=this.get("renderer");t.chart=e,e.gridContainer.children.push(this.gridContainer),e.topGridContainer.children.push(this.topGridContainer),e.axisHeadersContainer.children.push(this.axisHeader),this.on("start",()=>{e._handleAxisSelection(this)}),this.on("end",()=>{e._handleAxisSelection(this)}),e.plotContainer.onPrivate("width",()=>{this.markDirtySize()}),e.plotContainer.onPrivate("height",()=>{this.markDirtySize()}),e.processAxis(this)}hideDataItem(e){return this._toggleFHDataItem(e,!0),super.hideDataItem(e)}showDataItem(e){return this._toggleFHDataItem(e,!1),super.showDataItem(e)}_toggleFHDataItem(e,t){const i="forceHidden",s=e.get("label");s&&s.set(i,t);const a=e.get("grid");a&&a.set(i,t);const o=e.get("tick");o&&o.set(i,t);const r=e.get("axisFill");r&&r.set(i,t);const n=e.get("bullet");if(n){const h=n.get("sprite");h&&h.set(i,t)}}_toggleDataItem(e,t){const i=e.get("label"),s="visible";i&&i.setPrivate(s,t);const a=e.get("grid");a&&a.setPrivate(s,t);const o=e.get("tick");o&&o.setPrivate(s,t);const r=e.get("axisFill");r&&r.setPrivate(s,t);const n=e.get("bullet");if(n){const h=n.get("sprite");h&&h.setPrivate(s,t)}}_createAssets(e,t,i){var s,a,o;const r=this.get("renderer");let n="minor";const h=e.get("label");if(!h)r.makeLabel(e,t);else{let c=h.get("themeTags"),d=!1;i?c?.indexOf(n)==-1&&(d=!0):c?.indexOf(n)!=-1&&(d=!0),d&&((s=h.parent)===null||s===void 0||s.children.removeValue(h),r.makeLabel(e,t),h.dispose(),r.labels.removeValue(h))}const u=e.get("grid");if(!u)r.makeGrid(e,t);else{let c=u.get("themeTags"),d=!1;i?c?.indexOf(n)==-1&&(d=!0):c?.indexOf(n)!=-1&&(d=!0),d&&((a=u.parent)===null||a===void 0||a.children.removeValue(u),r.makeGrid(e,t),u.dispose(),r.grid.removeValue(u))}const l=e.get("tick");if(!l)r.makeTick(e,t);else{let c=!1,d=l.get("themeTags");i?d?.indexOf(n)==-1&&(c=!0):d?.indexOf(n)!=-1&&(c=!0),c&&((o=l.parent)===null||o===void 0||o.children.removeValue(l),r.makeTick(e,t),l.dispose(),r.ticks.removeValue(l))}(!i&&!e.get("axisFill")||i&&!e.get("axisFill")&&this.get("minorAxisFillsEnabled"))&&r.makeAxisFill(e,t),this._processBullet(e)}_processBullet(e){let t=e.get("bullet"),i=this.get("bullet");if(!t&&i&&!e.get("isRange")&&(t=i(this._root,this,e)),t){t.axis=this;const s=t.get("sprite");s&&(s._setDataItem(e),e.setRaw("bullet",t),s.parent||this.bulletsContainer.children.push(s))}}_afterChanged(){super._afterChanged();const e=this.chart;e&&(e._updateChartLayout(),e.axisHeadersContainer.markDirtySize()),this.get("renderer")._updatePositions(),this._seriesAdded=!1}disposeDataItem(e){super.disposeDataItem(e);const t=this.get("renderer"),i=e.get("label");i&&(t.labels.removeValue(i),i.dispose());const s=e.get("tick");s&&(t.ticks.removeValue(s),s.dispose());const a=e.get("grid");a&&(t.grid.removeValue(a),a.dispose());const o=e.get("axisFill");o&&(t.axisFills.removeValue(o),o.dispose());const r=e.get("bullet");r&&r.dispose()}_updateGhost(){this.setPrivate("cellWidth",this.getCellWidthPosition()*this.get("renderer").axisLength());const e=this.ghostLabel;if(e){if(!e.isHidden()){const s=e.localBounds(),a=Math.ceil(s.right-s.left);let o=e.get("text");T(this.dataItems,r=>{const n=r.get("label");if(n&&!n.isHidden()){const h=n.localBounds();
1Math.ceil(h.right-h.left)>a&&(o=n.text._getText())}}),e.set("text",o)}let t=this.get("start",0),i=this.get("end",1);this.get("renderer").updateLabel(e,t+(i-t)*.5)}}_handleCursorPosition(e,t){e=this.get("renderer").toAxisPosition(e),this._cursorPosition=e,this._snapToSeries=t,this.updateTooltip()}updateTooltip(){const e=this._snapToSeries;let t=this._cursorPosition;const i=this.get("tooltip"),s=this.get("renderer");v(t)&&(T(this.series,a=>{if(a.get("baseAxis")===this){const o=this.getSeriesItem(a,t,this.get("tooltipLocation"));e&&e.indexOf(a)!=-1?(a.updateLegendMarker(o),a.updateLegendValue(o),a._settings.tooltipDataItem=o):(a.showDataItemTooltip(o),a.setRaw("tooltipDataItem",o))}}),this.get("snapTooltip")&&(t=this.roundAxisPosition(t,this.get("tooltipLocation",.5))),this.setPrivateRaw("tooltipPosition",t),i&&(s.updateTooltipBounds(i),H(t)?i.hide(0):(this._updateTooltipText(i,t),s.positionTooltip(i,t),t<this.get("start",0)||t>this.get("end",1)?i.hide(0):i.show(0))))}_updateTooltipText(e,t){e.label.set("text",this.getTooltipText(t))}roundAxisPosition(e,t){return e}_handleSeriesRemoved(){}handleCursorShow(){let e=this.get("tooltip");e&&e.show()}handleCursorHide(){let e=this.get("tooltip");e&&e.hide()}processSeriesDataItem(e,t){}_clearDirty(){super._clearDirty(),this._sizeDirty=!1,this._rangesDirty=!1}coordinateToPosition(e){const t=this.get("renderer");return t.toAxisPosition(e/t.axisLength())}toAxisPosition(e){return this.get("renderer").toAxisPosition(e)}toGlobalPosition(e){return this.get("renderer").toGlobalPosition(e)}fixPosition(e){return this.get("renderer").fixPosition(e)}shouldGap(e,t,i,s){return!1}createAxisRange(e){return this.axisRanges.push(e)}
1_groupSeriesData(e){}getCellWidthPosition(){return .05}}Object.defineProperty(K,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Axis"});Object.defineProperty(K,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:Be.classNames.concat([K.className])});class be extends K{constructor(){super(...arguments),Object.defineProperty(this,"_dirtyExtremes",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_dirtySelectionExtremes",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_dseHandled",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_deltaMinMax",{enumerable:!0,configurable:!0,writable:!0,value:1}),Object.defineProperty(this,"_minReal",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_maxReal",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_minRealLog",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_baseValue",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_syncDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_minLogAdjusted",{enumerable:!0,configurable:!0,writable:!0,value:1})}markDirtyExtremes(){this._dirtyExtremes=!0,this.markDirty()}markDirtySelectionExtremes(){this._dirtySelectionExtremes=!0,this.markDirty()}_afterNew(){this._settings.themeTags=j(this._settings.themeTags,["axis"]),this.setPrivateRaw("name","value"),this.addTag("value"),super._afterNew()}_prepareChildren(){var e;if(super._prepareChildren(),this.isDirty("syncWithAxis")){this._prevSettings.syncWithAxis&&this._syncDp&&this._syncDp.dispose();let s=this.get("syncWithAxis");s&&(this._syncDp=new ht([s.onPrivate("selectionMinFinal",()=>{this._dirtySelectionExtremes=!0}),s.onPrivate("selectionMaxFinal",()=>{this._dirtySelectionExtremes=!0})]))}let t=!1;if((this.isDirty("min")||this.isDirty("max")||this.isDirty("maxPrecision")||this.isDirty("numberFormat"))&&(t=!0,(e=this.ghostLabel)===null||e===void 0||e.set("text","")),(this._sizeDirty||this._dirtyExtremes||this._valuesDirty||t||this.isPrivateDirty("width")||this.isPrivateDirty("height")||this.isDirty("extraMin")||this.isDirty("extraMax")||this.isDirty("logarithmic")||this.isDirty("treatZeroAs")||this.isDirty("baseValue")||this.isDirty("strictMinMax")||this.isDirty("strictMinMaxSelection"))&&(this._getMinMax(),this._dirtyExtremes=!1),this._handleSizeDirty(),this._dirtySelectionExtremes&&!this._isPanning&&this.get("autoZoom",!0)){const i=this.chart;let s=!1;if(i){const a=this.get("renderer").getPrivate("letter");a=="Y"?i.xAxes.each(o=>{o.className!="ValueAxis"&&(s=!0)}):a=="X"&&i.yAxes.each(o=>{o.className!="ValueAxis"&&(s=!0)})}s&&this._getSelectionMinMax(),this._dirtySelectionExtremes=!1}this._groupData(),(this._sizeDirty||this._valuesDirty||this.isDirty("start")||this.isDirty("end")||this.isPrivateDirty("min")||this.isPrivateDirty("selectionMax")||this.isPrivateDirty("selectionMin")||this.isPrivateDirty("max")||this.isPrivateDirty("step")||this.isPrivateDirty("width")||this.isPrivateDirty("height")||this.isDirty("logarithmic"))&&(this._handleRangeChange(),this._prepareAxisItems(),this._updateAxisRanges()),this._baseValue=this.baseValue()}_handleSizeDirty(){this._sizeDirty&&!this._dseHandled&&(this._dirtySelectionExtremes=!0,this._dseHandled=!0,(this.getPrivate("selectionMinFinal")!=this.getPrivate("selectionMin")||this.getPrivate("selectionMaxFinal")!=this.getPrivate("selectionMax"))&&(this._dirtySelectionExtremes=!1))}_clearDirty(){super._clearDirty(),this._dseHandled=!1}_groupData(){}_formatText(e){const t=this.get("numberFormat"),i=this.getNumberFormatter();let s="";return t?s=i.format(e,t):s=i.format(e,void 0,this.getPrivate("stepDecimalPlaces")),s}_prepareAxisItems(){const e=this.getPrivate("min"),t=this.getPrivate("max");if(v(e)&&v(t)){const i=this.get("logarithmic"),s=this.getPrivate("step"),a=this.getPrivate("selectionMin"),o=this.getPrivate("selectionMax")+s;let r=a-s,n=1,h=e;if(i){if(r=this._minLogAdjusted,r<a)for(;r<a;)r+=s;if(h=r,h<=0){let x=this._minRealLog;v(x)||(x=1),h=Math.pow(10,Math.log(x)*Math.LOG10E),s<1&&(v(this._minRealLog)?h=this._minRealLog:h=Math.pow(10,-50))}n=Math.log(o-s)*Math.LOG10E-Math.log(h)*Math.LOG10E,n>2&&(r=Math.pow(10,Math.log(h)*Math.LOG10E-50))}const u=this.get("renderer"),l=u.get("minorLabelsEnabled"),c=u.get("minorGridEnabled",l);let d=Math.pow(10,Math.floor(Math.log(Math.abs(s))*Math.LOG10E));const g=Math.round(s/d);let m=2;I(g/5,10)%1==0&&(m=5),I(g/10,10)%1==0&&(m=10);let f=s/m,p=0,b=0,_=-1/0;for(;r<o;){let x;this.dataItems.length<p+1?(x=new he(this,void 0,{}),this._dataItems.push(x),this.processDataItem(x)):x=this.dataItems[p],this._createAssets(x,[]),this._toggleDataItem(x,!0),x.setRaw("value",r);const k=x.get("label");k&&k.set("text",this._formatText(r)),this._prepareDataItem(x);let y=r;if(i&&n>2?y=Math.pow(10,Math.log(h)*Math.LOG10E+p-50):y+=s,c){let D=r+f;for(i&&(n>2&&(f=this._adjustMinMax(r,y,10).step),D=r+f);D<y-s*1e-11;){let w;this.minorDataItems.length<b+1?(w=new he(this,void 0,{}),this.minorDataItems.push(w),this.processDataItem(w)):w=this.minorDataItems[b],this._createAssets(w,["minor"],!0),this._toggleDataItem(w,!0),w.setRaw("value",D);const M=w.get("label");M&&(l?M.set("text",this._formatText(D)):M.setPrivate("visible",!1)),this._prepareDataItem(w),D+=f,b++}}if(r=y,_==r)break;let A=Math.pow(10,Math.floor(Math.log(Math.abs(s))*Math.LOG10E));if(A<1&&!i){let D=Math.round(Math.abs(Math.log(Math.abs(A))*Math.LOG10E))+2;r=I(r,D)}p++,i&&n<=2&&r-s<s&&(r=s),_=r}for(let x=p;x<this.dataItems.length;x++)this._toggleDataItem(this.dataItems[x],!1);for(let x=b;x<this.minorDataItems.length;x++)this._toggleDataItem(this.minorDataItems[x],!1);T(this.series,x=>{x.inited&&x._markDirtyAxes()}),this._updateGhost()}}_prepareDataItem(e,t){let i=this.get("renderer"),s=e.get("value"),a=e.get("endValue"),o=this.valueToPosition(s),r=o,n=this.valueToPosition(s+this.getPrivate("step"));v(a)&&(r=this.valueToPosition(a),n=r),e.get("isRange")&&a==null&&(n=o);let h=r,u=e.get("labelEndValue");u!=null&&(h=this.valueToPosition(u)),i.updateLabel(e.get("label"),o,h,t);const l=e.get("grid");if(i.updateGrid(l,o,r),l&&(s==this.get("baseValue",0)?(l.addTag("base"),l._applyThemes()):l.hasTag("base")&&(l.removeTag("base"),l._applyThemes())
1),i.updateTick(e.get("tick"),o,h,t),i.updateFill(e.get("axisFill"),o,n),this._processBullet(e),i.updateBullet(e.get("bullet"),o,r),!e.get("isRange")){const c=this.get("fillRule");c&&c(e)}}_handleRangeChange(){let e=this.positionToValue(this.get("start",0)),t=this.positionToValue(this.get("end",1));const i=this.get("renderer").gridCount();let s=this._adjustMinMax(e,t,i,!0),a=ut(s.step);this.setPrivateRaw("stepDecimalPlaces",a),e=I(e,a),t=I(t,a),s=this._adjustMinMax(e,t,i,!0);let o=s.step;e=s.min,t=s.max,(this.getPrivate("selectionMin")!==e||this.getPrivate("selectionMax")!==t||this.getPrivate("step")!==o)&&(this.setPrivateRaw("selectionMin",e),this.setPrivateRaw("selectionMax",t),this.setPrivateRaw("step",o))}positionToValue(e){const t=this.getPrivate("min"),i=this.getPrivate("max");return this.get("logarithmic")?Math.pow(Math.E,(e*(Math.log(i)*Math.LOG10E-Math.log(t)*Math.LOG10E)+Math.log(t)*Math.LOG10E)/Math.LOG10E):e*(i-t)+t}valueToPosition(e){const t=this.getPrivate("min"),i=this.getPrivate("max");if(this.get("logarithmic")){if(e<=0){let s=this.get("treatZeroAs");v(s)&&(e=s)}return(Math.log(e)*Math.LOG10E-Math.log(t)*Math.LOG10E)/(Math.log(i)*Math.LOG10E-Math.log(t)*Math.LOG10E)}else return(e-t)/(i-t)}valueToFinalPosition(e){const t=this.getPrivate("minFinal"),i=this.getPrivate("maxFinal");if(this.get("logarithmic")){if(e<=0){let s=this.get("treatZeroAs");v(s)&&(e=s)}return(Math.log(e)*Math.LOG10E-Math.log(t)*Math.LOG10E)/(Math.log(i)*Math.LOG10E-Math.log(t)*Math.LOG10E)}else return(e-t)/(i-t)}
1getX(e,t,i){e=i+(e-i)*t;const s=this.valueToPosition(e);return this._settings.renderer.positionToCoordinate(s)}getY(e,t,i){e=i+(e-i)*t;const s=this.valueToPosition(e);return this._settings.renderer.positionToCoordinate(s)}getDataItemCoordinateX(e,t,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionX(e,t,i,s))}getDataItemPositionX(e,t,i,s){let a=e.get(t);if(e.get("stackToItemX")){const r=e.component;a=a*s+r.getStackedXValueWorking(e,t)}else a=this._baseValue+(a-this._baseValue)*s;return this.valueToPosition(a)}getDataItemCoordinateY(e,t,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionY(e,t,i,s))}getDataItemPositionY(e,t,i,s){let a=e.get(t);if(e.get("stackToItemY")){const r=e.component;a=a*s+r.getStackedYValueWorking(e,t)}else a=this._baseValue+(a-this._baseValue)*s;return this.valueToPosition(a)}basePosition(){return this.valueToPosition(this.baseValue())}baseValue(){const e=Math.min(this.getPrivate("minFinal",-1/0),this.getPrivate("selectionMin",-1/0)),t=Math.max(this.getPrivate("maxFinal",1/0),this.getPrivate("selectionMax",1/0));let i=this.get("baseValue",0);return i<e&&(i=e),i>t&&(i=t),i}cellEndValue(e){return e}fixSmallStep(e){return 1+e===1?(e*=2,this.fixSmallStep(e)):e}_fixMin(e){return e}_fixMax(e){return e}_calculateTotals(){if(this.get("calculateTotals")){let e=this.series[0];if(e){let t=e.startIndex();if(e.dataItems.length>0){t>0&&t--;let i=e.endIndex();i<e.dataItems.length&&i++;let s,a;e.get("yAxis")==this?(s="valueY",a="vcy"):e.get("xAxis")==this&&(s="valueX",a="vcx");let o=s+"Working";if(s)for(let r=t;r<i;r++){let n=0,h=0;T(this.series,u=>{if(!u.get("excludeFromTotal")){let l=u.dataItems[r];if(l){let c=l.get(o)*u.get(a);H(c)||(n+=c,h+=Math.abs(c))}}}),T(this.series,u=>{if(!u.get("excludeFromTotal")){let l=u.dataItems[r];if(l){let c=l.get(o)*u.get(a);if(!H(c)){l.set(s+"Total",h),l.set(s+"Sum",n);let d=c/h*100;h==0&&(d=0),l.set(s+"TotalPercent",d)}}}})}}}}}_getSelectionMinMax(){const e=this.getPrivate("minFinal"),t=this.getPrivate("maxFinal"),i=this.get("min"),s=this.get("max");let a=this.get("extraMin",0),o=this.get("extraMax",0);this.get("logarithmic")&&(this.get("extraMin")==null&&(a=.1),this.get("extraMax")==null&&(o=.2));const r=this.get("renderer").gridCount(),n=this.get("strictMinMaxSelection");let h=this.get("strictMinMax");if(v(e)&&v(t)){let u=t,l=e;if(T(this.series,x=>{if(!x.get("ignoreMinMax")){let k,y;const A=x.getPrivate("outOfSelection");if(x.get("xAxis")===this){if(!A){let D=x.getPrivate("minX"),w=x.getPrivate("maxX");(x.startIndex()!=0||x.endIndex()!=x.dataItems.length)&&(D=void 0,w=void 0),k=x.getPrivate("selectionMinX",D),y=x.getPrivate("selectionMaxX",w)}}else if(x.get("yAxis")===this&&!A){let D=x.getPrivate("minY"),w=x.getPrivate("maxY");(x.startIndex()!=0||x.endIndex()!=x.dataItems.length)&&(D=void 0,w=void 0),k=x.getPrivate("selectionMinY",D),y=x.getPrivate("selectionMaxY",w)}!x.isHidden()&&!x.isShowing()&&(v(k)&&(u=Math.min(u,k)),v(y)&&(l=Math.max(l,y)))}}),this.axisRanges.each(x=>{if(x.get("affectsMinMax")){let k=x.get("value");k!=null&&(u=Math.min(u,k),l=Math.max(l,k)),k=x.get("endValue"),k!=null&&(u=Math.min(u,k),l=Math.max(l,k))}}),u>l&&([u,l]=[l,u]),v(i)?h?u=i:u=e:h&&v(this._minReal)&&(u=this._minReal),v(s)?h?l=s:l=t:h&&v(this._maxReal)&&(l=this._maxReal),u===l){let x=u;if(u-=this._deltaMinMax,l+=this._deltaMinMax,u<e){let y=x-e;y==0&&(y=this._deltaMinMax),u=x-y,l=x+y,h=!0}let k=this._adjustMinMax(u,l,r,h);u=k.min,l=k.max}let c=u,d=l,g=l-u;u-=g*a,l+=g*o;let m=this._adjustMinMax(u,l,r);u=m.min,l=m.max,u=le(u,e,t),l=le(l,e,t),m=this._adjustMinMax(u,l,r,!0),h||(u=m.min,l=m.max);const f=this.get("syncWithAxis");if(f&&(m=this._syncAxes(u,l,m.step,f.getPrivate("selectionMinFinal",f.getPrivate("minFinal",0)),f.getPrivate("selectionMaxFinal",f.getPrivate("maxFinal",1)),f.getPrivate("selectionStepFinal",f.getPrivate("step",1))),m.min<e&&(m.min=e),m.max>t&&(m.max=t),u=m.min,l=m.max),h&&(v(i)&&(u=Math.max(u,i)),v(s)&&(l=Math.min(l,s))),n&&(u=c-(d-c)*a,l=d+(d-c)*o),h){v(i)?u=i:u=c,v(s)?l=s:l=d,l-u<=1e-8&&(u-=this._deltaMinMax,l+=this._deltaMinMax);let x=l-u;u-=x*a,l+=x*o}this.get("logarithmic")&&(u<=0&&(u=c*(1-Math.min(a,.99))),u<e&&(u=e),l>t&&(l=t));let p=Math.min(20,Math.ceil(Math.log(this.getPrivate("maxZoomFactor",100)+1)/Math.LN10)+2),b=I(this.valueToFinalPosition(u),p),_=I(this.valueToFinalPosition(l),p);this.setPrivateRaw("selectionMinFinal",u),this.setPrivateRaw("selectionMaxFinal",l),this.setPrivateRaw("selectionStepFinal",m.step),this.zoom(b,_)}}_getMinMax(){let e=this.get("min"),t=this.get("max"),i=1/0,s=-1/0,a=this.get("extraMin",0),o=this.get("extraMax",0);this.get("logarithmic")&&(this.get("strictMinMax")||(this.get("extraMin")==null&&(a=.1),this.get("extraMax")==null&&(o=.2)));let r=1/0;if(T(this.series,_=>{if(!_.get("ignoreMinMax")){let x,k;if(_.get("xAxis")===this?(x=_.getPrivate("minX"),k=_.getPrivate("maxX")):_.get("yAxis")===this&&(x=_.getPrivate("minY"),k=_.getPrivate("maxY")),v(x)&&v(k)){i=Math.min(i,x),s=Math.max(s,k);let y=k-x;y<=0&&(y=Math.abs(k/100)),y<r&&(r=y)}}}),this.axisRanges.each(_=>{if(_.get("affectsMinMax")){let x=_.get("value");x!=null&&(i=Math.min(i,x),s=Math.max(s,x)),x=_.get("endValue"),x!=null&&(i=Math.min(i,x),s=Math.max(s,x))}}),this.get("logarithmic")){let _=this.get("treatZeroAs");v(_)&&i<=0&&(i=_)}if(i===0&&s===0&&(s=.9,i=-.9),v(e)&&(i=e),v(t)&&(s=t),i===1/0||s===-1/0){this.setPrivate("minFinal",void 0),this.setPrivate("maxFinal",void 0);return}i>s&&([i,s]=[s,i]);const n=i,h=s;let u=this.adapters.fold("min",i),l=this.adapters.fold("max",s);this._minRealLog=i,v(u)&&(i=u),v(l)&&(s=l),i=this._fixMin(i),s=this._fixMax(s),s-i<=1/Math.pow(10,15)&&(s-i!==0?this._deltaMinMax=(s-i)/2:this._getDelta(s),i-=this._deltaMinMax,s+=this._deltaMinMax),i-=(s-i)*a,s+=(s-i)*o,this.get("logarithmic")&&(i<0&&n>=0&&(i=0),s>0&&h<=0&&(s=0)),this._minReal=i,this._maxReal=s;let c=this.get("strictMinMax"),d=this.get("strictMinMaxSelection",!1);d&&(c=d);let g=c;v(t)&&(g=!0);let m=this.get("renderer").gridCount(),f=this._adjustMinMax(i,s,m,g);if(i=f.min,s=f.max,f=this._adjustMinMax(i,s,m,!0),i=f.min,s=f.max,c){v(e)?i=e:i=this._minReal,v(t)?s=t:s=this._maxReal,s-i<=1e-8&&(i-=this._deltaMinMax,s+=this._deltaMinMax);let _=s-i;i-=_*a,s+=_*o}u=this.adapters.fold("min",i),l=this.adapters.fold("max",s),v(u)&&(i=u),v(l)&&(s=l),r==1/0&&(r=s-i);let p=Math.round(Math.abs(Math.log(Math.abs(s-i))*Math.LOG10E))+5;i=I(i,p),s=I(s,p);const b=this.get("syncWithAxis");if(b&&(f=this._syncAxes(i,s,f.step,b.getPrivate("minFinal",b.getPrivate("min",0)),b.getPrivate("maxFinal",b.getPrivate("max",1)),b.getPrivate("step",1)),i=f.min,s=f.max),this.setPrivateRaw("maxZoomFactor",Math.max(1,Math.ceil((s-i)/r*this.get("maxZoomFactor",100)))),this._fixZoomFactor(),this.get("logarithmic")&&(this._minLogAdjusted=i,i=this._minReal,s=this._maxReal,i<=0&&(i=n*(1-Math.min(a,.99)))),v(i)&&v(s)&&(this.getPrivate("minFinal")!==i||this.getPrivate("maxFinal")!==s)){this.setPrivate("minFinal",i),this.setPrivate("maxFinal",s),this._saveMinMax(i,s);const _=this.get("interpolationDuration",0),x=this.get("interpolationEasing");this.animatePrivate({key:"min",to:i,duration:_,easing:x}),this.animatePrivate({key:"max",to:s,duration:_,easing:x})}}_fixZoomFactor(){}_getDelta(e){let t=Math.log(Math.abs(e))*Math.LOG10E,i=Math.pow(10,Math.floor(t));i=i/10,this._deltaMinMax=i}
1_saveMinMax(e,t){}_adjustMinMax(e,t,i,s){i<=1&&(i=1),i=Math.round(i);let a=e,o=t,r=t-e;r===0&&(r=Math.abs(t));let n=Math.log(Math.abs(r))*Math.LOG10E,h=Math.pow(10,Math.floor(n));h=h/10;let u=h;s&&(u=0),s?(e=Math.floor(e/h)*h,t=Math.ceil(t/h)*h):(e=Math.ceil(e/h)*h-u,t=Math.floor(t/h)*h+u),e<0&&a>=0&&(e=0),t>0&&o<=0&&(t=0),n=Math.log(Math.abs(r))*Math.LOG10E,h=Math.pow(10,Math.floor(n)),h=h/100;let l=Math.ceil(r/i/h)*h,c=Math.pow(10,Math.floor(Math.log(Math.abs(l))*Math.LOG10E)),d=Math.ceil(l/c);d>5?d=10:d<=5&&d>2&&(d=5),l=Math.ceil(l/(c*d))*c*d;let g=this.get("maxPrecision");if(v(g)){let b=ct(l,g);g<Number.MAX_VALUE&&l!==b&&(l=b,l==0&&(l=1))}let m=0;c<1&&(m=Math.round(Math.abs(Math.log(Math.abs(c))*Math.LOG10E))+1,l=I(l,m));let f=Math.floor(e/l);e=I(l*f,m);let p;return s?p=Math.floor(t/l):p=Math.ceil(t/l),p===f&&p++,t=I(l*p,m),t<o&&(t=t+l),e>a&&(e=e-l),l=this.fixSmallStep(l),{min:e,max:t,step:l}}getTooltipText(e,t){const i=this.get("tooltipNumberFormat",this.get("numberFormat")),s=this.getNumberFormatter(),a=this.get("extraTooltipPrecision",0),o=this.getPrivate("stepDecimalPlaces",0)+a,r=I(this.positionToValue(e),o);return i?s.format(r,i):s.format(r,void 0,o)}getSeriesItem(e,t){let i=this.getPrivate("name")+this.get("renderer").getPrivate("letter"),s=this.positionToValue(t),a,o;if(T(e.dataItems,(r,n)=>{const h=Math.abs(r.get(i)-s);(a===void 0||h<o)&&(a=n,o=h)}),a!=null)return e.dataItems[a]}zoomToValues(e,t,i){const s=this.getPrivate("minFinal",this.getPrivate("min",0)),a=this.getPrivate("maxFinal",this.getPrivate("max",1));this.getPrivate("min")!=null&&this.getPrivate("max")!=null&&this.zoom((e-s)/(a-s),(t-s)/(a-s),i)}_syncAxes(e,t,i,s,a,o){if(this.get("syncWithAxis")){let n=Math.round(a-s)/o,h=Math.round((t-e)/i),u=this.get("renderer").gridCount();if(v(n)&&v(h)){let l=!1,c=0,d=(t-e)*.01,g=e,m=t,f=i;for(;l!=!0;)if(l=this._checkSync(g,m,f,n),c++,c>500&&(l=!0),l)e=g,t=m,i=f;else{c/3==Math.round(c/3)?(g=e-d*c,e>=0&&g<0&&(g=0)):(m=t+d*c,m<=0&&m>0&&(m=0));let p=this._adjustMinMax(g,m,u,!0);g=p.min,m=p.max,f=p.step}}}return{min:e,max:t,step:i}}_checkSync(e,t,i,s){let a=(t-e)/i;for(let o=1;o<s;o++)if(I(a/o,1)==s||a*o==s)return!0;return!1}getCellWidthPosition(){let e=this.getPrivate("selectionMax",this.getPrivate("max")),t=this.getPrivate("selectionMin",this.getPrivate("min"));return v(e)&&v(t)?this.getPrivate("step",1)/(e-t):.05}nextPosition(e){e==null&&(e=1),this.get("renderer").getPrivate("letter")=="Y"&&(e*=-1);let t=this.positionToValue(this.getPrivate("tooltipPosition",0));return t+=this.getPrivate("step",1)*e,t=le(t,this.getPrivate("selectionMin",0),this.getPrivate("selectionMax",1)),this.toGlobalPosition(this.valueToPosition(t))}}Object.defineProperty(be,"className",{enumerable:!0,configurable:!0,writable:!0,value:"ValueAxis"});Object.defineProperty(be,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:K.classNames.concat([be.className])});class ae extends K{constructor(){super(...arguments),Object.defineProperty(this,"_frequency",{enumerable:!0,configurable:!0,writable:!0,value:1}),Object.defineProperty(this,"_itemMap",{enumerable:!0,configurable:!0,writable:!0,value:{}})}_afterNew(){this._settings.themeTags=j(this._settings.themeTags,["axis"]),this.fields.push("category","id","cellSize"),this.setPrivateRaw("name","category"),this.addTag("category"),super._afterNew()}_afterDataChange(){super._afterDataChange();const e=this.dataItems.length;e>0&&this.setPrivateRaw("maxZoomFactor",e),this.setPrivateRaw("startIndex",Math.min(this.getPrivate("startIndex",0),e)),this.setPrivateRaw("endIndex",Math.min(this.getPrivate("endIndex",e),1))}_prepareChildren(){super._prepareChildren();const e=this.dataItems.length;let t=0;this._valuesDirty&&(this._itemMap={},T(this.dataItems,o=>{o.setRaw("index",t),this._itemMap[o.get("category")]=o,t++}),this.setPrivateRaw("maxZoomFactor",e));let i=this.get("start",0),s=this.get("end",1),a=this._getIndices(i,s);this.setPrivateRaw("startIndex",a.startIndex),this.setPrivateRaw("endIndex",a.endIndex),(this._sizeDirty||this._valuesDirty||this.isDirty("start")||this.isDirty("end")||this.isPrivateDirty("endIndex")||this.isPrivateDirty("startIndex")||this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&this.dataItems.length>0&&(this._handleRangeChange(),this._prepareAxisItems(),this._updateAxisRanges())}adjustZoom(){const e=this.dataItems.length;if(e>1){let t=this.get("maxZoomCount",this.dataItems.length),i=this.get("minZoomCount",1),s=0,a=this.getPrivate("startIndex",0),o=this.getPrivate("endIndex",0);const r=this._sAnimation,n=this._eAnimation;let h=this.get("start",0),u=!1;r&&!r.stopped&&(h=Number(r.to),u=!0);let l=this.get("end",1);if(n&&!n.stopped&&(l=Number(n.to),u=!0),u){const c=this._getIndices(h,l);a=c.startIndex,o=c.endIndex}for(let c=a;c<o;c++){const d=this.dataItems[c];s+=d.get("finalCellSize",1)}if(s<=i){let c=0;for(let d=a;d<e;d++){const g=this.dataItems[d];if(c+=g.get("finalCellSize",1),o=d+1,c>=i)break}if(c<i)for(let d=a-1;d>=0;d--){const g=this.dataItems[d];if(c+=g.get("finalCellSize",1),a=d,c>=i)break}this.zoomToIndexes(a,o)}else if(s>=t){let c=s;for(let d=o-1;d>=a;d--){const g=this.dataItems[d];if(c-=g.get("finalCellSize",1),c<=t){o=d+1;break}}this.zoomToIndexes(a,o)}}}_handleRangeChange(){T(this.series,e=>{let t=this.dataItems[this.startIndex()].get("category"),i=this.dataItems[this.endIndex()-1].get("category"),s=e.get("baseAxis"),a=e.get("xAxis"),o=e.get("yAxis");if(a instanceof ae&&o instanceof ae)e._markDirtyAxes();else if(s===this){let r,n,h=o;if(a===s?(e.get("categoryXField")&&(r="categoryX"),e.get("openCategoryXField")&&(n="openCategoryX")):o===s&&(e.get("categoryYField")&&(r="categoryY"),e.get("openCategoryYField")&&(n="openCategoryY"),h=a),h instanceof be&&(r||n)){let c=function(f,p,b,_,x,k){let y,A=p.categoryToIndex(x);for(;!y&&A>=0&&A<p.dataItems.length;){let D=p.dataItems[A].get("category");if(k=="previous")for(let w=f.dataItems.length-1;w>=0;w--){let M=f.dataItems[w];if(b&&M.get(b)===D){y=M;break}if(_&&M.get(_)===D){y=M;break}}else for(let w=0,M=f.dataItems.length;w<M;w++){let C=f.dataItems[w];if(b&&C.get(b)===D){y=C;break}if(_&&C.get(_)===D){y=C;break}}y||(A+=k==="previous"?-1:1)}return y},u,l;u=c(e,this,r,n,t,"next"),l=c(e,this,r,n,i,"previous");let d=0,g=e.dataItems.length;u&&(d=e.dataItems.indexOf(u)),l&&(g=e.dataItems.indexOf(l)+1),e.setPrivate("startIndex",d),e.setPrivate("endIndex",g);let m=!1;for(let f=d;f<g;f++){const p=e.dataItems[f];if(T(e.__valueXShowFields,b=>{p.get(b)!=null&&(m=!0)}),T(e.__valueYShowFields,b=>{p.get(b)!=null&&(m=!0)}),m)break}e.setPrivate("outOfSelection",!m)}e._markDirtyAxes()}})}_prepareAxisItems(){var e;const t=this.get("renderer"),i=this.dataItems.length;let s=this.startIndex();s>0&&s--;let a=this.endIndex();a<i&&a++;const o=t.get("minorLabelsEnabled"),r=t.get("minorGridEnabled",o);
vendor: 5,790 bytes, line 1
1let n=t.axisLength()/Math.max(t.get("minGridDistance"),1),h=Math.max(1,Math.min(i,Math.ceil((a-s)/n)));s=Math.floor(s/h)*h,this._frequency=h;for(let l=0;l<i;l++)this._toggleDataItem(this.dataItems[l],!1);let u=this.dataItems[s].get("index",0);for(let l=s;l<a;l=l+h){let c=this.dataItems[l];this._createAssets(c,[]),this._toggleDataItem(c,!0);let d=h;r&&(d=1),this._prepareDataItem(c,u,d),u++}if(t.get("minorGridEnabled"))for(let l=s;l<a;l++){let c=this.dataItems[l];l%h!=0&&(this._createAssets(c,["minor"],!0),this._toggleDataItem(c,!0),this._prepareDataItem(c,0,1),o||(e=c.get("label"))===null||e===void 0||e.setPrivate("visible",!1))}this._updateGhost()}_prepareDataItem(e,t,i){let s=this.get("renderer"),a=e.get("categoryLocation",0),o=e.get("endCategoryLocation",1),r=e.get("index");v(r)||(r=this.categoryToIndex(e.get("category")));let n=this.indexToPosition(r,a),h=e.get("endCategory"),u;h?(u=this.categoryToIndex(h),v(u)||(u=r)):u=r;let l=this.indexToPosition(u,o),c,d;if(e.get("isRange")){if(c=u,!v(r)){this._toggleDataItem(e,!1);return}}else c=r+this._frequency-1;d=this.indexToPosition(c,o),s.updateLabel(e.get("label"),n,l,i),s.updateGrid(e.get("grid"),n,l),s.updateTick(e.get("tick"),n,l,i),s.updateFill(e.get("axisFill"),n,d),this._processBullet(e),s.updateBullet(e.get("bullet"),n,l);const g=this.get("fillRule");g&&g(e,t)}startIndex(){let e=this.dataItems.length;return Math.min(Math.max(this.getPrivate("startIndex",0),0),e-1)}endIndex(){let e=this.dataItems.length;return Math.max(1,Math.min(this.getPrivate("endIndex",e),e))}baseValue(){}basePosition(){return 0}getX(e){let t=this._itemMap[e];return t?this._settings.renderer.positionToCoordinate(this.indexToPosition(t.get("index",0))):NaN}getY(e){let t=this._itemMap[e];return t?this._settings.renderer.positionToCoordinate(this.indexToPosition(t.get("index",0))):NaN}getDataItemPositionX(e,t,i,s){const a=e.get(t),o=this._itemMap[a];return o?this.indexToPosition(o.get("index",0),i):NaN}getDataItemCoordinateX(e,t,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionX(e,t,i,s))}getDataItemPositionY(e,t,i,s){const a=e.get(t),o=this._itemMap[a];return o?this.indexToPosition(o.get("index",0),i):NaN}getDataItemCoordinateY(e,t,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionY(e,t,i,s))}indexToPosition(e,t,i){let s=this.dataItems.length,a=0;if(s==0||(e>=s&&(e=s-1,t=1),v(t)||(t=.5),!v(e)))return 0;let o=this.get("startLocation",0),r=this.get("endLocation",1);if(!this.get("cellSizeField"))s-=o,s-=1-r,a=(e+t-o)/s;else{let n=i?"finalCellSize":"cellSize";const h=this.dataItems;let u=0;T(this.dataItems,d=>{u+=d.get(n,1)}),u-=o*h[0].get(n,1),u-=(1-r)*h[h.length-1].get(n,1);let l=0;for(let d=0;d<e;d++)l+=h[d].get(n,1);let c=h[e].get(n,1);a=(l+t*c-o*h[0].get(n,1))/u}if(!i){let n=this.dataItems[e];n&&(a+=n.get("deltaPosition",0))}return a}categoryToPosition(e){let t=this._itemMap[e];return t?this.indexToPosition(t.get("index")):NaN}categoryToIndex(e){let t=this._itemMap[e];return t?t.get("index"):NaN}dataItemToPosition(e){return this.indexToPosition(e.get("index"))}roundAxisPosition(e,t){return e+=(.5-t)/this.dataItems.length,this.indexToPosition(this.axisPositionToIndex(e),t)}axisPositionToIndex(e){let t=this.dataItems.length;if(t===0)return 0;if(this.get("cellSizeField")){let i=0,s=[];T(this.dataItems,h=>{const u=h.get("cellSize",1);s.push(u),i+=u});let a=this.get("startLocation",0),o=this.get("endLocation",1);i-=a,i-=1-o;let r=e*i+a,n=0;for(let h=0;h<t;h++){const u=s[h];if(r<n+u)return h;n+=u}return t-1}else return le(Math.floor(e*t),0,t-1)}getTooltipText(e,t){const i=this.dataItems[this.axisPositionToIndex(e)];if(i){const s=i.get("label");if(s)return dt(s,this.get("tooltipText",""))}}_updateTooltipText(e,t){e._setDataItem(this.dataItems[this.axisPositionToIndex(t)]),e.label.text.markDirtyText()}getSeriesItem(e,t){if(this.dataItems.length>0){let i=this.getPrivate("name")+this.get("renderer").getPrivate("letter"),s=this.axisPositionToIndex(t),a=e.dataItems[s],o=this.dataItems[s],r=o.get("category");if(a&&o&&a.get(i)===r)return a;for(let n=0,h=e.dataItems.length;n<h;n++){let u=e.dataItems[n];if(u.get(i)===r)return u}}}_getIndices(e,t){let i=this.dataItems.length,s=0,a=i,o="cellSize";if(this.get("cellSizeField")){let r=0;const n=this.dataItems;if(n.length==0)return{startIndex:0,endIndex:0};T(n,u=>{r+=u.get(o,1)}),r-=this.get("startLocation",0)*n[0].get(o,1),r-=(1-this.get("endLocation",1))*n[n.length-1].get(o,1);let h=0;for(let u=0;u<i;u++)if(h+=this.dataItems[u].get(o,1),Math.round(h)>Math.round(e*r)){s=u;break}for(let u=s+1;u<i;u++)if(h+=this.dataItems[u].get(o,1),Math.round(h)>=Math.round(t*r)){a=u+1;break}s=Math.max(s,0),a=Math.min(a,i)}else s=Math.max(Math.round(this.get("start",0)*i),0),a=Math.min(Math.round(this.get("end",1)*i),i);return{startIndex:s,endIndex:a}}zoomToIndexes(e,t,i){let s=this.dataItems.length;this.get("cellSizeField")?(e=Math.min(Math.max(e,0),s),t=Math.max(Math.min(t,s),1),this.setPrivateRaw("startIndex",e),this.setPrivateRaw("endIndex",t),this.zoom(this.indexToPosition(e,0,!0),this.indexToPosition(t,0,!0),i)):this.zoom(e/s,t/s,i)}zoomToCategories(e,t,i){this.zoomToIndexes(this.categoryToIndex(e),this.categoryToIndex(t)+1,i)}getCellWidthPosition(){return this._frequency/this.dataItems.length/(this.get("end",1)-this.get("start",0))}nextPosition(e){e==null&&(e=1),this.get("renderer").getPrivate("letter")=="Y"&&(e*=-1);const t=this.getPrivate("tooltipPosition",0),i=le(this.axisPositionToIndex(t)+e,0,this.dataItems.length-1);return this.toGlobalPosition(this.indexToPosition(i))}}Object.defineProperty(ae,"className",{enumerable:!0,configurable:!0,writable:!0,value:"CategoryAxis"});Object.defineProperty(ae,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:K.classNames.c
1oncat([ae.className])});class ve extends He{constructor(){super(...arguments),Object.defineProperty(this,"_tickPoints",{enumerable:!0,configurable:!0,writable:!0,value:[]})}}Object.defineProperty(ve,"className",{enumerable:!0,configurable:!0,writable:!0,value:"AxisLabel"});Object.defineProperty(ve,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:He.classNames.concat([ve.className])});class ye extends We{constructor(){super(...arguments),Object.defineProperty(this,"_tickPoints",{enumerable:!0,configurable:!0,writable:!0,value:[]})}}Object.defineProperty(ye,"className",{enumerable:!0,configurable:!0,writable:!0,value:"AxisTick"});Object.defineProperty(ye,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:We.classNames.concat([ye.className])});class Q extends z{constructor(){super(...arguments),Object.defineProperty(this,"_axisLength",{enumerable:!0,configurable:!0,writable:!0,value:100}),Object.defineProperty(this,"_start",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_end",{enumerable:!0,configurable:!0,writable:!0,value:1}),Object.defineProperty(this,"_inversed",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_minSize",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"chart",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_lc",{enumerable:!0,configurable:!0,writable:!0,value:1}),Object.defineProperty(this,"_ls",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_thumbDownPoint",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_downStart",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_downEnd",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"ticks",{enumerable:!0,configurable:!0,writable:!0,value:this.addDisposer(new U(N.new({}),()=>ye._new(this._root,{themeTags:j(this.ticks.template.get("themeTags",[]),this.get("themeTags",[]))},[this.ticks.template])))}),Object.defineProperty(this,"grid",{enumerable:!0,configurable:!0,writable:!0,value:this.addDisposer(new U(N.new({}),()=>se._new(this._root,{themeTags:j(this.grid.template.get("themeTags",[]),this.get("themeTags",[]))},[this.grid.template])))}),Object.defineProperty(this,"axisFills",{enumerable:!0,configurable:!0,writable:!0,value:this.addDisposer(new U(N.new({}),()=>z._new(this._root,{themeTags:j(this.axisFills.template.get("themeTags",["axis","fill"]),this.get("themeTags",[]))},[this.axisFills.template])))}),Object.defineProperty(this,"labels",{enumerable:!0,configurable:!0,writable:!0,value:this.addDisposer(new U(N.new({}),()=>ve._new(this._root,{themeTags:j(this.labels.template.get("themeTags",[]),this.get("themeTags",[]))},[this.labels.template])))}),Object.defineProperty(this,"axis",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"thumb",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}makeTick(e,t){const i=this.ticks.make();return i._setDataItem(e),e.setRaw("tick",i),i.set("themeTags",j(i.get("themeTags"),t)),this.axis.labelsContainer.children.push(i),this.ticks.push(i),i}makeGrid(e,t){const i=this.grid.make();return i._setDataItem(e),e.setRaw("grid",i),i.set("themeTags",j(i.get("themeTags"),t)),this.axis.gridContainer.children.push(i),this.grid.push(i),i}makeAxisFill(e,t){const i=this.axisFills.make();return i._setDataItem(e),i.set("themeTags",j(i.get("themeTags"),t)),this.axis.gridContainer.children.push(i),e.setRaw("axisFill",i),this.axisFills.push(i),i}makeLabel(e,t){const i=this.labels.make();return i.set("themeTags",j(i.get("themeTags"),t)),this.axis.labelsContainer.children.moveValue(i,0),i._setDataItem(e),e.setRaw("label",i),this.labels.push(i),i}axisLength(){return 0}gridCount(){return this.axisLength()/this.get("minGridDistance",50)}_updatePositions(){}_afterNew(){super._afterNew(),this.set("isMeasured",!1);const e=this.thumb;e&&(this._disposers.push(e.events.on("pointerdown",t=>{this._handleThumbDown(t)})),this._disposers.push(e.events.on("globalpointerup",t=>{this._handleThumbUp(t)})),this._disposers.push(e.events.on("globalpointermove",t=>{this._handleThumbMove(t)})))}_beforeChanged(){super._beforeChanged(),this.isDirty("minGridDistance")&&this.root.events.once("frameended",()=>{this.axis.markDirtySize()})}_changed(){if(super._changed(),this.isDirty("pan")){const e=this.thumb;if(e){const t=this.axis.labelsContainer,i=this.get("pan");i=="zoom"?t.children.push(e):i=="none"&&t.children.removeValue(e)}}}_handleThumbDown(e){this._thumbDownPoint=this.toLocal(e.point);const t=this.axis;this._downStart=t.get("start"),this._downEnd=t.get("end")}_handleThumbUp(e){this._thumbDownPoint=void 0}_handleThumbMove(e){const t=this._thumbDownPoint;if(t){const i=this.toLocal(e.point),s=this._downStart,a=this._downEnd,o=this._getPan(i,t)*Math.min(1,a-s)/2*this.get("panSensitivity",1);this.axis.zoom(s-o,a+o,0)}}_getPan(e,t){return 0}positionToCoordinate(e){return this._inversed?(this._end-e)*this._axisLength:(e-this._start)*this._axisLength}updateTooltipBounds(e){}_updateSize(){this.markDirty(),this._clear=!0}toAxisPosition(e){const t=this._start||0,i=this._end||1;return e=e*(i-t),this.get("inversed")?e=i-e:e=t+e,e}toGlobalPosition(e){const t=this._start||0,i=this._end||1;
1return this.get("inversed")?e=i-e:e=e-t,e=e/(i-t),e}fixPosition(e){return this.get("inversed")?1-e:e}_updateLC(){}toggleVisibility(e,t,i,s){let a=this.axis;const o=a.get("start",0),r=a.get("end",1);let n=o+(r-o)*(i-1e-4),h=o+(r-o)*(s+1e-4);t<n||t>h?e.setPrivate("visible",!1):e.setPrivate("visible",!0)}_positionTooltip(e,t){const i=this.chart;i&&(e.set("pointTo",this._display.toGlobal(t)),i.inPlot(t)||e.hide())}processAxis(){}}Object.defineProperty(Q,"className",{enumerable:!0,configurable:!0,writable:!0,value:"AxisRenderer"});Object.defineProperty(Q,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:z.classNames.concat([Q.className])});class Te extends Q{constructor(){super(...arguments),Object.defineProperty(this,"thumb",{enumerable:!0,configurable:!0,writable:!0,value:ue.new(this._root,{width:S,isMeasured:!1,themeTags:["axis","x","thumb","zoomgrip"]})})}_afterNew(){this._settings.themeTags=j(this._settings.themeTags,["renderer","x"]),super._afterNew(),this.setPrivateRaw("letter","X");const e=this.grid.template;e.set("height",S),e.set("width",0),e.set("draw",(t,i)=>{t.moveTo(0,0),t.lineTo(0,i.height())}),this.set("draw",(t,i)=>{t.moveTo(0,0),t.lineTo(i.width(),0)})}_changed(){var e;super._changed();const t=this.axis,i=t.ghostLabel;i&&(i.setPrivate("visible",!this.get("inside")),i.set("x",-1e3));const s="opposite",a="inside";if(this.isDirty(s)||this.isDirty(a)){const o=this.chart,r=t.children;if(this.get(a)?t.addTag(a):t.removeTag(a),o){if(this.get(s)){const n=o.topAxesContainer.children;n.indexOf(t)==-1&&n.insertIndex(0,t),t.addTag(s),r.moveValue(this)}else{const n=o.bottomAxesContainer.children;n.indexOf(t)==-1&&n.moveValue(t),t.removeTag(s),r.moveValue(this,0)}(e=t.ghostLabel)===null||e===void 0||e._applyThemes(),this.labels.each(n=>{n._applyThemes()}),this.root._markDirtyRedraw()}t.markDirtySize()}this.thumb.setPrivate("height",t.labelsContainer.height())}_getPan(e,t){return(t.x-e.x)/this.width()}toAxisPosition(e){const t=this._start||0,i=this._end||1;return e-=this._ls,e=e*(i-t)/this._lc,this.get("inversed")?e=i-e:e=t+e,e}toGlobalPosition(e){const t=this._start||0,i=this._end||1;return this.get("inversed")?e=i-e:e=e-t,e=e/(i-t)*this._lc,e+=this._ls,e}_updateLC(){const e=this.axis,t=e.parent;if(t){const i=t.innerWidth();this._lc=this.axisLength()/i,this._ls=(e.x()-t.get("paddingLeft",0))/i}}_updatePositions(){const e=this.axis,t=e.x()-_e(e.get("centerX",0),e.width())-e.parent.get("paddingLeft",0);e.gridContainer.set("x",t),e.topGridContainer.set("x",t),e.bulletsContainer.set("y",this.y());const i=e.chart;if(i){const s=i.plotContainer,a=e.axisHeader;let o=e.get("marginLeft",0),r=e.x()-o;const n=e.parent;n&&(r-=n.get("paddingLeft",0)),a.children.length>0?(o=e.axisHeader.width(),e.set("marginLeft",o+1)):a.set("width",o),a.setAll({x:r,y:-1,height:s.height()+2})}}processAxis(){super.processAxis();const e=this.axis;e.get("width")==null&&e.set("width",S);const t=this._root.verticalLayout;e.set("layout",t),e.labelsContainer.set("width",S),e.axisHeader.setAll({layout:t})}axisLength(){return this.axis.width()}positionToPoint(e){return{x:this.positionToCoordinate(e),y:0}}updateTick(e,t,i,s){if(e){v(t)||(t=0);let a=.5;v(s)&&s>1?a=e.get("multiLocation",a):a=e.get("location",a),v(i)&&i!=t&&(t=t+(i-t)*a),e.set("x",this.positionToCoordinate(t));let o=e.get("length",0);const r=e.get("inside",this.get("inside",!1));this.get("opposite")?(e.set("y",S),r||(o*=-1)):(e.set("y",0),r&&(o*=-1)),e.set("draw",n=>{n.moveTo(0,0),n.lineTo(0,o)}),this.toggleVisibility(e,t,e.get("minPosition",0),e.get("maxPosition",1))}}updateLabel(e,t,i,s){if(e){let a=.5;v(s)&&s>1?a=e.get("multiLocation",a):a=e.get("location",a),v(t)||(t=0);const o=e.get("inside",this.get("inside",!1));this.get("opposite")?o?(e.set("position","absolute"),e.set("y",0)):(e.set("position","relative"),e.set("y",S)):o?(e.set("y",0),e.set("position","absolute")):(e.set("y",void 0),e.set("position","relative")),v(i)&&i!=t&&(t=t+(i-t)*a),e.set("x",this.positionToCoordinate(t)),this.toggleVisibility(e,t,e.get("minPosition",0),e.get("maxPosition",1))}}updateGrid(e,t,i){if(e){v(t)||(t=0);let s=e.get("location",.5);v(i)&&i!=t&&(t=t+(i-t)*s),e.set("x",this.positionToCoordinate(t)),this.toggleVisibility(e,t,0,1)}}updateBullet(e,t,i){if(e){const s=e.get("sprite");if(s){v(t)||(t=0);let a=e.get("location",.5);v(i)&&i!=t&&(t=t+(i-t)*a);let o=this.axis.roundAxisPosition(t,a),r=this.axis._bullets[o],n=-1;if(this.get("opposite")&&(n=1),e.get("stacked"))if(r){let h=r.get("sprite");h&&s.set("y",h.y()+h.height()*n)}else s.set("y",0);this.axis._bullets[o]=e,s.set("x",this.positionToCoordinate(t)),this.toggleVisibility(s,t,0,1)}}}updateFill(e,t,i){if(e){v(t)||(t=0),v(i)||(i=1);let s=this.positionToCoordinate(t),a=this.positionToCoordinate(i);this.fillDrawMethod(e,s,a)}}fillDrawMethod(e,t,i){e.set("draw",s=>{const a=this.axis.gridContainer.height(),o=this.width();i<t&&([i,t]=[t,i]),!(t>o||i<0)&&(s.moveTo(t,0),s.lineTo(i,0),s.lineTo(i,a),s.lineTo(t,a),s.lineTo(t,0))})}positionTooltip(e,t){this._positionTooltip(e,{x:this.positionToCoordinate(t),y:0})}updateTooltipBounds(e){const t=this.get("inside"),i=1e5;let s=this._display.toGlobal({x:0,y:0}),a=s.x,o=0,r=this.axisLength(),n=i,h="up";this.get("opposite")?t?(h="up",o=s.y,n=i):(h="down",o=s.y-i,n=i):t?(h="down",o=s.y-i,n=i):(h="up",o=s.y,n=i);const u={left:a,right:a+r,top:o,bottom:o+n},l=e.get("bounds");Ze(u,l)||(e.set("bounds",u),e.set("pointerOrientation",h))}}Object.defineProperty(Te,"className",{enumerable:!0,configurable:!0,writable:!0,value:"AxisRendererX"});Object.defineProperty(Te,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:Q.classNames.c
1oncat([Te.className])});class ke extends Q{constructor(){super(...arguments),Object.defineProperty(this,"_downY",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"thumb",{enumerable:!0,configurable:!0,writable:!0,value:ue.new(this._root,{height:S,isMeasured:!1,themeTags:["axis","y","thumb","zoomgrip"]})})}_afterNew(){this._settings.themeTags=j(this._settings.themeTags,["renderer","y"]),this._settings.opposite&&this._settings.themeTags.push("opposite"),super._afterNew(),this.setPrivateRaw("letter","Y");const e=this.grid.template;e.set("width",S),e.set("height",0),e.set("draw",(t,i)=>{t.moveTo(0,0),t.lineTo(i.width(),0)}),this.set("draw",(t,i)=>{t.moveTo(0,0),t.lineTo(0,i.height())})}_getPan(e,t){return(e.y-t.y)/this.height()}_changed(){var e;super._changed();const t=this.axis,i=t.ghostLabel;i&&(i.setPrivate("visible",!this.get("inside")),i.set("y",-1e3));const s=this.thumb,a="opposite",o="inside",r=this.chart;if(this.isDirty(a)||this.isDirty(o)){const h=t.children;if(this.get(o)?t.addTag(o):t.removeTag(o),r){if(this.get(a)){const u=r.rightAxesContainer.children;u.indexOf(t)==-1&&u.moveValue(t,0),t.addTag(a),h.moveValue(this,0)}else{const u=r.leftAxesContainer.children;u.indexOf(t)==-1&&u.moveValue(t),t.removeTag(a),h.moveValue(this)}(e=t.ghostLabel)===null||e===void 0||e._applyThemes(),this.labels.each(u=>{u._applyThemes()}),this.root._markDirtyRedraw()}t.markDirtySize()}const n=t.labelsContainer.width();r&&(this.get(a)?s.set("centerX",0):s.set("centerX",n)),s.setPrivate("width",n)}processAxis(){super.processAxis();const e=this.axis;e.get("height")==null&&e.set("height",S);const t=this._root.horizontalLayout;e.set("layout",t),e.labelsContainer.set("height",S),e.axisHeader.set("layout",t)}_updatePositions(){const e=this.axis,t=e.y()-_e(e.get("centerY",0),e.height());e.gridContainer.set("y",t),e.topGridContainer.set("y",t),e.bulletsContainer.set("x",this.x());const i=e.chart;if(i){const s=i.plotContainer,a=e.axisHeader;let o=e.get("marginTop",0);a.children.length>0?(o=e.axisHeader.height(),e.set("marginTop",o+1)):a.set("height",o),a.setAll({y:e.y()-o,x:-1,width:s.width()+2})}}axisLength(){return this.axis.innerHeight()}positionToPoint(e){return{x:0,y:this.positionToCoordinate(e)}}updateLabel(e,t,i,s){if(e){v(t)||(t=0);let a=.5;v(s)&&s>1?a=e.get("multiLocation",a):a=e.get("location",a);const o=this.get("opposite"),r=e.get("inside",this.get("inside",!1));o?(e.set("x",0),r?e.set("position","absolute"):e.set("position","relative")):r?(e.set("x",0),e.set("position","absolute")):(e.set("x",void 0),e.set("position","relative")),v(i)&&i!=t&&(t=t+(i-t)*a),e.set("y",this.positionToCoordinate(t)),this.toggleVisibility(e,t,e.get("minPosition",0),e.get("maxPosition",1))}}updateGrid(e,t,i){if(e){v(t)||(t=0);let s=e.get("location",.5);v(i)&&i!=t&&(t=t+(i-t)*s),e.set("y",this.positionToCoordinate(t)),this.toggleVisibility(e,t,0,1)}}updateTick(e,t,i,s){if(e){v(t)||(t=0);let a=.5;v(s)&&s>1?a=e.get("multiLocation",a):a=e.get("location",a),v(i)&&i!=t&&(t=t+(i-t)*a),e.set("y",this.positionToCoordinate(t));let o=e.get("length",0);const r=e.get("inside",this.get("inside",!1));this.get("opposite")?(e.set("x",0),r&&(o*=-1)):r||(o*=-1),e.set("draw",n=>{n.moveTo(0,0),n.lineTo(o,0)}),this.toggleVisibility(e,t,e.get("minPosition",0),e.get("maxPosition",1))}}updateBullet(e,t,i){if(e){const s=e.get("sprite");if(s){v(t)||(t=0);let a=e.get("location",.5);v(i)&&i!=t&&(t=t+(i-t)*a);let o=this.axis.roundAxisPosition(t,a),r=this.axis._bullets[o],n=1;if(this.get("opposite")&&(n=-1),e.get("stacked"))if(r){let h=r.get("sprite");h&&s.set("x",h.x()+h.width()*n)}else s.set("x",0);this.axis._bullets[o]=e,s.set("y",this.positionToCoordinate(t)),this.toggleVisibility(s,t,0,1)}}}updateFill(e,t,i){if(e){v(t)||(t=0),v(i)||(i=1);let s=this.positionToCoordinate(t),a=this.positionToCoordinate(i);this.fillDrawMethod(e,s,a)}}fillDrawMethod(e,t,i){e.set("draw",s=>{const a=this.axis.gridContainer.width(),o=this.height();i<t&&([i,t]=[t,i]),!(t>o||i<0)&&(s.moveTo(0,t),s.lineTo(a,t),s.lineTo(a,i),s.lineTo(0,i),s.lineTo(0,t))})}positionToCoordinate(e){return this._inversed?(e-this._start)*this._axisLength:(this._end-e)*this._axisLength}positionTooltip(e,t){this._positionTooltip(e,{x:0,y:this.positionToCoordinate(t)})}updateTooltipBounds(e){const t=this.get("inside"),i=1e5;let s=this._display.toGlobal({x:0,y:0}),a=s.y,o=0,r=this.axisLength(),n=i,h="right";this.get("opposite")?t?(h="right",o=s.x-i,n=i):(h="left",o=s.x,n=i):t?(h="left",o=s.x,n=i):(h="right",o=s.x-i,n=i);const u={left:o,right:o+n,top:a,bottom:a+r},l=e.get("bounds");Ze(u,l)||(e.set("bounds",u),e.set("pointerOrientation",h))}_updateLC(){const e=this.axis,t=e.parent;
1if(t){const i=t.innerHeight();this._lc=this.axisLength()/i,this._ls=e.y()/i}}toAxisPosition(e){const t=this._start||0,i=this._end||1;return e-=this._ls,e=e*(i-t)/this._lc,this.get("inversed")?e=t+e:e=i-e,e}toGlobalPosition(e){const t=this._start||0,i=this._end||1;return this.get("inversed")?e=e-t:e=i-e,e=e/(i-t)*this._lc,e+=this._ls,e}fixPosition(e){return this.get("inversed")?e:1-e}}Object.defineProperty(ke,"className",{enumerable:!0,configurable:!0,writable:!0,value:"AxisRendererY"});Object.defineProperty(ke,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:Q.classNames.concat([ke.className])});class Me extends q{constructor(){super(...arguments),Object.defineProperty(this,"allColumns",{enumerable:!0,configurable:!0,writable:!0,value:this.children.push(z.new(this._root,{}))}),Object.defineProperty(this,"allColumnsData",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"columns",{enumerable:!0,configurable:!0,writable:!0,value:this.addDisposer(new U(N.new({}),()=>Ve._new(this._root,{position:"absolute",themeTags:j(this.columns.template.get("themeTags",[]),["series","column"])},[this.columns.template])))})}makeColumn(e,t){const i=t.make();return this.get("turboMode")?i.virtualParent=this.chart:this.mainContainer.children.push(i),i._setDataItem(e),t.push(i),i}_processAxisRange(e){super._processAxisRange(e),e.columns=new U(N.new({}),()=>Ve._new(this._root,{position:"absolute",themeTags:j(e.columns.template.get("themeTags",[]),["series","column"])},[this.columns.template,e.columns.template]))}_beforeColumnsDraw(){this.allColumnsData=[]}_afterColumnsDraw(){this.get("turboMode")&&this.allColumns.set("draw",e=>{e.clear(),T(this.allColumnsData,t=>{const i=t.width,s=t.height,a=t.x,o=t.y,r=t.stroke,n=t.fill,h=t.strokeWidth,u=t.strokeOpacity,l=t.fillOpacity;e.beginFill(n,l),e.beginPath(),e.lineStyle(h,r,u),e.drawRect(a,o,i,s),e.endStroke(),e.endFill()})})}_updateSeriesGraphics(e,t,i,s,a,o,r,n){if(this.get("turboMode")){const h=t.get("stroke"),u=t.get("fillOpacity",1),l=t.get("strokeOpacity",1),c=t.get("strokeWidth",1),d=t.get("fill"),g=this.getPoint(i,a),m=this.getPoint(s,o),f=e.get("point");if(f){const p=this.getPoint(f.x,f.y);f.x=p.x+this._x,f.y=p.y+this._y}i=g.x,s=m.x,a=g.y,o=m.y,e.setRaw("left",i),e.setRaw("right",s),e.setRaw("top",a),e.setRaw("bottom",o),this.allColumnsData.push({width:s-i,height:o-a,x:i,y:a,stroke:h,fill:d,strokeWidth:c,strokeOpacity:l,fillOpacity:u})}else super._updateSeriesGraphics(e,t,i,s,a,o,r,n)}}Object.defineProperty(Me,"className",{enumerable:!0,configurable:!0,writable:!0,value:"ColumnSeries"});Object.defineProperty(Me,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:q.classNames.concat([Me.className])});class Ce extends Z{constructor(){super(...arguments),Object.defineProperty(this,"_endIndex",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_strokeGenerator",{enumerable:!0,configurable:!0,writable:!0,value:et()}),Object.defineProperty(this,"_fillGenerator",{enumerable:!0,configurable:!0,writable:!0,value:pt()}),Object.defineProperty(this,"_legendStroke",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_legendFill",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"strokes",{enumerable:!0,configurable:!0,writable:!0,value:this.addDisposer(new U(N.new({}),()=>z._new(this._root,{themeTags:j(this.strokes.template.get("themeTags",[]),["line","series","stroke"])},[this.strokes.template])))}),Object.defineProperty(this,"fills",{enumerable:!0,configurable:!0,writable:!0,value:this.addDisposer(new U(N.new({}),()=>z._new(this._root,{themeTags:j(this.strokes.template.get("themeTags",[]),["line","series","fill"])},[this.fills.template])))}),Object.defineProperty(this,"_fillTemplate",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_strokeTemplate",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_previousPoint",{enumerable:!0,configurable:!0,writable:!0,value:[0,0,0,0]}),Object.defineProperty(this,"_dindex",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_sindex",{enumerable:!0,configurable:!0,writable:!0,value:0})}_afterNew(){this._fillGenerator.y0(function(e){return e[3]}),this._fillGenerator.x0(function(e){return e[2]}),this._fillGenerator.y1(function(e){return e[1]}),this._fillGenerator.x1(function(e){return e[0]}),super._afterNew()}makeStroke(e){const t=this.mainContainer.children.push(e.make());return e.push(t),t}makeFill(e){const t=this.mainContainer.children.push(e.make());return e.push(t),t}_updateChildren(){this._strokeTemplate=void 0,this._fillTemplate=void 0;let e=this.get("xAxis"),t=this.get("yAxis");if(this.isDirty("stroke")){const i=this.get("stroke");this.strokes.template.set("stroke",i);const s=this._legendStroke;s&&s.states.lookup("default").set("stroke",i)}if(this.isDirty("fill")){const i=this.get("fill");this.fills.template.set("fill",i);const s=this._legendFill;s&&s.states.lookup("default").set("fill",i)}if(this.isDirty("fillPattern")){const i=this.get("fillPattern");this.fills.template.set("fillPattern",i);const s=this._legendFill;s&&s.states.lookup("default").set("fillPattern",i)}if(this.isDirty("curveFactory")){const i=this.get("curveFactory");i&&(this._strokeGenerator.curve(i),this._fillGenerator.curve(i))}
1if(e.inited&&t.inited){if(this._axesDirty||this._valuesDirty||this._stackDirty||this.isDirty("vcx")||this.isDirty("vcy")||this._sizeDirty||this.isDirty("connect")||this.isDirty("curveFactory")){this.fills.each(u=>{u.setPrivate("visible",!1)}),this.strokes.each(u=>{u.setPrivate("visible",!1)}),this.axisRanges.each(u=>{let l=u.fills;l&&l.each(d=>{d.setPrivate("visible",!1)});let c=u.strokes;c&&c.each(d=>{d.setPrivate("visible",!1)})});let i=this.startIndex(),s=this.strokes.template.get("templateField"),a=this.fills.template.get("templateField"),o=!0,r=!0;s&&(o=!1),a&&(r=!1);for(let u=i-1;u>=0;u--){let l=this.dataItems[u],c=!0,d=l.dataContext;if(s&&d[s]&&(o=!0),a&&d[a]&&(r=!0),T(this._valueFields,g=>{v(l.get(g))||(c=!1)}),c&&o&&r){i=u;break}}let n=this.dataItems.length,h=this.endIndex();if(h<n){h++;for(let u=h;u<n;u++){let l=this.dataItems[u],c=!0;if(T(this._valueFields,d=>{v(l.get(d))||(c=!1)}),c){h=u+1;break}}}if(i>0&&i--,this._endIndex=h,this._clearGraphics(),this._sindex=0,this._dindex=i,this.dataItems.length==1)this._startSegment(0);else for(;this._dindex<h-1;)this._startSegment(this._dindex),this._sindex++}}else this._skipped=!0;super._updateChildren()}_clearGraphics(){this.strokes.clear(),this.fills.clear(),this.axisRanges.each(e=>{e.fills.clear(),e.strokes.clear()})}_startSegment(e){let t=this._endIndex,i=t;const s=this.get("autoGapCount"),a=this.get("connect"),o=this.makeFill(this.fills),r=this._fillTemplate,n=this.fills.template;r&&r!=n&&(o.template=r),o.setPrivate("visible",!0);const h=this.makeStroke(this.strokes),u=this._strokeTemplate;u&&u!=this.strokes.template&&(h.template=u),h.setPrivate("visible",!0);let l=this.get("xAxis"),c=this.get("yAxis"),d=this.get("baseAxis"),g=this.get("vcx",1),m=this.get("vcy",1),f=this._xField,p=this._yField,b=this._xOpenField,_=this._yOpenField;const x=this.get("openValueXField"),k=this.get("openValueYField");x||(b=this._xField),k||(_=this._yField);const y=this.get("stacked"),A=l.basePosition(),D=c.basePosition();let w;d===c?w=this._yField:w=this._xField;const M=[];let C=[];M.push(C);const L=this.strokes.template.get("templateField"),V=this.fills.template.get("templateField");let B=this.get("locationX",.5),J=this.get("locationY",.5),ne=this.get("openLocationX",B),ce=this.get("openLocationY",J);const E=this.get("minDistance",0);let Y,O=this.fills.template.get("visible");this.axisRanges.length>0&&(O=!0);let Se=!1;(y||x||k)&&(Se=!0);const we={points:C,segments:M,stacked:y,getOpen:Se,basePosX:A,basePosY:D,fillVisible:O,xField:f,yField:p,xOpenField:b,yOpenField:_,vcx:g,vcy:m,baseAxis:d,xAxis:l,yAxis:c,locationX:B,locationY:J,openLocationX:ne,openLocationY:ce,minDistance:E};let de=this._strokeTemplate,fe=this._fillTemplate;for(Y=e;Y<i;Y++){this._dindex=Y;const W=this._dataItems[Y];let $=W.get(f),Pe=W.get(p);if($==null||Pe==null?a||(C=[],M.push(C),we.points=C):this._getPoints(W,we),L){let X=W.dataContext[L];if(X)if(X instanceof N||(X=N.new(X)),this._strokeTemplate=X,Y>e){i=Y;break}else de=X,h.template=X}if(V){let X=W.dataContext[V];if(X)if(X instanceof N||(X=N.new(X)),this._fillTemplate=X,Y>e){i=Y;break}else fe=X,o.template=X}if(!a){let X=this.dataItems[Y+1];X&&d.shouldGap(W,X,s,w)&&(C=[],M.push(C),we.points=C)}}o.setRaw("userData",[e,Y]),h.setRaw("userData",[e,Y]),Y===t&&this._endLine(C,M[0][0]),h&&this._drawStroke(h,M),o&&this._drawFill(o,M),this.axisRanges.each(W=>{const $=W.container,Pe=W.fills,X=this.makeFill(Pe);$&&$.children.push(X),X.setPrivate("visible",!0),this._drawFill(X,M);const tt=W.strokes,oe=this.makeStroke(tt);$&&$.children.push(oe),de&&de!=this.strokes.template&&(oe.template=de),fe&&fe!=this.fills.template&&(X.template=fe),oe.setPrivate("visible",!0),this._drawStroke(oe,M),X.setRaw("userData",[e,Y]),oe.setRaw("userData",[e,Y])})}_getPoints(e,t){let i=t.points,s=e.get("locationX",t.locationX),a=e.get("locationY",t.locationY);const o=this.get("exactLocationX",!1),r=this.get("exactLocationY",!1);let n=t.xAxis.getDataItemPositionX(e,t.xField,s,t.vcx,o),h=t.yAxis.getDataItemPositionY(e,t.yField,a,t.vcy,r);if(this._shouldInclude(n)){const u=this.getPoint(n,h),l=[u.x,u.y];if(u.x+=this._x,u.y+=this._y,e.set("point",u),t.fillVisible){let c=n,d=h;if(t.baseAxis===t.xAxis?d=t.basePosY:t.baseAxis===t.yAxis&&(c=t.basePosX),t.getOpen){let m=e.get(t.xOpenField),f=e.get(t.yOpenField);if(m!=null&&f!=null){let p=e.get("openLocationX",t.openLocationX),b=e.get("openLocationY",t.openLocationY);if(t.stacked){let _=e.get("stackToItemX"),x=e.get("stackToItemY");_?(c=t.xAxis.getDataItemPositionX(_,t.xField,p,_.component.get("vcx"),o),H(c)&&(c=t.basePosX)):t.yAxis===t.baseAxis?c=t.basePosX:c=t.xAxis.getDataItemPositionX(e,t.xOpenField,p,t.vcx,o),x?(d=t.yAxis.getDataItemPositionY(x,t.yField,b,x.component.get("vcy"),r),H(d)&&(d=t.basePosY)):t.xAxis===t.baseAxis?d=t.basePosY:d=t.yAxis.getDataItemPositionY(e,t.yOpenField,b,t.vcy,r)}else c=t.xAxis.getDataItemPositionX(e,t.xOpenField,p,t.vcx,o),d=t.yAxis.getDataItemPositionY(e,t.yOpenField,b,t.vcy,r)}}let g=this.getPoint(c,d);l[2]=g.x,l[3]=g.y}if(t.minDistance>0){const c=l[0],d=l[1],g=l[2],m=l[3],f=this._previousPoint,p=f[0],b=f[1],_=f[2],x=f[3];(Math.hypot(c-p,d-b)>t.minDistance||g&&m&&Math.hypot(g-_,m-x)>t.minDistance)&&(i.push(l),this._previousPoint=l)}else i.push(l)}}_endLine(e,t){}_drawStroke(e,t){e.get("visible")&&!e.get("forceHidden")&&e.set("draw",i=>{T(t,s=>{this._strokeGenerator.context(i),this._strokeGenerator(s)})})}_drawFill(e,t){e.get("visible")&&!e.get("forceHidden")&&e.set("draw",i=>{T(t,s=>{this._fillGenerator.context(i),this._fillGenerator(s)})})}_processAxisRange(e){super._processAxisRange(e),e.fills=new U(N.new({}),()=>z._new(this._root,{themeTags:j(e.fills.template.get("themeTags",[]),["line","series","fill"])},[this.fills.template,e.fills.template])),e.strokes=new U(N.new({}),()=>z._new(this._root,{themeTags:j(e.strokes.template.get("themeTags",[]),["line","series","stroke"])},[this.strokes.template,e.strokes.template]))}createLegendMarker(e){const t=this.get("legendDataItem");if(t){const i=t.get("marker"),s=t.get("markerRectangle");s&&s.setPrivate("visible",!1),i.set("background",ue.new(i._root,{fillOpacity:0,fill:ft(0)}));const a=i.children.push(z._new(i._root,{themeTags:["line","series","legend","marker","stroke"],interactive:!1},[this.strokes.template]));this._legendStroke=a;const o=i.children.push(z._new(i._root,{themeTags:["line","series","legend","marker","fill"]},[this.fills.template]));this._legendFill=o;const r=this._root.interfaceColors.get("disabled");if(a.states.create("disabled",{fill:r,stroke:r}),o.states.create("disabled",{fill:r,stroke:r}),this.bullets.length>0){const n=this.bullets.getIndex(0);if(n){const h=n(i._root,this,new he(this,{legend:!0},{}));if(h){const u=h.get("sprite");u instanceof z&&u.states.create("disabled",{fill:r,stroke:r}),u&&(u.setAll({tooltipText:void 0,tooltipHTML:void 0,focusable:void 0,focusableGroup:void 0,ariaLabel:void 0}),i.children.push(u),u.setAll({x:i.width()/2,y:i.height()/2}),i.events.on("boundschanged",()=>{u.setAll({x:i.width()/2,y:i.height()/2})}))}}}}}}Object.defineProperty(Ce,"className",{enumerable:!0,configurable:!0,writable:!0,value:"LineSeries"});Object.defineProperty(Ce,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:Z.classNames.c
1oncat([Ce.className])});export{Te as AxisRendererXAm5,ke as AxisRendererYAm5,ae as CategoryAxisAm5,Me as ColumnSeriesAm5,Ce as LineSeriesAm5,be as ValueAxisAm5,Ae as XYChartAm5,De as XYCursorAm5};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.