There is a theorem in my book that says:

If a function f is analytic on a connected open set U, then f is either a constant function or an opening mapping.

I read the proof in wikipedia, but I really don't understand it. The book provided a proof that look easier, but I got really lost.

What is the idea of the proof? Why is this true?

Thank you.