@zulip_login_required
def stats(request: HttpRequest) -> HttpResponse:
    realm = request.user.realm
    if request.user.is_guest:
        raise JsonableError(_('Not allowed for guest users'))
    return render_stats(request, '', (realm.name or realm.string_id), analytics_ready=is_analytics_ready(realm))
@zulip_login_required
def stats(request: HttpRequest) -> HttpResponse:
    realm = request.user.realm
    if request.user.is_guest:
        raise JsonableError(_('Not allowed for guest users'))
    return render_stats(request, , (realm.name or realm.string_id), analytics_ready=is_analytics_ready(realm))