import re


def extract_pages_info(pages: str) -> dict:
    """Extracts the total number of pages given string input in format <digit>-<digit>
    :param pages: The pages range
    :return: Tuple start_page, end_page, total_pages
    """
    pages_lst = re.findall(r"\d+", pages)
    if pages_lst:
        start_page = int(pages_lst[0])
        end_page = int(pages_lst[1]) if len(pages_lst) > 1 else int(pages_lst[0])
        return {"start_page": start_page,
                "end_page": end_page,
                "total_pages": abs(end_page - start_page) if len(pages_lst) > 1 else 1}
    else:
        return {}