Let the maximum value of \( (\sin^{-1}x)^2+(\cos^{-1}x)^2 \) for \( x\in\left[-\frac{\sqrt{3}}{2},\frac{1}{\sqrt{2}}\right] \) be \( \frac{m}{n}\pi^2 \), where \( \gcd(m,n)=1 \). Then \( m+n \) is equal to ____________.