Analytic results for planar three-loop integrals for massive form factors