Text this: The Optical System Design of a Space-Based Wide-Field Infrared Slitless Spectrometer