 Complete the following phrase:  During the Napoleonic Wars, after the Habsburgs ceded Tyrol to Napoleons Bavarian allies in 1805, the Hofburg became a residence of Bavarian King Maximilian I Joseph 17561825. In 1809, the South Tyrolean innkeeper Andreas Hofer led an uprising against the occupying Bavarian administration, and following the successful 