Development of a general time-dependent absorbing potential for the constrained adiabatic trajectory method.