Matrix product operators for symmetry-protected topological phases: Gauging and edge theories | Synapse