Gravar-mail: Semiparametric regression for the weighted composite endpoint of recurrent and terminal events