HONG KONG -- A small band of anti-government protesters, their numbers diminished by surrenders and failed escape attempts, remained holed up at a Hong Kong university early Wednesday as they braced for the endgame in a police siege of the campus.

Police were waiting them out after 10 days of some of the most intense protests the city has seen in more than five months of often-violent unrest gripping the semi-autonomous Chinese city. Since the siege began Sunday, more than 1,000 people were arrested and hundreds of injured treated at hospitals, authorities said.

The government has stood firm, rejecting most of the protesters' demands. The demonstrators shut down major roads and trains during rush hour every day last week as they turned several university campuses into fortresses and blocked a major road tunnel, which remained closed Tuesday.

Even as the latest violence wound down, a fundamental divide suggests the protests in the former British colony are far from over.

In Beijing, the National People's Congress criticized Hong Kong's high court for striking down a ban on wearing face masks at the protests, in a decree that has potentially ominous implications for the city's vaunted rule of law and independent judiciary. China's Communist leaders have taken a tough line on the protests and said that restoring order is the highest priority.

Meanwhile, pro-democracy activist Joshua Wong was barred from going on a European speaking tour, after a court refused to change his bail conditions to let him travel outside Hong Kong.

Protesters have left all the universities except Hong Kong Polytechnic, where hundreds had barricaded themselves and fought back police barrages of tear gas and water cannons with gasoline bombs, some launched from rooftops by catapult, and bows and arrows.

Those who remained at Polytechnic were the last holdouts. Surrounded by police, they faced arrest. Several groups have tried to escape, including one that slid down hoses from a footbridge to waiting motorcycles, but police said they intercepted 37, including the drivers, who were arrested for "assisting offenders."

They milled about in small groups and had boxes of homemade gasoline bombs, but the mood was grim in the trash-strewn plazas, in contrast to the excitement as they prepared to take on police just a few days earlier.

One protester said he had no plan and was waiting for help. Another said he wanted to leave safely but without being charged. They would not give their full names, saying they feared arrest.

"We will use whatever means to continue to persuade and arrange for these remaining protesters to leave the campus as soon as possible so that this whole operation could end in a peaceful manner," Lam said after a weekly meeting with advisers.

By late Tuesday night, about 800 people had left the campus to surrender, including 300 minors, according to a government tally. Authorities had agreed not to immediately arrest anyone under 18 but warned they could face charges later. City leader Carrie Lam had said Tuesday morning that 100 people were left but it was wasn't clear how many now remained.

Hong Kong's Catholic Auxiliary Bishop Joseph Ha entered the campus to try to dial back tensions after hearing that some protesters were ready to die.

At the same time, at least a dozen protesters walked out of the campus escorted by volunteers to an ambulance station to surrender. But it appeared to be a ruse, with many of them making a run for it in a last-ditch escape attempt. They were swiftly tackled by police.

The U.N. High Commissioner for Human Rights urged authorities to de-escalate the standoff. Spokesman Rupert Colville expressed concern about increasing violence by young people "who are clearly very angry, with deep-seated grievances."

City leaders say the violence must stop before meaningful dialogue can begin. The protesters say they need to keep escalating the violence to get the government to accept their demands.

The protests started in June over a proposed extradition bill that would have allowed suspects to be sent to mainland China for trial. Activists saw the legislation as part of a continuing erosion of rights and freedoms that Hong Kong was promised it could keep when Britain returned its former colony to China in 1997.

Lam withdrew the bill months later, but protesters now want an independent investigation into police suppression of the demonstrations and fully democratic elections, among other demands.

Throughout the day, relatives and teachers arrived sporadically to pick up the remaining protesters under 18, hugging them before walking back to a police checkpoint where officers recorded names and other information before letting them go.

An ambulance team was allowed in to treat the injured, wrapping them in emergency blankets. Some left with the team, but others stayed, saying they didn't want to be arrested.

Other parents held a news conference and said their children dared not surrender because the government has labeled them as rioters even though some had just gotten trapped by the police siege. They wore masks and refused to give their names, a sign of the fear that has developed in what has become a highly polarized city.

China hinted it might overrule the Hong Kong high court ruling that struck down the face mask ban that was aimed at preventing protesters from hiding their identities and evading arrest.

A statement from the National People's Congress' Legislative Affairs Commission said the decision doesn't conform with Hong Kong's constitution, known as the Basic Law, or decisions by the Congress.

"We are currently studying opinions and suggestions raised by some NPC deputies," the statement said. The announcement threatens to undercut Hong Kong's rule of law and independent courts -- major selling points for its role as an Asian financial centre.

Monday's ruling said the ban infringed on fundamental rights more than is reasonably necessary. The ban has been widely disregarded.

The Japanese government said one of its citizens was arrested near the Polytechnic campus. Japanese media identified him as Hikaru Ida, a student at Tokyo University of Agriculture. Officials did not say why he was arrested.

About 1,100 people were arrested in the past day for offences including rioting and possession of offensive weapons, police said at a briefing. They found more than 3,900 gasoline bombs at another university campus that was the site of a violent standoff last week. At least 354 people were treated Tuesday for protest-related injuries, according to hospital authority figures.

Hong Kong also got a new police chief, Chris Tang, who said his priorities would include rebutting accusations against police that he called "fake news" and reassuring the public about the force's mission.

"We have to maintain the law and order in Hong Kong and there is a massive scale of breaking of law in Hong Kong and there is a certain sector of the community that also condones those illegal activities," he told journalists.

Tang, who visited officers at the Polytechnic siege after dark, replaces a retiring chief and was approved by Beijing after being nominated by Lam's government.

Lam, asked whether she would seek help from Chinese troops based in Hong Kong, said her government was confident it can cope with the situation.

------

Associated Press journalists Alice Fung and Dake Kang contributed.