package sp3; import com.tencent.mm.sdk.platformtools.Log; import com.tencent.xweb.ProxyConfig; import ek4.d0; import ek4.y; import ie1.h; import java.util.HashSet; import java.util.Iterator; import java.util.Set; import wg4.b0; import yz3.j; public final class b { /* renamed from: a reason: collision with root package name */ public static final b f304408a = new b(); /* renamed from: b reason: collision with root package name */ public static final Set<String> f304409b; static { HashSet hashSet = new HashSet(); f304409b = hashSet; hashSet.add("https://open.weixin.qq.com"); } public final void a(String str) { boolean z15; if (str == null || str.length() == 0) { z15 = true; } else { z15 = false; } if (!z15) { Set<String> set = f304409b; synchronized (set) { ((HashSet) set).add(str); } Log.i("AdH5URLManager", "addDisableUrl, url=" + str); } } public final boolean b(String str) { boolean z15; boolean z16; boolean z17; if (str == null || str.length() == 0) { z15 = true; } else { z15 = false; } if (z15) { return true; } if (str == null || str.length() == 0) { z16 = true; } else { z16 = false; } if (!z16 && (y.v(str, ProxyConfig.MATCH_HTTP, false) || y.v(str, "https", false))) { z17 = true; } else { z17 = false; } if (!z17) { return true; } Set<String> set = f304409b; synchronized (set) { if (((HashSet) set).contains(str)) { return true; } Iterator it = ((HashSet) set).iterator(); while (it.hasNext()) { if (y.w((String) it.next(), str, false, 2, null)) { return true; } } b0 b0Var = b0.f332794a; return false; } } public final boolean c() { try { int Xj0 = ((h) j.c(h.class)).Xj0(h.c.f232079l2, 0); Log.i("MicroMsg.WebViewHighRiskAdH5Interceptor", "isInterceptEnabled, expt=" + Xj0); if (Xj0 > 0) { return true; } return false; } catch (Throwable th5) { Log.e("MicroMsg.WebViewHighRiskAdH5Interceptor", "isInterceptEnabled, exp=" + th5); return false; } } public final boolean d(String str) { boolean z15; if (str == null || str.length() == 0) { z15 = true; } else { z15 = false; } if (z15) { return false; } return d0.z(str, "adH5Redirect=1", false, 2, null); } }