▁and ▁clean ing ▁her ▁house , ▁leaving ▁her ▁sn ail ▁shell ▁behind . ▁The ▁curious ▁M b ok ▁R ondo ▁h ides ▁in ▁waiting ▁and ▁finally ▁disco vers ▁that ▁the ▁sn ail ▁is ▁a ▁young ▁woman ▁and ▁she ▁breaks ▁the ▁sn ail ▁shell ▁and ▁thus ▁und o es ▁the ▁magic ▁spell . ▁Se k art aj i ▁is ▁adopted ▁as ▁the ▁wid ow ' s ▁daughter ▁and ▁together ▁they ▁set ▁out ▁to ▁reun ite ▁her ▁with ▁her ▁husband , ▁Pan ji ▁As m oro ▁Bang un . ▁ ▁Origin ▁In ▁these ▁roman ces , ▁he ▁is ▁said ▁to ▁do ▁de eds ▁tradition ally ▁as cribed ▁to ▁myth ical ▁ancest ors , ▁and ▁it ▁has ▁also ▁been ▁conject ured ▁that ▁the ▁basis ▁of ▁the ▁story ▁reflect s ▁an ▁ancient ▁sun ▁and ▁moon ▁myth . ▁Some ▁details ▁of ▁Pan ji ▁may ▁also ▁be ▁based ▁on ▁K ame ç var a , ▁a ▁tw elf th - century ▁J avan ese ▁king ▁of ▁K ed iri . ▁While ▁the ▁details ▁of ▁Pan ji ' s ▁cons ort , ▁Ch andra ▁Kir ana , ▁was ▁based ▁on ▁queen ▁ Ç ri ▁Kir ana . ▁The ▁curious ▁thing ▁is , ▁the ▁kingdom s ▁in ▁the ▁tale ▁was ▁switched ▁from ▁the ▁historical ▁kingdom s . ▁In ▁the ▁tale ▁Pan ji ▁was ▁said ▁to ▁be ▁the ▁prince ▁of ▁J ang g ala , ▁while ▁the ▁historic ▁K ame ç var a ▁was ▁the ▁prince ▁of ▁K ed iri . ▁Vice ▁vers a , ▁in ▁the ▁tale , ▁Ch andra ▁Kir