Spectral pairs and the topology of curve singularities