Title: Energization and Transport of Ions of Ionospheric Origin in the Terrestrial Magnetosphere