CAG v5.7.4版本的 MD5 值为:bc57ead76a7a30559f0708e9d60d749f
以下内容为反编译后的 s.java 源代码,内容仅作参考
package d.c.a.j;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.os.Build;
import android.os.LocaleList;
import android.preference.PreferenceManager;
import android.text.TextUtils;
import com.google.android.exoplayer2.metadata.icy.IcyHeaders;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Locale;
import org.apache.lucene.analysis.reverse.ReverseStringFilter;
import org.apache.lucene.analysis.shingle.ShingleFilter;
import org.apache.lucene.analysis.wikipedia.WikipediaTokenizer;
public class s {
public static List<Locale> a;
public static final String[] b = {"zh", "en", "ko", "es", "fr", "de", "it", "ru", "ja", "mn", "ar", WikipediaTokenizer.EXTERNAL_LINK, "nl", "pl", "pt", "ro", "in"};
public static final String[] c = {"iw", "zh", "vi", "ja", "in", WikipediaTokenizer.EXTERNAL_LINK, "pt", "ro", "ko", "tl", "de", "pl", "ar"};
public static String a() {
Locale g2 = g();
return g2.getLanguage().equals(Locale.KOREA.getLanguage()) ? "kr" : g2.getCountry().equals(Locale.TAIWAN.getCountry()) ? "cn" : g2.getCountry().equals(Locale.CHINA.getCountry()) ? "jt" : g2.getLanguage().equals("tl") ? "fil" : g2.getLanguage().equals("iw") ? "he" : g2.getLanguage().equals("in") ? "id" : g2.getLanguage().equals("km") ? "khm" : g2.getLanguage();
}
public static String b() {
String a2 = a();
return a2.equals("cn") ? "zh" : a2.equals("kr") ? "ko" : a2;
}
public static String c() {
return g().getLanguage().equals(Locale.KOREA.getLanguage()) ? "ko" : a();
}
public static List<String> d() {
ArrayList arrayList = new ArrayList();
for (Locale locale : h()) {
if (locale.getLanguage().equals(Locale.KOREA.getLanguage())) {
arrayList.add("ko");
} else if (!locale.getCountry().equals(Locale.TAIWAN.getCountry())) {
if (locale.getCountry().equals(Locale.CHINA.getCountry())) {
arrayList.add("jt");
} else if (locale.getLanguage().equals("tl")) {
arrayList.add("fil");
} else if (locale.getLanguage().equals("iw")) {
arrayList.add("he");
} else if (locale.getLanguage().equals("in")) {
arrayList.add("id");
} else {
arrayList.add(locale.getLanguage());
}
}
}
return arrayList;
}
public static String e() {
String a2 = a();
a2.hashCode();
char c2 = 65535;
switch (a2.hashCode()) {
case 3121:
if (a2.equals("ar")) {
c2 = 0;
break;
}
break;
case 3179:
if (a2.equals("cn")) {
c2 = 1;
break;
}
break;
case 3201:
if (a2.equals("de")) {
c2 = 2;
break;
}
break;
case 3239:
if (a2.equals(WikipediaTokenizer.EXTERNAL_LINK)) {
c2 = 3;
break;
}
break;
case 3246:
if (a2.equals("es")) {
c2 = 4;
break;
}
break;
case 3276:
if (a2.equals("fr")) {
c2 = 5;
break;
}
break;
case 3325:
if (a2.equals("he")) {
c2 = 6;
break;
}
break;
case 3329:
if (a2.equals("hi")) {
c2 = 7;
break;
}
break;
case 3355:
if (a2.equals("id")) {
c2 = '\b';
break;
}
break;
case 3371:
if (a2.equals("it")) {
c2 = '\t';
break;
}
break;
case 3383:
if (a2.equals("ja")) {
c2 = '\n';
break;
}
break;
case 3402:
if (a2.equals("jt")) {
c2 = 11;
break;
}
break;
case 3431:
if (a2.equals("kr")) {
c2 = '\f';
break;
}
break;
case 3459:
if (a2.equals("lo")) {
c2 = '\r';
break;
}
break;
case 3489:
if (a2.equals("mn")) {
c2 = 14;
break;
}
break;
case 3500:
if (a2.equals("my")) {
c2 = 15;
break;
}
break;
case 3518:
if (a2.equals("nl")) {
c2 = 16;
break;
}
break;
case 3580:
if (a2.equals("pl")) {
c2 = 17;
break;
}
break;
case 3588:
if (a2.equals("pt")) {
c2 = 18;
break;
}
break;
case 3645:
if (a2.equals("ro")) {
c2 = 19;
break;
}
break;
case 3651:
if (a2.equals("ru")) {
c2 = 20;
break;
}
break;
case 3683:
if (a2.equals("sv")) {
c2 = 21;
break;
}
break;
case 3684:
if (a2.equals("sw")) {
c2 = 22;
break;
}
break;
case 3700:
if (a2.equals("th")) {
c2 = 23;
break;
}
break;
case 3763:
if (a2.equals("vi")) {
c2 = 24;
break;
}
break;
case 3899:
if (a2.equals("zu")) {
c2 = 25;
break;
}
break;
case 101385:
if (a2.equals("fil")) {
c2 = 26;
break;
}
break;
case 103433:
if (a2.equals("hmn")) {
c2 = 27;
break;
}
break;
}
switch (c2) {
case 0:
return "https://tawk.to/chat/5e122c7c7e39ea1242a3202d/1dtrfuamt";
case 1:
case 11:
return "https://tawk.to/chat/5dfa696dd96992700fcce9d5/1dtjq8tev";
case 2:
return "https://tawk.to/chat/5e0e42dd27773e0d832b9403/1dtjrcua4";
case 3:
return "https://tawk.to/chat/5e122a477e39ea1242a31fff/1dtrfcl8e";
case 4:
return "https://tawk.to/chat/5e0e442d27773e0d832b9420/1dtjrng24";
case 5:
return "https://tawk.to/chat/5e0e44be27773e0d832b9432/1dtjrr512";
case 6:
return "https://tawk.to/chat/5e122c3327773e0d832bf52d/1dtrfqorm";
case 7:
return "https://tawk.to/chat/5e122cf47e39ea1242a32037/1dtrg0ji5";
case '\b':
return "https://tawk.to/chat/5e122da47e39ea1242a3204a/1dtrg6098";
case '\t':
return "https://tawk.to/chat/5e1228ea27773e0d832bf4d6/1dtrf2h3h";
case '\n':
return "https://tawk.to/chat/5e0e418d7e39ea1242a2c605/1dtjr2oup";
case '\f':
return "https://tawk.to/chat/5e0e427d27773e0d832b93f2/1dtjr98bc";
case '\r':
return "https://tawk.to/chat/5e122e9427773e0d832bf552/1dtrgdnsl";
case 14:
return "https://tawk.to/chat/5e122d5a7e39ea1242a32041/1dtrg3mse";
case 15:
return "https://tawk.to/chat/5e122df47e39ea1242a32050/1dtrg8j8j";
case 16:
return "https://tawk.to/chat/5e1229bc27773e0d832bf4f6/1dtrf8qq6";
case 17:
return "https://tawk.to/chat/5e122abb27773e0d832bf50c/1dtrfgrh4";
case 18:
return "https://tawk.to/chat/5e1229647e39ea1242a31fe7/1dtrf51mq";
case 19:
return "https://tawk.to/chat/5e122b947e39ea1242a32019/1dtrfm2p8";
case 20:
return "https://tawk.to/chat/5e122be67e39ea1242a32020/1dtrfofus";
case 21:
return "https://tawk.to/chat/5e122b3e27773e0d832bf51c/1dtrfjgvb";
case 22:
return "https://tawk.to/chat/5e122f417e39ea1242a32070/1dtrgipuc";
case 23:
return "https://tawk.to/chat/5e122eeb7e39ea1242a32066/1dtrgg3nv";
case 24:
return "https://tawk.to/chat/5e122e487e39ea1242a32057/1dtrgb58m";
case 25:
return "https://tawk.to/chat/5e122f947e39ea1242a32080/1dtrgl9m0";
case 26:
return "https://tawk.to/chat/5e122fe627773e0d832bf577/1dtrgnevp";
case 27:
return "https://tawk.to/chat/6172d16186aee40a5737e444/1fik83q1h";
default:
return "https://tawk.to/chat/5e0e3fc627773e0d832b93a0/1dtjqucqn";
}
}
public static String f() {
String a2 = a();
a2.hashCode();
char c2 = 65535;
switch (a2.hashCode()) {
case 3121:
if (a2.equals("ar")) {
c2 = 0;
break;
}
break;
case 3141:
if (a2.equals("bg")) {
c2 = 1;
break;
}
break;
case 3148:
if (a2.equals("bn")) {
c2 = 2;
break;
}
break;
case 3179:
if (a2.equals("cn")) {
c2 = 3;
break;
}
break;
case 3201:
if (a2.equals("de")) {
c2 = 4;
break;
}
break;
case 3239:
if (a2.equals(WikipediaTokenizer.EXTERNAL_LINK)) {
c2 = 5;
break;
}
break;
case 3246:
if (a2.equals("es")) {
c2 = 6;
break;
}
break;
case 3276:
if (a2.equals("fr")) {
c2 = 7;
break;
}
break;
case 3325:
if (a2.equals("he")) {
c2 = '\b';
break;
}
break;
case 3329:
if (a2.equals("hi")) {
c2 = '\t';
break;
}
break;
case 3338:
if (a2.equals("hr")) {
c2 = '\n';
break;
}
break;
case 3341:
if (a2.equals("hu")) {
c2 = 11;
break;
}
break;
case 3355:
if (a2.equals("id")) {
c2 = '\f';
break;
}
break;
case 3371:
if (a2.equals("it")) {
c2 = '\r';
break;
}
break;
case 3383:
if (a2.equals("ja")) {
c2 = 14;
break;
}
break;
case 3402:
if (a2.equals("jt")) {
c2 = 15;
break;
}
break;
case 3431:
if (a2.equals("kr")) {
c2 = 16;
break;
}
break;
case 3459:
if (a2.equals("lo")) {
c2 = 17;
break;
}
break;
case 3489:
if (a2.equals("mn")) {
c2 = 18;
break;
}
break;
case 3500:
if (a2.equals("my")) {
c2 = 19;
break;
}
break;
case 3511:
if (a2.equals("ne")) {
c2 = 20;
break;
}
break;
case 3518:
if (a2.equals("nl")) {
c2 = 21;
break;
}
break;
case 3580:
if (a2.equals("pl")) {
c2 = 22;
break;
}
break;
case 3588:
if (a2.equals("pt")) {
c2 = 23;
break;
}
break;
case 3645:
if (a2.equals("ro")) {
c2 = 24;
break;
}
break;
case 3651:
if (a2.equals("ru")) {
c2 = 25;
break;
}
break;
case 3672:
if (a2.equals("sk")) {
c2 = 26;
break;
}
break;
case 3679:
if (a2.equals("sr")) {
c2 = 27;
break;
}
break;
case 3683:
if (a2.equals("sv")) {
c2 = 28;
break;
}
break;
case 3684:
if (a2.equals("sw")) {
c2 = 29;
break;
}
break;
case 3693:
if (a2.equals("ta")) {
c2 = 30;
break;
}
break;
case 3700:
if (a2.equals("th")) {
c2 = ReverseStringFilter.INFORMATION_SEPARATOR_MARKER;
break;
}
break;
case 3734:
if (a2.equals("uk")) {
c2 = ' ';
break;
}
break;
case 3763:
if (a2.equals("vi")) {
c2 = '!';
break;
}
break;
case 3899:
if (a2.equals("zu")) {
c2 = '\"';
break;
}
break;
case 101385:
if (a2.equals("fil")) {
c2 = '#';
break;
}
break;
case 106160:
if (a2.equals("khm")) {
c2 = '$';
break;
}
break;
}
switch (c2) {
case 0:
return "966";
case 1:
return "359";
case 2:
return "880";
case 3:
case 15:
case '$':
return "886";
case 4:
return "49";
case 5:
return "30";
case 6:
return "34";
case 7:
return "33";
case '\b':
return "972";
case '\t':
return "91";
case '\n':
return "385";
case 11:
return "36";
case '\f':
return "62";
case '\r':
return "39";
case 14:
return "81";
case 16:
return "82";
case 17:
return "856";
case 18:
return "976";
case 19:
return "95";
case 20:
return "977";
case 21:
return "31";
case 22:
return "48";
case 23:
return "351";
case 24:
return "40";
case 25:
return "7";
case 26:
return "421";
case 27:
return "381";
case 28:
return "46";
case 29:
return "254";
case 30:
return "91";
case 31:
return "66";
case ' ':
return "380";
case '!':
return "84";
case '\"':
return "27";
case '#':
return "63";
default:
return IcyHeaders.REQUEST_HEADER_ENABLE_METADATA_VALUE;
}
}
public static Locale g() {
String string = PreferenceManager.getDefaultSharedPreferences(i.c.a.c.y.J()).getString("locale", "");
if (TextUtils.isEmpty(string)) {
int i2 = e.i.e.b.b;
Locale locale = (Build.VERSION.SDK_INT >= 24 ? e.i.e.b.b(LocaleList.getDefault()) : e.i.e.b.a(Locale.getDefault())).a.get(0);
if (locale.getLanguage().equalsIgnoreCase("zh")) {
if (!locale.getCountry().equalsIgnoreCase("CN") && !locale.toString().contains("_#Hans")) {
PreferenceManager.getDefaultSharedPreferences(i.c.a.c.y.J()).edit().putString("locale", "zh_TW").apply();
return Locale.TAIWAN;
}
PreferenceManager.getDefaultSharedPreferences(i.c.a.c.y.J()).edit().putString("locale", "zh_CN").apply();
return Locale.CHINA;
}
for (Locale locale2 : h()) {
if (locale2.getLanguage().equalsIgnoreCase(locale.getLanguage())) {
PreferenceManager.getDefaultSharedPreferences(i.c.a.c.y.J()).edit().putString("locale", locale2.toString()).apply();
return locale2;
}
}
PreferenceManager.getDefaultSharedPreferences(i.c.a.c.y.J()).edit().putString("locale", "en").apply();
return Locale.ENGLISH;
}
String[] split = string.split(ShingleFilter.DEFAULT_FILLER_TOKEN);
if (split.length == 1) {
return new Locale(split[0]);
}
return new Locale(split[0], split[1]);
}
public static List<Locale> h() {
boolean z;
if (a == null) {
ArrayList arrayList = new ArrayList();
a = arrayList;
arrayList.add(Locale.GERMAN);
a.add(Locale.ENGLISH);
i.a.b.a.a.k0("es", a);
a.add(new Locale("tl", "PH"));
a.add(Locale.FRENCH);
i.a.b.a.a.k0("in", a);
i.a.b.a.a.k0("zu", a);
a.add(Locale.ITALIAN);
i.a.b.a.a.k0("sw", a);
i.a.b.a.a.k0("nl", a);
i.a.b.a.a.k0("pl", a);
i.a.b.a.a.k0("pt", a);
i.a.b.a.a.k0("ru", a);
i.a.b.a.a.k0("uk", a);
i.a.b.a.a.k0("ro", a);
i.a.b.a.a.k0("sv", a);
i.a.b.a.a.k0(WikipediaTokenizer.EXTERNAL_LINK, a);
i.a.b.a.a.k0("mn", a);
i.a.b.a.a.k0("vi", a);
i.a.b.a.a.k0("iw", a);
i.a.b.a.a.k0("ar", a);
i.a.b.a.a.k0("hi", a);
i.a.b.a.a.k0("ne", a);
i.a.b.a.a.k0("ta", a);
a.add(new Locale("bn"));
Paint paint = new Paint();
int measureText = (int) paint.measureText("ຍອມຮັບ");
int measureText2 = (int) paint.measureText("ຍົກເລີກ");
if (measureText >= measureText2) {
measureText = measureText2;
}
if (measureText <= 0) {
z = false;
} else {
Bitmap createBitmap = Bitmap.createBitmap(measureText, measureText, Bitmap.Config.ARGB_8888);
Bitmap createBitmap2 = Bitmap.createBitmap(measureText, measureText, Bitmap.Config.ARGB_8888);
Canvas canvas = new Canvas(createBitmap);
Canvas canvas2 = new Canvas(createBitmap2);
canvas.drawColor(-7829368);
canvas2.drawColor(-7829368);
Paint paint2 = new Paint();
paint2.setColor(-65536);
paint2.setStrokeWidth(1.0f);
float f2 = measureText / 2.0f;
canvas.drawText("ຍອມຮັບ", 0.0f, f2, paint2);
canvas2.drawText("ຍົກເລີກ", 0.0f, f2, paint2);
z = !createBitmap.sameAs(createBitmap2);
}
if (z) {
i.a.b.a.a.k0("lo", a);
}
i.a.b.a.a.k0("km", a);
i.a.b.a.a.k0("th", a);
i.a.b.a.a.k0("my", a);
i.a.b.a.a.k0("hmn", a);
a.add(Locale.JAPANESE);
a.add(Locale.TAIWAN);
a.add(Locale.CHINA);
a.add(Locale.KOREAN);
i.a.b.a.a.k0("bg", a);
i.a.b.a.a.k0("hr", a);
i.a.b.a.a.k0("hu", a);
i.a.b.a.a.k0("sk", a);
i.a.b.a.a.k0("sr", a);
}
return a;
}
public static boolean i() {
return g().getLanguage().equals("ar");
}
public static boolean j() {
return "my".equals(g().getLanguage());
}
public static boolean k() {
return n() || p();
}
public static boolean l() {
String language = g().getLanguage();
return language.equals(Locale.CHINESE.getLanguage()) || language.equals(Locale.KOREAN.getLanguage()) || language.equals(Locale.ENGLISH.getLanguage());
}
public static boolean m() {
String language = g().getLanguage();
return language.equals(Locale.CHINESE.getLanguage()) || language.equals(Locale.KOREAN.getLanguage());
}
public static boolean n() {
String language = g().getLanguage();
return language.equals(Locale.CHINESE.getLanguage()) || language.equals(Locale.KOREAN.getLanguage()) || language.equals(Locale.JAPANESE.getLanguage());
}
public static boolean o() {
return g().getLanguage().equals(Locale.CHINESE.getLanguage());
}
public static boolean p() {
return g().getLanguage().equals(Locale.ENGLISH.getLanguage());
}
public static boolean q() {
return a().equals("ja");
}
public static boolean r() {
Locale g2 = g();
Locale locale = e.i.g.e.a;
return TextUtils.getLayoutDirectionFromLocale(g2) == 0;
}
public static boolean s() {
Locale g2 = g();
Locale locale = e.i.g.e.a;
return TextUtils.getLayoutDirectionFromLocale(g2) == 1;
}
public static boolean t() {
return Arrays.asList("jt", "cn", "en", "kr", "ru", "es", "fr", "it", "hi", "ja", "pt", "ne").contains(a());
}
public static boolean u() {
return o() || p() || g().getLanguage().equals("es") || g().getLanguage().equals(Locale.FRENCH.getLanguage()) || g().getLanguage().equals(Locale.GERMAN.getLanguage()) || g().getLanguage().equals(Locale.ITALIAN.getLanguage()) || g().getLanguage().equals("pt") || g().getLanguage().equals("nl") || g().getLanguage().equals(WikipediaTokenizer.EXTERNAL_LINK) || a().equals("ro") || g().getLanguage().equals("pl") || a().equals("sv") || Arrays.asList("bg", "hr", "hu", "sk").contains(a());
}
public static boolean v() {
String language = g().getLanguage();
return (language.equals("sv") || language.equals("lo") || language.equals("ne") || language.equals("ta") || language.equals("km") || language.equals("hmn") || language.equals("uk") || language.equals("bn") || Arrays.asList("bg", "hr", "hu", "sk", "sr").contains(a())) ? false : true;
}
}