Adaptive control of laser-wakefield accelerators driven by mid-IR laser pulses.