What were the three independent republics in North America?