var close_img_src = chrome["runtime"]["getURL"]("logo/closeBtn.png"),
  free_trial_src = chrome["runtime"]["getURL"]("logo/free-trial.png"),
  advance_promo_src = chrome["runtime"]["getURL"]("logo/advance_promo.png"),
  success_gif = chrome["runtime"]["getURL"]("logo/success.gif"),
  recommend_tick = chrome["runtime"]["getURL"]("logo/recommend-tickmark.png"),
  export_chat_contacts_img_src = chrome["runtime"]["getURL"](
    "logo/export-unsaved-contacts.png"
  ),
  export_img_src = chrome["runtime"]["getURL"]("logo/export.png"),
  export_contacts_text_src = chrome["runtime"]["getURL"](
    "logo/export-contact.svg"
  ),
  email_icon_src = chrome["runtime"]["getURL"]("logo/email.png"),
  error_icon_src = chrome["runtime"]["getURL"]("logo/error.png"),
  help_icon_src = chrome["runtime"]["getURL"]("logo/help.png"),
  read_icon_src = chrome["runtime"]["getURL"]("logo/read.png"),
  wall_clock_white_icon = chrome["runtime"]["getURL"](
    "logo/wall-clock-white.png"
  ),
  smile_icon = chrome["runtime"]["getURL"]("logo/smile.png"),
  logo_img = chrome["runtime"]["getURL"]("logo/logo-img.png"),
  medium_logo_img = chrome["runtime"]["getURL"]("logo/medium.png"),
  logo_text = chrome["runtime"]["getURL"]("logo/logo-text.png"),
  logo_text_light = chrome["runtime"]["getURL"]("logo/logo-text-light.png"),
  arrow_left = chrome["runtime"]["getURL"]("logo/arrow-left.png"),
  arrow_right = chrome["runtime"]["getURL"]("logo/arrow-right.png"),
  bulb_icon = chrome["runtime"]["getURL"]("logo/lightbulb.png"),
  how_to_use1 = chrome["runtime"]["getURL"]("logo/how-to-use-1.gif"),
  how_to_use2 = chrome["runtime"]["getURL"]("logo/how-to-use-2.gif"),
  how_to_use3 = chrome["runtime"]["getURL"]("logo/how-to-use-3.gif"),
  man_thinking = chrome["runtime"]["getURL"]("logo/man-thinking.png"),
  cross_icon_src = chrome["runtime"]["getURL"]("logo/close-1.png"),
  check_icon_src = chrome["runtime"]["getURL"]("logo/check-mark.png"),
  eye_visible = chrome["runtime"]["getURL"]("logo/eye-visible.png"),
  eye_hidden = chrome["runtime"]["getURL"]("logo/eye-hidden.png"),
  pause_icon_src = chrome["runtime"]["getURL"]("logo/pause_logo.png");
let link = document["createElement"]("link");
(link["rel"] = "stylesheet"),
  (link["href"] =
    "https://fonts.googleapis.com/css2?family=Palanquin+Dark:wght@400;500;700&family=PT+Sans+Caption&family=Reem+Kufi+Ink&display=swap"),
  document["head"]["appendChild"](link);
let my_number = null,
  logged_in_user = null,
  //plan_type = "Expired",
  plan_type = "Advance",
  //last_plan_type = "Basic";
  last_plan_type = "Advance";
var rows = [],
  notifications_hash = {},
  stop = ![],
  pause = ![],
  groupIdToName = {},
  contactIdToName = {};
let isCampaignRunning = ![],
  campaignRunningIndex = null,
  isProfile = ![];
var messages = [
    "Hello!\x20how\x20can\x20we\x20help\x20you?",
    "Hello!",
    "Thank\x20you\x20for\x20using\x20service!",
  ],
  total_messages = 0x0;
const ps_content_0y = {};
(ps_content_0y["name"] = "international"),
  (ps_content_0y["name_code"] = "US"),
  (ps_content_0y["currency"] = "USD");
var location_info = ps_content_0y;
let premiumUsageObject = {
  lastDate: new Date()["getDate"](),
  lastMonth: new Date()["getMonth"](),
  attachment: ![],
  customisation: ![],
  groupContactExport: ![],
  quickReplies: ![],
  caption: ![],
  stop: ![],
  timeGap: ![],
  batching: ![],
};
(isAdvanceFeatureAvailable() || isExpired()) &&
  (premiumUsageObject = {
    ...premiumUsageObject,
    multipleAttachment: ![],
    schedule: ![],
  });
function setPremiumUsageObject() {
  const O = {};
  (O["aFWdh"] = function (c, T) {
    return c >= T;
  }),
    (O["wEwRu"] = function (c, T) {
      return c - T;
    }),
    (O["ZVMYD"] = function (c, T) {
      return c >= T;
    }),
    (O["leetp"] = "premiumUsageObject");
  const o = O;
  chrome["storage"]["local"]["get"]([o["leetp"]], function (c) {
    if (c["premiumUsageObject"] !== undefined) {
      const T = c["premiumUsageObject"]["lastDate"],
        C = new Date()["getDate"]();
      let P;
      o["aFWdh"](C, T) ? (P = o["wEwRu"](C, T)) : (P = o["wEwRu"](0x1e, T) + C);
      if (o["ZVMYD"](P, 0xe)) {
        const N = {};
        (N["premiumUsageObject"] = premiumUsageObject),
          chrome["storage"]["local"]["set"](N);
      }
    } else {
      const W = {};
      (W["premiumUsageObject"] = premiumUsageObject),
        chrome["storage"]["local"]["set"](W);
    }
  });
}
setPremiumUsageObject(),
  (function addInject() {
    const O = {};
    (O["XcoGE"] = "script"), (O["CPvhv"] = "text/javascript");
    const o = O;
    let c = "/js/inject.js",
      T = document["createElement"](o["XcoGE"]);
    T["setAttribute"]("type", o["CPvhv"]),
      T["setAttribute"]("id", "inject"),
      (T["src"] = chrome["runtime"]["getURL"](c)),
      (T["onload"] = function () {
        this["parentNode"]["removeChild"](this);
      }),
      document["head"]["appendChild"](T);
  })(),
  window["addEventListener"]("message", injectMessageListner, ![]);
function injectMessageListner(y) {
  const O = {
    yHxPw: function (T, C) {
      return T != C;
    },
    VoJwS: "get_init_store_type",
    txWgP: function (T, C, P) {
      return T(C, P);
    },
    xrkhK: "init_store_type",
    KfbAK: "get_all_groups",
    mpJCj: function (T, C) {
      return T(C);
    },
    uGpYv: "send_message",
    iZFee: function (T, C, P) {
      return T(C, P);
    },
    KqSjm: "send_message_to_group_error",
  };
  if (O["yHxPw"](y["source"], window) || !y["data"]["type"]) return;
  let o = y["data"]["type"],
    c = y["data"]["payload"];
  switch (o) {
    case O["VoJwS"]:
      O["txWgP"](trackEvent, O["xrkhK"], c);
      break;
    case O["KfbAK"]:
      setGroupDataToLocalStorage(c);
      break;
    case "get_all_contacts":
      O["mpJCj"](setContactDataToLocalStorage, c);
      break;
    case O["uGpYv"]:
      c["error"] && trackEvent("send_message_error", c["error"]);
      break;
    case "send_message_to_group":
      c["error"] && O["iZFee"](trackEvent, O["KqSjm"], c["error"]);
      break;
    default:
      break;
  }
}
function download_group_contacts() {
  const y = {
    fIBNN: "shimmer",
    bCCAm: function (l, Z) {
      return l !== Z;
    },
    TPFiX: function (l, Z) {
      return l >= Z;
    },
    uEfzN: function (l, Z) {
      return l !== Z;
    },
    wbbUN: function (l, Z) {
      return l !== Z;
    },
    XhXpG: function (l, Z) {
      return l < Z;
    },
    exMmQ: function (l, Z, a) {
      return l(Z, a);
    },
    DVclt: function (l) {
      return l();
    },
    OqYGe: "PRIMES::export-group",
    noNrz: function (l, Z) {
      return l(Z);
    },
    OLMfN: "download_group",
    oMtLo: "premiumUsageObject",
    GNPYf: function (l, Z) {
      return l(Z);
    },
    PxMmI: "conversation_header",
    dVdEb: "@g.us",
    ifbFm: "div",
    sfnxI: "export_contacts_text",
    WTDpE: "conversation_title_div",
    PEnES: "dark",
    eZgmY: "download_group_btn",
    nkSnX: "CtaBtn\x20shimmer",
    CrJxe: "countOfExportUsed",
  };
  let O = y["GNPYf"](getDocumentElement, y["PxMmI"]);
  if (!O) return;
  let o = y["GNPYf"](getDocumentElement, "conversation_message_div");
  if (!o || !o["dataset"]["id"]["includes"](y["dVdEb"])) return;
  let c = o["dataset"]["id"],
    T = c["split"]("_")[0x1],
    C = document["createElement"](y["ifbFm"]),
    P = document["createElement"]("span");
  P["classList"]["add"](y["sfnxI"]);
  let N = "",
    W = y["GNPYf"](getDocumentElement, y["WTDpE"]),
    G = W["innerText"];
  document["body"]["classList"]["contains"](y["PEnES"]) &&
    (N = "export_gif_bright"),
    (P["innerHTML"] =
      "\x20<img\x20class=\x22export_gif\x20" +
      N +
      "\x22\x20src=" +
      export_contacts_text_src +
      "\x20/>"),
    (C["id"] = y["eZgmY"]),
    (C["className"] = y["nkSnX"]),
    (C["innerHTML"] = "<img\x20src=" + export_img_src + "\x20/>"),
    C["appendChild"](P),
    chrome["storage"]["local"]["get"](
      [y["CrJxe"], "lastDayExportUsed", "groupDataForShimmer"],
      function (l) {
        const Z = {};
        Z["QLQzS"] = y["fIBNN"];
        const a = Z;
        let w = new Date()["toDateString"](),
          S = l["countOfExportUsed"] || 0x0,
          p = l["lastDayExportUsed"] || "",
          B = l["groupDataForShimmer"] || [{}];
        if (y["bCCAm"](w, p)) {
          (p = w), S++;
          const b = {};
          (b["countOfExportUsed"] = S),
            (b["lastDayExportUsed"] = p),
            chrome["storage"]["local"]["set"](b);
        }
        if (y["TPFiX"](S, 0xa) && S < 0xf) {
          let i = B["findIndex"]((I) => I["groupName"] === G);
          if (y["uEfzN"](i, -0x1)) {
            if (
              y["wbbUN"](B[i]["lastShimmerDay"], w) &&
              y["XhXpG"](B[i]["shimmerCount"], 0x5)
            ) {
              (B[i]["lastShimmerDay"] = w),
                (B[i]["shimmerCount"] = B[i]["shimmerCount"] + 0x1);
              const I = {};
              (I["groupDataForShimmer"] = B),
                chrome["storage"]["local"]["set"](I);
            } else
              C["classList"]["remove"]("shimmer"),
                (P["innerHTML"] = "Export\x20Contacts");
          } else {
            const e = {};
            (e["groupName"] = G),
              (e["lastShimmerDay"] = w),
              (e["shimmerCount"] = 0x1),
              B["push"](e);
            const H = {};
            (H["groupDataForShimmer"] = B),
              chrome["storage"]["local"]["set"](H);
          }
          y["exMmQ"](
            setTimeout,
            () => {
              C["classList"]["remove"](a["QLQzS"]),
                (P["innerHTML"] = "Export\x20Contacts");
            },
            0x1388
          );
        } else
          C["classList"]["remove"](y["fIBNN"]),
            (P["innerHTML"] = "Export\x20Contacts");
      }
    ),
    O["insertBefore"](C, O["childNodes"][0x2]),
    C["addEventListener"]("click", function () {
      if (y["DVclt"](isPremiumFeatureAvailable)) {
        const l = {};
        l["groupId"] = T;
        const Z = {};
        (Z["detail"] = l),
          window["dispatchEvent"](new CustomEvent(y["OqYGe"], Z)),
          y["noNrz"](trackButtonClick, y["OLMfN"]);
      } else premium_reminder("download_group_contacts", "Premium");
      chrome["storage"]["local"]["get"]([y["oMtLo"]], function (a) {
        if (a["premiumUsageObject"] !== undefined) {
          const w = { ...a["premiumUsageObject"] };
          w["groupContactExport"] = !![];
          let S = w;
          const p = {};
          (p["premiumUsageObject"] = S), chrome["storage"]["local"]["set"](p);
        }
      });
    });
}
function downloadUnsavedContacts() {
  const y = {
      KluRm: function (T, C) {
        return T !== C;
      },
      MVsNK: function (T) {
        return T();
      },
      hmLqk: "PRIMES::export-unsaved-contacts",
      xRqnf: "Advance",
      qPMRL: function (T, C) {
        return T(C);
      },
      BHdGS: "Expired",
      GQeGK: "premiumUsageObject",
      BfpTq: function (T, C) {
        return T(C);
      },
      iNoqU: "profile_header",
      CvJXp: "CtaBtn",
      YEfKI: "click",
    },
    O = y["BfpTq"](getDocumentElement, y["iNoqU"]);
  if (!O) return;
  const o = O["children"][0x0]["children"][0x0],
    c = document["createElement"]("div");
  (c["id"] = "downloadUnsavedContacts"),
    c["classList"]["add"](y["CvJXp"]),
    (c["title"] = "Export\x20unsaved\x20contacts\x20-\x20Prime\x20Sender"),
    (c["innerHTML"] =
      "<img\x20src=" +
      export_chat_contacts_img_src +
      "\x20alt=\x27export_unsaved_contacts\x27>"),
    o["insertBefore"](c, o["children"][0x0]),
    c["addEventListener"](y["YEfKI"], () => {
      y["MVsNK"](isAdvanceFeatureAvailable)
        ? (window["dispatchEvent"](
            new CustomEvent(y["hmLqk"], { detail: { type: y["xRqnf"] } })
          ),
          y["qPMRL"](trackButtonClick, "download_chat_contacts"))
        : window["dispatchEvent"](
            new CustomEvent(y["hmLqk"], { detail: { type: y["BHdGS"] } })
          ),
        chrome["storage"]["local"]["get"]([y["GQeGK"]], function (T) {
          if (y["KluRm"](T["premiumUsageObject"], undefined)) {
            const C = { ...T["premiumUsageObject"] };
            C["downloadUnsavedContacts"] = !![];
            let P = C;
            const N = {};
            (N["premiumUsageObject"] = P), chrome["storage"]["local"]["set"](N);
          }
        });
    });
}
function closePrimeProfile() {
  const O = {};
  O["roxwJ"] = "prime_profile_popup";
  const o = O;
  isProfile = ![];
  let c = document["getElementById"](o["roxwJ"]);
  document["querySelector"]("#side")["removeChild"](c);
}
async function showBuyPremiumButtons() {
  const y = {
    zPBfr: "FreeTrial",
    XAEwQ: "free_trial_expired",
    VvIoK: "premium_expired",
    DlbwJ: function (B, b) {
      return B == b;
    },
    VlplB: "Advance",
    pmnSO: "Basic",
    JPoum: function (B, b) {
      return B == b;
    },
    EXNgA: "international",
    szqfs: function (B, b) {
      return B + b;
    },
    yGwKk: "basic",
    HuDwL: function (B, b, i, I) {
      return B(b, i, I);
    },
    BADim: "advance",
    uIxMM: function (B) {
      return B();
    },
  };
  let O;
  if (last_plan_type == "FreeTrial" || plan_type == y["zPBfr"])
    O = PRICING_DATA[y["XAEwQ"]];
  else O = PRICING_DATA[y["VvIoK"]];
  if (!O) return "";
  let o = "",
    c = !![],
    T = ![];
  y["DlbwJ"](last_plan_type, y["VlplB"]) && ((c = ![]), (T = !![]));
  (plan_type == y["pmnSO"] || y["JPoum"](plan_type, y["VlplB"])) &&
    ((c = ![]), (T = ![]));
  let { name: C, name_code: P, currency: N } = location_info;
  Object["keys"](COUNTRY_WITH_SPECIFIC_PRICING)["includes"](P)
    ? (C = COUNTRY_WITH_SPECIFIC_PRICING[P])
    : (C = y["EXNgA"]);
  let W =
      "https://prime-sender.com/pricing/?country=" +
      C +
      "&lastPlan=" +
      O["lastPlan"] +
      "&currentPlan=",
    G = O["advance_price"][C],
    l = O["basic_price"][C],
    Z = await convertPriceToLocale(G["substring"](0x1)),
    a = await convertPriceToLocale(l["substring"](0x1)),
    w = await basicButton(y["szqfs"](W, y["yGwKk"]), l, a),
    S = await y["HuDwL"](advanceButton, W + y["BADim"], G, Z),
    p = await y["uIxMM"](multipleAccountButton);
  if (c) o += w;
  if (T) o += S;
  return (o += p), o;
}
async function generateBodyHtml(T) {
  const C = {
      vWgNb: "customer_name",
      oFFKk: "Name",
      XEXPY: "Email",
      NniEl: "my_number",
      RCdNc: "Plan\x20Type",
      VZnVw: function (a, w) {
        return a === w;
      },
      NYzEj: function (a, w) {
        return a(w);
      },
      RUlYV: function (a, w) {
        return a(w);
      },
    },
    P = {};
  (P["key"] = C["vWgNb"]), (P["label"] = C["oFFKk"]);
  const N = {};
  (N["key"] = "customer_email"), (N["label"] = C["XEXPY"]);
  const W = {};
  (W["key"] = C["NniEl"]), (W["label"] = "Number");
  const G = {};
  (G["key"] = "plan_type"), (G["label"] = C["RCdNc"]);
  const l = [P, N, W, G];
  let Z = "";
  for (const a of l) {
    let w = T[a["key"]];
    if (C["VZnVw"](a["key"], C["NniEl"]) && w) w = "+" + w;
    else w && (w = await C["NYzEj"](translate, w));
    const S = await C["RUlYV"](translate, a["label"]);
    w &&
      (Z +=
        "\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22prime_rows\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<p\x20class=\x22prime_col\x20prime_col_end\x22><span>" +
        S +
        "</span>\x20<span>:</span></p>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22prime_col\x22>" +
        w +
        "</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>");
  }
  return Z;
}
async function createProfileSection() {
  const y = {
      sJRAH: function (C) {
        return C();
      },
      EfDXq: "my_number",
      GDfgr: "plan_type",
      NSfhR: "expiry_date",
      poTRr: "div",
      LpRLY: "prime_profile_body",
      APWlL: function (C) {
        return C();
      },
      rkwNV: function (C) {
        return C();
      },
      EMKQe: function (C, P) {
        return C === P;
      },
      zWHzo: "35%",
    },
    O = document["createElement"](y["poTRr"]);
  (O["id"] = "prime_profile_popup"),
    O["classList"]["add"]("prime_profile_main");
  const o = document["createElement"]("div");
  o["classList"]["add"]("prime_profile_top"),
    (o["innerHTML"] =
      "\x0a\x20\x20\x20\x20<div\x20class=\x22prime_profile_cross\x22\x20id=\x22cross_prime\x22>\x0a\x20\x20\x20\x20\x20\x20<svg\x20stroke=\x22currentColor\x22\x20fill=\x22currentColor\x22\x20stroke-width=\x220\x22\x20viewBox=\x220\x200\x20512\x20512\x22\x20height=\x221em\x22\x20width=\x221em\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M405\x20136.798L375.202\x20107\x20256\x20226.202\x20136.798\x20107\x20107\x20136.798\x20226.202\x20256\x20107\x20375.202\x20136.798\x20405\x20256\x20285.798\x20375.202\x20405\x20405\x20375.202\x20285.798\x20256z\x22></path></svg>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20<div\x20class=\x22prime_profile_logo\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22prime_profile_img\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<img\x20src=\x22" +
      medium_logo_img +
      "\x22\x20alt=\x22\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22prime_profile_text\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<img\x20src=\x22" +
      logo_text_light +
      "\x22\x20alt=\x22\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20</div>");
  const c = document["createElement"](y["poTRr"]);
  c["classList"]["add"](y["LpRLY"]);
  let T = "";
  await new Promise((C) => {
    const P = {
      uZfiY: function (N) {
        return y["sJRAH"](N);
      },
    };
    chrome["storage"]["local"]["get"](
      [y["EfDXq"], y["GDfgr"], y["NSfhR"], "last_plan_type"],
      async function (N) {
        (T = await generateBodyHtml(N)), P["uZfiY"](C);
      }
    );
  });
//   if (y["APWlL"](isExpired) || y["rkwNV"](isTrial)) {
//     const C = await y["APWlL"](showBuyPremiumButtons);
//     T +=
//       "<div\x20class=\x22premium_feature_block\x22\x20id=\x22buy_premium_block\x22\x20style=\x22border:none;\x22>" +
//       C +
//       "</div>";
//   }
  return (
    (c["innerHTML"] = T),
    y["EMKQe"](currentLanguage, "es") && (O["style"]["top"] = y["zWHzo"]),
    O["append"](o),
    O["append"](c),
    O
  );
}
function primeProfile() {
  const O = {};
  (O["aotUN"] = "profile_header"),
    (O["sizxv"] = "prime_profile_btn"),
    (O["XqAkM"] = "div"),
    (O["RRnpz"] = "Profile\x20-\x20Prime\x20Sender"),
    (O["ttArA"] = "click");
  const o = O,
    c = getDocumentElement(o["aotUN"]);
  if (!c) return;
  const T = c["children"][0x0]["children"][0x0];
  if (document["getElementById"](o["sizxv"])) return;
  const C = document["createElement"](o["XqAkM"]);
  (C["id"] = o["sizxv"]),
    C["classList"]["add"]("CtaBtn"),
    (C["innerHTML"] =
      "<img\x20class=\x27prime_profile_icon\x27\x20src=" +
      medium_logo_img +
      "\x20alt=\x27prime-profile-info\x27>"),
    (C["title"] = o["RRnpz"]),
    C["addEventListener"](o["ttArA"], () => {
      isProfile = !![];
    }),
    T["insertBefore"](C, T["children"][0x0]);
}
function blur_contacts() {
  const y = {
      ZaGDR: function (T, C) {
        return T(C);
      },
      EoaUV: "profile_header",
      GgCCO: "blur_contacts_btn",
      xsrSk: "#pane-side",
      fDhyS: "scroll",
      yCgnz: "div",
      psXlD: "CtaBtn",
      MErIF:
        "Blur\x20chat,\x20contact\x20name\x20and\x20profile\x20picture\x20-\x20Prime\x20Sender",
    },
    O = y["ZaGDR"](getDocumentElement, y["EoaUV"]);
  if (!O) return;
  const o = O["children"][0x0]["children"][0x0];
  if (document["getElementById"](y["GgCCO"])) return;
  if (document["querySelector"](y["xsrSk"]))
    document["querySelector"]("#pane-side")["addEventListener"](
      y["fDhyS"],
      () => {
        try {
          y["ZaGDR"](toggleBlur, !![]);
        } catch (T) {
          console["log"](T);
        }
      }
    );
  const c = document["createElement"](y["yCgnz"]);
  (c["id"] = y["GgCCO"]),
    c["classList"]["add"](y["psXlD"]),
    (c["innerHTML"] =
      "<img\x20class=\x27blur_icon\x27\x20src=" +
      eye_hidden +
      "\x20alt=\x27blur-info\x27>"),
    (c["title"] = y["MErIF"]),
    c["addEventListener"]("click", () => {
      try {
        toggleBlur();
      } catch (T) {
        console["log"](T);
      }
      y["ZaGDR"](trackButtonClick, "blur_contacts_button");
    }),
    o["insertBefore"](c, o["children"][0x0]);
}
function toggleBlur(y = ![]) {
  const O = {
      KHuSd: function (Z, a, w, S) {
        return Z(a, w, S);
      },
      tyKAQ: "blur_contacts_btn",
      hUKir: "#reply_div",
      ZFSWX: function (Z, a) {
        return Z(a);
      },
      GIbSC: "conversation_header_name_div",
      EGZfq: function (Z, a, w) {
        return Z(a, w);
      },
      oXdga: "contact_profile_div",
      cykGq: "conversation_message_div",
      OhACl: "conversation_non_message_div",
    },
    o = document["getElementById"](O["tyKAQ"]),
    c = o["classList"]["contains"]("blurred"),
    T = document["querySelector"](O["hUKir"]),
    C = O["ZFSWX"](getDocumentElement, "left_side_contacts_panel"),
    P = O["ZFSWX"](getDocumentElement, O["GIbSC"]),
    N = O["EGZfq"](getDocumentElement, O["oXdga"], !![]),
    W = getDocumentElement(O["cykGq"], !![]),
    G = getDocumentElement(O["OhACl"], !![]),
    l = [T, C, P, ...N, ...W, ...G];
  l["forEach"]((Z) => {
    O["KHuSd"](applyOrRemoveBlur, Z, "blur", y ? c : !c);
  }),
    !y &&
      (o["classList"]["toggle"]("blurred", !c),
      (o["innerHTML"] =
        "<img\x20class=\x27blur_icon\x27\x20src=" +
        (!c ? eye_visible : eye_hidden) +
        "\x20alt=\x27blur-info\x27>"));
}
function applyOrRemoveBlur(y, O, o) {
  try {
    if (!y) return;
    o ? y["classList"]["add"](O) : y["classList"]["remove"](O);
  } catch (c) {
    console["log"](c);
  }
}
function suggestion_messages() {
  const y = {
    helAw: function (W, G) {
      return W > G;
    },
    yRoVl: function (W, G) {
      return W + G;
    },
    jUmjp: "...",
    NPtzP: function (W, G) {
      return W(G);
    },
    fresO:
      "<button\x20class=\x22reply_click\x20CtaBtn\x22\x20style=\x22color:\x20var(--message-primary);background-color:\x20var(--outgoing-background);border-radius:\x2015px;padding:\x204px\x208px;font-size:\x2012px;margin-right:\x208px;margin-bottom:\x204px;direction:\x20ltr\x20!important\x22\x20value=\x22",
    sgkqs: "</button>",
    RTttz: function (W, G) {
      return W != G;
    },
    fBeIN: function (W, G) {
      return W(G);
    },
    ygzsq: "smart_reply_sent",
    LAAKK: function (W, G, l) {
      return W(G, l);
    },
    WHGyh: "smart_reply",
    pynDK: function (W) {
      return W();
    },
    PHYXD: "smart_reply_edit",
    Ypraf: function (W, G) {
      return W !== G;
    },
    WqoSU: "premiumUsageObject",
    YBQav: "reply_div",
    EBWME: "footer_div",
    gFwXl: "33px",
    GrGdS: "div",
    pODQT: "absolute",
    ggCoO: "8px\x2012px",
    KvdvU: "calc(100%\x20-\x2080px)",
    SSIPM: function (W, G) {
      return W(G);
    },
    QMUmG: function (W, G) {
      return W(G);
    },
    RWAYs: "_33LGR",
    mZEaw: "click",
    pOWuE: "smart_reply_edit_button",
    KYYqC: "reply_click",
  };
  var O = document["getElementById"](y["YBQav"]);
  if (O) O["parentNode"]["removeChild"](O);
  var o = document["getElementById"]("smart_reply_edit_button");
  if (o) o["parentNode"]["removeChild"](o);
  var c = getDocumentElement(y["EBWME"]);
  if (!c) return;
  c["style"]["paddingTop"] = y["gFwXl"];
  var O = document["createElement"](y["GrGdS"]);
  (O["id"] = y["YBQav"]),
    (O["style"]["position"] = y["pODQT"]),
    (O["style"]["padding"] = y["ggCoO"]),
    (O["style"]["top"] = "0"),
    (O["style"]["zIndex"] = "1"),
    (O["style"]["width"] = y["KvdvU"]),
    $["each"](messages, function (W, G) {
      var l = G;
      if (y["helAw"](G["length"], 0x2f))
        var l = y["yRoVl"](G["substring"](0x0, 0x2f), y["jUmjp"]);
      var Z = y["NPtzP"](
        $,
        $["parseHTML"](
          y["yRoVl"](y["yRoVl"](y["fresO"], G), "\x22>") + l + y["sgkqs"]
        )
      );
      O["appendChild"](Z[0x0]);
    }),
    (total_messages = messages["length"]),
    c["appendChild"](O);
  let T = y["SSIPM"](getDocumentElement, "conversation_panel");
  T && T["scrollBy"](0x0, 0x21);
  c["appendChild"](
    y["QMUmG"](
      $,
      $["parseHTML"](
        "<button\x20class=\x22CtaBtn\x22\x20style=\x22position:\x20absolute;width:\x2080px;right:\x208px;top:\x2012px;color:\x20var(--message-primary);font-size:\x2012px\x20!important;\x22\x20id=\x22smart_reply_edit_button\x22>Edit</button>"
      )
    )[0x0]
  );
  var C = document["getElementsByClassName"](y["RWAYs"])[0x0];
  if (C) C["scrollTop"] = C["scrollHeight"];
  var P = document["getElementById"]("reply_div");
  P["addEventListener"](y["mZEaw"], async function (W) {
    if (isPremiumFeatureAvailable()) {
      var G = W["target"]["value"];
      y["RTttz"](G, undefined) && sendSuggestionMessage(G),
        y["fBeIN"](trackButtonClick, y["ygzsq"]);
    } else y["LAAKK"](premium_reminder, y["WHGyh"], "Premium");
  }),
    document["getElementById"](y["pOWuE"])["addEventListener"](
      "click",
      function (W) {
        suggestion_popup(),
          y["pynDK"](isPremiumFeatureAvailable) && trackButtonClick(y["PHYXD"]);
      }
    );
  let N = document["getElementsByClassName"](y["KYYqC"])[0x0];
  N &&
    N["addEventListener"](y["mZEaw"], function () {
      const W = {
        bYLtF: function (G, l) {
          return y["Ypraf"](G, l);
        },
      };
      chrome["storage"]["local"]["get"]([y["WqoSU"]], function (G) {
        if (W["bYLtF"](G["premiumUsageObject"], undefined)) {
          const l = { ...G["premiumUsageObject"] };
          l["quickReplies"] = !![];
          let Z = l;
          const a = {};
          (a["premiumUsageObject"] = Z), chrome["storage"]["local"]["set"](a);
        }
      });
    });
}
async function sendSuggestionMessage(y) {
  const O = {
    hJEWP: function (c, T) {
      return c == T;
    },
    ivUxg: function (c, T) {
      return c(T);
    },
    Zwhns: "input_message_div",
    zhfMZ: function (c, T) {
      return c(T);
    },
  };
  if (!y || O["hJEWP"](y["trim"]()["length"], 0x0)) return;
  let o = O["ivUxg"](getDocumentElement, O["Zwhns"]);
  if (!o) return;
  pasteMessage(y), await O["zhfMZ"](sendMessage, y);
}
function pasteMessage(O) {
  const o = {
      VyPXg: "text",
      NshtN: function (N, W) {
        return N(W);
      },
      BzPPR: "input_message_div",
    },
    c = new DataTransfer();
  c["setData"](o["VyPXg"], O);
  const T = {};
  (T["clipboardData"] = c), (T["bubbles"] = !![]);
  const C = new ClipboardEvent("paste", T),
    P = o["NshtN"](getDocumentElement, o["BzPPR"]);
  P["dispatchEvent"](C);
}
function referesh_messages() {
  const O = {
    xJCCc: function (T, C) {
      return T(C);
    },
    wdFDw: function (T, C) {
      return T + C;
    },
    hfTlu: function (T, C) {
      return T + C;
    },
    isUlC: function (T, C) {
      return T + C;
    },
    JLztI:
      "<div\x20style=\x22margin:\x208px\x200px;display:\x20flex;\x22><div\x20class=\x22popup_list_message\x22\x20style=\x22color:\x20var(--message-primary);background-color:\x20var(--outgoing-background);padding:\x206px\x207px\x208px\x209px;border-radius:\x207.5px;margin:\x202px\x200px;max-width:\x20400px;margin-right:\x208px;cursor:\x20pointer;overflow:\x20auto;\x22>",
    kUBlG: "</div>",
    kdiCe:
      "<button\x20class=\x22delete_message\x20CtaDeleteBtn\x22\x20style=\x22border:\x201px\x20solid\x20red;width:\x2018px;height:\x2018px;color:\x20red;border-radius:\x2050%;font-size:\x2011px;margin-top:\x208px;\x22\x20value=\x22",
  };
  var o = document["getElementById"]("sugg_message_list");
  (o["innerHTML"] = ""),
    $["each"](messages, function (T, C) {
      var P = O["xJCCc"](
        $,
        $["parseHTML"](
          O["wdFDw"](
            O["hfTlu"](O["isUlC"](O["JLztI"] + C, O["kUBlG"]) + O["kdiCe"], C),
            "\x22>X</button></div>"
          )
        )
      );
      o["appendChild"](P[0x0]);
    });
  const c = {};
  (c["messages"] = messages), chrome["storage"]["local"]["set"](c);
}
async function suggestion_popup() {
  const y = {
    zOHkd: "modal",
    vwniT: "none",
    nESuK: function (C, P) {
      return C != P;
    },
    fnUoD: "div",
    PDywv: function (C) {
      return C();
    },
    cGVkS: function (C, P) {
      return C(P);
    },
    MXsLw: "smart_reply_deleted",
    BTnKp: function (C, P) {
      return C == P;
    },
    GIckL: function (C, P) {
      return C == P;
    },
    ksMAA: "popup_list_message",
    hvbVy: "smart_reply_sent",
    HiMIn: function (C, P) {
      return C !== P;
    },
    mnNuM: "add_message",
    SecRo: "smart_reply_added",
    VxKkC: "modal-content",
    XHYiS: "relative",
    TeZUd: "600px",
    wtfmK: "560px",
    VCAdm: "auto",
    lesRb: "body",
    lkQAS: function (C, P) {
      return C(P);
    },
    WXcww:
      "<div\x20style=\x22font-weight:\x20bold;font-size:\x2020px;text-align:\x20center;margin-bottom:\x2024px;color:\x20#000;\x22>Edit/Add\x20quick\x20replies</div>",
    SCKzH: "sugg_message_list",
    jNVnP: function (C, P) {
      return C(P);
    },
    plxor: function (C, P) {
      return C + P;
    },
    GEOLw:
      "<span\x20id=\x22close_edit\x22\x20class=\x22CtaCloseBtn\x22\x20style=\x22position:\x20absolute;top:\x206px;right:\x206px;font-size:\x2020px;width:14px\x22><img\x20\x20class=\x22CtaCloseBtn\x22\x20src=\x22",
    BEndt: "\x22\x20style=\x22width:\x20100%;\x22\x20alt=\x22x\x22></span>",
    BIwuR:
      "<textarea\x20style=\x22width:\x20400px;height:\x20100px;padding:\x208px;\x22\x20type=\x22text\x22\x20id=\x22add_message\x22\x20placeholder=\x22Type\x20your\x20quick\x20reply\x20here\x22></textarea>",
    uAtIt:
      "<button\x20class=\x22CtaBtn\x22\x20style=\x22background:\x20#62D9C7;border-radius:\x202px;padding:\x208px\x2012px;float:\x20right;color:\x20#fff;\x22\x20id=\x22add_message_btn\x22>Add\x20Template</button>",
    Evsgr: "click",
    YdgKv: "add_message_btn",
    suIeo: "block",
    RqAXA: "Type\x20your\x20quick\x20reply\x20here",
    dVxFQ: "Add\x20Template",
  };
  if (!document["getElementsByClassName"](y["zOHkd"])[0x0]) {
    var O = document["createElement"](y["fnUoD"]);
    O["className"] = y["zOHkd"];
    var o = document["createElement"](y["fnUoD"]);
    (o["className"] = y["VxKkC"]),
      (o["style"]["position"] = y["XHYiS"]),
      (o["style"]["width"] = y["TeZUd"]),
      (o["style"]["maxHeight"] = y["wtfmK"]),
      (o["style"]["overflow"] = y["VCAdm"]),
      O["appendChild"](o);
    var c = document["querySelector"](y["lesRb"]);
    c["appendChild"](O),
      o["appendChild"](y["lkQAS"]($, $["parseHTML"](y["WXcww"]))[0x0]);
    var T = document["createElement"](y["fnUoD"]);
    (T["id"] = y["SCKzH"]),
      (T["style"]["height"] = "210px"),
      (T["style"]["overflowY"] = y["VCAdm"]),
      (T["style"]["margin"] = "16px\x200px"),
      o["appendChild"](T),
      y["PDywv"](referesh_messages),
      o["appendChild"](
        y["jNVnP"](
          $,
          $["parseHTML"](
            y["plxor"](y["plxor"](y["GEOLw"], close_img_src), y["BEndt"])
          )
        )[0x0]
      ),
      o["appendChild"](y["cGVkS"]($, $["parseHTML"](y["BIwuR"]))[0x0]),
      o["appendChild"](y["lkQAS"]($, $["parseHTML"](y["uAtIt"]))[0x0]),
      document["getElementById"]("close_edit")["addEventListener"](
        y["Evsgr"],
        function (C) {
          document["getElementsByClassName"](y["zOHkd"])[0x0]["style"][
            "display"
          ] = y["vwniT"];
        }
      ),
      document["getElementById"](y["SCKzH"])["addEventListener"](
        y["Evsgr"],
        async function (C) {
          var P = C["target"]["value"];
          if (y["nESuK"](C["target"]["localName"], y["fnUoD"])) {
            var N = messages["indexOf"](P);
            messages["splice"](N, 0x1),
              y["PDywv"](referesh_messages),
              y["cGVkS"](trackButtonClick, y["MXsLw"]);
          } else {
            if (
              y["BTnKp"](C["target"]["localName"], y["fnUoD"]) &&
              y["GIckL"](C["target"]["className"], y["ksMAA"])
            ) {
              document["getElementsByClassName"](y["zOHkd"])[0x0]["style"][
                "display"
              ] = y["vwniT"];
              var W = C["target"]["innerHTML"];
              W != undefined && y["cGVkS"](sendSuggestionMessage, W),
                y["cGVkS"](trackButtonClick, y["hvbVy"]);
            }
          }
        }
      ),
      document["getElementById"](y["YdgKv"])["addEventListener"](
        y["Evsgr"],
        function (C) {
          var P = document["getElementById"]("add_message")["value"];
          y["HiMIn"](P, "") &&
            (messages["push"](P),
            referesh_messages(),
            (document["getElementById"](y["mnNuM"])["value"] = ""),
            trackButtonClick(y["SecRo"]));
        }
      );
  } else
    document["getElementsByClassName"](y["zOHkd"])[0x0]["style"]["display"] =
      y["suIeo"];
  (document["getElementById"](y["mnNuM"])["placeholder"] = await translate(
    y["RqAXA"]
  )),
    (document["getElementById"](y["YdgKv"])["innerText"] = await translate(
      y["dVxFQ"]
    ));
}
function reload_mynumber() {
  const y = {
    tNvHI: function (C, P) {
      return C === P;
    },
    CGOKs: "my_number",
    UTURL: "last-wid",
    AKaUq: function (C, P, N) {
      return C(P, N);
    },
    prqpw: "visit",
    NOXjS: "no_number",
    pmDpw: "track",
    ZIAIv: "no_number_local_storage",
    GSxvC: "_3hcUV",
    tYUwW: function (C, P) {
      return C == P;
    },
    KOJFo: "BETA",
    FJvVd: function (C, P) {
      return C(P);
    },
    fgimL: "cooby_version",
  };
  chrome["storage"]["local"]["get"]([y["CGOKs"]], function (C) {
    if (y["tNvHI"](C["my_number"], undefined)) my_number = null;
    else my_number = C["my_number"];
  });
  if (!my_number) {
    var O = window["localStorage"]["getItem"](y["UTURL"]),
      o = window["localStorage"]["getItem"]("last-wid-md");
    if (o)
      my_number = window["localStorage"]
        ["getItem"]("last-wid-md")
        ["split"]("@")[0x0]
        ["substring"](0x1)
        ["split"](":")[0x0];
    else {
      if (O)
        my_number = window["localStorage"]
          ["getItem"]("last-wid")
          ["split"]("@")[0x0]
          ["substring"](0x1);
    }
    if (my_number) chrome["storage"]["local"]["set"]({ my_number: my_number });
  }
  y["AKaUq"](trackEvent, y["prqpw"], my_number);
  if (!my_number) {
    trackEvent(y["NOXjS"], y["pmDpw"]);
    try {
      y["AKaUq"](trackEvent, y["ZIAIv"], window["localStorage"]);
    } catch (C) {
      console["log"](C);
    }
  }
  var c = document["getElementsByClassName"](y["GSxvC"])[0x0];
  if (c && y["tYUwW"](c["innerText"], y["KOJFo"]))
    y["AKaUq"](trackEvent, "beta_version", my_number);
  var T = document["getElementById"]("cooby-ui");
  if (T) y["FJvVd"](trackButtonView, y["fgimL"]);
}
function setGroupDataToLocalStorage(o) {
  const c = {};
  c["VHQCG"] = function (W, G) {
    return W + G;
  };
  const T = c;
  let C = o["map"]((W) => {
    return {
      ...W,
      objId: T["VHQCG"]("g", W["id"]["_serialized"]["replace"](/\D+/g, "")),
    };
  });
  const P = {};
  (P["allGroupData"] = C), chrome["storage"]["local"]["set"](P);
  const N = o;
  N["forEach"]((W) => {
    const G = W["id"]["_serialized"];
    if (G && W["name"]) groupIdToName[G] = W["name"];
  });
}
function setContactDataToLocalStorage(o) {
  const c = {};
  c["LzgAq"] = function (W, G) {
    return W + G;
  };
  const T = c;
  let C = o["map"]((W) => {
    return {
      ...W,
      objId: T["LzgAq"]("c", W["id"]["_serialized"]["replace"](/\D+/g, "")),
    };
  });
  const P = {};
  (P["allContactData"] = C), chrome["storage"]["local"]["set"](P);
  const N = o;
  N["forEach"]((W) => {
    const G = W["id"]["_serialized"];
    if (G && W["name"]) contactIdToName[G] = W["name"];
  });
}
async function readFileAndSaveToLocalStorage(O, o) {
  const c = {
    FrXCI: function (W) {
      return W();
    },
  };
  let T = O["target"]["files"],
    C = [],
    P = Array["from"](T)["map"]((W) => {
      const G = {
        GKLyZ: function (l) {
          return c["FrXCI"](l);
        },
      };
      return new Promise((l) => {
        const Z = new FileReader();
        (Z["onload"] = function (a) {
          const w = a["target"]["result"],
            S = {};
          (S["name"] = W["name"]), (S["type"] = W["type"]), (S["data"] = w);
          const p = S;
          C["push"](p), G["GKLyZ"](l);
        }),
          Z["readAsDataURL"](W);
      });
    });
  await Promise["all"](P);
  const N = {};
  (N[o] = C), chrome["storage"]["local"]["set"](N);
}
async function handleAddAttachment() {
  const y = {
    PCdGJ: function (o, c, T) {
      return o(c, T);
    },
    kUBJT: "multiple_attachments",
    yXGEr: "Advance",
    qpwTi: function (o, c, T) {
      return o(c, T);
    },
    jdBsx: "linuxInputAttachments",
    jWxeF: "new_input_element",
    sXVtl: "change",
  };
  let O = document["createElement"]("input");
  (O["type"] = "file"),
    (O["id"] = y["jWxeF"]),
    (O["multiple"] = !![]),
    document["body"]["appendChild"](O),
    O["click"](),
    O["addEventListener"](y["sXVtl"], async function (o) {
      let c = O?.["files"]["length"];
      c && c > 0x1 && !isAdvanceFeatureAvailable()
        ? y["PCdGJ"](premium_reminder, y["kUBJT"], y["yXGEr"])
        : await y["qpwTi"](readFileAndSaveToLocalStorage, o, y["jdBsx"]),
        O["remove"]();
    });
}
function handleAddCSVInput() {
  const O = {};
  (O["NRrVP"] = "input"),
    (O["sGrLj"] = "file"),
    (O["HeHNk"] = ".xls,.xlsx,.ods,.csv"),
    (O["sFTOt"] = "change");
  const o = O;
  let c = document["createElement"](o["NRrVP"]);
  (c["type"] = o["sGrLj"]),
    (c["id"] = "new_csv_input_element"),
    (c["accept"] = o["HeHNk"]),
    document["body"]["appendChild"](c),
    c["click"](),
    c["addEventListener"](o["sFTOt"], async function (T) {
      await readFileAndSaveToLocalStorage(T, "linuxCSVAttachment"),
        c["remove"]();
    });
}
function init() {
  const y = {
    qpwlP: "reply_div",
    qtMdV: function (O, o) {
      return O !== o;
    },
    NOcdj: function (O) {
      return O();
    },
    bxSQD: "download_group_btn",
    yTLwi: "translate_div",
    azuhc: "downloadUnsavedContacts",
    BILPC: "profile_header",
    RCEwP: function (O) {
      return O();
    },
    LtblF: "prime_profile_btn",
    hetgk: "prime_profile_popup",
    bdZnq: function (O, o) {
      return O && o;
    },
    Zadiw: function (O) {
      return O();
    },
    CWVwX: "#main",
    Fmeoo: function (O, o) {
      return O(o);
    },
    fOzfS: "new_chat_btn",
    fLPwj: "CtaBtn",
    lFXjf: "#side",
    hMJWB: function (O, o) {
      return O === o;
    },
    XAugl: "web.whatsapp.com",
    qCnUQ: "messages",
    jjdKB: "temp_test",
    xkmSj: function (O, o) {
      return O < o;
    },
    MZPVZ: function (O, o, c) {
      return O(o, c);
    },
    bnNkn: "loggedin",
  };
  y["NOcdj"](messageListner),
    y["NOcdj"](fetchConfigData),
    (window["onload"] = function () {
      const O = {
        jGFMV: y["lFXjf"],
        sZLQa: function (c, T) {
          return y["Fmeoo"](c, T);
        },
        UDYkd: y["BILPC"],
        FZjhI: function (c, T) {
          return y["Fmeoo"](c, T);
        },
        tXtAK: function (c) {
          return y["Zadiw"](c);
        },
      };
      if (y["hMJWB"](window["location"]["host"], y["XAugl"])) {
        y["Zadiw"](reload_mynumber),
          chrome["storage"]["local"]["get"]([y["qCnUQ"]], function (c) {
            if (c["messages"]) messages = c["messages"];
          }),
          setInterval(() => {
            const c = document["getElementById"](y["qpwlP"]);
            (!c || y["qtMdV"](messages["length"], total_messages)) &&
              y["NOcdj"](suggestion_messages);
            const T = document["getElementById"](y["bxSQD"]);
            !T && download_group_contacts();
            const C = document["getElementById"](y["yTLwi"]);
            !C && y["NOcdj"](translate_messages);
            const P = document["getElementById"](y["azuhc"]);
            !P && downloadUnsavedContacts();
            const N = getDocumentElement(y["BILPC"]);
            N && y["RCEwP"](blur_contacts);
            const W = document["getElementById"](y["LtblF"]);
            !W && y["NOcdj"](primeProfile);
            const G = document["getElementById"](y["hetgk"]);
            y["bdZnq"](isProfile, !G) &&
              y["Zadiw"](createProfileSection)["then"]((Z) => {
                document["querySelector"](O["jGFMV"])["appendChild"](Z);
              });
            if (document["querySelector"](y["CWVwX"]))
              try {
                y["Fmeoo"](toggleBlur, !![]);
              } catch (Z) {
                console["log"](Z);
              }
            const l = getDocumentElement(y["fOzfS"]);
            l &&
              !l["classList"]["contains"](y["fLPwj"]) &&
              l["classList"]["add"](y["fLPwj"]);
          }, 0x3e8),
          trackEvent(y["jjdKB"], null);
        if (my_number) y["RCEwP"](fetch_plan_details);
      }
      const o = setInterval(() => {
        const c = O["sZLQa"](getDocumentElement, O["UDYkd"]);
        c &&
          (O["FZjhI"](clearInterval, o), O["tXtAK"](handleScheduleCampaigns));
      }, 0x64);
    }),
    window["addEventListener"]("beforeunload", function (o) {
      const c = {
        cCEWr: function (T, C) {
          return y["xkmSj"](T, C);
        },
      };
      chrome["storage"]["local"]["get"](
        ["scheduled_campaigns"],
        async function (T) {
          let C = T["scheduled_campaigns"] || [];
          for (let N = 0x0; c["cCEWr"](N, C["length"]); N++) {
            C[N]["hasBeenScheduled"] = ![];
          }
          const P = {};
          (P["scheduled_campaigns"] = C), chrome["storage"]["local"]["set"](P);
        }
      );
      if (isCampaignRunning) {
        const T = {};
        (T["isCampaignRunning"] = !![]), (T["index"] = campaignRunningIndex);
        let C = T;
        const P = {};
        (P["resumeCampaign"] = C),
          chrome["storage"]["local"]["set"](P),
          (isCampaignRunning = ![]);
      }
    }),
    chrome["runtime"]["sendMessage"]({}, function (O) {
      (logged_in_user = O["email"]),
        y["MZPVZ"](trackEvent, y["bnNkn"], logged_in_user);
    });
}
init();
function openEmailPopup(y) {
  const O = {
    IpfKP: function (P, N) {
      return P(N);
    },
    luebG: "Chat\x20support\x20for\x20prime\x20sender",
    nkmtd: function (P, N) {
      return P + N;
    },
    EVtZe: function (P, N) {
      return P + N;
    },
    YiAwv: function (P, N) {
      return P + N;
    },
    iSINw: "mailto:",
    XkrGn: "?subject=",
  };
  let o = "primesenderextension@gmail.com",
    c = O["IpfKP"](encodeURIComponent, O["luebG"]),
    T = O["IpfKP"](encodeURIComponent, y),
    C = O["nkmtd"](
      O["EVtZe"](
        O["EVtZe"](O["YiAwv"](O["nkmtd"](O["iSINw"], o), O["XkrGn"]), c),
        "&body="
      ),
      T
    );
  window["open"](C, "_blank");
}
function messageListner() {
  chrome["runtime"]["onMessage"]["addListener"](listner);
}
function listner(y, O, o) {
  const c = {
    iXZPs: "number_message",
    murHC: function (T, C, P, N, W, G, l, Z, a, w, S, p, B, b, i, I) {
      return T(C, P, N, W, G, l, Z, a, w, S, p, B, b, i, I);
    },
    OJlUO: "group_message",
    vvqwI: function (T, C, P, N, W, G, l, Z, a, w, S, p, B, b, i, I) {
      return T(C, P, N, W, G, l, Z, a, w, S, p, B, b, i, I);
    },
    zpEHe: function (T, C) {
      return T === C;
    },
    nThsD: "schedule_message",
    bCOGa: function (T, C) {
      return T === C;
    },
    hRoLT: "clear_schedule_timeout",
    bhgsx: function (T, C) {
      return T(C);
    },
    uDohN: "help",
    JPuEI: function (T) {
      return T();
    },
    aqiqE: "transfer_premium",
    eiRUY: function (T, C) {
      return T(C);
    },
    BqZxy: "show_premium_popup",
    mQGyi: "Premium",
    UyIzG: function (T, C) {
      return T === C;
    },
    aqaGz: "show_advance_popup",
    CgaIe: function (T, C, P) {
      return T(C, P);
    },
    xqgad: "Advance",
    zpwnK: function (T, C) {
      return T === C;
    },
    OFZpB: "add_attachments",
    yWyFb: function (T, C) {
      return T === C;
    },
    CaiwK: "create_csv_input",
    YlpKP: function (T, C) {
      return T === C;
    },
    eSeyH: "fetch_plan_details",
    IyYuW: function (T) {
      return T();
    },
    GvqhW: function (T, C) {
      return T === C;
    },
    CvHuB: function (T, C) {
      return T === C;
    },
    YFhQP: "request_chat_premium",
    UUpev: "request_zoom_premium",
    JVwrX: function (T, C) {
      return T === C;
    },
    QVKxB: "request_call_premium",
    rMXcf: function (T) {
      return T();
    },
    MfQXr: function (T, C) {
      return T(C);
    },
    QEaSf: function (T, C) {
      return T === C;
    },
    bXFOe: "unsubscribe",
    ohqFV: "learn_schedule",
    aESUn: function (T, C) {
      return T === C;
    },
    uKaXk: "buy_premium_popup",
    QrCei: function (T) {
      return T();
    },
  };
  if (y["type"] === c["iXZPs"])
    c["murHC"](
      messanger,
      y["pausedCampaign"],
      y["numbers"],
      y["message"],
      y["time_gap"],
      y["csv_data"],
      y["customization"],
      y["caption_customization"],
      y["random_delay"],
      y["batch_size"],
      y["batch_gap"],
      y["caption"],
      y["type"],
      y["startIndex"],
      y["paused_report_rows"],
      y["paused_sent_count"]
    );
  else {
    if (y["type"] === c["OJlUO"])
      c["vvqwI"](
        messanger,
        y["pausedCampaign"],
        y["groups"],
        y["message"],
        y["time_gap"],
        y["csv_data"],
        y["customization"],
        y["caption_customization"],
        y["random_delay"],
        y["batch_size"],
        y["batch_gap"],
        y["caption"],
        y["type"],
        y["startIndex"],
        y["paused_report_rows"],
        y["paused_sent_count"]
      );
    else {
      if (c["zpEHe"](y["type"], c["nThsD"])) handleScheduleCampaigns();
      else {
        if (c["bCOGa"](y["type"], c["hRoLT"]))
          c["bhgsx"](clearTimeout, y["timeoutId"]);
        else {
          if (c["bCOGa"](y["type"], c["uDohN"])) c["JPuEI"](handle_help);
          else {
            if (c["zpEHe"](y["type"], c["aqiqE"]))
              c["eiRUY"](help, y["message"]);
            else {
              if (c["zpEHe"](y["type"], c["BqZxy"]))
                premium_reminder(y["feature"], c["mQGyi"]);
              else {
                if (c["UyIzG"](y["type"], c["aqaGz"]))
                  c["CgaIe"](premium_reminder, y["feature"], c["xqgad"]);
                else {
                  if (c["zpwnK"](y["type"], c["OFZpB"]))
                    c["JPuEI"](handleAddAttachment);
                  else {
                    if (c["yWyFb"](y["type"], c["CaiwK"])) handleAddCSVInput();
                    else {
                      if (c["YlpKP"](y["type"], c["eSeyH"]))
                        reload_mynumber(), c["IyYuW"](fetch_plan_details);
                      else {
                        if (c["GvqhW"](y["type"], "chat_link")) chat_link();
                        else {
                          if (c["CvHuB"](y["type"], "unsaved_contacts_demo"))
                            c["JPuEI"](unsavedContactsDemo);
                          else {
                            if (c["yWyFb"](y["type"], c["YFhQP"])) {
                              if (c["IyYuW"](isAdvance))
                                c["bhgsx"](
                                  help,
                                  HELP_MESSAGES["REQUEST_CHAT_SUPPORT_ADVANCE"]
                                );
                              else
                                help(
                                  HELP_MESSAGES["REQUEST_CHAT_SUPPORT_BASIC"]
                                );
                            } else {
                              if (c["CvHuB"](y["type"], c["UUpev"])) {
                                if (c["IyYuW"](isAdvance))
                                  c["bhgsx"](
                                    help,
                                    HELP_MESSAGES[
                                      "REQUEST_ZOOM_SUPPORT_ADVANCE"
                                    ]
                                  );
                                else
                                  help(
                                    HELP_MESSAGES["REQUEST_ZOOM_SUPPORT_BASIC"]
                                  );
                              } else {
                                if (c["JVwrX"](y["type"], c["QVKxB"])) {
                                  if (c["rMXcf"](isAdvance))
                                    c["bhgsx"](
                                      help,
                                      HELP_MESSAGES[
                                        "REQUEST_CALL_SUPPORT_ADVANCE"
                                      ]
                                    );
                                  else
                                    c["MfQXr"](
                                      help,
                                      HELP_MESSAGES[
                                        "REQUEST_CALL_SUPPORT_BASIC"
                                      ]
                                    );
                                } else {
                                  if (c["QEaSf"](y["type"], c["bXFOe"]))
                                    help(HELP_MESSAGES["UNSUBSCRIBE_PLAN"]);
                                  else {
                                    if (y["type"] === c["ohqFV"])
                                      c["bhgsx"](
                                        help,
                                        HELP_MESSAGES["LEARN_SCHEDULE"]
                                      );
                                    else {
                                      if (c["aESUn"](y["type"], c["uKaXk"]))
                                        c["QrCei"](show_trial_popups);
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
function sendChromeMessage(y) {
  chrome["runtime"]["sendMessage"](y);
}
function help(y) {
  const O = {
    lmLph: "default",
    VWvXR: function (o, c, T) {
      return o(c, T);
    },
    FMNMZ: function (o) {
      return o();
    },
    YozEF: "currentLanguage",
    uxIgT: "customer_care_number",
  };
  chrome["storage"]["local"]["get"]([O["YozEF"], O["uxIgT"]], async (o) => {
    let c = y["replace"](/ /gm, "\x20"),
      T = o["currentLanguage"] || O["lmLph"];
    HELP_MESSAGE_LANGUAGE_CODES["includes"](T) && (c = await translate(c)),
      await O["VWvXR"](openNumber, o["customer_care_number"], c),
      await O["FMNMZ"](sendMessage);
  });
}
function handle_help() {
  const y = {
    UeYif: function (O) {
      return O();
    },
    SKEkG: function (O) {
      return O();
    },
    aUyEg: function (O, o) {
      return O(o);
    },
    QhTdj: function (O, o) {
      return O(o);
    },
    hmDGU: function (O, o) {
      return O(o);
    },
  };
  if (y["UeYif"](isPremium)) {
    if (y["SKEkG"](isAdvance))
      y["aUyEg"](help, HELP_MESSAGES["REQUEST_CHAT_SUPPORT_ADVANCE"]);
    else y["QhTdj"](help, HELP_MESSAGES["REQUEST_CHAT_SUPPORT_BASIC"]);
  } else {
    if (my_number && my_number["startsWith"](0x3e))
      y["QhTdj"](openEmailPopup, HELP_MESSAGES["NEED_HELP_NON_PREMIUM"]);
    else y["hmDGU"](help, HELP_MESSAGES["NEED_HELP_NON_PREMIUM"]);
  }
}
document["body"]["addEventListener"]("click", function (y) {
  y["target"]["classList"]["contains"]("handle_help_btn") && handle_help();
});
async function unsavedContactsDemo() {
  const y = {
    ellvg: function (o, c) {
      return o(c);
    },
    xOSRg: function (o, c) {
      return o(c);
    },
  };
  let O = await y["ellvg"](fetchTranslations, exportUnsavedContactsObj);
  y["xOSRg"](driver, O)["drive"]();
}
function hasLeadingOrTrailingSpaces(y) {
  const O = /^\s+|\s+$/g;
  return O["test"](y);
}
async function setMessages(y, O, o, c) {
  const T = {
    whjzk: function (Z, a) {
      return Z == a;
    },
    XFMdk: "text",
    PLyVG: function (Z, a) {
      return Z == a;
    },
    RkKvE: function (Z, a) {
      return Z < a;
    },
    SISyP: "caption",
    EAWrs: function (Z, a) {
      return Z(a);
    },
    ddQyN: function (Z, a) {
      return Z + a;
    },
    axAkC: function (Z, a) {
      return Z + a;
    },
    IDMYG: function (Z, a) {
      return Z + a;
    },
  };
  if (T["whjzk"](o, T["XFMdk"]) && T["PLyVG"](O["length"], 0x0)) {
    let Z = [];
    for (let a = 0x0; T["RkKvE"](a, c); a++) {
      Z["push"](y);
    }
    return Z;
  }
  var C = [];
  for (var P = 0x1; T["RkKvE"](P, O["length"]); P++) {
    if (T["whjzk"](o, T["SISyP"])) var N = y[0x0];
    else var N = y;
    for (var W = 0x0; T["RkKvE"](W, O[0x0]["length"]); W++) {
      if (!T["EAWrs"](hasLeadingOrTrailingSpaces, O[0x0][W])) var G = O[0x0][W];
      else var G = O[0x0][W]["trim"]();
      var l = O[P][W];
      if (N["includes"](T["ddQyN"]("{{", G) + "}}"))
        N = N["replaceAll"](T["axAkC"](T["IDMYG"]("{{", G), "}}"), l);
    }
    C["push"](N);
  }
  return C;
}
function triggerEscape() {
  const O = {};
  (O["QpIPd"] = "keydown"), (O["EjccQ"] = "Escape");
  const o = O;
  var c = new KeyboardEvent(o["QpIPd"], {
    key: o["EjccQ"],
    code: o["EjccQ"],
    keyCode: 0x1b,
    charCode: 0x1b,
  });
  document["dispatchEvent"](c);
}
function transposeArray(O) {
  const o = {};
  (o["nwAyr"] = function (N, W) {
    return N < W;
  }),
    (o["bMmGT"] = function (N, W) {
      return N < W;
    });
  const c = o,
    T = O[0x0]["length"],
    C = O["length"],
    P = [];
  for (let N = 0x0; c["nwAyr"](N, T); N++) {
    const W = [];
    for (let G = 0x0; c["bMmGT"](G, C); G++) {
      W["push"](O[G][N]);
    }
    P["push"](W);
  }
  return P;
}
function checkCustomisation(y, O) {
  const o = {
    QFtci: function (W, G) {
      return W !== G;
    },
    Xakqy: function (W, G) {
      return W(G);
    },
  };
  if (O["length"] == 0x0) return ![];
  const c = /\{\{([^}]+)\}\}/g,
    T = [];
  let C;
  while (o["QFtci"]((C = c["exec"](y)), null)) {
    T["push"](C[0x1]["trim"]());
  }
  for (var P = 0x0; P < O[0x0]["length"]; P++) {
    if (!o["Xakqy"](hasLeadingOrTrailingSpaces, O[0x0][P])) var N = O[0x0][P];
    else var N = O[0x0][P]["trim"]();
    if (T["includes"](N)) return !![];
  }
  return ![];
}
async function manageCaptionCustomisation(y, O) {
  const o = {
    ANxNO: function (P, N, W, G) {
      return P(N, W, G);
    },
    JAhGS: function (P, N) {
      return P(N);
    },
  };
  let c = y,
    T = [],
    C;
  for (let P = 0x0; P < c["length"]; P++) {
    (C = await o["ANxNO"](setMessages, [c[P]], O, "caption")), T["push"](C);
  }
  return (finalArr = o["JAhGS"](transposeArray, T)), finalArr;
}
function sendMessasgeToGroup(c, T) {
  const C = {};
  C["kibkM"] = "PRIMES::send-message-to-group";
  const P = C,
    N = {};
  (N["group_id"] = c), (N["message"] = T);
  const W = N,
    G = {};
  (G["detail"] = W), window["dispatchEvent"](new CustomEvent(P["kibkM"], G));
  return;
}
async function messanger(o, c, T, C, P, N, W, G, l, Z, a, w, S, p, B, b) {
  const I = {
    QiwHY: function (f, m) {
      return f(m);
    },
    XGDRt: "attachmentsData",
    jllmK: function (f, m) {
      return f !== m;
    },
    nDnNY: function (f, m) {
      return f > m;
    },
    XkLuA: function (f, m, J) {
      return f(m, J);
    },
    HUDIa: "batch_size",
    kgKxz: function (f, m) {
      return f == m;
    },
    eqjKY: "group_message",
    KYujL: "Scheduled_group",
    mtcQj: function (f, m) {
      return f != m;
    },
    SuKKZ: function (f, m) {
      return f != m;
    },
    FHzEg: function (f, m, J, y0, y1) {
      return f(m, J, y0, y1);
    },
    OrVXZ: function (f, m) {
      return f != m;
    },
    PPvEG: function (f, m) {
      return f != m;
    },
    VNGCH: function (f, m, J) {
      return f(m, J);
    },
    wiPcx: function (f, m) {
      return f == m;
    },
    BLvwM: "Group\x20Name",
    oJMhC: "Text\x20Delivered?",
    IVsxr: "Phone\x20Number",
    EdJJV: "All\x20Attachments\x20Delivered?",
    jTPvO: function (f, m) {
      return f == m;
    },
    CmvPk: "Scheduled_number",
    aPwEb: function (f, m) {
      return f === m;
    },
    XOfml: function (f, m) {
      return f % m;
    },
    REzVa: function (f) {
      return f();
    },
    hxTvZ: function (f, m) {
      return f != m;
    },
    OkyUJ: function (f, m) {
      return f < m;
    },
    nmNsp: "messanger_sending",
    ludfa: "6|0|4|7|5|2|3|1",
    yGJGP: function (f, m) {
      return f(m);
    },
    Ymbhq: function (f, m) {
      return f + m;
    },
    gtSbs: function (f, m) {
      return f + m;
    },
    cCesU: function (f, m) {
      return f + m;
    },
    vWpjI:
      "<div\x20style=\x22margin:\x20auto;display:\x20flex;\x20width:\x20100%;\x20align-items:\x20center;\x20justify-content:\x20center;\x20font-weight:\x20400;\x20font-size:\x2012px;\x20line-height:\x2015.53px\x22>Currently\x20sending\x20to\x20:\x20\x20<strong\x20style=\x22padding:\x200px\x2012px;\x22\x20class=\x22currently_sending_number\x22>",
    SiDVz: "</strong>\x20\x20(\x20",
    HNUHp: "\x20of\x20",
    lKsyG: "\x20)</div>",
    AWaRo: function (f, m) {
      return f(m);
    },
    nyrcA: function (f, m) {
      return f + m;
    },
    LuRXb: function (f, m) {
      return f + m;
    },
    YwExE: function (f, m) {
      return f + m;
    },
    Ogyrb:
      "Please\x20check\x20the\x20delivery\x20report\x20after\x20the\x20campaign\x20ends.",
    HgvrI: "div",
    BJoLJ: "none",
    qrZoz: "invalid_number_error",
    wDtaW: function (f, m) {
      return f != m;
    },
    PMgnD: function (f, m, J, y0) {
      return f(m, J, y0);
    },
    JVINI: "1|4|6|5|2|7|0|3",
    KDltK: function (f, m) {
      return f(m);
    },
    RffJv:
      "<div\x20style=\x22width:\x20400px;color:\x20#fff;position:\x20absolute;text-align:\x20center;font-weight:\x20normal;font-size:\x2012px;padding:\x204px;\x22>",
    cKcvE: "</div>",
    ekEKD: function (f, m) {
      return f % m;
    },
    Nkmzu: function (f, m) {
      return f / m;
    },
    msgVW: function (f, m) {
      return f(m);
    },
    qXHYp: "<div\x20style=\x22width:\x20",
    SbqyC:
      "%;background:\x20#357A71;height:\x20100%;border-radius:\x2016px;\x22></div>",
    ttmeY: function (f, m) {
      return f - m;
    },
    UJScq: function (f, m) {
      return f + m;
    },
    mFTLd: function (f, m) {
      return f + m;
    },
    vRMxs: function (f, m) {
      return f + m;
    },
    FxOUR: "\x20hours\x20",
    JWdPY: function (f, m) {
      return f > m;
    },
    RZXPN: "\x20minutes\x20",
    FPjLV: "\x20minute\x20",
    hjvAB: function (f, m) {
      return f != m;
    },
    szVOt: function (f, m) {
      return f != m;
    },
    ZxADf: "conversation_message_div",
    NLDUZ: "@c.us",
    muusJ: function (f, m) {
      return f == m;
    },
    jBZVW: function (f, m) {
      return f * m;
    },
    xovPf: function (f, m) {
      return f - m;
    },
    gBtfS: "Yes",
    lCMcO: function (f) {
      return f();
    },
    BycdZ: function (f, m) {
      return f === m;
    },
    YGRcp:
      "Invalid\x20Number\x20;\x20Tip:\x20Please\x20check\x20if\x20you\x27ve\x20added\x20country\x20code\x20in\x20front\x20of\x20the\x20number",
    POGEP: function (f, m) {
      return f > m;
    },
    KeYJV: function (f, m, J, y0) {
      return f(m, J, y0);
    },
    qaLYM: function (f, m, J, y0) {
      return f(m, J, y0);
    },
    XbZsK: "\x20;\x20",
    PWvAS: "type",
    ROUMd: "Your\x20messages\x20are\x20sent",
    JCJSZ: "message",
    WSgIq: "Open\x20the\x20extension\x20to\x20download\x20the\x20report",
    LKHbt: "rcount",
    eHjkZ: "rvisited",
    TwZxx: function (f, m) {
      return f == m;
    },
    hEAlo: function (f, m) {
      return f == m;
    },
    nxNZG: function (f, m, J, y0, y1) {
      return f(m, J, y0, y1);
    },
    buERL: function (f, m) {
      return f > m;
    },
    DKbRe: "premiumUsageObject",
  };
  I["XkLuA"](trackEvent, "time_gap", C),
    trackEvent(I["HUDIa"], l),
    I["XkLuA"](trackEvent, "random_delay", G),
    trackEvent("batch_gap", Z);
  let H;
  if (I["kgKxz"](w, I["eqjKY"]) || I["kgKxz"](w, I["KYujL"])) H = c;
  let K = T,
    n = a,
    v = S || 0x0;
  if (N && I["mtcQj"](w, I["eqjKY"]) && I["SuKKZ"](w, I["KYujL"]))
    var z = await I["FHzEg"](setMessages, T, P, "text", c["length"]);
  if (
    I["OrVXZ"](w, I["eqjKY"]) &&
    I["PPvEG"](w, I["KYujL"]) &&
    checkCustomisation(n, P)
  )
    var Y = await I["VNGCH"](manageCaptionCustomisation, n, P);
  let d = [],
    g = 0x0,
    j = 0x0,
    F = new Date()["getTime"](),
    k = 0x0;
  if (w == I["eqjKY"] || I["wiPcx"](w, "Scheduled_group"))
    var Q = [
      [I["BLvwM"], I["oJMhC"], "All\x20Attachments\x20Delivered?", "Comments"],
    ];
  else var Q = [[I["IVsxr"], "Text\x20Delivered?", I["EdJJV"], "Comments"]];
  if (p) Q = p;
  if (B) k = B;
  let R = [];
  I["kgKxz"](w, "Scheduled_group") || I["jTPvO"](w, I["CmvPk"])
    ? (R = b || [])
    : (R = await new Promise((f) => {
        const m = {
          DMvEO: function (J, y0) {
            return I["QiwHY"](J, y0);
          },
        };
        chrome["storage"]["local"]["get"]([I["XGDRt"]], (J) => {
          m["DMvEO"](f, J["attachmentsData"] || []);
        });
      }));
  for (let f = 0x0; f < c["length"]; f++) {
    var t = C;
    if (G) t = getRandomNumber(0x2, 0x7);
    if (l && I["aPwEb"](I["XOfml"](f, l), 0x0)) t = Z;
    if (f === 0x0) t = 0x2;
    (g += t), d["push"](t);
  }
  (j = g),
    messanger_popup(),
    checkTipsInterval(),
    await new Promise((m, J) => {
      chrome["storage"]["local"]["get"]([I["XGDRt"]], function (y0) {
        const y1 = {};
        (y1["numbers"] = c),
          (y1["message"] = K),
          (y1["time_gap"] = C),
          (y1["csv_data"] = P),
          (y1["customization"] = N),
          (y1["caption_customization"] = W),
          (y1["random_delay"] = G),
          (y1["batch_size"] = l),
          (y1["batch_gap"] = Z),
          (y1["caption"] = n),
          (y1["campaign_type"] = w);
        const y2 = {};
        (y2["paused"] = ![]),
          (y2["index"] = 0x0),
          (y2["campaignData"] = y1),
          (y2["attachmentsData"] = y0["attachmentsData"] || []),
          (y2["report_rows"] = Q),
          (y2["sent_count"] = k);
        const y3 = y2,
          y4 = {};
        (y4["pausedCampaign"] = y3), chrome["storage"]["local"]["set"](y4, m);
      });
    });
  for (let m = v; m < c["length"]; m++) {
    (campaignRunningIndex = m),
      (isCampaignRunning = !![]),
      I["REzVa"](triggerEscape);
    if (stop) {
      stop = ![];
      break;
    }
    if (pause) {
      await new Promise((y6, y7) => {
        chrome["storage"]["local"]["get"]([I["XGDRt"]], function (y8) {
          const y9 = {};
          (y9["numbers"] = c),
            (y9["message"] = K),
            (y9["time_gap"] = C),
            (y9["csv_data"] = P),
            (y9["customization"] = N),
            (y9["caption_customization"] = W),
            (y9["random_delay"] = G),
            (y9["batch_size"] = l),
            (y9["batch_gap"] = Z),
            (y9["caption"] = n),
            (y9["campaign_type"] = w);
          const yy = {};
          (yy["paused"] = !![]),
            (yy["index"] = m),
            (yy["campaignData"] = y9),
            (yy["attachmentsData"] = y8["attachmentsData"] || []),
            (yy["report_rows"] = Q),
            (yy["sent_count"] = k);
          const yO = yy,
            yo = {};
          (yo["pausedCampaign"] = yO),
            chrome["storage"]["local"]["set"](yo, y6);
        });
      });
      break;
    }
    if (I["mtcQj"](w, I["eqjKY"]) && I["hxTvZ"](w, I["KYujL"])) {
      var L = c[m];
      L = L["replace"](/\D/g, "");
      if (I["OkyUJ"](L["length"], 0xa)) continue;
    }
    var s = document["getElementsByClassName"](I["nmNsp"])[0x0];
    if (s) {
      const y6 = I["ludfa"]["split"]("|");
      let y7 = 0x0;
      while (!![]) {
        switch (y6[y7++]) {
          case "0":
            if (I["wiPcx"](w, "group_message") || I["kgKxz"](w, I["KYujL"]))
              s["appendChild"](
                I["yGJGP"](
                  $,
                  $["parseHTML"](
                    I["Ymbhq"](
                      I["Ymbhq"](
                        I["Ymbhq"](
                          I["gtSbs"](
                            I["cCesU"](
                              I["gtSbs"](I["vWpjI"], groupIdToName[H[m]]),
                              I["SiDVz"]
                            ),
                            m + 0x1
                          ),
                          I["HNUHp"]
                        ),
                        c["length"]
                      ),
                      I["lKsyG"]
                    )
                  )
                )[0x0]
              );
            else
              s["appendChild"](
                I["AWaRo"](
                  $,
                  $["parseHTML"](
                    I["nyrcA"](
                      I["LuRXb"](
                        I["Ymbhq"](I["YwExE"](I["vWpjI"], L), I["SiDVz"]),
                        I["cCesU"](m, 0x1)
                      ),
                      I["HNUHp"]
                    ) +
                      c["length"] +
                      "\x20)</div>"
                  )
                )[0x0]
              );
            continue;
          case "1":
            s["appendChild"](x);
            continue;
          case "2":
            var r =
              "\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<img\x20src=" +
              error_icon_src +
              "\x20style=\x22width:\x2017px;\x20height:\x2017px\x22/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<p\x20class=\x22text\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22font-weight:\x20700;\x22>Invalid\x20number</span>\x20:\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span>" +
              (await translate(I["Ogyrb"])) +
              "</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</p>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20";
            continue;
          case "3":
            x["innerHTML"] = r;
            continue;
          case "4":
            var x = document["createElement"](I["HgvrI"]);
            continue;
          case "5":
            x["style"]["display"] = I["BJoLJ"];
            continue;
          case "6":
            s["innerHTML"] = "";
            continue;
          case "7":
            x["className"] = I["qrZoz"];
            continue;
        }
        break;
      }
    }
    if (N && I["wDtaW"](w, I["eqjKY"]) && I["hxTvZ"](w, I["KYujL"])) T = z[m];
    if (
      I["VNGCH"](checkCustomisation, n, P) &&
      I["hxTvZ"](w, I["eqjKY"]) &&
      I["PPvEG"](w, I["KYujL"])
    )
      a = Y[m];
    var E = ![];
    try {
      (j -= d[m]),
        w != I["eqjKY"] &&
          I["PPvEG"](w, I["KYujL"]) &&
          (E = await I["PMgnD"](openNumber, L, T, d[m]));
    } catch (y8) {
      console["log"](y8);
      continue;
    }
    var D = document["getElementsByClassName"]("messanger_time_bar")[0x0];
    if (D) {
      const y9 = I["JVINI"]["split"]("|");
      let yy = 0x0;
      while (!![]) {
        switch (y9[yy++]) {
          case "0":
            D["appendChild"](
              I["KDltK"](
                $,
                $["parseHTML"](I["nyrcA"](I["RffJv"] + h, I["cKcvE"]))
              )[0x0]
            );
            continue;
          case "1":
            D["innerHTML"] = "";
            continue;
          case "2":
            var X = I["ekEKD"](Math["ceil"](I["Nkmzu"](j, 0x3c)), 0x3c);
            continue;
          case "3":
            D["appendChild"](
              I["msgVW"](
                $,
                $["parseHTML"](
                  I["nyrcA"](I["LuRXb"](I["qXHYp"], u), I["SbqyC"])
                )
              )[0x0]
            );
            continue;
          case "4":
            var u = I["ttmeY"](0x1, j / g) * 0x64;
            continue;
          case "5":
            var U = Math["floor"](I["Nkmzu"](j, 0xe10));
            continue;
          case "6":
            if (I["aPwEb"](m, 0x0)) u = 0x0;
            continue;
          case "7":
            var h =
              I["UJScq"](
                I["UJScq"](
                  I["mFTLd"](
                    "Approx.\x20",
                    U > 0x0
                      ? I["vRMxs"](U, U > 0x1 ? I["FxOUR"] : "\x20hour\x20")
                      : ""
                  ),
                  X
                ),
                I["JWdPY"](X, 0x1) ? I["RZXPN"] : I["FPjLV"]
              ) + "remaining";
            continue;
        }
        break;
      }
    }
    let J = I["JWdPY"](R["length"], 0x0) ? "No" : "-",
      y0 = T ? "No" : "-",
      y1,
      y2,
      y3 = "",
      y4,
      y5;
    if (I["SuKKZ"](w, I["eqjKY"]) && I["mtcQj"](w, I["KYujL"])) {
      [y4, y5] = await isValidNumber();
      if (!y4) {
        Q["push"]([L, y0, J, y5]);
        continue;
      }
    }
    if (I["hjvAB"](w, I["eqjKY"]) && I["szVOt"](w, I["KYujL"]))
      try {
        let yO = getDocumentElement(I["ZxADf"]);
        if (yO) {
          let yo = yO["dataset"]["id"],
            yc = yo["split"]("_")[0x1]["split"](I["NLDUZ"])[0x0];
          I["JWdPY"](yc["length"], 0xa) && (L = yc);
        }
      } catch (yT) {
        console["log"](yT);
      }
    if (T) {
      if (I["jTPvO"](w, I["eqjKY"]) || I["muusJ"](w, I["KYujL"])) {
        if (m) {
          let yC = I["jBZVW"](Math["max"](0x0, I["xovPf"](C, 0x1)), 0x3e8);
          await delay(yC);
        }
        I["VNGCH"](sendMessasgeToGroup, H[m], T), ([y0, y1] = [I["gBtfS"], ""]);
      } else ([y0, y1] = await I["lCMcO"](sendMessage)), (y3 += y1);
    }
    if (I["BycdZ"](y0, "No") && !E) {
      Q["push"]([c[m], y0, J, I["YGRcp"]]);
      continue;
    }
    if (I["POGEP"](R["length"], 0x0)) {
      if (I["wiPcx"](w, "group_message") || I["wiPcx"](w, I["KYujL"]))
        [J, y2] = await I["KeYJV"](sendAttachmentsToGroups, H[m], R, a);
      else [J, y2] = await I["qaLYM"](sendAttachments, L, R, a);
      let yP =
        y3["length"] > 0x0 && I["JWdPY"](y2["length"], 0x0) ? I["XbZsK"] : "";
      y3 += I["vRMxs"](yP, y2);
    }
    I["jTPvO"](y3["length"], 0x0) && ((y3 = "-"), k++);
    if (w == I["eqjKY"] || I["jTPvO"](w, I["KYujL"]))
      Q["push"]([groupIdToName[H[m]], y0, J, y3]);
    else Q["push"]([L, y0, J, y3]);
  }
  (campaignRunningIndex = null), (isCampaignRunning = ![]);
  const q = {};
  (q["attachmentsData"] = []),
    chrome["storage"]["local"]["set"](q),
    (notifications_hash[I["PWvAS"]] = "send_notification"),
    (notifications_hash["title"] = I["ROUMd"]),
    (notifications_hash[I["JCJSZ"]] = I["WSgIq"]),
    I["msgVW"](sendChromeMessage, notifications_hash);
  var M = document["getElementsByClassName"]("messanger_popup")[0x0];
  if (M) {
    M["style"]["display"] = "none";
    let yN = localStorage["getItem"](I["LKHbt"]);
    if (yN == null)
      localStorage["setItem"](I["LKHbt"], 0x1),
        localStorage["setItem"](I["eHjkZ"], 0x0);
    else {
      let yW = localStorage["getItem"](I["eHjkZ"]);
      yN++,
        I["TwZxx"](yN, 0x3) &&
          (I["hEAlo"](yW, 0x0) && I["KDltK"](callIfNoOtherPopups, review_popup),
          (yN = 0x0)),
        localStorage["setItem"]("rcount", yN);
    }
  }
  const V = {};
  (V["rows"] = Q),
    (V["start_time"] = F),
    (V["campaign_type"] = w),
    (V["sent_count"] = k),
    (V["total_time"] = g),
    (V["time_gap"] = C);
  let A = V;
  await I["nxNZG"](updateDeliveryReports, c, T, A, pause),
    (pause = ![]),
    I["buERL"](R["length"], 0x0) &&
      chrome["storage"]["local"]["get"]([I["DKbRe"]], function (yG) {
        if (I["jllmK"](yG["premiumUsageObject"], undefined)) {
          const yl = { ...yG["premiumUsageObject"] };
          yl["attachment"] = !![];
          let yZ = yl;
          if (I["nDnNY"](R["length"], 0x1))
            yZ = { ...yZ, multipleAttachment: !![] };
          const ya = {};
          (ya["premiumUsageObject"] = yZ),
            chrome["storage"]["local"]["set"](ya);
        }
      });
}
async function updateDeliveryReports(o, c, T, C) {
  const P = {
    JzgmM: "deliveryReports",
    ajEoZ: "campaigns",
    SuUXU: function (d, g) {
      return d(g);
    },
    zsDya: function (d, g) {
      return d >= g;
    },
    CpBUR: "en-IN",
    fxTJw: "Last\x20Run",
    WQsIY: function (d, g) {
      return d + g;
    },
    zojJO: "Campaign\x20",
    ovvoK: "Campaign\x20Type",
    Ouctj: "Template\x20Name",
    MUeqT: function (d, g) {
      return d || g;
    },
    AbHBE: "Overall\x20Report",
    KLdRE: "data:text/csv;charset=utf-8,",
    OOEtQ: function (d, g, j, F, k, Q, R) {
      return d(g, j, F, k, Q, R);
    },
  };
  let [N, W, G] = await new Promise((d) => {
    const g = {
      rwIwM: function (j, F) {
        return j(F);
      },
    };
    chrome["storage"]["local"]["get"](
      [P["JzgmM"], P["ajEoZ"], "templates"],
      (j) => {
        let F = j["deliveryReports"] || [],
          k = j["campaigns"] || [],
          Q = j["templates"] || [];
        g["rwIwM"](d, [F, k, Q]);
      }
    );
  });
  if (P["zsDya"](N["length"], 0xa)) N["shift"](0x1);
  let [l, Z] = await new Promise((d) => {
      let g = null,
        j = null,
        F = o["join"](",");
      W["forEach"]((k) => {
        k["numbers"] == F && (g = k["name"]);
      }),
        G["forEach"]((k) => {
          k["message"] == c && (j = k["name"]);
        }),
        P["SuUXU"](d, [g, j]);
    }),
    {
      rows: a,
      start_time: w,
      campaign_type: S,
      sent_count: p,
      total_time: B,
      time_gap: b,
    } = T,
    {
      msg_for_popup: I,
      msg_for_report: e,
      time_saved: H,
    } = calc_time_saved(o["length"], b),
    K = new Date(w)["toLocaleString"](P["CpBUR"])["replace"](",", "\x20"),
    n = [
      [P["fxTJw"], K["toLocaleUpperCase"]()],
      [
        "Campaign\x20Name",
        l || P["WQsIY"](P["zojJO"], P["WQsIY"](N["length"], 0x1)),
      ],
      [P["ovvoK"], S],
      [P["Ouctj"], P["MUeqT"](Z, "-")],
      [P["AbHBE"], p + "\x20sent\x20out\x20of\x20" + o["length"]],
      [e, H],
    ];
  for (let d = 0x0; d < n["length"]; d++) {
    a["length"] == d && a["push"](["", "", "", ""]),
      a[d]["push"]("", "", ...n[d]);
  }
  let v = P["WQsIY"](
    P["KLdRE"],
    a["map"]((g) => g["join"](","))["join"]("\x0a")
  );
  const z = {};
  (z["name"] = l), (z["date"] = w), (z["data"] = v), N["push"](z);
  const Y = {};
  (Y["deliveryReports"] = N),
    await chrome["storage"]["local"]["set"](Y),
    P["OOEtQ"](campaign_end_popup, N, p, o["length"], B, b, C);
}
function loadTips() {
  const y = {
    DCrmI: function (O, o) {
      return O(o);
    },
    lmvGJ: "Did\x20you\x20know?",
    pIJec: "#fff",
    CYMKp: "messanger_popup_tips",
    kcPwC: ".did_you_know",
  };
  chrome["storage"]["local"]["get"](["tips_count"], async (O) => {
    let o = O["tips_count"],
      c = await y["DCrmI"](translate, y["lmvGJ"]),
      T = await y["DCrmI"](translate, DID_YOU_KNOW_TIPS[o]),
      C = document["createElement"]("div");
    (C["style"]["color"] = y["pIJec"]),
      (C["innerHTML"] =
        "<strong\x20class=\x27did_you_know_text\x27\x20style=\x27color:\x20#fff;\x27>" +
        c +
        "</strong><span>" +
        T +
        "</span>"),
      (C["className"] = y["CYMKp"]),
      document["querySelector"](y["kcPwC"])["appendChild"](C);
  });
}
let tipsIntervalID = "";
function checkTipsInterval() {
  const y = {
    afafF: function (O) {
      return O();
    },
  };
  tipsIntervalID == "" && y["afafF"](updateTipsCount);
}
function updateTipsCount() {
  const y = {
    wlSLH: function (O, o) {
      return O % o;
    },
    RGOpG: function (O, o) {
      return O + o;
    },
    dKdwM: ".messanger_popup",
    mRlVH: function (O, o) {
      return O != o;
    },
    evEEK: "none",
    wBSQA: function (O, o) {
      return O(o);
    },
    TUeNC: "Did\x20you\x20know?",
    kXAPv: function (O, o) {
      return O(o);
    },
    uCxZY: ".messanger_popup_tips",
    nMFTm: "tips_count",
    kCNJM: function (O, o, c) {
      return O(o, c);
    },
  };
  tipsIntervalID = y["kCNJM"](
    setInterval,
    () => {
      chrome["storage"]["local"]["get"]([y["nMFTm"]], async (O) => {
        let o = y["wlSLH"](y["RGOpG"](O["tips_count"], 0x1), 0x6),
          c = document["querySelector"](y["dKdwM"]);
        if (c && y["mRlVH"](c["style"]["display"], y["evEEK"])) {
          let T = await y["wBSQA"](translate, y["TUeNC"]),
            C = await y["kXAPv"](translate, DID_YOU_KNOW_TIPS[o]),
            P = document["querySelector"](y["uCxZY"]);
          P["innerHTML"] =
            "<strong\x20class=\x27did_you_know_text\x27\x20style=\x27color:\x20#fff;\x27>" +
            T +
            "</strong><span>" +
            C +
            "</span>";
          const N = {};
          (N["tips_count"] = o), chrome["storage"]["local"]["set"](N);
        }
      });
    },
    0x3a98
  );
}
async function messanger_popup() {
  const y = {
    asfwl: "messanger_popup",
    erCqf: "div",
    qAJNt: "message_being_sent",
    aIdYL: "did_you_know",
    xidPD: "img",
    ZxQKc: "messanger_popup_content",
    unhgO: function (W, G) {
      return W(G);
    },
    mSuSq: function (W, G) {
      return W(G);
    },
    qKTpZ: "campaign_buttons",
    GmnIx: "international",
    asInN: function (W, G) {
      return W == G;
    },
    suPIB: "Basic",
    AprYz: "Advance",
    ZKUeO: "body",
    BsRNY: function (W, G) {
      return W + G;
    },
    kNkTZ:
      "<span\x20id=\x22close_edit1\x22\x20style=\x22position:\x20absolute;top:\x2012px;right:\x2012px;font-size:\x2020px;width:14px\x22><img\x20class=\x22CtaCloseBtn\x22\x20src=\x22",
    YdZhu: "\x22\x20style=\x22width:\x20100%;\x22\x20alt=\x22x\x22></span>",
    yxqdF: "click",
    jHeMJ: ".stop_campaign_button",
    wEjIx: function (W) {
      return W();
    },
    qGQQJ: "block",
    lpWRl: "message_sending_popup_title",
    AcbqC: function (W, G) {
      return W(G);
    },
    XoXLT: "Your\x20messages\x20are\x20being\x20sent",
  };
  var O = document["getElementsByClassName"](y["asfwl"])[0x0];
  if (!O) {
    var o = document["createElement"](y["erCqf"]);
    o["className"] = y["asfwl"];
    var c = document["createElement"](y["erCqf"]);
    c["className"] = y["qAJNt"];
    var T = document["createElement"]("div");
    T["className"] = y["aIdYL"];
    var C = document["createElement"](y["xidPD"]);
    (C["className"] = "campaign_help_logo"),
      (C["src"] = help_icon_src),
      T["appendChild"](C);
    var P = document["createElement"](y["erCqf"]);
    (P["className"] = y["ZxQKc"]),
      c["appendChild"](P),
      P["appendChild"](
        y["unhgO"](
          $,
          $["parseHTML"](
            "<div\x20class=\x22popup_text_title\x22><img\x20style=\x22width:\x2025px;\x20height:\x2025px;\x22\x20src=" +
              email_icon_src +
              "></img><p\x20id=\x22message_sending_popup_title\x22\x20style=\x22margin-left:\x2015px;\x20font-weight:\x20700;\x20font-size:\x2016px;\x20line-height:\x2020.7px;\x20align-items:\x20center;\x20\x22>Your\x20messages\x20are\x20being\x20sent</p></div>"
          )
        )[0x0]
      ),
      P["appendChild"](
        y["unhgO"](
          $,
          $["parseHTML"](
            "<div\x20class=\x22messanger_time_bar_outline\x22><div\x20class=\x22messanger_time_bar\x22\x20></div></div>"
          )
        )[0x0]
      ),
      P["appendChild"](
        y["mSuSq"](
          $,
          $["parseHTML"]("<div\x20class=\x22messanger_sending\x22></div>")
        )[0x0]
      );
    let W = document["createElement"](y["erCqf"]);
    (W["className"] = y["qKTpZ"]),
      (W["innerHTML"] =
        "\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22pause_campaign_button\x20CtaBtn\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22pause_campaign_image\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<img\x20src=" +
        pause_icon_src +
        "\x20alt=\x22\x22\x20/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<p\x20class=\x22text\x22>Pause\x20Campaign</p>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22stop_campaign_button\x20CtaBtn\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22circle\x22></div><p\x20class=\x22text\x22>Stop\x20Campaign</p>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20"),
      P["appendChild"](W);
    if (!isPremiumFeatureAvailable()) {
      let { name: G, name_code: l, currency: Z } = location_info;
      if (Object["keys"](COUNTRY_WITH_SPECIFIC_PRICING)["includes"](l))
        G = COUNTRY_WITH_SPECIFIC_PRICING[l];
      else G = y["GmnIx"];
      let a = "https://prime-sender.com/pricing";
      if (y["asInN"](last_plan_type, y["suPIB"]))
        pricing_link =
          "https://prime-sender.com/pricing/?country=" +
          G +
          "&lastPlan=lastPlan&currentPlan=basic";
      else
        last_plan_type == y["AprYz"] &&
          (pricing_link =
            "https://prime-sender.com/pricing/?country=" +
            G +
            "&lastPlan=lastPlan&currentPlan=advance");
      let w = document["createElement"](y["erCqf"]);
      (w["className"] = "time_gap_reminder_div"),
        (w["innerHTML"] =
          "<div\x20class=\x22circle\x22>30</div><p\x20class=\x22text\x22\x20id=\x22time_gap_reminder_text\x22>Time\x20Gap\x20between\x20messages\x20is\x2030\x20sec.\x20Purchase\x20<a\x20href=\x22" +
          a +
          "\x22\x20target=\x22_blank\x22\x20class=\x22styled_text\x22>\x20Premium\x20</a>\x20to\x20reduce\x20time\x20gap\x20between\x20messages.</p>"),
        P["appendChild"](w);
    }
    o["appendChild"](c), o["appendChild"](T);
    var N = document["querySelector"](y["ZKUeO"]);
    N["appendChild"](o),
      P["appendChild"](
        $(
          $["parseHTML"](y["BsRNY"](y["kNkTZ"], close_img_src) + y["YdZhu"])
        )[0x0]
      ),
      document["getElementById"]("close_edit1")["addEventListener"](
        y["yxqdF"],
        function (S) {
          document["getElementsByClassName"](y["asfwl"])[0x0]["style"][
            "display"
          ] = "none";
        }
      ),
      document["querySelector"](y["jHeMJ"])["addEventListener"](
        y["yxqdF"],
        stopCampaign
      ),
      document["querySelector"](".pause_campaign_button")?.["addEventListener"](
        y["yxqdF"],
        pauseCampaign
      ),
      y["wEjIx"](loadTips);
  } else O["style"]["display"] = y["qGQQJ"];
  document["getElementById"](y["lpWRl"])["innerText"] = await y["AcbqC"](
    translate,
    y["XoXLT"]
  );
}
function stopCampaign() {
  const y = {
    EjLkH: function (O, o) {
      return O !== o;
    },
    OUcop: function (O) {
      return O();
    },
    fkcdi: function (O, o) {
      return O(o);
    },
    DjLzn: "stop",
    wjhqv: function (O, o, c) {
      return O(o, c);
    },
    RCqnN: "stop_campaign",
    EQMrD: "premiumUsageObject",
  };
  y["OUcop"](isPremiumFeatureAvailable)
    ? ((stop = !![]), y["fkcdi"](trackButtonClick, y["DjLzn"]))
    : y["wjhqv"](premium_reminder, y["RCqnN"], "Premium"),
    chrome["storage"]["local"]["get"]([y["EQMrD"]], function (o) {
      if (y["EjLkH"](o["premiumUsageObject"], undefined)) {
        const c = { ...o["premiumUsageObject"] };
        c["stop"] = !![];
        let T = c;
        const C = {};
        (C["premiumUsageObject"] = T), chrome["storage"]["local"]["set"](C);
      }
    });
}
function pauseCampaign() {
  const y = {
    eHlyQ: function (O) {
      return O();
    },
    rrwYU: function (O, o) {
      return O(o);
    },
    fZhSq: "pause_button_clicked",
    qpaxt: function (O, o, c) {
      return O(o, c);
    },
    OIyjo: "pause_campaign",
  };
  y["eHlyQ"](isAdvanceFeatureAvailable)
    ? ((pause = !![]), y["rrwYU"](trackButtonClick, y["fZhSq"]))
    : y["qpaxt"](premium_reminder, y["OIyjo"], "Advance");
}
function getDaySuffix(O) {
  const o = {};
  (o["rrODx"] = function (T, C) {
    return T >= C;
  }),
    (o["rGxuv"] = function (T, C) {
      return T % C;
    });
  const c = o;
  if (c["rrODx"](O, 0xb) && O <= 0xd) return "th";
  switch (c["rGxuv"](O, 0xa)) {
    case 0x1:
      return "st";
    case 0x2:
      return "nd";
    case 0x3:
      return "rd";
    default:
      return "th";
  }
}
function getReportDateFormat(o, c = ![]) {
  const T = {};
  (T["bBJZS"] = function (w, S) {
    return w - S;
  }),
    (T["ctrCK"] = function (w, S) {
      return w * S;
    }),
    (T["SesKE"] = "en-US"),
    (T["Qbyrf"] = "numeric"),
    (T["Yvkrs"] = function (w, S) {
      return w > S;
    }),
    (T["ZDYhx"] = "short"),
    (T["gUMUO"] = function (w, S) {
      return w === S;
    }),
    (T["JnuQg"] = "Today"),
    (T["oKFDV"] = "Yesterday");
  const C = T,
    P = new Date(),
    N = new Date(o),
    W = Math["round"](
      Math["abs"](C["bBJZS"](P, N) / C["ctrCK"](0x18 * 0x3c * 0x3c, 0x3e8))
    ),
    G = N["getDate"](),
    l = G + getDaySuffix(G);
  let Z = N["toLocaleTimeString"](C["SesKE"], {
      hour: C["Qbyrf"],
      minute: C["Qbyrf"],
    }),
    a;
  if (c || C["Yvkrs"](W, 0x1)) {
    const w = {};
    (w["month"] = C["ZDYhx"]),
      (a = l + "\x20" + N["toLocaleDateString"]("en-US", w));
  } else {
    if (C["gUMUO"](W, 0x0)) a = C["JnuQg"];
    else W === 0x1 && (a = C["oKFDV"]);
  }
  if (c) return "(Last\x20Run\x20at\x20" + a + "\x20" + Z + ")";
  return "(Last\x20Run:\x20" + a + "\x20" + Z + ")";
}
function calc_time_saved(o, c) {
  const T = {};
  (T["VMTrE"] = function (S, p) {
    return S >= p;
  }),
    (T["JESUg"] = "Time\x20that\x20could\x20have\x20been\x20saved"),
    (T["HdPDk"] = function (S, p) {
      return S * p;
    }),
    (T["qVdju"] = function (S, p) {
      return S - p;
    }),
    (T["eOxyB"] = "saved\x20with\x20premium"),
    (T["digtN"] = "Time\x20saved\x20with\x20premium"),
    (T["tsiOj"] = function (S, p) {
      return S - p;
    }),
    (T["KfuxX"] = "could\x20have\x20been\x20saved\x20with\x20premium"),
    (T["HNSmZ"] =
      "Time\x20that\x20could\x20have\x20been\x20saved\x20with\x20premium"),
    (T["oaqOq"] = function (S, p) {
      return S * p;
    }),
    (T["uQnul"] = function (S, p) {
      return S / p;
    }),
    (T["HUQMH"] = function (S, p) {
      return S - p;
    }),
    (T["FALnZ"] = function (S, p) {
      return S * p;
    }),
    (T["BcIMw"] = function (S, p) {
      return S && p;
    });
  const C = T;
  let P, N, W;
  isPremiumFeatureAvailable()
    ? C["VMTrE"](c, 0x1e)
      ? ((P = "could\x20have\x20been\x20saved"),
        (N = C["JESUg"]),
        (W = C["HdPDk"](C["qVdju"](c, 0x1), o)))
      : ((P = C["eOxyB"]), (N = C["digtN"]), (W = C["tsiOj"](0x1e, c) * o))
    : ((P = C["KfuxX"]), (N = C["HNSmZ"]), (W = C["oaqOq"](0x1d, o)));
  let G = Math["floor"](C["uQnul"](W, 0xe10)),
    l = Math["floor"](C["tsiOj"](C["uQnul"](W, 0x3c), C["oaqOq"](G, 0x3c))),
    Z = C["qVdju"](C["HUQMH"](W, C["FALnZ"](G, 0xe10)), C["FALnZ"](l, 0x3c)),
    a = "";
  if (C["BcIMw"](G, l)) a = G + "\x20hrs\x20" + l + "\x20min";
  else {
    if (G) a += G + "\x20hrs\x20";
    if (l) a += l + "\x20min\x20";
    if (Z) a += Z + "\x20sec";
  }
  const w = {};
  return (
    (w["msg_for_popup"] = P),
    (w["msg_for_report"] = N),
    (w["time_saved"] = a),
    w
  );
}
async function campaign_end_popup(O, o, c, T, C, P) {
  const N = {
    Qsqec: function (I, e) {
      return I(e);
    },
    ynwFl: "download_delivery_report_button",
    pQFQI: function (I, e) {
      return I == e;
    },
    hQzEq: function (I, e) {
      return I == e;
    },
    gHYRq: function (I, e) {
      return I + e;
    },
    GuKJp: function (I, e) {
      return I / e;
    },
    CwEZi: function (I, e) {
      return I(e);
    },
    jlqMr: function (I, e, H) {
      return I(e, H);
    },
    wnbpe: function (I, e) {
      return I + e;
    },
    ThqBm: "Campaign\x20",
    wYxRb: function (I, e) {
      return I(e);
    },
    Zndlf: "Your\x20campaign\x20is\x20completed",
    FIsXB: function (I, e) {
      return I(e);
    },
    BBdyy: "Approximate\x20time\x20taken",
    IcqgJ: function (I, e) {
      return I > e;
    },
    vdXXX: "minute",
    GpcCE: function (I, e) {
      return I(e);
    },
    fBTyV: "Check\x20our\x20new\x20delivery\x20report",
    FRebq: "div",
    vbhAw: "campaign-end\x20trial_popup",
    PPPqw: "campaignNumber",
  };
  T = Math["ceil"](N["GuKJp"](T, 0x3c));
  let W = O[O["length"] - 0x1],
    {
      msg_for_popup: G,
      msg_for_report: l,
      time_saved: Z,
    } = calc_time_saved(c, C),
    a = N["CwEZi"](encodeURI, W["data"]),
    w = N["jlqMr"](getReportDateFormat, W["date"], !![]),
    S = W["name"] || N["wnbpe"](N["ThqBm"], O["length"]),
    p = S + "\x20" + w + ".csv";
  const B =
      "\x0a\x20\x20\x20\x20<div\x20class=\x27message_send_div\x27>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x27message_send_text\x27\x20style=\x27color:\x20#fff\x27>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<img\x20style=\x27width:\x2050px;\x20height:\x2050px\x27\x20src=" +
      read_icon_src +
      "></img>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<p\x20style=\x27font-weight:\x20700;\x20font-size:\x2020px;\x20line-height:\x2025.88px\x27>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20" +
      (await N["wYxRb"](translate, N["Zndlf"])) +
      "\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</p>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20id=\x22report_download_edit\x22\x20style=\x22position:\x20absolute;top:\x2012px;right:\x2012px;font-size:\x2020px;width:14px;\x20z-index:\x201000\x22><img\x20class=\x22CtaCloseBtn\x22\x20src=" +
      close_img_src +
      "\x20style=\x22width:\x20100%;\x22\x20alt=\x22x\x22></span>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20<div\x20class=\x27campaign_info_div\x27>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x27display:\x20flex;\x20margin:\x200\x20auto\x27>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x27campaign_info\x27>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x27campaign_info_text\x27>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<p><span\x20class=\x27campaign_name\x27>Campaign\x20" +
      O["length"] +
      "</span>\x20:\x20Sent\x20to\x20<span\x20class=\x27numbers_message_sent_to\x20num_of_numbers\x27>" +
      o +
      "</span>\x20numbers\x20out\x20of\x20" +
      "\x20" +
      "\x20<span\x20class=\x27total_numbers\x20num_of_numbers\x27>" +
      c +
      "</span></p>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<p>" +
      (await N["FIsXB"](translate, N["BBdyy"])) +
      "\x20:\x20<span\x20class=\x27approx_time\x20num_of_numbers\x27>" +
      T +
      "</span>\x20" +
      (N["IcqgJ"](T, 0x1) ? "minutes" : N["vdXXX"]) +
      "</p>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x27download_campaign_report\x27>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<p>" +
      (await N["GpcCE"](translate, N["fBTyV"])) +
      "\x20:\x20" +
      "\x20" +
      "</p>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<a\x20class=\x27download_report_button\x20CtaBtn\x27\x20href=" +
      a +
      "\x20download=\x22" +
      p +
      "\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Download\x20Delivery\x20Report\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</a>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x27time_saved_div\x27>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x27time_saved_circle\x27>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<p\x20class=\x27time_saved\x27>" +
      Z +
      "</p>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<p\x20class=\x27time_saved_text\x27\x20style=\x27text-align:\x20center\x27>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20" +
      (await translate(G)) +
      "\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</p>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20",
    b = document["createElement"](N["FRebq"]);
  (b["className"] = N["vbhAw"]),
    (b["innerHTML"] = B),
    document["body"]["appendChild"](b),
    document["querySelector"](".download_report_button")["addEventListener"](
      "click",
      () => {
        N["Qsqec"](trackButtonClick, N["ynwFl"]);
      }
    );
  const i = document["getElementById"]("report_download_edit");
  i["addEventListener"]("click", () => {
    document["querySelector"](".campaign-end")["remove"]();
  }),
    chrome["storage"]["local"]["get"]([N["PPPqw"]], function (I) {
      if (
        N["pQFQI"](I["campaignNumber"], null) ||
        N["hQzEq"](I["campaignNumber"], undefined) ||
        !I["campaignNumber"]
      ) {
        const e = {};
        (e["campaignNumber"] = 0x1), chrome["storage"]["local"]["set"](e);
      } else chrome["storage"]["local"]["set"]({ campaignNumber: N["gHYRq"](I["campaignNumber"], 0x1) });
    });
  if (P) {
    O["pop"]();
    const I = {};
    (I["deliveryReports"] = O), chrome["storage"]["local"]["set"](I);
  }
}
function getRandomNumber(O, o) {
  const c = {};
  (c["RUNrV"] = function (C, P) {
    return C + P;
  }),
    (c["OBGrY"] = function (C, P) {
      return C - P;
    });
  const T = c;
  return Math["ceil"](T["RUNrV"](Math["random"]() * T["OBGrY"](o, O), O));
}
function getTodayDate() {
  const y = {
    kMSeW: function (C, P) {
      return C(P);
    },
    vrlEN: function (C, P) {
      return C + P;
    },
    xFWFp: function (C, P) {
      return C + P;
    },
    YRCiY: function (C, P) {
      return C + P;
    },
  };
  let O = new Date(),
    o = String(O["getDate"]())["padStart"](0x2, "0"),
    c = y["kMSeW"](String, y["vrlEN"](O["getMonth"](), 0x1))["padStart"](
      0x2,
      "0"
    ),
    T = O["getFullYear"]();
  return y["xFWFp"](y["xFWFp"](y["YRCiY"](T + "-", c), "-"), o);
}
function isWithin24Hours(O, o) {
  const c = {};
  (c["Qrsre"] = function (G, l) {
    return G + l;
  }),
    (c["gZxFi"] = function (G, l) {
      return G + l;
    }),
    (c["hanNn"] = function (G, l) {
      return G - l;
    }),
    (c["AJRAX"] = function (G, l) {
      return G * l;
    });
  const T = c;
  let C = new Date(T["Qrsre"](T["gZxFi"](O, "T"), o)),
    P = new Date(),
    N = Math["abs"](T["hanNn"](P, C)),
    W = N / T["AJRAX"](T["AJRAX"](0x3e8, 0x3c), 0x3c);
  return W < 0x18;
}
async function handleScheduleCampaigns() {
  const y = {
    nBPNY: function (O, o) {
      return O < o;
    },
    plroK: function (O, o, c) {
      return O(o, c);
    },
    eJUyN: function (O, o) {
      return O == o;
    },
    rDzTy: "scheduled_campaigns",
  };
  chrome["storage"]["local"]["get"]([y["rDzTy"]], async function (O) {
    let o = O["scheduled_campaigns"] || [];
    for (let T = 0x0; y["nBPNY"](T, o["length"]); T++) {
      let C = ![],
        P = o[T]["campaign_date"],
        N = o[T]["schedule_time"];
      C = y["plroK"](isWithin24Hours, P, N);
      if (y["eJUyN"](o[T]["hasBeenScheduled"], !![]) || !C) continue;
      let {
        numbers: W,
        groups: G,
        message: l,
        time_gap: Z,
        csv_data: a,
        customization: w,
        schedule_time: S,
        random_delay: p,
        batch_size: B,
        batch_gap: b,
        caption: I,
        caption_customization: e,
        attachmentsData: H,
      } = o[T];
      const K = await schedule_message(W, G, l, Z, a, w, e, S, p, B, b, I, H);
      (o[T]["hasBeenScheduled"] = !![]), (o[T]["timeOutId"] = K);
    }
    const c = {};
    (c["scheduled_campaigns"] = o), chrome["storage"]["local"]["set"](c);
  });
}
async function schedule_message(y, O, o, c, T, C, P, N, W, G, l, Z, a) {
  const w = {
    tMYxE: function (I, e) {
      return I > e;
    },
    nrcmL: "scheduled_campaigns",
    vhhoG: function (I, e) {
      return I == e;
    },
    jLtlm: function (I, e, H, K, n, v, z, Y, d, g, j, F, k, Q, R, t, L) {
      return I(e, H, K, n, v, z, Y, d, g, j, F, k, Q, R, t, L);
    },
    SqIwY: "Scheduled_group",
    IrgMY: "Scheduled_number",
    HCvWo: function (I, e) {
      return I + e;
    },
    eqZZt: "type",
    RJodS: "title",
    inXvT: "Prime\x20Sender",
    kpbwV: "message",
    mkEDS: "Your\x20campaign\x20has\x20been\x20scheduled\x20for\x20",
    acCTG: function (I, e) {
      return I % e;
    },
    TIkrm: function (I, e) {
      return I * e;
    },
    bvLRt: function (I, e) {
      return I(e);
    },
    rcDBK: function (I, e, H) {
      return I(e, H);
    },
    rGCdP: function (I, e) {
      return I * e;
    },
  };
  var S = N["split"](":"),
    p = w["HCvWo"](
      w["HCvWo"]((S[0x0] % 0xc)["toString"]() + ":", S[0x1]),
      S[0x0] < 0xc ? "AM" : "PM"
    );
  (notifications_hash[w["eqZZt"]] = "send_notification"),
    (notifications_hash[w["RJodS"]] = w["inXvT"]),
    (notifications_hash[w["kpbwV"]] = w["HCvWo"](w["mkEDS"], p)),
    sendChromeMessage(notifications_hash);
  var B = new Date(),
    b = w["acCTG"](
      w["HCvWo"](
        w["HCvWo"](
          w["TIkrm"](w["bvLRt"](Number, S[0x0]) - B["getHours"](), 0x3c),
          Number(S[0x1]) - B["getMinutes"]()
        ),
        0x5a0
      ),
      0x5a0
    );
  const i = w["rcDBK"](
    setTimeout,
    () => {
      chrome["storage"]["local"]["get"]([w["nrcmL"]], async function (I) {
        let e = I["scheduled_campaigns"] || [];
        if (w["tMYxE"](e["length"], 0x0)) e["shift"]();
        const H = {};
        (H["scheduled_campaigns"] = e), chrome["storage"]["local"]["set"](H);
      });
      if (w["vhhoG"](y, null) || y == undefined || y["length"] == 0x0)
        w["jLtlm"](
          messanger,
          ![],
          O,
          o,
          c,
          T,
          C,
          P,
          W,
          G,
          l,
          Z,
          w["SqIwY"],
          null,
          null,
          null,
          a
        );
      else
        w["jLtlm"](
          messanger,
          ![],
          y,
          o,
          c,
          T,
          C,
          P,
          W,
          G,
          l,
          Z,
          w["IrgMY"],
          null,
          null,
          null,
          a
        );
    },
    w["rGCdP"](b, 0xea60)
  );
  return i;
}
async function sendAttachments(o, c, T) {
  const C = {
    telhv: "PRIMES::send-attachments",
    QeFuy: function (P, N) {
      return P(N);
    },
    Bguoz: function (P, N) {
      return P * N;
    },
  };
  try {
    const P = {};
    (P["attachments"] = c), (P["caption"] = T), (P["number"] = o);
    const N = {};
    return (
      (N["detail"] = P),
      window["dispatchEvent"](new CustomEvent(C["telhv"], N)),
      await C["QeFuy"](delay, C["Bguoz"](c["length"], 0x64)),
      ["Yes", ""]
    );
  } catch (W) {
    return ["No", "Issue\x20with\x20the\x20attachments"];
  }
}
async function sendAttachmentsToGroups(o, c, T) {
  const C = {
    KgVrS: "PRIMES::send-attachments-to-group",
    HhqBU: function (P, N) {
      return P(N);
    },
    uXYpv: "Yes",
    SytBg: "Issue\x20with\x20the\x20attachments",
  };
  try {
    const P = {};
    (P["attachments"] = c), (P["caption"] = T), (P["groupId"] = o);
    const N = {};
    return (
      (N["detail"] = P),
      window["dispatchEvent"](new CustomEvent(C["KgVrS"], N)),
      await C["HhqBU"](delay, c["length"] * 0x64),
      [C["uXYpv"], ""]
    );
  } catch (W) {
    return ["No", C["SytBg"]];
  }
}
async function delay(O) {
  const o = {};
  o["bZLHZ"] = function (T, C) {
    return T == C;
  };
  const c = o;
  if (c["bZLHZ"](O, 0x0)) O = 0x3e8;
  return new Promise((T) => setTimeout(T, O));
}
async function openNumber(y, O, o = 0x1) {
  const c = {
    NvDwP: function (P, N, W) {
      return P(N, W);
    },
    dmYRH: function (P) {
      return P();
    },
    uvtZC: function (P, N) {
      return P * N;
    },
    TDLYa: function (P, N) {
      return P(N);
    },
    ktSLF: ".invalid_number_error",
    RmpRw: "grid",
    Pbami: ".currently_sending_number",
    zqbmK: "#D13B3B",
  };
  await c["NvDwP"](openNumberTab, y, O);
  let T = await c["dmYRH"](hasOpened),
    C = c["uvtZC"](Math["max"](0x0, o - 0x1), 0x3e8);
  if (!T) {
    const P = c["TDLYa"](getDocumentElement, "invalid_popup_ok_btn");
    P &&
      (P["click"](),
      (document["querySelector"](c["ktSLF"])["style"]["display"] = c["RmpRw"]),
      (document["querySelector"](c["Pbami"])["style"]["color"] = c["zqbmK"]));
  }
  return await delay(C), T;
}
async function openNumberTab(y, O) {
  const o = {
    VuKjO: "[data-animate-modal-backdrop=\x22true\x22]",
    iXLqn: "[aria-label]",
    DlVAe: function (c, T) {
      return c >= T;
    },
    RkGCt: function (c, T) {
      return c && T;
    },
    ZUyul: function (c, T) {
      return c(T);
    },
    RlpNQ: function (c) {
      return c();
    },
    jsCsp: "whatsapp-message-sender",
    QUTQv: "href",
  };
  if (O) O = o["ZUyul"](encodeURIComponent, O);
  return new Promise((c) => {
    var T = "https://api.whatsapp.com/send?phone=" + y;
    if (O) T += "&text=" + O;
    let C = document["getElementById"](o["jsCsp"]);
    !C &&
      ((C = document["createElement"]("a")),
      (C["id"] = "whatsapp-message-sender"),
      document["body"]["append"](C));
    C["setAttribute"](o["QUTQv"], T), C["click"]();
    let P = ![],
      N = 0x0,
      W = setInterval(() => {
        N += 0x64;
        const G = document["querySelector"](o["VuKjO"]),
          l = G && G["querySelector"](o["iXLqn"]);
        (l || o["DlVAe"](N, 0x1f4)) && (P = !![]),
          o["RkGCt"](!l, P) && (o["ZUyul"](clearInterval, W), o["RlpNQ"](c));
      }, 0x64);
  });
}
async function hasOpened() {
  let y = !0x0;
  return (
    await waitTillWindow(),
    document["querySelector"]("[data-animate-modal-popup=\x22true\x22]") &&
      (y = !0x1),
    y
  );
}
async function waitTillWindow() {
  const y = {
    ymTrj: function (O) {
      return O();
    },
    RuUyt: "[data-animate-modal-popup=\x22true\x22]",
    WwlyX: "[data-animate-modal-body=\x22true\x22]",
    BRzRD: "invalid",
  };
  document["querySelector"](y["RuUyt"]) &&
    !document["querySelector"](y["WwlyX"])["innerText"]["includes"](
      y["BRzRD"]
    ) &&
    setTimeout(async function () {
      await y["ymTrj"](waitTillWindow);
    }, 0x64);
}
async function isValidNumber() {
  const y = {
    SECfU: function (O, o) {
      return O(o);
    },
    oovzt: "conversation_compose_div",
    ZGzag: function (O, o) {
      return O(o);
    },
    sxPlJ: "block_message_div",
    mbTXZ: function (O, o) {
      return O(o);
    },
    bKjfE: "Blocked\x20Number",
    BJcfx: "Issue\x20with\x20the\x20number",
    aZqXQ: function (O, o, c) {
      return O(o, c);
    },
  };
  return new Promise((O) => {
    y["aZqXQ"](
      setTimeout,
      () => {
        let o = y["SECfU"](getDocumentElement, y["oovzt"]),
          c = y["ZGzag"](getDocumentElement, y["sxPlJ"]);
        if (o) O([!![], ""]);
        else c ? y["mbTXZ"](O, [![], y["bKjfE"]]) : O([![], y["BJcfx"]]);
      },
      0xc8
    );
  });
}
async function sendMessage() {
  const y = {
    gVaGp: function (O, o) {
      return O(o);
    },
    LRzXa: "Yes",
    MkdWt: function (O, o) {
      return O(o);
    },
    WTVoc: function (O, o, c) {
      return O(o, c);
    },
  };
  return new Promise((O) => {
    const o = {
      kUaAt: function (c, T) {
        return y["gVaGp"](c, T);
      },
      OOFGc: function (c, T) {
        return y["gVaGp"](c, T);
      },
      Ftmhl: y["LRzXa"],
      bLZSV: function (c, T) {
        return y["MkdWt"](c, T);
      },
    };
    y["WTVoc"](
      setTimeout,
      () => {
        let c = o["kUaAt"](getDocumentElement, "send_message_btn");
        c
          ? (c["click"](), o["OOFGc"](O, [o["Ftmhl"], ""]))
          : o["bLZSV"](O, ["No", "Issue\x20with\x20the\x20number"]);
      },
      0x1f4
    );
  });
}
function download_report() {
  const O = {};
  (O["Wgwqy"] = function (N, W) {
    return N + W;
  }),
    (O["veqMs"] = "data:text/csv;charset=utf-8,"),
    (O["SlLBV"] = "download"),
    (O["ZzCKD"] = "report.csv");
  const c = O;
  let T = c["Wgwqy"](
    c["veqMs"],
    rows["map"]((N) => N["join"](","))["join"]("\x0a")
  );
  var C = encodeURI(T),
    P = document["createElement"]("a");
  P["setAttribute"]("href", C),
    P["setAttribute"](c["SlLBV"], c["ZzCKD"]),
    document["body"]["appendChild"](P),
    P["click"]();
}
function get_label() {
  const O = {};
  (O["TRuYH"] = "0|3|1|2|4"),
    (O["ZLGxM"] = function (P, N) {
      return P + N;
    }),
    (O["YAYXT"] = "plan_duration");
  const o = O,
    c = o["TRuYH"]["split"]("|");
  let T = 0x0;
  while (!![]) {
    switch (c[T++]) {
      case "0":
        var C = "";
        continue;
      case "1":
        if (plan_type) C += o["ZLGxM"](plan_type, "\x20");
        continue;
      case "2":
        chrome["storage"]["local"]["get"]([o["YAYXT"]], function (P) {
          if (P["plan_duration"]) C += P["plan_duration"];
        });
        continue;
      case "3":
        if (my_number) C += my_number + "\x20";
        continue;
      case "4":
        return C;
    }
    break;
  }
}
function trackButtonClick(O) {
  const o = {
    xaZHk: function (C) {
      return C();
    },
    mTJZI: "clicked",
  };
  var c = o["xaZHk"](get_label);
  const T = {};
  (T["label"] = c),
    (T["type"] = o["mTJZI"]),
    GoogleAnalytics["fireEvent"](O, T);
}
function trackEvent(O, o) {
  const c = {
    YQhlB: function (P) {
      return P();
    },
  };
  var T = c["YQhlB"](get_label);
  const C = {};
  (C["label"] = T), (C["track"] = o), GoogleAnalytics["fireEvent"](O, C);
}
function trackButtonView(O) {
  const o = {
    Ahlbg: function (C) {
      return C();
    },
    UIRlQ: "viewed",
  };
  var c = o["Ahlbg"](get_label);
  const T = {};
  (T["label"] = c),
    (T["type"] = o["UIRlQ"]),
    GoogleAnalytics["fireEvent"](O, T);
}
function convertDate(O = null) {
  const o = {};
  (o["DkLbj"] = function (T, C) {
    return T + C;
  }),
    (o["DAhAS"] = function (T, C) {
      return T + C;
    });
  const c = o;
  if (!O) O = new Date();
  return c["DkLbj"](
    c["DAhAS"](
      c["DAhAS"](c["DkLbj"](O["getFullYear"](), "-"), O["getMonth"]() + 0x1),
      "-"
    ),
    O["getDate"]()
  );
}
function dateDiff(O, o) {
  const c = {};
  (c["WCmXL"] = function (C, P) {
    return C / P;
  }),
    (c["VGdfp"] = function (C, P) {
      return C - P;
    });
  const T = c;
  if (O && o)
    return Math["ceil"](T["WCmXL"](T["VGdfp"](o, O), 0x3e8 * 0x18 * 0xe10));
}
function check_web_and_show_trial_popups() {
  const y = {
    bIZzV: function (O) {
      return O();
    },
    fyiat: function (O, o, c) {
      return O(o, c);
    },
  };
  if (document["getElementById"]("side") !== null) {
    y["bIZzV"](show_trial_popups);
    if (!my_number) return;
  } else y["fyiat"](setTimeout, check_web_and_show_trial_popups, 0x1f4);
}
function show_trial_popups() {
  const y = {
    JmYFG: function (O, o, c) {
      return O(o, c);
    },
    Pafhc: "Advance",
    tczYo: "Advance",
    // Pafhc: "Expired",
    // tczYo: "Basic",
    vNChT: function (O, o, c) {
      return O(o, c);
    },
    kvIrJ: function (O, o) {
      return O && o;
    },
    ouBag: function (O, o, c) {
      return O(o, c);
    },
    yiRIG: "Yearly",
    Ircdt: "Monthly",
    bJmbE: function (O, o) {
      return O === o;
    },
    utknG: "FreeTrial",
    IajKI: function (O, o, c) {
      return O(o, c);
    },
    yGEBr: "free_trial_start",
    NGMSK: function (O, o) {
      return O <= o;
    },
    skFMu: function (O, o) {
      return O === o;
    },
    Zlhou: "AdvancePromo",
    IPjZt: function (O, o) {
      return O === o;
    },
    SuhqT: "YES",
    sAwOg: "advance_promo_start",
    acqXg: "advance_promo_reminder",
    KhcbG: function (O, o) {
      return O <= o;
    },
    YqCYQ: "premium_expired",
    ZsRxf: function (O, o) {
      return O(o);
    },
    yMoiN: "free_trial_expired",
    IrNhv: "is_advance_promo_activated",
    OwgqL: "content_visits",
    CWOhW: "plan_type",
    rkpeN: "created_date",
    zXwij: "expiry_date",
    mbJyg: "last_plan_type",
    ohfbS: "subscribed_date",
    dfgRl: "location_info",
  };
  chrome["storage"]["local"]["get"](
    [
      y["IrNhv"],
      y["OwgqL"],
      y["CWOhW"],
      y["rkpeN"],
      y["zXwij"],
      y["mbJyg"],
      y["ohfbS"],
      y["dfgRl"],
    ],
    function (O) {
      const o = {
        JmWHB: function (a, w, S) {
          return y["JmYFG"](a, w, S);
        },
      };
      (plan_type = O["plan_type"] || y["Pafhc"]),
        (last_plan_type = O["last_plan_type"] || y["tczYo"]),
        (location_info = O["location_info"] || location_info);
      let c = new Date(),
        T = undefined,
        C = O["content_visits"] || 0x0,
        P = O["expiry_date"] ? new Date(O["expiry_date"]) : null,
        N = O["created_date"] ? new Date(O["created_date"]) : null,
        W = O["subscribed_date"] ? new Date(O["subscribed_date"]) : null,
        G = O["is_advance_promo_activated"] || "NO",
        l = P ? y["vNChT"](dateDiff, c, P) : 0x7;
      if (y["kvIrJ"](W, P)) {
        let a = Math["abs"](y["ouBag"](dateDiff, P, W));
        T = a > 0x1f ? y["yiRIG"] : y["Ircdt"];
      }
      if (y["bJmbE"](plan_type, y["utknG"])) {
        if (C === 0x0) y["IajKI"](display_popup, y["yGEBr"], l);
        else
          y["NGMSK"](l, 0xa) &&
            y["ouBag"](display_popup, "free_trial_reminder", l);
      } else {
        if (y["skFMu"](plan_type, y["Zlhou"])) {
          if (y["IPjZt"](G, "NO"))
            (G = y["SuhqT"]), y["ouBag"](display_popup, y["sAwOg"], l);
          else l <= 0x5 && display_popup(y["acqXg"], l);
        } else {
          if (
            y["bJmbE"](plan_type, y["Pafhc"]) &&
            y["KhcbG"](l, 0x0) &&
            my_number &&
            my_number != undefined
          ) {
            if (
              last_plan_type === y["tczYo"] ||
              y["IPjZt"](last_plan_type, "Advance")
            )
              display_popup(y["YqCYQ"], l);
            else {
              if (last_plan_type === y["utknG"])
                y["ZsRxf"](display_popup, y["yMoiN"]);
              else
                y["skFMu"](last_plan_type, y["Zlhou"]) &&
                  y["ZsRxf"](display_popup, "advance_promo_expired");
            }
          }
        }
      }
      const Z = {};
      (Z["content_visits"] = C + 0x1),
        (Z["plan_duration"] = T),
        (Z["is_advance_promo_activated"] = G),
        chrome["storage"]["local"]["set"](Z),
        chrome["runtime"]["sendMessage"]({}, function (w) {
          (logged_in_user = w["email"]),
            o["JmWHB"](trackEvent, "logged_mail", logged_in_user);
        });
    }
  );
}
function isExpired() {
    // const O = {};
    // O["oCPvC"] = function (c, T) {
    //   return c === T;
    // };
    // const o = O;
    // return o["oCPvC"](plan_type, "Expired");
    return false;
  }
  
  function isBasic() {
    // const O = {};
    // O["Suide"] = function (c, T) {
    //   return c === T;
    // };
    // const o = O;
    // return o["Suide"](plan_type, "Basic");
    return false;
  }
  
  function isAdvance() {
    // const O = {};
    // (O["Qsbsj"] = function (c, T) {
    //   return c === T;
    // }),
    //   (O["hiXCg"] = "Advance");
    // const o = O;
    // return o["Qsbsj"](plan_type, o["hiXCg"]);
    return true;
  }
  
  function isPremium() {
    // const O = {};
    // (O["PYmPt"] = function (c, T) {
    //   return c === T;
    // }),
    //   (O["QJCOb"] = "Advance");
    // const o = O;
    // return o["PYmPt"](plan_type, "Basic") || o["PYmPt"](plan_type, o["QJCOb"]);
    return true;
  }
  
  function isFreeTrial() {
    // const O = {};
    // O["ZHWLR"] = "FreeTrial";
    // const o = O;
    // return plan_type === o["ZHWLR"];
    return false;
  }
  
  function isAdvancePromo() {
    // const O = {};
    // (O["GNOKp"] = function (c, T) {
    //   return c === T;
    // }),
    //   (O["OdkzR"] = "AdvancePromo");
    // const o = O;
    // return o["GNOKp"](plan_type, o["OdkzR"]);
    return false;
  }
  
  function isTrial() {
    // const O = {};
    // (O["DILZs"] = function (c, T) {
    //   return c === T;
    // }),
    //   (O["CQJqh"] = "FreeTrial"),
    //   (O["SoJuu"] = function (c, T) {
    //     return c === T;
    //   });
    // const o = O;
    // return (
    //   o["DILZs"](plan_type, o["CQJqh"]) || o["SoJuu"](plan_type, "AdvancePromo")
    // );
    return false;
  }
  
  function isBasicFeatureAvailable() {
    // const y = {
    //   WxcxY: function (O) {
    //     return O();
    //   },
    // };
    // return y["WxcxY"](isBasic) || y["WxcxY"](isTrial);
    return true;
  }
  
  function isAdvanceFeatureAvailable() {
    // const y = {
    //   nGJCa: function (O) {
    //     return O();
    //   },
    // };
    // return y["nGJCa"](isAdvance) || y["nGJCa"](isAdvancePromo);
    return true;
  }
  
  function isPremiumFeatureAvailable() {
    // const y = {
    //   ENgkG: function (O) {
    //     return O();
    //   },
    // };
    // return y["ENgkG"](isPremium) || y["ENgkG"](isTrial);
    return true;
  }
  
  
function fetch_plan_details() {
  const y = {
    CJfGe: function (O, o) {
      return O(o);
    },
    pnMyR: "Error\x20fetching\x20number\x20data:",
  };
  if (!(my_number && my_number !== undefined)) return;
  fetch_data(my_number)
    ["then"]((O) => {
      y["CJfGe"](handle_response, O);
    })
    ["catch"]((O) => {
      console["error"](y["pnMyR"], O);
    });
}
async function fetch_data(y) {
  const O = {
    InMhm: function (c, T) {
      return c(T);
    },
    SgkWF: "GET",
    QdhUt: "json",
    tWCMR: "application/json",
  };
  var o = AWS_API["PLAN_FETCH"] + "?phone=" + y;
  return new Promise(function (c, T) {
    const C = {
      Wllnh: function (P, N) {
        return O["InMhm"](P, N);
      },
    };
    $["ajax"]({
      type: O["SgkWF"],
      url: o,
      success: function (P) {
        C["Wllnh"](c, P["body"]);
      },
      error: function (P) {
        T(P);
      },
      dataType: O["QdhUt"],
      contentType: O["tWCMR"],
    });
  });
}
function handle_response(P) {
  const N = {
    MhTtq: "Extension\x20Installation",
    vmJby: "added_trial_days",
    kizUo: "set_uninstall_url",
    lDgsC: function (W, G) {
      return W + G;
    },
    BGdPz: function (W, G) {
      return W(G);
    },
    jFbyM: function (W, G) {
      return W != G;
    },
    VPAsN: function (W, G) {
      return W != G;
    },
    msGYq: function (W, G) {
      return W != G;
    },
    UVMrk: "917058067789",
    XcsdT: function (W) {
      return W();
    },
    VnopZ: function (W, G, l) {
      return W(G, l);
    },
    nQFRv: "fetched",
  };
  if (P) {
    if (P["plan_type"]) {
      plan_type = P["plan_type"];
      const G = {};
      (G["plan_type"] = P["plan_type"]), chrome["storage"]["local"]["set"](G);
    }
    if (P["created_date"])
      chrome["storage"]["local"]["set"]({ created_date: P["created_date"] });
    if (P["expiry_date"])
      chrome["storage"]["local"]["set"]({ expiry_date: P["expiry_date"] });
    if (P["last_plan_type"]) {
      last_plan_type = P["last_plan_type"];
      const l = {};
      (l["last_plan_type"] = P["last_plan_type"]),
        chrome["storage"]["local"]["set"](l);
    }
    if (P["subscribed_date"])
      chrome["storage"]["local"]["set"]({
        subscribed_date: P["subscribed_date"],
      });
    const W = {};
    W["customer_name"] = null;
    if (P["name"])
      chrome["storage"]["local"]["set"]({ customer_name: P["name"] });
    else chrome["storage"]["local"]["set"](W);
    if (P["email"]) {
      const Z = {};
      (Z["customer_email"] = P["email"]),
        chrome["storage"]["local"]["set"](Z),
        N["BGdPz"](getDates, P["email"]);
    } else {
      const a = {};
      (a["customer_email"] = null), chrome["storage"]["local"]["set"](a);
    }
    if (
      N["jFbyM"](P["customer_care_number"], undefined) &&
      N["VPAsN"](P["customer_care_number"], null) &&
      N["msGYq"](P["customer_care_number"], "")
    )
      chrome["storage"]["local"]["set"]({
        customer_care_number: P["customer_care_number"],
      });
    else
      chrome["storage"]["local"]["set"]({ customer_care_number: N["UVMrk"] });
    if (P["trial_days"]) {
      const w = {};
      (w["trial_days"] = P["trial_days"]),
        chrome["storage"]["local"]["set"](w),
        chrome["storage"]["local"]["get"](["added_trial_days"], (S) => {
          let p = S["added_trial_days"];
          p !== undefined &&
            !p &&
            (trackEvent(N["MhTtq"], P["trial_days"]),
            chrome["storage"]["local"]["remove"](N["vmJby"]),
            chrome["runtime"]["sendMessage"]({
              type: N["kizUo"],
              trial_days: P["trial_days"],
              number: N["lDgsC"](my_number, P["plan_type"]),
            }));
        });
    }
    N["XcsdT"](check_web_and_show_trial_popups),
      N["VnopZ"](trackEvent, "plan_details_fetched", N["nQFRv"]);
  }
}
async function convertPriceToLocale(y) {
  const O = {
      Teatc:
        "https://cdn.jsdelivr.net/npm/@fawazahmed0/currency-api@latest/v1/currencies/usd.json",
      TiOKV: function (G, l) {
        return G(l);
      },
      pXkoC: "en-US",
      HPFhT: "currency",
    },
    o = O["Teatc"],
    c = await O["TiOKV"](fetch, o),
    T = await c["json"]();
  let { currency: C } = location_info,
    P = new Intl["NumberFormat"](O["pXkoC"], {
      style: O["HPFhT"],
      currency: C,
      maximumFractionDigits: 0x0,
    }),
    N = T["usd"][C["toLowerCase"]()],
    W = P["format"](Math["round"](N * 1.02 * O["TiOKV"](parseFloat, y)));
  return W;
}
async function create_pricing_buttons_html(y) {
  const O = {
    ZaWFU: function (b, i) {
      return b(i);
    },
    BajZw: function (b, i) {
      return b(i);
    },
    AhxRc: function (b) {
      return b();
    },
    Nbuct: function (b, i, I, e) {
      return b(i, I, e);
    },
    yhtLL: function (b, i) {
      return b + i;
    },
    EyWYM: "basic",
    XSxiM: function (b, i, I, e, H) {
      return b(i, I, e, H);
    },
    bqIsl: function (b, i) {
      return b + i;
    },
    pCbiO: "advance",
    vsycs: function (b, i) {
      return b == i;
    },
    mjHun: "Advance",
  };
  let o = PRICING_DATA[y];
  if (!o) return "";
  let { name: c, name_code: T, currency: C } = location_info;
  Object["keys"](COUNTRY_WITH_SPECIFIC_PRICING)["includes"](T)
    ? (c = COUNTRY_WITH_SPECIFIC_PRICING[T])
    : (c = "international");
  let P = o["advance_price"][c],
    N = o["basic_price"][c],
    W = await O["ZaWFU"](convertPriceToLocale, P["substring"](0x1)),
    G = await O["BajZw"](convertPriceToLocale, N["substring"](0x1)),
    l =
      "https://prime-sender.com/pricing/?country=" +
      c +
      "&lastPlan=" +
      o["lastPlan"] +
      "&currentPlan=",
    Z = await O["AhxRc"](multipleAccountButton),
    a = await O["Nbuct"](basicButton, O["yhtLL"](l, O["EyWYM"]), N, G),
    w = await O["XSxiM"](advanceButton, O["bqIsl"](l, O["pCbiO"]), P, W, y),
    S = !![],
    p = ![];
  O["vsycs"](last_plan_type, O["mjHun"]) && ((S = ![]), (p = !![]));
  let B =
    "\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22pricing-buttons-container\x22>\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20" +
    (S ? a : "") +
    "\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20" +
    (p ? w : "") +
    "\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20" +
    Z +
    "\x0a\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20";
  return B;
}
function create_features_list_html(O) {
  const o = {};
  (o["DFKvu"] =
    "<span\x20style=\x22color:#009a88;margin-left:\x205px;\x22>\x20(Advance)\x20</span>"),
    (o["WfTPd"] = "advance_promo");
  const c = o;
  let T = "",
    C = !![];
  return (
    O["includes"](c["WfTPd"]) && (C = ![]),
    $["each"](PREMIUM_FEATURES, function (P, N) {
      T +=
        "\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22trial_feature\x22\x20style=\x22font-weight:\x20bold;color:\x20#fff;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22check_icon\x22></span>" +
        N +
        "\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20" +
        (C ? c["DFKvu"] : "") +
        "\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>";
    }),
    $["each"](TRIAL_FEATURES, function (P, N) {
      T +=
        "<div\x20class=\x22trial_feature\x22\x20style=\x22color:\x20#fff;\x22><span\x20class=\x22check_icon\x22></span>" +
        N +
        "</div>";
    }),
    T
  );
}
function create_footer_html() {
  const O = {};
  O["YjSyo"] = "logo_img";
  const o = O;
  let c =
    "\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22popup-footer\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22popup-footer-container\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22logo-div\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<img\x20class=\x22logo-icon\x22\x20src=\x22" +
    window[o["YjSyo"]] +
    "\x22\x20alt=\x22Logo\x22/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<img\x20class=\x22logo-text\x22\x20src=\x22" +
    window["logo_text"] +
    "\x22\x20alt=\x22Logo\x20Text\x22/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22contact-div\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<p>Any\x20questions?</p>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<a\x20class=\x22handle_help_btn\x20CtaBtn\x22>Contact\x20Support</a>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</div>";
  return c;
}
async function create_popup_html(y, O) {
  const o = {
      UZJqN: "{VAR_EXP_TEXT}",
      WqVsK: "have\x20expired",
      mdONM: function (l, Z) {
        return l(Z);
      },
      GsPho: function (l, Z) {
        return l(Z);
      },
    },
    c = POPUP_DATA[y],
    T = POPUP_DATA["common"],
    C = c["title"]
      ? c["title"]
          ["replace"]("{VAR_DATE_DIFF}", O)
          ["replace"](
            o["UZJqN"],
            O > 0x0 ? "expires\x20in\x20" + O + "\x20days" : o["WqVsK"]
          )
      : null,
    P = await o["mdONM"](create_pricing_buttons_html, y),
    N = o["mdONM"](create_features_list_html, y),
    W = create_footer_html(),
    G =
      "\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22" +
      y +
      "_content\x20trial_content\x22\x20style=\x22background:\x20" +
      c["background_color"] +
      "\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20" +
      (c["close_button"]
        ? "<span\x20class=\x22CtaCloseBtn\x20popup-close-btn\x22\x20id=\x22close_" +
          y +
          "_popup\x22><img\x20src=" +
          close_img_src +
          "\x20/></span>"
        : "") +
      "\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22popup-header\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20" +
      (c["heading"]
        ? "<div\x20class=\x22trial_big_title\x20heading\x20" +
          y +
          "_bold\x22>" +
          (await o["GsPho"](translate, c["heading"])) +
          "</div>"
        : "") +
      "\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22trial_big_title\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20" +
      (c["icon"] ? "<img\x20src=" + window[c["icon"]] + "\x20/>" : "") +
      "\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20" +
      (C ? "<p>" + (await translate(C)) + "</p>" : "") +
      "\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20" +
      (c["description"]
        ? "<div\x20class=\x22trial_title\x22>" +
          (await translate(c["description"])) +
          "</div>"
        : "") +
      "\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22trial_separator_line\x20" +
      y +
      "_divider\x22></div>\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22popup-center\x22>\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22trial_features\x22>" +
      N +
      "</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20" +
      (c["note"]
        ? "<div\x20class=\x22trial_desc\x22>" +
          (await translate(c["note"])) +
          "</div>"
        : "") +
      "\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20" +
      P +
      "\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20" +
      (c["action_button"]
        ? "<div\x20id=\x22" +
          c["action_button"]["id"] +
          "\x22\x20class=\x22popup-btn\x20CtaBtn\x20" +
          c["action_button"]["class"] +
          "\x22>" +
          c["action_button"]["text"] +
          "</div>"
        : "") +
      "\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20" +
      (c["recommend_price"]
        ? "<div\x20class=\x22popup-message\x20popup-recommendation-message\x22><img\x20src=\x22" +
          recommend_tick +
          "\x22>\x20" +
          (await o["GsPho"](translate, T["recommend_text"])) +
          "</div>"
        : "") +
      "\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20" +
      (c["discount_text"]
        ? "<div\x20class=\x22popup-message\x20popup-discount-message\x22>*" +
          (await o["GsPho"](translate, T["discount_text"])) +
          "</div>"
        : "") +
      "\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20" +
      (c["purchase_note"]
        ? "<div\x20class=\x22popup-message\x20popup-purchase-note\x22>" +
          (await o["GsPho"](translate, T["purchase_note"])) +
          "</div>"
        : "") +
      "\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20" +
      W +
      "\x0a\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20";
  return G;
}
function show_loader_and_close_popup(y, O, o = ![]) {
  const c = {
    ImYTU: function (T, C) {
      return T(C);
    },
    Enkfs: function (T, C) {
      return T(C);
    },
    iZFFm: "loading",
    lNQcG: function (T, C, P) {
      return T(C, P);
    },
  };
  c["ImYTU"]($, "#close_" + y + "_popup")
    ["addClass"](c["iZFFm"])
    ["html"](""),
    c["lNQcG"](
      setTimeout,
      () => {
        c["ImYTU"]($, "#" + y + "_popup")["remove"](),
          o && c["Enkfs"](success_popup, o);
      },
      O
    );
}
async function display_popup(O, o) {
  const c = {
      RcHqB: "advance_promo_start",
      ZqoRv: function (W, G, l, Z) {
        return W(G, l, Z);
      },
      dPXte: function (W, G) {
        return W(G);
      },
      AgaZX: function (W, G) {
        return W(G);
      },
      goqsk: function (W, G) {
        return W(G);
      },
      rureP: "<div>",
      yMCMn: function (W, G) {
        return W(G);
      },
      ZdIef: "body",
      ihBKY: "click",
    },
    T = c["AgaZX"]($, "#" + O + "_popup");
  T && $("#" + O + "_popup")["remove"]();
  const C = await create_popup_html(O, o),
    P = {};
  (P["class"] = O + "_popup\x20trial_popup"), (P["id"] = O + "_popup");
  const N = c["goqsk"]($, c["rureP"])["html"](C)["attr"](P);
  c["yMCMn"]($, c["ZdIef"])["append"](N),
    c["dPXte"]($, "#close_" + O + "_popup")["on"](c["ihBKY"], function (W) {
      if (O === c["RcHqB"]) {
        c["ZqoRv"](
          show_loader_and_close_popup,
          O,
          0x3e8,
          "advance_promo_activated"
        );
        return;
      }
      c["dPXte"]($, "#" + O + "_popup")["remove"]();
    }),
    trackButtonView(O + "_popup");
}
async function success_popup(O) {
  const o = {
      oiMAw: function (G, l) {
        return G(l);
      },
      CVCAl: "Advance\x20Premium",
      mWqCQ: "<strong>Advance\x20Premium</strong>",
      VYklh: "width",
      XIeeI: "min(400px,\x2095%)",
      hLBSt: function (G, l) {
        return G(l);
      },
      agGKX: "body",
      ehgcT: "click",
      VwZhK: function (G, l) {
        return G(l);
      },
    },
    c = o["oiMAw"]($, "#" + O + "_popup");
  c && o["oiMAw"]($, "#" + O + "_popup")["remove"]();
  const T = SUCCESS_POPUP_DATA[O],
    C = T["description"]["replace"](o["CVCAl"], o["mWqCQ"]),
    P =
      "\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22" +
      O +
      "_content\x20success_content\x22\x20style=\x22background:\x20" +
      T["background_color"] +
      "\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20" +
      (T["close_button"]
        ? "<span\x20class=\x22CtaCloseBtn\x20popup-close-btn\x22\x20id=\x22close_" +
          O +
          "_popup\x22><img\x20src=" +
          close_img_src +
          "\x20/></span>"
        : "") +
      "\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22popup-header\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<img\x20class=\x22" +
      T["icon"] +
      "\x22\x20src=" +
      window[T["icon"]] +
      "\x20/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22popup-center\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<p\x20class=\x22trial_big_title\x20heading\x22>" +
      T["title"] +
      "</p>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<p\x20class=\x22trial_title\x22>" +
      C +
      "</p>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20" +
      (T["action_button"]
        ? "<div\x20id=\x22" +
          T["action_button"]["id"] +
          "\x22\x20class=\x22popup-btn\x20CtaBtn\x20" +
          T["action_button"]["class"] +
          "\x22>" +
          T["action_button"]["text"] +
          "</div>"
        : "") +
      "\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20",
    N = {};
  (N["class"] = O + "_popup\x20success_popup"), (N["id"] = O + "_popup");
  const W = o["oiMAw"]($, "<div>")
    ["html"](P)
    ["attr"](N)
    ["css"](o["VYklh"], o["XIeeI"]);
  o["hLBSt"]($, o["agGKX"])["append"](W),
    o["oiMAw"]($, "#close_" + O + "_popup")["on"](o["ehgcT"], function (G) {
      o["oiMAw"]($, "#" + O + "_popup")["remove"]();
    }),
    o["VwZhK"](trackButtonView, O + "_popup");
}
document["addEventListener"]("click", (y) => {
  const O = {
    egHUS: ".trial_popup",
    cVdvV: function (o, c) {
      return o(c);
    },
    IbnmX: "cross_prime",
    EDYDF: "Cross\x20prime\x20clicked!",
    aKbVM: function (o) {
      return o();
    },
  };
  if (document["querySelector"](O["egHUS"])) {
    let o = document["querySelectorAll"](".trial_popup")[0x0];
    const c = o["classList"]["contains"]("buy_annual_popup");
    !o["contains"](y["target"]) &&
      (document["body"]["removeChild"](o),
      c &&
        chrome["storage"]["local"]["set"]({
          lastShownAnnualPopup: O["cVdvV"](formatToIsoDate, new Date()),
        }));
  }
  y["target"] &&
    y["target"]["id"] === O["IbnmX"] &&
    (console["log"](O["EDYDF"]), O["aKbVM"](closePrimeProfile));
});
async function multipleAccountButton() {
  const y = {
    HLJKG: "international",
    qkTPK: function (T, C) {
      return T === C;
    },
    OOWFH: "india",
    YkRTW: function (T, C) {
      return T === C;
    },
    Bgxhl: "USD",
    hfqig: function (T, C) {
      return T(C);
    },
  };
  let { name: O, name_code: o, currency: c } = location_info;
  return (
    Object["keys"](COUNTRY_WITH_SPECIFIC_PRICING)["includes"](o)
      ? (O = COUNTRY_WITH_SPECIFIC_PRICING[o])
      : (O = y["HLJKG"]),
    "<a\x20href=\x22https://prime-sender.com/pricing/multiple-account/?numAccounts=25\x22\x20target=\x22_blank\x22\x20class=\x22popup-btn\x20pricing-purple-btn\x20CtaBtn\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22white-space:nowrap;\x22>Buy\x20multiple\x20users<br/></span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22white-space:nowrap;\x20color:\x20#fff;\x20font-size:\x2014px;\x20line-height:\x2016px;font-weight:bold;display:flex;\x22><span\x20style=\x22margin-right:3px;\x22>@</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20" +
      (y["qkTPK"](O, y["OOWFH"])
        ? "<span\x20class=\x22rupee\x22>₹</span>"
        : "") +
      "\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22price_class\x22>" +
      MULT25ACCOUNTPRICE[O] +
      "</span>/month\x0a\x20\x20\x20\x20\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20" +
      (y["YkRTW"](O, y["HLJKG"]) && c != y["Bgxhl"]
        ? "<span\x20style=\x22white-space:nowrap;\x20color:\x20#fff;\x20font-size:\x2012px;\x20line-height:\x2016px;font-weight:bold;\x22>\x20\x0a(~<span\x20class=\x22price_class\x22>" +
          (await y["hfqig"](
            convertPriceToLocale,
            MULT25ACCOUNTPRICE[O]["substring"](0x1)
          )) +
          "</span>/month)\x0a</span>"
        : "") +
      "\x0a\x20\x20\x20\x20</a>"
  );
}
async function basicButton(y = "", O = "", o = "") {
  const c = {
    oBKzA: function (W, G) {
      return W == G;
    },
    PtUDE: function (W, G) {
      return W(G);
    },
    OAgBf: "https://prime-sender.com/pricing",
    ysFUg: function (W, G) {
      return W === G;
    },
    uaUIP: "india",
    OXcMB: "<span\x20class=\x22rupee\x22>₹</span>",
    Oisdp: "international",
    LRvqw: "USD",
  };
  let { name: T, name_code: C, currency: P } = location_info;
  Object["keys"](COUNTRY_WITH_SPECIFIC_PRICING)["includes"](C)
    ? (T = COUNTRY_WITH_SPECIFIC_PRICING[C])
    : (T = "international");
  let N = o;
  return (
    (!o || c["oBKzA"](o, "")) &&
      (N = await c["PtUDE"](convertPriceToLocale, O["substring"](0x1))),
    (y = c["OAgBf"]),
    "<a\x20href=\x22" +
      y +
      "\x22\x20target=\x22_blank\x22\x20class=\x22popup-btn\x20pricing-white-btn\x20CtaBtn\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20Buy\x20Premium<br/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22white-space:nowrap;\x20color:\x20#009a88;\x20font-size:\x2014px;\x20line-height:\x2016px;font-weight:bold;display:flex;\x22><span\x20style=\x22margin-right:3px;\x22>@</span>\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20" +
      (c["ysFUg"](T, c["uaUIP"]) ? c["OXcMB"] : "") +
      "\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22price_class\x22>" +
      O +
      "</span>/month\x0a\x20\x20\x20\x20\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20" +
      (c["ysFUg"](T, c["Oisdp"]) && P != c["LRvqw"]
        ? "<span\x20style=\x22white-space:nowrap;\x20color:\x20#009a88;\x20font-size:\x2012px;\x20line-height:\x2016px;font-weight:bold;\x22>\x0a(~<span\x20class=\x22price_class\x22>" +
          N +
          "</span>/month)\x0a</span>"
        : "") +
      "\x0a\x20\x20\x20\x20</a>"
  );
}
async function advanceButton(y = "", O = "", o = "", c) {
  const T = {
    uXfji: "international",
    GdQdY: function (G, l) {
      return G == l;
    },
    lpQjC: function (G, l) {
      return G(l);
    },
    yEAjS: "free_trial_reminder",
    bNwjB: "free_trial_expired",
    bfacC: function (G, l) {
      return G == l;
    },
    rvOYZ: "AdvancePromo",
    CQxio: "advance_promo_activated",
    oGGLj: "advance_promo_expired",
    xWCdk: "https://prime-sender.com/pricing",
    nriAf: function (G, l) {
      return G === l;
    },
    gRxFo: "india",
    PkOkf: "<span\x20class=\x22rupee\x22>₹</span>",
    BzqjU: function (G, l) {
      return G === l;
    },
    oUsjz: "USD",
  };
  let { name: C, name_code: P, currency: N } = location_info;
  Object["keys"](COUNTRY_WITH_SPECIFIC_PRICING)["includes"](P)
    ? (C = COUNTRY_WITH_SPECIFIC_PRICING[P])
    : (C = T["uXfji"]);
  let W = o;
  return (
    (!o || T["GdQdY"](o, "")) &&
      (W = await T["lpQjC"](convertPriceToLocale, O["substring"](0x1))),
    (c == "free_trial_start" ||
      c == T["yEAjS"] ||
      c == T["bNwjB"] ||
      T["bfacC"](last_plan_type, T["rvOYZ"]) ||
      T["bfacC"](c, T["CQxio"]) ||
      T["bfacC"](c, "advance_promo_reminder") ||
      c == T["oGGLj"]) &&
      (y = T["xWCdk"]),
    "<a\x20href=\x22" +
      y +
      "\x22\x20target=\x22_blank\x22\x20class=\x22popup-btn\x20pricing-white-btn\x20CtaBtn\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20Buy\x20Advance<br/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22white-space:nowrap;\x20color:\x20#009a88;\x20font-size:\x2014px;\x20line-height:\x2016px;font-weight:bold;display:flex;\x22><span\x20style=\x22margin-right:3px;\x22>@</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20" +
      (T["nriAf"](C, T["gRxFo"]) ? T["PkOkf"] : "") +
      "\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22price_class\x22>" +
      O +
      "</span>/month\x0a\x20\x20\x20\x20\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20" +
      (T["BzqjU"](C, "international") && N != T["oUsjz"]
        ? "<span\x20style=\x22white-space:nowrap;\x20color:\x20#009a88;\x20font-size:\x2012px;\x20line-height:\x2016px;font-weight:bold;\x22>\x20\x0a(~<span\x20class=\x22price_class\x22>" +
          W +
          "</span>/month)\x0a</span>"
        : "") +
      "\x0a\x20\x20\x20\x20</a>"
  );
}
async function premium_reminder(y, O) {
  const o = {
    Fdeir: "default",
    GbgfS: "div",
    oCkYp: function (w) {
      return w();
    },
    ZhGBe: function (w, S) {
      return w == S;
    },
    OVjtA: "Advance",
    xhxfO: function (w, S, p) {
      return w(S, p);
    },
    rBCJL: function (w, S) {
      return w == S;
    },
    HUTsT: ".premium_reminder_popup",
    XMxDJ: "premium_reminder_popup\x20trial_popup",
    DMCzA: "premium_reminder_content\x20trial_content",
    moClc: function (w, S) {
      return w(S);
    },
    GPCgp: "close_premium_reminder_popup",
    EolAL: "click",
    FBYyD: ".clickHere",
  };
  let { name: c, name_code: T, currency: C } = location_info;
  Object["keys"](COUNTRY_WITH_SPECIFIC_PRICING)["includes"](T)
    ? (c = COUNTRY_WITH_SPECIFIC_PRICING[T])
    : (c = "international");
  if (!y) y = o["Fdeir"];
  let P = "https://prime-sender.com/pricing",
    N = document["querySelector"]("body"),
    W = document["createElement"](o["GbgfS"]),
    G = document["createElement"]("div"),
    l = await o["oCkYp"](multipleAccountButton),
    Z;
  if (o["ZhGBe"](O, o["OVjtA"]))
    (P =
      "https://prime-sender.com/pricing/?country=" +
      c +
      "&lastPlan=lastPlan&currentPlan=advance"),
      (Z = await o["xhxfO"](advanceButton, P, ADVANCE_NORMAL_PRICE[c]));
  else
    o["rBCJL"](O, "Premium") &&
      (Z = await o["xhxfO"](basicButton, P, BASIC_NORMAL_PRICE[c]));
  document["querySelector"](o["HUTsT"]) &&
    N["removeChild"](document["querySelector"](o["HUTsT"]));
  (W["className"] = o["XMxDJ"]),
    (G["className"] = o["DMCzA"]),
    (G["innerHTML"] =
      "\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20id=\x22close_premium_reminder_popup\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<img\x20class=\x22CtaCloseBtn\x22\x20src=\x22" +
      close_img_src +
      "\x22\x20alt=\x22x\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22premium_reminder_popup_title\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22oops_icon\x22></span>Oops!\x0a\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22reminder_title\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20" +
      (await o["moClc"](translate, PREMIUM_REMINDER[y]["title"])) +
      "\x0a\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22reminder_description\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20" +
      (await o["moClc"](
        translate,
        "Please\x20buy\x20<<" +
          O +
          "\x20Plan>>\x20" +
          PREMIUM_REMINDER[y]["description"]
      )) +
      "\x0a\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22display:flex;justify-content:center;gap:20px;width:100%;margin-bottom:20px;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20" +
      Z +
      "\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20" +
      l +
      "\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20</div>\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22display:flex;margin-top:10px\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22font-size:15px;\x20font-weight:1000;margin-right:5px\x22>Already\x20a\x20<span\x20style=\x22color:rgb(0,\x20154,\x20136);margin-right:5px\x22>" +
      O +
      "\x20user</span>?</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div><span\x20class=\x22clickHere\x22\x20style=\x22font-weight:\x201000;text-decoration:\x20underline;cursor:\x20pointer;\x22>Click\x20here</span>\x20to\x20reload\x20your\x20whatsapp!</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20"),
    W["appendChild"](G),
    N["appendChild"](W);
  let a = document["getElementById"](o["GPCgp"]);
  a["addEventListener"](o["EolAL"], function () {
    N["removeChild"](W);
  }),
    document["querySelector"](o["FBYyD"])["addEventListener"](
      o["EolAL"],
      () => {
        location["reload"]();
      }
    );
}
async function chat_link() {
  const y = {
    yqVJy: "chat_link_popup",
    hUbeI: "none",
    MtfFx: function (c, T) {
      return c(T);
    },
    TFHIw: function (c, T) {
      return c + T;
    },
    YxvIj: function (c) {
      return c();
    },
    IbVHn: "add_chat_message",
    ibXtN: function (c, T) {
      return c(T);
    },
    MGYFU: "business_chat_link",
    AgHNx: "https://wa.me/",
    kvYKu: function (c, T, C) {
      return c(T, C);
    },
    kWotn: "Advance",
    tWfch: "Generate\x20WhatsApp\x20chat\x20link\x20for\x20your\x20number",
    cojgY:
      "Enter\x20the\x20pre-set\x20message\x20that\x20you\x20would\x20receive\x20when\x20your\x20customer\x20clicks\x20on\x20the\x20link",
    DLGft: "div",
    IQyDF: "chat_link_content\x20trial_content",
    APwOg: "chat_link_popup\x20trial_popup",
    PBNwx: "min(550px,\x2095%)",
    OgjUY: "close_chat_link_popup",
    Pqygs: "click",
    xDMGD: "generate_chat_link",
    XXlhu: "block",
    glGUR: ".chat_link_title",
    xDuen: function (c, T) {
      return c(T);
    },
    MbBPk: ".chat_link_desc",
    rpRMK: function (c, T) {
      return c(T);
    },
    SjRRM:
      "Enter\x20the\x20pre-set\x20message\x20that\x20you\x20would\x20receive\x20when\x20your\x20customer\x20clicks\x20on\x20the\x20link\x20(Optional)",
  };
  var O = document["getElementsByClassName"](y["yqVJy"])[0x0];
  if (!O) {
    let c = await translate(y["tWfch"]),
      T = await y["ibXtN"](translate, y["cojgY"]),
      C =
        "\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20id=\x22close_chat_link_popup\x22\x20style=\x22position:\x20absolute;top:\x206px;right:\x206px;font-size:\x2020px;width:14px\x22><img\x20\x20class=\x22CtaCloseBtn\x22\x20src=\x22" +
        close_img_src +
        "\x22\x20style=\x22width:\x20100%;\x22\x20alt=\x22x\x22></span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22chat_link_title\x22>" +
        c +
        "</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22chat_link_desc\x22>" +
        T +
        "\x20(Optional)</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<textarea\x20style=\x22width:\x20460px;height:\x2064px;padding:\x208px;\x22\x20type=\x22text\x22\x20id=\x22add_chat_message\x22></textarea>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20id=\x22generate_chat_link\x22\x20class=\x22popup-btn\x20action-green-btn\x20CtaBtn\x22>Generate</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20",
      P = document["createElement"](y["DLGft"]);
    (P["className"] = y["IQyDF"]), (P["innerHTML"] = C);
    let N = document["createElement"](y["DLGft"]);
    (N["className"] = y["APwOg"]),
      (N["style"]["width"] = y["PBNwx"]),
      N["appendChild"](P);
    var o = document["querySelector"]("body");
    o["appendChild"](N),
      document["getElementById"](y["OgjUY"])["addEventListener"](
        y["Pqygs"],
        function (W) {
          document["getElementsByClassName"](y["yqVJy"])[0x0]["style"][
            "display"
          ] = y["hUbeI"];
        }
      ),
      document["getElementById"](y["xDMGD"])["addEventListener"](
        y["Pqygs"],
        function (W) {
          const G = {
            QxPrL: function (a, w) {
              return y["MtfFx"](a, w);
            },
            PyxHl: function (a, w) {
              return y["TFHIw"](a, w);
            },
          };
          if (y["YxvIj"](isAdvanceFeatureAvailable)) {
            const a = "0|4|1|2|5|3"["split"]("|");
            let w = 0x0;
            while (!![]) {
              switch (a[w++]) {
                case "0":
                  var l = document["getElementById"](y["IbVHn"])["value"];
                  continue;
                case "1":
                  l !== "" &&
                    ((l = y["ibXtN"](encodeURIComponent, l)),
                    (Z += "?text=" + l));
                  continue;
                case "2":
                  navigator["clipboard"]["writeText"](Z)["then"](function () {
                    G["QxPrL"](
                      alert,
                      G["PyxHl"](
                        "Chat\x20link\x20generated\x20and\x20copied:\x20",
                        Z
                      )
                    );
                  });
                  continue;
                case "3":
                  y["ibXtN"](trackButtonClick, y["MGYFU"]);
                  continue;
                case "4":
                  var Z = y["AgHNx"] + my_number;
                  continue;
                case "5":
                  document["getElementsByClassName"](y["yqVJy"])[0x0]["style"][
                    "display"
                  ] = "none";
                  continue;
              }
              break;
            }
          } else
            (document["getElementsByClassName"]("chat_link_popup")[0x0][
              "style"
            ]["display"] = "none"),
              y["kvYKu"](premium_reminder, y["MGYFU"], y["kWotn"]);
        }
      );
  } else O["style"]["display"] = y["XXlhu"];
  (document["querySelector"](y["glGUR"])["innerText"] = await y["xDuen"](
    translate,
    y["tWfch"]
  )),
    (document["querySelector"](y["MbBPk"])["innerText"] = await y["rpRMK"](
      translate,
      y["SjRRM"]
    )),
    y["MtfFx"](trackButtonView, "chat_link_popup");
}
async function review_popup() {
  const y = {
    QGsAi: "rvisited",
    srtPd: "#review_popup",
    gByuE: function (P, N) {
      return P(N);
    },
    fMpCy:
      "Just\x20take\x20a\x20second\x20to\x20share\x20your\x20positive\x20review\x20:)",
    iLwpj: function (P) {
      return P();
    },
    bvIVC: "#62d9c7",
    eXXhb: "div",
    fFeYi: "review_popup",
    YLkQH: "body",
    wWszY: "#notNowBtn",
    fOzzn: "click",
  };
  document["querySelector"]("#review_popup") &&
    C["removeChild"](document["querySelector"](y["srtPd"]));
  let O = await y["gByuE"](translate, y["fMpCy"]),
    o =
      "\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22rheader\x22\x20alt=\x22\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<img\x20class=\x22smile_icon\x22\x20src=" +
      smile_icon +
      ("></img>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<h2\x20id=\x22review_popup_title\x22>Enjoying\x20Sellbot\x20Wa\x20Sender?</h2>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22rcenter\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22rtop\x22\x20id=\x22review_popup_desc\x22>" +
        O +
        "</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22rbottom\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20id=\x22notNowBtn\x22\x20class=\x22popup-btn\x20action-white-btn\x20CtaBtn\x22>Not\x20Now</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20id=\x22reviewBtn\x22\x20class=\x22popup-btn\x20action-green-btn\x20CtaBtn\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<a\x20style=\x22width:\x20100%;\x20height:\x20100%;\x20display:\x20flex;\x20justify-content:\x20center;\x20align-items:\x20center\x22\x20href=\x22https://resellr.id\x22\x20target=\x22_blank\x22>Review</a>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20" +
        y["iLwpj"](create_footer_html) +
        "\x0a\x20\x20\x20\x20"),
    c = document["createElement"]("div");
  (c["className"] = "review_popup_content\x20trial_content"),
    (c["style"]["background"] = y["bvIVC"]),
    (c["innerHTML"] = o);
  let T = document["createElement"](y["eXXhb"]);
  (T["className"] = y["fFeYi"]), T["appendChild"](c);
  var C = document["querySelector"](y["YLkQH"]);
  C["appendChild"](T),
    document["querySelector"](y["wWszY"])["addEventListener"](
      y["fOzzn"],
      () => {
        C["removeChild"](T);
      }
    ),
    document["querySelector"]("#reviewBtn")["addEventListener"](
      y["fOzzn"],
      () => {
        C["removeChild"](T), localStorage["setItem"](y["QGsAi"], 0x1);
      }
    );
}
function formatDate(O) {
  const o = {
      hKJWW: function (w, S) {
        return w(S);
      },
      mubRc: function (w, S) {
        return w - S;
      },
      iUyAQ: function (w, S) {
        return w(S);
      },
      LqHpA: "numeric",
      CIoOR: "en-US",
    },
    c = O["split"]("/"),
    T = o["hKJWW"](parseInt, c[0x1]),
    C = o["mubRc"](parseInt(c[0x0]), 0x1),
    P = o["iUyAQ"](parseInt, c[0x2]),
    N = new Date(P, C, T),
    W = {};
  (W["year"] = o["LqHpA"]), (W["month"] = "short"), (W["day"] = o["LqHpA"]);
  const G = W,
    l = N["toLocaleDateString"](o["CIoOR"], G),
    Z = l["split"]("\x20");
  let a = Z[0x0] + ",\x20" + Z[0x2];
  return a;
}
function sortDatesDescending(O) {
  const o = {};
  o["Azwcw"] = function (T, C) {
    return T - C;
  };
  const c = o;
  return O["sort"](function (T, C) {
    const P = T["date"]["split"]("/")["map"](Number),
      N = C["date"]["split"]("/")["map"](Number),
      W = new Date(P[0x2], c["Azwcw"](P[0x0], 0x1), P[0x1]),
      G = new Date(N[0x2], N[0x0] - 0x1, N[0x1]);
    return G - W;
  });
}
function callIfNoOtherPopups(y) {
  const O = {
      ROjRx: ".trial_popup",
      JaPVP: ".success_popup",
      VvFDD: "side",
      RLNLr: "#buy_annual_popup",
      lGHPC: function (c, T) {
        return c(T);
      },
      oapRb: function (c) {
        return c();
      },
      cWdWx: function (c, T, C) {
        return c(T, C);
      },
    },
    o = O["cWdWx"](
      setInterval,
      () => {
        const c = document["querySelector"](O["ROjRx"]),
          T = document["querySelector"](O["JaPVP"]),
          C = document["getElementById"](O["VvFDD"]),
          P = document["querySelector"](O["RLNLr"]);
        !c && !T && !P && C && (O["lGHPC"](clearInterval, o), O["oapRb"](y));
      },
      0x1f4
    );
}
const getDates = async (O) => {
    const o = {
      vGMxB: function (c, T) {
        return c(T);
      },
      fpazI: function (c, T) {
        return c(T);
      },
    };
    try {
      let c = [],
        T =
          AWS_API["GET_INVOICE_DATES"] + "?email=" + O + "&phone=" + my_number;
      const C = await o["vGMxB"](fetch, T);
      (c = await C["json"]()),
        o["fpazI"](sortDatesDescending, c),
        c["map"]((N) => (N["date"] = formatDate(N["date"])));
      const P = {};
      (P["invoiceObject"] = c),
        chrome["storage"]["local"]["set"](P),
        o["vGMxB"](callIfNoOtherPopups, loadBuyAnnualPopup);
    } catch (N) {
      console["log"](N);
    }
  },
  ps_content_0P = {};
(ps_content_0P["image"] = how_to_use1),
  (ps_content_0P["content"] =
    "Click\x20on\x20the\x20‘Extensions’\x20icons\x20at\x20the\x20top\x20right\x20of\x20the\x20chrome\x20window"),
  (ps_content_0P["index"] = 0x1),
  (ps_content_0P["hasPrev"] = ![]),
  (ps_content_0P["hasNext"] = !![]);
const ps_content_0N = {};
(ps_content_0N["image"] = how_to_use2),
  (ps_content_0N["content"] =
    "Pin\x20the\x20Sellbot\x20Wa\x20sender\x20extension\x20icon\x20by\x20clicking\x20on\x20the\x20pin\x20button\x20"),
  (ps_content_0N["index"] = 0x2),
  (ps_content_0N["hasPrev"] = !![]),
  (ps_content_0N["hasNext"] = !![]);
const ps_content_0W = {};
(ps_content_0W["image"] = how_to_use3),
  (ps_content_0W["content"] =
    "Start\x20using\x20the\x20extension\x20by\x20clicking\x20on\x20the\x20Sellbot\x20Wa\x20Sender\x20extension\x20icon"),
  (ps_content_0W["index"] = 0x3),
  (ps_content_0W["hasPrev"] = !![]),
  (ps_content_0W["hasNext"] = !![]);
const howToUseData = [ps_content_0P, ps_content_0N, ps_content_0W];
function changeNavigationColor(O) {
  const o = {};
  (o["ErXSS"] = ".nav_line_1"),
    (o["fMuqg"] = "active_line_class"),
    (o["RATbH"] = ".nav_num_2"),
    (o["jOxKv"] = "active_num_class"),
    (o["VXbWf"] = ".nav_line_2"),
    (o["SAYPz"] = ".nav_num_3"),
    (o["lDYbz"] = function (T, C) {
      return T == C;
    });
  const c = o;
  O == 0x0 &&
    (document["querySelector"](c["ErXSS"])["classList"]["contains"](
      c["fMuqg"]
    ) &&
      document["querySelector"](c["ErXSS"])["classList"]["remove"](c["fMuqg"]),
    document["querySelector"](c["RATbH"])["classList"]["contains"](
      c["jOxKv"]
    ) &&
      document["querySelector"](c["RATbH"])["classList"]["remove"](c["jOxKv"]),
    document["querySelector"](c["VXbWf"])["classList"]["contains"](
      c["fMuqg"]
    ) &&
      document["querySelector"](c["VXbWf"])["classList"]["remove"](c["fMuqg"]),
    document["querySelector"](c["SAYPz"])["classList"]["contains"](
      c["jOxKv"]
    ) &&
      document["querySelector"](c["SAYPz"])["classList"]["remove"](
        "active_num_class"
      )),
    c["lDYbz"](O, 0x1) &&
      (!document["querySelector"](c["ErXSS"])["classList"]["contains"](
        "active_line_class"
      ) &&
        document["querySelector"](c["ErXSS"])["classList"]["add"](c["fMuqg"]),
      !document["querySelector"](c["RATbH"])["classList"]["contains"](
        c["jOxKv"]
      ) &&
        document["querySelector"](c["RATbH"])["classList"]["add"](c["jOxKv"]),
      document["querySelector"](c["VXbWf"])["classList"]["contains"](
        c["fMuqg"]
      ) &&
        document["querySelector"](c["VXbWf"])["classList"]["remove"](
          "active_line_class"
        ),
      document["querySelector"](c["SAYPz"])["classList"]["contains"](
        c["jOxKv"]
      ) &&
        document["querySelector"](".nav_num_3")["classList"]["remove"](
          c["jOxKv"]
        )),
    c["lDYbz"](O, 0x2) &&
      (!document["querySelector"](c["VXbWf"])["classList"]["contains"](
        c["fMuqg"]
      ) &&
        document["querySelector"](c["VXbWf"])["classList"]["add"](c["fMuqg"]),
      !document["querySelector"](c["SAYPz"])["classList"]["contains"](
        c["jOxKv"]
      ) &&
        document["querySelector"](c["SAYPz"])["classList"]["add"](c["jOxKv"]));
}
function howToUsePopup() {
  const y = {
      RiKQs: function (T, C) {
        return T == C;
      },
      VXWFZ: function (T, C) {
        return T(C);
      },
      TbTxM: function (T, C) {
        return T == C;
      },
      VyFxl: ".how_to_use_text",
      Tphsl: "row",
      kusRP: function (T, C) {
        return T == C;
      },
      klPgL: ".how_to_use_body",
      mbyIi: ".how_to_use_popup",
      AnAiW:
        "linear-gradient(270deg,\x20#FFFFFF\x2090.23%,\x20#009A88\x20100%)",
      HryRz: "linear-gradient(90deg,\x20#FFFFFF\x2090.23%,\x20#009A88\x20100%)",
      HNfaz: ".ins_number",
      wsCvb: ".how_to_use_image\x20img",
      dUNIU: ".prev_button",
      GHcYs: function (T, C) {
        return T - C;
      },
      FeZTg: ".next_button",
      ADUcG: "none",
      tUTuD: ".navigation_close_button",
      GTrmS: "10|4|0|1|3|2|7|5|9|6|8",
      RZeKg: function (T, C) {
        return T == C;
      },
      QKqyS: "row-reverse",
      DIrhI: function (T, C) {
        return T == C;
      },
      Defqs: ".ins_text",
      hNpse: function (T, C) {
        return T == C;
      },
      Dggwg: "flex",
      YDlTO: "div",
      NXoKk: "second",
      FRmhs: "click",
    },
    O = document["createElement"](y["YDlTO"]);
  O["className"] = "how_to_use_popup";
  let o = 0x0;
  const c =
    "\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22how_to_use_container\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22how_to_use_header\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22how_to_use_title\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<img\x20style=\x22width:\x2050px;\x20margin-right:10px;\x22\x20src=" +
    bulb_icon +
    "\x20alt=\x22\x22\x20/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<p>How\x20to\x20use</p>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22how_to_use_logo\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<img\x20class=\x22how_to_use_logo_img\x22\x20src=\x22" +
    logo_img +
    "\x22/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<img\x20class=\x22how_to_use_logo_text\x22\x20src=\x22" +
    logo_text +
    "\x22/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22how_to_use_body\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22how_to_use_text\x20" +
    (o == 0x1 ? y["NXoKk"] : "") +
    "\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<p\x20class=\x22ins_number\x22>" +
    howToUseData[o]["index"] +
    "</p>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<p\x20class=\x22ins_text\x22>" +
    howToUseData[o]["content"] +
    "</p>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22how_to_use_image\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<img\x20src=" +
    howToUseData[o]["image"] +
    "\x20alt=\x22\x22\x20/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22how_to_use_buttons\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22how_to_use_button\x20prev_button\x20CtaBtn\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<img\x20style=\x22width:\x2022px\x22\x20src=" +
    arrow_left +
    "\x20alt=\x22\x22\x20/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Previous\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22how_to_use_button\x20next_button\x20CtaBtn\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Next\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<img\x20style=\x22width:\x2022px\x22\x20src=" +
    arrow_right +
    "\x20alt=\x22\x22\x20/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22how_to_use_button\x20navigation_close_button\x20CtaBtn\x22\x20style=\x22display:\x20none;\x20padding:13px\x2030px;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Close\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22navigation_section\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22nav_num\x20nav_num_1\x20active_num_class\x22>1</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22nav_line\x20nav_line_1\x22></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22nav_num\x20nav_num_2\x22>2</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22nav_line\x20nav_line_2\x22></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22nav_num\x20nav_num_3\x22>3</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20";
  (O["innerHTML"] = c),
    document["body"]["appendChild"](O),
    document["querySelector"](y["tUTuD"])["addEventListener"]("click", () => {
      document["body"]["removeChild"](O);
      const T = {};
      (T["showHowToUsePopup"] = ![]), chrome["storage"]["local"]["set"](T);
    }),
    document["querySelector"](y["FeZTg"])["addEventListener"](
      y["FRmhs"],
      () => {
        if (y["RiKQs"](o, howToUseData["length"] - 0x1)) return;
        o++,
          y["VXWFZ"](changeNavigationColor, o),
          y["TbTxM"](o, 0x1)
            ? (document["querySelector"](y["VyFxl"])["style"]["flexDirection"] =
                "row-reverse")
            : (document["querySelector"](".how_to_use_text")["style"][
                "flexDirection"
              ] = y["Tphsl"]),
          y["kusRP"](o % 0x2, 0x0)
            ? ((document["querySelector"](y["klPgL"])["style"][
                "flexDirection"
              ] = y["Tphsl"]),
              (document["querySelector"](y["mbyIi"])["style"]["background"] =
                y["AnAiW"]))
            : ((document["querySelector"](y["klPgL"])["style"][
                "flexDirection"
              ] = "row-reverse"),
              (document["querySelector"](y["mbyIi"])["style"]["background"] =
                y["HryRz"])),
          (document["querySelector"](y["HNfaz"])["innerText"] =
            howToUseData[o]["index"]),
          (document["querySelector"](".ins_text")["innerText"] =
            howToUseData[o]["content"]),
          (document["querySelector"](y["wsCvb"])["src"] =
            howToUseData[o]["image"]),
          (document["querySelector"](y["dUNIU"])["style"]["display"] = "flex"),
          y["kusRP"](o, y["GHcYs"](howToUseData["length"], 0x1)) &&
            ((document["querySelector"](y["FeZTg"])["style"]["display"] =
              y["ADUcG"]),
            (document["querySelector"](y["tUTuD"])["style"]["display"] =
              "flex"));
      }
    ),
    document["querySelector"](y["dUNIU"])["addEventListener"](
      y["FRmhs"],
      () => {
        const T = y["GTrmS"]["split"]("|");
        let C = 0x0;
        while (!![]) {
          switch (T[C++]) {
            case "0":
              y["VXWFZ"](changeNavigationColor, o);
              continue;
            case "1":
              y["RZeKg"](o, 0x1)
                ? (document["querySelector"](y["VyFxl"])["style"][
                    "flexDirection"
                  ] = y["QKqyS"])
                : (document["querySelector"](y["VyFxl"])["style"][
                    "flexDirection"
                  ] = y["Tphsl"]);
              continue;
            case "2":
              document["querySelector"](y["HNfaz"])["innerText"] =
                howToUseData[o]["index"];
              continue;
            case "3":
              y["DIrhI"](o % 0x2, 0x0)
                ? ((document["querySelector"](y["klPgL"])["style"][
                    "flexDirection"
                  ] = "row"),
                  (document["querySelector"](y["mbyIi"])["style"][
                    "background"
                  ] = y["AnAiW"]))
                : ((document["querySelector"](y["klPgL"])["style"][
                    "flexDirection"
                  ] = y["QKqyS"]),
                  (document["querySelector"](".how_to_use_popup")["style"][
                    "background"
                  ] = y["HryRz"]));
              continue;
            case "4":
              o--;
              continue;
            case "5":
              document["querySelector"](y["wsCvb"])["src"] =
                howToUseData[o]["image"];
              continue;
            case "6":
              document["querySelector"](y["tUTuD"])["style"]["display"] =
                "none";
              continue;
            case "7":
              document["querySelector"](y["Defqs"])["innerText"] =
                howToUseData[o]["content"];
              continue;
            case "8":
              y["hNpse"](o, 0x0) &&
                (document["querySelector"](y["dUNIU"])["style"]["display"] =
                  y["ADUcG"]);
              continue;
            case "9":
              document["querySelector"](y["FeZTg"])["style"]["display"] =
                y["Dggwg"];
              continue;
            case "10":
              if (y["kusRP"](o, 0x0)) return;
              continue;
          }
          break;
        }
      }
    );
}
function showHowToUsePopup() {
  const y = {
    POZDn: "side",
    tsYdo: ".trial_popup",
    fFlHE: function (O) {
      return O();
    },
    mCTuK: function (O, o) {
      return O == o;
    },
    muuGS: function (O, o, c) {
      return O(o, c);
    },
    wKFSO: "showHowToUsePopup",
  };
  chrome["storage"]["local"]["get"]([y["wKFSO"], "no_of_visit"], (O) => {
    const o = {
      bbbnx: y["POZDn"],
      xLCaO: y["tsYdo"],
      Xoxyn: function (C) {
        return y["fFlHE"](C);
      },
    };
    let c = O["no_of_visit"] || 0x0;
    if (y["mCTuK"](O["showHowToUsePopup"], ![])) return;
    if (c == 0x0) {
      const C = {};
      (C["showHowToUsePopup"] = !![]), chrome["storage"]["local"]["set"](C);
    }
    const T = y["muuGS"](
      setInterval,
      () => {
        const P = document["getElementById"](o["bbbnx"]),
          N = document["querySelector"](o["xLCaO"]);
        P && !N && (o["Xoxyn"](howToUsePopup), clearInterval(T));
      },
      0x1f4
    );
  });
}
callIfNoOtherPopups(showHowToUsePopup);
async function buyAnnualPopup(y, O) {
  const o = {
    yuUOk: function (i, I) {
      return i(I);
    },
    DUFco: "#buy_annual_popup",
    dTzJS: function (i, I) {
      return i === I;
    },
    ecSDm: "Advance",
    OowBR: "advance_actual_price",
    zwOhm: function (i, I) {
      return i || I;
    },
    nJOxL: function (i, I) {
      return i || I;
    },
    tIPBe: "buy_annual",
    CCoKM: function (i, I) {
      return i == I;
    },
    OFFDX: "international",
    MGCzg: "kuwait",
    LwrVP: function (i, I) {
      return i != I;
    },
    hvrYe: "india",
    oXnlk: function (i, I) {
      return i(I);
    },
    SzrEb: function (i, I) {
      return i * I;
    },
    CDcJo: function (i, I) {
      return i * I;
    },
    GKlYT: function (i, I) {
      return i + I;
    },
    RNoaI: function (i, I) {
      return i === I;
    },
    pgEbO: "USD",
    hdOMR: function (i, I) {
      return i == I;
    },
    beFMu: function (i) {
      return i();
    },
    LUOmS: "buy_annual_popup\x20trial_popup",
    GklpZ: "buy_annual_popup",
    ZawGt: "body",
    KpQsN: "click",
  };
  document["querySelector"](o["DUFco"]) &&
    B["removeChild"](document["querySelector"]("#buy_annual_popup"));
  let { name: c, name_code: T, currency: C } = location_info;
  Object["keys"](COUNTRY_WITH_SPECIFIC_PRICING)["includes"](T)
    ? (c = COUNTRY_WITH_SPECIFIC_PRICING[T])
    : (c = "international");
  const P = o["dTzJS"](plan_type, o["ecSDm"])
      ? o["OowBR"]
      : "basic_actual_price",
    N = o["zwOhm"](y, 0x1);
  let W = o["nJOxL"](O, 0x6),
    G = PRICING_DATA[o["tIPBe"]][P][c],
    l = "";
  if (o["CCoKM"](c, o["OFFDX"]) || o["CCoKM"](c, o["MGCzg"]))
    (l = G[0x0]), (G = G["substring"](0x1));
  else
    o["LwrVP"](c, o["hvrYe"]) &&
      ((l = G["substring"](0x0, 0x4)), (G = G["substring"](0x4)));
  let Z = await o["yuUOk"](convertPriceToLocale, G),
    a = await o["oXnlk"](
      convertPriceToLocale,
      o["SzrEb"](o["CDcJo"](G, N), 0x2)
    );
  G = o["GKlYT"](l, o["SzrEb"](G, N) * 0x2);
  const w =
    "\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22buy_annual_top_section\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20id=\x22buy_annual_close_icon\x22\x20class=\x22CtaCloseBtn\x22\x20style=\x22position:\x20absolute;top:\x206px;right:\x206px;font-size:\x2020px;width:14px\x22><img\x20\x20class=\x22CtaCloseBtn\x22\x20src=" +
    close_img_src +
    "\x20style=\x22width:\x20100%;\x22\x20alt=\x22x\x22></span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22buy_annual_heading\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22buy_annual_image\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<img\x20src=" +
    man_thinking +
    "\x20alt=\x22image\x22\x20/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22buy_annual_heading_text\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<p\x20class=\x22buy_annual_first_line\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20You\x20could\x20save\x20almost\x20<span\x20class=\x22rupee\x22>" +
    (c == o["hvrYe"] ? "₹" : "") +
    "</span>" +
    G +
    "!\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20" +
    (o["RNoaI"](c, o["OFFDX"]) && C != o["pgEbO"]
      ? "<span\x20class=\x22converted_price_class\x22>(~" + a + ")</span>"
      : "") +
    "</p>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<p\x20class=\x22buy_annual_second_line\x22>Wondering\x20how?</p>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22buy_annual_advice\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22buy_annual_advice_text\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<img\x20\x20style=\x22width:25px;\x20height:25px;\x22\x20src=" +
    cross_icon_src +
    "\x20alt=\x22\x22\x20/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<p>You’ve\x20been\x20buying\x20premium\x20<span\x20style=\x22font-weight:bold;\x22><span\x20style=\x22white-space:nowrap;\x22>@<span\x20class=\x22rupee\x22>" +
    (o["hdOMR"](c, "india") ? "₹" : "") +
    "</span>" +
    PRICING_DATA[o["tIPBe"]][P][c] +
    "</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20" +
    (o["dTzJS"](c, o["OFFDX"]) && o["LwrVP"](C, o["pgEbO"])
      ? "<span\x20style=\x22white-space:nowrap;font-weight:400\x20!important;font-size:12px;\x22>(~" +
        Z +
        ")</span>"
      : "") +
    "\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20/month</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20which\x20is\x20overall\x20expensive</p>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22buy_annual_advice_text\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<img\x20\x20style=\x22width:25px;\x20height:25px;\x22\x20src=" +
    check_icon_src +
    "\x20alt=\x22\x22\x20/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<p>Simply\x20buy\x20the\x20Annual\x20Plan\x20which\x20gives\x20you\x20<span\x20style=\x22font-weight:bold;\x22>\x27\x202\x20months\x20worth\x20\x27</span>\x20free!</p>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22buy_annual_recommendation\x22></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22buy_annual_divider\x22></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div>" +
    (await create_pricing_buttons_html("buy_annual")) +
    "</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20" +
    o["beFMu"](create_footer_html) +
    "\x0a\x20\x20\x20\x20";
  let S = document["createElement"]("div");
  (S["className"] = "buy_annual_popup_content\x20trial_content"),
    (S["style"]["background"] = "#d3d3d3"),
    (S["innerHTML"] = w);
  let p = document["createElement"]("div");
  (p["className"] = o["LUOmS"]), (p["id"] = o["GklpZ"]), p["appendChild"](S);
  let B = document["querySelector"](o["ZawGt"]);
  B["appendChild"](p);
  let b = document["getElementById"]("buy_annual_close_icon");
  b["addEventListener"](o["KpQsN"], () => {
    B["removeChild"](p),
      chrome["storage"]["local"]["set"]({
        lastShownAnnualPopup: o["yuUOk"](formatToIsoDate, new Date()),
      });
  }),
    o["oXnlk"](trackButtonView, o["GklpZ"]);
}
function getMonthDifference(y, O) {
  const o = {
      DzTGx: function (N, W) {
        return N + W;
      },
      QSxSP: function (N, W) {
        return N - W;
      },
      sunJK: function (N, W) {
        return N(W);
      },
      KGqdi: function (N, W) {
        return N - W;
      },
      CyukO: function (N, W) {
        return N(W);
      },
    },
    [c, T] = y["split"](",\x20"),
    [C, P] = O["split"](",\x20");
  return o["DzTGx"](
    o["QSxSP"](o["sunJK"](parseInt, P), o["sunJK"](parseInt, T)) * 0xc,
    o["KGqdi"](o["CyukO"](getMonthIndex, C), o["CyukO"](getMonthIndex, c))
  );
}
const monthNames = [
  "Jan",
  "Feb",
  "Mar",
  "Apr",
  "May",
  "Jun",
  "Jul",
  "Aug",
  "Sep",
  "Oct",
  "Nov",
  "Dec",
];
function getMonthIndex(y) {
  return monthNames["indexOf"](y);
}
function formatToIsoDate(y) {
  const O = y["getFullYear"](),
    o = y["getMonth"]() + 0x1,
    c = y["getDate"]();
  return O + "-" + o + "-" + c;
}
function dateDiffInDays(O, o) {
  const c = {};
  (c["UThfb"] = function (S, p) {
    return S - p;
  }),
    (c["aiohx"] = function (S, p) {
      return S - p;
    }),
    (c["TFMgq"] = function (S, p) {
      return S / p;
    }),
    (c["xgcNf"] = function (S, p) {
      return S * p;
    }),
    (c["mXTVS"] = function (S, p) {
      return S * p;
    }),
    (c["BqEPB"] = function (S, p) {
      return S * p;
    });
  const T = c,
    [C, P, N] = O["split"]("-")["map"](Number),
    [W, G, l] = o["split"]("-")["map"](Number),
    Z = new Date(C, T["UThfb"](P, 0x1), N),
    a = new Date(W, T["aiohx"](G, 0x1), l),
    w = Math["abs"](a - Z);
  return Math["ceil"](
    T["TFMgq"](w, T["xgcNf"](T["mXTVS"](T["BqEPB"](0x3e8, 0x3c), 0x3c), 0x18))
  );
}
function showBuyAnnualPopup(y, O) {
  const o = {
    FSYzk: "Monthly",
    WLoVY: function (c, T) {
      return c == T;
    },
    pXRfZ: function (c, T) {
      return c != T;
    },
    loESk: function (c, T) {
      return c != T;
    },
    VdNoJ: "Expired",
    ZMPMS: function (c, T, C) {
      return c(T, C);
    },
    RBpEo: function (c, T) {
      return c(T);
    },
    SrNeu: function (c, T, C) {
      return c(T, C);
    },
    tquhb: function (c, T) {
      return c == T;
    },
    velVr: "FreeTrial",
    dbcPI: function (c, T) {
      return c != T;
    },
    zVMhX: "lastShownAnnualPopup",
    NPKWm: "plan_duration",
  };
  chrome["storage"]["local"]["get"]([o["zVMhX"], o["NPKWm"]], (c) => {
    const T = c["lastShownAnnualPopup"],
      C = c["plan_duration"] || o["FSYzk"];
    if (
      !T &&
      o["WLoVY"](C, o["FSYzk"]) &&
      o["pXRfZ"](plan_type, "FreeTrial") &&
      o["loESk"](plan_type, o["VdNoJ"])
    ) {
      o["ZMPMS"](buyAnnualPopup, y, O),
        chrome["storage"]["local"]["set"]({
          lastShownAnnualPopup: o["RBpEo"](formatToIsoDate, new Date()),
        });
      return;
    }
    const P = Math["abs"](
      o["SrNeu"](dateDiffInDays, o["RBpEo"](formatToIsoDate, new Date()), T)
    );
    P >= 0x3 &&
      o["tquhb"](C, o["FSYzk"]) &&
      plan_type != o["velVr"] &&
      o["dbcPI"](plan_type, o["VdNoJ"]) &&
      (o["ZMPMS"](buyAnnualPopup, y, O),
      chrome["storage"]["local"]["set"]({
        lastShownAnnualPopup: o["RBpEo"](formatToIsoDate, new Date()),
      }));
  });
}
function loadBuyAnnualPopup() {
  const y = {
    YyyFx: function (O, o) {
      return O < o;
    },
    mBOjZ: function (O, o) {
      return O - o;
    },
    OZneS: function (O, o, c) {
      return O(o, c);
    },
    PGXIQ: function (O, o) {
      return O == o;
    },
    kONDQ: function (O, o) {
      return O > o;
    },
    kJFTm: function (O, o) {
      return O + o;
    },
    dfsax: function (O, o) {
      return O / o;
    },
    jtqSq: "invoiceObject",
  };
  chrome["storage"]["local"]["get"]([y["jtqSq"]], (O) => {
    const o = O["invoiceObject"];
    if (!o) return;
    let c = 0x0;
    for (let C = 0x0; y["YyyFx"](C, y["mBOjZ"](o["length"], 0x1)); C++) {
      const P = Math["abs"](
        y["OZneS"](getMonthDifference, o[C]["date"], o[C + 0x1]["date"])
      );
      if (y["PGXIQ"](P, 0x1)) c++;
      else {
        if (y["kONDQ"](P, 0x1)) break;
      }
    }
    const T = y["kJFTm"](Math["floor"](y["dfsax"](c, 0x6)), 0x1);
    y["OZneS"](showBuyAnnualPopup, T, c);
  });
}
async function updateReminderPopup() {
  const y = {
    eBYyb: "body",
    OQpMi:
      "You\x20can\x20either\x20restart\x20your\x20Chrome\x20to\x20update\x20or\x20you\x20can\x20go\x20to\x20manage\x20Chrome\x20extension\x20and\x20update\x20it.",
    Qofoi: function (C) {
      return C();
    },
    XBLgE: "div",
    BefhT: "update_reminder_popup_content\x20trial_content",
    ahGjT: "100",
    RydXD: "60%",
    SDceB: function (C, P) {
      return C + P;
    },
    bXhZX: "\x22\x20style=\x22width:\x20100%;\x22\x20alt=\x22x\x22></span>",
    wAMga: "update_reminder_popup",
    HLBkl: "100%",
    ZzpQL: "flex",
    dQHfX: "#okBtn",
    vEzJx: "click",
    cAKbQ: "close_update",
    RsIwd: "#closePopupBtn",
  };
  if (!SHOW_UPDATE_REMINDER_POPUP) return;
  document["querySelector"]("#update_reminder_popup") &&
    document["querySelector"]("body")["removeChild"](
      document["querySelector"]("#update_reminder_popup")
    );
  let O = await translate(y["OQpMi"]),
    o =
      "\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22rheader\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<h2\x20id=\x22update_popup_title\x22>New\x20Version\x20Available</h2>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22rcenter\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22rtop\x22\x20id=\x22update_popup_desc\x22>" +
      O +
      "</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22rbottom\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<a\x20href=\x22http://chrome://extensions/?id=klfaghfflijdgoljefdlofkoinndmpia\x22\x20target=\x22_blank\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20id=\x22okBtn\x22\x20class=\x22popup-btn\x20action-green-btn\x20CtaBtn\x22>Update</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</a>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20" +
      y["Qofoi"](create_footer_html) +
      "\x0a\x20\x20\x20\x20",
    c = document["createElement"](y["XBLgE"]);
  (c["className"] = y["BefhT"]),
    (c["style"]["background"] = "#62d9c7"),
    (c["style"]["zIndex"] = y["ahGjT"]),
    (c["style"]["width"] = y["RydXD"]),
    (c["innerHTML"] = o),
    c["appendChild"](
      $(
        $["parseHTML"](
          y["SDceB"](
            "<span\x20id=\x22close_update\x22\x20style=\x22position:\x20absolute;top:\x2012px;right:\x2012px;font-size:\x2020px;width:14px\x22><img\x20class=\x22CtaCloseBtn\x22\x20src=\x22",
            close_img_src
          ) + y["bXhZX"]
        )
      )[0x0]
    );
  let T = document["createElement"]("div");
  (T["className"] = y["wAMga"]),
    (T["id"] = y["wAMga"]),
    (T["style"]["height"] = y["HLBkl"]),
    (T["style"]["display"] = y["ZzpQL"]),
    T["appendChild"](c),
    document["querySelector"]("body")["appendChild"](T),
    document["querySelector"](y["dQHfX"])["addEventListener"](
      y["vEzJx"],
      () => {
        document["querySelector"](y["eBYyb"])["removeChild"](T);
      }
    ),
    document["getElementById"](y["cAKbQ"])["addEventListener"](
      y["vEzJx"],
      function (C) {
        document["querySelector"](y["eBYyb"])["removeChild"](T);
      }
    ),
    document["querySelector"](y["RsIwd"])["addEventListener"]("click", () => {
      document["querySelector"](y["eBYyb"])["removeChild"](T);
    });
}
function getDocumentElement(O, o = ![]) {
  const c = {};
  (c["iCxRh"] = "Selector\x20not\x20exists:"),
    (c["DVejo"] = "Error\x20while\x20finding\x20document\x20element");
  const T = c;
  try {
    if (DOCUMENT_ELEMENT_SELECTORS[O])
      for (const C of DOCUMENT_ELEMENT_SELECTORS[O]) {
        const P = o
          ? document["querySelectorAll"](C)
          : document["querySelector"](C);
        if (P) return P;
      }
    else console["log"](T["iCxRh"], O);
  } catch (N) {
    console["log"](T["DVejo"], N);
  }
  return null;
}
async function fetchConfigData() {
  const y = {
    xyomT: function (O, o) {
      return O(o);
    },
    nbjNs: function (O, o) {
      return O(o);
    },
    PkPLI: function (O, o) {
      return O(o);
    },
    eKXou: "CONFIG_DATA",
    oPVrK: "Config\x20data\x20not\x20found.\x20Api\x20response:",
    wQnPr: "Error\x20while\x20fetching\x20config\x20data:",
  };
  try {
    const O = AWS_API["GET_CONFIG_DATA"] + "?operation=get-all-config-data",
      o = await y["xyomT"](fetch, O),
      c = await o["json"](),
      T = c["data"];
    if (T && Array["isArray"](T)) {
      const C = y["nbjNs"](createConfigMap, T);
      y["PkPLI"](loadConfigData, C),
        chrome["storage"]["local"]["get"]([y["eKXou"]], (P) => {
          const N = {};
          (N["CONFIG_DATA"] = C), chrome["storage"]["local"]["set"](N);
        });
    } else console["log"](y["oPVrK"], c);
  } catch (P) {
    console["log"](y["wQnPr"], P);
  }
}
function createConfigMap(O) {
  const o = {};
  o["RbElQ"] = function (C, P) {
    return C !== P;
  };
  const c = o,
    T = {};
  return (
    O["forEach"]((C) => {
      C["name"] && c["RbElQ"](C["data"], null) && (T[C["name"]] = C["data"]);
    }),
    T
  );
}
function loadConfigData(T) {
  const C = {};
  (C["KZPxF"] = "PRIMES::init"),
    (C["Szfbu"] = function (G, l) {
      return G in l;
    }),
    (C["LfJrN"] = "SHOW_UPDATE_REMINDER_POPUP");
  const P = C,
    //N = "8|2|5|4|6|12|10|9|1|7|0|13|3|11"["split"]("|");
    N = "7";
  let W = 0x0;
  while (!![]) {
    switch (N[W++]) {
      case "0":
        if (T["DOCUMENT_ELEMENT_SELECTORS"])
          DOCUMENT_ELEMENT_SELECTORS = { ...T["DOCUMENT_ELEMENT_SELECTORS"] };
        continue;
      case "1":
        if (T["PREMIUM_REMINDER"])
          PREMIUM_REMINDER = { ...T["PREMIUM_REMINDER"] };
        continue;
      case "2":
        if (T["PREMIUM_FEATURES"])
          PREMIUM_FEATURES = [...T["PREMIUM_FEATURES"]];
        continue;
      case "3":
        if (T["LOAD_INJECT"]) {
          const G = { ...T["LOAD_INJECT"] };
          LOAD_INJECT = G;
          if (LOAD_INJECT["reload"]) {
            const l = {};
            l["useOldMethod"] = LOAD_INJECT["useOldMethod"];
            const Z = {};
            (Z["detail"] = l),
              window["dispatchEvent"](new CustomEvent(P["KZPxF"], Z));
          }
        }
        continue;
      case "4":
        if (T["ALL_LANGUAGE_CODES"])
          ALL_LANGUAGE_CODES = [...T["ALL_LANGUAGE_CODES"]];
        continue;
      case "5":
        if (T["DID_YOU_KNOW_TIPS"])
          DID_YOU_KNOW_TIPS = [...T["DID_YOU_KNOW_TIPS"]];
        continue;
      case "6":
        if (T["HELP_MESSAGES"]) HELP_MESSAGES = { ...HELP_MESSAGES };
        continue;
      case "7":
        if (T["SUCCESS_POPUP_DATA"])
          SUCCESS_POPUP_DATA = { ...T["SUCCESS_POPUP_DATA"] };
        continue;
      case "8":
        if (T["TRIAL_FEATURES"]) TRIAL_FEATURES = [...T["TRIAL_FEATURES"]];
        continue;
      case "9":
        if (T["PRICING_DATA"]) PRICING_DATA = { ...T["PRICING_DATA"] };
        continue;
      case "10":
        if (T["POPUP_DATA"]) POPUP_DATA = { ...T["POPUP_DATA"] };
        continue;
      case "11":
        if (P["Szfbu"](P["LfJrN"], T))
          SHOW_UPDATE_REMINDER_POPUP = T["SHOW_UPDATE_REMINDER_POPUP"];
        continue;
      case "12":
        if (T["GA_CONFIG"]) GA_CONFIG = { ...T["GA_CONFIG"] };
        continue;
      case "13":
        if (T["FAQS"]) FAQS = { ...T["FAQS"] };
        continue;
    }
    break;
  }
}
