Chirped pulse amplification in an extreme-ultraviolet free-electron laser