package o;

import android.text.TextUtils;
import java.util.HashMap;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.xq, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C2943xq implements InterfaceC3048yv, Jb0 {
    public final /* synthetic */ int l;
    public String m;

    public static void a(C3126zm0 c3126zm0, F70 f70) {
        String str = f70.a;
        if (str != null) {
            c3126zm0.I("X-CRASHLYTICS-GOOGLE-APP-ID", str);
        }
        c3126zm0.I("X-CRASHLYTICS-API-CLIENT-TYPE", "android");
        c3126zm0.I("X-CRASHLYTICS-API-CLIENT-VERSION", "20.0.3");
        c3126zm0.I("Accept", "application/json");
        String str2 = f70.b;
        if (str2 != null) {
            c3126zm0.I("X-CRASHLYTICS-DEVICE-MODEL", str2);
        }
        String str3 = f70.c;
        if (str3 != null) {
            c3126zm0.I("X-CRASHLYTICS-OS-BUILD-VERSION", str3);
        }
        String str4 = f70.d;
        if (str4 != null) {
            c3126zm0.I("X-CRASHLYTICS-OS-DISPLAY-VERSION", str4);
        }
        String str5 = f70.e.c().a;
        if (str5 != null) {
            c3126zm0.I("X-CRASHLYTICS-INSTALLATION-ID", str5);
        }
    }

    public static HashMap d(F70 f70) {
        HashMap map = new HashMap();
        map.put("build_version", f70.h);
        map.put("display_version", f70.g);
        map.put("source", Integer.toString(f70.i));
        String str = f70.f;
        if (!TextUtils.isEmpty(str)) {
            map.put("instance", str);
        }
        return map;
    }

    @Override // o.Jb0
    public String b() {
        return this.m;
    }

    @Override // o.InterfaceC3048yv
    public boolean f(CharSequence charSequence, int i, int i2, C2641uh0 c2641uh0) {
        if (!TextUtils.equals(charSequence.subSequence(i, i2), this.m)) {
            return true;
        }
        c2641uh0.c = (c2641uh0.c & 3) | 4;
        return false;
    }

    public String toString() {
        switch (this.l) {
            case 4:
                return AbstractC0126Ew.n(new StringBuilder("<"), this.m, '>');
            default:
                return super.toString();
        }
    }

    public /* synthetic */ C2943xq(String str, int i) {
        this.l = i;
        this.m = str;
    }

    public C2943xq(String str, J7 j7) {
        this.l = 0;
        if (str != null) {
            this.m = str;
            return;
        }
        throw new IllegalArgumentException("url must not be null.");
    }

    @Override // o.InterfaceC3048yv
    public Object getResult() {
        return this;
    }

    @Override // o.Jb0
    public void c(Ib0 ib0) {
    }
}
