Rational social distancing in epidemics with uncertain vaccination timing