def METHOD_NAME(self, min_digits: int) -> int:
    start = self.vidx
    self.vidx += min_digits
    while self.has_more() and self.peek().isdigit():
        self.vidx += 1
    return int(self.value[start : self.vidx])