Live Football Updates v1.0版本的 MD5 值为:95609b5a5bec0a5f5a0b6e8e4d8f1cba
以下内容为反编译后的 d.java 源代码,内容仅作参考
package ak;
import com.ironsource.j4;
import com.ironsource.q2;
import dk.r;
import java.io.BufferedWriter;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.net.CookieManager;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URISyntaxException;
import java.net.URL;
import java.net.URLEncoder;
import java.nio.ByteBuffer;
import java.nio.charset.Charset;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Map;
import java.util.regex.Pattern;
import java.util.zip.GZIPInputStream;
import java.util.zip.Inflater;
import java.util.zip.InflaterInputStream;
public final class d {
public static final Charset f986c = Charset.forName("ISO-8859-1");
public final b f987a = new b();
public c f988b;
public static abstract class a<T> {
public static final URL f989e;
public URL f990a = f989e;
public int f991b = 1;
public final LinkedHashMap f992c = new LinkedHashMap();
public final LinkedHashMap f993d = new LinkedHashMap();
static {
try {
f989e = new URL("http://undefined/");
} catch (MalformedURLException e10) {
throw new IllegalStateException(e10);
}
}
public final void a(String str, String str2) {
g.e(str, q2.f19985p);
if (str2 == null) {
str2 = "";
}
g.e(str, q2.f19985p);
List<String> b10 = b(str);
if (b10.isEmpty()) {
b10 = new ArrayList<>();
this.f992c.put(str, b10);
}
b10.add(str2);
}
public final List<String> b(String str) {
g.f(str);
for (Map.Entry entry : this.f992c.entrySet()) {
if (str.equalsIgnoreCase((String) entry.getKey())) {
return (List) entry.getValue();
}
}
return Collections.emptyList();
}
public final boolean c(String str) {
g.c("Content-Encoding");
g.c(str);
g.e("Content-Encoding", q2.f19985p);
for (String str2 : b("Content-Encoding")) {
if (str.equalsIgnoreCase(str2)) {
return true;
}
}
return false;
}
public final void d(String str) {
Map.Entry entry;
g.e(str, q2.f19985p);
String t = a5.a.t(str);
LinkedHashMap linkedHashMap = this.f992c;
Iterator it = linkedHashMap.entrySet().iterator();
while (true) {
if (it.hasNext()) {
entry = (Map.Entry) it.next();
if (a5.a.t((String) entry.getKey()).equals(t)) {
break;
}
} else {
entry = null;
break;
}
}
if (entry != null) {
linkedHashMap.remove(entry.getKey());
}
}
public final a e(URL url) {
g.g(url, q2.h.H);
this.f990a = new e(url).b();
return this;
}
public final URL f() {
URL url = this.f990a;
if (url != f989e) {
return url;
}
throw new IllegalArgumentException("URL not set. Make sure to call #url(...) before executing the request.");
}
}
public static class b extends a<zj.b> implements zj.b {
public dk.f f998k;
public final CookieManager f1001n;
public String f997j = null;
public boolean f999l = false;
public final String f1000m = ak.c.f982c;
public volatile boolean f1002o = false;
public int f994f = 30000;
public final int f995g = 2097152;
public boolean f996h = true;
public final ArrayList i = new ArrayList();
static {
System.setProperty("sun.net.http.allowRestrictedHeaders", com.ironsource.mediationsdk.metadata.a.f19340g);
}
public b() {
this.f991b = 1;
a("Accept-Encoding", "gzip");
a("User-Agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36");
this.f998k = dk.f.a();
this.f1001n = new CookieManager();
}
}
public static class c extends a<Object> {
public static final Pattern f1003o = Pattern.compile("(\\w+)/\\w*\\+?xml.*");
public ByteBuffer f1004f;
public bk.a f1005g;
public HttpURLConnection f1006h;
public String i;
public final String f1007j;
public boolean f1008k = false;
public boolean f1009l = false;
public final int f1010m;
public final b f1011n;
public c(HttpURLConnection httpURLConnection, b bVar, c cVar) throws IOException {
int i;
this.f1010m = 0;
this.f1006h = httpURLConnection;
this.f1011n = bVar;
this.f991b = android.support.v4.media.session.a.k(httpURLConnection.getRequestMethod());
this.f990a = httpURLConnection.getURL();
httpURLConnection.getResponseCode();
httpURLConnection.getResponseMessage();
this.f1007j = httpURLConnection.getContentType();
LinkedHashMap linkedHashMap = new LinkedHashMap();
int i10 = 0;
while (true) {
String headerFieldKey = httpURLConnection.getHeaderFieldKey(i10);
String headerField = httpURLConnection.getHeaderField(i10);
if (headerFieldKey == null && headerField == null) {
break;
}
i10++;
if (headerFieldKey != null && headerField != null) {
if (linkedHashMap.containsKey(headerFieldKey)) {
((List) linkedHashMap.get(headerFieldKey)).add(headerField);
} else {
ArrayList arrayList = new ArrayList();
arrayList.add(headerField);
linkedHashMap.put(headerFieldKey, arrayList);
}
}
}
for (Map.Entry entry : linkedHashMap.entrySet()) {
String str = (String) entry.getKey();
if (str != null) {
List<String> list = (List) entry.getValue();
if (str.equalsIgnoreCase("Set-Cookie")) {
for (String str2 : list) {
if (str2 != null) {
r rVar = new r(str2);
String d10 = rVar.d(q2.i.f20137b);
rVar.g(q2.i.f20137b);
String trim = d10.trim();
String trim2 = rVar.d(";").trim();
if (trim.length() > 0 && !this.f993d.containsKey(trim)) {
g.e(trim, q2.f19985p);
g.g(trim2, q2.h.X);
this.f993d.put(trim, trim2);
}
}
}
}
for (String str3 : list) {
if (str3 != null) {
byte[] bytes = str3.getBytes(d.f986c);
int i11 = 3;
i11 = (bytes.length >= 3 && (bytes[0] & 255) == 239 && (bytes[1] & 255) == 187 && (bytes[2] & 255) == 191) ? i11 : 0;
int length = bytes.length;
boolean z10 = false;
while (i11 < length) {
byte b10 = bytes[i11];
if ((b10 & 128) != 0) {
if ((b10 & 224) == 192) {
i = i11 + 1;
} else if ((b10 & 240) != 224) {
if ((b10 & 248) != 240) {
z10 = false;
break;
}
i = i11 + 3;
} else {
i = i11 + 2;
}
if (i < bytes.length) {
while (i11 < i) {
i11++;
if ((bytes[i11] & 192) != 128) {
}
}
z10 = true;
}
z10 = false;
break;
}
i11++;
}
if (z10) {
str3 = new String(bytes, ak.c.f981b);
}
}
a(str, str3);
}
}
}
b bVar2 = this.f1011n;
URL url = this.f990a;
Map<String, List<String>> map = ak.b.f979a;
try {
bVar2.f1001n.put(url.toURI(), linkedHashMap);
if (cVar != null) {
for (Map.Entry entry2 : cVar.f993d.entrySet()) {
String str4 = (String) entry2.getKey();
g.e(str4, q2.f19985p);
if (!this.f993d.containsKey(str4)) {
String str5 = (String) entry2.getKey();
String str6 = (String) entry2.getValue();
g.e(str5, q2.f19985p);
g.g(str6, q2.h.X);
this.f993d.put(str5, str6);
}
}
cVar.h();
int i12 = cVar.f1010m + 1;
this.f1010m = i12;
if (i12 >= 20) {
throw new IOException(String.format("Too many redirects occurred trying to load URL %s", cVar.f()));
}
}
} catch (URISyntaxException e10) {
MalformedURLException malformedURLException = new MalformedURLException(e10.getMessage());
malformedURLException.initCause(e10);
throw malformedURLException;
}
}
public static c g(b bVar, c cVar) throws IOException {
Object[] objArr;
String str;
Object[] objArr2;
String c10;
HttpURLConnection httpURLConnection;
LinkedHashSet linkedHashSet;
HashSet hashSet;
int responseCode;
c cVar2;
InputStream inputStream;
InputStream inflaterInputStream;
HashSet hashSet2;
HashSet hashSet3;
synchronized (bVar) {
if (!bVar.f1002o) {
bVar.f1002o = true;
} else {
throw new h("Multiple threads were detected trying to execute the same request concurrently. Make sure to use Connection#newRequest() and do not share an executing request between threads.");
}
}
URL f10 = bVar.f();
if (f10 != null) {
String protocol = f10.getProtocol();
if (!protocol.equals("http") && !protocol.equals("https")) {
throw new MalformedURLException("Only http & https protocols supported");
}
boolean b10 = android.support.v4.media.session.a.b(bVar.f991b);
if (bVar.f997j != null) {
objArr = 1;
} else {
objArr = null;
}
if (!b10) {
String concat = "Cannot set a request body for HTTP method ".concat(android.support.v4.media.session.a.i(bVar.f991b));
if (objArr != null) {
throw new h(concat);
}
}
c cVar3 = null;
String str2 = null;
try {
try {
try {
try {
if (bVar.i.size() > 0 && (!b10 || objArr != null)) {
e eVar = new e(bVar.f());
ArrayList arrayList = bVar.i;
Iterator it = arrayList.iterator();
while (it.hasNext()) {
zj.a aVar = (zj.a) it.next();
if (!aVar.c()) {
StringBuilder sb = eVar.f1013b;
if (sb == null) {
eVar.f1013b = bk.d.b();
} else {
sb.append('&');
}
StringBuilder sb2 = eVar.f1013b;
String b11 = aVar.b();
Charset charset = ak.c.f981b;
sb2.append(URLEncoder.encode(b11, charset.name()));
sb2.append(j4.R);
sb2.append(URLEncoder.encode(aVar.value(), charset.name()));
} else {
throw new h("InputStream data not supported in URL query string.");
}
}
bVar.e(eVar.b());
arrayList.clear();
} else if (b10) {
List<String> b12 = bVar.b(j4.I);
if (b12.size() > 0) {
str = bk.d.g(b12, ", ");
} else {
str = null;
}
if (str != null) {
if (str.contains("multipart/form-data") && !str.contains("boundary")) {
c10 = ak.c.c();
g.e(j4.I, q2.f19985p);
bVar.d(j4.I);
bVar.a(j4.I, "multipart/form-data; boundary=" + c10);
long nanoTime = System.nanoTime();
httpURLConnection = (HttpURLConnection) bVar.f().openConnection();
httpURLConnection.setRequestMethod(android.support.v4.media.session.a.h(bVar.f991b));
httpURLConnection.setInstanceFollowRedirects(false);
httpURLConnection.setConnectTimeout(bVar.f994f);
httpURLConnection.setReadTimeout(bVar.f994f / 2);
if (android.support.v4.media.session.a.b(bVar.f991b)) {
httpURLConnection.setDoOutput(true);
}
Map<String, List<String>> map = ak.b.f979a;
linkedHashSet = new LinkedHashSet();
for (Map.Entry entry : bVar.f993d.entrySet()) {
linkedHashSet.add(((String) entry.getKey()) + q2.i.f20137b + ((String) entry.getValue()));
}
hashSet = null;
for (Map.Entry<String, List<String>> entry2 : bVar.f1001n.get(bVar.f990a.toURI(), ak.b.f979a).entrySet()) {
List<String> value = entry2.getValue();
if (value != null && value.size() != 0) {
String key = entry2.getKey();
if ("Cookie".equals(key)) {
hashSet2 = hashSet;
hashSet3 = linkedHashSet;
} else if ("Cookie2".equals(key)) {
hashSet3 = new HashSet();
hashSet2 = hashSet3;
}
hashSet3.addAll(value);
hashSet = hashSet2;
}
}
if (linkedHashSet.size() > 0) {
httpURLConnection.addRequestProperty("Cookie", bk.d.g(linkedHashSet, "; "));
}
if (hashSet != null && hashSet.size() > 0) {
httpURLConnection.addRequestProperty("Cookie2", bk.d.g(hashSet, "; "));
}
for (Map.Entry entry3 : bVar.f992c.entrySet()) {
for (String str3 : (List) entry3.getValue()) {
httpURLConnection.addRequestProperty((String) entry3.getKey(), str3);
}
}
httpURLConnection.connect();
if (httpURLConnection.getDoOutput()) {
OutputStream outputStream = httpURLConnection.getOutputStream();
try {
try {
i(bVar, outputStream, c10);
} catch (IOException e10) {
httpURLConnection.disconnect();
throw e10;
}
} finally {
outputStream.close();
}
}
responseCode = httpURLConnection.getResponseCode();
cVar2 = new c(httpURLConnection, bVar, cVar);
g.e("Location", q2.f19985p);
if (!(!cVar2.b("Location").isEmpty()) && bVar.f996h) {
if (responseCode != 307) {
f.h(1, "method");
bVar.f991b = 1;
bVar.i.clear();
bVar.f997j = null;
bVar.d(j4.I);
}
List<String> b13 = cVar2.b("Location");
if (b13.size() > 0) {
str2 = bk.d.g(b13, ", ");
}
g.f(str2);
if (str2.startsWith("http:/") && str2.charAt(6) != '/') {
str2 = str2.substring(6);
}
bVar.e(bk.d.i(bVar.f(), str2));
bVar.f1002o = false;
return g(bVar, cVar2);
} else if (responseCode < 200 && responseCode < 400) {
String str4 = cVar2.f1007j;
if (str4 != null && !str4.startsWith("text/") && !f1003o.matcher(str4).matches()) {
throw new zj.e(str4, bVar.f().toString());
}
cVar2.i = ak.c.b(cVar2.f1007j);
if (httpURLConnection.getContentLength() != 0 && bVar.f991b != 6) {
if (httpURLConnection.getErrorStream() != null) {
inputStream = httpURLConnection.getErrorStream();
} else {
inputStream = httpURLConnection.getInputStream();
}
if (cVar2.c("gzip")) {
inflaterInputStream = new GZIPInputStream(inputStream);
} else {
if (cVar2.c("deflate")) {
inflaterInputStream = new InflaterInputStream(inputStream, new Inflater(true));
}
bk.a a10 = bk.a.a(inputStream, bVar.f995g);
a10.f3808c = nanoTime;
a10.f3809d = bVar.f994f * 1000000;
cVar2.f1005g = a10;
}
inputStream = inflaterInputStream;
bk.a a102 = bk.a.a(inputStream, bVar.f995g);
a102.f3808c = nanoTime;
a102.f3809d = bVar.f994f * 1000000;
cVar2.f1005g = a102;
} else {
cVar2.f1004f = ByteBuffer.allocate(0);
}
bVar.f1002o = false;
cVar2.f1008k = true;
return cVar2;
} else {
throw new qi.b(responseCode, bVar.f().toString());
}
}
} else {
Charset charset2 = d.f986c;
Iterator it2 = bVar.i.iterator();
while (true) {
if (it2.hasNext()) {
if (((zj.a) it2.next()).c()) {
objArr2 = 1;
break;
}
} else {
objArr2 = null;
break;
}
}
if (objArr2 != null) {
c10 = ak.c.c();
g.e(j4.I, q2.f19985p);
bVar.d(j4.I);
bVar.a(j4.I, "multipart/form-data; boundary=" + c10);
long nanoTime2 = System.nanoTime();
httpURLConnection = (HttpURLConnection) bVar.f().openConnection();
httpURLConnection.setRequestMethod(android.support.v4.media.session.a.h(bVar.f991b));
httpURLConnection.setInstanceFollowRedirects(false);
httpURLConnection.setConnectTimeout(bVar.f994f);
httpURLConnection.setReadTimeout(bVar.f994f / 2);
if (android.support.v4.media.session.a.b(bVar.f991b)) {
}
Map<String, List<String>> map2 = ak.b.f979a;
linkedHashSet = new LinkedHashSet();
while (r9.hasNext()) {
}
hashSet = null;
while (r9.hasNext()) {
}
if (linkedHashSet.size() > 0) {
}
if (hashSet != null) {
httpURLConnection.addRequestProperty("Cookie2", bk.d.g(hashSet, "; "));
}
while (r5.hasNext()) {
}
httpURLConnection.connect();
if (httpURLConnection.getDoOutput()) {
}
responseCode = httpURLConnection.getResponseCode();
cVar2 = new c(httpURLConnection, bVar, cVar);
g.e("Location", q2.f19985p);
if (!(!cVar2.b("Location").isEmpty())) {
}
if (responseCode < 200) {
}
throw new qi.b(responseCode, bVar.f().toString());
}
g.e(j4.I, q2.f19985p);
bVar.d(j4.I);
bVar.a(j4.I, "application/x-www-form-urlencoded; charset=" + bVar.f1000m);
}
}
g.e("Location", q2.f19985p);
if (!(!cVar2.b("Location").isEmpty())) {
}
if (responseCode < 200) {
}
throw new qi.b(responseCode, bVar.f().toString());
} catch (IOException e11) {
e = e11;
cVar3 = cVar2;
if (cVar3 != null) {
cVar3.h();
}
throw e;
}
httpURLConnection.connect();
if (httpURLConnection.getDoOutput()) {
}
responseCode = httpURLConnection.getResponseCode();
cVar2 = new c(httpURLConnection, bVar, cVar);
} catch (IOException e12) {
e = e12;
}
} finally {
bVar.f1002o = false;
}
hashSet = null;
while (r9.hasNext()) {
}
if (linkedHashSet.size() > 0) {
}
if (hashSet != null) {
}
while (r5.hasNext()) {
}
} catch (URISyntaxException e13) {
MalformedURLException malformedURLException = new MalformedURLException(e13.getMessage());
malformedURLException.initCause(e13);
throw malformedURLException;
}
c10 = null;
long nanoTime22 = System.nanoTime();
httpURLConnection = (HttpURLConnection) bVar.f().openConnection();
httpURLConnection.setRequestMethod(android.support.v4.media.session.a.h(bVar.f991b));
httpURLConnection.setInstanceFollowRedirects(false);
httpURLConnection.setConnectTimeout(bVar.f994f);
httpURLConnection.setReadTimeout(bVar.f994f / 2);
if (android.support.v4.media.session.a.b(bVar.f991b)) {
}
Map<String, List<String>> map22 = ak.b.f979a;
linkedHashSet = new LinkedHashSet();
while (r9.hasNext()) {
}
} else {
throw new h("URL must be specified to connect");
}
}
public static void i(zj.b bVar, OutputStream outputStream, String str) throws IOException {
b bVar2 = (b) bVar;
ArrayList arrayList = bVar2.i;
String str2 = bVar2.f1000m;
BufferedWriter bufferedWriter = new BufferedWriter(new OutputStreamWriter(outputStream, Charset.forName(str2)));
if (str != null) {
Iterator it = arrayList.iterator();
while (it.hasNext()) {
zj.a aVar = (zj.a) it.next();
bufferedWriter.write("--");
bufferedWriter.write(str);
bufferedWriter.write("\r\n");
bufferedWriter.write("Content-Disposition: form-data; name=\"");
String b10 = aVar.b();
Charset charset = d.f986c;
bufferedWriter.write(b10.replace("\"", "%22"));
bufferedWriter.write("\"");
InputStream h10 = aVar.h();
if (h10 != null) {
bufferedWriter.write("; filename=\"");
bufferedWriter.write(aVar.value().replace("\"", "%22"));
bufferedWriter.write("\"\r\nContent-Type: ");
String a10 = aVar.a();
if (a10 == null) {
a10 = "application/octet-stream";
}
bufferedWriter.write(a10);
bufferedWriter.write("\r\n\r\n");
bufferedWriter.flush();
Pattern pattern = ak.c.f980a;
byte[] bArr = new byte[32768];
while (true) {
int read = h10.read(bArr);
if (read == -1) {
break;
}
outputStream.write(bArr, 0, read);
}
outputStream.flush();
} else {
bufferedWriter.write("\r\n\r\n");
bufferedWriter.write(aVar.value());
}
bufferedWriter.write("\r\n");
}
bufferedWriter.write("--");
bufferedWriter.write(str);
bufferedWriter.write("--");
} else {
String str3 = bVar2.f997j;
if (str3 != null) {
bufferedWriter.write(str3);
} else {
Iterator it2 = arrayList.iterator();
boolean z10 = true;
while (it2.hasNext()) {
zj.a aVar2 = (zj.a) it2.next();
if (!z10) {
bufferedWriter.append('&');
} else {
z10 = false;
}
bufferedWriter.write(URLEncoder.encode(aVar2.b(), str2));
bufferedWriter.write(61);
bufferedWriter.write(URLEncoder.encode(aVar2.value(), str2));
}
}
}
bufferedWriter.close();
}
public final void h() {
bk.a aVar = this.f1005g;
if (aVar != null) {
try {
aVar.close();
} catch (IOException unused) {
} catch (Throwable th2) {
this.f1005g = null;
throw th2;
}
this.f1005g = null;
}
HttpURLConnection httpURLConnection = this.f1006h;
if (httpURLConnection != null) {
httpURLConnection.disconnect();
this.f1006h = null;
}
}
}
public final ck.f a() throws IOException {
b bVar = this.f987a;
bVar.getClass();
f.h(1, "method");
bVar.f991b = 1;
c g10 = c.g(bVar, null);
this.f988b = g10;
g.f(g10);
c cVar = this.f988b;
g.a("Request must be executed (with .execute(), .get(), or .post() before parsing response", cVar.f1008k);
InputStream inputStream = cVar.f1005g;
if (cVar.f1004f != null) {
inputStream = new ByteArrayInputStream(cVar.f1004f.array());
cVar.f1009l = false;
}
if (!cVar.f1009l) {
ck.f d10 = ak.c.d(inputStream, cVar.i, cVar.f990a.toExternalForm(), cVar.f1011n.f998k);
cVar.i = d10.f4277k.f4282b.name();
cVar.f1009l = true;
cVar.h();
return d10;
}
throw new h("Input stream already read and parsed, cannot re-read.");
}
public final d b(HashMap hashMap) {
for (Map.Entry entry : hashMap.entrySet()) {
String str = (String) entry.getKey();
b bVar = this.f987a;
bVar.getClass();
g.e(str, q2.f19985p);
bVar.d(str);
bVar.a(str, (String) entry.getValue());
}
return this;
}
public final d c(int i) {
boolean z10;
b bVar = this.f987a;
bVar.getClass();
if (i >= 0) {
z10 = true;
} else {
z10 = false;
}
g.a("Timeout milliseconds must be 0 (infinite) or greater", z10);
bVar.f994f = i;
return this;
}
}