What is the meaning of "cuckoo weeping for blood" in ancient poetry?

The meaning of "cuckoo cries for blood" in ancient poetry;

Pour out one's worries and sorrows.

Du Yu, also known as Wang Di, is said to be the King of Shu at the end of the Zhou Dynasty, who abdicated and lived in seclusion in the mountains. Unfortunately, the country died, and the soul became a cuckoo after death. Every year at the end of spring, when the azalea blooms, it sings day and night, lamenting the drop of blood in its mouth. Its voice is sad, so people use it to pour out their sorrow and sadness.

"What can you hear here in the morning and evening? ? The cuckoo bleeds, the ape whimpers. " (Bai Juyi's Pipa Trip) Bai Juyi was banished to Jiangzhou, and he was sent to Fujian on a moonlit night. The poet was very sad when he heard the story that the pipa girl was abandoned. Then he contacted himself, and now he is a sick exile here in Jiujiang, suffering from bitter bamboo around the house, and hearing the cuckoo crow at night makes him sad.

Li Shangyin's "Jinse" includes: "Zhuangzi daydreaming, a saint, was bewitched by butterflies, and the emperor was in love with the cuckoo." The poet skillfully used the above allusions to write his own sadness incisively and vividly.