Show that $$\int_{0}^\frac{\pi}{2} \ln(1+a\sin(x))\csc(x)dx = \frac{\arcsin(a)}{2}(\pi-\arcsin(a))$$ for $|a|\leq1$
I have been able to use Leibniz's rule to find a closed form for $a\geq1$, but I'm really struggling to find the above close form for $|a|\leq1$. I've tried series, but that didn't seem to get anywhere. And it seems that Leibniz's rule only gets the result for $a\geq1$.
Another form for the function is $$\int_{0}^1 \frac{\ln\left(m^2+2mx+1\right)}{m}dm- \frac{\pi^2}{24}$$
I don't really want a direct answer (while that would be appreciated). Just a nudge in the right direction.
Edit: Also avoiding polylogarithms would be appreciated.