ああ v4.7.3版本的 MD5 值为:852b7e5365c359961c773f5886414359

以下内容为反编译后的 v0.java 源代码,内容仅作参考


package qh;

import android.content.Context;
import android.content.SharedPreferences;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.media.MediaFormat;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.net.Uri;
import android.os.Environment;
import android.os.NetworkOnMainThreadException;
import android.os.StatFs;
import android.text.TextUtils;
import android.util.Base64;
import androidx.core.app.NotificationCompat;
import com.afollestad.materialdialogs.internal.button.DialogActionButton;
import com.afollestad.materialdialogs.internal.button.DialogActionButtonLayout;
import com.bumptech.glide.load.Key;
import com.huawei.hms.framework.common.ContainerUtils;
import com.huawei.hms.framework.network.grs.GrsBaseInfo;
import com.meizu.cloud.pushsdk.constants.PushConstants;
import com.meizu.cloud.pushsdk.notification.model.TimeDisplaySetting;
import com.xiaomi.push.service.XMPushService;
import dsadcxz.z432twsd.avzsaagg.R;
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.Serializable;
import java.io.UnsupportedEncodingException;
import java.lang.reflect.Method;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import java.lang.reflect.TypeVariable;
import java.net.URLDecoder;
import java.nio.ByteBuffer;
import java.security.InvalidAlgorithmParameterException;
import java.security.InvalidKeyException;
import java.security.KeyFactory;
import java.security.KeyManagementException;
import java.security.KeyStoreException;
import java.security.NoSuchAlgorithmException;
import java.security.PublicKey;
import java.security.SecureRandom;
import java.security.cert.CertificateException;
import java.security.cert.X509Certificate;
import java.security.spec.InvalidKeySpecException;
import java.security.spec.X509EncodedKeySpec;
import java.text.DecimalFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayDeque;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Locale;
import java.util.zip.Deflater;
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;
public class v0 implements ri.b, com.google.gson.internal.o, g0.c, e4.c, re.w0, o2, qa.a, ql.b {
    public static Class A = null;
    public static Method B = null;
    public static Method C = null;
    public static Method D = null;
    public static boolean E = false;
    public static a1 f15181a = null;
    public static int f15182b = -1;
    public static String f15183c = null;
    public static String f15187g = "https://ulogs.umeng.com";
    public static boolean f15189m;
    public static boolean f15190n;
    public static t0 f15198w;
    public static ph.i0 f15199x;
    public static Class f15201z;
    public static final char[] f15184d = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'};
    public static final char[] f15185e = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F'};
    public static final char[] f15186f = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F'};
    public static final int[] f15188h = {R.attr.piv_animationDuration, R.attr.piv_animationType, R.attr.piv_autoVisibility, R.attr.piv_count, R.attr.piv_dynamicCount, R.attr.piv_fadeOnIdle, R.attr.piv_idleDuration, R.attr.piv_interactiveAnimation, R.attr.piv_orientation, R.attr.piv_padding, R.attr.piv_radius, R.attr.piv_rtl_mode, R.attr.piv_scaleFactor, R.attr.piv_select, R.attr.piv_selectedColor, R.attr.piv_strokeWidth, R.attr.piv_unselectedColor, R.attr.piv_viewPager};
    public static final j1.g f15191o = new j1.g("NULL", 6);
    public static final byte[] f15192p = {-79, 79, -56, 37, -87, 41, 96, 13, -122, 58, 2, -122, 67, 33, -72, Byte.MIN_VALUE, 16, 79, -45, 92, 75, 40, 54, -50, 19, 34, -15, 102, 32, 39, 53, 25, -55, 37, -62, -23, 28, 47, -88, -105, -123, -86, -97, -105, 26, -96, 0, -52, -105, -80, 3, 116, 69, 64, 36, 15, 103, 74, -78, -62, 31, 81, 68, 50, -102, -60, 73, 21, -111, -80, 40, 124, 41, 118, -83, 84, -33, -104, -89, 37, -38, -122, 12, -3, 48, -28, -14, -24, 2, -36, 89, -64, -120, 66, -100, -96, -103, 96, 12, 40, Byte.MIN_VALUE, -105, 49, 26, -33, 65, -16, -125, 96, 69, 20, -86, 80, 34, -110, -93, 28, 34, 64, 80, -54, 4, 65, 65, 0, 0, 96, -127, 24, 65, 74, 66, 9, 4, -64, 1, -120, 5, 16, 20, 71, 34, 9, 17, 48, Byte.MIN_VALUE, 40, 52, -62, -14, Byte.MIN_VALUE, -125, Byte.MIN_VALUE, 41, -64, 62, -108, 35, -115, -115, 1, 9, 16, 48, 24, 16, -112, 45, -25, -71, 29, 8, -87, 105, 87, -101, -95, -4, -104, -102, 78, 100, -8, -114, 19, 89, -4, -46, 2, 21, 93, 3, -30, 16, 23, -58, 12, 80, 30, 73, 1, -126, 10, -47, 98, 47, -103, -114, 12, -120, -116, 112, 112, 89, -121, -83, -84, 38, 10, Byte.MIN_VALUE, 2, -55, 12, 65, 67, -103, 115, 4, 12, -53, -127, 118, 114, -8, 32, 67, -87, 57, 26, 21, 118, -112, -97, 16, -113, 38, 93, 12, -90, 43, 104, 84, 78, 70, 32, -24, -64, 8, 97, 1, 22, -103, 114, 24, -121, -52, 72, -26, 10, 92, -117, -56, -88, -127, 16, 69, 40, 64, -46, 12, 5, 57, -125, -114, 77, 34, 28, -47, 82, -25, -20, -103, -97, -101, 24, 0, 59, 32, 9, 72, -23, 81, 34, 66, 2, 24, -112, -124, -87, 33, -64, -80, -64, -96, 2, -109, 74, 74, -46, 41, 4, 34, -127, -126, -120, -104, 65, 10, -64, 88, -73, -59, 86, 122, 0, 112, -96, 18, -28, -48, -125, 56, -95, Byte.MIN_VALUE, -16, 80, 72, 56, -46, -40, 51, -86, 39, -52, -23, 50, 16, 103, -70, 32, 16, -124, -88, 69, 76, 40, 0, 66, 86, -28, 97, -79, -78, -122, -13, 32, 10, 126, -68, 46, 1, 37, -60, -51, 107, 76, 10, 72, -109, -3, 87, 6, 0, 26, 71, 65, 9, 50, -46, -57, -49, 2, -61, -6, -39, 96, -5, 0, 93, 53, -96, 90, 40, 16, -96, 13, 76, 7, -89, -127, 32, -46, 17, -93, -31, 99, -31, 114, 67, 8, 77, 69, -20, 125, -123, -38, -70, -89, -77, -126, 42, 5, 26, 35, 84, 15, 22, -116, 20, -97, -126, -114, -99, 46, 1, 67, -120, 107, 106, -48, -119, -80, 14, -38, 82, -125, 64, -31, -112, 75, 25, 2, 29, 8, -82, -94, 42, 76, -104, -30, 48, 2, 100, Byte.MIN_VALUE, -36, -92, -69, 126, 9, -26, -68, 77, 19, 27, -126, 1, -99, 102, 82, -127, -44, 93, -91, 121, -60, -76, -64, 69, 66, -120, -19, 37, 37, -103, 67, -106, -79, 61, -72, 10, 91, 0, 13, -119, 0, 0, 1, 53, 86, -111, 18, 33, -65, 99, 64, Byte.MAX_VALUE, 5, 73, 34, 114, 2, -63, -5, 0, -124, -37, 38, 70, 69, -40, 39, 32, Byte.MIN_VALUE, 64, 64, 121, -2, 64, 51, 7, -53, -94, 5, -94, 6, -20, 49, 8, 93, 97, -121, 53, -11, 87, -116, 14, 14, -31, -112, 96, -114, 81, -109, -117, 28, 22, 120, -61, 88, -48, 2, -93, -31, 22, 37, -51, 97, 88, 0, -120, 34, 24, 121, -47, 44, 0, 28, -57, -104, -117, 18, 36, 7, -35, 96, -101, -19, 106, 2, -64, 50, -88, 115, 66, 54, 65, -64, -117, 4, 68, 92, 41, 57, 83, -96, 6, 32, 91, 0, -61, -120, -10, 2, 1, 65, -88, 39, 4, -15, -36, -112, -109, -80, 24, 35, 77, 66, -7, 46, -63, Byte.MIN_VALUE, -14, 17, 81, 24, 0, 104, 10, 32, -94, 120, 98, -120, 8, 75, -12, 72, -62, 6, 110, 36, 67, 14, -74, 96, 1, 25, -31, 41, -111, -56, 82, 68, 43, -126, 72, 50, 122, -7, -76, 35, 16, 94, -59, -120, 115, 82, -75, -125, -123, 46, 85, -75, 46, 16, 1, 41, -80, -12, -124, 16, -20, 36, 82, 0, -127, -117, 72, -30, 80, 36, 72, 22, 15, -124, -54, -70, 32, 100, 49, 52, -127, 72, -127, 16, 33, 20, 1, 42, 98, 81, 29, -29, 73, 80, -47, 70, -34, 47, -75, 8, -120, 75, -47, 33, 63, 84, -89, -119, 32, -6, -74, 11, -23, -125, 80, -91, -76, 62, -20, 29, 62, 31, 23, -41, 65, 7, 13, 34, 24, 68, -62, -79, -37, -125, 27, -56, 112, 47, -119, 21, 7, 57, 24, 15, -28, 6, 98, -83, -74, 92, -94, 66, 25, 24, 85, 13, 34, 117, -23, 12, 98, 46, 120, 6, 36, -40, 111, 26, 0, -30, -110, 49, 3, 47, 22, -85, -106, -112, 36, -88, -40, 71, -105, 7, -66, 96, 33, 28, 58, 56, -92, -92, -80, 77, 48, 2, 0, -96, 24, -107, -2, -120, 67, 33, -28, 24, 66, 32, 104, 77, 95, 77, 23, 52};
    public static final byte[] q = {104, 68, -109, -6, 33, 86, 0, 78, Byte.MAX_VALUE, 24, 33, 86, -127, 21, 111, -59, 92, 40, 40, -117, -1, -15, 39, 39, 3, 19, 103, 49, 70, 49, 37, 69, 3, -84, 69, 110, -84, 100, 19, 25, 41, -118, 96, 99, -3, -122, -127, -122, 87, 105, 43, 32, -81, -113, -120, 0, 78, 58, 80, -120, -120, -87, -117, -12, 90, 104, 104, -49, 0, -118, -118, 75, -64, 104, 0, -123, 84, 124, 121, 82, -90, -122, -10, -20, -2, 121, 104, 37, 37, 104, 106, 0, -57, -118, -6, 103, 85, 88, 92, 69, 0, 0, 41, 0, 39, -127, -47, -126, 0, 39, 0, 0, -68, -75, 0, 17, 85, 100, 90, 30, -50, 93, 0, 0, 0, 0, -4, -123, 107, 93, -75, -81, 104, -115, -90, 0, 111, -124, 39, 39, 80, 41, 111, -98, 111, 114, 121, -6, 84, -120, 49, 54, 98, 98, 99, 90, 99, -6, 99, -127, 70, 79, -110, 57, -123, 111, 104, 32, 118, -51, 0, 88, -120, 68, -84, 118, -120, 103, 0, 20, 110, 90, 58, -85, 76, 80, 12, 12, -127, 0, 79, 104, 37, 12, -90, 68, 120, -121, -7, 40, 6, Byte.MAX_VALUE, -121, -122, 19, 13, 49, 88, 24, -74, 0, 25, -112, 39, 57, Byte.MAX_VALUE, 90, 87, 87, 30, 119, 69, 12, -4, 93, 96, 63, 57, -80, 104, 34, 33, 22, 33, 104, -51, -62, 12, -126, 34, 101, -4, -122, -15, 78, 84, -125, -126, 102, 87, 25, 12, 79, 86, 63, 84, -122, -6, -18, 111, 66, 75, 81, 104, 91, -110, 104, -127, 2, 84, -127, 90, 82, 94, -121, 11, 36, 90, 60, -122, 110, Byte.MIN_VALUE, 126, 111, 53, 114, 24, 80, 43, 35, 99, 87, 33, 33, -74, 25, 98, 91, 80, -120, 38, 96, -46, 20, 102, -40, -40, 90, 8, 95, -80, -121, 37, 4, 49, 13, 49, -126, -15, 104, 49, 2, -124, 65, 112, -68, 58, -120, 21, 4, 14, 34, 48, 80, 63, -120, -105, 110, 101, 64, 126, 115, 14, 75, 35, 111, 104, 88, -105, 101, -34, 69, -40, 96, -117, 109, 76, -4, 0, -113, 0, -18, 123, 115, -91, 88, 96, 101, 7, 82, -55, -126, -49, 19, -127, 118, Byte.MIN_VALUE, 107, 5, 66, -123, 48, 104, 39, 92, 37, 75, -111, -123, 92, -94, 104, 38, -102, 106, -87, 106, 39, -60, -120, 95, 110, 3, -76, -52, 80, -74, 70, 30, 38, 98, 100, -121, 104, 17, -125, 86, -126, 116, -72, 0, -123, -125, 27, -2, -101, 31, -34, -32, -121, 84, 120, -119, 37, -125, 55, 40, 0, -72, -117, 41, 68, 37, 75, 20, -48, 114, 15, 73, 111, 85, 51, 77, 3, 95, -99, -103, 84, -114, 104, 90, -92, -109, -2, -87, 109, Byte.MAX_VALUE, -120, 87, 24, -22, 52, 90, 85, -87, -59, -10, 10, 111, 49, 86, 91, 94, 111, 64, 35, 40, 0, 100, -84, -87, -94, 49, -125, 94, 90, 115, -117, 89, -22, -125, 16, 64, 85, 87, 99, 3, 11, 111, 91, 14, 38, 33, -123, 19, 117, 102, 53, -86, 78, -94, 25, -111, 96, 105, 11, 65, 41, 41, -62, 60, 59, -115, 45, 92, -16, 60, 120, 104, -6, 64, 93, -120, -122, 95, 33, -122, 84, -123, -105, -116, -111, -117, -4, -40, -74, -113, 83, -73, 50, -88, Byte.MAX_VALUE, 70, -112, 12, 84, -117, -49, 23, -125, 125, 103, -123, 30, 1, 0, 107, 37, -4, 100, -29, -122, 46, -126, -122, 80, 111, 19, 21, 64, 80, -14, 100, 87, 60, 83, 77, 90, 35, 38, -111, 63, -105, 30, 68, 11, 103, 125, 102, 126, 3, 100, 110, -125, 95, 124, 31, 90, 14, -123, -111, -59, -127, 104, 90, 98, 49, 73, 27, -125, -24, 70, 70, 11, 115, -77, -122, 80, 86, 33, -98, 51, 38, 52, 86, 90, 112, 15, -87, 17, 114, 101, -69, 9, 65, 60, 114, -122, 85, 32, -4, -115, 25, 41, 24, 11, 89, 109, 102, 57, 56, 79, 82, 19, -126, 57, 116, 60, 0, 18, 41, -28, 117, -89, 53, 109, 119, -111, -16, 50, 5, 43, 111, 125, -109, 33, -3, -3, 38, 30, 112, Byte.MAX_VALUE, 1, 100, 63, 85, -77, 11, -13, -121, -85, -76, -67, -4, 87, 3, 107, 70, -117, 88, 32, -2, -119, 73, -106, -7, 85, -91, 33, 106, -83, -6, 62, 32, 80, Byte.MAX_VALUE, 83, 126, 43, 67, 58, -123, -118, 29, 86, 87, -115, 77, -123, -125, 69, -81, 20, 102, 87, 52, 87, -124, -56, 103, -121, -126, -2, -15, 87, -121, 2, 23, 104, -114, -32, 32, 104, 59, -120, 96, -101, -125, 41, 58, -123, 30, 116, 0, 18, 3, 17, 58, 40, 31, -93, -40, -121, -4, -61, 84, -42, 2, -40, 33, -82, -89, -72, -99, 10, 72, 16, 117, -123, 49, 110, 114, 0, 36, -87, 63, 80, -78, 41, 32, 9, 41, 126, -87, -73, 117, -28, 60, 100, -89, -47, 80, 84, 114, 117, 112, 93, 39, Byte.MIN_VALUE, 93, 87, 106, 74, -108, 74, -59, 71, 33, 80, 74, 80, -121, 71, 49, 100, 100, 39, 39, 59, -4, 71, 86, -65, 91, 71, 7, -120, -87, -99, 17, 79, -44, 5, -84, 111, 6, 100, -79, 85, 0, -93, 100, 65, 105, 92, 19, -6, -117, 65, -112, 0, 101, -125, 40, -127, 104, -127, 32, -119, -65, 8, -44, 112, -65, 94, 8, 27, -119, 27, 116, 103, -119, -65, -121, -65, 101, 95, -59, -60, 15, 106, 90, -111, -114, -32, 104, -60, 39, 105, -61, -122, -107, 112, -55, -104, 0, 90, 90, -60, 19, 70, 58, 94, 87, 19, 121, 39, -115, 121, -99, 103, -88, -21, 90, -56, 70, 87, -82, 86, -125, -120, 41, -63, 33, -6, 102, -114, 50, -120, -84, 1, 66, -80, 70, 93, -125, 106, 50, 2, -87, 25, -55, -114, 53, 49, 76, -121, -81, -81, -34, 85, 72, -127, 83, 83, 83, 87, -117, 41, 0, 
    87, 0, 0, 90, 87, -10, 87, -112, 125, -112, 93, 62, -10, 4, 93, -101, 71, 5, 41, -127, 59, 112, 112, 119, 60, 66, 60, 12, 12, 44, 86, -1, 104, -127, -111, -4, 54, 41, 81, -127, 58, 92, 122, 78, -115, -87, 113, -82, -79, 120, 94, 44, 90, 41, 4, -117, 32, -56, -80, -122, -21, 17, -122, -122, 10, -87, 32, 17, 32, -120, 103, 98, 60, 44, -98, -103, 76, 80, -123, 42, 5, 30, 48, -108, -122, 107, 48, 107, -112, 76, -127, 64, -120, -77, -73, 120, 112, 55, 97, -108, -95, -4, 30, 43, 103, -125, 55, -87, 64, 85, -8, 32, -6, 44, -112, 94, 78, 20, -127, 76, 1, 100, -113, -125, -127, 20, 100, -117, Byte.MIN_VALUE, 38, -125, 76, 73, 84, 103, 90, 38, -125, 96, 124, -112, 44, -116, 32, 72, -76, -87, 89, 32, -13, -104, -123, 103, -2, -115, 122, 124, -113, -85, -117, -15, -79, 107, -123, 107, -125, -125, 60, Byte.MIN_VALUE, -127, -125, 104, -125, -123, 32, 52, -53, -87, -120, -87, 99, 5, 8, 100, -126, 84, -68, -82, -120, -106, 90, -123, 70, -120, -30, -122, 4, 34, 104, -120, -53, -87, -120, -91, -91, -116, -104, 101, 76, 89, -52, -99, -122, -82, 115, 39, -108, -120, 114, 20, -56, 38, -92, 109, 109, -59, -108, 98, -116, 1, -76, 21, -61, -94, -90, -112, -59, 70, 95, 95, -111, 84, 104, 98, 82, 38, -91, -51, -76, -13, 39, -127, 0, -3, -123, 5, 88, 104, -2, 83, -116, 69, -117, 58, 90, -68, 98, 98, -72, -87, 35, 9, 5, 10, 34, 114, -118, 10, 101, 84, 114, 0, 0, 92, 92, 10, 49, 0, 93, -16, -117, 61, 96, -7, 3, -19, 90, 100, 56, -118, 2, 14, 122, 11, -46, 38, 84, -118, 104, 115, -124, -110, -124, -99, 121, 86, 4, 83, 107, -1, 25, -99, 85, 121, 111, 107, -98, 126, 58, -98, -85, -85, 53, 72, -118, 4, 85, -15, 4, 104, 3, 100, 15, -40, 4, 39, 91, -4, -39, 22, -109, 38, 84, 126, 8, 39, 85, 78, 122, 90, 78, 11, -109, -113, 90, 58, -68, -48, 58, -127, 20, 43, 21, -99, 15, 21, 126, -113, -76, 110, -76, 85, 103, 83, 90, -122, -122, 80, 4, 2, -123, -65, 106, 80, 34, -127, 6, -75, 39, -116, 90, 95, -121, 6, 84, -127, 77, 1, 85, 0, 33, 112, 77, 68, -87, -127, 3, -87, 99, 99, 100, 35, -123, 124, -20, 0, -108, 99, -123, 27, -20, 64, -87, 35, 120, 68, -107, 55, 85, 112, 27, 112, 88, 100, -87, -115, 30, 65, 41, -118, 0, 5, 107, 100, 49, -87, 33, -93, -87, 100, 100, 112, 49, 49, -81, 3, 4, 4, 0, -89, 72, 87, -117, 24, 24, 24, 24, 24, 2, 57, 110, 30, -127, 110, 45, 83, 40, 104, 6, 82, 21, 39, 41, -115, 4, 40, 15, 95, -126, -21, 51, -127, 111, 51, 67, 19, 49, -104, 102, -117, -80, 103, 61, -104, -123, -123, Byte.MIN_VALUE, 6, 68, -108, 58, 38, 39, 110, 3, -9, 103, 114, 49, 59, 38, -90, 66, -127, 0, 119, -57, 111, -66, 38, 96, 96, 102, -112, 115, -127, 66, 54, 69, -55, 120, -87, 71, 88, 124, 115, 103, -72, 1, -69, -24, 97, 104, -114, 40, -81, 74, 106, 85, 14, 0, 0, -122, -8, 89, 6, 75, 86, 77, 112, 68, 113, 47, -6, 121, -123, 106, 84, 84, 34, -50, 47, 85, 45, 71, 81, 120, -24, 84, 95, 99, -114, -72, 77, 96, -63, 57, -6, 37, 84, 95, 90, -123, 119, 38, 38, -50, 74, -70, 104, 57, -24, -87, 11, 112, 109, 0, -3, 84, 77, 39, 5, -17, 81, -40, -52, -80, 8, 110, 63, -121, 39, -121, 126, -80, 104, -6, -10, -112, 103, 48, 80, 95, 115, -46, 86, -18, 104, 89, 37, 121, -55, 56, 4, -117, 93, 115, 75, 76, -8, -19, 17, 90, 14, 115, 115, 115, 111, -118, 109, 90, 56, -121, 76, -113, 102, -113, -105, 21, -78, 70, -34, 124, 49, 87, Byte.MIN_VALUE, -6, 80, 77, 106, 124, 85, 104, -82, -112, -57, -60, -123, 102, -127, -121, 96, 43, 117, 89, -108, 126, -102, 123, 61, 87, 77, 96, 94, 109, 100, -91, 104, 2, -11, 37, 69, 119, 93, 76, 76, 110, 116, 110, 63, -22, 88, 2, 98, -99, 99, 56, 89, 14, 126, 0, 122, 0, -101, 76, 0, -127, -32, -52, 108, 114, 112, -78, -8, -66, 96, 77, 38, 34, -87, -50, -109, 115, -103, 89, 87, -91, 11, -127, 124, -84, 6, -60, -90, 54, 89, 21, 112, 118, 99, 48, 96, 110, 100, 102, 102, 7, 112, 56, 46, 104, 2, -126, 71, 87, 105, -87, 85, 60, -105, -54, 35, 84, 119, 99, 71, -6, 63, 0, -69, 0, 100, 71, 0, -91, -84, 56, 119, 124, 0, 101, -127, -105, 83, 87, 106, 121, -6, 40, 80, 42, 33, 80, -87, -3, 3, -122, 108, -39, 111, 65, -94, 30, 85, 75, 121, 2, -121, -31, -107, -113, -113, 33, 63, 118, -81, 1, 89, 88, 74, 84, 81, 53, -122, 121, -6, -6, 61, 58, 58, 78, -112, 14, 53, 47, 115, 99, -6, -127, 85, -84, 87, -15, 30, -95, 120, 1, 103, -23, -127, 27, -117, -36, 109, -73, 100, 63, 5, 59, 20, 68, -92, 89, 0, 60, 38, 64, 3, -118, 58, -113, 109, 80, -48, 32, 111, -127, -95, -122, 120, 112, 67, -121, 31, -101, 11, 111, 106, 117, 102, 83, -59, 121, 114, 43, 126, 124, 124, 85, 115, -127, -98, -122, 80, 30, 95, 125, 72, -36, 96, -84, 111, 25, 38, -2, 100, 58, -17, 39, -87, 108, 124, 80, -58, 107, -17, 0, -98, 85, 111, -122, -77, -103, 26, Byte.MIN_VALUE, 64, 102, 115, 1, 94, -3, 27, 109, 52, 119, 90, 2, 56, -69, 30, 
    111, -108, 56, 25, 36, 17, 51, 100, -127, -20, 84, -4, 39, 96, -112, -122, -73, 82, 76, 49, 38, 114, 56, -126, 111, 56, 0, -36, 115, 0, 23, -41, 96, -50, 64, 2, 0, 69, 14, 5, 5, -85, 53, -127, -53, 51, 51, 59, 63, -6, -123, 39, -123, -112, 59, 24, 26, -126, 0, 89, -13, -77, 91, 102, 89, 121, 126, 109, -24, 87, 120, 33, 95, -9, 61, -69, -69, 121, -89, 72, 91, 60, 103, 13, 107, 0, -123, -60, 89, 122, -68, 8, -105, -16, -91, 89, -127, -120, 34, -98, -107, 89, 49, 114, 90, -83, -2, 85, 95, 32, 58, 116, 98, 84, -106, -21, 38, -98, 24, 117, 51, 58, 111, 74, 37, -123, 103, 85, -6, 114, -85, 95, 62, 126, 106, -7, -115, 0, 98, -36, -76, 49, 100, 107, 56, 126, -25, -121, -121, -32, 126, 126, -6, 77, 119, 104, 39, -123, 112, 2, 109, 97, -101, 111, -17, 60, 91, 91, 75, 59, 0, 23, -15, -15, 106, -107, -34, 63, 112, 57, Byte.MIN_VALUE, 17, 114, 86, 100, 76, -15, 40, -127, -121, 114, 64, 33, 0, 0, 22, 64, -76, 126, 10, 110, -36, 106, 121, -53, 125, -127, -87, -79, 0, -47, 89, -53, 100, -87, -76, -78, -53, 58, 36, -11, -15, 88, Byte.MIN_VALUE, -53, 85, 76, -103, 100, 32, 107, 9, 65, -95, 57, 89, -123, 47, 124, Byte.MIN_VALUE, -117, -36, 89, 22, -87, 32, 31, -87, 104, -73, -47, 117, 52, 85, 0, -125, 115, -120, -93, -36, -47, 0, 0, 80, 126, 106, 3, 49, -35, -125, 126, 91, 106, -48, 72, 72, 75, -110, 112, -119, -14, 114, 49, 121, 126, 112, 77, 109, -97, 49, 80, 71, 80, -74, 109, -114, 14, -80, 102, 109, 58, 109, 71, 110, 109, 106, Byte.MAX_VALUE, -7, 111, 112, 112, -74, 5, 111, 1, 109, 45, 80, 112, 5, -103, -7, 112, 112, 77, 71, 71, 71, 72, -71, 126, 104, 112, -75, -75, 71, 99, 71, 68, 38, 100, -76, 0, 99, 116, 80, 96, 111, 84, 107, -15, 104, 63, -4, -4, -125, -113, 59, -5, 0, 0, -99, 33, -6, -36, -53, -127, -126, -123, -123, 8, 98, 70, 0, 86, -114, -106, 75, 84, 86, 12, 59, -111, 123, -105, -106, 14, 92, 63, -120, -127, -101, 63, -120, -125, 59, -87, 6, 84, 86, -115, -9, -21, 60, -97, 4, 59, -123, 75, 93, -10, 65, 76, -40, 58, -15, -119, 101, 88, 5, -79, 3, -51, -108, 101, 97, 6, 38, 35, -80, -120, 90, 121, -123, 45, -95, -78, -78, -76, 5, 0, -19, 0, 92, 69, -127, -108, -76, 48, 38, -89, 92, 106, 120, 74, Byte.MIN_VALUE, 90, 106, 102, 76, 76, 107, 30, 101, 106, 82, 101, 112, 67, 90, -107, 33, 40, 77, 0, 65, 119, 99, -102, 56, 0, 59, -112, 0, -46, 3, 92, 87, 124, 9, -18, 6, 104, 106, 112, 95, 45, 28, 99, 2, -16, 84, 6, 109, -114, -126, 63, -68, -92, 96, 37, 32, -121, -127, -82, -82, -7, 37, 0, 21, 39, 98, 109, -119, 103, -39, 63, 111, 21, 84, -116, 54, -15, 37, 78, -117, -74, -124, -105, -122, 70, 57, 59, 3, 23, 41, 13, -111, -123, 76, 104, -123, 104, -18, -127, -114, -6, 26, -117, -40, -103, -108, 60, -97, -40, -125, 74, -121, 94, 111, 77, -16, 102, 71, -88, 0, 99, -4, 0, 3, 36, 76, -46, 71, 37, 106, Byte.MAX_VALUE, 14, -85, 109, 67, -117, 120, 10, 10, 111, 63, -65, -122, 18, 77, 99, -111, -111, 111, 125, 77, 102, 100, 10, -127, -63, 33, 72, 75, 3, 87, -122, -122, -125, 118, 94, 43, -125, 0, -89, 94, 125, -88, 73, 78, 96, -127, -127, -101, 107, 57, 37, 109, -112, 52, 52, 39, -60, 57, 82, 37, 71, 60, -2, -122, -87, -16, 9, 23, 118, 74, 65, 84, 37, 98, 96, -125, 2, 100, 100, -111, 65, 112, 81, 90, -79, 0, -92, 33, -16, 13, 36, -76, -76, -24, -4, -63, -53, -117, 45, 41, -77, 38, -67, 16, -120, 27, 41, 63, Byte.MAX_VALUE, -111, 109, 65, 36, -123, -127, 109, -3, -121, 63, 33, -51, 53, 100, 57, 123, -6, -3, -84, 0, -115, -2, 123, 95, 32, 32, 6, -7, -101, 70, 83, 6, -53, 75, 75, -106, -107, 38, 76, 76, 59, 62, -51, 86, 125, 59, 56, 103, 41, 0, 5, -3, -127, -2, -107, 104, -15, 14, 65, -124, 103, 109, 97, 59, -93, -117, 123, 59, 9, -4, 96, -93, -60, 115, -112, 99, 60, 114, 18, 0, -89, -99, -76, 100, 59, 80, 123, -78, -78, 19, -87, -81, 9, 32, 98, 100, -89, 6, 0, 39, 12, 0, -116, -116, 38, 104, -68, -2, -120, -116, 121, 121, -97, 104, 121, 95, -97, 40, -66, -106, 40, 104, -123, 102, 41, 88, 87, 11, 0, 15, 54, 7, -80, 90, -105, 86, 93, 0, -46, 86, -98, 85, 77, 112, -65, 52, 76, 76, 103, 1, 0, 101, 101, -6, -61, -61, 106, Byte.MIN_VALUE, 36, 56, 120, 65, 58, 90, 104, 102, 101, 113, 95, 39, 12, 58, 70, 100, 14, 104, -102, -126, 76, 0, -99, 114, -126, 6, 79, -85, 124, 63, 100, -19, -116, -6, -49, 87, 90, 86, 65, 0, -98, -110, 124, -6, -112, 35, 12, 104, -124, 61, -116, 12, 85, 125, 85, 66, 54, 13, 65, 5, 35, 82, -21, 5, 84, 5, -124, -85, 76, 114, -124, 39, 86, Byte.MIN_VALUE, 11, -85, 35, -27, -30, 68, -49, -4, -125, 57, -118, -48, 30, 114, 87, 83, -127, 48, 17, 85, 79, 119, -116, 90, -69, 58, 12, 90, -120, 100, 90, 81, -122, -23, 72, -127, -106, -122, 102, -121, 114, -58, -18, 38, 113, -116, -33, 100, -50, 91, 86, 14, 111, 75, 87, 112, 84, 84, 111, 107, 72, 6, -40, -121, -121, Byte.MIN_VALUE, 56, -49, 112, 70, 96, -123, 
    77, -63, -53, -6, 14, 37, -1, 77, 115, 95, 82, -124, -40, 8, -51, 90, -80, -112, -112, 39, 8, 32, 101, -4, -122, 102, 49, 92, 80, -112, -117, 32, -11, 12, 102, 69, -124, 41, -127, 92, 33, -96, -116, -123, 101, -91, -125, -125, 104, -39, -123, -127, -127, 87, 118, 106, -114, -102, 100, -55, -82, -18, 100, 110, 100, 30, 87, 106, 38, 107, 5, -112, 50, 80, 119, 76, -77, 99, 10, -123, -75, -10, 87, 34, -87, 37, 90, -66, 0, 56, -51, 80, -108, -94, 47, 68, -38, -106, -48, 111, -50, -18, 54, -116, 37, -123, 112, 63, -116, 77, -11, 73, 87, -59, 84, 100, 84, 85, 100, 111, 49, 111, 76, -87, 87, -117, 4, 45, -6, 87, -115, 70, 33, -76, 2, 77, 77, -77, -59, 49, -8, -117, -9, 23, -80, 78, 16, 89, 41, -6, 126, 90, 83, 19, 59, 85, 0, -122, 65, -40, 5, -120, Byte.MAX_VALUE, -120, -4, 65, 92, 121, 78, -94, 14, 106, 40, 47, 90, -120, -74, 100, -93, -97, 106, 99, 0, -87, 65, 87, 0, 122, 107, 32, 37, 68, 101, 102, 84, -48, 47, -126, 70, 95, 111, 80, 64, 16, -63, 58, 18, 0, 0, 84, -4, 46, -65, 90, -122, 73, 85, -122, -63, 125, -59, 3, 107, 96, 0, 80, -63, 112, -125, 3, 64, 90, 75, -85, -65, 8, 49, -14, 80, 76, -118, 121, 5, 0, 10, 95, 70, 107, -110, 102, -15, 85, 112, 107, 15, 17, 38, -79, -63, -21, 5, -69, 101, -98, 0, -126, 26, -125, 112, 30, 109, -55, 107, -127, 52, -37, 87, 61, -20, -92, -37, 10, 2, -15, -11, 104, -13, 111, -89, 96, -67, 104, Byte.MAX_VALUE, -110, 109, -40, -87, 63, 107, 100, -121, -117, 33, 27, 112, -43, -91, -53, -127, 121, 121, 5, -43, -3, 0, 14, 102, 84, -2, 75, 126, -65, 87, 87, -53, -83, -85, 122, 107, 62, -123, 95, 0, 122, 85, 126, 10, 85, 100, 32, -123, -63, 83, 83, 87, 104, 80, 32, 83, 39, 14, 32, 54, -3, -85, 124, 0, -37, 70, 104, 24, 2, -38, -34, -69, 66, 40, -121, 48, 111, -11, 0, 95, -49, 100, 58, 107, 24, -37, 0, 107, -59, 0, -69, 37, 92, -40, 72, -79, 112, -93, 100, 45, -80, -123, -38, -93, 87, 107, 45, 43, 5, -60, -87, -75, 100, -120, -93, -112, -122, -115, -115, -105, 114, -112, -112, 54, 55, 90, 11, -112, 89, 91, -61, 49, 58, 10, -127, 102, -30, 97, 0, 32, 111, -75, 55, -46, -57, 49, -125, 41, 32, 99, -112, -40, 90, -112, -87, 97, 20, 17, -49, -36, -36, 107, -75, -59, -34, 15, 57, 107, 125, 2, 111, 40, 3, 71, 50, 78, 16, 102, 119, 104, -120, -114, -60, 104, 59, 119, -111, 105, -121, 68, 78, 104, 10, 39, 39, 39, 37, -108, 96, 39, 110, 124, 104, 66, 39, 87, 100, 37, 7, 100, 89, 116, 124, 10, 111, 100, 89, -126, 37, 36, 15, 125, -60, -104, -100, 18, 52, 23, 117, -127, 112, -127, 106, -60, -104, 1, 115, -125, -125, 90, -34, 19, 124, -63, 0, 112, 111, 39, -34, -121, -34, -123, 111, 10, -100, -34, 0, -53, 30, -117, 103, 0, 121, 84, -83, 39, -34, 125, 37, 80, 90, -100, 126, -83, -114, 124, 104, 104, 10, 0, 39, 10, 87, 54, 74, 49, 98, 60, -72, 74, 40, -9, 87, -117, 90, 35, -108, -124, -124, -117, 80, -106, 98, 41, 74, 60, 89, -127, 34, 80, 80, 80, 91, -125, 41, 36, 33, 33, 112, 91, 33, -83, 87, 87, 0, 79, 79, 110, -83, -83, 102, -66, 79, 79, 79, 91, 102, 76, -98, -122, -118, 93, 102, 93, 93, 93, 93, 39, 106, 38, -109, -40, -121, 80, -37, -117, -15, 29, 85, 14, -117, -122, 65, 4, 64, -122, 84, 66, 39, 39, -10, -127, 90, 36, 85, -40, 126, 85, 0, -67, 77, -77, -10, 64, 85, 41, 90, 71, -72, -72, 85, 29, -72, -117, 90, -117, -115, -83, -115, 41, 85, 35, 74, -40, 32, 76, 87, -87, 77, 0, 0, -78, 104, -6, 12, 84, 112, 37, 111, 41, 54, -6, 0, 113, 8, 102, 4, 99, 84, -122, 77, -127, -4, 86, 78, -6, 28, -4, -6, 30, -122, 4, 94, 87, 5, -93, 60, 6, 125, -105, 101, -117, 94, -108, 101, 97, 20, -87, 66, 4, 100, 90, 94, -126, -80, 75, -18, 110, 57, -99, 113, 4, 121, -9, -56, 3, 66, -80, 38, 0, 70, 0, -98, 94, -65, 69, 97, 104, 0, 115, -108, -73, 77, 90, 98, 67, -76, -92, 80, 92, 5, 69, 104, -51, 39, 3, 80, 121, -123, -60, -87, -127, 69, -98, 110, 0, 86, -87, 102, -123, -124, -75, -123, 77, 77, 111, 103, 21, -2, 7, 87, 87, -46, -87, 110, 87, 119, 60, 37, 37, 71, 99, -114, 114, 86, 106, 84, -92, -111, -91, -94, 87, 6, -105, 39, 39, 57, 0, 122, -117, -94, -6, -56, -97, -97, -109, 102, 53, 99, 99, 94, -74, -74, -88, -115, 76, 37, 109, 106, 70, 112, -124, 80, 102, -15, 100, 50, -122, 13, -109, -115, 70, 126, 102, 106, -112, 120, 125, 111, 80, 101, 87, 3, 75, 64, 104, -123, 39, 116, 102, 77, -120, -111, -72, 100, -63, 93, -127, -127, 124, 68, 38, -63, -4, 84, 111, -111, -93, -122, 100, 100, 80, -111, 30, 54, 15, -108, 0, 111, -6, -77, 71, 74, 85, 82, 25, 59, 15, -122, 2, -79, 84, 50, -2, -112, 80, 13, 65, 55, -4, 109, -36, 55, -127, 0, 0, 50, -111, -124, -83, 0, 32, 63, 28, 68, 71, -77, Byte.MAX_VALUE, 126, 126, 5, 26, 4, -3, -107, -107, 60, 60, 85, 111, 20, -78, 88, 29, 20, 0, -123, 100, -91, 126, -81, -83, -83, -121, 62, 76, -106, 
    -123, 107, 102, -2, 102, -115, 126, 104, 97, -46, 103, 103, 104, 77, 87, -127, 90, -108, 54, 63, 5, -107, 0, 104, 15, 60, -80, 115, 111, 113, 106, 0, -122, -87, 54, -78, -78, 65, 107, 85, -117, 32, 107, -98, 100, 80, -46, 5, 34, 52, -75, 65, 65, -36, 100, 100, 100, -46, 100, 43, 107, 43, -121, 125, -120, 98, 34, 34, -82, 100, -105, -2, -117, 100, 0, 84, 0, 0, 30, 3, 3, -127, 104, 49, 6, -123, Byte.MIN_VALUE, 88, 104, -121, 98, -116, 0, 98, -121, 90, 115, 14, 39, 21, 68, 43, 83, -36, 39, 86, -23, -123, 85, 121, 58, 80, Byte.MAX_VALUE, 60, 57, -69, -18, -23, 67, 90, -85, -123, -121, 20, -123, 63, -53, 104, 104, -10, -5, -116, 17, 43, 57, -125, 46, -2, -125, 39, 7, 85, 9, 57, 107, 40, -10, Byte.MAX_VALUE, 30, 78, 57, 80, 33, 30, -6, 120, 109, -65, 72, 120, -125, 95, -60, 80, 83, 90, 104, 9, -10, 0, 100, -21, 125, 60, -60, -126, 63, 126, -122, 28, -67, -51, 16, 109, 120, -51, 9, Byte.MAX_VALUE, -119, 32, 90, -123, 121, 83, 44, 14, 14, 0, -60, -2, 58, 86, -61, 9, 40, -57, 41, -122, 87, -93, 93, -10, -39, -125, 19, 19, 92, 93, 102, 124, 110, 110, -127, 106, -15, 68, 120, 106, -116, -53, 1, 14, 0, 75, 44, 107, 99, 7, -122, 95, -76, 84, 0, -103, 107, 63, -19, 65, 99, -58, 99, 48, 90, 69, -20, 85, 88, 104, -123, 66, -123, 94, 72, -105, 89, 71, 107, -103, -20, 68, 110, 21, 19, 37, -94, 14, -127, 3, 41, -110, 109, 75, 50, 41, 1, 111, 111, -58, 51, 27, 88, 85, -118, 115, 126, -79, 30, -85, -92, 51, -125, -8, 1, -118, -118, 0, 5, -96, -77, 106, -83, 57, -76, 104, 41, 32, 71, 49, 91, -58, 33, 84, 85, 106, 0, 104, 14, -3, 90, -81, -81, -83, -76, 0, 107, 87, 68, 109, -87, 68, 106, 98, 100, 68, 63, -9, -125, 126, -49, 126, 100, -39, -112, 15, 104, -6, -32, 86, -117, 100, 104, 118, 14, 104, 104, 80, 24, 39, 80, 39, 39, 100, 66, 106, 121, 90, 119, 84, 73, 38, -3, 6, 37, 63, Byte.MAX_VALUE, -115, 61, 90, 63, -60, 87, 121, 34, -30, -120, -125, 104, -60, 5, 78, 34, 21, 96, -120, 66, Byte.MAX_VALUE, -124, -3, 13, 58, -3, 14, 14, 35, 58, -125, 101, 0, 82, 14, -104, 0, 17, 89, 58, -99, -3, 119, -60, -96, 78, -115, -127, -127, 107, 59, -76, -76, 72, 126, -123, 126, 126, 104, 104, 104, 104, Byte.MIN_VALUE, Byte.MIN_VALUE, 32, 92, Byte.MAX_VALUE, 69, 100, 100, 111, 38, 23, 16, 66, 18, -16, 109, -13, Byte.MAX_VALUE, 107, 38, 38, -113, 75, -127, -20, -122, 104, 79, 35, 14, 63, -80, 90, 79, -124, 51, 79, -120, 57, 85, 98, 117, 101, 123, -72, 120, 79, 37, -123, 95, -120, 71, 49, 0, -94, 49, 61, -22, 85, 0, -6, 33, -123, 49, -121, -94, 111, 90, -122, -125, 38, -126, 15, 125, 90, 98, 80, -20, 102, 80, 85, -124, -13, 38, 61, -124, -123, 17, 61, 39, 35, -123, 80, -123, 126, -63, -78, 88, 10, 4, 91, 91, 14, 104, -90, 12, 60, 68, 92, -127, 12, 12, 32, 59, 62, 62, 93, -6, 57, 54, -123, 79, -66, 85, 83, 107, 65, -56, -56, -122, 39, 84, -127, 84, 85, 103, 110, 78, -111, -122, -101, 111, 15, -123, 38, 53, 36, 58, 74, -4, -39, Byte.MAX_VALUE, 93, -33, 79, 87, 91, -110, 121, -112, 86, 123, 58, 50, 84, -24, 33, 44, -117, 104, 10, 34, -56, -15, -105, 122, 101, -104, 8, -30, -46, -124, -23, 21, 67, 121, 121, -117, 56, -85, 49, -121, 63, 57, 104, 71, 110, 90, -127, -16, 92, 112, -40, 104, 90, 85, 14, 110, -1, 96, -111, 19, 125, 95, 41, -15, 85, 85, 59, 0, -111, 74, 0, 0, 104, 38, -43, 98, 39, 85, -91, 118, -99, -52, -123, 90, -85, 66, 125, 67, 114, -105, 107, 118, 85, 89, 41, 23, 121, 3, 101, 126, 126, 38, -126, 104, 93, 104, -81, 126, -112, 95, 38, 88, -27, 117, 79, -108, 70, 65, 100, 5, 85, -5, 113, -16, -107, 61, 126, 77, 0, 69, 100, -112, 27, -46, 114, -66, 109, 109, -116, -66, -97, -2, 113, 111, 111, -122, 85, -127, -81, 64, 112, 114, -1, 64, 21, 104, -4, 126, 85, 11, -67, 104, 118, 50, 5, 37, -98, 84, 84, 110, -87, -84, 124, 49, 104, 113, -87, -35, -46, 77, 6, 96, -4, 84, -56, 49, 85, 11, 61, 53, 33, -62, -87, -127, 105, 105, 92, 60, -6, -105, 65, -74, 85, -111, -97, -40, 1, 40, 75, 109, 32, -120, 78, 112, -121, -127, -81, 111, Byte.MIN_VALUE, 115, 5, 100, 64, 64, -36, 79, 47, 121, Byte.MAX_VALUE, 85, 33, 91, 80, 126, 77, 19, -111, -125, 109, 65, -117, 24, 37, 61, 11, -1, 24, 58, 105, 76, -46, 114, 88, -115, 67, 125, 46, 2, 11, 92, 27, 15, Byte.MAX_VALUE, -111, 64, -2, 40, 11, 96, 80, 96, -4, 80, 111, 111, 14, 96, 124, -56, 14, 104, -59, 109, -112, 59, 106, 77, 36, -52, -5, -108, 111, 2, -1, 100, -28, 93, 114, -111, 23, -88, 86, 0, -98, -98, 6, 100, 114, 52, 52, -6, 102, 50, 125, 0, 102, -117, 44, 57, 90, -112, -124, 109, 26, 55, 37, 20, -112, 112, 90, Byte.MAX_VALUE, 109, 101, -87, 26, 61, 106, 48, 95, -4, 58, 125, 114, 37, -55, 0, 35, 49, -13, -53, -51, 109, 38, 24, 24, 24, 53, -56, -40, Byte.MAX_VALUE, 69, 5, 45, -67, 105, 6, 119, -118, 126, -112, -85, -24, 50, -121, 106, -72, 33, 80, 72, -67, -4, -127, 109, 1, -110, 63, -123, -72, -116, -6, -6, 111, -10, -83, -111, 110, 44, -123, 69, 37, -6, 
    4, -16, 11, 17, 46, -123, 123, 38, -85, -10, -98, 126, -2, 37, 106, 106, 85, 85, 58, 59, 76, 74, 74, 52, -115, 27, 89, 83, 86, -91, -91, 39, 112, -6, 87, -56, -120, -83, 84, 24, -115, 40, 87, 59, 38, -15, 104, 41, 87, -46, 58, 59, -120, 50, 112, -123, 80, 124, 70, 0, 0, 4, 26, -107, 90, 107, 5, -65, 104, -81, 27, -114, 123, -62, -93, 2, -81, 100, 103, 86, 38, 111, 106, 57, -61, 2, -61, 74, -6, -53, -93, -62, 40, -123, -28, -28, 100, 101, 20, -123, 92, -99, 110, 90, -79, -57, 37, 0, 32, -61, -93, 123, 96, 9, 32, -127, -117, 124, 35, 104, -85, -48, -60, 60, -115, 94, 94, -116, 96, 113, 84, -125, 95, 41, 15, 85, 37, 83, -122, 96, -125, -3, Byte.MIN_VALUE, -3, 126, 70, -6, -126, 67, 23, -126, -127, 39, -111, -127, -98, 92, 62, 126, 44, 96, -125, -122, 111, -125, 100, -76, 85, 126, 85, 85, 47, 57, 4, 121, 121, 121, 77, 39, -87, -65, 121, -87, 84, 56, 15, 65, -119, 33, 104, 104, 32, 121, 85, 100, 40, 40, 23, 124, 3, -90, -7, 6, 56, 13, 90, 0, 116, 75, Byte.MAX_VALUE, 66, -110, 111, -103, 112, 37, 30, 38, 102, -104, 84, 75, -4, -123, 30, -96, -62, 26, 101, -33, 8, 35, 10, 85, -4, 8, -126, 111, 90, 5, 85, -15, -123, -112, 77, 75, Byte.MIN_VALUE, 37, -127, 100, -99, 15, 34, -117, 81, 121, 113, -115, 6, 0, -125, -124, 114, 78, -50, 104, 41, -119, -8, 70, 71, -110, -127, -8, 90, -19, 6, 5, 120, 72, -104, -74, -3, 0, 121, 10, 19, -123, -16, 59, -7, -15, 58, 102, -125, 124, 101, 10, 115, -40, 104, 63, 38, -15, 115, -53, -53, 36, 99, 40, 4, -56, 41, -126, 90, 124, -120, 58, 31, -51, -39, -95, 90, -19, 8, -22, -81, -50, 104, -4, -117, 75, 6, 75, 75, 5, -117, -113, -21, Byte.MIN_VALUE, 7, 7, 63, -40, -117, -96, -78, -125, -5, 109, -93, -34, 20, 120, -4, 117, -96, 39, -122, -124, -35, 100, 100, 5, 44, 74, 117, -109, 38, 90, 27, 126, -11, -118, 39, -50, 20, 38, 103, -123, -96, 76, 76, -123, -1, 3, -32, -125, 96, -123, -102, 70, 17, 66, -82, 124, -72, 67, 76, -115, 0, -117, -123, -75, 99, 83, 57, 90, -46, 59, -123, -124, -127, 126, 87, 0, 2, 75, -28, 55, 20, 99, 64, -125, 37, 56, 56, -106, -63, -78, -117, -16, -125, 104, 68, 32, -28, 78, 90, 30, 87, -123, 84, -114, -118, 69, -97, Byte.MIN_VALUE, 71, -113, -8, -72, 6, 112, 34, -36, -116, 35, 41, 103, -115, 21, 124, 21, -114, 104, 125, -72, 51, 75, -91, 55, 9, -125, 124, 60, 0, 78, 0, -16, 35, -82, -56, -62, 90, 7, -117, 60, 83, 2, -116, 113, -111, 36, 45, -122, 71, 12, -50, -39, -28, -109, 83, 85, 87, 37, 65, 26, -74, 1, 94, 76, 40, 66, -8, 63, Byte.MAX_VALUE, 108, -127, 61, -5, -6, -22, 41, -4, -80, 103, 99, -115, -124, -84, 103, 104, Byte.MIN_VALUE, 32, 68, -71, 23, 59, 35, 19, -122, 64, -105, 73, 100, 55, -110, -117, 65, -4, -107, 7, 40, -122, -76, 104, 0, 0, -123, 58, 0, 32, 26, 105, -16, 112, -28, -125, -124, -118, -125, 111, 100, -98, -48, 119, 16, -15, 80, 23, -110, 96, -58, 64, -36, 30, 39, -111, -125, 104, 47, 118, 15, 101, 124, 100, 117, 3, 95, 99, 83, -108, 42, -127, 64, -95, -95, 37, -112, -118, -118, 71, -122, 126, 99, 39, 48, 35, 90, 112, -4, 103, 30, 124, 11, 102, 0, 0, -93, 81, 0, 32, 96, -77, -111, 99, -123, 101, 0, 109, 6, 40, 42, 126, 55, 55, 20, 41, 15, 9, 55, 26, -108, 102, 60, -123, -30, 90, -125, 51, 3, 95, 87, 48, 25, -121, -57, 77, 45, -28, 32, 57, -122, 60, -21, 8, 56, -87, 61, 121, -123, 76, 86, -4, 81, -3, 36, -125, 77, 90, -28, 5, 30, 124, 96, 84, 79, 35, 100, 35, 41, 7, 102, 18, 51, 59, 30, 32, 56, -83, 39, 44, 109, 19, 87, 43, 63, -6, 0, 125, -85, 37, 38, 105, -76, -73, -77, -111, 92, 121, 124, 44, 60, 122, 53, -49, -53, -124, 107, 107, -123, 5, -123, 38, -67, 32, -104, 41, 56, 72, Byte.MIN_VALUE, -53, -53, -127, 32, -106, 16, -124, 106, 101, -4, -83, -127, 107, -115, -12, -12, -91, 75, 87, 18, -98, 117, 104, 87, 37, 37, 22, -46, 118, 49, 112, 125, 56, -106, -39, -81, -124, 126, -116, -123, -127, 26, 58, 58, 35, 20, 35, -115, 89, -83, 12, 90, -2, 20, 55, -113, -117, 75, -7, 0, 75, -39, 0, 90, -76, -123, 52, 57, 112, -2, -119, -125, 93, 109, -89, -96, -76, 32, -113, 120, -7, 47, -127, 59, 27, 26, 1, -120, 124, -122, 0, -101, 58, 90, 96, -15, 20, 5, -117, 103, 0, 0, 51, -60, -127, 58, -113, 60, 92, -93, 22, -117, 103, 17, 103, 103, -40, Byte.MIN_VALUE, -127, 18, -34, 96, -123, -122, -96, -53, -125, 90, -82, 59, 7, 51, -76, -71, 10, -123, -21, 101, -89, 22, 41, 117, -39, 87, -114, Byte.MIN_VALUE, -71, -95, 112, 107, -76, -78, -4, -4, 117, -4, -93, 24, 107, -63, 9, 32, 0, 52, 90, 35, -73, -114, -60, -87, 117, -75, 59, -108, -87, 65, 76, 59, -123, -115, -93, -87, -47, -123, 107, 107, -6, 91, -9, -9, 40, -109, 110, 92, 92, 100, 93, 8, 84, -124, 20, 65, -104, -56, 84, 102, 96, 27, 89, -60, 41, 96, 63, 95, -123, -56, 36, -118, 37, 76, 111, 38, 5, 7, 95, -123, 76, -85, -36, 14, 33, 65, 76, 104, 93, 24, -108, 100, 75, -6, 71, 89, 76, -123, -120, 101, 86, Byte.MAX_VALUE, 
    41, 2, -2, 2, -124, 63, -125, 90, 41, -83, 4, 93, 85, -123, 0, -2, -113, 104, -85, 14, -87, 97, 89, 81, 97, -6, -6, 125, 18, -115, 125, -92, 85, 8, 8, -93, 111, -93, 80, 71, 38, -83, -126, 121, 90, -126, 111, -125, -123, 83, 66, 71, -121, 38, 106, 90, -3, 126, 4, -113, 126, 73, -113, 49, 91, -113, -113, 0, -81, -113, 41, 73, -120, 84, 90, 113, 84, 39, -18, 110, 0, -20, -6, 126, -65, -72, -18, -15, -79, 90, 84, 96, -120, -120, -40, -109, Byte.MIN_VALUE, 104, -79, 34, -125, 0, 104, -6, -123, 83, -13, 83, 126, 104, 54, 111, 84, -127, -127, -127, Byte.MIN_VALUE, 14, 58, -118, -123, 119, 90, 66, 98, 95, 91, -95, 93, 112, 58, 63, 95, 32, 39, -99, 101, 39, 79, -56, -56, 74, 46, 84, 114, 11, 4, 120, 8, -122, -97, 38, 121, 84, 114, 107, 33, 96, -55, Byte.MAX_VALUE, 86, 0, 121, 104, 85, 91, 100, 120, 84, 59, 37, -117, 101, 117, 19, 92, 107, 96, -18, -125, -80, 46, 114, -63, -105, -53, 15, 95, Byte.MAX_VALUE, Byte.MIN_VALUE, -111, 39, 39, 111, 85, 67, -65, -40, 33, 81, 70, 2, 19, 4, -121, -78, 87, -99, 66, 34, 39, 125, 125, 96, -98, 95, -123, -121, -123, -121, 33, 69, 119, 100, 92, 88, 31, 89, 103, 114, 126, 112, 112, -114, 78, 87, -97, -121, 85, 38, 38, 21, -127, -127, 84, 112, 126, 114, 36, 78, 65, -113, -107, -121, -7, -120, 85, 32, 104, 85, 1, -6, -120, 107, -125, 104, -123, 3, 78, -81, -84, 33, 79, 89, 117, 0, 96, 99, 104, 86, 114, 126, 90, -56, -98, 115, 107, 72, 80, 41, 1, -65, -48, -125, -29, 3, 101, 46, 102, 56, -7, -55, -123, -112, 95, 82, 33, -6, 114, 100, -87, 2, -127, 107, -62, 117, 90, 114, -51, -53, 49, -40, Byte.MAX_VALUE, 126, 10, 112, 96, 43, -83, 87, 58, -120, -12, -81, 74, 85, 104, -127, -99, 57, 103, 103, -87, 59, 69, 89, 85, 0, Byte.MIN_VALUE, 114, 104, 88, 92, 28, -123, 10, -120, 0, 2, 103, 17, 41, -61, 98, 102, -7, -87, 36, -99, 67, 0, 100, Byte.MIN_VALUE, -76, 85, 15, -78, -47, -73, -75, 31, 60, 100, 41, 113, 113, 4, 103, 99, -118, 121, 115, 41, 26, 26, 38, -67, 29, 29, 64, -107, 24, 95, 126, 106, -1, 86, -15, 113, 110, 18, -16, 8, 90, -80, 85, 4, 0, -27, 66, 48, -125, -92, -92, -116, -55, 125, 79, 74, 34, -127, -6, 107, -111, 79, 69, -92, 0, -61, -78, -51, 62, 80, -53, 12, 124, -120, 41, 0, -120, 12, 6, -9, 76, 76, 60, -87, 3, -127, -118, 14, 94, 68, 48, 30, 0, 115, 5, -4, 111, 93, 84, 30, 32, 98, 83, 84, -112, -87, 92, 23, 54, 12, 34, -127, 63, Byte.MAX_VALUE, -66, 38, 104, 102, 100, 72, 104, -6, 41, 94, 66, 0, 0, 0, -94, 32, -66, 101, -69, -58, 49, 112, 113, 85, 11, -122, 70, 95, 102, 87, 41, 46, -23, 41, 122, 91, 40, -120, 40, 50, 8, 50, -127, 113, 114, 101, -127, -65, -15, 14, 79, 4, 84, 86, 104, 90, -48, 85, 121, 99, 71, 98, -125, 102, -81, 19, 77, -63, Byte.MIN_VALUE, 109, -123, -111, 114, 0, 71, 41, 119, 0, -87, -76, -125, 37, 50, -3, 87, -48, 89, 87, -103, -10, 58, 85, -123, 104, 89, -126, -126, 101, 10, -53, 104, 103, 25, 39, -36, 14, 75, 104, -80, 19, -40, -95, 115, 8, 83, -122, 57, 48, 101, 90, 20, -52, 93, -6, 8, 16, -65, Byte.MIN_VALUE, 50, -127, 86, 110, 37, -117, 75, -105, -48, -34, 109, 63, -123, 124, 30, 58, 102, 0, -118, 5, 90, -125, 20, 76, -108, -49, -120, 14, -79, 31, 124, 49, -120, -18, 39, 104, 30, 102, 37, -118, 39, -123, -79, -63, 0, 15, 124, 0, 16, 126, -123, -78, 70, -76, 0, -87, -93, 109, 41, 98, 44, -6, -125, -6, -87, 38, 88, -125, -87, 52, 103, -111, 19, 12, 89, 20, 12, 19, -112, 40, 104, 48, 95, -120, -125, -107, 80, 80, 111, 82, 100, -109, -91, 126, -87, 0, 101, 115, 98, -123, 38, 96, 116, -75, 82, -122, 118, 107, 61, 106, 80, -99, 17, 3, 3, -116, 104, -113, -103, -123, 2, 69, 25, 25, 124, -122, -118, 97, 76, -115, 111, 117, 0, 107, 0, 0, 126, 99, 10, -125, 59, -6, -2, 122, 107, -124, -116, 98, 56, 56, -125, 11, 68, -96, -120, 20, 12, 90, 19, 69, -115, 85, -92, -79, 87, -6, 81, -114, 93, 51, -84, 3, 68, 110, -63, 9, -78, -16, -116, 63, 96, 71, 119, 5, 102, 14, 63, 112, -112, -123, 12, 11, 99, -125, 124, 78, -28, -126, 66, -127, 89, -72, -100, 34, 28, 86, 50, -61, 84, -87, -87, 71, 28, 107, 56, -117, 64, 90, -97, -113, 41, 32, 83, 80, -120, -87, 19, 0, 0, 61, -123, -94, -85, -125, -113, -80, -87, -6, 19, -74, 49, -4, -59, -6, -6, 23, 108, 32, 61, 85, -22, 9, -8, Byte.MAX_VALUE, -111, 37, 119, -127, -87, -16, 111, 111, 102, Byte.MAX_VALUE, 70, 60, 94, 79, 63, 85, 83, 37, 126, -6, 112, 100, 111, 5, 104, 28, 12, 45, -88, -6, -113, 90, -108, -94, -110, -110, Byte.MIN_VALUE, 105, 86, 86, 36, 2, -36, 78, 109, -76, 114, -122, 104, 40, -117, -117, 37, -105, -84, -3, -123, -115, 99, -117, 11, -123, -113, -112, 18, -16, 68, 41, 32, 0, 0, -125, 107, 85, 72, -4, 0, -98, 0, -73, -123, 0, 0, 0, 0, -16, 32, 0, 75, 28, 76, 103, 90, 80, 80, 73, -126, -111, -125, 104, 37, 85, 100, 100, 43, 126, 46, 111, 115, 124, 83, 15, 14, 102, Byte.MIN_VALUE, 95, 21, 101, -95, 100, 12, Byte.MAX_VALUE, -98, -122, -98, 49, 87, 90, 75, -127, -125
    };
    public static final int[] f15193r = {R.attr.download_bg_line_color, R.attr.download_bg_line_width, R.attr.download_line_color, R.attr.download_line_width, R.attr.download_text_color, R.attr.download_text_size};
    public static final int[] f15194s = {R.attr.play_bg_line_color, R.attr.play_bg_line_width, R.attr.play_line_color, R.attr.play_line_width};
    public static final int[] f15195t = {1, 2, 2, 2, 2, 3, 3, 4, 4, 5, 6, 6, 6, 7, 8, 8};
    public static final int[] f15196u = {-1, 8000, 16000, 32000, -1, -1, 11025, 22050, 44100, -1, -1, 12000, 24000, 48000, -1, -1};
    public static final int[] f15197v = {64, 112, 128, 192, 224, 256, 384, 448, 512, 640, 768, 896, 1024, 1152, 1280, 1536, 1920, 2048, 2304, 2560, 2688, 2816, 2823, 2944, 3072, 3840, 4096, 6144, 7680};
    public static final String[] f15200y = {"id", TimeDisplaySetting.TIME_DISPLAY_SETTING, "du", "$st_fl", "ds", "pn", "_$sp"};
    public static final char[] F = {'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '+', '/', '='};
    public static final byte[] G = {-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 62, -1, -1, -1, 63, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, -1, -1, -1, -1, -1, -1, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, -1, -1, -1, -1, -1, -1, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1};
    public static final byte[] H = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};

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

    public static String B(String str) {
        try {
            return new String(qi.b.f15437d.a(str), qi.c.f15439a);
        } catch (Exception unused) {
            return str;
        }
    }

    public static void C() {
        lh.b.d("rc params is null, not cpra");
    }

    public static void D(Context context, int i, String str, String str2) {
        e.b(context).c(new h2(context, i, str, str2), 0);
    }

    public static String E(InputStream inputStream) {
        ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
        try {
            byte[] bArr = new byte[1024];
            while (true) {
                int read = inputStream.read(bArr);
                if (read != -1) {
                    byteArrayOutputStream.write(bArr, 0, read);
                } else {
                    return byteArrayOutputStream.toString(Key.STRING_CHARSET_NAME);
                }
            }
        } finally {
            F(byteArrayOutputStream);
        }
    }

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

    public static void G(File file, String str) {
        FileOutputStream fileOutputStream = null;
        try {
            FileOutputStream fileOutputStream2 = new FileOutputStream(file);
            try {
                fileOutputStream2.write(str.getBytes(Key.STRING_CHARSET_NAME));
                fileOutputStream2.flush();
                F(fileOutputStream2);
            } catch (FileNotFoundException | IOException unused) {
                fileOutputStream = fileOutputStream2;
                F(fileOutputStream);
            } catch (Throwable th2) {
                th = th2;
                fileOutputStream = fileOutputStream2;
                F(fileOutputStream);
                throw th;
            }
        } catch (FileNotFoundException | IOException unused2) {
        } catch (Throwable th3) {
            th = th3;
        }
    }

    public static byte[] H(PublicKey publicKey, byte[] bArr) {
        try {
            if (publicKey != null) {
                Cipher cipher = Cipher.getInstance("RSA/ECB/OAEPWITHSHA-1ANDMGF1PADDING");
                cipher.init(1, publicKey);
                return cipher.doFinal(bArr);
            }
            throw new UnsupportedEncodingException("The loaded public key is null");
        } catch (UnsupportedEncodingException | InvalidKeyException | NoSuchAlgorithmException | BadPaddingException | IllegalBlockSizeException | NoSuchPaddingException unused) {
            return new byte[0];
        }
    }

    public static byte[] I(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 be.f J() {
        boolean z10;
        StatFs statFs;
        String externalStorageState = Environment.getExternalStorageState();
        if (!"mounted".equals(externalStorageState) && !"mounted_ro".equals(externalStorageState)) {
            z10 = false;
        } else {
            z10 = true;
        }
        if (!z10) {
            return null;
        }
        File externalStorageDirectory = Environment.getExternalStorageDirectory();
        be.f fVar = new be.f();
        fVar.f3391a = externalStorageDirectory;
        long blockSize = new StatFs(externalStorageDirectory.getAbsolutePath()).getBlockSize();
        fVar.f3392b = statFs.getBlockCount() * blockSize;
        fVar.f3393c = statFs.getAvailableBlocks() * blockSize;
        return fVar;
    }

    public static String K(Context context) {
        gl.b.a(context).getClass();
        if (!gl.b.f10140b) {
            return null;
        }
        String str = gl.b.f10146h;
        if (str != null) {
            return str;
        }
        gl.b.b(0, null);
        if (gl.b.f10141c == null) {
            Context context2 = gl.b.f10139a;
            gl.b.f10141c = new gl.c(gl.b.i, 0);
            context2.getContentResolver().registerContentObserver(Uri.parse("content://com.vivo.vms.IdProvider/IdentifierId/OAID"), true, gl.b.f10141c);
        }
        return gl.b.f10146h;
    }

    public static String L(Context context, String str) {
        String str2 = "";
        if (TextUtils.isEmpty(str)) {
            return "";
        }
        byte[] o10 = c5.a.o(context);
        if (!TextUtils.isEmpty(str) && str.length() >= 32 && o10.length > 0) {
            try {
                SecretKeySpec secretKeySpec = new SecretKeySpec(o10, "AES");
                Cipher cipher = Cipher.getInstance("AES/CBC/PKCS5Padding");
                String A2 = le.c.A(str);
                String N = le.c.N(str);
                if (!TextUtils.isEmpty(A2) && !TextUtils.isEmpty(N)) {
                    cipher.init(2, secretKeySpec, new IvParameterSpec(c5.a.p(A2)));
                    str2 = new String(cipher.doFinal(c5.a.p(N)), Key.STRING_CHARSET_NAME);
                }
                u6.a.e("AesCbc", "iv or enData is null");
            } catch (UnsupportedEncodingException | IllegalArgumentException | InvalidAlgorithmParameterException | InvalidKeyException | NoSuchAlgorithmException | BadPaddingException | IllegalBlockSizeException | NoSuchPaddingException unused) {
                u6.a.b("AesCbc", "aes cbc decrypter data error");
            }
        }
        return str2;
    }

    public static void M(Context context) {
        if (!cl.d.M(context)) {
            return;
        }
        e.b(context).c(new e1(context, System.currentTimeMillis(), f5.i(context)), 0);
    }

    public static void N(Context context, ud.f fVar) {
        try {
            if (ce.h.b(context, fVar.f16922a).e("Common_ta_enable")) {
                D.invoke(f15201z, Boolean.TRUE);
            } else {
                D.invoke(f15201z, Boolean.FALSE);
            }
        } catch (Exception e10) {
            be.a.c("OpenConfig", "checkStatStatus exception: " + e10.toString());
        }
    }

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

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

    public static j1.g Q(j1.c0... c0VarArr) {
        return new j1.g(c0VarArr, 0);
    }

    public static void R(Context context, ud.f fVar) {
        if (!TextUtils.isEmpty(fVar.f16924c)) {
            ae.f a10 = ae.f.a();
            String str = fVar.f16924c;
            a10.getClass();
            ae.f.d(str, fVar.f16922a, "11", PushConstants.PUSH_TYPE_NOTIFY);
        }
        if (!E) {
            return;
        }
        N(context, fVar);
        String str2 = fVar.f16924c;
        if (str2 != null) {
            try {
                B.invoke(A, context, str2);
            } catch (Exception e10) {
                be.a.c("OpenConfig", "reportQQ exception: " + e10.toString());
            }
        }
    }

    public static String S(String str) {
        try {
            return URLDecoder.decode(str, "utf-8");
        } catch (UnsupportedEncodingException e10) {
            throw new RuntimeException("Error decoding url", e10);
        }
    }

    public static byte[] T(String str) {
        byte[] bArr;
        byte b10;
        int length = str.length();
        int i = 0;
        while (true) {
            int length2 = str.length();
            bArr = G;
            if (i >= length2) {
                break;
            }
            char charAt = str.charAt(i);
            if (charAt > 255 || bArr[charAt] < 0) {
                length--;
            }
            i++;
        }
        int i2 = (length / 4) * 3;
        int i10 = length % 4;
        if (i10 == 3) {
            i2 += 2;
        }
        if (i10 == 2) {
            i2++;
        }
        byte[] bArr2 = new byte[i2];
        int i11 = 0;
        int i12 = 0;
        int i13 = 0;
        for (int i14 = 0; i14 < str.length(); i14++) {
            char charAt2 = str.charAt(i14);
            if (charAt2 > 255) {
                b10 = -1;
            } else {
                b10 = bArr[charAt2];
            }
            if (b10 >= 0) {
                i13 += 6;
                i12 = (i12 << 6) | b10;
                if (i13 >= 8) {
                    i13 -= 8;
                    bArr2[i11] = (byte) ((i12 >> i13) & 255);
                    i11++;
                }
            }
        }
        if (i11 != i2) {
            return new byte[0];
        }
        return bArr2;
    }

    public static String U(byte[] bArr, boolean z10) {
        char[] cArr;
        if (z10) {
            cArr = f15185e;
        } else {
            cArr = f15184d;
        }
        char[] cArr2 = new char[bArr.length << 1];
        int i = 0;
        for (byte b10 : bArr) {
            int i2 = i + 1;
            cArr2[i] = cArr[(b10 & 240) >>> 4];
            i = i2 + 1;
            cArr2[i2] = cArr[b10 & 15];
        }
        return new String(cArr2);
    }

    public static String V(byte[] bArr, boolean z10) {
        String l02 = l0(bArr);
        StringBuffer stringBuffer = new StringBuffer();
        int i = 0;
        while (i < l02.length()) {
            stringBuffer.append("\t");
            int i2 = i + 64;
            if (i2 >= l02.length()) {
                stringBuffer.append(l02.substring(i));
                if (z10) {
                    stringBuffer.append(" )");
                }
            } else {
                stringBuffer.append(l02.substring(i, i2));
                stringBuffer.append("\n");
            }
            i = i2;
        }
        return stringBuffer.toString();
    }

    public static final DialogActionButton W(g.e getActionButton, int i) {
        DialogActionButton[] actionButtons;
        kotlin.jvm.internal.i.g(getActionButton, "$this$getActionButton");
        androidx.constraintlayout.motion.utils.a.k(i, "which");
        DialogActionButtonLayout buttonsLayout = getActionButton.f9770f.getButtonsLayout();
        if (buttonsLayout != null && (actionButtons = buttonsLayout.getActionButtons()) != null) {
            if (i != 0) {
                DialogActionButton dialogActionButton = actionButtons[i - 1];
                if (dialogActionButton != null) {
                    return dialogActionButton;
                }
            } else {
                throw null;
            }
        }
        throw new IllegalStateException("The dialog does not have an attached buttons layout.");
    }

    public static SharedPreferences X(Context context) {
        if (context != null) {
            return context.getSharedPreferences("umeng_general_config", 0);
        }
        return null;
    }

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

    public static HashMap Z(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(NotificationCompat.CATEGORY_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 a0(String str) {
        try {
            Class<?> cls = Class.forName("android.os.SystemProperties");
            return (String) cls.getMethod("get", String.class, String.class).invoke(cls, str, "");
        } catch (Exception e10) {
            e10.printStackTrace();
            return "";
        }
    }

    public static boolean b0() {
        String str;
        boolean z10;
        String str2 = "";
        if (!(!TextUtils.isEmpty(a0("ro.build.version.emui")))) {
            str = "";
        } else {
            str = a0("ro.build.version.emui");
        }
        if (str.contains("EmotionUI_3.0")) {
            return true;
        }
        if (!TextUtils.isEmpty(a0("ro.build.version.emui"))) {
            str2 = a0("ro.build.version.emui");
        }
        if (!"EmotionUI 3".equals(str2) && !str2.contains("EmotionUI_3.1")) {
            z10 = false;
        } else {
            z10 = true;
        }
        if (z10) {
            return true;
        }
        return false;
    }

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

    public static boolean d0() {
        String str;
        if (!TextUtils.isEmpty(a0("ro.miui.ui.version.name"))) {
            str = a0("ro.miui.ui.version.name");
        } else {
            str = "";
        }
        if (!str.isEmpty()) {
            try {
                if (Integer.valueOf(str.substring(1)).intValue() >= 6) {
                    return true;
                }
            } catch (NumberFormatException unused) {
            }
        }
        return false;
    }

    public static boolean e0(SQLiteDatabase sQLiteDatabase, ml.e eVar) {
        boolean z10;
        Exception e10;
        Cursor cursor;
        int i;
        Object obj = eVar.f12854a;
        Serializable serializable = eVar.f12855b;
        String str = (String) obj;
        Cursor cursor2 = null;
        if (str != null && sQLiteDatabase != null) {
            try {
                if (sQLiteDatabase.isOpen()) {
                    try {
                        cursor = sQLiteDatabase.rawQuery("SELECT COUNT(*) FROM sqlite_master WHERE type = ? AND name = ?", new String[]{"table", str});
                        try {
                        } catch (Exception e11) {
                            e10 = e11;
                            xf.d.Z(e10);
                            if (cursor != null) {
                                cursor.close();
                            }
                            i = 0;
                            str = cursor;
                            if (i > 0) {
                            }
                            z10 = false;
                            if (!z10) {
                            }
                        }
                    } catch (Exception e12) {
                        e10 = e12;
                        cursor = null;
                    } catch (Throwable th2) {
                        th = th2;
                        if (cursor2 != null) {
                            cursor2.close();
                        }
                        throw th;
                    }
                    if (cursor.moveToFirst()) {
                        i = cursor.getInt(0);
                        if (i > 0) {
                            z10 = true;
                            if (!z10) {
                                return true;
                            }
                            Cursor rawQuery = sQLiteDatabase.rawQuery("select * from " + ((String) eVar.f12854a), null);
                            if (rawQuery == null) {
                                return false;
                            }
                            try {
                                int size = ((List) serializable).size();
                                if (size != rawQuery.getColumnCount()) {
                                    return true;
                                }
                                for (int i2 = 0; i2 < size; i2++) {
                                    String columnName = rawQuery.getColumnName(i2);
                                    int size2 = ((List) serializable).size();
                                    int i10 = 0;
                                    while (true) {
                                        if (i10 < size2) {
                                            if (((ab.c) ((List) serializable).get(i10)).f600a.equals(columnName)) {
                                                break;
                                            }
                                            i10++;
                                        } else {
                                            i10 = -1;
                                            break;
                                        }
                                    }
                                    if (i10 == -1) {
                                        return true;
                                    }
                                }
                                return false;
                            } finally {
                                rawQuery.close();
                            }
                        }
                    }
                }
            } catch (Throwable th3) {
                th = th3;
                cursor2 = str;
            }
        }
        z10 = false;
        if (!z10) {
        }
    }

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

    public static boolean g0(String str) {
        if (!str.equals("GET") && !str.equals("HEAD")) {
            return true;
        }
        return false;
    }

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

    public static long h0(f2.p pVar, int i, int i2) {
        boolean z10;
        boolean z11;
        pVar.x(i);
        if (pVar.f9560c - pVar.f9559b < 5) {
            return -9223372036854775807L;
        }
        int b10 = pVar.b();
        if ((8388608 & b10) != 0 || ((2096896 & b10) >> 8) != i2) {
            return -9223372036854775807L;
        }
        if ((b10 & 32) != 0) {
            z10 = true;
        } else {
            z10 = false;
        }
        if (z10 && pVar.m() >= 7 && pVar.f9560c - pVar.f9559b >= 7) {
            if ((pVar.m() & 16) == 16) {
                z11 = true;
            } else {
                z11 = false;
            }
            if (z11) {
                byte[] bArr = new byte[6];
                pVar.a(bArr, 0, 6);
                return ((bArr[0] & 255) << 25) | ((bArr[1] & 255) << 17) | ((bArr[2] & 255) << 9) | ((bArr[3] & 255) << 1) | ((bArr[4] & 255) >> 7);
            }
        }
        return -9223372036854775807L;
    }

    public static void i0(MediaFormat mediaFormat, List list) {
        for (int i = 0; i < list.size(); i++) {
            mediaFormat.setByteBuffer(ac.d.f("csd-", i), ByteBuffer.wrap((byte[]) list.get(i)));
        }
    }

    public static String j0(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 e10) {
            e10.toString();
            str3 = null;
        }
        if (str3 == null) {
            return "";
        }
        return str3;
    }

    public static void k0(Throwable th2) {
        if (!(th2 instanceof VirtualMachineError)) {
            if (!(th2 instanceof ThreadDeath)) {
                if (!(th2 instanceof LinkageError)) {
                    return;
                }
                throw ((LinkageError) th2);
            }
            throw ((ThreadDeath) th2);
        }
        throw ((VirtualMachineError) th2);
    }

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

    public static String l0(byte[] bArr) {
        ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
        for (int i = 0; i < (bArr.length + 2) / 3; i++) {
            short[] sArr = new short[3];
            short[] sArr2 = new short[4];
            for (int i2 = 0; i2 < 3; i2++) {
                int i10 = (i * 3) + i2;
                if (i10 < bArr.length) {
                    sArr[i2] = (short) (bArr[i10] & 255);
                } else {
                    sArr[i2] = -1;
                }
            }
            sArr2[0] = (short) (sArr[0] >> 2);
            short s10 = sArr[1];
            if (s10 == -1) {
                sArr2[1] = (short) ((sArr[0] & 3) << 4);
            } else {
                sArr2[1] = (short) (((sArr[0] & 3) << 4) + (s10 >> 4));
            }
            short s11 = sArr[1];
            if (s11 == -1) {
                sArr2[3] = 64;
                sArr2[2] = 64;
            } else {
                short s12 = sArr[2];
                if (s12 == -1) {
                    sArr2[2] = (short) ((s11 & 15) << 2);
                    sArr2[3] = 64;
                } else {
                    sArr2[2] = (short) (((s11 & 15) << 2) + (s12 >> 6));
                    sArr2[3] = (short) (sArr[2] & 63);
                }
            }
            for (int i11 = 0; i11 < 4; i11++) {
                byteArrayOutputStream.write("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(sArr2[i11]));
            }
        }
        return new String(byteArrayOutputStream.toByteArray());
    }

    public static Class m(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;
            if (typeVariable.getBounds().length == 0) {
                return Object.class;
            }
            return m(typeVariable.getBounds()[0]);
        }
        throw new IllegalArgumentException("not supported: " + type.getClass());
    }

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

    public static String o(long j10) {
        return String.format(Locale.getDefault(), "%d(%s)", Long.valueOf(j10), new SimpleDateFormat("MM-dd HH:mm:ss.SSS", Locale.getDefault()).format(new Date(j10)));
    }

    public static String p(Context context, long j10) {
        DecimalFormat decimalFormat;
        if (j10 == 0) {
            return context.getString(t7.h.c(context, "upsdk_storage_utils"), PushConstants.PUSH_TYPE_NOTIFY);
        }
        if (j10 > 104857) {
            decimalFormat = new DecimalFormat("###.#");
        } else if (j10 > 10485) {
            decimalFormat = new DecimalFormat("###.##");
        } else {
            decimalFormat = null;
        }
        if (decimalFormat != null) {
            return context.getString(t7.h.c(context, "upsdk_storage_utils"), decimalFormat.format(j10 / 1048576.0d));
        }
        return context.getString(t7.h.c(context, "upsdk_storage_utils"), "0.01");
    }

    public static String q(Context context, String str) {
        if (TextUtils.isEmpty(str)) {
            return "";
        }
        byte[] o10 = c5.a.o(context);
        if (TextUtils.isEmpty(str) || o10.length <= 0) {
            return "";
        }
        try {
            SecretKeySpec secretKeySpec = new SecretKeySpec(o10, "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 le.c.B(c5.a.m(bArr), c5.a.m(cipher.doFinal(str.getBytes(Key.STRING_CHARSET_NAME))));
        } catch (UnsupportedEncodingException | IllegalArgumentException | InvalidAlgorithmParameterException | InvalidKeyException | NoSuchAlgorithmException | BadPaddingException | IllegalBlockSizeException | NoSuchPaddingException unused) {
            u6.a.b("AesCbc", "aes cbc encrypter data error");
            return "";
        }
    }

    public static String r(String str) {
        ob.c d4 = new ob.b(new ob.a("android.os.SystemProperties"), "get", String.class).d(str);
        if (d4.f13649a) {
            return (String) d4.f13650b;
        }
        return null;
    }

    public static String s(String str, String str2) {
        try {
            return (String) h7.b(null, "android.os.SystemProperties").getMethod("get", String.class, String.class).invoke(null, str, str2);
        } catch (Exception e10) {
            lh.b.d("SystemProperties.get: " + e10);
            return str2;
        }
    }

    public static String t(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 e10) {
            be.a.d("DESUtils", "encryptAES", e10);
            return null;
        }
    }

    public static qb.c u(qb.b bVar) {
        qb.c cVar;
        qb.c b10;
        qb.c cVar2;
        qb.c cVar3;
        qb.c b11;
        int i = bVar.f14188c;
        sb.m mVar = null;
        try {
            if (i != 0) {
                if (i != 1) {
                    try {
                        if (i != 2) {
                            return new qb.c(new rb.a());
                        }
                        try {
                            mVar = ub.a.d(bVar);
                        } catch (rb.a e10) {
                            e10.f15703b = 0;
                            e10.f15702a = e10.getMessage();
                            cVar3 = new qb.c(e10);
                        } catch (Exception e11) {
                            rb.a aVar = new rb.a(e11);
                            boolean z10 = e11 instanceof NetworkOnMainThreadException;
                            aVar.f15703b = 0;
                            cVar3 = new qb.c(aVar);
                        }
                        if (bVar.f14190e == 4) {
                            b11 = new qb.c(mVar);
                        } else {
                            int i2 = mVar.f16468b;
                            if (i2 >= 400) {
                                rb.a aVar2 = new rb.a(mVar);
                                xb.a.b(aVar2, bVar, i2);
                                cVar3 = new qb.c(aVar2);
                                cl.d.I(mVar, bVar);
                                return cVar3;
                            }
                            b11 = bVar.b(mVar);
                            b11.getClass();
                        }
                        cl.d.I(mVar, bVar);
                        return b11;
                    } catch (Throwable th2) {
                        cl.d.I(null, bVar);
                        throw th2;
                    }
                }
                try {
                    sb.m c10 = ub.a.c(bVar);
                    int i10 = c10.f16468b;
                    if (i10 >= 400) {
                        rb.a aVar3 = new rb.a(c10);
                        xb.a.b(aVar3, bVar, i10);
                        cVar2 = new qb.c(aVar3);
                    } else {
                        cVar2 = new qb.c("success");
                    }
                    return cVar2;
                } catch (rb.a e12) {
                    rb.a aVar4 = new rb.a(e12);
                    aVar4.f15703b = 0;
                    aVar4.f15702a = aVar4.getMessage();
                    return new qb.c(aVar4);
                } catch (Exception e13) {
                    rb.a aVar5 = new rb.a(e13);
                    boolean z11 = e13 instanceof NetworkOnMainThreadException;
                    aVar5.f15703b = 0;
                    return new qb.c(aVar5);
                }
            }
            try {
                mVar = ub.a.a(bVar);
            } catch (rb.a e14) {
                rb.a aVar6 = new rb.a(e14);
                aVar6.f15703b = 0;
                aVar6.f15702a = aVar6.getMessage();
                cVar = new qb.c(aVar6);
            } catch (Exception e15) {
                rb.a aVar7 = new rb.a(e15);
                boolean z12 = e15 instanceof NetworkOnMainThreadException;
                aVar7.f15703b = 0;
                cVar = new qb.c(aVar7);
            }
            if (bVar.f14190e == 4) {
                b10 = new qb.c(mVar);
            } else {
                int i11 = mVar.f16468b;
                if (i11 >= 400) {
                    rb.a aVar8 = new rb.a(mVar);
                    xb.a.b(aVar8, bVar, i11);
                    cVar = new qb.c(aVar8);
                    cl.d.I(mVar, bVar);
                    return cVar;
                }
                b10 = bVar.b(mVar);
                b10.getClass();
            }
            cl.d.I(mVar, bVar);
            return b10;
        } catch (Throwable th3) {
            cl.d.I(null, bVar);
            throw th3;
        }
    }

    public static o6 v(z5 z5Var) {
        y5 y5Var = null;
        if (z5Var.f15426b) {
            return null;
        }
        byte[] c10 = z5Var.c();
        i5 i5Var = z5Var.f15425a;
        boolean z10 = z5Var.f15427c;
        switch (com.xiaomi.push.service.w0.f8489a[i5Var.ordinal()]) {
            case 1:
                y5Var = new f6();
                break;
            case 2:
                y5Var = new l6();
                break;
            case 3:
                y5Var = new j6();
                break;
            case 4:
                y5Var = new m6();
                break;
            case 5:
                y5Var = new h6();
                break;
            case 6:
                y5Var = new t5();
                break;
            case 7:
                y5Var = new y5();
                break;
            case 8:
                y5Var = new g6();
                break;
            case 9:
                if (z10) {
                    y5Var = new d6();
                    break;
                } else {
                    u5 u5Var = new u5();
                    u5Var.f15175o.set(0, true);
                    y5Var = u5Var;
                    break;
                }
            case 10:
                y5Var = new y5();
                break;
        }
        if (y5Var != null) {
            n6.b(y5Var, c10);
        }
        return y5Var;
    }

    public static y5.a w(Context context) {
        try {
            return y5.a.a(context);
        } catch (IOException e10) {
            throw new AssertionError(e10);
        } catch (IllegalAccessException e11) {
            throw new AssertionError(e11);
        } catch (KeyManagementException e12) {
            throw new AssertionError(e12);
        } catch (KeyStoreException e13) {
            throw new AssertionError(e13);
        } catch (NoSuchAlgorithmException e14) {
            throw new AssertionError(e14);
        } catch (CertificateException e15) {
            throw new AssertionError(e15);
        }
    }

    public static void x(Context context) {
        if (!cl.d.M(context)) {
            return;
        }
        e.b(context).c(new d1(context, System.currentTimeMillis(), f5.i(context)), 0);
    }

    public static void y(Context context, ud.f fVar, String... strArr) {
        if (!E) {
            return;
        }
        N(context, fVar);
        try {
            C.invoke(A, context, "requireApi", strArr);
        } catch (Exception e10) {
            be.a.c("OpenConfig", "trackCustomEvent exception: " + e10.toString());
        }
    }

    public static boolean z(File file, FileInputStream fileInputStream) {
        try {
            if (file.exists()) {
                file.delete();
            }
            FileOutputStream fileOutputStream = new FileOutputStream(file);
            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 (IOException unused4) {
            return false;
        }
    }

    @Override
    public void a(String str) {
        g0.b.f9784b = str;
    }

    @Override
    public boolean apply(String str) {
        if (!TextUtils.isEmpty(str) && !str.toLowerCase().endsWith(".gif")) {
            return true;
        }
        return false;
    }

    @Override
    public void b() {
        g0.b.f9784b = "";
    }

    @Override
    public String c(String str, String str2) {
        try {
            return e(str, str2.getBytes(Key.STRING_CHARSET_NAME));
        } catch (UnsupportedEncodingException unused) {
            return "";
        }
    }

    @Override
    public String d(Context context) {
        return null;
    }

    @Override
    public String e(String str, byte[] bArr) {
        if (bArr != null && bArr.length != 0) {
            try {
                return c5.a.s(H(KeyFactory.getInstance("RSA").generatePublic(new X509EncodedKeySpec(c5.a.t(str))), bArr));
            } catch (NoSuchAlgorithmException | InvalidKeySpecException unused) {
                return "";
            }
        }
        return "";
    }

    @Override
    public void f(Context context, HashMap hashMap) {
        d6 d6Var = new d6();
        d6Var.f14420d = k2.a(context).f14748c;
        d6Var.f14425m = k2.a(context).f14749d;
        d6Var.f14421e = "awake_app_response";
        d6Var.f14419c = cl.d.T();
        d6Var.f14424h = hashMap;
        byte[] c10 = n6.c(com.xiaomi.push.service.j.d(d6Var.f14425m, d6Var.f14420d, d6Var, i5.Notification, true));
        if (context instanceof XMPushService) {
            lh.b.d("MoleInfo : send data directly in pushLayer " + d6Var.f14419c);
            ((XMPushService) context).a(context.getPackageName(), c10, true);
            return;
        }
        lh.b.d("MoleInfo : context is not correct in pushLayer " + d6Var.f14419c);
    }

    @Override
    public String g(String str, String str2) {
        return "";
    }

    @Override
    public void i(Context context, HashMap hashMap) {
        lh.b.d("MoleInfo:\u3000" + g2.b(hashMap));
    }

    @Override
    public void j(Context context, HashMap hashMap) {
        g5 a10 = g5.a(context);
        if (a10 != null) {
            String a11 = g2.a(hashMap);
            Context context2 = (Context) a10.f14561a;
            String packageName = context2.getPackageName();
            String packageName2 = context2.getPackageName();
            k5 k5Var = new k5();
            k5Var.f14785g = "category_awake_app";
            k5Var.f14781c = "wake_up_app";
            k5Var.b(1L);
            k5Var.f14780b = a11;
            k5Var.f14784f = true;
            k5Var.f14790p.set(2, true);
            k5Var.f14779a = "push_sdk_channel";
            k5Var.f14786h = packageName2;
            a10.b(k5Var, packageName);
        }
    }

    @Override
    public Object k() {
        return new ArrayDeque();
    }

    @Override
    public void onComplete() {
    }

    @Override
    public void onError(Throwable th2) {
    }

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