正在查看: Share Any v2.1.7 应用的 c.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Share Any v2.1.7 应用的 c.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package nd;
import java.io.BufferedInputStream;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.Closeable;
import java.io.DataOutput;
import java.io.DataOutputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.FilterOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.io.PrintStream;
import java.io.PrintWriter;
import java.io.RandomAccessFile;
import java.io.UnsupportedEncodingException;
import java.io.Writer;
import java.net.InetAddress;
import java.net.InetSocketAddress;
import java.net.ServerSocket;
import java.net.Socket;
import java.net.SocketException;
import java.net.SocketTimeoutException;
import java.net.URL;
import java.net.URLDecoder;
import java.nio.ByteBuffer;
import java.nio.channels.FileChannel;
import java.nio.charset.Charset;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Date;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.Objects;
import java.util.Properties;
import java.util.StringTokenizer;
import java.util.TimeZone;
import java.util.logging.Level;
import java.util.logging.Logger;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import java.util.zip.GZIPOutputStream;
import nd.d;
import org.apache.commons.math3.stat.inference.KolmogorovSmirnovTest;
import org.apache.commons.math3.util.FastMath;
import x5.i;
public abstract class c {
public static final Pattern h;
public static final Pattern i;
public static final Pattern j;
public static final Pattern k;
public static final Pattern l;
public static final String m;
public static final String n;
public static final Logger o;
public static Map<String, String> p;
public final int b;
public volatile ServerSocket c;
public Thread e;
public s d = new g();
public final String a = null;
public v g = new j(this, null);
public b f = new f();
public interface b {
void a();
void b(RunnableC0010c runnableC0010c);
void c(RunnableC0010c runnableC0010c);
}
public class RunnableC0010c implements Runnable {
public final InputStream a;
public final Socket b;
public RunnableC0010c(InputStream inputStream, Socket socket, a aVar) {
this.a = inputStream;
this.b = socket;
}
@Override
public void run() {
Socket socket;
OutputStream outputStream = null;
try {
try {
outputStream = this.b.getOutputStream();
Objects.requireNonNull((j) c.this.g);
k kVar = c.this.new k(new i(), this.a, outputStream, this.b.getInetAddress());
while (!this.b.isClosed()) {
kVar.d();
}
c.n(outputStream);
c.n(this.a);
socket = this.b;
} catch (Exception e) {
if ((!(e instanceof SocketException) || !m5.h.a(new byte[]{-111, 70, -79, 72, -105, 83, -85, 87, -69, 7, -116, 79, -86, 83, -69, 72, -88, 73}, new byte[]{-33, 39}).equals(e.getMessage())) && !(e instanceof SocketTimeoutException)) {
c.o.log(Level.FINE, m5.h.a(new byte[]{65, 120, 111, 122, 119, 121, 107, 116, 99, 99, 107, 120, 108, 55, 117, 126, 118, Byte.MAX_VALUE, 34, 99, 106, 114, 34, 116, 110, 126, 103, 121, 118, 55, 96, 101, 109, 124, 103, 121}, new byte[]{2, 23}), (Throwable) e);
}
c.n(outputStream);
c.n(this.a);
socket = this.b;
}
c.n(socket);
c.this.f.c(this);
} catch (Throwable th) {
c.n(outputStream);
c.n(this.a);
c.n(this.b);
c.this.f.c(this);
throw th;
}
}
}
public static class d {
}
public class e implements Iterable<String> {
public final HashMap<String, String> a = new HashMap<>();
public final ArrayList<d> b = new ArrayList<>();
public e(c cVar, Map<String, String> map) {
String str = map.get(m5.h.a(new byte[]{-37, -105, -41, -109, -47, -99}, new byte[]{-72, -8}));
if (str != null) {
for (String str2 : str.split(m5.h.a(new byte[]{65}, new byte[]{122, -115}))) {
String[] split = str2.trim().split(m5.h.a(new byte[]{Byte.MAX_VALUE}, new byte[]{66, -67}));
if (split.length == 2) {
this.a.put(split[0], split[1]);
}
}
}
}
public void a(o oVar) {
Iterator<d> it = this.b.iterator();
while (it.hasNext()) {
d next = it.next();
String a = m5.h.a(new byte[]{4, 41, 35, 97, 20, 35, 56, 39, 62, 41}, new byte[]{87, 76});
Objects.requireNonNull(next);
oVar.c(a, String.format(m5.h.a(new byte[]{45, 58, 53, 108, 123, 114, 40, 44, 112, 57, 97, 59, 109, 58, 53, 108, 123}, new byte[]{8, 73}), null, null, null));
}
}
@Override
public Iterator<String> iterator() {
return this.a.keySet().iterator();
}
}
public static class f implements b {
public long a;
public final List<RunnableC0010c> b = Collections.synchronizedList(new ArrayList());
@Override
public void a() {
Iterator it = new ArrayList(this.b).iterator();
while (it.hasNext()) {
RunnableC0010c runnableC0010c = (RunnableC0010c) it.next();
c.n(runnableC0010c.a);
c.n(runnableC0010c.b);
}
}
@Override
public void b(RunnableC0010c runnableC0010c) {
this.a++;
Thread thread = new Thread(runnableC0010c);
thread.setDaemon(true);
thread.setName(m5.h.a(new byte[]{34, -41, 2, -39, 36, -62, 24, -58, 8, -106, 62, -45, 29, -61, 9, -59, 24, -106, 60, -60, 3, -43, 9, -59, 31, -39, 30, -106, 68, -107}, new byte[]{108, -74}) + this.a + m5.h.a(new byte[]{Byte.MAX_VALUE}, new byte[]{86, -31}));
this.b.add(runnableC0010c);
thread.start();
}
@Override
public void c(RunnableC0010c runnableC0010c) {
this.b.remove(runnableC0010c);
}
}
public static class g implements s {
}
public static class h implements t {
public final File a;
public final OutputStream b;
public h(File file) {
File createTempFile = File.createTempFile(m5.h.a(new byte[]{108, 45, 76, 35, 106, 24, 118, 28, 102, 97}, new byte[]{34, 76}), "", file);
this.a = createTempFile;
this.b = new FileOutputStream(createTempFile);
}
@Override
public void a() {
c.n(this.b);
if (!this.a.delete()) {
throw new Exception(m5.h.a(new byte[]{-82, 121, -72, 122, -87, 54, -93, 121, -71, 54, -87, 115, -95, 115, -71, 115, -19, 98, -88, 123, -67, 121, -65, 119, -65, 111, -19, 112, -92, 122, -88}, new byte[]{-51, 22}));
}
}
public String b() {
return this.a.getAbsolutePath();
}
}
public static class i implements u {
public final File a;
public final List<t> b;
public i() {
File file = new File(System.getProperty(m5.h.a(new byte[]{-17, 60, -13, 60, -85, 52, -22, 115, -15, 48, -11, 57, -20, 47}, new byte[]{-123, 93})));
this.a = file;
if (!file.exists()) {
file.mkdirs();
}
this.b = new ArrayList();
}
public void a() {
Iterator<t> it = this.b.iterator();
while (it.hasNext()) {
try {
it.next().a();
} catch (Exception e) {
c.o.log(Level.WARNING, m5.h.a(new byte[]{32, -92, 54, -89, 39, -21, 45, -92, 55, -21, 39, -82, 47, -82, 55, -82, 99, -83, 42, -89, 38, -21}, new byte[]{67, -53}), (Throwable) e);
}
}
this.b.clear();
}
}
public class j implements v {
public j(c cVar, a aVar) {
}
}
public class k implements l {
public final u a;
public final OutputStream b;
public final BufferedInputStream c;
public int d;
public int e;
public String f;
public m g;
public Map<String, String> h;
public Map<String, String> i;
public e j;
public String k;
public String l;
public String m;
public n n;
public k(u uVar, InputStream inputStream, OutputStream outputStream, InetAddress inetAddress) {
this.a = uVar;
this.c = new BufferedInputStream(inputStream, 8192);
this.b = outputStream;
this.l = (inetAddress.isLoopbackAddress() || inetAddress.isAnyLocalAddress()) ? m5.h.a(new byte[]{74, 10, 76, 22, 75, 22, 75, 22, 74}, new byte[]{123, 56}) : inetAddress.getHostAddress().toString();
this.i = new HashMap();
}
public final void a(BufferedReader bufferedReader, Map<String, String> map, Map<String, String> map2, Map<String, String> map3) {
try {
String readLine = bufferedReader.readLine();
if (readLine == null) {
return;
}
StringTokenizer stringTokenizer = new StringTokenizer(readLine);
if (!stringTokenizer.hasMoreTokens()) {
throw new p(o.EnumC0011c.o, m5.h.a(new byte[]{87, -90, 81, -57, 71, -94, 68, -78, 80, -76, 65, -35, 53, -76, 108, -119, 97, -122, 109, -57, 112, -107, 103, -120, 103, -55, 53, -78, 102, -122, 114, -126, 47, -57, 82, -94, 65, -57, 58, -126, 109, -122, 120, -105, 121, -126, 58, -127, 124, -117, 112, -55, 125, -109, 120, -117}, new byte[]{21, -25}));
}
map.put(m5.h.a(new byte[]{-99, -85, -124, -90, -97, -86}, new byte[]{-16, -50}), stringTokenizer.nextToken());
if (!stringTokenizer.hasMoreTokens()) {
throw new p(o.EnumC0011c.o, m5.h.a(new byte[]{106, -106, 108, -9, 122, -110, 121, -126, 109, -124, 124, -19, 8, -102, 65, -92, 91, -66, 70, -80, 8, -126, 122, -98, 6, -9, 125, -92, 73, -80, 77, -19, 8, -112, 109, -125, 8, -8, 77, -81, 73, -70, 88, -69, 77, -8, 78, -66, 68, -78, 6, -65, 92, -70, 68}, new byte[]{40, -41}));
}
String nextToken = stringTokenizer.nextToken();
int indexOf = nextToken.indexOf(63);
if (indexOf >= 0) {
c(nextToken.substring(indexOf + 1), map2);
nextToken = nextToken.substring(0, indexOf);
}
String h = c.h(nextToken);
if (stringTokenizer.hasMoreTokens()) {
this.m = stringTokenizer.nextToken();
} else {
this.m = m5.h.a(new byte[]{27, 50, 7, 54, 124, 87, 125, 87}, new byte[]{83, 102});
c.o.log(Level.FINE, m5.h.a(new byte[]{9, -22, 71, -11, 21, -22, 19, -22, 4, -22, 11, -91, 17, -32, 21, -10, 14, -22, 9, -91, 20, -11, 2, -26, 14, -29, 14, -32, 3, -87, 71, -10, 19, -9, 6, -21, 0, -32, 73, -91, 38, -10, 20, -16, 10, -20, 9, -30, 71, -51, 51, -47, 55, -86, 86, -85, 86, -85}, new byte[]{103, -123}));
}
while (true) {
String readLine2 = bufferedReader.readLine();
if (readLine2 == null || readLine2.trim().length() <= 0) {
break;
}
int indexOf2 = readLine2.indexOf(58);
if (indexOf2 >= 0) {
map3.put(readLine2.substring(0, indexOf2).trim().toLowerCase(Locale.US), readLine2.substring(indexOf2 + 1).trim());
}
}
map.put(m5.h.a(new byte[]{-90, -124, -70}, new byte[]{-45, -10}), h);
} catch (IOException e) {
throw new p(o.EnumC0011c.f19x, m5.h.a(new byte[]{114, 41, 115, 58, 100, 62, 1, 37, 111, 56, 100, 62, 111, 45, 109, 76, 100, 62, 115, 35, 115, 86, 1, 37, 110, 41, 89, 15, 68, 28, 85, 5, 78, 2, 27, 76}, new byte[]{33, 108}) + e.getMessage(), e);
}
}
public final void b(String str, String str2, ByteBuffer byteBuffer, Map<String, String> map, Map<String, String> map2) {
try {
int[] h = h(byteBuffer, str.getBytes());
int i = 0;
int i2 = 2;
if (h.length < 2) {
throw new p(o.EnumC0011c.o, m5.h.a(new byte[]{125, -80, 123, -47, 109, -76, 110, -92, 122, -94, 107, -53, 31, -78, 80, -97, 75, -108, 81, -123, 31, -123, 70, -127, 90, -47, 86, -126, 31, -100, 74, -99, 75, -104, 79, -112, 77, -123, 16, -105, 80, -125, 82, -36, 91, -112, 75, -112, 31, -109, 74, -123, 31, -110, 80, -97, 75, -112, 86, -97, 76, -47, 83, -108, 76, -126, 31, -123, 87, -112, 81, -47, 75, -122, 80, -47, 93, -98, 74, -97, 91, -112, 77, -120, 31, -126, 75, -125, 86, -97, 88, -126, 17}, new byte[]{63, -15}));
}
byte[] bArr = new byte[FastMath.LN_MANT_LEN];
int i3 = 0;
for (int i4 = 1; i3 < h.length - i4; i4 = 1) {
byteBuffer.position(h[i3]);
int remaining = byteBuffer.remaining() < 1024 ? byteBuffer.remaining() : FastMath.LN_MANT_LEN;
byteBuffer.get(bArr, i, remaining);
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(new ByteArrayInputStream(bArr, i, remaining), Charset.forName(str2)), remaining);
if (!bufferedReader.readLine().contains(str)) {
throw new p(o.EnumC0011c.o, m5.h.a(new byte[]{25, 48, 31, 81, 9, 52, 10, 36, 30, 34, 15, 75, 123, 50, 52, 31, 47, 20, 53, 5, 123, 5, 34, 1, 62, 81, 50, 2, 123, 28, 46, 29, 47, 24, 43, 16, 41, 5, 116, 23, 52, 3, 54, 92, 63, 16, 47, 16, 123, 19, 46, 5, 123, 18, 51, 4, 53, 26, 123, 21, 52, 20, 40, 81, 53, 30, 47, 81, 40, 5, 58, 3, 47, 81, 44, 24, 47, 25, 123, 19, 52, 4, 53, 21, 58, 3, 34, 95}, new byte[]{91, 113}));
}
String str3 = null;
String str4 = null;
String str5 = null;
String readLine = bufferedReader.readLine();
int i5 = 2;
while (readLine != null && readLine.trim().length() > 0) {
Matcher matcher = c.j.matcher(readLine);
if (matcher.matches()) {
Matcher matcher2 = c.l.matcher(matcher.group(i2));
while (matcher2.find()) {
String str6 = str3;
String group = matcher2.group(1);
String str7 = str4;
if (group.equalsIgnoreCase(m5.h.a(new byte[]{-118, -64, -119, -60}, new byte[]{-28, -95}))) {
str3 = matcher2.group(2);
} else if (group.equalsIgnoreCase(m5.h.a(new byte[]{107, -87, 97, -91, 99, -95, 96, -91}, new byte[]{13, -64}))) {
str4 = matcher2.group(2);
str3 = str6;
} else {
str3 = str6;
}
str4 = str7;
}
}
Matcher matcher3 = c.k.matcher(readLine);
if (matcher3.matches()) {
str5 = matcher3.group(2).trim();
}
readLine = bufferedReader.readLine();
i5++;
i2 = 2;
}
int i6 = 0;
while (true) {
int i7 = i5 - 1;
if (i5 <= 0) {
break;
}
i6 = o(bArr, i6);
i5 = i7;
}
if (i6 >= remaining - 4) {
throw new p(o.EnumC0011c.f19x, m5.h.a(new byte[]{-110, -82, -77, -81, -74, -85, -66, -87, -85, -5, -73, -66, -66, -65, -70, -87, -1, -88, -74, -95, -70, -5, -70, -93, -68, -66, -70, -65, -84, -5, -110, -102, -121, -124, -105, -98, -98, -97, -102, -119, Byte.MIN_VALUE, -120, -106, -127, -102, -11}, new byte[]{-33, -37}));
}
int i8 = h[i3] + i6;
i3++;
int i9 = h[i3] - 4;
byteBuffer.position(i8);
if (str5 == null) {
byte[] bArr2 = new byte[i9 - i8];
byteBuffer.get(bArr2);
map.put(str3, new String(bArr2, str2));
} else {
String n = n(byteBuffer, i8, i9 - i8, str4);
if (map2.containsKey(str3)) {
int i10 = 2;
while (true) {
if (!map2.containsKey(str3 + i10)) {
break;
} else {
i10++;
}
}
map2.put(str3 + i10, n);
} else {
map2.put(str3, n);
}
map.put(str3, str4);
}
i = 0;
i2 = 2;
}
} catch (p e) {
throw e;
} catch (Exception e2) {
throw new p(o.EnumC0011c.f19x, e2.toString());
}
}
public final void c(String str, Map<String, String> map) {
if (str == null) {
this.k = "";
return;
}
this.k = str;
StringTokenizer stringTokenizer = new StringTokenizer(str, m5.h.a(new byte[]{81}, new byte[]{119, 93}));
while (stringTokenizer.hasMoreTokens()) {
String nextToken = stringTokenizer.nextToken();
int indexOf = nextToken.indexOf(61);
if (indexOf >= 0) {
map.put(c.h(nextToken.substring(0, indexOf)).trim(), c.h(nextToken.substring(indexOf + 1)));
} else {
map.put(c.h(nextToken).trim(), "");
}
}
}
public void d() {
p pVar;
IOException iOException;
Throwable th;
OutputStream outputStream;
byte[] bArr;
int read;
o oVar = null;
try {
try {
bArr = new byte[8192];
this.d = 0;
this.e = 0;
this.c.mark(8192);
try {
read = this.c.read(bArr, 0, 8192);
} catch (Exception unused) {
c.n(this.c);
c.n(this.b);
throw new SocketException(m5.h.a(new byte[]{113, -69, 81, -75, 119, -82, 75, -86, 91, -6, 108, -78, 74, -82, 91, -75, 72, -76}, new byte[]{63, -38}));
}
} catch (Throwable th2) {
th = th2;
}
} catch (SocketException e) {
throw e;
} catch (SocketTimeoutException e2) {
throw e2;
} catch (IOException e3) {
iOException = e3;
} catch (p e4) {
pVar = e4;
}
if (read == -1) {
c.n(this.c);
c.n(this.b);
throw new SocketException(m5.h.a(new byte[]{53, 36, 21, 42, 51, 49, 15, 53, 31, 101, 40, 45, 14, 49, 31, 42, 12, 43}, new byte[]{123, 69}));
}
while (read > 0) {
int i = this.e + read;
this.e = i;
int e5 = e(bArr, i);
this.d = e5;
if (e5 > 0) {
break;
}
BufferedInputStream bufferedInputStream = this.c;
int i2 = this.e;
read = bufferedInputStream.read(bArr, i2, 8192 - i2);
}
if (this.d < this.e) {
this.c.reset();
this.c.skip(this.d);
}
this.h = new HashMap();
Map<String, String> map = this.i;
if (map == null) {
this.i = new HashMap();
} else {
map.clear();
}
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(new ByteArrayInputStream(bArr, 0, this.e)));
HashMap hashMap = new HashMap();
a(bufferedReader, hashMap, this.h, this.i);
if (this.l != null) {
this.i.put(m5.h.a(new byte[]{-95, 70, -66, 76, -89, 70, -2, 66, -73, 71, -95}, new byte[]{-45, 35}), this.l);
this.i.put(m5.h.a(new byte[]{-124, 71, -104, 67, -63, 80, Byte.MIN_VALUE, 90, -119, 93, -104, 30, -123, 67}, new byte[]{-20, 51}), this.l);
}
m a = m.a((String) hashMap.get(m5.h.a(new byte[]{-83, 24, -76, 21, -81, 25}, new byte[]{-64, 125})));
this.g = a;
if (a == null) {
throw new p(o.EnumC0011c.o, m5.h.a(new byte[]{15, 14, 9, 111, 31, 10, 28, 26, 8, 28, 25, 117, 109, 28, 52, 33, 57, 46, 53, 111, 40, 61, 63, 32, 63, 97}, new byte[]{77, 79}));
}
this.f = (String) hashMap.get(m5.h.a(new byte[]{73, -39, 85}, new byte[]{60, -85}));
this.j = new e(c.this, this.i);
String str = this.i.get(m5.h.a(new byte[]{-104, 110, -107, 111, -98, 98, -113, 104, -108, 111}, new byte[]{-5, 1}));
boolean z = this.m.equals(m5.h.a(new byte[]{83, -127, 79, -123, 52, -28, 53, -28}, new byte[]{27, -43})) && (str == null || !str.matches(m5.h.a(new byte[]{76, 98, 13, 116, 74, 119, 7, 49, 11, 46, 1, 115, 78}, new byte[]{100, 93})));
o o = c.this.o(this);
try {
} catch (SocketException e6) {
throw e6;
} catch (SocketTimeoutException e7) {
throw e7;
} catch (IOException e8) {
iOException = e8;
oVar = o;
c.m(o.EnumC0011c.f19x, m5.h.a(new byte[]{120, -101, 116, -118, 35, -114, 96, -97, 101, -112}, new byte[]{12, -2}), m5.h.a(new byte[]{-66, -35, -65, -50, -88, -54, -51, -47, -93, -52, -88, -54, -93, -39, -95, -72, -88, -54, -65, -41, -65, -94, -51, -47, -94, -35, -107, -5, -120, -24, -103, -15, -126, -10, -41, -72}, new byte[]{-19, -104}) + iOException.getMessage()).h(this.b);
outputStream = this.b;
c.n(outputStream);
c.n(oVar);
((i) this.a).a();
} catch (p e9) {
pVar = e9;
oVar = o;
c.m(pVar.a(), m5.h.a(new byte[]{32, -19, 44, -4, 123, -8, 56, -23, 61, -26}, new byte[]{84, -120}), pVar.getMessage()).h(this.b);
outputStream = this.b;
c.n(outputStream);
c.n(oVar);
((i) this.a).a();
} catch (Throwable th3) {
th = th3;
oVar = o;
c.n(oVar);
((i) this.a).a();
throw th;
}
if (o == null) {
throw new p(o.EnumC0011c.f19x, m5.h.a(new byte[]{-34, 64, -33, 83, -56, 87, -83, 76, -61, 81, -56, 87, -61, 68, -63, 37, -56, 87, -33, 74, -33, 63, -83, 86, -24, 119, -5, 96, -91, 44, -83, 119, -24, 113, -8, 119, -29, 96, -23, 37, -20, 37, -29, 112, -31, 105, -83, 119, -24, 118, -3, 106, -29, 118, -24, 43}, new byte[]{-115, 5}));
}
String str2 = this.i.get(m5.h.a(new byte[]{-72, -86, -70, -84, -87, -67, -12, -84, -73, -86, -74, -83, -80, -89, -66}, new byte[]{-39, -55}));
this.j.a(o);
o.w(this.g);
o.s(c.this.r(o) && str2 != null && str2.contains(m5.h.a(new byte[]{7, 92, 9, 86}, new byte[]{96, 38})));
o.t(z);
o.h(this.b);
if (!z || m5.h.a(new byte[]{-64, -120, -52, -105, -58}, new byte[]{-93, -28}).equalsIgnoreCase(o.d(m5.h.a(new byte[]{14, -54, 3, -53, 8, -58, 25, -52, 2, -53}, new byte[]{109, -91})))) {
throw new SocketException(m5.h.a(new byte[]{-96, 113, Byte.MIN_VALUE, Byte.MAX_VALUE, -90, 100, -102, 96, -118, 48, -67, 120, -101, 100, -118, Byte.MAX_VALUE, -103, 126}, new byte[]{-18, 16}));
}
c.n(o);
((i) this.a).a();
}
public final int e(byte[] bArr, int i) {
int i2;
int i3 = 0;
while (true) {
int i4 = i3 + 1;
if (i4 >= i) {
return 0;
}
if (bArr[i3] == 13 && bArr[i4] == 10 && (i2 = i3 + 3) < i && bArr[i3 + 2] == 13 && bArr[i2] == 10) {
return i3 + 4;
}
if (bArr[i3] == 10 && bArr[i4] == 10) {
return i3 + 2;
}
i3 = i4;
}
}
public final String f(String str, Pattern pattern, String str2) {
Matcher matcher = pattern.matcher(str);
return matcher.find() ? matcher.group(2) : str2;
}
public long g() {
if (this.i.containsKey(m5.h.a(new byte[]{-102, 61, -105, 38, -100, 60, -115, Byte.MAX_VALUE, -107, 55, -105, 53, -115, 58}, new byte[]{-7, 82}))) {
return Long.parseLong(this.i.get(m5.h.a(new byte[]{25, -123, 20, -98, 31, -124, 14, -57, 22, -113, 20, -115, 14, -126}, new byte[]{122, -22})));
}
if (this.d < this.e) {
return r1 - r0;
}
return 0L;
}
public final int[] h(ByteBuffer byteBuffer, byte[] bArr) {
int[] iArr = new int[0];
if (byteBuffer.remaining() < bArr.length) {
return iArr;
}
int length = bArr.length + 4096;
byte[] bArr2 = new byte[length];
int remaining = byteBuffer.remaining() < length ? byteBuffer.remaining() : length;
byteBuffer.get(bArr2, 0, remaining);
int length2 = remaining - bArr.length;
int i = 0;
do {
for (int i2 = 0; i2 < length2; i2++) {
for (int i3 = 0; i3 < bArr.length && bArr2[i2 + i3] == bArr[i3]; i3++) {
if (i3 == bArr.length - 1) {
int[] iArr2 = new int[iArr.length + 1];
System.arraycopy(iArr, 0, iArr2, 0, iArr.length);
iArr2[iArr.length] = i + i2;
iArr = iArr2;
}
}
}
i += length2;
System.arraycopy(bArr2, length - bArr.length, bArr2, 0, bArr.length);
length2 = length - bArr.length;
if (byteBuffer.remaining() < length2) {
length2 = byteBuffer.remaining();
}
byteBuffer.get(bArr2, bArr.length, length2);
} while (length2 > 0);
return iArr;
}
public final m i() {
return this.g;
}
public final Map<String, String> j() {
return this.h;
}
public final RandomAccessFile k() {
try {
i iVar = (i) this.a;
h hVar = new h(iVar.a);
iVar.b.add(hVar);
return new RandomAccessFile(hVar.b(), m5.h.a(new byte[]{81, 90}, new byte[]{35, 45}));
} catch (Exception e) {
throw new Error(e);
}
}
public final String l() {
return this.f;
}
public void m(Map<String, String> map) {
RandomAccessFile randomAccessFile;
ByteArrayOutputStream byteArrayOutputStream;
RandomAccessFile randomAccessFile2;
DataOutput dataOutput;
ByteBuffer map2;
ByteBuffer byteBuffer;
RandomAccessFile randomAccessFile3;
StringTokenizer stringTokenizer;
try {
PrintStream printStream = System.out;
StringBuilder sb = new StringBuilder();
?? r18 = -67;
sb.append(m5.h.a(new byte[]{17, -77, 17, -21, 27, -82, 10, -82, 0, -67, 12, -21, 88, -6, 88, -21}, new byte[]{105, -53}));
sb.append(System.currentTimeMillis());
printStream.println(sb.toString());
long g = g();
if (g < 1024) {
try {
byteArrayOutputStream = new ByteArrayOutputStream();
randomAccessFile2 = null;
dataOutput = new DataOutputStream(byteArrayOutputStream);
} catch (Throwable th) {
th = th;
randomAccessFile = null;
c.n(randomAccessFile);
throw th;
}
} else {
RandomAccessFile k = k();
randomAccessFile2 = k;
byteArrayOutputStream = null;
dataOutput = k;
}
try {
byte[] bArr = new byte[512];
long j = 0;
long j2 = g;
while (this.e >= 0 && j2 > 0) {
try {
int read = this.c.read(bArr, 0, (int) Math.min(j2, 512L));
this.e = read;
long j3 = read;
j2 -= j3;
long j4 = j + j3;
n nVar = this.n;
if (nVar != null) {
((d.a) nVar).a(g, j4);
}
int i = this.e;
if (i > 0) {
dataOutput.write(bArr, 0, i);
}
j = j4;
} catch (Throwable th2) {
th = th2;
randomAccessFile = randomAccessFile2;
c.n(randomAccessFile);
throw th;
}
}
System.out.println(m5.h.a(new byte[]{-88, 63, -88, 103, -94, 34, -77, 34, -71, 49, -75, 103, -30, 117, -30, 103}, new byte[]{-48, 71}) + System.currentTimeMillis());
if (byteArrayOutputStream != null) {
map2 = ByteBuffer.wrap(byteArrayOutputStream.toByteArray(), 0, byteArrayOutputStream.size());
} else {
map2 = randomAccessFile2.getChannel().map(FileChannel.MapMode.READ_ONLY, 0L, randomAccessFile2.length());
randomAccessFile2.seek(0L);
}
byteBuffer = map2;
} catch (Throwable th3) {
th = th3;
r18 = randomAccessFile2;
}
try {
if (m.c.equals(this.g)) {
String str = "";
String str2 = this.i.get(m5.h.a(new byte[]{103, 33, 106, 58, 97, 32, 112, 99, 112, 55, 116, 43}, new byte[]{4, 78}));
if (str2 != null) {
stringTokenizer = new StringTokenizer(str2, m5.h.a(new byte[]{82, -88, 94}, new byte[]{126, -109}));
if (stringTokenizer.hasMoreTokens()) {
str = stringTokenizer.nextToken();
}
} else {
stringTokenizer = null;
}
if (!m5.h.a(new byte[]{33, -32, 32, -31, 37, -27, 45, -25, 56, -70, 42, -6, 62, -8, 97, -15, 45, -31, 45}, new byte[]{76, -107}).equalsIgnoreCase(str)) {
randomAccessFile3 = randomAccessFile2;
byte[] bArr2 = new byte[byteBuffer.remaining()];
byteBuffer.get(bArr2);
String trim = new String(bArr2).trim();
if (m5.h.a(new byte[]{41, 70, 56, 90, 33, 85, 41, 66, 33, 89, 38, 25, 48, 27, 63, 65, 63, 27, 46, 89, 58, 91, 101, 67, 58, 90, 45, 88, 43, 89, 44, 83, 44}, new byte[]{72, 54}).equalsIgnoreCase(str)) {
c(trim, this.h);
} else if (trim.length() != 0) {
map.put(m5.h.a(new byte[]{-46, -52, -47, -41, -26, -62, -42, -62}, new byte[]{-94, -93}), trim);
}
} else {
if (!stringTokenizer.hasMoreTokens()) {
throw new p(o.EnumC0011c.o, m5.h.a(new byte[]{8, 18, 14, 115, 24, 22, 27, 6, 15, 0, 30, 105, 106, 16, 37, 61, 62, 54, 36, 39, 106, 39, 51, 35, 47, 115, 35, 32, 106, 62, 63, 63, 62, 58, 58, 50, 56, 39, 101, 53, 37, 33, 39, 126, 46, 50, 62, 50, 106, 49, 63, 39, 106, 49, 37, 38, 36, 55, 43, 33, 51, 115, 39, 58, 57, 32, 35, 61, 45, 125, 106, 6, 57, 50, 45, 54, 112, 115, 13, 22, 30, 115, 101, 54, 50, 50, 39, 35, 38, 54, 101, 53, 35, 63, 47, 125, 34, 39, 39, 63}, new byte[]{74, 83}));
}
System.out.println(m5.h.a(new byte[]{-40, -30, -40, -70, -46, -1, -61, -1, -55, -20, -59, -70, -109, -87, -109, -70}, new byte[]{-96, -102}) + System.currentTimeMillis());
randomAccessFile3 = randomAccessFile2;
b(f(str2, c.i, null), f(str2, c.h, m5.h.a(new byte[]{11, -32, 24, -103, 102}, new byte[]{94, -76})), byteBuffer, this.h, map);
System.out.println(m5.h.a(new byte[]{-9, -41, -9, -113, -3, -54, -20, -54, -26, -39, -22, -113, -69, -101, -69, -113}, new byte[]{-113, -81}) + System.currentTimeMillis());
}
} else {
randomAccessFile3 = randomAccessFile2;
if (m.b.equals(this.g)) {
map.put(m5.h.a(new byte[]{59, 80, 54, 75, 61, 81, 44}, new byte[]{88, 63}), n(byteBuffer, 0, byteBuffer.limit(), null));
}
}
c.n(randomAccessFile3);
} catch (Throwable th4) {
th = th4;
randomAccessFile = r18;
c.n(randomAccessFile);
throw th;
}
} catch (Throwable th5) {
th = th5;
randomAccessFile = null;
}
}
public final String n(ByteBuffer byteBuffer, int i, int i2, String str) {
FileOutputStream fileOutputStream;
h hVar;
ByteBuffer duplicate;
if (i2 <= 0) {
return "";
}
try {
try {
i iVar = (i) this.a;
hVar = new h(iVar.a);
iVar.b.add(hVar);
duplicate = byteBuffer.duplicate();
fileOutputStream = new FileOutputStream(hVar.b());
} catch (Throwable th) {
th = th;
fileOutputStream = null;
}
} catch (Exception e) {
e = e;
}
try {
FileChannel channel = fileOutputStream.getChannel();
duplicate.position(i).limit(i + i2);
channel.write(duplicate.slice());
String b = hVar.b();
c.n(fileOutputStream);
return b;
} catch (Exception e2) {
e = e2;
throw new Error(e);
} catch (Throwable th2) {
th = th2;
c.n(fileOutputStream);
throw th;
}
}
public final int o(byte[] bArr, int i) {
byte b;
do {
b = bArr[i];
i++;
} while (b != 10);
return i;
}
public void p(n nVar) {
this.n = nVar;
}
}
public interface l {
}
public enum m {
a,
b,
c,
d,
e,
h,
k,
l,
m;
public static m a(String str) {
for (m mVar : values()) {
if (mVar.toString().equalsIgnoreCase(str)) {
return mVar;
}
}
return null;
}
}
public interface n {
}
public static class o implements Closeable {
public b a;
public String b;
public InputStream c;
public long d;
public final Map<String, String> e = new HashMap();
public m h;
public boolean k;
public boolean l;
public boolean m;
public q n;
public static class a extends FilterOutputStream {
public a(OutputStream outputStream) {
super(outputStream);
}
public void c() {
((FilterOutputStream) this).out.write(m5.h.a(new byte[]{-71, 19, -125, 19, -125}, new byte[]{-119, 30}).getBytes());
}
@Override
public void write(int i) {
write(new byte[]{(byte) i}, 0, 1);
}
@Override
public void write(byte[] bArr) {
write(bArr, 0, bArr.length);
}
@Override
public void write(byte[] bArr, int i, int i2) {
if (i2 == 0) {
return;
}
((FilterOutputStream) this).out.write(String.format(m5.h.a(new byte[]{89, -53, 113, -71}, new byte[]{124, -77}), Integer.valueOf(i2)).getBytes());
((FilterOutputStream) this).out.write(bArr, i, i2);
((FilterOutputStream) this).out.write("\r\n".getBytes());
}
}
public interface b {
}
public enum EnumC0011c implements b {
c(101, m5.h.a(new byte[]{44, -84, 22, -81, 28, -77, 22, -75, 24, -5, 47, -87, 16, -81, 16, -72, 16, -73, 12}, new byte[]{Byte.MAX_VALUE, -37})),
d(KolmogorovSmirnovTest.SMALL_SAMPLE_PRODUCT, m5.h.a(new byte[]{101, 26}, new byte[]{42, 81})),
e(201, m5.h.a(new byte[]{-124, 8, -94, 27, -77, 31, -93}, new byte[]{-57, 122})),
h(202, m5.h.a(new byte[]{-33, 66, -3, 68, -18, 85, -5, 69}, new byte[]{-98, 33})),
k(204, m5.h.a(new byte[]{47, 54, 65, 26, 14, 55, 21, 60, 15, 45}, new byte[]{97, 89})),
l(206, m5.h.a(new byte[]{52, 15, 22, 26, 13, 15, 8, 78, 39, 1, 10, 26, 1, 0, 16}, new byte[]{100, 110})),
m(301, m5.h.a(new byte[]{97, -78, 90, -72, 72, -3, 124, -72, 94, -80, 77, -77, 73, -77, 88, -79, 85}, new byte[]{44, -35})),
n(304, m5.h.a(new byte[]{84, -118, 110, -59, 87, -118, 126, -116, 124, -116, Byte.MAX_VALUE, -127}, new byte[]{26, -27})),
o(400, m5.h.a(new byte[]{-28, -72, -62, -7, -12, -68, -41, -84, -61, -86, -46}, new byte[]{-90, -39})),
p(401, m5.h.a(new byte[]{-110, -108, -90, -113, -77, -110, -88, -120, -82, Byte.MIN_VALUE, -94, -98}, new byte[]{-57, -6})),
q(403, m5.h.a(new byte[]{-95, 41, -107, 36, -114, 34, -125, 35, -119}, new byte[]{-25, 70})),
r(404, m5.h.a(new byte[]{14, -44, 52, -101, 6, -44, 53, -43, 36}, new byte[]{64, -69})),
s(405, m5.h.a(new byte[]{29, 72, 36, 69, 63, 73, 112, 99, 63, 89, 112, 108, 60, 65, 63, 90, 53, 73}, new byte[]{80, 45})),
t(406, m5.h.a(new byte[]{118, -94, 76, -19, 121, -82, 91, -88, 72, -71, 89, -81, 84, -88}, new byte[]{56, -51})),
u(408, m5.h.a(new byte[]{0, 65, 35, 81, 55, 87, 38, 4, 6, 77, 63, 65, 61, 81, 38}, new byte[]{82, 36})),
f17v(409, m5.h.a(new byte[]{46, 91, 3, 82, 1, 93, 14, 64}, new byte[]{109, 52})),
f18w(416, m5.h.a(new byte[]{-82, 94, -115, 78, -103, 72, -120, 94, -104, 27, -82, 90, -110, 92, -103, 27, -78, 84, -120, 27, -81, 90, -120, 82, -113, 93, -107, 90, -98, 87, -103}, new byte[]{-4, 59})),
f19x(500, m5.h.a(new byte[]{-63, 26, -4, 17, -6, 26, -23, 24, -88, 39, -19, 6, -2, 17, -6, 84, -51, 6, -6, 27, -6}, new byte[]{-120, 116})),
y(501, m5.h.a(new byte[]{-31, -52, -37, -125, -26, -50, -33, -49, -54, -50, -54, -51, -37, -58, -53}, new byte[]{-81, -93})),
z(505, m5.h.a(new byte[]{-73, -115, -85, -119, -33, -113, -102, -85, -116, -80, -112, -73, -33, -105, -112, -83, -33, -118, -118, -87, -113, -74, -115, -83, -102, -67}, new byte[]{-1, -39}));
public final int a;
public final String b;
EnumC0011c(int i, String str) {
this.a = i;
this.b = str;
}
public String b() {
StringBuilder a = a.f.a("");
a.append(this.a);
a.append(" ");
a.append(this.b);
return a.toString();
}
}
public o(b bVar, String str, InputStream inputStream, long j) {
this.a = bVar;
this.b = str;
if (inputStream == null) {
this.c = new ByteArrayInputStream(new byte[0]);
this.d = 0L;
} else {
this.c = inputStream;
this.d = j;
}
this.k = this.d < 0;
this.m = true;
}
public static boolean f(Map<String, String> map, String str) {
Iterator<String> it = map.keySet().iterator();
boolean z = false;
while (it.hasNext()) {
z |= it.next().equalsIgnoreCase(str);
}
return z;
}
public static long p(PrintWriter printWriter, Map<String, String> map, long j) {
for (String str : map.keySet()) {
if (str.equalsIgnoreCase(m5.h.a(new byte[]{4, -36, 9, -57, 2, -35, 19, -98, 11, -42, 9, -44, 19, -37}, new byte[]{103, -77}))) {
try {
return Long.parseLong(map.get(str));
} catch (NumberFormatException unused) {
return j;
}
}
}
printWriter.print(m5.h.a(new byte[]{74, 103, 103, 124, 108, 102, 125, 37, 69, 109, 103, 111, 125, 96, 51, 40}, new byte[]{9, 8}) + j + "\r\n");
return j;
}
public void c(String str, String str2) {
this.e.put(str, str2);
}
@Override
public void close() {
InputStream inputStream = this.c;
if (inputStream != null) {
inputStream.close();
}
}
public String d(String str) {
for (String str2 : this.e.keySet()) {
if (str2.equalsIgnoreCase(str)) {
return this.e.get(str2);
}
}
return null;
}
public String e() {
return this.b;
}
public void h(OutputStream outputStream) {
String str = this.b;
SimpleDateFormat simpleDateFormat = new SimpleDateFormat(m5.h.a(new byte[]{-95, -44, -60, -100, -60, -75, -87, -75, -60, -127, -99, -127, -99, -40, -84, -80, -34, -107, -119, -62, -105, -117, -60, -33, -93, -75, -80, -33}, new byte[]{-28, -8}), Locale.US);
simpleDateFormat.setTimeZone(TimeZone.getTimeZone(m5.h.a(new byte[]{-1, 10, -20}, new byte[]{-72, 71})));
try {
if (this.a == null) {
throw new Error(m5.h.a(new byte[]{-50, -1, -45, -2, -17, -1, -50, -22, -46, -12, -50, -1, -107, -77, -121, -70, -18, -18, -36, -18, -56, -23, -99, -7, -36, -12, -102, -18, -99, -8, -40, -70, -45, -17, -47, -10, -109}, new byte[]{-67, -102}));
}
PrintWriter printWriter = new PrintWriter((Writer) new BufferedWriter(new OutputStreamWriter(outputStream, m5.h.a(new byte[]{-48, 5, -61, 124, -67}, new byte[]{-123, 81}))), false);
printWriter.print(m5.h.a(new byte[]{-19, -73, -15, -77, -118, -46, -117, -46, -123}, new byte[]{-91, -29}) + ((EnumC0011c) this.a).b() + " \r\n");
if (str != null) {
printWriter.print(m5.h.a(new byte[]{2, -31, 47, -6, 36, -32, 53, -93, 21, -9, 49, -21, 123, -82}, new byte[]{65, -114}) + str + "\r\n");
}
Map<String, String> map = this.e;
if (map == null || map.get(m5.h.a(new byte[]{8, 61, 56, 57}, new byte[]{76, 92})) == null) {
printWriter.print(m5.h.a(new byte[]{-12, -104, -60, -100, -118, -39}, new byte[]{-80, -7}) + simpleDateFormat.format(new Date()) + "\r\n");
}
Map<String, String> map2 = this.e;
if (map2 != null) {
for (String str2 : map2.keySet()) {
printWriter.print(str2 + m5.h.a(new byte[]{26, -109}, new byte[]{32, -77}) + this.e.get(str2) + "\r\n");
}
}
if (!f(this.e, m5.h.a(new byte[]{-56, 74, -59, 75, -50, 70, -33, 76, -60, 75}, new byte[]{-85, 37}))) {
StringBuilder sb = new StringBuilder();
sb.append(m5.h.a(new byte[]{99, -9, 78, -10, 69, -5, 84, -15, 79, -10, 26, -72}, new byte[]{32, -104}));
sb.append(this.m ? m5.h.a(new byte[]{98, -1, 108, -22, 36, -5, 101, -13, Byte.MAX_VALUE, -1}, new byte[]{9, -102}) : m5.h.a(new byte[]{5, -79, 9, -82, 3}, new byte[]{102, -35}));
sb.append("\r\n");
printWriter.print(sb.toString());
}
if (f(this.e, m5.h.a(new byte[]{-106, 102, -101, 125, -112, 103, -127, 36, -103, 108, -101, 110, -127, 97}, new byte[]{-11, 9}))) {
this.l = false;
}
if (this.l) {
printWriter.print(m5.h.a(new byte[]{60, -54, 17, -47, 26, -53, 11, -120, 58, -53, 28, -54, 27, -52, 17, -62, 69, -123, 24, -33, 22, -43, 114, -81}, new byte[]{Byte.MAX_VALUE, -91}));
q(true);
}
long j = this.c != null ? this.d : 0L;
if (this.h != m.e && this.k) {
printWriter.print(m5.h.a(new byte[]{-56, 45, -3, 49, -17, 57, -7, 45, -79, 26, -14, 60, -13, 59, -11, 49, -5, 101, -68, 60, -12, 42, -14, 52, -7, 59, -111, 85}, new byte[]{-100, 95}));
} else if (!this.l) {
j = p(printWriter, this.e, j);
}
printWriter.print("\r\n");
printWriter.flush();
l(outputStream, j);
outputStream.flush();
c.n(this.c);
} catch (IOException e) {
c.o.log(Level.SEVERE, m5.h.a(new byte[]{-73, -97, -127, -100, -112, -48, -102, -97, Byte.MIN_VALUE, -48, -121, -107, -102, -108, -44, -126, -111, -125, -124, -97, -102, -125, -111, -48, Byte.MIN_VALUE, -97, -44, -124, -100, -107, -44, -109, -104, -103, -111, -98, Byte.MIN_VALUE}, new byte[]{-12, -16}), (Throwable) e);
}
}
public final void j(OutputStream outputStream, long j) {
long j2;
o oVar = this;
long j3 = 16384;
byte[] bArr = new byte[(int) 16384];
int i = 0;
boolean z = j == -1;
int i2 = 35;
int i3 = 2;
m5.h.a(new byte[]{54, 68, 54, 28, 61, 89, 32, 88, 12, 83, 42, 69, 110, 13, Byte.MAX_VALUE, 13, 110, 95, 59, 78, 60, 89, 32, 72, 26, 85, 35, 89, 3, 85, 34, 80, 39, 79, 110}, new byte[]{78, 60});
System.currentTimeMillis();
long available = oVar.c.available();
long j4 = 0;
long j5 = j;
long j6 = 0;
while (true) {
if (j5 <= j4 && !z) {
break;
}
if (!z) {
j3 = Math.min(j5, j3);
}
int read = oVar.c.read(bArr, i, (int) j3);
if (read <= 0) {
break;
}
outputStream.write(bArr, i, read);
boolean z2 = z;
if (!z) {
j5 -= read;
}
long j7 = read + j6;
q qVar = oVar.n;
if (qVar != null) {
d.b bVar = (d.b) qVar;
Objects.requireNonNull(bVar);
PrintStream printStream = System.out;
StringBuilder sb = new StringBuilder();
byte[] bArr2 = new byte[i3];
bArr2[0] = 81;
bArr2[1] = -65;
sb.append(m5.h.a(new byte[]{41, -57, 41, -97}, bArr2));
sb.append(available);
sb.append(" ");
sb.append(j7);
printStream.println(sb.toString());
long currentTimeMillis = System.currentTimeMillis() - bVar.a;
PrintStream printStream2 = System.out;
StringBuilder sb2 = new StringBuilder();
byte[] bArr3 = new byte[i3];
bArr3[0] = 30;
bArr3[1] = -121;
sb2.append(m5.h.a(new byte[]{102, -1, 102, -89, 109, -30, 112, -29, 74, -18, 115, -30, 91, -21, Byte.MAX_VALUE, -9, 109, -30, 122, -89}, bArr3));
sb2.append(currentTimeMillis);
printStream2.println(sb2.toString());
x5.i iVar = bVar.c;
if (j7 >= iVar.i) {
iVar.l = i.a.h;
iVar.m = System.currentTimeMillis() - bVar.a;
a6.d.c(nd.d.this.s).publish(bVar.c);
j2 = available;
ge.b.b().f(new u5.b(bVar.d.a, bVar.c.f));
} else {
j2 = available;
if (System.currentTimeMillis() - bVar.b > 1000) {
x5.i iVar2 = bVar.c;
i.a aVar = i.a.e;
iVar2.l = aVar;
aVar.a = j7;
iVar2.m = System.currentTimeMillis() - bVar.a;
a6.d.c(nd.d.this.s).publish(bVar.c);
ge.b.b().f(new u5.b(bVar.d.a, bVar.c.f));
bVar.b = System.currentTimeMillis();
}
}
} else {
j2 = available;
}
oVar = this;
j6 = j7;
z = z2;
available = j2;
j3 = 16384;
i = 0;
i2 = 35;
i3 = 2;
j4 = 0;
}
byte[] bArr4 = new byte[i2];
bArr4[0] = -72;
bArr4[1] = 104;
bArr4[2] = -72;
bArr4[3] = 48;
bArr4[4] = -77;
bArr4[5] = 117;
bArr4[6] = -82;
bArr4[7] = 116;
bArr4[8] = -126;
bArr4[9] = Byte.MAX_VALUE;
bArr4[10] = -92;
bArr4[11] = 105;
bArr4[12] = -32;
bArr4[13] = 34;
bArr4[14] = -14;
bArr4[15] = 34;
bArr4[16] = -32;
bArr4[17] = 115;
bArr4[18] = -75;
bArr4[19] = 98;
bArr4[20] = -78;
bArr4[21] = 117;
bArr4[22] = -82;
bArr4[23] = 100;
bArr4[24] = -108;
bArr4[25] = 121;
bArr4[26] = -83;
bArr4[27] = 117;
bArr4[28] = -115;
bArr4[29] = 121;
bArr4[30] = -84;
bArr4[31] = 124;
bArr4[32] = -87;
bArr4[33] = 99;
bArr4[34] = -32;
byte[] bArr5 = new byte[i3];
bArr5[0] = -64;
bArr5[1] = 16;
m5.h.a(bArr4, bArr5);
System.currentTimeMillis();
}
public final void l(OutputStream outputStream, long j) {
if (this.h == m.e || !this.k) {
if (!this.l) {
j(outputStream, j);
return;
}
GZIPOutputStream gZIPOutputStream = new GZIPOutputStream(outputStream);
j(gZIPOutputStream, -1L);
gZIPOutputStream.finish();
return;
}
a aVar = new a(outputStream);
if (this.l) {
GZIPOutputStream gZIPOutputStream2 = new GZIPOutputStream(aVar);
j(gZIPOutputStream2, -1L);
gZIPOutputStream2.finish();
} else {
j(aVar, -1L);
}
aVar.c();
}
public void q(boolean z) {
this.k = z;
}
public void s(boolean z) {
this.l = z;
}
public void t(boolean z) {
this.m = z;
}
public void w(m mVar) {
this.h = mVar;
}
}
public static final class p extends Exception {
private static final long serialVersionUID = 6569838532917408380L;
public final o.EnumC0011c a;
public p(o.EnumC0011c enumC0011c, String str) {
super(str);
this.a = enumC0011c;
}
public p(o.EnumC0011c enumC0011c, String str, Exception exc) {
super(str, exc);
this.a = enumC0011c;
}
public o.EnumC0011c a() {
return this.a;
}
}
public interface q {
}
public class r implements Runnable {
public final int a;
public IOException b;
public boolean c = false;
public r(int i, a aVar) {
this.a = i;
}
@Override
public void run() {
InetSocketAddress inetSocketAddress;
try {
ServerSocket serverSocket = c.this.c;
if (c.this.a != null) {
c cVar = c.this;
inetSocketAddress = new InetSocketAddress(cVar.a, cVar.b);
} else {
inetSocketAddress = new InetSocketAddress(c.this.b);
}
serverSocket.bind(inetSocketAddress);
this.c = true;
do {
try {
Socket accept = c.this.c.accept();
int i = this.a;
if (i > 0) {
accept.setSoTimeout(i);
}
InputStream inputStream = accept.getInputStream();
c cVar2 = c.this;
cVar2.f.b(cVar2.new RunnableC0010c(inputStream, accept, null));
} catch (IOException e) {
c.o.log(Level.FINE, m5.h.a(new byte[]{-124, -46, -86, -48, -78, -45, -82, -34, -90, -55, -82, -46, -87, -99, -80, -44, -77, -43, -25, -55, -81, -40, -25, -34, -85, -44, -94, -45, -77, -99, -91, -49, -88, -42, -94, -45}, new byte[]{-57, -67}), (Throwable) e);
}
} while (!c.this.c.isClosed());
} catch (IOException e2) {
this.b = e2;
}
}
}
public interface s {
}
public interface t {
void a();
}
public interface u {
}
public interface v {
}
static {
m5.h.a(new byte[]{Byte.MAX_VALUE, -122, 88, -81, 121, -116, 12, -59, 76, -57, 86, -43, 65, -46, 13, -3, 4, -38, 45, -5, 14, -101, Byte.MAX_VALUE, -122, 88, -81, 121, -116, Byte.MAX_VALUE, -127, 88, -124, 121, -103, 12, -3, 122, -124, 122, -127, 122, -99, 121, -116, 13, -3, 3, -38, 6, -5, 27}, new byte[]{36, -90});
m5.h.a(new byte[]{-26, -52, -63, -27, -32, -58, -107, -114, -46, -103, -45, -120, -36, -98, -60, -59, -26, -52, -63, -27, -32, -58, Byte.MIN_VALUE, -73, -99, -112, -76, -79, -105, -73, -102, -112, -97, -79, -126, -60, -26, -78, -97, -78, -102, -78, -122, -79, -105, -59, -26, -53, -63, -50, -32, -45}, new byte[]{-67, -20});
m5.h.a(new byte[]{6, 3, 14, 36, 39, 5, 4, 27, 65, 54, 90, 61, 64, 44, 3, 28, 71, 43, 94, 55, 93, 49, 90, 49, 65, 54, 117, 120, 82, 81, 115, 114, 20, 113, 6, 118, 4, 113}, new byte[]{46, 88});
m5.h.a(new byte[]{-43, -118, -35, -83, -12, -116, -41, -78, -110, -65, -119, -76, -109, -91, -48, -91, -124, -95, -104, -118, -35, -83, -12, -116, -41, -21, -44, -7, -45, -5, -44}, new byte[]{-3, -47});
m5.h.a(new byte[]{108, -43, 75, -4, 106, -33, 31, -82, 86, -40, 77, -76, 26, -81, 106, -33, 30, -82, 23, -119, 62, -88, 29, -56, 108, -43, 75, -4, 106, -33, 108, -46, 75, -41, 106, -35, 108, -85, 21, -85, 16, -88, 29, -36, 108, -46, 75, -41, 106}, new byte[]{55, -11});
m = m5.h.a(new byte[]{-114, 5, -126, 20, -43, 16, -106, 1, -109, 14}, new byte[]{-6, 96});
m5.h.a(new byte[]{-57, -102, -53, -117, -100, -105, -57, -110, -33}, new byte[]{-77, -1});
n = m5.h.a(new byte[]{59, -102, 27, -108, 61, -113, 1, -117, 17, -43, 36, -82, 48, -87, 44, -92, 38, -81, 39, -78, 59, -68}, new byte[]{117, -5});
h = Pattern.compile(m5.h.a(new byte[]{-18, -116, -55, -91, -24, -122, -99, -49, -35, -51, -57, -33, -48, -40, -100, -9, -107, -48, -68, -15, -97, -111, -18, -116, -55, -91, -24, -122, -18, -117, -55, -114, -24, -109, -99, -9, -21, -114, -21, -117, -21, -105, -24, -122, -100, -9, -110, -48, -105, -15, -118}, new byte[]{-75, -84}), 2);
i = Pattern.compile(m5.h.a(new byte[]{-71, -28, -98, -51, -65, -18, -54, -90, -115, -79, -116, -96, -125, -74, -101, -19, -71, -28, -98, -51, -65, -18, -33, -97, -62, -72, -21, -103, -56, -97, -59, -72, -64, -103, -35, -20, -71, -102, -64, -102, -59, -102, -39, -103, -56, -19, -71, -29, -98, -26, -65, -5}, new byte[]{-30, -60}), 2);
j = Pattern.compile(m5.h.a(new byte[]{-115, 5, -123, 34, -84, 3, -113, 29, -54, 48, -47, 59, -53, 42, -120, 26, -52, 45, -43, 49, -42, 55, -47, 55, -54, 48, -2, 126, -39, 87, -8, 116, -97, 119, -115, 112, -113, 119}, new byte[]{-91, 94}), 2);
k = Pattern.compile(m5.h.a(new byte[]{72, 13, 64, 42, 105, 11, 74, 53, 15, 56, 20, 51, 14, 34, 77, 34, 25, 38, 5, 13, 64, 42, 105, 11, 74, 108, 73, 126, 78, 124, 73}, new byte[]{96, 86}), 2);
l = Pattern.compile(m5.h.a(new byte[]{2, 20, 37, 61, 4, 30, 113, 111, 56, 25, 35, 117, 116, 110, 4, 30, 112, 111, 121, 72, 80, 105, 115, 9, 2, 20, 37, 61, 4, 30, 2, 19, 37, 22, 4, 28, 2, 106, 123, 106, 126, 105, 115, 29, 2, 19, 37, 22, 4}, new byte[]{89, 52}));
o = Logger.getLogger(c.class.getName());
}
public c(int i2) {
this.b = i2;
}
public static String h(String str) {
try {
return URLDecoder.decode(str, m5.h.a(new byte[]{69, -72, 86, -44}, new byte[]{16, -20}));
} catch (UnsupportedEncodingException e2) {
o.log(Level.WARNING, m5.h.a(new byte[]{-120, 14, -82, 15, -87, 9, -93, 7, -19, 14, -94, 20, -19, 19, -72, 16, -67, 15, -65, 20, -88, 4, -31, 64, -92, 7, -93, 15, -65, 5, -87}, new byte[]{-51, 96}), (Throwable) e2);
return null;
}
}
public static String i(String str) {
String str2;
int lastIndexOf = str.lastIndexOf(46);
if (lastIndexOf >= 0) {
if (p == null) {
HashMap hashMap = new HashMap();
p = hashMap;
k(hashMap, m5.h.a(new byte[]{57, -96, 32, -92, 89, -84, 58, -93, 91, -117, 21, -117, 27, -115, 0, -111, 4, -127, 91, -127, 17, -125, 21, -112, 24, -111, 89, -120, 29, -120, 17, -111, 13, -107, 17, -106, 90, -107, 6, -118, 4, Byte.MIN_VALUE, 6, -111, 29, Byte.MIN_VALUE, 7}, new byte[]{116, -27}));
k(p, m5.h.a(new byte[]{-122, 85, -97, 81, -26, 89, -123, 86, -28, 126, -86, 126, -92, 120, -65, 100, -69, 116, -28, 125, -94, 125, -82, 100, -78, 96, -82, 99, -27, 96, -71, Byte.MAX_VALUE, -69, 117, -71, 100, -94, 117, -72}, new byte[]{-53, 16}));
if (p.isEmpty()) {
o.log(Level.WARNING, m5.h.a(new byte[]{-24, 114, -90, 112, -17, 112, -29, 61, -14, 100, -10, 120, -11, 61, -32, 114, -13, 115, -30, 61, -17, 115, -90, 105, -18, 120, -90, 126, -22, 124, -11, 110, -10, 124, -14, 117, -89, 61, -10, 113, -29, 124, -11, 120, -90, 109, -12, 114, -16, 116, -30, 120, -90, 112, -17, 112, -29, 105, -1, 109, -29, 110, -88, 109, -12, 114, -10, 120, -12, 105, -17, 120, -11}, new byte[]{-122, 29}));
}
}
str2 = p.get(str.substring(lastIndexOf + 1).toLowerCase());
} else {
str2 = null;
}
System.out.println(m5.h.a(new byte[]{-124, 17, -124, 73, -119, 27, -107, 73}, new byte[]{-4, 105}) + str + m5.h.a(new byte[]{-57, 84, -114, 84, -126, 25}, new byte[]{-25, 57}) + str2);
return str2 == null ? m5.h.a(new byte[]{-108, 90, -123, 70, -100, 73, -108, 94, -100, 69, -101, 5, -102, 73, -127, 79, -127, 7, -122, 94, -121, 79, -108, 71}, new byte[]{-11, 42}) : str2;
}
public static void k(Map<String, String> map, String str) {
try {
Enumeration<URL> resources = c.class.getClassLoader().getResources(str);
while (resources.hasMoreElements()) {
URL nextElement = resources.nextElement();
Properties properties = new Properties();
InputStream inputStream = null;
try {
try {
inputStream = nextElement.openStream();
properties.load(nextElement.openStream());
} catch (IOException e2) {
o.log(Level.SEVERE, m5.h.a(new byte[]{-98, -86, -120, -87, -103, -27, -109, -86, -119, -27, -111, -86, -100, -95, -35, -88, -108, -88, -104, -79, -124, -75, -104, -74, -35, -93, -113, -86, -112, -27}, new byte[]{-3, -59}) + nextElement, (Throwable) e2);
}
n(inputStream);
map.putAll(properties);
} catch (Throwable th) {
n(inputStream);
throw th;
}
}
} catch (IOException unused) {
o.log(Level.INFO, m5.h.a(new byte[]{122, -126, 52, Byte.MIN_VALUE, 125, Byte.MIN_VALUE, 113, -51, 96, -108, 100, -120, 103, -51, 117, -101, 117, -124, 120, -116, 118, -127, 113, -51, 117, -103, 52}, new byte[]{20, -19}) + str);
}
}
public static o l(o.b bVar, String str, InputStream inputStream, long j2) {
return new o(bVar, str, inputStream, j2);
}
public static o m(o.b bVar, String str, String str2) {
byte[] bArr;
if (str2 == null) {
return l(bVar, str, new ByteArrayInputStream(new byte[0]), 0L);
}
try {
bArr = str2.getBytes(m5.h.a(new byte[]{-50, 78, -35, 55, -93}, new byte[]{-101, 26}));
} catch (UnsupportedEncodingException e2) {
o.log(Level.SEVERE, m5.h.a(new byte[]{-122, -41, Byte.MIN_VALUE, -42, -121, -48, -115, -34, -61, -55, -111, -42, -127, -43, -122, -44, -49, -103, -111, -36, -112, -55, -116, -41, -121, -48, -115, -34, -61, -41, -116, -51, -117, -48, -115, -34}, new byte[]{-29, -71}), (Throwable) e2);
bArr = new byte[0];
}
return l(bVar, str, new ByteArrayInputStream(bArr), bArr.length);
}
public static final void n(Object obj) {
if (obj != null) {
try {
if (obj instanceof Closeable) {
((Closeable) obj).close();
} else if (obj instanceof Socket) {
((Socket) obj).close();
} else {
if (!(obj instanceof ServerSocket)) {
throw new IllegalArgumentException(m5.h.a(new byte[]{40, 86, 22, 86, 18, 79, 19, 24, 18, 90, 23, 93, 30, 76, 93, 76, 18, 24, 30, 84, 18, 75, 24}, new byte[]{125, 56}));
}
((ServerSocket) obj).close();
}
} catch (IOException e2) {
o.log(Level.SEVERE, m5.h.a(new byte[]{6, 41, 48, 42, 33, 102, 43, 41, 49, 102, 38, 42, 42, 53, 32}, new byte[]{69, 70}), (Throwable) e2);
}
}
}
public final boolean j() {
return (this.c != null && this.e != null) && !this.c.isClosed() && this.e.isAlive();
}
public o o(l lVar) {
HashMap hashMap = new HashMap();
k kVar = (k) lVar;
m mVar = kVar.g;
if (m.b.equals(mVar) || m.c.equals(mVar)) {
try {
((k) lVar).m(hashMap);
} catch (IOException e2) {
return m(o.EnumC0011c.f19x, m, m5.h.a(new byte[]{44, 43, 45, 56, 58, 60, 95, 39, 49, 58, 58, 60, 49, 47, 51, 78, 58, 60, 45, 33, 45, 84, 95, 39, 48, 43, 7, 13, 26, 30, 11, 7, 16, 0, 69, 78}, new byte[]{Byte.MAX_VALUE, 110}) + e2.getMessage());
} catch (p e3) {
return m(e3.a, m, e3.getMessage());
}
}
kVar.h.put(n, kVar.k);
return m(o.EnumC0011c.r, m, m5.h.a(new byte[]{88, -112, 98, -33, 80, -112, 99, -111, 114}, new byte[]{22, -1}));
}
public void p(int i2, boolean z) {
Objects.requireNonNull((g) this.d);
this.c = new ServerSocket();
this.c.setReuseAddress(true);
r rVar = new r(i2, null);
Thread thread = new Thread(rVar);
this.e = thread;
thread.setDaemon(z);
this.e.setName(m5.h.a(new byte[]{-62, 109, -30, 99, -60, 120, -8, 124, -24, 44, -63, 109, -27, 98, -84, 64, -27, Byte.MAX_VALUE, -8, 105, -30, 105, -2}, new byte[]{-116, 12}));
this.e.start();
while (!rVar.c && rVar.b == null) {
try {
Thread.sleep(10L);
} catch (Throwable unused) {
}
}
IOException iOException = rVar.b;
if (iOException != null) {
throw iOException;
}
}
public void q() {
try {
n(this.c);
this.f.a();
Thread thread = this.e;
if (thread != null) {
thread.join();
}
} catch (Exception e2) {
o.log(Level.SEVERE, m5.h.a(new byte[]{82, 70, 100, 69, 117, 9, Byte.MAX_VALUE, 70, 101, 9, 98, 93, 126, 89, 49, 72, 125, 69, 49, 74, 126, 71, Byte.MAX_VALUE, 76, 114, 93, 120, 70, Byte.MAX_VALUE, 90}, new byte[]{17, 41}), (Throwable) e2);
}
}
public boolean r(o oVar) {
return oVar.e() != null && oVar.e().toLowerCase().contains(m5.h.a(new byte[]{93, -115, 81, -100, 6}, new byte[]{41, -24}));
}
}