# Rotated underbrace and overbrace in an exponential tower

I would like to typeset a tower of exponentials and have underbrace and overbrace at an angle, with rotated text (e.g., "r" and "k" here). There are related questions, but none (I could see) had the underbraces at an angle.

\documentclass{article}
\def\rdots{\rotatebox[origin=l]{29}{$\scriptscriptstyle\ldots\mathstrut$}}
\stackinset{r}{-2.5pt}{b}{-6pt}{\tiny\rotatebox{29}{$\underbrace{\kern25pt}_k$}}{%
\stackinset{r}{4pt}{t}{-9.0pt}{\tiny\rotatebox{29}{$\overbrace{\kern15pt}^r$}}{%
$a^{b^{c^{d^{\rdots^n}}}}$}}