Let $X,Y$ be compact real analytic varieties. Suppose $Y$ is connected and there is a surjective analytic map $f:X\to Y$ such that each fiber of $f$ is connected. How to prove that $X$ is connected as well?
I believe this is a standard result but was not able to locate a reference. (The statement would follow if one proves that there are triangulations of $X$ and $Y$ such that $f$ is simplicial but I don't know the reference for such a statement either...)