导航菜单

页面标题

页面副标题

Vesuvius v228 - b4xmainpage.java 源代码

正在查看: Vesuvius v228 应用的 b4xmainpage.java JAVA 源代码文件

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


package com.volcanex.vesuvius;

import android.graphics.Bitmap;
import android.graphics.Paint;
import android.graphics.Path;
import android.graphics.Typeface;
import android.graphics.drawable.Drawable;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.CheckBox;
import android.widget.ImageView;
import android.widget.TextView;
import anywheresoftware.b4a.AbsObjectWrapper;
import anywheresoftware.b4a.B4AClass;
import anywheresoftware.b4a.BA;
import anywheresoftware.b4a.admobwrapper.AdViewWrapper;
import anywheresoftware.b4a.agraham.reflection.Reflection;
import anywheresoftware.b4a.keywords.B4AApplication;
import anywheresoftware.b4a.keywords.Common;
import anywheresoftware.b4a.keywords.DateTime;
import anywheresoftware.b4a.keywords.constants.Colors;
import anywheresoftware.b4a.keywords.constants.DialogResponse;
import anywheresoftware.b4a.keywords.constants.Gravity;
import anywheresoftware.b4a.keywords.constants.TypefaceWrapper;
import anywheresoftware.b4a.objects.B4XCanvas;
import anywheresoftware.b4a.objects.B4XViewWrapper;
import anywheresoftware.b4a.objects.BillingClientWrapper;
import anywheresoftware.b4a.objects.ButtonWrapper;
import anywheresoftware.b4a.objects.CSBuilder;
import anywheresoftware.b4a.objects.CompoundButtonWrapper;
import anywheresoftware.b4a.objects.ConcreteViewWrapper;
import anywheresoftware.b4a.objects.ImageViewWrapper;
import anywheresoftware.b4a.objects.LabelWrapper;
import anywheresoftware.b4a.objects.MapFragmentWrapper;
import anywheresoftware.b4a.objects.PanelWrapper;
import anywheresoftware.b4a.objects.RuntimePermissions;
import anywheresoftware.b4a.objects.ScrollViewWrapper;
import anywheresoftware.b4a.objects.SimpleExoPlayerViewWrapper;
import anywheresoftware.b4a.objects.SimpleExoPlayerWrapper;
import anywheresoftware.b4a.objects.StringUtils;
import anywheresoftware.b4a.objects.Timer;
import anywheresoftware.b4a.objects.collections.JSONParser;
import anywheresoftware.b4a.objects.collections.List;
import anywheresoftware.b4a.objects.collections.Map;
import anywheresoftware.b4a.objects.drawable.CanvasWrapper;
import anywheresoftware.b4a.objects.drawable.ColorDrawable;
import anywheresoftware.b4a.objects.streams.File;
import anywheresoftware.b4a.sql.SQL;
import anywheresoftware.b4j.object.JavaObject;
import b4a.example.dateutils;
import b4a.example3.customlistview;
import com.android.billingclient.api.ProductDetails;
import com.android.billingclient.api.Purchase;
import com.google.android.gms.ads.AdView;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.google.android.gms.maps.model.LatLng;
import com.google.android.gms.maps.model.PinConfig;
import com.google.common.net.HttpHeaders;
import com.google.firebase.analytics.FirebaseAnalytics;
import com.google.firebase.components.BuildConfig;
import com.google.firebase.messaging.ServiceStarter;
import com.volcanex.vesuvius.geodesic;
import igolub.fused.b4a.location.LocationRequestWrapper;
import igolub.fused.b4a.location.LocationResultWrapper;
import igolub.fused.b4a.location.android.location.LocationFWrapper;
import igolub.fused.b4a.location.staticmodules.GranularityWrapper;
import igolub.fused.b4a.location.staticmodules.PriorityWrapper;
import java.io.InputStream;
import java.lang.reflect.Method;
import java.util.HashMap;
import kotlin.KotlinVersion;
import uk.co.martinpearman.b4a.com.google.android.gms.maps.model.Polygon;

public class b4xmainpage extends B4AClass.ImplB4AClass implements BA.SubDelegator {
    private static HashMap<String, Method> htSubs;
    public Common __c = null;
    public boolean _vvvvvvvvvvvvv1 = false;
    public String _vvvvvvvvvvvvv2 = BuildConfig.FLAVOR;
    public B4XViewWrapper.XUI _vvvvvvvvvvvvv3 = null;
    public String _vvvvvvvvvvvvv4 = BuildConfig.FLAVOR;
    public String _vvvvvvvvvvvvv5 = BuildConfig.FLAVOR;
    public int _vvvvvvvvvvvvv6 = 0;
    public boolean _vvvvvvvvvvvvv7 = false;
    public SQL _vvvvvvvvvvvvv0 = null;
    public keyvaluestore _vvvvvvvvvvvvvv1 = null;
    public B4XViewWrapper _vvvvvvvvvvvvvv2 = null;
    public B4XViewWrapper _pnsplash = null;
    public List _vvvvvvvvvvvvvv3 = null;
    public String _vvvvvvvvvvvvvv4 = BuildConfig.FLAVOR;
    public long _video_lastdownloadtime = 0;
    public String _vvvvvvvvvvvvvv5 = BuildConfig.FLAVOR;
    public String _vvvvvvvvvvvvvv6 = BuildConfig.FLAVOR;
    public b4xdialog _vvvvvvvvvvvvvv7 = null;
    public b4xinputtemplate _vvvvvvvvvvvvvv0 = null;
    public b4xlisttemplate _vvvvvvvvvvvvvvv1 = null;
    public b4xdatetemplate _vvvvvvvvvvvvvvv2 = null;
    public feltreports _vvvvvvvvvvvvvvv3 = null;
    public int _vvvvvvvvvvvvvvv4 = 0;
    public boolean _vvvvvvvvvvvvvvv5 = false;
    public boolean _chartgreentwoyears_withdepth = false;
    public boolean _vvvvvvvvvvvvvvv6 = false;
    public boolean _chartgreenmonth_withdepth = false;
    public boolean _vvvvvvvvvvvvvvv7 = false;
    public boolean _chartgreenweek_withdepth = false;
    public boolean _vvvvvvvvvvvvvvv0 = false;
    public boolean _chartbluetwoyears_withdepth = false;
    public boolean _vvvvvvvvvvvvvvvv1 = false;
    public boolean _chartbluemonth_withdepth = false;
    public boolean _vvvvvvvvvvvvvvvv2 = false;
    public boolean _chartblueweek_withdepth = false;
    public boolean _vvvvvvvvvvvvvvvv3 = false;
    public boolean _chartblueday_withdepth = false;
    public boolean _vvvvvvvvvvvvvvvv4 = false;
    public boolean _chartredday_withdepth = false;
    public Map _vvvvvvvvvvvvvvvv5 = null;
    public String _vvvvvvvvvvvvvvvv6 = BuildConfig.FLAVOR;
    public LocationFWrapper _vvvvvvvvvvvvvvvv7 = null;
    public float _vvvvvvvvvvvvvvvv0 = BitmapDescriptorFactory.HUE_RED;
    public List _vvvvvvvvvvvvvvvvv1 = null;
    public List _vvvvvvvvvvvvvvvvv2 = null;
    public JavaObject _vvvvvvvvvvvvvvvvv3 = null;
    public String _vvvvvvvvvvvvvvvvv4 = BuildConfig.FLAVOR;
    public int _vvvvvvvvvvvvvvvvv5 = 0;
    public Map _vvvvvvvvvvvvvvvvv6 = null;
    public ScrollViewWrapper _sv = null;
    public double _volcano_timezoneoffset = 0.0d;
    public String _volcano_timezonename = BuildConfig.FLAVOR;
    public boolean _vvvvvvvvvvvvvvvvv7 = false;
    public boolean _vvvvvvvvvvvvvvvvv0 = false;
    public Timer _vvvvvvvvvvvvvvvvvv1 = null;
    public Timer _vvvvvvvvvvvvvvvvvv2 = null;
    public Timer _vvvvvvvvvvvvvvvvvv3 = null;
    public int _vvvvvvvvvvvvvvvvvv4 = 0;
    public int _pointindex_max = 0;
    public SimpleExoPlayerViewWrapper _simpleexoplayerview1 = null;
    public List _vvvvvvvvvvvvvvvvvv5 = null;
    public List _vvvvvvvvvvvvvvvvvv6 = null;
    public double _vvvvvvvvvvvvvvvvvv7 = 0.0d;
    public List _vvvvvvvvvvvvvvvvvv0 = null;
    public Map _vvvvvvvvvvvvvvvvvvv1 = null;
    public Map _maptr_unused = null;
    public boolean _language_changed = false;
    public Map _vvvvvvvvvvvvvvvvvvv2 = null;
    public int _vvvvvvvvvvvvvvvvvvv3 = 0;
    public StringUtils _vvvvvvvvvvvvvvvvvvv4 = null;
    public RuntimePermissions _vvvvvvvvvvvvvvvvvvv5 = null;
    public int _colour_apptitlebackground = 0;
    public int _colour_apptitletext = 0;
    public int _colour_panelbackground = 0;
    public int _colour_textlink = 0;
    public int _colour_border = 0;
    public int _colour_mappoint_red = 0;
    public int _colour_mappoint_redlight = 0;
    public int _colour_mappoint_green = 0;
    public int _colour_mappoint_greenlight = 0;
    public int _colour_chartpoint_green = 0;
    public int _colour_mappoint_blue = 0;
    public int _colour_mappoint_bluelight = 0;
    public int _size_textstandard = 0;
    public int _size_cornerradius = 0;
    public int _size_panelmargin = 0;
    public int _size_textseparation = 0;
    public boolean _vvvvvvvvvvvvvvvvvvv6 = false;
    public boolean _vvvvvvvvvvvvvvvvvvv7 = false;
    public List _vvvvvvvvvvvvvvvvvvv0 = null;
    public Map _vvvvvvvvvvvvvvvvvvvv1 = null;
    public adshelper _vvvvvvvvvvvvvvvvvvvv2 = null;
    public BillingClientWrapper _vvvvvvvvvvvvvvvvvvvv3 = null;
    public String _billing_key = BuildConfig.FLAVOR;
    public String _no_ads_sku_id = BuildConfig.FLAVOR;
    public String _admob_adpurchasedate = BuildConfig.FLAVOR;
    public String _vvvvvvvvvvvvvvvvvvvv4 = BuildConfig.FLAVOR;
    public String _vvvvvvvvvvvvvvvvvvvv5 = BuildConfig.FLAVOR;
    public xchart _c1 = null;
    public xchart _c2 = null;
    public xchart _c3 = null;
    public xchart _c4 = null;
    public xchart _c5 = null;
    public xchart _c7 = null;
    public xchart _c8 = null;
    public xchart _c6 = null;
    public xchart _c9 = null;
    public xchart _c10 = null;
    public xchart _c11 = null;
    public xchart _c12 = null;
    public xchart _c13 = null;
    public B4XViewWrapper _alert_bulletins = null;
    public LabelWrapper _alert_changed = null;
    public B4XViewWrapper _alert_level = null;
    public B4XViewWrapper _alert_message = null;
    public B4XViewWrapper _alert_title = null;
    public B4XViewWrapper _pnalert = null;
    public B4XViewWrapper _pnwebcam = null;
    public B4XViewWrapper _webcam_title = null;
    public B4XViewWrapper _webcam_caption = null;
    public B4XViewWrapper _webcam_image = null;
    public B4XViewWrapper _webcam_overlay = null;
    public B4XViewWrapper _webcam_source = null;
    public B4XViewWrapper _webcam_updated = null;
    public B4XViewWrapper _webcam_play = null;
    public B4XViewWrapper _webcam_timelapse = null;
    public ddd _vvvvvvvvvvvvvvvvvvvv6 = null;
    public B4XViewWrapper _pnevents = null;
    public B4XViewWrapper _events_title = null;
    public B4XViewWrapper _events_map = null;
    public B4XViewWrapper _events_plot = null;
    public customlistview _events_clv = null;
    public Map _events_clv_idmap = null;
    public B4XViewWrapper _events_link_map = null;
    public B4XViewWrapper _events_ingv = null;
    public B4XViewWrapper _hazard_distance = null;
    public B4XViewWrapper _hazard_level = null;
    public B4XViewWrapper _hazard_message = null;
    public B4XViewWrapper _hazard_plan = null;
    public B4XViewWrapper _hazard_title = null;
    public B4XViewWrapper _pnhazard = null;
    public B4XViewWrapper _webcam_overlay_change = null;
    public int _vvvvvvvvvvvvvvvvvvvv7 = 0;
    public int _vvvvvvvvvvvvvvvvvvvv0 = 0;
    public int _vvvvvvvvvvvvvvvvvvvvv1 = 0;
    public int _vvvvvvvvvvvvvvvvvvvvv2 = 0;
    public int _vvvvvvvvvvvvvvvvvvvvv3 = 0;
    public int _vvvvvvvvvvvvvvvvvvvvv4 = 0;
    public int _vvvvvvvvvvvvvvvvvvvvv5 = 0;
    public int _vvvvvvvvvvvvvvvvvvvvv6 = 0;
    public int _vvvvvvvvvvvvvvvvvvvvv7 = 0;
    public double _vvvvvvvvvvvvvvvvvvvvv0 = 0.0d;
    public double _vvvvvvvvvvvvvvvvvvvvvv1 = 0.0d;
    public int _vvvvvvvvvvvvvvvvvvvvvv2 = 0;
    public B4XCanvas _vvvvvvvvvvvvvvvvvvvvvv3 = null;
    public B4XCanvas _vvvvvvvvvvvvvvvvvvvvvv4 = null;
    public B4XViewWrapper _pneventsmap = null;
    public B4XViewWrapper.B4XBitmapWrapper _vvvvvvvvvvvvvvvvvvvvvv5 = null;
    public B4XViewWrapper _events_map_title = null;
    public B4XViewWrapper _events_rotate_auto = null;
    public B4XViewWrapper _events_rotate_step = null;
    public B4XViewWrapper _events_plotbytime = null;
    public B4XViewWrapper _ivsplash = null;
    public B4XViewWrapper _lbby = null;
    public B4XViewWrapper _lbdeveloper = null;
    public B4XViewWrapper _lbslogan = null;
    public B4XViewWrapper _lbsplashtitle = null;
    public B4XViewWrapper _pnintrotxt = null;
    public B4XViewWrapper _events_noevents = null;
    public B4XViewWrapper _webcam_frame = null;
    public B4XViewWrapper _events_pnperiods = null;
    public B4XViewWrapper _events_iv24hrs = null;
    public B4XViewWrapper _events_ivnomag = null;
    public B4XViewWrapper _events_ivperiod = null;
    public B4XViewWrapper _events_lb24hrs = null;
    public B4XViewWrapper _events_lbperiod = null;
    public B4XViewWrapper _events_lbnomag = null;
    public B4XViewWrapper _events_pnlegend = null;
    public b4xcombobox _cb_selectperiod = null;
    public b4xcombobox _cb_selectmagnitude = null;
    public B4XViewWrapper _lb_ndon = null;
    public b4xswitch _sw_ndon = null;
    public B4XViewWrapper _pnheader = null;
    public B4XViewWrapper _lbhead_line = null;
    public B4XViewWrapper _lbhead_depth = null;
    public B4XViewWrapper _lbhead_distance = null;
    public B4XViewWrapper _lbhead_magnitude = null;
    public B4XViewWrapper _lbhead_reports = null;
    public B4XViewWrapper _pnhistory = null;
    public B4XViewWrapper _history_title = null;
    public customlistview _clvartintro = null;
    public B4XViewWrapper _pntimeselector = null;
    public B4XViewWrapper _lbyr1 = null;
    public B4XViewWrapper _lbyr2 = null;
    public B4XViewWrapper _lbyr3 = null;
    public B4XViewWrapper _lbarrowleft = null;
    public B4XViewWrapper _lbarrowright = null;
    public List _vvvvvvvvvvvvvvvvvvvvvv6 = null;
    public List _vvvvvvvvvvvvvvvvvvvvvv7 = null;
    public String _vvvvvvvvvvvvvvvvvvvvvv0 = BuildConfig.FLAVOR;
    public int _vvvvvvvvvvvvvvvvvvvvvvv1 = 0;
    public int _currentyearidx_old = 0;
    public int _offset_old = 0;
    public B4XViewWrapper _ivtimeline = null;
    public B4XViewWrapper _lbapptitle = null;
    public B4XViewWrapper _lbtitlehamburger = null;
    public B4XViewWrapper _pntitle = null;
    public B4XViewWrapper _ivtitleimage = null;
    public B4XViewWrapper _pntitleimage = null;
    public B4XViewWrapper _lbtotalevents = null;
    public B4XViewWrapper _lbrevisedevents = null;
    public B4XViewWrapper _lbautomaticevents = null;
    public B4XViewWrapper _alert_title_base = null;
    public B4XViewWrapper _hazard_title_base = null;
    public B4XViewWrapper _events_title_base = null;
    public B4XViewWrapper _events_map_title_base = null;
    public B4XViewWrapper _history_title_base = null;
    public B4XViewWrapper _chart1_title = null;
    public B4XViewWrapper _chart2_title = null;
    public B4XViewWrapper _chart3_title = null;
    public B4XViewWrapper _chart4_title = null;
    public B4XViewWrapper _chart5_title = null;
    public B4XViewWrapper _chart6_title = null;
    public B4XViewWrapper _chart7_title = null;
    public Map _vvvvvvvvvvvvvvvvvvvvvvv2 = null;
    public B4XViewWrapper _chart8_title = null;
    public B4XViewWrapper _chart9_title = null;
    public B4XViewWrapper _chart10_title = null;
    public B4XViewWrapper _chart11_title = null;
    public B4XViewWrapper _chart12_title = null;
    public B4XViewWrapper _chart13_title = null;
    public B4XViewWrapper _lb_selectperiod = null;
    public B4XViewWrapper _lb_selectmagnitude = null;
    public B4XViewWrapper _lbeventsremoved = null;
    public B4XViewWrapper _lbndremoved = null;
    public B4XViewWrapper _lbmagremoved = null;
    public B4XViewWrapper _lb_selectdepth = null;
    public b4xcombobox _cb_selectdepth = null;
    public B4XViewWrapper _c10_info = null;
    public B4XViewWrapper _c11_info = null;
    public B4XViewWrapper _c13_info = null;
    public B4XViewWrapper _pb_webcam = null;
    public List _v5 = null;
    public List _vvvvvvvvvvvvvvvvvvvvvvv3 = null;
    public List _vvvvvvvvvvvvvvvvvvvvvvv4 = null;
    public List _vvvvvvvvvvvvvvvvvvvvvvv5 = null;
    public List _vvvvvvvvvvvvvvvvvvvvvvv6 = null;
    public List _vvvvvvvvvvvvvvvvvvvvvvv7 = null;
    public List _vvvvvvvvvvvvvvvvvvvvvvv0 = null;
    public List _vvvvvvvvvvvvvvvvvvvvvvvv1 = null;
    public List _vvvvvvvvvvvvvvvvvvvvvvvv2 = null;
    public B4XViewWrapper _chat_goto = null;
    public B4XViewWrapper _chat_title = null;
    public B4XViewWrapper _chat_title_base = null;
    public B4XViewWrapper _pnchat = null;
    public B4XViewWrapper _chat_latestchats = null;
    public B4XViewWrapper _chat_topline = null;
    public dateutils _vvvvvvvv2 = null;
    public LocationFWrapper.LocationFStatic _vvvvvvvv3 = null;
    public LocationResultWrapper.LocationResultConstants _vvvvvvvv4 = null;
    public LocationRequestWrapper.LocationRequestConstants _vvvvvvvv5 = null;
    public PriorityWrapper _vvvvvvvv6 = null;
    public GranularityWrapper _vvvvvvvv7 = null;
    public main _vvvvvvvv0 = null;
    public firebasemessaging _vvvvvvvvv1 = null;
    public ftpcamvideo _vvvvvvvvv2 = null;
    public eqdb _vvvvvvvvv3 = null;
    public location _vvvvvvvvv4 = null;
    public startatbootreceiver _vvvvvvvvv5 = null;
    public starter _vvvvvvvvv6 = null;
    public webcamload _vvvvvvvvv7 = null;
    public b4xcollections _vvvvvvvvv0 = null;
    public b4xpages _vvvvvvvvvv1 = null;
    public httputils2service _vvvvvvvvvv2 = null;
    public xuiviewsutils _vvvvvvvvvv3 = null;

    public void _b4xpage_permissionresult(String str, boolean z) throws Exception {
    }

    public void _billing_acknowledgecompleted(BillingClientWrapper.BillingResultWrapper billingResultWrapper) throws Exception {
    }

    public void _billing_connected(BillingClientWrapper.BillingResultWrapper billingResultWrapper) throws Exception {
    }

    public void _billing_purchasesquerycompleted(BillingClientWrapper.BillingResultWrapper billingResultWrapper, List list) throws Exception {
    }

    public void _billing_skuquerycompleted(BillingClientWrapper.BillingResultWrapper billingResultWrapper, List list) throws Exception {
    }

    public void _complete(boolean z) throws Exception {
    }

    public void _jobdone(httpjob httpjobVar) throws Exception {
    }

    public void _mobileads_ready() throws Exception {
    }

    public void _msgbox_result(int i) throws Exception {
    }

    private void innerInitialize(BA ba) throws Exception {
        if (this.ba == null) {
            this.ba = new BA(ba, this, htSubs, "com.volcanex.vesuvius.b4xmainpage");
            if (htSubs == null) {
                this.ba.loadHtSubs(getClass());
                htSubs = this.ba.htSubs;
            }
        }
        if (BA.isShellModeRuntimeCheck(this.ba)) {
            getClass().getMethod("_class_globals", b4xmainpage.class).invoke(this, null);
        } else {
            this.ba.raiseEvent2((Object) null, true, "class_globals", false, new Object[0]);
        }
    }

    public static class _anintromsg {
        public boolean IsInitialized;
        public String message;
        public String title;

        public void Initialize() {
            this.IsInitialized = true;
            this.title = BuildConfig.FLAVOR;
            this.message = BuildConfig.FLAVOR;
        }

        public String toString() {
            return BA.TypeToString(this, false);
        }
    }

    public static class _apolygonpart {
        public boolean IsInitialized;
        public List innerHoles;
        public List outerMarginVertices;

        public void Initialize() {
            this.IsInitialized = true;
            this.outerMarginVertices = new List();
            this.innerHoles = new List();
        }

        public String toString() {
            return BA.TypeToString(this, false);
        }
    }

    public static class _ahazardzone {
        public boolean IsInitialized;
        public String volcName;
        public String zoneName;
        public int zonePolygonColour;
        public List zonePolygonParts;

        public void Initialize() {
            this.IsInitialized = true;
            this.volcName = BuildConfig.FLAVOR;
            this.zoneName = BuildConfig.FLAVOR;
            this.zonePolygonParts = new List();
            this.zonePolygonColour = 0;
        }

        public String toString() {
            return BA.TypeToString(this, false);
        }
    }

    public static class _aneq {
        public boolean IsInitialized;
        public double depth;
        public int eventID;
        public double latitude;
        public double longitude;
        public double magnitude;
        public String status;
        public long timeUTC;
        public String volcName;

        public void Initialize() {
            this.IsInitialized = true;
            this.volcName = BuildConfig.FLAVOR;
            this.timeUTC = 0L;
            this.eventID = 0;
            this.magnitude = 0.0d;
            this.latitude = 0.0d;
            this.longitude = 0.0d;
            this.depth = 0.0d;
            this.status = BuildConfig.FLAVOR;
        }

        public String toString() {
            return BA.TypeToString(this, false);
        }
    }

    public static class _afeltreport {
        public boolean IsInitialized;
        public String Volcano;
        public int easting;
        public String hemisphere;
        public int highestID;
        public int northing;
        public List possibleEQs;
        public long reporttime;
        public int zoneutm;

        public void Initialize() {
            this.IsInitialized = true;
            this.Volcano = BuildConfig.FLAVOR;
            this.reporttime = 0L;
            this.easting = 0;
            this.northing = 0;
            this.zoneutm = 0;
            this.hemisphere = BuildConfig.FLAVOR;
            this.highestID = 0;
            this.possibleEQs = new List();
        }

        public String toString() {
            return BA.TypeToString(this, false);
        }
    }

    public static class _afeltreportposseq {
        public boolean IsInitialized;
        public int id;
        public double mag;
        public long utc;

        public void Initialize() {
            this.IsInitialized = true;
            this.id = 0;
            this.mag = 0.0d;
            this.utc = 0L;
        }

        public String toString() {
            return BA.TypeToString(this, false);
        }
    }

    public static class _afeltreportbox {
        public boolean IsInitialized;
        public int assignedID;
        public Polygon box;
        public long reporttime;

        public void Initialize() {
            this.IsInitialized = true;
            this.box = new Polygon();
            this.reporttime = 0L;
            this.assignedID = 0;
        }

        public String toString() {
            return BA.TypeToString(this, false);
        }
    }

    public static class _anarticleintro {
        public boolean IsInitialized;
        public String class1;
        public String class2;
        public String id;
        public String name;
        public CanvasWrapper.BitmapWrapper photo;
        public String published;
        public String snippet;
        public String time_month;
        public int time_year;

        public void Initialize() {
            this.IsInitialized = true;
            this.id = BuildConfig.FLAVOR;
            this.name = BuildConfig.FLAVOR;
            this.class1 = BuildConfig.FLAVOR;
            this.class2 = BuildConfig.FLAVOR;
            this.snippet = BuildConfig.FLAVOR;
            this.time_year = 0;
            this.time_month = BuildConfig.FLAVOR;
            this.published = BuildConfig.FLAVOR;
            this.photo = new CanvasWrapper.BitmapWrapper();
        }

        public String toString() {
            return BA.TypeToString(this, false);
        }
    }

    public static class _aplotpoint {
        public boolean IsInitialized;
        public double X;
        public double Y;
        public double Z;
        public int fillCol;
        public int id;
        public int r;
        public int rimCol;
        public String st;
        public long t;

        public void Initialize() {
            this.IsInitialized = true;
            this.X = 0.0d;
            this.Y = 0.0d;
            this.Z = 0.0d;
            this.r = 0;
            this.fillCol = 0;
            this.rimCol = 0;
            this.t = 0L;
            this.id = 0;
            this.st = BuildConfig.FLAVOR;
        }

        public String toString() {
            return BA.TypeToString(this, false);
        }
    }

    public static class _achat {
        public boolean IsInitialized;
        public String author;
        public int likes;
        public int reports;
        public String text;
        public long time1;
        public long time2;
        public long time3;

        public void Initialize() {
            this.IsInitialized = true;
            this.time1 = 0L;
            this.time2 = 0L;
            this.time3 = 0L;
            this.author = BuildConfig.FLAVOR;
            this.text = BuildConfig.FLAVOR;
            this.likes = 0;
            this.reports = 0;
        }

        public String toString() {
            return BA.TypeToString(this, false);
        }
    }

    public String _admob_adclosed() throws Exception {
        Common.LogImpl("88585217", "Ad Closed", 0);
        return BuildConfig.FLAVOR;
    }

    public String _admob_adopened() throws Exception {
        Common.LogImpl("88650753", "Ad Opened", 0);
        return BuildConfig.FLAVOR;
    }

    public void _admob_checkconsentandinitialize() throws Exception {
        new ResumableSub_AdMob_CheckConsentAndInitialize(this).resume(this.ba, null);
    }

    public static class ResumableSub_AdMob_CheckConsentAndInitialize extends BA.ResumableSub {
        int limit27;
        b4xmainpage parent;
        int step27;
        SQL.ResultSetWrapper _rs = null;
        AdViewWrapper.MobileAdsWrapper _m = null;
        boolean _success = false;
        _anintromsg _msg = null;
        int _result3 = 0;
        int _i = 0;
        AdViewWrapper _adv = null;

        public ResumableSub_AdMob_CheckConsentAndInitialize(b4xmainpage b4xmainpageVar) {
            this.parent = b4xmainpageVar;
        }

        public void resume(BA ba, Object[] objArr) throws Exception {
            while (true) {
                switch (this.state) {
                    case -1:
                        return;
                    case 0:
                        this.state = 1;
                        this.parent._vvvvvvvvvvvvvvvvvvvv1.Initialize();
                        this.parent._vvvvvvvvvvvvvvvvvvv0.Initialize();
                        this.parent._vvvvvvvvvvvvvvvvvvvv2._initialize(ba);
                        this._rs = new SQL.ResultSetWrapper();
                        this._rs = AbsObjectWrapper.ConvertToWrapper(new SQL.ResultSetWrapper(), this.parent._vvvvvvvvvvvvv0.ExecQuery("Select Main, AdUnit From App_AdUnits Where App_Title = '" + this.parent._vvvvvvvvvvvvvv4 + "'"));
                        break;
                    case 1:
                        this.state = 4;
                        if (!this._rs.NextRow()) {
                            break;
                        } else {
                            this.state = 3;
                            break;
                        }
                    case 3:
                        this.state = 1;
                        this.parent._vvvvvvvvvvvvvvvvvvvv1.Put(Integer.valueOf(this._rs.GetInt("Main")), this._rs.GetString("AdUnit"));
                        break;
                    case 4:
                        this.state = 5;
                        this._m = new AdViewWrapper.MobileAdsWrapper();
                        Common common = this.parent.__c;
                        Common.WaitFor("mobileads_ready", ba, this, this._m.Initialize(ba));
                        this.state = 23;
                        return;
                    case 5:
                        this.state = 12;
                        if (!this.parent._vvvvvvvvvvvvv1) {
                            break;
                        } else {
                            this.state = 7;
                            break;
                        }
                    case 7:
                        this.state = 8;
                        AdViewWrapper.MobileAdsWrapper mobileAdsWrapper = this._m;
                        mobileAdsWrapper.SetConfiguration(mobileAdsWrapper.CreateRequestConfigurationBuilder(Common.ArrayToList(new Object[]{this.parent._vvvvvvvvvvvvv2})));
                        break;
                    case 8:
                        this.state = 11;
                        if (!this.parent._vvvvvvvvvvvvv7) {
                            break;
                        } else {
                            this.state = 10;
                            break;
                        }
                    case 10:
                        this.state = 11;
                        this.parent._vvvvvvvvvvvvvvvvvvvv2._vvvvvv0();
                        adshelper adshelperVar = this.parent._vvvvvvvvvvvvvvvvvvvv2;
                        String str = this.parent._vvvvvvvvvvvvv2;
                        Common common2 = this.parent.__c;
                        adshelperVar._vvvvvvv1(str, true);
                        break;
                    case 11:
                        this.state = 12;
                        break;
                    case 12:
                        this.state = 15;
                        if (!this.parent._vvvvvvvvvvvvvvvvvvvv2._vvvvvv5().equals("UNKNOWN") && !this.parent._vvvvvvvvvvvvvvvvvvvv2._vvvvvv5().equals("REQUIRED")) {
                            break;
                        } else {
                            this.state = 14;
                            break;
                        }
                    case 14:
                        this.state = 15;
                        Common common3 = this.parent.__c;
                        adshelper adshelperVar2 = this.parent._vvvvvvvvvvvvvvvvvvvv2;
                        Common common4 = this.parent.__c;
                        Common.WaitFor("complete", ba, this, adshelperVar2._vvvvvv7(false));
                        this.state = 24;
                        return;
                    case 15:
                        this.state = 18;
                        if (this.parent._vvvvvvvvvvvvvvvvvvvv2._vvvvvv5().equals("REQUIRED") && this.parent._vvvvvvvvvvvvvvvvvvvv2._vvvvvv4()) {
                            this.state = 17;
                            break;
                        }
                        break;
                    case 17:
                        this.state = 18;
                        this._msg = (_anintromsg) this.parent._vvvvvvvvvvvvvvvvv6.Get("Intro_EUconsent");
                        Common common5 = this.parent.__c;
                        Common.MsgboxAsync(BA.ObjectToCharSequence(this._msg.message), BA.ObjectToCharSequence(this._msg.title), ba);
                        Common common6 = this.parent.__c;
                        Common.WaitFor("msgbox_result", ba, this, (Object) null);
                        this.state = 25;
                        return;
                    case 18:
                        this.state = 19;
                        this.parent._admob_insertads();
                        break;
                    case 19:
                        this.state = 22;
                        this.step27 = 1;
                        this.limit27 = this.parent._vvvvvvvvvvvvvvvvvvv0.getSize() - 1;
                        this._i = 0;
                        this.state = 27;
                        break;
                    case 21:
                        this.state = 28;
                        this._adv = new AdViewWrapper();
                        AdViewWrapper ConvertToWrapper = AbsObjectWrapper.ConvertToWrapper(new AdViewWrapper(), (AdView) this.parent._vvvvvvvvvvvvvvvvvvv0.Get(this._i));
                        this._adv = ConvertToWrapper;
                        ConvertToWrapper.LoadAd();
                        break;
                    case 22:
                        this.state = -1;
                        b4xmainpage b4xmainpageVar = this.parent;
                        Common common7 = b4xmainpageVar.__c;
                        b4xmainpageVar._vvvvvvvvvvvvvvvvvvv7 = true;
                        Common common8 = this.parent.__c;
                        DateTime dateTime = Common.DateTime;
                        DateTime.setTimeFormat("HH:mm:ss");
                        Common common9 = this.parent.__c;
                        StringBuilder sb = new StringBuilder("(");
                        Common common10 = this.parent.__c;
                        DateTime dateTime2 = Common.DateTime;
                        Common common11 = this.parent.__c;
                        DateTime dateTime3 = Common.DateTime;
                        sb.append(DateTime.Time(DateTime.getNow()));
                        sb.append(") Ads Completed");
                        Common.LogImpl("88192047", sb.toString(), 0);
                        break;
                    case 23:
                        this.state = 5;
                        break;
                    case 24:
                        this.state = 15;
                        this._success = ((Boolean) objArr[0]).booleanValue();
                        break;
                    case 25:
                        this.state = 18;
                        this._result3 = ((Integer) objArr[0]).intValue();
                        Common common12 = this.parent.__c;
                        Common.WaitFor("complete", ba, this, this.parent._vvvvvvvvvvvvvvvvvvvv2._vvvvvvv2());
                        this.state = 26;
                        return;
                    case 26:
                        this.state = 18;
                        this._success = ((Boolean) objArr[0]).booleanValue();
                        break;
                    case 27:
                        this.state = 22;
                        int i = this.step27;
                        if ((i > 0 && this._i <= this.limit27) || (i < 0 && this._i >= this.limit27)) {
                            this.state = 21;
                            break;
                        }
                        break;
                    case 28:
                        this.state = 27;
                        this._i += this.step27;
                        break;
                }
            }
        }
    }

    public String _admob_failedtoreceivead(String str) throws Exception {
        int size = this._vvvvvvvvvvvvvvvvvvv0.getSize() - 1;
        for (int i = 0; i <= size; i++) {
            new AdViewWrapper();
            AbsObjectWrapper.ConvertToWrapper(new AdViewWrapper(), (AdView) this._vvvvvvvvvvvvvvvvvvv0.Get(i)).setEnabled(false);
        }
        List list = new List();
        list.Initialize();
        new PanelWrapper();
        PanelWrapper panel = this._sv.getPanel();
        int size2 = panel.getSize();
        for (int i2 = 0; i2 < size2; i2++) {
            PanelWrapper ConvertToWrapper = AbsObjectWrapper.ConvertToWrapper(new PanelWrapper(), (ViewGroup) panel.Get(i2));
            if (ConvertToWrapper.getTag().equals("Ad")) {
                new PanelWrapper();
                PanelWrapper panel2 = this._sv.getPanel();
                int size3 = panel2.getSize();
                for (int i3 = 0; i3 < size3; i3++) {
                    PanelWrapper ConvertToWrapper2 = AbsObjectWrapper.ConvertToWrapper(new PanelWrapper(), (ViewGroup) panel2.Get(i3));
                    if (ConvertToWrapper2.getTop() > ConvertToWrapper.getTop()) {
                        ConvertToWrapper2.setTop((ConvertToWrapper2.getTop() - ConvertToWrapper.getHeight()) - this._size_panelmargin);
                    }
                }
                this._sv.getPanel().setHeight((this._sv.getPanel().getHeight() - ConvertToWrapper.getHeight()) - this._size_panelmargin);
                list.Add(ConvertToWrapper.getObject());
            }
        }
        if (list.getSize() > 0) {
            int size4 = list.getSize() - 1;
            for (int i4 = 0; i4 <= size4; i4++) {
                new PanelWrapper();
                AbsObjectWrapper.ConvertToWrapper(new PanelWrapper(), (ViewGroup) list.Get(i4)).RemoveView();
            }
        }
        this._vvvvvvvvvvvvvvvvvvv6 = false;
        return BuildConfig.FLAVOR;
    }

    public Map _admob_get_adaptiveadsize(int i) throws Exception {
        JavaObject javaObject = new JavaObject();
        javaObject.InitializeContext(this.ba);
        JavaObject javaObject2 = new JavaObject();
        double d = i;
        double d2 = Common.GetDeviceLayoutValues(this.ba).Scale;
        Double.isNaN(d);
        Double.isNaN(d2);
        int i2 = (int) (d / d2);
        new JavaObject();
        JavaObject ConvertToWrapper = AbsObjectWrapper.ConvertToWrapper(new JavaObject(), javaObject2.InitializeStatic("com.google.android.gms.ads.AdSize").RunMethod("getCurrentOrientationAnchoredAdaptiveBannerAdSize", new Object[]{javaObject.getObject(), Integer.valueOf(i2)}));
        return Common.createMap(new Object[]{"native", ConvertToWrapper.getObject(), "width", ConvertToWrapper.RunMethod("getWidthInPixels", new Object[]{javaObject.getObject()}), "height", ConvertToWrapper.RunMethod("getHeightInPixels", new Object[]{javaObject.getObject()})});
    }

    public String _admob_insertads() throws Exception {
        AdViewWrapper _admob_makebannerad;
        AdViewWrapper _admob_makebannerad2;
        if (this._vvvvvvvvvvvvvv3.IndexOf("events_list") != -1) {
            new AdViewWrapper();
            _admob_makebannerad = _admob_makebannerad(BA.ObjectToString(this._vvvvvvvvvvvvvvvvvvvv1.Get(0)), "events_list");
        } else {
            new AdViewWrapper();
            _admob_makebannerad = _admob_makebannerad(BA.ObjectToString(this._vvvvvvvvvvvvvvvvvvvv1.Get(0)), "events_map");
        }
        this._vvvvvvvvvvvvvvvvvvv0.Add(_admob_makebannerad.getObject());
        if (this._vvvvvvvvvvvvvv3.IndexOf("chart1") != -1) {
            new AdViewWrapper();
            _admob_makebannerad2 = _admob_makebannerad(BA.ObjectToString(this._vvvvvvvvvvvvvvvvvvvv1.Get(1)), "chart1");
        } else {
            new AdViewWrapper();
            _admob_makebannerad2 = _admob_makebannerad(BA.ObjectToString(this._vvvvvvvvvvvvvvvvvvvv1.Get(0)), "chart2");
        }
        this._vvvvvvvvvvvvvvvvvvv0.Add(_admob_makebannerad2.getObject());
        new AdViewWrapper();
        this._vvvvvvvvvvvvvvvvvvv0.Add(_admob_makebannerad(BA.ObjectToString(this._vvvvvvvvvvvvvvvvvvvv1.Get(2)), "chart5").getObject());
        new AdViewWrapper();
        this._vvvvvvvvvvvvvvvvvvv0.Add(_admob_makebannerad(BA.ObjectToString(this._vvvvvvvvvvvvvvvvvvvv1.Get(3)), "chart8").getObject());
        return BuildConfig.FLAVOR;
    }

    public AdViewWrapper _admob_makebannerad(String str, String str2) throws Exception {
        new Map();
        Map _vvvvvv2 = this._vvvvvvvvvvvvvvvvvvvv2._vvvvvv2(this._sv.getPanel().getWidth());
        AdViewWrapper adViewWrapper = new AdViewWrapper();
        adViewWrapper.Initialize2(this.ba, "AdMob", str, _vvvvvv2.Get("native"));
        new B4XViewWrapper();
        B4XViewWrapper CreatePanel = B4XViewWrapper.XUI.CreatePanel(this.ba, BuildConfig.FLAVOR);
        CreatePanel.SetLayoutAnimated(0, Common.DipToCurrent(0), Common.DipToCurrent(0), (int) BA.ObjectToNumber(_vvvvvv2.Get("width")), (int) BA.ObjectToNumber(_vvvvvv2.Get("height")));
        CreatePanel.setTag("Ad");
        CreatePanel.AddView((View) adViewWrapper.getObject(), Common.DipToCurrent(0), Common.DipToCurrent(0), (int) BA.ObjectToNumber(_vvvvvv2.Get("width")), (int) BA.ObjectToNumber(_vvvvvv2.Get("height")));
        _pncontent_insertpanel(str2, CreatePanel, true);
        return adViewWrapper;
    }

    public String _admob_receivead() throws Exception {
        return BuildConfig.FLAVOR;
    }

    public String _admob_update_adsstate() throws Exception {
        if (this._vvvvvvvvvvvvvvvvvvv6) {
            _billing_getnoadscost();
            _admob_checkconsentandinitialize();
            return BuildConfig.FLAVOR;
        }
        if (this._vvvvvvvvvvvvvvvvvvv7) {
            _admob_failedtoreceivead("no-ads purchased");
            return BuildConfig.FLAVOR;
        }
        return BuildConfig.FLAVOR;
    }

    public String _b4xpage_appear() throws Exception {
        if (this._language_changed) {
            _update_changelanguage();
            return BuildConfig.FLAVOR;
        }
        return BuildConfig.FLAVOR;
    }

    public void _b4xpage_created(B4XViewWrapper b4XViewWrapper) throws Exception {
        new ResumableSub_B4XPage_Created(this, b4XViewWrapper).resume(this.ba, null);
    }

    public static class ResumableSub_B4XPage_Created extends BA.ResumableSub {
        B4XViewWrapper _root1;
        BA.IterableList group47;
        int groupLen47;
        int index47;
        b4xmainpage parent;
        boolean _installsql = false;
        String _old_appversion = BuildConfig.FLAVOR;
        Reflection _r = null;
        String _dvlg = BuildConfig.FLAVOR;
        String _devicelanguage = BuildConfig.FLAVOR;
        String _lg = BuildConfig.FLAVOR;
        String _fn = BuildConfig.FLAVOR;
        SQL _sql2 = null;
        String _qstr = BuildConfig.FLAVOR;
        SQL.ResultSetWrapper _rs = null;
        long _lastrefreshtime = 0;
        boolean _lasteventsmatch = false;
        Common.ResumableSubWrapper _cle = null;
        int _serverlastid = 0;
        _anintromsg _msg = null;
        int _result1 = 0;
        int _result2 = 0;
        String _permission = BuildConfig.FLAVOR;
        boolean _locationpermissionresult = false;
        String _messagetopic = BuildConfig.FLAVOR;

        public ResumableSub_B4XPage_Created(b4xmainpage b4xmainpageVar, B4XViewWrapper b4XViewWrapper) {
            this.parent = b4xmainpageVar;
            this._root1 = b4XViewWrapper;
        }

        public void resume(BA ba, Object[] objArr) throws Exception {
            while (true) {
                switch (this.state) {
                    case -1:
                        return;
                    case 0:
                        this.state = 1;
                        this.parent._vvvvvvvvvvvvvv2 = this._root1;
                        this.parent._vvvvvvvvvvvvvv2.LoadLayout("layout_main", ba);
                        B4XViewWrapper b4XViewWrapper = this.parent._ivsplash;
                        B4XViewWrapper.XUI xui = this.parent._vvvvvvvvvvvvv3;
                        Common common = this.parent.__c;
                        File file = Common.File;
                        String dirAssets = File.getDirAssets();
                        String str = this.parent._vvvvvvvvvvvvv5;
                        int width = this.parent._ivsplash.getWidth();
                        int height = this.parent._ivsplash.getHeight();
                        Common common2 = this.parent.__c;
                        b4XViewWrapper.SetBitmap((Bitmap) B4XViewWrapper.XUI.LoadBitmapResize(dirAssets, str, width, height, false).getObject());
                        B4XViewWrapper b4XViewWrapper2 = this.parent._vvvvvvvvvvvvvv2;
                        Common common3 = this.parent.__c;
                        int DipToCurrent = Common.DipToCurrent(0);
                        Common common4 = this.parent.__c;
                        b4XViewWrapper2.SetLayoutAnimated(ServiceStarter.ERROR_UNKNOWN, DipToCurrent, Common.DipToCurrent(0), this.parent._vvvvvvvvvvvvvv2.getWidth(), this.parent._vvvvvvvvvvvvvv2.getHeight());
                        Common common5 = this.parent.__c;
                        Common.Sleep(ba, this, ServiceStarter.ERROR_UNKNOWN);
                        this.state = 122;
                        return;
                    case 1:
                        this.state = 18;
                        Common common6 = this.parent.__c;
                        File file2 = Common.File;
                        B4XViewWrapper.XUI xui2 = this.parent._vvvvvvvvvvvvv3;
                        if (File.Exists(B4XViewWrapper.XUI.getDefaultFolder(), "kvs_settings.dat")) {
                            this.state = 3;
                            break;
                        } else {
                            this.state = 17;
                            break;
                        }
                    case 3:
                        this.state = 4;
                        b4xmainpage b4xmainpageVar = this.parent;
                        Common common7 = b4xmainpageVar.__c;
                        b4xmainpageVar._vvvvvvvvvvvvv7 = false;
                        keyvaluestore keyvaluestoreVar = this.parent._vvvvvvvvvvvvvv1;
                        B4XViewWrapper.XUI xui3 = this.parent._vvvvvvvvvvvvv3;
                        keyvaluestoreVar._initialize(ba, B4XViewWrapper.XUI.getDefaultFolder(), "kvs_settings.dat");
                        this._old_appversion = BA.NumberToString(0);
                        break;
                    case 4:
                        this.state = 9;
                        if (this.parent._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("appVer") == null) {
                            break;
                        } else {
                            this.state = 6;
                            break;
                        }
                    case 6:
                        this.state = 9;
                        this._old_appversion = BA.ObjectToString(this.parent._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("appVer"));
                        break;
                    case 9:
                        this.state = 10;
                        break;
                    case 10:
                        this.state = 15;
                        Common common8 = this.parent.__c;
                        B4AApplication b4AApplication = Common.Application;
                        if (B4AApplication.getVersionCode() != Double.parseDouble(this._old_appversion)) {
                            this.state = 12;
                            break;
                        } else {
                            this.state = 14;
                            break;
                        }
                    case 12:
                        this.state = 15;
                        keyvaluestore keyvaluestoreVar2 = this.parent._vvvvvvvvvvvvvv1;
                        Common common9 = this.parent.__c;
                        B4AApplication b4AApplication2 = Common.Application;
                        keyvaluestoreVar2._vvvvvvvvvvvvvvvvvvvvvvvvvvvv4("appVer", Integer.valueOf(B4AApplication.getVersionCode()));
                        Common common10 = this.parent.__c;
                        this._installsql = true;
                        break;
                    case 14:
                        this.state = 15;
                        Common common11 = this.parent.__c;
                        this._installsql = false;
                        break;
                    case 15:
                        this.state = 18;
                        break;
                    case 17:
                        this.state = 18;
                        b4xmainpage b4xmainpageVar2 = this.parent;
                        Common common12 = b4xmainpageVar2.__c;
                        b4xmainpageVar2._vvvvvvvvvvvvv7 = true;
                        keyvaluestore keyvaluestoreVar3 = this.parent._vvvvvvvvvvvvvv1;
                        B4XViewWrapper.XUI xui4 = this.parent._vvvvvvvvvvvvv3;
                        keyvaluestoreVar3._initialize(ba, B4XViewWrapper.XUI.getDefaultFolder(), "kvs_settings.dat");
                        this.parent._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvvv4("Volcano", this.parent._vvvvvvvvvvvvv4);
                        keyvaluestore keyvaluestoreVar4 = this.parent._vvvvvvvvvvvvvv1;
                        Common common13 = this.parent.__c;
                        B4AApplication b4AApplication3 = Common.Application;
                        keyvaluestoreVar4._vvvvvvvvvvvvvvvvvvvvvvvvvvvv4("appVer", Integer.valueOf(B4AApplication.getVersionCode()));
                        Common common14 = this.parent.__c;
                        this._installsql = true;
                        break;
                    case 18:
                        this.state = 23;
                        if (!this._installsql && !this.parent._vvvvvvvvvvvvv1) {
                            break;
                        } else {
                            this.state = 20;
                            break;
                        }
                        break;
                    case 20:
                        this.state = 23;
                        Common common15 = this.parent.__c;
                        File file3 = Common.File;
                        Common common16 = this.parent.__c;
                        File file4 = Common.File;
                        String dirAssets2 = File.getDirAssets();
                        B4XViewWrapper.XUI xui5 = this.parent._vvvvvvvvvvvvv3;
                        File.Copy(dirAssets2, "app_volcanoes.db", B4XViewWrapper.XUI.getDefaultFolder(), "app_volcanoes.db");
                        break;
                    case 23:
                        this.state = 24;
                        SQL sql = this.parent._vvvvvvvvvvvvv0;
                        B4XViewWrapper.XUI xui6 = this.parent._vvvvvvvvvvvvv3;
                        String defaultFolder = B4XViewWrapper.XUI.getDefaultFolder();
                        Common common17 = this.parent.__c;
                        sql.Initialize(defaultFolder, "app_volcanoes.db", false);
                        this.parent._vvvvvvvvvvvvvvvvvvv2.Initialize();
                        this.parent._vvvvvvvvvvvvvvvvvvv2.Put("EN", "English");
                        this.parent._vvvvvvvvvvvvvvvvvvv2.Put("IT", "Italiano");
                        this.parent._vvvvvvvvvvvvvvvvvvv2.Put("DE", "Deutsch");
                        break;
                    case 24:
                        this.state = 41;
                        if (this.parent._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("language") != null) {
                            this.state = 26;
                            break;
                        } else {
                            this.state = 28;
                            break;
                        }
                    case 26:
                        this.state = 41;
                        b4xmainpage b4xmainpageVar3 = this.parent;
                        b4xmainpageVar3._vvvvvvvvvvvvvvvvv4 = BA.ObjectToString(b4xmainpageVar3._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("language"));
                        break;
                    case 28:
                        this.state = 29;
                        Reflection reflection = new Reflection();
                        this._r = reflection;
                        Common common18 = this.parent.__c;
                        Object[] objArr2 = (Object[]) Common.Null;
                        Common common19 = this.parent.__c;
                        reflection.Target = reflection.RunStaticMethod("java.util.Locale", "getDefault", objArr2, (String[]) Common.Null);
                        this._dvlg = BA.ObjectToString(this._r.RunMethod("getLanguage"));
                        break;
                    case 29:
                        this.state = 32;
                        if (!this._dvlg.contains("_")) {
                            break;
                        } else {
                            this.state = 31;
                            break;
                        }
                    case 31:
                        this.state = 32;
                        String str2 = this._dvlg;
                        this._dvlg = str2.substring(0, str2.indexOf("_"));
                        break;
                    case 32:
                        this.state = 33;
                        this._devicelanguage = this._dvlg.toUpperCase();
                        this.parent._vvvvvvvvvvvvvvvvv4 = "EN";
                        break;
                    case 33:
                        this.state = 40;
                        BA.IterableList Keys = this.parent._vvvvvvvvvvvvvvvvvvv2.Keys();
                        this.group47 = Keys;
                        this.index47 = 0;
                        this.groupLen47 = Keys.getSize();
                        this.state = 123;
                        break;
                    case 35:
                        this.state = 36;
                        break;
                    case 36:
                        this.state = 39;
                        if (!this._lg.equals(this._devicelanguage)) {
                            break;
                        } else {
                            this.state = 38;
                            break;
                        }
                    case 38:
                        this.state = 39;
                        this.parent._vvvvvvvvvvvvvvvvv4 = this._lg;
                        this.state = 40;
                        break;
                    case 39:
                        this.state = 124;
                        break;
                    case 40:
                        this.state = 41;
                        this.parent._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvvv4("language", this.parent._vvvvvvvvvvvvvvvvv4);
                        break;
                    case 41:
                        this.state = 42;
                        this.parent._vvvvvvvvvvvvvvvvvvv1.Initialize();
                        this.parent._maptr_unused.Initialize();
                        this.parent._set_translations();
                        this.parent._lbsplashtitle.setTextColor(this.parent._vvvvvvvvvvvvv6);
                        b4xmainpage b4xmainpageVar4 = this.parent;
                        B4XViewWrapper b4XViewWrapper3 = b4xmainpageVar4._lbsplashtitle;
                        String str3 = this.parent._vvvvvvvvvvvvvv4;
                        Common common20 = this.parent.__c;
                        b4xmainpageVar4._vvvvvvvvvvvv7(b4XViewWrapper3, str3, BuildConfig.FLAVOR, true);
                        this.parent._lbby.setTextColor(this.parent._vvvvvvvvvvvvv6);
                        b4xmainpage b4xmainpageVar5 = this.parent;
                        B4XViewWrapper b4XViewWrapper4 = b4xmainpageVar5._lbby;
                        Common common21 = this.parent.__c;
                        b4xmainpageVar5._vvvvvvvvvvvv7(b4XViewWrapper4, "by", BuildConfig.FLAVOR, true);
                        this.parent._lbdeveloper.setTextColor(this.parent._vvvvvvvvvvvvv6);
                        this.parent._lbdeveloper.setText(BA.ObjectToCharSequence("Dr Graeme Wheller BSc(Hons) PhD"));
                        this.parent._lbslogan.setTextColor(this.parent._vvvvvvvvvvvvv6);
                        b4xmainpage b4xmainpageVar6 = this.parent;
                        B4XViewWrapper b4XViewWrapper5 = b4xmainpageVar6._lbslogan;
                        Common common22 = this.parent.__c;
                        b4xmainpageVar6._vvvvvvvvvvvv7(b4XViewWrapper5, "Volcanologist", BuildConfig.FLAVOR, true);
                        B4XViewWrapper b4XViewWrapper6 = this.parent._pnintrotxt;
                        Common common23 = this.parent.__c;
                        b4XViewWrapper6.SetVisibleAnimated(ServiceStarter.ERROR_UNKNOWN, true);
                        Common common24 = this.parent.__c;
                        Common.Sleep(ba, this, ServiceStarter.ERROR_UNKNOWN);
                        this.state = 125;
                        return;
                    case 42:
                        this.state = 45;
                        if (!this._installsql && !this.parent._vvvvvvvvvvvvv1) {
                            break;
                        } else {
                            this.state = 44;
                            break;
                        }
                    case 44:
                        this.state = 45;
                        this.parent._initialize_settings_main();
                        this.parent._set_settings_webcam();
                        this._fn = BA.ObjectToString(this.parent._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("Volcano_Database"));
                        Common common25 = this.parent.__c;
                        File file5 = Common.File;
                        Common common26 = this.parent.__c;
                        File file6 = Common.File;
                        String dirAssets3 = File.getDirAssets();
                        String str4 = "extras/" + this._fn;
                        B4XViewWrapper.XUI xui7 = this.parent._vvvvvvvvvvvvv3;
                        File.Copy(dirAssets3, str4, B4XViewWrapper.XUI.getDefaultFolder(), this._fn);
                        SQL sql2 = new SQL();
                        this._sql2 = sql2;
                        B4XViewWrapper.XUI xui8 = this.parent._vvvvvvvvvvvvv3;
                        String defaultFolder2 = B4XViewWrapper.XUI.getDefaultFolder();
                        String str5 = this._fn;
                        Common common27 = this.parent.__c;
                        sql2.Initialize(defaultFolder2, str5, false);
                        this._qstr = "Select Item_ID From Volcano_History where ( Volcano = '" + this.parent._vvvvvvvvvvvvv4 + "' ) and ( Published = 'Yes' )";
                        this._rs = new SQL.ResultSetWrapper();
                        this._rs = AbsObjectWrapper.ConvertToWrapper(new SQL.ResultSetWrapper(), this._sql2.ExecQuery(this._qstr));
                        this.parent._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvvv4("numHistoryArticles", Integer.valueOf(this._rs.getRowCount()));
                        this.parent._initialize_settings_updateable();
                        break;
                    case 45:
                        this.state = 46;
                        this.parent._initialize_globals();
                        break;
                    case 46:
                        this.state = 53;
                        Common common28 = this.parent.__c;
                        eqdb eqdbVar = this.parent._vvvvvvvvv3;
                        if (!Common.IsPaused(ba, eqdb.getObject())) {
                            break;
                        } else {
                            this.state = 48;
                            break;
                        }
                    case 48:
                        this.state = 49;
                        Common common29 = this.parent.__c;
                        eqdb eqdbVar2 = this.parent._vvvvvvvvv3;
                        Common.StartReceiver(ba, eqdb.getObject());
                        break;
                    case 49:
                        this.state = 52;
                        eqdb eqdbVar3 = this.parent._vvvvvvvvv3;
                        boolean IsInitialized = eqdb._v6.IsInitialized();
                        Common common30 = this.parent.__c;
                        if (!IsInitialized) {
                            this.state = 51;
                            break;
                        } else {
                            break;
                        }
                    case 51:
                        this.state = 49;
                        Common common31 = this.parent.__c;
                        Common.Sleep(ba, this, 100);
                        this.state = 126;
                        return;
                    case 52:
                        this.state = 53;
                        break;
                    case 53:
                        this.state = 54;
                        this._lastrefreshtime = 0L;
                        break;
                    case 54:
                        this.state = 59;
                        if (this.parent._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("LastRefreshTime") == null) {
                            break;
                        } else {
                            this.state = 56;
                            break;
                        }
                    case 56:
                        this.state = 59;
                        this._lastrefreshtime = BA.ObjectToLongNumber(this.parent._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("LastRefreshTime"));
                        break;
                    case 59:
                        this.state = 60;
                        Common common32 = this.parent.__c;
                        this._lasteventsmatch = false;
                        this._cle = new Common.ResumableSubWrapper();
                        this._cle = this.parent._vvvvvvvvvv7();
                        Common common33 = this.parent.__c;
                        Common.WaitFor("complete", ba, this, this._cle);
                        this.state = 127;
                        return;
                    case 60:
                        this.state = 77;
                        int i = this._serverlastid;
                        if (i == 999 || i == 0) {
                            this.state = 62;
                            break;
                        } else {
                            this.state = 64;
                            break;
                        }
                    case 62:
                        this.state = 77;
                        Common common34 = this.parent.__c;
                        this._lasteventsmatch = true;
                        break;
                    case 64:
                        this.state = 65;
                        break;
                    case 65:
                        this.state = 76;
                        if (this.parent._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("lastEventId") == null) {
                            this.state = 67;
                            break;
                        } else {
                            this.state = 69;
                            break;
                        }
                    case 67:
                        this.state = 76;
                        Common common35 = this.parent.__c;
                        this._lasteventsmatch = true;
                        break;
                    case 69:
                        this.state = 70;
                        break;
                    case 70:
                        this.state = 75;
                        if (this._serverlastid != BA.ObjectToNumber(this.parent._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("lastEventId"))) {
                            break;
                        } else {
                            this.state = 72;
                            break;
                        }
                    case 72:
                        this.state = 75;
                        Common common36 = this.parent.__c;
                        this._lasteventsmatch = true;
                        break;
                    case 75:
                        this.state = 76;
                        break;
                    case 76:
                        this.state = 77;
                        break;
                    case 77:
                        this.state = 78;
                        Common common37 = this.parent.__c;
                        Common.LogImpl("81638536", "ServerLastId = " + BA.NumberToString(this._serverlastid) + " lastEventId = " + BA.ObjectToString(this.parent._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("lastEventId")) + " LastEventsMatch = " + BA.ObjectToString(Boolean.valueOf(this._lasteventsmatch)), 0);
                        break;
                    case 78:
                        this.state = 91;
                        if (!this.parent._vvvvvvvvvvvvv7) {
                            long j = this._lastrefreshtime;
                            Common common38 = this.parent.__c;
                            DateTime dateTime = Common.DateTime;
                            long now = DateTime.getNow();
                            Common common39 = this.parent.__c;
                            DateTime dateTime2 = Common.DateTime;
                            if (j >= now - 1800000) {
                                boolean z = this._lasteventsmatch;
                                Common common40 = this.parent.__c;
                                if (z) {
                                    Common common41 = this.parent.__c;
                                    File file7 = Common.File;
                                    B4XViewWrapper.XUI xui9 = this.parent._vvvvvvvvvvvvv3;
                                    if (!File.Exists(B4XViewWrapper.XUI.getDefaultFolder(), "oveqdb.db")) {
                                        break;
                                    }
                                }
                            }
                        }
                        this.state = 80;
                        break;
                    case 80:
                        this.state = 81;
                        Common common42 = this.parent.__c;
                        CharSequence ObjectToCharSequence = BA.ObjectToCharSequence(this.parent._vvvvvvvvvvvv6("Updating database") + "...");
                        Common common43 = this.parent.__c;
                        Common.ToastMessageShow(ObjectToCharSequence, true);
                        eqdb eqdbVar4 = this.parent._vvvvvvvvv3;
                        eqdb._v6._vvvvvvvvvvvvvvvvvvvvvvvvvvvv6(this.parent._vvvvvvvvvvvvv4);
                        keyvaluestore keyvaluestoreVar5 = this.parent._vvvvvvvvvvvvvv1;
                        Common common44 = this.parent.__c;
                        DateTime dateTime3 = Common.DateTime;
                        keyvaluestoreVar5._vvvvvvvvvvvvvvvvvvvvvvvvvvvv4("LastRefreshTime", Long.valueOf(DateTime.getNow()));
                        break;
                    case 81:
                        this.state = 84;
                        eqdb eqdbVar5 = this.parent._vvvvvvvvv3;
                        if (!eqdb._v6._vvvvvvvvvvvvvvvvvvvvvvvvvvvvv4) {
                            this.state = 83;
                            break;
                        } else {
                            break;
                        }
                    case 83:
                        this.state = 81;
                        Common common45 = this.parent.__c;
                        Common.Sleep(ba, this, ServiceStarter.ERROR_UNKNOWN);
                        this.state = 128;
                        return;
                    case 84:
                        this.state = 85;
                        keyvaluestore keyvaluestoreVar6 = this.parent._vvvvvvvvvvvvvv1;
                        eqdb eqdbVar6 = this.parent._vvvvvvvvv3;
                        keyvaluestoreVar6._vvvvvvvvvvvvvvvvvvvvvvvvvvvv4("eqToday", eqdb._v6._vvvvvvvvvvvvvvvvvvvvvvvvvvv6(this.parent._vvvvvvvvvvvvv4, "eqToday"));
                        break;
                    case 85:
                        this.state = 90;
                        Common common46 = this.parent.__c;
                        File file8 = Common.File;
                        B4XViewWrapper.XUI xui10 = this.parent._vvvvvvvvvvvvv3;
                        if (!File.Exists(B4XViewWrapper.XUI.getDefaultFolder(), "oveqdb.db")) {
                            break;
                        } else {
                            this.state = 87;
                            break;
                        }
                    case 87:
                        this.state = 90;
                        Common common47 = this.parent.__c;
                        File file9 = Common.File;
                        B4XViewWrapper.XUI xui11 = this.parent._vvvvvvvvvvvvv3;
                        File.Delete(B4XViewWrapper.XUI.getDefaultFolder(), "oveqdb.db");
                        break;
                    case 90:
                        this.state = 91;
                        break;
                    case 91:
                        this.state = 92;
                        this.parent._set_hazardzonepolygons();
                        this.parent._set_intromessages();
                        break;
                    case 92:
                        this.state = 95;
                        if (!this.parent._vvvvvvvvvvvvv7) {
                            break;
                        } else {
                            this.state = 94;
                            break;
                        }
                    case 94:
                        this.state = 95;
                        this._msg = (_anintromsg) this.parent._vvvvvvvvvvvvvvvvv6.Get("Intro_Welcome");
                        Common common48 = this.parent.__c;
                        Common.MsgboxAsync(BA.ObjectToCharSequence(this._msg.message), BA.ObjectToCharSequence(this._msg.title), ba);
                        Common common49 = this.parent.__c;
                        Common.WaitFor("msgbox_result", ba, this, (Object) null);
                        this.state = 129;
                        return;
                    case 95:
                        this.state = 96;
                        this.parent._pn01_apptitle_update();
                        this.parent._pn02_titleimage_update();
                        this.parent._pn03_alert_update();
                        this.parent._pn06_webcam_update();
                        break;
                    case 96:
                        this.state = 103;
                        if (this.parent._vvvvvvvvvvvvvvvvv5 > 0) {
                            this.state = 98;
                            break;
                        } else {
                            this.state = 100;
                            break;
                        }
                    case 98:
                        this.state = 103;
                        this.parent._pn04_eruptionhistory_update();
                        break;
                    case 100:
                        this.state = 103;
                        this.parent._pncontent_remove("history");
                        break;
                    case 103:
                        this.state = 104;
                        this.parent._events_clv_idmap.Initialize();
                        this.parent._update_eqdata();
                        Common common50 = this.parent.__c;
                        webcamload webcamloadVar = this.parent._vvvvvvvvv7;
                        Common.StartReceiver(ba, webcamload.getObject());
                        RuntimePermissions runtimePermissions = this.parent._vvvvvvvvvvvvvvvvvvv5;
                        RuntimePermissions runtimePermissions2 = this.parent._vvvvvvvvvvvvvvvvvvv5;
                        runtimePermissions.CheckAndRequest(ba, "android.permission.ACCESS_FINE_LOCATION");
                        Common common51 = this.parent.__c;
                        Common.WaitFor("b4xpage_permissionresult", ba, this, (Object) null);
                        this.state = 131;
                        return;
                    case 104:
                        this.state = 109;
                        if (!this._locationpermissionresult) {
                            break;
                        } else {
                            this.state = 106;
                            break;
                        }
                    case 106:
                        this.state = 109;
                        Common common52 = this.parent.__c;
                        location locationVar = this.parent._vvvvvvvvv4;
                        Common.StartReceiver(ba, location.getObject());
                        break;
                    case 109:
                        this.state = 110;
                        b4xmainpage b4xmainpageVar7 = this.parent;
                        b4xmainpageVar7._no_ads_sku_id = BA.ObjectToString(b4xmainpageVar7._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("No_Ads_SKU"));
                        break;
                    case 110:
                        this.state = 115;
                        if (!this.parent._vvvvvvvvvvvvv1) {
                            break;
                        } else {
                            this.state = 112;
                            break;
                        }
                    case 112:
                        this.state = 115;
                        this.parent._no_ads_sku_id = this.parent._no_ads_sku_id + "_test2";
                        break;
                    case 115:
                        this.state = 116;
                        this.parent._vvvvvvvvvvvvvvvvvvvv3.Initialize(ba, "billing");
                        this.parent._billing_restorepurchases();
                        B4XViewWrapper b4XViewWrapper7 = this.parent._pnsplash;
                        Common common53 = this.parent.__c;
                        b4XViewWrapper7.SetVisibleAnimated(1000, false);
                        Common common54 = this.parent.__c;
                        Common.Sleep(ba, this, 1000);
                        this.state = 132;
                        return;
                    case 116:
                        this.state = 121;
                        if (this.parent._vvvvvvvvvvvvv1) {
                            this.state = 118;
                            break;
                        } else {
                            this.state = 120;
                            break;
                        }
                    case 118:
                        this.state = 121;
                        this.parent._set_average_eqtransmissiontime();
                        this.parent._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvvv4("appTestVersion", "yes");
                        break;
                    case 120:
                        this.state = 121;
                        this.parent._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvvv4("appTestVersion", "no");
                        break;
                    case 121:
                        this.state = -1;
                        break;
                    case 122:
                        this.state = 1;
                        b4xmainpage b4xmainpageVar8 = this.parent;
                        Common common55 = b4xmainpageVar8.__c;
                        b4xmainpageVar8._size_panelmargin = Common.DipToCurrent(6);
                        b4xmainpage b4xmainpageVar9 = this.parent;
                        Common common56 = b4xmainpageVar9.__c;
                        Colors colors = Common.Colors;
                        b4xmainpageVar9._colour_panelbackground = -1;
                        this.parent._vvvvvvvvvvvvvv3.Initialize();
                        this.parent._sv.getPanel().setWidth(this.parent._vvvvvvvvvvvvvv2.getWidth());
                        this.parent._vvvvvvvvvvvv1("topSection");
                        this._installsql = false;
                        break;
                    case 123:
                        this.state = 40;
                        if (this.index47 >= this.groupLen47) {
                            break;
                        } else {
                            this.state = 35;
                            this._lg = BA.ObjectToString(this.group47.Get(this.index47));
                            break;
                        }
                    case 124:
                        this.state = 123;
                        this.index47++;
                        break;
                    case 125:
                        this.state = 42;
                        break;
                    case 126:
                        this.state = 49;
                        break;
                    case 127:
                        this.state = 60;
                        this._serverlastid = ((Integer) objArr[0]).intValue();
                        break;
                    case 128:
                        this.state = 81;
                        break;
                    case 129:
                        this.state = 95;
                        this._result1 = ((Integer) objArr[0]).intValue();
                        this._msg = (_anintromsg) this.parent._vvvvvvvvvvvvvvvvv6.Get("Intro_Location");
                        Common common57 = this.parent.__c;
                        Common.MsgboxAsync(BA.ObjectToCharSequence(this._msg.message), BA.ObjectToCharSequence(this._msg.title), ba);
                        Common common58 = this.parent.__c;
                        Common.WaitFor("msgbox_result", ba, this, (Object) null);
                        this.state = 130;
                        return;
                    case 130:
                        this.state = 95;
                        this._result2 = ((Integer) objArr[0]).intValue();
                        this.parent._vvvvvvvvvv4();
                        break;
                    case 131:
                        this.state = 104;
                        this._permission = (String) objArr[0];
                        this._locationpermissionresult = ((Boolean) objArr[1]).booleanValue();
                        break;
                    case 132:
                        this.state = 116;
                        this.parent._pnsplash.RemoveViewFromParent();
                        this._messagetopic = BA.ObjectToString(this.parent._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("fcm_topic"));
                        Common common59 = this.parent.__c;
                        firebasemessaging firebasemessagingVar = this.parent._vvvvvvvvv1;
                        Common.CallSubDelayed2(ba, firebasemessaging.getObject(), "SubscribeToTopics", this._messagetopic);
                        this.parent._vvvvvvvvvvvv4();
                        break;
                }
            }
        }
    }

    public void _billing_getnoadscost() throws Exception {
        new ResumableSub_billing_GetNoAdsCost(this).resume(this.ba, null);
    }

    public static class ResumableSub_billing_GetNoAdsCost extends BA.ResumableSub {
        b4xmainpage parent;
        Object _sf = null;
        BillingClientWrapper.BillingResultWrapper _result = null;
        List _skudetails = null;
        BillingClientWrapper.SkuDetailsWrapper _sku = null;

        public ResumableSub_billing_GetNoAdsCost(b4xmainpage b4xmainpageVar) {
            this.parent = b4xmainpageVar;
        }

        public void resume(BA ba, Object[] objArr) throws Exception {
            while (true) {
                switch (this.state) {
                    case -1:
                        return;
                    case 0:
                        this.state = 1;
                        this._sf = this.parent._vvvvvvvvvvvvvvvvvvvv3.QuerySkuDetails(ba, "inapp", Common.ArrayToList(new Object[]{this.parent._no_ads_sku_id}));
                        Common common = this.parent.__c;
                        Common.WaitFor("billing_skuquerycompleted", ba, this, this._sf);
                        this.state = 13;
                        return;
                    case 1:
                        this.state = 12;
                        if (this._result.getIsSuccess() && this._skudetails.getSize() == 1) {
                            this.state = 3;
                            break;
                        } else {
                            this.state = 11;
                            break;
                        }
                    case 3:
                        this.state = 4;
                        this._sku = new BillingClientWrapper.SkuDetailsWrapper();
                        this._sku = AbsObjectWrapper.ConvertToWrapper(new BillingClientWrapper.SkuDetailsWrapper(), (ProductDetails) this._skudetails.Get(0));
                        break;
                    case 4:
                        this.state = 9;
                        if (this.parent._vvvvvvvvvvvvv1) {
                            this.state = 6;
                            break;
                        } else {
                            this.state = 8;
                            break;
                        }
                    case 6:
                        this.state = 9;
                        b4xmainpage b4xmainpageVar = this.parent;
                        b4xmainpageVar._vvvvvvvvvvvvvvvvvvvv4 = b4xmainpageVar._vvvvvvvvvvvv6("(Test) Remove Ads for");
                        break;
                    case 8:
                        this.state = 9;
                        b4xmainpage b4xmainpageVar2 = this.parent;
                        b4xmainpageVar2._vvvvvvvvvvvvvvvvvvvv4 = b4xmainpageVar2._vvvvvvvvvvvv6("Remove Ads for");
                        break;
                    case 9:
                        this.state = 12;
                        this.parent._vvvvvvvvvvvvvvvvvvvv5 = this._sku.getPrice();
                        break;
                    case 11:
                        this.state = 12;
                        b4xmainpage b4xmainpageVar3 = this.parent;
                        b4xmainpageVar3._vvvvvvvvvvvvvvvvvvvv4 = b4xmainpageVar3._vvvvvvvvvvvv6("sku not found");
                        break;
                    case 12:
                        this.state = -1;
                        break;
                    case 13:
                        this.state = 1;
                        this._result = (BillingClientWrapper.BillingResultWrapper) objArr[0];
                        this._skudetails = (List) objArr[1];
                        break;
                }
            }
        }
    }

    public void _billing_handleadspurchase(BillingClientWrapper.PurchaseWrapper purchaseWrapper) throws Exception {
        new ResumableSub_billing_HandleAdsPurchase(this, purchaseWrapper).resume(this.ba, null);
    }

    public static class ResumableSub_billing_HandleAdsPurchase extends BA.ResumableSub {
        BillingClientWrapper.PurchaseWrapper _p;
        boolean _proceed = false;
        BillingClientWrapper.BillingResultWrapper _result = null;
        b4xmainpage parent;

        public ResumableSub_billing_HandleAdsPurchase(b4xmainpage b4xmainpageVar, BillingClientWrapper.PurchaseWrapper purchaseWrapper) {
            this.parent = b4xmainpageVar;
            this._p = purchaseWrapper;
        }

        public void resume(BA ba, Object[] objArr) throws Exception {
            while (true) {
                switch (this.state) {
                    case -1:
                        return;
                    case 0:
                        this.state = 1;
                        Common common = this.parent.__c;
                        this._proceed = true;
                        break;
                    case 1:
                        this.state = 6;
                        if (this._p.getPurchaseState() == 1) {
                            break;
                        } else {
                            this.state = 3;
                            break;
                        }
                    case 3:
                        this.state = 6;
                        Common common2 = this.parent.__c;
                        this._proceed = false;
                        break;
                    case 6:
                        this.state = 7;
                        break;
                    case 7:
                        this.state = 10;
                        boolean contains = this._p.getSku().contains("_noads");
                        Common common3 = this.parent.__c;
                        if (!contains) {
                            b4xpages b4xpagesVar = this.parent._vvvvvvvvvv1;
                            BillingClientWrapper billingClientWrapper = b4xpages._vvvv1(ba)._vvvvvvvvvvvvvvvvvvvv3;
                            BillingClientWrapper.PurchaseWrapper purchaseWrapper = this._p;
                            b4xpages b4xpagesVar2 = this.parent._vvvvvvvvvv1;
                            boolean VerifyPurchase = billingClientWrapper.VerifyPurchase(purchaseWrapper, b4xpages._vvvv1(ba)._billing_key);
                            Common common4 = this.parent.__c;
                            if (!VerifyPurchase) {
                                this.state = 9;
                                break;
                            } else {
                                break;
                            }
                        } else {
                            break;
                        }
                    case 9:
                        this.state = 10;
                        Common common5 = this.parent.__c;
                        this._proceed = false;
                        break;
                    case 10:
                        this.state = 17;
                        if (!this._proceed) {
                            break;
                        } else {
                            this.state = 12;
                            break;
                        }
                    case 12:
                        this.state = 13;
                        break;
                    case 13:
                        this.state = 16;
                        boolean isAcknowledged = this._p.getIsAcknowledged();
                        Common common6 = this.parent.__c;
                        if (!isAcknowledged) {
                            this.state = 15;
                            break;
                        } else {
                            break;
                        }
                    case 15:
                        this.state = 16;
                        Common common7 = this.parent.__c;
                        b4xpages b4xpagesVar3 = this.parent._vvvvvvvvvv1;
                        Common.WaitFor("billing_acknowledgecompleted", ba, this, b4xpages._vvvv1(ba)._vvvvvvvvvvvvvvvvvvvv3.AcknowledgePurchase(ba, this._p.getPurchaseToken(), BuildConfig.FLAVOR));
                        this.state = 18;
                        return;
                    case 16:
                        this.state = 17;
                        b4xmainpage b4xmainpageVar = this.parent;
                        Common common8 = b4xmainpageVar.__c;
                        b4xmainpageVar._vvvvvvvvvvvvvvvvvvv6 = false;
                        break;
                    case 17:
                        this.state = -1;
                        this.parent._admob_update_adsstate();
                        break;
                    case 18:
                        this.state = 16;
                        this._result = (BillingClientWrapper.BillingResultWrapper) objArr[0];
                        break;
                }
            }
        }
    }

    public String _billing_purchasesupdated(BillingClientWrapper.BillingResultWrapper billingResultWrapper, List list) throws Exception {
        if (billingResultWrapper.getIsSuccess()) {
            new BillingClientWrapper.PurchaseWrapper();
            int size = list.getSize();
            for (int i = 0; i < size; i++) {
                BillingClientWrapper.PurchaseWrapper purchaseWrapper = (BillingClientWrapper.PurchaseWrapper) AbsObjectWrapper.ConvertToWrapper(new BillingClientWrapper.PurchaseWrapper(), (Purchase) list.Get(i));
                if (purchaseWrapper.getSku().equals(this._no_ads_sku_id)) {
                    _billing_handleadspurchase(purchaseWrapper);
                } else {
                    Common.LogImpl("87929864", "Unexpected product...", 0);
                }
            }
            return BuildConfig.FLAVOR;
        }
        return BuildConfig.FLAVOR;
    }

    public void _billing_restorepurchases() throws Exception {
        new ResumableSub_billing_RestorePurchases(this).resume(this.ba, null);
    }

    public static class ResumableSub_billing_RestorePurchases extends BA.ResumableSub {
        BA.IterableList group8;
        int groupLen8;
        int index8;
        b4xmainpage parent;
        BillingClientWrapper.BillingResultWrapper _result1 = null;
        BillingClientWrapper.BillingResultWrapper _result2 = null;
        List _purchases = null;
        boolean _nopurchase = false;
        BillingClientWrapper.PurchaseWrapper _p = null;

        public ResumableSub_billing_RestorePurchases(b4xmainpage b4xmainpageVar) {
            this.parent = b4xmainpageVar;
        }

        public void resume(BA ba, Object[] objArr) throws Exception {
            while (true) {
                switch (this.state) {
                    case -1:
                        return;
                    case 0:
                        this.state = 1;
                        b4xmainpage b4xmainpageVar = this.parent;
                        Common common = b4xmainpageVar.__c;
                        b4xmainpageVar._vvvvvvvvvvvvvvvvvvv6 = true;
                        Common common2 = this.parent.__c;
                        Common.WaitFor("billing_connected", ba, this, this.parent._vvvvvvvvvvvvvvvvvvvv3.ConnectIfNeeded(ba));
                        this.state = 26;
                        return;
                    case 1:
                        this.state = 25;
                        if (this._result1.getIsSuccess()) {
                            this.state = 3;
                            break;
                        } else {
                            this.state = 24;
                            break;
                        }
                    case 3:
                        this.state = 4;
                        Common common3 = this.parent.__c;
                        Common.WaitFor("billing_purchasesquerycompleted", ba, this, this.parent._vvvvvvvvvvvvvvvvvvvv3.QueryPurchases(ba, "inapp"));
                        this.state = 27;
                        return;
                    case 4:
                        this.state = 22;
                        if (this._result2.getIsSuccess()) {
                            this.state = 6;
                            break;
                        } else {
                            this.state = 21;
                            break;
                        }
                    case 6:
                        this.state = 7;
                        Common common4 = this.parent.__c;
                        this._nopurchase = true;
                        break;
                    case 7:
                        this.state = 14;
                        this._p = new BillingClientWrapper.PurchaseWrapper();
                        List list = this._purchases;
                        this.group8 = list;
                        this.index8 = 0;
                        this.groupLen8 = list.getSize();
                        this.state = 28;
                        break;
                    case 9:
                        this.state = 10;
                        break;
                    case 10:
                        this.state = 13;
                        if (!this._p.getSku().equals(this.parent._no_ads_sku_id)) {
                            break;
                        } else {
                            this.state = 12;
                            break;
                        }
                    case 12:
                        this.state = 13;
                        Common common5 = this.parent.__c;
                        this._nopurchase = false;
                        this.parent._billing_handleadspurchase(this._p);
                        break;
                    case 13:
                        this.state = 29;
                        break;
                    case 14:
                        this.state = 19;
                        if (!this._nopurchase) {
                            break;
                        } else {
                            this.state = 16;
                            break;
                        }
                    case 16:
                        this.state = 19;
                        this.parent._admob_update_adsstate();
                        break;
                    case 19:
                        this.state = 22;
                        break;
                    case 21:
                        this.state = 22;
                        this.parent._admob_update_adsstate();
                        break;
                    case 22:
                        this.state = 25;
                        break;
                    case 24:
                        this.state = 25;
                        this.parent._admob_update_adsstate();
                        break;
                    case 25:
                        this.state = -1;
                        break;
                    case 26:
                        this.state = 1;
                        this._result1 = (BillingClientWrapper.BillingResultWrapper) objArr[0];
                        break;
                    case 27:
                        this.state = 4;
                        this._result2 = (BillingClientWrapper.BillingResultWrapper) objArr[0];
                        this._purchases = (List) objArr[1];
                        Common common6 = this.parent.__c;
                        Common.LogImpl("87864329", "Billing Query completed: " + BA.ObjectToString(Boolean.valueOf(this._result2.getIsSuccess())), 0);
                        break;
                    case 28:
                        this.state = 14;
                        if (this.index8 >= this.groupLen8) {
                            break;
                        } else {
                            this.state = 9;
                            this._p = AbsObjectWrapper.ConvertToWrapper(new BillingClientWrapper.PurchaseWrapper(), (Purchase) this.group8.Get(this.index8));
                            break;
                        }
                    case 29:
                        this.state = 28;
                        this.index8++;
                        break;
                }
            }
        }
    }

    public String _c10_info_click() throws Exception {
        Common.MsgboxAsync(BA.ObjectToCharSequence(this._vvvvvvvvvvvvv0.ExecQuerySingleResult("Select Info_" + b4xpages._vvvv1(this.ba)._vvvvvvvvvvvvvvvvv4 + " As About From App_Information Where InfoType = 'chart10' And ( App_Title = 'Common' Or App_Title = '" + this._vvvvvvvvvvvvvv4 + "' )")), BA.ObjectToCharSequence(_vvvvvvvvvvvv6("Anomalous Earthquake Index")), this.ba);
        return BuildConfig.FLAVOR;
    }

    public String _c11_info_click() throws Exception {
        Common.MsgboxAsync(BA.ObjectToCharSequence(this._vvvvvvvvvvvvv0.ExecQuerySingleResult("Select Info_" + b4xpages._vvvv1(this.ba)._vvvvvvvvvvvvvvvvv4 + " As About From App_Information Where InfoType = 'chart11' And ( App_Title = 'Common' Or App_Title = '" + this._vvvvvvvvvvvvvv4 + "' )")), BA.ObjectToCharSequence(_vvvvvvvvvvvv6("Average Monthly Frequency")), this.ba);
        return BuildConfig.FLAVOR;
    }

    public String _c13_info_click() throws Exception {
        Common.MsgboxAsync(BA.ObjectToCharSequence(this._vvvvvvvvvvvvv0.ExecQuerySingleResult("Select Info_" + b4xpages._vvvv1(this.ba)._vvvvvvvvvvvvvvvvv4 + " As About From App_Information Where InfoType = 'chart13' And ( App_Title = 'Common' Or App_Title = '" + this._vvvvvvvvvvvvvv4 + "' )")), BA.ObjectToCharSequence(_vvvvvvvvvvvv6("Earthquake Frequency Index")), this.ba);
        return BuildConfig.FLAVOR;
    }

    public void _cb_selectdepth_selectedindexchanged(int i) throws Exception {
        new ResumableSub_cb_SelectDepth_SelectedIndexChanged(this, i).resume(this.ba, null);
    }

    public static class ResumableSub_cb_SelectDepth_SelectedIndexChanged extends BA.ResumableSub {
        int _index;
        boolean _result = false;
        b4xmainpage parent;

        public ResumableSub_cb_SelectDepth_SelectedIndexChanged(b4xmainpage b4xmainpageVar, int i) {
            this.parent = b4xmainpageVar;
            this._index = i;
        }

        public void resume(BA ba, Object[] objArr) throws Exception {
            while (true) {
                int i = this.state;
                if (i == -1) {
                    return;
                }
                if (i == 0) {
                    this.state = -1;
                    Common common = this.parent.__c;
                    Common.WaitFor("complete", ba, this, this.parent._pn09_todaymap_plotbitmaps());
                    this.state = 1;
                    return;
                }
                if (i == 1) {
                    this.state = -1;
                    this._result = ((Boolean) objArr[0]).booleanValue();
                }
            }
        }
    }

    public void _cb_selectmagnitude_selectedindexchanged(int i) throws Exception {
        new ResumableSub_cb_SelectMagnitude_SelectedIndexChanged(this, i).resume(this.ba, null);
    }

    public static class ResumableSub_cb_SelectMagnitude_SelectedIndexChanged extends BA.ResumableSub {
        int _index;
        boolean _result = false;
        b4xmainpage parent;

        public ResumableSub_cb_SelectMagnitude_SelectedIndexChanged(b4xmainpage b4xmainpageVar, int i) {
            this.parent = b4xmainpageVar;
            this._index = i;
        }

        public void resume(BA ba, Object[] objArr) throws Exception {
            while (true) {
                int i = this.state;
                if (i == -1) {
                    return;
                }
                if (i == 0) {
                    this.state = -1;
                    Common common = this.parent.__c;
                    Common.WaitFor("complete", ba, this, this.parent._pn09_todaymap_plotbitmaps());
                    this.state = 1;
                    return;
                }
                if (i == 1) {
                    this.state = -1;
                    this._result = ((Boolean) objArr[0]).booleanValue();
                }
            }
        }
    }

    public void _cb_selectperiod_selectedindexchanged(int i) throws Exception {
        new ResumableSub_cb_SelectPeriod_SelectedIndexChanged(this, i).resume(this.ba, null);
    }

    public static class ResumableSub_cb_SelectPeriod_SelectedIndexChanged extends BA.ResumableSub {
        int _index;
        boolean _result = false;
        b4xmainpage parent;

        public ResumableSub_cb_SelectPeriod_SelectedIndexChanged(b4xmainpage b4xmainpageVar, int i) {
            this.parent = b4xmainpageVar;
            this._index = i;
        }

        public void resume(BA ba, Object[] objArr) throws Exception {
            while (true) {
                int i = this.state;
                if (i == -1) {
                    return;
                }
                if (i == 0) {
                    this.state = -1;
                    Common common = this.parent.__c;
                    Common.WaitFor("complete", ba, this, this.parent._pn09_todaymap_plotbitmaps());
                    this.state = 1;
                    return;
                }
                if (i == 1) {
                    this.state = -1;
                    this._result = ((Boolean) objArr[0]).booleanValue();
                }
            }
        }
    }

    public Common.ResumableSubWrapper _vvvvvvvvvv4() throws Exception {
        ResumableSub_CheckAndRequestNotificationPermission resumableSub_CheckAndRequestNotificationPermission = new ResumableSub_CheckAndRequestNotificationPermission(this);
        resumableSub_CheckAndRequestNotificationPermission.resume(this.ba, null);
        return AbsObjectWrapper.ConvertToWrapper(new Common.ResumableSubWrapper(), resumableSub_CheckAndRequestNotificationPermission);
    }

    public static class ResumableSub_CheckAndRequestNotificationPermission extends BA.ResumableSub {
        b4xmainpage parent;
        Reflection _r = null;
        int _sdkversion = 0;
        JavaObject _ctxt = null;
        int _targetsdkversion = 0;
        JavaObject _notificationsmanager = null;
        boolean _notificationsenabled = false;
        String _permission = BuildConfig.FLAVOR;
        boolean _result = false;

        public ResumableSub_CheckAndRequestNotificationPermission(b4xmainpage b4xmainpageVar) {
            this.parent = b4xmainpageVar;
        }

        public void resume(BA ba, Object[] objArr) throws Exception {
            while (true) {
                int i = this.state;
                if (i == -1) {
                    Common common = this.parent.__c;
                    Common.ReturnFromResumableSub(this, (Object) null);
                    return;
                }
                if (i == 0) {
                    this.state = 1;
                    Reflection reflection = new Reflection();
                    this._r = reflection;
                    this._sdkversion = (int) BA.ObjectToNumber(reflection.GetStaticField("android.os.Build$VERSION", "SDK_INT"));
                } else if (i == 1) {
                    this.state = 6;
                    if (this._sdkversion < 33) {
                        this.state = 3;
                    }
                } else {
                    if (i == 3) {
                        this.state = 6;
                        Common common2 = this.parent.__c;
                        Common common3 = this.parent.__c;
                        Common.ReturnFromResumableSub(this, true);
                        return;
                    }
                    if (i == 9) {
                        this.state = 12;
                        Common common4 = this.parent.__c;
                        Common common5 = this.parent.__c;
                        Common.ReturnFromResumableSub(this, true);
                        return;
                    }
                    if (i == 15) {
                        this.state = 18;
                        Common common6 = this.parent.__c;
                        Common common7 = this.parent.__c;
                        Common.ReturnFromResumableSub(this, true);
                        return;
                    }
                    if (i == 6) {
                        this.state = 7;
                        JavaObject javaObject = new JavaObject();
                        this._ctxt = javaObject;
                        javaObject.InitializeContext(ba);
                        JavaObject javaObject2 = this._ctxt;
                        Common common8 = this.parent.__c;
                        this._targetsdkversion = (int) BA.ObjectToNumber(javaObject2.RunMethodJO("getApplicationInfo", (Object[]) Common.Null).GetField("targetSdkVersion"));
                    } else if (i == 7) {
                        this.state = 12;
                        if (this._targetsdkversion < 33) {
                            this.state = 9;
                        }
                    } else if (i == 12) {
                        this.state = 13;
                        this._notificationsmanager = new JavaObject();
                        JavaObject ConvertToWrapper = AbsObjectWrapper.ConvertToWrapper(new JavaObject(), this._ctxt.RunMethod("getSystemService", new Object[]{"notification"}));
                        this._notificationsmanager = ConvertToWrapper;
                        Common common9 = this.parent.__c;
                        this._notificationsenabled = BA.ObjectToBoolean(ConvertToWrapper.RunMethod("areNotificationsEnabled", (Object[]) Common.Null));
                    } else if (i == 13) {
                        this.state = 18;
                        if (this._notificationsenabled) {
                            this.state = 15;
                        }
                    } else {
                        if (i == 18) {
                            this.state = -1;
                            this.parent._vvvvvvvvvvvvvvvvvvv5 = new RuntimePermissions();
                            RuntimePermissions runtimePermissions = this.parent._vvvvvvvvvvvvvvvvvvv5;
                            RuntimePermissions runtimePermissions2 = this.parent._vvvvvvvvvvvvvvvvvvv5;
                            runtimePermissions.CheckAndRequest(ba, "android.permission.POST_NOTIFICATIONS");
                            Common common10 = this.parent.__c;
                            Common.WaitFor("b4xpage_permissionresult", ba, this, (Object) null);
                            this.state = 19;
                            return;
                        }
                        if (i == 19) {
                            this.state = -1;
                            this._permission = (String) objArr[0];
                            this._result = ((Boolean) objArr[1]).booleanValue();
                            Common common11 = this.parent.__c;
                            Common.ReturnFromResumableSub(this, Boolean.valueOf(this._result));
                            return;
                        }
                    }
                }
            }
        }
    }

    public String _vvvvvvvvvv5() throws Exception {
        this._vvvvvvvvvvvvvvv0 = false;
        if (this._vvvvvvvvvvvvvvvvvvvvvvv5.getSize() > 0) {
            int size = this._vvvvvvvvvvvvvvvvvvvvvvv5.getSize() - 1;
            int i = 0;
            while (true) {
                if (i > size) {
                    break;
                }
                if (((_aneq) this._vvvvvvvvvvvvvvvvvvvvvvv5.Get(i)).magnitude == 999.0d) {
                    this._vvvvvvvvvvvvvvv0 = true;
                    break;
                }
                i++;
            }
        }
        this._chartbluetwoyears_withdepth = false;
        if (this._vvvvvvvvvvvvvvvvvvvvvvv5.getSize() > 0) {
            int size2 = this._vvvvvvvvvvvvvvvvvvvvvvv5.getSize() - 1;
            int i2 = 0;
            while (true) {
                if (i2 > size2) {
                    break;
                }
                _aneq _aneqVar = (_aneq) this._vvvvvvvvvvvvvvvvvvvvvvv5.Get(i2);
                if (_aneqVar.depth != 999.0d && _aneqVar.magnitude == 999.0d) {
                    this._chartbluetwoyears_withdepth = true;
                    break;
                }
                i2++;
            }
        }
        this._vvvvvvvvvvvvvvvv1 = false;
        if (this._vvvvvvvvvvvvvvvvvvvvvvv4.getSize() > 0) {
            int size3 = this._vvvvvvvvvvvvvvvvvvvvvvv4.getSize() - 1;
            int i3 = 0;
            while (true) {
                if (i3 > size3) {
                    break;
                }
                if (((_aneq) this._vvvvvvvvvvvvvvvvvvvvvvv4.Get(i3)).magnitude == 999.0d) {
                    this._vvvvvvvvvvvvvvvv1 = true;
                    break;
                }
                i3++;
            }
        }
        this._chartbluemonth_withdepth = false;
        if (this._vvvvvvvvvvvvvvvvvvvvvvv4.getSize() > 0) {
            int size4 = this._vvvvvvvvvvvvvvvvvvvvvvv4.getSize() - 1;
            int i4 = 0;
            while (true) {
                if (i4 > size4) {
                    break;
                }
                _aneq _aneqVar2 = (_aneq) this._vvvvvvvvvvvvvvvvvvvvvvv4.Get(i4);
                if (_aneqVar2.depth != 999.0d && _aneqVar2.magnitude == 999.0d) {
                    this._chartbluemonth_withdepth = true;
                    break;
                }
                i4++;
            }
        }
        this._vvvvvvvvvvvvvvvv2 = false;
        if (this._vvvvvvvvvvvvvvvvvvvvvvv3.getSize() > 0) {
            int size5 = this._vvvvvvvvvvvvvvvvvvvvvvv3.getSize() - 1;
            int i5 = 0;
            while (true) {
                if (i5 > size5) {
                    break;
                }
                if (((_aneq) this._vvvvvvvvvvvvvvvvvvvvvvv3.Get(i5)).magnitude == 999.0d) {
                    this._vvvvvvvvvvvvvvvv2 = true;
                    break;
                }
                i5++;
            }
        }
        this._chartblueweek_withdepth = false;
        if (this._vvvvvvvvvvvvvvvvvvvvvvv3.getSize() > 0) {
            int size6 = this._vvvvvvvvvvvvvvvvvvvvvvv3.getSize() - 1;
            int i6 = 0;
            while (true) {
                if (i6 > size6) {
                    break;
                }
                _aneq _aneqVar3 = (_aneq) this._vvvvvvvvvvvvvvvvvvvvvvv3.Get(i6);
                if (_aneqVar3.depth != 999.0d && _aneqVar3.magnitude == 999.0d) {
                    this._chartblueweek_withdepth = true;
                    break;
                }
                i6++;
            }
        }
        this._vvvvvvvvvvvvvvvv3 = false;
        if (this._v5.getSize() > 0) {
            int size7 = this._v5.getSize() - 1;
            int i7 = 0;
            while (true) {
                if (i7 > size7) {
                    break;
                }
                if (((_aneq) this._v5.Get(i7)).magnitude == 999.0d) {
                    this._vvvvvvvvvvvvvvvv3 = true;
                    break;
                }
                i7++;
            }
        }
        this._chartblueday_withdepth = false;
        if (this._v5.getSize() > 0) {
            int size8 = this._v5.getSize() - 1;
            int i8 = 0;
            while (true) {
                if (i8 > size8) {
                    break;
                }
                _aneq _aneqVar4 = (_aneq) this._v5.Get(i8);
                if (_aneqVar4.depth != 999.0d && _aneqVar4.magnitude == 999.0d) {
                    this._chartblueday_withdepth = true;
                    break;
                }
                i8++;
            }
        }
        this._vvvvvvvvvvvvvvv5 = false;
        if (this._vvvvvvvvvvvvvvvvvvvvvvv5.getSize() > 0) {
            int size9 = this._vvvvvvvvvvvvvvvvvvvvvvv5.getSize() - 1;
            int i9 = 0;
            while (true) {
                if (i9 > size9) {
                    break;
                }
                if (((_aneq) this._vvvvvvvvvvvvvvvvvvvvvvv5.Get(i9)).magnitude != 999.0d) {
                    this._vvvvvvvvvvvvvvv5 = true;
                    break;
                }
                i9++;
            }
        }
        this._chartgreentwoyears_withdepth = false;
        if (this._vvvvvvvvvvvvvvvvvvvvvvv5.getSize() > 0) {
            int size10 = this._vvvvvvvvvvvvvvvvvvvvvvv5.getSize() - 1;
            int i10 = 0;
            while (true) {
                if (i10 > size10) {
                    break;
                }
                _aneq _aneqVar5 = (_aneq) this._vvvvvvvvvvvvvvvvvvvvvvv5.Get(i10);
                if (_aneqVar5.depth != 999.0d && _aneqVar5.magnitude != 999.0d) {
                    this._chartgreentwoyears_withdepth = true;
                    break;
                }
                i10++;
            }
        }
        this._vvvvvvvvvvvvvvv6 = false;
        if (this._vvvvvvvvvvvvvvvvvvvvvvv4.getSize() > 0) {
            int size11 = this._vvvvvvvvvvvvvvvvvvvvvvv4.getSize() - 1;
            int i11 = 0;
            while (true) {
                if (i11 > size11) {
                    break;
                }
                if (((_aneq) this._vvvvvvvvvvvvvvvvvvvvvvv4.Get(i11)).magnitude != 999.0d) {
                    this._vvvvvvvvvvvvvvv6 = true;
                    break;
                }
                i11++;
            }
        }
        this._chartgreenmonth_withdepth = false;
        if (this._vvvvvvvvvvvvvvvvvvvvvvv4.getSize() > 0) {
            int size12 = this._vvvvvvvvvvvvvvvvvvvvvvv4.getSize() - 1;
            int i12 = 0;
            while (true) {
                if (i12 > size12) {
                    break;
                }
                _aneq _aneqVar6 = (_aneq) this._vvvvvvvvvvvvvvvvvvvvvvv4.Get(i12);
                if (_aneqVar6.depth != 999.0d && _aneqVar6.magnitude != 999.0d) {
                    this._chartgreenmonth_withdepth = true;
                    break;
                }
                i12++;
            }
        }
        this._vvvvvvvvvvvvvvv7 = false;
        if (this._vvvvvvvvvvvvvvvvvvvvvvv3.getSize() > 0) {
            int size13 = this._vvvvvvvvvvvvvvvvvvvvvvv3.getSize() - 1;
            int i13 = 0;
            while (true) {
                if (i13 > size13) {
                    break;
                }
                if (((_aneq) this._vvvvvvvvvvvvvvvvvvvvvvv3.Get(i13)).magnitude != 999.0d) {
                    this._vvvvvvvvvvvvvvv7 = true;
                    break;
                }
                i13++;
            }
        }
        this._chartgreenweek_withdepth = false;
        if (this._vvvvvvvvvvvvvvvvvvvvvvv3.getSize() > 0) {
            int size14 = this._vvvvvvvvvvvvvvvvvvvvvvv3.getSize() - 1;
            int i14 = 0;
            while (true) {
                if (i14 > size14) {
                    break;
                }
                _aneq _aneqVar7 = (_aneq) this._vvvvvvvvvvvvvvvvvvvvvvv3.Get(i14);
                if (_aneqVar7.depth != 999.0d && _aneqVar7.magnitude != 999.0d) {
                    this._chartgreenweek_withdepth = true;
                    break;
                }
                i14++;
            }
        }
        this._vvvvvvvvvvvvvvvv4 = false;
        if (this._v5.getSize() > 0) {
            int size15 = this._v5.getSize() - 1;
            int i15 = 0;
            while (true) {
                if (i15 > size15) {
                    break;
                }
                if (((_aneq) this._v5.Get(i15)).magnitude != 999.0d) {
                    this._vvvvvvvvvvvvvvvv4 = true;
                    break;
                }
                i15++;
            }
        }
        this._chartredday_withdepth = false;
        if (this._v5.getSize() > 0) {
            int size16 = this._v5.getSize() - 1;
            for (int i16 = 0; i16 <= size16; i16++) {
                _aneq _aneqVar8 = (_aneq) this._v5.Get(i16);
                if (_aneqVar8.depth != 999.0d && _aneqVar8.magnitude != 999.0d) {
                    this._chartredday_withdepth = true;
                    return BuildConfig.FLAVOR;
                }
            }
            return BuildConfig.FLAVOR;
        }
        return BuildConfig.FLAVOR;
    }

    public String _vvvvvvvvvv6() throws Exception {
        DateTime dateTime = Common.DateTime;
        long now = DateTime.getNow();
        DateTime dateTime2 = Common.DateTime;
        long j = now - 86400000;
        DateTime dateTime3 = Common.DateTime;
        long j2 = now - 604800000;
        DateTime dateTime4 = Common.DateTime;
        long j3 = now - 2592000000L;
        DateTime dateTime5 = Common.DateTime;
        long j4 = now - 62208000000L;
        if (this._v5.getSize() > 0) {
            List list = new List();
            list.Initialize();
            int size = this._v5.getSize() - 1;
            for (int i = 0; i <= size; i++) {
                _aneq _aneqVar = (_aneq) this._v5.Get(i);
                if (_aneqVar.timeUTC > j) {
                    list.Add(_aneqVar);
                } else {
                    this._vvvvvvvvvvvvvvvvvvvvvvv3.Add(_aneqVar);
                }
            }
            if (list.getSize() < this._v5.getSize()) {
                this._v5 = list;
            }
        }
        if (this._vvvvvvvvvvvvvvvvvvvvvvv3.getSize() > 0) {
            List list2 = new List();
            list2.Initialize();
            int size2 = this._vvvvvvvvvvvvvvvvvvvvvvv3.getSize() - 1;
            for (int i2 = 0; i2 <= size2; i2++) {
                _aneq _aneqVar2 = (_aneq) this._vvvvvvvvvvvvvvvvvvvvvvv3.Get(i2);
                if (_aneqVar2.timeUTC > j2) {
                    list2.Add(_aneqVar2);
                } else {
                    this._vvvvvvvvvvvvvvvvvvvvvvv4.Add(_aneqVar2);
                }
            }
            if (list2.getSize() < this._vvvvvvvvvvvvvvvvvvvvvvv3.getSize()) {
                this._vvvvvvvvvvvvvvvvvvvvvvv3 = list2;
            }
        }
        if (this._vvvvvvvvvvvvvvvvvvvvvvv4.getSize() > 0) {
            List list3 = new List();
            list3.Initialize();
            int size3 = this._vvvvvvvvvvvvvvvvvvvvvvv4.getSize() - 1;
            for (int i3 = 0; i3 <= size3; i3++) {
                _aneq _aneqVar3 = (_aneq) this._vvvvvvvvvvvvvvvvvvvvvvv4.Get(i3);
                if (_aneqVar3.timeUTC > j3) {
                    list3.Add(_aneqVar3);
                } else {
                    this._vvvvvvvvvvvvvvvvvvvvvvv5.Add(_aneqVar3);
                }
            }
            if (list3.getSize() < this._vvvvvvvvvvvvvvvvvvvvvvv4.getSize()) {
                this._vvvvvvvvvvvvvvvvvvvvvvv4 = list3;
            }
        }
        if (this._vvvvvvvvvvvvvvvvvvvvvvv5.getSize() > 0) {
            List list4 = new List();
            list4.Initialize();
            int size4 = this._vvvvvvvvvvvvvvvvvvvvvvv5.getSize() - 1;
            for (int i4 = 0; i4 <= size4; i4++) {
                _aneq _aneqVar4 = (_aneq) this._vvvvvvvvvvvvvvvvvvvvvvv5.Get(i4);
                if (_aneqVar4.timeUTC > j4) {
                    list4.Add(_aneqVar4);
                }
            }
            if (list4.getSize() < this._vvvvvvvvvvvvvvvvvvvvvvv5.getSize()) {
                this._vvvvvvvvvvvvvvvvvvvvvvv5 = list4;
                return BuildConfig.FLAVOR;
            }
            return BuildConfig.FLAVOR;
        }
        return BuildConfig.FLAVOR;
    }

    public Common.ResumableSubWrapper _vvvvvvvvvv7() throws Exception {
        ResumableSub_CheckLastEvent resumableSub_CheckLastEvent = new ResumableSub_CheckLastEvent(this);
        resumableSub_CheckLastEvent.resume(this.ba, null);
        return AbsObjectWrapper.ConvertToWrapper(new Common.ResumableSubWrapper(), resumableSub_CheckLastEvent);
    }

    public static class ResumableSub_CheckLastEvent extends BA.ResumableSub {
        String _eqserver = BuildConfig.FLAVOR;
        httpjob _job = null;
        int _lasteventid = 0;
        b4xmainpage parent;

        public ResumableSub_CheckLastEvent(b4xmainpage b4xmainpageVar) {
            this.parent = b4xmainpageVar;
        }

        public void resume(BA ba, Object[] objArr) throws Exception {
            while (true) {
                int i = this.state;
                if (i == -1) {
                    Common common = this.parent.__c;
                    Common.ReturnFromResumableSub(this, (Object) null);
                    return;
                }
                if (i == 0) {
                    this.state = 1;
                    Common common2 = this.parent.__c;
                    Common.LogImpl("88847362", "checking last event on server", 0);
                    this._eqserver = "http://91.108.112.177:52893/vslast";
                    httpjob httpjobVar = new httpjob();
                    this._job = httpjobVar;
                    httpjobVar._initialize(ba, BuildConfig.FLAVOR, this.parent);
                    this._job._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv6(this._eqserver);
                    Common common3 = this.parent.__c;
                    Common.WaitFor("jobdone", ba, this, this._job);
                    this.state = 13;
                    return;
                }
                if (i == 1) {
                    this.state = 12;
                    if (this._job._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv3) {
                        this.state = 3;
                    } else {
                        this.state = 11;
                    }
                } else if (i == 3) {
                    this.state = 4;
                } else if (i == 4) {
                    this.state = 9;
                    Common common4 = this.parent.__c;
                    if (Common.IsNumber(this._job._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv5())) {
                        this.state = 6;
                    }
                } else if (i == 6) {
                    this.state = 9;
                    this._lasteventid = (int) Double.parseDouble(this._job._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv5());
                } else if (i == 9) {
                    this.state = 12;
                } else {
                    switch (i) {
                        case 11:
                            this.state = 12;
                            this._lasteventid = 999;
                            break;
                        case 12:
                            this.state = -1;
                            this._job._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1();
                            Common common5 = this.parent.__c;
                            Common.ReturnFromResumableSub(this, Integer.valueOf(this._lasteventid));
                            return;
                        case 13:
                            this.state = 1;
                            this._job = (httpjob) objArr[0];
                            this._lasteventid = 0;
                            break;
                    }
                }
            }
        }
    }

    public void _vvvvvvvvvv0() throws Exception {
        new ResumableSub_CheckServerFeltReports(this).resume(this.ba, null);
    }

    public static class ResumableSub_CheckServerFeltReports extends BA.ResumableSub {
        int limit14;
        b4xmainpage parent;
        int step14;
        String _url = BuildConfig.FLAVOR;
        httpjob _j = null;
        JSONParser _jp = null;
        List _svrfeltreports = null;
        int _i = 0;
        Map _fcm_m = null;
        long _todaylimit = 0;
        _afeltreport _newreport = null;

        public ResumableSub_CheckServerFeltReports(b4xmainpage b4xmainpageVar) {
            this.parent = b4xmainpageVar;
        }

        public void resume(anywheresoftware.b4a.BA r14, java.lang.Object[] r15) throws java.lang.Exception {
            throw new UnsupportedOperationException("Method not decompiled: com.volcanex.vesuvius.b4xmainpage.ResumableSub_CheckServerFeltReports.resume(anywheresoftware.b4a.BA, java.lang.Object[]):void");
        }
    }

    public String _class_globals() throws Exception {
        this._vvvvvvvvvvvvv1 = false;
        this._vvvvvvvvvvvvv2 = "6E51BE88E792DC8C7FA674C6C7448B38";
        this._vvvvvvvvvvvvv3 = new B4XViewWrapper.XUI();
        this._vvvvvvvvvvvvv4 = BuildConfig.FLAVOR;
        this._vvvvvvvvvvvvv5 = BuildConfig.FLAVOR;
        this._vvvvvvvvvvvvv6 = 0;
        this._vvvvvvvvvvvvv7 = false;
        this._vvvvvvvvvvvvv0 = new SQL();
        this._vvvvvvvvvvvvvv1 = new keyvaluestore();
        this._vvvvvvvvvvvvvv2 = new B4XViewWrapper();
        this._pnsplash = new B4XViewWrapper();
        this._vvvvvvvvvvvvvv3 = new List();
        this._vvvvvvvvvvvvvv4 = BuildConfig.FLAVOR;
        this._video_lastdownloadtime = 0L;
        this._vvvvvvvvvvvvvv5 = BuildConfig.FLAVOR;
        this._vvvvvvvvvvvvvv6 = BuildConfig.FLAVOR;
        this._vvvvvvvvvvvvvv7 = new b4xdialog();
        this._vvvvvvvvvvvvvv0 = new b4xinputtemplate();
        this._vvvvvvvvvvvvvvv1 = new b4xlisttemplate();
        this._vvvvvvvvvvvvvvv2 = new b4xdatetemplate();
        this._vvvvvvvvvvvvvvv3 = new feltreports();
        this._vvvvvvvvvvvvvvv4 = 8;
        this._vvvvvvvvvvvvvvv5 = false;
        this._chartgreentwoyears_withdepth = false;
        this._vvvvvvvvvvvvvvv6 = false;
        this._chartgreenmonth_withdepth = false;
        this._vvvvvvvvvvvvvvv7 = false;
        this._chartgreenweek_withdepth = false;
        this._vvvvvvvvvvvvvvv0 = false;
        this._chartbluetwoyears_withdepth = false;
        this._vvvvvvvvvvvvvvvv1 = false;
        this._chartbluemonth_withdepth = false;
        this._vvvvvvvvvvvvvvvv2 = false;
        this._chartblueweek_withdepth = false;
        this._vvvvvvvvvvvvvvvv3 = false;
        this._chartblueday_withdepth = false;
        this._vvvvvvvvvvvvvvvv4 = false;
        this._chartredday_withdepth = false;
        this._vvvvvvvvvvvvvvvv5 = new Map();
        this._vvvvvvvvvvvvvvvv6 = BuildConfig.FLAVOR;
        this._vvvvvvvvvvvvvvvv7 = new LocationFWrapper();
        this._vvvvvvvvvvvvvvvv0 = BitmapDescriptorFactory.HUE_RED;
        this._vvvvvvvvvvvvvvvvv1 = new List();
        this._vvvvvvvvvvvvvvvvv2 = new List();
        this._vvvvvvvvvvvvvvvvv3 = new JavaObject();
        this._vvvvvvvvvvvvvvvvv4 = BuildConfig.FLAVOR;
        this._vvvvvvvvvvvvvvvvv5 = 0;
        this._vvvvvvvvvvvvvvvvv6 = new Map();
        this._sv = new ScrollViewWrapper();
        this._volcano_timezoneoffset = 0.0d;
        this._volcano_timezonename = BuildConfig.FLAVOR;
        this._vvvvvvvvvvvvvvvvv7 = false;
        this._vvvvvvvvvvvvvvvvv0 = false;
        this._vvvvvvvvvvvvvvvvvv1 = new Timer();
        this._vvvvvvvvvvvvvvvvvv2 = new Timer();
        this._vvvvvvvvvvvvvvvvvv3 = new Timer();
        this._vvvvvvvvvvvvvvvvvv4 = 0;
        this._pointindex_max = 0;
        this._simpleexoplayerview1 = new SimpleExoPlayerViewWrapper();
        this._vvvvvvvvvvvvvvvvvv5 = new List();
        this._vvvvvvvvvvvvvvvvvv6 = new List();
        this._vvvvvvvvvvvvvvvvvv7 = 0.0d;
        this._vvvvvvvvvvvvvvvvvv0 = new List();
        this._vvvvvvvvvvvvvvvvvvv1 = new Map();
        this._maptr_unused = new Map();
        this._language_changed = false;
        this._vvvvvvvvvvvvvvvvvvv2 = new Map();
        this._vvvvvvvvvvvvvvvvvvv3 = 200;
        this._vvvvvvvvvvvvvvvvvvv4 = new StringUtils();
        this._vvvvvvvvvvvvvvvvvvv5 = new RuntimePermissions();
        this._colour_apptitlebackground = 0;
        this._colour_apptitletext = 0;
        this._colour_panelbackground = 0;
        this._colour_textlink = 0;
        Colors colors = Common.Colors;
        this._colour_border = -3355444;
        this._colour_mappoint_red = 0;
        this._colour_mappoint_redlight = 0;
        this._colour_mappoint_green = 0;
        this._colour_mappoint_greenlight = 0;
        this._colour_chartpoint_green = 0;
        this._colour_mappoint_blue = 0;
        this._colour_mappoint_bluelight = 0;
        this._size_textstandard = 0;
        this._size_cornerradius = Common.DipToCurrent(6);
        this._size_panelmargin = 0;
        this._size_textseparation = 0;
        this._vvvvvvvvvvvvvvvvvvv6 = false;
        this._vvvvvvvvvvvvvvvvvvv7 = false;
        this._vvvvvvvvvvvvvvvvvvv0 = new List();
        this._vvvvvvvvvvvvvvvvvvvv1 = new Map();
        this._vvvvvvvvvvvvvvvvvvvv2 = new adshelper();
        this._vvvvvvvvvvvvvvvvvvvv3 = new BillingClientWrapper();
        this._billing_key = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAnp154AU73a8jgxfQGdWY2MMDDtp/Nw3fM7twguz7SmXwQcxgKomRWHIZxxXkCQ9pHsAWOe6T0P1i+nU0pCDBR9KKUm27cmWxuLRbJtovlih5qGAjgNphPXLJy1zxVVToT2W0Uu3TmFGfHRXkHdTToQ63mKmyDbySZo/v5UJxLbIq+bcRDtToEWdeKZDMAn7uuK1x4I4xzaw4P9MctHq/tv0dU1RuB906tEts6h7MGUk7VBagL8e5aD8Zupg+4OLkUxE/h/h6O3A6sgme11MXDizoqzu2SMzehyqm5L6PDcbcvnfbYD0pJRTXSCzibRyNe4JJtX4HTPxeSS8C5fPhYwIDAQAB";
        this._no_ads_sku_id = BuildConfig.FLAVOR;
        this._admob_adpurchasedate = BuildConfig.FLAVOR;
        this._vvvvvvvvvvvvvvvvvvvv4 = BuildConfig.FLAVOR;
        this._vvvvvvvvvvvvvvvvvvvv5 = BuildConfig.FLAVOR;
        this._c1 = new xchart();
        this._c2 = new xchart();
        this._c3 = new xchart();
        this._c4 = new xchart();
        this._c5 = new xchart();
        this._c7 = new xchart();
        this._c8 = new xchart();
        this._c6 = new xchart();
        this._c9 = new xchart();
        this._c10 = new xchart();
        this._c11 = new xchart();
        this._c12 = new xchart();
        this._c13 = new xchart();
        this._alert_bulletins = new B4XViewWrapper();
        this._alert_changed = new LabelWrapper();
        this._alert_level = new B4XViewWrapper();
        this._alert_message = new B4XViewWrapper();
        this._alert_title = new B4XViewWrapper();
        this._pnalert = new B4XViewWrapper();
        this._pnwebcam = new B4XViewWrapper();
        this._webcam_title = new B4XViewWrapper();
        this._webcam_caption = new B4XViewWrapper();
        this._webcam_image = new B4XViewWrapper();
        this._webcam_overlay = new B4XViewWrapper();
        this._webcam_source = new B4XViewWrapper();
        this._webcam_updated = new B4XViewWrapper();
        this._webcam_play = new B4XViewWrapper();
        this._webcam_timelapse = new B4XViewWrapper();
        this._vvvvvvvvvvvvvvvvvvvv6 = new ddd();
        this._pnevents = new B4XViewWrapper();
        this._events_title = new B4XViewWrapper();
        this._events_map = new B4XViewWrapper();
        this._events_plot = new B4XViewWrapper();
        this._events_clv = new customlistview();
        this._events_clv_idmap = new Map();
        this._events_link_map = new B4XViewWrapper();
        this._events_ingv = new B4XViewWrapper();
        this._hazard_distance = new B4XViewWrapper();
        this._hazard_level = new B4XViewWrapper();
        this._hazard_message = new B4XViewWrapper();
        this._hazard_plan = new B4XViewWrapper();
        this._hazard_title = new B4XViewWrapper();
        this._pnhazard = new B4XViewWrapper();
        this._webcam_overlay_change = new B4XViewWrapper();
        this._vvvvvvvvvvvvvvvvvvvv7 = 0;
        this._vvvvvvvvvvvvvvvvvvvv0 = 0;
        this._vvvvvvvvvvvvvvvvvvvvv1 = 0;
        this._vvvvvvvvvvvvvvvvvvvvv2 = 0;
        this._vvvvvvvvvvvvvvvvvvvvv3 = 0;
        this._vvvvvvvvvvvvvvvvvvvvv4 = 0;
        this._vvvvvvvvvvvvvvvvvvvvv5 = 0;
        this._vvvvvvvvvvvvvvvvvvvvv6 = 0;
        this._vvvvvvvvvvvvvvvvvvvvv7 = 0;
        this._vvvvvvvvvvvvvvvvvvvvv0 = 0.0d;
        this._vvvvvvvvvvvvvvvvvvvvvv1 = 0.0d;
        this._vvvvvvvvvvvvvvvvvvvvvv2 = 0;
        this._vvvvvvvvvvvvvvvvvvvvvv3 = new B4XCanvas();
        this._vvvvvvvvvvvvvvvvvvvvvv4 = new B4XCanvas();
        this._pneventsmap = new B4XViewWrapper();
        this._vvvvvvvvvvvvvvvvvvvvvv5 = new B4XViewWrapper.B4XBitmapWrapper();
        this._events_map_title = new B4XViewWrapper();
        this._events_rotate_auto = new B4XViewWrapper();
        this._events_rotate_step = new B4XViewWrapper();
        this._events_plotbytime = new B4XViewWrapper();
        this._ivsplash = new B4XViewWrapper();
        this._lbby = new B4XViewWrapper();
        this._lbdeveloper = new B4XViewWrapper();
        this._lbslogan = new B4XViewWrapper();
        this._lbsplashtitle = new B4XViewWrapper();
        this._pnintrotxt = new B4XViewWrapper();
        this._events_noevents = new B4XViewWrapper();
        this._webcam_frame = new B4XViewWrapper();
        this._events_pnperiods = new B4XViewWrapper();
        this._events_iv24hrs = new B4XViewWrapper();
        this._events_ivnomag = new B4XViewWrapper();
        this._events_ivperiod = new B4XViewWrapper();
        this._events_lb24hrs = new B4XViewWrapper();
        this._events_lbperiod = new B4XViewWrapper();
        this._events_lbnomag = new B4XViewWrapper();
        this._events_pnlegend = new B4XViewWrapper();
        this._cb_selectperiod = new b4xcombobox();
        this._cb_selectmagnitude = new b4xcombobox();
        this._lb_ndon = new B4XViewWrapper();
        this._sw_ndon = new b4xswitch();
        this._pnheader = new B4XViewWrapper();
        this._lbhead_line = new B4XViewWrapper();
        this._lbhead_depth = new B4XViewWrapper();
        this._lbhead_distance = new B4XViewWrapper();
        this._lbhead_magnitude = new B4XViewWrapper();
        this._lbhead_reports = new B4XViewWrapper();
        this._pnhistory = new B4XViewWrapper();
        this._history_title = new B4XViewWrapper();
        this._clvartintro = new customlistview();
        this._pntimeselector = new B4XViewWrapper();
        this._lbyr1 = new B4XViewWrapper();
        this._lbyr2 = new B4XViewWrapper();
        this._lbyr3 = new B4XViewWrapper();
        this._lbarrowleft = new B4XViewWrapper();
        this._lbarrowright = new B4XViewWrapper();
        this._vvvvvvvvvvvvvvvvvvvvvv6 = new List();
        this._vvvvvvvvvvvvvvvvvvvvvv7 = new List();
        this._vvvvvvvvvvvvvvvvvvvvvv0 = BuildConfig.FLAVOR;
        this._vvvvvvvvvvvvvvvvvvvvvvv1 = 0;
        this._currentyearidx_old = 0;
        this._offset_old = 0;
        this._ivtimeline = new B4XViewWrapper();
        this._lbapptitle = new B4XViewWrapper();
        this._lbtitlehamburger = new B4XViewWrapper();
        this._pntitle = new B4XViewWrapper();
        this._ivtitleimage = new B4XViewWrapper();
        this._pntitleimage = new B4XViewWrapper();
        this._lbtotalevents = new B4XViewWrapper();
        this._lbrevisedevents = new B4XViewWrapper();
        this._lbautomaticevents = new B4XViewWrapper();
        this._alert_title_base = new B4XViewWrapper();
        this._hazard_title_base = new B4XViewWrapper();
        this._events_title_base = new B4XViewWrapper();
        this._events_map_title_base = new B4XViewWrapper();
        this._history_title_base = new B4XViewWrapper();
        this._chart1_title = new B4XViewWrapper();
        this._chart2_title = new B4XViewWrapper();
        this._chart3_title = new B4XViewWrapper();
        this._chart4_title = new B4XViewWrapper();
        this._chart5_title = new B4XViewWrapper();
        this._chart6_title = new B4XViewWrapper();
        this._chart7_title = new B4XViewWrapper();
        this._vvvvvvvvvvvvvvvvvvvvvvv2 = new Map();
        this._chart8_title = new B4XViewWrapper();
        this._chart9_title = new B4XViewWrapper();
        this._chart10_title = new B4XViewWrapper();
        this._chart11_title = new B4XViewWrapper();
        this._chart12_title = new B4XViewWrapper();
        this._chart13_title = new B4XViewWrapper();
        this._lb_selectperiod = new B4XViewWrapper();
        this._lb_selectmagnitude = new B4XViewWrapper();
        this._lbeventsremoved = new B4XViewWrapper();
        this._lbndremoved = new B4XViewWrapper();
        this._lbmagremoved = new B4XViewWrapper();
        this._lb_selectdepth = new B4XViewWrapper();
        this._cb_selectdepth = new b4xcombobox();
        this._c10_info = new B4XViewWrapper();
        this._c11_info = new B4XViewWrapper();
        this._c13_info = new B4XViewWrapper();
        this._pb_webcam = new B4XViewWrapper();
        this._v5 = new List();
        this._vvvvvvvvvvvvvvvvvvvvvvv3 = new List();
        this._vvvvvvvvvvvvvvvvvvvvvvv4 = new List();
        this._vvvvvvvvvvvvvvvvvvvvvvv5 = new List();
        this._vvvvvvvvvvvvvvvvvvvvvvv6 = new List();
        this._vvvvvvvvvvvvvvvvvvvvvvv7 = new List();
        this._vvvvvvvvvvvvvvvvvvvvvvv0 = new List();
        this._vvvvvvvvvvvvvvvvvvvvvvvv1 = new List();
        this._vvvvvvvvvvvvvvvvvvvvvvvv2 = new List();
        this._chat_goto = new B4XViewWrapper();
        this._chat_title = new B4XViewWrapper();
        this._chat_title_base = new B4XViewWrapper();
        this._pnchat = new B4XViewWrapper();
        this._chat_latestchats = new B4XViewWrapper();
        this._chat_topline = new B4XViewWrapper();
        return BuildConfig.FLAVOR;
    }

    public void _vvvvvvvvvvv1() throws Exception {
        new ResumableSub_CloseAfter10Seconds(this).resume(this.ba, null);
    }

    public static class ResumableSub_CloseAfter10Seconds extends BA.ResumableSub {
        b4xmainpage parent;

        public ResumableSub_CloseAfter10Seconds(b4xmainpage b4xmainpageVar) {
            this.parent = b4xmainpageVar;
        }

        public void resume(BA ba, Object[] objArr) throws Exception {
            while (true) {
                int i = this.state;
                if (i == -1) {
                    return;
                }
                if (i == 0) {
                    this.state = 1;
                    Common common = this.parent.__c;
                    Common.Sleep(ba, this, 10000);
                    this.state = 5;
                    return;
                }
                if (i == 1) {
                    this.state = 4;
                    if (this.parent._vvvvvvvvvvvvvvvvv3.IsInitialized()) {
                        this.state = 3;
                    }
                } else if (i == 3) {
                    this.state = 4;
                    JavaObject javaObject = this.parent._vvvvvvvvvvvvvvvvv3;
                    Common common2 = this.parent.__c;
                    javaObject.RunMethod("cancel", (Object[]) Common.Null);
                } else if (i == 4) {
                    this.state = -1;
                } else if (i == 5) {
                    this.state = 1;
                }
            }
        }
    }

    public String _clvartintro_itemclick(int i, Object obj) throws Exception {
        String ObjectToString = BA.ObjectToString(obj);
        if (!b4xpages._vvv3(this.ba)._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv6._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv4(ObjectToString)) {
            pagearticle pagearticleVar = new pagearticle();
            pagearticleVar._initialize(this.ba, BA.ObjectToString(obj), this._vvvvvvvvvvvvvvvvvvvvvv0);
            b4xpages._vv0(this.ba, ObjectToString, pagearticleVar);
        }
        b4xpages._vvvv3(this.ba, ObjectToString);
        return BuildConfig.FLAVOR;
    }

    public String _clvartintro_scrollchanged(int i) throws Exception {
        int width = this._clvartintro._getbase().getWidth();
        double d = i;
        double d2 = width;
        Double.isNaN(d);
        Double.isNaN(d2);
        int i2 = (int) (d / d2);
        int i3 = i - (width * i2);
        int i4 = this._offset_old;
        if (i > i4) {
            double d3 = i3;
            Double.isNaN(d2);
            if (d3 > d2 * 0.5d) {
                this._vvvvvvvvvvvvvvvvvvvvvvv1 = i2 + 1;
            }
        }
        if (i < i4) {
            double d4 = i3;
            Double.isNaN(d2);
            if (d4 < d2 * 0.5d) {
                this._vvvvvvvvvvvvvvvvvvvvvvv1 = i2;
                if (this._currentyearidx_old < i2) {
                    this._currentyearidx_old = i2 + 1;
                }
            }
        }
        int i5 = this._vvvvvvvvvvvvvvvvvvvvvvv1;
        if (i5 != this._currentyearidx_old) {
            this._clvartintro._scrolltoitem(i5);
            int i6 = this._vvvvvvvvvvvvvvvvvvvvvvv1;
            if (i6 > 0) {
                this._lbyr1.setText(BA.ObjectToCharSequence(this._vvvvvvvvvvvvvvvvvvvvvv7.Get(i6 - 1)));
            } else {
                this._lbyr1.setText(BA.ObjectToCharSequence(BuildConfig.FLAVOR));
            }
            this._lbyr2.setText(BA.ObjectToCharSequence(this._vvvvvvvvvvvvvvvvvvvvvv7.Get(this._vvvvvvvvvvvvvvvvvvvvvvv1)));
            if (this._vvvvvvvvvvvvvvvvvvvvvvv1 < this._vvvvvvvvvvvvvvvvvvvvvv7.getSize() - 1) {
                this._lbyr3.setText(BA.ObjectToCharSequence(this._vvvvvvvvvvvvvvvvvvvvvv7.Get(this._vvvvvvvvvvvvvvvvvvvvvvv1 + 1)));
            } else {
                this._lbyr3.setText(BA.ObjectToCharSequence(BuildConfig.FLAVOR));
            }
            int i7 = this._vvvvvvvvvvvvvvvvvvvvvvv1;
            if (i7 == 0) {
                this._lbarrowleft.setVisible(true);
                this._lbarrowright.setVisible(false);
            } else if (i7 == this._vvvvvvvvvvvvvvvvvvvvvv7.getSize() - 1) {
                this._lbarrowleft.setVisible(false);
                this._lbarrowright.setVisible(true);
            } else {
                this._lbarrowleft.setVisible(true);
                this._lbarrowright.setVisible(true);
            }
            _make_timeline();
            this._currentyearidx_old = this._vvvvvvvvvvvvvvvvvvvvvvv1;
        }
        this._offset_old = i;
        return BuildConfig.FLAVOR;
    }

    public CanvasWrapper.PathWrapper _vvvvvvvvvvv2(double d, double d2, float f) throws Exception {
        CanvasWrapper.PathWrapper pathWrapper = new CanvasWrapper.PathWrapper();
        for (int i = 0; i <= 4; i++) {
            double d3 = f;
            double d4 = i;
            Double.isNaN(d4);
            double d5 = 72.0d * d4;
            double d6 = 18.0d + d5;
            double CosD = Common.CosD(d6);
            Double.isNaN(d3);
            float f2 = (float) ((CosD * d3) + d);
            double SinD = Common.SinD(d6);
            Double.isNaN(d3);
            float f3 = (float) ((SinD * d3) + d2);
            if (i == 0) {
                pathWrapper.Initialize(f2, f3);
            } else {
                pathWrapper.LineTo(f2, f3);
            }
            Double.isNaN(d3);
            double d7 = d3 / 3.0d;
            double d8 = d5 + 54.0d;
            pathWrapper.LineTo((float) ((Common.CosD(d8) * d7) + d), (float) ((d7 * Common.SinD(d8)) + d2));
        }
        return pathWrapper;
    }

    public void _events_clv_itemclick(int i, Object obj) throws Exception {
        new ResumableSub_Events_CLV_ItemClick(this, i, obj).resume(this.ba, null);
    }

    public static class ResumableSub_Events_CLV_ItemClick extends BA.ResumableSub {
        int _index;
        PanelWrapper _p0 = null;
        PanelWrapper _p1 = null;
        Object _value;
        b4xmainpage parent;

        public ResumableSub_Events_CLV_ItemClick(b4xmainpage b4xmainpageVar, int i, Object obj) {
            this.parent = b4xmainpageVar;
            this._index = i;
            this._value = obj;
        }

        public void resume(BA ba, Object[] objArr) throws Exception {
            while (true) {
                int i = this.state;
                if (i == -1) {
                    return;
                }
                if (i == 0) {
                    this.state = 1;
                    this._p0 = new PanelWrapper();
                    this._p0 = AbsObjectWrapper.ConvertToWrapper(new PanelWrapper(), (ViewGroup) this.parent._events_clv._getpanel(this._index).getObject());
                    this._p1 = new PanelWrapper();
                    PanelWrapper ConvertToWrapper = AbsObjectWrapper.ConvertToWrapper(new PanelWrapper(), (ViewGroup) this.parent._vvvvvvvvvvvvvvvvvvvv6._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1((B4XViewWrapper) AbsObjectWrapper.ConvertToWrapper(new B4XViewWrapper(), this._p0.getObject()), "evt_bkgd").getObject());
                    this._p1 = ConvertToWrapper;
                    ConvertToWrapper.setColor(-5383962);
                    Common common = this.parent.__c;
                    Common.Sleep(ba, this, 100);
                    this.state = 7;
                    return;
                }
                if (i == 1) {
                    this.state = 6;
                    if (BA.ObjectToString(this._value).startsWith("map")) {
                        this.state = 3;
                    } else {
                        this.state = 5;
                    }
                } else if (i == 3) {
                    this.state = 6;
                    b4xpages b4xpagesVar = this.parent._vvvvvvvvvv1;
                    b4xpages._vvvv3(ba, BA.ObjectToString(this._value));
                } else if (i == 5) {
                    this.state = 6;
                    Common common2 = this.parent.__c;
                    CharSequence ObjectToCharSequence = BA.ObjectToCharSequence(this.parent._vvvvvvvvvvvv6("No location for this event"));
                    Common common3 = this.parent.__c;
                    Common.ToastMessageShow(ObjectToCharSequence, true);
                } else if (i == 6) {
                    this.state = -1;
                } else if (i == 7) {
                    this.state = 1;
                    PanelWrapper panelWrapper = this._p1;
                    Common common4 = this.parent.__c;
                    Colors colors = Common.Colors;
                    panelWrapper.setColor(-1);
                }
            }
        }
    }

    public String _events_plotbytime_click() throws Exception {
        geodesic geodesicVar;
        int i;
        int i2;
        int i3;
        List list;
        int i4;
        List list2;
        geodesic._latlon _latlonVar;
        b4xmainpage b4xmainpageVar;
        b4xmainpage b4xmainpageVar2 = this;
        new PanelWrapper();
        b4xmainpageVar2._sv.ScrollToNow(((AbsObjectWrapper.ConvertToWrapper(new PanelWrapper(), (ViewGroup) b4xmainpageVar2._pneventsmap.getParent().getObject()).getTop() + b4xmainpageVar2._pneventsmap.getTop()) + b4xmainpageVar2._events_map.getTop()) - Common.DipToCurrent(5));
        new B4XViewWrapper.B4XBitmapWrapper();
        B4XViewWrapper.B4XBitmapWrapper Rotate = b4xmainpageVar2._vvvvvvvvvvvvvvvvvvvvvv5.Rotate(0);
        double width = Rotate.getWidth() / 2.0d;
        double width2 = b4xmainpageVar2._events_map.getWidth();
        Double.isNaN(width2);
        int i5 = (int) (width - (width2 / 2.0d));
        B4XViewWrapper b4XViewWrapper = b4xmainpageVar2._events_map;
        b4XViewWrapper.SetBitmap((Bitmap) Rotate.Crop(i5, i5, b4XViewWrapper.getWidth(), b4xmainpageVar2._events_map.getHeight()).getObject());
        b4xmainpageVar2._vvvvvvvvvvvvvvvvvvvvvv3.Initialize(b4xmainpageVar2._events_map);
        b4xmainpageVar2._vvvvvvvvvvvvvvvvvvvvvv4.Initialize(b4xmainpageVar2._events_plot);
        B4XCanvas b4XCanvas = b4xmainpageVar2._vvvvvvvvvvvvvvvvvvvvvv4;
        b4XCanvas.ClearRect(b4XCanvas.getTargetRect());
        geodesic geodesicVar2 = new geodesic();
        geodesicVar2._initialize(b4xmainpageVar2.ba);
        geodesic._latlon _latlonVar2 = new geodesic._latlon();
        _latlonVar2.Initialize();
        b4xmainpageVar2._vvvvvvvvvvvvvvvvvv6.Clear();
        List list3 = new List();
        list3.Initialize();
        int switchObjectToInt = BA.switchObjectToInt(Integer.valueOf(b4xmainpageVar2._cb_selectperiod._getvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv2()), new Object[]{0, 1, 2, 3, 4});
        if (switchObjectToInt == 0) {
            list3.Add(b4xmainpageVar2._v5.getObject());
        } else if (switchObjectToInt == 1) {
            list3.Add(b4xmainpageVar2._vvvvvvvvvvvvvvvvvvvvvvv3.getObject());
            list3.Add(b4xmainpageVar2._v5.getObject());
        } else if (switchObjectToInt == 2) {
            list3.Add(b4xmainpageVar2._vvvvvvvvvvvvvvvvvvvvvvv4.getObject());
            list3.Add(b4xmainpageVar2._vvvvvvvvvvvvvvvvvvvvvvv3.getObject());
            list3.Add(b4xmainpageVar2._v5.getObject());
        } else if (switchObjectToInt == 3) {
            list3.Add(b4xmainpageVar2._vvvvvvvvvvvvvvvvvvvvvvv5.getObject());
            list3.Add(b4xmainpageVar2._vvvvvvvvvvvvvvvvvvvvvvv4.getObject());
            list3.Add(b4xmainpageVar2._vvvvvvvvvvvvvvvvvvvvvvv3.getObject());
            list3.Add(b4xmainpageVar2._v5.getObject());
        } else if (switchObjectToInt == 4) {
            list3.Add(b4xmainpageVar2._vvvvvvvvvvvvvvvvvvvvvvv6.getObject());
        }
        int size = list3.getSize() - 1;
        int i6 = 0;
        while (i6 <= size) {
            new List();
            List ConvertToWrapper = AbsObjectWrapper.ConvertToWrapper(new List(), (java.util.List) list3.Get(i6));
            if (ConvertToWrapper.getSize() > 0) {
                int size2 = ConvertToWrapper.getSize() - 1;
                int i7 = 0;
                while (i7 <= size2) {
                    _aneq _aneqVar = (_aneq) ConvertToWrapper.Get(i7);
                    _latlonVar2.Lat = _aneqVar.latitude;
                    _latlonVar2.Lon = _aneqVar.longitude;
                    geodesic._utm _vvvvvvvvvvvvvvvvvvvvvvvvv4 = geodesicVar2._vvvvvvvvvvvvvvvvvvvvvvvvv4(_latlonVar2);
                    if (_aneqVar.magnitude != 999.0d || (_aneqVar.magnitude == 999.0d && b4xmainpageVar2._sw_ndon._getvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv4())) {
                        geodesicVar = geodesicVar2;
                        i = size;
                        i2 = i6;
                        i3 = i7;
                        list = ConvertToWrapper;
                        i4 = size2;
                        list2 = list3;
                        _latlonVar = _latlonVar2;
                        _aplotpoint _pn09_todaymap_getplotpoint = _pn09_todaymap_getplotpoint(_vvvvvvvvvvvvvvvvvvvvvvvvv4.X, _vvvvvvvvvvvvvvvvvvvvvvvvv4.Y, _aneqVar.depth, _aneqVar.timeUTC, _aneqVar.magnitude, b4xmainpageVar2._vvvvvvvvvvvvvvvvvv7);
                        _pn09_todaymap_getplotpoint.id = _aneqVar.eventID;
                        _pn09_todaymap_getplotpoint.st = _aneqVar.status;
                        if (_pn09_todaymap_getplotpoint.X >= 0.0d) {
                            b4xmainpageVar = this;
                            if (_pn09_todaymap_getplotpoint.X <= b4xmainpageVar._vvvvvvvvvvvvvvvvvvvvvv3.getTargetRect().getWidth() && _pn09_todaymap_getplotpoint.Y >= 0.0d && _pn09_todaymap_getplotpoint.Y <= b4xmainpageVar._vvvvvvvvvvvvvvvvvvvvvv3.getTargetRect().getHeight() && _pn09_todaymap_getplotpoint.Z >= 0.0d && _pn09_todaymap_getplotpoint.Z <= b4xmainpageVar._vvvvvvvvvvvvvvvvvvvvvv4.getTargetRect().getHeight()) {
                                b4xmainpageVar._vvvvvvvvvvvvvvvvvv6.Add(_pn09_todaymap_getplotpoint);
                            }
                        } else {
                            b4xmainpageVar = this;
                        }
                    } else {
                        i3 = i7;
                        list = ConvertToWrapper;
                        i4 = size2;
                        i = size;
                        i2 = i6;
                        list2 = list3;
                        geodesicVar = geodesicVar2;
                        _latlonVar = _latlonVar2;
                        b4xmainpageVar = b4xmainpageVar2;
                    }
                    i7 = i3 + 1;
                    b4xmainpageVar2 = b4xmainpageVar;
                    size = i;
                    list3 = list2;
                    geodesicVar2 = geodesicVar;
                    _latlonVar2 = _latlonVar;
                    i6 = i2;
                    ConvertToWrapper = list;
                    size2 = i4;
                }
            }
            i6++;
            b4xmainpageVar2 = b4xmainpageVar2;
            size = size;
            list3 = list3;
            geodesicVar2 = geodesicVar2;
            _latlonVar2 = _latlonVar2;
        }
        b4xmainpage b4xmainpageVar3 = b4xmainpageVar2;
        TypefaceWrapper typefaceWrapper = Common.Typeface;
        B4XViewWrapper.B4XFont CreateFont = B4XViewWrapper.XUI.CreateFont(TypefaceWrapper.DEFAULT, 12.0f);
        B4XCanvas b4XCanvas2 = b4xmainpageVar3._vvvvvvvvvvvvvvvvvvvvvv4;
        BA ba = b4xmainpageVar3.ba;
        String str = b4xmainpageVar3._vvvvvvvvvvvv6("Depth") + " (kilometres)";
        float width3 = b4xmainpageVar3._vvvvvvvvvvvvvvvvvvvvvv4.getTargetRect().getWidth() - Common.DipToCurrent(8);
        double height = b4xmainpageVar3._vvvvvvvvvvvvvvvvvvvvvv4.getTargetRect().getHeight();
        Double.isNaN(height);
        Colors colors = Common.Colors;
        b4XCanvas2.DrawTextRotated(ba, str, width3, (float) (height / 2.0d), CreateFont, -16777216, (Paint.Align) BA.getEnumFromString(Paint.Align.class, "CENTER"), 270.0f);
        double d = b4xmainpageVar3._vvvvvvvvvvvvvvvvvvvvv7;
        Double.isNaN(d);
        int i8 = (int) (d / 1000.0d);
        int i9 = i8 - 1;
        for (int i10 = 1; i10 <= i9; i10++) {
            double height2 = i10 * b4xmainpageVar3._vvvvvvvvvvvvvvvvvvvvvv4.getTargetRect().getHeight();
            double d2 = i8;
            Double.isNaN(height2);
            Double.isNaN(d2);
            int Round = (int) Common.Round(height2 / d2);
            float f = Round;
            b4xmainpageVar3._vvvvvvvvvvvvvvvvvvvvvv4.DrawLine(Common.DipToCurrent(20), f, b4xmainpageVar3._vvvvvvvvvvvvvvvvvvvvvv4.getTargetRect().getWidth() - Common.DipToCurrent(25), f, -2894893, Common.DipToCurrent(1));
            B4XCanvas b4XCanvas3 = b4xmainpageVar3._vvvvvvvvvvvvvvvvvvvvvv4;
            BA ba2 = b4xmainpageVar3.ba;
            String NumberToString = BA.NumberToString(i10);
            float DipToCurrent = Common.DipToCurrent(6);
            float DipToCurrent2 = Round + Common.DipToCurrent(4);
            Colors colors2 = Common.Colors;
            b4XCanvas3.DrawText(ba2, NumberToString, DipToCurrent, DipToCurrent2, CreateFont, -16777216, (Paint.Align) BA.getEnumFromString(Paint.Align.class, "LEFT"));
        }
        B4XCanvas b4XCanvas4 = b4xmainpageVar3._vvvvvvvvvvvvvvvvvvvvvv3;
        float height3 = b4XCanvas4.getTargetRect().getHeight();
        Colors colors3 = Common.Colors;
        b4XCanvas4.DrawLine(BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED, height3, -16777216, Common.DipToCurrent(2));
        B4XCanvas b4XCanvas5 = b4xmainpageVar3._vvvvvvvvvvvvvvvvvvvvvv3;
        float width4 = b4XCanvas5.getTargetRect().getWidth();
        float width5 = b4xmainpageVar3._vvvvvvvvvvvvvvvvvvvvvv3.getTargetRect().getWidth();
        float height4 = b4xmainpageVar3._vvvvvvvvvvvvvvvvvvvvvv3.getTargetRect().getHeight();
        Colors colors4 = Common.Colors;
        b4XCanvas5.DrawLine(width4, BitmapDescriptorFactory.HUE_RED, width5, height4, -16777216, Common.DipToCurrent(2));
        B4XCanvas b4XCanvas6 = b4xmainpageVar3._vvvvvvvvvvvvvvvvvvvvvv3;
        float width6 = b4XCanvas6.getTargetRect().getWidth();
        Colors colors5 = Common.Colors;
        b4XCanvas6.DrawLine(BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED, width6, BitmapDescriptorFactory.HUE_RED, -16777216, Common.DipToCurrent(2));
        B4XCanvas b4XCanvas7 = b4xmainpageVar3._vvvvvvvvvvvvvvvvvvvvvv4;
        float height5 = b4XCanvas7.getTargetRect().getHeight();
        Colors colors6 = Common.Colors;
        b4XCanvas7.DrawLine(BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED, height5, -16777216, Common.DipToCurrent(2));
        B4XCanvas b4XCanvas8 = b4xmainpageVar3._vvvvvvvvvvvvvvvvvvvvvv4;
        float width7 = b4XCanvas8.getTargetRect().getWidth();
        float width8 = b4xmainpageVar3._vvvvvvvvvvvvvvvvvvvvvv4.getTargetRect().getWidth();
        float height6 = b4xmainpageVar3._vvvvvvvvvvvvvvvvvvvvvv4.getTargetRect().getHeight();
        Colors colors7 = Common.Colors;
        b4XCanvas8.DrawLine(width7, BitmapDescriptorFactory.HUE_RED, width8, height6, -16777216, Common.DipToCurrent(2));
        B4XCanvas b4XCanvas9 = b4xmainpageVar3._vvvvvvvvvvvvvvvvvvvvvv4;
        float width9 = b4XCanvas9.getTargetRect().getWidth();
        Colors colors8 = Common.Colors;
        b4XCanvas9.DrawLine(BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED, width9, BitmapDescriptorFactory.HUE_RED, -16777216, Common.DipToCurrent(2));
        B4XCanvas b4XCanvas10 = b4xmainpageVar3._vvvvvvvvvvvvvvvvvvvvvv4;
        float height7 = b4XCanvas10.getTargetRect().getHeight();
        float width10 = b4xmainpageVar3._vvvvvvvvvvvvvvvvvvvvvv4.getTargetRect().getWidth();
        float height8 = b4xmainpageVar3._vvvvvvvvvvvvvvvvvvvvvv4.getTargetRect().getHeight();
        Colors colors9 = Common.Colors;
        b4XCanvas10.DrawLine(BitmapDescriptorFactory.HUE_RED, height7, width10, height8, -16777216, Common.DipToCurrent(2));
        if (b4xmainpageVar3._vvvvvvvvvvvvvvvvvv6.getSize() > 0) {
            b4xmainpageVar3._vvvvvvvvvvvvvvvvvv6.SortType("t", true);
            b4xmainpageVar3._vvvvvvvvvvvvvvvvvv4 = 0;
            b4xmainpageVar3._pointindex_max = b4xmainpageVar3._vvvvvvvvvvvvvvvvvv6.getSize() - 1;
            b4xmainpageVar3._vvvvvvvvvvvvvvvvvv3.Initialize(b4xmainpageVar3.ba, "timerPlotByTime", 500L);
            b4xmainpageVar3._vvvvvvvvvvvvvvvvvv3.setEnabled(true);
            b4xmainpageVar3._events_rotate_auto.setEnabled(false);
            b4xmainpageVar3._events_rotate_step.setEnabled(false);
            b4xmainpageVar3._events_plotbytime.setEnabled(false);
            B4XViewWrapper b4XViewWrapper2 = b4xmainpageVar3._events_rotate_auto;
            Colors colors10 = Common.Colors;
            b4XViewWrapper2.setTextColor(-7829368);
            B4XViewWrapper b4XViewWrapper3 = b4xmainpageVar3._events_rotate_step;
            Colors colors11 = Common.Colors;
            b4XViewWrapper3.setTextColor(-7829368);
            B4XViewWrapper b4XViewWrapper4 = b4xmainpageVar3._events_plotbytime;
            Colors colors12 = Common.Colors;
            b4XViewWrapper4.setTextColor(-7829368);
            return BuildConfig.FLAVOR;
        }
        return BuildConfig.FLAVOR;
    }

    public void _events_rotate_auto_click() throws Exception {
        new ResumableSub_Events_Rotate_Auto_Click(this).resume(this.ba, null);
    }

    public static class ResumableSub_Events_Rotate_Auto_Click extends BA.ResumableSub {
        int limit11;
        b4xmainpage parent;
        int step11;
        PanelWrapper _pnp = null;
        int _scrollpos = 0;
        int _txtcol = 0;
        int _i = 0;
        boolean _result = false;

        public ResumableSub_Events_Rotate_Auto_Click(b4xmainpage b4xmainpageVar) {
            this.parent = b4xmainpageVar;
        }

        public void resume(BA ba, Object[] objArr) throws Exception {
            while (true) {
                switch (this.state) {
                    case -1:
                        return;
                    case 0:
                        this.state = 1;
                        this._pnp = new PanelWrapper();
                        PanelWrapper ConvertToWrapper = AbsObjectWrapper.ConvertToWrapper(new PanelWrapper(), (ViewGroup) this.parent._pneventsmap.getParent().getObject());
                        this._pnp = ConvertToWrapper;
                        int top = ConvertToWrapper.getTop() + this.parent._pneventsmap.getTop() + this.parent._events_map.getTop();
                        Common common = this.parent.__c;
                        this._scrollpos = top - Common.DipToCurrent(5);
                        this.parent._sv.ScrollToNow(this._scrollpos);
                        B4XViewWrapper b4XViewWrapper = this.parent._events_rotate_auto;
                        Common common2 = this.parent.__c;
                        b4XViewWrapper.setEnabled(false);
                        B4XViewWrapper b4XViewWrapper2 = this.parent._events_rotate_step;
                        Common common3 = this.parent.__c;
                        b4XViewWrapper2.setEnabled(false);
                        B4XViewWrapper b4XViewWrapper3 = this.parent._events_plotbytime;
                        Common common4 = this.parent.__c;
                        b4XViewWrapper3.setEnabled(false);
                        this._txtcol = this.parent._events_rotate_auto.getTextColor();
                        B4XViewWrapper b4XViewWrapper4 = this.parent._events_rotate_auto;
                        Common common5 = this.parent.__c;
                        Colors colors = Common.Colors;
                        b4XViewWrapper4.setTextColor(-7829368);
                        B4XViewWrapper b4XViewWrapper5 = this.parent._events_rotate_step;
                        Common common6 = this.parent.__c;
                        Colors colors2 = Common.Colors;
                        b4XViewWrapper5.setTextColor(-7829368);
                        B4XViewWrapper b4XViewWrapper6 = this.parent._events_plotbytime;
                        Common common7 = this.parent.__c;
                        Colors colors3 = Common.Colors;
                        b4XViewWrapper6.setTextColor(-7829368);
                        break;
                    case 1:
                        this.state = 4;
                        this.step11 = 1;
                        this.limit11 = 72;
                        this._i = 1;
                        this.state = 5;
                        break;
                    case 3:
                        this.state = 6;
                        this.parent._vvvvvvvvvvvvvvvvvvvvvv2 = this._i * 5;
                        Common common8 = this.parent.__c;
                        Common.WaitFor("complete", ba, this, this.parent._pn09_todaymap_plotbitmaps());
                        this.state = 7;
                        return;
                    case 4:
                        this.state = -1;
                        B4XViewWrapper b4XViewWrapper7 = this.parent._events_rotate_auto;
                        Common common9 = this.parent.__c;
                        b4XViewWrapper7.setEnabled(true);
                        B4XViewWrapper b4XViewWrapper8 = this.parent._events_rotate_step;
                        Common common10 = this.parent.__c;
                        b4XViewWrapper8.setEnabled(true);
                        B4XViewWrapper b4XViewWrapper9 = this.parent._events_plotbytime;
                        Common common11 = this.parent.__c;
                        b4XViewWrapper9.setEnabled(true);
                        this.parent._events_rotate_auto.setTextColor(this._txtcol);
                        this.parent._events_rotate_step.setTextColor(this._txtcol);
                        this.parent._events_plotbytime.setTextColor(this._txtcol);
                        break;
                    case 5:
                        this.state = 4;
                        int i = this.step11;
                        if ((i > 0 && this._i <= this.limit11) || (i < 0 && this._i >= this.limit11)) {
                            this.state = 3;
                            break;
                        }
                        break;
                    case 6:
                        this.state = 5;
                        this._i += this.step11;
                        break;
                    case 7:
                        this.state = 6;
                        this._result = ((Boolean) objArr[0]).booleanValue();
                        Common common12 = this.parent.__c;
                        Common.Sleep(ba, this, 100);
                        this.state = 8;
                        return;
                    case 8:
                        this.state = 6;
                        break;
                }
            }
        }
    }

    public void _events_rotate_step_click() throws Exception {
        new ResumableSub_Events_Rotate_Step_Click(this).resume(this.ba, null);
    }

    public static class ResumableSub_Events_Rotate_Step_Click extends BA.ResumableSub {
        b4xmainpage parent;
        PanelWrapper _pnp = null;
        int _scrollpos = 0;
        int _txtcol = 0;
        boolean _result = false;

        public ResumableSub_Events_Rotate_Step_Click(b4xmainpage b4xmainpageVar) {
            this.parent = b4xmainpageVar;
        }

        public void resume(BA ba, Object[] objArr) throws Exception {
            while (true) {
                int i = this.state;
                if (i == -1) {
                    return;
                }
                if (i == 0) {
                    this.state = 1;
                    this._pnp = new PanelWrapper();
                    PanelWrapper ConvertToWrapper = AbsObjectWrapper.ConvertToWrapper(new PanelWrapper(), (ViewGroup) this.parent._pneventsmap.getParent().getObject());
                    this._pnp = ConvertToWrapper;
                    int top = ConvertToWrapper.getTop() + this.parent._pneventsmap.getTop() + this.parent._events_map.getTop();
                    Common common = this.parent.__c;
                    this._scrollpos = top - Common.DipToCurrent(5);
                    this.parent._sv.ScrollToNow(this._scrollpos);
                    B4XViewWrapper b4XViewWrapper = this.parent._events_rotate_auto;
                    Common common2 = this.parent.__c;
                    b4XViewWrapper.setEnabled(false);
                    B4XViewWrapper b4XViewWrapper2 = this.parent._events_rotate_step;
                    Common common3 = this.parent.__c;
                    b4XViewWrapper2.setEnabled(false);
                    B4XViewWrapper b4XViewWrapper3 = this.parent._events_plotbytime;
                    Common common4 = this.parent.__c;
                    b4XViewWrapper3.setEnabled(false);
                    this._txtcol = this.parent._events_rotate_auto.getTextColor();
                    B4XViewWrapper b4XViewWrapper4 = this.parent._events_rotate_auto;
                    Common common5 = this.parent.__c;
                    Colors colors = Common.Colors;
                    b4XViewWrapper4.setTextColor(-7829368);
                    B4XViewWrapper b4XViewWrapper5 = this.parent._events_rotate_step;
                    Common common6 = this.parent.__c;
                    Colors colors2 = Common.Colors;
                    b4XViewWrapper5.setTextColor(-7829368);
                    B4XViewWrapper b4XViewWrapper6 = this.parent._events_plotbytime;
                    Common common7 = this.parent.__c;
                    Colors colors3 = Common.Colors;
                    b4XViewWrapper6.setTextColor(-7829368);
                    this.parent._vvvvvvvvvvvvvvvvvvvvvv2 += 15;
                    Common common8 = this.parent.__c;
                    Common.WaitFor("complete", ba, this, this.parent._pn09_todaymap_plotbitmaps());
                    this.state = 7;
                    return;
                }
                if (i == 1) {
                    this.state = 6;
                    if (this.parent._vvvvvvvvvvvvvvvvvvvvvv2 > 0) {
                        this.state = 3;
                    } else {
                        this.state = 5;
                    }
                } else if (i == 3) {
                    this.state = 6;
                    this.parent._events_rotate_step.setText(BA.ObjectToCharSequence(this.parent._vvvvvvvvvvvv6("Rotate Step") + " (" + BA.NumberToString(this.parent._vvvvvvvvvvvvvvvvvvvvvv2) + ")"));
                } else if (i == 5) {
                    this.state = 6;
                    b4xmainpage b4xmainpageVar = this.parent;
                    B4XViewWrapper b4XViewWrapper7 = b4xmainpageVar._events_rotate_step;
                    Common common9 = this.parent.__c;
                    b4xmainpageVar._vvvvvvvvvvvv7(b4XViewWrapper7, "Rotate Step", BuildConfig.FLAVOR, true);
                } else if (i == 6) {
                    this.state = -1;
                } else if (i == 7) {
                    this.state = 1;
                    this._result = ((Boolean) objArr[0]).booleanValue();
                    B4XViewWrapper b4XViewWrapper8 = this.parent._events_rotate_auto;
                    Common common10 = this.parent.__c;
                    b4XViewWrapper8.setEnabled(true);
                    B4XViewWrapper b4XViewWrapper9 = this.parent._events_rotate_step;
                    Common common11 = this.parent.__c;
                    b4XViewWrapper9.setEnabled(true);
                    B4XViewWrapper b4XViewWrapper10 = this.parent._events_plotbytime;
                    Common common12 = this.parent.__c;
                    b4XViewWrapper10.setEnabled(true);
                    this.parent._events_rotate_auto.setTextColor(this._txtcol);
                    this.parent._events_rotate_step.setTextColor(this._txtcol);
                    this.parent._events_plotbytime.setTextColor(this._txtcol);
                }
            }
        }
    }

    public Common.ResumableSubWrapper _fcm_sendfeltreport(String str, String str2) throws Exception {
        ResumableSub_FCM_SendFeltReport resumableSub_FCM_SendFeltReport = new ResumableSub_FCM_SendFeltReport(this, str, str2);
        resumableSub_FCM_SendFeltReport.resume(this.ba, null);
        return AbsObjectWrapper.ConvertToWrapper(new Common.ResumableSubWrapper(), resumableSub_FCM_SendFeltReport);
    }

    public static class ResumableSub_FCM_SendFeltReport extends BA.ResumableSub {
        String _body;
        String _title;
        b4xmainpage parent;
        String _fcmserver = BuildConfig.FLAVOR;
        String _topic = BuildConfig.FLAVOR;
        String _fcmdata = BuildConfig.FLAVOR;
        httpjob _job = null;
        boolean _msgresult = false;

        public ResumableSub_FCM_SendFeltReport(b4xmainpage b4xmainpageVar, String str, String str2) {
            this.parent = b4xmainpageVar;
            this._title = str;
            this._body = str2;
        }

        public void resume(BA ba, Object[] objArr) throws Exception {
            int i;
            do {
                i = this.state;
                if (i == -1) {
                    Common common = this.parent.__c;
                    Common.ReturnFromResumableSub(this, (Object) null);
                    return;
                }
                if (i == 0) {
                    this.state = -1;
                    Common common2 = this.parent.__c;
                    Common.LogImpl("88781826", "FCM_SendEQMessage", 0);
                    this._fcmserver = "http://91.108.112.177:52892/frvs";
                    this._topic = BA.ObjectToString(this.parent._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("fcm_topic"));
                    this._fcmdata = "&tp=" + this._topic + "&tt=" + this._title + "&bd=" + this._body;
                    httpjob httpjobVar = new httpjob();
                    this._job = httpjobVar;
                    httpjobVar._initialize(ba, BuildConfig.FLAVOR, this.parent);
                    this._job._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv6(this._fcmserver, this._fcmdata);
                    Common common3 = this.parent.__c;
                    Common.WaitFor("jobdone", ba, this, this._job);
                    this.state = 1;
                    return;
                }
            } while (i != 1);
            this.state = -1;
            httpjob httpjobVar2 = (httpjob) objArr[0];
            this._job = httpjobVar2;
            this._msgresult = httpjobVar2._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv3;
            this._job._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1();
            Common common4 = this.parent.__c;
            Common.ReturnFromResumableSub(this, Boolean.valueOf(this._msgresult));
        }
    }

    public int _feltreports_getnum(int i) throws Exception {
        int size = this._vvvvvvvvvvvvvvv3._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv4.getSize() - 1;
        int i2 = 0;
        for (int i3 = 0; i3 <= size; i3++) {
            if (i == ((_afeltreport) this._vvvvvvvvvvvvvvv3._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv4.Get(i3)).highestID) {
                i2++;
            }
        }
        return i2;
    }

    public String _vvvvvvvvvvv3() throws Exception {
        double d;
        int i;
        double d2;
        int i2;
        int i3;
        geodesic geodesicVar;
        this._vvvvvvvvvvvvvvvvvvvvv3 = 0;
        this._vvvvvvvvvvvvvvvvvvvvv4 = 0;
        this._vvvvvvvvvvvvvvvvvvvvv5 = 0;
        this._vvvvvvvvvvvvvvvvvvvvv6 = 0;
        this._vvvvvvvvvvvvvvvvvvvvv3 = (int) BA.ObjectToNumber(this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("view_coordleft"));
        this._vvvvvvvvvvvvvvvvvvvvv4 = (int) BA.ObjectToNumber(this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("view_coordright"));
        this._vvvvvvvvvvvvvvvvvvvvv5 = (int) BA.ObjectToNumber(this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("view_coordtop"));
        this._vvvvvvvvvvvvvvvvvvvvv6 = (int) BA.ObjectToNumber(this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("view_coordbase"));
        double[][][] dArr = new double[35][][];
        for (int i4 = 0; i4 < 35; i4++) {
            dArr[i4] = new double[35][];
            for (int i5 = 0; i5 < 35; i5++) {
                dArr[i4][i5] = new double[20];
            }
        }
        geodesic geodesicVar2 = new geodesic();
        geodesicVar2._initialize(this.ba);
        geodesic._latlon _latlonVar = new geodesic._latlon();
        _latlonVar.Initialize();
        int i6 = 0;
        while (true) {
            d = 0.0d;
            if (i6 > 34) {
                break;
            }
            for (int i7 = 0; i7 <= 34; i7++) {
                for (int i8 = 0; i8 <= 19; i8++) {
                    dArr[i6][i7][i8] = 0.0d;
                }
            }
            i6++;
        }
        if (this._vvvvvvvvvvvvvvvvvvvvvvv5.getSize() > 0) {
            int size = this._vvvvvvvvvvvvvvvvvvvvvvv5.getSize() - 1;
            int i9 = 0;
            while (i9 <= size) {
                _aneq _aneqVar = (_aneq) this._vvvvvvvvvvvvvvvvvvvvvvv5.Get(i9);
                if (_aneqVar.magnitude != 999.0d && _aneqVar.depth != 999.0d) {
                    _latlonVar.Lat = _aneqVar.latitude;
                    _latlonVar.Lon = _aneqVar.longitude;
                    geodesic._utm _vvvvvvvvvvvvvvvvvvvvvvvvv4 = geodesicVar2._vvvvvvvvvvvvvvvvvvvvvvvvv4(_latlonVar);
                    if (_vvvvvvvvvvvvvvvvvvvvvvvvv4.X > this._vvvvvvvvvvvvvvvvvvvvv3 && _vvvvvvvvvvvvvvvvvvvvvvvvv4.X < this._vvvvvvvvvvvvvvvvvvvvv4 && _vvvvvvvvvvvvvvvvvvvvvvvvv4.Y > this._vvvvvvvvvvvvvvvvvvvvv6 && _vvvvvvvvvvvvvvvvvvvvvvvvv4.Y < this._vvvvvvvvvvvvvvvvvvvvv5 && _aneqVar.depth > d && _aneqVar.depth < 8.0d) {
                        double d3 = _vvvvvvvvvvvvvvvvvvvvvvvvv4.X;
                        double d4 = this._vvvvvvvvvvvvvvvvvvvvv3;
                        Double.isNaN(d4);
                        int i10 = (int) (d3 - d4);
                        double d5 = this._vvvvvvvvvvvvvvvvvvvvv5;
                        double d6 = _vvvvvvvvvvvvvvvvvvvvvvvvv4.Y;
                        Double.isNaN(d5);
                        int i11 = (int) (d5 - d6);
                        int i12 = (int) (_aneqVar.depth * 1000.0d);
                        double d7 = i10;
                        Double.isNaN(d7);
                        int Floor = (int) Common.Floor(d7 / 400.0d);
                        double d8 = i11;
                        Double.isNaN(d8);
                        int Floor2 = (int) Common.Floor(d8 / 400.0d);
                        double d9 = i12;
                        Double.isNaN(d9);
                        int Floor3 = (int) Common.Floor(d9 / 400.0d);
                        double d10 = dArr[Floor][Floor2][Floor3];
                        if (_aneqVar.magnitude > (d10 > 100.0d ? d10 - 100.0d : d)) {
                            dArr[Floor][Floor2][Floor3] = _aneqVar.magnitude + 100.0d;
                        }
                    }
                }
                i9++;
                d = 0.0d;
            }
        }
        if (this._vvvvvvvvvvvvvvvvvvvvvvv4.getSize() > 0) {
            int size2 = this._vvvvvvvvvvvvvvvvvvvvvvv4.getSize() - 1;
            for (int i13 = 0; i13 <= size2; i13++) {
                _aneq _aneqVar2 = (_aneq) this._vvvvvvvvvvvvvvvvvvvvvvv4.Get(i13);
                if (_aneqVar2.magnitude != 999.0d && _aneqVar2.depth != 999.0d) {
                    _latlonVar.Lat = _aneqVar2.latitude;
                    _latlonVar.Lon = _aneqVar2.longitude;
                    geodesic._utm _vvvvvvvvvvvvvvvvvvvvvvvvv42 = geodesicVar2._vvvvvvvvvvvvvvvvvvvvvvvvv4(_latlonVar);
                    if (_vvvvvvvvvvvvvvvvvvvvvvvvv42.X > this._vvvvvvvvvvvvvvvvvvvvv3 && _vvvvvvvvvvvvvvvvvvvvvvvvv42.X < this._vvvvvvvvvvvvvvvvvvvvv4 && _vvvvvvvvvvvvvvvvvvvvvvvvv42.Y > this._vvvvvvvvvvvvvvvvvvvvv6 && _vvvvvvvvvvvvvvvvvvvvvvvvv42.Y < this._vvvvvvvvvvvvvvvvvvvvv5 && _aneqVar2.depth > 0.0d && _aneqVar2.depth < 8.0d) {
                        double d11 = _vvvvvvvvvvvvvvvvvvvvvvvvv42.X;
                        double d12 = this._vvvvvvvvvvvvvvvvvvvvv3;
                        Double.isNaN(d12);
                        double d13 = this._vvvvvvvvvvvvvvvvvvvvv5;
                        double d14 = _vvvvvvvvvvvvvvvvvvvvvvvvv42.Y;
                        Double.isNaN(d13);
                        int i14 = (int) (d13 - d14);
                        int i15 = (int) (_aneqVar2.depth * 1000.0d);
                        double d15 = (int) (d11 - d12);
                        Double.isNaN(d15);
                        int Floor4 = (int) Common.Floor(d15 / 400.0d);
                        double d16 = i14;
                        Double.isNaN(d16);
                        int Floor5 = (int) Common.Floor(d16 / 400.0d);
                        double d17 = i15;
                        Double.isNaN(d17);
                        int Floor6 = (int) Common.Floor(d17 / 400.0d);
                        double d18 = dArr[Floor4][Floor5][Floor6];
                        if (_aneqVar2.magnitude > (d18 > 100.0d ? d18 - 100.0d : 0.0d)) {
                            dArr[Floor4][Floor5][Floor6] = _aneqVar2.magnitude + 100.0d;
                        }
                    }
                }
            }
        }
        if (this._v5.getSize() > 0) {
            int size3 = this._v5.getSize() - 1;
            i = 0;
            for (int i16 = 0; i16 <= size3; i16++) {
                _aneq _aneqVar3 = (_aneq) this._v5.Get(i16);
                if (_aneqVar3.magnitude != 999.0d && _aneqVar3.depth != 999.0d) {
                    _latlonVar.Lat = _aneqVar3.latitude;
                    _latlonVar.Lon = _aneqVar3.longitude;
                    geodesic._utm _vvvvvvvvvvvvvvvvvvvvvvvvv43 = geodesicVar2._vvvvvvvvvvvvvvvvvvvvvvvvv4(_latlonVar);
                    if (_vvvvvvvvvvvvvvvvvvvvvvvvv43.X > this._vvvvvvvvvvvvvvvvvvvvv3 && _vvvvvvvvvvvvvvvvvvvvvvvvv43.X < this._vvvvvvvvvvvvvvvvvvvvv4 && _vvvvvvvvvvvvvvvvvvvvvvvvv43.Y > this._vvvvvvvvvvvvvvvvvvvvv6 && _vvvvvvvvvvvvvvvvvvvvvvvvv43.Y < this._vvvvvvvvvvvvvvvvvvvvv5 && _aneqVar3.depth > 0.0d && _aneqVar3.depth < 8.0d) {
                        double d19 = _vvvvvvvvvvvvvvvvvvvvvvvvv43.X;
                        double d20 = this._vvvvvvvvvvvvvvvvvvvvv3;
                        Double.isNaN(d20);
                        double d21 = this._vvvvvvvvvvvvvvvvvvvvv5;
                        double d22 = _vvvvvvvvvvvvvvvvvvvvvvvvv43.Y;
                        Double.isNaN(d21);
                        int i17 = (int) (d21 - d22);
                        int i18 = (int) (_aneqVar3.depth * 1000.0d);
                        double d23 = (int) (d19 - d20);
                        Double.isNaN(d23);
                        int Floor7 = (int) Common.Floor(d23 / 400.0d);
                        double d24 = i17;
                        Double.isNaN(d24);
                        int Floor8 = (int) Common.Floor(d24 / 400.0d);
                        double d25 = i18;
                        Double.isNaN(d25);
                        int Floor9 = (int) Common.Floor(d25 / 400.0d);
                        double d26 = dArr[Floor7][Floor8][Floor9];
                        if (d26 == 0.0d || (d26 >= 100.0d && _aneqVar3.magnitude > dArr[Floor7][Floor8][Floor9] - 100.0d)) {
                            this._vvvvvvvvvvvvvvvvvvvvvvv6.Add(_aneqVar3);
                        } else {
                            i++;
                        }
                    }
                }
            }
        } else {
            i = 0;
        }
        if (this._vvvvvvvvvvvvvvvvvvvvvvv3.getSize() > 0) {
            DateTime dateTime = Common.DateTime;
            long now = DateTime.getNow();
            DateTime dateTime2 = Common.DateTime;
            long j = now - 345600000;
            int size4 = this._vvvvvvvvvvvvvvvvvvvvvvv3.getSize() - 1;
            int i19 = 0;
            while (i19 <= size4) {
                _aneq _aneqVar4 = (_aneq) this._vvvvvvvvvvvvvvvvvvvvvvv3.Get(i19);
                if (_aneqVar4.magnitude != 999.0d && _aneqVar4.depth != 999.0d && _aneqVar4.timeUTC >= j) {
                    _latlonVar.Lat = _aneqVar4.latitude;
                    _latlonVar.Lon = _aneqVar4.longitude;
                    geodesic._utm _vvvvvvvvvvvvvvvvvvvvvvvvv44 = geodesicVar2._vvvvvvvvvvvvvvvvvvvvvvvvv4(_latlonVar);
                    if (_vvvvvvvvvvvvvvvvvvvvvvvvv44.X > this._vvvvvvvvvvvvvvvvvvvvv3 && _vvvvvvvvvvvvvvvvvvvvvvvvv44.X < this._vvvvvvvvvvvvvvvvvvvvv4 && _vvvvvvvvvvvvvvvvvvvvvvvvv44.Y > this._vvvvvvvvvvvvvvvvvvvvv6 && _vvvvvvvvvvvvvvvvvvvvvvvvv44.Y < this._vvvvvvvvvvvvvvvvvvvvv5 && _aneqVar4.depth > 0.0d && _aneqVar4.depth < 8.0d) {
                        double d27 = _vvvvvvvvvvvvvvvvvvvvvvvvv44.X;
                        double d28 = this._vvvvvvvvvvvvvvvvvvvvv3;
                        Double.isNaN(d28);
                        int i20 = (int) (d27 - d28);
                        double d29 = this._vvvvvvvvvvvvvvvvvvvvv5;
                        i3 = size4;
                        geodesicVar = geodesicVar2;
                        double d30 = _vvvvvvvvvvvvvvvvvvvvvvvvv44.Y;
                        Double.isNaN(d29);
                        int i21 = (int) (_aneqVar4.depth * 1000.0d);
                        double d31 = i20;
                        Double.isNaN(d31);
                        int Floor10 = (int) Common.Floor(d31 / 400.0d);
                        double d32 = (int) (d29 - d30);
                        Double.isNaN(d32);
                        int Floor11 = (int) Common.Floor(d32 / 400.0d);
                        double d33 = i21;
                        Double.isNaN(d33);
                        int Floor12 = (int) Common.Floor(d33 / 400.0d);
                        double d34 = dArr[Floor10][Floor11][Floor12];
                        if (d34 == 0.0d || (d34 >= 100.0d && _aneqVar4.magnitude > dArr[Floor10][Floor11][Floor12] - 100.0d)) {
                            this._vvvvvvvvvvvvvvvvvvvvvvv6.Add(_aneqVar4);
                        } else {
                            i++;
                        }
                        i19++;
                        geodesicVar2 = geodesicVar;
                        size4 = i3;
                    }
                }
                i3 = size4;
                geodesicVar = geodesicVar2;
                i19++;
                geodesicVar2 = geodesicVar;
                size4 = i3;
            }
        }
        if (this._vvvvvvvvvvvvvvvvvvvvvvv6.getSize() + i >= 8) {
            double size5 = this._vvvvvvvvvvvvvvvvvvvvvvv6.getSize() * 100;
            double size6 = this._vvvvvvvvvvvvvvvvvvvvvvv6.getSize() + i;
            Double.isNaN(size5);
            Double.isNaN(size6);
            d2 = size5 / size6;
        } else {
            d2 = 0.0d;
        }
        Map map = new Map();
        map.Initialize();
        if (this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("NormalIndices") != null) {
            map = (Map) AbsObjectWrapper.ConvertToWrapper(new Map(), (java.util.Map) this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("NormalIndices"));
        }
        DateTime dateTime3 = Common.DateTime;
        long now2 = DateTime.getNow();
        DateTime dateTime4 = Common.DateTime;
        long j2 = now2 - 2592000000L;
        map.Put(Long.valueOf(now2), Double.valueOf(d2));
        Map map2 = new Map();
        map2.Initialize();
        BA.IterableList Keys = map.Keys();
        int size7 = Keys.getSize();
        for (int i22 = 0; i22 < size7; i22++) {
            long ObjectToLongNumber = BA.ObjectToLongNumber(Keys.Get(i22));
            if (ObjectToLongNumber > j2) {
                map2.Put(Long.valueOf(ObjectToLongNumber), map.Get(Long.valueOf(ObjectToLongNumber)));
            }
        }
        this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvvv4("NormalIndices", map2.getObject());
        int ObjectToNumber = eqdb._v6._vvvvvvvvvvvvvvvvvvvvvvvvvvv6(this._vvvvvvvvvvvvv4, "maxEQsInFourDays") != null ? (int) BA.ObjectToNumber(eqdb._v6._vvvvvvvvvvvvvvvvvvvvvvvvvvv6(this._vvvvvvvvvvvvv4, "maxEQsInFourDays")) : 0;
        if (ObjectToNumber > 0) {
            if (this._vvvvvvvvvvvvvvvvvvvvvvv3.getSize() > 0) {
                DateTime dateTime5 = Common.DateTime;
                long now3 = DateTime.getNow();
                DateTime dateTime6 = Common.DateTime;
                long j3 = now3 - 345600000;
                int size8 = this._vvvvvvvvvvvvvvvvvvvvvvv3.getSize() - 1;
                i2 = 0;
                for (int i23 = 0; i23 <= size8; i23++) {
                    _aneq _aneqVar5 = (_aneq) this._vvvvvvvvvvvvvvvvvvvvvvv3.Get(i23);
                    if (_aneqVar5.magnitude != 999.0d && _aneqVar5.depth != 999.0d && _aneqVar5.timeUTC > j3) {
                        i2++;
                    }
                }
            } else {
                i2 = 0;
            }
            if (this._v5.getSize() > 0) {
                int size9 = this._v5.getSize() - 1;
                for (int i24 = 0; i24 <= size9; i24++) {
                    _aneq _aneqVar6 = (_aneq) this._v5.Get(i24);
                    if (_aneqVar6.magnitude != 999.0d && _aneqVar6.depth != 999.0d) {
                        i2++;
                    }
                }
            }
            Map map3 = new Map();
            map3.Initialize();
            if (this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("fourdayFrequency") != null) {
                map3 = (Map) AbsObjectWrapper.ConvertToWrapper(new Map(), (java.util.Map) this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("fourdayFrequency"));
            }
            double d35 = i2 * 100;
            double d36 = ObjectToNumber;
            Double.isNaN(d35);
            Double.isNaN(d36);
            map3.Put(Long.valueOf(now2), Double.valueOf(d35 / d36));
            Map map4 = new Map();
            map4.Initialize();
            BA.IterableList Keys2 = map3.Keys();
            int size10 = Keys2.getSize();
            for (int i25 = 0; i25 < size10; i25++) {
                long ObjectToLongNumber2 = BA.ObjectToLongNumber(Keys2.Get(i25));
                if (ObjectToLongNumber2 > j2) {
                    map4.Put(Long.valueOf(ObjectToLongNumber2), map3.Get(Long.valueOf(ObjectToLongNumber2)));
                }
            }
            this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvvv4("fourdayFrequency", map4.getObject());
            return BuildConfig.FLAVOR;
        }
        return BuildConfig.FLAVOR;
    }

    public String _vvvvvvvvvvv4(B4XViewWrapper b4XViewWrapper, B4XViewWrapper b4XViewWrapper2, B4XViewWrapper b4XViewWrapper3) throws Exception {
        int DipToCurrent = Common.DipToCurrent(10);
        double width = b4XViewWrapper.getWidth() - (DipToCurrent * 3);
        Double.isNaN(width);
        b4XViewWrapper2.setWidth((int) (width / 2.0d));
        b4XViewWrapper3.setWidth(b4XViewWrapper2.getWidth());
        b4XViewWrapper2.setLeft(DipToCurrent);
        b4XViewWrapper3.setLeft((b4XViewWrapper.getWidth() - DipToCurrent) - b4XViewWrapper3.getWidth());
        return BuildConfig.FLAVOR;
    }

    public String _vvvvvvvvvvv5(B4XViewWrapper b4XViewWrapper, B4XViewWrapper b4XViewWrapper2, B4XViewWrapper b4XViewWrapper3, B4XViewWrapper b4XViewWrapper4) throws Exception {
        int DipToCurrent = Common.DipToCurrent(10);
        double width = b4XViewWrapper.getWidth() - (DipToCurrent * 4);
        Double.isNaN(width);
        b4XViewWrapper2.setWidth((int) (width / 3.0d));
        b4XViewWrapper3.setWidth(b4XViewWrapper2.getWidth());
        b4XViewWrapper4.setWidth(b4XViewWrapper2.getWidth());
        b4XViewWrapper2.setLeft(DipToCurrent);
        double width2 = b4XViewWrapper.getWidth();
        Double.isNaN(width2);
        double width3 = b4XViewWrapper3.getWidth();
        Double.isNaN(width3);
        b4XViewWrapper3.setLeft((int) ((width2 / 2.0d) - (width3 / 2.0d)));
        b4XViewWrapper4.setLeft((b4XViewWrapper.getWidth() - DipToCurrent) - b4XViewWrapper4.getWidth());
        return BuildConfig.FLAVOR;
    }

    public String _vvvvvvvvvvv6(B4XViewWrapper b4XViewWrapper, B4XViewWrapper b4XViewWrapper2, B4XViewWrapper b4XViewWrapper3, B4XViewWrapper b4XViewWrapper4, B4XViewWrapper b4XViewWrapper5) throws Exception {
        int DipToCurrent = Common.DipToCurrent(5);
        double width = b4XViewWrapper.getWidth() - (DipToCurrent * 5);
        Double.isNaN(width);
        b4XViewWrapper2.setWidth((int) (width / 4.0d));
        b4XViewWrapper3.setWidth(b4XViewWrapper2.getWidth());
        b4XViewWrapper4.setWidth(b4XViewWrapper2.getWidth());
        b4XViewWrapper5.setWidth(b4XViewWrapper2.getWidth());
        b4XViewWrapper2.setLeft(DipToCurrent);
        b4XViewWrapper3.setLeft(b4XViewWrapper2.getLeft() + b4XViewWrapper2.getWidth() + DipToCurrent);
        b4XViewWrapper5.setLeft((b4XViewWrapper.getWidth() - DipToCurrent) - b4XViewWrapper5.getWidth());
        b4XViewWrapper4.setLeft((b4XViewWrapper5.getLeft() - DipToCurrent) - b4XViewWrapper4.getWidth());
        return BuildConfig.FLAVOR;
    }

    public String _vvvvvvvvvvv7(B4XViewWrapper b4XViewWrapper) throws Exception {
        while (_get_textwidth(b4XViewWrapper) >= b4XViewWrapper.getWidth() - _vvvvvvvvvvv0((ConcreteViewWrapper) AbsObjectWrapper.ConvertToWrapper(new ConcreteViewWrapper(), (View) b4XViewWrapper.getObject()))) {
            double textSize = b4XViewWrapper.getTextSize();
            Double.isNaN(textSize);
            b4XViewWrapper.setTextSize((float) (textSize * 0.95d));
        }
        return BuildConfig.FLAVOR;
    }

    public double _get_apptimezone(String str) throws Exception {
        DateTime dateTime = Common.DateTime;
        long now = DateTime.getNow();
        JavaObject javaObject = new JavaObject();
        javaObject.InitializeStatic("java.util.TimeZone");
        new JavaObject();
        return BA.ObjectToNumber(javaObject.RunMethodJO("getTimeZone", new Object[]{str}).RunMethod("getOffset", new Object[]{Long.valueOf(now)})) / 3600000.0d;
    }

    public double _get_seismicenergy(double d) throws Exception {
        return (Common.Power(10.0d, ((2.14d * d) + 9.4d) - ((0.054d * d) * d)) / Common.Power(10.0d, 7.0d)) / Common.Power(10.0d, 9.0d);
    }

    public int _get_textwidth(B4XViewWrapper b4XViewWrapper) throws Exception {
        String text = b4XViewWrapper.getText();
        new TypefaceWrapper();
        TypefaceWrapper ToNativeFont = b4XViewWrapper.getFont().ToNativeFont();
        float textSize = b4XViewWrapper.getTextSize();
        CanvasWrapper.BitmapWrapper bitmapWrapper = new CanvasWrapper.BitmapWrapper();
        bitmapWrapper.InitializeMutable(Common.DipToCurrent(ServiceStarter.ERROR_UNKNOWN), Common.DipToCurrent(100));
        CanvasWrapper canvasWrapper = new CanvasWrapper();
        canvasWrapper.Initialize2((Bitmap) bitmapWrapper.getObject());
        return (int) canvasWrapper.MeasureStringWidth(text, (Typeface) ToNativeFont.getObject(), textSize);
    }

    public int _vvvvvvvvvvv0(ConcreteViewWrapper concreteViewWrapper) throws Exception {
        new JavaObject();
        JavaObject ConvertToWrapper = AbsObjectWrapper.ConvertToWrapper(new JavaObject(), concreteViewWrapper.getObject());
        double ObjectToNumber = (int) BA.ObjectToNumber(ConvertToWrapper.RunMethod("getPaddingLeft", (Object[]) Common.Null));
        double ObjectToNumber2 = BA.ObjectToNumber(ConvertToWrapper.RunMethod("getPaddingRight", (Object[]) Common.Null));
        Double.isNaN(ObjectToNumber);
        return (int) (ObjectToNumber + ObjectToNumber2);
    }

    public String _initialize(BA ba) throws Exception {
        innerInitialize(ba);
        this._vvvvvvvvvvvvvvvvv7 = false;
        this._vvvvvvvvvvvvvvvvv0 = false;
        this._vvvvvvvvvvvvvvvvvvv7 = false;
        this._language_changed = false;
        this._vvvvvvvvvvvvv4 = "Vesuvius";
        this._vvvvvvvvvvvvvv4 = "Vesuvius Volcano";
        this._vvvvvvvvvvvvv5 = "extras/vs_pietro_fabris_1779b.webp";
        this._vvvvvvvvvvvvv6 = -12490271;
        StringBuilder sb = new StringBuilder();
        DateTime dateTime = Common.DateTime;
        DateTime dateTime2 = Common.DateTime;
        sb.append(DateTime.Time(DateTime.getNow()));
        sb.append(": ");
        sb.append(this._vvvvvvvvvvvvvv4);
        sb.append(" - App started: appTestVersion = ");
        sb.append(BA.ObjectToString(Boolean.valueOf(this._vvvvvvvvvvvvv1)));
        Common.LogImpl("81572887", sb.toString(), 0);
        return BuildConfig.FLAVOR;
    }

    public String _initialize_globals() throws Exception {
        this._volcano_timezoneoffset = _get_apptimezone(BA.ObjectToString(this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("timezone_name")));
        new Map();
        this._volcano_timezonename = BA.ObjectToString(AbsObjectWrapper.ConvertToWrapper(new Map(), (java.util.Map) this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("TimeZones")).Get(Double.valueOf(this._volcano_timezoneoffset)));
        this._vvvvvvvvvvvvvvvvvv5.Initialize();
        this._vvvvvvvvvvvvvvvvvv5.AddAll(Common.ArrayToList(new String[]{"January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"}));
        this._colour_textlink = -14774017;
        Colors colors = Common.Colors;
        this._colour_border = -3355444;
        this._colour_mappoint_red = B4XViewWrapper.XUI.Color_ARGB(KotlinVersion.MAX_COMPONENT_VALUE, KotlinVersion.MAX_COMPONENT_VALUE, 0, 0);
        this._colour_mappoint_redlight = B4XViewWrapper.XUI.Color_ARGB(85, KotlinVersion.MAX_COMPONENT_VALUE, 0, 0);
        this._colour_mappoint_green = B4XViewWrapper.XUI.Color_ARGB(KotlinVersion.MAX_COMPONENT_VALUE, 50, 205, 50);
        this._colour_mappoint_greenlight = B4XViewWrapper.XUI.Color_ARGB(85, 144, 238, 144);
        this._colour_mappoint_blue = B4XViewWrapper.XUI.Color_ARGB(KotlinVersion.MAX_COMPONENT_VALUE, 100, 149, 237);
        this._colour_mappoint_bluelight = B4XViewWrapper.XUI.Color_ARGB(85, 100, 149, 237);
        this._colour_chartpoint_green = B4XViewWrapper.XUI.Color_ARGB(85, 50, 205, 50);
        this._colour_apptitlebackground = (int) BA.ObjectToNumber(this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("Colour_appTitleBackground"));
        Colors colors2 = Common.Colors;
        this._colour_apptitletext = -1;
        this._size_textstandard = 15;
        this._size_textseparation = Common.DipToCurrent(15);
        this._vvvvvvvvvvvvvvvvv2.Initialize();
        this._vvvvvvvvvvvvvvvv5.Initialize();
        this._vvvvvvvvvvvvvvvvv6.Initialize();
        this._vvvvvvvvvvvvvvvvvv6.Initialize();
        this._vvvvvvvvvvvvvvvvvvvvvvv6.Initialize();
        this._vvvvvvvvvvvvvvvvvvvvvvv2.Initialize();
        this._vvvvvvvvvvvvvvvvv5 = (int) BA.ObjectToNumber(this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("numHistoryArticles"));
        this._vvvvvvvvvvvvvvvvvvvvvv0 = BA.ObjectToString(this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("Volcano_Database"));
        this._vvvvvvvvvvvvvvvv0 = 1000000.0f;
        this._vvvvvvvvvvvvvvvvvvvv6._initialize(this.ba);
        B4XViewWrapper.XUI.RegisterDesignerClass(this._vvvvvvvvvvvvvvvvvvvv6);
        this._v5.Initialize();
        this._vvvvvvvvvvvvvvvvvvvvvvv3.Initialize();
        this._vvvvvvvvvvvvvvvvvvvvvvv4.Initialize();
        this._vvvvvvvvvvvvvvvvvvvvvvv5.Initialize();
        this._vvvvvvvvvvvvvvvvvvvvvvv6.Initialize();
        this._vvvvvvvvvvvvvv5 = "Public";
        this._vvvvvvvvvvvvvv6 = "5280";
        this._vvvvvvvvvvvvvv7._initialize(this.ba, this._vvvvvvvvvvvvvv2);
        this._vvvvvvvvvvvvvv7._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv5 = this._colour_apptitlebackground;
        this._vvvvvvvvvvvvvv7._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv5 = Common.DipToCurrent(5);
        this._vvvvvvvvvvvvvv7._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv3 = -2130706433;
        this._vvvvvvvvvvvvvv0._initialize(this.ba);
        this._vvvvvvvvvvvvvvv1._initialize(this.ba);
        this._vvvvvvvvvvvvvvv2._initialize(this.ba);
        this._vvvvvvvvvvvvvvv2._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv5 = 2012;
        b4xdatetemplate b4xdatetemplateVar = this._vvvvvvvvvvvvvvv2;
        DateTime dateTime = Common.DateTime;
        DateTime dateTime2 = Common.DateTime;
        b4xdatetemplateVar._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv6 = DateTime.GetYear(DateTime.getNow());
        this._vvvvvvvvvvvvvvvvvvvvvvv7.Initialize();
        this._vvvvvvvvvvvvvvvvvvvvvvv0.Initialize();
        this._vvvvvvvvvvvvvvvvvvvvvvvv1.Initialize();
        return BuildConfig.FLAVOR;
    }

    public String _initialize_settings_main() throws Exception {
        new SQL.ResultSetWrapper();
        SQL.ResultSetWrapper ConvertToWrapper = AbsObjectWrapper.ConvertToWrapper(new SQL.ResultSetWrapper(), this._vvvvvvvvvvvvv0.ExecQuery("Select Vent_Name, Vent_Latitude, Vent_Longitude, Database_Name, RSS_Name1, RSS_Name2, App_Colour, Notification_Icon, No_Ads_SKU, Timezone_Name, StandardTime_Label, StandardTime_Offset, SummerTime_Label, SummerTime_Offset, fcm_topic, HazardPlan_url, BulletinsSource_url, Title_Image, Map_Name, Map_CoordLeft, Map_CoordRight, Map_CoordTop, Map_CoordBase, View_CoordLeft, View_CoordRight, View_CoordTop, View_CoordBase, View_Depth, PrevWaveEnergyGJ, PrevWaveEnergyPeriod From Volcanoes Where Name = '" + this._vvvvvvvvvvvvv4 + "'"));
        while (ConvertToWrapper.NextRow()) {
            this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvvv4("Vent", ConvertToWrapper.GetString("Vent_Name"));
            this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvvv4("Vent_Latitude", ConvertToWrapper.GetDouble("Vent_Latitude"));
            this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvvv4("Vent_Longitude", ConvertToWrapper.GetDouble("Vent_Longitude"));
            this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvvv4("app_TitleImage", ConvertToWrapper.GetString("Title_Image"));
            this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvvv4("Volcano_Database", ConvertToWrapper.GetString("Database_Name"));
            this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvvv4("Volcano_RSS_Name1", ConvertToWrapper.GetString("RSS_Name1"));
            this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvvv4("Volcano_RSS_Name2", ConvertToWrapper.GetString("RSS_Name2"));
            this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvvv4("Volcano_HazardPlanUrl", ConvertToWrapper.GetString("HazardPlan_url"));
            this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvvv4("Volcano_BulletinsUrl", ConvertToWrapper.GetString("BulletinsSource_url"));
            this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvvv4("map_filename", ConvertToWrapper.GetString("Map_Name"));
            this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvvv4("map_coordleft", Integer.valueOf(ConvertToWrapper.GetInt("Map_CoordLeft")));
            this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvvv4("map_coordright", Integer.valueOf(ConvertToWrapper.GetInt("Map_CoordRight")));
            this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvvv4("map_coordtop", Integer.valueOf(ConvertToWrapper.GetInt("Map_CoordTop")));
            this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvvv4("map_coordbase", Integer.valueOf(ConvertToWrapper.GetInt("Map_CoordBase")));
            this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvvv4("view_coordleft", Integer.valueOf(ConvertToWrapper.GetInt("View_CoordLeft")));
            this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvvv4("view_coordright", Integer.valueOf(ConvertToWrapper.GetInt("View_CoordRight")));
            this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvvv4("view_coordtop", Integer.valueOf(ConvertToWrapper.GetInt("View_CoordTop")));
            this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvvv4("view_coordbase", Integer.valueOf(ConvertToWrapper.GetInt("View_CoordBase")));
            this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvvv4("view_depth", Integer.valueOf(ConvertToWrapper.GetInt("View_Depth")));
            this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvvv4("Colour_appTitleBackground", Integer.valueOf(ConvertToWrapper.GetInt("App_Colour")));
            this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvvv4("NotificationIcon_FileName", ConvertToWrapper.GetString("Notification_Icon"));
            this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvvv4("No_Ads_SKU", ConvertToWrapper.GetString("No_Ads_SKU"));
            this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvvv4("timezone_name", ConvertToWrapper.GetString("Timezone_Name"));
            Map map = new Map();
            map.Initialize();
            map.Put(ConvertToWrapper.GetDouble("StandardTime_Offset"), ConvertToWrapper.GetString("StandardTime_Label"));
            map.Put(ConvertToWrapper.GetDouble("SummerTime_Offset"), ConvertToWrapper.GetString("SummerTime_Label"));
            this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvvv4("TimeZones", map.getObject());
            this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvvv4("fcm_topic", ConvertToWrapper.GetString("fcm_topic"));
            this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvvv4("PrevWaveEnergyGJ", Integer.valueOf(ConvertToWrapper.GetInt("PrevWaveEnergyGJ")));
            this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvvv4("PrevWaveEnergyPeriod", ConvertToWrapper.GetString("PrevWaveEnergyPeriod"));
        }
        return BuildConfig.FLAVOR;
    }

    public String _initialize_settings_updateable() throws Exception {
        if (this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("appTestVersion") == null) {
            this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvvv4("appTestVersion", "no");
        }
        if (this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("lastFeltReportID") == null) {
            this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvvv4("lastFeltReportID", 0);
        }
        if (this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("Video_LastDownload") == null) {
            this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvvv4("Video_LastDownload", 0);
        }
        if (this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("Video_FTPtries") == null) {
            this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvvv4("Video_FTPtries", 0);
        }
        if (this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("numHistoryArticles") == null) {
            this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvvv4("numHistoryArticles", 0);
        }
        if (this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("latestDB_EQID") == null) {
            this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvvv4("latestDB_EQID", 0);
        }
        if (this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("notifSoundLimit") == null) {
            this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvvv4("notifSoundLimit", 2);
        }
        if (this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("notifSoundOn") == null) {
            this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvvv4("notifSoundOn", "yes");
        }
        if (this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("language") == null) {
            this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvvv4("language", "EN");
        }
        if (this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("feltreportprompt") == null) {
            this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvvv4("feltreportprompt", "yes");
        }
        if (this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("ChatDeviceID") == null) {
            keyvaluestore keyvaluestoreVar = this._vvvvvvvvvvvvvv1;
            DateTime dateTime = Common.DateTime;
            keyvaluestoreVar._vvvvvvvvvvvvvvvvvvvvvvvvvvvv4("ChatDeviceID", Long.valueOf(DateTime.getNow()));
        }
        if (this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("ChatName") == null) {
            keyvaluestore keyvaluestoreVar2 = this._vvvvvvvvvvvvvv1;
            StringBuilder sb = new StringBuilder("Anon ");
            DateTime dateTime2 = Common.DateTime;
            sb.append(BA.NumberToString(DateTime.getNow()).substring(7));
            keyvaluestoreVar2._vvvvvvvvvvvvvvvvvvvvvvvvvvvv4("ChatName", sb.toString());
            return BuildConfig.FLAVOR;
        }
        return BuildConfig.FLAVOR;
    }

    public void _input_felteventprompt() throws Exception {
        new ResumableSub_Input_FeltEventPrompt(this).resume(this.ba, null);
    }

    public static class ResumableSub_Input_FeltEventPrompt extends BA.ResumableSub {
        b4xmainpage parent;
        long _timelimit = 0;
        _aneq _eq = null;
        String _msg = BuildConfig.FLAVOR;
        int _result1 = 0;

        public ResumableSub_Input_FeltEventPrompt(b4xmainpage b4xmainpageVar) {
            this.parent = b4xmainpageVar;
        }

        public void resume(BA ba, Object[] objArr) throws Exception {
            while (true) {
                int i = this.state;
                if (i == -1) {
                    return;
                }
                if (i == 0) {
                    this.state = 1;
                } else if (i == 1) {
                    this.state = 14;
                    if (this.parent._v5.getSize() > 0 && "yes".equals(BA.ObjectToString(this.parent._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("feltreportprompt")))) {
                        this.state = 3;
                    }
                } else if (i == 3) {
                    this.state = 4;
                    Common common = this.parent.__c;
                    DateTime dateTime = Common.DateTime;
                    long now = DateTime.getNow();
                    long j = this.parent._vvvvvvvvvvvvvvv4;
                    Common common2 = this.parent.__c;
                    DateTime dateTime2 = Common.DateTime;
                    this._timelimit = now - (j * 60000);
                    this._eq = (_aneq) this.parent._v5.Get(this.parent._v5.getSize() - 1);
                } else if (i == 4) {
                    this.state = 13;
                    if (this._eq.timeUTC > this._timelimit && this._eq.eventID != BA.ObjectToNumber(this.parent._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("lastFeltReportID"))) {
                        this.state = 6;
                    }
                } else {
                    if (i == 6) {
                        this.state = 7;
                        this.parent._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvvv4("lastFeltReportID", Integer.valueOf(this._eq.eventID));
                        StringBuilder sb = new StringBuilder();
                        sb.append(this.parent._vvvvvvvvvvvv6("Did you just feel an earthquake?"));
                        Common common3 = this.parent.__c;
                        sb.append("\n\n");
                        Common common4 = this.parent.__c;
                        sb.append(this.parent._vvvvvvvvvvvv6("If you answer Yes then your approximate location may be shown to other app users but without any information that may identify you."));
                        this._msg = sb.toString();
                        b4xmainpage b4xmainpageVar = this.parent;
                        JavaObject javaObject = new JavaObject();
                        Common common5 = this.parent.__c;
                        CharSequence ObjectToCharSequence = BA.ObjectToCharSequence(this._msg);
                        CharSequence ObjectToCharSequence2 = BA.ObjectToCharSequence(this.parent._vvvvvvvvvvvv6("New Earthquake"));
                        String _vvvvvvvvvvvv6 = this.parent._vvvvvvvvvvvv6("Yes");
                        String _vvvvvvvvvvvv62 = this.parent._vvvvvvvvvvvv6("No");
                        CanvasWrapper.BitmapWrapper bitmapWrapper = new CanvasWrapper.BitmapWrapper();
                        Common common6 = this.parent.__c;
                        CanvasWrapper.BitmapWrapper ConvertToWrapper = AbsObjectWrapper.ConvertToWrapper(bitmapWrapper, (Bitmap) Common.Null);
                        Common common7 = this.parent.__c;
                        b4xmainpageVar._vvvvvvvvvvvvvvvvv3 = AbsObjectWrapper.ConvertToWrapper(javaObject, Common.Msgbox2Async(ObjectToCharSequence, ObjectToCharSequence2, _vvvvvvvvvvvv6, BuildConfig.FLAVOR, _vvvvvvvvvvvv62, ConvertToWrapper, ba, true));
                        this.parent._vvvvvvvvvvv1();
                        Common common8 = this.parent.__c;
                        Common.WaitFor("msgbox_result", ba, this, (Object) null);
                        this.state = 15;
                        return;
                    }
                    if (i == 7) {
                        this.state = 12;
                        int i2 = this._result1;
                        Common common9 = this.parent.__c;
                        DialogResponse dialogResponse = Common.DialogResponse;
                        if (i2 == -1) {
                            this.state = 9;
                        }
                    } else if (i == 9) {
                        this.state = 12;
                        b4xmainpage b4xmainpageVar2 = this.parent;
                        Common common10 = b4xmainpageVar2.__c;
                        DateTime dateTime3 = Common.DateTime;
                        b4xmainpageVar2._vvvvvvvvvvvv5(DateTime.getNow());
                    } else {
                        switch (i) {
                            case 12:
                                this.state = 13;
                                break;
                            case 13:
                                this.state = 14;
                                break;
                            case 14:
                                this.state = -1;
                                break;
                            case 15:
                                this.state = 7;
                                this._result1 = ((Integer) objArr[0]).intValue();
                                break;
                        }
                    }
                }
            }
        }
    }

    public void _ivtitleimage_longclick() throws Exception {
        new ResumableSub_ivTitleImage_LongClick(this).resume(this.ba, null);
    }

    public static class ResumableSub_ivTitleImage_LongClick extends BA.ResumableSub {
        b4xmainpage parent;
        int _result = 0;
        long _n = 0;
        long _t1 = 0;
        dateutils._period _p1 = null;
        double _m1 = 0.0d;
        String _msg = BuildConfig.FLAVOR;
        long _t2 = 0;
        dateutils._period _p2 = null;
        double _m2 = 0.0d;
        String _alertdate = BuildConfig.FLAVOR;

        public ResumableSub_ivTitleImage_LongClick(b4xmainpage b4xmainpageVar) {
            this.parent = b4xmainpageVar;
        }

        public void resume(BA ba, Object[] objArr) throws Exception {
            while (true) {
                switch (this.state) {
                    case -1:
                        return;
                    case 0:
                        this.state = 1;
                        break;
                    case 1:
                        this.state = 94;
                        if (this.parent._vvvvvvvvvvvvvv5.equals("Public")) {
                            this.state = 3;
                            break;
                        } else {
                            this.state = 13;
                            break;
                        }
                    case 3:
                        this.state = 4;
                        this.parent._vvvvvvvvvvvvvv7._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv5 = "Change User Mode";
                        this.parent._vvvvvvvvvvvvvv0._lbltitle.setText(BA.ObjectToCharSequence("PIN"));
                        this.parent._vvvvvvvvvvvvvv0._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv0 = BuildConfig.FLAVOR;
                        Common common = this.parent.__c;
                        Common.WaitFor("complete", ba, this, this.parent._vvvvvvvvvvvvvv7._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv5(this.parent._vvvvvvvvvvvvvv0, "OK", BuildConfig.FLAVOR, "CANCEL"));
                        this.state = 95;
                        return;
                    case 4:
                        this.state = 11;
                        int i = this._result;
                        B4XViewWrapper.XUI xui = this.parent._vvvvvvvvvvvvv3;
                        if (i != -1) {
                            break;
                        } else {
                            this.state = 6;
                            break;
                        }
                    case 6:
                        this.state = 7;
                        break;
                    case 7:
                        this.state = 10;
                        if (!this.parent._vvvvvvvvvvvvvv0._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv0.equals(this.parent._vvvvvvvvvvvvvv6)) {
                            break;
                        } else {
                            this.state = 9;
                            break;
                        }
                    case 9:
                        this.state = 10;
                        this.parent._vvvvvvvvvvvvvv5 = "Admin";
                        Common common2 = this.parent.__c;
                        CharSequence ObjectToCharSequence = BA.ObjectToCharSequence("Admin Mode");
                        Common common3 = this.parent.__c;
                        Common.ToastMessageShow(ObjectToCharSequence, true);
                        break;
                    case 10:
                        this.state = 11;
                        break;
                    case 11:
                        this.state = 94;
                        break;
                    case 13:
                        this.state = 14;
                        this.parent._vvvvvvvvvvvvvv7._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv5 = "Select Task";
                        b4xlisttemplate b4xlisttemplateVar = this.parent._vvvvvvvvvvvvvvv1;
                        Common common4 = this.parent.__c;
                        b4xlisttemplateVar._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1 = false;
                        this.parent._vvvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv4 = 1;
                        this.parent._vvvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv0 = Common.ArrayToList(new Object[]{"Alert Colour"});
                        Common common5 = this.parent.__c;
                        Common.WaitFor("complete", ba, this, this.parent._vvvvvvvvvvvvvv7._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv5(this.parent._vvvvvvvvvvvvvvv1, "OK", BuildConfig.FLAVOR, "CANCEL"));
                        this.state = 96;
                        return;
                    case 14:
                        this.state = 93;
                        int i2 = this._result;
                        B4XViewWrapper.XUI xui2 = this.parent._vvvvvvvvvvvvv3;
                        if (i2 != -1) {
                            break;
                        } else {
                            this.state = 16;
                            break;
                        }
                    case 16:
                        this.state = 17;
                        break;
                    case 17:
                        this.state = 92;
                        if (!this.parent._vvvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv3.equals(BuildConfig.FLAVOR)) {
                            this.state = 19;
                            break;
                        } else {
                            break;
                        }
                    case 19:
                        this.state = 20;
                        break;
                    case 20:
                        this.state = 91;
                        int switchObjectToInt = BA.switchObjectToInt(this.parent._vvvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv3, new Object[]{"Server Pings", "Alert Colour"});
                        if (switchObjectToInt == 0) {
                            this.state = 22;
                            break;
                        } else if (switchObjectToInt == 1) {
                            this.state = 72;
                            break;
                        } else {
                            break;
                        }
                    case 22:
                        this.state = 23;
                        Common common6 = this.parent.__c;
                        DateTime dateTime = Common.DateTime;
                        this._n = DateTime.getNow();
                        Common common7 = this.parent.__c;
                        DateTime dateTime2 = Common.DateTime;
                        DateTime.setTimeFormat("HH:mm");
                        Common common8 = this.parent.__c;
                        DateTime dateTime3 = Common.DateTime;
                        DateTime.setDateFormat("dd/MM");
                        this._t1 = BA.ObjectToLongNumber(this.parent._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("EQ_ServerPing"));
                        dateutils dateutilsVar = this.parent._vvvvvvvv2;
                        this._p1 = dateutils._periodbetween(ba, this._t1, this._n);
                        this._m1 = 0.0d;
                        break;
                    case 23:
                        this.state = 28;
                        if (this._p1.Days <= 0) {
                            break;
                        } else {
                            this.state = 25;
                            break;
                        }
                    case 25:
                        this.state = 28;
                        double d = this._m1;
                        double d2 = this._p1.Days * 1440;
                        Double.isNaN(d2);
                        this._m1 = d + d2;
                        break;
                    case 28:
                        this.state = 29;
                        break;
                    case 29:
                        this.state = 34;
                        if (this._p1.Hours <= 0) {
                            break;
                        } else {
                            this.state = 31;
                            break;
                        }
                    case 31:
                        this.state = 34;
                        double d3 = this._m1;
                        double d4 = this._p1.Hours * 60;
                        Double.isNaN(d4);
                        this._m1 = d3 + d4;
                        break;
                    case 34:
                        this.state = 35;
                        break;
                    case 35:
                        this.state = 40;
                        if (this._p1.Minutes <= 0) {
                            break;
                        } else {
                            this.state = 37;
                            break;
                        }
                    case PinConfig.BITMAP_LENGTH_DP:
                        this.state = 40;
                        double d5 = this._m1;
                        double d6 = this._p1.Minutes;
                        Double.isNaN(d6);
                        this._m1 = d5 + d6;
                        break;
                    case 40:
                        this.state = 41;
                        break;
                    case 41:
                        this.state = 46;
                        if (this._p1.Seconds <= 0) {
                            break;
                        } else {
                            this.state = 43;
                            break;
                        }
                    case 43:
                        this.state = 46;
                        double d7 = this._m1;
                        double d8 = this._p1.Seconds;
                        Double.isNaN(d8);
                        this._m1 = d7 + (d8 / 60.0d);
                        break;
                    case 46:
                        this.state = 47;
                        StringBuilder sb = new StringBuilder("EQ: ");
                        Common common9 = this.parent.__c;
                        DateTime dateTime4 = Common.DateTime;
                        sb.append(DateTime.Date(this._t1));
                        sb.append(" ");
                        Common common10 = this.parent.__c;
                        DateTime dateTime5 = Common.DateTime;
                        sb.append(DateTime.Time(this._t1));
                        sb.append(" (");
                        Common common11 = this.parent.__c;
                        sb.append(Common.NumberFormat(this._m1, 1, 1));
                        sb.append(" minutes)");
                        this._msg = sb.toString();
                        this._t2 = BA.ObjectToLongNumber(this.parent._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("FR_ServerPing"));
                        dateutils dateutilsVar2 = this.parent._vvvvvvvv2;
                        this._p2 = dateutils._periodbetween(ba, this._t2, this._n);
                        this._m2 = 0.0d;
                        break;
                    case 47:
                        this.state = 52;
                        if (this._p2.Days <= 0) {
                            break;
                        } else {
                            this.state = 49;
                            break;
                        }
                    case 49:
                        this.state = 52;
                        double d9 = this._m2;
                        double d10 = this._p2.Days * 1440;
                        Double.isNaN(d10);
                        this._m2 = d9 + d10;
                        break;
                    case 52:
                        this.state = 53;
                        break;
                    case 53:
                        this.state = 58;
                        if (this._p2.Hours <= 0) {
                            break;
                        } else {
                            this.state = 55;
                            break;
                        }
                    case 55:
                        this.state = 58;
                        double d11 = this._m2;
                        double d12 = this._p2.Hours * 60;
                        Double.isNaN(d12);
                        this._m2 = d11 + d12;
                        break;
                    case 58:
                        this.state = 59;
                        break;
                    case 59:
                        this.state = 64;
                        if (this._p2.Minutes <= 0) {
                            break;
                        } else {
                            this.state = 61;
                            break;
                        }
                    case 61:
                        this.state = 64;
                        double d13 = this._m2;
                        double d14 = this._p2.Minutes;
                        Double.isNaN(d14);
                        this._m2 = d13 + d14;
                        break;
                    case 64:
                        this.state = 65;
                        break;
                    case 65:
                        this.state = 70;
                        if (this._p2.Seconds <= 0) {
                            break;
                        } else {
                            this.state = 67;
                            break;
                        }
                    case 67:
                        this.state = 70;
                        double d15 = this._m2;
                        double d16 = this._p2.Seconds;
                        Double.isNaN(d16);
                        this._m2 = d15 + (d16 / 60.0d);
                        break;
                    case 70:
                        this.state = 91;
                        StringBuilder sb2 = new StringBuilder();
                        sb2.append(this._msg);
                        Common common12 = this.parent.__c;
                        sb2.append("\nFR: ");
                        Common common13 = this.parent.__c;
                        DateTime dateTime6 = Common.DateTime;
                        sb2.append(DateTime.Date(this._t2));
                        sb2.append(" ");
                        Common common14 = this.parent.__c;
                        DateTime dateTime7 = Common.DateTime;
                        sb2.append(DateTime.Time(this._t2));
                        sb2.append(" (");
                        Common common15 = this.parent.__c;
                        sb2.append(Common.NumberFormat(this._m2, 1, 1));
                        sb2.append(" minutes)");
                        this._msg = sb2.toString();
                        Common common16 = this.parent.__c;
                        Common.MsgboxAsync(BA.ObjectToCharSequence(this._msg), BA.ObjectToCharSequence("Server Pings"), ba);
                        break;
                    case 72:
                        this.state = 73;
                        this.parent._vvvvvvvvvvvvvv7._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv5 = "Volcanic Alert Colour";
                        b4xlisttemplate b4xlisttemplateVar2 = this.parent._vvvvvvvvvvvvvvv1;
                        Common common17 = this.parent.__c;
                        b4xlisttemplateVar2._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1 = false;
                        this.parent._vvvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv4 = 1;
                        this.parent._vvvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv0 = Common.ArrayToList(new Object[]{"Red", "Orange", "Yellow", "Green"});
                        Common common18 = this.parent.__c;
                        Common.WaitFor("complete", ba, this, this.parent._vvvvvvvvvvvvvv7._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv5(this.parent._vvvvvvvvvvvvvvv1, "OK", BuildConfig.FLAVOR, "CANCEL"));
                        this.state = 97;
                        return;
                    case 73:
                        this.state = 90;
                        int i3 = this._result;
                        B4XViewWrapper.XUI xui3 = this.parent._vvvvvvvvvvvvv3;
                        if (i3 != -1) {
                            break;
                        } else {
                            this.state = 75;
                            break;
                        }
                    case 75:
                        this.state = 76;
                        break;
                    case 76:
                        this.state = 89;
                        if (!this.parent._vvvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv3.equals(BuildConfig.FLAVOR)) {
                            this.state = 78;
                            break;
                        } else {
                            break;
                        }
                    case 78:
                        this.state = 79;
                        eqdb eqdbVar = this.parent._vvvvvvvvv3;
                        eqdb._v6._vvvvvvvvvvvvvvvvvvvvvvvvvvvv4(this.parent._vvvvvvvvvvvvv4, "Volcano_AlertColour", this.parent._vvvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv3);
                        this.parent._vvvvvvvvvvvvvv7._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv5 = "Date Alert Changed";
                        Common common19 = this.parent.__c;
                        Common.WaitFor("complete", ba, this, this.parent._vvvvvvvvvvvvvv7._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv5(this.parent._vvvvvvvvvvvvvvv2, "OK", BuildConfig.FLAVOR, "CANCEL"));
                        this.state = 98;
                        return;
                    case 79:
                        this.state = 88;
                        int i4 = this._result;
                        B4XViewWrapper.XUI xui4 = this.parent._vvvvvvvvvvvvv3;
                        if (i4 != -1) {
                            break;
                        } else {
                            this.state = 81;
                            break;
                        }
                    case 81:
                        this.state = 82;
                        this._alertdate = BuildConfig.FLAVOR;
                        break;
                    case 82:
                        this.state = 87;
                        Common common20 = this.parent.__c;
                        DateTime dateTime8 = Common.DateTime;
                        if (DateTime.GetYear(this.parent._vvvvvvvvvvvvvvv2._getvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1()) == 2012) {
                            this.state = 84;
                            break;
                        } else {
                            this.state = 86;
                            break;
                        }
                    case 84:
                        this.state = 87;
                        this._alertdate = "null";
                        break;
                    case 86:
                        this.state = 87;
                        Common common21 = this.parent.__c;
                        DateTime dateTime9 = Common.DateTime;
                        DateTime.setDateFormat("dd/MM/yyyy");
                        Common common22 = this.parent.__c;
                        DateTime dateTime10 = Common.DateTime;
                        this._alertdate = DateTime.Date(this.parent._vvvvvvvvvvvvvvv2._getvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1());
                        break;
                    case 87:
                        this.state = 88;
                        eqdb eqdbVar2 = this.parent._vvvvvvvvv3;
                        eqdb._v6._vvvvvvvvvvvvvvvvvvvvvvvvvvvv4("Campi Flegrei", "Volcano_AlertLevelDate", this._alertdate);
                        this.parent._pn03_alert_update();
                        break;
                    case 88:
                        this.state = 89;
                        break;
                    case 89:
                        this.state = 90;
                        break;
                    case 90:
                        this.state = 91;
                        break;
                    case 91:
                        this.state = 92;
                        break;
                    case 92:
                        this.state = 93;
                        break;
                    case 93:
                        this.state = 94;
                        break;
                    case 94:
                        this.state = -1;
                        break;
                    case 95:
                        this.state = 4;
                        this._result = ((Integer) objArr[0]).intValue();
                        break;
                    case 96:
                        this.state = 14;
                        this._result = ((Integer) objArr[0]).intValue();
                        break;
                    case 97:
                        this.state = 73;
                        this._result = ((Integer) objArr[0]).intValue();
                        break;
                    case 98:
                        this.state = 79;
                        this._result = ((Integer) objArr[0]).intValue();
                        break;
                }
            }
        }
    }

    public String _vvvvvvvvvvvv1(String str) throws Exception {
        int switchObjectToInt = BA.switchObjectToInt(str, new Object[]{"topSection", "eqSection"});
        if (switchObjectToInt == 0) {
            this._sv.getPanel().RemoveAllViews();
            this._sv.getPanel().setHeight(Common.DipToCurrent(0));
            _pncontent_setup(1);
            _pncontent_setup(2);
            _pncontent_setup(3);
            _pncontent_setup(6);
            _pncontent_setup(4);
            return BuildConfig.FLAVOR;
        }
        if (switchObjectToInt == 1) {
            _pncontent_setup(9);
            _pncontent_setup(11);
            _pncontent_setup(12);
            _pncontent_setup(13);
            _pncontent_setup(14);
            _pncontent_setup(15);
            _pncontent_setup(16);
            _pncontent_setup(17);
            _pncontent_setup(21);
            _pncontent_setup(19);
            _pncontent_setup(18);
            _pncontent_setup(22);
            _pncontent_setup(20);
            _pncontent_setup(23);
            return BuildConfig.FLAVOR;
        }
        return BuildConfig.FLAVOR;
    }

    public void _loadmainlayout_eqlistscharts(boolean z) throws Exception {
        new ResumableSub_LoadMainLayout_EQListsCharts(this, z).resume(this.ba, null);
    }

    public static class ResumableSub_LoadMainLayout_EQListsCharts extends BA.ResumableSub {
        boolean _clearchart;
        BA.IterableList group28;
        BA.IterableList group41;
        int groupLen28;
        int groupLen41;
        int index28;
        int index41;
        b4xmainpage parent;
        long _charttimenow = 0;
        boolean _result = false;
        int _pwe = 0;
        Map _normalindices = null;
        long _timenow = 0;
        double _daysmeasured = 0.0d;
        double _d = 0.0d;
        long _t = 0;
        Map _fourdayfrequency = null;

        public ResumableSub_LoadMainLayout_EQListsCharts(b4xmainpage b4xmainpageVar, boolean z) {
            this.parent = b4xmainpageVar;
            this._clearchart = z;
        }

        public void resume(BA ba, Object[] objArr) throws Exception {
            while (true) {
                switch (this.state) {
                    case -1:
                        return;
                    case 0:
                        this.state = 1;
                        this.parent._vvvvvvvvvv5();
                        Common common = this.parent.__c;
                        DateTime dateTime = Common.DateTime;
                        this._charttimenow = DateTime.getNow();
                        continue;
                    case 1:
                        this.state = 6;
                        if (this.parent._vvvvvvvvvvvvvvvvvvvvvvv4.getSize() > 0 && this.parent._vvvvvvvvvvvvvv3.IndexOf("events_map") > -1) {
                            this.state = 3;
                        } else {
                            this.state = 5;
                            continue;
                        }
                        break;
                    case 3:
                        this.state = 6;
                        this.parent._pn09_todaymap_update();
                        Common common2 = this.parent.__c;
                        Common.WaitFor("complete", ba, this, this.parent._pn09_todaymap_plotbitmaps());
                        this.state = 139;
                        return;
                    case 5:
                        this.state = 6;
                        this.parent._pncontent_remove("events_map");
                        break;
                    case 6:
                        this.state = 13;
                        if (this.parent._v5.getSize() > 0 && this.parent._vvvvvvvvvvvvvv3.IndexOf("chart1") > -1) {
                            this.state = 8;
                            break;
                        } else {
                            this.state = 10;
                            break;
                        }
                    case 8:
                        this.state = 13;
                        this.parent._pn11_chart1_update(this._charttimenow, this._clearchart);
                        break;
                    case 10:
                        this.state = 13;
                        this.parent._pncontent_remove("chart1");
                        break;
                    case 13:
                        this.state = 14;
                        break;
                    case 14:
                        this.state = 21;
                        if ((this.parent._vvvvvvvvvvvvvvvvvvvvvvv3.getSize() > 0 || this.parent._v5.getSize() > 0) && this.parent._vvvvvvvvvvvvvv3.IndexOf("chart2") > -1) {
                            this.state = 16;
                            break;
                        } else {
                            this.state = 18;
                            break;
                        }
                    case 16:
                        this.state = 21;
                        this.parent._pn12_chart2_update(this._charttimenow, this._clearchart);
                        break;
                    case 18:
                        this.state = 21;
                        this.parent._pncontent_remove("chart2");
                        break;
                    case 21:
                        this.state = 22;
                        break;
                    case 22:
                        this.state = 29;
                        if ((this.parent._vvvvvvvvvvvvvvvvvvvvvvv4.getSize() > 0 || this.parent._vvvvvvvvvvvvvvvvvvvvvvv3.getSize() > 0 || this.parent._v5.getSize() > 0) && this.parent._vvvvvvvvvvvvvv3.IndexOf("chart3") > -1) {
                            this.state = 24;
                            break;
                        } else {
                            this.state = 26;
                            break;
                        }
                    case 24:
                        this.state = 29;
                        this.parent._pn13_chart3_update(this._charttimenow, this._clearchart);
                        break;
                    case 26:
                        this.state = 29;
                        this.parent._pncontent_remove("chart3");
                        break;
                    case 29:
                        this.state = 30;
                        break;
                    case 30:
                        this.state = 37;
                        if ((this.parent._vvvvvvvvvvvvvvvvvvvvvvv4.getSize() > 0 || this.parent._vvvvvvvvvvvvvvvvvvvvvvv3.getSize() > 0 || this.parent._v5.getSize() > 0) && this.parent._vvvvvvvvvvvvvv3.IndexOf("chart4") > -1) {
                            this.state = 32;
                            break;
                        } else {
                            this.state = 34;
                            break;
                        }
                        break;
                    case 32:
                        this.state = 37;
                        this.parent._pn14_chart4_update(this._charttimenow, this._clearchart);
                        break;
                    case 34:
                        this.state = 37;
                        this.parent._pncontent_remove("chart4");
                        break;
                    case PinConfig.BITMAP_LENGTH_DP:
                        this.state = 38;
                        break;
                    case 38:
                        this.state = 45;
                        if ((this.parent._vvvvvvvvvvvvvvvvvvvvvvv5.getSize() > 0 || this.parent._vvvvvvvvvvvvvvvvvvvvvvv4.getSize() > 0 || this.parent._vvvvvvvvvvvvvvvvvvvvvvv3.getSize() > 0 || this.parent._v5.getSize() > 0) && this.parent._vvvvvvvvvvvvvv3.IndexOf("chart5") > -1) {
                            this.state = 40;
                            break;
                        } else {
                            this.state = 42;
                            break;
                        }
                        break;
                    case 40:
                        this.state = 45;
                        this.parent._pn15_chart5_update(this._charttimenow, this._clearchart);
                        break;
                    case 42:
                        this.state = 45;
                        this.parent._pncontent_remove("chart5");
                        break;
                    case 45:
                        this.state = 46;
                        break;
                    case 46:
                        this.state = 53;
                        if ((this.parent._vvvvvvvvvvvvvvvvvvvvvvv5.getSize() > 0 || this.parent._vvvvvvvvvvvvvvvvvvvvvvv4.getSize() > 0 || this.parent._vvvvvvvvvvvvvvvvvvvvvvv3.getSize() > 0 || this.parent._v5.getSize() > 0) && this.parent._vvvvvvvvvvvvvv3.IndexOf("chart6") > -1) {
                            this.state = 48;
                            break;
                        } else {
                            this.state = 50;
                            break;
                        }
                        break;
                    case 48:
                        this.state = 53;
                        this.parent._pn16_chart6_update(this._charttimenow, this._clearchart);
                        break;
                    case 50:
                        this.state = 53;
                        this.parent._pncontent_remove("chart6");
                        break;
                    case 53:
                        this.state = 54;
                        this._pwe = (int) BA.ObjectToNumber(this.parent._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("PrevWaveEnergyGJ"));
                        break;
                    case 54:
                        this.state = 61;
                        if ((this.parent._vvvvvvvvvvvvvvvvvvvvvvv5.getSize() > 0 || this.parent._vvvvvvvvvvvvvvvvvvvvvvv4.getSize() > 0 || this.parent._vvvvvvvvvvvvvvvvvvvvvvv3.getSize() > 0 || this.parent._v5.getSize() > 0) && this._pwe > 0 && this.parent._vvvvvvvvvvvvvv3.IndexOf("chart9") > -1) {
                            this.state = 56;
                            break;
                        } else {
                            this.state = 58;
                            break;
                        }
                        break;
                    case 56:
                        this.state = 61;
                        this.parent._pn19_chart9_update(this._charttimenow, this._clearchart);
                        break;
                    case 58:
                        this.state = 61;
                        this.parent._pncontent_remove("chart9");
                        break;
                    case 61:
                        this.state = 62;
                        break;
                    case 62:
                        this.state = 69;
                        if ((this.parent._vvvvvvvvvvvvvvvvvvvvvvv5.getSize() > 0 || this.parent._vvvvvvvvvvvvvvvvvvvvvvv4.getSize() > 0 || this.parent._vvvvvvvvvvvvvvvvvvvvvvv3.getSize() > 0 || this.parent._v5.getSize() > 0) && this.parent._vvvvvvvvvvvvvv3.IndexOf("chart7") > -1) {
                            this.state = 64;
                            break;
                        } else {
                            this.state = 66;
                            break;
                        }
                        break;
                    case 64:
                        this.state = 69;
                        this.parent._pn17_chart7_update(this._charttimenow, this._clearchart);
                        break;
                    case 66:
                        this.state = 69;
                        this.parent._pncontent_remove("chart7");
                        break;
                    case 69:
                        this.state = 70;
                        break;
                    case 70:
                        this.state = 77;
                        if (this.parent._vvvvvvvvvvvvvvvvvvvvvvv2.getSize() > 0 && this.parent._vvvvvvvvvvvvvv3.IndexOf("chart11") > -1) {
                            this.state = 72;
                            break;
                        } else {
                            this.state = 74;
                            break;
                        }
                    case 72:
                        this.state = 77;
                        this.parent._pn21_chart11_update(this._clearchart);
                        break;
                    case 74:
                        this.state = 77;
                        this.parent._pncontent_remove("chart11");
                        break;
                    case 77:
                        this.state = 78;
                        break;
                    case 78:
                        this.state = 85;
                        if ((this.parent._vvvvvvvvvvvvvvvvvvvvvvv5.getSize() > 0 || this.parent._vvvvvvvvvvvvvvvvvvvvvvv4.getSize() > 0 || this.parent._vvvvvvvvvvvvvvvvvvvvvvv3.getSize() > 0 || this.parent._v5.getSize() > 0) && this.parent._vvvvvvvvvvvvvv3.IndexOf("chart8") > -1) {
                            this.state = 80;
                            break;
                        } else {
                            this.state = 82;
                            break;
                        }
                        break;
                    case 80:
                        this.state = 85;
                        this.parent._pn18_chart8_update(this._clearchart);
                        break;
                    case 82:
                        this.state = 85;
                        this.parent._pncontent_remove("chart8");
                        break;
                    case 85:
                        this.state = 86;
                        break;
                    case 86:
                        this.state = 93;
                        if ((this.parent._vvvvvvvvvvvvvvvvvvvvvvv5.getSize() > 0 || this.parent._vvvvvvvvvvvvvvvvvvvvvvv4.getSize() > 0 || this.parent._vvvvvvvvvvvvvvvvvvvvvvv3.getSize() > 0 || this.parent._v5.getSize() > 0) && this.parent._vvvvvvvvvvvvvv3.IndexOf("chart12") > -1) {
                            this.state = 88;
                            break;
                        } else {
                            this.state = 90;
                            break;
                        }
                        break;
                    case 88:
                        this.state = 93;
                        this.parent._pn22_chart12_update(this._charttimenow, this._clearchart);
                        break;
                    case 90:
                        this.state = 93;
                        this.parent._pncontent_remove("chart12");
                        break;
                    case 93:
                        this.state = 94;
                        break;
                    case 94:
                        this.state = 116;
                        if (this.parent._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("NormalIndices") == null) {
                            this.state = 96;
                            break;
                        } else {
                            this.state = 98;
                            break;
                        }
                    case 96:
                        this.state = 116;
                        this.parent._pncontent_remove("chart10");
                        break;
                    case 98:
                        this.state = 99;
                        this._normalindices = new Map();
                        this._normalindices = AbsObjectWrapper.ConvertToWrapper(new Map(), (java.util.Map) this.parent._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("NormalIndices"));
                        Common common3 = this.parent.__c;
                        DateTime dateTime2 = Common.DateTime;
                        this._timenow = DateTime.getNow();
                        this._daysmeasured = 0.0d;
                        this._d = 0.0d;
                        break;
                    case 99:
                        this.state = 108;
                        BA.IterableList Keys = this._normalindices.Keys();
                        this.group28 = Keys;
                        this.index28 = 0;
                        this.groupLen28 = Keys.getSize();
                        this.state = 140;
                        break;
                    case 101:
                        this.state = 102;
                        double d = this._timenow - this._t;
                        Common common4 = this.parent.__c;
                        DateTime dateTime3 = Common.DateTime;
                        Double.isNaN(d);
                        this._d = d / 8.64E7d;
                        break;
                    case 102:
                        this.state = 107;
                        if (this._d > this._daysmeasured) {
                            this.state = 104;
                            break;
                        }
                        break;
                    case 104:
                        this.state = 107;
                        this._daysmeasured = this._d;
                        break;
                    case 107:
                        this.state = 141;
                        break;
                    case 108:
                        this.state = 115;
                        if (this._daysmeasured > 2.0d && this.parent._vvvvvvvvvvvvvv3.IndexOf("chart10") > -1) {
                            this.state = 110;
                            break;
                        } else {
                            this.state = 112;
                            break;
                        }
                        break;
                    case 110:
                        this.state = 115;
                        this.parent._pn20_chart10_update(this._charttimenow, this._clearchart);
                        break;
                    case 112:
                        this.state = 115;
                        this.parent._pncontent_remove("chart10");
                        break;
                    case 115:
                        this.state = 116;
                        break;
                    case 116:
                        this.state = 138;
                        if (this.parent._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("fourdayFrequency") == null) {
                            this.state = 118;
                            break;
                        } else {
                            this.state = 120;
                            break;
                        }
                    case 118:
                        this.state = 138;
                        this.parent._pncontent_remove("chart13");
                        break;
                    case 120:
                        this.state = 121;
                        this._fourdayfrequency = new Map();
                        this._fourdayfrequency = AbsObjectWrapper.ConvertToWrapper(new Map(), (java.util.Map) this.parent._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("fourdayFrequency"));
                        Common common5 = this.parent.__c;
                        DateTime dateTime4 = Common.DateTime;
                        this._timenow = DateTime.getNow();
                        this._daysmeasured = 0.0d;
                        this._d = 0.0d;
                        break;
                    case 121:
                        this.state = 130;
                        BA.IterableList Keys2 = this._fourdayfrequency.Keys();
                        this.group41 = Keys2;
                        this.index41 = 0;
                        this.groupLen41 = Keys2.getSize();
                        this.state = 142;
                        break;
                    case 123:
                        this.state = 124;
                        double d2 = this._timenow - this._t;
                        Common common6 = this.parent.__c;
                        DateTime dateTime5 = Common.DateTime;
                        Double.isNaN(d2);
                        this._d = d2 / 8.64E7d;
                        break;
                    case 124:
                        this.state = 129;
                        if (this._d > this._daysmeasured) {
                            this.state = 126;
                            break;
                        }
                        break;
                    case 126:
                        this.state = 129;
                        this._daysmeasured = this._d;
                        break;
                    case 129:
                        this.state = 143;
                        break;
                    case 130:
                        this.state = 137;
                        if (this._daysmeasured > 2.0d && this.parent._vvvvvvvvvvvvvv3.IndexOf("chart13") > -1) {
                            this.state = 132;
                            break;
                        } else {
                            this.state = 134;
                            break;
                        }
                        break;
                    case 132:
                        this.state = 137;
                        this.parent._pn23_chart13_update(this._charttimenow, this._clearchart);
                        break;
                    case 134:
                        this.state = 137;
                        this.parent._pncontent_remove("chart13");
                        break;
                    case 137:
                        this.state = 138;
                        break;
                    case 138:
                        this.state = -1;
                        break;
                    case 139:
                        this.state = 6;
                        this._result = ((Boolean) objArr[0]).booleanValue();
                        break;
                    case 140:
                        this.state = 108;
                        if (this.index28 < this.groupLen28) {
                            this.state = 101;
                            this._t = BA.ObjectToLongNumber(this.group28.Get(this.index28));
                            break;
                        }
                        break;
                    case 141:
                        this.state = 140;
                        this.index28++;
                        break;
                    case 142:
                        this.state = 130;
                        if (this.index41 < this.groupLen41) {
                            this.state = 123;
                            this._t = BA.ObjectToLongNumber(this.group41.Get(this.index41));
                            break;
                        }
                        break;
                    case 143:
                        this.state = 142;
                        this.index41++;
                        break;
                }
            }
        }
    }

    public void _loadnewpage_click() throws Exception {
        new ResumableSub_loadNewPage_Click(this).resume(this.ba, null);
    }

    public static class ResumableSub_loadNewPage_Click extends BA.ResumableSub {
        b4xmainpage parent;
        LabelWrapper _lb = null;
        String _pageid = BuildConfig.FLAVOR;
        ColorDrawable _cd1 = null;
        ColorDrawable _cd2 = null;
        int _tc = 0;

        public ResumableSub_loadNewPage_Click(b4xmainpage b4xmainpageVar) {
            this.parent = b4xmainpageVar;
        }

        public void resume(BA ba, Object[] objArr) throws Exception {
            while (true) {
                int i = this.state;
                if (i == -1) {
                    return;
                }
                if (i == 0) {
                    this.state = -1;
                    this._lb = new LabelWrapper();
                    LabelWrapper labelWrapper = new LabelWrapper();
                    Common common = this.parent.__c;
                    LabelWrapper ConvertToWrapper = AbsObjectWrapper.ConvertToWrapper(labelWrapper, (TextView) Common.Sender(ba));
                    this._lb = ConvertToWrapper;
                    this._pageid = BA.ObjectToString(ConvertToWrapper.getTag());
                    ColorDrawable colorDrawable = new ColorDrawable();
                    this._cd1 = colorDrawable;
                    colorDrawable.Initialize(this.parent._colour_textlink, this.parent._size_cornerradius);
                    this._cd2 = new ColorDrawable();
                    this._cd2 = AbsObjectWrapper.ConvertToWrapper(new ColorDrawable(), this._lb.getBackground());
                    this._tc = this._lb.getTextColor();
                    this._lb.setBackground((Drawable) this._cd1.getObject());
                    this._lb.setTextColor(-657931);
                    Common common2 = this.parent.__c;
                    Common.Sleep(ba, this, this.parent._vvvvvvvvvvvvvvvvvvv3);
                    this.state = 1;
                    return;
                }
                if (i == 1) {
                    this.state = -1;
                    this._lb.setTextColor(this._tc);
                    this._lb.setBackground((Drawable) this._cd2.getObject());
                    b4xpages b4xpagesVar = this.parent._vvvvvvvvvv1;
                    b4xpages._vvvv3(ba, this._pageid);
                }
            }
        }
    }

    public String _make_timeline() throws Exception {
        B4XCanvas b4XCanvas = new B4XCanvas();
        DateTime dateTime = Common.DateTime;
        DateTime dateTime2 = Common.DateTime;
        int GetYear = DateTime.GetYear(DateTime.getNow());
        b4XCanvas.Initialize(this._ivtimeline);
        b4XCanvas.ClearRect(b4XCanvas.getTargetRect());
        float height = this._ivtimeline.getHeight() - Common.DipToCurrent(6);
        float width = this._ivtimeline.getWidth();
        float height2 = this._ivtimeline.getHeight() - Common.DipToCurrent(6);
        Colors colors = Common.Colors;
        b4XCanvas.DrawLine(BitmapDescriptorFactory.HUE_RED, height, width, height2, -12303292, Common.DipToCurrent(1));
        new B4XViewWrapper.B4XFont();
        B4XViewWrapper.B4XFont CreateDefaultFont = B4XViewWrapper.XUI.CreateDefaultFont(12.0f);
        float DipToCurrent = Common.DipToCurrent(1);
        float height3 = this._ivtimeline.getHeight();
        float DipToCurrent2 = Common.DipToCurrent(1);
        float height4 = this._ivtimeline.getHeight() - Common.DipToCurrent(12);
        Colors colors2 = Common.Colors;
        b4XCanvas.DrawLine(DipToCurrent, height3, DipToCurrent2, height4, -12303292, Common.DipToCurrent(1));
        BA ba = this.ba;
        float DipToCurrent3 = Common.DipToCurrent(0);
        float height5 = this._ivtimeline.getHeight() - Common.DipToCurrent(16);
        Colors colors3 = Common.Colors;
        b4XCanvas.DrawText(ba, "0", DipToCurrent3, height5, CreateDefaultFont, -12303292, (Paint.Align) BA.getEnumFromString(Paint.Align.class, "LEFT"));
        double width2 = this._ivtimeline.getWidth() * ServiceStarter.ERROR_UNKNOWN;
        double d = GetYear;
        Double.isNaN(width2);
        Double.isNaN(d);
        float f = (float) (width2 / d);
        float height6 = this._ivtimeline.getHeight();
        float height7 = this._ivtimeline.getHeight() - Common.DipToCurrent(12);
        Colors colors4 = Common.Colors;
        b4XCanvas.DrawLine(f, height6, f, height7, -12303292, Common.DipToCurrent(1));
        BA ba2 = this.ba;
        float height8 = this._ivtimeline.getHeight() - Common.DipToCurrent(16);
        Colors colors5 = Common.Colors;
        b4XCanvas.DrawText(ba2, "500", f, height8, CreateDefaultFont, -12303292, (Paint.Align) BA.getEnumFromString(Paint.Align.class, "CENTER"));
        double width3 = this._ivtimeline.getWidth() * 1000;
        Double.isNaN(width3);
        Double.isNaN(d);
        float f2 = (float) (width3 / d);
        float height9 = this._ivtimeline.getHeight();
        float height10 = this._ivtimeline.getHeight() - Common.DipToCurrent(12);
        Colors colors6 = Common.Colors;
        b4XCanvas.DrawLine(f2, height9, f2, height10, -12303292, Common.DipToCurrent(1));
        BA ba3 = this.ba;
        float height11 = this._ivtimeline.getHeight() - Common.DipToCurrent(16);
        Colors colors7 = Common.Colors;
        b4XCanvas.DrawText(ba3, "1000", f2, height11, CreateDefaultFont, -12303292, (Paint.Align) BA.getEnumFromString(Paint.Align.class, "CENTER"));
        double width4 = this._ivtimeline.getWidth() * 1500;
        Double.isNaN(width4);
        Double.isNaN(d);
        float f3 = (float) (width4 / d);
        float height12 = this._ivtimeline.getHeight();
        float height13 = this._ivtimeline.getHeight() - Common.DipToCurrent(12);
        Colors colors8 = Common.Colors;
        b4XCanvas.DrawLine(f3, height12, f3, height13, -12303292, Common.DipToCurrent(1));
        BA ba4 = this.ba;
        float height14 = this._ivtimeline.getHeight() - Common.DipToCurrent(16);
        Colors colors9 = Common.Colors;
        b4XCanvas.DrawText(ba4, "1500", f3, height14, CreateDefaultFont, -12303292, (Paint.Align) BA.getEnumFromString(Paint.Align.class, "CENTER"));
        double width5 = this._ivtimeline.getWidth() * 2000;
        Double.isNaN(width5);
        Double.isNaN(d);
        float f4 = (float) (width5 / d);
        float height15 = this._ivtimeline.getHeight();
        float height16 = this._ivtimeline.getHeight() - Common.DipToCurrent(12);
        Colors colors10 = Common.Colors;
        b4XCanvas.DrawLine(f4, height15, f4, height16, -12303292, Common.DipToCurrent(1));
        BA ba5 = this.ba;
        float height17 = this._ivtimeline.getHeight() - Common.DipToCurrent(16);
        Colors colors11 = Common.Colors;
        b4XCanvas.DrawText(ba5, "2000", f4, height17, CreateDefaultFont, -12303292, (Paint.Align) BA.getEnumFromString(Paint.Align.class, "RIGHT"));
        new _anarticleintro();
        int size = this._vvvvvvvvvvvvvvvvvvvvvv6.getSize() - 1;
        float f5 = f4;
        int i = 0;
        while (i <= size) {
            _anarticleintro _anarticleintroVar = (_anarticleintro) this._vvvvvvvvvvvvvvvvvvvvvv6.Get(i);
            if (_anarticleintroVar.time_year > 0) {
                double width6 = _anarticleintroVar.time_year * this._ivtimeline.getWidth();
                double d2 = GetYear;
                Double.isNaN(width6);
                Double.isNaN(d2);
                f5 = (float) (width6 / d2);
            }
            float f6 = f5;
            if (i != this._vvvvvvvvvvvvvvvvvvvvvvv1) {
                float height18 = this._ivtimeline.getHeight() - Common.DipToCurrent(6);
                float DipToCurrent4 = Common.DipToCurrent(4);
                Colors colors12 = Common.Colors;
                b4XCanvas.DrawCircle(f6, height18, DipToCurrent4, -3355444, true, Common.DipToCurrent(1));
            }
            i++;
            f5 = f6;
        }
        _anarticleintro _anarticleintroVar2 = (_anarticleintro) this._vvvvvvvvvvvvvvvvvvvvvv6.Get(this._vvvvvvvvvvvvvvvvvvvvvvv1);
        if (_anarticleintroVar2.time_year > 0) {
            double width7 = _anarticleintroVar2.time_year * this._ivtimeline.getWidth();
            double d3 = GetYear;
            Double.isNaN(width7);
            Double.isNaN(d3);
            f5 = (float) (width7 / d3);
        }
        float f7 = f5;
        float height19 = this._ivtimeline.getHeight() - Common.DipToCurrent(6);
        float DipToCurrent5 = Common.DipToCurrent(4);
        Colors colors13 = Common.Colors;
        b4XCanvas.DrawCircle(f7, height19, DipToCurrent5, -65536, true, Common.DipToCurrent(1));
        return BuildConfig.FLAVOR;
    }

    public String _openpage_click() throws Exception {
        new ButtonWrapper();
        String ObjectToString = BA.ObjectToString(AbsObjectWrapper.ConvertToWrapper(new ButtonWrapper(), (Button) Common.Sender(this.ba)).getTag());
        if (this._vvvvvvvvvvvvvvvvv2.IsInitialized()) {
            if (this._vvvvvvvvvvvvvvvvv2.IndexOf(ObjectToString) == -1) {
                Common.ToastMessageShow(BA.ObjectToCharSequence("Page " + ObjectToString + " not found"), true);
                return BuildConfig.FLAVOR;
            }
            b4xpages._vvvv3(this.ba, ObjectToString);
            return BuildConfig.FLAVOR;
        }
        return BuildConfig.FLAVOR;
    }

    public String _player_complete() throws Exception {
        ((SimpleExoPlayerWrapper) Common.Sender(this.ba)).Release();
        this._simpleexoplayerview1.RemoveView();
        this._webcam_play.setTextColor(this._colour_textlink);
        this._webcam_play.setEnabled(true);
        return BuildConfig.FLAVOR;
    }

    public String _player_error(String str) throws Exception {
        Common.LogImpl("87143426", "video play error: " + str, 0);
        return BuildConfig.FLAVOR;
    }

    public String _pn01_apptitle_update() throws Exception {
        this._pntitle.setColor(this._colour_apptitlebackground);
        this._lbapptitle.setTextColor(this._colour_apptitletext);
        _vvvvvvvvvvvv7(this._lbapptitle, this._vvvvvvvvvvvvvv4, BuildConfig.FLAVOR, true);
        pagesettings pagesettingsVar = new pagesettings();
        pagesettingsVar._initialize(this.ba);
        if (this._vvvvvvvvvvvvvvvvv2.IndexOf("settings") == -1) {
            this._vvvvvvvvvvvvvvvvv2.Add("settings".toLowerCase());
            b4xpages._vv0(this.ba, "settings", pagesettingsVar);
        } else if (this._language_changed) {
            ((pagesettings) b4xpages._vvv5(this.ba, "settings"))._vvvvvvvvvvvvvvvvvvvvvvvvvv7 = true;
        }
        this._lbtitlehamburger.setText(BA.ObjectToCharSequence(Character.valueOf(Common.Chr(58836))));
        this._lbtitlehamburger.setTag("settings");
        this._lbtitlehamburger.setTextColor(this._colour_apptitletext);
        return BuildConfig.FLAVOR;
    }

    public String _pn02_titleimage_update() throws Exception {
        int height = this._pntitleimage.getHeight();
        String ObjectToString = BA.ObjectToString(this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("app_TitleImage"));
        new CanvasWrapper.BitmapWrapper();
        File file = Common.File;
        CanvasWrapper.BitmapWrapper LoadBitmap = Common.LoadBitmap(File.getDirAssets(), "extras/" + ObjectToString);
        B4XViewWrapper b4XViewWrapper = this._ivtitleimage;
        double height2 = (double) (LoadBitmap.getHeight() * this._ivtitleimage.getWidth());
        double width = LoadBitmap.getWidth();
        Double.isNaN(height2);
        Double.isNaN(width);
        b4XViewWrapper.setHeight((int) (height2 / width));
        this._pntitleimage.setHeight(this._ivtitleimage.getHeight());
        this._ivtitleimage.SetBitmap((Bitmap) LoadBitmap.Resize(this._ivtitleimage.getWidth(), this._ivtitleimage.getHeight(), true).getObject());
        int height3 = this._pntitleimage.getHeight() - height;
        if (height3 != 0) {
            _pncontent_adjustpanels(this._pntitleimage, height3);
            return BuildConfig.FLAVOR;
        }
        return BuildConfig.FLAVOR;
    }

    public String _pn03_alert_update() throws Exception {
        int _vvvvvvvvvvvv7;
        String str;
        _vvvvvvvvvvvv7(this._alert_title, "Alert Level", BuildConfig.FLAVOR, true);
        _vvvvvvvvvvv4(this._pnalert, this._alert_level, this._alert_bulletins);
        _vvvvvvvvvvvv7(this._alert_bulletins, "INGV Bulletins", BuildConfig.FLAVOR, true);
        pagewebsite pagewebsiteVar = new pagewebsite();
        pagewebsiteVar._initialize(this.ba, BA.ObjectToString(this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("Volcano_BulletinsUrl")), "INGV Bulletins");
        if (this._vvvvvvvvvvvvvvvvv2.IndexOf("website_bulletins") == -1) {
            this._vvvvvvvvvvvvvvvvv2.Add("website_bulletins");
            b4xpages._vv0(this.ba, "website_bulletins", pagewebsiteVar);
        }
        this._alert_bulletins.setTag("website_bulletins");
        String ObjectToString = BA.ObjectToString(eqdb._v6._vvvvvvvvvvvvvvvvvvvvvvvvvvv6(this._vvvvvvvvvvvvv4, "Volcano_AlertColour"));
        String ObjectToString2 = BA.ObjectToString(eqdb._v6._vvvvvvvvvvvvvvvvvvvvvvvvvvv6(this._vvvvvvvvvvvvv4, "Volcano_AlertLevelDate"));
        int switchObjectToInt = BA.switchObjectToInt(ObjectToString, new Object[]{"Green", "Yellow", "Orange", "Red"});
        if (switchObjectToInt == 0) {
            this._alert_level.SetColorAndBorder(-13447886, Common.DipToCurrent(1), this._colour_border, this._size_cornerradius);
            _vvvvvvvvvvvv7 = _vvvvvvvvvvvv7(this._alert_message, "There are no significant changes in monitored parameters", BuildConfig.FLAVOR, false);
        } else if (switchObjectToInt == 1) {
            B4XViewWrapper b4XViewWrapper = this._alert_level;
            Colors colors = Common.Colors;
            b4XViewWrapper.SetColorAndBorder(-256, Common.DipToCurrent(1), this._colour_border, this._size_cornerradius);
            _vvvvvvvvvvvv7 = _vvvvvvvvvvvv7(this._alert_message, "There are significant changes in monitored parameters", BuildConfig.FLAVOR, false);
        } else if (switchObjectToInt == 2) {
            this._alert_level.SetColorAndBorder(-23296, Common.DipToCurrent(1), this._colour_border, this._size_cornerradius);
            _vvvvvvvvvvvv7 = _vvvvvvvvvvvv7(this._alert_message, "There has been further significant change in monitored parameters", BuildConfig.FLAVOR, false);
        } else if (switchObjectToInt != 3) {
            _vvvvvvvvvvvv7 = 0;
        } else {
            B4XViewWrapper b4XViewWrapper2 = this._alert_level;
            Colors colors2 = Common.Colors;
            b4XViewWrapper2.SetColorAndBorder(-65536, Common.DipToCurrent(1), this._colour_border, this._size_cornerradius);
            _vvvvvvvvvvvv7 = _vvvvvvvvvvvv7(this._alert_message, "Trends of monitored parameters indicate a high probability of eruption", BuildConfig.FLAVOR, false);
        }
        if (_vvvvvvvvvvvv7 != 0) {
            _pncontent_adjustviewsbelow(this._pnalert, this._alert_message, _vvvvvvvvvvvv7);
        }
        if (!ObjectToString2.equals("null")) {
            int indexOf = ObjectToString2.indexOf("/");
            int lastIndexOf = ObjectToString2.lastIndexOf("/");
            String substring = ObjectToString2.substring(0, indexOf);
            String substring2 = ObjectToString2.substring(indexOf + 1, lastIndexOf);
            String substring3 = ObjectToString2.substring(lastIndexOf + 1);
            String ObjectToString3 = Common.IsNumber(substring2) ? BA.ObjectToString(this._vvvvvvvvvvvvvvvvvv5.Get((int) (Double.parseDouble(substring2) - 1.0d))) : BuildConfig.FLAVOR;
            if (Common.IsNumber(substring)) {
                str = ": " + substring + " " + _vvvvvvvvvvvv6(ObjectToString3) + " " + substring3;
            } else {
                str = ": " + _vvvvvvvvvvvv6(ObjectToString3) + " " + substring3;
            }
            _vvvvvvvvvvvv7((B4XViewWrapper) AbsObjectWrapper.ConvertToWrapper(new B4XViewWrapper(), this._alert_changed.getObject()), "Alert changed", str, true);
        } else {
            _vvvvvvvvvvvv7 -= this._alert_changed.getHeight() + (this._alert_changed.getTop() - (this._alert_message.getTop() + this._alert_message.getHeight()));
            this._alert_changed.RemoveView();
        }
        if (_vvvvvvvvvvvv7 != 0) {
            _pncontent_adjustpanels(this._pnalert, _vvvvvvvvvvvv7);
        }
        return BuildConfig.FLAVOR;
    }

    public void _pn04_eruptionhistory_update() throws Exception {
        new ResumableSub_pn04_EruptionHistory_Update(this).resume(this.ba, null);
    }

    public static class ResumableSub_pn04_EruptionHistory_Update extends BA.ResumableSub {
        int limit60;
        b4xmainpage parent;
        int step60;
        SQL _volcsql = null;
        String _qstr = BuildConfig.FLAVOR;
        SQL.ResultSetWrapper _rs = null;
        _anarticleintro _anintro = null;
        byte[] _buffer = null;
        File.InputStreamWrapper _inputstream1 = null;
        float _mints = BitmapDescriptorFactory.HUE_RED;
        _anarticleintro _intro = null;
        int _i = 0;
        B4XViewWrapper _p = null;
        int _textwidth = 0;
        ImageViewWrapper _ivphoto = null;
        LabelWrapper _lbtitle = null;

        public ResumableSub_pn04_EruptionHistory_Update(b4xmainpage b4xmainpageVar) {
            this.parent = b4xmainpageVar;
        }

        public void resume(BA ba, Object[] objArr) throws Exception {
            while (true) {
                switch (this.state) {
                    case -1:
                        return;
                    case 0:
                        this.state = 1;
                        b4xmainpage b4xmainpageVar = this.parent;
                        B4XViewWrapper b4XViewWrapper = b4xmainpageVar._history_title;
                        Common common = this.parent.__c;
                        b4xmainpageVar._vvvvvvvvvvvv7(b4XViewWrapper, "Eruption History", BuildConfig.FLAVOR, true);
                        SQL sql = new SQL();
                        this._volcsql = sql;
                        B4XViewWrapper.XUI xui = this.parent._vvvvvvvvvvvvv3;
                        String defaultFolder = B4XViewWrapper.XUI.getDefaultFolder();
                        String str = this.parent._vvvvvvvvvvvvvvvvvvvvvv0;
                        Common common2 = this.parent.__c;
                        sql.Initialize(defaultFolder, str, false);
                        this._qstr = "Select Item_ID, Title_" + this.parent._vvvvvvvvvvvvvvvvv4 + " as Title, Description_" + this.parent._vvvvvvvvvvvvvvvvv4 + " as Description, Class2, Time_Year, Time_Month, Time_Period, Published, Image From Volcano_History where (Volcano = '" + this.parent._vvvvvvvvvvvvv4 + "') and (Published = 'Yes') Order By Time_Year ASC";
                        this._rs = new SQL.ResultSetWrapper();
                        this._rs = AbsObjectWrapper.ConvertToWrapper(new SQL.ResultSetWrapper(), this._volcsql.ExecQuery(this._qstr));
                        this.parent._vvvvvvvvvvvvvvvvvvvvvv6.Initialize();
                        this.parent._vvvvvvvvvvvvvvvvvvvvvv7.Initialize();
                        break;
                    case 1:
                        this.state = 10;
                        if (!this._rs.NextRow()) {
                            break;
                        } else {
                            this.state = 3;
                            break;
                        }
                    case 3:
                        this.state = 4;
                        _anarticleintro _anarticleintroVar = new _anarticleintro();
                        this._anintro = _anarticleintroVar;
                        _anarticleintroVar.Initialize();
                        this._anintro.id = this._rs.GetString("Item_ID");
                        this._anintro.name = this._rs.GetString("Title");
                        this._anintro.class1 = "Eruptions CE";
                        this._anintro.class2 = this._rs.GetString("Class2");
                        this._anintro.time_year = this._rs.GetInt("Time_Year");
                        this._anintro.time_month = this._rs.GetString("Time_Month");
                        this._anintro.snippet = this._rs.GetString("Description");
                        break;
                    case 4:
                        this.state = 9;
                        if (this._rs.GetBlob("Image") != null) {
                            this.state = 6;
                            break;
                        } else {
                            this.state = 8;
                            break;
                        }
                    case 6:
                        this.state = 9;
                        this._buffer = new byte[0];
                        this._inputstream1 = new File.InputStreamWrapper();
                        byte[] GetBlob = this._rs.GetBlob("Image");
                        this._buffer = GetBlob;
                        this._inputstream1.InitializeFromBytesArray(GetBlob, 0, GetBlob.length);
                        this._anintro.photo.Initialize2((InputStream) this._inputstream1.getObject());
                        this._inputstream1.Close();
                        break;
                    case 8:
                        this.state = 9;
                        _anarticleintro _anarticleintroVar2 = this._anintro;
                        CanvasWrapper.BitmapWrapper bitmapWrapper = new CanvasWrapper.BitmapWrapper();
                        Common common3 = this.parent.__c;
                        _anarticleintroVar2.photo = AbsObjectWrapper.ConvertToWrapper(bitmapWrapper, (Bitmap) Common.Null);
                        break;
                    case 9:
                        this.state = 1;
                        this.parent._vvvvvvvvvvvvvvvvvvvvvv6.Add(this._anintro);
                        this.parent._vvvvvvvvvvvvvvvvvvvvvv7.Add(this._anintro.class2);
                        break;
                    case 10:
                        this.state = 11;
                        b4xmainpage b4xmainpageVar2 = this.parent;
                        Common common4 = b4xmainpageVar2.__c;
                        b4xmainpageVar2._vvvvvvvvvvvvvvvvvvvvvvv1 = Common.Rnd(0, this.parent._vvvvvvvvvvvvvvvvvvvvvv6.getSize());
                        break;
                    case 11:
                        this.state = 18;
                        if (this.parent._vvvvvvvvvvvvvvvvvvvvvvv1 > 0) {
                            this.state = 13;
                            break;
                        } else {
                            this.state = 15;
                            break;
                        }
                    case 13:
                        this.state = 18;
                        this.parent._lbyr1.setText(BA.ObjectToCharSequence(this.parent._vvvvvvvvvvvvvvvvvvvvvv7.Get(this.parent._vvvvvvvvvvvvvvvvvvvvvvv1 - 1)));
                        break;
                    case 15:
                        this.state = 18;
                        this.parent._lbyr1.setText(BA.ObjectToCharSequence(BuildConfig.FLAVOR));
                        break;
                    case 18:
                        this.state = 19;
                        this.parent._lbyr2.setText(BA.ObjectToCharSequence(this.parent._vvvvvvvvvvvvvvvvvvvvvv7.Get(this.parent._vvvvvvvvvvvvvvvvvvvvvvv1)));
                        break;
                    case 19:
                        this.state = 26;
                        if (this.parent._vvvvvvvvvvvvvvvvvvvvvvv1 < this.parent._vvvvvvvvvvvvvvvvvvvvvv7.getSize() - 1) {
                            this.state = 21;
                            break;
                        } else {
                            this.state = 23;
                            break;
                        }
                    case 21:
                        this.state = 26;
                        this.parent._lbyr3.setText(BA.ObjectToCharSequence(this.parent._vvvvvvvvvvvvvvvvvvvvvv7.Get(this.parent._vvvvvvvvvvvvvvvvvvvvvvv1 + 1)));
                        break;
                    case 23:
                        this.state = 26;
                        this.parent._lbyr3.setText(BA.ObjectToCharSequence(BuildConfig.FLAVOR));
                        break;
                    case 26:
                        this.state = 27;
                        b4xmainpage b4xmainpageVar3 = this.parent;
                        b4xmainpageVar3._vvvvvvvvvvv7(b4xmainpageVar3._lbyr2);
                        this._mints = 100.0f;
                        break;
                    case 27:
                        this.state = 32;
                        if (this.parent._lbyr1.getTextSize() >= this._mints) {
                            break;
                        } else {
                            this.state = 29;
                            break;
                        }
                    case 29:
                        this.state = 32;
                        this._mints = this.parent._lbyr1.getTextSize();
                        break;
                    case 32:
                        this.state = 33;
                        break;
                    case 33:
                        this.state = 38;
                        if (this.parent._lbyr2.getTextSize() >= this._mints) {
                            break;
                        } else {
                            this.state = 35;
                            break;
                        }
                    case 35:
                        this.state = 38;
                        this._mints = this.parent._lbyr2.getTextSize();
                        break;
                    case 38:
                        this.state = 39;
                        break;
                    case 39:
                        this.state = 44;
                        if (this.parent._lbyr3.getTextSize() >= this._mints) {
                            break;
                        } else {
                            this.state = 41;
                            break;
                        }
                    case 41:
                        this.state = 44;
                        this._mints = this.parent._lbyr3.getTextSize();
                        break;
                    case 44:
                        this.state = 45;
                        this.parent._lbyr1.setTextSize(this._mints);
                        this.parent._lbyr2.setTextSize(this._mints);
                        this.parent._lbyr3.setTextSize(this._mints);
                        B4XViewWrapper b4XViewWrapper2 = this.parent._lbyr1;
                        Common common5 = this.parent.__c;
                        b4XViewWrapper2.setLeft(Common.DipToCurrent(10));
                        B4XViewWrapper b4XViewWrapper3 = this.parent._lbyr2;
                        double width = this.parent._pntimeselector.getWidth();
                        Double.isNaN(width);
                        double width2 = this.parent._lbyr2.getWidth();
                        Double.isNaN(width2);
                        b4XViewWrapper3.setLeft((int) ((width / 2.0d) - (width2 / 2.0d)));
                        B4XViewWrapper b4XViewWrapper4 = this.parent._lbyr3;
                        int width3 = this.parent._pntimeselector.getWidth();
                        Common common6 = this.parent.__c;
                        b4XViewWrapper4.setLeft((width3 - Common.DipToCurrent(10)) - this.parent._lbyr3.getWidth());
                        break;
                    case 45:
                        this.state = 56;
                        if (this.parent._vvvvvvvvvvvvvvvvvvvvvvv1 == 0) {
                            this.state = 47;
                            break;
                        } else {
                            this.state = 49;
                            break;
                        }
                    case 47:
                        this.state = 56;
                        B4XViewWrapper b4XViewWrapper5 = this.parent._lbarrowleft;
                        Common common7 = this.parent.__c;
                        b4XViewWrapper5.setVisible(true);
                        B4XViewWrapper b4XViewWrapper6 = this.parent._lbarrowright;
                        Common common8 = this.parent.__c;
                        b4XViewWrapper6.setVisible(false);
                        break;
                    case 49:
                        this.state = 50;
                        break;
                    case 50:
                        this.state = 55;
                        if (this.parent._vvvvvvvvvvvvvvvvvvvvvvv1 == this.parent._vvvvvvvvvvvvvvvvvvvvvv7.getSize() - 1) {
                            this.state = 52;
                            break;
                        } else {
                            this.state = 54;
                            break;
                        }
                    case 52:
                        this.state = 55;
                        B4XViewWrapper b4XViewWrapper7 = this.parent._lbarrowleft;
                        Common common9 = this.parent.__c;
                        b4XViewWrapper7.setVisible(false);
                        B4XViewWrapper b4XViewWrapper8 = this.parent._lbarrowright;
                        Common common10 = this.parent.__c;
                        b4XViewWrapper8.setVisible(true);
                        break;
                    case 54:
                        this.state = 55;
                        B4XViewWrapper b4XViewWrapper9 = this.parent._lbarrowleft;
                        Common common11 = this.parent.__c;
                        b4XViewWrapper9.setVisible(true);
                        B4XViewWrapper b4XViewWrapper10 = this.parent._lbarrowright;
                        Common common12 = this.parent.__c;
                        b4XViewWrapper10.setVisible(true);
                        break;
                    case 55:
                        this.state = 56;
                        break;
                    case 56:
                        this.state = 57;
                        b4xmainpage b4xmainpageVar4 = this.parent;
                        b4xmainpageVar4._currentyearidx_old = b4xmainpageVar4._vvvvvvvvvvvvvvvvvvvvvvv1;
                        this._intro = new _anarticleintro();
                        break;
                    case 57:
                        this.state = 70;
                        this.step60 = 1;
                        this.limit60 = this.parent._vvvvvvvvvvvvvvvvvvvvvv6.getSize() - 1;
                        this._i = 0;
                        this.state = 71;
                        break;
                    case 59:
                        this.state = 60;
                        this._intro = (_anarticleintro) this.parent._vvvvvvvvvvvvvvvvvvvvvv6.Get(this._i);
                        this._p = new B4XViewWrapper();
                        B4XViewWrapper.XUI xui2 = this.parent._vvvvvvvvvvvvv3;
                        B4XViewWrapper CreatePanel = B4XViewWrapper.XUI.CreatePanel(ba, BuildConfig.FLAVOR);
                        this._p = CreatePanel;
                        CreatePanel.SetLayoutAnimated(0, 0, 0, this.parent._clvartintro._getbase().getWidth(), this.parent._clvartintro._getbase().getHeight());
                        B4XViewWrapper b4XViewWrapper11 = this._p;
                        Common common13 = this.parent.__c;
                        Colors colors = Common.Colors;
                        b4XViewWrapper11.setColor(-1);
                        this._textwidth = 0;
                        break;
                    case 60:
                        this.state = 65;
                        if (this._intro.photo.IsInitialized()) {
                            this.state = 62;
                            break;
                        } else {
                            this.state = 64;
                            break;
                        }
                    case 62:
                        this.state = 65;
                        ImageViewWrapper imageViewWrapper = new ImageViewWrapper();
                        this._ivphoto = imageViewWrapper;
                        imageViewWrapper.Initialize(ba, BuildConfig.FLAVOR);
                        this._ivphoto.setWidth(this.parent._clvartintro._getbase().getHeight());
                        ImageViewWrapper imageViewWrapper2 = this._ivphoto;
                        imageViewWrapper2.setHeight(imageViewWrapper2.getWidth());
                        ImageViewWrapper imageViewWrapper3 = this._ivphoto;
                        CanvasWrapper.BitmapWrapper bitmapWrapper2 = this._intro.photo;
                        float width4 = this._ivphoto.getWidth();
                        float height = this._ivphoto.getHeight();
                        Common common14 = this.parent.__c;
                        imageViewWrapper3.setBitmap((Bitmap) bitmapWrapper2.Resize(width4, height, false).getObject());
                        B4XViewWrapper b4XViewWrapper12 = this._p;
                        View view = (View) this._ivphoto.getObject();
                        int width5 = this._p.getWidth() - this._ivphoto.getWidth();
                        Common common15 = this.parent.__c;
                        int DipToCurrent = width5 - Common.DipToCurrent(10);
                        Common common16 = this.parent.__c;
                        b4XViewWrapper12.AddView(view, DipToCurrent, Common.DipToCurrent(0), this._ivphoto.getWidth(), this._ivphoto.getHeight());
                        int width6 = this._p.getWidth();
                        Common common17 = this.parent.__c;
                        this._textwidth = (width6 - Common.DipToCurrent(30)) - this._ivphoto.getWidth();
                        break;
                    case 64:
                        this.state = 65;
                        int width7 = this._p.getWidth();
                        Common common18 = this.parent.__c;
                        this._textwidth = width7 - Common.DipToCurrent(20);
                        break;
                    case 65:
                        this.state = 66;
                        LabelWrapper labelWrapper = new LabelWrapper();
                        this._lbtitle = labelWrapper;
                        labelWrapper.Initialize(ba, BuildConfig.FLAVOR);
                        this._lbtitle.setWidth(this._textwidth);
                        this._lbtitle.setHeight(this._p.getHeight());
                        this._lbtitle.setTextSize(17.0f);
                        LabelWrapper labelWrapper2 = this._lbtitle;
                        b4xpages b4xpagesVar = this.parent._vvvvvvvvvv1;
                        labelWrapper2.setTextColor(b4xpages._vvvv1(ba)._colour_textlink);
                        LabelWrapper labelWrapper3 = this._lbtitle;
                        Common common19 = this.parent.__c;
                        Gravity gravity = Common.Gravity;
                        labelWrapper3.setGravity(17);
                        this._lbtitle.setText(BA.ObjectToCharSequence(this._intro.name));
                        break;
                    case 66:
                        this.state = 69;
                        if (this.parent._vvvvvvvvvvvvvvvvvvv4.MeasureMultilineTextHeight((TextView) this._lbtitle.getObject(), BA.ObjectToCharSequence(this._lbtitle.getText())) <= this._lbtitle.getHeight()) {
                            break;
                        } else {
                            this.state = 68;
                            break;
                        }
                    case 68:
                        this.state = 66;
                        LabelWrapper labelWrapper4 = this._lbtitle;
                        labelWrapper4.setTextSize(labelWrapper4.getTextSize() - 1.0f);
                        break;
                    case 69:
                        this.state = 72;
                        B4XViewWrapper b4XViewWrapper13 = this._p;
                        View view2 = (View) this._lbtitle.getObject();
                        Common common20 = this.parent.__c;
                        int DipToCurrent2 = Common.DipToCurrent(10);
                        Common common21 = this.parent.__c;
                        b4XViewWrapper13.AddView(view2, DipToCurrent2, Common.DipToCurrent(0), this._lbtitle.getWidth(), this._lbtitle.getHeight());
                        this.parent._clvartintro._add(this._p, this._intro.id);
                        break;
                    case 70:
                        this.state = -1;
                        this.parent._offset_old = 0;
                        Common common22 = this.parent.__c;
                        Common.Sleep(ba, this, 0);
                        this.state = 73;
                        return;
                    case 71:
                        this.state = 70;
                        int i = this.step60;
                        if ((i > 0 && this._i <= this.limit60) || (i < 0 && this._i >= this.limit60)) {
                            this.state = 59;
                            break;
                        }
                        break;
                    case 72:
                        this.state = 71;
                        this._i += this.step60;
                        break;
                    case 73:
                        this.state = -1;
                        this.parent._clvartintro._scrolltoitem(this.parent._vvvvvvvvvvvvvvvvvvvvvvv1);
                        this.parent._make_timeline();
                        break;
                }
            }
        }
    }

    public String _pn05_hazard_update() throws Exception {
        int i;
        _vvvvvvvvvvvv7(this._hazard_title, "Your Volcanic Hazard Zone", BuildConfig.FLAVOR, true);
        _vvvvvvvvvvv4(this._pnhazard, this._hazard_level, this._hazard_plan);
        _vvvvvvvvvvvv7(this._hazard_plan, "DPC Plan", BuildConfig.FLAVOR, true);
        pagewebsite pagewebsiteVar = new pagewebsite();
        pagewebsiteVar._initialize(this.ba, BA.ObjectToString(this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("Volcano_HazardPlanUrl")), "DPC Plan");
        if (this._vvvvvvvvvvvvvvvvv2.IndexOf("website_dpc_plan") == -1) {
            this._vvvvvvvvvvvvvvvvv2.Add("website_dpc_plan");
            b4xpages._vv0(this.ba, "website_dpc_plan", pagewebsiteVar);
        }
        this._hazard_plan.setTag("website_dpc_plan");
        int switchObjectToInt = BA.switchObjectToInt(this._vvvvvvvvvvvvvvvv6, new Object[]{"Yellow", "Red"});
        if (switchObjectToInt == 0) {
            B4XViewWrapper b4XViewWrapper = this._hazard_level;
            Colors colors = Common.Colors;
            b4XViewWrapper.SetColorAndBorder(-256, Common.DipToCurrent(1), this._colour_border, this._size_cornerradius);
        } else if (switchObjectToInt == 1) {
            B4XViewWrapper b4XViewWrapper2 = this._hazard_level;
            Colors colors2 = Common.Colors;
            b4XViewWrapper2.SetColorAndBorder(-65536, Common.DipToCurrent(1), this._colour_border, this._size_cornerradius);
        }
        this._hazard_message.setText(BA.ObjectToCharSequence(this._vvvvvvvvvvvvv0.ExecQuerySingleResult("Select Advice_" + this._vvvvvvvvvvvvvvvvv4 + " as Advice From Volcano_Hazard_Zones Where Volcano  = '" + this._vvvvvvvvvvvvv4 + "' And Zone = '" + this._vvvvvvvvvvvvvvvv6 + "'")));
        int MeasureMultilineTextHeight = this._vvvvvvvvvvvvvvvvvvv4.MeasureMultilineTextHeight((TextView) this._hazard_message.getObject(), BA.ObjectToCharSequence(this._hazard_message.getText()));
        if (MeasureMultilineTextHeight > this._hazard_message.getHeight()) {
            i = MeasureMultilineTextHeight - this._hazard_message.getHeight();
            this._hazard_message.setHeight(MeasureMultilineTextHeight);
            _pncontent_adjustviewsbelow(this._pnhazard, this._hazard_message, i);
        } else {
            i = 0;
        }
        String ObjectToString = BA.ObjectToString(this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("Vent"));
        StringBuilder sb = new StringBuilder(" ");
        sb.append(ObjectToString);
        sb.append(": ");
        double d = this._vvvvvvvvvvvvvvvv0;
        Double.isNaN(d);
        sb.append(Common.NumberFormat(d / 1000.0d, 0, 1));
        sb.append(" km");
        _vvvvvvvvvvvv7(this._hazard_distance, "Distance from", sb.toString(), true);
        if (i != 0) {
            _pncontent_adjustpanels(this._pnhazard, i);
        }
        return BuildConfig.FLAVOR;
    }

    public String _pn06_webcam_update() throws Exception {
        Common.DipToCurrent(0);
        _vvvvvvvvvvvv7(this._webcam_title, "Webcam View", BuildConfig.FLAVOR, true);
        new Map();
        Map ConvertToWrapper = AbsObjectWrapper.ConvertToWrapper(new Map(), (java.util.Map) this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("Volcano_Cam"));
        this._webcam_timelapse.setTag(ConvertToWrapper.Get("video_filename"));
        int height = this._webcam_image.getHeight();
        B4XViewWrapper b4XViewWrapper = this._webcam_image;
        double ObjectToNumber = BA.ObjectToNumber(ConvertToWrapper.Get("aspect"));
        double width = this._webcam_image.getWidth();
        Double.isNaN(width);
        b4XViewWrapper.setHeight((int) (ObjectToNumber * width));
        int height2 = this._webcam_image.getHeight() - height;
        B4XViewWrapper b4XViewWrapper2 = this._pb_webcam;
        double width2 = this._webcam_image.getWidth();
        Double.isNaN(width2);
        double width3 = this._pb_webcam.getWidth();
        Double.isNaN(width3);
        b4XViewWrapper2.setLeft((int) ((width2 / 2.0d) - (width3 / 2.0d)));
        B4XViewWrapper b4XViewWrapper3 = this._pb_webcam;
        double height3 = this._webcam_image.getHeight();
        Double.isNaN(height3);
        double height4 = this._pb_webcam.getHeight();
        Double.isNaN(height4);
        b4XViewWrapper3.setTop((int) ((height3 / 2.0d) - (height4 / 2.0d)));
        this._webcam_timelapse.setHeight(this._webcam_image.getHeight());
        this._webcam_overlay.setHeight(this._webcam_image.getHeight());
        this._webcam_frame.setHeight(this._webcam_image.getHeight());
        if (height2 != 0) {
            _pncontent_adjustviewsbelow(this._pnwebcam, this._webcam_image, height2);
        } else {
            height2 = 0;
        }
        if (ConvertToWrapper.Get("overlay_filename") != null) {
            new B4XViewWrapper.B4XBitmapWrapper();
            B4XViewWrapper.B4XBitmapWrapper b4XBitmapWrapper = new B4XViewWrapper.B4XBitmapWrapper();
            File file = Common.File;
            B4XViewWrapper.B4XBitmapWrapper ConvertToWrapper2 = AbsObjectWrapper.ConvertToWrapper(b4XBitmapWrapper, (Bitmap) Common.LoadBitmap(File.getDirAssets(), "extras/" + BA.ObjectToString(ConvertToWrapper.Get("overlay_filename"))).getObject());
            B4XViewWrapper b4XViewWrapper4 = this._webcam_overlay;
            b4XViewWrapper4.SetBitmap((Bitmap) ConvertToWrapper2.Resize(b4XViewWrapper4.getWidth(), this._webcam_overlay.getHeight(), true).getObject());
            this._webcam_overlay.setVisible(true);
            _vvvvvvvvvvvv7(this._webcam_overlay_change, "Hide Outline", BuildConfig.FLAVOR, true);
        }
        _vvvvvvvvvvv4(this._pnwebcam, this._webcam_play, this._webcam_overlay_change);
        _vvvvvvvvvvvv7(this._webcam_play, "Play Video", BuildConfig.FLAVOR, true);
        this._webcam_play.setEnabled(false);
        B4XViewWrapper b4XViewWrapper5 = this._webcam_play;
        Colors colors = Common.Colors;
        b4XViewWrapper5.setTextColor(-7829368);
        this._webcam_caption.setText(BA.ObjectToCharSequence(ConvertToWrapper.Get("caption")));
        int height5 = this._webcam_caption.getHeight();
        int MeasureMultilineTextHeight = this._vvvvvvvvvvvvvvvvvvv4.MeasureMultilineTextHeight((TextView) this._webcam_caption.getObject(), BA.ObjectToCharSequence(this._webcam_caption.getText()));
        if (MeasureMultilineTextHeight > this._webcam_caption.getHeight()) {
            this._webcam_caption.setHeight(MeasureMultilineTextHeight);
            int height6 = this._webcam_caption.getHeight() - height5;
            _pncontent_adjustviewsbelow(this._pnwebcam, this._webcam_caption, height6);
            height2 += height6;
        }
        _vvvvvvvvvvvv7(this._webcam_source, HttpHeaders.FROM, " " + BA.ObjectToString(ConvertToWrapper.Get("sponsor")), true);
        pagewebsite pagewebsiteVar = new pagewebsite();
        pagewebsiteVar._initialize(this.ba, BA.ObjectToString(ConvertToWrapper.Get("sponsor_url")), BA.ObjectToString(ConvertToWrapper.Get("sponsor")));
        String str = "website_" + BA.ObjectToString(ConvertToWrapper.Get("sponsor")).toLowerCase();
        if (this._vvvvvvvvvvvvvvvvv2.IndexOf(str) == -1) {
            this._vvvvvvvvvvvvvvvvv2.Add(str);
            b4xpages._vv0(this.ba, str, pagewebsiteVar);
        }
        this._webcam_source.setTag(str);
        _vvvvvvvvvvvv7(this._webcam_updated, "cam video updating", BuildConfig.FLAVOR, true);
        _pncontent_adjustpanels(this._pnwebcam, height2);
        _pn06_webcam_update_video();
        return BuildConfig.FLAVOR;
    }

    public String _pn06_webcam_update_video() throws Exception {
        this._video_lastdownloadtime = 0L;
        if (this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("Video_LastDownload") != null) {
            this._video_lastdownloadtime = BA.ObjectToLongNumber(this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("Video_LastDownload"));
        }
        if (this._video_lastdownloadtime == 999) {
            _vvvvvvvvvvvv7(this._webcam_updated, "error in last video update", BuildConfig.FLAVOR, true);
            this._webcam_play.setEnabled(false);
            B4XViewWrapper b4XViewWrapper = this._webcam_play;
            Colors colors = Common.Colors;
            b4XViewWrapper.setTextColor(-7829368);
        }
        long j = this._video_lastdownloadtime;
        if (j > 0 && j != 999) {
            DateTime dateTime = Common.DateTime;
            double now = DateTime.getNow() - this._video_lastdownloadtime;
            DateTime dateTime2 = Common.DateTime;
            Double.isNaN(now);
            _vvvvvvvvvvvv7(this._webcam_updated, "Video updated", ": " + Common.NumberFormat(now / 3600000.0d, 1, 1) + " " + _vvvvvvvvvvvv6("hours ago"), true);
            this._webcam_play.setTextColor(this._colour_textlink);
            this._webcam_play.setEnabled(true);
        }
        return BuildConfig.FLAVOR;
    }

    public String _pn07_pnchat_update() throws Exception {
        if (this._vvvvvvvvvvvvvvvvvvvvvvv7.getSize() > 0) {
            _vvvvvvvvvvvv7(this._chat_title, "Latest Posts", BuildConfig.FLAVOR, true);
            this._chat_goto.setText(BA.ObjectToCharSequence(_vvvvvvvvvvvv6("Go To Posts")));
            _pn07_write_chats();
            pagechat pagechatVar = new pagechat();
            pagechatVar._initialize(this.ba);
            if (this._vvvvvvvvvvvvvvvvv2.IndexOf("chat") == -1) {
                this._vvvvvvvvvvvvvvvvv2.Add("chat");
                b4xpages._vv0(this.ba, "chat", pagechatVar);
            }
            this._chat_goto.setTag("chat");
        } else {
            _pncontent_remove("chat");
        }
        return BuildConfig.FLAVOR;
    }

    public String _pn07_write_chats() throws Exception {
        B4XViewWrapper.XUI.RegisterDesignerClass(this._vvvvvvvvvvvvvvvvvvvv6);
        if (this._chat_latestchats.getNumberOfViews() > 1) {
            List list = new List();
            list.Initialize();
            int numberOfViews = this._chat_latestchats.getNumberOfViews() - 1;
            for (int i = 1; i <= numberOfViews; i++) {
                new ConcreteViewWrapper();
                list.Add(AbsObjectWrapper.ConvertToWrapper(new ConcreteViewWrapper(), (View) this._chat_latestchats.GetView(i).getObject()).getObject());
            }
            if (list.getSize() > 0) {
                int size = list.getSize() - 1;
                for (int i2 = 0; i2 <= size; i2++) {
                    AbsObjectWrapper.ConvertToWrapper(new ConcreteViewWrapper(), (View) list.Get(i2)).RemoveView();
                }
            }
        }
        int height = this._chat_latestchats.getHeight();
        DateTime dateTime = Common.DateTime;
        DateTime.setDateFormat("dd MMM");
        DateTime dateTime2 = Common.DateTime;
        DateTime.setTimeFormat("HH:mm");
        int size2 = this._vvvvvvvvvvvvvvvvvvvvvvv7.getSize() - 1;
        if (size2 > 2) {
            size2 = 2;
        }
        int i3 = 0;
        for (int i4 = 0; i4 <= size2; i4++) {
            _achat _achatVar = (_achat) this._vvvvvvvvvvvvvvvvvvvvvvv7.Get(i4);
            if (b4xpages._vvvv1(this.ba)._vvvvvvvvvvvvvvvvvvvvvvvv2.IndexOf(Long.valueOf(_achatVar.time1)) == -1) {
                new B4XViewWrapper();
                B4XViewWrapper CreatePanel = B4XViewWrapper.XUI.CreatePanel(this.ba, BuildConfig.FLAVOR);
                CreatePanel.SetLayoutAnimated(0, Common.DipToCurrent(0), Common.DipToCurrent(0), this._chat_latestchats.getWidth(), Common.DipToCurrent(60));
                CreatePanel.LoadLayout("layout_pnchatcell", this.ba);
                this._vvvvvvvvvvvvvvvvvvvv6._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1(CreatePanel, "lbAuthor").setText(BA.ObjectToCharSequence(_achatVar.author));
                this._vvvvvvvvvvvvvvvvvvvv6._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1(CreatePanel, "lbAuthor").setWidth(_get_textwidth(this._vvvvvvvvvvvvvvvvvvvv6._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1(CreatePanel, "lbAuthor")));
                B4XViewWrapper _vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1 = this._vvvvvvvvvvvvvvvvvvvv6._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1(CreatePanel, "lbTime");
                StringBuilder sb = new StringBuilder();
                DateTime dateTime3 = Common.DateTime;
                sb.append(DateTime.Date(_achatVar.time1));
                sb.append(" ");
                DateTime dateTime4 = Common.DateTime;
                sb.append(DateTime.Time(_achatVar.time1));
                _vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1.setText(BA.ObjectToCharSequence(sb.toString()));
                this._vvvvvvvvvvvvvvvvvvvv6._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1(CreatePanel, "lbTime").setWidth(_get_textwidth(this._vvvvvvvvvvvvvvvvvvvv6._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1(CreatePanel, "lbTime")));
                this._vvvvvvvvvvvvvvvvvvvv6._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1(CreatePanel, "lbTime").setLeft((this._vvvvvvvvvvvvvvvvvvvv6._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1(CreatePanel, "pnMsg").getWidth() - this._vvvvvvvvvvvvvvvvvvvv6._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1(CreatePanel, "lbTime").getWidth()) - Common.DipToCurrent(5));
                this._vvvvvvvvvvvvvvvvvvvv6._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1(CreatePanel, "lbText").setText(BA.ObjectToCharSequence(_achatVar.text));
                this._vvvvvvvvvvvvvvvvvvvv6._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1(CreatePanel, "lbText").setHeight(this._vvvvvvvvvvvvvvvvvvv4.MeasureMultilineTextHeight((TextView) this._vvvvvvvvvvvvvvvvvvvv6._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1(CreatePanel, "lbText").getObject(), BA.ObjectToCharSequence(this._vvvvvvvvvvvvvvvvvvvv6._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1(CreatePanel, "lbText").getText())) + Common.DipToCurrent(5));
                this._vvvvvvvvvvvvvvvvvvvv6._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1(CreatePanel, "pnMsg").setHeight(this._vvvvvvvvvvvvvvvvvvvv6._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1(CreatePanel, "lbAuthor").getHeight() + this._vvvvvvvvvvvvvvvvvvvv6._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1(CreatePanel, "lbText").getHeight() + Common.DipToCurrent(10));
                CreatePanel.setHeight(this._vvvvvvvvvvvvvvvvvvvv6._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1(CreatePanel, "pnMsg").getHeight());
                this._vvvvvvvvvvvvvvvvvvvv6._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1(CreatePanel, "baseline").setTop(this._vvvvvvvvvvvvvvvvvvvv6._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1(CreatePanel, "pnMsg").getHeight() - this._vvvvvvvvvvvvvvvvvvvv6._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1(CreatePanel, "baseline").getHeight());
                i3 += CreatePanel.getHeight();
                this._chat_latestchats.setHeight(this._chat_topline.getHeight() + i3);
                this._chat_latestchats.AddView((View) CreatePanel.getObject(), 0, this._chat_latestchats.getHeight() - CreatePanel.getHeight(), CreatePanel.getWidth(), CreatePanel.getHeight());
            }
        }
        int height2 = this._chat_latestchats.getHeight() - height;
        B4XViewWrapper b4XViewWrapper = this._chat_goto;
        b4XViewWrapper.setTop(b4XViewWrapper.getTop() + height2);
        B4XViewWrapper b4XViewWrapper2 = this._pnchat;
        b4XViewWrapper2.setHeight(b4XViewWrapper2.getHeight() + height2);
        if (height2 != 0) {
            _pncontent_adjustpanels(this._pnchat, height2);
        }
        return BuildConfig.FLAVOR;
    }

    public java.lang.String _pn08_todaylist_adjustline1() throws java.lang.Exception {
        throw new UnsupportedOperationException("Method not decompiled: com.volcanex.vesuvius.b4xmainpage._pn08_todaylist_adjustline1():java.lang.String");
    }

    public List _pn08_todaylist_filterlist() throws Exception {
        double d;
        int i;
        int i2;
        double d2;
        List list = new List();
        list.Initialize();
        int i3 = 30;
        if (this._v5.getSize() > 30) {
            List list2 = new List();
            list2.Initialize();
            DateTime dateTime = Common.DateTime;
            long now = DateTime.getNow();
            DateTime dateTime2 = Common.DateTime;
            long j = now - 3600000;
            int size = this._v5.getSize() - 1;
            double d3 = 0.0d;
            int i4 = 0;
            while (true) {
                d = 999.0d;
                if (i4 > size) {
                    break;
                }
                _aneq _aneqVar = (_aneq) this._v5.Get(i4);
                if (_aneqVar.magnitude == 999.0d) {
                    if (_aneqVar.timeUTC < j) {
                        list2.Add(Integer.valueOf(i4));
                    }
                } else if (_aneqVar.magnitude > d3) {
                    d3 = _aneqVar.magnitude;
                }
                i4++;
            }
            if (list2.getSize() > 0) {
                list2.Sort(true);
                i = 0;
                i2 = (int) BA.ObjectToNumber(list2.Get(0));
            } else {
                i = 0;
                i2 = 10000;
            }
            int size2 = this._v5.getSize();
            double d4 = -0.1d;
            long j2 = 0;
            long j3 = 0;
            int i5 = 0;
            int i6 = 0;
            while (size2 > i3) {
                list.Clear();
                int size3 = this._v5.getSize() - 1;
                long j4 = 0;
                long j5 = 0;
                int i7 = 0;
                int i8 = 0;
                int i9 = 0;
                int i10 = 0;
                while (i9 <= size3) {
                    _aneq _aneqVar2 = (_aneq) this._v5.Get(i9);
                    double d5 = d3;
                    int i11 = size3;
                    if (_aneqVar2.magnitude == d) {
                        if (i9 <= i2) {
                            i8++;
                            j4 = _aneqVar2.timeUTC;
                        } else {
                            list.Add(_aneqVar2);
                            i7++;
                        }
                    } else if (_aneqVar2.magnitude != d) {
                        d2 = d4;
                        if (_aneqVar2.magnitude > d2) {
                            list.Add(_aneqVar2);
                        } else if (_aneqVar2.timeUTC <= j) {
                            i10++;
                            j5 = _aneqVar2.timeUTC;
                            i9++;
                            size3 = i11;
                            d4 = d2;
                            d3 = d5;
                            i3 = 30;
                            d = 999.0d;
                        } else {
                            list.Add(_aneqVar2);
                        }
                        i7++;
                        i9++;
                        size3 = i11;
                        d4 = d2;
                        d3 = d5;
                        i3 = 30;
                        d = 999.0d;
                    }
                    d2 = d4;
                    i9++;
                    size3 = i11;
                    d4 = d2;
                    d3 = d5;
                    i3 = 30;
                    d = 999.0d;
                }
                double d6 = d3;
                double d7 = d4;
                if (i7 > i3) {
                    if (i < list2.getSize() - 1) {
                        i++;
                        i2 = (int) BA.ObjectToNumber(list2.Get(i));
                    } else {
                        d4 = d7 + 0.1d;
                        if (d4 == d6) {
                            size2 = this._v5.getSize();
                            DateTime dateTime3 = Common.DateTime;
                            j -= 600000;
                            i5 = i8;
                            d4 = -0.1d;
                            i6 = i10;
                            j2 = j4;
                            j3 = j5;
                            d3 = d6;
                            d = 999.0d;
                        } else {
                            size2 = i7;
                            i5 = i8;
                            i6 = i10;
                            j2 = j4;
                            j3 = j5;
                            d3 = d6;
                            d = 999.0d;
                        }
                    }
                }
                size2 = i7;
                d4 = d7;
                i5 = i8;
                i6 = i10;
                j2 = j4;
                j3 = j5;
                d3 = d6;
                d = 999.0d;
            }
            double d8 = d4;
            if (i5 <= 0 && i6 <= 0) {
                return list;
            }
            if (i5 > 0) {
                DateTime dateTime4 = Common.DateTime;
                double now2 = DateTime.getNow() - j2;
                DateTime dateTime5 = Common.DateTime;
                Double.isNaN(now2);
                String str = BA.NumberToString(i5) + " " + _vvvvvvvvvvvv6("older than") + " " + Common.NumberFormat(now2 / 3600000.0d, 1, 1) + " " + _vvvvvvvvvvvv6("hours");
                CSBuilder cSBuilder = new CSBuilder();
                cSBuilder.Initialize().Color(-5103070).Append(BA.ObjectToCharSequence(_vvvvvvvvvvvv6("automatic"))).Append(BA.ObjectToCharSequence(": ")).Pop().Append(BA.ObjectToCharSequence(str)).PopAll();
                this._lbndremoved.setText(BA.ObjectToCharSequence(cSBuilder.getObject()));
            }
            if (i6 <= 0) {
                return list;
            }
            DateTime dateTime6 = Common.DateTime;
            double now3 = DateTime.getNow() - j3;
            DateTime dateTime7 = Common.DateTime;
            Double.isNaN(now3);
            String str2 = BA.NumberToString(i6) + " " + _vvvvvvvvvvvv6("older than") + " " + Common.NumberFormat(now3 / 3600000.0d, 1, 1) + " " + _vvvvvvvvvvvv6("hours");
            CSBuilder cSBuilder2 = new CSBuilder();
            cSBuilder2.Initialize().Color(-5103070).Append(BA.ObjectToCharSequence(_vvvvvvvvvvvv6("magnitude up to") + " " + Common.NumberFormat(d8, 1, 1))).Append(BA.ObjectToCharSequence(": ")).Pop().Append(BA.ObjectToCharSequence(str2)).PopAll();
            this._lbmagremoved.setText(BA.ObjectToCharSequence(cSBuilder2.getObject()));
            return list;
        }
        return this._v5;
    }

    public Map _pn08_todaylist_makecell(_aneq _aneqVar) throws Exception {
        B4XViewWrapper.XUI.RegisterDesignerClass(this._vvvvvvvvvvvvvvvvvvvv6);
        new B4XViewWrapper();
        B4XViewWrapper CreatePanel = B4XViewWrapper.XUI.CreatePanel(this.ba, BuildConfig.FLAVOR);
        CreatePanel.setWidth(this._events_clv._getbase().getWidth());
        CreatePanel.setHeight(Common.DipToCurrent(100));
        CreatePanel.setTag(Integer.valueOf(_aneqVar.eventID));
        CreatePanel.LoadLayout("layout_eventcell", this.ba);
        CreatePanel.setHeight(this._vvvvvvvvvvvvvvvvvvvv6._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1(CreatePanel, "evt_bkgd").getHeight());
        B4XViewWrapper _vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1 = this._vvvvvvvvvvvvvvvvvvvv6._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1(CreatePanel, "evt_time");
        StringBuilder sb = new StringBuilder();
        DateTime dateTime = Common.DateTime;
        sb.append(DateTime.Date(_aneqVar.timeUTC));
        sb.append(" ");
        DateTime dateTime2 = Common.DateTime;
        sb.append(DateTime.Time(_aneqVar.timeUTC));
        sb.append(" ");
        sb.append(this._volcano_timezonename);
        _vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1.setText(BA.ObjectToCharSequence(sb.toString()));
        this._vvvvvvvvvvvvvvvvvvvv6._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1(CreatePanel, "evt_time").setWidth(_get_textwidth(this._vvvvvvvvvvvvvvvvvvvv6._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1(CreatePanel, "evt_time")));
        this._vvvvvvvvvvvvvvvvvvvv6._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1(CreatePanel, "evt_time").setLeft(Common.DipToCurrent(10));
        this._vvvvvvvvvvvvvvvvvvvv6._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1(CreatePanel, "evt_timeago").setLeft(this._vvvvvvvvvvvvvvvvvvvv6._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1(CreatePanel, "evt_time").getLeft() + this._vvvvvvvvvvvvvvvvvvvv6._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1(CreatePanel, "evt_time").getWidth() + Common.DipToCurrent(5));
        this._vvvvvvvvvvvvvvvvvvvv6._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1(CreatePanel, "evt_status").setText(BA.ObjectToCharSequence("#" + BA.NumberToString(_aneqVar.eventID) + " (" + _vvvvvvvvvvvv6(_aneqVar.status) + ")"));
        this._vvvvvvvvvvvvvvvvvvvv6._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1(CreatePanel, "evt_status").setWidth(_get_textwidth(this._vvvvvvvvvvvvvvvvvvvv6._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1(CreatePanel, "evt_status")));
        this._vvvvvvvvvvvvvvvvvvvv6._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1(CreatePanel, "evt_status").setLeft((CreatePanel.getWidth() - Common.DipToCurrent(10)) - this._vvvvvvvvvvvvvvvvvvvv6._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1(CreatePanel, "evt_status").getWidth());
        if (_aneqVar.depth == 999.0d) {
            this._vvvvvvvvvvvvvvvvvvvv6._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1(CreatePanel, "evt_depth").setText(BA.ObjectToCharSequence("??"));
        } else if (_aneqVar.status.equals("revised")) {
            this._vvvvvvvvvvvvvvvvvvvv6._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1(CreatePanel, "evt_depth").setText(BA.ObjectToCharSequence(Common.NumberFormat2(_aneqVar.depth, 1, 1, 1, false) + " km"));
        } else {
            this._vvvvvvvvvvvvvvvvvvvv6._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1(CreatePanel, "evt_depth").setText(BA.ObjectToCharSequence("??"));
        }
        this._vvvvvvvvvvvvvvvvvvvv6._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1(CreatePanel, "evt_depth").setWidth(this._lbhead_depth.getWidth());
        this._vvvvvvvvvvvvvvvvvvvv6._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1(CreatePanel, "evt_depth").setLeft(this._lbhead_depth.getLeft());
        if (_aneqVar.magnitude == 999.0d) {
            this._vvvvvvvvvvvvvvvvvvvv6._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1(CreatePanel, "evt_magnitude").setText(BA.ObjectToCharSequence("??"));
        } else {
            this._vvvvvvvvvvvvvvvvvvvv6._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1(CreatePanel, "evt_magnitude").setText(BA.ObjectToCharSequence(Common.NumberFormat2(_aneqVar.magnitude, 1, 1, 1, false) + " ± 0.3"));
            B4XViewWrapper _vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv12 = this._vvvvvvvvvvvvvvvvvvvv6._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1(CreatePanel, "evt_distance");
            Colors colors = Common.Colors;
            _vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv12.setTextColor(-16777216);
            B4XViewWrapper _vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv13 = this._vvvvvvvvvvvvvvvvvvvv6._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1(CreatePanel, "evt_depth");
            Colors colors2 = Common.Colors;
            _vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv13.setTextColor(-16777216);
            B4XViewWrapper _vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv14 = this._vvvvvvvvvvvvvvvvvvvv6._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1(CreatePanel, "evt_magnitude");
            Colors colors3 = Common.Colors;
            _vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv14.setTextColor(-16777216);
            B4XViewWrapper _vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv15 = this._vvvvvvvvvvvvvvvvvvvv6._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1(CreatePanel, "evt_feltnum");
            Colors colors4 = Common.Colors;
            _vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv15.setTextColor(-16777216);
        }
        this._vvvvvvvvvvvvvvvvvvvv6._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1(CreatePanel, "evt_magnitude").setWidth(this._lbhead_magnitude.getWidth());
        this._vvvvvvvvvvvvvvvvvvvv6._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1(CreatePanel, "evt_magnitude").setLeft(this._lbhead_magnitude.getLeft());
        if (_aneqVar.magnitude >= 1.5d && _aneqVar.magnitude != 999.0d) {
            this._vvvvvvvvvvvvvvvvvvvv6._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1(CreatePanel, "evt_magnitude").setTextColor(-5103070);
        }
        this._vvvvvvvvvvvvvvvvvvvv6._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1(CreatePanel, "evt_feltnum").setText(BA.ObjectToCharSequence("0"));
        this._vvvvvvvvvvvvvvvvvvvv6._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1(CreatePanel, "evt_feltnum").setWidth(this._lbhead_reports.getWidth());
        this._vvvvvvvvvvvvvvvvvvvv6._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1(CreatePanel, "evt_feltnum").setLeft(this._lbhead_reports.getLeft());
        String str = "map_" + BA.NumberToString(_aneqVar.eventID);
        if (this._vvvvvvvvvvvvvvvvv2.IndexOf(str) != -1) {
            pagemap pagemapVar = (pagemap) b4xpages._vvv5(this.ba, str);
            if (pagemapVar._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1) {
                pagemapVar._gmap_ploteqs();
            }
        } else if (_aneqVar.latitude != 999.0d && _aneqVar.longitude != 999.0d) {
            pagemap pagemapVar2 = new pagemap();
            pagemapVar2._initialize(this.ba, _aneqVar.eventID);
            this._vvvvvvvvvvvvvvvvv2.Add(str.toLowerCase());
            b4xpages._vv0(this.ba, str, pagemapVar2);
        } else {
            str = "nomap_" + BA.NumberToString(_aneqVar.eventID);
        }
        Map map = new Map();
        map.Initialize();
        map.Put(str, CreatePanel.getObject());
        return map;
    }

    public String _pn08_todaylist_spaceheader() throws Exception {
        if (this._lbhead_distance.getVisible()) {
            _vvvvvvvvvvv6(this._pnheader, this._lbhead_distance, this._lbhead_depth, this._lbhead_magnitude, this._lbhead_reports);
        } else {
            _vvvvvvvvvvv5(this._pnheader, this._lbhead_depth, this._lbhead_magnitude, this._lbhead_reports);
        }
        if (this._lbhead_distance.getVisible()) {
            _vvvvvvvvvvvv7(this._lbhead_distance, "distance", BuildConfig.FLAVOR, true);
        }
        _vvvvvvvvvvvv7(this._lbhead_depth, "depth", BuildConfig.FLAVOR, true);
        _vvvvvvvvvvvv7(this._lbhead_magnitude, "magnitude", BuildConfig.FLAVOR, true);
        _vvvvvvvvvvvv7(this._lbhead_reports, "reports", BuildConfig.FLAVOR, true);
        float f = 100.0f;
        if (this._lbhead_distance.getVisible() && this._lbhead_distance.getTextSize() < 100.0f) {
            f = this._lbhead_distance.getTextSize();
        }
        if (this._lbhead_depth.getTextSize() < f) {
            f = this._lbhead_depth.getTextSize();
        }
        if (this._lbhead_magnitude.getTextSize() < f) {
            f = this._lbhead_magnitude.getTextSize();
        }
        if (this._lbhead_reports.getTextSize() < f) {
            f = this._lbhead_reports.getTextSize();
        }
        if (this._lbhead_distance.getVisible()) {
            this._lbhead_distance.setTextSize(f);
        }
        this._lbhead_depth.setTextSize(f);
        this._lbhead_magnitude.setTextSize(f);
        this._lbhead_reports.setTextSize(f);
        return BuildConfig.FLAVOR;
    }

    public java.lang.String _pn08_todaylist_update() throws java.lang.Exception {
        throw new UnsupportedOperationException("Method not decompiled: com.volcanex.vesuvius.b4xmainpage._pn08_todaylist_update():java.lang.String");
    }

    public String _pn08_todaylist_updatedistancefrom(B4XViewWrapper b4XViewWrapper, _aneq _aneqVar) throws Exception {
        if (_aneqVar.latitude != 999.0d && _aneqVar.longitude != 999.0d) {
            LocationFWrapper locationFWrapper = new LocationFWrapper();
            locationFWrapper.Initialize();
            locationFWrapper.setLatitude(_aneqVar.latitude);
            locationFWrapper.setLongitude(_aneqVar.longitude);
            double DistanceTo = this._vvvvvvvvvvvvvvvv7.DistanceTo(locationFWrapper);
            Double.isNaN(DistanceTo);
            float f = (float) (DistanceTo / 1000.0d);
            this._vvvvvvvvvvvvvvvvvvvv6._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1(b4XViewWrapper, "evt_distance").setText(BA.ObjectToCharSequence(Common.NumberFormat2(f, 1, 1, 1, false) + " km"));
        } else {
            this._vvvvvvvvvvvvvvvvvvvv6._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1(b4XViewWrapper, "evt_distance").setText(BA.ObjectToCharSequence("nd"));
        }
        this._vvvvvvvvvvvvvvvvvvvv6._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1(b4XViewWrapper, "evt_distance").setWidth(this._lbhead_distance.getWidth());
        this._vvvvvvvvvvvvvvvvvvvv6._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1(b4XViewWrapper, "evt_distance").setLeft(this._lbhead_distance.getLeft());
        this._vvvvvvvvvvvvvvvvvvvv6._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1(b4XViewWrapper, "evt_distance").setTextSize(this._lbhead_depth.getTextSize());
        this._vvvvvvvvvvvvvvvvvvvv6._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1(b4XViewWrapper, "evt_depth").setWidth(this._lbhead_depth.getWidth());
        this._vvvvvvvvvvvvvvvvvvvv6._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1(b4XViewWrapper, "evt_depth").setLeft(this._lbhead_depth.getLeft());
        this._vvvvvvvvvvvvvvvvvvvv6._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1(b4XViewWrapper, "evt_depth").setTextSize(this._lbhead_depth.getTextSize());
        this._vvvvvvvvvvvvvvvvvvvv6._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1(b4XViewWrapper, "evt_magnitude").setWidth(this._lbhead_magnitude.getWidth());
        this._vvvvvvvvvvvvvvvvvvvv6._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1(b4XViewWrapper, "evt_magnitude").setLeft(this._lbhead_magnitude.getLeft());
        this._vvvvvvvvvvvvvvvvvvvv6._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1(b4XViewWrapper, "evt_magnitude").setTextSize(this._lbhead_depth.getTextSize());
        this._vvvvvvvvvvvvvvvvvvvv6._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1(b4XViewWrapper, "evt_feltnum").setWidth(this._lbhead_reports.getWidth());
        this._vvvvvvvvvvvvvvvvvvvv6._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1(b4XViewWrapper, "evt_feltnum").setLeft(this._lbhead_reports.getLeft());
        this._vvvvvvvvvvvvvvvvvvvv6._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1(b4XViewWrapper, "evt_feltnum").setTextSize(this._lbhead_depth.getTextSize());
        return BuildConfig.FLAVOR;
    }

    public String _pn08_todaylist_updatefeltreports() throws Exception {
        if (this._events_clv.IsInitialized() && this._events_clv._getsize() > 0 && this._vvvvvvvvvvvvvvv3._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv4.getSize() > 0) {
            int _getsize = this._events_clv._getsize() - 1;
            for (int i = 0; i <= _getsize; i++) {
                new B4XViewWrapper();
                B4XViewWrapper _getpanel = this._events_clv._getpanel(i);
                int ObjectToNumber = (int) BA.ObjectToNumber(_getpanel.getTag());
                int size = this._v5.getSize() - 1;
                while (true) {
                    if (size >= 0) {
                        _aneq _aneqVar = (_aneq) this._v5.Get(size);
                        if (_aneqVar.eventID == ObjectToNumber) {
                            int _feltreports_getnum = _feltreports_getnum(_aneqVar.eventID);
                            this._vvvvvvvvvvvvvvvvvvvv6._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1(_getpanel, "evt_feltnum").setText(BA.ObjectToCharSequence(Integer.valueOf(_feltreports_getnum)));
                            String str = "map_" + BA.NumberToString(ObjectToNumber);
                            if (this._vvvvvvvvvvvvvvvvv2.IndexOf(str) != -1) {
                                pagemap pagemapVar = (pagemap) b4xpages._vvv5(this.ba, str);
                                if (pagemapVar.IsInitialized()) {
                                    pagemapVar._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv2 = _feltreports_getnum;
                                }
                            }
                        } else {
                            size--;
                        }
                    }
                }
            }
            return BuildConfig.FLAVOR;
        }
        return BuildConfig.FLAVOR;
    }

    public String _pn08_todaylist_updatetimeago() throws Exception {
        int i;
        String str;
        int _getsize = this._events_clv._getsize() - 1;
        int i2 = 0;
        int i3 = 0;
        while (i3 <= _getsize) {
            new B4XViewWrapper();
            B4XViewWrapper _getpanel = this._events_clv._getpanel(i3);
            int ObjectToNumber = (int) BA.ObjectToNumber(_getpanel.getTag());
            int size = this._v5.getSize() - 1;
            while (true) {
                if (size < 0) {
                    i = i3;
                    break;
                }
                _aneq _aneqVar = (_aneq) this._v5.Get(size);
                if (_aneqVar.eventID == ObjectToNumber) {
                    BA ba = this.ba;
                    long j = _aneqVar.timeUTC;
                    DateTime dateTime = Common.DateTime;
                    dateutils._period _periodbetween = dateutils._periodbetween(ba, j, DateTime.getNow());
                    if (_periodbetween.Days == 0) {
                        if (_periodbetween.Hours == 0) {
                            double d = _periodbetween.Minutes;
                            double d2 = _periodbetween.Seconds;
                            Double.isNaN(d2);
                            Double.isNaN(d);
                            double Round2 = Common.Round2(d + (d2 / 60.0d), i2);
                            if (Round2 == 1.0d) {
                                str = Common.NumberFormat(Round2, 1, i2) + " " + _vvvvvvvvvvvv6("minute");
                            } else if (Round2 == 60.0d) {
                                str = "1 " + _vvvvvvvvvvvv6("hour");
                            } else {
                                str = Common.NumberFormat(Round2, 1, i2) + " " + _vvvvvvvvvvvv6("minutes");
                            }
                            i = i3;
                        } else {
                            i = i3;
                            double d3 = _periodbetween.Hours;
                            double d4 = _periodbetween.Minutes;
                            Double.isNaN(d4);
                            Double.isNaN(d3);
                            double d5 = _periodbetween.Seconds;
                            Double.isNaN(d5);
                            double Round22 = Common.Round2(d3 + (d4 / 60.0d) + (d5 / 3600.0d), 1);
                            if (Round22 == 1.0d) {
                                str = Common.NumberFormat(Round22, 1, 1) + " " + _vvvvvvvvvvvv6("hour");
                            } else if (Round22 == 24.0d) {
                                str = "1 " + _vvvvvvvvvvvv6("day");
                            } else {
                                str = Common.NumberFormat(Round22, 1, 1) + " " + _vvvvvvvvvvvv6("hours");
                            }
                        }
                    } else {
                        i = i3;
                        double d6 = _periodbetween.Days;
                        double d7 = _periodbetween.Hours;
                        Double.isNaN(d7);
                        Double.isNaN(d6);
                        double d8 = d6 + (d7 / 24.0d);
                        double d9 = _periodbetween.Minutes;
                        Double.isNaN(d9);
                        double d10 = _periodbetween.Seconds;
                        Double.isNaN(d10);
                        double Round23 = Common.Round2(d8 + (d9 / 1440.0d) + (d10 / 86400.0d), 1);
                        if (Round23 == 1.0d) {
                            str = Common.NumberFormat(Round23, 1, 1) + " " + _vvvvvvvvvvvv6("day");
                        } else {
                            str = Common.NumberFormat(Round23, 1, 1) + " " + _vvvvvvvvvvvv6("days");
                        }
                    }
                    this._vvvvvvvvvvvvvvvvvvvv6._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1(_getpanel, "evt_timeago").setText(BA.ObjectToCharSequence("(" + str + ")"));
                    this._vvvvvvvvvvvvvvvvvvvv6._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1(_getpanel, "evt_timeago").setWidth(_get_textwidth(this._vvvvvvvvvvvvvvvvvvvv6._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1(_getpanel, "evt_timeago")));
                } else {
                    size--;
                    i2 = 0;
                }
            }
            i3 = i + 1;
            i2 = 0;
        }
        return BuildConfig.FLAVOR;
    }

    public com.volcanex.vesuvius.b4xmainpage._aplotpoint _pn09_todaymap_getplotpoint(double r25, double r27, double r29, long r31, double r33, double r35) throws java.lang.Exception {
        throw new UnsupportedOperationException("Method not decompiled: com.volcanex.vesuvius.b4xmainpage._pn09_todaymap_getplotpoint(double, double, double, long, double, double):com.volcanex.vesuvius.b4xmainpage$_aplotpoint");
    }

    public Common.ResumableSubWrapper _pn09_todaymap_plotbitmaps() throws Exception {
        ResumableSub_pn09_TodayMap_plotBitmaps resumableSub_pn09_TodayMap_plotBitmaps = new ResumableSub_pn09_TodayMap_plotBitmaps(this);
        resumableSub_pn09_TodayMap_plotBitmaps.resume(this.ba, null);
        return AbsObjectWrapper.ConvertToWrapper(new Common.ResumableSubWrapper(), resumableSub_pn09_TodayMap_plotBitmaps);
    }

    public static class ResumableSub_pn09_TodayMap_plotBitmaps extends BA.ResumableSub {
        int limit116;
        int limit127;
        int limit138;
        int limit95;
        int limit98;
        b4xmainpage parent;
        int step116;
        int step127;
        int step138;
        int step95;
        int step98;
        B4XViewWrapper.B4XBitmapWrapper _bmr = null;
        int _x = 0;
        int _y = 0;
        geodesic _g = null;
        geodesic._latlon _ll = null;
        List _plotpoints = null;
        List _eqselected = null;
        double _minmag = 0.0d;
        double _maxmag = 0.0d;
        double _mindepth = 0.0d;
        double _maxdepth = 0.0d;
        int _i = 0;
        List _eqlist = null;
        int _j = 0;
        _aneq _eq = null;
        geodesic._utm _u = null;
        _aplotpoint _pp1 = null;
        B4XViewWrapper.B4XFont _elevfont = null;
        int _d = 0;
        int _dkm = 0;
        int _mostrecenteq_id = 0;
        _aplotpoint _pp2 = null;
        CanvasWrapper.PathWrapper _p = null;
        _aplotpoint _pp3 = null;

        public ResumableSub_pn09_TodayMap_plotBitmaps(b4xmainpage b4xmainpageVar) {
            this.parent = b4xmainpageVar;
        }

        public void resume(BA ba, Object[] objArr) throws Exception {
            while (true) {
                switch (this.state) {
                    case -1:
                        Common common = this.parent.__c;
                        Common.ReturnFromResumableSub(this, (Object) null);
                        return;
                    case 0:
                        this.state = 1;
                        continue;
                    case 1:
                        this.state = 6;
                        if (this.parent._vvvvvvvvvvvvvvvvvvvvvv2 == 360) {
                            this.state = 3;
                        } else {
                            continue;
                        }
                    case 3:
                        this.state = 6;
                        this.parent._vvvvvvvvvvvvvvvvvvvvvv2 = 0;
                        continue;
                    case 6:
                        this.state = 7;
                        this._bmr = new B4XViewWrapper.B4XBitmapWrapper();
                        B4XViewWrapper.B4XBitmapWrapper Rotate = this.parent._vvvvvvvvvvvvvvvvvvvvvv5.Rotate(this.parent._vvvvvvvvvvvvvvvvvvvvvv2);
                        this._bmr = Rotate;
                        double width = Rotate.getWidth() / 2.0d;
                        double width2 = this.parent._events_map.getWidth();
                        Double.isNaN(width2);
                        int i = (int) (width - (width2 / 2.0d));
                        this._x = i;
                        this._y = i;
                        this.parent._events_map.SetBitmap((Bitmap) this._bmr.Crop(this._x, this._y, this.parent._events_map.getWidth(), this.parent._events_map.getHeight()).getObject());
                        this.parent._vvvvvvvvvvvvvvvvvvvvvv3.Initialize(this.parent._events_map);
                        this.parent._vvvvvvvvvvvvvvvvvvvvvv4.Initialize(this.parent._events_plot);
                        this.parent._vvvvvvvvvvvvvvvvvvvvvv4.ClearRect(this.parent._vvvvvvvvvvvvvvvvvvvvvv4.getTargetRect());
                        geodesic geodesicVar = new geodesic();
                        this._g = geodesicVar;
                        geodesicVar._initialize(ba);
                        geodesic._latlon _latlonVar = new geodesic._latlon();
                        this._ll = _latlonVar;
                        _latlonVar.Initialize();
                        List list = new List();
                        this._plotpoints = list;
                        list.Initialize();
                        List list2 = new List();
                        this._eqselected = list2;
                        list2.Initialize();
                        continue;
                    case 7:
                        this.state = 18;
                        int switchObjectToInt = BA.switchObjectToInt(Integer.valueOf(this.parent._cb_selectperiod._getvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv2()), new Object[]{0, 1, 2, 3, 4});
                        if (switchObjectToInt == 0) {
                            this.state = 9;
                            break;
                        } else if (switchObjectToInt == 1) {
                            this.state = 11;
                            break;
                        } else if (switchObjectToInt == 2) {
                            this.state = 13;
                            break;
                        } else if (switchObjectToInt == 3) {
                            this.state = 15;
                            break;
                        } else if (switchObjectToInt == 4) {
                            this.state = 17;
                            break;
                        }
                        break;
                    case 9:
                        this.state = 18;
                        this._eqselected.Add(this.parent._v5.getObject());
                        break;
                    case 11:
                        this.state = 18;
                        this._eqselected.Add(this.parent._vvvvvvvvvvvvvvvvvvvvvvv3.getObject());
                        this._eqselected.Add(this.parent._v5.getObject());
                        break;
                    case 13:
                        this.state = 18;
                        this._eqselected.Add(this.parent._vvvvvvvvvvvvvvvvvvvvvvv4.getObject());
                        this._eqselected.Add(this.parent._vvvvvvvvvvvvvvvvvvvvvvv3.getObject());
                        this._eqselected.Add(this.parent._v5.getObject());
                        break;
                    case 15:
                        this.state = 18;
                        this._eqselected.Add(this.parent._vvvvvvvvvvvvvvvvvvvvvvv5.getObject());
                        this._eqselected.Add(this.parent._vvvvvvvvvvvvvvvvvvvvvvv4.getObject());
                        this._eqselected.Add(this.parent._vvvvvvvvvvvvvvvvvvvvvvv3.getObject());
                        this._eqselected.Add(this.parent._v5.getObject());
                        break;
                    case 17:
                        this.state = 18;
                        this._eqselected.Add(this.parent._vvvvvvvvvvvvvvvvvvvvvvv6.getObject());
                        break;
                    case 18:
                        this.state = 19;
                        this._minmag = 0.0d;
                        this._maxmag = 0.0d;
                        break;
                    case 19:
                        this.state = 36;
                        switch (BA.switchObjectToInt(Integer.valueOf(this.parent._cb_selectmagnitude._getvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv2()), new Object[]{0, 1, 2, 3, 4, 5, 6, 7})) {
                            case 0:
                                this.state = 21;
                                break;
                            case 1:
                                this.state = 23;
                                break;
                            case 2:
                                this.state = 25;
                                break;
                            case 3:
                                this.state = 27;
                                break;
                            case 4:
                                this.state = 29;
                                break;
                            case 5:
                                this.state = 31;
                                break;
                            case 6:
                                this.state = 33;
                                break;
                            case 7:
                                this.state = 35;
                                break;
                        }
                    case 21:
                        this.state = 36;
                        this._minmag = -2.0d;
                        this._maxmag = 10.0d;
                        break;
                    case 23:
                        this.state = 36;
                        this._minmag = -2.0d;
                        this._maxmag = 0.999d;
                        break;
                    case 25:
                        this.state = 36;
                        this._minmag = 1.0d;
                        this._maxmag = 10.0d;
                        break;
                    case 27:
                        this.state = 36;
                        this._minmag = 1.0d;
                        this._maxmag = 1.999d;
                        break;
                    case 29:
                        this.state = 36;
                        this._minmag = 2.0d;
                        this._maxmag = 10.0d;
                        break;
                    case 31:
                        this.state = 36;
                        this._minmag = 2.0d;
                        this._maxmag = 2.999d;
                        break;
                    case 33:
                        this.state = 36;
                        this._minmag = 3.0d;
                        this._maxmag = 10.0d;
                        break;
                    case 35:
                        this.state = 36;
                        this._minmag = 4.0d;
                        this._maxmag = 10.0d;
                        break;
                    case 36:
                        this.state = 37;
                        this._mindepth = 0.0d;
                        this._maxdepth = 0.0d;
                        break;
                    case PinConfig.BITMAP_LENGTH_DP:
                        this.state = 58;
                        switch (BA.switchObjectToInt(Integer.valueOf(this.parent._cb_selectdepth._getvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv2()), new Object[]{0, 1, 2, 3, 4, 5, 6, 7, 8, 9})) {
                            case 0:
                                this.state = 39;
                                break;
                            case 1:
                                this.state = 41;
                                break;
                            case 2:
                                this.state = 43;
                                break;
                            case 3:
                                this.state = 45;
                                break;
                            case 4:
                                this.state = 47;
                                break;
                            case 5:
                                this.state = 49;
                                break;
                            case 6:
                                this.state = 51;
                                break;
                            case 7:
                                this.state = 53;
                                break;
                            case 8:
                                this.state = 55;
                                break;
                            case 9:
                                this.state = 57;
                                break;
                        }
                    case 39:
                        this.state = 58;
                        this._mindepth = 0.0d;
                        this._maxdepth = 10.0d;
                        break;
                    case 41:
                        this.state = 58;
                        this._mindepth = 0.0d;
                        this._maxdepth = 0.499d;
                        break;
                    case 43:
                        this.state = 58;
                        this._mindepth = 0.0d;
                        this._maxdepth = 0.999d;
                        break;
                    case 45:
                        this.state = 58;
                        this._mindepth = 1.0d;
                        this._maxdepth = 1.999d;
                        break;
                    case 47:
                        this.state = 58;
                        this._mindepth = 0.0d;
                        this._maxdepth = 1.999d;
                        break;
                    case 49:
                        this.state = 58;
                        this._mindepth = 2.0d;
                        this._maxdepth = 2.999d;
                        break;
                    case 51:
                        this.state = 58;
                        this._mindepth = 0.0d;
                        this._maxdepth = 2.999d;
                        break;
                    case 53:
                        this.state = 58;
                        this._mindepth = 3.0d;
                        this._maxdepth = 10.0d;
                        break;
                    case 55:
                        this.state = 58;
                        this._mindepth = 3.5d;
                        this._maxdepth = 10.0d;
                        break;
                    case 57:
                        this.state = 58;
                        this._mindepth = 4.0d;
                        this._maxdepth = 10.0d;
                        break;
                    case 58:
                        this.state = 79;
                        this.step95 = 1;
                        this.limit95 = this._eqselected.getSize() - 1;
                        this._i = 0;
                        this.state = 110;
                        break;
                    case 60:
                        this.state = 61;
                        this._eqlist = new List();
                        this._eqlist = AbsObjectWrapper.ConvertToWrapper(new List(), (java.util.List) this._eqselected.Get(this._i));
                        break;
                    case 61:
                        this.state = 78;
                        if (this._eqlist.getSize() > 0) {
                            this.state = 63;
                            break;
                        }
                        break;
                    case 63:
                        this.state = 64;
                        break;
                    case 64:
                        this.state = 77;
                        this.step98 = 1;
                        this.limit98 = this._eqlist.getSize() - 1;
                        this._j = 0;
                        this.state = 112;
                        break;
                    case 66:
                        this.state = 67;
                        _aneq _aneqVar = (_aneq) this._eqlist.Get(this._j);
                        this._eq = _aneqVar;
                        this._ll.Lat = _aneqVar.latitude;
                        this._ll.Lon = this._eq.longitude;
                        this._u = this._g._vvvvvvvvvvvvvvvvvvvvvvvvv4(this._ll);
                        break;
                    case 67:
                        this.state = 76;
                        if ((this._eq.magnitude != 999.0d && this._eq.magnitude >= this._minmag && this._eq.magnitude <= this._maxmag && this._eq.depth >= this._mindepth && this._eq.depth <= this._maxdepth) || (this._eq.magnitude == 999.0d && this.parent._sw_ndon._getvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv4())) {
                            this.state = 69;
                            break;
                        }
                        break;
                    case 69:
                        this.state = 70;
                        _aplotpoint _pn09_todaymap_getplotpoint = this.parent._pn09_todaymap_getplotpoint(this._u.X, this._u.Y, this._eq.depth, this._eq.timeUTC, this._eq.magnitude, this.parent._vvvvvvvvvvvvvvvvvv7);
                        this._pp1 = _pn09_todaymap_getplotpoint;
                        _pn09_todaymap_getplotpoint.id = this._eq.eventID;
                        this._pp1.st = this._eq.status;
                        break;
                    case 70:
                        this.state = 75;
                        if (this._pp1.X >= 0.0d && this._pp1.X <= this.parent._vvvvvvvvvvvvvvvvvvvvvv3.getTargetRect().getWidth() && this._pp1.Y >= 0.0d && this._pp1.Y <= this.parent._vvvvvvvvvvvvvvvvvvvvvv3.getTargetRect().getHeight() && this._pp1.Z >= 0.0d && this._pp1.Z <= this.parent._vvvvvvvvvvvvvvvvvvvvvv4.getTargetRect().getHeight()) {
                            this.state = 72;
                            break;
                        }
                        break;
                    case 72:
                        this.state = 75;
                        this._plotpoints.Add(this._pp1);
                        break;
                    case 75:
                        this.state = 76;
                        break;
                    case 76:
                        this.state = 113;
                        break;
                    case 77:
                        this.state = 78;
                        break;
                    case 78:
                        this.state = 111;
                        break;
                    case 79:
                        this.state = 80;
                        B4XViewWrapper.XUI xui = this.parent._vvvvvvvvvvvvv3;
                        Common common2 = this.parent.__c;
                        TypefaceWrapper typefaceWrapper = Common.Typeface;
                        this._elevfont = B4XViewWrapper.XUI.CreateFont(TypefaceWrapper.DEFAULT, 12.0f);
                        B4XCanvas b4XCanvas = this.parent._vvvvvvvvvvvvvvvvvvvvvv4;
                        String str = this.parent._vvvvvvvvvvvv6("Depth") + " (kilometres)";
                        float width3 = this.parent._vvvvvvvvvvvvvvvvvvvvvv4.getTargetRect().getWidth();
                        Common common3 = this.parent.__c;
                        double height = this.parent._vvvvvvvvvvvvvvvvvvvvvv4.getTargetRect().getHeight();
                        Double.isNaN(height);
                        B4XViewWrapper.B4XFont b4XFont = this._elevfont;
                        Common common4 = this.parent.__c;
                        Colors colors = Common.Colors;
                        b4XCanvas.DrawTextRotated(ba, str, width3 - Common.DipToCurrent(8), (float) (height / 2.0d), b4XFont, -16777216, (Paint.Align) BA.getEnumFromString(Paint.Align.class, "CENTER"), 270.0f);
                        this._d = 0;
                        double d = this.parent._vvvvvvvvvvvvvvvvvvvvv7;
                        Double.isNaN(d);
                        this._dkm = (int) (d / 1000.0d);
                        break;
                    case 80:
                        this.state = 83;
                        this.step116 = 1;
                        this.limit116 = this._dkm - 1;
                        this._i = 1;
                        this.state = 114;
                        break;
                    case 82:
                        this.state = 115;
                        Common common5 = this.parent.__c;
                        double height2 = this._i * this.parent._vvvvvvvvvvvvvvvvvvvvvv4.getTargetRect().getHeight();
                        double d2 = this._dkm;
                        Double.isNaN(height2);
                        Double.isNaN(d2);
                        this._d = (int) Common.Round(height2 / d2);
                        B4XCanvas b4XCanvas2 = this.parent._vvvvvvvvvvvvvvvvvvvvvv4;
                        Common common6 = this.parent.__c;
                        float DipToCurrent = Common.DipToCurrent(20);
                        float f = this._d;
                        float width4 = this.parent._vvvvvvvvvvvvvvvvvvvvvv4.getTargetRect().getWidth();
                        Common common7 = this.parent.__c;
                        float DipToCurrent2 = width4 - Common.DipToCurrent(25);
                        float f2 = this._d;
                        Common common8 = this.parent.__c;
                        b4XCanvas2.DrawLine(DipToCurrent, f, DipToCurrent2, f2, -2894893, Common.DipToCurrent(1));
                        B4XCanvas b4XCanvas3 = this.parent._vvvvvvvvvvvvvvvvvvvvvv4;
                        String NumberToString = BA.NumberToString(this._i);
                        Common common9 = this.parent.__c;
                        float DipToCurrent3 = Common.DipToCurrent(6);
                        int i2 = this._d;
                        Common common10 = this.parent.__c;
                        float DipToCurrent4 = i2 + Common.DipToCurrent(4);
                        B4XViewWrapper.B4XFont b4XFont2 = this._elevfont;
                        Common common11 = this.parent.__c;
                        Colors colors2 = Common.Colors;
                        b4XCanvas3.DrawText(ba, NumberToString, DipToCurrent3, DipToCurrent4, b4XFont2, -16777216, (Paint.Align) BA.getEnumFromString(Paint.Align.class, "LEFT"));
                        break;
                    case 83:
                        this.state = 109;
                        if (this._plotpoints.getSize() > 0) {
                            this.state = 85;
                            break;
                        }
                        break;
                    case 85:
                        this.state = 86;
                        List list3 = this._plotpoints;
                        Common common12 = this.parent.__c;
                        list3.SortType("Z", false);
                        this._mostrecenteq_id = 0;
                        break;
                    case 86:
                        this.state = 89;
                        if (this.parent._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("lastEventId") != null) {
                            this.state = 88;
                            break;
                        }
                        break;
                    case 88:
                        this.state = 89;
                        this._mostrecenteq_id = (int) BA.ObjectToNumber(this.parent._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("lastEventId"));
                        break;
                    case 89:
                        this.state = 98;
                        this.step127 = 1;
                        this.limit127 = this._plotpoints.getSize() - 1;
                        this._i = 0;
                        this.state = 116;
                        break;
                    case 91:
                        this.state = 92;
                        this._pp2 = (_aplotpoint) this._plotpoints.Get(this._i);
                        break;
                    case 92:
                        this.state = 97;
                        if (this._pp2.id == this._mostrecenteq_id) {
                            this.state = 94;
                            break;
                        } else {
                            this.state = 96;
                            break;
                        }
                    case 94:
                        this.state = 97;
                        this._p = new CanvasWrapper.PathWrapper();
                        b4xmainpage b4xmainpageVar = this.parent;
                        double d3 = this._pp2.X;
                        double d4 = this._pp2.Y;
                        double d5 = this._pp2.r;
                        Double.isNaN(d5);
                        this._p = b4xmainpageVar._vvvvvvvvvvv2(d3, d4, (float) (d5 * 2.2d));
                        B4XCanvas b4XCanvas4 = this.parent._vvvvvvvvvvvvvvvvvvvvvv3;
                        B4XCanvas.B4XPath ConvertToWrapper = AbsObjectWrapper.ConvertToWrapper(new B4XCanvas.B4XPath(), (Path) this._p.getObject());
                        int i3 = this._pp2.rimCol;
                        Common common13 = this.parent.__c;
                        Common common14 = this.parent.__c;
                        b4XCanvas4.DrawPath(ConvertToWrapper, i3, true, Common.DipToCurrent(1));
                        break;
                    case 96:
                        this.state = 97;
                        B4XCanvas b4XCanvas5 = this.parent._vvvvvvvvvvvvvvvvvvvvvv3;
                        float f3 = (float) this._pp2.X;
                        float f4 = (float) this._pp2.Y;
                        float f5 = this._pp2.r;
                        int i4 = this._pp2.fillCol;
                        Common common15 = this.parent.__c;
                        Common common16 = this.parent.__c;
                        b4XCanvas5.DrawCircle(f3, f4, f5, i4, true, Common.DipToCurrent(1));
                        B4XCanvas b4XCanvas6 = this.parent._vvvvvvvvvvvvvvvvvvvvvv3;
                        float f6 = (float) this._pp2.X;
                        float f7 = (float) this._pp2.Y;
                        float f8 = this._pp2.r;
                        int i5 = this._pp2.rimCol;
                        Common common17 = this.parent.__c;
                        Common common18 = this.parent.__c;
                        b4XCanvas6.DrawCircle(f6, f7, f8, i5, false, Common.DipToCurrent(1));
                        break;
                    case 97:
                        this.state = 117;
                        break;
                    case 98:
                        this.state = 99;
                        List list4 = this._plotpoints;
                        Common common19 = this.parent.__c;
                        list4.SortType("Y", true);
                        break;
                    case 99:
                        this.state = 108;
                        this.step138 = 1;
                        this.limit138 = this._plotpoints.getSize() - 1;
                        this._i = 0;
                        this.state = 118;
                        break;
                    case 101:
                        this.state = 102;
                        this._pp3 = (_aplotpoint) this._plotpoints.Get(this._i);
                        break;
                    case 102:
                        this.state = 107;
                        if (this._pp3.id == this._mostrecenteq_id) {
                            this.state = 104;
                            break;
                        } else {
                            this.state = 106;
                            break;
                        }
                    case 104:
                        this.state = 107;
                        this._p = new CanvasWrapper.PathWrapper();
                        b4xmainpage b4xmainpageVar2 = this.parent;
                        double d6 = this._pp3.X;
                        double d7 = this._pp3.Z;
                        double d8 = this._pp3.r;
                        Double.isNaN(d8);
                        this._p = b4xmainpageVar2._vvvvvvvvvvv2(d6, d7, (float) (d8 * 2.2d));
                        B4XCanvas b4XCanvas7 = this.parent._vvvvvvvvvvvvvvvvvvvvvv4;
                        B4XCanvas.B4XPath ConvertToWrapper2 = AbsObjectWrapper.ConvertToWrapper(new B4XCanvas.B4XPath(), (Path) this._p.getObject());
                        int i6 = this._pp3.rimCol;
                        Common common20 = this.parent.__c;
                        Common common21 = this.parent.__c;
                        b4XCanvas7.DrawPath(ConvertToWrapper2, i6, true, Common.DipToCurrent(1));
                        break;
                    case 106:
                        this.state = 107;
                        B4XCanvas b4XCanvas8 = this.parent._vvvvvvvvvvvvvvvvvvvvvv4;
                        float f9 = (float) this._pp3.X;
                        float f10 = (float) this._pp3.Z;
                        float f11 = this._pp3.r;
                        int i7 = this._pp3.fillCol;
                        Common common22 = this.parent.__c;
                        Common common23 = this.parent.__c;
                        b4XCanvas8.DrawCircle(f9, f10, f11, i7, true, Common.DipToCurrent(1));
                        B4XCanvas b4XCanvas9 = this.parent._vvvvvvvvvvvvvvvvvvvvvv4;
                        float f12 = (float) this._pp3.X;
                        float f13 = (float) this._pp3.Z;
                        float f14 = this._pp3.r;
                        int i8 = this._pp3.rimCol;
                        Common common24 = this.parent.__c;
                        Common common25 = this.parent.__c;
                        b4XCanvas9.DrawCircle(f12, f13, f14, i8, false, Common.DipToCurrent(1));
                        break;
                    case 107:
                        this.state = 119;
                        break;
                    case 108:
                        this.state = 109;
                        break;
                    case 109:
                        this.state = -1;
                        B4XCanvas b4XCanvas10 = this.parent._vvvvvvvvvvvvvvvvvvvvvv3;
                        float height3 = this.parent._vvvvvvvvvvvvvvvvvvvvvv3.getTargetRect().getHeight();
                        Common common26 = this.parent.__c;
                        Colors colors3 = Common.Colors;
                        Common common27 = this.parent.__c;
                        b4XCanvas10.DrawLine(BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED, height3, -16777216, Common.DipToCurrent(2));
                        B4XCanvas b4XCanvas11 = this.parent._vvvvvvvvvvvvvvvvvvvvvv3;
                        float width5 = this.parent._vvvvvvvvvvvvvvvvvvvvvv3.getTargetRect().getWidth();
                        float width6 = this.parent._vvvvvvvvvvvvvvvvvvvvvv3.getTargetRect().getWidth();
                        float height4 = this.parent._vvvvvvvvvvvvvvvvvvvvvv3.getTargetRect().getHeight();
                        Common common28 = this.parent.__c;
                        Colors colors4 = Common.Colors;
                        Common common29 = this.parent.__c;
                        b4XCanvas11.DrawLine(width5, BitmapDescriptorFactory.HUE_RED, width6, height4, -16777216, Common.DipToCurrent(2));
                        B4XCanvas b4XCanvas12 = this.parent._vvvvvvvvvvvvvvvvvvvvvv3;
                        float width7 = this.parent._vvvvvvvvvvvvvvvvvvvvvv3.getTargetRect().getWidth();
                        Common common30 = this.parent.__c;
                        Colors colors5 = Common.Colors;
                        Common common31 = this.parent.__c;
                        b4XCanvas12.DrawLine(BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED, width7, BitmapDescriptorFactory.HUE_RED, -16777216, Common.DipToCurrent(2));
                        B4XCanvas b4XCanvas13 = this.parent._vvvvvvvvvvvvvvvvvvvvvv4;
                        float height5 = this.parent._vvvvvvvvvvvvvvvvvvvvvv4.getTargetRect().getHeight();
                        Common common32 = this.parent.__c;
                        Colors colors6 = Common.Colors;
                        Common common33 = this.parent.__c;
                        b4XCanvas13.DrawLine(BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED, height5, -16777216, Common.DipToCurrent(2));
                        B4XCanvas b4XCanvas14 = this.parent._vvvvvvvvvvvvvvvvvvvvvv4;
                        float width8 = this.parent._vvvvvvvvvvvvvvvvvvvvvv4.getTargetRect().getWidth();
                        float width9 = this.parent._vvvvvvvvvvvvvvvvvvvvvv4.getTargetRect().getWidth();
                        float height6 = this.parent._vvvvvvvvvvvvvvvvvvvvvv4.getTargetRect().getHeight();
                        Common common34 = this.parent.__c;
                        Colors colors7 = Common.Colors;
                        Common common35 = this.parent.__c;
                        b4XCanvas14.DrawLine(width8, BitmapDescriptorFactory.HUE_RED, width9, height6, -16777216, Common.DipToCurrent(2));
                        B4XCanvas b4XCanvas15 = this.parent._vvvvvvvvvvvvvvvvvvvvvv4;
                        float width10 = this.parent._vvvvvvvvvvvvvvvvvvvvvv4.getTargetRect().getWidth();
                        Common common36 = this.parent.__c;
                        Colors colors8 = Common.Colors;
                        Common common37 = this.parent.__c;
                        b4XCanvas15.DrawLine(BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED, width10, BitmapDescriptorFactory.HUE_RED, -16777216, Common.DipToCurrent(2));
                        B4XCanvas b4XCanvas16 = this.parent._vvvvvvvvvvvvvvvvvvvvvv4;
                        float height7 = this.parent._vvvvvvvvvvvvvvvvvvvvvv4.getTargetRect().getHeight();
                        float width11 = this.parent._vvvvvvvvvvvvvvvvvvvvvv4.getTargetRect().getWidth();
                        float height8 = this.parent._vvvvvvvvvvvvvvvvvvvvvv4.getTargetRect().getHeight();
                        Common common38 = this.parent.__c;
                        Colors colors9 = Common.Colors;
                        Common common39 = this.parent.__c;
                        b4XCanvas16.DrawLine(BitmapDescriptorFactory.HUE_RED, height7, width11, height8, -16777216, Common.DipToCurrent(2));
                        Common common40 = this.parent.__c;
                        Common common41 = this.parent.__c;
                        Common.ReturnFromResumableSub(this, true);
                        return;
                    case 110:
                        this.state = 79;
                        int i9 = this.step95;
                        if ((i9 > 0 && this._i <= this.limit95) || (i9 < 0 && this._i >= this.limit95)) {
                            this.state = 60;
                            break;
                        }
                        break;
                    case 111:
                        this.state = 110;
                        this._i += this.step95;
                        break;
                    case 112:
                        this.state = 77;
                        int i10 = this.step98;
                        if ((i10 > 0 && this._j <= this.limit98) || (i10 < 0 && this._j >= this.limit98)) {
                            this.state = 66;
                            break;
                        }
                        break;
                    case 113:
                        this.state = 112;
                        this._j += this.step98;
                        break;
                    case 114:
                        this.state = 83;
                        int i11 = this.step116;
                        if ((i11 > 0 && this._i <= this.limit116) || (i11 < 0 && this._i >= this.limit116)) {
                            this.state = 82;
                            break;
                        }
                        break;
                    case 115:
                        this.state = 114;
                        this._i += this.step116;
                        break;
                    case 116:
                        this.state = 98;
                        int i12 = this.step127;
                        if ((i12 > 0 && this._i <= this.limit127) || (i12 < 0 && this._i >= this.limit127)) {
                            this.state = 91;
                            break;
                        }
                        break;
                    case 117:
                        this.state = 116;
                        this._i += this.step127;
                        break;
                    case 118:
                        this.state = 108;
                        int i13 = this.step138;
                        if ((i13 > 0 && this._i <= this.limit138) || (i13 < 0 && this._i >= this.limit138)) {
                            this.state = 101;
                            break;
                        }
                        break;
                    case 119:
                        this.state = 118;
                        this._i += this.step138;
                        break;
                }
            }
        }
    }

    public String _pn09_todaymap_update() throws Exception {
        _vvvvvvvvvvvv7(this._events_map_title, "Map and Depth", BuildConfig.FLAVOR, true);
        _vvvvvvvvvvv5(this._pneventsmap, this._events_rotate_step, this._events_rotate_auto, this._events_plotbytime);
        _vvvvvvvvvvvv7(this._events_rotate_step, "Rotate Step", BuildConfig.FLAVOR, true);
        _vvvvvvvvvvvv7(this._events_rotate_auto, "Rotate Auto", BuildConfig.FLAVOR, true);
        _vvvvvvvvvvvv7(this._events_plotbytime, "Points Auto", BuildConfig.FLAVOR, true);
        float textSize = this._events_rotate_step.getTextSize() < 100.0f ? this._events_rotate_step.getTextSize() : 100.0f;
        if (this._events_rotate_auto.getTextSize() < textSize) {
            textSize = this._events_rotate_auto.getTextSize();
        }
        if (this._events_plotbytime.getTextSize() < textSize) {
            textSize = this._events_plotbytime.getTextSize();
        }
        this._events_rotate_step.setTextSize(textSize);
        this._events_rotate_auto.setTextSize(textSize);
        this._events_plotbytime.setTextSize(textSize);
        _vvvvvvvvvvvv7(this._events_lb24hrs, "Last 24 hours", BuildConfig.FLAVOR, true);
        _vvvvvvvvvvvv7(this._events_lbperiod, "Selected period", BuildConfig.FLAVOR, true);
        _vvvvvvvvvvvv7(this._events_lbnomag, "nd events", BuildConfig.FLAVOR, true);
        float textSize2 = this._events_lb24hrs.getTextSize() < 100.0f ? this._events_lb24hrs.getTextSize() : 100.0f;
        if (this._events_lbperiod.getTextSize() < textSize2) {
            textSize2 = this._events_lbperiod.getTextSize();
        }
        if (this._events_lbnomag.getTextSize() < textSize2) {
            textSize2 = this._events_lbnomag.getTextSize();
        }
        this._events_lb24hrs.setTextSize(textSize2);
        this._events_lbperiod.setTextSize(textSize2);
        this._events_lbnomag.setTextSize(textSize2);
        B4XViewWrapper b4XViewWrapper = this._events_lb24hrs;
        b4XViewWrapper.setWidth(_get_textwidth(b4XViewWrapper));
        B4XViewWrapper b4XViewWrapper2 = this._events_lbperiod;
        b4XViewWrapper2.setWidth(_get_textwidth(b4XViewWrapper2));
        B4XViewWrapper b4XViewWrapper3 = this._events_lbnomag;
        b4XViewWrapper3.setWidth(_get_textwidth(b4XViewWrapper3));
        double width = (((((this._events_pnlegend.getWidth() - this._events_iv24hrs.getWidth()) - this._events_lb24hrs.getWidth()) - this._events_ivperiod.getWidth()) - this._events_lbperiod.getWidth()) - this._events_ivnomag.getWidth()) - this._events_lbnomag.getWidth();
        Double.isNaN(width);
        int i = (int) (width / 4.0d);
        this._events_iv24hrs.setLeft(i);
        this._events_lb24hrs.setLeft(this._events_iv24hrs.getLeft() + this._events_iv24hrs.getWidth());
        this._events_ivperiod.setLeft(this._events_lb24hrs.getLeft() + this._events_lb24hrs.getWidth() + i);
        this._events_lbperiod.setLeft(this._events_ivperiod.getLeft() + this._events_ivperiod.getWidth());
        this._events_ivnomag.setLeft(this._events_lbperiod.getLeft() + this._events_lbperiod.getWidth() + i);
        this._events_lbnomag.setLeft(this._events_ivnomag.getLeft() + this._events_ivnomag.getWidth());
        _vvvvvvvvvvvv7(this._lb_selectperiod, "Period", ":", true);
        _vvvvvvvvvvvv7(this._lb_selectmagnitude, "Magnitude", ":", true);
        _vvvvvvvvvvvv7(this._lb_selectdepth, "Depth", ":", true);
        _vvvvvvvvvvvv7(this._lb_ndon, "Automatic", ":", true);
        float textSize3 = this._lb_selectperiod.getTextSize() < 100.0f ? this._lb_selectperiod.getTextSize() : 100.0f;
        if (this._lb_selectmagnitude.getTextSize() < textSize3) {
            textSize3 = this._lb_selectmagnitude.getTextSize();
        }
        if (this._lb_selectdepth.getTextSize() < textSize3) {
            textSize3 = this._lb_selectdepth.getTextSize();
        }
        if (this._lb_ndon.getTextSize() < textSize3) {
            textSize3 = this._lb_ndon.getTextSize();
        }
        this._lb_selectperiod.setTextSize(textSize3);
        this._lb_selectmagnitude.setTextSize(textSize3);
        this._lb_selectdepth.setTextSize(textSize3);
        this._lb_ndon.setTextSize(textSize3);
        this._vvvvvvvvvvvvvvvvvvvv7 = (int) BA.ObjectToNumber(this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("map_coordleft"));
        this._vvvvvvvvvvvvvvvvvvvv0 = (int) BA.ObjectToNumber(this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("map_coordright"));
        this._vvvvvvvvvvvvvvvvvvvvv1 = (int) BA.ObjectToNumber(this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("map_coordtop"));
        this._vvvvvvvvvvvvvvvvvvvvv2 = (int) BA.ObjectToNumber(this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("map_coordbase"));
        this._vvvvvvvvvvvvvvvvvvvvv3 = (int) BA.ObjectToNumber(this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("view_coordleft"));
        this._vvvvvvvvvvvvvvvvvvvvv4 = (int) BA.ObjectToNumber(this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("view_coordright"));
        this._vvvvvvvvvvvvvvvvvvvvv5 = (int) BA.ObjectToNumber(this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("view_coordtop"));
        this._vvvvvvvvvvvvvvvvvvvvv6 = (int) BA.ObjectToNumber(this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("view_coordbase"));
        this._vvvvvvvvvvvvvvvvvvvvv7 = (int) BA.ObjectToNumber(this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("view_depth"));
        double d = this._vvvvvvvvvvvvvvvvvvvvv3 + this._vvvvvvvvvvvvvvvvvvvvv4;
        Double.isNaN(d);
        this._vvvvvvvvvvvvvvvvvvvvv0 = d / 2.0d;
        double d2 = this._vvvvvvvvvvvvvvvvvvvvv6 + this._vvvvvvvvvvvvvvvvvvvvv5;
        Double.isNaN(d2);
        this._vvvvvvvvvvvvvvvvvvvvvv1 = d2 / 2.0d;
        B4XCanvas b4XCanvas = new B4XCanvas();
        b4XCanvas.Initialize(this._events_iv24hrs);
        b4XCanvas.ClearRect(b4XCanvas.getTargetRect());
        double width2 = this._events_iv24hrs.getWidth();
        Double.isNaN(width2);
        int i2 = (int) (width2 / 2.0d);
        double height = this._events_iv24hrs.getHeight();
        Double.isNaN(height);
        float f = i2;
        float f2 = (int) (height / 2.0d);
        b4XCanvas.DrawCircle(f, f2, Common.DipToCurrent(6), this._colour_mappoint_redlight, true, Common.DipToCurrent(1));
        b4XCanvas.DrawCircle(f, f2, Common.DipToCurrent(6), this._colour_mappoint_red, false, Common.DipToCurrent(1));
        B4XCanvas b4XCanvas2 = new B4XCanvas();
        b4XCanvas2.Initialize(this._events_ivperiod);
        b4XCanvas2.ClearRect(b4XCanvas2.getTargetRect());
        double width3 = this._events_ivperiod.getWidth();
        Double.isNaN(width3);
        int i3 = (int) (width3 / 2.0d);
        double height2 = this._events_ivperiod.getHeight();
        Double.isNaN(height2);
        float f3 = i3;
        float f4 = (int) (height2 / 2.0d);
        b4XCanvas2.DrawCircle(f3, f4, Common.DipToCurrent(6), this._colour_mappoint_greenlight, true, Common.DipToCurrent(1));
        b4XCanvas2.DrawCircle(f3, f4, Common.DipToCurrent(6), this._colour_mappoint_green, false, Common.DipToCurrent(1));
        B4XCanvas b4XCanvas3 = new B4XCanvas();
        b4XCanvas3.Initialize(this._events_ivnomag);
        b4XCanvas3.ClearRect(b4XCanvas3.getTargetRect());
        double width4 = this._events_ivnomag.getWidth();
        Double.isNaN(width4);
        int i4 = (int) (width4 / 2.0d);
        double height3 = this._events_ivnomag.getHeight();
        Double.isNaN(height3);
        float f5 = i4;
        float f6 = (int) (height3 / 2.0d);
        b4XCanvas3.DrawCircle(f5, f6, Common.DipToCurrent(6), this._colour_mappoint_bluelight, true, Common.DipToCurrent(1));
        b4XCanvas3.DrawCircle(f5, f6, Common.DipToCurrent(6), this._colour_mappoint_blue, false, Common.DipToCurrent(1));
        List list = new List();
        list.Initialize();
        list.Add(b4xpages._vvvv1(this.ba)._vvvvvvvvvvvv6("Last 24 hours"));
        list.Add(b4xpages._vvvv1(this.ba)._vvvvvvvvvvvv6("Last week"));
        list.Add(b4xpages._vvvv1(this.ba)._vvvvvvvvvvvv6("Last month"));
        list.Add(b4xpages._vvvv1(this.ba)._vvvvvvvvvvvv6("Last 2 years"));
        list.Add(b4xpages._vvvv1(this.ba)._vvvvvvvvvvvv6("Anomalous"));
        this._cb_selectperiod._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv5(list);
        if (this._vvvvvvvvvvvvvvvvvvvvvvv3.getSize() > 0) {
            this._cb_selectperiod._setvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv2(1);
        } else {
            this._cb_selectperiod._setvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv2(2);
        }
        List list2 = new List();
        list2.Initialize();
        list2.Add(b4xpages._vvvv1(this.ba)._vvvvvvvvvvvv6("All"));
        list2.Add("< 1");
        list2.Add(">= 1");
        list2.Add(b4xpages._vvvv1(this.ba)._vvvvvvvvvvvv6(">= 1 and < 2"));
        list2.Add(">= 2");
        list2.Add(b4xpages._vvvv1(this.ba)._vvvvvvvvvvvv6(">= 2 and < 3"));
        list2.Add(">= 3");
        list2.Add(">= 4");
        this._cb_selectmagnitude._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv5(list2);
        this._cb_selectmagnitude._setvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv2(0);
        List list3 = new List();
        list3.Initialize();
        list3.Add(b4xpages._vvvv1(this.ba)._vvvvvvvvvvvv6("All"));
        list3.Add("< 0.5 km");
        list3.Add("< 1 km");
        list3.Add(b4xpages._vvvv1(this.ba)._vvvvvvvvvvvv6(">= 1 and < 2 km"));
        list3.Add("< 2 km");
        list3.Add(b4xpages._vvvv1(this.ba)._vvvvvvvvvvvv6(">= 2 and < 3 km"));
        list3.Add("< 3 km");
        list3.Add(">= 3 km");
        list3.Add(">= 3.5 km");
        list3.Add(">= 4 km");
        this._cb_selectdepth._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv5(list3);
        this._cb_selectdepth._setvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv2(0);
        if (this._v5.getSize() > 0 || this._vvvvvvvvvvvvvvvvvvvvvvv3.getSize() > 0 || this._vvvvvvvvvvvvvvvvvvvvvvv4.getSize() > 0 || this._vvvvvvvvvvvvvvvvvvvvvvv5.getSize() > 0) {
            this._cb_selectperiod._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1.setEnabled(true);
            this._events_rotate_step.setEnabled(true);
            this._events_rotate_auto.setEnabled(true);
            this._events_plotbytime.setEnabled(true);
        }
        this._cb_selectperiod._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv5.setTextSize(this._events_rotate_step.getTextSize());
        this._sw_ndon._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1.setLeft((this._events_pnperiods.getWidth() - Common.DipToCurrent(20)) - this._sw_ndon._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1.getWidth());
        int height4 = this._events_map.getHeight();
        B4XViewWrapper b4XViewWrapper4 = this._events_map;
        b4XViewWrapper4.setHeight(b4XViewWrapper4.getWidth());
        int height5 = this._events_map.getHeight() - height4;
        B4XViewWrapper b4XViewWrapper5 = this._events_plot;
        b4XViewWrapper5.setTop(b4XViewWrapper5.getTop() + height5);
        int height6 = this._events_plot.getHeight();
        B4XViewWrapper b4XViewWrapper6 = this._events_plot;
        double height7 = this._vvvvvvvvvvvvvvvvvvvvv7 * this._events_map.getHeight();
        double d3 = this._vvvvvvvvvvvvvvvvvvvvv5 - this._vvvvvvvvvvvvvvvvvvvvv6;
        Double.isNaN(height7);
        Double.isNaN(d3);
        b4XViewWrapper6.setHeight((int) (height7 / d3));
        int height8 = height5 + (this._events_plot.getHeight() - height6);
        int DipToCurrent = Common.DipToCurrent(5) + this._events_map.getHeight() + this._events_plot.getHeight() + Common.DipToCurrent(5) + this._events_rotate_auto.getHeight() + Common.DipToCurrent(5);
        int i5 = DipToCurrent;
        while (i5 > this._vvvvvvvvvvvvvv2.getHeight()) {
            B4XViewWrapper b4XViewWrapper7 = this._events_map;
            b4XViewWrapper7.setHeight(b4XViewWrapper7.getHeight() - Common.DipToCurrent(2));
            B4XViewWrapper b4XViewWrapper8 = this._events_map;
            b4XViewWrapper8.setWidth(b4XViewWrapper8.getHeight());
            B4XViewWrapper b4XViewWrapper9 = this._events_plot;
            b4XViewWrapper9.setTop(b4XViewWrapper9.getTop() - Common.DipToCurrent(2));
            B4XViewWrapper b4XViewWrapper10 = this._events_plot;
            b4XViewWrapper10.setHeight(b4XViewWrapper10.getHeight() - Common.DipToCurrent(2));
            this._events_plot.setWidth(this._events_map.getHeight());
            i5 = Common.DipToCurrent(5) + this._events_map.getHeight() + this._events_plot.getHeight() + Common.DipToCurrent(5) + this._events_rotate_auto.getHeight() + Common.DipToCurrent(5);
        }
        int i6 = height8 + (i5 - DipToCurrent);
        B4XViewWrapper b4XViewWrapper11 = this._events_map;
        double width5 = this._pneventsmap.getWidth();
        Double.isNaN(width5);
        double width6 = this._events_map.getWidth();
        Double.isNaN(width6);
        b4XViewWrapper11.setLeft((int) ((width5 / 2.0d) - (width6 / 2.0d)));
        B4XViewWrapper b4XViewWrapper12 = this._events_plot;
        double width7 = this._pneventsmap.getWidth();
        Double.isNaN(width7);
        double width8 = this._events_plot.getWidth();
        Double.isNaN(width8);
        b4XViewWrapper12.setLeft((int) ((width7 / 2.0d) - (width8 / 2.0d)));
        B4XViewWrapper b4XViewWrapper13 = this._events_rotate_auto;
        b4XViewWrapper13.setTop(b4XViewWrapper13.getTop() + i6);
        B4XViewWrapper b4XViewWrapper14 = this._events_rotate_step;
        b4XViewWrapper14.setTop(b4XViewWrapper14.getTop() + i6);
        B4XViewWrapper b4XViewWrapper15 = this._events_plotbytime;
        b4XViewWrapper15.setTop(b4XViewWrapper15.getTop() + i6);
        B4XViewWrapper b4XViewWrapper16 = this._events_pnperiods;
        b4XViewWrapper16.setTop(b4XViewWrapper16.getTop() + i6);
        webp webpVar = new webp();
        webpVar._initialize(this.ba);
        String ObjectToString = BA.ObjectToString(this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("map_filename"));
        File file = Common.File;
        File file2 = Common.File;
        this._vvvvvvvvvvvvvvvvvvvvvv5 = webpVar._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv0(File.ReadBytes(File.getDirAssets(), "extras/" + ObjectToString));
        double width9 = (double) ((this._vvvvvvvvvvvvvvvvvvvv0 - this._vvvvvvvvvvvvvvvvvvvv7) * this._events_map.getWidth());
        double d4 = (double) (this._vvvvvvvvvvvvvvvvvvvvv4 - this._vvvvvvvvvvvvvvvvvvvvv3);
        Double.isNaN(width9);
        Double.isNaN(d4);
        float f7 = (float) (width9 / d4);
        double height9 = (this._vvvvvvvvvvvvvvvvvvvvv1 - this._vvvvvvvvvvvvvvvvvvvvv2) * this._events_map.getHeight();
        double d5 = this._vvvvvvvvvvvvvvvvvvvvv5 - this._vvvvvvvvvvvvvvvvvvvvv6;
        Double.isNaN(height9);
        Double.isNaN(d5);
        this._vvvvvvvvvvvvvvvvvvvvvv5 = this._vvvvvvvvvvvvvvvvvvvvvv5.Resize((int) f7, (int) (height9 / d5), true);
        this._vvvvvvvvvvvvvvvvvvvvvv2 = 0;
        if (i6 != 0) {
            _pncontent_adjustpanels(this._pneventsmap, i6);
        }
        return BuildConfig.FLAVOR;
    }

    public java.lang.String _pn11_chart1_update(long r23, boolean r25) throws java.lang.Exception {
        throw new UnsupportedOperationException("Method not decompiled: com.volcanex.vesuvius.b4xmainpage._pn11_chart1_update(long, boolean):java.lang.String");
    }

    public java.lang.String _pn12_chart2_update(long r35, boolean r37) throws java.lang.Exception {
        throw new UnsupportedOperationException("Method not decompiled: com.volcanex.vesuvius.b4xmainpage._pn12_chart2_update(long, boolean):java.lang.String");
    }

    public java.lang.String _pn13_chart3_update(long r35, boolean r37) throws java.lang.Exception {
        throw new UnsupportedOperationException("Method not decompiled: com.volcanex.vesuvius.b4xmainpage._pn13_chart3_update(long, boolean):java.lang.String");
    }

    public String _pn14_chart4_update(long j, boolean z) throws Exception {
        Map map;
        boolean z2;
        Map map2;
        boolean z3;
        boolean z4;
        Map map3;
        if (z) {
            this._c4._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv4();
        }
        _vvvvvvvvvvvv7(this._chart4_title, "Earthquake Frequency", BuildConfig.FLAVOR, true);
        this._c4._setvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv5(_vvvvvvvvvvvv6("last month"));
        this._c4._setvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv4(_vvvvvvvvvvvv6("Days"));
        this._c4._setvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv5(_vvvvvvvvvvvv6("Events per Day"));
        DateTime dateTime = Common.DateTime;
        Map map4 = null;
        if (this._vvvvvvvvvvvvvvv6 || this._vvvvvvvvvvvvvvv7) {
            this._c4._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1(_vvvvvvvvvvvv6("with magnitude"), this._colour_mappoint_green);
            map = new Map();
            map.Initialize();
            for (int i = -30; i <= -1; i++) {
                map.Put(Integer.valueOf(i), 0);
            }
            z2 = true;
        } else {
            map = null;
            z2 = false;
        }
        if (this._vvvvvvvvvvvvvvvv4) {
            this._c4._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1(_vvvvvvvvvvvv6("last 24 hours"), this._colour_mappoint_red);
            map2 = new Map();
            map2.Initialize();
            for (int i2 = -30; i2 <= -1; i2++) {
                map2.Put(Integer.valueOf(i2), 0);
            }
            z3 = true;
        } else {
            map2 = null;
            z3 = false;
        }
        if (this._vvvvvvvvvvvvvvvv1 || this._vvvvvvvvvvvvvvvv2 || this._vvvvvvvvvvvvvvvv3) {
            this._c4._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1(_vvvvvvvvvvvv6("nd magnitude"), this._colour_mappoint_blue);
            map4 = new Map();
            map4.Initialize();
            for (int i3 = -30; i3 <= -1; i3++) {
                map4.Put(Integer.valueOf(i3), 0);
            }
            z4 = true;
        } else {
            z4 = false;
        }
        if (this._vvvvvvvvvvvvvvvvvvvvvvv4.getSize() > 0) {
            int size = this._vvvvvvvvvvvvvvvvvvvvvvv4.getSize() - 1;
            for (int i4 = 0; i4 <= size; i4++) {
                _aneq _aneqVar = (_aneq) this._vvvvvvvvvvvvvvvvvvvvvvv4.Get(i4);
                double d = j - _aneqVar.timeUTC;
                double d2 = 86400000L;
                Double.isNaN(d);
                Double.isNaN(d2);
                int Floor = (int) ((Common.Floor(d / d2) + 1.0d) * (-1.0d));
                if (_aneqVar.magnitude == 999.0d) {
                    if (z4) {
                        map4.Put(Integer.valueOf(Floor), Integer.valueOf((int) (BA.ObjectToNumber(map4.Get(Integer.valueOf(Floor))) + 1.0d)));
                    }
                } else if (z2) {
                    map.Put(Integer.valueOf(Floor), Integer.valueOf((int) (BA.ObjectToNumber(map.Get(Integer.valueOf(Floor))) + 1.0d)));
                }
            }
        }
        if (this._vvvvvvvvvvvvvvvvvvvvvvv3.getSize() > 0) {
            int size2 = this._vvvvvvvvvvvvvvvvvvvvvvv3.getSize() - 1;
            int i5 = 0;
            while (i5 <= size2) {
                _aneq _aneqVar2 = (_aneq) this._vvvvvvvvvvvvvvvvvvvvvvv3.Get(i5);
                double d3 = j - _aneqVar2.timeUTC;
                Map map5 = map2;
                boolean z5 = z3;
                double d4 = 86400000L;
                Double.isNaN(d3);
                Double.isNaN(d4);
                int Floor2 = (int) ((Common.Floor(d3 / d4) + 1.0d) * (-1.0d));
                if (_aneqVar2.magnitude == 999.0d) {
                    if (z4) {
                        map4.Put(Integer.valueOf(Floor2), Integer.valueOf((int) (BA.ObjectToNumber(map4.Get(Integer.valueOf(Floor2))) + 1.0d)));
                    }
                } else if (z2) {
                    map.Put(Integer.valueOf(Floor2), Integer.valueOf((int) (BA.ObjectToNumber(map.Get(Integer.valueOf(Floor2))) + 1.0d)));
                }
                i5++;
                map2 = map5;
                z3 = z5;
            }
        }
        Map map6 = map2;
        boolean z6 = z3;
        if (this._v5.getSize() > 0) {
            int size3 = this._v5.getSize() - 1;
            int i6 = 0;
            while (i6 <= size3) {
                _aneq _aneqVar3 = (_aneq) this._v5.Get(i6);
                double d5 = j - _aneqVar3.timeUTC;
                double d6 = 86400000L;
                Double.isNaN(d5);
                Double.isNaN(d6);
                int Floor3 = (int) ((Common.Floor(d5 / d6) + 1.0d) * (-1.0d));
                if (Floor3 > -1) {
                    Floor3 = -1;
                }
                if (_aneqVar3.magnitude == 999.0d) {
                    if (z4) {
                        map4.Put(Integer.valueOf(Floor3), Integer.valueOf((int) (BA.ObjectToNumber(map4.Get(Integer.valueOf(Floor3))) + 1.0d)));
                    }
                } else if (z6) {
                    map3 = map6;
                    map3.Put(Integer.valueOf(Floor3), Integer.valueOf((int) (BA.ObjectToNumber(map3.Get(Integer.valueOf(Floor3))) + 1.0d)));
                    i6++;
                    map6 = map3;
                }
                map3 = map6;
                i6++;
                map6 = map3;
            }
        }
        Map map7 = map6;
        int i7 = 0;
        for (int i8 = -30; i8 <= -1; i8++) {
            int i9 = 0;
            if (z4) {
                double d7 = 0;
                double ObjectToNumber = BA.ObjectToNumber(map4.Get(Integer.valueOf(i8)));
                Double.isNaN(d7);
                i9 = (int) (d7 + ObjectToNumber);
            }
            if (z2) {
                double d8 = i9;
                double ObjectToNumber2 = BA.ObjectToNumber(map.Get(Integer.valueOf(i8)));
                Double.isNaN(d8);
                i9 = (int) (d8 + ObjectToNumber2);
            }
            if (z6) {
                double d9 = i9;
                double ObjectToNumber3 = BA.ObjectToNumber(map7.Get(Integer.valueOf(i8)));
                Double.isNaN(d9);
                i9 = (int) (d9 + ObjectToNumber3);
            }
            if (i9 > i7) {
                i7 = i9;
            }
        }
        int[] iArr = {50, 100, 200, ServiceStarter.ERROR_UNKNOWN, 1000, 2000, 5000, 10000};
        int i10 = 0;
        while (true) {
            if (i10 > 7) {
                break;
            }
            int i11 = iArr[i10];
            if (i11 > i7) {
                this._c4._setvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv7(i11);
                break;
            }
            i10++;
        }
        if (z2 && z6 && z4) {
            for (int i12 = -30; i12 <= -1; i12++) {
                this._c4._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv2(BA.NumberToString(i12), new double[]{BA.ObjectToNumber(map.Get(Integer.valueOf(i12))), BA.ObjectToNumber(map7.Get(Integer.valueOf(i12))), BA.ObjectToNumber(map4.Get(Integer.valueOf(i12)))});
            }
        }
        if (z2 && !z6 && z4) {
            for (int i13 = -30; i13 <= -1; i13++) {
                this._c4._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv2(BA.NumberToString(i13), new double[]{BA.ObjectToNumber(map.Get(Integer.valueOf(i13))), BA.ObjectToNumber(map4.Get(Integer.valueOf(i13)))});
            }
        }
        if (z2 && z6 && !z4) {
            for (int i14 = -30; i14 <= -1; i14++) {
                this._c4._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv2(BA.NumberToString(i14), new double[]{BA.ObjectToNumber(map.Get(Integer.valueOf(i14))), BA.ObjectToNumber(map7.Get(Integer.valueOf(i14)))});
            }
        }
        if (z2 && !z6 && !z4) {
            for (int i15 = -30; i15 <= -1; i15++) {
                this._c4._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv2(BA.NumberToString(i15), new double[]{BA.ObjectToNumber(map.Get(Integer.valueOf(i15)))});
            }
        }
        if (!z2 && z6 && z4) {
            for (int i16 = -30; i16 <= -1; i16++) {
                this._c4._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv2(BA.NumberToString(i16), new double[]{BA.ObjectToNumber(map7.Get(Integer.valueOf(i16))), BA.ObjectToNumber(map4.Get(Integer.valueOf(i16)))});
            }
        }
        if (!z2 && z6 && !z4) {
            for (int i17 = -30; i17 <= -1; i17++) {
                this._c4._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv2(BA.NumberToString(i17), new double[]{BA.ObjectToNumber(map7.Get(Integer.valueOf(i17)))});
            }
        }
        if (!z2 && !z6 && z4) {
            for (int i18 = -30; i18 <= -1; i18++) {
                this._c4._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv2(BA.NumberToString(i18), new double[]{BA.ObjectToNumber(map4.Get(Integer.valueOf(i18)))});
            }
        }
        this._c4._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv5();
        return BuildConfig.FLAVOR;
    }

    public java.lang.String _pn15_chart5_update(long r35, boolean r37) throws java.lang.Exception {
        throw new UnsupportedOperationException("Method not decompiled: com.volcanex.vesuvius.b4xmainpage._pn15_chart5_update(long, boolean):java.lang.String");
    }

    public java.lang.String _pn16_chart6_update(long r24, boolean r26) throws java.lang.Exception {
        throw new UnsupportedOperationException("Method not decompiled: com.volcanex.vesuvius.b4xmainpage._pn16_chart6_update(long, boolean):java.lang.String");
    }

    public java.lang.String _pn17_chart7_update(long r26, boolean r28) throws java.lang.Exception {
        throw new UnsupportedOperationException("Method not decompiled: com.volcanex.vesuvius.b4xmainpage._pn17_chart7_update(long, boolean):java.lang.String");
    }

    public java.lang.String _pn18_chart8_update(boolean r24) throws java.lang.Exception {
        throw new UnsupportedOperationException("Method not decompiled: com.volcanex.vesuvius.b4xmainpage._pn18_chart8_update(boolean):java.lang.String");
    }

    public String _pn19_chart9_update(long j, boolean z) throws Exception {
        if (z) {
            this._c9._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv4();
        }
        B4XViewWrapper b4XViewWrapper = this._chart9_title;
        String str = BuildConfig.FLAVOR;
        _vvvvvvvvvvvv7(b4XViewWrapper, "Total Seismic Energy", BuildConfig.FLAVOR, true);
        this._c9._setvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv4(_vvvvvvvvvvvv6("Months"));
        this._c9._setvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv5(_vvvvvvvvvvvv6("Energy") + " (GJ) (G&R1956)");
        this._c9._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv4(_vvvvvvvvvvvv6("last 2 years"), this._colour_mappoint_green, Common.DipToCurrent(3));
        DateTime dateTime = Common.DateTime;
        DateTime dateTime2 = Common.DateTime;
        DateTime.setDateFormat("dd/MM/yyyy");
        long j2 = -1;
        double d = 999.0d;
        double d2 = 0.0d;
        if (this._vvvvvvvvvvvvvvvvvvvvvvv5.getSize() > 0) {
            int size = this._vvvvvvvvvvvvvvvvvvvvvvv5.getSize() - 1;
            int i = 0;
            while (i <= size) {
                _aneq _aneqVar = (_aneq) this._vvvvvvvvvvvvvvvvvvvvvvv5.Get(i);
                String str2 = str;
                if (_aneqVar.magnitude != 999.0d) {
                    double d3 = (j - _aneqVar.timeUTC) * j2;
                    double d4 = 2592000000L;
                    Double.isNaN(d3);
                    Double.isNaN(d4);
                    d2 += _get_seismicenergy(_aneqVar.magnitude);
                    this._c9._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv6(0, d3 / d4, d2);
                }
                i++;
                str = str2;
                j2 = -1;
            }
        }
        String str3 = str;
        if (this._vvvvvvvvvvvvvvvvvvvvvvv4.getSize() > 0) {
            int size2 = this._vvvvvvvvvvvvvvvvvvvvvvv4.getSize() - 1;
            for (int i2 = 0; i2 <= size2; i2++) {
                _aneq _aneqVar2 = (_aneq) this._vvvvvvvvvvvvvvvvvvvvvvv4.Get(i2);
                if (_aneqVar2.magnitude != 999.0d) {
                    double d5 = (j - _aneqVar2.timeUTC) * (-1);
                    double d6 = 2592000000L;
                    Double.isNaN(d5);
                    Double.isNaN(d6);
                    d2 += _get_seismicenergy(_aneqVar2.magnitude);
                    this._c9._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv6(0, d5 / d6, d2);
                }
            }
        }
        if (this._vvvvvvvvvvvvvvvvvvvvvvv3.getSize() > 0) {
            int size3 = this._vvvvvvvvvvvvvvvvvvvvvvv3.getSize() - 1;
            for (int i3 = 0; i3 <= size3; i3++) {
                _aneq _aneqVar3 = (_aneq) this._vvvvvvvvvvvvvvvvvvvvvvv3.Get(i3);
                if (_aneqVar3.magnitude != 999.0d) {
                    double d7 = (j - _aneqVar3.timeUTC) * (-1);
                    double d8 = 2592000000L;
                    Double.isNaN(d7);
                    Double.isNaN(d8);
                    d2 += _get_seismicenergy(_aneqVar3.magnitude);
                    this._c9._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv6(0, d7 / d8, d2);
                }
            }
        }
        if (this._v5.getSize() > 0) {
            int size4 = this._v5.getSize() - 1;
            int i4 = 0;
            while (i4 <= size4) {
                _aneq _aneqVar4 = (_aneq) this._v5.Get(i4);
                if (_aneqVar4.magnitude != d) {
                    double d9 = (j - _aneqVar4.timeUTC) * (-1);
                    double d10 = 2592000000L;
                    Double.isNaN(d9);
                    Double.isNaN(d10);
                    d2 += _get_seismicenergy(_aneqVar4.magnitude);
                    this._c9._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv6(0, d9 / d10, d2);
                }
                i4++;
                d = 999.0d;
            }
        }
        double[] dArr = {10.0d, 20.0d, 50.0d, 100.0d, 200.0d, 500.0d, 1000.0d, 2000.0d, 5000.0d, 10000.0d, 20000.0d};
        int i5 = 0;
        while (true) {
            if (i5 > 10) {
                break;
            }
            double d11 = dArr[i5];
            if (d11 > d2) {
                this._c9._setvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv7(d11);
                break;
            }
            i5++;
        }
        double ObjectToNumber = (d2 * 100.0d) / BA.ObjectToNumber(this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("PrevWaveEnergyGJ"));
        String ObjectToString = BA.ObjectToString(this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("PrevWaveEnergyPeriod"));
        this._c9._setvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv5(Common.NumberFormat(ObjectToNumber, 0, 0) + "% " + _vvvvvvvvvvvv6("of") + " " + ObjectToString);
        this._c9._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv5();
        return str3;
    }

    public String _pn20_chart10_update(long j, boolean z) throws Exception {
        if (z) {
            this._c10._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv4();
        }
        _vvvvvvvvvvvv7(this._chart10_title, "Anomalous Earthquake Index", BuildConfig.FLAVOR, true);
        this._c10._setvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv4(_vvvvvvvvvvvv6("Days"));
        this._c10._setvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv5(_vvvvvvvvvvvv6("Percent"));
        this._c10._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv4(_vvvvvvvvvvvv6(FirebaseAnalytics.Param.INDEX), this._colour_mappoint_green, Common.DipToCurrent(3));
        new Map();
        Map ConvertToWrapper = AbsObjectWrapper.ConvertToWrapper(new Map(), (java.util.Map) this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("NormalIndices"));
        BA.IterableList Keys = ConvertToWrapper.Keys();
        int size = Keys.getSize();
        double d = 0.0d;
        double d2 = 0.0d;
        for (int i = 0; i < size; i++) {
            long ObjectToLongNumber = BA.ObjectToLongNumber(Keys.Get(i));
            if (BA.ObjectToNumber(ConvertToWrapper.Get(Long.valueOf(ObjectToLongNumber))) > d2) {
                d2 = BA.ObjectToNumber(ConvertToWrapper.Get(Long.valueOf(ObjectToLongNumber)));
            }
        }
        int[] iArr = {100, 200, ServiceStarter.ERROR_UNKNOWN, 1000};
        int i2 = 0;
        while (true) {
            if (i2 > 3) {
                break;
            }
            int i3 = iArr[i2];
            if (i3 > d2) {
                this._c10._setvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv7(i3);
                break;
            }
            i2++;
        }
        DateTime dateTime = Common.DateTime;
        BA.IterableList Keys2 = ConvertToWrapper.Keys();
        int size2 = Keys2.getSize();
        long j2 = 0;
        for (int i4 = 0; i4 < size2; i4++) {
            long ObjectToLongNumber2 = BA.ObjectToLongNumber(Keys2.Get(i4));
            double d3 = (-1) * (j - ObjectToLongNumber2);
            long j3 = j2;
            double d4 = 86400000L;
            Double.isNaN(d3);
            Double.isNaN(d4);
            double d5 = d3 / d4;
            double ObjectToNumber = BA.ObjectToNumber(ConvertToWrapper.Get(Long.valueOf(ObjectToLongNumber2)));
            this._c10._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv6(0, d5, ObjectToNumber);
            if (ObjectToLongNumber2 > j3) {
                d = ObjectToNumber;
                j2 = (long) d5;
            } else {
                j2 = j3;
            }
        }
        this._c10._setvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv5(_vvvvvvvvvvvv6("current value") + " = " + Common.NumberFormat(d, 0, 0) + "%");
        this._c10._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv5();
        return BuildConfig.FLAVOR;
    }

    public String _pn21_chart11_update(boolean z) throws Exception {
        if (z) {
            this._c11._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv4();
        }
        _vvvvvvvvvvvv7(this._chart11_title, "Average Monthly Frequency", BuildConfig.FLAVOR, true);
        this._c11._setvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv4(_vvvvvvvvvvvv6("Months"));
        this._c11._setvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv5(_vvvvvvvvvvvv6("Average Frequency"));
        this._c11._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv4(_vvvvvvvvvvvv6("average"), this._colour_mappoint_green, Common.DipToCurrent(3));
        double d = 0.0d;
        int i = -24;
        while (i <= -1) {
            double ObjectToNumber = BA.ObjectToNumber(this._vvvvvvvvvvvvvvvvvvvvvvv2.Get(Integer.valueOf(i)));
            i++;
            this._c11._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv6(0, i, ObjectToNumber);
            if (ObjectToNumber > d) {
                d = ObjectToNumber;
            }
        }
        int[] iArr = {50, 100, 200, ServiceStarter.ERROR_UNKNOWN, 1000, 2000, 5000, 10000, 20000};
        int i2 = 0;
        while (true) {
            if (i2 > 8) {
                break;
            }
            double d2 = iArr[i2];
            if (d2 > d) {
                this._c11._setvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv7(d2);
                break;
            }
            i2++;
        }
        this._c11._setvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv5("relative to 24 months ago");
        this._c11._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv5();
        return BuildConfig.FLAVOR;
    }

    public String _pn22_chart12_update(long j, boolean z) throws Exception {
        Map map;
        boolean z2;
        Map map2;
        boolean z3;
        boolean z4;
        Map map3;
        String str;
        int i;
        String str2;
        Map map4;
        boolean z5;
        if (z) {
            this._c12._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv4();
        }
        B4XViewWrapper b4XViewWrapper = this._chart12_title;
        String str3 = BuildConfig.FLAVOR;
        _vvvvvvvvvvvv7(b4XViewWrapper, "Earthquake >3km Depth", BuildConfig.FLAVOR, true);
        this._c12._setvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv5(_vvvvvvvvvvvv6("last two years"));
        this._c12._setvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv4(_vvvvvvvvvvvv6("Months"));
        this._c12._setvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv5(_vvvvvvvvvvvv6("Events per Month"));
        DateTime dateTime = Common.DateTime;
        Map map5 = null;
        if (this._vvvvvvvvvvvvvvv5 || this._vvvvvvvvvvvvvvv6 || this._vvvvvvvvvvvvvvv7) {
            this._c12._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1(_vvvvvvvvvvvv6("with magnitude"), this._colour_mappoint_green);
            map = new Map();
            map.Initialize();
            for (int i2 = -24; i2 <= -1; i2++) {
                map.Put(Integer.valueOf(i2), 0);
            }
            z2 = true;
        } else {
            map = null;
            z2 = false;
        }
        if (this._vvvvvvvvvvvvvvvv4) {
            this._c12._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1(_vvvvvvvvvvvv6("last 24 hours"), this._colour_mappoint_red);
            map2 = new Map();
            map2.Initialize();
            for (int i3 = -24; i3 <= -1; i3++) {
                map2.Put(Integer.valueOf(i3), 0);
            }
            z3 = true;
        } else {
            map2 = null;
            z3 = false;
        }
        if (this._vvvvvvvvvvvvvvv0 || this._vvvvvvvvvvvvvvvv1 || this._vvvvvvvvvvvvvvvv2 || this._vvvvvvvvvvvvvvvv3) {
            this._c12._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1(_vvvvvvvvvvvv6("nd magnitude"), this._colour_mappoint_blue);
            map5 = new Map();
            map5.Initialize();
            for (int i4 = -24; i4 <= -1; i4++) {
                map5.Put(Integer.valueOf(i4), 0);
            }
            z4 = true;
        } else {
            z4 = false;
        }
        long j2 = 2592000000L;
        if (this._vvvvvvvvvvvvvvvvvvvvvvv5.getSize() > 0) {
            int size = this._vvvvvvvvvvvvvvvvvvvvvvv5.getSize() - 1;
            int i5 = 0;
            while (i5 <= size) {
                _aneq _aneqVar = (_aneq) this._vvvvvvvvvvvvvvvvvvvvvvv5.Get(i5);
                if (_aneqVar.depth <= 3.0d || _aneqVar.depth == 999.0d) {
                    map4 = map2;
                    z5 = z3;
                } else {
                    double d = j - _aneqVar.timeUTC;
                    map4 = map2;
                    z5 = z3;
                    double d2 = 2592000000L;
                    Double.isNaN(d);
                    Double.isNaN(d2);
                    int Floor = (int) ((Common.Floor(d / d2) + 1.0d) * (-1.0d));
                    if (_aneqVar.magnitude == 999.0d) {
                        if (z4) {
                            map5.Put(Integer.valueOf(Floor), Integer.valueOf((int) (BA.ObjectToNumber(map5.Get(Integer.valueOf(Floor))) + 1.0d)));
                        }
                    } else if (z2) {
                        map.Put(Integer.valueOf(Floor), Integer.valueOf((int) (BA.ObjectToNumber(map.Get(Integer.valueOf(Floor))) + 1.0d)));
                    }
                }
                i5++;
                map2 = map4;
                z3 = z5;
            }
        }
        Map map6 = map2;
        boolean z6 = z3;
        if (this._vvvvvvvvvvvvvvvvvvvvvvv4.getSize() > 0) {
            int size2 = this._vvvvvvvvvvvvvvvvvvvvvvv4.getSize() - 1;
            int i6 = 0;
            while (i6 <= size2) {
                _aneq _aneqVar2 = (_aneq) this._vvvvvvvvvvvvvvvvvvvvvvv4.Get(i6);
                if (_aneqVar2.depth <= 3.0d || _aneqVar2.depth == 999.0d) {
                    i = size2;
                    str2 = str3;
                } else {
                    double d3 = j - _aneqVar2.timeUTC;
                    i = size2;
                    str2 = str3;
                    double d4 = 2592000000L;
                    Double.isNaN(d3);
                    Double.isNaN(d4);
                    int Floor2 = (int) ((Common.Floor(d3 / d4) + 1.0d) * (-1.0d));
                    if (_aneqVar2.magnitude == 999.0d) {
                        if (z4) {
                            map5.Put(Integer.valueOf(Floor2), Integer.valueOf((int) (BA.ObjectToNumber(map5.Get(Integer.valueOf(Floor2))) + 1.0d)));
                        }
                    } else if (z2) {
                        map.Put(Integer.valueOf(Floor2), Integer.valueOf((int) (BA.ObjectToNumber(map.Get(Integer.valueOf(Floor2))) + 1.0d)));
                    }
                }
                i6++;
                str3 = str2;
                size2 = i;
            }
        }
        String str4 = str3;
        if (this._vvvvvvvvvvvvvvvvvvvvvvv3.getSize() > 0) {
            int size3 = this._vvvvvvvvvvvvvvvvvvvvvvv3.getSize() - 1;
            int i7 = 0;
            while (i7 <= size3) {
                _aneq _aneqVar3 = (_aneq) this._vvvvvvvvvvvvvvvvvvvvvvv3.Get(i7);
                if (_aneqVar3.depth <= 3.0d || _aneqVar3.depth == 999.0d) {
                    str = str4;
                } else {
                    double d5 = j - _aneqVar3.timeUTC;
                    str = str4;
                    double d6 = 2592000000L;
                    Double.isNaN(d5);
                    Double.isNaN(d6);
                    int Floor3 = (int) ((Common.Floor(d5 / d6) + 1.0d) * (-1.0d));
                    if (_aneqVar3.magnitude == 999.0d) {
                        if (z4) {
                            map5.Put(Integer.valueOf(Floor3), Integer.valueOf((int) (BA.ObjectToNumber(map5.Get(Integer.valueOf(Floor3))) + 1.0d)));
                        }
                    } else if (z2) {
                        map.Put(Integer.valueOf(Floor3), Integer.valueOf((int) (BA.ObjectToNumber(map.Get(Integer.valueOf(Floor3))) + 1.0d)));
                    }
                }
                i7++;
                str4 = str;
            }
        }
        String str5 = str4;
        if (this._v5.getSize() > 0) {
            int size4 = this._v5.getSize() - 1;
            int i8 = 0;
            while (i8 <= size4) {
                _aneq _aneqVar4 = (_aneq) this._v5.Get(i8);
                if (_aneqVar4.depth > 3.0d && _aneqVar4.depth != 999.0d) {
                    double d7 = j - _aneqVar4.timeUTC;
                    double d8 = j2;
                    Double.isNaN(d7);
                    Double.isNaN(d8);
                    int Floor4 = (int) ((Common.Floor(d7 / d8) + 1.0d) * (-1.0d));
                    if (_aneqVar4.magnitude == 999.0d) {
                        if (z4) {
                            map5.Put(Integer.valueOf(Floor4), Integer.valueOf((int) (BA.ObjectToNumber(map5.Get(Integer.valueOf(Floor4))) + 1.0d)));
                        }
                    } else if (z6) {
                        map3 = map6;
                        map3.Put(Integer.valueOf(Floor4), Integer.valueOf((int) (BA.ObjectToNumber(map3.Get(Integer.valueOf(Floor4))) + 1.0d)));
                        i8++;
                        map6 = map3;
                        j2 = 2592000000L;
                    }
                }
                map3 = map6;
                i8++;
                map6 = map3;
                j2 = 2592000000L;
            }
        }
        Map map7 = map6;
        int i9 = 0;
        for (int i10 = -24; i10 <= -1; i10++) {
            int i11 = 0;
            if (z4) {
                double d9 = 0;
                double ObjectToNumber = BA.ObjectToNumber(map5.Get(Integer.valueOf(i10)));
                Double.isNaN(d9);
                i11 = (int) (d9 + ObjectToNumber);
            }
            if (z2) {
                double d10 = i11;
                double ObjectToNumber2 = BA.ObjectToNumber(map.Get(Integer.valueOf(i10)));
                Double.isNaN(d10);
                i11 = (int) (d10 + ObjectToNumber2);
            }
            if (z6) {
                double d11 = i11;
                double ObjectToNumber3 = BA.ObjectToNumber(map7.Get(Integer.valueOf(i10)));
                Double.isNaN(d11);
                i11 = (int) (d11 + ObjectToNumber3);
            }
            if (i11 > i9) {
                i9 = i11;
            }
        }
        int[] iArr = {50, 100, 200, ServiceStarter.ERROR_UNKNOWN, 1000, 2000, 5000, 10000, 20000};
        int i12 = 0;
        while (true) {
            if (i12 > 8) {
                break;
            }
            int i13 = iArr[i12];
            if (i13 > i9) {
                this._c12._setvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv7(i13);
                break;
            }
            i12++;
        }
        if (z2 && z6 && z4) {
            for (int i14 = -24; i14 <= -1; i14++) {
                this._c12._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv2(BA.NumberToString(i14), new double[]{BA.ObjectToNumber(map.Get(Integer.valueOf(i14))), BA.ObjectToNumber(map7.Get(Integer.valueOf(i14))), BA.ObjectToNumber(map5.Get(Integer.valueOf(i14)))});
            }
        }
        if (z2 && !z6 && z4) {
            for (int i15 = -24; i15 <= -1; i15++) {
                this._c12._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv2(BA.NumberToString(i15), new double[]{BA.ObjectToNumber(map.Get(Integer.valueOf(i15))), BA.ObjectToNumber(map5.Get(Integer.valueOf(i15)))});
            }
        }
        if (z2 && z6 && !z4) {
            for (int i16 = -24; i16 <= -1; i16++) {
                this._c12._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv2(BA.NumberToString(i16), new double[]{BA.ObjectToNumber(map.Get(Integer.valueOf(i16))), BA.ObjectToNumber(map7.Get(Integer.valueOf(i16)))});
            }
        }
        if (z2 && !z6 && !z4) {
            for (int i17 = -24; i17 <= -1; i17++) {
                this._c12._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv2(BA.NumberToString(i17), new double[]{BA.ObjectToNumber(map.Get(Integer.valueOf(i17)))});
            }
        }
        if (!z2 && z6 && z4) {
            for (int i18 = -24; i18 <= -1; i18++) {
                this._c12._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv2(BA.NumberToString(i18), new double[]{BA.ObjectToNumber(map7.Get(Integer.valueOf(i18))), BA.ObjectToNumber(map5.Get(Integer.valueOf(i18)))});
            }
        }
        if (!z2 && z6 && !z4) {
            for (int i19 = -24; i19 <= -1; i19++) {
                this._c12._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv2(BA.NumberToString(i19), new double[]{BA.ObjectToNumber(map7.Get(Integer.valueOf(i19)))});
            }
        }
        if (!z2 && !z6 && z4) {
            for (int i20 = -24; i20 <= -1; i20++) {
                this._c12._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv2(BA.NumberToString(i20), new double[]{BA.ObjectToNumber(map5.Get(Integer.valueOf(i20)))});
            }
        }
        this._c12._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv5();
        return str5;
    }

    public String _pn23_chart13_update(long j, boolean z) throws Exception {
        if (z) {
            this._c13._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv4();
        }
        _vvvvvvvvvvvv7(this._chart13_title, "Earthquake Frequency Index", BuildConfig.FLAVOR, true);
        this._c13._setvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv4(_vvvvvvvvvvvv6("Days"));
        this._c13._setvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv5(_vvvvvvvvvvvv6("Percent"));
        this._c13._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv4(_vvvvvvvvvvvv6(FirebaseAnalytics.Param.INDEX), this._colour_mappoint_green, Common.DipToCurrent(3));
        new Map();
        Map ConvertToWrapper = AbsObjectWrapper.ConvertToWrapper(new Map(), (java.util.Map) this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("fourdayFrequency"));
        BA.IterableList Keys = ConvertToWrapper.Keys();
        int size = Keys.getSize();
        double d = 0.0d;
        double d2 = 0.0d;
        for (int i = 0; i < size; i++) {
            long ObjectToLongNumber = BA.ObjectToLongNumber(Keys.Get(i));
            if (BA.ObjectToNumber(ConvertToWrapper.Get(Long.valueOf(ObjectToLongNumber))) > d2) {
                d2 = BA.ObjectToNumber(ConvertToWrapper.Get(Long.valueOf(ObjectToLongNumber)));
            }
        }
        int[] iArr = {100, 200, ServiceStarter.ERROR_UNKNOWN, 1000};
        int i2 = 0;
        while (true) {
            if (i2 > 3) {
                break;
            }
            int i3 = iArr[i2];
            if (i3 > d2) {
                this._c13._setvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv7(i3);
                break;
            }
            i2++;
        }
        DateTime dateTime = Common.DateTime;
        BA.IterableList Keys2 = ConvertToWrapper.Keys();
        int size2 = Keys2.getSize();
        long j2 = 0;
        for (int i4 = 0; i4 < size2; i4++) {
            long ObjectToLongNumber2 = BA.ObjectToLongNumber(Keys2.Get(i4));
            double d3 = (-1) * (j - ObjectToLongNumber2);
            long j3 = j2;
            double d4 = 86400000L;
            Double.isNaN(d3);
            Double.isNaN(d4);
            double d5 = d3 / d4;
            double ObjectToNumber = BA.ObjectToNumber(ConvertToWrapper.Get(Long.valueOf(ObjectToLongNumber2)));
            this._c13._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv6(0, d5, ObjectToNumber);
            if (ObjectToLongNumber2 > j3) {
                d = ObjectToNumber;
                j2 = (long) d5;
            } else {
                j2 = j3;
            }
        }
        this._c13._setvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv5(_vvvvvvvvvvvv6("current value") + " = " + Common.NumberFormat(d, 0, 0) + "%");
        this._c13._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv5();
        return BuildConfig.FLAVOR;
    }

    public String _pncontent_adjustpanels(B4XViewWrapper b4XViewWrapper, int i) throws Exception {
        b4XViewWrapper.setHeight(b4XViewWrapper.getHeight() + i);
        new PanelWrapper();
        PanelWrapper ConvertToWrapper = AbsObjectWrapper.ConvertToWrapper(new PanelWrapper(), (ViewGroup) b4XViewWrapper.getParent().getObject());
        ConvertToWrapper.setHeight(ConvertToWrapper.getHeight() + i);
        new B4XViewWrapper();
        int numberOfViews = this._sv.getPanel().getNumberOfViews() - 1;
        for (int i2 = 0; i2 <= numberOfViews; i2++) {
            B4XViewWrapper ConvertToWrapper2 = AbsObjectWrapper.ConvertToWrapper(new B4XViewWrapper(), this._sv.getPanel().GetView(i2).getObject());
            if (ConvertToWrapper2.getTop() > ConvertToWrapper.getTop()) {
                ConvertToWrapper2.setTop(ConvertToWrapper2.getTop() + i);
            }
        }
        this._sv.getPanel().setHeight(this._sv.getPanel().getHeight() + i);
        return BuildConfig.FLAVOR;
    }

    public String _pncontent_adjustviewsbelow(B4XViewWrapper b4XViewWrapper, B4XViewWrapper b4XViewWrapper2, int i) throws Exception {
        new B4XViewWrapper();
        int numberOfViews = b4XViewWrapper.getNumberOfViews() - 1;
        for (int i2 = 0; i2 <= numberOfViews; i2++) {
            B4XViewWrapper GetView = b4XViewWrapper.GetView(i2);
            if (GetView.getTop() > b4XViewWrapper2.getTop()) {
                GetView.setTop(GetView.getTop() + i);
            }
        }
        return BuildConfig.FLAVOR;
    }

    public String _pncontent_insertpanel(String str, B4XViewWrapper b4XViewWrapper, boolean z) throws Exception {
        new ConcreteViewWrapper();
        PanelWrapper panel = this._sv.getPanel();
        int size = panel.getSize();
        for (int i = 0; i < size; i++) {
            ConcreteViewWrapper ConvertToWrapper = AbsObjectWrapper.ConvertToWrapper(new ConcreteViewWrapper(), (View) panel.Get(i));
            if (ConvertToWrapper.getTag().equals(str)) {
                int top = ConvertToWrapper.getTop();
                int height = b4XViewWrapper.getHeight() + this._size_panelmargin;
                new ConcreteViewWrapper();
                PanelWrapper panel2 = this._sv.getPanel();
                int size2 = panel2.getSize();
                for (int i2 = 0; i2 < size2; i2++) {
                    ConcreteViewWrapper ConvertToWrapper2 = AbsObjectWrapper.ConvertToWrapper(new ConcreteViewWrapper(), (View) panel2.Get(i2));
                    if (ConvertToWrapper2.getTop() >= ConvertToWrapper.getTop()) {
                        ConvertToWrapper2.setTop(ConvertToWrapper2.getTop() + height);
                    }
                }
                this._sv.getPanel().setHeight(this._sv.getPanel().getHeight() + height);
                if (z) {
                    this._sv.getPanel().AddView((View) b4XViewWrapper.getObject(), Common.DipToCurrent(0), top, b4XViewWrapper.getWidth(), b4XViewWrapper.getHeight());
                } else {
                    this._sv.getPanel().AddView((View) b4XViewWrapper.getObject(), this._size_panelmargin, top, b4XViewWrapper.getWidth(), b4XViewWrapper.getHeight());
                }
                this._vvvvvvvvvvvvvv3.Add(b4XViewWrapper.getTag());
            }
        }
        return BuildConfig.FLAVOR;
    }

    public String _pncontent_remove(String str) throws Exception {
        int i;
        int i2;
        new PanelWrapper();
        PanelWrapper panel = this._sv.getPanel();
        int size = panel.getSize();
        int i3 = 0;
        while (true) {
            if (i3 >= size) {
                i = 0;
                i2 = 0;
                break;
            }
            PanelWrapper ConvertToWrapper = AbsObjectWrapper.ConvertToWrapper(new PanelWrapper(), (ViewGroup) panel.Get(i3));
            if (ConvertToWrapper.getTag().equals(str)) {
                i = ConvertToWrapper.getTop();
                i2 = ConvertToWrapper.getHeight() + this._size_panelmargin;
                Common.LogImpl("82490381", "panel to be removed: tag = " + BA.ObjectToString(ConvertToWrapper.getTag()), 0);
                ConvertToWrapper.RemoveView();
                break;
            }
            i3++;
        }
        if (i > 0) {
            new PanelWrapper();
            PanelWrapper panel2 = this._sv.getPanel();
            int size2 = panel2.getSize();
            for (int i4 = 0; i4 < size2; i4++) {
                PanelWrapper ConvertToWrapper2 = AbsObjectWrapper.ConvertToWrapper(new PanelWrapper(), (ViewGroup) panel2.Get(i4));
                if (ConvertToWrapper2.getTop() > i) {
                    ConvertToWrapper2.setTop(ConvertToWrapper2.getTop() - i2);
                }
            }
            this._sv.getPanel().setHeight(this._sv.getPanel().getHeight() - i2);
        }
        this._vvvvvvvvvvvvvv3.Clear();
        new PanelWrapper();
        PanelWrapper panel3 = this._sv.getPanel();
        int size3 = panel3.getSize();
        for (int i5 = 0; i5 < size3; i5++) {
            this._vvvvvvvvvvvvvv3.Add(AbsObjectWrapper.ConvertToWrapper(new PanelWrapper(), (ViewGroup) panel3.Get(i5)).getTag());
        }
        return BuildConfig.FLAVOR;
    }

    public String _pncontent_setup(int i) throws Exception {
        new B4XViewWrapper();
        B4XViewWrapper CreatePanel = B4XViewWrapper.XUI.CreatePanel(this.ba, BuildConfig.FLAVOR);
        if (i < 3) {
            CreatePanel.SetLayoutAnimated(0, Common.DipToCurrent(0), Common.DipToCurrent(0), this._sv.getPanel().getWidth(), Common.DipToCurrent(50));
        } else {
            int DipToCurrent = Common.DipToCurrent(0);
            int DipToCurrent2 = Common.DipToCurrent(0);
            int width = this._sv.getPanel().getWidth() - (this._size_panelmargin * 2);
            double width2 = this._sv.getPanel().getWidth();
            Double.isNaN(width2);
            CreatePanel.SetLayoutAnimated(0, DipToCurrent, DipToCurrent2, width, (int) (width2 * 0.9d));
        }
        switch (i) {
            case 1:
                CreatePanel.LoadLayout("layout_pn01_apptitle", this.ba);
                CreatePanel.setTag("title");
                break;
            case 2:
                CreatePanel.LoadLayout("layout_pn02_titleimage", this.ba);
                CreatePanel.setHeight(this._pntitleimage.getHeight());
                CreatePanel.setTag("image");
                break;
            case 3:
                CreatePanel.LoadLayout("layout_pnalert", this.ba);
                CreatePanel.setHeight(this._pnalert.getHeight() + Common.DipToCurrent(10));
                CreatePanel.setTag("alert");
                break;
            case 4:
                CreatePanel.LoadLayout("layout_pnhistory", this.ba);
                CreatePanel.setHeight(this._pnhistory.getHeight() + Common.DipToCurrent(10));
                CreatePanel.setTag("history");
                break;
            case 5:
                CreatePanel.LoadLayout("layout_pnhazard", this.ba);
                CreatePanel.setHeight(this._pnhazard.getHeight() + Common.DipToCurrent(10));
                CreatePanel.setTag("hazard");
                break;
            case 6:
                CreatePanel.LoadLayout("layout_pnwebcam", this.ba);
                CreatePanel.setHeight(this._pnwebcam.getHeight() + Common.DipToCurrent(10));
                CreatePanel.setTag("webcam");
                break;
            case 7:
                CreatePanel.LoadLayout("layout_pnchat", this.ba);
                CreatePanel.setHeight(this._pnchat.getHeight() + Common.DipToCurrent(10));
                CreatePanel.setTag("chat");
                break;
            case 8:
                CreatePanel.LoadLayout("layout_pnevents", this.ba);
                CreatePanel.setHeight(this._pnevents.getHeight() + Common.DipToCurrent(10));
                CreatePanel.setTag("events_list");
                break;
            case 9:
                CreatePanel.LoadLayout("layout_pnevents_map", this.ba);
                CreatePanel.setHeight(this._pneventsmap.getHeight() + Common.DipToCurrent(10));
                CreatePanel.setTag("events_map");
                break;
            case 11:
                CreatePanel.LoadLayout("layout_chart1", this.ba);
                CreatePanel.setHeight(CreatePanel.getHeight() + Common.DipToCurrent(10));
                CreatePanel.setTag("chart1");
                break;
            case 12:
                CreatePanel.LoadLayout("layout_chart2", this.ba);
                CreatePanel.setHeight(CreatePanel.getHeight() + Common.DipToCurrent(10));
                CreatePanel.setTag("chart2");
                break;
            case 13:
                CreatePanel.LoadLayout("layout_chart3", this.ba);
                CreatePanel.setHeight(CreatePanel.getHeight() + Common.DipToCurrent(10));
                CreatePanel.setTag("chart3");
                break;
            case 14:
                CreatePanel.LoadLayout("layout_chart4", this.ba);
                CreatePanel.setHeight(CreatePanel.getHeight() + Common.DipToCurrent(10));
                CreatePanel.setTag("chart4");
                break;
            case 15:
                CreatePanel.LoadLayout("layout_chart5", this.ba);
                CreatePanel.setHeight(CreatePanel.getHeight() + Common.DipToCurrent(10));
                CreatePanel.setTag("chart5");
                break;
            case 16:
                CreatePanel.LoadLayout("layout_chart6", this.ba);
                CreatePanel.setHeight(CreatePanel.getHeight() + Common.DipToCurrent(10));
                CreatePanel.setTag("chart6");
                break;
            case 17:
                CreatePanel.LoadLayout("layout_chart7", this.ba);
                CreatePanel.setHeight(CreatePanel.getHeight() + Common.DipToCurrent(10));
                CreatePanel.setTag("chart7");
                break;
            case 18:
                CreatePanel.LoadLayout("layout_chart8", this.ba);
                CreatePanel.setHeight(CreatePanel.getHeight() + Common.DipToCurrent(10));
                CreatePanel.setTag("chart8");
                break;
            case 19:
                CreatePanel.LoadLayout("layout_chart9", this.ba);
                CreatePanel.setHeight(CreatePanel.getHeight() + Common.DipToCurrent(10));
                CreatePanel.setTag("chart9");
                break;
            case 20:
                CreatePanel.LoadLayout("layout_chart10", this.ba);
                CreatePanel.setHeight(CreatePanel.getHeight() + Common.DipToCurrent(10));
                CreatePanel.setTag("chart10");
                break;
            case 21:
                CreatePanel.LoadLayout("layout_chart11", this.ba);
                CreatePanel.setHeight(CreatePanel.getHeight() + Common.DipToCurrent(10));
                CreatePanel.setTag("chart11");
                break;
            case 22:
                CreatePanel.LoadLayout("layout_chart12", this.ba);
                CreatePanel.setHeight(CreatePanel.getHeight() + Common.DipToCurrent(10));
                CreatePanel.setTag("chart12");
                break;
            case 23:
                CreatePanel.LoadLayout("layout_chart13", this.ba);
                CreatePanel.setHeight(CreatePanel.getHeight() + Common.DipToCurrent(10));
                CreatePanel.setTag("chart13");
                break;
        }
        this._vvvvvvvvvvvvvv3.Add(CreatePanel.getTag());
        if (i == 1 || i == 2) {
            this._sv.getPanel().setHeight(this._sv.getPanel().getHeight() + CreatePanel.getHeight());
            this._sv.getPanel().AddView((View) CreatePanel.getObject(), Common.DipToCurrent(0), this._sv.getPanel().getHeight() - CreatePanel.getHeight(), CreatePanel.getWidth(), CreatePanel.getHeight());
        } else if (i == 5) {
            CreatePanel.SetColorAndBorder(this._colour_panelbackground, Common.DipToCurrent(0), this._colour_panelbackground, this._size_cornerradius);
            _pncontent_insertpanel("webcam", CreatePanel, false);
        } else if (i == 8) {
            CreatePanel.SetColorAndBorder(this._colour_panelbackground, Common.DipToCurrent(0), this._colour_panelbackground, this._size_cornerradius);
            _pncontent_insertpanel("events_map", CreatePanel, false);
        } else {
            CreatePanel.SetColorAndBorder(this._colour_panelbackground, Common.DipToCurrent(0), this._colour_panelbackground, this._size_cornerradius);
            this._sv.getPanel().setHeight(this._sv.getPanel().getHeight() + this._size_panelmargin + CreatePanel.getHeight());
            this._sv.getPanel().AddView((View) CreatePanel.getObject(), this._size_panelmargin, this._sv.getPanel().getHeight() - CreatePanel.getHeight(), CreatePanel.getWidth(), CreatePanel.getHeight());
            if (i == 23) {
                this._sv.getPanel().setHeight(this._sv.getPanel().getHeight() + this._size_panelmargin);
            }
        }
        return BuildConfig.FLAVOR;
    }

    public boolean _vvvvvvvvvvvv2(MapFragmentWrapper.LatLngWrapper latLngWrapper, List list) throws Exception {
        new MapFragmentWrapper.LatLngWrapper();
        new MapFragmentWrapper.LatLngWrapper();
        new MapFragmentWrapper.LatLngWrapper();
        int size = list.getSize() - 1;
        int i = 0;
        boolean z = false;
        while (i <= size) {
            MapFragmentWrapper.LatLngWrapper ConvertToWrapper = AbsObjectWrapper.ConvertToWrapper(new MapFragmentWrapper.LatLngWrapper(), (LatLng) list.Get(i));
            i++;
            MapFragmentWrapper.LatLngWrapper latLngWrapper2 = (MapFragmentWrapper.LatLngWrapper) AbsObjectWrapper.ConvertToWrapper(new MapFragmentWrapper.LatLngWrapper(), (LatLng) list.Get(i == list.getSize() ? 0 : i));
            if (latLngWrapper2.getLatitude() < ConvertToWrapper.getLatitude()) {
                latLngWrapper2 = ConvertToWrapper;
                ConvertToWrapper = latLngWrapper2;
            }
            if (_vvvvvvvvvvvv3((float) latLngWrapper.getLatitude(), (float) ConvertToWrapper.getLatitude(), (float) latLngWrapper2.getLatitude(), (float) latLngWrapper.getLongitude(), (float) ConvertToWrapper.getLongitude(), (float) latLngWrapper2.getLongitude())) {
                z = Common.Not(z);
            }
        }
        return z;
    }

    public boolean _vvvvvvvvvvvv3(float f, float f2, float f3, float f4, float f5, float f6) throws Exception {
        float f7;
        boolean z;
        boolean z2;
        float f8 = f;
        if (f8 == f2 || f8 == f3) {
            double d = f8;
            Double.isNaN(d);
            f8 = (float) (d + 1.0E-5d);
        }
        if (f8 >= f2 && f8 <= f3) {
            double d2 = f4;
            double d3 = f5;
            double d4 = f6;
            if (d2 > Common.Max(d3, d4)) {
                return false;
            }
            if (d2 < Common.Min(d3, d4)) {
                return true;
            }
            float f9 = BitmapDescriptorFactory.HUE_RED;
            if (f5 != f6) {
                double d5 = f3 - f2;
                double d6 = f6 - f5;
                Double.isNaN(d5);
                Double.isNaN(d6);
                f7 = (float) (d5 / d6);
                z = false;
            } else {
                f7 = BitmapDescriptorFactory.HUE_RED;
                z = true;
            }
            if (f5 != f4) {
                double d7 = f8 - f2;
                double d8 = f4 - f5;
                Double.isNaN(d7);
                Double.isNaN(d8);
                f9 = (float) (d7 / d8);
                z2 = false;
            } else {
                z2 = true;
            }
            if (z2) {
                return true;
            }
            if (!z && f9 >= f7) {
                return true;
            }
        }
        return false;
    }

    public String _rboverlay_checkedchange(boolean z) throws Exception {
        new CompoundButtonWrapper.CheckBoxWrapper();
        CompoundButtonWrapper.CheckBoxWrapper ConvertToWrapper = AbsObjectWrapper.ConvertToWrapper(new CompoundButtonWrapper.CheckBoxWrapper(), (CheckBox) Common.Sender(this.ba));
        new ImageViewWrapper();
        ImageViewWrapper ConvertToWrapper2 = AbsObjectWrapper.ConvertToWrapper(new ImageViewWrapper(), (ImageView) ConvertToWrapper.getTag());
        if (z) {
            ConvertToWrapper2.setVisible(true);
            return BuildConfig.FLAVOR;
        }
        ConvertToWrapper2.setVisible(false);
        return BuildConfig.FLAVOR;
    }

    public String _vvvvvvvvvvvv4() throws Exception {
        List list = new List();
        list.Initialize();
        if (this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("DailyUse") != null) {
            list = (List) AbsObjectWrapper.ConvertToWrapper(new List(), (java.util.List) this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("DailyUse"));
        }
        if (list.getSize() > 0) {
            List list2 = new List();
            list2.Initialize();
            DateTime dateTime = Common.DateTime;
            long now = DateTime.getNow();
            DateTime dateTime2 = Common.DateTime;
            long j = now - 2592000000L;
            int size = list.getSize() - 1;
            for (int i = 0; i <= size; i++) {
                long ObjectToLongNumber = BA.ObjectToLongNumber(list.Get(i));
                if (ObjectToLongNumber > j) {
                    list2.Add(Long.valueOf(ObjectToLongNumber));
                }
            }
            list = list2;
        }
        DateTime dateTime3 = Common.DateTime;
        list.Add(Long.valueOf(DateTime.getNow()));
        this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvvv4("DailyUse", list.getObject());
        return BuildConfig.FLAVOR;
    }

    public String _set_average_eqtransmissiontime() throws Exception {
        if (this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("eqTransitTimes") != null) {
            new Map();
            Map ConvertToWrapper = AbsObjectWrapper.ConvertToWrapper(new Map(), (java.util.Map) this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("eqTransitTimes"));
            DateTime dateTime = Common.DateTime;
            BA.IterableList Keys = ConvertToWrapper.Keys();
            int size = Keys.getSize();
            long j = 86400000;
            for (int i = 0; i < size; i++) {
                long ObjectToLongNumber = BA.ObjectToLongNumber(Keys.Get(i));
                if (BA.ObjectToNumber(ConvertToWrapper.Get(Long.valueOf(ObjectToLongNumber))) < j) {
                    j = BA.ObjectToLongNumber(ConvertToWrapper.Get(Long.valueOf(ObjectToLongNumber)));
                }
            }
            double d = j;
            DateTime dateTime2 = Common.DateTime;
            Double.isNaN(d);
            Common.LogImpl("81900559", "lowest transmit time last 24 hours = " + Common.NumberFormat(d / 1000.0d, 1, 1) + " seconds (num times = " + BA.NumberToString(ConvertToWrapper.getSize()) + ")", 0);
            return BuildConfig.FLAVOR;
        }
        return BuildConfig.FLAVOR;
    }

    public String _set_hazardzonepolygons() throws Exception {
        int i;
        this._vvvvvvvvvvvvvvvvv1.Initialize();
        new SQL.ResultSetWrapper();
        SQL.ResultSetWrapper ConvertToWrapper = AbsObjectWrapper.ConvertToWrapper(new SQL.ResultSetWrapper(), this._vvvvvvvvvvvvv0.ExecQuery("Select Zone, Colour, MapFile From Volcano_Hazard_Zones Where Volcano = '" + this._vvvvvvvvvvvvv4 + "'"));
        while (ConvertToWrapper.NextRow()) {
            _ahazardzone _ahazardzoneVar = new _ahazardzone();
            _ahazardzoneVar.Initialize();
            _ahazardzoneVar.volcName = this._vvvvvvvvvvvvv4;
            _ahazardzoneVar.zoneName = ConvertToWrapper.GetString("Zone");
            _ahazardzoneVar.zonePolygonColour = ConvertToWrapper.GetInt("Colour");
            _ahazardzoneVar.zonePolygonParts.Initialize();
            String GetString = ConvertToWrapper.GetString("MapFile");
            _apolygonpart _apolygonpartVar = new _apolygonpart();
            _apolygonpartVar.Initialize();
            _apolygonpartVar.outerMarginVertices.Initialize();
            List list = new List();
            list.Initialize();
            File file = Common.File;
            List LoadCSV = StringUtils.LoadCSV(File.getDirAssets(), "extras/" + GetString, BA.ObjectToChar(","));
            int size = LoadCSV.getSize();
            int i2 = 0;
            int i3 = 0;
            int i4 = 0;
            int i5 = 0;
            while (i2 < size) {
                String[] strArr = (String[]) LoadCSV.Get(i2);
                int i6 = i3 + 1;
                if (i6 == 1) {
                    i4 = (int) Double.parseDouble(strArr[2]);
                    i = i2;
                    i5 = (int) Double.parseDouble(strArr[3]);
                } else {
                    i = i2;
                }
                if (!strArr[2].equals(BA.NumberToString(i4))) {
                    if (_apolygonpartVar.outerMarginVertices.getSize() > 0) {
                        if (list.getSize() > 0) {
                            _apolygonpartVar.innerHoles.Add(list.getObject());
                            list.Initialize();
                        }
                        _ahazardzoneVar.zonePolygonParts.Add(_apolygonpartVar);
                        _apolygonpartVar.Initialize();
                        _apolygonpartVar.outerMarginVertices.Initialize();
                    }
                    i4 = (int) Double.parseDouble(strArr[2]);
                }
                if (strArr[2].equals(BA.NumberToString(i4)) && !strArr[3].equals(BA.NumberToString(i5))) {
                    if (list.getSize() > 0) {
                        _apolygonpartVar.innerHoles.Add(list.getObject());
                    }
                    list.Initialize();
                    i5 = (int) Double.parseDouble(strArr[3]);
                }
                MapFragmentWrapper.LatLngWrapper latLngWrapper = new MapFragmentWrapper.LatLngWrapper();
                latLngWrapper.Initialize(Double.parseDouble(strArr[1]), Double.parseDouble(strArr[0]));
                if (strArr[3].equals(BA.NumberToString(0))) {
                    _apolygonpartVar.outerMarginVertices.Add(latLngWrapper.getObject());
                } else {
                    list.Add(latLngWrapper.getObject());
                }
                i2 = i + 1;
                i3 = i6;
            }
            if (list.getSize() > 0) {
                _apolygonpartVar.innerHoles.Add(list.getObject());
            }
            if (_apolygonpartVar.outerMarginVertices.getSize() > 0) {
                _ahazardzoneVar.zonePolygonParts.Add(_apolygonpartVar);
            }
            if (_ahazardzoneVar.zonePolygonParts.getSize() > 0) {
                this._vvvvvvvvvvvvvvvvv1.Add(_ahazardzoneVar);
            }
        }
        return BuildConfig.FLAVOR;
    }

    public String _set_intromessages() throws Exception {
        new SQL.ResultSetWrapper();
        SQL.ResultSetWrapper ConvertToWrapper = AbsObjectWrapper.ConvertToWrapper(new SQL.ResultSetWrapper(), this._vvvvvvvvvvvvv0.ExecQuery("Select Item_ID, Title_" + this._vvvvvvvvvvvvvvvvv4 + " as Title, Description_" + this._vvvvvvvvvvvvvvvvv4 + " as Description From App_IntroText Where App_Title = '" + this._vvvvvvvvvvvvvv4 + "' And Theme = 'Introduction'"));
        while (ConvertToWrapper.NextRow()) {
            _anintromsg _anintromsgVar = new _anintromsg();
            _anintromsgVar.title = ConvertToWrapper.GetString("Title");
            _anintromsgVar.message = ConvertToWrapper.GetString("Description");
            this._vvvvvvvvvvvvvvvvv6.Put(ConvertToWrapper.GetString("Item_ID"), _anintromsgVar);
        }
        return BuildConfig.FLAVOR;
    }

    public String _set_settings_webcam() throws Exception {
        new SQL.ResultSetWrapper();
        SQL.ResultSetWrapper ConvertToWrapper = AbsObjectWrapper.ConvertToWrapper(new SQL.ResultSetWrapper(), this._vvvvvvvvvvvvv0.ExecQuery("Select URL, ViewType, Caption_" + this._vvvvvvvvvvvvvvvvv4 + " as Caption, Aspect, Extract_url, View_Name, View_URL, Overlay_FileName, Video_FileName From Volcano_Webcams Where Volcano = '" + this._vvvvvvvvvvvvv4 + "' and Status = 'On'"));
        while (ConvertToWrapper.NextRow()) {
            Map map = new Map();
            map.Initialize();
            map.Put("volcano", this._vvvvvvvvvvvvv4);
            map.Put("url", ConvertToWrapper.GetString("URL"));
            map.Put("viewtype", ConvertToWrapper.GetString("ViewType"));
            map.Put("caption", ConvertToWrapper.GetString("Caption"));
            map.Put("overlay_filename", ConvertToWrapper.GetString("Overlay_FileName"));
            map.Put("aspect", ConvertToWrapper.GetDouble("Aspect"));
            map.Put("extract_url", ConvertToWrapper.GetString("Extract_url"));
            map.Put("sponsor", ConvertToWrapper.GetString("View_Name"));
            map.Put("sponsor_url", ConvertToWrapper.GetString("View_URL"));
            map.Put("video_filename", ConvertToWrapper.GetString("Video_FileName"));
            this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvvv4("Volcano_Cam", map.getObject());
            this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvvv4("Video_Filename", ConvertToWrapper.GetString("Video_FileName"));
        }
        return BuildConfig.FLAVOR;
    }

    public String _set_translations() throws Exception {
        this._vvvvvvvvvvvvvvvvvvv1.Clear();
        this._maptr_unused.Clear();
        new SQL.ResultSetWrapper();
        SQL.ResultSetWrapper ConvertToWrapper = AbsObjectWrapper.ConvertToWrapper(new SQL.ResultSetWrapper(), this._vvvvvvvvvvvvv0.ExecQuery("Select EN, " + this._vvvvvvvvvvvvvvvvv4 + " from App_Translations"));
        while (ConvertToWrapper.NextRow()) {
            this._vvvvvvvvvvvvvvvvvvv1.Put(ConvertToWrapper.GetString("EN"), ConvertToWrapper.GetString(this._vvvvvvvvvvvvvvvvv4));
            this._maptr_unused.Put(ConvertToWrapper.GetString("EN"), false);
        }
        return BuildConfig.FLAVOR;
    }

    public void _sw_ndon_valuechanged(boolean z) throws Exception {
        new ResumableSub_sw_ndOn_ValueChanged(this, z).resume(this.ba, null);
    }

    public static class ResumableSub_sw_ndOn_ValueChanged extends BA.ResumableSub {
        boolean _result = false;
        boolean _value;
        b4xmainpage parent;

        public ResumableSub_sw_ndOn_ValueChanged(b4xmainpage b4xmainpageVar, boolean z) {
            this.parent = b4xmainpageVar;
            this._value = z;
        }

        public void resume(BA ba, Object[] objArr) throws Exception {
            while (true) {
                int i = this.state;
                if (i == -1) {
                    return;
                }
                if (i == 0) {
                    this.state = -1;
                    Common common = this.parent.__c;
                    Common.WaitFor("complete", ba, this, this.parent._pn09_todaymap_plotbitmaps());
                    this.state = 1;
                    return;
                }
                if (i == 1) {
                    this.state = -1;
                    this._result = ((Boolean) objArr[0]).booleanValue();
                }
            }
        }
    }

    public void _vvvvvvvvvvvv5(long j) throws Exception {
        new ResumableSub_TellOtherDevicesAboutFeltEQ(this, j).resume(this.ba, null);
    }

    public static class ResumableSub_TellOtherDevicesAboutFeltEQ extends BA.ResumableSub {
        long _reporttime;
        b4xmainpage parent;
        Map _fcm_m = null;
        Common.ResumableSubWrapper _rs = null;
        boolean _result = false;

        public ResumableSub_TellOtherDevicesAboutFeltEQ(b4xmainpage b4xmainpageVar, long j) {
            this.parent = b4xmainpageVar;
            this._reporttime = j;
        }

        public void resume(BA ba, Object[] objArr) throws Exception {
            while (true) {
                int i = this.state;
                if (i == -1) {
                    return;
                }
                if (i == 0) {
                    this.state = -1;
                    Common common = this.parent.__c;
                    Common.LogImpl("88716290", "TellOtherDevicesAboutFeltEQ", 0);
                    this._fcm_m = new Map();
                    Common common2 = this.parent.__c;
                    Map createMap = Common.createMap(new Object[]{"volcano", this.parent._vvvvvvvvvvvvv4});
                    this._fcm_m = createMap;
                    createMap.Put("reporttime", Long.valueOf(this._reporttime));
                    this._fcm_m.Put("easting", Integer.valueOf((int) BA.ObjectToNumber(this.parent._vvvvvvvvvvvvvvvv5.Get("FeltReport_Easting"))));
                    this._fcm_m.Put("northing", Integer.valueOf((int) BA.ObjectToNumber(this.parent._vvvvvvvvvvvvvvvv5.Get("FeltReport_Northing"))));
                    this._fcm_m.Put("zoneutm", Integer.valueOf((int) BA.ObjectToNumber(this.parent._vvvvvvvvvvvvvvvv5.Get("FeltReport_ZoneUTM"))));
                    this._fcm_m.Put("hemisphere", BA.ObjectToString(this.parent._vvvvvvvvvvvvvvvv5.Get("FeltReport_Hemisphere")));
                    this._fcm_m.Put("appversion", this.parent._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("appVer"));
                    this._fcm_m.Put("source", "MainPage");
                    this._rs = new Common.ResumableSubWrapper();
                    this._rs = this.parent._fcm_sendfeltreport("EQ Felt", AbsObjectWrapper.ConvertToWrapper(new JSONParser.JSONConverter(), this._fcm_m.getObject()).ToString());
                    Common common3 = this.parent.__c;
                    Common.WaitFor("complete", ba, this, this._rs);
                    this.state = 1;
                    return;
                }
                if (i == 1) {
                    this.state = -1;
                    this._result = ((Boolean) objArr[0]).booleanValue();
                    Common common4 = this.parent.__c;
                    Common.LogImpl("88716305", "TellOtherDevicesAboutFeltEQ Result = " + BA.ObjectToString(Boolean.valueOf(this._result)), 0);
                }
            }
        }
    }

    public String _timerplotbytime_tick() throws Exception {
        _aplotpoint _aplotpointVar = (_aplotpoint) this._vvvvvvvvvvvvvvvvvv6.Get(this._vvvvvvvvvvvvvvvvvv4);
        if (_aplotpointVar.id == (this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("lastEventId") != null ? (int) BA.ObjectToNumber(this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("lastEventId")) : 0)) {
            new CanvasWrapper.PathWrapper();
            double d = _aplotpointVar.X;
            double d2 = _aplotpointVar.Y;
            double d3 = _aplotpointVar.r;
            Double.isNaN(d3);
            this._vvvvvvvvvvvvvvvvvvvvvv3.DrawPath(AbsObjectWrapper.ConvertToWrapper(new B4XCanvas.B4XPath(), (Path) _vvvvvvvvvvv2(d, d2, (float) (d3 * 2.2d)).getObject()), _aplotpointVar.rimCol, true, Common.DipToCurrent(1));
            new CanvasWrapper.PathWrapper();
            double d4 = _aplotpointVar.X;
            double d5 = _aplotpointVar.Z;
            double d6 = _aplotpointVar.r;
            Double.isNaN(d6);
            this._vvvvvvvvvvvvvvvvvvvvvv4.DrawPath(AbsObjectWrapper.ConvertToWrapper(new B4XCanvas.B4XPath(), (Path) _vvvvvvvvvvv2(d4, d5, (float) (d6 * 2.2d)).getObject()), _aplotpointVar.rimCol, true, Common.DipToCurrent(1));
        } else {
            this._vvvvvvvvvvvvvvvvvvvvvv3.DrawCircle((float) _aplotpointVar.X, (float) _aplotpointVar.Y, _aplotpointVar.r, _aplotpointVar.fillCol, true, Common.DipToCurrent(1));
            this._vvvvvvvvvvvvvvvvvvvvvv3.DrawCircle((float) _aplotpointVar.X, (float) _aplotpointVar.Y, _aplotpointVar.r, _aplotpointVar.rimCol, false, Common.DipToCurrent(1));
            this._vvvvvvvvvvvvvvvvvvvvvv4.DrawCircle((float) _aplotpointVar.X, (float) _aplotpointVar.Z, _aplotpointVar.r, _aplotpointVar.fillCol, true, Common.DipToCurrent(1));
            this._vvvvvvvvvvvvvvvvvvvvvv4.DrawCircle((float) _aplotpointVar.X, (float) _aplotpointVar.Z, _aplotpointVar.r, _aplotpointVar.rimCol, false, Common.DipToCurrent(1));
        }
        this._vvvvvvvvvvvvvvvvvvvvvv3.Invalidate();
        this._vvvvvvvvvvvvvvvvvvvvvv4.Invalidate();
        int i = this._vvvvvvvvvvvvvvvvvv4 + 1;
        this._vvvvvvvvvvvvvvvvvv4 = i;
        if (i > this._pointindex_max) {
            this._vvvvvvvvvvvvvvvvvv3.setEnabled(false);
            this._events_rotate_auto.setEnabled(true);
            this._events_rotate_step.setEnabled(true);
            this._events_plotbytime.setEnabled(true);
            this._events_rotate_auto.setTextColor(-14774017);
            this._events_rotate_step.setTextColor(-14774017);
            this._events_plotbytime.setTextColor(-14774017);
            return BuildConfig.FLAVOR;
        }
        return BuildConfig.FLAVOR;
    }

    public String _timertime_tick() throws Exception {
        if (this._events_clv._getsize() > 0) {
            _pn08_todaylist_updatetimeago();
            _pn08_todaylist_adjustline1();
            return BuildConfig.FLAVOR;
        }
        return BuildConfig.FLAVOR;
    }

    public String _timerwebcam_progressbar(boolean z) throws Exception {
        if (z) {
            this._pb_webcam.setVisible(true);
            this._pb_webcam.setEnabled(true);
            return BuildConfig.FLAVOR;
        }
        this._pb_webcam.setEnabled(false);
        this._pb_webcam.setVisible(false);
        return BuildConfig.FLAVOR;
    }

    public String _timerwebcam_start(boolean z) throws Exception {
        if (z) {
            if (!this._vvvvvvvvvvvvvvvvvv1.IsInitialized()) {
                this._vvvvvvvvvvvvvvvvvv1.Initialize(this.ba, "timerWebCam", 120000L);
            }
            if (!this._vvvvvvvvvvvvvvvvvv1.getEnabled()) {
                this._vvvvvvvvvvvvvvvvvv1.setEnabled(true);
                return BuildConfig.FLAVOR;
            }
            return BuildConfig.FLAVOR;
        }
        if (this._vvvvvvvvvvvvvvvvvv1.IsInitialized() && this._vvvvvvvvvvvvvvvvvv1.getEnabled()) {
            this._vvvvvvvvvvvvvvvvvv1.setEnabled(false);
            return BuildConfig.FLAVOR;
        }
        return BuildConfig.FLAVOR;
    }

    public String _timerwebcam_tick() throws Exception {
        Common.StartReceiver(this.ba, webcamload.getObject());
        _pn06_webcam_update_video();
        return BuildConfig.FLAVOR;
    }

    public String _vvvvvvvvvvvv6(String str) throws Exception {
        if (this._vvvvvvvvvvvvvvvvv4.equals("EN")) {
            return str;
        }
        if (this._vvvvvvvvvvvvvvvvvvv1.Get(str) == null) {
            Common.LogImpl("87536645", "Missing translation: " + str, 0);
            return str;
        }
        this._maptr_unused.Put(str, true);
        return BA.ObjectToString(this._vvvvvvvvvvvvvvvvvvv1.Get(str));
    }

    public int _vvvvvvvvvvvv7(B4XViewWrapper b4XViewWrapper, String str, String str2, boolean z) throws Exception {
        int DipToCurrent = Common.DipToCurrent(0);
        if (!this._vvvvvvvvvvvvvvvvv4.equals("EN")) {
            if (this._vvvvvvvvvvvvvvvvvvv1.Get(str) == null) {
                Common.LogImpl("87602183", "Missing translation: " + str, 0);
            } else {
                this._maptr_unused.Put(str, true);
                str = BA.ObjectToString(this._vvvvvvvvvvvvvvvvvvv1.Get(str));
            }
        }
        b4XViewWrapper.setText(BA.ObjectToCharSequence(str));
        if (!str2.equals(BuildConfig.FLAVOR)) {
            b4XViewWrapper.setText(BA.ObjectToCharSequence(b4XViewWrapper.getText() + str2));
        }
        if (z) {
            _vvvvvvvvvvv7(b4XViewWrapper);
            return DipToCurrent;
        }
        int height = b4XViewWrapper.getHeight();
        int MeasureMultilineTextHeight = this._vvvvvvvvvvvvvvvvvvv4.MeasureMultilineTextHeight((TextView) b4XViewWrapper.getObject(), BA.ObjectToCharSequence(b4XViewWrapper.getText()));
        if (MeasureMultilineTextHeight > b4XViewWrapper.getHeight()) {
            b4XViewWrapper.setHeight(MeasureMultilineTextHeight);
            return b4XViewWrapper.getHeight() - height;
        }
        return Common.DipToCurrent(0);
    }

    public String _update_changelanguage() throws Exception {
        _set_settings_webcam();
        _set_translations();
        _pn01_apptitle_update();
        _pn03_alert_update();
        if (this._vvvvvvvvvvvvvv3.IndexOf("hazard") > -1) {
            _pn05_hazard_update();
        }
        _pn06_webcam_update();
        if (this._vvvvvvvvvvvvvv3.IndexOf("history") > -1) {
            _pn04_eruptionhistory_update();
        }
        _loadmainlayout_eqlistscharts(true);
        this._language_changed = false;
        return BuildConfig.FLAVOR;
    }

    public String _update_chats() throws Exception {
        if (eqdb._v6._vvvvvvvvvvvvvvvvvvvvvvvvvvv6(this._vvvvvvvvvvvvv4, "ChatsLevel1") != null) {
            this._vvvvvvvvvvvvvvvvvvvvvvv7 = AbsObjectWrapper.ConvertToWrapper(new List(), (java.util.List) eqdb._v6._vvvvvvvvvvvvvvvvvvvvvvvvvvv6(this._vvvvvvvvvvvvv4, "ChatsLevel1"));
        }
        if (eqdb._v6._vvvvvvvvvvvvvvvvvvvvvvvvvvv6(this._vvvvvvvvvvvvv4, "ChatsLevel2") != null) {
            this._vvvvvvvvvvvvvvvvvvvvvvv0 = AbsObjectWrapper.ConvertToWrapper(new List(), (java.util.List) eqdb._v6._vvvvvvvvvvvvvvvvvvvvvvvvvvv6(this._vvvvvvvvvvvvv4, "ChatsLevel2"));
        }
        if (eqdb._v6._vvvvvvvvvvvvvvvvvvvvvvvvvvv6(this._vvvvvvvvvvvvv4, "ChatsLevel3") != null) {
            this._vvvvvvvvvvvvvvvvvvvvvvvv1 = AbsObjectWrapper.ConvertToWrapper(new List(), (java.util.List) eqdb._v6._vvvvvvvvvvvvvvvvvvvvvvvvvvv6(this._vvvvvvvvvvvvv4, "ChatsLevel3"));
        }
        _vvvvvvvvvvvv0();
        return BuildConfig.FLAVOR;
    }

    public String _update_eqdata() throws Exception {
        this._v5 = AbsObjectWrapper.ConvertToWrapper(new List(), (java.util.List) this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("eqToday"));
        if (eqdb._v6._vvvvvvvvvvvvvvvvvvvvvvvvvvv6(this._vvvvvvvvvvvvv4, "eqWeek") != null) {
            this._vvvvvvvvvvvvvvvvvvvvvvv3 = AbsObjectWrapper.ConvertToWrapper(new List(), (java.util.List) eqdb._v6._vvvvvvvvvvvvvvvvvvvvvvvvvvv6(this._vvvvvvvvvvvvv4, "eqWeek"));
        }
        if (eqdb._v6._vvvvvvvvvvvvvvvvvvvvvvvvvvv6(this._vvvvvvvvvvvvv4, "eqMonth") != null) {
            this._vvvvvvvvvvvvvvvvvvvvvvv4 = AbsObjectWrapper.ConvertToWrapper(new List(), (java.util.List) eqdb._v6._vvvvvvvvvvvvvvvvvvvvvvvvvvv6(this._vvvvvvvvvvvvv4, "eqMonth"));
        }
        if (eqdb._v6._vvvvvvvvvvvvvvvvvvvvvvvvvvv6(this._vvvvvvvvvvvvv4, "eqTwoYears") != null) {
            this._vvvvvvvvvvvvvvvvvvvvvvv5 = AbsObjectWrapper.ConvertToWrapper(new List(), (java.util.List) eqdb._v6._vvvvvvvvvvvvvvvvvvvvvvvvvvv6(this._vvvvvvvvvvvvv4, "eqTwoYears"));
        }
        if (eqdb._v6._vvvvvvvvvvvvvvvvvvvvvvvvvvv6(this._vvvvvvvvvvvvv4, "maxMagnitude") != null) {
            this._vvvvvvvvvvvvvvvvvv7 = BA.ObjectToNumber(eqdb._v6._vvvvvvvvvvvvvvvvvvvvvvvvvvv6(this._vvvvvvvvvvvvv4, "maxMagnitude"));
        } else {
            this._vvvvvvvvvvvvvvvvvv7 = 4.0d;
        }
        _vvvvvvvvvv6();
        _vvvvvvvvvvvv1("eqSection");
        if (this._v5.getSize() > 0) {
            _pncontent_setup(8);
            _pn08_todaylist_update();
        }
        this._vvvvvvvvvvvvvvvvv7 = true;
        _vvvvvvvvvvv3();
        _loadmainlayout_eqlistscharts(false);
        DateTime dateTime = Common.DateTime;
        DateTime.setTimeFormat("HH:mm:ss");
        StringBuilder sb = new StringBuilder("(");
        DateTime dateTime2 = Common.DateTime;
        DateTime dateTime3 = Common.DateTime;
        sb.append(DateTime.Time(DateTime.getNow()));
        sb.append(") Layout Completed");
        Common.LogImpl("85767198", sb.toString(), 0);
        _vvvvvvvvvv0();
        return BuildConfig.FLAVOR;
    }

    public String _update_eqdata_today(_aneq _aneqVar) throws Exception {
        this._v5 = firebasemessaging._v5;
        _vvvvvvvvvv6();
        int i = -1;
        if (this._vvvvvvvvvvvvvv3.IndexOf("events_list") == -1) {
            _pncontent_setup(8);
            _pn08_todaylist_update();
        }
        DateTime dateTime = Common.DateTime;
        double timeZoneOffset = DateTime.getTimeZoneOffset();
        DateTime dateTime2 = Common.DateTime;
        DateTime.SetTimeZone(this._volcano_timezoneoffset);
        DateTime dateTime3 = Common.DateTime;
        DateTime.setDateFormat("dd/MM");
        DateTime dateTime4 = Common.DateTime;
        DateTime.setTimeFormat("HH:mm");
        new Map();
        Map _pn08_todaylist_makecell = _pn08_todaylist_makecell(_aneqVar);
        int i2 = 1;
        if (this._events_clv_idmap.ContainsKey(Integer.valueOf(_aneqVar.eventID))) {
            Common.LogImpl("85898264", "replacing existing cell", 0);
            BA.IterableList Keys = _pn08_todaylist_makecell.Keys();
            int size = Keys.getSize();
            for (int i3 = 0; i3 < size; i3++) {
                String ObjectToString = BA.ObjectToString(Keys.Get(i3));
                new B4XViewWrapper();
                B4XViewWrapper b4XViewWrapper = (B4XViewWrapper) AbsObjectWrapper.ConvertToWrapper(new B4XViewWrapper(), _pn08_todaylist_makecell.Get(ObjectToString));
                this._events_clv._replaceat((int) BA.ObjectToNumber(this._events_clv_idmap.Get(Integer.valueOf(_aneqVar.eventID))), b4XViewWrapper, b4XViewWrapper.getHeight(), ObjectToString);
                if (this._lbhead_distance.getVisible()) {
                    _pn08_todaylist_updatedistancefrom(b4XViewWrapper, _aneqVar);
                }
            }
        } else {
            Common.LogImpl("85898278", "inserting new cell", 0);
            for (int size2 = this._v5.getSize() - 1; size2 >= 0; size2--) {
                _aneq _aneqVar2 = (_aneq) this._v5.Get(size2);
                if (this._events_clv_idmap.ContainsKey(Integer.valueOf(_aneqVar2.eventID))) {
                    i++;
                    if (_aneqVar.timeUTC > _aneqVar2.timeUTC) {
                        break;
                    }
                }
            }
            BA.IterableList Keys2 = _pn08_todaylist_makecell.Keys();
            int size3 = Keys2.getSize();
            int i4 = 0;
            int i5 = 0;
            while (i4 < size3) {
                String ObjectToString2 = BA.ObjectToString(Keys2.Get(i4));
                new B4XViewWrapper();
                B4XViewWrapper b4XViewWrapper2 = (B4XViewWrapper) AbsObjectWrapper.ConvertToWrapper(new B4XViewWrapper(), _pn08_todaylist_makecell.Get(ObjectToString2));
                this._events_clv._insertat(i, b4XViewWrapper2, ObjectToString2);
                if (this._lbhead_distance.getVisible()) {
                    _pn08_todaylist_updatedistancefrom(b4XViewWrapper2, _aneqVar);
                }
                i5 = b4XViewWrapper2.getHeight() + Common.DipToCurrent(i2);
                if (this._events_clv_idmap.getSize() > 0) {
                    BA.IterableList Keys3 = this._events_clv_idmap.Keys();
                    int size4 = Keys3.getSize();
                    int i6 = 0;
                    while (i6 < size4) {
                        int ObjectToNumber = (int) BA.ObjectToNumber(Keys3.Get(i6));
                        int i7 = size3;
                        int ObjectToNumber2 = (int) BA.ObjectToNumber(this._events_clv_idmap.Get(Integer.valueOf(ObjectToNumber)));
                        if (ObjectToNumber2 >= i) {
                            this._events_clv_idmap.Put(Integer.valueOf(ObjectToNumber), Integer.valueOf(ObjectToNumber2 + 1));
                        }
                        i6++;
                        size3 = i7;
                    }
                }
                this._events_clv_idmap.Put(Integer.valueOf(_aneqVar.eventID), Integer.valueOf(i));
                i4++;
                size3 = size3;
                i2 = 1;
            }
            this._events_clv._getbase().setHeight(this._events_clv._getbase().getHeight() + i5);
            this._events_clv._base_resize(r1._getbase().getWidth(), this._events_clv._getbase().getHeight());
            _pncontent_adjustviewsbelow(this._pnevents, this._events_clv._getbase(), i5);
            _pncontent_adjustpanels(this._pnevents, i5);
            _vvvvvvvvvvvv7(this._lbtotalevents, "Total Events", ": " + BA.NumberToString(this._v5.getSize()), true);
            if (this._vvvvvvvvvvvvvvvv0 <= 20000.0f) {
                _input_felteventprompt();
            }
        }
        DateTime dateTime5 = Common.DateTime;
        DateTime.SetTimeZone(timeZoneOffset);
        if (this._v5.getSize() > 0 && this._vvvvvvvvvvvvvvv3._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv4.getSize() > 0) {
            this._vvvvvvvvvvvvvvv3._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv6();
            _pn08_todaylist_updatefeltreports();
        }
        _pn08_todaylist_updatetimeago();
        _pn08_todaylist_adjustline1();
        _vvvvvvvvvvv3();
        _loadmainlayout_eqlistscharts(true);
        return BuildConfig.FLAVOR;
    }

    public String _update_feltreport(_afeltreport _afeltreportVar) throws Exception {
        if (this._v5.getSize() > 0) {
            _afeltreport _vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv2 = this._vvvvvvvvvvvvvvv3._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv2(_afeltreportVar, this._v5);
            this._vvvvvvvvvvvvvvv3._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv4.Add(_vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv2);
            this._vvvvvvvvvvvvvvv3._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv3();
            if (_vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.highestID > 0 && this._events_clv_idmap.ContainsKey(Integer.valueOf(_vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.highestID))) {
                new B4XViewWrapper();
                B4XViewWrapper _getpanel = this._events_clv._getpanel((int) BA.ObjectToNumber(this._events_clv_idmap.Get(Integer.valueOf(_vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.highestID))));
                int parseDouble = ((int) Double.parseDouble(this._vvvvvvvvvvvvvvvvvvvv6._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1(_getpanel, "evt_feltnum").getText())) + 1;
                this._vvvvvvvvvvvvvvvvvvvv6._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1(_getpanel, "evt_feltnum").setText(BA.ObjectToCharSequence(Integer.valueOf(parseDouble)));
                String str = "map_" + BA.NumberToString(_vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.highestID);
                if (this._vvvvvvvvvvvvvvvvv2.IndexOf(str) != -1) {
                    pagemap pagemapVar = (pagemap) b4xpages._vvv5(this.ba, str);
                    if (pagemapVar.IsInitialized()) {
                        pagemapVar._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv2 = parseDouble;
                        if (pagemapVar._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1) {
                            pagemapVar._feltreports_addone(_vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv2);
                            return BuildConfig.FLAVOR;
                        }
                        return BuildConfig.FLAVOR;
                    }
                    return BuildConfig.FLAVOR;
                }
                return BuildConfig.FLAVOR;
            }
            return BuildConfig.FLAVOR;
        }
        this._vvvvvvvvvvvvvvv3._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1(_afeltreportVar);
        return BuildConfig.FLAVOR;
    }

    public String _update_location(LocationFWrapper locationFWrapper, boolean z) throws Exception {
        String str;
        this._vvvvvvvvvvvvvvvv7.Initialize();
        if (this._vvvvvvvvvvvvv1) {
            this._vvvvvvvvvvvvvvvv7.setLatitude(40.82298d);
            this._vvvvvvvvvvvvvvvv7.setLongitude(14.321345d);
        } else {
            this._vvvvvvvvvvvvvvvv7.Initialize2(locationFWrapper);
        }
        LocationFWrapper locationFWrapper2 = new LocationFWrapper();
        locationFWrapper2.Initialize();
        locationFWrapper2.setLatitude(BA.ObjectToNumber(this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("Vent_Latitude")));
        locationFWrapper2.setLongitude(BA.ObjectToNumber(this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("Vent_Longitude")));
        float DistanceTo = locationFWrapper2.DistanceTo(this._vvvvvvvvvvvvvvvv7);
        this._vvvvvvvvvvvvvvvv0 = DistanceTo;
        if (DistanceTo < 20000.0f) {
            this._vvvvvvvvvvvvvvvv6 = "NoZone";
            MapFragmentWrapper.LatLngWrapper latLngWrapper = new MapFragmentWrapper.LatLngWrapper();
            latLngWrapper.Initialize(this._vvvvvvvvvvvvvvvv7.getLatitude(), this._vvvvvvvvvvvvvvvv7.getLongitude());
            int size = this._vvvvvvvvvvvvvvvvv1.getSize() - 1;
            for (int i = 0; i <= size; i++) {
                _ahazardzone _ahazardzoneVar = (_ahazardzone) this._vvvvvvvvvvvvvvvvv1.Get(i);
                if (_ahazardzoneVar.volcName.equals(this._vvvvvvvvvvvvv4)) {
                    int size2 = _ahazardzoneVar.zonePolygonParts.getSize() - 1;
                    int i2 = 0;
                    while (true) {
                        if (i2 > size2) {
                            break;
                        }
                        if (_vvvvvvvvvvvv2(latLngWrapper, ((_apolygonpart) _ahazardzoneVar.zonePolygonParts.Get(i2)).outerMarginVertices)) {
                            this._vvvvvvvvvvvvvvvv6 = _ahazardzoneVar.zoneName;
                            break;
                        }
                        i2++;
                    }
                }
            }
            if (this._vvvvvvvvvvvvvvvv6.equals("Red") || this._vvvvvvvvvvvvvvvv6.equals("Yellow")) {
                _pncontent_setup(5);
                _pn05_hazard_update();
            }
            geodesic._latlon _latlonVar = new geodesic._latlon();
            _latlonVar.Initialize();
            _latlonVar.Lat = this._vvvvvvvvvvvvvvvv7.getLatitude();
            _latlonVar.Lon = this._vvvvvvvvvvvvvvvv7.getLongitude();
            geodesic geodesicVar = new geodesic();
            geodesicVar._initialize(this.ba);
            geodesic._utm _vvvvvvvvvvvvvvvvvvvvvvvvv4 = geodesicVar._vvvvvvvvvvvvvvvvvvvvvvvvv4(_latlonVar);
            int i3 = _vvvvvvvvvvvvvvvvvvvvvvvvv4.UtmXZone;
            if (_vvvvvvvvvvvvvvvvvvvvvvvvv4.NorthHemisphere) {
                str = "north";
            } else {
                str = "south";
            }
            int Floor = (int) (Common.Floor(_vvvvvvvvvvvvvvvvvvvvvvvvv4.X / 1000.0d) * 1000.0d);
            int Floor2 = (int) (Common.Floor(_vvvvvvvvvvvvvvvvvvvvvvvvv4.Y / 1000.0d) * 1000.0d);
            this._vvvvvvvvvvvvvvvv5.Put("FeltReport_Easting", Integer.valueOf(Floor));
            this._vvvvvvvvvvvvvvvv5.Put("FeltReport_Northing", Integer.valueOf(Floor2));
            this._vvvvvvvvvvvvvvvv5.Put("FeltReport_ZoneUTM", Integer.valueOf(i3));
            this._vvvvvvvvvvvvvvvv5.Put("FeltReport_Hemisphere", str);
            if (this._events_clv.IsInitialized() && this._events_clv._getsize() > 0) {
                this._lbhead_distance.setVisible(true);
                _pn08_todaylist_spaceheader();
                int _getsize = this._events_clv._getsize() - 1;
                for (int i4 = 0; i4 <= _getsize; i4++) {
                    new B4XViewWrapper();
                    B4XViewWrapper _getpanel = this._events_clv._getpanel(i4);
                    int ObjectToNumber = (int) BA.ObjectToNumber(_getpanel.getTag());
                    int size3 = this._v5.getSize() - 1;
                    while (true) {
                        if (size3 >= 0) {
                            _aneq _aneqVar = (_aneq) this._v5.Get(size3);
                            if (_aneqVar.eventID == ObjectToNumber) {
                                _pn08_todaylist_updatedistancefrom(_getpanel, _aneqVar);
                                break;
                            }
                            size3--;
                        }
                    }
                }
            }
            _input_felteventprompt();
        }
        DateTime dateTime = Common.DateTime;
        DateTime.setTimeFormat("HH:mm:ss");
        StringBuilder sb = new StringBuilder("(");
        DateTime dateTime2 = Common.DateTime;
        DateTime dateTime3 = Common.DateTime;
        sb.append(DateTime.Time(DateTime.getNow()));
        sb.append(") Location Completed");
        Common.LogImpl("86094961", sb.toString(), 0);
        return BuildConfig.FLAVOR;
    }

    public String _vvvvvvvvvvvv0() throws Exception {
        boolean z;
        this._vvvvvvvvvvvvvvvvvvvvvvvv2.Initialize();
        if (this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("ChatsBanned") != null) {
            List ConvertToWrapper = AbsObjectWrapper.ConvertToWrapper(new List(), (java.util.List) this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("ChatsBanned"));
            this._vvvvvvvvvvvvvvvvvvvvvvvv2 = ConvertToWrapper;
            if (ConvertToWrapper.getSize() > 0) {
                List list = new List();
                list.Initialize();
                int size = this._vvvvvvvvvvvvvvvvvvvvvvvv2.getSize() - 1;
                for (int i = 0; i <= size; i++) {
                    long ObjectToLongNumber = BA.ObjectToLongNumber(this._vvvvvvvvvvvvvvvvvvvvvvvv2.Get(i));
                    int size2 = this._vvvvvvvvvvvvvvvvvvvvvvv7.getSize() - 1;
                    int i2 = 0;
                    while (true) {
                        if (i2 > size2) {
                            z = false;
                            break;
                        }
                        if (((_achat) this._vvvvvvvvvvvvvvvvvvvvvvv7.Get(i2)).time1 == ObjectToLongNumber) {
                            list.Add(Long.valueOf(ObjectToLongNumber));
                            z = true;
                            break;
                        }
                        i2++;
                    }
                    if (!z && this._vvvvvvvvvvvvvvvvvvvvvvv0.getSize() > 0) {
                        int size3 = this._vvvvvvvvvvvvvvvvvvvvvvv0.getSize() - 1;
                        int i3 = 0;
                        while (true) {
                            if (i3 > size3) {
                                break;
                            }
                            if (((_achat) this._vvvvvvvvvvvvvvvvvvvvvvv0.Get(i3)).time2 == ObjectToLongNumber) {
                                list.Add(Long.valueOf(ObjectToLongNumber));
                                z = true;
                                break;
                            }
                            i3++;
                        }
                    }
                    if (!z && this._vvvvvvvvvvvvvvvvvvvvvvvv1.getSize() > 0) {
                        int size4 = this._vvvvvvvvvvvvvvvvvvvvvvvv1.getSize() - 1;
                        int i4 = 0;
                        while (true) {
                            if (i4 > size4) {
                                break;
                            }
                            if (((_achat) this._vvvvvvvvvvvvvvvvvvvvvvvv1.Get(i4)).time3 == ObjectToLongNumber) {
                                list.Add(Long.valueOf(ObjectToLongNumber));
                                break;
                            }
                            i4++;
                        }
                    }
                }
                this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvvv4("ChatsBanned", list.getObject());
                this._vvvvvvvvvvvvvvvvvvvvvvvv2 = list;
                return BuildConfig.FLAVOR;
            }
            return BuildConfig.FLAVOR;
        }
        return BuildConfig.FLAVOR;
    }

    public String _webcam_overlay_change_click() throws Exception {
        if (this._webcam_overlay.getVisible()) {
            this._webcam_overlay.setVisible(false);
            _vvvvvvvvvvvv7(this._webcam_overlay_change, "Show Outline", BuildConfig.FLAVOR, true);
        } else {
            this._webcam_overlay.setVisible(true);
            _vvvvvvvvvvvv7(this._webcam_overlay_change, "Hide Outline", BuildConfig.FLAVOR, true);
        }
        return BuildConfig.FLAVOR;
    }

    public String _webcam_play_click() throws Exception {
        if (this._simpleexoplayerview1.IsInitialized()) {
            this._simpleexoplayerview1.RemoveView();
        }
        B4XViewWrapper b4XViewWrapper = this._webcam_play;
        Colors colors = Common.Colors;
        b4XViewWrapper.setTextColor(-12303292);
        this._webcam_play.setEnabled(false);
        this._webcam_timelapse.LoadLayout("layout_vidplayer.bal", this.ba);
        SimpleExoPlayerWrapper simpleExoPlayerWrapper = new SimpleExoPlayerWrapper();
        simpleExoPlayerWrapper.Initialize(this.ba, "player");
        simpleExoPlayerWrapper.Prepare(simpleExoPlayerWrapper.CreateFileSource(B4XViewWrapper.XUI.getDefaultFolder(), BA.ObjectToString(this._webcam_timelapse.getTag())));
        this._simpleexoplayerview1.setPlayer(simpleExoPlayerWrapper);
        this._simpleexoplayerview1.setUseController(false);
        simpleExoPlayerWrapper.Play();
        return BuildConfig.FLAVOR;
    }

    public Object callSub(String str, Object obj, Object[] objArr) throws Exception {
        BA.senderHolder.set(obj);
        if (BA.fastSubCompare(str, "PNCONTENT_REMOVE")) {
            return _pncontent_remove((String) objArr[0]);
        }
        if (BA.fastSubCompare(str, "TIMERWEBCAM_PROGRESSBAR")) {
            return _timerwebcam_progressbar(((Boolean) objArr[0]).booleanValue());
        }
        if (BA.fastSubCompare(str, "TIMERWEBCAM_START")) {
            return _timerwebcam_start(((Boolean) objArr[0]).booleanValue());
        }
        if (BA.fastSubCompare(str, "UPDATE_EQDATA_TODAY")) {
            return _update_eqdata_today((_aneq) objArr[0]);
        }
        if (BA.fastSubCompare(str, "UPDATE_FELTREPORT")) {
            return _update_feltreport((_afeltreport) objArr[0]);
        }
        if (BA.fastSubCompare(str, "UPDATE_LOCATION")) {
            return _update_location((LocationFWrapper) objArr[0], ((Boolean) objArr[1]).booleanValue());
        }
        return BA.SubDelegator.SubNotFound;
    }
}