4. As shown in Figure 2, $ABCD$ is a square with side length $a$. A circular arc centered at $D$ with radius $DA$ intersects a semicircle with diameter $BC$ at another point $P$. Extending $AP$ intersects $BC$ at point $N$. Then $\frac{BN}{NC}=$ $\qquad$ .