The Resilience of the Spanish Monarchy 1665-1700