Choose the correct answer:
There were puddles in the streets as it ___ all night.
had been raining
had raining
had rained