Probing the solar system's prenatal history