package w9;

import ca.canadapost.core.data.flex.api.IFlexApi;
import g9.s;
import g9.w;
import java.util.concurrent.TimeUnit;
import kotlin.jvm.internal.t;
import or.u;
import uq.z;

/* loaded from: classes.dex */
public final class a {
    public final IFlexApi a(ha.c httpClientBuilderFactory, w tokenInjectInterceptor, s authenticator, jr.a loggingInterceptor, f9.a fireBaseAppCheckInterceptor) {
        t.g(httpClientBuilderFactory, "httpClientBuilderFactory");
        t.g(tokenInjectInterceptor, "tokenInjectInterceptor");
        t.g(authenticator, "authenticator");
        t.g(loggingInterceptor, "loggingInterceptor");
        t.g(fireBaseAppCheckInterceptor, "fireBaseAppCheckInterceptor");
        u.b b10 = new u.b().c("https://www.canadapost-postescanada.ca/mgw/").b(qr.a.f());
        z.a a10 = httpClientBuilderFactory.a();
        TimeUnit timeUnit = TimeUnit.SECONDS;
        Object b11 = b10.g(a10.e(20L, timeUnit).N(20L, timeUnit).a(fireBaseAppCheckInterceptor).a(tokenInjectInterceptor).c(authenticator).a(loggingInterceptor).d()).e().b(IFlexApi.class);
        t.f(b11, "create(...)");
        return (IFlexApi) b11;
    }
}
