package com.bytedance.sdk.component.ef;

import android.annotation.SuppressLint;
import android.annotation.TargetApi;
import android.content.Context;
import android.graphics.Paint;
import android.net.Uri;
import android.os.Build;
import android.text.TextUtils;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewParent;
import android.webkit.DownloadListener;
import android.webkit.RenderProcessGoneDetail;
import android.webkit.WebChromeClient;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import android.widget.AbsListView;
import android.widget.FrameLayout;
import android.widget.HorizontalScrollView;
import android.widget.ScrollView;
import com.bytedance.sdk.component.ef.fm;
import com.bytedance.sdk.component.utils.gzf;
import com.bytedance.sdk.component.utils.hlt;
import java.util.List;
import java.util.Map;
import java.util.concurrent.atomic.AtomicBoolean;
import org.json.JSONObject;
import tv.danmaku.ijk.media.player.IjkMediaPlayer;

/* JADX INFO: loaded from: classes.dex */
public class wsy extends FrameLayout {
    private static yz tzk;
    private float ai;
    private JSONObject ajl;
    private AtomicBoolean bx;
    private boolean dsz;
    private long duv;

    /* JADX INFO: renamed from: ef, reason: collision with root package name */
    private float f6605ef;
    private View fhx;
    public int fm;

    /* JADX INFO: renamed from: gc, reason: collision with root package name */
    private Context f6606gc;
    private List<String> gof;
    private com.bytedance.sdk.component.ef.yz gqi;
    private float gzf;

    /* JADX INFO: renamed from: ha, reason: collision with root package name */
    private ro f6607ha;
    private WebViewClient hi;
    private boolean hlt;
    private AttributeSet hxv;
    private fm.InterfaceC0035fm irt;
    private String jnr;
    private long ku;

    /* JADX INFO: renamed from: lb, reason: collision with root package name */
    public int f6608lb;
    private boolean lse;
    private long lz;
    private boolean maa;
    private AtomicBoolean mon;
    private com.bytedance.sdk.component.ef.jnr mq;
    private lb nt;
    private float ol;
    private volatile WebView onz;
    private hlt pkk;

    /* JADX INFO: renamed from: qf, reason: collision with root package name */
    private long f6609qf;
    private com.bytedance.sdk.component.ef.fm qhl;
    public int ro;
    private boolean sds;
    private long vt;
    private int wbw;
    private boolean wey;
    private boolean wsy;
    private float wu;
    private AtomicBoolean xgn;
    private com.bytedance.sdk.component.ef.ro.fm yz;
    private jnr zan;

    public static class fm extends WebViewClient {
        @Override // android.webkit.WebViewClient
        public boolean onRenderProcessGone(final WebView webView, RenderProcessGoneDetail renderProcessGoneDetail) {
            if (Build.VERSION.SDK_INT < 26) {
                return super.onRenderProcessGone(webView, renderProcessGoneDetail);
            }
            if (webView == null) {
                return true;
            }
            webView.post(new Runnable() { // from class: com.bytedance.sdk.component.ef.wsy.fm.1
                @Override // java.lang.Runnable
                public void run() {
                    try {
                        ViewGroup viewGroup = (ViewGroup) webView.getParent();
                        if (viewGroup != null) {
                            viewGroup.removeView(webView);
                        }
                        webView.destroy();
                    } catch (Exception unused) {
                    }
                }
            });
            return true;
        }
    }

    public interface jnr {
    }

    public enum lb {
        ADS("ads"),
        ADS_V3("ads_v3"),
        ADS_V4("ads_v4"),
        ENDCARD("endcard"),
        USER_AGENT("ua"),
        PLAYABLE("playable"),
        DSP("dsp"),
        PRIVACY("privacy"),
        VAST_ENDCARD("vast_endcard"),
        EASY_PLAYABLE("easy_playable"),
        LANDING_PAGE("landing_page"),
        LANDING_PAGE_LOADING("lp_loading"),
        LANDING_PAGE_PRE_RENDER("lp_pre_render");

        public final String onz;

        lb(String str) {
            this.onz = str;
        }
    }

    public interface ro {
    }

    public interface yz {
        WebView fm(Context context, AttributeSet attributeSet, int i10, lb lbVar);
    }

    public wsy(Context context, lb lbVar) {
        this(fm(context), false, lbVar);
    }

    private static Context fm(Context context) {
        return context;
    }

    private void gof() {
        if (this.onz == null) {
            return;
        }
        try {
            this.onz.removeJavascriptInterface("searchBoxJavaBridge_");
            this.onz.removeJavascriptInterface("accessibility");
            this.onz.removeJavascriptInterface("accessibilityTraversal");
        } catch (Throwable unused) {
        }
    }

    private void gqi() {
        try {
            WebSettings settings = this.onz.getSettings();
            if (settings != null) {
                settings.setSavePassword(false);
            }
        } catch (Throwable unused) {
        }
    }

    private static void lb(Context context) {
    }

    public static void setDataDirectorySuffix(String str) {
        if (Build.VERSION.SDK_INT >= 28) {
            WebView.setDataDirectorySuffix(str);
        }
    }

    public static void setWebViewProvider(yz yzVar) {
        tzk = yzVar;
    }

    private void wey() {
        if (this.pkk == null) {
            this.bx.set(false);
            this.pkk = new hlt(getContext());
        }
        new Object() { // from class: com.bytedance.sdk.component.ef.wsy.1
        };
        this.bx.set(true);
    }

    public void a_(String str) {
        try {
            setJavaScriptEnabled(str);
            this.onz.loadUrl(str);
        } catch (Throwable unused) {
        }
    }

    public void ajl() {
        if (this.onz != null) {
            removeAllViews();
            setBackground(null);
            try {
                this.onz.setId(520093704);
            } catch (Throwable unused) {
            }
            addView(this.onz, new FrameLayout.LayoutParams(-1, -1));
        }
    }

    public void b_(String str) {
        try {
            this.onz.removeJavascriptInterface(str);
        } catch (Throwable unused) {
        }
    }

    @Override // android.view.View
    public void computeScroll() {
        if (this.onz == null) {
            return;
        }
        try {
            this.onz.computeScroll();
        } catch (Throwable unused) {
        }
    }

    @Override // android.view.ViewGroup, android.view.View
    public boolean dispatchTouchEvent(MotionEvent motionEvent) {
        try {
            return super.dispatchTouchEvent(motionEvent);
        } catch (Exception unused) {
            return false;
        }
    }

    public void dsz() {
        try {
            this.onz.clearHistory();
        } catch (Throwable unused) {
        }
    }

    public void duv() {
        if (this.onz != null) {
            this.onz.onResume();
        }
    }

    public void ef() {
        try {
            this.onz.goBack();
        } catch (Throwable unused) {
        }
    }

    public void fhx() {
        if (this.onz == null) {
            return;
        }
        lb lbVar = this.nt;
        if (lbVar != lb.ADS && lbVar != lb.ADS_V3 && lbVar != lb.ADS_V4) {
            gzf.fm(this);
        } else {
            try {
                this.onz.destroy();
            } catch (Throwable unused) {
            }
        }
    }

    public View getArbitrageLoadingView() {
        return this.fhx;
    }

    public int getContentHeight() {
        if (this.onz == null) {
            return 0;
        }
        try {
            return this.onz.getContentHeight();
        } catch (Throwable unused) {
            return 1;
        }
    }

    public long getLandingPageClickBegin() {
        return this.lz;
    }

    public long getLandingPageClickEnd() {
        return this.f6609qf;
    }

    public com.bytedance.sdk.component.ef.ro.fm getMaterialMeta() {
        return this.yz;
    }

    public String getOriginalUrl() {
        String url;
        if (this.onz == null) {
            return null;
        }
        try {
            String originalUrl = this.onz.getOriginalUrl();
            return (originalUrl == null || !originalUrl.startsWith("data:text/html") || (url = this.onz.getUrl()) == null) ? originalUrl : url.startsWith("file://") ? url : originalUrl;
        } catch (Throwable unused) {
            return null;
        }
    }

    public int getProgress() {
        if (this.onz == null) {
            return 0;
        }
        try {
            return this.onz.getProgress();
        } catch (Throwable unused) {
            return 100;
        }
    }

    public lb getScene() {
        return this.nt;
    }

    @Override // android.view.View
    public String getTag() {
        return this.jnr;
    }

    public String getUrl() {
        if (this.onz == null) {
            return null;
        }
        try {
            return this.onz.getUrl();
        } catch (Throwable unused) {
            return null;
        }
    }

    public String getUserAgentString() {
        if (this.onz == null) {
            return "";
        }
        try {
            return this.onz.getSettings().getUserAgentString();
        } catch (Throwable unused) {
            return "";
        }
    }

    public WebView getWebView() {
        return this.onz;
    }

    public WebViewClient getWebViewClient() {
        return this.hi;
    }

    @Override // android.view.View
    public boolean hasOverlappingRendering() {
        return false;
    }

    public void irt() {
        try {
            this.onz.clearView();
        } catch (Throwable unused) {
        }
    }

    public void jnr() {
        try {
            if (this.onz == null) {
                this.onz = fm(this.hxv, 0);
            }
            ajl();
            ro(fm(this.f6606gc));
        } catch (Throwable th) {
            th.getMessage();
        }
    }

    public boolean k_() {
        return this.wey;
    }

    public void ku() {
        try {
            this.onz.goForward();
        } catch (Throwable unused) {
        }
    }

    @Override // android.view.ViewGroup, android.view.View
    public void onAttachedToWindow() {
        super.onAttachedToWindow();
        this.xgn.set(true);
        if (!this.mon.get() || this.bx.get()) {
            return;
        }
        wey();
    }

    @Override // android.view.ViewGroup, android.view.View
    public void onDetachedFromWindow() {
        super.onDetachedFromWindow();
        this.xgn.set(false);
    }

    @Override // android.view.ViewGroup
    @SuppressLint({"ClickableViewAccessibility"})
    public boolean onInterceptTouchEvent(MotionEvent motionEvent) {
        ViewParent viewParentFm;
        try {
            fm(motionEvent);
            boolean zOnInterceptTouchEvent = super.onInterceptTouchEvent(motionEvent);
            if ((motionEvent.getActionMasked() == 2 || motionEvent.getActionMasked() == 0) && this.dsz && (viewParentFm = fm(this)) != null) {
                viewParentFm.requestDisallowInterceptTouchEvent(true);
            }
            return zOnInterceptTouchEvent;
        } catch (Throwable unused) {
            return super.onInterceptTouchEvent(motionEvent);
        }
    }

    @Override // android.view.View
    public void onWindowFocusChanged(boolean z10) {
    }

    public void onz() {
        if (this.onz == null) {
            return;
        }
        try {
            this.onz.onPause();
        } catch (Throwable unused) {
        }
    }

    public void qhl() {
        try {
            this.onz.pauseTimers();
        } catch (Throwable unused) {
        }
    }

    @Override // android.view.ViewGroup
    public void removeAllViews() {
        try {
            this.onz.removeAllViews();
        } catch (Throwable unused) {
        }
    }

    public boolean ro() {
        return this.sds;
    }

    public void setAllowFileAccess(boolean z10) {
        try {
            this.onz.getSettings().setAllowFileAccess(z10);
        } catch (Throwable unused) {
        }
    }

    @Override // android.view.View
    public void setAlpha(float f10) {
        try {
            super.setAlpha(f10);
            this.onz.setAlpha(f10);
        } catch (Throwable unused) {
        }
    }

    @Override // android.view.View
    public void setBackgroundColor(int i10) {
        try {
            this.onz.setBackgroundColor(i10);
        } catch (Throwable unused) {
        }
    }

    public void setBuiltInZoomControls(boolean z10) {
        try {
            this.onz.getSettings().setBuiltInZoomControls(z10);
        } catch (Throwable unused) {
        }
    }

    public void setCacheMode(int i10) {
        try {
            this.onz.getSettings().setCacheMode(i10);
        } catch (Throwable unused) {
        }
    }

    public void setCalculationMethod(int i10) {
        this.wbw = i10;
    }

    public void setDatabaseEnabled(boolean z10) {
        try {
            this.onz.getSettings().setDatabaseEnabled(z10);
        } catch (Throwable unused) {
        }
    }

    public void setDeepShakeValue(float f10) {
        this.ai = f10;
    }

    public void setDefaultFontSize(int i10) {
        try {
            this.onz.getSettings().setDefaultFontSize(i10);
        } catch (Throwable unused) {
        }
    }

    public void setDefaultTextEncodingName(String str) {
        try {
            this.onz.getSettings().setDefaultTextEncodingName(str);
        } catch (Throwable unused) {
        }
    }

    public void setDisplayZoomControls(boolean z10) {
        try {
            this.onz.getSettings().setDisplayZoomControls(z10);
        } catch (Throwable unused) {
        }
    }

    public void setDomStorageEnabled(boolean z10) {
        try {
            this.onz.getSettings().setDomStorageEnabled(z10);
        } catch (Throwable unused) {
        }
    }

    public void setDownloadListener(DownloadListener downloadListener) {
        try {
            this.onz.setDownloadListener(downloadListener);
        } catch (Throwable unused) {
        }
    }

    public void setIsPreventTouchEvent(boolean z10) {
        this.dsz = z10;
    }

    public void setJavaScriptCanOpenWindowsAutomatically(boolean z10) {
        try {
            this.onz.getSettings().setJavaScriptCanOpenWindowsAutomatically(z10);
        } catch (Throwable unused) {
        }
    }

    public void setJavaScriptEnabled(boolean z10) {
        try {
            this.onz.getSettings().setJavaScriptEnabled(z10);
        } catch (Throwable unused) {
        }
    }

    public void setLandingPage(boolean z10) {
        this.wsy = z10;
    }

    public void setLandingPageClickBegin(long j10) {
        this.lz = j10;
    }

    public void setLandingPageClickEnd(long j10) {
        this.f6609qf = j10;
    }

    @Override // android.view.View
    public void setLayerType(int i10, Paint paint) {
        try {
            if (this.onz != null) {
                this.onz.setLayerType(i10, paint);
            }
        } catch (Throwable unused) {
        }
    }

    public void setLayoutAlgorithm(WebSettings.LayoutAlgorithm layoutAlgorithm) {
        try {
            this.onz.getSettings().setLayoutAlgorithm(layoutAlgorithm);
        } catch (Throwable unused) {
        }
    }

    public void setLoadWithOverviewMode(boolean z10) {
        try {
            this.onz.getSettings().setLoadWithOverviewMode(z10);
        } catch (Throwable unused) {
        }
    }

    public void setLpPreRender(boolean z10) {
        this.wey = z10;
    }

    public void setMaterialMeta(com.bytedance.sdk.component.ef.ro.fm fmVar) {
        this.yz = fmVar;
    }

    public void setMixedContentMode(int i10) {
        try {
            this.onz.getSettings().setMixedContentMode(i10);
        } catch (Throwable unused) {
        }
    }

    public void setNetworkAvailable(boolean z10) {
        try {
            this.onz.setNetworkAvailable(z10);
        } catch (Throwable unused) {
        }
    }

    public void setOnShakeListener(ro roVar) {
        this.f6607ha = roVar;
    }

    @Override // android.view.View
    public void setOverScrollMode(int i10) {
        try {
            if (this.onz != null) {
                this.onz.setOverScrollMode(i10);
            }
            super.setOverScrollMode(i10);
        } catch (Throwable unused) {
        }
    }

    public void setPreError(boolean z10) {
        this.hlt = z10;
    }

    public void setPreFinish(boolean z10) {
        this.maa = z10;
    }

    public void setPreProgressHundred(boolean z10) {
        this.lse = z10;
    }

    public void setPreStart(boolean z10) {
        this.sds = z10;
    }

    public void setRecycler(boolean z10) {
        if (this.onz == null || !(this.onz instanceof ajl)) {
            return;
        }
        ((ajl) this.onz).setRecycler(z10);
    }

    public void setShakeValue(float f10) {
        this.gzf = f10;
    }

    public void setSupportZoom(boolean z10) {
        try {
            this.onz.getSettings().setSupportZoom(z10);
        } catch (Throwable unused) {
        }
    }

    public void setTag(String str) {
        this.jnr = str;
        com.bytedance.sdk.component.ef.fm fmVar = this.qhl;
        if (fmVar != null) {
            fmVar.fm(str);
        }
        com.bytedance.sdk.component.ef.yz yzVar = this.gqi;
        if (yzVar != null) {
            yzVar.fm(str);
        }
    }

    public void setTouchStateListener(jnr jnrVar) {
        this.zan = jnrVar;
    }

    public void setUseWideViewPort(boolean z10) {
        try {
            this.onz.getSettings().setUseWideViewPort(z10);
        } catch (Throwable unused) {
        }
    }

    public void setUserAgentString(String str) {
        try {
            this.onz.getSettings().setUserAgentString(str);
        } catch (Throwable unused) {
        }
    }

    @Override // android.view.View
    public void setVisibility(int i10) {
        try {
            super.setVisibility(i10);
            if (this.onz != null) {
                this.onz.setVisibility(i10);
            }
        } catch (Throwable unused) {
        }
    }

    public void setWebChromeClient(WebChromeClient webChromeClient) {
        try {
            this.onz.setWebChromeClient(webChromeClient);
        } catch (Throwable unused) {
        }
    }

    public void setWebTouchProxy(com.bytedance.sdk.component.ef.jnr jnrVar) {
        this.mq = jnrVar;
        if (this.onz instanceof ajl) {
            ((ajl) this.onz).setWebEventProxy(jnrVar);
        }
    }

    public void setWebView(WebView webView) {
        this.onz = webView;
    }

    /* JADX WARN: Multi-variable type inference failed */
    public void setWebViewClient(WebViewClient webViewClient) {
        try {
            if (webViewClient instanceof jnr) {
                setTouchStateListener((jnr) webViewClient);
            } else {
                setTouchStateListener(null);
            }
            if (webViewClient == 0) {
                webViewClient = new fm();
            }
            this.hi = webViewClient;
            this.onz.setWebViewClient(new wu(this.irt, webViewClient, this.gof));
        } catch (Throwable unused) {
        }
    }

    public void setWriggleValue(float f10) {
        this.ol = f10;
    }

    public boolean vt() {
        if (this.onz == null) {
            return false;
        }
        try {
            return this.onz.canGoForward();
        } catch (Throwable unused) {
            return false;
        }
    }

    public void wsy() {
        try {
            this.onz.stopLoading();
        } catch (Throwable unused) {
        }
    }

    public boolean wu() {
        if (this.onz == null) {
            return false;
        }
        try {
            return this.onz.canGoBack();
        } catch (Throwable unused) {
            return false;
        }
    }

    public boolean yz() {
        return this.lse;
    }

    public wsy(Context context, boolean z10, lb lbVar) {
        super(fm(context));
        this.wu = 0.0f;
        this.f6605ef = 0.0f;
        this.vt = 0L;
        this.ku = 0L;
        this.duv = 0L;
        this.dsz = false;
        this.gzf = 20.0f;
        this.ol = 50.0f;
        this.xgn = new AtomicBoolean();
        this.mon = new AtomicBoolean();
        this.bx = new AtomicBoolean();
        this.f6606gc = context;
        this.nt = lbVar;
        if (z10) {
            return;
        }
        try {
            this.onz = fm((AttributeSet) null, 0);
            ajl();
        } catch (Throwable unused) {
        }
        ro(fm(context));
    }

    private void ro(Context context) {
        lb(context);
        gqi();
        gof();
    }

    private void setJavaScriptEnabled(String str) {
        WebSettings settings;
        try {
            if (TextUtils.isEmpty(str) || (settings = this.onz.getSettings()) == null) {
                return;
            }
            if (Uri.parse(str).getScheme().equalsIgnoreCase("file")) {
                settings.setJavaScriptEnabled(false);
            } else {
                settings.setJavaScriptEnabled(true);
            }
        } catch (Throwable unused) {
        }
    }

    @SuppressLint({"ClickableViewAccessibility"})
    public void fm(boolean z10, int i10, int i11, List<Integer> list, int i12, List<String> list2) {
        if (z10 && this.onz != null && (this.onz instanceof ajl)) {
            this.qhl = new com.bytedance.sdk.component.ef.fm(this.f6606gc, i10, i11, list, i12);
            this.gof = list2;
            if (!TextUtils.isEmpty(this.jnr)) {
                this.qhl.fm(this.jnr);
            }
            ((ajl) this.onz).setTouchListenerProxy(this.qhl);
            this.irt = this.qhl.fm();
        }
    }

    public boolean lb() {
        return this.maa;
    }

    private static boolean lb(View view) {
        try {
            Class<?> clsLoadClass = view.getClass().getClassLoader().loadClass("android.support.v4.view.ScrollingView");
            if (clsLoadClass != null) {
                if (clsLoadClass.isInstance(view)) {
                    return true;
                }
            }
        } catch (Throwable unused) {
        }
        try {
            Class<?> clsLoadClass2 = view.getClass().getClassLoader().loadClass("androidx.core.view.ScrollingView");
            if (clsLoadClass2 != null) {
                return clsLoadClass2.isInstance(view);
            }
            return false;
        } catch (Throwable unused2) {
            return false;
        }
    }

    private static boolean ro(View view) {
        try {
            Class<?> clsLoadClass = view.getClass().getClassLoader().loadClass("android.support.v4.view.ViewPager");
            if (clsLoadClass != null) {
                if (clsLoadClass.isInstance(view)) {
                    return true;
                }
            }
        } catch (Throwable unused) {
        }
        try {
            Class<?> clsLoadClass2 = view.getClass().getClassLoader().loadClass("androidx.viewpager.widget.ViewPager");
            if (clsLoadClass2 != null) {
                return clsLoadClass2.isInstance(view);
            }
            return false;
        } catch (Throwable unused2) {
            return false;
        }
    }

    public void fm(int i10, long j10) {
        if (this.onz == null || !(this.onz instanceof ajl)) {
            return;
        }
        this.gqi = new com.bytedance.sdk.component.ef.yz(this.f6606gc, this.qhl, i10, j10, this);
        if (!TextUtils.isEmpty(this.jnr)) {
            this.gqi.fm(this.jnr);
        }
        ((ajl) this.onz).setTouchListenerProxy(this.gqi);
    }

    public void fm(boolean z10, View view) {
        if (z10) {
            this.fhx = view;
            view.setVisibility(8);
            View view2 = this.fhx;
            if (view2 == null || view2.getParent() != null) {
                return;
            }
            addView(this.fhx, new FrameLayout.LayoutParams(-1, -1));
        }
    }

    private WebView fm(AttributeSet attributeSet, int i10) {
        yz yzVar = tzk;
        if (yzVar != null) {
            return yzVar.fm(getContext(), attributeSet, i10, this.nt);
        }
        if (attributeSet == null) {
            return new WebView(fm(this.f6606gc));
        }
        return new WebView(fm(this.f6606gc), attributeSet);
    }

    @TargetApi(19)
    public void fm(String str, Map<String, String> map) {
        try {
            setJavaScriptEnabled(str);
            this.onz.loadUrl(str, map);
        } catch (Throwable unused) {
        }
    }

    public void fm(String str, String str2, String str3, String str4, String str5) {
        try {
            setJavaScriptEnabled(str);
            this.onz.loadDataWithBaseURL(str, str2, str3, str4, str5);
        } catch (Throwable unused) {
        }
    }

    public void fm(boolean z10) {
        try {
            this.onz.clearCache(z10);
        } catch (Throwable unused) {
        }
    }

    /* JADX WARN: Multi-variable type inference failed */
    public ViewParent fm(View view) {
        ViewParent parent = view.getParent();
        if ((parent instanceof AbsListView) || (parent instanceof ScrollView) || (parent instanceof HorizontalScrollView) || !(parent instanceof View)) {
            return parent;
        }
        View view2 = (View) parent;
        return (ro(view2) || lb(view2)) ? parent : fm(view2);
    }

    @SuppressLint({"JavascriptInterface"})
    public void fm(Object obj, String str) {
        try {
            this.onz.addJavascriptInterface(obj, str);
        } catch (Throwable unused) {
        }
    }

    private void fm(MotionEvent motionEvent) {
        if (!this.wsy || this.yz == null) {
            return;
        }
        if ((this.jnr == null && this.ajl == null) || motionEvent == null) {
            return;
        }
        try {
            int action = motionEvent.getAction();
            if (action == 0) {
                this.wu = motionEvent.getRawX();
                this.f6605ef = motionEvent.getRawY();
                this.vt = System.currentTimeMillis();
                this.ajl = new JSONObject();
                if (this.onz != null) {
                    this.lz = this.vt;
                    return;
                }
                return;
            }
            if (action == 1 || action == 3) {
                this.ajl.put("start_x", String.valueOf(this.wu));
                this.ajl.put("start_y", String.valueOf(this.f6605ef));
                this.ajl.put("offset_x", String.valueOf(motionEvent.getRawX() - this.wu));
                this.ajl.put("offset_y", String.valueOf(motionEvent.getRawY() - this.f6605ef));
                this.ajl.put(IjkMediaPlayer.OnNativeInvokeListener.ARG_URL, String.valueOf(getUrl()));
                this.ajl.put("tag", "");
                this.ku = System.currentTimeMillis();
                if (this.onz != null) {
                    this.f6609qf = this.ku;
                }
                this.ajl.put("down_time", this.vt);
                this.ajl.put("up_time", this.ku);
                if (com.bytedance.sdk.component.ef.fm.fm.fm().ro() != null) {
                    long j10 = this.duv;
                    long j11 = this.vt;
                    if (j10 != j11) {
                        this.duv = j11;
                        com.bytedance.sdk.component.ef.fm.fm.fm().ro().fm(this.yz, this.jnr, "in_web_click", this.ajl, this.ku - this.vt);
                    }
                }
            }
        } catch (Throwable unused) {
        }
    }
}
