A programmable topological photonic chip