package V;

import I.g;
import androidx.core.location.LocationRequestCompat;
import b0.AbstractC0399d;
import b0.D;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import okhttp3.HttpUrl;

/* JADX INFO: loaded from: classes.dex */
public class d implements g {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    private final String f1754a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    private final long[] f1755b;

    public d() {
        this.f1754a = HttpUrl.FRAGMENT_ENCODE_SET;
        this.f1755b = new long[]{0, LocationRequestCompat.PASSIVE_INTERVAL};
    }

    @Override // I.g
    public int a(long j2) {
        AbstractC0399d.a(j2 >= 0);
        int iB = D.b(this.f1755b, j2, false, false);
        if (iB < this.f1755b.length) {
            return iB;
        }
        return -1;
    }

    @Override // I.g
    public long b(int i2) {
        AbstractC0399d.a(i2 >= 0);
        AbstractC0399d.a(i2 < this.f1755b.length);
        return this.f1755b[i2];
    }

    @Override // I.g
    public List c(long j2) {
        ArrayList arrayList;
        long[] jArr = this.f1755b;
        if (jArr[0] > j2 || j2 >= jArr[1]) {
            arrayList = null;
        } else {
            arrayList = new ArrayList();
            arrayList.add(new I.c(this.f1754a));
        }
        return (arrayList == null || this.f1754a == HttpUrl.FRAGMENT_ENCODE_SET) ? Collections.emptyList() : arrayList;
    }

    @Override // I.g
    public int d() {
        return this.f1755b.length;
    }

    public d(String str) {
        this.f1754a = str;
        this.f1755b = new long[]{0, LocationRequestCompat.PASSIVE_INTERVAL};
    }
}
