package com.applovin.impl; import java.util.ArrayList; import java.util.HashMap; import java.util.Iterator; import java.util.List; import java.util.Set; /* loaded from: classes.dex */ public class bq { private final String a; private final List b; private final String c; private final Set d; public Set a() { return this.d; } public List b() { return this.b; } public String c() { return this.a; } public String d() { return this.c; } public String toString() { return "VastAdVerification{vendorId='" + this.a + "'javascriptResources='" + this.b + "'verificationParameters='" + this.c + "'errorEventTrackers='" + this.d + "'}"; } private bq(String str, List list, String str2, Set set) { this.a = str; this.b = list; this.c = str2; this.d = set; } public static bq a(es esVar, eq eqVar, com.applovin.impl.sdk.j jVar) { try { String str = (String) esVar.a().get("vendor"); es b = esVar.b("VerificationParameters"); String d = b != null ? b.d() : null; List a = esVar.a("JavaScriptResource"); ArrayList arrayList = new ArrayList(a.size()); Iterator it = a.iterator(); while (it.hasNext()) { hq a2 = hq.a((es) it.next(), jVar); if (a2 != null) { arrayList.add(a2); } } HashMap hashMap = new HashMap(); mq.a(esVar, hashMap, eqVar, jVar); return new bq(str, arrayList, d, (Set) hashMap.get("verificationNotExecuted")); } catch (Throwable th) { jVar.J(); if (com.applovin.impl.sdk.n.a()) { jVar.J().a("VastAdVerification", "Error occurred while initializing", th); } jVar.E().a("VastAdVerification", th); return null; } } public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null || getClass() != obj.getClass()) { return false; } bq bqVar = (bq) obj; String str = this.a; if (str == null ? bqVar.a != null : !str.equals(bqVar.a)) { return false; } List list = this.b; if (list == null ? bqVar.b != null : !list.equals(bqVar.b)) { return false; } String str2 = this.c; if (str2 == null ? bqVar.c != null : !str2.equals(bqVar.c)) { return false; } Set set = this.d; Set set2 = bqVar.d; return set != null ? set.equals(set2) : set2 == null; } public int hashCode() { String str = this.a; int hashCode = (str != null ? str.hashCode() : 0) * 31; List list = this.b; int hashCode2 = (hashCode + (list != null ? list.hashCode() : 0)) * 31; String str2 = this.c; int hashCode3 = (hashCode2 + (str2 != null ? str2.hashCode() : 0)) * 31; Set set = this.d; return hashCode3 + (set != null ? set.hashCode() : 0); } }