Middle Republic