Global bifurcation of gravity water waves with multiple critical layers