One field with both attractors and repellents

Help!

I’m trying to create a field of circles that vary in size creating a gradient. I need bigger circles to be attracted towards points but at the same time be repelled away from curves.

So far I have been able to create both scripts separately but I’m not able to combine them in a way that they both happen at the same time and on the same grid of circles.

Thanks!