It has been one of the most remarkable US election campaigns of our time.