得物.apk(点击下载) / c.java


package u91;

import a40.f;
import android.app.Activity;
import android.content.Context;
import android.net.Uri;
import android.os.Bundle;
import com.meituan.robust.ChangeQuickRedirect;
import com.meituan.robust.PatchProxy;
import com.meituan.robust.PatchProxyResult;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;

/* compiled from: Navigator */
public class c {
    public static ChangeQuickRedirect changeQuickRedirect;
    private static c mInstance;

    /* compiled from: Navigator */
    public static class a {
        public static ChangeQuickRedirect changeQuickRedirect;

        /* renamed from: a  reason: collision with root package name */
        public String f38863a;
        public Bundle b = new Bundle();

        /* renamed from: c  reason: collision with root package name */
        public int f38864c = -1;
        public int d = -1;
        public int e = -1;

        public int a() {
            PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 313624, new Class[0], Integer.TYPE);
            return proxy.isSupported ? ((Integer) proxy.result).intValue() : this.f38864c;
        }

        public int b() {
            PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 313625, new Class[0], Integer.TYPE);
            return proxy.isSupported ? ((Integer) proxy.result).intValue() : this.d;
        }

        public int c() {
            PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 313626, new Class[0], Integer.TYPE);
            return proxy.isSupported ? ((Integer) proxy.result).intValue() : this.e;
        }

        public Bundle d() {
            PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 313619, new Class[0], Bundle.class);
            return proxy.isSupported ? (Bundle) proxy.result : this.b;
        }

        public boolean e(Activity activity) {
            PatchProxyResult proxy = PatchProxy.proxy(new Object[]{activity}, this, changeQuickRedirect, false, 313635, new Class[]{Activity.class}, Boolean.TYPE);
            if (proxy.isSupported) {
                return ((Boolean) proxy.result).booleanValue();
            }
            if (ei.a.a(this.f38863a)) {
                return false;
            }
            return e.I(activity, this);
        }

        public boolean f(Context context) {
            PatchProxyResult proxy = PatchProxy.proxy(new Object[]{context}, this, changeQuickRedirect, false, 313634, new Class[]{Context.class}, Boolean.TYPE);
            if (proxy.isSupported) {
                return ((Boolean) proxy.result).booleanValue();
            }
            if (ei.a.a(this.f38863a)) {
                return false;
            }
            return e.I(context, this);
        }

        public a g(int i) {
            PatchProxyResult proxy = PatchProxy.proxy(new Object[]{new Integer(i)}, this, changeQuickRedirect, false, 313622, new Class[]{Integer.TYPE}, a.class);
            if (proxy.isSupported) {
                return (a) proxy.result;
            }
            this.e = i;
            return this;
        }

        public a h(String str, String str2) {
            PatchProxyResult proxy = PatchProxy.proxy(new Object[]{str, str2}, this, changeQuickRedirect, false, 313628, new Class[]{String.class, String.class}, a.class);
            if (proxy.isSupported) {
                return (a) proxy.result;
            }
            this.b.putString(str, str2);
            return this;
        }
    }

    public static c c() {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[0], null, changeQuickRedirect, true, 313613, new Class[0], c.class);
        if (proxy.isSupported) {
            return (c) proxy.result;
        }
        if (mInstance == null) {
            mInstance = new c();
        }
        return mInstance;
    }

    public a a(String str) {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[]{str}, this, changeQuickRedirect, false, 313614, new Class[]{String.class}, a.class);
        if (proxy.isSupported) {
            return (a) proxy.result;
        }
        a aVar = new a();
        if (ei.a.a(str)) {
            return aVar;
        }
        if (Uri.parse(str).getScheme() == null) {
            str = f.g("https://m.poizon.com/router", str);
        }
        if (!PatchProxy.proxy(new Object[]{str}, aVar, a.changeQuickRedirect, false, 313617, new Class[]{String.class}, Void.TYPE).isSupported) {
            aVar.f38863a = str;
        }
        return aVar;
    }

    public a b(String str) {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[]{str}, this, changeQuickRedirect, false, 313615, new Class[]{String.class}, a.class);
        if (proxy.isSupported) {
            return (a) proxy.result;
        }
        a aVar = new a();
        if (ei.a.a(str)) {
            return aVar;
        }
        PatchProxyResult proxy2 = PatchProxy.proxy(new Object[]{str}, aVar, a.changeQuickRedirect, false, 313618, new Class[]{String.class}, a.class);
        if (proxy2.isSupported) {
            a aVar2 = (a) proxy2.result;
        } else {
            try {
                aVar.f38863a = "https://m.poizon.com/router/web/BrowserPage?loadUrl=" + URLEncoder.encode(str, "UTF-8");
            } catch (UnsupportedEncodingException e) {
                e.printStackTrace();
                aVar.f38863a = str;
            }
        }
        return aVar;
    }
}