Is the word, that is capitalized, a direct object or an indirect object?

Before my trip, Bonnie wished ME a safe flight.

a. Direct object

b. Indirect object

b. Indirect object