2021-06-27 20:44:35 +00:00
|
|
|
package f0;
|
|
|
|
|
2021-12-21 23:37:30 +00:00
|
|
|
import b.d.b.a.a;
|
2021-11-08 18:25:28 +00:00
|
|
|
import d0.z.d.m;
|
|
|
|
import java.util.Collections;
|
|
|
|
import java.util.LinkedHashMap;
|
|
|
|
import java.util.Locale;
|
|
|
|
import java.util.Map;
|
|
|
|
/* compiled from: Challenge.kt */
|
|
|
|
public final class i {
|
|
|
|
public final Map<String, String> a;
|
2021-12-21 23:37:30 +00:00
|
|
|
|
|
|
|
/* renamed from: b reason: collision with root package name */
|
2022-02-14 21:43:51 +00:00
|
|
|
public final String f3649b;
|
2021-11-08 18:25:28 +00:00
|
|
|
|
|
|
|
public i(String str, Map<String, String> map) {
|
|
|
|
String str2;
|
|
|
|
m.checkParameterIsNotNull(str, "scheme");
|
|
|
|
m.checkParameterIsNotNull(map, "authParams");
|
2022-02-14 21:43:51 +00:00
|
|
|
this.f3649b = str;
|
2021-11-08 18:25:28 +00:00
|
|
|
LinkedHashMap linkedHashMap = new LinkedHashMap();
|
|
|
|
for (Map.Entry<String, String> entry : map.entrySet()) {
|
|
|
|
String key = entry.getKey();
|
|
|
|
String value = entry.getValue();
|
|
|
|
if (key != null) {
|
|
|
|
Locale locale = Locale.US;
|
|
|
|
m.checkExpressionValueIsNotNull(locale, "US");
|
|
|
|
str2 = key.toLowerCase(locale);
|
|
|
|
m.checkExpressionValueIsNotNull(str2, "(this as java.lang.String).toLowerCase(locale)");
|
|
|
|
} else {
|
|
|
|
str2 = null;
|
|
|
|
}
|
|
|
|
linkedHashMap.put(str2, value);
|
|
|
|
}
|
|
|
|
Map<String, String> unmodifiableMap = Collections.unmodifiableMap(linkedHashMap);
|
|
|
|
m.checkExpressionValueIsNotNull(unmodifiableMap, "unmodifiableMap<String?, String>(newAuthParams)");
|
|
|
|
this.a = unmodifiableMap;
|
|
|
|
}
|
|
|
|
|
|
|
|
public boolean equals(Object obj) {
|
|
|
|
if (obj instanceof i) {
|
|
|
|
i iVar = (i) obj;
|
2022-02-14 21:43:51 +00:00
|
|
|
if (m.areEqual(iVar.f3649b, this.f3649b) && m.areEqual(iVar.a, this.a)) {
|
2021-11-08 18:25:28 +00:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
public int hashCode() {
|
2022-02-14 21:43:51 +00:00
|
|
|
return this.a.hashCode() + a.m(this.f3649b, 899, 31);
|
2021-06-27 20:44:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public String toString() {
|
2022-02-14 21:43:51 +00:00
|
|
|
return this.f3649b + " authParams=" + this.a;
|
2021-06-27 20:44:35 +00:00
|
|
|
}
|
|
|
|
}
|