In the figure below, a square is inscribed in a circle with diameter d. What is the sum of the areas of the shaded regions in terms of d?