The Dynamical State of the Didymos System Before and After the DART Impact