How did the English Colonies and the early American republic transform from mercantilism to capitalism?