Optical metasurfaces supporting localized resonances
have become
a versatile platform for shaping the wavefront of light, but their
low quality (Q-) factor modes inevitably modify the
wavefront over extended momentum and frequency space, resulting in
limited spectral and angular control. In contrast, periodic nonlocal
metasurfaces have been providing great flexibility for both spectral
and angular selectivity but with limited spatial control. Here, we
introduce multiresonant nonlocal metasurfaces capable of shaping the
spatial properties of light using several resonances with widely disparate Q-factors. In contrast to previous designs, the narrowband
resonant transmission punctuates a broadband resonant reflection window
enabled by a highly symmetric array, achieving simultaneous spectral
filtering and wavefront shaping in the transmission mode. Through
rationally designed perturbations, we realize nonlocal flat lenses
suitable as compact band-pass imaging devices, ideally suited for
microscopy. We further employ modified topology optimization to demonstrate
high-quality-factor metagratings for extreme wavefront transformations
with large efficiency.