Transportation of gaseous elements and isotopes in a thermally evolving chondritic planetesimal