导航菜单

页面标题

页面副标题

jsgt v4.8.1 - v0.java 源代码

正在查看: jsgt v4.8.1 应用的 v0.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package qh;

import android.content.Context;
import android.content.res.Resources;
import android.database.sqlite.SQLiteDatabase;
import android.graphics.RectF;
import android.media.MediaFormat;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.net.TrafficStats;
import android.net.Uri;
import android.os.Environment;
import android.os.Looper;
import android.os.NetworkOnMainThreadException;
import android.os.PowerManager;
import android.text.TextUtils;
import android.util.Base64;
import android.util.Log;
import android.util.TypedValue;
import android.view.View;
import com.huawei.hms.framework.common.Logger;
import com.meizu.cloud.pushinternal.DebugLogger;
import com.meizu.cloud.pushsdk.handler.MessageV3;
import com.meizu.cloud.pushsdk.util.MinSdkChecker;
import com.meizu.cloud.pushsdk.util.MzSystemUtils;
import com.wind.imlib.WindClient;
import com.wind.imlib.db.manager.CommSettingManager;
import java.io.BufferedInputStream;
import java.io.BufferedWriter;
import java.io.ByteArrayOutputStream;
import java.io.Closeable;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.io.StringWriter;
import java.io.UnsupportedEncodingException;
import java.lang.reflect.Array;
import java.lang.reflect.Method;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import java.lang.reflect.TypeVariable;
import java.nio.ByteBuffer;
import java.security.InvalidAlgorithmParameterException;
import java.security.InvalidKeyException;
import java.security.KeyManagementException;
import java.security.KeyStoreException;
import java.security.NoSuchAlgorithmException;
import java.security.SecureRandom;
import java.security.cert.CertificateException;
import java.security.cert.X509Certificate;
import java.text.DecimalFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.Date;
import java.util.Formatter;
import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.Random;
import java.util.zip.Deflater;
import java.util.zip.ZipEntry;
import java.util.zip.ZipOutputStream;
import javax.crypto.BadPaddingException;
import javax.crypto.Cipher;
import javax.crypto.IllegalBlockSizeException;
import javax.crypto.NoSuchPaddingException;
import javax.crypto.spec.IvParameterSpec;
import javax.crypto.spec.SecretKeySpec;
import org.json.JSONException;
import org.json.JSONObject;
import te.i0;
import tv.danmaku.ijk.media.player.IjkMediaMeta;
import tv.danmaku.ijk.media.player.IjkMediaPlayer;

public class v0 implements com.google.gson.internal.r, qi.b, te.y0 {
    public static final int B = 0;
    public static HashMap C = null;
    public static Context D = null;
    public static a1 a = null;
    public static int b = -1;
    public static String c = null;
    public static Class e = null;
    public static String g = "https://ulogs.umeng.com";
    public static final v0 d = new v0();
    public static final char[] f = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F'};
    public static final int[] h = {2130968627, 2130968628, 2130968949, 2130968950, 2130968951, 2130969051, 2130969052, 2130969198, 2130969370, 2130969644, 2130969645, 2130969646};
    public static final int[] i = {2130969213, 2130969264, 2130969265, 2130969266, 2130969275, 2130969276, 2130969277, 2130969278, 2130969280, 2130969284};
    public static final byte[] j = {-80, 9, 83, 102, -105, 4, 40, 15, -59, -122, 34, -48, -124, 7, 1, 50, 66, Byte.MIN_VALUE, 4, 45, 104, 73, 121, -4, -77, -109, -121, -110, -120, 110, 52, -34, -119, 42, -119, Byte.MIN_VALUE, -54, 46, 52, -68, -108, 25, -113, 53, 9, -113, -70, 1, 104, 1, Byte.MIN_VALUE, 3, -116, 76, 112, -106, 114, 97, 11, -50, 76, -104, 80, -48, 19, -116, -31, 33, 1, 59, -30, 34, -87, 11, -37, -63, -84, -125, 48, 70, -12, -102, -40, -64, 106, -83, -34, -67, 32, -62, -14, 107, -101, 33, 31, 12, 78, 113, 59, -120, -22, 35, 20, -56, 27, 14, 55, -69, -94, 0, 16, 67, -87, -47, 97, -72, 60, 75, -99, 12, -23, 125, -126, -62, -26, -111, 11, 53, 36, 96, 33, 8, 50, -21, -127, 12, -120, 52, 98, -62, -30, -64, 56, 85, -64, 58, 20, 37, 11, 4, -58, 46, 44, -45, 11, 64, -64, -47, 126, 4, -125, 74, 72, 104, -126, 80, 5, -114, -43, -26, 51, -60, -66, -26, -105, -21, -97, -34, -127, 40, -97, -72, 79, 66, -88, 98, 36, 119, 24, -39, 92, 28, -23, 89, -112, -22, -110, -88, -93, 100, 21, 23, 118, -96, 98, -12, 75, -52, 96, 12, -8, 34, -79, -19, 5, -118, 103, 41, 110, -102, 26, 109, 17, -9, 66, 89, -30, -41, -90, 24, 93, -74, -78, -109, -57, 7, 111, 69, 46, 36, 40, 4, 1, -48, 62, 15, 66, -103, -94, 1, 50, 0, 37, -44, 88, -76, 5, 50, Byte.MIN_VALUE, -90, 103, -37, 36, -108, 11, 101, -71, -17, -52, 82, 89, 69, 24, 56, -103, -59, 4, -3, 103, -29, 35, 79, Byte.MIN_VALUE, 15, 71, -49, -24, -31, 14, -64, -23, 64, 72, 4, -119, 42, 10, -62, 106, -91, 12, 0, 23, -75, -79, -112, 84, -84, 16, 52, -111, 68, 34, 2, 38, 48, -118, -36, -51, -120, 1, 36, 81, -54, -75, -127, 37, 8, 48, 119, -126, -25, 110, 86, 4, 96, 67, -43, 59, -122, 64, 98, Byte.MIN_VALUE, -102, 112, 125, 19, 72, -20, 10, 33, 0, 18, 1, 108, -20, 105, 50, 28, -48, 99, -88, 15, -10, 83, -73, 19, 1, -53, 69, -51, 15, -91, 50, -89, 122, 97, 79, 45, 96, 102, 13, -92, 84, -93, -58, -94, 10, -102, 4, -108, -110, -95, 84, 105, -34, 118, -63, 108, -78, 16, 82, -95, -38, -102, -29, 38, -32, 25, 105, 89, 99, 94, -54, -118, -118, -55, 22, 42, 111, -112, 100, 16, 5, -36, -63, 112, -124, -120, -93, 83, -96, 65, 92, -34, 71, 85, 66, 97, -30, 97, 32, 53, -18, 110, 60, 108, 12, -40, -113, 112, 23, -16, -41, -87, 48, -86, 68, 64, -60, -111, -122, 40, 40, 3, 100, 2, -47, -92, -75, 74, 64, 66, -42, 3, 106, 123, -94, 46, 111, 23, 10, -70, -126, 16, 80, 40, 49, 8, 112, 66, -100, 48, -119, 34, -94, -92, Byte.MIN_VALUE, 84, 42, 33, 20, 1, 8, 21, -92, -116, 37, 67, -119, 96, 33, 5, 44, 19, -121, 48, -107, 94, -53, -46, 41, 11, 17, -53, 0, -94, 17, 74, 20, -120, 8, -92, -56, 0, Byte.MIN_VALUE, 66, -112, 76, Byte.MIN_VALUE, 39, 1, 1, -64, -105, -54, 61, 11, 33, -120, 96, 78, 7, 25, 32, -37, -92, 2, 125, -30, 56, 26, 3, 66, 41, -15, 108, 51, -63, -4, -66, -119, -27, -106, -105, 7, 39, -102, 63, 34, 74, -78, 48, -89, 36, -64, -15, 64, 39, 86, -119, 29, -125, 20, 0, 0, 38, 33, 96, 41, -105, -53, -95, 10, -24, 50, -20, 2, 42, 68, 32, 25, -62, 83, -38, -100, 123, -20, 106, 23, 3, 0, 57, 32, 20, -26, 8, -98, -4, 3, 18, -103, -80, 62, 20, 40, 105, 27, -78, -80, 50, 95, 2, -120, 117, Byte.MIN_VALUE, -79, 79, 62, 89, -58, -82, Byte.MIN_VALUE, -89, -38, 64, 40, -109, -105, 53, -75, -111, -54, 79, -43, 8, 33, 20, 89, -126, -56, 41, 118, 63, -15, 89, -111, -19, 120, 7, -111, 113, -28, 20, 109, Byte.MIN_VALUE, 111, 37, -13, -83, -96, -77, -36, -70, 89, -31, -26, -100, 11, 112, 56, -115, -40, 94, 33, 32, -104, 0, 28, 64, 52, -88, -63, -30, -39, 7, 68, 6, 16, 2, -125, 12, -64, -83, 64, 23, 105, 41, -119, 24, -123, -120, 9, 42, -49, 68, Byte.MIN_VALUE, -66, 56, 12, -44, 64, 8, -56, -80, 18, -70, 56, 74, 74, -39, -53, Byte.MIN_VALUE, 53, 122, -103, 29, 21, 78, 80, 96, -104, 1, 6, -47, -16, 96, 49, 1, 14, 47, 73, 33, -82, 72, 8, -60, -48, 66, -89, 96, 122, -12, 119, 12, 39, 13, 80, -75, 20, 6, 41, -28, -116, 32, 16, -47, -126, -107, Byte.MIN_VALUE, -49, -95, 78, -117, 108, -54, -69, 12, -71, 123, -23, 67, 6, 23, 84, -30, -4, 20, -63, 7, 24, -14, -28, -112, 17, 34, 65, 17, 0, 99, 8, -64, 20, 2, -127, 37, -24, -96, 119, 104, 73, -126, 58, 42, -124, -31, -109, -1, -16, 51, -11, 40, 64, 29, 113, 80, -76, 69, -60, 27, 66, 33, 49, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
    public static final byte[] k = {-21, -7, -7, -50, 48, 85, 86, 114, -124, -125, -127, 21, 25, 79, -60, 114, 55, -125, -55, 0, 95, -79, 85, 102, -92, 15, 82, 92, 55, 39, 60, -73, 17, 56, 87, 11, 102, 107, 14, -111, 108, 0, 94, 27, 0, -93, 0, -127, -87, 24, -92, 111, 0, 107, -53, 66, 94, 84, 69, -120, -16, 3, -85, 49, 85, -10, 3, -121, 46, -122, 80, 73, 26, 111, 104, -127, -83, 14, -76, 95, 21, Byte.MAX_VALUE, -73, -3, -67, 100, -88, -127, 16, 108, 112, 63, 52, -76, 35, 33, 63, -57, 98, -67, 20, 63, 55, -127, 28, 96, 111, 121, 5, -60, -77, 51, -122, 23, -9, -124, -60, 49, -37, 126, -114, 106, -125, -39, 41, 106, -98, 36, 121, 30, -104, -4, -69, 25, 120, -3, 71, -85, -81, -104, 2, 14, -87, 80, -127, -4, 38, 83, -61, -24, 32, 65, 98, -123, 19, 19, -89, 111, -2, 41, 122, -125, -68, 114, 10, 110, 4, -76, 10, 126, 77, 64, 85, -115, -107, 82, 17, 86, -98, 47, 19, 99, 95, 90, -115, 59, 84, 69, 49, 89, 85, 109, 81, 34, -6, -125, 114, 55, -80, 111, 86, 82, -127, 119, 49, 62, -89, 96, 114, 111, 85, 114, 20, 114, 2, 80, 126, 80, -127, 48, 88, -75, -57, 104, -88, -124, 24, 37, -3, -85, -108, 112, 56, 64, 60, 97, 14, 126, 55, -85, 83, 68, 89, 102, 90, 41, -125, -109, 119, 22, 91, 98, 102, 7, 51, 41, 98, 74, -11, 80, -42, 40, -68, 17, -13, 58, -6, 119, 36, -125, 80, -40, 107, 95, 49, 89, -6, 82, -125, 95, -98, -122, 15, 63, -60, -93, -121, 118, -58, 2, -1, 87, 0, -24, 87, 52, -72, 104, 95, 90, -87, 104, -95, -89, -123, 63, -123, -15, 63, 102, -53, 124, 16, 83, 51, 59, 73, 2, -2, 80, -79, 126, 41, 95, 114, 0, -87, -120, -120, 2, -81, 119, 96, 36, -94, Byte.MIN_VALUE, 75, 84, 19, 19, -6, 118, -76, 52, 73, -66, 114, -11, 111, 98, -127, -119, 96, -53, 0, 52, -119, 0, -36, 20, 9, 104, 87, 111, -117, -85, -85, 106, -3, 107, -78, 70, 80, 113, -80, 4, 102, 83, -60, -93, -98, -93, -127, 59, 0, -89, -89, 69, 87, -123, 80, -98, 126, 123, -87, -127, -60, -89, 123, -73, -127, -46, -76, -125, 0, 0, -89, 5, 89, 104, -75, -62, 17, 121, 121, -76, -26, -72, -123, 89, -4, 41, 121, 95, 55, 90, 95, 95, -76, 121, 111, 114, -123, -117, 109, 10, 100, 126, 126, -98, 8, 85, 41, 39, 3, 66, -127, 3, 68, 39, 0, 63, -127, 35, 111, 93, -112, 119, 126, -61, 96, 54, 86, 31, 39, 104, -69, 88, 84, 77, -23, 38, -4, 81, 81, 19, 9, -15, 113, 113, -114, -6, 8, 106, -6, 24, 112, -115, 126, -4, -6, -122, 99, 114, -51, 79, 86, 86, 113, 100, 119, 90, 8, -122, 90, 38, 71, 10, 87, -40, 62, 3, 110, 124, -10, 38, 110, 115, 112, -117, -87, 90, 8, 124, 101, -15, 20, 87, -120, 66, 17, 19, 102, 8, 4, 35, 67, -80, 102, 58, 102, 107, -87, 37, 4, -52, 96, 48, 126, 126, -66, 90, 101, 76, -82, -120, 104, 87, -96, -123, -87, 104, -10, -127, 110, 35, 104, 79, -53, 2, -1, 107, 100, -123, -67, 0, -127, -126, -46, 49, -6, 92, -82, 3, 34, 109, -126, 73, 35, 7, 77, 112, 41, 96, 87, 37, -125, 90, 87, -127, 84, 90, -87, -92, 14, 41, 112, 110, -122, 58, 100, 68, 65, 73, 126, 83, -123, 50, 85, -117, -60, -6, -6, 111, -114, -95, -61, -3, 49, 85, -74, -87, 67, 66, 61, -97, 93, 112, 111, 9, 85, -15, 80, 75, 104, 112, 52, 5, -4, 19, -40, 1, 80, -84, 109, 78, 70, 77, 8, -113, 79, 24, 101, 107, 109, 32, 0, -95, -108, -127, 90, 68, -68, 95, -59, 111, -122, 39, 96, 125, 100, 15, 16, 80, 90, 112, -63, 80, 90, 18, 90, 110, 110, -65, 86, 107, 39, 39, 60, -120, -111, 64, 90, 112, -98, -61, -95, 72, 121, 3, 67, -87, 103, 114, -117, -48, -77, 46, 15, 107, -124, 74, -92, -20, 49, 85, 85, 85, 112, 82, -85, 51, 8, 15, 15, -127, 84, 94, 112, 0, 104, 14, 122, 60, 104, 72, -49, 115, 121, 85, -69, -55, 104, 81, 107, 63, 111, 25, 0, 0, -67, 0, 33, 39, 26, 38, 63, 5, -76, 80, -123, 60, 36, -13, 4, -15, 111, -125, -73, -77, 0, -122, 106, -124, 43, 81, -123, 78, -127, -127, -69, -69, 109, -83, -65, 85, 49, -87, -67, 89, 0, Byte.MAX_VALUE, -66, 88, -53, -112, 49, 3, 62, -123, -16, -16, -123, 4, 17, -83, -21, 107, 85, -127, -117, 125, 85, -91, -115, -115, 126, 106, 32, -123, 32, 10, 89, 84, 39, 98, 49, 0, 37, 59, -87, 90, 32, 104, -120, 56, 32, -6, -112, 88, 35, -73, 0, 107, 31, -87, 120, 96, -85, -120, 120, 90, -66, 90, -6, 15, -125, -61, 114, 17, Byte.MIN_VALUE, -113, -122, 18, 115, -57, 83, -89, -122, -95, -60, -87, 46, -87, 3, -36, -76, 72, 89, -120, -78, -87, -78, 87, 103, -15, 9, 102, -116, 107, 0, 85, 24, 4, 5, 72, 24, -67, 4, -122, -120, 124, 97, 125, -27, -18, -27, 91, -122, -53, 80, -57, -57, 39, 92, 100, -111, 112, 0, -80, 96, 41, 87, 69, -78, -122, 87, 99, 121, 80, 60, 39, 80, 60, -114, 118, 4, 104, 104, 21, 93, 111, 16, 30, 104, 32, 36, 90, 108, 86, 43, -122, -50, -122, 58, 14, -122, -122, 90, -6, 90, 8, -123, 12, 0, -121, -114, 112, -63, 31, 5, -37, 126, 8, -126, 75, -80, 57, 10, -19, 102, -105, 14, 34, 59, -117, 115, 97, 94, -125, 
    104, -23, 20, 63, 76, 90, 108, -123, -123, 8, -21, 104, -65, 0, -50, -104, 96, 32, 4, 11, 111, 85, 0, 20, 0, 90, 104, 38, -103, 12, -124, -126, 54, -53, -122, 80, 96, 17, -120, 107, 106, 23, -82, 0, 0, -116, 59, 0, -97, -107, -37, 41, -126, -97, 37, -87, -116, 37, -8, 96, 104, 111, 36, -79, 3, 7, -127, 104, 21, -116, 46, 30, 7, -87, -85, -85, -103, -125, 89, 59, 14, 108, 61, 112, -80, 38, 33, 40, 76, 16, -84, 33, -18, -18, 85, 112, -73, 109, 100, 72, 64, -123, -117, -6, -127, -123, 103, -107, 0, 64, 39, 90, 39, 90, 15, 67, -97, 73, 94, 94, 115, 112, 10, 10, 90, 111, 72, 100, 126, 11, 41, -72, 0, 0, 114, 57, 101, 56, 123, 15, 112, 17, -49, -119, 56, 8, 74, 38, 25, -37, 107, -122, -4, 123, -103, -85, -93, -87, -127, 39, -72, 104, 67, 90, 87, 80, 16, 26, -127, -3, 28, 10, 88, 0, -7, -125, -117, -125, -107, -127, 58, 115, 83, 20, 88, 91, 17, 10, -67, -93, 5, 76, 126, 26, 54, -32, 32, -85, 14, -121, 59, 41, 59, 14, -93, -7, 17, -123, 0, 41, 76, 39, 7, 90, 20, 36, -94, -78, 85, 87, -93, -127, 57, 0, 117, 39, -125, -21, 104, 0, 99, 85, 85, 102, 87, 59, 0, 0, 90, 6, 115, -127, -127, -125, 105, 15, 100, 107, -115, -14, -65, -60, -60, -57, 39, 49, 126, -73, -115, -53, 66, -85, 102, -123, -114, 85, 32, 80, 85, 65, 111, -93, 77, 72, 0, -20, -127, -55, -10, 101, 4, 126, -121, 105, 62, -125, -73, 4, -125, 80, -115, 4, -73, -93, 37, 63, 105, -125, 105, 100, 107, -60, 39, 32, -93, -115, -127, 85, 63, 65, 111, 101, -121, 4, -123, -118, -121, 51, -115, -123, 34, -127, 102, 58, -107, 63, 33, 122, 5, 96, -123, -122, 107, 100, 41, -122, 124, 3, 92, 52, -40, -127, -76, -123, -120, 14, 92, 121, 33, 100, -123, 97, 41, 85, 104, -87, -115, 85, 100, 85, 100, 100, 68, 90, 3, 3, -123, 119, -127, 83, 98, 66, 119, 30, 61, 95, -122, 104, 12, 98, 106, 32, -6, 75, -127, 98, 106, 77, 86, 99, 102, 50, 37, 106, 91, -115, 89, -45, 36, 110, -123, 93, 84, 91, 34, 35, 87, 22, -114, 95, 104, 104, 52, 38, 115, 37, 115, 95, -125, -120, -124, 101, -112, -112, 126, 102, 90, -125, 67, -80, 63, 101, -87, -46, -21, -121, 93, 39, -117, 5, 124, 75, 104, 4, Byte.MIN_VALUE, -10, 14, 93, 41, 6, 56, -109, 61, -120, 48, -127, 109, 95, 98, 104, 125, 115, 39, 30, -123, 39, 117, 30, 101, 107, 5, 126, -122, 122, 92, 88, 126, 37, 40, 69, -60, 126, -55, 77, 126, 100, 93, 103, 80, 13, 66, 38, -89, -120, -99, -102, 84, 111, 63, -127, -123, 12, 52, -92, 77, -99, 81, 39, 68, 58, 11, 32, 110, 118, -2, 0, 42, 3, 111, 89, 37, -122, 87, 84, 84, 95, 50, -7, 126, -120, 48, -125, 48, 72, 0, 33, 46, -122, -108, 4, 49, 89, 54, 79, 96, 85, 38, 57, 104, -50, 106, 66, -15, 47, 32, 36, -114, -127, -6, 59, 45, 80, -117, 1, -125, -124, 120, -110, -4, -113, -84, -125, -120, 114, -74, 37, 16, 123, -14, 111, 67, 95, -14, 39, 96, 39, Byte.MAX_VALUE, 122, 77, -122, 63, 90, 90, -7, 68, -125, -6, 111, -112, 43, 85, 126, 106, 3, 87, -48, 36, 87, -120, 101, 100, 118, 96, 96, -28, -6, -52, 103, 80, 0, 63, -110, 32, -125, 20, 0, 125, Byte.MIN_VALUE, 96, 107, -60, 89, -60, 85, -3, 36, -26, 49, 52, 9, 38, -4, 39, -124, 112, 90, 97, 61, 102, 102, 121, 111, 16, 49, 1, -87, -53, -53, 33, -127, -54, -125, 120, 124, -85, -77, 24, -24, 105, 85, -113, 5, 5, -121, -127, 104, 121, -124, -67, 34, 112, 122, 32, 95, 123, 27, 85, 35, 74, -124, -46, -93, 77, 107, -115, -127, -106, -123, 20, 126, -117, 84, -125, 124, 39, -2, 59, 122, -7, 38, 96, 119, 126, 59, 54, -4, -127, -123, -120, -85, -31, 104, 2, 126, -15, 126, 122, 104, 104, 32, 9, -31, -4, -115, 57, 121, -121, 114, -40, 107, -125, 111, -125, 126, 72, -127, 96, 117, -89, 37, 80, 32, -87, 104, 15, -127, 100, 77, 40, 80, 40, 102, 32, 9, 106, -93, 36, Byte.MIN_VALUE, -127, 124, 117, 104, 59, 126, 100, 72, 100, -127, 68, 90, 12, -127, -122, 119, 61, 9, 32, -6, 75, 98, 104, 98, -127, 12, -124, 126, -24, -117, 99, -45, 95, 77, -74, 93, 50, 87, 35, 84, -115, -124, 102, 115, -10, -109, 39, 93, 124, 52, -125, 63, -121, 48, 4, Byte.MIN_VALUE, 14, 104, 104, -99, -89, 39, 103, 39, -122, 126, 37, -120, 37, 122, 58, 101, 5, 107, 98, 104, -124, 92, 88, 30, Byte.MAX_VALUE, 95, -121, -122, 84, 111, -2, 84, 95, 110, 126, -99, 48, 50, 78, 1, -120, -110, -28, 72, -113, 85, -108, 80, 111, 36, 37, 66, 32, -84, -114, 54, 59, 37, 104, -52, 36, 67, 125, -125, 90, 97, 103, 80, 77, 111, 96, 32, -112, 3, 100, 63, -60, -14, 95, -53, 59, 52, 90, 102, 9, 39, -4, -60, -121, -67, -127, -125, -54, 59, -125, -2, -93, -7, -115, 100, -4, 126, 36, 102, -4, 119, 99, -115, 119, 112, 119, -6, 85, Byte.MIN_VALUE, -83, 112, 72, -78, 71, -124, -6, 38, 87, 62, 78, 14, 41, 87, 87, -123, -123, 100, 100, 39, 41, 126, 74, 104, 74, 104, -125, 6, 120, 77, 51, 88, 124, -125, -107, 92, 4, 90, 85, 18, 114, 111, -120, -126, 86, 85, 121, 81, 124, 18, 63, -111, 86, 104, -123, 10, 31, 112, -15, -50, -15, 101, 
    76, 110, 66, -53, 49, 94, 124, -97, 115, 115, -53, 3, -65, -87, -40, 14, 111, -126, 72, -65, -15, 85, 77, -117, -53, 41, 59, 124, 4, 11, -125, 112, 90, 23, 100, 62, 104, 113, 78, -11, Byte.MIN_VALUE, 83, 59, 105, 120, -123, 80, -120, 39, 14, -112, 80, 107, -14, 15, -68, 57, 38, -99, 85, 67, 104, 38, -65, 115, 14, -76, -81, 126, 92, -14, -112, -126, 95, 121, -123, 92, 118, -125, 107, 98, -125, 35, 18, 18, 3, 35, 43, 118, -121, -94, 117, 49, 36, 33, 65, -18, 99, 87, -68, -125, 54, 90, 58, 49, 49, -123, -127, Byte.MAX_VALUE, 72, -121, 93, 47, 114, 10, 116, -94, 87, 25, -127, 38, 2, -117, 90, 101, 23, 120, -83, 80, 7, 36, -117, -123, -115, 16, 114, 123, 59, 117, 100, 0, 32, 78, 107, -121, 93, 87, 118, 14, 72, 41, 100, 0, 96, -78, 93, 118, 11, -125, 90, 112, 100, 23, 120, 87, 7, Byte.MAX_VALUE, Byte.MIN_VALUE, -123, 83, 59, -11, 15, 101, -120, 105, 80, -125, 14, 39, 67, 107, -99, 57, -65, 85, 115, 104, 121, -123, -126, 126, -112, -81, -76, 118, -112, 92, -121, 3, -125, -94, 35, 90, 72, -127, 41, 33, 48, 14, -121, 99, -18, 58, -94, 87, -115, 90, -117, 23, 120, 100, 117, 114, 123, 32, 107, 93, 38, 85, 35, -48, 93, 85, 37, 115, 37, -127, 86, 60, -110, -110, -87, -118, 90, Byte.MIN_VALUE, 93, -6, 32, 2, 0, 87, 48, -115, 0, 38, 48, 36, 36, 67, -117, 34, 63, 27, 126, -120, 113, 4, -122, 38, 41, 103, 97, -112, 66, 76, -82, 93, 56, 51, 85, Byte.MIN_VALUE, 52, 106, -117, -125, 6, 60, 47, 53, -76, 4, 59, 3, -112, 64, 4, 38, 125, -2, -2, 102, 119, 113, 0, 117, 117, -109, -23, 10, -103, 115, 75, -115, 90, 36, -125, 84, -123, 57, 113, -23, -6, 113, -3, 75, 58, 104, -39, -80, -63, 6, 67, -103, 75, -126, 48, -19, -5, -120, -117, 67, -123, 90, -21, -117, 32, 20, -40, -117, -87, 98, 104, -127, 57, 87, -123, 76, 41, 5, -102, -118, 107, 2, -98, 88, 38, -76, 13, -123, -126, 66, 23, -125, 56, -2, 14, 87, 76, -127, -117, -127, 41, 71, 41, 92, -36, 89, 20, 97, 7, -52, 41, -84, 109, -123, 40, 89, 0, 57, -125, -6, 83, 80, 47, -122, -127, -36, -117, -117, -74, -76, -88, 123, -117, 38, 78, 5, 64, 20, -109, -1, -6, 51, -111, 23, -111, -21, -123, -124, 65, -123, 111, 76, 75, 46, 109, -122, 63, 124, 36, 42, -125, 103, 60, -117, 90, -109, 67, -14, 16, -28, 64, 30, 73, -125, 60, 55, 85, 57, -3, 126, 65, 64, -127, -36, -21, -79, 126, 14, 39, -76, -83, 51, 60, 57, 52, 85, -98, -127, -123, -3, 63, -67, -111, -85, 13, 119, -39, 17, 73, -117, 62, 29, 87, 83, 41, -122, 75, 20, 51, -109, -115, -115, -81, 57, -2, -2, -7, -83, 75, 52, -99, 119, 57, 14, 14, -120, -117, 41, -2, 75, 40, -127, 84, 113, -39, -81, -82, -123, -87, -123, 32, 41, 73, 80, -78, -81, 87, 80, -108, -93, 90, 9, 90, -36, 57, 4, -122, 52, -108, 85, -98, -115, -81, 37, 100, 58, 0, 4, 64, 76, 76, 100, -92, 0, -73, 2, -127, -117, 60, 0, 0, 100, 0, -110, 4, -77, -91, 76, -123, 0, 64, 60, 0, 111, 35, 99, 107, -114, 80, 113, 91, 63, 96, 83, 12, 32, -3, 41, 74, 36, 57, 77, -50, -6, -65, 18, 12, -4, -117, 119, 121, 4, 125, 63, -80, 57, 5, -125, 83, -99, 4, -16, 11, 102, 102, -19, -120, 15, 77, 6, -121, -123, 102, -108, 104, 1, 39, -10, 80, 2, -117, -123, 106, -76, -112, 5, -121, 116, -123, -117, -84, 111, 34, 110, 124, 114, -127, 78, 90, 1, -121, -40, -80, -127, 126, -84, -112, 126, 79, 47, 109, -111, 104, -16, -4, 108, -39, -10, 105, 11, -74, -22, -84, 18, 16, -127, 101, 87, 43, 50, 46, 96, 110, 119, 41, 90, -112, 90, 81, 12, 126, 111, 81, 61, 102, -125, 86, 112, -76, -118, 34, -117, 80, Byte.MAX_VALUE, 0, 35, -123, 126, -7, -91, 86, 83, -81, 96, 27, -111, 124, 104, -127, 74, 80, 111, 87, 119, -89, -18, -87, -87, -76, -81, 35, 99, 107, 96, 57, 12, -117, 77, -74, 18, 119, 102, -108, -76, -121, -123, 104, 121, -125, -87, 102, 1, 39, 116, -123, -123, -121, 5, -76, -123, -127, 90, -84, -39, 11, 126, 108, 79, -84, 47, -112, 50, 90, -127, 81, 41, -18, 112, 86, 126, -76, -127, -81, 91, 102, 48, 48, -15, -107, 15, -95, -95, 48, 97, 8, 15, 15, 15, 0, 15, 8, 48, 15, 15, 36, 17, -32, -32, -125, 47, 47, 0, 13, 15, 15, 0, 0, -83, 56, 32, 93, -4, 111, 111, -6, 98, 104, 109, -68, -6, 115, 79, 0, -114, 107, 64, 114, -121, 113, 99, 83, 84, 57, 77, 111, -126, 0, -121, 112, 80, -85, 38, 35, -40, 66, -123, 104, -119, -126, 36, 57, 80, 63, -9, 79, 67, 120, 61, 41, 75, 0, -120, 126, 69, 110, -60, 13, -127, -49, 104, -122, -115, -82, 98, 73, 50, 39, 61, -20, 120, -40, 75, -119, 96, 98, 21, 110, 89, 3, 70, -120, 3, 63, 63, 71, -120, 64, 71, 104, -127, 69, 106, 84, 39, 37, 52, 119, 7, 87, -85, 56, 126, -87, 0, -107, 12, 55, -115, 13, 124, 57, -76, 110, -121, -121, 111, 47, -98, 80, 64, 104, 56, 112, -73, 14, -28, 111, 59, 54, 75, 54, 100, 43, 38, 64, 111, 39, -125, 110, 114, 77, 15, 109, 77, 86, 125, 3, 60, 56, 80, 0, 104, 101, 102, 41, -79, 98, 57, 63, 38, 112, 52, 57, -4, 0, 102, 105, Byte.MAX_VALUE, 
    5, 39, 27, 52, 52, 119, -127, 75, -123, -77, 38, 55, -81, -106, 10, -4, 96, 111, 104, 84, -83, -117, 39, 14, 102, -68, 90, 54, 124, 126, 62, 80, -58, 15, 15, -95, -87, 112, 110, -73, -87, 104, 68, 62, -6, 109, 32, 112, 111, -66, 17, 2, 0, -99, 90, -110, 18, 84, 92, -44, 0, 37, 9, 112, 54, Byte.MIN_VALUE, 90, 9, 84, -117, 110, 112, 58, 3, 14, -15, 19, 34, 11, 76, 63, -110, 103, -81, -99, 107, -120, 39, -103, 111, 92, 115, -1, -123, -127, 98, 120, 92, -123, 85, 107, -28, -92, -126, -101, -124, -92, 114, 100, 37, 71, 85, -72, 90, 84, 90, 95, 114, -92, -126, 99, -114, 107, 20, 85, 11, -87, 114, 21, 89, -6, -15, 1, 109, 0, 59, -110, -10, -94, -40, 36, 110, 21, 88, 58, -117, 109, -2, 104, 71, 100, -63, 21, 11, 77, 111, -116, 111, 114, 120, -98, 88, 88, 51, 60, -55, 85, 17, 41, -112, -110, -117, 84, 88, 114, 114, 109, 14, -65, 34, 90, -83, 106, -117, 121, -2, 100, Byte.MAX_VALUE, 83, 84, 95, 62, 14, 91, 14, 29, 80, -124, -65, 32, -81, -9, 58, -61, 103, 26, -101, 87, -61, -110, -99, -85, 117, 32, 110, -6, 100, 32, 55, -80, 124, 85, 87, 117, -87, 110, 68, 3, -113, -18, -121, 104, 93, 111, -118, 100, -107, -65, 58, 95, 70, -125, 86, 0, 0, 114, 58, 65, -5, 75, -105, 112, 102, 52, 82, 40, 57, -55, -91, 47, 40, 110, 69, -123, 87, -124, 37, 106, 71, -123, -63, -103, 53, -89, -7, -107, 111, 100, 39, -38, 80, -76, -93, 100, 61, -18, 126, 46, 59, -107, 47, 51, -97, 64, 87, 72, 121, 95, 92, 59, 3, 46, 114, 82, -108, 51, -60, 5, 40, 55, 114, 109, 4, 124, 111, 60, -124, -13, -91, 111, -87, 119, -91, 104, -124, 21, -123, 85, 59, 82, -32, 104, -87, -117, 100, 104, -38, 17, 98, 40, 100, -80, -60, -60, -38, 91, -123, 39, -60, 100, 15, 23, 39, 110, 39, 39, -87, -122, 103, -84, -87, -121, -121, 91, 104, -83, 60, Byte.MIN_VALUE, 68, -87, 3, 115, 90, -125, -123, 6, -75, 90, -49, 66, 32, -2, -104, 43, -112, 83, 111, 122, 112, 100, -6, -66, -125, 63, 49, 85, 104, 31, 57, 71, 85, -27, -4, 0, -125, -15, 103, 106, 6, 84, 36, -125, 70, 113, 100, 90, 21, -50, 91, 77, -115, 75, 101, 106, -4, 8, -127, 12, 34, -33, 86, 114, 104, 0, -15, 109, 119, 106, -114, 39, 104, -122, -36, 92, 14, Byte.MIN_VALUE, 58, -110, 0, -76, 0, 0, 76, -112, -40, 71, 39, -56, 102, -108, -80, 19, 104, 102, 6, -15, 111, 49, -105, 21, 110, 65, -126, -125, 39, 39, 67, -117, 126, 57, 35, 96, Byte.MIN_VALUE, 10, 115, 14, 38, 41, 39, 20, -120, 38, 115, -9, 69, -4, 90, 125, -79, -4, 90, -87, 113, -15, 101, 8, 20, -122, 101, 41, -124, -51, -40, 85, 63, -126, -51, 59, 37, 104, 49, -99, -113, 11, -125, 69, 92, 119, -123, 38, 80, 96, 19, 39, -52, -126, 106, -114, -121, 39, 33, 69, -53, -89, -127, 111, 95, 12, 54, -123, 2, 32, 38, 87, 92, 5, -15, 104, -120, 120, -55, -102, 102, 87, 87, 94, -114, 30, -91, -127, 109, 17, -60, 104, 106, 106, 3, 69, 110, 27, -109, -4, -75, 0, 2, 66, 112, 19, 39, -106, 3, 89, -127, 94, 118, 64, 55, 103, 100, -122, 71, -72, -63, -92, 78, 91, 114, 11, 84, 52, 111, 32, 68, 20, 112, -126, 119, 52, 87, 32, 78, -123, 49, 96, 84, 84, 66, 100, -113, -71, 92, 0, 37, 112, 0, 103, 41, 123, -117, 87, 77, -66, -7, -87, 39, 19, 37, 95, -87, 62, 0, -120, 0, 71, -79, -107, -117, 33, 112, -125, 94, 66, 61, 33, -74, 109, -80, 11, -76, -87, 1, -18, -116, -56, -107, -16, 3, -15, 87, 99, -115, -89, 1, -105, 57, -97, 72, 80, 45, -112, -124, 12, -36, 49, 46, 59, 68, -6, -4, -113, -6, 111, -121, 105, -65, 33, 65, 85, -85, 61, 102, 55, 41, -125, -76, -61, -76, 122, 16, 91, -94, -107, -115, 0, -49, 78, 117, 0, 61, 87, 0, Byte.MIN_VALUE, -84, 0, -62, -112, 107, 63, -85, 109, 87, 72, 71, 80, 49, 90, 16, -127, 77, 16, 36, 64, 124, 119, 101, 73, 86, 111, -106, 92, 125, 80, 90, Byte.MIN_VALUE, 30, -1, 35, 119, -98, -28, -52, -2, -2, 120, -125, Byte.MIN_VALUE, 124, 103, -56, -125, 73, -125, 49, -98, 121, 96, 118, -122, -125, 15, -122, -112, 94, 103, -63, -22, 2, -122, 0, -63, 30, 57, 9, 86, -85, 56, 85, -79, -109, 103, -31, 82, 15, 60, 56, -3, 96, 48, 45, 20, -21, 57, 14, 25, 94, -112, 84, 107, 125, 66, -79, -112, 55, 30, 51, 78, 114, -125, -125, -73, 104, 112, 60, -36, 85, -126, 96, -69, -116, 15, 0, 56, 0, 0, 0, -50, -76, 56, -104, -109, 72, 94, 105, 96, -85, 40, 5, -67, -53, -73, 14, 80, -79, 63, -2, Byte.MIN_VALUE, 106, -76, 5, -106, -3, 53, -6, 33, 60, -67, 109, 32, 87, -120, 16, 41, -77, 94, 49, -78, 117, -125, 26, -87, 86, 85, -110, 0, 13, 0, 0, -124, -76, 122, -127, -7, 126, -3, -9, -81, 56, 94, 24, 37, -98, 24, -79, -46, 125, -12, 54, 83, -2, 43, 101, 60, 88, -115, -123, -106, -83, -122, -91, 74, 59, 117, -127, -125, -122, 62, -77, 107, 74, -115, -31, 64, -7, 67, 0, 0, 68, 32, -112, -125, 85, 54, -76, -116, 126, 111, -85, -113, -2, -4, -113, -89, 14, 67, 124, 103, 76, 109, 59, -117, 86, 56, 11, 104, 2, 59, 98, 66, -120, 118, -115, -127, -36, 57, Byte.MIN_VALUE, 1, 18, 107, -98, -34, 
    95, -125, -125, -3, 30, -123, -57, -87, -89, -127, -108, -99, 33, -16, -95, 72, 48, 47, -72, 16, 10, -76, 0, 0, -78, 77, -76, 91, -125, -93, 20, -125, 102, 32, 88, -125, 85, 105, 25, -36, -89, 52, 4, -21, -73, -108, -75, 119, -36, -115, 60, 41, -93, -121, 91, 104, -125, 68, Byte.MIN_VALUE, -9, -83, 71, -4, 43, 32, 22, 83, 66, -62, -27, 101, 31, 92, 92, 21, 58, -117, 75, 34, -122, -50, 11, 94, 8, -4, 102, 0, -114, 84, 101, -110, 84, Byte.MIN_VALUE, 70, -33, 6, 111, -4, -124, -4, 102, 20, -108, -9, 21, 20, 113, -108, -51, 59, -126, 65, 110, 67, 20, -80, 48, -4, -65, 10, 39, 96, 75, 14, -40, -15, 76, 92, -109, -91, 80, -66, 99, 110, 37, -126, 103, -46, -123, 59, 69, -72, 66, 106, -112, 124, -120, 87, 68, 69, 87, 122, 5, 30, 110, 102, 96, -55, -124, 27, -123, 104, 32, 39, 60, 3, 106, 17, -120, -91, -7, 84, -94, 62, -85, -106, 89, 56, -87, 123, 41, 109, 95, 77, 94, 55, -71, 87, 91, -79, -112, -125, 19, 64, -92, 0, -117, 1, 1, -127, -28, 55, -65, 12, -6, 61, -108, -97, 33, 85, 102, -73, 45, -115, -121, -123, 87, -116, Byte.MIN_VALUE, -18, 59, 68, -125, -117, -61, -112, -1, 107, -112, -3, 49, 77, 30, -2, -122, 73, 51, 125, 124, 2, 72, -63, -77, -112, 85, -63, -53, -125, 20, 96, -36, 60, -116, -36, -50, -79, 114, 9, 104, -126, 18, 15, 16, 60, -67, -73, 13, 109, -120, 63, -109, 96, -79, 32, -115, -83, -7, -76, 75, -93, -7, 52, -3, 62, Byte.MIN_VALUE, -89, 124, -113, -85, 104, 30, 16, -95, 32, 88, 33, 33, -118, 5, 67, 4, -83, -60, Byte.MAX_VALUE, -62, -69, 44, 32, Byte.MIN_VALUE, -62, 100, 14, 112, 14, 0, -112, -110, 13, 119, 20, 24, 87, 87, -125, -56, 86, -56, 71, 124, -46, 0, -16, -108, -80, 15, 14, 20, 115, 105, 96, 115, 82, 41, 119, 107, -56, 0, -97, -92, -72, 68, 30, 100, 113, 113, 32, 4, -81, 33, 31, -97, 100, -56, 100, 77, Byte.MAX_VALUE, 111, 81, 88, 0, 88, 4, 102, 81, 8, 3, 80, 106, -96, 6, -93, 72, 0, 0, 65, -36, 56, -112, 115, 6, 44, 105, 71, -6, -98, 60, 105, -13, -111, 85, 126, 32, -15, 59, 124, 57, 81, 0, -62, 44, 32, 100, 112, 14, 81, 44, 20, 80, 87, 119, -125, -56, -110, -62, 124, -46, 107, 81, 57, -56, -72, -112, 82, 96, 115, -97, -118, 113, -92, 72, 111, 100, 33, 85, 81, Byte.MAX_VALUE, 100, 100, 32, -93, 4, 126, -96, 6, 115, 65, 56, 6, -111, 124, 90, 90, -90, 74, 91, -4, 84, 104, 75, 106, 101, 71, 77, 38, 8, -18, -106, 114, 18, -123, -15, -120, 84, 101, 106, -125, -122, 37, 77, 4, 63, -109, -105, 65, -80, 1, 75, 75, -9, 19, 90, -127, -76, -78, 36, 92, 76, -77, -53, -124, 41, 76, 87, 80, 107, 84, 92, 32, -114, -2, 92, 46, 90, 14, 32, 32, 38, -123, -7, 71, 112, -125, 41, 87, -123, -36, 114, 87, -18, -18, -110, 104, 74, -74, 106, -117, 45, 36, -15, -80, 61, 87, -76, 0, 87, 106, -120, 101, 13, 32, 39, 100, 106, 111, 64, 111, -78, 80, 80, -36, 74, 54, 3, 125, -122, 54, 106, 92, 100, 126, 96, 114, 84, 80, 2, 85, 60, -127, Byte.MAX_VALUE, 60, 5, 85, 106, 22, 10, -81, 73, 62, -15, 54, 54, 111, 87, 86, -40, 80, -127, 60, 85, 106, -123, 126, -78, 85, -87, -87, -87, -115, 115, -123, 55, -116, -48, 104, 6, 100, 0, 99, 93, 99, -127, 102, 124, -123, 101, -114, 48, 109, -117, 41, 121, 115, -73, 111, 40, 66, 54, 112, Byte.MIN_VALUE, 45, 105, 41, 115, 109, -127, 54, 40, -79, -87, -48, 97, 115, -127, -127, 111, 111, 97, -50, 89, 27, -51, 81, 86, -20, 114, -87, -87, 101, -80, -89, 3, 10, -61, 65, 59, 113, 84, Byte.MIN_VALUE, 95, -127, -51, 36, 89, 124, 68, -125, -18, -63, -80, -6, 40, Byte.MIN_VALUE, 30, 85, 82, 126, 107, -40, 40, 74, -81, 0, 70, 107, 84, -80, 45, -80, 86, 119, 106, -68, -53, 114, -79, -61, 18, 84, 80, -96, 106, 85, 104, 2, 58, 62, 87, 111, -76, -78, 57, -127, -20, 101, 6, -15, 80, 0, 85, -127, -68, -61, -61, -89, -87, Byte.MIN_VALUE, 2, 85, 57, -78, -80, 2, 87, -87, 10, 0, 115, 115, 19, 1, 1, -120, -6, -125, -120, 37, 1, -120, -120, 65, -120, 65, 85, 85, -109, -60, -59, -59, -19, 103, 65, 126, 103, 96, 68, 12, -125, 12, 63, 72, 84, 12, 0, -121, 97, -33, 6, 106, 22, 12, -53, -109, 56, 8, 104, 102, 61, 11, -126, 119, -19, 101, -53, 106, -126, 61, -127, 90, 3, 3, 117, 100, 100, 56, -2, 68, -67, 107, 54, 66, -2, 96, -105, 13, 57, Byte.MAX_VALUE, 19, -96, -117, -95, 90, 16, 9, 104, 3, 3, 115, 89, -51, -117, -125, 15, 63, -125, 0, 61, 101, 57, 11, 90, -21, 96, 14, -96, 60, -77, 107, -2, 97, -127, -125, -124, 32, 56, Byte.MIN_VALUE, 87, -4, 72, 76, -125, -93, 80, 12, 90, -63, -116, 96, 80, -2, 112, 33, 0, 16, 98, 35, 80, 96, 11, 61, 101, 114, 95, 14, 80, 126, 41, 76, 72, 80, 12, 90, 112, 80, 114, 61, -118, -118, 87, 90, 87, -127, 106, 115, 114, 34, -73, -16, 125, 107, 114, -16, 106, 106, 88, 121, 103, 68, 1, -21, 88, 47, 112, 95, 104, 95, 102, 50, -98, -6, 113, 111, 78, 8, 75, 63, 58, -21, -9, -80, 37, -120, -89, 115, -2, 77, 77, 80, -122, 103, 37, 104, 104, -108, 74, -14, -10, -89, 90, -126, 70, 126, -98, -126, -90, 68, 37, 107, -114, 121, 112, 
    -120, 73, 73, -11, -94, 73, -112, -112, 45, 68, -94, 100, 112, -4, -108, 53, -119, 0, 104, 23, 64, 77, 77, 100, Byte.MAX_VALUE, -111, 109, -117, 100, 87, 91, 104, 112, 25, 65, 65, -124, -103, -89, -83, -13, 104, -67, -6, 102, 114, -2, 102, 98, -4, 126, 126, 17, 119, 18, 87, -11, -76, -93, -36, 5, 103, 68, 1, 112, 88, 47, 95, 95, 78, 102, 75, -6, 8, 50, 113, 111, -76, -80, -9, -120, -122, -126, 68, 115, 107, -119, -108, 104, -11, 126, 73, 112, 107, 107, -108, 64, 109, 77, -117, 100, 77, -36, -67, 65, 25, 114, -89, 126, 17, -11, 5, 87, 16, 0, 90, 86, 126, 16, 22, 82, 58, -82, 103, 96, 34, -117, 16, 49, 80, 101, 102, 51, -112, 26, 83, -79, 85, -83, -13, -13, -79, 16, 16, 16, -83, 0, 27, 87, 16, 87, 101, 126, 16, 22, -117, 49, 51, 102, -79, -13, 16, 16, 85, 83, 85, 85, 39, 39, 24, -127, 68, 49, 75, -125, 55, 88, 74, 12, 111, -116, 38, 106, 83, 83, 55, 106, -120, 104, 125, 14, -122, 61, -79, 48, 67, 49, 10, 39, 76, 111, 12, 65, -123, -126, 19, 102, 69, 48, 88, 101, 101, 80, 100, -90, 104, 24, 20, -44, 77, 21, -114, 71, 52, 111, 39, 102, Byte.MAX_VALUE, 109, 39, -125, -115, 19, 87, 21, 103, 59, 85, Byte.MAX_VALUE, 80, 105, 77, -29, Byte.MAX_VALUE, 121, 125, 67, 126, -125, 120, 115, 92, 86, 80, 102, 30, 50, 60, 20, 95, 85, -98, -79, 51, 61, 103, 114, -53, 60, -67, 14, 111, 94, -121, 24, -98, -117, 32, 38, 58, 104, -127, 10, 37, 109, 61, 126, 88, 126, 86, 111, -61, 100, -53, 32, 88, -73, -108, -47, 39, 68, -127, 75, 92, 74, 85, 12, 111, 38, 83, 106, -125, 39, 10, 49, 76, 104, 80, 10, 88, 115, -90, -123, 85, 19, 20, 71, 77, 111, -44, -114, 109, Byte.MAX_VALUE, 87, 105, 30, -98, 102, 51, 32, 103, -53, 20, -79, 94, -121, -67, 24, -117, -47, 40, -98, 109, 88, 86, 6, -40, 14, 20, 71, 112, 85, -125, 100, 2, 90, 87, 81, 91, 86, 18, 92, -69, 111, 87, 112, 63, 75, 75, 38, 98, -120, -123, -18, 91, 14, 22, 106, 81, -123, 58, -72, 110, 20, 10, -101, 75, 104, 4, 81, 4, -119, 20, Byte.MIN_VALUE, 112, -16, -121, -117, -120, -30, -117, -15, 118, -126, -80, -125, 58, 90, 101, 39, 14, 75, 75, 49, -79, -69, -14, 61, -123, 15, 63, 70, 98, 5, 37, -119, 80, 111, 20, 0, 106, -73, 0, 58, 90, -79, -117, 50, 0, -66, -84, 112, 71, 96, 73, -114, 77, 37, 92, 2, -76, -115, -121, 35, -14, -97, 61, -94, -111, -108, -6, -6, 100, 85, 26, 100, -122, 102, 84, -14, 49, -14, -4, 85, 125, -125, Byte.MIN_VALUE, 111, 64, 5, 86, -111, -98, 16, 49, 103, 75, -98, 51, -4, 37, -123, -79, -20, 63, 85, 26, 72, 100, 112, -110, 26, 32, -87, -123, 45, -76, 85, -73, Byte.MAX_VALUE, -53, 5, 24, -13, 49, 4, 14, -123, 111, 95, 122, 20, 52, 89, -81, 126, 75, -79, 75, 123, 59, -123, 67, 100, -73, 126, -120, 104, 103, 75, 18, -110, 100, -16, -72, 63, 88, -127, 45, -117, 85, 124, -87, 16, -69, 111, 75, 98, 38, 4, 14, 20, -72, 118, 39, 49, 90, -117, -110, -120, 75, -30, -126, 104, 58, 89, -69, 106, -123, 122, -73, 111, -14, 16, -87, 37, 100, 92, 0, -114, -6, -6, -108, -115, -111, 52, 24, -14, -123, -98, 26, 84, 5, -79, -4, 32, -13, -73, 49, 126, -121, -127, 45, 88, 102, 80, 80, 80, 111, 93, 104, 4, 70, -122, 20, 14, 48, 64, 63, -103, 111, -2, 120, -102, 96, 73, 99, -14, 14, -108, -5, 111, 54, -77, 20, 89, 9, 20, 55, -100, 18, -53, -83, -77, -46, 72, 118, 54, 64, 18, -100, -76, 95, 95, -2, -109, -2, -91, 119, 16, -97, -97, 64, 84, 94, 8, -65, 58, -97, 18, 82, 66, -15, -112, 82, 8, 64, -19, -15, -65, 90, 80, 15, 4, 0, 94, 103, -127, -16, -119, 34, 30, 64, -87, 18, -111, 64, -16, 50, -124, 5, -111, 47, -125, 76, 121, -95, -118, -6, -85, -125, 18, -16, -53, 24, -67, -67, 29, 95, -82, -4, -4, -32, 124, -101, -34, 18, -82, 9, 71, 71, -46, 119, 85, 71, -111, 71, 71, -118, 33, 111, 111, -87, -116, 90, -4, 107, -111, -79, 107, 33, 111, 107, -63, -127, -6, -122, -98, Byte.MAX_VALUE, 6, -9, -63, 95, 100, 89, -84, 111, 73, -6, 79, -84, 80, -125, 38, -13, 14, -53, -127, 95, 40, 100, 126, 111, 60, 12, -127, 6, 119, 75, 66, -127, 111, 77, 6, 30, 113, 74, -53, 92, 37, 83, 112, -15, -76, 81, 121, -76, 115, 84, 86, -50, 110, 0, 0, 115, 86, 4, 112, -15, -80, 75, 6, 3, -10, 90, 14, -127, 80, -117, 66, 6, 110, 108, -15, -39, 92, 58, 10, 90, 124, -117, 102, 0, 0, 0, 57, -122, 42, 120, 88, 80, 3, 80, 66, -120, 106, -82, -73, 69, 104, -6, 19, 80, -123, -7, 107, 87, 96, 126, 0, 0, -109, 0, 76, -114, 64, -59, 34, 115, 56, 0, 111, -44, -127, 108, 99, 0, 84, 3, 68, 90, 124, 40, -87, 30, 30, 95, -61, 0, 0, 0, 0, 109, -40, -112, -6, 1, 88, -44, 46, -127, 66, -1, 102, -121, 70, -94, 85, -40, 104, -97, -76, -118, 33, -120, -74, -80, -110, -87, -61, -111, -123, -39, 0, 0, 0, 39, 26, Byte.MAX_VALUE, 64, 120, 92, -117, -95, -111, -127, 15, 15, 124, 5, -127, 80, 80, 111, 46, 16, 67, 125, -85, 100, 3, 3, -125, 14, 77, 101, 90, 23, -125, 110, 75, 121, 0, 21, 0, 81, -125, 114, 84, -20, 
    26, -79, -69, 39, 39, 105, -112, 63, 57, 102, 96, 15, -4, -6, 81, 21, 0, -85, 5, -90, 126, -56, -127, 66, 4, -125, 26, -67, 85, 3, 16, -127, -127, -120, -124, 3, -117, 109, Byte.MAX_VALUE, -110, 97, 17, -115, 4, 88, 20, -123, 98, 52, 125, -106, 32, 32, 83, 107, -81, 98, -58, 85, 0, 88, 86, 105, 120, -101, 121, 26, 126, 93, 107, 38, -87, 33, 0, 0, 2, 17, -127, 95, Byte.MIN_VALUE, 0, -87, -82, -87, -57, -125, 88, 77, -76, 105, -87, 87, 111, 60, -127, 110, 74, -76, 84, 6, -108, 6, -10, -39, -76, 110, 124, 90, 6, 10, 120, -15, 58, 107, -122, -109, 80, 80, 69, 121, 120, -101, -127, -123, 87, 124, 88, 98, 99, -87, -85, -125, -87, 39, 66, 108, 30, 124, -114, -127, 109, 1, -80, -6, -110, 85, -97, 33, 102, -40, -39, 66, -120, 37, 39, -112, 86, 67, 14, 33, 64, 81, 80, 23, 77, 3, 90, 125, 5, -124, 15, 26, 5, -6, 57, 105, 102, -20, -125, -90, 16, 97, 17, -67, -56, 109, 80, 85, 107, 32, -81, -106, 121, 93, -87, 32, 105, -37, 104, 90, -87, -118, 21, 100, 90, 66, -127, 87, 0, 93, 39, 87, -55, 10, 112, -123, 121, -4, 90, 86, 81, -125, 39, 111, 89, 105, -117, -115, -15, 124, -125, 10, 100, 99, -124, 84, 87, 81, -24, 62, -126, -30, -80, -57, 90, 75, 81, -87, 15, -123, 96, 112, -112, 4, 89, 38, 58, -117, 110, 102, -122, 111, 101, 15, 99, -123, 111, 0, 107, -115, 84, 80, 103, 2, -123, 100, 118, -123, -127, -82, -120, 12, 64, 119, -73, 17, -52, 96, 12, -123, 94, -121, 38, -73, 0, 0, 0, -75, -126, -127, 111, 124, 75, 21, 84, -116, 111, 20, 98, 98, 14, 85, -114, -117, 71, -120, 64, 77, 77, -99, 121, 84, 37, -95, 0, 0, -76, 19, 41, 90, 3, Byte.MIN_VALUE, -16, 0, -4, 11, 66, -76, 6, -125, -117, 71, 99, 112, -6, -87, 103, -115, -105, 76, -97, 38, -6, -120, -40, 77, -120, -112, -94, 70, -6, 46, 99, -117, 4, 0, 0, -127, 41, 0, 38, -58, 16, 90, 3, 64, 121, 64, 77, -122, -65, 90, 46, 71, 100, 115, 112, -14, 114, -63, 121, 107, 75, -51, -117, 0, 25, 84, 96, 107, 112, 96, 82, 39, 115, 41, 60, 86, 21, -79, -127, 102, -125, -114, 112, -112, 48, 104, 102, 100, -127, -87, 65, -104, 64, 64, -40, 71, -69, -123, -79, -125, 36, -87, -117, -127, 5, 102, 104, -24, 38, -123, -83, 15, -77, 14, 45, -113, 111, 84, -115, 106, 59, 49, -123, 104, 122, 14, 107, 52, 125, 83, -123, -83, 100, -109, -118, 87, 87, 71, -68, -106, 111, 107, -76, 72, 87, 97, 104, -15, 41, -73, -6, 104, -127, -127, 111, 126, 103, 101, -15, -34, 121, -60, 107, -61, 63, 113, 111, -89, 20, -76, 115, -78, 45, 113, 107, 105, 4, -87, -75, -37, -118, -127, 112, -55, 39, -24, 99, 25, 10, -125, 102, 70, -76, 99, 89, 101, -80, 38, 4, 112, 97, 75, 49, -123, 80, 103, 94, 118, -121, 96, -75, 119, 84, 20, -87, -116, 121, 77, 111, 87, 64, 84, 6, -58, 3, -97, 11, -16, -4, 46, 99, 112, 52, 121, 115, 77, 102, 3, 48, -63, 84, 104, 102, 82, -79, -127, 104, -125, 115, 104, 107, -127, -79, -83, -123, -118, 111, -76, 124, 126, 107, 121, -61, 105, 45, -76, -121, -80, -125, 87, 55, -125, -125, 100, 55, -76, 110, 51, -127, 16, 51, -19, -120, -114, -120, -125, -60, -60, 84, -79, 36, -114, -81, -40, -6, -76, -118, -114, -120, -87, 88, 100, -126, -60, -87, 35, Byte.MAX_VALUE, -81, -120, -6, -80, 100, 51, -68, -68, 96, 34, 90, -59, -59, 90, -19, 4, 4, -52, 90, 87, -94, 4, -59, 38, 87, 90, 4, -59, -69, -69, -53, 126, 0, -110, -43, 86, 125, 125, -121, 106, 65, 70, 119, 85, -99, 119, 41, -87, -39, 38, 116, 116, 104, -4, -125, 85, 72, -53, -53, -4, 57, 41, 110, 65, 104, 86, 100, 4, -63, 100, 1, 111, -87, 59, 72, 24, 106, 3, 100, 59, 3, -125, 57, 24, 104, -63, 58, 100, 72, -76, -123, 86, 90, 90, -56, -56, 112, 51, 4, 34, 76, -120, -123, -66, 5, 17, 75, 14, 112, 34, 75, 68, -60, -49, 68, -112, 102, 102, 70, 86, 61, 112, -15, 33, 95, -6, 112, 60, 63, 41, 41, 86, 85, 81, 6, 66, 75, 69, 4, 38, 39, 110, 39, 68, 84, -39, -120, Byte.MAX_VALUE, -117, 100, 71, 49, 85, 87, 100, -89, 14, 102, 100, 112, 126, 84, 120, 85, 96, 124, 94, 82, 124, -32, -47, -6, 125, -127, -112, -127, -127, -6, -127, 38, 36, 36, 115, 99, -107, 90, 10, 120, 39, -112, 38, -39, -117, 66, -80, -80, 41, 5, 90, 106, -36, -118, -36, 47, -97, 111, 41, 104, -40, 55, 47, 4, -39, 87, 111, 77, 83, 104, 38, -110, 65, 41, -121, 99, 38, 36, 115, 106, -117, -80, 10, 66, -112, 106, 111, 47, 4, 83, -78, -20, 100, -20, 100, -78, -78, 100, -111, 57, -80, 57, -78, 100, -111, 107, 3, 17, 107, 113, 45, 115, -115, 90, 113, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
    };
    public static final int[] l = {2130969494, 2130969495, 2130969496, 2130969497, 2130969498, 2130969499, 2130969500, 2130969501, 2130969502, 2130969503, 2130969504, 2130969505, 2130969506, 2130969507, 2130969508, 2130969509, 2130969510, 2130969511};
    public static final Object[] m = new Object[0];
    public static final int[] r = {1, 2, 3, 6};
    public static final int[] s = {48000, 44100, 32000};
    public static final int[] t = {24000, 22050, 16000};
    public static final int[] u = {2, 1, 2, 3, 3, 4, 4, 5};
    public static final int[] v = {32, 40, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256, 320, 384, 448, IjkMediaMeta.FF_PROFILE_H264_CONSTRAINED, 576, 640};
    public static final int[] w = {69, 87, 104, 121, 139, 174, 208, 243, 278, 348, 417, 487, 557, 696, 835, 975, 1114, 1253, 1393};
    public static final int[] x = {1, 2, 2, 2, 2, 3, 3, 4, 4, 5, 6, 6, 6, 7, 8, 8};
    public static final int[] y = {-1, 8000, 16000, 32000, -1, -1, 11025, 22050, 44100, -1, -1, 12000, 24000, 48000, -1, -1};
    public static final int[] z = {64, 112, 128, 192, 224, 256, 384, 448, IjkMediaMeta.FF_PROFILE_H264_CONSTRAINED, 640, 768, 896, 1024, 1152, 1280, 1536, 1920, IjkMediaMeta.FF_PROFILE_H264_INTRA, 2304, 2560, 2688, 2816, 2823, 2944, 3072, 3840, 4096, 6144, 7680};
    public static final byte[] A = {100, 23, 84, 114, 72, 0, 4, 97, 73, 97, 2, 52, 84, 102, 18, 32};

    public static boolean A(File file) {
        try {
            if (file.isDirectory()) {
                return false;
            }
            if (file.exists()) {
                return true;
            }
            File parentFile = file.getParentFile();
            if (parentFile.exists() || parentFile.mkdirs()) {
                return file.createNewFile();
            }
            return false;
        } catch (Throwable th2) {
            th2.printStackTrace();
            return false;
        }
    }

    public static final Object[] A0(Collection collection) {
        kotlin.jvm.internal.i.f(collection, "collection");
        int size = collection.size();
        Object[] objArr = m;
        if (size == 0) {
            return objArr;
        }
        Iterator it2 = collection.iterator();
        if (!it2.hasNext()) {
            return objArr;
        }
        Object[] objArr2 = new Object[size];
        int i2 = 0;
        while (true) {
            int i3 = i2 + 1;
            objArr2[i2] = it2.next();
            if (i3 >= objArr2.length) {
                if (!it2.hasNext()) {
                    return objArr2;
                }
                int i4 = ((i3 * 3) + 1) >>> 1;
                if (i4 <= i3) {
                    i4 = 2147483645;
                    if (i3 >= 2147483645) {
                        throw new OutOfMemoryError();
                    }
                }
                objArr2 = Arrays.copyOf(objArr2, i4);
                kotlin.jvm.internal.i.e(objArr2, "copyOf(result, newSize)");
            } else if (!it2.hasNext()) {
                Object[] copyOf = Arrays.copyOf(objArr2, i3);
                kotlin.jvm.internal.i.e(copyOf, "copyOf(result, size)");
                return copyOf;
            }
            i2 = i3;
        }
    }

    public static boolean B(File file, FileInputStream fileInputStream) {
        try {
            if (file.exists()) {
                file.delete();
            }
            FileOutputStream fileOutputStream = new FileOutputStream(file);
            try {
                byte[] bArr = new byte[4096];
                while (true) {
                    int read = fileInputStream.read(bArr);
                    if (read >= 0) {
                        fileOutputStream.write(bArr, 0, read);
                    } else {
                        try {
                            break;
                        } catch (IOException unused) {
                        }
                    }
                }
                fileOutputStream.flush();
                try {
                    fileOutputStream.getFD().sync();
                } catch (IOException unused2) {
                }
                try {
                    fileOutputStream.close();
                    return true;
                } catch (IOException unused3) {
                    return true;
                }
            } catch (Throwable th2) {
                try {
                    fileOutputStream.flush();
                } catch (IOException unused4) {
                }
                try {
                    fileOutputStream.getFD().sync();
                } catch (IOException unused5) {
                }
                try {
                    fileOutputStream.close();
                    throw th2;
                } catch (IOException unused6) {
                    throw th2;
                }
            }
        } catch (IOException unused7) {
            return false;
        }
    }

    public static final Object[] B0(Collection collection, Object[] objArr) {
        Object[] objArr2;
        kotlin.jvm.internal.i.f(collection, "collection");
        objArr.getClass();
        int size = collection.size();
        int i2 = 0;
        if (size == 0) {
            if (objArr.length <= 0) {
                return objArr;
            }
            objArr[0] = null;
            return objArr;
        }
        Iterator it2 = collection.iterator();
        if (!it2.hasNext()) {
            if (objArr.length <= 0) {
                return objArr;
            }
            objArr[0] = null;
            return objArr;
        }
        if (size <= objArr.length) {
            objArr2 = objArr;
        } else {
            Object newInstance = Array.newInstance(objArr.getClass().getComponentType(), size);
            kotlin.jvm.internal.i.d(newInstance, "null cannot be cast to non-null type kotlin.Array<kotlin.Any?>");
            objArr2 = (Object[]) newInstance;
        }
        while (true) {
            int i3 = i2 + 1;
            objArr2[i2] = it2.next();
            if (i3 >= objArr2.length) {
                if (!it2.hasNext()) {
                    return objArr2;
                }
                int i4 = ((i3 * 3) + 1) >>> 1;
                if (i4 <= i3) {
                    i4 = 2147483645;
                    if (i3 >= 2147483645) {
                        throw new OutOfMemoryError();
                    }
                }
                objArr2 = Arrays.copyOf(objArr2, i4);
                kotlin.jvm.internal.i.e(objArr2, "copyOf(result, newSize)");
            } else if (!it2.hasNext()) {
                if (objArr2 == objArr) {
                    objArr[i3] = null;
                    return objArr;
                }
                Object[] copyOf = Arrays.copyOf(objArr2, i3);
                kotlin.jvm.internal.i.e(copyOf, "copyOf(result, size)");
                return copyOf;
            }
            i2 = i3;
        }
    }

    public static boolean C(Long l2) {
        if (l2 == null) {
            Logger.v("v0", "Method isTimeWillExpire input param expireTime is null.");
            return true;
        }
        try {
            if (l2.longValue() - (System.currentTimeMillis() + 300000) >= 0) {
                Logger.v("v0", "isSpExpire false.");
                return false;
            }
        } catch (NumberFormatException unused) {
            Logger.v("v0", "isSpExpire spValue NumberFormatException.");
        }
        return true;
    }

    public static RectF C0(float[] fArr) {
        RectF rectF = new RectF(Float.POSITIVE_INFINITY, Float.POSITIVE_INFINITY, Float.NEGATIVE_INFINITY, Float.NEGATIVE_INFINITY);
        for (int i2 = 1; i2 < fArr.length; i2 += 2) {
            float round = Math.round(fArr[i2 - 1] * 10.0f) / 10.0f;
            float round2 = Math.round(fArr[i2] * 10.0f) / 10.0f;
            float f2 = rectF.left;
            if (round < f2) {
                f2 = round;
            }
            rectF.left = f2;
            float f3 = rectF.top;
            if (round2 < f3) {
                f3 = round2;
            }
            rectF.top = f3;
            float f4 = rectF.right;
            if (round <= f4) {
                round = f4;
            }
            rectF.right = round;
            float f5 = rectF.bottom;
            if (round2 <= f5) {
                round2 = f5;
            }
            rectF.bottom = round2;
        }
        rectF.sort();
        return rectF;
    }

    public static boolean D(String str) {
        return "POST".equals(str) || "PUT".equals(str) || "PATCH".equals(str) || "PROPPATCH".equals(str) || "REPORT".equals(str);
    }

    public static boolean E(X509Certificate x509Certificate, String str, String str2) {
        String substring;
        if (x509Certificate == null || TextUtils.isEmpty(str) || TextUtils.isEmpty(str2)) {
            return false;
        }
        String name = x509Certificate.getSubjectDN().getName();
        int indexOf = name.toUpperCase(Locale.getDefault()).indexOf(str.concat("="));
        if (indexOf == -1) {
            substring = null;
        } else {
            int indexOf2 = name.indexOf(",", indexOf);
            substring = indexOf2 != -1 ? name.substring(str.length() + indexOf + 1, indexOf2) : name.substring(str.length() + indexOf + 1);
        }
        return str2.equals(substring);
    }

    public static byte[] F(byte[] bArr, byte[] bArr2) {
        SecretKeySpec secretKeySpec = new SecretKeySpec(bArr, "AES");
        IvParameterSpec ivParameterSpec = new IvParameterSpec(A);
        Cipher cipher = Cipher.getInstance("AES/CBC/PKCS5Padding");
        cipher.init(2, secretKeySpec, ivParameterSpec);
        return cipher.doFinal(bArr2);
    }

    public static boolean G(android.database.sqlite.SQLiteDatabase r11, java.lang.String r12) {
        throw new UnsupportedOperationException("Method not decompiled: qh.v0.G(android.database.sqlite.SQLiteDatabase, java.lang.String):boolean");
    }

    public static String H(InputStream inputStream) {
        ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
        try {
            byte[] bArr = new byte[1024];
            while (true) {
                int read = inputStream.read(bArr);
                if (read == -1) {
                    return byteArrayOutputStream.toString("UTF-8");
                }
                byteArrayOutputStream.write(bArr, 0, read);
            }
        } finally {
            I(byteArrayOutputStream);
        }
    }

    public static void I(Closeable closeable) {
        if (closeable != null) {
            try {
                closeable.close();
            } catch (IOException unused) {
            }
        }
    }

    public static void J(File file, String str) {
        FileOutputStream fileOutputStream = null;
        try {
            FileOutputStream fileOutputStream2 = new FileOutputStream(file);
            try {
                fileOutputStream2.write(str.getBytes("UTF-8"));
                fileOutputStream2.flush();
                I(fileOutputStream2);
            } catch (FileNotFoundException | IOException unused) {
                fileOutputStream = fileOutputStream2;
                I(fileOutputStream);
            } catch (Throwable th2) {
                th = th2;
                fileOutputStream = fileOutputStream2;
                I(fileOutputStream);
                throw th;
            }
        } catch (FileNotFoundException | IOException unused2) {
        } catch (Throwable th3) {
            th = th3;
        }
    }

    public static byte[] K(byte[] bArr) {
        ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
        Deflater deflater = new Deflater();
        deflater.setInput(bArr);
        deflater.finish();
        byte[] bArr2 = new byte[1024];
        while (!deflater.finished()) {
            byteArrayOutputStream.write(bArr2, 0, deflater.deflate(bArr2));
        }
        byte[] byteArray = byteArrayOutputStream.toByteArray();
        deflater.end();
        try {
            byteArrayOutputStream.close();
        } catch (IOException unused) {
        }
        return byteArray;
    }

    public static String L(Context context) {
        return context.getDatabasePath("ua.db").getParent() + File.separator;
    }

    public static String M(Context context, String str) {
        String str2 = "";
        if (TextUtils.isEmpty(str)) {
            return "";
        }
        byte[] o = b5.a.o(context);
        if (!TextUtils.isEmpty(str) && str.length() >= 32 && o.length > 0) {
            try {
                SecretKeySpec secretKeySpec = new SecretKeySpec(o, "AES");
                Cipher cipher = Cipher.getInstance("AES/CBC/PKCS5Padding");
                String n = a0.c.n(str);
                String v2 = a0.c.v(str);
                if (!TextUtils.isEmpty(n) && !TextUtils.isEmpty(v2)) {
                    cipher.init(2, secretKeySpec, new IvParameterSpec(b5.a.p(n)));
                    str2 = new String(cipher.doFinal(b5.a.p(v2)), "UTF-8");
                }
                t6.a.e("AesCbc", "iv or enData is null");
            } catch (UnsupportedEncodingException | IllegalArgumentException | InvalidAlgorithmParameterException | InvalidKeyException | NoSuchAlgorithmException | BadPaddingException | IllegalBlockSizeException | NoSuchPaddingException unused) {
                t6.a.b("AesCbc", "aes cbc decrypter data error");
            }
        }
        return str2;
    }

    public static void N(File file, File file2) {
        Throwable th2;
        ?? r3;
        if (file.getAbsolutePath().equals(file2.getAbsolutePath())) {
            return;
        }
        FileInputStream fileInputStream = null;
        try {
            FileInputStream fileInputStream2 = new FileInputStream(file);
            try {
                ?? fileOutputStream = new FileOutputStream(file2);
                try {
                    byte[] bArr = new byte[1024];
                    while (true) {
                        int read = fileInputStream2.read(bArr);
                        if (read < 0) {
                            fileInputStream2.close();
                            fileOutputStream.close();
                            return;
                        }
                        fileOutputStream.write(bArr, 0, read);
                    }
                } catch (Throwable th3) {
                    th2 = th3;
                    fileInputStream = fileOutputStream;
                    r3 = fileInputStream;
                    fileInputStream = fileInputStream2;
                    if (fileInputStream != null) {
                        fileInputStream.close();
                    }
                    if (r3 == 0) {
                        throw th2;
                    }
                    r3.close();
                    throw th2;
                }
            } catch (Throwable th4) {
                th2 = th4;
            }
        } catch (Throwable th5) {
            th2 = th5;
            r3 = 0;
        }
    }

    public static synchronized void O(String str) {
        synchronized (v0.class) {
            if ("WIFI-ID-UNKNOWN".equals(str)) {
                String str2 = c;
                if (str2 == null || !str2.startsWith("W-")) {
                    c = null;
                }
            } else {
                c = str;
            }
        }
    }

    public static boolean P() {
        try {
            return true ^ Environment.getExternalStorageState().equals("mounted");
        } catch (Exception e2) {
            Log.e("XMPush-", "check SDCard is busy: " + e2);
            return true;
        }
    }

    public static int Q(Context context) {
        String str;
        h1.g h2 = h1.g.h(context);
        int flymeVersion = MzSystemUtils.getFlymeVersion();
        if (flymeVersion > 0 && flymeVersion <= 6) {
            str = "push_pure_pic_notification_f6";
        } else if (flymeVersion == 7) {
            str = "push_pure_pic_notification_f7";
        } else if (flymeVersion == 8) {
            str = "push_pure_pic_notification_f8";
        } else {
            String valueOf = String.valueOf(context.getResources().getDisplayMetrics().density);
            if (valueOf.length() > 3) {
                valueOf = valueOf.substring(0, 3);
            }
            str = ("2.0".equals(valueOf) || "3.0".equals(valueOf) || "4.0".equals(valueOf) || "6.0".equals(valueOf)) ? "push_pure_pic_notification_f9" : "3.3".equals(valueOf) ? "push_pure_pic_notification_f9_337" : "push_pure_pic_notification_f9_275";
        }
        h2.getClass();
        return h1.g.a(context, str, "layout");
    }

    public static void R(boolean z2) {
        if (!z2) {
            throw new IllegalArgumentException();
        }
    }

    public static void S(Closeable closeable) {
        if (closeable != null) {
            try {
                closeable.close();
            } catch (IOException unused) {
                t6.a.b("IOUtils", "An exception occurred while closing the 'Closeable' object.");
            }
        }
    }

    public static boolean T() {
        throw new UnsupportedOperationException("Method not decompiled: qh.v0.T():boolean");
    }

    public static float U(float f2, float f3, float f4, float f5) {
        double d2 = 0.0f - f2;
        double d3 = 0.0f - f3;
        float hypot = (float) Math.hypot(d2, d3);
        double d4 = f4 - f2;
        float hypot2 = (float) Math.hypot(d4, d3);
        double d5 = f5 - f3;
        float hypot3 = (float) Math.hypot(d4, d5);
        float hypot4 = (float) Math.hypot(d2, d5);
        return (hypot <= hypot2 || hypot <= hypot3 || hypot <= hypot4) ? (hypot2 <= hypot3 || hypot2 <= hypot4) ? hypot3 > hypot4 ? hypot3 : hypot4 : hypot2 : hypot;
    }

    public static List V() {
        return Arrays.asList("223.5.5.5", "223.6.6.6", "119.29.29.29", "119.28.28.28", "117.50.10.10", "52.80.52.52", "180.76.76.76", "1.2.4.8", "210.2.4.8", "101.226.4.6", "218.30.118.6", "https://doh.pub/dns-query", "https://1.12.12.12/dns-query", "https://120.53.53.53/dns-query", "https://dns.alidns.com/dns-query", "https://223.5.5.5/dns-query", "https://223.6.6.6/dns-query", "https://doh.360.cn/dns-query");
    }

    public static final float W(int i2, View dp) {
        kotlin.jvm.internal.i.g(dp, "$this$dp");
        Resources resources = dp.getResources();
        kotlin.jvm.internal.i.b(resources, "resources");
        return TypedValue.applyDimension(1, i2, resources.getDisplayMetrics());
    }

    public static int X(Context context, float f2) {
        return (int) ((f2 * context.getResources().getDisplayMetrics().density) + 0.5f);
    }

    public static List Y() {
        return Arrays.asList("rt.2gzdhqpzas.com");
    }

    public static void Z(String str, String str2) {
        if ("1".equals(mf.c.m("debug.umeng.rtlog", "0"))) {
            Log.e(str, str2);
        }
    }

    public static String a0(int i2) {
        String str = (i2 < 16385 || i2 > 20480) ? "analytics" : CommSettingManager.PUSH_KEY;
        if (i2 >= 24577 && i2 <= 28672) {
            str = "share";
        }
        if (i2 >= 32769 && i2 <= 36864) {
            str = "internal";
        }
        if (i2 >= 36945 && i2 <= 37120) {
            str = "process";
        }
        return (i2 < 37121 || i2 > 37136) ? str : "appstatus";
    }

    public static int b(Context context) {
        String str;
        try {
            NetworkInfo activeNetworkInfo = ((ConnectivityManager) context.getSystemService("connectivity")).getActiveNetworkInfo();
            if (activeNetworkInfo == null) {
                O(null);
                return -1;
            }
            if (activeNetworkInfo.getType() != 0) {
                if (activeNetworkInfo.getType() != 1 && activeNetworkInfo.getType() != 6) {
                    O(null);
                    return -1;
                }
                O("WIFI-ID-UNKNOWN");
                return 1;
            }
            String subtypeName = activeNetworkInfo.getSubtypeName();
            if (TextUtils.isEmpty(subtypeName) || "UNKNOWN".equalsIgnoreCase(subtypeName)) {
                str = null;
            } else {
                str = "M-" + subtypeName;
            }
            O(str);
            return 0;
        } catch (Exception e2) {
            lh.b.p("DisconnectStatsHelper getNetType occurred error: " + e2.getMessage());
            O(null);
            return -1;
        }
    }

    public static String b0(StackTraceElement[] stackTraceElementArr) {
        StringBuilder sb = new StringBuilder();
        for (StackTraceElement stackTraceElement : stackTraceElementArr) {
            sb.append("    at ");
            sb.append(stackTraceElement.toString());
            sb.append("\n");
        }
        return sb.toString();
    }

    public static MessageV3 c(String str) {
        String str2;
        DebugLogger.i("MessageSerialize", "message serialize stringToMessageV3 start, msgText=" + str);
        try {
            MessageV3 messageV3 = new MessageV3();
            try {
                JSONObject jSONObject = new JSONObject(str);
                if (!jSONObject.isNull("task_id")) {
                    messageV3.setTaskId(jSONObject.getString("task_id"));
                }
                if (!jSONObject.isNull("seq_id")) {
                    messageV3.setSeqId(jSONObject.getString("seq_id"));
                }
                if (!jSONObject.isNull("device_id")) {
                    messageV3.setDeviceId(jSONObject.getString("device_id"));
                }
                if (!jSONObject.isNull("title")) {
                    messageV3.setTitle(jSONObject.getString("title"));
                }
                if (!jSONObject.isNull("content")) {
                    messageV3.setContent(jSONObject.getString("content"));
                }
                if (!jSONObject.isNull("package_name")) {
                    messageV3.setPackageName(jSONObject.getString("package_name"));
                }
                if (!jSONObject.isNull("clickType")) {
                    messageV3.setClickType(jSONObject.getInt("clickType"));
                }
                if (!jSONObject.isNull("isDiscard")) {
                    messageV3.setIsDiscard(jSONObject.getBoolean("isDiscard"));
                }
                if (!jSONObject.isNull("activity")) {
                    messageV3.setActivity(jSONObject.getString("activity"));
                }
                if (!jSONObject.isNull(IjkMediaPlayer.OnNativeInvokeListener.ARG_URL)) {
                    messageV3.setWebUrl(jSONObject.getString(IjkMediaPlayer.OnNativeInvokeListener.ARG_URL));
                }
                if (!jSONObject.isNull("pk")) {
                    messageV3.setUriPackageName(jSONObject.getString("pk"));
                }
                if (!jSONObject.isNull("push_timestamp")) {
                    messageV3.setPushTimestamp(jSONObject.getString("push_timestamp"));
                }
                if (!jSONObject.isNull("upload_data_package_name")) {
                    messageV3.setUploadDataPackageName(jSONObject.getString("upload_data_package_name"));
                }
                if (!jSONObject.isNull("parameters")) {
                    JSONObject jSONObject2 = jSONObject.getJSONObject("parameters");
                    HashMap hashMap = new HashMap(jSONObject2.length());
                    Iterator<String> keys = jSONObject2.keys();
                    while (keys.hasNext()) {
                        String next = keys.next();
                        hashMap.put(next, jSONObject2.getString(next));
                    }
                    messageV3.setParamsMap(hashMap);
                }
                if (!jSONObject.isNull("through_message")) {
                    messageV3.setThroughMessage(jSONObject.getString("through_message"));
                }
                if (!jSONObject.isNull("notification_message")) {
                    messageV3.setNotificationMessage(jSONObject.getString("notification_message"));
                }
                str2 = "MessageSerialize";
                try {
                    DebugLogger.i(str2, "message serialize stringToMessageV3 success, messageV3=" + messageV3);
                    return messageV3;
                } catch (JSONException e2) {
                    e = e2;
                    DebugLogger.e(str2, "message serialize stringToMessageV3 error, " + e.getMessage());
                    e.printStackTrace();
                    return null;
                }
            } catch (JSONException e3) {
                e = e3;
                str2 = "MessageSerialize";
            }
        } catch (JSONException e4) {
            e = e4;
            str2 = "MessageSerialize";
        }
    }

    public static int c0(Context context) {
        h1.g.h(context).getClass();
        return h1.g.a(context, "push_big_bigview_defaultView", "id");
    }

    public static Class d(Type type) {
        if (type instanceof Class) {
            return (Class) type;
        }
        if (type instanceof ParameterizedType) {
            return (Class) ((ParameterizedType) type).getRawType();
        }
        if (type instanceof TypeVariable) {
            TypeVariable typeVariable = (TypeVariable) type;
            return typeVariable.getBounds().length == 0 ? Object.class : d(typeVariable.getBounds()[0]);
        }
        throw new IllegalArgumentException("not supported: " + type.getClass());
    }

    public static int d0(int i2, int i3) {
        int i4 = i3 / 2;
        if (i2 < 0 || i2 >= 3 || i3 < 0 || i4 >= 19) {
            return -1;
        }
        int i5 = s[i2];
        if (i5 == 44100) {
            return ((i3 % 2) + w[i4]) * 2;
        }
        int i6 = v[i4];
        return i5 == 32000 ? i6 * 6 : i6 * 4;
    }

    public static String e(int i2) {
        if (i2 == 1000) {
            return "CHECK_OK";
        }
        if (i2 == 2000) {
            return "DOWNLOAD_SUCCESS";
        }
        if (i2 == 2100) {
            return "DOWNLOADING";
        }
        if (i2 == 2101) {
            return "DOWNLOAD_CANCELED";
        }
        switch (i2) {
            case 1201:
                return "CHECK_FAILURE";
            case 1202:
                return "CHECK_NO_UPDATE";
            case 1203:
                return "CHECK_NO_SUPPORTED";
            default:
                switch (i2) {
                    case 2201:
                        return "DOWNLOAD_FAILURE";
                    case 2202:
                        return "DOWNLOAD_HASH_ERROR";
                    case 2203:
                        return "DOWNLOAD_NO_SPACE";
                    case 2204:
                        return "DOWNLOAD_NO_STORAGE";
                    default:
                        return "UNKNOWN - " + Integer.toString(i2);
                }
        }
    }

    public static float[] e0(RectF rectF) {
        float f2 = rectF.left;
        float f3 = rectF.top;
        float f4 = rectF.right;
        float f5 = rectF.bottom;
        return new float[]{f2, f3, f4, f3, f4, f5, f2, f5};
    }

    public static String f(Context context, long j2) {
        if (j2 == 0) {
            return context.getString(s7.h.c(context, "upsdk_storage_utils"), "0");
        }
        DecimalFormat decimalFormat = j2 > 104857 ? new DecimalFormat("###.#") : j2 > 10485 ? new DecimalFormat("###.##") : null;
        return decimalFormat != null ? context.getString(s7.h.c(context, "upsdk_storage_utils"), decimalFormat.format(j2 / 1048576.0d)) : context.getString(s7.h.c(context, "upsdk_storage_utils"), "0.01");
    }

    public static String f0(String str, String str2) {
        StringBuilder sb = new StringBuilder();
        sb.append(a0.c.p(str, 9));
        sb.append(a0.c.p(str2, 6));
        Locale locale = Locale.ENGLISH;
        sb.append(new SimpleDateFormat("yyyyMMddHHmmssSSS", locale).format(new Date()));
        sb.append(String.format(locale, "%06d", Integer.valueOf(new SecureRandom().nextInt(1000000))));
        return sb.toString();
    }

    public static String g(Context context, String str) {
        if (TextUtils.isEmpty(str)) {
            return "";
        }
        byte[] o = b5.a.o(context);
        if (TextUtils.isEmpty(str) || o.length <= 0) {
            return "";
        }
        try {
            SecretKeySpec secretKeySpec = new SecretKeySpec(o, "AES");
            Cipher cipher = Cipher.getInstance("AES/CBC/PKCS5Padding");
            byte[] bArr = new byte[16];
            new SecureRandom().nextBytes(bArr);
            cipher.init(1, secretKeySpec, new IvParameterSpec(bArr));
            return a0.c.e(b5.a.m(bArr), b5.a.m(cipher.doFinal(str.getBytes("UTF-8"))));
        } catch (UnsupportedEncodingException | IllegalArgumentException | InvalidAlgorithmParameterException | InvalidKeyException | NoSuchAlgorithmException | BadPaddingException | IllegalBlockSizeException | NoSuchPaddingException unused) {
            t6.a.b("AesCbc", "aes cbc encrypter data error");
            return "";
        }
    }

    public static HashMap g0(Context context, String str) {
        HashMap hashMap = new HashMap();
        if (context != null && !TextUtils.isEmpty(str)) {
            String[] split = str.split("\\.");
            if (split.length >= 2) {
                String str2 = split[0];
                String str3 = split[1];
                hashMap.put("service", str2);
                hashMap.put("apiName", str3);
                hashMap.put("package", context.getPackageName());
                hashMap.put("baseVersion", "4.0.1.300");
                hashMap.put("callTime", String.valueOf(System.currentTimeMillis()));
            }
        }
        return hashMap;
    }

    public static String h(MessageV3 messageV3) {
        DebugLogger.i("MessageSerialize", "message serialize messageV3ToString start, messageV3=" + messageV3);
        try {
            JSONObject jSONObject = new JSONObject();
            if (!TextUtils.isEmpty(messageV3.getTaskId())) {
                jSONObject.put("task_id", messageV3.getTaskId());
            }
            if (!TextUtils.isEmpty(messageV3.getSeqId())) {
                jSONObject.put("seq_id", messageV3.getSeqId());
            }
            if (!TextUtils.isEmpty(messageV3.getDeviceId())) {
                jSONObject.put("device_id", messageV3.getDeviceId());
            }
            if (!TextUtils.isEmpty(messageV3.getTitle())) {
                jSONObject.put("title", messageV3.getTitle());
            }
            if (!TextUtils.isEmpty(messageV3.getContent())) {
                jSONObject.put("content", messageV3.getContent());
            }
            if (!TextUtils.isEmpty(messageV3.getPackageName())) {
                jSONObject.put("package_name", messageV3.getPackageName());
            }
            jSONObject.put("clickType", messageV3.getClickType());
            jSONObject.put("isDiscard", messageV3.isDiscard());
            if (!TextUtils.isEmpty(messageV3.getActivity())) {
                jSONObject.put("activity", messageV3.getActivity());
            }
            if (!TextUtils.isEmpty(messageV3.getWebUrl())) {
                jSONObject.put(IjkMediaPlayer.OnNativeInvokeListener.ARG_URL, messageV3.getWebUrl());
            }
            if (!TextUtils.isEmpty(messageV3.getUriPackageName())) {
                jSONObject.put("pk", messageV3.getUriPackageName());
            }
            if (!TextUtils.isEmpty(messageV3.getPushTimestamp())) {
                jSONObject.put("push_timestamp", messageV3.getPushTimestamp());
            }
            if (!TextUtils.isEmpty(messageV3.getUploadDataPackageName())) {
                jSONObject.put("upload_data_package_name", messageV3.getUploadDataPackageName());
            }
            if (messageV3.getParamsMap() != null && messageV3.getParamsMap().size() > 0) {
                jSONObject.put("parameters", new JSONObject(messageV3.getParamsMap()));
            }
            if (!TextUtils.isEmpty(messageV3.getThroughMessage())) {
                jSONObject.put("through_message", messageV3.getThroughMessage());
            }
            if (!TextUtils.isEmpty(messageV3.getNotificationMessage())) {
                jSONObject.put("notification_message", messageV3.getNotificationMessage());
            }
            String jSONObject2 = jSONObject.toString();
            DebugLogger.i("MessageSerialize", "message serialize messageV3ToString success, msgText=" + jSONObject2);
            return jSONObject2;
        } catch (JSONException e2) {
            DebugLogger.e("MessageSerialize", "message serialize messageV3ToString error, " + e2.getMessage());
            e2.printStackTrace();
            return null;
        }
    }

    public static android.content.Intent h0(android.app.Activity r15, a7.a r16) {
        throw new UnsupportedOperationException("Method not decompiled: qh.v0.h0(android.app.Activity, a7.a):android.content.Intent");
    }

    public static String i(File file) {
        IOException e2;
        InputStreamReader inputStreamReader;
        Closeable closeable;
        StringWriter stringWriter = new StringWriter();
        Closeable closeable2 = null;
        try {
            try {
                inputStreamReader = new InputStreamReader(new BufferedInputStream(new FileInputStream(file)));
                try {
                    char[] cArr = new char[IjkMediaMeta.FF_PROFILE_H264_INTRA];
                    while (true) {
                        int read = inputStreamReader.read(cArr);
                        if (read == -1) {
                            String stringWriter2 = stringWriter.toString();
                            q(inputStreamReader);
                            q(stringWriter);
                            return stringWriter2;
                        }
                        stringWriter.write(cArr, 0, read);
                    }
                } catch (IOException e3) {
                    e2 = e3;
                    lh.b.n("read file :" + file.getAbsolutePath() + " failure :" + e2.getMessage());
                    q(inputStreamReader);
                    q(stringWriter);
                    return null;
                }
            } catch (Throwable th2) {
                th = th2;
                closeable2 = closeable;
                q(closeable2);
                q(stringWriter);
                throw th;
            }
        } catch (IOException e4) {
            e2 = e4;
            inputStreamReader = null;
        } catch (Throwable th3) {
            th = th3;
            q(closeable2);
            q(stringWriter);
            throw th;
        }
    }

    public static String i0(String str) {
        try {
            Class<?> cls = Class.forName("android.os.SystemProperties");
            return (String) cls.getMethod("get", String.class, String.class).invoke(cls, str, "");
        } catch (Exception e2) {
            e2.printStackTrace();
            return "";
        }
    }

    public static String j(String str) {
        pb.c d2 = new pb.b(new pb.a("android.os.SystemProperties"), "get", new Class[]{String.class}).d(new Object[]{str});
        if (d2.a) {
            return (String) d2.b;
        }
        return null;
    }

    public static void j0(String str, String str2) {
        if ("1".equals(mf.c.m("debug.umeng.rtlog", "0"))) {
            Log.i(str, str2);
        }
    }

    public static void k0(String str, Object... objArr) {
        try {
            if (str.contains("%")) {
                new Formatter().format(str, objArr).toString();
            }
        } catch (Throwable unused) {
        }
    }

    public static String l(String str, String str2, byte[] bArr) {
        try {
            IvParameterSpec ivParameterSpec = new IvParameterSpec(bArr);
            SecretKeySpec secretKeySpec = new SecretKeySpec(str2.getBytes(), "AES");
            Cipher cipher = Cipher.getInstance("AES/GCM/NoPadding");
            cipher.init(1, secretKeySpec, ivParameterSpec);
            return Base64.encodeToString(cipher.doFinal(str.getBytes()), 0);
        } catch (Exception e2) {
            de.a.d("DESUtils", "encryptAES", e2);
            return null;
        }
    }

    public static final void l0(ArrayList invokeAll, g.e dialog) {
        kotlin.jvm.internal.i.g(invokeAll, "$this$invokeAll");
        kotlin.jvm.internal.i.g(dialog, "dialog");
        Iterator it2 = invokeAll.iterator();
        while (it2.hasNext()) {
            ((xj.l) it2.next()).invoke(dialog);
        }
    }

    public static rb.c m(rb.b bVar) {
        rb.c cVar;
        rb.c b2;
        rb.c cVar2;
        rb.c cVar3;
        rb.c b3;
        int i2 = bVar.c;
        tb.m mVar = null;
        try {
            if (i2 == 0) {
                try {
                    mVar = vb.a.a(bVar);
                } catch (Exception e2) {
                    sb.a aVar = new sb.a(e2);
                    boolean z2 = e2 instanceof NetworkOnMainThreadException;
                    aVar.b = 0;
                    cVar = new rb.c(aVar);
                } catch (sb.a e3) {
                    sb.a aVar2 = new sb.a(e3);
                    aVar2.b = 0;
                    aVar2.a = aVar2.getMessage();
                    cVar = new rb.c(aVar2);
                }
                if (bVar.e == 4) {
                    b2 = new rb.c(mVar);
                } else {
                    int i3 = mVar.b;
                    if (i3 >= 400) {
                        sb.a aVar3 = new sb.a(mVar);
                        yb.a.b(aVar3, bVar, i3);
                        cVar = new rb.c(aVar3);
                        u(mVar, bVar);
                        return cVar;
                    }
                    b2 = bVar.b(mVar);
                    b2.getClass();
                }
                u(mVar, bVar);
                return b2;
            }
            if (i2 == 1) {
                try {
                    tb.m c2 = vb.a.c(bVar);
                    int i4 = c2.b;
                    if (i4 >= 400) {
                        sb.a aVar4 = new sb.a(c2);
                        yb.a.b(aVar4, bVar, i4);
                        cVar2 = new rb.c(aVar4);
                    } else {
                        cVar2 = new rb.c("success");
                    }
                    return cVar2;
                } catch (Exception e4) {
                    sb.a aVar5 = new sb.a(e4);
                    boolean z3 = e4 instanceof NetworkOnMainThreadException;
                    aVar5.b = 0;
                    return new rb.c(aVar5);
                } catch (sb.a e5) {
                    sb.a aVar6 = new sb.a(e5);
                    aVar6.b = 0;
                    aVar6.a = aVar6.getMessage();
                    return new rb.c(aVar6);
                }
            }
            try {
                if (i2 != 2) {
                    return new rb.c(new sb.a());
                }
                try {
                    try {
                        mVar = vb.a.d(bVar);
                    } catch (sb.a e6) {
                        e6.b = 0;
                        e6.a = e6.getMessage();
                        cVar3 = new rb.c(e6);
                    }
                } catch (Exception e7) {
                    sb.a aVar7 = new sb.a(e7);
                    boolean z4 = e7 instanceof NetworkOnMainThreadException;
                    aVar7.b = 0;
                    cVar3 = new rb.c(aVar7);
                }
                if (bVar.e == 4) {
                    b3 = new rb.c(mVar);
                } else {
                    int i5 = mVar.b;
                    if (i5 >= 400) {
                        sb.a aVar8 = new sb.a(mVar);
                        yb.a.b(aVar8, bVar, i5);
                        cVar3 = new rb.c(aVar8);
                        u(mVar, bVar);
                        return cVar3;
                    }
                    b3 = bVar.b(mVar);
                    b3.getClass();
                }
                u(mVar, bVar);
                return b3;
            } catch (Throwable th2) {
                u(null, bVar);
                throw th2;
            }
        } catch (Throwable th3) {
            u(null, bVar);
            throw th3;
        }
    }

    public static boolean m0() {
        if ((TextUtils.isEmpty(i0("ro.build.version.emui")) ^ true ? i0("ro.build.version.emui") : "").contains("EmotionUI_3.0")) {
            return true;
        }
        String i0 = TextUtils.isEmpty(i0("ro.build.version.emui")) ^ true ? i0("ro.build.version.emui") : "";
        return "EmotionUI 3".equals(i0) || i0.contains("EmotionUI_3.1");
    }

    public static x5.a n(Context context) {
        try {
            return x5.a.a(context);
        } catch (IOException e2) {
            throw new AssertionError(e2);
        } catch (IllegalAccessException e3) {
            throw new AssertionError(e3);
        } catch (KeyManagementException e4) {
            throw new AssertionError(e4);
        } catch (KeyStoreException e5) {
            throw new AssertionError(e5);
        } catch (NoSuchAlgorithmException e6) {
            throw new AssertionError(e6);
        } catch (CertificateException e7) {
            throw new AssertionError(e7);
        }
    }

    public static boolean n0(CharSequence charSequence) {
        return charSequence == null || charSequence.length() == 0;
    }

    public static void o(Context context) {
        if (context == null) {
            return;
        }
        try {
            File databasePath = context.getDatabasePath("ua.db");
            if (databasePath != null && databasePath.exists()) {
                databasePath.delete();
            }
            if (te.i0.a == null) {
                te.i0.a = context.getApplicationContext();
            }
            i0.a.a.a();
        } catch (Throwable unused) {
        }
    }

    public static boolean o0() {
        String i0 = i0("ro.build.display.id").toLowerCase().contains("flyme") ? i0("ro.build.display.id") : "";
        if (!i0.isEmpty()) {
            try {
                if ((i0.toLowerCase().contains("os") ? Integer.valueOf(i0.substring(9, 10)).intValue() : Integer.valueOf(i0.substring(6, 7)).intValue()) >= 4) {
                    return true;
                }
            } catch (NumberFormatException unused) {
            }
        }
        return false;
    }

    public static void p(SQLiteDatabase sQLiteDatabase, String str, String str2) {
        sQLiteDatabase.execSQL("alter table " + str + " add " + str2 + " TEXT");
    }

    public static boolean p0() {
        PowerManager powerManager = (PowerManager) WindClient.c().getSystemService("power");
        if (powerManager != null) {
            return androidx.vectordrawable.graphics.drawable.a.k(powerManager, WindClient.c().getPackageName());
        }
        return false;
    }

    public static void q(Closeable closeable) {
        if (closeable != null) {
            try {
                closeable.close();
            } catch (Exception unused) {
            }
        }
    }

    public static boolean q0() {
        String i0 = TextUtils.isEmpty(i0("ro.miui.ui.version.name")) ^ true ? i0("ro.miui.ui.version.name") : "";
        if (!i0.isEmpty()) {
            try {
                if (Integer.valueOf(i0.substring(1)).intValue() >= 6) {
                    return true;
                }
            } catch (NumberFormatException unused) {
            }
        }
        return false;
    }

    public static void r(File file, String str) {
        BufferedWriter bufferedWriter;
        if (!file.exists()) {
            lh.b.n("mkdir " + file.getAbsolutePath());
            file.getParentFile().mkdirs();
        }
        BufferedWriter bufferedWriter2 = null;
        try {
            try {
                bufferedWriter = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(file)));
            } catch (Throwable th2) {
                th = th2;
                bufferedWriter = bufferedWriter2;
            }
        } catch (IOException e2) {
            e = e2;
        }
        try {
            bufferedWriter.write(str);
            q(bufferedWriter);
        } catch (IOException e3) {
            e = e3;
            bufferedWriter2 = bufferedWriter;
            lh.b.n("write file :" + file.getAbsolutePath() + " failure :" + e.getMessage());
            q(bufferedWriter2);
        } catch (Throwable th3) {
            th = th3;
            q(bufferedWriter);
            throw th;
        }
    }

    public static boolean r0(android.database.sqlite.SQLiteDatabase r9, af.b r10) {
        throw new UnsupportedOperationException("Method not decompiled: qh.v0.r0(android.database.sqlite.SQLiteDatabase, af.b):boolean");
    }

    public static void s(String str) {
        if (yf.p.d() && Looper.myLooper() == Looper.getMainLooper()) {
            Log.w("DebugUtil", android.support.v4.media.a.j("Operation: ", str, " in main thread!"), new Throwable());
        }
    }

    public static int s0(Context context) {
        h1.g.h(context).getClass();
        return h1.g.a(context, "push_big_notification_icon", "id");
    }

    public static void t(ZipOutputStream zipOutputStream, File file, String str) {
        FileInputStream fileInputStream;
        String str2 = "";
        if (str == null) {
            str = "";
        }
        FileInputStream fileInputStream2 = null;
        try {
            try {
                if (file.isDirectory()) {
                    File[] listFiles = file.listFiles();
                    StringBuilder sb = new StringBuilder();
                    sb.append(str);
                    String str3 = File.separator;
                    sb.append(str3);
                    zipOutputStream.putNextEntry(new ZipEntry(sb.toString()));
                    if (!TextUtils.isEmpty(str)) {
                        str2 = str + str3;
                    }
                    for (int i2 = 0; i2 < listFiles.length; i2++) {
                        t(zipOutputStream, listFiles[i2], str2 + listFiles[i2].getName());
                    }
                    File[] listFiles2 = file.listFiles(new g7());
                    if (listFiles2 != null) {
                        for (File file2 : listFiles2) {
                            t(zipOutputStream, file2, str2 + File.separator + file2.getName());
                        }
                    }
                } else {
                    zipOutputStream.putNextEntry(TextUtils.isEmpty(str) ? new ZipEntry(String.valueOf(new Date().getTime()) + ".txt") : new ZipEntry(str));
                    fileInputStream = new FileInputStream(file);
                    try {
                        byte[] bArr = new byte[1024];
                        while (true) {
                            int read = fileInputStream.read(bArr);
                            if (read == -1) {
                                break;
                            } else {
                                zipOutputStream.write(bArr, 0, read);
                            }
                        }
                        fileInputStream2 = fileInputStream;
                    } catch (IOException e2) {
                        e = e2;
                        fileInputStream2 = fileInputStream;
                        lh.b.p("zipFiction failed with exception:" + e.toString());
                        q(fileInputStream2);
                    } catch (Throwable th2) {
                        th = th2;
                        q(fileInputStream);
                        throw th;
                    }
                }
            } catch (Throwable th3) {
                th = th3;
                fileInputStream = null;
            }
        } catch (IOException e3) {
            e = e3;
        }
        q(fileInputStream2);
    }

    public static void t0(MediaFormat mediaFormat, String str, int i2) {
        if (i2 != -1) {
            mediaFormat.setInteger(str, i2);
        }
    }

    public static void u(tb.m mVar, rb.b bVar) {
        tb.d dVar;
        if (bVar.e == 4 || mVar == null || (dVar = mVar.d) == null) {
            return;
        }
        try {
            if (dVar.a != null) {
                try {
                    dVar.a.close();
                    if (!MinSdkChecker.isSupportNotificationChannel()) {
                        return;
                    }
                } catch (Exception unused) {
                    if (b7.b.y) {
                        DebugLogger.d("AndroidNetworking", "Unable to close source data");
                    }
                    if (!MinSdkChecker.isSupportNotificationChannel()) {
                        return;
                    }
                }
                TrafficStats.clearThreadStatsTag();
            }
        } catch (Throwable th2) {
            if (MinSdkChecker.isSupportNotificationChannel()) {
                TrafficStats.clearThreadStatsTag();
            }
            throw th2;
        }
    }

    public static String u0() {
        StringBuilder sb = new StringBuilder();
        for (int i2 = 0; i2 < 8; i2++) {
            sb.append(new Random().nextInt(10));
        }
        return sb.toString();
    }

    public static void v(xg.a aVar, byte b2) {
        w(aVar, b2, Integer.MAX_VALUE);
    }

    public static String v0() {
        StringBuilder sb = new StringBuilder();
        for (int i2 = 0; i2 < 2; i2++) {
            sb.append("0123456789abcdefghijklmnopqrstuvwxyz".charAt(new Random().nextInt(36)));
        }
        return sb.toString();
    }

    public static void w(xg.a aVar, byte b2, int i2) {
        if (i2 <= 0) {
            throw new q6("Maximum skip depth exceeded");
        }
        int i3 = 0;
        switch (b2) {
            case 2:
                aVar.y();
                return;
            case 3:
                aVar.a();
                return;
            case 4:
                aVar.b();
                return;
            case 5:
            case 7:
            case 9:
            default:
                return;
            case 6:
                aVar.m();
                return;
            case 8:
                aVar.c();
                return;
            case 10:
                aVar.d();
                return;
            case 11:
                aVar.g();
                return;
            case 12:
                aVar.A();
                while (true) {
                    byte b3 = aVar.h().c;
                    if (b3 == 0) {
                        aVar.F();
                        return;
                    } else {
                        w(aVar, b3, i2 - 1);
                        aVar.G();
                    }
                }
            case 13:
                te.s j2 = aVar.j();
                while (i3 < j2.c) {
                    int i4 = i2 - 1;
                    w(aVar, j2.a, i4);
                    w(aVar, j2.b, i4);
                    i3++;
                }
                aVar.H();
                return;
            case 14:
                te.x k2 = aVar.k();
                while (i3 < k2.b) {
                    w(aVar, k2.a, i2 - 1);
                    i3++;
                }
                aVar.J();
                return;
            case 15:
                te.r i5 = aVar.i();
                while (i3 < i5.b) {
                    w(aVar, i5.a, i2 - 1);
                    i3++;
                }
                aVar.I();
                return;
        }
    }

    public static long w0(d2.p pVar, int i2, int i3) {
        pVar.x(i2);
        if (pVar.c - pVar.b < 5) {
            return -9223372036854775807L;
        }
        int b2 = pVar.b();
        if ((8388608 & b2) != 0 || ((2096896 & b2) >> 8) != i3) {
            return -9223372036854775807L;
        }
        if (((b2 & 32) != 0) && pVar.m() >= 7 && pVar.c - pVar.b >= 7) {
            if ((pVar.m() & 16) == 16) {
                pVar.a(new byte[6], 0, 6);
                return ((r1[0] & 255) << 25) | ((r1[1] & 255) << 17) | ((r1[2] & 255) << 9) | ((r1[3] & 255) << 1) | ((r1[4] & 255) >> 7);
            }
        }
        return -9223372036854775807L;
    }

    public static final boolean x(byte b2, int i2) {
        return (b2 & (1 << i2)) != 0;
    }

    public static void x0(MediaFormat mediaFormat, List list) {
        for (int i2 = 0; i2 < list.size(); i2++) {
            mediaFormat.setByteBuffer(android.support.v4.media.a.f("csd-", i2), ByteBuffer.wrap((byte[]) list.get(i2)));
        }
    }

    public static boolean y(android.content.Context r3, java.lang.String r4) {
        throw new UnsupportedOperationException("Method not decompiled: qh.v0.y(android.content.Context, java.lang.String):boolean");
    }

    public static Map y0(Uri uri) {
        String encodedQuery = uri.getEncodedQuery();
        if (encodedQuery == null) {
            return Collections.emptyMap();
        }
        LinkedHashMap linkedHashMap = new LinkedHashMap();
        int i2 = 0;
        do {
            int indexOf = encodedQuery.indexOf(38, i2);
            if (indexOf == -1) {
                indexOf = encodedQuery.length();
            }
            int indexOf2 = encodedQuery.indexOf(61, i2);
            if (indexOf2 > indexOf || indexOf2 == -1) {
                indexOf2 = indexOf;
            }
            String substring = encodedQuery.substring(i2, indexOf2);
            if (!TextUtils.isEmpty(substring)) {
                linkedHashMap.put(Uri.decode(substring), Uri.decode(indexOf2 == indexOf ? "" : encodedQuery.substring(indexOf2 + 1, indexOf)));
            }
            i2 = indexOf + 1;
        } while (i2 < encodedQuery.length());
        return Collections.unmodifiableMap(linkedHashMap);
    }

    public static boolean z(android.database.sqlite.SQLiteDatabase r12, java.lang.String r13) {
        throw new UnsupportedOperationException("Method not decompiled: qh.v0.z(android.database.sqlite.SQLiteDatabase, java.lang.String):boolean");
    }

    public static String z0(String str, String str2) {
        String str3;
        try {
            Class<?> cls = Class.forName("android.os.SystemProperties");
            str3 = (String) cls.getMethod("get", String.class, String.class).invoke(cls, str, str2);
        } catch (Exception e2) {
            e2.toString();
            str3 = null;
        }
        return str3 == null ? "" : str3;
    }

    @Override
    public String a(Context context) {
        Method method;
        try {
            try {
                if ((el.a.b == null || el.a.a == null) ? false : true) {
                    Object obj = el.a.a;
                    if (obj != null && (method = el.a.c) != null) {
                        try {
                            Object invoke = method.invoke(obj, context);
                            if (invoke != null) {
                                return (String) invoke;
                            }
                        } catch (Exception e2) {
                            Log.e("IdentifierManager", "invoke exception!", e2);
                        }
                    }
                } else {
                    boolean z2 = xe.d.a;
                }
            } catch (Exception unused) {
                boolean z3 = xe.d.a;
            }
        } catch (Exception unused2) {
        }
        return null;
    }

    public Object k() {
        return new LinkedHashSet();
    }

    @Override
    public void onComplete() {
    }

    @Override
    public void onError(Throwable th2) {
    }

    @Override
    public void onSubscribe(si.c cVar) {
    }
}