正在查看: Aisle v12.32 应用的 z0.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Aisle v12.32 应用的 z0.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package v4;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.net.Uri;
import android.os.Build;
import android.os.Handler;
import android.os.Looper;
import android.util.Base64;
import android.util.DisplayMetrics;
import android.view.Display;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.WindowManager;
import android.widget.ImageView;
import android.widget.TextView;
import android.widget.Toast;
import androidx.constraintlayout.widget.ConstraintLayout;
import androidx.fragment.app.DialogInterfaceOnCancelListenerC1373o;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import com.aisle.app.data.response.discover.GeneralInformation;
import com.aisle.app.data.response.discover.Location;
import com.aisle.app.domain.model.Apps;
import com.aisle.app.domain.model.CompetitorAppInfo;
import com.aisle.app.domain.model.Profile;
import com.aisle.app.domain.model.applicationFields.ItemValues;
import com.android.billingclient.api.C1540f;
import com.appsflyer.R;
import java.io.File;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Calendar;
import java.util.Collection;
import java.util.Comparator;
import java.util.Date;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Locale;
import java.util.TimeZone;
import java.util.UUID;
import kotlin.Pair;
import kotlin.Unit;
import kotlin.collections.IndexedValue;
import kotlin.coroutines.CoroutineContext;
import kotlin.jvm.functions.Function2;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.StringCompanionObject;
import kotlin.text.CharsKt;
import kotlin.text.Regex;
public abstract class z0 {
private static int f26123a;
private static int f26124b;
private static final DisplayMetrics f26125c = new DisplayMetrics();
static final class a extends kotlin.coroutines.jvm.internal.l implements Function2 {
int f26126a;
final long f26127b;
final View f26128c;
a(long j5, View view, kotlin.coroutines.d dVar) {
super(2, dVar);
this.f26127b = j5;
this.f26128c = view;
}
public final kotlin.coroutines.d create(Object obj, kotlin.coroutines.d dVar) {
return new a(this.f26127b, this.f26128c, dVar);
}
public final Object invoke(cb.N n5, kotlin.coroutines.d dVar) {
return create(n5, dVar).invokeSuspend(Unit.a);
}
public final Object invokeSuspend(Object obj) {
Object e5 = Ma.b.e();
int i5 = this.f26126a;
if (i5 == 0) {
Ja.q.b(obj);
long j5 = this.f26127b;
this.f26126a = 1;
if (cb.Y.a(j5, this) == e5) {
return e5;
}
} else {
if (i5 != 1) {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
Ja.q.b(obj);
}
this.f26128c.setEnabled(true);
return Unit.a;
}
}
public static final class b implements Comparator {
final List f26129a;
public b(List list) {
this.f26129a = list;
}
@Override
public final int compare(Object obj, Object obj2) {
List list = this.f26129a;
List e5 = ((C1540f) obj).e();
Intrinsics.checkNotNull(e5);
Integer valueOf = Integer.valueOf(list.indexOf(((C1540f.c) ((C1540f.e) e5.get(0)).b().a().get(0)).a()));
List list2 = this.f26129a;
List e6 = ((C1540f) obj2).e();
Intrinsics.checkNotNull(e6);
return La.a.a(valueOf, Integer.valueOf(list2.indexOf(((C1540f.c) ((C1540f.e) e6.get(0)).b().a().get(0)).a())));
}
}
public static final boolean A(PackageManager packageManager, String str) {
Intrinsics.checkNotNullParameter(packageManager, "<this>");
Intrinsics.checkNotNullParameter(str, "packageName");
return packageManager.getPackageInfo(str, 128) != null;
}
public static final boolean B() {
String str = Build.TAGS;
String str2 = Build.BRAND;
String str3 = Build.DEVICE;
String str4 = Build.MODEL;
String str5 = Build.PRODUCT;
String[] strArr = {"/system/bin/redis-server", "/system/xbin/su", "/system/xbin/busybox", "/system/app/Superuser.apk", "/sbin/su", "/sbin/su-daemon"};
if (str != null && kotlin.text.h.K(str, "test-keys", false, 2, (Object) null)) {
return true;
}
Intrinsics.checkNotNull(str2);
if (kotlin.text.h.F(str2, "generic", false, 2, (Object) null) || kotlin.text.h.F(str2, "unknown", false, 2, (Object) null)) {
return true;
}
Intrinsics.checkNotNull(str3);
if (kotlin.text.h.F(str3, "generic", false, 2, (Object) null) || kotlin.text.h.F(str3, "unknown", false, 2, (Object) null)) {
return true;
}
Intrinsics.checkNotNull(str4);
if (kotlin.text.h.K(str4, "google_sdk", false, 2, (Object) null) || kotlin.text.h.K(str4, "Emulator", false, 2, (Object) null) || kotlin.text.h.K(str4, "Android SDK built for x86", false, 2, (Object) null)) {
return true;
}
Intrinsics.checkNotNull(str5);
if (kotlin.text.h.K(str5, "google_sdk", false, 2, (Object) null) || kotlin.text.h.K(str5, "sdk_google", false, 2, (Object) null) || kotlin.text.h.K(str5, "sdk", false, 2, (Object) null) || kotlin.text.h.K(str5, "sdk_x86", false, 2, (Object) null)) {
return true;
}
for (int i5 = 0; i5 < 6; i5++) {
if (new File(strArr[i5]).exists()) {
return true;
}
}
return false;
}
public static final boolean C(Context context) {
Intrinsics.checkNotNullParameter(context, "context");
return B() || E(context);
}
public static final boolean D(Activity activity) {
Intrinsics.checkNotNullParameter(activity, "activity");
Intent intent = new Intent("android.intent.action.VIEW");
intent.setData(Uri.parse("market://details?id=your.package.name"));
Intrinsics.checkNotNullExpressionValue(activity.getPackageManager().queryIntentActivities(intent, 65536), "queryIntentActivities(...)");
return !r2.isEmpty();
}
public static final boolean E(Context context) {
Intrinsics.checkNotNullParameter(context, "context");
String[] strArr = {"/system/bin/su", "/system/xbin/su", "/system/sd/xbin/su", "/system/bin/failsafe/su", "/data/local/su", "/data/local/xbin/su"};
List o5 = kotlin.collections.r.o(new String[]{"com.noshufou.android.su", "eu.chainfire.supersu", "me.phh.superuser", "com.koushikdutta.superuser", "com.kingroot.kinguser", "com.lbe.security.master"});
for (int i5 = 0; i5 < 6; i5++) {
if (new File(strArr[i5]).exists()) {
return true;
}
}
List list = o5;
if (!(list instanceof Collection) || !list.isEmpty()) {
Iterator it = list.iterator();
while (it.hasNext()) {
if (context.getPackageManager().getLaunchIntentForPackage((String) it.next()) != null) {
return true;
}
}
}
return false;
}
public static final void F(Throwable th) {
Intrinsics.checkNotNullParameter(th, "throwable");
p8.g.a(Z7.c.a).c(th);
}
public static final void G(Activity activity, androidx.browser.customtabs.b bVar, Uri uri) {
Intrinsics.checkNotNullParameter(activity, "activity");
Intrinsics.checkNotNullParameter(bVar, "customTabsIntent");
if (uri != null) {
try {
PackageManager packageManager = activity.getPackageManager();
Intrinsics.checkNotNullExpressionValue(packageManager, "getPackageManager(...)");
if (!A(packageManager, "com.android.chrome")) {
H("com.android.chrome", activity);
} else {
bVar.f13178a.setPackage("com.android.chrome");
bVar.a(activity, uri);
}
} catch (Exception e5) {
H("com.android.chrome", activity);
e5.printStackTrace();
}
}
}
public static final void H(String str, Activity activity) {
Intrinsics.checkNotNullParameter(str, "packageName");
Intrinsics.checkNotNullParameter(activity, "activity");
if (D(activity)) {
activity.startActivity(new Intent("android.intent.action.VIEW", Uri.parse("https://play.google.com/store/apps/details?id=" + str)));
}
}
public static final void I(View view, long j5) {
Intrinsics.checkNotNullParameter(view, "<this>");
view.setEnabled(false);
cb.i.d(cb.O.a(cb.c0.c()), (CoroutineContext) null, (cb.P) null, new a(j5, view, null), 3, (Object) null);
}
public static void J(View view, long j5, int i5, Object obj) {
if ((i5 & 1) != 0) {
j5 = 500;
}
I(view, j5);
}
public static final void K(Context context, String str, String str2, String str3) {
Intrinsics.checkNotNullParameter(context, "context");
Intrinsics.checkNotNullParameter(str, "subject");
Intrinsics.checkNotNullParameter(str2, "message");
Intrinsics.checkNotNullParameter(str3, "mailId");
Intent intent = new Intent("android.intent.action.SENDTO");
intent.setData(Uri.parse("mailto:"));
intent.putExtra("android.intent.extra.EMAIL", new String[]{str3});
intent.putExtra("android.intent.extra.SUBJECT", str);
intent.putExtra("android.intent.extra.TEXT", str2);
context.startActivity(Intent.createChooser(intent, "Choose an Email client :"));
}
public static final void L(Activity activity) {
Display display;
Intrinsics.checkNotNullParameter(activity, "<this>");
if (Build.VERSION.SDK_INT >= 30) {
display = activity.getDisplay();
if (display != null) {
display.getRealMetrics(f26125c);
}
} else {
activity.getWindowManager().getDefaultDisplay().getMetrics(f26125c);
}
DisplayMetrics displayMetrics = f26125c;
f26123a = displayMetrics.heightPixels;
f26124b = displayMetrics.widthPixels;
}
public static final void M(Context context, String str, String str2) {
Intrinsics.checkNotNullParameter(context, "context");
Intrinsics.checkNotNullParameter(str, "link");
Intrinsics.checkNotNullParameter(str2, "previewText");
Intent intent = new Intent();
intent.setAction("android.intent.action.SEND");
intent.putExtra("android.intent.extra.TEXT", str2 + " " + str);
intent.setType("text/plain");
context.startActivity(Intent.createChooser(intent, "Share link via"));
}
public static final void N(DialogInterfaceOnCancelListenerC1373o dialogInterfaceOnCancelListenerC1373o, FragmentManager fragmentManager, String str) {
Intrinsics.checkNotNullParameter(dialogInterfaceOnCancelListenerC1373o, "<this>");
Intrinsics.checkNotNullParameter(fragmentManager, "fragmentManager");
Intrinsics.checkNotNullParameter(str, "tag");
try {
if (dialogInterfaceOnCancelListenerC1373o.isAdded() || dialogInterfaceOnCancelListenerC1373o.isVisible()) {
dialogInterfaceOnCancelListenerC1373o.K();
}
dialogInterfaceOnCancelListenerC1373o.Y(fragmentManager, str);
} catch (Exception e5) {
e5.printStackTrace();
}
}
public static final void O(Context context, final ViewGroup viewGroup, String str) {
Intrinsics.checkNotNullParameter(context, "context");
Intrinsics.checkNotNullParameter(viewGroup, "rootView");
Intrinsics.checkNotNullParameter(str, "message");
final View inflate = LayoutInflater.from(context).inflate(2131558737, (ViewGroup) null);
TextView textView = (TextView) inflate.findViewById(R.id.text);
ImageView imageView = (ImageView) inflate.findViewById(2131362184);
ConstraintLayout constraintLayout = (ConstraintLayout) inflate.findViewById(2131362679);
textView.setText(str);
imageView.setImageResource(2131231581);
constraintLayout.setBackground(androidx.core.content.b.getDrawable(context, 2131230941));
inflate.setLayoutParams(new ConstraintLayout.b(-1, -2));
viewGroup.addView(inflate);
new Handler(Looper.getMainLooper()).postDelayed(new Runnable() {
@Override
public final void run() {
z0.P(viewGroup, inflate);
}
}, 3000L);
}
public static final void P(ViewGroup viewGroup, View view) {
viewGroup.removeView(view);
}
public static final void Q(Fragment fragment, String str) {
Intrinsics.checkNotNullParameter(fragment, "<this>");
Intrinsics.checkNotNullParameter(str, "message");
Toast.makeText(fragment.getContext(), str, 0).show();
}
public static final List R(List list) {
Intrinsics.checkNotNullParameter(list, "products");
return kotlin.collections.r.x0(list, new b(kotlin.collections.r.o(new String[]{"P1W", "P1M", "P3M", "P6M"})));
}
public static final void S(List list, int i5, int i6) {
Intrinsics.checkNotNullParameter(list, "<this>");
Object obj = list.get(i5);
list.set(i5, list.get(i6));
list.set(i6, obj);
}
public static final String T(String str) {
Intrinsics.checkNotNullParameter(str, "<this>");
StringBuilder sb = new StringBuilder("");
Locale locale = Locale.getDefault();
Intrinsics.checkNotNullExpressionValue(locale, "getDefault(...)");
String upperCase = str.toUpperCase(locale);
Intrinsics.checkNotNullExpressionValue(upperCase, "toUpperCase(...)");
char[] charArray = upperCase.toCharArray();
Intrinsics.checkNotNullExpressionValue(charArray, "toCharArray(...)");
for (IndexedValue indexedValue : kotlin.collections.i.G0(charArray)) {
int a5 = indexedValue.a();
((Character) indexedValue.b()).getClass();
char[] chars = Character.toChars(Character.codePointAt(upperCase, a5) - (-127397));
Intrinsics.checkNotNullExpressionValue(chars, "toChars(...)");
sb.append(new String(chars));
}
String sb2 = sb.toString();
Intrinsics.checkNotNullExpressionValue(sb2, "toString(...)");
return sb2;
}
public static final int b(int i5, Context context) {
Intrinsics.checkNotNullParameter(context, "context");
return Ua.a.d(i5 * r(context));
}
public static final String c(byte[] bArr) {
Intrinsics.checkNotNullParameter(bArr, "byteArray");
String encodeToString = Base64.encodeToString(bArr, 2);
Intrinsics.checkNotNullExpressionValue(encodeToString, "encodeToString(...)");
return encodeToString;
}
public static final String d(String str) {
Intrinsics.checkNotNullParameter(str, "storedDate");
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd", Locale.US);
try {
Date parse = simpleDateFormat.parse(str);
Date parse2 = simpleDateFormat.parse(h());
Intrinsics.checkNotNull(parse);
long time = parse.getTime();
Intrinsics.checkNotNull(parse2);
return String.valueOf(Math.abs(time - parse2.getTime()) / 86400000);
} catch (Exception e5) {
e5.printStackTrace();
return "0";
}
}
public static final List e(Profile profile, String str, boolean z4) {
ItemValues mother_tongue;
Intrinsics.checkNotNullParameter(profile, "<this>");
ArrayList arrayList = new ArrayList();
GeneralInformation general_information = profile.getGeneral_information();
ItemValues marital_status_v1 = general_information.getMarital_status_v1();
if (marital_status_v1 != null) {
arrayList.add(new Pair(2131231686, marital_status_v1.getName()));
}
ItemValues sun_sign_v1 = general_information.getSun_sign_v1();
if (sun_sign_v1 != null) {
arrayList.add(new Pair(2131231687, sun_sign_v1.getName()));
}
ItemValues mbti = general_information.getMbti();
if (mbti != null) {
arrayList.add(new Pair(2131231682, mbti.getName()));
}
Integer height = general_information.getHeight();
if (height != null) {
arrayList.add(new Pair(2131231678, y(height.intValue())));
}
arrayList.add(new Pair(2131231676, general_information.getFaith_community()));
if (!z4 && (mother_tongue = general_information.getMother_tongue()) != null) {
arrayList.add(new Pair(2131231680, mother_tongue.getName()));
}
if (str == null || str.length() == 0) {
Location location = general_information.getLocation();
if (location != null) {
arrayList.add(new Pair(2131231681, location.getFull()));
}
} else if (str != null) {
arrayList.add(new Pair(2131231681, str + " km away"));
}
if (z4) {
ItemValues drinking_v2 = general_information.getDrinking_v2();
if (drinking_v2 != null) {
arrayList.add(new Pair(2131231675, drinking_v2.getName()));
}
} else {
ItemValues drinking_v1 = general_information.getDrinking_v1();
if (drinking_v1 != null) {
arrayList.add(new Pair(2131231675, drinking_v1.getName()));
}
}
if (z4) {
ItemValues smoking_v2 = general_information.getSmoking_v2();
if (smoking_v2 != null) {
arrayList.add(new Pair(2131231685, smoking_v2.getName()));
}
} else {
ItemValues smoking_v1 = general_information.getSmoking_v1();
if (smoking_v1 != null) {
arrayList.add(new Pair(2131231685, smoking_v1.getName()));
}
}
ItemValues kid = general_information.getKid();
if (kid != null) {
arrayList.add(new Pair(2131231679, kid.getName()));
}
ItemValues diet = general_information.getDiet();
if (diet != null) {
arrayList.add(new Pair(2131231677, diet.getName()));
}
ItemValues workout = general_information.getWorkout();
if (workout != null) {
arrayList.add(new Pair(2131231688, workout.getName()));
}
ItemValues politics = general_information.getPolitics();
if (politics != null) {
arrayList.add(new Pair(2131231684, politics.getName()));
}
ItemValues pet = general_information.getPet();
if (pet != null) {
arrayList.add(new Pair(2131231683, pet.getName()));
}
String last_seen = profile.getLast_seen();
if (last_seen != null) {
arrayList.add(new Pair(2131231674, last_seen));
}
return arrayList;
}
public static final int f(int i5, int i6, int i7) {
Calendar calendar = Calendar.getInstance();
Calendar calendar2 = Calendar.getInstance();
calendar.set(i7, i6, i5);
int i8 = calendar2.get(2);
int i9 = calendar.get(2);
int i10 = calendar2.get(1) - calendar.get(1);
if (i9 > i8) {
return i10 - 1;
}
if (i9 == i8) {
return calendar.get(5) > calendar2.get(5) ? i10 - 1 : i10;
}
return i10;
}
public static final HashMap g(PackageManager packageManager, List list) {
Intrinsics.checkNotNullParameter(packageManager, "<this>");
Intrinsics.checkNotNullParameter(list, "appList");
HashMap hashMap = new HashMap();
Iterator it = list.iterator();
while (it.hasNext()) {
Apps apps = (Apps) it.next();
if (A(packageManager, apps.getPackageName())) {
PackageInfo packageInfo = packageManager.getPackageInfo(apps.getPackageName(), 128);
hashMap.put(apps.getAppName(), new CompetitorAppInfo(k(Long.valueOf(packageInfo.firstInstallTime)), k(Long.valueOf(packageInfo.lastUpdateTime))));
}
}
return hashMap;
}
public static final String h() {
String format = new SimpleDateFormat("yyyy-MM-dd", Locale.US).format(new Date());
Intrinsics.checkNotNullExpressionValue(format, "format(...)");
return format;
}
public static final String i() {
UUID randomUUID = UUID.randomUUID();
StringCompanionObject stringCompanionObject = StringCompanionObject.INSTANCE;
String format = String.format("%08x-%04x-%04x-%04x-%012x", Arrays.copyOf(new Object[]{Long.valueOf(randomUUID.getMostSignificantBits() >>> 32), Long.valueOf((randomUUID.getMostSignificantBits() >>> 16) & 65535), Long.valueOf(randomUUID.getMostSignificantBits() & 65535), Long.valueOf(65535 & (randomUUID.getLeastSignificantBits() >>> 48)), Long.valueOf(randomUUID.getLeastSignificantBits() & 281474976710655L)}, 5));
Intrinsics.checkNotNullExpressionValue(format, "format(...)");
return format;
}
public static final String j(long j5) {
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss 'UTC' XXX", Locale.US);
simpleDateFormat.setTimeZone(TimeZone.getTimeZone("UTC"));
String format = simpleDateFormat.format(new Date(j5));
Intrinsics.checkNotNullExpressionValue(format, "format(...)");
return format;
}
public static final String k(Object obj) {
Calendar calendar = Calendar.getInstance();
Intrinsics.checkNotNull(obj, "null cannot be cast to non-null type kotlin.Long");
calendar.setTimeInMillis(((Long) obj).longValue());
calendar.setTimeZone(TimeZone.getDefault());
return m(calendar.get(5)) + " " + q(calendar.get(2)) + ", " + calendar.get(1);
}
public static final String l(String str) {
Calendar calendar = Calendar.getInstance();
try {
try {
calendar.setTime(new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'", Locale.US).parse(str));
} catch (Exception unused) {
}
} catch (Exception unused2) {
calendar.setTime(new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZZZZZ", Locale.US).parse(str));
}
calendar.add(14, calendar.get(15));
return m(calendar.get(5)) + " " + q(calendar.get(2)) + ", " + calendar.get(1);
}
public static final String m(int i5) {
return new String[]{"01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31"}[i5 - 1];
}
public static final String n(Context context) {
Intrinsics.checkNotNullParameter(context, "context");
Locale locale = context.getResources().getConfiguration().getLocales().get(0);
Intrinsics.checkNotNull(locale);
String country = locale.getCountry();
Intrinsics.checkNotNullExpressionValue(country, "getCountry(...)");
return country;
}
public static final DisplayMetrics o() {
return f26125c;
}
public static final DisplayMetrics p(Fragment fragment) {
Intrinsics.checkNotNullParameter(fragment, "<this>");
Object systemService = fragment.requireActivity().getSystemService("window");
Intrinsics.checkNotNull(systemService, "null cannot be cast to non-null type android.view.WindowManager");
Display defaultDisplay = ((WindowManager) systemService).getDefaultDisplay();
Intrinsics.checkNotNullExpressionValue(defaultDisplay, "getDefaultDisplay(...)");
DisplayMetrics displayMetrics = new DisplayMetrics();
defaultDisplay.getMetrics(displayMetrics);
return displayMetrics;
}
public static final String q(int i5) {
return new String[]{"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"}[i5];
}
private static final float r(Context context) {
DisplayMetrics displayMetrics = context.getResources().getDisplayMetrics();
Intrinsics.checkNotNullExpressionValue(displayMetrics, "getDisplayMetrics(...)");
return displayMetrics.xdpi / 160;
}
public static final int s() {
return f26123a;
}
public static final int t() {
return f26124b;
}
public static final String u(Integer num) {
return (num != null && num.intValue() == 0) ? "discover" : (num != null && num.intValue() == 1) ? "concierge" : (num != null && num.intValue() == 2) ? "likes_tab" : (num != null && num.intValue() == 3) ? "chat" : (num != null && num.intValue() == 4) ? "profile" : "";
}
public static final String v(String str, long j5) {
String str2;
Calendar calendar = Calendar.getInstance();
if (j5 > 0) {
calendar.setTimeInMillis(j5);
calendar.setTimeZone(TimeZone.getDefault());
} else {
calendar.setTime(new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssXXX", Locale.US).parse(str != null ? new Regex("(\\d{2})(\\d{2})$").g(str, "$1:$2") : null));
}
if (calendar.get(10) == 0) {
str2 = "12:";
} else {
str2 = calendar.get(10) + ":";
}
String str3 = "" + str2;
if (calendar.get(12) < 10) {
str3 = str3 + "0";
}
return (str3 + calendar.get(12)) + (calendar.get(9) == 0 ? " AM" : " PM");
}
public static final boolean w(String str) {
Intrinsics.checkNotNullParameter(str, "value");
String y5 = kotlin.text.h.y(str, '-', '0', true);
for (int i5 = 0; i5 < y5.length(); i5++) {
if (y5.charAt(i5) != '0') {
return false;
}
}
return true;
}
public static final int x(String str) {
Intrinsics.checkNotNullParameter(str, "<this>");
String substring = str.substring(0, kotlin.text.h.U(str, "'", 0, false, 6, (Object) null));
Intrinsics.checkNotNullExpressionValue(substring, "substring(...)");
int parseInt = Integer.parseInt(substring);
String substring2 = str.substring(kotlin.text.h.U(str, "'", 0, false, 6, (Object) null) + 1, kotlin.text.h.U(str, "\"", 0, false, 6, (Object) null));
Intrinsics.checkNotNullExpressionValue(substring2, "substring(...)");
return (parseInt * 12) + Integer.parseInt(substring2);
}
public static final String y(int i5) {
return (i5 / 12) + "'" + (i5 % 12) + "\"";
}
public static final byte[] z(String str) {
Intrinsics.checkNotNullParameter(str, "hexString");
int length = str.length();
byte[] bArr = new byte[length / 2];
kotlin.ranges.c n5 = kotlin.ranges.f.n(kotlin.ranges.f.o(0, length), 2);
int e5 = n5.e();
int g5 = n5.g();
int j5 = n5.j();
if ((j5 > 0 && e5 <= g5) || (j5 < 0 && g5 <= e5)) {
while (true) {
bArr[e5 / 2] = (byte) ((CharsKt.d(str.charAt(e5), 16) << 4) + CharsKt.d(str.charAt(e5 + 1), 16));
if (e5 == g5) {
break;
}
e5 += j5;
}
}
return bArr;
}
}