package com.ss.android.ugc.aweme.ecommercelive.framework.serviceimpl;

import X.2Pr;
import X.4r1;
import X.7he;
import X.9Y3;
import X.C4173H9y;
import X.C4258HDf;
import X.C5818Hpb;
import X.C5882Hqd;
import X.Cof;
import X.Crj;
import X.H2G;
import X.LC9;
import X.Lnj;
import com.bytedance.covode.number.Covode;
import com.bytedance.frameworks.apm.trace.MethodCollector;
import com.ss.android.ugc.aweme.ecommerce.ECommerceHybridServiceImpl;
import com.ss.android.ugc.aweme.ecommercelive.business.audience.api.AudienceApi;
import com.ss.android.ugc.aweme.ecommercelive.service.IEcommerceLiveService;
import java.util.List;
import java.util.Map;

public final class ECommerceLiveServiceImpl implements IEcommerceLiveService {
    public final Crj LIZ = 7he.LIZ(C4173H9y.LIZ);

    static {
        Covode.recordClassIndex(73388);
    }

    public final Map<String, String> LIZJ() {
        return C5818Hpb.LIZ.LIZ();
    }

    public final List<LC9> LIZ() {
        return ECommerceHybridServiceImpl.LIZLLL().LIZIZ();
    }

    public final C4258HDf LIZLLL() {
        return (H2G) this.LIZ.getValue();
    }

    public final boolean LIZIZ() {
        if (9Y3.LIZ(9Y3.LIZ(), true, "ec_preload_opt_accurate_v3", 0) == C5882Hqd.LIZ) {
            return true;
        }
        return false;
    }

    public static IEcommerceLiveService LJ() {
        MethodCollector.i(1684);
        IEcommerceLiveService iEcommerceLiveService = (IEcommerceLiveService) Lnj.LIZ(IEcommerceLiveService.class, false);
        if (iEcommerceLiveService != null) {
            MethodCollector.o(1684);
            return iEcommerceLiveService;
        }
        Object LIZIZ = Lnj.LIZIZ(IEcommerceLiveService.class, false);
        if (LIZIZ != null) {
            IEcommerceLiveService iEcommerceLiveService2 = (IEcommerceLiveService) LIZIZ;
            MethodCollector.o(1684);
            return iEcommerceLiveService2;
        }
        if (Lnj.LLJLIL == null) {
            synchronized (IEcommerceLiveService.class) {
                try {
                    if (Lnj.LLJLIL == null) {
                        Lnj.LLJLIL = new ECommerceLiveServiceImpl();
                    }
                } catch (Throwable th) {
                    MethodCollector.o(1684);
                    throw th;
                }
            }
        }
        ECommerceLiveServiceImpl eCommerceLiveServiceImpl = (ECommerceLiveServiceImpl) Lnj.LLJLIL;
        MethodCollector.o(1684);
        return eCommerceLiveServiceImpl;
    }

    public final Object LIZ(String str, String str2, String str3, int i, 4r1<? super 2Pr> r11) {
        Object LIZ2 = AudienceApi.LIZ.LIZ(str, str2, str3, i, r11);
        if (LIZ2 == Cof.COROUTINE_SUSPENDED) {
            return LIZ2;
        }
        return 2Pr.LIZ;
    }
}
