semiotic 3.8.5 → 3.8.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CLAUDE.md +5 -4
- package/README.md +42 -42
- package/ai/behaviorContracts.cjs +2 -2
- package/ai/componentMetadata.cjs +1 -1
- package/ai/dist/mcp-server.js +2 -0
- package/ai/examples.md +44 -2
- package/ai/schema.json +385 -14
- package/ai/surface-manifest.json +6 -4
- package/ai/system-prompt.md +1 -1
- package/dist/{chunk-chartContainerDataAudit-74TLKIP6.module.min.js → chunk-chartContainerDataAudit-FEOD5GTQ.module.min.js} +1 -1
- package/dist/chunk-chunk-2CHN2TA3.module.min.js +1 -0
- package/dist/chunk-chunk-2JGJ5GUG.module.min.js +1 -0
- package/dist/chunk-chunk-3NGIKFD6.module.min.js +1 -0
- package/dist/chunk-chunk-3SHB24AG.module.min.js +1 -0
- package/dist/chunk-chunk-4MMOOYTX.module.min.js +2 -0
- package/dist/{chunk-chunk-KT2VAZMZ.module.min.js → chunk-chunk-75OTQSXS.module.min.js} +1 -1
- package/dist/chunk-chunk-A5GRQUOF.module.min.js +1 -0
- package/dist/chunk-chunk-AAF5LZAU.module.min.js +2 -0
- package/dist/{chunk-chunk-4AANPFOX.module.min.js → chunk-chunk-ARZGA4LJ.module.min.js} +1 -1
- package/dist/chunk-chunk-CAFLML4L.module.min.js +2 -0
- package/dist/chunk-chunk-FHBN7OEB.module.min.js +2 -0
- package/dist/{chunk-chunk-TMWIZL3K.module.min.js → chunk-chunk-GFTVACTO.module.min.js} +1 -1
- package/dist/chunk-chunk-IP2UE74X.module.min.js +1 -0
- package/dist/chunk-chunk-ITDWLZXV.module.min.js +2 -0
- package/dist/chunk-chunk-LPSPATPC.module.min.js +1 -0
- package/dist/chunk-chunk-OM6NWS4H.module.min.js +2 -0
- package/dist/chunk-chunk-PX5YQGDP.module.min.js +2 -0
- package/dist/chunk-chunk-Q2BS46W2.module.min.js +2 -0
- package/dist/{chunk-chunk-LJLS6DY7.module.min.js → chunk-chunk-RA7JCG7D.module.min.js} +1 -1
- package/dist/chunk-chunk-RNUHEXZA.module.min.js +2 -0
- package/dist/chunk-chunk-ROZWKEUG.module.min.js +1 -0
- package/dist/chunk-chunk-SMVD3EQJ.module.min.js +2 -0
- package/dist/chunk-chunk-T2FKJD4O.module.min.js +2 -0
- package/dist/{chunk-chunk-K3DMEW22.module.min.js → chunk-chunk-UDREYOLV.module.min.js} +1 -1
- package/dist/chunk-chunk-VOWE3SAP.module.min.js +2 -0
- package/dist/chunk-chunk-VQPNBUSW.module.min.js +2 -0
- package/dist/{chunk-chunk-N5DDKCCF.module.min.js → chunk-chunk-WAWCIHFJ.module.min.js} +1 -1
- package/dist/{chunk-chunk-XXWSHGPL.module.min.js → chunk-chunk-WYARAXHR.module.min.js} +1 -1
- package/dist/{chunk-chunk-I36PJ4OC.module.min.js → chunk-chunk-XP3OHHFX.module.min.js} +1 -1
- package/dist/chunk-chunk-XV3KGYTR.module.min.js +2 -0
- package/dist/chunk-chunk-YC2IVEPX.module.min.js +1 -0
- package/dist/components/ai/chartCapabilities.d.ts +2 -1
- package/dist/components/charts/custom/XYCustomChart.d.ts +3 -0
- package/dist/components/charts/geo/DistanceCartogram.d.ts +1 -1
- package/dist/components/charts/index.d.ts +3 -0
- package/dist/components/charts/ordinal/BarChart.d.ts +7 -14
- package/dist/components/charts/ordinal/GaugeChart.d.ts +3 -0
- package/dist/components/charts/ordinal/GroupedBarChart.d.ts +3 -0
- package/dist/components/charts/ordinal/StackedBarChart.d.ts +3 -0
- package/dist/components/charts/ordinal/SwimlaneChart.d.ts +4 -14
- package/dist/components/charts/shared/chartSpecCore.d.ts +2 -4
- package/dist/components/charts/shared/gaugeGradient.d.ts +4 -8
- package/dist/components/charts/shared/gradient.d.ts +35 -0
- package/dist/components/charts/shared/hatchFill.d.ts +3 -10
- package/dist/components/charts/shared/hooks.d.ts +2 -50
- package/dist/components/charts/shared/knownChartComponents.d.ts +1 -1
- package/dist/components/charts/shared/streamPropsHelpers.d.ts +1 -2
- package/dist/components/charts/shared/useChartLegend.d.ts +58 -0
- package/dist/components/charts/shared/useChartSetup.d.ts +5 -0
- package/dist/components/charts/shared/useCustomChartSetup.d.ts +6 -1
- package/dist/components/charts/shared/useNetworkChartSetup.d.ts +1 -0
- package/dist/components/charts/shared/useStreamingLegend.d.ts +1 -1
- package/dist/components/charts/xy/AreaChart.d.ts +25 -42
- package/dist/components/charts/xy/BumpChart.capability.d.ts +11 -0
- package/dist/components/charts/xy/BumpChart.d.ts +161 -0
- package/dist/components/charts/xy/DifferenceChart.d.ts +3 -10
- package/dist/components/charts/xy/Heatmap.d.ts +3 -0
- package/dist/components/charts/xy/LineChart.d.ts +6 -8
- package/dist/components/geometry/bumpRibbonGeometry.d.ts +36 -0
- package/dist/components/legendLayout.d.ts +19 -1
- package/dist/components/semiotic-ai.d.ts +2 -1
- package/dist/components/semiotic-geo.d.ts +1 -0
- package/dist/components/semiotic-network.d.ts +1 -0
- package/dist/components/semiotic-ordinal.d.ts +2 -0
- package/dist/components/semiotic-physics.d.ts +1 -0
- package/dist/components/semiotic-realtime-core.d.ts +1 -0
- package/dist/components/semiotic-server-edge.d.ts +1 -1
- package/dist/components/semiotic-server.d.ts +1 -1
- package/dist/components/semiotic-xy.d.ts +4 -0
- package/dist/components/semiotic.d.ts +4 -4
- package/dist/components/server/serverChartConfigs.d.ts +1 -0
- package/dist/components/server/serverChartConfigsXY.d.ts +1 -0
- package/dist/components/server/staticLegend.d.ts +4 -2
- package/dist/components/server/staticSVGChrome.d.ts +4 -4
- package/dist/components/stream/GeoSVGOverlay.d.ts +4 -10
- package/dist/components/stream/NetworkSVGOverlay.d.ts +2 -6
- package/dist/components/stream/OrdinalSVGOverlay.d.ts +2 -6
- package/dist/components/stream/SVGOverlay.d.ts +2 -6
- package/dist/components/stream/StalenessBadge.d.ts +2 -6
- package/dist/components/stream/geoTypes.d.ts +3 -6
- package/dist/components/stream/legendRenderer.d.ts +2 -6
- package/dist/components/stream/ordinalTypes.d.ts +7 -31
- package/dist/components/stream/physics/PhysicsKernel.d.ts +1 -0
- package/dist/components/stream/physics/PhysicsSVGOverlay.d.ts +2 -6
- package/dist/components/stream/physics/StreamPhysicsTypes.d.ts +2 -6
- package/dist/components/stream/pipelineConfig.d.ts +7 -15
- package/dist/components/stream/renderers/canvasRenderHelpers.d.ts +9 -69
- package/dist/components/stream/renderers/cornerRadii.d.ts +2 -9
- package/dist/components/stream/renderers/thresholdLineSegments.d.ts +12 -0
- package/dist/components/stream/sceneToSVGShared.d.ts +3 -5
- package/dist/components/stream/types.d.ts +32 -56
- package/dist/components/stream/xySceneBuilders/areaGradient.d.ts +4 -20
- package/dist/components/stream/xySceneBuilders/types.d.ts +6 -6
- package/dist/components/types/legendTypes.d.ts +15 -6
- package/dist/geo.min.js +1 -1
- package/dist/geo.module.min.js +1 -1
- package/dist/network.min.js +1 -1
- package/dist/network.module.min.js +1 -1
- package/dist/ordinal.min.js +1 -1
- package/dist/ordinal.module.min.js +1 -1
- package/dist/physics.min.js +1 -1
- package/dist/physics.module.min.js +1 -1
- package/dist/physicsWorker.js +1 -1
- package/dist/realtime.min.js +1 -1
- package/dist/realtime.module.min.js +1 -1
- package/dist/semiotic-ai-core.min.js +1 -1
- package/dist/semiotic-ai-core.module.min.js +1 -1
- package/dist/semiotic-ai.d.ts +2 -1
- package/dist/semiotic-ai.min.js +1 -1
- package/dist/semiotic-ai.module.min.js +1 -1
- package/dist/semiotic-experimental.min.js +1 -1
- package/dist/semiotic-experimental.module.min.js +1 -1
- package/dist/semiotic-geo.d.ts +1 -0
- package/dist/semiotic-network.d.ts +1 -0
- package/dist/semiotic-ordinal.d.ts +2 -0
- package/dist/semiotic-physics.d.ts +1 -0
- package/dist/semiotic-realtime-core.d.ts +1 -0
- package/dist/semiotic-realtime-core.min.js +1 -1
- package/dist/semiotic-realtime-core.module.min.js +1 -1
- package/dist/semiotic-recipes-core.module.min.js +1 -1
- package/dist/semiotic-recipes.module.min.js +1 -1
- package/dist/semiotic-server-edge.d.ts +1 -1
- package/dist/semiotic-server-edge.min.js +1 -1
- package/dist/semiotic-server-edge.module.min.js +1 -1
- package/dist/semiotic-server-node.min.js +1 -1
- package/dist/semiotic-server-node.module.min.js +1 -1
- package/dist/semiotic-server.d.ts +1 -1
- package/dist/semiotic-utils-core.min.js +1 -1
- package/dist/semiotic-utils-core.module.min.js +1 -1
- package/dist/semiotic-utils.min.js +1 -1
- package/dist/semiotic-utils.module.min.js +1 -1
- package/dist/semiotic-xy.d.ts +4 -0
- package/dist/semiotic.d.ts +4 -4
- package/dist/semiotic.min.js +1 -1
- package/dist/semiotic.module.min.js +1 -1
- package/dist/server.min.js +1 -1
- package/dist/server.module.min.js +1 -1
- package/dist/xy.min.js +1 -1
- package/dist/xy.module.min.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-chunk-5I3UZV4Q.module.min.js +0 -2
- package/dist/chunk-chunk-74CCPVXB.module.min.js +0 -1
- package/dist/chunk-chunk-ANYDWOZF.module.min.js +0 -1
- package/dist/chunk-chunk-AVBI6GDT.module.min.js +0 -1
- package/dist/chunk-chunk-BANTPINB.module.min.js +0 -2
- package/dist/chunk-chunk-C57LR3YG.module.min.js +0 -1
- package/dist/chunk-chunk-CKMD5NV3.module.min.js +0 -2
- package/dist/chunk-chunk-CWQ5YIHX.module.min.js +0 -2
- package/dist/chunk-chunk-E6TXX6MI.module.min.js +0 -1
- package/dist/chunk-chunk-L6EA5V3G.module.min.js +0 -2
- package/dist/chunk-chunk-LJPCLYSC.module.min.js +0 -2
- package/dist/chunk-chunk-LRIFN2HK.module.min.js +0 -1
- package/dist/chunk-chunk-NEVE562N.module.min.js +0 -1
- package/dist/chunk-chunk-NLO44TOS.module.min.js +0 -2
- package/dist/chunk-chunk-PZJ2SBLL.module.min.js +0 -2
- package/dist/chunk-chunk-QUJ6TTLY.module.min.js +0 -1
- package/dist/chunk-chunk-RBIDBUT4.module.min.js +0 -2
- package/dist/chunk-chunk-RFLAG356.module.min.js +0 -1
- package/dist/chunk-chunk-RPU4IZAV.module.min.js +0 -2
- package/dist/chunk-chunk-SKMBCFIL.module.min.js +0 -2
- package/dist/chunk-chunk-TAE7W424.module.min.js +0 -2
- package/dist/chunk-chunk-TUBMTZMU.module.min.js +0 -2
- package/dist/chunk-chunk-UFFEXJQY.module.min.js +0 -1
- package/dist/chunk-chunk-XSCHTS4D.module.min.js +0 -2
- package/dist/chunk-statisticalOverlays-QGDLRUHX.module.min.js +0 -1
- package/dist/chunk-statisticalOverlays-T77OKLDY.module.min.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{diagnoseTokenEncoding as e}from"./chunk-chunk-2CXCXRB4.module.min.js";import{annotationStableId as t,filterAnnotationsByStatus as o,parseDateLikeString as n,resolveAccessor as r,resolveRawAccessor as a}from"./chunk-chunk-CO5KQMGH.module.min.js";import{annotationBudget as i,annotationDrawsConnector as s,annotationType as c,isNoteAnnotation as l}from"./chunk-chunk-U66USBWU.module.min.js";function p(e,t){const o=e.length,n=t.length,r=Array(n+1);for(let e=0;n>=e;e++)r[e]=e;for(let a=1;o>=a;a++){let o=r[0];r[0]=a;for(let i=1;n>=i;i++){const n=r[i];r[i]=e[a-1]===t[i-1]?o:1+Math.min(o,r[i],r[i-1]),o=n}}return r[n]}function y(e,t,o=3){let n,r=o+1;for(const o of t){const t=p(e.toLowerCase(),o.toLowerCase());r>t&&(r=t,n=o)}return r>o?void 0:n}function u(e){return e.length>3?[e[0],e[Math.floor(e.length/2)],e[e.length-1]]:[...e]}function d(e,t){if(0===t.length)return null;const o=e.toLowerCase();return t.find(e=>e.toLowerCase().includes(o)||o.includes(e.toLowerCase()))||(y(e,t,3)??null)}var m={BarChart:{required:["data"],dataShape:"array",dataAccessors:["categoryAccessor","valueAccessor"],props:{mode:{type:"string",enum:["primary","context","sparkline","mobile"]},width:{type:"number"},height:{type:"number"},margin:{type:"object"},className:{type:"string"},title:{type:"string"},description:{type:"string"},summary:{type:"string"},accessibleTable:{type:"boolean"},enableHover:{type:"boolean"},showLegend:{type:"boolean"},showGrid:{type:"boolean"},colorBy:{type:["string","function"]},colorScheme:{type:["string","array","object"]},tooltip:{type:["boolean","function","object","string"]},annotations:{type:"array"},autoPlaceAnnotations:{type:["boolean","object"]},responsiveRules:{type:"array"},mobileSemantics:{type:"object"},mobileInteraction:{type:["boolean","object"]},axisExtent:{type:"string",enum:["nice","exact"]},animate:{type:["boolean","object"]},loading:{type:"boolean"},loadingContent:{type:["boolean","object"]},emptyContent:{type:["boolean","object"]},hoverHighlight:{type:"boolean"},chartId:{type:"string"},emphasis:{type:"string",enum:["primary","secondary"]},responsiveWidth:{type:"boolean"},responsiveHeight:{type:"boolean"},color:{type:"string"},stroke:{type:"string"},strokeWidth:{type:"number"},opacity:{type:"number"},onObservation:{type:"function"},frameProps:{type:"object"},onClick:{type:"function"},categoryLabel:{type:"string"},valueLabel:{type:"string"},valueFormat:{type:"function"},categoryFormat:{type:"function"},data:{type:"array"},categoryAccessor:{type:["string","function"]},valueAccessor:{type:["string","function"]},orientation:{type:"string",enum:["vertical","horizontal"]},sort:{type:["boolean","string","function"]},barPadding:{type:"number"},roundedTop:{type:"number"},valueExtent:{type:"array"},styleRules:{type:"array"},gradientFill:{type:"object"},regression:{type:["boolean","string","object"]}}},StackedBarChart:{required:["data","stackBy"],dataShape:"array",dataAccessors:["categoryAccessor","valueAccessor"],props:{mode:{type:"string",enum:["primary","context","sparkline","mobile"]},width:{type:"number"},height:{type:"number"},margin:{type:"object"},className:{type:"string"},title:{type:"string"},description:{type:"string"},summary:{type:"string"},accessibleTable:{type:"boolean"},enableHover:{type:"boolean"},showLegend:{type:"boolean"},showGrid:{type:"boolean"},colorBy:{type:["string","function"]},colorScheme:{type:["string","array","object"]},tooltip:{type:["boolean","function","object","string"]},annotations:{type:"array"},autoPlaceAnnotations:{type:["boolean","object"]},responsiveRules:{type:"array"},mobileSemantics:{type:"object"},mobileInteraction:{type:["boolean","object"]},axisExtent:{type:"string",enum:["nice","exact"]},animate:{type:["boolean","object"]},loading:{type:"boolean"},loadingContent:{type:["boolean","object"]},emptyContent:{type:["boolean","object"]},hoverHighlight:{type:"boolean"},chartId:{type:"string"},emphasis:{type:"string",enum:["primary","secondary"]},responsiveWidth:{type:"boolean"},responsiveHeight:{type:"boolean"},color:{type:"string"},stroke:{type:"string"},strokeWidth:{type:"number"},opacity:{type:"number"},onObservation:{type:"function"},frameProps:{type:"object"},onClick:{type:"function"},categoryLabel:{type:"string"},valueLabel:{type:"string"},valueFormat:{type:"function"},categoryFormat:{type:"function"},data:{type:"array"},stackBy:{type:["string","function"]},categoryAccessor:{type:["string","function"]},valueAccessor:{type:["string","function"]},orientation:{type:"string",enum:["vertical","horizontal"]},normalize:{type:"boolean"},sort:{type:["boolean","string","function"]},barPadding:{type:"number"},roundedTop:{type:"number"},styleRules:{type:"array"},gradientFill:{type:"object"}}},GroupedBarChart:{required:["data","groupBy"],dataShape:"array",dataAccessors:["categoryAccessor","valueAccessor"],props:{mode:{type:"string",enum:["primary","context","sparkline","mobile"]},width:{type:"number"},height:{type:"number"},margin:{type:"object"},className:{type:"string"},title:{type:"string"},description:{type:"string"},summary:{type:"string"},accessibleTable:{type:"boolean"},enableHover:{type:"boolean"},showLegend:{type:"boolean"},showGrid:{type:"boolean"},colorBy:{type:["string","function"]},colorScheme:{type:["string","array","object"]},tooltip:{type:["boolean","function","object","string"]},annotations:{type:"array"},autoPlaceAnnotations:{type:["boolean","object"]},responsiveRules:{type:"array"},mobileSemantics:{type:"object"},mobileInteraction:{type:["boolean","object"]},axisExtent:{type:"string",enum:["nice","exact"]},animate:{type:["boolean","object"]},loading:{type:"boolean"},loadingContent:{type:["boolean","object"]},emptyContent:{type:["boolean","object"]},hoverHighlight:{type:"boolean"},chartId:{type:"string"},emphasis:{type:"string",enum:["primary","secondary"]},responsiveWidth:{type:"boolean"},responsiveHeight:{type:"boolean"},color:{type:"string"},stroke:{type:"string"},strokeWidth:{type:"number"},opacity:{type:"number"},onObservation:{type:"function"},frameProps:{type:"object"},onClick:{type:"function"},categoryLabel:{type:"string"},valueLabel:{type:"string"},valueFormat:{type:"function"},categoryFormat:{type:"function"},data:{type:"array"},groupBy:{type:["string","function"]},categoryAccessor:{type:["string","function"]},valueAccessor:{type:["string","function"]},orientation:{type:"string",enum:["vertical","horizontal"]},sort:{type:["boolean","string","function"]},barPadding:{type:"number"},roundedTop:{type:"number"},styleRules:{type:"array"},gradientFill:{type:"object"}}},SwarmPlot:{required:["data"],dataShape:"array",dataAccessors:["categoryAccessor","valueAccessor"],props:{mode:{type:"string",enum:["primary","context","sparkline","mobile"]},width:{type:"number"},height:{type:"number"},margin:{type:"object"},className:{type:"string"},title:{type:"string"},description:{type:"string"},summary:{type:"string"},accessibleTable:{type:"boolean"},enableHover:{type:"boolean"},showLegend:{type:"boolean"},showGrid:{type:"boolean"},colorBy:{type:["string","function"]},colorScheme:{type:["string","array","object"]},tooltip:{type:["boolean","function","object","string"]},annotations:{type:"array"},autoPlaceAnnotations:{type:["boolean","object"]},responsiveRules:{type:"array"},mobileSemantics:{type:"object"},mobileInteraction:{type:["boolean","object"]},axisExtent:{type:"string",enum:["nice","exact"]},animate:{type:["boolean","object"]},loading:{type:"boolean"},loadingContent:{type:["boolean","object"]},emptyContent:{type:["boolean","object"]},hoverHighlight:{type:"boolean"},chartId:{type:"string"},emphasis:{type:"string",enum:["primary","secondary"]},responsiveWidth:{type:"boolean"},responsiveHeight:{type:"boolean"},color:{type:"string"},stroke:{type:"string"},strokeWidth:{type:"number"},opacity:{type:"number"},onObservation:{type:"function"},frameProps:{type:"object"},onClick:{type:"function"},categoryLabel:{type:"string"},valueLabel:{type:"string"},valueFormat:{type:"function"},categoryFormat:{type:"function"},data:{type:"array"},categoryAccessor:{type:["string","function"]},valueAccessor:{type:["string","function"]},orientation:{type:"string",enum:["vertical","horizontal"]},sizeBy:{type:["string","function"]},sizeRange:{type:"array"},symbolBy:{type:["string","function"]},symbolMap:{type:"object"},pointRadius:{type:"number"},pointOpacity:{type:"number"},categoryPadding:{type:"number"},brush:{type:"boolean"},onBrush:{type:"function"},linkedBrush:{type:["string","object"]}}},BoxPlot:{required:["data"],dataShape:"array",dataAccessors:["categoryAccessor","valueAccessor"],props:{mode:{type:"string",enum:["primary","context","sparkline","mobile"]},width:{type:"number"},height:{type:"number"},margin:{type:"object"},className:{type:"string"},title:{type:"string"},description:{type:"string"},summary:{type:"string"},accessibleTable:{type:"boolean"},enableHover:{type:"boolean"},showLegend:{type:"boolean"},showGrid:{type:"boolean"},colorBy:{type:["string","function"]},colorScheme:{type:["string","array","object"]},tooltip:{type:["boolean","function","object","string"]},annotations:{type:"array"},autoPlaceAnnotations:{type:["boolean","object"]},responsiveRules:{type:"array"},mobileSemantics:{type:"object"},mobileInteraction:{type:["boolean","object"]},axisExtent:{type:"string",enum:["nice","exact"]},animate:{type:["boolean","object"]},loading:{type:"boolean"},loadingContent:{type:["boolean","object"]},emptyContent:{type:["boolean","object"]},hoverHighlight:{type:"boolean"},chartId:{type:"string"},emphasis:{type:"string",enum:["primary","secondary"]},responsiveWidth:{type:"boolean"},responsiveHeight:{type:"boolean"},color:{type:"string"},stroke:{type:"string"},strokeWidth:{type:"number"},opacity:{type:"number"},onObservation:{type:"function"},frameProps:{type:"object"},onClick:{type:"function"},categoryLabel:{type:"string"},valueLabel:{type:"string"},valueFormat:{type:"function"},categoryFormat:{type:"function"},data:{type:"array"},categoryAccessor:{type:["string","function"]},valueAccessor:{type:["string","function"]},orientation:{type:"string",enum:["vertical","horizontal"]},showOutliers:{type:"boolean"},outlierRadius:{type:"number"},categoryPadding:{type:"number"}}},Histogram:{required:["data"],dataShape:"array",dataAccessors:["categoryAccessor","valueAccessor"],props:{mode:{type:"string",enum:["primary","context","sparkline","mobile"]},width:{type:"number"},height:{type:"number"},margin:{type:"object"},className:{type:"string"},title:{type:"string"},description:{type:"string"},summary:{type:"string"},accessibleTable:{type:"boolean"},enableHover:{type:"boolean"},showLegend:{type:"boolean"},showGrid:{type:"boolean"},colorBy:{type:["string","function"]},colorScheme:{type:["string","array","object"]},tooltip:{type:["boolean","function","object","string"]},annotations:{type:"array"},autoPlaceAnnotations:{type:["boolean","object"]},responsiveRules:{type:"array"},mobileSemantics:{type:"object"},mobileInteraction:{type:["boolean","object"]},axisExtent:{type:"string",enum:["nice","exact"]},animate:{type:["boolean","object"]},loading:{type:"boolean"},loadingContent:{type:["boolean","object"]},emptyContent:{type:["boolean","object"]},hoverHighlight:{type:"boolean"},chartId:{type:"string"},emphasis:{type:"string",enum:["primary","secondary"]},responsiveWidth:{type:"boolean"},responsiveHeight:{type:"boolean"},color:{type:"string"},stroke:{type:"string"},strokeWidth:{type:"number"},opacity:{type:"number"},onObservation:{type:"function"},frameProps:{type:"object"},onClick:{type:"function"},categoryLabel:{type:"string"},valueLabel:{type:"string"},valueFormat:{type:"function"},categoryFormat:{type:"function"},data:{type:"array"},categoryAccessor:{type:["string","function"]},valueAccessor:{type:["string","function"]},bins:{type:"number"},relative:{type:"boolean"},categoryPadding:{type:"number"},brush:{type:"boolean"},onBrush:{type:"function"},linkedBrush:{type:["string","object"]}}},ViolinPlot:{required:["data"],dataShape:"array",dataAccessors:["categoryAccessor","valueAccessor"],props:{mode:{type:"string",enum:["primary","context","sparkline","mobile"]},width:{type:"number"},height:{type:"number"},margin:{type:"object"},className:{type:"string"},title:{type:"string"},description:{type:"string"},summary:{type:"string"},accessibleTable:{type:"boolean"},enableHover:{type:"boolean"},showLegend:{type:"boolean"},showGrid:{type:"boolean"},colorBy:{type:["string","function"]},colorScheme:{type:["string","array","object"]},tooltip:{type:["boolean","function","object","string"]},annotations:{type:"array"},autoPlaceAnnotations:{type:["boolean","object"]},responsiveRules:{type:"array"},mobileSemantics:{type:"object"},mobileInteraction:{type:["boolean","object"]},axisExtent:{type:"string",enum:["nice","exact"]},animate:{type:["boolean","object"]},loading:{type:"boolean"},loadingContent:{type:["boolean","object"]},emptyContent:{type:["boolean","object"]},hoverHighlight:{type:"boolean"},chartId:{type:"string"},emphasis:{type:"string",enum:["primary","secondary"]},responsiveWidth:{type:"boolean"},responsiveHeight:{type:"boolean"},color:{type:"string"},stroke:{type:"string"},strokeWidth:{type:"number"},opacity:{type:"number"},onObservation:{type:"function"},frameProps:{type:"object"},onClick:{type:"function"},categoryLabel:{type:"string"},valueLabel:{type:"string"},valueFormat:{type:"function"},categoryFormat:{type:"function"},data:{type:"array"},categoryAccessor:{type:["string","function"]},valueAccessor:{type:["string","function"]},orientation:{type:"string",enum:["vertical","horizontal"]},bins:{type:"number"},curve:{type:"string"},showIQR:{type:"boolean"},categoryPadding:{type:"number"},brush:{type:"boolean"},onBrush:{type:"function"},linkedBrush:{type:["string","object"]}}},RidgelinePlot:{required:["data"],dataShape:"array",dataAccessors:["categoryAccessor","valueAccessor"],props:{mode:{type:"string",enum:["primary","context","sparkline","mobile"]},width:{type:"number"},height:{type:"number"},margin:{type:"object"},className:{type:"string"},title:{type:"string"},description:{type:"string"},summary:{type:"string"},accessibleTable:{type:"boolean"},enableHover:{type:"boolean"},showLegend:{type:"boolean"},showGrid:{type:"boolean"},colorBy:{type:["string","function"]},colorScheme:{type:["string","array","object"]},tooltip:{type:["boolean","function","object","string"]},annotations:{type:"array"},autoPlaceAnnotations:{type:["boolean","object"]},responsiveRules:{type:"array"},mobileSemantics:{type:"object"},mobileInteraction:{type:["boolean","object"]},axisExtent:{type:"string",enum:["nice","exact"]},animate:{type:["boolean","object"]},loading:{type:"boolean"},loadingContent:{type:["boolean","object"]},emptyContent:{type:["boolean","object"]},hoverHighlight:{type:"boolean"},chartId:{type:"string"},emphasis:{type:"string",enum:["primary","secondary"]},responsiveWidth:{type:"boolean"},responsiveHeight:{type:"boolean"},color:{type:"string"},stroke:{type:"string"},strokeWidth:{type:"number"},opacity:{type:"number"},onObservation:{type:"function"},frameProps:{type:"object"},onClick:{type:"function"},categoryLabel:{type:"string"},valueLabel:{type:"string"},valueFormat:{type:"function"},categoryFormat:{type:"function"},data:{type:"array"},categoryAccessor:{type:["string","function"]},valueAccessor:{type:["string","function"]},bins:{type:"number"},amplitude:{type:"number"},categoryPadding:{type:"number"}}},DotPlot:{required:["data"],dataShape:"array",dataAccessors:["categoryAccessor","valueAccessor"],props:{mode:{type:"string",enum:["primary","context","sparkline","mobile"]},width:{type:"number"},height:{type:"number"},margin:{type:"object"},className:{type:"string"},title:{type:"string"},description:{type:"string"},summary:{type:"string"},accessibleTable:{type:"boolean"},enableHover:{type:"boolean"},showLegend:{type:"boolean"},showGrid:{type:"boolean"},colorBy:{type:["string","function"]},colorScheme:{type:["string","array","object"]},tooltip:{type:["boolean","function","object","string"]},annotations:{type:"array"},autoPlaceAnnotations:{type:["boolean","object"]},responsiveRules:{type:"array"},mobileSemantics:{type:"object"},mobileInteraction:{type:["boolean","object"]},axisExtent:{type:"string",enum:["nice","exact"]},animate:{type:["boolean","object"]},loading:{type:"boolean"},loadingContent:{type:["boolean","object"]},emptyContent:{type:["boolean","object"]},hoverHighlight:{type:"boolean"},chartId:{type:"string"},emphasis:{type:"string",enum:["primary","secondary"]},responsiveWidth:{type:"boolean"},responsiveHeight:{type:"boolean"},color:{type:"string"},stroke:{type:"string"},strokeWidth:{type:"number"},opacity:{type:"number"},onObservation:{type:"function"},frameProps:{type:"object"},onClick:{type:"function"},categoryLabel:{type:"string"},valueLabel:{type:"string"},valueFormat:{type:"function"},categoryFormat:{type:"function"},data:{type:"array"},categoryAccessor:{type:["string","function"]},valueAccessor:{type:["string","function"]},orientation:{type:"string",enum:["vertical","horizontal"]},sort:{type:["boolean","string","function"]},dotRadius:{type:"number"},categoryPadding:{type:"number"},regression:{type:["boolean","string","object"]}}},PieChart:{required:["data"],dataShape:"array",dataAccessors:["categoryAccessor","valueAccessor"],props:{mode:{type:"string",enum:["primary","context","sparkline","mobile"]},width:{type:"number"},height:{type:"number"},margin:{type:"object"},className:{type:"string"},title:{type:"string"},description:{type:"string"},summary:{type:"string"},accessibleTable:{type:"boolean"},enableHover:{type:"boolean"},showLegend:{type:"boolean"},showGrid:{type:"boolean"},colorBy:{type:["string","function"]},colorScheme:{type:["string","array","object"]},tooltip:{type:["boolean","function","object","string"]},annotations:{type:"array"},autoPlaceAnnotations:{type:["boolean","object"]},responsiveRules:{type:"array"},mobileSemantics:{type:"object"},mobileInteraction:{type:["boolean","object"]},axisExtent:{type:"string",enum:["nice","exact"]},animate:{type:["boolean","object"]},loading:{type:"boolean"},loadingContent:{type:["boolean","object"]},emptyContent:{type:["boolean","object"]},hoverHighlight:{type:"boolean"},chartId:{type:"string"},emphasis:{type:"string",enum:["primary","secondary"]},responsiveWidth:{type:"boolean"},responsiveHeight:{type:"boolean"},color:{type:"string"},stroke:{type:"string"},strokeWidth:{type:"number"},opacity:{type:"number"},onObservation:{type:"function"},frameProps:{type:"object"},onClick:{type:"function"},data:{type:"array"},categoryAccessor:{type:["string","function"]},valueAccessor:{type:["string","function"]},startAngle:{type:"number"},cornerRadius:{type:"number"}}},DonutChart:{required:["data"],dataShape:"array",dataAccessors:["categoryAccessor","valueAccessor"],props:{mode:{type:"string",enum:["primary","context","sparkline","mobile"]},width:{type:"number"},height:{type:"number"},margin:{type:"object"},className:{type:"string"},title:{type:"string"},description:{type:"string"},summary:{type:"string"},accessibleTable:{type:"boolean"},enableHover:{type:"boolean"},showLegend:{type:"boolean"},showGrid:{type:"boolean"},colorBy:{type:["string","function"]},colorScheme:{type:["string","array","object"]},tooltip:{type:["boolean","function","object","string"]},annotations:{type:"array"},autoPlaceAnnotations:{type:["boolean","object"]},responsiveRules:{type:"array"},mobileSemantics:{type:"object"},mobileInteraction:{type:["boolean","object"]},axisExtent:{type:"string",enum:["nice","exact"]},animate:{type:["boolean","object"]},loading:{type:"boolean"},loadingContent:{type:["boolean","object"]},emptyContent:{type:["boolean","object"]},hoverHighlight:{type:"boolean"},chartId:{type:"string"},emphasis:{type:"string",enum:["primary","secondary"]},responsiveWidth:{type:"boolean"},responsiveHeight:{type:"boolean"},color:{type:"string"},stroke:{type:"string"},strokeWidth:{type:"number"},opacity:{type:"number"},onObservation:{type:"function"},frameProps:{type:"object"},onClick:{type:"function"},data:{type:"array"},categoryAccessor:{type:["string","function"]},valueAccessor:{type:["string","function"]},innerRadius:{type:"number"},centerContent:{type:["object","string","number"]},startAngle:{type:"number"},cornerRadius:{type:"number"}}},GaugeChart:{required:["value"],dataShape:"none",dataAccessors:[],props:{mode:{type:"string",enum:["primary","context","sparkline","mobile"]},width:{type:"number"},height:{type:"number"},margin:{type:"object"},className:{type:"string"},title:{type:"string"},description:{type:"string"},summary:{type:"string"},accessibleTable:{type:"boolean"},enableHover:{type:"boolean"},showLegend:{type:"boolean"},showGrid:{type:"boolean"},colorBy:{type:["string","function"]},colorScheme:{type:["string","array","object"]},tooltip:{type:["boolean","function","object","string"]},annotations:{type:"array"},autoPlaceAnnotations:{type:["boolean","object"]},responsiveRules:{type:"array"},mobileSemantics:{type:"object"},mobileInteraction:{type:["boolean","object"]},axisExtent:{type:"string",enum:["nice","exact"]},animate:{type:["boolean","object"]},loading:{type:"boolean"},loadingContent:{type:["boolean","object"]},emptyContent:{type:["boolean","object"]},hoverHighlight:{type:"boolean"},chartId:{type:"string"},emphasis:{type:"string",enum:["primary","secondary"]},responsiveWidth:{type:"boolean"},responsiveHeight:{type:"boolean"},color:{type:"string"},stroke:{type:"string"},strokeWidth:{type:"number"},opacity:{type:"number"},onObservation:{type:"function"},frameProps:{type:"object"},onClick:{type:"function"},value:{type:"number"},min:{type:"number"},max:{type:"number"},thresholds:{type:"array"},gradientFill:{type:"object"},arcWidth:{type:"number"},cornerRadius:{type:"number"},sweep:{type:"number"},fillZones:{type:"boolean"},showNeedle:{type:"boolean"},needleColor:{type:"string"},valueFormat:{type:"function"},centerContent:{type:["object","string","number","function"]},showScaleLabels:{type:"boolean"},backgroundColor:{type:"string"}}},FunnelChart:{required:["data"],dataShape:"array",dataAccessors:["stepAccessor","valueAccessor"],props:{mode:{type:"string",enum:["primary","context","sparkline","mobile"]},width:{type:"number"},height:{type:"number"},margin:{type:"object"},className:{type:"string"},title:{type:"string"},description:{type:"string"},summary:{type:"string"},accessibleTable:{type:"boolean"},enableHover:{type:"boolean"},showLegend:{type:"boolean"},showGrid:{type:"boolean"},colorBy:{type:["string","function"]},colorScheme:{type:["string","array","object"]},tooltip:{type:["boolean","function","object","string"]},annotations:{type:"array"},autoPlaceAnnotations:{type:["boolean","object"]},responsiveRules:{type:"array"},mobileSemantics:{type:"object"},mobileInteraction:{type:["boolean","object"]},axisExtent:{type:"string",enum:["nice","exact"]},animate:{type:["boolean","object"]},loading:{type:"boolean"},loadingContent:{type:["boolean","object"]},emptyContent:{type:["boolean","object"]},hoverHighlight:{type:"boolean"},chartId:{type:"string"},emphasis:{type:"string",enum:["primary","secondary"]},responsiveWidth:{type:"boolean"},responsiveHeight:{type:"boolean"},color:{type:"string"},stroke:{type:"string"},strokeWidth:{type:"number"},opacity:{type:"number"},onObservation:{type:"function"},frameProps:{type:"object"},onClick:{type:"function"},categoryLabel:{type:"string"},valueLabel:{type:"string"},valueFormat:{type:"function"},categoryFormat:{type:"function"},data:{type:"array"},stepAccessor:{type:["string","function"]},valueAccessor:{type:["string","function"]},categoryAccessor:{type:["string","function"]},orientation:{type:"string",enum:["horizontal","vertical"]},connectorOpacity:{type:"number"},showCategoryTicks:{type:"boolean"},legendPosition:{type:"string",enum:["right","left","top","bottom"]}}},SwimlaneChart:{required:["subcategoryAccessor"],dataShape:"array",dataAccessors:["categoryAccessor","subcategoryAccessor","valueAccessor"],props:{mode:{type:"string",enum:["primary","context","sparkline","mobile"]},width:{type:"number"},height:{type:"number"},margin:{type:"object"},className:{type:"string"},title:{type:"string"},description:{type:"string"},summary:{type:"string"},accessibleTable:{type:"boolean"},enableHover:{type:"boolean"},showLegend:{type:"boolean"},showGrid:{type:"boolean"},colorBy:{type:["string","function"]},colorScheme:{type:["string","array","object"]},tooltip:{type:["boolean","function","object","string"]},annotations:{type:"array"},autoPlaceAnnotations:{type:["boolean","object"]},responsiveRules:{type:"array"},mobileSemantics:{type:"object"},mobileInteraction:{type:["boolean","object"]},axisExtent:{type:"string",enum:["nice","exact"]},animate:{type:["boolean","object"]},loading:{type:"boolean"},loadingContent:{type:["boolean","object"]},emptyContent:{type:["boolean","object"]},hoverHighlight:{type:"boolean"},chartId:{type:"string"},emphasis:{type:"string",enum:["primary","secondary"]},responsiveWidth:{type:"boolean"},responsiveHeight:{type:"boolean"},color:{type:"string"},stroke:{type:"string"},strokeWidth:{type:"number"},opacity:{type:"number"},onObservation:{type:"function"},frameProps:{type:"object"},onClick:{type:"function"},categoryLabel:{type:"string"},valueLabel:{type:"string"},valueFormat:{type:"function"},categoryFormat:{type:"function"},data:{type:"array"},categoryAccessor:{type:["string","function"]},subcategoryAccessor:{type:["string","function"]},valueAccessor:{type:["string","function"]},orientation:{type:"string",enum:["horizontal","vertical"]},barPadding:{type:"number"},roundedTop:{type:"number"},trackFill:{type:["string","object"]},gradientFill:{type:"object"},brush:{type:"boolean"},onBrush:{type:"function"},linkedBrush:{type:["string","object"]},showCategoryTicks:{type:"boolean"},legendPosition:{type:"string",enum:["right","left","top","bottom"]}}},LikertChart:{required:[],dataShape:"array",dataAccessors:["categoryAccessor","valueAccessor","levelAccessor","countAccessor"],props:{mode:{type:"string",enum:["primary","context","sparkline","mobile"]},width:{type:"number"},height:{type:"number"},margin:{type:"object"},className:{type:"string"},title:{type:"string"},description:{type:"string"},summary:{type:"string"},accessibleTable:{type:"boolean"},enableHover:{type:"boolean"},showLegend:{type:"boolean"},showGrid:{type:"boolean"},colorBy:{type:["string","function"]},colorScheme:{type:["string","array","object"]},tooltip:{type:["boolean","function","object","string"]},annotations:{type:"array"},autoPlaceAnnotations:{type:["boolean","object"]},responsiveRules:{type:"array"},mobileSemantics:{type:"object"},mobileInteraction:{type:["boolean","object"]},axisExtent:{type:"string",enum:["nice","exact"]},animate:{type:["boolean","object"]},loading:{type:"boolean"},loadingContent:{type:["boolean","object"]},emptyContent:{type:["boolean","object"]},hoverHighlight:{type:"boolean"},chartId:{type:"string"},emphasis:{type:"string",enum:["primary","secondary"]},responsiveWidth:{type:"boolean"},responsiveHeight:{type:"boolean"},color:{type:"string"},stroke:{type:"string"},strokeWidth:{type:"number"},opacity:{type:"number"},onObservation:{type:"function"},frameProps:{type:"object"},onClick:{type:"function"},categoryLabel:{type:"string"},valueLabel:{type:"string"},valueFormat:{type:"function"},categoryFormat:{type:"function"},data:{type:"array"},levels:{type:"array"},categoryAccessor:{type:["string","function"]},valueAccessor:{type:["string","function"]},levelAccessor:{type:["string","function"]},countAccessor:{type:["string","function"]},orientation:{type:"string",enum:["vertical","horizontal"]},barPadding:{type:"number"}}},LineChart:{required:["data"],dataShape:"array",dataAccessors:["xAccessor","yAccessor"],props:{mode:{type:"string",enum:["primary","context","sparkline","mobile"]},width:{type:"number"},height:{type:"number"},margin:{type:"object"},className:{type:"string"},title:{type:"string"},description:{type:"string"},summary:{type:"string"},accessibleTable:{type:"boolean"},enableHover:{type:"boolean"},showLegend:{type:"boolean"},showGrid:{type:"boolean"},colorBy:{type:["string","function"]},colorScheme:{type:["string","array","object"]},tooltip:{type:["boolean","function","object","string"]},annotations:{type:"array"},autoPlaceAnnotations:{type:["boolean","object"]},responsiveRules:{type:"array"},mobileSemantics:{type:"object"},mobileInteraction:{type:["boolean","object"]},axisExtent:{type:"string",enum:["nice","exact"]},animate:{type:["boolean","object"]},loading:{type:"boolean"},loadingContent:{type:["boolean","object"]},emptyContent:{type:["boolean","object"]},hoverHighlight:{type:"boolean"},chartId:{type:"string"},emphasis:{type:"string",enum:["primary","secondary"]},responsiveWidth:{type:"boolean"},responsiveHeight:{type:"boolean"},color:{type:"string"},stroke:{type:"string"},strokeWidth:{type:"number"},opacity:{type:"number"},onObservation:{type:"function"},frameProps:{type:"object"},onClick:{type:"function"},xLabel:{type:"string"},yLabel:{type:"string"},xFormat:{type:"function"},yFormat:{type:"function"},xScaleType:{type:"string",enum:["linear","log","time"]},yScaleType:{type:"string",enum:["linear","log","time"]},styleRules:{type:"array"},data:{type:"array"},xAccessor:{type:["string","function"]},yAccessor:{type:["string","function"]},lineBy:{type:["string","function"]},lineDataAccessor:{type:"string"},curve:{type:"string",enum:["linear","monotoneX","monotoneY","step","stepAfter","stepBefore","basis","cardinal","catmullRom"]},lineWidth:{type:"number"},showPoints:{type:"boolean"},pointRadius:{type:"number"},fillArea:{type:"boolean"},areaOpacity:{type:"number"},lineGradient:{type:"object"},forecast:{type:"object"},anomaly:{type:"object"},band:{type:["object","array"]}}},BumpChart:{required:["data"],dataShape:"array",dataAccessors:["xAccessor","yAccessor"],props:{mode:{type:"string",enum:["primary","context","sparkline","mobile"]},width:{type:"number"},height:{type:"number"},margin:{type:"object"},className:{type:"string"},title:{type:"string"},description:{type:"string"},summary:{type:"string"},accessibleTable:{type:"boolean"},enableHover:{type:"boolean"},showLegend:{type:"boolean"},showGrid:{type:"boolean"},colorBy:{type:["string","function"]},colorScheme:{type:["string","array","object"]},tooltip:{type:["boolean","function","object","string"]},annotations:{type:"array"},autoPlaceAnnotations:{type:["boolean","object"]},responsiveRules:{type:"array"},mobileSemantics:{type:"object"},mobileInteraction:{type:["boolean","object"]},axisExtent:{type:"string",enum:["nice","exact"]},animate:{type:["boolean","object"]},loading:{type:"boolean"},loadingContent:{type:["boolean","object"]},emptyContent:{type:["boolean","object"]},hoverHighlight:{type:["boolean","string"],enum:["series"]},chartId:{type:"string"},emphasis:{type:"string",enum:["primary","secondary"]},responsiveWidth:{type:"boolean"},responsiveHeight:{type:"boolean"},color:{type:"string"},stroke:{type:"string"},strokeWidth:{type:"number"},opacity:{type:"number"},onObservation:{type:"function"},frameProps:{type:"object"},onClick:{type:"function"},data:{type:"array"},xAccessor:{type:["string","function"]},yAccessor:{type:["string","function"]},xLabel:{type:"string"},yLabel:{type:"string"},xFormat:{type:"function"},yFormat:{type:"function"},lineBy:{type:["string","function"]},rankDirection:{type:"string",enum:["descending","ascending"]},ribbon:{type:"boolean"},curve:{type:"string",enum:["smooth","linear"]},ribbonSizeRange:{type:"array"},samplesPerSegment:{type:"number"},lineWidth:{type:"number"},highlightTop:{type:"number"},neutralColor:{type:"string"},ribbonOpacity:{type:"number"},lineOpacity:{type:"number"},showPoints:{type:"boolean"},pointRadius:{type:"number"},showLabels:{type:["boolean","string"],enum:["start","end","both"]},showAxes:{type:"boolean"},styleRules:{type:"array"},labelStyle:{type:["object","function"]},legend:{type:["array","object"]},legendInteraction:{type:"string",enum:["highlight","isolate","none"]},legendPosition:{type:"string",enum:["right","left","top","bottom"]}}},AreaChart:{required:["data"],dataShape:"array",dataAccessors:["xAccessor","yAccessor"],props:{mode:{type:"string",enum:["primary","context","sparkline","mobile"]},width:{type:"number"},height:{type:"number"},margin:{type:"object"},className:{type:"string"},title:{type:"string"},description:{type:"string"},summary:{type:"string"},accessibleTable:{type:"boolean"},enableHover:{type:"boolean"},showLegend:{type:"boolean"},showGrid:{type:"boolean"},colorBy:{type:["string","function"]},colorScheme:{type:["string","array","object"]},tooltip:{type:["boolean","function","object","string"]},annotations:{type:"array"},autoPlaceAnnotations:{type:["boolean","object"]},responsiveRules:{type:"array"},mobileSemantics:{type:"object"},mobileInteraction:{type:["boolean","object"]},axisExtent:{type:"string",enum:["nice","exact"]},animate:{type:["boolean","object"]},loading:{type:"boolean"},loadingContent:{type:["boolean","object"]},emptyContent:{type:["boolean","object"]},hoverHighlight:{type:"boolean"},chartId:{type:"string"},emphasis:{type:"string",enum:["primary","secondary"]},responsiveWidth:{type:"boolean"},responsiveHeight:{type:"boolean"},color:{type:"string"},stroke:{type:"string"},strokeWidth:{type:"number"},opacity:{type:"number"},onObservation:{type:"function"},frameProps:{type:"object"},onClick:{type:"function"},xLabel:{type:"string"},yLabel:{type:"string"},xFormat:{type:"function"},yFormat:{type:"function"},xScaleType:{type:"string",enum:["linear","log","time"]},yScaleType:{type:"string",enum:["linear","log","time"]},styleRules:{type:"array"},data:{type:"array"},xAccessor:{type:["string","function"]},yAccessor:{type:["string","function"]},areaBy:{type:["string","function"]},lineDataAccessor:{type:"string"},curve:{type:"string",enum:["linear","monotoneX","monotoneY","step","stepAfter","stepBefore","basis","cardinal","catmullRom"]},gradientFill:{type:"object"},semanticGradient:{type:"object"},semanticLine:{type:"boolean"},lineGradient:{type:"object"},areaOpacity:{type:"number"},showLine:{type:"boolean"},lineWidth:{type:"number"},forecast:{type:"object"},anomaly:{type:"object"},band:{type:["object","array"]}}},DifferenceChart:{required:[],dataShape:"array",dataAccessors:["xAccessor","seriesAAccessor","seriesBAccessor"],props:{mode:{type:"string",enum:["primary","context","sparkline","mobile"]},width:{type:"number"},height:{type:"number"},margin:{type:"object"},className:{type:"string"},title:{type:"string"},description:{type:"string"},summary:{type:"string"},accessibleTable:{type:"boolean"},enableHover:{type:"boolean"},showLegend:{type:"boolean"},showGrid:{type:"boolean"},colorBy:{type:["string","function"]},colorScheme:{type:["string","array","object"]},tooltip:{type:["boolean","function","object","string"]},annotations:{type:"array"},autoPlaceAnnotations:{type:["boolean","object"]},responsiveRules:{type:"array"},mobileSemantics:{type:"object"},mobileInteraction:{type:["boolean","object"]},axisExtent:{type:"string",enum:["nice","exact"]},animate:{type:["boolean","object"]},loading:{type:"boolean"},loadingContent:{type:["boolean","object"]},emptyContent:{type:["boolean","object"]},hoverHighlight:{type:"boolean"},chartId:{type:"string"},emphasis:{type:"string",enum:["primary","secondary"]},responsiveWidth:{type:"boolean"},responsiveHeight:{type:"boolean"},color:{type:"string"},stroke:{type:"string"},strokeWidth:{type:"number"},opacity:{type:"number"},onObservation:{type:"function"},frameProps:{type:"object"},onClick:{type:"function"},xLabel:{type:"string"},yLabel:{type:"string"},xFormat:{type:"function"},yFormat:{type:"function"},xScaleType:{type:"string",enum:["linear","log","time"]},yScaleType:{type:"string",enum:["linear","log","time"]},data:{type:"array"},xAccessor:{type:["string","function"]},seriesAAccessor:{type:["string","function"]},seriesBAccessor:{type:["string","function"]},seriesALabel:{type:"string"},seriesBLabel:{type:"string"},seriesAColor:{type:"string"},seriesBColor:{type:"string"},showLines:{type:"boolean"},lineWidth:{type:"number"},showPoints:{type:"boolean"},pointRadius:{type:"number"},curve:{type:"string",enum:["linear","monotoneX","monotoneY","step","stepAfter","stepBefore","basis","cardinal","catmullRom"]},areaOpacity:{type:"number"},gradientFill:{type:"object"},xExtent:{type:"array"},yExtent:{type:"array"},pointIdAccessor:{type:["string","function"]},windowSize:{type:"number"}}},StackedAreaChart:{required:["data","areaBy"],dataShape:"array",dataAccessors:["xAccessor","yAccessor"],props:{mode:{type:"string",enum:["primary","context","sparkline","mobile"]},width:{type:"number"},height:{type:"number"},margin:{type:"object"},className:{type:"string"},title:{type:"string"},description:{type:"string"},summary:{type:"string"},accessibleTable:{type:"boolean"},enableHover:{type:"boolean"},showLegend:{type:"boolean"},showGrid:{type:"boolean"},colorBy:{type:["string","function"]},colorScheme:{type:["string","array","object"]},tooltip:{type:["boolean","function","object","string"]},annotations:{type:"array"},autoPlaceAnnotations:{type:["boolean","object"]},responsiveRules:{type:"array"},mobileSemantics:{type:"object"},mobileInteraction:{type:["boolean","object"]},axisExtent:{type:"string",enum:["nice","exact"]},animate:{type:["boolean","object"]},loading:{type:"boolean"},loadingContent:{type:["boolean","object"]},emptyContent:{type:["boolean","object"]},hoverHighlight:{type:"boolean"},chartId:{type:"string"},emphasis:{type:"string",enum:["primary","secondary"]},responsiveWidth:{type:"boolean"},responsiveHeight:{type:"boolean"},color:{type:"string"},stroke:{type:"string"},strokeWidth:{type:"number"},opacity:{type:"number"},onObservation:{type:"function"},frameProps:{type:"object"},onClick:{type:"function"},xLabel:{type:"string"},yLabel:{type:"string"},xFormat:{type:"function"},yFormat:{type:"function"},xScaleType:{type:"string",enum:["linear","log","time"]},yScaleType:{type:"string",enum:["linear","log","time"]},styleRules:{type:"array"},data:{type:"array"},xAccessor:{type:["string","function"]},yAccessor:{type:["string","function"]},areaBy:{type:["string","function"]},lineDataAccessor:{type:"string"},curve:{type:"string",enum:["linear","monotoneX","monotoneY","step","stepAfter","stepBefore","basis","cardinal","catmullRom"]},areaOpacity:{type:"number"},showLine:{type:"boolean"},lineWidth:{type:"number"},normalize:{type:"boolean"}}},Scatterplot:{required:["data"],dataShape:"array",dataAccessors:["xAccessor","yAccessor"],props:{mode:{type:"string",enum:["primary","context","sparkline","mobile"]},width:{type:"number"},height:{type:"number"},margin:{type:"object"},className:{type:"string"},title:{type:"string"},description:{type:"string"},summary:{type:"string"},accessibleTable:{type:"boolean"},enableHover:{type:"boolean"},showLegend:{type:"boolean"},showGrid:{type:"boolean"},colorBy:{type:["string","function"]},colorScheme:{type:["string","array","object"]},tooltip:{type:["boolean","function","object","string"]},annotations:{type:"array"},autoPlaceAnnotations:{type:["boolean","object"]},responsiveRules:{type:"array"},mobileSemantics:{type:"object"},mobileInteraction:{type:["boolean","object"]},axisExtent:{type:"string",enum:["nice","exact"]},animate:{type:["boolean","object"]},loading:{type:"boolean"},loadingContent:{type:["boolean","object"]},emptyContent:{type:["boolean","object"]},hoverHighlight:{type:"boolean"},chartId:{type:"string"},emphasis:{type:"string",enum:["primary","secondary"]},responsiveWidth:{type:"boolean"},responsiveHeight:{type:"boolean"},color:{type:"string"},stroke:{type:"string"},strokeWidth:{type:"number"},opacity:{type:"number"},onObservation:{type:"function"},frameProps:{type:"object"},onClick:{type:"function"},xLabel:{type:"string"},yLabel:{type:"string"},xFormat:{type:"function"},yFormat:{type:"function"},xScaleType:{type:"string",enum:["linear","log","time"]},yScaleType:{type:"string",enum:["linear","log","time"]},styleRules:{type:"array"},data:{type:"array"},xAccessor:{type:["string","function"]},yAccessor:{type:["string","function"]},sizeBy:{type:["string","function"]},sizeRange:{type:"array"},symbolBy:{type:["string","function"]},symbolMap:{type:"object"},pointRadius:{type:"number"},pointOpacity:{type:"number"},regression:{type:["boolean","string","object"]},forecast:{type:"object"},anomaly:{type:"object"}}},BubbleChart:{required:["data","sizeBy"],dataShape:"array",dataAccessors:["xAccessor","yAccessor"],props:{mode:{type:"string",enum:["primary","context","sparkline","mobile"]},width:{type:"number"},height:{type:"number"},margin:{type:"object"},className:{type:"string"},title:{type:"string"},description:{type:"string"},summary:{type:"string"},accessibleTable:{type:"boolean"},enableHover:{type:"boolean"},showLegend:{type:"boolean"},showGrid:{type:"boolean"},colorBy:{type:["string","function"]},colorScheme:{type:["string","array","object"]},tooltip:{type:["boolean","function","object","string"]},annotations:{type:"array"},autoPlaceAnnotations:{type:["boolean","object"]},responsiveRules:{type:"array"},mobileSemantics:{type:"object"},mobileInteraction:{type:["boolean","object"]},axisExtent:{type:"string",enum:["nice","exact"]},animate:{type:["boolean","object"]},loading:{type:"boolean"},loadingContent:{type:["boolean","object"]},emptyContent:{type:["boolean","object"]},hoverHighlight:{type:"boolean"},chartId:{type:"string"},emphasis:{type:"string",enum:["primary","secondary"]},responsiveWidth:{type:"boolean"},responsiveHeight:{type:"boolean"},color:{type:"string"},stroke:{type:"string"},strokeWidth:{type:"number"},opacity:{type:"number"},onObservation:{type:"function"},frameProps:{type:"object"},onClick:{type:"function"},xLabel:{type:"string"},yLabel:{type:"string"},xFormat:{type:"function"},yFormat:{type:"function"},xScaleType:{type:"string",enum:["linear","log","time"]},yScaleType:{type:"string",enum:["linear","log","time"]},styleRules:{type:"array"},data:{type:"array"},sizeBy:{type:["string","function"]},xAccessor:{type:["string","function"]},yAccessor:{type:["string","function"]},sizeRange:{type:"array"},bubbleOpacity:{type:"number"},bubbleStrokeWidth:{type:"number"},bubbleStrokeColor:{type:"string"},regression:{type:["boolean","string","object"]}}},Heatmap:{required:["data"],dataShape:"array",dataAccessors:["xAccessor","yAccessor","valueAccessor"],props:{mode:{type:"string",enum:["primary","context","sparkline","mobile"]},width:{type:"number"},height:{type:"number"},margin:{type:"object"},className:{type:"string"},title:{type:"string"},description:{type:"string"},summary:{type:"string"},accessibleTable:{type:"boolean"},enableHover:{type:"boolean"},showLegend:{type:"boolean"},showGrid:{type:"boolean"},colorBy:{type:["string","function"]},colorScheme:{type:"string",enum:["blues","reds","greens","viridis","custom"]},tooltip:{type:["boolean","function","object","string"]},annotations:{type:"array"},autoPlaceAnnotations:{type:["boolean","object"]},responsiveRules:{type:"array"},mobileSemantics:{type:"object"},mobileInteraction:{type:["boolean","object"]},axisExtent:{type:"string",enum:["nice","exact"]},animate:{type:["boolean","object"]},loading:{type:"boolean"},loadingContent:{type:["boolean","object"]},emptyContent:{type:["boolean","object"]},hoverHighlight:{type:"boolean"},chartId:{type:"string"},emphasis:{type:"string",enum:["primary","secondary"]},responsiveWidth:{type:"boolean"},responsiveHeight:{type:"boolean"},color:{type:"string"},stroke:{type:"string"},strokeWidth:{type:"number"},opacity:{type:"number"},onObservation:{type:"function"},frameProps:{type:"object"},onClick:{type:"function"},xLabel:{type:"string"},yLabel:{type:"string"},xFormat:{type:"function"},yFormat:{type:"function"},xScaleType:{type:"string",enum:["linear","log","time"]},yScaleType:{type:"string",enum:["linear","log","time"]},data:{type:"array"},xAccessor:{type:["string","function"]},yAccessor:{type:["string","function"]},valueAccessor:{type:["string","function"]},customColorScale:{type:["object","function"]},showValues:{type:"boolean"},valueFormat:{type:"function"},cellBorderColor:{type:"string"},cellBorderWidth:{type:"number"},legendPosition:{type:"string",enum:["right","left","top","bottom"]}}},QuadrantChart:{required:[],dataShape:"array",dataAccessors:["xAccessor","yAccessor"],props:{mode:{type:"string",enum:["primary","context","sparkline","mobile"]},width:{type:"number"},height:{type:"number"},margin:{type:"object"},className:{type:"string"},title:{type:"string"},description:{type:"string"},summary:{type:"string"},accessibleTable:{type:"boolean"},enableHover:{type:"boolean"},showLegend:{type:"boolean"},showGrid:{type:"boolean"},colorBy:{type:["string","function"]},colorScheme:{type:["string","array","object"]},tooltip:{type:["boolean","function","object","string"]},annotations:{type:"array"},autoPlaceAnnotations:{type:["boolean","object"]},responsiveRules:{type:"array"},mobileSemantics:{type:"object"},mobileInteraction:{type:["boolean","object"]},axisExtent:{type:"string",enum:["nice","exact"]},animate:{type:["boolean","object"]},loading:{type:"boolean"},loadingContent:{type:["boolean","object"]},emptyContent:{type:["boolean","object"]},hoverHighlight:{type:"boolean"},chartId:{type:"string"},emphasis:{type:"string",enum:["primary","secondary"]},responsiveWidth:{type:"boolean"},responsiveHeight:{type:"boolean"},color:{type:"string"},stroke:{type:"string"},strokeWidth:{type:"number"},opacity:{type:"number"},onObservation:{type:"function"},frameProps:{type:"object"},onClick:{type:"function"},xLabel:{type:"string"},yLabel:{type:"string"},xFormat:{type:"function"},yFormat:{type:"function"},xScaleType:{type:"string",enum:["linear","log","time"]},yScaleType:{type:"string",enum:["linear","log","time"]},styleRules:{type:"array"},data:{type:"array"},xAccessor:{type:["string","function"]},yAccessor:{type:["string","function"]},xCenter:{type:"number"},yCenter:{type:"number"},quadrants:{type:"object"},centerlineStyle:{type:"object"},showQuadrantLabels:{type:"boolean"},quadrantLabelSize:{type:"number"},sizeBy:{type:["string","function"]},sizeRange:{type:"array"},pointRadius:{type:"number"},pointOpacity:{type:"number"}}},MultiAxisLineChart:{required:["series"],dataShape:"array",dataAccessors:["xAccessor"],props:{mode:{type:"string",enum:["primary","context","sparkline","mobile"]},width:{type:"number"},height:{type:"number"},margin:{type:"object"},className:{type:"string"},title:{type:"string"},description:{type:"string"},summary:{type:"string"},accessibleTable:{type:"boolean"},enableHover:{type:"boolean"},showLegend:{type:"boolean"},showGrid:{type:"boolean"},colorBy:{type:["string","function"]},colorScheme:{type:["string","array"]},tooltip:{type:["boolean","function","object","string"]},annotations:{type:"array"},autoPlaceAnnotations:{type:["boolean","object"]},responsiveRules:{type:"array"},mobileSemantics:{type:"object"},mobileInteraction:{type:["boolean","object"]},axisExtent:{type:"string",enum:["nice","exact"]},animate:{type:["boolean","object"]},loading:{type:"boolean"},loadingContent:{type:["boolean","object"]},emptyContent:{type:["boolean","object"]},hoverHighlight:{type:"boolean"},chartId:{type:"string"},emphasis:{type:"string",enum:["primary","secondary"]},responsiveWidth:{type:"boolean"},responsiveHeight:{type:"boolean"},color:{type:"string"},stroke:{type:"string"},strokeWidth:{type:"number"},opacity:{type:"number"},onObservation:{type:"function"},frameProps:{type:"object"},onClick:{type:"function"},xLabel:{type:"string"},yLabel:{type:"string"},xFormat:{type:"function"},yFormat:{type:"function"},xScaleType:{type:"string",enum:["linear","log","time"]},yScaleType:{type:"string",enum:["linear","log","time"]},data:{type:"array"},xAccessor:{type:["string","function"]},series:{type:"array"},curve:{type:"string"},lineWidth:{type:"number"}}},CandlestickChart:{required:["highAccessor","lowAccessor"],dataShape:"array",dataAccessors:["xAccessor","highAccessor","lowAccessor"],props:{mode:{type:"string",enum:["primary","context","sparkline","mobile"]},width:{type:"number"},height:{type:"number"},margin:{type:"object"},className:{type:"string"},title:{type:"string"},description:{type:"string"},summary:{type:"string"},accessibleTable:{type:"boolean"},enableHover:{type:"boolean"},showLegend:{type:"boolean"},showGrid:{type:"boolean"},colorBy:{type:["string","function"]},colorScheme:{type:["string","array","object"]},tooltip:{type:["boolean","function","object","string"]},annotations:{type:"array"},autoPlaceAnnotations:{type:["boolean","object"]},responsiveRules:{type:"array"},mobileSemantics:{type:"object"},mobileInteraction:{type:["boolean","object"]},axisExtent:{type:"string",enum:["nice","exact"]},animate:{type:["boolean","object"]},loading:{type:"boolean"},loadingContent:{type:["boolean","object"]},emptyContent:{type:["boolean","object"]},hoverHighlight:{type:"boolean"},chartId:{type:"string"},emphasis:{type:"string",enum:["primary","secondary"]},responsiveWidth:{type:"boolean"},responsiveHeight:{type:"boolean"},color:{type:"string"},stroke:{type:"string"},strokeWidth:{type:"number"},opacity:{type:"number"},onObservation:{type:"function"},frameProps:{type:"object"},onClick:{type:"function"},xLabel:{type:"string"},yLabel:{type:"string"},xFormat:{type:"function"},yFormat:{type:"function"},xScaleType:{type:"string",enum:["linear","log","time"]},yScaleType:{type:"string",enum:["linear","log","time"]},data:{type:"array"},xAccessor:{type:["string","function"]},highAccessor:{type:["string","function"]},lowAccessor:{type:["string","function"]},openAccessor:{type:["string","function"]},closeAccessor:{type:["string","function"]},candlestickStyle:{type:"object"}}},ConnectedScatterplot:{required:["data"],dataShape:"array",dataAccessors:["xAccessor","yAccessor"],props:{mode:{type:"string",enum:["primary","context","sparkline","mobile"]},width:{type:"number"},height:{type:"number"},margin:{type:"object"},className:{type:"string"},title:{type:"string"},description:{type:"string"},summary:{type:"string"},accessibleTable:{type:"boolean"},enableHover:{type:"boolean"},showLegend:{type:"boolean"},showGrid:{type:"boolean"},colorBy:{type:["string","function"]},colorScheme:{type:["string","array","object"]},tooltip:{type:["boolean","function","object","string"]},annotations:{type:"array"},autoPlaceAnnotations:{type:["boolean","object"]},responsiveRules:{type:"array"},mobileSemantics:{type:"object"},mobileInteraction:{type:["boolean","object"]},axisExtent:{type:"string",enum:["nice","exact"]},animate:{type:["boolean","object"]},loading:{type:"boolean"},loadingContent:{type:["boolean","object"]},emptyContent:{type:["boolean","object"]},hoverHighlight:{type:"boolean"},chartId:{type:"string"},emphasis:{type:"string",enum:["primary","secondary"]},responsiveWidth:{type:"boolean"},responsiveHeight:{type:"boolean"},color:{type:"string"},stroke:{type:"string"},strokeWidth:{type:"number"},opacity:{type:"number"},onObservation:{type:"function"},frameProps:{type:"object"},onClick:{type:"function"},xLabel:{type:"string"},yLabel:{type:"string"},xFormat:{type:"function"},yFormat:{type:"function"},xScaleType:{type:"string",enum:["linear","log","time"]},yScaleType:{type:"string",enum:["linear","log","time"]},styleRules:{type:"array"},data:{type:"array"},xAccessor:{type:["string","function"]},yAccessor:{type:["string","function"]},orderAccessor:{type:["string","function"]},orderLabel:{type:"string"},pointRadius:{type:"number"},pointIdAccessor:{type:["string","function"]},regression:{type:["boolean","string","object"]},forecast:{type:"object"},anomaly:{type:"object"}}},ScatterplotMatrix:{required:["data","fields"],dataShape:"array",dataAccessors:[],props:{mode:{type:"string",enum:["primary","context","sparkline","mobile"]},width:{type:"number"},height:{type:"number"},margin:{type:"object"},className:{type:"string"},title:{type:"string"},description:{type:"string"},summary:{type:"string"},accessibleTable:{type:"boolean"},enableHover:{type:"boolean"},showLegend:{type:"boolean"},showGrid:{type:"boolean"},colorBy:{type:["string","function"]},colorScheme:{type:["string","array","object"]},tooltip:{type:["boolean","function","object","string"]},annotations:{type:"array"},autoPlaceAnnotations:{type:["boolean","object"]},responsiveRules:{type:"array"},mobileSemantics:{type:"object"},mobileInteraction:{type:["boolean","object"]},axisExtent:{type:"string",enum:["nice","exact"]},animate:{type:["boolean","object"]},loading:{type:"boolean"},loadingContent:{type:["boolean","object"]},emptyContent:{type:["boolean","object"]},hoverHighlight:{type:"boolean"},chartId:{type:"string"},emphasis:{type:"string",enum:["primary","secondary"]},responsiveWidth:{type:"boolean"},responsiveHeight:{type:"boolean"},color:{type:"string"},stroke:{type:"string"},strokeWidth:{type:"number"},opacity:{type:"number"},onObservation:{type:"function"},frameProps:{type:"object"},onClick:{type:"function"},data:{type:"array"},fields:{type:"array"}}},MinimapChart:{required:["data"],dataShape:"array",dataAccessors:[],props:{mode:{type:"string",enum:["primary","context","sparkline","mobile"]},width:{type:"number"},height:{type:"number"},margin:{type:"object"},className:{type:"string"},title:{type:"string"},description:{type:"string"},summary:{type:"string"},accessibleTable:{type:"boolean"},enableHover:{type:"boolean"},showLegend:{type:"boolean"},showGrid:{type:"boolean"},colorBy:{type:["string","function"]},colorScheme:{type:["string","array","object"]},tooltip:{type:["boolean","function","object","string"]},annotations:{type:"array"},autoPlaceAnnotations:{type:["boolean","object"]},responsiveRules:{type:"array"},mobileSemantics:{type:"object"},mobileInteraction:{type:["boolean","object"]},axisExtent:{type:"string",enum:["nice","exact"]},animate:{type:["boolean","object"]},loading:{type:"boolean"},loadingContent:{type:["boolean","object"]},emptyContent:{type:["boolean","object"]},hoverHighlight:{type:"boolean"},chartId:{type:"string"},emphasis:{type:"string",enum:["primary","secondary"]},responsiveWidth:{type:"boolean"},responsiveHeight:{type:"boolean"},color:{type:"string"},stroke:{type:"string"},strokeWidth:{type:"number"},opacity:{type:"number"},onObservation:{type:"function"},frameProps:{type:"object"},onClick:{type:"function"},data:{type:"array"}}},ForceDirectedGraph:{required:["nodes","edges"],dataShape:"network",dataAccessors:["nodeIDAccessor","sourceAccessor","targetAccessor"],props:{mode:{type:"string",enum:["primary","context","sparkline","mobile"]},width:{type:"number"},height:{type:"number"},margin:{type:"object"},className:{type:"string"},title:{type:"string"},description:{type:"string"},summary:{type:"string"},accessibleTable:{type:"boolean"},enableHover:{type:"boolean"},showLegend:{type:"boolean"},showGrid:{type:"boolean"},colorBy:{type:["string","function"]},colorScheme:{type:["string","array","object"]},tooltip:{type:["boolean","function","object","string"]},annotations:{type:"array"},autoPlaceAnnotations:{type:["boolean","object"]},responsiveRules:{type:"array"},mobileSemantics:{type:"object"},mobileInteraction:{type:["boolean","object"]},axisExtent:{type:"string",enum:["nice","exact"]},animate:{type:["boolean","object"]},loading:{type:"boolean"},loadingContent:{type:["boolean","object"]},emptyContent:{type:["boolean","object"]},hoverHighlight:{type:"boolean"},chartId:{type:"string"},emphasis:{type:"string",enum:["primary","secondary"]},responsiveWidth:{type:"boolean"},responsiveHeight:{type:"boolean"},color:{type:"string"},stroke:{type:"string"},strokeWidth:{type:"number"},opacity:{type:"number"},onObservation:{type:"function"},frameProps:{type:"object"},onClick:{type:"function"},styleRules:{type:"array"},nodes:{type:"array"},edges:{type:"array"},nodeIDAccessor:{type:["string","function"]},sourceAccessor:{type:["string","function"]},targetAccessor:{type:["string","function"]},nodeLabel:{type:["string","function"]},nodeSize:{type:["number","string","function"]},nodeSizeRange:{type:"array"},edgeWidth:{type:["number","string","function"]},edgeColor:{type:"string"},edgeOpacity:{type:"number"},iterations:{type:"number"},forceStrength:{type:"number"},layoutExecution:{type:"string",enum:["auto","worker","sync"]},showLabels:{type:"boolean"}}},SankeyDiagram:{required:["edges"],dataShape:"network",dataAccessors:["sourceAccessor","targetAccessor"],props:{mode:{type:"string",enum:["primary","context","sparkline","mobile"]},width:{type:"number"},height:{type:"number"},margin:{type:"object"},className:{type:"string"},title:{type:"string"},description:{type:"string"},summary:{type:"string"},accessibleTable:{type:"boolean"},enableHover:{type:"boolean"},showLegend:{type:"boolean"},showGrid:{type:"boolean"},colorBy:{type:["string","function"]},colorScheme:{type:["string","array","object"]},tooltip:{type:["boolean","function","object","string"]},annotations:{type:"array"},autoPlaceAnnotations:{type:["boolean","object"]},responsiveRules:{type:"array"},mobileSemantics:{type:"object"},mobileInteraction:{type:["boolean","object"]},axisExtent:{type:"string",enum:["nice","exact"]},animate:{type:["boolean","object"]},loading:{type:"boolean"},loadingContent:{type:["boolean","object"]},emptyContent:{type:["boolean","object"]},hoverHighlight:{type:"boolean"},chartId:{type:"string"},emphasis:{type:"string",enum:["primary","secondary"]},responsiveWidth:{type:"boolean"},responsiveHeight:{type:"boolean"},color:{type:"string"},stroke:{type:"string"},strokeWidth:{type:"number"},opacity:{type:"number"},onObservation:{type:"function"},frameProps:{type:"object"},onClick:{type:"function"},styleRules:{type:"array"},edges:{type:"array"},nodes:{type:"array"},sourceAccessor:{type:["string","function"]},targetAccessor:{type:["string","function"]},valueAccessor:{type:["string","function"]},nodeIdAccessor:{type:["string","function"]},edgeColorBy:{type:["string","function"],enum:["source","target","gradient"]},orientation:{type:"string",enum:["vertical","horizontal"]},nodeAlign:{type:"string",enum:["justify","left","right","center"]},nodePaddingRatio:{type:"number"},nodeWidth:{type:"number"},nodeLabel:{type:["string","function"]},showLabels:{type:"boolean"},edgeOpacity:{type:"number"},edgeSort:{type:"function"}}},ProcessSankey:{required:["domain"],dataShape:"network",dataAccessors:["sourceAccessor","targetAccessor"],props:{mode:{type:"string",enum:["primary","context","sparkline","mobile"]},width:{type:"number"},height:{type:"number"},margin:{type:"object"},className:{type:"string"},title:{type:"string"},description:{type:"string"},summary:{type:"string"},accessibleTable:{type:"boolean"},enableHover:{type:"boolean"},showLegend:{type:"boolean"},showGrid:{type:"boolean"},colorBy:{type:["string","function"]},colorScheme:{type:["string","array","object"]},tooltip:{type:["boolean","function","object","string"]},annotations:{type:"array"},autoPlaceAnnotations:{type:["boolean","object"]},responsiveRules:{type:"array"},mobileSemantics:{type:"object"},mobileInteraction:{type:["boolean","object"]},axisExtent:{type:"string",enum:["nice","exact"]},animate:{type:["boolean","object"]},loading:{type:"boolean"},loadingContent:{type:["boolean","object"]},emptyContent:{type:["boolean","object"]},hoverHighlight:{type:"boolean"},chartId:{type:"string"},emphasis:{type:"string",enum:["primary","secondary"]},responsiveWidth:{type:"boolean"},responsiveHeight:{type:"boolean"},color:{type:"string"},stroke:{type:"string"},strokeWidth:{type:"number"},opacity:{type:"number"},onObservation:{type:"function"},frameProps:{type:"object"},onClick:{type:"function"},edges:{type:"array"},nodes:{type:"array"},domain:{type:"array"},axisTicks:{type:"array"},sourceAccessor:{type:["string","function"]},targetAccessor:{type:["string","function"]},valueAccessor:{type:["string","function"]},nodeIdAccessor:{type:["string","function"]},startTimeAccessor:{type:["string","function"]},endTimeAccessor:{type:["string","function"]},xExtentAccessor:{type:["string","function"]},edgeIdAccessor:{type:["string","function"]},legendPosition:{type:"string",enum:["right","left","top","bottom"]},pairing:{type:"string",enum:["value","temporal"]},packing:{type:"string",enum:["off","reuse"]},laneOrder:{type:"string",enum:["insertion","crossing-min","inside-out","crossing-min+inside-out"]},ribbonLane:{type:"string",enum:["source","target","both"]},lifetimeMode:{type:"string",enum:["full","half"]},showLaneRails:{type:"boolean"},showQualityReadout:{type:"boolean"},edgeOpacity:{type:"number"},timeFormat:{type:"function"},valueFormat:{type:"function"},showParticles:{type:"boolean"},particleStyle:{type:"object"}}},ChordDiagram:{required:["edges"],dataShape:"network",dataAccessors:["sourceAccessor","targetAccessor"],props:{mode:{type:"string",enum:["primary","context","sparkline","mobile"]},width:{type:"number"},height:{type:"number"},margin:{type:"object"},className:{type:"string"},title:{type:"string"},description:{type:"string"},summary:{type:"string"},accessibleTable:{type:"boolean"},enableHover:{type:"boolean"},showLegend:{type:"boolean"},showGrid:{type:"boolean"},colorBy:{type:["string","function"]},colorScheme:{type:["string","array","object"]},tooltip:{type:["boolean","function","object","string"]},annotations:{type:"array"},autoPlaceAnnotations:{type:["boolean","object"]},responsiveRules:{type:"array"},mobileSemantics:{type:"object"},mobileInteraction:{type:["boolean","object"]},axisExtent:{type:"string",enum:["nice","exact"]},animate:{type:["boolean","object"]},loading:{type:"boolean"},loadingContent:{type:["boolean","object"]},emptyContent:{type:["boolean","object"]},hoverHighlight:{type:"boolean"},chartId:{type:"string"},emphasis:{type:"string",enum:["primary","secondary"]},responsiveWidth:{type:"boolean"},responsiveHeight:{type:"boolean"},color:{type:"string"},stroke:{type:"string"},strokeWidth:{type:"number"},opacity:{type:"number"},onObservation:{type:"function"},frameProps:{type:"object"},onClick:{type:"function"},styleRules:{type:"array"},edges:{type:"array"},nodes:{type:"array"},sourceAccessor:{type:["string","function"]},targetAccessor:{type:["string","function"]},valueAccessor:{type:["string","function"]},nodeIdAccessor:{type:["string","function"]},edgeColorBy:{type:["string","function"],enum:["source","target"]},padAngle:{type:"number"},groupWidth:{type:"number"},sortGroups:{type:"function"},nodeLabel:{type:["string","function"]},showLabels:{type:"boolean"},edgeOpacity:{type:"number"}}},TreeDiagram:{required:["data"],dataShape:"object",dataAccessors:[],props:{mode:{type:"string",enum:["primary","context","sparkline","mobile"]},width:{type:"number"},height:{type:"number"},margin:{type:"object"},className:{type:"string"},title:{type:"string"},description:{type:"string"},summary:{type:"string"},accessibleTable:{type:"boolean"},enableHover:{type:"boolean"},showLegend:{type:"boolean"},showGrid:{type:"boolean"},colorBy:{type:["string","function"]},colorScheme:{type:["string","array","object"]},tooltip:{type:["boolean","function","object","string"]},annotations:{type:"array"},autoPlaceAnnotations:{type:["boolean","object"]},responsiveRules:{type:"array"},mobileSemantics:{type:"object"},mobileInteraction:{type:["boolean","object"]},axisExtent:{type:"string",enum:["nice","exact"]},animate:{type:["boolean","object"]},loading:{type:"boolean"},loadingContent:{type:["boolean","object"]},emptyContent:{type:["boolean","object"]},hoverHighlight:{type:"boolean"},chartId:{type:"string"},emphasis:{type:"string",enum:["primary","secondary"]},responsiveWidth:{type:"boolean"},responsiveHeight:{type:"boolean"},color:{type:"string"},stroke:{type:"string"},strokeWidth:{type:"number"},opacity:{type:"number"},onObservation:{type:"function"},frameProps:{type:"object"},onClick:{type:"function"},data:{type:"object"},layout:{type:"string",enum:["tree","cluster","partition","treemap","circlepack"]},orientation:{type:"string",enum:["vertical","horizontal","radial"]},childrenAccessor:{type:["string","function"]},valueAccessor:{type:["string","function"]},nodeIdAccessor:{type:["string","function"]},colorByDepth:{type:"boolean"},edgeStyle:{type:"string",enum:["line","curve"]},nodeLabel:{type:["string","function"]},showLabels:{type:"boolean"},nodeSize:{type:"number"}}},Treemap:{required:["data"],dataShape:"object",dataAccessors:[],props:{mode:{type:"string",enum:["primary","context","sparkline","mobile"]},width:{type:"number"},height:{type:"number"},margin:{type:"object"},className:{type:"string"},title:{type:"string"},description:{type:"string"},summary:{type:"string"},accessibleTable:{type:"boolean"},enableHover:{type:"boolean"},showLegend:{type:"boolean"},showGrid:{type:"boolean"},colorBy:{type:["string","function"]},colorScheme:{type:["string","array","object"]},tooltip:{type:["boolean","function","object","string"]},annotations:{type:"array"},autoPlaceAnnotations:{type:["boolean","object"]},responsiveRules:{type:"array"},mobileSemantics:{type:"object"},mobileInteraction:{type:["boolean","object"]},axisExtent:{type:"string",enum:["nice","exact"]},animate:{type:["boolean","object"]},loading:{type:"boolean"},loadingContent:{type:["boolean","object"]},emptyContent:{type:["boolean","object"]},hoverHighlight:{type:"boolean"},chartId:{type:"string"},emphasis:{type:"string",enum:["primary","secondary"]},responsiveWidth:{type:"boolean"},responsiveHeight:{type:"boolean"},color:{type:"string"},stroke:{type:"string"},strokeWidth:{type:"number"},opacity:{type:"number"},onObservation:{type:"function"},frameProps:{type:"object"},onClick:{type:"function"},data:{type:"object"},childrenAccessor:{type:["string","function"]},valueAccessor:{type:["string","function"]},nodeIdAccessor:{type:["string","function"]},colorByDepth:{type:"boolean"},showLabels:{type:"boolean"},nodeLabel:{type:["string","function"]},nodeStyle:{type:"function"}}},CirclePack:{required:["data"],dataShape:"object",dataAccessors:[],props:{mode:{type:"string",enum:["primary","context","sparkline","mobile"]},width:{type:"number"},height:{type:"number"},margin:{type:"object"},className:{type:"string"},title:{type:"string"},description:{type:"string"},summary:{type:"string"},accessibleTable:{type:"boolean"},enableHover:{type:"boolean"},showLegend:{type:"boolean"},showGrid:{type:"boolean"},colorBy:{type:["string","function"]},colorScheme:{type:["string","array","object"]},tooltip:{type:["boolean","function","object","string"]},annotations:{type:"array"},autoPlaceAnnotations:{type:["boolean","object"]},responsiveRules:{type:"array"},mobileSemantics:{type:"object"},mobileInteraction:{type:["boolean","object"]},axisExtent:{type:"string",enum:["nice","exact"]},animate:{type:["boolean","object"]},loading:{type:"boolean"},loadingContent:{type:["boolean","object"]},emptyContent:{type:["boolean","object"]},hoverHighlight:{type:"boolean"},chartId:{type:"string"},emphasis:{type:"string",enum:["primary","secondary"]},responsiveWidth:{type:"boolean"},responsiveHeight:{type:"boolean"},color:{type:"string"},stroke:{type:"string"},strokeWidth:{type:"number"},opacity:{type:"number"},onObservation:{type:"function"},frameProps:{type:"object"},onClick:{type:"function"},data:{type:"object"},childrenAccessor:{type:["string","function"]},valueAccessor:{type:["string","function"]},nodeIdAccessor:{type:["string","function"]},colorByDepth:{type:"boolean"},showLabels:{type:"boolean"},nodeLabel:{type:["string","function"]},circleOpacity:{type:"number"}}},OrbitDiagram:{required:["data"],dataShape:"object",dataAccessors:[],props:{mode:{type:"string",enum:["primary","context","sparkline","mobile"]},width:{type:"number"},height:{type:"number"},margin:{type:"object"},className:{type:"string"},title:{type:"string"},description:{type:"string"},summary:{type:"string"},accessibleTable:{type:"boolean"},enableHover:{type:"boolean"},showLegend:{type:"boolean"},showGrid:{type:"boolean"},colorBy:{type:["string","function"]},colorScheme:{type:["string","array","object"]},tooltip:{type:["boolean","function","object","string"]},annotations:{type:"array"},autoPlaceAnnotations:{type:["boolean","object"]},responsiveRules:{type:"array"},mobileSemantics:{type:"object"},mobileInteraction:{type:["boolean","object"]},axisExtent:{type:"string",enum:["nice","exact"]},animate:{type:["boolean","object"]},loading:{type:"boolean"},loadingContent:{type:["boolean","object"]},emptyContent:{type:["boolean","object"]},hoverHighlight:{type:"boolean"},chartId:{type:"string"},emphasis:{type:"string",enum:["primary","secondary"]},responsiveWidth:{type:"boolean"},responsiveHeight:{type:"boolean"},color:{type:"string"},stroke:{type:"string"},strokeWidth:{type:"number"},opacity:{type:"number"},onObservation:{type:"function"},frameProps:{type:"object"},onClick:{type:"function"},data:{type:"object"},childrenAccessor:{type:["string","function"]},nodeIdAccessor:{type:["string","function"]},colorByDepth:{type:"boolean"},orbitMode:{type:["string","array"]},orbitSize:{type:["number","function"]},speed:{type:"number"},eccentricity:{type:["number","function"]},showRings:{type:"boolean"},nodeRadius:{type:["number","function"]},showLabels:{type:"boolean"},animated:{type:"boolean"},revolution:{type:"function"},foregroundGraphics:{type:"object"}}},ChoroplethMap:{required:["areas"],dataShape:"array",dataAccessors:["valueAccessor"],props:{mode:{type:"string",enum:["primary","context","sparkline","mobile"]},width:{type:"number"},height:{type:"number"},margin:{type:"object"},className:{type:"string"},title:{type:"string"},description:{type:"string"},summary:{type:"string"},accessibleTable:{type:"boolean"},enableHover:{type:"boolean"},showLegend:{type:"boolean"},showGrid:{type:"boolean"},colorBy:{type:["string","function"]},colorScheme:{type:["string","array"]},tooltip:{type:["boolean","function","object","string"]},annotations:{type:"array"},autoPlaceAnnotations:{type:["boolean","object"]},responsiveRules:{type:"array"},mobileSemantics:{type:"object"},mobileInteraction:{type:["boolean","object"]},axisExtent:{type:"string",enum:["nice","exact"]},animate:{type:["boolean","object"]},loading:{type:"boolean"},loadingContent:{type:["boolean","object"]},emptyContent:{type:["boolean","object"]},hoverHighlight:{type:"boolean"},chartId:{type:"string"},emphasis:{type:"string",enum:["primary","secondary"]},responsiveWidth:{type:"boolean"},responsiveHeight:{type:"boolean"},color:{type:"string"},stroke:{type:"string"},strokeWidth:{type:"number"},opacity:{type:"number"},onObservation:{type:"function"},frameProps:{type:"object"},onClick:{type:"function"},styleRules:{type:"array"},areas:{type:["array","string"]},valueAccessor:{type:["string","function"]},projection:{type:"string"}}},ProportionalSymbolMap:{required:["points"],dataShape:"array",dataAccessors:["xAccessor","yAccessor"],props:{mode:{type:"string",enum:["primary","context","sparkline","mobile"]},width:{type:"number"},height:{type:"number"},margin:{type:"object"},className:{type:"string"},title:{type:"string"},description:{type:"string"},summary:{type:"string"},accessibleTable:{type:"boolean"},enableHover:{type:"boolean"},showLegend:{type:"boolean"},showGrid:{type:"boolean"},colorBy:{type:["string","function"]},colorScheme:{type:["string","array","object"]},tooltip:{type:["boolean","function","object","string"]},annotations:{type:"array"},autoPlaceAnnotations:{type:["boolean","object"]},responsiveRules:{type:"array"},mobileSemantics:{type:"object"},mobileInteraction:{type:["boolean","object"]},axisExtent:{type:"string",enum:["nice","exact"]},animate:{type:["boolean","object"]},loading:{type:"boolean"},loadingContent:{type:["boolean","object"]},emptyContent:{type:["boolean","object"]},hoverHighlight:{type:"boolean"},chartId:{type:"string"},emphasis:{type:"string",enum:["primary","secondary"]},responsiveWidth:{type:"boolean"},responsiveHeight:{type:"boolean"},color:{type:"string"},stroke:{type:"string"},strokeWidth:{type:"number"},opacity:{type:"number"},onObservation:{type:"function"},frameProps:{type:"object"},onClick:{type:"function"},styleRules:{type:"array"},points:{type:"array"},xAccessor:{type:["string","function"]},yAccessor:{type:["string","function"]},sizeBy:{type:["string","function"]},areas:{type:["array","string"]}}},FlowMap:{required:["flows"],dataShape:"array",dataAccessors:[],props:{mode:{type:"string",enum:["primary","context","sparkline","mobile"]},width:{type:"number"},height:{type:"number"},margin:{type:"object"},className:{type:"string"},title:{type:"string"},description:{type:"string"},summary:{type:"string"},accessibleTable:{type:"boolean"},enableHover:{type:"boolean"},showLegend:{type:"boolean"},showGrid:{type:"boolean"},colorBy:{type:["string","function"]},colorScheme:{type:["string","array","object"]},tooltip:{type:["boolean","function","object","string"]},annotations:{type:"array"},autoPlaceAnnotations:{type:["boolean","object"]},responsiveRules:{type:"array"},mobileSemantics:{type:"object"},mobileInteraction:{type:["boolean","object"]},axisExtent:{type:"string",enum:["nice","exact"]},animate:{type:["boolean","object"]},loading:{type:"boolean"},loadingContent:{type:["boolean","object"]},emptyContent:{type:["boolean","object"]},hoverHighlight:{type:"boolean"},chartId:{type:"string"},emphasis:{type:"string",enum:["primary","secondary"]},responsiveWidth:{type:"boolean"},responsiveHeight:{type:"boolean"},color:{type:"string"},stroke:{type:"string"},strokeWidth:{type:"number"},opacity:{type:"number"},onObservation:{type:"function"},frameProps:{type:"object"},onClick:{type:"function"},flows:{type:"array"},nodes:{type:"array"},valueAccessor:{type:["string","function"]},lineIdAccessor:{type:["string","function"]},pointRadius:{type:"number"}}},DistanceCartogram:{required:["points"],dataShape:"array",dataAccessors:[],props:{mode:{type:"string",enum:["primary","context","sparkline","mobile"]},width:{type:"number"},height:{type:"number"},margin:{type:"object"},className:{type:"string"},title:{type:"string"},description:{type:"string"},summary:{type:"string"},accessibleTable:{type:"boolean"},enableHover:{type:"boolean"},showLegend:{type:"boolean"},showGrid:{type:"boolean"},colorBy:{type:["string","function"]},colorScheme:{type:["string","array","object"]},tooltip:{type:["boolean","function","object","string"]},annotations:{type:"array"},autoPlaceAnnotations:{type:["boolean","object"]},responsiveRules:{type:"array"},mobileSemantics:{type:"object"},mobileInteraction:{type:["boolean","object"]},axisExtent:{type:"string",enum:["nice","exact"]},animate:{type:["boolean","object"]},loading:{type:"boolean"},loadingContent:{type:["boolean","object"]},emptyContent:{type:["boolean","object"]},hoverHighlight:{type:"boolean"},chartId:{type:"string"},emphasis:{type:"string",enum:["primary","secondary"]},responsiveWidth:{type:"boolean"},responsiveHeight:{type:"boolean"},color:{type:"string"},stroke:{type:"string"},strokeWidth:{type:"number"},opacity:{type:"number"},onObservation:{type:"function"},frameProps:{type:"object"},onClick:{type:"function"},styleRules:{type:"array"},points:{type:"array"},center:{type:"array"},costAccessor:{type:["string","function"]},showRingLabels:{type:"boolean"},cartogramLayout:{type:"string",enum:["radial","strip"]}}},RealtimeLineChart:{required:[],dataShape:"realtime",dataAccessors:[],props:{size:{type:"array"},width:{type:"number"},height:{type:"number"},margin:{type:"object"},className:{type:"string"},timeAccessor:{type:["string","function"]},valueAccessor:{type:["string","function"]},windowSize:{type:"number"},windowMode:{type:"string",enum:["sliding","stepping"]},arrowOfTime:{type:"string",enum:["left","right"]},timeExtent:{type:"array"},valueExtent:{type:"array"},extentPadding:{type:"number"},showAxes:{type:"boolean"},background:{type:"string"},enableHover:{type:["boolean","object"]},tooltip:{type:["function","object"]},tooltipContent:{type:"function"},onHover:{type:"function"},annotations:{type:"array"},autoPlaceAnnotations:{type:["boolean","object"]},responsiveRules:{type:"array"},mobileSemantics:{type:"object"},mobileInteraction:{type:["boolean","object"]},svgAnnotationRules:{type:"function"},tickFormatTime:{type:"function"},tickFormatValue:{type:"function"},decay:{type:"object"},pulse:{type:"object"},staleness:{type:"object"},stroke:{type:"string"},strokeWidth:{type:"number"},strokeDasharray:{type:"string"},transition:{type:"object"}}},RealtimeHistogram:{required:["binSize"],dataShape:"realtime",dataAccessors:[],props:{size:{type:"array"},width:{type:"number"},height:{type:"number"},margin:{type:"object"},className:{type:"string"},timeAccessor:{type:["string","function"]},valueAccessor:{type:["string","function"]},windowSize:{type:"number"},windowMode:{type:"string",enum:["sliding","stepping"]},arrowOfTime:{type:"string",enum:["left","right"]},timeExtent:{type:"array"},valueExtent:{type:"array"},extentPadding:{type:"number"},showAxes:{type:"boolean"},background:{type:"string"},enableHover:{type:["boolean","object"]},tooltip:{type:["function","object"]},tooltipContent:{type:"function"},onHover:{type:"function"},annotations:{type:"array"},autoPlaceAnnotations:{type:["boolean","object"]},responsiveRules:{type:"array"},mobileSemantics:{type:"object"},mobileInteraction:{type:["boolean","object"]},svgAnnotationRules:{type:"function"},tickFormatTime:{type:"function"},tickFormatValue:{type:"function"},decay:{type:"object"},pulse:{type:"object"},staleness:{type:"object"},binSize:{type:"number"},direction:{type:"string",enum:["up","down"]},categoryAccessor:{type:["string","function"]},colors:{type:"object"},fill:{type:"string"},stroke:{type:"string"},strokeWidth:{type:"number"},gap:{type:"number"},brush:{type:["boolean","string","object"]},onBrush:{type:"function"},linkedBrush:{type:["string","object"]},transition:{type:"object"}}},TemporalHistogram:{required:["data","binSize"],dataShape:"array",dataAccessors:["timeAccessor","valueAccessor","categoryAccessor"],props:{data:{type:"array"},binSize:{type:"number"},size:{type:"array"},width:{type:"number"},height:{type:"number"},margin:{type:"object"},className:{type:"string"},timeAccessor:{type:["string","function"]},valueAccessor:{type:["string","function"]},direction:{type:"string",enum:["up","down"]},categoryAccessor:{type:["string","function"]},colors:{type:"object"},timeExtent:{type:"array"},valueExtent:{type:"array"},extentPadding:{type:"number"},showAxes:{type:"boolean"},background:{type:"string"},enableHover:{type:["boolean","object"]},tooltip:{type:["function","object"]},tooltipContent:{type:"function"},onHover:{type:"function"},annotations:{type:"array"},autoPlaceAnnotations:{type:["boolean","object"]},responsiveRules:{type:"array"},mobileSemantics:{type:"object"},mobileInteraction:{type:["boolean","object"]},svgAnnotationRules:{type:"function"},tickFormatTime:{type:"function"},tickFormatValue:{type:"function"},fill:{type:"string"},stroke:{type:"string"},strokeWidth:{type:"number"},gap:{type:"number"},linkedHover:{type:["boolean","string","object"]},linkedBrush:{type:["string","object"]},brush:{type:["boolean","string","object"]},onBrush:{type:"function"}}},RealtimeSwarmChart:{required:[],dataShape:"realtime",dataAccessors:[],props:{size:{type:"array"},width:{type:"number"},height:{type:"number"},margin:{type:"object"},className:{type:"string"},timeAccessor:{type:["string","function"]},valueAccessor:{type:["string","function"]},windowSize:{type:"number"},windowMode:{type:"string",enum:["sliding","stepping"]},arrowOfTime:{type:"string",enum:["left","right"]},timeExtent:{type:"array"},valueExtent:{type:"array"},extentPadding:{type:"number"},showAxes:{type:"boolean"},background:{type:"string"},enableHover:{type:["boolean","object"]},tooltip:{type:["function","object"]},tooltipContent:{type:"function"},onHover:{type:"function"},annotations:{type:"array"},autoPlaceAnnotations:{type:["boolean","object"]},responsiveRules:{type:"array"},mobileSemantics:{type:"object"},mobileInteraction:{type:["boolean","object"]},svgAnnotationRules:{type:"function"},tickFormatTime:{type:"function"},tickFormatValue:{type:"function"},decay:{type:"object"},pulse:{type:"object"},staleness:{type:"object"},categoryAccessor:{type:["string","function"]},colors:{type:"object"},radius:{type:"number"},fill:{type:"string"},opacity:{type:"number"},stroke:{type:"string"},strokeWidth:{type:"number"},pointStyle:{type:"function"},yScaleType:{type:"string",enum:["linear","log","symlog"]},transition:{type:"object"}}},RealtimeWaterfallChart:{required:[],dataShape:"realtime",dataAccessors:[],props:{size:{type:"array"},width:{type:"number"},height:{type:"number"},margin:{type:"object"},className:{type:"string"},timeAccessor:{type:["string","function"]},valueAccessor:{type:["string","function"]},windowSize:{type:"number"},windowMode:{type:"string",enum:["sliding","stepping"]},arrowOfTime:{type:"string",enum:["left","right"]},timeExtent:{type:"array"},valueExtent:{type:"array"},extentPadding:{type:"number"},showAxes:{type:"boolean"},background:{type:"string"},enableHover:{type:["boolean","object"]},tooltip:{type:["function","object"]},tooltipContent:{type:"function"},onHover:{type:"function"},annotations:{type:"array"},autoPlaceAnnotations:{type:["boolean","object"]},responsiveRules:{type:"array"},mobileSemantics:{type:"object"},mobileInteraction:{type:["boolean","object"]},svgAnnotationRules:{type:"function"},tickFormatTime:{type:"function"},tickFormatValue:{type:"function"},decay:{type:"object"},pulse:{type:"object"},staleness:{type:"object"},positiveColor:{type:"string"},negativeColor:{type:"string"},connectorStroke:{type:"string"},connectorWidth:{type:"number"},gap:{type:"number"},stroke:{type:"string"},strokeWidth:{type:"number"},transition:{type:"object"}}},RealtimeHeatmap:{required:[],dataShape:"realtime",dataAccessors:[],props:{size:{type:"array"},width:{type:"number"},height:{type:"number"},margin:{type:"object"},className:{type:"string"},timeAccessor:{type:["string","function"]},valueAccessor:{type:["string","function"]},windowSize:{type:"number"},windowMode:{type:"string",enum:["sliding","stepping"]},arrowOfTime:{type:"string",enum:["left","right"]},timeExtent:{type:"array"},valueExtent:{type:"array"},extentPadding:{type:"number"},showAxes:{type:"boolean"},background:{type:"string"},enableHover:{type:["boolean","object"]},tooltip:{type:["function","object"]},tooltipContent:{type:"function"},onHover:{type:"function"},annotations:{type:"array"},autoPlaceAnnotations:{type:["boolean","object"]},responsiveRules:{type:"array"},mobileSemantics:{type:"object"},mobileInteraction:{type:["boolean","object"]},svgAnnotationRules:{type:"function"},tickFormatTime:{type:"function"},tickFormatValue:{type:"function"},decay:{type:"object"},pulse:{type:"object"},staleness:{type:"object"},heatmapXBins:{type:"number"},heatmapYBins:{type:"number"},aggregation:{type:"string",enum:["count","sum","mean"]}}},GaltonBoardChart:{required:[],dataShape:"array",dataAccessors:["valueAccessor"],props:{data:{type:"array"},size:{type:"array"},width:{type:"number"},height:{type:"number"},className:{type:"string"},title:{type:"string"},responsiveWidth:{type:"boolean"},responsiveHeight:{type:"boolean"},colorBy:{type:["string","function"]},seed:{type:"number"},ballRadius:{type:"number"},hoverRadius:{type:"number"},paused:{type:"boolean"},tooltip:{type:["boolean","function","object"]},frameProps:{type:"object"},styleRules:{type:"array"},valueAccessor:{type:["string","function"]},valueExtent:{type:"array"},bins:{type:"number"},mode:{type:"string",enum:["sample","mechanical"]},pegRows:{type:"number"},mechanicalCount:{type:"number"},branchProbability:{type:"number"},referenceLines:{type:["object","array"]},rerunMS:{type:["number","null"]},showProjection:{type:"boolean"}}},EventDropChart:{required:["data"],dataShape:"array",dataAccessors:["timeAccessor","arrivalAccessor"],props:{data:{type:"array"},size:{type:"array"},width:{type:"number"},height:{type:"number"},className:{type:"string"},title:{type:"string"},responsiveWidth:{type:"boolean"},responsiveHeight:{type:"boolean"},colorBy:{type:["string","function"]},seed:{type:"number"},ballRadius:{type:"number"},hoverRadius:{type:"number"},paused:{type:"boolean"},tooltip:{type:["boolean","function","object"]},frameProps:{type:"object"},styleRules:{type:"array"},timeAccessor:{type:["string","function"]},arrivalAccessor:{type:["string","function"]},windows:{type:"object"},watermark:{type:["object","function"]},timeExtent:{type:"array"},timeScale:{type:"number"}}},PhysicsPileChart:{required:[],dataShape:"array",dataAccessors:["categoryAccessor","valueAccessor"],props:{data:{type:"array"},size:{type:"array"},width:{type:"number"},height:{type:"number"},className:{type:"string"},title:{type:"string"},responsiveWidth:{type:"boolean"},responsiveHeight:{type:"boolean"},colorBy:{type:["string","function"]},seed:{type:"number"},ballRadius:{type:"number"},hoverRadius:{type:"number"},paused:{type:"boolean"},tooltip:{type:["boolean","function","object"]},frameProps:{type:"object"},styleRules:{type:"array"},categoryAccessor:{type:["string","function"]},valueAccessor:{type:["string","function"]},mode:{type:"string",enum:["sample","mechanical"]},mechanicalCount:{type:"number"},mechanicalCategories:{type:"array"},unitValue:{type:"number"},showProjection:{type:"boolean"},sediment:{type:"boolean"}}},CollisionSwarmChart:{required:[],dataShape:"array",dataAccessors:["xAccessor","groupAccessor","radiusAccessor"],props:{data:{type:"array"},size:{type:"array"},width:{type:"number"},height:{type:"number"},className:{type:"string"},title:{type:"string"},responsiveWidth:{type:"boolean"},responsiveHeight:{type:"boolean"},colorBy:{type:["string","function"]},seed:{type:"number"},ballRadius:{type:"number"},hoverRadius:{type:"number"},paused:{type:"boolean"},tooltip:{type:["boolean","function","object"]},frameProps:{type:"object"},styleRules:{type:"array"},xAccessor:{type:["string","function"]},groupAccessor:{type:["string","function"]},radiusAccessor:{type:["string","function"]},pointRadius:{type:"number"},xExtent:{type:"array"},collisionIterations:{type:"number"},settle:{type:"boolean"},rerunMS:{type:["number","null"]},showProjection:{type:"boolean"}}},GauntletChart:{required:["negativeProperties"],dataShape:"array",dataAccessors:["idAccessor","positiveAccessor","negativeAccessor","metricsAccessor","startTimeAccessor"],props:{data:{type:"array"},size:{type:"array"},width:{type:"number"},height:{type:"number"},className:{type:"string"},title:{type:"string"},responsiveWidth:{type:"boolean"},responsiveHeight:{type:"boolean"},colorBy:{type:["string","function"]},seed:{type:"number"},ballRadius:{type:"number"},hoverRadius:{type:"number"},paused:{type:"boolean"},tooltip:{type:["boolean","function","object"]},frameProps:{type:"object"},positiveProperties:{type:"array"},negativeProperties:{type:"array"},gates:{type:"array"},events:{type:["array","function"]},startTimeAccessor:{type:["string","function"]},onCapacityChange:{type:"function"},crashDetection:{type:"boolean"},rerunMS:{type:["number","null"]},showChrome:{type:"boolean"},showProjection:{type:"boolean"},showTethers:{type:"boolean"},coreForceMode:{type:"string",enum:["route","net"]},terminalBehavior:{type:"string",enum:["outcome","hold-last"]}}},CrucibleChart:{required:["data","phases"],dataShape:"array",dataAccessors:["idAccessor","labelAccessor","categoryAccessor","amountAccessor","metricsAccessor","initialStateAccessor"],props:{data:{type:"array"},size:{type:"array"},width:{type:"number"},height:{type:"number"},className:{type:"string"},title:{type:"string"},responsiveWidth:{type:"boolean"},responsiveHeight:{type:"boolean"},colorBy:{type:["string","function"]},seed:{type:["number","string"]},ballRadius:{type:"number"},hoverRadius:{type:"number"},paused:{type:"boolean"},tooltip:{type:["boolean","function","object"]},frameProps:{type:"object"},description:{type:"string"},summary:{type:"string"},phases:{type:"array"},products:{type:"array"},events:{type:"array"},outlets:{type:"array"},idAccessor:{type:["string","function"]},labelAccessor:{type:["string","function"]},categoryAccessor:{type:["string","function"]},amountAccessor:{type:["string","function"]},metricsAccessor:{type:["string","function"]},initialStateAccessor:{type:["string","function"]},metrics:{type:"object"},amountLabel:{type:"string"},conservation:{type:["boolean","object"]},projection:{type:"object"},playback:{type:"string",enum:["replay","snapshot"]},snapshotAt:{type:["number","object"]},controls:{type:["boolean","object"]},playbackRate:{type:"number"},rerunMS:{type:["number","null"]},bodyRadius:{type:"number"},radiusRange:{type:"array"},showBonds:{type:"boolean"},showChrome:{type:"boolean"},showProjection:{type:"boolean"},initialSpawnPacing:{type:"object"},loading:{type:"boolean"},loadingContent:{type:["boolean","object"]},emptyContent:{type:["boolean","object"]},onStateChange:{type:"function"},onCrucibleObservation:{type:"function"},onDiagnostic:{type:"function"},onConservation:{type:"function"},onClick:{type:"function"}}},ProcessFlowChart:{required:["stages"],dataShape:"array",dataAccessors:["idAccessor","stageAccessor","groupBy","workAccessor","radiusAccessor"],props:{data:{type:"array"},size:{type:"array"},width:{type:"number"},height:{type:"number"},className:{type:"string"},title:{type:"string"},responsiveWidth:{type:"boolean"},responsiveHeight:{type:"boolean"},colorBy:{type:["string","function"]},seed:{type:"number"},ballRadius:{type:"number"},hoverRadius:{type:"number"},paused:{type:"boolean"},tooltip:{type:["boolean","function","object"]},frameProps:{type:"object"},stages:{type:"array"},stageAccessor:{type:["string","function"]},idAccessor:{type:["string","function"]},groupBy:{type:["string","function"]},groupLabelAccessor:{type:["string","function"]},workAccessor:{type:["string","function"]},radiusAccessor:{type:["string","function"]},groupCompletion:{type:"string",enum:["allAbsorbed","none"]},groupAnchorAlong:{type:"number"},showProjection:{type:"boolean"},showChrome:{type:"boolean"},settle:{type:"boolean"}}},PhysicalFlowChart:{required:[],dataShape:"network",dataAccessors:["nodeIdAccessor","nodeXAccessor","nodeYAccessor","sourceAccessor","targetAccessor","throughputAccessor","pathAccessor"],props:{mode:{type:"string",enum:["primary","context","sparkline","mobile"]},width:{type:"number"},height:{type:"number"},margin:{type:"object"},className:{type:"string"},title:{type:"string"},description:{type:"string"},summary:{type:"string"},accessibleTable:{type:"boolean"},enableHover:{type:"boolean"},showLegend:{type:"boolean"},showGrid:{type:"boolean"},colorBy:{type:["string","function"]},colorScheme:{type:["string","array","object"]},tooltip:{type:["boolean","function","object","string"]},annotations:{type:"array"},autoPlaceAnnotations:{type:["boolean","object"]},responsiveRules:{type:"array"},mobileSemantics:{type:"object"},mobileInteraction:{type:["boolean","object"]},axisExtent:{type:"string",enum:["nice","exact"]},animate:{type:["boolean","object"]},loading:{type:"boolean"},loadingContent:{type:["boolean","object"]},emptyContent:{type:["boolean","object"]},hoverHighlight:{type:"boolean"},chartId:{type:"string"},emphasis:{type:"string",enum:["primary","secondary"]},responsiveWidth:{type:"boolean"},responsiveHeight:{type:"boolean"},color:{type:"string"},stroke:{type:"string"},strokeWidth:{type:"number"},opacity:{type:"number"},onObservation:{type:"function"},frameProps:{type:"object"},onClick:{type:"function"},size:{type:"array"},nodes:{type:"array"},links:{type:"array"},edges:{type:"array"},data:{type:"array"},nodeIdAccessor:{type:["string","function"]},nodeXAccessor:{type:["string","function"]},nodeYAccessor:{type:["string","function"]},sourceAccessor:{type:["string","function"]},targetAccessor:{type:["string","function"]},throughputAccessor:{type:["string","function"]},pathAccessor:{type:["string","function"]},coordinateMode:{type:"string",enum:["auto","normalized","pixels"]},particleRate:{type:"number"},maxParticles:{type:"number"},particleRadius:{type:"number"},flowSpeed:{type:"number"},pathConstraint:{type:"string",enum:["path","none"]},reducedMotion:{type:"boolean"},showStaticFlow:{type:"boolean"},showNodeLabels:{type:"boolean"},showSensors:{type:"boolean"},paused:{type:"boolean"},seed:{type:"number"}}},BigNumber:{required:[],dataShape:"none",dataAccessors:[],props:{width:{type:["number","string"]},height:{type:["number","string"]},className:{type:"string"},value:{type:"number"},label:{type:"string"},caption:{type:"string"},format:{type:["string","function"],enum:["number","currency","percent","compact","duration"]},locale:{type:"string"},currency:{type:"string"},precision:{type:"number"},prefix:{type:"string"},suffix:{type:"string"},unit:{type:"string"},comparison:{type:"object"},target:{type:"object"},delta:{type:"number"},deltaFormat:{type:["string","function"],enum:["number","currency","percent","compact","duration"]},showDeltaPercent:{type:"boolean"},direction:{type:"string",enum:["higher-is-better","lower-is-better","neutral"]},sentiment:{type:"string",enum:["auto","positive","negative","neutral"]},thresholds:{type:"array"},chartSlot:{type:["string","number","array","object","function"]},chartSize:{type:"number"},windowSize:{type:"number"},mode:{type:"string",enum:["tile","presentation","inline","thumbnail"]},align:{type:"string",enum:["start","center","end"]},padding:{type:["number","object"]},emphasis:{type:"string",enum:["primary","secondary"]},color:{type:"string"},background:{type:"string"},borderColor:{type:"string"},borderRadius:{type:["number","string"]},animate:{type:["boolean","object"]},stalenessThreshold:{type:"number"},staleLabel:{type:"string"},headerSlot:{type:["string","number","array","object","function"]},valueSlot:{type:["string","number","array","object","function"]},deltaSlot:{type:["string","number","array","object","function"]},trendSlot:{type:["string","number","array","object","function"]},footerSlot:{type:["string","number","array","object","function"]},onClick:{type:"function"},onObservation:{type:"function"}}}};function b(e,t){return(Array.isArray(t)?t:[t]).includes(Array.isArray(e)?"array":typeof e)}function g(e,t){const o=[];null!=t&&"object"==typeof t||(t={});const n=m[e];if(!n)return{valid:!1,errors:[`Unknown component "${e}". Valid components: ${Object.keys(m).join(", ")}`]};for(const r of n.required)null==t[r]&&o.push(`"${r}" is required for ${e}.`);"array"!==n.dataShape||!Object.prototype.hasOwnProperty.call(n.props,"data")||n.required.includes("data")||function(e,t){return"mechanical"===t.mode&&("GaltonBoardChart"===e||"PhysicsPileChart"===e)}(e,t)||null!=t.data||o.push(`"data" is required for ${e}.`);for(const[e,r]of Object.entries(t)){if(null==r)continue;const t=n.props[e];if(t){if(!b(r,t.type)){const n=Array.isArray(t.type)?t.type.join(" | "):t.type;o.push(`"${e}" should be ${n}, got ${Array.isArray(r)?"array":typeof r}.`);continue}t.enum&&"string"==typeof r&&!t.enum.includes(r)&&o.push(`"${e}" value "${r}" is not valid. Expected one of: ${t.enum.join(", ")}.`)}}const r=Object.keys(n.props),a=new Set(r);for(const n of Object.keys(t))if(void 0!==t[n]&&!a.has(n)){const t=y(n,r),a=t?`Unknown prop "${n}" for ${e}. Did you mean "${t}"?`:`Unknown prop "${n}" for ${e}. Valid props: ${r.join(", ")}.`;o.push(a)}if("array"===n.dataShape){const r=t.data,a={};for(const e of n.dataAccessors){const o=t[e];"string"==typeof o&&(a[e]=o)}const i=function({componentName:e,data:t,accessors:o,requiredProps:n}){if(n)for(const[t,o]of Object.entries(n))if(null==o)return`${e}: ${t} is required. Provide a field name or function.`;if(null==t)return null;if(!Array.isArray(t)&&"object"==typeof t)return e+": data should be an array, but received an object. If this is hierarchical data, use TreeDiagram, Treemap, or CirclePack instead.";if(!Array.isArray(t)||0===t.length)return e+": No data provided. Pass a non-empty array to the data prop.";if(o){const n=u(t).find(e=>e&&"object"==typeof e);if(n){const t=Object.keys(n);for(const[r,a]of Object.entries(o))if(a&&"string"==typeof a&&!(a in n)){const o=d(a,t),n=o?` Try ${r}="${o}".`:"";return`${e}: ${r} "${a}" not found in data. Available fields: ${t.join(", ")}.${n}`}}}return null}({componentName:e,data:r,accessors:Object.keys(a).length>0?a:void 0});i&&o.push(i)}else if("object"===n.dataShape){const n=function({componentName:e,data:t,dataLabel:o="data"}){return null==t?`${e}: No ${o} provided. Pass a hierarchical object with children: { name: "root", children: [...] }.`:Array.isArray(t)?`${e}: ${o} should be a single root object, not an array. Expected: { name: "root", children: [...] }. If you have flat data, use LineChart, BarChart, or Scatterplot instead.`:null}({componentName:e,data:t.data});n&&o.push(n)}else if("network"===n.dataShape){const r=function({componentName:e,nodes:t,edges:o,nodesRequired:n=!1,edgesRequired:r=!0,accessors:a}){if(null==t&&null==o)return null;if(r&&(!o||!Array.isArray(o)||0===o.length))return e+': No edges provided. Pass a non-empty array: edges={[{ source: "A", target: "B", value: 10 }, ...]}.';if(n&&(!t||!Array.isArray(t)||0===t.length))return e+': No nodes provided. Pass a non-empty array: nodes={[{ id: "A" }, { id: "B" }, ...]}.';if(a&&t&&t.length>0){const o=u(t).find(e=>e&&"object"==typeof e);if(o){const t=Object.keys(o);for(const[n,r]of Object.entries(a))if(r&&"string"==typeof r&&!(r in o)){const o=d(r,t),a=o?` Try ${n}="${o}".`:"";return`${e}: ${n} "${r}" not found in node data. Available fields: ${t.join(", ")}.${a}`}}}return null}({componentName:e,nodes:t.nodes,edges:t.edges,nodesRequired:n.required.includes("nodes"),edgesRequired:n.required.includes("edges")});r&&o.push(r)}return{valid:0===o.length,errors:o}}function h(e,t){const o={numbers:[],missing:0,nonFinite:0,nonNumeric:0,zero:0,negative:0,fractional:0};for(const n of e){const e=n?.[t];if(null==e||""===e){o.missing++;continue}let r;if("number"==typeof e)r=e;else if("string"==typeof e){const t=e.trim();if(""===t){o.missing++;continue}const n=Number(t);Number.isNaN(n)?/^[+-]?nan$/i.test(t)&&(r=n):r=n}void 0!==r?Number.isFinite(r)?(o.numbers.push(r),0===r&&o.zero++,0>r&&o.negative++,Number.isInteger(r)||o.fractional++):o.nonFinite++:o.nonNumeric++}return o}function f(e,t){if(0===e.length)return;const o=(e.length-1)*t,n=Math.floor(o),r=Math.ceil(o);if(n===r)return e[n];const a=o-n;return e[n]*(1-a)+e[r]*a}function v(e,t={}){if(!Array.isArray(e)||0===e.length)return{};const o=new Set;for(const t of e)if(t&&"object"==typeof t)for(const e of Object.keys(t))o.add(e);const n={};for(const r of o){const o=h(e,r);let a=1/0,i=-1/0;for(const e of o.numbers)a>e&&(a=e),e>i&&(i=e);const s=!1===t.quantiles?void 0:[...o.numbers].sort((e,t)=>e-t);n[r]={field:r,observedCount:e.length-o.missing,finiteCount:o.numbers.length,missingCount:o.missing,nonFiniteCount:o.nonFinite,nonNumericCount:o.nonNumeric,zeroCount:o.zero,negativeCount:o.negative,fractionalCount:o.fractional,...o.numbers.length>0?{min:a,...s?{q1:f(s,.25),median:f(s,.5),q3:f(s,.75)}:{},max:i}:{}}}return n}function w(e){const t=[`${e.component}: ${e.ok?"✓ numerically safe":"✗ numeric hazards found"}`,`${e.rowCount} rows · ${e.summary.fieldsChecked} numeric fields · ${e.summary.errors} errors · ${e.summary.warnings} warnings`];for(const o of e.diagnoses)t.push(`${"error"===o.severity?"ERROR":"WARN"} ${o.code}${o.field?` [${o.field}]`:""}: ${o.message}`),o.fix&&t.push(" Fix: "+o.fix);return t.join("\n")}function A(e){return e.code.toLowerCase().split("_").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}function C(e,t={}){const o=Number.isFinite(t.max)?Math.max(0,Math.floor(t.max)):6,n=e.diagnoses.map((e,t)=>({item:e,diagnosisIndex:t})).filter(({item:e})=>!t.errorsOnly||"error"===e.severity),r=n.slice(0,o).map(({item:e,diagnosisIndex:t})=>({id:`data-audit:${e.code}:${e.role??"chart"}:${e.field??"chart"}:${t}`,level:e.severity,title:e.field?`${A(e)} · ${e.field}`:A(e),message:e.fix?`${e.message} ${e.fix}`:e.message,source:"Semiotic data audit",dismissible:!0}));return n.length>o&&r.push({id:"data-audit:overflow:chart",level:n.slice(o).some(({item:e})=>"error"===e.severity)?"error":"warning",title:`${n.length-o} more numeric finding${n.length-o===1?"":"s"}`,message:"Run auditData() or diagnoseConfig() to inspect the complete report.",source:"Semiotic data audit",dismissible:!0}),r}function x(e,t){const o=e.nestedDataAccessorProp?t[e.nestedDataAccessorProp]:void 0;return"string"==typeof o?o:e.defaultNestedDataAccessor}function j(e,t,o){const n=e.dataProp??"data",r=t[n],a=o??(Array.isArray(r)?r:[]),i=x(e,t);if(!i)return{dataProp:n,rows:a};const s=[];let c=!1;for(const e of a){const t=e?.[i];if(Array.isArray(t)){c=!0;for(const e of t)e&&"object"==typeof e&&s.push(e)}}return{dataProp:n,rows:c?s:a}}var S=[{role:"x",accessor:"xAccessor",defaultAccessor:"x",temporalValues:"date-like",domain:!0},{role:"y",accessor:"yAccessor",defaultAccessor:"y",domain:!0}],$={fields:S},k=[{...S[0],nestedDataAccessorProp:"lineDataAccessor",defaultNestedDataAccessor:"coordinates"},{...S[1],nestedDataAccessorProp:"lineDataAccessor",defaultNestedDataAccessor:"coordinates",allowMissing:!0}],P={fields:k},R={role:"value",accessor:"valueAccessor",defaultAccessor:"value"},I={...R,domain:!0},N={fields:[{...R,requirements:["finite","non-negative"]}],aggregates:[{kind:"positive-total",role:"value"}]},L={fields:[R],aggregates:[{kind:"normalized-total",role:"value",groupAccessor:"categoryAccessor",defaultGroupAccessor:"category",whenProp:"normalize"}]},T={fields:k,aggregates:[{kind:"normalized-total",role:"y",groupAccessor:"xAccessor",defaultGroupAccessor:"x",whenProp:"normalize"}]},E={fields:[...S,{role:"size",accessor:"sizeBy",requirements:["finite","non-negative"]}]},B={fields:[...S,{role:"size",accessor:"sizeBy",requirements:["finite","non-negative"]}]},O={fields:[R]},F={fields:[{...R,dataProp:"edges",requirements:["finite","non-negative"],missingValue:1}]},H={LineChart:P,AreaChart:P,BumpChart:P,Scatterplot:B,ConnectedScatterplot:$,QuadrantChart:B,MinimapChart:P,BubbleChart:E,StackedAreaChart:T,DifferenceChart:{fields:[{role:"x",accessor:"xAccessor",defaultAccessor:"x",temporalValues:"date",domain:!0},{role:"value",accessor:"seriesAAccessor",defaultAccessor:"a"},{role:"value",accessor:"seriesBAccessor",defaultAccessor:"b"}]},CandlestickChart:{fields:[{role:"x",accessor:"xAccessor",defaultAccessor:"x",temporalValues:"date-like",domain:!0},{role:"high",accessor:"highAccessor",defaultAccessor:"high",requirements:["finite"]},{role:"low",accessor:"lowAccessor",defaultAccessor:"low",requirements:["finite"]},{role:"open",accessor:"openAccessor",whenProps:["openAccessor","closeAccessor"],requirements:["finite"]},{role:"close",accessor:"closeAccessor",whenProps:["openAccessor","closeAccessor"],requirements:["finite"]}]},Heatmap:O,BarChart:{fields:[R]},GroupedBarChart:{fields:[R]},StackedBarChart:L,DotPlot:{fields:[I]},Histogram:{fields:[I]},BoxPlot:{fields:[I]},SwarmPlot:{fields:[I,{role:"size",accessor:"sizeBy",requirements:["finite","non-negative"]}]},ViolinPlot:{fields:[I]},RidgelinePlot:{fields:[I]},PieChart:N,DonutChart:N,FunnelChart:N,SankeyDiagram:F,ChordDiagram:F,ProportionalSymbolMap:{fields:[{role:"x",accessor:"xAccessor",defaultAccessor:"lon",dataProp:"points",requirements:["finite"]},{role:"y",accessor:"yAccessor",defaultAccessor:"lat",dataProp:"points",requirements:["finite"]},{role:"size",accessor:"sizeBy",dataProp:"points",requirements:["finite","non-negative"]}]}},_=Symbol.for("semiotic.numericContractRegistry");var D={xAccessor:"x",yAccessor:"y",valueAccessor:"value",sizeBy:"size",sizeAccessor:"size",radiusAccessor:"size",countAccessor:"count",amountAccessor:"value",highAccessor:"high",lowAccessor:"low",openAccessor:"open",closeAccessor:"close",lowerAccessor:"lower",upperAccessor:"upper",positiveAccessor:"value",negativeAccessor:"value",progressAccessor:"value",confidenceAccessor:"value",costAccessor:"value",throughputAccessor:"value"};function M(e,t,o){return"function"==typeof e?e(t,o):t[e]}function z(e,t){if("number"==typeof e)return Number.isFinite(e)?e:null;if(e instanceof Date){const o=e.getTime();return t&&Number.isFinite(o)?o:null}if("string"==typeof e){const o=e.trim(),r=Number(o);if(o&&Number.isFinite(r))return r;if("date-like"===t){const e=n(o);return Number.isFinite(e)?e:null}}return null}function W(e){return"number"==typeof e&&!Number.isFinite(e)}function G(e,t,o,n,r){const a={field:o,numbers:[],finiteRows:[],missingRows:[],nonFiniteRows:[],nonNumericRows:[],accessorErrorRows:[],zeroRows:[],negativeRows:[],fractionalRows:[]};for(let o=0;e.length>o;o++){let i;try{i=M(t,e[o],o)}catch{a.accessorErrorRows.push(o);continue}if(null==i||""===i){if(void 0!==r){a.numbers.push(r),a.finiteRows.push(o),0===r&&a.zeroRows.push(o),0>r&&a.negativeRows.push(o),Number.isInteger(r)||a.fractionalRows.push(o);continue}a.missingRows.push(o);continue}const s=z(i,n);null!=s?(a.numbers.push(s),a.finiteRows.push(o),0===s&&a.zeroRows.push(o),0>s&&a.negativeRows.push(o),Number.isInteger(s)||a.fractionalRows.push(o)):W(i)?a.nonFiniteRows.push(o):a.nonNumericRows.push(o)}return a}function q(e,t){if(0===e.length)return;const o=(e.length-1)*t,n=Math.floor(o),r=Math.ceil(o);if(n===r)return e[n];const a=o-n;return e[n]*(1-a)+e[r]*a}function U(e,t){const o=new Set(e.requirements??["finite"]);return o.add("finite"),("x"===e.role&&"log"===t.xScaleType||"y"===e.role&&"log"===t.yScaleType)&&o.add("positive"),[...o]}function V(e){return e.slice(0,5)}function Y(e){return{domain:"data",...e}}function K(e,t){const o=[],{observation:n,contract:r,accessorLabel:a,requirements:i}=e,s={field:a,role:r.role},c=[...n.nonFiniteRows,...n.nonNumericRows,...n.accessorErrorRows].sort((e,t)=>e-t);if(0===n.numbers.length)return o.push(Y({severity:"error",code:"DEGENERATE_EXTENT",message:`${r.accessor}="${a}" produces no finite numeric values; the chart cannot resolve its ${r.role} input.`,fix:`Ensure ${a} contains finite numbers${"x"===r.role?" (or valid dates for a time scale)":""}.`,...s,...c.length>0?{rows:V(c),count:c.length}:{}})),o;n.nonFiniteRows.length>0&&o.push(Y({severity:"error",code:"NON_FINITE_VALUE",message:`${a} contains ${n.nonFiniteRows.length} NaN or infinite value${1===n.nonFiniteRows.length?"":"s"}; scale and layout math require finite numbers.`,fix:`Filter or replace NaN/Infinity in ${a} before rendering.`,...s,rows:V(n.nonFiniteRows),count:n.nonFiniteRows.length})),!r.allowMissing&&n.missingRows.length>0&&o.push(Y({severity:"error",code:"MISSING_NUMERIC_VALUE",message:`${a} is missing for ${n.missingRows.length} row${1===n.missingRows.length?"":"s"}; the ${r.role} role requires an explicit numeric value.`,fix:`Fill or filter missing ${a} values before rendering.`,...s,rows:V(n.missingRows),count:n.missingRows.length}));const l=[...n.nonNumericRows,...n.accessorErrorRows].sort((e,t)=>e-t);if(l.length>0&&o.push(Y({severity:"error",code:"NON_NUMERIC_VALUE",message:`${a} produces ${l.length} non-numeric value${1===l.length?"":"s"} for the ${r.role} role.`,fix:`Bind ${r.accessor} to a numeric field or return finite numbers from the accessor.`,...s,rows:V(l),count:l.length})),r.domain&&n.numbers.length>=2){const[e,t]=function(e){let t=1/0,o=-1/0;for(const n of e)t>n&&(t=n),n>o&&(o=n);return[t,o]}(n.numbers);e===t&&o.push(Y({severity:"warning",code:"ZERO_SPAN_DOMAIN",message:`${a} is constant at ${e}; its ${r.role} scale has a zero-span data domain.`,fix:`Provide varying ${r.role} values, set an explicit extent around ${e}, or use a single-value display.`,...s,rows:V(n.finiteRows),count:n.finiteRows.length}))}if(i.includes("positive")){const t=n.numbers.map((e,t)=>({number:e,row:n.finiteRows[t]})).filter(({number:e})=>0>=e).map(({row:e})=>e);if(t.length>0){const n=e.logScale;o.push(Y({severity:"error",code:n?"LOG_NON_POSITIVE":"NON_POSITIVE_VALUE",message:`${a} contains ${t.length} non-positive value${1===t.length?"":"s"}, which ${n?"cannot be represented on a log scale":"violate the positive-value contract"}.`,fix:n?"Remove or transform values ≤ 0, or use a linear/symlog scale.":"Provide values greater than zero.",...s,rows:V(t),count:t.length}))}}if(i.includes("non-negative")&&n.negativeRows.length>0&&o.push(Y({severity:"error",code:"size"===r.role?"NEGATIVE_SIZE":"NEGATIVE_VALUE",message:`${a} contains ${n.negativeRows.length} negative ${r.role} value${1===n.negativeRows.length?"":"s"}; the chart maps this role to non-negative geometry.`,fix:"Use a non-negative measure, clamp intentionally, or encode sign with position/color instead.",...s,rows:V(n.negativeRows),count:n.negativeRows.length})),i.includes("integer")){const e=[...new Set([...n.negativeRows,...n.zeroRows,...n.fractionalRows])].sort((e,t)=>e-t);e.length>0&&o.push(Y({severity:"error",code:"INVALID_COUNT",message:`${a} contains ${e.length} value${1===e.length?"":"s"} that are not positive integers.`,fix:"Counts must be integers ≥ 1; aggregate, round intentionally, or use a continuous-value encoding.",...s,rows:V(e),count:e.length}))}if(i.includes("unit-interval")){const e=n.numbers.map((e,t)=>({number:e,row:n.finiteRows[t]})).filter(({number:e})=>0>e||e>1).map(({row:e})=>e);e.length>0&&o.push(Y({severity:"error",code:"OUTSIDE_UNIT_INTERVAL",message:`${a} contains ${e.length} value${1===e.length?"":"s"} outside [0, 1].`,fix:`Normalize ${a} to [0, 1] before using it as ${r.role}.`,...s,rows:V(e),count:e.length}))}if(t&&r.domain){const t=function(e){const t=e.observation.numbers.map((t,o)=>({value:t,row:e.observation.finiteRows[o]})).sort((e,t)=>e.value-t.value);if(8>t.length)return[];const o=t.map(e=>e.value),n=q(o,.25),r=q(o,.75),a=q(o,.5),i=r-n;if(i>0){const e=n-10*i,o=r+10*i;return t.filter(t=>e>t.value||t.value>o).map(e=>e.row)}const s=100*Math.max(1,Math.abs(a));return t.filter(e=>Math.abs(e.value-a)>s).map(e=>e.row)}(e);t.length>0&&o.push(Y({severity:"warning",code:"OUTLIER_DOMINATED_DOMAIN",message:`${a} has ${t.length} extreme value${1===t.length?"":"s"} beyond the 10×IQR guardrail; the main distribution may collapse visually.`,fix:"Verify the extreme values, then consider a log scale, robust extent, inset, or explicit annotation rather than silently clipping them.",...s,rows:V(t),count:t.length}))}return o}function X(e,t,o){if(!e)return"__all__";try{return M(e,t,o)+""}catch{return"__accessor_error__"}}function J(e,t,o){if(e.whenProp&&!0!==o[e.whenProp])return[];const n=t.find(t=>t.contract.role===e.role);if(!n||0===n.observation.numbers.length)return[];const r=e.groupAccessor?o[e.groupAccessor]:void 0,a="string"==typeof r||"function"==typeof r?r:e.defaultGroupAccessor,i=new Map;for(let e=0;n.rows.length>e;e++){let t;try{t=M(n.accessor,n.rows[e],e)}catch{continue}const o=z(t,void 0);if(null==o)continue;const r=X(a,n.rows[e],e),s=i.get(r)??{sum:0,magnitude:0,positive:!1,negative:!1,rows:[],negativeRows:[]};s.sum+=o,s.magnitude+=Math.abs(o),s.positive||(s.positive=o>0),s.negative||(s.negative=0>o),s.rows.push(e),0>o&&s.negativeRows.push(e),i.set(r,s)}const s=[],c=[],l=[],p=[],y=[],u=[];for(const[t,o]of i)("positive-total"===e.kind&&0>=o.sum||"normalized-total"===e.kind&&Number.EPSILON*Math.max(1,o.magnitude)*10>=Math.abs(o.sum))&&(s.push(t),p.push(...o.rows)),"normalized-total"===e.kind&&o.positive&&o.negative&&(c.push(t),y.push(...o.rows)),"normalized-total"===e.kind&&o.negative&&(l.push(t),u.push(...o.negativeRows));const d=[];return s.length>0&&d.push(Y({severity:"error",code:"normalized-total"===e.kind?"ZERO_NORMALIZED_TOTAL":"NON_POSITIVE_TOTAL",message:"normalized-total"===e.kind?`${s.length} normalization group${1===s.length?" has":"s have"} a zero total, so division would be undefined.`:"The part-to-whole total is not positive, so meaningful shares cannot be computed.",fix:"normalized-total"===e.kind?"Remove empty/zero-sum groups or disable normalization.":"Provide at least one positive value and ensure the total is greater than zero.",field:n.accessorLabel,role:e.role,rows:V([...new Set(p)].sort((e,t)=>e-t)),count:s.length})),l.length>0&&d.push(Y({severity:"error",code:"NEGATIVE_NORMALIZED_VALUE",message:`${l.length} normalization group${1===l.length?" contains":"s contain"} negative contributions, so conventional percentage shares are not defined.`,fix:"Use non-negative contributions, a diverging stack, or disable normalization.",field:n.accessorLabel,role:e.role,rows:V([...new Set(u)].sort((e,t)=>e-t)),count:u.length})),c.length>0&&d.push(Y({severity:"warning",code:"MIXED_SIGN_NORMALIZATION",message:`${c.length} normalization group${1===c.length?" mixes":"s mix"} positive and negative contributions; percentage shares may be unstable or misleading.`,fix:"Separate positive and negative contributions, use diverging stacks, or disable normalization.",field:n.accessorLabel,role:e.role,rows:V([...new Set(y)].sort((e,t)=>e-t)),count:c.length})),d}function Q(e,t,o,n={}){const r=n.contracts??function(e){return function(){const e=globalThis;return e[_]??(e[_]={contracts:new Map}),e[_]}().contracts.get(e)??H[e]}(e)??function(e){const t=[];for(const[o,n]of Object.entries(D))"string"!=typeof e[o]&&"function"!=typeof e[o]||t.push({role:n,accessor:o,..."size"===n?{requirements:["finite","non-negative"]}:{},..."x"===n||"y"===n?{domain:!0}:{}});return t.length>0?{fields:t}:void 0}(t);if(!r)return{component:e,ok:!0,rowCount:o?.length??(Array.isArray(t.data)?t.data.length:0),summary:{fieldsChecked:0,errors:0,warnings:0},contracts:[],diagnoses:[]};const a=function(e,t,o){const n=[],r=new Set;for(const a of e.fields){if(a.whenProps?.some(e=>null==t[e]))continue;const e=t[a.accessor],i="string"==typeof e||"function"==typeof e?e:a.defaultAccessor;if("string"!=typeof i&&"function"!=typeof i)continue;const{dataProp:s,rows:c}=j(a,t,o);if(0===c.length)continue;const l="string"==typeof i?i:a.accessor+"()",p=`${s}:${a.role}:${l}`;if(r.has(p))continue;r.add(p);const y=a.temporalValues??("time"===a.role||"x"===a.role&&"time"===t.xScaleType?"date-like":void 0),u="x"===a.role&&"log"===t.xScaleType||"y"===a.role&&"log"===t.yScaleType,d=U(a,t);n.push({contract:a,accessor:i,accessorLabel:l,dataProp:s,rows:c,requirements:d,logScale:u,observation:G(c,i,l,y,a.missingValue)})}return n}(r,t,o),i=[],s=!1!==n.checkOutliers;for(const e of function(e,t,o){const n=new Set;for(const r of e.fields){const e=r.dataProp??"data",a=o??t[e];if(!Array.isArray(a))continue;if(0===a.length){n.add(e);continue}const i=x(r,t);if(!i)continue;const s=a.map(e=>e?.[i]).filter(Array.isArray);s.length>0&&s.every(e=>0===e.length)&&n.add(`${e}.${i}`)}return[...n]}(r,t,o))i.push(Y({severity:"error",code:"EMPTY_DATA",message:e+" is an explicitly empty array; there are no numeric inputs to render.",fix:`Provide at least one valid row, render an intentional empty state, or omit ${e} when using the ref push API.`,count:0,rows:[]}));const c=new Set(a.filter(e=>e.contract.domain&&1===e.rows.length).map(e=>e.dataProp));for(const e of c)i.push(Y({severity:"warning",code:"SINGLE_ROW_DOMAIN",message:e+" has one row; a quantitative scale cannot establish variation from a single observation.",fix:"Provide at least two observations or use a single-value display such as BigNumber.",count:1,rows:[0]}));for(const e of a)i.push(...K(e,s));for(const e of r.aggregates??[])i.push(...J(e,a,t));const l=i.filter(e=>"error"===e.severity).length,p=i.length-l;return{component:e,ok:0===l,rowCount:a.reduce((e,t)=>Math.max(e,t.rows.length),o?.length??(Array.isArray(t.data)?t.data.length:0)),summary:{fieldsChecked:a.length,errors:l,warnings:p},contracts:a.map(e=>({role:e.contract.role,accessor:e.accessorLabel,dataProp:e.dataProp,requirements:e.requirements,allowMissing:!0===e.contract.allowMissing,...void 0!==e.contract.missingValue?{missingValue:e.contract.missingValue}:{},domain:!0===e.contract.domain})),diagnoses:i}}function Z(e){let t=e.replace(/^#/,"");/^[a-f\d]{3}$/i.test(t)&&(t=t.split("").map(e=>e+e).join(""));const o=t.match(/^([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i);if(!o)return null;const[n,r,a]=[parseInt(o[1],16)/255,parseInt(o[2],16)/255,parseInt(o[3],16)/255],i=e=>e>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92;return.2126*i(n)+.7152*i(r)+.0722*i(a)}function ee(e,t){const o=Z(e),n=Z(t);return null===o||null===n?null:(Math.max(o,n)+.05)/(Math.min(o,n)+.05)}var te=new Set(["TreeDiagram","Treemap","CirclePack","OrbitDiagram"]),oe=new Set(["ForceDirectedGraph","SankeyDiagram","ChordDiagram"]),ne=new Set(["BarChart","StackedBarChart","GroupedBarChart","AreaChart","StackedAreaChart"]),re=new Set(["LineChart","AreaChart","StackedAreaChart"]),ae=new Set(["BarChart","StackedBarChart","GroupedBarChart","FunnelChart"]),ie=new Set(["LineChart","AreaChart","StackedAreaChart","ConnectedScatterplot"]),se=new Set(["PieChart","DonutChart"]),ce={PieChart:"valueAccessor",DonutChart:"valueAccessor",FunnelChart:"valueAccessor"},le=new Set(Object.keys(ce)),pe={StackedBarChart:"valueAccessor",StackedAreaChart:"yAccessor"},ye=new Set(["BigNumber"]),ue=new Set(["LineChart","AreaChart","DifferenceChart","StackedAreaChart","Scatterplot","ConnectedScatterplot","BubbleChart","QuadrantChart","MultiAxisLineChart","CandlestickChart","Heatmap","MinimapChart"]),de=new Set(["StreamPhysicsFrame","GaltonBoardChart","EventDropChart","PhysicsPileChart","CollisionSwarmChart","PhysicalFlowChart","ProcessFlowChart","PhysicsCustomChart"]),me=new Set(["OrbitDiagram",...de]),be=new Set(["GaltonBoardChart","EventDropChart","PhysicsPileChart","CollisionSwarmChart","PhysicalFlowChart","ProcessFlowChart","GauntletChart","CrucibleChart"]),ge=new Set(["GaltonBoardChart","EventDropChart","PhysicsPileChart","CollisionSwarmChart","PhysicalFlowChart","ProcessFlowChart","GauntletChart","CrucibleChart","PhysicsCustomChart"]),he=new Set(["RealtimeLineChart","RealtimeHistogram","RealtimeSwarmChart","RealtimeWaterfallChart","RealtimeHeatmap","ProcessSankey"]),fe=new Set(["MultiAxisLineChart"]),ve=new Set(["ChoroplethMap","ProportionalSymbolMap","FlowMap","DistanceCartogram"]),we={Scatterplot:"pointRadius",BubbleChart:"pointRadius",ConnectedScatterplot:"pointRadius",QuadrantChart:"pointRadius",SwarmPlot:"pointRadius",DotPlot:"dotRadius"},Ae=["xExtent","yExtent","rExtent"];function Ce(e){const t=e instanceof Date?e.getTime():Number(e);return Number.isFinite(t)?t:null}function xe(e,t,o){if("function"==typeof t)return t(e);const n="string"==typeof t?t:o;return e?.[n]}var je=new Set(["category10","tableau10","set3","blues","reds","greens","oranges","purples","greys","viridis","plasma","inferno","magma","cividis","turbo"]),Se=["xAccessor","yAccessor","timeAccessor","valueAccessor","categoryAccessor","colorBy","sizeBy","lineBy","areaBy","stackBy","groupBy","orderAccessor","y0Accessor","sourceAccessor","targetAccessor","nodeIDAccessor","childrenAccessor","costAccessor"];function $e(e){return"object"==typeof e&&null!==e&&("tokenType"in e||"tokenSemantics"in e||"countStrategy"in e||"unitValue"in e||"unit"in e)}function ke(e){return"number"==typeof e&&Number.isFinite(e)&&e>=0?e:void 0}function Pe(e,t){const o=ke(e.visibleTokens);if(null!=o)return o;const n=ke(t.denominator);if("fixed-denominator"===t.countStrategy&&null!=n)return n;const r=ke(t.tokenCount),a=ke(t.maxTokens);return null!=r&&null!=a?Math.min(r,a):r??n??a}function Re(o,n){const r=[],a=g(o,function(e){const t={...e};return delete t.tokenEncoding,delete t.visibleTokens,$e(t.encoding)&&delete t.encoding,t}(n));for(const e of a.errors)r.push({severity:"error",code:"VALIDATION",message:e,fix:""});if(!m[o])return{ok:0===r.length,diagnoses:r};!function(e,t,o){const n=m[e];if(n){if("array"===n.dataShape){const e=t.data;e&&Array.isArray(e)&&0===e.length&&o.push({severity:"error",code:"EMPTY_DATA",message:"data is an empty array — chart will render blank.",fix:"Provide at least one data point: data={[{ x: 1, y: 2 }]}."})}"network"===n.dataShape&&t.edges&&Array.isArray(t.edges)&&0===t.edges.length&&o.push({severity:"error",code:"EMPTY_EDGES",message:"edges is an empty array — network chart will render blank.",fix:'Provide at least one edge: edges={[{ source: "A", target: "B" }]}.'})}}(o,n,r),function(e,t,o){const n=t.width,r=t.height;if(void 0===n||"number"==typeof n&&n>0||o.push({severity:"error",code:"BAD_WIDTH",message:`width=${JSON.stringify(n)} — chart needs a positive number.`,fix:"Set width={600} or use responsiveWidth={true}."}),void 0===r||"number"==typeof r&&r>0||o.push({severity:"error",code:"BAD_HEIGHT",message:`height=${JSON.stringify(r)} — chart needs a positive number.`,fix:"Set height={400} or use responsiveHeight={true}."}),t.size&&Array.isArray(t.size)){const[e,n]=t.size;(null!=e&&0>=e||null!=n&&0>=n)&&o.push({severity:"error",code:"BAD_SIZE",message:`size=[${e}, ${n}] — both dimensions must be positive.`,fix:"Set size={[600, 400]}."})}}(0,n,r),function(e,t,o){const n=m[e];if(!n||"array"!==n.dataShape)return;const r=t.data;if(!r||!Array.isArray(r)||0===r.length)return;const a=r[0];if(!a||"object"!=typeof a)return;const i=Object.keys(a);for(const e of n.dataAccessors){const n=t[e];"string"==typeof n&&(n in a||o.push({severity:"error",code:"ACCESSOR_MISSING",message:`${e}="${n}" not found in data. Available fields: ${i.join(", ")}.`,fix:`Change ${e} to one of: ${i.map(e=>`"${e}"`).join(", ")}.`}))}}(o,n,r),function(e,t,o){te.has(e)&&Array.isArray(t.data)&&o.push({severity:"error",code:"HIERARCHY_FLAT_ARRAY",message:e+" expects hierarchical data but received a flat array.",fix:'Pass a root object: data={{ name: "root", children: [...] }}. For flat data, use BarChart or LineChart.'})}(o,n,r),function(e,t,o){oe.has(e)&&(t.edges||t.data||o.push({severity:"error",code:"NETWORK_NO_EDGES",message:e+" requires an edges prop.",fix:'Provide edges={[{ source: "A", target: "B", value: 10 }]}.'}))}(o,n,r),function(e,t,o){const n=m[e];if(!n||"array"!==n.dataShape)return;const r=t.data;if(!r||!Array.isArray(r)||0===r.length)return;const a=r[0];if(!a||"object"!=typeof a)return;const i=t.xAccessor;"string"==typeof i&&a[i]instanceof Date&&!t.xFormat&&o.push({severity:"warning",code:"DATE_NO_FORMAT",message:`xAccessor "${i}" contains Date objects but no xFormat is provided. Axis ticks may display "[object Object]".`,fix:"Add xFormat={d => d.toLocaleDateString()} or use timestamps (d.getTime()) instead of Date objects."})}(o,n,r),function(e,t,o){t.linkedHover&&!t.selection&&o.push({severity:"warning",code:"LINKED_HOVER_NO_SELECTION",message:"linkedHover is set but selection is not — this chart emits hover events but won't highlight from others.",fix:`Add selection={{ name: "${"object"==typeof t.linkedHover&&t.linkedHover.name||"hl"}" }} to receive cross-highlights.`})}(0,n,r),function(e,t,o){if(!ne.has(e))return;const n=t.rExtent||t.yExtent||t.valueExtent;n&&Array.isArray(n)&&n.length>=1&&null!=n[0]&&0!==n[0]&&o.push({severity:"warning",code:"NON_ZERO_BASELINE",message:`${e} has a non-zero baseline (${n[0]}). Bar and area charts should start at zero to avoid exaggerating differences.`,fix:`Remove the custom extent minimum or set it to 0: rExtent={[0, ${n[1]??"auto"}]}. For trend-focused charts, use LineChart instead.`})}(o,n,r),function(e,t,o){if(!re.has(e))return;if(t.gapStrategy)return;const n=t.data;if(!n||!Array.isArray(n)||0===n.length)return;const r=t.yAccessor||"y";"string"==typeof r&&n.some(e=>{const t=e[r];return null==t||Number.isNaN(t)})&&o.push({severity:"warning",code:"DATA_GAPS",message:`Data contains null/undefined/NaN values in "${r}". Default behavior breaks the line at gaps.`,fix:'Set gapStrategy="break" (default), "interpolate", or "zero" to control gap handling.'})}(o,n,r),function(e,t,o){const n=t.width??600,r=t.height??400,a=t.margin;if(!a||"object"!=typeof a)return;const i=(a.left||0)+(a.right||0),s=(a.top||0)+(a.bottom||0);n>i||o.push({severity:"error",code:"MARGIN_OVERFLOW_H",message:`Horizontal margins (${i}px) >= width (${n}px) — no drawing area left.`,fix:"Reduce margin.left/right or increase width."}),r>s||o.push({severity:"error",code:"MARGIN_OVERFLOW_V",message:`Vertical margins (${s}px) >= height (${r}px) — no drawing area left.`,fix:"Reduce margin.top/bottom or increase height."})}(0,n,r);const p=Q(o,n,void 0,{checkOutliers:!1}).diagnoses;for(const e of p)"EMPTY_DATA"===e.code&&r.some(e=>"EMPTY_DATA"===e.code||"EMPTY_EDGES"===e.code)||r.push(e);return function(e,t,o){if(!ae.has(e))return;const n=t.barPadding;"number"==typeof n&&10>n&&o.push({severity:"warning",code:"BAR_PADDING_INVISIBLE",message:`barPadding=${n} is very small — bars may appear to have no spacing between them.`,fix:"Increase barPadding to at least 10 for visible gaps, e.g. barPadding={12}."})}(o,n,r),function(e,t,o){if("bottom"!==t.legendPosition)return;const n=t.margin;if(!n||"object"!=typeof n)return;const r=n.bottom;"number"==typeof r&&70>r&&o.push({severity:"warning",code:"BOTTOM_MARGIN_WITH_LEGEND",message:`legendPosition="bottom" uses the authoritative margin.bottom=${r}px — the legend may be clipped or overlap axis labels.`,fix:'Use margin={{ ...margin, bottom: "auto" }} or provide enough bottom margin for the legend, its legendDistance, and any desired outer padding.'})}(0,n,r),function(e,t,o){if(!t.showLegend)return;const n=t.legendPosition??"right";if("right"!==n&&"left"!==n)return;const r=t.margin;if(!r||"object"!=typeof r)return;const a=r[n];"number"==typeof a&&110>a&&o.push({severity:"warning",code:"LEGEND_MARGIN_TIGHT",message:`showLegend is true with legendPosition="${n}" and authoritative margin.${n}=${a}px — the legend may be clipped.`,fix:`Use margin={{ ...margin, ${n}: "auto" }} or provide enough ${n} margin for the measured legend width, its legendDistance, and any desired outer padding.`})}(0,n,r),function(e,t,o){if("Heatmap"!==e)return;const n=t.data;if(!n||!Array.isArray(n)||0===n.length)return;const r=n[0];if(r&&"object"==typeof r)for(const e of["xAccessor","yAccessor"]){const n=t[e];if("string"!=typeof n)continue;const a=r[n];"string"==typeof a&&o.push({severity:"warning",code:"HEATMAP_STRING_ACCESSOR",message:`${e}="${n}" resolves to string values (e.g. "${a}"). Heatmap will use categorical axis handling which may produce unexpected cell layout.`,fix:"If you intend categorical axes this is fine. Otherwise, convert values to numbers before passing data."})}}(o,n,r),function(e,t,o){const n=t.colorScheme;if(!n||!Array.isArray(n))return;const r="string"==typeof t.background?t.background:"#ffffff";if(!r.startsWith("#"))return;const a=[];for(const e of n){if("string"!=typeof e||!e.startsWith("#"))continue;const t=ee(e,r);null!==t&&3>t&&a.push(`${e} (${t.toFixed(1)}:1)`)}a.length>0&&o.push({severity:"warning",code:"LOW_COLOR_CONTRAST",message:`${a.length} color(s) in colorScheme have < 3:1 contrast against background "${r}": ${a.join(", ")}. Data marks may be hard to see.`,fix:'Use darker colors on light backgrounds or lighter colors on dark backgrounds. Import COLOR_BLIND_SAFE_CATEGORICAL from "semiotic" for an accessible preset.'})}(0,n,r),function(e,t,o){const n=t.colorScheme;if(!n||!Array.isArray(n)||2>n.length)return;const r=n.filter(e=>"string"==typeof e&&e.startsWith("#"));if(2>r.length)return;const a=[];for(let e=0;r.length-1>e;e++){const t=ee(r[e],r[e+1]);null!==t&&1.5>t&&a.push(`${r[e]} / ${r[e+1]} (${t.toFixed(1)}:1)`)}a.length>0&&o.push({severity:"warning",code:"LOW_ADJACENT_CONTRAST",message:`${a.length} adjacent color pair(s) in colorScheme have very similar luminance: ${a.join("; ")}. Categories may be hard to distinguish.`,fix:'Alternate light and dark colors in the scheme, or use COLOR_BLIND_SAFE_CATEGORICAL from "semiotic" for a pre-tested palette.'})}(0,n,r),function(e,t,o){const n=t.colorScheme;if("string"!=typeof n)return;const r=m[e];r?.props?.colorScheme?.enum||je.has(n)||o.push({severity:"warning",code:"UNKNOWN_COLOR_SCHEME",message:`colorScheme "${n}" is not a recognized named scheme — the chart will fall back to the default palette.`,fix:`Use a known scheme name (${[...je].join(", ")}) or pass an explicit color array, e.g. colorScheme={["#1f77b4", "#ff7f0e"]}.`})}(o,n,r),function(e,t,o){const n=m[e]?.props,r=e=>!!n?.[e]&&"string"==typeof t[e]&&t[e].trim().length>0,a=r("title"),i=r("description"),s=r("summary");a||i||s||o.push({severity:"warning",code:"MISSING_DESCRIPTION",message:"No title, description, or summary provided. Screen readers will fall back to a generic chart-type label.",fix:'Add a title="..." prop for a brief label, or description="..." for a detailed aria-label, or summary="..." for a screen-reader-only note describing the chart\'s purpose.'})}(o,n,r),function(e,t,o){const n=[];for(const e of Se)"function"==typeof t[e]&&n.push(e);n.length>0&&o.push({severity:"warning",code:"FUNCTION_ACCESSOR",message:`Function accessor${n.length>1?"s":""} detected: ${n.join(", ")}. If defined inline (e.g. \`xAccessor={d => d.value}\`), every parent re-render creates a new reference; closures over changing values can force unnecessary scene rebuilds on resize/rotation.`,fix:'Use string accessors when possible (e.g. xAccessor="value"), or memoize with useCallback / define outside the component.'})}(0,n,r),function(e,t,o){const n=t.hoverRadius;"number"==typeof n&&n>0&&24>n&&!1!==t.enableHover&&(!1!==t.hoverAnnotation||t.tooltip||t.customHoverBehavior||t.customClickBehavior||t.onClick)&&o.push({severity:"warning",code:"TOUCH_TARGET_SMALL",message:`hoverRadius=${n}px is below the ~24px radius needed for reliable 48px touch targets on mobile screens.`,fix:"Use hoverRadius={24} or larger for touch-heavy views. Semiotic floors touch pointer hit testing to 24px, but explicit desktop-only radii should be documented."})}(0,n,r),function(e,t,o){!0===t.responsiveWidth&&!0===t.responsiveHeight&&o.push({severity:"warning",code:"RESPONSIVE_BOTH_AXES",message:"responsiveWidth and responsiveHeight are both true. On mobile this can create resize feedback loops when the parent height depends on chart content.",fix:"Prefer responsiveWidth={true} with a fixed parent height or size={[width, fixedHeight]}; use a ResizeObserver outside the chart if the height must follow aspect ratio."})}(0,n,r),function(e,t,o){if(!0!==t.showParticles)return;const n=t.particleStyle&&"object"==typeof t.particleStyle?t.particleStyle:{},r="number"==typeof n.maxPerLine?n.maxPerLine:void 0,a="number"==typeof n.spawnRate?n.spawnRate:void 0;("number"==typeof r&&r>20||"number"==typeof a&&a>.08)&&o.push({severity:"warning",code:"GEO_PARTICLE_MOBILE_COST",message:"Animated geo particles run a continuous canvas loop that can drain battery and trigger thermal throttling on mobile GPUs.",fix:"Set particleStyle={{ maxPerLine: 12, spawnRate: 0.06 }} for mobile-heavy views, or disable showParticles when reduced-motion or low-power modes are active."})}(0,n,r),function(t,o,n){const r=[];$e(o.tokenEncoding)&&r.push({source:"tokenEncoding",encoding:o.tokenEncoding}),$e(o.encoding)&&r.push({source:"encoding",encoding:o.encoding});for(const{source:t,encoding:a}of r){const r=Pe(o,a);for(const o of e(a,{visibleTokens:r}))n.push({severity:"warning",code:"TOKEN_"+o.code,message:o.message,fix:"MISSING_UNIT_VALUE"===o.code?`Set ${t}.unitValue to the value represented by one full token.`:"MISSING_UNIT_MEANING"===o.code?`Set ${t}.unitMeaning so readers know what one full token represents.`:"MISSING_COUNT_STRATEGY"===o.code?`Set ${t}.countStrategy to actual, unitized, fixed-denominator, quantile, sample, posterior-sample, or random-sample.`:"TOKEN_SEMANTICS_UNCLEAR"===o.code?`Set ${t}.tokenSemantics to observed-unit, unitized-measure, risk-case, possible-outcome, posterior-sample, hypothetical-case, topic-anchor, or decorative.`:`Adjust ${t} so its semantics, strategy, labels, and visible token count match the task.`})}}(0,n,r),function(e,t,o){const n=Array.isArray(t.annotations)?t.annotations:null;if(n)for(const e of n){if(!e||"object"!=typeof e)continue;const t=c(e);if(!l(e)||"widget"===t)continue;const n=Math.hypot("number"==typeof e.dx?e.dx:0,"number"==typeof e.dy?e.dy:0),r="string"==typeof e.label?e.label:"string"==typeof e.title?e.title:t,a=s(e);!a&&n>120?o.push({severity:"warning",code:"ANNOTATION_FAR_NO_CONNECTOR",message:`Annotation "${r}" sits ~${Math.round(n)}px from its anchor with no connector — a reader can't tell what it refers to.`,fix:'Add a connector (connector: { end: "arrow" }, the label/callout default) or place the note adjacent to its target (smaller dx/dy).'}):a&&n>250&&o.push({severity:"warning",code:"ANNOTATION_LONG_CONNECTOR",message:`Annotation "${r}" uses a very long connector (~${Math.round(n)}px); prefer placing the note adjacent to its target when space allows.`,fix:"Reduce dx/dy so the note sits near its target, or keep the long connector only if proximity is genuinely infeasible."})}}(0,n,r),function(e,t,o){const n=Array.isArray(t.annotations)?t.annotations:null;if(!n)return;const r=n.filter(l).length;if(0===r)return;const a="number"==typeof t.width?t.width:600,s="number"==typeof t.height?t.height:400,c=i(a,s);Number.isFinite(c)&&r>c&&o.push({severity:"warning",code:"ANNOTATION_DENSITY",message:`${r} note annotations on a ${a}×${s} chart exceed the ~${c} notes the plot area carries comfortably — the chart may read as cluttered.`,fix:'Mark the essential notes emphasis: "primary" and let density management shed the rest (autoPlaceAnnotations: { density: true }), enable progressive disclosure to reveal secondary notes on hover, or give the chart more room.'})}(0,n,r),function(e,o,n){const r=Array.isArray(o.annotations)?o.annotations:null;if(r)for(const e of r)e&&"object"==typeof e&&"widget"===c(e)&&null!=e.content&&!t(e)&&n.push({severity:"warning",code:"ANNOTATION_INTERACTIVE_ID",message:"An interactive widget annotation has no stable id, so its activation cannot be normalized or replayed reliably.",fix:"Add id, stableId, or provenance.stableId to the widget annotation. Do not identify interactive annotations by array index."})}(0,n,r),function(e,t,o){for(const e of Ae){const n=t[e];if(!Array.isArray(n)||2>n.length)continue;const[r,a]=n;"number"==typeof r&&"number"==typeof a&&r>a&&o.push({severity:"warning",code:"INVERTED_AXIS",message:`${e}=[${r}, ${a}] is descending — the axis renders inverted, so "up" reads as less. Inverted axes are a classic misleading-design pattern unless the inversion is the point.`,fix:`Order the extent ascending (${e}={[${a}, ${r}]}). If the inversion is deliberate (e.g. rank #1 at top), say so in the title or an annotation so readers aren't misled.`})}}(0,n,r),function(e,t,o){if("MultiAxisLineChart"!==e)return;const n=t.series;if(!Array.isArray(n)||2!==n.length)return;const r=n.filter(e=>!e||"object"!=typeof e||"string"!=typeof e.label||0===e.label.trim().length);r.length>0&&o.push({severity:"warning",code:"DUAL_AXIS_UNLABELED",message:`Dual-axis chart with ${r.length} unlabeled series. Two y-scales invite false equivalence between the lines; without per-series labels a reader can't tell which scale is whose.`,fix:'Give every series a label: series={[{ yAccessor: "a", label: "Revenue ($)" }, { yAccessor: "b", label: "Users" }]} — and consider whether two separate charts read more honestly.'})}(o,n,r),function(e,t,o){if(!re.has(e))return;const n=t.xExtent;if(!Array.isArray(n)||2>n.length)return;const[r,a]=n;if("number"!=typeof r||"number"!=typeof a||r>=a)return;const i=t.data;if(!i||!Array.isArray(i)||4>i.length)return;const s=t.xAccessor??"x";if("string"!=typeof s)return;let c=1/0,l=-1/0;for(const e of i){const t=e?.[s];"number"==typeof t&&Number.isFinite(t)&&(c>t&&(c=t),t>l&&(l=t))}if(!Number.isFinite(c)||!Number.isFinite(l)||c>=l)return;const p=l-c,y=Math.max(0,Math.min(a,l)-Math.max(r,c))/p;.7>y&&o.push({severity:"warning",code:"CHERRY_PICKED_WINDOW",message:`xExtent=[${r}, ${a}] shows only ~${Math.round(100*y)}% of the data's x range [${c}, ${l}] — a trend cropped to a favorable window is a classic misleading-design pattern.`,fix:'Widen xExtent to cover the data, filter the data itself so the chart shows what it has, or annotate the visible window ("Q4 only") so the cropping is explicit.'})}(o,n,r),r.some(e=>"NEGATIVE_VALUE"===e.code||"NEGATIVE_NORMALIZED_VALUE"===e.code)||function(e,t,o){const n=ce[e],r=pe[e];if(!n&&!r)return;if(r&&!t.normalize)return;const a=n??r,i=t[a],s="string"==typeof i?i:"yAccessor"===a?"y":"value",c=t.data;if(!c||!Array.isArray(c)||0===c.length)return;const l=c.filter(e=>{const t=e?.[s];return"number"==typeof t&&0>t});l.length>0&&o.push({severity:n?"error":"warning",code:"PART_TO_WHOLE_NEGATIVE",message:`${l.length} negative value(s) in "${s}" — a part-to-whole encoding cannot represent negative parts${n?"; slice angles/areas for negatives are meaningless":"; normalized shares distort when parts are negative"}.`,fix:n?"Filter or transform negative values first, or switch to a BarChart/WaterfallChart, which encode signed values honestly.":"Drop normalize for signed data, or use a diverging BarChart so negative contributions read as negative."})}(o,n,r),function(e,t,o){ie.has(e)&&"basis"===t.curve&&o.push({severity:"warning",code:"NON_PASSING_CURVE",message:'curve="basis" draws a B-spline that does NOT pass through your data points — rendered values differ from actual values everywhere except the endpoints.',fix:'Use curve="monotoneX" or curve="catmullRom" (both interpolate through every point), or keep "basis" only for deliberately schematic, clearly-labeled smoothing.'})}(o,n,r),function(e,t,o){if("LineChart"!==e&&"AreaChart"!==e)return;if("sparkline"===t.mode)return;if(t.responsiveWidth||t.responsiveHeight)return;const n="number"==typeof t.width?t.width:600,r="number"==typeof t.height?t.height:400;if(0>=n||0>=r)return;const a=n/r;if(a>8||.25>a){const e=a>8?"flattens":"exaggerates";o.push({severity:"warning",code:"EXTREME_ASPECT_RATIO",message:`${n}×${r} (${a.toFixed(1)}:1) is an extreme aspect ratio that ${e} the slopes a reader perceives — aspect-ratio distortion is a documented misleading-design pattern.`,fix:a>8?'Use a more balanced aspect (e.g. width/height between 1 and 3), or set mode="sparkline" if this is genuinely a sparkline strip.':"Use a more balanced aspect (e.g. width/height between 1 and 3); very tall trend charts overstate every change."})}}(o,n,r),function(e,t,o){if(!se.has(e))return;const n=t.data;if(!n||!Array.isArray(n)||0===n.length)return;const r=t.categoryAccessor,a="string"==typeof r?r:"category",i=new Set;for(const e of n){const t=e?.[a];null!=t&&i.add(t)}i.size>8&&o.push({severity:"warning",code:"PIE_TOO_MANY_SLICES",message:i.size+" slices — angle judgments degrade rapidly past ~8 categories (Cleveland & McGill), and thin slices become unreadable and unlabelable.",fix:`Use a BarChart or DotPlot for ${i.size} categories, or group the long tail into an "Other" slice before charting.`})}(o,n,r),function(e,t,o){if(ge.has(e)){if("GaltonBoardChart"===e){const e=t.bins;"number"==typeof e&&2>e&&o.push({severity:"error",code:"PHYSICS_BAD_BINS",message:`bins=${e} leaves no meaningful settled projection for a Galton board.`,fix:"Use at least two bins; 8-24 bins is a practical range for physics distributions."});const n=Ce(t.branchProbability);null!=t.branchProbability&&(null==n||0>n||n>1)&&o.push({severity:"error",code:"PHYSICS_BAD_BRANCH_PROBABILITY",message:`branchProbability=${t.branchProbability+""} must be between 0 and 1.`,fix:"Use branchProbability={0.5} for a balanced Galton board, or bias it within the [0, 1] range."});const r=Ce(t.mechanicalCount);null==t.mechanicalCount||null!=r&&r>0||o.push({severity:"error",code:"PHYSICS_BAD_MECHANICAL_COUNT",message:`mechanicalCount=${t.mechanicalCount+""} cannot generate a mechanical Galton board.`,fix:"Use a positive mechanicalCount, for example 96."})}if("EventDropChart"===e){const e=t.windows,n=e&&"object"==typeof e?Ce(e.size):null;null==n||n>0||o.push({severity:"error",code:"PHYSICS_BAD_WINDOW_SIZE",message:`windows.size=${n} cannot form event-time barriers.`,fix:"Set windows={{ size: positiveNumber }} so each event can settle into a real time window."}),"number"!=typeof t.timeScale||t.timeScale>0||o.push({severity:"error",code:"PHYSICS_BAD_TIME_SCALE",message:`timeScale=${t.timeScale} prevents arrival replay from advancing.`,fix:"Use a positive timeScale, or omit it for the default pace."});const r=Array.isArray(t.data)?t.data:[];if(r.length>0){const e=t.timeAccessor||"time",n=t.arrivalAccessor||"arrivalTime";r.some(t=>{const o=Ce(xe(t,e,"time")),r=Ce(xe(t,n,"arrivalTime"));return null!=o&&null!=r&&o!==r})||o.push({severity:"warning",code:"PHYSICS_EVENTDROP_NO_ARRIVAL_SPREAD",message:"EventDropChart data does not show distinct arrival times, so the physics replay collapses to event order.",fix:"Provide an arrivalAccessor field with event-arrival times when demonstrating lateness, watermarks, or out-of-order streams."})}}if("PhysicsPileChart"===e){const e=Ce(t.mechanicalCount);null==t.mechanicalCount||null!=e&&e>0||o.push({severity:"error",code:"PHYSICS_BAD_MECHANICAL_COUNT",message:`mechanicalCount=${t.mechanicalCount+""} cannot generate a mechanical pile chart.`,fix:"Use a positive mechanicalCount, for example 80."}),"mechanical"===t.mode&&Array.isArray(t.mechanicalCategories)&&0===t.mechanicalCategories.length&&o.push({severity:"error",code:"PHYSICS_EMPTY_MECHANICAL_CATEGORIES",message:"mechanicalCategories=[] leaves no containers for the generated unit pile.",fix:"Provide at least one category label, or omit mechanicalCategories for the default set."});const n=Ce(t.unitValue??1)??1;if(0>=n)return void o.push({severity:"error",code:"PHYSICS_BAD_UNIT_VALUE",message:`unitValue=${t.unitValue} cannot unitize values into physical bodies.`,fix:"Set unitValue to a positive number represented by one body."});const r=t.valueAccessor||"value",a=(Array.isArray(t.data)?t.data:[]).reduce((e,t)=>{const o=Ce(xe(t,r,"value"))??0;return e+Math.max(0,Math.round(o/n))},0);a>1500&&o.push({severity:"warning",code:"PHYSICS_BODY_BUDGET",message:`PhysicsPileChart would create about ${a} live bodies; motion may dominate the chart and stress the frame budget.`,fix:"Increase unitValue, cap visible units, or aggregate before rendering so the settled projection remains readable."})}if("CollisionSwarmChart"===e){if((Ce(t.pointRadius??5)??5)>0||o.push({severity:"error",code:"PHYSICS_BAD_POINT_RADIUS",message:`pointRadius=${t.pointRadius} cannot produce collision bodies.`,fix:"Use a positive pointRadius, for example 5."}),(Ce(t.collisionIterations??6)??6)>0||o.push({severity:"error",code:"PHYSICS_BAD_COLLISION_ITERATIONS",message:`collisionIterations=${t.collisionIterations} disables collision relaxation.`,fix:"Use at least one collision iteration; 4-8 is a practical range for swarms."}),null!=t.xExtent){const e=Array.isArray(t.xExtent)?t.xExtent:[],n=Ce(e[0]),r=Ce(e[1]);(2>e.length||null==n||null==r)&&o.push({severity:"error",code:"PHYSICS_BAD_X_EXTENT",message:"xExtent must be a numeric [min, max] pair for CollisionSwarmChart.",fix:"Pass xExtent={[min, max]} or omit it so the chart infers the domain from data."})}const e=Array.isArray(t.data)?t.data:[];e.length>1200&&o.push({severity:"warning",code:"PHYSICS_BODY_BUDGET",message:`CollisionSwarmChart would create ${e.length} live bodies; collision relaxation may dominate the frame budget.`,fix:"Sample, aggregate, reduce point radius, or move to a static SwarmPlot when every row does not need a physical body."});const n=t.groupAccessor;if(e.length>0&&n){const t=new Set;for(const o of e){const e=xe(o,n,"group");null!=e&&t.add(e)}t.size>12&&o.push({severity:"warning",code:"PHYSICS_TOO_MANY_SWARM_LANES",message:`CollisionSwarmChart has ${t.size} group lanes, which leaves little vertical room for collision separation.`,fix:"Facet or filter groups, or use an ordinary SwarmPlot/BoxPlot for dense grouped comparison."})}}if("GaltonBoardChart"!==e&&"PhysicsPileChart"!==e&&"CollisionSwarmChart"!==e&&"ProcessFlowChart"!==e&&"EventDropChart"!==e||(null!=t.massBy||null!=t.massAccessor||t.frameProps&&"object"==typeof t.frameProps&&null!=t.frameProps.bodyMassBy)&&o.push({severity:"warning",code:"PHYSICS_DATA_IN_DYNAMICS",message:e+" appears to map a data field to mass/dynamics. Mass is not a readable quantitative channel.",fix:"Encode quantities in spawn position, bin, size, color, or glyph — keep mass/friction/restitution as process texture. Use showProjection for the truth layer."}),"PhysicsPileChart"!==e&&"GaltonBoardChart"!==e&&"CollisionSwarmChart"!==e&&"ProcessFlowChart"!==e&&"CrucibleChart"!==e||!1!==t.showProjection||o.push({severity:"warning",code:"PHYSICS_NO_PROJECTION",message:e+" has showProjection={false}. Without a settled projection, motion is easy to over-read as data.",fix:"Keep showProjection enabled (default) so the chart collapses to a legible static reading, or document why the process alone is the claim."}),"ProcessFlowChart"===e){const e=Array.isArray(t.stages)?t.stages:[];if(0===e.length)o.push({severity:"error",code:"PROCESS_FLOW_MISSING_STAGES",message:"ProcessFlowChart requires a non-empty stages array.",fix:'Provide stages={[{ id: "coding", force: 12 }, { id: "merged", absorb: true }]}.'});else{e.some(e=>!e||null==e.id||""===(e.id+"").trim())&&o.push({severity:"error",code:"PROCESS_FLOW_BAD_STAGE",message:"Every ProcessFlowChart stage needs a stable id.",fix:'Use stages like { id: "review", label: "Review", capacity: { unitsPerSecond: 4 } }.'});const n=e.filter(e=>e?.absorb).length;t.groupBy&&0===n&&o.push({severity:"warning",code:"PROCESS_FLOW_GROUP_NO_ABSORB",message:"groupBy is set but no stage has absorb: true, so all-members completion cannot resolve.",fix:'Mark a terminal stage with absorb: true (e.g. merged), or set groupCompletion="none".'})}}if("GauntletChart"===e&&(Array.isArray(t.negativeProperties)||o.push({severity:"warning",code:"GAUNTLET_MISSING_NEGATIVE_PROPERTIES",message:"GauntletChart usually needs negativeProperties for drag/cost bodies (empty array is ok if intentional).",fix:'Provide negativeProperties={[{ id: "cost", label: "Cost", load: 1 }]} or explicitly pass [].'})),"CrucibleChart"===e){const e=Array.isArray(t.phases)?t.phases:[],n=Array.isArray(t.products)?t.products:[],r=Array.isArray(t.events)?t.events:[],a=Array.isArray(t.outlets)?t.outlets:[];0===e.length?o.push({severity:"error",code:"CRUCIBLE_MISSING_PHASES",message:"CrucibleChart requires an authored, non-empty phases array; a treatment program cannot be inferred from flat data.",fix:'Provide phases={[{ id: "charge", label: "Charge", duration: 1, motion: "charge" }]}.'}):e.some(e=>!e||null==e.id||""===(e.id+"").trim()||null==Ce(e.duration)||0>=Number(e.duration))&&o.push({severity:"error",code:"CRUCIBLE_BAD_PHASE",message:"Every CrucibleChart phase needs a stable id and a positive finite duration.",fix:'Use phases like { id: "assay", label: "Assay", duration: 2, motion: "mix" }.'}),0===n.length&&o.push({severity:"warning",code:"CRUCIBLE_NO_PRODUCTS",message:"CrucibleChart has no declared product molds. Products are never discovered from collisions or source fields.",fix:'Declare products={[{ id: "accepted", label: "Accepted", outletId: "product" }]} when the treatment forms an output.'}),0===r.length&&o.push({severity:"warning",code:"CRUCIBLE_NO_EVENTS",message:"CrucibleChart has no authored events, so its phases cannot transform, combine, split, or route the charge.",fix:"Supply an explicit events array; do not ask the chart or an AI layer to infer a treatment from the rows."}),Array.isArray(t.outlets)||o.push({severity:"warning",code:"CRUCIBLE_IMPLICIT_OUTLETS",message:"CrucibleChart is using generic default outlets rather than domain-specific destinations.",fix:"Provide reason-labelled outlets and reference their ids from products, complete-product, and eject effects."});const i=new Set(n.map(e=>e?.id).filter(e=>null!=e).map(String)),s=new Set(["product","retained","residue","failed","recovered",...a.map(e=>e?.id).filter(e=>null!=e).map(String)]),c=new Set,l=new Set;for(const e of r)if(e&&Array.isArray(e.effects))for(const t of e.effects){if(!t||"object"!=typeof t)continue;const e=t.type;if("combine"!==e&&"contribute"!==e&&"complete-product"!==e||null==t.productId||i.has(t.productId+"")||c.add(t.productId+""),"split"===e&&Array.isArray(t.products))for(const e of t.products)null==e?.productId||i.has(e.productId+"")||c.add(e.productId+"");null==t.outletId||s.has(t.outletId+"")||l.add(t.outletId+"")}c.size>0&&o.push({severity:"error",code:"CRUCIBLE_UNKNOWN_PRODUCT",message:`CrucibleChart events reference undeclared product molds: ${[...c].sort().join(", ")}.`,fix:"Declare every referenced product id in products; do not create product definitions implicitly inside events."}),l.size>0&&o.push({severity:"error",code:"CRUCIBLE_UNKNOWN_OUTLET",message:`CrucibleChart events reference undeclared outlets: ${[...l].sort().join(", ")}.`,fix:"Declare every domain outlet in outlets and reuse its stable id in authored effects."});const p=Ce(t.playbackRate);null==t.playbackRate||null!=p&&p>0||o.push({severity:"error",code:"CRUCIBLE_BAD_PLAYBACK_RATE",message:`playbackRate=${t.playbackRate+""} cannot advance the authored CrucibleChart tape.`,fix:"Use a positive playbackRate such as 0.5 for half speed or 2 for double speed."});const y=Ce(t.rerunMS);null==t.rerunMS||null!=y&&y>=0||o.push({severity:"error",code:"CRUCIBLE_BAD_RERUN_MS",message:`rerunMS=${t.rerunMS+""} must be a finite non-negative delay or null.`,fix:"Use rerunMS={3000}, rerunMS={0}, or omit the prop for a single run."})}if("PhysicsPileChart"===e||"GaltonBoardChart"===e||"CollisionSwarmChart"===e||"ProcessFlowChart"===e||"EventDropChart"===e||"CrucibleChart"===e){const n=Array.isArray(t.data)?t.data:[],r=Ce(t.mechanicalCount)??0,a=n.length>0?n.length*("PhysicsPileChart"===e?Math.max(1,(Ce(t.unitValue),1)):1):r;a>2500&&o.push({severity:"warning",code:"PHYSICS_BODY_BUDGET",message:`${e} may spawn ~${Math.round(a)} live bodies, which can overwhelm the simulation loop.`,fix:"Lower mechanicalCount / unitize with a larger unitValue, enable sediment/windowSize, or sample the data before spawn."})}}}(o,n,r),{ok:r.every(e=>"warning"===e.severity),diagnoses:r}}var Ie=["title","description","summary"];function Ne(e){return"string"==typeof e&&e.trim().length>0}function Le(e,t=new Set){if(null===e)return!0;const o=typeof e;if("string"===o||"boolean"===o)return!0;if("number"===o)return Number.isFinite(e);if("object"!==o)return!1;if(t.has(e))return!1;t.add(e);const n=Array.isArray(e)?e.every(e=>Le(e,t)):Object.entries(e).every(([,e])=>Le(e,t));return t.delete(e),n}var Te=Symbol.for("semiotic.chartRecipeRegistry");function Ee(e){return function(){const e=globalThis;return e[Te]||(e[Te]={recipes:new Map,capabilities:new Map,layouts:new Map}),e[Te]}().recipes.get(e)}function Be(e){return"string"==typeof e?Ee(e):e&&"object"==typeof e&&"string"==typeof e.id?e:void 0}var Oe=new Set(["#0072b2","#e69f00","#009e73","#cc79a7","#56b4e9","#d55e00","#f0e442","#000000"]);function Fe(e){return"primary"===e?.emphasis||"secondary"===e?.emphasis||null!=function(e){const t=e?.provenance?.confidence;return"number"==typeof t&&Number.isFinite(t)?t:null}(e)}function He(e){const t=e.toLowerCase().replace(/[^a-z]/g,"");if(!t)return 0;if(3>=t.length)return 1;const o=t.replace(/(?:[^laeiouy]es|ed|[^laeiouy]e)$/,"").replace(/^y/,"").match(/[aeiouy]{1,2}/g);return o?o.length:1}function _e(e){return e.physics&&"object"==typeof e.physics?e.physics:{}}function De(e,t,o={}){const n=[],r=Ee(e),a=de.has(e),i=!!m[e]||!!r||a,p=!0===o.inChartContainer,y=!0===o.describe,u=!0===o.navigable,d=ye.has(e),b=te.has(e),{hasTitle:g,hasDescription:h,hasSummary:f,unsupportedFinding:v}=function(e,t){const o=m[e]?.props,n=e=>!!o?.[e],r=Ie.filter(e=>Ne(t[e])&&!n(e));return{hasTitle:n("title")&&Ne(t.title),hasDescription:n("description")&&Ne(t.description),hasSummary:n("summary")&&Ne(t.summary),unsupportedFinding:r.length>0?{id:"understandable.unsupported-description-prop",principle:"understandable",heuristic:"Descriptive text is connected to the rendered chart",critical:!0,status:"warn",message:`Useful ${r.join(" and ")} text was supplied, but ${1===r.length?"that prop is":"those props are"} not supported by ${e}'s declared chart API and cannot be credited as rendered accessibility text.`,fix:"Use the component's declared title, description, and summary props when available; for richer generated description or navigation, use ChartContainer with chartConfig plus describe and/or navigable."}:void 0}}(e,t),w=!1!==t.accessibleTable&&!d,A=g||h||f,C=function(e){return!1!==e.tooltip||null!=e.onClick||null!=e.brush||null!=e.onBrush||null!=e.selection||null!=e.linkedHover||null!=e.linkedBrush}(t),x=function(e){const t=_e(e),o=e.controls&&"object"==typeof e.controls?e.controls:{};return!0===e.pauseControl||!0===t.pauseControl||!0===o.pause||"function"==typeof o.pause}(t),j=a,S=function(e){const t=_e(e);return!0===e.settledProjection||!0===t.settledProjection}(t)||be.has(e)&&w,$=function(e){const t=_e(e);return!0===e.reducedMotionSettle||"settle"===e.reducedMotion||!0===t.reducedMotionSettle||"settle"===t.reducedMotion}(t)||j,k=Array.isArray(t.annotations)?t.annotations.filter(e=>!!e&&"object"==typeof e):[],P=i?"pass":"manual",R=i?"":` (unrecognized component "${e}" — verify manually that the built-in applies)`;if(v&&n.push(v),n.push(function(e){const t={id:"perceivable.low-contrast",principle:"perceivable",heuristic:"Low contrast",critical:!0},o=e.colorScheme,n="string"==typeof e.background?e.background:null;if(n&&!n.startsWith("#"))return{...t,status:"manual",message:`Background "${n}" isn't a hex literal (theme/CSS variable) — contrast can't be verified statically.`,fix:'Pass a hex `background` (e.g. "#ffffff"/"#000000"), or verify contrast manually once the theme resolves.'};const r=n??"#ffffff";if(!Array.isArray(o))return{...t,status:"manual",message:"Mark colors come from the theme/CSS variables — contrast can't be verified statically.",fix:"Confirm geometries/large text have ≥ 3:1 and regular text ≥ 4.5:1 contrast against the background."};const a=[];let i=0;for(const e of o){if("string"!=typeof e||!e.startsWith("#"))continue;const t=ee(e,r);null!=t&&(i++,3>t&&a.push(`${e} (${t.toFixed(1)}:1)`))}return 0===i?{...t,status:"manual",message:"colorScheme has no parseable hex colors to check.",fix:"Verify contrast manually for non-hex colors."}:a.length>0?{...t,status:"fail",message:`${a.length} color(s) fall below 3:1 contrast vs ${r}: ${a.join(", ")}.`,fix:"Darken (light background) or lighten (dark background) those colors, or use COLOR_BLIND_SAFE_CATEGORICAL."}:{...t,status:"pass",message:`All ${i} checked colorScheme color(s) meet ≥ 3:1 contrast vs ${r}.`}}(t)),n.push({id:"perceivable.content-only-visual",principle:"perceivable",heuristic:"Content is only visual",critical:!0,...d?{status:"pass",message:"BigNumber renders its value as real text with an ARIA label — available without vision."}:w?{status:"pass",message:"A screen-reader data table + live region expose the data non-visually (accessibleTable is on)."}:h&&f?{status:"manual",message:"accessibleTable is off; a description + summary are present. Verify they convey everything the chart shows.",fix:"Re-enable accessibleTable, or confirm via screen reader that the text alternative is complete."}:{status:"fail",message:"accessibleTable is disabled and there's no full text alternative — the data is only available visually.",fix:"Remove accessibleTable={false}, or provide a complete description/summary plus a data table."}}),n.push({id:"perceivable.small-text",principle:"perceivable",heuristic:"Small text size",critical:!0,status:"pass",message:"Semiotic's default tick and axis-label fonts are 12px, meeting Chartability's 9pt/12px floor.",fix:"If a theme or override lowers --semiotic-tick-font-size below 12px, raise it back for low-vision audiences."}),n.push({id:"perceivable.seizure-risk",principle:"perceivable",heuristic:"Visual presents seizure risk",critical:!0,...null!=t.pulse||me.has(e)?{status:"manual",message:"Pulse/continuous animation is in use. Confirm nothing flashes more than 3×/sec, especially saturated red.",fix:"Avoid red flashes and rapid (>3 Hz) flicker; reduced-motion is auto-honored, but verify the default presentation."}:{status:"manual",message:"No flashing detected statically. Confirm no element flashes more than 3×/sec.",fix:"Manual check — most static charts pass trivially."}}),null!=t.colorBy){n.push({id:"perceivable.color-alone",principle:"perceivable",heuristic:"Color is used alone to communicate meaning",critical:!1,...!0===t.directLabel||!0===t.showLabels?{status:"pass",message:"Categories are encoded by color (colorBy) and also directly labeled, so color isn't the only channel."}:{status:"warn",message:"Categories are encoded by color (colorBy) with no redundant channel — Semiotic does not yet ship texture/pattern fills.",fix:"Add direct labels (directLabel on LineChart/AreaChart, showLabels on network/hierarchy), keep categories ≤ ~7, and use a CVD-safe palette."}});const e=Array.isArray(t.colorScheme)?t.colorScheme:null,o=e?e.filter(e=>"string"==typeof e&&e.startsWith("#")).map(e=>e.toLowerCase()):[],r=o.length>0&&o.every(e=>Oe.has(e));n.push({id:"perceivable.cvd-safe",principle:"perceivable",heuristic:"Not CVD-friendly",critical:!1,...r?{status:"pass",message:"colorScheme uses Semiotic's Wong colorblind-safe palette."}:{status:"manual",message:"Color encodes meaning; statically we can't confirm the palette is colorblind-safe.",fix:'Use COLOR_BLIND_SAFE_CATEGORICAL from "semiotic", or test your scheme with Viz Palette / Chroma.'}}),n.push({id:"flexible.textures-adjustable",principle:"flexible",heuristic:"Contrast and textures cannot be adjusted",critical:!1,status:"warn",message:"There's no per-category texture/pattern channel to toggle as an alternative to color.",fix:"Until texture fills land, ensure the encoding survives color removal: direct labels + a CVD-safe palette. Contrast itself is themeable via CSS variables."})}{const e=k.filter(l);if(e.length>0){const o=t.autoPlaceAnnotations,r="object"==typeof o&&null!==o&&!0===o.redundantCues,a=e.filter(e=>{if("string"!=typeof e.color)return!1;const t=c(e),o=r&&"text"===t;return!(s(e)||o)});n.push({id:"perceivable.annotation-association",principle:"perceivable",heuristic:"Color is used alone to communicate meaning",critical:!1,...0===a.length?{status:"pass",message:"No annotation relies on color alone to indicate its target — wherever color is used, a connector, enclosure, or reference-line cue is present too."}:{status:"warn",message:`${a.length} of ${e.length} annotation(s) carry a color but no connector, enclosure, or reference-line cue, so a color-blind or non-visual reader can't tie them to their target (the correspondence problem).`,fix:"Add a connector (the label/callout default), place the note adjacent to its target, enclose the target, or enable autoPlaceAnnotations: { redundantCues: true } to give colored text notes a leader line — don't rely on color matching alone."}})}}n.push({id:"operable.single-input-modality",principle:"operable",heuristic:"Interaction modality only has one input type",critical:!0,...i?{status:"pass",message:"Built-in keyboard navigation (arrows/Home/End/PageUp-Down/Enter) mirrors mouse hover."}:{status:"manual",message:`Can't confirm keyboard support for "${e}".`,fix:"Verify Tab + arrow-key operation."}});{const e=[];null==t.brush&&null==t.onBrush||e.push("brushing"),!0===t.zoomable&&e.push("zoom/pan"),"isolate"!==t.legendInteraction&&"highlight"!==t.legendInteraction||e.push("legend filtering"),e.length>0&&n.push({id:"operable.complex-action-alternatives",principle:"operable",heuristic:"Complex actions have no alternatives",critical:!1,status:"warn",message:`Mouse-driven ${e.join(", ")} ${e.length>1?"have":"has"} no built-in keyboard/standard-UI equivalent.`,fix:"Pair the complex interaction with a standard control (range inputs for a brush, buttons for zoom, a checkbox list for legend filtering) operable by keyboard and screen reader."})}{const o=we[e];if(o&&C){const e=t[o];"number"==typeof e&&e>0&&24>2*e&&n.push({id:"operable.target-size",principle:"operable",heuristic:"Target pointer interaction size is too small",critical:!1,status:"warn",message:`${o}=${e} gives a ~${2*e}px hit target, below the 24×24px minimum for pointer interaction.`,fix:"Increase the radius, or rely on the chart's hoverRadius / keyboard navigation as the alternative for precise selection."})}}n.push({id:"operable.tab-stops",principle:"operable",heuristic:"Inappropriate tab stops",critical:!1,status:P,message:`The chart takes a single tab stop and navigates data with arrow keys${R} — the recommended pattern for dense charts (no per-datum tab stops to wade through).`}),n.push({id:"operable.interaction-cues",principle:"operable",heuristic:"No interaction cues or instructions",critical:!0,...C?f||h?{status:"manual",message:"Chart is interactive and has descriptive text. Confirm that text explains how to interact (keyboard + pointer).",fix:'State the interaction model in summary, e.g. "Use arrow keys to move between points."'}:{status:"warn",message:"Chart is interactive but nothing explains how to use it.",fix:"Describe the interaction in a summary or nearby text (keyboard navigation, what hover/click reveals)."}:{status:"not-applicable",message:"No interactive behavior detected."}}),n.push({id:"operable.controls-override-at",principle:"operable",heuristic:"Controls override AT controls",critical:!0,status:P,message:`Keyboard handlers fire only while the chart has focus, so they don't hijack page/app screen-reader shortcuts${R}.`}),n.push({id:"operable.focus-indicator",principle:"operable",heuristic:"Keyboard focus indicator missing, obscured, or low contrast",critical:!1,status:P,message:`A shape-adaptive focus ring (var(--semiotic-focus)) marks the focused element${R}.`,fix:i?"Ensure --semiotic-focus keeps ≥ 3:1 contrast against your background.":void 0}),n.push({id:"understandable.title-summary-caption",principle:"understandable",heuristic:"No title, summary, or caption",critical:!0,...A?{status:"pass",message:`Provided: ${[g&&"title",h&&"description",f&&"summary"].filter(Boolean).join(", ")}.`}:p?{status:"manual",message:"No title/description/summary on the chart. If the wrapping ChartContainer supplies a title/subtitle, this is covered at that layer — verify it does.",fix:"Give the ChartContainer a title (and optionally enable describe), or set title/description/summary on the chart."}:{status:"fail",message:"No title, description, or summary — the screen reader falls back to a generic label.",fix:"Add title/description/summary on the chart, or wrap it in a ChartContainer (the opt-in layer for title/caption/description chrome)."}}),n.push({id:"understandable.explain-purpose",principle:"understandable",heuristic:"No explanation for purpose or for how to read",critical:!0,...h||f?{status:"pass",message:"A description/summary is available to explain purpose and how to read the chart."}:y?{status:"manual",message:"ChartContainer's describe option explains how to read the chart (type, stats, trend). Confirm the domain purpose — why this chart exists — is also conveyed (title/subtitle).",fix:"Give the ChartContainer a title/subtitle stating the purpose; describe() covers the how-to-read half."}:g?{status:"warn",message:"Only a title is set — a label, not an explanation of purpose or how to read the chart.",fix:"Add a summary, or enable ChartContainer's describe option for an auto-generated how-to-read description."}:{status:"fail",message:"Nothing explains the chart's purpose or how to read it.",fix:"Add a summary/description, or wrap in a ChartContainer with a title and the describe option (the opt-in full-accessibility layer)."}});{const e=[t.description,t.summary].filter(Ne).join(". "),o=e?function(e){const t=e.split(/[.!?]+/).map(e=>e.trim()).filter(Boolean),o=e.trim().split(/\s+/).filter(Boolean);if(0===o.length||0===t.length)return null;let n=0;for(const e of o)n+=He(e);return o.length/t.length*.39+n/o.length*11.8-15.59}(e):null;n.push({id:"understandable.reading-level",principle:"understandable",heuristic:"Reading level inappropriate",critical:!0,...null==o?{status:"not-applicable",message:"No description/summary text to grade."}:o>9?{status:"warn",message:`Description/summary reads at ~grade ${o.toFixed(0)}; Chartability targets grade 9 or lower.`,fix:"Shorten sentences and prefer common words."}:{status:"pass",message:`Description/summary reads at ~grade ${Math.max(0,Math.round(o))} (≤ 9).`}})}if(ue.has(e)){const e=Ne(t.xLabel),o=Ne(t.yLabel);n.push({id:"understandable.axis-labels",principle:"understandable",heuristic:"Axis labels are unclear or missing",critical:!1,...e&&o?{status:"pass",message:"Both axes are labeled (xLabel, yLabel)."}:{status:"warn",message:`Missing axis label: ${[!e&&"xLabel",!o&&"yLabel"].filter(Boolean).join(", ")}. Ticks alone may not name the variable.`,fix:"Set xLabel and yLabel to name each axis's variable and units."}})}if(fe.has(e)&&n.push({id:"understandable.information-complexity",principle:"understandable",heuristic:"Information complexity is inappropriate",critical:!1,status:"warn",message:"Dual-axis chart: two y-scales are hard to read accurately and notoriously easy to misinterpret (the crossover point is arbitrary).",fix:"Confirm the second axis is necessary; consider two aligned charts (small multiples) or indexing both series to a common baseline. Label each axis and its series unambiguously."}),k.length>1){const e=k.filter(Fe).length;n.push({id:"understandable.annotation-hierarchy",principle:"understandable",heuristic:"Information complexity is inappropriate",critical:!1,...e===k.length?{status:"pass",message:`All ${k.length} annotation(s) declare hierarchy through emphasis or provenance confidence, so the renderer can resolve reading order and visual priority.`}:0===e?{status:"warn",message:k.length+" annotations are present with no emphasis or provenance confidence; readers may not know which note is primary.",fix:'Mark the main annotation with emphasis="primary", set supporting notes to emphasis="secondary", or provide provenance.confidence so Semiotic can infer order.'}:{status:"warn",message:`${k.length-e} of ${k.length} annotation(s) have no emphasis or provenance confidence; readers may not know which note is primary among the unordered notes.`,fix:"Set emphasis on each annotation (primary/secondary), or provide provenance.confidence on all annotations so Semiotic can infer order."}})}(null!=t.forecast||null!=t.anomaly||null!=t.band||null!=t.regression)&&n.push({id:"understandable.uncertainty",principle:"understandable",heuristic:"Statistical uncertainty isn't clearly communicated",critical:!1,status:"manual",message:"The chart shows a forecast/regression/band/anomaly overlay. Confirm the uncertainty it represents is explained in text, not just drawn.",fix:"State the confidence interval / method in the summary, and label the band so it isn't mistaken for data."}),null!=t.animate&&!1!==t.animate&&n.push({id:"understandable.changes-followable",principle:"understandable",heuristic:"Changes are not easy to follow",critical:!1,status:P,message:`Transitions animate with object constancy and data changes are mirrored to the live region${R}.`,fix:i?"Keep transition durations in the 250ms–2s range so changes are followable but not slow.":void 0}),n.push({id:"robust.conforms-to-standards",principle:"robust",heuristic:"Does not conform to standards",critical:!1,status:"manual",message:"WCAG 2.1 / Section 508 conformance can't be settled from config alone.",fix:"Run an automated checker (axe) on the rendered output and test with real assistive tech."}),n.push({id:"robust.semantically-valid",principle:"robust",heuristic:"Semantically invalid",critical:!1,status:"manual",message:"Whether interactive elements expose correct roles/names is a render-time, screen-reader question.",fix:"Verify with a screen reader that buttons read as buttons, the chart as an image/group, etc."}),n.push({id:"robust.fragile-technology-support",principle:"robust",heuristic:"Fragile technology support",critical:!1,status:P,message:`Charts render on canvas with an SVG overlay and render to SVG in SSR, so access isn't tied to one rendering path${R}.`,fix:i?"Still test across NVDA+Firefox, JAWS+Chrome, and VoiceOver+Safari — AT support varies.":void 0}),n.push({id:"compromising.table",principle:"compromising",heuristic:"No table",critical:!0,...d?{status:"not-applicable",message:"Single-value display — a table isn't meaningful."}:w?{status:"pass",message:"A human-readable data table is provided (accessibleTable)."}:{status:"fail",message:"accessibleTable is disabled — no human-readable table of the underlying data.",fix:"Remove accessibleTable={false} (unless title/summary/annotations already convey all the data)."}}),d||n.push({id:"compromising.table-static",principle:"compromising",heuristic:"Table/data is static",critical:!1,...p?{status:"manual",message:"Rendered in a ChartContainer. If a data-download action is enabled, the data is exportable.",fix:"Enable the ChartContainer data-download action so users can save the underlying data (keep it opt-in)."}:{status:"warn",message:"The data table is read-only — not downloadable, sortable, or filterable.",fix:"Wrap the chart in a ChartContainer and enable its data-download action (opt-in, so deployments can withhold it where export isn't allowed)."}}),n.push({id:"compromising.shareable-state",principle:"compromising",heuristic:"State is not easy to share and reproduce",critical:!1,status:i?"pass":"manual",message:`Chart state serializes via toConfig/toURL/copyConfig${i?"":R}.`,fix:i?"Expose it to users via the ChartContainer copyConfig action or a shareable URL.":void 0}),n.push({id:"compromising.navigable-structure",principle:"compromising",heuristic:"Information cannot be navigated according to narrative or structure",critical:!1,...u?b?{status:"pass",message:"ChartContainer's navigable option mounts a structured navigation tree. For hierarchical/network charts the tree is currently shallow (root/topology summary + annotations branch), not a full descent of every node."}:{status:"pass",message:"ChartContainer's navigable option mounts a structured tree (chart → axes/series → data points) that screen readers can traverse."}:b?{status:"warn",message:"Hierarchical chart: built-in keyboard navigation is largely flat — it doesn't descend the tree structure.",fix:"Enable ChartContainer's navigable option for a structured navigation tree, or lean on the data table and a summary that conveys the hierarchy."}:{status:P,message:`Keyboard navigation steps through points and switches series/groups${R}.`,fix:i?"For deeper structure (axis → series → datum), enable ChartContainer's navigable option.":void 0}});{const o=Array.isArray(t.data)?t.data:null,r=Array.isArray(t.nodes)?t.nodes:null,a={id:"assistive.data-density",principle:"assistive",heuristic:"Data density is inappropriate",critical:!0};let i;i=le.has(e)&&o&&o.length>7?{...a,status:"warn",message:o.length+" slices in a part-to-whole chart. Chartability suggests ≤ 5 categories; many thin slices are hard to perceive and to describe.",fix:'Group small slices into an "Other" category, or switch to a ranked bar chart.'}:r&&r.length>200?{...a,status:"warn",message:r.length+" nodes. A network this size is hard to navigate non-visually node by node.",fix:"Provide a summary of structure (clusters, hubs, components) and consider filtering or aggregating the graph."}:o&&o.length>5e3?{...a,status:"warn",message:o.length+" data points. Canvas renders this fine, but the non-visual table/navigation become unwieldy.",fix:"Aggregate or bin for the accessible representation, or expose summary statistics rather than every row."}:o?{...a,status:"pass",message:o.length+" data points — a reasonable density for non-visual consumption."}:r?{...a,status:"pass",message:r.length+" nodes — a reasonable density for non-visual consumption."}:{...a,status:"manual",message:"Data not provided inline (push mode); verify density at runtime."},n.push(i)}{const e=Array.isArray(t.data)?t.data:null,o=["valueFormat","yFormat","xFormat","tickFormat","format"].some(e=>"function"==typeof t[e]||"string"==typeof t[e]);let r=!1;if(e&&!o)for(const t of e.slice(0,50))if(t&&"object"==typeof t){for(const e of Object.values(t))if("number"==typeof e&&Number.isFinite(e)&&Math.abs(e)>=1e5){r=!0;break}if(r)break}r&&n.push({id:"assistive.human-readable-numbers",principle:"assistive",heuristic:"Data in text is not human-readable",critical:!1,status:"warn",message:'Data includes large numbers (≥ 100,000) and no value/tick formatter — screen readers will read every digit (e.g. "six hundred fifty thousand…").',fix:'Pass valueFormat / yFormat (e.g. a compact formatter so 6,500,000 reads as "6.5M"); the formatter flows to ticks, tooltips, and the data table.'})}n.push({id:"assistive.features-described",principle:"assistive",heuristic:"Visually apparent features and relationships are not described",critical:!1,...y?{status:"pass",message:"ChartContainer's describe option auto-generates an L1–L3 description (chart type, statistics, and trend) via describeChart()."}:f?{status:"manual",message:"A summary is present. Confirm it describes trends, extrema, clusters, and outliers — not just what the chart is.",fix:"Cover the L2/L3 content blind readers value most: direction of trend, peak/trough, notable outliers."}:{status:"warn",message:"No text describes the visually apparent trends, extrema, or outliers.",fix:"Enable ChartContainer's describe option (auto-generates via describeChart()), or write a summary covering the key trend and notable points."}}),n.push({id:"assistive.skippable-navigation",principle:"assistive",heuristic:"Navigation and interaction is tedious",critical:!0,...d?{status:"not-applicable",message:"Single value — nothing to skip."}:w?{status:"pass",message:'A "Skip to data table" link lets screen-reader users bypass point-by-point navigation.'}:{status:"warn",message:"accessibleTable is off, removing the skip-to-table affordance.",fix:"Keep accessibleTable enabled so users can skip past dense point navigation."}}),n.push({id:"flexible.user-style-respected",principle:"flexible",heuristic:"User style change not respected",critical:!0,status:P,message:`Styling flows through CSS custom properties and honors forced-colors mode, so user/user-agent style changes cascade in${R}.`,fix:i?"Avoid hardcoding colors via frameProps style fns that bypass theme variables.":void 0}),n.push({id:"flexible.reduced-motion",principle:"flexible",heuristic:"Long animations cannot be controlled",critical:!1,...me.has(e)||he.has(e)?x?{status:"pass",message:e+" animates continuously and declares an in-chart pause/stop control."}:{status:"warn",message:e+" animates continuously. prefers-reduced-motion is auto-honored, but there's no in-chart pause/stop control for users who don't set that preference.",fix:"Offer a pause/stop control for looping/streaming motion (Chartability requires it for animation > 2s)."}:{status:P,message:`prefers-reduced-motion is auto-detected; transitions fast-forward and looping animation stops${R}.`}}),a&&(n.push({id:"flexible.sim-pause-control",principle:"flexible",heuristic:"Long animations cannot be controlled",critical:!1,...x?{status:"pass",message:"Physics simulation exposes a pause/stop control for users who need to stop motion."}:{status:"warn",message:"Physics simulation has no declared pause/stop control.",fix:"Provide a visible pause control and set physics.pauseControl=true (or pauseControl=true) so the contract is auditable."}}),n.push({id:"flexible.settled-projection",principle:"flexible",heuristic:"User style change not respected",critical:!1,...S?{status:"pass",message:"A settled-projection table is declared, so non-visual readers get aggregate chart semantics instead of trajectories."}:{status:"warn",message:"Physics chart does not declare a settled projection for its accessible table.",fix:"Provide aggregate rows from the settled projection and set physics.settledProjection=true."}}),n.push({id:"flexible.reduced-motion-settle",principle:"flexible",heuristic:"Long animations cannot be controlled",critical:!1,...$?{status:"pass",message:"Reduced-motion mode settles the simulation to a static chart state instead of freezing bodies mid-flight."}:{status:"warn",message:"Physics chart does not declare reduced-motion synchronous settle behavior.",fix:"In reduced motion, run the world to its settled projection and paint once; set physics.reducedMotionSettle=true."}}));{const o=!0===t.responsiveWidth||!0===t.responsiveHeight,r=ve.has(e)&&!0===t.zoomable;n.push({id:"flexible.zoom-reflow",principle:"flexible",heuristic:"Zoom and reflow are not supported",critical:!1,...o?{status:"pass",message:`Chart reflows to its container (${[!0===t.responsiveWidth&&"responsiveWidth",!0===t.responsiveHeight&&"responsiveHeight"].filter(Boolean).join(", ")}), so page zoom doesn't clip it.`}:r?{status:"pass",message:"Geo chart is zoomable/pannable."}:{status:"manual",message:"Fixed width/height — verify the chart survives browser zoom and reflow without clipping or loss of function.",fix:"Use responsiveWidth/responsiveHeight so the chart reflows to its container."}})}if(r){const e=r.encodings?.some(e=>"color"===e.channel&&(!e.redundantWith||0===e.redundantWith.length));e&&n.push({id:"perceivable.recipe-color-alone",principle:"perceivable",heuristic:"Color is used alone to communicate meaning",critical:!1,status:"warn",message:r.name+" declares a color encoding without a redundant cue.",fix:"Add shape, label, position, texture, or a textual category summary to the recipe encoding."}),"required"!==r.accessibility.description||Ne(t.description)||n.push({id:"understandable.recipe-description",principle:"understandable",heuristic:"Features are not described",critical:!1,status:"fail",message:r.name+" requires a recipe-aware description, but none is attached.",fix:"Call describeChart with recipeId/recipe metadata and attach the returned text as description."}),r.accessibility.fallbackTable&&!1===t.accessibleTable&&n.push({id:"compromising.recipe-fallback",principle:"compromising",heuristic:"No data table is provided",critical:!0,status:"fail",message:r.name+" requires a fallback table, but accessibleTable is disabled.",fix:"Enable accessibleTable and preserve recipe-declared table fields on scene nodes."})}const I=n.filter(e=>"not-applicable"!==e.status).filter(e=>e.critical),N={criticalsPassed:I.filter(e=>"pass"===e.status).length,criticalsEvaluated:I.length,fails:n.filter(e=>"fail"===e.status).length,warnings:n.filter(e=>"warn"===e.status).length,manual:n.filter(e=>"manual"===e.status).length,passes:n.filter(e=>"pass"===e.status).length};return{component:e,ok:!I.some(e=>"fail"===e.status),summary:N,findings:n,reference:"Chartability (POUR-CAF) — https://chartability.github.io/POUR-CAF/. Not a pass/fail cert; pair with manual screen-reader testing (NVDA+Firefox, JAWS+Chrome, VoiceOver+Safari)."}}function Me(e,{onlyCritical:t=!1}={}){const o=[];for(const n of e.findings)"fail"!==n.status&&"warn"!==n.status||t&&!n.critical||o.push(n.message);return o}var ze={pass:"✓",fail:"✗",warn:"⚠",manual:"○","not-applicable":"·"},We=["perceivable","operable","understandable","robust","compromising","assistive","flexible"];function Ge(e){const t=[],o=e.summary,n=e.ok?`${o.criticalsPassed}/${o.criticalsEvaluated} critical heuristics pass`:`${o.fails} blocking failure(s) — ${o.criticalsPassed}/${o.criticalsEvaluated} critical heuristics pass`;t.push(`${e.ok?"✓":"✗"} ${e.component}: accessibility audit (Chartability POUR-CAF)`),t.push(` ${n} · ${o.warnings} warning(s) · ${o.manual} to verify manually`);for(const o of We){const n=e.findings.filter(e=>e.principle===o&&"not-applicable"!==e.status);if(0!==n.length){t.push(""),t.push(" "+o.toUpperCase());for(const e of n)t.push(` ${ze[e.status]} ${e.id}${e.critical?" [critical]":""}: ${e.message}`),!e.fix||"fail"!==e.status&&"warn"!==e.status&&"manual"!==e.status||t.push(" → "+e.fix)}}return t.push(""),t.push(" Ref: "+e.reference),t.join("\n")}var qe=new Set(["LineChart","AreaChart","StackedAreaChart","DifferenceChart","Scatterplot","BubbleChart","ConnectedScatterplot","QuadrantChart","MultiAxisLineChart","MinimapChart"]),Ue=new Set(["BarChart","StackedBarChart","GroupedBarChart","DotPlot"]),Ve=new Set(["PieChart","DonutChart","FunnelChart"]),Ye=new Set(["Histogram","BoxPlot","ViolinPlot","RidgelinePlot","SwarmPlot"]);function Ke(e,t){return Ue.has(e)||Ve.has(e)||"SwimlaneChart"===e||"GaugeChart"===e?{measure:t.valueAccessor,measureFallback:"value",dimension:t.categoryAccessor??t.stepAccessor,dimensionFallback:"category"}:{measure:t.yAccessor??t.valueAccessor,measureFallback:"y",dimension:t.xAccessor,dimensionFallback:"x"}}function Xe(e){for(const t of["lineBy","areaBy","stackBy","groupBy","colorBy"]){const o=e[t];if("string"==typeof o&&o)return o}}function Je(e,t){return null==e?"—":e instanceof Date?e.toISOString().slice(0,10):"number"==typeof e?t(e):e+""}function Qe(e){return"string"==typeof e?e:e.id??e.name}function Ze(e){return e.layoutConfig&&"object"==typeof e.layoutConfig?e.layoutConfig:{}}function et(e){return Array.isArray(e.data)?e.data:Array.isArray(e.nodes)?e.nodes:Array.isArray(e.points)?e.points:Array.isArray(e.areas)?e.areas:[]}function tt(e,t,o){return o??Be(t.recipe)??Be(t.recipeId)??Ee(e)}function ot(e,t,o=[]){const n=e.accessor?t[e.accessor]:void 0;if("string"==typeof n&&n)return n;if(e.field)return e.field;const r=o.find(e=>e&&"object"==typeof e);if(!r)return;const a=Object.entries(r).filter(([e,t])=>!e.startsWith("_")&&null!=t);return"quantitative"===e.semanticType?a.find(([,e])=>"number"==typeof e)?.[0]:"identifier"===e.semanticType?["id","key","name"].find(e=>e in r):a.find(([,e])=>"string"==typeof e)?.[0]}function nt(e,t){return e.dataRoles.find(e=>e.role===t)}function rt(e,t){return e.dataRoles.find(e=>t.includes(e.semanticType))}function at(e,t,o,n,r,a={}){const i={...a};if(t)for(const[e,o]of Object.entries(t))i[e]=o;for(const e of o.dataRoles){const o=ot(e,n,r),a=t&&o?t[o]:o;void 0!==a&&(i[e.role]=a)}return e.replace(/\{([^}]+)\}/g,(e,t)=>{const o=i[t];return null==o?`{${t}}`:o+""})}var it={LineChart:"line chart",AreaChart:"area chart",StackedAreaChart:"stacked area chart",DifferenceChart:"difference chart",Scatterplot:"scatter plot",BubbleChart:"bubble chart",ConnectedScatterplot:"connected scatter plot",QuadrantChart:"quadrant chart",MultiAxisLineChart:"dual-axis line chart",CandlestickChart:"candlestick chart",Heatmap:"heatmap",MinimapChart:"line chart",BarChart:"bar chart",StackedBarChart:"stacked bar chart",GroupedBarChart:"grouped bar chart",DotPlot:"dot plot",Histogram:"histogram",BoxPlot:"box plot",ViolinPlot:"violin plot",RidgelinePlot:"ridgeline plot",SwarmPlot:"swarm plot",PieChart:"pie chart",DonutChart:"donut chart",FunnelChart:"funnel chart",GaugeChart:"gauge",LikertChart:"Likert chart",SwimlaneChart:"swimlane chart",ForceDirectedGraph:"network graph",SankeyDiagram:"Sankey diagram",ProcessSankey:"temporal Sankey diagram",ChordDiagram:"chord diagram",TreeDiagram:"tree diagram",Treemap:"treemap",CirclePack:"circle-packing chart",OrbitDiagram:"orbit diagram",ChoroplethMap:"choropleth map",ProportionalSymbolMap:"proportional-symbol map",FlowMap:"flow map",DistanceCartogram:"distance cartogram",BigNumber:"single value",StreamPhysicsFrame:"physics stream frame",EventDropChart:"event-drop physics chart",GaltonBoardChart:"Galton board chart",PhysicsPileChart:"physics pile chart",CollisionSwarmChart:"collision swarm chart",PhysicalFlowChart:"physical flow chart",ProcessFlowChart:"process flow physics chart",CrucibleChart:"crucible physics chart",PhysicsCustomChart:"custom physics chart"},st=new Set(["ForceDirectedGraph","SankeyDiagram","ProcessSankey","ChordDiagram"]),ct=new Set(["StreamPhysicsFrame","EventDropChart","GaltonBoardChart","PhysicsPileChart","CollisionSwarmChart","PhysicalFlowChart","ProcessFlowChart","GauntletChart","CrucibleChart","PhysicsCustomChart"]);function lt(e){return it[e]||e.replace(/([a-z])([A-Z])/g,"$1 $2").toLowerCase()+" chart"}function pt(e){const t="number"==typeof e?e:"string"==typeof e?Number(e):NaN;return Number.isFinite(t)?t:void 0}var yt=new Set(["Scatterplot","BubbleChart","ConnectedScatterplot","QuadrantChart","ScatterplotMatrix"]),ut={"outlier-detection":"alerting","change-detection":"alerting",trend:"tracking","composition-over-time":"apportioning","compare-series":"comparing","compare-categories":"comparing",rank:"ranking","part-to-whole":"apportioning",distribution:"characterizing",correlation:"relating",flow:"tracing",hierarchy:"nesting",geo:"locating"},dt={"time-series":"tracking",categorical:"comparing",distribution:"characterizing",relationship:"relating",flow:"tracing",network:"tracing",hierarchy:"nesting",geo:"locating",realtime:"tracking",value:"presenting",custom:"presenting"},mt=["trend","compare-series","compare-categories","rank","part-to-whole","distribution","correlation","flow","hierarchy","geo","composition-over-time","change-detection","outlier-detection"],bt={alerting:"alerting",tracking:"trend",comparing:"comparison",ranking:"ranking",apportioning:"composition",characterizing:"distribution",relating:"correlation",tracing:"flow",nesting:"hierarchy",locating:"locator",presenting:"single-value"};function gt(e){return ut[e]}function ht(e,t){const o=function(e){if(e){if("fits"in e||"buildProps"in e){const t=e,o={};for(const[e,n]of Object.entries(t.intentScores))"number"==typeof n&&Number.isFinite(n)&&(o[e]=n);return{family:t.family,intentScores:Object.keys(o).length?o:void 0}}return e}}(t);if(o?.act)return o.act;if(o?.intentScores){const e=function(e){let t,o=0;for(const[n,r]of Object.entries(e))if("number"==typeof r&&r>0)if(r>o)t=n,o=r;else if(r===o&&void 0!==t){const e=mt.indexOf(n),o=mt.indexOf(t);-1===e||-1!==o&&e>=o||(t=n)}return t}(o.intentScores);if(e&&ut[e]&&(o.intentScores[e]??0)>=3)return ut[e]}return o?.family?dt[o.family]:function(e){return Ve.has(e)||"StackedAreaChart"===e?"apportioning":yt.has(e)?"relating":Ue.has(e)?"comparing":Ye.has(e)?"characterizing":qe.has(e)?"tracking":st.has(e)?"tracing":"BigNumber"===e?"presenting":void 0}(e)}var ft=new Set(["y-threshold","x-threshold","band","x-band","callout","label"]),vt=new Set(["system","agent","watcher"]),wt=new Set(["ai","agent","system","computed","dbt","great-expectations"]),At=new Set(["rule","statistical-test","llm-inference","computed"]);function Ct(e){const t=e.annotations;return!!Array.isArray(t)&&t.some(e=>{if(!e||"object"!=typeof e)return!1;const t=e;if("string"!=typeof t.type||!ft.has(t.type))return!1;const o=t.provenance;return!(!o||"object"!=typeof o)&&(vt.has(o.authorKind)||wt.has(o.source)||At.has(o.basis))})}function xt(e="en"){let t,o;try{t=new Intl.NumberFormat(e,{notation:"compact",maximumFractionDigits:1}),o=new Intl.NumberFormat(e,{maximumFractionDigits:2})}catch{t=new Intl.NumberFormat("en",{notation:"compact",maximumFractionDigits:1}),o=new Intl.NumberFormat("en",{maximumFractionDigits:2})}return e=>Number.isFinite(e)?1e4>Math.abs(e)?o.format(e):t.format(e):e+""}var jt={"y-threshold":"a threshold line","x-threshold":"a threshold line",band:"a highlighted band","x-band":"a highlighted band",label:"a label",callout:"a callout","callout-circle":"a callout","callout-rect":"a callout",text:"a text note",bracket:"a bracket",enclose:"an enclosure","rect-enclose":"an enclosure",highlight:"a highlight",widget:"a widget",trend:"a trend line",envelope:"an envelope","anomaly-band":"an anomaly band",forecast:"a forecast","category-highlight":"a category highlight"};function St(e){const t=jt["string"==typeof e.type?e.type:"annotation"]||"an annotation",o=function(e){const t=e.provenance&&"object"==typeof e.provenance?e.provenance:null,o=t?.authorKind??t?.source??t?.basis;return"watcher"===o?"a watcher-flagged ":"agent"===o||"ai"===o||"llm-inference"===o?"an AI-suggested ":""}(e),n=o?o+t.replace(/^an? /,""):t,r="string"==typeof e.label?e.label:"string"==typeof e.title?e.title:void 0;return r?`${n} labeled "${r}"`:n}function $t(e){const t=Array.isArray(e.annotations)?e.annotations:null;if(!t||0===t.length)return;const n=o(t.filter(e=>!!e&&"object"==typeof e));if(0===n.length)return;const r=n.map(St),a=r.slice(0,5),i=r.length-a.length,s=function(e){return e.length>1?2===e.length?`${e[0]} and ${e[1]}`:`${e.slice(0,-1).join(", ")}, and ${e[e.length-1]}`:e[0]??""}(a)+(i>0?`, and ${i} more`:""),c=n.length;return`The author has marked ${1===c?"one feature":c+" features"} on this chart: ${s}.`}function kt(e,t,o={}){const n=void 0!==o.levels,i=new Set(o.levels??["l1","l2","l3"]);n||!o.capability&&!Ct(t)||i.add("l4");const s=tt(e,t,o.recipe);if(s){const e=["l1","l2","l3","l4"].filter(e=>i.has(e));n||e.includes("l4")||e.push("l4");const r=function(e,t,o={}){const n=et(t),r=Ze(t),a=o.locale??"en",i="function"==typeof e.description?e.description({data:n,config:r,locale:a}):void 0,s=i?.levels??function(e,t,o,n){const r=rt(e,["nominal","ordinal"]),a=rt(e,["quantitative"]),i=r?ot(r,o,t):void 0,s=a?ot(a,o,t):void 0,c=r?.role??i??"category",l=a?.role??s??"value",p=e.encodings??[],y=p.length?p.slice(0,3).map(e=>e.meaning.replace(/\.$/,"")).join("; "):`${c} and ${l} are mapped through the recipe's declared visual semantics`,{number:u,percent:d}=function(e){try{return{number:new Intl.NumberFormat(e,{maximumFractionDigits:2}),percent:new Intl.NumberFormat(e,{style:"percent",maximumFractionDigits:1})}}catch{return{number:new Intl.NumberFormat("en",{maximumFractionDigits:2}),percent:new Intl.NumberFormat("en",{style:"percent",maximumFractionDigits:1})}}}(n),m=new Map;if(i&&s)for(const e of t){const t=(e[i]??"Uncategorized")+"",o=Number(e[s]);Number.isFinite(o)&&m.set(t,(m.get(t)??0)+o)}const b=[...m].sort((e,t)=>t[1]-e[1]),g=b.reduce((e,[,t])=>e+t,0),h=b[0],f=b[1],v=g>0?((h?.[1]??0)+(f?.[1]??0))/g:0,w=e.intents.map(e=>({id:Qe(e),strength:"string"==typeof e?void 0:e.strength})).sort((e,t)=>"primary"===e.strength?-1:"primary"===t.strength?1:0)[0]?.id,A=e.audience?.primary??e.audienceFit?.find(e=>"strong"===e.fit)?.audience;return{l1:`A ${e.name.toLowerCase()} encodes ${c} and ${l}. ${C=y,C?C.charAt(0).toUpperCase()+C.slice(1):C}.`,l2:b.length>0?`${b.length} categories total ${u.format(g)}. ${h[0]} accounts for ${u.format(h[1])}${g>0?` (${d.format(h[1]/g)})`:""}${f?`, followed by ${f[0]} at ${u.format(f[1])}`:""}.`:`${t.length} data ${1===t.length?"item is":"items are"} represented.`,l3:2>b.length?h?h[0]+" is the only represented category.":"No quantitative pattern can be derived from the available data.":.5>v?`The total is distributed across ${b.length} categories without the first two forming a majority.`:`Most of the total is concentrated in ${h[0]} and ${f[0]}, which together account for ${d.format(v)}.`,l4:`The chart is intended for ${w??"explanation"}${A?` with a ${A} audience`:""}: ${e.designContract.whyCustom}`};var C}(e,n,r,a),c=o.levels??["l1","l2","l3","l4"],l={};for(const e of c)s[e]&&(l[e]=s[e]);const p=["l1","l2","l3","l4"].map(e=>l[e]).filter(e=>!!e).join(" "),y=o.includeCaveats?[...e.reception?.risks??[],...e.caveats??[],...(e.designContract.misuse??[]).map(e=>"Misuse: "+e)]:void 0;return{text:p,levels:l,...y?.length?{caveats:y}:{}}}(s,t,{levels:e,locale:o.locale,audience:o.audience,includeCaveats:o.includeCaveats}),a=$t(t);return{...r,text:a?`${a} ${r.text}`.trim():r.text,...a?{annotations:a}:{}}}const c=xt(o.locale??"en"),l=lt(e),p=Array.isArray(t.data)?t.data:null,y=Xe(t),u=ct.has(e)?function(e,t){const o=e.physics&&"object"==typeof e.physics?e.physics:null,n=e.settledProjection&&"object"==typeof e.settledProjection?e.settledProjection:null,r=[e.settledProjectionRows,e.projectionRows,n?.rows,o?.settledProjectionRows,o?.projectionRows,o?.settledProjection&&"object"==typeof o.settledProjection?o.settledProjection.rows:void 0].find(e=>Array.isArray(e));return Array.isArray(r)?r.map((e,o)=>{if(!e||"object"!=typeof e)return null;const n=e,r=pt(n.count??n.value??n.total??n.bodies??n.events);if(null==r)return null;const a=n.label??n.id??n.name??"container "+(o+1),i=pt(n.secondary??n.secondaryCount),s=pt(n.observed??n.observedCount);return{label:Je(a,t),count:r,...null!=i?{secondary:i}:{},..."string"==typeof n.secondaryLabel&&n.secondaryLabel?{secondaryLabel:n.secondaryLabel}:{},...null!=s?{observed:s}:{}}}).filter(e=>null!=e):null}(t,c):null,{measure:d,measureFallback:m,dimension:b,dimensionFallback:g}=Ke(e,t),h="string"==typeof d&&d?d:m,f="string"==typeof b&&b?b:g,v={};if(ct.has(e)&&function(e,t,o,n,r,a){const i=function(e){return"EventDropChart"===e?"time window":"GaltonBoardChart"===e?"bin":"CollisionSwarmChart"===e?"group lane":"PhysicalFlowChart"===e?"flow node":"CrucibleChart"===e?"result group":"container"}(e),s=function(e){return"EventDropChart"===e?"event":"GaltonBoardChart"===e?"sample":"CollisionSwarmChart"===e?"point":"PhysicalFlowChart"===e?"packet":"CrucibleChart"===e?"settled item":"body"}(e);if(r.has("l1")&&(n.l1=function(e,t){return"EventDropChart"===e?"An event-drop physics chart that collapses moving events into a settled projection by event-time window.":"GaltonBoardChart"===e?"A Galton board chart that collapses falling samples into a settled histogram projection.":"PhysicsPileChart"===e?"A physics pile chart that collapses moving bodies into a settled bar-style projection by container.":"CollisionSwarmChart"===e?"A collision swarm chart that separates overlapping points while preserving their quantitative axis position.":"PhysicalFlowChart"===e?"A physical flow chart that keeps authored routes visible while packet bodies show throughput and proximity events.":"CrucibleChart"===e?"A crucible physics chart that replays authored phases and events into declared products and outlets; the settled ledger, not collisions, determines the result.":`A ${t} whose accessible reading is the settled projection rather than individual trajectories.`}(e,t)),!r.has("l2")&&!r.has("l3"))return;if(!o||0===o.length)return void(r.has("l2")&&(n.l2="No settled projection is loaded yet."));const c=o.reduce((e,t)=>e+t.count,0),l=o.filter(e=>e.count>0).sort((e,t)=>t.count-e.count),p=l[0]??o.slice().sort((e,t)=>t.count-e.count)[0];if(!p)return;const y=o.reduce((e,t)=>e+(t.secondary??0),0),u=o.find(e=>e.secondaryLabel)?.secondaryLabel??"secondary";if(r.has("l2"))if(0===l.length)n.l2=`The settled projection contains ${a(c)} ${Rt(c,s)} across ${o.length} ${Rt(o.length,i)}; no ${Rt(2,i)} are non-empty yet.`;else{const e=y>0?` ${a(y)} ${Rt(y,s)} ${1===y?"is":"are"} marked ${u}.`:"";n.l2=`The settled projection contains ${a(c)} ${Rt(c,s)} across ${o.length} ${Rt(o.length,i)}; ${l.length} ${Rt(l.length,i)} ${1===l.length?"is":"are"} non-empty. The largest ${i} is ${p.label} with ${a(p.count)} ${Rt(p.count,s)}.${e}`}if(r.has("l3")&&c>0&&l.length>0){const e=l.find(e=>e!==p),t=function(e,t){if(0>=t)return"0%";const o=e/t*100;return(10>o?Math.round(10*o)/10:Math.round(o))+"%"}(p.count,c);n.l3=e?`The settled projection is most concentrated in ${p.label}, which holds ${a(p.count)} ${Rt(p.count,s)} (${t}); ${e.label} follows with ${a(e.count)} ${Rt(e.count,s)}.`:`The settled projection is concentrated in ${p.label}, which holds all ${a(p.count)} ${Rt(p.count,s)}.`}}(e,l,u,v,i,c),i.has("l1")&&!ct.has(e))if(qe.has(e)||Ue.has(e))v.l1=`A ${l} of ${h} by ${f}`+(y?`, split by ${y}.`:".");else if(Ve.has(e))v.l1=`A ${l} showing ${h} across ${f} categories.`;else if(Ye.has(e))v.l1=`A ${l} of the distribution of ${h}`+(y?` by ${y}.`:".");else if(st.has(e)){const e=Array.isArray(t.nodes)?t.nodes.length:void 0,o=Array.isArray(t.edges)?t.edges.length:void 0,n=[null!=e?`${e} ${Rt(e,"node")}`:null,null!=o?`${o} ${Rt(o,"edge")}`:null].filter(Boolean);v.l1=`A ${l}${n.length?" with "+n.join(" and "):""}.`}else if("BigNumber"===e){const e="string"==typeof t.label?t.label:h;v.l1=`A single value${e?" for "+e:""}.`}else v.l1=`A ${l}.`;const w=qe.has(e)||Ue.has(e)||Ve.has(e)||Ye.has(e);let A=null;if((i.has("l2")||i.has("l3")||i.has("l4"))&&w&&p&&p.length>0&&(A=function(e,t,o,n){let r=0,a=0,i=1/0,s=-1/0,c=null,l=null,p=0,y=0,u=null,d=null,m=NaN,b=NaN;for(const o of e){const e=t(o);Number.isFinite(e)&&(0===r&&(m=e,u=o),b=e,d=o,i>e&&(i=e,c=o,p=r),e>s&&(s=e,l=o,y=r),r++,a+=e)}return 0===r?null:{count:r,min:i,max:s,mean:a/r,minLabel:Je(null!=c?o(c):null,n),maxLabel:Je(null!=l?o(l):null,n),first:m,last:b,firstLabel:Je(null!=u?o(u):null,n),lastLabel:Je(null!=d?o(d):null,n),minIndex:p,maxIndex:y}}(p,r(d,m),a(b,g),c)),i.has("l2")&&w&&(p&&0!==p.length?A&&(v.l2=Ve.has(e)?`${A.count} segments totaling ${c(function(e){return e.mean*e.count}(A))}. Largest is ${A.maxLabel} at ${c(A.max)}; smallest is ${A.minLabel} at ${c(A.min)}.`:`${h} ranges from ${c(A.min)} (${A.minLabel}) to ${c(A.max)} (${A.maxLabel}), with a mean of ${c(A.mean)} across ${A.count} points.`):v.l2="No data is loaded yet."),i.has("l3")&&A&&!y&&qe.has(e)?v.l3=function(e,t,o){const{first:n,last:r,min:a,max:i,maxLabel:s,minLabel:c,firstLabel:l,lastLabel:p,minIndex:y,maxIndex:u,count:d}=e,m=i-a,b=r-n;if(0===m)return`${Pt(t)} is constant at ${o(n)} across the series.`;if(.04>m/(Math.abs(e.mean)||1))return`${Pt(t)} ends roughly where it started (${o(n)} at ${l} to ${o(r)} at ${p}), ranging between ${o(a)} and ${o(i)}.`;const g=u>0&&d-1>u,h=y>0&&d-1>y,f=(i-Math.max(n,r))/m,v=(Math.min(n,r)-a)/m;return g&&f>.15?`Overall ${t} climbs to a peak of ${o(i)} (${s}), then falls to ${o(r)} (${p}).`:h&&v>.15?`Overall ${t} drops to a low of ${o(a)} (${c}), then recovers to ${o(r)} (${p}).`:.05>Math.abs(b)/m?`${Pt(t)} ends roughly where it started (${o(n)} at ${l} to ${o(r)} at ${p}), ranging between ${o(a)} and ${o(i)}.`:b>0?u===d-1?`Overall ${t} rises from ${o(n)} (${l}) to a peak of ${o(r)} (${p}).`:`Overall ${t} rises from ${o(n)} (${l}) to ${o(r)} (${p}), after peaking at ${o(i)} (${s}).`:y===d-1?`Overall ${t} falls from ${o(n)} (${l}) to a low of ${o(r)} (${p}).`:`Overall ${t} falls from ${o(n)} (${l}) to ${o(r)} (${p}), after dipping to ${o(a)} (${c}).`}(A,h,c):i.has("l3")&&A&&!y&&Ue.has(e)&&(v.l3=`The highest ${f} is ${A.maxLabel} and the lowest is ${A.minLabel}.`),i.has("l4")){const n=Ct(t)?"alerting":ht(e,o.capability);n&&(v.l4=function(e,t,o,n,r,a,i,s){const c=bt[e],l=/^[aeiou]/i.test(c)?"an":"a";let p,y;switch(e){case"locating":p="This is a map",y="read values by location";break;case"presenting":p="This is a single-value display",y=`read ${"string"==typeof o.label&&o.label?o.label:r} as the headline number`;break;case"tracing":p=`This is ${l} ${c} chart`,y="follow the movement between states";break;case"nesting":p=`This is ${l} ${c} chart`,y="read it for nested structure and how children sum into their parents";break;case"relating":p=`This is ${l} ${c} chart`,y=`read it for whether ${a} and ${r} move together`;break;default:p=`This is ${l} ${c} chart`,y=function(e,t,o,n,r,a){if(!t)switch(e){case"alerting":return"watch for points that break from the rest";case"tracking":return"read it for the overall direction of "+o;case"comparing":return`compare ${o} across ${n}`;case"ranking":return"read it top to bottom by "+o;case"apportioning":return`read each ${n}'s share of the whole`;case"characterizing":return"read it for the spread and shape of "+o;default:return"read the highlighted features"}switch(e){case"alerting":return function(e,t,o){if(Ue.has(o)||Ve.has(o))return`${e.maxLabel} stands out at ${t(e.max)} — check it first`;const{first:n,last:r,min:a,max:i,minLabel:s,maxLabel:c,lastLabel:l,minIndex:p,maxIndex:y,count:u}=e,d=i-a;if(d>0){const e=y>0&&u-1>y,o=p>0&&u-1>p,m=(i-Math.max(n,r))/d,b=(Math.min(n,r)-a)/d;if(e&&m>.15)return`the peak of ${t(i)} at ${c} is the point to investigate`;if(o&&b>.15)return`the dip to ${t(a)} at ${s} is the point to investigate`;if(r>=i)return`the climb to ${t(r)} at ${l} warrants a closer look`;if(a>=r)return`the drop to ${t(r)} at ${l} warrants a closer look`}return`the extremes — ${c} (${t(i)}) and ${s} (${t(a)}) — are the points to check`}(t,r,a);case"tracking":return`read it for the trajectory of ${o}, which ${function(e){const t=e.max-e.min,o=e.last-e.first;return 0===t||.05>Math.abs(o)/t?"holds roughly steady":o>0?"rises":"falls"}(t)} from ${r(t.first)} (${t.firstLabel}) to ${r(t.last)} (${t.lastLabel})`;case"comparing":return`compare ${o} across ${n}; ${t.maxLabel} leads at ${r(t.max)}`;case"ranking":return`read it top to bottom by ${o}; ${t.maxLabel} ranks highest at ${r(t.max)}`;case"apportioning":{const e=t.mean*t.count,o=e>0?Math.round(t.max/e*100):null;return`read each ${n}'s share of the ${r(e)} total; ${t.maxLabel} is the largest at ${r(t.max)}${null!=o?` (${o}%)`:""}`}case"characterizing":return`read it for the spread of ${o}, from ${r(t.min)} to ${r(t.max)}`;default:return"read the highlighted features"}}(e,n,r,a,i,t)}return`${p}; ${y}.${function(e,t){if(!t)return"";const o=t.familiarity?.[e];return"number"!=typeof o||o>2?"":` This ${lt(e)} may be unfamiliar${t.name?` to ${t.name.toLowerCase()} readers`:""} — lean on this description.`}(t,s)}`}(n,e,t,y?null:A,h,f,c,o.audience))}const C=["l1","l2","l3","l4"].filter(e=>i.has(e)&&v[e]).map(e=>v[e]).join(" "),x=$t(t);return{text:x?`${x} ${C}`.trim():C,levels:v,...x?{annotations:x}:{}}}function Pt(e){return e.length?e[0].toUpperCase()+e.slice(1):e}function Rt(e,t){return 1!==e&&"body"===t?"bodies":1===e?t:t+"s"}function It(e){return((e??"unknown")+"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"")||"unknown"}function Nt(e,t,n={}){const i=n.locale??"en",s=Math.max(1,n.maxLeaves??200),c=xt(i),l=tt(e,t,n.recipe);if(l)return function(e,t,o={}){const n=et(t),r=Ze(t),a=Math.max(1,o.maxLeaves??200);if("function"==typeof e.navigation)return e.navigation({data:n,config:r,locale:o.locale??"en"});const i=(s=e.navigation)&&"object"==typeof s?e.navigation:void 0;var s;const c=(i?.groupByRole?nt(e,i.groupByRole):void 0)??(i?.groupBy?.[0]?nt(e,i.groupBy[0])??e.dataRoles.find(e=>e.field===i.groupBy?.[0]):void 0)??rt(e,["nominal","ordinal"]),l=c?ot(c,r,n):void 0,p=(i?.idRole?nt(e,i.idRole):void 0)??rt(e,["identifier"]),y=p?ot(p,r,n):void 0,u={id:"root",role:"chart",label:i?.summaryTemplate?at(i.summaryTemplate,void 0,e,r,n,{count:n.length}):`${e.name}: ${n.length} ${1===n.length?"item":"items"} represented.`,level:1,children:[]};let d=0;const m=(t,o,a)=>{const s=y?t[y]:void 0,c=i?.itemLabelTemplate?at(i.itemLabelTemplate,t,e,r,n,{count:n.length}):function(e,t,o,n){const r=rt(t,["nominal","ordinal"]),a=t.dataRoles.filter(e=>"quantitative"===e.semanticType),i=r?ot(r,o,n):void 0,s=[];i&&null!=e[i]&&s.push(e[i]+"");for(const t of a){const r=ot(t,o,n);r&&null!=e[r]&&s.push(`${t.role}: ${e[r]+""}`)}return s.length>0?s.join(", "):"Data item"}(t,e,r,n);return{id:"datum-"+It(s??o),role:"datum",label:c,level:a,datum:t}};if(l){const e=new Map;for(const t of n){const o=(t[l]??"Uncategorized")+"",n=e.get(o);n?n.push(t):e.set(o,[t])}u.children=[...e].map(([e,t],o)=>{const n=t.slice(0,Math.max(0,a-d));d+=n.length;const r=n.map((e,t)=>m(e,1e5*o+t,3));return t.length>n.length&&r.push({id:"more-"+It(e),role:"datum",label:`…and ${t.length-n.length} more items`,level:3}),{id:"group-"+It(e),role:"series",label:`${e}: ${t.length} ${1===t.length?"item":"items"}.`,level:2,children:r}})}else{const e=n.slice(0,a);u.children=e.map((e,t)=>m(e,t,2)),n.length>e.length&&u.children.push({id:"more",role:"datum",label:`…and ${n.length-e.length} more items`,level:2})}return u}(l,t,{maxLeaves:s,locale:i});const p={id:"root",role:"chart",label:kt(e,t,{locale:i}).text||"Chart.",level:1,children:[]},y=function(e,t){const n=Array.isArray(e.annotations)?e.annotations:null;if(!n)return null;const r=o(n.filter(e=>!!e&&"object"==typeof e));if(0===r.length)return null;let a=0;const i=r.slice(0,t).map(e=>{const t=e.lifecycle?.status,o=t&&"accepted"!==t?` (${t})`:"";return{id:"annotation-"+a++,role:"annotation",level:3,label:`${n=St(e),n?n.charAt(0).toUpperCase()+n.slice(1):n}${o}.`,datum:e};var n});r.length>t&&i.push({id:"annotation-"+a++,role:"annotation",level:3,label:`…and ${r.length-t} more annotations.`});const s=r.length;return{id:"annotations",role:"annotation",level:2,label:`Annotations: ${1===s?"one marked feature":s+" marked features"}.`,children:i}}(t,s),u=Array.isArray(t.data)?t.data:null,d=qe.has(e)||Ue.has(e)||Ve.has(e)||Ye.has(e);if(!u||0===u.length||!d)return y&&(p.children=[y]),p;const{measure:m,measureFallback:b,dimension:g,dimensionFallback:h}=Ke(e,t),f=r(m,b),v=a(g,h),w="string"==typeof m&&m?m:b,A="string"==typeof g&&g?g:h,C=Xe(t);let x=0;const j=e=>`${e}-${x++}`,S=(e,t)=>{const o=e.slice(0,s).map(e=>((e,t)=>{const o=f(e),n=Je(v(e),c);return{id:j("datum"),role:"datum",level:t,label:`${n}: ${Number.isFinite(o)?c(o):"—"}`,value:Number.isFinite(o)?o:void 0,datum:e}})(e,t));return e.length>s&&o.push({id:j("more"),role:"datum",level:t,label:`…and ${e.length-s} more points`}),o},$=[];if(qe.has(e)||Ue.has(e)){let t=1/0,o=-1/0,n=1/0,r=-1/0;const a=[];let i=!0;for(const e of u){const s=f(e);Number.isFinite(s)&&(t>s&&(t=s),s>o&&(o=s));const c=v(e);a.push(c),"number"==typeof c&&Number.isFinite(c)?(n>c&&(n=c),c>r&&(r=c)):i=!1}const s=new Set,l=[];for(const e of a){const t=e+"";s.has(t)||(s.add(t),l.push(e))}const p=i?`${c(n)} to ${c(r)}`:`${Je(l[0],c)} to ${Je(l[l.length-1],c)} (${Ue.has(e)?l.length+" categories":u.length+" points"})`;$.push({id:j("axis"),role:"axis",level:2,label:`${Ue.has(e)?"Category axis":"X axis"}: ${A}, ${p}.`}),t>o||$.push({id:j("axis"),role:"axis",level:2,label:`Value axis: ${w}, ${c(t)} to ${c(o)}.`})}if(C){const o=a(C,C),n=new Map;for(const e of u){const t=(o(e)??"—")+"",r=n.get(t);r?r.push(e):n.set(t,[e])}const r=[];for(const[o,a]of n){const n=kt(e,{...t,data:a},{levels:["l2","l3"],locale:i}).text;r.push({id:j("series"),role:"series",level:2,label:`Series ${o}: ${n}`,children:S(a,3)})}p.children=[...$,...r]}else p.children=[...$,...S(u,2)];return y&&p.children.push(y),p}function Lt(e,t){const o=[],n=e=>{if(o.push(e),e.children&&e.children.length>0&&t.has(e.id))for(const t of e.children)n(t)};return n(e),o}function Tt(e){let t=1;if(e.children)for(const o of e.children)t+=Tt(o);return t}var Et=new Set(["StreamPhysicsFrame","EventDropChart","GaltonBoardChart","PhysicsPileChart","CollisionSwarmChart","PhysicalFlowChart","ProcessFlowChart","PhysicsCustomChart"]);function Bt(e){return!!e&&"object"==typeof e&&!Array.isArray(e)}function Ot(e){return Bt(e)?e:void 0}function Ft(e){const t="number"==typeof e?e:"string"==typeof e&&e.trim()?Number(e):NaN;return Number.isFinite(t)?t:void 0}function Ht(e){const t=Ft(e);return null==t?void 0:Math.max(0,Math.floor(t))}function _t(...e){return e.map(Ot).find(Boolean)}function Dt(...e){return e.find(Array.isArray)}function Mt(e){const t={};for(const[o,n]of Object.entries(e))void 0!==n&&(t[o]=n);return t}function zt(e,t){return 1!==e&&"body"===t?"bodies":1===e?t:t+"s"}function Wt(e){return Number.isInteger(e)?e+"":Math.round(1e3*e)/1e3+""}function Gt(e,t,o){const n=e?.filter(e=>!0===Ot(e)?.sensor).length,r=Ot(t?.observation),a=Ot(r?.sensors),i=Dt(o?.activeSensors);return Math.max(n??0,a?Object.keys(a).length:0,i?.length??0)||void 0}function qt(e,t,o={}){const{capability:n,audience:r,locale:a}=o,i=o.levels??["l1","l2","l3"],s=!1!==o.includeStructure,c=ht(e,n),l=kt(e,t,{levels:c?[...i,"l4"]:i,locale:a,capability:n,audience:r}),{l4:p,...y}=l.levels,u=["l1","l2","l3"].map(e=>l.levels[e]).filter(Boolean).join(" "),d={levels:y,text:l.annotations?`${l.annotations} ${u}`.trim():u,...l.annotations?{annotations:l.annotations}:{}};let m;if(c&&p){const e=(b=n)?"fits"in b||"buildProps"in b?{family:b.family}:{family:b.family,intentScores:b.intentScores}:{};m={act:c,sentence:p,family:e.family,intentScores:e.intentScores}}var b;const g=s?Nt(e,t,{maxLeaves:o.maxLeaves,locale:a}):void 0,h=function(e,t,o){if(!1===o)return;const n=Bt(o)?o:void 0,r=Ot(t.physics),a=_t(n?.snapshot,r?.snapshot,t.physicsSnapshot,function(e){const t=Ot(e);return!!t&&(Bt(t.world)||"simulationState"in t||"liveBodyOrder"in t)}(t.snapshot)?t.snapshot:void 0),i=_t(n?.evidence,r?.evidence,t.physicsEvidence,t.settledEvidence),s=_t(n?.config,r?.config,a?.config,t.config),c=_t(Ot(a?.world),Ot(r?.world)),l=_t(Ot(s?.kernel),Ot(c?.options)),p=Dt(c?.bodies),y=Dt(c?.colliders,s?.colliders),u=Dt(a?.queue,r?.queue),d=Dt(a?.liveBodyOrder),m=Dt(c?.springs),b=Dt(a?.activeSensorPairs),g=function(e){if(!e||0===e.length)return;const t=e.map((e,t)=>{const o=Ot(e);if(!o)return;const n=Ft(o.count??o.value??o.total??o.bodies??o.events);if(null==n)return;const r=(o.label??o.id??o.name??"container "+(t+1))+"",a=null==o.id?void 0:o.id+"",i=Ft(o.secondary??o.secondaryCount),s=Ft(o.observed??o.observedCount);return Mt({id:a,label:r,count:n,secondary:i,secondaryLabel:"string"==typeof o.secondaryLabel?o.secondaryLabel:void 0,observed:s})}).filter(e=>null!=e);if(0===t.length)return;const o=t.reduce((e,t)=>e+t.count,0),n=t.filter(e=>e.count>0).length,r=t.slice().sort((e,t)=>t.count-e.count)[0];return{rows:t,totalCount:o,populatedCount:n,...r?{leader:r}:{}}}(function(e,t,o,n){const r=Ot(e.settledProjection),a=Ot(t?.settledProjection);return Dt(o?.projectionRows,o?.aggregates,e.settledProjectionRows,e.projectionRows,r?.rows,t?.settledProjectionRows,t?.projectionRows,a?.rows,n?.binCounts)}(t,r,n,i)),h=function(e,t){const o=e?.map((e,t)=>{const o=Ot(e);if(!o)return;const n=Ft(o.count)??0,r=Ft(o.total),a={label:(o.label??o.id??"sediment "+(t+1))+"",count:n};return null!=o.id&&(a.id=o.id+""),null!=r&&(a.total=r),a}).filter(e=>null!=e),n=Ht(t?.bins)??o?.length??0,r=Ft(t?.count)??o?.reduce((e,t)=>e+t.count,0)??0,a=Ft(t?.total)??o?.reduce((e,t)=>e+(t.total??0),0),i=o?.slice().sort((e,t)=>t.count-e.count)[0];if(0!==n||0!==r||a)return{bins:n,count:r,...null!=a&&a>0?{total:a}:{},...i?{leader:i}:{}}}(Dt(n?.sediment,r?.sediment,a?.sediment),_t(n?.sedimentTotals,r?.sedimentTotals)),f=d?.length??p?.length??Ht(i?.bodyCount),v=function(e){if(e)return e.filter(e=>!0===Ot(e)?.sleeping).length}(p)??Ht(i?.sleepingCount),w=u?.length,A="string"==typeof a?.simulationState?a.simulationState:void 0,C="boolean"==typeof i?.settled?i.settled:A?"settled"===A:null!=f||null!=v||null!=w?null!=f&&v===f&&0===(w??0):void 0,x=Ot(l?.gravity),j=Ft(x?.x),S=Ft(x?.y),$=Mt({state:A,settled:C,elapsedSeconds:Ft(a?.elapsedSeconds),paused:"boolean"==typeof a?.paused?a.paused:void 0,visible:"boolean"==typeof a?.visible?a.visible:void 0,seed:Ft(l?.seed),gravity:null!=j&&null!=S?{x:j,y:S}:void 0,fixedDt:Ft(s?.fixedDt??l?.fixedDt),timeScale:Ft(s?.timeScale),maxSubsteps:Ht(s?.maxSubsteps),liveBodies:f,sleepingBodies:v,queued:w,bodyLimit:Ft(s?.bodyLimit),eviction:"string"==typeof s?.eviction?s.eviction:void 0}),k=Mt({colliders:y?.length,sensors:Gt(y,s,c),springs:m?.length,activeSensorPairs:b?.length}),P=Object.keys(k).length>0,R=Et.has(e);if(!(Object.keys($).length>0||P||g||h)||!R&&null==o)return;const I={simulation:$,...P?{geometry:k}:{},...g?{aggregates:g}:{},...h?{sediment:h}:{}},N=function(e){const t=[],o=e.simulation,n=[o.state??(o.settled?"settled":void 0),null!=o.liveBodies?`${o.liveBodies} live ${zt(o.liveBodies,"body")}`:void 0,null!=o.sleepingBodies?o.sleepingBodies+" sleeping":void 0,null!=o.queued?o.queued+" queued":void 0,null!=o.seed?"seed "+Wt(o.seed):void 0,o.gravity?`gravity (${Wt(o.gravity.x)}, ${Wt(o.gravity.y)})`:void 0,null!=o.fixedDt?`fixed step ${Wt(o.fixedDt)}s`:void 0,null!=o.timeScale?Wt(o.timeScale)+"x time":void 0].filter(Boolean);n.length>0&&t.push(`Physics simulation: ${n.join("; ")}.`);const r=e.geometry;if(r){const e=[null!=r.colliders?`${r.colliders} ${zt(r.colliders,"collider")}`:void 0,null!=r.sensors?`${r.sensors} ${zt(r.sensors,"sensor")}`:void 0,null!=r.springs?`${r.springs} ${zt(r.springs,"spring")}`:void 0,null!=r.activeSensorPairs?`${r.activeSensorPairs} active sensor ${zt(r.activeSensorPairs,"pair")}`:void 0].filter(Boolean);e.length>0&&t.push(`Physics geometry: ${e.join("; ")}.`)}const a=e.aggregates;if(a){const e=a.leader,o=e?` Largest is ${e.label} with ${Wt(e.count)}.`:"";t.push(`Physics aggregates: ${Wt(a.totalCount)} settled ${zt(a.totalCount,"body")} across ${a.rows.length} ${zt(a.rows.length,"container")}; ${a.populatedCount} populated.${o}`)}const i=e.sediment;if(i){const e=null!=i.total?", value total "+Wt(i.total):"",o=i.leader?`; largest sediment bin is ${i.leader.label} with ${Wt(i.leader.count)}`:"";t.push(`Physics sediment: ${i.count} retained ${zt(i.count,"body")} in ${i.bins} ${zt(i.bins,"bin")}${e}${o}.`)}return t.join(" ")}(I);return{...I,text:N}}(e,t,o.physics),f=[d.text,m?.sentence,h?.text].filter(Boolean).join(" ");return{component:e,description:d,intent:m,structure:g,physics:h,text:f}}var Ut=["BarChart","StackedBarChart","GroupedBarChart","SwarmPlot","BoxPlot","Histogram","ViolinPlot","RidgelinePlot","DotPlot","PieChart","DonutChart","GaugeChart","FunnelChart","SwimlaneChart","LikertChart","LineChart","BumpChart","AreaChart","DifferenceChart","StackedAreaChart","Scatterplot","BubbleChart","Heatmap","QuadrantChart","MultiAxisLineChart","CandlestickChart","ConnectedScatterplot","ScatterplotMatrix","MinimapChart","ForceDirectedGraph","SankeyDiagram","ProcessSankey","ChordDiagram","TreeDiagram","Treemap","CirclePack","OrbitDiagram","ChoroplethMap","ProportionalSymbolMap","FlowMap","DistanceCartogram","RealtimeLineChart","RealtimeHistogram","TemporalHistogram","RealtimeSwarmChart","RealtimeWaterfallChart","RealtimeHeatmap","GaltonBoardChart","EventDropChart","PhysicsPileChart","CollisionSwarmChart","GauntletChart","CrucibleChart","ProcessFlowChart","PhysicalFlowChart","BigNumber"],Vt=new Set(Ut);function Yt(e){return Vt.has(e)}var Kt=new Set(["tooltip","onObservation","xFormat","yFormat","valueFormat","svgAnnotationRules","tooltipContent","onHover","tickFormatTime","tickFormatValue","edgeSort","sortGroups","centerContent","frameProps","controls","oFormat","rFormat","oSort","pieceStyle","summaryStyle","nodeStyle","edgeStyle","customHoverBehavior","customClickBehavior","customDoubleClickBehavior","onBrush","onTopologyChange","backgroundGraphics","foregroundGraphics","legend","recipe","layout"]),Xt=new Set(["data","nodes","edges","points","areas","lines","flows"]);function Jt(e){if(null==e)return e;if("function"==typeof e)return;if("object"!=typeof e)return e;if(e.$$typeof)return;if(Array.isArray(e))return e.map(Jt).filter(e=>void 0!==e);if(e instanceof Date)return e;const t={};for(const[o,n]of Object.entries(e)){if("function"==typeof n)continue;if(n&&"object"==typeof n&&n.$$typeof)continue;const e=Jt(n);void 0!==e&&(t[o]=e)}return t}function Qt(e,t){return!!Xt.has(e)&&("areas"!==e||"string"!=typeof t)}var Zt="function"==typeof structuredClone?structuredClone:e=>JSON.parse(JSON.stringify(e));function eo(e,t,o){const n=Ee(e)??Be(t.recipe)??Be(t.recipeId);if(n)return function(e,t,o){const n=function(e,t,o){const n={};for(const[r,a]of Object.entries(e))if(null!=a&&!Kt.has(r)&&"recipeId"!==r&&(t||!Qt(r,a)))if("function"==typeof a||a?.$$typeof){if(o)throw Error(`Portable recipe prop "${r}" is not JSON-safe.`)}else if(Le(a))n[r]=Zt(a);else if(o)throw Error(`Portable recipe prop "${r}" is not JSON-safe.`);return n}(t,!1!==o?.includeData,"portable"===e.portability),r=e.intents.map(Qe).filter(e=>!!e),a={name:e.name,intents:r,...e.audience?.primary?{audience:[e.audience.primary]}:{},frameFamily:e.frameFamily};if("portable"===e.portability){if(!Le(n))throw Error(`Portable recipe "${e.id}" contains non-JSON-safe props or layoutConfig.`);return{component:"ChartRecipe",recipeId:e.id,portable:!0,props:n,manifest:a,version:"1",createdAt:(new Date).toISOString(),...o?.selections?{selections:o.selections}:{}}}return{component:"ChartRecipe",recipeId:e.id,portable:!1,reason:"Recipe contains or may depend on non-serializable local layout callbacks.",warnings:["This config is inspectable but cannot be rendered remotely by CLI or MCP."],props:n,manifest:a,version:"1",createdAt:(new Date).toISOString(),...o?.selections?{selections:o.selections}:{}}}(n,t,o);if(!Yt(e))throw Error(`Unknown component "${e}". Known components: ${Ut.join(", ")}`);const r=!1!==o?.includeData,a={};for(const[e,o]of Object.entries(t))if(null!=o&&!Kt.has(e)&&(r||!Qt(e,o))&&"function"!=typeof o&&!o?.$$typeof)try{a[e]=Zt(Jt(o))}catch{}return{component:e,props:a,version:"1",createdAt:(new Date).toISOString(),...o?.selections?{selections:o.selections}:{}}}function to(e){if(!e.component||!e.props)throw Error("Invalid chart config: missing component or props");if("ChartRecipe"===e.component||"LocalChartRecipe"===e.component){if(!e.recipeId)throw Error("Invalid chart recipe config: missing recipeId");const t=Ee(e.recipeId);if(!t)throw Error(`Unknown chart recipe "${e.recipeId}". Register it before deserializing this config.`);if("LocalChartRecipe"!==e.component&&!1!==e.portable&&"portable"!==t.portability)throw Error(`Chart recipe "${e.recipeId}" is registered as local, not portable.`);return{componentName:"ChartRecipe",props:{...Zt(e.props),recipeId:e.recipeId}}}if(!Yt(e.component))throw Error(`Unknown component "${e.component}". This config may require a newer version of semiotic.`);return{componentName:e.component,props:Zt(e.props)}}function oo(e){const t=JSON.stringify(e);return"sc="+btoa(unescape(encodeURIComponent(t))).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}function no(e){const t=new URLSearchParams(e.includes("?")?e.split("?")[1]:e).get("sc");if(!t)throw Error("No chart config found in URL (missing 'sc' parameter)");const o=t.replace(/-/g,"+").replace(/_/g,"/"),n=decodeURIComponent(escape(atob(o)));return JSON.parse(n)}async function ro(e,t="json"){const o="jsx"===t?ao(e):JSON.stringify(e,null,2);if("undefined"==typeof navigator||!navigator.clipboard)throw Error("Clipboard API not available. copyConfig requires a browser environment.");await navigator.clipboard.writeText(o)}function ao(e){const{props:t}=e,o=["<"+("LocalChartRecipe"===e.component?"ChartRecipe":e.component)];e.recipeId&&o.push(` recipeId="${e.recipeId}"`);for(const[e,n]of Object.entries(t))if("string"==typeof n)o.push(` ${e}="${n}"`);else if("boolean"==typeof n&&!0===n)o.push(" "+e);else if("boolean"==typeof n&&!1===n)o.push(` ${e}={false}`);else if("number"==typeof n)o.push(` ${e}={${n}}`);else{const t=JSON.stringify(n);o.push(80>t.length?` ${e}={${t}}`:` ${e}={${JSON.stringify(n,null,2)}}`)}return o.push("/>"),o.join("\n")}export{g as validateProps,ee as contrastRatio,v as profileNumericFields,w as formatDataAudit,C as toDataAuditNotifications,Q as auditData,Re as diagnoseConfig,De as auditAccessibility,Me as accessibilityCaveats,Ge as formatAccessibilityAudit,Qe as recipeIntentId,Ze as recipeConfig,ot as fieldForRole,gt as communicativeActForIntent,ht as resolveCommunicativeAct,kt as describeChart,Nt as buildNavigationTree,Lt as flattenVisible,Tt as countNodes,qt as buildReaderGrounding,eo as toConfig,to as fromConfig,oo as toURL,no as fromURL,ro as copyConfig,ao as configToJSX};
|