The accord split the former Yugoslav republic into a Serb Republic and a Muslim-Croat Federation - each with its own government and army .