Hamiltonian handleslides for Heegaard Floer homology