accessibility-plugin-react 2.5.0 → 2.7.0

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
@@ -27,17 +27,26 @@ __export(index_exports, {
27
27
  AccessibilityList: () => AccessibilityList,
28
28
  AccessibilityPlugin: () => AccessibilityPlugin,
29
29
  BigCursorController: () => BigCursorController,
30
+ CONTRAST_MODES: () => CONTRAST_MODES,
31
+ CONTRAST_PALETTES: () => CONTRAST_PALETTES,
32
+ CONTRAST_PROTECTED_SELECTOR: () => CONTRAST_PROTECTED_SELECTOR,
30
33
  ChoiceControl: () => ChoiceControl,
31
34
  ContrastController: () => ContrastController,
35
+ ContrastModeController: () => ContrastModeController,
32
36
  DEFAULT_PREFERENCES: () => DEFAULT_PREFERENCES,
37
+ DYSLEXIA_FONT_STACK: () => DYSLEXIA_FONT_STACK,
33
38
  EmptyState: () => EmptyState,
34
39
  ErrorState: () => ErrorState,
40
+ FONT_FAMILY_PRESETS: () => FONT_FAMILY_PRESETS,
41
+ FONT_FAMILY_PROTECTED_SELECTOR: () => FONT_FAMILY_PROTECTED_SELECTOR,
35
42
  FeatureCard: () => FeatureCard,
43
+ FontFamilyController: () => FontFamilyController,
36
44
  FontSizeController: () => FontSizeController,
37
45
  GrayscaleController: () => GrayscaleController,
38
46
  HideImagesController: () => HideImagesController,
39
47
  HideVideosController: () => HideVideosController,
40
48
  InvertColorsController: () => InvertColorsController,
49
+ LEGIBLE_FONT_STACK: () => LEGIBLE_FONT_STACK,
41
50
  LINE_HEIGHT_RATIOS: () => LINE_HEIGHT_RATIOS,
42
51
  LINE_HEIGHT_STEPS: () => LINE_HEIGHT_STEPS,
43
52
  LetterSpacingController: () => LetterSpacingController,
@@ -52,6 +61,7 @@ __export(index_exports, {
52
61
  SaturationController: () => SaturationController,
53
62
  SearchCount: () => SearchCount,
54
63
  StepperControl: () => StepperControl,
64
+ TEXT_ALIGN_BLOCK_SELECTOR: () => TEXT_ALIGN_BLOCK_SELECTOR,
55
65
  TEXT_SCALE_PROTECTED_SELECTOR: () => TEXT_SCALE_PROTECTED_SELECTOR,
56
66
  TEXT_SCALE_STEPS: () => TEXT_SCALE_STEPS,
57
67
  TEXT_SPACING_EXCLUDED_SELECTOR: () => TEXT_SPACING_EXCLUDED_SELECTOR,
@@ -62,6 +72,10 @@ __export(index_exports, {
62
72
  createInitialPreferencesState: () => createInitialPreferencesState,
63
73
  enLocale: () => enLocale,
64
74
  getScriptSpacingConstraints: () => getScriptSpacingConstraints,
75
+ isForcedColorsActive: () => isForcedColorsActive,
76
+ isProtectedFromContrast: () => isProtectedFromContrast,
77
+ isProtectedFromFontFamily: () => isProtectedFromFontFamily,
78
+ isProtectedFromTextAlign: () => isProtectedFromTextAlign,
65
79
  isProtectedFromTextScale: () => isProtectedFromTextScale,
66
80
  isProtectedFromTextSpacing: () => isProtectedFromTextSpacing,
67
81
  isRtlLocale: () => isRtlLocale,
@@ -98,7 +112,7 @@ function styleInject(css, { insertAt } = {}) {
98
112
  }
99
113
 
100
114
  // src/styles/tailwind.css
101
- styleInject('.arap-root {\n --arap-surface: #fff;\n --arap-text: #111827;\n --arap-muted: #475569;\n --arap-border: #cbd5e1;\n --arap-divider: #e2e8f0;\n --arap-accent: #1d4ed8;\n --arap-accent-hover: #1e40af;\n --arap-selected: #eff6ff;\n --arap-control: #f8fafc;\n color-scheme: light;\n font: 15px/1.5 system-ui, sans-serif;\n color: var(--arap-text);\n text-align: left;\n letter-spacing: normal;\n}\n.arap-root *,\n.arap-root *::before,\n.arap-root *::after {\n box-sizing: border-box;\n}\n.arap-root button {\n font: inherit;\n cursor: pointer;\n color: inherit;\n text-transform: none;\n letter-spacing: normal;\n transition: background-color 0.15s, border-color 0.15s;\n}\n.arap-root button:disabled {\n opacity: 0.45;\n cursor: not-allowed;\n}\n.arap-root button:focus-visible,\n.arap-panel:focus-visible {\n outline: 3px solid var(--arap-accent);\n outline-offset: 3px;\n}\n.arap-root .arap-btn {\n position: fixed;\n z-index: 2147483001;\n bottom: max(16px, env(safe-area-inset-bottom));\n right: max(16px, env(safe-area-inset-right));\n width: 56px;\n height: 56px;\n padding: 12px;\n display: flex;\n align-items: center;\n justify-content: center;\n border: 2px solid var(--arap-surface);\n border-radius: 50%;\n background: var(--arap-accent);\n color: #fff;\n box-shadow: 0 4px 12px #0f172a26, 0 10px 24px #0f172a14;\n}\n.arap-root .arap-btn:hover {\n background: var(--arap-accent-hover);\n}\n.arap-root .arap-btn[data-position=left] {\n right: auto;\n left: max(16px, env(safe-area-inset-left));\n}\n.arap-root .arap-btn[data-position=top] {\n bottom: auto;\n top: max(16px, env(safe-area-inset-top));\n}\n.arap-root .arap-panel {\n position: fixed;\n z-index: 2147483000;\n bottom: max(88px, calc(env(safe-area-inset-bottom) + 72px));\n right: max(16px, env(safe-area-inset-right));\n width: min(400px, calc(100vw - 32px));\n max-height: calc(100vh - 120px);\n max-height: calc(100dvh - 120px - env(safe-area-inset-bottom));\n overflow: auto;\n overscroll-behavior: contain;\n scrollbar-width: thin;\n scrollbar-color: var(--arap-border) transparent;\n padding: 20px;\n border: 1px solid var(--arap-divider);\n border-radius: 16px;\n background: var(--arap-surface);\n box-shadow: 0 8px 16px #0f172a0d, 0 20px 48px #0f172a1a;\n}\n.arap-root .arap-panel[hidden] {\n display: none !important;\n}\n.arap-root .arap-panel[data-position=left] {\n right: auto;\n left: max(16px, env(safe-area-inset-left));\n}\n.arap-root .arap-panel[data-position=top] {\n bottom: auto;\n top: max(88px, calc(env(safe-area-inset-top) + 72px));\n}\n.arap-heading {\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n gap: 8px;\n padding-bottom: 18px;\n border-bottom: 1px solid var(--arap-divider);\n}\n.arap-heading-copy {\n min-width: 0;\n}\n.arap-heading h2 {\n margin: 0;\n font: 700 22px/1.3 system-ui, sans-serif;\n letter-spacing: -0.025em;\n color: var(--arap-text);\n overflow-wrap: anywhere;\n}\n.arap-description {\n margin: 6px 0 0;\n color: var(--arap-muted);\n font: 14px/1.5 system-ui, sans-serif;\n overflow-wrap: anywhere;\n}\n.arap-heading button {\n flex: none;\n width: 44px;\n height: 44px;\n margin-top: -6px;\n border: 1px solid transparent;\n border-radius: 8px;\n background: transparent;\n color: var(--arap-muted);\n font-size: 28px;\n line-height: 1;\n}\n.arap-heading button:hover {\n background: var(--arap-control);\n border-color: var(--arap-border);\n}\n.arap-feature {\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto;\n align-items: center;\n gap: 10px 12px;\n padding: 18px 0;\n border-bottom: 1px solid var(--arap-divider);\n}\n.arap-feature:last-child {\n border: 0;\n padding-bottom: 0;\n}\n.arap-label {\n display: flex;\n align-items: center;\n gap: 10px;\n font-weight: 500;\n min-width: 0;\n overflow-wrap: anywhere;\n}\n.arap-icon {\n flex: none;\n width: 22px;\n height: 22px;\n display: inline-block;\n vertical-align: middle;\n}\n.arap-controls {\n display: flex;\n align-items: stretch;\n border: 1px solid var(--arap-border);\n border-radius: 9px;\n overflow: hidden;\n background: var(--arap-control);\n}\n.arap-root .arap-btn-sm {\n flex: none;\n width: 44px;\n height: 44px;\n border: 0;\n border-radius: 0;\n background: transparent;\n font-size: 22px;\n}\n.arap-root .arap-btn-sm:hover:not(:disabled) {\n background: var(--arap-selected);\n color: var(--arap-accent);\n}\n.arap-root .arap-controls button:focus-visible {\n outline-offset: -4px;\n}\n.arap-value {\n display: flex;\n align-items: center;\n justify-content: center;\n min-width: 56px;\n padding: 0 6px;\n text-align: center;\n font-weight: 600;\n border-inline: 1px solid var(--arap-divider);\n background: var(--arap-surface);\n}\n.arap-segmented {\n grid-column: 1 / -1;\n display: flex;\n flex-wrap: wrap;\n gap: 6px;\n min-width: 0;\n}\n.arap-root .arap-segment {\n flex: 1 1 auto;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: 5px;\n min-width: 44px;\n min-height: 44px;\n padding: 8px 10px;\n border: 1px solid var(--arap-border);\n border-radius: 8px;\n background: var(--arap-control);\n color: var(--arap-muted);\n overflow-wrap: anywhere;\n}\n.arap-root .arap-segment:hover {\n background: var(--arap-selected);\n border-color: var(--arap-accent);\n}\n.arap-root .arap-segment-active {\n background: var(--arap-accent);\n color: #fff;\n border-color: var(--arap-accent);\n font-weight: 600;\n}\n.arap-root .arap-segment-active:hover {\n background: var(--arap-accent-hover);\n color: #fff;\n}\n.arap-check {\n flex: none;\n font-size: 15px;\n line-height: 1;\n}\n.arap-root .arap-toggle {\n position: relative;\n width: 56px;\n height: 44px;\n padding: 0;\n border: 0;\n border-radius: 10px;\n background: transparent;\n}\n.arap-toggle::before {\n content: "";\n position: absolute;\n inset: 6px 0;\n border: 2px solid #64748b;\n border-radius: 20px;\n background: #e2e8f0;\n}\n.arap-toggle-knob {\n position: absolute;\n top: 10px;\n left: 4px;\n width: 24px;\n height: 24px;\n border-radius: 50%;\n background: #475569;\n pointer-events: none;\n transition: transform 0.15s;\n}\n.arap-toggle-active::before {\n background: var(--arap-accent);\n border-color: var(--arap-accent);\n}\n.arap-toggle-active .arap-toggle-knob {\n transform: translateX(24px);\n background: #fff;\n}\n.arap-toggle-active .arap-toggle-knob::after {\n content: "\\2713";\n display: block;\n color: var(--arap-accent);\n font-size: 16px;\n font-weight: 700;\n line-height: 24px;\n text-align: center;\n}\n.arap-root .arap-toggle:hover::before {\n border-color: var(--arap-accent);\n}\n.arap-feature-reset {\n display: block;\n}\n.arap-root .arap-reset-btn {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 10px;\n width: 100%;\n min-height: 48px;\n padding: 10px;\n border: 1px solid var(--arap-border);\n border-radius: 10px;\n background: var(--arap-control);\n color: var(--arap-accent);\n font-weight: 600;\n}\n.arap-root .arap-reset-btn:hover {\n background: var(--arap-selected);\n border-color: var(--arap-accent);\n}\n@media (max-width: 380px) {\n .arap-root .arap-panel {\n padding: 16px;\n }\n .arap-heading h2 {\n font-size: 20px;\n }\n .arap-feature-stepper {\n grid-template-columns: minmax(0, 1fr);\n }\n .arap-controls {\n width: 100%;\n }\n .arap-value {\n flex: 1;\n }\n}\n@media (prefers-reduced-motion: reduce) {\n .arap-root *,\n .arap-root *::before,\n .arap-root *::after {\n transition: none !important;\n animation: none !important;\n }\n}\n@media (forced-colors: active) {\n .arap-root {\n --arap-surface: Canvas;\n --arap-text: CanvasText;\n --arap-muted: CanvasText;\n --arap-border: ButtonText;\n --arap-divider: ButtonText;\n --arap-accent: Highlight;\n --arap-control: Canvas;\n --arap-selected: Canvas;\n }\n .arap-root button[aria-pressed=true] {\n outline: 2px solid Highlight;\n outline-offset: -4px;\n }\n .arap-root .arap-segment-active {\n color: HighlightText;\n background: Highlight;\n }\n .arap-toggle::before {\n border-color: ButtonText;\n background: Canvas;\n }\n .arap-toggle-knob {\n background: ButtonText;\n }\n .arap-toggle-active .arap-toggle-knob {\n background: Highlight;\n }\n .arap-toggle-active .arap-toggle-knob::after {\n color: HighlightText;\n }\n}\n.arap-root .arap-panel {\n display: flex;\n flex-direction: column;\n overflow: visible;\n}\n.arap-heading {\n flex: none;\n}\n.arap-tools {\n flex: 1 1 auto;\n min-height: 0;\n overflow: auto;\n overscroll-behavior: contain;\n scrollbar-width: thin;\n scrollbar-color: var(--arap-border) transparent;\n padding: 0 3px;\n margin: 0 -3px;\n}\n.arap-tools:focus-visible {\n outline: 3px solid var(--arap-accent);\n outline-offset: -3px;\n}\n.arap-quick-actions {\n position: relative;\n flex: none;\n display: flex;\n align-items: center;\n gap: 8px;\n padding-top: 14px;\n margin-top: 8px;\n border-top: 1px solid var(--arap-divider);\n}\n.arap-actions {\n flex: 1;\n min-width: 0;\n}\n.arap-actions:empty {\n display: none;\n}\n.arap-actions .arap-feature-reset {\n padding: 0;\n margin: 0;\n border: 0;\n}\n.arap-root .arap-position-button,\n.arap-root .arap-position-default,\n.arap-root .arap-position-arrows button {\n min-width: 44px;\n min-height: 44px;\n padding: 8px 10px;\n border: 1px solid var(--arap-border);\n border-radius: 8px;\n background: var(--arap-control);\n color: var(--arap-accent);\n}\n.arap-root .arap-position-button:hover,\n.arap-root .arap-position-default:hover,\n.arap-root .arap-position-arrows button:hover {\n background: var(--arap-selected);\n border-color: var(--arap-accent);\n}\n.arap-position-popover {\n position: absolute;\n z-index: 1;\n bottom: calc(100% + 8px);\n left: 0;\n width: 100%;\n max-height: calc(100dvh - 160px);\n overflow: auto;\n padding: 14px;\n border: 1px solid var(--arap-border);\n border-radius: 12px;\n background: var(--arap-surface);\n box-shadow: 0 8px 24px #0f172a26;\n}\n.arap-position-popover[hidden] {\n display: none !important;\n}\n.arap-position-label {\n display: block;\n margin-bottom: 6px;\n font-weight: 600;\n}\n.arap-position-popover select {\n width: 100%;\n min-height: 44px;\n padding: 8px;\n border: 1px solid var(--arap-border);\n border-radius: 8px;\n font: inherit;\n color: var(--arap-text);\n background: var(--arap-surface);\n}\n.arap-position-popover select:focus-visible {\n outline: 3px solid var(--arap-accent);\n outline-offset: 2px;\n}\n.arap-position-arrows {\n display: flex;\n justify-content: space-between;\n gap: 6px;\n margin-top: 10px;\n}\n.arap-position-default {\n width: 100%;\n margin-top: 8px;\n}\n.arap-root .arap-btn[data-draggable=true] {\n touch-action: none;\n user-select: none;\n cursor: grab;\n}\n.arap-root .arap-btn[data-dragging=true] {\n cursor: grabbing;\n}\n.arap-root .arap-btn[data-corner$=left],\n.arap-root .arap-panel[data-corner$=left] {\n right: auto;\n left: max(16px, env(safe-area-inset-left));\n}\n.arap-root .arap-btn[data-corner$=right],\n.arap-root .arap-panel[data-corner$=right] {\n left: auto;\n right: max(16px, env(safe-area-inset-right));\n}\n.arap-root .arap-btn[data-corner^=top] {\n bottom: auto;\n top: max(16px, env(safe-area-inset-top));\n}\n.arap-root .arap-btn[data-corner^=bottom] {\n top: auto;\n bottom: max(16px, env(safe-area-inset-bottom));\n}\n.arap-root .arap-panel[data-corner^=top] {\n bottom: auto;\n top: max(88px, calc(env(safe-area-inset-top) + 72px));\n}\n.arap-root .arap-panel[data-corner^=bottom] {\n top: auto;\n bottom: max(88px, calc(env(safe-area-inset-bottom) + 72px));\n}\n.arap-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n border: 0;\n}\n.arap-root .arap-skip-actions {\n position: absolute;\n top: 12px;\n left: 20px;\n width: 44px;\n height: 44px;\n clip-path: inset(50%);\n overflow: hidden;\n pointer-events: none;\n}\n.arap-root .arap-skip-actions:focus-visible {\n right: 20px;\n width: auto;\n height: auto;\n min-height: 44px;\n clip-path: none;\n pointer-events: auto;\n z-index: 2;\n padding: 8px;\n border: 1px solid var(--arap-accent);\n border-radius: 8px;\n background: var(--arap-surface);\n color: var(--arap-accent);\n}\n@media (max-height: 480px) {\n .arap-root .arap-panel {\n top: max(16px, env(safe-area-inset-top)) !important;\n bottom: max(16px, env(safe-area-inset-bottom)) !important;\n max-height: calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;\n padding: 8px;\n }\n .arap-heading {\n padding-bottom: 8px;\n }\n .arap-heading h2 {\n font-size: 18px;\n }\n .arap-heading button {\n margin-top: 0;\n }\n .arap-description {\n display: none;\n }\n .arap-quick-actions {\n padding-top: 8px;\n margin-top: 0;\n }\n .arap-root .arap-reset-btn {\n min-height: 44px;\n }\n .arap-root .arap-btn[data-open=true] {\n visibility: hidden;\n }\n .arap-position-popover {\n max-height: calc(100dvh - 96px);\n }\n}\n.arap-statement {\n flex: none;\n padding-top: 10px;\n text-align: center;\n}\n.arap-statement-link {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n min-height: 44px;\n padding: 6px 12px;\n color: var(--arap-accent);\n text-decoration: underline;\n text-underline-offset: 4px;\n font-size: 14px;\n font-weight: 500;\n border-radius: 8px;\n}\n.arap-statement-link:hover {\n color: var(--arap-accent-hover);\n background: var(--arap-selected);\n}\n.arap-statement-link:focus-visible {\n outline: 3px solid var(--arap-accent);\n outline-offset: 2px;\n}\n.arap-credits {\n display: flex;\n flex: none;\n flex-direction: column;\n gap: 2px;\n padding-top: 8px;\n color: var(--arap-muted);\n text-align: center;\n font-size: 11px;\n line-height: 1.4;\n}\n.arap-credits a {\n color: var(--arap-accent);\n text-decoration: underline;\n text-underline-offset: 2px;\n}\n.arap-credits a:hover {\n color: var(--arap-accent-hover);\n}\n.arap-credits a:focus-visible {\n outline: 2px solid var(--arap-accent);\n outline-offset: 2px;\n}\n.arap-root .arap-btn[data-large-controls=true] {\n width: 64px;\n height: 64px;\n min-width: 48px;\n min-height: 48px;\n}\n.arap-root .arap-panel[data-large-controls=true] {\n width: min(440px, calc(100vw - 32px));\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-heading button {\n width: 48px;\n height: 48px;\n min-width: 48px;\n min-height: 48px;\n font-size: 32px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-btn-sm {\n width: 48px;\n height: 48px;\n min-width: 48px;\n min-height: 48px;\n font-size: 24px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-value {\n min-width: 64px;\n font-size: 16px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-segment {\n min-width: 48px;\n min-height: 48px;\n padding: 10px 14px;\n font-size: 15px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-toggle {\n width: 64px;\n height: 48px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-toggle::before {\n inset: 8px 0;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-toggle-knob {\n top: 12px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-toggle-active .arap-toggle-knob {\n transform: translateX(28px);\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-reset-btn {\n min-height: 52px;\n font-size: 16px;\n padding: 12px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-position-button,\n.arap-root .arap-panel[data-large-controls=true] .arap-position-default,\n.arap-root .arap-panel[data-large-controls=true] .arap-position-arrows button {\n min-width: 48px;\n min-height: 48px;\n font-size: 15px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-position-popover select {\n min-height: 48px;\n font-size: 15px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-statement-link {\n min-height: 48px;\n font-size: 15px;\n padding: 10px 16px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-skip-actions {\n min-width: 48px;\n min-height: 48px;\n}\n.arap-feature-card {\n display: flex;\n flex-direction: column;\n align-items: stretch;\n gap: 12px;\n}\n.arap-card-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 8px;\n}\n.arap-card-title {\n font-weight: 600;\n font-size: 15px;\n color: var(--arap-text);\n}\n.arap-card-desc {\n margin: 0;\n font-size: 13px;\n color: var(--arap-muted);\n line-height: 1.4;\n}\n.arap-status-badge {\n display: inline-flex;\n align-items: center;\n padding: 2px 8px;\n border-radius: 9999px;\n font-size: 11px;\n font-weight: 600;\n background: var(--arap-control);\n border: 1px solid var(--arap-border);\n color: var(--arap-muted);\n text-transform: uppercase;\n letter-spacing: 0.05em;\n}\n.arap-card-alert {\n display: flex;\n align-items: flex-start;\n gap: 8px;\n padding: 10px 12px;\n border-radius: 8px;\n font-size: 13px;\n line-height: 1.4;\n}\n.arap-alert-icon {\n flex: none;\n font-size: 16px;\n line-height: 1;\n}\n.arap-card-error {\n background: #fef2f2;\n border: 1px solid #fecaca;\n color: #991b1b;\n}\n.arap-card-unavailable {\n background: #f8fafc;\n border: 1px solid var(--arap-border);\n color: var(--arap-muted);\n}\n.arap-card-permission {\n background: #fffbeb;\n border: 1px solid #fde68a;\n color: #92400e;\n}\n.arap-permission-content {\n display: flex;\n flex-direction: column;\n gap: 6px;\n}\n.arap-permission-btn {\n align-self: flex-start;\n padding: 4px 10px;\n border: 1px solid #d97706;\n border-radius: 6px;\n background: #f59e0b;\n color: #fff;\n font-size: 12px;\n font-weight: 600;\n cursor: pointer;\n}\n.arap-permission-btn:hover {\n background: #d97706;\n}\n.arap-card-content {\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n.arap-choice-group {\n display: flex;\n flex-direction: column;\n gap: 6px;\n width: 100%;\n}\n.arap-choice-group-title {\n font-size: 12px;\n font-weight: 600;\n color: var(--arap-muted);\n text-transform: uppercase;\n letter-spacing: 0.05em;\n}\n.arap-choice-badge {\n font-size: 11px;\n padding: 1px 5px;\n border-radius: 4px;\n background: var(--arap-divider);\n color: var(--arap-muted);\n}\n.arap-segment-active .arap-choice-badge {\n background: rgba(255, 255, 255, 0.25);\n color: #fff;\n}\n.arap-stepper-control-wrapper {\n display: flex;\n flex-direction: column;\n gap: 8px;\n width: 100%;\n}\n.arap-slider-container {\n display: flex;\n align-items: center;\n padding: 4px 0;\n}\n.arap-slider {\n width: 100%;\n accent-color: var(--arap-accent);\n cursor: pointer;\n}\n.arap-search-count {\n padding: 6px 0;\n font-size: 12px;\n font-weight: 500;\n color: var(--arap-muted);\n}\n.arap-empty-state {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n text-align: center;\n padding: 24px 16px;\n gap: 8px;\n}\n.arap-empty-icon {\n font-size: 32px;\n}\n.arap-empty-title {\n margin: 0;\n font-size: 16px;\n font-weight: 600;\n color: var(--arap-text);\n}\n.arap-empty-desc {\n margin: 0;\n font-size: 13px;\n color: var(--arap-muted);\n}\n.arap-empty-btn,\n.arap-retry-btn {\n margin-top: 6px;\n padding: 8px 16px;\n border: 1px solid var(--arap-border);\n border-radius: 8px;\n background: var(--arap-control);\n font-weight: 500;\n font-size: 13px;\n color: var(--arap-text);\n cursor: pointer;\n}\n.arap-empty-btn:hover,\n.arap-retry-btn:hover {\n background: var(--arap-selected);\n border-color: var(--arap-accent);\n color: var(--arap-accent);\n}\n.arap-profile-card {\n display: flex;\n flex-direction: column;\n gap: 12px;\n padding: 16px;\n border: 1px solid var(--arap-border);\n border-radius: 12px;\n background: var(--arap-surface);\n transition: border-color 0.15s, box-shadow 0.15s;\n}\n.arap-profile-card-active {\n border-color: var(--arap-accent);\n background: var(--arap-selected);\n box-shadow: 0 0 0 1px var(--arap-accent);\n}\n.arap-profile-header {\n display: flex;\n flex-direction: column;\n gap: 4px;\n}\n.arap-profile-title-row {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 8px;\n}\n.arap-profile-title {\n margin: 0;\n font-size: 15px;\n font-weight: 600;\n color: var(--arap-text);\n}\n.arap-profile-active-badge {\n font-size: 11px;\n font-weight: 600;\n color: var(--arap-accent);\n background: #dbeafe;\n padding: 2px 8px;\n border-radius: 9999px;\n}\n.arap-profile-desc {\n margin: 0;\n font-size: 13px;\n color: var(--arap-muted);\n line-height: 1.4;\n}\n.arap-profile-affected {\n display: flex;\n flex-direction: column;\n gap: 6px;\n}\n.arap-profile-affected-label {\n font-size: 11px;\n font-weight: 600;\n color: var(--arap-muted);\n text-transform: uppercase;\n letter-spacing: 0.05em;\n}\n.arap-profile-chips {\n display: flex;\n flex-wrap: wrap;\n gap: 6px;\n}\n.arap-profile-chip {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n padding: 3px 8px;\n border-radius: 6px;\n background: var(--arap-control);\n border: 1px solid var(--arap-divider);\n font-size: 12px;\n color: var(--arap-text);\n}\n.arap-profile-actions {\n display: flex;\n gap: 8px;\n margin-top: 4px;\n}\n.arap-profile-apply-btn {\n flex: 1;\n padding: 8px 14px;\n border: 1px solid var(--arap-accent);\n border-radius: 8px;\n background: var(--arap-accent);\n color: #fff;\n font-size: 13px;\n font-weight: 600;\n cursor: pointer;\n text-align: center;\n}\n.arap-profile-apply-btn:hover {\n background: var(--arap-accent-hover);\n}\n.arap-profile-revert-btn {\n flex: 1;\n padding: 8px 14px;\n border: 1px solid var(--arap-border);\n border-radius: 8px;\n background: var(--arap-surface);\n color: var(--arap-muted);\n font-size: 13px;\n font-weight: 600;\n cursor: pointer;\n text-align: center;\n}\n.arap-profile-revert-btn:hover {\n background: var(--arap-control);\n color: var(--arap-text);\n border-color: var(--arap-text);\n}\n');
115
+ styleInject('.arap-root {\n --arap-surface: #fff;\n --arap-text: #111827;\n --arap-muted: #475569;\n --arap-border: #cbd5e1;\n --arap-divider: #e2e8f0;\n --arap-accent: #1d4ed8;\n --arap-accent-hover: #1e40af;\n --arap-selected: #eff6ff;\n --arap-control: #f8fafc;\n color-scheme: light;\n font: 15px/1.5 system-ui, sans-serif;\n color: var(--arap-text);\n text-align: left;\n letter-spacing: normal;\n}\n.arap-root *,\n.arap-root *::before,\n.arap-root *::after {\n box-sizing: border-box;\n}\n.arap-root button {\n font: inherit;\n cursor: pointer;\n color: inherit;\n text-transform: none;\n letter-spacing: normal;\n transition: background-color 0.15s, border-color 0.15s;\n}\n.arap-root button:disabled {\n opacity: 0.45;\n cursor: not-allowed;\n}\n.arap-root button:focus-visible,\n.arap-panel:focus-visible {\n outline: 3px solid var(--arap-accent);\n outline-offset: 3px;\n}\n.arap-root .arap-btn {\n position: fixed;\n z-index: 2147483001;\n bottom: max(16px, env(safe-area-inset-bottom));\n right: max(16px, env(safe-area-inset-right));\n width: 56px;\n height: 56px;\n padding: 12px;\n display: flex;\n align-items: center;\n justify-content: center;\n border: 2px solid var(--arap-surface);\n border-radius: 50%;\n background: var(--arap-accent);\n color: #fff;\n box-shadow: 0 4px 12px #0f172a26, 0 10px 24px #0f172a14;\n}\n.arap-root .arap-btn:hover {\n background: var(--arap-accent-hover);\n}\n.arap-root .arap-btn[data-position=left] {\n right: auto;\n left: max(16px, env(safe-area-inset-left));\n}\n.arap-root .arap-btn[data-position=top] {\n bottom: auto;\n top: max(16px, env(safe-area-inset-top));\n}\n.arap-root .arap-panel {\n position: fixed;\n z-index: 2147483000;\n bottom: max(88px, calc(env(safe-area-inset-bottom) + 72px));\n right: max(16px, env(safe-area-inset-right));\n width: min(400px, calc(100vw - 32px));\n max-height: calc(100vh - 120px);\n max-height: calc(100dvh - 120px - env(safe-area-inset-bottom));\n overflow: auto;\n overscroll-behavior: contain;\n scrollbar-width: thin;\n scrollbar-color: var(--arap-border) transparent;\n padding: 20px;\n border: 1px solid var(--arap-divider);\n border-radius: 16px;\n background: var(--arap-surface);\n box-shadow: 0 8px 16px #0f172a0d, 0 20px 48px #0f172a1a;\n}\n.arap-root .arap-panel[hidden] {\n display: none !important;\n}\n.arap-root .arap-panel[data-position=left] {\n right: auto;\n left: max(16px, env(safe-area-inset-left));\n}\n.arap-root .arap-panel[data-position=top] {\n bottom: auto;\n top: max(88px, calc(env(safe-area-inset-top) + 72px));\n}\n.arap-heading {\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n gap: 8px;\n padding-bottom: 18px;\n border-bottom: 1px solid var(--arap-divider);\n}\n.arap-heading-copy {\n min-width: 0;\n}\n.arap-heading h2 {\n margin: 0;\n font: 700 22px/1.3 system-ui, sans-serif;\n letter-spacing: -0.025em;\n color: var(--arap-text);\n overflow-wrap: anywhere;\n}\n.arap-description {\n margin: 6px 0 0;\n color: var(--arap-muted);\n font: 14px/1.5 system-ui, sans-serif;\n overflow-wrap: anywhere;\n}\n.arap-heading button {\n flex: none;\n width: 44px;\n height: 44px;\n margin-top: -6px;\n border: 1px solid transparent;\n border-radius: 8px;\n background: transparent;\n color: var(--arap-muted);\n font-size: 28px;\n line-height: 1;\n}\n.arap-heading button:hover {\n background: var(--arap-control);\n border-color: var(--arap-border);\n}\n.arap-feature {\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto;\n align-items: center;\n gap: 10px 12px;\n padding: 18px 0;\n border-bottom: 1px solid var(--arap-divider);\n}\n.arap-feature:last-child {\n border: 0;\n padding-bottom: 0;\n}\n.arap-label {\n display: flex;\n align-items: center;\n gap: 10px;\n font-weight: 500;\n min-width: 0;\n overflow-wrap: anywhere;\n}\n.arap-icon {\n flex: none;\n width: 22px;\n height: 22px;\n display: inline-block;\n vertical-align: middle;\n}\n.arap-controls {\n display: flex;\n align-items: stretch;\n border: 1px solid var(--arap-border);\n border-radius: 9px;\n overflow: hidden;\n background: var(--arap-control);\n}\n.arap-root .arap-btn-sm {\n flex: none;\n width: 44px;\n height: 44px;\n border: 0;\n border-radius: 0;\n background: transparent;\n font-size: 22px;\n}\n.arap-root .arap-btn-sm:hover:not(:disabled) {\n background: var(--arap-selected);\n color: var(--arap-accent);\n}\n.arap-root .arap-controls button:focus-visible {\n outline-offset: -4px;\n}\n.arap-value {\n display: flex;\n align-items: center;\n justify-content: center;\n min-width: 56px;\n padding: 0 6px;\n text-align: center;\n font-weight: 600;\n border-inline: 1px solid var(--arap-divider);\n background: var(--arap-surface);\n}\n.arap-segmented {\n grid-column: 1 / -1;\n display: flex;\n flex-wrap: wrap;\n gap: 6px;\n min-width: 0;\n}\n.arap-root .arap-segment {\n flex: 1 1 auto;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: 5px;\n min-width: 44px;\n min-height: 44px;\n padding: 8px 10px;\n border: 1px solid var(--arap-border);\n border-radius: 8px;\n background: var(--arap-control);\n color: var(--arap-muted);\n overflow-wrap: anywhere;\n}\n.arap-root .arap-segment:hover {\n background: var(--arap-selected);\n border-color: var(--arap-accent);\n}\n.arap-root .arap-segment-active {\n background: var(--arap-accent);\n color: #fff;\n border-color: var(--arap-accent);\n font-weight: 600;\n}\n.arap-root .arap-segment-active:hover {\n background: var(--arap-accent-hover);\n color: #fff;\n}\n.arap-check {\n flex: none;\n font-size: 15px;\n line-height: 1;\n}\n.arap-root .arap-toggle {\n position: relative;\n width: 56px;\n height: 44px;\n padding: 0;\n border: 0;\n border-radius: 10px;\n background: transparent;\n}\n.arap-toggle::before {\n content: "";\n position: absolute;\n inset: 6px 0;\n border: 2px solid #64748b;\n border-radius: 20px;\n background: #e2e8f0;\n}\n.arap-toggle-knob {\n position: absolute;\n top: 10px;\n left: 4px;\n width: 24px;\n height: 24px;\n border-radius: 50%;\n background: #475569;\n pointer-events: none;\n transition: transform 0.15s;\n}\n.arap-toggle-active::before {\n background: var(--arap-accent);\n border-color: var(--arap-accent);\n}\n.arap-toggle-active .arap-toggle-knob {\n transform: translateX(24px);\n background: #fff;\n}\n.arap-toggle-active .arap-toggle-knob::after {\n content: "\\2713";\n display: block;\n color: var(--arap-accent);\n font-size: 16px;\n font-weight: 700;\n line-height: 24px;\n text-align: center;\n}\n.arap-root .arap-toggle:hover::before {\n border-color: var(--arap-accent);\n}\n.arap-feature-reset {\n display: block;\n}\n.arap-root .arap-reset-btn {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 10px;\n width: 100%;\n min-height: 48px;\n padding: 10px;\n border: 1px solid var(--arap-border);\n border-radius: 10px;\n background: var(--arap-control);\n color: var(--arap-accent);\n font-weight: 600;\n}\n.arap-root .arap-reset-btn:hover {\n background: var(--arap-selected);\n border-color: var(--arap-accent);\n}\n@media (max-width: 380px) {\n .arap-root .arap-panel {\n padding: 16px;\n }\n .arap-heading h2 {\n font-size: 20px;\n }\n .arap-feature-stepper {\n grid-template-columns: minmax(0, 1fr);\n }\n .arap-controls {\n width: 100%;\n }\n .arap-value {\n flex: 1;\n }\n}\n@media (prefers-reduced-motion: reduce) {\n .arap-root *,\n .arap-root *::before,\n .arap-root *::after {\n transition: none !important;\n animation: none !important;\n }\n}\n@media (forced-colors: active) {\n .arap-root {\n --arap-surface: Canvas;\n --arap-text: CanvasText;\n --arap-muted: CanvasText;\n --arap-border: ButtonText;\n --arap-divider: ButtonText;\n --arap-accent: Highlight;\n --arap-control: Canvas;\n --arap-selected: Canvas;\n }\n .arap-root button[aria-pressed=true] {\n outline: 2px solid Highlight;\n outline-offset: -4px;\n }\n .arap-root .arap-segment-active {\n color: HighlightText;\n background: Highlight;\n }\n .arap-toggle::before {\n border-color: ButtonText;\n background: Canvas;\n }\n .arap-toggle-knob {\n background: ButtonText;\n }\n .arap-toggle-active .arap-toggle-knob {\n background: Highlight;\n }\n .arap-toggle-active .arap-toggle-knob::after {\n color: HighlightText;\n }\n}\n.arap-root .arap-panel {\n display: flex;\n flex-direction: column;\n overflow: visible;\n}\n.arap-heading {\n flex: none;\n}\n.arap-tools {\n flex: 1 1 auto;\n min-height: 0;\n overflow: auto;\n overscroll-behavior: contain;\n scrollbar-width: thin;\n scrollbar-color: var(--arap-border) transparent;\n padding: 0 3px;\n margin: 0 -3px;\n}\n.arap-tools:focus-visible {\n outline: 3px solid var(--arap-accent);\n outline-offset: -3px;\n}\n.arap-quick-actions {\n position: relative;\n flex: none;\n display: flex;\n align-items: center;\n gap: 8px;\n padding-top: 14px;\n margin-top: 8px;\n border-top: 1px solid var(--arap-divider);\n}\n.arap-actions {\n flex: 1;\n min-width: 0;\n}\n.arap-actions:empty {\n display: none;\n}\n.arap-actions .arap-feature-reset {\n padding: 0;\n margin: 0;\n border: 0;\n}\n.arap-root .arap-position-button,\n.arap-root .arap-position-default,\n.arap-root .arap-position-arrows button {\n min-width: 44px;\n min-height: 44px;\n padding: 8px 10px;\n border: 1px solid var(--arap-border);\n border-radius: 8px;\n background: var(--arap-control);\n color: var(--arap-accent);\n}\n.arap-root .arap-position-button:hover,\n.arap-root .arap-position-default:hover,\n.arap-root .arap-position-arrows button:hover {\n background: var(--arap-selected);\n border-color: var(--arap-accent);\n}\n.arap-position-popover {\n position: absolute;\n z-index: 1;\n bottom: calc(100% + 8px);\n left: 0;\n width: 100%;\n max-height: calc(100dvh - 160px);\n overflow: auto;\n padding: 14px;\n border: 1px solid var(--arap-border);\n border-radius: 12px;\n background: var(--arap-surface);\n box-shadow: 0 8px 24px #0f172a26;\n}\n.arap-position-popover[hidden] {\n display: none !important;\n}\n.arap-position-label {\n display: block;\n margin-bottom: 6px;\n font-weight: 600;\n}\n.arap-position-popover select {\n width: 100%;\n min-height: 44px;\n padding: 8px;\n border: 1px solid var(--arap-border);\n border-radius: 8px;\n font: inherit;\n color: var(--arap-text);\n background: var(--arap-surface);\n}\n.arap-position-popover select:focus-visible {\n outline: 3px solid var(--arap-accent);\n outline-offset: 2px;\n}\n.arap-position-arrows {\n display: flex;\n justify-content: space-between;\n gap: 6px;\n margin-top: 10px;\n}\n.arap-position-default {\n width: 100%;\n margin-top: 8px;\n}\n.arap-root .arap-btn[data-draggable=true] {\n touch-action: none;\n user-select: none;\n cursor: grab;\n}\n.arap-root .arap-btn[data-dragging=true] {\n cursor: grabbing;\n}\n.arap-root .arap-btn[data-corner$=left],\n.arap-root .arap-panel[data-corner$=left] {\n right: auto;\n left: max(16px, env(safe-area-inset-left));\n}\n.arap-root .arap-btn[data-corner$=right],\n.arap-root .arap-panel[data-corner$=right] {\n left: auto;\n right: max(16px, env(safe-area-inset-right));\n}\n.arap-root .arap-btn[data-corner^=top] {\n bottom: auto;\n top: max(16px, env(safe-area-inset-top));\n}\n.arap-root .arap-btn[data-corner^=bottom] {\n top: auto;\n bottom: max(16px, env(safe-area-inset-bottom));\n}\n.arap-root .arap-panel[data-corner^=top] {\n bottom: auto;\n top: max(88px, calc(env(safe-area-inset-top) + 72px));\n}\n.arap-root .arap-panel[data-corner^=bottom] {\n top: auto;\n bottom: max(88px, calc(env(safe-area-inset-bottom) + 72px));\n}\n.arap-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n border: 0;\n}\n.arap-root .arap-skip-actions {\n position: absolute;\n top: 12px;\n left: 20px;\n width: 44px;\n height: 44px;\n clip-path: inset(50%);\n overflow: hidden;\n pointer-events: none;\n}\n.arap-root .arap-skip-actions:focus-visible {\n right: 20px;\n width: auto;\n height: auto;\n min-height: 44px;\n clip-path: none;\n pointer-events: auto;\n z-index: 2;\n padding: 8px;\n border: 1px solid var(--arap-accent);\n border-radius: 8px;\n background: var(--arap-surface);\n color: var(--arap-accent);\n}\n@media (max-height: 480px) {\n .arap-root .arap-panel {\n top: max(16px, env(safe-area-inset-top)) !important;\n bottom: max(16px, env(safe-area-inset-bottom)) !important;\n max-height: calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;\n padding: 8px;\n }\n .arap-heading {\n padding-bottom: 8px;\n }\n .arap-heading h2 {\n font-size: 18px;\n }\n .arap-heading button {\n margin-top: 0;\n }\n .arap-description {\n display: none;\n }\n .arap-quick-actions {\n padding-top: 8px;\n margin-top: 0;\n }\n .arap-root .arap-reset-btn {\n min-height: 44px;\n }\n .arap-root .arap-btn[data-open=true] {\n visibility: hidden;\n }\n .arap-position-popover {\n max-height: calc(100dvh - 96px);\n }\n}\n.arap-statement {\n flex: none;\n padding-top: 10px;\n text-align: center;\n}\n.arap-statement-link {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n min-height: 44px;\n padding: 6px 12px;\n color: var(--arap-accent);\n text-decoration: underline;\n text-underline-offset: 4px;\n font-size: 14px;\n font-weight: 500;\n border-radius: 8px;\n}\n.arap-statement-link:hover {\n color: var(--arap-accent-hover);\n background: var(--arap-selected);\n}\n.arap-statement-link:focus-visible {\n outline: 3px solid var(--arap-accent);\n outline-offset: 2px;\n}\n.arap-credits {\n display: flex;\n flex: none;\n flex-direction: column;\n gap: 2px;\n padding-top: 8px;\n color: var(--arap-muted);\n text-align: center;\n font-size: 11px;\n line-height: 1.4;\n}\n.arap-credits a {\n color: var(--arap-accent);\n text-decoration: underline;\n text-underline-offset: 2px;\n}\n.arap-credits a:hover {\n color: var(--arap-accent-hover);\n}\n.arap-credits a:focus-visible {\n outline: 2px solid var(--arap-accent);\n outline-offset: 2px;\n}\n.arap-root .arap-btn[data-large-controls=true] {\n width: 64px;\n height: 64px;\n min-width: 48px;\n min-height: 48px;\n}\n.arap-root .arap-panel[data-large-controls=true] {\n width: min(440px, calc(100vw - 32px));\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-heading button {\n width: 48px;\n height: 48px;\n min-width: 48px;\n min-height: 48px;\n font-size: 32px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-btn-sm {\n width: 48px;\n height: 48px;\n min-width: 48px;\n min-height: 48px;\n font-size: 24px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-value {\n min-width: 64px;\n font-size: 16px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-segment {\n min-width: 48px;\n min-height: 48px;\n padding: 10px 14px;\n font-size: 15px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-toggle {\n width: 64px;\n height: 48px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-toggle::before {\n inset: 8px 0;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-toggle-knob {\n top: 12px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-toggle-active .arap-toggle-knob {\n transform: translateX(28px);\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-reset-btn {\n min-height: 52px;\n font-size: 16px;\n padding: 12px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-position-button,\n.arap-root .arap-panel[data-large-controls=true] .arap-position-default,\n.arap-root .arap-panel[data-large-controls=true] .arap-position-arrows button {\n min-width: 48px;\n min-height: 48px;\n font-size: 15px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-position-popover select {\n min-height: 48px;\n font-size: 15px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-statement-link {\n min-height: 48px;\n font-size: 15px;\n padding: 10px 16px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-skip-actions {\n min-width: 48px;\n min-height: 48px;\n}\n.arap-feature-card {\n display: flex;\n flex-direction: column;\n align-items: stretch;\n gap: 12px;\n}\n.arap-card-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 8px;\n}\n.arap-card-title {\n font-weight: 600;\n font-size: 15px;\n color: var(--arap-text);\n}\n.arap-card-desc {\n margin: 0;\n font-size: 13px;\n color: var(--arap-muted);\n line-height: 1.4;\n}\n.arap-status-badge {\n display: inline-flex;\n align-items: center;\n padding: 2px 8px;\n border-radius: 9999px;\n font-size: 11px;\n font-weight: 600;\n background: var(--arap-control);\n border: 1px solid var(--arap-border);\n color: var(--arap-muted);\n text-transform: uppercase;\n letter-spacing: 0.05em;\n}\n.arap-card-alert {\n display: flex;\n align-items: flex-start;\n gap: 8px;\n padding: 10px 12px;\n border-radius: 8px;\n font-size: 13px;\n line-height: 1.4;\n}\n.arap-alert-icon {\n flex: none;\n font-size: 16px;\n line-height: 1;\n}\n.arap-card-error {\n background: #fef2f2;\n border: 1px solid #fecaca;\n color: #991b1b;\n}\n.arap-card-unavailable {\n background: #f8fafc;\n border: 1px solid var(--arap-border);\n color: var(--arap-muted);\n}\n.arap-card-permission {\n background: #fffbeb;\n border: 1px solid #fde68a;\n color: #92400e;\n}\n.arap-permission-content {\n display: flex;\n flex-direction: column;\n gap: 6px;\n}\n.arap-permission-btn {\n align-self: flex-start;\n padding: 4px 10px;\n border: 1px solid #d97706;\n border-radius: 6px;\n background: #f59e0b;\n color: #fff;\n font-size: 12px;\n font-weight: 600;\n cursor: pointer;\n}\n.arap-permission-btn:hover {\n background: #d97706;\n}\n.arap-card-content {\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n.arap-choice-group {\n display: flex;\n flex-direction: column;\n gap: 6px;\n width: 100%;\n}\n.arap-choice-group-title {\n font-size: 12px;\n font-weight: 600;\n color: var(--arap-muted);\n text-transform: uppercase;\n letter-spacing: 0.05em;\n}\n.arap-choice-badge {\n font-size: 11px;\n padding: 1px 5px;\n border-radius: 4px;\n background: var(--arap-divider);\n color: var(--arap-muted);\n}\n.arap-segment-active .arap-choice-badge {\n background: rgba(255, 255, 255, 0.25);\n color: #fff;\n}\n.arap-stepper-control-wrapper {\n display: flex;\n flex-direction: column;\n gap: 8px;\n width: 100%;\n}\n.arap-slider-container {\n display: flex;\n align-items: center;\n padding: 4px 0;\n}\n.arap-slider {\n width: 100%;\n accent-color: var(--arap-accent);\n cursor: pointer;\n}\n.arap-search-count {\n padding: 6px 0;\n font-size: 12px;\n font-weight: 500;\n color: var(--arap-muted);\n}\n.arap-empty-state {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n text-align: center;\n padding: 24px 16px;\n gap: 8px;\n}\n.arap-empty-icon {\n font-size: 32px;\n}\n.arap-empty-title {\n margin: 0;\n font-size: 16px;\n font-weight: 600;\n color: var(--arap-text);\n}\n.arap-empty-desc {\n margin: 0;\n font-size: 13px;\n color: var(--arap-muted);\n}\n.arap-empty-btn,\n.arap-retry-btn {\n margin-top: 6px;\n padding: 8px 16px;\n border: 1px solid var(--arap-border);\n border-radius: 8px;\n background: var(--arap-control);\n font-weight: 500;\n font-size: 13px;\n color: var(--arap-text);\n cursor: pointer;\n}\n.arap-empty-btn:hover,\n.arap-retry-btn:hover {\n background: var(--arap-selected);\n border-color: var(--arap-accent);\n color: var(--arap-accent);\n}\n.arap-profile-card {\n display: flex;\n flex-direction: column;\n gap: 12px;\n padding: 16px;\n border: 1px solid var(--arap-border);\n border-radius: 12px;\n background: var(--arap-surface);\n transition: border-color 0.15s, box-shadow 0.15s;\n}\n.arap-profile-card-active {\n border-color: var(--arap-accent);\n background: var(--arap-selected);\n box-shadow: 0 0 0 1px var(--arap-accent);\n}\n.arap-profile-header {\n display: flex;\n flex-direction: column;\n gap: 4px;\n}\n.arap-profile-title-row {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 8px;\n}\n.arap-profile-title {\n margin: 0;\n font-size: 15px;\n font-weight: 600;\n color: var(--arap-text);\n}\n.arap-profile-active-badge {\n font-size: 11px;\n font-weight: 600;\n color: var(--arap-accent);\n background: #dbeafe;\n padding: 2px 8px;\n border-radius: 9999px;\n}\n.arap-profile-desc {\n margin: 0;\n font-size: 13px;\n color: var(--arap-muted);\n line-height: 1.4;\n}\n.arap-profile-affected {\n display: flex;\n flex-direction: column;\n gap: 6px;\n}\n.arap-profile-affected-label {\n font-size: 11px;\n font-weight: 600;\n color: var(--arap-muted);\n text-transform: uppercase;\n letter-spacing: 0.05em;\n}\n.arap-profile-chips {\n display: flex;\n flex-wrap: wrap;\n gap: 6px;\n}\n.arap-profile-chip {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n padding: 3px 8px;\n border-radius: 6px;\n background: var(--arap-control);\n border: 1px solid var(--arap-divider);\n font-size: 12px;\n color: var(--arap-text);\n}\n.arap-profile-actions {\n display: flex;\n gap: 8px;\n margin-top: 4px;\n}\n.arap-profile-apply-btn {\n flex: 1;\n padding: 8px 14px;\n border: 1px solid var(--arap-accent);\n border-radius: 8px;\n background: var(--arap-accent);\n color: #fff;\n font-size: 13px;\n font-weight: 600;\n cursor: pointer;\n text-align: center;\n}\n.arap-profile-apply-btn:hover {\n background: var(--arap-accent-hover);\n}\n.arap-profile-revert-btn {\n flex: 1;\n padding: 8px 14px;\n border: 1px solid var(--arap-border);\n border-radius: 8px;\n background: var(--arap-surface);\n color: var(--arap-muted);\n font-size: 13px;\n font-weight: 600;\n cursor: pointer;\n text-align: center;\n}\n.arap-profile-revert-btn:hover {\n background: var(--arap-control);\n color: var(--arap-text);\n border-color: var(--arap-text);\n}\n.arap-notice {\n grid-column: 1 / -1;\n margin-top: 6px;\n padding: 8px 12px;\n border-radius: 8px;\n font-size: 12px;\n line-height: 1.45;\n background: #fefce8;\n border: 1px solid #fef08a;\n color: #854d0e;\n}\n.arap-notice-warning {\n background: #fffbeb;\n border-color: #fde68a;\n color: #92400e;\n}\n');
102
116
 
103
117
  // src/core/AccessibilityPlugin.tsx
104
118
  var import_react4 = require("react");
@@ -310,6 +324,19 @@ var oneOf = (...values) => (v) => values.includes(v);
310
324
  var TEXT_SCALE_STEPS = [1, 1.125, 1.25, 1.5, 2];
311
325
  var LINE_HEIGHT_STEPS = [100, 150, 175, 200];
312
326
  var LINE_HEIGHT_RATIOS = [1, 1.5, 1.75, 2];
327
+ var FONT_FAMILY_PRESETS = [
328
+ "default",
329
+ "legible",
330
+ "dyslexia-option"
331
+ ];
332
+ var CONTRAST_MODES = [
333
+ "off",
334
+ "original",
335
+ "light",
336
+ "dark",
337
+ "high",
338
+ "invert"
339
+ ];
313
340
  var builtins = Object.assign(/* @__PURE__ */ Object.create(null), {
314
341
  fontSize: { defaultValue: 100, validate: numberIn(50, 200) },
315
342
  fontScale: { defaultValue: 1, validate: numberIn(0.5, 2) },
@@ -340,17 +367,38 @@ var builtins = Object.assign(/* @__PURE__ */ Object.create(null), {
340
367
  1,
341
368
  2,
342
369
  3,
370
+ "off",
371
+ "original",
372
+ "light",
373
+ "dark",
374
+ "high",
375
+ "invert",
343
376
  "reduced",
344
377
  "yellow-on-black",
345
378
  "white-on-black",
346
- "blue-on-yellow"
379
+ "blue-on-yellow",
380
+ "black-on-white"
347
381
  )
348
382
  },
383
+ contrastMode: {
384
+ defaultValue: "off",
385
+ validate: oneOf("off", "original", "light", "dark", "high", "invert")
386
+ },
349
387
  saturation: { defaultValue: 0, validate: oneOf(0, 1, 2) },
350
388
  textAlign: {
351
389
  defaultValue: "default",
352
390
  validate: oneOf("default", "left", "center", "right", "justify")
353
391
  },
392
+ fontFamily: {
393
+ defaultValue: "default",
394
+ validate: oneOf(
395
+ "default",
396
+ "original",
397
+ "legible",
398
+ "dyslexia-option",
399
+ "dyslexia"
400
+ )
401
+ },
354
402
  linkHighlight: {
355
403
  defaultValue: false,
356
404
  validate: oneOf(
@@ -393,22 +441,146 @@ var import_react3 = require("react");
393
441
  var EXCLUDED = "[data-arap-ui], [data-arap-ui] *, script, style, link, meta, noscript, template";
394
442
  var MAX_HOST_ELEMENTS = 4e3;
395
443
  var cursor = `url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M4 2v32l9-9 7 13 6-3-7-12h14z' fill='black' stroke='white' stroke-width='2'/%3E%3C/svg%3E") 4 2, auto`;
444
+ function isForcedColorsActive() {
445
+ if (typeof window === "undefined" || !window.matchMedia) return false;
446
+ try {
447
+ return window.matchMedia("(forced-colors: active)").matches;
448
+ } catch {
449
+ return false;
450
+ }
451
+ }
452
+ function subscribeForcedColors(callback) {
453
+ if (typeof window === "undefined" || !window.matchMedia) return () => {
454
+ };
455
+ try {
456
+ const mql = window.matchMedia("(forced-colors: active)");
457
+ mql.addEventListener("change", callback);
458
+ return () => mql.removeEventListener("change", callback);
459
+ } catch {
460
+ return () => {
461
+ };
462
+ }
463
+ }
464
+ var CONTRAST_PALETTES = {
465
+ light: {
466
+ text: "#0f172a",
467
+ background: "#ffffff",
468
+ border: "#94a3b8",
469
+ link: "#0284c7"
470
+ },
471
+ dark: {
472
+ text: "#f8fafc",
473
+ background: "#0f172a",
474
+ border: "#475569",
475
+ link: "#38bdf8"
476
+ },
477
+ high: {
478
+ text: "#ffffff",
479
+ background: "#000000",
480
+ border: "#ffffff",
481
+ link: "#93c5fd"
482
+ },
483
+ "yellow-on-black": {
484
+ text: "#ffff00",
485
+ background: "#000000",
486
+ border: "#ffff00",
487
+ link: "#00ffff"
488
+ },
489
+ "white-on-black": {
490
+ text: "#ffffff",
491
+ background: "#000000",
492
+ border: "#ffffff",
493
+ link: "#ffff00"
494
+ },
495
+ "blue-on-yellow": {
496
+ text: "#005a9c",
497
+ background: "#ffd740",
498
+ border: "#005a9c",
499
+ link: "#002b49"
500
+ },
501
+ "black-on-white": {
502
+ text: "#000000",
503
+ background: "#ffffff",
504
+ border: "#000000",
505
+ link: "#0000ee"
506
+ }
507
+ };
396
508
  var palette = {
397
509
  "yellow-on-black": ["#ffff00", "#000000"],
398
510
  "white-on-black": ["#ffffff", "#000000"],
399
511
  "blue-on-yellow": ["#005a9c", "#ffd740"],
400
- "black-on-white": ["#000000", "#ffffff"]
512
+ "black-on-white": ["#000000", "#ffffff"],
513
+ light: ["#0f172a", "#ffffff"],
514
+ dark: ["#f8fafc", "#0f172a"],
515
+ high: ["#ffffff", "#000000"]
401
516
  };
402
517
  function composeFilter(values) {
518
+ if (isForcedColorsActive()) return "";
403
519
  const contrast = values.contrast === "reduced" ? 0.5 : [1, 1.25, 1.5, 2][Number(values.contrast)] ?? 1;
520
+ const isInvert = Boolean(values.invertColors) || values.contrast === "invert" || values.contrastMode === "invert";
404
521
  return [
405
522
  contrast !== 1 && `contrast(${contrast})`,
406
523
  values.saturation === 1 && "saturate(0.2)",
407
524
  values.saturation === 2 && "saturate(2)",
408
- values.invertColors && "invert(1)",
525
+ isInvert && "invert(1)",
409
526
  values.grayscale && "grayscale(1)"
410
527
  ].filter(Boolean).join(" ");
411
528
  }
529
+ var CONTRAST_PROTECTED_SELECTOR = [
530
+ "img",
531
+ "picture",
532
+ "picture *",
533
+ "video",
534
+ "canvas",
535
+ "svg",
536
+ "svg *",
537
+ "[role='img']",
538
+ "[role='img'] *",
539
+ "[role='graphics-document']",
540
+ "[role='graphics-document'] *",
541
+ "[role='graphics-symbol']",
542
+ "[role='graphics-symbol'] *",
543
+ "[data-icon]",
544
+ "[data-icon] *",
545
+ 'i[class*="icon"]',
546
+ 'span[class*="icon"]',
547
+ 'i[class*="fa-"]',
548
+ 'span[class*="fa-"]',
549
+ 'i[class*="material-symbols"]',
550
+ 'span[class*="material-symbols"]',
551
+ 'i[class*="lucide"]',
552
+ 'span[class*="lucide"]',
553
+ '[aria-invalid="true"]',
554
+ '[aria-invalid="true"] *',
555
+ ":invalid",
556
+ ".is-invalid",
557
+ ".invalid-feedback",
558
+ ":disabled",
559
+ "[aria-disabled='true']",
560
+ "[disabled]",
561
+ "[data-arap-ignore]",
562
+ "[data-arap-ignore] *",
563
+ "[data-arap-exempt]",
564
+ "[data-arap-exempt] *",
565
+ "[data-arap-ui]",
566
+ "[data-arap-ui] *",
567
+ ".arap-root",
568
+ ".arap-root *"
569
+ ].join(", ");
570
+ function isProtectedFromContrast(element) {
571
+ try {
572
+ if (element.matches(EXCLUDED)) return true;
573
+ if (element.matches(CONTRAST_PROTECTED_SELECTOR)) return true;
574
+ if (element.closest(
575
+ "svg, [role='img'], [data-icon], [aria-invalid='true'], :disabled, [aria-disabled='true'], [data-arap-ignore], [data-arap-exempt], [data-arap-ui], .arap-root"
576
+ )) {
577
+ return true;
578
+ }
579
+ } catch {
580
+ return false;
581
+ }
582
+ return false;
583
+ }
412
584
  var TEXT_SCALE_PROTECTED_SELECTOR = [
413
585
  "input",
414
586
  "textarea",
@@ -556,6 +728,108 @@ function isProtectedFromTextSpacing(element) {
556
728
  }
557
729
  return false;
558
730
  }
731
+ var TEXT_ALIGN_BLOCK_SELECTOR = [
732
+ "p",
733
+ "h1",
734
+ "h2",
735
+ "h3",
736
+ "h4",
737
+ "h5",
738
+ "h6",
739
+ "li",
740
+ "blockquote",
741
+ "dt",
742
+ "dd",
743
+ "figcaption",
744
+ '[role="paragraph"]',
745
+ '[role="heading"]'
746
+ ].join(", ");
747
+ function isProtectedFromTextAlign(element) {
748
+ try {
749
+ if (element.matches(EXCLUDED)) return true;
750
+ if (element.matches(TEXT_SPACING_EXCLUDED_SELECTOR)) return true;
751
+ if (element.closest(
752
+ "pre, code, kbd, samp, var, button, input, select, textarea, [role='button'], table, [role='table'], [role='grid'], [data-arap-ignore], [data-arap-exempt], [data-arap-ui], .arap-root"
753
+ )) {
754
+ return true;
755
+ }
756
+ } catch {
757
+ return false;
758
+ }
759
+ return false;
760
+ }
761
+ var LEGIBLE_FONT_STACK = [
762
+ "system-ui",
763
+ "-apple-system",
764
+ "BlinkMacSystemFont",
765
+ '"Segoe UI"',
766
+ "Roboto",
767
+ '"Helvetica Neue"',
768
+ "Arial",
769
+ '"Noto Sans Sinhala"',
770
+ '"Iskoola Pota"',
771
+ '"Noto Sans Tamil"',
772
+ '"Latha"',
773
+ '"Nirmala UI"',
774
+ "sans-serif"
775
+ ].join(", ");
776
+ var DYSLEXIA_FONT_STACK = [
777
+ "OpenDyslexic",
778
+ '"Comic Sans MS"',
779
+ '"Trebuchet MS"',
780
+ '"Arial Rounded MT Bold"',
781
+ '"Noto Sans Sinhala"',
782
+ '"Iskoola Pota"',
783
+ '"Noto Sans Tamil"',
784
+ '"Latha"',
785
+ "sans-serif"
786
+ ].join(", ");
787
+ var FONT_FAMILY_PROTECTED_SELECTOR = [
788
+ "pre",
789
+ "pre *",
790
+ "code",
791
+ "code *",
792
+ "kbd",
793
+ "kbd *",
794
+ "samp",
795
+ "samp *",
796
+ "var",
797
+ "var *",
798
+ "svg",
799
+ "svg *",
800
+ "[data-icon]",
801
+ "[data-icon] *",
802
+ 'i[class*="icon"]',
803
+ 'span[class*="icon"]',
804
+ 'i[class*="fa-"]',
805
+ 'span[class*="fa-"]',
806
+ 'i[class*="material-symbols"]',
807
+ 'span[class*="material-symbols"]',
808
+ 'i[class*="lucide"]',
809
+ 'span[class*="lucide"]',
810
+ "[data-arap-ignore]",
811
+ "[data-arap-ignore] *",
812
+ "[data-arap-exempt]",
813
+ "[data-arap-exempt] *",
814
+ "[data-arap-ui]",
815
+ "[data-arap-ui] *",
816
+ ".arap-root",
817
+ ".arap-root *"
818
+ ].join(", ");
819
+ function isProtectedFromFontFamily(element) {
820
+ try {
821
+ if (element.matches(EXCLUDED)) return true;
822
+ if (element.matches(FONT_FAMILY_PROTECTED_SELECTOR)) return true;
823
+ if (element.closest(
824
+ "pre, code, kbd, samp, var, svg, [data-icon], [data-arap-ignore], [data-arap-exempt], [data-arap-ui], .arap-root"
825
+ )) {
826
+ return true;
827
+ }
828
+ } catch {
829
+ return false;
830
+ }
831
+ return false;
832
+ }
559
833
  var ARABIC_SCRIPT_REGEX = /[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]/;
560
834
  var INDIC_SCRIPT_REGEX = /[\u0900-\u0DFF]/;
561
835
  var CURSIVE_LANG_REGEX = /^(ar|fa|ur|ug|dv|ps|ku)($|-)/i;
@@ -747,9 +1021,68 @@ function applyPage(values) {
747
1021
  }
748
1022
  }
749
1023
  }
1024
+ const textAlignVal = values.textAlign ? String(values.textAlign) : "default";
1025
+ if (textAlignVal !== "default" && textAlignVal !== "original") {
1026
+ for (const el of elements) {
1027
+ if (isProtectedFromTextAlign(el)) continue;
1028
+ if (el.matches(TEXT_ALIGN_BLOCK_SELECTOR)) {
1029
+ set(el, "text-align", textAlignVal);
1030
+ }
1031
+ }
1032
+ }
1033
+ const fontFamilyVal = values.fontFamily ? String(values.fontFamily) : "default";
1034
+ if (fontFamilyVal !== "default" && fontFamilyVal !== "original") {
1035
+ const targetStack = fontFamilyVal === "dyslexia-option" || fontFamilyVal === "dyslexia" ? DYSLEXIA_FONT_STACK : LEGIBLE_FONT_STACK;
1036
+ for (const el of elements) {
1037
+ if (isProtectedFromFontFamily(el)) {
1038
+ if (el.matches("pre, code, kbd, samp, var")) {
1039
+ const previous = el.style.getPropertyValue("font-family");
1040
+ if (!previous) {
1041
+ set(
1042
+ el,
1043
+ "font-family",
1044
+ 'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace'
1045
+ );
1046
+ }
1047
+ }
1048
+ continue;
1049
+ }
1050
+ set(el, "font-family", targetStack);
1051
+ }
1052
+ }
1053
+ const isInvert = Boolean(values.invertColors) || values.contrast === "invert" || values.contrastMode === "invert";
1054
+ if (isInvert && !isForcedColorsActive()) {
1055
+ const mediaElements = Array.from(
1056
+ document.body.querySelectorAll(
1057
+ "img, video, canvas, picture, [role='img']"
1058
+ )
1059
+ ).filter((el) => !el.closest("[data-arap-ui]"));
1060
+ for (const mediaEl of mediaElements) {
1061
+ set(mediaEl, "filter", "invert(1)");
1062
+ }
1063
+ }
1064
+ const activeContrastKey = values.contrastMode && values.contrastMode !== "off" && values.contrastMode !== "original" ? String(values.contrastMode) : values.contrast !== void 0 && values.contrast !== 0 && values.contrast !== "0" && values.contrast !== "off" && values.contrast !== "original" ? String(values.contrast) : null;
1065
+ const activePalette = activeContrastKey && !isForcedColorsActive() ? CONTRAST_PALETTES[activeContrastKey] : null;
1066
+ if (activePalette) {
1067
+ for (const el of elements) {
1068
+ if (isProtectedFromContrast(el)) continue;
1069
+ set(el, "color", activePalette.text);
1070
+ if (el.matches("a[href]") && activePalette.link) {
1071
+ set(el, "color", activePalette.link);
1072
+ }
1073
+ if (el.matches(
1074
+ "main, section, article, div, p, h1, h2, h3, h4, h5, h6, ul, ol, li, table, thead, tbody, tr, th, td, button, input, select, textarea, form, blockquote, header, footer, aside, nav"
1075
+ )) {
1076
+ set(el, "background-color", activePalette.background);
1077
+ }
1078
+ if (activePalette.border && el.matches(
1079
+ "button, input, select, textarea, [role='button'], fieldset, hr, table, th, td"
1080
+ )) {
1081
+ set(el, "border-color", activePalette.border);
1082
+ }
1083
+ }
1084
+ }
750
1085
  for (const el of elements) {
751
- if (values.textAlign && values.textAlign !== "default")
752
- set(el, "text-align", String(values.textAlign));
753
1086
  if (values.bigCursor) set(el, "cursor", cursor);
754
1087
  if (values.hideImages) {
755
1088
  if (el.matches("img, picture")) set(el, "visibility", "hidden");
@@ -760,7 +1093,7 @@ function applyPage(values) {
760
1093
  ))
761
1094
  set(el, "visibility", "hidden");
762
1095
  const colors = palette[String(values.contrast)];
763
- if (colors) {
1096
+ if (colors && !activePalette && !isForcedColorsActive()) {
764
1097
  set(el, "color", colors[0]);
765
1098
  set(el, "background-color", colors[1]);
766
1099
  }
@@ -1944,6 +2277,10 @@ var drawings = {
1944
2277
  /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
1945
2278
  /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M12 3a9 9 0 0 1 0 18Z", fill: "currentColor", stroke: "none" })
1946
2279
  ] }),
2280
+ contrastMode: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
2281
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
2282
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M12 3a9 9 0 0 1 0 18Z", fill: "currentColor", stroke: "none" })
2283
+ ] }),
1947
2284
  saturation: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
1948
2285
  /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M12 3c-2 4-7 8-7 12a7 7 0 0 0 14 0c0-4-5-8-7-12Z" }),
1949
2286
  /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M8 15a4 4 0 0 0 4 4" })
@@ -1959,6 +2296,7 @@ var drawings = {
1959
2296
  ] }),
1960
2297
  linkHighlight: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_jsx_runtime6.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "m10 14 4-4M8 16l-1 1a4 4 0 0 1-6-6l4-4a4 4 0 0 1 6 0M16 8l1-1a4 4 0 0 1 6 6l-4 4a4 4 0 0 1-6 0" }) }),
1961
2298
  textAlign: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_jsx_runtime6.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M3 5h18M3 10h12M3 15h18M3 20h12" }) }),
2299
+ fontFamily: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_jsx_runtime6.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M4 7V4h16v3M9 20h6M12 4v16" }) }),
1962
2300
  hideImages: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
1963
2301
  /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("rect", { x: "3", y: "4", width: "18", height: "16", rx: "2" }),
1964
2302
  /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("circle", { cx: "8", cy: "9", r: "1" }),
@@ -2520,11 +2858,16 @@ function ParagraphSpacingController({
2520
2858
  }
2521
2859
 
2522
2860
  // src/features/ContrastController.tsx
2861
+ var import_react11 = require("react");
2523
2862
  var import_jsx_runtime13 = require("react/jsx-runtime");
2524
2863
  var FEATURE_KEY7 = "contrast";
2525
2864
  var DEFAULT_VALUE7 = 0;
2526
2865
  var LEVELS = [
2527
2866
  { label: "Off", value: 0 },
2867
+ { label: "Light", value: "light" },
2868
+ { label: "Dark", value: "dark" },
2869
+ { label: "High Contrast", value: "high" },
2870
+ { label: "Invert", value: "invert" },
2528
2871
  { label: "Reduced", value: "reduced" },
2529
2872
  { label: "Low", value: 1 },
2530
2873
  { label: "High", value: 2 },
@@ -2538,32 +2881,89 @@ function ContrastController() {
2538
2881
  FEATURE_KEY7,
2539
2882
  DEFAULT_VALUE7
2540
2883
  );
2884
+ const forcedColors = (0, import_react11.useSyncExternalStore)(
2885
+ subscribeForcedColors,
2886
+ isForcedColorsActive,
2887
+ () => false
2888
+ );
2541
2889
  return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: "arap-feature", role: "group", "aria-label": "Contrast", children: [
2542
2890
  /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("span", { className: "arap-label", children: [
2543
2891
  /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(FeatureIcon, { name: FEATURE_KEY7 }),
2544
2892
  /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { children: "Contrast" })
2545
2893
  ] }),
2546
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: "arap-segmented", children: LEVELS.map((level) => /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
2547
- "button",
2548
- {
2549
- className: `arap-segment ${value === level.value ? "arap-segment-active" : ""}`,
2550
- onClick: () => setValue(level.value),
2551
- "aria-pressed": value === level.value,
2552
- type: "button",
2553
- children: [
2554
- value === level.value && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: "arap-check", "aria-hidden": "true", children: "\u2713" }),
2555
- level.label
2556
- ]
2557
- },
2558
- level.value
2559
- )) })
2894
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: "arap-segmented", children: LEVELS.map((level) => {
2895
+ const isActive = value === level.value || level.value === 0 && (value === "off" || value === "original");
2896
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
2897
+ "button",
2898
+ {
2899
+ className: `arap-segment ${isActive ? "arap-segment-active" : ""}`,
2900
+ onClick: () => setValue(level.value),
2901
+ "aria-pressed": isActive,
2902
+ type: "button",
2903
+ children: [
2904
+ isActive && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: "arap-check", "aria-hidden": "true", children: "\u2713" }),
2905
+ level.label
2906
+ ]
2907
+ },
2908
+ String(level.value)
2909
+ );
2910
+ }) }),
2911
+ forcedColors && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: "arap-notice", role: "status", "aria-live": "polite", children: "Operating system high contrast (forced colors) is active." })
2560
2912
  ] });
2561
2913
  }
2562
2914
 
2563
- // src/features/SaturationController.tsx
2915
+ // src/features/ContrastModeController.tsx
2916
+ var import_react12 = require("react");
2564
2917
  var import_jsx_runtime14 = require("react/jsx-runtime");
2565
- var FEATURE_KEY8 = "saturation";
2566
- var DEFAULT_VALUE8 = 0;
2918
+ var FEATURE_KEY8 = "contrastMode";
2919
+ var DEFAULT_VALUE8 = "off";
2920
+ var OPTIONS = [
2921
+ { label: "Original", value: "off" },
2922
+ { label: "Light", value: "light" },
2923
+ { label: "Dark", value: "dark" },
2924
+ { label: "High", value: "high" },
2925
+ { label: "Invert", value: "invert" }
2926
+ ];
2927
+ function ContrastModeController() {
2928
+ const { value, setValue } = useAccessibility(
2929
+ FEATURE_KEY8,
2930
+ DEFAULT_VALUE8
2931
+ );
2932
+ const forcedColors = (0, import_react12.useSyncExternalStore)(
2933
+ subscribeForcedColors,
2934
+ isForcedColorsActive,
2935
+ () => false
2936
+ );
2937
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "arap-feature", role: "group", "aria-label": "Contrast Mode", children: [
2938
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("span", { className: "arap-label", children: [
2939
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(FeatureIcon, { name: FEATURE_KEY8 }),
2940
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { children: "Contrast Mode" })
2941
+ ] }),
2942
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "arap-segmented", children: OPTIONS.map((option) => {
2943
+ const isActive = value === option.value || option.value === "off" && (value === "original" || !value);
2944
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
2945
+ "button",
2946
+ {
2947
+ className: `arap-segment ${isActive ? "arap-segment-active" : ""}`,
2948
+ onClick: () => setValue(option.value),
2949
+ "aria-pressed": isActive,
2950
+ type: "button",
2951
+ children: [
2952
+ isActive && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "arap-check", "aria-hidden": "true", children: "\u2713" }),
2953
+ option.label
2954
+ ]
2955
+ },
2956
+ option.value
2957
+ );
2958
+ }) }),
2959
+ forcedColors && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "arap-notice", role: "status", "aria-live": "polite", children: "Operating system high contrast (forced colors) is active." })
2960
+ ] });
2961
+ }
2962
+
2963
+ // src/features/SaturationController.tsx
2964
+ var import_jsx_runtime15 = require("react/jsx-runtime");
2965
+ var FEATURE_KEY9 = "saturation";
2966
+ var DEFAULT_VALUE9 = 0;
2567
2967
  var LEVELS2 = [
2568
2968
  { label: "Off", value: 0 },
2569
2969
  { label: "Low", value: 1 },
@@ -2571,15 +2971,15 @@ var LEVELS2 = [
2571
2971
  ];
2572
2972
  function SaturationController() {
2573
2973
  const { value, setValue } = useAccessibility(
2574
- FEATURE_KEY8,
2575
- DEFAULT_VALUE8
2974
+ FEATURE_KEY9,
2975
+ DEFAULT_VALUE9
2576
2976
  );
2577
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "arap-feature", role: "group", "aria-label": "Saturation", children: [
2578
- /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("span", { className: "arap-label", children: [
2579
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(FeatureIcon, { name: FEATURE_KEY8 }),
2580
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { children: "Saturation" })
2977
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: "arap-feature", role: "group", "aria-label": "Saturation", children: [
2978
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("span", { className: "arap-label", children: [
2979
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(FeatureIcon, { name: FEATURE_KEY9 }),
2980
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { children: "Saturation" })
2581
2981
  ] }),
2582
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "arap-segmented", children: LEVELS2.map((level) => /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
2982
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: "arap-segmented", children: LEVELS2.map((level) => /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
2583
2983
  "button",
2584
2984
  {
2585
2985
  className: `arap-segment ${value === level.value ? "arap-segment-active" : ""}`,
@@ -2587,7 +2987,7 @@ function SaturationController() {
2587
2987
  "aria-pressed": value === level.value,
2588
2988
  type: "button",
2589
2989
  children: [
2590
- value === level.value && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "arap-check", "aria-hidden": "true", children: "\u2713" }),
2990
+ value === level.value && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "arap-check", "aria-hidden": "true", children: "\u2713" }),
2591
2991
  level.label
2592
2992
  ]
2593
2993
  },
@@ -2597,20 +2997,20 @@ function SaturationController() {
2597
2997
  }
2598
2998
 
2599
2999
  // src/features/InvertColorsController.tsx
2600
- var import_jsx_runtime15 = require("react/jsx-runtime");
2601
- var FEATURE_KEY9 = "invertColors";
2602
- var DEFAULT_VALUE9 = false;
3000
+ var import_jsx_runtime16 = require("react/jsx-runtime");
3001
+ var FEATURE_KEY10 = "invertColors";
3002
+ var DEFAULT_VALUE10 = false;
2603
3003
  function InvertColorsController() {
2604
3004
  const { value, setValue } = useAccessibility(
2605
- FEATURE_KEY9,
2606
- DEFAULT_VALUE9
3005
+ FEATURE_KEY10,
3006
+ DEFAULT_VALUE10
2607
3007
  );
2608
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: "arap-feature", role: "group", "aria-label": "Invert Colors", children: [
2609
- /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("span", { className: "arap-label", children: [
2610
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(FeatureIcon, { name: FEATURE_KEY9 }),
2611
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { children: "Invert Colors" })
3008
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "arap-feature", role: "group", "aria-label": "Invert Colors", children: [
3009
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("span", { className: "arap-label", children: [
3010
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(FeatureIcon, { name: FEATURE_KEY10 }),
3011
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { children: "Invert Colors" })
2612
3012
  ] }),
2613
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
3013
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
2614
3014
  "button",
2615
3015
  {
2616
3016
  className: `arap-toggle ${value ? "arap-toggle-active" : ""}`,
@@ -2618,27 +3018,27 @@ function InvertColorsController() {
2618
3018
  "aria-label": "Invert Colors",
2619
3019
  "aria-pressed": value,
2620
3020
  type: "button",
2621
- children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
3021
+ children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
2622
3022
  }
2623
3023
  )
2624
3024
  ] });
2625
3025
  }
2626
3026
 
2627
3027
  // src/features/GrayscaleController.tsx
2628
- var import_jsx_runtime16 = require("react/jsx-runtime");
2629
- var FEATURE_KEY10 = "grayscale";
2630
- var DEFAULT_VALUE10 = false;
3028
+ var import_jsx_runtime17 = require("react/jsx-runtime");
3029
+ var FEATURE_KEY11 = "grayscale";
3030
+ var DEFAULT_VALUE11 = false;
2631
3031
  function GrayscaleController() {
2632
3032
  const { value, setValue } = useAccessibility(
2633
- FEATURE_KEY10,
2634
- DEFAULT_VALUE10
3033
+ FEATURE_KEY11,
3034
+ DEFAULT_VALUE11
2635
3035
  );
2636
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "arap-feature", role: "group", "aria-label": "Grayscale", children: [
2637
- /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("span", { className: "arap-label", children: [
2638
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(FeatureIcon, { name: FEATURE_KEY10 }),
2639
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { children: "Grayscale" })
3036
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "arap-feature", role: "group", "aria-label": "Grayscale", children: [
3037
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("span", { className: "arap-label", children: [
3038
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(FeatureIcon, { name: FEATURE_KEY11 }),
3039
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { children: "Grayscale" })
2640
3040
  ] }),
2641
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
3041
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
2642
3042
  "button",
2643
3043
  {
2644
3044
  className: `arap-toggle ${value ? "arap-toggle-active" : ""}`,
@@ -2646,27 +3046,27 @@ function GrayscaleController() {
2646
3046
  "aria-label": "Grayscale",
2647
3047
  "aria-pressed": value,
2648
3048
  type: "button",
2649
- children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
3049
+ children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
2650
3050
  }
2651
3051
  )
2652
3052
  ] });
2653
3053
  }
2654
3054
 
2655
3055
  // src/features/LinkHighlightController.tsx
2656
- var import_jsx_runtime17 = require("react/jsx-runtime");
2657
- var FEATURE_KEY11 = "linkHighlight";
2658
- var DEFAULT_VALUE11 = false;
3056
+ var import_jsx_runtime18 = require("react/jsx-runtime");
3057
+ var FEATURE_KEY12 = "linkHighlight";
3058
+ var DEFAULT_VALUE12 = false;
2659
3059
  function LinkHighlightController() {
2660
3060
  const { value, setValue } = useAccessibility(
2661
- FEATURE_KEY11,
2662
- DEFAULT_VALUE11
3061
+ FEATURE_KEY12,
3062
+ DEFAULT_VALUE12
2663
3063
  );
2664
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "arap-feature", role: "group", "aria-label": "Link Highlight", children: [
2665
- /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("span", { className: "arap-label", children: [
2666
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(FeatureIcon, { name: FEATURE_KEY11 }),
2667
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { children: "Link Highlight" })
3064
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "arap-feature", role: "group", "aria-label": "Link Highlight", children: [
3065
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("span", { className: "arap-label", children: [
3066
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(FeatureIcon, { name: FEATURE_KEY12 }),
3067
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { children: "Link Highlight" })
2668
3068
  ] }),
2669
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
3069
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
2670
3070
  "button",
2671
3071
  {
2672
3072
  className: `arap-toggle ${value ? "arap-toggle-active" : ""}`,
@@ -2674,10 +3074,10 @@ function LinkHighlightController() {
2674
3074
  "aria-label": "Link Highlight",
2675
3075
  "aria-pressed": !!value,
2676
3076
  type: "button",
2677
- children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
3077
+ children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
2678
3078
  }
2679
3079
  ),
2680
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "arap-segmented", children: ["yellow-on-black", "blue-on-yellow", "black-on-white"].map((mode) => /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
3080
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "arap-segmented", children: ["yellow-on-black", "blue-on-yellow", "black-on-white"].map((mode) => /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
2681
3081
  "button",
2682
3082
  {
2683
3083
  type: "button",
@@ -2685,7 +3085,7 @@ function LinkHighlightController() {
2685
3085
  "aria-pressed": value === mode,
2686
3086
  onClick: () => setValue(mode),
2687
3087
  children: [
2688
- value === mode && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "arap-check", "aria-hidden": "true", children: "\u2713" }),
3088
+ value === mode && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "arap-check", "aria-hidden": "true", children: "\u2713" }),
2689
3089
  mode.split("-").join(" ")
2690
3090
  ]
2691
3091
  },
@@ -2695,21 +3095,21 @@ function LinkHighlightController() {
2695
3095
  }
2696
3096
 
2697
3097
  // src/features/TextAlignController.tsx
2698
- var import_jsx_runtime18 = require("react/jsx-runtime");
2699
- var FEATURE_KEY12 = "textAlign";
2700
- var DEFAULT_VALUE12 = "default";
2701
- var OPTIONS = ["default", "left", "center", "right", "justify"];
3098
+ var import_jsx_runtime19 = require("react/jsx-runtime");
3099
+ var FEATURE_KEY13 = "textAlign";
3100
+ var DEFAULT_VALUE13 = "default";
3101
+ var OPTIONS2 = ["default", "left", "center", "right", "justify"];
2702
3102
  function TextAlignController() {
2703
3103
  const { value, setValue } = useAccessibility(
2704
- FEATURE_KEY12,
2705
- DEFAULT_VALUE12
3104
+ FEATURE_KEY13,
3105
+ DEFAULT_VALUE13
2706
3106
  );
2707
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "arap-feature", role: "group", "aria-label": "Text Alignment", children: [
2708
- /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("span", { className: "arap-label", children: [
2709
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(FeatureIcon, { name: FEATURE_KEY12 }),
2710
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { children: "Text Alignment" })
3107
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "arap-feature", role: "group", "aria-label": "Text Alignment", children: [
3108
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("span", { className: "arap-label", children: [
3109
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(FeatureIcon, { name: FEATURE_KEY13 }),
3110
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { children: "Text Alignment" })
2711
3111
  ] }),
2712
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "arap-segmented", children: OPTIONS.map((option) => /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
3112
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "arap-segmented", children: OPTIONS2.map((option) => /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
2713
3113
  "button",
2714
3114
  {
2715
3115
  className: `arap-segment ${value === option ? "arap-segment-active" : ""}`,
@@ -2718,30 +3118,78 @@ function TextAlignController() {
2718
3118
  type: "button",
2719
3119
  style: { textTransform: "capitalize" },
2720
3120
  children: [
2721
- value === option && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "arap-check", "aria-hidden": "true", children: "\u2713" }),
3121
+ value === option && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: "arap-check", "aria-hidden": "true", children: "\u2713" }),
2722
3122
  option
2723
3123
  ]
2724
3124
  },
2725
3125
  option
2726
- )) })
3126
+ )) }),
3127
+ value === "justify" && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
3128
+ "div",
3129
+ {
3130
+ className: "arap-notice arap-notice-warning",
3131
+ role: "note",
3132
+ "aria-live": "polite",
3133
+ children: "Justified text creates uneven word spacing (\u201Crivers of white\u201D) that can impair readability."
3134
+ }
3135
+ )
3136
+ ] });
3137
+ }
3138
+
3139
+ // src/features/FontFamilyController.tsx
3140
+ var import_jsx_runtime20 = require("react/jsx-runtime");
3141
+ var FEATURE_KEY14 = "fontFamily";
3142
+ var DEFAULT_VALUE14 = "default";
3143
+ var OPTIONS3 = [
3144
+ { label: "Default", value: "default" },
3145
+ { label: "Legible", value: "legible" },
3146
+ { label: "Dyslexia", value: "dyslexia-option" }
3147
+ ];
3148
+ function FontFamilyController() {
3149
+ const { value, setValue } = useAccessibility(
3150
+ FEATURE_KEY14,
3151
+ DEFAULT_VALUE14
3152
+ );
3153
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "arap-feature", role: "group", "aria-label": "Font Family", children: [
3154
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("span", { className: "arap-label", children: [
3155
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(FeatureIcon, { name: FEATURE_KEY14 }),
3156
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { children: "Font Family" })
3157
+ ] }),
3158
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "arap-segmented", children: OPTIONS3.map((option) => {
3159
+ const isActive = value === option.value || option.value === "default" && (value === "original" || !value || value === "default");
3160
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
3161
+ "button",
3162
+ {
3163
+ className: `arap-segment ${isActive ? "arap-segment-active" : ""}`,
3164
+ onClick: () => setValue(option.value),
3165
+ "aria-pressed": isActive,
3166
+ type: "button",
3167
+ children: [
3168
+ isActive && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "arap-check", "aria-hidden": "true", children: "\u2713" }),
3169
+ option.label
3170
+ ]
3171
+ },
3172
+ option.value
3173
+ );
3174
+ }) })
2727
3175
  ] });
2728
3176
  }
2729
3177
 
2730
3178
  // src/features/HideImagesController.tsx
2731
- var import_jsx_runtime19 = require("react/jsx-runtime");
2732
- var FEATURE_KEY13 = "hideImages";
2733
- var DEFAULT_VALUE13 = false;
3179
+ var import_jsx_runtime21 = require("react/jsx-runtime");
3180
+ var FEATURE_KEY15 = "hideImages";
3181
+ var DEFAULT_VALUE15 = false;
2734
3182
  function HideImagesController() {
2735
3183
  const { value, setValue } = useAccessibility(
2736
- FEATURE_KEY13,
2737
- DEFAULT_VALUE13
3184
+ FEATURE_KEY15,
3185
+ DEFAULT_VALUE15
2738
3186
  );
2739
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "arap-feature", role: "group", "aria-label": "Hide Images", children: [
2740
- /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("span", { className: "arap-label", children: [
2741
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(FeatureIcon, { name: FEATURE_KEY13 }),
2742
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { children: "Hide Images" })
3187
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "arap-feature", role: "group", "aria-label": "Hide Images", children: [
3188
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("span", { className: "arap-label", children: [
3189
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(FeatureIcon, { name: FEATURE_KEY15 }),
3190
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { children: "Hide Images" })
2743
3191
  ] }),
2744
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
3192
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
2745
3193
  "button",
2746
3194
  {
2747
3195
  className: `arap-toggle ${value ? "arap-toggle-active" : ""}`,
@@ -2749,27 +3197,27 @@ function HideImagesController() {
2749
3197
  "aria-label": "Hide Images",
2750
3198
  "aria-pressed": value,
2751
3199
  type: "button",
2752
- children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
3200
+ children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
2753
3201
  }
2754
3202
  )
2755
3203
  ] });
2756
3204
  }
2757
3205
 
2758
3206
  // src/features/HideVideosController.tsx
2759
- var import_jsx_runtime20 = require("react/jsx-runtime");
2760
- var FEATURE_KEY14 = "hideVideos";
2761
- var DEFAULT_VALUE14 = false;
3207
+ var import_jsx_runtime22 = require("react/jsx-runtime");
3208
+ var FEATURE_KEY16 = "hideVideos";
3209
+ var DEFAULT_VALUE16 = false;
2762
3210
  function HideVideosController() {
2763
3211
  const { value, setValue } = useAccessibility(
2764
- FEATURE_KEY14,
2765
- DEFAULT_VALUE14
3212
+ FEATURE_KEY16,
3213
+ DEFAULT_VALUE16
2766
3214
  );
2767
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "arap-feature", role: "group", "aria-label": "Hide Videos", children: [
2768
- /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("span", { className: "arap-label", children: [
2769
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(FeatureIcon, { name: FEATURE_KEY14 }),
2770
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { children: "Hide Videos" })
3215
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "arap-feature", role: "group", "aria-label": "Hide Videos", children: [
3216
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("span", { className: "arap-label", children: [
3217
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(FeatureIcon, { name: FEATURE_KEY16 }),
3218
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { children: "Hide Videos" })
2771
3219
  ] }),
2772
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
3220
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
2773
3221
  "button",
2774
3222
  {
2775
3223
  className: `arap-toggle ${value ? "arap-toggle-active" : ""}`,
@@ -2777,27 +3225,27 @@ function HideVideosController() {
2777
3225
  "aria-label": "Hide Videos",
2778
3226
  "aria-pressed": value,
2779
3227
  type: "button",
2780
- children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
3228
+ children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
2781
3229
  }
2782
3230
  )
2783
3231
  ] });
2784
3232
  }
2785
3233
 
2786
3234
  // src/features/BigCursorController.tsx
2787
- var import_jsx_runtime21 = require("react/jsx-runtime");
2788
- var FEATURE_KEY15 = "bigCursor";
2789
- var DEFAULT_VALUE15 = false;
3235
+ var import_jsx_runtime23 = require("react/jsx-runtime");
3236
+ var FEATURE_KEY17 = "bigCursor";
3237
+ var DEFAULT_VALUE17 = false;
2790
3238
  function BigCursorController() {
2791
3239
  const { value, setValue } = useAccessibility(
2792
- FEATURE_KEY15,
2793
- DEFAULT_VALUE15
3240
+ FEATURE_KEY17,
3241
+ DEFAULT_VALUE17
2794
3242
  );
2795
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "arap-feature", role: "group", "aria-label": "Big Cursor", children: [
2796
- /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("span", { className: "arap-label", children: [
2797
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(FeatureIcon, { name: FEATURE_KEY15 }),
2798
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { children: "Big Cursor" })
3243
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "arap-feature", role: "group", "aria-label": "Big Cursor", children: [
3244
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("span", { className: "arap-label", children: [
3245
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(FeatureIcon, { name: FEATURE_KEY17 }),
3246
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { children: "Big Cursor" })
2799
3247
  ] }),
2800
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
3248
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
2801
3249
  "button",
2802
3250
  {
2803
3251
  className: `arap-toggle ${value ? "arap-toggle-active" : ""}`,
@@ -2805,27 +3253,27 @@ function BigCursorController() {
2805
3253
  "aria-label": "Big Cursor",
2806
3254
  "aria-pressed": value,
2807
3255
  type: "button",
2808
- children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
3256
+ children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
2809
3257
  }
2810
3258
  )
2811
3259
  ] });
2812
3260
  }
2813
3261
 
2814
3262
  // src/features/ReadingMaskController.tsx
2815
- var import_jsx_runtime22 = require("react/jsx-runtime");
2816
- var FEATURE_KEY16 = "readingMask";
2817
- var DEFAULT_VALUE16 = false;
3263
+ var import_jsx_runtime24 = require("react/jsx-runtime");
3264
+ var FEATURE_KEY18 = "readingMask";
3265
+ var DEFAULT_VALUE18 = false;
2818
3266
  function ReadingMaskController() {
2819
3267
  const { value, setValue } = useAccessibility(
2820
- FEATURE_KEY16,
2821
- DEFAULT_VALUE16
3268
+ FEATURE_KEY18,
3269
+ DEFAULT_VALUE18
2822
3270
  );
2823
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "arap-feature", role: "group", "aria-label": "Reading Mask", children: [
2824
- /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("span", { className: "arap-label", children: [
2825
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(FeatureIcon, { name: FEATURE_KEY16 }),
2826
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { children: "Reading Mask" })
3271
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: "arap-feature", role: "group", "aria-label": "Reading Mask", children: [
3272
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("span", { className: "arap-label", children: [
3273
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(FeatureIcon, { name: FEATURE_KEY18 }),
3274
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { children: "Reading Mask" })
2827
3275
  ] }),
2828
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
3276
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2829
3277
  "button",
2830
3278
  {
2831
3279
  className: `arap-toggle ${value ? "arap-toggle-active" : ""}`,
@@ -2833,27 +3281,27 @@ function ReadingMaskController() {
2833
3281
  "aria-label": "Reading Mask",
2834
3282
  "aria-pressed": value,
2835
3283
  type: "button",
2836
- children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
3284
+ children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
2837
3285
  }
2838
3286
  )
2839
3287
  ] });
2840
3288
  }
2841
3289
 
2842
3290
  // src/features/ReadingGuideController.tsx
2843
- var import_jsx_runtime23 = require("react/jsx-runtime");
2844
- var FEATURE_KEY17 = "readingGuide";
2845
- var DEFAULT_VALUE17 = false;
3291
+ var import_jsx_runtime25 = require("react/jsx-runtime");
3292
+ var FEATURE_KEY19 = "readingGuide";
3293
+ var DEFAULT_VALUE19 = false;
2846
3294
  function ReadingGuideController() {
2847
3295
  const { value, setValue } = useAccessibility(
2848
- FEATURE_KEY17,
2849
- DEFAULT_VALUE17
3296
+ FEATURE_KEY19,
3297
+ DEFAULT_VALUE19
2850
3298
  );
2851
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "arap-feature", role: "group", "aria-label": "Reading Guide", children: [
2852
- /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("span", { className: "arap-label", children: [
2853
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(FeatureIcon, { name: FEATURE_KEY17 }),
2854
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { children: "Reading Guide" })
3299
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "arap-feature", role: "group", "aria-label": "Reading Guide", children: [
3300
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("span", { className: "arap-label", children: [
3301
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(FeatureIcon, { name: FEATURE_KEY19 }),
3302
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { children: "Reading Guide" })
2855
3303
  ] }),
2856
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
3304
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2857
3305
  "button",
2858
3306
  {
2859
3307
  className: `arap-toggle ${value ? "arap-toggle-active" : ""}`,
@@ -2861,7 +3309,7 @@ function ReadingGuideController() {
2861
3309
  "aria-label": "Reading Guide",
2862
3310
  "aria-pressed": value,
2863
3311
  type: "button",
2864
- children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
3312
+ children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
2865
3313
  }
2866
3314
  )
2867
3315
  ] });
@@ -2869,27 +3317,27 @@ function ReadingGuideController() {
2869
3317
 
2870
3318
  // src/features/ResetController.tsx
2871
3319
  var import_react_dom2 = require("react-dom");
2872
- var import_react11 = require("react");
2873
- var import_jsx_runtime24 = require("react/jsx-runtime");
3320
+ var import_react13 = require("react");
3321
+ var import_jsx_runtime26 = require("react/jsx-runtime");
2874
3322
  function ResetController() {
2875
- const ctx = (0, import_react11.useContext)(AccessibilityContext);
3323
+ const ctx = (0, import_react13.useContext)(AccessibilityContext);
2876
3324
  if (!ctx) {
2877
3325
  throw new Error(
2878
3326
  "ResetController must be used within an <AccessibilityPlugin> provider."
2879
3327
  );
2880
3328
  }
2881
- const actionHost = (0, import_react11.useContext)(PanelActionsContext);
3329
+ const actionHost = (0, import_react13.useContext)(PanelActionsContext);
2882
3330
  const { resetAll } = ctx;
2883
3331
  const strings = resolveLocaleStrings(ctx.locale);
2884
- const button = /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: "arap-feature arap-feature-reset", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("button", { className: "arap-reset-btn", onClick: resetAll, type: "button", children: [
2885
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(FeatureIcon, { name: "reset" }),
3332
+ const button = /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: "arap-feature arap-feature-reset", children: /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("button", { className: "arap-reset-btn", onClick: resetAll, type: "button", children: [
3333
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(FeatureIcon, { name: "reset" }),
2886
3334
  strings.resetAll
2887
3335
  ] }) });
2888
3336
  return actionHost ? (0, import_react_dom2.createPortal)(button, actionHost) : button;
2889
3337
  }
2890
3338
 
2891
3339
  // src/core/controls/ToggleControl.tsx
2892
- var import_jsx_runtime25 = require("react/jsx-runtime");
3340
+ var import_jsx_runtime27 = require("react/jsx-runtime");
2893
3341
  function ToggleControl({
2894
3342
  id,
2895
3343
  label,
@@ -2911,12 +3359,12 @@ function ToggleControl({
2911
3359
  onChange(!checked);
2912
3360
  }
2913
3361
  };
2914
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
3362
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
2915
3363
  "div",
2916
3364
  {
2917
3365
  className: `arap-toggle-wrapper ${largeControls ? "arap-large-controls" : ""} ${className}`,
2918
3366
  style,
2919
- children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
3367
+ children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
2920
3368
  "button",
2921
3369
  {
2922
3370
  id,
@@ -2930,7 +3378,7 @@ function ToggleControl({
2930
3378
  disabled: !isInteractive,
2931
3379
  onClick: handleClick,
2932
3380
  title: unavailableReason || description || toggleLabel,
2933
- children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
3381
+ children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
2934
3382
  "span",
2935
3383
  {
2936
3384
  className: "arap-toggle-knob",
@@ -2946,8 +3394,8 @@ function ToggleControl({
2946
3394
  }
2947
3395
 
2948
3396
  // src/core/controls/ChoiceControl.tsx
2949
- var import_react12 = require("react");
2950
- var import_jsx_runtime26 = require("react/jsx-runtime");
3397
+ var import_react14 = require("react");
3398
+ var import_jsx_runtime28 = require("react/jsx-runtime");
2951
3399
  function ChoiceControl({
2952
3400
  id,
2953
3401
  label,
@@ -2961,12 +3409,12 @@ function ChoiceControl({
2961
3409
  style,
2962
3410
  orientation = "horizontal"
2963
3411
  }) {
2964
- const containerRef = (0, import_react12.useRef)(null);
2965
- const allOptions = (0, import_react12.useMemo)(
3412
+ const containerRef = (0, import_react14.useRef)(null);
3413
+ const allOptions = (0, import_react14.useMemo)(
2966
3414
  () => groups ? groups.flatMap((g) => g.options) : options || [],
2967
3415
  [groups, options]
2968
3416
  );
2969
- const handleKeyDown = (0, import_react12.useCallback)(
3417
+ const handleKeyDown = (0, import_react14.useCallback)(
2970
3418
  (e) => {
2971
3419
  if (disabled || allOptions.length === 0) return;
2972
3420
  const enabledOptions = allOptions.filter((opt) => !opt.disabled);
@@ -3003,7 +3451,7 @@ function ChoiceControl({
3003
3451
  const renderOptionButton = (opt) => {
3004
3452
  const isSelected = value === opt.value;
3005
3453
  const isOptionDisabled = disabled || Boolean(opt.disabled);
3006
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
3454
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
3007
3455
  "button",
3008
3456
  {
3009
3457
  type: "button",
@@ -3017,15 +3465,15 @@ function ChoiceControl({
3017
3465
  onClick: () => !isOptionDisabled && onChange(opt.value),
3018
3466
  title: opt.description,
3019
3467
  children: [
3020
- isSelected && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "arap-check", "aria-hidden": "true", children: "\u2713" }),
3021
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { children: opt.label }),
3022
- opt.badge && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "arap-choice-badge", "aria-hidden": "true", children: opt.badge })
3468
+ isSelected && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "arap-check", "aria-hidden": "true", children: "\u2713" }),
3469
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { children: opt.label }),
3470
+ opt.badge && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "arap-choice-badge", "aria-hidden": "true", children: opt.badge })
3023
3471
  ]
3024
3472
  },
3025
3473
  String(opt.value)
3026
3474
  );
3027
3475
  };
3028
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
3476
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
3029
3477
  "div",
3030
3478
  {
3031
3479
  ref: containerRef,
@@ -3036,15 +3484,15 @@ function ChoiceControl({
3036
3484
  className: `arap-choice-control arap-segmented ${largeControls ? "arap-large-controls" : ""} ${className}`,
3037
3485
  style,
3038
3486
  onKeyDown: handleKeyDown,
3039
- children: groups ? groups.map((group) => /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
3487
+ children: groups ? groups.map((group) => /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
3040
3488
  "div",
3041
3489
  {
3042
3490
  className: "arap-choice-group",
3043
3491
  role: "group",
3044
3492
  "aria-label": group.label,
3045
3493
  children: [
3046
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "arap-choice-group-title", children: group.label }),
3047
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: "arap-segmented", children: group.options.map(renderOptionButton) })
3494
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "arap-choice-group-title", children: group.label }),
3495
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "arap-segmented", children: group.options.map(renderOptionButton) })
3048
3496
  ]
3049
3497
  },
3050
3498
  group.label
@@ -3054,7 +3502,7 @@ function ChoiceControl({
3054
3502
  }
3055
3503
 
3056
3504
  // src/core/controls/StepperControl.tsx
3057
- var import_jsx_runtime27 = require("react/jsx-runtime");
3505
+ var import_jsx_runtime29 = require("react/jsx-runtime");
3058
3506
  function StepperControl({
3059
3507
  id,
3060
3508
  label,
@@ -3084,15 +3532,15 @@ function StepperControl({
3084
3532
  onChange(Math.min(max, Number((value + step).toFixed(2))));
3085
3533
  }
3086
3534
  };
3087
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
3535
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
3088
3536
  "div",
3089
3537
  {
3090
3538
  id,
3091
3539
  className: `arap-stepper-control-wrapper ${largeControls ? "arap-large-controls" : ""} ${className}`,
3092
3540
  style,
3093
3541
  children: [
3094
- /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "arap-controls", children: [
3095
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
3542
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "arap-controls", children: [
3543
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
3096
3544
  "button",
3097
3545
  {
3098
3546
  type: "button",
@@ -3103,8 +3551,8 @@ function StepperControl({
3103
3551
  children: "\u2212"
3104
3552
  }
3105
3553
  ),
3106
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("output", { className: "arap-value", "aria-live": "polite", children: displayValue }),
3107
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
3554
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("output", { className: "arap-value", "aria-live": "polite", children: displayValue }),
3555
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
3108
3556
  "button",
3109
3557
  {
3110
3558
  type: "button",
@@ -3116,7 +3564,7 @@ function StepperControl({
3116
3564
  }
3117
3565
  )
3118
3566
  ] }),
3119
- showSlider && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "arap-slider-container", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
3567
+ showSlider && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "arap-slider-container", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
3120
3568
  "input",
3121
3569
  {
3122
3570
  type: "range",
@@ -3140,7 +3588,7 @@ function StepperControl({
3140
3588
  }
3141
3589
 
3142
3590
  // src/core/controls/FeatureCard.tsx
3143
- var import_jsx_runtime28 = require("react/jsx-runtime");
3591
+ var import_jsx_runtime30 = require("react/jsx-runtime");
3144
3592
  function FeatureCard({
3145
3593
  id,
3146
3594
  featureKey,
@@ -3159,7 +3607,7 @@ function FeatureCard({
3159
3607
  largeControls = false
3160
3608
  }) {
3161
3609
  const cardTitle = typeof title === "string" ? title : void 0;
3162
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
3610
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
3163
3611
  "div",
3164
3612
  {
3165
3613
  id,
@@ -3168,27 +3616,27 @@ function FeatureCard({
3168
3616
  className: `arap-feature arap-feature-card ${status !== "idle" ? `arap-feature-${status}` : ""} ${largeControls ? "arap-large-controls" : ""} ${className}`,
3169
3617
  style,
3170
3618
  children: [
3171
- /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "arap-card-header", children: [
3172
- /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("span", { className: "arap-label", children: [
3173
- icon ?? (featureKey ? /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(FeatureIcon, { name: featureKey }) : null),
3174
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "arap-card-title", children: title })
3619
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "arap-card-header", children: [
3620
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("span", { className: "arap-label", children: [
3621
+ icon ?? (featureKey ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(FeatureIcon, { name: featureKey }) : null),
3622
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "arap-card-title", children: title })
3175
3623
  ] }),
3176
- statusBadge && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "arap-status-badge", "aria-hidden": "true", children: statusBadge })
3624
+ statusBadge && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "arap-status-badge", "aria-hidden": "true", children: statusBadge })
3177
3625
  ] }),
3178
- description && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("p", { className: "arap-card-desc", children: description }),
3179
- status === "error" && errorMessage && /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "arap-card-alert arap-card-error", role: "alert", children: [
3180
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "arap-alert-icon", "aria-hidden": "true", children: "\u26A0\uFE0F" }),
3181
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { children: errorMessage })
3626
+ description && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("p", { className: "arap-card-desc", children: description }),
3627
+ status === "error" && errorMessage && /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "arap-card-alert arap-card-error", role: "alert", children: [
3628
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "arap-alert-icon", "aria-hidden": "true", children: "\u26A0\uFE0F" }),
3629
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { children: errorMessage })
3182
3630
  ] }),
3183
- status === "unavailable" && unavailableMessage && /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "arap-card-alert arap-card-unavailable", role: "status", children: [
3184
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "arap-alert-icon", "aria-hidden": "true", children: "\u2139\uFE0F" }),
3185
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { children: unavailableMessage })
3631
+ status === "unavailable" && unavailableMessage && /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "arap-card-alert arap-card-unavailable", role: "status", children: [
3632
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "arap-alert-icon", "aria-hidden": "true", children: "\u2139\uFE0F" }),
3633
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { children: unavailableMessage })
3186
3634
  ] }),
3187
- status === "permission-required" && permissionMessage && /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "arap-card-alert arap-card-permission", role: "status", children: [
3188
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "arap-alert-icon", "aria-hidden": "true", children: "\u{1F512}" }),
3189
- /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "arap-permission-content", children: [
3190
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { children: permissionMessage }),
3191
- onRequestPermission && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
3635
+ status === "permission-required" && permissionMessage && /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "arap-card-alert arap-card-permission", role: "status", children: [
3636
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "arap-alert-icon", "aria-hidden": "true", children: "\u{1F512}" }),
3637
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "arap-permission-content", children: [
3638
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { children: permissionMessage }),
3639
+ onRequestPermission && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
3192
3640
  "button",
3193
3641
  {
3194
3642
  type: "button",
@@ -3199,14 +3647,14 @@ function FeatureCard({
3199
3647
  )
3200
3648
  ] })
3201
3649
  ] }),
3202
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "arap-card-content", children })
3650
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "arap-card-content", children })
3203
3651
  ]
3204
3652
  }
3205
3653
  );
3206
3654
  }
3207
3655
 
3208
3656
  // src/core/controls/FeatureStatusState.tsx
3209
- var import_jsx_runtime29 = require("react/jsx-runtime");
3657
+ var import_jsx_runtime31 = require("react/jsx-runtime");
3210
3658
  function SearchCount({
3211
3659
  totalCount,
3212
3660
  matchedCount,
@@ -3215,7 +3663,7 @@ function SearchCount({
3215
3663
  style
3216
3664
  }) {
3217
3665
  const text = query ? `Showing ${matchedCount} of ${totalCount} tools matching "${query}"` : `Showing all ${totalCount} tools`;
3218
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
3666
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
3219
3667
  "div",
3220
3668
  {
3221
3669
  role: "status",
@@ -3235,17 +3683,17 @@ function EmptyState({
3235
3683
  className = "",
3236
3684
  style
3237
3685
  }) {
3238
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
3686
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
3239
3687
  "div",
3240
3688
  {
3241
3689
  role: "status",
3242
3690
  className: `arap-empty-state ${className}`,
3243
3691
  style,
3244
3692
  children: [
3245
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "arap-empty-icon", "aria-hidden": "true", children: icon ?? "\u{1F50D}" }),
3246
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("h3", { className: "arap-empty-title", children: title }),
3247
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("p", { className: "arap-empty-desc", children: description }),
3248
- onAction && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("button", { type: "button", className: "arap-empty-btn", onClick: onAction, children: actionLabel })
3693
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "arap-empty-icon", "aria-hidden": "true", children: icon ?? "\u{1F50D}" }),
3694
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("h3", { className: "arap-empty-title", children: title }),
3695
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("p", { className: "arap-empty-desc", children: description }),
3696
+ onAction && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("button", { type: "button", className: "arap-empty-btn", onClick: onAction, children: actionLabel })
3249
3697
  ]
3250
3698
  }
3251
3699
  );
@@ -3258,18 +3706,18 @@ function ErrorState({
3258
3706
  className = "",
3259
3707
  style
3260
3708
  }) {
3261
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
3709
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
3262
3710
  "div",
3263
3711
  {
3264
3712
  role: "alert",
3265
3713
  className: `arap-error-state arap-card-alert arap-card-error ${className}`,
3266
3714
  style,
3267
3715
  children: [
3268
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "arap-alert-icon", "aria-hidden": "true", children: "\u26A0\uFE0F" }),
3269
- /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "arap-error-content", children: [
3270
- title && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("h4", { className: "arap-error-title", children: title }),
3271
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("p", { className: "arap-error-message", children: message }),
3272
- onRetry && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("button", { type: "button", className: "arap-retry-btn", onClick: onRetry, children: retryLabel })
3716
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "arap-alert-icon", "aria-hidden": "true", children: "\u26A0\uFE0F" }),
3717
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "arap-error-content", children: [
3718
+ title && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("h4", { className: "arap-error-title", children: title }),
3719
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("p", { className: "arap-error-message", children: message }),
3720
+ onRetry && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("button", { type: "button", className: "arap-retry-btn", onClick: onRetry, children: retryLabel })
3273
3721
  ] })
3274
3722
  ]
3275
3723
  }
@@ -3277,7 +3725,7 @@ function ErrorState({
3277
3725
  }
3278
3726
 
3279
3727
  // src/core/controls/ProfilePreviewCard.tsx
3280
- var import_jsx_runtime30 = require("react/jsx-runtime");
3728
+ var import_jsx_runtime32 = require("react/jsx-runtime");
3281
3729
  function ProfilePreviewCard({
3282
3730
  profile,
3283
3731
  isActive,
@@ -3327,7 +3775,7 @@ function ProfilePreviewCard({
3327
3775
  if (val === null || val === void 0) return "Original";
3328
3776
  return String(val);
3329
3777
  };
3330
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
3778
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
3331
3779
  "div",
3332
3780
  {
3333
3781
  role: "group",
@@ -3335,10 +3783,10 @@ function ProfilePreviewCard({
3335
3783
  className: `arap-profile-card ${isActive ? "arap-profile-card-active" : ""} ${largeControls ? "arap-large-controls" : ""} ${className}`,
3336
3784
  style,
3337
3785
  children: [
3338
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "arap-profile-header", children: [
3339
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "arap-profile-title-row", children: [
3340
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("h4", { className: "arap-profile-title", children: profile.label }),
3341
- isActive && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
3786
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "arap-profile-header", children: [
3787
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "arap-profile-title-row", children: [
3788
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("h4", { className: "arap-profile-title", children: profile.label }),
3789
+ isActive && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
3342
3790
  "span",
3343
3791
  {
3344
3792
  className: "arap-profile-active-badge",
@@ -3347,14 +3795,14 @@ function ProfilePreviewCard({
3347
3795
  }
3348
3796
  )
3349
3797
  ] }),
3350
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("p", { className: "arap-profile-desc", children: profile.description })
3798
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("p", { className: "arap-profile-desc", children: profile.description })
3351
3799
  ] }),
3352
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "arap-profile-affected", children: [
3353
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "arap-profile-affected-label", children: "Affected settings:" }),
3354
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "arap-profile-chips", children: affectedKeys.map((key) => {
3800
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "arap-profile-affected", children: [
3801
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "arap-profile-affected-label", children: "Affected settings:" }),
3802
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "arap-profile-chips", children: affectedKeys.map((key) => {
3355
3803
  const val = profile.settings[key];
3356
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("span", { className: "arap-profile-chip", children: [
3357
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("strong", { children: [
3804
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("span", { className: "arap-profile-chip", children: [
3805
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("strong", { children: [
3358
3806
  formatKeyName(key),
3359
3807
  ":"
3360
3808
  ] }),
@@ -3363,7 +3811,7 @@ function ProfilePreviewCard({
3363
3811
  ] }, key);
3364
3812
  }) })
3365
3813
  ] }),
3366
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "arap-profile-actions", children: isActive ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
3814
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "arap-profile-actions", children: isActive ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
3367
3815
  "button",
3368
3816
  {
3369
3817
  type: "button",
@@ -3372,7 +3820,7 @@ function ProfilePreviewCard({
3372
3820
  "aria-label": `Revert ${profile.label} profile`,
3373
3821
  children: "Revert to custom settings"
3374
3822
  }
3375
- ) : /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
3823
+ ) : /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
3376
3824
  "button",
3377
3825
  {
3378
3826
  type: "button",
@@ -3393,17 +3841,26 @@ function ProfilePreviewCard({
3393
3841
  AccessibilityList,
3394
3842
  AccessibilityPlugin,
3395
3843
  BigCursorController,
3844
+ CONTRAST_MODES,
3845
+ CONTRAST_PALETTES,
3846
+ CONTRAST_PROTECTED_SELECTOR,
3396
3847
  ChoiceControl,
3397
3848
  ContrastController,
3849
+ ContrastModeController,
3398
3850
  DEFAULT_PREFERENCES,
3851
+ DYSLEXIA_FONT_STACK,
3399
3852
  EmptyState,
3400
3853
  ErrorState,
3854
+ FONT_FAMILY_PRESETS,
3855
+ FONT_FAMILY_PROTECTED_SELECTOR,
3401
3856
  FeatureCard,
3857
+ FontFamilyController,
3402
3858
  FontSizeController,
3403
3859
  GrayscaleController,
3404
3860
  HideImagesController,
3405
3861
  HideVideosController,
3406
3862
  InvertColorsController,
3863
+ LEGIBLE_FONT_STACK,
3407
3864
  LINE_HEIGHT_RATIOS,
3408
3865
  LINE_HEIGHT_STEPS,
3409
3866
  LetterSpacingController,
@@ -3418,6 +3875,7 @@ function ProfilePreviewCard({
3418
3875
  SaturationController,
3419
3876
  SearchCount,
3420
3877
  StepperControl,
3878
+ TEXT_ALIGN_BLOCK_SELECTOR,
3421
3879
  TEXT_SCALE_PROTECTED_SELECTOR,
3422
3880
  TEXT_SCALE_STEPS,
3423
3881
  TEXT_SPACING_EXCLUDED_SELECTOR,
@@ -3428,6 +3886,10 @@ function ProfilePreviewCard({
3428
3886
  createInitialPreferencesState,
3429
3887
  enLocale,
3430
3888
  getScriptSpacingConstraints,
3889
+ isForcedColorsActive,
3890
+ isProtectedFromContrast,
3891
+ isProtectedFromFontFamily,
3892
+ isProtectedFromTextAlign,
3431
3893
  isProtectedFromTextScale,
3432
3894
  isProtectedFromTextSpacing,
3433
3895
  isRtlLocale,