The U.N. envoy to Libya has presented the country's warring factions a final draft of a peace deal and urged all parties to accept it.

After emerging from talks late Monday in Morocco, Bernardino Leon told reporters that "we finished our work. ... Now it is up to the parties, up to the participants in this dialogue to react to this text."

The participants are expected to resume talks after this week's Muslim feast of Eid al-Adha to discuss who could be prime minister for a unity government, and decide whether to sign on to the accord.

Libya is divided between an Islamist-backed government in Tripoli and an internationally recognized leadership based in the east. Leon has led several rounds of peace talks aimed at ending the country's chaos.