A Continuum Theory of the Compound Nucleus