scichart
Version:
Fast WebGL JavaScript Charting Library and Framework
1 lines • 2.2 MB
JavaScript
var e={71993:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.buildAnnotations=void 0;const i=r(40301),o=r(11396),n=r(29371),a=r(89171),s=r(48882),l=r(99060),d=r(96696),h=r(23272),u=r(84736),c=r(28677),p=r(40734),g=r(74370),y=r(26977),f=r(49617),P=r(98409),m=r(11043),v=r(58996),S=r(45921),b=r(69811);(0,S.registerType)(m.EBaseType.Annotation,u.EAnnotationType.RenderContextAxisMarkerAnnotation,(e=>new n.AxisMarkerAnnotation(e)),!0),(0,S.registerType)(m.EBaseType.Annotation,u.EAnnotationType.RenderContextBoxAnnotation,(e=>new a.BoxAnnotation(e)),!0),(0,S.registerType)(m.EBaseType.Annotation,u.EAnnotationType.RenderContextHorizontalLineAnnotation,(e=>new d.HorizontalLineAnnotation(e)),!0),(0,S.registerType)(m.EBaseType.Annotation,u.EAnnotationType.RenderContextLineAnnotation,(e=>new c.LineAnnotation(e)),!0),(0,S.registerType)(m.EBaseType.Annotation,u.EAnnotationType.RenderContextVerticalLineAnnotation,(e=>new P.VerticalLineAnnotation(e)),!0),(0,S.registerType)(m.EBaseType.Annotation,u.EAnnotationType.SVGTextAnnotation,(e=>new f.TextAnnotation(e)),!0),(0,S.registerType)(m.EBaseType.Annotation,u.EAnnotationType.SVGCustomAnnotation,(e=>new s.CustomAnnotation(e)),!0),(0,S.registerType)(m.EBaseType.Annotation,u.EAnnotationType.SVGPolarPointerAnnotation,(e=>new y.PolarPointerAnnotation(e))),(0,S.registerType)(m.EBaseType.Annotation,u.EAnnotationType.HtmlTextAnnotation,(e=>new h.HtmlTextAnnotation(e)),!0),(0,S.registerType)(m.EBaseType.Annotation,u.EAnnotationType.RenderContextNativeTextAnnotation,(e=>new g.NativeTextAnnotation(e)),!0),(0,S.registerType)(m.EBaseType.Annotation,u.EAnnotationType.RenderContextArcAnnotation,(e=>new i.ArcAnnotation(e)),!0),(0,S.registerType)(m.EBaseType.Annotation,u.EAnnotationType.HtmlCustomAnnotation,(e=>new l.HtmlCustomAnnotation(e)),!0),(0,S.registerType)(m.EBaseType.Annotation,u.EAnnotationType.RenderContextLineArrowAnnotation,(e=>new p.LineArrowAnnotation(e)),!0),(0,S.registerType)(m.EBaseType.Annotation,u.EAnnotationType.RenderContextPolarArcAnnotation,(e=>new o.PolarArcAnnotation(e)),!0),(0,S.registerType)(m.EBaseType.Annotation,u.EAnnotationType.SvgLineAnnotation,(e=>new b.SvgLineAnnotation(e)),!0),t.buildAnnotations=e=>{"string"==typeof e&&(e=JSON.parse(e,v.chartReviver));const t=[];if(Array.isArray(e))for(const r of e)t.push((0,S.createType)(m.EBaseType.Annotation,r.type,null,r.options));else t.push((0,S.createType)(m.EBaseType.Annotation,e.type,null,e.options));return t}},25924:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.buildAxis3D=t.buildAxes=void 0;const i=r(59516),o=r(2296),n=r(78471),a=r(48767),s=r(39920),l=r(92596),d=r(68695),h=r(18184),u=r(51392),c=r(54948),p=r(1370),g=r(63922),y=r(48936),f=r(2192),P=r(11043),m=r(40359),v=r(58996),S=r(45921),b=r(35577),C=r(92859);(0,S.registerType)(P.EBaseType.LabelProvider,m.ELabelProviderType.Numeric,(e=>new s.NumericLabelProvider(e)),!0),(0,S.registerType)(P.EBaseType.LabelProvider,m.ELabelProviderType.Date,(e=>new n.DateLabelProvider(e)),!0),(0,S.registerType)(P.EBaseType.LabelProvider,m.ELabelProviderType.Logarithmic,(e=>new a.LogarithmicLabelProvider(e)),!0),(0,S.registerType)(P.EBaseType.LabelProvider,m.ELabelProviderType.SmartDate,(e=>new d.SmartDateLabelProvider(e)),!0),(0,S.registerType)(P.EBaseType.LabelProvider,m.ELabelProviderType.Text,(e=>new h.TextLabelProvider(e)),!0),(0,S.registerType)(P.EBaseType.LabelProvider,m.ELabelProviderType.Pie,(e=>new l.PieLabelProvider(e)),!0),t.buildAxes=(e,t)=>{"string"==typeof t&&(t=JSON.parse(t,v.chartReviver));const r=[];if(Array.isArray(t))for(const i of t)r.push(x(e,i));else r.push(x(e,t));return r};const x=(e,t)=>{let r;switch(t.type){case f.EAxisType.CategoryAxis:r=new i.CategoryAxis(e,t.options);break;case f.EAxisType.BaseValueAxis:r=new C.BaseValueAxis(e,t.options);break;case f.EAxisType.DiscontinuousDateAxis:r=new b.DiscontinuousDateAxis(e,t.options);break;case f.EAxisType.NumericAxis:r=new c.NumericAxis(e,t.options);break;case f.EAxisType.LogarithmicAxis:r=new u.LogarithmicAxis(e,t.options);break;case f.EAxisType.DateTimeNumericAxis:r=new o.DateTimeNumericAxis(e,t.options);break;case f.EAxisType.PolarNumericAxis:r=new g.PolarNumericAxis(e,t.options);break;case f.EAxisType.PolarCategoryAxis:r=new p.PolarCategoryAxis(e,t.options);break;default:r=new c.NumericAxis(e,{})}return r};t.buildAxis3D=(e,t)=>{let r;return r=t.type===f.EAxisType.NumericAxis3D?new y.NumericAxis3D(e,t.options):new y.NumericAxis3D(e,{}),r}},44544:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.buildDataSeries3D=t.buildDataSeries=void 0;const i=r(57835),o=r(58465),n=r(73165),a=r(26974),s=r(95632),l=r(55007),d=r(39892),h=r(91154),u=r(92475),c=r(22382),p=r(51885),g=r(43427),y=r(35471),f=r(15799),P=r(52452),m=r(9682),v=r(38446),S=r(29803),b=r(73016),C=r(19663),x=r(75650),A=r(35508),T=r(23291),E=r(75869),D=r(98102),R=r(51097),w=r(58996);t.buildDataSeries=(e,t,r,i)=>{if(!t)return;let o,n;if("string"==typeof t&&(t=JSON.parse(t,w.chartReviver)),"string"==typeof r&&(r=JSON.parse(r,w.chartReviver)),o=O(e,t,r),"filter"in t.options&&(n=t.options.filter),n&&t.type!==p.EDataSeriesType.HeatmapUniform&&t.type!==p.EDataSeriesType.HeatmapNonUniform&&o){const e=M(null!=i?i:o,n);e&&(o=e)}return o};const M=(e,t)=>{if(t.type===R.EDataFilterType.HlcScaleOffset)return new o.HlcScaleOffsetFilter(e,t.options);if(t.type===R.EDataFilterType.OhlcScaleOffset)return new n.OhlcScaleOffsetFilter(e,t.options);if(t.type===R.EDataFilterType.XyLinearTrend)return new a.XyLinearTrendFilter(e,t.options);if(t.type===R.EDataFilterType.XyMovingAverage)return new s.XyMovingAverageFilter(e,t.options);if(t.type===R.EDataFilterType.XyRatio){const r=t.options;if(Array.isArray(r.divisorSeries)){const i=new Array(e.count()).fill(0);t.options.divisorSeries=new m.XyDataSeries(e.webAssemblyContext,{xValues:i,yValues:r.divisorSeries})}return new l.XyRatioFilter(e,t.options)}return t.type===R.EDataFilterType.XyScaleOffset?new d.XyScaleOffsetFilter(e,t.options):t.type===R.EDataFilterType.XyyScaleOffset?new h.XyyScaleOffsetFilter(e,t.options):t.type===R.EDataFilterType.XyzScaleOffset?new u.XyzScaleOffsetFilter(e,t.options):void 0},O=(e,t,r)=>{const o=Object.assign({},t.options);switch(t.type){case p.EDataSeriesType.Xy:{const t=o;return t.arrayCount=1,r&&t.xDataId&&(t.xValues=r[t.xDataId],t.yValues=r[t.yDataId]),new m.XyDataSeries(e,t)}case p.EDataSeriesType.Xyy:{const t=o;return r&&t.xDataId&&(t.xValues=r[t.xDataId],t.yValues=r[t.yDataId],t.y1Values=r[t.y1DataId]),new x.XyyDataSeries(e,t)}case p.EDataSeriesType.Xyz:{const t=o;return r&&t.xDataId&&(t.xValues=r[t.xDataId],t.yValues=r[t.yDataId],t.zValues=r[t.zDataId]),new A.XyzDataSeries(e,t)}case p.EDataSeriesType.Xyxy:{const t=o;return r&&t.xDataId&&(t.xValues=r[t.xDataId],t.yValues=r[t.yDataId],t.x1Values=r[t.x1DataId],t.y1Values=r[t.y1DataId]),new C.XyxyDataSeries(e,t)}case p.EDataSeriesType.XyN:{const t=o;return r&&t.xDataId,new v.XyNDataSeries(e,t)}case p.EDataSeriesType.XyText:{const t=o;return r&&t.xDataId&&(t.xValues=r[t.xDataId],t.yValues=r[t.yDataId]),new S.XyTextDataSeries(e,t)}case p.EDataSeriesType.Hlc:{const t=o;return r&&t.xDataId&&(t.xValues=r[t.xDataId],t.highValues=r[t.highDataId],t.lowValues=r[t.lowDataId],t.yValues=r[t.closeDataId]),new c.HlcDataSeries(e,t)}case p.EDataSeriesType.Ohlc:{const t=o;return r&&t.xDataId&&(t.xValues=r[t.xDataId],t.openValues=r[t.openDataId],t.highValues=r[t.highDataId],t.lowValues=r[t.lowDataId],t.closeValues=r[t.closeDataId]),new y.OhlcDataSeries(e,t)}case p.EDataSeriesType.HeatmapUniform:{const t=o;return new f.UniformHeatmapDataSeries(e,t)}case p.EDataSeriesType.HeatmapNonUniform:{const t=o;return new g.NonUniformHeatmapDataSeries(e,t)}case p.EDataSeriesType.XyN:throw new Error("XyN data series is not supported yet!");case p.EDataSeriesType.Xyx:{const t=o;return r&&t.xDataId&&(t.xValues=r[t.xDataId],t.yValues=r[t.yDataId],t.x1Values=r[t.x1DataId]),new b.XyxDataSeries(e,t)}case p.EDataSeriesType.X:return new P.XDataSeries(e,o);case p.EDataSeriesType.BoxPlot:{const t=o;return r&&t.xDataId&&(t.xValues=r[t.xDataId],t.lowerQuartileValues=r[t.lowerDataId],t.upperQuartileValues=r[t.upperDataId],t.maximumValues=r[t.maxDataId],t.minimumValues=r[t.minDataId],t.yValues=r[t.medianDataId],t.medianValues=r[t.medianDataId]),new i.BoxPlotDataSeries(e,t)}default:return(e=>{throw new Error(`Invalid Data Series Type value: "${e}"!`)})(t.type)}};t.buildDataSeries3D=(e,t,r)=>{if(t)return"string"==typeof t&&(t=JSON.parse(t,w.chartReviver)),"string"==typeof r&&(r=JSON.parse(r,w.chartReviver)),L(e,t,r)};const L=(e,t,r)=>{const i=Object.assign({},t.options);switch(t.type){case T.EDataSeriesType3D.Xyz3D:{const t=i;return r&&t.xDataId&&(t.xValues=r[t.xDataId],t.yValues=r[t.yDataId],t.zValues=r[t.zDataId]),new D.XyzDataSeries3D(e,t)}case T.EDataSeriesType3D.UniformGrid3D:{const t=i;return new E.UniformGridDataSeries3D(e,t)}case T.EDataSeriesType3D.NonUniformGrid3D:throw new Error("NonUniformGrid3D data series is not supported yet!");default:return(e=>{throw new Error(`Invalid Data Series Type value: "${e}"!`)})(t.type)}}},96841:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.buildModifiers3D=t.buildModifiers=void 0;const i=r(62773),o=r(71575),n=r(9656),a=r(56985),s=r(55526),l=r(21562),d=r(63903),h=r(96408),u=r(18809),c=r(32545),p=r(9809),g=r(3397),y=r(63407),f=r(64171),P=r(11043),m=r(89955),v=r(58996),S=r(45921),b=r(49975),C=r(95648),x=r(94118),A=r(37221),T=r(22580),E=r(99389),D=r(30580),R=r(36463),w=r(27524),M=r(47737),O=r(73792),L=r(17707),I=r(66477),k=r(68491),V=r(20624);(0,S.registerType)(P.EBaseType.Chart2DModifier,m.EChart2DModifierType.Cursor,(e=>new i.CursorModifier(e)),!0),(0,S.registerType)(P.EBaseType.Chart2DModifier,m.EChart2DModifierType.PolarCursor,(e=>new x.PolarCursorModifier(e)),!0),(0,S.registerType)(P.EBaseType.Chart2DModifier,m.EChart2DModifierType.DataPointSelection,(e=>new o.DataPointSelectionModifier(e)),!0),(0,S.registerType)(P.EBaseType.Chart2DModifier,m.EChart2DModifierType.PolarDataPointSelection,(e=>new A.PolarDataPointSelectionModifier(e)),!0),(0,S.registerType)(P.EBaseType.Chart2DModifier,m.EChart2DModifierType.PolarSeriesSelection,(e=>new T.PolarSeriesSelectionModifier(e)),!0),(0,S.registerType)(P.EBaseType.Chart2DModifier,m.EChart2DModifierType.MouseWheelZoom,(e=>new a.MouseWheelZoomModifier(e)),!0),(0,S.registerType)(P.EBaseType.Chart2DModifier,m.EChart2DModifierType.PolarMouseWheelZoom,(e=>new D.PolarMouseWheelZoomModifier(e)),!0),(0,S.registerType)(P.EBaseType.Chart2DModifier,m.EChart2DModifierType.PinchZoom,(e=>new l.PinchZoomModifier(e)),!0),(0,S.registerType)(P.EBaseType.Chart2DModifier,m.EChart2DModifierType.Rollover,(e=>new d.RolloverModifier(e)),!0),(0,S.registerType)(P.EBaseType.Chart2DModifier,m.EChart2DModifierType.VerticalSlice,(e=>new h.VerticalSliceModifier(e)),!0),(0,S.registerType)(P.EBaseType.Chart2DModifier,m.EChart2DModifierType.RubberBandXYZoom,(e=>new u.RubberBandXyZoomModifier(e)),!0),(0,S.registerType)(P.EBaseType.Chart2DModifier,m.EChart2DModifierType.PolarArcZoom,(e=>new C.PolarArcZoomModifier(e)),!0),(0,S.registerType)(P.EBaseType.Chart2DModifier,m.EChart2DModifierType.SeriesSelection,(e=>new c.SeriesSelectionModifier(e)),!0),(0,S.registerType)(P.EBaseType.Chart2DModifier,m.EChart2DModifierType.AnnotationHover,(e=>new b.AnnotationHoverModifier(e)),!0),(0,S.registerType)(P.EBaseType.Chart2DModifier,m.EChart2DModifierType.XAxisDrag,(e=>new p.XAxisDragModifier(e)),!0),(0,S.registerType)(P.EBaseType.Chart2DModifier,m.EChart2DModifierType.YAxisDrag,(e=>new g.YAxisDragModifier(e)),!0),(0,S.registerType)(P.EBaseType.Chart2DModifier,m.EChart2DModifierType.ZoomExtents,(e=>new y.ZoomExtentsModifier(e)),!0),(0,S.registerType)(P.EBaseType.Chart2DModifier,m.EChart2DModifierType.PolarZoomExtents,(e=>new R.PolarZoomExtentsModifier(e)),!0),(0,S.registerType)(P.EBaseType.Chart2DModifier,m.EChart2DModifierType.ZoomPan,(e=>new f.ZoomPanModifier(e)),!0),(0,S.registerType)(P.EBaseType.Chart2DModifier,m.EChart2DModifierType.PolarPan,(e=>new w.PolarPanModifier(e)),!0),(0,S.registerType)(P.EBaseType.Chart2DModifier,m.EChart2DModifierType.OverviewRangeSelection,(e=>new s.OverviewRangeSelectionModifier(e)),!0),(0,S.registerType)(P.EBaseType.Chart2DModifier,m.EChart2DModifierType.Legend,(e=>new n.LegendModifier(e)),!0),(0,S.registerType)(P.EBaseType.Chart2DModifier,m.EChart2DModifierType.PolarLegend,(e=>new E.PolarLegendModifier(e)),!0),t.buildModifiers=e=>{"string"==typeof e&&(e=JSON.parse(e,v.chartReviver));const t=[];if(Array.isArray(e))for(const r of e)t.push(_(r));else t.push(_(e));return t};const _=e=>e.type===m.EChart2DModifierType.Custom?(0,S.createType)(P.EBaseType.Chart2DModifier,e.customType,null,e.options):(0,S.createType)(P.EBaseType.Chart2DModifier,e.type,null,e.options);(0,S.registerType)(P.EBaseType.Chart3DModifier,m.EChart3DModifierType.MouseWheelZoom,(e=>new M.MouseWheelZoomModifier3D(e)),!0),(0,S.registerType)(P.EBaseType.Chart3DModifier,m.EChart3DModifierType.Orbit,(e=>new L.OrbitModifier3D(e)),!0),(0,S.registerType)(P.EBaseType.Chart3DModifier,m.EChart3DModifierType.PinchZoom,(e=>new O.PinchZoomModifier3D(e)),!0),(0,S.registerType)(P.EBaseType.Chart3DModifier,m.EChart3DModifierType.Tooltip,(e=>new I.TooltipModifier3D(e)),!0),(0,S.registerType)(P.EBaseType.Chart3DModifier,m.EChart3DModifierType.ZoomExtents,(e=>new k.ResetCamera3DModifier(e)),!0),(0,S.registerType)(P.EBaseType.Chart3DModifier,m.EChart3DModifierType.Legend,(e=>new V.LegendModifier3D(e)),!0),t.buildModifiers3D=e=>{"string"==typeof e&&(e=JSON.parse(e,v.chartReviver));const t=[];if(Array.isArray(e))for(const r of e)t.push(N(r));else t.push(N(e));return t};const N=e=>e.type===m.EChart3DModifierType.Custom?(0,S.createType)(P.EBaseType.Chart3DModifier,e.customType,null,e.options):(0,S.createType)(P.EBaseType.Chart3DModifier,e.type,null,e.options)},12193:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.buildSeries3D=t.buildSeries=void 0;const i=r(75619),o=r(51885),n=r(33906),a=r(52881),s=r(22745),l=r(10749),d=r(21033),h=r(77057),u=r(58229),c=r(61704),p=r(62314),g=r(56705),y=r(592),f=r(56498),P=r(81856),m=r(15273),v=r(1367),S=r(9488),b=r(96852),C=r(75933),x=r(33802),A=r(31544),T=r(1126),E=r(98550),D=r(11555),R=r(12641),w=r(20667),M=r(43852),O=r(93522),L=r(65297),I=r(72362),k=r(95179),V=r(89078),_=r(21037),N=r(50085),F=r(68264),B=r(78146),H=r(32471),j=r(86109),Y=r(56664),z=r(1406),X=r(83262),G=r(71719),W=r(1391),U=r(88189),$=r(70033),Z=r(52954),J=r(10763),q=r(11043),K=r(2963),Q=r(28436),ee=r(30323),te=r(5337),re=r(75323),ie=r(44544),oe=r(58996),ne=r(45921),ae=r(30182),se=r(16098),le=r(4455),de=r(83187),he=r(38831),ue=r(88409),ce=r(38595),pe=r(33236),ge=r(1074),ye=r(69773),fe=r(19963),Pe=r(15518),me=r(68584),ve=r(2928),Se=r(2270),be=r(10947),Ce=r(45265),xe=r(56675),Ae=r(39927),Te=r(72954),Ee=r(10435),De=r(23291),Re=r(56356),we=r(37622),Me=r(70027),Oe=r(28009),Le=r(25889),Ie=r(75616),ke=r(30566),Ve=r(93727);function _e(e,t){return e.hasOwnProperty(t)}(0,ne.registerWasmType)(q.EBaseType.PointMarker,ee.EPointMarkerType.Cross,((e,t)=>new s.CrossPointMarker(e,t)),!0),(0,ne.registerWasmType)(q.EBaseType.PointMarker,ee.EPointMarkerType.Ellipse,((e,t)=>new l.EllipsePointMarker(e,t)),!0),(0,ne.registerWasmType)(q.EBaseType.PointMarker,ee.EPointMarkerType.Sprite,((e,t)=>new d.SpritePointMarker(e,t)),!0),(0,ne.registerWasmType)(q.EBaseType.PointMarker,ee.EPointMarkerType.Square,((e,t)=>new h.SquarePointMarker(e,t)),!0),(0,ne.registerWasmType)(q.EBaseType.PointMarker,ee.EPointMarkerType.Triangle,((e,t)=>new u.TrianglePointMarker(e,t)),!0),(0,ne.registerWasmType)(q.EBaseType.PointMarker,ee.EPointMarkerType.X,((e,t)=>new c.XPointMarker(e,t)),!0),(0,ne.registerWasmType)(q.EBaseType.ShaderEffect,re.EShaderEffectType.Glow,((e,t)=>new _.GlowEffect(e,t)),!0),(0,ne.registerWasmType)(q.EBaseType.ShaderEffect,re.EShaderEffectType.Shadow,((e,t)=>new F.ShadowEffect(e,t)),!0),(0,ne.registerType)(q.EBaseType.Animation,J.EAnimationType.Fade,(e=>new p.FadeAnimation(e)),!0),(0,ne.registerType)(q.EBaseType.Animation,J.EAnimationType.Scale,(e=>new g.ScaleAnimation(e)),!0),(0,ne.registerType)(q.EBaseType.Animation,J.EAnimationType.Sweep,(e=>new y.SweepAnimation(e)),!0),(0,ne.registerType)(q.EBaseType.Animation,J.EAnimationType.Wave,(e=>new f.WaveAnimation(e)),!0),(0,ne.registerType)(q.EBaseType.DataLabelProvider,K.EDataLabelProviderType.Default,(e=>new b.DataLabelProvider(e)),!0),(0,ne.registerType)(q.EBaseType.DataLabelProvider,K.EDataLabelProviderType.Line,(e=>new x.LineSeriesDataLabelProvider(e)),!0),(0,ne.registerType)(q.EBaseType.DataLabelProvider,K.EDataLabelProviderType.Column,(e=>new v.ColumnSeriesDataLabelProvider(e)),!0),(0,ne.registerType)(q.EBaseType.DataLabelProvider,K.EDataLabelProviderType.Rectangle,(e=>new Me.RectangleSeriesDataLabelProvider(e)),!0),(0,ne.registerType)(q.EBaseType.DataLabelProvider,K.EDataLabelProviderType.Text,(e=>new T.TextDataLabelProvider(e)),!0),(0,ne.registerType)(q.EBaseType.DataLabelProvider,K.EDataLabelProviderType.Heatmap,(e=>new C.HeatMapDataLabelProvider(e)),!0),(0,ne.registerType)(q.EBaseType.DataLabelProvider,K.EDataLabelProviderType.NonUniformHeatmap,(e=>new A.NonUniformHeatMapDataLabelProvider(e)),!0),(0,ne.registerType)(q.EBaseType.DataLabelProvider,K.EDataLabelProviderType.Bubble,(e=>new m.BubbleSeriesDataLabelProvider(e)),!0),(0,ne.registerType)(q.EBaseType.DataLabelProvider,K.EDataLabelProviderType.Band,(e=>new P.BandSeriesDataLabelProvider(e)),!0),(0,ne.registerType)(q.EBaseType.DataLabelProvider,K.EDataLabelProviderType.Contours,(e=>new S.ContoursDataLabelProvider(e)),!0),(0,ne.registerType)(q.EBaseType.DataLabelProvider,K.EDataLabelProviderType.PolarDefault,(e=>new fe.PolarDataLabelProvider(e))),(0,ne.registerType)(q.EBaseType.DataLabelProvider,K.EDataLabelProviderType.PolarColumn,(e=>new Pe.PolarColumnSeriesDataLabelProvider(e))),(0,ne.registerType)(q.EBaseType.DataLabelProvider,K.EDataLabelProviderType.PolarText,(e=>new Ie.PolarTextDataLabelProvider(e))),(0,ne.registerType)(q.EBaseType.MetadataGenerator,"Template",(e=>new n.TemplateMetadataGenerator(e)),!0),(0,ne.registerWasmType)(q.EBaseType.PaletteProvider,Q.EPaletteProviderType.Gradient,((e,t)=>a.PaletteFactory.createGradient(e,t)),!0),(0,ne.registerType)(q.EBaseType.PaletteProvider,Q.EPaletteProviderType.DataPointSelection,(e=>new i.DataPointSelectionPaletteProvider(e)),!0),t.buildSeries=(e,r,i)=>{"string"==typeof r&&(r=JSON.parse(r,oe.chartReviver)),"string"==typeof i&&(i=JSON.parse(i,oe.chartReviver));const o=[];Array.isArray(r)||(r=[r]);for(const n of r){let r;if(n.type===te.ESeriesType.BandSeries)r=new E.FastBandRenderableSeries(e,n.options);else if(n.type===te.ESeriesType.BubbleSeries)r=new D.FastBubbleRenderableSeries(e,n.options);else if(n.type===te.ESeriesType.CandlestickSeries)r=new R.FastCandlestickRenderableSeries(e,n.options);else if(n.type===te.ESeriesType.ColumnSeries)r=new w.FastColumnRenderableSeries(e,n.options);else if(n.type===te.ESeriesType.ImpulseSeries)r=new O.FastImpulseRenderableSeries(e,n.options);else if(n.type===te.ESeriesType.LineSeries)r=new L.FastLineRenderableSeries(e,n.options);else if(n.type===te.ESeriesType.LineSegmentSeries)r=new ae.FastLineSegmentRenderableSeries(e,n.options);else if(n.type===te.ESeriesType.MountainSeries)r=new I.FastMountainRenderableSeries(e,n.options);else if(n.type===te.ESeriesType.ErrorBarsSeries)r=new M.FastErrorBarsRenderableSeries(e,n.options);else if(n.type===te.ESeriesType.BoxPlotSeries)r=new pe.FastBoxPlotRenderableSeries(e,n.options);else if(n.type===te.ESeriesType.TriangleSeries)r=new ge.FastTriangleRenderableSeries(e,n.options);else if(n.type===te.ESeriesType.RectangleSeries)r=new se.FastRectangleRenderableSeries(e,n.options);else if(n.type===te.ESeriesType.OhlcSeries)r=new k.FastOhlcRenderableSeries(e,n.options);else if(n.type===te.ESeriesType.ScatterSeries)r=new Z.XyScatterRenderableSeries(e,n.options);else if(n.type===te.ESeriesType.SplineBandSeries)r=new B.SplineBandRenderableSeries(e,n.options);else if(n.type===te.ESeriesType.SplineLineSeries)r=new H.SplineLineRenderableSeries(e,n.options);else if(n.type===te.ESeriesType.SplineMountainSeries)r=new j.SplineMountainRenderableSeries(e,n.options);else if(n.type===te.ESeriesType.UniformHeatmapSeries)r=new $.UniformHeatmapRenderableSeries(e,n.options);else if(n.type===te.ESeriesType.NonUniformHeatmapSeries)r=new N.NonUniformHeatmapRenderableSeries(e,n.options);else if(n.type===te.ESeriesType.UniformContoursSeries)r=new U.UniformContoursRenderableSeries(e,n.options);else if(n.type===te.ESeriesType.TextSeries)r=new V.FastTextRenderableSeries(e,n.options);else if(n.type===te.ESeriesType.StackedColumnSeries)r=new X.StackedColumnRenderableSeries(e,n.options);else if(n.type===te.ESeriesType.StackedMountainSeries)r=new W.StackedMountainRenderableSeries(e,n.options);else if(n.type===te.ESeriesType.SmoothStackedMountainSeries)r=new Y.SmoothStackedMountainRenderableSeries(e,n.options);else if(n.type===te.ESeriesType.StackedColumnCollection){const o=new z.StackedColumnCollection(e,n.options);o.add(...(0,t.buildSeries)(e,n.series,i)),r=o}else if(n.type===te.ESeriesType.StackedMountainCollection){const o=new G.StackedMountainCollection(e,n.options);o.add(...(0,t.buildSeries)(e,n.series,i)),r=o}else if(n.type===te.ESeriesType.PolarLineSeries)r=new le.PolarLineRenderableSeries(e,n.options);else if(n.type===te.ESeriesType.PolarScatterSeries)r=new ye.PolarXyScatterRenderableSeries(e,n.options);else if(n.type===te.ESeriesType.PolarBandSeries)r=new de.PolarBandRenderableSeries(e,n.options);else if(n.type===te.ESeriesType.PolarColumnSeries)r=new he.PolarColumnRenderableSeries(e,n.options);else if(n.type===te.ESeriesType.PolarMountainSeries)r=new ue.PolarMountainRenderableSeries(e,n.options);else if(n.type===te.ESeriesType.PolarTriangleSeries)r=new ke.PolarTriangleRenderableSeries(e,n.options);else if(n.type===te.ESeriesType.PolarTextSeries)r=new Ve.PolarTextRenderableSeries(e,n.options);else if(n.type===te.ESeriesType.PolarUniformHeatmapSeries)r=new be.PolarUniformHeatmapRenderableSeries(e,n.options);else if(n.type===te.ESeriesType.PolarStackedMountainSeries)r=new ce.PolarStackedMountainRenderableSeries(e,n.options);else if(n.type===te.ESeriesType.PolarStackedColumnSeries)r=new Se.PolarStackedColumnRenderableSeries(e,n.options);else if(n.type===te.ESeriesType.PolarStackedMountainCollection){const o=new me.PolarStackedMountainCollection(e,n.options);o.add(...(0,t.buildSeries)(e,n.series,i)),r=o}else if(n.type===te.ESeriesType.PolarStackedColumnCollection){const o=new ve.PolarStackedColumnCollection(e,n.options);o.add(...(0,t.buildSeries)(e,n.series,i)),r=o}if(r){const t=Ne(e,n,i);t&&(r.dataSeries=t)}r&&o.push(r)}return o};const Ne=(e,t,r)=>{const i=_e(n=t,"xyData")?{type:o.EDataSeriesType.Xy,options:n.xyData}:_e(n,"xyyData")?{type:o.EDataSeriesType.Xyy,options:n.xyyData}:_e(n,"xyzData")?{type:o.EDataSeriesType.Xyz,options:n.xyzData}:_e(n,"xyxyData")?{type:o.EDataSeriesType.Xyxy,options:n.xyxyData}:_e(n,"xyxData")?{type:o.EDataSeriesType.Xyx,options:n.xyxData}:_e(n,"xynData")?{type:o.EDataSeriesType.XyN,options:n.xynData}:_e(n,"xyTextData")?{type:o.EDataSeriesType.XyText,options:n.xyTextData}:_e(n,"hlcData")?{type:o.EDataSeriesType.Hlc,options:n.hlcData}:_e(n,"ohlcData")?{type:o.EDataSeriesType.Ohlc,options:n.ohlcData}:_e(n,"boxPlotData")?{type:o.EDataSeriesType.BoxPlot,options:n.boxPlotData}:!_e(n,"heatmapData")||n.type!==te.ESeriesType.UniformHeatmapSeries&&n.type!==te.ESeriesType.UniformContoursSeries&&n.type!==te.ESeriesType.PolarUniformHeatmapSeries?_e(n,"heatmapData")&&n.type===te.ESeriesType.NonUniformHeatmapSeries?{type:o.EDataSeriesType.HeatmapNonUniform,options:n.heatmapData}:void 0:{type:o.EDataSeriesType.HeatmapUniform,options:n.heatmapData};var n;if(i)return t.options&&"dataSeries"in t.options&&t.options.dataSeries&&i.options&&"filter"in i.options&&i.options.filter?(0,ie.buildDataSeries)(e,i,r,t.options.dataSeries):(0,ie.buildDataSeries)(e,i,r)};(0,ne.registerWasmType)(q.EBaseType.PointMarker3D,Re.EPointMarker3DType.Sphere,((e,t)=>new we.SpherePointMarker3D(e,t)),!0),(0,ne.registerWasmType)(q.EBaseType.PointMarker3D,Re.EPointMarker3DType.Cube,((e,t)=>new we.CubePointMarker3D(e,t)),!0),(0,ne.registerWasmType)(q.EBaseType.PointMarker3D,Re.EPointMarker3DType.Pyramid,((e,t)=>new we.PyramidPointMarker3D(e,t)),!0),(0,ne.registerWasmType)(q.EBaseType.PointMarker3D,Re.EPointMarker3DType.Cylinder,((e,t)=>new we.CylinderPointMarker3D(e,t)),!0),(0,ne.registerWasmType)(q.EBaseType.PointMarker3D,Re.EPointMarker3DType.Ellipse,((e,t)=>new we.EllipsePointMarker3D(e,t)),!0),(0,ne.registerWasmType)(q.EBaseType.PointMarker3D,Re.EPointMarker3DType.Pixel,((e,t)=>new we.PixelPointMarker3D(e,t)),!0),(0,ne.registerWasmType)(q.EBaseType.PointMarker3D,Re.EPointMarker3DType.Quad,((e,t)=>new we.QuadPointMarker(e,t)),!0),(0,ne.registerWasmType)(q.EBaseType.PointMarker3D,Re.EPointMarker3DType.Triangle,((e,t)=>new we.TrianglePointMarker3D(e,t)),!0),(0,ne.registerWasmType)(q.EBaseType.PaletteProvider,Q.EPaletteProviderType.Gradient3D,((e,t)=>new Oe.GradientColorPalette(e,t)),!0),(0,ne.registerWasmType)(q.EBaseType.PaletteProvider,Q.EPaletteProviderType.Solid3D,((e,t)=>new Le.SolidColorBrushPalette(e,t)),!0),t.buildSeries3D=(e,t,r)=>{"string"==typeof t&&(t=JSON.parse(t,oe.chartReviver)),"string"==typeof r&&(r=JSON.parse(r,oe.chartReviver));const i=[];Array.isArray(t)||(t=[t]);for(const o of t){let t;switch(o.type){case Ce.ESeriesType3D.ColumnRenderableSeries3D:t=new xe.ColumnRenderableSeries3D(e,o.options);break;case Ce.ESeriesType3D.PointLineRenderableSeries3D:t=new Ae.PointLineRenderableSeries3D(e,o.options);break;case Ce.ESeriesType3D.ScatterRenderableSeries3D:t=new Te.ScatterRenderableSeries3D(e,o.options);break;case Ce.ESeriesType3D.SurfaceMeshRenderableSeries3D:t=new Ee.SurfaceMeshRenderableSeries3D(e,o.options)}if(t){const i=Fe(e,o,r);i&&(t.dataSeries=i)}t&&i.push(t)}return i};const Fe=(e,t,r)=>{const i=Be(t);if(i)return(0,ie.buildDataSeries3D)(e,i,r)},Be=e=>_e(e,"xyzData")?{type:De.EDataSeriesType3D.Xyz3D,options:e.xyzData}:_e(e,"uniformGridData")?{type:De.EDataSeriesType3D.UniformGrid3D,options:e.uniformGridData}:void 0},64931:function(e,t,r){var i=this&&this.__awaiter||function(e,t,r,i){return new(r||(r=Promise))((function(o,n){function a(e){try{l(i.next(e))}catch(e){n(e)}}function s(e){try{l(i.throw(e))}catch(e){n(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.configure3DSurface=t.configure2DSurface=t.buildSubCharts=t.build3DChart=t.buildPieChart=t.build2DPolarChart=t.build2DChart=void 0;const o=r(60872),n=r(53521),a=r(57384),s=r(70397),l=r(45481),d=r(83638),h=r(6153),u=r(55173),c=r(24478),p=r(27282),g=r(12119),y=r(27194),f=r(73145),P=r(55696),m=r(66010),v=r(99016),S=r(2705),b=r(60819),C=r(54948),x=r(66570),A=r(57419),T=r(79548),E=r(84626),D=r(11043),R=r(883),w=r(73785),M=r(71993),O=r(25924),L=r(96841),I=r(12193),k=r(58996),V=r(45921),_=r(62916),N=r(16602),F=r(25610),B=r(91465),H=r(8320),j=r(94416),Y=r(24696),z=r(63922),X=r(16989),G=r(38215),W=r(52361),U=r(48936);function $(e,t){var r;const i=t.webAssemblyContext2D,o=Array.isArray(e)?e:[e],n=[];for(const e of o)if((null===(r=null==e?void 0:e.surface)||void 0===r?void 0:r.surfaceType)===B.ESciChartSurfaceType.Polar2D){const r=H.SciChartPolarSubSurface.createSubSurface(t,e.surface);Z(e,r,i),n.push(r)}else{const r=F.SciChartSubSurface.createSubSurface(t,e.surface);Z(e,r,i),n.push(r)}return n}function Z(e,t,r){e.xAxes&&t.xAxes.add(...(0,O.buildAxes)(r,e.xAxes)),e.yAxes&&t.yAxes.add(...(0,O.buildAxes)(r,e.yAxes)),t.isPolar?(0!==t.xAxes.size()||e.subCharts||t.xAxes.add(new z.PolarNumericAxis(r,{polarAxisMode:X.EPolarAxisMode.Angular,axisAlignment:G.EAxisAlignment.Top})),0!==t.yAxes.size()||e.subCharts||t.yAxes.add(new z.PolarNumericAxis(r,{polarAxisMode:X.EPolarAxisMode.Radial,axisAlignment:G.EAxisAlignment.Right}))):(0!==t.xAxes.size()||e.subCharts||t.xAxes.add(new C.NumericAxis(r)),0!==t.yAxes.size()||e.subCharts||t.yAxes.add(new C.NumericAxis(r))),e.series&&t.renderableSeries.add(...(0,I.buildSeries)(r,e.series,e.sharedData)),e.modifiers&&t.chartModifiers.add(...(0,L.buildModifiers)(e.modifiers)),e.annotations&&t.annotations.add(...(0,M.buildAnnotations)(e.annotations)),e.subCharts&&!t.isSubSurface&&$(e.subCharts,t)}function J(e,t,r){e.xAxis?t.xAxis=(0,O.buildAxis3D)(r,e.xAxis):t.xAxis=new U.NumericAxis3D(r),e.yAxis?t.yAxis=(0,O.buildAxis3D)(r,e.yAxis):t.yAxis=new U.NumericAxis3D(r),e.zAxis?t.zAxis=(0,O.buildAxis3D)(r,e.zAxis):t.zAxis=new U.NumericAxis3D(r),e.series&&t.renderableSeries.add(...(0,I.buildSeries3D)(r,e.series,e.sharedData)),e.modifiers&&t.chartModifiers.add(...(0,L.buildModifiers3D)(e.modifiers))}(0,V.registerType)(D.EBaseType.ThemeProvider,_.EThemeProviderType.Light,(()=>new b.SciChartJSLightTheme),!0),(0,V.registerType)(D.EBaseType.ThemeProvider,_.EThemeProviderType.DarkV2,(()=>new S.SciChartJSDarkv2Theme),!0),(0,V.registerType)(D.EBaseType.ThemeProvider,_.EThemeProviderType.Dark,(()=>new v.SciChartJSDarkTheme),!0),(0,V.registerType)(D.EBaseType.ThemeProvider,_.EThemeProviderType.Navy,(()=>new m.SciChartJsNavyTheme),!0),(0,V.registerType)(D.EBaseType.LayoutManager,R.ELayoutManagerType.Default,(e=>new l.LayoutManager(e)),!0),(0,V.registerType)(D.EBaseType.LayoutManager,R.ELayoutManagerType.Polar,(e=>new Y.PolarLayoutManager(e)),!0),(0,V.registerType)(D.EBaseType.LayoutManager,R.ELayoutManagerType.CentralAxes,(e=>new s.CentralAxesLayoutManager(e)),!0),(0,V.registerType)(D.EBaseType.LayoutStrategy,w.ELayoutStrategyType.BottomInner,(e=>new o.BottomAlignedInnerAxisLayoutStrategy(e)),!0),(0,V.registerType)(D.EBaseType.LayoutStrategy,w.ELayoutStrategyType.BottomOuter,(e=>new n.BottomAlignedOuterAxisLayoutStrategy),!0),(0,V.registerType)(D.EBaseType.LayoutStrategy,w.ELayoutStrategyType.BottomStacked,(e=>new a.BottomAlignedOuterHorizontallyStackedAxisLayoutStrategy),!0),(0,V.registerType)(D.EBaseType.LayoutStrategy,w.ELayoutStrategyType.LeftInner,(e=>new d.LeftAlignedInnerAxisLayoutStrategy(e)),!0),(0,V.registerType)(D.EBaseType.LayoutStrategy,w.ELayoutStrategyType.LeftOuter,(e=>new h.LeftAlignedOuterAxisLayoutStrategy),!0),(0,V.registerType)(D.EBaseType.LayoutStrategy,w.ELayoutStrategyType.LeftStacked,(e=>new u.LeftAlignedOuterVerticallyStackedAxisLayoutStrategy),!0),(0,V.registerType)(D.EBaseType.LayoutStrategy,w.ELayoutStrategyType.RightInner,(e=>new c.RightAlignedInnerAxisLayoutStrategy(e)),!0),(0,V.registerType)(D.EBaseType.LayoutStrategy,w.ELayoutStrategyType.RightOuter,(e=>new p.RightAlignedOuterAxisLayoutStrategy),!0),(0,V.registerType)(D.EBaseType.LayoutStrategy,w.ELayoutStrategyType.RightStacked,(e=>new g.RightAlignedOuterVerticallyStackedAxisLayoutStrategy),!0),(0,V.registerType)(D.EBaseType.LayoutStrategy,w.ELayoutStrategyType.TopInner,(e=>new y.TopAlignedInnerAxisLayoutStrategy(e)),!0),(0,V.registerType)(D.EBaseType.LayoutStrategy,w.ELayoutStrategyType.TopOuter,(e=>new f.TopAlignedOuterAxisLayoutStrategy),!0),(0,V.registerType)(D.EBaseType.LayoutStrategy,w.ELayoutStrategyType.TopStacked,(e=>new P.TopAlignedOuterHorizontallyStackedAxisLayoutStrategy),!0),(0,V.registerType)(D.EBaseType.Loader,"Default",(()=>new x.DefaultSciChartLoader),!0),t.build2DChart=(e,t)=>i(void 0,void 0,void 0,(function*(){var r;let i;"string"==typeof t&&(t=JSON.parse(t,k.chartReviver)),i=(null==t?void 0:t.createSingle)?yield E.SciChartSurface.createSingle(e,null==t?void 0:t.surface):yield E.SciChartSurface.create(e,null==t?void 0:t.surface);let{wasmContext:o,sciChartSurface:n}=i;const a=N.PerformanceDebugHelper.mark(N.EPerformanceMarkType.SetupStart,{contextId:n.id});return Z(t,n,o),t.onCreated&&("string"==typeof t.onCreated&&(n.onCreatedName=t.onCreated,t.onCreated=(0,V.getFunction)(D.EBaseType.OnCreateFunction,t.onCreated)),yield t.onCreated(n)),N.PerformanceDebugHelper.mark(N.EPerformanceMarkType.SetupEnd,{contextId:n.id,relatedId:null===(r=null==a?void 0:a.detail)||void 0===r?void 0:r.relatedId}),{wasmContext:o,sciChartSurface:n}})),t.build2DPolarChart=(e,t)=>i(void 0,void 0,void 0,(function*(){var r;let i;"string"==typeof t&&(t=JSON.parse(t,k.chartReviver)),i=(null==t?void 0:t.createSingle)?yield j.SciChartPolarSurface.createSingle(e,null==t?void 0:t.surface):yield j.SciChartPolarSurface.create(e,null==t?void 0:t.surface);let{wasmContext:o,sciChartSurface:n}=i;const a=N.PerformanceDebugHelper.mark(N.EPerformanceMarkType.SetupStart,{contextId:n.id});return Z(t,n,o),t.onCreated&&("string"==typeof t.onCreated&&(n.onCreatedName=t.onCreated,t.onCreated=(0,V.getFunction)(D.EBaseType.OnCreateFunction,t.onCreated)),yield t.onCreated(n)),N.PerformanceDebugHelper.mark(N.EPerformanceMarkType.SetupEnd,{contextId:n.id,relatedId:null===(r=null==a?void 0:a.detail)||void 0===r?void 0:r.relatedId}),{wasmContext:o,sciChartSurface:n}})),t.buildPieChart=(e,t)=>i(void 0,void 0,void 0,(function*(){"string"==typeof t&&(t=JSON.parse(t,k.chartReviver));const r=yield T.SciChartPieSurface.create(e,null==t?void 0:t.surface);if(null==t?void 0:t.segments)for(const e of null==t?void 0:t.segments){const t=new A.PieSegment(e);r.pieSegments.add(t)}return t.onCreated&&("string"==typeof t.onCreated&&(r.onCreatedName=t.onCreated,t.onCreated=(0,V.getFunction)(D.EBaseType.OnCreateFunction,t.onCreated)),t.onCreated(r)),r})),t.build3DChart=(e,t)=>i(void 0,void 0,void 0,(function*(){var r,i;let o;if("string"==typeof t&&(t=JSON.parse(t,k.chartReviver)),o=(null==t?void 0:t.createSingle)?yield W.SciChart3DSurface.createSingle(e,Object.assign({},null==t?void 0:t.surface)):yield W.SciChart3DSurface.create(e,Object.assign({},null==t?void 0:t.surface)),null===(r=null==t?void 0:t.surface)||void 0===r?void 0:r.theme)if("type"in t.surface.theme){const e=(0,V.getFunction)(D.EBaseType.ThemeProvider,t.surface.theme.type).call(null);e&&o.sciChart3DSurface.applyTheme(e)}else o.sciChart3DSurface.applyTheme(t.surface.theme);let{wasmContext:n,sciChart3DSurface:a}=o;const s=N.PerformanceDebugHelper.mark(N.EPerformanceMarkType.SetupStart,{contextId:a.id});return J(t,a,n),t.onCreated&&("string"==typeof t.onCreated&&(a.onCreatedName=t.onCreated,t.onCreated=(0,V.getFunction)(D.EBaseType.OnCreateFunction,t.onCreated)),yield t.onCreated(a)),N.PerformanceDebugHelper.mark(N.EPerformanceMarkType.SetupEnd,{contextId:a.id,relatedId:null===(i=null==s?void 0:s.detail)||void 0===i?void 0:i.relatedId}),{wasmContext:n,sciChart3DSurface:a}})),t.buildSubCharts=$,t.configure2DSurface=Z,t.configure3DSurface=J},58996:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.chartBuilder=t.ensureRegistrations=t.configureChart=t.buildChart=t.chartReviver=void 0;const i=r(98140),o=r(87108),n=r(91465),a=r(71993),s=r(25924),l=r(44544),d=r(96841),h=r(12193),u=r(64931),c=r(45921);function p(e,t){switch(e){case"visibleRange":case"visibleRangeLimit":case"visibleRangeSizeLimit":case"growBy":return new i.NumberRange(t.min,t.max);case"padding":const e=t;return new o.Thickness(e.top,e.right,e.bottom,e.left);default:return null===t?NaN:t}}t.chartReviver=p;const g=e=>"options"in e?e.options:e;function y(e,t){var r;"string"==typeof t&&(t=JSON.parse(t,p)),t||(t={});const i=null!==(r=null==t?void 0:t.type)&&void 0!==r?r:n.ESciChartSurfaceType.Default2D,o=g(t);if(i===n.ESciChartSurfaceType.Default2D)return(0,u.build2DChart)(e,o);if(i===n.ESciChartSurfaceType.Polar2D)return(0,u.build2DPolarChart)(e,o);if(i===n.ESciChartSurfaceType.Pie2D)return(0,u.buildPieChart)(e,o);if(i===n.ESciChartSurfaceType.Default3D)return(0,u.build3DChart)(e,o);throw new Error(`Surface type: ${i} does not exist. See ESciChartSurfaceType for all available types.`)}t.buildChart=y,t.configureChart=(e,t,r)=>{var i;"string"==typeof r&&(r=JSON.parse(r,p)),r||(r={});const o=null!==(i=null==r?void 0:r.type)&&void 0!==i?i:n.ESciChartSurfaceType.Default2D,a=g(r);if(o===n.ESciChartSurfaceType.Default2D)(0,u.configure2DSurface)(a,e,t);else if(o!==n.ESciChartSurfaceType.Pie2D)throw new Error(`Surface type: ${o} is not yet supported by the builder api`)},t.ensureRegistrations=()=>{},t.chartBuilder={buildChart:y,chartReviver:p,build2DChart:u.build2DChart,build2DPolarChart:u.build2DPolarChart,buildPieChart:u.buildPieChart,configureChart:t.configureChart,buildSeries:h.buildSeries,buildDataSeries:l.buildDataSeries,buildModifiers:d.buildModifiers,buildAxes:s.buildAxes,buildAnnotations:a.buildAnnotations,registerType:c.registerType,registerWasmType:c.registerWasmType,registerFunction:c.registerFunction,build3DChart:u.build3DChart,buildAxis3D:s.buildAxis3D,buildModifiers3D:d.buildModifiers3D,buildSeries3D:h.buildSeries3D,buildDataSeries3D:l.buildDataSeries3D}},45921:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getSubTypes=t.createType=t.getFunction=t.registerFunction=t.registerWasmType=t.registerType=void 0;const r=new Map;t.registerType=(e,t,i,o=!1)=>{const n=e+":"+t;if(r.has(n)&&!o)throw new Error("Type "+n+" is already registered. Call with overWrite: true if you intended to replace it.");r.set(n,{func:i})},t.registerWasmType=(e,t,i,o=!1)=>{const n=e+":"+t;if(r.has(n)&&!o)throw new Error("Type "+n+" is already registered. Call with overWrite: true if you intended to replace it.");r.set(n,{wasm:!0,func:i})},t.registerFunction=(e,t,i,o=!1)=>{const n=e+":"+t;if(r.has(n)&&!o)throw new Error("Function "+n+" is already registered. Call with overWrite: true if you intended to replace it.");r.set(n,{func:i})},t.getFunction=(e,t)=>{const i=e+":"+t,o=r.get(i);if(o)return o.func;throw new Error("Nothing registered for "+i)},t.createType=(e,t,i,o)=>{const n=e+":"+t,a=r.get(n);if(a){const{wasm:e,func:t}=a;return e?t(i,o):t(o)}throw new Error("Nothing registered for "+n)},t.getSubTypes=e=>Array.from(r.keys()).map((e=>e.split(":"))).filter((t=>t[0]===e)).map((e=>e[1]))},3810:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CameraController=t.ECameraProjectionMode=void 0;const i=r(3214),o=r(23866),n=r(50605),a=r(16110),s=r(17542);var l;!function(e){e.Perspective="Perspective",e.Orthogonal="Orthogonal"}(l=t.ECameraProjectionMode||(t.ECameraProjectionMode={})),t.CameraController=class{constructor(e,t){var r,o,n,s,d,h,u,c,p;this.aspectRatioProperty=1.5,this.idProperty="Default",this.farClipProperty=4e3,this.fieldOfViewProperty=60,this.isAttachedProperty=!1,this.nearClipProperty=1,this.orbitalPitchProperty=0,this.orbitalYawProperty=0,this.orthoHeightProperty=400,this.orthoWidthProperty=600,this.positionProperty=a.Vector3.zero,this.projectionModeProperty=l.Perspective,this.targetProperty=a.Vector3.zero,this.webAssemblyContext=e,this.propertyChanged=new i.EventHandler,this.resetToDefaults(),this.id=null!==(r=null==t?void 0:t.id)&&void 0!==r?r:this.id,this.farClipProperty=null!==(o=null==t?void 0:t.farClip)&&void 0!==o?o:this.farClip,this.fieldOfViewProperty=null!==(n=null==t?void 0:t.fieldOfView)&&void 0!==n?n:this.fieldOfView,this.nearClipProperty=null!==(s=null==t?void 0:t.nearClip)&&void 0!==s?s:this.nearClip,this.orthoHeightProperty=null!==(d=null==t?void 0:t.orthoHeight)&&void 0!==d?d:this.orthoHeight,this.orthoWidthProperty=null!==(h=null==t?void 0:t.orthoWidth)&&void 0!==h?h:this.orthoWidth,this.projectionModeProperty=null!==(u=null==t?void 0:t.projectionMode)&&void 0!==u?u:this.projectionMode,this.position=(null==t?void 0:t.position)?a.Vector3.hydrate(null==t?void 0:t.position):this.position,this.target=(null==t?void 0:t.target)?a.Vector3.hydrate(null==t?void 0:t.target):this.target,this.id=null!==(c=null==t?void 0:t.id)&&void 0!==c?c:this.id,this.debugPositionsProperty=null!==(p=null==t?void 0:t.debugPositions)&&void 0!==p&&p}get id(){return this.idProperty}set id(e){this.idProperty=e,this.notifyPropertyChanged(s.PROPERTY.CAMERA_ID)}get orthoHeight(){return this.orthoHeightProperty}set orthoHeight(e){this.orthoHeightProperty!==e&&(this.orthoHeightProperty=e,this.notifyPropertyChanged(s.PROPERTY.CAMERA_ORTHOHEIGHT))}get orthoWidth(){return this.orthoWidthProperty}set orthoWidth(e){this.orthoWidthProperty!==e&&(this.orthoWidthProperty=e,this.notifyPropertyChanged(s.PROPERTY.CAMERA_ORTHOWIDTH))}get projectionMode(){return this.projectionModeProperty}set projectionMode(e){this.projectionModeProperty!==e&&(this.projectionModeProperty=e,this.notifyPropertyChanged(s.PROPERTY.CAMERA_PROJECTIONMODE))}get aspectRatio(){return this.aspectRatioProperty}set aspectRatio(e){this.aspectRatioProperty!==e&&(this.aspectRatioProperty=e,this.orthoWidth=this.orthoHeight*this.aspectRatioProperty,this.notifyPropertyChanged(s.PROPERTY.CAMERA_ASPECTRATIO))}get isAttached(){return this.isAttachedProperty}set isAttached(e){this.isAttachedProperty=e,this.notifyPropertyChanged(s.PROPERTY.CAMERA_ISATTACHED)}get radius(){return this.target.subtract(this.position).length}set radius(e){e<=1&&(e=1),this.radius!==e&&(this.position=this.target.subtract(this.forward.scalarMultiply(e)),this.notifyPropertyChanged(s.PROPERTY.CAMERA_RADIUS))}get orbitalPitch(){return this.orbitalPitchProperty}set orbitalPitch(e){if(this.orbitalPitchProperty===e)return;this.orbitalPitchProperty=e>90?89.9:e<-90?-89.9:e;const t=this.webAssemblyContext.Math3D.PitchAndYawToDirection(this.orbitalPitchProperty,this.orbitalYawProperty);try{let e=new a.Vector3(t.x,t.y,t.z);e=e.scalarMultiply(this.radius),this.position=this.target.subtract(e),this.notifyPropertyChanged(s.PROPERTY.CAMERA_ORBITALPITCH)}finally{null==t||t.delete()}}get orbitalYaw(){return this.orbitalYawProperty}set orbitalYaw(e){if(this.orbitalYawProperty===e)return;this.orbitalYawProperty=e;const t=this.webAssemblyContext.Math3D.PitchAndYawToDirection(this.orbitalPitchProperty,this.orbitalYawProperty);try{let e=new a.Vector3(t.x,t.y,t.z);e=e.scalarMultiply(this.radius),this.position=this.target.subtract(e),this.notifyPropertyChanged(s.PROPERTY.CAMERA_ORBITALYAW)}finally{null==t||t.delete()}}get farClip(){return this.farClipProperty}set farClip(e){this.farClipProperty=e,this.notifyPropertyChanged(s.PROPERTY.CAMERA_FARCLIP)}get nearClip(){return this.nearClipProperty}set nearClip(e){this.nearClipProperty=e,this.notifyPropertyChanged(s.PROPERTY.CAMERA_NEARCLIP)}get fieldOfView(){return this.fieldOfViewProperty}set fieldOfView(e){this.fieldOfViewProperty=e,this.notifyPropertyChanged(s.PROPERTY.CAMERA_FIELDOFVIEW)}get upGlobal(){return new a.Vector3(0,1,0)}get side(){const e=this.forward,t=e.crossProduct(this.upGlobal).crossProduct(e).crossProduct(e);return t.normalize(),t}get forward(){const e=this.target.subtract(this.position);return e.normalize(),e}get up(){const e=this.forward,t=e.crossProduct(this.upGlobal).crossProduct(e);return t.normalize(),t}get target(){return this.targetProperty}set target(e){if(this.targetProperty===e)return;let t,r;this.targetProperty=e;try{t=this.forward.toTsrVector3(this.webAssemblyContext),r=this.webAssemblyContext.Math3D.DirectionToPitchAndYaw(t),this.orbitalPitchProperty=r.pitch,this.orbitalYawProperty=r.yaw,this.notifyPropertyChanged(s.PROPERTY.CAMERA_TARGET)}finally{null==t||t.delete(),null==r||r.delete()}}get position(){return this.positionProperty}set position(e){if(this.positionProperty===e)return;let t,r;this.positionProperty=e;try{t=this.forward.toTsrVector3(this.webAssemblyContext),r=this.webAssemblyContext.Math3D.DirectionToPitchAndYaw(t),this.orbitalPitchProperty=r.pitch,this.orbitalYawProperty=r.yaw,this.notifyPropertyChanged(s.PROPERTY.CAMERA_POSITION)}finally{null==t||t.delete(),null==r||r.delete()}}toOrthogonal(){this.projectionModeProperty!==l.Orthogonal&&(this.projectionModeProperty=l.Orthogonal,this.orthoWidthProperty=this.radius,this.orthoHeightProperty=this.orthoWidth/this.aspectRatio,this.notifyPropertyChanged(s.PROPERTY.CAMERA_PROJECTIONMODE))}toPerspective(){this.projectionModeProperty!==l.Perspective&&(this.projectionModeProperty=l.Perspective,this.radius=this.orthoWidth,this.notifyPropertyChanged(s.PROPERTY.CAMERA_PROJECTIONMODE))}resetToDefaults(){let e,t;this.positionProperty=new a.Vector3(-1e3,1e3,-1e3),this.targetProperty=new a.Vector3(0,0,0),this.fieldOfViewProperty=60,this.nearClipProperty=1,this.farClipProperty=4e3,this.projectionModeProperty=l.Perspective,this.aspectRatioProperty=1.5,this.orthoWidthProperty=600,this.orthoHeightProperty=400;try{e=this.forward.toTsrVector3(this.webAssemblyContext),t=this.webAssemblyContext.Math3D.DirectionToPitchAndYaw(e),this.orbitalPitch=t.pitch,this.orbitalYaw=t.yaw}finally{null==t||t.delete(),null==e||e.delete()}}updateEngineCamera(e){let t,r,i;o.Guard.notNull(e,"tsrCamera");try{t=this.position.toTsrVector3(this.webAssemblyContext),r=this.target.toTsrVector3(this.webAssemblyContext),i=this.up.toTsrVector3(this.webAssemblyContext),e.SetLoc(t),e.SetAt(r),e.SetFarClip(this.farClip),e.SetNearClip(this.nearClip),e.SetFovAngle(this.webAssemblyContext.Math3D.DegToRad(this.fieldOfView)),e.SetProjectionMode(this.projectionMode===l.Perspective?this.webAssemblyContext.eTSRCameraProjectionMode.CAMERA_PROJECTIONMODE_PERSPECTIVE:this.webAssemblyContext.eTSRCameraProjectionMode.CAMERA_PROJECTIONMODE_ORTHOGONAL),e.SetOrthoWidth(this.orthoWidth),e.SetOrthoHeight(this.orthoHeight),e.SetAspectRatio(this.aspectRatio),e.SetYaw(this.webAssemblyContext.Math3D.DegToRad(this.orbitalYaw)),e.SetPitch(this.webAssemblyContext.Math3D.DegToRad(this.orbitalPitch)),e.SetUp(i)}finally{null==t||t.delete(),null==r||r.delete(),null==i||i.delete()}}notifyPropertyChanged(e){var t;!this.debugPositionsProperty||e!==s.PROPERTY.CAMERA_POSITION&&e!==s.PROPERTY.CAMERA_TARGET||console.log(`SciChart.js Camera P=${this.position.toString()}, T=${this.target.toString()}`),null===(t=this.propertyChanged)||void 0===t||t.raiseEvent(new n.PropertyChangedEventArgs(e))}debugOutput(){const e=[`Camera id='${this.id}': `,` position: ${this.position.toString()}`,` target: ${this.target.toString()}`,` pitch: ${this.orbitalPitch.toFixed(2)} degrees`,` yaw: ${this.orbitalYaw.toFixed(2)} degrees`,` up Vector: ${this.up.toString()}`,` forward Vector: ${this.forward.toString()}`,` projectionMode: ${this.projectionMode}`];return this.projectionMode===l.Orthogonal?(e.push(` orthoWidth: ${this.orthoWidth.toFixed(2)}`),e.push(` orthoHeight: ${this.orthoHeight.toFixed(2)}`)):(e.push(` radius: ${this.radius.toFixed(2)}`),e.push(` fieldOfView: ${this.fieldOfView.toFixed(2)} degrees`)),e.forEach((e=>console.log(e))),e}toJSON(){return{id:this.id,position:this.position,target:this.target,fieldOfView:this.fieldOfView,nearClip:this.nearClip,farClip:this.farClip,projectionMode:this.projectionMode,orthoWidth:this.orthoWidth,orthoHeight:this.orthoHeight}}}},63220:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ChartModifierBase3D=void 0;const i=r(13063),o=r(77354),n=r(66405);class a extends i.ChartModifierBase{constructor(e){var t,r,i,n;if(super(e),this.typeMap=new Map,this.includedSeries=new o.IncludedItems,(null===(t=null==e?void 0:e.includedSeriesIds)||void 0===t?void 0:t.length)>0&&(null===(r=null==e?void 0:e.excludedSeriesIds)||void 0===r?void 0:r.length)>0)throw new Error("You should either use `includedSeriesIds` or `excludedSeriesIds`, not both.");(null===(i=null==e?void 0:e.includedSeriesIds)||void 0===i?void 0:i.length)>0&&this.includedSeries.includeList(e.includedSeriesIds),(null===(n=null==e?void 0:e.excludedSeriesIds)||void 0===n?void 0:n.length)>0&&this.includedSeries.excludeList(e.excludedSeriesIds)}get modifierType(){return n.EModifierType.Chart3DModifier}getAllSeries(){return this.parentSurface.renderableSeries.asArray()}testIsIncludedSeries(e){return e.isVisible&&this.includedSeries.testIsIncluded(e.id)}includeSeries(e,t){return t?this.includedSeries.include(e.id):this.includedSeries.exclude(e.id)}getIncludedRenderableSeries(){return this.getAllSeries().filter((e=>this.testIsIncludedSeries(e)))}toJSON(){const e={id:this.id,executeCondition:this.executeCondition,includedSeriesIds:this.includedSeries.getIncludedItemIds(),excludedSeriesIds:this.includedSeries.getExcludedItemIds()};return{type:this.type,options:e}}}t.ChartModifierBase3D=a},89577:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CustomChartModifier3D=void 0;const i=r(89955),o=r(63220);class n extends o.ChartModifierBase3D{constructor(e){super(e),this.type=i.EChart3DModifierType.Custom}}t.CustomChartModifier3D=n},20624:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LegendModifier3D=void 0;const i=r(3214),o=r(89955),n=r(63220),a=r(71305);class s extends n.ChartModifierBase3D{constructor(e){var t;super(e),this._legendOptions={},this.type=o.EChart3DModifierType.Legend,this.isCheckedChanged=new i.EventHandler,this._legendOptions=Object.assign({},e),this.legendItemCheckedChanged=this.legendItemCheckedChanged.bind(this),this.sciChart3DLegend=null!==(t=null==e?void 0:e.legend)&&void 0!==t?t:new a.SciChart3DLegend(e),this.applyLegendOptions(this.sciChart3DLegend,e)}applyLegendOptions(e,t){var r,i,o,n,a,s;e.showCheckboxes=null!==(r=null==t?void 0:t.showCheckboxes)&&void 0!==r?r:e.showCheckboxes,e.showSeriesMarkers=null!==(i=null==t?void 0:t.showSeriesMarkers)&&void 0!==i?i:e.showSeriesMarkers,e.margin=null!==(o=null==t?void 0:t.margin)&&void 0!==o?o:e.margin,e.orientation=null!==(n=null==t?void 0:t.orientation)&&void 0!==n?n:e.orientation,e.placement=null!==(a=null==t?void 0:t.placement)&&void 0!==a?a:e.placement,e.showLegend=null!==(s=null==t?void 0:t.showLegend)&&void 0!==s?s:e.showLegend,e.legendItemCheckedChangedCallback=this.legendItemCheckedChanged,(null==t?void 0:t.isCheckedChangedCallback)&&this.isCheckedChanged.subscribe((e=>t.isCheckedChangedCallback(e.series,e.isChecked)))}applyTheme(e){var t;super.applyTheme(e),null===(t=this.sciChart3DLegend)||void 0===t||t.applyTheme()}onParentSurfaceRendered(){super.onParentSurfaceRendered()}onAttach(){var e;super.onAttach(),this.sciChart3DLegend||(this.sciChart3DLegend=null!==(e=this._legendOptions.legend)&&void 0!==e?e:new a.SciChart3DLegend(this._legendOptions),this.applyLegendOptions(this.sciChart3DLegend,this._legendOptions)),this.sciChart3DLegend.attachTo(this.parentSurface),this.sciChart3DLegend.setRenderableSeriesArray(this.getIncludedRenderableSeries())}onDetach(){var e,t;this.sciChart3DLegend&&(this._legendOptions.margin=th