A first-order method for nonconvex-nonconcave minimax problems under a local Kurdyka-Łojasiewicz condition