Factbox: New Zealand court hears how shooter planned deadly attacks