UNPKG

scichart

Version:

Fast WebGL JavaScript Charting Library and Framework

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