Rare events for the Manneville–Pomeau map