What is the main constituent of a Pearl?

Calcium carbonate only

Calcium sulphate only

Calcium oxide and calcium sulphate

Calcium carbonate and magnesium carbonate