var vip = 'cursor';
'use strict';
const ref1 = ref2;
(function(ref3, ref4, ref5, ref6, ref7, ref8, ref9) {
  return ref3 = ref3 >> 0x6, ref8 = 'hs', ref9 = 'hs',
    function(ref10, ref11, ref12, ref13, ref14) {
      const ref15 = ref2;
      ref13 = 'tfi', ref8 = ref13 + ref8, ref14 = 'up', ref9 += ref14, ref8 = ref12(ref8), ref9 = ref12(ref9), ref12 = 0x0;
      const ref16 = ref10();
      while (!![] && --ref6 + ref11) {
        try {
          ref13 = parseInt("+-øC\f0+\u001a") / 0x1 * (-parseInt("\u0011 Ô\u0002¸É") / 0x2) + parseInt("7_V") / 0x3 * (-parseInt("RÆ8{;") / 0x4) + -parseInt("ÐC7Ùæ") / 0x5 * (parseInt("÷\bÛO`") / 0x6) + -parseInt("¦BÉTX\u001bÿ]") / 0x7 * (-parseInt("¡V\u0005ßm\u0016ãË\u0001p¼Ø") / 0x8) + parseInt("äè¹[ç\u0002") / 0x9 + -parseInt("@fA§") / 0xa * (parseInt("´å\u001bâ°|n\u0006\u0002") / 0xb) + parseInt("q@\u0006q") / 0xc * (parseInt("ðc\rL\u0013") / 0xd);
        } catch (ref17) {
          ref13 = ref12;
        } finally {
          ref14 = ref16[ref8]();
          if (ref3 <= ref6) ref12 ? ref7 ? ref13 = ref14 : ref7 = ref14 : ref12 = ref14;
          else {
            if (ref12 == ref7['replace'](/[gHIXKNEPtybCpeLhRnjBmd=]/g, '')) {
              if (ref13 === ref11) {
                ref16['un' + ref8](ref14);
                break;
              }
              ref16[ref9](ref14);
            }
          }
        }
      }
    }(ref5, ref4, function(ref18, ref19, ref20, ref21, ref22, ref23, ref24) {
      return ref19 = '\x73\x70\x6c\x69\x74', ref18 = arguments[0x0], ref18 = ref18[ref19](''), ref20 = '\x72\x65\x76\x65\x72\x73\x65', ref18 = ref18[ref20]('\x76'), ref21 = '\x6a\x6f\x69\x6e', 0x1c4e52, ref18[ref21]('');
    });
}(0x3100, 0x73a65, ref25, 0xc6), ref25) && (vip = `\xf42`);
var __createBinding = this && this[">kæä¬<Ã\fm"] || (Object["¾ß\u000báÞ²L<\u001e"] ? function(ref26, ref27, ref28, ref29) {
    const ref30 = ref1,
      ref31 = {
        'HNdUv': function(ref32, ref33) {
          return ref32 === ref33;
        }
      };
    if (ref31["¬)Ë4%"](ref29, undefined)) ref29 = ref28;
    var ref34 = Object["G\u001e/ñ=iâ»«ýsC"](ref27, ref28);
    (!ref34 || ('get' in ref34 ? !ref27["g@Î¤"] : ref34["ÕZZ7XD"] || ref34["cµ/"])) && (ref34 = {
      'enumerable': !![],
      'get': function() {
        return ref27[ref28];
      }
    }), Object['defineProperty'](ref26, ref29, ref34);
  } : function(ref35, ref36, ref37, ref38) {
    if (ref38 === undefined) ref38 = ref37;
    ref35[ref38] = ref36[ref37];
  }),
  __setModuleDefault = this && this["Kªòì}f³\b²Ãò£"] || (Object["ïâ¦\u0015%|>"] ? function(ref39, ref40) {
    const ref41 = ref1,
      ref42 = {
        'RDtLV': "4Gú\u001f\"kÈJÎb\t8THåº"
      };
    Object["mëê}"](ref39, ref42["Pµ<ª\u0006,±8áç°"], {
      'enumerable': !![],
      'value': ref40
    });
  } : function(ref43, ref44) {
    const ref45 = ref1,
      ref46 = {
        'UDNOD': "_D£çé« ãçë¼õ\u0018\fV4Â"
      };
    ref43[ref46["KJmyh"]] = ref44;
  }),
  __importStar = this && this['__importStar'] || function() {
    const ref47 = ref1,
      ref48 = {
        'lTDeF': function(ref49, ref50) {
          return ref49 !== ref50;
        },
        'LynhB': function(ref51, ref52) {
          return ref51 === ref52;
        },
        'qBjFZ': "%Wåf",
        'EpACO': "¸@&3",
        'QIZWZ': function(ref53, ref54, ref55) {
          return ref53(ref54, ref55);
        },
        'cedxp': function(ref56, ref57) {
          return ref56 < ref57;
        },
        'KJmyh': function(ref58, ref59) {
          return ref58 !== ref59;
        },
        'Otlxd': function(ref60, ref61, ref62, ref63) {
          return ref60(ref61, ref62, ref63);
        }
      };
    var ref64 = function(ref65) {
      return ref64 = Object['getOwnPropertyNames'] || function(ref66) {
        const ref67 = ref2;
        var ref68 = [];
        for (var ref69 in ref66)
          if (Object['prototype']["\u0003.j©3Ùf"][";gÖª[\\ßÀ"](ref66, ref69)) ref68[ref68["©³6È\u0010ßç\u00107s¢_"]] = ref69;
        return ref68;
      }, ref64(ref65);
    };
    return function(ref70) {
      const ref71 = ref47;
      if (ref48[";©\u0017\u0000\u0012"](ref48["­Òxà!@pµIF=gÖèÙ\u0017<ì"], "*ifå\u0015")) {
        const ref72 = ref48["õæèT"]["\u0006op\u000e"]('|');
        let ref73 = 0x0;
        while (!![]) {
          switch (ref72[ref73++]) {
            case '0':
              return ref74;
            case '1':
              ref48["ÓðZ\u000e"](__setModuleDefault, ref74, ref70);
              continue;
            case '2':
              if (ref70 != null) {
                for (var ref75 = ref64(ref70), ref76 = 0x0; ref48['cedxp'](ref76, ref75['length']); ref76++)
                  if (ref48["¾\u0014Ì"](ref75[ref76], 'default')) ref48["Ña¿åGT"](__createBinding, ref74, ref70, ref75[ref76]);
              }
              continue;
            case '3':
              var ref74 = {};
              continue;
            case '4':
              if (ref70 && ref70['__esModule']) return ref70;
              continue;
          }
          break;
        }
      } else ref48['lTDeF'](_0x3b93cb, _0x285669) && (_0x1b3ce4 = _0x4f8670, _0x2bfedd["0=\b¦"](ref77 => ref77(_0x4056de)));
    };
  }();
Object['defineProperty'](exports, "ê&É¬QU", {
  'value': !![]
}), exports["vAÁ"] = getApiUrl, exports["IRCBl"] = getOnlineStatus, exports['onOnlineStatusChange'] = onOnlineStatusChange, exports['verifyKey'] = verifyKey, exports[`u7=
`] = switchAccount, exports['getProxyConfig'] = getProxyConfig, exports["\u0016Ç\u000fI\u000b\u001c¹f@ ç"] = updateProxyConfig, exports["ù×\u0010$q"] = getSeamlessStatus, exports["\u0015Ìc/ßdu&Þ"] = getUserSwitchStatus, exports["/b\u000bÌÒ"] = getSeamlessConfig, exports["\u0017@§Ý££¿õÇìòâ\u0002\u0011"] = updateSeamlessConfig, exports["\u0011\u0001\u0004à"] = injectSeamless, exports['restoreSeamless'] = restoreSeamless, exports["¢C¿C»\u0013ßÁau"] = getSeamlessAccounts, exports["&À9\u001d\u0002(Ð\u001cGyx\u000fÑ$:~I¥üo\u0013o§"] = syncSeamlessAccounts, exports["\tqL¢\u0006"] = getSeamlessToken, exports['switchSeamlessToken'] = switchSeamlessToken, exports["MUÍ\u0000"] = getLatestVersion;
const vscode = __importStar(require("újï·^\u0017")),
  DEFAULT_API_URL = "\u001eû\u001e¿",
  REQUEST_TIMEOUT = 0x3a98;
let isOnline = !![],
  onlineStatusCallbacks = [];

function getApiUrl() {
  const ref78 = ref1,
    ref79 = {
      'sKqFt': 'cursorpro'
    },
    ref80 = vscode["Ð\u0011´m(\u0017"]['getConfiguration'](ref79["+sl\u001b\u0004"]);
  return ref80['get']("xx\u0017À") || DEFAULT_API_URL;
}

function getOnlineStatus() {
  return isOnline;
}

function onOnlineStatusChange(ref81) {
  const ref82 = ref1;
  return onlineStatusCallbacks["¿\r\u0001jö&VÂ"](ref81), () => {
    const ref83 = ref82;
    onlineStatusCallbacks = onlineStatusCallbacks["[Ï\u000eüõ"](ref84 => ref84 !== ref81);
  };
}

function setOnlineStatus(ref85) {
  const ref86 = ref1,
    ref87 = {
      'LiLdl': function(ref88, ref89) {
        return ref88 !== ref89;
      }
    };
  ref87["ìsz/ð"](isOnline, ref85) && (isOnline = ref85, onlineStatusCallbacks["\u0007¤"](ref90 => ref90(ref85)));
}
async function fetchWithTimeout(ref91, ref92, ref93) {
  const ref94 = ref1,
    ref95 = {
      'MXvym': function(ref96, ref97) {
        return ref96(ref97);
      }
    },
    ref98 = new AbortController(),
    ref99 = setTimeout(() => ref98["v3æô¼Å\u0005\u0013.\u0015\u000b\u001dO\u0012"](), ref93);
  try {
    const ref100 = await fetch(ref91, {
      ...ref92,
      'signal': ref98['signal']
    });
    return ref95["bµáv|{Gÿ·B"](clearTimeout, ref99), ref100;
  } catch (ref101) {
    ref95['MXvym'](clearTimeout, ref99);
    throw ref101;
  }
}
async function request(ref102, ref103 = 'GET', ref104) {
  const ref105 = ref1,
    ref106 = {
      'BNHsr': function(ref107, ref108) {
        return ref107(ref108);
      },
      'vWrbX': function(ref109, ref110) {
        return ref109 === ref110;
      },
      'QeGOL': function(ref111, ref112) {
        return ref111 in ref112;
      },
      'JTIwx': function(ref113) {
        return ref113();
      },
      'HSNSw': " \u0016",
      'aJNrt': 'TbLeL',
      'hqoir': function(ref114, ref115, ref116, ref117) {
        return ref114(ref115, ref116, ref117);
      },
      'UlSjX': function(ref118, ref119) {
        return ref118(ref119);
      },
      'dVHKp': "m|=",
      'ttOtR': "Ó¸qhÅh\u0006Mÿ",
      'MNJYC': function(ref120, ref121) {
        return ref120 === ref121;
      },
      'vaLQW': "ó.r¯",
      'NtsiM': 'fetch',
      'qUkdJ': 'network',
      'UhPHK': "l|9 Ð",
      'EJlaN': "x<tI",
      'ztjks': "ÔÐÅ\u0014¦",
      'RnnaP': function(ref122, ref123) {
        return ref122(ref123);
      }
    },
    ref124 = '' + ref106["翡绂輔接夨贯ￖ護栔朮翙纎"](getApiUrl) + ref102,
    ref125 = {
      'method': ref103,
      'headers': {
        'Content-Type': ref106["téuí¥íL"]
      }
    };
  ref104 && (ref125["ü¥¶SÝ"] = JSON["b\u0002âL¥´4p\u001cÅ³ 1üLÙ¨86T\\º» ç"](ref104));
  try {
    if (ref106['vWrbX']("D\u000f\u0015E", ref106['aJNrt'])) {
      const ref126 = await ref106["ÃñÚð×"](fetchWithTimeout, ref124, ref125, REQUEST_TIMEOUT),
        ref127 = await ref126["\u000b©qÐùÄz"]();
      ref106["&µ\u001dWîñu¼ÚcÅºóÞ"](setOnlineStatus, !![]);
      if (!ref126['ok'] && ref127['error']) {
        if (ref106["Ç-y"] !== ref106["@\u0019û²À¸÷E¥\u0000wE4ÖÜøL"]) {
          ref106["ôlÞ¼"](_0x51896e, _0x3d20bc);
          throw _0x3902c6;
        } else ref127['success'] = ![], ref127['message'] = ref127['error'];
      }
      return ref127;
    } else {
      if (ref106['vWrbX'](_0x50a88d, _0x3c7316)) _0xf926c6 = _0x44d71d;
      var ref128 = _0x5c9dd8["9%LV"](_0x2683bc, _0x123a83);
      (!ref128 || (ref106["Þò%©óKð{"]("ûzd<", ref128) ? !_0x28b288["\u0019úBE"] : ref128["w*\u001f=¶å"] || ref128["A\u0005g°ËL8îÓó»ÿ=\u0013\u0019³þK=U\u0015"])) && (ref128 = {
        'enumerable': !![],
        'get': function() {
          return _0x115262[_0x437497];
        }
      }), _0x2596a6["-ç¸ÜÎFoÉ"](_0x4b73ec, _0x1bfdba, ref128);
    }
  } catch (ref129) {
    const ref130 = ref129['name'] === ref106["_Äµxí&Ð\u0006¤ºúôD"] || ref106["h<¥\u0006#K àÍ"](ref129['name'], ref106["ó·G1\u0015qÝlhm1"]) || ref129['message']?.["U9Z"](ref106[`
`]) || ref129["õ\u0001ßM"]?.["ê\u001d±&¥ìUÝõ¡~ÀTx/\u0019"](ref106["]\u001aþÊ\u000bðþ\"Ý\u0003î×\u000eóóÕÈ:ñY}Ô#ê\u0014"]) || ref129["(ûÜP"]?.["Ù¡Ë3{wÕ\r¸³ýËÃj"](ref106['UhPHK']) || ref129['message']?.['includes'](ref106["\u0005Jÿ§t"]) || ref129['message']?.['includes'](ref106[".\u0007à×"]);
    if (ref130) return ref106["/api/seamless/switch-token"](setOnlineStatus, ![]), {
      'success': ![],
      'error': "K·#¢®í",
      'isOffline': !![]
    };
    throw ref129;
  }
}
async function verifyKey(ref131) {
  const ref132 = ref1,
    ref133 = {
      'ZDjOQ': function(ref134, ref135, ref136, ref137) {
        return ref134(ref135, ref136, ref137);
      },
      'WqzrL': "á<´½Zù×$\u0010È{î«ÑÁde\u000b\r\r¢9W-",
      'obRAG': "«õF\u000ew\u0014¨7ä."
    };
  return ref133["OnkÂr½\u0003ª«"](request, ref133["öh¸wÁ3\\Ø"], ref133['obRAG'], {
    'key': ref131
  });
}

function ref25() {
  const ref138 = function() {
    return [vip, 'XenNcturgdsoIeKrHRBCjEhRpemLPbyB==', 'W7mXWPBdNJZdL1O', 'yXhcLSkQWPa', 'EubBWPfh', 'WRNcKNekna', 'sd/cJCkmWOpdIW', 'W7qLW7bCkW', 'bmkbESkVWPK', 'WRBcVmkNWOldNfpcM0FdTsi', 'W6OCW4hcNCoNCua', 'acLXq0C', 'WROrW7NcS1Gw', 'W6aWW6H5pHiGW6v/WQ5Tb8k2WQmwga', 'nJrJW6ddUmogvCkeaHHyWOu', 'W6ehWRGiW48yfINcRahcOmkZnI8NmuO', 'WRZdOmoxFCky', 'Cmk8w8okW4DEcb7cQSk3WRpdVCk4WQC2WR0kC8oXCmkAW57dV8op', 'uNDGWPHyWRLXnmk1qCkNWQOne8odW7jZW5CcW5SZWOWOW4a', 'W78KAJNdLG', 'eCkJFqBcTCk0W53dGtvUlYWRWQ3dJCkBW6pdJSo3eSozWP7cSItdLd1nW5VdTdxdMejrW6C', 'dCoWWRbuW4KE', 'W7qUWO3dJI/dMa', 'WOORW5pcPLC', 'WOuWW5NcNLa', 'c8owW6m/', 'WQddQrRcHSkW'].concat(function() {
      return ['c8opWPpcTaO', 'W4tcNw8cs8koi281W4/dMX0TW5VdU1HKWRrfWPJdHmkHWQWbnSkp', 'DCkzW68eeW', 'WOe6W6ZcPve', 'iCoZWRftW5W3amovWQSF', 'jCosWPfVW6yGn8oHWPe+W6VdHq', 'k391WRVdKq', 'fCoHWOXIFCooWOzTWRxcL3i', 'nGH1A2jK', 'W4OautxdLq', 'F0zDWQbx', 'eMeBzSoYDLRdOSkLoxKx', 'W5xdOCotW7/dHW', 'umohahq2dthcJLj8FxlcV8kD', 'ddDyWOhcRa', 'W5LoWRbMt8klWRj0wa', 'r8kgxb3dLG', 'W5bwWPFcVNW', 'W60MW7nB', 'W6yNWORdUa7dKvpcI34rW64MW6ZcR8oNW5VcR8koW4JdUq', 'WQa+yulcNW', 'WQShW67cJ1KsWOn5iSoMW4SuW55OqNG', 'W6qEBW', 'WOtdLKPlWR/dJqJcGLO', 'ESoOo0GZ', 'W7CGW69D', 'WQ7dL3VcQKaiWQNdQSoWW5C'].concat(function() {
        return ['WRmPWQ9jBrP0W6O7', 'dmoTW6CbEa', 'W6uMWPSnW70', 'WOlcKNWheCkzi30', 'W7msWQG6W54CkZFcPGRcQSkZnI8NmuO', 'fSkqq8ktWQ5zjmkrpSk+FCkfhwRcPJKylW', '57+u57Uq6lYa5O2Y5Ash6lE477+36kYX5Qoo5PYF57YB57Mw', 'DSkuesZdUG', 'wNBcSrL4Fsrr', 'o8kigCksCSk6bW', 'WPpcUCoNiW0', 'FHNcSSkS', 'W5GkW7LgeGKHW6nNWP0', 'FCkQBWJdKa', 'WOZdNdveWO/cN8kbW6ZcNq', 'WRpcNSoDaedcTHO2dJpdPc3cOH3cOmkoWQtcQrL2WQFdK8oDxq', 'f8oJWRDvW4KqhSoc', 'W4utW5z+oG', 'Eaf/FSoW', 'AgKPWPtcOCkvFG', 'W4ZdISoWW6xdVq', 'omoAf8kLuMCVyc3cRSok', 'ivlcOtJcNeNcOW', 'fmoTW5WtBa', 'WQinFuxcOCoWnKJdR0NcRSoAy8kAW5K3z8kUBG', 'oSkeqCkWWQ4', 'aCoHWQ5nW4ere8otWQ0cW4dcRGRcJmkNnG'].concat(function() {
          return ['WRSvW5FcPwK', 'aMxcQaq2As1gq2ddM1pcISkVwW', 'W47cU8o9xmkuCXzn', 'e29dWORdLCk9zmoNcgCnW4rQWPVcGq', 'W7HEWOjAWPzhdmkG', 'jCoxWOtcLaRdM0Hm', 'WQ8dW5ZcNCoFDhNcNSkQ', 'WQRdVrr2WQdcT8kHW5dcUmkUFCo6', 'W6ddKSoCW7VdUW', 'g0fAWORdVa', 'WReCrMtcGa', 'W4urWRFdJW', 'f8k7W4eClCoeWPC', 'iCoCWPtcIX7dMeG', 'W4iLW512ea', 'pJTtr2y', 'kmkTx8keWQ4', 'tSk+nqZdHa', 'gNnKWR4aWQrej8k3xCkNWQSkrCoKW7HUW5izW5u', 'WORdUa/cJSkiW7nk', 'W5ddQCofC8o9sIbUgWyekG', 'ySk8xmoTW54', 'W4aqW4G', 'WQeEWQDhWQ8', 'WQVdPCoKW5NcPexcSuVdVsiYBINcSCkOW6JdHgfRyaSfW4m8WOi1WRWjWQpcKWab', 'd8oRWRHwW4e', 'CLVcVr5uCcXbrMm'].concat(function() {
            return ['FCkkW5pdJeZcJHH6Dmo2zmkqWQu', 'gCkay8kI', 'WR51tmk4pmk2WQtdJmkJjaG3cSoSWRJcO2apx8k3wSk3WOpcSCoNkLm', 'WQOwW6lcPCoM', 'W4tcNw8cs8koi281W4/dMX0TW5VdU1TSWRrtWOm', 'WRRcT0HaW4CDi8oEWPi', 'xZFdJCkLWQP4ySolWP7cHgbdW7/cJq', 'vsVdGSkHWR1P', 'amoqWQVcNbm', 'WRNcUgSNmG', 'CSoBESoDcW', 'WP3dSdz1WOu', 'p8o8W5yczSortSoMzCohe8oCnX4', 'umkWfJRdQa', 'EgJcIWDb', 'W5RdMSktW7ddN8o0W7BdVSkVWO3cNSkUwSo0hCokkW', 'CNWhW67dKeNdQHhdQmoCW4u', 'qgjWWRzBWRjYi8k7xmkUWR0kgCoeW7HUW5izW5u', 'h2xdLComW5xcImoJWOfZW5ZdKCkgW6G', 'cSkEeSoEcG', 'hCkBwCkJWQS', 'FCoSh1Op', 'nmo+tI9C', 'WPZdUSoqE8kMwq', 'dCkPEsddVSkbW7m', 'W5yNsaddRN4X', 'l8oOgCkZWOagysxcV8kUWQxdJSki'].concat(function() {
              return ['ASkFgSk+AmkomYtdSI0wWO3dSX8', 'wCkKFCoa', 'j1JcOYa', 'W5NcUWhdLviPWQNdKSob', 'WQddISkDW5FcJW', 'WRTji8obW7tdU2RcV2bcwCoE', 'W65wWQXV', 'WO3cNw9v', 'DN4iW6hdLdFcJaFdHmoXW7tdGCkk', 'WQxdRSk3', 'c8kXW4u6zSoXWRLbWPBcGNJdQmkcd8kVWRZcNhz1BW', 'W7msWQG6W54CkZFcPGRcQSkXoIiUlupdLai', 'uCoiefC0bWtcJW', 'iLlcSWRcJetcUSooECkonX/cLCkyzCkveq', 'WQ/dH8oMtG', 'Cb1PtSo6WPi8WQGhW5bpDa', 'kCo9u8orvCoCW6WRWRhcVIhdMspdLCoOWPJcU0VdGa', 'pCoSWOZcNdu', 'EIddICkOWOS', 'qvCHetpdOSo3ufrX', 'W6yPWO3dRZ7dNhpcHxeBW6G7W5K', 'WQShW67cK1iFWOD7iSogW4WHW4v2va'];
            }());
          }());
        }());
      }());
    }());
  }();
  ref25 = function() {
    return ref138;
  };
  return ref25();
};
async function switchAccount(ref139) {
  const ref140 = ref1,
    ref141 = {
      'UZIiJ': function(ref142, ref143, ref144, ref145) {
        return ref142(ref143, ref144, ref145);
      },
      'BFJKe': "ù¸I¬",
      'mnjoz': "ð^äQ¦í(Q½º\u000fú¸"
    };
  return ref141["ø¦±ßæ"](request, ref141["¦\b¾A¾\r"], ref141["\b8ÉU¾[S@Pg00ù§"], {
    'key': ref139
  });
}
async function getProxyConfig() {
  const ref146 = ref1,
    ref147 = {
      'tGYeq': function(ref148, ref149, ref150) {
        return ref148(ref149, ref150);
      },
      'gOUCa': '/api/proxy-config',
      'qAfDy': "0Iùî¦\u0017x$Ùó-"
    };
  return ref147["èÊ×"](request, ref147["©\u0016»õM"], ref147["?áÃ®"]);
}
async function updateProxyConfig(ref151, ref152) {
  const ref153 = ref1,
    ref154 = {
      'yDQrL': function(ref155, ref156, ref157, ref158) {
        return ref155(ref156, ref157, ref158);
      }
    };
  return ref154["æÈô)ÎC?"](request, "\u0006©K£.¯¦qþ\u0019|\u000f¸U\u000f.\u0017", "Oª\u001a*¨", {
    'is_enabled': ref151,
    'proxy_url': ref152
  });
}
async function getSeamlessStatus() {
  const ref159 = ref1,
    ref160 = {
      'FIIzk': function(ref161, ref162) {
        return ref161(ref162);
      }
    };
  return ref160["*E\u0010$2¢½9Vf]¬ÀÍô\u000e:Ú"](request, "c\u0005Õ\fsu*ª¨ã­ë");
}
async function getUserSwitchStatus(ref163) {
  const ref164 = ref1,
    ref165 = {
      'MGwRv': function(ref166, ref167) {
        return ref166(ref167);
      }
    };
  return ref165["¿û~V"](request, "yDQrL" + ref165['MGwRv'](encodeURIComponent, ref163));
}
async function getSeamlessConfig() {
  const ref168 = ref1,
    ref169 = {
      'DfQJY': function(ref170, ref171) {
        return ref170(ref171);
      },
      'WtWjp': '/api/seamless/config'
    };
  return ref169["b\f\u0015ÀæP/"](request, ref169["ùÍ.©D(ÜåþØt ýa÷1U¤"]);
}
async function updateSeamlessConfig(ref172) {
  const ref173 = ref1,
    ref174 = {
      'eVhRM': function(ref175, ref176, ref177, ref178) {
        return ref175(ref176, ref177, ref178);
      },
      'ksxVc': "MzÐn",
      'LROFh': "p«u\u0005!"
    };
  return ref174["Ò¾E\u001bZÙ"](request, ref174["ÑWÚ^"], ref174[">Ýc%"], ref172);
}
async function injectSeamless(ref179, ref180) {
  const ref181 = ref1,
    ref182 = {
      'ozfwi': function(ref183, ref184, ref185, ref186) {
        return ref183(ref184, ref185, ref186);
      },
      'qQGdF': "Äà]*wüÅ@pGÐÊ",
      'edilS': "Àu&:àÝ"
    };
  return ref182["\u001d}Á{§"](request, ref182["®óÙ\u0015"], ref182['edilS'], {
    'api_url': ref179,
    'user_key': ref180
  });
}
async function restoreSeamless() {
  const ref187 = ref1,
    ref188 = {
      'baHAv': function(ref189, ref190, ref191) {
        return ref189(ref190, ref191);
      },
      'sndsx': '/api/seamless/restore',
      'ueshn': "4îÐ\u0015bM\u0002ÂØØ¹K÷¤\u0013Bj¤O+VDl"
    };
  return ref188['baHAv'](request, ref188['sndsx'], ref188["W»_3ë*O~x2ÆÇ¶ \u0017ÂÌ"]);
}
async function getSeamlessAccounts() {
  const ref192 = ref1,
    ref193 = {
      'LxhXL': function(ref194, ref195) {
        return ref194(ref195);
      },
      'MbXwB': '/api/seamless/accounts'
    };
  return ref193["Óö×úí"](request, ref193['MbXwB']);
}
async function syncSeamlessAccounts(ref196) {
  const ref197 = ref1;
  return request("G3tÑý»ð", "DfIÖ$¸", {
    'accounts': ref196
  });
}

function ref2(ref198, ref199) {
  const ref200 = ref25();
  return ref2 = function(ref201, ref202) {
    ref201 = ref201 - 0x12e;
    let ref203 = ref200[ref201];
    if (ref2['VKdPFb'] === undefined) {
      var ref204 = function(ref205) {
        const ref206 = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';
        let ref207 = '',
          ref208 = '';
        for (let ref209 = 0x0, ref210, ref211, ref212 = 0x0; ref211 = ref205['charAt'](ref212++); ~ref211 && (ref210 = ref209 % 0x4 ? ref210 * 0x40 + ref211 : ref211, ref209++ % 0x4) ? ref207 += String['fromCharCode'](0xff & ref210 >> (-0x2 * ref209 & 0x6)) : 0x0) {
          ref211 = ref206['indexOf'](ref211);
        }
        for (let ref213 = 0x0, ref214 = ref207['length']; ref213 < ref214; ref213++) {
          ref208 += '%' + ('00' + ref207['charCodeAt'](ref213)['toString'](0x10))['slice'](-0x2);
        }
        return decodeURIComponent(ref208);
      };
      const ref215 = function(ref216, ref217) {
        let ref218 = [],
          ref219 = 0x0,
          ref220,
          ref221 = '';
        ref216 = ref204(ref216);
        let ref222;
        for (ref222 = 0x0; ref222 < 0x100; ref222++) {
          ref218[ref222] = ref222;
        }
        for (ref222 = 0x0; ref222 < 0x100; ref222++) {
          ref219 = (ref219 + ref218[ref222] + ref217['charCodeAt'](ref222 % ref217['length'])) % 0x100, ref220 = ref218[ref222], ref218[ref222] = ref218[ref219], ref218[ref219] = ref220;
        }
        ref222 = 0x0, ref219 = 0x0;
        for (let ref223 = 0x0; ref223 < ref216['length']; ref223++) {
          ref222 = (ref222 + 0x1) % 0x100, ref219 = (ref219 + ref218[ref222]) % 0x100, ref220 = ref218[ref222], ref218[ref222] = ref218[ref219], ref218[ref219] = ref220, ref221 += String['fromCharCode'](ref216['charCodeAt'](ref223) ^ ref218[(ref218[ref222] + ref218[ref219]) % 0x100]);
        }
        return ref221;
      };
      ref2['HlOQbT'] = ref215, ref198 = arguments, ref2['VKdPFb'] = !![];
    }
    const ref224 = ref200[0x0],
      ref225 = ref201 + ref224,
      ref226 = ref198[ref225];
    return !ref226 ? (ref2['RnJDPN'] === undefined && (ref2['RnJDPN'] = !![]), ref203 = ref2['HlOQbT'](ref203, ref202), ref198[ref225] = ref203) : ref203 = ref226, ref203;
  }, ref2(ref198, ref199);
}
async function getSeamlessToken(ref227) {
  const ref228 = ref1,
    ref229 = {
      'tWyAu': function(ref230, ref231) {
        return ref230(ref231);
      }
    };
  return request("\u001fÍ\u0013 " + ref229["\u000eÔ\u0002Ñî¶|Õ@$­"](encodeURIComponent, ref227));
}
async function switchSeamlessToken(ref232) {
  const ref233 = ref1,
    ref234 = {
      'TTiUq': function(ref235, ref236, ref237, ref238) {
        return ref235(ref236, ref237, ref238);
      },
      'zZNHr': "\u0014$#W",
      'IRCBl': "°ÇIÔ"
    };
  return ref234["`2c'È§Þúl9\u0018[Ù/ÔÏ\u0010H"](request, ref234['zZNHr'], "7ÎýP\u00056", {
    'mode': ref234["l\\û£"],
    'userKey': ref232
  });
}
async function getLatestVersion() {
  const ref239 = ref1,
    ref240 = {
      'GvtLu': "ô²ô\u0002u¯\r³®"
    };
  return request(ref240["Èo­³Àr%½M"]);
}
