导航菜单

页面标题

页面副标题

Perplexity v2.48.1 - b.java 源代码

正在查看: Perplexity v2.48.1 应用的 b.java JAVA 源代码文件

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


package r;

import gm.j;
import im.f;
import jm.h;
import kotlin.LazyKt;
import kotlin.Pair;
import kotlin.collections.MapsKt;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.internal.Intrinsics;
import l0.z2;
import ok.n;
import xb.i0;

public final class b {

    public static final f f39935j;

    public static final f f39936k;

    public final e f39937a;

    public final al.d f39938b;

    public final al.d f39939c;

    public final al.d f39940d;

    public final al.d f39941e;

    public final al.d f39942f;

    public final al.d f39943g;

    public final al.d f39944h;

    public final al.d f39945i;

    static {
        h hVar = h.y;
        f39935j = hVar.addAll(i0.A(new String[]{"www.perplexity.ai", "testing.perplexity.ai", "staging.perplexity.ai", "experimental.perplexity.ai"}));
        f39936k = hVar.addAll(i0.A(new String[]{"https://www.perplexity.ai/search/render", "https://staging.perplexity.ai/search/render", "https://testing.perplexity.ai/search/render", "https://experimental.perplexity.ai/search/render"}));
        hVar.addAll(i0.A(new String[]{"whisper-1", "gpt-4o-transcribe", "gpt-4o-mini-transcribe"}));
        hVar.addAll(i0.A(new String[]{"", "near_field", "far_field"}));
    }

    public b(e eVar) {
        Intrinsics.h(eVar, "debugPrefs");
        this.f39937a = eVar;
        final int i10 = 0;
        this.f39938b = LazyKt.a(new Function0(this) {

            public final b f39934x;

            {
                this.f39934x = this;
            }

            public final Object invoke() {
                b bVar = this.f39934x;
                switch (i10) {
                    case 0:
                        bVar.f39937a.f39952a.getString("base_host", null);
                        Jn.c.a.b("Base host: ".concat("www.perplexity.ai"), new Object[0]);
                        return "www.perplexity.ai";
                    case 1:
                        bVar.f39937a.f39952a.getString("base_render_host", null);
                        Jn.c.a.b("Base render host: ".concat("https://www.perplexity.ai/search/render"), new Object[0]);
                        return "https://www.perplexity.ai/search/render";
                    case 2:
                        return "https://" + bVar.a() + '/';
                    case 3:
                        return "wss://" + bVar.a();
                    case 4:
                        j.Q(bVar.a(), "staging", false);
                        return null;
                    case 5:
                        j.Q((String) bVar.f39939c.getValue(), "staging", false);
                        return null;
                    case 6:
                        return MapsKt.g0(new Pair[]{new Pair("X-App-Version", z2.c()), new Pair("X-Client-Version", z2.c()), new Pair("X-Client-Name", "Perplexity-Android"), new Pair("X-Client-Env", (String) bVar.f39945i.getValue()), new Pair("X-App-ApiClient", "android"), new Pair("X-App-ApiVersion", "2.17")});
                    default:
                        if (Intrinsics.c(bVar.a(), "www.perplexity.ai")) {
                            return "prod";
                        }
                        String str = (String) bl.f.H0(j.l0(bVar.a(), new char[]{'.'}));
                        return str == null ? bVar.a() : str;
                }
            }
        });
        final int i11 = 1;
        this.f39939c = LazyKt.a(new Function0(this) {

            public final b f39934x;

            {
                this.f39934x = this;
            }

            public final Object invoke() {
                b bVar = this.f39934x;
                switch (i11) {
                    case 0:
                        bVar.f39937a.f39952a.getString("base_host", null);
                        Jn.c.a.b("Base host: ".concat("www.perplexity.ai"), new Object[0]);
                        return "www.perplexity.ai";
                    case 1:
                        bVar.f39937a.f39952a.getString("base_render_host", null);
                        Jn.c.a.b("Base render host: ".concat("https://www.perplexity.ai/search/render"), new Object[0]);
                        return "https://www.perplexity.ai/search/render";
                    case 2:
                        return "https://" + bVar.a() + '/';
                    case 3:
                        return "wss://" + bVar.a();
                    case 4:
                        j.Q(bVar.a(), "staging", false);
                        return null;
                    case 5:
                        j.Q((String) bVar.f39939c.getValue(), "staging", false);
                        return null;
                    case 6:
                        return MapsKt.g0(new Pair[]{new Pair("X-App-Version", z2.c()), new Pair("X-Client-Version", z2.c()), new Pair("X-Client-Name", "Perplexity-Android"), new Pair("X-Client-Env", (String) bVar.f39945i.getValue()), new Pair("X-App-ApiClient", "android"), new Pair("X-App-ApiVersion", "2.17")});
                    default:
                        if (Intrinsics.c(bVar.a(), "www.perplexity.ai")) {
                            return "prod";
                        }
                        String str = (String) bl.f.H0(j.l0(bVar.a(), new char[]{'.'}));
                        return str == null ? bVar.a() : str;
                }
            }
        });
        final int i12 = 2;
        this.f39940d = LazyKt.a(new Function0(this) {

            public final b f39934x;

            {
                this.f39934x = this;
            }

            public final Object invoke() {
                b bVar = this.f39934x;
                switch (i12) {
                    case 0:
                        bVar.f39937a.f39952a.getString("base_host", null);
                        Jn.c.a.b("Base host: ".concat("www.perplexity.ai"), new Object[0]);
                        return "www.perplexity.ai";
                    case 1:
                        bVar.f39937a.f39952a.getString("base_render_host", null);
                        Jn.c.a.b("Base render host: ".concat("https://www.perplexity.ai/search/render"), new Object[0]);
                        return "https://www.perplexity.ai/search/render";
                    case 2:
                        return "https://" + bVar.a() + '/';
                    case 3:
                        return "wss://" + bVar.a();
                    case 4:
                        j.Q(bVar.a(), "staging", false);
                        return null;
                    case 5:
                        j.Q((String) bVar.f39939c.getValue(), "staging", false);
                        return null;
                    case 6:
                        return MapsKt.g0(new Pair[]{new Pair("X-App-Version", z2.c()), new Pair("X-Client-Version", z2.c()), new Pair("X-Client-Name", "Perplexity-Android"), new Pair("X-Client-Env", (String) bVar.f39945i.getValue()), new Pair("X-App-ApiClient", "android"), new Pair("X-App-ApiVersion", "2.17")});
                    default:
                        if (Intrinsics.c(bVar.a(), "www.perplexity.ai")) {
                            return "prod";
                        }
                        String str = (String) bl.f.H0(j.l0(bVar.a(), new char[]{'.'}));
                        return str == null ? bVar.a() : str;
                }
            }
        });
        final int i13 = 3;
        this.f39941e = LazyKt.a(new Function0(this) {

            public final b f39934x;

            {
                this.f39934x = this;
            }

            public final Object invoke() {
                b bVar = this.f39934x;
                switch (i13) {
                    case 0:
                        bVar.f39937a.f39952a.getString("base_host", null);
                        Jn.c.a.b("Base host: ".concat("www.perplexity.ai"), new Object[0]);
                        return "www.perplexity.ai";
                    case 1:
                        bVar.f39937a.f39952a.getString("base_render_host", null);
                        Jn.c.a.b("Base render host: ".concat("https://www.perplexity.ai/search/render"), new Object[0]);
                        return "https://www.perplexity.ai/search/render";
                    case 2:
                        return "https://" + bVar.a() + '/';
                    case 3:
                        return "wss://" + bVar.a();
                    case 4:
                        j.Q(bVar.a(), "staging", false);
                        return null;
                    case 5:
                        j.Q((String) bVar.f39939c.getValue(), "staging", false);
                        return null;
                    case 6:
                        return MapsKt.g0(new Pair[]{new Pair("X-App-Version", z2.c()), new Pair("X-Client-Version", z2.c()), new Pair("X-Client-Name", "Perplexity-Android"), new Pair("X-Client-Env", (String) bVar.f39945i.getValue()), new Pair("X-App-ApiClient", "android"), new Pair("X-App-ApiVersion", "2.17")});
                    default:
                        if (Intrinsics.c(bVar.a(), "www.perplexity.ai")) {
                            return "prod";
                        }
                        String str = (String) bl.f.H0(j.l0(bVar.a(), new char[]{'.'}));
                        return str == null ? bVar.a() : str;
                }
            }
        });
        this.f39942f = LazyKt.a(new n(9));
        final int i14 = 4;
        LazyKt.a(new Function0(this) {

            public final b f39934x;

            {
                this.f39934x = this;
            }

            public final Object invoke() {
                b bVar = this.f39934x;
                switch (i14) {
                    case 0:
                        bVar.f39937a.f39952a.getString("base_host", null);
                        Jn.c.a.b("Base host: ".concat("www.perplexity.ai"), new Object[0]);
                        return "www.perplexity.ai";
                    case 1:
                        bVar.f39937a.f39952a.getString("base_render_host", null);
                        Jn.c.a.b("Base render host: ".concat("https://www.perplexity.ai/search/render"), new Object[0]);
                        return "https://www.perplexity.ai/search/render";
                    case 2:
                        return "https://" + bVar.a() + '/';
                    case 3:
                        return "wss://" + bVar.a();
                    case 4:
                        j.Q(bVar.a(), "staging", false);
                        return null;
                    case 5:
                        j.Q((String) bVar.f39939c.getValue(), "staging", false);
                        return null;
                    case 6:
                        return MapsKt.g0(new Pair[]{new Pair("X-App-Version", z2.c()), new Pair("X-Client-Version", z2.c()), new Pair("X-Client-Name", "Perplexity-Android"), new Pair("X-Client-Env", (String) bVar.f39945i.getValue()), new Pair("X-App-ApiClient", "android"), new Pair("X-App-ApiVersion", "2.17")});
                    default:
                        if (Intrinsics.c(bVar.a(), "www.perplexity.ai")) {
                            return "prod";
                        }
                        String str = (String) bl.f.H0(j.l0(bVar.a(), new char[]{'.'}));
                        return str == null ? bVar.a() : str;
                }
            }
        });
        final int i15 = 5;
        this.f39943g = LazyKt.a(new Function0(this) {

            public final b f39934x;

            {
                this.f39934x = this;
            }

            public final Object invoke() {
                b bVar = this.f39934x;
                switch (i15) {
                    case 0:
                        bVar.f39937a.f39952a.getString("base_host", null);
                        Jn.c.a.b("Base host: ".concat("www.perplexity.ai"), new Object[0]);
                        return "www.perplexity.ai";
                    case 1:
                        bVar.f39937a.f39952a.getString("base_render_host", null);
                        Jn.c.a.b("Base render host: ".concat("https://www.perplexity.ai/search/render"), new Object[0]);
                        return "https://www.perplexity.ai/search/render";
                    case 2:
                        return "https://" + bVar.a() + '/';
                    case 3:
                        return "wss://" + bVar.a();
                    case 4:
                        j.Q(bVar.a(), "staging", false);
                        return null;
                    case 5:
                        j.Q((String) bVar.f39939c.getValue(), "staging", false);
                        return null;
                    case 6:
                        return MapsKt.g0(new Pair[]{new Pair("X-App-Version", z2.c()), new Pair("X-Client-Version", z2.c()), new Pair("X-Client-Name", "Perplexity-Android"), new Pair("X-Client-Env", (String) bVar.f39945i.getValue()), new Pair("X-App-ApiClient", "android"), new Pair("X-App-ApiVersion", "2.17")});
                    default:
                        if (Intrinsics.c(bVar.a(), "www.perplexity.ai")) {
                            return "prod";
                        }
                        String str = (String) bl.f.H0(j.l0(bVar.a(), new char[]{'.'}));
                        return str == null ? bVar.a() : str;
                }
            }
        });
        final int i16 = 6;
        this.f39944h = LazyKt.a(new Function0(this) {

            public final b f39934x;

            {
                this.f39934x = this;
            }

            public final Object invoke() {
                b bVar = this.f39934x;
                switch (i16) {
                    case 0:
                        bVar.f39937a.f39952a.getString("base_host", null);
                        Jn.c.a.b("Base host: ".concat("www.perplexity.ai"), new Object[0]);
                        return "www.perplexity.ai";
                    case 1:
                        bVar.f39937a.f39952a.getString("base_render_host", null);
                        Jn.c.a.b("Base render host: ".concat("https://www.perplexity.ai/search/render"), new Object[0]);
                        return "https://www.perplexity.ai/search/render";
                    case 2:
                        return "https://" + bVar.a() + '/';
                    case 3:
                        return "wss://" + bVar.a();
                    case 4:
                        j.Q(bVar.a(), "staging", false);
                        return null;
                    case 5:
                        j.Q((String) bVar.f39939c.getValue(), "staging", false);
                        return null;
                    case 6:
                        return MapsKt.g0(new Pair[]{new Pair("X-App-Version", z2.c()), new Pair("X-Client-Version", z2.c()), new Pair("X-Client-Name", "Perplexity-Android"), new Pair("X-Client-Env", (String) bVar.f39945i.getValue()), new Pair("X-App-ApiClient", "android"), new Pair("X-App-ApiVersion", "2.17")});
                    default:
                        if (Intrinsics.c(bVar.a(), "www.perplexity.ai")) {
                            return "prod";
                        }
                        String str = (String) bl.f.H0(j.l0(bVar.a(), new char[]{'.'}));
                        return str == null ? bVar.a() : str;
                }
            }
        });
        final int i17 = 7;
        this.f39945i = LazyKt.a(new Function0(this) {

            public final b f39934x;

            {
                this.f39934x = this;
            }

            public final Object invoke() {
                b bVar = this.f39934x;
                switch (i17) {
                    case 0:
                        bVar.f39937a.f39952a.getString("base_host", null);
                        Jn.c.a.b("Base host: ".concat("www.perplexity.ai"), new Object[0]);
                        return "www.perplexity.ai";
                    case 1:
                        bVar.f39937a.f39952a.getString("base_render_host", null);
                        Jn.c.a.b("Base render host: ".concat("https://www.perplexity.ai/search/render"), new Object[0]);
                        return "https://www.perplexity.ai/search/render";
                    case 2:
                        return "https://" + bVar.a() + '/';
                    case 3:
                        return "wss://" + bVar.a();
                    case 4:
                        j.Q(bVar.a(), "staging", false);
                        return null;
                    case 5:
                        j.Q((String) bVar.f39939c.getValue(), "staging", false);
                        return null;
                    case 6:
                        return MapsKt.g0(new Pair[]{new Pair("X-App-Version", z2.c()), new Pair("X-Client-Version", z2.c()), new Pair("X-Client-Name", "Perplexity-Android"), new Pair("X-Client-Env", (String) bVar.f39945i.getValue()), new Pair("X-App-ApiClient", "android"), new Pair("X-App-ApiVersion", "2.17")});
                    default:
                        if (Intrinsics.c(bVar.a(), "www.perplexity.ai")) {
                            return "prod";
                        }
                        String str = (String) bl.f.H0(j.l0(bVar.a(), new char[]{'.'}));
                        return str == null ? bVar.a() : str;
                }
            }
        });
    }

    public final String a() {
        return (String) this.f39938b.getValue();
    }
}