The maximum-entropy measure of a rational endomorphism of the