Universal input preparator