Jataka tales
The story is based on The Twelve Sisters, a Thai folklore myth that originated in one of the Jataka tales. This same story was also adapted into a Thai fantasy lakhon.