I am reading this paper and on pp.14 left-hand side eqn (63) reads
$$\int_{M^d}{W_{top}^d(A)} \in U(1)$$
where $W_{top}^d(A)$ is a topological term obtained by integrating out the matter field $g$ from a gauged ($G$-symmetry twisted) topological Lagrangian $L_{top}^d[g^{-1}(\partial + iA)g]$ thus the path integral/partition function is given by $$Z(A) = e^{i2\pi \int_{M^d}{W_{top}^d(A)}}$$
Note that we are treating $A$ as a non-dynamical probe field and the spacetime manifold $M^d$ is boundaryless
The author claims that the integral in eqn (63) can be viewed as a group (since the matter field takes value in $G$) cocycle since it is a map from the principal $G$-bundles over the spacetime manifold $M^d$ to $U(1)$. This does not seem obvious to me and I am seeking help to clarify this claim. Thanks!
I am also wondering, if we do not integrate out the matter field $g$ can we still interpret the path integral as a map from some bundle, given that the matter field can be viewed as sections of the associated vector bundle?