A timeline for massive star-forming regions via combined observation of o-H2D+ and N2D+ uri icon