@opendata-ai/openchart-vue 9.7.0 → 9.7.1

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/dist/index.js CHANGED
@@ -384,12 +384,8 @@ var Chart = /* @__PURE__ */ defineComponent2({
384
384
  );
385
385
  watch2([() => props.reader, () => props.readerSelection], () => syncReader(), { deep: false });
386
386
  watch2(
387
- [
388
- () => props.theme,
389
- () => props.darkMode,
390
- () => contextTheme?.value,
391
- () => contextDarkMode?.value
392
- ],
387
+ // Structural, so an inline theme object that is re-created each render does not re-apply.
388
+ [() => JSON.stringify(resolveTheme()), () => resolveDarkMode()],
393
389
  () => instance?.setTheme({ theme: resolveTheme(), darkMode: resolveDarkMode() })
394
390
  );
395
391
  watch2(
@@ -920,12 +916,8 @@ var DataTable = /* @__PURE__ */ defineComponent4({
920
916
  }
921
917
  );
922
918
  watch7(
923
- [
924
- () => props.theme,
925
- () => props.darkMode,
926
- () => contextTheme?.value,
927
- () => contextDarkMode?.value
928
- ],
919
+ // Structural, so an inline theme object that is re-created each render does not re-apply.
920
+ [() => JSON.stringify(resolveTheme()), () => resolveDarkMode()],
929
921
  () => {
930
922
  instance?.setTheme({ theme: resolveTheme(), darkMode: resolveDarkMode() });
931
923
  }
@@ -1075,12 +1067,8 @@ var GeoMap = /* @__PURE__ */ defineComponent5({
1075
1067
  );
1076
1068
  watch8([() => props.reader, () => props.readerSelection], () => syncReader(), { deep: false });
1077
1069
  watch8(
1078
- [
1079
- () => props.theme,
1080
- () => props.darkMode,
1081
- () => contextTheme?.value,
1082
- () => contextDarkMode?.value
1083
- ],
1070
+ // Structural, so an inline theme object that is re-created each render does not re-apply.
1071
+ [() => JSON.stringify(resolveTheme()), () => resolveDarkMode()],
1084
1072
  () => {
1085
1073
  instance?.setTheme({ theme: resolveTheme(), darkMode: resolveDarkMode() });
1086
1074
  }
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts","../src/BarList.ts","../src/context.ts","../src/Chart.ts","../src/ChartStory.ts","../src/composables/useChart.ts","../src/composables/useDarkMode.ts","../src/composables/useGraph.ts","../src/composables/useTable.ts","../src/composables/useTableState.ts","../src/DataTable.ts","../src/GeoMap.ts","../src/Graph.ts","../src/Race.ts","../src/Sankey.ts","../src/ThemeProvider.ts","../src/TileMap.ts","../src/Visualization.ts"],"sourcesContent":["/**\n * @opendata-ai/openchart-vue\n *\n * Vue 3 adapter for openchart. Provides <Chart />, <DataTable />, <Graph />,\n * and <VizThemeProvider /> components that wrap the vanilla adapter with\n * Vue lifecycle management.\n *\n * Re-exports the full core type system and utilities so Vue consumers\n * only need a single @opendata-ai/openchart-vue dependency.\n */\n\n// ---------------------------------------------------------------------------\n// Core: full type system, theme, colors, locale, accessibility, helpers\n// ---------------------------------------------------------------------------\n\nexport * from '@opendata-ai/openchart-core';\n\n// ---------------------------------------------------------------------------\n// Vanilla: export utilities (SVG/PNG/JPG/CSV)\n// ---------------------------------------------------------------------------\n\nexport type {\n GeoMapCameraChangeMeta,\n InteractionMode,\n JPGExportOptions,\n PlaybackController,\n PlaybackPeriod,\n PlaybackState,\n PNGExportOptions,\n SpecSequenceOptions,\n SVGExportOptions,\n} from '@opendata-ai/openchart-vanilla';\nexport {\n exportCSV,\n exportJPG,\n exportPNG,\n exportSpecSequence,\n exportSVG,\n exportSVGWithFonts,\n} from '@opendata-ai/openchart-vanilla';\n\n// ---------------------------------------------------------------------------\n// Engine: compile API and types not covered by core\n// ---------------------------------------------------------------------------\n\nexport type {\n ChartRenderer,\n CompiledGraphEdge,\n CompiledGraphNode,\n CompileResult,\n GraphCompilation,\n NormalizedBarListSpec,\n NormalizedChartSpec,\n NormalizedChrome,\n NormalizedGeoMapSpec,\n NormalizedGraphSpec,\n NormalizedSankeySpec,\n NormalizedSpec,\n NormalizedTableSpec,\n NormalizedTileMapSpec,\n SimulationConfig,\n ValidationError,\n ValidationErrorCode,\n ValidationResult,\n} from '@opendata-ai/openchart-engine';\nexport {\n clearRenderers,\n compile,\n compileBarList,\n compileChart,\n compileGeoMap,\n compileGraph,\n compileSankey,\n compileTable,\n compileTileMap,\n getChartRenderer,\n normalizeSpec,\n registerChartRenderer,\n validateSpec,\n} from '@opendata-ai/openchart-engine';\nexport type { BarListProps, BarListRowEvent } from './BarList';\nexport { BarList } from './BarList';\n// Components\nexport type { ChartProps } from './Chart';\nexport { Chart } from './Chart';\nexport type { ChartStoryProps } from './ChartStory';\n// Scrollytelling\nexport { ChartStory } from './ChartStory';\n// Composables\nexport type { UseChartOptions, UseChartReturn } from './composables/useChart';\nexport { useChart } from './composables/useChart';\nexport { useDarkMode } from './composables/useDarkMode';\nexport type { GraphHandle, UseGraphReturn } from './composables/useGraph';\nexport { useGraph } from './composables/useGraph';\nexport type { UseTableReturn } from './composables/useTable';\nexport { useTable } from './composables/useTable';\nexport type { UseTableStateOptions, UseTableStateReturn } from './composables/useTableState';\nexport { useTableState } from './composables/useTableState';\n// Context (injection keys and composables)\nexport { useVizDarkMode, useVizTheme, VizDarkModeKey, VizThemeKey } from './context';\nexport type { DataTableProps } from './DataTable';\nexport { DataTable } from './DataTable';\nexport type { GeoMapProps } from './GeoMap';\nexport { GeoMap } from './GeoMap';\nexport type { GraphProps } from './Graph';\nexport { Graph } from './Graph';\nexport type { RaceProps } from './Race';\nexport { Race } from './Race';\nexport type { SankeyProps } from './Sankey';\nexport { Sankey } from './Sankey';\nexport type { VizThemeProviderProps } from './ThemeProvider';\nexport { VizThemeProvider } from './ThemeProvider';\nexport type { TileMapProps } from './TileMap';\nexport { TileMap } from './TileMap';\nexport type { VisualizationProps } from './Visualization';\nexport { Visualization } from './Visualization';\n","/**\n * Vue BarList component: thin wrapper around the vanilla adapter.\n */\n\nimport type { BarListSpec, DarkMode, ThemeConfig } from '@opendata-ai/openchart-core';\nimport { mergeThemeConfig } from '@opendata-ai/openchart-core';\nimport {\n type BarListInstance,\n type BarListMountOptions,\n createBarList,\n} from '@opendata-ai/openchart-vanilla';\nimport {\n type CSSProperties,\n defineComponent,\n h,\n inject,\n onMounted,\n onUnmounted,\n type PropType,\n ref,\n watch,\n} from 'vue';\nimport { VizDarkModeKey, VizThemeKey } from './context';\n\nexport interface BarListRowEvent {\n label: string;\n value: number;\n data: Record<string, unknown>;\n}\n\nexport interface BarListProps {\n spec: BarListSpec;\n theme?: ThemeConfig;\n darkMode?: DarkMode;\n class?: string;\n style?: string | CSSProperties;\n}\n\nexport const BarList = /* @__PURE__ */ defineComponent({\n name: 'BarList',\n props: {\n spec: {\n type: Object as PropType<BarListSpec>,\n required: true,\n },\n theme: {\n type: Object as PropType<ThemeConfig>,\n default: undefined,\n },\n darkMode: {\n type: String as PropType<DarkMode>,\n default: undefined,\n },\n class: {\n type: String,\n default: undefined,\n },\n style: {\n type: [String, Object] as PropType<string | CSSProperties>,\n default: undefined,\n },\n },\n emits: {\n 'row-click': (_row: BarListRowEvent) => true,\n 'row-hover': (_row: BarListRowEvent | null) => true,\n },\n setup(props, { emit, expose }) {\n const containerRef = ref<HTMLDivElement | null>(null);\n let instance: BarListInstance | null = null;\n let prevSpec = '';\n\n const contextTheme = inject(VizThemeKey, undefined);\n const contextDarkMode = inject(VizDarkModeKey, undefined);\n\n function resolveTheme(): ThemeConfig | undefined {\n return mergeThemeConfig(contextTheme?.value, props.theme);\n }\n\n function resolveDarkMode(): DarkMode | undefined {\n return props.darkMode ?? contextDarkMode?.value;\n }\n\n function mountBarList() {\n const container = containerRef.value;\n if (!container) return;\n\n const options: BarListMountOptions = {\n theme: resolveTheme(),\n darkMode: resolveDarkMode(),\n onRowClick: (row: BarListRowEvent) => emit('row-click', row),\n onRowHover: (row: BarListRowEvent | null) => emit('row-hover', row),\n autoResize: true,\n };\n\n instance = createBarList(container, props.spec, options);\n prevSpec = JSON.stringify(props.spec);\n }\n\n function destroyBarList() {\n instance?.destroy();\n instance = null;\n prevSpec = '';\n }\n\n expose({\n get instance() {\n return instance;\n },\n });\n\n onMounted(() => {\n mountBarList();\n });\n\n onUnmounted(() => {\n destroyBarList();\n });\n\n watch(\n () => JSON.stringify(props.spec),\n (newVal) => {\n if (!instance) return;\n if (newVal !== prevSpec) {\n prevSpec = newVal;\n instance.update(props.spec);\n }\n },\n );\n\n watch(\n [\n () => props.theme,\n () => props.darkMode,\n () => contextTheme?.value,\n () => contextDarkMode?.value,\n ],\n () => {\n if (!containerRef.value) return;\n destroyBarList();\n mountBarList();\n },\n );\n\n const rootClass = () => {\n const base = 'oc-barlist-root';\n return props.class ? `${base} ${props.class}` : base;\n };\n\n return () =>\n h('div', {\n ref: containerRef,\n class: rootClass(),\n style: props.style,\n });\n },\n});\n","/**\n * Theme injection context for Vue.\n *\n * Provides typed injection keys and composables for accessing theme\n * and dark mode from any descendant component within a VizThemeProvider.\n */\n\nimport type { DarkMode, ThemeConfig } from '@opendata-ai/openchart-core';\nimport { type ComputedRef, computed, type InjectionKey, inject, type Ref } from 'vue';\n\n/** Injection key for the theme config ref. */\nexport const VizThemeKey: InjectionKey<Ref<ThemeConfig | undefined>> =\n /* @__PURE__ */ Symbol('VizTheme');\n\n/** Injection key for the dark mode ref. */\nexport const VizDarkModeKey: InjectionKey<Ref<DarkMode | undefined>> =\n /* @__PURE__ */ Symbol('VizDarkMode');\n\n/**\n * Read the current theme from the nearest VizThemeProvider.\n * Returns a computed ref that stays reactive to provider changes.\n */\nexport function useVizTheme(): ComputedRef<ThemeConfig | undefined> {\n const theme = inject(VizThemeKey, undefined);\n return computed(() => theme?.value);\n}\n\n/**\n * Read the current dark mode preference from the nearest VizThemeProvider.\n * Returns a computed ref that stays reactive to provider changes.\n */\nexport function useVizDarkMode(): ComputedRef<DarkMode | undefined> {\n const darkMode = inject(VizDarkModeKey, undefined);\n return computed(() => darkMode?.value);\n}\n","/**\n * Vue Chart component: thin wrapper around the vanilla adapter.\n *\n * Mounts a chart instance on render, updates when spec changes,\n * and cleans up on unmount. All heavy lifting is done by the vanilla\n * createChart() function.\n */\n\nimport type {\n Annotation,\n AnnotationPlacementTool,\n ChartSpec,\n DarkMode,\n EditTransaction,\n ElementRef,\n LayerSpec,\n MarkEvent,\n MarkFocusEvent,\n ReaderChangeMeta,\n ThemeConfig,\n} from '@opendata-ai/openchart-core';\nimport { mergeThemeConfig } from '@opendata-ai/openchart-core';\nimport {\n type ChartInstance,\n type ChartReaderSelection,\n createChart,\n createChartReaderBinding,\n type InteractionMode,\n type MountOptions,\n type ReaderPresentationOptions,\n resolveInteractionMode,\n} from '@opendata-ai/openchart-vanilla';\nimport {\n type CSSProperties,\n defineComponent,\n h,\n inject,\n onMounted,\n onUnmounted,\n type PropType,\n ref,\n watch,\n} from 'vue';\nimport { VizDarkModeKey, VizThemeKey } from './context';\n\nexport interface ChartProps {\n reader?: false | ReaderPresentationOptions;\n readerSelection?: ChartReaderSelection;\n /** The chart spec. Graph specs render through `<Graph />` or `<Visualization />`. */\n spec: ChartSpec | LayerSpec;\n theme?: ThemeConfig;\n darkMode?: DarkMode;\n /** Rendering backend for point marks; see the vanilla `MountOptions.renderer`. */\n renderer?: 'auto' | 'svg' | 'canvas';\n /** Quiet row inspection for simple horizontal bars. */\n rowHover?: boolean;\n autoResize?: boolean;\n revision?: string | number;\n /** Interaction mode; inferred from listeners when omitted. Changes switch modes in place. */\n interaction?: InteractionMode;\n /** Selection outline color. Changing it recreates the chart. */\n selectionColor?: string;\n /** Reports engine changes to the armed placement tool. */\n onPlacementToolChange?: (tool: AnnotationPlacementTool | null) => void;\n onEdit?: (tx: EditTransaction) => void;\n onSelect?: (element: ElementRef) => void;\n onDeselect?: (element: ElementRef) => void;\n class?: string;\n style?: string | CSSProperties;\n}\n\nexport const Chart = /* @__PURE__ */ defineComponent({\n name: 'Chart',\n props: {\n reader: {\n type: [Boolean, Object] as PropType<false | ReaderPresentationOptions>,\n default: undefined,\n },\n readerSelection: { type: Object as PropType<ChartReaderSelection>, default: undefined },\n spec: {\n type: Object as PropType<ChartSpec | LayerSpec>,\n required: true,\n },\n theme: {\n type: Object as PropType<ThemeConfig>,\n default: undefined,\n },\n darkMode: {\n type: String as PropType<DarkMode>,\n default: undefined,\n },\n renderer: {\n type: String as PropType<'auto' | 'svg' | 'canvas'>,\n default: undefined,\n },\n // Declared listener props make presence reactive. Vue excludes declared\n // emits listeners from update checks, which would leave the inferred\n // interaction mode stale when a parent adds or removes a listener.\n // `@edit`, `@select`, and `@deselect` bind to these props.\n onEdit: {\n type: Function as PropType<(tx: EditTransaction) => void>,\n default: undefined,\n },\n onSelect: {\n type: Function as PropType<(element: ElementRef) => void>,\n default: undefined,\n },\n onDeselect: {\n type: Function as PropType<(element: ElementRef) => void>,\n default: undefined,\n },\n rowHover: { type: Boolean, default: undefined },\n autoResize: { type: Boolean, default: undefined },\n revision: { type: [String, Number] as PropType<string | number>, default: undefined },\n class: {\n type: String,\n default: undefined,\n },\n style: {\n type: [String, Object] as PropType<string | CSSProperties>,\n default: undefined,\n },\n selectedElement: {\n type: Object as PropType<ElementRef>,\n default: undefined,\n },\n highlight: {\n type: [Array, null] as unknown as PropType<string[] | null>,\n default: undefined,\n },\n interaction: {\n type: String as PropType<InteractionMode>,\n default: undefined,\n },\n selectionColor: { type: String, default: undefined },\n },\n emits: {\n 'reader-change': (_selection: ChartReaderSelection, _meta: ReaderChangeMeta) => true,\n 'mark-click': (_event: MarkEvent) => true,\n 'mark-hover': (_event: MarkEvent) => true,\n 'mark-focus': (_event: MarkFocusEvent) => true,\n 'mark-leave': () => true,\n 'legend-toggle': (_series: string, _visible: boolean) => true,\n 'annotation-click': (_annotation: Annotation, _event: MouseEvent, _element: ElementRef) => true,\n 'highlight-change': (_values: string[]) => true,\n reveal: (_guess: Array<{ x: string | number; y: number }>) => true,\n 'placement-tool-change': (_tool: AnnotationPlacementTool | null) => true,\n },\n setup(props, { emit, expose }) {\n const containerRef = ref<HTMLDivElement | null>(null);\n let instance: ChartInstance | null = null;\n let prevSpec = '';\n const readerBinding = createChartReaderBinding();\n function syncReader() {\n if (containerRef.value && instance)\n readerBinding.sync(\n containerRef.value,\n instance,\n props.spec,\n props.reader,\n props.readerSelection,\n (state, meta) => emit('reader-change', state, meta),\n );\n }\n\n // Inject theme/darkMode from provider as fallbacks\n const contextTheme = inject(VizThemeKey, undefined);\n const contextDarkMode = inject(VizDarkModeKey, undefined);\n\n function resolveTheme(): ThemeConfig | undefined {\n return mergeThemeConfig(contextTheme?.value, props.theme);\n }\n\n function resolveDarkMode(): DarkMode | undefined {\n return props.darkMode ?? contextDarkMode?.value;\n }\n\n function mountChart() {\n const container = containerRef.value;\n if (!container) return;\n\n const options: MountOptions = {\n theme: resolveTheme(),\n darkMode: resolveDarkMode(),\n renderer: props.renderer,\n selectionColor: props.selectionColor,\n onMarkClick: (event: MarkEvent) => emit('mark-click', event),\n onMarkHover: (event: MarkEvent) => emit('mark-hover', event),\n onMarkFocus: (event: MarkFocusEvent) => emit('mark-focus', event),\n onMarkLeave: () => emit('mark-leave'),\n onLegendToggle: (series: string, visible: boolean) =>\n emit('legend-toggle', series, visible),\n onAnnotationClick: (annotation: Annotation, event: MouseEvent, element: ElementRef) =>\n emit('annotation-click', annotation, event, element),\n onHighlightChange: (values: string[]) => emit('highlight-change', values),\n onReveal: (guess) => emit('reveal', guess),\n onSelect: (element: ElementRef) => props.onSelect?.(element),\n onDeselect: (element: ElementRef) => props.onDeselect?.(element),\n onPlacementToolChange: (tool) => emit('placement-tool-change', tool),\n interaction: resolveInteractionMode(props),\n ...(props.selectedElement ? { selectedElement: props.selectedElement } : {}),\n rowHover: props.rowHover,\n autoResize: props.autoResize,\n revision: props.revision,\n onEdit: (tx: EditTransaction) => props.onEdit?.(tx),\n };\n\n instance = createChart(container, props.spec, options);\n prevSpec = JSON.stringify(props.spec);\n syncReader();\n if (props.highlight !== undefined) {\n instance.setHighlight(props.highlight ?? null);\n }\n }\n\n function destroyChart() {\n readerBinding.detach();\n instance?.destroy();\n instance = null;\n prevSpec = '';\n }\n\n // Expose imperative methods for parent ref access\n expose({\n getSelectedElement(): ElementRef | null {\n return instance?.getSelectedElement() ?? null;\n },\n select(elementRef: ElementRef): void {\n instance?.select(elementRef);\n },\n deselect(): void {\n instance?.deselect();\n },\n get instance() {\n return instance;\n },\n });\n\n onMounted(() => {\n mountChart();\n watch(\n [() => resolveInteractionMode(props), () => Boolean(props.onEdit)],\n ([mode, hasEditListener]) => {\n if (mode === 'edit' && !hasEditListener) {\n console.warn(\n \"[openchart] interaction: 'edit' was set without an onEdit handler; edit gestures will run but their transactions have no sink.\",\n );\n }\n },\n { immediate: true },\n );\n });\n\n onUnmounted(() => {\n destroyChart();\n });\n\n // Watch spec and revision together so an undo that changes both updates once\n watch(\n () => [JSON.stringify(props.spec), props.revision] as const,\n ([newSpec, newRevision], [, oldRevision]) => {\n if (!instance) return;\n if (newSpec !== prevSpec || newRevision !== oldRevision) {\n prevSpec = newSpec;\n instance.update(props.spec, {\n selectedElement: props.selectedElement,\n revision: props.revision,\n });\n syncReader();\n }\n },\n );\n\n watch(\n () => resolveInteractionMode(props),\n (mode) => {\n if (instance && instance.getInteraction() !== mode) instance.setInteraction(mode);\n },\n );\n\n // Reapply controlled selection after a mode switch; keep uncontrolled selection.\n watch(\n [() => props.selectedElement, () => resolveInteractionMode(props)],\n ([newVal], [oldVal]) => {\n if (!instance) return;\n if (newVal) {\n instance.select(newVal);\n } else if (oldVal) {\n instance.deselect();\n }\n },\n );\n\n // Watch highlight prop changes\n watch(\n () => props.highlight,\n (newVal) => {\n if (!instance) return;\n instance.setHighlight(newVal ?? null);\n },\n );\n\n watch([() => props.reader, () => props.readerSelection], () => syncReader(), { deep: false });\n\n watch(\n [\n () => props.theme,\n () => props.darkMode,\n () => contextTheme?.value,\n () => contextDarkMode?.value,\n ],\n () => instance?.setTheme({ theme: resolveTheme(), darkMode: resolveDarkMode() }),\n );\n\n // Recreate chart when mount options change.\n watch(\n [\n () => props.rowHover,\n () => props.autoResize,\n () => props.renderer,\n () => props.selectionColor,\n ],\n () => {\n if (!containerRef.value) return;\n destroyChart();\n mountChart();\n },\n );\n\n const rootClass = () => {\n const base = 'oc-chart-root';\n return props.class ? `${base} ${props.class}` : base;\n };\n\n return () =>\n h('div', {\n ref: containerRef,\n class: rootClass(),\n style: props.style,\n });\n },\n});\n","/**\n * Vue scrollytelling shell around the vanilla `createChartStory`.\n *\n * Mirrors the React `<ChartStory>`: a sticky chart panel plus a scrolling\n * narrative column whose blocks advance the story. The vanilla driver owns\n * cumulative patch application, mark morphing, crossfade, and camera; this\n * component owns only Vue lifecycle and the sticky layout.\n *\n * Narrative is provided as the default slot's children (one root node per\n * step) or via the `narrative` prop (an array of vnodes/strings). Pass `step`\n * to drive it externally; omit for self-driving scroll.\n */\n\nimport type { ChartSpec, GeoMapSpec, LayerSpec } from '@opendata-ai/openchart-core';\nimport type { MountOptions } from '@opendata-ai/openchart-vanilla';\nimport {\n type ChartStoryInstance,\n type ChartStoryOptions,\n createChartStory,\n} from '@opendata-ai/openchart-vanilla/story';\nimport {\n type CSSProperties,\n defineComponent,\n h,\n onMounted,\n onUnmounted,\n type PropType,\n ref,\n type VNode,\n watch,\n} from 'vue';\n\nexport interface ChartStoryProps {\n spec: ChartSpec | LayerSpec | GeoMapSpec;\n steps: ChartStoryOptions['steps'];\n narrative?: VNode[];\n step?: number;\n triggerPosition?: number;\n cameraMode?: 'step' | 'scrub';\n mountOptions?: MountOptions;\n}\n\nconst sectionStyle: CSSProperties = {\n position: 'relative',\n display: 'grid',\n gridTemplateColumns: 'minmax(0, 26rem) minmax(0, 1fr)',\n gap: '3rem',\n alignItems: 'start',\n};\n\nconst stepStyle: CSSProperties = {\n minHeight: '80vh',\n display: 'flex',\n alignItems: 'center',\n};\n\nconst panelStyle: CSSProperties = {\n position: 'sticky',\n top: '2rem',\n height: 'calc(100vh - 4rem)',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n};\n\nexport const ChartStory = /* @__PURE__ */ defineComponent({\n name: 'ChartStory',\n props: {\n spec: {\n type: Object as PropType<ChartSpec | LayerSpec | GeoMapSpec>,\n required: true,\n },\n steps: {\n type: Array as PropType<ChartStoryOptions['steps']>,\n required: true,\n },\n narrative: {\n type: Array as PropType<VNode[]>,\n default: undefined,\n },\n step: {\n type: Number,\n default: undefined,\n },\n triggerPosition: {\n type: Number,\n default: undefined,\n },\n cameraMode: {\n type: String as PropType<'step' | 'scrub'>,\n default: undefined,\n },\n mountOptions: {\n type: Object as PropType<MountOptions>,\n default: undefined,\n },\n },\n setup(props, { slots, expose }) {\n const sectionRef = ref<HTMLElement | null>(null);\n const mountRef = ref<HTMLDivElement | null>(null);\n const stepEls = ref<Array<HTMLElement | null>>([]);\n let story: ChartStoryInstance | null = null;\n\n onMounted(() => {\n const mount = mountRef.value;\n if (!mount) return;\n\n const blocks = props.narrative ?? [];\n if (blocks.length > 0 && blocks.length !== props.steps.length) {\n console.warn(\n `[openchart] ChartStory: narrative length (${blocks.length}) does not match steps length (${props.steps.length}). Each step should have a corresponding narrative element.`,\n );\n }\n\n story = createChartStory(\n mount,\n {\n spec: props.spec,\n steps: props.steps,\n triggerPosition: props.triggerPosition,\n cameraMode: props.cameraMode,\n },\n props.mountOptions,\n );\n if (sectionRef.value) story.setContainer(sectionRef.value);\n stepEls.value.forEach((el, i) => {\n if (el) story?.registerStep(i, el);\n });\n if (props.step !== undefined) story.goTo(props.step);\n });\n\n watch(\n () => props.step,\n (next) => {\n if (next !== undefined) story?.goTo(next);\n },\n );\n\n onUnmounted(() => {\n story?.destroy();\n story = null;\n });\n\n expose({\n goTo(index: number) {\n story?.goTo(index);\n },\n get instance() {\n return story;\n },\n });\n\n return () => {\n // Prefer the `narrative` prop; fall back to default slot children so\n // consumers can author steps as template markup.\n const blocks = props.narrative ?? slots.default?.() ?? [];\n return h('section', { ref: sectionRef, style: sectionStyle }, [\n h(\n 'div',\n { style: { position: 'relative' } },\n blocks.map((content, i) =>\n h(\n 'div',\n {\n // Steps are a fixed ordered list, so the index is the stable\n // identity. Do not reorder or splice narrative entries at runtime\n // (that would remap step refs to the wrong content); rebuild the\n // whole story instead.\n key: i,\n ref: (el: unknown) => {\n stepEls.value[i] = el as HTMLElement | null;\n },\n 'data-oc-story-step': i,\n style: stepStyle,\n },\n [h('div', { style: { maxWidth: '36rem' } }, [content])],\n ),\n ),\n ),\n h('div', { style: panelStyle }, [h('div', { ref: mountRef, style: { width: '100%' } })]),\n ]);\n };\n },\n});\n","/**\n * useChart: composable for manual chart lifecycle control.\n *\n * Provides a template ref to attach to a container div. The chart\n * mounts automatically and updates when the spec changes.\n */\n\nimport type {\n ChartLayout,\n ChartSpec,\n DarkMode,\n LayerSpec,\n ThemeConfig,\n} from '@opendata-ai/openchart-core';\nimport { type ChartInstance, createChart, type MountOptions } from '@opendata-ai/openchart-vanilla';\nimport { onMounted, onUnmounted, type Ref, ref, type ShallowRef, shallowRef, watch } from 'vue';\n\nexport interface UseChartOptions {\n /** Theme overrides. */\n theme?: ThemeConfig;\n /** Dark mode setting. */\n darkMode?: DarkMode;\n /** Observe container resizes. Defaults to true. */\n autoResize?: boolean;\n /** Rendering backend for point marks; see the vanilla `MountOptions.renderer`. */\n renderer?: MountOptions['renderer'];\n}\n\nexport interface UseChartReturn {\n /** Template ref to attach to the container div. */\n containerRef: Ref<HTMLDivElement | null>;\n /** The chart instance (null until mounted). */\n chart: ShallowRef<ChartInstance | null>;\n /** The current compiled layout (null until mounted). */\n layout: ShallowRef<ChartLayout | null>;\n}\n\n/**\n * Composable for manual chart lifecycle control.\n *\n * Attach the returned containerRef to a container div via `ref=\"containerRef\"`.\n * The chart mounts automatically and updates when the spec changes.\n */\nexport function useChart(\n spec: Ref<ChartSpec | LayerSpec>,\n options?: UseChartOptions,\n): UseChartReturn {\n const containerRef = ref<HTMLDivElement | null>(null);\n const chart = shallowRef<ChartInstance | null>(null);\n const layout = shallowRef<ChartLayout | null>(null);\n\n function mount() {\n const container = containerRef.value;\n if (!container) return;\n\n const mountOpts: MountOptions = {\n theme: options?.theme,\n darkMode: options?.darkMode,\n autoResize: options?.autoResize,\n renderer: options?.renderer,\n };\n\n const instance = createChart(container, spec.value, mountOpts);\n chart.value = instance;\n layout.value = instance.layout;\n }\n\n function destroy() {\n chart.value?.destroy();\n chart.value = null;\n layout.value = null;\n }\n\n onMounted(() => {\n mount();\n });\n\n onUnmounted(() => {\n destroy();\n });\n\n // Update on spec change\n watch(spec, (newSpec) => {\n const instance = chart.value;\n if (!instance) return;\n instance.update(newSpec);\n layout.value = instance.layout;\n });\n\n return {\n containerRef,\n chart,\n layout,\n };\n}\n","/**\n * useDarkMode: composable that resolves a DarkMode preference to a boolean.\n *\n * - \"force\" -> true\n * - \"off\" -> false\n * - \"auto\" -> matches system preference (reactive to changes)\n */\n\nimport type { DarkMode } from '@opendata-ai/openchart-core';\nimport { onUnmounted, type Ref, ref, watch } from 'vue';\n\n/**\n * Resolve a DarkMode preference to a reactive boolean.\n *\n * For \"auto\" mode, watches the system `prefers-color-scheme` media query\n * and updates reactively when the user changes their OS theme.\n */\nexport function useDarkMode(mode: Ref<DarkMode | undefined>): Ref<boolean> {\n const isDark = ref(resolveInitial(mode.value));\n let cleanup: (() => void) | null = null;\n\n function setup(currentMode: DarkMode | undefined) {\n // Clean up previous listener\n cleanup?.();\n cleanup = null;\n\n if (currentMode !== 'auto') {\n isDark.value = currentMode === 'force';\n return;\n }\n\n if (typeof window === 'undefined' || !window.matchMedia) {\n isDark.value = false;\n return;\n }\n\n const mq = window.matchMedia('(prefers-color-scheme: dark)');\n isDark.value = mq.matches;\n\n const handler = (e: MediaQueryListEvent) => {\n isDark.value = e.matches;\n };\n mq.addEventListener('change', handler);\n cleanup = () => mq.removeEventListener('change', handler);\n }\n\n // Run setup for initial value\n setup(mode.value);\n\n // React to mode changes\n watch(mode, (newMode) => {\n setup(newMode);\n });\n\n onUnmounted(() => {\n cleanup?.();\n cleanup = null;\n });\n\n return isDark;\n}\n\nfunction resolveInitial(mode?: DarkMode): boolean {\n if (mode === 'force') return true;\n if (mode === 'off' || mode === undefined) return false;\n // \"auto\"\n if (typeof window !== 'undefined' && window.matchMedia) {\n return window.matchMedia('(prefers-color-scheme: dark)').matches;\n }\n return false;\n}\n","/**\n * useGraph: composable for imperative graph control.\n *\n * Provides a template ref to pass to <Graph /> and exposes graph methods\n * (search, zoom, select, fly, highlight) for programmatic control of the\n * graph instance. The full vanilla GraphInstance API is threaded through.\n */\n\nimport type { GraphSpec } from '@opendata-ai/openchart-core';\nimport type {\n CameraFlightOptions,\n GraphCamera,\n GraphFlyTarget,\n GraphHighlightTarget,\n GraphInstance,\n GraphLegendData,\n} from '@opendata-ai/openchart-vanilla';\nimport { type Ref, ref } from 'vue';\n\n// Re-exported rather than redeclared so the 3D pose fields (`position`,\n// `target`) stay visible to typed consumers of the Vue wrapper.\nexport type { GraphCamera, GraphFlyTarget } from '@opendata-ai/openchart-vanilla';\n\n/** Handle exposed by Graph component via expose(). */\nexport interface GraphHandle {\n search: (query: string) => void;\n clearSearch: () => void;\n getSearchMatches: () => string[];\n zoomToFit: (opts?: CameraFlightOptions & { padding?: number }) => void;\n zoomToNode: (nodeId: string, opts?: CameraFlightOptions & { scale?: number }) => void;\n flyTo: (target: GraphFlyTarget, opts?: CameraFlightOptions) => void;\n centerAt: (x: number, y: number, opts?: CameraFlightOptions) => void;\n getCamera: () => GraphCamera;\n selectNode: (nodeId: string, opts?: { fly?: boolean } & CameraFlightOptions) => void;\n getSelectedNodes: () => string[];\n highlight: (target: GraphHighlightTarget, opts?: { dimOpacity?: number }) => void;\n clearHighlight: () => void;\n getHighlight: () => string[] | null;\n getLegend: () => GraphLegendData | null;\n setActiveCategories: (values: string[]) => void;\n getActiveCategories: () => string[];\n /** Update graph data, encoding, or presentation through the unified update path. */\n update: (spec: GraphSpec) => void;\n /** The underlying GraphInstance from the vanilla adapter. */\n instance: GraphInstance | null;\n}\n\nexport interface UseGraphReturn {\n /** Template ref to pass to <Graph ref={graphRef} />. */\n graphRef: Ref<GraphHandle | null>;\n /** Search for nodes matching a query string. */\n search: (query: string) => void;\n /** Clear the current search. */\n clearSearch: () => void;\n /** Node ids currently matching the active search query. */\n getSearchMatches: () => string[];\n /** Zoom to fit all nodes in view. Animated by default; `{ duration: 0 }` snaps. */\n zoomToFit: (opts?: CameraFlightOptions & { padding?: number }) => void;\n /** Fly to a node and zoom in (default scale 2). */\n zoomToNode: (nodeId: string, opts?: CameraFlightOptions & { scale?: number }) => void;\n /** Fly the camera to a graph-space target. */\n flyTo: (target: GraphFlyTarget, opts?: CameraFlightOptions) => void;\n /** Center the camera on a graph-space point (keeps current zoom). */\n centerAt: (x: number, y: number, opts?: CameraFlightOptions) => void;\n /** Current camera transform. */\n getCamera: () => GraphCamera;\n /** Select a node by id; `{ fly: true }` also flies to it. */\n selectNode: (nodeId: string, opts?: { fly?: boolean } & CameraFlightOptions) => void;\n /** Get the currently selected node ids. */\n getSelectedNodes: () => string[];\n /**\n * Emphasize a set of nodes; eased via the focus model. Layers over the\n * standing category filter rather than replacing it.\n */\n highlight: (target: GraphHighlightTarget, opts?: { dimOpacity?: number }) => void;\n /**\n * Clear the transient highlight, returning to the standing category filter.\n * Does NOT clear that filter — use `setActiveCategories([])`.\n */\n clearHighlight: () => void;\n /** The effective highlighted node ids, or null when nothing is highlighted. */\n getHighlight: () => string[] | null;\n /** Headless snapshot of the legend. */\n getLegend: () => GraphLegendData | null;\n /** Set the active category filter declaratively (replaces legend toggle state). */\n setActiveCategories: (values: string[]) => void;\n /** Current active category values (empty = all active, no filter). */\n getActiveCategories: () => string[];\n}\n\n/**\n * Composable for imperative graph control.\n *\n * Usage:\n * ```vue\n * <script setup>\n * const { graphRef, search, zoomToFit } = useGraph();\n * </script>\n * <template>\n * <Graph ref=\"graphRef\" :spec=\"spec\" />\n * </template>\n * ```\n */\nexport function useGraph(): UseGraphReturn {\n const graphRef = ref<GraphHandle | null>(null);\n\n function search(query: string) {\n graphRef.value?.search(query);\n }\n\n function clearSearch() {\n graphRef.value?.clearSearch();\n }\n\n function getSearchMatches(): string[] {\n return graphRef.value?.getSearchMatches() ?? [];\n }\n\n function zoomToFit(opts?: CameraFlightOptions & { padding?: number }) {\n graphRef.value?.zoomToFit(opts);\n }\n\n function zoomToNode(nodeId: string, opts?: CameraFlightOptions & { scale?: number }) {\n graphRef.value?.zoomToNode(nodeId, opts);\n }\n\n function flyTo(target: GraphFlyTarget, opts?: CameraFlightOptions) {\n graphRef.value?.flyTo(target, opts);\n }\n\n function centerAt(x: number, y: number, opts?: CameraFlightOptions) {\n graphRef.value?.centerAt(x, y, opts);\n }\n\n function getCamera(): GraphCamera {\n return graphRef.value?.getCamera() ?? { x: 0, y: 0, k: 1 };\n }\n\n function selectNode(nodeId: string, opts?: { fly?: boolean } & CameraFlightOptions) {\n graphRef.value?.selectNode(nodeId, opts);\n }\n\n function getSelectedNodes(): string[] {\n return graphRef.value?.getSelectedNodes() ?? [];\n }\n\n function highlight(target: GraphHighlightTarget, opts?: { dimOpacity?: number }) {\n graphRef.value?.highlight(target, opts);\n }\n\n function clearHighlight() {\n graphRef.value?.clearHighlight();\n }\n\n function getHighlight(): string[] | null {\n return graphRef.value?.getHighlight() ?? null;\n }\n\n function getLegend(): GraphLegendData | null {\n return graphRef.value?.getLegend() ?? null;\n }\n\n function setActiveCategories(values: string[]) {\n graphRef.value?.setActiveCategories(values);\n }\n\n function getActiveCategories(): string[] {\n return graphRef.value?.getActiveCategories() ?? [];\n }\n\n return {\n graphRef,\n search,\n clearSearch,\n getSearchMatches,\n zoomToFit,\n zoomToNode,\n flyTo,\n centerAt,\n getCamera,\n selectNode,\n getSelectedNodes,\n highlight,\n clearHighlight,\n getHighlight,\n getLegend,\n setActiveCategories,\n getActiveCategories,\n };\n}\n","/**\n * useTable: composable for manual table lifecycle control.\n *\n * Attaches to a container ref, mounts a vanilla table instance,\n * and exposes the instance and current state.\n */\n\nimport type { TableSpec } from '@opendata-ai/openchart-core';\nimport {\n createTable,\n type TableInstance,\n type TableMountOptions,\n type TableState,\n} from '@opendata-ai/openchart-vanilla';\nimport { onMounted, onUnmounted, type Ref, ref, type ShallowRef, shallowRef, watch } from 'vue';\n\nexport interface UseTableReturn {\n /** Template ref to attach to the container div. */\n containerRef: Ref<HTMLDivElement | null>;\n /** The table instance (null until mounted). */\n table: ShallowRef<TableInstance | null>;\n /** The current table state (sort, search, page). */\n state: Ref<TableState>;\n}\n\n/**\n * Composable for manual table lifecycle control.\n *\n * Attach the returned containerRef to a container div via `ref=\"containerRef\"`.\n * The table mounts automatically and updates when the spec changes.\n */\nexport function useTable(spec: Ref<TableSpec>, options?: TableMountOptions): UseTableReturn {\n const containerRef = ref<HTMLDivElement | null>(null);\n const table = shallowRef<TableInstance | null>(null);\n const state = ref<TableState>({\n sort: null,\n search: '',\n page: 0,\n });\n\n const originalOnStateChange = options?.onStateChange;\n\n function handleStateChange(newState: TableState) {\n state.value = newState;\n originalOnStateChange?.(newState);\n }\n\n function mount() {\n const container = containerRef.value;\n if (!container) return;\n\n const mountOpts: TableMountOptions = {\n ...options,\n onStateChange: handleStateChange,\n };\n\n const instance = createTable(container, spec.value, mountOpts);\n table.value = instance;\n state.value = instance.getState();\n }\n\n function destroy() {\n table.value?.destroy();\n table.value = null;\n }\n\n onMounted(() => {\n mount();\n });\n\n onUnmounted(() => {\n destroy();\n });\n\n // Update on spec change\n watch(spec, (newSpec) => {\n const instance = table.value;\n if (!instance) return;\n instance.update(newSpec);\n state.value = instance.getState();\n });\n\n return {\n containerRef,\n table,\n state,\n };\n}\n","/**\n * useTableState: managed state composable for controlled table usage.\n *\n * Provides individual sort/search/page state with setters and a\n * resetState function to return to initial values.\n */\n\nimport type { SortState } from '@opendata-ai/openchart-core';\nimport { type Ref, ref } from 'vue';\n\nexport interface UseTableStateReturn {\n sort: Ref<SortState | null>;\n setSort: (sort: SortState | null) => void;\n search: Ref<string>;\n setSearch: (query: string) => void;\n page: Ref<number>;\n setPage: (page: number) => void;\n resetState: () => void;\n}\n\nexport interface UseTableStateOptions {\n sort?: SortState | null;\n search?: string;\n page?: number;\n}\n\n/**\n * Composable for managing table state (sort, search, page).\n *\n * Use with the DataTable component's controlled props:\n * ```vue\n * <script setup>\n * const { sort, search, page, setSort, setSearch, setPage } = useTableState();\n * </script>\n * <template>\n * <DataTable\n * :spec=\"spec\"\n * :sort=\"sort\"\n * :search=\"search\"\n * :page=\"page\"\n * @update:sort=\"setSort\"\n * @update:search=\"setSearch\"\n * @update:page=\"setPage\"\n * />\n * </template>\n * ```\n */\nexport function useTableState(initialState?: UseTableStateOptions): UseTableStateReturn {\n const sort = ref<SortState | null>(initialState?.sort ?? null);\n const search = ref(initialState?.search ?? '');\n const page = ref(initialState?.page ?? 0);\n\n function setSort(newSort: SortState | null) {\n sort.value = newSort;\n }\n\n function setSearch(query: string) {\n search.value = query;\n }\n\n function setPage(newPage: number) {\n page.value = newPage;\n }\n\n function resetState() {\n sort.value = initialState?.sort ?? null;\n search.value = initialState?.search ?? '';\n page.value = initialState?.page ?? 0;\n }\n\n return {\n sort,\n setSort,\n search,\n setSearch,\n page,\n setPage,\n resetState,\n };\n}\n","/**\n * DataTable component: Vue wrapper around the vanilla table adapter.\n *\n * Mounts a table instance on render, updates when spec changes,\n * and cleans up on unmount. Supports both controlled and uncontrolled modes\n * for sort, search, and pagination state.\n */\n\nimport type { DarkMode, SortState, TableSpec, ThemeConfig } from '@opendata-ai/openchart-core';\nimport { mergeThemeConfig } from '@opendata-ai/openchart-core';\nimport {\n createTable,\n type TableInstance,\n type TableMountOptions,\n} from '@opendata-ai/openchart-vanilla';\nimport {\n type CSSProperties,\n defineComponent,\n h,\n inject,\n onMounted,\n onUnmounted,\n type PropType,\n ref,\n watch,\n} from 'vue';\nimport { VizDarkModeKey, VizThemeKey } from './context';\n\nexport interface DataTableProps {\n spec: TableSpec;\n theme?: ThemeConfig;\n darkMode?: DarkMode;\n class?: string;\n style?: string | CSSProperties;\n sort?: SortState | null;\n search?: string;\n page?: number;\n}\n\nexport const DataTable = /* @__PURE__ */ defineComponent({\n name: 'DataTable',\n props: {\n spec: {\n type: Object as PropType<TableSpec>,\n required: true,\n },\n theme: {\n type: Object as PropType<ThemeConfig>,\n default: undefined,\n },\n darkMode: {\n type: String as PropType<DarkMode>,\n default: undefined,\n },\n class: {\n type: String,\n default: undefined,\n },\n style: {\n type: [String, Object] as PropType<string | CSSProperties>,\n default: undefined,\n },\n sort: {\n type: [Object, null] as PropType<SortState | null>,\n default: undefined,\n },\n search: {\n type: String,\n default: undefined,\n },\n page: {\n type: Number,\n default: undefined,\n },\n },\n emits: {\n 'row-click': (_row: Record<string, unknown>) => true,\n 'update:sort': (_sort: SortState | null) => true,\n 'update:search': (_query: string) => true,\n 'update:page': (_page: number) => true,\n },\n setup(props, { emit }) {\n const containerRef = ref<HTMLDivElement | null>(null);\n let instance: TableInstance | null = null;\n\n // Inject theme/darkMode from provider as fallbacks\n const contextTheme = inject(VizThemeKey, undefined);\n const contextDarkMode = inject(VizDarkModeKey, undefined);\n\n function resolveTheme(): ThemeConfig | undefined {\n return mergeThemeConfig(contextTheme?.value, props.theme);\n }\n\n function resolveDarkMode(): DarkMode | undefined {\n return props.darkMode ?? contextDarkMode?.value;\n }\n\n function isControlled(): boolean {\n return props.sort !== undefined || props.search !== undefined || props.page !== undefined;\n }\n\n let prevSpec = '';\n\n function mountTable() {\n const container = containerRef.value;\n if (!container) return;\n\n const mountOptions: TableMountOptions = {\n theme: resolveTheme(),\n darkMode: resolveDarkMode(),\n onRowClick: (row: Record<string, unknown>) => emit('row-click', row),\n autoResize: true,\n onStateChange: (state) => {\n if (state.sort !== undefined) emit('update:sort', state.sort);\n if (state.search !== undefined) emit('update:search', state.search);\n if (state.page !== undefined) emit('update:page', state.page);\n },\n };\n\n if (isControlled()) {\n mountOptions.externalState = {\n sort: props.sort ?? null,\n search: props.search ?? '',\n page: props.page ?? 0,\n };\n }\n\n instance = createTable(container, props.spec, mountOptions);\n prevSpec = JSON.stringify(props.spec);\n }\n\n function destroyTable() {\n instance?.destroy();\n instance = null;\n prevSpec = '';\n }\n\n onMounted(() => {\n mountTable();\n });\n\n onUnmounted(() => {\n destroyTable();\n });\n\n // Watch spec changes via JSON.stringify comparison (consistent with Chart/Graph)\n watch(\n () => JSON.stringify(props.spec),\n (newVal) => {\n if (!instance) return;\n if (newVal !== prevSpec) {\n prevSpec = newVal;\n instance.update(props.spec);\n }\n },\n );\n\n // Apply theme and dark mode changes in place\n watch(\n [\n () => props.theme,\n () => props.darkMode,\n () => contextTheme?.value,\n () => contextDarkMode?.value,\n ],\n () => {\n instance?.setTheme({ theme: resolveTheme(), darkMode: resolveDarkMode() });\n },\n );\n\n // Sync controlled state without remounting\n watch([() => props.sort, () => props.search, () => props.page], () => {\n if (!instance || !isControlled()) return;\n instance.setState({\n sort: props.sort ?? null,\n search: props.search ?? '',\n page: props.page ?? 0,\n });\n });\n\n const rootClass = () => {\n const base = 'oc-table-root';\n return props.class ? `${base} ${props.class}` : base;\n };\n\n return () =>\n h('div', {\n ref: containerRef,\n class: rootClass(),\n style: props.style,\n });\n },\n});\n","/**\n * Vue Map component: thin wrapper around the vanilla adapter.\n *\n * Mounts a map instance on render, updates when spec changes,\n * and cleans up on unmount. All heavy lifting is done by the vanilla\n * createGeoMap() function.\n */\n\nimport type {\n DarkMode,\n GeoMapSpec,\n GeoReaderSelection,\n ReaderChangeMeta,\n ThemeConfig,\n} from '@opendata-ai/openchart-core';\nimport { mergeThemeConfig } from '@opendata-ai/openchart-core';\nimport {\n type Camera,\n createGeoMap,\n createGeoReaderBinding,\n type GeoMapCameraChangeMeta,\n type GeoMapInstance,\n type GeoMapMarkEvent,\n type GeoMapMountOptions,\n type GeoReaderOptions,\n} from '@opendata-ai/openchart-vanilla';\nimport {\n type CSSProperties,\n defineComponent,\n h,\n inject,\n onMounted,\n onUnmounted,\n type PropType,\n ref,\n watch,\n} from 'vue';\nimport { VizDarkModeKey, VizThemeKey } from './context';\n\nexport interface GeoMapProps {\n reader?: false | GeoReaderOptions;\n readerSelection?: GeoReaderSelection;\n labelInventory?: GeoMapMountOptions['labelInventory'];\n spec: GeoMapSpec;\n theme?: ThemeConfig;\n darkMode?: DarkMode;\n class?: string;\n style?: string | CSSProperties;\n}\n\nexport const GeoMap = /* @__PURE__ */ defineComponent({\n name: 'GeoMap',\n props: {\n reader: { type: [Boolean, Object] as PropType<false | GeoReaderOptions>, default: undefined },\n readerSelection: { type: Object as PropType<GeoReaderSelection>, default: undefined },\n labelInventory: {\n type: [Boolean, Object] as PropType<GeoMapMountOptions['labelInventory']>,\n default: undefined,\n },\n spec: {\n type: Object as PropType<GeoMapSpec>,\n required: true,\n },\n theme: {\n type: Object as PropType<ThemeConfig>,\n default: undefined,\n },\n darkMode: {\n type: String as PropType<DarkMode>,\n default: undefined,\n },\n class: {\n type: String,\n default: undefined,\n },\n style: {\n type: [String, Object] as PropType<string | CSSProperties>,\n default: undefined,\n },\n },\n emits: {\n 'reader-change': (_selection: GeoReaderSelection, _meta: ReaderChangeMeta) => true,\n 'mark-click': (_event: GeoMapMarkEvent) => true,\n 'mark-hover': (_event: GeoMapMarkEvent | null) => true,\n 'camera-change': (_camera: Camera, _meta?: GeoMapCameraChangeMeta) => true,\n },\n setup(props, { emit, expose }) {\n const containerRef = ref<HTMLDivElement | null>(null);\n let instance: GeoMapInstance | null = null;\n let prevSpec = '';\n const readerBinding = createGeoReaderBinding();\n function syncReader() {\n if (containerRef.value && instance)\n readerBinding.sync(\n containerRef.value,\n instance,\n props.spec,\n props.reader,\n props.readerSelection,\n (state, meta) => emit('reader-change', state, meta),\n );\n }\n\n // Inject theme/darkMode from provider as fallbacks\n const contextTheme = inject(VizThemeKey, undefined);\n const contextDarkMode = inject(VizDarkModeKey, undefined);\n\n function resolveTheme(): ThemeConfig | undefined {\n return mergeThemeConfig(contextTheme?.value, props.theme);\n }\n\n function resolveDarkMode(): DarkMode | undefined {\n return props.darkMode ?? contextDarkMode?.value;\n }\n\n function mountMap() {\n const container = containerRef.value;\n if (!container) return;\n\n const options: GeoMapMountOptions = {\n theme: resolveTheme(),\n darkMode: resolveDarkMode(),\n onMarkClick: (feature) => emit('mark-click', feature),\n onMarkHover: (feature) => emit('mark-hover', feature),\n onCameraChange: (camera, meta) =>\n meta ? emit('camera-change', camera, meta) : emit('camera-change', camera),\n autoResize: true,\n labelInventory: props.labelInventory,\n };\n\n instance = createGeoMap(container, props.spec, options);\n prevSpec = JSON.stringify(props.spec);\n syncReader();\n }\n\n function destroyMap() {\n readerBinding.detach();\n instance?.destroy();\n instance = null;\n prevSpec = '';\n }\n\n // Expose imperative access to the instance\n expose({\n get instance() {\n return instance;\n },\n });\n\n onMounted(() => {\n mountMap();\n });\n\n onUnmounted(() => {\n destroyMap();\n });\n\n // Watch spec changes\n watch(\n () => JSON.stringify(props.spec),\n (newVal) => {\n if (!instance) return;\n if (newVal !== prevSpec) {\n prevSpec = newVal;\n instance.update(props.spec);\n syncReader();\n }\n },\n );\n\n watch(\n () => props.labelInventory,\n (value) => instance?.setLabelInventory(value),\n );\n\n watch([() => props.reader, () => props.readerSelection], () => syncReader(), { deep: false });\n\n // Apply theme and dark mode changes in place\n watch(\n [\n () => props.theme,\n () => props.darkMode,\n () => contextTheme?.value,\n () => contextDarkMode?.value,\n ],\n () => {\n instance?.setTheme({ theme: resolveTheme(), darkMode: resolveDarkMode() });\n },\n );\n\n const rootClass = () => {\n const base = 'oc-map-root';\n return props.class ? `${base} ${props.class}` : base;\n };\n\n return () =>\n h('div', {\n ref: containerRef,\n class: rootClass(),\n style: props.style,\n });\n },\n});\n","/**\n * Vue Graph component: thin wrapper around the vanilla adapter.\n *\n * Mounts a graph instance on render, updates when spec changes,\n * and cleans up on unmount. All heavy lifting is done by the vanilla\n * createGraph() function.\n *\n * Exposes imperative methods via defineExpose for use with useGraph().\n */\n\nimport type { DarkMode, GraphSpec, ThemeConfig } from '@opendata-ai/openchart-core';\nimport { mergeThemeConfig } from '@opendata-ai/openchart-core';\nimport {\n createGraph,\n type GraphCamera,\n type GraphInstance,\n type GraphMountOptions,\n type GraphTooltipFormatter,\n} from '@opendata-ai/openchart-vanilla';\nimport {\n type CSSProperties,\n defineComponent,\n h,\n inject,\n onMounted,\n onUnmounted,\n type PropType,\n ref,\n watch,\n} from 'vue';\nimport { VizDarkModeKey, VizThemeKey } from './context';\n\n/** Tooltip prop: `false` off, `true` default, or an object with a formatter. */\nexport type GraphTooltipProp = boolean | { formatter?: GraphTooltipFormatter };\n/** Legend prop: `false` off, `true` default, or an object toggling interactivity/counts. */\nexport type GraphLegendProp = boolean | { interactive?: boolean; counts?: boolean };\n\nexport interface GraphProps {\n spec: GraphSpec;\n theme?: ThemeConfig;\n darkMode?: DarkMode;\n tooltip?: GraphTooltipProp;\n legend?: GraphLegendProp;\n fitOnLoad?: boolean;\n /** How much closer than the fit the opening camera sits: a multiplier on the fit (2 = twice as close), not an absolute zoom level. Default 1. Read once at mount; `zoomToFit()` still frames the whole graph. */\n initialZoom?: number;\n class?: string;\n style?: string | CSSProperties;\n}\n\n/** True when the tooltip is on (only the on/off decision gates recreation). */\nfunction tooltipOn(tooltip: GraphTooltipProp | undefined): boolean {\n return tooltip !== false;\n}\n\nexport const Graph = /* @__PURE__ */ defineComponent({\n name: 'Graph',\n props: {\n spec: {\n type: Object as PropType<GraphSpec>,\n required: true,\n },\n theme: {\n type: Object as PropType<ThemeConfig>,\n default: undefined,\n },\n darkMode: {\n type: String as PropType<DarkMode>,\n default: undefined,\n },\n tooltip: {\n type: [Boolean, Object] as PropType<GraphTooltipProp>,\n default: undefined,\n },\n legend: {\n type: [Boolean, Object] as PropType<GraphLegendProp>,\n default: undefined,\n },\n fitOnLoad: {\n type: Boolean,\n default: undefined,\n },\n initialZoom: {\n type: Number,\n default: undefined,\n },\n class: {\n type: String,\n default: undefined,\n },\n style: {\n type: [String, Object] as PropType<string | CSSProperties>,\n default: undefined,\n },\n },\n emits: {\n 'node-click': (_node: Record<string, unknown>) => true,\n 'node-double-click': (_node: Record<string, unknown>) => true,\n 'node-hover': (_node: Record<string, unknown> | null) => true,\n 'edge-hover': (_edge: Record<string, unknown> | null) => true,\n 'selection-change': (_nodeIds: string[]) => true,\n 'legend-hover': (_entry: { field: string; value: string } | null) => true,\n 'legend-toggle': (_activeValues: string[]) => true,\n 'highlight-change': (_nodeIds: string[] | null) => true,\n 'camera-change': (_camera: GraphCamera) => true,\n },\n setup(props, { emit, expose }) {\n const containerRef = ref<HTMLDivElement | null>(null);\n let instance: GraphInstance | null = null;\n let prevSpec = '';\n // First mount plays the entrance; theme/darkMode-only recreations suppress it.\n let mountedOnce = false;\n // Whether the last destroyed instance's entrance played (see mountGraph).\n let prevEntrancePlayed = false;\n\n // Inject theme/darkMode from provider as fallbacks\n const contextTheme = inject(VizThemeKey, undefined);\n const contextDarkMode = inject(VizDarkModeKey, undefined);\n\n function resolveTheme(): ThemeConfig | undefined {\n return mergeThemeConfig(contextTheme?.value, props.theme);\n }\n\n function resolveDarkMode(): DarkMode | undefined {\n return props.darkMode ?? contextDarkMode?.value;\n }\n\n // Stable tooltip formatter wrapper. Vue props are reactive, so reading\n // `props.tooltip` at CALL time always sees the latest formatter — no stale\n // closure, no recreation when the formatter changes. When the tooltip is on\n // we always hand the vanilla layer this wrapper (falling back to defaults),\n // so a formatter can be added or swapped per-render without a remount.\n const stableTooltipFormatter: GraphTooltipFormatter = (item, defaults) => {\n const t = props.tooltip;\n const fn = t && typeof t === 'object' ? t.formatter : undefined;\n return fn ? fn(item, defaults) : defaults;\n };\n\n // `playEntrance` is set only by the dimension remount: 2D and 3D are\n // different renderers, so the new one should play its entrance instead of\n // being suppressed the way a theme-only recreation is.\n function mountGraph(playEntrance = false) {\n const container = containerRef.value;\n if (!container) return;\n\n const tooltipOption: GraphMountOptions['tooltip'] = tooltipOn(props.tooltip)\n ? { formatter: stableTooltipFormatter }\n : false;\n\n const options: GraphMountOptions = {\n theme: resolveTheme(),\n darkMode: resolveDarkMode(),\n tooltip: tooltipOption,\n legend: props.legend,\n fitOnLoad: props.fitOnLoad,\n initialZoom: props.initialZoom,\n onNodeClick: (node) => emit('node-click', node),\n onNodeDoubleClick: (node) => emit('node-double-click', node),\n onNodeHover: (node) => emit('node-hover', node),\n onEdgeHover: (edge) => emit('edge-hover', edge),\n onSelectionChange: (nodeIds) => emit('selection-change', nodeIds),\n onLegendHover: (entry) => emit('legend-hover', entry),\n onLegendToggle: (activeValues) => emit('legend-toggle', activeValues),\n onHighlightChange: (nodeIds) => emit('highlight-change', nodeIds),\n onCameraChange: (camera) => emit('camera-change', camera),\n autoResize: true,\n // Only when the previous instance's entrance played: one still\n // waiting to be seen replays on the new instance instead of being lost.\n suppressEntrance: mountedOnce && !playEntrance && prevEntrancePlayed,\n };\n\n instance = createGraph(container, props.spec, options);\n prevSpec = JSON.stringify(props.spec);\n mountedOnce = true;\n }\n\n function destroyGraph() {\n prevEntrancePlayed = instance?.entrancePlayed ?? false;\n instance?.destroy();\n instance = null;\n prevSpec = '';\n }\n\n // Expose imperative methods for useGraph() composable. Every method forwards\n // opts to the underlying instance so consumers get the full vanilla API.\n expose({\n search(query: string) {\n instance?.search(query);\n },\n clearSearch() {\n instance?.clearSearch();\n },\n getSearchMatches(): string[] {\n return instance?.getSearchMatches() ?? [];\n },\n zoomToFit(opts?: Parameters<GraphInstance['zoomToFit']>[0]) {\n instance?.zoomToFit(opts);\n },\n zoomToNode(nodeId: string, opts?: Parameters<GraphInstance['zoomToNode']>[1]) {\n instance?.zoomToNode(nodeId, opts);\n },\n flyTo(\n target: Parameters<GraphInstance['flyTo']>[0],\n opts?: Parameters<GraphInstance['flyTo']>[1],\n ) {\n instance?.flyTo(target, opts);\n },\n centerAt(x: number, y: number, opts?: Parameters<GraphInstance['centerAt']>[2]) {\n instance?.centerAt(x, y, opts);\n },\n getCamera() {\n return instance?.getCamera() ?? { x: 0, y: 0, k: 1 };\n },\n selectNode(nodeId: string, opts?: Parameters<GraphInstance['selectNode']>[1]) {\n instance?.selectNode(nodeId, opts);\n },\n getSelectedNodes(): string[] {\n return instance?.getSelectedNodes() ?? [];\n },\n highlight(\n target: Parameters<GraphInstance['highlight']>[0],\n opts?: Parameters<GraphInstance['highlight']>[1],\n ) {\n instance?.highlight(target, opts);\n },\n clearHighlight() {\n instance?.clearHighlight();\n },\n getHighlight() {\n return instance?.getHighlight() ?? null;\n },\n getLegend() {\n return instance?.getLegend() ?? null;\n },\n setActiveCategories(values: string[]) {\n instance?.setActiveCategories(values);\n },\n getActiveCategories(): string[] {\n return instance?.getActiveCategories() ?? [];\n },\n update(spec: GraphSpec) {\n instance?.update(spec);\n },\n get instance() {\n return instance;\n },\n });\n\n onMounted(() => {\n mountGraph();\n });\n\n onUnmounted(() => {\n destroyGraph();\n });\n\n // A dimension change picks a different renderer, and the renderer is chosen\n // once, at mount — so it is a remount, not an update(). Registered before\n // the spec watcher so the remount runs first; mountGraph refreshes prevSpec,\n // and the spec watcher then finds nothing to apply.\n watch(\n () => props.spec.dimensions ?? 2,\n () => {\n if (!containerRef.value) return;\n destroyGraph();\n mountGraph(true);\n },\n );\n\n // Watch spec changes\n watch(\n () => JSON.stringify(props.spec),\n (newVal) => {\n if (!instance) return;\n if (newVal !== prevSpec) {\n prevSpec = newVal;\n instance.update(props.spec);\n }\n },\n );\n\n // Recreate graph when theme or darkMode change (spec unchanged). mountedOnce\n // is already true here, so mountGraph passes suppressEntrance: true and the\n // entrance does not replay.\n watch(\n [\n () => props.theme,\n () => props.darkMode,\n () => contextTheme?.value,\n () => contextDarkMode?.value,\n ],\n () => {\n if (!containerRef.value) return;\n destroyGraph();\n mountGraph();\n },\n );\n\n const rootClass = () => {\n const base = 'oc-graph-root';\n return props.class ? `${base} ${props.class}` : base;\n };\n\n return () =>\n h('div', {\n ref: containerRef,\n class: rootClass(),\n style: props.style,\n });\n },\n});\n","import type { DarkMode, RaceFrame, RaceSpec, ThemeConfig } from '@opendata-ai/openchart-core';\nimport { mergeThemeConfig } from '@opendata-ai/openchart-core';\nimport {\n createRace,\n type RaceInstance,\n type RaceMountOptions,\n} from '@opendata-ai/openchart-vanilla';\nimport {\n type CSSProperties,\n computed,\n defineComponent,\n h,\n inject,\n onMounted,\n onUnmounted,\n type PropType,\n ref,\n watch,\n} from 'vue';\nimport { VizDarkModeKey, VizThemeKey } from './context';\n\n/** Options and callbacks for a mounted race chart. */\nexport interface RaceProps {\n spec: RaceSpec;\n theme?: ThemeConfig;\n darkMode?: DarkMode;\n class?: string;\n style?: string | CSSProperties;\n autoResize?: boolean;\n watermark?: boolean;\n onWarn?: RaceMountOptions['onWarn'];\n onPeriod?: (period: RaceFrame['period']) => void;\n}\n\n/** Render an interactive race chart. */\nexport const Race = /* @__PURE__ */ defineComponent({\n name: 'Race',\n props: {\n spec: { type: Object as PropType<RaceSpec>, required: true },\n theme: { type: Object as PropType<ThemeConfig>, default: undefined },\n darkMode: { type: String as PropType<DarkMode>, default: undefined },\n class: { type: String, default: undefined },\n style: { type: [String, Object] as PropType<string | CSSProperties>, default: undefined },\n autoResize: { type: Boolean, default: undefined },\n watermark: { type: Boolean, default: undefined },\n onWarn: { type: Function as PropType<RaceProps['onWarn']>, default: undefined },\n // Vue skips listener-only changes for declared emits. Track this listener as a prop.\n onPeriod: { type: Function as PropType<RaceProps['onPeriod']>, default: undefined },\n onPeriodOnce: { type: Function as PropType<RaceProps['onPeriod']>, default: undefined },\n },\n setup(props, { emit, expose }) {\n const containerRef = ref<HTMLDivElement | null>(null);\n let instance: RaceInstance | null = null;\n let mountedOptionsKey = '';\n let mountedThemeKey = '';\n let mountedSpecKey = '';\n let unsubscribe: (() => void) | undefined;\n const contextTheme = inject(VizThemeKey, undefined);\n const contextDarkMode = inject(VizDarkModeKey, undefined);\n const options = computed<RaceMountOptions>(() => ({\n theme: mergeThemeConfig(contextTheme?.value, props.theme),\n darkMode: props.darkMode ?? contextDarkMode?.value,\n autoResize: props.autoResize,\n watermark: props.watermark,\n onWarn: (message) => (props.onWarn ?? console.warn)(message),\n }));\n const optionsKey = computed(() =>\n JSON.stringify({ autoResize: props.autoResize, watermark: props.watermark }),\n );\n const themeKey = computed(() => {\n const { theme, darkMode } = options.value;\n return JSON.stringify({ theme, darkMode });\n });\n const specKey = computed(() => JSON.stringify(props.spec));\n\n function subscribe() {\n unsubscribe?.();\n unsubscribe =\n props.onPeriod || props.onPeriodOnce\n ? instance?.on('period', (period) => emit('period', period))\n : undefined;\n }\n\n function destroyRace() {\n unsubscribe?.();\n unsubscribe = undefined;\n instance?.destroy();\n instance = null;\n }\n\n function mountRace() {\n const container = containerRef.value;\n if (!container) return;\n const state = instance?.getState();\n const current = createRace(container, props.spec, { ...options.value, initialState: state });\n destroyRace();\n if (state) current.resize();\n\n instance = current;\n mountedOptionsKey = optionsKey.value;\n mountedThemeKey = themeKey.value;\n mountedSpecKey = specKey.value;\n subscribe();\n }\n\n expose({\n get instance() {\n return instance;\n },\n });\n\n onMounted(mountRace);\n onUnmounted(destroyRace);\n\n watch(\n [optionsKey, themeKey, specKey, () => props.onPeriod, () => props.onPeriodOnce],\n (\n [nextOptionsKey, nextThemeKey, nextSpecKey, onPeriod, onPeriodOnce],\n [, , , previous, previousOnce],\n ) => {\n if (onPeriod !== previous || onPeriodOnce !== previousOnce) subscribe();\n if (!instance || nextOptionsKey !== mountedOptionsKey) {\n mountRace();\n return;\n }\n if (nextSpecKey !== mountedSpecKey) {\n instance.update(props.spec);\n mountedSpecKey = nextSpecKey;\n }\n if (nextThemeKey !== mountedThemeKey) {\n instance.setTheme(options.value);\n mountedThemeKey = nextThemeKey;\n }\n },\n { flush: 'post' },\n );\n\n return () =>\n h('div', {\n ref: containerRef,\n class: ['oc-root', props.class],\n style: props.style,\n });\n },\n});\n","/**\n * Vue Sankey component: thin wrapper around the vanilla adapter.\n *\n * Mounts a sankey instance on render, updates when spec changes,\n * and cleans up on unmount. All heavy lifting is done by the vanilla\n * createSankey() function.\n */\n\nimport type { DarkMode, SankeySpec, ThemeConfig } from '@opendata-ai/openchart-core';\nimport { mergeThemeConfig } from '@opendata-ai/openchart-core';\nimport {\n createSankey,\n type SankeyInstance,\n type SankeyMountOptions,\n} from '@opendata-ai/openchart-vanilla';\nimport {\n type CSSProperties,\n defineComponent,\n h,\n inject,\n onMounted,\n onUnmounted,\n type PropType,\n ref,\n watch,\n} from 'vue';\nimport { VizDarkModeKey, VizThemeKey } from './context';\n\nexport interface SankeyProps {\n spec: SankeySpec;\n theme?: ThemeConfig;\n darkMode?: DarkMode;\n class?: string;\n style?: string | CSSProperties;\n}\n\nexport const Sankey = /* @__PURE__ */ defineComponent({\n name: 'Sankey',\n props: {\n spec: {\n type: Object as PropType<SankeySpec>,\n required: true,\n },\n theme: {\n type: Object as PropType<ThemeConfig>,\n default: undefined,\n },\n darkMode: {\n type: String as PropType<DarkMode>,\n default: undefined,\n },\n class: {\n type: String,\n default: undefined,\n },\n style: {\n type: [String, Object] as PropType<string | CSSProperties>,\n default: undefined,\n },\n },\n emits: {\n 'node-click': (_node: Record<string, unknown>) => true,\n 'link-click': (_link: Record<string, unknown>) => true,\n 'node-hover': (_node: Record<string, unknown> | null) => true,\n 'link-hover': (_link: Record<string, unknown> | null) => true,\n },\n setup(props, { emit, expose }) {\n const containerRef = ref<HTMLDivElement | null>(null);\n let instance: SankeyInstance | null = null;\n let prevSpec = '';\n\n // Inject theme/darkMode from provider as fallbacks\n const contextTheme = inject(VizThemeKey, undefined);\n const contextDarkMode = inject(VizDarkModeKey, undefined);\n\n function resolveTheme(): ThemeConfig | undefined {\n return mergeThemeConfig(contextTheme?.value, props.theme);\n }\n\n function resolveDarkMode(): DarkMode | undefined {\n return props.darkMode ?? contextDarkMode?.value;\n }\n\n function mountSankey() {\n const container = containerRef.value;\n if (!container) return;\n\n const options: SankeyMountOptions = {\n theme: resolveTheme(),\n darkMode: resolveDarkMode(),\n onNodeClick: (node: Record<string, unknown>) => emit('node-click', node),\n onLinkClick: (link: Record<string, unknown>) => emit('link-click', link),\n onNodeHover: (node: Record<string, unknown> | null) => emit('node-hover', node),\n onLinkHover: (link: Record<string, unknown> | null) => emit('link-hover', link),\n autoResize: true,\n };\n\n instance = createSankey(container, props.spec, options);\n prevSpec = JSON.stringify(props.spec);\n }\n\n function destroySankey() {\n instance?.destroy();\n instance = null;\n prevSpec = '';\n }\n\n // Expose imperative access to the instance\n expose({\n get instance() {\n return instance;\n },\n });\n\n onMounted(() => {\n mountSankey();\n });\n\n onUnmounted(() => {\n destroySankey();\n });\n\n // Watch spec changes\n watch(\n () => JSON.stringify(props.spec),\n (newVal) => {\n if (!instance) return;\n if (newVal !== prevSpec) {\n prevSpec = newVal;\n instance.update(props.spec);\n }\n },\n );\n\n // Recreate sankey when theme or darkMode change\n watch(\n [\n () => props.theme,\n () => props.darkMode,\n () => contextTheme?.value,\n () => contextDarkMode?.value,\n ],\n () => {\n if (!containerRef.value) return;\n destroySankey();\n mountSankey();\n },\n );\n\n const rootClass = () => {\n const base = 'oc-sankey-root';\n return props.class ? `${base} ${props.class}` : base;\n };\n\n return () =>\n h('div', {\n ref: containerRef,\n class: rootClass(),\n style: props.style,\n });\n },\n});\n","/**\n * VizThemeProvider: provides a theme and dark mode preference to all\n * descendant Chart, DataTable, and Graph components without prop drilling.\n *\n * Components deep-merge the provider theme with their theme prop.\n * An explicit `darkMode` prop wins over the provider preference.\n */\n\nimport type { DarkMode, ThemeConfig } from '@opendata-ai/openchart-core';\nimport { computed, defineComponent, type PropType, provide } from 'vue';\nimport { VizDarkModeKey, VizThemeKey } from './context';\n\nexport interface VizThemeProviderProps {\n theme: ThemeConfig | undefined;\n darkMode?: DarkMode;\n}\n\nexport const VizThemeProvider = /* @__PURE__ */ defineComponent({\n name: 'VizThemeProvider',\n props: {\n theme: {\n type: Object as PropType<ThemeConfig | undefined>,\n default: undefined,\n },\n darkMode: {\n type: String as PropType<DarkMode>,\n default: undefined,\n },\n },\n setup(props, { slots }) {\n // Wrap in computed() so changes to props propagate reactively\n // through the injection system.\n const themeRef = computed(() => props.theme);\n const darkModeRef = computed(() => props.darkMode);\n\n provide(VizThemeKey, themeRef);\n provide(VizDarkModeKey, darkModeRef);\n\n return () => slots.default?.();\n },\n});\n","/**\n * Vue TileMap component: thin wrapper around the vanilla adapter.\n *\n * Mounts a tilemap instance on render, updates when spec changes,\n * and cleans up on unmount. All heavy lifting is done by the vanilla\n * createTileMap() function.\n */\n\nimport type { DarkMode, ThemeConfig, TileMapSpec } from '@opendata-ai/openchart-core';\nimport { mergeThemeConfig } from '@opendata-ai/openchart-core';\nimport {\n createTileMap,\n type TileMapInstance,\n type TileMapMountOptions,\n} from '@opendata-ai/openchart-vanilla';\nimport {\n type CSSProperties,\n defineComponent,\n h,\n inject,\n onMounted,\n onUnmounted,\n type PropType,\n ref,\n watch,\n} from 'vue';\nimport { VizDarkModeKey, VizThemeKey } from './context';\n\nexport interface TileMapTileEvent {\n stateCode: string;\n stateName: string;\n value: number | null;\n data: Record<string, unknown>;\n}\n\nexport interface TileMapProps {\n spec: TileMapSpec;\n theme?: ThemeConfig;\n darkMode?: DarkMode;\n class?: string;\n style?: string | CSSProperties;\n}\n\nexport const TileMap = /* @__PURE__ */ defineComponent({\n name: 'TileMap',\n props: {\n spec: {\n type: Object as PropType<TileMapSpec>,\n required: true,\n },\n theme: {\n type: Object as PropType<ThemeConfig>,\n default: undefined,\n },\n darkMode: {\n type: String as PropType<DarkMode>,\n default: undefined,\n },\n class: {\n type: String,\n default: undefined,\n },\n style: {\n type: [String, Object] as PropType<string | CSSProperties>,\n default: undefined,\n },\n },\n emits: {\n 'tile-click': (_tile: TileMapTileEvent) => true,\n 'tile-hover': (_tile: TileMapTileEvent | null) => true,\n },\n setup(props, { emit, expose }) {\n const containerRef = ref<HTMLDivElement | null>(null);\n let instance: TileMapInstance | null = null;\n let prevSpec = '';\n\n // Inject theme/darkMode from provider as fallbacks\n const contextTheme = inject(VizThemeKey, undefined);\n const contextDarkMode = inject(VizDarkModeKey, undefined);\n\n function resolveTheme(): ThemeConfig | undefined {\n return mergeThemeConfig(contextTheme?.value, props.theme);\n }\n\n function resolveDarkMode(): DarkMode | undefined {\n return props.darkMode ?? contextDarkMode?.value;\n }\n\n function mountTileMap() {\n const container = containerRef.value;\n if (!container) return;\n\n const options: TileMapMountOptions = {\n theme: resolveTheme(),\n darkMode: resolveDarkMode(),\n onTileClick: (tile: TileMapTileEvent) => emit('tile-click', tile),\n onTileHover: (tile: TileMapTileEvent | null) => emit('tile-hover', tile),\n autoResize: true,\n };\n\n instance = createTileMap(container, props.spec, options);\n prevSpec = JSON.stringify(props.spec);\n }\n\n function destroyTileMap() {\n instance?.destroy();\n instance = null;\n prevSpec = '';\n }\n\n // Expose imperative access to the instance\n expose({\n get instance() {\n return instance;\n },\n });\n\n onMounted(() => {\n mountTileMap();\n });\n\n onUnmounted(() => {\n destroyTileMap();\n });\n\n // Watch spec changes\n watch(\n () => JSON.stringify(props.spec),\n (newVal) => {\n if (!instance) return;\n if (newVal !== prevSpec) {\n prevSpec = newVal;\n instance.update(props.spec);\n }\n },\n );\n\n // Recreate tilemap when theme or darkMode change\n watch(\n [\n () => props.theme,\n () => props.darkMode,\n () => contextTheme?.value,\n () => contextDarkMode?.value,\n ],\n () => {\n if (!containerRef.value) return;\n destroyTileMap();\n mountTileMap();\n },\n );\n\n const rootClass = () => {\n const base = 'oc-tilemap-root';\n return props.class ? `${base} ${props.class}` : base;\n };\n\n return () =>\n h('div', {\n ref: containerRef,\n class: rootClass(),\n style: props.style,\n });\n },\n});\n","/**\n * Visualization routing component: renders Chart, DataTable, or Graph\n * based on the spec type. Use this when rendering arbitrary VizSpec values.\n *\n * For event handlers, use the specific component (Chart, DataTable, Graph) directly.\n */\n\nimport type { DarkMode, ThemeConfig, VizSpec } from '@opendata-ai/openchart-core';\nimport {\n isBarListSpec,\n isGeoMapSpec,\n isGraphSpec,\n isRaceSpec,\n isSankeySpec,\n isTableSpec,\n isTileMapSpec,\n} from '@opendata-ai/openchart-core';\nimport { type CSSProperties, defineComponent, h, type PropType } from 'vue';\nimport { BarList } from './BarList';\nimport { Chart } from './Chart';\nimport { DataTable } from './DataTable';\nimport { GeoMap } from './GeoMap';\nimport { Graph } from './Graph';\nimport { Race } from './Race';\nimport { Sankey } from './Sankey';\nimport { TileMap } from './TileMap';\n\nexport interface VisualizationProps {\n spec: VizSpec;\n theme?: ThemeConfig;\n darkMode?: DarkMode;\n class?: string;\n style?: string | CSSProperties;\n}\n\nexport const Visualization = /* @__PURE__ */ defineComponent({\n name: 'Visualization',\n props: {\n spec: {\n type: Object as PropType<VizSpec>,\n required: true,\n },\n theme: {\n type: Object as PropType<ThemeConfig>,\n default: undefined,\n },\n darkMode: {\n type: String as PropType<DarkMode>,\n default: undefined,\n },\n class: {\n type: String,\n default: undefined,\n },\n style: {\n type: [String, Object] as PropType<string | CSSProperties>,\n default: undefined,\n },\n },\n setup(props) {\n return () => {\n const { spec, theme, darkMode, class: className, style } = props;\n const sharedProps = { theme, darkMode, class: className, style };\n\n if (isTableSpec(spec)) {\n return h(DataTable, { ...sharedProps, spec });\n }\n if (isGraphSpec(spec)) {\n return h(Graph, { ...sharedProps, spec });\n }\n if (isSankeySpec(spec)) {\n return h(Sankey, { ...sharedProps, spec });\n }\n if (isTileMapSpec(spec)) {\n return h(TileMap, { ...sharedProps, spec });\n }\n if (isBarListSpec(spec)) {\n return h(BarList, { ...sharedProps, spec });\n }\n if (isGeoMapSpec(spec)) {\n return h(GeoMap, { ...sharedProps, spec });\n }\n if (isRaceSpec(spec)) {\n return h(Race, { ...sharedProps, spec });\n }\n return h(Chart, { ...sharedProps, spec });\n };\n },\n});\n"],"mappings":";AAeA,cAAc;AAiBd;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AA0BP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;;;AC1EP,SAAS,wBAAwB;AACjC;AAAA,EAGE;AAAA,OACK;AACP;AAAA,EAEE;AAAA,EACA;AAAA,EACA,UAAAA;AAAA,EACA;AAAA,EACA;AAAA,EAEA;AAAA,EAC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A,MACL,MAAM;AAAA,MACN,SAAS;AAAA,IACX;AAAA,IACA,OAAO;AAAA,MACL,MAAM,CAAC,QAAQ,MAAM;AAAA,MACrB,SAAS;AAAA,IACX;AAAA,EACF;AAAA,EACA,MAAM,OAAO;AACX,WAAO,MAAM;AACX,YAAM,EAAE,MAAM,OAAO,UAAU,OAAO,WAAW,MAAM,IAAI;AAC3D,YAAM,cAAc,EAAE,OAAO,UAAU,OAAO,WAAW,MAAM;AAE/D,UAAI,YAAY,IAAI,GAAG;AACrB,eAAOC,IAAE,WAAW,EAAE,GAAG,aAAa,KAAK,CAAC;AAAA,MAC9C;AACA,UAAI,YAAY,IAAI,GAAG;AACrB,eAAOA,IAAE,OAAO,EAAE,GAAG,aAAa,KAAK,CAAC;AAAA,MAC1C;AACA,UAAI,aAAa,IAAI,GAAG;AACtB,eAAOA,IAAE,QAAQ,EAAE,GAAG,aAAa,KAAK,CAAC;AAAA,MAC3C;AACA,UAAI,cAAc,IAAI,GAAG;AACvB,eAAOA,IAAE,SAAS,EAAE,GAAG,aAAa,KAAK,CAAC;AAAA,MAC5C;AACA,UAAI,cAAc,IAAI,GAAG;AACvB,eAAOA,IAAE,SAAS,EAAE,GAAG,aAAa,KAAK,CAAC;AAAA,MAC5C;AACA,UAAI,aAAa,IAAI,GAAG;AACtB,eAAOA,IAAE,QAAQ,EAAE,GAAG,aAAa,KAAK,CAAC;AAAA,MAC3C;AACA,UAAI,WAAW,IAAI,GAAG;AACpB,eAAOA,IAAE,MAAM,EAAE,GAAG,aAAa,KAAK,CAAC;AAAA,MACzC;AACA,aAAOA,IAAE,OAAO,EAAE,GAAG,aAAa,KAAK,CAAC;AAAA,IAC1C;AAAA,EACF;AACF,CAAC;","names":["inject","inject","mergeThemeConfig","defineComponent","h","inject","onMounted","onUnmounted","ref","watch","defineComponent","ref","inject","mergeThemeConfig","onMounted","watch","onUnmounted","h","defineComponent","h","onMounted","onUnmounted","ref","watch","createChart","onMounted","onUnmounted","ref","watch","onUnmounted","ref","watch","ref","onMounted","onUnmounted","ref","shallowRef","watch","ref","mergeThemeConfig","createTable","defineComponent","h","inject","onMounted","onUnmounted","ref","watch","defineComponent","ref","inject","mergeThemeConfig","createTable","onMounted","onUnmounted","watch","h","mergeThemeConfig","defineComponent","h","inject","onMounted","onUnmounted","ref","watch","defineComponent","ref","inject","mergeThemeConfig","onMounted","onUnmounted","watch","h","mergeThemeConfig","defineComponent","h","inject","onMounted","onUnmounted","ref","watch","defineComponent","ref","inject","mergeThemeConfig","onMounted","onUnmounted","watch","h","mergeThemeConfig","computed","defineComponent","h","inject","onMounted","onUnmounted","ref","watch","defineComponent","ref","inject","computed","mergeThemeConfig","onMounted","onUnmounted","watch","h","mergeThemeConfig","defineComponent","h","inject","onMounted","onUnmounted","ref","watch","defineComponent","ref","inject","mergeThemeConfig","onMounted","onUnmounted","watch","h","computed","defineComponent","defineComponent","computed","mergeThemeConfig","defineComponent","h","inject","onMounted","onUnmounted","ref","watch","defineComponent","ref","inject","mergeThemeConfig","onMounted","onUnmounted","watch","h","defineComponent","h","defineComponent","h"]}
1
+ {"version":3,"sources":["../src/index.ts","../src/BarList.ts","../src/context.ts","../src/Chart.ts","../src/ChartStory.ts","../src/composables/useChart.ts","../src/composables/useDarkMode.ts","../src/composables/useGraph.ts","../src/composables/useTable.ts","../src/composables/useTableState.ts","../src/DataTable.ts","../src/GeoMap.ts","../src/Graph.ts","../src/Race.ts","../src/Sankey.ts","../src/ThemeProvider.ts","../src/TileMap.ts","../src/Visualization.ts"],"sourcesContent":["/**\n * @opendata-ai/openchart-vue\n *\n * Vue 3 adapter for openchart. Provides <Chart />, <DataTable />, <Graph />,\n * and <VizThemeProvider /> components that wrap the vanilla adapter with\n * Vue lifecycle management.\n *\n * Re-exports the full core type system and utilities so Vue consumers\n * only need a single @opendata-ai/openchart-vue dependency.\n */\n\n// ---------------------------------------------------------------------------\n// Core: full type system, theme, colors, locale, accessibility, helpers\n// ---------------------------------------------------------------------------\n\nexport * from '@opendata-ai/openchart-core';\n\n// ---------------------------------------------------------------------------\n// Vanilla: export utilities (SVG/PNG/JPG/CSV)\n// ---------------------------------------------------------------------------\n\nexport type {\n GeoMapCameraChangeMeta,\n InteractionMode,\n JPGExportOptions,\n PlaybackController,\n PlaybackPeriod,\n PlaybackState,\n PNGExportOptions,\n SpecSequenceOptions,\n SVGExportOptions,\n} from '@opendata-ai/openchart-vanilla';\nexport {\n exportCSV,\n exportJPG,\n exportPNG,\n exportSpecSequence,\n exportSVG,\n exportSVGWithFonts,\n} from '@opendata-ai/openchart-vanilla';\n\n// ---------------------------------------------------------------------------\n// Engine: compile API and types not covered by core\n// ---------------------------------------------------------------------------\n\nexport type {\n ChartRenderer,\n CompiledGraphEdge,\n CompiledGraphNode,\n CompileResult,\n GraphCompilation,\n NormalizedBarListSpec,\n NormalizedChartSpec,\n NormalizedChrome,\n NormalizedGeoMapSpec,\n NormalizedGraphSpec,\n NormalizedSankeySpec,\n NormalizedSpec,\n NormalizedTableSpec,\n NormalizedTileMapSpec,\n SimulationConfig,\n ValidationError,\n ValidationErrorCode,\n ValidationResult,\n} from '@opendata-ai/openchart-engine';\nexport {\n clearRenderers,\n compile,\n compileBarList,\n compileChart,\n compileGeoMap,\n compileGraph,\n compileSankey,\n compileTable,\n compileTileMap,\n getChartRenderer,\n normalizeSpec,\n registerChartRenderer,\n validateSpec,\n} from '@opendata-ai/openchart-engine';\nexport type { BarListProps, BarListRowEvent } from './BarList';\nexport { BarList } from './BarList';\n// Components\nexport type { ChartProps } from './Chart';\nexport { Chart } from './Chart';\nexport type { ChartStoryProps } from './ChartStory';\n// Scrollytelling\nexport { ChartStory } from './ChartStory';\n// Composables\nexport type { UseChartOptions, UseChartReturn } from './composables/useChart';\nexport { useChart } from './composables/useChart';\nexport { useDarkMode } from './composables/useDarkMode';\nexport type { GraphHandle, UseGraphReturn } from './composables/useGraph';\nexport { useGraph } from './composables/useGraph';\nexport type { UseTableReturn } from './composables/useTable';\nexport { useTable } from './composables/useTable';\nexport type { UseTableStateOptions, UseTableStateReturn } from './composables/useTableState';\nexport { useTableState } from './composables/useTableState';\n// Context (injection keys and composables)\nexport { useVizDarkMode, useVizTheme, VizDarkModeKey, VizThemeKey } from './context';\nexport type { DataTableProps } from './DataTable';\nexport { DataTable } from './DataTable';\nexport type { GeoMapProps } from './GeoMap';\nexport { GeoMap } from './GeoMap';\nexport type { GraphProps } from './Graph';\nexport { Graph } from './Graph';\nexport type { RaceProps } from './Race';\nexport { Race } from './Race';\nexport type { SankeyProps } from './Sankey';\nexport { Sankey } from './Sankey';\nexport type { VizThemeProviderProps } from './ThemeProvider';\nexport { VizThemeProvider } from './ThemeProvider';\nexport type { TileMapProps } from './TileMap';\nexport { TileMap } from './TileMap';\nexport type { VisualizationProps } from './Visualization';\nexport { Visualization } from './Visualization';\n","/**\n * Vue BarList component: thin wrapper around the vanilla adapter.\n */\n\nimport type { BarListSpec, DarkMode, ThemeConfig } from '@opendata-ai/openchart-core';\nimport { mergeThemeConfig } from '@opendata-ai/openchart-core';\nimport {\n type BarListInstance,\n type BarListMountOptions,\n createBarList,\n} from '@opendata-ai/openchart-vanilla';\nimport {\n type CSSProperties,\n defineComponent,\n h,\n inject,\n onMounted,\n onUnmounted,\n type PropType,\n ref,\n watch,\n} from 'vue';\nimport { VizDarkModeKey, VizThemeKey } from './context';\n\nexport interface BarListRowEvent {\n label: string;\n value: number;\n data: Record<string, unknown>;\n}\n\nexport interface BarListProps {\n spec: BarListSpec;\n theme?: ThemeConfig;\n darkMode?: DarkMode;\n class?: string;\n style?: string | CSSProperties;\n}\n\nexport const BarList = /* @__PURE__ */ defineComponent({\n name: 'BarList',\n props: {\n spec: {\n type: Object as PropType<BarListSpec>,\n required: true,\n },\n theme: {\n type: Object as PropType<ThemeConfig>,\n default: undefined,\n },\n darkMode: {\n type: String as PropType<DarkMode>,\n default: undefined,\n },\n class: {\n type: String,\n default: undefined,\n },\n style: {\n type: [String, Object] as PropType<string | CSSProperties>,\n default: undefined,\n },\n },\n emits: {\n 'row-click': (_row: BarListRowEvent) => true,\n 'row-hover': (_row: BarListRowEvent | null) => true,\n },\n setup(props, { emit, expose }) {\n const containerRef = ref<HTMLDivElement | null>(null);\n let instance: BarListInstance | null = null;\n let prevSpec = '';\n\n const contextTheme = inject(VizThemeKey, undefined);\n const contextDarkMode = inject(VizDarkModeKey, undefined);\n\n function resolveTheme(): ThemeConfig | undefined {\n return mergeThemeConfig(contextTheme?.value, props.theme);\n }\n\n function resolveDarkMode(): DarkMode | undefined {\n return props.darkMode ?? contextDarkMode?.value;\n }\n\n function mountBarList() {\n const container = containerRef.value;\n if (!container) return;\n\n const options: BarListMountOptions = {\n theme: resolveTheme(),\n darkMode: resolveDarkMode(),\n onRowClick: (row: BarListRowEvent) => emit('row-click', row),\n onRowHover: (row: BarListRowEvent | null) => emit('row-hover', row),\n autoResize: true,\n };\n\n instance = createBarList(container, props.spec, options);\n prevSpec = JSON.stringify(props.spec);\n }\n\n function destroyBarList() {\n instance?.destroy();\n instance = null;\n prevSpec = '';\n }\n\n expose({\n get instance() {\n return instance;\n },\n });\n\n onMounted(() => {\n mountBarList();\n });\n\n onUnmounted(() => {\n destroyBarList();\n });\n\n watch(\n () => JSON.stringify(props.spec),\n (newVal) => {\n if (!instance) return;\n if (newVal !== prevSpec) {\n prevSpec = newVal;\n instance.update(props.spec);\n }\n },\n );\n\n watch(\n [\n () => props.theme,\n () => props.darkMode,\n () => contextTheme?.value,\n () => contextDarkMode?.value,\n ],\n () => {\n if (!containerRef.value) return;\n destroyBarList();\n mountBarList();\n },\n );\n\n const rootClass = () => {\n const base = 'oc-barlist-root';\n return props.class ? `${base} ${props.class}` : base;\n };\n\n return () =>\n h('div', {\n ref: containerRef,\n class: rootClass(),\n style: props.style,\n });\n },\n});\n","/**\n * Theme injection context for Vue.\n *\n * Provides typed injection keys and composables for accessing theme\n * and dark mode from any descendant component within a VizThemeProvider.\n */\n\nimport type { DarkMode, ThemeConfig } from '@opendata-ai/openchart-core';\nimport { type ComputedRef, computed, type InjectionKey, inject, type Ref } from 'vue';\n\n/** Injection key for the theme config ref. */\nexport const VizThemeKey: InjectionKey<Ref<ThemeConfig | undefined>> =\n /* @__PURE__ */ Symbol('VizTheme');\n\n/** Injection key for the dark mode ref. */\nexport const VizDarkModeKey: InjectionKey<Ref<DarkMode | undefined>> =\n /* @__PURE__ */ Symbol('VizDarkMode');\n\n/**\n * Read the current theme from the nearest VizThemeProvider.\n * Returns a computed ref that stays reactive to provider changes.\n */\nexport function useVizTheme(): ComputedRef<ThemeConfig | undefined> {\n const theme = inject(VizThemeKey, undefined);\n return computed(() => theme?.value);\n}\n\n/**\n * Read the current dark mode preference from the nearest VizThemeProvider.\n * Returns a computed ref that stays reactive to provider changes.\n */\nexport function useVizDarkMode(): ComputedRef<DarkMode | undefined> {\n const darkMode = inject(VizDarkModeKey, undefined);\n return computed(() => darkMode?.value);\n}\n","/**\n * Vue Chart component: thin wrapper around the vanilla adapter.\n *\n * Mounts a chart instance on render, updates when spec changes,\n * and cleans up on unmount. All heavy lifting is done by the vanilla\n * createChart() function.\n */\n\nimport type {\n Annotation,\n AnnotationPlacementTool,\n ChartSpec,\n DarkMode,\n EditTransaction,\n ElementRef,\n LayerSpec,\n MarkEvent,\n MarkFocusEvent,\n ReaderChangeMeta,\n ThemeConfig,\n} from '@opendata-ai/openchart-core';\nimport { mergeThemeConfig } from '@opendata-ai/openchart-core';\nimport {\n type ChartInstance,\n type ChartReaderSelection,\n createChart,\n createChartReaderBinding,\n type InteractionMode,\n type MountOptions,\n type ReaderPresentationOptions,\n resolveInteractionMode,\n} from '@opendata-ai/openchart-vanilla';\nimport {\n type CSSProperties,\n defineComponent,\n h,\n inject,\n onMounted,\n onUnmounted,\n type PropType,\n ref,\n watch,\n} from 'vue';\nimport { VizDarkModeKey, VizThemeKey } from './context';\n\nexport interface ChartProps {\n reader?: false | ReaderPresentationOptions;\n readerSelection?: ChartReaderSelection;\n /** The chart spec. Graph specs render through `<Graph />` or `<Visualization />`. */\n spec: ChartSpec | LayerSpec;\n theme?: ThemeConfig;\n darkMode?: DarkMode;\n /** Rendering backend for point marks; see the vanilla `MountOptions.renderer`. */\n renderer?: 'auto' | 'svg' | 'canvas';\n /** Quiet row inspection for simple horizontal bars. */\n rowHover?: boolean;\n autoResize?: boolean;\n revision?: string | number;\n /** Interaction mode; inferred from listeners when omitted. Changes switch modes in place. */\n interaction?: InteractionMode;\n /** Selection outline color. Changing it recreates the chart. */\n selectionColor?: string;\n /** Reports engine changes to the armed placement tool. */\n onPlacementToolChange?: (tool: AnnotationPlacementTool | null) => void;\n onEdit?: (tx: EditTransaction) => void;\n onSelect?: (element: ElementRef) => void;\n onDeselect?: (element: ElementRef) => void;\n class?: string;\n style?: string | CSSProperties;\n}\n\nexport const Chart = /* @__PURE__ */ defineComponent({\n name: 'Chart',\n props: {\n reader: {\n type: [Boolean, Object] as PropType<false | ReaderPresentationOptions>,\n default: undefined,\n },\n readerSelection: { type: Object as PropType<ChartReaderSelection>, default: undefined },\n spec: {\n type: Object as PropType<ChartSpec | LayerSpec>,\n required: true,\n },\n theme: {\n type: Object as PropType<ThemeConfig>,\n default: undefined,\n },\n darkMode: {\n type: String as PropType<DarkMode>,\n default: undefined,\n },\n renderer: {\n type: String as PropType<'auto' | 'svg' | 'canvas'>,\n default: undefined,\n },\n // Declared listener props make presence reactive. Vue excludes declared\n // emits listeners from update checks, which would leave the inferred\n // interaction mode stale when a parent adds or removes a listener.\n // `@edit`, `@select`, and `@deselect` bind to these props.\n onEdit: {\n type: Function as PropType<(tx: EditTransaction) => void>,\n default: undefined,\n },\n onSelect: {\n type: Function as PropType<(element: ElementRef) => void>,\n default: undefined,\n },\n onDeselect: {\n type: Function as PropType<(element: ElementRef) => void>,\n default: undefined,\n },\n rowHover: { type: Boolean, default: undefined },\n autoResize: { type: Boolean, default: undefined },\n revision: { type: [String, Number] as PropType<string | number>, default: undefined },\n class: {\n type: String,\n default: undefined,\n },\n style: {\n type: [String, Object] as PropType<string | CSSProperties>,\n default: undefined,\n },\n selectedElement: {\n type: Object as PropType<ElementRef>,\n default: undefined,\n },\n highlight: {\n type: [Array, null] as unknown as PropType<string[] | null>,\n default: undefined,\n },\n interaction: {\n type: String as PropType<InteractionMode>,\n default: undefined,\n },\n selectionColor: { type: String, default: undefined },\n },\n emits: {\n 'reader-change': (_selection: ChartReaderSelection, _meta: ReaderChangeMeta) => true,\n 'mark-click': (_event: MarkEvent) => true,\n 'mark-hover': (_event: MarkEvent) => true,\n 'mark-focus': (_event: MarkFocusEvent) => true,\n 'mark-leave': () => true,\n 'legend-toggle': (_series: string, _visible: boolean) => true,\n 'annotation-click': (_annotation: Annotation, _event: MouseEvent, _element: ElementRef) => true,\n 'highlight-change': (_values: string[]) => true,\n reveal: (_guess: Array<{ x: string | number; y: number }>) => true,\n 'placement-tool-change': (_tool: AnnotationPlacementTool | null) => true,\n },\n setup(props, { emit, expose }) {\n const containerRef = ref<HTMLDivElement | null>(null);\n let instance: ChartInstance | null = null;\n let prevSpec = '';\n const readerBinding = createChartReaderBinding();\n function syncReader() {\n if (containerRef.value && instance)\n readerBinding.sync(\n containerRef.value,\n instance,\n props.spec,\n props.reader,\n props.readerSelection,\n (state, meta) => emit('reader-change', state, meta),\n );\n }\n\n // Inject theme/darkMode from provider as fallbacks\n const contextTheme = inject(VizThemeKey, undefined);\n const contextDarkMode = inject(VizDarkModeKey, undefined);\n\n function resolveTheme(): ThemeConfig | undefined {\n return mergeThemeConfig(contextTheme?.value, props.theme);\n }\n\n function resolveDarkMode(): DarkMode | undefined {\n return props.darkMode ?? contextDarkMode?.value;\n }\n\n function mountChart() {\n const container = containerRef.value;\n if (!container) return;\n\n const options: MountOptions = {\n theme: resolveTheme(),\n darkMode: resolveDarkMode(),\n renderer: props.renderer,\n selectionColor: props.selectionColor,\n onMarkClick: (event: MarkEvent) => emit('mark-click', event),\n onMarkHover: (event: MarkEvent) => emit('mark-hover', event),\n onMarkFocus: (event: MarkFocusEvent) => emit('mark-focus', event),\n onMarkLeave: () => emit('mark-leave'),\n onLegendToggle: (series: string, visible: boolean) =>\n emit('legend-toggle', series, visible),\n onAnnotationClick: (annotation: Annotation, event: MouseEvent, element: ElementRef) =>\n emit('annotation-click', annotation, event, element),\n onHighlightChange: (values: string[]) => emit('highlight-change', values),\n onReveal: (guess) => emit('reveal', guess),\n onSelect: (element: ElementRef) => props.onSelect?.(element),\n onDeselect: (element: ElementRef) => props.onDeselect?.(element),\n onPlacementToolChange: (tool) => emit('placement-tool-change', tool),\n interaction: resolveInteractionMode(props),\n ...(props.selectedElement ? { selectedElement: props.selectedElement } : {}),\n rowHover: props.rowHover,\n autoResize: props.autoResize,\n revision: props.revision,\n onEdit: (tx: EditTransaction) => props.onEdit?.(tx),\n };\n\n instance = createChart(container, props.spec, options);\n prevSpec = JSON.stringify(props.spec);\n syncReader();\n if (props.highlight !== undefined) {\n instance.setHighlight(props.highlight ?? null);\n }\n }\n\n function destroyChart() {\n readerBinding.detach();\n instance?.destroy();\n instance = null;\n prevSpec = '';\n }\n\n // Expose imperative methods for parent ref access\n expose({\n getSelectedElement(): ElementRef | null {\n return instance?.getSelectedElement() ?? null;\n },\n select(elementRef: ElementRef): void {\n instance?.select(elementRef);\n },\n deselect(): void {\n instance?.deselect();\n },\n get instance() {\n return instance;\n },\n });\n\n onMounted(() => {\n mountChart();\n watch(\n [() => resolveInteractionMode(props), () => Boolean(props.onEdit)],\n ([mode, hasEditListener]) => {\n if (mode === 'edit' && !hasEditListener) {\n console.warn(\n \"[openchart] interaction: 'edit' was set without an onEdit handler; edit gestures will run but their transactions have no sink.\",\n );\n }\n },\n { immediate: true },\n );\n });\n\n onUnmounted(() => {\n destroyChart();\n });\n\n // Watch spec and revision together so an undo that changes both updates once\n watch(\n () => [JSON.stringify(props.spec), props.revision] as const,\n ([newSpec, newRevision], [, oldRevision]) => {\n if (!instance) return;\n if (newSpec !== prevSpec || newRevision !== oldRevision) {\n prevSpec = newSpec;\n instance.update(props.spec, {\n selectedElement: props.selectedElement,\n revision: props.revision,\n });\n syncReader();\n }\n },\n );\n\n watch(\n () => resolveInteractionMode(props),\n (mode) => {\n if (instance && instance.getInteraction() !== mode) instance.setInteraction(mode);\n },\n );\n\n // Reapply controlled selection after a mode switch; keep uncontrolled selection.\n watch(\n [() => props.selectedElement, () => resolveInteractionMode(props)],\n ([newVal], [oldVal]) => {\n if (!instance) return;\n if (newVal) {\n instance.select(newVal);\n } else if (oldVal) {\n instance.deselect();\n }\n },\n );\n\n // Watch highlight prop changes\n watch(\n () => props.highlight,\n (newVal) => {\n if (!instance) return;\n instance.setHighlight(newVal ?? null);\n },\n );\n\n watch([() => props.reader, () => props.readerSelection], () => syncReader(), { deep: false });\n\n watch(\n // Structural, so an inline theme object that is re-created each render does not re-apply.\n [() => JSON.stringify(resolveTheme()), () => resolveDarkMode()],\n () => instance?.setTheme({ theme: resolveTheme(), darkMode: resolveDarkMode() }),\n );\n\n // Recreate chart when mount options change.\n watch(\n [\n () => props.rowHover,\n () => props.autoResize,\n () => props.renderer,\n () => props.selectionColor,\n ],\n () => {\n if (!containerRef.value) return;\n destroyChart();\n mountChart();\n },\n );\n\n const rootClass = () => {\n const base = 'oc-chart-root';\n return props.class ? `${base} ${props.class}` : base;\n };\n\n return () =>\n h('div', {\n ref: containerRef,\n class: rootClass(),\n style: props.style,\n });\n },\n});\n","/**\n * Vue scrollytelling shell around the vanilla `createChartStory`.\n *\n * Mirrors the React `<ChartStory>`: a sticky chart panel plus a scrolling\n * narrative column whose blocks advance the story. The vanilla driver owns\n * cumulative patch application, mark morphing, crossfade, and camera; this\n * component owns only Vue lifecycle and the sticky layout.\n *\n * Narrative is provided as the default slot's children (one root node per\n * step) or via the `narrative` prop (an array of vnodes/strings). Pass `step`\n * to drive it externally; omit for self-driving scroll.\n */\n\nimport type { ChartSpec, GeoMapSpec, LayerSpec } from '@opendata-ai/openchart-core';\nimport type { MountOptions } from '@opendata-ai/openchart-vanilla';\nimport {\n type ChartStoryInstance,\n type ChartStoryOptions,\n createChartStory,\n} from '@opendata-ai/openchart-vanilla/story';\nimport {\n type CSSProperties,\n defineComponent,\n h,\n onMounted,\n onUnmounted,\n type PropType,\n ref,\n type VNode,\n watch,\n} from 'vue';\n\nexport interface ChartStoryProps {\n spec: ChartSpec | LayerSpec | GeoMapSpec;\n steps: ChartStoryOptions['steps'];\n narrative?: VNode[];\n step?: number;\n triggerPosition?: number;\n cameraMode?: 'step' | 'scrub';\n mountOptions?: MountOptions;\n}\n\nconst sectionStyle: CSSProperties = {\n position: 'relative',\n display: 'grid',\n gridTemplateColumns: 'minmax(0, 26rem) minmax(0, 1fr)',\n gap: '3rem',\n alignItems: 'start',\n};\n\nconst stepStyle: CSSProperties = {\n minHeight: '80vh',\n display: 'flex',\n alignItems: 'center',\n};\n\nconst panelStyle: CSSProperties = {\n position: 'sticky',\n top: '2rem',\n height: 'calc(100vh - 4rem)',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n};\n\nexport const ChartStory = /* @__PURE__ */ defineComponent({\n name: 'ChartStory',\n props: {\n spec: {\n type: Object as PropType<ChartSpec | LayerSpec | GeoMapSpec>,\n required: true,\n },\n steps: {\n type: Array as PropType<ChartStoryOptions['steps']>,\n required: true,\n },\n narrative: {\n type: Array as PropType<VNode[]>,\n default: undefined,\n },\n step: {\n type: Number,\n default: undefined,\n },\n triggerPosition: {\n type: Number,\n default: undefined,\n },\n cameraMode: {\n type: String as PropType<'step' | 'scrub'>,\n default: undefined,\n },\n mountOptions: {\n type: Object as PropType<MountOptions>,\n default: undefined,\n },\n },\n setup(props, { slots, expose }) {\n const sectionRef = ref<HTMLElement | null>(null);\n const mountRef = ref<HTMLDivElement | null>(null);\n const stepEls = ref<Array<HTMLElement | null>>([]);\n let story: ChartStoryInstance | null = null;\n\n onMounted(() => {\n const mount = mountRef.value;\n if (!mount) return;\n\n const blocks = props.narrative ?? [];\n if (blocks.length > 0 && blocks.length !== props.steps.length) {\n console.warn(\n `[openchart] ChartStory: narrative length (${blocks.length}) does not match steps length (${props.steps.length}). Each step should have a corresponding narrative element.`,\n );\n }\n\n story = createChartStory(\n mount,\n {\n spec: props.spec,\n steps: props.steps,\n triggerPosition: props.triggerPosition,\n cameraMode: props.cameraMode,\n },\n props.mountOptions,\n );\n if (sectionRef.value) story.setContainer(sectionRef.value);\n stepEls.value.forEach((el, i) => {\n if (el) story?.registerStep(i, el);\n });\n if (props.step !== undefined) story.goTo(props.step);\n });\n\n watch(\n () => props.step,\n (next) => {\n if (next !== undefined) story?.goTo(next);\n },\n );\n\n onUnmounted(() => {\n story?.destroy();\n story = null;\n });\n\n expose({\n goTo(index: number) {\n story?.goTo(index);\n },\n get instance() {\n return story;\n },\n });\n\n return () => {\n // Prefer the `narrative` prop; fall back to default slot children so\n // consumers can author steps as template markup.\n const blocks = props.narrative ?? slots.default?.() ?? [];\n return h('section', { ref: sectionRef, style: sectionStyle }, [\n h(\n 'div',\n { style: { position: 'relative' } },\n blocks.map((content, i) =>\n h(\n 'div',\n {\n // Steps are a fixed ordered list, so the index is the stable\n // identity. Do not reorder or splice narrative entries at runtime\n // (that would remap step refs to the wrong content); rebuild the\n // whole story instead.\n key: i,\n ref: (el: unknown) => {\n stepEls.value[i] = el as HTMLElement | null;\n },\n 'data-oc-story-step': i,\n style: stepStyle,\n },\n [h('div', { style: { maxWidth: '36rem' } }, [content])],\n ),\n ),\n ),\n h('div', { style: panelStyle }, [h('div', { ref: mountRef, style: { width: '100%' } })]),\n ]);\n };\n },\n});\n","/**\n * useChart: composable for manual chart lifecycle control.\n *\n * Provides a template ref to attach to a container div. The chart\n * mounts automatically and updates when the spec changes.\n */\n\nimport type {\n ChartLayout,\n ChartSpec,\n DarkMode,\n LayerSpec,\n ThemeConfig,\n} from '@opendata-ai/openchart-core';\nimport { type ChartInstance, createChart, type MountOptions } from '@opendata-ai/openchart-vanilla';\nimport { onMounted, onUnmounted, type Ref, ref, type ShallowRef, shallowRef, watch } from 'vue';\n\nexport interface UseChartOptions {\n /** Theme overrides. */\n theme?: ThemeConfig;\n /** Dark mode setting. */\n darkMode?: DarkMode;\n /** Observe container resizes. Defaults to true. */\n autoResize?: boolean;\n /** Rendering backend for point marks; see the vanilla `MountOptions.renderer`. */\n renderer?: MountOptions['renderer'];\n}\n\nexport interface UseChartReturn {\n /** Template ref to attach to the container div. */\n containerRef: Ref<HTMLDivElement | null>;\n /** The chart instance (null until mounted). */\n chart: ShallowRef<ChartInstance | null>;\n /** The current compiled layout (null until mounted). */\n layout: ShallowRef<ChartLayout | null>;\n}\n\n/**\n * Composable for manual chart lifecycle control.\n *\n * Attach the returned containerRef to a container div via `ref=\"containerRef\"`.\n * The chart mounts automatically and updates when the spec changes.\n */\nexport function useChart(\n spec: Ref<ChartSpec | LayerSpec>,\n options?: UseChartOptions,\n): UseChartReturn {\n const containerRef = ref<HTMLDivElement | null>(null);\n const chart = shallowRef<ChartInstance | null>(null);\n const layout = shallowRef<ChartLayout | null>(null);\n\n function mount() {\n const container = containerRef.value;\n if (!container) return;\n\n const mountOpts: MountOptions = {\n theme: options?.theme,\n darkMode: options?.darkMode,\n autoResize: options?.autoResize,\n renderer: options?.renderer,\n };\n\n const instance = createChart(container, spec.value, mountOpts);\n chart.value = instance;\n layout.value = instance.layout;\n }\n\n function destroy() {\n chart.value?.destroy();\n chart.value = null;\n layout.value = null;\n }\n\n onMounted(() => {\n mount();\n });\n\n onUnmounted(() => {\n destroy();\n });\n\n // Update on spec change\n watch(spec, (newSpec) => {\n const instance = chart.value;\n if (!instance) return;\n instance.update(newSpec);\n layout.value = instance.layout;\n });\n\n return {\n containerRef,\n chart,\n layout,\n };\n}\n","/**\n * useDarkMode: composable that resolves a DarkMode preference to a boolean.\n *\n * - \"force\" -> true\n * - \"off\" -> false\n * - \"auto\" -> matches system preference (reactive to changes)\n */\n\nimport type { DarkMode } from '@opendata-ai/openchart-core';\nimport { onUnmounted, type Ref, ref, watch } from 'vue';\n\n/**\n * Resolve a DarkMode preference to a reactive boolean.\n *\n * For \"auto\" mode, watches the system `prefers-color-scheme` media query\n * and updates reactively when the user changes their OS theme.\n */\nexport function useDarkMode(mode: Ref<DarkMode | undefined>): Ref<boolean> {\n const isDark = ref(resolveInitial(mode.value));\n let cleanup: (() => void) | null = null;\n\n function setup(currentMode: DarkMode | undefined) {\n // Clean up previous listener\n cleanup?.();\n cleanup = null;\n\n if (currentMode !== 'auto') {\n isDark.value = currentMode === 'force';\n return;\n }\n\n if (typeof window === 'undefined' || !window.matchMedia) {\n isDark.value = false;\n return;\n }\n\n const mq = window.matchMedia('(prefers-color-scheme: dark)');\n isDark.value = mq.matches;\n\n const handler = (e: MediaQueryListEvent) => {\n isDark.value = e.matches;\n };\n mq.addEventListener('change', handler);\n cleanup = () => mq.removeEventListener('change', handler);\n }\n\n // Run setup for initial value\n setup(mode.value);\n\n // React to mode changes\n watch(mode, (newMode) => {\n setup(newMode);\n });\n\n onUnmounted(() => {\n cleanup?.();\n cleanup = null;\n });\n\n return isDark;\n}\n\nfunction resolveInitial(mode?: DarkMode): boolean {\n if (mode === 'force') return true;\n if (mode === 'off' || mode === undefined) return false;\n // \"auto\"\n if (typeof window !== 'undefined' && window.matchMedia) {\n return window.matchMedia('(prefers-color-scheme: dark)').matches;\n }\n return false;\n}\n","/**\n * useGraph: composable for imperative graph control.\n *\n * Provides a template ref to pass to <Graph /> and exposes graph methods\n * (search, zoom, select, fly, highlight) for programmatic control of the\n * graph instance. The full vanilla GraphInstance API is threaded through.\n */\n\nimport type { GraphSpec } from '@opendata-ai/openchart-core';\nimport type {\n CameraFlightOptions,\n GraphCamera,\n GraphFlyTarget,\n GraphHighlightTarget,\n GraphInstance,\n GraphLegendData,\n} from '@opendata-ai/openchart-vanilla';\nimport { type Ref, ref } from 'vue';\n\n// Re-exported rather than redeclared so the 3D pose fields (`position`,\n// `target`) stay visible to typed consumers of the Vue wrapper.\nexport type { GraphCamera, GraphFlyTarget } from '@opendata-ai/openchart-vanilla';\n\n/** Handle exposed by Graph component via expose(). */\nexport interface GraphHandle {\n search: (query: string) => void;\n clearSearch: () => void;\n getSearchMatches: () => string[];\n zoomToFit: (opts?: CameraFlightOptions & { padding?: number }) => void;\n zoomToNode: (nodeId: string, opts?: CameraFlightOptions & { scale?: number }) => void;\n flyTo: (target: GraphFlyTarget, opts?: CameraFlightOptions) => void;\n centerAt: (x: number, y: number, opts?: CameraFlightOptions) => void;\n getCamera: () => GraphCamera;\n selectNode: (nodeId: string, opts?: { fly?: boolean } & CameraFlightOptions) => void;\n getSelectedNodes: () => string[];\n highlight: (target: GraphHighlightTarget, opts?: { dimOpacity?: number }) => void;\n clearHighlight: () => void;\n getHighlight: () => string[] | null;\n getLegend: () => GraphLegendData | null;\n setActiveCategories: (values: string[]) => void;\n getActiveCategories: () => string[];\n /** Update graph data, encoding, or presentation through the unified update path. */\n update: (spec: GraphSpec) => void;\n /** The underlying GraphInstance from the vanilla adapter. */\n instance: GraphInstance | null;\n}\n\nexport interface UseGraphReturn {\n /** Template ref to pass to <Graph ref={graphRef} />. */\n graphRef: Ref<GraphHandle | null>;\n /** Search for nodes matching a query string. */\n search: (query: string) => void;\n /** Clear the current search. */\n clearSearch: () => void;\n /** Node ids currently matching the active search query. */\n getSearchMatches: () => string[];\n /** Zoom to fit all nodes in view. Animated by default; `{ duration: 0 }` snaps. */\n zoomToFit: (opts?: CameraFlightOptions & { padding?: number }) => void;\n /** Fly to a node and zoom in (default scale 2). */\n zoomToNode: (nodeId: string, opts?: CameraFlightOptions & { scale?: number }) => void;\n /** Fly the camera to a graph-space target. */\n flyTo: (target: GraphFlyTarget, opts?: CameraFlightOptions) => void;\n /** Center the camera on a graph-space point (keeps current zoom). */\n centerAt: (x: number, y: number, opts?: CameraFlightOptions) => void;\n /** Current camera transform. */\n getCamera: () => GraphCamera;\n /** Select a node by id; `{ fly: true }` also flies to it. */\n selectNode: (nodeId: string, opts?: { fly?: boolean } & CameraFlightOptions) => void;\n /** Get the currently selected node ids. */\n getSelectedNodes: () => string[];\n /**\n * Emphasize a set of nodes; eased via the focus model. Layers over the\n * standing category filter rather than replacing it.\n */\n highlight: (target: GraphHighlightTarget, opts?: { dimOpacity?: number }) => void;\n /**\n * Clear the transient highlight, returning to the standing category filter.\n * Does NOT clear that filter — use `setActiveCategories([])`.\n */\n clearHighlight: () => void;\n /** The effective highlighted node ids, or null when nothing is highlighted. */\n getHighlight: () => string[] | null;\n /** Headless snapshot of the legend. */\n getLegend: () => GraphLegendData | null;\n /** Set the active category filter declaratively (replaces legend toggle state). */\n setActiveCategories: (values: string[]) => void;\n /** Current active category values (empty = all active, no filter). */\n getActiveCategories: () => string[];\n}\n\n/**\n * Composable for imperative graph control.\n *\n * Usage:\n * ```vue\n * <script setup>\n * const { graphRef, search, zoomToFit } = useGraph();\n * </script>\n * <template>\n * <Graph ref=\"graphRef\" :spec=\"spec\" />\n * </template>\n * ```\n */\nexport function useGraph(): UseGraphReturn {\n const graphRef = ref<GraphHandle | null>(null);\n\n function search(query: string) {\n graphRef.value?.search(query);\n }\n\n function clearSearch() {\n graphRef.value?.clearSearch();\n }\n\n function getSearchMatches(): string[] {\n return graphRef.value?.getSearchMatches() ?? [];\n }\n\n function zoomToFit(opts?: CameraFlightOptions & { padding?: number }) {\n graphRef.value?.zoomToFit(opts);\n }\n\n function zoomToNode(nodeId: string, opts?: CameraFlightOptions & { scale?: number }) {\n graphRef.value?.zoomToNode(nodeId, opts);\n }\n\n function flyTo(target: GraphFlyTarget, opts?: CameraFlightOptions) {\n graphRef.value?.flyTo(target, opts);\n }\n\n function centerAt(x: number, y: number, opts?: CameraFlightOptions) {\n graphRef.value?.centerAt(x, y, opts);\n }\n\n function getCamera(): GraphCamera {\n return graphRef.value?.getCamera() ?? { x: 0, y: 0, k: 1 };\n }\n\n function selectNode(nodeId: string, opts?: { fly?: boolean } & CameraFlightOptions) {\n graphRef.value?.selectNode(nodeId, opts);\n }\n\n function getSelectedNodes(): string[] {\n return graphRef.value?.getSelectedNodes() ?? [];\n }\n\n function highlight(target: GraphHighlightTarget, opts?: { dimOpacity?: number }) {\n graphRef.value?.highlight(target, opts);\n }\n\n function clearHighlight() {\n graphRef.value?.clearHighlight();\n }\n\n function getHighlight(): string[] | null {\n return graphRef.value?.getHighlight() ?? null;\n }\n\n function getLegend(): GraphLegendData | null {\n return graphRef.value?.getLegend() ?? null;\n }\n\n function setActiveCategories(values: string[]) {\n graphRef.value?.setActiveCategories(values);\n }\n\n function getActiveCategories(): string[] {\n return graphRef.value?.getActiveCategories() ?? [];\n }\n\n return {\n graphRef,\n search,\n clearSearch,\n getSearchMatches,\n zoomToFit,\n zoomToNode,\n flyTo,\n centerAt,\n getCamera,\n selectNode,\n getSelectedNodes,\n highlight,\n clearHighlight,\n getHighlight,\n getLegend,\n setActiveCategories,\n getActiveCategories,\n };\n}\n","/**\n * useTable: composable for manual table lifecycle control.\n *\n * Attaches to a container ref, mounts a vanilla table instance,\n * and exposes the instance and current state.\n */\n\nimport type { TableSpec } from '@opendata-ai/openchart-core';\nimport {\n createTable,\n type TableInstance,\n type TableMountOptions,\n type TableState,\n} from '@opendata-ai/openchart-vanilla';\nimport { onMounted, onUnmounted, type Ref, ref, type ShallowRef, shallowRef, watch } from 'vue';\n\nexport interface UseTableReturn {\n /** Template ref to attach to the container div. */\n containerRef: Ref<HTMLDivElement | null>;\n /** The table instance (null until mounted). */\n table: ShallowRef<TableInstance | null>;\n /** The current table state (sort, search, page). */\n state: Ref<TableState>;\n}\n\n/**\n * Composable for manual table lifecycle control.\n *\n * Attach the returned containerRef to a container div via `ref=\"containerRef\"`.\n * The table mounts automatically and updates when the spec changes.\n */\nexport function useTable(spec: Ref<TableSpec>, options?: TableMountOptions): UseTableReturn {\n const containerRef = ref<HTMLDivElement | null>(null);\n const table = shallowRef<TableInstance | null>(null);\n const state = ref<TableState>({\n sort: null,\n search: '',\n page: 0,\n });\n\n const originalOnStateChange = options?.onStateChange;\n\n function handleStateChange(newState: TableState) {\n state.value = newState;\n originalOnStateChange?.(newState);\n }\n\n function mount() {\n const container = containerRef.value;\n if (!container) return;\n\n const mountOpts: TableMountOptions = {\n ...options,\n onStateChange: handleStateChange,\n };\n\n const instance = createTable(container, spec.value, mountOpts);\n table.value = instance;\n state.value = instance.getState();\n }\n\n function destroy() {\n table.value?.destroy();\n table.value = null;\n }\n\n onMounted(() => {\n mount();\n });\n\n onUnmounted(() => {\n destroy();\n });\n\n // Update on spec change\n watch(spec, (newSpec) => {\n const instance = table.value;\n if (!instance) return;\n instance.update(newSpec);\n state.value = instance.getState();\n });\n\n return {\n containerRef,\n table,\n state,\n };\n}\n","/**\n * useTableState: managed state composable for controlled table usage.\n *\n * Provides individual sort/search/page state with setters and a\n * resetState function to return to initial values.\n */\n\nimport type { SortState } from '@opendata-ai/openchart-core';\nimport { type Ref, ref } from 'vue';\n\nexport interface UseTableStateReturn {\n sort: Ref<SortState | null>;\n setSort: (sort: SortState | null) => void;\n search: Ref<string>;\n setSearch: (query: string) => void;\n page: Ref<number>;\n setPage: (page: number) => void;\n resetState: () => void;\n}\n\nexport interface UseTableStateOptions {\n sort?: SortState | null;\n search?: string;\n page?: number;\n}\n\n/**\n * Composable for managing table state (sort, search, page).\n *\n * Use with the DataTable component's controlled props:\n * ```vue\n * <script setup>\n * const { sort, search, page, setSort, setSearch, setPage } = useTableState();\n * </script>\n * <template>\n * <DataTable\n * :spec=\"spec\"\n * :sort=\"sort\"\n * :search=\"search\"\n * :page=\"page\"\n * @update:sort=\"setSort\"\n * @update:search=\"setSearch\"\n * @update:page=\"setPage\"\n * />\n * </template>\n * ```\n */\nexport function useTableState(initialState?: UseTableStateOptions): UseTableStateReturn {\n const sort = ref<SortState | null>(initialState?.sort ?? null);\n const search = ref(initialState?.search ?? '');\n const page = ref(initialState?.page ?? 0);\n\n function setSort(newSort: SortState | null) {\n sort.value = newSort;\n }\n\n function setSearch(query: string) {\n search.value = query;\n }\n\n function setPage(newPage: number) {\n page.value = newPage;\n }\n\n function resetState() {\n sort.value = initialState?.sort ?? null;\n search.value = initialState?.search ?? '';\n page.value = initialState?.page ?? 0;\n }\n\n return {\n sort,\n setSort,\n search,\n setSearch,\n page,\n setPage,\n resetState,\n };\n}\n","/**\n * DataTable component: Vue wrapper around the vanilla table adapter.\n *\n * Mounts a table instance on render, updates when spec changes,\n * and cleans up on unmount. Supports both controlled and uncontrolled modes\n * for sort, search, and pagination state.\n */\n\nimport type { DarkMode, SortState, TableSpec, ThemeConfig } from '@opendata-ai/openchart-core';\nimport { mergeThemeConfig } from '@opendata-ai/openchart-core';\nimport {\n createTable,\n type TableInstance,\n type TableMountOptions,\n} from '@opendata-ai/openchart-vanilla';\nimport {\n type CSSProperties,\n defineComponent,\n h,\n inject,\n onMounted,\n onUnmounted,\n type PropType,\n ref,\n watch,\n} from 'vue';\nimport { VizDarkModeKey, VizThemeKey } from './context';\n\nexport interface DataTableProps {\n spec: TableSpec;\n theme?: ThemeConfig;\n darkMode?: DarkMode;\n class?: string;\n style?: string | CSSProperties;\n sort?: SortState | null;\n search?: string;\n page?: number;\n}\n\nexport const DataTable = /* @__PURE__ */ defineComponent({\n name: 'DataTable',\n props: {\n spec: {\n type: Object as PropType<TableSpec>,\n required: true,\n },\n theme: {\n type: Object as PropType<ThemeConfig>,\n default: undefined,\n },\n darkMode: {\n type: String as PropType<DarkMode>,\n default: undefined,\n },\n class: {\n type: String,\n default: undefined,\n },\n style: {\n type: [String, Object] as PropType<string | CSSProperties>,\n default: undefined,\n },\n sort: {\n type: [Object, null] as PropType<SortState | null>,\n default: undefined,\n },\n search: {\n type: String,\n default: undefined,\n },\n page: {\n type: Number,\n default: undefined,\n },\n },\n emits: {\n 'row-click': (_row: Record<string, unknown>) => true,\n 'update:sort': (_sort: SortState | null) => true,\n 'update:search': (_query: string) => true,\n 'update:page': (_page: number) => true,\n },\n setup(props, { emit }) {\n const containerRef = ref<HTMLDivElement | null>(null);\n let instance: TableInstance | null = null;\n\n // Inject theme/darkMode from provider as fallbacks\n const contextTheme = inject(VizThemeKey, undefined);\n const contextDarkMode = inject(VizDarkModeKey, undefined);\n\n function resolveTheme(): ThemeConfig | undefined {\n return mergeThemeConfig(contextTheme?.value, props.theme);\n }\n\n function resolveDarkMode(): DarkMode | undefined {\n return props.darkMode ?? contextDarkMode?.value;\n }\n\n function isControlled(): boolean {\n return props.sort !== undefined || props.search !== undefined || props.page !== undefined;\n }\n\n let prevSpec = '';\n\n function mountTable() {\n const container = containerRef.value;\n if (!container) return;\n\n const mountOptions: TableMountOptions = {\n theme: resolveTheme(),\n darkMode: resolveDarkMode(),\n onRowClick: (row: Record<string, unknown>) => emit('row-click', row),\n autoResize: true,\n onStateChange: (state) => {\n if (state.sort !== undefined) emit('update:sort', state.sort);\n if (state.search !== undefined) emit('update:search', state.search);\n if (state.page !== undefined) emit('update:page', state.page);\n },\n };\n\n if (isControlled()) {\n mountOptions.externalState = {\n sort: props.sort ?? null,\n search: props.search ?? '',\n page: props.page ?? 0,\n };\n }\n\n instance = createTable(container, props.spec, mountOptions);\n prevSpec = JSON.stringify(props.spec);\n }\n\n function destroyTable() {\n instance?.destroy();\n instance = null;\n prevSpec = '';\n }\n\n onMounted(() => {\n mountTable();\n });\n\n onUnmounted(() => {\n destroyTable();\n });\n\n // Watch spec changes via JSON.stringify comparison (consistent with Chart/Graph)\n watch(\n () => JSON.stringify(props.spec),\n (newVal) => {\n if (!instance) return;\n if (newVal !== prevSpec) {\n prevSpec = newVal;\n instance.update(props.spec);\n }\n },\n );\n\n // Apply theme and dark mode changes in place\n watch(\n // Structural, so an inline theme object that is re-created each render does not re-apply.\n [() => JSON.stringify(resolveTheme()), () => resolveDarkMode()],\n () => {\n instance?.setTheme({ theme: resolveTheme(), darkMode: resolveDarkMode() });\n },\n );\n\n // Sync controlled state without remounting\n watch([() => props.sort, () => props.search, () => props.page], () => {\n if (!instance || !isControlled()) return;\n instance.setState({\n sort: props.sort ?? null,\n search: props.search ?? '',\n page: props.page ?? 0,\n });\n });\n\n const rootClass = () => {\n const base = 'oc-table-root';\n return props.class ? `${base} ${props.class}` : base;\n };\n\n return () =>\n h('div', {\n ref: containerRef,\n class: rootClass(),\n style: props.style,\n });\n },\n});\n","/**\n * Vue Map component: thin wrapper around the vanilla adapter.\n *\n * Mounts a map instance on render, updates when spec changes,\n * and cleans up on unmount. All heavy lifting is done by the vanilla\n * createGeoMap() function.\n */\n\nimport type {\n DarkMode,\n GeoMapSpec,\n GeoReaderSelection,\n ReaderChangeMeta,\n ThemeConfig,\n} from '@opendata-ai/openchart-core';\nimport { mergeThemeConfig } from '@opendata-ai/openchart-core';\nimport {\n type Camera,\n createGeoMap,\n createGeoReaderBinding,\n type GeoMapCameraChangeMeta,\n type GeoMapInstance,\n type GeoMapMarkEvent,\n type GeoMapMountOptions,\n type GeoReaderOptions,\n} from '@opendata-ai/openchart-vanilla';\nimport {\n type CSSProperties,\n defineComponent,\n h,\n inject,\n onMounted,\n onUnmounted,\n type PropType,\n ref,\n watch,\n} from 'vue';\nimport { VizDarkModeKey, VizThemeKey } from './context';\n\nexport interface GeoMapProps {\n reader?: false | GeoReaderOptions;\n readerSelection?: GeoReaderSelection;\n labelInventory?: GeoMapMountOptions['labelInventory'];\n spec: GeoMapSpec;\n theme?: ThemeConfig;\n darkMode?: DarkMode;\n class?: string;\n style?: string | CSSProperties;\n}\n\nexport const GeoMap = /* @__PURE__ */ defineComponent({\n name: 'GeoMap',\n props: {\n reader: { type: [Boolean, Object] as PropType<false | GeoReaderOptions>, default: undefined },\n readerSelection: { type: Object as PropType<GeoReaderSelection>, default: undefined },\n labelInventory: {\n type: [Boolean, Object] as PropType<GeoMapMountOptions['labelInventory']>,\n default: undefined,\n },\n spec: {\n type: Object as PropType<GeoMapSpec>,\n required: true,\n },\n theme: {\n type: Object as PropType<ThemeConfig>,\n default: undefined,\n },\n darkMode: {\n type: String as PropType<DarkMode>,\n default: undefined,\n },\n class: {\n type: String,\n default: undefined,\n },\n style: {\n type: [String, Object] as PropType<string | CSSProperties>,\n default: undefined,\n },\n },\n emits: {\n 'reader-change': (_selection: GeoReaderSelection, _meta: ReaderChangeMeta) => true,\n 'mark-click': (_event: GeoMapMarkEvent) => true,\n 'mark-hover': (_event: GeoMapMarkEvent | null) => true,\n 'camera-change': (_camera: Camera, _meta?: GeoMapCameraChangeMeta) => true,\n },\n setup(props, { emit, expose }) {\n const containerRef = ref<HTMLDivElement | null>(null);\n let instance: GeoMapInstance | null = null;\n let prevSpec = '';\n const readerBinding = createGeoReaderBinding();\n function syncReader() {\n if (containerRef.value && instance)\n readerBinding.sync(\n containerRef.value,\n instance,\n props.spec,\n props.reader,\n props.readerSelection,\n (state, meta) => emit('reader-change', state, meta),\n );\n }\n\n // Inject theme/darkMode from provider as fallbacks\n const contextTheme = inject(VizThemeKey, undefined);\n const contextDarkMode = inject(VizDarkModeKey, undefined);\n\n function resolveTheme(): ThemeConfig | undefined {\n return mergeThemeConfig(contextTheme?.value, props.theme);\n }\n\n function resolveDarkMode(): DarkMode | undefined {\n return props.darkMode ?? contextDarkMode?.value;\n }\n\n function mountMap() {\n const container = containerRef.value;\n if (!container) return;\n\n const options: GeoMapMountOptions = {\n theme: resolveTheme(),\n darkMode: resolveDarkMode(),\n onMarkClick: (feature) => emit('mark-click', feature),\n onMarkHover: (feature) => emit('mark-hover', feature),\n onCameraChange: (camera, meta) =>\n meta ? emit('camera-change', camera, meta) : emit('camera-change', camera),\n autoResize: true,\n labelInventory: props.labelInventory,\n };\n\n instance = createGeoMap(container, props.spec, options);\n prevSpec = JSON.stringify(props.spec);\n syncReader();\n }\n\n function destroyMap() {\n readerBinding.detach();\n instance?.destroy();\n instance = null;\n prevSpec = '';\n }\n\n // Expose imperative access to the instance\n expose({\n get instance() {\n return instance;\n },\n });\n\n onMounted(() => {\n mountMap();\n });\n\n onUnmounted(() => {\n destroyMap();\n });\n\n // Watch spec changes\n watch(\n () => JSON.stringify(props.spec),\n (newVal) => {\n if (!instance) return;\n if (newVal !== prevSpec) {\n prevSpec = newVal;\n instance.update(props.spec);\n syncReader();\n }\n },\n );\n\n watch(\n () => props.labelInventory,\n (value) => instance?.setLabelInventory(value),\n );\n\n watch([() => props.reader, () => props.readerSelection], () => syncReader(), { deep: false });\n\n // Apply theme and dark mode changes in place\n watch(\n // Structural, so an inline theme object that is re-created each render does not re-apply.\n [() => JSON.stringify(resolveTheme()), () => resolveDarkMode()],\n () => {\n instance?.setTheme({ theme: resolveTheme(), darkMode: resolveDarkMode() });\n },\n );\n\n const rootClass = () => {\n const base = 'oc-map-root';\n return props.class ? `${base} ${props.class}` : base;\n };\n\n return () =>\n h('div', {\n ref: containerRef,\n class: rootClass(),\n style: props.style,\n });\n },\n});\n","/**\n * Vue Graph component: thin wrapper around the vanilla adapter.\n *\n * Mounts a graph instance on render, updates when spec changes,\n * and cleans up on unmount. All heavy lifting is done by the vanilla\n * createGraph() function.\n *\n * Exposes imperative methods via defineExpose for use with useGraph().\n */\n\nimport type { DarkMode, GraphSpec, ThemeConfig } from '@opendata-ai/openchart-core';\nimport { mergeThemeConfig } from '@opendata-ai/openchart-core';\nimport {\n createGraph,\n type GraphCamera,\n type GraphInstance,\n type GraphMountOptions,\n type GraphTooltipFormatter,\n} from '@opendata-ai/openchart-vanilla';\nimport {\n type CSSProperties,\n defineComponent,\n h,\n inject,\n onMounted,\n onUnmounted,\n type PropType,\n ref,\n watch,\n} from 'vue';\nimport { VizDarkModeKey, VizThemeKey } from './context';\n\n/** Tooltip prop: `false` off, `true` default, or an object with a formatter. */\nexport type GraphTooltipProp = boolean | { formatter?: GraphTooltipFormatter };\n/** Legend prop: `false` off, `true` default, or an object toggling interactivity/counts. */\nexport type GraphLegendProp = boolean | { interactive?: boolean; counts?: boolean };\n\nexport interface GraphProps {\n spec: GraphSpec;\n theme?: ThemeConfig;\n darkMode?: DarkMode;\n tooltip?: GraphTooltipProp;\n legend?: GraphLegendProp;\n fitOnLoad?: boolean;\n /** How much closer than the fit the opening camera sits: a multiplier on the fit (2 = twice as close), not an absolute zoom level. Default 1. Read once at mount; `zoomToFit()` still frames the whole graph. */\n initialZoom?: number;\n class?: string;\n style?: string | CSSProperties;\n}\n\n/** True when the tooltip is on (only the on/off decision gates recreation). */\nfunction tooltipOn(tooltip: GraphTooltipProp | undefined): boolean {\n return tooltip !== false;\n}\n\nexport const Graph = /* @__PURE__ */ defineComponent({\n name: 'Graph',\n props: {\n spec: {\n type: Object as PropType<GraphSpec>,\n required: true,\n },\n theme: {\n type: Object as PropType<ThemeConfig>,\n default: undefined,\n },\n darkMode: {\n type: String as PropType<DarkMode>,\n default: undefined,\n },\n tooltip: {\n type: [Boolean, Object] as PropType<GraphTooltipProp>,\n default: undefined,\n },\n legend: {\n type: [Boolean, Object] as PropType<GraphLegendProp>,\n default: undefined,\n },\n fitOnLoad: {\n type: Boolean,\n default: undefined,\n },\n initialZoom: {\n type: Number,\n default: undefined,\n },\n class: {\n type: String,\n default: undefined,\n },\n style: {\n type: [String, Object] as PropType<string | CSSProperties>,\n default: undefined,\n },\n },\n emits: {\n 'node-click': (_node: Record<string, unknown>) => true,\n 'node-double-click': (_node: Record<string, unknown>) => true,\n 'node-hover': (_node: Record<string, unknown> | null) => true,\n 'edge-hover': (_edge: Record<string, unknown> | null) => true,\n 'selection-change': (_nodeIds: string[]) => true,\n 'legend-hover': (_entry: { field: string; value: string } | null) => true,\n 'legend-toggle': (_activeValues: string[]) => true,\n 'highlight-change': (_nodeIds: string[] | null) => true,\n 'camera-change': (_camera: GraphCamera) => true,\n },\n setup(props, { emit, expose }) {\n const containerRef = ref<HTMLDivElement | null>(null);\n let instance: GraphInstance | null = null;\n let prevSpec = '';\n // First mount plays the entrance; theme/darkMode-only recreations suppress it.\n let mountedOnce = false;\n // Whether the last destroyed instance's entrance played (see mountGraph).\n let prevEntrancePlayed = false;\n\n // Inject theme/darkMode from provider as fallbacks\n const contextTheme = inject(VizThemeKey, undefined);\n const contextDarkMode = inject(VizDarkModeKey, undefined);\n\n function resolveTheme(): ThemeConfig | undefined {\n return mergeThemeConfig(contextTheme?.value, props.theme);\n }\n\n function resolveDarkMode(): DarkMode | undefined {\n return props.darkMode ?? contextDarkMode?.value;\n }\n\n // Stable tooltip formatter wrapper. Vue props are reactive, so reading\n // `props.tooltip` at CALL time always sees the latest formatter — no stale\n // closure, no recreation when the formatter changes. When the tooltip is on\n // we always hand the vanilla layer this wrapper (falling back to defaults),\n // so a formatter can be added or swapped per-render without a remount.\n const stableTooltipFormatter: GraphTooltipFormatter = (item, defaults) => {\n const t = props.tooltip;\n const fn = t && typeof t === 'object' ? t.formatter : undefined;\n return fn ? fn(item, defaults) : defaults;\n };\n\n // `playEntrance` is set only by the dimension remount: 2D and 3D are\n // different renderers, so the new one should play its entrance instead of\n // being suppressed the way a theme-only recreation is.\n function mountGraph(playEntrance = false) {\n const container = containerRef.value;\n if (!container) return;\n\n const tooltipOption: GraphMountOptions['tooltip'] = tooltipOn(props.tooltip)\n ? { formatter: stableTooltipFormatter }\n : false;\n\n const options: GraphMountOptions = {\n theme: resolveTheme(),\n darkMode: resolveDarkMode(),\n tooltip: tooltipOption,\n legend: props.legend,\n fitOnLoad: props.fitOnLoad,\n initialZoom: props.initialZoom,\n onNodeClick: (node) => emit('node-click', node),\n onNodeDoubleClick: (node) => emit('node-double-click', node),\n onNodeHover: (node) => emit('node-hover', node),\n onEdgeHover: (edge) => emit('edge-hover', edge),\n onSelectionChange: (nodeIds) => emit('selection-change', nodeIds),\n onLegendHover: (entry) => emit('legend-hover', entry),\n onLegendToggle: (activeValues) => emit('legend-toggle', activeValues),\n onHighlightChange: (nodeIds) => emit('highlight-change', nodeIds),\n onCameraChange: (camera) => emit('camera-change', camera),\n autoResize: true,\n // Only when the previous instance's entrance played: one still\n // waiting to be seen replays on the new instance instead of being lost.\n suppressEntrance: mountedOnce && !playEntrance && prevEntrancePlayed,\n };\n\n instance = createGraph(container, props.spec, options);\n prevSpec = JSON.stringify(props.spec);\n mountedOnce = true;\n }\n\n function destroyGraph() {\n prevEntrancePlayed = instance?.entrancePlayed ?? false;\n instance?.destroy();\n instance = null;\n prevSpec = '';\n }\n\n // Expose imperative methods for useGraph() composable. Every method forwards\n // opts to the underlying instance so consumers get the full vanilla API.\n expose({\n search(query: string) {\n instance?.search(query);\n },\n clearSearch() {\n instance?.clearSearch();\n },\n getSearchMatches(): string[] {\n return instance?.getSearchMatches() ?? [];\n },\n zoomToFit(opts?: Parameters<GraphInstance['zoomToFit']>[0]) {\n instance?.zoomToFit(opts);\n },\n zoomToNode(nodeId: string, opts?: Parameters<GraphInstance['zoomToNode']>[1]) {\n instance?.zoomToNode(nodeId, opts);\n },\n flyTo(\n target: Parameters<GraphInstance['flyTo']>[0],\n opts?: Parameters<GraphInstance['flyTo']>[1],\n ) {\n instance?.flyTo(target, opts);\n },\n centerAt(x: number, y: number, opts?: Parameters<GraphInstance['centerAt']>[2]) {\n instance?.centerAt(x, y, opts);\n },\n getCamera() {\n return instance?.getCamera() ?? { x: 0, y: 0, k: 1 };\n },\n selectNode(nodeId: string, opts?: Parameters<GraphInstance['selectNode']>[1]) {\n instance?.selectNode(nodeId, opts);\n },\n getSelectedNodes(): string[] {\n return instance?.getSelectedNodes() ?? [];\n },\n highlight(\n target: Parameters<GraphInstance['highlight']>[0],\n opts?: Parameters<GraphInstance['highlight']>[1],\n ) {\n instance?.highlight(target, opts);\n },\n clearHighlight() {\n instance?.clearHighlight();\n },\n getHighlight() {\n return instance?.getHighlight() ?? null;\n },\n getLegend() {\n return instance?.getLegend() ?? null;\n },\n setActiveCategories(values: string[]) {\n instance?.setActiveCategories(values);\n },\n getActiveCategories(): string[] {\n return instance?.getActiveCategories() ?? [];\n },\n update(spec: GraphSpec) {\n instance?.update(spec);\n },\n get instance() {\n return instance;\n },\n });\n\n onMounted(() => {\n mountGraph();\n });\n\n onUnmounted(() => {\n destroyGraph();\n });\n\n // A dimension change picks a different renderer, and the renderer is chosen\n // once, at mount — so it is a remount, not an update(). Registered before\n // the spec watcher so the remount runs first; mountGraph refreshes prevSpec,\n // and the spec watcher then finds nothing to apply.\n watch(\n () => props.spec.dimensions ?? 2,\n () => {\n if (!containerRef.value) return;\n destroyGraph();\n mountGraph(true);\n },\n );\n\n // Watch spec changes\n watch(\n () => JSON.stringify(props.spec),\n (newVal) => {\n if (!instance) return;\n if (newVal !== prevSpec) {\n prevSpec = newVal;\n instance.update(props.spec);\n }\n },\n );\n\n // Recreate graph when theme or darkMode change (spec unchanged). mountedOnce\n // is already true here, so mountGraph passes suppressEntrance: true and the\n // entrance does not replay.\n watch(\n [\n () => props.theme,\n () => props.darkMode,\n () => contextTheme?.value,\n () => contextDarkMode?.value,\n ],\n () => {\n if (!containerRef.value) return;\n destroyGraph();\n mountGraph();\n },\n );\n\n const rootClass = () => {\n const base = 'oc-graph-root';\n return props.class ? `${base} ${props.class}` : base;\n };\n\n return () =>\n h('div', {\n ref: containerRef,\n class: rootClass(),\n style: props.style,\n });\n },\n});\n","import type { DarkMode, RaceFrame, RaceSpec, ThemeConfig } from '@opendata-ai/openchart-core';\nimport { mergeThemeConfig } from '@opendata-ai/openchart-core';\nimport {\n createRace,\n type RaceInstance,\n type RaceMountOptions,\n} from '@opendata-ai/openchart-vanilla';\nimport {\n type CSSProperties,\n computed,\n defineComponent,\n h,\n inject,\n onMounted,\n onUnmounted,\n type PropType,\n ref,\n watch,\n} from 'vue';\nimport { VizDarkModeKey, VizThemeKey } from './context';\n\n/** Options and callbacks for a mounted race chart. */\nexport interface RaceProps {\n spec: RaceSpec;\n theme?: ThemeConfig;\n darkMode?: DarkMode;\n class?: string;\n style?: string | CSSProperties;\n autoResize?: boolean;\n watermark?: boolean;\n onWarn?: RaceMountOptions['onWarn'];\n onPeriod?: (period: RaceFrame['period']) => void;\n}\n\n/** Render an interactive race chart. */\nexport const Race = /* @__PURE__ */ defineComponent({\n name: 'Race',\n props: {\n spec: { type: Object as PropType<RaceSpec>, required: true },\n theme: { type: Object as PropType<ThemeConfig>, default: undefined },\n darkMode: { type: String as PropType<DarkMode>, default: undefined },\n class: { type: String, default: undefined },\n style: { type: [String, Object] as PropType<string | CSSProperties>, default: undefined },\n autoResize: { type: Boolean, default: undefined },\n watermark: { type: Boolean, default: undefined },\n onWarn: { type: Function as PropType<RaceProps['onWarn']>, default: undefined },\n // Vue skips listener-only changes for declared emits. Track this listener as a prop.\n onPeriod: { type: Function as PropType<RaceProps['onPeriod']>, default: undefined },\n onPeriodOnce: { type: Function as PropType<RaceProps['onPeriod']>, default: undefined },\n },\n setup(props, { emit, expose }) {\n const containerRef = ref<HTMLDivElement | null>(null);\n let instance: RaceInstance | null = null;\n let mountedOptionsKey = '';\n let mountedThemeKey = '';\n let mountedSpecKey = '';\n let unsubscribe: (() => void) | undefined;\n const contextTheme = inject(VizThemeKey, undefined);\n const contextDarkMode = inject(VizDarkModeKey, undefined);\n const options = computed<RaceMountOptions>(() => ({\n theme: mergeThemeConfig(contextTheme?.value, props.theme),\n darkMode: props.darkMode ?? contextDarkMode?.value,\n autoResize: props.autoResize,\n watermark: props.watermark,\n onWarn: (message) => (props.onWarn ?? console.warn)(message),\n }));\n const optionsKey = computed(() =>\n JSON.stringify({ autoResize: props.autoResize, watermark: props.watermark }),\n );\n const themeKey = computed(() => {\n const { theme, darkMode } = options.value;\n return JSON.stringify({ theme, darkMode });\n });\n const specKey = computed(() => JSON.stringify(props.spec));\n\n function subscribe() {\n unsubscribe?.();\n unsubscribe =\n props.onPeriod || props.onPeriodOnce\n ? instance?.on('period', (period) => emit('period', period))\n : undefined;\n }\n\n function destroyRace() {\n unsubscribe?.();\n unsubscribe = undefined;\n instance?.destroy();\n instance = null;\n }\n\n function mountRace() {\n const container = containerRef.value;\n if (!container) return;\n const state = instance?.getState();\n const current = createRace(container, props.spec, { ...options.value, initialState: state });\n destroyRace();\n if (state) current.resize();\n\n instance = current;\n mountedOptionsKey = optionsKey.value;\n mountedThemeKey = themeKey.value;\n mountedSpecKey = specKey.value;\n subscribe();\n }\n\n expose({\n get instance() {\n return instance;\n },\n });\n\n onMounted(mountRace);\n onUnmounted(destroyRace);\n\n watch(\n [optionsKey, themeKey, specKey, () => props.onPeriod, () => props.onPeriodOnce],\n (\n [nextOptionsKey, nextThemeKey, nextSpecKey, onPeriod, onPeriodOnce],\n [, , , previous, previousOnce],\n ) => {\n if (onPeriod !== previous || onPeriodOnce !== previousOnce) subscribe();\n if (!instance || nextOptionsKey !== mountedOptionsKey) {\n mountRace();\n return;\n }\n if (nextSpecKey !== mountedSpecKey) {\n instance.update(props.spec);\n mountedSpecKey = nextSpecKey;\n }\n if (nextThemeKey !== mountedThemeKey) {\n instance.setTheme(options.value);\n mountedThemeKey = nextThemeKey;\n }\n },\n { flush: 'post' },\n );\n\n return () =>\n h('div', {\n ref: containerRef,\n class: ['oc-root', props.class],\n style: props.style,\n });\n },\n});\n","/**\n * Vue Sankey component: thin wrapper around the vanilla adapter.\n *\n * Mounts a sankey instance on render, updates when spec changes,\n * and cleans up on unmount. All heavy lifting is done by the vanilla\n * createSankey() function.\n */\n\nimport type { DarkMode, SankeySpec, ThemeConfig } from '@opendata-ai/openchart-core';\nimport { mergeThemeConfig } from '@opendata-ai/openchart-core';\nimport {\n createSankey,\n type SankeyInstance,\n type SankeyMountOptions,\n} from '@opendata-ai/openchart-vanilla';\nimport {\n type CSSProperties,\n defineComponent,\n h,\n inject,\n onMounted,\n onUnmounted,\n type PropType,\n ref,\n watch,\n} from 'vue';\nimport { VizDarkModeKey, VizThemeKey } from './context';\n\nexport interface SankeyProps {\n spec: SankeySpec;\n theme?: ThemeConfig;\n darkMode?: DarkMode;\n class?: string;\n style?: string | CSSProperties;\n}\n\nexport const Sankey = /* @__PURE__ */ defineComponent({\n name: 'Sankey',\n props: {\n spec: {\n type: Object as PropType<SankeySpec>,\n required: true,\n },\n theme: {\n type: Object as PropType<ThemeConfig>,\n default: undefined,\n },\n darkMode: {\n type: String as PropType<DarkMode>,\n default: undefined,\n },\n class: {\n type: String,\n default: undefined,\n },\n style: {\n type: [String, Object] as PropType<string | CSSProperties>,\n default: undefined,\n },\n },\n emits: {\n 'node-click': (_node: Record<string, unknown>) => true,\n 'link-click': (_link: Record<string, unknown>) => true,\n 'node-hover': (_node: Record<string, unknown> | null) => true,\n 'link-hover': (_link: Record<string, unknown> | null) => true,\n },\n setup(props, { emit, expose }) {\n const containerRef = ref<HTMLDivElement | null>(null);\n let instance: SankeyInstance | null = null;\n let prevSpec = '';\n\n // Inject theme/darkMode from provider as fallbacks\n const contextTheme = inject(VizThemeKey, undefined);\n const contextDarkMode = inject(VizDarkModeKey, undefined);\n\n function resolveTheme(): ThemeConfig | undefined {\n return mergeThemeConfig(contextTheme?.value, props.theme);\n }\n\n function resolveDarkMode(): DarkMode | undefined {\n return props.darkMode ?? contextDarkMode?.value;\n }\n\n function mountSankey() {\n const container = containerRef.value;\n if (!container) return;\n\n const options: SankeyMountOptions = {\n theme: resolveTheme(),\n darkMode: resolveDarkMode(),\n onNodeClick: (node: Record<string, unknown>) => emit('node-click', node),\n onLinkClick: (link: Record<string, unknown>) => emit('link-click', link),\n onNodeHover: (node: Record<string, unknown> | null) => emit('node-hover', node),\n onLinkHover: (link: Record<string, unknown> | null) => emit('link-hover', link),\n autoResize: true,\n };\n\n instance = createSankey(container, props.spec, options);\n prevSpec = JSON.stringify(props.spec);\n }\n\n function destroySankey() {\n instance?.destroy();\n instance = null;\n prevSpec = '';\n }\n\n // Expose imperative access to the instance\n expose({\n get instance() {\n return instance;\n },\n });\n\n onMounted(() => {\n mountSankey();\n });\n\n onUnmounted(() => {\n destroySankey();\n });\n\n // Watch spec changes\n watch(\n () => JSON.stringify(props.spec),\n (newVal) => {\n if (!instance) return;\n if (newVal !== prevSpec) {\n prevSpec = newVal;\n instance.update(props.spec);\n }\n },\n );\n\n // Recreate sankey when theme or darkMode change\n watch(\n [\n () => props.theme,\n () => props.darkMode,\n () => contextTheme?.value,\n () => contextDarkMode?.value,\n ],\n () => {\n if (!containerRef.value) return;\n destroySankey();\n mountSankey();\n },\n );\n\n const rootClass = () => {\n const base = 'oc-sankey-root';\n return props.class ? `${base} ${props.class}` : base;\n };\n\n return () =>\n h('div', {\n ref: containerRef,\n class: rootClass(),\n style: props.style,\n });\n },\n});\n","/**\n * VizThemeProvider: provides a theme and dark mode preference to all\n * descendant Chart, DataTable, and Graph components without prop drilling.\n *\n * Components deep-merge the provider theme with their theme prop.\n * An explicit `darkMode` prop wins over the provider preference.\n */\n\nimport type { DarkMode, ThemeConfig } from '@opendata-ai/openchart-core';\nimport { computed, defineComponent, type PropType, provide } from 'vue';\nimport { VizDarkModeKey, VizThemeKey } from './context';\n\nexport interface VizThemeProviderProps {\n theme: ThemeConfig | undefined;\n darkMode?: DarkMode;\n}\n\nexport const VizThemeProvider = /* @__PURE__ */ defineComponent({\n name: 'VizThemeProvider',\n props: {\n theme: {\n type: Object as PropType<ThemeConfig | undefined>,\n default: undefined,\n },\n darkMode: {\n type: String as PropType<DarkMode>,\n default: undefined,\n },\n },\n setup(props, { slots }) {\n // Wrap in computed() so changes to props propagate reactively\n // through the injection system.\n const themeRef = computed(() => props.theme);\n const darkModeRef = computed(() => props.darkMode);\n\n provide(VizThemeKey, themeRef);\n provide(VizDarkModeKey, darkModeRef);\n\n return () => slots.default?.();\n },\n});\n","/**\n * Vue TileMap component: thin wrapper around the vanilla adapter.\n *\n * Mounts a tilemap instance on render, updates when spec changes,\n * and cleans up on unmount. All heavy lifting is done by the vanilla\n * createTileMap() function.\n */\n\nimport type { DarkMode, ThemeConfig, TileMapSpec } from '@opendata-ai/openchart-core';\nimport { mergeThemeConfig } from '@opendata-ai/openchart-core';\nimport {\n createTileMap,\n type TileMapInstance,\n type TileMapMountOptions,\n} from '@opendata-ai/openchart-vanilla';\nimport {\n type CSSProperties,\n defineComponent,\n h,\n inject,\n onMounted,\n onUnmounted,\n type PropType,\n ref,\n watch,\n} from 'vue';\nimport { VizDarkModeKey, VizThemeKey } from './context';\n\nexport interface TileMapTileEvent {\n stateCode: string;\n stateName: string;\n value: number | null;\n data: Record<string, unknown>;\n}\n\nexport interface TileMapProps {\n spec: TileMapSpec;\n theme?: ThemeConfig;\n darkMode?: DarkMode;\n class?: string;\n style?: string | CSSProperties;\n}\n\nexport const TileMap = /* @__PURE__ */ defineComponent({\n name: 'TileMap',\n props: {\n spec: {\n type: Object as PropType<TileMapSpec>,\n required: true,\n },\n theme: {\n type: Object as PropType<ThemeConfig>,\n default: undefined,\n },\n darkMode: {\n type: String as PropType<DarkMode>,\n default: undefined,\n },\n class: {\n type: String,\n default: undefined,\n },\n style: {\n type: [String, Object] as PropType<string | CSSProperties>,\n default: undefined,\n },\n },\n emits: {\n 'tile-click': (_tile: TileMapTileEvent) => true,\n 'tile-hover': (_tile: TileMapTileEvent | null) => true,\n },\n setup(props, { emit, expose }) {\n const containerRef = ref<HTMLDivElement | null>(null);\n let instance: TileMapInstance | null = null;\n let prevSpec = '';\n\n // Inject theme/darkMode from provider as fallbacks\n const contextTheme = inject(VizThemeKey, undefined);\n const contextDarkMode = inject(VizDarkModeKey, undefined);\n\n function resolveTheme(): ThemeConfig | undefined {\n return mergeThemeConfig(contextTheme?.value, props.theme);\n }\n\n function resolveDarkMode(): DarkMode | undefined {\n return props.darkMode ?? contextDarkMode?.value;\n }\n\n function mountTileMap() {\n const container = containerRef.value;\n if (!container) return;\n\n const options: TileMapMountOptions = {\n theme: resolveTheme(),\n darkMode: resolveDarkMode(),\n onTileClick: (tile: TileMapTileEvent) => emit('tile-click', tile),\n onTileHover: (tile: TileMapTileEvent | null) => emit('tile-hover', tile),\n autoResize: true,\n };\n\n instance = createTileMap(container, props.spec, options);\n prevSpec = JSON.stringify(props.spec);\n }\n\n function destroyTileMap() {\n instance?.destroy();\n instance = null;\n prevSpec = '';\n }\n\n // Expose imperative access to the instance\n expose({\n get instance() {\n return instance;\n },\n });\n\n onMounted(() => {\n mountTileMap();\n });\n\n onUnmounted(() => {\n destroyTileMap();\n });\n\n // Watch spec changes\n watch(\n () => JSON.stringify(props.spec),\n (newVal) => {\n if (!instance) return;\n if (newVal !== prevSpec) {\n prevSpec = newVal;\n instance.update(props.spec);\n }\n },\n );\n\n // Recreate tilemap when theme or darkMode change\n watch(\n [\n () => props.theme,\n () => props.darkMode,\n () => contextTheme?.value,\n () => contextDarkMode?.value,\n ],\n () => {\n if (!containerRef.value) return;\n destroyTileMap();\n mountTileMap();\n },\n );\n\n const rootClass = () => {\n const base = 'oc-tilemap-root';\n return props.class ? `${base} ${props.class}` : base;\n };\n\n return () =>\n h('div', {\n ref: containerRef,\n class: rootClass(),\n style: props.style,\n });\n },\n});\n","/**\n * Visualization routing component: renders Chart, DataTable, or Graph\n * based on the spec type. Use this when rendering arbitrary VizSpec values.\n *\n * For event handlers, use the specific component (Chart, DataTable, Graph) directly.\n */\n\nimport type { DarkMode, ThemeConfig, VizSpec } from '@opendata-ai/openchart-core';\nimport {\n isBarListSpec,\n isGeoMapSpec,\n isGraphSpec,\n isRaceSpec,\n isSankeySpec,\n isTableSpec,\n isTileMapSpec,\n} from '@opendata-ai/openchart-core';\nimport { type CSSProperties, defineComponent, h, type PropType } from 'vue';\nimport { BarList } from './BarList';\nimport { Chart } from './Chart';\nimport { DataTable } from './DataTable';\nimport { GeoMap } from './GeoMap';\nimport { Graph } from './Graph';\nimport { Race } from './Race';\nimport { Sankey } from './Sankey';\nimport { TileMap } from './TileMap';\n\nexport interface VisualizationProps {\n spec: VizSpec;\n theme?: ThemeConfig;\n darkMode?: DarkMode;\n class?: string;\n style?: string | CSSProperties;\n}\n\nexport const Visualization = /* @__PURE__ */ defineComponent({\n name: 'Visualization',\n props: {\n spec: {\n type: Object as PropType<VizSpec>,\n required: true,\n },\n theme: {\n type: Object as PropType<ThemeConfig>,\n default: undefined,\n },\n darkMode: {\n type: String as PropType<DarkMode>,\n default: undefined,\n },\n class: {\n type: String,\n default: undefined,\n },\n style: {\n type: [String, Object] as PropType<string | CSSProperties>,\n default: undefined,\n },\n },\n setup(props) {\n return () => {\n const { spec, theme, darkMode, class: className, style } = props;\n const sharedProps = { theme, darkMode, class: className, style };\n\n if (isTableSpec(spec)) {\n return h(DataTable, { ...sharedProps, spec });\n }\n if (isGraphSpec(spec)) {\n return h(Graph, { ...sharedProps, spec });\n }\n if (isSankeySpec(spec)) {\n return h(Sankey, { ...sharedProps, spec });\n }\n if (isTileMapSpec(spec)) {\n return h(TileMap, { ...sharedProps, spec });\n }\n if (isBarListSpec(spec)) {\n return h(BarList, { ...sharedProps, spec });\n }\n if (isGeoMapSpec(spec)) {\n return h(GeoMap, { ...sharedProps, spec });\n }\n if (isRaceSpec(spec)) {\n return h(Race, { ...sharedProps, spec });\n }\n return h(Chart, { ...sharedProps, spec });\n };\n },\n});\n"],"mappings":";AAeA,cAAc;AAiBd;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AA0BP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;;;AC1EP,SAAS,wBAAwB;AACjC;AAAA,EAGE;AAAA,OACK;AACP;AAAA,EAEE;AAAA,EACA;AAAA,EACA,UAAAA;AAAA,EACA;AAAA,EACA;AAAA,EAEA;AAAA,EACA;AAAA,OACK;;;ACbP,SAA2B,UAA6B,cAAwB;AAGzE,IAAM,cACK,uBAAO,UAAU;AAG5B,IAAM,iBACK,uBAAO,aAAa;AAM/B,SAAS,cAAoD;AAClE,QAAM,QAAQ,OAAO,aAAa,MAAS;AAC3C,SAAO,SAAS,MAAM,OAAO,KAAK;AACpC;AAMO,SAAS,iBAAoD;AAClE,QAAM,WAAW,OAAO,gBAAgB,MAAS;AACjD,SAAO,SAAS,MAAM,UAAU,KAAK;AACvC;;;ADIO,IAAM,UAA0B,gCAAgB;AAAA,EACrD,MAAM;AAAA,EACN,OAAO;AAAA,IACL,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,UAAU;AAAA,IACZ;AAAA,IACA,OAAO;AAAA,MACL,MAAM;AAAA,MACN,SAAS;AAAA,IACX;AAAA,IACA,U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,IAAE,SAAS,EAAE,GAAG,aAAa,KAAK,CAAC;AAAA,MAC5C;AACA,UAAI,cAAc,IAAI,GAAG;AACvB,eAAOA,IAAE,SAAS,EAAE,GAAG,aAAa,KAAK,CAAC;AAAA,MAC5C;AACA,UAAI,aAAa,IAAI,GAAG;AACtB,eAAOA,IAAE,QAAQ,EAAE,GAAG,aAAa,KAAK,CAAC;AAAA,MAC3C;AACA,UAAI,WAAW,IAAI,GAAG;AACpB,eAAOA,IAAE,MAAM,EAAE,GAAG,aAAa,KAAK,CAAC;AAAA,MACzC;AACA,aAAOA,IAAE,OAAO,EAAE,GAAG,aAAa,KAAK,CAAC;AAAA,IAC1C;AAAA,EACF;AACF,CAAC;","names":["inject","inject","mergeThemeConfig","defineComponent","h","inject","onMounted","onUnmounted","ref","watch","defineComponent","ref","inject","mergeThemeConfig","onMounted","watch","onUnmounted","h","defineComponent","h","onMounted","onUnmounted","ref","watch","createChart","onMounted","onUnmounted","ref","watch","onUnmounted","ref","watch","ref","onMounted","onUnmounted","ref","shallowRef","watch","ref","mergeThemeConfig","createTable","defineComponent","h","inject","onMounted","onUnmounted","ref","watch","defineComponent","ref","inject","mergeThemeConfig","createTable","onMounted","onUnmounted","watch","h","mergeThemeConfig","defineComponent","h","inject","onMounted","onUnmounted","ref","watch","defineComponent","ref","inject","mergeThemeConfig","onMounted","onUnmounted","watch","h","mergeThemeConfig","defineComponent","h","inject","onMounted","onUnmounted","ref","watch","defineComponent","ref","inject","mergeThemeConfig","onMounted","onUnmounted","watch","h","mergeThemeConfig","computed","defineComponent","h","inject","onMounted","onUnmounted","ref","watch","defineComponent","ref","inject","computed","mergeThemeConfig","onMounted","onUnmounted","watch","h","mergeThemeConfig","defineComponent","h","inject","onMounted","onUnmounted","ref","watch","defineComponent","ref","inject","mergeThemeConfig","onMounted","onUnmounted","watch","h","computed","defineComponent","defineComponent","computed","mergeThemeConfig","defineComponent","h","inject","onMounted","onUnmounted","ref","watch","defineComponent","ref","inject","mergeThemeConf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HAOA,kHAAA,sHAQA,8MAAA,kNAYA,sJAAA,0JAUA,8BACE,uEAMF,+MAAA,kPAAA,sPAAA,2OAAA,+OFvIA,mDAKA,uLAQA,6CAIA,8DAKA,iDAIA,qEAKA,0DAKA,mCAKA,6EAKA,8CC9CA,+BAIA,kRAcA,kEAKA,2OAUA,0HAOA,sEAIA,kKAOA,iGAKA,0IAAA,oPAAA,+OASA,sGAKA,qGAOA,sEAKA,kEAIA,oEAIA,8DAMA,2EAKA,uFAOA,6DAMA,gJtBxGF,oBSFI,yRAQA,uRAUA,kUAWA,+UAYA,ubAAA,wbAkBA,oaAiBA,kbAgBA,mcAAA,scAiBA,0TAAA,8TF5GF,iGAWA,mGAaA,qGAWA,uGAWA,iHAeA,4FAoBA,8IAaA,iGAcA,0FAaA,4FAcA,2FAaA,yDAUA,sGAYA,mFAUA,mFAWA,uFAWA,yFAaA,iKAgBA,sGiBrOE,oTAAA,mTAYA,iJAAA,gJAUA,ySAaA,4TASA,yEAIA,uIAMA,kTAAA,kTAcA,iRAaA,6RAAA,8RAeA,mWAYA,6DAKA,+VAaA,6TAWA,6TAeA,6VAeA,kVAiBA,8ZAAA,gYAgBA,kUAcA,kQAUA,wRAUA,mRAMA,+EAKA,0QAUA,qWAgBA,kUAYA,wYAeA,sXAYA,0TxBvTJ,yBIDE,uCACE,6LAAA,+LAAA,qMAAA,sMYVJ,4EAIA","sources":["../src/styles/index.css","../src/styles/table.css","../src/styles/tokens.css","../src/styles/sparkline.css","../src/styles/dark.css","../src/styles/table-select.css","../src/styles/table-animation.css","../src/styles/graph.css","../src/styles/sankey.css","../src/styles/map-zoom.css","../src/styles/legend.css","../src/styles/reader.css","../src/styles/interaction.css","../src/styles/placement.css","../src/styles/series-search.css","../src/styles/you-draw-it.css","../src/styles/chrome.css","../src/styles/tooltip.css","../src/styles/race.css","../src/styles/race-table.css","../src/styles/playback.css","../src/styles/animation.css","../src/styles/reduced-motion.css","../src/styles/keyframes.css","../src/styles/base.css"],"sourcesContent":["/**\n * @opendata-ai/openchart-core styles\n *\n * CSS with oc- prefix for all class names.\n * CSS custom properties for theme overrides.\n * Dark mode via .oc-dark class on the container.\n * Cascade layers: oc.tokens, oc.base, oc.components, oc.animation, oc.reduced-motion.\n */\n\n/* For optimal typography, load Inter: https://fonts.google.com/specimen/Inter */\n\n@layer oc.tokens, oc.base, oc.components, oc.animation, oc.reduced-motion;\n\n@import \"./tokens.css\";\n@import \"./dark.css\";\n@import \"./base.css\";\n@import \"./chrome.css\";\n@import \"./tooltip.css\";\n@import \"./legend.css\";\n@import \"./reader.css\";\n@import \"./interaction.css\";\n@import \"./placement.css\";\n@import \"./series-search.css\";\n@import \"./you-draw-it.css\";\n@import \"./table.css\";\n@import \"./table-select.css\";\n@import \"./table-animation.css\";\n@import \"./graph.css\";\n@import \"./sankey.css\";\n@import \"./map-zoom.css\";\n@import \"./sparkline.css\";\n@import \"./keyframes.css\";\n@import \"./animation.css\";\n@import \"./reduced-motion.css\";\n@import \"./playback.css\";\n@import \"./race.css\";\n@import \"./race-table.css\";\n","@layer oc.components {\n /* ---------------------------------------------------------------------------\n * Table base\n * --------------------------------------------------------------------------- */\n\n .oc-table-wrapper {\n font-family: var(--oc-font-family);\n color: var(--oc-text);\n\n & > .oc-chrome {\n margin-bottom: 16px;\n padding-left: 16px;\n padding-right: 16px;\n }\n\n & > .oc-chrome:first-child {\n padding-top: 4px;\n }\n\n & table {\n width: 100%;\n border-collapse: collapse;\n }\n\n & th,\n & td {\n /* 12 + 24 + 12 = 48px rows. Condensed and relaxed keep the same\n line box and change only the padding, so the ladder is 40/48/56. */\n padding: 12px 16px;\n line-height: 24px;\n text-align: left;\n border-bottom: 1px solid var(--oc-border);\n /* Column widths from the engine already sum to the container width;\n without border-box the padding pushes each cell wider than its\n computed width and auto layout rescales the whole row. */\n box-sizing: border-box;\n }\n\n & th {\n font-weight: 500;\n font-size: 12px;\n text-transform: uppercase;\n letter-spacing: 0.04em;\n color: var(--oc-text-muted);\n font-variant-numeric: tabular-nums;\n white-space: nowrap;\n }\n\n & thead {\n position: sticky;\n top: 0;\n z-index: 2;\n }\n\n /* A hairline, like every other rule in the table. The old 2px header rule\n was the heaviest line on the page and drew the eye away from the data. */\n & thead th {\n border-bottom-width: 1px;\n }\n\n & td {\n font-size: 14px;\n font-variant-numeric: tabular-nums;\n }\n\n & th:focus {\n outline: 2px solid var(--oc-focus);\n outline-offset: -2px;\n }\n\n & tbody:focus {\n outline: none;\n }\n }\n\n .oc-table-title {\n margin-bottom: 4px;\n font-size: var(--oc-title-computed-size, var(--oc-title-size));\n font-weight: var(--oc-title-computed-weight, var(--oc-title-weight));\n color: var(--oc-title-computed-color, var(--oc-text));\n }\n\n .oc-table-subtitle {\n margin-bottom: 8px;\n font-size: var(--oc-subtitle-computed-size, var(--oc-subtitle-size));\n font-weight: var(--oc-subtitle-computed-weight, var(--oc-subtitle-weight));\n color: var(--oc-subtitle-computed-color, var(--oc-text-secondary));\n }\n\n .oc-table-source {\n font-size: var(--oc-source-computed-size, var(--oc-source-size));\n color: var(--oc-source-computed-color, var(--oc-text-muted));\n }\n\n .oc-table-footer-text {\n font-size: var(--oc-footer-computed-size, var(--oc-source-size));\n color: var(--oc-footer-computed-color, var(--oc-text-muted));\n }\n\n .oc-table-scroll {\n overflow-x: auto;\n }\n\n /* ---------------------------------------------------------------------------\n * Sticky first column\n * --------------------------------------------------------------------------- */\n\n .oc-table--sticky {\n & th:first-child,\n & td:first-child {\n position: sticky;\n left: 0;\n z-index: 1;\n background: var(--oc-bg);\n }\n }\n\n /* ---------------------------------------------------------------------------\n * Sort controls\n * --------------------------------------------------------------------------- */\n\n .oc-table-sort-btn {\n background: none;\n border: none;\n cursor: pointer;\n padding: 2px;\n margin-left: 6px;\n display: inline-flex;\n flex-direction: column;\n align-items: center;\n vertical-align: middle;\n gap: 2px;\n\n &::before,\n &::after {\n content: \"\";\n display: block;\n width: 0;\n height: 0;\n border-left: 5px solid transparent;\n border-right: 5px solid transparent;\n transition:\n opacity 0.15s,\n border-color 0.15s;\n }\n\n &::before {\n border-bottom: 4.5px solid var(--oc-text-secondary);\n opacity: 0.35;\n }\n\n &::after {\n border-top: 4.5px solid var(--oc-text-secondary);\n opacity: 0.35;\n }\n\n &:hover::before,\n &:hover::after {\n opacity: 0.75;\n }\n }\n\n th[aria-sort=\"ascending\"] .oc-table-sort-btn {\n &::before {\n opacity: 1;\n border-bottom-color: var(--oc-text);\n }\n\n &::after {\n opacity: 0.15;\n }\n }\n\n th[aria-sort=\"descending\"] .oc-table-sort-btn {\n &::after {\n opacity: 1;\n border-top-color: var(--oc-text);\n }\n\n &::before {\n opacity: 0.15;\n }\n }\n\n /* ---------------------------------------------------------------------------\n * Search\n * --------------------------------------------------------------------------- */\n\n /* Shared search-input skin (table + series-search).\n Padding excluded: it diverges (table: 8px 12px; series: 0 10px 0 28px)\n and series-search.css is imported before table.css — a padding declaration\n here would beat the series-search override by source order. */\n .oc-table-search input,\n .oc-series-search-input {\n width: 100%;\n border: 1px solid var(--oc-border);\n border-radius: var(--oc-radius-md);\n font-size: 13px;\n font-family: inherit;\n background: transparent;\n color: var(--oc-text);\n box-sizing: border-box;\n transition: border-color 0.15s;\n }\n\n .oc-table-search input::placeholder,\n .oc-series-search-input::placeholder {\n color: var(--oc-text-muted);\n font-size: 13px;\n }\n\n .oc-table-search input:focus,\n .oc-series-search-input:focus {\n outline: none;\n border-color: var(--oc-focus);\n box-shadow: 0 0 0 3px var(--oc-focus-ring);\n }\n\n .oc-table-search {\n padding: 8px 0;\n\n & input {\n padding: 8px 12px;\n }\n }\n\n /* ---------------------------------------------------------------------------\n * Pagination\n * --------------------------------------------------------------------------- */\n\n .oc-table-pagination {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 12px 0 4px;\n font-size: 13px;\n color: var(--oc-text-secondary);\n\n & button {\n padding: 6px 14px;\n border: 1px solid var(--oc-border);\n border-radius: var(--oc-radius-md);\n background: transparent;\n color: var(--oc-text);\n cursor: pointer;\n font-size: 13px;\n font-family: inherit;\n transition:\n background 0.15s,\n border-color 0.15s;\n\n &:disabled {\n opacity: 0.35;\n cursor: not-allowed;\n }\n\n &:hover:not(:disabled) {\n background: var(--oc-hover-bg);\n border-color: var(--oc-axis);\n }\n\n &:focus-visible {\n outline: 2px solid var(--oc-focus);\n outline-offset: 1px;\n }\n }\n }\n\n .oc-table-pagination-info {\n font-variant-numeric: tabular-nums;\n }\n\n .oc-table-pagination-btns {\n display: flex;\n gap: 8px;\n }\n\n /* ---------------------------------------------------------------------------\n * Bar cells\n * --------------------------------------------------------------------------- */\n\n .oc-table-bar {\n position: relative;\n }\n\n .oc-table-bar-fill {\n position: absolute;\n top: 8px;\n left: 0;\n bottom: 8px;\n border-radius: var(--oc-radius-sm);\n opacity: 0.18;\n pointer-events: none;\n }\n\n /* A low-alpha tint of a mid-dark color all but disappears on a dark\n surface, so dark mode lifts it. */\n .oc-dark .oc-table-bar-fill {\n opacity: 0.4;\n }\n\n .oc-table-bar-value {\n position: relative;\n z-index: 1;\n }\n\n /* ---------------------------------------------------------------------------\n * Sparkline cells\n * --------------------------------------------------------------------------- */\n\n .oc-table-sparkline {\n display: block;\n width: 100%;\n position: relative;\n\n & svg {\n display: block;\n width: 100%;\n overflow: visible;\n }\n }\n\n .oc-table-sparkline-dot {\n position: absolute;\n border-radius: 50%;\n width: 5px;\n height: 5px;\n }\n\n .oc-table-sparkline-labels {\n display: flex;\n justify-content: space-between;\n font-size: 11px;\n line-height: 1;\n color: var(--oc-text-secondary);\n }\n\n /* ---------------------------------------------------------------------------\n * Image cells\n * --------------------------------------------------------------------------- */\n\n .oc-table-image {\n display: inline-block;\n vertical-align: middle;\n\n & img {\n object-fit: cover;\n }\n }\n\n .oc-table-image-rounded img,\n .oc-table-image-rounded .oc-table-image-placeholder {\n border-radius: 50%;\n }\n\n /* Stands in for an image that failed to load or has no link. Its width and\n height are set inline to the image's size. */\n .oc-table-image-placeholder {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n overflow: hidden;\n background: var(--oc-gray-100);\n border: 1px solid var(--oc-gridline);\n color: var(--oc-text-secondary);\n font-size: 10px;\n line-height: 1;\n text-align: center;\n }\n\n /* ---------------------------------------------------------------------------\n * Flag cells\n * --------------------------------------------------------------------------- */\n\n .oc-table-flag {\n font-size: 1.2em;\n }\n\n /* ---------------------------------------------------------------------------\n * Density\n *\n * regular 48px rows (base), condensed 40px, relaxed 56px.\n * --------------------------------------------------------------------------- */\n\n .oc-table--condensed {\n & th,\n & td {\n padding: 8px 12px;\n line-height: 24px;\n font-size: 13px;\n }\n\n & th {\n font-size: 11px;\n }\n\n & .oc-table-bar-fill {\n top: 5px;\n bottom: 5px;\n }\n }\n\n .oc-table--relaxed {\n & th,\n & td {\n padding: 16px 20px;\n line-height: 24px;\n }\n\n & .oc-table-bar-fill {\n top: 12px;\n bottom: 12px;\n }\n }\n\n /* ---------------------------------------------------------------------------\n * Striping\n * --------------------------------------------------------------------------- */\n\n .oc-table--striped tbody tr:nth-child(even) {\n background: color-mix(in srgb, var(--oc-text) 3%, transparent);\n }\n\n /* ---------------------------------------------------------------------------\n * Delta chips\n * --------------------------------------------------------------------------- */\n\n .oc-table-delta {\n display: inline-flex;\n align-items: baseline;\n gap: 4px;\n padding: 2px 8px;\n border-radius: var(--oc-radius-md);\n font-weight: 500;\n font-variant-numeric: tabular-nums;\n line-height: 16px;\n }\n\n .oc-table-delta-arrow {\n font-size: 0.8em;\n line-height: 1;\n }\n\n .oc-table-delta--positive {\n color: var(--oc-positive);\n background: var(--oc-positive-tint);\n }\n\n .oc-table-delta--negative {\n color: var(--oc-negative);\n background: var(--oc-negative-tint);\n }\n\n .oc-table-delta--neutral {\n color: var(--oc-text-muted);\n background: color-mix(in srgb, var(--oc-text) 6%, transparent);\n }\n\n /* Category chips: the engine supplies the tint, ink and dot color inline. */\n .oc-table-chip {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n padding: 2px 8px;\n border-radius: var(--oc-radius-full);\n font-size: 12px;\n font-weight: 500;\n line-height: 16px;\n white-space: nowrap;\n }\n\n .oc-table-chip-dot {\n flex: none;\n width: 6px;\n height: 6px;\n border-radius: 50%;\n }\n\n /* ---------------------------------------------------------------------------\n * Totals footer\n * --------------------------------------------------------------------------- */\n\n tfoot.oc-table-total {\n position: sticky;\n bottom: 0;\n z-index: 2;\n\n & td {\n font-weight: 600;\n border-bottom: none;\n border-top: 1px solid var(--oc-border);\n }\n }\n\n /* ---------------------------------------------------------------------------\n * Cards mode (below 400px)\n *\n * Rows become two-column grids with the header printed per cell. `display:\n * grid` drops the implicit table roles, so the renderer stamps explicit ARIA\n * roles on every element; `display: contents` is deliberately NOT used —\n * it removes the row box the grid needs and breaks the semantics further.\n * --------------------------------------------------------------------------- */\n\n .oc-table--cards {\n & .oc-table-scroll {\n overflow-x: hidden;\n }\n\n & table {\n table-layout: fixed;\n }\n\n & thead {\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n }\n\n & tbody tr,\n & tfoot tr {\n display: grid;\n /* Two equal halves keep every label/value pair the same width; an\n auto first column makes the third cell in a row narrower than the\n second and the card reads ragged. */\n grid-template-columns: repeat(2, minmax(0, 1fr));\n gap: 2px 12px;\n align-items: baseline;\n padding: 10px 12px;\n border-bottom: 1px solid var(--oc-border);\n }\n\n & td {\n display: block;\n width: auto;\n max-width: 100%;\n padding: 0;\n border-bottom: none;\n overflow-wrap: anywhere;\n text-align: right;\n }\n\n & td::before {\n content: attr(data-label);\n display: block;\n font-size: 11px;\n font-weight: 500;\n letter-spacing: 0.04em;\n text-transform: uppercase;\n color: var(--oc-text-muted);\n text-align: left;\n }\n\n /* A column with no header (flags, logos) prints no label either. */\n & td[data-label=\"\"]::before {\n content: none;\n }\n\n /* Priority 1 leads the card on its own line, label suppressed. */\n & td[data-priority=\"1\"] {\n grid-column: 1 / -1;\n font-size: 15px;\n font-weight: 600;\n text-align: left;\n }\n\n & td[data-priority=\"1\"]::before {\n content: none;\n }\n\n & td[data-priority=\"3\"] {\n display: none;\n }\n\n & .oc-table-sparkline {\n width: 100%;\n }\n }\n\n /* ---------------------------------------------------------------------------\n * Row hover (when onRowClick is set)\n * --------------------------------------------------------------------------- */\n\n .oc-table--clickable tbody {\n & tr {\n cursor: pointer;\n }\n\n & tr:hover {\n background: var(--oc-hover-bg);\n }\n }\n\n /* ---------------------------------------------------------------------------\n * Keyboard cell focus indicator\n * --------------------------------------------------------------------------- */\n\n .oc-table-cell-focus {\n outline: 2px solid var(--oc-focus);\n outline-offset: -2px;\n }\n\n /* ---------------------------------------------------------------------------\n * Empty state\n * --------------------------------------------------------------------------- */\n\n .oc-table-empty {\n padding: 32px 16px;\n text-align: center;\n color: var(--oc-text-secondary);\n font-size: 14px;\n font-style: italic;\n }\n}\n\n@layer oc.components {\n .oc-table--priority {\n & table {\n width: 100%;\n table-layout: auto;\n }\n & [hidden] {\n display: none;\n }\n & th,\n & td {\n /* biome-ignore lint/complexity/noImportantStyles: responsive mode overrides authored desktop inline column widths. */\n width: auto !important;\n padding-inline: 8px;\n }\n & th {\n position: relative;\n white-space: normal;\n padding-right: 20px;\n min-height: 44px;\n }\n & .oc-table-sort-btn {\n position: absolute;\n inset: 0;\n width: 100%;\n height: 100%;\n margin: 0;\n padding-right: 4px;\n align-items: flex-end;\n justify-content: center;\n }\n & .oc-table-details {\n white-space: normal;\n }\n & summary {\n cursor: pointer;\n min-height: 44px;\n display: flex;\n align-items: center;\n font-size: 12px;\n }\n & details[open] {\n min-width: 110px;\n }\n & dl {\n margin: 4px 0 12px;\n font-size: 12px;\n }\n & dt {\n margin-top: 8px;\n color: var(--oc-text-secondary);\n }\n & dd {\n margin: 4px 0 0;\n }\n }\n}\n","/* GENERATED FILE — do not edit. Source: packages/core/src/styles/token-definitions.ts. Regenerate: bun run generate:tokens */\n\n@layer oc.tokens {\n /* ---------------------------------------------------------------------------\n * Custom properties (light mode defaults)\n *\n * Defaults remain in CSS so host styles can override them. The JS theme\n * engine stamps only authored theme overrides (theme-tokens.ts).\n * --------------------------------------------------------------------------- */\n\n .oc-root,\n .oc-chart-root,\n .oc-table-wrapper,\n .oc-table-root,\n .oc-graph-wrapper,\n .oc-graph-root,\n .oc-sankey-root,\n .oc-tilemap-root,\n .oc-barlist-root,\n .oc-map-root {\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n\n /* Opt out of iOS text auto-inflation so measured widths match rendered text. */\n -webkit-text-size-adjust: 100%;\n text-size-adjust: 100%;\n\n --oc-font-family:\n \"Inter Variable\", Inter, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, sans-serif;\n --oc-font-mono: \"JetBrains Mono\", \"Fira Code\", \"Cascadia Code\", monospace;\n\n /* Animation easing presets via CSS linear() */\n --oc-ease-smooth: linear(\n 0 0%,\n 0.006 2.5%,\n 0.0285 5%,\n 0.0764 7.5%,\n 0.1562 10%,\n 0.2556 12.5%,\n 0.3506 15%,\n 0.4318 17.5%,\n 0.5 20%,\n 0.5577 22.5%,\n 0.6072 25%,\n 0.6503 27.5%,\n 0.6881 30%,\n 0.7216 32.5%,\n 0.7514 35%,\n 0.7782 37.5%,\n 0.8023 40%,\n 0.824 42.5%,\n 0.8438 45%,\n 0.8616 47.5%,\n 0.8778 50%,\n 0.9059 55%,\n 0.9291 60%,\n 0.948 65%,\n 0.9633 70%,\n 0.9755 75%,\n 0.9849 80%,\n 0.9918 85%,\n 0.9965 90%,\n 0.9991 95%,\n 1 100%\n );\n --oc-ease-snappy: linear(\n 0 0%,\n 0.2926 2%,\n 0.4806 4%,\n 0.6111 6%,\n 0.7061 8%,\n 0.7772 10%,\n 0.8315 12%,\n 0.8735 14%,\n 0.9061 16%,\n 0.9314 18%,\n 0.951 20%,\n 0.966 22%,\n 0.9773 24%,\n 0.9855 26%,\n 0.9913 28%,\n 0.995 30%,\n 0.9971 35%,\n 0.9985 40%,\n 0.9994 45%,\n 0.9998 50%,\n 1 55%,\n 1 60%,\n 1 80%,\n 1 100%\n );\n --oc-ease-gentle: linear(\n 0,\n 0.157,\n 0.438,\n 0.64,\n 0.766,\n 0.85,\n 0.906,\n 0.941,\n 0.964,\n 0.978,\n 0.988,\n 0.994,\n 0.998,\n 1\n );\n --oc-ease-snap: linear(\n 0 0%,\n 0.1876 2%,\n 0.3469 4%,\n 0.4773 6%,\n 0.582 8%,\n 0.6656 10%,\n 0.7325 12%,\n 0.7862 14%,\n 0.8296 16%,\n 0.8647 18%,\n 0.8931 20%,\n 0.9161 22%,\n 0.9346 24%,\n 0.9494 26%,\n 0.961 28%,\n 0.97 30%,\n 0.9768 35%,\n 0.9825 40%,\n 0.987 45%,\n 0.9906 50%,\n 0.9934 55%,\n 0.9956 60%,\n 0.9971 65%,\n 0.9983 70%,\n 0.999 75%,\n 0.9995 80%,\n 0.9998 85%,\n 0.9999 90%,\n 1 95%,\n 1 100%\n );\n --oc-ease-punch: linear(\n 0 0%,\n 0.1714 2.5%,\n 0.3321 5%,\n 0.4776 7.5%,\n 0.605 10%,\n 0.7132 12.5%,\n 0.8029 15%,\n 0.8757 17.5%,\n 0.9336 20%,\n 0.9787 22.5%,\n 1.0127 25%,\n 1.0373 27.5%,\n 1.0539 30%,\n 1.0636 32.5%,\n 1.0673 35%,\n 1.0659 37.5%,\n 1.06 40%,\n 1.0509 42.5%,\n 1.0428 45%,\n 1.0358 47.5%,\n 1.0296 50%,\n 1.0196 55%,\n 1.0122 60%,\n 1.0069 65%,\n 1.0033 70%,\n 1.0011 75%,\n 0.9999 80%,\n 0.9995 85%,\n 0.9996 90%,\n 0.9998 95%,\n 1 100%\n );\n --oc-ease-glide: linear(\n 0 0%,\n 0.006 2.5%,\n 0.0285 5%,\n 0.0764 7.5%,\n 0.1562 10%,\n 0.2556 12.5%,\n 0.3506 15%,\n 0.4318 17.5%,\n 0.5 20%,\n 0.5577 22.5%,\n 0.6072 25%,\n 0.6503 27.5%,\n 0.6881 30%,\n 0.7216 32.5%,\n 0.7514 35%,\n 0.7782 37.5%,\n 0.8023 40%,\n 0.824 42.5%,\n 0.8438 45%,\n 0.8616 47.5%,\n 0.8778 50%,\n 0.9059 55%,\n 0.9291 60%,\n 0.948 65%,\n 0.9633 70%,\n 0.9755 75%,\n 0.9849 80%,\n 0.9918 85%,\n 0.9965 90%,\n 0.9991 95%,\n 1 100%\n );\n\n /* Animation timing defaults */\n --oc-animation-duration: 800ms;\n --oc-animation-stagger: 80ms;\n --oc-annotation-delay: 150ms;\n\n /* Typography scale (editorial design system) */\n --oc-title-size: 26px;\n --oc-title-weight: 600; /* one ladder: 400 regular / 500 medium / 600 semibold / 700 bold */\n --oc-title-tracking: -0.022em;\n --oc-subtitle-size: 14px;\n --oc-subtitle-weight: 400;\n --oc-source-size: 12px;\n --oc-source-weight: 400;\n --oc-body-size: 13px;\n /* Emphasis for existing zero rules; does not change the domain */\n --oc-gridline-zero: rgba(0, 0, 0, 0.22);\n --oc-endpoint-label-size: 13px;\n --oc-endpoint-value-size: 12px;\n --oc-endpoint-entry-gap: 6px;\n --oc-endpoint-value-gap: 4px;\n --oc-endpoint-column-gap: 18px;\n --oc-map-no-data-fill: #f0f0f0; /* Engine omission derives neutral[100] from the active theme */\n --oc-map-no-data-hatch: #c9c9c9; /* Engine omission derives neutral[300] from the active theme */\n --oc-map-interior-border: rgba(0, 0, 0, 0.14);\n --oc-map-outline-border: rgba(0, 0, 0, 0.4);\n --oc-annotation-label: #333333;\n --oc-annotation-muted: #6b7280;\n --oc-annotation-leader: #8f8f8f;\n --oc-annotation-rule: #888888;\n --oc-annotation-range-fill: #f0c040;\n --oc-annotation-marker-fill: #ffffff;\n --oc-annotation-plate: #ffffff;\n --oc-eyebrow-size: 11px;\n --oc-eyebrow-weight: 500;\n --oc-eyebrow-tracking: 0.08em;\n\n /* Surfaces (light mode defaults) */\n --oc-bg: #ffffff;\n --oc-card: #ffffff;\n --oc-secondary: #f4f4f5; /* zinc-100, raised surface */\n\n /*\n * Text levels. Names invert across modes: in light mode \"muted\" sits at\n * a lighter zinc step than \"subtle\" because both are picked relative to\n * the active background, not from a fixed lightness ladder. The intent\n * is \"muted = first step away from primary text\"; \"subtle = next step\n * down\"; etc.\n *\n * Light mode: text=zinc-950, secondary=zinc-700, muted=zinc-500,\n * subtle=zinc-400, faint=zinc-300\n * Dark mode (dark.css): inverts the surface tokens but keeps the same\n * muted -> subtle -> faint progression away from primary.\n */\n --oc-text: #09090b;\n --oc-text-secondary: #3f3f46;\n --oc-text-muted: #71717a;\n --oc-text-faint: #d4d4d8;\n\n /*\n * Derived neutral ramp. Named by the share of *text* in a text-toward-\n * background mix: 100 is nearly the background, 800 is nearly the text.\n * These static values are the mix against the default surfaces; mounts\n * restamp them from ResolvedTheme.colors.neutral, which a custom warm or\n * cool theme derives from its own text/background pair.\n */\n --oc-gray-100: #f0f0f0;\n --oc-gray-200: #e1e1e2;\n --oc-gray-300: #c9c9c9;\n --oc-gray-400: #9d9d9d;\n --oc-gray-600: #787879;\n --oc-gray-800: #474748;\n\n /* Lines */\n --oc-gridline: rgba(0, 0, 0, 0.05);\n --oc-axis: rgba(0, 0, 0, 0.14); /* hairline = theme.colors.hairline, not the tick-label ink */\n --oc-border: rgba(0, 0, 0, 0.08);\n --oc-border-radius: 8px; /* containers and tooltips; marks use --oc-radius-sm */\n\n /* Radius ladder */\n --oc-radius-sm: 2px;\n --oc-radius-md: 6px;\n --oc-radius-lg: var(--oc-border-radius);\n --oc-radius-full: 999px;\n\n /* Brand and semantic */\n --oc-accent: #06b6d4;\n --oc-accent-strong: #0891b2; /* darker cyan for line strokes on light bg */\n /* kept equal to DEFAULT_THEME.colors.positive (token-theme-parity test) */\n --oc-positive: #15803d;\n --oc-negative: #dc2626;\n /* delta chip background */\n --oc-positive-tint: color-mix(in srgb, var(--oc-positive) 10%, var(--oc-bg));\n --oc-negative-tint: color-mix(in srgb, var(--oc-negative) 10%, var(--oc-bg));\n --oc-focus: #3b82f6;\n /* static, intentionally NOT derived from --oc-focus and NOT flipped in dark mode */\n --oc-focus-ring: rgba(59, 130, 246, 0.1);\n --oc-focus-ring-strong: rgba(59, 130, 246, 0.25);\n --oc-editable-hover: rgba(79, 70, 229, 0.35); /* edit-mode hover outline, indigo one-off */\n\n /* Spacing scale (4px base) — only --oc-space-2/4 are consumed (JS-stamped) */\n --oc-space-2: 8px;\n --oc-space-4: 16px;\n\n /*\n * Hover language. The hovered element goes to full ink; the rest of its\n * group drops to --oc-hover-dim over --oc-hover-duration. Maps override the\n * dim locally (3000 county paths at 0.3 reads as a blackout, not a hint).\n */\n --oc-hover-dim: 0.3;\n --oc-hover-duration: 140ms;\n --oc-map-hover-dim: 0.75;\n\n /* Interactive states */\n --oc-hover-bg: rgba(0, 0, 0, 0.025);\n --oc-tooltip-bg: rgba(255, 255, 255, 0.88);\n --oc-tooltip-border: rgba(0, 0, 0, 0.08);\n --oc-tooltip-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 0 1px rgba(0, 0, 0, 0.12);\n --oc-tooltip-text: #09090b;\n --oc-legend-text: #3f3f46;\n }\n}\n","@layer oc.components {\n /**\n * Sparkline display mode.\n *\n * Stamped on the SVG root as data-display=\"sparkline\" by the renderer when\n * the spec sets display: 'sparkline'. Strips any inherited padding/margin\n * so the mark renders truly edge-to-edge in tight container layouts (KPI\n * cards, table cells, dashboard tiles).\n */\n\n .oc-chart[data-display=\"sparkline\"] {\n display: block;\n margin: 0;\n padding: 0;\n }\n\n /**\n * Data-arrival pulse. The update driver stamps `oc-pulse` on the sparkline's\n * terminator dot when a transition finishes and strips it 600ms later.\n * Deliberately not scoped under `.oc-animate`: that class only exists during\n * the entrance window, and this fires on updates.\n */\n .oc-chart[data-display=\"sparkline\"] .oc-pulse {\n animation: oc-pulse 600ms ease-out;\n }\n\n @media (prefers-reduced-motion: reduce) {\n .oc-chart[data-display=\"sparkline\"] .oc-pulse {\n animation: none;\n }\n }\n}\n","/* GENERATED FILE — do not edit. Source: packages/core/src/styles/token-definitions.ts. Regenerate: bun run generate:tokens */\n\n@layer oc.tokens {\n /* ---------------------------------------------------------------------------\n * Dark mode overrides (fallback defaults)\n *\n * Dark defaults stay in CSS; authored theme overrides are resolved and\n * stamped by the JS theme engine.\n * --------------------------------------------------------------------------- */\n\n .oc-dark {\n /* Surfaces (zinc-based achromatic ramp) */\n --oc-bg: #09090b;\n --oc-card: #111113;\n --oc-secondary: #27272a;\n\n /* Text levels — see tokens.css for the cross-mode naming rationale */\n --oc-text: #f7f8f8;\n --oc-text-secondary: #d0d6e0;\n --oc-text-muted: #a1a1aa;\n --oc-text-faint: #52525b;\n\n /* Lines */\n --oc-gridline: rgba(255, 255, 255, 0.06);\n --oc-axis: rgba(255, 255, 255, 0.14);\n --oc-border: rgba(255, 255, 255, 0.1);\n\n /* Brand and semantic — accent stays cyan (no darkening on dark bg) */\n --oc-accent: #06b6d4;\n --oc-accent-strong: #06b6d4;\n --oc-positive: #4ade80;\n --oc-negative: #f87171;\n --oc-focus: #60a5fa;\n\n /* Interactive states */\n --oc-hover-bg: rgba(255, 255, 255, 0.05);\n --oc-tooltip-bg: rgba(17, 17, 19, 0.92);\n --oc-tooltip-border: rgba(255, 255, 255, 0.08);\n --oc-tooltip-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 1px rgba(0, 0, 0, 0.4);\n --oc-tooltip-text: #f7f8f8;\n --oc-legend-text: #d0d6e0;\n\n /* Annotation and neutral colors */\n --oc-gridline-zero: rgba(255, 255, 255, 0.24);\n --oc-map-no-data-fill: #171719;\n --oc-map-no-data-hatch: #3d3e3f;\n --oc-map-interior-border: rgba(255, 255, 255, 0.18);\n --oc-map-outline-border: rgba(255, 255, 255, 0.38);\n --oc-annotation-label: #d1d5db;\n --oc-annotation-muted: #9ca3af;\n --oc-annotation-leader: #9aa0a6;\n --oc-annotation-rule: #9ca3af;\n --oc-annotation-range-fill: #f0c040;\n --oc-annotation-marker-fill: #09090b;\n --oc-annotation-plate: #09090b;\n --oc-gray-100: #171719;\n --oc-gray-200: #262627;\n --oc-gray-300: #3d3e3f;\n --oc-gray-400: #68696a;\n --oc-gray-600: #8c8c8d;\n --oc-gray-800: #bcbcbd;\n }\n}\n","/* Table column selection (`interaction: 'select'`): the selected header's outline and its cells' fill. */\n\n/* The mount sets --oc-table-selection-color from the host's `selectionColor`;\n without it the selection draws in the theme's text color. */\n@layer oc.components {\n .oc-table-col-select {\n appearance: none;\n background: none;\n border: none;\n padding: 0;\n margin: 0;\n font: inherit;\n color: inherit;\n letter-spacing: inherit;\n text-transform: inherit;\n text-align: inherit;\n cursor: pointer;\n border-radius: var(--oc-radius-sm);\n\n &:hover {\n color: var(--oc-text);\n }\n\n &:focus-visible {\n outline: 2px solid var(--oc-focus);\n outline-offset: 2px;\n }\n }\n\n .oc-table-wrapper th[data-selected] {\n color: var(--oc-text);\n outline: 2px solid var(--oc-table-selection-color, var(--oc-text));\n outline-offset: -2px;\n }\n\n /* An inset shadow paints over a cell's own background (heatmap and category\n fills are inline), so the tint shows on every cell type. */\n .oc-table-wrapper td[data-selected] {\n box-shadow: inset 0 0 0 100vmax\n color-mix(in srgb, var(--oc-table-selection-color, var(--oc-text)) 8%, transparent);\n }\n\n /* Priority mode stretches the sort button over the whole header; beside a\n select button it keeps to the header's right edge so the label stays clickable. */\n .oc-table--priority th .oc-table-col-select ~ .oc-table-sort-btn {\n inset: 0 0 0 auto;\n width: 20px;\n }\n}\n","/* GENERATED FILE — do not edit. Source: packages/core/src/motion/choreography.ts. Regenerate: bun run generate:motion */\n\n@layer oc.animation {\n /* ---------------------------------------------------------------------------\n * Table entrance animations (.oc-table-wrapper.oc-animate)\n * --------------------------------------------------------------------------- */\n\n .oc-table-wrapper.oc-animate {\n /* Chrome (title/subtitle): fade + slide up */\n & > .oc-chrome {\n animation: oc-enter-fade var(--oc-table-chrome-dur, calc(var(--oc-animation-duration) * 0.6))\n var(--oc-animation-ease, var(--oc-ease-smooth)) both;\n animation-delay: var(--oc-table-chrome-delay, 0ms);\n animation-play-state: var(--oc-play-state, running);\n }\n\n /* Table header: quick fade before rows start */\n & thead {\n animation: oc-enter-fade-only\n var(--oc-table-thead-dur, calc(var(--oc-animation-duration) * 0.4))\n var(--oc-animation-ease, var(--oc-ease-smooth)) both;\n animation-delay: var(--oc-table-thead-delay, 0ms);\n animation-play-state: var(--oc-play-state, running);\n }\n\n /* Row entrance: slide up only, no opacity (cells handle their own fading\n to avoid opacity compounding between row and cell animations) */\n & tbody tr {\n animation: oc-table-enter-row var(--oc-table-row-dur, var(--oc-animation-duration))\n var(--oc-animation-ease, var(--oc-ease-smooth)) both;\n animation-delay: var(\n --oc-table-row-delay,\n calc(var(--oc-animation-stagger) * var(--oc-row-index, 0))\n );\n animation-play-state: var(--oc-play-state, running);\n }\n\n /* Cell text: fade in synced with row slide */\n & tbody td {\n animation: oc-enter-fade-only\n var(--oc-table-cell-dur, calc(var(--oc-animation-duration) * 0.5))\n var(--oc-animation-ease, var(--oc-ease-smooth)) both;\n animation-delay: var(\n --oc-table-cell-delay,\n calc(var(--oc-animation-stagger) * var(--oc-row-index, 0))\n );\n animation-play-state: var(--oc-play-state, running);\n }\n\n /* Heatmap/category cell backgrounds: longer fade, once the row is halfway in */\n & td.oc-table-heatmap,\n & td.oc-table-category {\n animation: oc-enter-fade-only\n var(--oc-table-heatmap-cell-dur, calc(var(--oc-animation-duration) * 0.7))\n var(--oc-animation-ease, var(--oc-ease-smooth)) both;\n animation-delay: var(\n --oc-table-heatmap-cell-delay,\n calc(\n var(--oc-table-heatmap-cell-after, calc(var(--oc-animation-duration) * 0.2)) +\n var(--oc-animation-stagger) *\n var(--oc-row-index, 0)\n )\n );\n animation-play-state: var(--oc-play-state, running);\n }\n\n /* Bar fill: clip-path grow only (no opacity change to preserve resting\n opacity: 0.15 from table.css), once the row is halfway in */\n & .oc-table-bar-fill {\n animation: oc-table-enter-bar-fill var(--oc-table-bar-fill-dur, var(--oc-animation-duration))\n var(--oc-animation-ease, var(--oc-ease-smooth)) both;\n animation-delay: var(\n --oc-table-bar-fill-delay,\n calc(\n var(--oc-table-bar-fill-after, calc(var(--oc-animation-duration) * 0.2)) +\n var(--oc-animation-stagger) *\n var(--oc-row-index, 0)\n )\n );\n animation-play-state: var(--oc-play-state, running);\n }\n\n /* Sparkline SVG: clip-path reveal left-to-right once the row is mostly in.\n Targets the SVG directly (not the wrapper) to avoid clipping\n absolutely-positioned dots and labels. */\n & .oc-table-sparkline > svg {\n animation: oc-enter-line\n var(--oc-table-sparkline-dur, calc(var(--oc-animation-duration) * 0.8))\n var(--oc-animation-ease, var(--oc-ease-smooth)) both;\n animation-delay: var(\n --oc-table-sparkline-delay,\n calc(\n var(--oc-table-sparkline-after, calc(var(--oc-animation-duration) * 0.308881)) +\n var(--oc-animation-stagger) *\n var(--oc-row-index, 0)\n )\n );\n animation-play-state: var(--oc-play-state, running);\n }\n\n /* Sparkline dots and labels: fade in as the line draws through the end */\n & .oc-table-sparkline-dot,\n & .oc-table-sparkline-labels {\n animation: oc-enter-fade-only\n var(--oc-table-sparkline-dot-dur, calc(var(--oc-animation-duration) * 0.3))\n var(--oc-animation-ease, var(--oc-ease-smooth)) both;\n animation-delay: var(\n --oc-table-sparkline-dot-delay,\n calc(\n var(--oc-table-sparkline-dot-after, calc(var(--oc-animation-duration) * 0.834109)) +\n var(--oc-animation-stagger) *\n var(--oc-row-index, 0)\n )\n );\n animation-play-state: var(--oc-play-state, running);\n }\n\n /* Search and pagination: quick fade on mount */\n & .oc-table-search,\n & .oc-table-pagination {\n animation: oc-enter-fade-only\n var(--oc-table-search-pagination-dur, calc(var(--oc-animation-duration) * 0.5))\n var(--oc-animation-ease, var(--oc-ease-smooth)) both;\n animation-delay: var(--oc-table-search-pagination-delay, 0ms);\n animation-play-state: var(--oc-play-state, running);\n }\n }\n}\n","@layer oc.components {\n /* ---------------------------------------------------------------------------\n * Graph\n * --------------------------------------------------------------------------- */\n\n .oc-graph-wrapper {\n position: relative;\n overflow: hidden;\n background: var(--oc-bg);\n font-family: var(--oc-font-family);\n width: 100%;\n height: 100%;\n }\n\n .oc-graph-canvas {\n display: block;\n width: 100%;\n height: 100%;\n cursor: grab;\n }\n\n .oc-graph-canvas--dragging {\n cursor: grabbing;\n }\n\n /* 3D surface. 3d-force-graph builds its own `div.scene-container` inside the\n * element it is handed and sizes the WebGL canvas imperatively, so the slot\n * has to fill the same box the 2D canvas fills or the first measurement is\n * zero-height. */\n .oc-graph-3d,\n .oc-graph-3d .scene-container {\n display: block;\n width: 100%;\n height: 100%;\n }\n\n .oc-graph-3d {\n cursor: grab;\n }\n\n .oc-graph-3d .scene-container canvas {\n display: block;\n width: 100%;\n height: 100%;\n }\n\n .oc-graph-chrome {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n z-index: 2;\n padding: 16px 16px 8px;\n pointer-events: none;\n\n & .oc-title {\n font-size: var(--oc-title-size);\n font-weight: var(--oc-title-weight);\n letter-spacing: var(--oc-title-tracking);\n color: var(--oc-text);\n margin: 0 0 4px;\n --_stroke: color-mix(in srgb, var(--oc-bg) 80%, transparent);\n text-shadow:\n -2px -2px 0 var(--_stroke),\n 2px -2px 0 var(--_stroke),\n -2px 2px 0 var(--_stroke),\n 2px 2px 0 var(--_stroke),\n 0 -2px 0 var(--_stroke),\n 0 2px 0 var(--_stroke),\n -2px 0 0 var(--_stroke),\n 2px 0 0 var(--_stroke);\n }\n\n & .oc-subtitle {\n font-size: var(--oc-subtitle-size);\n color: var(--oc-text-secondary);\n margin: 0;\n --_stroke: color-mix(in srgb, var(--oc-bg) 80%, transparent);\n text-shadow:\n -1px -1px 0 var(--_stroke),\n 1px -1px 0 var(--_stroke),\n -1px 1px 0 var(--_stroke),\n 1px 1px 0 var(--_stroke);\n }\n }\n\n .oc-graph-legend {\n position: absolute;\n top: 12px;\n right: 12px;\n /* Slightly translucent so the graph reads as continuous underneath, in\n * whatever surface the mount stamped on the wrapper. */\n background: color-mix(in srgb, var(--oc-bg) 88%, transparent);\n border: 1px solid var(--oc-border);\n border-radius: var(--oc-radius-lg);\n padding: 8px 12px;\n font-size: 12px;\n color: var(--oc-text-secondary);\n max-height: 200px;\n overflow-y: auto;\n }\n\n .oc-graph-legend-item {\n display: flex;\n align-items: center;\n gap: 6px;\n padding: 2px 0;\n /* Button reset for interactive rows (rendered as <button>). */\n width: 100%;\n margin: 0;\n background: none;\n border: none;\n font: inherit;\n color: inherit;\n text-align: left;\n cursor: default;\n }\n\n /* Interactive legend rows are buttons; give them affordance + a focus ring. */\n button.oc-graph-legend-item {\n cursor: pointer;\n border-radius: var(--oc-radius-sm);\n\n &:hover {\n background: var(--oc-focus-ring);\n }\n\n &:focus-visible {\n outline: 2px solid var(--oc-focus);\n outline-offset: 1px;\n }\n }\n\n /* De-emphasized (toggled-off) category. */\n .oc-graph-legend-item--inactive {\n opacity: 0.45;\n }\n\n .oc-graph-legend-label {\n flex: 1 1 auto;\n }\n\n .oc-graph-legend-count {\n color: var(--oc-text-secondary);\n font-variant-numeric: tabular-nums;\n margin-left: auto;\n padding-left: 8px;\n }\n\n .oc-graph-legend-swatch {\n width: 10px;\n height: 10px;\n border-radius: 50%;\n flex-shrink: 0;\n }\n\n /* Edge-legend swatches render as a short line, not a dot. */\n .oc-graph-legend-swatch--line {\n width: 12px;\n height: 3px;\n border-radius: 1px;\n }\n\n .oc-graph-search {\n position: absolute;\n top: 12px;\n left: 12px;\n\n & input {\n font-family: var(--oc-font-family);\n font-size: var(--oc-body-size);\n padding: 6px 10px;\n border: 1px solid var(--oc-border);\n border-radius: var(--oc-radius-md);\n background: color-mix(in srgb, var(--oc-bg) 88%, transparent);\n color: var(--oc-text);\n outline: none;\n\n &:focus {\n border-color: var(--oc-focus);\n box-shadow: 0 0 0 2px var(--oc-focus-ring-strong);\n }\n }\n }\n\n /*\n * No dark-mode canvas override lives here. graph-mount stamps the resolved\n * theme surface on the wrapper (--oc-bg), so dark graphs sit on the same\n * --oc-bg the rest of the library uses instead of a private GitHub-dark hex,\n * and the legend/search panels mix against whatever that surface is.\n */\n}\n","@layer oc.components {\n /* ---------------------------------------------------------------------------\n * Sankey\n *\n * Hovering a node (or a link) traces the whole path through it: everything\n * upstream and everything downstream stays lit, the rest drops back. The mount\n * writes the opacities; this file only owns how they move, using the shared\n * hover duration so a sankey fades on the same clock as a bar chart.\n *\n * The transitions are switched off during the entrance (`.oc-animate`), where\n * the keyframes own opacity and a competing transition would smear them.\n * --------------------------------------------------------------------------- */\n\n .oc-sankey:not(.oc-animate) .oc-sankey-link path {\n transition: fill-opacity var(--oc-hover-duration) ease-out;\n }\n\n .oc-sankey:not(.oc-animate) .oc-sankey-node,\n .oc-sankey:not(.oc-animate) .oc-sankey-label {\n transition: opacity var(--oc-hover-duration) ease-out;\n }\n\n /* Labels are decoration over the flow: never a text cursor, never a selection\n * drag that eats the hover. */\n .oc-sankey-label {\n pointer-events: none;\n user-select: none;\n }\n}\n","@layer oc.components {\n /* ---------------------------------------------------------------------------\n * Map reader zoom (geo.zoom)\n * The overlay is pinned to the map area (left/top/width/height stamped in %\n * by vanilla/src/map-zoom.ts) and passes pointer events through, so only the\n * buttons are hit targets. Surfaces reuse the tooltip tokens: a translucent\n * card that reads over any fill, light or dark.\n * --------------------------------------------------------------------------- */\n\n .oc-map-zoom {\n position: absolute;\n pointer-events: none;\n z-index: 2;\n }\n\n .oc-map-zoom-controls {\n position: absolute;\n top: 8px;\n right: 8px;\n display: flex;\n flex-direction: column;\n pointer-events: auto;\n background: var(--oc-tooltip-bg);\n backdrop-filter: blur(14px);\n border: 1px solid var(--oc-tooltip-border);\n border-radius: var(--oc-radius-md);\n box-shadow: var(--oc-tooltip-shadow);\n overflow: hidden;\n }\n\n .oc-map-zoom-btn {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 28px;\n height: 28px;\n margin: 0;\n padding: 0;\n border: none;\n background: none;\n color: var(--oc-text);\n font: inherit;\n cursor: pointer;\n transition:\n background var(--oc-hover-duration) ease-out,\n opacity var(--oc-hover-duration) ease-out;\n\n & + & {\n border-top: 1px solid var(--oc-tooltip-border);\n }\n\n &:hover:not(:disabled) {\n background: var(--oc-focus-ring);\n }\n\n &:focus-visible {\n outline: 2px solid var(--oc-focus);\n outline-offset: -2px;\n }\n\n &:disabled {\n cursor: default;\n opacity: 0.35;\n }\n }\n\n /* Short-lived \"use ctrl/cmd + scroll\" hint after a plain wheel over the map. */\n .oc-map-zoom-hint {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n max-width: calc(100% - 32px);\n padding: 8px 12px;\n background: var(--oc-tooltip-bg);\n backdrop-filter: blur(14px);\n border: 1px solid var(--oc-tooltip-border);\n border-radius: var(--oc-radius-md);\n box-shadow: var(--oc-tooltip-shadow);\n color: var(--oc-tooltip-text);\n font-family: var(--oc-font-family);\n font-size: 13px;\n line-height: 1.3;\n text-align: center;\n opacity: 0;\n transition: opacity 200ms ease-out;\n\n &[data-visible] {\n opacity: 1;\n }\n }\n\n /* The SVG is focusable while zoom is on (keyboard: + - arrows 0). */\n .oc-map:focus {\n outline: none;\n }\n\n .oc-map:focus-visible {\n outline: 2px solid var(--oc-focus);\n outline-offset: 2px;\n }\n\n .oc-map[data-oc-zoomed] {\n cursor: grab;\n }\n\n /* The SVG holds pointer capture during a drag, so its cursor is the one shown. */\n .oc-map--panning {\n cursor: grabbing;\n }\n}\n","@layer oc.components {\n /* ---------------------------------------------------------------------------\n * Legend\n * --------------------------------------------------------------------------- */\n\n /* Font size and text fill are set inline by the renderer's applyTextStyle\n * from the engine-computed legend layout, which is authoritative (11px).\n * Only the family, which nothing computes per-entry, lives here. */\n .oc-legend {\n font-family: var(--oc-font-family);\n }\n\n .oc-legend-entry {\n cursor: default;\n }\n}\n","@layer oc.components {\n .oc-reader-panel,\n .oc-map-companion {\n color: var(--oc-text);\n font-family: var(--oc-font-family);\n font-size: 14px;\n line-height: 1.5;\n min-width: 0;\n }\n\n .oc-reader-panel {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));\n gap: 16px;\n padding: 16px 0;\n border-block: 1px solid var(--oc-border);\n }\n\n .oc-reader-panel article {\n min-width: 0;\n padding-inline-end: 16px;\n overflow-wrap: anywhere;\n }\n\n .oc-reader-panel h3 {\n margin: 0 0 6px;\n font-size: 15px;\n line-height: 1.4;\n font-weight: 600;\n }\n\n .oc-reader-panel p {\n margin: 0 0 8px;\n color: var(--oc-text-secondary);\n }\n\n .oc-reader-panel dl {\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto;\n gap: 6px 16px;\n margin: 12px 0;\n font-variant-numeric: tabular-nums;\n }\n\n .oc-reader-panel dt {\n color: var(--oc-text-muted);\n }\n .oc-reader-panel dd {\n margin: 0;\n text-align: end;\n }\n .oc-reader-empty,\n .oc-reader-comparison {\n grid-column: 1 / -1;\n }\n .oc-reader-panel > button {\n justify-self: start;\n align-self: end;\n }\n\n .oc-reader-panel button,\n .oc-map-companion button,\n .oc-map-inspect-places {\n font: inherit;\n font-size: 13px;\n color: var(--oc-text-secondary);\n background: transparent;\n border: 1px solid var(--oc-border);\n border-radius: 5px;\n padding: 6px 10px;\n min-height: 36px;\n cursor: pointer;\n margin-inline-end: 6px;\n margin-block: 3px;\n white-space: normal;\n text-align: start;\n }\n\n .oc-reader-panel button:hover,\n .oc-map-companion button:hover,\n .oc-map-inspect-places:hover {\n background: var(--oc-hover-bg);\n }\n .oc-reader-panel button:focus-visible,\n .oc-map-companion :is(button, input):focus-visible,\n .oc-map-inspect-places:focus-visible {\n outline: 2px solid var(--oc-focus);\n outline-offset: 2px;\n }\n\n .oc-map-companion input {\n width: 100%;\n box-sizing: border-box;\n padding: 10px 12px;\n border: 1px solid var(--oc-border);\n border-radius: 5px;\n background: transparent;\n color: var(--oc-text);\n font: inherit;\n }\n\n .oc-map-companion ol {\n margin: 12px 0;\n padding: 0;\n list-style: none;\n }\n .oc-map-companion li {\n display: flex;\n align-items: baseline;\n justify-content: space-between;\n gap: 12px;\n padding-block: 6px;\n border-bottom: 1px solid var(--oc-border);\n }\n .oc-map-companion li > button:first-child {\n flex: 1 1 auto;\n border-color: transparent;\n padding-inline-start: 0;\n font-variant-numeric: tabular-nums;\n }\n .oc-map-companion button:disabled {\n opacity: 0.45;\n cursor: default;\n }\n .oc-map-inspect-places {\n position: absolute;\n inset-inline-start: 8px;\n top: 8px;\n }\n .oc-map-inspect-places:not(:focus-visible) {\n width: 1px;\n height: 1px;\n min-height: 0;\n padding: 0;\n border: 0;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n }\n}\n","@layer oc.components {\n .oc-axis.oc-editable-hover {\n outline: none;\n }\n\n .oc-axis-hover-overlay rect {\n stroke: var(--oc-editable-hover);\n }\n\n /* ---------------------------------------------------------------------------\n * Hover language\n *\n * One vocabulary for mark hover, legend hover and the crosshair. Emphasis is\n * always a CLASS, never an inline style: a class beats the renderer's\n * `opacity` attributes (suppressed points under endpoint markers keep their\n * opacity=\"0\") and loses to the transition driver's per-frame inline\n * `style.opacity`, which is exactly the precedence a hover during a data\n * update needs.\n * --------------------------------------------------------------------------- */\n\n .oc-marks.oc-hover-active .oc-mark--dim:not([opacity=\"0\"]) {\n opacity: var(--oc-hover-dim);\n }\n\n /* Single-series register: outline the hovered mark instead of dimming eleven\n * others. Scoped per mark type -- an inherited stroke on a line or area group\n * would repaint the series in the text color. */\n .oc-marks.oc-hover-active .oc-mark-rect.oc-mark--hover > *,\n .oc-marks.oc-hover-active .oc-mark-arc.oc-mark--hover > *,\n .oc-marks.oc-hover-active circle.oc-mark-point.oc-mark--hover {\n stroke: var(--oc-text);\n stroke-width: 1;\n }\n\n /* The fade is switched off while the rAF transition driver owns opacity: an\n * unscoped 140ms transition would smear every frame of an update tween.\n * `.oc-animate` is excluded for the same reason during the entrance.\n *\n * It is NOT scoped to `.oc-hover-active`: dropping the class on mouseleave\n * would drop the transition with it, so the dim faded in and snapped back. */\n .oc-chart:not(.oc-animate):not(.oc-transitioning) .oc-marks .oc-mark {\n transition: opacity var(--oc-hover-duration) ease-out;\n }\n\n /* ---------------------------------------------------------------------------\n * Legend hover-link\n *\n * The swatch dims; the label text stays at full contrast so the list is still\n * readable while one series is raised.\n * --------------------------------------------------------------------------- */\n\n .oc-legend-entry--dim .oc-legend-swatch-line,\n .oc-legend-entry--dim .oc-legend-swatch-rect,\n .oc-legend-entry--dim > circle {\n opacity: var(--oc-hover-dim);\n transition: opacity var(--oc-hover-duration) ease-out;\n }\n\n .oc-legend-hit {\n fill: transparent;\n }\n\n .oc-legend-entry:focus {\n outline: none;\n }\n\n /* Focus ring on the 24px hit rect, drawn as a stroke: `outline` on an SVG\n * group is inconsistent across browsers, a stroke is not. */\n .oc-legend-entry:focus-visible .oc-legend-hit {\n stroke: var(--oc-focus);\n stroke-width: 2;\n }\n\n /* ---------------------------------------------------------------------------\n * Endpoint-label hover-link\n * --------------------------------------------------------------------------- */\n\n .oc-endpoint-label-entry {\n cursor: default;\n }\n\n /* ---------------------------------------------------------------------------\n * Map hover\n *\n * Feature hover is outline + raise, never dim-the-rest: toggling opacity on\n * three thousand county paths every time the pointer crosses a border is a\n * repaint storm, and the wave of fades reads as a flicker. Datawrapper and the\n * FT outline too. `non-scaling-stroke` keeps the outline 1.5px through the\n * camera's zoom transform, which otherwise scales stroke width with geometry.\n * --------------------------------------------------------------------------- */\n\n .oc-map-feature--hover {\n stroke: var(--oc-text);\n stroke-width: 1.5;\n vector-effect: non-scaling-stroke;\n }\n\n /* Legend-bin hover IS where dim-the-rest belongs: pointing at one class is a\n * deliberate \"show me these\" gesture, and the answer is the set of features in\n * that class. Static rules per class index keep it to one attribute write on\n * the group rather than a class toggle per feature. A playback crossfade's\n * underlay carries its feature's class index, so it dims with the feature. */\n .oc-map-features[data-hover] :is(.oc-map-feature, .oc-map-feature-underlay) {\n transition: opacity var(--oc-hover-duration) ease-out;\n }\n\n .oc-map-features[data-hover=\"0\"]\n :is(.oc-map-feature, .oc-map-feature-underlay):not([data-bin-index=\"0\"]),\n .oc-map-features[data-hover=\"1\"]\n :is(.oc-map-feature, .oc-map-feature-underlay):not([data-bin-index=\"1\"]),\n .oc-map-features[data-hover=\"2\"]\n :is(.oc-map-feature, .oc-map-feature-underlay):not([data-bin-index=\"2\"]),\n .oc-map-features[data-hover=\"3\"]\n :is(.oc-map-feature, .oc-map-feature-underlay):not([data-bin-index=\"3\"]),\n .oc-map-features[data-hover=\"4\"]\n :is(.oc-map-feature, .oc-map-feature-underlay):not([data-bin-index=\"4\"]),\n .oc-map-features[data-hover=\"5\"]\n :is(.oc-map-feature, .oc-map-feature-underlay):not([data-bin-index=\"5\"]),\n .oc-map-features[data-hover=\"6\"]\n :is(.oc-map-feature, .oc-map-feature-underlay):not([data-bin-index=\"6\"]),\n .oc-map-features[data-hover=\"7\"]\n :is(.oc-map-feature, .oc-map-feature-underlay):not([data-bin-index=\"7\"]),\n .oc-map-features[data-hover=\"8\"]\n :is(.oc-map-feature, .oc-map-feature-underlay):not([data-bin-index=\"8\"]),\n .oc-map-features[data-hover=\"9\"]\n :is(.oc-map-feature, .oc-map-feature-underlay):not([data-bin-index=\"9\"]),\n .oc-map-features[data-hover=\"10\"]\n :is(.oc-map-feature, .oc-map-feature-underlay):not([data-bin-index=\"10\"]),\n .oc-map-features[data-hover=\"11\"]\n :is(.oc-map-feature, .oc-map-feature-underlay):not([data-bin-index=\"11\"]) {\n opacity: var(--oc-map-hover-dim);\n }\n\n .oc-legend-bin {\n cursor: default;\n }\n\n /* ---------------------------------------------------------------------------\n * Tile hover\n *\n * A tile grid is 51 rects, not 3000 paths, and every tile is the same size --\n * so here the full hover language applies: the hovered tile takes an outline\n * and the rest drop back.\n * --------------------------------------------------------------------------- */\n\n .oc-tilemap-tiles.oc-hover-active .oc-tilemap-tile {\n transition: opacity var(--oc-hover-duration) ease-out;\n }\n\n .oc-tilemap-tiles.oc-hover-active .oc-tilemap-tile:not(.oc-tilemap-tile--hover) {\n opacity: var(--oc-hover-dim);\n }\n\n .oc-tilemap-tile--hover > rect {\n stroke: var(--oc-text);\n stroke-width: 1.5;\n }\n}\n\n@layer oc.components {\n /* Source-linked annotation inspection; exports render a fresh, inactive scene. */\n .oc-footnotes,\n [data-note-marker-index] {\n cursor: pointer;\n }\n .oc-footnotes.oc-note-active {\n text-decoration: underline;\n }\n [data-note-marker-index].oc-note-active .oc-annotation-footnote-marker {\n stroke-width: 3;\n }\n}\n","/* Annotation placement tools. */\n.oc-chart--placing .oc-placement-surface {\n cursor: crosshair;\n touch-action: none;\n}\n.oc-placement-surface:focus-visible {\n outline: 2px solid var(--oc-focus);\n outline-offset: -2px;\n}\n","@layer oc.components {\n /* ---------------------------------------------------------------------------\n * Series search (seriesSearch)\n *\n * DOM combobox overlaid on the SVG band the engine reserves below chrome.\n * The wrapper is absolutely positioned by the vanilla adapter (inline\n * left/top/width/height), so everything here is visual only. All colors come\n * from --oc-* tokens, which flip in .oc-dark.\n * --------------------------------------------------------------------------- */\n\n .oc-series-search {\n position: absolute;\n display: flex;\n align-items: center;\n justify-content: flex-end;\n gap: 8px;\n font-family: var(--oc-font-family);\n z-index: 10;\n }\n\n /* Chips: removable filter tokens for the current selection. They flow to the\n * left of the input and scroll horizontally rather than wrapping over the\n * chart when a reader picks many series. */\n .oc-series-search-chips {\n display: flex;\n align-items: center;\n gap: 6px;\n min-width: 0;\n overflow-x: auto;\n scrollbar-width: none;\n }\n\n .oc-series-search-chips::-webkit-scrollbar {\n display: none;\n }\n\n .oc-series-search-chip {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n padding: 3px 4px 3px 10px;\n border: 1px solid var(--oc-border);\n border-radius: var(--oc-radius-full);\n background: var(--oc-secondary);\n color: var(--oc-text-secondary);\n font-size: 12px;\n font-weight: 500;\n line-height: 16px;\n white-space: nowrap;\n }\n\n .oc-series-search-chip-remove {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n /* 16px glyph, but a >=24px hit area (WCAG 2.5.5 target size) via padding\n pulled back with negative margin so the chip layout stays tight. */\n width: 16px;\n height: 16px;\n padding: 4px;\n margin: -4px -2px -4px -4px;\n border: none;\n border-radius: 50%;\n background: transparent;\n color: var(--oc-text-muted);\n cursor: pointer;\n transition:\n color 0.15s,\n background-color 0.15s;\n }\n\n .oc-series-search-chip-remove:hover {\n color: var(--oc-text);\n background: var(--oc-hover-bg);\n }\n\n .oc-series-search-chip-remove:focus-visible {\n outline: 2px solid var(--oc-focus);\n outline-offset: 1px;\n }\n\n .oc-series-search-chip-remove svg {\n display: block;\n }\n\n /* Combobox: input + popup listbox. Styling matches the table search input\n * (border, radius, focus ring) so the two search surfaces read as one system. */\n .oc-series-search-box {\n position: relative;\n flex: 0 1 220px;\n min-width: 120px;\n }\n\n .oc-series-search-icon {\n position: absolute;\n left: 9px;\n top: 50%;\n transform: translateY(-50%);\n color: var(--oc-text-muted);\n pointer-events: none;\n }\n\n /* Shared skin provided by the grouped rule in table.css.\n Only divergent props live here. */\n .oc-series-search-input {\n height: 32px;\n padding: 0 10px 0 28px;\n }\n\n .oc-series-search-listbox {\n position: absolute;\n top: calc(100% + 4px);\n right: 0;\n min-width: 100%;\n max-height: 240px;\n overflow-y: auto;\n margin: 0;\n padding: 4px;\n list-style: none;\n border: 1px solid var(--oc-border);\n border-radius: var(--oc-radius-lg);\n background: var(--oc-card);\n box-shadow: var(--oc-tooltip-shadow);\n z-index: 20;\n }\n\n .oc-series-search-option {\n padding: 6px 10px;\n border-radius: var(--oc-radius-sm);\n font-size: 13px;\n color: var(--oc-text);\n cursor: pointer;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n .oc-series-search-option[aria-selected=\"true\"],\n .oc-series-search-option:hover {\n background: var(--oc-hover-bg);\n }\n\n /* The typed substring within each suggestion. */\n .oc-series-search-match {\n font-weight: 600;\n }\n\n .oc-series-search-empty {\n padding: 6px 10px;\n font-size: 12px;\n color: var(--oc-text-muted);\n }\n}\n","@layer oc.components {\n /* ---------------------------------------------------------------------------\n * You draw it (youDrawIt)\n *\n * NYT-style draw-then-reveal. SVG-space elements (hatched region, guess path,\n * reveal clip) render inside the chart SVG; the prompt + skip-to-reveal button\n * are an absolutely-positioned HTML overlay the vanilla adapter sizes over the\n * drawing region (inline left/top/width/height). All colors come from --oc-*\n * tokens so they flip in .oc-dark.\n * --------------------------------------------------------------------------- */\n\n /* Hatched \"draw here\" region. Fill comes from an SVG <pattern> (line color =\n * the target series color); this only governs overall opacity + fade-out. */\n .oc-ydi-region {\n opacity: 0.35;\n transition: opacity 0.4s ease;\n }\n\n .oc-ydi-region[data-ydi-hidden=\"true\"] {\n opacity: 0;\n }\n\n /* The vertical rule at `from` where drawing begins. */\n .oc-ydi-boundary {\n stroke: var(--oc-text-muted);\n stroke-width: 1;\n stroke-dasharray: 3 3;\n stroke-opacity: 0.6;\n }\n\n /* Reader's guess: a distinct pen-like stroke that reads as \"yours\" against the\n * solid real line. Dashed + focus-blue so it stays legible in both modes. */\n .oc-ydi-guess {\n stroke: var(--oc-focus);\n stroke-width: 2.5;\n stroke-linecap: round;\n stroke-linejoin: round;\n stroke-dasharray: 1 6;\n }\n\n /* Host-supplied comparison line (\"what everyone else guessed\"). Muted so it\n * sits behind the reader's guess and the real line. */\n .oc-ydi-comparison {\n stroke: var(--oc-text-muted);\n stroke-width: 1.5;\n stroke-opacity: 0.5;\n stroke-dasharray: 4 4;\n }\n\n /* Reveal clip rect: the width animates from the `from` boundary to the full\n * area on reveal, wiping the real line in left-to-right. The vanilla adapter\n * adds .oc-ydi-clip-animate right before setting the final width; reduced\n * motion skips the class so the width snaps. */\n .oc-ydi-clip-rect.oc-ydi-clip-animate {\n transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1);\n }\n\n /* HTML controls overlay: prompt (top) + reveal button (bottom-right). */\n .oc-ydi-controls {\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n align-items: flex-end;\n pointer-events: none;\n font-family: var(--oc-font-family);\n padding: 8px;\n box-sizing: border-box;\n z-index: 10;\n }\n\n .oc-ydi-prompt {\n align-self: center;\n max-width: 100%;\n padding: 6px 12px;\n border-radius: var(--oc-radius-md);\n background: var(--oc-card);\n border: 1px solid var(--oc-border);\n color: var(--oc-text-secondary);\n font-size: 13px;\n font-weight: 500;\n line-height: 16px;\n text-align: center;\n box-shadow: var(--oc-tooltip-shadow);\n }\n\n .oc-ydi-controls.oc-ydi-revealed .oc-ydi-prompt {\n display: none;\n }\n\n /* Clear + reveal buttons, side by side at the bottom-right. */\n .oc-ydi-actions {\n display: flex;\n flex-wrap: wrap;\n justify-content: flex-end;\n gap: 8px;\n pointer-events: none;\n }\n\n /* Skip-to-reveal and clear buttons. pointer-events re-enabled (the overlay\n * disables it) so they stay clickable and keyboard-reachable. Min height\n * enforced inline by the adapter (>= 24px effective touch target). */\n .oc-ydi-reveal-button,\n .oc-ydi-reset-button {\n pointer-events: auto;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n padding: 6px 14px;\n border: 1px solid var(--oc-border);\n border-radius: var(--oc-radius-md);\n background: var(--oc-bg);\n color: var(--oc-text);\n font-family: inherit;\n font-size: 13px;\n font-weight: 500;\n white-space: nowrap;\n cursor: pointer;\n box-shadow: var(--oc-tooltip-shadow);\n transition:\n background-color 0.15s,\n border-color 0.15s;\n }\n\n .oc-ydi-reset-button[hidden] {\n display: none;\n }\n\n .oc-ydi-reveal-button:hover,\n .oc-ydi-reset-button:hover {\n background: var(--oc-hover-bg);\n }\n\n .oc-ydi-reveal-button:focus-visible,\n .oc-ydi-reset-button:focus-visible {\n outline: 2px solid var(--oc-focus);\n outline-offset: 2px;\n }\n\n .oc-ydi-reveal-button:disabled {\n opacity: 0.5;\n cursor: default;\n }\n}\n","@layer oc.components {\n /* ---------------------------------------------------------------------------\n * Chrome (eyebrow, title, subtitle, source, byline, footer, brand)\n * --------------------------------------------------------------------------- */\n\n .oc-chrome {\n font-family: var(--oc-font-family);\n }\n\n .oc-chrome-link {\n cursor: pointer;\n text-decoration: none;\n }\n\n .oc-table-title.oc-chrome-link,\n .oc-table-subtitle.oc-chrome-link {\n display: block;\n }\n\n .oc-chrome-link:hover text,\n .oc-chrome-link:hover {\n text-decoration: underline;\n }\n\n .oc-eyebrow {\n font-size: var(--oc-eyebrow-size);\n font-weight: var(--oc-eyebrow-weight);\n letter-spacing: var(--oc-eyebrow-tracking);\n text-transform: uppercase;\n fill: var(--oc-accent);\n }\n\n .oc-title {\n font-size: var(--oc-title-size);\n font-weight: var(--oc-title-weight);\n letter-spacing: var(--oc-title-tracking);\n fill: var(--oc-text);\n }\n\n .oc-subtitle {\n font-size: var(--oc-subtitle-size);\n font-weight: var(--oc-subtitle-weight);\n fill: var(--oc-text-muted);\n }\n\n .oc-source,\n .oc-byline,\n .oc-footer {\n font-size: var(--oc-source-size);\n font-weight: var(--oc-source-weight);\n fill: var(--oc-text-muted);\n }\n\n .oc-brand {\n font-size: 11px;\n font-weight: 500;\n letter-spacing: 0.02em;\n fill: var(--oc-text-faint);\n }\n\n .oc-eyebrow-dot {\n fill: var(--oc-accent);\n }\n\n /* ---------------------------------------------------------------------------\n * Metric bar (.oc-metrics) — optional row of label/value cells above chart\n * --------------------------------------------------------------------------- */\n\n .oc-metrics {\n font-family: var(--oc-font-family);\n }\n\n .oc-metric-label {\n font-size: 11px;\n font-weight: 500;\n letter-spacing: 0.06em;\n text-transform: uppercase;\n fill: var(--oc-text-muted);\n }\n\n .oc-metric-value {\n font-size: 22px;\n font-weight: 600;\n letter-spacing: -0.02em;\n fill: var(--oc-text);\n font-variant-numeric: tabular-nums;\n }\n\n .oc-metric-delta-up {\n fill: var(--oc-positive);\n font-size: 12px;\n font-weight: 500;\n }\n\n .oc-metric-delta-down {\n fill: var(--oc-negative);\n font-size: 12px;\n font-weight: 500;\n }\n\n /* A multiplier or a run-rate is context, not a positive signal: the green\n that belonged here made every secondary read as good news. */\n .oc-metric-secondary {\n fill: var(--oc-text-muted);\n font-size: 12px;\n font-weight: 400;\n }\n\n /* ---------------------------------------------------------------------------\n * Axis tick labels — inline variant sits above each gridline at the\n * chart-area left edge (no left gutter). Used by line/area y-axes.\n * --------------------------------------------------------------------------- */\n\n .oc-axis-tick-inline {\n font-size: 11px;\n font-weight: 400;\n fill: var(--oc-text-muted);\n }\n\n /* ---------------------------------------------------------------------------\n * Endpoint labels (right-side per-series column for line/area charts)\n *\n * Swatch idiom: a thicker colored stroke segment with an optional thinner\n * lighter strip below. Mirrors the refreshed traditional legend swatch so a\n * single chart never shows two swatch idioms (mock-2 alignment). Per-series\n * color is stamped inline by the renderer; CSS tokens here cover the muted\n * value text and the leader line so theme overrides flow through naturally.\n * --------------------------------------------------------------------------- */\n\n .oc-endpoint-labels {\n font-family: var(--oc-font-family);\n }\n\n .oc-endpoint-label {\n /* Color set inline per series; this fallback only kicks in if the renderer\n ever omits the inline fill. */\n fill: var(--oc-endpoint-label-color, var(--oc-text));\n }\n\n .oc-endpoint-value {\n fill: var(--oc-endpoint-value-color, var(--oc-text-muted));\n }\n\n .oc-endpoint-leader {\n stroke: var(--oc-endpoint-leader-color, currentColor);\n }\n\n /* .oc-endpoint-marker — fill/stroke set inline (open-ring style: bg fill, series stroke). */\n /* .oc-endpoint-swatch — color set inline per series. */\n\n /* ---------------------------------------------------------------------------\n * Annotation dot + subtitle (text-annotation extensions)\n * --------------------------------------------------------------------------- */\n\n /* .oc-annotation-dot — fill/stroke resolved by the engine (open-ring default = bg fill, series stroke). */\n\n .oc-annotation-subtitle {\n fill: var(--oc-annotation-subtitle-color, var(--oc-text-muted));\n }\n\n /* ---------------------------------------------------------------------------\n * Table footer chrome\n * --------------------------------------------------------------------------- */\n\n /* Footer row: source/footer text on the left, brand watermark on the right,\n * sharing a single baseline. gap keeps them apart if the row gets narrow. */\n .oc-table-footer-row {\n display: flex;\n align-items: baseline;\n gap: 16px;\n padding: 16px 16px 4px;\n }\n\n /* Chrome block sits inside the flex row now, so it no longer owns the\n * footer's top padding or horizontal inset (the row provides both). */\n .oc-chrome-footer {\n padding-top: 0;\n }\n\n /* Brand watermark: pushed to the right edge (margin-left:auto holds it there\n * even when the source text is absent), never shrinks below its own text. */\n .oc-table-footer-row .oc-table-ref {\n margin-left: auto;\n flex-shrink: 0;\n text-align: right;\n }\n}\n","@layer oc.components {\n /* ---------------------------------------------------------------------------\n * Tooltip\n * Editorial card matching the new design system: zinc surface, cyan accent,\n * Inter Variable, mono numerics. Sized for a slice tooltip that lists every\n * series at the snapped x.\n * --------------------------------------------------------------------------- */\n\n .oc-tooltip {\n position: absolute;\n display: none;\n pointer-events: none;\n z-index: 1000;\n background: var(--oc-tooltip-bg);\n backdrop-filter: blur(14px);\n border: 1px solid var(--oc-tooltip-border);\n border-radius: var(--oc-radius-lg);\n box-shadow: var(--oc-tooltip-shadow);\n color: var(--oc-tooltip-text);\n font-family: var(--oc-font-family);\n font-size: 12px;\n padding: 0;\n max-width: 280px;\n min-width: 140px;\n line-height: 1.4;\n animation: oc-tooltip-in 120ms ease-out;\n transition:\n left 100ms ease-in-out,\n top 100ms ease-in-out;\n\n & .oc-tooltip-header {\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 8px 10px 6px;\n }\n\n & .oc-tooltip-dot {\n width: 8px;\n height: 8px;\n border-radius: 50%;\n flex-shrink: 0;\n }\n\n & .oc-tooltip-title {\n font-weight: 600;\n font-size: 11px;\n letter-spacing: 0.04em;\n text-transform: uppercase;\n color: var(--oc-text-muted);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n & .oc-tooltip-body {\n padding: 6px 10px 8px;\n border-top: 1px solid var(--oc-tooltip-border);\n }\n\n /* No separator when body is the only child */\n & .oc-tooltip-body:first-child {\n border-top: none;\n padding-top: 10px;\n }\n\n & .oc-tooltip-row {\n display: flex;\n align-items: baseline;\n justify-content: space-between;\n gap: 16px;\n padding: 2px 0;\n }\n\n & .oc-tooltip-row-swatch {\n display: inline-block;\n width: 8px;\n height: 8px;\n border-radius: 50%;\n margin-right: 6px;\n flex-shrink: 0;\n transform: translateY(-1px);\n }\n\n & .oc-tooltip-label {\n color: var(--oc-text-secondary);\n font-size: 12px;\n font-weight: 400;\n white-space: nowrap;\n flex-shrink: 0;\n display: inline-flex;\n align-items: center;\n }\n\n & .oc-tooltip-value {\n font-weight: 500;\n font-size: 12px;\n font-variant-numeric: tabular-nums;\n color: var(--oc-tooltip-text);\n text-align: right;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n /* The series the pointer is nearest to in a shared tooltip. */\n & .oc-tooltip-row--emphasis .oc-tooltip-label {\n color: var(--oc-tooltip-text);\n font-weight: 600;\n }\n\n & .oc-tooltip-row--emphasis .oc-tooltip-value {\n font-weight: 600;\n }\n\n /* Stack sum, set below a hairline so it reads as a summary of the rows\n * above rather than one more series. */\n & .oc-tooltip-row--total {\n margin-top: 4px;\n padding-top: 5px;\n border-top: 1px solid var(--oc-tooltip-border);\n }\n\n & .oc-tooltip-row--total .oc-tooltip-label {\n color: var(--oc-tooltip-text);\n font-weight: 500;\n }\n\n & .oc-tooltip-row--total .oc-tooltip-value {\n font-weight: 600;\n }\n }\n\n /* ---------------------------------------------------------------------------\n * Crosshair guideline + per-series snap dots (line/area charts)\n * Animate the snap between adjacent points so the indicator slides instead\n * of jumping. ~50ms ease-in-out keeps the motion crisp without lagging.\n * --------------------------------------------------------------------------- */\n\n .oc-crosshair {\n pointer-events: none;\n transition:\n x1 50ms ease-in-out,\n x2 50ms ease-in-out;\n }\n\n .oc-snap-dots circle {\n pointer-events: none;\n transition:\n cx 50ms ease-in-out,\n cy 50ms ease-in-out;\n }\n}\n","@layer oc.components {\n .oc-race {\n direction: ltr;\n font-variant-numeric: normal;\n }\n\n .oc-race-controls-slot {\n /* The shell measures the unused space below the footer. Preserve the outer height. */\n position: relative;\n margin-top: calc(0px - var(--oc-race-controls-lift, 0px));\n padding-inline: var(--oc-race-padding);\n padding-bottom: var(--oc-race-controls-lift, 0px);\n }\n\n .oc-race-axis line {\n stroke: var(--oc-gridline);\n }\n\n .oc-race-axis text,\n .oc-race-summary {\n fill: var(--oc-text-muted);\n }\n\n .oc-race-summary {\n font-size: var(--oc-source-size);\n }\n\n .oc-race-rows text {\n fill: var(--oc-text);\n font-size: var(--oc-body-size);\n }\n\n .oc-race-period {\n fill: var(--oc-text-faint);\n font-weight: 600;\n }\n\n .oc-race-row {\n will-change: transform;\n }\n\n /* line */\n .oc-race-line-labels {\n dominant-baseline: central;\n font-size: var(--oc-body-size);\n }\n\n .oc-race-line-value {\n fill: var(--oc-text-muted);\n }\n}\n","@layer oc.components {\n .oc-race-table {\n overflow: hidden;\n }\n\n .oc-race-table-grid {\n display: grid;\n grid-template-rows: auto 1fr;\n width: 100%;\n height: 100%;\n border-collapse: separate;\n border-spacing: 0;\n color: var(--oc-text);\n font-family: var(--oc-font-family);\n font-weight: var(--oc-race-table-body-weight, 400);\n line-height: 1.2;\n font-variant-numeric: normal;\n }\n\n .oc-race-table-grid thead,\n .oc-race-table-grid tbody {\n display: block;\n }\n\n .oc-race-table-grid tbody {\n position: relative;\n overflow: hidden;\n background-image: repeating-linear-gradient(\n to bottom,\n transparent 0 max(0px, calc(var(--oc-race-table-row-height) - 1px)),\n var(--oc-border) 0 var(--oc-race-table-row-height)\n );\n }\n\n .oc-race-table-grid tr {\n display: grid;\n grid-template-columns: var(--oc-race-table-columns);\n align-items: center;\n overflow: hidden;\n }\n\n .oc-race-table-grid thead tr {\n box-shadow: inset 0 -1px var(--oc-border);\n }\n\n .oc-race-table-grid tbody tr {\n position: absolute;\n inset: 0 0 auto;\n max-height: max(0px, calc(var(--oc-race-table-row-height) - 1px));\n overflow: visible;\n }\n\n .oc-race-table-grid tbody td {\n max-height: 100%;\n translate: 0 var(--oc-race-table-content-offset, 0px);\n }\n\n .oc-race-table-cell {\n min-width: 0;\n overflow: hidden;\n padding: 0 var(--oc-race-table-cell-padding, 5px);\n text-align: start;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n .oc-race-table-grid th {\n color: var(--oc-text-muted);\n font-weight: var(--oc-race-table-heading-weight, 600);\n }\n\n .oc-race-table-rank,\n .oc-race-table-change,\n .oc-race-table-value,\n .oc-race-table-share {\n text-align: right;\n }\n\n .oc-race-table-change,\n .oc-race-table-share {\n color: var(--oc-text-muted);\n }\n\n .oc-race-table-change[data-direction=\"up\"] {\n color: var(--oc-positive);\n }\n\n .oc-race-table-change[data-direction=\"down\"] {\n color: var(--oc-negative);\n }\n\n td.oc-race-table-name {\n display: flex;\n align-items: center;\n gap: 6px;\n }\n\n .oc-race-table-name > span:last-child {\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n .oc-race-table-chip {\n flex: none;\n width: 8px;\n height: 8px;\n border-radius: var(--oc-radius-full);\n }\n\n td.oc-race-table-bar {\n position: relative;\n height: 100%;\n padding: 0;\n }\n\n .oc-race-table-fill {\n position: absolute;\n top: 50%;\n left: 0;\n height: min(8px, 55%);\n border-radius: var(--oc-radius-sm);\n translate: 0 -50%;\n transform-origin: 0 50%;\n }\n}\n","/*\n * Playback controls (play button, scrubber, readout) shared by races, charts and maps, and\n * the pointer rule for a playback chart's overlay labels. Each control selector lists both the .oc-race-* and .oc-playback-* prefixes. The controls set\n * the scrubber's progress as --<prefix>-progress; the race shell sets\n * --oc-race-progress-color on its controls slot.\n */\n@layer oc.components {\n /* The period label and name labels drawn over a playback chart describe the marks; they\n aren't marks themselves, so pointer and touch go through them to the marks beneath. */\n [data-key^=\"oc-playback-\"] {\n pointer-events: none;\n }\n\n .oc-race-controls,\n .oc-playback-controls {\n display: flex;\n align-items: center;\n gap: 12px;\n height: 44px;\n color: var(--oc-text);\n font-family: var(--oc-font-family);\n }\n\n .oc-race-play,\n .oc-playback-play {\n display: grid;\n place-items: center;\n flex: none;\n box-sizing: border-box;\n width: 32px;\n height: 32px;\n /* Pull the button left so the 16px icon, not the hit area, lines up with the chart inset. */\n margin-inline-start: -8px;\n padding: 0;\n border: 0;\n border-radius: 4px;\n background: transparent;\n color: inherit;\n font: inherit;\n cursor: pointer;\n }\n\n .oc-race-play:hover,\n .oc-playback-play:hover {\n background: var(--oc-hover-bg);\n }\n\n .oc-race-play:focus-visible,\n .oc-race-scrub:focus-visible,\n .oc-playback-play:focus-visible,\n .oc-playback-scrub:focus-visible {\n outline: 2px solid var(--oc-focus);\n outline-offset: 2px;\n }\n\n .oc-race-scrub,\n .oc-playback-scrub {\n --oc-playback-track-direction: to right;\n --oc-playback-track-fill: linear-gradient(\n var(--oc-playback-track-direction),\n var(--oc-race-progress-color, var(--oc-playback-progress-color, var(--oc-text)))\n var(--oc-race-progress, var(--oc-playback-progress, 0%)),\n var(--oc-border) var(--oc-race-progress, var(--oc-playback-progress, 0%))\n );\n /* Grow outward and keep the native thumb's travel and center fixed. */\n --oc-playback-thumb-grow: 0px;\n --oc-playback-thumb-ring:\n 0 0 0 var(--oc-playback-thumb-grow) var(--oc-text),\n 0 0 0 calc(2px + var(--oc-playback-thumb-grow)) var(--oc-bg);\n appearance: none;\n flex: 1;\n min-width: 0;\n height: 16px;\n margin: 0;\n padding: 0;\n border: 0;\n background: transparent;\n cursor: pointer;\n }\n\n .oc-race-scrub:dir(rtl),\n .oc-playback-scrub:dir(rtl) {\n --oc-playback-track-direction: to left;\n }\n\n .oc-race-scrub:hover,\n .oc-race-scrub:active,\n .oc-playback-scrub:hover,\n .oc-playback-scrub:active {\n --oc-playback-thumb-grow: 1px;\n }\n\n .oc-race-scrub::-webkit-slider-runnable-track,\n .oc-playback-scrub::-webkit-slider-runnable-track {\n height: 4px;\n border-radius: 2px;\n background: var(--oc-playback-track-fill);\n }\n\n .oc-race-scrub::-moz-range-track,\n .oc-playback-scrub::-moz-range-track {\n width: 100%;\n height: 4px;\n border-radius: 2px;\n background: var(--oc-playback-track-fill);\n }\n\n .oc-race-scrub::-webkit-slider-thumb,\n .oc-playback-scrub::-webkit-slider-thumb {\n appearance: none;\n width: 14px;\n height: 14px;\n margin-top: -5px;\n border: 0;\n border-radius: 50%;\n background: var(--oc-text);\n box-shadow: var(--oc-playback-thumb-ring);\n }\n\n .oc-race-scrub::-moz-range-thumb,\n .oc-playback-scrub::-moz-range-thumb {\n width: 14px;\n height: 14px;\n border: 0;\n border-radius: 50%;\n background: var(--oc-text);\n box-shadow: var(--oc-playback-thumb-ring);\n }\n\n @media (forced-colors: active) {\n .oc-race-scrub,\n .oc-playback-scrub {\n appearance: auto;\n }\n }\n\n .oc-race-readout,\n .oc-playback-readout {\n flex: 0 0 auto;\n max-width: 40%;\n overflow: hidden;\n color: var(--oc-text-muted);\n font-size: var(--oc-source-size);\n text-align: end;\n text-overflow: ellipsis;\n white-space: nowrap;\n font-variant-numeric: normal;\n }\n}\n","/* GENERATED FILE — do not edit. Source: packages/core/src/motion/choreography.ts. Regenerate: bun run generate:motion */\n\n@layer oc.animation {\n /* ---------------------------------------------------------------------------\n * Animation scoped rules (.oc-animate enables animation on the chart root)\n * --------------------------------------------------------------------------- */\n\n .oc-animate {\n /* Vertical bars (default): the author curve over the full duration, no fade.\n oc-mark-bar is reserved for future mark type aliases.\n A bar with a value-end radius draws as <path> rather than <rect>\n (SVG rx rounds all four corners or none), so both shapes match. */\n & .oc-mark-rect :is(rect, path),\n & .oc-mark-bar :is(rect, path) {\n animation: oc-enter-bar var(--oc-bar-dur, var(--oc-animation-duration))\n var(--oc-animation-ease, var(--oc-ease-smooth)) both;\n animation-delay: var(\n --oc-bar-delay,\n calc(var(--oc-animation-stagger) * var(--oc-mark-index, 0))\n );\n animation-play-state: var(--oc-play-state, running);\n }\n\n /* Horizontal bars (data-orient is on the mark group, not the SVG root) */\n & .oc-mark-rect[data-orient=\"horizontal\"] :is(rect, path),\n & .oc-mark-bar[data-orient=\"horizontal\"] :is(rect, path) {\n animation-name: oc-enter-bar-h;\n animation-play-state: var(--oc-play-state, running);\n }\n\n /* Grid cells (heatmap, waffle, calendar) have no baseline to grow from:\n each pops in on its own scattered start. The renderer stamps\n --oc-cell-delay from a seeded shuffle over CELL_SWEEP_BUDGET_MS, so the\n grid fills in no particular pattern. */\n & .oc-mark-rect[data-cell] :is(rect, path) {\n animation: oc-enter-cell var(--oc-cell-dur, 400ms)\n var(--oc-animation-ease, var(--oc-ease-smooth)) both;\n animation-delay: var(\n --oc-cell-delay,\n calc(var(--oc-animation-stagger) * var(--oc-mark-index, 0))\n );\n animation-play-state: var(--oc-play-state, running);\n }\n\n /* Stacked bars reveal as one group per stack, each on its own stagger slot;\n their segments do not animate. A stack that crosses zero grows both ways\n from the baseline (--oc-stack-from). */\n & .oc-stack-reveal {\n animation: oc-enter-stack var(--oc-stack-reveal-dur, var(--oc-animation-duration))\n var(--oc-animation-ease, var(--oc-ease-smooth)) both;\n animation-delay: var(\n --oc-stack-reveal-delay,\n calc(var(--oc-animation-stagger) * var(--oc-mark-index, 0))\n );\n animation-play-state: var(--oc-play-state, running);\n }\n & .oc-stack-reveal .oc-mark-rect :is(rect, path) {\n animation: none;\n }\n\n & .oc-stack-reveal[data-orient=\"horizontal\"] {\n animation-name: oc-enter-stack-h;\n animation-play-state: var(--oc-play-state, running);\n }\n\n /* Line and area marks: entire group clips left-to-right + fades in */\n & .oc-mark-line,\n & .oc-mark-area {\n animation: oc-enter-line var(--oc-line-area-dur, var(--oc-animation-duration))\n var(--oc-animation-ease, var(--oc-ease-smooth)) both;\n animation-delay: var(\n --oc-line-area-delay,\n calc(var(--oc-animation-stagger) * var(--oc-mark-index, 0))\n );\n animation-play-state: var(--oc-play-state, running);\n }\n\n /* Arc marks (pie/donut slices): each slice path fades and grows from the pie\n centre. The transform goes on the path, never the group, whose translate()\n attribute positions the slice. */\n & .oc-mark-arc > path {\n animation: oc-enter-arc var(--oc-arc-dur, 450ms)\n var(--oc-animation-ease, var(--oc-ease-smooth)) both;\n animation-delay: var(\n --oc-arc-delay,\n calc(var(--oc-animation-stagger) * var(--oc-mark-index, 0))\n );\n animation-play-state: var(--oc-play-state, running);\n }\n\n /* Point marks (scatter, dot): a quick fade on the author curve, no scale.\n Points render as bare <circle> elements with class oc-mark-point directly,\n not wrapped in a group, so we target circle.oc-mark-point (not descendant). */\n & circle.oc-mark-point,\n & circle.oc-mark-circle {\n animation: oc-enter-fade-only var(--oc-point-dur, 300ms)\n var(--oc-animation-ease, var(--oc-ease-smooth)) both;\n animation-delay: var(\n --oc-point-delay,\n calc(var(--oc-animation-stagger) * var(--oc-mark-index, 0))\n );\n animation-play-state: var(--oc-play-state, running);\n }\n\n /* Points on line/area charts pop in once their own line has drawn (0.97),\n cascading left to right over LINE_POINT_CASCADE_MS. The renderer stamps\n each point's delay and marks it data-line-point (a scatter's trendline also\n precedes its circles, so position can't select these). Points hidden under an endpoint marker stay hidden. */\n & circle.oc-mark-point[data-line-point] {\n animation: oc-enter-pop var(--oc-line-point-dur, 320ms) var(--oc-ease-punch) both;\n animation-delay: var(\n --oc-line-point-delay,\n calc(\n var(--oc-line-point-after, calc(var(--oc-animation-duration) * 0.727459)) +\n var(--oc-animation-stagger) *\n var(--oc-mark-index, 0)\n )\n );\n animation-play-state: var(--oc-play-state, running);\n }\n & circle.oc-mark-point[opacity=\"0\"] {\n animation: none;\n }\n\n /* Text marks: rise 0.6em on the author curve, with a quick fade */\n & .oc-mark-text text {\n animation:\n oc-enter-rise var(--oc-text-dur, var(--oc-animation-duration))\n var(--oc-animation-ease, var(--oc-ease-smooth)) both,\n oc-enter-fade-only 140ms var(--oc-ease-snap) both;\n animation-delay: var(\n --oc-text-delay,\n calc(var(--oc-animation-stagger) * var(--oc-mark-index, 0))\n );\n animation-play-state: var(--oc-play-state, running);\n }\n\n /* Rule marks: fade in place, never translate (a moving rule reads a wrong value) */\n & .oc-mark-rule line {\n animation: oc-enter-fade-only var(--oc-rule-dur, calc(var(--oc-animation-duration) * 0.5))\n var(--oc-animation-ease, var(--oc-ease-smooth)) both;\n animation-delay: var(\n --oc-rule-delay,\n calc(var(--oc-animation-stagger) * var(--oc-mark-index, 0))\n );\n animation-play-state: var(--oc-play-state, running);\n }\n\n /* Tick marks: fade in place */\n & .oc-mark-tick line {\n animation: oc-enter-fade-only var(--oc-tick-dur, calc(var(--oc-animation-duration) * 0.5))\n var(--oc-animation-ease, var(--oc-ease-smooth)) both;\n animation-delay: var(\n --oc-tick-delay,\n calc(var(--oc-animation-stagger) * var(--oc-mark-index, 0))\n );\n animation-play-state: var(--oc-play-state, running);\n }\n\n /* Data labels (bar values, line end labels) fade in place once their mark has\n landed: when the bar at the label's --oc-mark-index reaches 0.995, within a\n pixel of its end, so a label never shows while its bar is still growing.\n Lines share the bar's duration and curve, so the bar anchor stands in for\n them. Labels never move during the entrance. */\n & .oc-mark-label {\n animation: oc-enter-fade-only var(--oc-label-dur, 260ms)\n var(--oc-animation-ease, var(--oc-ease-smooth)) both;\n animation-delay: var(\n --oc-label-delay,\n calc(\n var(--oc-label-after, calc(var(--oc-animation-duration) * 0.884043)) +\n var(--oc-animation-stagger) *\n var(--oc-mark-index, 0)\n )\n );\n animation-play-state: var(--oc-play-state, running);\n }\n\n /* Pie/donut slice labels fade in place once their own slice reaches 0.97. */\n & .oc-mark-arc > .oc-mark-label {\n animation: oc-enter-fade-only var(--oc-arc-label-dur, 260ms)\n var(--oc-animation-ease, var(--oc-ease-smooth)) both;\n animation-delay: var(\n --oc-arc-label-delay,\n calc(\n var(--oc-arc-label-after, 327.356557ms) +\n var(--oc-animation-stagger) *\n var(--oc-mark-index, 0)\n )\n );\n animation-play-state: var(--oc-play-state, running);\n }\n\n /* Trailing endpoint labels (marker, name, value) and area interior labels:\n fade in as their own series' line reaches the end, never before it. The\n renderer stamps each entry with its series' --oc-mark-index. */\n & .oc-endpoint-label-entry[data-endpoint-side=\"trailing\"],\n & .oc-area-interior-label {\n animation: oc-enter-fade-only var(--oc-endpoint-label-dur, 300ms)\n var(--oc-animation-ease, var(--oc-ease-smooth)) both;\n animation-delay: var(\n --oc-endpoint-label-delay,\n calc(\n var(--oc-endpoint-label-after, calc(var(--oc-animation-duration) * 0.656536)) +\n var(--oc-animation-stagger) *\n var(--oc-mark-index, 0)\n )\n );\n animation-play-state: var(--oc-play-state, running);\n }\n\n /* Annotations: fade in once the last mark is 90% of the way there */\n & .oc-annotation {\n animation: oc-enter-fade-only var(--oc-annotation-dur, 300ms) var(--oc-ease-glide) both;\n animation-delay: var(\n --oc-annotation-enter-delay,\n calc(\n var(--oc-annotation-after, calc(var(--oc-animation-duration) * 0.539502)) +\n var(--oc-annotation-delay, 150ms)\n )\n );\n animation-play-state: var(--oc-play-state, running);\n }\n\n /* Tilemap tiles: fade in with jittered stagger for organic feel.\n Per-tile delay is computed in the renderer with pseudo-random variation. */\n & .oc-tilemap-tile {\n animation: oc-enter-fade-only\n var(--oc-tilemap-tile-dur, calc(var(--oc-animation-duration) * 0.35)) ease-in both;\n animation-delay: var(--oc-tilemap-tile-delay, var(--oc-tile-delay, 0ms));\n animation-play-state: var(--oc-play-state, running);\n }\n\n /* Map features: fill color reveal with shuffled stagger.\n Per-feature --oc-map-delay is computed in the renderer via a seeded\n Fisher-Yates shuffle so features pop in organically. */\n & .oc-map-feature {\n animation: oc-enter-map-fill var(--oc-map-feature-dur, var(--oc-animation-duration))\n var(--oc-animation-ease, var(--oc-ease-smooth)) both;\n animation-delay: var(--oc-map-feature-delay, var(--oc-map-delay, 0ms));\n animation-play-state: var(--oc-play-state, running);\n }\n\n /* Bulk mode: high feature counts (counties, ~3k+) get a single group\n fade instead of per-feature fill animations. opacity is GPU-compositable\n so this stays smooth regardless of child count. */\n & .oc-map-features[data-bulk-animate] {\n animation: oc-enter-fade-only var(--oc-map-bulk-dur, var(--oc-animation-duration))\n var(--oc-animation-ease, var(--oc-ease-smooth)) both;\n animation-delay: var(--oc-map-bulk-delay, 0ms);\n animation-play-state: var(--oc-play-state, running);\n }\n & .oc-map-features[data-bulk-animate] .oc-map-feature {\n animation: none;\n }\n\n /* Map borders: fade in once most of the feature sweep has started */\n & .oc-map-borders path {\n animation: oc-enter-fade-only\n var(--oc-map-border-dur, calc(var(--oc-animation-duration) * 0.4)) ease-in both;\n animation-delay: var(--oc-map-border-delay, var(--oc-map-border-after, 324ms));\n animation-play-state: var(--oc-play-state, running);\n }\n\n /* Map points: gentle scale (0.75->1) + fade pop-in just after the borders.\n transform-origin set per-circle in the renderer so scale happens\n around each circle's own center, not the SVG origin. */\n & .oc-map-point {\n animation: oc-enter-map-point\n var(--oc-map-point-dur, calc(var(--oc-animation-duration) * 0.4))\n var(--oc-animation-ease, var(--oc-ease-smooth)) both;\n animation-delay: var(\n --oc-map-point-delay,\n calc(\n var(--oc-map-point-after, 351ms) +\n var(--oc-mark-index, 0) *\n var(--oc-point-stagger, 60ms)\n )\n );\n animation-play-state: var(--oc-play-state, running);\n }\n\n /* Sankey nodes: fade in with stagger by column depth (left-to-right) */\n & .oc-sankey-node rect {\n animation: oc-enter-fade-only var(--oc-sankey-node-dur, var(--oc-animation-duration))\n var(--oc-animation-ease, var(--oc-ease-smooth)) both;\n animation-delay: var(\n --oc-sankey-node-delay,\n calc(var(--oc-animation-stagger) * var(--oc-mark-index, 0))\n );\n animation-play-state: var(--oc-play-state, running);\n }\n\n /* Sankey links: fade in when their source node is halfway in. Each link\n carries its source node's --oc-mark-index. */\n & .oc-sankey-link path {\n animation: oc-enter-fade-only var(--oc-sankey-link-dur, var(--oc-animation-duration))\n var(--oc-animation-ease, var(--oc-ease-smooth)) both;\n animation-delay: var(\n --oc-sankey-link-delay,\n calc(\n var(--oc-sankey-link-after, calc(var(--oc-animation-duration) * 0.2)) +\n var(--oc-animation-stagger) *\n var(--oc-mark-index, 0)\n )\n );\n animation-play-state: var(--oc-play-state, running);\n }\n\n /* Barlist rows: slide up with a quick fade per row; bars grow left-to-right */\n & .oc-barlist-row {\n animation:\n oc-enter-slide var(--oc-barlist-row-dur, calc(var(--oc-animation-duration) * 0.6))\n var(--oc-animation-ease, var(--oc-ease-smooth)) both,\n oc-enter-fade-only 140ms var(--oc-ease-snap) both;\n animation-delay: var(\n --oc-barlist-row-delay,\n calc(var(--oc-animation-stagger) * var(--oc-mark-index, 0))\n );\n animation-play-state: var(--oc-play-state, running);\n }\n\n & .oc-barlist-bar {\n animation: oc-enter-bar-h var(--oc-barlist-bar-dur, var(--oc-animation-duration))\n var(--oc-animation-ease, var(--oc-ease-smooth)) both;\n animation-delay: var(\n --oc-barlist-bar-delay,\n calc(var(--oc-animation-stagger) * var(--oc-mark-index, 0))\n );\n animation-play-state: var(--oc-play-state, running);\n }\n }\n}\n","/* ---------------------------------------------------------------------------\n * Reduced motion\n *\n * Catch-all: last-declared layer beats every earlier layer regardless of\n * specificity. No !important, no hand-maintained selector mirror.\n *\n * Selector list matches CSS_TOKEN_ROOT_SELECTORS in token-definitions.ts.\n * --------------------------------------------------------------------------- */\n\n@layer oc.reduced-motion {\n @media (prefers-reduced-motion: reduce) {\n :is(\n .oc-root,\n .oc-chart-root,\n .oc-table-wrapper,\n .oc-table-root,\n .oc-graph-wrapper,\n .oc-graph-root,\n .oc-sankey-root,\n .oc-tilemap-root,\n .oc-barlist-root,\n .oc-map-root\n ),\n :is(\n .oc-root,\n .oc-chart-root,\n .oc-table-wrapper,\n .oc-table-root,\n .oc-graph-wrapper,\n .oc-graph-root,\n .oc-sankey-root,\n .oc-tilemap-root,\n .oc-barlist-root,\n .oc-map-root\n )\n *,\n :is(\n .oc-root,\n .oc-chart-root,\n .oc-table-wrapper,\n .oc-table-root,\n .oc-graph-wrapper,\n .oc-graph-root,\n .oc-sankey-root,\n .oc-tilemap-root,\n .oc-barlist-root,\n .oc-map-root\n )\n *::before,\n :is(\n .oc-root,\n .oc-chart-root,\n .oc-table-wrapper,\n .oc-table-root,\n .oc-graph-wrapper,\n .oc-graph-root,\n .oc-sankey-root,\n .oc-tilemap-root,\n .oc-barlist-root,\n .oc-map-root\n )\n *::after {\n animation: none;\n transition: none;\n }\n }\n}\n","/* GENERATED FILE — do not edit. Source: packages/core/src/motion/choreography.ts. Regenerate: bun run generate:motion */\n\n@layer oc.animation {\n /* ---------------------------------------------------------------------------\n * Animation keyframes\n * --------------------------------------------------------------------------- */\n\n /* Bar entrance: clip-path reveal from the baseline (vertical columns), no fade:\n a value mark is solid from its first frame. Grows bottom-to-top unless the\n renderer stamps --oc-bar-from (a negative column grows top-to-bottom). */\n @keyframes oc-enter-bar {\n from {\n clip-path: inset(var(--oc-bar-from, 100% 0 0 0));\n }\n to {\n clip-path: inset(0 0 0 0);\n }\n }\n\n /* Bar entrance: clip-path reveal from the baseline (horizontal bars), no fade.\n Grows left-to-right unless --oc-bar-from is stamped (negative bars). */\n @keyframes oc-enter-bar-h {\n from {\n clip-path: inset(var(--oc-bar-from, 0 100% 0 0));\n }\n to {\n clip-path: inset(0 0 0 0);\n }\n }\n\n /* Stack entrance: one clip over the whole stack, no fade. Grows bottom-to-top\n from --oc-stack-from, which the renderer stamps when the baseline is not the\n bottom edge, so the clip starts collapsed on the baseline and grows both\n ways from it. */\n @keyframes oc-enter-stack {\n from {\n clip-path: inset(var(--oc-stack-from, 100% 0 0 0));\n }\n to {\n clip-path: inset(0 0 0 0);\n }\n }\n\n /* Horizontal stack entrance: grows left-to-right, or both ways from the\n baseline when --oc-stack-from is stamped. */\n @keyframes oc-enter-stack-h {\n from {\n clip-path: inset(var(--oc-stack-from, 0 100% 0 0));\n }\n to {\n clip-path: inset(0 0 0 0);\n }\n }\n\n /* Line/area entrance: clip-path reveal left-to-right + fade in.\n Lines draw in following reading direction with a soft lead-in. */\n @keyframes oc-enter-line {\n from {\n clip-path: inset(0 100% 0 0);\n opacity: 0;\n }\n 15% {\n opacity: 1;\n }\n to {\n clip-path: inset(0 0 0 0);\n opacity: 1;\n }\n }\n\n /* Point/arc entrance: scale up + fade in from center */\n @keyframes oc-enter-point {\n from {\n opacity: 0;\n transform: scale(0.3);\n }\n to {\n opacity: 1;\n transform: scale(1);\n }\n }\n\n /* Map feature entrance: fade in while transitioning fill from a neutral base\n to the data-driven color stored in --oc-feature-fill. The target opacity is\n --oc-feature-target-opacity (default 1) so features under a focus dim\n animate straight to their dimmed rest opacity instead of hitting 1 and then\n snapping down when the dim is applied post-animation.\n Non-interpolable fills (the url(#pattern) hatch on no-data features) do not\n transition: the browser holds the neutral and flips to the pattern when the\n eased progress passes 50%, so those features fade in rather than\n cross-fade. */\n @keyframes oc-enter-map-fill {\n from {\n fill: var(--oc-secondary);\n opacity: 0;\n }\n to {\n fill: var(--oc-feature-fill);\n opacity: var(--oc-feature-target-opacity, 1);\n }\n }\n\n /* Map point pop-in: gentle scale from 0.75 + fade. Uses transform-origin to\n scale from the circle's own center (cx/cy) rather than the SVG origin. */\n @keyframes oc-enter-map-point {\n from {\n opacity: 0;\n transform: scale(0.75);\n }\n to {\n opacity: 1;\n transform: scale(1);\n }\n }\n\n /* Line point pop: fade in while scaling up from 0.4. The renderer stamps an\n inline px transform-origin at the point centre, so it grows in place\n (and in GIF frames, which carry no animation CSS). */\n @keyframes oc-enter-pop {\n from {\n opacity: 0;\n transform: scale(0.4);\n }\n to {\n opacity: 1;\n transform: scale(1);\n }\n }\n\n /* Grid cell pop: fade in while scaling up from 0.85 about the cell centre\n (inline px transform-origin stamped by the renderer). */\n @keyframes oc-enter-cell {\n from {\n opacity: 0;\n transform: scale(0.85);\n }\n to {\n opacity: 1;\n transform: scale(1);\n }\n }\n\n /* Slice growth: fade in while scaling up from 0.94. The slice path is drawn\n around its group's local origin (the group carries translate(cx, cy)), so\n the default transform-origin of 0 0 is the pie centre. */\n @keyframes oc-enter-arc {\n from {\n opacity: 0;\n transform: scale(0.94);\n }\n to {\n opacity: 1;\n transform: scale(1);\n }\n }\n\n /* Pure opacity fade (no transform). Safe for elements with existing transforms\n like arc groups that use translate() for positioning. */\n @keyframes oc-enter-fade-only {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n }\n\n /* Fade + subtle slide up (table chrome) */\n @keyframes oc-enter-fade {\n from {\n opacity: 0;\n transform: translateY(4px);\n }\n to {\n opacity: 1;\n transform: translateY(0);\n }\n }\n\n /* Text rise: 0.6em up to rest. Its opacity runs as a separate quick fade. */\n @keyframes oc-enter-rise {\n from {\n transform: translateY(0.6em);\n }\n to {\n transform: translateY(0);\n }\n }\n\n /* Row slide: 4px up to rest. Its opacity runs as a separate quick fade. */\n @keyframes oc-enter-slide {\n from {\n transform: translateY(4px);\n }\n to {\n transform: translateY(0);\n }\n }\n\n /* Table row entrance: slide up only, no opacity (cells fade independently\n to avoid opacity compounding between row and cell animations) */\n @keyframes oc-table-enter-row {\n from {\n transform: translateY(6px);\n }\n to {\n transform: translateY(0);\n }\n }\n\n /* Table bar fill entrance: clip-path grow only, no opacity\n (preserves resting opacity: 0.15 from table.css) */\n @keyframes oc-table-enter-bar-fill {\n from {\n clip-path: inset(0 100% 0 0);\n }\n to {\n clip-path: inset(0 0 0 0);\n }\n }\n\n /* Live-tile pulse: the terminator dot of a sparkline swells once when new\n data lands, so a glance at a wall of tiles catches which one just moved.\n `r` is animated as a presentation attribute (SVG geometry properties are\n animatable in CSS); the fallback is simply no swell. */\n @keyframes oc-pulse {\n from {\n r: var(--oc-pulse-r, 4px);\n fill-opacity: 1;\n }\n 45% {\n r: calc(var(--oc-pulse-r, 4px) * 1.8);\n fill-opacity: 0.5;\n }\n to {\n r: var(--oc-pulse-r, 4px);\n fill-opacity: 1;\n }\n }\n\n /* Tooltip entrance */\n @keyframes oc-tooltip-in {\n from {\n opacity: 0;\n transform: translateY(2px);\n }\n to {\n opacity: 1;\n transform: translateY(0);\n }\n }\n}\n","@layer oc.base {\n /* ---------------------------------------------------------------------------\n * Wrapper roots\n * --------------------------------------------------------------------------- */\n\n .oc-chart-root {\n width: 100%;\n height: 100%;\n }\n\n .oc-table-root,\n .oc-graph-root,\n .oc-sankey-root,\n .oc-barlist-root,\n .oc-tilemap-root,\n .oc-map-root {\n width: 100%;\n height: 100%;\n }\n\n .oc-table-root {\n overflow: auto;\n }\n\n /* ---------------------------------------------------------------------------\n * Chart container\n * --------------------------------------------------------------------------- */\n\n .oc-chart {\n font-family: var(--oc-font-family);\n font-variant-numeric: tabular-nums;\n display: block;\n width: 100%;\n }\n\n /* ---------------------------------------------------------------------------\n * BarList SVG container\n * --------------------------------------------------------------------------- */\n\n .oc-tilemap,\n .oc-map {\n display: block;\n width: 100%;\n height: auto;\n }\n\n .oc-map-feature {\n transition:\n opacity var(--oc-hover-duration) ease-out,\n stroke-width 140ms ease-out;\n }\n\n .oc-barlist {\n display: block;\n width: 100%;\n }\n\n /* ---------------------------------------------------------------------------\n * Screen reader only utility\n * --------------------------------------------------------------------------- */\n\n /* `overflow: clip`, not `hidden` — see applySrOnlyStyles in\n packages/vanilla/src/dom-helpers.ts for why. Keep the two in sync. */\n .oc-sr-only {\n position: absolute;\n top: 0;\n left: 0;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: clip;\n clip-path: inset(50%);\n white-space: nowrap;\n border-width: 0;\n }\n\n /* ---------------------------------------------------------------------------\n * Editable hover feedback\n * --------------------------------------------------------------------------- */\n\n .oc-editable-hover {\n outline: 1.5px solid var(--oc-editable-hover);\n outline-offset: 2px;\n border-radius: var(--oc-radius-sm);\n }\n\n /* ---------------------------------------------------------------------------\n * Keyboard focus indicators\n *\n * --oc-focus carries a light value in tokens.css and a dark value in\n * dark.css, so both rings stay visible in either mode.\n * --------------------------------------------------------------------------- */\n\n /* Container ring when the chart itself receives keyboard focus. */\n .oc-root:focus-visible {\n outline: 2px solid var(--oc-focus);\n outline-offset: 2px;\n }\n\n /* Mark ring during arrow-key navigation (see wireKeyboardNav). Outline on\n * SVG elements draws around the mark's bounding box, same technique as\n * .oc-editable-hover above. */\n .oc-mark-focused {\n outline: 2px solid var(--oc-focus);\n outline-offset: 1px;\n border-radius: var(--oc-radius-sm);\n }\n}\n"],"names":[]}
1
+ {"version":3,"mappings":"AAWA,iBEDE,oyIIAA,ioCNCF,eUNE,mIAeA,6BAQA,uGAWA,yDAOA,iGAMA,qCAWA,2JAkBA,qHAcA,4EAQA,yGV5FF,qBcNE,6CAIA,oDAKA,+EAKA,2EAKA,2KAQA,wIAOA,+GAMA,+HAQA,wFAOA,sCAQA,8CAIA,wHAQA,4HAQA,2EAMA,6EAQA,8EAWA,8EAgBA,sDAIA,sEAMA,4EAIA,wEAaA,sFAUA,sFASA,gCAMA,mFI7KA,4fAsBE,4FAOA,iFAOA,gMAWA,gGAMA,0EAKA,mHAQA,yJAUA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,qGAWA,uGAWA,iHAeA,4FAoBA,8IAaA,iGAcA,0FAaA,4FAcA,2FAaA,yDAUA,sGAYA,mFAUA,mFAWA,uFAWA,yFAaA,iKAgBA,sGIrOE,oTAAA,mTAYA,iJAAA,gJAUA,ySAaA,4TASA,yEAIA,uIAMA,kTAAA,kTAcA,iRAaA,6RAAA,8RAeA,mWAYA,6DAKA,+VAaA,6TAWA,6TAeA,6VAeA,kVAiBA,8ZAAA,gYAgBA,kUAcA,kQAUA,wRAUA,mRAMA,+EAKA,0QAUA,qWAgBA,kUAYA,wYAeA,sXAYA,0TXvTJ,yBIDE,uCACE,6LAAA,+LAAA,qMAAA,sMgBVJ,4EAIA","sources":["../src/styles/index.css","../src/styles/table.css","../src/styles/tokens.css","../src/styles/sparkline.css","../src/styles/reduced-motion.css","../src/styles/table-select.css","../src/styles/dark.css","../src/styles/keyframes.css","../src/styles/playback.css","../src/styles/table-animation.css","../src/styles/base.css","../src/styles/animation.css","../src/styles/race.css","../src/styles/graph.css","../src/styles/chrome.css","../src/styles/race-table.css","../src/styles/sankey.css","../src/styles/map-zoom.css","../src/styles/tooltip.css","../src/styles/legend.css","../src/styles/placement.css","../src/styles/interaction.css","../src/styles/series-search.css","../src/styles/you-draw-it.css","../src/styles/reader.css"],"sourcesContent":["/**\n * @opendata-ai/openchart-core styles\n *\n * CSS with oc- prefix for all class names.\n * CSS custom properties for theme overrides.\n * Dark mode via .oc-dark class on the container.\n * Cascade layers: oc.tokens, oc.base, oc.components, oc.animation, oc.reduced-motion.\n */\n\n/* For optimal typography, load Inter: https://fonts.google.com/specimen/Inter */\n\n@layer oc.tokens, oc.base, oc.components, oc.animation, oc.reduced-motion;\n\n@import \"./tokens.css\";\n@import \"./dark.css\";\n@import \"./base.css\";\n@import \"./chrome.css\";\n@import \"./tooltip.css\";\n@import \"./legend.css\";\n@import \"./reader.css\";\n@import \"./interaction.css\";\n@import \"./placement.css\";\n@import \"./series-search.css\";\n@import \"./you-draw-it.css\";\n@import \"./table.css\";\n@import \"./table-select.css\";\n@import \"./table-animation.css\";\n@import \"./graph.css\";\n@import \"./sankey.css\";\n@import \"./map-zoom.css\";\n@import \"./sparkline.css\";\n@import \"./keyframes.css\";\n@import \"./animation.css\";\n@import \"./reduced-motion.css\";\n@import \"./playback.css\";\n@import \"./race.css\";\n@import \"./race-table.css\";\n","@layer oc.components {\n /* ---------------------------------------------------------------------------\n * Table base\n * --------------------------------------------------------------------------- */\n\n .oc-table-wrapper {\n font-family: var(--oc-font-family);\n color: var(--oc-text);\n\n & > .oc-chrome {\n margin-bottom: 16px;\n padding-left: 16px;\n padding-right: 16px;\n }\n\n & > .oc-chrome:first-child {\n padding-top: 4px;\n }\n\n & table {\n width: 100%;\n border-collapse: collapse;\n }\n\n & th,\n & td {\n /* 12 + 24 + 12 = 48px rows. Condensed and relaxed keep the same\n line box and change only the padding, so the ladder is 40/48/56. */\n padding: 12px 16px;\n line-height: 24px;\n text-align: left;\n border-bottom: 1px solid var(--oc-border);\n /* Column widths from the engine already sum to the container width;\n without border-box the padding pushes each cell wider than its\n computed width and auto layout rescales the whole row. */\n box-sizing: border-box;\n }\n\n & th {\n font-weight: 500;\n font-size: 12px;\n text-transform: uppercase;\n letter-spacing: 0.04em;\n color: var(--oc-text-muted);\n font-variant-numeric: tabular-nums;\n white-space: nowrap;\n }\n\n & thead {\n position: sticky;\n top: 0;\n z-index: 2;\n }\n\n /* A hairline, like every other rule in the table. The old 2px header rule\n was the heaviest line on the page and drew the eye away from the data. */\n & thead th {\n border-bottom-width: 1px;\n }\n\n & td {\n font-size: 14px;\n font-variant-numeric: tabular-nums;\n }\n\n & th:focus {\n outline: 2px solid var(--oc-focus);\n outline-offset: -2px;\n }\n\n & tbody:focus {\n outline: none;\n }\n }\n\n .oc-table-title {\n margin-bottom: 4px;\n font-size: var(--oc-title-computed-size, var(--oc-title-size));\n font-weight: var(--oc-title-computed-weight, var(--oc-title-weight));\n color: var(--oc-title-computed-color, var(--oc-text));\n }\n\n .oc-table-subtitle {\n margin-bottom: 8px;\n font-size: var(--oc-subtitle-computed-size, var(--oc-subtitle-size));\n font-weight: var(--oc-subtitle-computed-weight, var(--oc-subtitle-weight));\n color: var(--oc-subtitle-computed-color, var(--oc-text-secondary));\n }\n\n .oc-table-source {\n font-size: var(--oc-source-computed-size, var(--oc-source-size));\n color: var(--oc-source-computed-color, var(--oc-text-muted));\n }\n\n .oc-table-footer-text {\n font-size: var(--oc-footer-computed-size, var(--oc-source-size));\n color: var(--oc-footer-computed-color, var(--oc-text-muted));\n }\n\n .oc-table-scroll {\n overflow-x: auto;\n }\n\n /* ---------------------------------------------------------------------------\n * Sticky first column\n * --------------------------------------------------------------------------- */\n\n .oc-table--sticky {\n & th:first-child,\n & td:first-child {\n position: sticky;\n left: 0;\n z-index: 1;\n background: var(--oc-bg);\n }\n }\n\n /* ---------------------------------------------------------------------------\n * Sort controls\n * --------------------------------------------------------------------------- */\n\n .oc-table-sort-btn {\n background: none;\n border: none;\n cursor: pointer;\n padding: 2px;\n margin-left: 6px;\n display: inline-flex;\n flex-direction: column;\n align-items: center;\n vertical-align: middle;\n gap: 2px;\n\n &::before,\n &::after {\n content: \"\";\n display: block;\n width: 0;\n height: 0;\n border-left: 5px solid transparent;\n border-right: 5px solid transparent;\n transition:\n opacity 0.15s,\n border-color 0.15s;\n }\n\n &::before {\n border-bottom: 4.5px solid var(--oc-text-secondary);\n opacity: 0.35;\n }\n\n &::after {\n border-top: 4.5px solid var(--oc-text-secondary);\n opacity: 0.35;\n }\n\n &:hover::before,\n &:hover::after {\n opacity: 0.75;\n }\n }\n\n th[aria-sort=\"ascending\"] .oc-table-sort-btn {\n &::before {\n opacity: 1;\n border-bottom-color: var(--oc-text);\n }\n\n &::after {\n opacity: 0.15;\n }\n }\n\n th[aria-sort=\"descending\"] .oc-table-sort-btn {\n &::after {\n opacity: 1;\n border-top-color: var(--oc-text);\n }\n\n &::before {\n opacity: 0.15;\n }\n }\n\n /* ---------------------------------------------------------------------------\n * Search\n * --------------------------------------------------------------------------- */\n\n /* Shared search-input skin (table + series-search).\n Padding excluded: it diverges (table: 8px 12px; series: 0 10px 0 28px)\n and series-search.css is imported before table.css — a padding declaration\n here would beat the series-search override by source order. */\n .oc-table-search input,\n .oc-series-search-input {\n width: 100%;\n border: 1px solid var(--oc-border);\n border-radius: var(--oc-radius-md);\n font-size: 13px;\n font-family: inherit;\n background: transparent;\n color: var(--oc-text);\n box-sizing: border-box;\n transition: border-color 0.15s;\n }\n\n .oc-table-search input::placeholder,\n .oc-series-search-input::placeholder {\n color: var(--oc-text-muted);\n font-size: 13px;\n }\n\n .oc-table-search input:focus,\n .oc-series-search-input:focus {\n outline: none;\n border-color: var(--oc-focus);\n box-shadow: 0 0 0 3px var(--oc-focus-ring);\n }\n\n .oc-table-search {\n padding: 8px 0;\n\n & input {\n padding: 8px 12px;\n }\n }\n\n /* ---------------------------------------------------------------------------\n * Pagination\n * --------------------------------------------------------------------------- */\n\n .oc-table-pagination {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 12px 0 4px;\n font-size: 13px;\n color: var(--oc-text-secondary);\n\n & button {\n padding: 6px 14px;\n border: 1px solid var(--oc-border);\n border-radius: var(--oc-radius-md);\n background: transparent;\n color: var(--oc-text);\n cursor: pointer;\n font-size: 13px;\n font-family: inherit;\n transition:\n background 0.15s,\n border-color 0.15s;\n\n &:disabled {\n opacity: 0.35;\n cursor: not-allowed;\n }\n\n &:hover:not(:disabled) {\n background: var(--oc-hover-bg);\n border-color: var(--oc-axis);\n }\n\n &:focus-visible {\n outline: 2px solid var(--oc-focus);\n outline-offset: 1px;\n }\n }\n }\n\n .oc-table-pagination-info {\n font-variant-numeric: tabular-nums;\n }\n\n .oc-table-pagination-btns {\n display: flex;\n gap: 8px;\n }\n\n /* ---------------------------------------------------------------------------\n * Bar cells\n * --------------------------------------------------------------------------- */\n\n .oc-table-bar {\n position: relative;\n }\n\n .oc-table-bar-fill {\n position: absolute;\n top: 8px;\n left: 0;\n bottom: 8px;\n border-radius: var(--oc-radius-sm);\n opacity: 0.18;\n pointer-events: none;\n }\n\n /* A low-alpha tint of a mid-dark color all but disappears on a dark\n surface, so dark mode lifts it. */\n .oc-dark .oc-table-bar-fill {\n opacity: 0.4;\n }\n\n .oc-table-bar-value {\n position: relative;\n z-index: 1;\n }\n\n /* ---------------------------------------------------------------------------\n * Sparkline cells\n * --------------------------------------------------------------------------- */\n\n .oc-table-sparkline {\n display: block;\n width: 100%;\n position: relative;\n\n & svg {\n display: block;\n width: 100%;\n overflow: visible;\n }\n }\n\n .oc-table-sparkline-dot {\n position: absolute;\n border-radius: 50%;\n width: 5px;\n height: 5px;\n }\n\n .oc-table-sparkline-labels {\n display: flex;\n justify-content: space-between;\n font-size: 11px;\n line-height: 1;\n color: var(--oc-text-secondary);\n }\n\n /* ---------------------------------------------------------------------------\n * Image cells\n * --------------------------------------------------------------------------- */\n\n .oc-table-image {\n display: inline-block;\n vertical-align: middle;\n\n & img {\n object-fit: cover;\n }\n }\n\n .oc-table-image-rounded img,\n .oc-table-image-rounded .oc-table-image-placeholder {\n border-radius: 50%;\n }\n\n /* Stands in for an image that failed to load or has no link. Its width and\n height are set inline to the image's size. */\n .oc-table-image-placeholder {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n overflow: hidden;\n background: var(--oc-gray-100);\n border: 1px solid var(--oc-gridline);\n color: var(--oc-text-secondary);\n font-size: 10px;\n line-height: 1;\n text-align: center;\n }\n\n /* ---------------------------------------------------------------------------\n * Flag cells\n * --------------------------------------------------------------------------- */\n\n .oc-table-flag {\n font-size: 1.2em;\n }\n\n /* ---------------------------------------------------------------------------\n * Density\n *\n * regular 48px rows (base), condensed 40px, relaxed 56px.\n * --------------------------------------------------------------------------- */\n\n .oc-table--condensed {\n & th,\n & td {\n padding: 8px 12px;\n line-height: 24px;\n font-size: 13px;\n }\n\n & th {\n font-size: 11px;\n }\n\n & .oc-table-bar-fill {\n top: 5px;\n bottom: 5px;\n }\n }\n\n .oc-table--relaxed {\n & th,\n & td {\n padding: 16px 20px;\n line-height: 24px;\n }\n\n & .oc-table-bar-fill {\n top: 12px;\n bottom: 12px;\n }\n }\n\n /* ---------------------------------------------------------------------------\n * Striping\n * --------------------------------------------------------------------------- */\n\n .oc-table--striped tbody tr:nth-child(even) {\n background: color-mix(in srgb, var(--oc-text) 3%, transparent);\n }\n\n /* ---------------------------------------------------------------------------\n * Delta chips\n * --------------------------------------------------------------------------- */\n\n .oc-table-delta {\n display: inline-flex;\n align-items: baseline;\n gap: 4px;\n padding: 2px 8px;\n border-radius: var(--oc-radius-md);\n font-weight: 500;\n font-variant-numeric: tabular-nums;\n line-height: 16px;\n }\n\n .oc-table-delta-arrow {\n font-size: 0.8em;\n line-height: 1;\n }\n\n .oc-table-delta--positive {\n color: var(--oc-positive);\n background: var(--oc-positive-tint);\n }\n\n .oc-table-delta--negative {\n color: var(--oc-negative);\n background: var(--oc-negative-tint);\n }\n\n .oc-table-delta--neutral {\n color: var(--oc-text-muted);\n background: color-mix(in srgb, var(--oc-text) 6%, transparent);\n }\n\n /* Category chips: the engine supplies the tint, ink and dot color inline. */\n .oc-table-chip {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n padding: 2px 8px;\n border-radius: var(--oc-radius-full);\n font-size: 12px;\n font-weight: 500;\n line-height: 16px;\n white-space: nowrap;\n }\n\n .oc-table-chip-dot {\n flex: none;\n width: 6px;\n height: 6px;\n border-radius: 50%;\n }\n\n /* ---------------------------------------------------------------------------\n * Totals footer\n * --------------------------------------------------------------------------- */\n\n tfoot.oc-table-total {\n position: sticky;\n bottom: 0;\n z-index: 2;\n\n & td {\n font-weight: 600;\n border-bottom: none;\n border-top: 1px solid var(--oc-border);\n }\n }\n\n /* ---------------------------------------------------------------------------\n * Cards mode (below 400px)\n *\n * Rows become two-column grids with the header printed per cell. `display:\n * grid` drops the implicit table roles, so the renderer stamps explicit ARIA\n * roles on every element; `display: contents` is deliberately NOT used —\n * it removes the row box the grid needs and breaks the semantics further.\n * --------------------------------------------------------------------------- */\n\n .oc-table--cards {\n & .oc-table-scroll {\n overflow-x: hidden;\n }\n\n & table {\n table-layout: fixed;\n }\n\n & thead {\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n }\n\n & tbody tr,\n & tfoot tr {\n display: grid;\n /* Two equal halves keep every label/value pair the same width; an\n auto first column makes the third cell in a row narrower than the\n second and the card reads ragged. */\n grid-template-columns: repeat(2, minmax(0, 1fr));\n gap: 2px 12px;\n align-items: baseline;\n padding: 10px 12px;\n border-bottom: 1px solid var(--oc-border);\n }\n\n & td {\n display: block;\n width: auto;\n max-width: 100%;\n padding: 0;\n border-bottom: none;\n overflow-wrap: anywhere;\n text-align: right;\n }\n\n & td::before {\n content: attr(data-label);\n display: block;\n font-size: 11px;\n font-weight: 500;\n letter-spacing: 0.04em;\n text-transform: uppercase;\n color: var(--oc-text-muted);\n text-align: left;\n }\n\n /* A column with no header (flags, logos) prints no label either. */\n & td[data-label=\"\"]::before {\n content: none;\n }\n\n /* Priority 1 leads the card on its own line, label suppressed. */\n & td[data-priority=\"1\"] {\n grid-column: 1 / -1;\n font-size: 15px;\n font-weight: 600;\n text-align: left;\n }\n\n & td[data-priority=\"1\"]::before {\n content: none;\n }\n\n & td[data-priority=\"3\"] {\n display: none;\n }\n\n & .oc-table-sparkline {\n width: 100%;\n }\n }\n\n /* ---------------------------------------------------------------------------\n * Row hover (when onRowClick is set)\n * --------------------------------------------------------------------------- */\n\n .oc-table--clickable tbody {\n & tr {\n cursor: pointer;\n }\n\n & tr:hover {\n background: var(--oc-hover-bg);\n }\n }\n\n /* ---------------------------------------------------------------------------\n * Keyboard cell focus indicator\n * --------------------------------------------------------------------------- */\n\n .oc-table-cell-focus {\n outline: 2px solid var(--oc-focus);\n outline-offset: -2px;\n }\n\n /* ---------------------------------------------------------------------------\n * Empty state\n * --------------------------------------------------------------------------- */\n\n .oc-table-empty {\n padding: 32px 16px;\n text-align: center;\n color: var(--oc-text-secondary);\n font-size: 14px;\n font-style: italic;\n }\n}\n\n@layer oc.components {\n .oc-table--priority {\n & table {\n width: 100%;\n table-layout: auto;\n }\n & [hidden] {\n display: none;\n }\n & th,\n & td {\n /* biome-ignore lint/complexity/noImportantStyles: responsive mode overrides authored desktop inline column widths. */\n width: auto !important;\n padding-inline: 8px;\n }\n & th {\n position: relative;\n white-space: normal;\n padding-right: 20px;\n min-height: 44px;\n }\n & .oc-table-sort-btn {\n position: absolute;\n inset: 0;\n width: 100%;\n height: 100%;\n margin: 0;\n padding-right: 4px;\n align-items: flex-end;\n justify-content: center;\n }\n & .oc-table-details {\n white-space: normal;\n }\n & summary {\n cursor: pointer;\n min-height: 44px;\n display: flex;\n align-items: center;\n font-size: 12px;\n }\n & details[open] {\n min-width: 110px;\n }\n & dl {\n margin: 4px 0 12px;\n font-size: 12px;\n }\n & dt {\n margin-top: 8px;\n color: var(--oc-text-secondary);\n }\n & dd {\n margin: 4px 0 0;\n }\n }\n}\n","/* GENERATED FILE — do not edit. Source: packages/core/src/styles/token-definitions.ts. Regenerate: bun run generate:tokens */\n\n@layer oc.tokens {\n /* ---------------------------------------------------------------------------\n * Custom properties (light mode defaults)\n *\n * Defaults remain in CSS so host styles can override them. The JS theme\n * engine stamps only authored theme overrides (theme-tokens.ts).\n * --------------------------------------------------------------------------- */\n\n .oc-root,\n .oc-chart-root,\n .oc-table-wrapper,\n .oc-table-root,\n .oc-graph-wrapper,\n .oc-graph-root,\n .oc-sankey-root,\n .oc-tilemap-root,\n .oc-barlist-root,\n .oc-map-root {\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n\n /* Opt out of iOS text auto-inflation so measured widths match rendered text. */\n -webkit-text-size-adjust: 100%;\n text-size-adjust: 100%;\n\n --oc-font-family:\n \"Inter Variable\", Inter, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, sans-serif;\n --oc-font-mono: \"JetBrains Mono\", \"Fira Code\", \"Cascadia Code\", monospace;\n\n /* Animation easing presets via CSS linear() */\n --oc-ease-smooth: linear(\n 0 0%,\n 0.006 2.5%,\n 0.0285 5%,\n 0.0764 7.5%,\n 0.1562 10%,\n 0.2556 12.5%,\n 0.3506 15%,\n 0.4318 17.5%,\n 0.5 20%,\n 0.5577 22.5%,\n 0.6072 25%,\n 0.6503 27.5%,\n 0.6881 30%,\n 0.7216 32.5%,\n 0.7514 35%,\n 0.7782 37.5%,\n 0.8023 40%,\n 0.824 42.5%,\n 0.8438 45%,\n 0.8616 47.5%,\n 0.8778 50%,\n 0.9059 55%,\n 0.9291 60%,\n 0.948 65%,\n 0.9633 70%,\n 0.9755 75%,\n 0.9849 80%,\n 0.9918 85%,\n 0.9965 90%,\n 0.9991 95%,\n 1 100%\n );\n --oc-ease-snappy: linear(\n 0 0%,\n 0.2926 2%,\n 0.4806 4%,\n 0.6111 6%,\n 0.7061 8%,\n 0.7772 10%,\n 0.8315 12%,\n 0.8735 14%,\n 0.9061 16%,\n 0.9314 18%,\n 0.951 20%,\n 0.966 22%,\n 0.9773 24%,\n 0.9855 26%,\n 0.9913 28%,\n 0.995 30%,\n 0.9971 35%,\n 0.9985 40%,\n 0.9994 45%,\n 0.9998 50%,\n 1 55%,\n 1 60%,\n 1 80%,\n 1 100%\n );\n --oc-ease-gentle: linear(\n 0,\n 0.157,\n 0.438,\n 0.64,\n 0.766,\n 0.85,\n 0.906,\n 0.941,\n 0.964,\n 0.978,\n 0.988,\n 0.994,\n 0.998,\n 1\n );\n --oc-ease-snap: linear(\n 0 0%,\n 0.1876 2%,\n 0.3469 4%,\n 0.4773 6%,\n 0.582 8%,\n 0.6656 10%,\n 0.7325 12%,\n 0.7862 14%,\n 0.8296 16%,\n 0.8647 18%,\n 0.8931 20%,\n 0.9161 22%,\n 0.9346 24%,\n 0.9494 26%,\n 0.961 28%,\n 0.97 30%,\n 0.9768 35%,\n 0.9825 40%,\n 0.987 45%,\n 0.9906 50%,\n 0.9934 55%,\n 0.9956 60%,\n 0.9971 65%,\n 0.9983 70%,\n 0.999 75%,\n 0.9995 80%,\n 0.9998 85%,\n 0.9999 90%,\n 1 95%,\n 1 100%\n );\n --oc-ease-punch: linear(\n 0 0%,\n 0.1714 2.5%,\n 0.3321 5%,\n 0.4776 7.5%,\n 0.605 10%,\n 0.7132 12.5%,\n 0.8029 15%,\n 0.8757 17.5%,\n 0.9336 20%,\n 0.9787 22.5%,\n 1.0127 25%,\n 1.0373 27.5%,\n 1.0539 30%,\n 1.0636 32.5%,\n 1.0673 35%,\n 1.0659 37.5%,\n 1.06 40%,\n 1.0509 42.5%,\n 1.0428 45%,\n 1.0358 47.5%,\n 1.0296 50%,\n 1.0196 55%,\n 1.0122 60%,\n 1.0069 65%,\n 1.0033 70%,\n 1.0011 75%,\n 0.9999 80%,\n 0.9995 85%,\n 0.9996 90%,\n 0.9998 95%,\n 1 100%\n );\n --oc-ease-glide: linear(\n 0 0%,\n 0.006 2.5%,\n 0.0285 5%,\n 0.0764 7.5%,\n 0.1562 10%,\n 0.2556 12.5%,\n 0.3506 15%,\n 0.4318 17.5%,\n 0.5 20%,\n 0.5577 22.5%,\n 0.6072 25%,\n 0.6503 27.5%,\n 0.6881 30%,\n 0.7216 32.5%,\n 0.7514 35%,\n 0.7782 37.5%,\n 0.8023 40%,\n 0.824 42.5%,\n 0.8438 45%,\n 0.8616 47.5%,\n 0.8778 50%,\n 0.9059 55%,\n 0.9291 60%,\n 0.948 65%,\n 0.9633 70%,\n 0.9755 75%,\n 0.9849 80%,\n 0.9918 85%,\n 0.9965 90%,\n 0.9991 95%,\n 1 100%\n );\n\n /* Animation timing defaults */\n --oc-animation-duration: 800ms;\n --oc-animation-stagger: 80ms;\n --oc-annotation-delay: 150ms;\n\n /* Typography scale (editorial design system) */\n --oc-title-size: 26px;\n --oc-title-weight: 600; /* one ladder: 400 regular / 500 medium / 600 semibold / 700 bold */\n --oc-title-tracking: -0.022em;\n --oc-subtitle-size: 14px;\n --oc-subtitle-weight: 400;\n --oc-source-size: 12px;\n --oc-source-weight: 400;\n --oc-body-size: 13px;\n /* Emphasis for existing zero rules; does not change the domain */\n --oc-gridline-zero: rgba(0, 0, 0, 0.22);\n --oc-endpoint-label-size: 13px;\n --oc-endpoint-value-size: 12px;\n --oc-endpoint-entry-gap: 6px;\n --oc-endpoint-value-gap: 4px;\n --oc-endpoint-column-gap: 18px;\n --oc-map-no-data-fill: #f0f0f0; /* Engine omission derives neutral[100] from the active theme */\n --oc-map-no-data-hatch: #c9c9c9; /* Engine omission derives neutral[300] from the active theme */\n --oc-map-interior-border: rgba(0, 0, 0, 0.14);\n --oc-map-outline-border: rgba(0, 0, 0, 0.4);\n --oc-annotation-label: #333333;\n --oc-annotation-muted: #6b7280;\n --oc-annotation-leader: #8f8f8f;\n --oc-annotation-rule: #888888;\n --oc-annotation-range-fill: #f0c040;\n --oc-annotation-marker-fill: #ffffff;\n --oc-annotation-plate: #ffffff;\n --oc-eyebrow-size: 11px;\n --oc-eyebrow-weight: 500;\n --oc-eyebrow-tracking: 0.08em;\n\n /* Surfaces (light mode defaults) */\n --oc-bg: #ffffff;\n --oc-card: #ffffff;\n --oc-secondary: #f4f4f5; /* zinc-100, raised surface */\n\n /*\n * Text levels. Names invert across modes: in light mode \"muted\" sits at\n * a lighter zinc step than \"subtle\" because both are picked relative to\n * the active background, not from a fixed lightness ladder. The intent\n * is \"muted = first step away from primary text\"; \"subtle = next step\n * down\"; etc.\n *\n * Light mode: text=zinc-950, secondary=zinc-700, muted=zinc-500,\n * subtle=zinc-400, faint=zinc-300\n * Dark mode (dark.css): inverts the surface tokens but keeps the same\n * muted -> subtle -> faint progression away from primary.\n */\n --oc-text: #09090b;\n --oc-text-secondary: #3f3f46;\n --oc-text-muted: #71717a;\n --oc-text-faint: #d4d4d8;\n\n /*\n * Derived neutral ramp. Named by the share of *text* in a text-toward-\n * background mix: 100 is nearly the background, 800 is nearly the text.\n * These static values are the mix against the default surfaces; mounts\n * restamp them from ResolvedTheme.colors.neutral, which a custom warm or\n * cool theme derives from its own text/background pair.\n */\n --oc-gray-100: #f0f0f0;\n --oc-gray-200: #e1e1e2;\n --oc-gray-300: #c9c9c9;\n --oc-gray-400: #9d9d9d;\n --oc-gray-600: #787879;\n --oc-gray-800: #474748;\n\n /* Lines */\n --oc-gridline: rgba(0, 0, 0, 0.05);\n --oc-axis: rgba(0, 0, 0, 0.14); /* hairline = theme.colors.hairline, not the tick-label ink */\n --oc-border: rgba(0, 0, 0, 0.08);\n --oc-border-radius: 8px; /* containers and tooltips; marks use --oc-radius-sm */\n\n /* Radius ladder */\n --oc-radius-sm: 2px;\n --oc-radius-md: 6px;\n --oc-radius-lg: var(--oc-border-radius);\n --oc-radius-full: 999px;\n\n /* Brand and semantic */\n --oc-accent: #06b6d4;\n --oc-accent-strong: #0891b2; /* darker cyan for line strokes on light bg */\n /* kept equal to DEFAULT_THEME.colors.positive (token-theme-parity test) */\n --oc-positive: #15803d;\n --oc-negative: #dc2626;\n /* delta chip background */\n --oc-positive-tint: color-mix(in srgb, var(--oc-positive) 10%, var(--oc-bg));\n --oc-negative-tint: color-mix(in srgb, var(--oc-negative) 10%, var(--oc-bg));\n --oc-focus: #3b82f6;\n /* static, intentionally NOT derived from --oc-focus and NOT flipped in dark mode */\n --oc-focus-ring: rgba(59, 130, 246, 0.1);\n --oc-focus-ring-strong: rgba(59, 130, 246, 0.25);\n --oc-editable-hover: rgba(79, 70, 229, 0.35); /* edit-mode hover outline, indigo one-off */\n\n /* Spacing scale (4px base) — only --oc-space-2/4 are consumed (JS-stamped) */\n --oc-space-2: 8px;\n --oc-space-4: 16px;\n\n /*\n * Hover language. The hovered element goes to full ink; the rest of its\n * group drops to --oc-hover-dim over --oc-hover-duration. Maps override the\n * dim locally (3000 county paths at 0.3 reads as a blackout, not a hint).\n */\n --oc-hover-dim: 0.3;\n --oc-hover-duration: 140ms;\n --oc-map-hover-dim: 0.75;\n\n /* Interactive states */\n --oc-hover-bg: rgba(0, 0, 0, 0.025);\n --oc-tooltip-bg: rgba(255, 255, 255, 0.88);\n --oc-tooltip-border: rgba(0, 0, 0, 0.08);\n --oc-tooltip-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 0 1px rgba(0, 0, 0, 0.12);\n --oc-tooltip-text: #09090b;\n --oc-legend-text: #3f3f46;\n }\n}\n","@layer oc.components {\n /**\n * Sparkline display mode.\n *\n * Stamped on the SVG root as data-display=\"sparkline\" by the renderer when\n * the spec sets display: 'sparkline'. Strips any inherited padding/margin\n * so the mark renders truly edge-to-edge in tight container layouts (KPI\n * cards, table cells, dashboard tiles).\n */\n\n .oc-chart[data-display=\"sparkline\"] {\n display: block;\n margin: 0;\n padding: 0;\n }\n\n /**\n * Data-arrival pulse. The update driver stamps `oc-pulse` on the sparkline's\n * terminator dot when a transition finishes and strips it 600ms later.\n * Deliberately not scoped under `.oc-animate`: that class only exists during\n * the entrance window, and this fires on updates.\n */\n .oc-chart[data-display=\"sparkline\"] .oc-pulse {\n animation: oc-pulse 600ms ease-out;\n }\n\n @media (prefers-reduced-motion: reduce) {\n .oc-chart[data-display=\"sparkline\"] .oc-pulse {\n animation: none;\n }\n }\n}\n","/* ---------------------------------------------------------------------------\n * Reduced motion\n *\n * Catch-all: last-declared layer beats every earlier layer regardless of\n * specificity. No !important, no hand-maintained selector mirror.\n *\n * Selector list matches CSS_TOKEN_ROOT_SELECTORS in token-definitions.ts.\n * --------------------------------------------------------------------------- */\n\n@layer oc.reduced-motion {\n @media (prefers-reduced-motion: reduce) {\n :is(\n .oc-root,\n .oc-chart-root,\n .oc-table-wrapper,\n .oc-table-root,\n .oc-graph-wrapper,\n .oc-graph-root,\n .oc-sankey-root,\n .oc-tilemap-root,\n .oc-barlist-root,\n .oc-map-root\n ),\n :is(\n .oc-root,\n .oc-chart-root,\n .oc-table-wrapper,\n .oc-table-root,\n .oc-graph-wrapper,\n .oc-graph-root,\n .oc-sankey-root,\n .oc-tilemap-root,\n .oc-barlist-root,\n .oc-map-root\n )\n *,\n :is(\n .oc-root,\n .oc-chart-root,\n .oc-table-wrapper,\n .oc-table-root,\n .oc-graph-wrapper,\n .oc-graph-root,\n .oc-sankey-root,\n .oc-tilemap-root,\n .oc-barlist-root,\n .oc-map-root\n )\n *::before,\n :is(\n .oc-root,\n .oc-chart-root,\n .oc-table-wrapper,\n .oc-table-root,\n .oc-graph-wrapper,\n .oc-graph-root,\n .oc-sankey-root,\n .oc-tilemap-root,\n .oc-barlist-root,\n .oc-map-root\n )\n *::after {\n animation: none;\n transition: none;\n }\n }\n}\n","/* Table column selection (`interaction: 'select'`): the selected header's outline and its cells' fill. */\n\n/* The mount sets --oc-table-selection-color from the host's `selectionColor`;\n without it the selection draws in the theme's text color. */\n@layer oc.components {\n .oc-table-col-select {\n appearance: none;\n background: none;\n border: none;\n padding: 0;\n margin: 0;\n font: inherit;\n color: inherit;\n letter-spacing: inherit;\n text-transform: inherit;\n text-align: inherit;\n cursor: pointer;\n border-radius: var(--oc-radius-sm);\n\n &:hover {\n color: var(--oc-text);\n }\n\n &:focus-visible {\n outline: 2px solid var(--oc-focus);\n outline-offset: 2px;\n }\n }\n\n .oc-table-wrapper th[data-selected] {\n color: var(--oc-text);\n outline: 2px solid var(--oc-table-selection-color, var(--oc-text));\n outline-offset: -2px;\n }\n\n /* An inset shadow paints over a cell's own background (heatmap and category\n fills are inline), so the tint shows on every cell type. */\n .oc-table-wrapper td[data-selected] {\n box-shadow: inset 0 0 0 100vmax\n color-mix(in srgb, var(--oc-table-selection-color, var(--oc-text)) 8%, transparent);\n }\n\n /* Priority mode stretches the sort button over the whole header; beside a\n select button it keeps to the header's right edge so the label stays clickable. */\n .oc-table--priority th .oc-table-col-select ~ .oc-table-sort-btn {\n inset: 0 0 0 auto;\n width: 20px;\n }\n}\n","/* GENERATED FILE — do not edit. Source: packages/core/src/styles/token-definitions.ts. Regenerate: bun run generate:tokens */\n\n@layer oc.tokens {\n /* ---------------------------------------------------------------------------\n * Dark mode overrides (fallback defaults)\n *\n * Dark defaults stay in CSS; authored theme overrides are resolved and\n * stamped by the JS theme engine.\n * --------------------------------------------------------------------------- */\n\n .oc-dark {\n /* Surfaces (zinc-based achromatic ramp) */\n --oc-bg: #09090b;\n --oc-card: #111113;\n --oc-secondary: #27272a;\n\n /* Text levels — see tokens.css for the cross-mode naming rationale */\n --oc-text: #f7f8f8;\n --oc-text-secondary: #d0d6e0;\n --oc-text-muted: #a1a1aa;\n --oc-text-faint: #52525b;\n\n /* Lines */\n --oc-gridline: rgba(255, 255, 255, 0.06);\n --oc-axis: rgba(255, 255, 255, 0.14);\n --oc-border: rgba(255, 255, 255, 0.1);\n\n /* Brand and semantic — accent stays cyan (no darkening on dark bg) */\n --oc-accent: #06b6d4;\n --oc-accent-strong: #06b6d4;\n --oc-positive: #4ade80;\n --oc-negative: #f87171;\n --oc-focus: #60a5fa;\n\n /* Interactive states */\n --oc-hover-bg: rgba(255, 255, 255, 0.05);\n --oc-tooltip-bg: rgba(17, 17, 19, 0.92);\n --oc-tooltip-border: rgba(255, 255, 255, 0.08);\n --oc-tooltip-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 1px rgba(0, 0, 0, 0.4);\n --oc-tooltip-text: #f7f8f8;\n --oc-legend-text: #d0d6e0;\n\n /* Annotation and neutral colors */\n --oc-gridline-zero: rgba(255, 255, 255, 0.24);\n --oc-map-no-data-fill: #171719;\n --oc-map-no-data-hatch: #3d3e3f;\n --oc-map-interior-border: rgba(255, 255, 255, 0.18);\n --oc-map-outline-border: rgba(255, 255, 255, 0.38);\n --oc-annotation-label: #d1d5db;\n --oc-annotation-muted: #9ca3af;\n --oc-annotation-leader: #9aa0a6;\n --oc-annotation-rule: #9ca3af;\n --oc-annotation-range-fill: #f0c040;\n --oc-annotation-marker-fill: #09090b;\n --oc-annotation-plate: #09090b;\n --oc-gray-100: #171719;\n --oc-gray-200: #262627;\n --oc-gray-300: #3d3e3f;\n --oc-gray-400: #68696a;\n --oc-gray-600: #8c8c8d;\n --oc-gray-800: #bcbcbd;\n }\n}\n","/* GENERATED FILE — do not edit. Source: packages/core/src/motion/choreography.ts. Regenerate: bun run generate:motion */\n\n@layer oc.animation {\n /* ---------------------------------------------------------------------------\n * Animation keyframes\n * --------------------------------------------------------------------------- */\n\n /* Bar entrance: clip-path reveal from the baseline (vertical columns), no fade:\n a value mark is solid from its first frame. Grows bottom-to-top unless the\n renderer stamps --oc-bar-from (a negative column grows top-to-bottom). */\n @keyframes oc-enter-bar {\n from {\n clip-path: inset(var(--oc-bar-from, 100% 0 0 0));\n }\n to {\n clip-path: inset(0 0 0 0);\n }\n }\n\n /* Bar entrance: clip-path reveal from the baseline (horizontal bars), no fade.\n Grows left-to-right unless --oc-bar-from is stamped (negative bars). */\n @keyframes oc-enter-bar-h {\n from {\n clip-path: inset(var(--oc-bar-from, 0 100% 0 0));\n }\n to {\n clip-path: inset(0 0 0 0);\n }\n }\n\n /* Stack entrance: one clip over the whole stack, no fade. Grows bottom-to-top\n from --oc-stack-from, which the renderer stamps when the baseline is not the\n bottom edge, so the clip starts collapsed on the baseline and grows both\n ways from it. */\n @keyframes oc-enter-stack {\n from {\n clip-path: inset(var(--oc-stack-from, 100% 0 0 0));\n }\n to {\n clip-path: inset(0 0 0 0);\n }\n }\n\n /* Horizontal stack entrance: grows left-to-right, or both ways from the\n baseline when --oc-stack-from is stamped. */\n @keyframes oc-enter-stack-h {\n from {\n clip-path: inset(var(--oc-stack-from, 0 100% 0 0));\n }\n to {\n clip-path: inset(0 0 0 0);\n }\n }\n\n /* Line/area entrance: clip-path reveal left-to-right + fade in.\n Lines draw in following reading direction with a soft lead-in. */\n @keyframes oc-enter-line {\n from {\n clip-path: inset(0 100% 0 0);\n opacity: 0;\n }\n 15% {\n opacity: 1;\n }\n to {\n clip-path: inset(0 0 0 0);\n opacity: 1;\n }\n }\n\n /* Point/arc entrance: scale up + fade in from center */\n @keyframes oc-enter-point {\n from {\n opacity: 0;\n transform: scale(0.3);\n }\n to {\n opacity: 1;\n transform: scale(1);\n }\n }\n\n /* Map feature entrance: fade in while transitioning fill from a neutral base\n to the data-driven color stored in --oc-feature-fill. The target opacity is\n --oc-feature-target-opacity (default 1) so features under a focus dim\n animate straight to their dimmed rest opacity instead of hitting 1 and then\n snapping down when the dim is applied post-animation.\n Non-interpolable fills (the url(#pattern) hatch on no-data features) do not\n transition: the browser holds the neutral and flips to the pattern when the\n eased progress passes 50%, so those features fade in rather than\n cross-fade. */\n @keyframes oc-enter-map-fill {\n from {\n fill: var(--oc-secondary);\n opacity: 0;\n }\n to {\n fill: var(--oc-feature-fill);\n opacity: var(--oc-feature-target-opacity, 1);\n }\n }\n\n /* Map point pop-in: gentle scale from 0.75 + fade. Uses transform-origin to\n scale from the circle's own center (cx/cy) rather than the SVG origin. */\n @keyframes oc-enter-map-point {\n from {\n opacity: 0;\n transform: scale(0.75);\n }\n to {\n opacity: 1;\n transform: scale(1);\n }\n }\n\n /* Line point pop: fade in while scaling up from 0.4. The renderer stamps an\n inline px transform-origin at the point centre, so it grows in place\n (and in GIF frames, which carry no animation CSS). */\n @keyframes oc-enter-pop {\n from {\n opacity: 0;\n transform: scale(0.4);\n }\n to {\n opacity: 1;\n transform: scale(1);\n }\n }\n\n /* Grid cell pop: fade in while scaling up from 0.85 about the cell centre\n (inline px transform-origin stamped by the renderer). */\n @keyframes oc-enter-cell {\n from {\n opacity: 0;\n transform: scale(0.85);\n }\n to {\n opacity: 1;\n transform: scale(1);\n }\n }\n\n /* Slice growth: fade in while scaling up from 0.94. The slice path is drawn\n around its group's local origin (the group carries translate(cx, cy)), so\n the default transform-origin of 0 0 is the pie centre. */\n @keyframes oc-enter-arc {\n from {\n opacity: 0;\n transform: scale(0.94);\n }\n to {\n opacity: 1;\n transform: scale(1);\n }\n }\n\n /* Pure opacity fade (no transform). Safe for elements with existing transforms\n like arc groups that use translate() for positioning. */\n @keyframes oc-enter-fade-only {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n }\n\n /* Fade + subtle slide up (table chrome) */\n @keyframes oc-enter-fade {\n from {\n opacity: 0;\n transform: translateY(4px);\n }\n to {\n opacity: 1;\n transform: translateY(0);\n }\n }\n\n /* Text rise: 0.6em up to rest. Its opacity runs as a separate quick fade. */\n @keyframes oc-enter-rise {\n from {\n transform: translateY(0.6em);\n }\n to {\n transform: translateY(0);\n }\n }\n\n /* Row slide: 4px up to rest. Its opacity runs as a separate quick fade. */\n @keyframes oc-enter-slide {\n from {\n transform: translateY(4px);\n }\n to {\n transform: translateY(0);\n }\n }\n\n /* Table row entrance: slide up only, no opacity (cells fade independently\n to avoid opacity compounding between row and cell animations) */\n @keyframes oc-table-enter-row {\n from {\n transform: translateY(6px);\n }\n to {\n transform: translateY(0);\n }\n }\n\n /* Table bar fill entrance: clip-path grow only, no opacity\n (preserves resting opacity: 0.15 from table.css) */\n @keyframes oc-table-enter-bar-fill {\n from {\n clip-path: inset(0 100% 0 0);\n }\n to {\n clip-path: inset(0 0 0 0);\n }\n }\n\n /* Live-tile pulse: the terminator dot of a sparkline swells once when new\n data lands, so a glance at a wall of tiles catches which one just moved.\n `r` is animated as a presentation attribute (SVG geometry properties are\n animatable in CSS); the fallback is simply no swell. */\n @keyframes oc-pulse {\n from {\n r: var(--oc-pulse-r, 4px);\n fill-opacity: 1;\n }\n 45% {\n r: calc(var(--oc-pulse-r, 4px) * 1.8);\n fill-opacity: 0.5;\n }\n to {\n r: var(--oc-pulse-r, 4px);\n fill-opacity: 1;\n }\n }\n\n /* Tooltip entrance */\n @keyframes oc-tooltip-in {\n from {\n opacity: 0;\n transform: translateY(2px);\n }\n to {\n opacity: 1;\n transform: translateY(0);\n }\n }\n}\n","/*\n * Playback controls (play button, scrubber, readout) shared by races, charts and maps, and\n * the pointer rule for a playback chart's overlay labels. Each control selector lists both the .oc-race-* and .oc-playback-* prefixes. The controls set\n * the scrubber's progress as --<prefix>-progress; the race shell sets\n * --oc-race-progress-color on its controls slot.\n */\n@layer oc.components {\n /* The period label and name labels drawn over a playback chart describe the marks; they\n aren't marks themselves, so pointer and touch go through them to the marks beneath. */\n [data-key^=\"oc-playback-\"] {\n pointer-events: none;\n }\n\n .oc-race-controls,\n .oc-playback-controls {\n display: flex;\n align-items: center;\n gap: 12px;\n height: 44px;\n color: var(--oc-text);\n font-family: var(--oc-font-family);\n }\n\n .oc-race-play,\n .oc-playback-play {\n display: grid;\n place-items: center;\n flex: none;\n box-sizing: border-box;\n width: 32px;\n height: 32px;\n /* Pull the button left so the 16px icon, not the hit area, lines up with the chart inset. */\n margin-inline-start: -8px;\n padding: 0;\n border: 0;\n border-radius: 4px;\n background: transparent;\n color: inherit;\n font: inherit;\n cursor: pointer;\n }\n\n .oc-race-play:hover,\n .oc-playback-play:hover {\n background: var(--oc-hover-bg);\n }\n\n .oc-race-play:focus-visible,\n .oc-race-scrub:focus-visible,\n .oc-playback-play:focus-visible,\n .oc-playback-scrub:focus-visible {\n outline: 2px solid var(--oc-focus);\n outline-offset: 2px;\n }\n\n .oc-race-scrub,\n .oc-playback-scrub {\n --oc-playback-track-direction: to right;\n --oc-playback-track-fill: linear-gradient(\n var(--oc-playback-track-direction),\n var(--oc-race-progress-color, var(--oc-playback-progress-color, var(--oc-text)))\n var(--oc-race-progress, var(--oc-playback-progress, 0%)),\n var(--oc-border) var(--oc-race-progress, var(--oc-playback-progress, 0%))\n );\n /* Grow outward and keep the native thumb's travel and center fixed. */\n --oc-playback-thumb-grow: 0px;\n --oc-playback-thumb-ring:\n 0 0 0 var(--oc-playback-thumb-grow) var(--oc-text),\n 0 0 0 calc(2px + var(--oc-playback-thumb-grow)) var(--oc-bg);\n appearance: none;\n flex: 1;\n min-width: 0;\n height: 16px;\n margin: 0;\n padding: 0;\n border: 0;\n background: transparent;\n cursor: pointer;\n }\n\n .oc-race-scrub:dir(rtl),\n .oc-playback-scrub:dir(rtl) {\n --oc-playback-track-direction: to left;\n }\n\n .oc-race-scrub:hover,\n .oc-race-scrub:active,\n .oc-playback-scrub:hover,\n .oc-playback-scrub:active {\n --oc-playback-thumb-grow: 1px;\n }\n\n .oc-race-scrub::-webkit-slider-runnable-track,\n .oc-playback-scrub::-webkit-slider-runnable-track {\n height: 4px;\n border-radius: 2px;\n background: var(--oc-playback-track-fill);\n }\n\n .oc-race-scrub::-moz-range-track,\n .oc-playback-scrub::-moz-range-track {\n width: 100%;\n height: 4px;\n border-radius: 2px;\n background: var(--oc-playback-track-fill);\n }\n\n .oc-race-scrub::-webkit-slider-thumb,\n .oc-playback-scrub::-webkit-slider-thumb {\n appearance: none;\n width: 14px;\n height: 14px;\n margin-top: -5px;\n border: 0;\n border-radius: 50%;\n background: var(--oc-text);\n box-shadow: var(--oc-playback-thumb-ring);\n }\n\n .oc-race-scrub::-moz-range-thumb,\n .oc-playback-scrub::-moz-range-thumb {\n width: 14px;\n height: 14px;\n border: 0;\n border-radius: 50%;\n background: var(--oc-text);\n box-shadow: var(--oc-playback-thumb-ring);\n }\n\n @media (forced-colors: active) {\n .oc-race-scrub,\n .oc-playback-scrub {\n appearance: auto;\n }\n }\n\n .oc-race-readout,\n .oc-playback-readout {\n flex: 0 0 auto;\n max-width: 40%;\n overflow: hidden;\n color: var(--oc-text-muted);\n font-size: var(--oc-source-size);\n text-align: end;\n text-overflow: ellipsis;\n white-space: nowrap;\n font-variant-numeric: normal;\n }\n}\n","/* GENERATED FILE — do not edit. Source: packages/core/src/motion/choreography.ts. Regenerate: bun run generate:motion */\n\n@layer oc.animation {\n /* ---------------------------------------------------------------------------\n * Table entrance animations (.oc-table-wrapper.oc-animate)\n * --------------------------------------------------------------------------- */\n\n .oc-table-wrapper.oc-animate {\n /* Chrome (title/subtitle): fade + slide up */\n & > .oc-chrome {\n animation: oc-enter-fade var(--oc-table-chrome-dur, calc(var(--oc-animation-duration) * 0.6))\n var(--oc-animation-ease, var(--oc-ease-smooth)) both;\n animation-delay: var(--oc-table-chrome-delay, 0ms);\n animation-play-state: var(--oc-play-state, running);\n }\n\n /* Table header: quick fade before rows start */\n & thead {\n animation: oc-enter-fade-only\n var(--oc-table-thead-dur, calc(var(--oc-animation-duration) * 0.4))\n var(--oc-animation-ease, var(--oc-ease-smooth)) both;\n animation-delay: var(--oc-table-thead-delay, 0ms);\n animation-play-state: var(--oc-play-state, running);\n }\n\n /* Row entrance: slide up only, no opacity (cells handle their own fading\n to avoid opacity compounding between row and cell animations) */\n & tbody tr {\n animation: oc-table-enter-row var(--oc-table-row-dur, var(--oc-animation-duration))\n var(--oc-animation-ease, var(--oc-ease-smooth)) both;\n animation-delay: var(\n --oc-table-row-delay,\n calc(var(--oc-animation-stagger) * var(--oc-row-index, 0))\n );\n animation-play-state: var(--oc-play-state, running);\n }\n\n /* Cell text: fade in synced with row slide */\n & tbody td {\n animation: oc-enter-fade-only\n var(--oc-table-cell-dur, calc(var(--oc-animation-duration) * 0.5))\n var(--oc-animation-ease, var(--oc-ease-smooth)) both;\n animation-delay: var(\n --oc-table-cell-delay,\n calc(var(--oc-animation-stagger) * var(--oc-row-index, 0))\n );\n animation-play-state: var(--oc-play-state, running);\n }\n\n /* Heatmap/category cell backgrounds: longer fade, once the row is halfway in */\n & td.oc-table-heatmap,\n & td.oc-table-category {\n animation: oc-enter-fade-only\n var(--oc-table-heatmap-cell-dur, calc(var(--oc-animation-duration) * 0.7))\n var(--oc-animation-ease, var(--oc-ease-smooth)) both;\n animation-delay: var(\n --oc-table-heatmap-cell-delay,\n calc(\n var(--oc-table-heatmap-cell-after, calc(var(--oc-animation-duration) * 0.2)) +\n var(--oc-animation-stagger) *\n var(--oc-row-index, 0)\n )\n );\n animation-play-state: var(--oc-play-state, running);\n }\n\n /* Bar fill: clip-path grow only (no opacity change to preserve resting\n opacity: 0.15 from table.css), once the row is halfway in */\n & .oc-table-bar-fill {\n animation: oc-table-enter-bar-fill var(--oc-table-bar-fill-dur, var(--oc-animation-duration))\n var(--oc-animation-ease, var(--oc-ease-smooth)) both;\n animation-delay: var(\n --oc-table-bar-fill-delay,\n calc(\n var(--oc-table-bar-fill-after, calc(var(--oc-animation-duration) * 0.2)) +\n var(--oc-animation-stagger) *\n var(--oc-row-index, 0)\n )\n );\n animation-play-state: var(--oc-play-state, running);\n }\n\n /* Sparkline SVG: clip-path reveal left-to-right once the row is mostly in.\n Targets the SVG directly (not the wrapper) to avoid clipping\n absolutely-positioned dots and labels. */\n & .oc-table-sparkline > svg {\n animation: oc-enter-line\n var(--oc-table-sparkline-dur, calc(var(--oc-animation-duration) * 0.8))\n var(--oc-animation-ease, var(--oc-ease-smooth)) both;\n animation-delay: var(\n --oc-table-sparkline-delay,\n calc(\n var(--oc-table-sparkline-after, calc(var(--oc-animation-duration) * 0.308881)) +\n var(--oc-animation-stagger) *\n var(--oc-row-index, 0)\n )\n );\n animation-play-state: var(--oc-play-state, running);\n }\n\n /* Sparkline dots and labels: fade in as the line draws through the end */\n & .oc-table-sparkline-dot,\n & .oc-table-sparkline-labels {\n animation: oc-enter-fade-only\n var(--oc-table-sparkline-dot-dur, calc(var(--oc-animation-duration) * 0.3))\n var(--oc-animation-ease, var(--oc-ease-smooth)) both;\n animation-delay: var(\n --oc-table-sparkline-dot-delay,\n calc(\n var(--oc-table-sparkline-dot-after, calc(var(--oc-animation-duration) * 0.834109)) +\n var(--oc-animation-stagger) *\n var(--oc-row-index, 0)\n )\n );\n animation-play-state: var(--oc-play-state, running);\n }\n\n /* Search and pagination: quick fade on mount */\n & .oc-table-search,\n & .oc-table-pagination {\n animation: oc-enter-fade-only\n var(--oc-table-search-pagination-dur, calc(var(--oc-animation-duration) * 0.5))\n var(--oc-animation-ease, var(--oc-ease-smooth)) both;\n animation-delay: var(--oc-table-search-pagination-delay, 0ms);\n animation-play-state: var(--oc-play-state, running);\n }\n }\n}\n","@layer oc.base {\n /* ---------------------------------------------------------------------------\n * Wrapper roots\n * --------------------------------------------------------------------------- */\n\n .oc-chart-root {\n width: 100%;\n height: 100%;\n }\n\n .oc-table-root,\n .oc-graph-root,\n .oc-sankey-root,\n .oc-barlist-root,\n .oc-tilemap-root,\n .oc-map-root {\n width: 100%;\n height: 100%;\n }\n\n .oc-table-root {\n overflow: auto;\n }\n\n /* ---------------------------------------------------------------------------\n * Chart container\n * --------------------------------------------------------------------------- */\n\n .oc-chart {\n font-family: var(--oc-font-family);\n font-variant-numeric: tabular-nums;\n display: block;\n width: 100%;\n }\n\n /* ---------------------------------------------------------------------------\n * BarList SVG container\n * --------------------------------------------------------------------------- */\n\n .oc-tilemap,\n .oc-map {\n display: block;\n width: 100%;\n height: auto;\n }\n\n .oc-map-feature {\n transition:\n opacity var(--oc-hover-duration) ease-out,\n stroke-width 140ms ease-out;\n }\n\n .oc-barlist {\n display: block;\n width: 100%;\n }\n\n /* ---------------------------------------------------------------------------\n * Screen reader only utility\n * --------------------------------------------------------------------------- */\n\n /* `overflow: clip`, not `hidden` — see applySrOnlyStyles in\n packages/vanilla/src/dom-helpers.ts for why. Keep the two in sync. */\n .oc-sr-only {\n position: absolute;\n top: 0;\n left: 0;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: clip;\n clip-path: inset(50%);\n white-space: nowrap;\n border-width: 0;\n }\n\n /* ---------------------------------------------------------------------------\n * Editable hover feedback\n * --------------------------------------------------------------------------- */\n\n .oc-editable-hover {\n outline: 1.5px solid var(--oc-editable-hover);\n outline-offset: 2px;\n border-radius: var(--oc-radius-sm);\n }\n\n /* ---------------------------------------------------------------------------\n * Keyboard focus indicators\n *\n * --oc-focus carries a light value in tokens.css and a dark value in\n * dark.css, so both rings stay visible in either mode.\n * --------------------------------------------------------------------------- */\n\n /* Container ring when the chart itself receives keyboard focus. */\n .oc-root:focus-visible {\n outline: 2px solid var(--oc-focus);\n outline-offset: 2px;\n }\n\n /* Mark ring during arrow-key navigation (see wireKeyboardNav). Outline on\n * SVG elements draws around the mark's bounding box, same technique as\n * .oc-editable-hover above. */\n .oc-mark-focused {\n outline: 2px solid var(--oc-focus);\n outline-offset: 1px;\n border-radius: var(--oc-radius-sm);\n }\n}\n","/* GENERATED FILE — do not edit. Source: packages/core/src/motion/choreography.ts. Regenerate: bun run generate:motion */\n\n@layer oc.animation {\n /* ---------------------------------------------------------------------------\n * Animation scoped rules (.oc-animate enables animation on the chart root)\n * --------------------------------------------------------------------------- */\n\n .oc-animate {\n /* Vertical bars (default): the author curve over the full duration, no fade.\n oc-mark-bar is reserved for future mark type aliases.\n A bar with a value-end radius draws as <path> rather than <rect>\n (SVG rx rounds all four corners or none), so both shapes match. */\n & .oc-mark-rect :is(rect, path),\n & .oc-mark-bar :is(rect, path) {\n animation: oc-enter-bar var(--oc-bar-dur, var(--oc-animation-duration))\n var(--oc-animation-ease, var(--oc-ease-smooth)) both;\n animation-delay: var(\n --oc-bar-delay,\n calc(var(--oc-animation-stagger) * var(--oc-mark-index, 0))\n );\n animation-play-state: var(--oc-play-state, running);\n }\n\n /* Horizontal bars (data-orient is on the mark group, not the SVG root) */\n & .oc-mark-rect[data-orient=\"horizontal\"] :is(rect, path),\n & .oc-mark-bar[data-orient=\"horizontal\"] :is(rect, path) {\n animation-name: oc-enter-bar-h;\n animation-play-state: var(--oc-play-state, running);\n }\n\n /* Grid cells (heatmap, waffle, calendar) have no baseline to grow from:\n each pops in on its own scattered start. The renderer stamps\n --oc-cell-delay from a seeded shuffle over CELL_SWEEP_BUDGET_MS, so the\n grid fills in no particular pattern. */\n & .oc-mark-rect[data-cell] :is(rect, path) {\n animation: oc-enter-cell var(--oc-cell-dur, 400ms)\n var(--oc-animation-ease, var(--oc-ease-smooth)) both;\n animation-delay: var(\n --oc-cell-delay,\n calc(var(--oc-animation-stagger) * var(--oc-mark-index, 0))\n );\n animation-play-state: var(--oc-play-state, running);\n }\n\n /* Stacked bars reveal as one group per stack, each on its own stagger slot;\n their segments do not animate. A stack that crosses zero grows both ways\n from the baseline (--oc-stack-from). */\n & .oc-stack-reveal {\n animation: oc-enter-stack var(--oc-stack-reveal-dur, var(--oc-animation-duration))\n var(--oc-animation-ease, var(--oc-ease-smooth)) both;\n animation-delay: var(\n --oc-stack-reveal-delay,\n calc(var(--oc-animation-stagger) * var(--oc-mark-index, 0))\n );\n animation-play-state: var(--oc-play-state, running);\n }\n & .oc-stack-reveal .oc-mark-rect :is(rect, path) {\n animation: none;\n }\n\n & .oc-stack-reveal[data-orient=\"horizontal\"] {\n animation-name: oc-enter-stack-h;\n animation-play-state: var(--oc-play-state, running);\n }\n\n /* Line and area marks: entire group clips left-to-right + fades in */\n & .oc-mark-line,\n & .oc-mark-area {\n animation: oc-enter-line var(--oc-line-area-dur, var(--oc-animation-duration))\n var(--oc-animation-ease, var(--oc-ease-smooth)) both;\n animation-delay: var(\n --oc-line-area-delay,\n calc(var(--oc-animation-stagger) * var(--oc-mark-index, 0))\n );\n animation-play-state: var(--oc-play-state, running);\n }\n\n /* Arc marks (pie/donut slices): each slice path fades and grows from the pie\n centre. The transform goes on the path, never the group, whose translate()\n attribute positions the slice. */\n & .oc-mark-arc > path {\n animation: oc-enter-arc var(--oc-arc-dur, 450ms)\n var(--oc-animation-ease, var(--oc-ease-smooth)) both;\n animation-delay: var(\n --oc-arc-delay,\n calc(var(--oc-animation-stagger) * var(--oc-mark-index, 0))\n );\n animation-play-state: var(--oc-play-state, running);\n }\n\n /* Point marks (scatter, dot): a quick fade on the author curve, no scale.\n Points render as bare <circle> elements with class oc-mark-point directly,\n not wrapped in a group, so we target circle.oc-mark-point (not descendant). */\n & circle.oc-mark-point,\n & circle.oc-mark-circle {\n animation: oc-enter-fade-only var(--oc-point-dur, 300ms)\n var(--oc-animation-ease, var(--oc-ease-smooth)) both;\n animation-delay: var(\n --oc-point-delay,\n calc(var(--oc-animation-stagger) * var(--oc-mark-index, 0))\n );\n animation-play-state: var(--oc-play-state, running);\n }\n\n /* Points on line/area charts pop in once their own line has drawn (0.97),\n cascading left to right over LINE_POINT_CASCADE_MS. The renderer stamps\n each point's delay and marks it data-line-point (a scatter's trendline also\n precedes its circles, so position can't select these). Points hidden under an endpoint marker stay hidden. */\n & circle.oc-mark-point[data-line-point] {\n animation: oc-enter-pop var(--oc-line-point-dur, 320ms) var(--oc-ease-punch) both;\n animation-delay: var(\n --oc-line-point-delay,\n calc(\n var(--oc-line-point-after, calc(var(--oc-animation-duration) * 0.727459)) +\n var(--oc-animation-stagger) *\n var(--oc-mark-index, 0)\n )\n );\n animation-play-state: var(--oc-play-state, running);\n }\n & circle.oc-mark-point[opacity=\"0\"] {\n animation: none;\n }\n\n /* Text marks: rise 0.6em on the author curve, with a quick fade */\n & .oc-mark-text text {\n animation:\n oc-enter-rise var(--oc-text-dur, var(--oc-animation-duration))\n var(--oc-animation-ease, var(--oc-ease-smooth)) both,\n oc-enter-fade-only 140ms var(--oc-ease-snap) both;\n animation-delay: var(\n --oc-text-delay,\n calc(var(--oc-animation-stagger) * var(--oc-mark-index, 0))\n );\n animation-play-state: var(--oc-play-state, running);\n }\n\n /* Rule marks: fade in place, never translate (a moving rule reads a wrong value) */\n & .oc-mark-rule line {\n animation: oc-enter-fade-only var(--oc-rule-dur, calc(var(--oc-animation-duration) * 0.5))\n var(--oc-animation-ease, var(--oc-ease-smooth)) both;\n animation-delay: var(\n --oc-rule-delay,\n calc(var(--oc-animation-stagger) * var(--oc-mark-index, 0))\n );\n animation-play-state: var(--oc-play-state, running);\n }\n\n /* Tick marks: fade in place */\n & .oc-mark-tick line {\n animation: oc-enter-fade-only var(--oc-tick-dur, calc(var(--oc-animation-duration) * 0.5))\n var(--oc-animation-ease, var(--oc-ease-smooth)) both;\n animation-delay: var(\n --oc-tick-delay,\n calc(var(--oc-animation-stagger) * var(--oc-mark-index, 0))\n );\n animation-play-state: var(--oc-play-state, running);\n }\n\n /* Data labels (bar values, line end labels) fade in place once their mark has\n landed: when the bar at the label's --oc-mark-index reaches 0.995, within a\n pixel of its end, so a label never shows while its bar is still growing.\n Lines share the bar's duration and curve, so the bar anchor stands in for\n them. Labels never move during the entrance. */\n & .oc-mark-label {\n animation: oc-enter-fade-only var(--oc-label-dur, 260ms)\n var(--oc-animation-ease, var(--oc-ease-smooth)) both;\n animation-delay: var(\n --oc-label-delay,\n calc(\n var(--oc-label-after, calc(var(--oc-animation-duration) * 0.884043)) +\n var(--oc-animation-stagger) *\n var(--oc-mark-index, 0)\n )\n );\n animation-play-state: var(--oc-play-state, running);\n }\n\n /* Pie/donut slice labels fade in place once their own slice reaches 0.97. */\n & .oc-mark-arc > .oc-mark-label {\n animation: oc-enter-fade-only var(--oc-arc-label-dur, 260ms)\n var(--oc-animation-ease, var(--oc-ease-smooth)) both;\n animation-delay: var(\n --oc-arc-label-delay,\n calc(\n var(--oc-arc-label-after, 327.356557ms) +\n var(--oc-animation-stagger) *\n var(--oc-mark-index, 0)\n )\n );\n animation-play-state: var(--oc-play-state, running);\n }\n\n /* Trailing endpoint labels (marker, name, value) and area interior labels:\n fade in as their own series' line reaches the end, never before it. The\n renderer stamps each entry with its series' --oc-mark-index. */\n & .oc-endpoint-label-entry[data-endpoint-side=\"trailing\"],\n & .oc-area-interior-label {\n animation: oc-enter-fade-only var(--oc-endpoint-label-dur, 300ms)\n var(--oc-animation-ease, var(--oc-ease-smooth)) both;\n animation-delay: var(\n --oc-endpoint-label-delay,\n calc(\n var(--oc-endpoint-label-after, calc(var(--oc-animation-duration) * 0.656536)) +\n var(--oc-animation-stagger) *\n var(--oc-mark-index, 0)\n )\n );\n animation-play-state: var(--oc-play-state, running);\n }\n\n /* Annotations: fade in once the last mark is 90% of the way there */\n & .oc-annotation {\n animation: oc-enter-fade-only var(--oc-annotation-dur, 300ms) var(--oc-ease-glide) both;\n animation-delay: var(\n --oc-annotation-enter-delay,\n calc(\n var(--oc-annotation-after, calc(var(--oc-animation-duration) * 0.539502)) +\n var(--oc-annotation-delay, 150ms)\n )\n );\n animation-play-state: var(--oc-play-state, running);\n }\n\n /* Tilemap tiles: fade in with jittered stagger for organic feel.\n Per-tile delay is computed in the renderer with pseudo-random variation. */\n & .oc-tilemap-tile {\n animation: oc-enter-fade-only\n var(--oc-tilemap-tile-dur, calc(var(--oc-animation-duration) * 0.35)) ease-in both;\n animation-delay: var(--oc-tilemap-tile-delay, var(--oc-tile-delay, 0ms));\n animation-play-state: var(--oc-play-state, running);\n }\n\n /* Map features: fill color reveal with shuffled stagger.\n Per-feature --oc-map-delay is computed in the renderer via a seeded\n Fisher-Yates shuffle so features pop in organically. */\n & .oc-map-feature {\n animation: oc-enter-map-fill var(--oc-map-feature-dur, var(--oc-animation-duration))\n var(--oc-animation-ease, var(--oc-ease-smooth)) both;\n animation-delay: var(--oc-map-feature-delay, var(--oc-map-delay, 0ms));\n animation-play-state: var(--oc-play-state, running);\n }\n\n /* Bulk mode: high feature counts (counties, ~3k+) get a single group\n fade instead of per-feature fill animations. opacity is GPU-compositable\n so this stays smooth regardless of child count. */\n & .oc-map-features[data-bulk-animate] {\n animation: oc-enter-fade-only var(--oc-map-bulk-dur, var(--oc-animation-duration))\n var(--oc-animation-ease, var(--oc-ease-smooth)) both;\n animation-delay: var(--oc-map-bulk-delay, 0ms);\n animation-play-state: var(--oc-play-state, running);\n }\n & .oc-map-features[data-bulk-animate] .oc-map-feature {\n animation: none;\n }\n\n /* Map borders: fade in once most of the feature sweep has started */\n & .oc-map-borders path {\n animation: oc-enter-fade-only\n var(--oc-map-border-dur, calc(var(--oc-animation-duration) * 0.4)) ease-in both;\n animation-delay: var(--oc-map-border-delay, var(--oc-map-border-after, 324ms));\n animation-play-state: var(--oc-play-state, running);\n }\n\n /* Map points: gentle scale (0.75->1) + fade pop-in just after the borders.\n transform-origin set per-circle in the renderer so scale happens\n around each circle's own center, not the SVG origin. */\n & .oc-map-point {\n animation: oc-enter-map-point\n var(--oc-map-point-dur, calc(var(--oc-animation-duration) * 0.4))\n var(--oc-animation-ease, var(--oc-ease-smooth)) both;\n animation-delay: var(\n --oc-map-point-delay,\n calc(\n var(--oc-map-point-after, 351ms) +\n var(--oc-mark-index, 0) *\n var(--oc-point-stagger, 60ms)\n )\n );\n animation-play-state: var(--oc-play-state, running);\n }\n\n /* Sankey nodes: fade in with stagger by column depth (left-to-right) */\n & .oc-sankey-node rect {\n animation: oc-enter-fade-only var(--oc-sankey-node-dur, var(--oc-animation-duration))\n var(--oc-animation-ease, var(--oc-ease-smooth)) both;\n animation-delay: var(\n --oc-sankey-node-delay,\n calc(var(--oc-animation-stagger) * var(--oc-mark-index, 0))\n );\n animation-play-state: var(--oc-play-state, running);\n }\n\n /* Sankey links: fade in when their source node is halfway in. Each link\n carries its source node's --oc-mark-index. */\n & .oc-sankey-link path {\n animation: oc-enter-fade-only var(--oc-sankey-link-dur, var(--oc-animation-duration))\n var(--oc-animation-ease, var(--oc-ease-smooth)) both;\n animation-delay: var(\n --oc-sankey-link-delay,\n calc(\n var(--oc-sankey-link-after, calc(var(--oc-animation-duration) * 0.2)) +\n var(--oc-animation-stagger) *\n var(--oc-mark-index, 0)\n )\n );\n animation-play-state: var(--oc-play-state, running);\n }\n\n /* Barlist rows: slide up with a quick fade per row; bars grow left-to-right */\n & .oc-barlist-row {\n animation:\n oc-enter-slide var(--oc-barlist-row-dur, calc(var(--oc-animation-duration) * 0.6))\n var(--oc-animation-ease, var(--oc-ease-smooth)) both,\n oc-enter-fade-only 140ms var(--oc-ease-snap) both;\n animation-delay: var(\n --oc-barlist-row-delay,\n calc(var(--oc-animation-stagger) * var(--oc-mark-index, 0))\n );\n animation-play-state: var(--oc-play-state, running);\n }\n\n & .oc-barlist-bar {\n animation: oc-enter-bar-h var(--oc-barlist-bar-dur, var(--oc-animation-duration))\n var(--oc-animation-ease, var(--oc-ease-smooth)) both;\n animation-delay: var(\n --oc-barlist-bar-delay,\n calc(var(--oc-animation-stagger) * var(--oc-mark-index, 0))\n );\n animation-play-state: var(--oc-play-state, running);\n }\n }\n}\n","@layer oc.components {\n .oc-race {\n direction: ltr;\n font-variant-numeric: normal;\n }\n\n .oc-race-controls-slot {\n /* The shell measures the unused space below the footer. Preserve the outer height. */\n position: relative;\n margin-top: calc(0px - var(--oc-race-controls-lift, 0px));\n padding-inline: var(--oc-race-padding);\n padding-bottom: var(--oc-race-controls-lift, 0px);\n }\n\n .oc-race-axis line {\n stroke: var(--oc-gridline);\n }\n\n .oc-race-axis text,\n .oc-race-summary {\n fill: var(--oc-text-muted);\n }\n\n .oc-race-summary {\n font-size: var(--oc-source-size);\n }\n\n .oc-race-rows text {\n fill: var(--oc-text);\n font-size: var(--oc-body-size);\n }\n\n .oc-race-period {\n fill: var(--oc-text-faint);\n font-weight: 600;\n }\n\n .oc-race-row {\n will-change: transform;\n }\n\n /* line */\n .oc-race-line-labels {\n dominant-baseline: central;\n font-size: var(--oc-body-size);\n }\n\n .oc-race-line-value {\n fill: var(--oc-text-muted);\n }\n}\n","@layer oc.components {\n /* ---------------------------------------------------------------------------\n * Graph\n * --------------------------------------------------------------------------- */\n\n .oc-graph-wrapper {\n position: relative;\n overflow: hidden;\n background: var(--oc-bg);\n font-family: var(--oc-font-family);\n width: 100%;\n height: 100%;\n }\n\n .oc-graph-canvas {\n display: block;\n width: 100%;\n height: 100%;\n cursor: grab;\n }\n\n .oc-graph-canvas--dragging {\n cursor: grabbing;\n }\n\n /* 3D surface. 3d-force-graph builds its own `div.scene-container` inside the\n * element it is handed and sizes the WebGL canvas imperatively, so the slot\n * has to fill the same box the 2D canvas fills or the first measurement is\n * zero-height. */\n .oc-graph-3d,\n .oc-graph-3d .scene-container {\n display: block;\n width: 100%;\n height: 100%;\n }\n\n .oc-graph-3d {\n cursor: grab;\n }\n\n .oc-graph-3d .scene-container canvas {\n display: block;\n width: 100%;\n height: 100%;\n }\n\n .oc-graph-chrome {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n z-index: 2;\n padding: 16px 16px 8px;\n pointer-events: none;\n\n & .oc-title {\n font-size: var(--oc-title-size);\n font-weight: var(--oc-title-weight);\n letter-spacing: var(--oc-title-tracking);\n color: var(--oc-text);\n margin: 0 0 4px;\n --_stroke: color-mix(in srgb, var(--oc-bg) 80%, transparent);\n text-shadow:\n -2px -2px 0 var(--_stroke),\n 2px -2px 0 var(--_stroke),\n -2px 2px 0 var(--_stroke),\n 2px 2px 0 var(--_stroke),\n 0 -2px 0 var(--_stroke),\n 0 2px 0 var(--_stroke),\n -2px 0 0 var(--_stroke),\n 2px 0 0 var(--_stroke);\n }\n\n & .oc-subtitle {\n font-size: var(--oc-subtitle-size);\n color: var(--oc-text-secondary);\n margin: 0;\n --_stroke: color-mix(in srgb, var(--oc-bg) 80%, transparent);\n text-shadow:\n -1px -1px 0 var(--_stroke),\n 1px -1px 0 var(--_stroke),\n -1px 1px 0 var(--_stroke),\n 1px 1px 0 var(--_stroke);\n }\n }\n\n .oc-graph-legend {\n position: absolute;\n top: 12px;\n right: 12px;\n /* Slightly translucent so the graph reads as continuous underneath, in\n * whatever surface the mount stamped on the wrapper. */\n background: color-mix(in srgb, var(--oc-bg) 88%, transparent);\n border: 1px solid var(--oc-border);\n border-radius: var(--oc-radius-lg);\n padding: 8px 12px;\n font-size: 12px;\n color: var(--oc-text-secondary);\n max-height: 200px;\n overflow-y: auto;\n }\n\n .oc-graph-legend-item {\n display: flex;\n align-items: center;\n gap: 6px;\n padding: 2px 0;\n /* Button reset for interactive rows (rendered as <button>). */\n width: 100%;\n margin: 0;\n background: none;\n border: none;\n font: inherit;\n color: inherit;\n text-align: left;\n cursor: default;\n }\n\n /* Interactive legend rows are buttons; give them affordance + a focus ring. */\n button.oc-graph-legend-item {\n cursor: pointer;\n border-radius: var(--oc-radius-sm);\n\n &:hover {\n background: var(--oc-focus-ring);\n }\n\n &:focus-visible {\n outline: 2px solid var(--oc-focus);\n outline-offset: 1px;\n }\n }\n\n /* De-emphasized (toggled-off) category. */\n .oc-graph-legend-item--inactive {\n opacity: 0.45;\n }\n\n .oc-graph-legend-label {\n flex: 1 1 auto;\n }\n\n .oc-graph-legend-count {\n color: var(--oc-text-secondary);\n font-variant-numeric: tabular-nums;\n margin-left: auto;\n padding-left: 8px;\n }\n\n .oc-graph-legend-swatch {\n width: 10px;\n height: 10px;\n border-radius: 50%;\n flex-shrink: 0;\n }\n\n /* Edge-legend swatches render as a short line, not a dot. */\n .oc-graph-legend-swatch--line {\n width: 12px;\n height: 3px;\n border-radius: 1px;\n }\n\n .oc-graph-search {\n position: absolute;\n top: 12px;\n left: 12px;\n\n & input {\n font-family: var(--oc-font-family);\n font-size: var(--oc-body-size);\n padding: 6px 10px;\n border: 1px solid var(--oc-border);\n border-radius: var(--oc-radius-md);\n background: color-mix(in srgb, var(--oc-bg) 88%, transparent);\n color: var(--oc-text);\n outline: none;\n\n &:focus {\n border-color: var(--oc-focus);\n box-shadow: 0 0 0 2px var(--oc-focus-ring-strong);\n }\n }\n }\n\n /*\n * No dark-mode canvas override lives here. graph-mount stamps the resolved\n * theme surface on the wrapper (--oc-bg), so dark graphs sit on the same\n * --oc-bg the rest of the library uses instead of a private GitHub-dark hex,\n * and the legend/search panels mix against whatever that surface is.\n */\n}\n","@layer oc.components {\n /* ---------------------------------------------------------------------------\n * Chrome (eyebrow, title, subtitle, source, byline, footer, brand)\n * --------------------------------------------------------------------------- */\n\n .oc-chrome {\n font-family: var(--oc-font-family);\n }\n\n .oc-chrome-link {\n cursor: pointer;\n text-decoration: none;\n }\n\n .oc-table-title.oc-chrome-link,\n .oc-table-subtitle.oc-chrome-link {\n display: block;\n }\n\n .oc-chrome-link:hover text,\n .oc-chrome-link:hover {\n text-decoration: underline;\n }\n\n .oc-eyebrow {\n font-size: var(--oc-eyebrow-size);\n font-weight: var(--oc-eyebrow-weight);\n letter-spacing: var(--oc-eyebrow-tracking);\n text-transform: uppercase;\n fill: var(--oc-accent);\n }\n\n .oc-title {\n font-size: var(--oc-title-size);\n font-weight: var(--oc-title-weight);\n letter-spacing: var(--oc-title-tracking);\n fill: var(--oc-text);\n }\n\n .oc-subtitle {\n font-size: var(--oc-subtitle-size);\n font-weight: var(--oc-subtitle-weight);\n fill: var(--oc-text-muted);\n }\n\n .oc-source,\n .oc-byline,\n .oc-footer {\n font-size: var(--oc-source-size);\n font-weight: var(--oc-source-weight);\n fill: var(--oc-text-muted);\n }\n\n .oc-brand {\n font-size: 11px;\n font-weight: 500;\n letter-spacing: 0.02em;\n fill: var(--oc-text-faint);\n }\n\n .oc-eyebrow-dot {\n fill: var(--oc-accent);\n }\n\n /* ---------------------------------------------------------------------------\n * Metric bar (.oc-metrics) — optional row of label/value cells above chart\n * --------------------------------------------------------------------------- */\n\n .oc-metrics {\n font-family: var(--oc-font-family);\n }\n\n .oc-metric-label {\n font-size: 11px;\n font-weight: 500;\n letter-spacing: 0.06em;\n text-transform: uppercase;\n fill: var(--oc-text-muted);\n }\n\n .oc-metric-value {\n font-size: 22px;\n font-weight: 600;\n letter-spacing: -0.02em;\n fill: var(--oc-text);\n font-variant-numeric: tabular-nums;\n }\n\n .oc-metric-delta-up {\n fill: var(--oc-positive);\n font-size: 12px;\n font-weight: 500;\n }\n\n .oc-metric-delta-down {\n fill: var(--oc-negative);\n font-size: 12px;\n font-weight: 500;\n }\n\n /* A multiplier or a run-rate is context, not a positive signal: the green\n that belonged here made every secondary read as good news. */\n .oc-metric-secondary {\n fill: var(--oc-text-muted);\n font-size: 12px;\n font-weight: 400;\n }\n\n /* ---------------------------------------------------------------------------\n * Axis tick labels — inline variant sits above each gridline at the\n * chart-area left edge (no left gutter). Used by line/area y-axes.\n * --------------------------------------------------------------------------- */\n\n .oc-axis-tick-inline {\n font-size: 11px;\n font-weight: 400;\n fill: var(--oc-text-muted);\n }\n\n /* ---------------------------------------------------------------------------\n * Endpoint labels (right-side per-series column for line/area charts)\n *\n * Swatch idiom: a thicker colored stroke segment with an optional thinner\n * lighter strip below. Mirrors the refreshed traditional legend swatch so a\n * single chart never shows two swatch idioms (mock-2 alignment). Per-series\n * color is stamped inline by the renderer; CSS tokens here cover the muted\n * value text and the leader line so theme overrides flow through naturally.\n * --------------------------------------------------------------------------- */\n\n .oc-endpoint-labels {\n font-family: var(--oc-font-family);\n }\n\n .oc-endpoint-label {\n /* Color set inline per series; this fallback only kicks in if the renderer\n ever omits the inline fill. */\n fill: var(--oc-endpoint-label-color, var(--oc-text));\n }\n\n .oc-endpoint-value {\n fill: var(--oc-endpoint-value-color, var(--oc-text-muted));\n }\n\n .oc-endpoint-leader {\n stroke: var(--oc-endpoint-leader-color, currentColor);\n }\n\n /* .oc-endpoint-marker — fill/stroke set inline (open-ring style: bg fill, series stroke). */\n /* .oc-endpoint-swatch — color set inline per series. */\n\n /* ---------------------------------------------------------------------------\n * Annotation dot + subtitle (text-annotation extensions)\n * --------------------------------------------------------------------------- */\n\n /* .oc-annotation-dot — fill/stroke resolved by the engine (open-ring default = bg fill, series stroke). */\n\n .oc-annotation-subtitle {\n fill: var(--oc-annotation-subtitle-color, var(--oc-text-muted));\n }\n\n /* ---------------------------------------------------------------------------\n * Table footer chrome\n * --------------------------------------------------------------------------- */\n\n /* Footer row: source/footer text on the left, brand watermark on the right,\n * sharing a single baseline. gap keeps them apart if the row gets narrow. */\n .oc-table-footer-row {\n display: flex;\n align-items: baseline;\n gap: 16px;\n padding: 16px 16px 4px;\n }\n\n /* Chrome block sits inside the flex row now, so it no longer owns the\n * footer's top padding or horizontal inset (the row provides both). */\n .oc-chrome-footer {\n padding-top: 0;\n }\n\n /* Brand watermark: pushed to the right edge (margin-left:auto holds it there\n * even when the source text is absent), never shrinks below its own text. */\n .oc-table-footer-row .oc-table-ref {\n margin-left: auto;\n flex-shrink: 0;\n text-align: right;\n }\n}\n","@layer oc.components {\n .oc-race-table {\n overflow: hidden;\n }\n\n .oc-race-table-grid {\n display: grid;\n grid-template-rows: auto 1fr;\n width: 100%;\n height: 100%;\n border-collapse: separate;\n border-spacing: 0;\n color: var(--oc-text);\n font-family: var(--oc-font-family);\n font-weight: var(--oc-race-table-body-weight, 400);\n line-height: 1.2;\n font-variant-numeric: normal;\n }\n\n .oc-race-table-grid thead,\n .oc-race-table-grid tbody {\n display: block;\n }\n\n .oc-race-table-grid tbody {\n position: relative;\n overflow: hidden;\n background-image: repeating-linear-gradient(\n to bottom,\n transparent 0 max(0px, calc(var(--oc-race-table-row-height) - 1px)),\n var(--oc-border) 0 var(--oc-race-table-row-height)\n );\n }\n\n .oc-race-table-grid tr {\n display: grid;\n grid-template-columns: var(--oc-race-table-columns);\n align-items: center;\n overflow: hidden;\n }\n\n .oc-race-table-grid thead tr {\n box-shadow: inset 0 -1px var(--oc-border);\n }\n\n .oc-race-table-grid tbody tr {\n position: absolute;\n inset: 0 0 auto;\n max-height: max(0px, calc(var(--oc-race-table-row-height) - 1px));\n overflow: visible;\n }\n\n .oc-race-table-grid tbody td {\n max-height: 100%;\n translate: 0 var(--oc-race-table-content-offset, 0px);\n }\n\n .oc-race-table-cell {\n min-width: 0;\n overflow: hidden;\n padding: 0 var(--oc-race-table-cell-padding, 5px);\n text-align: start;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n .oc-race-table-grid th {\n color: var(--oc-text-muted);\n font-weight: var(--oc-race-table-heading-weight, 600);\n }\n\n .oc-race-table-rank,\n .oc-race-table-change,\n .oc-race-table-value,\n .oc-race-table-share {\n text-align: right;\n }\n\n .oc-race-table-change,\n .oc-race-table-share {\n color: var(--oc-text-muted);\n }\n\n .oc-race-table-change[data-direction=\"up\"] {\n color: var(--oc-positive);\n }\n\n .oc-race-table-change[data-direction=\"down\"] {\n color: var(--oc-negative);\n }\n\n td.oc-race-table-name {\n display: flex;\n align-items: center;\n gap: 6px;\n }\n\n .oc-race-table-name > span:last-child {\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n .oc-race-table-chip {\n flex: none;\n width: 8px;\n height: 8px;\n border-radius: var(--oc-radius-full);\n }\n\n td.oc-race-table-bar {\n position: relative;\n height: 100%;\n padding: 0;\n }\n\n .oc-race-table-fill {\n position: absolute;\n top: 50%;\n left: 0;\n height: min(8px, 55%);\n border-radius: var(--oc-radius-sm);\n translate: 0 -50%;\n transform-origin: 0 50%;\n }\n}\n","@layer oc.components {\n /* ---------------------------------------------------------------------------\n * Sankey\n *\n * Hovering a node (or a link) traces the whole path through it: everything\n * upstream and everything downstream stays lit, the rest drops back. The mount\n * writes the opacities; this file only owns how they move, using the shared\n * hover duration so a sankey fades on the same clock as a bar chart.\n *\n * The transitions are switched off during the entrance (`.oc-animate`), where\n * the keyframes own opacity and a competing transition would smear them.\n * --------------------------------------------------------------------------- */\n\n .oc-sankey:not(.oc-animate) .oc-sankey-link path {\n transition: fill-opacity var(--oc-hover-duration) ease-out;\n }\n\n .oc-sankey:not(.oc-animate) .oc-sankey-node,\n .oc-sankey:not(.oc-animate) .oc-sankey-label {\n transition: opacity var(--oc-hover-duration) ease-out;\n }\n\n /* Labels are decoration over the flow: never a text cursor, never a selection\n * drag that eats the hover. */\n .oc-sankey-label {\n pointer-events: none;\n user-select: none;\n }\n}\n","@layer oc.components {\n /* ---------------------------------------------------------------------------\n * Map reader zoom (geo.zoom)\n * The overlay is pinned to the map area (left/top/width/height stamped in %\n * by vanilla/src/map-zoom.ts) and passes pointer events through, so only the\n * buttons are hit targets. Surfaces reuse the tooltip tokens: a translucent\n * card that reads over any fill, light or dark.\n * --------------------------------------------------------------------------- */\n\n .oc-map-zoom {\n position: absolute;\n pointer-events: none;\n z-index: 2;\n }\n\n .oc-map-zoom-controls {\n position: absolute;\n top: 8px;\n right: 8px;\n display: flex;\n flex-direction: column;\n pointer-events: auto;\n background: var(--oc-tooltip-bg);\n backdrop-filter: blur(14px);\n border: 1px solid var(--oc-tooltip-border);\n border-radius: var(--oc-radius-md);\n box-shadow: var(--oc-tooltip-shadow);\n overflow: hidden;\n }\n\n .oc-map-zoom-btn {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 28px;\n height: 28px;\n margin: 0;\n padding: 0;\n border: none;\n background: none;\n color: var(--oc-text);\n font: inherit;\n cursor: pointer;\n transition:\n background var(--oc-hover-duration) ease-out,\n opacity var(--oc-hover-duration) ease-out;\n\n & + & {\n border-top: 1px solid var(--oc-tooltip-border);\n }\n\n &:hover:not(:disabled) {\n background: var(--oc-focus-ring);\n }\n\n &:focus-visible {\n outline: 2px solid var(--oc-focus);\n outline-offset: -2px;\n }\n\n &:disabled {\n cursor: default;\n opacity: 0.35;\n }\n }\n\n /* Short-lived \"use ctrl/cmd + scroll\" hint after a plain wheel over the map. */\n .oc-map-zoom-hint {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n max-width: calc(100% - 32px);\n padding: 8px 12px;\n background: var(--oc-tooltip-bg);\n backdrop-filter: blur(14px);\n border: 1px solid var(--oc-tooltip-border);\n border-radius: var(--oc-radius-md);\n box-shadow: var(--oc-tooltip-shadow);\n color: var(--oc-tooltip-text);\n font-family: var(--oc-font-family);\n font-size: 13px;\n line-height: 1.3;\n text-align: center;\n opacity: 0;\n transition: opacity 200ms ease-out;\n\n &[data-visible] {\n opacity: 1;\n }\n }\n\n /* The SVG is focusable while zoom is on (keyboard: + - arrows 0). */\n .oc-map:focus {\n outline: none;\n }\n\n .oc-map:focus-visible {\n outline: 2px solid var(--oc-focus);\n outline-offset: 2px;\n }\n\n .oc-map[data-oc-zoomed] {\n cursor: grab;\n }\n\n /* The SVG holds pointer capture during a drag, so its cursor is the one shown. */\n .oc-map--panning {\n cursor: grabbing;\n }\n}\n","@layer oc.components {\n /* ---------------------------------------------------------------------------\n * Tooltip\n * Editorial card matching the new design system: zinc surface, cyan accent,\n * Inter Variable, mono numerics. Sized for a slice tooltip that lists every\n * series at the snapped x.\n * --------------------------------------------------------------------------- */\n\n .oc-tooltip {\n position: absolute;\n display: none;\n pointer-events: none;\n z-index: 1000;\n background: var(--oc-tooltip-bg);\n backdrop-filter: blur(14px);\n border: 1px solid var(--oc-tooltip-border);\n border-radius: var(--oc-radius-lg);\n box-shadow: var(--oc-tooltip-shadow);\n color: var(--oc-tooltip-text);\n font-family: var(--oc-font-family);\n font-size: 12px;\n padding: 0;\n max-width: 280px;\n min-width: 140px;\n line-height: 1.4;\n animation: oc-tooltip-in 120ms ease-out;\n transition:\n left 100ms ease-in-out,\n top 100ms ease-in-out;\n\n & .oc-tooltip-header {\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 8px 10px 6px;\n }\n\n & .oc-tooltip-dot {\n width: 8px;\n height: 8px;\n border-radius: 50%;\n flex-shrink: 0;\n }\n\n & .oc-tooltip-title {\n font-weight: 600;\n font-size: 11px;\n letter-spacing: 0.04em;\n text-transform: uppercase;\n color: var(--oc-text-muted);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n & .oc-tooltip-body {\n padding: 6px 10px 8px;\n border-top: 1px solid var(--oc-tooltip-border);\n }\n\n /* No separator when body is the only child */\n & .oc-tooltip-body:first-child {\n border-top: none;\n padding-top: 10px;\n }\n\n & .oc-tooltip-row {\n display: flex;\n align-items: baseline;\n justify-content: space-between;\n gap: 16px;\n padding: 2px 0;\n }\n\n & .oc-tooltip-row-swatch {\n display: inline-block;\n width: 8px;\n height: 8px;\n border-radius: 50%;\n margin-right: 6px;\n flex-shrink: 0;\n transform: translateY(-1px);\n }\n\n & .oc-tooltip-label {\n color: var(--oc-text-secondary);\n font-size: 12px;\n font-weight: 400;\n white-space: nowrap;\n flex-shrink: 0;\n display: inline-flex;\n align-items: center;\n }\n\n & .oc-tooltip-value {\n font-weight: 500;\n font-size: 12px;\n font-variant-numeric: tabular-nums;\n color: var(--oc-tooltip-text);\n text-align: right;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n /* The series the pointer is nearest to in a shared tooltip. */\n & .oc-tooltip-row--emphasis .oc-tooltip-label {\n color: var(--oc-tooltip-text);\n font-weight: 600;\n }\n\n & .oc-tooltip-row--emphasis .oc-tooltip-value {\n font-weight: 600;\n }\n\n /* Stack sum, set below a hairline so it reads as a summary of the rows\n * above rather than one more series. */\n & .oc-tooltip-row--total {\n margin-top: 4px;\n padding-top: 5px;\n border-top: 1px solid var(--oc-tooltip-border);\n }\n\n & .oc-tooltip-row--total .oc-tooltip-label {\n color: var(--oc-tooltip-text);\n font-weight: 500;\n }\n\n & .oc-tooltip-row--total .oc-tooltip-value {\n font-weight: 600;\n }\n }\n\n /* ---------------------------------------------------------------------------\n * Crosshair guideline + per-series snap dots (line/area charts)\n * Animate the snap between adjacent points so the indicator slides instead\n * of jumping. ~50ms ease-in-out keeps the motion crisp without lagging.\n * --------------------------------------------------------------------------- */\n\n .oc-crosshair {\n pointer-events: none;\n transition:\n x1 50ms ease-in-out,\n x2 50ms ease-in-out;\n }\n\n .oc-snap-dots circle {\n pointer-events: none;\n transition:\n cx 50ms ease-in-out,\n cy 50ms ease-in-out;\n }\n}\n","@layer oc.components {\n /* ---------------------------------------------------------------------------\n * Legend\n * --------------------------------------------------------------------------- */\n\n /* Font size and text fill are set inline by the renderer's applyTextStyle\n * from the engine-computed legend layout, which is authoritative (11px).\n * Only the family, which nothing computes per-entry, lives here. */\n .oc-legend {\n font-family: var(--oc-font-family);\n }\n\n .oc-legend-entry {\n cursor: default;\n }\n}\n","/* Annotation placement tools. */\n.oc-chart--placing .oc-placement-surface {\n cursor: crosshair;\n touch-action: none;\n}\n.oc-placement-surface:focus-visible {\n outline: 2px solid var(--oc-focus);\n outline-offset: -2px;\n}\n","@layer oc.components {\n .oc-axis.oc-editable-hover {\n outline: none;\n }\n\n .oc-axis-hover-overlay rect {\n stroke: var(--oc-editable-hover);\n }\n\n /* ---------------------------------------------------------------------------\n * Hover language\n *\n * One vocabulary for mark hover, legend hover and the crosshair. Emphasis is\n * always a CLASS, never an inline style: a class beats the renderer's\n * `opacity` attributes (suppressed points under endpoint markers keep their\n * opacity=\"0\") and loses to the transition driver's per-frame inline\n * `style.opacity`, which is exactly the precedence a hover during a data\n * update needs.\n * --------------------------------------------------------------------------- */\n\n .oc-marks.oc-hover-active .oc-mark--dim:not([opacity=\"0\"]) {\n opacity: var(--oc-hover-dim);\n }\n\n /* Single-series register: outline the hovered mark instead of dimming eleven\n * others. Scoped per mark type -- an inherited stroke on a line or area group\n * would repaint the series in the text color. */\n .oc-marks.oc-hover-active .oc-mark-rect.oc-mark--hover > *,\n .oc-marks.oc-hover-active .oc-mark-arc.oc-mark--hover > *,\n .oc-marks.oc-hover-active circle.oc-mark-point.oc-mark--hover {\n stroke: var(--oc-text);\n stroke-width: 1;\n }\n\n /* The fade is switched off while the rAF transition driver owns opacity: an\n * unscoped 140ms transition would smear every frame of an update tween.\n * `.oc-animate` is excluded for the same reason during the entrance.\n *\n * It is NOT scoped to `.oc-hover-active`: dropping the class on mouseleave\n * would drop the transition with it, so the dim faded in and snapped back. */\n .oc-chart:not(.oc-animate):not(.oc-transitioning) .oc-marks .oc-mark {\n transition: opacity var(--oc-hover-duration) ease-out;\n }\n\n /* ---------------------------------------------------------------------------\n * Legend hover-link\n *\n * The swatch dims; the label text stays at full contrast so the list is still\n * readable while one series is raised.\n * --------------------------------------------------------------------------- */\n\n .oc-legend-entry--dim .oc-legend-swatch-line,\n .oc-legend-entry--dim .oc-legend-swatch-rect,\n .oc-legend-entry--dim > circle {\n opacity: var(--oc-hover-dim);\n transition: opacity var(--oc-hover-duration) ease-out;\n }\n\n .oc-legend-hit {\n fill: transparent;\n }\n\n .oc-legend-entry:focus {\n outline: none;\n }\n\n /* Focus ring on the 24px hit rect, drawn as a stroke: `outline` on an SVG\n * group is inconsistent across browsers, a stroke is not. */\n .oc-legend-entry:focus-visible .oc-legend-hit {\n stroke: var(--oc-focus);\n stroke-width: 2;\n }\n\n /* ---------------------------------------------------------------------------\n * Endpoint-label hover-link\n * --------------------------------------------------------------------------- */\n\n .oc-endpoint-label-entry {\n cursor: default;\n }\n\n /* ---------------------------------------------------------------------------\n * Map hover\n *\n * Feature hover is outline + raise, never dim-the-rest: toggling opacity on\n * three thousand county paths every time the pointer crosses a border is a\n * repaint storm, and the wave of fades reads as a flicker. Datawrapper and the\n * FT outline too. `non-scaling-stroke` keeps the outline 1.5px through the\n * camera's zoom transform, which otherwise scales stroke width with geometry.\n * --------------------------------------------------------------------------- */\n\n .oc-map-feature--hover {\n stroke: var(--oc-text);\n stroke-width: 1.5;\n vector-effect: non-scaling-stroke;\n }\n\n /* Legend-bin hover IS where dim-the-rest belongs: pointing at one class is a\n * deliberate \"show me these\" gesture, and the answer is the set of features in\n * that class. Static rules per class index keep it to one attribute write on\n * the group rather than a class toggle per feature. A playback crossfade's\n * underlay carries its feature's class index, so it dims with the feature. */\n .oc-map-features[data-hover] :is(.oc-map-feature, .oc-map-feature-underlay) {\n transition: opacity var(--oc-hover-duration) ease-out;\n }\n\n .oc-map-features[data-hover=\"0\"]\n :is(.oc-map-feature, .oc-map-feature-underlay):not([data-bin-index=\"0\"]),\n .oc-map-features[data-hover=\"1\"]\n :is(.oc-map-feature, .oc-map-feature-underlay):not([data-bin-index=\"1\"]),\n .oc-map-features[data-hover=\"2\"]\n :is(.oc-map-feature, .oc-map-feature-underlay):not([data-bin-index=\"2\"]),\n .oc-map-features[data-hover=\"3\"]\n :is(.oc-map-feature, .oc-map-feature-underlay):not([data-bin-index=\"3\"]),\n .oc-map-features[data-hover=\"4\"]\n :is(.oc-map-feature, .oc-map-feature-underlay):not([data-bin-index=\"4\"]),\n .oc-map-features[data-hover=\"5\"]\n :is(.oc-map-feature, .oc-map-feature-underlay):not([data-bin-index=\"5\"]),\n .oc-map-features[data-hover=\"6\"]\n :is(.oc-map-feature, .oc-map-feature-underlay):not([data-bin-index=\"6\"]),\n .oc-map-features[data-hover=\"7\"]\n :is(.oc-map-feature, .oc-map-feature-underlay):not([data-bin-index=\"7\"]),\n .oc-map-features[data-hover=\"8\"]\n :is(.oc-map-feature, .oc-map-feature-underlay):not([data-bin-index=\"8\"]),\n .oc-map-features[data-hover=\"9\"]\n :is(.oc-map-feature, .oc-map-feature-underlay):not([data-bin-index=\"9\"]),\n .oc-map-features[data-hover=\"10\"]\n :is(.oc-map-feature, .oc-map-feature-underlay):not([data-bin-index=\"10\"]),\n .oc-map-features[data-hover=\"11\"]\n :is(.oc-map-feature, .oc-map-feature-underlay):not([data-bin-index=\"11\"]) {\n opacity: var(--oc-map-hover-dim);\n }\n\n .oc-legend-bin {\n cursor: default;\n }\n\n /* ---------------------------------------------------------------------------\n * Tile hover\n *\n * A tile grid is 51 rects, not 3000 paths, and every tile is the same size --\n * so here the full hover language applies: the hovered tile takes an outline\n * and the rest drop back.\n * --------------------------------------------------------------------------- */\n\n .oc-tilemap-tiles.oc-hover-active .oc-tilemap-tile {\n transition: opacity var(--oc-hover-duration) ease-out;\n }\n\n .oc-tilemap-tiles.oc-hover-active .oc-tilemap-tile:not(.oc-tilemap-tile--hover) {\n opacity: var(--oc-hover-dim);\n }\n\n .oc-tilemap-tile--hover > rect {\n stroke: var(--oc-text);\n stroke-width: 1.5;\n }\n}\n\n@layer oc.components {\n /* Source-linked annotation inspection; exports render a fresh, inactive scene. */\n .oc-footnotes,\n [data-note-marker-index] {\n cursor: pointer;\n }\n .oc-footnotes.oc-note-active {\n text-decoration: underline;\n }\n [data-note-marker-index].oc-note-active .oc-annotation-footnote-marker {\n stroke-width: 3;\n }\n}\n","@layer oc.components {\n /* ---------------------------------------------------------------------------\n * Series search (seriesSearch)\n *\n * DOM combobox overlaid on the SVG band the engine reserves below chrome.\n * The wrapper is absolutely positioned by the vanilla adapter (inline\n * left/top/width/height), so everything here is visual only. All colors come\n * from --oc-* tokens, which flip in .oc-dark.\n * --------------------------------------------------------------------------- */\n\n .oc-series-search {\n position: absolute;\n display: flex;\n align-items: center;\n justify-content: flex-end;\n gap: 8px;\n font-family: var(--oc-font-family);\n z-index: 10;\n }\n\n /* Chips: removable filter tokens for the current selection. They flow to the\n * left of the input and scroll horizontally rather than wrapping over the\n * chart when a reader picks many series. */\n .oc-series-search-chips {\n display: flex;\n align-items: center;\n gap: 6px;\n min-width: 0;\n overflow-x: auto;\n scrollbar-width: none;\n }\n\n .oc-series-search-chips::-webkit-scrollbar {\n display: none;\n }\n\n .oc-series-search-chip {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n padding: 3px 4px 3px 10px;\n border: 1px solid var(--oc-border);\n border-radius: var(--oc-radius-full);\n background: var(--oc-secondary);\n color: var(--oc-text-secondary);\n font-size: 12px;\n font-weight: 500;\n line-height: 16px;\n white-space: nowrap;\n }\n\n .oc-series-search-chip-remove {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n /* 16px glyph, but a >=24px hit area (WCAG 2.5.5 target size) via padding\n pulled back with negative margin so the chip layout stays tight. */\n width: 16px;\n height: 16px;\n padding: 4px;\n margin: -4px -2px -4px -4px;\n border: none;\n border-radius: 50%;\n background: transparent;\n color: var(--oc-text-muted);\n cursor: pointer;\n transition:\n color 0.15s,\n background-color 0.15s;\n }\n\n .oc-series-search-chip-remove:hover {\n color: var(--oc-text);\n background: var(--oc-hover-bg);\n }\n\n .oc-series-search-chip-remove:focus-visible {\n outline: 2px solid var(--oc-focus);\n outline-offset: 1px;\n }\n\n .oc-series-search-chip-remove svg {\n display: block;\n }\n\n /* Combobox: input + popup listbox. Styling matches the table search input\n * (border, radius, focus ring) so the two search surfaces read as one system. */\n .oc-series-search-box {\n position: relative;\n flex: 0 1 220px;\n min-width: 120px;\n }\n\n .oc-series-search-icon {\n position: absolute;\n left: 9px;\n top: 50%;\n transform: translateY(-50%);\n color: var(--oc-text-muted);\n pointer-events: none;\n }\n\n /* Shared skin provided by the grouped rule in table.css.\n Only divergent props live here. */\n .oc-series-search-input {\n height: 32px;\n padding: 0 10px 0 28px;\n }\n\n .oc-series-search-listbox {\n position: absolute;\n top: calc(100% + 4px);\n right: 0;\n min-width: 100%;\n max-height: 240px;\n overflow-y: auto;\n margin: 0;\n padding: 4px;\n list-style: none;\n border: 1px solid var(--oc-border);\n border-radius: var(--oc-radius-lg);\n background: var(--oc-card);\n box-shadow: var(--oc-tooltip-shadow);\n z-index: 20;\n }\n\n .oc-series-search-option {\n padding: 6px 10px;\n border-radius: var(--oc-radius-sm);\n font-size: 13px;\n color: var(--oc-text);\n cursor: pointer;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n .oc-series-search-option[aria-selected=\"true\"],\n .oc-series-search-option:hover {\n background: var(--oc-hover-bg);\n }\n\n /* The typed substring within each suggestion. */\n .oc-series-search-match {\n font-weight: 600;\n }\n\n .oc-series-search-empty {\n padding: 6px 10px;\n font-size: 12px;\n color: var(--oc-text-muted);\n }\n}\n","@layer oc.components {\n /* ---------------------------------------------------------------------------\n * You draw it (youDrawIt)\n *\n * NYT-style draw-then-reveal. SVG-space elements (hatched region, guess path,\n * reveal clip) render inside the chart SVG; the prompt + skip-to-reveal button\n * are an absolutely-positioned HTML overlay the vanilla adapter sizes over the\n * drawing region (inline left/top/width/height). All colors come from --oc-*\n * tokens so they flip in .oc-dark.\n * --------------------------------------------------------------------------- */\n\n /* Hatched \"draw here\" region. Fill comes from an SVG <pattern> (line color =\n * the target series color); this only governs overall opacity + fade-out. */\n .oc-ydi-region {\n opacity: 0.35;\n transition: opacity 0.4s ease;\n }\n\n .oc-ydi-region[data-ydi-hidden=\"true\"] {\n opacity: 0;\n }\n\n /* The vertical rule at `from` where drawing begins. */\n .oc-ydi-boundary {\n stroke: var(--oc-text-muted);\n stroke-width: 1;\n stroke-dasharray: 3 3;\n stroke-opacity: 0.6;\n }\n\n /* Reader's guess: a distinct pen-like stroke that reads as \"yours\" against the\n * solid real line. Dashed + focus-blue so it stays legible in both modes. */\n .oc-ydi-guess {\n stroke: var(--oc-focus);\n stroke-width: 2.5;\n stroke-linecap: round;\n stroke-linejoin: round;\n stroke-dasharray: 1 6;\n }\n\n /* Host-supplied comparison line (\"what everyone else guessed\"). Muted so it\n * sits behind the reader's guess and the real line. */\n .oc-ydi-comparison {\n stroke: var(--oc-text-muted);\n stroke-width: 1.5;\n stroke-opacity: 0.5;\n stroke-dasharray: 4 4;\n }\n\n /* Reveal clip rect: the width animates from the `from` boundary to the full\n * area on reveal, wiping the real line in left-to-right. The vanilla adapter\n * adds .oc-ydi-clip-animate right before setting the final width; reduced\n * motion skips the class so the width snaps. */\n .oc-ydi-clip-rect.oc-ydi-clip-animate {\n transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1);\n }\n\n /* HTML controls overlay: prompt (top) + reveal button (bottom-right). */\n .oc-ydi-controls {\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n align-items: flex-end;\n pointer-events: none;\n font-family: var(--oc-font-family);\n padding: 8px;\n box-sizing: border-box;\n z-index: 10;\n }\n\n .oc-ydi-prompt {\n align-self: center;\n max-width: 100%;\n padding: 6px 12px;\n border-radius: var(--oc-radius-md);\n background: var(--oc-card);\n border: 1px solid var(--oc-border);\n color: var(--oc-text-secondary);\n font-size: 13px;\n font-weight: 500;\n line-height: 16px;\n text-align: center;\n box-shadow: var(--oc-tooltip-shadow);\n }\n\n .oc-ydi-controls.oc-ydi-revealed .oc-ydi-prompt {\n display: none;\n }\n\n /* Clear + reveal buttons, side by side at the bottom-right. */\n .oc-ydi-actions {\n display: flex;\n flex-wrap: wrap;\n justify-content: flex-end;\n gap: 8px;\n pointer-events: none;\n }\n\n /* Skip-to-reveal and clear buttons. pointer-events re-enabled (the overlay\n * disables it) so they stay clickable and keyboard-reachable. Min height\n * enforced inline by the adapter (>= 24px effective touch target). */\n .oc-ydi-reveal-button,\n .oc-ydi-reset-button {\n pointer-events: auto;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n padding: 6px 14px;\n border: 1px solid var(--oc-border);\n border-radius: var(--oc-radius-md);\n background: var(--oc-bg);\n color: var(--oc-text);\n font-family: inherit;\n font-size: 13px;\n font-weight: 500;\n white-space: nowrap;\n cursor: pointer;\n box-shadow: var(--oc-tooltip-shadow);\n transition:\n background-color 0.15s,\n border-color 0.15s;\n }\n\n .oc-ydi-reset-button[hidden] {\n display: none;\n }\n\n .oc-ydi-reveal-button:hover,\n .oc-ydi-reset-button:hover {\n background: var(--oc-hover-bg);\n }\n\n .oc-ydi-reveal-button:focus-visible,\n .oc-ydi-reset-button:focus-visible {\n outline: 2px solid var(--oc-focus);\n outline-offset: 2px;\n }\n\n .oc-ydi-reveal-button:disabled {\n opacity: 0.5;\n cursor: default;\n }\n}\n","@layer oc.components {\n .oc-reader-panel,\n .oc-map-companion {\n color: var(--oc-text);\n font-family: var(--oc-font-family);\n font-size: 14px;\n line-height: 1.5;\n min-width: 0;\n }\n\n .oc-reader-panel {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));\n gap: 16px;\n padding: 16px 0;\n border-block: 1px solid var(--oc-border);\n }\n\n .oc-reader-panel article {\n min-width: 0;\n padding-inline-end: 16px;\n overflow-wrap: anywhere;\n }\n\n .oc-reader-panel h3 {\n margin: 0 0 6px;\n font-size: 15px;\n line-height: 1.4;\n font-weight: 600;\n }\n\n .oc-reader-panel p {\n margin: 0 0 8px;\n color: var(--oc-text-secondary);\n }\n\n .oc-reader-panel dl {\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto;\n gap: 6px 16px;\n margin: 12px 0;\n font-variant-numeric: tabular-nums;\n }\n\n .oc-reader-panel dt {\n color: var(--oc-text-muted);\n }\n .oc-reader-panel dd {\n margin: 0;\n text-align: end;\n }\n .oc-reader-empty,\n .oc-reader-comparison {\n grid-column: 1 / -1;\n }\n .oc-reader-panel > button {\n justify-self: start;\n align-self: end;\n }\n\n .oc-reader-panel button,\n .oc-map-companion button,\n .oc-map-inspect-places {\n font: inherit;\n font-size: 13px;\n color: var(--oc-text-secondary);\n background: transparent;\n border: 1px solid var(--oc-border);\n border-radius: 5px;\n padding: 6px 10px;\n min-height: 36px;\n cursor: pointer;\n margin-inline-end: 6px;\n margin-block: 3px;\n white-space: normal;\n text-align: start;\n }\n\n .oc-reader-panel button:hover,\n .oc-map-companion button:hover,\n .oc-map-inspect-places:hover {\n background: var(--oc-hover-bg);\n }\n .oc-reader-panel button:focus-visible,\n .oc-map-companion :is(button, input):focus-visible,\n .oc-map-inspect-places:focus-visible {\n outline: 2px solid var(--oc-focus);\n outline-offset: 2px;\n }\n\n .oc-map-companion input {\n width: 100%;\n box-sizing: border-box;\n padding: 10px 12px;\n border: 1px solid var(--oc-border);\n border-radius: 5px;\n background: transparent;\n color: var(--oc-text);\n font: inherit;\n }\n\n .oc-map-companion ol {\n margin: 12px 0;\n padding: 0;\n list-style: none;\n }\n .oc-map-companion li {\n display: flex;\n align-items: baseline;\n justify-content: space-between;\n gap: 12px;\n padding-block: 6px;\n border-bottom: 1px solid var(--oc-border);\n }\n .oc-map-companion li > button:first-child {\n flex: 1 1 auto;\n border-color: transparent;\n padding-inline-start: 0;\n font-variant-numeric: tabular-nums;\n }\n .oc-map-companion button:disabled {\n opacity: 0.45;\n cursor: default;\n }\n .oc-map-inspect-places {\n position: absolute;\n inset-inline-start: 8px;\n top: 8px;\n }\n .oc-map-inspect-places:not(:focus-visible) {\n width: 1px;\n height: 1px;\n min-height: 0;\n padding: 0;\n border: 0;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n }\n}\n"],"names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opendata-ai/openchart-vue",
3
- "version": "9.7.0",
3
+ "version": "9.7.1",
4
4
  "description": "Vue 3 components for openchart: <Chart />, <DataTable />, <Graph />, <VizThemeProvider />",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Riley Hilliard",
@@ -53,9 +53,9 @@
53
53
  "typecheck": "tsc --noEmit"
54
54
  },
55
55
  "dependencies": {
56
- "@opendata-ai/openchart-core": "9.7.0",
57
- "@opendata-ai/openchart-engine": "9.7.0",
58
- "@opendata-ai/openchart-vanilla": "9.7.0"
56
+ "@opendata-ai/openchart-core": "9.7.1",
57
+ "@opendata-ai/openchart-engine": "9.7.1",
58
+ "@opendata-ai/openchart-vanilla": "9.7.1"
59
59
  },
60
60
  "peerDependencies": {
61
61
  "vue": ">=3.3.0"