package K4;

import java.io.Closeable;
import r4.AbstractC0983h;

/* JADX INFO: loaded from: classes.dex */
public final class u implements Closeable {

    /* JADX INFO: renamed from: k, reason: collision with root package name */
    public final F3.e f1223k;

    /* JADX INFO: renamed from: l, reason: collision with root package name */
    public final s f1224l;

    /* JADX INFO: renamed from: m, reason: collision with root package name */
    public final String f1225m;

    /* JADX INFO: renamed from: n, reason: collision with root package name */
    public final int f1226n;

    /* JADX INFO: renamed from: o, reason: collision with root package name */
    public final k f1227o;
    public final m p;
    public final w q;

    /* JADX INFO: renamed from: r, reason: collision with root package name */
    public final u f1228r;

    /* JADX INFO: renamed from: s, reason: collision with root package name */
    public final u f1229s;

    /* JADX INFO: renamed from: t, reason: collision with root package name */
    public final u f1230t;

    /* JADX INFO: renamed from: u, reason: collision with root package name */
    public final long f1231u;

    /* JADX INFO: renamed from: v, reason: collision with root package name */
    public final long f1232v;

    /* JADX INFO: renamed from: w, reason: collision with root package name */
    public final O4.c f1233w;

    public u(F3.e eVar, s sVar, String str, int i, k kVar, m mVar, w wVar, u uVar, u uVar2, u uVar3, long j5, long j6, O4.c cVar) {
        AbstractC0983h.e("request", eVar);
        AbstractC0983h.e("protocol", sVar);
        AbstractC0983h.e("message", str);
        this.f1223k = eVar;
        this.f1224l = sVar;
        this.f1225m = str;
        this.f1226n = i;
        this.f1227o = kVar;
        this.p = mVar;
        this.q = wVar;
        this.f1228r = uVar;
        this.f1229s = uVar2;
        this.f1230t = uVar3;
        this.f1231u = j5;
        this.f1232v = j6;
        this.f1233w = cVar;
    }

    public static String a(u uVar, String str) {
        uVar.getClass();
        String strA = uVar.p.a(str);
        if (strA == null) {
            return null;
        }
        return strA;
    }

    @Override // java.io.Closeable, java.lang.AutoCloseable
    public final void close() {
        w wVar = this.q;
        if (wVar == null) {
            throw new IllegalStateException("response is not eligible for a body and must not be closed");
        }
        wVar.close();
    }

    public final t e() {
        t tVar = new t();
        tVar.f1211a = this.f1223k;
        tVar.f1212b = this.f1224l;
        tVar.f1213c = this.f1226n;
        tVar.f1214d = this.f1225m;
        tVar.f1215e = this.f1227o;
        tVar.f1216f = this.p.c();
        tVar.f1217g = this.q;
        tVar.f1218h = this.f1228r;
        tVar.i = this.f1229s;
        tVar.f1219j = this.f1230t;
        tVar.f1220k = this.f1231u;
        tVar.f1221l = this.f1232v;
        tVar.f1222m = this.f1233w;
        return tVar;
    }

    public final String toString() {
        return "Response{protocol=" + this.f1224l + ", code=" + this.f1226n + ", message=" + this.f1225m + ", url=" + ((o) this.f1223k.f714l) + '}';
    }
}
