South Africa is a middle-income , emerging market with an abundant supply of natural resources ; well-developed financial , legal , communications , energy , and transport sectors ; a stock exchange that is the 18th largest in the world ; and modern infrastructure supporting a relatively efficient distribution of goods to major urban centers throughout the region .