Electorate of Bavaria — state in the Holy Roman Empire