pub fn normalize_modes(value: &Value) -> Vec<Mode>Expand description
Normalize a mode catalog from either a bare array or an ACP-style object
containing availableModes. Invalid entries and duplicate IDs are dropped
while preserving the adapter’s remaining order.