diff --git a/dist/engine.bundle.js b/dist/engine.bundle.js
index 9f7ab59a5..ab8a1d320 100644
--- a/dist/engine.bundle.js
+++ b/dist/engine.bundle.js
@@ -169,11 +169,11 @@
/* harmony import */ var _BitNodeMultipliers__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_BitNodeMultipliers__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _CodingContracts__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./CodingContracts */ 42);
/* harmony import */ var _CodingContracts__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_CodingContracts__WEBPACK_IMPORTED_MODULE_2__);
-/* harmony import */ var _Company_Company__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Company/Company */ 73);
+/* harmony import */ var _Company_Company__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Company/Company */ 74);
/* harmony import */ var _Company_Company__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_Company_Company__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _Company_Companies__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Company/Companies */ 18);
/* harmony import */ var _Company_Companies__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_Company_Companies__WEBPACK_IMPORTED_MODULE_4__);
-/* harmony import */ var _Company_GetNextCompanyPosition__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Company/GetNextCompanyPosition */ 100);
+/* harmony import */ var _Company_GetNextCompanyPosition__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Company/GetNextCompanyPosition */ 101);
/* harmony import */ var _Company_GetNextCompanyPosition__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_Company_GetNextCompanyPosition__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _Company_GetJobRequirementText__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Company/GetJobRequirementText */ 93);
/* harmony import */ var _Company_GetJobRequirementText__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_Company_GetJobRequirementText__WEBPACK_IMPORTED_MODULE_6__);
@@ -184,7 +184,8 @@
/* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Constants */ 1);
/* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_Constants__WEBPACK_IMPORTED_MODULE_9__);
/* harmony import */ var _Corporation_Corporation__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./Corporation/Corporation */ 60);
-/* harmony import */ var _CreateProgram__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./CreateProgram */ 24);
+/* harmony import */ var _Programs_Programs__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./Programs/Programs */ 24);
+/* harmony import */ var _Programs_Programs__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_Programs_Programs__WEBPACK_IMPORTED_MODULE_11__);
/* harmony import */ var _Crimes__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./Crimes */ 38);
/* harmony import */ var _engine__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./engine */ 8);
/* harmony import */ var _Faction_Faction__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./Faction/Faction */ 56);
@@ -431,7 +432,7 @@ PlayerObject.prototype.init = function() {
this.currentServer = t_homeComp.ip;
Object(_Server__WEBPACK_IMPORTED_MODULE_20__[/* AddToAllServers */ "a"])(t_homeComp);
- this.getHomeComputer().programs.push(_CreateProgram__WEBPACK_IMPORTED_MODULE_11__[/* Programs */ "a"].NukeProgram.name);
+ this.getHomeComputer().programs.push(_Programs_Programs__WEBPACK_IMPORTED_MODULE_11__["Programs"].NukeProgram.name);
}
PlayerObject.prototype.prestigeAugmentation = function() {
@@ -3306,7 +3307,7 @@ exports.createElement = createElement;
!*** ./utils/StringHelperFunctions.ts ***!
\****************************************/
/*! no static exports found */
-/*! exports used: containsAllStrings, convertTimeMsToTimeElapsedString, formatNumber, generateRandomString, isString, longestCommonStart, replaceAt */
+/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -3426,20 +3427,20 @@ exports.generateRandomString = generateRandomString;
Object.defineProperty(exports, "__esModule", { value: true });
const numeral = __webpack_require__(/*! numeral */ 80);
-__webpack_require__(/*! numeral/locales/bg */ 279);
-__webpack_require__(/*! numeral/locales/cs */ 278);
-__webpack_require__(/*! numeral/locales/da-dk */ 277);
-__webpack_require__(/*! numeral/locales/de */ 276);
-__webpack_require__(/*! numeral/locales/en-au */ 275);
-__webpack_require__(/*! numeral/locales/en-gb */ 274);
-__webpack_require__(/*! numeral/locales/es */ 273);
-__webpack_require__(/*! numeral/locales/fr */ 272);
-__webpack_require__(/*! numeral/locales/hu */ 271);
-__webpack_require__(/*! numeral/locales/it */ 270);
-__webpack_require__(/*! numeral/locales/lv */ 269);
-__webpack_require__(/*! numeral/locales/no */ 268);
-__webpack_require__(/*! numeral/locales/pl */ 267);
-__webpack_require__(/*! numeral/locales/ru */ 266);
+__webpack_require__(/*! numeral/locales/bg */ 284);
+__webpack_require__(/*! numeral/locales/cs */ 283);
+__webpack_require__(/*! numeral/locales/da-dk */ 282);
+__webpack_require__(/*! numeral/locales/de */ 281);
+__webpack_require__(/*! numeral/locales/en-au */ 280);
+__webpack_require__(/*! numeral/locales/en-gb */ 279);
+__webpack_require__(/*! numeral/locales/es */ 278);
+__webpack_require__(/*! numeral/locales/fr */ 277);
+__webpack_require__(/*! numeral/locales/hu */ 276);
+__webpack_require__(/*! numeral/locales/it */ 275);
+__webpack_require__(/*! numeral/locales/lv */ 274);
+__webpack_require__(/*! numeral/locales/no */ 273);
+__webpack_require__(/*! numeral/locales/pl */ 272);
+__webpack_require__(/*! numeral/locales/ru */ 271);
/* eslint-disable class-methods-use-this */
class NumeralFormatter {
constructor() {
@@ -3583,7 +3584,7 @@ exports.Locations = {
/* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Constants */ 1);
/* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_Constants__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Player */ 0);
-/* harmony import */ var _NetscriptEnvironment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./NetscriptEnvironment */ 115);
+/* harmony import */ var _NetscriptEnvironment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./NetscriptEnvironment */ 116);
/* harmony import */ var _NetscriptWorker__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./NetscriptWorker */ 25);
/* harmony import */ var _Server__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Server */ 11);
/* harmony import */ var _Settings__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Settings */ 19);
@@ -3611,7 +3612,7 @@ exports.Locations = {
-var Promise = __webpack_require__(/*! bluebird */ 251);
+var Promise = __webpack_require__(/*! bluebird */ 256);
Promise.config({
warnings: false,
@@ -4587,20 +4588,20 @@ __webpack_require__.r(__webpack_exports__);
/* harmony import */ var _utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils/uiHelpers/createElement */ 2);
/* harmony import */ var _utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _utils_helpers_exceptionAlert__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils/helpers/exceptionAlert */ 44);
-/* harmony import */ var _utils_uiHelpers_removeLoadingScreen__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../utils/uiHelpers/removeLoadingScreen */ 120);
+/* harmony import */ var _utils_uiHelpers_removeLoadingScreen__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../utils/uiHelpers/removeLoadingScreen */ 122);
/* harmony import */ var _utils_uiHelpers_removeLoadingScreen__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_removeLoadingScreen__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./ui/numeralFormat */ 4);
/* harmony import */ var _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_8__);
/* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../utils/StringHelperFunctions */ 3);
/* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_9__);
-/* harmony import */ var _utils_LogBox__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../utils/LogBox */ 78);
+/* harmony import */ var _utils_LogBox__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../utils/LogBox */ 79);
/* harmony import */ var _ActiveScriptsUI__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./ActiveScriptsUI */ 68);
/* harmony import */ var _Augmentations__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./Augmentations */ 21);
/* harmony import */ var _BitNode__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./BitNode */ 59);
/* harmony import */ var _Bladeburner__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./Bladeburner */ 31);
-/* harmony import */ var _CharacterOverview__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./CharacterOverview */ 129);
-/* harmony import */ var _CinematicText__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./CinematicText */ 99);
-/* harmony import */ var _CodingContractGenerator__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./CodingContractGenerator */ 98);
+/* harmony import */ var _CharacterOverview__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./CharacterOverview */ 131);
+/* harmony import */ var _CinematicText__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./CinematicText */ 100);
+/* harmony import */ var _CodingContractGenerator__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./CodingContractGenerator */ 99);
/* harmony import */ var _Company_CompanyPositions__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./Company/CompanyPositions */ 28);
/* harmony import */ var _Company_CompanyPositions__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(_Company_CompanyPositions__WEBPACK_IMPORTED_MODULE_18__);
/* harmony import */ var _Company_Companies__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./Company/Companies */ 18);
@@ -4608,73 +4609,78 @@ __webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Corporation_Corporation__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./Corporation/Corporation */ 60);
/* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./Constants */ 1);
/* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/__webpack_require__.n(_Constants__WEBPACK_IMPORTED_MODULE_21__);
-/* harmony import */ var _CreateProgram__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./CreateProgram */ 24);
-/* harmony import */ var _DevMenu__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./DevMenu */ 117);
-/* harmony import */ var _Faction_Factions__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./Faction/Factions */ 14);
-/* harmony import */ var _Faction_Factions__WEBPACK_IMPORTED_MODULE_24___default = /*#__PURE__*/__webpack_require__.n(_Faction_Factions__WEBPACK_IMPORTED_MODULE_24__);
-/* harmony import */ var _Faction_FactionHelpers__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./Faction/FactionHelpers */ 46);
-/* harmony import */ var _Fconf__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./Fconf */ 47);
-/* harmony import */ var _Location__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./Location */ 91);
-/* harmony import */ var _Locations__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./Locations */ 5);
-/* harmony import */ var _Locations__WEBPACK_IMPORTED_MODULE_28___default = /*#__PURE__*/__webpack_require__.n(_Locations__WEBPACK_IMPORTED_MODULE_28__);
-/* harmony import */ var _HacknetNode__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./HacknetNode */ 67);
-/* harmony import */ var _InteractiveTutorial__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./InteractiveTutorial */ 34);
-/* harmony import */ var _Literature__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./Literature */ 82);
-/* harmony import */ var _Message__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./Message */ 41);
-/* harmony import */ var _Missions__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./Missions */ 55);
-/* harmony import */ var _NetscriptFunctions__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./NetscriptFunctions */ 43);
-/* harmony import */ var _NetscriptWorker__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./NetscriptWorker */ 25);
-/* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./Player */ 0);
-/* harmony import */ var _Prestige__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./Prestige */ 86);
-/* harmony import */ var _RedPill__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./RedPill */ 58);
-/* harmony import */ var _SaveObject__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./SaveObject */ 74);
-/* harmony import */ var _Script__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./Script */ 30);
-/* harmony import */ var _Server__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./Server */ 11);
-/* harmony import */ var _Settings__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./Settings */ 19);
-/* harmony import */ var _Settings__WEBPACK_IMPORTED_MODULE_42___default = /*#__PURE__*/__webpack_require__.n(_Settings__WEBPACK_IMPORTED_MODULE_42__);
-/* harmony import */ var _ui_setSettingsLabels__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./ui/setSettingsLabels */ 128);
-/* harmony import */ var _SourceFile__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ./SourceFile */ 70);
-/* harmony import */ var _SpecialServerIps__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ./SpecialServerIps */ 32);
-/* harmony import */ var _StockMarket__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ./StockMarket */ 22);
-/* harmony import */ var _Terminal__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ./Terminal */ 51);
-/* harmony import */ var _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ../utils/helpers/keyCodes */ 33);
-/* harmony import */ var _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_48___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_48__);
-/* harmony import */ var _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ./ui/navigationTracking */ 12);
-/* harmony import */ var _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_49___default = /*#__PURE__*/__webpack_require__.n(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_49__);
-/* harmony import */ var normalize_css__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! normalize.css */ 214);
-/* harmony import */ var normalize_css__WEBPACK_IMPORTED_MODULE_50___default = /*#__PURE__*/__webpack_require__.n(normalize_css__WEBPACK_IMPORTED_MODULE_50__);
-/* harmony import */ var _css_styles_scss__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! ../css/styles.scss */ 184);
-/* harmony import */ var _css_styles_scss__WEBPACK_IMPORTED_MODULE_51___default = /*#__PURE__*/__webpack_require__.n(_css_styles_scss__WEBPACK_IMPORTED_MODULE_51__);
-/* harmony import */ var _css_tooltips_scss__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! ../css/tooltips.scss */ 182);
-/* harmony import */ var _css_tooltips_scss__WEBPACK_IMPORTED_MODULE_52___default = /*#__PURE__*/__webpack_require__.n(_css_tooltips_scss__WEBPACK_IMPORTED_MODULE_52__);
-/* harmony import */ var _css_buttons_scss__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! ../css/buttons.scss */ 180);
-/* harmony import */ var _css_buttons_scss__WEBPACK_IMPORTED_MODULE_53___default = /*#__PURE__*/__webpack_require__.n(_css_buttons_scss__WEBPACK_IMPORTED_MODULE_53__);
-/* harmony import */ var _css_mainmenu_scss__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(/*! ../css/mainmenu.scss */ 178);
-/* harmony import */ var _css_mainmenu_scss__WEBPACK_IMPORTED_MODULE_54___default = /*#__PURE__*/__webpack_require__.n(_css_mainmenu_scss__WEBPACK_IMPORTED_MODULE_54__);
-/* harmony import */ var _css_characteroverview_scss__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(/*! ../css/characteroverview.scss */ 176);
-/* harmony import */ var _css_characteroverview_scss__WEBPACK_IMPORTED_MODULE_55___default = /*#__PURE__*/__webpack_require__.n(_css_characteroverview_scss__WEBPACK_IMPORTED_MODULE_55__);
-/* harmony import */ var _css_terminal_scss__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(/*! ../css/terminal.scss */ 174);
-/* harmony import */ var _css_terminal_scss__WEBPACK_IMPORTED_MODULE_56___default = /*#__PURE__*/__webpack_require__.n(_css_terminal_scss__WEBPACK_IMPORTED_MODULE_56__);
-/* harmony import */ var _css_menupages_scss__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(/*! ../css/menupages.scss */ 172);
-/* harmony import */ var _css_menupages_scss__WEBPACK_IMPORTED_MODULE_57___default = /*#__PURE__*/__webpack_require__.n(_css_menupages_scss__WEBPACK_IMPORTED_MODULE_57__);
-/* harmony import */ var _css_workinprogress_scss__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(/*! ../css/workinprogress.scss */ 170);
-/* harmony import */ var _css_workinprogress_scss__WEBPACK_IMPORTED_MODULE_58___default = /*#__PURE__*/__webpack_require__.n(_css_workinprogress_scss__WEBPACK_IMPORTED_MODULE_58__);
-/* harmony import */ var _css_popupboxes_scss__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(/*! ../css/popupboxes.scss */ 168);
-/* harmony import */ var _css_popupboxes_scss__WEBPACK_IMPORTED_MODULE_59___default = /*#__PURE__*/__webpack_require__.n(_css_popupboxes_scss__WEBPACK_IMPORTED_MODULE_59__);
-/* harmony import */ var _css_interactivetutorial_scss__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(/*! ../css/interactivetutorial.scss */ 166);
-/* harmony import */ var _css_interactivetutorial_scss__WEBPACK_IMPORTED_MODULE_60___default = /*#__PURE__*/__webpack_require__.n(_css_interactivetutorial_scss__WEBPACK_IMPORTED_MODULE_60__);
-/* harmony import */ var _css_loader_scss__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(/*! ../css/loader.scss */ 164);
-/* harmony import */ var _css_loader_scss__WEBPACK_IMPORTED_MODULE_61___default = /*#__PURE__*/__webpack_require__.n(_css_loader_scss__WEBPACK_IMPORTED_MODULE_61__);
-/* harmony import */ var _css_missions_scss__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(/*! ../css/missions.scss */ 162);
-/* harmony import */ var _css_missions_scss__WEBPACK_IMPORTED_MODULE_62___default = /*#__PURE__*/__webpack_require__.n(_css_missions_scss__WEBPACK_IMPORTED_MODULE_62__);
-/* harmony import */ var _css_companymanagement_scss__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(/*! ../css/companymanagement.scss */ 160);
-/* harmony import */ var _css_companymanagement_scss__WEBPACK_IMPORTED_MODULE_63___default = /*#__PURE__*/__webpack_require__.n(_css_companymanagement_scss__WEBPACK_IMPORTED_MODULE_63__);
-/* harmony import */ var _css_bladeburner_scss__WEBPACK_IMPORTED_MODULE_64__ = __webpack_require__(/*! ../css/bladeburner.scss */ 158);
-/* harmony import */ var _css_bladeburner_scss__WEBPACK_IMPORTED_MODULE_64___default = /*#__PURE__*/__webpack_require__.n(_css_bladeburner_scss__WEBPACK_IMPORTED_MODULE_64__);
-/* harmony import */ var _css_gang_scss__WEBPACK_IMPORTED_MODULE_65__ = __webpack_require__(/*! ../css/gang.scss */ 156);
-/* harmony import */ var _css_gang_scss__WEBPACK_IMPORTED_MODULE_65___default = /*#__PURE__*/__webpack_require__.n(_css_gang_scss__WEBPACK_IMPORTED_MODULE_65__);
-/* harmony import */ var _css_treant_css__WEBPACK_IMPORTED_MODULE_66__ = __webpack_require__(/*! ../css/treant.css */ 154);
-/* harmony import */ var _css_treant_css__WEBPACK_IMPORTED_MODULE_66___default = /*#__PURE__*/__webpack_require__.n(_css_treant_css__WEBPACK_IMPORTED_MODULE_66__);
+/* harmony import */ var _DevMenu__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./DevMenu */ 118);
+/* harmony import */ var _Faction_Factions__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./Faction/Factions */ 14);
+/* harmony import */ var _Faction_Factions__WEBPACK_IMPORTED_MODULE_23___default = /*#__PURE__*/__webpack_require__.n(_Faction_Factions__WEBPACK_IMPORTED_MODULE_23__);
+/* harmony import */ var _Faction_FactionHelpers__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./Faction/FactionHelpers */ 46);
+/* harmony import */ var _Fconf__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./Fconf */ 47);
+/* harmony import */ var _Location__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./Location */ 91);
+/* harmony import */ var _Locations__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./Locations */ 5);
+/* harmony import */ var _Locations__WEBPACK_IMPORTED_MODULE_27___default = /*#__PURE__*/__webpack_require__.n(_Locations__WEBPACK_IMPORTED_MODULE_27__);
+/* harmony import */ var _HacknetNode__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./HacknetNode */ 67);
+/* harmony import */ var _InteractiveTutorial__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./InteractiveTutorial */ 34);
+/* harmony import */ var _Literature__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./Literature */ 82);
+/* harmony import */ var _Message__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./Message */ 41);
+/* harmony import */ var _Missions__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./Missions */ 55);
+/* harmony import */ var _NetscriptFunctions__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./NetscriptFunctions */ 43);
+/* harmony import */ var _NetscriptWorker__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./NetscriptWorker */ 25);
+/* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./Player */ 0);
+/* harmony import */ var _Prestige__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./Prestige */ 86);
+/* harmony import */ var _Programs_Programs__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./Programs/Programs */ 24);
+/* harmony import */ var _Programs_Programs__WEBPACK_IMPORTED_MODULE_37___default = /*#__PURE__*/__webpack_require__.n(_Programs_Programs__WEBPACK_IMPORTED_MODULE_37__);
+/* harmony import */ var _Programs_ProgramHelpers__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./Programs/ProgramHelpers */ 94);
+/* harmony import */ var _RedPill__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./RedPill */ 58);
+/* harmony import */ var _SaveObject__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./SaveObject */ 75);
+/* harmony import */ var _Script__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./Script */ 30);
+/* harmony import */ var _Server__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./Server */ 11);
+/* harmony import */ var _Settings__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./Settings */ 19);
+/* harmony import */ var _Settings__WEBPACK_IMPORTED_MODULE_43___default = /*#__PURE__*/__webpack_require__.n(_Settings__WEBPACK_IMPORTED_MODULE_43__);
+/* harmony import */ var _ui_setSettingsLabels__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ./ui/setSettingsLabels */ 130);
+/* harmony import */ var _SourceFile__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ./SourceFile */ 70);
+/* harmony import */ var _SpecialServerIps__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ./SpecialServerIps */ 32);
+/* harmony import */ var _StockMarket__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ./StockMarket */ 22);
+/* harmony import */ var _Terminal__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ./Terminal */ 51);
+/* harmony import */ var _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ../utils/helpers/keyCodes */ 33);
+/* harmony import */ var _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_49___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_49__);
+/* harmony import */ var _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! ./ui/navigationTracking */ 12);
+/* harmony import */ var _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_50___default = /*#__PURE__*/__webpack_require__.n(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_50__);
+/* harmony import */ var normalize_css__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! normalize.css */ 219);
+/* harmony import */ var normalize_css__WEBPACK_IMPORTED_MODULE_51___default = /*#__PURE__*/__webpack_require__.n(normalize_css__WEBPACK_IMPORTED_MODULE_51__);
+/* harmony import */ var _css_styles_scss__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! ../css/styles.scss */ 186);
+/* harmony import */ var _css_styles_scss__WEBPACK_IMPORTED_MODULE_52___default = /*#__PURE__*/__webpack_require__.n(_css_styles_scss__WEBPACK_IMPORTED_MODULE_52__);
+/* harmony import */ var _css_tooltips_scss__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! ../css/tooltips.scss */ 184);
+/* harmony import */ var _css_tooltips_scss__WEBPACK_IMPORTED_MODULE_53___default = /*#__PURE__*/__webpack_require__.n(_css_tooltips_scss__WEBPACK_IMPORTED_MODULE_53__);
+/* harmony import */ var _css_buttons_scss__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(/*! ../css/buttons.scss */ 182);
+/* harmony import */ var _css_buttons_scss__WEBPACK_IMPORTED_MODULE_54___default = /*#__PURE__*/__webpack_require__.n(_css_buttons_scss__WEBPACK_IMPORTED_MODULE_54__);
+/* harmony import */ var _css_mainmenu_scss__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(/*! ../css/mainmenu.scss */ 180);
+/* harmony import */ var _css_mainmenu_scss__WEBPACK_IMPORTED_MODULE_55___default = /*#__PURE__*/__webpack_require__.n(_css_mainmenu_scss__WEBPACK_IMPORTED_MODULE_55__);
+/* harmony import */ var _css_characteroverview_scss__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(/*! ../css/characteroverview.scss */ 178);
+/* harmony import */ var _css_characteroverview_scss__WEBPACK_IMPORTED_MODULE_56___default = /*#__PURE__*/__webpack_require__.n(_css_characteroverview_scss__WEBPACK_IMPORTED_MODULE_56__);
+/* harmony import */ var _css_terminal_scss__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(/*! ../css/terminal.scss */ 176);
+/* harmony import */ var _css_terminal_scss__WEBPACK_IMPORTED_MODULE_57___default = /*#__PURE__*/__webpack_require__.n(_css_terminal_scss__WEBPACK_IMPORTED_MODULE_57__);
+/* harmony import */ var _css_menupages_scss__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(/*! ../css/menupages.scss */ 174);
+/* harmony import */ var _css_menupages_scss__WEBPACK_IMPORTED_MODULE_58___default = /*#__PURE__*/__webpack_require__.n(_css_menupages_scss__WEBPACK_IMPORTED_MODULE_58__);
+/* harmony import */ var _css_workinprogress_scss__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(/*! ../css/workinprogress.scss */ 172);
+/* harmony import */ var _css_workinprogress_scss__WEBPACK_IMPORTED_MODULE_59___default = /*#__PURE__*/__webpack_require__.n(_css_workinprogress_scss__WEBPACK_IMPORTED_MODULE_59__);
+/* harmony import */ var _css_popupboxes_scss__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(/*! ../css/popupboxes.scss */ 170);
+/* harmony import */ var _css_popupboxes_scss__WEBPACK_IMPORTED_MODULE_60___default = /*#__PURE__*/__webpack_require__.n(_css_popupboxes_scss__WEBPACK_IMPORTED_MODULE_60__);
+/* harmony import */ var _css_interactivetutorial_scss__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(/*! ../css/interactivetutorial.scss */ 168);
+/* harmony import */ var _css_interactivetutorial_scss__WEBPACK_IMPORTED_MODULE_61___default = /*#__PURE__*/__webpack_require__.n(_css_interactivetutorial_scss__WEBPACK_IMPORTED_MODULE_61__);
+/* harmony import */ var _css_loader_scss__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(/*! ../css/loader.scss */ 166);
+/* harmony import */ var _css_loader_scss__WEBPACK_IMPORTED_MODULE_62___default = /*#__PURE__*/__webpack_require__.n(_css_loader_scss__WEBPACK_IMPORTED_MODULE_62__);
+/* harmony import */ var _css_missions_scss__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(/*! ../css/missions.scss */ 164);
+/* harmony import */ var _css_missions_scss__WEBPACK_IMPORTED_MODULE_63___default = /*#__PURE__*/__webpack_require__.n(_css_missions_scss__WEBPACK_IMPORTED_MODULE_63__);
+/* harmony import */ var _css_companymanagement_scss__WEBPACK_IMPORTED_MODULE_64__ = __webpack_require__(/*! ../css/companymanagement.scss */ 162);
+/* harmony import */ var _css_companymanagement_scss__WEBPACK_IMPORTED_MODULE_64___default = /*#__PURE__*/__webpack_require__.n(_css_companymanagement_scss__WEBPACK_IMPORTED_MODULE_64__);
+/* harmony import */ var _css_bladeburner_scss__WEBPACK_IMPORTED_MODULE_65__ = __webpack_require__(/*! ../css/bladeburner.scss */ 160);
+/* harmony import */ var _css_bladeburner_scss__WEBPACK_IMPORTED_MODULE_65___default = /*#__PURE__*/__webpack_require__.n(_css_bladeburner_scss__WEBPACK_IMPORTED_MODULE_65__);
+/* harmony import */ var _css_gang_scss__WEBPACK_IMPORTED_MODULE_66__ = __webpack_require__(/*! ../css/gang.scss */ 158);
+/* harmony import */ var _css_gang_scss__WEBPACK_IMPORTED_MODULE_66___default = /*#__PURE__*/__webpack_require__.n(_css_gang_scss__WEBPACK_IMPORTED_MODULE_66__);
+/* harmony import */ var _css_treant_css__WEBPACK_IMPORTED_MODULE_67__ = __webpack_require__(/*! ../css/treant.css */ 156);
+/* harmony import */ var _css_treant_css__WEBPACK_IMPORTED_MODULE_67___default = /*#__PURE__*/__webpack_require__.n(_css_treant_css__WEBPACK_IMPORTED_MODULE_67__);
+
+
+
@@ -4764,52 +4770,52 @@ __webpack_require__.r(__webpack_exports__);
* Alt-o - Options
*/
$(document).keydown(function(e) {
- if (_Settings__WEBPACK_IMPORTED_MODULE_42__["Settings"].DisableHotkeys === true) {return;}
- if (!_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].isWorking && !_RedPill__WEBPACK_IMPORTED_MODULE_38__[/* redPillFlag */ "b"] && !_Missions__WEBPACK_IMPORTED_MODULE_33__[/* inMission */ "c"] && !_CinematicText__WEBPACK_IMPORTED_MODULE_16__[/* cinematicTextFlag */ "a"]) {
+ if (_Settings__WEBPACK_IMPORTED_MODULE_43__["Settings"].DisableHotkeys === true) {return;}
+ if (!_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].isWorking && !_RedPill__WEBPACK_IMPORTED_MODULE_39__[/* redPillFlag */ "b"] && !_Missions__WEBPACK_IMPORTED_MODULE_32__[/* inMission */ "c"] && !_CinematicText__WEBPACK_IMPORTED_MODULE_16__[/* cinematicTextFlag */ "a"]) {
if (e.keyCode == 84 && e.altKey) {
e.preventDefault();
Engine.loadTerminalContent();
- } else if (e.keyCode === _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_48__["KEY"].C && e.altKey) {
+ } else if (e.keyCode === _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_49__["KEY"].C && e.altKey) {
e.preventDefault();
Engine.loadCharacterContent();
- } else if (e.keyCode === _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_48__["KEY"].E && e.altKey) {
+ } else if (e.keyCode === _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_49__["KEY"].E && e.altKey) {
e.preventDefault();
Engine.loadScriptEditorContent();
- } else if (e.keyCode === _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_48__["KEY"].S && e.altKey) {
+ } else if (e.keyCode === _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_49__["KEY"].S && e.altKey) {
e.preventDefault();
Engine.loadActiveScriptsContent();
- } else if (e.keyCode === _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_48__["KEY"].H && e.altKey) {
+ } else if (e.keyCode === _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_49__["KEY"].H && e.altKey) {
e.preventDefault();
Engine.loadHacknetNodesContent();
- } else if (e.keyCode === _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_48__["KEY"].W && e.altKey) {
+ } else if (e.keyCode === _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_49__["KEY"].W && e.altKey) {
e.preventDefault();
Engine.loadWorldContent();
- } else if (e.keyCode === _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_48__["KEY"].J && e.altKey) {
+ } else if (e.keyCode === _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_49__["KEY"].J && e.altKey) {
e.preventDefault();
Engine.loadJobContent();
- } else if (e.keyCode === _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_48__["KEY"].R && e.altKey) {
+ } else if (e.keyCode === _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_49__["KEY"].R && e.altKey) {
e.preventDefault();
Engine.loadTravelContent();
- } else if (e.keyCode === _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_48__["KEY"].P && e.altKey) {
+ } else if (e.keyCode === _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_49__["KEY"].P && e.altKey) {
e.preventDefault();
Engine.loadCreateProgramContent();
- } else if (e.keyCode === _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_48__["KEY"].F && e.altKey) {
+ } else if (e.keyCode === _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_49__["KEY"].F && e.altKey) {
//Overriden by Fconf
- if (_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_49__["routing"].isOn(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_49__["Page"].Terminal) && _Fconf__WEBPACK_IMPORTED_MODULE_26__[/* FconfSettings */ "a"].ENABLE_BASH_HOTKEYS) {
+ if (_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_50__["routing"].isOn(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_50__["Page"].Terminal) && _Fconf__WEBPACK_IMPORTED_MODULE_25__[/* FconfSettings */ "a"].ENABLE_BASH_HOTKEYS) {
return;
}
e.preventDefault();
Engine.loadFactionsContent();
- } else if (e.keyCode === _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_48__["KEY"].A && e.altKey) {
+ } else if (e.keyCode === _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_49__["KEY"].A && e.altKey) {
e.preventDefault();
Engine.loadAugmentationsContent();
- } else if (e.keyCode === _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_48__["KEY"].U && e.altKey) {
+ } else if (e.keyCode === _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_49__["KEY"].U && e.altKey) {
e.preventDefault();
Engine.loadTutorialContent();
}
}
- if (e.keyCode === _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_48__["KEY"].O && e.altKey) {
+ if (e.keyCode === _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_49__["KEY"].O && e.altKey) {
e.preventDefault();
Object(_utils_GameOptions__WEBPACK_IMPORTED_MODULE_1__[/* gameOptionsBoxOpen */ "b"])();
}
@@ -4898,7 +4904,7 @@ const Engine = {
loadTerminalContent: function() {
Engine.hideAllContent();
Engine.Display.terminalContent.style.display = "block";
- _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_49__["routing"].navigateTo(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_49__["Page"].Terminal);
+ _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_50__["routing"].navigateTo(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_50__["Page"].Terminal);
document.getElementById("terminal-menu-link").classList.add("active");
},
@@ -4906,7 +4912,7 @@ const Engine = {
Engine.hideAllContent();
Engine.Display.characterContent.style.display = "block";
Engine.displayCharacterInfo();
- _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_49__["routing"].navigateTo(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_49__["Page"].CharacterInfo);
+ _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_50__["routing"].navigateTo(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_50__["Page"].CharacterInfo);
document.getElementById("stats-menu-link").classList.add("active");
},
@@ -4919,8 +4925,8 @@ const Engine = {
editor.setValue(code);
}
editor.focus();
- Object(_Script__WEBPACK_IMPORTED_MODULE_40__[/* updateScriptEditorContent */ "h"])();
- _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_49__["routing"].navigateTo(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_49__["Page"].ScriptEditor);
+ Object(_Script__WEBPACK_IMPORTED_MODULE_41__[/* updateScriptEditorContent */ "h"])();
+ _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_50__["routing"].navigateTo(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_50__["Page"].ScriptEditor);
document.getElementById("create-script-menu-link").classList.add("active");
},
@@ -4928,15 +4934,15 @@ const Engine = {
Engine.hideAllContent();
Engine.Display.activeScriptsContent.style.display = "block";
Object(_ActiveScriptsUI__WEBPACK_IMPORTED_MODULE_11__[/* updateActiveScriptsItems */ "c"])();
- _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_49__["routing"].navigateTo(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_49__["Page"].ActiveScripts);
+ _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_50__["routing"].navigateTo(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_50__["Page"].ActiveScripts);
document.getElementById("active-scripts-menu-link").classList.add("active");
},
loadHacknetNodesContent: function() {
Engine.hideAllContent();
Engine.Display.hacknetNodesContent.style.display = "block";
- Object(_HacknetNode__WEBPACK_IMPORTED_MODULE_29__[/* displayHacknetNodesContent */ "b"])();
- _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_49__["routing"].navigateTo(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_49__["Page"].HacknetNodes);
+ Object(_HacknetNode__WEBPACK_IMPORTED_MODULE_28__[/* displayHacknetNodesContent */ "b"])();
+ _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_50__["routing"].navigateTo(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_50__["Page"].HacknetNodes);
document.getElementById("hacknet-nodes-menu-link").classList.add("active");
},
@@ -4944,15 +4950,15 @@ const Engine = {
Engine.hideAllContent();
Engine.Display.worldContent.style.display = "block";
Engine.displayWorldInfo();
- _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_49__["routing"].navigateTo(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_49__["Page"].World);
+ _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_50__["routing"].navigateTo(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_50__["Page"].World);
document.getElementById("city-menu-link").classList.add("active");
},
loadCreateProgramContent: function() {
Engine.hideAllContent();
Engine.Display.createProgramContent.style.display = "block";
- Object(_CreateProgram__WEBPACK_IMPORTED_MODULE_22__[/* displayCreateProgramContent */ "b"])();
- _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_49__["routing"].navigateTo(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_49__["Page"].CreateProgram);
+ Object(_Programs_ProgramHelpers__WEBPACK_IMPORTED_MODULE_38__[/* displayCreateProgramContent */ "a"])();
+ _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_50__["routing"].navigateTo(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_50__["Page"].CreateProgram);
document.getElementById("create-program-menu-link").classList.add("active");
},
@@ -4960,21 +4966,21 @@ const Engine = {
Engine.hideAllContent();
Engine.Display.factionsContent.style.display = "block";
Engine.displayFactionsInfo();
- _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_49__["routing"].navigateTo(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_49__["Page"].Factions);
+ _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_50__["routing"].navigateTo(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_50__["Page"].Factions);
document.getElementById("factions-menu-link").classList.add("active");
},
loadFactionContent: function() {
Engine.hideAllContent();
Engine.Display.factionContent.style.display = "block";
- _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_49__["routing"].navigateTo(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_49__["Page"].Faction);
+ _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_50__["routing"].navigateTo(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_50__["Page"].Faction);
},
loadAugmentationsContent: function() {
Engine.hideAllContent();
Engine.Display.augmentationsContent.style.display = "block";
Object(_Augmentations__WEBPACK_IMPORTED_MODULE_12__[/* displayAugmentationsContent */ "g"])();
- _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_49__["routing"].navigateTo(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_49__["Page"].Augmentations);
+ _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_50__["routing"].navigateTo(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_50__["Page"].Augmentations);
document.getElementById("augmentations-menu-link").classList.add("active");
},
@@ -4982,14 +4988,14 @@ const Engine = {
Engine.hideAllContent();
Engine.Display.tutorialContent.style.display = "block";
Engine.displayTutorialContent();
- _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_49__["routing"].navigateTo(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_49__["Page"].Tutorial);
+ _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_50__["routing"].navigateTo(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_50__["Page"].Tutorial);
document.getElementById("tutorial-menu-link").classList.add("active");
},
loadDevMenuContent: function() {
Engine.hideAllContent();
- Object(_DevMenu__WEBPACK_IMPORTED_MODULE_23__[/* createDevMenu */ "b"])();
- _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_49__["routing"].navigateTo(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_49__["Page"].DevMenu);
+ Object(_DevMenu__WEBPACK_IMPORTED_MODULE_22__[/* createDevMenu */ "b"])();
+ _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_50__["routing"].navigateTo(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_50__["Page"].DevMenu);
document.getElementById("dev-menu-link").classList.add("active");
},
@@ -4997,34 +5003,34 @@ const Engine = {
Engine.hideAllContent();
Engine.Display.locationContent.style.display = "block";
try {
- Object(_Location__WEBPACK_IMPORTED_MODULE_27__[/* displayLocationContent */ "a"])();
+ Object(_Location__WEBPACK_IMPORTED_MODULE_26__[/* displayLocationContent */ "a"])();
} catch(e) {
Object(_utils_helpers_exceptionAlert__WEBPACK_IMPORTED_MODULE_6__[/* exceptionAlert */ "a"])(e);
console.error(e);
}
- _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_49__["routing"].navigateTo(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_49__["Page"].Location);
+ _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_50__["routing"].navigateTo(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_50__["Page"].Location);
},
loadTravelContent: function() {
- switch(_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].city) {
- case _Locations__WEBPACK_IMPORTED_MODULE_28__["Locations"].Aevum:
- _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].location = _Locations__WEBPACK_IMPORTED_MODULE_28__["Locations"].AevumTravelAgency;
+ switch(_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].city) {
+ case _Locations__WEBPACK_IMPORTED_MODULE_27__["Locations"].Aevum:
+ _Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].location = _Locations__WEBPACK_IMPORTED_MODULE_27__["Locations"].AevumTravelAgency;
break;
- case _Locations__WEBPACK_IMPORTED_MODULE_28__["Locations"].Chongqing:
- _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].location = _Locations__WEBPACK_IMPORTED_MODULE_28__["Locations"].ChongqingTravelAgency;
+ case _Locations__WEBPACK_IMPORTED_MODULE_27__["Locations"].Chongqing:
+ _Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].location = _Locations__WEBPACK_IMPORTED_MODULE_27__["Locations"].ChongqingTravelAgency;
break;
- case _Locations__WEBPACK_IMPORTED_MODULE_28__["Locations"].Sector12:
- _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].location = _Locations__WEBPACK_IMPORTED_MODULE_28__["Locations"].Sector12TravelAgency;
+ case _Locations__WEBPACK_IMPORTED_MODULE_27__["Locations"].Sector12:
+ _Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].location = _Locations__WEBPACK_IMPORTED_MODULE_27__["Locations"].Sector12TravelAgency;
break;
- case _Locations__WEBPACK_IMPORTED_MODULE_28__["Locations"].NewTokyo:
- _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].location = _Locations__WEBPACK_IMPORTED_MODULE_28__["Locations"].NewTokyoTravelAgency;
+ case _Locations__WEBPACK_IMPORTED_MODULE_27__["Locations"].NewTokyo:
+ _Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].location = _Locations__WEBPACK_IMPORTED_MODULE_27__["Locations"].NewTokyoTravelAgency;
break;
- case _Locations__WEBPACK_IMPORTED_MODULE_28__["Locations"].Ishima:
- _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].location = _Locations__WEBPACK_IMPORTED_MODULE_28__["Locations"].IshimaTravelAgency;
+ case _Locations__WEBPACK_IMPORTED_MODULE_27__["Locations"].Ishima:
+ _Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].location = _Locations__WEBPACK_IMPORTED_MODULE_27__["Locations"].IshimaTravelAgency;
break;
- case _Locations__WEBPACK_IMPORTED_MODULE_28__["Locations"].Volhaven:
- _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].location = _Locations__WEBPACK_IMPORTED_MODULE_28__["Locations"].VolhavenTravelAgency;
+ case _Locations__WEBPACK_IMPORTED_MODULE_27__["Locations"].Volhaven:
+ _Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].location = _Locations__WEBPACK_IMPORTED_MODULE_27__["Locations"].VolhavenTravelAgency;
break;
default:
Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_0__["dialogBoxCreate"])("ERROR: Invalid city. This is a bug please contact game dev");
@@ -5034,12 +5040,12 @@ const Engine = {
},
loadJobContent: function() {
- if (_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].companyName == "") {
+ if (_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].companyName == "") {
Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_0__["dialogBoxCreate"])("You do not currently have a job! You can visit various companies " +
"in the city and try to find a job.");
return;
}
- _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].location = _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].companyName;
+ _Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].location = _Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].companyName;
Engine.loadLocationContent();
},
@@ -5049,7 +5055,7 @@ const Engine = {
//mainMenu.style.visibility = "hidden";
mainMenu.style.visibility = "hidden";
Engine.Display.workInProgressContent.style.display = "block";
- _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_49__["routing"].navigateTo(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_49__["Page"].WorkInProgress);
+ _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_50__["routing"].navigateTo(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_50__["Page"].WorkInProgress);
},
loadRedPillContent: function() {
@@ -5057,7 +5063,7 @@ const Engine = {
var mainMenu = document.getElementById("mainmenu-container");
mainMenu.style.visibility = "hidden";
Engine.Display.redPillContent.style.display = "block";
- _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_49__["routing"].navigateTo(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_49__["Page"].RedPill);
+ _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_50__["routing"].navigateTo(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_50__["Page"].RedPill);
},
loadCinematicTextContent: function() {
@@ -5065,30 +5071,30 @@ const Engine = {
var mainMenu = document.getElementById("mainmenu-container");
mainMenu.style.visibility = "hidden";
Engine.Display.cinematicTextContent.style.display = "block";
- _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_49__["routing"].navigateTo(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_49__["Page"].CinematicText);
+ _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_50__["routing"].navigateTo(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_50__["Page"].CinematicText);
},
loadInfiltrationContent: function() {
Engine.hideAllContent();
Engine.Display.infiltrationContent.style.display = "block";
- _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_49__["routing"].navigateTo(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_49__["Page"].Infiltration);
+ _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_50__["routing"].navigateTo(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_50__["Page"].Infiltration);
},
loadStockMarketContent: function() {
Engine.hideAllContent();
Engine.Display.stockMarketContent.style.display = "block";
- _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_49__["routing"].navigateTo(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_49__["Page"].StockMarket);
- Object(_StockMarket__WEBPACK_IMPORTED_MODULE_46__[/* displayStockMarketContent */ "g"])();
+ _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_50__["routing"].navigateTo(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_50__["Page"].StockMarket);
+ Object(_StockMarket__WEBPACK_IMPORTED_MODULE_47__[/* displayStockMarketContent */ "g"])();
},
loadGangContent: function() {
Engine.hideAllContent();
- if (document.getElementById("gang-container") || _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].inGang()) {
- _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].gang.displayGangContent(_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"]);
- _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_49__["routing"].navigateTo(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_49__["Page"].Gang);
+ if (document.getElementById("gang-container") || _Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].inGang()) {
+ _Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].gang.displayGangContent(_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"]);
+ _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_50__["routing"].navigateTo(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_50__["Page"].Gang);
} else {
Engine.loadTerminalContent();
- _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_49__["routing"].navigateTo(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_49__["Page"].Terminal);
+ _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_50__["routing"].navigateTo(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_50__["Page"].Terminal);
}
},
@@ -5097,24 +5103,24 @@ const Engine = {
document.getElementById("mainmenu-container").style.visibility = "hidden";
document.getElementById("character-overview-wrapper").style.visibility = "hidden";
Engine.Display.missionContent.style.display = "block";
- _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_49__["routing"].navigateTo(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_49__["Page"].Mission);
+ _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_50__["routing"].navigateTo(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_50__["Page"].Mission);
},
loadCorporationContent: function() {
- if (_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].corporation instanceof _Corporation_Corporation__WEBPACK_IMPORTED_MODULE_20__[/* Corporation */ "a"]) {
+ if (_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].corporation instanceof _Corporation_Corporation__WEBPACK_IMPORTED_MODULE_20__[/* Corporation */ "a"]) {
Engine.hideAllContent();
document.getElementById("character-overview-wrapper").style.visibility = "hidden";
- _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].corporation.createUI();
- _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_49__["routing"].navigateTo(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_49__["Page"].Corporation);
+ _Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].corporation.createUI();
+ _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_50__["routing"].navigateTo(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_50__["Page"].Corporation);
}
},
loadBladeburnerContent: function() {
- if (_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_14__[/* Bladeburner */ "a"]) {
+ if (_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_14__[/* Bladeburner */ "a"]) {
try {
Engine.hideAllContent();
- _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_49__["routing"].navigateTo(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_49__["Page"].Bladeburner);
- _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].bladeburner.createContent();
+ _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_50__["routing"].navigateTo(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_50__["Page"].Bladeburner);
+ _Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].bladeburner.createContent();
} catch(e) {
Object(_utils_helpers_exceptionAlert__WEBPACK_IMPORTED_MODULE_6__[/* exceptionAlert */ "a"])(e);
}
@@ -5146,15 +5152,15 @@ const Engine = {
document.getElementById("gang-container").style.display = "none";
}
- if (_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].inGang()) {
- _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].gang.clearUI();
+ if (_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].inGang()) {
+ _Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].gang.clearUI();
}
- if (_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].corporation instanceof _Corporation_Corporation__WEBPACK_IMPORTED_MODULE_20__[/* Corporation */ "a"]) {
- _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].corporation.clearUI();
+ if (_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].corporation instanceof _Corporation_Corporation__WEBPACK_IMPORTED_MODULE_20__[/* Corporation */ "a"]) {
+ _Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].corporation.clearUI();
}
- if (_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_14__[/* Bladeburner */ "a"]) {
- _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].bladeburner.clearContent();
+ if (_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_14__[/* Bladeburner */ "a"]) {
+ _Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].bladeburner.clearContent();
}
//Location lists
@@ -5185,7 +5191,7 @@ const Engine = {
document.getElementById("gang-menu-link").classList.remove("active");
// Close dev menu
- Object(_DevMenu__WEBPACK_IMPORTED_MODULE_23__[/* closeDevMenu */ "a"])();
+ Object(_DevMenu__WEBPACK_IMPORTED_MODULE_22__[/* closeDevMenu */ "a"])();
},
displayCharacterOverviewInfo: function() {
@@ -5193,7 +5199,7 @@ const Engine = {
const save = document.getElementById("character-overview-save-button");
const flashClass = "flashing-button";
- if(!_Settings__WEBPACK_IMPORTED_MODULE_42__["Settings"].AutosaveInterval) {
+ if(!_Settings__WEBPACK_IMPORTED_MODULE_43__["Settings"].AutosaveInterval) {
save.classList.add(flashClass);
} else {
save.classList.remove(flashClass);
@@ -5205,84 +5211,84 @@ const Engine = {
Object(_utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_3__["removeChildrenFromElement"])(Engine.Display.characterInfo);
var companyPosition = "";
- if (_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].companyPosition !== "") {
- companyPosition = _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].companyPosition;
+ if (_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].companyPosition !== "") {
+ companyPosition = _Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].companyPosition;
}
var intText = "";
- if (_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].intelligence > 0) {
- intText = 'Intelligence: ' + (_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].intelligence).toLocaleString() + ' ';
+ if (_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].intelligence > 0) {
+ intText = 'Intelligence: ' + (_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].intelligence).toLocaleString() + ' ';
}
let bitNodeTimeText = "";
- if(_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].sourceFiles.length > 0) {
- bitNodeTimeText = 'Time played since last Bitnode destroyed: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_9__["convertTimeMsToTimeElapsedString"])(_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].playtimeSinceLastBitnode) + ' ';
+ if(_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].sourceFiles.length > 0) {
+ bitNodeTimeText = 'Time played since last Bitnode destroyed: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_9__["convertTimeMsToTimeElapsedString"])(_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].playtimeSinceLastBitnode) + ' ';
}
Engine.Display.characterInfo.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_5__["createElement"])("pre", {
innerHTML:
'General ' +
- 'Current City: ' + _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].city + ' ' +
- 'Employer: ' + _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].companyName + ' ' +
+ 'Current City: ' + _Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].city + ' ' +
+ 'Employer: ' + _Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].companyName + ' ' +
'Job Title: ' + companyPosition + ' ' +
- 'Money: $' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_9__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].money.toNumber(), 2) + ' ' +
+ 'Money: $' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_9__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].money.toNumber(), 2) + ' ' +
'Stats ' +
- 'Hacking Level: ' + (_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].hacking_skill).toLocaleString() +
- ' (' + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_8__["numeralWrapper"].format(_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].hacking_exp, '(0.000a)') + ' experience) ' +
- 'Strength: ' + (_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].strength).toLocaleString() +
- ' (' + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_8__["numeralWrapper"].format(_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].strength_exp, '(0.000a)') + ' experience) ' +
- 'Defense: ' + (_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].defense).toLocaleString() +
- ' (' + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_8__["numeralWrapper"].format(_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].defense_exp, '(0.000a)') + ' experience) ' +
- 'Dexterity: ' + (_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].dexterity).toLocaleString() +
- ' (' + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_8__["numeralWrapper"].format(_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].dexterity_exp, '(0.000a)') + ' experience) ' +
- 'Agility: ' + (_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].agility).toLocaleString() +
- ' (' + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_8__["numeralWrapper"].format(_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].agility_exp, '(0.000a)') + ' experience) ' +
- 'Charisma: ' + (_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].charisma).toLocaleString() +
- ' (' + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_8__["numeralWrapper"].format(_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].charisma_exp, '(0.000a)') + ' experience) ' +
+ 'Hacking Level: ' + (_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].hacking_skill).toLocaleString() +
+ ' (' + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_8__["numeralWrapper"].format(_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].hacking_exp, '(0.000a)') + ' experience) ' +
+ 'Strength: ' + (_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].strength).toLocaleString() +
+ ' (' + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_8__["numeralWrapper"].format(_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].strength_exp, '(0.000a)') + ' experience) ' +
+ 'Defense: ' + (_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].defense).toLocaleString() +
+ ' (' + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_8__["numeralWrapper"].format(_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].defense_exp, '(0.000a)') + ' experience) ' +
+ 'Dexterity: ' + (_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].dexterity).toLocaleString() +
+ ' (' + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_8__["numeralWrapper"].format(_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].dexterity_exp, '(0.000a)') + ' experience) ' +
+ 'Agility: ' + (_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].agility).toLocaleString() +
+ ' (' + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_8__["numeralWrapper"].format(_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].agility_exp, '(0.000a)') + ' experience) ' +
+ 'Charisma: ' + (_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].charisma).toLocaleString() +
+ ' (' + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_8__["numeralWrapper"].format(_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].charisma_exp, '(0.000a)') + ' experience) ' +
intText + ' ' +
'Multipliers ' +
- 'Hacking Chance multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_9__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].hacking_chance_mult * 100, 2) + '% ' +
- 'Hacking Speed multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_9__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].hacking_speed_mult * 100, 2) + '% ' +
- 'Hacking Money multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_9__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].hacking_money_mult * 100, 2) + '% ' +
- 'Hacking Growth multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_9__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].hacking_grow_mult * 100, 2) + '% ' +
- 'Hacking Level multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_9__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].hacking_mult * 100, 2) + '% ' +
- 'Hacking Experience multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_9__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].hacking_exp_mult * 100, 2) + '% ' +
- 'Strength Level multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_9__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].strength_mult * 100, 2) + '% ' +
- 'Strength Experience multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_9__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].strength_exp_mult * 100, 2) + '% ' +
- 'Defense Level multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_9__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].defense_mult * 100, 2) + '% ' +
- 'Defense Experience multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_9__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].defense_exp_mult * 100, 2) + '% ' +
- 'Dexterity Level multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_9__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].dexterity_mult * 100, 2) + '% ' +
- 'Dexterity Experience multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_9__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].dexterity_exp_mult * 100, 2) + '% ' +
- 'Agility Level multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_9__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].agility_mult * 100, 2) + '% ' +
- 'Agility Experience multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_9__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].agility_exp_mult * 100, 2) + '% ' +
- 'Charisma Level multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_9__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].charisma_mult * 100, 2) + '% ' +
- 'Charisma Experience multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_9__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].charisma_exp_mult * 100, 2) + '% ' +
- 'Hacknet Node production multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_9__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].hacknet_node_money_mult * 100, 2) + '% ' +
- 'Hacknet Node purchase cost multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_9__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].hacknet_node_purchase_cost_mult * 100, 2) + '% ' +
- 'Hacknet Node RAM upgrade cost multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_9__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].hacknet_node_ram_cost_mult * 100, 2) + '% ' +
- 'Hacknet Node Core purchase cost multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_9__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].hacknet_node_core_cost_mult * 100, 2) + '% ' +
- 'Hacknet Node level upgrade cost multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_9__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].hacknet_node_level_cost_mult * 100, 2) + '% ' +
- 'Company reputation gain multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_9__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].company_rep_mult * 100, 2) + '% ' +
- 'Faction reputation gain multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_9__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].faction_rep_mult * 100, 2) + '% ' +
- 'Salary multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_9__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].work_money_mult * 100, 2) + '% ' +
- 'Crime success multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_9__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].crime_success_mult * 100, 2) + '% ' +
- 'Crime money multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_9__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].crime_money_mult * 100, 2) + '% ' +
+ 'Hacking Chance multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_9__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].hacking_chance_mult * 100, 2) + '% ' +
+ 'Hacking Speed multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_9__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].hacking_speed_mult * 100, 2) + '% ' +
+ 'Hacking Money multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_9__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].hacking_money_mult * 100, 2) + '% ' +
+ 'Hacking Growth multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_9__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].hacking_grow_mult * 100, 2) + '% ' +
+ 'Hacking Level multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_9__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].hacking_mult * 100, 2) + '% ' +
+ 'Hacking Experience multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_9__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].hacking_exp_mult * 100, 2) + '% ' +
+ 'Strength Level multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_9__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].strength_mult * 100, 2) + '% ' +
+ 'Strength Experience multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_9__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].strength_exp_mult * 100, 2) + '% ' +
+ 'Defense Level multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_9__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].defense_mult * 100, 2) + '% ' +
+ 'Defense Experience multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_9__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].defense_exp_mult * 100, 2) + '% ' +
+ 'Dexterity Level multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_9__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].dexterity_mult * 100, 2) + '% ' +
+ 'Dexterity Experience multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_9__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].dexterity_exp_mult * 100, 2) + '% ' +
+ 'Agility Level multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_9__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].agility_mult * 100, 2) + '% ' +
+ 'Agility Experience multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_9__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].agility_exp_mult * 100, 2) + '% ' +
+ 'Charisma Level multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_9__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].charisma_mult * 100, 2) + '% ' +
+ 'Charisma Experience multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_9__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].charisma_exp_mult * 100, 2) + '% ' +
+ 'Hacknet Node production multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_9__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].hacknet_node_money_mult * 100, 2) + '% ' +
+ 'Hacknet Node purchase cost multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_9__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].hacknet_node_purchase_cost_mult * 100, 2) + '% ' +
+ 'Hacknet Node RAM upgrade cost multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_9__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].hacknet_node_ram_cost_mult * 100, 2) + '% ' +
+ 'Hacknet Node Core purchase cost multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_9__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].hacknet_node_core_cost_mult * 100, 2) + '% ' +
+ 'Hacknet Node level upgrade cost multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_9__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].hacknet_node_level_cost_mult * 100, 2) + '% ' +
+ 'Company reputation gain multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_9__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].company_rep_mult * 100, 2) + '% ' +
+ 'Faction reputation gain multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_9__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].faction_rep_mult * 100, 2) + '% ' +
+ 'Salary multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_9__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].work_money_mult * 100, 2) + '% ' +
+ 'Crime success multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_9__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].crime_success_mult * 100, 2) + '% ' +
+ 'Crime money multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_9__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].crime_money_mult * 100, 2) + '% ' +
'Misc ' +
- 'Servers owned: ' + _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].purchasedServers.length + ' ' +
- 'Hacknet Nodes owned: ' + _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].hacknetNodes.length + ' ' +
- 'Augmentations installed: ' + _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].augmentations.length + ' ' +
- 'Time played since last Augmentation: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_9__["convertTimeMsToTimeElapsedString"])(_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].playtimeSinceLastAug) + ' ' +
+ 'Servers owned: ' + _Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].purchasedServers.length + ' ' +
+ 'Hacknet Nodes owned: ' + _Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].hacknetNodes.length + ' ' +
+ 'Augmentations installed: ' + _Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].augmentations.length + ' ' +
+ 'Time played since last Augmentation: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_9__["convertTimeMsToTimeElapsedString"])(_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].playtimeSinceLastAug) + ' ' +
bitNodeTimeText +
- 'Time played: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_9__["convertTimeMsToTimeElapsedString"])(_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].totalPlaytime),
+ 'Time played: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_9__["convertTimeMsToTimeElapsedString"])(_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].totalPlaytime),
}));
- if (_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].sourceFiles.length !== 0) {
- var index = "BitNode" + _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].bitNodeN;
+ if (_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].sourceFiles.length !== 0) {
+ var index = "BitNode" + _Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].bitNodeN;
Engine.Display.characterInfo.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_5__["createElement"])("p", {
width:"60%",
innerHTML:
- " Current BitNode: " + _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].bitNodeN + " (" + _BitNode__WEBPACK_IMPORTED_MODULE_13__[/* BitNodes */ "a"][index].name + ") ",
+ " Current BitNode: " + _Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].bitNodeN + " (" + _BitNode__WEBPACK_IMPORTED_MODULE_13__[/* BitNodes */ "a"][index].name + ") ",
}));
Engine.Display.characterInfo.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_5__["createElement"])("p", {
@@ -5308,32 +5314,32 @@ const Engine = {
Engine.ishimaLocationsList.style.display = "none";
Engine.volhavenLocationsList.style.display = "none";
- document.getElementById("world-city-name").innerHTML = _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].city;
+ document.getElementById("world-city-name").innerHTML = _Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].city;
var cityDesc = document.getElementById("world-city-desc"); //TODO
- switch(_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].city) {
- case _Locations__WEBPACK_IMPORTED_MODULE_28__["Locations"].Aevum:
+ switch(_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].city) {
+ case _Locations__WEBPACK_IMPORTED_MODULE_27__["Locations"].Aevum:
Engine.aevumLocationsList.style.display = "inline";
break;
- case _Locations__WEBPACK_IMPORTED_MODULE_28__["Locations"].Chongqing:
+ case _Locations__WEBPACK_IMPORTED_MODULE_27__["Locations"].Chongqing:
Engine.chongqingLocationsList.style.display = "inline";
break;
- case _Locations__WEBPACK_IMPORTED_MODULE_28__["Locations"].Sector12:
+ case _Locations__WEBPACK_IMPORTED_MODULE_27__["Locations"].Sector12:
Engine.sector12LocationsList.style.display = "inline";
//City hall only in BitNode-3/with Source-File 3
- if ((_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].bitNodeN === 3 || _NetscriptFunctions__WEBPACK_IMPORTED_MODULE_34__[/* hasCorporationSF */ "e"]) && _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].bitNodeN !== 8) {
+ if ((_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].bitNodeN === 3 || _NetscriptFunctions__WEBPACK_IMPORTED_MODULE_33__[/* hasCorporationSF */ "e"]) && _Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].bitNodeN !== 8) {
document.getElementById("sector12-cityhall-li").style.display = "block";
} else {
document.getElementById("sector12-cityhall-li").style.display = "none";
}
break;
- case _Locations__WEBPACK_IMPORTED_MODULE_28__["Locations"].NewTokyo:
+ case _Locations__WEBPACK_IMPORTED_MODULE_27__["Locations"].NewTokyo:
Engine.newTokyoLocationsList.style.display = "inline";
break;
- case _Locations__WEBPACK_IMPORTED_MODULE_28__["Locations"].Ishima:
+ case _Locations__WEBPACK_IMPORTED_MODULE_27__["Locations"].Ishima:
Engine.ishimaLocationsList.style.display = "inline";
break;
- case _Locations__WEBPACK_IMPORTED_MODULE_28__["Locations"].Volhaven:
+ case _Locations__WEBPACK_IMPORTED_MODULE_27__["Locations"].Volhaven:
Engine.volhavenLocationsList.style.display = "inline";
break;
default:
@@ -5352,17 +5358,17 @@ const Engine = {
li.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_5__["createElement"])("a", {
innerText:"World Stock Exchange", class:"a-link-button",
clickListener:()=>{
- _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].location = _Locations__WEBPACK_IMPORTED_MODULE_28__["Locations"].WorldStockExchange;
+ _Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].location = _Locations__WEBPACK_IMPORTED_MODULE_27__["Locations"].WorldStockExchange;
Engine.loadStockMarketContent();
return false;
}
}));
genericLocationsList.appendChild(li);
- if (_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].corporation instanceof _Corporation_Corporation__WEBPACK_IMPORTED_MODULE_20__[/* Corporation */ "a"] && document.getElementById("location-corporation-button") == null) {
+ if (_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].corporation instanceof _Corporation_Corporation__WEBPACK_IMPORTED_MODULE_20__[/* Corporation */ "a"] && document.getElementById("location-corporation-button") == null) {
var li = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_5__["createElement"])("li");
li.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_5__["createElement"])("a", {
- innerText:_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].corporation.name, id:"location-corporation-button",
+ innerText:_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].corporation.name, id:"location-corporation-button",
class:"a-link-button",
clickListener:()=>{
Engine.loadCorporationContent();
@@ -5372,7 +5378,7 @@ const Engine = {
genericLocationsList.appendChild(li);
}
- if (_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_14__[/* Bladeburner */ "a"]) {
+ if (_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_14__[/* Bladeburner */ "a"]) {
var li = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_5__["createElement"])("li");
li.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_5__["createElement"])("a", {
innerText:"Bladeburner Headquarters", class:"a-link-button",
@@ -5399,16 +5405,16 @@ const Engine = {
Engine.Display.factionsContent.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_5__["createElement"])("br"));
//Add a button for each faction you are a member of
- for (var i = 0; i < _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].factions.length; ++i) {
+ for (var i = 0; i < _Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].factions.length; ++i) {
(function () {
- var factionName = _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].factions[i];
+ var factionName = _Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].factions[i];
factionsList.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_5__["createElement"])("a", {
class:"a-link-button", innerText:factionName, padding:"4px", margin:"4px",
display:"inline-block",
clickListener:()=>{
Engine.loadFactionContent();
- Object(_Faction_FactionHelpers__WEBPACK_IMPORTED_MODULE_25__[/* displayFactionContent */ "a"])(factionName);
+ Object(_Faction_FactionHelpers__WEBPACK_IMPORTED_MODULE_24__[/* displayFactionContent */ "a"])(factionName);
return false;
}
}));
@@ -5431,9 +5437,9 @@ const Engine = {
var invitationsList = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_5__["createElement"])("ul");
//Add a button to accept for each faction you have invitiations for
- for (var i = 0; i < _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].factionInvitations.length; ++i) {
+ for (var i = 0; i < _Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].factionInvitations.length; ++i) {
(function () {
- var factionName = _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].factionInvitations[i];
+ var factionName = _Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].factionInvitations[i];
var item = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_5__["createElement"])("li", {padding:"6px", margin:"6px"});
item.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_5__["createElement"])("p", {
@@ -5443,10 +5449,10 @@ const Engine = {
innerText:"Accept Faction Invitation",
class:"a-link-button", display:"inline", margin:"4px", padding:"4px",
clickListener:()=>{
- Object(_Faction_FactionHelpers__WEBPACK_IMPORTED_MODULE_25__[/* joinFaction */ "c"])(_Faction_Factions__WEBPACK_IMPORTED_MODULE_24__["Factions"][factionName]);
- for (var i = 0; i < _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].factionInvitations.length; ++i) {
- if (_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].factionInvitations[i] == factionName || _Faction_Factions__WEBPACK_IMPORTED_MODULE_24__["Factions"][_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].factionInvitations[i]].isBanned) {
- _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].factionInvitations.splice(i, 1);
+ Object(_Faction_FactionHelpers__WEBPACK_IMPORTED_MODULE_24__[/* joinFaction */ "c"])(_Faction_Factions__WEBPACK_IMPORTED_MODULE_23__["Factions"][factionName]);
+ for (var i = 0; i < _Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].factionInvitations.length; ++i) {
+ if (_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].factionInvitations[i] == factionName || _Faction_Factions__WEBPACK_IMPORTED_MODULE_23__["Factions"][_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].factionInvitations[i]].isBanned) {
+ _Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].factionInvitations.splice(i, 1);
i--;
}
}
@@ -5509,7 +5515,7 @@ const Engine = {
if (diff > 0) {
//Update the game engine by the calculated number of cycles
Engine._lastUpdate = _thisUpdate - offset;
- _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].lastUpdate = _thisUpdate - offset;
+ _Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].lastUpdate = _thisUpdate - offset;
Engine.updateGame(diff);
}
@@ -5518,65 +5524,65 @@ const Engine = {
updateGame: function(numCycles = 1) {
var time = numCycles * Engine._idleSpeed;
- if (_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].totalPlaytime == null) {_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].totalPlaytime = 0;}
- if (_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].playtimeSinceLastAug == null) {_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].playtimeSinceLastAug = 0;}
- if (_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].playtimeSinceLastBitnode == null) {_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].playtimeSinceLastBitnode = 0;}
- _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].totalPlaytime += time;
- _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].playtimeSinceLastAug += time;
- _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].playtimeSinceLastBitnode += time;
+ if (_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].totalPlaytime == null) {_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].totalPlaytime = 0;}
+ if (_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].playtimeSinceLastAug == null) {_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].playtimeSinceLastAug = 0;}
+ if (_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].playtimeSinceLastBitnode == null) {_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].playtimeSinceLastBitnode = 0;}
+ _Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].totalPlaytime += time;
+ _Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].playtimeSinceLastAug += time;
+ _Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].playtimeSinceLastBitnode += time;
//Start Manual hack
- if (_Terminal__WEBPACK_IMPORTED_MODULE_47__[/* Terminal */ "a"].actionStarted === true) {
- Engine._totalActionTime = _Terminal__WEBPACK_IMPORTED_MODULE_47__[/* Terminal */ "a"].actionTime;
- Engine._actionTimeLeft = _Terminal__WEBPACK_IMPORTED_MODULE_47__[/* Terminal */ "a"].actionTime;
+ if (_Terminal__WEBPACK_IMPORTED_MODULE_48__[/* Terminal */ "a"].actionStarted === true) {
+ Engine._totalActionTime = _Terminal__WEBPACK_IMPORTED_MODULE_48__[/* Terminal */ "a"].actionTime;
+ Engine._actionTimeLeft = _Terminal__WEBPACK_IMPORTED_MODULE_48__[/* Terminal */ "a"].actionTime;
Engine._actionInProgress = true;
Engine._actionProgressBarCount = 1;
Engine._actionProgressStr = "[ ]";
Engine._actionTimeStr = "Time left: ";
- _Terminal__WEBPACK_IMPORTED_MODULE_47__[/* Terminal */ "a"].actionStarted = false;
+ _Terminal__WEBPACK_IMPORTED_MODULE_48__[/* Terminal */ "a"].actionStarted = false;
}
//Working
- if (_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].isWorking) {
- if (_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].workType == _Constants__WEBPACK_IMPORTED_MODULE_21__["CONSTANTS"].WorkTypeFaction) {
- _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].workForFaction(numCycles);
- } else if (_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].workType == _Constants__WEBPACK_IMPORTED_MODULE_21__["CONSTANTS"].WorkTypeCreateProgram) {
- _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].createProgramWork(numCycles);
- } else if (_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].workType == _Constants__WEBPACK_IMPORTED_MODULE_21__["CONSTANTS"].WorkTypeStudyClass) {
- _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].takeClass(numCycles);
- } else if (_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].workType == _Constants__WEBPACK_IMPORTED_MODULE_21__["CONSTANTS"].WorkTypeCrime) {
- _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].commitCrime(numCycles);
- } else if (_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].workType == _Constants__WEBPACK_IMPORTED_MODULE_21__["CONSTANTS"].WorkTypeCompanyPartTime) {
- _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].workPartTime(numCycles);
+ if (_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].isWorking) {
+ if (_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].workType == _Constants__WEBPACK_IMPORTED_MODULE_21__["CONSTANTS"].WorkTypeFaction) {
+ _Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].workForFaction(numCycles);
+ } else if (_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].workType == _Constants__WEBPACK_IMPORTED_MODULE_21__["CONSTANTS"].WorkTypeCreateProgram) {
+ _Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].createProgramWork(numCycles);
+ } else if (_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].workType == _Constants__WEBPACK_IMPORTED_MODULE_21__["CONSTANTS"].WorkTypeStudyClass) {
+ _Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].takeClass(numCycles);
+ } else if (_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].workType == _Constants__WEBPACK_IMPORTED_MODULE_21__["CONSTANTS"].WorkTypeCrime) {
+ _Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].commitCrime(numCycles);
+ } else if (_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].workType == _Constants__WEBPACK_IMPORTED_MODULE_21__["CONSTANTS"].WorkTypeCompanyPartTime) {
+ _Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].workPartTime(numCycles);
} else {
- _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].work(numCycles);
+ _Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].work(numCycles);
}
}
// Update stock prices
- if (_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].hasWseAccount) {
- Object(_StockMarket__WEBPACK_IMPORTED_MODULE_46__[/* processStockPrices */ "m"])(numCycles);
+ if (_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].hasWseAccount) {
+ Object(_StockMarket__WEBPACK_IMPORTED_MODULE_47__[/* processStockPrices */ "m"])(numCycles);
}
//Gang, if applicable
- if (_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].bitNodeN == 2 && _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].inGang()) {
- _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].gang.process(numCycles, _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"]);
+ if (_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].bitNodeN == 2 && _Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].inGang()) {
+ _Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].gang.process(numCycles, _Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"]);
}
//Mission
- if (_Missions__WEBPACK_IMPORTED_MODULE_33__[/* inMission */ "c"] && _Missions__WEBPACK_IMPORTED_MODULE_33__[/* currMission */ "b"]) {
- _Missions__WEBPACK_IMPORTED_MODULE_33__[/* currMission */ "b"].process(numCycles);
+ if (_Missions__WEBPACK_IMPORTED_MODULE_32__[/* inMission */ "c"] && _Missions__WEBPACK_IMPORTED_MODULE_32__[/* currMission */ "b"]) {
+ _Missions__WEBPACK_IMPORTED_MODULE_32__[/* currMission */ "b"].process(numCycles);
}
//Corporation
- if (_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].corporation instanceof _Corporation_Corporation__WEBPACK_IMPORTED_MODULE_20__[/* Corporation */ "a"]) {
+ if (_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].corporation instanceof _Corporation_Corporation__WEBPACK_IMPORTED_MODULE_20__[/* Corporation */ "a"]) {
//Stores cycles in a "buffer". Processed separately using Engine Counters
//This is to avoid constant DOM redraws when Corporation is catching up
- _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].corporation.storeCycles(numCycles);
+ _Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].corporation.storeCycles(numCycles);
}
- if (_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_14__[/* Bladeburner */ "a"]) {
- _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].bladeburner.storeCycles(numCycles);
+ if (_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_14__[/* Bladeburner */ "a"]) {
+ _Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].bladeburner.storeCycles(numCycles);
}
//Counters
@@ -5589,10 +5595,10 @@ const Engine = {
}
//Update the running time of all active scripts
- Object(_NetscriptWorker__WEBPACK_IMPORTED_MODULE_35__[/* updateOnlineScriptTimes */ "g"])(numCycles);
+ Object(_NetscriptWorker__WEBPACK_IMPORTED_MODULE_34__[/* updateOnlineScriptTimes */ "g"])(numCycles);
//Hacknet Nodes
- Object(_HacknetNode__WEBPACK_IMPORTED_MODULE_29__[/* processAllHacknetNodeEarnings */ "d"])(numCycles);
+ Object(_HacknetNode__WEBPACK_IMPORTED_MODULE_28__[/* processAllHacknetNodeEarnings */ "d"])(numCycles);
},
//Counters for the main event loop. Represent the number of game cycles are required
@@ -5625,26 +5631,26 @@ const Engine = {
//is necessary and then resets the counter
checkCounters: function() {
if (Engine.Counters.autoSaveCounter <= 0) {
- _SaveObject__WEBPACK_IMPORTED_MODULE_39__[/* saveObject */ "b"].saveGame(indexedDb);
- if (_Settings__WEBPACK_IMPORTED_MODULE_42__["Settings"].AutosaveInterval == null) {
- _Settings__WEBPACK_IMPORTED_MODULE_42__["Settings"].AutosaveInterval = 60;
+ _SaveObject__WEBPACK_IMPORTED_MODULE_40__[/* saveObject */ "b"].saveGame(indexedDb);
+ if (_Settings__WEBPACK_IMPORTED_MODULE_43__["Settings"].AutosaveInterval == null) {
+ _Settings__WEBPACK_IMPORTED_MODULE_43__["Settings"].AutosaveInterval = 60;
}
- if (_Settings__WEBPACK_IMPORTED_MODULE_42__["Settings"].AutosaveInterval === 0) {
+ if (_Settings__WEBPACK_IMPORTED_MODULE_43__["Settings"].AutosaveInterval === 0) {
Engine.Counters.autoSaveCounter = Infinity;
} else {
- Engine.Counters.autoSaveCounter = _Settings__WEBPACK_IMPORTED_MODULE_42__["Settings"].AutosaveInterval * 5;
+ Engine.Counters.autoSaveCounter = _Settings__WEBPACK_IMPORTED_MODULE_43__["Settings"].AutosaveInterval * 5;
}
}
if (Engine.Counters.updateSkillLevelsCounter <= 0) {
- _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].updateSkillLevels();
+ _Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].updateSkillLevels();
Engine.Counters.updateSkillLevelsCounter = 10;
}
if (Engine.Counters.updateActiveScriptsDisplay <= 0) {
//Always update, but make the interval longer if the page isn't active
Object(_ActiveScriptsUI__WEBPACK_IMPORTED_MODULE_11__[/* updateActiveScriptsItems */ "c"])();
- if (_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_49__["routing"].isOn(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_49__["Page"].ActiveScripts)) {
+ if (_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_50__["routing"].isOn(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_50__["Page"].ActiveScripts)) {
Engine.Counters.updateActiveScriptsDisplay = 5;
} else {
Engine.Counters.updateActiveScriptsDisplay = 10;
@@ -5653,12 +5659,12 @@ const Engine = {
if (Engine.Counters.updateDisplays <= 0) {
Engine.displayCharacterOverviewInfo();
- if (_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_49__["routing"].isOn(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_49__["Page"].CharacterInfo)) {
+ if (_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_50__["routing"].isOn(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_50__["Page"].CharacterInfo)) {
Engine.displayCharacterInfo();
- } else if (_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_49__["routing"].isOn(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_49__["Page"].HacknetNodes)) {
- Object(_HacknetNode__WEBPACK_IMPORTED_MODULE_29__[/* updateHacknetNodesContent */ "f"])();
- } else if (_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_49__["routing"].isOn(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_49__["Page"].CreateProgram)) {
- Object(_CreateProgram__WEBPACK_IMPORTED_MODULE_22__[/* displayCreateProgramContent */ "b"])();
+ } else if (_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_50__["routing"].isOn(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_50__["Page"].HacknetNodes)) {
+ Object(_HacknetNode__WEBPACK_IMPORTED_MODULE_28__[/* updateHacknetNodesContent */ "f"])();
+ } else if (_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_50__["routing"].isOn(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_50__["Page"].CreateProgram)) {
+ Object(_Programs_ProgramHelpers__WEBPACK_IMPORTED_MODULE_38__[/* displayCreateProgramContent */ "a"])();
}
if (_utils_LogBox__WEBPACK_IMPORTED_MODULE_10__[/* logBoxOpened */ "b"]) {
@@ -5669,23 +5675,23 @@ const Engine = {
}
if (Engine.Counters.updateDisplaysMed <= 0) {
- if (_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_49__["routing"].isOn(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_49__["Page"].Corporation)) {
- _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].corporation.updateUIContent();
+ if (_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_50__["routing"].isOn(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_50__["Page"].Corporation)) {
+ _Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].corporation.updateUIContent();
}
Engine.Counters.updateDisplaysMed = 9;
}
if (Engine.Counters.updateDisplaysLong <= 0) {
- if (_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_49__["routing"].isOn(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_49__["Page"].Gang) && _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].inGang()) {
- _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].gang.updateGangContent();
- } else if (_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_49__["routing"].isOn(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_49__["Page"].ScriptEditor)) {
- Object(_Script__WEBPACK_IMPORTED_MODULE_40__[/* updateScriptEditorContent */ "h"])();
+ if (_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_50__["routing"].isOn(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_50__["Page"].Gang) && _Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].inGang()) {
+ _Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].gang.updateGangContent();
+ } else if (_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_50__["routing"].isOn(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_50__["Page"].ScriptEditor)) {
+ Object(_Script__WEBPACK_IMPORTED_MODULE_41__[/* updateScriptEditorContent */ "h"])();
}
Engine.Counters.updateDisplaysLong = 15;
}
if (Engine.Counters.createProgramNotifications <= 0) {
- var num = Object(_CreateProgram__WEBPACK_IMPORTED_MODULE_22__[/* getNumAvailableCreateProgram */ "c"])();
+ var num = Object(_Programs_ProgramHelpers__WEBPACK_IMPORTED_MODULE_38__[/* getNumAvailableCreateProgram */ "b"])();
var elem = document.getElementById("create-program-notification");
if (num > 0) {
elem.innerHTML = num;
@@ -5698,29 +5704,29 @@ const Engine = {
}
if (Engine.Counters.checkFactionInvitations <= 0) {
- var invitedFactions = _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].checkForFactionInvitations();
+ var invitedFactions = _Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].checkForFactionInvitations();
if (invitedFactions.length > 0) {
- if (_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].firstFacInvRecvd === false) {
- _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].firstFacInvRecvd = true;
+ if (_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].firstFacInvRecvd === false) {
+ _Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].firstFacInvRecvd = true;
document.getElementById("factions-tab").style.display = "list-item";
document.getElementById("character-menu-header").click();
document.getElementById("character-menu-header").click();
}
var randFaction = invitedFactions[Math.floor(Math.random() * invitedFactions.length)];
- Object(_Faction_FactionHelpers__WEBPACK_IMPORTED_MODULE_25__[/* inviteToFaction */ "b"])(randFaction);
+ Object(_Faction_FactionHelpers__WEBPACK_IMPORTED_MODULE_24__[/* inviteToFaction */ "b"])(randFaction);
}
Engine.Counters.checkFactionInvitations = 100;
}
if (Engine.Counters.passiveFactionGrowth <= 0) {
var adjustedCycles = Math.floor((600 - Engine.Counters.passiveFactionGrowth));
- Object(_Faction_FactionHelpers__WEBPACK_IMPORTED_MODULE_25__[/* processPassiveFactionRepGain */ "d"])(adjustedCycles);
+ Object(_Faction_FactionHelpers__WEBPACK_IMPORTED_MODULE_24__[/* processPassiveFactionRepGain */ "d"])(adjustedCycles);
Engine.Counters.passiveFactionGrowth = 600;
}
if (Engine.Counters.messages <= 0) {
- Object(_Message__WEBPACK_IMPORTED_MODULE_32__[/* checkForMessagesToSend */ "c"])();
+ Object(_Message__WEBPACK_IMPORTED_MODULE_31__[/* checkForMessagesToSend */ "c"])();
if (_Augmentations__WEBPACK_IMPORTED_MODULE_12__[/* Augmentations */ "c"][_Augmentations__WEBPACK_IMPORTED_MODULE_12__[/* AugmentationNames */ "b"].TheRedPill].owned) {
Engine.Counters.messages = 4500; //15 minutes for Red pill message
} else {
@@ -5729,19 +5735,19 @@ const Engine = {
}
if (Engine.Counters.sCr <= 0) {
- if (_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].hasWseAccount) {
- Object(_StockMarket__WEBPACK_IMPORTED_MODULE_46__[/* stockMarketCycle */ "q"])();
+ if (_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].hasWseAccount) {
+ Object(_StockMarket__WEBPACK_IMPORTED_MODULE_47__[/* stockMarketCycle */ "q"])();
}
Engine.Counters.sCr = 1500;
}
if (Engine.Counters.mechanicProcess <= 0) {
- if (_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].corporation instanceof _Corporation_Corporation__WEBPACK_IMPORTED_MODULE_20__[/* Corporation */ "a"]) {
- _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].corporation.process();
+ if (_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].corporation instanceof _Corporation_Corporation__WEBPACK_IMPORTED_MODULE_20__[/* Corporation */ "a"]) {
+ _Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].corporation.process();
}
- if (_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_14__[/* Bladeburner */ "a"]) {
+ if (_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_14__[/* Bladeburner */ "a"]) {
try {
- _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].bladeburner.process();
+ _Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].bladeburner.process();
} catch(e) {
Object(_utils_helpers_exceptionAlert__WEBPACK_IMPORTED_MODULE_6__[/* exceptionAlert */ "a"])("Exception caught in Bladeburner.process(): " + e);
}
@@ -5790,7 +5796,7 @@ const Engine = {
//Once percent is 100, the hack is completed
if (percent >= 100) {
Engine._actionInProgress = false;
- _Terminal__WEBPACK_IMPORTED_MODULE_47__[/* Terminal */ "a"].finishAction();
+ _Terminal__WEBPACK_IMPORTED_MODULE_48__[/* Terminal */ "a"].finishAction();
}
},
@@ -5863,84 +5869,84 @@ const Engine = {
var dev = document.getElementById("dev-tab");
//Load game from save or create new game
- if (Object(_SaveObject__WEBPACK_IMPORTED_MODULE_39__[/* loadGame */ "a"])(saveString)) {
+ if (Object(_SaveObject__WEBPACK_IMPORTED_MODULE_40__[/* loadGame */ "a"])(saveString)) {
console.log("Loaded game from save");
Object(_BitNode__WEBPACK_IMPORTED_MODULE_13__[/* initBitNodes */ "c"])();
Object(_BitNode__WEBPACK_IMPORTED_MODULE_13__[/* initBitNodeMultipliers */ "b"])();
- Object(_SourceFile__WEBPACK_IMPORTED_MODULE_44__[/* initSourceFiles */ "d"])();
+ Object(_SourceFile__WEBPACK_IMPORTED_MODULE_45__[/* initSourceFiles */ "d"])();
Engine.setDisplayElements(); //Sets variables for important DOM elements
Engine.init(); //Initialize buttons, work, etc.
Object(_Augmentations__WEBPACK_IMPORTED_MODULE_12__[/* initAugmentations */ "h"])(); //Also calls Player.reapplyAllAugmentations()
- _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].reapplyAllSourceFiles();
- Object(_StockMarket__WEBPACK_IMPORTED_MODULE_46__[/* initStockSymbols */ "i"])();
- if (_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].hasWseAccount) {
- Object(_StockMarket__WEBPACK_IMPORTED_MODULE_46__[/* initSymbolToStockMap */ "j"])();
+ _Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].reapplyAllSourceFiles();
+ Object(_StockMarket__WEBPACK_IMPORTED_MODULE_47__[/* initStockSymbols */ "i"])();
+ if (_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].hasWseAccount) {
+ Object(_StockMarket__WEBPACK_IMPORTED_MODULE_47__[/* initSymbolToStockMap */ "j"])();
}
- Object(_Literature__WEBPACK_IMPORTED_MODULE_31__[/* initLiterature */ "a"])();
- Object(_NetscriptFunctions__WEBPACK_IMPORTED_MODULE_34__[/* initSingularitySFFlags */ "g"])();
+ Object(_Literature__WEBPACK_IMPORTED_MODULE_30__[/* initLiterature */ "a"])();
+ Object(_NetscriptFunctions__WEBPACK_IMPORTED_MODULE_33__[/* initSingularitySFFlags */ "g"])();
- console.log(_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].intelligence_exp);
+ console.log(_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].intelligence_exp);
//Calculate the number of cycles have elapsed while offline
Engine._lastUpdate = new Date().getTime();
- var lastUpdate = _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].lastUpdate;
+ var lastUpdate = _Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].lastUpdate;
var numCyclesOffline = Math.floor((Engine._lastUpdate - lastUpdate) / Engine._idleSpeed);
/* Process offline progress */
- var offlineProductionFromScripts = Object(_Script__WEBPACK_IMPORTED_MODULE_40__[/* loadAllRunningScripts */ "f"])(); //This also takes care of offline production for those scripts
- if (_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].isWorking) {
+ var offlineProductionFromScripts = Object(_Script__WEBPACK_IMPORTED_MODULE_41__[/* loadAllRunningScripts */ "f"])(); //This also takes care of offline production for those scripts
+ if (_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].isWorking) {
console.log("work() called in load() for " + numCyclesOffline * Engine._idleSpeed + " milliseconds");
- if (_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].workType == _Constants__WEBPACK_IMPORTED_MODULE_21__["CONSTANTS"].WorkTypeFaction) {
- _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].workForFaction(numCyclesOffline);
- } else if (_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].workType == _Constants__WEBPACK_IMPORTED_MODULE_21__["CONSTANTS"].WorkTypeCreateProgram) {
- _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].createProgramWork(numCyclesOffline);
- } else if (_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].workType == _Constants__WEBPACK_IMPORTED_MODULE_21__["CONSTANTS"].WorkTypeStudyClass) {
- _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].takeClass(numCyclesOffline);
- } else if (_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].workType == _Constants__WEBPACK_IMPORTED_MODULE_21__["CONSTANTS"].WorkTypeCrime) {
- _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].commitCrime(numCyclesOffline);
- } else if (_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].workType == _Constants__WEBPACK_IMPORTED_MODULE_21__["CONSTANTS"].WorkTypeCompanyPartTime) {
- _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].workPartTime(numCyclesOffline);
+ if (_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].workType == _Constants__WEBPACK_IMPORTED_MODULE_21__["CONSTANTS"].WorkTypeFaction) {
+ _Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].workForFaction(numCyclesOffline);
+ } else if (_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].workType == _Constants__WEBPACK_IMPORTED_MODULE_21__["CONSTANTS"].WorkTypeCreateProgram) {
+ _Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].createProgramWork(numCyclesOffline);
+ } else if (_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].workType == _Constants__WEBPACK_IMPORTED_MODULE_21__["CONSTANTS"].WorkTypeStudyClass) {
+ _Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].takeClass(numCyclesOffline);
+ } else if (_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].workType == _Constants__WEBPACK_IMPORTED_MODULE_21__["CONSTANTS"].WorkTypeCrime) {
+ _Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].commitCrime(numCyclesOffline);
+ } else if (_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].workType == _Constants__WEBPACK_IMPORTED_MODULE_21__["CONSTANTS"].WorkTypeCompanyPartTime) {
+ _Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].workPartTime(numCyclesOffline);
} else {
- _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].work(numCyclesOffline);
+ _Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].work(numCyclesOffline);
}
}
//Hacknet Nodes offline progress
- var offlineProductionFromHacknetNodes = Object(_HacknetNode__WEBPACK_IMPORTED_MODULE_29__[/* processAllHacknetNodeEarnings */ "d"])(numCyclesOffline);
+ var offlineProductionFromHacknetNodes = Object(_HacknetNode__WEBPACK_IMPORTED_MODULE_28__[/* processAllHacknetNodeEarnings */ "d"])(numCyclesOffline);
//Passive faction rep gain offline
- Object(_Faction_FactionHelpers__WEBPACK_IMPORTED_MODULE_25__[/* processPassiveFactionRepGain */ "d"])(numCyclesOffline);
+ Object(_Faction_FactionHelpers__WEBPACK_IMPORTED_MODULE_24__[/* processPassiveFactionRepGain */ "d"])(numCyclesOffline);
// Stock Market offline progress
- if (_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].hasWseAccount) {
- Object(_StockMarket__WEBPACK_IMPORTED_MODULE_46__[/* processStockPrices */ "m"])(numCyclesOffline);
+ if (_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].hasWseAccount) {
+ Object(_StockMarket__WEBPACK_IMPORTED_MODULE_47__[/* processStockPrices */ "m"])(numCyclesOffline);
}
// Gang progress for BitNode 2
- if (_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].bitNodeN != null && _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].bitNodeN === 2 && _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].inGang()) {
- _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].gang.process(numCyclesOffline, _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"]);
+ if (_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].bitNodeN != null && _Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].bitNodeN === 2 && _Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].inGang()) {
+ _Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].gang.process(numCyclesOffline, _Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"]);
}
// Corporation offline progress
- if (_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].corporation instanceof _Corporation_Corporation__WEBPACK_IMPORTED_MODULE_20__[/* Corporation */ "a"]) {
- _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].corporation.storeCycles(numCyclesOffline);
+ if (_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].corporation instanceof _Corporation_Corporation__WEBPACK_IMPORTED_MODULE_20__[/* Corporation */ "a"]) {
+ _Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].corporation.storeCycles(numCyclesOffline);
}
// Bladeburner offline progress
- if (_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_14__[/* Bladeburner */ "a"]) {
- _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].bladeburner.storeCycles(numCyclesOffline);
+ if (_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_14__[/* Bladeburner */ "a"]) {
+ _Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].bladeburner.storeCycles(numCyclesOffline);
}
//Update total playtime
var time = numCyclesOffline * Engine._idleSpeed;
- if (_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].totalPlaytime == null) {_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].totalPlaytime = 0;}
- if (_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].playtimeSinceLastAug == null) {_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].playtimeSinceLastAug = 0;}
- if (_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].playtimeSinceLastBitnode == null) {_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].playtimeSinceLastBitnode = 0;}
- _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].totalPlaytime += time;
- _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].playtimeSinceLastAug += time;
- _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].playtimeSinceLastBitnode += time;
+ if (_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].totalPlaytime == null) {_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].totalPlaytime = 0;}
+ if (_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].playtimeSinceLastAug == null) {_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].playtimeSinceLastAug = 0;}
+ if (_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].playtimeSinceLastBitnode == null) {_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].playtimeSinceLastBitnode = 0;}
+ _Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].totalPlaytime += time;
+ _Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].playtimeSinceLastAug += time;
+ _Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].playtimeSinceLastBitnode += time;
- _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].lastUpdate = Engine._lastUpdate;
+ _Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].lastUpdate = Engine._lastUpdate;
Engine.start(); //Run main game loop and Scripts loop
Object(_utils_uiHelpers_removeLoadingScreen__WEBPACK_IMPORTED_MODULE_7__["removeLoadingScreen"])();
Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_0__["dialogBoxCreate"])("While you were offline, your scripts generated $" +
@@ -5949,23 +5955,23 @@ const Engine = {
//Close main menu accordions for loaded game
var visibleMenuTabs = [terminal, createScript, activeScripts, stats,
hacknetnodes, city, tutorial, options, dev];
- if (_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].firstFacInvRecvd) {visibleMenuTabs.push(factions);}
+ if (_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].firstFacInvRecvd) {visibleMenuTabs.push(factions);}
else {factions.style.display = "none";}
- if (_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].firstAugPurchased) {visibleMenuTabs.push(augmentations);}
+ if (_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].firstAugPurchased) {visibleMenuTabs.push(augmentations);}
else {augmentations.style.display = "none";}
- if (_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].companyPosition !== "") {visibleMenuTabs.push(job);}
+ if (_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].companyPosition !== "") {visibleMenuTabs.push(job);}
else {job.style.display = "none";}
- if (_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].firstTimeTraveled) {visibleMenuTabs.push(travel);}
+ if (_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].firstTimeTraveled) {visibleMenuTabs.push(travel);}
else {travel.style.display = "none";}
- if (_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].firstProgramAvailable) {visibleMenuTabs.push(createProgram);}
+ if (_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].firstProgramAvailable) {visibleMenuTabs.push(createProgram);}
else {createProgram.style.display = "none";}
- if (_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].hasWseAccount) {visibleMenuTabs.push(stockmarket);}
+ if (_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].hasWseAccount) {visibleMenuTabs.push(stockmarket);}
else {stockmarket.style.display = "none";}
- if(_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_14__[/* Bladeburner */ "a"]) {visibleMenuTabs.push(bladeburner);}
+ if(_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_14__[/* Bladeburner */ "a"]) {visibleMenuTabs.push(bladeburner);}
else {bladeburner.style.display = "none";}
- if(_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].corporation instanceof _Corporation_Corporation__WEBPACK_IMPORTED_MODULE_20__[/* Corporation */ "a"]) {visibleMenuTabs.push(corp);}
+ if(_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].corporation instanceof _Corporation_Corporation__WEBPACK_IMPORTED_MODULE_20__[/* Corporation */ "a"]) {visibleMenuTabs.push(corp);}
else {corp.style.display = "none";}
- if(_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].inGang()) {visibleMenuTabs.push(gang);}
+ if(_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].inGang()) {visibleMenuTabs.push(gang);}
else {gang.style.display = "none";}
Engine.closeMainMenuHeader(visibleMenuTabs);
@@ -5974,19 +5980,19 @@ const Engine = {
console.log("Initializing new game");
Object(_BitNode__WEBPACK_IMPORTED_MODULE_13__[/* initBitNodes */ "c"])();
Object(_BitNode__WEBPACK_IMPORTED_MODULE_13__[/* initBitNodeMultipliers */ "b"])();
- Object(_SourceFile__WEBPACK_IMPORTED_MODULE_44__[/* initSourceFiles */ "d"])();
- Object(_SpecialServerIps__WEBPACK_IMPORTED_MODULE_45__[/* initSpecialServerIps */ "c"])();
+ Object(_SourceFile__WEBPACK_IMPORTED_MODULE_45__[/* initSourceFiles */ "d"])();
+ Object(_SpecialServerIps__WEBPACK_IMPORTED_MODULE_46__[/* initSpecialServerIps */ "c"])();
Engine.setDisplayElements(); //Sets variables for important DOM elements
Engine.start(); //Run main game loop and Scripts loop
- _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].init();
- Object(_Server__WEBPACK_IMPORTED_MODULE_41__[/* initForeignServers */ "f"])();
+ _Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].init();
+ Object(_Server__WEBPACK_IMPORTED_MODULE_42__[/* initForeignServers */ "f"])();
Object(_Company_Companies__WEBPACK_IMPORTED_MODULE_19__["initCompanies"])();
- Object(_Faction_Factions__WEBPACK_IMPORTED_MODULE_24__["initFactions"])();
+ Object(_Faction_Factions__WEBPACK_IMPORTED_MODULE_23__["initFactions"])();
Object(_Augmentations__WEBPACK_IMPORTED_MODULE_12__[/* initAugmentations */ "h"])();
- Object(_Message__WEBPACK_IMPORTED_MODULE_32__[/* initMessages */ "d"])();
- Object(_StockMarket__WEBPACK_IMPORTED_MODULE_46__[/* initStockSymbols */ "i"])();
- Object(_Literature__WEBPACK_IMPORTED_MODULE_31__[/* initLiterature */ "a"])();
- Object(_NetscriptFunctions__WEBPACK_IMPORTED_MODULE_34__[/* initSingularitySFFlags */ "g"])();
+ Object(_Message__WEBPACK_IMPORTED_MODULE_31__[/* initMessages */ "d"])();
+ Object(_StockMarket__WEBPACK_IMPORTED_MODULE_47__[/* initStockSymbols */ "i"])();
+ Object(_Literature__WEBPACK_IMPORTED_MODULE_30__[/* initLiterature */ "a"])();
+ Object(_NetscriptFunctions__WEBPACK_IMPORTED_MODULE_33__[/* initSingularitySFFlags */ "g"])();
//Open main menu accordions for new game
//Main menu accordions
@@ -6018,19 +6024,19 @@ const Engine = {
);
//Start interactive tutorial
- Object(_InteractiveTutorial__WEBPACK_IMPORTED_MODULE_30__[/* iTutorialStart */ "c"])();
+ Object(_InteractiveTutorial__WEBPACK_IMPORTED_MODULE_29__[/* iTutorialStart */ "c"])();
Object(_utils_uiHelpers_removeLoadingScreen__WEBPACK_IMPORTED_MODULE_7__["removeLoadingScreen"])();
}
//Initialize labels on game settings
- Object(_ui_setSettingsLabels__WEBPACK_IMPORTED_MODULE_43__[/* setSettingsLabels */ "a"])();
- Object(_Script__WEBPACK_IMPORTED_MODULE_40__[/* scriptEditorInit */ "g"])();
- _Terminal__WEBPACK_IMPORTED_MODULE_47__[/* Terminal */ "a"].resetTerminalInput();
+ Object(_ui_setSettingsLabels__WEBPACK_IMPORTED_MODULE_44__[/* setSettingsLabels */ "a"])();
+ Object(_Script__WEBPACK_IMPORTED_MODULE_41__[/* scriptEditorInit */ "g"])();
+ _Terminal__WEBPACK_IMPORTED_MODULE_48__[/* Terminal */ "a"].resetTerminalInput();
},
setDisplayElements: function() {
//Content elements
Engine.Display.terminalContent = document.getElementById("terminal-container");
- _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_49__["routing"].navigateTo(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_49__["Page"].Terminal);
+ _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_50__["routing"].navigateTo(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_50__["Page"].Terminal);
Engine.Display.characterContent = document.getElementById("character-container");
Engine.Display.characterContent.style.display = "none";
@@ -6106,7 +6112,7 @@ const Engine = {
Engine.Display.cinematicTextContent.style.display = "none";
//Init Location buttons
- Object(_Location__WEBPACK_IMPORTED_MODULE_27__[/* initLocationButtons */ "b"])();
+ Object(_Location__WEBPACK_IMPORTED_MODULE_26__[/* initLocationButtons */ "b"])();
//Tutorial buttons
Engine.Clickables.tutorialNetworkingButton = document.getElementById("tutorial-networking-link");
@@ -6159,7 +6165,7 @@ const Engine = {
init: function() {
//Import game link
document.getElementById("import-game-link").onclick = function() {
- _SaveObject__WEBPACK_IMPORTED_MODULE_39__[/* saveObject */ "b"].importGame();
+ _SaveObject__WEBPACK_IMPORTED_MODULE_40__[/* saveObject */ "b"].importGame();
};
//Main menu accordions
@@ -6236,11 +6242,11 @@ const Engine = {
var gangLink = document.getElementById("gang-menu-link");
// Determine whether certain links should show up
- job.style.display = _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].companyPosition !== "" ? "list-item" : "none";
- stockmarket.style.display = _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].hasWseAccount ? "list-item" : "none";
- bladeburner.style.display = _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_14__[/* Bladeburner */ "a"] ? "list-item" : "none";
- corporation.style.display = _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].corporation instanceof _Corporation_Corporation__WEBPACK_IMPORTED_MODULE_20__[/* Corporation */ "a"] ? "list-item" : "none";
- gang.style.display = _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].inGang() ? "list-item" : "none";
+ job.style.display = _Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].companyPosition !== "" ? "list-item" : "none";
+ stockmarket.style.display = _Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].hasWseAccount ? "list-item" : "none";
+ bladeburner.style.display = _Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_14__[/* Bladeburner */ "a"] ? "list-item" : "none";
+ corporation.style.display = _Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].corporation instanceof _Corporation_Corporation__WEBPACK_IMPORTED_MODULE_20__[/* Corporation */ "a"] ? "list-item" : "none";
+ gang.style.display = _Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].inGang() ? "list-item" : "none";
this.classList.toggle("opened");
if (city.style.maxHeight) {
@@ -6389,24 +6395,24 @@ const Engine = {
//Save, Delete, Import/Export buttons
Engine.Clickables.saveMainMenuButton = document.getElementById("save-game-link");
Engine.Clickables.saveMainMenuButton.addEventListener("click", function() {
- _SaveObject__WEBPACK_IMPORTED_MODULE_39__[/* saveObject */ "b"].saveGame(indexedDb);
+ _SaveObject__WEBPACK_IMPORTED_MODULE_40__[/* saveObject */ "b"].saveGame(indexedDb);
return false;
});
Engine.Clickables.deleteMainMenuButton = document.getElementById("delete-game-link");
Engine.Clickables.deleteMainMenuButton.addEventListener("click", function() {
- _SaveObject__WEBPACK_IMPORTED_MODULE_39__[/* saveObject */ "b"].deleteGame(indexedDb);
+ _SaveObject__WEBPACK_IMPORTED_MODULE_40__[/* saveObject */ "b"].deleteGame(indexedDb);
return false;
});
document.getElementById("export-game-link").addEventListener("click", function() {
- _SaveObject__WEBPACK_IMPORTED_MODULE_39__[/* saveObject */ "b"].exportGame();
+ _SaveObject__WEBPACK_IMPORTED_MODULE_40__[/* saveObject */ "b"].exportGame();
return false;
});
//Character Overview buttons
document.getElementById("character-overview-save-button").addEventListener("click", function() {
- _SaveObject__WEBPACK_IMPORTED_MODULE_39__[/* saveObject */ "b"].saveGame(indexedDb);
+ _SaveObject__WEBPACK_IMPORTED_MODULE_40__[/* saveObject */ "b"].saveGame(indexedDb);
return false;
});
@@ -6416,28 +6422,28 @@ const Engine = {
});
//Create Program buttons
- Object(_CreateProgram__WEBPACK_IMPORTED_MODULE_22__[/* initCreateProgramButtons */ "d"])();
+ Object(_Programs_ProgramHelpers__WEBPACK_IMPORTED_MODULE_38__[/* initCreateProgramButtons */ "c"])();
//Message at the top of terminal
- Object(_Terminal__WEBPACK_IMPORTED_MODULE_47__[/* postNetburnerText */ "b"])();
+ Object(_Terminal__WEBPACK_IMPORTED_MODULE_48__[/* postNetburnerText */ "b"])();
//Player was working cancel button
- if (_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].isWorking) {
+ if (_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].isWorking) {
var cancelButton = document.getElementById("work-in-progress-cancel-button");
cancelButton.addEventListener("click", function() {
- if (_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].workType == _Constants__WEBPACK_IMPORTED_MODULE_21__["CONSTANTS"].WorkTypeFaction) {
- var fac = _Faction_Factions__WEBPACK_IMPORTED_MODULE_24__["Factions"][_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].currentWorkFactionName];
- _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].finishFactionWork(true);
- } else if (_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].workType == _Constants__WEBPACK_IMPORTED_MODULE_21__["CONSTANTS"].WorkTypeCreateProgram) {
- _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].finishCreateProgramWork(true);
- } else if (_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].workType == _Constants__WEBPACK_IMPORTED_MODULE_21__["CONSTANTS"].WorkTypeStudyClass) {
- _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].finishClass();
- } else if (_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].workType == _Constants__WEBPACK_IMPORTED_MODULE_21__["CONSTANTS"].WorkTypeCrime) {
- _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].finishCrime(true);
- } else if (_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].workType == _Constants__WEBPACK_IMPORTED_MODULE_21__["CONSTANTS"].WorkTypeCompanyPartTime) {
- _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].finishWorkPartTime();
+ if (_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].workType == _Constants__WEBPACK_IMPORTED_MODULE_21__["CONSTANTS"].WorkTypeFaction) {
+ var fac = _Faction_Factions__WEBPACK_IMPORTED_MODULE_23__["Factions"][_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].currentWorkFactionName];
+ _Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].finishFactionWork(true);
+ } else if (_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].workType == _Constants__WEBPACK_IMPORTED_MODULE_21__["CONSTANTS"].WorkTypeCreateProgram) {
+ _Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].finishCreateProgramWork(true);
+ } else if (_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].workType == _Constants__WEBPACK_IMPORTED_MODULE_21__["CONSTANTS"].WorkTypeStudyClass) {
+ _Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].finishClass();
+ } else if (_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].workType == _Constants__WEBPACK_IMPORTED_MODULE_21__["CONSTANTS"].WorkTypeCrime) {
+ _Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].finishCrime(true);
+ } else if (_Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].workType == _Constants__WEBPACK_IMPORTED_MODULE_21__["CONSTANTS"].WorkTypeCompanyPartTime) {
+ _Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].finishWorkPartTime();
} else {
- _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].finishWork(true);
+ _Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].finishWork(true);
}
});
Engine.loadWorkInProgressContent();
@@ -6458,7 +6464,7 @@ const Engine = {
//DEBUG Delete active Scripts on home
document.getElementById("debug-delete-scripts-link").addEventListener("click", function() {
console.log("Deleting running scripts on home computer");
- _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].getHomeComputer().runningScripts = [];
+ _Player__WEBPACK_IMPORTED_MODULE_35__[/* Player */ "a"].getHomeComputer().runningScripts = [];
Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_0__["dialogBoxCreate"])("Forcefully deleted all running scripts on home computer. Please save and refresh page");
Object(_utils_GameOptions__WEBPACK_IMPORTED_MODULE_1__[/* gameOptionsBoxClose */ "a"])();
return false;
@@ -6467,7 +6473,7 @@ const Engine = {
//DEBUG Soft Reset
document.getElementById("debug-soft-reset").addEventListener("click", function() {
Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_0__["dialogBoxCreate"])("Soft Reset!");
- Object(_Prestige__WEBPACK_IMPORTED_MODULE_37__[/* prestigeAugmentation */ "a"])();
+ Object(_Prestige__WEBPACK_IMPORTED_MODULE_36__[/* prestigeAugmentation */ "a"])();
Object(_utils_GameOptions__WEBPACK_IMPORTED_MODULE_1__[/* gameOptionsBoxClose */ "a"])();
return false;
});
@@ -6478,7 +6484,7 @@ const Engine = {
Engine.idleTimer();
//Scripts
- Object(_NetscriptWorker__WEBPACK_IMPORTED_MODULE_35__[/* runScriptsLoop */ "f"])();
+ Object(_NetscriptWorker__WEBPACK_IMPORTED_MODULE_34__[/* runScriptsLoop */ "f"])();
}
};
@@ -6688,15 +6694,16 @@ exports.BitNodeMultipliers = {
/* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Constants */ 1);
/* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_Constants__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _Script__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Script */ 30);
-/* harmony import */ var _CreateProgram__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./CreateProgram */ 24);
-/* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Player */ 0);
+/* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Player */ 0);
+/* harmony import */ var _Programs_Programs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Programs/Programs */ 24);
+/* harmony import */ var _Programs_Programs__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_Programs_Programs__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _SpecialServerIps__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./SpecialServerIps */ 32);
/* harmony import */ var _TextFile__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./TextFile */ 65);
/* harmony import */ var _TextFile__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_TextFile__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var _utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../utils/helpers/getRandomInt */ 15);
/* harmony import */ var _utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_8__);
/* harmony import */ var _utils_IPAddress__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../utils/IPAddress */ 62);
-/* harmony import */ var _data_servers__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./data/servers */ 135);
+/* harmony import */ var _data_servers__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./data/servers */ 137);
/* harmony import */ var _data_servers__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_data_servers__WEBPACK_IMPORTED_MODULE_10__);
/* harmony import */ var _utils_JSONReviver__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../utils/JSONReviver */ 13);
/* harmony import */ var _utils_helpers_isValidIPAddress__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../utils/helpers/isValidIPAddress */ 88);
@@ -6983,7 +6990,7 @@ function initForeignServers() {
};
// Connect the first tier of servers to the player's home computer
- linkNetworkLayers(networkLayers[0], () => _Player__WEBPACK_IMPORTED_MODULE_5__[/* Player */ "a"].getHomeComputer());
+ linkNetworkLayers(networkLayers[0], () => _Player__WEBPACK_IMPORTED_MODULE_4__[/* Player */ "a"].getHomeComputer());
for (let i = 1; i < networkLayers.length; i++) {
linkNetworkLayers(networkLayers[i], () => getRandomArrayItem(networkLayers[i - 1]));
}
@@ -6999,7 +7006,7 @@ function numCycleForGrowth(server, growth) {
const serverGrowthPercentage = server.serverGrowth / 100;
- const cycles = Math.log(growth)/(Math.log(ajdGrowthRate)*_Player__WEBPACK_IMPORTED_MODULE_5__[/* Player */ "a"].hacking_grow_mult*serverGrowthPercentage);
+ const cycles = Math.log(growth)/(Math.log(ajdGrowthRate)*_Player__WEBPACK_IMPORTED_MODULE_4__[/* Player */ "a"].hacking_grow_mult*serverGrowthPercentage);
return cycles;
}
@@ -7018,7 +7025,7 @@ function processSingleServerGrowth(server, numCycles) {
const numServerGrowthCyclesAdjusted = numServerGrowthCycles * serverGrowthPercentage * _BitNodeMultipliers__WEBPACK_IMPORTED_MODULE_0__["BitNodeMultipliers"].ServerGrowthRate;
//Apply serverGrowth for the calculated number of growth cycles
- var serverGrowth = Math.pow(adjGrowthRate, numServerGrowthCyclesAdjusted * _Player__WEBPACK_IMPORTED_MODULE_5__[/* Player */ "a"].hacking_grow_mult);
+ var serverGrowth = Math.pow(adjGrowthRate, numServerGrowthCyclesAdjusted * _Player__WEBPACK_IMPORTED_MODULE_4__[/* Player */ "a"].hacking_grow_mult);
if (serverGrowth < 1) {
console.log("WARN: serverGrowth calculated to be less than 1");
serverGrowth = 1;
@@ -7048,15 +7055,15 @@ function processSingleServerGrowth(server, numCycles) {
}
function prestigeHomeComputer(homeComp) {
- const hasBitflume = homeComp.programs.includes(_CreateProgram__WEBPACK_IMPORTED_MODULE_4__[/* Programs */ "a"].BitFlume.name);
+ const hasBitflume = homeComp.programs.includes(_Programs_Programs__WEBPACK_IMPORTED_MODULE_5__["Programs"].BitFlume.name);
homeComp.programs.length = 0; //Remove programs
homeComp.runningScripts = [];
homeComp.serversOnNetwork = [];
homeComp.isConnectedTo = true;
homeComp.ramUsed = 0;
- homeComp.programs.push(_CreateProgram__WEBPACK_IMPORTED_MODULE_4__[/* Programs */ "a"].NukeProgram.name);
- if (hasBitflume) { homeComp.programs.push(_CreateProgram__WEBPACK_IMPORTED_MODULE_4__[/* Programs */ "a"].BitFlume.name); }
+ homeComp.programs.push(_Programs_Programs__WEBPACK_IMPORTED_MODULE_5__["Programs"].NukeProgram.name);
+ if (hasBitflume) { homeComp.programs.push(_Programs_Programs__WEBPACK_IMPORTED_MODULE_5__["Programs"].BitFlume.name); }
//Update RAM usage on all scripts
homeComp.scripts.forEach(function(script) {
@@ -7408,7 +7415,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
* about all Factions in the game
*/
const Faction_1 = __webpack_require__(/*! ./Faction */ 56);
-const FactionInfo_1 = __webpack_require__(/*! ./FactionInfo */ 114);
+const FactionInfo_1 = __webpack_require__(/*! ./FactionInfo */ 115);
const JSONReviver_1 = __webpack_require__(/*! ../../utils/JSONReviver */ 13);
exports.Factions = {};
function loadFactions(saveString) {
@@ -7675,8 +7682,8 @@ exports.yesNoTxtInpBoxCreate = yesNoTxtInpBoxCreate;
Object.defineProperty(exports, "__esModule", { value: true });
// Constructs all CompanyPosition objects using the metadata in data/companypositions.ts
-const CompaniesMetadata_1 = __webpack_require__(/*! ./data/CompaniesMetadata */ 205);
-const Company_1 = __webpack_require__(/*! ./Company */ 73);
+const CompaniesMetadata_1 = __webpack_require__(/*! ./data/CompaniesMetadata */ 210);
+const Company_1 = __webpack_require__(/*! ./Company */ 74);
const JSONReviver_1 = __webpack_require__(/*! ../../utils/JSONReviver */ 13);
exports.Companies = {};
function addCompany(params) {
@@ -7736,7 +7743,7 @@ exports.companyExists = companyExists;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
-const SettingEnums_1 = __webpack_require__(/*! ./SettingEnums */ 72);
+const SettingEnums_1 = __webpack_require__(/*! ./SettingEnums */ 73);
const defaultSettings = {
AutosaveInterval: 60,
CodeInstructionRunTime: 50,
@@ -7839,19 +7846,19 @@ exports.removeElementById = removeElementById;
/* harmony import */ var _NetscriptWorker__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./NetscriptWorker */ 25);
/* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Player */ 0);
/* harmony import */ var _Prestige__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Prestige */ 86);
-/* harmony import */ var _SaveObject__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./SaveObject */ 74);
+/* harmony import */ var _SaveObject__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./SaveObject */ 75);
/* harmony import */ var _Script__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Script */ 30);
/* harmony import */ var _Server__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./Server */ 11);
-/* harmony import */ var _SettingEnums__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./SettingEnums */ 72);
+/* harmony import */ var _SettingEnums__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./SettingEnums */ 73);
/* harmony import */ var _SettingEnums__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_SettingEnums__WEBPACK_IMPORTED_MODULE_11__);
/* harmony import */ var _Settings__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./Settings */ 19);
/* harmony import */ var _Settings__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_Settings__WEBPACK_IMPORTED_MODULE_12__);
/* harmony import */ var _SourceFile__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./SourceFile */ 70);
/* harmony import */ var _utils_DialogBox__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../utils/DialogBox */ 9);
-/* harmony import */ var _utils_uiHelpers_createAccordionElement__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../utils/uiHelpers/createAccordionElement */ 76);
+/* harmony import */ var _utils_uiHelpers_createAccordionElement__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../utils/uiHelpers/createAccordionElement */ 77);
/* harmony import */ var _utils_uiHelpers_createAccordionElement__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_createAccordionElement__WEBPACK_IMPORTED_MODULE_15__);
/* harmony import */ var _utils_JSONReviver__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../utils/JSONReviver */ 13);
-/* harmony import */ var _utils_helpers_clearObject__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../utils/helpers/clearObject */ 77);
+/* harmony import */ var _utils_helpers_clearObject__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../utils/helpers/clearObject */ 78);
/* harmony import */ var _utils_helpers_clearObject__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_clearObject__WEBPACK_IMPORTED_MODULE_17__);
/* harmony import */ var _utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../utils/uiHelpers/createElement */ 2);
/* harmony import */ var _utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_18__);
@@ -12075,7 +12082,7 @@ function updateStockOrderList(stock) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
-const BaseResearchTree_1 = __webpack_require__(/*! ./data/BaseResearchTree */ 204);
+const BaseResearchTree_1 = __webpack_require__(/*! ./data/BaseResearchTree */ 209);
const numeralFormat_1 = __webpack_require__(/*! ../ui/numeralFormat */ 4);
// Map of official names for each Industry
exports.Industries = {
@@ -12178,182 +12185,23 @@ exports.IndustryResearchTrees = {
/***/ }),
/* 24 */
-/*!******************************!*\
- !*** ./src/CreateProgram.js ***!
- \******************************/
-/*! exports provided: Programs, displayCreateProgramContent, getNumAvailableCreateProgram, initCreateProgramButtons */
-/*! exports used: Programs, displayCreateProgramContent, getNumAvailableCreateProgram, initCreateProgramButtons */
-/***/ (function(module, __webpack_exports__, __webpack_require__) {
+/*!**********************************!*\
+ !*** ./src/Programs/Programs.ts ***!
+ \**********************************/
+/*! no static exports found */
+/*! all exports used */
+/***/ (function(module, exports, __webpack_require__) {
"use strict";
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Programs; });
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return displayCreateProgramContent; });
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return getNumAvailableCreateProgram; });
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return initCreateProgramButtons; });
-/* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Constants */ 1);
-/* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_Constants__WEBPACK_IMPORTED_MODULE_0__);
-/* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Player */ 0);
-/* harmony import */ var _utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/uiHelpers/createElement */ 2);
-/* harmony import */ var _utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_2__);
-
-
-
-// a function that returns a requirement for a program that requires only that
-// the player has at least the given skill level.
-function requireLevel(lvl) {
- return function() {
- return _Player__WEBPACK_IMPORTED_MODULE_1__[/* Player */ "a"].hacking_skill >= lvl;
- }
+Object.defineProperty(exports, "__esModule", { value: true });
+const Program_1 = __webpack_require__(/*! ./Program */ 197);
+const programsMetadata_1 = __webpack_require__(/*! ./data/programsMetadata */ 196);
+exports.Programs = {};
+for (const params of programsMetadata_1.programsMetadata) {
+ exports.Programs[params.key] = new Program_1.Program(params.name, params.create);
}
-function Program(name, create) {
- this.name = name;
- this.create = create;
-}
-
-Program.prototype.htmlID = function() {
- const name = this.name.endsWith('.exe') ? this.name.slice(0, -('.exe'.length)) : this.name;
- return "create-program-"+name;
-}
-
-/* Create programs */
-const Programs = {
- NukeProgram: new Program("NUKE.exe", {
- level: 1,
- tooltip:"This virus is used to gain root access to a machine if enough ports are opened.",
- req: requireLevel(1),
- time: _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].MillisecondsPerFiveMinutes,
- }),
- BruteSSHProgram: new Program("BruteSSH.exe", {
- level: 50,
- tooltip:"This program executes a brute force attack that opens SSH ports",
- req: requireLevel(50),
- time: _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].MillisecondsPerFiveMinutes * 2,
- }),
- FTPCrackProgram: new Program("FTPCrack.exe", {
- level: 100,
- tooltip:"This program cracks open FTP ports",
- req: requireLevel(100),
- time: _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].MillisecondsPerHalfHour,
- }),
- RelaySMTPProgram: new Program("relaySMTP.exe", {
- level: 250,
- tooltip:"This program opens SMTP ports by redirecting data",
- req: requireLevel(250),
- time: _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].MillisecondsPer2Hours,
- }),
- HTTPWormProgram: new Program("HTTPWorm.exe", {
- level: 500,
- tooltip:"This virus opens up HTTP ports",
- req: requireLevel(500),
- time: _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].MillisecondsPer4Hours,
- }),
- SQLInjectProgram: new Program("SQLInject.exe", {
- level: 750,
- tooltip:"This virus opens SQL ports",
- req: requireLevel(750),
- time: _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].MillisecondsPer8Hours,
- }),
- DeepscanV1: new Program("DeepscanV1.exe", {
- level: 75,
- tooltip:"This program allows you to use the scan-analyze command with a depth up to 5",
- req: requireLevel(75),
- time: _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].MillisecondsPerQuarterHour,
- }),
- DeepscanV2: new Program("DeepscanV2.exe", {
- level: 400,
- tooltip:"This program allows you to use the scan-analyze command with a depth up to 10",
- req: requireLevel(400),
- time: _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].MillisecondsPer2Hours,
- }),
- ServerProfiler: new Program("ServerProfiler.exe", {
- level: 75,
- tooltip:"This program is used to display hacking and Netscript-related information about servers",
- req: requireLevel(75),
- time: _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].MillisecondsPerHalfHour,
- }),
- AutoLink: new Program("AutoLink.exe", {
- level: 25,
- tooltip:"This program allows you to directly connect to other servers through the 'scan-analyze' command",
- req: requireLevel(25),
- time: _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].MillisecondsPerQuarterHour,
- }),
- BitFlume: new Program("b1t_flum3.exe", {
- level: 1,
- tooltip:"This program creates a portal to the BitNode Nexus (allows you to restart and switch BitNodes)",
- req: function() {return _Player__WEBPACK_IMPORTED_MODULE_1__[/* Player */ "a"].sourceFiles.length > 0 && _Player__WEBPACK_IMPORTED_MODULE_1__[/* Player */ "a"].hacking_skill >= 1},
- time: _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].MillisecondsPerFiveMinutes / 20,
- }),
- // special because you can't create it.
- Flight: new Program("fl1ght.exe"),
-};
-
-// this has the same key as 'Programs', not program names
-const aLinks = {};
-
-function displayCreateProgramContent() {
- for(const key in aLinks) {
- const p = Programs[key]
- aLinks[key].style.display = "none";
- if(!_Player__WEBPACK_IMPORTED_MODULE_1__[/* Player */ "a"].hasProgram(p.name) && p.create.req()){
- aLinks[key].style.display = "inline-block";
- }
- }
-}
-
-//Returns the number of programs that are currently available to be created
-function getNumAvailableCreateProgram() {
- var count = 0;
- for(const key in Programs) {
- if(Programs[key].create === undefined) { // a program we can't create
- continue
- }
- if(_Player__WEBPACK_IMPORTED_MODULE_1__[/* Player */ "a"].hasProgram(Programs[key].name)) { // can't create it twice
- continue
- }
-
- if(!Programs[key].create.req()) { // if you don't fullfill the creation requirement
- continue
- }
-
- count++;
- }
-
- if (_Player__WEBPACK_IMPORTED_MODULE_1__[/* Player */ "a"].firstProgramAvailable === false && count > 0) {
- _Player__WEBPACK_IMPORTED_MODULE_1__[/* Player */ "a"].firstProgramAvailable = true;
- document.getElementById("create-program-tab").style.display = "list-item";
- document.getElementById("hacking-menu-header").click();
- document.getElementById("hacking-menu-header").click();
- }
- return count;
-}
-
-function initCreateProgramButtons() {
- var createProgramList = document.getElementById("create-program-list");
- for(const key in Programs) {
- if(Programs[key].create === undefined) {
- continue
- }
- const elem = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_2__["createElement"])("a", {
- class: "a-link-button", id: Programs[key].htmlID(), innerText: Programs[key].name,
- tooltip: Programs[key].create.tooltip,
- });
- aLinks[key] = elem;
- createProgramList.appendChild(elem);
- }
-
- for(const key in aLinks) {
- const p = Programs[key]
- aLinks[key].addEventListener("click", function() {
- _Player__WEBPACK_IMPORTED_MODULE_1__[/* Player */ "a"].startCreateProgramWork(p.name, p.create.time, p.create.level);
- return false;
- });
- }
-}
-
-
-
/***/ }),
/* 25 */
@@ -12377,16 +12225,16 @@ function initCreateProgramButtons() {
/* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Constants */ 1);
/* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_Constants__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _engine__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./engine */ 8);
-/* harmony import */ var _JSInterpreter__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./JSInterpreter */ 130);
-/* harmony import */ var _NetscriptEnvironment__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./NetscriptEnvironment */ 115);
+/* harmony import */ var _JSInterpreter__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./JSInterpreter */ 132);
+/* harmony import */ var _NetscriptEnvironment__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./NetscriptEnvironment */ 116);
/* harmony import */ var _NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./NetscriptEvaluator */ 6);
/* harmony import */ var _NetscriptFunctions__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./NetscriptFunctions */ 43);
-/* harmony import */ var _NetscriptJSEvaluator__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./NetscriptJSEvaluator */ 116);
-/* harmony import */ var _NetscriptPort__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./NetscriptPort */ 71);
+/* harmony import */ var _NetscriptJSEvaluator__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./NetscriptJSEvaluator */ 117);
+/* harmony import */ var _NetscriptPort__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./NetscriptPort */ 72);
/* harmony import */ var _Server__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Server */ 11);
/* harmony import */ var _Settings__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./Settings */ 19);
/* harmony import */ var _Settings__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_Settings__WEBPACK_IMPORTED_MODULE_10__);
-/* harmony import */ var escodegen__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! escodegen */ 109);
+/* harmony import */ var escodegen__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! escodegen */ 110);
/* harmony import */ var escodegen__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(escodegen__WEBPACK_IMPORTED_MODULE_11__);
/* harmony import */ var _utils_acorn__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../utils/acorn */ 48);
/* harmony import */ var _utils_acorn__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_utils_acorn__WEBPACK_IMPORTED_MODULE_12__);
@@ -12420,7 +12268,7 @@ function initCreateProgramButtons() {
-const walk = __webpack_require__(/*! acorn/dist/walk */ 147);
+const walk = __webpack_require__(/*! acorn/dist/walk */ 149);
function WorkerScript(runningScriptObj) {
this.name = runningScriptObj.filename;
@@ -13115,7 +12963,7 @@ JSONReviver_1.Reviver.constructors.Stock = Stock;
Object.defineProperty(exports, "__esModule", { value: true });
// Constructs all CompanyPosition objects using the metadata in data/companypositions.ts
-const CompanyPositionsMetadata_1 = __webpack_require__(/*! ./data/CompanyPositionsMetadata */ 206);
+const CompanyPositionsMetadata_1 = __webpack_require__(/*! ./data/CompanyPositionsMetadata */ 211);
const CompanyPosition_1 = __webpack_require__(/*! ./CompanyPosition */ 85);
exports.CompanyPositions = {};
function addCompanyPosition(params) {
@@ -13219,24 +13067,24 @@ exports.removeChildrenFromElement = removeChildrenFromElement;
/* harmony import */ var _utils_helpers_getTimestamp__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_getTimestamp__WEBPACK_IMPORTED_MODULE_19__);
/* harmony import */ var _utils_helpers_roundToTwo__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../utils/helpers/roundToTwo */ 81);
/* harmony import */ var _utils_helpers_roundToTwo__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_roundToTwo__WEBPACK_IMPORTED_MODULE_20__);
-var ace = __webpack_require__(/*! brace */ 265);
-var beautify = __webpack_require__(/*! js-beautify */ 264).js_beautify;
-__webpack_require__(/*! brace/mode/javascript */ 263);
-__webpack_require__(/*! ../netscript */ 193);
-__webpack_require__(/*! brace/theme/chaos */ 262);
-__webpack_require__(/*! brace/theme/chrome */ 261);
-__webpack_require__(/*! brace/theme/monokai */ 260);
-__webpack_require__(/*! brace/theme/solarized_dark */ 259);
-__webpack_require__(/*! brace/theme/solarized_light */ 258);
-__webpack_require__(/*! brace/theme/terminal */ 257);
-__webpack_require__(/*! brace/theme/twilight */ 256);
-__webpack_require__(/*! brace/theme/xcode */ 255);
-__webpack_require__(/*! brace/keybinding/vim */ 254);
-__webpack_require__(/*! brace/keybinding/emacs */ 253);
-__webpack_require__(/*! brace/ext/language_tools */ 252);
+var ace = __webpack_require__(/*! brace */ 270);
+var beautify = __webpack_require__(/*! js-beautify */ 269).js_beautify;
+__webpack_require__(/*! brace/mode/javascript */ 268);
+__webpack_require__(/*! ../netscript */ 198);
+__webpack_require__(/*! brace/theme/chaos */ 267);
+__webpack_require__(/*! brace/theme/chrome */ 266);
+__webpack_require__(/*! brace/theme/monokai */ 265);
+__webpack_require__(/*! brace/theme/solarized_dark */ 264);
+__webpack_require__(/*! brace/theme/solarized_light */ 263);
+__webpack_require__(/*! brace/theme/terminal */ 262);
+__webpack_require__(/*! brace/theme/twilight */ 261);
+__webpack_require__(/*! brace/theme/xcode */ 260);
+__webpack_require__(/*! brace/keybinding/vim */ 259);
+__webpack_require__(/*! brace/keybinding/emacs */ 258);
+__webpack_require__(/*! brace/ext/language_tools */ 257);
// Importing this doesn't work for some reason.
-const walk = __webpack_require__(/*! acorn/dist/walk */ 147);
+const walk = __webpack_require__(/*! acorn/dist/walk */ 149);
@@ -14359,7 +14207,7 @@ _utils_JSONReviver__WEBPACK_IMPORTED_MODULE_16__["Reviver"].constructors.AllServ
/* harmony import */ var _utils_helpers_addOffset__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_addOffset__WEBPACK_IMPORTED_MODULE_16__);
/* harmony import */ var _utils_uiHelpers_appendLineBreaks__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../utils/uiHelpers/appendLineBreaks */ 57);
/* harmony import */ var _utils_uiHelpers_appendLineBreaks__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_appendLineBreaks__WEBPACK_IMPORTED_MODULE_17__);
-/* harmony import */ var _utils_helpers_clearObject__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../utils/helpers/clearObject */ 77);
+/* harmony import */ var _utils_helpers_clearObject__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../utils/helpers/clearObject */ 78);
/* harmony import */ var _utils_helpers_clearObject__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_clearObject__WEBPACK_IMPORTED_MODULE_18__);
/* harmony import */ var _utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../utils/uiHelpers/createElement */ 2);
/* harmony import */ var _utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_19__);
@@ -19718,7 +19566,8 @@ exports.isString = isString;
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return initMessages; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Message; });
/* harmony import */ var _Augmentations__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Augmentations */ 21);
-/* harmony import */ var _CreateProgram__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CreateProgram */ 24);
+/* harmony import */ var _Programs_Programs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Programs/Programs */ 24);
+/* harmony import */ var _Programs_Programs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_Programs_Programs__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _Missions__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Missions */ 55);
/* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Player */ 0);
/* harmony import */ var _RedPill__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./RedPill */ 58);
@@ -19815,7 +19664,7 @@ function checkForMessagesToSend() {
}
} else if (jumper0 && !jumper0.recvd && _Player__WEBPACK_IMPORTED_MODULE_3__[/* Player */ "a"].hacking_skill >= 25) {
sendMessage(jumper0);
- _Player__WEBPACK_IMPORTED_MODULE_3__[/* Player */ "a"].getHomeComputer().programs.push(_CreateProgram__WEBPACK_IMPORTED_MODULE_1__[/* Programs */ "a"].Flight.name);
+ _Player__WEBPACK_IMPORTED_MODULE_3__[/* Player */ "a"].getHomeComputer().programs.push(_Programs_Programs__WEBPACK_IMPORTED_MODULE_1__["Programs"].Flight.name);
} else if (jumper1 && !jumper1.recvd && _Player__WEBPACK_IMPORTED_MODULE_3__[/* Player */ "a"].hacking_skill >= 40) {
sendMessage(jumper1);
} else if (cybersecTest && !cybersecTest.recvd && _Player__WEBPACK_IMPORTED_MODULE_3__[/* Player */ "a"].hacking_skill >= 50) {
@@ -19944,7 +19793,7 @@ const JSONReviver_1 = __webpack_require__(/*! ../utils/JSONReviver */ 13);
const createElement_1 = __webpack_require__(/*! ../utils/uiHelpers/createElement */ 2);
const createPopup_1 = __webpack_require__(/*! ../utils/uiHelpers/createPopup */ 37);
const removeElementById_1 = __webpack_require__(/*! ../utils/uiHelpers/removeElementById */ 20);
-const codingcontracttypes_1 = __webpack_require__(/*! ./data/codingcontracttypes */ 198);
+const codingcontracttypes_1 = __webpack_require__(/*! ./data/codingcontracttypes */ 203);
/* tslint:disable:no-magic-numbers completed-docs max-classes-per-file no-console */
/* Represents different types of problems that a Coding Contract can have */
class CodingContractType {
@@ -20119,7 +19968,7 @@ JSONReviver_1.Reviver.constructors.CodingContract = CodingContract;
/* harmony import */ var _BitNodeMultipliers__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_BitNodeMultipliers__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _Crimes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Crimes */ 38);
/* harmony import */ var _Bladeburner__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Bladeburner */ 31);
-/* harmony import */ var _Company_Company__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Company/Company */ 73);
+/* harmony import */ var _Company_Company__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Company/Company */ 74);
/* harmony import */ var _Company_Company__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_Company_Company__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _Company_Companies__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Company/Companies */ 18);
/* harmony import */ var _Company_Companies__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_Company_Companies__WEBPACK_IMPORTED_MODULE_6__);
@@ -20129,21 +19978,23 @@ JSONReviver_1.Reviver.constructors.CodingContract = CodingContract;
/* harmony import */ var _Company_CompanyPositions__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_Company_CompanyPositions__WEBPACK_IMPORTED_MODULE_8__);
/* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Constants */ 1);
/* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_Constants__WEBPACK_IMPORTED_MODULE_9__);
-/* harmony import */ var _CreateProgram__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./CreateProgram */ 24);
-/* harmony import */ var _DarkWeb__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./DarkWeb */ 79);
-/* harmony import */ var _Hacking__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./Hacking */ 49);
-/* harmony import */ var _Gang__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./Gang */ 50);
-/* harmony import */ var _Faction_Faction__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./Faction/Faction */ 56);
-/* harmony import */ var _Faction_Faction__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(_Faction_Faction__WEBPACK_IMPORTED_MODULE_14__);
-/* harmony import */ var _Faction_Factions__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./Faction/Factions */ 14);
-/* harmony import */ var _Faction_Factions__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(_Faction_Factions__WEBPACK_IMPORTED_MODULE_15__);
-/* harmony import */ var _Faction_FactionHelpers__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./Faction/FactionHelpers */ 46);
-/* harmony import */ var _HacknetNode__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./HacknetNode */ 67);
-/* harmony import */ var _Locations__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./Locations */ 5);
-/* harmony import */ var _Locations__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(_Locations__WEBPACK_IMPORTED_MODULE_18__);
-/* harmony import */ var _Message__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./Message */ 41);
-/* harmony import */ var _Missions__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./Missions */ 55);
-/* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./Player */ 0);
+/* harmony import */ var _DarkWeb_DarkWebItems__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./DarkWeb/DarkWebItems */ 71);
+/* harmony import */ var _DarkWeb_DarkWebItems__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_DarkWeb_DarkWebItems__WEBPACK_IMPORTED_MODULE_10__);
+/* harmony import */ var _Hacking__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./Hacking */ 49);
+/* harmony import */ var _Gang__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./Gang */ 50);
+/* harmony import */ var _Faction_Faction__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./Faction/Faction */ 56);
+/* harmony import */ var _Faction_Faction__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(_Faction_Faction__WEBPACK_IMPORTED_MODULE_13__);
+/* harmony import */ var _Faction_Factions__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./Faction/Factions */ 14);
+/* harmony import */ var _Faction_Factions__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(_Faction_Factions__WEBPACK_IMPORTED_MODULE_14__);
+/* harmony import */ var _Faction_FactionHelpers__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./Faction/FactionHelpers */ 46);
+/* harmony import */ var _HacknetNode__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./HacknetNode */ 67);
+/* harmony import */ var _Locations__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./Locations */ 5);
+/* harmony import */ var _Locations__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(_Locations__WEBPACK_IMPORTED_MODULE_17__);
+/* harmony import */ var _Message__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./Message */ 41);
+/* harmony import */ var _Missions__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./Missions */ 55);
+/* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./Player */ 0);
+/* harmony import */ var _Programs_Programs__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./Programs/Programs */ 24);
+/* harmony import */ var _Programs_Programs__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/__webpack_require__.n(_Programs_Programs__WEBPACK_IMPORTED_MODULE_21__);
/* harmony import */ var _Script__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./Script */ 30);
/* harmony import */ var _Server__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./Server */ 11);
/* harmony import */ var _Settings__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./Settings */ 19);
@@ -20160,12 +20011,12 @@ JSONReviver_1.Reviver.constructors.CodingContract = CodingContract;
/* harmony import */ var _NetscriptGang__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./NetscriptGang */ 39);
/* harmony import */ var _NetscriptWorker__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./NetscriptWorker */ 25);
/* harmony import */ var _NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./NetscriptEvaluator */ 6);
-/* harmony import */ var _NetscriptPort__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./NetscriptPort */ 71);
+/* harmony import */ var _NetscriptPort__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./NetscriptPort */ 72);
/* harmony import */ var decimal_js__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! decimal.js */ 35);
/* harmony import */ var _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./ui/navigationTracking */ 12);
/* harmony import */ var _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_36___default = /*#__PURE__*/__webpack_require__.n(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_36__);
/* harmony import */ var _utils_DialogBox__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ../utils/DialogBox */ 9);
-/* harmony import */ var _utils_helpers_isPowerOfTwo__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ../utils/helpers/isPowerOfTwo */ 131);
+/* harmony import */ var _utils_helpers_isPowerOfTwo__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ../utils/helpers/isPowerOfTwo */ 133);
/* harmony import */ var _utils_helpers_isPowerOfTwo__WEBPACK_IMPORTED_MODULE_38___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_isPowerOfTwo__WEBPACK_IMPORTED_MODULE_38__);
/* harmony import */ var _utils_helpers_arrayToString__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ../utils/helpers/arrayToString */ 54);
/* harmony import */ var _utils_helpers_arrayToString__WEBPACK_IMPORTED_MODULE_39___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_arrayToString__WEBPACK_IMPORTED_MODULE_39__);
@@ -20176,8 +20027,8 @@ JSONReviver_1.Reviver.constructors.CodingContract = CodingContract;
/* harmony import */ var _utils_helpers_isString__WEBPACK_IMPORTED_MODULE_42___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_isString__WEBPACK_IMPORTED_MODULE_42__);
/* harmony import */ var _utils_YesNoBox__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ../utils/YesNoBox */ 17);
/* harmony import */ var _utils_YesNoBox__WEBPACK_IMPORTED_MODULE_43___default = /*#__PURE__*/__webpack_require__.n(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_43__);
-var sprintf = __webpack_require__(/*! sprintf-js */ 148).sprintf,
- vsprintf = __webpack_require__(/*! sprintf-js */ 148).vsprintf
+var sprintf = __webpack_require__(/*! sprintf-js */ 150).sprintf,
+ vsprintf = __webpack_require__(/*! sprintf-js */ 150).vsprintf
@@ -20309,20 +20160,20 @@ var possibleLogs = {
//Used to check and set flags for every Source File, despite the name of the function
function initSingularitySFFlags() {
- for (var i = 0; i < _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].sourceFiles.length; ++i) {
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].sourceFiles[i].n === 3) {hasCorporationSF = true;}
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].sourceFiles[i].n === 4) {
+ for (var i = 0; i < _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].sourceFiles.length; ++i) {
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].sourceFiles[i].n === 3) {hasCorporationSF = true;}
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].sourceFiles[i].n === 4) {
hasSingularitySF = true;
- singularitySFLvl = _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].sourceFiles[i].lvl;
+ singularitySFLvl = _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].sourceFiles[i].lvl;
}
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].sourceFiles[i].n === 5) {hasAISF = true;}
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].sourceFiles[i].n === 6) {hasBladeburnerSF = true;}
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].sourceFiles[i].n === 7) {hasBladeburner2079SF = true;}
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].sourceFiles[i].n === 8) {
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].sourceFiles[i].n === 5) {hasAISF = true;}
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].sourceFiles[i].n === 6) {hasBladeburnerSF = true;}
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].sourceFiles[i].n === 7) {hasBladeburner2079SF = true;}
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].sourceFiles[i].n === 8) {
hasWallStreetSF = true;
- wallStreetSFLvl = _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].sourceFiles[i].lvl;
+ wallStreetSFLvl = _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].sourceFiles[i].lvl;
}
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].sourceFiles[i].n === 11) {hasBn11SF = true;}
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].sourceFiles[i].n === 11) {hasBn11SF = true;}
}
}
@@ -20376,10 +20227,10 @@ function NetscriptFunctions(workerScript) {
if (isNaN(i)) {
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Invalid index specified for Hacknet Node: " + i);
}
- if (i < 0 || i >= _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].hacknetNodes.length) {
+ if (i < 0 || i >= _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].hacknetNodes.length) {
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Index specified for Hacknet Node is out-of-bounds: " + i);
}
- return _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].hacknetNodes[i];
+ return _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].hacknetNodes[i];
};
var getCodingContract = function(fn, ip) {
@@ -20408,13 +20259,13 @@ function NetscriptFunctions(workerScript) {
return {
hacknet : {
numNodes : function() {
- return _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].hacknetNodes.length;
+ return _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].hacknetNodes.length;
},
purchaseNode : function() {
- return Object(_HacknetNode__WEBPACK_IMPORTED_MODULE_17__[/* purchaseHacknet */ "e"])();
+ return Object(_HacknetNode__WEBPACK_IMPORTED_MODULE_16__[/* purchaseHacknet */ "e"])();
},
getPurchaseNodeCost : function() {
- return Object(_HacknetNode__WEBPACK_IMPORTED_MODULE_17__[/* getCostOfNextHacknetNode */ "c"])();
+ return Object(_HacknetNode__WEBPACK_IMPORTED_MODULE_16__[/* getCostOfNextHacknetNode */ "c"])();
},
getNodeStats : function(i) {
var node = getHacknetNode(i);
@@ -20499,7 +20350,7 @@ function NetscriptFunctions(workerScript) {
}
//Calculate the hacking time
- var hackingTime = Object(_Hacking__WEBPACK_IMPORTED_MODULE_12__[/* calculateHackingTime */ "d"])(server); //This is in seconds
+ var hackingTime = Object(_Hacking__WEBPACK_IMPORTED_MODULE_11__[/* calculateHackingTime */ "d"])(server); //This is in seconds
//No root access or skill level too low
if (server.hasAdminRights == false) {
@@ -20507,7 +20358,7 @@ function NetscriptFunctions(workerScript) {
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot hack this server (" + server.hostname + ") because user does not have root access");
}
- if (server.requiredHackingSkill > _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].hacking_skill) {
+ if (server.requiredHackingSkill > _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].hacking_skill) {
workerScript.scriptRef.log("Cannot hack this server (" + server.hostname + ") because user's hacking skill is not high enough");
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot hack this server (" + server.hostname + ") because user's hacking skill is not high enough");
}
@@ -20517,12 +20368,12 @@ function NetscriptFunctions(workerScript) {
}
return Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* netscriptDelay */ "e"])(hackingTime * 1000, workerScript).then(function() {
if (workerScript.env.stopFlag) {return Promise.reject(workerScript);}
- var hackChance = Object(_Hacking__WEBPACK_IMPORTED_MODULE_12__[/* calculateHackingChance */ "b"])(server);
+ var hackChance = Object(_Hacking__WEBPACK_IMPORTED_MODULE_11__[/* calculateHackingChance */ "b"])(server);
var rand = Math.random();
- var expGainedOnSuccess = Object(_Hacking__WEBPACK_IMPORTED_MODULE_12__[/* calculateHackingExpGain */ "c"])(server) * threads;
+ var expGainedOnSuccess = Object(_Hacking__WEBPACK_IMPORTED_MODULE_11__[/* calculateHackingExpGain */ "c"])(server) * threads;
var expGainedOnFailure = (expGainedOnSuccess / 4);
if (rand < hackChance) { //Success!
- const percentHacked = Object(_Hacking__WEBPACK_IMPORTED_MODULE_12__[/* calculatePercentMoneyHacked */ "e"])(server);
+ const percentHacked = Object(_Hacking__WEBPACK_IMPORTED_MODULE_11__[/* calculatePercentMoneyHacked */ "e"])(server);
let maxThreadNeeded = Math.ceil(1/percentHacked*(server.moneyAvailable/server.moneyMax));
if (isNaN(maxThreadNeeded)) {
//Server has a 'max money' of 0 (probably).
@@ -20541,11 +20392,11 @@ function NetscriptFunctions(workerScript) {
server.moneyAvailable -= moneyGained;
if (server.moneyAvailable < 0) {server.moneyAvailable = 0;}
- _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].gainMoney(moneyGained);
+ _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].gainMoney(moneyGained);
workerScript.scriptRef.onlineMoneyMade += moneyGained;
- _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].scriptProdSinceLastAug += moneyGained;
+ _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].scriptProdSinceLastAug += moneyGained;
workerScript.scriptRef.recordHack(server.ip, moneyGained, threads);
- _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].gainHackingExp(expGainedOnSuccess);
+ _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].gainHackingExp(expGainedOnSuccess);
workerScript.scriptRef.onlineExpGained += expGainedOnSuccess;
if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.hack == null) {
workerScript.scriptRef.log("Script SUCCESSFULLY hacked " + server.hostname + " for $" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_41__["formatNumber"])(moneyGained, 2) + " and " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_41__["formatNumber"])(expGainedOnSuccess, 4) + " exp (t=" + threads + ")");
@@ -20554,7 +20405,7 @@ function NetscriptFunctions(workerScript) {
return Promise.resolve(moneyGained);
} else {
//Player only gains 25% exp for failure?
- _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].gainHackingExp(expGainedOnFailure);
+ _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].gainHackingExp(expGainedOnFailure);
workerScript.scriptRef.onlineExpGained += expGainedOnFailure;
if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.hack == null) {
workerScript.scriptRef.log("Script FAILED to hack " + server.hostname + ". Gained " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_41__["formatNumber"])(expGainedOnFailure, 4) + " exp (t=" + threads + ")");
@@ -20597,7 +20448,7 @@ function NetscriptFunctions(workerScript) {
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot grow this server (" + server.hostname + ") because user does not have root access");
}
- var growTime = Object(_Hacking__WEBPACK_IMPORTED_MODULE_12__[/* calculateGrowTime */ "a"])(server);
+ var growTime = Object(_Hacking__WEBPACK_IMPORTED_MODULE_11__[/* calculateGrowTime */ "a"])(server);
if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.grow == null) {
workerScript.scriptRef.log("Executing grow() on server " + server.hostname + " in " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_41__["formatNumber"])(growTime, 3) + " seconds (t=" + threads + ")");
}
@@ -20608,7 +20459,7 @@ function NetscriptFunctions(workerScript) {
var growthPercentage = Object(_Server__WEBPACK_IMPORTED_MODULE_23__[/* processSingleServerGrowth */ "k"])(server, 450 * threads);
const moneyAfter = server.moneyAvailable;
workerScript.scriptRef.recordGrow(server.ip, threads);
- var expGain = Object(_Hacking__WEBPACK_IMPORTED_MODULE_12__[/* calculateHackingExpGain */ "c"])(server) * threads;
+ var expGain = Object(_Hacking__WEBPACK_IMPORTED_MODULE_11__[/* calculateHackingExpGain */ "c"])(server) * threads;
if (growthPercentage == 1) {
expGain = 0;
}
@@ -20618,7 +20469,7 @@ function NetscriptFunctions(workerScript) {
Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_41__["formatNumber"])(expGain, 4) + " hacking exp (t=" + threads +")");
}
workerScript.scriptRef.onlineExpGained += expGain;
- _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].gainHackingExp(expGain);
+ _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].gainHackingExp(expGain);
return Promise.resolve(moneyAfter/moneyBefore);
});
},
@@ -20658,7 +20509,7 @@ function NetscriptFunctions(workerScript) {
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot weaken this server (" + server.hostname + ") because user does not have root access");
}
- var weakenTime = Object(_Hacking__WEBPACK_IMPORTED_MODULE_12__[/* calculateWeakenTime */ "f"])(server);
+ var weakenTime = Object(_Hacking__WEBPACK_IMPORTED_MODULE_11__[/* calculateWeakenTime */ "f"])(server);
if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.weaken == null) {
workerScript.scriptRef.log("Executing weaken() on server " + server.hostname + " in " +
Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_41__["formatNumber"])(weakenTime, 3) + " seconds (t=" + threads + ")");
@@ -20667,13 +20518,13 @@ function NetscriptFunctions(workerScript) {
if (workerScript.env.stopFlag) {return Promise.reject(workerScript);}
server.weaken(_Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ServerWeakenAmount * threads);
workerScript.scriptRef.recordWeaken(server.ip, threads);
- var expGain = Object(_Hacking__WEBPACK_IMPORTED_MODULE_12__[/* calculateHackingExpGain */ "c"])(server) * threads;
+ var expGain = Object(_Hacking__WEBPACK_IMPORTED_MODULE_11__[/* calculateHackingExpGain */ "c"])(server) * threads;
if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.weaken == null) {
workerScript.scriptRef.log("Server security level on " + server.hostname + " weakened to " + server.hackDifficulty +
". Gained " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_41__["formatNumber"])(expGain, 4) + " hacking exp (t=" + threads + ")");
}
workerScript.scriptRef.onlineExpGained += expGain;
- _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].gainHackingExp(expGain);
+ _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].gainHackingExp(expGain);
return Promise.resolve(_Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ServerWeakenAmount * threads);
});
},
@@ -20762,7 +20613,7 @@ function NetscriptFunctions(workerScript) {
workerScript.scriptRef.log("Cannot call nuke(). Invalid IP or hostname passed in: " + ip);
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot call nuke(). Invalid IP or hostname passed in: " + ip);
}
- if (!_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].hasProgram(_CreateProgram__WEBPACK_IMPORTED_MODULE_10__[/* Programs */ "a"].NukeProgram.name)) {
+ if (!_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].hasProgram(_Programs_Programs__WEBPACK_IMPORTED_MODULE_21__["Programs"].NukeProgram.name)) {
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "You do not have the NUKE.exe virus!");
}
if (server.openPortCount < server.numOpenPortsRequired) {
@@ -20793,7 +20644,7 @@ function NetscriptFunctions(workerScript) {
workerScript.scriptRef.log("Cannot call brutessh(). Invalid IP or hostname passed in: " + ip);
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot call brutessh(). Invalid IP or hostname passed in: " + ip);
}
- if (!_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].hasProgram(_CreateProgram__WEBPACK_IMPORTED_MODULE_10__[/* Programs */ "a"].BruteSSHProgram.name)) {
+ if (!_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].hasProgram(_Programs_Programs__WEBPACK_IMPORTED_MODULE_21__["Programs"].BruteSSHProgram.name)) {
workerScript.scriptRef.log("You do not have the BruteSSH.exe program!");
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "You do not have the BruteSSH.exe program!");
}
@@ -20823,7 +20674,7 @@ function NetscriptFunctions(workerScript) {
workerScript.scriptRef.log("Cannot call ftpcrack(). Invalid IP or hostname passed in: " + ip);
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot call ftpcrack(). Invalid IP or hostname passed in: " + ip);
}
- if (!_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].hasProgram(_CreateProgram__WEBPACK_IMPORTED_MODULE_10__[/* Programs */ "a"].FTPCrackProgram.name)) {
+ if (!_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].hasProgram(_Programs_Programs__WEBPACK_IMPORTED_MODULE_21__["Programs"].FTPCrackProgram.name)) {
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "You do not have the FTPCrack.exe program!");
}
if (!server.ftpPortOpen) {
@@ -20852,7 +20703,7 @@ function NetscriptFunctions(workerScript) {
workerScript.scriptRef.log("Cannot call relaysmtp(). Invalid IP or hostname passed in: " + ip);
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot call relaysmtp(). Invalid IP or hostname passed in: " + ip);
}
- if (!_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].hasProgram(_CreateProgram__WEBPACK_IMPORTED_MODULE_10__[/* Programs */ "a"].RelaySMTPProgram.name)) {
+ if (!_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].hasProgram(_Programs_Programs__WEBPACK_IMPORTED_MODULE_21__["Programs"].RelaySMTPProgram.name)) {
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "You do not have the relaySMTP.exe program!");
}
if (!server.smtpPortOpen) {
@@ -20881,7 +20732,7 @@ function NetscriptFunctions(workerScript) {
workerScript.scriptRef.log("Cannot call httpworm(). Invalid IP or hostname passed in: " + ip);
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot call httpworm(). Invalid IP or hostname passed in: " + ip);
}
- if (!_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].hasProgram(_CreateProgram__WEBPACK_IMPORTED_MODULE_10__[/* Programs */ "a"].HTTPWormProgram.name)) {
+ if (!_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].hasProgram(_Programs_Programs__WEBPACK_IMPORTED_MODULE_21__["Programs"].HTTPWormProgram.name)) {
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "You do not have the HTTPWorm.exe program!");
}
if (!server.httpPortOpen) {
@@ -20910,7 +20761,7 @@ function NetscriptFunctions(workerScript) {
workerScript.scriptRef.log("Cannot call sqlinject(). Invalid IP or hostname passed in: " + ip);
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot call sqlinject(). Invalid IP or hostname passed in: " + ip);
}
- if (!_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].hasProgram(_CreateProgram__WEBPACK_IMPORTED_MODULE_10__[/* Programs */ "a"].SQLInjectProgram.name)) {
+ if (!_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].hasProgram(_Programs_Programs__WEBPACK_IMPORTED_MODULE_21__["Programs"].SQLInjectProgram.name)) {
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "You do not have the SQLInject.exe program!");
}
if (!server.sqlPortOpen) {
@@ -21128,7 +20979,7 @@ function NetscriptFunctions(workerScript) {
if (scriptname.endsWith(".lit")) {
var found = false;
for (var i = 0; i < currServ.messages.length; ++i) {
- if (!(currServ.messages[i] instanceof _Message__WEBPACK_IMPORTED_MODULE_19__[/* Message */ "a"]) && currServ.messages[i] == scriptname) {
+ if (!(currServ.messages[i] instanceof _Message__WEBPACK_IMPORTED_MODULE_18__[/* Message */ "a"]) && currServ.messages[i] == scriptname) {
found = true;
break;
}
@@ -21270,7 +21121,7 @@ function NetscriptFunctions(workerScript) {
}
for (var i = 0; i < server.messages.length; i++) {
if (filter) {
- if (server.messages[i] instanceof _Message__WEBPACK_IMPORTED_MODULE_19__[/* Message */ "a"]) {
+ if (server.messages[i] instanceof _Message__WEBPACK_IMPORTED_MODULE_18__[/* Message */ "a"]) {
if (server.messages[i].filename.includes(filter)) {
allFiles.push(server.messages[i].filename);
}
@@ -21278,7 +21129,7 @@ function NetscriptFunctions(workerScript) {
allFiles.push(server.messages[i]);
}
} else {
- if (server.messages[i] instanceof _Message__WEBPACK_IMPORTED_MODULE_19__[/* Message */ "a"]) {
+ if (server.messages[i] instanceof _Message__WEBPACK_IMPORTED_MODULE_18__[/* Message */ "a"]) {
allFiles.push(server.messages[i].filename);
} else {
allFiles.push(server.messages[i]);
@@ -21369,11 +21220,11 @@ function NetscriptFunctions(workerScript) {
return updateStaticRam("getHackingLevel", _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptGetHackingLevelRamCost);
}
updateDynamicRam("getHackingLevel", _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptGetHackingLevelRamCost);
- _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].updateSkillLevels();
+ _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].updateSkillLevels();
if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.getHackingLevel == null) {
- workerScript.scriptRef.log("getHackingLevel() returned " + _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].hacking_skill);
+ workerScript.scriptRef.log("getHackingLevel() returned " + _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].hacking_skill);
}
- return _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].hacking_skill;
+ return _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].hacking_skill;
},
getHackingMultipliers : function() {
if (workerScript.checkingRam) {
@@ -21381,10 +21232,10 @@ function NetscriptFunctions(workerScript) {
}
updateDynamicRam("getHackingMultipliers", _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptGetMultipliersRamCost);
return {
- chance: _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].hacking_chance_mult,
- speed: _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].hacking_speed_mult,
- money: _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].hacking_money_mult,
- growth: _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].hacking_grow_mult,
+ chance: _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].hacking_chance_mult,
+ speed: _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].hacking_speed_mult,
+ money: _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].hacking_money_mult,
+ growth: _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].hacking_grow_mult,
};
},
getHacknetMultipliers : function() {
@@ -21393,11 +21244,11 @@ function NetscriptFunctions(workerScript) {
}
updateDynamicRam("getHacknetMultipliers", _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptGetMultipliersRamCost);
return {
- production: _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].hacknet_node_money_mult,
- purchaseCost: _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].hacknet_node_purchase_cost_mult,
- ramCost: _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].hacknet_node_ram_cost_mult,
- coreCost: _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].hacknet_node_core_cost_mult,
- levelCost: _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].hacknet_node_level_cost_mult,
+ production: _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].hacknet_node_money_mult,
+ purchaseCost: _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].hacknet_node_purchase_cost_mult,
+ ramCost: _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].hacknet_node_ram_cost_mult,
+ coreCost: _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].hacknet_node_core_cost_mult,
+ levelCost: _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].hacknet_node_level_cost_mult,
};
},
getBitNodeMultipliers: function() {
@@ -21424,9 +21275,9 @@ function NetscriptFunctions(workerScript) {
if (server.hostname == "home") {
//Return player's money
if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.getServerMoneyAvailable == null) {
- workerScript.scriptRef.log("getServerMoneyAvailable('home') returned player's money: $" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_41__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].money.toNumber(), 2));
+ workerScript.scriptRef.log("getServerMoneyAvailable('home') returned player's money: $" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_41__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].money.toNumber(), 2));
}
- return _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].money.toNumber();
+ return _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].money.toNumber();
}
if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.getServerMoneyAvailable == null) {
workerScript.scriptRef.log("getServerMoneyAvailable() returned " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_41__["formatNumber"])(server.moneyAvailable, 2) + " for " + server.hostname);
@@ -21584,7 +21435,7 @@ function NetscriptFunctions(workerScript) {
}
}
for (var i = 0; i < server.messages.length; ++i) {
- if (!(server.messages[i] instanceof _Message__WEBPACK_IMPORTED_MODULE_19__[/* Message */ "a"]) &&
+ if (!(server.messages[i] instanceof _Message__WEBPACK_IMPORTED_MODULE_18__[/* Message */ "a"]) &&
filename.toLowerCase() === server.messages[i]) {
return true;
}
@@ -21619,7 +21470,7 @@ function NetscriptFunctions(workerScript) {
return updateStaticRam("getStockSymbols", _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptGetStockRamCost);
}
updateDynamicRam("getStockSymbols", _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptGetStockRamCost);
- if (!_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].hasTixApiAccess) {
+ if (!_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].hasTixApiAccess) {
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "You don't have TIX API Access! Cannot use getStockSymbols()");
}
return Object.values(_StockMarket__WEBPACK_IMPORTED_MODULE_27__[/* StockSymbols */ "d"]);
@@ -21629,7 +21480,7 @@ function NetscriptFunctions(workerScript) {
return updateStaticRam("getStockPrice", _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptGetStockRamCost);
}
updateDynamicRam("getStockPrice", _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptGetStockRamCost);
- if (!_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].hasTixApiAccess) {
+ if (!_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].hasTixApiAccess) {
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "You don't have TIX API Access! Cannot use getStockPrice()");
}
var stock = _StockMarket__WEBPACK_IMPORTED_MODULE_27__[/* SymbolToStockMap */ "e"][symbol];
@@ -21643,7 +21494,7 @@ function NetscriptFunctions(workerScript) {
return updateStaticRam("getStockPosition", _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptGetStockRamCost);
}
updateDynamicRam("getStockPosition", _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptGetStockRamCost);
- if (!_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].hasTixApiAccess) {
+ if (!_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].hasTixApiAccess) {
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "You don't have TIX API Access! Cannot use getStockPosition()");
}
var stock = _StockMarket__WEBPACK_IMPORTED_MODULE_27__[/* SymbolToStockMap */ "e"][symbol];
@@ -21657,7 +21508,7 @@ function NetscriptFunctions(workerScript) {
return updateStaticRam("buyStock", _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptBuySellStockRamCost);
}
updateDynamicRam("buyStock", _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptBuySellStockRamCost);
- if (!_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].hasTixApiAccess) {
+ if (!_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].hasTixApiAccess) {
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "You don't have TIX API Access! Cannot use buyStock()");
}
var stock = _StockMarket__WEBPACK_IMPORTED_MODULE_27__[/* SymbolToStockMap */ "e"][symbol];
@@ -21672,7 +21523,7 @@ function NetscriptFunctions(workerScript) {
if (shares === 0) {return 0;}
var totalPrice = stock.price * shares;
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].money.lt(totalPrice + _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].StockMarketCommission)) {
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].money.lt(totalPrice + _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].StockMarketCommission)) {
workerScript.scriptRef.log("Not enough money to purchase " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_41__["formatNumber"])(shares, 0) + " shares of " +
symbol + ". Need $" +
Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_41__["formatNumber"])(totalPrice + _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].StockMarketCommission, 2).toString());
@@ -21680,7 +21531,7 @@ function NetscriptFunctions(workerScript) {
}
var origTotal = stock.playerShares * stock.playerAvgPx;
- _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].loseMoney(totalPrice + _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].StockMarketCommission);
+ _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].loseMoney(totalPrice + _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].StockMarketCommission);
var newTotal = origTotal + totalPrice;
stock.playerShares += shares;
stock.playerAvgPx = newTotal / stock.playerShares;
@@ -21698,7 +21549,7 @@ function NetscriptFunctions(workerScript) {
return updateStaticRam("sellStock", _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptBuySellStockRamCost);
}
updateDynamicRam("sellStock", _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptBuySellStockRamCost);
- if (!_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].hasTixApiAccess) {
+ if (!_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].hasTixApiAccess) {
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "You don't have TIX API Access! Cannot use sellStock()");
}
var stock = _StockMarket__WEBPACK_IMPORTED_MODULE_27__[/* SymbolToStockMap */ "e"][symbol];
@@ -21713,13 +21564,13 @@ function NetscriptFunctions(workerScript) {
if (shares > stock.playerShares) {shares = stock.playerShares;}
if (shares === 0) {return 0;}
var gains = stock.price * shares - _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].StockMarketCommission;
- _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].gainMoney(gains);
+ _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].gainMoney(gains);
//Calculate net profit and add to script stats
var netProfit = ((stock.price - stock.playerAvgPx) * shares) - _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].StockMarketCommission;
if (isNaN(netProfit)) {netProfit = 0;}
workerScript.scriptRef.onlineMoneyMade += netProfit;
- _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].scriptProdSinceLastAug += netProfit;
+ _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].scriptProdSinceLastAug += netProfit;
stock.playerShares -= shares;
if (stock.playerShares == 0) {
@@ -21740,10 +21591,10 @@ function NetscriptFunctions(workerScript) {
return updateStaticRam("shortStock", _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptBuySellStockRamCost);
}
updateDynamicRam("shortStock", _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptBuySellStockRamCost);
- if (!_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].hasTixApiAccess) {
+ if (!_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].hasTixApiAccess) {
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "You don't have TIX API Access! Cannot use shortStock()");
}
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN !== 8) {
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN !== 8) {
if (!(hasWallStreetSF && wallStreetSFLvl >= 2)) {
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "ERROR: Cannot use shortStock(). You must either be in BitNode-8 or you must have Level 2 of Source-File 8");
}
@@ -21760,10 +21611,10 @@ function NetscriptFunctions(workerScript) {
return updateStaticRam("sellShort", _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptBuySellStockRamCost);
}
updateDynamicRam("sellShort", _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptBuySellStockRamCost);
- if (!_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].hasTixApiAccess) {
+ if (!_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].hasTixApiAccess) {
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "You don't have TIX API Access! Cannot use sellShort()");
}
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN !== 8) {
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN !== 8) {
if (!(hasWallStreetSF && wallStreetSFLvl >= 2)) {
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "ERROR: Cannot use sellShort(). You must either be in BitNode-8 or you must have Level 2 of Source-File 8");
}
@@ -21780,10 +21631,10 @@ function NetscriptFunctions(workerScript) {
return updateStaticRam("placeOrder", _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptBuySellStockRamCost);
}
updateDynamicRam("placeOrder", _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptBuySellStockRamCost);
- if (!_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].hasTixApiAccess) {
+ if (!_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].hasTixApiAccess) {
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "You don't have TIX API Access! Cannot use placeOrder()");
}
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN !== 8) {
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN !== 8) {
if (!(hasWallStreetSF && wallStreetSFLvl >= 3)) {
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "ERROR: Cannot use placeOrder(). You must either be in BitNode-8 or have Level 3 of Source-File 8");
}
@@ -21822,10 +21673,10 @@ function NetscriptFunctions(workerScript) {
return updateStaticRam("cancelOrder", _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptBuySellStockRamCost);
}
updateDynamicRam("cancelOrder", _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptBuySellStockRamCost);
- if (!_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].hasTixApiAccess) {
+ if (!_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].hasTixApiAccess) {
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "You don't have TIX API Access! Cannot use cancelOrder()");
}
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN !== 8) {
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN !== 8) {
if (!(hasWallStreetSF && wallStreetSFLvl >= 3)) {
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "ERROR: Cannot use cancelOrder(). You must either be in BitNode-8 or have Level 3 of Source-File 8");
}
@@ -21873,7 +21724,7 @@ function NetscriptFunctions(workerScript) {
return updateStaticRam("getStockVolatility", _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptBuySellStockRamCost);
}
updateDynamicRam("getStockVolatility", _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptBuySellStockRamCost);
- if (!_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].has4SDataTixApi) {
+ if (!_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].has4SDataTixApi) {
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "You don't have 4S Market Data TIX API Access! Cannot use getStockVolatility()");
}
var stock = _StockMarket__WEBPACK_IMPORTED_MODULE_27__[/* SymbolToStockMap */ "e"][symbol];
@@ -21887,7 +21738,7 @@ function NetscriptFunctions(workerScript) {
return updateStaticRam("getStockForecast", _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptBuySellStockRamCost);
}
updateDynamicRam("getStockForecast", _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptBuySellStockRamCost);
- if (!_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].has4SDataTixApi) {
+ if (!_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].has4SDataTixApi) {
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "You don't have 4S Market Data TIX API Access! Cannot use getStockForecast()");
}
var stock = _StockMarket__WEBPACK_IMPORTED_MODULE_27__[/* SymbolToStockMap */ "e"][symbol];
@@ -21904,26 +21755,26 @@ function NetscriptFunctions(workerScript) {
}
updateDynamicRam("purchase4SMarketData", _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptBuySellStockRamCost);
- if (!_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].hasTixApiAccess) {
+ if (!_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].hasTixApiAccess) {
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "You don't have TIX API Access! Cannot use purchase4SMarketData()");
}
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].has4SData) {
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].has4SData) {
if (workerScript.shouldLog("purchase4SMarketData")) {
workerScript.log("Already purchased 4S Market Data");
}
return true;
}
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].money.lt(_Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].MarketData4SCost)) {
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].money.lt(_Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].MarketData4SCost)) {
if (workerScript.shouldLog("purchase4SMarketData")) {
workerScript.log("Failed to purchase 4S Market Data - Not enough money");
}
return false;
}
- _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].has4SData = true;
- _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].loseMoney(_Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].MarketData4SCost);
+ _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].has4SData = true;
+ _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].loseMoney(_Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].MarketData4SCost);
if (workerScript.shouldLog("purchase4SMarketData")) {
workerScript.log("Purchased 4S Market Data");
}
@@ -21935,26 +21786,26 @@ function NetscriptFunctions(workerScript) {
}
updateDynamicRam("purchase4SMarketDataTixApi", _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptBuySellStockRamCost);
- if (!_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].hasTixApiAccess) {
+ if (!_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].hasTixApiAccess) {
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "You don't have TIX API Access! Cannot use purchase4SMarketDataTixApi()");
}
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].has4SDataTixApi) {
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].has4SDataTixApi) {
if (workerScript.shouldLog("purchase4SMarketDataTixApi")) {
workerScript.log("Already purchased 4S Market Data TIX API");
}
return true;
}
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].money.lt(_Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].MarketDataTixApi4SCost)) {
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].money.lt(_Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].MarketDataTixApi4SCost)) {
if (workerScript.shouldLog("purchase4SMarketDataTixApi")) {
workerScript.log("Failed to purchase 4S Market Data TIX API - Not enough money");
}
return false;
}
- _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].has4SDataTixApi = true;
- _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].loseMoney(_Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].MarketDataTixApi4SCost);
+ _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].has4SDataTixApi = true;
+ _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].loseMoney(_Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].MarketDataTixApi4SCost);
if (workerScript.shouldLog("purchase4SMarketDataTixApi")) {
workerScript.log("Purchased 4S Market Data TIX API");
}
@@ -22004,7 +21855,7 @@ function NetscriptFunctions(workerScript) {
return "";
}
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].purchasedServers.length >= _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].PurchasedServerLimit) {
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].purchasedServers.length >= _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].PurchasedServerLimit) {
workerScript.scriptRef.log("ERROR: You have reached the maximum limit of " + _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].PurchasedServerLimit +
" servers. You cannot purchase any more.");
return "";
@@ -22018,7 +21869,7 @@ function NetscriptFunctions(workerScript) {
return "";
}
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].money.lt(cost)) {
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].money.lt(cost)) {
workerScript.scriptRef.log("ERROR: Not enough money to purchase server. Need $" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_41__["formatNumber"])(cost, 2));
return "";
}
@@ -22033,11 +21884,11 @@ function NetscriptFunctions(workerScript) {
});
Object(_Server__WEBPACK_IMPORTED_MODULE_23__[/* AddToAllServers */ "a"])(newServ);
- _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].purchasedServers.push(newServ.ip);
- var homeComputer = _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].getHomeComputer();
+ _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].purchasedServers.push(newServ.ip);
+ var homeComputer = _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].getHomeComputer();
homeComputer.serversOnNetwork.push(newServ.ip);
newServ.serversOnNetwork.push(homeComputer.ip);
- _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].loseMoney(cost);
+ _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].loseMoney(cost);
if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.purchaseServer == null) {
workerScript.scriptRef.log("Purchased new server with hostname " + newServ.hostname + " for $" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_41__["formatNumber"])(cost, 2));
}
@@ -22084,10 +21935,10 @@ function NetscriptFunctions(workerScript) {
//Delete from player's purchasedServers array
var found = false;
- for (var i = 0; i < _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].purchasedServers.length; ++i) {
- if (ip == _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].purchasedServers[i]) {
+ for (var i = 0; i < _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].purchasedServers.length; ++i) {
+ if (ip == _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].purchasedServers[i]) {
found = true;
- _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].purchasedServers.splice(i, 1);
+ _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].purchasedServers.splice(i, 1);
break;
}
}
@@ -22103,7 +21954,7 @@ function NetscriptFunctions(workerScript) {
//Delete from home computer
found = false;
- var homeComputer = _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].getHomeComputer();
+ var homeComputer = _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].getHomeComputer();
for (var i = 0; i < homeComputer.serversOnNetwork.length; ++i) {
if (ip == homeComputer.serversOnNetwork[i]) {
homeComputer.serversOnNetwork.splice(i, 1);
@@ -22124,7 +21975,7 @@ function NetscriptFunctions(workerScript) {
}
updateDynamicRam("getPurchasedServers", _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptPurchaseServerRamCost);
var res = [];
- _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].purchasedServers.forEach(function(ip) {
+ _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].purchasedServers.forEach(function(ip) {
if (hostname) {
var server = Object(_Server__WEBPACK_IMPORTED_MODULE_23__[/* getServer */ "e"])(ip);
if (server == null) {
@@ -22353,7 +22204,7 @@ function NetscriptFunctions(workerScript) {
} else if (fn.endsWith(".lit")) {
for (var i = 0; i < s.messages.length; ++i) {
var f = s.messages[i];
- if (!(f instanceof _Message__WEBPACK_IMPORTED_MODULE_19__[/* Message */ "a"]) && Object(_utils_helpers_isString__WEBPACK_IMPORTED_MODULE_42__["isString"])(f) && f === fn) {
+ if (!(f instanceof _Message__WEBPACK_IMPORTED_MODULE_18__[/* Message */ "a"]) && Object(_utils_helpers_isString__WEBPACK_IMPORTED_MODULE_42__["isString"])(f) && f === fn) {
s.messages.splice(i, 1);
return true;
}
@@ -22442,7 +22293,7 @@ function NetscriptFunctions(workerScript) {
workerScript.scriptRef.log("getHackTime() failed. Invalid IP or hostname passed in: " + ip);
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "getHackTime() failed. Invalid IP or hostname passed in: " + ip);
}
- return Object(_Hacking__WEBPACK_IMPORTED_MODULE_12__[/* calculateHackingTime */ "d"])(server, hack, int); //Returns seconds
+ return Object(_Hacking__WEBPACK_IMPORTED_MODULE_11__[/* calculateHackingTime */ "d"])(server, hack, int); //Returns seconds
},
getGrowTime : function(ip, hack, int) {
if (workerScript.checkingRam) {
@@ -22454,7 +22305,7 @@ function NetscriptFunctions(workerScript) {
workerScript.scriptRef.log("getGrowTime() failed. Invalid IP or hostname passed in: " + ip);
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "getGrowTime() failed. Invalid IP or hostname passed in: " + ip);
}
- return Object(_Hacking__WEBPACK_IMPORTED_MODULE_12__[/* calculateGrowTime */ "a"])(server, hack, int); //Returns seconds
+ return Object(_Hacking__WEBPACK_IMPORTED_MODULE_11__[/* calculateGrowTime */ "a"])(server, hack, int); //Returns seconds
},
getWeakenTime : function(ip, hack, int) {
if (workerScript.checkingRam) {
@@ -22466,7 +22317,7 @@ function NetscriptFunctions(workerScript) {
workerScript.scriptRef.log("getWeakenTime() failed. Invalid IP or hostname passed in: " + ip);
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "getWeakenTime() failed. Invalid IP or hostname passed in: " + ip);
}
- return Object(_Hacking__WEBPACK_IMPORTED_MODULE_12__[/* calculateWeakenTime */ "f"])(server, hack, int); //Returns seconds
+ return Object(_Hacking__WEBPACK_IMPORTED_MODULE_11__[/* calculateWeakenTime */ "f"])(server, hack, int); //Returns seconds
},
getScriptIncome : function(scriptname, ip) {
if (workerScript.checkingRam) {
@@ -22477,7 +22328,7 @@ function NetscriptFunctions(workerScript) {
//Get total script income
var res = [];
res.push(Object(_ActiveScriptsUI__WEBPACK_IMPORTED_MODULE_0__[/* updateActiveScriptsItems */ "c"])());
- res.push(_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].scriptProdSinceLastAug / (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].playtimeSinceLastAug/1000));
+ res.push(_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].scriptProdSinceLastAug / (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].playtimeSinceLastAug/1000));
return res;
} else {
//Get income for a particular script
@@ -22533,7 +22384,7 @@ function NetscriptFunctions(workerScript) {
return updateStaticRam("getTimeSinceLastAug", _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptGetHackTimeRamCost);
}
updateDynamicRam("getTimeSinceLastAug", _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptGetHackTimeRamCost);
- return _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].playtimeSinceLastAug;
+ return _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].playtimeSinceLastAug;
},
prompt : function(txt) {
if (workerScript.checkingRam) {return 0;}
@@ -22599,23 +22450,23 @@ function NetscriptFunctions(workerScript) {
/* Singularity Functions */
universityCourse : function(universityName, className) {
var ramCost = _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFn1RamCost;
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN !== 4) {ramCost *= _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFnRamMult;}
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN !== 4) {ramCost *= _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFnRamMult;}
if (workerScript.checkingRam) {
return updateStaticRam("universityCourse", ramCost);
}
updateDynamicRam("universityCourse", ramCost);
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN != 4) {
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN != 4) {
if (!(hasSingularitySF && singularitySFLvl >= 1)) {
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run universityCourse(). It is a Singularity Function and requires SourceFile-4 (level 1) to run.");
return false;
}
}
- if (_Missions__WEBPACK_IMPORTED_MODULE_20__[/* inMission */ "c"]) {
+ if (_Missions__WEBPACK_IMPORTED_MODULE_19__[/* inMission */ "c"]) {
workerScript.scriptRef.log("ERROR: universityCourse() failed because you are in the middle of a mission.");
return;
}
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].isWorking) {
- var txt = _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].singularityStopWork();
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].isWorking) {
+ var txt = _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].singularityStopWork();
if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.universityCourse == null) {
workerScript.scriptRef.log(txt);
}
@@ -22623,30 +22474,30 @@ function NetscriptFunctions(workerScript) {
var costMult, expMult;
switch(universityName.toLowerCase()) {
- case _Locations__WEBPACK_IMPORTED_MODULE_18__["Locations"].AevumSummitUniversity.toLowerCase():
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].city != _Locations__WEBPACK_IMPORTED_MODULE_18__["Locations"].Aevum) {
+ case _Locations__WEBPACK_IMPORTED_MODULE_17__["Locations"].AevumSummitUniversity.toLowerCase():
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].city != _Locations__WEBPACK_IMPORTED_MODULE_17__["Locations"].Aevum) {
workerScript.scriptRef.log("ERROR: You cannot study at Summit University because you are not in Aevum. universityCourse() failed");
return false;
}
- _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].location = _Locations__WEBPACK_IMPORTED_MODULE_18__["Locations"].AevumSummitUniversity;
+ _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].location = _Locations__WEBPACK_IMPORTED_MODULE_17__["Locations"].AevumSummitUniversity;
costMult = 4;
expMult = 3;
break;
- case _Locations__WEBPACK_IMPORTED_MODULE_18__["Locations"].Sector12RothmanUniversity.toLowerCase():
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].city != _Locations__WEBPACK_IMPORTED_MODULE_18__["Locations"].Sector12) {
+ case _Locations__WEBPACK_IMPORTED_MODULE_17__["Locations"].Sector12RothmanUniversity.toLowerCase():
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].city != _Locations__WEBPACK_IMPORTED_MODULE_17__["Locations"].Sector12) {
workerScript.scriptRef.log("ERROR: You cannot study at Rothman University because you are not in Sector-12. universityCourse() failed");
return false;
}
- _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].location = _Locations__WEBPACK_IMPORTED_MODULE_18__["Locations"].Sector12RothmanUniversity;
+ _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].location = _Locations__WEBPACK_IMPORTED_MODULE_17__["Locations"].Sector12RothmanUniversity;
costMult = 3;
expMult = 2;
break;
- case _Locations__WEBPACK_IMPORTED_MODULE_18__["Locations"].VolhavenZBInstituteOfTechnology.toLowerCase():
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].city != _Locations__WEBPACK_IMPORTED_MODULE_18__["Locations"].Volhaven) {
+ case _Locations__WEBPACK_IMPORTED_MODULE_17__["Locations"].VolhavenZBInstituteOfTechnology.toLowerCase():
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].city != _Locations__WEBPACK_IMPORTED_MODULE_17__["Locations"].Volhaven) {
workerScript.scriptRef.log("ERROR: You cannot study at ZB Institute of Technology because you are not in Volhaven. universityCourse() failed");
return false;
}
- _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].location = _Locations__WEBPACK_IMPORTED_MODULE_18__["Locations"].VolhavenZBInstituteOfTechnology;
+ _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].location = _Locations__WEBPACK_IMPORTED_MODULE_17__["Locations"].VolhavenZBInstituteOfTechnology;
costMult = 5;
expMult = 4;
break;
@@ -22679,7 +22530,7 @@ function NetscriptFunctions(workerScript) {
workerScript.scriptRef.log("Invalid class name: " + className + ". universityCourse() failed");
return false;
}
- _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].startClass(costMult, expMult, task);
+ _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].startClass(costMult, expMult, task);
if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.universityCourse == null) {
workerScript.scriptRef.log("Started " + task + " at " + universityName);
}
@@ -22688,71 +22539,71 @@ function NetscriptFunctions(workerScript) {
gymWorkout : function(gymName, stat) {
var ramCost = _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFn1RamCost;
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN !== 4) {ramCost *= _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFnRamMult;}
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN !== 4) {ramCost *= _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFnRamMult;}
if (workerScript.checkingRam) {
return updateStaticRam("gymWorkout", ramCost);
}
updateDynamicRam("gymWorkout", ramCost);
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN != 4) {
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN != 4) {
if (!(hasSingularitySF && singularitySFLvl >= 1)) {
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run gymWorkout(). It is a Singularity Function and requires SourceFile-4 (level 1) to run.");
return false;
}
}
- if (_Missions__WEBPACK_IMPORTED_MODULE_20__[/* inMission */ "c"]) {
+ if (_Missions__WEBPACK_IMPORTED_MODULE_19__[/* inMission */ "c"]) {
workerScript.scriptRef.log("ERROR: gymWorkout() failed because you are in the middle of a mission.");
return;
}
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].isWorking) {
- var txt = _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].singularityStopWork();
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].isWorking) {
+ var txt = _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].singularityStopWork();
if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.gymWorkout == null) {
workerScript.scriptRef.log(txt);
}
}
var costMult, expMult;
switch(gymName.toLowerCase()) {
- case _Locations__WEBPACK_IMPORTED_MODULE_18__["Locations"].AevumCrushFitnessGym.toLowerCase():
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].city != _Locations__WEBPACK_IMPORTED_MODULE_18__["Locations"].Aevum) {
+ case _Locations__WEBPACK_IMPORTED_MODULE_17__["Locations"].AevumCrushFitnessGym.toLowerCase():
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].city != _Locations__WEBPACK_IMPORTED_MODULE_17__["Locations"].Aevum) {
workerScript.scriptRef.log("ERROR: You cannot workout at Crush Fitness because you are not in Aevum. gymWorkout() failed");
return false;
}
- _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].location = _Locations__WEBPACK_IMPORTED_MODULE_18__["Locations"].AevumCrushFitnessGym;
+ _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].location = _Locations__WEBPACK_IMPORTED_MODULE_17__["Locations"].AevumCrushFitnessGym;
costMult = 3;
expMult = 2;
break;
- case _Locations__WEBPACK_IMPORTED_MODULE_18__["Locations"].AevumSnapFitnessGym.toLowerCase():
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].city != _Locations__WEBPACK_IMPORTED_MODULE_18__["Locations"].Aevum) {
+ case _Locations__WEBPACK_IMPORTED_MODULE_17__["Locations"].AevumSnapFitnessGym.toLowerCase():
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].city != _Locations__WEBPACK_IMPORTED_MODULE_17__["Locations"].Aevum) {
workerScript.scriptRef.log("ERROR: You cannot workout at Snap Fitness because you are not in Aevum. gymWorkout() failed");
return false;
}
- _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].location = _Locations__WEBPACK_IMPORTED_MODULE_18__["Locations"].AevumSnapFitnessGym;
+ _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].location = _Locations__WEBPACK_IMPORTED_MODULE_17__["Locations"].AevumSnapFitnessGym;
costMult = 10;
expMult = 5;
break;
- case _Locations__WEBPACK_IMPORTED_MODULE_18__["Locations"].Sector12IronGym.toLowerCase():
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].city != _Locations__WEBPACK_IMPORTED_MODULE_18__["Locations"].Sector12) {
+ case _Locations__WEBPACK_IMPORTED_MODULE_17__["Locations"].Sector12IronGym.toLowerCase():
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].city != _Locations__WEBPACK_IMPORTED_MODULE_17__["Locations"].Sector12) {
workerScript.scriptRef.log("ERROR: You cannot workout at Iron Gym because you are not in Sector-12. gymWorkout() failed");
return false;
}
- _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].location = _Locations__WEBPACK_IMPORTED_MODULE_18__["Locations"].Sector12IronGym;
+ _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].location = _Locations__WEBPACK_IMPORTED_MODULE_17__["Locations"].Sector12IronGym;
costMult = 1;
expMult = 1;
break;
- case _Locations__WEBPACK_IMPORTED_MODULE_18__["Locations"].Sector12PowerhouseGym.toLowerCase():
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].city != _Locations__WEBPACK_IMPORTED_MODULE_18__["Locations"].Sector12) {
+ case _Locations__WEBPACK_IMPORTED_MODULE_17__["Locations"].Sector12PowerhouseGym.toLowerCase():
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].city != _Locations__WEBPACK_IMPORTED_MODULE_17__["Locations"].Sector12) {
workerScript.scriptRef.log("ERROR: You cannot workout at Powerhouse Gym because you are not in Sector-12. gymWorkout() failed");
return false;
}
- _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].location = _Locations__WEBPACK_IMPORTED_MODULE_18__["Locations"].Sector12PowerhouseGym;
+ _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].location = _Locations__WEBPACK_IMPORTED_MODULE_17__["Locations"].Sector12PowerhouseGym;
costMult = 20;
expMult = 10;
break;
- case _Locations__WEBPACK_IMPORTED_MODULE_18__["Locations"].VolhavenMilleniumFitnessGym:
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].city != _Locations__WEBPACK_IMPORTED_MODULE_18__["Locations"].Volhaven) {
+ case _Locations__WEBPACK_IMPORTED_MODULE_17__["Locations"].VolhavenMilleniumFitnessGym:
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].city != _Locations__WEBPACK_IMPORTED_MODULE_17__["Locations"].Volhaven) {
workerScript.scriptRef.log("ERROR: You cannot workout at Millenium Fitness Gym because you are not in Volhaven. gymWorkout() failed");
return false;
}
- _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].location = _Locations__WEBPACK_IMPORTED_MODULE_18__["Locations"].VolhavenMilleniumFitnessGym;
+ _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].location = _Locations__WEBPACK_IMPORTED_MODULE_17__["Locations"].VolhavenMilleniumFitnessGym;
costMult = 7;
expMult = 4;
break;
@@ -22764,19 +22615,19 @@ function NetscriptFunctions(workerScript) {
switch(stat.toLowerCase()) {
case "strength".toLowerCase():
case "str".toLowerCase():
- _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].startClass(costMult, expMult, _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ClassGymStrength);
+ _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].startClass(costMult, expMult, _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ClassGymStrength);
break;
case "defense".toLowerCase():
case "def".toLowerCase():
- _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].startClass(costMult, expMult, _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ClassGymDefense);
+ _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].startClass(costMult, expMult, _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ClassGymDefense);
break;
case "dexterity".toLowerCase():
case "dex".toLowerCase():
- _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].startClass(costMult, expMult, _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ClassGymDexterity);
+ _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].startClass(costMult, expMult, _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ClassGymDexterity);
break;
case "agility".toLowerCase():
case "agi".toLowerCase():
- _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].startClass(costMult, expMult, _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ClassGymAgility);
+ _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].startClass(costMult, expMult, _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ClassGymAgility);
break;
default:
workerScript.scriptRef.log("Invalid stat: " + stat + ". gymWorkout() failed");
@@ -22790,12 +22641,12 @@ function NetscriptFunctions(workerScript) {
travelToCity(cityname) {
var ramCost = _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFn1RamCost;
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN !== 4) {ramCost *= _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFnRamMult;}
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN !== 4) {ramCost *= _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFnRamMult;}
if (workerScript.checkingRam) {
return updateStaticRam("travelToCity", ramCost);
}
updateDynamicRam("travelToCity", ramCost);
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN != 4) {
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN != 4) {
if (!(hasSingularitySF && singularitySFLvl >= 1)) {
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run travelToCity(). It is a Singularity Function and requires SourceFile-4 (level 1) to run.");
return false;
@@ -22803,18 +22654,18 @@ function NetscriptFunctions(workerScript) {
}
switch(cityname) {
- case _Locations__WEBPACK_IMPORTED_MODULE_18__["Locations"].Aevum:
- case _Locations__WEBPACK_IMPORTED_MODULE_18__["Locations"].Chongqing:
- case _Locations__WEBPACK_IMPORTED_MODULE_18__["Locations"].Sector12:
- case _Locations__WEBPACK_IMPORTED_MODULE_18__["Locations"].NewTokyo:
- case _Locations__WEBPACK_IMPORTED_MODULE_18__["Locations"].Ishima:
- case _Locations__WEBPACK_IMPORTED_MODULE_18__["Locations"].Volhaven:
- if(_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].money.lt(_Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].TravelCost)) {
+ case _Locations__WEBPACK_IMPORTED_MODULE_17__["Locations"].Aevum:
+ case _Locations__WEBPACK_IMPORTED_MODULE_17__["Locations"].Chongqing:
+ case _Locations__WEBPACK_IMPORTED_MODULE_17__["Locations"].Sector12:
+ case _Locations__WEBPACK_IMPORTED_MODULE_17__["Locations"].NewTokyo:
+ case _Locations__WEBPACK_IMPORTED_MODULE_17__["Locations"].Ishima:
+ case _Locations__WEBPACK_IMPORTED_MODULE_17__["Locations"].Volhaven:
+ if(_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].money.lt(_Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].TravelCost)) {
workerScript.scriptRef.log("ERROR: not enough money to travel with travelToCity().");
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "ERROR: not enough money to travel with travelToCity().");
}
- _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].loseMoney(_Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].TravelCost);
- _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].city = cityname;
+ _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].loseMoney(_Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].TravelCost);
+ _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].city = cityname;
if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.travelToCity == null) {
workerScript.scriptRef.log("Traveled to " + cityname);
}
@@ -22827,12 +22678,12 @@ function NetscriptFunctions(workerScript) {
purchaseTor() {
var ramCost = _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFn1RamCost;
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN !== 4) {ramCost *= _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFnRamMult;}
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN !== 4) {ramCost *= _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFnRamMult;}
if (workerScript.checkingRam) {
return updateStaticRam("purchaseTor", ramCost);
}
updateDynamicRam("purchaseTor", ramCost);
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN != 4) {
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN != 4) {
if (!(hasSingularitySF && singularitySFLvl >= 1)) {
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run purchaseTor(). It is a Singularity Function and requires SourceFile-4 (level 1) to run.");
return false;
@@ -22844,11 +22695,11 @@ function NetscriptFunctions(workerScript) {
return false;
}
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].money.lt(_Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].TorRouterCost)) {
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].money.lt(_Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].TorRouterCost)) {
workerScript.scriptRef.log("ERROR: You cannot afford to purchase a Tor router. purchaseTor() failed");
return false;
}
- _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].loseMoney(_Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].TorRouterCost);
+ _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].loseMoney(_Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].TorRouterCost);
var darkweb = new _Server__WEBPACK_IMPORTED_MODULE_23__[/* Server */ "d"]({
ip:Object(_utils_IPAddress__WEBPACK_IMPORTED_MODULE_40__[/* createRandomIp */ "a"])(), hostname:"darkweb", organizationName:"",
@@ -22861,9 +22712,9 @@ function NetscriptFunctions(workerScript) {
purchaseTor.setAttribute("class", "a-link-button-bought");
purchaseTor.innerHTML = "TOR Router - Purchased";
- _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].getHomeComputer().serversOnNetwork.push(darkweb.ip);
- darkweb.serversOnNetwork.push(_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].getHomeComputer().ip);
- _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].gainIntelligenceExp(_Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].IntelligenceSingFnBaseExpGain);
+ _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].getHomeComputer().serversOnNetwork.push(darkweb.ip);
+ darkweb.serversOnNetwork.push(_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].getHomeComputer().ip);
+ _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].gainIntelligenceExp(_Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].IntelligenceSingFnBaseExpGain);
if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.purchaseTor == null) {
workerScript.scriptRef.log("You have purchased a Tor router!");
}
@@ -22871,12 +22722,12 @@ function NetscriptFunctions(workerScript) {
},
purchaseProgram(programName) {
var ramCost = _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFn1RamCost;
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN !== 4) {ramCost *= _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFnRamMult;}
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN !== 4) {ramCost *= _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFnRamMult;}
if (workerScript.checkingRam) {
return updateStaticRam("purchaseProgram", ramCost);
}
updateDynamicRam("purchaseProgram", ramCost);
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN != 4) {
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN != 4) {
if (!(hasSingularitySF && singularitySFLvl >= 1)) {
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run purchaseProgram(). It is a Singularity Function and requires SourceFile-4 (level 1) to run.");
return false;
@@ -22891,8 +22742,8 @@ function NetscriptFunctions(workerScript) {
programName = programName.toLowerCase();
let item = null;
- for(const key in _DarkWeb__WEBPACK_IMPORTED_MODULE_11__[/* DarkWebItems */ "a"]) {
- const i = _DarkWeb__WEBPACK_IMPORTED_MODULE_11__[/* DarkWebItems */ "a"][key];
+ for(const key in _DarkWeb_DarkWebItems__WEBPACK_IMPORTED_MODULE_10__["DarkWebItems"]) {
+ const i = _DarkWeb_DarkWebItems__WEBPACK_IMPORTED_MODULE_10__["DarkWebItems"][key];
if(i.program.toLowerCase() == programName) {
item = i;
}
@@ -22903,19 +22754,19 @@ function NetscriptFunctions(workerScript) {
return false;
}
- if(_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].money.lt(item.price)) {
+ if(_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].money.lt(item.price)) {
workerScript.scriptRef.log("Not enough money to purchase " + item.program);
return false;
}
- if(_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].hasProgram(item.program)) {
+ if(_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].hasProgram(item.program)) {
workerScript.scriptRef.log('You already have the '+item.program+' program');
return true;
}
- _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].loseMoney(item.price);
- _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].getHomeComputer().programs.push(item.program);
+ _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].loseMoney(item.price);
+ _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].getHomeComputer().programs.push(item.program);
if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.purchaseProgram == null) {
workerScript.scriptRef.log("You have purchased the "+item.program+" program. The new program can be found on your home computer.");
}
@@ -22923,12 +22774,12 @@ function NetscriptFunctions(workerScript) {
},
getStats : function() {
var ramCost = _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFn1RamCost / 4;
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN !== 4) {ramCost *= _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFnRamMult;}
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN !== 4) {ramCost *= _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFnRamMult;}
if (workerScript.checkingRam) {
return updateStaticRam("getStats", ramCost);
}
updateDynamicRam("getStats", ramCost);
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN != 4) {
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN != 4) {
if (!(hasSingularitySF && singularitySFLvl >= 1)) {
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run getStats(). It is a Singularity Function and requires SourceFile-4 (level 1) to run.");
return {};
@@ -22936,23 +22787,23 @@ function NetscriptFunctions(workerScript) {
}
return {
- hacking: _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].hacking_skill,
- strength: _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].strength,
- defense: _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].defense,
- dexterity: _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].dexterity,
- agility: _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].agility,
- charisma: _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].charisma,
- intelligence: _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].intelligence
+ hacking: _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].hacking_skill,
+ strength: _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].strength,
+ defense: _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].defense,
+ dexterity: _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].dexterity,
+ agility: _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].agility,
+ charisma: _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].charisma,
+ intelligence: _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].intelligence
}
},
getCharacterInformation : function() {
var ramCost = _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFn1RamCost / 4;
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN !== 4) {ramCost *= _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFnRamMult;}
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN !== 4) {ramCost *= _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFnRamMult;}
if (workerScript.checkingRam) {
return updateStaticRam("getCharacterInformation", ramCost);
}
updateDynamicRam("getCharacterInformation", ramCost);
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN != 4) {
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN != 4) {
if (!(hasSingularitySF && singularitySFLvl >= 1)) {
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run getCharacterInformation(). It is a Singularity Function and requires SourceFile-4 (level 1) to run.");
return {};
@@ -22960,74 +22811,74 @@ function NetscriptFunctions(workerScript) {
}
var companyPositionTitle = "";
- if (_Company_CompanyPositions__WEBPACK_IMPORTED_MODULE_8__["CompanyPositions"][_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].companyPosition] instanceof _Company_CompanyPosition__WEBPACK_IMPORTED_MODULE_7__["CompanyPosition"]) {
- companyPositionTitle = _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].companyPosition;
+ if (_Company_CompanyPositions__WEBPACK_IMPORTED_MODULE_8__["CompanyPositions"][_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].companyPosition] instanceof _Company_CompanyPosition__WEBPACK_IMPORTED_MODULE_7__["CompanyPosition"]) {
+ companyPositionTitle = _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].companyPosition;
}
return {
- bitnode: _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN,
- city: _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].city,
- company: _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].companyName,
- factions: _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].factions.slice(),
+ bitnode: _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN,
+ city: _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].city,
+ company: _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].companyName,
+ factions: _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].factions.slice(),
jobTitle: companyPositionTitle,
mult: {
- agility: _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].agility_mult,
- agilityExp: _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].agility_exp_mult,
- companyRep: _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].company_rep_mult,
- crimeMoney: _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].crime_money_mult,
- crimeSuccess: _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].crime_success_mult,
- defense: _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].defense_mult,
- defenseExp: _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].defense_exp_mult,
- dexterity: _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].dexterity_mult,
- dexterityExp: _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].dexterity_exp_mult,
- factionRep: _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].faction_rep_mult,
- hacking: _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].hacking_mult,
- hackingExp: _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].hacking_exp_mult,
- strength: _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].strength_mult,
- strengthExp: _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].strength_exp_mult,
- workMoney: _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].work_money_mult,
+ agility: _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].agility_mult,
+ agilityExp: _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].agility_exp_mult,
+ companyRep: _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].company_rep_mult,
+ crimeMoney: _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].crime_money_mult,
+ crimeSuccess: _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].crime_success_mult,
+ defense: _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].defense_mult,
+ defenseExp: _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].defense_exp_mult,
+ dexterity: _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].dexterity_mult,
+ dexterityExp: _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].dexterity_exp_mult,
+ factionRep: _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].faction_rep_mult,
+ hacking: _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].hacking_mult,
+ hackingExp: _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].hacking_exp_mult,
+ strength: _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].strength_mult,
+ strengthExp: _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].strength_exp_mult,
+ workMoney: _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].work_money_mult,
},
- timeWorked: _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].timeWorked,
+ timeWorked: _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].timeWorked,
tor: _SpecialServerIps__WEBPACK_IMPORTED_MODULE_25__[/* SpecialServerIps */ "a"].hasOwnProperty("Darkweb Server"),
- workHackExpGain: _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].workHackExpGained,
- workStrExpGain: _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].workStrExpGained,
- workDefExpGain: _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].workDefExpGained,
- workDexExpGain: _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].workDexExpGained,
- workAgiExpGain: _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].workAgiExpGained,
- workChaExpGain: _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].workChaExpGained,
- workRepGain: _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].workRepGained,
- workMoneyGain: _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].workMoneyGained,
+ workHackExpGain: _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].workHackExpGained,
+ workStrExpGain: _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].workStrExpGained,
+ workDefExpGain: _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].workDefExpGained,
+ workDexExpGain: _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].workDexExpGained,
+ workAgiExpGain: _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].workAgiExpGained,
+ workChaExpGain: _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].workChaExpGained,
+ workRepGain: _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].workRepGained,
+ workMoneyGain: _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].workMoneyGained,
};
},
isBusy : function() {
var ramCost = _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFn1RamCost / 4;
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN !== 4) {ramCost *= _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFnRamMult;}
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN !== 4) {ramCost *= _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFnRamMult;}
if (workerScript.checkingRam) {
return updateStaticRam("isBusy", ramCost);
}
updateDynamicRam("isBusy", ramCost);
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN != 4) {
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN != 4) {
if (!(hasSingularitySF && singularitySFLvl >= 1)) {
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run isBusy(). It is a Singularity Function and requires SourceFile-4 (level 1) to run.");
return;
}
}
- return _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].isWorking;
+ return _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].isWorking;
},
stopAction : function() {
var ramCost = _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFn1RamCost / 2;
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN !== 4) {ramCost *= _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFnRamMult;}
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN !== 4) {ramCost *= _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFnRamMult;}
if (workerScript.checkingRam) {
return updateStaticRam("stopAction", ramCost);
}
updateDynamicRam("stopAction", ramCost);
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN != 4) {
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN != 4) {
if (!(hasSingularitySF && singularitySFLvl >= 1)) {
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run stopAction(). It is a Singularity Function and requires SourceFile-4 (level 1) to run.");
return false;
}
}
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].isWorking) {
- var txt = _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].singularityStopWork();
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].isWorking) {
+ var txt = _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].singularityStopWork();
if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.stopAction == null) {
workerScript.scriptRef.log(txt);
}
@@ -23037,31 +22888,31 @@ function NetscriptFunctions(workerScript) {
},
upgradeHomeRam : function() {
var ramCost = _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFn2RamCost;
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN !== 4) {ramCost *= _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFnRamMult;}
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN !== 4) {ramCost *= _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFnRamMult;}
if (workerScript.checkingRam) {
return updateStaticRam("upgradeHomeRam", ramCost);
}
updateDynamicRam("upgradeHomeRam", ramCost);
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN != 4) {
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN != 4) {
if (!(hasSingularitySF && singularitySFLvl >= 2)) {
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run upgradeHomeRam(). It is a Singularity Function and requires SourceFile-4 (level 2) to run.");
return false;
}
}
- const cost = _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].getUpgradeHomeRamCost();
+ const cost = _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].getUpgradeHomeRamCost();
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].money.lt(cost)) {
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].money.lt(cost)) {
workerScript.scriptRef.log("ERROR: upgradeHomeRam() failed because you don't have enough money");
return false;
}
- var homeComputer = _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].getHomeComputer();
+ var homeComputer = _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].getHomeComputer();
homeComputer.maxRam *= 2;
- _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].loseMoney(cost);
+ _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].loseMoney(cost);
- _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].gainIntelligenceExp(_Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].IntelligenceSingFnBaseExpGain);
+ _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].gainIntelligenceExp(_Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].IntelligenceSingFnBaseExpGain);
if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.upgradeHomeRam == null) {
workerScript.scriptRef.log("Purchased additional RAM for home computer! It now has " + homeComputer.maxRam + "GB of RAM.");
}
@@ -23069,70 +22920,70 @@ function NetscriptFunctions(workerScript) {
},
getUpgradeHomeRamCost : function() {
var ramCost = _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFn2RamCost / 2;
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN !== 4) {ramCost *= _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFnRamMult;}
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN !== 4) {ramCost *= _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFnRamMult;}
if (workerScript.checkingRam) {
return updateStaticRam("getUpgradeHomeRamCost", ramCost);
}
updateDynamicRam("getUpgradeHomeRamCost", ramCost);
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN != 4) {
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN != 4) {
if (!(hasSingularitySF && singularitySFLvl >= 2)) {
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run getUpgradeHomeRamCost(). It is a Singularity Function and requires SourceFile-4 (level 2) to run.");
return false;
}
}
- return _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].getUpgradeHomeRamCost();
+ return _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].getUpgradeHomeRamCost();
},
workForCompany : function() {
var ramCost = _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFn2RamCost;
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN !== 4) {ramCost *= _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFnRamMult;}
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN !== 4) {ramCost *= _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFnRamMult;}
if (workerScript.checkingRam) {
return updateStaticRam("workForCompany", ramCost);
}
updateDynamicRam("workForCompany", ramCost);
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN != 4) {
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN != 4) {
if (!(hasSingularitySF && singularitySFLvl >= 2)) {
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run workForCompany(). It is a Singularity Function and requires SourceFile-4 (level 2) to run.");
return false;
}
}
- if (_Missions__WEBPACK_IMPORTED_MODULE_20__[/* inMission */ "c"]) {
+ if (_Missions__WEBPACK_IMPORTED_MODULE_19__[/* inMission */ "c"]) {
workerScript.scriptRef.log("ERROR: workForCompany() failed because you are in the middle of a mission.");
return;
}
- const companyPosition = _Company_CompanyPositions__WEBPACK_IMPORTED_MODULE_8__["CompanyPositions"][_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].companyPosition];
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].companyPosition === "" || !(companyPosition instanceof _Company_CompanyPosition__WEBPACK_IMPORTED_MODULE_7__["CompanyPosition"])) {
+ const companyPosition = _Company_CompanyPositions__WEBPACK_IMPORTED_MODULE_8__["CompanyPositions"][_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].companyPosition];
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].companyPosition === "" || !(companyPosition instanceof _Company_CompanyPosition__WEBPACK_IMPORTED_MODULE_7__["CompanyPosition"])) {
workerScript.scriptRef.log("ERROR: workForCompany() failed because you do not have a job");
return false;
}
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].isWorking) {
- var txt = _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].singularityStopWork();
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].isWorking) {
+ var txt = _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].singularityStopWork();
if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.workForCompany == null) {
workerScript.scriptRef.log(txt);
}
}
if (companyPosition.isPartTimeJob()) {
- _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].startWorkPartTime();
+ _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].startWorkPartTime();
} else {
- _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].startWork();
+ _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].startWork();
}
if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.workForCompany == null) {
- workerScript.log(`Began working at ${_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].companyName} as a ${_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].companyPosition}`);
+ workerScript.log(`Began working at ${_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].companyName} as a ${_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].companyPosition}`);
}
return true;
},
applyToCompany : function(companyName, field) {
var ramCost = _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFn2RamCost;
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN !== 4) {ramCost *= _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFnRamMult;}
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN !== 4) {ramCost *= _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFnRamMult;}
if (workerScript.checkingRam) {
return updateStaticRam("applyToCompany", ramCost);
}
updateDynamicRam("applyToCompany", ramCost);
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN != 4) {
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN != 4) {
if (!(hasSingularitySF && singularitySFLvl >= 2)) {
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run applyToCompany(). It is a Singularity Function and requires SourceFile-4 (level 2) to run.");
return false;
@@ -23144,47 +22995,47 @@ function NetscriptFunctions(workerScript) {
return false;
}
- _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].location = companyName;
+ _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].location = companyName;
var res;
switch (field.toLowerCase()) {
case "software":
- res = _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].applyForSoftwareJob(true);
+ res = _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].applyForSoftwareJob(true);
break;
case "software consultant":
- res = _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].applyForSoftwareConsultantJob(true);
+ res = _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].applyForSoftwareConsultantJob(true);
break;
case "it":
- res = _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].applyForItJob(true);
+ res = _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].applyForItJob(true);
break;
case "security engineer":
- res = _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].applyForSecurityEngineerJob(true);
+ res = _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].applyForSecurityEngineerJob(true);
break;
case "network engineer":
- res = _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].applyForNetworkEngineerJob(true);
+ res = _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].applyForNetworkEngineerJob(true);
break;
case "business":
- res = _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].applyForBusinessJob(true);
+ res = _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].applyForBusinessJob(true);
break;
case "business consultant":
- res = _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].applyForBusinessConsultantJob(true);
+ res = _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].applyForBusinessConsultantJob(true);
break;
case "security":
- res = _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].applyForSecurityJob(true);
+ res = _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].applyForSecurityJob(true);
break;
case "agent":
- res = _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].applyForAgentJob(true);
+ res = _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].applyForAgentJob(true);
break;
case "employee":
- res = _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].applyForEmployeeJob(true);
+ res = _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].applyForEmployeeJob(true);
break;
case "part-time employee":
- res = _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].applyForPartTimeEmployeeJob(true);
+ res = _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].applyForPartTimeEmployeeJob(true);
break;
case "waiter":
- res = _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].applyForWaiterJob(true);
+ res = _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].applyForWaiterJob(true);
break;
case "part-time waiter":
- res = _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].applyForPartTimeWaiterJob(true);
+ res = _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].applyForPartTimeWaiterJob(true);
break;
default:
workerScript.scriptRef.log("ERROR: Invalid job passed into applyToCompany: " + field + ". applyToCompany() failed");
@@ -23197,7 +23048,7 @@ function NetscriptFunctions(workerScript) {
}
if (res) {
if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.applyToCompany == null) {
- workerScript.log(`You were offered a new job at ${companyName} as a ${_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].companyPosition}`);
+ workerScript.log(`You were offered a new job at ${companyName} as a ${_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].companyPosition}`);
}
} else {
if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.applyToCompany == null) {
@@ -23208,12 +23059,12 @@ function NetscriptFunctions(workerScript) {
},
getCompanyRep : function(companyName) {
var ramCost = _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFn2RamCost / 2;
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN !== 4) {ramCost *= _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFnRamMult;}
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN !== 4) {ramCost *= _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFnRamMult;}
if (workerScript.checkingRam) {
return updateStaticRam("getCompanyRep", ramCost);
}
updateDynamicRam("getCompanyRep", ramCost);
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN != 4) {
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN != 4) {
if (!(hasSingularitySF && singularitySFLvl >= 2)) {
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run getCompanyRep(). It is a Singularity Function and requires SourceFile-4 (level 2) to run.");
return false;
@@ -23229,12 +23080,12 @@ function NetscriptFunctions(workerScript) {
},
getCompanyFavor : function(companyName) {
var ramCost = _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFn2RamCost / 4;
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN !== 4) {ramCost *= _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFnRamMult;}
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN !== 4) {ramCost *= _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFnRamMult;}
if (workerScript.checkingRam) {
return updateStaticRam("getCompanyFavor", ramCost);
}
updateDynamicRam("getCompanyFavor", ramCost);
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN != 4) {
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN != 4) {
if (!(hasSingularitySF && singularitySFLvl >= 2)) {
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run getCompanyFavor(). It is a Singularity Function and requires SourceFile-4 (level 2) to run.");
return false;
@@ -23250,12 +23101,12 @@ function NetscriptFunctions(workerScript) {
},
getCompanyFavorGain : function(companyName) {
var ramCost = _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFn2RamCost / 4;
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN !== 4) {ramCost *= _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFnRamMult;}
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN !== 4) {ramCost *= _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFnRamMult;}
if (workerScript.checkingRam) {
return updateStaticRam("getCompanyFavorGain", ramCost);
}
updateDynamicRam("getCompanyFavorGain", ramCost);
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN != 4) {
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN != 4) {
if (!(hasSingularitySF && singularitySFLvl >= 2)) {
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run getCompanyFavorGain(). It is a Singularity Function and requires SourceFile-4 (level 2) to run.");
return -1;
@@ -23271,54 +23122,54 @@ function NetscriptFunctions(workerScript) {
},
checkFactionInvitations : function() {
var ramCost = _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFn2RamCost;
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN !== 4) {ramCost *= _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFnRamMult;}
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN !== 4) {ramCost *= _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFnRamMult;}
if (workerScript.checkingRam) {
return updateStaticRam("checkFactionInvitations", ramCost);
}
updateDynamicRam("checkFactionInvitations", ramCost);
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN != 4) {
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN != 4) {
if (!(hasSingularitySF && singularitySFLvl >= 2)) {
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run checkFactionInvitations(). It is a Singularity Function and requires SourceFile-4 (level 2) to run.");
return false;
}
}
//Make a copy of Player.factionInvitations
- return _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].factionInvitations.slice();
+ return _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].factionInvitations.slice();
},
joinFaction : function(name) {
var ramCost = _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFn2RamCost;
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN !== 4) {ramCost *= _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFnRamMult;}
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN !== 4) {ramCost *= _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFnRamMult;}
if (workerScript.checkingRam) {
return updateStaticRam("joinFaction", ramCost);
}
updateDynamicRam("joinFaction", ramCost);
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN != 4) {
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN != 4) {
if (!(hasSingularitySF && singularitySFLvl >= 2)) {
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run joinFaction(). It is a Singularity Function and requires SourceFile-4 (level 2) to run.");
return false;
}
}
- if (!Object(_Faction_Factions__WEBPACK_IMPORTED_MODULE_15__["factionExists"])(name)) {
+ if (!Object(_Faction_Factions__WEBPACK_IMPORTED_MODULE_14__["factionExists"])(name)) {
workerScript.scriptRef.log("ERROR: Faction specified in joinFaction() does not exist.");
return false;
}
- if (!_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].factionInvitations.includes(name)) {
+ if (!_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].factionInvitations.includes(name)) {
workerScript.scriptRef.log("ERROR: Cannot join " + name + " Faction because you have not been invited. joinFaction() failed");
return false;
}
- var fac = _Faction_Factions__WEBPACK_IMPORTED_MODULE_15__["Factions"][name];
- Object(_Faction_FactionHelpers__WEBPACK_IMPORTED_MODULE_16__[/* joinFaction */ "c"])(fac);
+ var fac = _Faction_Factions__WEBPACK_IMPORTED_MODULE_14__["Factions"][name];
+ Object(_Faction_FactionHelpers__WEBPACK_IMPORTED_MODULE_15__[/* joinFaction */ "c"])(fac);
//Update Faction Invitation list to account for joined + banned factions
- for (var i = 0; i < _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].factionInvitations.length; ++i) {
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].factionInvitations[i] == name || _Faction_Factions__WEBPACK_IMPORTED_MODULE_15__["Factions"][_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].factionInvitations[i]].isBanned) {
- _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].factionInvitations.splice(i, 1);
+ for (var i = 0; i < _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].factionInvitations.length; ++i) {
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].factionInvitations[i] == name || _Faction_Factions__WEBPACK_IMPORTED_MODULE_14__["Factions"][_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].factionInvitations[i]].isBanned) {
+ _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].factionInvitations.splice(i, 1);
i--;
}
}
- _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].gainIntelligenceExp(_Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].IntelligenceSingFnBaseExpGain);
+ _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].gainIntelligenceExp(_Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].IntelligenceSingFnBaseExpGain);
if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.joinFaction == null) {
workerScript.scriptRef.log("Joined the " + name + " faction.");
}
@@ -23326,12 +23177,12 @@ function NetscriptFunctions(workerScript) {
},
workForFaction : function(name, type) {
var ramCost = _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFn2RamCost;
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN !== 4) {ramCost *= _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFnRamMult;}
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN !== 4) {ramCost *= _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFnRamMult;}
if (workerScript.checkingRam) {
return updateStaticRam("workForFaction", ramCost);
}
updateDynamicRam("workForFaction", ramCost);
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN != 4) {
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN != 4) {
if (!(hasSingularitySF && singularitySFLvl >= 2)) {
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run workForFaction(). It is a Singularity Function and requires SourceFile-4 (level 2) to run.");
return false;
@@ -23339,34 +23190,34 @@ function NetscriptFunctions(workerScript) {
}
// if the player is in a gang and the target faction is any of the gang faction, fail
- if(_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].inGang() && _Gang__WEBPACK_IMPORTED_MODULE_13__[/* AllGangs */ "a"][name] !== undefined) {
+ if(_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].inGang() && _Gang__WEBPACK_IMPORTED_MODULE_12__[/* AllGangs */ "a"][name] !== undefined) {
workerScript.scriptRef.log("ERROR: Faction specified in workForFaction() does not offer work at the moment.");
return;
}
- if (_Missions__WEBPACK_IMPORTED_MODULE_20__[/* inMission */ "c"]) {
+ if (_Missions__WEBPACK_IMPORTED_MODULE_19__[/* inMission */ "c"]) {
workerScript.scriptRef.log("ERROR: workForFaction() failed because you are in the middle of a mission.");
return;
}
- if (!Object(_Faction_Factions__WEBPACK_IMPORTED_MODULE_15__["factionExists"])(name)) {
+ if (!Object(_Faction_Factions__WEBPACK_IMPORTED_MODULE_14__["factionExists"])(name)) {
workerScript.scriptRef.log("ERROR: Faction specified in workForFaction() does not exist.");
return false;
}
- if (!_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].factions.includes(name)) {
+ if (!_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].factions.includes(name)) {
workerScript.scriptRef.log("ERROR: workForFaction() failed because you are not a member of " + name);
return false;
}
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].isWorking) {
- var txt = _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].singularityStopWork();
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].isWorking) {
+ var txt = _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].singularityStopWork();
if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.workForFaction == null) {
workerScript.scriptRef.log(txt);
}
}
- var fac = _Faction_Factions__WEBPACK_IMPORTED_MODULE_15__["Factions"][name];
+ var fac = _Faction_Factions__WEBPACK_IMPORTED_MODULE_14__["Factions"][name];
//Arrays listing factions that allow each time of work
var hackAvailable = ["Illuminati", "Daedalus", "The Covenant", "ECorp", "MegaCorp",
"Bachman & Associates", "Blade Industries", "NWO", "Clarke Incorporated",
@@ -23396,7 +23247,7 @@ function NetscriptFunctions(workerScript) {
workerScript.scriptRef.log("ERROR: Cannot carry out hacking contracts for " + fac.name + ". workForFaction() failed");
return false;
}
- _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].startFactionHackWork(fac);
+ _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].startFactionHackWork(fac);
workerScript.scriptRef.log("Started carrying out hacking contracts for " + fac.name);
return true;
case "field":
@@ -23406,7 +23257,7 @@ function NetscriptFunctions(workerScript) {
workerScript.scriptRef.log("ERROR: Cannot carry out field missions for " + fac.name + ". workForFaction() failed");
return false;
}
- _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].startFactionFieldWork(fac);
+ _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].startFactionFieldWork(fac);
workerScript.scriptRef.log("Started carrying out field missions for " + fac.name);
return true;
case "security":
@@ -23416,7 +23267,7 @@ function NetscriptFunctions(workerScript) {
workerScript.scriptRef.log("ERROR: Cannot serve as security detail for " + fac.name + ". workForFaction() failed");
return false;
}
- _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].startFactionSecurityWork(fac);
+ _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].startFactionSecurityWork(fac);
workerScript.scriptRef.log("Started serving as security details for " + fac.name);
return true;
default:
@@ -23426,82 +23277,82 @@ function NetscriptFunctions(workerScript) {
},
getFactionRep : function(name) {
var ramCost = _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFn2RamCost / 4;
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN !== 4) {ramCost *= _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFnRamMult;}
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN !== 4) {ramCost *= _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFnRamMult;}
if (workerScript.checkingRam) {
return updateStaticRam("getFactionRep", ramCost);
}
updateDynamicRam("getFactionRep", ramCost);
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN != 4) {
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN != 4) {
if (!(hasSingularitySF && singularitySFLvl >= 2)) {
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run getFactionRep(). It is a Singularity Function and requires SourceFile-4 (level 2) to run.");
return -1;
}
}
- if (!Object(_Faction_Factions__WEBPACK_IMPORTED_MODULE_15__["factionExists"])(name)) {
+ if (!Object(_Faction_Factions__WEBPACK_IMPORTED_MODULE_14__["factionExists"])(name)) {
workerScript.scriptRef.log("ERROR: Faction specified in getFactionRep() does not exist.");
return -1;
}
- return _Faction_Factions__WEBPACK_IMPORTED_MODULE_15__["Factions"][name].playerReputation;
+ return _Faction_Factions__WEBPACK_IMPORTED_MODULE_14__["Factions"][name].playerReputation;
},
getFactionFavor : function(name) {
var ramCost = _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFn2RamCost;
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN !== 4) {ramCost *= _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFnRamMult;}
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN !== 4) {ramCost *= _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFnRamMult;}
if (workerScript.checkingRam) {
return updateStaticRam("getFactionFavor", ramCost);
}
updateDynamicRam("getFactionFavor", ramCost);
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN != 4) {
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN != 4) {
if (!(hasSingularitySF && singularitySFLvl >= 2)) {
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run getFactionFavor(). It is a Singularity Function and requires SourceFile-4 (level 2) to run.");
return -1;
}
}
- if (!Object(_Faction_Factions__WEBPACK_IMPORTED_MODULE_15__["factionExists"])(name)) {
+ if (!Object(_Faction_Factions__WEBPACK_IMPORTED_MODULE_14__["factionExists"])(name)) {
workerScript.scriptRef.log("ERROR: Faction specified in getFactionFavor() does not exist.");
return -1;
}
- return _Faction_Factions__WEBPACK_IMPORTED_MODULE_15__["Factions"][name].favor;
+ return _Faction_Factions__WEBPACK_IMPORTED_MODULE_14__["Factions"][name].favor;
},
getFactionFavorGain: function(name) {
var ramCost = _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFn2RamCost;
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN !== 4) {ramCost *= _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFnRamMult;}
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN !== 4) {ramCost *= _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFnRamMult;}
if (workerScript.checkingRam) {
return updateStaticRam("getFactionFavorGain", ramCost);
}
updateDynamicRam("getFactionFavorGain", ramCost);
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN != 4) {
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN != 4) {
if (!(hasSingularitySF && singularitySFLvl >= 2)) {
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run getFactionFavorGain(). It is a Singularity Function and requires SourceFile-4 (level 2) to run.");
return -1;
}
}
- if (!Object(_Faction_Factions__WEBPACK_IMPORTED_MODULE_15__["factionExists"])(name)) {
+ if (!Object(_Faction_Factions__WEBPACK_IMPORTED_MODULE_14__["factionExists"])(name)) {
workerScript.scriptRef.log("ERROR: Faction specified in getFactionFavorGain() does not exist.");
return -1;
}
- return _Faction_Factions__WEBPACK_IMPORTED_MODULE_15__["Factions"][name].getFavorGain()[0];
+ return _Faction_Factions__WEBPACK_IMPORTED_MODULE_14__["Factions"][name].getFavorGain()[0];
},
donateToFaction : function(name, amt) {
var ramCost = _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFn3RamCost;
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN !== 4) {ramCost *= _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFnRamMult;}
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN !== 4) {ramCost *= _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFnRamMult;}
if (workerScript.checkingRam) {
return updateStaticRam("donateToFaction", ramCost);
}
updateDynamicRam("donateToFaction", ramCost);
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN != 4) {
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN != 4) {
if (!(hasSingularitySF && singularitySFLvl >= 3)) {
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run donateToFaction(). It is a Singularity Function and requires SourceFile-4 (level 3) to run.");
return;
}
}
- if (!Object(_Faction_Factions__WEBPACK_IMPORTED_MODULE_15__["factionExists"])(name)) {
+ if (!Object(_Faction_Factions__WEBPACK_IMPORTED_MODULE_14__["factionExists"])(name)) {
workerScript.log(`ERROR: Faction specified in donateToFaction() does not exist: ${name}`);
return false;
}
@@ -23509,18 +23360,18 @@ function NetscriptFunctions(workerScript) {
workerScript.log(`ERROR: Invalid donation amount specified in donateToFaction(): ${amt}. Must be numeric and positive`);
return false;
}
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].money.lt(amt)) {
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].money.lt(amt)) {
workerScript.log(`ERROR: You do not have enough money to donate $${amt} to ${name}`);
return false;
}
var repNeededToDonate = Math.round(_Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].BaseFavorToDonate * _BitNodeMultipliers__WEBPACK_IMPORTED_MODULE_2__["BitNodeMultipliers"].RepToDonateToFaction);
- if (_Faction_Factions__WEBPACK_IMPORTED_MODULE_15__["Factions"][name].favor < repNeededToDonate) {
- workerScript.log(`ERROR: You do not have enough favor to donate to this faction. Have ${_Faction_Factions__WEBPACK_IMPORTED_MODULE_15__["Factions"][name].favor}, need ${repNeededToDonate}`);
+ if (_Faction_Factions__WEBPACK_IMPORTED_MODULE_14__["Factions"][name].favor < repNeededToDonate) {
+ workerScript.log(`ERROR: You do not have enough favor to donate to this faction. Have ${_Faction_Factions__WEBPACK_IMPORTED_MODULE_14__["Factions"][name].favor}, need ${repNeededToDonate}`);
return false;
}
- var repGain = amt / _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].DonateMoneyToRepDivisor * _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].faction_rep_mult;
- _Faction_Factions__WEBPACK_IMPORTED_MODULE_15__["Factions"][name].playerReputation += repGain;
- _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].loseMoney(amt);
+ var repGain = amt / _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].DonateMoneyToRepDivisor * _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].faction_rep_mult;
+ _Faction_Factions__WEBPACK_IMPORTED_MODULE_14__["Factions"][name].playerReputation += repGain;
+ _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].loseMoney(amt);
if (workerScript.shouldLog("donateToFaction")) {
workerScript.log(`$${amt} donated to ${name} for ${repGain} reputation`);
}
@@ -23528,23 +23379,23 @@ function NetscriptFunctions(workerScript) {
},
createProgram : function(name) {
var ramCost = _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFn3RamCost;
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN !== 4) {ramCost *= _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFnRamMult;}
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN !== 4) {ramCost *= _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFnRamMult;}
if (workerScript.checkingRam) {
return updateStaticRam("createProgram", ramCost);
}
updateDynamicRam("createProgram", ramCost);
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN != 4) {
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN != 4) {
if (!(hasSingularitySF && singularitySFLvl >= 3)) {
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run createProgram(). It is a Singularity Function and requires SourceFile-4 (level 3) to run.");
return false;
}
}
- if (_Missions__WEBPACK_IMPORTED_MODULE_20__[/* inMission */ "c"]) {
+ if (_Missions__WEBPACK_IMPORTED_MODULE_19__[/* inMission */ "c"]) {
workerScript.scriptRef.log("ERROR: createProgram() failed because you are in the middle of a mission.");
return;
}
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].isWorking) {
- var txt = _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].singularityStopWork();
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].isWorking) {
+ var txt = _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].singularityStopWork();
if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.createProgram == null) {
workerScript.scriptRef.log(txt);
}
@@ -23553,9 +23404,9 @@ function NetscriptFunctions(workerScript) {
name = name.toLowerCase();
let p = null;
- for (const key in _CreateProgram__WEBPACK_IMPORTED_MODULE_10__[/* Programs */ "a"]) {
- if(_CreateProgram__WEBPACK_IMPORTED_MODULE_10__[/* Programs */ "a"][key].name.toLowerCase() == name) {
- p = _CreateProgram__WEBPACK_IMPORTED_MODULE_10__[/* Programs */ "a"][key];
+ for (const key in _Programs_Programs__WEBPACK_IMPORTED_MODULE_21__["Programs"]) {
+ if(_Programs_Programs__WEBPACK_IMPORTED_MODULE_21__["Programs"][key].name.toLowerCase() == name) {
+ p = _Programs_Programs__WEBPACK_IMPORTED_MODULE_21__["Programs"][key];
}
}
@@ -23564,7 +23415,7 @@ function NetscriptFunctions(workerScript) {
return false;
}
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].hasProgram(p.name)) {
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].hasProgram(p.name)) {
workerScript.scriptRef.log('ERROR: createProgram() failed because you already have the ' + p.name + ' program');
return false;
}
@@ -23574,7 +23425,7 @@ function NetscriptFunctions(workerScript) {
return false
}
- _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].startCreateProgramWork(p.name, p.create.time, p.create.level);
+ _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].startCreateProgramWork(p.name, p.create.time, p.create.level);
if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.createProgram == null) {
workerScript.scriptRef.log("Began creating program: " + name);
}
@@ -23582,47 +23433,47 @@ function NetscriptFunctions(workerScript) {
},
commitCrime : function(crimeRoughName) {
var ramCost = _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFn3RamCost;
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN !== 4) {ramCost *= _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFnRamMult;}
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN !== 4) {ramCost *= _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFnRamMult;}
if (workerScript.checkingRam) {
return updateStaticRam("commitCrime", ramCost);
}
updateDynamicRam("commitCrime", ramCost);
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN != 4) {
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN != 4) {
if (!(hasSingularitySF && singularitySFLvl >= 3)) {
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run commitCrime(). It is a Singularity Function and requires SourceFile-4 (level 3) to run.");
return;
}
}
- if (_Missions__WEBPACK_IMPORTED_MODULE_20__[/* inMission */ "c"]) {
+ if (_Missions__WEBPACK_IMPORTED_MODULE_19__[/* inMission */ "c"]) {
workerScript.scriptRef.log("ERROR: commitCrime() failed because you are in the middle of a mission.");
return;
}
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].isWorking) {
- var txt = _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].singularityStopWork();
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].isWorking) {
+ var txt = _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].singularityStopWork();
if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.commitCrime == null) {
workerScript.scriptRef.log(txt);
}
}
//Set Location to slums
- switch(_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].city) {
- case _Locations__WEBPACK_IMPORTED_MODULE_18__["Locations"].Aevum:
- _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].location = _Locations__WEBPACK_IMPORTED_MODULE_18__["Locations"].AevumSlums;
+ switch(_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].city) {
+ case _Locations__WEBPACK_IMPORTED_MODULE_17__["Locations"].Aevum:
+ _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].location = _Locations__WEBPACK_IMPORTED_MODULE_17__["Locations"].AevumSlums;
break;
- case _Locations__WEBPACK_IMPORTED_MODULE_18__["Locations"].Chongqing:
- _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].location = _Locations__WEBPACK_IMPORTED_MODULE_18__["Locations"].ChongqingSlums;
+ case _Locations__WEBPACK_IMPORTED_MODULE_17__["Locations"].Chongqing:
+ _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].location = _Locations__WEBPACK_IMPORTED_MODULE_17__["Locations"].ChongqingSlums;
break;
- case _Locations__WEBPACK_IMPORTED_MODULE_18__["Locations"].Sector12:
- _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].location = _Locations__WEBPACK_IMPORTED_MODULE_18__["Locations"].Sector12Slums;
+ case _Locations__WEBPACK_IMPORTED_MODULE_17__["Locations"].Sector12:
+ _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].location = _Locations__WEBPACK_IMPORTED_MODULE_17__["Locations"].Sector12Slums;
break;
- case _Locations__WEBPACK_IMPORTED_MODULE_18__["Locations"].NewTokyo:
- _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].location = _Locations__WEBPACK_IMPORTED_MODULE_18__["Locations"].NewTokyoSlums;
+ case _Locations__WEBPACK_IMPORTED_MODULE_17__["Locations"].NewTokyo:
+ _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].location = _Locations__WEBPACK_IMPORTED_MODULE_17__["Locations"].NewTokyoSlums;
break;
- case _Locations__WEBPACK_IMPORTED_MODULE_18__["Locations"].Ishima:
- _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].location = _Locations__WEBPACK_IMPORTED_MODULE_18__["Locations"].IshimaSlums;
+ case _Locations__WEBPACK_IMPORTED_MODULE_17__["Locations"].Ishima:
+ _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].location = _Locations__WEBPACK_IMPORTED_MODULE_17__["Locations"].IshimaSlums;
break;
- case _Locations__WEBPACK_IMPORTED_MODULE_18__["Locations"].Volhaven:
- _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].location = _Locations__WEBPACK_IMPORTED_MODULE_18__["Locations"].VolhavenSlums;
+ case _Locations__WEBPACK_IMPORTED_MODULE_17__["Locations"].Volhaven:
+ _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].location = _Locations__WEBPACK_IMPORTED_MODULE_17__["Locations"].VolhavenSlums;
break;
default:
console.log("Invalid Player.city value");
@@ -23639,12 +23490,12 @@ function NetscriptFunctions(workerScript) {
},
getCrimeChance : function(crimeRoughName) {
var ramCost = _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFn3RamCost;
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN !== 4) {ramCost *= _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFnRamMult;}
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN !== 4) {ramCost *= _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFnRamMult;}
if (workerScript.checkingRam) {
return updateStaticRam("getCrimeChance", ramCost);
}
updateDynamicRam("getCrimeChance", ramCost);
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN != 4) {
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN != 4) {
if (!(hasSingularitySF && singularitySFLvl >= 3)) {
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run getCrimeChance(). It is a Singularity Function and requires SourceFile-4 (level 3) to run.");
return;
@@ -23660,67 +23511,67 @@ function NetscriptFunctions(workerScript) {
},
getOwnedAugmentations : function(purchased=false) {
var ramCost = _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFn3RamCost;
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN !== 4) {ramCost *= _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFnRamMult;}
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN !== 4) {ramCost *= _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFnRamMult;}
if (workerScript.checkingRam) {
return updateStaticRam("getOwnedAugmentations", ramCost);
}
updateDynamicRam("getOwnedAugmentations", ramCost);
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN != 4) {
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN != 4) {
if (!(hasSingularitySF && singularitySFLvl >= 3)) {
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run getOwnedAugmentations(). It is a Singularity Function and requires SourceFile-4 (level 3) to run.");
return [];
}
}
var res = [];
- for (var i = 0; i < _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].augmentations.length; ++i) {
- res.push(_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].augmentations[i].name);
+ for (var i = 0; i < _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].augmentations.length; ++i) {
+ res.push(_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].augmentations[i].name);
}
if (purchased) {
- for (var i = 0; i < _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].queuedAugmentations.length; ++i) {
- res.push(_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].queuedAugmentations[i].name);
+ for (var i = 0; i < _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].queuedAugmentations.length; ++i) {
+ res.push(_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].queuedAugmentations[i].name);
}
}
return res;
},
getOwnedSourceFiles : function() {
let ramCost = _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFn3RamCost;
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN !== 4) {ramCost *= _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFnRamMult;}
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN !== 4) {ramCost *= _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFnRamMult;}
if (workerScript.checkingRam) {
return updateStaticRam("getOwnedSourceFiles", ramCost);
}
updateDynamicRam("getOwnedSourceFiles", ramCost);
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN != 4) {
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN != 4) {
if (!(hasSingularitySF && singularitySFLvl >= 3)) {
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run getOwnedSourceFiles(). It is a Singularity Function and requires SourceFile-4 (level 3) to run.");
return [];
}
}
let res = [];
- for (let i = 0; i < _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].sourceFiles.length; ++i) {
- res.push({n: _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].sourceFiles[i].n, lvl: _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].sourceFiles[i].lvl});
+ for (let i = 0; i < _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].sourceFiles.length; ++i) {
+ res.push({n: _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].sourceFiles[i].n, lvl: _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].sourceFiles[i].lvl});
}
return res;
},
getAugmentationsFromFaction : function(facname) {
var ramCost = _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFn3RamCost;
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN !== 4) {ramCost *= _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFnRamMult;}
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN !== 4) {ramCost *= _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFnRamMult;}
if (workerScript.checkingRam) {
return updateStaticRam("getAugmentationsFromFaction", ramCost);
}
updateDynamicRam("getAugmentationsFromFaction", ramCost);
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN != 4) {
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN != 4) {
if (!(hasSingularitySF && singularitySFLvl >= 3)) {
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run getAugmentationsFromFaction(). It is a Singularity Function and requires SourceFile-4 (level 3) to run.");
return [];
}
}
- if (!Object(_Faction_Factions__WEBPACK_IMPORTED_MODULE_15__["factionExists"])(facname)) {
+ if (!Object(_Faction_Factions__WEBPACK_IMPORTED_MODULE_14__["factionExists"])(facname)) {
workerScript.scriptRef.log("ERROR: getAugmentationsFromFaction() failed. Invalid faction name passed in (this is case-sensitive): " + facname);
return [];
}
- var fac = _Faction_Factions__WEBPACK_IMPORTED_MODULE_15__["Factions"][facname];
+ var fac = _Faction_Factions__WEBPACK_IMPORTED_MODULE_14__["Factions"][facname];
var res = [];
for (var i = 0; i < fac.augmentations.length; ++i) {
res.push(fac.augmentations[i]);
@@ -23729,12 +23580,12 @@ function NetscriptFunctions(workerScript) {
},
getAugmentationCost : function(name) {
var ramCost = _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFn3RamCost;
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN !== 4) {ramCost *= _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFnRamMult;}
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN !== 4) {ramCost *= _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFnRamMult;}
if (workerScript.checkingRam) {
return updateStaticRam("getAugmentationCost", ramCost);
}
updateDynamicRam("getAugmentationCost", ramCost);
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN != 4) {
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN != 4) {
if (!(hasSingularitySF && singularitySFLvl >= 3)) {
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run getAugmentationCost(). It is a Singularity Function and requires SourceFile-4 (level 3) to run.");
return false;
@@ -23751,20 +23602,20 @@ function NetscriptFunctions(workerScript) {
},
purchaseAugmentation : function(faction, name) {
var ramCost = _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFn3RamCost;
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN !== 4) {ramCost *= _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFnRamMult;}
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN !== 4) {ramCost *= _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFnRamMult;}
if (workerScript.checkingRam) {
return updateStaticRam("purchaseAugmentation", ramCost);
}
updateDynamicRam("purchaseAugmentation", ramCost);
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN != 4) {
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN != 4) {
if (!(hasSingularitySF && singularitySFLvl >= 3)) {
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run purchaseAugmentation(). It is a Singularity Function and requires SourceFile-4 (level 3) to run.");
return false;
}
}
- var fac = _Faction_Factions__WEBPACK_IMPORTED_MODULE_15__["Factions"][faction];
- if (fac == null || !(fac instanceof _Faction_Faction__WEBPACK_IMPORTED_MODULE_14__["Faction"])) {
+ var fac = _Faction_Factions__WEBPACK_IMPORTED_MODULE_14__["Factions"][faction];
+ if (fac == null || !(fac instanceof _Faction_Faction__WEBPACK_IMPORTED_MODULE_13__["Faction"])) {
workerScript.scriptRef.log("ERROR: purchaseAugmentation() failed because of invalid faction name: " + faction);
return false;
}
@@ -23786,14 +23637,14 @@ function NetscriptFunctions(workerScript) {
}
if (!isNeuroflux) {
- for (var j = 0; j < _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].queuedAugmentations.length; ++j) {
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].queuedAugmentations[j].name === aug.name) {
+ for (var j = 0; j < _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].queuedAugmentations.length; ++j) {
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].queuedAugmentations[j].name === aug.name) {
workerScript.scriptRef.log("ERROR: purchaseAugmentation() failed because you already have " + name);
return false;
}
}
- for (var j = 0; j < _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].augmentations.length; ++j) {
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].augmentations[j].name === aug.name) {
+ for (var j = 0; j < _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].augmentations.length; ++j) {
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].augmentations[j].name === aug.name) {
workerScript.scriptRef.log("ERROR: purchaseAugmentation() failed because you already have " + name);
return false;
}
@@ -23805,10 +23656,10 @@ function NetscriptFunctions(workerScript) {
return false;
}
- var res = Object(_Faction_FactionHelpers__WEBPACK_IMPORTED_MODULE_16__[/* purchaseAugmentation */ "e"])(aug, fac, true);
+ var res = Object(_Faction_FactionHelpers__WEBPACK_IMPORTED_MODULE_15__[/* purchaseAugmentation */ "e"])(aug, fac, true);
workerScript.scriptRef.log(res);
if (Object(_utils_helpers_isString__WEBPACK_IMPORTED_MODULE_42__["isString"])(res) && res.startsWith("You purchased")) {
- _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].gainIntelligenceExp(_Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].IntelligenceSingFnBaseExpGain);
+ _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].gainIntelligenceExp(_Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].IntelligenceSingFnBaseExpGain);
return true;
} else {
return false;
@@ -23816,23 +23667,23 @@ function NetscriptFunctions(workerScript) {
},
installAugmentations : function(cbScript) {
var ramCost = _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFn3RamCost;
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN !== 4) {ramCost *= _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFnRamMult;}
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN !== 4) {ramCost *= _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptSingularityFnRamMult;}
if (workerScript.checkingRam) {
return updateStaticRam("installAugmentations", ramCost);
}
updateDynamicRam("installAugmentations", ramCost);
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN != 4) {
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN != 4) {
if (!(hasSingularitySF && singularitySFLvl >= 3)) {
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run installAugmentations(). It is a Singularity Function and requires SourceFile-4 (level 3) to run.");
return false;
}
}
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].queuedAugmentations.length === 0) {
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].queuedAugmentations.length === 0) {
workerScript.scriptRef.log("ERROR: installAugmentations() failed because you do not have any Augmentations to be installed");
return false;
}
- _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].gainIntelligenceExp(_Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].IntelligenceSingFnBaseExpGain);
+ _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].gainIntelligenceExp(_Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].IntelligenceSingFnBaseExpGain);
workerScript.scriptRef.log("Installing Augmentations. This will cause this script to be killed");
Object(_Augmentations__WEBPACK_IMPORTED_MODULE_1__[/* installAugmentations */ "i"])(cbScript);
return true;
@@ -23849,7 +23700,7 @@ function NetscriptFunctions(workerScript) {
try {
const names = [];
- for (const member of _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].gang.members) {
+ for (const member of _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].gang.members) {
names.push(member.name);
}
return names;
@@ -23866,17 +23717,17 @@ function NetscriptFunctions(workerScript) {
try {
return {
- faction: _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].gang.facName,
- isHacking: _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].gang.isHackingGang,
- moneyGainRate: _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].gang.moneyGainRate,
- power: _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].gang.getPower(),
- respect: _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].gang.respect,
- respectGainRate: _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].gang.respectGainRate,
- territory: _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].gang.getTerritory(),
- territoryClashChance: _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].gang.territoryClashChance,
- territoryWarfareEngaged: _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].gang.territoryWarfareEngaged,
- wantedLevel: _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].gang.wanted,
- wantedLevelGainRate: _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].gang.wantedGainRate,
+ faction: _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].gang.facName,
+ isHacking: _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].gang.isHackingGang,
+ moneyGainRate: _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].gang.moneyGainRate,
+ power: _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].gang.getPower(),
+ respect: _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].gang.respect,
+ respectGainRate: _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].gang.respectGainRate,
+ territory: _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].gang.getTerritory(),
+ territoryClashChance: _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].gang.territoryClashChance,
+ territoryWarfareEngaged: _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].gang.territoryWarfareEngaged,
+ wantedLevel: _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].gang.wanted,
+ wantedLevelGainRate: _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].gang.wantedGainRate,
}
} catch(e) {
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, _NetscriptGang__WEBPACK_IMPORTED_MODULE_31__[/* unknownGangApiExceptionMessage */ "b"]("getGangInformation", e));
@@ -23890,7 +23741,7 @@ function NetscriptFunctions(workerScript) {
_NetscriptGang__WEBPACK_IMPORTED_MODULE_31__[/* checkGangApiAccess */ "a"](workerScript, "getOtherGangInformation");
try {
- return Object.assign(_Gang__WEBPACK_IMPORTED_MODULE_13__[/* AllGangs */ "a"]);
+ return Object.assign(_Gang__WEBPACK_IMPORTED_MODULE_12__[/* AllGangs */ "a"]);
} catch(e) {
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, _NetscriptGang__WEBPACK_IMPORTED_MODULE_31__[/* unknownGangApiExceptionMessage */ "b"]("getOtherGangInformation", e));
}
@@ -23903,7 +23754,7 @@ function NetscriptFunctions(workerScript) {
_NetscriptGang__WEBPACK_IMPORTED_MODULE_31__[/* checkGangApiAccess */ "a"](workerScript, "getMemberInformation");
try {
- for (const member of _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].gang.members) {
+ for (const member of _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].gang.members) {
if (member.name === name) {
return {
agility: member.agi,
@@ -23945,7 +23796,7 @@ function NetscriptFunctions(workerScript) {
_NetscriptGang__WEBPACK_IMPORTED_MODULE_31__[/* checkGangApiAccess */ "a"](workerScript, "canRecruitMember");
try {
- return _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].gang.canRecruitMember();
+ return _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].gang.canRecruitMember();
} catch(e) {
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, _NetscriptGang__WEBPACK_IMPORTED_MODULE_31__[/* unknownGangApiExceptionMessage */ "b"]("canRecruitMember", e));
}
@@ -23958,7 +23809,7 @@ function NetscriptFunctions(workerScript) {
_NetscriptGang__WEBPACK_IMPORTED_MODULE_31__[/* checkGangApiAccess */ "a"](workerScript, "recruitMember");
try {
- const res = _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].gang.recruitMember(name);
+ const res = _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].gang.recruitMember(name);
if (workerScript.shouldLog("recruitMember")) {
if (res) {
workerScript.log(`Successfully recruited Gang Member ${name}`);
@@ -23980,7 +23831,7 @@ function NetscriptFunctions(workerScript) {
_NetscriptGang__WEBPACK_IMPORTED_MODULE_31__[/* checkGangApiAccess */ "a"](workerScript, "getTaskNames");
try {
- const tasks = _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].gang.getAllTaskNames();
+ const tasks = _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].gang.getAllTaskNames();
tasks.unshift("Unassigned");
return tasks;
} catch(e) {
@@ -23995,7 +23846,7 @@ function NetscriptFunctions(workerScript) {
_NetscriptGang__WEBPACK_IMPORTED_MODULE_31__[/* checkGangApiAccess */ "a"](workerScript, "setMemberTask");
try {
- for (const member of _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].gang.members) {
+ for (const member of _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].gang.members) {
if (member.name === memberName) {
const res = member.assignToTask(taskName);
if (workerScript.shouldLog("setMemberTask")) {
@@ -24024,7 +23875,7 @@ function NetscriptFunctions(workerScript) {
_NetscriptGang__WEBPACK_IMPORTED_MODULE_31__[/* checkGangApiAccess */ "a"](workerScript, "getEquipmentNames");
try {
- return _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].gang.getAllUpgradeNames();
+ return _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].gang.getAllUpgradeNames();
} catch(e) {
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, _NetscriptGang__WEBPACK_IMPORTED_MODULE_31__[/* unknownGangApiExceptionMessage */ "b"]("getEquipmentNames", e));
}
@@ -24037,7 +23888,7 @@ function NetscriptFunctions(workerScript) {
_NetscriptGang__WEBPACK_IMPORTED_MODULE_31__[/* checkGangApiAccess */ "a"](workerScript, "getEquipmentCost");
try {
- return _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].gang.getUpgradeCost(equipName);
+ return _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].gang.getUpgradeCost(equipName);
} catch(e) {
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, _NetscriptGang__WEBPACK_IMPORTED_MODULE_31__[/* unknownGangApiExceptionMessage */ "b"]("getEquipmentCost", e));
}
@@ -24050,7 +23901,7 @@ function NetscriptFunctions(workerScript) {
_NetscriptGang__WEBPACK_IMPORTED_MODULE_31__[/* checkGangApiAccess */ "a"](workerScript, "getEquipmentType");
try {
- return _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].gang.getUpgradeType(equipName);
+ return _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].gang.getUpgradeType(equipName);
} catch(e) {
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, _NetscriptGang__WEBPACK_IMPORTED_MODULE_31__[/* unknownGangApiExceptionMessage */ "b"]("getEquipmentType", e));
}
@@ -24063,9 +23914,9 @@ function NetscriptFunctions(workerScript) {
_NetscriptGang__WEBPACK_IMPORTED_MODULE_31__[/* checkGangApiAccess */ "a"](workerScript, "purchaseEquipment");
try {
- for (const member of _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].gang.members) {
+ for (const member of _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].gang.members) {
if (member.name === memberName) {
- const res = member.buyUpgrade(equipName, _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"], _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].gang);
+ const res = member.buyUpgrade(equipName, _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"], _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].gang);
if (workerScript.shouldLog("purchaseEquipment")) {
if (res) {
workerScript.log(`Purchased ${equipName} for Gang member ${memberName}`);
@@ -24092,9 +23943,9 @@ function NetscriptFunctions(workerScript) {
_NetscriptGang__WEBPACK_IMPORTED_MODULE_31__[/* checkGangApiAccess */ "a"](workerScript, "ascendMember");
try {
- for (const member of _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].gang.members) {
+ for (const member of _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].gang.members) {
if (member.name === name) {
- return _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].gang.ascendMember(member, workerScript);
+ return _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].gang.ascendMember(member, workerScript);
}
}
@@ -24113,12 +23964,12 @@ function NetscriptFunctions(workerScript) {
try {
if (engage) {
- _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].gang.territoryWarfareEngaged = true;
+ _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].gang.territoryWarfareEngaged = true;
if (workerScript.shouldLog("setTerritoryWarfare")) {
workerScript.log("Engaging in Gang Territory Warfare");
}
} else {
- _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].gang.territoryWarfareEngaged = false;
+ _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].gang.territoryWarfareEngaged = false;
if (workerScript.shouldLog("setTerritoryWarfare")) {
workerScript.log("Disengaging in Gang Territory Warfare");
}
@@ -24135,13 +23986,13 @@ function NetscriptFunctions(workerScript) {
_NetscriptGang__WEBPACK_IMPORTED_MODULE_31__[/* checkGangApiAccess */ "a"](workerScript, "getChanceToWinClash");
try {
- if (_Gang__WEBPACK_IMPORTED_MODULE_13__[/* AllGangs */ "a"][otherGang] == null) {
+ if (_Gang__WEBPACK_IMPORTED_MODULE_12__[/* AllGangs */ "a"][otherGang] == null) {
workerScript.log(`Invalid gang specified in gang.getChanceToWinClash() : ${otherGang}`);
return 0;
}
- const playerPower = _Gang__WEBPACK_IMPORTED_MODULE_13__[/* AllGangs */ "a"][_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].gang.facName].power;
- const otherPower = _Gang__WEBPACK_IMPORTED_MODULE_13__[/* AllGangs */ "a"][otherGang].power;
+ const playerPower = _Gang__WEBPACK_IMPORTED_MODULE_12__[/* AllGangs */ "a"][_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].gang.facName].power;
+ const otherPower = _Gang__WEBPACK_IMPORTED_MODULE_12__[/* AllGangs */ "a"][otherGang].power;
return playerPower / (otherPower + playerPower);
} catch(e) {
@@ -24153,7 +24004,7 @@ function NetscriptFunctions(workerScript) {
_NetscriptGang__WEBPACK_IMPORTED_MODULE_31__[/* checkGangApiAccess */ "a"](workerScript, "getBonusTime");
try {
- return Math.round(_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].gang.storedCycles / 5);
+ return Math.round(_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].gang.storedCycles / 5);
} catch(e) {
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, _NetscriptGang__WEBPACK_IMPORTED_MODULE_31__[/* unknownGangApiExceptionMessage */ "b"]("getBonusTime", e));
}
@@ -24167,8 +24018,8 @@ function NetscriptFunctions(workerScript) {
return updateStaticRam("getContractNames", _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost / 10);
}
updateDynamicRam("getContractNames", _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost / 10);
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_4__[/* Bladeburner */ "a"] && (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN === 7 || hasBladeburner2079SF)) {
- return _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bladeburner.getContractNamesNetscriptFn();
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_4__[/* Bladeburner */ "a"] && (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN === 7 || hasBladeburner2079SF)) {
+ return _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bladeburner.getContractNamesNetscriptFn();
}
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "getContractNames() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " +
"at the Bladeburner division or because you do not have Source-File 7");
@@ -24178,8 +24029,8 @@ function NetscriptFunctions(workerScript) {
return updateStaticRam("getOperationNames", _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost / 10);
}
updateDynamicRam("getOperationNames", _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost / 10);
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_4__[/* Bladeburner */ "a"] && (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN === 7 || hasBladeburner2079SF)) {
- return _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bladeburner.getOperationNamesNetscriptFn();
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_4__[/* Bladeburner */ "a"] && (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN === 7 || hasBladeburner2079SF)) {
+ return _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bladeburner.getOperationNamesNetscriptFn();
}
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "getOperationNames() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " +
"at the Bladeburner division or because you do not have Source-File 7");
@@ -24189,8 +24040,8 @@ function NetscriptFunctions(workerScript) {
return updateStaticRam("getBlackOpNames", _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost / 10);
}
updateDynamicRam("getBlackOpNames", _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost / 10);
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_4__[/* Bladeburner */ "a"] && (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN === 7 || hasBladeburner2079SF)) {
- return _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bladeburner.getBlackOpNamesNetscriptFn();
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_4__[/* Bladeburner */ "a"] && (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN === 7 || hasBladeburner2079SF)) {
+ return _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bladeburner.getBlackOpNamesNetscriptFn();
}
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "getBlackOpNames() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " +
"at the Bladeburner division or because you do not have Source-File 7");
@@ -24200,8 +24051,8 @@ function NetscriptFunctions(workerScript) {
return updateStaticRam("getGeneralActionNames", _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost / 10);
}
updateDynamicRam("getGeneralActionNames", _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost / 10);
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_4__[/* Bladeburner */ "a"] && (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN === 7 || hasBladeburner2079SF)) {
- return _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bladeburner.getGeneralActionNamesNetscriptFn();
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_4__[/* Bladeburner */ "a"] && (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN === 7 || hasBladeburner2079SF)) {
+ return _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bladeburner.getGeneralActionNamesNetscriptFn();
}
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "getGeneralActionNames() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " +
"at the Bladeburner division or because you do not have Source-File 7");
@@ -24211,8 +24062,8 @@ function NetscriptFunctions(workerScript) {
return updateStaticRam("getSkillNames", _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost / 10);
}
updateDynamicRam("getSkillNames", _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost / 10);
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_4__[/* Bladeburner */ "a"] && (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN === 7 || hasBladeburner2079SF)) {
- return _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bladeburner.getSkillNamesNetscriptFn();
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_4__[/* Bladeburner */ "a"] && (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN === 7 || hasBladeburner2079SF)) {
+ return _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bladeburner.getSkillNamesNetscriptFn();
}
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "getSkillNames() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " +
"at the Bladeburner division or because you do not have Source-File 7");
@@ -24222,9 +24073,9 @@ function NetscriptFunctions(workerScript) {
return updateStaticRam("startAction", _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost);
}
updateDynamicRam("startAction", _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost);
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_4__[/* Bladeburner */ "a"] && (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN === 7 || hasBladeburner2079SF)) {
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_4__[/* Bladeburner */ "a"] && (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN === 7 || hasBladeburner2079SF)) {
try {
- return _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bladeburner.startActionNetscriptFn(type, name, workerScript);
+ return _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bladeburner.startActionNetscriptFn(type, name, workerScript);
} catch(e) {
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Bladeburner.startAction() failed with exception: " + e);
}
@@ -24237,8 +24088,8 @@ function NetscriptFunctions(workerScript) {
return updateStaticRam("stopBladeburnerAction", _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost / 2);
}
updateDynamicRam("stopBladeburnerAction", _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost / 2);
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_4__[/* Bladeburner */ "a"] && (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN === 7 || hasBladeburner2079SF)) {
- return _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bladeburner.resetAction();
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_4__[/* Bladeburner */ "a"] && (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN === 7 || hasBladeburner2079SF)) {
+ return _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bladeburner.resetAction();
}
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "stopBladeburnerAction() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " +
"at the Bladeburner division or because you do not have Source-File 7");
@@ -24248,8 +24099,8 @@ function NetscriptFunctions(workerScript) {
return updateStaticRam("getCurrentAction", _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost / 4);
}
updateDynamicRam("getCurrentAction", _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost / 4);
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_4__[/* Bladeburner */ "a"] && (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN === 7 || hasBladeburner2079SF)) {
- return _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bladeburner.getTypeAndNameFromActionId(_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bladeburner.action);
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_4__[/* Bladeburner */ "a"] && (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN === 7 || hasBladeburner2079SF)) {
+ return _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bladeburner.getTypeAndNameFromActionId(_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bladeburner.action);
}
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "getCurrentAction() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " +
"at the Bladeburner division or because you do not have Source-File 7");
@@ -24259,9 +24110,9 @@ function NetscriptFunctions(workerScript) {
return updateStaticRam("getActionTime", _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost);
}
updateDynamicRam("getActionTime", _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost);
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_4__[/* Bladeburner */ "a"] && (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN === 7 || hasBladeburner2079SF)) {
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_4__[/* Bladeburner */ "a"] && (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN === 7 || hasBladeburner2079SF)) {
try {
- return _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bladeburner.getActionTimeNetscriptFn(type, name, workerScript);
+ return _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bladeburner.getActionTimeNetscriptFn(type, name, workerScript);
} catch(e) {
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Bladeburner.getActionTime() failed with exception: " + e);
}
@@ -24274,9 +24125,9 @@ function NetscriptFunctions(workerScript) {
return updateStaticRam("getActionEstimatedSuccessChance", _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost);
}
updateDynamicRam("getActionEstimatedSuccessChance", _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost);
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_4__[/* Bladeburner */ "a"] && (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN === 7 || hasBladeburner2079SF)) {
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_4__[/* Bladeburner */ "a"] && (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN === 7 || hasBladeburner2079SF)) {
try {
- return _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bladeburner.getActionEstimatedSuccessChanceNetscriptFn(type, name, workerScript);
+ return _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bladeburner.getActionEstimatedSuccessChanceNetscriptFn(type, name, workerScript);
} catch(e) {
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Bladeburner.getActionEstimatedSuccessChance() failed with exception: " + e);
}
@@ -24293,12 +24144,12 @@ function NetscriptFunctions(workerScript) {
try {
var errorLogText = Object(_NetscriptBladeburner__WEBPACK_IMPORTED_MODULE_30__[/* unknownBladeburnerActionErrorMessage */ "b"])("getActionAutolevel", type, name);
- const actionId = _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bladeburner.getActionIdFromTypeAndName(type, name);
+ const actionId = _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bladeburner.getActionIdFromTypeAndName(type, name);
if (actionId == null) {
workerScript.log(errorLogText);
return -1;
}
- const actionObj = _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bladeburner.getActionObject(actionId);
+ const actionObj = _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bladeburner.getActionObject(actionId);
if (actionObj == null) {
workerScript.log(errorLogText);
return -1;
@@ -24320,9 +24171,9 @@ function NetscriptFunctions(workerScript) {
return updateStaticRam("getActionCountRemaining", _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost);
}
updateDynamicRam("getActionCountRemaining", _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost);
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_4__[/* Bladeburner */ "a"] && (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN === 7 || hasBladeburner2079SF)) {
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_4__[/* Bladeburner */ "a"] && (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN === 7 || hasBladeburner2079SF)) {
try {
- return _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bladeburner.getActionCountRemainingNetscriptFn(type, name, workerScript);
+ return _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bladeburner.getActionCountRemainingNetscriptFn(type, name, workerScript);
} catch(e) {
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Bladeburner.getActionCountRemaining() failed with exception: " + e);
}
@@ -24339,12 +24190,12 @@ function NetscriptFunctions(workerScript) {
try {
var errorLogText = Object(_NetscriptBladeburner__WEBPACK_IMPORTED_MODULE_30__[/* unknownBladeburnerActionErrorMessage */ "b"])("getActionMaxLevel", type, name);
- const actionId = _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bladeburner.getActionIdFromTypeAndName(type, name);
+ const actionId = _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bladeburner.getActionIdFromTypeAndName(type, name);
if (actionId == null) {
workerScript.log(errorLogText);
return -1;
}
- const actionObj = _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bladeburner.getActionObject(actionId);
+ const actionObj = _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bladeburner.getActionObject(actionId);
if (actionObj == null) {
workerScript.log(errorLogText);
return -1;
@@ -24363,12 +24214,12 @@ function NetscriptFunctions(workerScript) {
try {
var errorLogText = Object(_NetscriptBladeburner__WEBPACK_IMPORTED_MODULE_30__[/* unknownBladeburnerActionErrorMessage */ "b"])("getActionCurrentLevel", type, name);
- const actionId = _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bladeburner.getActionIdFromTypeAndName(type, name);
+ const actionId = _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bladeburner.getActionIdFromTypeAndName(type, name);
if (actionId == null) {
workerScript.log(errorLogText);
return -1;
}
- const actionObj = _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bladeburner.getActionObject(actionId);
+ const actionObj = _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bladeburner.getActionObject(actionId);
if (actionObj == null) {
workerScript.log(errorLogText);
return -1;
@@ -24387,12 +24238,12 @@ function NetscriptFunctions(workerScript) {
try {
var errorLogText = Object(_NetscriptBladeburner__WEBPACK_IMPORTED_MODULE_30__[/* unknownBladeburnerActionErrorMessage */ "b"])("getActionAutolevel", type, name);
- const actionId = _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bladeburner.getActionIdFromTypeAndName(type, name);
+ const actionId = _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bladeburner.getActionIdFromTypeAndName(type, name);
if (actionId == null) {
workerScript.log(errorLogText);
return false;
}
- const actionObj = _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bladeburner.getActionObject(actionId);
+ const actionObj = _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bladeburner.getActionObject(actionId);
if (actionObj == null) {
workerScript.log(errorLogText);
return false;
@@ -24411,12 +24262,12 @@ function NetscriptFunctions(workerScript) {
try {
var errorLogText = Object(_NetscriptBladeburner__WEBPACK_IMPORTED_MODULE_30__[/* unknownBladeburnerActionErrorMessage */ "b"])("setActionAutolevel", type, name);
- const actionId = _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bladeburner.getActionIdFromTypeAndName(type, name);
+ const actionId = _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bladeburner.getActionIdFromTypeAndName(type, name);
if (actionId == null) {
workerScript.log(errorLogText);
return;
}
- const actionObj = _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bladeburner.getActionObject(actionId);
+ const actionObj = _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bladeburner.getActionObject(actionId);
if (actionObj == null) {
workerScript.log(errorLogText);
return;
@@ -24435,12 +24286,12 @@ function NetscriptFunctions(workerScript) {
try {
var errorLogText = Object(_NetscriptBladeburner__WEBPACK_IMPORTED_MODULE_30__[/* unknownBladeburnerActionErrorMessage */ "b"])("setActionLevel", type, name);
- const actionId = _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bladeburner.getActionIdFromTypeAndName(type, name);
+ const actionId = _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bladeburner.getActionIdFromTypeAndName(type, name);
if (actionId == null) {
workerScript.log(errorLogText);
return;
}
- const actionObj = _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bladeburner.getActionObject(actionId);
+ const actionObj = _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bladeburner.getActionObject(actionId);
if (actionObj == null) {
workerScript.log(errorLogText);
return;
@@ -24463,8 +24314,8 @@ function NetscriptFunctions(workerScript) {
return updateStaticRam("getRank", _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost);
}
updateDynamicRam("getRank", _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost);
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_4__[/* Bladeburner */ "a"] && (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN === 7 || hasBladeburner2079SF)) {
- return _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bladeburner.rank;
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_4__[/* Bladeburner */ "a"] && (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN === 7 || hasBladeburner2079SF)) {
+ return _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bladeburner.rank;
}
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "getRank() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " +
"at the Bladeburner division or because you do not have Source-File 7");
@@ -24474,8 +24325,8 @@ function NetscriptFunctions(workerScript) {
return updateStaticRam("getSkillPoints", _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost);
}
updateDynamicRam("getSkillPoints", _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost);
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_4__[/* Bladeburner */ "a"] && (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN === 7 || hasBladeburner2079SF)) {
- return _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bladeburner.skillPoints;
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_4__[/* Bladeburner */ "a"] && (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN === 7 || hasBladeburner2079SF)) {
+ return _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bladeburner.skillPoints;
}
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "getSkillPoints() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " +
"at the Bladeburner division or because you do not have Source-File 7");
@@ -24485,9 +24336,9 @@ function NetscriptFunctions(workerScript) {
return updateStaticRam("getSkillLevel", _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost);
}
updateDynamicRam("getSkillLevel", _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost);
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_4__[/* Bladeburner */ "a"] && (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN === 7 || hasBladeburner2079SF)) {
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_4__[/* Bladeburner */ "a"] && (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN === 7 || hasBladeburner2079SF)) {
try {
- return _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bladeburner.getSkillLevelNetscriptFn(skillName, workerScript);
+ return _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bladeburner.getSkillLevelNetscriptFn(skillName, workerScript);
} catch(e) {
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Bladeburner.getSkillLevel() failed with exception: " + e);
}
@@ -24500,9 +24351,9 @@ function NetscriptFunctions(workerScript) {
return updateStaticRam("getSkillUpgradeCost", _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost);
}
updateDynamicRam("getSkillUpgradeCost", _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost);
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_4__[/* Bladeburner */ "a"] && (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN === 7 || hasBladeburner2079SF)) {
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_4__[/* Bladeburner */ "a"] && (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN === 7 || hasBladeburner2079SF)) {
try {
- return _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bladeburner.getSkillUpgradeCostNetscriptFn(skillName, workerScript);
+ return _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bladeburner.getSkillUpgradeCostNetscriptFn(skillName, workerScript);
} catch(e) {
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Bladeburner.getSkillUpgradeCost() failed with exception: " + e);
}
@@ -24515,9 +24366,9 @@ function NetscriptFunctions(workerScript) {
return updateStaticRam("upgradeSkill", _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost);
}
updateDynamicRam("upgradeSkill", _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost);
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_4__[/* Bladeburner */ "a"] && (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN === 7 || hasBladeburner2079SF)) {
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_4__[/* Bladeburner */ "a"] && (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN === 7 || hasBladeburner2079SF)) {
try {
- return _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bladeburner.upgradeSkillNetscriptFn(skillName, workerScript);
+ return _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bladeburner.upgradeSkillNetscriptFn(skillName, workerScript);
} catch(e) {
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Bladeburner.upgradeSkill() failed with exception: " + e);
}
@@ -24530,9 +24381,9 @@ function NetscriptFunctions(workerScript) {
return updateStaticRam("getTeamSize", _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost);
}
updateDynamicRam("getTeamSize", _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost);
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_4__[/* Bladeburner */ "a"] && (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN === 7 || hasBladeburner2079SF)) {
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_4__[/* Bladeburner */ "a"] && (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN === 7 || hasBladeburner2079SF)) {
try {
- return _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bladeburner.getTeamSizeNetscriptFn(type, name, workerScript);
+ return _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bladeburner.getTeamSizeNetscriptFn(type, name, workerScript);
} catch(e) {
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Bladeburner.getTeamSize() failed with exception: " + e);
}
@@ -24545,9 +24396,9 @@ function NetscriptFunctions(workerScript) {
return updateStaticRam("setTeamSize", _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost);
}
updateDynamicRam("setTeamSize", _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost);
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_4__[/* Bladeburner */ "a"] && (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN === 7 || hasBladeburner2079SF)) {
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_4__[/* Bladeburner */ "a"] && (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN === 7 || hasBladeburner2079SF)) {
try {
- return _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bladeburner.setTeamSizeNetscriptFn(type, name, size, workerScript);
+ return _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bladeburner.setTeamSizeNetscriptFn(type, name, size, workerScript);
} catch(e) {
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Bladeburner.setTeamSize() failed with exception: " + e);
}
@@ -24560,9 +24411,9 @@ function NetscriptFunctions(workerScript) {
return updateStaticRam("getCityEstimatedPopulation", _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost);
}
updateDynamicRam("getCityEstimatedPopulation", _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost);
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_4__[/* Bladeburner */ "a"] && (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN === 7 || hasBladeburner2079SF)) {
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_4__[/* Bladeburner */ "a"] && (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN === 7 || hasBladeburner2079SF)) {
try {
- return _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bladeburner.getCityEstimatedPopulationNetscriptFn(cityName, workerScript);
+ return _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bladeburner.getCityEstimatedPopulationNetscriptFn(cityName, workerScript);
} catch(e) {
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Bladeburner.getCityEstimatedPopulation() failed with exception: " + e);
}
@@ -24575,9 +24426,9 @@ function NetscriptFunctions(workerScript) {
return updateStaticRam("getCityEstimatedCommunities", _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost);
}
updateDynamicRam("getCityEstimatedCommunities", _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost);
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_4__[/* Bladeburner */ "a"] && (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN === 7 || hasBladeburner2079SF)) {
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_4__[/* Bladeburner */ "a"] && (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN === 7 || hasBladeburner2079SF)) {
try {
- return _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bladeburner.getCityEstimatedCommunitiesNetscriptFn(cityName, workerScript);
+ return _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bladeburner.getCityEstimatedCommunitiesNetscriptFn(cityName, workerScript);
} catch(e) {
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Bladeburner.getCityEstimatedCommunities() failed with exception: " + e);
}
@@ -24590,9 +24441,9 @@ function NetscriptFunctions(workerScript) {
return updateStaticRam("getCityChaos", _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost);
}
updateDynamicRam("getCityChaos", _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost);
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_4__[/* Bladeburner */ "a"] && (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN === 7 || hasBladeburner2079SF)) {
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_4__[/* Bladeburner */ "a"] && (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN === 7 || hasBladeburner2079SF)) {
try {
- return _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bladeburner.getCityChaosNetscriptFn(cityName, workerScript);
+ return _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bladeburner.getCityChaosNetscriptFn(cityName, workerScript);
} catch(e) {
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Bladeburner.getCityChaos() failed with exception: " + e);
}
@@ -24605,9 +24456,9 @@ function NetscriptFunctions(workerScript) {
return updateStaticRam("getCity", _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost);
}
updateDynamicRam("getCity", _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost);
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_4__[/* Bladeburner */ "a"] && (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN === 7 || hasBladeburner2079SF)) {
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_4__[/* Bladeburner */ "a"] && (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN === 7 || hasBladeburner2079SF)) {
try {
- return _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bladeburner.city;
+ return _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bladeburner.city;
} catch(e) {
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Bladeburner.getCity() failed with exception: " + e);
}
@@ -24620,9 +24471,9 @@ function NetscriptFunctions(workerScript) {
return updateStaticRam("switchCity", _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost);
}
updateDynamicRam("switchCity", _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost);
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_4__[/* Bladeburner */ "a"] && (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN === 7 || hasBladeburner2079SF)) {
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_4__[/* Bladeburner */ "a"] && (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN === 7 || hasBladeburner2079SF)) {
try {
- return _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bladeburner.switchCityNetscriptFn(cityName, workerScript);
+ return _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bladeburner.switchCityNetscriptFn(cityName, workerScript);
} catch(e) {
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Bladeburner.switchCity() failed with exception: " + e);
}
@@ -24635,8 +24486,8 @@ function NetscriptFunctions(workerScript) {
return updateStaticRam("getStamina", _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost);
}
updateDynamicRam("getStamina", _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost);
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_4__[/* Bladeburner */ "a"] && (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN === 7 || hasBladeburner2079SF)) {
- return [_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bladeburner.stamina, _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bladeburner.maxStamina];
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_4__[/* Bladeburner */ "a"] && (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN === 7 || hasBladeburner2079SF)) {
+ return [_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bladeburner.stamina, _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bladeburner.maxStamina];
}
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "getStamina() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " +
"at the Bladeburner division or because you do not have Source-File 7");
@@ -24646,8 +24497,8 @@ function NetscriptFunctions(workerScript) {
return updateStaticRam("joinBladeburnerFaction", _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost);
}
updateDynamicRam("joinBladeburnerFaction", _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost);
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_4__[/* Bladeburner */ "a"] && (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN === 7 || hasBladeburner2079SF)) {
- return _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bladeburner.joinBladeburnerFactionNetscriptFn(workerScript);
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_4__[/* Bladeburner */ "a"] && (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN === 7 || hasBladeburner2079SF)) {
+ return _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bladeburner.joinBladeburnerFactionNetscriptFn(workerScript);
}
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "joinBladeburnerFaction() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " +
"at the Bladeburner division or because you do not have Source-File 7");
@@ -24657,12 +24508,12 @@ function NetscriptFunctions(workerScript) {
return updateStaticRam("joinBladeburnerDivision", _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost);
}
updateDynamicRam("joinBladeburnerDivision", _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost);
- if ((_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN === 7 || hasBladeburner2079SF)) {
- if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_4__[/* Bladeburner */ "a"]) {
+ if ((_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN === 7 || hasBladeburner2079SF)) {
+ if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_4__[/* Bladeburner */ "a"]) {
return true; //Already member
- } else if (_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].strength >= 100 && _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].defense >= 100 &&
- _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].dexterity >= 100 && _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].agility >= 100) {
- _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bladeburner = new _Bladeburner__WEBPACK_IMPORTED_MODULE_4__[/* Bladeburner */ "a"]({new:true});
+ } else if (_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].strength >= 100 && _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].defense >= 100 &&
+ _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].dexterity >= 100 && _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].agility >= 100) {
+ _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bladeburner = new _Bladeburner__WEBPACK_IMPORTED_MODULE_4__[/* Bladeburner */ "a"]({new:true});
workerScript.log("You have been accepted into the Bladeburner division");
return true;
} else {
@@ -24675,8 +24526,8 @@ function NetscriptFunctions(workerScript) {
},
getBonusTime : function() {
if (workerScript.checkingRam) {return 0;}
- if ((_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bitNodeN === 7 || hasBladeburner2079SF)) {
- return Math.round(_Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].bladeburner.storedCycles / 5);
+ if ((_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bitNodeN === 7 || hasBladeburner2079SF)) {
+ return Math.round(_Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].bladeburner.storedCycles / 5);
}
throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "getBonusTime() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " +
"at the Bladeburner division or because you do not have Source-File 7");
@@ -24696,7 +24547,7 @@ function NetscriptFunctions(workerScript) {
answer = String(answer);
const serv = safeGetServer(ip, "codingcontract.attempt()");
if (contract.isSolution(answer)) {
- const reward = _Player__WEBPACK_IMPORTED_MODULE_21__[/* Player */ "a"].gainCodingContractReward(contract.reward, contract.getDifficulty());
+ const reward = _Player__WEBPACK_IMPORTED_MODULE_20__[/* Player */ "a"].gainCodingContractReward(contract.reward, contract.getDifficulty());
workerScript.log(`Successfully completed Coding Contract ${fn}. Reward: ${reward}`);
serv.removeContract(fn);
return true;
@@ -24961,12 +24812,12 @@ function substituteAliases(origCommand) {
/* harmony import */ var _Faction__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_Faction__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _Factions__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Factions */ 14);
/* harmony import */ var _Factions__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_Factions__WEBPACK_IMPORTED_MODULE_5__);
-/* harmony import */ var _FactionInfo__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./FactionInfo */ 114);
+/* harmony import */ var _FactionInfo__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./FactionInfo */ 115);
/* harmony import */ var _FactionInfo__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_FactionInfo__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var _Location__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../Location */ 91);
/* harmony import */ var _Missions__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../Missions */ 55);
/* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../Player */ 0);
-/* harmony import */ var _SettingEnums__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../SettingEnums */ 72);
+/* harmony import */ var _SettingEnums__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../SettingEnums */ 73);
/* harmony import */ var _SettingEnums__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_SettingEnums__WEBPACK_IMPORTED_MODULE_10__);
/* harmony import */ var _Settings__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../Settings */ 19);
/* harmony import */ var _Settings__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_Settings__WEBPACK_IMPORTED_MODULE_11__);
@@ -24975,7 +24826,7 @@ function substituteAliases(origCommand) {
/* harmony import */ var _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../ui/numeralFormat */ 4);
/* harmony import */ var _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_13__);
/* harmony import */ var _utils_DialogBox__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../utils/DialogBox */ 9);
-/* harmony import */ var _utils_FactionInvitationBox__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../utils/FactionInvitationBox */ 134);
+/* harmony import */ var _utils_FactionInvitationBox__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../utils/FactionInvitationBox */ 136);
/* harmony import */ var _utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../../utils/uiHelpers/removeChildrenFromElement */ 29);
/* harmony import */ var _utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_16__);
/* harmony import */ var _utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../../utils/uiHelpers/createElement */ 2);
@@ -29703,9 +29554,9 @@ function calculateWeakenTime(server, hack, int) {
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return resetGangs; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return loadAllGangs; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return Gang; });
-/* harmony import */ var _data_gangmembertasks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./data/gangmembertasks */ 133);
+/* harmony import */ var _data_gangmembertasks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./data/gangmembertasks */ 135);
/* harmony import */ var _data_gangmembertasks__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_data_gangmembertasks__WEBPACK_IMPORTED_MODULE_0__);
-/* harmony import */ var _data_gangmemberupgrades__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./data/gangmemberupgrades */ 132);
+/* harmony import */ var _data_gangmemberupgrades__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./data/gangmemberupgrades */ 134);
/* harmony import */ var _data_gangmemberupgrades__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_data_gangmemberupgrades__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _engine__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./engine */ 8);
/* harmony import */ var _Faction_Faction__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Faction/Faction */ 56);
@@ -29719,7 +29570,7 @@ function calculateWeakenTime(server, hack, int) {
/* harmony import */ var _utils_JSONReviver__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../utils/JSONReviver */ 13);
/* harmony import */ var _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../utils/helpers/keyCodes */ 33);
/* harmony import */ var _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_9__);
-/* harmony import */ var _utils_uiHelpers_createAccordionElement__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../utils/uiHelpers/createAccordionElement */ 76);
+/* harmony import */ var _utils_uiHelpers_createAccordionElement__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../utils/uiHelpers/createAccordionElement */ 77);
/* harmony import */ var _utils_uiHelpers_createAccordionElement__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_createAccordionElement__WEBPACK_IMPORTED_MODULE_10__);
/* harmony import */ var _utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../utils/uiHelpers/createElement */ 2);
/* harmony import */ var _utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_11__);
@@ -31682,53 +31533,57 @@ Gang.prototype.clearUI = function() {
/* harmony import */ var _CodingContracts__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_CodingContracts__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Constants */ 1);
/* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_Constants__WEBPACK_IMPORTED_MODULE_2__);
-/* harmony import */ var _CreateProgram__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./CreateProgram */ 24);
-/* harmony import */ var _DarkWeb__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./DarkWeb */ 79);
-/* harmony import */ var _engine__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./engine */ 8);
-/* harmony import */ var _Fconf__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Fconf */ 47);
-/* harmony import */ var _Hacking__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Hacking */ 49);
-/* harmony import */ var _HelpText__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./HelpText */ 102);
-/* harmony import */ var _HelpText__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_HelpText__WEBPACK_IMPORTED_MODULE_8__);
-/* harmony import */ var _InteractiveTutorial__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./InteractiveTutorial */ 34);
-/* harmony import */ var _Literature__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./Literature */ 82);
-/* harmony import */ var _Message__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./Message */ 41);
-/* harmony import */ var _NetscriptWorker__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./NetscriptWorker */ 25);
-/* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./Player */ 0);
-/* harmony import */ var _RedPill__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./RedPill */ 58);
-/* harmony import */ var _Script__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./Script */ 30);
-/* harmony import */ var _Server__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./Server */ 11);
-/* harmony import */ var _Settings__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./Settings */ 19);
-/* harmony import */ var _Settings__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(_Settings__WEBPACK_IMPORTED_MODULE_17__);
-/* harmony import */ var _SpecialServerIps__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./SpecialServerIps */ 32);
-/* harmony import */ var _TextFile__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./TextFile */ 65);
-/* harmony import */ var _TextFile__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(_TextFile__WEBPACK_IMPORTED_MODULE_19__);
-/* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../utils/StringHelperFunctions */ 3);
-/* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_20__);
-/* harmony import */ var _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./ui/navigationTracking */ 12);
-/* harmony import */ var _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/__webpack_require__.n(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_21__);
-/* harmony import */ var _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./ui/numeralFormat */ 4);
-/* harmony import */ var _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_22___default = /*#__PURE__*/__webpack_require__.n(_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_22__);
-/* harmony import */ var _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ../utils/helpers/keyCodes */ 33);
-/* harmony import */ var _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_23___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_23__);
-/* harmony import */ var _utils_helpers_addOffset__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ../utils/helpers/addOffset */ 66);
-/* harmony import */ var _utils_helpers_addOffset__WEBPACK_IMPORTED_MODULE_24___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_addOffset__WEBPACK_IMPORTED_MODULE_24__);
-/* harmony import */ var _utils_helpers_isString__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ../utils/helpers/isString */ 40);
-/* harmony import */ var _utils_helpers_isString__WEBPACK_IMPORTED_MODULE_25___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_isString__WEBPACK_IMPORTED_MODULE_25__);
-/* harmony import */ var _utils_helpers_arrayToString__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ../utils/helpers/arrayToString */ 54);
-/* harmony import */ var _utils_helpers_arrayToString__WEBPACK_IMPORTED_MODULE_26___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_arrayToString__WEBPACK_IMPORTED_MODULE_26__);
-/* harmony import */ var _utils_helpers_getTimestamp__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ../utils/helpers/getTimestamp */ 87);
-/* harmony import */ var _utils_helpers_getTimestamp__WEBPACK_IMPORTED_MODULE_27___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_getTimestamp__WEBPACK_IMPORTED_MODULE_27__);
-/* harmony import */ var _utils_LogBox__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ../utils/LogBox */ 78);
-/* harmony import */ var _utils_YesNoBox__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ../utils/YesNoBox */ 17);
-/* harmony import */ var _utils_YesNoBox__WEBPACK_IMPORTED_MODULE_29___default = /*#__PURE__*/__webpack_require__.n(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_29__);
-/* harmony import */ var _ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./ui/postToTerminal */ 7);
-/* harmony import */ var _ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30___default = /*#__PURE__*/__webpack_require__.n(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__);
-/* harmony import */ var autosize__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! autosize */ 151);
-/* harmony import */ var autosize__WEBPACK_IMPORTED_MODULE_31___default = /*#__PURE__*/__webpack_require__.n(autosize__WEBPACK_IMPORTED_MODULE_31__);
-/* harmony import */ var jszip__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! jszip */ 150);
-/* harmony import */ var jszip__WEBPACK_IMPORTED_MODULE_32___default = /*#__PURE__*/__webpack_require__.n(jszip__WEBPACK_IMPORTED_MODULE_32__);
-/* harmony import */ var file_saver__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! file-saver */ 149);
-/* harmony import */ var file_saver__WEBPACK_IMPORTED_MODULE_33___default = /*#__PURE__*/__webpack_require__.n(file_saver__WEBPACK_IMPORTED_MODULE_33__);
+/* harmony import */ var _Programs_Programs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Programs/Programs */ 24);
+/* harmony import */ var _Programs_Programs__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_Programs_Programs__WEBPACK_IMPORTED_MODULE_3__);
+/* harmony import */ var _DarkWeb_DarkWeb__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./DarkWeb/DarkWeb */ 119);
+/* harmony import */ var _DarkWeb_DarkWebItems__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./DarkWeb/DarkWebItems */ 71);
+/* harmony import */ var _DarkWeb_DarkWebItems__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_DarkWeb_DarkWebItems__WEBPACK_IMPORTED_MODULE_5__);
+/* harmony import */ var _engine__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./engine */ 8);
+/* harmony import */ var _Fconf__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Fconf */ 47);
+/* harmony import */ var _Hacking__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Hacking */ 49);
+/* harmony import */ var _HelpText__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./HelpText */ 103);
+/* harmony import */ var _HelpText__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_HelpText__WEBPACK_IMPORTED_MODULE_9__);
+/* harmony import */ var _InteractiveTutorial__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./InteractiveTutorial */ 34);
+/* harmony import */ var _Literature__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./Literature */ 82);
+/* harmony import */ var _Message__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./Message */ 41);
+/* harmony import */ var _NetscriptWorker__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./NetscriptWorker */ 25);
+/* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./Player */ 0);
+/* harmony import */ var _RedPill__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./RedPill */ 58);
+/* harmony import */ var _Script__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./Script */ 30);
+/* harmony import */ var _Server__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./Server */ 11);
+/* harmony import */ var _Settings__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./Settings */ 19);
+/* harmony import */ var _Settings__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(_Settings__WEBPACK_IMPORTED_MODULE_18__);
+/* harmony import */ var _SpecialServerIps__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./SpecialServerIps */ 32);
+/* harmony import */ var _TextFile__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./TextFile */ 65);
+/* harmony import */ var _TextFile__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(_TextFile__WEBPACK_IMPORTED_MODULE_20__);
+/* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../utils/StringHelperFunctions */ 3);
+/* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/__webpack_require__.n(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_21__);
+/* harmony import */ var _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./ui/navigationTracking */ 12);
+/* harmony import */ var _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_22___default = /*#__PURE__*/__webpack_require__.n(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_22__);
+/* harmony import */ var _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./ui/numeralFormat */ 4);
+/* harmony import */ var _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_23___default = /*#__PURE__*/__webpack_require__.n(_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_23__);
+/* harmony import */ var _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ../utils/helpers/keyCodes */ 33);
+/* harmony import */ var _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_24___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_24__);
+/* harmony import */ var _utils_helpers_addOffset__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ../utils/helpers/addOffset */ 66);
+/* harmony import */ var _utils_helpers_addOffset__WEBPACK_IMPORTED_MODULE_25___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_addOffset__WEBPACK_IMPORTED_MODULE_25__);
+/* harmony import */ var _utils_helpers_isString__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ../utils/helpers/isString */ 40);
+/* harmony import */ var _utils_helpers_isString__WEBPACK_IMPORTED_MODULE_26___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_isString__WEBPACK_IMPORTED_MODULE_26__);
+/* harmony import */ var _utils_helpers_arrayToString__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ../utils/helpers/arrayToString */ 54);
+/* harmony import */ var _utils_helpers_arrayToString__WEBPACK_IMPORTED_MODULE_27___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_arrayToString__WEBPACK_IMPORTED_MODULE_27__);
+/* harmony import */ var _utils_helpers_getTimestamp__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ../utils/helpers/getTimestamp */ 87);
+/* harmony import */ var _utils_helpers_getTimestamp__WEBPACK_IMPORTED_MODULE_28___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_getTimestamp__WEBPACK_IMPORTED_MODULE_28__);
+/* harmony import */ var _utils_LogBox__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ../utils/LogBox */ 79);
+/* harmony import */ var _utils_YesNoBox__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ../utils/YesNoBox */ 17);
+/* harmony import */ var _utils_YesNoBox__WEBPACK_IMPORTED_MODULE_30___default = /*#__PURE__*/__webpack_require__.n(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_30__);
+/* harmony import */ var _ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./ui/postToTerminal */ 7);
+/* harmony import */ var _ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31___default = /*#__PURE__*/__webpack_require__.n(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__);
+/* harmony import */ var autosize__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! autosize */ 153);
+/* harmony import */ var autosize__WEBPACK_IMPORTED_MODULE_32___default = /*#__PURE__*/__webpack_require__.n(autosize__WEBPACK_IMPORTED_MODULE_32__);
+/* harmony import */ var jszip__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! jszip */ 152);
+/* harmony import */ var jszip__WEBPACK_IMPORTED_MODULE_33___default = /*#__PURE__*/__webpack_require__.n(jszip__WEBPACK_IMPORTED_MODULE_33__);
+/* harmony import */ var file_saver__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! file-saver */ 151);
+/* harmony import */ var file_saver__WEBPACK_IMPORTED_MODULE_34___default = /*#__PURE__*/__webpack_require__.n(file_saver__WEBPACK_IMPORTED_MODULE_34__);
+
@@ -31766,23 +31621,23 @@ Gang.prototype.clearUI = function() {
function postNetburnerText() {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Bitburner v" + _Constants__WEBPACK_IMPORTED_MODULE_2__["CONSTANTS"].Version);
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Bitburner v" + _Constants__WEBPACK_IMPORTED_MODULE_2__["CONSTANTS"].Version);
}
//Defines key commands in terminal
$(document).keydown(function(event) {
//Terminal
- if (_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_21__["routing"].isOn(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_21__["Page"].Terminal)) {
+ if (_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_22__["routing"].isOn(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_22__["Page"].Terminal)) {
var terminalInput = document.getElementById("terminal-input-text-box");
if (terminalInput != null && !event.ctrlKey && !event.shiftKey && !Terminal.contractOpen) {terminalInput.focus();}
- if (event.keyCode === _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_23__["KEY"].ENTER) {
+ if (event.keyCode === _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_24__["KEY"].ENTER) {
event.preventDefault(); //Prevent newline from being entered in Script Editor
var command = terminalInput.value;
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])(
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])(
"[" +
- (_Fconf__WEBPACK_IMPORTED_MODULE_6__[/* FconfSettings */ "a"].ENABLE_TIMESTAMPS ? Object(_utils_helpers_getTimestamp__WEBPACK_IMPORTED_MODULE_27__["getTimestamp"])() + " " : "") +
- _Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].getCurrentServer().hostname +
+ (_Fconf__WEBPACK_IMPORTED_MODULE_7__[/* FconfSettings */ "a"].ENABLE_TIMESTAMPS ? Object(_utils_helpers_getTimestamp__WEBPACK_IMPORTED_MODULE_28__["getTimestamp"])() + " " : "") +
+ _Player__WEBPACK_IMPORTED_MODULE_14__[/* Player */ "a"].getCurrentServer().hostname +
" ~]> " + command
);
@@ -31796,19 +31651,19 @@ $(document).keydown(function(event) {
}
}
- if (event.keyCode === _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_23__["KEY"].C && event.ctrlKey) {
- if (_engine__WEBPACK_IMPORTED_MODULE_5__["Engine"]._actionInProgress) {
+ if (event.keyCode === _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_24__["KEY"].C && event.ctrlKey) {
+ if (_engine__WEBPACK_IMPORTED_MODULE_6__["Engine"]._actionInProgress) {
//Cancel action
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Cancelling...");
- _engine__WEBPACK_IMPORTED_MODULE_5__["Engine"]._actionInProgress = false;
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Cancelling...");
+ _engine__WEBPACK_IMPORTED_MODULE_6__["Engine"]._actionInProgress = false;
Terminal.finishAction(true);
- } else if (_Fconf__WEBPACK_IMPORTED_MODULE_6__[/* FconfSettings */ "a"].ENABLE_BASH_HOTKEYS) {
+ } else if (_Fconf__WEBPACK_IMPORTED_MODULE_7__[/* FconfSettings */ "a"].ENABLE_BASH_HOTKEYS) {
//Dont prevent default so it still copies
Terminal.resetTerminalInput(); //Clear Terminal
}
}
- if (event.keyCode === _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_23__["KEY"].L && event.ctrlKey) {
+ if (event.keyCode === _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_24__["KEY"].L && event.ctrlKey) {
event.preventDefault();
Terminal.executeCommand("clear"); //Clear screen
}
@@ -31816,9 +31671,9 @@ $(document).keydown(function(event) {
//Ctrl p same as up arrow
//Ctrl n same as down arrow
- if (event.keyCode === _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_23__["KEY"].UPARROW ||
- (_Fconf__WEBPACK_IMPORTED_MODULE_6__[/* FconfSettings */ "a"].ENABLE_BASH_HOTKEYS && event.keyCode === _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_23__["KEY"].P && event.ctrlKey)) {
- if (_Fconf__WEBPACK_IMPORTED_MODULE_6__[/* FconfSettings */ "a"].ENABLE_BASH_HOTKEYS) {event.preventDefault();}
+ if (event.keyCode === _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_24__["KEY"].UPARROW ||
+ (_Fconf__WEBPACK_IMPORTED_MODULE_7__[/* FconfSettings */ "a"].ENABLE_BASH_HOTKEYS && event.keyCode === _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_24__["KEY"].P && event.ctrlKey)) {
+ if (_Fconf__WEBPACK_IMPORTED_MODULE_7__[/* FconfSettings */ "a"].ENABLE_BASH_HOTKEYS) {event.preventDefault();}
//Cycle through past commands
if (terminalInput == null) {return;}
var i = Terminal.commandHistoryIndex;
@@ -31837,9 +31692,9 @@ $(document).keydown(function(event) {
setTimeout(function(){terminalInput.selectionStart = terminalInput.selectionEnd = 10000; }, 0);
}
- if (event.keyCode === _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_23__["KEY"].DOWNARROW ||
- (_Fconf__WEBPACK_IMPORTED_MODULE_6__[/* FconfSettings */ "a"].ENABLE_BASH_HOTKEYS && event.keyCode === _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_23__["KEY"].M && event.ctrlKey)) {
- if (_Fconf__WEBPACK_IMPORTED_MODULE_6__[/* FconfSettings */ "a"].ENABLE_BASH_HOTKEYS) {event.preventDefault();}
+ if (event.keyCode === _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_24__["KEY"].DOWNARROW ||
+ (_Fconf__WEBPACK_IMPORTED_MODULE_7__[/* FconfSettings */ "a"].ENABLE_BASH_HOTKEYS && event.keyCode === _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_24__["KEY"].M && event.ctrlKey)) {
+ if (_Fconf__WEBPACK_IMPORTED_MODULE_7__[/* FconfSettings */ "a"].ENABLE_BASH_HOTKEYS) {event.preventDefault();}
//Cycle through past commands
if (terminalInput == null) {return;}
var i = Terminal.commandHistoryIndex;
@@ -31861,7 +31716,7 @@ $(document).keydown(function(event) {
}
}
- if (event.keyCode === _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_23__["KEY"].TAB) {
+ if (event.keyCode === _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_24__["KEY"].TAB) {
event.preventDefault();
//Autocomplete
@@ -31903,39 +31758,39 @@ $(document).keydown(function(event) {
}
//Extra Bash Emulation Hotkeys, must be enabled through .fconf
- if (_Fconf__WEBPACK_IMPORTED_MODULE_6__[/* FconfSettings */ "a"].ENABLE_BASH_HOTKEYS) {
- if (event.keyCode === _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_23__["KEY"].A && event.ctrlKey) {
+ if (_Fconf__WEBPACK_IMPORTED_MODULE_7__[/* FconfSettings */ "a"].ENABLE_BASH_HOTKEYS) {
+ if (event.keyCode === _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_24__["KEY"].A && event.ctrlKey) {
event.preventDefault();
Terminal.moveTextCursor("home");
}
- if (event.keyCode === _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_23__["KEY"].E && event.ctrlKey) {
+ if (event.keyCode === _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_24__["KEY"].E && event.ctrlKey) {
event.preventDefault();
Terminal.moveTextCursor("end");
}
- if (event.keyCode === _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_23__["KEY"].B && event.ctrlKey) {
+ if (event.keyCode === _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_24__["KEY"].B && event.ctrlKey) {
event.preventDefault();
Terminal.moveTextCursor("prevchar");
}
- if (event.keyCode === _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_23__["KEY"].B && event.altKey) {
+ if (event.keyCode === _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_24__["KEY"].B && event.altKey) {
event.preventDefault();
Terminal.moveTextCursor("prevword");
}
- if (event.keyCode === _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_23__["KEY"].F && event.ctrlKey) {
+ if (event.keyCode === _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_24__["KEY"].F && event.ctrlKey) {
event.preventDefault();
Terminal.moveTextCursor("nextchar");
}
- if (event.keyCode === _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_23__["KEY"].F && event.altKey) {
+ if (event.keyCode === _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_24__["KEY"].F && event.altKey) {
event.preventDefault();
Terminal.moveTextCursor("nextword");
}
- if ((event.keyCode === _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_23__["KEY"].H || event.keyCode === _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_23__["KEY"].D) && event.ctrlKey) {
+ if ((event.keyCode === _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_24__["KEY"].H || event.keyCode === _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_24__["KEY"].D) && event.ctrlKey) {
Terminal.modifyInput("backspace");
event.preventDefault();
}
@@ -31953,13 +31808,13 @@ $(document).keydown(function(event) {
//Keep terminal in focus
let terminalCtrlPressed = false, shiftKeyPressed = false;
$(document).ready(function() {
- if (_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_21__["routing"].isOn(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_21__["Page"].Terminal)) {
+ if (_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_22__["routing"].isOn(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_22__["Page"].Terminal)) {
$('.terminal-input').focus();
}
});
$(document).keydown(function(e) {
- if (_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_21__["routing"].isOn(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_21__["Page"].Terminal)) {
- if (e.which == _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_23__["KEY"].CTRL) {
+ if (_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_22__["routing"].isOn(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_22__["Page"].Terminal)) {
+ if (e.which == _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_24__["KEY"].CTRL) {
terminalCtrlPressed = true;
} else if (e.shiftKey) {
shiftKeyPressed = true;
@@ -31975,8 +31830,8 @@ $(document).keydown(function(e) {
}
})
$(document).keyup(function(e) {
- if (_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_21__["routing"].isOn(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_21__["Page"].Terminal)) {
- if (e.which == _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_23__["KEY"].CTRL) {
+ if (_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_22__["routing"].isOn(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_22__["Page"].Terminal)) {
+ if (e.which == _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_24__["KEY"].CTRL) {
terminalCtrlPressed = false;
}
if (e.shiftKey) {
@@ -31994,7 +31849,7 @@ $(document).keyup(function(e) {
// index - index of argument that is being "tab completed". By default is 0, the first argument
function tabCompletion(command, arg, allPossibilities, index=0) {
if (!(allPossibilities.constructor === Array)) {return;}
- if (!Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_20__["containsAllStrings"])(allPossibilities)) {return;}
+ if (!Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_21__["containsAllStrings"])(allPossibilities)) {return;}
//if (!command.startsWith("./")) {
//command = command.toLowerCase();
@@ -32040,7 +31895,7 @@ function tabCompletion(command, arg, allPossibilities, index=0) {
document.getElementById("terminal-input-text-box").focus();
} else {
- var longestStartSubstr = Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_20__["longestCommonStart"])(allPossibilities);
+ var longestStartSubstr = Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_21__["longestCommonStart"])(allPossibilities);
//If the longest common starting substring of remaining possibilities is the same
//as whatevers already in terminal, just list all possible options. Otherwise,
//change the input in the terminal to the longest common starting substr
@@ -32051,8 +31906,8 @@ function tabCompletion(command, arg, allPossibilities, index=0) {
}
if (arg == "") {
if (longestStartSubstr == command) {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("> " + command);
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])(allOptionsStr);
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("> " + command);
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])(allOptionsStr);
} else {
document.getElementById("terminal-input-text-box").value = longestStartSubstr;
document.getElementById("terminal-input-text-box").focus();
@@ -32060,8 +31915,8 @@ function tabCompletion(command, arg, allPossibilities, index=0) {
} else {
if (longestStartSubstr == arg) {
//List all possible options
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("> " + command + " " + arg);
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])(allOptionsStr);
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("> " + command + " " + arg);
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])(allOptionsStr);
} else {
document.getElementById("terminal-input-text-box").value = command + " " + longestStartSubstr;
document.getElementById("terminal-input-text-box").focus();
@@ -32074,7 +31929,7 @@ function tabCompletion(command, arg, allPossibilities, index=0) {
function determineAllPossibilitiesForTabCompletion(input, index=0) {
var allPos = [];
allPos = allPos.concat(Object.keys(_Alias__WEBPACK_IMPORTED_MODULE_0__[/* GlobalAliases */ "b"]));
- var currServ = _Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].getCurrentServer();
+ var currServ = _Player__WEBPACK_IMPORTED_MODULE_14__[/* Player */ "a"].getCurrentServer();
input = input.toLowerCase();
//If the command starts with './' and the index == -1, then the user
@@ -32087,7 +31942,7 @@ function determineAllPossibilitiesForTabCompletion(input, index=0) {
}
//Programs are on home computer
- var homeComputer = _Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].getHomeComputer();
+ var homeComputer = _Player__WEBPACK_IMPORTED_MODULE_14__[/* Player */ "a"].getHomeComputer();
for(var i = 0; i < homeComputer.programs.length; ++i) {
allPos.push("./" + homeComputer.programs[i]);
}
@@ -32104,18 +31959,18 @@ function determineAllPossibilitiesForTabCompletion(input, index=0) {
if (input.startsWith ("buy ")) {
let options = [];
- for(const i in _DarkWeb__WEBPACK_IMPORTED_MODULE_4__[/* DarkWebItems */ "a"]) {
- const item = _DarkWeb__WEBPACK_IMPORTED_MODULE_4__[/* DarkWebItems */ "a"][i]
+ for(const i in _DarkWeb_DarkWebItems__WEBPACK_IMPORTED_MODULE_5__["DarkWebItems"]) {
+ const item = _DarkWeb_DarkWebItems__WEBPACK_IMPORTED_MODULE_5__["DarkWebItems"][i]
options.push(item.program);
}
return options.concat(Object.keys(_Alias__WEBPACK_IMPORTED_MODULE_0__[/* GlobalAliases */ "b"]));
}
if (input.startsWith("scp ") && index == 1) {
- for (var iphostname in _Server__WEBPACK_IMPORTED_MODULE_16__[/* AllServers */ "b"]) {
- if (_Server__WEBPACK_IMPORTED_MODULE_16__[/* AllServers */ "b"].hasOwnProperty(iphostname)) {
- allPos.push(_Server__WEBPACK_IMPORTED_MODULE_16__[/* AllServers */ "b"][iphostname].ip);
- allPos.push(_Server__WEBPACK_IMPORTED_MODULE_16__[/* AllServers */ "b"][iphostname].hostname);
+ for (var iphostname in _Server__WEBPACK_IMPORTED_MODULE_17__[/* AllServers */ "b"]) {
+ if (_Server__WEBPACK_IMPORTED_MODULE_17__[/* AllServers */ "b"].hasOwnProperty(iphostname)) {
+ allPos.push(_Server__WEBPACK_IMPORTED_MODULE_17__[/* AllServers */ "b"][iphostname].ip);
+ allPos.push(_Server__WEBPACK_IMPORTED_MODULE_17__[/* AllServers */ "b"][iphostname].hostname);
}
}
}
@@ -32126,7 +31981,7 @@ function determineAllPossibilitiesForTabCompletion(input, index=0) {
allPos.push(currServ.scripts[i].filename);
}
for (var i = 0; i < currServ.messages.length; ++i) {
- if (!(currServ.messages[i] instanceof _Message__WEBPACK_IMPORTED_MODULE_11__[/* Message */ "a"])) {
+ if (!(currServ.messages[i] instanceof _Message__WEBPACK_IMPORTED_MODULE_12__[/* Message */ "a"])) {
allPos.push(currServ.messages[i]);
}
}
@@ -32138,7 +31993,7 @@ function determineAllPossibilitiesForTabCompletion(input, index=0) {
if (input.startsWith("connect ") || input.startsWith("telnet ")) {
//All network connections
for (var i = 0; i < currServ.serversOnNetwork.length; ++i) {
- var serv = _Server__WEBPACK_IMPORTED_MODULE_16__[/* AllServers */ "b"][currServ.serversOnNetwork[i]];
+ var serv = _Server__WEBPACK_IMPORTED_MODULE_17__[/* AllServers */ "b"][currServ.serversOnNetwork[i]];
if (serv == null) {continue;}
allPos.push(serv.ip); //IP
allPos.push(serv.hostname); //Hostname
@@ -32175,7 +32030,7 @@ function determineAllPossibilitiesForTabCompletion(input, index=0) {
allPos.push(currServ.programs[i]);
}
for (let i = 0; i < currServ.messages.length; ++i) {
- if (!(currServ.messages[i] instanceof _Message__WEBPACK_IMPORTED_MODULE_11__[/* Message */ "a"]) && Object(_utils_helpers_isString__WEBPACK_IMPORTED_MODULE_25__["isString"])(currServ.messages[i]) &&
+ if (!(currServ.messages[i] instanceof _Message__WEBPACK_IMPORTED_MODULE_12__[/* Message */ "a"]) && Object(_utils_helpers_isString__WEBPACK_IMPORTED_MODULE_26__["isString"])(currServ.messages[i]) &&
currServ.messages[i].endsWith(".lit")) {
allPos.push(currServ.messages[i]);
}
@@ -32196,7 +32051,7 @@ function determineAllPossibilitiesForTabCompletion(input, index=0) {
}
//Programs are on home computer
- var homeComputer = _Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].getHomeComputer();
+ var homeComputer = _Player__WEBPACK_IMPORTED_MODULE_14__[/* Player */ "a"].getHomeComputer();
for (let i = 0; i < homeComputer.programs.length; ++i) {
allPos.push(homeComputer.programs[i]);
}
@@ -32209,7 +32064,7 @@ function determineAllPossibilitiesForTabCompletion(input, index=0) {
if (input.startsWith("cat ")) {
for (var i = 0; i < currServ.messages.length; ++i) {
- if (currServ.messages[i] instanceof _Message__WEBPACK_IMPORTED_MODULE_11__[/* Message */ "a"]) {
+ if (currServ.messages[i] instanceof _Message__WEBPACK_IMPORTED_MODULE_12__[/* Message */ "a"]) {
allPos.push(currServ.messages[i].filename);
} else {
allPos.push(currServ.messages[i]);
@@ -32245,16 +32100,16 @@ let Terminal = {
contractOpen: false, //True if a Coding Contract prompt is opened
resetTerminalInput: function() {
- if (_Fconf__WEBPACK_IMPORTED_MODULE_6__[/* FconfSettings */ "a"].WRAP_INPUT) {
+ if (_Fconf__WEBPACK_IMPORTED_MODULE_7__[/* FconfSettings */ "a"].WRAP_INPUT) {
document.getElementById("terminal-input-td").innerHTML =
- "" +
+ "" +
'';
//Auto re-size the line element as it wraps
- autosize__WEBPACK_IMPORTED_MODULE_31___default()(document.getElementById("terminal-input-text-box"));
+ autosize__WEBPACK_IMPORTED_MODULE_32___default()(document.getElementById("terminal-input-text-box"));
} else {
document.getElementById("terminal-input-td").innerHTML =
- "" +
+ "" +
' ';
}
var hdr = document.getElementById("terminal-input-header");
@@ -32358,22 +32213,22 @@ let Terminal = {
Terminal.hackFlag = true;
//Hacking through Terminal should be faster than hacking through a script
- Terminal.actionTime = Object(_Hacking__WEBPACK_IMPORTED_MODULE_7__[/* calculateHackingTime */ "d"])(_Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].getCurrentServer()) / 4;
+ Terminal.actionTime = Object(_Hacking__WEBPACK_IMPORTED_MODULE_8__[/* calculateHackingTime */ "d"])(_Player__WEBPACK_IMPORTED_MODULE_14__[/* Player */ "a"].getCurrentServer()) / 4;
Terminal.startAction();
},
startAnalyze: function() {
Terminal.analyzeFlag = true;
Terminal.actionTime = 1;
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Analyzing system...");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Analyzing system...");
Terminal.startAction();
},
startAction: function() {
Terminal.actionStarted = true;
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["hackProgressPost"])("Time left:");
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["hackProgressBarPost"])("[");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["hackProgressPost"])("Time left:");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["hackProgressBarPost"])("[");
//Disable terminal
document.getElementById("terminal-input-td").innerHTML = ' ';
@@ -32391,41 +32246,41 @@ let Terminal = {
//Complete the hack/analyze command
finishHack: function(cancelled = false) {
if (cancelled == false) {
- var server = _Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].getCurrentServer();
+ var server = _Player__WEBPACK_IMPORTED_MODULE_14__[/* Player */ "a"].getCurrentServer();
//Calculate whether hack was successful
- var hackChance = Object(_Hacking__WEBPACK_IMPORTED_MODULE_7__[/* calculateHackingChance */ "b"])(server);
+ var hackChance = Object(_Hacking__WEBPACK_IMPORTED_MODULE_8__[/* calculateHackingChance */ "b"])(server);
var rand = Math.random();
console.log("Hack success chance: " + hackChance + ", rand: " + rand);
- var expGainedOnSuccess = Object(_Hacking__WEBPACK_IMPORTED_MODULE_7__[/* calculateHackingExpGain */ "c"])(server);
+ var expGainedOnSuccess = Object(_Hacking__WEBPACK_IMPORTED_MODULE_8__[/* calculateHackingExpGain */ "c"])(server);
var expGainedOnFailure = (expGainedOnSuccess / 4);
if (rand < hackChance) { //Success!
- if (_SpecialServerIps__WEBPACK_IMPORTED_MODULE_18__[/* SpecialServerIps */ "a"][_SpecialServerIps__WEBPACK_IMPORTED_MODULE_18__[/* SpecialServerNames */ "b"].WorldDaemon] &&
- _SpecialServerIps__WEBPACK_IMPORTED_MODULE_18__[/* SpecialServerIps */ "a"][_SpecialServerIps__WEBPACK_IMPORTED_MODULE_18__[/* SpecialServerNames */ "b"].WorldDaemon] == server.ip) {
- if (_Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].bitNodeN == null) {
- _Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].bitNodeN = 1;
+ if (_SpecialServerIps__WEBPACK_IMPORTED_MODULE_19__[/* SpecialServerIps */ "a"][_SpecialServerIps__WEBPACK_IMPORTED_MODULE_19__[/* SpecialServerNames */ "b"].WorldDaemon] &&
+ _SpecialServerIps__WEBPACK_IMPORTED_MODULE_19__[/* SpecialServerIps */ "a"][_SpecialServerIps__WEBPACK_IMPORTED_MODULE_19__[/* SpecialServerNames */ "b"].WorldDaemon] == server.ip) {
+ if (_Player__WEBPACK_IMPORTED_MODULE_14__[/* Player */ "a"].bitNodeN == null) {
+ _Player__WEBPACK_IMPORTED_MODULE_14__[/* Player */ "a"].bitNodeN = 1;
}
- Object(_RedPill__WEBPACK_IMPORTED_MODULE_14__[/* hackWorldDaemon */ "a"])(_Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].bitNodeN);
+ Object(_RedPill__WEBPACK_IMPORTED_MODULE_15__[/* hackWorldDaemon */ "a"])(_Player__WEBPACK_IMPORTED_MODULE_14__[/* Player */ "a"].bitNodeN);
return;
}
server.manuallyHacked = true;
- var moneyGained = Object(_Hacking__WEBPACK_IMPORTED_MODULE_7__[/* calculatePercentMoneyHacked */ "e"])(server);
+ var moneyGained = Object(_Hacking__WEBPACK_IMPORTED_MODULE_8__[/* calculatePercentMoneyHacked */ "e"])(server);
moneyGained = Math.floor(server.moneyAvailable * moneyGained);
if (moneyGained <= 0) {moneyGained = 0;} //Safety check
server.moneyAvailable -= moneyGained;
- _Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].gainMoney(moneyGained);
- _Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].gainHackingExp(expGainedOnSuccess)
- _Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].gainIntelligenceExp(expGainedOnSuccess / _Constants__WEBPACK_IMPORTED_MODULE_2__["CONSTANTS"].IntelligenceTerminalHackBaseExpGain);
+ _Player__WEBPACK_IMPORTED_MODULE_14__[/* Player */ "a"].gainMoney(moneyGained);
+ _Player__WEBPACK_IMPORTED_MODULE_14__[/* Player */ "a"].gainHackingExp(expGainedOnSuccess)
+ _Player__WEBPACK_IMPORTED_MODULE_14__[/* Player */ "a"].gainIntelligenceExp(expGainedOnSuccess / _Constants__WEBPACK_IMPORTED_MODULE_2__["CONSTANTS"].IntelligenceTerminalHackBaseExpGain);
server.fortify(_Constants__WEBPACK_IMPORTED_MODULE_2__["CONSTANTS"].ServerFortifyAmount);
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Hack successful! Gained " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_22__["numeralWrapper"].format(moneyGained, '($0,0.00)') + " and " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_22__["numeralWrapper"].format(expGainedOnSuccess, '0.0000') + " hacking EXP");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Hack successful! Gained " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_23__["numeralWrapper"].format(moneyGained, '($0,0.00)') + " and " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_23__["numeralWrapper"].format(expGainedOnSuccess, '0.0000') + " hacking EXP");
} else { //Failure
//Player only gains 25% exp for failure? TODO Can change this later to balance
- _Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].gainHackingExp(expGainedOnFailure)
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Failed to hack " + server.hostname + ". Gained " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_22__["numeralWrapper"].format(expGainedOnFailure, '0.0000') + " hacking EXP");
+ _Player__WEBPACK_IMPORTED_MODULE_14__[/* Player */ "a"].gainHackingExp(expGainedOnFailure)
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Failed to hack " + server.hostname + ". Gained " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_23__["numeralWrapper"].format(expGainedOnFailure, '0.0000') + " hacking EXP");
}
}
@@ -32440,48 +32295,48 @@ let Terminal = {
finishAnalyze: function(cancelled = false) {
if (cancelled == false) {
- let currServ = _Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].getCurrentServer();
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])(currServ.hostname + ": ");
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Organization name: " + currServ.organizationName);
+ let currServ = _Player__WEBPACK_IMPORTED_MODULE_14__[/* Player */ "a"].getCurrentServer();
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])(currServ.hostname + ": ");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Organization name: " + currServ.organizationName);
var rootAccess = "";
if (currServ.hasAdminRights) {rootAccess = "YES";}
else {rootAccess = "NO";}
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Root Access: " + rootAccess);
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Required hacking skill: " + currServ.requiredHackingSkill);
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Server security level: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_22__["numeralWrapper"].format(currServ.hackDifficulty, '0.000a'));
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Chance to hack: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_22__["numeralWrapper"].format(Object(_Hacking__WEBPACK_IMPORTED_MODULE_7__[/* calculateHackingChance */ "b"])(currServ), '0.00%'));
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Time to hack: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_22__["numeralWrapper"].format(Object(_Hacking__WEBPACK_IMPORTED_MODULE_7__[/* calculateHackingTime */ "d"])(currServ), '0.000') + " seconds");
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Total money available on server: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_22__["numeralWrapper"].format(currServ.moneyAvailable, '$0,0.00'));
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Required number of open ports for NUKE: " + currServ.numOpenPortsRequired);
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Root Access: " + rootAccess);
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Required hacking skill: " + currServ.requiredHackingSkill);
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Server security level: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_23__["numeralWrapper"].format(currServ.hackDifficulty, '0.000a'));
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Chance to hack: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_23__["numeralWrapper"].format(Object(_Hacking__WEBPACK_IMPORTED_MODULE_8__[/* calculateHackingChance */ "b"])(currServ), '0.00%'));
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Time to hack: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_23__["numeralWrapper"].format(Object(_Hacking__WEBPACK_IMPORTED_MODULE_8__[/* calculateHackingTime */ "d"])(currServ), '0.000') + " seconds");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Total money available on server: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_23__["numeralWrapper"].format(currServ.moneyAvailable, '$0,0.00'));
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Required number of open ports for NUKE: " + currServ.numOpenPortsRequired);
if (currServ.sshPortOpen) {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("SSH port: Open")
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("SSH port: Open")
} else {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("SSH port: Closed")
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("SSH port: Closed")
}
if (currServ.ftpPortOpen) {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("FTP port: Open")
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("FTP port: Open")
} else {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("FTP port: Closed")
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("FTP port: Closed")
}
if (currServ.smtpPortOpen) {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("SMTP port: Open")
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("SMTP port: Open")
} else {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("SMTP port: Closed")
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("SMTP port: Closed")
}
if (currServ.httpPortOpen) {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("HTTP port: Open")
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("HTTP port: Open")
} else {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("HTTP port: Closed")
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("HTTP port: Closed")
}
if (currServ.sqlPortOpen) {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("SQL port: Open")
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("SQL port: Open")
} else {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("SQL port: Closed")
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("SQL port: Closed")
}
}
Terminal.analyzeFlag = false;
@@ -32524,114 +32379,114 @@ let Terminal = {
if (commandArray.length == 0) {return;}
/****************** Interactive Tutorial Terminal Commands ******************/
- if (_InteractiveTutorial__WEBPACK_IMPORTED_MODULE_9__[/* ITutorial */ "a"].isRunning) {
- var foodnstuffServ = Object(_Server__WEBPACK_IMPORTED_MODULE_16__[/* GetServerByHostname */ "c"])("foodnstuff");
+ if (_InteractiveTutorial__WEBPACK_IMPORTED_MODULE_10__[/* ITutorial */ "a"].isRunning) {
+ var foodnstuffServ = Object(_Server__WEBPACK_IMPORTED_MODULE_17__[/* GetServerByHostname */ "c"])("foodnstuff");
if (foodnstuffServ == null) {throw new Error("Could not get foodnstuff server"); return;}
- switch(_InteractiveTutorial__WEBPACK_IMPORTED_MODULE_9__[/* ITutorial */ "a"].currStep) {
- case _InteractiveTutorial__WEBPACK_IMPORTED_MODULE_9__[/* iTutorialSteps */ "d"].TerminalHelp:
+ switch(_InteractiveTutorial__WEBPACK_IMPORTED_MODULE_10__[/* ITutorial */ "a"].currStep) {
+ case _InteractiveTutorial__WEBPACK_IMPORTED_MODULE_10__[/* iTutorialSteps */ "d"].TerminalHelp:
if (commandArray[0] == "help") {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])(_HelpText__WEBPACK_IMPORTED_MODULE_8__["TerminalHelpText"]);
- Object(_InteractiveTutorial__WEBPACK_IMPORTED_MODULE_9__[/* iTutorialNextStep */ "b"])();
- } else {Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Bad command. Please follow the tutorial");}
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])(_HelpText__WEBPACK_IMPORTED_MODULE_9__["TerminalHelpText"]);
+ Object(_InteractiveTutorial__WEBPACK_IMPORTED_MODULE_10__[/* iTutorialNextStep */ "b"])();
+ } else {Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Bad command. Please follow the tutorial");}
break;
- case _InteractiveTutorial__WEBPACK_IMPORTED_MODULE_9__[/* iTutorialSteps */ "d"].TerminalLs:
+ case _InteractiveTutorial__WEBPACK_IMPORTED_MODULE_10__[/* iTutorialSteps */ "d"].TerminalLs:
if (commandArray[0] == "ls") {
Terminal.executeListCommand(commandArray);
- Object(_InteractiveTutorial__WEBPACK_IMPORTED_MODULE_9__[/* iTutorialNextStep */ "b"])();
- } else {Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Bad command. Please follow the tutorial");}
+ Object(_InteractiveTutorial__WEBPACK_IMPORTED_MODULE_10__[/* iTutorialNextStep */ "b"])();
+ } else {Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Bad command. Please follow the tutorial");}
break;
- case _InteractiveTutorial__WEBPACK_IMPORTED_MODULE_9__[/* iTutorialSteps */ "d"].TerminalScan:
+ case _InteractiveTutorial__WEBPACK_IMPORTED_MODULE_10__[/* iTutorialSteps */ "d"].TerminalScan:
if (commandArray[0] == "scan") {
Terminal.executeScanCommand(commandArray);
- Object(_InteractiveTutorial__WEBPACK_IMPORTED_MODULE_9__[/* iTutorialNextStep */ "b"])();
- } else {Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Bad command. Please follow the tutorial");}
+ Object(_InteractiveTutorial__WEBPACK_IMPORTED_MODULE_10__[/* iTutorialNextStep */ "b"])();
+ } else {Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Bad command. Please follow the tutorial");}
break;
- case _InteractiveTutorial__WEBPACK_IMPORTED_MODULE_9__[/* iTutorialSteps */ "d"].TerminalScanAnalyze1:
+ case _InteractiveTutorial__WEBPACK_IMPORTED_MODULE_10__[/* iTutorialSteps */ "d"].TerminalScanAnalyze1:
if (commandArray.length == 1 && commandArray[0] == "scan-analyze") {
Terminal.executeScanAnalyzeCommand(1);
- Object(_InteractiveTutorial__WEBPACK_IMPORTED_MODULE_9__[/* iTutorialNextStep */ "b"])();
- } else {Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Bad command. Please follow the tutorial");}
+ Object(_InteractiveTutorial__WEBPACK_IMPORTED_MODULE_10__[/* iTutorialNextStep */ "b"])();
+ } else {Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Bad command. Please follow the tutorial");}
break;
- case _InteractiveTutorial__WEBPACK_IMPORTED_MODULE_9__[/* iTutorialSteps */ "d"].TerminalScanAnalyze2:
+ case _InteractiveTutorial__WEBPACK_IMPORTED_MODULE_10__[/* iTutorialSteps */ "d"].TerminalScanAnalyze2:
if (commandArray.length == 2 && commandArray[0] == "scan-analyze" &&
commandArray[1] == "2") {
Terminal.executeScanAnalyzeCommand(2);
- Object(_InteractiveTutorial__WEBPACK_IMPORTED_MODULE_9__[/* iTutorialNextStep */ "b"])();
- } else {Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Bad command. Please follow the tutorial");}
+ Object(_InteractiveTutorial__WEBPACK_IMPORTED_MODULE_10__[/* iTutorialNextStep */ "b"])();
+ } else {Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Bad command. Please follow the tutorial");}
break;
break;
- case _InteractiveTutorial__WEBPACK_IMPORTED_MODULE_9__[/* iTutorialSteps */ "d"].TerminalConnect:
+ case _InteractiveTutorial__WEBPACK_IMPORTED_MODULE_10__[/* iTutorialSteps */ "d"].TerminalConnect:
if (commandArray.length == 2) {
if ((commandArray[0] == "connect") &&
(commandArray[1] == "foodnstuff" || commandArray[1] == foodnstuffServ.ip)) {
- _Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].getCurrentServer().isConnectedTo = false;
- _Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].currentServer = foodnstuffServ.ip;
- _Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].getCurrentServer().isConnectedTo = true;
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Connected to foodnstuff");
- Object(_InteractiveTutorial__WEBPACK_IMPORTED_MODULE_9__[/* iTutorialNextStep */ "b"])();
- } else {Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Wrong command! Try again!"); return;}
- } else {Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Bad command. Please follow the tutorial");}
+ _Player__WEBPACK_IMPORTED_MODULE_14__[/* Player */ "a"].getCurrentServer().isConnectedTo = false;
+ _Player__WEBPACK_IMPORTED_MODULE_14__[/* Player */ "a"].currentServer = foodnstuffServ.ip;
+ _Player__WEBPACK_IMPORTED_MODULE_14__[/* Player */ "a"].getCurrentServer().isConnectedTo = true;
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Connected to foodnstuff");
+ Object(_InteractiveTutorial__WEBPACK_IMPORTED_MODULE_10__[/* iTutorialNextStep */ "b"])();
+ } else {Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Wrong command! Try again!"); return;}
+ } else {Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Bad command. Please follow the tutorial");}
break;
- case _InteractiveTutorial__WEBPACK_IMPORTED_MODULE_9__[/* iTutorialSteps */ "d"].TerminalAnalyze:
+ case _InteractiveTutorial__WEBPACK_IMPORTED_MODULE_10__[/* iTutorialSteps */ "d"].TerminalAnalyze:
if (commandArray[0] == "analyze") {
if (commandArray.length != 1) {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Incorrect usage of analyze command. Usage: analyze"); return;
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Incorrect usage of analyze command. Usage: analyze"); return;
}
Terminal.startAnalyze();
- Object(_InteractiveTutorial__WEBPACK_IMPORTED_MODULE_9__[/* iTutorialNextStep */ "b"])();
+ Object(_InteractiveTutorial__WEBPACK_IMPORTED_MODULE_10__[/* iTutorialNextStep */ "b"])();
} else {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Bad command. Please follow the tutorial");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Bad command. Please follow the tutorial");
}
break;
- case _InteractiveTutorial__WEBPACK_IMPORTED_MODULE_9__[/* iTutorialSteps */ "d"].TerminalNuke:
+ case _InteractiveTutorial__WEBPACK_IMPORTED_MODULE_10__[/* iTutorialSteps */ "d"].TerminalNuke:
if (commandArray.length == 2 &&
commandArray[0] == "run" && commandArray[1] == "NUKE.exe") {
foodnstuffServ.hasAdminRights = true;
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("NUKE successful! Gained root access to foodnstuff");
- Object(_InteractiveTutorial__WEBPACK_IMPORTED_MODULE_9__[/* iTutorialNextStep */ "b"])();
- } else {Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Bad command. Please follow the tutorial");}
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("NUKE successful! Gained root access to foodnstuff");
+ Object(_InteractiveTutorial__WEBPACK_IMPORTED_MODULE_10__[/* iTutorialNextStep */ "b"])();
+ } else {Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Bad command. Please follow the tutorial");}
break;
- case _InteractiveTutorial__WEBPACK_IMPORTED_MODULE_9__[/* iTutorialSteps */ "d"].TerminalManualHack:
+ case _InteractiveTutorial__WEBPACK_IMPORTED_MODULE_10__[/* iTutorialSteps */ "d"].TerminalManualHack:
if (commandArray.length == 1 && commandArray[0] == "hack") {
Terminal.startHack();
- Object(_InteractiveTutorial__WEBPACK_IMPORTED_MODULE_9__[/* iTutorialNextStep */ "b"])();
- } else {Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Bad command. Please follow the tutorial");}
+ Object(_InteractiveTutorial__WEBPACK_IMPORTED_MODULE_10__[/* iTutorialNextStep */ "b"])();
+ } else {Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Bad command. Please follow the tutorial");}
break;
- case _InteractiveTutorial__WEBPACK_IMPORTED_MODULE_9__[/* iTutorialSteps */ "d"].TerminalCreateScript:
+ case _InteractiveTutorial__WEBPACK_IMPORTED_MODULE_10__[/* iTutorialSteps */ "d"].TerminalCreateScript:
if (commandArray.length == 2 &&
commandArray[0] == "nano" && commandArray[1] == "foodnstuff.script") {
- _engine__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadScriptEditorContent("foodnstuff.script", "");
- Object(_InteractiveTutorial__WEBPACK_IMPORTED_MODULE_9__[/* iTutorialNextStep */ "b"])();
- } else {Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Bad command. Please follow the tutorial");}
- case _InteractiveTutorial__WEBPACK_IMPORTED_MODULE_9__[/* iTutorialSteps */ "d"].TerminalFree:
+ _engine__WEBPACK_IMPORTED_MODULE_6__["Engine"].loadScriptEditorContent("foodnstuff.script", "");
+ Object(_InteractiveTutorial__WEBPACK_IMPORTED_MODULE_10__[/* iTutorialNextStep */ "b"])();
+ } else {Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Bad command. Please follow the tutorial");}
+ case _InteractiveTutorial__WEBPACK_IMPORTED_MODULE_10__[/* iTutorialSteps */ "d"].TerminalFree:
if (commandArray.length == 1 && commandArray[0] == "free") {
Terminal.executeFreeCommand(commandArray);
- Object(_InteractiveTutorial__WEBPACK_IMPORTED_MODULE_9__[/* iTutorialNextStep */ "b"])();
+ Object(_InteractiveTutorial__WEBPACK_IMPORTED_MODULE_10__[/* iTutorialNextStep */ "b"])();
}
break;
- case _InteractiveTutorial__WEBPACK_IMPORTED_MODULE_9__[/* iTutorialSteps */ "d"].TerminalRunScript:
+ case _InteractiveTutorial__WEBPACK_IMPORTED_MODULE_10__[/* iTutorialSteps */ "d"].TerminalRunScript:
if (commandArray.length == 2 &&
commandArray[0] == "run" && commandArray[1] == "foodnstuff.script") {
Terminal.runScript("foodnstuff.script");
- Object(_InteractiveTutorial__WEBPACK_IMPORTED_MODULE_9__[/* iTutorialNextStep */ "b"])();
- } else {Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Bad command. Please follow the tutorial");}
+ Object(_InteractiveTutorial__WEBPACK_IMPORTED_MODULE_10__[/* iTutorialNextStep */ "b"])();
+ } else {Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Bad command. Please follow the tutorial");}
break;
- case _InteractiveTutorial__WEBPACK_IMPORTED_MODULE_9__[/* iTutorialSteps */ "d"].ActiveScriptsToTerminal:
+ case _InteractiveTutorial__WEBPACK_IMPORTED_MODULE_10__[/* iTutorialSteps */ "d"].ActiveScriptsToTerminal:
if (commandArray.length == 2 &&
commandArray[0] == "tail" && commandArray[1] == "foodnstuff.script") {
//Check that the script exists on this machine
- var runningScript = Object(_Script__WEBPACK_IMPORTED_MODULE_15__[/* findRunningScript */ "d"])("foodnstuff.script", [], _Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].getCurrentServer());
+ var runningScript = Object(_Script__WEBPACK_IMPORTED_MODULE_16__[/* findRunningScript */ "d"])("foodnstuff.script", [], _Player__WEBPACK_IMPORTED_MODULE_14__[/* Player */ "a"].getCurrentServer());
if (runningScript == null) {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Error: No such script exists");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Error: No such script exists");
return;
}
- Object(_utils_LogBox__WEBPACK_IMPORTED_MODULE_28__[/* logBoxCreate */ "a"])(runningScript);
- Object(_InteractiveTutorial__WEBPACK_IMPORTED_MODULE_9__[/* iTutorialNextStep */ "b"])();
- } else {Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Bad command. Please follow the tutorial");}
+ Object(_utils_LogBox__WEBPACK_IMPORTED_MODULE_29__[/* logBoxCreate */ "a"])(runningScript);
+ Object(_InteractiveTutorial__WEBPACK_IMPORTED_MODULE_10__[/* iTutorialNextStep */ "b"])();
+ } else {Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Bad command. Please follow the tutorial");}
break;
default:
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Please follow the tutorial, or click 'Exit Tutorial' if you'd like to skip it");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Please follow the tutorial, or click 'Exit Tutorial' if you'd like to skip it");
return;
}
return;
@@ -32640,7 +32495,7 @@ let Terminal = {
/****************** END INTERACTIVE TUTORIAL ******************/
/* Command parser */
- var s = _Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].getCurrentServer();
+ var s = _Player__WEBPACK_IMPORTED_MODULE_14__[/* Player */ "a"].getCurrentServer();
switch (commandArray[0].toLowerCase()) {
case "alias":
if (commandArray.length == 1) {
@@ -32659,35 +32514,35 @@ let Terminal = {
}
}
}
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])('Incorrect usage of alias command. Usage: alias [-g] [aliasname="value"]');
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])('Incorrect usage of alias command. Usage: alias [-g] [aliasname="value"]');
break;
case "analyze":
if (commandArray.length != 1) {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Incorrect usage of analyze command. Usage: analyze"); return;
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Incorrect usage of analyze command. Usage: analyze"); return;
}
Terminal.startAnalyze();
break;
case "buy":
- if (_SpecialServerIps__WEBPACK_IMPORTED_MODULE_18__[/* SpecialServerIps */ "a"].hasOwnProperty("Darkweb Server")) {
- Object(_DarkWeb__WEBPACK_IMPORTED_MODULE_4__[/* executeDarkwebTerminalCommand */ "c"])(commandArray);
+ if (_SpecialServerIps__WEBPACK_IMPORTED_MODULE_19__[/* SpecialServerIps */ "a"].hasOwnProperty("Darkweb Server")) {
+ Object(_DarkWeb_DarkWeb__WEBPACK_IMPORTED_MODULE_4__[/* executeDarkwebTerminalCommand */ "b"])(commandArray);
} else {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("You need to be able to connect to the Dark Web to use the buy command. (Maybe there's a TOR router you can buy somewhere)");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("You need to be able to connect to the Dark Web to use the buy command. (Maybe there's a TOR router you can buy somewhere)");
}
break;
case "cat":
if (commandArray.length != 2) {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Incorrect usage of cat command. Usage: cat [file]"); return;
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Incorrect usage of cat command. Usage: cat [file]"); return;
}
var filename = commandArray[1];
if (!filename.endsWith(".msg") && !filename.endsWith(".lit") && !filename.endsWith(".txt")) {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Error: Only .msg, .txt, and .lit files are viewable with cat (filename must end with .msg, .txt, or .lit)"); return;
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Error: Only .msg, .txt, and .lit files are viewable with cat (filename must end with .msg, .txt, or .lit)"); return;
}
for (var i = 0; i < s.messages.length; ++i) {
if (filename.endsWith(".lit") && s.messages[i] == filename) {
- Object(_Literature__WEBPACK_IMPORTED_MODULE_10__[/* showLiterature */ "b"])(s.messages[i]);
+ Object(_Literature__WEBPACK_IMPORTED_MODULE_11__[/* showLiterature */ "b"])(s.messages[i]);
return;
} else if (filename.endsWith(".msg") && s.messages[i].filename == filename) {
- Object(_Message__WEBPACK_IMPORTED_MODULE_11__[/* showMessage */ "f"])(s.messages[i]);
+ Object(_Message__WEBPACK_IMPORTED_MODULE_12__[/* showMessage */ "f"])(s.messages[i]);
return;
}
}
@@ -32697,11 +32552,11 @@ let Terminal = {
return;
}
}
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Error: No such file " + filename);
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Error: No such file " + filename);
break;
case "check":
if (commandArray.length < 2) {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Incorrect number of arguments. Usage: check [script] [arg1] [arg2]...");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Incorrect number of arguments. Usage: check [script] [arg1] [arg2]...");
} else {
var results = commandArray[1].split(" ");
var scriptName = results[0];
@@ -32711,14 +32566,14 @@ let Terminal = {
}
//Can only tail script files
- if (Object(_Script__WEBPACK_IMPORTED_MODULE_15__[/* isScriptFilename */ "e"])(scriptName) == false) {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Error: tail can only be called on .script files (filename must end with .script)"); return;
+ if (Object(_Script__WEBPACK_IMPORTED_MODULE_16__[/* isScriptFilename */ "e"])(scriptName) == false) {
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Error: tail can only be called on .script files (filename must end with .script)"); return;
}
//Check that the script exists on this machine
- var runningScript = Object(_Script__WEBPACK_IMPORTED_MODULE_15__[/* findRunningScript */ "d"])(scriptName, args, s);
+ var runningScript = Object(_Script__WEBPACK_IMPORTED_MODULE_16__[/* findRunningScript */ "d"])(scriptName, args, s);
if (runningScript == null) {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Error: No such script exists");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Error: No such script exists");
return;
}
runningScript.displayLog();
@@ -32727,7 +32582,7 @@ let Terminal = {
case "clear":
case "cls":
if (commandArray.length != 1) {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Incorrect usage of clear/cls command. Usage: clear/cls"); return;
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Incorrect usage of clear/cls command. Usage: clear/cls"); return;
}
$("#terminal tr:not(:last)").remove();
postNetburnerText();
@@ -32735,30 +32590,30 @@ let Terminal = {
case "connect":
//Disconnect from current server in terminal and connect to new one
if (commandArray.length != 2) {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Incorrect usage of connect command. Usage: connect [ip/hostname]");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Incorrect usage of connect command. Usage: connect [ip/hostname]");
return;
}
var ip = commandArray[1];
- for (var i = 0; i < _Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].getCurrentServer().serversOnNetwork.length; i++) {
- if (_Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].getCurrentServer().getServerOnNetwork(i).ip == ip || _Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].getCurrentServer().getServerOnNetwork(i).hostname == ip) {
+ for (var i = 0; i < _Player__WEBPACK_IMPORTED_MODULE_14__[/* Player */ "a"].getCurrentServer().serversOnNetwork.length; i++) {
+ if (_Player__WEBPACK_IMPORTED_MODULE_14__[/* Player */ "a"].getCurrentServer().getServerOnNetwork(i).ip == ip || _Player__WEBPACK_IMPORTED_MODULE_14__[/* Player */ "a"].getCurrentServer().getServerOnNetwork(i).hostname == ip) {
Terminal.connectToServer(ip);
return;
}
}
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Host not found");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Host not found");
break;
case "download":
if (commandArray.length != 2) {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Incorrect usage of download command. Usage: download [text file]");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Incorrect usage of download command. Usage: download [text file]");
return;
}
var fn = commandArray[1];
if (fn === "*" || fn === "*.script" || fn === "*.txt") {
//Download all scripts as a zip
- var zip = new jszip__WEBPACK_IMPORTED_MODULE_32__();
+ var zip = new jszip__WEBPACK_IMPORTED_MODULE_33__();
if (fn === "*" || fn === "*.script") {
for (var i = 0; i < s.scripts.length; ++i) {
var file = new Blob([s.scripts[i].code], {type:"text/plain"});
@@ -32783,10 +32638,10 @@ let Terminal = {
}
zip.generateAsync({type:"blob"}).then(function(content) {
- file_saver__WEBPACK_IMPORTED_MODULE_33__["saveAs"](content, filename);
+ file_saver__WEBPACK_IMPORTED_MODULE_34__["saveAs"](content, filename);
});
return;
- } else if (Object(_Script__WEBPACK_IMPORTED_MODULE_15__[/* isScriptFilename */ "e"])(fn)) {
+ } else if (Object(_Script__WEBPACK_IMPORTED_MODULE_16__[/* isScriptFilename */ "e"])(fn)) {
//Download a single script
for (var i = 0; i < s.scripts.length; ++i) {
if (s.scripts[i].filename === fn) {
@@ -32795,16 +32650,16 @@ let Terminal = {
}
} else if (fn.endsWith(".txt")) {
//Download a single text file
- var txtFile = Object(_TextFile__WEBPACK_IMPORTED_MODULE_19__["getTextFile"])(fn, s);
+ var txtFile = Object(_TextFile__WEBPACK_IMPORTED_MODULE_20__["getTextFile"])(fn, s);
if (txtFile !== null) {
return txtFile.download();
}
}
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Error: " + fn + " does not exist");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Error: " + fn + " does not exist");
break;
case "expr":
if (commandArray.length <= 1) {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Incorrect usage of expr command. Usage: expr [math expression]");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Incorrect usage of expr command. Usage: expr [math expression]");
return;
}
const expr = commandArray.slice(1).join("");
@@ -32815,73 +32670,73 @@ let Terminal = {
try {
result = eval(sanitizedExpr);
} catch(e) {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])(`Could not evaluate expression: ${sanitizedExpr}`);
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])(`Could not evaluate expression: ${sanitizedExpr}`);
return;
}
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])(result);
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])(result);
break;
case "free":
Terminal.executeFreeCommand(commandArray);
break;
case "hack":
if (commandArray.length != 1) {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Incorrect usage of hack command. Usage: hack"); return;
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Incorrect usage of hack command. Usage: hack"); return;
}
//Hack the current PC (usually for money)
//You can't hack your home pc or servers you purchased
- if (_Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].getCurrentServer().purchasedByPlayer) {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Cannot hack your own machines! You are currently connected to your home PC or one of your purchased servers");
- } else if (_Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].getCurrentServer().hasAdminRights == false ) {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("You do not have admin rights for this machine! Cannot hack");
- } else if (_Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].getCurrentServer().requiredHackingSkill > _Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].hacking_skill) {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Your hacking skill is not high enough to attempt hacking this machine. Try analyzing the machine to determine the required hacking skill");
+ if (_Player__WEBPACK_IMPORTED_MODULE_14__[/* Player */ "a"].getCurrentServer().purchasedByPlayer) {
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Cannot hack your own machines! You are currently connected to your home PC or one of your purchased servers");
+ } else if (_Player__WEBPACK_IMPORTED_MODULE_14__[/* Player */ "a"].getCurrentServer().hasAdminRights == false ) {
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("You do not have admin rights for this machine! Cannot hack");
+ } else if (_Player__WEBPACK_IMPORTED_MODULE_14__[/* Player */ "a"].getCurrentServer().requiredHackingSkill > _Player__WEBPACK_IMPORTED_MODULE_14__[/* Player */ "a"].hacking_skill) {
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Your hacking skill is not high enough to attempt hacking this machine. Try analyzing the machine to determine the required hacking skill");
} else {
Terminal.startHack();
}
break;
case "help":
if (commandArray.length != 1 && commandArray.length != 2) {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Incorrect usage of help command. Usage: help"); return;
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Incorrect usage of help command. Usage: help"); return;
}
if (commandArray.length == 1) {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])(_HelpText__WEBPACK_IMPORTED_MODULE_8__["TerminalHelpText"]);
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])(_HelpText__WEBPACK_IMPORTED_MODULE_9__["TerminalHelpText"]);
} else {
var cmd = commandArray[1];
- var txt = _HelpText__WEBPACK_IMPORTED_MODULE_8__["HelpTexts"][cmd];
+ var txt = _HelpText__WEBPACK_IMPORTED_MODULE_9__["HelpTexts"][cmd];
if (txt == null) {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Error: No help topics match '" + cmd + "'");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Error: No help topics match '" + cmd + "'");
return;
}
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])(txt);
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])(txt);
}
break;
case "home":
if (commandArray.length != 1) {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Incorrect usage of home command. Usage: home"); return;
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Incorrect usage of home command. Usage: home"); return;
}
- _Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].getCurrentServer().isConnectedTo = false;
- _Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].currentServer = _Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].getHomeComputer().ip;
- _Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].getCurrentServer().isConnectedTo = true;
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Connected to home");
+ _Player__WEBPACK_IMPORTED_MODULE_14__[/* Player */ "a"].getCurrentServer().isConnectedTo = false;
+ _Player__WEBPACK_IMPORTED_MODULE_14__[/* Player */ "a"].currentServer = _Player__WEBPACK_IMPORTED_MODULE_14__[/* Player */ "a"].getHomeComputer().ip;
+ _Player__WEBPACK_IMPORTED_MODULE_14__[/* Player */ "a"].getCurrentServer().isConnectedTo = true;
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Connected to home");
Terminal.resetTerminalInput();
break;
case "hostname":
if (commandArray.length != 1) {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Incorrect usage of hostname command. Usage: hostname"); return;
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Incorrect usage of hostname command. Usage: hostname"); return;
}
//Print the hostname of current system
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])(_Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].getCurrentServer().hostname);
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])(_Player__WEBPACK_IMPORTED_MODULE_14__[/* Player */ "a"].getCurrentServer().hostname);
break;
case "ifconfig":
if (commandArray.length != 1) {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Incorrect usage of ifconfig command. Usage: ifconfig"); return;
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Incorrect usage of ifconfig command. Usage: ifconfig"); return;
}
//Print the IP address of the current system
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])(_Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].getCurrentServer().ip);
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])(_Player__WEBPACK_IMPORTED_MODULE_14__[/* Player */ "a"].getCurrentServer().ip);
break;
case "kill":
if (commandArray.length < 2) {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Incorrect usage of kill command. Usage: kill [scriptname] [arg1] [arg2]..."); return;
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Incorrect usage of kill command. Usage: kill [scriptname] [arg1] [arg2]..."); return;
}
var results = commandArray[1].split(" ");
var scriptName = results[0];
@@ -32889,90 +32744,90 @@ let Terminal = {
for (var i = 1; i < results.length; ++i) {
args.push(results[i]);
}
- var runningScript = Object(_Script__WEBPACK_IMPORTED_MODULE_15__[/* findRunningScript */ "d"])(scriptName, args, s);
+ var runningScript = Object(_Script__WEBPACK_IMPORTED_MODULE_16__[/* findRunningScript */ "d"])(scriptName, args, s);
if (runningScript == null) {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("No such script is running. Nothing to kill");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("No such script is running. Nothing to kill");
return;
}
- Object(_NetscriptWorker__WEBPACK_IMPORTED_MODULE_12__[/* killWorkerScript */ "d"])(runningScript, s.ip);
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Killing " + scriptName + ". May take up to a few minutes for the scripts to die...");
+ Object(_NetscriptWorker__WEBPACK_IMPORTED_MODULE_13__[/* killWorkerScript */ "d"])(runningScript, s.ip);
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Killing " + scriptName + ". May take up to a few minutes for the scripts to die...");
break;
case "killall":
for (var i = s.runningScripts.length-1; i >= 0; --i) {
- Object(_NetscriptWorker__WEBPACK_IMPORTED_MODULE_12__[/* killWorkerScript */ "d"])(s.runningScripts[i], s.ip);
+ Object(_NetscriptWorker__WEBPACK_IMPORTED_MODULE_13__[/* killWorkerScript */ "d"])(s.runningScripts[i], s.ip);
}
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Killing all running scripts. May take up to a few minutes for the scripts to die...");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Killing all running scripts. May take up to a few minutes for the scripts to die...");
break;
case "ls":
Terminal.executeListCommand(commandArray);
break;
case "lscpu":
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])(_Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].getCurrentServer().cpuCores + " Core(s)");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])(_Player__WEBPACK_IMPORTED_MODULE_14__[/* Player */ "a"].getCurrentServer().cpuCores + " Core(s)");
break;
case "mem":
if (commandArray.length != 2) {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Incorrect usage of mem command. usage: mem [scriptname] [-t] [number threads]"); return;
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Incorrect usage of mem command. usage: mem [scriptname] [-t] [number threads]"); return;
}
var scriptName = commandArray[1];
var numThreads = 1;
if (scriptName.indexOf(" -t ") != -1) {
var results = scriptName.split(" ");
if (results.length != 3) {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Invalid use of run command. Usage: mem [script] [-t] [number threads]");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Invalid use of run command. Usage: mem [script] [-t] [number threads]");
return;
}
numThreads = Math.round(Number(results[2]));
if (isNaN(numThreads) || numThreads < 1) {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Invalid number of threads specified. Number of threads must be greater than 1");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Invalid number of threads specified. Number of threads must be greater than 1");
return;
}
scriptName = results[0];
}
- var currServ = _Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].getCurrentServer();
+ var currServ = _Player__WEBPACK_IMPORTED_MODULE_14__[/* Player */ "a"].getCurrentServer();
for (var i = 0; i < currServ.scripts.length; ++i) {
if (scriptName == currServ.scripts[i].filename) {
var scriptBaseRamUsage = currServ.scripts[i].ramUsage;
var ramUsage = scriptBaseRamUsage * numThreads;
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("This script requires " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_22__["numeralWrapper"].format(ramUsage, '0.00') + " GB of RAM to run for " + numThreads + " thread(s)");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("This script requires " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_23__["numeralWrapper"].format(ramUsage, '0.00') + " GB of RAM to run for " + numThreads + " thread(s)");
return;
}
}
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("ERR: No such script exists!");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("ERR: No such script exists!");
break;
case "nano":
if (commandArray.length != 2) {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Incorrect usage of nano command. Usage: nano [scriptname]"); return;
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Incorrect usage of nano command. Usage: nano [scriptname]"); return;
}
var filename = commandArray[1];
if (filename === ".fconf") {
- var text = Object(_Fconf__WEBPACK_IMPORTED_MODULE_6__[/* createFconf */ "b"])();
- _engine__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadScriptEditorContent(filename, text);
+ var text = Object(_Fconf__WEBPACK_IMPORTED_MODULE_7__[/* createFconf */ "b"])();
+ _engine__WEBPACK_IMPORTED_MODULE_6__["Engine"].loadScriptEditorContent(filename, text);
return;
- } else if (Object(_Script__WEBPACK_IMPORTED_MODULE_15__[/* isScriptFilename */ "e"])(filename)) {
+ } else if (Object(_Script__WEBPACK_IMPORTED_MODULE_16__[/* isScriptFilename */ "e"])(filename)) {
for (var i = 0; i < s.scripts.length; i++) {
if (filename == s.scripts[i].filename) {
- _engine__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadScriptEditorContent(filename, s.scripts[i].code);
+ _engine__WEBPACK_IMPORTED_MODULE_6__["Engine"].loadScriptEditorContent(filename, s.scripts[i].code);
return;
}
}
} else if (filename.endsWith(".txt")) {
for (var i = 0; i < s.textFiles.length; ++i) {
if (filename === s.textFiles[i].fn) {
- _engine__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadScriptEditorContent(filename, s.textFiles[i].text);
+ _engine__WEBPACK_IMPORTED_MODULE_6__["Engine"].loadScriptEditorContent(filename, s.textFiles[i].text);
return;
}
}
} else {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Error: Invalid file. Only scripts (.script, .ns, .js), text files (.txt), or .fconf can be edited with nano"); return;
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Error: Invalid file. Only scripts (.script, .ns, .js), text files (.txt), or .fconf can be edited with nano"); return;
}
- _engine__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadScriptEditorContent(filename);
+ _engine__WEBPACK_IMPORTED_MODULE_6__["Engine"].loadScriptEditorContent(filename);
break;
case "ps":
if (commandArray.length != 1) {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Incorrect usage of ps command. Usage: ps"); return;
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Incorrect usage of ps command. Usage: ps"); return;
}
for (var i = 0; i < s.runningScripts.length; i++) {
var rsObj = s.runningScripts[i];
@@ -32980,12 +32835,12 @@ let Terminal = {
for (var j = 0; j < rsObj.args.length; ++j) {
res += (" " + rsObj.args[j].toString());
}
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])(res);
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])(res);
}
break;
case "rm":
if (commandArray.length != 2) {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Incorrect number of arguments. Usage: rm [program/script]"); return;
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Incorrect number of arguments. Usage: rm [program/script]"); return;
}
//Check programs
@@ -32998,13 +32853,13 @@ let Terminal = {
return;
}
}
- } else if (Object(_Script__WEBPACK_IMPORTED_MODULE_15__[/* isScriptFilename */ "e"])(delTarget)) {
+ } else if (Object(_Script__WEBPACK_IMPORTED_MODULE_16__[/* isScriptFilename */ "e"])(delTarget)) {
for (var i = 0; i < s.scripts.length; ++i) {
if (s.scripts[i].filename == delTarget) {
//Check that the script isnt currently running
for (var j = 0; j < s.runningScripts.length; ++j) {
if (s.runningScripts[j].filename == delTarget) {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Cannot delete a script that is currently running!");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Cannot delete a script that is currently running!");
return;
}
}
@@ -33015,7 +32870,7 @@ let Terminal = {
} else if (delTarget.endsWith(".lit")) {
for (var i = 0; i < s.messages.length; ++i) {
var f = s.messages[i];
- if (!(f instanceof _Message__WEBPACK_IMPORTED_MODULE_11__[/* Message */ "a"]) && Object(_utils_helpers_isString__WEBPACK_IMPORTED_MODULE_25__["isString"])(f) && f === delTarget) {
+ if (!(f instanceof _Message__WEBPACK_IMPORTED_MODULE_12__[/* Message */ "a"]) && Object(_utils_helpers_isString__WEBPACK_IMPORTED_MODULE_26__["isString"])(f) && f === delTarget) {
s.messages.splice(i, 1);
return;
}
@@ -33035,18 +32890,18 @@ let Terminal = {
}
}
}
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Error: No such file exists");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Error: No such file exists");
break;
case "run":
//Run a program or a script
if (commandArray.length != 2) {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Incorrect number of arguments. Usage: run [program/script] [-t] [num threads] [arg1] [arg2]...");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Incorrect number of arguments. Usage: run [program/script] [-t] [num threads] [arg1] [arg2]...");
} else {
var executableName = commandArray[1];
//Secret Music player!
if (executableName === "musicplayer") {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])('', false);
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])('', false);
return;
}
@@ -33080,70 +32935,70 @@ let Terminal = {
depth = Number(commandArray[1]);
}
if (isNaN(depth) || depth < 0) {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Incorrect usage of scan-analyze command. depth argument must be positive numeric");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Incorrect usage of scan-analyze command. depth argument must be positive numeric");
return;
}
- if (depth > 3 && !_Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].hasProgram(_CreateProgram__WEBPACK_IMPORTED_MODULE_3__[/* Programs */ "a"].DeepscanV1.name) &&
- !_Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].hasProgram(_CreateProgram__WEBPACK_IMPORTED_MODULE_3__[/* Programs */ "a"].DeepscanV2.name)) {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("You cannot scan-analyze with that high of a depth. Maximum depth is 3");
+ if (depth > 3 && !_Player__WEBPACK_IMPORTED_MODULE_14__[/* Player */ "a"].hasProgram(_Programs_Programs__WEBPACK_IMPORTED_MODULE_3__["Programs"].DeepscanV1.name) &&
+ !_Player__WEBPACK_IMPORTED_MODULE_14__[/* Player */ "a"].hasProgram(_Programs_Programs__WEBPACK_IMPORTED_MODULE_3__["Programs"].DeepscanV2.name)) {
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("You cannot scan-analyze with that high of a depth. Maximum depth is 3");
return;
- } else if (depth > 5 && !_Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].hasProgram(_CreateProgram__WEBPACK_IMPORTED_MODULE_3__[/* Programs */ "a"].DeepscanV2.name)) {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("You cannot scan-analyze with that high of a depth. Maximum depth is 5");
+ } else if (depth > 5 && !_Player__WEBPACK_IMPORTED_MODULE_14__[/* Player */ "a"].hasProgram(_Programs_Programs__WEBPACK_IMPORTED_MODULE_3__["Programs"].DeepscanV2.name)) {
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("You cannot scan-analyze with that high of a depth. Maximum depth is 5");
return;
} else if (depth > 10) {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("You cannot scan-analyze with that high of a depth. Maximum depth is 10");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("You cannot scan-analyze with that high of a depth. Maximum depth is 10");
return;
}
Terminal.executeScanAnalyzeCommand(depth, all);
} else {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Incorrect usage of scan-analyze command. usage: scan-analyze [depth]");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Incorrect usage of scan-analyze command. usage: scan-analyze [depth]");
}
break;
/* eslint-disable no-case-declarations */
case "scp":
if (commandArray.length != 2) {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Incorrect usage of scp command. Usage: scp [file] [destination hostname/ip]");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Incorrect usage of scp command. Usage: scp [file] [destination hostname/ip]");
return;
}
var args = commandArray[1].split(" ");
if (args.length != 2) {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Incorrect usage of scp command. Usage: scp [file] [destination hostname/ip]");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Incorrect usage of scp command. Usage: scp [file] [destination hostname/ip]");
return;
}
var scriptname = args[0];
- if (!scriptname.endsWith(".lit") && !Object(_Script__WEBPACK_IMPORTED_MODULE_15__[/* isScriptFilename */ "e"])(scriptname) &&
+ if (!scriptname.endsWith(".lit") && !Object(_Script__WEBPACK_IMPORTED_MODULE_16__[/* isScriptFilename */ "e"])(scriptname) &&
!scriptname.endsWith(".txt")){
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Error: scp only works for .script, .txt, and .lit files");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Error: scp only works for .script, .txt, and .lit files");
return;
}
- var destServer = Object(_Server__WEBPACK_IMPORTED_MODULE_16__[/* getServer */ "e"])(args[1]);
+ var destServer = Object(_Server__WEBPACK_IMPORTED_MODULE_17__[/* getServer */ "e"])(args[1]);
if (destServer == null) {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Invalid destination. " + args[1] + " not found");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Invalid destination. " + args[1] + " not found");
return;
}
var ip = destServer.ip;
- var currServ = _Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].getCurrentServer();
+ var currServ = _Player__WEBPACK_IMPORTED_MODULE_14__[/* Player */ "a"].getCurrentServer();
//Scp for lit files
if (scriptname.endsWith(".lit")) {
var found = false;
for (var i = 0; i < currServ.messages.length; ++i) {
- if (!(currServ.messages[i] instanceof _Message__WEBPACK_IMPORTED_MODULE_11__[/* Message */ "a"]) && currServ.messages[i] == scriptname) {
+ if (!(currServ.messages[i] instanceof _Message__WEBPACK_IMPORTED_MODULE_12__[/* Message */ "a"]) && currServ.messages[i] == scriptname) {
found = true;
break;
}
}
- if (!found) {return Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Error: no such file exists!");}
+ if (!found) {return Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Error: no such file exists!");}
for (var i = 0; i < destServer.messages.length; ++i) {
if (destServer.messages[i] === scriptname) {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])(scriptname + " copied over to " + destServer.hostname);
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])(scriptname + " copied over to " + destServer.hostname);
return; //Already exists
}
}
destServer.messages.push(scriptname);
- return Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])(scriptname + " copied over to " + destServer.hostname);
+ return Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])(scriptname + " copied over to " + destServer.hostname);
}
//Scp for txt files
@@ -33157,17 +33012,17 @@ let Terminal = {
}
}
- if (!found) {return Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Error: no such file exists!");}
+ if (!found) {return Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Error: no such file exists!");}
let tRes = destServer.writeToTextFile(txtFile.fn, txtFile.text);
if (!tRes.success) {
- return Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Error: scp failed");
+ return Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Error: scp failed");
}
if (tRes.overwritten) {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])(`WARNING: ${scriptname} already exists on ${destServer.hostname} and will be overwriten`);
- return Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])(`${scriptname} overwritten on ${destServer.hostname}`);
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])(`WARNING: ${scriptname} already exists on ${destServer.hostname} and will be overwriten`);
+ return Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])(`${scriptname} overwritten on ${destServer.hostname}`);
}
- return Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])(`${scriptname} copied over to ${destServer.hostname}`);
+ return Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])(`${scriptname} copied over to ${destServer.hostname}`);
}
//Get the current script
@@ -33179,35 +33034,35 @@ let Terminal = {
}
}
if (sourceScript == null) {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("ERROR: scp() failed. No such script exists");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("ERROR: scp() failed. No such script exists");
return;
}
let sRes = destServer.writeToScriptFile(scriptname, sourceScript.code);
if (!sRes.success) {
- return Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])(`Error: scp failed`);
+ return Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])(`Error: scp failed`);
}
if (sRes.overwritten) {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])(`WARNING: ${scriptname} already exists on ${destServer.hostname} and will be overwritten`);
- return Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])(`${scriptname} overwritten on ${destServer.hostname}`);
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])(`WARNING: ${scriptname} already exists on ${destServer.hostname} and will be overwritten`);
+ return Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])(`${scriptname} overwritten on ${destServer.hostname}`);
}
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])(`${scriptname} copied over to ${destServer.hostname}`);
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])(`${scriptname} copied over to ${destServer.hostname}`);
break;
/* eslint-enable no-case-declarations */
case "sudov":
if (commandArray.length != 1) {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Incorrect number of arguments. Usage: sudov"); return;
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Incorrect number of arguments. Usage: sudov"); return;
}
- if (_Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].getCurrentServer().hasAdminRights) {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("You have ROOT access to this machine");
+ if (_Player__WEBPACK_IMPORTED_MODULE_14__[/* Player */ "a"].getCurrentServer().hasAdminRights) {
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("You have ROOT access to this machine");
} else {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("You do NOT have root access to this machine");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("You do NOT have root access to this machine");
}
break;
case "tail":
if (commandArray.length < 2) {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Incorrect number of arguments. Usage: tail [script] [arg1] [arg2]...");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Incorrect number of arguments. Usage: tail [script] [arg1] [arg2]...");
} else {
var results = commandArray[1].split(" ");
var scriptName = results[0];
@@ -33217,25 +33072,25 @@ let Terminal = {
}
//Can only tail script files
- if (Object(_Script__WEBPACK_IMPORTED_MODULE_15__[/* isScriptFilename */ "e"])(scriptName) == false) {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Error: tail can only be called on .script files (filename must end with .script)"); return;
+ if (Object(_Script__WEBPACK_IMPORTED_MODULE_16__[/* isScriptFilename */ "e"])(scriptName) == false) {
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Error: tail can only be called on .script files (filename must end with .script)"); return;
}
//Check that the script exists on this machine
- var runningScript = Object(_Script__WEBPACK_IMPORTED_MODULE_15__[/* findRunningScript */ "d"])(scriptName, args, s);
+ var runningScript = Object(_Script__WEBPACK_IMPORTED_MODULE_16__[/* findRunningScript */ "d"])(scriptName, args, s);
if (runningScript == null) {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Error: No such script exists");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Error: No such script exists");
return;
}
- Object(_utils_LogBox__WEBPACK_IMPORTED_MODULE_28__[/* logBoxCreate */ "a"])(runningScript);
+ Object(_utils_LogBox__WEBPACK_IMPORTED_MODULE_29__[/* logBoxCreate */ "a"])(runningScript);
}
break;
case "theme":
//todo support theme saving
var args = commandArray[1] ? commandArray[1].split(" ") : [];
if (args.length != 1 && args.length != 3) {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Incorrect number of arguments.");
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Usage: theme [default|muted|solarized] | #[background color hex] #[text color hex] #[highlight color hex]");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Incorrect number of arguments.");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Usage: theme [default|muted|solarized] | #[background color hex] #[text color hex] #[highlight color hex]");
} else if(args.length == 1){
var themeName = args[0];
if (themeName == "default"){
@@ -33252,12 +33107,12 @@ let Terminal = {
document.body.style.setProperty('--my-font-color',"#839496");
document.body.style.setProperty('--my-background-color',"#002b36");
} else {
- return Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Theme not found");
+ return Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Theme not found");
}
- _Fconf__WEBPACK_IMPORTED_MODULE_6__[/* FconfSettings */ "a"].THEME_HIGHLIGHT_COLOR = document.body.style.getPropertyValue("--my-highlight-color");
- _Fconf__WEBPACK_IMPORTED_MODULE_6__[/* FconfSettings */ "a"].THEME_FONT_COLOR = document.body.style.getPropertyValue("--my-font-color");
- _Fconf__WEBPACK_IMPORTED_MODULE_6__[/* FconfSettings */ "a"].THEME_BACKGROUND_COLOR = document.body.style.getPropertyValue("--my-background-color");
- _Fconf__WEBPACK_IMPORTED_MODULE_6__[/* FconfSettings */ "a"].THEME_PROMPT_COLOR = document.body.style.getPropertyValue("--my-prompt-color");
+ _Fconf__WEBPACK_IMPORTED_MODULE_7__[/* FconfSettings */ "a"].THEME_HIGHLIGHT_COLOR = document.body.style.getPropertyValue("--my-highlight-color");
+ _Fconf__WEBPACK_IMPORTED_MODULE_7__[/* FconfSettings */ "a"].THEME_FONT_COLOR = document.body.style.getPropertyValue("--my-font-color");
+ _Fconf__WEBPACK_IMPORTED_MODULE_7__[/* FconfSettings */ "a"].THEME_BACKGROUND_COLOR = document.body.style.getPropertyValue("--my-background-color");
+ _Fconf__WEBPACK_IMPORTED_MODULE_7__[/* FconfSettings */ "a"].THEME_PROMPT_COLOR = document.body.style.getPropertyValue("--my-prompt-color");
} else {
var inputBackgroundHex = args[0];
var inputTextHex = args[1];
@@ -33268,22 +33123,22 @@ let Terminal = {
document.body.style.setProperty('--my-highlight-color',inputHighlightHex);
document.body.style.setProperty('--my-font-color',inputTextHex);
document.body.style.setProperty('--my-background-color',inputBackgroundHex);
- _Fconf__WEBPACK_IMPORTED_MODULE_6__[/* FconfSettings */ "a"].THEME_HIGHLIGHT_COLOR = document.body.style.getPropertyValue("--my-highlight-color");
- _Fconf__WEBPACK_IMPORTED_MODULE_6__[/* FconfSettings */ "a"].THEME_FONT_COLOR = document.body.style.getPropertyValue("--my-font-color");
- _Fconf__WEBPACK_IMPORTED_MODULE_6__[/* FconfSettings */ "a"].THEME_BACKGROUND_COLOR = document.body.style.getPropertyValue("--my-background-color");
+ _Fconf__WEBPACK_IMPORTED_MODULE_7__[/* FconfSettings */ "a"].THEME_HIGHLIGHT_COLOR = document.body.style.getPropertyValue("--my-highlight-color");
+ _Fconf__WEBPACK_IMPORTED_MODULE_7__[/* FconfSettings */ "a"].THEME_FONT_COLOR = document.body.style.getPropertyValue("--my-font-color");
+ _Fconf__WEBPACK_IMPORTED_MODULE_7__[/* FconfSettings */ "a"].THEME_BACKGROUND_COLOR = document.body.style.getPropertyValue("--my-background-color");
} else {
- return Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Invalid Hex Input for theme");
+ return Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Invalid Hex Input for theme");
}
}
break;
case "top":
if(commandArray.length != 1) {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Incorrect usage of top command. Usage: top"); return;
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Incorrect usage of top command. Usage: top"); return;
}
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Script Threads RAM Usage");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Script Threads RAM Usage");
- var currRunningScripts = _Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].getCurrentServer().runningScripts;
+ var currRunningScripts = _Player__WEBPACK_IMPORTED_MODULE_14__[/* Player */ "a"].getCurrentServer().runningScripts;
//Iterate through scripts on current server
for(var i = 0; i < currRunningScripts.length; i++) {
var script = currRunningScripts[i];
@@ -33298,86 +33153,86 @@ let Terminal = {
var spacesThread = Array(numSpacesThread+1).join(" ");
//Calculate and transform RAM usage
- ramUsage = _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_22__["numeralWrapper"].format(script.scriptRef.ramUsage * script.threads, '0.00') + " GB";
+ ramUsage = _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_23__["numeralWrapper"].format(script.scriptRef.ramUsage * script.threads, '0.00') + " GB";
var entry = [script.filename, spacesScript, script.threads, spacesThread, ramUsage];
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])(entry.join(""));
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])(entry.join(""));
}
break;
case "unalias":
if (commandArray.length != 2) {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])('Incorrect usage of unalias name. Usage: unalias "[alias]"');
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])('Incorrect usage of unalias name. Usage: unalias "[alias]"');
return;
} else if (!(commandArray[1].startsWith('"') && commandArray[1].endsWith('"'))) {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])('Incorrect usage of unalias name. Usage: unalias "[alias]"');
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])('Incorrect usage of unalias name. Usage: unalias "[alias]"');
} else {
var alias = commandArray[1].slice(1, -1);
if (Object(_Alias__WEBPACK_IMPORTED_MODULE_0__[/* removeAlias */ "g"])(alias)) {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Removed alias " + alias);
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Removed alias " + alias);
} else {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("No such alias exists");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("No such alias exists");
}
}
break;
/* eslint-disable no-case-declarations */
case "wget":
if (commandArray.length !== 2) {
- return Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Incorrect usage of wget command. Usage: wget [url] [target file]");
+ return Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Incorrect usage of wget command. Usage: wget [url] [target file]");
}
var args = commandArray[1].split(" ");
if (args.length !== 2) {
- return Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Incorrect usage of wget command. Usage: wget [url] [target file]");
+ return Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Incorrect usage of wget command. Usage: wget [url] [target file]");
}
let url = args[0];
let target = args[1];
- if (!Object(_Script__WEBPACK_IMPORTED_MODULE_15__[/* isScriptFilename */ "e"])(target) && !target.endsWith(".txt")) {
- return Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])(`wget failed: Invalid target file. Target file must be script or text file`);
+ if (!Object(_Script__WEBPACK_IMPORTED_MODULE_16__[/* isScriptFilename */ "e"])(target) && !target.endsWith(".txt")) {
+ return Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])(`wget failed: Invalid target file. Target file must be script or text file`);
}
$.get(url, function(data) {
let res;
- if (Object(_Script__WEBPACK_IMPORTED_MODULE_15__[/* isScriptFilename */ "e"])(target)) {
+ if (Object(_Script__WEBPACK_IMPORTED_MODULE_16__[/* isScriptFilename */ "e"])(target)) {
res = s.writeToScriptFile(target, data);
} else {
res = s.writeToTextFile(target, data);
}
if (!res.success) {
- return Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("wget failed");
+ return Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("wget failed");
}
if (res.overwritten) {
- return Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])(`wget successfully retrieved content and overwrote ${target}`);
+ return Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])(`wget successfully retrieved content and overwrote ${target}`);
}
- return Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])(`wget successfully retrieved content to new file ${target}`);
+ return Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])(`wget successfully retrieved content to new file ${target}`);
}, 'text').fail(function(e) {
- return Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("wget failed: " + JSON.stringify(e));
+ return Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("wget failed: " + JSON.stringify(e));
})
break;
/* eslint-enable no-case-declarations */
default:
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Command not found");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Command not found");
}
},
connectToServer: function(ip) {
console.log("Connect to server called");
- var serv = Object(_Server__WEBPACK_IMPORTED_MODULE_16__[/* getServer */ "e"])(ip);
+ var serv = Object(_Server__WEBPACK_IMPORTED_MODULE_17__[/* getServer */ "e"])(ip);
if (serv == null) {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Invalid server. Connection failed.");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Invalid server. Connection failed.");
return;
}
- _Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].getCurrentServer().isConnectedTo = false;
- _Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].currentServer = serv.ip;
- _Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].getCurrentServer().isConnectedTo = true;
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Connected to " + serv.hostname);
- if (_Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].getCurrentServer().hostname == "darkweb") {
- Object(_DarkWeb__WEBPACK_IMPORTED_MODULE_4__[/* checkIfConnectedToDarkweb */ "b"])(); //Posts a 'help' message if connecting to dark web
+ _Player__WEBPACK_IMPORTED_MODULE_14__[/* Player */ "a"].getCurrentServer().isConnectedTo = false;
+ _Player__WEBPACK_IMPORTED_MODULE_14__[/* Player */ "a"].currentServer = serv.ip;
+ _Player__WEBPACK_IMPORTED_MODULE_14__[/* Player */ "a"].getCurrentServer().isConnectedTo = true;
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Connected to " + serv.hostname);
+ if (_Player__WEBPACK_IMPORTED_MODULE_14__[/* Player */ "a"].getCurrentServer().hostname == "darkweb") {
+ Object(_DarkWeb_DarkWeb__WEBPACK_IMPORTED_MODULE_4__[/* checkIfConnectedToDarkweb */ "a"])(); //Posts a 'help' message if connecting to dark web
}
Terminal.resetTerminalInput();
},
executeListCommand: function(commandArray) {
if (commandArray.length != 1 && commandArray.length != 2) {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Incorrect usage of ls command. Usage: ls [| grep pattern]"); return;
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Incorrect usage of ls command. Usage: ls [| grep pattern]"); return;
}
//grep
@@ -33389,7 +33244,7 @@ let Terminal = {
filter = pattern;
}
} else {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Incorrect usage of ls command. Usage: ls [| grep pattern]"); return;
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Incorrect usage of ls command. Usage: ls [| grep pattern]"); return;
}
}
@@ -33397,7 +33252,7 @@ let Terminal = {
var allFiles = [];
//Get all of the programs and scripts on the machine into one temporary array
- var s = _Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].getCurrentServer();
+ var s = _Player__WEBPACK_IMPORTED_MODULE_14__[/* Player */ "a"].getCurrentServer();
for (var i = 0; i < s.programs.length; i++) {
if (filter) {
if (s.programs[i].includes(filter)) {
@@ -33419,7 +33274,7 @@ let Terminal = {
}
for (var i = 0; i < s.messages.length; i++) {
if (filter) {
- if (s.messages[i] instanceof _Message__WEBPACK_IMPORTED_MODULE_11__[/* Message */ "a"]) {
+ if (s.messages[i] instanceof _Message__WEBPACK_IMPORTED_MODULE_12__[/* Message */ "a"]) {
if (s.messages[i].filename.includes(filter)) {
allFiles.push(s.messages[i].filename);
}
@@ -33427,7 +33282,7 @@ let Terminal = {
allFiles.push(s.messages[i]);
}
} else {
- if (s.messages[i] instanceof _Message__WEBPACK_IMPORTED_MODULE_11__[/* Message */ "a"]) {
+ if (s.messages[i] instanceof _Message__WEBPACK_IMPORTED_MODULE_12__[/* Message */ "a"]) {
allFiles.push(s.messages[i].filename);
} else {
allFiles.push(s.messages[i]);
@@ -33457,19 +33312,19 @@ let Terminal = {
allFiles.sort();
for (var i = 0; i < allFiles.length; i++) {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])(allFiles[i]);
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])(allFiles[i]);
}
},
executeScanCommand: function(commandArray) {
if (commandArray.length != 1) {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Incorrect usage of netstat/scan command. Usage: netstat/scan"); return;
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Incorrect usage of netstat/scan command. Usage: netstat/scan"); return;
}
//Displays available network connections using TCP
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Hostname IP Root Access");
- for (var i = 0; i < _Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].getCurrentServer().serversOnNetwork.length; i++) {
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Hostname IP Root Access");
+ for (var i = 0; i < _Player__WEBPACK_IMPORTED_MODULE_14__[/* Player */ "a"].getCurrentServer().serversOnNetwork.length; i++) {
//Add hostname
- var entry = _Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].getCurrentServer().getServerOnNetwork(i);
+ var entry = _Player__WEBPACK_IMPORTED_MODULE_14__[/* Player */ "a"].getCurrentServer().getServerOnNetwork(i);
if (entry == null) {continue;}
entry = entry.hostname;
@@ -33477,33 +33332,33 @@ let Terminal = {
var numSpaces = 21 - entry.length;
var spaces = Array(numSpaces+1).join(" ");
entry += spaces;
- entry += _Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].getCurrentServer().getServerOnNetwork(i).ip;
+ entry += _Player__WEBPACK_IMPORTED_MODULE_14__[/* Player */ "a"].getCurrentServer().getServerOnNetwork(i).ip;
//Calculate padding and add root access info
var hasRoot;
- if (_Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].getCurrentServer().getServerOnNetwork(i).hasAdminRights) {
+ if (_Player__WEBPACK_IMPORTED_MODULE_14__[/* Player */ "a"].getCurrentServer().getServerOnNetwork(i).hasAdminRights) {
hasRoot = 'Y';
} else {
hasRoot = 'N';
}
- numSpaces = 21 - _Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].getCurrentServer().getServerOnNetwork(i).ip.length;
+ numSpaces = 21 - _Player__WEBPACK_IMPORTED_MODULE_14__[/* Player */ "a"].getCurrentServer().getServerOnNetwork(i).ip.length;
spaces = Array(numSpaces+1).join(" ");
entry += spaces;
entry += hasRoot;
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])(entry);
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])(entry);
}
},
executeScanAnalyzeCommand: function(depth=1, all=false) {
//We'll use the AllServersMap as a visited() array
//TODO Using array as stack for now, can make more efficient
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("~~~~~~~~~~ Beginning scan-analyze ~~~~~~~~~~");
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])(" ");
- var visited = new _Script__WEBPACK_IMPORTED_MODULE_15__[/* AllServersMap */ "a"]();
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("~~~~~~~~~~ Beginning scan-analyze ~~~~~~~~~~");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])(" ");
+ var visited = new _Script__WEBPACK_IMPORTED_MODULE_16__[/* AllServersMap */ "a"]();
var stack = [];
var depthQueue = [0];
- var currServ = _Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].getCurrentServer();
+ var currServ = _Player__WEBPACK_IMPORTED_MODULE_14__[/* Player */ "a"].getCurrentServer();
stack.push(currServ);
while(stack.length != 0) {
var s = stack.pop();
@@ -33521,20 +33376,20 @@ let Terminal = {
}
if (d == 0) {continue;} //Don't print current server
var titleDashes = Array((d-1) * 4 + 1).join("-");
- if (_Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].hasProgram(_CreateProgram__WEBPACK_IMPORTED_MODULE_3__[/* Programs */ "a"].AutoLink.name)) {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("" + titleDashes + "> " + s.hostname + " ", false);
+ if (_Player__WEBPACK_IMPORTED_MODULE_14__[/* Player */ "a"].hasProgram(_Programs_Programs__WEBPACK_IMPORTED_MODULE_3__["Programs"].AutoLink.name)) {
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("" + titleDashes + "> " + s.hostname + " ", false);
} else {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("" + titleDashes + ">" + s.hostname + " ");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("" + titleDashes + ">" + s.hostname + " ");
}
var dashes = titleDashes + "--";
//var dashes = Array(d * 2 + 1).join("-");
var c = "NO";
if (s.hasAdminRights) {c = "YES";}
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])(dashes + "Root Access: " + c + ", Required hacking skill: " + s.requiredHackingSkill);
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])(dashes + "Number of open ports required to NUKE: " + s.numOpenPortsRequired);
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])(dashes + "RAM: " + s.maxRam);
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])(" ");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])(dashes + "Root Access: " + c + ", Required hacking skill: " + s.requiredHackingSkill);
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])(dashes + "Number of open ports required to NUKE: " + s.numOpenPortsRequired);
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])(dashes + "RAM: " + s.maxRam);
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])(" ");
}
var links = document.getElementsByClassName("scan-analyze-link");
@@ -33552,11 +33407,11 @@ let Terminal = {
executeFreeCommand: function(commandArray) {
if (commandArray.length != 1) {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Incorrect usage of free command. Usage: free"); return;
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Incorrect usage of free command. Usage: free"); return;
}
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Total: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_22__["numeralWrapper"].format(_Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].getCurrentServer().maxRam, '0.00') + " GB");
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Used: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_22__["numeralWrapper"].format(_Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].getCurrentServer().ramUsed, '0.00') + " GB");
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Available: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_22__["numeralWrapper"].format(_Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].getCurrentServer().maxRam - _Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].getCurrentServer().ramUsed, '0.00') + " GB");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Total: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_23__["numeralWrapper"].format(_Player__WEBPACK_IMPORTED_MODULE_14__[/* Player */ "a"].getCurrentServer().maxRam, '0.00') + " GB");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Used: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_23__["numeralWrapper"].format(_Player__WEBPACK_IMPORTED_MODULE_14__[/* Player */ "a"].getCurrentServer().ramUsed, '0.00') + " GB");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Available: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_23__["numeralWrapper"].format(_Player__WEBPACK_IMPORTED_MODULE_14__[/* Player */ "a"].getCurrentServer().maxRam - _Player__WEBPACK_IMPORTED_MODULE_14__[/* Player */ "a"].getCurrentServer().ramUsed, '0.00') + " GB");
},
//First called when the "run [program]" command is called. Checks to see if you
@@ -33571,16 +33426,16 @@ let Terminal = {
} else {
name = programName;
}
- if (_Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].hasProgram(name)) {
+ if (_Player__WEBPACK_IMPORTED_MODULE_14__[/* Player */ "a"].hasProgram(name)) {
Terminal.executeProgram(programName);
return;
}
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("ERROR: No such executable on home computer (Only programs that exist on your home computer can be run)");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("ERROR: No such executable on home computer (Only programs that exist on your home computer can be run)");
},
//Contains the implementations of all possible programs
executeProgram: function(programName) {
- var s = _Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].getCurrentServer();
+ var s = _Player__WEBPACK_IMPORTED_MODULE_14__[/* Player */ "a"].getCurrentServer();
var splitArgs = programName.split(" ");
if (splitArgs.length > 1) {
programName = splitArgs[0];
@@ -33597,149 +33452,149 @@ let Terminal = {
* @type {Object. {
+ programHandlers[_Programs_Programs__WEBPACK_IMPORTED_MODULE_3__["Programs"].NukeProgram.name] = (server) => {
if (server.hasAdminRights) {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("You already have root access to this computer. There is no reason to run NUKE.exe");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("You already have root access to this computer. There is no reason to run NUKE.exe");
return;
}
- if (server.openPortCount >= _Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].getCurrentServer().numOpenPortsRequired) {
+ if (server.openPortCount >= _Player__WEBPACK_IMPORTED_MODULE_14__[/* Player */ "a"].getCurrentServer().numOpenPortsRequired) {
server.hasAdminRights = true;
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("NUKE successful! Gained root access to " + _Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].getCurrentServer().hostname);
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("NUKE successful! Gained root access to " + _Player__WEBPACK_IMPORTED_MODULE_14__[/* Player */ "a"].getCurrentServer().hostname);
// TODO: Make this take time rather than be instant
return;
}
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("NUKE unsuccessful. Not enough ports have been opened");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("NUKE unsuccessful. Not enough ports have been opened");
};
- programHandlers[_CreateProgram__WEBPACK_IMPORTED_MODULE_3__[/* Programs */ "a"].BruteSSHProgram.name] = (server) => {
+ programHandlers[_Programs_Programs__WEBPACK_IMPORTED_MODULE_3__["Programs"].BruteSSHProgram.name] = (server) => {
if (server.sshPortOpen) {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("SSH Port (22) is already open!");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("SSH Port (22) is already open!");
return;
}
server.sshPortOpen = true;
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Opened SSH Port(22)!")
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Opened SSH Port(22)!")
server.openPortCount++;
};
- programHandlers[_CreateProgram__WEBPACK_IMPORTED_MODULE_3__[/* Programs */ "a"].FTPCrackProgram.name] = (server) => {
+ programHandlers[_Programs_Programs__WEBPACK_IMPORTED_MODULE_3__["Programs"].FTPCrackProgram.name] = (server) => {
if (server.ftpPortOpen) {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("FTP Port (21) is already open!");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("FTP Port (21) is already open!");
return;
}
server.ftpPortOpen = true;
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Opened FTP Port (21)!");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Opened FTP Port (21)!");
server.openPortCount++;
};
- programHandlers[_CreateProgram__WEBPACK_IMPORTED_MODULE_3__[/* Programs */ "a"].RelaySMTPProgram.name] = (server) => {
+ programHandlers[_Programs_Programs__WEBPACK_IMPORTED_MODULE_3__["Programs"].RelaySMTPProgram.name] = (server) => {
if (server.smtpPortOpen) {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("SMTP Port (25) is already open!");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("SMTP Port (25) is already open!");
return;
}
server.smtpPortOpen = true;
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Opened SMTP Port (25)!");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Opened SMTP Port (25)!");
server.openPortCount++;
};
- programHandlers[_CreateProgram__WEBPACK_IMPORTED_MODULE_3__[/* Programs */ "a"].HTTPWormProgram.name] = (server) => {
+ programHandlers[_Programs_Programs__WEBPACK_IMPORTED_MODULE_3__["Programs"].HTTPWormProgram.name] = (server) => {
if (server.httpPortOpen) {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("HTTP Port (80) is already open!");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("HTTP Port (80) is already open!");
return;
}
server.httpPortOpen = true;
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Opened HTTP Port (80)!");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Opened HTTP Port (80)!");
server.openPortCount++;
};
- programHandlers[_CreateProgram__WEBPACK_IMPORTED_MODULE_3__[/* Programs */ "a"].SQLInjectProgram.name] = (server) => {
+ programHandlers[_Programs_Programs__WEBPACK_IMPORTED_MODULE_3__["Programs"].SQLInjectProgram.name] = (server) => {
if (server.sqlPortOpen) {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("SQL Port (1433) is already open!");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("SQL Port (1433) is already open!");
return;
}
server.sqlPortOpen = true;
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Opened SQL Port (1433)!");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Opened SQL Port (1433)!");
server.openPortCount++;
};
- programHandlers[_CreateProgram__WEBPACK_IMPORTED_MODULE_3__[/* Programs */ "a"].ServerProfiler.name] = (server, args) => {
+ programHandlers[_Programs_Programs__WEBPACK_IMPORTED_MODULE_3__["Programs"].ServerProfiler.name] = (server, args) => {
if (args.length !== 2) {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Must pass a server hostname or IP as an argument for ServerProfiler.exe");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Must pass a server hostname or IP as an argument for ServerProfiler.exe");
return;
}
- const targetServer = Object(_Server__WEBPACK_IMPORTED_MODULE_16__[/* getServer */ "e"])(args[1]);
+ const targetServer = Object(_Server__WEBPACK_IMPORTED_MODULE_17__[/* getServer */ "e"])(args[1]);
if (targetServer == null) {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Invalid server IP/hostname");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Invalid server IP/hostname");
return;
}
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])(targetServer.hostname + ":");
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Server base security level: " + targetServer.baseDifficulty);
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Server current security level: " + targetServer.hackDifficulty);
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Server growth rate: " + targetServer.serverGrowth);
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Netscript hack() execution time: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_22__["numeralWrapper"].format(Object(_Hacking__WEBPACK_IMPORTED_MODULE_7__[/* calculateHackingTime */ "d"])(targetServer), '0.0') + "s");
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Netscript grow() execution time: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_22__["numeralWrapper"].format(Object(_Hacking__WEBPACK_IMPORTED_MODULE_7__[/* calculateGrowTime */ "a"])(targetServer), '0.0') + "s");
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Netscript weaken() execution time: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_22__["numeralWrapper"].format(Object(_Hacking__WEBPACK_IMPORTED_MODULE_7__[/* calculateWeakenTime */ "f"])(targetServer), '0.0') + "s");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])(targetServer.hostname + ":");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Server base security level: " + targetServer.baseDifficulty);
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Server current security level: " + targetServer.hackDifficulty);
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Server growth rate: " + targetServer.serverGrowth);
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Netscript hack() execution time: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_23__["numeralWrapper"].format(Object(_Hacking__WEBPACK_IMPORTED_MODULE_8__[/* calculateHackingTime */ "d"])(targetServer), '0.0') + "s");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Netscript grow() execution time: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_23__["numeralWrapper"].format(Object(_Hacking__WEBPACK_IMPORTED_MODULE_8__[/* calculateGrowTime */ "a"])(targetServer), '0.0') + "s");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Netscript weaken() execution time: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_23__["numeralWrapper"].format(Object(_Hacking__WEBPACK_IMPORTED_MODULE_8__[/* calculateWeakenTime */ "f"])(targetServer), '0.0') + "s");
};
- programHandlers[_CreateProgram__WEBPACK_IMPORTED_MODULE_3__[/* Programs */ "a"].AutoLink.name] = () => {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("This executable cannot be run.");
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("AutoLink.exe lets you automatically connect to other servers when using 'scan-analyze'.");
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("When using scan-analyze, click on a server's hostname to connect to it.");
+ programHandlers[_Programs_Programs__WEBPACK_IMPORTED_MODULE_3__["Programs"].AutoLink.name] = () => {
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("This executable cannot be run.");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("AutoLink.exe lets you automatically connect to other servers when using 'scan-analyze'.");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("When using scan-analyze, click on a server's hostname to connect to it.");
};
- programHandlers[_CreateProgram__WEBPACK_IMPORTED_MODULE_3__[/* Programs */ "a"].DeepscanV1.name] = () => {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("This executable cannot be run.");
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("DeepscanV1.exe lets you run 'scan-analyze' with a depth up to 5.");
+ programHandlers[_Programs_Programs__WEBPACK_IMPORTED_MODULE_3__["Programs"].DeepscanV1.name] = () => {
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("This executable cannot be run.");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("DeepscanV1.exe lets you run 'scan-analyze' with a depth up to 5.");
};
- programHandlers[_CreateProgram__WEBPACK_IMPORTED_MODULE_3__[/* Programs */ "a"].DeepscanV2.name] = () => {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("This executable cannot be run.");
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("DeepscanV2.exe lets you run 'scan-analyze' with a depth up to 10.");
+ programHandlers[_Programs_Programs__WEBPACK_IMPORTED_MODULE_3__["Programs"].DeepscanV2.name] = () => {
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("This executable cannot be run.");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("DeepscanV2.exe lets you run 'scan-analyze' with a depth up to 10.");
};
- programHandlers[_CreateProgram__WEBPACK_IMPORTED_MODULE_3__[/* Programs */ "a"].Flight.name] = () => {
- const fulfilled = _Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].augmentations.length >= 30 &&
- _Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].money.gt(1e11) &&
- ((_Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].hacking_skill >= 2500)||
- (_Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].strength >= 1500 &&
- _Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].defense >= 1500 &&
- _Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].dexterity >= 1500 &&
- _Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].agility >= 1500));
+ programHandlers[_Programs_Programs__WEBPACK_IMPORTED_MODULE_3__["Programs"].Flight.name] = () => {
+ const fulfilled = _Player__WEBPACK_IMPORTED_MODULE_14__[/* Player */ "a"].augmentations.length >= 30 &&
+ _Player__WEBPACK_IMPORTED_MODULE_14__[/* Player */ "a"].money.gt(1e11) &&
+ ((_Player__WEBPACK_IMPORTED_MODULE_14__[/* Player */ "a"].hacking_skill >= 2500)||
+ (_Player__WEBPACK_IMPORTED_MODULE_14__[/* Player */ "a"].strength >= 1500 &&
+ _Player__WEBPACK_IMPORTED_MODULE_14__[/* Player */ "a"].defense >= 1500 &&
+ _Player__WEBPACK_IMPORTED_MODULE_14__[/* Player */ "a"].dexterity >= 1500 &&
+ _Player__WEBPACK_IMPORTED_MODULE_14__[/* Player */ "a"].agility >= 1500));
if(!fulfilled) {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Augmentations: " + _Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].augmentations.length + " / 30");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Augmentations: " + _Player__WEBPACK_IMPORTED_MODULE_14__[/* Player */ "a"].augmentations.length + " / 30");
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Money: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_22__["numeralWrapper"].format(_Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].money.toNumber(), '($0.000a)') + " / " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_22__["numeralWrapper"].format(1e11, '($0.000a)'));
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("One path below must be fulfilled...");
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("----------HACKING PATH----------");
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Hacking skill: " + _Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].hacking_skill + " / 2500");
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("----------COMBAT PATH----------");
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Strength: " + _Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].strength + " / 1500");
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Defense: " + _Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].defense + " / 1500");
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Dexterity: " + _Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].dexterity + " / 1500");
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Agility: " + _Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].agility + " / 1500");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Money: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_23__["numeralWrapper"].format(_Player__WEBPACK_IMPORTED_MODULE_14__[/* Player */ "a"].money.toNumber(), '($0.000a)') + " / " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_23__["numeralWrapper"].format(1e11, '($0.000a)'));
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("One path below must be fulfilled...");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("----------HACKING PATH----------");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Hacking skill: " + _Player__WEBPACK_IMPORTED_MODULE_14__[/* Player */ "a"].hacking_skill + " / 2500");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("----------COMBAT PATH----------");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Strength: " + _Player__WEBPACK_IMPORTED_MODULE_14__[/* Player */ "a"].strength + " / 1500");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Defense: " + _Player__WEBPACK_IMPORTED_MODULE_14__[/* Player */ "a"].defense + " / 1500");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Dexterity: " + _Player__WEBPACK_IMPORTED_MODULE_14__[/* Player */ "a"].dexterity + " / 1500");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Agility: " + _Player__WEBPACK_IMPORTED_MODULE_14__[/* Player */ "a"].agility + " / 1500");
return;
}
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("We will contact you.");
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("-- Daedalus --");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("We will contact you.");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("-- Daedalus --");
};
- programHandlers[_CreateProgram__WEBPACK_IMPORTED_MODULE_3__[/* Programs */ "a"].BitFlume.name] = () => {
- const yesBtn = Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_29__["yesNoBoxGetYesButton"])();
- const noBtn = Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_29__["yesNoBoxGetNoButton"])();
+ programHandlers[_Programs_Programs__WEBPACK_IMPORTED_MODULE_3__["Programs"].BitFlume.name] = () => {
+ const yesBtn = Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_30__["yesNoBoxGetYesButton"])();
+ const noBtn = Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_30__["yesNoBoxGetNoButton"])();
yesBtn.innerHTML = "Travel to BitNode Nexus";
noBtn.innerHTML = "Cancel";
yesBtn.addEventListener("click", function() {
console.log("yesBtn event listener");
- Object(_RedPill__WEBPACK_IMPORTED_MODULE_14__[/* hackWorldDaemon */ "a"])(_Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].bitNodeN, true);
- return Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_29__["yesNoBoxClose"])();
+ Object(_RedPill__WEBPACK_IMPORTED_MODULE_15__[/* hackWorldDaemon */ "a"])(_Player__WEBPACK_IMPORTED_MODULE_14__[/* Player */ "a"].bitNodeN, true);
+ return Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_30__["yesNoBoxClose"])();
});
noBtn.addEventListener("click", function() {
- return Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_29__["yesNoBoxClose"])();
+ return Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_30__["yesNoBoxClose"])();
});
- Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_29__["yesNoBoxCreate"])("WARNING: USING THIS PROGRAM WILL CAUSE YOU TO LOSE ALL OF YOUR PROGRESS ON THE CURRENT BITNODE. " +
+ Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_30__["yesNoBoxCreate"])("WARNING: USING THIS PROGRAM WILL CAUSE YOU TO LOSE ALL OF YOUR PROGRESS ON THE CURRENT BITNODE. " +
"Do you want to travel to the BitNode Nexus? This allows you to reset the current BitNode " +
"and select a new one.");
};
if (!programHandlers.hasOwnProperty(programName)){
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Invalid executable. Cannot be run");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Invalid executable. Cannot be run");
return;
}
@@ -33747,20 +33602,20 @@ let Terminal = {
},
runScript: function(scriptName) {
- var server = _Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].getCurrentServer();
+ var server = _Player__WEBPACK_IMPORTED_MODULE_14__[/* Player */ "a"].getCurrentServer();
var numThreads = 1;
var args = [];
var results = scriptName.split(" ");
if (results.length <= 0) {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("This is a bug. Please contact developer");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("This is a bug. Please contact developer");
}
scriptName = results[0];
if (results.length > 1) {
if (results.length >= 3 && results[1] == "-t") {
numThreads = Math.round(Number(results[2]));
if (isNaN(numThreads) || numThreads < 1) {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Invalid number of threads specified. Number of threads must be greater than 0");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Invalid number of threads specified. Number of threads must be greater than 0");
return;
}
for (var i = 3; i < results.length; ++i) {
@@ -33805,8 +33660,8 @@ let Terminal = {
//Check if this script is already running
- if (Object(_Script__WEBPACK_IMPORTED_MODULE_15__[/* findRunningScript */ "d"])(scriptName, args, server) != null) {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("ERROR: This script is already running. Cannot run multiple instances");
+ if (Object(_Script__WEBPACK_IMPORTED_MODULE_16__[/* findRunningScript */ "d"])(scriptName, args, server) != null) {
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("ERROR: This script is already running. Cannot run multiple instances");
return;
}
@@ -33819,40 +33674,40 @@ let Terminal = {
var ramAvailable = server.maxRam - server.ramUsed;
if (server.hasAdminRights == false) {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Need root access to run script");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Need root access to run script");
return;
} else if (ramUsage > ramAvailable){
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("This machine does not have enough RAM to run this script with " +
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("This machine does not have enough RAM to run this script with " +
numThreads + " threads. Script requires " + ramUsage + "GB of RAM");
return;
} else {
//Able to run script
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Running script with " + numThreads + " thread(s) and args: " + Object(_utils_helpers_arrayToString__WEBPACK_IMPORTED_MODULE_26__["arrayToString"])(args) + ".");
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("May take a few seconds to start up the process...");
- var runningScriptObj = new _Script__WEBPACK_IMPORTED_MODULE_15__[/* RunningScript */ "b"](script, args);
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Running script with " + numThreads + " thread(s) and args: " + Object(_utils_helpers_arrayToString__WEBPACK_IMPORTED_MODULE_27__["arrayToString"])(args) + ".");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("May take a few seconds to start up the process...");
+ var runningScriptObj = new _Script__WEBPACK_IMPORTED_MODULE_16__[/* RunningScript */ "b"](script, args);
runningScriptObj.threads = numThreads;
server.runningScripts.push(runningScriptObj);
- Object(_NetscriptWorker__WEBPACK_IMPORTED_MODULE_12__[/* addWorkerScript */ "c"])(runningScriptObj, server);
+ Object(_NetscriptWorker__WEBPACK_IMPORTED_MODULE_13__[/* addWorkerScript */ "c"])(runningScriptObj, server);
return;
}
}
}
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("ERROR: No such script");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("ERROR: No such script");
},
runContract: async function(contractName) {
// There's already an opened contract
if (Terminal.contractOpen) {
- return Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("ERROR: There's already a Coding Contract in Progress");
+ return Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("ERROR: There's already a Coding Contract in Progress");
}
- const serv = _Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].getCurrentServer();
+ const serv = _Player__WEBPACK_IMPORTED_MODULE_14__[/* Player */ "a"].getCurrentServer();
const contract = serv.getContract(contractName);
if (contract == null) {
- return Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("ERROR: No such contract");
+ return Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("ERROR: No such contract");
}
Terminal.contractOpen = true;
@@ -33860,22 +33715,22 @@ let Terminal = {
switch (res) {
case _CodingContracts__WEBPACK_IMPORTED_MODULE_1__["CodingContractResult"].Success:
- var reward = _Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].gainCodingContractReward(contract.reward, contract.getDifficulty());
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])(`Contract SUCCESS - ${reward}`);
+ var reward = _Player__WEBPACK_IMPORTED_MODULE_14__[/* Player */ "a"].gainCodingContractReward(contract.reward, contract.getDifficulty());
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])(`Contract SUCCESS - ${reward}`);
serv.removeContract(contract);
break;
case _CodingContracts__WEBPACK_IMPORTED_MODULE_1__["CodingContractResult"].Failure:
++contract.tries;
if (contract.tries >= contract.getMaxNumTries()) {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Contract FAILED
- Contract is now self-destructing");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Contract FAILED
- Contract is now self-destructing");
serv.removeContract(contract);
} else {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])(`Contract FAILED
- ${contract.getMaxNumTries() - contract.tries} tries remaining`);
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])(`Contract FAILED
- ${contract.getMaxNumTries() - contract.tries} tries remaining`);
}
break;
case _CodingContracts__WEBPACK_IMPORTED_MODULE_1__["CodingContractResult"].Cancelled:
default:
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Contract cancelled");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])("Contract cancelled");
break;
}
Terminal.contractOpen = false;
@@ -34010,7 +33865,7 @@ exports.arrayToString = arrayToString;
/* harmony import */ var _utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_8__);
/* harmony import */ var _utils_helpers_isString__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../utils/helpers/isString */ 40);
/* harmony import */ var _utils_helpers_isString__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_isString__WEBPACK_IMPORTED_MODULE_9__);
-/* harmony import */ var jsplumb__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! jsplumb */ 249);
+/* harmony import */ var jsplumb__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! jsplumb */ 254);
/* harmony import */ var jsplumb__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(jsplumb__WEBPACK_IMPORTED_MODULE_10__);
@@ -35565,7 +35420,7 @@ HackingMission.prototype.finishMission = function(win) {
Object.defineProperty(exports, "__esModule", { value: true });
const Constants_1 = __webpack_require__(/*! ../Constants */ 1);
-const FactionInfo_1 = __webpack_require__(/*! ./FactionInfo */ 114);
+const FactionInfo_1 = __webpack_require__(/*! ./FactionInfo */ 115);
const JSONReviver_1 = __webpack_require__(/*! ../../utils/JSONReviver */ 13);
class Faction {
constructor(name = "") {
@@ -36481,25 +36336,25 @@ function initBitNodeMultipliers() {
/* unused harmony export CyclesPerEmployeeRaise */
/* unused harmony export EmployeeRaiseAmount */
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Corporation; });
-/* harmony import */ var _CorporationState__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./CorporationState */ 119);
+/* harmony import */ var _CorporationState__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./CorporationState */ 121);
/* harmony import */ var _CorporationState__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_CorporationState__WEBPACK_IMPORTED_MODULE_0__);
-/* harmony import */ var _data_CorporationUnlockUpgrades__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./data/CorporationUnlockUpgrades */ 106);
+/* harmony import */ var _data_CorporationUnlockUpgrades__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./data/CorporationUnlockUpgrades */ 107);
/* harmony import */ var _data_CorporationUnlockUpgrades__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_data_CorporationUnlockUpgrades__WEBPACK_IMPORTED_MODULE_1__);
-/* harmony import */ var _data_CorporationUpgrades__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./data/CorporationUpgrades */ 105);
+/* harmony import */ var _data_CorporationUpgrades__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./data/CorporationUpgrades */ 106);
/* harmony import */ var _data_CorporationUpgrades__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_data_CorporationUpgrades__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _EmployeePositions__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./EmployeePositions */ 26);
/* harmony import */ var _EmployeePositions__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_EmployeePositions__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _IndustryData__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./IndustryData */ 23);
/* harmony import */ var _IndustryData__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_IndustryData__WEBPACK_IMPORTED_MODULE_4__);
-/* harmony import */ var _IndustryUpgrades__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./IndustryUpgrades */ 104);
+/* harmony import */ var _IndustryUpgrades__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./IndustryUpgrades */ 105);
/* harmony import */ var _IndustryUpgrades__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_IndustryUpgrades__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _Material__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Material */ 63);
/* harmony import */ var _Material__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_Material__WEBPACK_IMPORTED_MODULE_6__);
-/* harmony import */ var _MaterialSizes__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./MaterialSizes */ 75);
+/* harmony import */ var _MaterialSizes__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./MaterialSizes */ 76);
/* harmony import */ var _MaterialSizes__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_MaterialSizes__WEBPACK_IMPORTED_MODULE_7__);
-/* harmony import */ var _Product__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Product */ 103);
+/* harmony import */ var _Product__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Product */ 104);
/* harmony import */ var _Product__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_Product__WEBPACK_IMPORTED_MODULE_8__);
-/* harmony import */ var _ResearchMap__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./ResearchMap */ 97);
+/* harmony import */ var _ResearchMap__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./ResearchMap */ 98);
/* harmony import */ var _ResearchMap__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_ResearchMap__WEBPACK_IMPORTED_MODULE_9__);
/* harmony import */ var _BitNodeMultipliers__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../BitNodeMultipliers */ 10);
/* harmony import */ var _BitNodeMultipliers__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_BitNodeMultipliers__WEBPACK_IMPORTED_MODULE_10__);
@@ -36516,7 +36371,7 @@ function initBitNodeMultipliers() {
/* harmony import */ var _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../ui/navigationTracking */ 12);
/* harmony import */ var _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_17__);
/* harmony import */ var _utils_DialogBox__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../../utils/DialogBox */ 9);
-/* harmony import */ var _utils_uiHelpers_clearSelector__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../../utils/uiHelpers/clearSelector */ 138);
+/* harmony import */ var _utils_uiHelpers_clearSelector__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../../utils/uiHelpers/clearSelector */ 140);
/* harmony import */ var _utils_uiHelpers_clearSelector__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_clearSelector__WEBPACK_IMPORTED_MODULE_19__);
/* harmony import */ var _utils_JSONReviver__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../../utils/JSONReviver */ 13);
/* harmony import */ var _utils_uiHelpers_appendLineBreaks__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../../utils/uiHelpers/appendLineBreaks */ 57);
@@ -41326,7 +41181,7 @@ exports.removeElement = removeElement;
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return createRandomIp; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return ipExists; });
/* harmony import */ var _src_Server__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../src/Server */ 11);
-/* harmony import */ var _helpers_getRandomByte__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers/getRandomByte */ 94);
+/* harmony import */ var _helpers_getRandomByte__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers/getRandomByte */ 95);
/* harmony import */ var _helpers_getRandomByte__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_helpers_getRandomByte__WEBPACK_IMPORTED_MODULE_1__);
@@ -42495,7 +42350,7 @@ function getHacknetNode(name) {
/* harmony import */ var _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ui/numeralFormat */ 4);
/* harmony import */ var _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _utils_DialogBox__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils/DialogBox */ 9);
-/* harmony import */ var _utils_uiHelpers_createAccordionElement__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils/uiHelpers/createAccordionElement */ 76);
+/* harmony import */ var _utils_uiHelpers_createAccordionElement__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils/uiHelpers/createAccordionElement */ 77);
/* harmony import */ var _utils_uiHelpers_createAccordionElement__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_createAccordionElement__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _utils_helpers_arrayToString__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils/helpers/arrayToString */ 54);
/* harmony import */ var _utils_helpers_arrayToString__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_arrayToString__WEBPACK_IMPORTED_MODULE_6__);
@@ -42506,7 +42361,7 @@ function getHacknetNode(name) {
/* harmony import */ var _utils_helpers_exceptionAlert__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../utils/helpers/exceptionAlert */ 44);
/* harmony import */ var _utils_uiHelpers_getElementById__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../utils/uiHelpers/getElementById */ 53);
/* harmony import */ var _utils_uiHelpers_getElementById__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_getElementById__WEBPACK_IMPORTED_MODULE_10__);
-/* harmony import */ var _utils_LogBox__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../utils/LogBox */ 78);
+/* harmony import */ var _utils_LogBox__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../utils/LogBox */ 79);
/* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../utils/StringHelperFunctions */ 3);
/* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_12__);
/* harmony import */ var _utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../utils/uiHelpers/removeChildrenFromElement */ 29);
@@ -43112,6 +42967,32 @@ function applySourceFile(srcFile) {
/***/ }),
/* 71 */
+/*!*************************************!*\
+ !*** ./src/DarkWeb/DarkWebItems.ts ***!
+ \*************************************/
+/*! no static exports found */
+/*! exports used: DarkWebItems */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", { value: true });
+const DarkWebItem_1 = __webpack_require__(/*! ./DarkWebItem */ 195);
+const Programs_1 = __webpack_require__(/*! ../Programs/Programs */ 24);
+exports.DarkWebItems = {
+ BruteSSHProgram: new DarkWebItem_1.DarkWebItem(Programs_1.Programs.BruteSSHProgram.name, 500000, "Opens up SSH Ports"),
+ FTPCrackProgram: new DarkWebItem_1.DarkWebItem(Programs_1.Programs.FTPCrackProgram.name, 1500000, "Opens up FTP Ports"),
+ RelaySMTPProgram: new DarkWebItem_1.DarkWebItem(Programs_1.Programs.RelaySMTPProgram.name, 5000000, "Opens up SMTP Ports"),
+ HTTPWormProgram: new DarkWebItem_1.DarkWebItem(Programs_1.Programs.HTTPWormProgram.name, 30000000, "Opens up HTTP Ports"),
+ SQLInjectProgram: new DarkWebItem_1.DarkWebItem(Programs_1.Programs.SQLInjectProgram.name, 250000000, "Opens up SQL Ports"),
+ DeepscanV1: new DarkWebItem_1.DarkWebItem(Programs_1.Programs.DeepscanV1.name, 500000, "Enables 'scan-analyze' with a depth up to 5"),
+ DeepscanV2: new DarkWebItem_1.DarkWebItem(Programs_1.Programs.DeepscanV2.name, 25000000, "Enables 'scan-analyze' with a depth up to 10"),
+ AutolinkProgram: new DarkWebItem_1.DarkWebItem(Programs_1.Programs.AutoLink.name, 1000000, "Enables direct connect via 'scan-analyze'"),
+};
+
+
+/***/ }),
+/* 72 */
/*!******************************!*\
!*** ./src/NetscriptPort.js ***!
\******************************/
@@ -43177,7 +43058,7 @@ NetscriptPort.prototype.clear = function() {
/***/ }),
-/* 72 */
+/* 73 */
/*!*****************************!*\
!*** ./src/SettingEnums.ts ***!
\*****************************/
@@ -43208,7 +43089,7 @@ var PurchaseAugmentationsOrderSetting;
/***/ }),
-/* 73 */
+/* 74 */
/*!********************************!*\
!*** ./src/Company/Company.ts ***!
\********************************/
@@ -43306,7 +43187,7 @@ JSONReviver_1.Reviver.constructors.Company = Company;
/***/ }),
-/* 74 */
+/* 75 */
/*!***************************!*\
!*** ./src/SaveObject.js ***!
\***************************/
@@ -43348,7 +43229,7 @@ JSONReviver_1.Reviver.constructors.Company = Company;
/* harmony import */ var _utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_21__);
/* harmony import */ var _utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../utils/uiHelpers/createPopup */ 37);
/* harmony import */ var _utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_22___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_22__);
-/* harmony import */ var _ui_createStatusText__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./ui/createStatusText */ 101);
+/* harmony import */ var _ui_createStatusText__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./ui/createStatusText */ 102);
/* harmony import */ var _ui_createStatusText__WEBPACK_IMPORTED_MODULE_23___default = /*#__PURE__*/__webpack_require__.n(_ui_createStatusText__WEBPACK_IMPORTED_MODULE_23__);
/* harmony import */ var _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./ui/numeralFormat */ 4);
/* harmony import */ var _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_24___default = /*#__PURE__*/__webpack_require__.n(_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_24__);
@@ -43961,7 +43842,7 @@ function openImportFileHandler(evt) {
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! jquery */ 64)))
/***/ }),
-/* 75 */
+/* 76 */
/*!******************************************!*\
!*** ./src/Corporation/MaterialSizes.ts ***!
\******************************************/
@@ -43989,7 +43870,7 @@ exports.MaterialSizes = {
/***/ }),
-/* 76 */
+/* 77 */
/*!***************************************************!*\
!*** ./utils/uiHelpers/createAccordionElement.ts ***!
\***************************************************/
@@ -44034,7 +43915,7 @@ exports.createAccordionElement = createAccordionElement;
/***/ }),
-/* 77 */
+/* 78 */
/*!**************************************!*\
!*** ./utils/helpers/clearObject.ts ***!
\**************************************/
@@ -44063,7 +43944,7 @@ exports.clearObject = clearObject;
/***/ }),
-/* 78 */
+/* 79 */
/*!*************************!*\
!*** ./utils/LogBox.js ***!
\*************************/
@@ -44152,146 +44033,6 @@ function logBoxUpdateText() {
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! jquery */ 64)))
-/***/ }),
-/* 79 */
-/*!************************!*\
- !*** ./src/DarkWeb.js ***!
- \************************/
-/*! exports provided: checkIfConnectedToDarkweb, executeDarkwebTerminalCommand, DarkWebItems */
-/*! exports used: DarkWebItems, checkIfConnectedToDarkweb, executeDarkwebTerminalCommand */
-/***/ (function(module, __webpack_exports__, __webpack_require__) {
-
-"use strict";
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return checkIfConnectedToDarkweb; });
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return executeDarkwebTerminalCommand; });
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return DarkWebItems; });
-/* harmony import */ var _CreateProgram__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./CreateProgram */ 24);
-/* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Player */ 0);
-/* harmony import */ var _SpecialServerIps__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./SpecialServerIps */ 32);
-/* harmony import */ var _ui_postToTerminal__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ui/postToTerminal */ 7);
-/* harmony import */ var _ui_postToTerminal__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_3__);
-/* harmony import */ var _utils_helpers_isValidIPAddress__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils/helpers/isValidIPAddress */ 88);
-/* harmony import */ var _utils_helpers_isValidIPAddress__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_isValidIPAddress__WEBPACK_IMPORTED_MODULE_4__);
-/* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils/StringHelperFunctions */ 3);
-/* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_5__);
-
-
-
-
-
-
-
-
-
-/* DarkWeb.js */
-//Posts a "help" message if connected to DarkWeb
-function checkIfConnectedToDarkweb() {
- if (_SpecialServerIps__WEBPACK_IMPORTED_MODULE_2__[/* SpecialServerIps */ "a"].hasOwnProperty("Darkweb Server")) {
- var darkwebIp = _SpecialServerIps__WEBPACK_IMPORTED_MODULE_2__[/* SpecialServerIps */ "a"]["Darkweb Server"];
- if (!Object(_utils_helpers_isValidIPAddress__WEBPACK_IMPORTED_MODULE_4__["isValidIPAddress"])(darkwebIp)) {return;}
- if (darkwebIp == _Player__WEBPACK_IMPORTED_MODULE_1__[/* Player */ "a"].getCurrentServer().ip) {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_3__["post"])("You are now connected to the dark web. From the dark web you can purchase illegal items. " +
- "Use the 'buy -l' command to display a list of all the items you can buy. Use 'buy [item-name] " +
- "to purchase an item");
- }
- }
-}
-
-//Handler for dark web commands. The terminal's executeCommand() function will pass
-//dark web-specific commands into this. It will pass in the raw split command array
-//rather than the command string
-function executeDarkwebTerminalCommand(commandArray) {
- if (commandArray.length == 0) {return;}
- switch (commandArray[0]) {
- case "buy":
- if (commandArray.length != 2) {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_3__["post"])("Incorrect number of arguments. Usage: ");
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_3__["post"])("buy -l");
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_3__["post"])("buy [item name]");
- return;
- }
- var arg = commandArray[1];
- if (arg == "-l") {
- listAllDarkwebItems();
- } else {
- buyDarkwebItem(arg);
- }
- break;
- default:
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_3__["post"])("Command not found");
- break;
- }
-}
-
-function listAllDarkwebItems() {
- for(const key in DarkWebItems) {
- const item = DarkWebItems[key];
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_3__["post"])(item.toString());
- }
-}
-
-function buyDarkwebItem(itemName) {
- itemName = itemName.toLowerCase();
-
- // find the program that matches, if any
- let item = null;
- for(const key in DarkWebItems) {
- const i = DarkWebItems[key];
- if(i.program.toLowerCase() == itemName) {
- item = i;
- }
- }
-
- // return if invalid
- if(item === null) {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_3__["post"])("Unrecognized item: "+itemName);
- return;
- }
-
- // return if the player already has it.
- if(_Player__WEBPACK_IMPORTED_MODULE_1__[/* Player */ "a"].hasProgram(item.program)) {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_3__["post"])('You already have the '+item.program+' program');
- return;
- }
-
- // return if the player doesn't have enough money
- if(_Player__WEBPACK_IMPORTED_MODULE_1__[/* Player */ "a"].money.lt(item.price)) {
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_3__["post"])("Not enough money to purchase " + item.program);
- return;
- }
-
- // buy and push
- _Player__WEBPACK_IMPORTED_MODULE_1__[/* Player */ "a"].loseMoney(item.price);
- _Player__WEBPACK_IMPORTED_MODULE_1__[/* Player */ "a"].getHomeComputer().programs.push(item.program);
- Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_3__["post"])('You have purchased the '+item.program+' program. The new program can be found on your home computer.');
-}
-
-function DarkWebItem(program, price, description) {
- this.program = program;
- this.price = price;
- this.description = description;
-}
-
-// formats the item for the terminal (eg. "BruteSSH.exe - $500,000 - Opens up SSH Ports")
-DarkWebItem.prototype.toString = function() {
- return [this.program, "$"+Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_5__["formatNumber"])(this.price), this.description].join(' - ');
-}
-
-const DarkWebItems = {
- BruteSSHProgram: new DarkWebItem(_CreateProgram__WEBPACK_IMPORTED_MODULE_0__[/* Programs */ "a"].BruteSSHProgram.name, 500000, "Opens up SSH Ports"),
- FTPCrackProgram: new DarkWebItem(_CreateProgram__WEBPACK_IMPORTED_MODULE_0__[/* Programs */ "a"].FTPCrackProgram.name, 1500000, "Opens up FTP Ports"),
- RelaySMTPProgram: new DarkWebItem(_CreateProgram__WEBPACK_IMPORTED_MODULE_0__[/* Programs */ "a"].RelaySMTPProgram.name, 5000000, "Opens up SMTP Ports"),
- HTTPWormProgram: new DarkWebItem(_CreateProgram__WEBPACK_IMPORTED_MODULE_0__[/* Programs */ "a"].HTTPWormProgram.name, 30000000, "Opens up HTTP Ports"),
- SQLInjectProgram: new DarkWebItem(_CreateProgram__WEBPACK_IMPORTED_MODULE_0__[/* Programs */ "a"].SQLInjectProgram.name, 250000000, "Opens up SQL Ports"),
- DeepscanV1: new DarkWebItem(_CreateProgram__WEBPACK_IMPORTED_MODULE_0__[/* Programs */ "a"].DeepscanV1.name, 500000, "Enables 'scan-analyze' with a depth up to 5"),
- DeepscanV2: new DarkWebItem(_CreateProgram__WEBPACK_IMPORTED_MODULE_0__[/* Programs */ "a"].DeepscanV2.name, 25000000, "Enables 'scan-analyze' with a depth up to 10"),
- AutolinkProgram: new DarkWebItem(_CreateProgram__WEBPACK_IMPORTED_MODULE_0__[/* Programs */ "a"].AutoLink.name, 1000000, "Enables direct connect via 'scan-analyze'"),
-};
-
-
-
-
-
/***/ }),
/* 80 */,
/* 81 */
@@ -44972,10 +44713,11 @@ exports.CompanyPosition = CompanyPosition;
/* harmony import */ var _Augmentations__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Augmentations */ 21);
/* harmony import */ var _BitNode__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./BitNode */ 59);
/* harmony import */ var _Bladeburner__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Bladeburner */ 31);
-/* harmony import */ var _CinematicText__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./CinematicText */ 99);
+/* harmony import */ var _CinematicText__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./CinematicText */ 100);
/* harmony import */ var _Company_Companies__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Company/Companies */ 18);
/* harmony import */ var _Company_Companies__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_Company_Companies__WEBPACK_IMPORTED_MODULE_5__);
-/* harmony import */ var _CreateProgram__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./CreateProgram */ 24);
+/* harmony import */ var _Programs_Programs__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Programs/Programs */ 24);
+/* harmony import */ var _Programs_Programs__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_Programs_Programs__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var _engine__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./engine */ 8);
/* harmony import */ var _Faction_Faction__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Faction/Faction */ 56);
/* harmony import */ var _Faction_Faction__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_Faction_Faction__WEBPACK_IMPORTED_MODULE_8__);
@@ -45054,13 +44796,13 @@ function prestigeAugmentation() {
if (Object(_Augmentations__WEBPACK_IMPORTED_MODULE_1__[/* augmentationExists */ "f"])(_Augmentations__WEBPACK_IMPORTED_MODULE_1__[/* AugmentationNames */ "b"].Neurolink) &&
_Augmentations__WEBPACK_IMPORTED_MODULE_1__[/* Augmentations */ "c"][_Augmentations__WEBPACK_IMPORTED_MODULE_1__[/* AugmentationNames */ "b"].Neurolink].owned) {
- homeComp.programs.push(_CreateProgram__WEBPACK_IMPORTED_MODULE_6__[/* Programs */ "a"].FTPCrackProgram.name);
- homeComp.programs.push(_CreateProgram__WEBPACK_IMPORTED_MODULE_6__[/* Programs */ "a"].RelaySMTPProgram.name);
+ homeComp.programs.push(_Programs_Programs__WEBPACK_IMPORTED_MODULE_6__["Programs"].FTPCrackProgram.name);
+ homeComp.programs.push(_Programs_Programs__WEBPACK_IMPORTED_MODULE_6__["Programs"].RelaySMTPProgram.name);
}
if (Object(_Augmentations__WEBPACK_IMPORTED_MODULE_1__[/* augmentationExists */ "f"])(_Augmentations__WEBPACK_IMPORTED_MODULE_1__[/* AugmentationNames */ "b"].CashRoot) &&
_Augmentations__WEBPACK_IMPORTED_MODULE_1__[/* Augmentations */ "c"][_Augmentations__WEBPACK_IMPORTED_MODULE_1__[/* AugmentationNames */ "b"].CashRoot].owned) {
_Player__WEBPACK_IMPORTED_MODULE_16__[/* Player */ "a"].setMoney(new decimal_js__WEBPACK_IMPORTED_MODULE_21__[/* default */ "a"](1000000));
- homeComp.programs.push(_CreateProgram__WEBPACK_IMPORTED_MODULE_6__[/* Programs */ "a"].BruteSSHProgram.name);
+ homeComp.programs.push(_Programs_Programs__WEBPACK_IMPORTED_MODULE_6__["Programs"].BruteSSHProgram.name);
}
//Re-create foreign servers
@@ -45459,13 +45201,13 @@ exports.createPopupCloseButton = createPopupCloseButton;
/* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_Constants__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var _Crimes__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Crimes */ 38);
/* harmony import */ var _engine__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./engine */ 8);
-/* harmony import */ var _Infiltration__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Infiltration */ 137);
+/* harmony import */ var _Infiltration__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Infiltration */ 139);
/* harmony import */ var _NetscriptFunctions__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./NetscriptFunctions */ 43);
/* harmony import */ var _Locations__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./Locations */ 5);
/* harmony import */ var _Locations__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_Locations__WEBPACK_IMPORTED_MODULE_11__);
/* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./Player */ 0);
/* harmony import */ var _Server__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./Server */ 11);
-/* harmony import */ var _ServerPurchases__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./ServerPurchases */ 118);
+/* harmony import */ var _ServerPurchases__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./ServerPurchases */ 120);
/* harmony import */ var _Settings__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./Settings */ 19);
/* harmony import */ var _Settings__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(_Settings__WEBPACK_IMPORTED_MODULE_15__);
/* harmony import */ var _SpecialServerIps__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./SpecialServerIps */ 32);
@@ -47800,6 +47542,102 @@ exports.getJobRequirementText = getJobRequirementText;
/***/ }),
/* 94 */
+/*!****************************************!*\
+ !*** ./src/Programs/ProgramHelpers.js ***!
+ \****************************************/
+/*! exports provided: displayCreateProgramContent, getNumAvailableCreateProgram, initCreateProgramButtons */
+/*! exports used: displayCreateProgramContent, getNumAvailableCreateProgram, initCreateProgramButtons */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return displayCreateProgramContent; });
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return getNumAvailableCreateProgram; });
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return initCreateProgramButtons; });
+/* harmony import */ var _Programs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Programs */ 24);
+/* harmony import */ var _Programs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_Programs__WEBPACK_IMPORTED_MODULE_0__);
+/* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Constants */ 1);
+/* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_Constants__WEBPACK_IMPORTED_MODULE_1__);
+/* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Player */ 0);
+/* harmony import */ var _utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../utils/uiHelpers/createElement */ 2);
+/* harmony import */ var _utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_3__);
+
+
+
+
+
+
+// this has the same key as 'Programs', not program names
+const aLinks = {};
+
+function displayCreateProgramContent() {
+ for(const key in aLinks) {
+ const p = _Programs__WEBPACK_IMPORTED_MODULE_0__["Programs"][key]
+ aLinks[key].style.display = "none";
+ if(!_Player__WEBPACK_IMPORTED_MODULE_2__[/* Player */ "a"].hasProgram(p.name) && p.create.req(_Player__WEBPACK_IMPORTED_MODULE_2__[/* Player */ "a"])){
+ aLinks[key].style.display = "inline-block";
+ }
+ }
+}
+
+//Returns the number of programs that are currently available to be created
+function getNumAvailableCreateProgram() {
+ var count = 0;
+ for (const key in _Programs__WEBPACK_IMPORTED_MODULE_0__["Programs"]) {
+ // Non-creatable program
+ if (_Programs__WEBPACK_IMPORTED_MODULE_0__["Programs"][key].create == null) {
+ continue;
+ }
+
+ // Already has program
+ if (_Player__WEBPACK_IMPORTED_MODULE_2__[/* Player */ "a"].hasProgram(_Programs__WEBPACK_IMPORTED_MODULE_0__["Programs"][key].name)) {
+ continue;
+ }
+
+ // Does not meet requirements
+ if (!_Programs__WEBPACK_IMPORTED_MODULE_0__["Programs"][key].create.req(_Player__WEBPACK_IMPORTED_MODULE_2__[/* Player */ "a"])) {
+ continue;
+ }
+
+ count++;
+ }
+
+ if (_Player__WEBPACK_IMPORTED_MODULE_2__[/* Player */ "a"].firstProgramAvailable === false && count > 0) {
+ _Player__WEBPACK_IMPORTED_MODULE_2__[/* Player */ "a"].firstProgramAvailable = true;
+ document.getElementById("create-program-tab").style.display = "list-item";
+ document.getElementById("hacking-menu-header").click();
+ document.getElementById("hacking-menu-header").click();
+ }
+ return count;
+}
+
+function initCreateProgramButtons() {
+ const createProgramList = document.getElementById("create-program-list");
+ for (const key in _Programs__WEBPACK_IMPORTED_MODULE_0__["Programs"]) {
+ if(_Programs__WEBPACK_IMPORTED_MODULE_0__["Programs"][key].create === null) {
+ continue;
+ }
+ const elem = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_3__["createElement"])("a", {
+ class: "a-link-button", id: _Programs__WEBPACK_IMPORTED_MODULE_0__["Programs"][key].htmlID(), innerText: _Programs__WEBPACK_IMPORTED_MODULE_0__["Programs"][key].name,
+ tooltip: _Programs__WEBPACK_IMPORTED_MODULE_0__["Programs"][key].create.tooltip,
+ });
+ aLinks[key] = elem;
+ createProgramList.appendChild(elem);
+ }
+
+ for (const key in aLinks) {
+ const p = _Programs__WEBPACK_IMPORTED_MODULE_0__["Programs"][key]
+ aLinks[key].addEventListener("click", function() {
+ _Player__WEBPACK_IMPORTED_MODULE_2__[/* Player */ "a"].startCreateProgramWork(p.name, p.create.time, p.create.level);
+ return false;
+ });
+ }
+}
+
+
+
+
+/***/ }),
+/* 95 */
/*!****************************************!*\
!*** ./utils/helpers/getRandomByte.ts ***!
\****************************************/
@@ -47825,9 +47663,9 @@ exports.getRandomByte = getRandomByte;
/***/ }),
-/* 95 */,
/* 96 */,
-/* 97 */
+/* 97 */,
+/* 98 */
/*!****************************************!*\
!*** ./src/Corporation/ResearchMap.ts ***!
\****************************************/
@@ -47840,8 +47678,8 @@ exports.getRandomByte = getRandomByte;
Object.defineProperty(exports, "__esModule", { value: true });
// The Research Map is an object that holds all Corporation Research objects
// as values. They are identified by their names
-const Research_1 = __webpack_require__(/*! ./Research */ 203);
-const ResearchMetadata_1 = __webpack_require__(/*! ./data/ResearchMetadata */ 202);
+const Research_1 = __webpack_require__(/*! ./Research */ 208);
+const ResearchMetadata_1 = __webpack_require__(/*! ./data/ResearchMetadata */ 207);
exports.ResearchMap = {};
function addResearch(p) {
if (exports.ResearchMap[p.name] != null) {
@@ -47855,7 +47693,7 @@ for (const metadata of ResearchMetadata_1.researchMetadata) {
/***/ }),
-/* 98 */
+/* 99 */
/*!****************************************!*\
!*** ./src/CodingContractGenerator.js ***!
\****************************************/
@@ -48032,7 +47870,7 @@ function getRandomFilename(server, reward) {
/***/ }),
-/* 99 */
+/* 100 */
/*!******************************!*\
!*** ./src/CinematicText.js ***!
\******************************/
@@ -48153,7 +47991,7 @@ function cinematicTextEnd() {
/***/ }),
-/* 100 */
+/* 101 */
/*!***********************************************!*\
!*** ./src/Company/GetNextCompanyPosition.ts ***!
\***********************************************/
@@ -48179,7 +48017,7 @@ exports.getNextCompanyPosition = getNextCompanyPosition;
/***/ }),
-/* 101 */
+/* 102 */
/*!************************************!*\
!*** ./src/ui/createStatusText.ts ***!
\************************************/
@@ -48216,7 +48054,7 @@ exports.createStatusText = createStatusText;
/***/ }),
-/* 102 */
+/* 103 */
/*!*************************!*\
!*** ./src/HelpText.ts ***!
\*************************/
@@ -48457,7 +48295,7 @@ exports.HelpTexts = {
/***/ }),
-/* 103 */
+/* 104 */
/*!************************************!*\
!*** ./src/Corporation/Product.ts ***!
\************************************/
@@ -48469,9 +48307,9 @@ exports.HelpTexts = {
Object.defineProperty(exports, "__esModule", { value: true });
const EmployeePositions_1 = __webpack_require__(/*! ./EmployeePositions */ 26);
-const MaterialSizes_1 = __webpack_require__(/*! ./MaterialSizes */ 75);
-const ProductRatingWeights_1 = __webpack_require__(/*! ./ProductRatingWeights */ 200);
-const Cities_1 = __webpack_require__(/*! ../Locations/Cities */ 199);
+const MaterialSizes_1 = __webpack_require__(/*! ./MaterialSizes */ 76);
+const ProductRatingWeights_1 = __webpack_require__(/*! ./ProductRatingWeights */ 205);
+const Cities_1 = __webpack_require__(/*! ../Locations/Cities */ 204);
const JSONReviver_1 = __webpack_require__(/*! ../../utils/JSONReviver */ 13);
const getRandomInt_1 = __webpack_require__(/*! ../../utils/helpers/getRandomInt */ 15);
class Product {
@@ -48664,7 +48502,7 @@ JSONReviver_1.Reviver.constructors.Product = Product;
/***/ }),
-/* 104 */
+/* 105 */
/*!*********************************************!*\
!*** ./src/Corporation/IndustryUpgrades.ts ***!
\*********************************************/
@@ -48691,7 +48529,7 @@ exports.IndustryUpgrades = {
/***/ }),
-/* 105 */
+/* 106 */
/*!*****************************************************!*\
!*** ./src/Corporation/data/CorporationUpgrades.ts ***!
\*****************************************************/
@@ -48759,7 +48597,7 @@ exports.CorporationUpgrades = {
/***/ }),
-/* 106 */
+/* 107 */
/*!***********************************************************!*\
!*** ./src/Corporation/data/CorporationUnlockUpgrades.ts ***!
\***********************************************************/
@@ -48805,14 +48643,14 @@ exports.CorporationUnlockUpgrades = {
/***/ }),
-/* 107 */,
/* 108 */,
/* 109 */,
/* 110 */,
/* 111 */,
/* 112 */,
/* 113 */,
-/* 114 */
+/* 114 */,
+/* 115 */
/*!************************************!*\
!*** ./src/Faction/FactionInfo.ts ***!
\************************************/
@@ -48987,7 +48825,7 @@ exports.FactionInfos = {
/***/ }),
-/* 115 */
+/* 116 */
/*!*************************************!*\
!*** ./src/NetscriptEnvironment.js ***!
\*************************************/
@@ -48999,7 +48837,7 @@ exports.FactionInfos = {
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Environment; });
/* harmony import */ var _HacknetNode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./HacknetNode */ 67);
/* harmony import */ var _NetscriptFunctions__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./NetscriptFunctions */ 43);
-/* harmony import */ var _NetscriptPort__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./NetscriptPort */ 71);
+/* harmony import */ var _NetscriptPort__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./NetscriptPort */ 72);
@@ -49099,7 +48937,7 @@ Environment.prototype = {
/***/ }),
-/* 116 */
+/* 117 */
/*!*************************************!*\
!*** ./src/NetscriptJSEvaluator.js ***!
\*************************************/
@@ -49223,7 +49061,7 @@ function _getScriptUrls(script, scripts, seen) {
/***/ }),
-/* 117 */
+/* 118 */
/*!************************!*\
!*** ./src/DevMenu.js ***!
\************************/
@@ -49235,8 +49073,9 @@ function _getScriptUrls(script, scripts, seen) {
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return createDevMenu; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return closeDevMenu; });
/* harmony import */ var _Augmentations__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Augmentations */ 21);
-/* harmony import */ var _CodingContractGenerator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CodingContractGenerator */ 98);
-/* harmony import */ var _CreateProgram__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./CreateProgram */ 24);
+/* harmony import */ var _CodingContractGenerator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CodingContractGenerator */ 99);
+/* harmony import */ var _Programs_Programs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Programs/Programs */ 24);
+/* harmony import */ var _Programs_Programs__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_Programs_Programs__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _Faction_Factions__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Faction/Factions */ 14);
/* harmony import */ var _Faction_Factions__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_Faction_Factions__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Player */ 0);
@@ -49502,8 +49341,8 @@ function createDevMenu() {
class: "dropdown",
margin: "5px",
});
- for (const i in _CreateProgram__WEBPACK_IMPORTED_MODULE_2__[/* Programs */ "a"]) {
- const progName = _CreateProgram__WEBPACK_IMPORTED_MODULE_2__[/* Programs */ "a"][i].name;
+ for (const i in _Programs_Programs__WEBPACK_IMPORTED_MODULE_2__["Programs"]) {
+ const progName = _Programs_Programs__WEBPACK_IMPORTED_MODULE_2__["Programs"][i].name;
programsAddDropdown.options[programsAddDropdown.options.length] = new Option(progName, progName);
}
@@ -49803,7 +49642,121 @@ function closeDevMenu() {
/***/ }),
-/* 118 */
+/* 119 */
+/*!********************************!*\
+ !*** ./src/DarkWeb/DarkWeb.js ***!
+ \********************************/
+/*! exports provided: checkIfConnectedToDarkweb, executeDarkwebTerminalCommand */
+/*! exports used: checkIfConnectedToDarkweb, executeDarkwebTerminalCommand */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return checkIfConnectedToDarkweb; });
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return executeDarkwebTerminalCommand; });
+/* harmony import */ var _DarkWebItems__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./DarkWebItems */ 71);
+/* harmony import */ var _DarkWebItems__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_DarkWebItems__WEBPACK_IMPORTED_MODULE_0__);
+/* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Player */ 0);
+/* harmony import */ var _SpecialServerIps__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../SpecialServerIps */ 32);
+/* harmony import */ var _ui_postToTerminal__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../ui/postToTerminal */ 7);
+/* harmony import */ var _ui_postToTerminal__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_3__);
+/* harmony import */ var _utils_helpers_isValidIPAddress__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../utils/helpers/isValidIPAddress */ 88);
+/* harmony import */ var _utils_helpers_isValidIPAddress__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_isValidIPAddress__WEBPACK_IMPORTED_MODULE_4__);
+/* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../utils/StringHelperFunctions */ 3);
+/* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_5__);
+
+
+
+
+
+
+
+
+
+//Posts a "help" message if connected to DarkWeb
+function checkIfConnectedToDarkweb() {
+ if (_SpecialServerIps__WEBPACK_IMPORTED_MODULE_2__[/* SpecialServerIps */ "a"].hasOwnProperty("Darkweb Server")) {
+ var darkwebIp = _SpecialServerIps__WEBPACK_IMPORTED_MODULE_2__[/* SpecialServerIps */ "a"]["Darkweb Server"];
+ if (!Object(_utils_helpers_isValidIPAddress__WEBPACK_IMPORTED_MODULE_4__["isValidIPAddress"])(darkwebIp)) {return;}
+ if (darkwebIp == _Player__WEBPACK_IMPORTED_MODULE_1__[/* Player */ "a"].getCurrentServer().ip) {
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_3__["post"])("You are now connected to the dark web. From the dark web you can purchase illegal items. " +
+ "Use the 'buy -l' command to display a list of all the items you can buy. Use 'buy [item-name] " +
+ "to purchase an item");
+ }
+ }
+}
+
+//Handler for dark web commands. The terminal's executeCommand() function will pass
+//dark web-specific commands into this. It will pass in the raw split command array
+//rather than the command string
+function executeDarkwebTerminalCommand(commandArray) {
+ if (commandArray.length == 0) {return;}
+ switch (commandArray[0]) {
+ case "buy":
+ if (commandArray.length != 2) {
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_3__["post"])("Incorrect number of arguments. Usage: ");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_3__["post"])("buy -l");
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_3__["post"])("buy [item name]");
+ return;
+ }
+ var arg = commandArray[1];
+ if (arg == "-l") {
+ listAllDarkwebItems();
+ } else {
+ buyDarkwebItem(arg);
+ }
+ break;
+ default:
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_3__["post"])("Command not found");
+ break;
+ }
+}
+
+function listAllDarkwebItems() {
+ for(const key in _DarkWebItems__WEBPACK_IMPORTED_MODULE_0__["DarkWebItems"]) {
+ const item = _DarkWebItems__WEBPACK_IMPORTED_MODULE_0__["DarkWebItems"][key];
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_3__["post"])(item.toString());
+ }
+}
+
+function buyDarkwebItem(itemName) {
+ itemName = itemName.toLowerCase();
+
+ // find the program that matches, if any
+ let item = null;
+ for(const key in _DarkWebItems__WEBPACK_IMPORTED_MODULE_0__["DarkWebItems"]) {
+ const i = _DarkWebItems__WEBPACK_IMPORTED_MODULE_0__["DarkWebItems"][key];
+ if(i.program.toLowerCase() == itemName) {
+ item = i;
+ }
+ }
+
+ // return if invalid
+ if(item === null) {
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_3__["post"])("Unrecognized item: "+itemName);
+ return;
+ }
+
+ // return if the player already has it.
+ if(_Player__WEBPACK_IMPORTED_MODULE_1__[/* Player */ "a"].hasProgram(item.program)) {
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_3__["post"])('You already have the '+item.program+' program');
+ return;
+ }
+
+ // return if the player doesn't have enough money
+ if(_Player__WEBPACK_IMPORTED_MODULE_1__[/* Player */ "a"].money.lt(item.price)) {
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_3__["post"])("Not enough money to purchase " + item.program);
+ return;
+ }
+
+ // buy and push
+ _Player__WEBPACK_IMPORTED_MODULE_1__[/* Player */ "a"].loseMoney(item.price);
+ _Player__WEBPACK_IMPORTED_MODULE_1__[/* Player */ "a"].getHomeComputer().programs.push(item.program);
+ Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_3__["post"])('You have purchased the ' + item.program + ' program. The new program can be found on your home computer.');
+}
+
+
+/***/ }),
+/* 120 */
/*!********************************!*\
!*** ./src/ServerPurchases.js ***!
\********************************/
@@ -49894,7 +49847,7 @@ function purchaseRamForHomeComputer(cost) {
/***/ }),
-/* 119 */
+/* 121 */
/*!*********************************************!*\
!*** ./src/Corporation/CorporationState.ts ***!
\*********************************************/
@@ -49944,7 +49897,7 @@ JSONReviver_1.Reviver.constructors.CorporationState = CorporationState;
/***/ }),
-/* 120 */
+/* 122 */
/*!************************************************!*\
!*** ./utils/uiHelpers/removeLoadingScreen.ts ***!
\************************************************/
@@ -49969,14 +49922,14 @@ exports.removeLoadingScreen = removeLoadingScreen;
/***/ }),
-/* 121 */,
-/* 122 */,
/* 123 */,
/* 124 */,
/* 125 */,
/* 126 */,
/* 127 */,
-/* 128 */
+/* 128 */,
+/* 129 */,
+/* 130 */
/*!*************************************!*\
!*** ./src/ui/setSettingsLabels.js ***!
\*************************************/
@@ -50102,7 +50055,7 @@ function setSettingsLabels() {
/***/ }),
-/* 129 */
+/* 131 */
/*!**********************************!*\
!*** ./src/CharacterOverview.js ***!
\**********************************/
@@ -50177,7 +50130,7 @@ CharacterOverview.prototype.update = function() {
/***/ }),
-/* 130 */
+/* 132 */
/*!******************************!*\
!*** ./src/JSInterpreter.js ***!
\******************************/
@@ -53980,7 +53933,7 @@ Interpreter.prototype['createPrimitive'] = function(x) {return x;};
/***/ }),
-/* 131 */
+/* 133 */
/*!***************************************!*\
!*** ./utils/helpers/isPowerOfTwo.ts ***!
\***************************************/
@@ -54010,7 +53963,7 @@ exports.isPowerOfTwo = isPowerOfTwo;
/***/ }),
-/* 132 */
+/* 134 */
/*!****************************************!*\
!*** ./src/data/gangmemberupgrades.ts ***!
\****************************************/
@@ -54222,7 +54175,7 @@ exports.gangMemberUpgradesMetadata = [
/***/ }),
-/* 133 */
+/* 135 */
/*!*************************************!*\
!*** ./src/data/gangmembertasks.ts ***!
\*************************************/
@@ -54487,7 +54440,7 @@ exports.gangMemberTasksMetadata = [
/***/ }),
-/* 134 */
+/* 136 */
/*!***************************************!*\
!*** ./utils/FactionInvitationBox.js ***!
\***************************************/
@@ -54571,7 +54524,7 @@ function factionInvitationBoxCreate(faction) {
/***/ }),
-/* 135 */
+/* 137 */
/*!*****************************!*\
!*** ./src/data/servers.ts ***!
\*****************************/
@@ -56044,7 +55997,7 @@ exports.serverMetadata = [
/***/ }),
-/* 136 */
+/* 138 */
/*!**********************************!*\
!*** ./utils/InfiltrationBox.js ***!
\**********************************/
@@ -56191,7 +56144,7 @@ function infiltrationBoxCreate(inst) {
/***/ }),
-/* 137 */
+/* 139 */
/*!*****************************!*\
!*** ./src/Infiltration.js ***!
\*****************************/
@@ -56212,7 +56165,7 @@ function infiltrationBoxCreate(inst) {
/* harmony import */ var _utils_uiHelpers_clearEventListeners__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_clearEventListeners__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils/helpers/getRandomInt */ 15);
/* harmony import */ var _utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_6__);
-/* harmony import */ var _utils_InfiltrationBox__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../utils/InfiltrationBox */ 136);
+/* harmony import */ var _utils_InfiltrationBox__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../utils/InfiltrationBox */ 138);
/* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../utils/StringHelperFunctions */ 3);
/* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_8__);
@@ -57060,7 +57013,7 @@ function getInfiltrationEscapeChance(inst) {
/***/ }),
-/* 138 */
+/* 140 */
/*!******************************************!*\
!*** ./utils/uiHelpers/clearSelector.ts ***!
\******************************************/
@@ -57084,8 +57037,6 @@ exports.clearSelector = clearSelector;
/***/ }),
-/* 139 */,
-/* 140 */,
/* 141 */,
/* 142 */,
/* 143 */,
@@ -57099,7 +57050,9 @@ exports.clearSelector = clearSelector;
/* 151 */,
/* 152 */,
/* 153 */,
-/* 154 */
+/* 154 */,
+/* 155 */,
+/* 156 */
/*!************************!*\
!*** ./css/treant.css ***!
\************************/
@@ -57109,8 +57062,8 @@ exports.clearSelector = clearSelector;
// extracted by mini-css-extract-plugin
/***/ }),
-/* 155 */,
-/* 156 */
+/* 157 */,
+/* 158 */
/*!***********************!*\
!*** ./css/gang.scss ***!
\***********************/
@@ -57120,8 +57073,8 @@ exports.clearSelector = clearSelector;
// extracted by mini-css-extract-plugin
/***/ }),
-/* 157 */,
-/* 158 */
+/* 159 */,
+/* 160 */
/*!******************************!*\
!*** ./css/bladeburner.scss ***!
\******************************/
@@ -57131,8 +57084,8 @@ exports.clearSelector = clearSelector;
// extracted by mini-css-extract-plugin
/***/ }),
-/* 159 */,
-/* 160 */
+/* 161 */,
+/* 162 */
/*!************************************!*\
!*** ./css/companymanagement.scss ***!
\************************************/
@@ -57142,8 +57095,8 @@ exports.clearSelector = clearSelector;
// extracted by mini-css-extract-plugin
/***/ }),
-/* 161 */,
-/* 162 */
+/* 163 */,
+/* 164 */
/*!***************************!*\
!*** ./css/missions.scss ***!
\***************************/
@@ -57153,8 +57106,8 @@ exports.clearSelector = clearSelector;
// extracted by mini-css-extract-plugin
/***/ }),
-/* 163 */,
-/* 164 */
+/* 165 */,
+/* 166 */
/*!*************************!*\
!*** ./css/loader.scss ***!
\*************************/
@@ -57164,8 +57117,8 @@ exports.clearSelector = clearSelector;
// extracted by mini-css-extract-plugin
/***/ }),
-/* 165 */,
-/* 166 */
+/* 167 */,
+/* 168 */
/*!**************************************!*\
!*** ./css/interactivetutorial.scss ***!
\**************************************/
@@ -57175,8 +57128,8 @@ exports.clearSelector = clearSelector;
// extracted by mini-css-extract-plugin
/***/ }),
-/* 167 */,
-/* 168 */
+/* 169 */,
+/* 170 */
/*!*****************************!*\
!*** ./css/popupboxes.scss ***!
\*****************************/
@@ -57186,8 +57139,8 @@ exports.clearSelector = clearSelector;
// extracted by mini-css-extract-plugin
/***/ }),
-/* 169 */,
-/* 170 */
+/* 171 */,
+/* 172 */
/*!*********************************!*\
!*** ./css/workinprogress.scss ***!
\*********************************/
@@ -57197,8 +57150,8 @@ exports.clearSelector = clearSelector;
// extracted by mini-css-extract-plugin
/***/ }),
-/* 171 */,
-/* 172 */
+/* 173 */,
+/* 174 */
/*!****************************!*\
!*** ./css/menupages.scss ***!
\****************************/
@@ -57208,8 +57161,8 @@ exports.clearSelector = clearSelector;
// extracted by mini-css-extract-plugin
/***/ }),
-/* 173 */,
-/* 174 */
+/* 175 */,
+/* 176 */
/*!***************************!*\
!*** ./css/terminal.scss ***!
\***************************/
@@ -57219,8 +57172,8 @@ exports.clearSelector = clearSelector;
// extracted by mini-css-extract-plugin
/***/ }),
-/* 175 */,
-/* 176 */
+/* 177 */,
+/* 178 */
/*!************************************!*\
!*** ./css/characteroverview.scss ***!
\************************************/
@@ -57230,8 +57183,8 @@ exports.clearSelector = clearSelector;
// extracted by mini-css-extract-plugin
/***/ }),
-/* 177 */,
-/* 178 */
+/* 179 */,
+/* 180 */
/*!***************************!*\
!*** ./css/mainmenu.scss ***!
\***************************/
@@ -57241,8 +57194,8 @@ exports.clearSelector = clearSelector;
// extracted by mini-css-extract-plugin
/***/ }),
-/* 179 */,
-/* 180 */
+/* 181 */,
+/* 182 */
/*!**************************!*\
!*** ./css/buttons.scss ***!
\**************************/
@@ -57252,8 +57205,8 @@ exports.clearSelector = clearSelector;
// extracted by mini-css-extract-plugin
/***/ }),
-/* 181 */,
-/* 182 */
+/* 183 */,
+/* 184 */
/*!***************************!*\
!*** ./css/tooltips.scss ***!
\***************************/
@@ -57263,8 +57216,8 @@ exports.clearSelector = clearSelector;
// extracted by mini-css-extract-plugin
/***/ }),
-/* 183 */,
-/* 184 */
+/* 185 */,
+/* 186 */
/*!*************************!*\
!*** ./css/styles.scss ***!
\*************************/
@@ -57274,15 +57227,210 @@ exports.clearSelector = clearSelector;
// extracted by mini-css-extract-plugin
/***/ }),
-/* 185 */,
-/* 186 */,
/* 187 */,
/* 188 */,
/* 189 */,
/* 190 */,
/* 191 */,
/* 192 */,
-/* 193 */
+/* 193 */,
+/* 194 */,
+/* 195 */
+/*!************************************!*\
+ !*** ./src/DarkWeb/DarkWebItem.ts ***!
+ \************************************/
+/*! no static exports found */
+/*! all exports used */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", { value: true });
+const StringHelperFunctions_1 = __webpack_require__(/*! ../../utils/StringHelperFunctions */ 3);
+class DarkWebItem {
+ constructor(program, price, description) {
+ this.program = program;
+ this.price = price;
+ this.description = description;
+ }
+ // Formats the item to print out to terminal (e.g. BruteSSH.exe -$500,000 - Opens up SSH Ports)
+ toString() {
+ return [this.program, "$" + StringHelperFunctions_1.formatNumber(this.price, 0), this.description].join(' - ');
+ }
+}
+exports.DarkWebItem = DarkWebItem;
+
+
+/***/ }),
+/* 196 */
+/*!***********************************************!*\
+ !*** ./src/Programs/data/programsMetadata.ts ***!
+ \***********************************************/
+/*! no static exports found */
+/*! all exports used */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", { value: true });
+const Constants_1 = __webpack_require__(/*! ../../Constants */ 1);
+function requireHackingLevel(lvl) {
+ return function (p) {
+ return p.hacking_skill >= lvl;
+ };
+}
+function bitFlumeRequirements() {
+ return function (p) {
+ return p.sourceFiles.length > 0 && p.hacking_skill >= 1;
+ };
+}
+exports.programsMetadata = [
+ {
+ key: "NukeProgram",
+ name: "NUKE.exe",
+ create: {
+ level: 1,
+ tooltip: "This virus is used to gain root access to a machine if enough ports are opened.",
+ req: requireHackingLevel(1),
+ time: Constants_1.CONSTANTS.MillisecondsPerFiveMinutes,
+ },
+ },
+ {
+ key: "BruteSSHProgram",
+ name: "BruteSSH.exe",
+ create: {
+ level: 50,
+ tooltip: "This program executes a brute force attack that opens SSH ports",
+ req: requireHackingLevel(50),
+ time: Constants_1.CONSTANTS.MillisecondsPerFiveMinutes * 2,
+ },
+ },
+ {
+ key: "FTPCrackProgram",
+ name: "FTPCrack.exe",
+ create: {
+ level: 100,
+ tooltip: "This program cracks open FTP ports",
+ req: requireHackingLevel(100),
+ time: Constants_1.CONSTANTS.MillisecondsPerHalfHour,
+ },
+ },
+ {
+ key: "RelaySMTPProgram",
+ name: "relaySMTP.exe",
+ create: {
+ level: 250,
+ tooltip: "This program opens SMTP ports by redirecting data",
+ req: requireHackingLevel(250),
+ time: Constants_1.CONSTANTS.MillisecondsPer2Hours,
+ },
+ },
+ {
+ key: "HTTPWormProgram",
+ name: "HTTPWorm.exe",
+ create: {
+ level: 500,
+ tooltip: "This virus opens up HTTP ports",
+ req: requireHackingLevel(500),
+ time: Constants_1.CONSTANTS.MillisecondsPer4Hours,
+ },
+ },
+ {
+ key: "SQLInjectProgram",
+ name: "SQLInject.exe",
+ create: {
+ level: 750,
+ tooltip: "This virus opens SQL ports",
+ req: requireHackingLevel(750),
+ time: Constants_1.CONSTANTS.MillisecondsPer8Hours,
+ },
+ },
+ {
+ key: "DeepscanV1",
+ name: "DeepscanV1.exe",
+ create: {
+ level: 75,
+ tooltip: "This program allows you to use the scan-analyze command with a depth up to 5",
+ req: requireHackingLevel(75),
+ time: Constants_1.CONSTANTS.MillisecondsPerQuarterHour,
+ },
+ },
+ {
+ key: "DeepscanV2",
+ name: "DeepscanV2.exe",
+ create: {
+ level: 400,
+ tooltip: "This program allows you to use the scan-analyze command with a depth up to 10",
+ req: requireHackingLevel(400),
+ time: Constants_1.CONSTANTS.MillisecondsPer2Hours,
+ },
+ },
+ {
+ key: "ServerProfiler",
+ name: "ServerProfiler.exe",
+ create: {
+ level: 75,
+ tooltip: "This program is used to display hacking and Netscript-related information about servers",
+ req: requireHackingLevel(75),
+ time: Constants_1.CONSTANTS.MillisecondsPerHalfHour,
+ },
+ },
+ {
+ key: "AutoLink",
+ name: "AutoLink.exe",
+ create: {
+ level: 25,
+ tooltip: "This program allows you to directly connect to other servers through the 'scan-analyze' command",
+ req: requireHackingLevel(25),
+ time: Constants_1.CONSTANTS.MillisecondsPerQuarterHour,
+ },
+ },
+ {
+ key: "BitFlume",
+ name: "b1t_flum3.exe",
+ create: {
+ level: 1,
+ tooltip: "This program creates a portal to the BitNode Nexus (allows you to restart and switch BitNodes)",
+ req: bitFlumeRequirements(),
+ time: Constants_1.CONSTANTS.MillisecondsPerFiveMinutes / 20,
+ },
+ },
+ {
+ key: "Flight",
+ name: "fl1ght.exe",
+ create: null,
+ },
+];
+
+
+/***/ }),
+/* 197 */
+/*!*********************************!*\
+ !*** ./src/Programs/Program.ts ***!
+ \*********************************/
+/*! no static exports found */
+/*! all exports used */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+
+Object.defineProperty(exports, "__esModule", { value: true });
+class Program {
+ constructor(name, create) {
+ this.name = "";
+ this.name = name;
+ this.create = create;
+ }
+ htmlID() {
+ const name = this.name.endsWith('.exe') ? this.name.slice(0, -('.exe'.length)) : this.name;
+ return "create-program-" + name;
+ }
+}
+exports.Program = Program;
+
+
+/***/ }),
+/* 198 */
/*!**********************!*\
!*** ./netscript.js ***!
\**********************/
@@ -58127,7 +58275,7 @@ oop.inherits(Mode, TextMode);
};
this.createWorker = function(session) {
- var worker = new WorkerClient(["ace"], __webpack_require__(/*! brace/worker/javascript */ 194), "JavaScriptWorker");
+ var worker = new WorkerClient(["ace"], __webpack_require__(/*! brace/worker/javascript */ 199), "JavaScriptWorker");
worker.attachToDocument(session.getDocument());
worker.on("annotate", function(results) {
@@ -58149,11 +58297,11 @@ exports.Mode = Mode;
/***/ }),
-/* 194 */,
-/* 195 */,
-/* 196 */,
-/* 197 */,
-/* 198 */
+/* 199 */,
+/* 200 */,
+/* 201 */,
+/* 202 */,
+/* 203 */
/*!*****************************************!*\
!*** ./src/data/codingcontracttypes.ts ***!
\*****************************************/
@@ -58634,7 +58782,7 @@ exports.codingContractTypesMetadata = [
/***/ }),
-/* 199 */
+/* 204 */
/*!*********************************!*\
!*** ./src/Locations/Cities.ts ***!
\*********************************/
@@ -58660,7 +58808,7 @@ exports.Cities = {
/***/ }),
-/* 200 */
+/* 205 */
/*!*************************************************!*\
!*** ./src/Corporation/ProductRatingWeights.ts ***!
\*************************************************/
@@ -58740,7 +58888,7 @@ exports.ProductRatingWeights = {
/***/ }),
-/* 201 */
+/* 206 */
/*!*****************************************!*\
!*** ./src/Corporation/ResearchTree.ts ***!
\*****************************************/
@@ -58756,7 +58904,7 @@ exports.ProductRatingWeights = {
// not an actual Research object. The name can be used to obtain a reference
// to the corresponding Research object using the ResearchMap
Object.defineProperty(exports, "__esModule", { value: true });
-const ResearchMap_1 = __webpack_require__(/*! ./ResearchMap */ 97);
+const ResearchMap_1 = __webpack_require__(/*! ./ResearchMap */ 98);
class Node {
constructor(p) {
// All child Nodes in the tree
@@ -58987,7 +59135,7 @@ exports.ResearchTree = ResearchTree;
/***/ }),
-/* 202 */
+/* 207 */
/*!**************************************************!*\
!*** ./src/Corporation/data/ResearchMetadata.ts ***!
\**************************************************/
@@ -59120,7 +59268,7 @@ exports.researchMetadata = [
/***/ }),
-/* 203 */
+/* 208 */
/*!*************************************!*\
!*** ./src/Corporation/Research.ts ***!
\*************************************/
@@ -59185,7 +59333,7 @@ exports.Research = Research;
/***/ }),
-/* 204 */
+/* 209 */
/*!**************************************************!*\
!*** ./src/Corporation/data/BaseResearchTree.ts ***!
\**************************************************/
@@ -59196,8 +59344,8 @@ exports.Research = Research;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
-const ResearchMap_1 = __webpack_require__(/*! ../ResearchMap */ 97);
-const ResearchTree_1 = __webpack_require__(/*! ../ResearchTree */ 201);
+const ResearchMap_1 = __webpack_require__(/*! ../ResearchMap */ 98);
+const ResearchTree_1 = __webpack_require__(/*! ../ResearchTree */ 206);
exports.BaseResearchTree = new ResearchTree_1.ResearchTree();
function makeNode(name) {
const research = ResearchMap_1.ResearchMap[name];
@@ -59243,7 +59391,7 @@ exports.getBaseResearchTreeCopy = getBaseResearchTreeCopy;
/***/ }),
-/* 205 */
+/* 210 */
/*!***********************************************!*\
!*** ./src/Company/data/CompaniesMetadata.ts ***!
\***********************************************/
@@ -59635,7 +59783,7 @@ exports.companiesMetadata = [
/***/ }),
-/* 206 */
+/* 211 */
/*!******************************************************!*\
!*** ./src/Company/data/CompanyPositionsMetadata.ts ***!
\******************************************************/
@@ -60248,11 +60396,6 @@ exports.companyPositionMetadata = [
/***/ }),
-/* 207 */,
-/* 208 */,
-/* 209 */,
-/* 210 */,
-/* 211 */,
/* 212 */,
/* 213 */,
/* 214 */,
@@ -60284,7 +60427,12 @@ exports.companyPositionMetadata = [
/* 240 */,
/* 241 */,
/* 242 */,
-/* 243 */
+/* 243 */,
+/* 244 */,
+/* 245 */,
+/* 246 */,
+/* 247 */,
+/* 248 */
/*!**********************!*\
!*** util (ignored) ***!
\**********************/
@@ -60295,7 +60443,7 @@ exports.companyPositionMetadata = [
/* (ignored) */
/***/ }),
-/* 244 */
+/* 249 */
/*!**********************!*\
!*** util (ignored) ***!
\**********************/
diff --git a/dist/vendor.bundle.js b/dist/vendor.bundle.js
index b88ae01b6..857f16616 100644
--- a/dist/vendor.bundle.js
+++ b/dist/vendor.bundle.js
@@ -15212,11 +15212,11 @@ return jQuery;
"use strict";
-var support = __webpack_require__(/*! ./support */ 108);
-var base64 = __webpack_require__(/*! ./base64 */ 239);
-var nodejsUtils = __webpack_require__(/*! ./nodejsUtils */ 144);
-var setImmediate = __webpack_require__(/*! core-js/library/fn/set-immediate */ 356);
-var external = __webpack_require__(/*! ./external */ 124);
+var support = __webpack_require__(/*! ./support */ 109);
+var base64 = __webpack_require__(/*! ./base64 */ 244);
+var nodejsUtils = __webpack_require__(/*! ./nodejsUtils */ 146);
+var setImmediate = __webpack_require__(/*! core-js/library/fn/set-immediate */ 361);
+var external = __webpack_require__(/*! ./external */ 126);
/**
@@ -17011,7 +17011,8 @@ module.exports = GenericWorker;
/* 92 */,
/* 93 */,
/* 94 */,
-/* 95 */
+/* 95 */,
+/* 96 */
/*!**************************************************!*\
!*** ./node_modules/chai/lib/chai/utils/flag.js ***!
\**************************************************/
@@ -17055,7 +17056,7 @@ module.exports = function flag(obj, key, value) {
/***/ }),
-/* 96 */
+/* 97 */
/*!***********************************!*\
!*** (webpack)/buildin/global.js ***!
\***********************************/
@@ -17086,7 +17087,6 @@ module.exports = g;
/***/ }),
-/* 97 */,
/* 98 */,
/* 99 */,
/* 100 */,
@@ -17096,7 +17096,8 @@ module.exports = g;
/* 104 */,
/* 105 */,
/* 106 */,
-/* 107 */
+/* 107 */,
+/* 108 */
/*!***********************************************!*\
!*** ./node_modules/pako/lib/utils/common.js ***!
\***********************************************/
@@ -17213,7 +17214,7 @@ exports.setTyped(TYPED_OK);
/***/ }),
-/* 108 */
+/* 109 */
/*!*******************************************!*\
!*** ./node_modules/jszip/lib/support.js ***!
\*******************************************/
@@ -17256,15 +17257,15 @@ else {
}
try {
- exports.nodestream = !!__webpack_require__(/*! readable-stream */ 247).Readable;
+ exports.nodestream = !!__webpack_require__(/*! readable-stream */ 252).Readable;
} catch(e) {
exports.nodestream = false;
}
-/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../buffer/index.js */ 126).Buffer))
+/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../buffer/index.js */ 128).Buffer))
/***/ }),
-/* 109 */
+/* 110 */
/*!*********************************************!*\
!*** ./node_modules/escodegen/escodegen.js ***!
\*********************************************/
@@ -17338,8 +17339,8 @@ try {
FORMAT_MINIFY,
FORMAT_DEFAULTS;
- estraverse = __webpack_require__(/*! estraverse */ 318);
- esutils = __webpack_require__(/*! esutils */ 316);
+ estraverse = __webpack_require__(/*! estraverse */ 323);
+ esutils = __webpack_require__(/*! esutils */ 321);
Syntax = estraverse.Syntax;
@@ -19819,7 +19820,7 @@ try {
if (!exports.browser) {
// We assume environment is node.js
// And prevent from including source-map by browserify
- SourceNode = __webpack_require__(/*! source-map */ 313).SourceNode;
+ SourceNode = __webpack_require__(/*! source-map */ 318).SourceNode;
} else {
SourceNode = global.sourceMap.SourceNode;
}
@@ -19866,7 +19867,7 @@ try {
FORMAT_DEFAULTS = getDefaultOptions().format;
- exports.version = __webpack_require__(/*! ./package.json */ 306).version;
+ exports.version = __webpack_require__(/*! ./package.json */ 311).version;
exports.generate = generate;
exports.attachComments = estraverse.attachComments;
exports.Precedence = updateDeeply({}, Precedence);
@@ -19876,10 +19877,10 @@ try {
}());
/* vim: set sw=4 ts=4 et tw=80 : */
-/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ 96)))
+/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ 97)))
/***/ }),
-/* 110 */
+/* 111 */
/*!***********************************************************!*\
!*** ./node_modules/chai/lib/chai/utils/transferFlags.js ***!
\***********************************************************/
@@ -19935,7 +19936,7 @@ module.exports = function transferFlags(assertion, object, includeAll) {
/***/ }),
-/* 111 */
+/* 112 */
/*!**********************************************!*\
!*** ./node_modules/chai/lib/chai/config.js ***!
\**********************************************/
@@ -20040,7 +20041,7 @@ module.exports = {
/***/ }),
-/* 112 */
+/* 113 */
/*!***************************************!*\
!*** ./node_modules/chai/lib/chai.js ***!
\***************************************/
@@ -20066,13 +20067,13 @@ exports.version = '4.1.2';
* Assertion Error
*/
-exports.AssertionError = __webpack_require__(/*! assertion-error */ 213);
+exports.AssertionError = __webpack_require__(/*! assertion-error */ 218);
/*!
* Utils for plugins (not exported)
*/
-var util = __webpack_require__(/*! ./chai/utils */ 301);
+var util = __webpack_require__(/*! ./chai/utils */ 306);
/**
* # .use(function)
@@ -20103,47 +20104,47 @@ exports.util = util;
* Configuration
*/
-var config = __webpack_require__(/*! ./chai/config */ 111);
+var config = __webpack_require__(/*! ./chai/config */ 112);
exports.config = config;
/*!
* Primary `Assertion` prototype
*/
-var assertion = __webpack_require__(/*! ./chai/assertion */ 285);
+var assertion = __webpack_require__(/*! ./chai/assertion */ 290);
exports.use(assertion);
/*!
* Core Assertions
*/
-var core = __webpack_require__(/*! ./chai/core/assertions */ 284);
+var core = __webpack_require__(/*! ./chai/core/assertions */ 289);
exports.use(core);
/*!
* Expect interface
*/
-var expect = __webpack_require__(/*! ./chai/interface/expect */ 283);
+var expect = __webpack_require__(/*! ./chai/interface/expect */ 288);
exports.use(expect);
/*!
* Should interface
*/
-var should = __webpack_require__(/*! ./chai/interface/should */ 282);
+var should = __webpack_require__(/*! ./chai/interface/should */ 287);
exports.use(should);
/*!
* Assert interface
*/
-var assert = __webpack_require__(/*! ./chai/interface/assert */ 281);
+var assert = __webpack_require__(/*! ./chai/interface/assert */ 286);
exports.use(assert);
/***/ }),
-/* 113 */
+/* 114 */
/*!************************************************************!*\
!*** ./node_modules/readable-stream/lib/_stream_duplex.js ***!
\************************************************************/
@@ -20182,7 +20183,7 @@ exports.use(assert);
/**/
-var processNextTick = __webpack_require__(/*! process-nextick-args */ 146).nextTick;
+var processNextTick = __webpack_require__(/*! process-nextick-args */ 148).nextTick;
/* */
/**/
@@ -20197,12 +20198,12 @@ var objectKeys = Object.keys || function (obj) {
module.exports = Duplex;
/**/
-var util = __webpack_require__(/*! core-util-is */ 125);
-util.inherits = __webpack_require__(/*! inherits */ 121);
+var util = __webpack_require__(/*! core-util-is */ 127);
+util.inherits = __webpack_require__(/*! inherits */ 123);
/* */
-var Readable = __webpack_require__(/*! ./_stream_readable */ 246);
-var Writable = __webpack_require__(/*! ./_stream_writable */ 190);
+var Readable = __webpack_require__(/*! ./_stream_readable */ 251);
+var Writable = __webpack_require__(/*! ./_stream_writable */ 192);
util.inherits(Duplex, Readable);
@@ -20278,14 +20279,15 @@ function forEach(xs, f) {
}
/***/ }),
-/* 114 */,
/* 115 */,
/* 116 */,
/* 117 */,
/* 118 */,
/* 119 */,
/* 120 */,
-/* 121 */
+/* 121 */,
+/* 122 */,
+/* 123 */
/*!***************************************************!*\
!*** ./node_modules/inherits/inherits_browser.js ***!
\***************************************************/
@@ -20319,7 +20321,7 @@ if (typeof Object.create === 'function') {
/***/ }),
-/* 122 */
+/* 124 */
/*!****************************************!*\
!*** ./node_modules/jszip/lib/utf8.js ***!
\****************************************/
@@ -20331,8 +20333,8 @@ if (typeof Object.create === 'function') {
var utils = __webpack_require__(/*! ./utils */ 69);
-var support = __webpack_require__(/*! ./support */ 108);
-var nodejsUtils = __webpack_require__(/*! ./nodejsUtils */ 144);
+var support = __webpack_require__(/*! ./support */ 109);
+var nodejsUtils = __webpack_require__(/*! ./nodejsUtils */ 146);
var GenericWorker = __webpack_require__(/*! ./stream/GenericWorker */ 90);
/**
@@ -20606,7 +20608,7 @@ exports.Utf8EncodeWorker = Utf8EncodeWorker;
/***/ }),
-/* 123 */
+/* 125 */
/*!********************************************************************!*\
!*** ./node_modules/escodegen/node_modules/source-map/lib/util.js ***!
\********************************************************************/
@@ -21105,7 +21107,7 @@ exports.computeSourceURL = computeSourceURL;
/***/ }),
-/* 124 */
+/* 126 */
/*!********************************************!*\
!*** ./node_modules/jszip/lib/external.js ***!
\********************************************/
@@ -21124,7 +21126,7 @@ var ES6Promise = null;
if (typeof Promise !== "undefined") {
ES6Promise = Promise;
} else {
- ES6Promise = __webpack_require__(/*! lie */ 342);
+ ES6Promise = __webpack_require__(/*! lie */ 347);
}
/**
@@ -21136,7 +21138,7 @@ module.exports = {
/***/ }),
-/* 125 */
+/* 127 */
/*!***********************************************!*\
!*** ./node_modules/core-util-is/lib/util.js ***!
\***********************************************/
@@ -21252,10 +21254,10 @@ function objectToString(o) {
return Object.prototype.toString.call(o);
}
-/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../buffer/index.js */ 126).Buffer))
+/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../buffer/index.js */ 128).Buffer))
/***/ }),
-/* 126 */
+/* 128 */
/*!**************************************!*\
!*** ./node_modules/buffer/index.js ***!
\**************************************/
@@ -21274,9 +21276,9 @@ function objectToString(o) {
-var base64 = __webpack_require__(/*! base64-js */ 366)
-var ieee754 = __webpack_require__(/*! ieee754 */ 365)
-var isArray = __webpack_require__(/*! isarray */ 248)
+var base64 = __webpack_require__(/*! base64-js */ 371)
+var ieee754 = __webpack_require__(/*! ieee754 */ 370)
+var isArray = __webpack_require__(/*! isarray */ 253)
exports.Buffer = Buffer
exports.SlowBuffer = SlowBuffer
@@ -23054,10 +23056,10 @@ function isnan (val) {
return val !== val // eslint-disable-line no-self-compare
}
-/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ 96)))
+/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ 97)))
/***/ }),
-/* 127 */
+/* 129 */
/*!*****************************************!*\
!*** ./node_modules/process/browser.js ***!
\*****************************************/
@@ -23252,8 +23254,6 @@ process.umask = function() { return 0; };
/***/ }),
-/* 128 */,
-/* 129 */,
/* 130 */,
/* 131 */,
/* 132 */,
@@ -23263,7 +23263,9 @@ process.umask = function() { return 0; };
/* 136 */,
/* 137 */,
/* 138 */,
-/* 139 */
+/* 139 */,
+/* 140 */,
+/* 141 */
/*!*****************************************************!*\
!*** ./node_modules/chai/lib/chai/utils/proxify.js ***!
\*****************************************************/
@@ -23271,10 +23273,10 @@ process.umask = function() { return 0; };
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
-var config = __webpack_require__(/*! ../config */ 111);
-var flag = __webpack_require__(/*! ./flag */ 95);
-var getProperties = __webpack_require__(/*! ./getProperties */ 210);
-var isProxyEnabled = __webpack_require__(/*! ./isProxyEnabled */ 141);
+var config = __webpack_require__(/*! ../config */ 112);
+var flag = __webpack_require__(/*! ./flag */ 96);
+var getProperties = __webpack_require__(/*! ./getProperties */ 215);
+var isProxyEnabled = __webpack_require__(/*! ./isProxyEnabled */ 143);
/*!
* Chai - proxify utility
@@ -23399,7 +23401,7 @@ function stringDistance(strA, strB, memo) {
/***/ }),
-/* 140 */
+/* 142 */
/*!************************************************************!*\
!*** ./node_modules/chai/lib/chai/utils/addLengthGuard.js ***!
\************************************************************/
@@ -23407,7 +23409,7 @@ function stringDistance(strA, strB, memo) {
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
-var config = __webpack_require__(/*! ../config */ 111);
+var config = __webpack_require__(/*! ../config */ 112);
var fnLengthDesc = Object.getOwnPropertyDescriptor(function () {}, 'length');
@@ -23472,7 +23474,7 @@ module.exports = function addLengthGuard (fn, assertionName, isChainable) {
/***/ }),
-/* 141 */
+/* 143 */
/*!************************************************************!*\
!*** ./node_modules/chai/lib/chai/utils/isProxyEnabled.js ***!
\************************************************************/
@@ -23480,7 +23482,7 @@ module.exports = function addLengthGuard (fn, assertionName, isChainable) {
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
-var config = __webpack_require__(/*! ../config */ 111);
+var config = __webpack_require__(/*! ../config */ 112);
/*!
* Chai - isProxyEnabled helper
@@ -23507,7 +23509,7 @@ module.exports = function isProxyEnabled() {
/***/ }),
-/* 142 */
+/* 144 */
/*!*****************************************************!*\
!*** ./node_modules/chai/lib/chai/utils/inspect.js ***!
\*****************************************************/
@@ -23518,10 +23520,10 @@ module.exports = function isProxyEnabled() {
// This is (almost) directly from Node.js utils
// https://github.com/joyent/node/blob/f8c335d0caf47f16d31413f89aa28eda3878e3aa/lib/util.js
-var getName = __webpack_require__(/*! get-func-name */ 211);
-var getProperties = __webpack_require__(/*! ./getProperties */ 210);
-var getEnumerableProperties = __webpack_require__(/*! ./getEnumerableProperties */ 296);
-var config = __webpack_require__(/*! ../config */ 111);
+var getName = __webpack_require__(/*! get-func-name */ 216);
+var getProperties = __webpack_require__(/*! ./getProperties */ 215);
+var getEnumerableProperties = __webpack_require__(/*! ./getEnumerableProperties */ 301);
+var config = __webpack_require__(/*! ../config */ 112);
module.exports = inspect;
@@ -23901,7 +23903,7 @@ function objectToString(o) {
/***/ }),
-/* 143 */
+/* 145 */
/*!****************************************************************************!*\
!*** ./node_modules/jszip/node_modules/core-js/library/modules/_global.js ***!
\****************************************************************************/
@@ -23915,7 +23917,7 @@ var global = module.exports = typeof window != 'undefined' && window.Math == Mat
if(typeof __g == 'number')__g = global; // eslint-disable-line no-undef
/***/ }),
-/* 144 */
+/* 146 */
/*!***********************************************!*\
!*** ./node_modules/jszip/lib/nodejsUtils.js ***!
\***********************************************/
@@ -23977,10 +23979,10 @@ module.exports = {
}
};
-/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../buffer/index.js */ 126).Buffer))
+/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../buffer/index.js */ 128).Buffer))
/***/ }),
-/* 145 */
+/* 147 */
/*!*******************************************!*\
!*** ./node_modules/safe-buffer/index.js ***!
\*******************************************/
@@ -23989,7 +23991,7 @@ module.exports = {
/***/ (function(module, exports, __webpack_require__) {
/* eslint-disable node/no-deprecated-api */
-var buffer = __webpack_require__(/*! buffer */ 126)
+var buffer = __webpack_require__(/*! buffer */ 128)
var Buffer = buffer.Buffer
// alternative to using Object.keys for old browsers
@@ -24053,7 +24055,7 @@ SafeBuffer.allocUnsafeSlow = function (size) {
/***/ }),
-/* 146 */
+/* 148 */
/*!****************************************************!*\
!*** ./node_modules/process-nextick-args/index.js ***!
\****************************************************/
@@ -24107,10 +24109,10 @@ function nextTick(fn, arg1, arg2, arg3) {
}
-/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../process/browser.js */ 127)))
+/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../process/browser.js */ 129)))
/***/ }),
-/* 147 */
+/* 149 */
/*!*****************************************!*\
!*** ./node_modules/acorn/dist/walk.js ***!
\*****************************************/
@@ -24556,7 +24558,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
/***/ }),
-/* 148 */
+/* 150 */
/*!************************************************!*\
!*** ./node_modules/sprintf-js/src/sprintf.js ***!
\************************************************/
@@ -24786,7 +24788,7 @@ var __WEBPACK_AMD_DEFINE_RESULT__;/* global window, exports, define */
/***/ }),
-/* 149 */
+/* 151 */
/*!**********************************************!*\
!*** ./node_modules/file-saver/FileSaver.js ***!
\**********************************************/
@@ -24977,7 +24979,7 @@ var saveAs = saveAs || (function(view) {
if (typeof module !== "undefined" && module.exports) {
module.exports.saveAs = saveAs;
-} else if (("function" !== "undefined" && __webpack_require__(/*! !webpack amd define */ 197) !== null) && (__webpack_require__(/*! !webpack amd options */ 319) !== null)) {
+} else if (("function" !== "undefined" && __webpack_require__(/*! !webpack amd define */ 202) !== null) && (__webpack_require__(/*! !webpack amd options */ 324) !== null)) {
!(__WEBPACK_AMD_DEFINE_RESULT__ = (function() {
return saveAs;
}).call(exports, __webpack_require__, exports, module),
@@ -24986,7 +24988,7 @@ if (typeof module !== "undefined" && module.exports) {
/***/ }),
-/* 150 */
+/* 152 */
/*!*****************************************!*\
!*** ./node_modules/jszip/lib/index.js ***!
\*****************************************/
@@ -25032,10 +25034,10 @@ function JSZip() {
return newObj;
};
}
-JSZip.prototype = __webpack_require__(/*! ./object */ 367);
-JSZip.prototype.loadAsync = __webpack_require__(/*! ./load */ 324);
-JSZip.support = __webpack_require__(/*! ./support */ 108);
-JSZip.defaults = __webpack_require__(/*! ./defaults */ 233);
+JSZip.prototype = __webpack_require__(/*! ./object */ 372);
+JSZip.prototype.loadAsync = __webpack_require__(/*! ./load */ 329);
+JSZip.support = __webpack_require__(/*! ./support */ 109);
+JSZip.defaults = __webpack_require__(/*! ./defaults */ 238);
// TODO find a better way to handle this version,
// a require('package.json').version doesn't work with webpack, see #327
@@ -25045,12 +25047,12 @@ JSZip.loadAsync = function (content, options) {
return new JSZip().loadAsync(content, options);
};
-JSZip.external = __webpack_require__(/*! ./external */ 124);
+JSZip.external = __webpack_require__(/*! ./external */ 126);
module.exports = JSZip;
/***/ }),
-/* 151 */
+/* 153 */
/*!************************************************!*\
!*** ./node_modules/autosize/dist/autosize.js ***!
\************************************************/
@@ -25343,7 +25345,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
});
/***/ }),
-/* 152 */
+/* 154 */
/*!*************************************************!*\
!*** ./node_modules/type-detect/type-detect.js ***!
\*************************************************/
@@ -25739,11 +25741,9 @@ return typeDetect;
})));
-/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ 96)))
+/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ 97)))
/***/ }),
-/* 153 */,
-/* 154 */,
/* 155 */,
/* 156 */,
/* 157 */,
@@ -25774,7 +25774,9 @@ return typeDetect;
/* 182 */,
/* 183 */,
/* 184 */,
-/* 185 */
+/* 185 */,
+/* 186 */,
+/* 187 */
/*!************************************************!*\
!*** ./node_modules/pako/lib/zlib/messages.js ***!
\************************************************/
@@ -25818,7 +25820,7 @@ module.exports = {
/***/ }),
-/* 186 */
+/* 188 */
/*!*****************************************!*\
!*** ./node_modules/jszip/lib/crc32.js ***!
\*****************************************/
@@ -25907,7 +25909,7 @@ module.exports = function crc32wrapper(input, crc) {
/***/ }),
-/* 187 */
+/* 189 */
/*!****************************************************!*\
!*** ./node_modules/jszip/lib/compressedObject.js ***!
\****************************************************/
@@ -25918,11 +25920,11 @@ module.exports = function crc32wrapper(input, crc) {
"use strict";
-var external = __webpack_require__(/*! ./external */ 124);
-var DataWorker = __webpack_require__(/*! ./stream/DataWorker */ 232);
-var DataLengthProbe = __webpack_require__(/*! ./stream/DataLengthProbe */ 231);
-var Crc32Probe = __webpack_require__(/*! ./stream/Crc32Probe */ 230);
-var DataLengthProbe = __webpack_require__(/*! ./stream/DataLengthProbe */ 231);
+var external = __webpack_require__(/*! ./external */ 126);
+var DataWorker = __webpack_require__(/*! ./stream/DataWorker */ 237);
+var DataLengthProbe = __webpack_require__(/*! ./stream/DataLengthProbe */ 236);
+var Crc32Probe = __webpack_require__(/*! ./stream/Crc32Probe */ 235);
+var DataLengthProbe = __webpack_require__(/*! ./stream/DataLengthProbe */ 236);
/**
* Represent a compressed object, with everything needed to decompress it.
@@ -25994,7 +25996,7 @@ module.exports = CompressedObject;
/***/ }),
-/* 188 */
+/* 190 */
/*!*********************************************************************************!*\
!*** ./node_modules/jszip/node_modules/core-js/library/modules/_descriptors.js ***!
\*********************************************************************************/
@@ -26003,12 +26005,12 @@ module.exports = CompressedObject;
/***/ (function(module, exports, __webpack_require__) {
// Thank's IE8 for his funny defineProperty
-module.exports = !__webpack_require__(/*! ./_fails */ 236)(function(){
+module.exports = !__webpack_require__(/*! ./_fails */ 241)(function(){
return Object.defineProperty({}, 'a', {get: function(){ return 7; }}).a != 7;
});
/***/ }),
-/* 189 */
+/* 191 */
/*!*******************************************************************************!*\
!*** ./node_modules/jszip/node_modules/core-js/library/modules/_is-object.js ***!
\*******************************************************************************/
@@ -26021,7 +26023,7 @@ module.exports = function(it){
};
/***/ }),
-/* 190 */
+/* 192 */
/*!**************************************************************!*\
!*** ./node_modules/readable-stream/lib/_stream_writable.js ***!
\**************************************************************/
@@ -26059,7 +26061,7 @@ module.exports = function(it){
/**/
-var processNextTick = __webpack_require__(/*! process-nextick-args */ 146).nextTick;
+var processNextTick = __webpack_require__(/*! process-nextick-args */ 148).nextTick;
/* */
module.exports = Writable;
@@ -26096,23 +26098,23 @@ var Duplex;
Writable.WritableState = WritableState;
/**/
-var util = __webpack_require__(/*! core-util-is */ 125);
-util.inherits = __webpack_require__(/*! inherits */ 121);
+var util = __webpack_require__(/*! core-util-is */ 127);
+util.inherits = __webpack_require__(/*! inherits */ 123);
/* */
/**/
var internalUtil = {
- deprecate: __webpack_require__(/*! util-deprecate */ 362)
+ deprecate: __webpack_require__(/*! util-deprecate */ 367)
};
/* */
/**/
-var Stream = __webpack_require__(/*! ./internal/streams/stream */ 245);
+var Stream = __webpack_require__(/*! ./internal/streams/stream */ 250);
/* */
/**/
-var Buffer = __webpack_require__(/*! safe-buffer */ 145).Buffer;
+var Buffer = __webpack_require__(/*! safe-buffer */ 147).Buffer;
var OurUint8Array = global.Uint8Array || function () {};
function _uint8ArrayToBuffer(chunk) {
return Buffer.from(chunk);
@@ -26123,14 +26125,14 @@ function _isUint8Array(obj) {
/* */
-var destroyImpl = __webpack_require__(/*! ./internal/streams/destroy */ 242);
+var destroyImpl = __webpack_require__(/*! ./internal/streams/destroy */ 247);
util.inherits(Writable, Stream);
function nop() {}
function WritableState(options, stream) {
- Duplex = Duplex || __webpack_require__(/*! ./_stream_duplex */ 113);
+ Duplex = Duplex || __webpack_require__(/*! ./_stream_duplex */ 114);
options = options || {};
@@ -26280,7 +26282,7 @@ if (typeof Symbol === 'function' && Symbol.hasInstance && typeof Function.protot
}
function Writable(options) {
- Duplex = Duplex || __webpack_require__(/*! ./_stream_duplex */ 113);
+ Duplex = Duplex || __webpack_require__(/*! ./_stream_duplex */ 114);
// Writable ctor is applied to Duplexes, too.
// `realHasInstance` is necessary because using plain `instanceof`
@@ -26707,10 +26709,10 @@ Writable.prototype._destroy = function (err, cb) {
this.end();
cb(err);
};
-/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../process/browser.js */ 127), __webpack_require__(/*! ./../../timers-browserify/main.js */ 250).setImmediate, __webpack_require__(/*! ./../../webpack/buildin/global.js */ 96)))
+/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../process/browser.js */ 129), __webpack_require__(/*! ./../../timers-browserify/main.js */ 255).setImmediate, __webpack_require__(/*! ./../../webpack/buildin/global.js */ 97)))
/***/ }),
-/* 191 */
+/* 193 */
/*!**********************************************************!*\
!*** ./node_modules/readable-stream/readable-browser.js ***!
\**********************************************************/
@@ -26718,17 +26720,17 @@ Writable.prototype._destroy = function (err, cb) {
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
-exports = module.exports = __webpack_require__(/*! ./lib/_stream_readable.js */ 246);
+exports = module.exports = __webpack_require__(/*! ./lib/_stream_readable.js */ 251);
exports.Stream = exports;
exports.Readable = exports;
-exports.Writable = __webpack_require__(/*! ./lib/_stream_writable.js */ 190);
-exports.Duplex = __webpack_require__(/*! ./lib/_stream_duplex.js */ 113);
-exports.Transform = __webpack_require__(/*! ./lib/_stream_transform.js */ 240);
-exports.PassThrough = __webpack_require__(/*! ./lib/_stream_passthrough.js */ 361);
+exports.Writable = __webpack_require__(/*! ./lib/_stream_writable.js */ 192);
+exports.Duplex = __webpack_require__(/*! ./lib/_stream_duplex.js */ 114);
+exports.Transform = __webpack_require__(/*! ./lib/_stream_transform.js */ 245);
+exports.PassThrough = __webpack_require__(/*! ./lib/_stream_passthrough.js */ 366);
/***/ }),
-/* 192 */
+/* 194 */
/*!***************************************!*\
!*** ./node_modules/events/events.js ***!
\***************************************/
@@ -27041,8 +27043,11 @@ function isUndefined(arg) {
/***/ }),
-/* 193 */,
-/* 194 */
+/* 195 */,
+/* 196 */,
+/* 197 */,
+/* 198 */,
+/* 199 */
/*!*************************************************!*\
!*** ./node_modules/brace/worker/javascript.js ***!
\*************************************************/
@@ -27054,7 +27059,7 @@ module.exports.id = 'ace/mode/javascript_worker';
module.exports.src = "\"no use strict\";!function(window){function resolveModuleId(id,paths){for(var testPath=id,tail=\"\";testPath;){var alias=paths[testPath];if(\"string\"==typeof alias)return alias+tail;if(alias)return alias.location.replace(/\\/*$/,\"/\")+(tail||alias.main||alias.name);if(alias===!1)return\"\";var i=testPath.lastIndexOf(\"/\");if(-1===i)break;tail=testPath.substr(i)+tail,testPath=testPath.slice(0,i)}return id}if(!(void 0!==window.window&&window.document||window.acequire&&window.define)){window.console||(window.console=function(){var msgs=Array.prototype.slice.call(arguments,0);postMessage({type:\"log\",data:msgs})},window.console.error=window.console.warn=window.console.log=window.console.trace=window.console),window.window=window,window.ace=window,window.onerror=function(message,file,line,col,err){postMessage({type:\"error\",data:{message:message,data:err.data,file:file,line:line,col:col,stack:err.stack}})},window.normalizeModule=function(parentId,moduleName){if(-1!==moduleName.indexOf(\"!\")){var chunks=moduleName.split(\"!\");return window.normalizeModule(parentId,chunks[0])+\"!\"+window.normalizeModule(parentId,chunks[1])}if(\".\"==moduleName.charAt(0)){var base=parentId.split(\"/\").slice(0,-1).join(\"/\");for(moduleName=(base?base+\"/\":\"\")+moduleName;-1!==moduleName.indexOf(\".\")&&previous!=moduleName;){var previous=moduleName;moduleName=moduleName.replace(/^\\.\\//,\"\").replace(/\\/\\.\\//,\"/\").replace(/[^\\/]+\\/\\.\\.\\//,\"\")}}return moduleName},window.acequire=function acequire(parentId,id){if(id||(id=parentId,parentId=null),!id.charAt)throw Error(\"worker.js acequire() accepts only (parentId, id) as arguments\");id=window.normalizeModule(parentId,id);var module=window.acequire.modules[id];if(module)return module.initialized||(module.initialized=!0,module.exports=module.factory().exports),module.exports;if(!window.acequire.tlns)return console.log(\"unable to load \"+id);var path=resolveModuleId(id,window.acequire.tlns);return\".js\"!=path.slice(-3)&&(path+=\".js\"),window.acequire.id=id,window.acequire.modules[id]={},importScripts(path),window.acequire(parentId,id)},window.acequire.modules={},window.acequire.tlns={},window.define=function(id,deps,factory){if(2==arguments.length?(factory=deps,\"string\"!=typeof id&&(deps=id,id=window.acequire.id)):1==arguments.length&&(factory=id,deps=[],id=window.acequire.id),\"function\"!=typeof factory)return window.acequire.modules[id]={exports:factory,initialized:!0},void 0;deps.length||(deps=[\"require\",\"exports\",\"module\"]);var req=function(childId){return window.acequire(id,childId)};window.acequire.modules[id]={exports:{},factory:function(){var module=this,returnExports=factory.apply(this,deps.map(function(dep){switch(dep){case\"require\":return req;case\"exports\":return module.exports;case\"module\":return module;default:return req(dep)}}));return returnExports&&(module.exports=returnExports),module}}},window.define.amd={},acequire.tlns={},window.initBaseUrls=function(topLevelNamespaces){for(var i in topLevelNamespaces)acequire.tlns[i]=topLevelNamespaces[i]},window.initSender=function(){var EventEmitter=window.acequire(\"ace/lib/event_emitter\").EventEmitter,oop=window.acequire(\"ace/lib/oop\"),Sender=function(){};return function(){oop.implement(this,EventEmitter),this.callback=function(data,callbackId){postMessage({type:\"call\",id:callbackId,data:data})},this.emit=function(name,data){postMessage({type:\"event\",name:name,data:data})}}.call(Sender.prototype),new Sender};var main=window.main=null,sender=window.sender=null;window.onmessage=function(e){var msg=e.data;if(msg.event&&sender)sender._signal(msg.event,msg.data);else if(msg.command)if(main[msg.command])main[msg.command].apply(main,msg.args);else{if(!window[msg.command])throw Error(\"Unknown command:\"+msg.command);window[msg.command].apply(window,msg.args)}else if(msg.init){window.initBaseUrls(msg.tlns),acequire(\"ace/lib/es5-shim\"),sender=window.sender=window.initSender();var clazz=acequire(msg.module)[msg.classname];main=window.main=new clazz(sender)}}}}(this),ace.define(\"ace/lib/oop\",[\"require\",\"exports\",\"module\"],function(acequire,exports){\"use strict\";exports.inherits=function(ctor,superCtor){ctor.super_=superCtor,ctor.prototype=Object.create(superCtor.prototype,{constructor:{value:ctor,enumerable:!1,writable:!0,configurable:!0}})},exports.mixin=function(obj,mixin){for(var key in mixin)obj[key]=mixin[key];return obj},exports.implement=function(proto,mixin){exports.mixin(proto,mixin)}}),ace.define(\"ace/range\",[\"require\",\"exports\",\"module\"],function(acequire,exports){\"use strict\";var comparePoints=function(p1,p2){return p1.row-p2.row||p1.column-p2.column},Range=function(startRow,startColumn,endRow,endColumn){this.start={row:startRow,column:startColumn},this.end={row:endRow,column:endColumn}};(function(){this.isEqual=function(range){return this.start.row===range.start.row&&this.end.row===range.end.row&&this.start.column===range.start.column&&this.end.column===range.end.column},this.toString=function(){return\"Range: [\"+this.start.row+\"/\"+this.start.column+\"] -> [\"+this.end.row+\"/\"+this.end.column+\"]\"},this.contains=function(row,column){return 0==this.compare(row,column)},this.compareRange=function(range){var cmp,end=range.end,start=range.start;return cmp=this.compare(end.row,end.column),1==cmp?(cmp=this.compare(start.row,start.column),1==cmp?2:0==cmp?1:0):-1==cmp?-2:(cmp=this.compare(start.row,start.column),-1==cmp?-1:1==cmp?42:0)},this.comparePoint=function(p){return this.compare(p.row,p.column)},this.containsRange=function(range){return 0==this.comparePoint(range.start)&&0==this.comparePoint(range.end)},this.intersects=function(range){var cmp=this.compareRange(range);return-1==cmp||0==cmp||1==cmp},this.isEnd=function(row,column){return this.end.row==row&&this.end.column==column},this.isStart=function(row,column){return this.start.row==row&&this.start.column==column},this.setStart=function(row,column){\"object\"==typeof row?(this.start.column=row.column,this.start.row=row.row):(this.start.row=row,this.start.column=column)},this.setEnd=function(row,column){\"object\"==typeof row?(this.end.column=row.column,this.end.row=row.row):(this.end.row=row,this.end.column=column)},this.inside=function(row,column){return 0==this.compare(row,column)?this.isEnd(row,column)||this.isStart(row,column)?!1:!0:!1},this.insideStart=function(row,column){return 0==this.compare(row,column)?this.isEnd(row,column)?!1:!0:!1},this.insideEnd=function(row,column){return 0==this.compare(row,column)?this.isStart(row,column)?!1:!0:!1},this.compare=function(row,column){return this.isMultiLine()||row!==this.start.row?this.start.row>row?-1:row>this.end.row?1:this.start.row===row?column>=this.start.column?0:-1:this.end.row===row?this.end.column>=column?0:1:0:this.start.column>column?-1:column>this.end.column?1:0},this.compareStart=function(row,column){return this.start.row==row&&this.start.column==column?-1:this.compare(row,column)},this.compareEnd=function(row,column){return this.end.row==row&&this.end.column==column?1:this.compare(row,column)},this.compareInside=function(row,column){return this.end.row==row&&this.end.column==column?1:this.start.row==row&&this.start.column==column?-1:this.compare(row,column)},this.clipRows=function(firstRow,lastRow){if(this.end.row>lastRow)var end={row:lastRow+1,column:0};else if(firstRow>this.end.row)var end={row:firstRow,column:0};if(this.start.row>lastRow)var start={row:lastRow+1,column:0};else if(firstRow>this.start.row)var start={row:firstRow,column:0};return Range.fromPoints(start||this.start,end||this.end)},this.extend=function(row,column){var cmp=this.compare(row,column);if(0==cmp)return this;if(-1==cmp)var start={row:row,column:column};else var end={row:row,column:column};return Range.fromPoints(start||this.start,end||this.end)},this.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},this.isMultiLine=function(){return this.start.row!==this.end.row},this.clone=function(){return Range.fromPoints(this.start,this.end)},this.collapseRows=function(){return 0==this.end.column?new Range(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new Range(this.start.row,0,this.end.row,0)},this.toScreenRange=function(session){var screenPosStart=session.documentToScreenPosition(this.start),screenPosEnd=session.documentToScreenPosition(this.end);return new Range(screenPosStart.row,screenPosStart.column,screenPosEnd.row,screenPosEnd.column)},this.moveBy=function(row,column){this.start.row+=row,this.start.column+=column,this.end.row+=row,this.end.column+=column}}).call(Range.prototype),Range.fromPoints=function(start,end){return new Range(start.row,start.column,end.row,end.column)},Range.comparePoints=comparePoints,Range.comparePoints=function(p1,p2){return p1.row-p2.row||p1.column-p2.column},exports.Range=Range}),ace.define(\"ace/apply_delta\",[\"require\",\"exports\",\"module\"],function(acequire,exports){\"use strict\";exports.applyDelta=function(docLines,delta){var row=delta.start.row,startColumn=delta.start.column,line=docLines[row]||\"\";switch(delta.action){case\"insert\":var lines=delta.lines;if(1===lines.length)docLines[row]=line.substring(0,startColumn)+delta.lines[0]+line.substring(startColumn);else{var args=[row,1].concat(delta.lines);docLines.splice.apply(docLines,args),docLines[row]=line.substring(0,startColumn)+docLines[row],docLines[row+delta.lines.length-1]+=line.substring(startColumn)}break;case\"remove\":var endColumn=delta.end.column,endRow=delta.end.row;row===endRow?docLines[row]=line.substring(0,startColumn)+line.substring(endColumn):docLines.splice(row,endRow-row+1,line.substring(0,startColumn)+docLines[endRow].substring(endColumn))}}}),ace.define(\"ace/lib/event_emitter\",[\"require\",\"exports\",\"module\"],function(acequire,exports){\"use strict\";var EventEmitter={},stopPropagation=function(){this.propagationStopped=!0},preventDefault=function(){this.defaultPrevented=!0};EventEmitter._emit=EventEmitter._dispatchEvent=function(eventName,e){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var listeners=this._eventRegistry[eventName]||[],defaultHandler=this._defaultHandlers[eventName];if(listeners.length||defaultHandler){\"object\"==typeof e&&e||(e={}),e.type||(e.type=eventName),e.stopPropagation||(e.stopPropagation=stopPropagation),e.preventDefault||(e.preventDefault=preventDefault),listeners=listeners.slice();for(var i=0;listeners.length>i&&(listeners[i](e,this),!e.propagationStopped);i++);return defaultHandler&&!e.defaultPrevented?defaultHandler(e,this):void 0}},EventEmitter._signal=function(eventName,e){var listeners=(this._eventRegistry||{})[eventName];if(listeners){listeners=listeners.slice();for(var i=0;listeners.length>i;i++)listeners[i](e,this)}},EventEmitter.once=function(eventName,callback){var _self=this;callback&&this.addEventListener(eventName,function newCallback(){_self.removeEventListener(eventName,newCallback),callback.apply(null,arguments)})},EventEmitter.setDefaultHandler=function(eventName,callback){var handlers=this._defaultHandlers;if(handlers||(handlers=this._defaultHandlers={_disabled_:{}}),handlers[eventName]){var old=handlers[eventName],disabled=handlers._disabled_[eventName];disabled||(handlers._disabled_[eventName]=disabled=[]),disabled.push(old);var i=disabled.indexOf(callback);-1!=i&&disabled.splice(i,1)}handlers[eventName]=callback},EventEmitter.removeDefaultHandler=function(eventName,callback){var handlers=this._defaultHandlers;if(handlers){var disabled=handlers._disabled_[eventName];if(handlers[eventName]==callback)handlers[eventName],disabled&&this.setDefaultHandler(eventName,disabled.pop());else if(disabled){var i=disabled.indexOf(callback);-1!=i&&disabled.splice(i,1)}}},EventEmitter.on=EventEmitter.addEventListener=function(eventName,callback,capturing){this._eventRegistry=this._eventRegistry||{};var listeners=this._eventRegistry[eventName];return listeners||(listeners=this._eventRegistry[eventName]=[]),-1==listeners.indexOf(callback)&&listeners[capturing?\"unshift\":\"push\"](callback),callback},EventEmitter.off=EventEmitter.removeListener=EventEmitter.removeEventListener=function(eventName,callback){this._eventRegistry=this._eventRegistry||{};var listeners=this._eventRegistry[eventName];if(listeners){var index=listeners.indexOf(callback);-1!==index&&listeners.splice(index,1)}},EventEmitter.removeAllListeners=function(eventName){this._eventRegistry&&(this._eventRegistry[eventName]=[])},exports.EventEmitter=EventEmitter}),ace.define(\"ace/anchor\",[\"require\",\"exports\",\"module\",\"ace/lib/oop\",\"ace/lib/event_emitter\"],function(acequire,exports){\"use strict\";var oop=acequire(\"./lib/oop\"),EventEmitter=acequire(\"./lib/event_emitter\").EventEmitter,Anchor=exports.Anchor=function(doc,row,column){this.$onChange=this.onChange.bind(this),this.attach(doc),column===void 0?this.setPosition(row.row,row.column):this.setPosition(row,column)};(function(){function $pointsInOrder(point1,point2,equalPointsInOrder){var bColIsAfter=equalPointsInOrder?point1.column<=point2.column:point1.columnthis.row)){var point=$getTransformedPoint(delta,{row:this.row,column:this.column},this.$insertRight);this.setPosition(point.row,point.column,!0)}},this.setPosition=function(row,column,noClip){var pos;if(pos=noClip?{row:row,column:column}:this.$clipPositionToDocument(row,column),this.row!=pos.row||this.column!=pos.column){var old={row:this.row,column:this.column};this.row=pos.row,this.column=pos.column,this._signal(\"change\",{old:old,value:pos})}},this.detach=function(){this.document.removeEventListener(\"change\",this.$onChange)},this.attach=function(doc){this.document=doc||this.document,this.document.on(\"change\",this.$onChange)},this.$clipPositionToDocument=function(row,column){var pos={};return row>=this.document.getLength()?(pos.row=Math.max(0,this.document.getLength()-1),pos.column=this.document.getLine(pos.row).length):0>row?(pos.row=0,pos.column=0):(pos.row=row,pos.column=Math.min(this.document.getLine(pos.row).length,Math.max(0,column))),0>column&&(pos.column=0),pos}}).call(Anchor.prototype)}),ace.define(\"ace/document\",[\"require\",\"exports\",\"module\",\"ace/lib/oop\",\"ace/apply_delta\",\"ace/lib/event_emitter\",\"ace/range\",\"ace/anchor\"],function(acequire,exports){\"use strict\";var oop=acequire(\"./lib/oop\"),applyDelta=acequire(\"./apply_delta\").applyDelta,EventEmitter=acequire(\"./lib/event_emitter\").EventEmitter,Range=acequire(\"./range\").Range,Anchor=acequire(\"./anchor\").Anchor,Document=function(textOrLines){this.$lines=[\"\"],0===textOrLines.length?this.$lines=[\"\"]:Array.isArray(textOrLines)?this.insertMergedLines({row:0,column:0},textOrLines):this.insert({row:0,column:0},textOrLines)};(function(){oop.implement(this,EventEmitter),this.setValue=function(text){var len=this.getLength()-1;this.remove(new Range(0,0,len,this.getLine(len).length)),this.insert({row:0,column:0},text)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(row,column){return new Anchor(this,row,column)},this.$split=0===\"aaa\".split(/a/).length?function(text){return text.replace(/\\r\\n|\\r/g,\"\\n\").split(\"\\n\")}:function(text){return text.split(/\\r\\n|\\r|\\n/)},this.$detectNewLine=function(text){var match=text.match(/^.*?(\\r\\n|\\r|\\n)/m);this.$autoNewLine=match?match[1]:\"\\n\",this._signal(\"changeNewLineMode\")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case\"windows\":return\"\\r\\n\";case\"unix\":return\"\\n\";default:return this.$autoNewLine||\"\\n\"}},this.$autoNewLine=\"\",this.$newLineMode=\"auto\",this.setNewLineMode=function(newLineMode){this.$newLineMode!==newLineMode&&(this.$newLineMode=newLineMode,this._signal(\"changeNewLineMode\"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(text){return\"\\r\\n\"==text||\"\\r\"==text||\"\\n\"==text},this.getLine=function(row){return this.$lines[row]||\"\"},this.getLines=function(firstRow,lastRow){return this.$lines.slice(firstRow,lastRow+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(range){return this.getLinesForRange(range).join(this.getNewLineCharacter())},this.getLinesForRange=function(range){var lines;if(range.start.row===range.end.row)lines=[this.getLine(range.start.row).substring(range.start.column,range.end.column)];else{lines=this.getLines(range.start.row,range.end.row),lines[0]=(lines[0]||\"\").substring(range.start.column);var l=lines.length-1;range.end.row-range.start.row==l&&(lines[l]=lines[l].substring(0,range.end.column))}return lines},this.insertLines=function(row,lines){return console.warn(\"Use of document.insertLines is deprecated. Use the insertFullLines method instead.\"),this.insertFullLines(row,lines)},this.removeLines=function(firstRow,lastRow){return console.warn(\"Use of document.removeLines is deprecated. Use the removeFullLines method instead.\"),this.removeFullLines(firstRow,lastRow)},this.insertNewLine=function(position){return console.warn(\"Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead.\"),this.insertMergedLines(position,[\"\",\"\"])},this.insert=function(position,text){return 1>=this.getLength()&&this.$detectNewLine(text),this.insertMergedLines(position,this.$split(text))},this.insertInLine=function(position,text){var start=this.clippedPos(position.row,position.column),end=this.pos(position.row,position.column+text.length);return this.applyDelta({start:start,end:end,action:\"insert\",lines:[text]},!0),this.clonePos(end)},this.clippedPos=function(row,column){var length=this.getLength();void 0===row?row=length:0>row?row=0:row>=length&&(row=length-1,column=void 0);var line=this.getLine(row);return void 0==column&&(column=line.length),column=Math.min(Math.max(column,0),line.length),{row:row,column:column}},this.clonePos=function(pos){return{row:pos.row,column:pos.column}},this.pos=function(row,column){return{row:row,column:column}},this.$clipPosition=function(position){var length=this.getLength();return position.row>=length?(position.row=Math.max(0,length-1),position.column=this.getLine(length-1).length):(position.row=Math.max(0,position.row),position.column=Math.min(Math.max(position.column,0),this.getLine(position.row).length)),position},this.insertFullLines=function(row,lines){row=Math.min(Math.max(row,0),this.getLength());var column=0;this.getLength()>row?(lines=lines.concat([\"\"]),column=0):(lines=[\"\"].concat(lines),row--,column=this.$lines[row].length),this.insertMergedLines({row:row,column:column},lines)},this.insertMergedLines=function(position,lines){var start=this.clippedPos(position.row,position.column),end={row:start.row+lines.length-1,column:(1==lines.length?start.column:0)+lines[lines.length-1].length};return this.applyDelta({start:start,end:end,action:\"insert\",lines:lines}),this.clonePos(end)},this.remove=function(range){var start=this.clippedPos(range.start.row,range.start.column),end=this.clippedPos(range.end.row,range.end.column);return this.applyDelta({start:start,end:end,action:\"remove\",lines:this.getLinesForRange({start:start,end:end})}),this.clonePos(start)},this.removeInLine=function(row,startColumn,endColumn){var start=this.clippedPos(row,startColumn),end=this.clippedPos(row,endColumn);return this.applyDelta({start:start,end:end,action:\"remove\",lines:this.getLinesForRange({start:start,end:end})},!0),this.clonePos(start)},this.removeFullLines=function(firstRow,lastRow){firstRow=Math.min(Math.max(0,firstRow),this.getLength()-1),lastRow=Math.min(Math.max(0,lastRow),this.getLength()-1);var deleteFirstNewLine=lastRow==this.getLength()-1&&firstRow>0,deleteLastNewLine=this.getLength()-1>lastRow,startRow=deleteFirstNewLine?firstRow-1:firstRow,startCol=deleteFirstNewLine?this.getLine(startRow).length:0,endRow=deleteLastNewLine?lastRow+1:lastRow,endCol=deleteLastNewLine?0:this.getLine(endRow).length,range=new Range(startRow,startCol,endRow,endCol),deletedLines=this.$lines.slice(firstRow,lastRow+1);return this.applyDelta({start:range.start,end:range.end,action:\"remove\",lines:this.getLinesForRange(range)}),deletedLines},this.removeNewLine=function(row){this.getLength()-1>row&&row>=0&&this.applyDelta({start:this.pos(row,this.getLine(row).length),end:this.pos(row+1,0),action:\"remove\",lines:[\"\",\"\"]})},this.replace=function(range,text){if(range instanceof Range||(range=Range.fromPoints(range.start,range.end)),0===text.length&&range.isEmpty())return range.start;if(text==this.getTextRange(range))return range.end;this.remove(range);var end;return end=text?this.insert(range.start,text):range.start},this.applyDeltas=function(deltas){for(var i=0;deltas.length>i;i++)this.applyDelta(deltas[i])},this.revertDeltas=function(deltas){for(var i=deltas.length-1;i>=0;i--)this.revertDelta(deltas[i])},this.applyDelta=function(delta,doNotValidate){var isInsert=\"insert\"==delta.action;(isInsert?1>=delta.lines.length&&!delta.lines[0]:!Range.comparePoints(delta.start,delta.end))||(isInsert&&delta.lines.length>2e4&&this.$splitAndapplyLargeDelta(delta,2e4),applyDelta(this.$lines,delta,doNotValidate),this._signal(\"change\",delta))},this.$splitAndapplyLargeDelta=function(delta,MAX){for(var lines=delta.lines,l=lines.length,row=delta.start.row,column=delta.start.column,from=0,to=0;;){from=to,to+=MAX-1;var chunk=lines.slice(from,to);if(to>l){delta.lines=chunk,delta.start.row=row+from,delta.start.column=column;break}chunk.push(\"\"),this.applyDelta({start:this.pos(row+from,column),end:this.pos(row+to,column=0),action:delta.action,lines:chunk},!0)}},this.revertDelta=function(delta){this.applyDelta({start:this.clonePos(delta.start),end:this.clonePos(delta.end),action:\"insert\"==delta.action?\"remove\":\"insert\",lines:delta.lines.slice()})},this.indexToPosition=function(index,startRow){for(var lines=this.$lines||this.getAllLines(),newlineLength=this.getNewLineCharacter().length,i=startRow||0,l=lines.length;l>i;i++)if(index-=lines[i].length+newlineLength,0>index)return{row:i,column:index+lines[i].length+newlineLength};return{row:l-1,column:lines[l-1].length}},this.positionToIndex=function(pos,startRow){for(var lines=this.$lines||this.getAllLines(),newlineLength=this.getNewLineCharacter().length,index=0,row=Math.min(pos.row,lines.length),i=startRow||0;row>i;++i)index+=lines[i].length+newlineLength;return index+pos.column}}).call(Document.prototype),exports.Document=Document}),ace.define(\"ace/lib/lang\",[\"require\",\"exports\",\"module\"],function(acequire,exports){\"use strict\";exports.last=function(a){return a[a.length-1]},exports.stringReverse=function(string){return string.split(\"\").reverse().join(\"\")},exports.stringRepeat=function(string,count){for(var result=\"\";count>0;)1&count&&(result+=string),(count>>=1)&&(string+=string);return result};var trimBeginRegexp=/^\\s\\s*/,trimEndRegexp=/\\s\\s*$/;exports.stringTrimLeft=function(string){return string.replace(trimBeginRegexp,\"\")},exports.stringTrimRight=function(string){return string.replace(trimEndRegexp,\"\")},exports.copyObject=function(obj){var copy={};for(var key in obj)copy[key]=obj[key];return copy},exports.copyArray=function(array){for(var copy=[],i=0,l=array.length;l>i;i++)copy[i]=array[i]&&\"object\"==typeof array[i]?this.copyObject(array[i]):array[i];return copy},exports.deepCopy=function deepCopy(obj){if(\"object\"!=typeof obj||!obj)return obj;var copy;if(Array.isArray(obj)){copy=[];for(var key=0;obj.length>key;key++)copy[key]=deepCopy(obj[key]);return copy}if(\"[object Object]\"!==Object.prototype.toString.call(obj))return obj;copy={};for(var key in obj)copy[key]=deepCopy(obj[key]);return copy},exports.arrayToMap=function(arr){for(var map={},i=0;arr.length>i;i++)map[arr[i]]=1;return map},exports.createMap=function(props){var map=Object.create(null);for(var i in props)map[i]=props[i];return map},exports.arrayRemove=function(array,value){for(var i=0;array.length>=i;i++)value===array[i]&&array.splice(i,1)},exports.escapeRegExp=function(str){return str.replace(/([.*+?^${}()|[\\]\\/\\\\])/g,\"\\\\$1\")},exports.escapeHTML=function(str){return str.replace(/&/g,\"&\").replace(/\"/g,\""\").replace(/'/g,\"'\").replace(/i;i+=2){if(Array.isArray(data[i+1]))var d={action:\"insert\",start:data[i],lines:data[i+1]};else var d={action:\"remove\",start:data[i],end:data[i+1]};doc.applyDelta(d,!0)}return _self.$timeout?deferredUpdate.schedule(_self.$timeout):(_self.onUpdate(),void 0)})};(function(){this.$timeout=500,this.setTimeout=function(timeout){this.$timeout=timeout},this.setValue=function(value){this.doc.setValue(value),this.deferredUpdate.schedule(this.$timeout)},this.getValue=function(callbackId){this.sender.callback(this.doc.getValue(),callbackId)},this.onUpdate=function(){},this.isPending=function(){return this.deferredUpdate.isPending()}}).call(Mirror.prototype)}),ace.define(\"ace/mode/javascript/jshint\",[\"require\",\"exports\",\"module\"],function(acequire,exports,module){module.exports=function outer(modules,cache,entry){function newRequire(name,jumped){if(!cache[name]){if(!modules[name]){var currentRequire=\"function\"==typeof acequire&&acequire;if(!jumped&¤tRequire)return currentRequire(name,!0);if(previousRequire)return previousRequire(name,!0);var err=Error(\"Cannot find module '\"+name+\"'\");throw err.code=\"MODULE_NOT_FOUND\",err}var m=cache[name]={exports:{}};modules[name][0].call(m.exports,function(x){var id=modules[name][1][x];return newRequire(id?id:x)},m,m.exports,outer,modules,cache,entry)}return cache[name].exports}for(var previousRequire=\"function\"==typeof acequire&&acequire,i=0;entry.length>i;i++)newRequire(entry[i]);return newRequire(entry[0])}({\"/node_modules/browserify/node_modules/events/events.js\":[function(_dereq_,module){function EventEmitter(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function isFunction(arg){return\"function\"==typeof arg}function isNumber(arg){return\"number\"==typeof arg}function isObject(arg){return\"object\"==typeof arg&&null!==arg}function isUndefined(arg){return void 0===arg}module.exports=EventEmitter,EventEmitter.EventEmitter=EventEmitter,EventEmitter.prototype._events=void 0,EventEmitter.prototype._maxListeners=void 0,EventEmitter.defaultMaxListeners=10,EventEmitter.prototype.setMaxListeners=function(n){if(!isNumber(n)||0>n||isNaN(n))throw TypeError(\"n must be a positive number\");return this._maxListeners=n,this},EventEmitter.prototype.emit=function(type){var er,handler,len,args,i,listeners;if(this._events||(this._events={}),\"error\"===type&&(!this._events.error||isObject(this._events.error)&&!this._events.error.length)){if(er=arguments[1],er instanceof Error)throw er;throw TypeError('Uncaught, unspecified \"error\" event.')}if(handler=this._events[type],isUndefined(handler))return!1;if(isFunction(handler))switch(arguments.length){case 1:handler.call(this);break;case 2:handler.call(this,arguments[1]);break;case 3:handler.call(this,arguments[1],arguments[2]);break;default:for(len=arguments.length,args=Array(len-1),i=1;len>i;i++)args[i-1]=arguments[i];handler.apply(this,args)}else if(isObject(handler)){for(len=arguments.length,args=Array(len-1),i=1;len>i;i++)args[i-1]=arguments[i];for(listeners=handler.slice(),len=listeners.length,i=0;len>i;i++)listeners[i].apply(this,args)}return!0},EventEmitter.prototype.addListener=function(type,listener){var m;if(!isFunction(listener))throw TypeError(\"listener must be a function\");if(this._events||(this._events={}),this._events.newListener&&this.emit(\"newListener\",type,isFunction(listener.listener)?listener.listener:listener),this._events[type]?isObject(this._events[type])?this._events[type].push(listener):this._events[type]=[this._events[type],listener]:this._events[type]=listener,isObject(this._events[type])&&!this._events[type].warned){var m;m=isUndefined(this._maxListeners)?EventEmitter.defaultMaxListeners:this._maxListeners,m&&m>0&&this._events[type].length>m&&(this._events[type].warned=!0,console.error(\"(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.\",this._events[type].length),\"function\"==typeof console.trace&&console.trace())}return this},EventEmitter.prototype.on=EventEmitter.prototype.addListener,EventEmitter.prototype.once=function(type,listener){function g(){this.removeListener(type,g),fired||(fired=!0,listener.apply(this,arguments))}if(!isFunction(listener))throw TypeError(\"listener must be a function\");var fired=!1;return g.listener=listener,this.on(type,g),this},EventEmitter.prototype.removeListener=function(type,listener){var list,position,length,i;if(!isFunction(listener))throw TypeError(\"listener must be a function\");if(!this._events||!this._events[type])return this;if(list=this._events[type],length=list.length,position=-1,list===listener||isFunction(list.listener)&&list.listener===listener)delete this._events[type],this._events.removeListener&&this.emit(\"removeListener\",type,listener);else if(isObject(list)){for(i=length;i-->0;)if(list[i]===listener||list[i].listener&&list[i].listener===listener){position=i;break}if(0>position)return this;1===list.length?(list.length=0,delete this._events[type]):list.splice(position,1),this._events.removeListener&&this.emit(\"removeListener\",type,listener)}return this},EventEmitter.prototype.removeAllListeners=function(type){var key,listeners;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[type]&&delete this._events[type],this;if(0===arguments.length){for(key in this._events)\"removeListener\"!==key&&this.removeAllListeners(key);return this.removeAllListeners(\"removeListener\"),this._events={},this\n}if(listeners=this._events[type],isFunction(listeners))this.removeListener(type,listeners);else for(;listeners.length;)this.removeListener(type,listeners[listeners.length-1]);return delete this._events[type],this},EventEmitter.prototype.listeners=function(type){var ret;return ret=this._events&&this._events[type]?isFunction(this._events[type])?[this._events[type]]:this._events[type].slice():[]},EventEmitter.listenerCount=function(emitter,type){var ret;return ret=emitter._events&&emitter._events[type]?isFunction(emitter._events[type])?1:emitter._events[type].length:0}},{}],\"/node_modules/jshint/data/ascii-identifier-data.js\":[function(_dereq_,module){for(var identifierStartTable=[],i=0;128>i;i++)identifierStartTable[i]=36===i||i>=65&&90>=i||95===i||i>=97&&122>=i;for(var identifierPartTable=[],i=0;128>i;i++)identifierPartTable[i]=identifierStartTable[i]||i>=48&&57>=i;module.exports={asciiIdentifierStartTable:identifierStartTable,asciiIdentifierPartTable:identifierPartTable}},{}],\"/node_modules/jshint/lodash.js\":[function(_dereq_,module,exports){(function(global){(function(){function baseFindIndex(array,predicate,fromRight){for(var length=array.length,index=fromRight?length:-1;fromRight?index--:length>++index;)if(predicate(array[index],index,array))return index;return-1}function baseIndexOf(array,value,fromIndex){if(value!==value)return indexOfNaN(array,fromIndex);for(var index=fromIndex-1,length=array.length;length>++index;)if(array[index]===value)return index;return-1}function baseIsFunction(value){return\"function\"==typeof value||!1}function baseToString(value){return\"string\"==typeof value?value:null==value?\"\":value+\"\"}function indexOfNaN(array,fromIndex,fromRight){for(var length=array.length,index=fromIndex+(fromRight?0:-1);fromRight?index--:length>++index;){var other=array[index];if(other!==other)return index}return-1}function isObjectLike(value){return!!value&&\"object\"==typeof value}function lodash(){}function arrayCopy(source,array){var index=-1,length=source.length;for(array||(array=Array(length));length>++index;)array[index]=source[index];return array}function arrayEach(array,iteratee){for(var index=-1,length=array.length;length>++index&&iteratee(array[index],index,array)!==!1;);return array}function arrayFilter(array,predicate){for(var index=-1,length=array.length,resIndex=-1,result=[];length>++index;){var value=array[index];predicate(value,index,array)&&(result[++resIndex]=value)}return result}function arrayMap(array,iteratee){for(var index=-1,length=array.length,result=Array(length);length>++index;)result[index]=iteratee(array[index],index,array);return result}function arrayMax(array){for(var index=-1,length=array.length,result=NEGATIVE_INFINITY;length>++index;){var value=array[index];value>result&&(result=value)}return result}function arraySome(array,predicate){for(var index=-1,length=array.length;length>++index;)if(predicate(array[index],index,array))return!0;return!1}function assignWith(object,source,customizer){var props=keys(source);push.apply(props,getSymbols(source));for(var index=-1,length=props.length;length>++index;){var key=props[index],value=object[key],result=customizer(value,source[key],key,object,source);(result===result?result===value:value!==value)&&(value!==undefined||key in object)||(object[key]=result)}return object}function baseCopy(source,props,object){object||(object={});for(var index=-1,length=props.length;length>++index;){var key=props[index];object[key]=source[key]}return object}function baseCallback(func,thisArg,argCount){var type=typeof func;return\"function\"==type?thisArg===undefined?func:bindCallback(func,thisArg,argCount):null==func?identity:\"object\"==type?baseMatches(func):thisArg===undefined?property(func):baseMatchesProperty(func,thisArg)}function baseClone(value,isDeep,customizer,key,object,stackA,stackB){var result;if(customizer&&(result=object?customizer(value,key,object):customizer(value)),result!==undefined)return result;if(!isObject(value))return value;var isArr=isArray(value);if(isArr){if(result=initCloneArray(value),!isDeep)return arrayCopy(value,result)}else{var tag=objToString.call(value),isFunc=tag==funcTag;if(tag!=objectTag&&tag!=argsTag&&(!isFunc||object))return cloneableTags[tag]?initCloneByTag(value,tag,isDeep):object?value:{};if(result=initCloneObject(isFunc?{}:value),!isDeep)return baseAssign(result,value)}stackA||(stackA=[]),stackB||(stackB=[]);for(var length=stackA.length;length--;)if(stackA[length]==value)return stackB[length];return stackA.push(value),stackB.push(result),(isArr?arrayEach:baseForOwn)(value,function(subValue,key){result[key]=baseClone(subValue,isDeep,customizer,key,value,stackA,stackB)}),result}function baseFilter(collection,predicate){var result=[];return baseEach(collection,function(value,index,collection){predicate(value,index,collection)&&result.push(value)}),result}function baseForIn(object,iteratee){return baseFor(object,iteratee,keysIn)}function baseForOwn(object,iteratee){return baseFor(object,iteratee,keys)}function baseGet(object,path,pathKey){if(null!=object){pathKey!==undefined&&pathKey in toObject(object)&&(path=[pathKey]);for(var index=-1,length=path.length;null!=object&&length>++index;)var result=object=object[path[index]];return result}}function baseIsEqual(value,other,customizer,isLoose,stackA,stackB){if(value===other)return 0!==value||1/value==1/other;var valType=typeof value,othType=typeof other;return\"function\"!=valType&&\"object\"!=valType&&\"function\"!=othType&&\"object\"!=othType||null==value||null==other?value!==value&&other!==other:baseIsEqualDeep(value,other,baseIsEqual,customizer,isLoose,stackA,stackB)}function baseIsEqualDeep(object,other,equalFunc,customizer,isLoose,stackA,stackB){var objIsArr=isArray(object),othIsArr=isArray(other),objTag=arrayTag,othTag=arrayTag;objIsArr||(objTag=objToString.call(object),objTag==argsTag?objTag=objectTag:objTag!=objectTag&&(objIsArr=isTypedArray(object))),othIsArr||(othTag=objToString.call(other),othTag==argsTag?othTag=objectTag:othTag!=objectTag&&(othIsArr=isTypedArray(other)));var objIsObj=objTag==objectTag,othIsObj=othTag==objectTag,isSameTag=objTag==othTag;if(isSameTag&&!objIsArr&&!objIsObj)return equalByTag(object,other,objTag);if(!isLoose){var valWrapped=objIsObj&&hasOwnProperty.call(object,\"__wrapped__\"),othWrapped=othIsObj&&hasOwnProperty.call(other,\"__wrapped__\");if(valWrapped||othWrapped)return equalFunc(valWrapped?object.value():object,othWrapped?other.value():other,customizer,isLoose,stackA,stackB)}if(!isSameTag)return!1;stackA||(stackA=[]),stackB||(stackB=[]);for(var length=stackA.length;length--;)if(stackA[length]==object)return stackB[length]==other;stackA.push(object),stackB.push(other);var result=(objIsArr?equalArrays:equalObjects)(object,other,equalFunc,customizer,isLoose,stackA,stackB);return stackA.pop(),stackB.pop(),result}function baseIsMatch(object,props,values,strictCompareFlags,customizer){for(var index=-1,length=props.length,noCustomizer=!customizer;length>++index;)if(noCustomizer&&strictCompareFlags[index]?values[index]!==object[props[index]]:!(props[index]in object))return!1;for(index=-1;length>++index;){var key=props[index],objValue=object[key],srcValue=values[index];if(noCustomizer&&strictCompareFlags[index])var result=objValue!==undefined||key in object;else result=customizer?customizer(objValue,srcValue,key):undefined,result===undefined&&(result=baseIsEqual(srcValue,objValue,customizer,!0));if(!result)return!1}return!0}function baseMatches(source){var props=keys(source),length=props.length;if(!length)return constant(!0);if(1==length){var key=props[0],value=source[key];if(isStrictComparable(value))return function(object){return null==object?!1:object[key]===value&&(value!==undefined||key in toObject(object))}}for(var values=Array(length),strictCompareFlags=Array(length);length--;)value=source[props[length]],values[length]=value,strictCompareFlags[length]=isStrictComparable(value);return function(object){return null!=object&&baseIsMatch(toObject(object),props,values,strictCompareFlags)}}function baseMatchesProperty(path,value){var isArr=isArray(path),isCommon=isKey(path)&&isStrictComparable(value),pathKey=path+\"\";return path=toPath(path),function(object){if(null==object)return!1;var key=pathKey;if(object=toObject(object),!(!isArr&&isCommon||key in object)){if(object=1==path.length?object:baseGet(object,baseSlice(path,0,-1)),null==object)return!1;key=last(path),object=toObject(object)}return object[key]===value?value!==undefined||key in object:baseIsEqual(value,object[key],null,!0)}}function baseMerge(object,source,customizer,stackA,stackB){if(!isObject(object))return object;var isSrcArr=isLength(source.length)&&(isArray(source)||isTypedArray(source));if(!isSrcArr){var props=keys(source);push.apply(props,getSymbols(source))}return arrayEach(props||source,function(srcValue,key){if(props&&(key=srcValue,srcValue=source[key]),isObjectLike(srcValue))stackA||(stackA=[]),stackB||(stackB=[]),baseMergeDeep(object,source,key,baseMerge,customizer,stackA,stackB);else{var value=object[key],result=customizer?customizer(value,srcValue,key,object,source):undefined,isCommon=result===undefined;isCommon&&(result=srcValue),!isSrcArr&&result===undefined||!isCommon&&(result===result?result===value:value!==value)||(object[key]=result)}}),object}function baseMergeDeep(object,source,key,mergeFunc,customizer,stackA,stackB){for(var length=stackA.length,srcValue=source[key];length--;)if(stackA[length]==srcValue)return object[key]=stackB[length],undefined;var value=object[key],result=customizer?customizer(value,srcValue,key,object,source):undefined,isCommon=result===undefined;isCommon&&(result=srcValue,isLength(srcValue.length)&&(isArray(srcValue)||isTypedArray(srcValue))?result=isArray(value)?value:getLength(value)?arrayCopy(value):[]:isPlainObject(srcValue)||isArguments(srcValue)?result=isArguments(value)?toPlainObject(value):isPlainObject(value)?value:{}:isCommon=!1),stackA.push(srcValue),stackB.push(result),isCommon?object[key]=mergeFunc(result,srcValue,customizer,stackA,stackB):(result===result?result!==value:value===value)&&(object[key]=result)}function baseProperty(key){return function(object){return null==object?undefined:object[key]}}function basePropertyDeep(path){var pathKey=path+\"\";return path=toPath(path),function(object){return baseGet(object,path,pathKey)}}function baseSlice(array,start,end){var index=-1,length=array.length;start=null==start?0:+start||0,0>start&&(start=-start>length?0:length+start),end=end===undefined||end>length?length:+end||0,0>end&&(end+=length),length=start>end?0:end-start>>>0,start>>>=0;for(var result=Array(length);length>++index;)result[index]=array[index+start];return result}function baseSome(collection,predicate){var result;return baseEach(collection,function(value,index,collection){return result=predicate(value,index,collection),!result}),!!result}function baseValues(object,props){for(var index=-1,length=props.length,result=Array(length);length>++index;)result[index]=object[props[index]];return result}function binaryIndex(array,value,retHighest){var low=0,high=array?array.length:low;if(\"number\"==typeof value&&value===value&&HALF_MAX_ARRAY_LENGTH>=high){for(;high>low;){var mid=low+high>>>1,computed=array[mid];(retHighest?value>=computed:value>computed)?low=mid+1:high=mid}return high}return binaryIndexBy(array,value,identity,retHighest)}function binaryIndexBy(array,value,iteratee,retHighest){value=iteratee(value);for(var low=0,high=array?array.length:0,valIsNaN=value!==value,valIsUndef=value===undefined;high>low;){var mid=floor((low+high)/2),computed=iteratee(array[mid]),isReflexive=computed===computed;if(valIsNaN)var setLow=isReflexive||retHighest;else setLow=valIsUndef?isReflexive&&(retHighest||computed!==undefined):retHighest?value>=computed:value>computed;setLow?low=mid+1:high=mid}return nativeMin(high,MAX_ARRAY_INDEX)}function bindCallback(func,thisArg,argCount){if(\"function\"!=typeof func)return identity;if(thisArg===undefined)return func;switch(argCount){case 1:return function(value){return func.call(thisArg,value)};case 3:return function(value,index,collection){return func.call(thisArg,value,index,collection)};case 4:return function(accumulator,value,index,collection){return func.call(thisArg,accumulator,value,index,collection)};case 5:return function(value,other,key,object,source){return func.call(thisArg,value,other,key,object,source)}}return function(){return func.apply(thisArg,arguments)}}function bufferClone(buffer){return bufferSlice.call(buffer,0)}function createAssigner(assigner){return restParam(function(object,sources){var index=-1,length=null==object?0:sources.length,customizer=length>2&&sources[length-2],guard=length>2&&sources[2],thisArg=length>1&&sources[length-1];for(\"function\"==typeof customizer?(customizer=bindCallback(customizer,thisArg,5),length-=2):(customizer=\"function\"==typeof thisArg?thisArg:null,length-=customizer?1:0),guard&&isIterateeCall(sources[0],sources[1],guard)&&(customizer=3>length?null:customizer,length=1);length>++index;){var source=sources[index];source&&assigner(object,source,customizer)}return object})}function createBaseEach(eachFunc,fromRight){return function(collection,iteratee){var length=collection?getLength(collection):0;if(!isLength(length))return eachFunc(collection,iteratee);for(var index=fromRight?length:-1,iterable=toObject(collection);(fromRight?index--:length>++index)&&iteratee(iterable[index],index,iterable)!==!1;);return collection}}function createBaseFor(fromRight){return function(object,iteratee,keysFunc){for(var iterable=toObject(object),props=keysFunc(object),length=props.length,index=fromRight?length:-1;fromRight?index--:length>++index;){var key=props[index];if(iteratee(iterable[key],key,iterable)===!1)break}return object}}function createFindIndex(fromRight){return function(array,predicate,thisArg){return array&&array.length?(predicate=getCallback(predicate,thisArg,3),baseFindIndex(array,predicate,fromRight)):-1}}function createForEach(arrayFunc,eachFunc){return function(collection,iteratee,thisArg){return\"function\"==typeof iteratee&&thisArg===undefined&&isArray(collection)?arrayFunc(collection,iteratee):eachFunc(collection,bindCallback(iteratee,thisArg,3))}}function equalArrays(array,other,equalFunc,customizer,isLoose,stackA,stackB){var index=-1,arrLength=array.length,othLength=other.length,result=!0;if(arrLength!=othLength&&!(isLoose&&othLength>arrLength))return!1;for(;result&&arrLength>++index;){var arrValue=array[index],othValue=other[index];if(result=undefined,customizer&&(result=isLoose?customizer(othValue,arrValue,index):customizer(arrValue,othValue,index)),result===undefined)if(isLoose)for(var othIndex=othLength;othIndex--&&(othValue=other[othIndex],!(result=arrValue&&arrValue===othValue||equalFunc(arrValue,othValue,customizer,isLoose,stackA,stackB))););else result=arrValue&&arrValue===othValue||equalFunc(arrValue,othValue,customizer,isLoose,stackA,stackB)}return!!result}function equalByTag(object,other,tag){switch(tag){case boolTag:case dateTag:return+object==+other;case errorTag:return object.name==other.name&&object.message==other.message;case numberTag:return object!=+object?other!=+other:0==object?1/object==1/other:object==+other;case regexpTag:case stringTag:return object==other+\"\"}return!1}function equalObjects(object,other,equalFunc,customizer,isLoose,stackA,stackB){var objProps=keys(object),objLength=objProps.length,othProps=keys(other),othLength=othProps.length;if(objLength!=othLength&&!isLoose)return!1;for(var skipCtor=isLoose,index=-1;objLength>++index;){var key=objProps[index],result=isLoose?key in other:hasOwnProperty.call(other,key);if(result){var objValue=object[key],othValue=other[key];result=undefined,customizer&&(result=isLoose?customizer(othValue,objValue,key):customizer(objValue,othValue,key)),result===undefined&&(result=objValue&&objValue===othValue||equalFunc(objValue,othValue,customizer,isLoose,stackA,stackB))}if(!result)return!1;skipCtor||(skipCtor=\"constructor\"==key)}if(!skipCtor){var objCtor=object.constructor,othCtor=other.constructor;if(objCtor!=othCtor&&\"constructor\"in object&&\"constructor\"in other&&!(\"function\"==typeof objCtor&&objCtor instanceof objCtor&&\"function\"==typeof othCtor&&othCtor instanceof othCtor))return!1}return!0}function getCallback(func,thisArg,argCount){var result=lodash.callback||callback;return result=result===callback?baseCallback:result,argCount?result(func,thisArg,argCount):result}function getIndexOf(collection,target,fromIndex){var result=lodash.indexOf||indexOf;return result=result===indexOf?baseIndexOf:result,collection?result(collection,target,fromIndex):result}function initCloneArray(array){var length=array.length,result=new array.constructor(length);return length&&\"string\"==typeof array[0]&&hasOwnProperty.call(array,\"index\")&&(result.index=array.index,result.input=array.input),result}function initCloneObject(object){var Ctor=object.constructor;return\"function\"==typeof Ctor&&Ctor instanceof Ctor||(Ctor=Object),new Ctor}function initCloneByTag(object,tag,isDeep){var Ctor=object.constructor;switch(tag){case arrayBufferTag:return bufferClone(object);case boolTag:case dateTag:return new Ctor(+object);case float32Tag:case float64Tag:case int8Tag:case int16Tag:case int32Tag:case uint8Tag:case uint8ClampedTag:case uint16Tag:case uint32Tag:var buffer=object.buffer;return new Ctor(isDeep?bufferClone(buffer):buffer,object.byteOffset,object.length);case numberTag:case stringTag:return new Ctor(object);case regexpTag:var result=new Ctor(object.source,reFlags.exec(object));result.lastIndex=object.lastIndex}return result}function isIndex(value,length){return value=+value,length=null==length?MAX_SAFE_INTEGER:length,value>-1&&0==value%1&&length>value}function isIterateeCall(value,index,object){if(!isObject(object))return!1;var type=typeof index;if(\"number\"==type)var length=getLength(object),prereq=isLength(length)&&isIndex(index,length);else prereq=\"string\"==type&&index in object;if(prereq){var other=object[index];return value===value?value===other:other!==other}return!1}function isKey(value,object){var type=typeof value;if(\"string\"==type&&reIsPlainProp.test(value)||\"number\"==type)return!0;if(isArray(value))return!1;var result=!reIsDeepProp.test(value);return result||null!=object&&value in toObject(object)}function isLength(value){return\"number\"==typeof value&&value>-1&&0==value%1&&MAX_SAFE_INTEGER>=value}function isStrictComparable(value){return value===value&&(0===value?1/value>0:!isObject(value))}function shimIsPlainObject(value){var Ctor;if(lodash.support,!isObjectLike(value)||objToString.call(value)!=objectTag||!hasOwnProperty.call(value,\"constructor\")&&(Ctor=value.constructor,\"function\"==typeof Ctor&&!(Ctor instanceof Ctor)))return!1;var result;return baseForIn(value,function(subValue,key){result=key}),result===undefined||hasOwnProperty.call(value,result)}function shimKeys(object){for(var props=keysIn(object),propsLength=props.length,length=propsLength&&object.length,support=lodash.support,allowIndexes=length&&isLength(length)&&(isArray(object)||support.nonEnumArgs&&isArguments(object)),index=-1,result=[];propsLength>++index;){var key=props[index];(allowIndexes&&isIndex(key,length)||hasOwnProperty.call(object,key))&&result.push(key)}return result}function toObject(value){return isObject(value)?value:Object(value)}function toPath(value){if(isArray(value))return value;var result=[];return baseToString(value).replace(rePropName,function(match,number,quote,string){result.push(quote?string.replace(reEscapeChar,\"$1\"):number||match)}),result}function indexOf(array,value,fromIndex){var length=array?array.length:0;if(!length)return-1;if(\"number\"==typeof fromIndex)fromIndex=0>fromIndex?nativeMax(length+fromIndex,0):fromIndex;else if(fromIndex){var index=binaryIndex(array,value),other=array[index];return(value===value?value===other:other!==other)?index:-1}return baseIndexOf(array,value,fromIndex||0)}function last(array){var length=array?array.length:0;return length?array[length-1]:undefined}function slice(array,start,end){var length=array?array.length:0;return length?(end&&\"number\"!=typeof end&&isIterateeCall(array,start,end)&&(start=0,end=length),baseSlice(array,start,end)):[]}function unzip(array){for(var index=-1,length=(array&&array.length&&arrayMax(arrayMap(array,getLength)))>>>0,result=Array(length);length>++index;)result[index]=arrayMap(array,baseProperty(index));return result}function includes(collection,target,fromIndex,guard){var length=collection?getLength(collection):0;return isLength(length)||(collection=values(collection),length=collection.length),length?(fromIndex=\"number\"!=typeof fromIndex||guard&&isIterateeCall(target,fromIndex,guard)?0:0>fromIndex?nativeMax(length+fromIndex,0):fromIndex||0,\"string\"==typeof collection||!isArray(collection)&&isString(collection)?length>fromIndex&&collection.indexOf(target,fromIndex)>-1:getIndexOf(collection,target,fromIndex)>-1):!1}function reject(collection,predicate,thisArg){var func=isArray(collection)?arrayFilter:baseFilter;return predicate=getCallback(predicate,thisArg,3),func(collection,function(value,index,collection){return!predicate(value,index,collection)})}function some(collection,predicate,thisArg){var func=isArray(collection)?arraySome:baseSome;return thisArg&&isIterateeCall(collection,predicate,thisArg)&&(predicate=null),(\"function\"!=typeof predicate||thisArg!==undefined)&&(predicate=getCallback(predicate,thisArg,3)),func(collection,predicate)}function restParam(func,start){if(\"function\"!=typeof func)throw new TypeError(FUNC_ERROR_TEXT);return start=nativeMax(start===undefined?func.length-1:+start||0,0),function(){for(var args=arguments,index=-1,length=nativeMax(args.length-start,0),rest=Array(length);length>++index;)rest[index]=args[start+index];switch(start){case 0:return func.call(this,rest);case 1:return func.call(this,args[0],rest);case 2:return func.call(this,args[0],args[1],rest)}var otherArgs=Array(start+1);for(index=-1;start>++index;)otherArgs[index]=args[index];return otherArgs[start]=rest,func.apply(this,otherArgs)}}function clone(value,isDeep,customizer,thisArg){return isDeep&&\"boolean\"!=typeof isDeep&&isIterateeCall(value,isDeep,customizer)?isDeep=!1:\"function\"==typeof isDeep&&(thisArg=customizer,customizer=isDeep,isDeep=!1),customizer=\"function\"==typeof customizer&&bindCallback(customizer,thisArg,1),baseClone(value,isDeep,customizer)}function isArguments(value){var length=isObjectLike(value)?value.length:undefined;return isLength(length)&&objToString.call(value)==argsTag}function isEmpty(value){if(null==value)return!0;var length=getLength(value);return isLength(length)&&(isArray(value)||isString(value)||isArguments(value)||isObjectLike(value)&&isFunction(value.splice))?!length:!keys(value).length}function isObject(value){var type=typeof value;return\"function\"==type||!!value&&\"object\"==type}function isNative(value){return null==value?!1:objToString.call(value)==funcTag?reIsNative.test(fnToString.call(value)):isObjectLike(value)&&reIsHostCtor.test(value)}function isNumber(value){return\"number\"==typeof value||isObjectLike(value)&&objToString.call(value)==numberTag}function isString(value){return\"string\"==typeof value||isObjectLike(value)&&objToString.call(value)==stringTag}function isTypedArray(value){return isObjectLike(value)&&isLength(value.length)&&!!typedArrayTags[objToString.call(value)]}function toPlainObject(value){return baseCopy(value,keysIn(value))}function has(object,path){if(null==object)return!1;var result=hasOwnProperty.call(object,path);return result||isKey(path)||(path=toPath(path),object=1==path.length?object:baseGet(object,baseSlice(path,0,-1)),path=last(path),result=null!=object&&hasOwnProperty.call(object,path)),result}function keysIn(object){if(null==object)return[];isObject(object)||(object=Object(object));var length=object.length;length=length&&isLength(length)&&(isArray(object)||support.nonEnumArgs&&isArguments(object))&&length||0;for(var Ctor=object.constructor,index=-1,isProto=\"function\"==typeof Ctor&&Ctor.prototype===object,result=Array(length),skipIndexes=length>0;length>++index;)result[index]=index+\"\";for(var key in object)skipIndexes&&isIndex(key,length)||\"constructor\"==key&&(isProto||!hasOwnProperty.call(object,key))||result.push(key);return result}function values(object){return baseValues(object,keys(object))}function escapeRegExp(string){return string=baseToString(string),string&&reHasRegExpChars.test(string)?string.replace(reRegExpChars,\"\\\\$&\"):string}function callback(func,thisArg,guard){return guard&&isIterateeCall(func,thisArg,guard)&&(thisArg=null),baseCallback(func,thisArg)}function constant(value){return function(){return value}}function identity(value){return value}function property(path){return isKey(path)?baseProperty(path):basePropertyDeep(path)}var undefined,VERSION=\"3.7.0\",FUNC_ERROR_TEXT=\"Expected a function\",argsTag=\"[object Arguments]\",arrayTag=\"[object Array]\",boolTag=\"[object Boolean]\",dateTag=\"[object Date]\",errorTag=\"[object Error]\",funcTag=\"[object Function]\",mapTag=\"[object Map]\",numberTag=\"[object Number]\",objectTag=\"[object Object]\",regexpTag=\"[object RegExp]\",setTag=\"[object Set]\",stringTag=\"[object String]\",weakMapTag=\"[object WeakMap]\",arrayBufferTag=\"[object ArrayBuffer]\",float32Tag=\"[object Float32Array]\",float64Tag=\"[object Float64Array]\",int8Tag=\"[object Int8Array]\",int16Tag=\"[object Int16Array]\",int32Tag=\"[object Int32Array]\",uint8Tag=\"[object Uint8Array]\",uint8ClampedTag=\"[object Uint8ClampedArray]\",uint16Tag=\"[object Uint16Array]\",uint32Tag=\"[object Uint32Array]\",reIsDeepProp=/\\.|\\[(?:[^[\\]]+|([\"'])(?:(?!\\1)[^\\n\\\\]|\\\\.)*?)\\1\\]/,reIsPlainProp=/^\\w*$/,rePropName=/[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\n\\\\]|\\\\.)*?)\\2)\\]/g,reRegExpChars=/[.*+?^${}()|[\\]\\/\\\\]/g,reHasRegExpChars=RegExp(reRegExpChars.source),reEscapeChar=/\\\\(\\\\)?/g,reFlags=/\\w*$/,reIsHostCtor=/^\\[object .+?Constructor\\]$/,typedArrayTags={};typedArrayTags[float32Tag]=typedArrayTags[float64Tag]=typedArrayTags[int8Tag]=typedArrayTags[int16Tag]=typedArrayTags[int32Tag]=typedArrayTags[uint8Tag]=typedArrayTags[uint8ClampedTag]=typedArrayTags[uint16Tag]=typedArrayTags[uint32Tag]=!0,typedArrayTags[argsTag]=typedArrayTags[arrayTag]=typedArrayTags[arrayBufferTag]=typedArrayTags[boolTag]=typedArrayTags[dateTag]=typedArrayTags[errorTag]=typedArrayTags[funcTag]=typedArrayTags[mapTag]=typedArrayTags[numberTag]=typedArrayTags[objectTag]=typedArrayTags[regexpTag]=typedArrayTags[setTag]=typedArrayTags[stringTag]=typedArrayTags[weakMapTag]=!1;var cloneableTags={};cloneableTags[argsTag]=cloneableTags[arrayTag]=cloneableTags[arrayBufferTag]=cloneableTags[boolTag]=cloneableTags[dateTag]=cloneableTags[float32Tag]=cloneableTags[float64Tag]=cloneableTags[int8Tag]=cloneableTags[int16Tag]=cloneableTags[int32Tag]=cloneableTags[numberTag]=cloneableTags[objectTag]=cloneableTags[regexpTag]=cloneableTags[stringTag]=cloneableTags[uint8Tag]=cloneableTags[uint8ClampedTag]=cloneableTags[uint16Tag]=cloneableTags[uint32Tag]=!0,cloneableTags[errorTag]=cloneableTags[funcTag]=cloneableTags[mapTag]=cloneableTags[setTag]=cloneableTags[weakMapTag]=!1;var objectTypes={\"function\":!0,object:!0},freeExports=objectTypes[typeof exports]&&exports&&!exports.nodeType&&exports,freeModule=objectTypes[typeof module]&&module&&!module.nodeType&&module,freeGlobal=freeExports&&freeModule&&\"object\"==typeof global&&global&&global.Object&&global,freeSelf=objectTypes[typeof self]&&self&&self.Object&&self,freeWindow=objectTypes[typeof window]&&window&&window.Object&&window,moduleExports=freeModule&&freeModule.exports===freeExports&&freeExports,root=freeGlobal||freeWindow!==(this&&this.window)&&freeWindow||freeSelf||this,arrayProto=Array.prototype,objectProto=Object.prototype,fnToString=Function.prototype.toString,hasOwnProperty=objectProto.hasOwnProperty,objToString=objectProto.toString,reIsNative=RegExp(\"^\"+escapeRegExp(objToString).replace(/toString|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g,\"$1.*?\")+\"$\"),ArrayBuffer=isNative(ArrayBuffer=root.ArrayBuffer)&&ArrayBuffer,bufferSlice=isNative(bufferSlice=ArrayBuffer&&new ArrayBuffer(0).slice)&&bufferSlice,floor=Math.floor,getOwnPropertySymbols=isNative(getOwnPropertySymbols=Object.getOwnPropertySymbols)&&getOwnPropertySymbols,getPrototypeOf=isNative(getPrototypeOf=Object.getPrototypeOf)&&getPrototypeOf,push=arrayProto.push,preventExtensions=isNative(Object.preventExtensions=Object.preventExtensions)&&preventExtensions,propertyIsEnumerable=objectProto.propertyIsEnumerable,Uint8Array=isNative(Uint8Array=root.Uint8Array)&&Uint8Array,Float64Array=function(){try{var func=isNative(func=root.Float64Array)&&func,result=new func(new ArrayBuffer(10),0,1)&&func}catch(e){}return result}(),nativeAssign=function(){var object={1:0},func=preventExtensions&&isNative(func=Object.assign)&&func;try{func(preventExtensions(object),\"xo\")}catch(e){}return!object[1]&&func}(),nativeIsArray=isNative(nativeIsArray=Array.isArray)&&nativeIsArray,nativeKeys=isNative(nativeKeys=Object.keys)&&nativeKeys,nativeMax=Math.max,nativeMin=Math.min,NEGATIVE_INFINITY=Number.NEGATIVE_INFINITY,MAX_ARRAY_LENGTH=Math.pow(2,32)-1,MAX_ARRAY_INDEX=MAX_ARRAY_LENGTH-1,HALF_MAX_ARRAY_LENGTH=MAX_ARRAY_LENGTH>>>1,FLOAT64_BYTES_PER_ELEMENT=Float64Array?Float64Array.BYTES_PER_ELEMENT:0,MAX_SAFE_INTEGER=Math.pow(2,53)-1,support=lodash.support={};(function(x){var Ctor=function(){this.x=x},props=[];Ctor.prototype={valueOf:x,y:x};for(var key in new Ctor)props.push(key);support.funcDecomp=/\\bthis\\b/.test(function(){return this}),support.funcNames=\"string\"==typeof Function.name;try{support.nonEnumArgs=!propertyIsEnumerable.call(arguments,1)}catch(e){support.nonEnumArgs=!0}})(1,0);var baseAssign=nativeAssign||function(object,source){return null==source?object:baseCopy(source,getSymbols(source),baseCopy(source,keys(source),object))},baseEach=createBaseEach(baseForOwn),baseFor=createBaseFor();bufferSlice||(bufferClone=ArrayBuffer&&Uint8Array?function(buffer){var byteLength=buffer.byteLength,floatLength=Float64Array?floor(byteLength/FLOAT64_BYTES_PER_ELEMENT):0,offset=floatLength*FLOAT64_BYTES_PER_ELEMENT,result=new ArrayBuffer(byteLength);if(floatLength){var view=new Float64Array(result,0,floatLength);view.set(new Float64Array(buffer,0,floatLength))}return byteLength!=offset&&(view=new Uint8Array(result,offset),view.set(new Uint8Array(buffer,offset))),result}:constant(null));var getLength=baseProperty(\"length\"),getSymbols=getOwnPropertySymbols?function(object){return getOwnPropertySymbols(toObject(object))}:constant([]),findLastIndex=createFindIndex(!0),zip=restParam(unzip),forEach=createForEach(arrayEach,baseEach),isArray=nativeIsArray||function(value){return isObjectLike(value)&&isLength(value.length)&&objToString.call(value)==arrayTag},isFunction=baseIsFunction(/x/)||Uint8Array&&!baseIsFunction(Uint8Array)?function(value){return objToString.call(value)==funcTag}:baseIsFunction,isPlainObject=getPrototypeOf?function(value){if(!value||objToString.call(value)!=objectTag)return!1;var valueOf=value.valueOf,objProto=isNative(valueOf)&&(objProto=getPrototypeOf(valueOf))&&getPrototypeOf(objProto);return objProto?value==objProto||getPrototypeOf(value)==objProto:shimIsPlainObject(value)}:shimIsPlainObject,assign=createAssigner(function(object,source,customizer){return customizer?assignWith(object,source,customizer):baseAssign(object,source)}),keys=nativeKeys?function(object){if(object)var Ctor=object.constructor,length=object.length;return\"function\"==typeof Ctor&&Ctor.prototype===object||\"function\"!=typeof object&&isLength(length)?shimKeys(object):isObject(object)?nativeKeys(object):[]}:shimKeys,merge=createAssigner(baseMerge);lodash.assign=assign,lodash.callback=callback,lodash.constant=constant,lodash.forEach=forEach,lodash.keys=keys,lodash.keysIn=keysIn,lodash.merge=merge,lodash.property=property,lodash.reject=reject,lodash.restParam=restParam,lodash.slice=slice,lodash.toPlainObject=toPlainObject,lodash.unzip=unzip,lodash.values=values,lodash.zip=zip,lodash.each=forEach,lodash.extend=assign,lodash.iteratee=callback,lodash.clone=clone,lodash.escapeRegExp=escapeRegExp,lodash.findLastIndex=findLastIndex,lodash.has=has,lodash.identity=identity,lodash.includes=includes,lodash.indexOf=indexOf,lodash.isArguments=isArguments,lodash.isArray=isArray,lodash.isEmpty=isEmpty,lodash.isFunction=isFunction,lodash.isNative=isNative,lodash.isNumber=isNumber,lodash.isObject=isObject,lodash.isPlainObject=isPlainObject,lodash.isString=isString,lodash.isTypedArray=isTypedArray,lodash.last=last,lodash.some=some,lodash.any=some,lodash.contains=includes,lodash.include=includes,lodash.VERSION=VERSION,freeExports&&freeModule?moduleExports?(freeModule.exports=lodash)._=lodash:freeExports._=lodash:root._=lodash\n}).call(this)}).call(this,\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{}],\"/node_modules/jshint/src/jshint.js\":[function(_dereq_,module,exports){var _=_dereq_(\"../lodash\"),events=_dereq_(\"events\"),vars=_dereq_(\"./vars.js\"),messages=_dereq_(\"./messages.js\"),Lexer=_dereq_(\"./lex.js\").Lexer,reg=_dereq_(\"./reg.js\"),state=_dereq_(\"./state.js\").state,style=_dereq_(\"./style.js\"),options=_dereq_(\"./options.js\"),scopeManager=_dereq_(\"./scope-manager.js\"),JSHINT=function(){\"use strict\";function checkOption(name,t){return name=name.trim(),/^[+-]W\\d{3}$/g.test(name)?!0:-1!==options.validNames.indexOf(name)||\"jslint\"===t.type||_.has(options.removed,name)?!0:(error(\"E001\",t,name),!1)}function isString(obj){return\"[object String]\"===Object.prototype.toString.call(obj)}function isIdentifier(tkn,value){return tkn?tkn.identifier&&tkn.value===value?!0:!1:!1}function isReserved(token){if(!token.reserved)return!1;var meta=token.meta;if(meta&&meta.isFutureReservedWord&&state.inES5()){if(!meta.es5)return!1;if(meta.strictOnly&&!state.option.strict&&!state.isStrict())return!1;if(token.isProperty)return!1}return!0}function supplant(str,data){return str.replace(/\\{([^{}]*)\\}/g,function(a,b){var r=data[b];return\"string\"==typeof r||\"number\"==typeof r?r:a})}function combine(dest,src){Object.keys(src).forEach(function(name){_.has(JSHINT.blacklist,name)||(dest[name]=src[name])})}function processenforceall(){if(state.option.enforceall){for(var enforceopt in options.bool.enforcing)void 0!==state.option[enforceopt]||options.noenforceall[enforceopt]||(state.option[enforceopt]=!0);for(var relaxopt in options.bool.relaxing)void 0===state.option[relaxopt]&&(state.option[relaxopt]=!1)}}function assume(){processenforceall(),state.option.esversion||state.option.moz||(state.option.esversion=state.option.es3?3:state.option.esnext?6:5),state.inES5()&&combine(predefined,vars.ecmaIdentifiers[5]),state.inES6()&&combine(predefined,vars.ecmaIdentifiers[6]),state.option.module&&(state.option.strict===!0&&(state.option.strict=\"global\"),state.inES6()||warning(\"W134\",state.tokens.next,\"module\",6)),state.option.couch&&combine(predefined,vars.couch),state.option.qunit&&combine(predefined,vars.qunit),state.option.rhino&&combine(predefined,vars.rhino),state.option.shelljs&&(combine(predefined,vars.shelljs),combine(predefined,vars.node)),state.option.typed&&combine(predefined,vars.typed),state.option.phantom&&(combine(predefined,vars.phantom),state.option.strict===!0&&(state.option.strict=\"global\")),state.option.prototypejs&&combine(predefined,vars.prototypejs),state.option.node&&(combine(predefined,vars.node),combine(predefined,vars.typed),state.option.strict===!0&&(state.option.strict=\"global\")),state.option.devel&&combine(predefined,vars.devel),state.option.dojo&&combine(predefined,vars.dojo),state.option.browser&&(combine(predefined,vars.browser),combine(predefined,vars.typed)),state.option.browserify&&(combine(predefined,vars.browser),combine(predefined,vars.typed),combine(predefined,vars.browserify),state.option.strict===!0&&(state.option.strict=\"global\")),state.option.nonstandard&&combine(predefined,vars.nonstandard),state.option.jasmine&&combine(predefined,vars.jasmine),state.option.jquery&&combine(predefined,vars.jquery),state.option.mootools&&combine(predefined,vars.mootools),state.option.worker&&combine(predefined,vars.worker),state.option.wsh&&combine(predefined,vars.wsh),state.option.globalstrict&&state.option.strict!==!1&&(state.option.strict=\"global\"),state.option.yui&&combine(predefined,vars.yui),state.option.mocha&&combine(predefined,vars.mocha)}function quit(code,line,chr){var percentage=Math.floor(100*(line/state.lines.length)),message=messages.errors[code].desc;throw{name:\"JSHintError\",line:line,character:chr,message:message+\" (\"+percentage+\"% scanned).\",raw:message,code:code}}function removeIgnoredMessages(){var ignored=state.ignoredLines;_.isEmpty(ignored)||(JSHINT.errors=_.reject(JSHINT.errors,function(err){return ignored[err.line]}))}function warning(code,t,a,b,c,d){var ch,l,w,msg;if(/^W\\d{3}$/.test(code)){if(state.ignored[code])return;msg=messages.warnings[code]}else/E\\d{3}/.test(code)?msg=messages.errors[code]:/I\\d{3}/.test(code)&&(msg=messages.info[code]);return t=t||state.tokens.next||{},\"(end)\"===t.id&&(t=state.tokens.curr),l=t.line||0,ch=t.from||0,w={id:\"(error)\",raw:msg.desc,code:msg.code,evidence:state.lines[l-1]||\"\",line:l,character:ch,scope:JSHINT.scope,a:a,b:b,c:c,d:d},w.reason=supplant(msg.desc,w),JSHINT.errors.push(w),removeIgnoredMessages(),JSHINT.errors.length>=state.option.maxerr&&quit(\"E043\",l,ch),w}function warningAt(m,l,ch,a,b,c,d){return warning(m,{line:l,from:ch},a,b,c,d)}function error(m,t,a,b,c,d){warning(m,t,a,b,c,d)}function errorAt(m,l,ch,a,b,c,d){return error(m,{line:l,from:ch},a,b,c,d)}function addInternalSrc(elem,src){var i;return i={id:\"(internal)\",elem:elem,value:src},JSHINT.internals.push(i),i}function doOption(){var nt=state.tokens.next,body=nt.body.match(/(-\\s+)?[^\\s,:]+(?:\\s*:\\s*(-\\s+)?[^\\s,]+)?/g)||[],predef={};if(\"globals\"===nt.type){body.forEach(function(g,idx){g=g.split(\":\");var key=(g[0]||\"\").trim(),val=(g[1]||\"\").trim();if(\"-\"===key||!key.length){if(idx>0&&idx===body.length-1)return;return error(\"E002\",nt),void 0}\"-\"===key.charAt(0)?(key=key.slice(1),val=!1,JSHINT.blacklist[key]=key,delete predefined[key]):predef[key]=\"true\"===val}),combine(predefined,predef);for(var key in predef)_.has(predef,key)&&(declared[key]=nt)}\"exported\"===nt.type&&body.forEach(function(e,idx){if(!e.length){if(idx>0&&idx===body.length-1)return;return error(\"E002\",nt),void 0}state.funct[\"(scope)\"].addExported(e)}),\"members\"===nt.type&&(membersOnly=membersOnly||{},body.forEach(function(m){var ch1=m.charAt(0),ch2=m.charAt(m.length-1);ch1!==ch2||'\"'!==ch1&&\"'\"!==ch1||(m=m.substr(1,m.length-2).replace('\\\\\"','\"')),membersOnly[m]=!1}));var numvals=[\"maxstatements\",\"maxparams\",\"maxdepth\",\"maxcomplexity\",\"maxerr\",\"maxlen\",\"indent\"];(\"jshint\"===nt.type||\"jslint\"===nt.type)&&(body.forEach(function(g){g=g.split(\":\");var key=(g[0]||\"\").trim(),val=(g[1]||\"\").trim();if(checkOption(key,nt))if(numvals.indexOf(key)>=0)if(\"false\"!==val){if(val=+val,\"number\"!=typeof val||!isFinite(val)||0>=val||Math.floor(val)!==val)return error(\"E032\",nt,g[1].trim()),void 0;state.option[key]=val}else state.option[key]=\"indent\"===key?4:!1;else{if(\"validthis\"===key)return state.funct[\"(global)\"]?void error(\"E009\"):\"true\"!==val&&\"false\"!==val?void error(\"E002\",nt):(state.option.validthis=\"true\"===val,void 0);if(\"quotmark\"!==key)if(\"shadow\"!==key)if(\"unused\"!==key)if(\"latedef\"!==key)if(\"ignore\"!==key)if(\"strict\"!==key){\"module\"===key&&(hasParsedCode(state.funct)||error(\"E055\",state.tokens.next,\"module\"));var esversions={es3:3,es5:5,esnext:6};if(!_.has(esversions,key)){if(\"esversion\"===key){switch(val){case\"5\":state.inES5(!0)&&warning(\"I003\");case\"3\":case\"6\":state.option.moz=!1,state.option.esversion=+val;break;case\"2015\":state.option.moz=!1,state.option.esversion=6;break;default:error(\"E002\",nt)}return hasParsedCode(state.funct)||error(\"E055\",state.tokens.next,\"esversion\"),void 0}var match=/^([+-])(W\\d{3})$/g.exec(key);if(match)return state.ignored[match[2]]=\"-\"===match[1],void 0;var tn;return\"true\"===val||\"false\"===val?(\"jslint\"===nt.type?(tn=options.renamed[key]||key,state.option[tn]=\"true\"===val,void 0!==options.inverted[tn]&&(state.option[tn]=!state.option[tn])):state.option[key]=\"true\"===val,\"newcap\"===key&&(state.option[\"(explicitNewcap)\"]=!0),void 0):(error(\"E002\",nt),void 0)}switch(val){case\"true\":state.option.moz=!1,state.option.esversion=esversions[key];break;case\"false\":state.option.moz||(state.option.esversion=5);break;default:error(\"E002\",nt)}}else switch(val){case\"true\":state.option.strict=!0;break;case\"false\":state.option.strict=!1;break;case\"func\":case\"global\":case\"implied\":state.option.strict=val;break;default:error(\"E002\",nt)}else switch(val){case\"line\":state.ignoredLines[nt.line]=!0,removeIgnoredMessages();break;default:error(\"E002\",nt)}else switch(val){case\"true\":state.option.latedef=!0;break;case\"false\":state.option.latedef=!1;break;case\"nofunc\":state.option.latedef=\"nofunc\";break;default:error(\"E002\",nt)}else switch(val){case\"true\":state.option.unused=!0;break;case\"false\":state.option.unused=!1;break;case\"vars\":case\"strict\":state.option.unused=val;break;default:error(\"E002\",nt)}else switch(val){case\"true\":state.option.shadow=!0;break;case\"outer\":state.option.shadow=\"outer\";break;case\"false\":case\"inner\":state.option.shadow=\"inner\";break;default:error(\"E002\",nt)}else switch(val){case\"true\":case\"false\":state.option.quotmark=\"true\"===val;break;case\"double\":case\"single\":state.option.quotmark=val;break;default:error(\"E002\",nt)}}}),assume())}function peek(p){var t,i=p||0,j=lookahead.length;if(j>i)return lookahead[i];for(;i>=j;)t=lookahead[j],t||(t=lookahead[j]=lex.token()),j+=1;return t||\"(end)\"!==state.tokens.next.id?t:state.tokens.next}function peekIgnoreEOL(){var t,i=0;do t=peek(i++);while(\"(endline)\"===t.id);return t}function advance(id,t){switch(state.tokens.curr.id){case\"(number)\":\".\"===state.tokens.next.id&&warning(\"W005\",state.tokens.curr);break;case\"-\":(\"-\"===state.tokens.next.id||\"--\"===state.tokens.next.id)&&warning(\"W006\");break;case\"+\":(\"+\"===state.tokens.next.id||\"++\"===state.tokens.next.id)&&warning(\"W007\")}for(id&&state.tokens.next.id!==id&&(t?\"(end)\"===state.tokens.next.id?error(\"E019\",t,t.id):error(\"E020\",state.tokens.next,id,t.id,t.line,state.tokens.next.value):(\"(identifier)\"!==state.tokens.next.type||state.tokens.next.value!==id)&&warning(\"W116\",state.tokens.next,id,state.tokens.next.value)),state.tokens.prev=state.tokens.curr,state.tokens.curr=state.tokens.next;;){if(state.tokens.next=lookahead.shift()||lex.token(),state.tokens.next||quit(\"E041\",state.tokens.curr.line),\"(end)\"===state.tokens.next.id||\"(error)\"===state.tokens.next.id)return;if(state.tokens.next.check&&state.tokens.next.check(),state.tokens.next.isSpecial)\"falls through\"===state.tokens.next.type?state.tokens.curr.caseFallsThrough=!0:doOption();else if(\"(endline)\"!==state.tokens.next.id)break}}function isInfix(token){return token.infix||!token.identifier&&!token.template&&!!token.led}function isEndOfExpr(){var curr=state.tokens.curr,next=state.tokens.next;return\";\"===next.id||\"}\"===next.id||\":\"===next.id?!0:isInfix(next)===isInfix(curr)||\"yield\"===curr.id&&state.inMoz()?curr.line!==startLine(next):!1}function isBeginOfExpr(prev){return!prev.left&&\"unary\"!==prev.arity}function expression(rbp,initial){var left,isArray=!1,isObject=!1,isLetExpr=!1;state.nameStack.push(),initial||\"let\"!==state.tokens.next.value||\"(\"!==peek(0).value||(state.inMoz()||warning(\"W118\",state.tokens.next,\"let expressions\"),isLetExpr=!0,state.funct[\"(scope)\"].stack(),advance(\"let\"),advance(\"(\"),state.tokens.prev.fud(),advance(\")\")),\"(end)\"===state.tokens.next.id&&error(\"E006\",state.tokens.curr);var isDangerous=state.option.asi&&state.tokens.prev.line!==startLine(state.tokens.curr)&&_.contains([\"]\",\")\"],state.tokens.prev.id)&&_.contains([\"[\",\"(\"],state.tokens.curr.id);if(isDangerous&&warning(\"W014\",state.tokens.curr,state.tokens.curr.id),advance(),initial&&(state.funct[\"(verb)\"]=state.tokens.curr.value,state.tokens.curr.beginsStmt=!0),initial===!0&&state.tokens.curr.fud)left=state.tokens.curr.fud();else for(state.tokens.curr.nud?left=state.tokens.curr.nud():error(\"E030\",state.tokens.curr,state.tokens.curr.id);(state.tokens.next.lbp>rbp||\"(template)\"===state.tokens.next.type)&&!isEndOfExpr();)isArray=\"Array\"===state.tokens.curr.value,isObject=\"Object\"===state.tokens.curr.value,left&&(left.value||left.first&&left.first.value)&&(\"new\"!==left.value||left.first&&left.first.value&&\".\"===left.first.value)&&(isArray=!1,left.value!==state.tokens.curr.value&&(isObject=!1)),advance(),isArray&&\"(\"===state.tokens.curr.id&&\")\"===state.tokens.next.id&&warning(\"W009\",state.tokens.curr),isObject&&\"(\"===state.tokens.curr.id&&\")\"===state.tokens.next.id&&warning(\"W010\",state.tokens.curr),left&&state.tokens.curr.led?left=state.tokens.curr.led(left):error(\"E033\",state.tokens.curr,state.tokens.curr.id);return isLetExpr&&state.funct[\"(scope)\"].unstack(),state.nameStack.pop(),left}function startLine(token){return token.startLine||token.line}function nobreaknonadjacent(left,right){left=left||state.tokens.curr,right=right||state.tokens.next,state.option.laxbreak||left.line===startLine(right)||warning(\"W014\",right,right.value)}function nolinebreak(t){t=t||state.tokens.curr,t.line!==startLine(state.tokens.next)&&warning(\"E022\",t,t.value)}function nobreakcomma(left,right){left.line!==startLine(right)&&(state.option.laxcomma||(comma.first&&(warning(\"I001\"),comma.first=!1),warning(\"W014\",left,right.value)))}function comma(opts){if(opts=opts||{},opts.peek?nobreakcomma(state.tokens.prev,state.tokens.curr):(nobreakcomma(state.tokens.curr,state.tokens.next),advance(\",\")),state.tokens.next.identifier&&(!opts.property||!state.inES5()))switch(state.tokens.next.value){case\"break\":case\"case\":case\"catch\":case\"continue\":case\"default\":case\"do\":case\"else\":case\"finally\":case\"for\":case\"if\":case\"in\":case\"instanceof\":case\"return\":case\"switch\":case\"throw\":case\"try\":case\"var\":case\"let\":case\"while\":case\"with\":return error(\"E024\",state.tokens.next,state.tokens.next.value),!1}if(\"(punctuator)\"===state.tokens.next.type)switch(state.tokens.next.value){case\"}\":case\"]\":case\",\":if(opts.allowTrailing)return!0;case\")\":return error(\"E024\",state.tokens.next,state.tokens.next.value),!1}return!0}function symbol(s,p){var x=state.syntax[s];return x&&\"object\"==typeof x||(state.syntax[s]=x={id:s,lbp:p,value:s}),x}function delim(s){var x=symbol(s,0);return x.delim=!0,x}function stmt(s,f){var x=delim(s);return x.identifier=x.reserved=!0,x.fud=f,x}function blockstmt(s,f){var x=stmt(s,f);return x.block=!0,x}function reserveName(x){var c=x.id.charAt(0);return(c>=\"a\"&&\"z\">=c||c>=\"A\"&&\"Z\">=c)&&(x.identifier=x.reserved=!0),x}function prefix(s,f){var x=symbol(s,150);return reserveName(x),x.nud=\"function\"==typeof f?f:function(){return this.arity=\"unary\",this.right=expression(150),(\"++\"===this.id||\"--\"===this.id)&&(state.option.plusplus?warning(\"W016\",this,this.id):!this.right||this.right.identifier&&!isReserved(this.right)||\".\"===this.right.id||\"[\"===this.right.id||warning(\"W017\",this),this.right&&this.right.isMetaProperty?error(\"E031\",this):this.right&&this.right.identifier&&state.funct[\"(scope)\"].block.modify(this.right.value,this)),this},x}function type(s,f){var x=delim(s);return x.type=s,x.nud=f,x}function reserve(name,func){var x=type(name,func);return x.identifier=!0,x.reserved=!0,x}function FutureReservedWord(name,meta){var x=type(name,meta&&meta.nud||function(){return this});return meta=meta||{},meta.isFutureReservedWord=!0,x.value=name,x.identifier=!0,x.reserved=!0,x.meta=meta,x}function reservevar(s,v){return reserve(s,function(){return\"function\"==typeof v&&v(this),this})}function infix(s,f,p,w){var x=symbol(s,p);return reserveName(x),x.infix=!0,x.led=function(left){return w||nobreaknonadjacent(state.tokens.prev,state.tokens.curr),\"in\"!==s&&\"instanceof\"!==s||\"!\"!==left.id||warning(\"W018\",left,\"!\"),\"function\"==typeof f?f(left,this):(this.left=left,this.right=expression(p),this)},x}function application(s){var x=symbol(s,42);return x.led=function(left){return nobreaknonadjacent(state.tokens.prev,state.tokens.curr),this.left=left,this.right=doFunction({type:\"arrow\",loneArg:left}),this},x}function relation(s,f){var x=symbol(s,100);return x.led=function(left){nobreaknonadjacent(state.tokens.prev,state.tokens.curr),this.left=left;var right=this.right=expression(100);return isIdentifier(left,\"NaN\")||isIdentifier(right,\"NaN\")?warning(\"W019\",this):f&&f.apply(this,[left,right]),left&&right||quit(\"E041\",state.tokens.curr.line),\"!\"===left.id&&warning(\"W018\",left,\"!\"),\"!\"===right.id&&warning(\"W018\",right,\"!\"),this},x}function isPoorRelation(node){return node&&(\"(number)\"===node.type&&0===+node.value||\"(string)\"===node.type&&\"\"===node.value||\"null\"===node.type&&!state.option.eqnull||\"true\"===node.type||\"false\"===node.type||\"undefined\"===node.type)}function isTypoTypeof(left,right,state){var values;return state.option.notypeof?!1:left&&right?(values=state.inES6()?typeofValues.es6:typeofValues.es3,\"(identifier)\"===right.type&&\"typeof\"===right.value&&\"(string)\"===left.type?!_.contains(values,left.value):!1):!1}function isGlobalEval(left,state){var isGlobal=!1;return\"this\"===left.type&&null===state.funct[\"(context)\"]?isGlobal=!0:\"(identifier)\"===left.type&&(state.option.node&&\"global\"===left.value?isGlobal=!0:!state.option.browser||\"window\"!==left.value&&\"document\"!==left.value||(isGlobal=!0)),isGlobal}function findNativePrototype(left){function walkPrototype(obj){return\"object\"==typeof obj?\"prototype\"===obj.right?obj:walkPrototype(obj.left):void 0}function walkNative(obj){for(;!obj.identifier&&\"object\"==typeof obj.left;)obj=obj.left;return obj.identifier&&natives.indexOf(obj.value)>=0?obj.value:void 0}var natives=[\"Array\",\"ArrayBuffer\",\"Boolean\",\"Collator\",\"DataView\",\"Date\",\"DateTimeFormat\",\"Error\",\"EvalError\",\"Float32Array\",\"Float64Array\",\"Function\",\"Infinity\",\"Intl\",\"Int16Array\",\"Int32Array\",\"Int8Array\",\"Iterator\",\"Number\",\"NumberFormat\",\"Object\",\"RangeError\",\"ReferenceError\",\"RegExp\",\"StopIteration\",\"String\",\"SyntaxError\",\"TypeError\",\"Uint16Array\",\"Uint32Array\",\"Uint8Array\",\"Uint8ClampedArray\",\"URIError\"],prototype=walkPrototype(left);return prototype?walkNative(prototype):void 0}function checkLeftSideAssign(left,assignToken,options){var allowDestructuring=options&&options.allowDestructuring;if(assignToken=assignToken||left,state.option.freeze){var nativeObject=findNativePrototype(left);nativeObject&&warning(\"W121\",left,nativeObject)}return left.identifier&&!left.isMetaProperty&&state.funct[\"(scope)\"].block.reassign(left.value,left),\".\"===left.id?((!left.left||\"arguments\"===left.left.value&&!state.isStrict())&&warning(\"E031\",assignToken),state.nameStack.set(state.tokens.prev),!0):\"{\"===left.id||\"[\"===left.id?(allowDestructuring&&state.tokens.curr.left.destructAssign?state.tokens.curr.left.destructAssign.forEach(function(t){t.id&&state.funct[\"(scope)\"].block.modify(t.id,t.token)}):\"{\"!==left.id&&left.left?\"arguments\"!==left.left.value||state.isStrict()||warning(\"E031\",assignToken):warning(\"E031\",assignToken),\"[\"===left.id&&state.nameStack.set(left.right),!0):left.isMetaProperty?(error(\"E031\",assignToken),!0):left.identifier&&!isReserved(left)?(\"exception\"===state.funct[\"(scope)\"].labeltype(left.value)&&warning(\"W022\",left),state.nameStack.set(left),!0):(left===state.syntax[\"function\"]&&warning(\"W023\",state.tokens.curr),!1)}function assignop(s,f,p){var x=infix(s,\"function\"==typeof f?f:function(left,that){return that.left=left,left&&checkLeftSideAssign(left,that,{allowDestructuring:!0})?(that.right=expression(10),that):(error(\"E031\",that),void 0)},p);return x.exps=!0,x.assign=!0,x}function bitwise(s,f,p){var x=symbol(s,p);return reserveName(x),x.led=\"function\"==typeof f?f:function(left){return state.option.bitwise&&warning(\"W016\",this,this.id),this.left=left,this.right=expression(p),this},x}function bitwiseassignop(s){return assignop(s,function(left,that){return state.option.bitwise&&warning(\"W016\",that,that.id),left&&checkLeftSideAssign(left,that)?(that.right=expression(10),that):(error(\"E031\",that),void 0)},20)}function suffix(s){var x=symbol(s,150);return x.led=function(left){return state.option.plusplus?warning(\"W016\",this,this.id):left.identifier&&!isReserved(left)||\".\"===left.id||\"[\"===left.id||warning(\"W017\",this),left.isMetaProperty?error(\"E031\",this):left&&left.identifier&&state.funct[\"(scope)\"].block.modify(left.value,left),this.left=left,this},x}function optionalidentifier(fnparam,prop,preserve){if(state.tokens.next.identifier){preserve||advance();var curr=state.tokens.curr,val=state.tokens.curr.value;return isReserved(curr)?prop&&state.inES5()?val:fnparam&&\"undefined\"===val?val:(warning(\"W024\",state.tokens.curr,state.tokens.curr.id),val):val}}function identifier(fnparam,prop){var i=optionalidentifier(fnparam,prop,!1);if(i)return i;if(\"...\"===state.tokens.next.value){if(state.inES6(!0)||warning(\"W119\",state.tokens.next,\"spread/rest operator\",\"6\"),advance(),checkPunctuator(state.tokens.next,\"...\"))for(warning(\"E024\",state.tokens.next,\"...\");checkPunctuator(state.tokens.next,\"...\");)advance();return state.tokens.next.identifier?identifier(fnparam,prop):(warning(\"E024\",state.tokens.curr,\"...\"),void 0)}error(\"E030\",state.tokens.next,state.tokens.next.value),\";\"!==state.tokens.next.id&&advance()}function reachable(controlToken){var t,i=0;if(\";\"===state.tokens.next.id&&!controlToken.inBracelessBlock)for(;;){do t=peek(i),i+=1;while(\"(end)\"!==t.id&&\"(comment)\"===t.id);if(t.reach)return;if(\"(endline)\"!==t.id){if(\"function\"===t.id){state.option.latedef===!0&&warning(\"W026\",t);break}warning(\"W027\",t,t.value,controlToken.value);break}}}function parseFinalSemicolon(){if(\";\"!==state.tokens.next.id){if(state.tokens.next.isUnclosed)return advance();var sameLine=startLine(state.tokens.next)===state.tokens.curr.line&&\"(end)\"!==state.tokens.next.id,blockEnd=checkPunctuator(state.tokens.next,\"}\");sameLine&&!blockEnd?errorAt(\"E058\",state.tokens.curr.line,state.tokens.curr.character):state.option.asi||(blockEnd&&!state.option.lastsemic||!sameLine)&&warningAt(\"W033\",state.tokens.curr.line,state.tokens.curr.character)}else advance(\";\")}function statement(){var r,i=indent,t=state.tokens.next,hasOwnScope=!1;if(\";\"===t.id)return advance(\";\"),void 0;var res=isReserved(t);if(res&&t.meta&&t.meta.isFutureReservedWord&&\":\"===peek().id&&(warning(\"W024\",t,t.id),res=!1),t.identifier&&!res&&\":\"===peek().id&&(advance(),advance(\":\"),hasOwnScope=!0,state.funct[\"(scope)\"].stack(),state.funct[\"(scope)\"].block.addBreakLabel(t.value,{token:state.tokens.curr}),state.tokens.next.labelled||\"{\"===state.tokens.next.value||warning(\"W028\",state.tokens.next,t.value,state.tokens.next.value),state.tokens.next.label=t.value,t=state.tokens.next),\"{\"===t.id){var iscase=\"case\"===state.funct[\"(verb)\"]&&\":\"===state.tokens.curr.value;return block(!0,!0,!1,!1,iscase),void 0}return r=expression(0,!0),!r||r.identifier&&\"function\"===r.value||\"(punctuator)\"===r.type&&r.left&&r.left.identifier&&\"function\"===r.left.value||state.isStrict()||\"global\"!==state.option.strict||warning(\"E007\"),t.block||(state.option.expr||r&&r.exps?state.option.nonew&&r&&r.left&&\"(\"===r.id&&\"new\"===r.left.id&&warning(\"W031\",t):warning(\"W030\",state.tokens.curr),parseFinalSemicolon()),indent=i,hasOwnScope&&state.funct[\"(scope)\"].unstack(),r}function statements(){for(var p,a=[];!state.tokens.next.reach&&\"(end)\"!==state.tokens.next.id;)\";\"===state.tokens.next.id?(p=peek(),(!p||\"(\"!==p.id&&\"[\"!==p.id)&&warning(\"W032\"),advance(\";\")):a.push(statement());return a}function directives(){for(var i,p,pn;\"(string)\"===state.tokens.next.id;){if(p=peek(0),\"(endline)\"===p.id){i=1;do pn=peek(i++);while(\"(endline)\"===pn.id);if(\";\"===pn.id)p=pn;else{if(\"[\"===pn.value||\".\"===pn.value)break;state.option.asi&&\"(\"!==pn.value||warning(\"W033\",state.tokens.next)}}else{if(\".\"===p.id||\"[\"===p.id)break;\";\"!==p.id&&warning(\"W033\",p)}advance();var directive=state.tokens.curr.value;(state.directive[directive]||\"use strict\"===directive&&\"implied\"===state.option.strict)&&warning(\"W034\",state.tokens.curr,directive),state.directive[directive]=!0,\";\"===p.id&&advance(\";\")}state.isStrict()&&(state.option[\"(explicitNewcap)\"]||(state.option.newcap=!0),state.option.undef=!0)}function block(ordinary,stmt,isfunc,isfatarrow,iscase){var a,m,t,line,d,b=inblock,old_indent=indent;inblock=ordinary,t=state.tokens.next;var metrics=state.funct[\"(metrics)\"];if(metrics.nestedBlockDepth+=1,metrics.verifyMaxNestedBlockDepthPerFunction(),\"{\"===state.tokens.next.id){if(advance(\"{\"),state.funct[\"(scope)\"].stack(),line=state.tokens.curr.line,\"}\"!==state.tokens.next.id){for(indent+=state.option.indent;!ordinary&&state.tokens.next.from>indent;)indent+=state.option.indent;if(isfunc){m={};for(d in state.directive)_.has(state.directive,d)&&(m[d]=state.directive[d]);directives(),state.option.strict&&state.funct[\"(context)\"][\"(global)\"]&&(m[\"use strict\"]||state.isStrict()||warning(\"E007\"))}a=statements(),metrics.statementCount+=a.length,indent-=state.option.indent}advance(\"}\",t),isfunc&&(state.funct[\"(scope)\"].validateParams(),m&&(state.directive=m)),state.funct[\"(scope)\"].unstack(),indent=old_indent}else if(ordinary)state.funct[\"(noblockscopedvar)\"]=\"for\"!==state.tokens.next.id,state.funct[\"(scope)\"].stack(),(!stmt||state.option.curly)&&warning(\"W116\",state.tokens.next,\"{\",state.tokens.next.value),state.tokens.next.inBracelessBlock=!0,indent+=state.option.indent,a=[statement()],indent-=state.option.indent,state.funct[\"(scope)\"].unstack(),delete state.funct[\"(noblockscopedvar)\"];else if(isfunc){if(state.funct[\"(scope)\"].stack(),m={},!stmt||isfatarrow||state.inMoz()||error(\"W118\",state.tokens.curr,\"function closure expressions\"),!stmt)for(d in state.directive)_.has(state.directive,d)&&(m[d]=state.directive[d]);expression(10),state.option.strict&&state.funct[\"(context)\"][\"(global)\"]&&(m[\"use strict\"]||state.isStrict()||warning(\"E007\")),state.funct[\"(scope)\"].unstack()}else error(\"E021\",state.tokens.next,\"{\",state.tokens.next.value);switch(state.funct[\"(verb)\"]){case\"break\":case\"continue\":case\"return\":case\"throw\":if(iscase)break;default:state.funct[\"(verb)\"]=null}return inblock=b,!ordinary||!state.option.noempty||a&&0!==a.length||warning(\"W035\",state.tokens.prev),metrics.nestedBlockDepth-=1,a}function countMember(m){membersOnly&&\"boolean\"!=typeof membersOnly[m]&&warning(\"W036\",state.tokens.curr,m),\"number\"==typeof member[m]?member[m]+=1:member[m]=1}function comprehensiveArrayExpression(){var res={};res.exps=!0,state.funct[\"(comparray)\"].stack();var reversed=!1;return\"for\"!==state.tokens.next.value&&(reversed=!0,state.inMoz()||warning(\"W116\",state.tokens.next,\"for\",state.tokens.next.value),state.funct[\"(comparray)\"].setState(\"use\"),res.right=expression(10)),advance(\"for\"),\"each\"===state.tokens.next.value&&(advance(\"each\"),state.inMoz()||warning(\"W118\",state.tokens.curr,\"for each\")),advance(\"(\"),state.funct[\"(comparray)\"].setState(\"define\"),res.left=expression(130),_.contains([\"in\",\"of\"],state.tokens.next.value)?advance():error(\"E045\",state.tokens.curr),state.funct[\"(comparray)\"].setState(\"generate\"),expression(10),advance(\")\"),\"if\"===state.tokens.next.value&&(advance(\"if\"),advance(\"(\"),state.funct[\"(comparray)\"].setState(\"filter\"),res.filter=expression(10),advance(\")\")),reversed||(state.funct[\"(comparray)\"].setState(\"use\"),res.right=expression(10)),advance(\"]\"),state.funct[\"(comparray)\"].unstack(),res}function isMethod(){return state.funct[\"(statement)\"]&&\"class\"===state.funct[\"(statement)\"].type||state.funct[\"(context)\"]&&\"class\"===state.funct[\"(context)\"][\"(verb)\"]}function isPropertyName(token){return token.identifier||\"(string)\"===token.id||\"(number)\"===token.id}function propertyName(preserveOrToken){var id,preserve=!0;return\"object\"==typeof preserveOrToken?id=preserveOrToken:(preserve=preserveOrToken,id=optionalidentifier(!1,!0,preserve)),id?\"object\"==typeof id&&(\"(string)\"===id.id||\"(identifier)\"===id.id?id=id.value:\"(number)\"===id.id&&(id=\"\"+id.value)):\"(string)\"===state.tokens.next.id?(id=state.tokens.next.value,preserve||advance()):\"(number)\"===state.tokens.next.id&&(id=\"\"+state.tokens.next.value,preserve||advance()),\"hasOwnProperty\"===id&&warning(\"W001\"),id}function functionparams(options){function addParam(addParamArgs){state.funct[\"(scope)\"].addParam.apply(state.funct[\"(scope)\"],addParamArgs)}var next,ident,t,paramsIds=[],tokens=[],pastDefault=!1,pastRest=!1,arity=0,loneArg=options&&options.loneArg;if(loneArg&&loneArg.identifier===!0)return state.funct[\"(scope)\"].addParam(loneArg.value,loneArg),{arity:1,params:[loneArg.value]};if(next=state.tokens.next,options&&options.parsedOpening||advance(\"(\"),\")\"===state.tokens.next.id)return advance(\")\"),void 0;for(;;){arity++;var currentParams=[];if(_.contains([\"{\",\"[\"],state.tokens.next.id)){tokens=destructuringPattern();for(t in tokens)t=tokens[t],t.id&&(paramsIds.push(t.id),currentParams.push([t.id,t.token]))}else if(checkPunctuator(state.tokens.next,\"...\")&&(pastRest=!0),ident=identifier(!0))paramsIds.push(ident),currentParams.push([ident,state.tokens.curr]);else for(;!checkPunctuators(state.tokens.next,[\",\",\")\"]);)advance();if(pastDefault&&\"=\"!==state.tokens.next.id&&error(\"W138\",state.tokens.current),\"=\"===state.tokens.next.id&&(state.inES6()||warning(\"W119\",state.tokens.next,\"default parameters\",\"6\"),advance(\"=\"),pastDefault=!0,expression(10)),currentParams.forEach(addParam),\",\"!==state.tokens.next.id)return advance(\")\",next),{arity:arity,params:paramsIds};pastRest&&warning(\"W131\",state.tokens.next),comma()}}function functor(name,token,overwrites){var funct={\"(name)\":name,\"(breakage)\":0,\"(loopage)\":0,\"(tokens)\":{},\"(properties)\":{},\"(catch)\":!1,\"(global)\":!1,\"(line)\":null,\"(character)\":null,\"(metrics)\":null,\"(statement)\":null,\"(context)\":null,\"(scope)\":null,\"(comparray)\":null,\"(generator)\":null,\"(arrow)\":null,\"(params)\":null};return token&&_.extend(funct,{\"(line)\":token.line,\"(character)\":token.character,\"(metrics)\":createMetrics(token)}),_.extend(funct,overwrites),funct[\"(context)\"]&&(funct[\"(scope)\"]=funct[\"(context)\"][\"(scope)\"],funct[\"(comparray)\"]=funct[\"(context)\"][\"(comparray)\"]),funct}function isFunctor(token){return\"(scope)\"in token}function hasParsedCode(funct){return funct[\"(global)\"]&&!funct[\"(verb)\"]}function doTemplateLiteral(left){function end(){if(state.tokens.curr.template&&state.tokens.curr.tail&&state.tokens.curr.context===ctx)return!0;var complete=state.tokens.next.template&&state.tokens.next.tail&&state.tokens.next.context===ctx;return complete&&advance(),complete||state.tokens.next.isUnclosed}var ctx=this.context,noSubst=this.noSubst,depth=this.depth;if(!noSubst)for(;!end();)!state.tokens.next.template||state.tokens.next.depth>depth?expression(0):advance();return{id:\"(template)\",type:\"(template)\",tag:left}}function doFunction(options){var f,token,name,statement,classExprBinding,isGenerator,isArrow,ignoreLoopFunc,oldOption=state.option,oldIgnored=state.ignored;options&&(name=options.name,statement=options.statement,classExprBinding=options.classExprBinding,isGenerator=\"generator\"===options.type,isArrow=\"arrow\"===options.type,ignoreLoopFunc=options.ignoreLoopFunc),state.option=Object.create(state.option),state.ignored=Object.create(state.ignored),state.funct=functor(name||state.nameStack.infer(),state.tokens.next,{\"(statement)\":statement,\"(context)\":state.funct,\"(arrow)\":isArrow,\"(generator)\":isGenerator}),f=state.funct,token=state.tokens.curr,token.funct=state.funct,functions.push(state.funct),state.funct[\"(scope)\"].stack(\"functionouter\");var internallyAccessibleName=name||classExprBinding;internallyAccessibleName&&state.funct[\"(scope)\"].block.add(internallyAccessibleName,classExprBinding?\"class\":\"function\",state.tokens.curr,!1),state.funct[\"(scope)\"].stack(\"functionparams\");var paramsInfo=functionparams(options);return paramsInfo?(state.funct[\"(params)\"]=paramsInfo.params,state.funct[\"(metrics)\"].arity=paramsInfo.arity,state.funct[\"(metrics)\"].verifyMaxParametersPerFunction()):state.funct[\"(metrics)\"].arity=0,isArrow&&(state.inES6(!0)||warning(\"W119\",state.tokens.curr,\"arrow function syntax (=>)\",\"6\"),options.loneArg||advance(\"=>\")),block(!1,!0,!0,isArrow),!state.option.noyield&&isGenerator&&\"yielded\"!==state.funct[\"(generator)\"]&&warning(\"W124\",state.tokens.curr),state.funct[\"(metrics)\"].verifyMaxStatementsPerFunction(),state.funct[\"(metrics)\"].verifyMaxComplexityPerFunction(),state.funct[\"(unusedOption)\"]=state.option.unused,state.option=oldOption,state.ignored=oldIgnored,state.funct[\"(last)\"]=state.tokens.curr.line,state.funct[\"(lastcharacter)\"]=state.tokens.curr.character,state.funct[\"(scope)\"].unstack(),state.funct[\"(scope)\"].unstack(),state.funct=state.funct[\"(context)\"],ignoreLoopFunc||state.option.loopfunc||!state.funct[\"(loopage)\"]||f[\"(isCapturing)\"]&&warning(\"W083\",token),f}function createMetrics(functionStartToken){return{statementCount:0,nestedBlockDepth:-1,ComplexityCount:1,arity:0,verifyMaxStatementsPerFunction:function(){state.option.maxstatements&&this.statementCount>state.option.maxstatements&&warning(\"W071\",functionStartToken,this.statementCount)\n},verifyMaxParametersPerFunction:function(){_.isNumber(state.option.maxparams)&&this.arity>state.option.maxparams&&warning(\"W072\",functionStartToken,this.arity)},verifyMaxNestedBlockDepthPerFunction:function(){state.option.maxdepth&&this.nestedBlockDepth>0&&this.nestedBlockDepth===state.option.maxdepth+1&&warning(\"W073\",null,this.nestedBlockDepth)},verifyMaxComplexityPerFunction:function(){var max=state.option.maxcomplexity,cc=this.ComplexityCount;max&&cc>max&&warning(\"W074\",functionStartToken,cc)}}}function increaseComplexityCount(){state.funct[\"(metrics)\"].ComplexityCount+=1}function checkCondAssignment(expr){var id,paren;switch(expr&&(id=expr.id,paren=expr.paren,\",\"===id&&(expr=expr.exprs[expr.exprs.length-1])&&(id=expr.id,paren=paren||expr.paren)),id){case\"=\":case\"+=\":case\"-=\":case\"*=\":case\"%=\":case\"&=\":case\"|=\":case\"^=\":case\"/=\":paren||state.option.boss||warning(\"W084\")}}function checkProperties(props){if(state.inES5())for(var name in props)props[name]&&props[name].setterToken&&!props[name].getterToken&&warning(\"W078\",props[name].setterToken)}function metaProperty(name,c){if(checkPunctuator(state.tokens.next,\".\")){var left=state.tokens.curr.id;advance(\".\");var id=identifier();return state.tokens.curr.isMetaProperty=!0,name!==id?error(\"E057\",state.tokens.prev,left,id):c(),state.tokens.curr}}function destructuringPattern(options){var isAssignment=options&&options.assignment;return state.inES6()||warning(\"W104\",state.tokens.curr,isAssignment?\"destructuring assignment\":\"destructuring binding\",\"6\"),destructuringPatternRecursive(options)}function destructuringPatternRecursive(options){var ids,identifiers=[],openingParsed=options&&options.openingParsed,isAssignment=options&&options.assignment,recursiveOptions=isAssignment?{assignment:isAssignment}:null,firstToken=openingParsed?state.tokens.curr:state.tokens.next,nextInnerDE=function(){var ident;if(checkPunctuators(state.tokens.next,[\"[\",\"{\"])){ids=destructuringPatternRecursive(recursiveOptions);for(var id in ids)id=ids[id],identifiers.push({id:id.id,token:id.token})}else if(checkPunctuator(state.tokens.next,\",\"))identifiers.push({id:null,token:state.tokens.curr});else{if(!checkPunctuator(state.tokens.next,\"(\")){var is_rest=checkPunctuator(state.tokens.next,\"...\");if(isAssignment){var identifierToken=is_rest?peek(0):state.tokens.next;identifierToken.identifier||warning(\"E030\",identifierToken,identifierToken.value);var assignTarget=expression(155);assignTarget&&(checkLeftSideAssign(assignTarget),assignTarget.identifier&&(ident=assignTarget.value))}else ident=identifier();return ident&&identifiers.push({id:ident,token:state.tokens.curr}),is_rest}advance(\"(\"),nextInnerDE(),advance(\")\")}return!1},assignmentProperty=function(){var id;checkPunctuator(state.tokens.next,\"[\")?(advance(\"[\"),expression(10),advance(\"]\"),advance(\":\"),nextInnerDE()):\"(string)\"===state.tokens.next.id||\"(number)\"===state.tokens.next.id?(advance(),advance(\":\"),nextInnerDE()):(id=identifier(),checkPunctuator(state.tokens.next,\":\")?(advance(\":\"),nextInnerDE()):id&&(isAssignment&&checkLeftSideAssign(state.tokens.curr),identifiers.push({id:id,token:state.tokens.curr})))};if(checkPunctuator(firstToken,\"[\")){openingParsed||advance(\"[\"),checkPunctuator(state.tokens.next,\"]\")&&warning(\"W137\",state.tokens.curr);for(var element_after_rest=!1;!checkPunctuator(state.tokens.next,\"]\");)nextInnerDE()&&!element_after_rest&&checkPunctuator(state.tokens.next,\",\")&&(warning(\"W130\",state.tokens.next),element_after_rest=!0),checkPunctuator(state.tokens.next,\"=\")&&(checkPunctuator(state.tokens.prev,\"...\")?advance(\"]\"):advance(\"=\"),\"undefined\"===state.tokens.next.id&&warning(\"W080\",state.tokens.prev,state.tokens.prev.value),expression(10)),checkPunctuator(state.tokens.next,\"]\")||advance(\",\");advance(\"]\")}else if(checkPunctuator(firstToken,\"{\")){for(openingParsed||advance(\"{\"),checkPunctuator(state.tokens.next,\"}\")&&warning(\"W137\",state.tokens.curr);!checkPunctuator(state.tokens.next,\"}\")&&(assignmentProperty(),checkPunctuator(state.tokens.next,\"=\")&&(advance(\"=\"),\"undefined\"===state.tokens.next.id&&warning(\"W080\",state.tokens.prev,state.tokens.prev.value),expression(10)),checkPunctuator(state.tokens.next,\"}\")||(advance(\",\"),!checkPunctuator(state.tokens.next,\"}\"))););advance(\"}\")}return identifiers}function destructuringPatternMatch(tokens,value){var first=value.first;first&&_.zip(tokens,Array.isArray(first)?first:[first]).forEach(function(val){var token=val[0],value=val[1];token&&value?token.first=value:token&&token.first&&!value&&warning(\"W080\",token.first,token.first.value)})}function blockVariableStatement(type,statement,context){var tokens,lone,value,letblock,prefix=context&&context.prefix,inexport=context&&context.inexport,isLet=\"let\"===type,isConst=\"const\"===type;for(state.inES6()||warning(\"W104\",state.tokens.curr,type,\"6\"),isLet&&\"(\"===state.tokens.next.value?(state.inMoz()||warning(\"W118\",state.tokens.next,\"let block\"),advance(\"(\"),state.funct[\"(scope)\"].stack(),letblock=!0):state.funct[\"(noblockscopedvar)\"]&&error(\"E048\",state.tokens.curr,isConst?\"Const\":\"Let\"),statement.first=[];;){var names=[];_.contains([\"{\",\"[\"],state.tokens.next.value)?(tokens=destructuringPattern(),lone=!1):(tokens=[{id:identifier(),token:state.tokens.curr}],lone=!0),!prefix&&isConst&&\"=\"!==state.tokens.next.id&&warning(\"E012\",state.tokens.curr,state.tokens.curr.value);for(var t in tokens)tokens.hasOwnProperty(t)&&(t=tokens[t],state.funct[\"(scope)\"].block.isGlobal()&&predefined[t.id]===!1&&warning(\"W079\",t.token,t.id),t.id&&!state.funct[\"(noblockscopedvar)\"]&&(state.funct[\"(scope)\"].addlabel(t.id,{type:type,token:t.token}),names.push(t.token),lone&&inexport&&state.funct[\"(scope)\"].setExported(t.token.value,t.token)));if(\"=\"===state.tokens.next.id&&(advance(\"=\"),prefix||\"undefined\"!==state.tokens.next.id||warning(\"W080\",state.tokens.prev,state.tokens.prev.value),!prefix&&\"=\"===peek(0).id&&state.tokens.next.identifier&&warning(\"W120\",state.tokens.next,state.tokens.next.value),value=expression(prefix?120:10),lone?tokens[0].first=value:destructuringPatternMatch(names,value)),statement.first=statement.first.concat(names),\",\"!==state.tokens.next.id)break;comma()}return letblock&&(advance(\")\"),block(!0,!0),statement.block=!0,state.funct[\"(scope)\"].unstack()),statement}function classdef(isStatement){return state.inES6()||warning(\"W104\",state.tokens.curr,\"class\",\"6\"),isStatement?(this.name=identifier(),state.funct[\"(scope)\"].addlabel(this.name,{type:\"class\",token:state.tokens.curr})):state.tokens.next.identifier&&\"extends\"!==state.tokens.next.value?(this.name=identifier(),this.namedExpr=!0):this.name=state.nameStack.infer(),classtail(this),this}function classtail(c){var wasInClassBody=state.inClassBody;\"extends\"===state.tokens.next.value&&(advance(\"extends\"),c.heritage=expression(10)),state.inClassBody=!0,advance(\"{\"),c.body=classbody(c),advance(\"}\"),state.inClassBody=wasInClassBody}function classbody(c){for(var name,isStatic,isGenerator,getset,computed,props=Object.create(null),staticProps=Object.create(null),i=0;\"}\"!==state.tokens.next.id;++i)if(name=state.tokens.next,isStatic=!1,isGenerator=!1,getset=null,\";\"!==name.id){if(\"*\"===name.id&&(isGenerator=!0,advance(\"*\"),name=state.tokens.next),\"[\"===name.id)name=computedPropertyName(),computed=!0;else{if(!isPropertyName(name)){warning(\"W052\",state.tokens.next,state.tokens.next.value||state.tokens.next.type),advance();continue}advance(),computed=!1,name.identifier&&\"static\"===name.value&&(checkPunctuator(state.tokens.next,\"*\")&&(isGenerator=!0,advance(\"*\")),(isPropertyName(state.tokens.next)||\"[\"===state.tokens.next.id)&&(computed=\"[\"===state.tokens.next.id,isStatic=!0,name=state.tokens.next,\"[\"===state.tokens.next.id?name=computedPropertyName():advance())),!name.identifier||\"get\"!==name.value&&\"set\"!==name.value||(isPropertyName(state.tokens.next)||\"[\"===state.tokens.next.id)&&(computed=\"[\"===state.tokens.next.id,getset=name,name=state.tokens.next,\"[\"===state.tokens.next.id?name=computedPropertyName():advance())}if(!checkPunctuator(state.tokens.next,\"(\")){for(error(\"E054\",state.tokens.next,state.tokens.next.value);\"}\"!==state.tokens.next.id&&!checkPunctuator(state.tokens.next,\"(\");)advance();\"(\"!==state.tokens.next.value&&doFunction({statement:c})}if(computed||(getset?saveAccessor(getset.value,isStatic?staticProps:props,name.value,name,!0,isStatic):(\"constructor\"===name.value?state.nameStack.set(c):state.nameStack.set(name),saveProperty(isStatic?staticProps:props,name.value,name,!0,isStatic))),getset&&\"constructor\"===name.value){var propDesc=\"get\"===getset.value?\"class getter method\":\"class setter method\";error(\"E049\",name,propDesc,\"constructor\")}else\"prototype\"===name.value&&error(\"E049\",name,\"class method\",\"prototype\");propertyName(name),doFunction({statement:c,type:isGenerator?\"generator\":null,classExprBinding:c.namedExpr?c.name:null})}else warning(\"W032\"),advance(\";\");checkProperties(props)}function saveProperty(props,name,tkn,isClass,isStatic){var msg=[\"key\",\"class method\",\"static class method\"];msg=msg[(isClass||!1)+(isStatic||!1)],tkn.identifier&&(name=tkn.value),props[name]&&\"__proto__\"!==name?warning(\"W075\",state.tokens.next,msg,name):props[name]=Object.create(null),props[name].basic=!0,props[name].basictkn=tkn}function saveAccessor(accessorType,props,name,tkn,isClass,isStatic){var flagName=\"get\"===accessorType?\"getterToken\":\"setterToken\",msg=\"\";isClass?(isStatic&&(msg+=\"static \"),msg+=accessorType+\"ter method\"):msg=\"key\",state.tokens.curr.accessorType=accessorType,state.nameStack.set(tkn),props[name]?(props[name].basic||props[name][flagName])&&\"__proto__\"!==name&&warning(\"W075\",state.tokens.next,msg,name):props[name]=Object.create(null),props[name][flagName]=tkn}function computedPropertyName(){advance(\"[\"),state.inES6()||warning(\"W119\",state.tokens.curr,\"computed property names\",\"6\");var value=expression(10);return advance(\"]\"),value}function checkPunctuators(token,values){return\"(punctuator)\"===token.type?_.contains(values,token.value):!1}function checkPunctuator(token,value){return\"(punctuator)\"===token.type&&token.value===value}function destructuringAssignOrJsonValue(){var block=lookupBlockType();block.notJson?(!state.inES6()&&block.isDestAssign&&warning(\"W104\",state.tokens.curr,\"destructuring assignment\",\"6\"),statements()):(state.option.laxbreak=!0,state.jsonMode=!0,jsonValue())}function jsonValue(){function jsonObject(){var o={},t=state.tokens.next;if(advance(\"{\"),\"}\"!==state.tokens.next.id)for(;;){if(\"(end)\"===state.tokens.next.id)error(\"E026\",state.tokens.next,t.line);else{if(\"}\"===state.tokens.next.id){warning(\"W094\",state.tokens.curr);break}\",\"===state.tokens.next.id?error(\"E028\",state.tokens.next):\"(string)\"!==state.tokens.next.id&&warning(\"W095\",state.tokens.next,state.tokens.next.value)}if(o[state.tokens.next.value]===!0?warning(\"W075\",state.tokens.next,\"key\",state.tokens.next.value):\"__proto__\"===state.tokens.next.value&&!state.option.proto||\"__iterator__\"===state.tokens.next.value&&!state.option.iterator?warning(\"W096\",state.tokens.next,state.tokens.next.value):o[state.tokens.next.value]=!0,advance(),advance(\":\"),jsonValue(),\",\"!==state.tokens.next.id)break;advance(\",\")}advance(\"}\")}function jsonArray(){var t=state.tokens.next;if(advance(\"[\"),\"]\"!==state.tokens.next.id)for(;;){if(\"(end)\"===state.tokens.next.id)error(\"E027\",state.tokens.next,t.line);else{if(\"]\"===state.tokens.next.id){warning(\"W094\",state.tokens.curr);break}\",\"===state.tokens.next.id&&error(\"E028\",state.tokens.next)}if(jsonValue(),\",\"!==state.tokens.next.id)break;advance(\",\")}advance(\"]\")}switch(state.tokens.next.id){case\"{\":jsonObject();break;case\"[\":jsonArray();break;case\"true\":case\"false\":case\"null\":case\"(number)\":case\"(string)\":advance();break;case\"-\":advance(\"-\"),advance(\"(number)\");break;default:error(\"E003\",state.tokens.next)}}var api,declared,functions,inblock,indent,lookahead,lex,member,membersOnly,predefined,stack,urls,bang={\"<\":!0,\"<=\":!0,\"==\":!0,\"===\":!0,\"!==\":!0,\"!=\":!0,\">\":!0,\">=\":!0,\"+\":!0,\"-\":!0,\"*\":!0,\"/\":!0,\"%\":!0},functionicity=[\"closure\",\"exception\",\"global\",\"label\",\"outer\",\"unused\",\"var\"],extraModules=[],emitter=new events.EventEmitter,typeofValues={};typeofValues.legacy=[\"xml\",\"unknown\"],typeofValues.es3=[\"undefined\",\"boolean\",\"number\",\"string\",\"function\",\"object\"],typeofValues.es3=typeofValues.es3.concat(typeofValues.legacy),typeofValues.es6=typeofValues.es3.concat(\"symbol\"),type(\"(number)\",function(){return this}),type(\"(string)\",function(){return this}),state.syntax[\"(identifier)\"]={type:\"(identifier)\",lbp:0,identifier:!0,nud:function(){var v=this.value;return\"=>\"===state.tokens.next.id?this:(state.funct[\"(comparray)\"].check(v)||state.funct[\"(scope)\"].block.use(v,state.tokens.curr),this)},led:function(){error(\"E033\",state.tokens.next,state.tokens.next.value)}};var baseTemplateSyntax={lbp:0,identifier:!1,template:!0};state.syntax[\"(template)\"]=_.extend({type:\"(template)\",nud:doTemplateLiteral,led:doTemplateLiteral,noSubst:!1},baseTemplateSyntax),state.syntax[\"(template middle)\"]=_.extend({type:\"(template middle)\",middle:!0,noSubst:!1},baseTemplateSyntax),state.syntax[\"(template tail)\"]=_.extend({type:\"(template tail)\",tail:!0,noSubst:!1},baseTemplateSyntax),state.syntax[\"(no subst template)\"]=_.extend({type:\"(template)\",nud:doTemplateLiteral,led:doTemplateLiteral,noSubst:!0,tail:!0},baseTemplateSyntax),type(\"(regexp)\",function(){return this}),delim(\"(endline)\"),delim(\"(begin)\"),delim(\"(end)\").reach=!0,delim(\"(error)\").reach=!0,delim(\"}\").reach=!0,delim(\")\"),delim(\"]\"),delim('\"').reach=!0,delim(\"'\").reach=!0,delim(\";\"),delim(\":\").reach=!0,delim(\"#\"),reserve(\"else\"),reserve(\"case\").reach=!0,reserve(\"catch\"),reserve(\"default\").reach=!0,reserve(\"finally\"),reservevar(\"arguments\",function(x){state.isStrict()&&state.funct[\"(global)\"]&&warning(\"E008\",x)}),reservevar(\"eval\"),reservevar(\"false\"),reservevar(\"Infinity\"),reservevar(\"null\"),reservevar(\"this\",function(x){state.isStrict()&&!isMethod()&&!state.option.validthis&&(state.funct[\"(statement)\"]&&state.funct[\"(name)\"].charAt(0)>\"Z\"||state.funct[\"(global)\"])&&warning(\"W040\",x)}),reservevar(\"true\"),reservevar(\"undefined\"),assignop(\"=\",\"assign\",20),assignop(\"+=\",\"assignadd\",20),assignop(\"-=\",\"assignsub\",20),assignop(\"*=\",\"assignmult\",20),assignop(\"/=\",\"assigndiv\",20).nud=function(){error(\"E014\")},assignop(\"%=\",\"assignmod\",20),bitwiseassignop(\"&=\"),bitwiseassignop(\"|=\"),bitwiseassignop(\"^=\"),bitwiseassignop(\"<<=\"),bitwiseassignop(\">>=\"),bitwiseassignop(\">>>=\"),infix(\",\",function(left,that){var expr;if(that.exprs=[left],state.option.nocomma&&warning(\"W127\"),!comma({peek:!0}))return that;for(;;){if(!(expr=expression(10)))break;if(that.exprs.push(expr),\",\"!==state.tokens.next.value||!comma())break}return that},10,!0),infix(\"?\",function(left,that){return increaseComplexityCount(),that.left=left,that.right=expression(10),advance(\":\"),that[\"else\"]=expression(10),that},30);var orPrecendence=40;infix(\"||\",function(left,that){return increaseComplexityCount(),that.left=left,that.right=expression(orPrecendence),that},orPrecendence),infix(\"&&\",\"and\",50),bitwise(\"|\",\"bitor\",70),bitwise(\"^\",\"bitxor\",80),bitwise(\"&\",\"bitand\",90),relation(\"==\",function(left,right){var eqnull=state.option.eqnull&&(\"null\"===(left&&left.value)||\"null\"===(right&&right.value));switch(!0){case!eqnull&&state.option.eqeqeq:this.from=this.character,warning(\"W116\",this,\"===\",\"==\");break;case isPoorRelation(left):warning(\"W041\",this,\"===\",left.value);break;case isPoorRelation(right):warning(\"W041\",this,\"===\",right.value);break;case isTypoTypeof(right,left,state):warning(\"W122\",this,right.value);break;case isTypoTypeof(left,right,state):warning(\"W122\",this,left.value)}return this}),relation(\"===\",function(left,right){return isTypoTypeof(right,left,state)?warning(\"W122\",this,right.value):isTypoTypeof(left,right,state)&&warning(\"W122\",this,left.value),this}),relation(\"!=\",function(left,right){var eqnull=state.option.eqnull&&(\"null\"===(left&&left.value)||\"null\"===(right&&right.value));return!eqnull&&state.option.eqeqeq?(this.from=this.character,warning(\"W116\",this,\"!==\",\"!=\")):isPoorRelation(left)?warning(\"W041\",this,\"!==\",left.value):isPoorRelation(right)?warning(\"W041\",this,\"!==\",right.value):isTypoTypeof(right,left,state)?warning(\"W122\",this,right.value):isTypoTypeof(left,right,state)&&warning(\"W122\",this,left.value),this}),relation(\"!==\",function(left,right){return isTypoTypeof(right,left,state)?warning(\"W122\",this,right.value):isTypoTypeof(left,right,state)&&warning(\"W122\",this,left.value),this}),relation(\"<\"),relation(\">\"),relation(\"<=\"),relation(\">=\"),bitwise(\"<<\",\"shiftleft\",120),bitwise(\">>\",\"shiftright\",120),bitwise(\">>>\",\"shiftrightunsigned\",120),infix(\"in\",\"in\",120),infix(\"instanceof\",\"instanceof\",120),infix(\"+\",function(left,that){var right;return that.left=left,that.right=right=expression(130),left&&right&&\"(string)\"===left.id&&\"(string)\"===right.id?(left.value+=right.value,left.character=right.character,!state.option.scripturl&®.javascriptURL.test(left.value)&&warning(\"W050\",left),left):that},130),prefix(\"+\",\"num\"),prefix(\"+++\",function(){return warning(\"W007\"),this.arity=\"unary\",this.right=expression(150),this}),infix(\"+++\",function(left){return warning(\"W007\"),this.left=left,this.right=expression(130),this},130),infix(\"-\",\"sub\",130),prefix(\"-\",\"neg\"),prefix(\"---\",function(){return warning(\"W006\"),this.arity=\"unary\",this.right=expression(150),this}),infix(\"---\",function(left){return warning(\"W006\"),this.left=left,this.right=expression(130),this},130),infix(\"*\",\"mult\",140),infix(\"/\",\"div\",140),infix(\"%\",\"mod\",140),suffix(\"++\"),prefix(\"++\",\"preinc\"),state.syntax[\"++\"].exps=!0,suffix(\"--\"),prefix(\"--\",\"predec\"),state.syntax[\"--\"].exps=!0,prefix(\"delete\",function(){var p=expression(10);return p?(\".\"!==p.id&&\"[\"!==p.id&&warning(\"W051\"),this.first=p,p.identifier&&!state.isStrict()&&(p.forgiveUndef=!0),this):this}).exps=!0,prefix(\"~\",function(){return state.option.bitwise&&warning(\"W016\",this,\"~\"),this.arity=\"unary\",this.right=expression(150),this}),prefix(\"...\",function(){return state.inES6(!0)||warning(\"W119\",this,\"spread/rest operator\",\"6\"),state.tokens.next.identifier||\"(string)\"===state.tokens.next.type||checkPunctuators(state.tokens.next,[\"[\",\"(\"])||error(\"E030\",state.tokens.next,state.tokens.next.value),expression(150),this}),prefix(\"!\",function(){return this.arity=\"unary\",this.right=expression(150),this.right||quit(\"E041\",this.line||0),bang[this.right.id]===!0&&warning(\"W018\",this,\"!\"),this}),prefix(\"typeof\",function(){var p=expression(150);return this.first=this.right=p,p||quit(\"E041\",this.line||0,this.character||0),p.identifier&&(p.forgiveUndef=!0),this}),prefix(\"new\",function(){var mp=metaProperty(\"target\",function(){state.inES6(!0)||warning(\"W119\",state.tokens.prev,\"new.target\",\"6\");for(var inFunction,c=state.funct;c&&(inFunction=!c[\"(global)\"],c[\"(arrow)\"]);)c=c[\"(context)\"];inFunction||warning(\"W136\",state.tokens.prev,\"new.target\")});if(mp)return mp;var i,c=expression(155);if(c&&\"function\"!==c.id)if(c.identifier)switch(c[\"new\"]=!0,c.value){case\"Number\":case\"String\":case\"Boolean\":case\"Math\":case\"JSON\":warning(\"W053\",state.tokens.prev,c.value);break;case\"Symbol\":state.inES6()&&warning(\"W053\",state.tokens.prev,c.value);break;case\"Function\":state.option.evil||warning(\"W054\");break;case\"Date\":case\"RegExp\":case\"this\":break;default:\"function\"!==c.id&&(i=c.value.substr(0,1),state.option.newcap&&(\"A\">i||i>\"Z\")&&!state.funct[\"(scope)\"].isPredefined(c.value)&&warning(\"W055\",state.tokens.curr))}else\".\"!==c.id&&\"[\"!==c.id&&\"(\"!==c.id&&warning(\"W056\",state.tokens.curr);else state.option.supernew||warning(\"W057\",this);return\"(\"===state.tokens.next.id||state.option.supernew||warning(\"W058\",state.tokens.curr,state.tokens.curr.value),this.first=this.right=c,this}),state.syntax[\"new\"].exps=!0,prefix(\"void\").exps=!0,infix(\".\",function(left,that){var m=identifier(!1,!0);return\"string\"==typeof m&&countMember(m),that.left=left,that.right=m,m&&\"hasOwnProperty\"===m&&\"=\"===state.tokens.next.value&&warning(\"W001\"),!left||\"arguments\"!==left.value||\"callee\"!==m&&\"caller\"!==m?state.option.evil||!left||\"document\"!==left.value||\"write\"!==m&&\"writeln\"!==m||warning(\"W060\",left):state.option.noarg?warning(\"W059\",left,m):state.isStrict()&&error(\"E008\"),state.option.evil||\"eval\"!==m&&\"execScript\"!==m||isGlobalEval(left,state)&&warning(\"W061\"),that},160,!0),infix(\"(\",function(left,that){state.option.immed&&left&&!left.immed&&\"function\"===left.id&&warning(\"W062\");var n=0,p=[];if(left&&\"(identifier)\"===left.type&&left.value.match(/^[A-Z]([A-Z0-9_$]*[a-z][A-Za-z0-9_$]*)?$/)&&-1===\"Array Number String Boolean Date Object Error Symbol\".indexOf(left.value)&&(\"Math\"===left.value?warning(\"W063\",left):state.option.newcap&&warning(\"W064\",left)),\")\"!==state.tokens.next.id)for(;p[p.length]=expression(10),n+=1,\",\"===state.tokens.next.id;)comma();return advance(\")\"),\"object\"==typeof left&&(state.inES5()||\"parseInt\"!==left.value||1!==n||warning(\"W065\",state.tokens.curr),state.option.evil||(\"eval\"===left.value||\"Function\"===left.value||\"execScript\"===left.value?(warning(\"W061\",left),p[0]&&\"(string)\"===[0].id&&addInternalSrc(left,p[0].value)):!p[0]||\"(string)\"!==p[0].id||\"setTimeout\"!==left.value&&\"setInterval\"!==left.value?!p[0]||\"(string)\"!==p[0].id||\".\"!==left.value||\"window\"!==left.left.value||\"setTimeout\"!==left.right&&\"setInterval\"!==left.right||(warning(\"W066\",left),addInternalSrc(left,p[0].value)):(warning(\"W066\",left),addInternalSrc(left,p[0].value))),left.identifier||\".\"===left.id||\"[\"===left.id||\"=>\"===left.id||\"(\"===left.id||\"&&\"===left.id||\"||\"===left.id||\"?\"===left.id||state.inES6()&&left[\"(name)\"]||warning(\"W067\",that)),that.left=left,that},155,!0).exps=!0,prefix(\"(\",function(){var pn1,ret,triggerFnExpr,first,last,pn=state.tokens.next,i=-1,parens=1,opening=state.tokens.curr,preceeding=state.tokens.prev,isNecessary=!state.option.singleGroups;do\"(\"===pn.value?parens+=1:\")\"===pn.value&&(parens-=1),i+=1,pn1=pn,pn=peek(i);while((0!==parens||\")\"!==pn1.value)&&\";\"!==pn.value&&\"(end)\"!==pn.type);if(\"function\"===state.tokens.next.id&&(triggerFnExpr=state.tokens.next.immed=!0),\"=>\"===pn.value)return doFunction({type:\"arrow\",parsedOpening:!0});var exprs=[];if(\")\"!==state.tokens.next.id)for(;exprs.push(expression(10)),\",\"===state.tokens.next.id;)state.option.nocomma&&warning(\"W127\"),comma();return advance(\")\",this),state.option.immed&&exprs[0]&&\"function\"===exprs[0].id&&\"(\"!==state.tokens.next.id&&\".\"!==state.tokens.next.id&&\"[\"!==state.tokens.next.id&&warning(\"W068\",this),exprs.length?(exprs.length>1?(ret=Object.create(state.syntax[\",\"]),ret.exprs=exprs,first=exprs[0],last=exprs[exprs.length-1],isNecessary||(isNecessary=preceeding.assign||preceeding.delim)):(ret=first=last=exprs[0],isNecessary||(isNecessary=opening.beginsStmt&&(\"{\"===ret.id||triggerFnExpr||isFunctor(ret))||triggerFnExpr&&(!isEndOfExpr()||\"}\"!==state.tokens.prev.id)||isFunctor(ret)&&!isEndOfExpr()||\"{\"===ret.id&&\"=>\"===preceeding.id||\"(number)\"===ret.type&&checkPunctuator(pn,\".\")&&/^\\d+$/.test(ret.value))),ret&&(!isNecessary&&(first.left||first.right||ret.exprs)&&(isNecessary=!isBeginOfExpr(preceeding)&&first.lbp<=preceeding.lbp||!isEndOfExpr()&&last.lbp\"),infix(\"[\",function(left,that){var s,e=expression(10);return e&&\"(string)\"===e.type&&(state.option.evil||\"eval\"!==e.value&&\"execScript\"!==e.value||isGlobalEval(left,state)&&warning(\"W061\"),countMember(e.value),!state.option.sub&®.identifier.test(e.value)&&(s=state.syntax[e.value],s&&isReserved(s)||warning(\"W069\",state.tokens.prev,e.value))),advance(\"]\",that),e&&\"hasOwnProperty\"===e.value&&\"=\"===state.tokens.next.value&&warning(\"W001\"),that.left=left,that.right=e,that},160,!0),prefix(\"[\",function(){var blocktype=lookupBlockType();if(blocktype.isCompArray)return state.option.esnext||state.inMoz()||warning(\"W118\",state.tokens.curr,\"array comprehension\"),comprehensiveArrayExpression();if(blocktype.isDestAssign)return this.destructAssign=destructuringPattern({openingParsed:!0,assignment:!0}),this;var b=state.tokens.curr.line!==startLine(state.tokens.next);for(this.first=[],b&&(indent+=state.option.indent,state.tokens.next.from===indent+state.option.indent&&(indent+=state.option.indent));\"(end)\"!==state.tokens.next.id;){for(;\",\"===state.tokens.next.id;){if(!state.option.elision){if(state.inES5()){warning(\"W128\");do advance(\",\");while(\",\"===state.tokens.next.id);continue}warning(\"W070\")}advance(\",\")}if(\"]\"===state.tokens.next.id)break;if(this.first.push(expression(10)),\",\"!==state.tokens.next.id)break;if(comma({allowTrailing:!0}),\"]\"===state.tokens.next.id&&!state.inES5()){warning(\"W070\",state.tokens.curr);break}}return b&&(indent-=state.option.indent),advance(\"]\",this),this}),function(x){x.nud=function(){var b,f,i,p,t,nextVal,isGeneratorMethod=!1,props=Object.create(null);b=state.tokens.curr.line!==startLine(state.tokens.next),b&&(indent+=state.option.indent,state.tokens.next.from===indent+state.option.indent&&(indent+=state.option.indent));var blocktype=lookupBlockType();if(blocktype.isDestAssign)return this.destructAssign=destructuringPattern({openingParsed:!0,assignment:!0}),this;for(;\"}\"!==state.tokens.next.id;){if(nextVal=state.tokens.next.value,!state.tokens.next.identifier||\",\"!==peekIgnoreEOL().id&&\"}\"!==peekIgnoreEOL().id)if(\":\"===peek().id||\"get\"!==nextVal&&\"set\"!==nextVal){if(\"*\"===state.tokens.next.value&&\"(punctuator)\"===state.tokens.next.type?(state.inES6()||warning(\"W104\",state.tokens.next,\"generator functions\",\"6\"),advance(\"*\"),isGeneratorMethod=!0):isGeneratorMethod=!1,\"[\"===state.tokens.next.id)i=computedPropertyName(),state.nameStack.set(i);else if(state.nameStack.set(state.tokens.next),i=propertyName(),saveProperty(props,i,state.tokens.next),\"string\"!=typeof i)break;\"(\"===state.tokens.next.value?(state.inES6()||warning(\"W104\",state.tokens.curr,\"concise methods\",\"6\"),doFunction({type:isGeneratorMethod?\"generator\":null})):(advance(\":\"),expression(10))}else advance(nextVal),state.inES5()||error(\"E034\"),i=propertyName(),i||state.inES6()||error(\"E035\"),i&&saveAccessor(nextVal,props,i,state.tokens.curr),t=state.tokens.next,f=doFunction(),p=f[\"(params)\"],\"get\"===nextVal&&i&&p?warning(\"W076\",t,p[0],i):\"set\"!==nextVal||!i||p&&1===p.length||warning(\"W077\",t,i);else state.inES6()||warning(\"W104\",state.tokens.next,\"object short notation\",\"6\"),i=propertyName(!0),saveProperty(props,i,state.tokens.next),expression(10);if(countMember(i),\",\"!==state.tokens.next.id)break;comma({allowTrailing:!0,property:!0}),\",\"===state.tokens.next.id?warning(\"W070\",state.tokens.curr):\"}\"!==state.tokens.next.id||state.inES5()||warning(\"W070\",state.tokens.curr)}return b&&(indent-=state.option.indent),advance(\"}\",this),checkProperties(props),this},x.fud=function(){error(\"E036\",state.tokens.curr)}}(delim(\"{\"));var conststatement=stmt(\"const\",function(context){return blockVariableStatement(\"const\",this,context)});conststatement.exps=!0;var letstatement=stmt(\"let\",function(context){return blockVariableStatement(\"let\",this,context)});letstatement.exps=!0;var varstatement=stmt(\"var\",function(context){var tokens,lone,value,prefix=context&&context.prefix,inexport=context&&context.inexport,implied=context&&context.implied,report=!(context&&context.ignore);for(this.first=[];;){var names=[];_.contains([\"{\",\"[\"],state.tokens.next.value)?(tokens=destructuringPattern(),lone=!1):(tokens=[{id:identifier(),token:state.tokens.curr}],lone=!0),prefix&&implied||!report||!state.option.varstmt||warning(\"W132\",this),this.first=this.first.concat(names);for(var t in tokens)tokens.hasOwnProperty(t)&&(t=tokens[t],!implied&&state.funct[\"(global)\"]&&(predefined[t.id]===!1?warning(\"W079\",t.token,t.id):state.option.futurehostile===!1&&(!state.inES5()&&vars.ecmaIdentifiers[5][t.id]===!1||!state.inES6()&&vars.ecmaIdentifiers[6][t.id]===!1)&&warning(\"W129\",t.token,t.id)),t.id&&(\"for\"===implied?(state.funct[\"(scope)\"].has(t.id)||report&&warning(\"W088\",t.token,t.id),state.funct[\"(scope)\"].block.use(t.id,t.token)):(state.funct[\"(scope)\"].addlabel(t.id,{type:\"var\",token:t.token}),lone&&inexport&&state.funct[\"(scope)\"].setExported(t.id,t.token)),names.push(t.token)));if(\"=\"===state.tokens.next.id&&(state.nameStack.set(state.tokens.curr),advance(\"=\"),prefix||!report||state.funct[\"(loopage)\"]||\"undefined\"!==state.tokens.next.id||warning(\"W080\",state.tokens.prev,state.tokens.prev.value),\"=\"===peek(0).id&&state.tokens.next.identifier&&(!prefix&&report&&!state.funct[\"(params)\"]||-1===state.funct[\"(params)\"].indexOf(state.tokens.next.value))&&warning(\"W120\",state.tokens.next,state.tokens.next.value),value=expression(prefix?120:10),lone?tokens[0].first=value:destructuringPatternMatch(names,value)),\",\"!==state.tokens.next.id)break;comma()}return this});varstatement.exps=!0,blockstmt(\"class\",function(){return classdef.call(this,!0)}),blockstmt(\"function\",function(context){var inexport=context&&context.inexport,generator=!1;\"*\"===state.tokens.next.value&&(advance(\"*\"),state.inES6({strict:!0})?generator=!0:warning(\"W119\",state.tokens.curr,\"function*\",\"6\")),inblock&&warning(\"W082\",state.tokens.curr);var i=optionalidentifier();return state.funct[\"(scope)\"].addlabel(i,{type:\"function\",token:state.tokens.curr}),void 0===i?warning(\"W025\"):inexport&&state.funct[\"(scope)\"].setExported(i,state.tokens.prev),doFunction({name:i,statement:this,type:generator?\"generator\":null,ignoreLoopFunc:inblock}),\"(\"===state.tokens.next.id&&state.tokens.next.line===state.tokens.curr.line&&error(\"E039\"),this}),prefix(\"function\",function(){var generator=!1;\"*\"===state.tokens.next.value&&(state.inES6()||warning(\"W119\",state.tokens.curr,\"function*\",\"6\"),advance(\"*\"),generator=!0);var i=optionalidentifier();return doFunction({name:i,type:generator?\"generator\":null}),this}),blockstmt(\"if\",function(){var t=state.tokens.next;increaseComplexityCount(),state.condition=!0,advance(\"(\");var expr=expression(0);checkCondAssignment(expr);var forinifcheck=null;state.option.forin&&state.forinifcheckneeded&&(state.forinifcheckneeded=!1,forinifcheck=state.forinifchecks[state.forinifchecks.length-1],forinifcheck.type=\"(punctuator)\"===expr.type&&\"!\"===expr.value?\"(negative)\":\"(positive)\"),advance(\")\",t),state.condition=!1;var s=block(!0,!0);return forinifcheck&&\"(negative)\"===forinifcheck.type&&s&&s[0]&&\"(identifier)\"===s[0].type&&\"continue\"===s[0].value&&(forinifcheck.type=\"(negative-with-continue)\"),\"else\"===state.tokens.next.id&&(advance(\"else\"),\"if\"===state.tokens.next.id||\"switch\"===state.tokens.next.id?statement():block(!0,!0)),this}),blockstmt(\"try\",function(){function doCatch(){if(advance(\"catch\"),advance(\"(\"),state.funct[\"(scope)\"].stack(\"catchparams\"),checkPunctuators(state.tokens.next,[\"[\",\"{\"])){var tokens=destructuringPattern();_.each(tokens,function(token){token.id&&state.funct[\"(scope)\"].addParam(token.id,token,\"exception\")})}else\"(identifier)\"!==state.tokens.next.type?warning(\"E030\",state.tokens.next,state.tokens.next.value):state.funct[\"(scope)\"].addParam(identifier(),state.tokens.curr,\"exception\");\"if\"===state.tokens.next.value&&(state.inMoz()||warning(\"W118\",state.tokens.curr,\"catch filter\"),advance(\"if\"),expression(0)),advance(\")\"),block(!1),state.funct[\"(scope)\"].unstack()}var b;for(block(!0);\"catch\"===state.tokens.next.id;)increaseComplexityCount(),b&&!state.inMoz()&&warning(\"W118\",state.tokens.next,\"multiple catch blocks\"),doCatch(),b=!0;return\"finally\"===state.tokens.next.id?(advance(\"finally\"),block(!0),void 0):(b||error(\"E021\",state.tokens.next,\"catch\",state.tokens.next.value),this)}),blockstmt(\"while\",function(){var t=state.tokens.next;return state.funct[\"(breakage)\"]+=1,state.funct[\"(loopage)\"]+=1,increaseComplexityCount(),advance(\"(\"),checkCondAssignment(expression(0)),advance(\")\",t),block(!0,!0),state.funct[\"(breakage)\"]-=1,state.funct[\"(loopage)\"]-=1,this}).labelled=!0,blockstmt(\"with\",function(){var t=state.tokens.next;return state.isStrict()?error(\"E010\",state.tokens.curr):state.option.withstmt||warning(\"W085\",state.tokens.curr),advance(\"(\"),expression(0),advance(\")\",t),block(!0,!0),this}),blockstmt(\"switch\",function(){var t=state.tokens.next,g=!1,noindent=!1;\nfor(state.funct[\"(breakage)\"]+=1,advance(\"(\"),checkCondAssignment(expression(0)),advance(\")\",t),t=state.tokens.next,advance(\"{\"),state.tokens.next.from===indent&&(noindent=!0),noindent||(indent+=state.option.indent),this.cases=[];;)switch(state.tokens.next.id){case\"case\":switch(state.funct[\"(verb)\"]){case\"yield\":case\"break\":case\"case\":case\"continue\":case\"return\":case\"switch\":case\"throw\":break;default:state.tokens.curr.caseFallsThrough||warning(\"W086\",state.tokens.curr,\"case\")}advance(\"case\"),this.cases.push(expression(0)),increaseComplexityCount(),g=!0,advance(\":\"),state.funct[\"(verb)\"]=\"case\";break;case\"default\":switch(state.funct[\"(verb)\"]){case\"yield\":case\"break\":case\"continue\":case\"return\":case\"throw\":break;default:this.cases.length&&(state.tokens.curr.caseFallsThrough||warning(\"W086\",state.tokens.curr,\"default\"))}advance(\"default\"),g=!0,advance(\":\");break;case\"}\":return noindent||(indent-=state.option.indent),advance(\"}\",t),state.funct[\"(breakage)\"]-=1,state.funct[\"(verb)\"]=void 0,void 0;case\"(end)\":return error(\"E023\",state.tokens.next,\"}\"),void 0;default:if(indent+=state.option.indent,g)switch(state.tokens.curr.id){case\",\":return error(\"E040\"),void 0;case\":\":g=!1,statements();break;default:return error(\"E025\",state.tokens.curr),void 0}else{if(\":\"!==state.tokens.curr.id)return error(\"E021\",state.tokens.next,\"case\",state.tokens.next.value),void 0;advance(\":\"),error(\"E024\",state.tokens.curr,\":\"),statements()}indent-=state.option.indent}return this}).labelled=!0,stmt(\"debugger\",function(){return state.option.debug||warning(\"W087\",this),this}).exps=!0,function(){var x=stmt(\"do\",function(){state.funct[\"(breakage)\"]+=1,state.funct[\"(loopage)\"]+=1,increaseComplexityCount(),this.first=block(!0,!0),advance(\"while\");var t=state.tokens.next;return advance(\"(\"),checkCondAssignment(expression(0)),advance(\")\",t),state.funct[\"(breakage)\"]-=1,state.funct[\"(loopage)\"]-=1,this});x.labelled=!0,x.exps=!0}(),blockstmt(\"for\",function(){var s,t=state.tokens.next,letscope=!1,foreachtok=null;\"each\"===t.value&&(foreachtok=t,advance(\"each\"),state.inMoz()||warning(\"W118\",state.tokens.curr,\"for each\")),increaseComplexityCount(),advance(\"(\");var nextop,comma,initializer,i=0,inof=[\"in\",\"of\"],level=0;checkPunctuators(state.tokens.next,[\"{\",\"[\"])&&++level;do{if(nextop=peek(i),++i,checkPunctuators(nextop,[\"{\",\"[\"])?++level:checkPunctuators(nextop,[\"}\",\"]\"])&&--level,0>level)break;0===level&&(!comma&&checkPunctuator(nextop,\",\")?comma=nextop:!initializer&&checkPunctuator(nextop,\"=\")&&(initializer=nextop))}while(level>0||!_.contains(inof,nextop.value)&&\";\"!==nextop.value&&\"(end)\"!==nextop.type);if(_.contains(inof,nextop.value)){state.inES6()||\"of\"!==nextop.value||warning(\"W104\",nextop,\"for of\",\"6\");var ok=!(initializer||comma);if(initializer&&error(\"W133\",comma,nextop.value,\"initializer is forbidden\"),comma&&error(\"W133\",comma,nextop.value,\"more than one ForBinding\"),\"var\"===state.tokens.next.id?(advance(\"var\"),state.tokens.curr.fud({prefix:!0})):\"let\"===state.tokens.next.id||\"const\"===state.tokens.next.id?(advance(state.tokens.next.id),letscope=!0,state.funct[\"(scope)\"].stack(),state.tokens.curr.fud({prefix:!0})):Object.create(varstatement).fud({prefix:!0,implied:\"for\",ignore:!ok}),advance(nextop.value),expression(20),advance(\")\",t),\"in\"===nextop.value&&state.option.forin&&(state.forinifcheckneeded=!0,void 0===state.forinifchecks&&(state.forinifchecks=[]),state.forinifchecks.push({type:\"(none)\"})),state.funct[\"(breakage)\"]+=1,state.funct[\"(loopage)\"]+=1,s=block(!0,!0),\"in\"===nextop.value&&state.option.forin){if(state.forinifchecks&&state.forinifchecks.length>0){var check=state.forinifchecks.pop();(s&&s.length>0&&(\"object\"!=typeof s[0]||\"if\"!==s[0].value)||\"(positive)\"===check.type&&s.length>1||\"(negative)\"===check.type)&&warning(\"W089\",this)}state.forinifcheckneeded=!1}state.funct[\"(breakage)\"]-=1,state.funct[\"(loopage)\"]-=1}else{if(foreachtok&&error(\"E045\",foreachtok),\";\"!==state.tokens.next.id)if(\"var\"===state.tokens.next.id)advance(\"var\"),state.tokens.curr.fud();else if(\"let\"===state.tokens.next.id)advance(\"let\"),letscope=!0,state.funct[\"(scope)\"].stack(),state.tokens.curr.fud();else for(;expression(0,\"for\"),\",\"===state.tokens.next.id;)comma();if(nolinebreak(state.tokens.curr),advance(\";\"),state.funct[\"(loopage)\"]+=1,\";\"!==state.tokens.next.id&&checkCondAssignment(expression(0)),nolinebreak(state.tokens.curr),advance(\";\"),\";\"===state.tokens.next.id&&error(\"E021\",state.tokens.next,\")\",\";\"),\")\"!==state.tokens.next.id)for(;expression(0,\"for\"),\",\"===state.tokens.next.id;)comma();advance(\")\",t),state.funct[\"(breakage)\"]+=1,block(!0,!0),state.funct[\"(breakage)\"]-=1,state.funct[\"(loopage)\"]-=1}return letscope&&state.funct[\"(scope)\"].unstack(),this}).labelled=!0,stmt(\"break\",function(){var v=state.tokens.next.value;return state.option.asi||nolinebreak(this),\";\"===state.tokens.next.id||state.tokens.next.reach||state.tokens.curr.line!==startLine(state.tokens.next)?0===state.funct[\"(breakage)\"]&&warning(\"W052\",state.tokens.next,this.value):(state.funct[\"(scope)\"].funct.hasBreakLabel(v)||warning(\"W090\",state.tokens.next,v),this.first=state.tokens.next,advance()),reachable(this),this}).exps=!0,stmt(\"continue\",function(){var v=state.tokens.next.value;return 0===state.funct[\"(breakage)\"]&&warning(\"W052\",state.tokens.next,this.value),state.funct[\"(loopage)\"]||warning(\"W052\",state.tokens.next,this.value),state.option.asi||nolinebreak(this),\";\"===state.tokens.next.id||state.tokens.next.reach||state.tokens.curr.line===startLine(state.tokens.next)&&(state.funct[\"(scope)\"].funct.hasBreakLabel(v)||warning(\"W090\",state.tokens.next,v),this.first=state.tokens.next,advance()),reachable(this),this}).exps=!0,stmt(\"return\",function(){return this.line===startLine(state.tokens.next)?\";\"===state.tokens.next.id||state.tokens.next.reach||(this.first=expression(0),!this.first||\"(punctuator)\"!==this.first.type||\"=\"!==this.first.value||this.first.paren||state.option.boss||warningAt(\"W093\",this.first.line,this.first.character)):\"(punctuator)\"===state.tokens.next.type&&[\"[\",\"{\",\"+\",\"-\"].indexOf(state.tokens.next.value)>-1&&nolinebreak(this),reachable(this),this}).exps=!0,function(x){x.exps=!0,x.lbp=25}(prefix(\"yield\",function(){var prev=state.tokens.prev;state.inES6(!0)&&!state.funct[\"(generator)\"]?\"(catch)\"===state.funct[\"(name)\"]&&state.funct[\"(context)\"][\"(generator)\"]||error(\"E046\",state.tokens.curr,\"yield\"):state.inES6()||warning(\"W104\",state.tokens.curr,\"yield\",\"6\"),state.funct[\"(generator)\"]=\"yielded\";var delegatingYield=!1;return\"*\"===state.tokens.next.value&&(delegatingYield=!0,advance(\"*\")),this.line!==startLine(state.tokens.next)&&state.inMoz()?state.option.asi||nolinebreak(this):((delegatingYield||\";\"!==state.tokens.next.id&&!state.option.asi&&!state.tokens.next.reach&&state.tokens.next.nud)&&(nobreaknonadjacent(state.tokens.curr,state.tokens.next),this.first=expression(10),\"(punctuator)\"!==this.first.type||\"=\"!==this.first.value||this.first.paren||state.option.boss||warningAt(\"W093\",this.first.line,this.first.character)),state.inMoz()&&\")\"!==state.tokens.next.id&&(prev.lbp>30||!prev.assign&&!isEndOfExpr()||\"yield\"===prev.id)&&error(\"E050\",this)),this})),stmt(\"throw\",function(){return nolinebreak(this),this.first=expression(20),reachable(this),this}).exps=!0,stmt(\"import\",function(){if(state.inES6()||warning(\"W119\",state.tokens.curr,\"import\",\"6\"),\"(string)\"===state.tokens.next.type)return advance(\"(string)\"),this;if(state.tokens.next.identifier){if(this.name=identifier(),state.funct[\"(scope)\"].addlabel(this.name,{type:\"const\",token:state.tokens.curr}),\",\"!==state.tokens.next.value)return advance(\"from\"),advance(\"(string)\"),this;advance(\",\")}if(\"*\"===state.tokens.next.id)advance(\"*\"),advance(\"as\"),state.tokens.next.identifier&&(this.name=identifier(),state.funct[\"(scope)\"].addlabel(this.name,{type:\"const\",token:state.tokens.curr}));else for(advance(\"{\");;){if(\"}\"===state.tokens.next.value){advance(\"}\");break}var importName;if(\"default\"===state.tokens.next.type?(importName=\"default\",advance(\"default\")):importName=identifier(),\"as\"===state.tokens.next.value&&(advance(\"as\"),importName=identifier()),state.funct[\"(scope)\"].addlabel(importName,{type:\"const\",token:state.tokens.curr}),\",\"!==state.tokens.next.value){if(\"}\"===state.tokens.next.value){advance(\"}\");break}error(\"E024\",state.tokens.next,state.tokens.next.value);break}advance(\",\")}return advance(\"from\"),advance(\"(string)\"),this}).exps=!0,stmt(\"export\",function(){var token,identifier,ok=!0;if(state.inES6()||(warning(\"W119\",state.tokens.curr,\"export\",\"6\"),ok=!1),state.funct[\"(scope)\"].block.isGlobal()||(error(\"E053\",state.tokens.curr),ok=!1),\"*\"===state.tokens.next.value)return advance(\"*\"),advance(\"from\"),advance(\"(string)\"),this;if(\"default\"===state.tokens.next.type){state.nameStack.set(state.tokens.next),advance(\"default\");var exportType=state.tokens.next.id;return(\"function\"===exportType||\"class\"===exportType)&&(this.block=!0),token=peek(),expression(10),identifier=token.value,this.block&&(state.funct[\"(scope)\"].addlabel(identifier,{type:exportType,token:token}),state.funct[\"(scope)\"].setExported(identifier,token)),this}if(\"{\"===state.tokens.next.value){advance(\"{\");for(var exportedTokens=[];;){if(state.tokens.next.identifier||error(\"E030\",state.tokens.next,state.tokens.next.value),advance(),exportedTokens.push(state.tokens.curr),\"as\"===state.tokens.next.value&&(advance(\"as\"),state.tokens.next.identifier||error(\"E030\",state.tokens.next,state.tokens.next.value),advance()),\",\"!==state.tokens.next.value){if(\"}\"===state.tokens.next.value){advance(\"}\");break}error(\"E024\",state.tokens.next,state.tokens.next.value);break}advance(\",\")}return\"from\"===state.tokens.next.value?(advance(\"from\"),advance(\"(string)\")):ok&&exportedTokens.forEach(function(token){state.funct[\"(scope)\"].setExported(token.value,token)}),this}if(\"var\"===state.tokens.next.id)advance(\"var\"),state.tokens.curr.fud({inexport:!0});else if(\"let\"===state.tokens.next.id)advance(\"let\"),state.tokens.curr.fud({inexport:!0});else if(\"const\"===state.tokens.next.id)advance(\"const\"),state.tokens.curr.fud({inexport:!0});else if(\"function\"===state.tokens.next.id)this.block=!0,advance(\"function\"),state.syntax[\"function\"].fud({inexport:!0});else if(\"class\"===state.tokens.next.id){this.block=!0,advance(\"class\");var classNameToken=state.tokens.next;state.syntax[\"class\"].fud(),state.funct[\"(scope)\"].setExported(classNameToken.value,classNameToken)}else error(\"E024\",state.tokens.next,state.tokens.next.value);return this}).exps=!0,FutureReservedWord(\"abstract\"),FutureReservedWord(\"boolean\"),FutureReservedWord(\"byte\"),FutureReservedWord(\"char\"),FutureReservedWord(\"class\",{es5:!0,nud:classdef}),FutureReservedWord(\"double\"),FutureReservedWord(\"enum\",{es5:!0}),FutureReservedWord(\"export\",{es5:!0}),FutureReservedWord(\"extends\",{es5:!0}),FutureReservedWord(\"final\"),FutureReservedWord(\"float\"),FutureReservedWord(\"goto\"),FutureReservedWord(\"implements\",{es5:!0,strictOnly:!0}),FutureReservedWord(\"import\",{es5:!0}),FutureReservedWord(\"int\"),FutureReservedWord(\"interface\",{es5:!0,strictOnly:!0}),FutureReservedWord(\"long\"),FutureReservedWord(\"native\"),FutureReservedWord(\"package\",{es5:!0,strictOnly:!0}),FutureReservedWord(\"private\",{es5:!0,strictOnly:!0}),FutureReservedWord(\"protected\",{es5:!0,strictOnly:!0}),FutureReservedWord(\"public\",{es5:!0,strictOnly:!0}),FutureReservedWord(\"short\"),FutureReservedWord(\"static\",{es5:!0,strictOnly:!0}),FutureReservedWord(\"super\",{es5:!0}),FutureReservedWord(\"synchronized\"),FutureReservedWord(\"transient\"),FutureReservedWord(\"volatile\");var lookupBlockType=function(){var pn,pn1,prev,i=-1,bracketStack=0,ret={};checkPunctuators(state.tokens.curr,[\"[\",\"{\"])&&(bracketStack+=1);do{if(prev=-1===i?state.tokens.curr:pn,pn=-1===i?state.tokens.next:peek(i),pn1=peek(i+1),i+=1,checkPunctuators(pn,[\"[\",\"{\"])?bracketStack+=1:checkPunctuators(pn,[\"]\",\"}\"])&&(bracketStack-=1),1===bracketStack&&pn.identifier&&\"for\"===pn.value&&!checkPunctuator(prev,\".\")){ret.isCompArray=!0,ret.notJson=!0;break}if(0===bracketStack&&checkPunctuators(pn,[\"}\",\"]\"])){if(\"=\"===pn1.value){ret.isDestAssign=!0,ret.notJson=!0;break}if(\".\"===pn1.value){ret.notJson=!0;break}}checkPunctuator(pn,\";\")&&(ret.isBlock=!0,ret.notJson=!0)}while(bracketStack>0&&\"(end)\"!==pn.id);return ret},arrayComprehension=function(){function declare(v){var l=_current.variables.filter(function(elt){return elt.value===v?(elt.undef=!1,v):void 0}).length;return 0!==l}function use(v){var l=_current.variables.filter(function(elt){return elt.value!==v||elt.undef?void 0:(elt.unused===!0&&(elt.unused=!1),v)}).length;return 0===l}var _current,CompArray=function(){this.mode=\"use\",this.variables=[]},_carrays=[];return{stack:function(){_current=new CompArray,_carrays.push(_current)},unstack:function(){_current.variables.filter(function(v){v.unused&&warning(\"W098\",v.token,v.raw_text||v.value),v.undef&&state.funct[\"(scope)\"].block.use(v.value,v.token)}),_carrays.splice(-1,1),_current=_carrays[_carrays.length-1]},setState:function(s){_.contains([\"use\",\"define\",\"generate\",\"filter\"],s)&&(_current.mode=s)},check:function(v){return _current?_current&&\"use\"===_current.mode?(use(v)&&_current.variables.push({funct:state.funct,token:state.tokens.curr,value:v,undef:!0,unused:!1}),!0):_current&&\"define\"===_current.mode?(declare(v)||_current.variables.push({funct:state.funct,token:state.tokens.curr,value:v,undef:!1,unused:!0}),!0):_current&&\"generate\"===_current.mode?(state.funct[\"(scope)\"].block.use(v,state.tokens.curr),!0):_current&&\"filter\"===_current.mode?(use(v)&&state.funct[\"(scope)\"].block.use(v,state.tokens.curr),!0):!1:void 0}}},escapeRegex=function(str){return str.replace(/[-\\/\\\\^$*+?.()|[\\]{}]/g,\"\\\\$&\")},itself=function(s,o,g){function each(obj,cb){obj&&(Array.isArray(obj)||\"object\"!=typeof obj||(obj=Object.keys(obj)),obj.forEach(cb))}var i,k,x,reIgnoreStr,reIgnore,optionKeys,newOptionObj={},newIgnoredObj={};o=_.clone(o),state.reset(),o&&o.scope?JSHINT.scope=o.scope:(JSHINT.errors=[],JSHINT.undefs=[],JSHINT.internals=[],JSHINT.blacklist={},JSHINT.scope=\"(main)\"),predefined=Object.create(null),combine(predefined,vars.ecmaIdentifiers[3]),combine(predefined,vars.reservedVars),combine(predefined,g||{}),declared=Object.create(null);var exported=Object.create(null);if(o)for(each(o.predef||null,function(item){var slice,prop;\"-\"===item[0]?(slice=item.slice(1),JSHINT.blacklist[slice]=slice,delete predefined[slice]):(prop=Object.getOwnPropertyDescriptor(o.predef,item),predefined[item]=prop?prop.value:!1)}),each(o.exported||null,function(item){exported[item]=!0}),delete o.predef,delete o.exported,optionKeys=Object.keys(o),x=0;optionKeys.length>x;x++)if(/^-W\\d{3}$/g.test(optionKeys[x]))newIgnoredObj[optionKeys[x].slice(1)]=!0;else{var optionKey=optionKeys[x];newOptionObj[optionKey]=o[optionKey],(\"esversion\"===optionKey&&5===o[optionKey]||\"es5\"===optionKey&&o[optionKey])&&warning(\"I003\"),\"newcap\"===optionKeys[x]&&o[optionKey]===!1&&(newOptionObj[\"(explicitNewcap)\"]=!0)}state.option=newOptionObj,state.ignored=newIgnoredObj,state.option.indent=state.option.indent||4,state.option.maxerr=state.option.maxerr||50,indent=1;var scopeManagerInst=scopeManager(state,predefined,exported,declared);if(scopeManagerInst.on(\"warning\",function(ev){warning.apply(null,[ev.code,ev.token].concat(ev.data))}),scopeManagerInst.on(\"error\",function(ev){error.apply(null,[ev.code,ev.token].concat(ev.data))}),state.funct=functor(\"(global)\",null,{\"(global)\":!0,\"(scope)\":scopeManagerInst,\"(comparray)\":arrayComprehension(),\"(metrics)\":createMetrics(state.tokens.next)}),functions=[state.funct],urls=[],stack=null,member={},membersOnly=null,inblock=!1,lookahead=[],!isString(s)&&!Array.isArray(s))return errorAt(\"E004\",0),!1;api={get isJSON(){return state.jsonMode},getOption:function(name){return state.option[name]||null},getCache:function(name){return state.cache[name]},setCache:function(name,value){state.cache[name]=value},warn:function(code,data){warningAt.apply(null,[code,data.line,data.char].concat(data.data))},on:function(names,listener){names.split(\" \").forEach(function(name){emitter.on(name,listener)}.bind(this))}},emitter.removeAllListeners(),(extraModules||[]).forEach(function(func){func(api)}),state.tokens.prev=state.tokens.curr=state.tokens.next=state.syntax[\"(begin)\"],o&&o.ignoreDelimiters&&(Array.isArray(o.ignoreDelimiters)||(o.ignoreDelimiters=[o.ignoreDelimiters]),o.ignoreDelimiters.forEach(function(delimiterPair){delimiterPair.start&&delimiterPair.end&&(reIgnoreStr=escapeRegex(delimiterPair.start)+\"[\\\\s\\\\S]*?\"+escapeRegex(delimiterPair.end),reIgnore=RegExp(reIgnoreStr,\"ig\"),s=s.replace(reIgnore,function(match){return match.replace(/./g,\" \")}))})),lex=new Lexer(s),lex.on(\"warning\",function(ev){warningAt.apply(null,[ev.code,ev.line,ev.character].concat(ev.data))}),lex.on(\"error\",function(ev){errorAt.apply(null,[ev.code,ev.line,ev.character].concat(ev.data))}),lex.on(\"fatal\",function(ev){quit(\"E041\",ev.line,ev.from)}),lex.on(\"Identifier\",function(ev){emitter.emit(\"Identifier\",ev)}),lex.on(\"String\",function(ev){emitter.emit(\"String\",ev)}),lex.on(\"Number\",function(ev){emitter.emit(\"Number\",ev)}),lex.start();for(var name in o)_.has(o,name)&&checkOption(name,state.tokens.curr);assume(),combine(predefined,g||{}),comma.first=!0;try{switch(advance(),state.tokens.next.id){case\"{\":case\"[\":destructuringAssignOrJsonValue();break;default:directives(),state.directive[\"use strict\"]&&\"global\"!==state.option.strict&&warning(\"W097\",state.tokens.prev),statements()}\"(end)\"!==state.tokens.next.id&&quit(\"E041\",state.tokens.curr.line),state.funct[\"(scope)\"].unstack()}catch(err){if(!err||\"JSHintError\"!==err.name)throw err;var nt=state.tokens.next||{};JSHINT.errors.push({scope:\"(main)\",raw:err.raw,code:err.code,reason:err.message,line:err.line||nt.line,character:err.character||nt.from},null)}if(\"(main)\"===JSHINT.scope)for(o=o||{},i=0;JSHINT.internals.length>i;i+=1)k=JSHINT.internals[i],o.scope=k.elem,itself(k.value,o,g);return 0===JSHINT.errors.length};return itself.addModule=function(func){extraModules.push(func)},itself.addModule(style.register),itself.data=function(){var fu,f,i,j,n,globals,data={functions:[],options:state.option};itself.errors.length&&(data.errors=itself.errors),state.jsonMode&&(data.json=!0);var impliedGlobals=state.funct[\"(scope)\"].getImpliedGlobals();for(impliedGlobals.length>0&&(data.implieds=impliedGlobals),urls.length>0&&(data.urls=urls),globals=state.funct[\"(scope)\"].getUsedOrDefinedGlobals(),globals.length>0&&(data.globals=globals),i=1;functions.length>i;i+=1){for(f=functions[i],fu={},j=0;functionicity.length>j;j+=1)fu[functionicity[j]]=[];for(j=0;functionicity.length>j;j+=1)0===fu[functionicity[j]].length&&delete fu[functionicity[j]];fu.name=f[\"(name)\"],fu.param=f[\"(params)\"],fu.line=f[\"(line)\"],fu.character=f[\"(character)\"],fu.last=f[\"(last)\"],fu.lastcharacter=f[\"(lastcharacter)\"],fu.metrics={complexity:f[\"(metrics)\"].ComplexityCount,parameters:f[\"(metrics)\"].arity,statements:f[\"(metrics)\"].statementCount},data.functions.push(fu)}var unuseds=state.funct[\"(scope)\"].getUnuseds();unuseds.length>0&&(data.unused=unuseds);for(n in member)if(\"number\"==typeof member[n]){data.member=member;break}return data},itself.jshint=itself,itself}();\"object\"==typeof exports&&exports&&(exports.JSHINT=JSHINT)},{\"../lodash\":\"/node_modules/jshint/lodash.js\",\"./lex.js\":\"/node_modules/jshint/src/lex.js\",\"./messages.js\":\"/node_modules/jshint/src/messages.js\",\"./options.js\":\"/node_modules/jshint/src/options.js\",\"./reg.js\":\"/node_modules/jshint/src/reg.js\",\"./scope-manager.js\":\"/node_modules/jshint/src/scope-manager.js\",\"./state.js\":\"/node_modules/jshint/src/state.js\",\"./style.js\":\"/node_modules/jshint/src/style.js\",\"./vars.js\":\"/node_modules/jshint/src/vars.js\",events:\"/node_modules/browserify/node_modules/events/events.js\"}],\"/node_modules/jshint/src/lex.js\":[function(_dereq_,module,exports){\"use strict\";function asyncTrigger(){var _checks=[];return{push:function(fn){_checks.push(fn)},check:function(){for(var check=0;_checks.length>check;++check)_checks[check]();_checks.splice(0,_checks.length)}}}function Lexer(source){var lines=source;\"string\"==typeof lines&&(lines=lines.replace(/\\r\\n/g,\"\\n\").replace(/\\r/g,\"\\n\").split(\"\\n\")),lines[0]&&\"#!\"===lines[0].substr(0,2)&&(-1!==lines[0].indexOf(\"node\")&&(state.option.node=!0),lines[0]=\"\"),this.emitter=new events.EventEmitter,this.source=source,this.setLines(lines),this.prereg=!0,this.line=0,this.char=1,this.from=1,this.input=\"\",this.inComment=!1,this.context=[],this.templateStarts=[];for(var i=0;state.option.indent>i;i+=1)state.tab+=\" \";this.ignoreLinterErrors=!1}var _=_dereq_(\"../lodash\"),events=_dereq_(\"events\"),reg=_dereq_(\"./reg.js\"),state=_dereq_(\"./state.js\").state,unicodeData=_dereq_(\"../data/ascii-identifier-data.js\"),asciiIdentifierStartTable=unicodeData.asciiIdentifierStartTable,asciiIdentifierPartTable=unicodeData.asciiIdentifierPartTable,Token={Identifier:1,Punctuator:2,NumericLiteral:3,StringLiteral:4,Comment:5,Keyword:6,NullLiteral:7,BooleanLiteral:8,RegExp:9,TemplateHead:10,TemplateMiddle:11,TemplateTail:12,NoSubstTemplate:13},Context={Block:1,Template:2};Lexer.prototype={_lines:[],inContext:function(ctxType){return this.context.length>0&&this.context[this.context.length-1].type===ctxType},pushContext:function(ctxType){this.context.push({type:ctxType})},popContext:function(){return this.context.pop()},isContext:function(context){return this.context.length>0&&this.context[this.context.length-1]===context},currentContext:function(){return this.context.length>0&&this.context[this.context.length-1]},getLines:function(){return this._lines=state.lines,this._lines},setLines:function(val){this._lines=val,state.lines=this._lines},peek:function(i){return this.input.charAt(i||0)},skip:function(i){i=i||1,this.char+=i,this.input=this.input.slice(i)},on:function(names,listener){names.split(\" \").forEach(function(name){this.emitter.on(name,listener)}.bind(this))},trigger:function(){this.emitter.emit.apply(this.emitter,Array.prototype.slice.call(arguments))},triggerAsync:function(type,args,checks,fn){checks.push(function(){fn()&&this.trigger(type,args)}.bind(this))},scanPunctuator:function(){var ch2,ch3,ch4,ch1=this.peek();switch(ch1){case\".\":if(/^[0-9]$/.test(this.peek(1)))return null;if(\".\"===this.peek(1)&&\".\"===this.peek(2))return{type:Token.Punctuator,value:\"...\"};case\"(\":case\")\":case\";\":case\",\":case\"[\":case\"]\":case\":\":case\"~\":case\"?\":return{type:Token.Punctuator,value:ch1};case\"{\":return this.pushContext(Context.Block),{type:Token.Punctuator,value:ch1};case\"}\":return this.inContext(Context.Block)&&this.popContext(),{type:Token.Punctuator,value:ch1};case\"#\":return{type:Token.Punctuator,value:ch1};case\"\":return null}return ch2=this.peek(1),ch3=this.peek(2),ch4=this.peek(3),\">\"===ch1&&\">\"===ch2&&\">\"===ch3&&\"=\"===ch4?{type:Token.Punctuator,value:\">>>=\"}:\"=\"===ch1&&\"=\"===ch2&&\"=\"===ch3?{type:Token.Punctuator,value:\"===\"}:\"!\"===ch1&&\"=\"===ch2&&\"=\"===ch3?{type:Token.Punctuator,value:\"!==\"}:\">\"===ch1&&\">\"===ch2&&\">\"===ch3?{type:Token.Punctuator,value:\">>>\"}:\"<\"===ch1&&\"<\"===ch2&&\"=\"===ch3?{type:Token.Punctuator,value:\"<<=\"}:\">\"===ch1&&\">\"===ch2&&\"=\"===ch3?{type:Token.Punctuator,value:\">>=\"}:\"=\"===ch1&&\">\"===ch2?{type:Token.Punctuator,value:ch1+ch2}:ch1===ch2&&\"+-<>&|\".indexOf(ch1)>=0?{type:Token.Punctuator,value:ch1+ch2}:\"<>=!+-*%&|^\".indexOf(ch1)>=0?\"=\"===ch2?{type:Token.Punctuator,value:ch1+ch2}:{type:Token.Punctuator,value:ch1}:\"/\"===ch1?\"=\"===ch2?{type:Token.Punctuator,value:\"/=\"}:{type:Token.Punctuator,value:\"/\"}:null},scanComments:function(){function commentToken(label,body,opt){var special=[\"jshint\",\"jslint\",\"members\",\"member\",\"globals\",\"global\",\"exported\"],isSpecial=!1,value=label+body,commentType=\"plain\";return opt=opt||{},opt.isMultiline&&(value+=\"*/\"),body=body.replace(/\\n/g,\" \"),\"/*\"===label&®.fallsThrough.test(body)&&(isSpecial=!0,commentType=\"falls through\"),special.forEach(function(str){if(!isSpecial&&(\"//\"!==label||\"jshint\"===str)&&(\" \"===body.charAt(str.length)&&body.substr(0,str.length)===str&&(isSpecial=!0,label+=str,body=body.substr(str.length)),isSpecial||\" \"!==body.charAt(0)||\" \"!==body.charAt(str.length+1)||body.substr(1,str.length)!==str||(isSpecial=!0,label=label+\" \"+str,body=body.substr(str.length+1)),isSpecial))switch(str){case\"member\":commentType=\"members\";break;case\"global\":commentType=\"globals\";break;default:var options=body.split(\":\").map(function(v){return v.replace(/^\\s+/,\"\").replace(/\\s+$/,\"\")});if(2===options.length)switch(options[0]){case\"ignore\":switch(options[1]){case\"start\":self.ignoringLinterErrors=!0,isSpecial=!1;break;case\"end\":self.ignoringLinterErrors=!1,isSpecial=!1}}commentType=str}}),{type:Token.Comment,commentType:commentType,value:value,body:body,isSpecial:isSpecial,isMultiline:opt.isMultiline||!1,isMalformed:opt.isMalformed||!1}}var ch1=this.peek(),ch2=this.peek(1),rest=this.input.substr(2),startLine=this.line,startChar=this.char,self=this;if(\"*\"===ch1&&\"/\"===ch2)return this.trigger(\"error\",{code:\"E018\",line:startLine,character:startChar}),this.skip(2),null;if(\"/\"!==ch1||\"*\"!==ch2&&\"/\"!==ch2)return null;if(\"/\"===ch2)return this.skip(this.input.length),commentToken(\"//\",rest);var body=\"\";if(\"*\"===ch2){for(this.inComment=!0,this.skip(2);\"*\"!==this.peek()||\"/\"!==this.peek(1);)if(\"\"===this.peek()){if(body+=\"\\n\",!this.nextLine())return this.trigger(\"error\",{code:\"E017\",line:startLine,character:startChar}),this.inComment=!1,commentToken(\"/*\",body,{isMultiline:!0,isMalformed:!0})}else body+=this.peek(),this.skip();return this.skip(2),this.inComment=!1,commentToken(\"/*\",body,{isMultiline:!0})}},scanKeyword:function(){var result=/^[a-zA-Z_$][a-zA-Z0-9_$]*/.exec(this.input),keywords=[\"if\",\"in\",\"do\",\"var\",\"for\",\"new\",\"try\",\"let\",\"this\",\"else\",\"case\",\"void\",\"with\",\"enum\",\"while\",\"break\",\"catch\",\"throw\",\"const\",\"yield\",\"class\",\"super\",\"return\",\"typeof\",\"delete\",\"switch\",\"export\",\"import\",\"default\",\"finally\",\"extends\",\"function\",\"continue\",\"debugger\",\"instanceof\"];return result&&keywords.indexOf(result[0])>=0?{type:Token.Keyword,value:result[0]}:null},scanIdentifier:function(){function isNonAsciiIdentifierStart(code){return code>256}function isNonAsciiIdentifierPart(code){return code>256}function isHexDigit(str){return/^[0-9a-fA-F]$/.test(str)}function removeEscapeSequences(id){return id.replace(/\\\\u([0-9a-fA-F]{4})/g,function(m0,codepoint){return String.fromCharCode(parseInt(codepoint,16))})}var type,char,id=\"\",index=0,readUnicodeEscapeSequence=function(){if(index+=1,\"u\"!==this.peek(index))return null;var code,ch1=this.peek(index+1),ch2=this.peek(index+2),ch3=this.peek(index+3),ch4=this.peek(index+4);return isHexDigit(ch1)&&isHexDigit(ch2)&&isHexDigit(ch3)&&isHexDigit(ch4)?(code=parseInt(ch1+ch2+ch3+ch4,16),asciiIdentifierPartTable[code]||isNonAsciiIdentifierPart(code)?(index+=5,\"\\\\u\"+ch1+ch2+ch3+ch4):null):null}.bind(this),getIdentifierStart=function(){var chr=this.peek(index),code=chr.charCodeAt(0);return 92===code?readUnicodeEscapeSequence():128>code?asciiIdentifierStartTable[code]?(index+=1,chr):null:isNonAsciiIdentifierStart(code)?(index+=1,chr):null}.bind(this),getIdentifierPart=function(){var chr=this.peek(index),code=chr.charCodeAt(0);return 92===code?readUnicodeEscapeSequence():128>code?asciiIdentifierPartTable[code]?(index+=1,chr):null:isNonAsciiIdentifierPart(code)?(index+=1,chr):null}.bind(this);if(char=getIdentifierStart(),null===char)return null;for(id=char;char=getIdentifierPart(),null!==char;)id+=char;switch(id){case\"true\":case\"false\":type=Token.BooleanLiteral;break;case\"null\":type=Token.NullLiteral;break;default:type=Token.Identifier}return{type:type,value:removeEscapeSequences(id),text:id,tokenLength:id.length}},scanNumericLiteral:function(){function isDecimalDigit(str){return/^[0-9]$/.test(str)}function isOctalDigit(str){return/^[0-7]$/.test(str)}function isBinaryDigit(str){return/^[01]$/.test(str)}function isHexDigit(str){return/^[0-9a-fA-F]$/.test(str)}function isIdentifierStart(ch){return\"$\"===ch||\"_\"===ch||\"\\\\\"===ch||ch>=\"a\"&&\"z\">=ch||ch>=\"A\"&&\"Z\">=ch}var bad,index=0,value=\"\",length=this.input.length,char=this.peek(index),isAllowedDigit=isDecimalDigit,base=10,isLegacy=!1;if(\".\"!==char&&!isDecimalDigit(char))return null;if(\".\"!==char){for(value=this.peek(index),index+=1,char=this.peek(index),\"0\"===value&&((\"x\"===char||\"X\"===char)&&(isAllowedDigit=isHexDigit,base=16,index+=1,value+=char),(\"o\"===char||\"O\"===char)&&(isAllowedDigit=isOctalDigit,base=8,state.inES6(!0)||this.trigger(\"warning\",{code:\"W119\",line:this.line,character:this.char,data:[\"Octal integer literal\",\"6\"]}),index+=1,value+=char),(\"b\"===char||\"B\"===char)&&(isAllowedDigit=isBinaryDigit,base=2,state.inES6(!0)||this.trigger(\"warning\",{code:\"W119\",line:this.line,character:this.char,data:[\"Binary integer literal\",\"6\"]}),index+=1,value+=char),isOctalDigit(char)&&(isAllowedDigit=isOctalDigit,base=8,isLegacy=!0,bad=!1,index+=1,value+=char),!isOctalDigit(char)&&isDecimalDigit(char)&&(index+=1,value+=char));length>index;){if(char=this.peek(index),isLegacy&&isDecimalDigit(char))bad=!0;else if(!isAllowedDigit(char))break;value+=char,index+=1}if(isAllowedDigit!==isDecimalDigit)return!isLegacy&&2>=value.length?{type:Token.NumericLiteral,value:value,isMalformed:!0}:length>index&&(char=this.peek(index),isIdentifierStart(char))?null:{type:Token.NumericLiteral,value:value,base:base,isLegacy:isLegacy,isMalformed:!1}}if(\".\"===char)for(value+=char,index+=1;length>index&&(char=this.peek(index),isDecimalDigit(char));)value+=char,index+=1;if(\"e\"===char||\"E\"===char){if(value+=char,index+=1,char=this.peek(index),(\"+\"===char||\"-\"===char)&&(value+=this.peek(index),index+=1),char=this.peek(index),!isDecimalDigit(char))return null;for(value+=char,index+=1;length>index&&(char=this.peek(index),isDecimalDigit(char));)value+=char,index+=1}return length>index&&(char=this.peek(index),isIdentifierStart(char))?null:{type:Token.NumericLiteral,value:value,base:base,isMalformed:!isFinite(value)}},scanEscapeSequence:function(checks){var allowNewLine=!1,jump=1;this.skip();var char=this.peek();switch(char){case\"'\":this.triggerAsync(\"warning\",{code:\"W114\",line:this.line,character:this.char,data:[\"\\\\'\"]},checks,function(){return state.jsonMode});break;case\"b\":char=\"\\\\b\";break;case\"f\":char=\"\\\\f\";break;case\"n\":char=\"\\\\n\";break;case\"r\":char=\"\\\\r\";break;case\"t\":char=\"\\\\t\";break;case\"0\":char=\"\\\\0\";var n=parseInt(this.peek(1),10);this.triggerAsync(\"warning\",{code:\"W115\",line:this.line,character:this.char},checks,function(){return n>=0&&7>=n&&state.isStrict()});break;case\"u\":var hexCode=this.input.substr(1,4),code=parseInt(hexCode,16);isNaN(code)&&this.trigger(\"warning\",{code:\"W052\",line:this.line,character:this.char,data:[\"u\"+hexCode]}),char=String.fromCharCode(code),jump=5;break;case\"v\":this.triggerAsync(\"warning\",{code:\"W114\",line:this.line,character:this.char,data:[\"\\\\v\"]},checks,function(){return state.jsonMode}),char=\"\u000b\";break;case\"x\":var x=parseInt(this.input.substr(1,2),16);this.triggerAsync(\"warning\",{code:\"W114\",line:this.line,character:this.char,data:[\"\\\\x-\"]},checks,function(){return state.jsonMode}),char=String.fromCharCode(x),jump=3;break;case\"\\\\\":char=\"\\\\\\\\\";break;case'\"':char='\\\\\"';break;case\"/\":break;case\"\":allowNewLine=!0,char=\"\"}return{\"char\":char,jump:jump,allowNewLine:allowNewLine}},scanTemplateLiteral:function(checks){var tokenType,ch,value=\"\",startLine=this.line,startChar=this.char,depth=this.templateStarts.length;if(!state.inES6(!0))return null;if(\"`\"===this.peek())tokenType=Token.TemplateHead,this.templateStarts.push({line:this.line,\"char\":this.char}),depth=this.templateStarts.length,this.skip(1),this.pushContext(Context.Template);else{if(!this.inContext(Context.Template)||\"}\"!==this.peek())return null;tokenType=Token.TemplateMiddle}for(;\"`\"!==this.peek();){for(;\"\"===(ch=this.peek());)if(value+=\"\\n\",!this.nextLine()){var startPos=this.templateStarts.pop();return this.trigger(\"error\",{code:\"E052\",line:startPos.line,character:startPos.char}),{type:tokenType,value:value,startLine:startLine,startChar:startChar,isUnclosed:!0,depth:depth,context:this.popContext()}}if(\"$\"===ch&&\"{\"===this.peek(1))return value+=\"${\",this.skip(2),{type:tokenType,value:value,startLine:startLine,startChar:startChar,isUnclosed:!1,depth:depth,context:this.currentContext()};\nif(\"\\\\\"===ch){var escape=this.scanEscapeSequence(checks);value+=escape.char,this.skip(escape.jump)}else\"`\"!==ch&&(value+=ch,this.skip(1))}return tokenType=tokenType===Token.TemplateHead?Token.NoSubstTemplate:Token.TemplateTail,this.skip(1),this.templateStarts.pop(),{type:tokenType,value:value,startLine:startLine,startChar:startChar,isUnclosed:!1,depth:depth,context:this.popContext()}},scanStringLiteral:function(checks){var quote=this.peek();if('\"'!==quote&&\"'\"!==quote)return null;this.triggerAsync(\"warning\",{code:\"W108\",line:this.line,character:this.char},checks,function(){return state.jsonMode&&'\"'!==quote});var value=\"\",startLine=this.line,startChar=this.char,allowNewLine=!1;for(this.skip();this.peek()!==quote;)if(\"\"===this.peek()){if(allowNewLine?(allowNewLine=!1,this.triggerAsync(\"warning\",{code:\"W043\",line:this.line,character:this.char},checks,function(){return!state.option.multistr}),this.triggerAsync(\"warning\",{code:\"W042\",line:this.line,character:this.char},checks,function(){return state.jsonMode&&state.option.multistr})):this.trigger(\"warning\",{code:\"W112\",line:this.line,character:this.char}),!this.nextLine())return this.trigger(\"error\",{code:\"E029\",line:startLine,character:startChar}),{type:Token.StringLiteral,value:value,startLine:startLine,startChar:startChar,isUnclosed:!0,quote:quote}}else{allowNewLine=!1;var char=this.peek(),jump=1;if(\" \">char&&this.trigger(\"warning\",{code:\"W113\",line:this.line,character:this.char,data:[\"\"]}),\"\\\\\"===char){var parsed=this.scanEscapeSequence(checks);char=parsed.char,jump=parsed.jump,allowNewLine=parsed.allowNewLine}value+=char,this.skip(jump)}return this.skip(),{type:Token.StringLiteral,value:value,startLine:startLine,startChar:startChar,isUnclosed:!1,quote:quote}},scanRegExp:function(){var terminated,index=0,length=this.input.length,char=this.peek(),value=char,body=\"\",flags=[],malformed=!1,isCharSet=!1,scanUnexpectedChars=function(){\" \">char&&(malformed=!0,this.trigger(\"warning\",{code:\"W048\",line:this.line,character:this.char})),\"<\"===char&&(malformed=!0,this.trigger(\"warning\",{code:\"W049\",line:this.line,character:this.char,data:[char]}))}.bind(this);if(!this.prereg||\"/\"!==char)return null;for(index+=1,terminated=!1;length>index;)if(char=this.peek(index),value+=char,body+=char,isCharSet)\"]\"===char&&(\"\\\\\"!==this.peek(index-1)||\"\\\\\"===this.peek(index-2))&&(isCharSet=!1),\"\\\\\"===char&&(index+=1,char=this.peek(index),body+=char,value+=char,scanUnexpectedChars()),index+=1;else{if(\"\\\\\"===char){if(index+=1,char=this.peek(index),body+=char,value+=char,scanUnexpectedChars(),\"/\"===char){index+=1;continue}if(\"[\"===char){index+=1;continue}}if(\"[\"!==char){if(\"/\"===char){body=body.substr(0,body.length-1),terminated=!0,index+=1;break}index+=1}else isCharSet=!0,index+=1}if(!terminated)return this.trigger(\"error\",{code:\"E015\",line:this.line,character:this.from}),void this.trigger(\"fatal\",{line:this.line,from:this.from});for(;length>index&&(char=this.peek(index),/[gim]/.test(char));)flags.push(char),value+=char,index+=1;try{RegExp(body,flags.join(\"\"))}catch(err){malformed=!0,this.trigger(\"error\",{code:\"E016\",line:this.line,character:this.char,data:[err.message]})}return{type:Token.RegExp,value:value,flags:flags,isMalformed:malformed}},scanNonBreakingSpaces:function(){return state.option.nonbsp?this.input.search(/(\\u00A0)/):-1},scanUnsafeChars:function(){return this.input.search(reg.unsafeChars)},next:function(checks){this.from=this.char;var start;if(/\\s/.test(this.peek()))for(start=this.char;/\\s/.test(this.peek());)this.from+=1,this.skip();var match=this.scanComments()||this.scanStringLiteral(checks)||this.scanTemplateLiteral(checks);return match?match:(match=this.scanRegExp()||this.scanPunctuator()||this.scanKeyword()||this.scanIdentifier()||this.scanNumericLiteral(),match?(this.skip(match.tokenLength||match.value.length),match):null)},nextLine:function(){var char;if(this.line>=this.getLines().length)return!1;this.input=this.getLines()[this.line],this.line+=1,this.char=1,this.from=1;var inputTrimmed=this.input.trim(),startsWith=function(){return _.some(arguments,function(prefix){return 0===inputTrimmed.indexOf(prefix)})},endsWith=function(){return _.some(arguments,function(suffix){return-1!==inputTrimmed.indexOf(suffix,inputTrimmed.length-suffix.length)})};if(this.ignoringLinterErrors===!0&&(startsWith(\"/*\",\"//\")||this.inComment&&endsWith(\"*/\")||(this.input=\"\")),char=this.scanNonBreakingSpaces(),char>=0&&this.trigger(\"warning\",{code:\"W125\",line:this.line,character:char+1}),this.input=this.input.replace(/\\t/g,state.tab),char=this.scanUnsafeChars(),char>=0&&this.trigger(\"warning\",{code:\"W100\",line:this.line,character:char}),!this.ignoringLinterErrors&&state.option.maxlen&&state.option.maxlen=0;--i){var scopeLabels=_scopeStack[i][\"(labels)\"];if(scopeLabels[labelName])return scopeLabels}}function usedSoFarInCurrentFunction(labelName){for(var i=_scopeStack.length-1;i>=0;i--){var current=_scopeStack[i];if(current[\"(usages)\"][labelName])return current[\"(usages)\"][labelName];if(current===_currentFunctBody)break}return!1}function _checkOuterShadow(labelName,token){if(\"outer\"===state.option.shadow)for(var isGlobal=\"global\"===_currentFunctBody[\"(type)\"],isNewFunction=\"functionparams\"===_current[\"(type)\"],outsideCurrentFunction=!isGlobal,i=0;_scopeStack.length>i;i++){var stackItem=_scopeStack[i];isNewFunction||_scopeStack[i+1]!==_currentFunctBody||(outsideCurrentFunction=!1),outsideCurrentFunction&&stackItem[\"(labels)\"][labelName]&&warning(\"W123\",token,labelName),stackItem[\"(breakLabels)\"][labelName]&&warning(\"W123\",token,labelName)}}function _latedefWarning(type,labelName,token){state.option.latedef&&(state.option.latedef===!0&&\"function\"===type||\"function\"!==type)&&warning(\"W003\",token,labelName)}var _current,_scopeStack=[];_newScope(\"global\"),_current[\"(predefined)\"]=predefined;var _currentFunctBody=_current,usedPredefinedAndGlobals=Object.create(null),impliedGlobals=Object.create(null),unuseds=[],emitter=new events.EventEmitter,_getUnusedOption=function(unused_opt){return void 0===unused_opt&&(unused_opt=state.option.unused),unused_opt===!0&&(unused_opt=\"last-param\"),unused_opt},_warnUnused=function(name,tkn,type,unused_opt){var line=tkn.line,chr=tkn.from,raw_name=tkn.raw_text||name;unused_opt=_getUnusedOption(unused_opt);var warnable_types={vars:[\"var\"],\"last-param\":[\"var\",\"param\"],strict:[\"var\",\"param\",\"last-param\"]};unused_opt&&warnable_types[unused_opt]&&-1!==warnable_types[unused_opt].indexOf(type)&&warning(\"W098\",{line:line,from:chr},raw_name),(unused_opt||\"var\"===type)&&unuseds.push({name:name,line:line,character:chr})},scopeManagerInst={on:function(names,listener){names.split(\" \").forEach(function(name){emitter.on(name,listener)})},isPredefined:function(labelName){return!this.has(labelName)&&_.has(_scopeStack[0][\"(predefined)\"],labelName)},stack:function(type){var previousScope=_current;_newScope(type),type||\"functionparams\"!==previousScope[\"(type)\"]||(_current[\"(isFuncBody)\"]=!0,_current[\"(context)\"]=_currentFunctBody,_currentFunctBody=_current)},unstack:function(){var i,j,subScope=_scopeStack.length>1?_scopeStack[_scopeStack.length-2]:null,isUnstackingFunctionBody=_current===_currentFunctBody,isUnstackingFunctionParams=\"functionparams\"===_current[\"(type)\"],isUnstackingFunctionOuter=\"functionouter\"===_current[\"(type)\"],currentUsages=_current[\"(usages)\"],currentLabels=_current[\"(labels)\"],usedLabelNameList=Object.keys(currentUsages);for(currentUsages.__proto__&&-1===usedLabelNameList.indexOf(\"__proto__\")&&usedLabelNameList.push(\"__proto__\"),i=0;usedLabelNameList.length>i;i++){var usedLabelName=usedLabelNameList[i],usage=currentUsages[usedLabelName],usedLabel=currentLabels[usedLabelName];if(usedLabel){var usedLabelType=usedLabel[\"(type)\"];if(usedLabel[\"(useOutsideOfScope)\"]&&!state.option.funcscope){var usedTokens=usage[\"(tokens)\"];if(usedTokens)for(j=0;usedTokens.length>j;j++)usedLabel[\"(function)\"]===usedTokens[j][\"(function)\"]&&error(\"W038\",usedTokens[j],usedLabelName)}if(_current[\"(labels)\"][usedLabelName][\"(unused)\"]=!1,\"const\"===usedLabelType&&usage[\"(modified)\"])for(j=0;usage[\"(modified)\"].length>j;j++)error(\"E013\",usage[\"(modified)\"][j],usedLabelName);if((\"function\"===usedLabelType||\"class\"===usedLabelType)&&usage[\"(reassigned)\"])for(j=0;usage[\"(reassigned)\"].length>j;j++)error(\"W021\",usage[\"(reassigned)\"][j],usedLabelName,usedLabelType)}else if(isUnstackingFunctionOuter&&(state.funct[\"(isCapturing)\"]=!0),subScope)if(subScope[\"(usages)\"][usedLabelName]){var subScopeUsage=subScope[\"(usages)\"][usedLabelName];subScopeUsage[\"(modified)\"]=subScopeUsage[\"(modified)\"].concat(usage[\"(modified)\"]),subScopeUsage[\"(tokens)\"]=subScopeUsage[\"(tokens)\"].concat(usage[\"(tokens)\"]),subScopeUsage[\"(reassigned)\"]=subScopeUsage[\"(reassigned)\"].concat(usage[\"(reassigned)\"]),subScopeUsage[\"(onlyUsedSubFunction)\"]=!1}else subScope[\"(usages)\"][usedLabelName]=usage,isUnstackingFunctionBody&&(subScope[\"(usages)\"][usedLabelName][\"(onlyUsedSubFunction)\"]=!0);else if(\"boolean\"==typeof _current[\"(predefined)\"][usedLabelName]){if(delete declared[usedLabelName],usedPredefinedAndGlobals[usedLabelName]=marker,_current[\"(predefined)\"][usedLabelName]===!1&&usage[\"(reassigned)\"])for(j=0;usage[\"(reassigned)\"].length>j;j++)warning(\"W020\",usage[\"(reassigned)\"][j])}else if(usage[\"(tokens)\"])for(j=0;usage[\"(tokens)\"].length>j;j++){var undefinedToken=usage[\"(tokens)\"][j];undefinedToken.forgiveUndef||(state.option.undef&&!undefinedToken.ignoreUndef&&warning(\"W117\",undefinedToken,usedLabelName),impliedGlobals[usedLabelName]?impliedGlobals[usedLabelName].line.push(undefinedToken.line):impliedGlobals[usedLabelName]={name:usedLabelName,line:[undefinedToken.line]})}}if(subScope||Object.keys(declared).forEach(function(labelNotUsed){_warnUnused(labelNotUsed,declared[labelNotUsed],\"var\")}),subScope&&!isUnstackingFunctionBody&&!isUnstackingFunctionParams&&!isUnstackingFunctionOuter){var labelNames=Object.keys(currentLabels);for(i=0;labelNames.length>i;i++){var defLabelName=labelNames[i];currentLabels[defLabelName][\"(blockscoped)\"]||\"exception\"===currentLabels[defLabelName][\"(type)\"]||this.funct.has(defLabelName,{excludeCurrent:!0})||(subScope[\"(labels)\"][defLabelName]=currentLabels[defLabelName],\"global\"!==_currentFunctBody[\"(type)\"]&&(subScope[\"(labels)\"][defLabelName][\"(useOutsideOfScope)\"]=!0),delete currentLabels[defLabelName])}}_checkForUnused(),_scopeStack.pop(),isUnstackingFunctionBody&&(_currentFunctBody=_scopeStack[_.findLastIndex(_scopeStack,function(scope){return scope[\"(isFuncBody)\"]||\"global\"===scope[\"(type)\"]})]),_current=subScope},addParam:function(labelName,token,type){if(type=type||\"param\",\"exception\"===type){var previouslyDefinedLabelType=this.funct.labeltype(labelName);previouslyDefinedLabelType&&\"exception\"!==previouslyDefinedLabelType&&(state.option.node||warning(\"W002\",state.tokens.next,labelName))}if(_.has(_current[\"(labels)\"],labelName)?_current[\"(labels)\"][labelName].duplicated=!0:(_checkOuterShadow(labelName,token,type),_current[\"(labels)\"][labelName]={\"(type)\":type,\"(token)\":token,\"(unused)\":!0},_current[\"(params)\"].push(labelName)),_.has(_current[\"(usages)\"],labelName)){var usage=_current[\"(usages)\"][labelName];usage[\"(onlyUsedSubFunction)\"]?_latedefWarning(type,labelName,token):warning(\"E056\",token,labelName,type)}},validateParams:function(){if(\"global\"!==_currentFunctBody[\"(type)\"]){var isStrict=state.isStrict(),currentFunctParamScope=_currentFunctBody[\"(parent)\"];currentFunctParamScope[\"(params)\"]&¤tFunctParamScope[\"(params)\"].forEach(function(labelName){var label=currentFunctParamScope[\"(labels)\"][labelName];label&&label.duplicated&&(isStrict?warning(\"E011\",label[\"(token)\"],labelName):state.option.shadow!==!0&&warning(\"W004\",label[\"(token)\"],labelName))})}},getUsedOrDefinedGlobals:function(){var list=Object.keys(usedPredefinedAndGlobals);return usedPredefinedAndGlobals.__proto__===marker&&-1===list.indexOf(\"__proto__\")&&list.push(\"__proto__\"),list},getImpliedGlobals:function(){var values=_.values(impliedGlobals),hasProto=!1;return impliedGlobals.__proto__&&(hasProto=values.some(function(value){return\"__proto__\"===value.name}),hasProto||values.push(impliedGlobals.__proto__)),values},getUnuseds:function(){return unuseds},has:function(labelName){return Boolean(_getLabel(labelName))},labeltype:function(labelName){var scopeLabels=_getLabel(labelName);return scopeLabels?scopeLabels[labelName][\"(type)\"]:null},addExported:function(labelName){var globalLabels=_scopeStack[0][\"(labels)\"];if(_.has(declared,labelName))delete declared[labelName];else if(_.has(globalLabels,labelName))globalLabels[labelName][\"(unused)\"]=!1;else{for(var i=1;_scopeStack.length>i;i++){var scope=_scopeStack[i];if(scope[\"(type)\"])break;if(_.has(scope[\"(labels)\"],labelName)&&!scope[\"(labels)\"][labelName][\"(blockscoped)\"])return scope[\"(labels)\"][labelName][\"(unused)\"]=!1,void 0}exported[labelName]=!0}},setExported:function(labelName,token){this.block.use(labelName,token)\n},addlabel:function(labelName,opts){var type=opts.type,token=opts.token,isblockscoped=\"let\"===type||\"const\"===type||\"class\"===type,isexported=\"global\"===(isblockscoped?_current:_currentFunctBody)[\"(type)\"]&&_.has(exported,labelName);if(_checkOuterShadow(labelName,token,type),isblockscoped){var declaredInCurrentScope=_current[\"(labels)\"][labelName];if(declaredInCurrentScope||_current!==_currentFunctBody||\"global\"===_current[\"(type)\"]||(declaredInCurrentScope=!!_currentFunctBody[\"(parent)\"][\"(labels)\"][labelName]),!declaredInCurrentScope&&_current[\"(usages)\"][labelName]){var usage=_current[\"(usages)\"][labelName];usage[\"(onlyUsedSubFunction)\"]?_latedefWarning(type,labelName,token):warning(\"E056\",token,labelName,type)}declaredInCurrentScope?warning(\"E011\",token,labelName):\"outer\"===state.option.shadow&&scopeManagerInst.funct.has(labelName)&&warning(\"W004\",token,labelName),scopeManagerInst.block.add(labelName,type,token,!isexported)}else{var declaredInCurrentFunctionScope=scopeManagerInst.funct.has(labelName);!declaredInCurrentFunctionScope&&usedSoFarInCurrentFunction(labelName)&&_latedefWarning(type,labelName,token),scopeManagerInst.funct.has(labelName,{onlyBlockscoped:!0})?warning(\"E011\",token,labelName):state.option.shadow!==!0&&declaredInCurrentFunctionScope&&\"__proto__\"!==labelName&&\"global\"!==_currentFunctBody[\"(type)\"]&&warning(\"W004\",token,labelName),scopeManagerInst.funct.add(labelName,type,token,!isexported),\"global\"===_currentFunctBody[\"(type)\"]&&(usedPredefinedAndGlobals[labelName]=marker)}},funct:{labeltype:function(labelName,options){for(var onlyBlockscoped=options&&options.onlyBlockscoped,excludeParams=options&&options.excludeParams,currentScopeIndex=_scopeStack.length-(options&&options.excludeCurrent?2:1),i=currentScopeIndex;i>=0;i--){var current=_scopeStack[i];if(current[\"(labels)\"][labelName]&&(!onlyBlockscoped||current[\"(labels)\"][labelName][\"(blockscoped)\"]))return current[\"(labels)\"][labelName][\"(type)\"];var scopeCheck=excludeParams?_scopeStack[i-1]:current;if(scopeCheck&&\"functionparams\"===scopeCheck[\"(type)\"])return null}return null},hasBreakLabel:function(labelName){for(var i=_scopeStack.length-1;i>=0;i--){var current=_scopeStack[i];if(current[\"(breakLabels)\"][labelName])return!0;if(\"functionparams\"===current[\"(type)\"])return!1}return!1},has:function(labelName,options){return Boolean(this.labeltype(labelName,options))},add:function(labelName,type,tok,unused){_current[\"(labels)\"][labelName]={\"(type)\":type,\"(token)\":tok,\"(blockscoped)\":!1,\"(function)\":_currentFunctBody,\"(unused)\":unused}}},block:{isGlobal:function(){return\"global\"===_current[\"(type)\"]},use:function(labelName,token){var paramScope=_currentFunctBody[\"(parent)\"];paramScope&¶mScope[\"(labels)\"][labelName]&&\"param\"===paramScope[\"(labels)\"][labelName][\"(type)\"]&&(scopeManagerInst.funct.has(labelName,{excludeParams:!0,onlyBlockscoped:!0})||(paramScope[\"(labels)\"][labelName][\"(unused)\"]=!1)),token&&(state.ignored.W117||state.option.undef===!1)&&(token.ignoreUndef=!0),_setupUsages(labelName),token&&(token[\"(function)\"]=_currentFunctBody,_current[\"(usages)\"][labelName][\"(tokens)\"].push(token))},reassign:function(labelName,token){this.modify(labelName,token),_current[\"(usages)\"][labelName][\"(reassigned)\"].push(token)},modify:function(labelName,token){_setupUsages(labelName),_current[\"(usages)\"][labelName][\"(modified)\"].push(token)},add:function(labelName,type,tok,unused){_current[\"(labels)\"][labelName]={\"(type)\":type,\"(token)\":tok,\"(blockscoped)\":!0,\"(unused)\":unused}},addBreakLabel:function(labelName,opts){var token=opts.token;scopeManagerInst.funct.hasBreakLabel(labelName)?warning(\"E011\",token,labelName):\"outer\"===state.option.shadow&&(scopeManagerInst.funct.has(labelName)?warning(\"W004\",token,labelName):_checkOuterShadow(labelName,token)),_current[\"(breakLabels)\"][labelName]=token}}};return scopeManagerInst};module.exports=scopeManager},{\"../lodash\":\"/node_modules/jshint/lodash.js\",events:\"/node_modules/browserify/node_modules/events/events.js\"}],\"/node_modules/jshint/src/state.js\":[function(_dereq_,module,exports){\"use strict\";var NameStack=_dereq_(\"./name-stack.js\"),state={syntax:{},isStrict:function(){return this.directive[\"use strict\"]||this.inClassBody||this.option.module||\"implied\"===this.option.strict},inMoz:function(){return this.option.moz},inES6:function(){return this.option.moz||this.option.esversion>=6},inES5:function(strict){return strict?!(this.option.esversion&&5!==this.option.esversion||this.option.moz):!this.option.esversion||this.option.esversion>=5||this.option.moz},reset:function(){this.tokens={prev:null,next:null,curr:null},this.option={},this.funct=null,this.ignored={},this.directive={},this.jsonMode=!1,this.jsonWarnings=[],this.lines=[],this.tab=\"\",this.cache={},this.ignoredLines={},this.forinifcheckneeded=!1,this.nameStack=new NameStack,this.inClassBody=!1}};exports.state=state},{\"./name-stack.js\":\"/node_modules/jshint/src/name-stack.js\"}],\"/node_modules/jshint/src/style.js\":[function(_dereq_,module,exports){\"use strict\";exports.register=function(linter){linter.on(\"Identifier\",function(data){linter.getOption(\"proto\")||\"__proto__\"===data.name&&linter.warn(\"W103\",{line:data.line,\"char\":data.char,data:[data.name,\"6\"]})}),linter.on(\"Identifier\",function(data){linter.getOption(\"iterator\")||\"__iterator__\"===data.name&&linter.warn(\"W103\",{line:data.line,\"char\":data.char,data:[data.name]})}),linter.on(\"Identifier\",function(data){linter.getOption(\"camelcase\")&&data.name.replace(/^_+|_+$/g,\"\").indexOf(\"_\")>-1&&!data.name.match(/^[A-Z0-9_]*$/)&&linter.warn(\"W106\",{line:data.line,\"char\":data.from,data:[data.name]})}),linter.on(\"String\",function(data){var code,quotmark=linter.getOption(\"quotmark\");quotmark&&(\"single\"===quotmark&&\"'\"!==data.quote&&(code=\"W109\"),\"double\"===quotmark&&'\"'!==data.quote&&(code=\"W108\"),quotmark===!0&&(linter.getCache(\"quotmark\")||linter.setCache(\"quotmark\",data.quote),linter.getCache(\"quotmark\")!==data.quote&&(code=\"W110\")),code&&linter.warn(code,{line:data.line,\"char\":data.char}))}),linter.on(\"Number\",function(data){\".\"===data.value.charAt(0)&&linter.warn(\"W008\",{line:data.line,\"char\":data.char,data:[data.value]}),\".\"===data.value.substr(data.value.length-1)&&linter.warn(\"W047\",{line:data.line,\"char\":data.char,data:[data.value]}),/^00+/.test(data.value)&&linter.warn(\"W046\",{line:data.line,\"char\":data.char,data:[data.value]})}),linter.on(\"String\",function(data){var re=/^(?:javascript|jscript|ecmascript|vbscript|livescript)\\s*:/i;linter.getOption(\"scripturl\")||re.test(data.value)&&linter.warn(\"W107\",{line:data.line,\"char\":data.char})})}},{}],\"/node_modules/jshint/src/vars.js\":[function(_dereq_,module,exports){\"use strict\";exports.reservedVars={arguments:!1,NaN:!1},exports.ecmaIdentifiers={3:{Array:!1,Boolean:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,eval:!1,EvalError:!1,Function:!1,hasOwnProperty:!1,isFinite:!1,isNaN:!1,Math:!1,Number:!1,Object:!1,parseInt:!1,parseFloat:!1,RangeError:!1,ReferenceError:!1,RegExp:!1,String:!1,SyntaxError:!1,TypeError:!1,URIError:!1},5:{JSON:!1},6:{Map:!1,Promise:!1,Proxy:!1,Reflect:!1,Set:!1,Symbol:!1,WeakMap:!1,WeakSet:!1}},exports.browser={Audio:!1,Blob:!1,addEventListener:!1,applicationCache:!1,atob:!1,blur:!1,btoa:!1,cancelAnimationFrame:!1,CanvasGradient:!1,CanvasPattern:!1,CanvasRenderingContext2D:!1,CSS:!1,clearInterval:!1,clearTimeout:!1,close:!1,closed:!1,Comment:!1,CustomEvent:!1,DOMParser:!1,defaultStatus:!1,Document:!1,document:!1,DocumentFragment:!1,Element:!1,ElementTimeControl:!1,Event:!1,event:!1,fetch:!1,FileReader:!1,FormData:!1,focus:!1,frames:!1,getComputedStyle:!1,HTMLElement:!1,HTMLAnchorElement:!1,HTMLBaseElement:!1,HTMLBlockquoteElement:!1,HTMLBodyElement:!1,HTMLBRElement:!1,HTMLButtonElement:!1,HTMLCanvasElement:!1,HTMLCollection:!1,HTMLDirectoryElement:!1,HTMLDivElement:!1,HTMLDListElement:!1,HTMLFieldSetElement:!1,HTMLFontElement:!1,HTMLFormElement:!1,HTMLFrameElement:!1,HTMLFrameSetElement:!1,HTMLHeadElement:!1,HTMLHeadingElement:!1,HTMLHRElement:!1,HTMLHtmlElement:!1,HTMLIFrameElement:!1,HTMLImageElement:!1,HTMLInputElement:!1,HTMLIsIndexElement:!1,HTMLLabelElement:!1,HTMLLayerElement:!1,HTMLLegendElement:!1,HTMLLIElement:!1,HTMLLinkElement:!1,HTMLMapElement:!1,HTMLMenuElement:!1,HTMLMetaElement:!1,HTMLModElement:!1,HTMLObjectElement:!1,HTMLOListElement:!1,HTMLOptGroupElement:!1,HTMLOptionElement:!1,HTMLParagraphElement:!1,HTMLParamElement:!1,HTMLPreElement:!1,HTMLQuoteElement:!1,HTMLScriptElement:!1,HTMLSelectElement:!1,HTMLStyleElement:!1,HTMLTableCaptionElement:!1,HTMLTableCellElement:!1,HTMLTableColElement:!1,HTMLTableElement:!1,HTMLTableRowElement:!1,HTMLTableSectionElement:!1,HTMLTemplateElement:!1,HTMLTextAreaElement:!1,HTMLTitleElement:!1,HTMLUListElement:!1,HTMLVideoElement:!1,history:!1,Image:!1,Intl:!1,length:!1,localStorage:!1,location:!1,matchMedia:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,MouseEvent:!1,moveBy:!1,moveTo:!1,MutationObserver:!1,name:!1,Node:!1,NodeFilter:!1,NodeList:!1,Notification:!1,navigator:!1,onbeforeunload:!0,onblur:!0,onerror:!0,onfocus:!0,onload:!0,onresize:!0,onunload:!0,open:!1,openDatabase:!1,opener:!1,Option:!1,parent:!1,performance:!1,print:!1,Range:!1,requestAnimationFrame:!1,removeEventListener:!1,resizeBy:!1,resizeTo:!1,screen:!1,scroll:!1,scrollBy:!1,scrollTo:!1,sessionStorage:!1,setInterval:!1,setTimeout:!1,SharedWorker:!1,status:!1,SVGAElement:!1,SVGAltGlyphDefElement:!1,SVGAltGlyphElement:!1,SVGAltGlyphItemElement:!1,SVGAngle:!1,SVGAnimateColorElement:!1,SVGAnimateElement:!1,SVGAnimateMotionElement:!1,SVGAnimateTransformElement:!1,SVGAnimatedAngle:!1,SVGAnimatedBoolean:!1,SVGAnimatedEnumeration:!1,SVGAnimatedInteger:!1,SVGAnimatedLength:!1,SVGAnimatedLengthList:!1,SVGAnimatedNumber:!1,SVGAnimatedNumberList:!1,SVGAnimatedPathData:!1,SVGAnimatedPoints:!1,SVGAnimatedPreserveAspectRatio:!1,SVGAnimatedRect:!1,SVGAnimatedString:!1,SVGAnimatedTransformList:!1,SVGAnimationElement:!1,SVGCSSRule:!1,SVGCircleElement:!1,SVGClipPathElement:!1,SVGColor:!1,SVGColorProfileElement:!1,SVGColorProfileRule:!1,SVGComponentTransferFunctionElement:!1,SVGCursorElement:!1,SVGDefsElement:!1,SVGDescElement:!1,SVGDocument:!1,SVGElement:!1,SVGElementInstance:!1,SVGElementInstanceList:!1,SVGEllipseElement:!1,SVGExternalResourcesRequired:!1,SVGFEBlendElement:!1,SVGFEColorMatrixElement:!1,SVGFEComponentTransferElement:!1,SVGFECompositeElement:!1,SVGFEConvolveMatrixElement:!1,SVGFEDiffuseLightingElement:!1,SVGFEDisplacementMapElement:!1,SVGFEDistantLightElement:!1,SVGFEFloodElement:!1,SVGFEFuncAElement:!1,SVGFEFuncBElement:!1,SVGFEFuncGElement:!1,SVGFEFuncRElement:!1,SVGFEGaussianBlurElement:!1,SVGFEImageElement:!1,SVGFEMergeElement:!1,SVGFEMergeNodeElement:!1,SVGFEMorphologyElement:!1,SVGFEOffsetElement:!1,SVGFEPointLightElement:!1,SVGFESpecularLightingElement:!1,SVGFESpotLightElement:!1,SVGFETileElement:!1,SVGFETurbulenceElement:!1,SVGFilterElement:!1,SVGFilterPrimitiveStandardAttributes:!1,SVGFitToViewBox:!1,SVGFontElement:!1,SVGFontFaceElement:!1,SVGFontFaceFormatElement:!1,SVGFontFaceNameElement:!1,SVGFontFaceSrcElement:!1,SVGFontFaceUriElement:!1,SVGForeignObjectElement:!1,SVGGElement:!1,SVGGlyphElement:!1,SVGGlyphRefElement:!1,SVGGradientElement:!1,SVGHKernElement:!1,SVGICCColor:!1,SVGImageElement:!1,SVGLangSpace:!1,SVGLength:!1,SVGLengthList:!1,SVGLineElement:!1,SVGLinearGradientElement:!1,SVGLocatable:!1,SVGMPathElement:!1,SVGMarkerElement:!1,SVGMaskElement:!1,SVGMatrix:!1,SVGMetadataElement:!1,SVGMissingGlyphElement:!1,SVGNumber:!1,SVGNumberList:!1,SVGPaint:!1,SVGPathElement:!1,SVGPathSeg:!1,SVGPathSegArcAbs:!1,SVGPathSegArcRel:!1,SVGPathSegClosePath:!1,SVGPathSegCurvetoCubicAbs:!1,SVGPathSegCurvetoCubicRel:!1,SVGPathSegCurvetoCubicSmoothAbs:!1,SVGPathSegCurvetoCubicSmoothRel:!1,SVGPathSegCurvetoQuadraticAbs:!1,SVGPathSegCurvetoQuadraticRel:!1,SVGPathSegCurvetoQuadraticSmoothAbs:!1,SVGPathSegCurvetoQuadraticSmoothRel:!1,SVGPathSegLinetoAbs:!1,SVGPathSegLinetoHorizontalAbs:!1,SVGPathSegLinetoHorizontalRel:!1,SVGPathSegLinetoRel:!1,SVGPathSegLinetoVerticalAbs:!1,SVGPathSegLinetoVerticalRel:!1,SVGPathSegList:!1,SVGPathSegMovetoAbs:!1,SVGPathSegMovetoRel:!1,SVGPatternElement:!1,SVGPoint:!1,SVGPointList:!1,SVGPolygonElement:!1,SVGPolylineElement:!1,SVGPreserveAspectRatio:!1,SVGRadialGradientElement:!1,SVGRect:!1,SVGRectElement:!1,SVGRenderingIntent:!1,SVGSVGElement:!1,SVGScriptElement:!1,SVGSetElement:!1,SVGStopElement:!1,SVGStringList:!1,SVGStylable:!1,SVGStyleElement:!1,SVGSwitchElement:!1,SVGSymbolElement:!1,SVGTRefElement:!1,SVGTSpanElement:!1,SVGTests:!1,SVGTextContentElement:!1,SVGTextElement:!1,SVGTextPathElement:!1,SVGTextPositioningElement:!1,SVGTitleElement:!1,SVGTransform:!1,SVGTransformList:!1,SVGTransformable:!1,SVGURIReference:!1,SVGUnitTypes:!1,SVGUseElement:!1,SVGVKernElement:!1,SVGViewElement:!1,SVGViewSpec:!1,SVGZoomAndPan:!1,Text:!1,TextDecoder:!1,TextEncoder:!1,TimeEvent:!1,top:!1,URL:!1,WebGLActiveInfo:!1,WebGLBuffer:!1,WebGLContextEvent:!1,WebGLFramebuffer:!1,WebGLProgram:!1,WebGLRenderbuffer:!1,WebGLRenderingContext:!1,WebGLShader:!1,WebGLShaderPrecisionFormat:!1,WebGLTexture:!1,WebGLUniformLocation:!1,WebSocket:!1,window:!1,Window:!1,Worker:!1,XDomainRequest:!1,XMLHttpRequest:!1,XMLSerializer:!1,XPathEvaluator:!1,XPathException:!1,XPathExpression:!1,XPathNamespace:!1,XPathNSResolver:!1,XPathResult:!1},exports.devel={alert:!1,confirm:!1,console:!1,Debug:!1,opera:!1,prompt:!1},exports.worker={importScripts:!0,postMessage:!0,self:!0,FileReaderSync:!0},exports.nonstandard={escape:!1,unescape:!1},exports.couch={require:!1,respond:!1,getRow:!1,emit:!1,send:!1,start:!1,sum:!1,log:!1,exports:!1,module:!1,provides:!1},exports.node={__filename:!1,__dirname:!1,GLOBAL:!1,global:!1,module:!1,acequire:!1,Buffer:!0,console:!0,exports:!0,process:!0,setTimeout:!0,clearTimeout:!0,setInterval:!0,clearInterval:!0,setImmediate:!0,clearImmediate:!0},exports.browserify={__filename:!1,__dirname:!1,global:!1,module:!1,acequire:!1,Buffer:!0,exports:!0,process:!0},exports.phantom={phantom:!0,acequire:!0,WebPage:!0,console:!0,exports:!0},exports.qunit={asyncTest:!1,deepEqual:!1,equal:!1,expect:!1,module:!1,notDeepEqual:!1,notEqual:!1,notPropEqual:!1,notStrictEqual:!1,ok:!1,propEqual:!1,QUnit:!1,raises:!1,start:!1,stop:!1,strictEqual:!1,test:!1,\"throws\":!1},exports.rhino={defineClass:!1,deserialize:!1,gc:!1,help:!1,importClass:!1,importPackage:!1,java:!1,load:!1,loadClass:!1,Packages:!1,print:!1,quit:!1,readFile:!1,readUrl:!1,runCommand:!1,seal:!1,serialize:!1,spawn:!1,sync:!1,toint32:!1,version:!1},exports.shelljs={target:!1,echo:!1,exit:!1,cd:!1,pwd:!1,ls:!1,find:!1,cp:!1,rm:!1,mv:!1,mkdir:!1,test:!1,cat:!1,sed:!1,grep:!1,which:!1,dirs:!1,pushd:!1,popd:!1,env:!1,exec:!1,chmod:!1,config:!1,error:!1,tempdir:!1},exports.typed={ArrayBuffer:!1,ArrayBufferView:!1,DataView:!1,Float32Array:!1,Float64Array:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1},exports.wsh={ActiveXObject:!0,Enumerator:!0,GetObject:!0,ScriptEngine:!0,ScriptEngineBuildVersion:!0,ScriptEngineMajorVersion:!0,ScriptEngineMinorVersion:!0,VBArray:!0,WSH:!0,WScript:!0,XDomainRequest:!0},exports.dojo={dojo:!1,dijit:!1,dojox:!1,define:!1,require:!1},exports.jquery={$:!1,jQuery:!1},exports.mootools={$:!1,$$:!1,Asset:!1,Browser:!1,Chain:!1,Class:!1,Color:!1,Cookie:!1,Core:!1,Document:!1,DomReady:!1,DOMEvent:!1,DOMReady:!1,Drag:!1,Element:!1,Elements:!1,Event:!1,Events:!1,Fx:!1,Group:!1,Hash:!1,HtmlTable:!1,IFrame:!1,IframeShim:!1,InputValidator:!1,instanceOf:!1,Keyboard:!1,Locale:!1,Mask:!1,MooTools:!1,Native:!1,Options:!1,OverText:!1,Request:!1,Scroller:!1,Slick:!1,Slider:!1,Sortables:!1,Spinner:!1,Swiff:!1,Tips:!1,Type:!1,typeOf:!1,URI:!1,Window:!1},exports.prototypejs={$:!1,$$:!1,$A:!1,$F:!1,$H:!1,$R:!1,$break:!1,$continue:!1,$w:!1,Abstract:!1,Ajax:!1,Class:!1,Enumerable:!1,Element:!1,Event:!1,Field:!1,Form:!1,Hash:!1,Insertion:!1,ObjectRange:!1,PeriodicalExecuter:!1,Position:!1,Prototype:!1,Selector:!1,Template:!1,Toggle:!1,Try:!1,Autocompleter:!1,Builder:!1,Control:!1,Draggable:!1,Draggables:!1,Droppables:!1,Effect:!1,Sortable:!1,SortableObserver:!1,Sound:!1,Scriptaculous:!1},exports.yui={YUI:!1,Y:!1,YUI_config:!1},exports.mocha={mocha:!1,describe:!1,xdescribe:!1,it:!1,xit:!1,context:!1,xcontext:!1,before:!1,after:!1,beforeEach:!1,afterEach:!1,suite:!1,test:!1,setup:!1,teardown:!1,suiteSetup:!1,suiteTeardown:!1},exports.jasmine={jasmine:!1,describe:!1,xdescribe:!1,it:!1,xit:!1,beforeEach:!1,afterEach:!1,setFixtures:!1,loadFixtures:!1,spyOn:!1,expect:!1,runs:!1,waitsFor:!1,waits:!1,beforeAll:!1,afterAll:!1,fail:!1,fdescribe:!1,fit:!1,pending:!1}},{}]},{},[\"/node_modules/jshint/src/jshint.js\"])}),ace.define(\"ace/mode/javascript_worker\",[\"require\",\"exports\",\"module\",\"ace/lib/oop\",\"ace/worker/mirror\",\"ace/mode/javascript/jshint\"],function(acequire,exports,module){\"use strict\";function startRegex(arr){return RegExp(\"^(\"+arr.join(\"|\")+\")\")}var oop=acequire(\"../lib/oop\"),Mirror=acequire(\"../worker/mirror\").Mirror,lint=acequire(\"./javascript/jshint\").JSHINT,disabledWarningsRe=startRegex([\"Bad for in variable '(.+)'.\",'Missing \"use strict\"']),errorsRe=startRegex([\"Unexpected\",\"Expected \",\"Confusing (plus|minus)\",\"\\\\{a\\\\} unterminated regular expression\",\"Unclosed \",\"Unmatched \",\"Unbegun comment\",\"Bad invocation\",\"Missing space after\",\"Missing operator at\"]),infoRe=startRegex([\"Expected an assignment\",\"Bad escapement of EOL\",\"Unexpected comma\",\"Unexpected space\",\"Missing radix parameter.\",\"A leading decimal point can\",\"\\\\['{a}'\\\\] is better written in dot notation.\",\"'{a}' used out of scope\"]),JavaScriptWorker=exports.JavaScriptWorker=function(sender){Mirror.call(this,sender),this.setTimeout(500),this.setOptions()};oop.inherits(JavaScriptWorker,Mirror),function(){this.setOptions=function(options){this.options=options||{esnext:!0,moz:!0,devel:!0,browser:!0,node:!0,laxcomma:!0,laxbreak:!0,lastsemic:!0,onevar:!1,passfail:!1,maxerr:100,expr:!0,multistr:!0,globalstrict:!0},this.doc.getValue()&&this.deferredUpdate.schedule(100)},this.changeOptions=function(newOptions){oop.mixin(this.options,newOptions),this.doc.getValue()&&this.deferredUpdate.schedule(100)},this.isValidJS=function(str){try{eval(\"throw 0;\"+str)}catch(e){if(0===e)return!0}return!1},this.onUpdate=function(){var value=this.doc.getValue();if(value=value.replace(/^#!.*\\n/,\"\\n\"),!value)return this.sender.emit(\"annotate\",[]);var errors=[],maxErrorLevel=this.isValidJS(value)?\"warning\":\"error\";lint(value,this.options,this.options.globals);for(var results=lint.errors,errorAdded=!1,i=0;results.length>i;i++){var error=results[i];if(error){var raw=error.raw,type=\"warning\";if(\"Missing semicolon.\"==raw){var str=error.evidence.substr(error.character);str=str.charAt(str.search(/\\S/)),\"error\"==maxErrorLevel&&str&&/[\\w\\d{(['\"]/.test(str)?(error.reason='Missing \";\" before statement',type=\"error\"):type=\"info\"}else{if(disabledWarningsRe.test(raw))continue;infoRe.test(raw)?type=\"info\":errorsRe.test(raw)?(errorAdded=!0,type=maxErrorLevel):\"'{a}' is not defined.\"==raw?type=\"warning\":\"'{a}' is defined but never used.\"==raw&&(type=\"info\")}errors.push({row:error.line-1,column:error.character-1,text:error.reason,type:type,raw:raw})}}this.sender.emit(\"annotate\",errors)}}.call(JavaScriptWorker.prototype)}),ace.define(\"ace/lib/es5-shim\",[\"require\",\"exports\",\"module\"],function(){function Empty(){}function doesDefinePropertyWork(object){try{return Object.defineProperty(object,\"sentinel\",{}),\"sentinel\"in object}catch(exception){}}function toInteger(n){return n=+n,n!==n?n=0:0!==n&&n!==1/0&&n!==-(1/0)&&(n=(n>0||-1)*Math.floor(Math.abs(n))),n}Function.prototype.bind||(Function.prototype.bind=function(that){var target=this;if(\"function\"!=typeof target)throw new TypeError(\"Function.prototype.bind called on incompatible \"+target);var args=slice.call(arguments,1),bound=function(){if(this instanceof bound){var result=target.apply(this,args.concat(slice.call(arguments)));return Object(result)===result?result:this}return target.apply(that,args.concat(slice.call(arguments)))};return target.prototype&&(Empty.prototype=target.prototype,bound.prototype=new Empty,Empty.prototype=null),bound});var defineGetter,defineSetter,lookupGetter,lookupSetter,supportsAccessors,call=Function.prototype.call,prototypeOfArray=Array.prototype,prototypeOfObject=Object.prototype,slice=prototypeOfArray.slice,_toString=call.bind(prototypeOfObject.toString),owns=call.bind(prototypeOfObject.hasOwnProperty);if((supportsAccessors=owns(prototypeOfObject,\"__defineGetter__\"))&&(defineGetter=call.bind(prototypeOfObject.__defineGetter__),defineSetter=call.bind(prototypeOfObject.__defineSetter__),lookupGetter=call.bind(prototypeOfObject.__lookupGetter__),lookupSetter=call.bind(prototypeOfObject.__lookupSetter__)),2!=[1,2].splice(0).length)if(function(){function makeArray(l){var a=Array(l+2);return a[0]=a[1]=0,a}var lengthBefore,array=[];return array.splice.apply(array,makeArray(20)),array.splice.apply(array,makeArray(26)),lengthBefore=array.length,array.splice(5,0,\"XXX\"),lengthBefore+1==array.length,lengthBefore+1==array.length?!0:void 0}()){var array_splice=Array.prototype.splice;Array.prototype.splice=function(start,deleteCount){return arguments.length?array_splice.apply(this,[void 0===start?0:start,void 0===deleteCount?this.length-start:deleteCount].concat(slice.call(arguments,2))):[]}}else Array.prototype.splice=function(pos,removeCount){var length=this.length;pos>0?pos>length&&(pos=length):void 0==pos?pos=0:0>pos&&(pos=Math.max(length+pos,0)),length>pos+removeCount||(removeCount=length-pos);var removed=this.slice(pos,pos+removeCount),insert=slice.call(arguments,2),add=insert.length;if(pos===length)add&&this.push.apply(this,insert);else{var remove=Math.min(removeCount,length-pos),tailOldPos=pos+remove,tailNewPos=tailOldPos+add-remove,tailCount=length-tailOldPos,lengthAfterRemove=length-remove;if(tailOldPos>tailNewPos)for(var i=0;tailCount>i;++i)this[tailNewPos+i]=this[tailOldPos+i];else if(tailNewPos>tailOldPos)for(i=tailCount;i--;)this[tailNewPos+i]=this[tailOldPos+i];if(add&&pos===lengthAfterRemove)this.length=lengthAfterRemove,this.push.apply(this,insert);else for(this.length=lengthAfterRemove+add,i=0;add>i;++i)this[pos+i]=insert[i]}return removed};Array.isArray||(Array.isArray=function(obj){return\"[object Array]\"==_toString(obj)});var boxedString=Object(\"a\"),splitString=\"a\"!=boxedString[0]||!(0 in boxedString);if(Array.prototype.forEach||(Array.prototype.forEach=function(fun){var object=toObject(this),self=splitString&&\"[object String]\"==_toString(this)?this.split(\"\"):object,thisp=arguments[1],i=-1,length=self.length>>>0;if(\"[object Function]\"!=_toString(fun))throw new TypeError;for(;length>++i;)i in self&&fun.call(thisp,self[i],i,object)}),Array.prototype.map||(Array.prototype.map=function(fun){var object=toObject(this),self=splitString&&\"[object String]\"==_toString(this)?this.split(\"\"):object,length=self.length>>>0,result=Array(length),thisp=arguments[1];if(\"[object Function]\"!=_toString(fun))throw new TypeError(fun+\" is not a function\");for(var i=0;length>i;i++)i in self&&(result[i]=fun.call(thisp,self[i],i,object));return result}),Array.prototype.filter||(Array.prototype.filter=function(fun){var value,object=toObject(this),self=splitString&&\"[object String]\"==_toString(this)?this.split(\"\"):object,length=self.length>>>0,result=[],thisp=arguments[1];if(\"[object Function]\"!=_toString(fun))throw new TypeError(fun+\" is not a function\");for(var i=0;length>i;i++)i in self&&(value=self[i],fun.call(thisp,value,i,object)&&result.push(value));return result}),Array.prototype.every||(Array.prototype.every=function(fun){var object=toObject(this),self=splitString&&\"[object String]\"==_toString(this)?this.split(\"\"):object,length=self.length>>>0,thisp=arguments[1];if(\"[object Function]\"!=_toString(fun))throw new TypeError(fun+\" is not a function\");for(var i=0;length>i;i++)if(i in self&&!fun.call(thisp,self[i],i,object))return!1;return!0}),Array.prototype.some||(Array.prototype.some=function(fun){var object=toObject(this),self=splitString&&\"[object String]\"==_toString(this)?this.split(\"\"):object,length=self.length>>>0,thisp=arguments[1];if(\"[object Function]\"!=_toString(fun))throw new TypeError(fun+\" is not a function\");for(var i=0;length>i;i++)if(i in self&&fun.call(thisp,self[i],i,object))return!0;return!1}),Array.prototype.reduce||(Array.prototype.reduce=function(fun){var object=toObject(this),self=splitString&&\"[object String]\"==_toString(this)?this.split(\"\"):object,length=self.length>>>0;if(\"[object Function]\"!=_toString(fun))throw new TypeError(fun+\" is not a function\");if(!length&&1==arguments.length)throw new TypeError(\"reduce of empty array with no initial value\");var result,i=0;if(arguments.length>=2)result=arguments[1];else for(;;){if(i in self){result=self[i++];break}if(++i>=length)throw new TypeError(\"reduce of empty array with no initial value\")}for(;length>i;i++)i in self&&(result=fun.call(void 0,result,self[i],i,object));return result}),Array.prototype.reduceRight||(Array.prototype.reduceRight=function(fun){var object=toObject(this),self=splitString&&\"[object String]\"==_toString(this)?this.split(\"\"):object,length=self.length>>>0;if(\"[object Function]\"!=_toString(fun))throw new TypeError(fun+\" is not a function\");if(!length&&1==arguments.length)throw new TypeError(\"reduceRight of empty array with no initial value\");var result,i=length-1;if(arguments.length>=2)result=arguments[1];else for(;;){if(i in self){result=self[i--];break}if(0>--i)throw new TypeError(\"reduceRight of empty array with no initial value\")}do i in this&&(result=fun.call(void 0,result,self[i],i,object));while(i--);return result}),Array.prototype.indexOf&&-1==[0,1].indexOf(1,2)||(Array.prototype.indexOf=function(sought){var self=splitString&&\"[object String]\"==_toString(this)?this.split(\"\"):toObject(this),length=self.length>>>0;if(!length)return-1;var i=0;for(arguments.length>1&&(i=toInteger(arguments[1])),i=i>=0?i:Math.max(0,length+i);length>i;i++)if(i in self&&self[i]===sought)return i;return-1}),Array.prototype.lastIndexOf&&-1==[0,1].lastIndexOf(0,-3)||(Array.prototype.lastIndexOf=function(sought){var self=splitString&&\"[object String]\"==_toString(this)?this.split(\"\"):toObject(this),length=self.length>>>0;if(!length)return-1;var i=length-1;for(arguments.length>1&&(i=Math.min(i,toInteger(arguments[1]))),i=i>=0?i:length-Math.abs(i);i>=0;i--)if(i in self&&sought===self[i])return i;return-1}),Object.getPrototypeOf||(Object.getPrototypeOf=function(object){return object.__proto__||(object.constructor?object.constructor.prototype:prototypeOfObject)}),!Object.getOwnPropertyDescriptor){var ERR_NON_OBJECT=\"Object.getOwnPropertyDescriptor called on a non-object: \";Object.getOwnPropertyDescriptor=function(object,property){if(\"object\"!=typeof object&&\"function\"!=typeof object||null===object)throw new TypeError(ERR_NON_OBJECT+object);if(owns(object,property)){var descriptor,getter,setter;if(descriptor={enumerable:!0,configurable:!0},supportsAccessors){var prototype=object.__proto__;object.__proto__=prototypeOfObject;var getter=lookupGetter(object,property),setter=lookupSetter(object,property);if(object.__proto__=prototype,getter||setter)return getter&&(descriptor.get=getter),setter&&(descriptor.set=setter),descriptor}return descriptor.value=object[property],descriptor}}}if(Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(object){return Object.keys(object)}),!Object.create){var createEmpty;createEmpty=null===Object.prototype.__proto__?function(){return{__proto__:null}}:function(){var empty={};for(var i in empty)empty[i]=null;return empty.constructor=empty.hasOwnProperty=empty.propertyIsEnumerable=empty.isPrototypeOf=empty.toLocaleString=empty.toString=empty.valueOf=empty.__proto__=null,empty},Object.create=function(prototype,properties){var object;if(null===prototype)object=createEmpty();else{if(\"object\"!=typeof prototype)throw new TypeError(\"typeof prototype[\"+typeof prototype+\"] != 'object'\");var Type=function(){};Type.prototype=prototype,object=new Type,object.__proto__=prototype}return void 0!==properties&&Object.defineProperties(object,properties),object}}if(Object.defineProperty){var definePropertyWorksOnObject=doesDefinePropertyWork({}),definePropertyWorksOnDom=\"undefined\"==typeof document||doesDefinePropertyWork(document.createElement(\"div\"));if(!definePropertyWorksOnObject||!definePropertyWorksOnDom)var definePropertyFallback=Object.defineProperty}if(!Object.defineProperty||definePropertyFallback){var ERR_NON_OBJECT_DESCRIPTOR=\"Property description must be an object: \",ERR_NON_OBJECT_TARGET=\"Object.defineProperty called on non-object: \",ERR_ACCESSORS_NOT_SUPPORTED=\"getters & setters can not be defined on this javascript engine\";Object.defineProperty=function(object,property,descriptor){if(\"object\"!=typeof object&&\"function\"!=typeof object||null===object)throw new TypeError(ERR_NON_OBJECT_TARGET+object);if(\"object\"!=typeof descriptor&&\"function\"!=typeof descriptor||null===descriptor)throw new TypeError(ERR_NON_OBJECT_DESCRIPTOR+descriptor);if(definePropertyFallback)try{return definePropertyFallback.call(Object,object,property,descriptor)}catch(exception){}if(owns(descriptor,\"value\"))if(supportsAccessors&&(lookupGetter(object,property)||lookupSetter(object,property))){var prototype=object.__proto__;object.__proto__=prototypeOfObject,delete object[property],object[property]=descriptor.value,object.__proto__=prototype}else object[property]=descriptor.value;else{if(!supportsAccessors)throw new TypeError(ERR_ACCESSORS_NOT_SUPPORTED);owns(descriptor,\"get\")&&defineGetter(object,property,descriptor.get),owns(descriptor,\"set\")&&defineSetter(object,property,descriptor.set)}return object}}Object.defineProperties||(Object.defineProperties=function(object,properties){for(var property in properties)owns(properties,property)&&Object.defineProperty(object,property,properties[property]);return object}),Object.seal||(Object.seal=function(object){return object}),Object.freeze||(Object.freeze=function(object){return object});try{Object.freeze(function(){})}catch(exception){Object.freeze=function(freezeObject){return function(object){return\"function\"==typeof object?object:freezeObject(object)}}(Object.freeze)}if(Object.preventExtensions||(Object.preventExtensions=function(object){return object}),Object.isSealed||(Object.isSealed=function(){return!1}),Object.isFrozen||(Object.isFrozen=function(){return!1}),Object.isExtensible||(Object.isExtensible=function(object){if(Object(object)===object)throw new TypeError;for(var name=\"\";owns(object,name);)name+=\"?\";object[name]=!0;var returnValue=owns(object,name);return delete object[name],returnValue}),!Object.keys){var hasDontEnumBug=!0,dontEnums=[\"toString\",\"toLocaleString\",\"valueOf\",\"hasOwnProperty\",\"isPrototypeOf\",\"propertyIsEnumerable\",\"constructor\"],dontEnumsLength=dontEnums.length;for(var key in{toString:null})hasDontEnumBug=!1;Object.keys=function(object){if(\"object\"!=typeof object&&\"function\"!=typeof object||null===object)throw new TypeError(\"Object.keys called on a non-object\");var keys=[];for(var name in object)owns(object,name)&&keys.push(name);if(hasDontEnumBug)for(var i=0,ii=dontEnumsLength;ii>i;i++){var dontEnum=dontEnums[i];owns(object,dontEnum)&&keys.push(dontEnum)}return keys}}Date.now||(Date.now=function(){return(new Date).getTime()});var ws=\"\t\\n\u000b\\f\\r \\u2028\\u2029\";if(!String.prototype.trim||ws.trim()){ws=\"[\"+ws+\"]\";var trimBeginRegexp=RegExp(\"^\"+ws+ws+\"*\"),trimEndRegexp=RegExp(ws+ws+\"*$\");String.prototype.trim=function(){return(this+\"\").replace(trimBeginRegexp,\"\").replace(trimEndRegexp,\"\")}}var toObject=function(o){if(null==o)throw new TypeError(\"can't convert \"+o+\" to object\");return Object(o)}});";
/***/ }),
-/* 195 */
+/* 200 */
/*!*********************************************************!*\
!*** ./node_modules/js-beautify/js/lib/beautify-css.js ***!
\*********************************************************/
@@ -28104,7 +28109,7 @@ if (true) {
/***/ }),
-/* 196 */
+/* 201 */
/*!*****************************************************!*\
!*** ./node_modules/js-beautify/js/lib/beautify.js ***!
\*****************************************************/
@@ -30933,7 +30938,7 @@ if (true) {
/***/ }),
-/* 197 */
+/* 202 */
/*!***************************************!*\
!*** (webpack)/buildin/amd-define.js ***!
\***************************************/
@@ -30947,16 +30952,16 @@ module.exports = function() {
/***/ }),
-/* 198 */,
-/* 199 */,
-/* 200 */,
-/* 201 */,
-/* 202 */,
/* 203 */,
/* 204 */,
/* 205 */,
/* 206 */,
-/* 207 */
+/* 207 */,
+/* 208 */,
+/* 209 */,
+/* 210 */,
+/* 211 */,
+/* 212 */
/*!*******************************************!*\
!*** ./node_modules/check-error/index.js ***!
\*******************************************/
@@ -31140,7 +31145,7 @@ module.exports = {
/***/ }),
-/* 208 */
+/* 213 */
/*!*****************************************************************************!*\
!*** ./node_modules/chai/lib/chai/utils/getOwnEnumerablePropertySymbols.js ***!
\*****************************************************************************/
@@ -31178,7 +31183,7 @@ module.exports = function getOwnEnumerablePropertySymbols(obj) {
/***/ }),
-/* 209 */
+/* 214 */
/*!********************************************************!*\
!*** ./node_modules/chai/lib/chai/utils/objDisplay.js ***!
\********************************************************/
@@ -31196,8 +31201,8 @@ module.exports = function getOwnEnumerablePropertySymbols(obj) {
* Module dependancies
*/
-var inspect = __webpack_require__(/*! ./inspect */ 142);
-var config = __webpack_require__(/*! ../config */ 111);
+var inspect = __webpack_require__(/*! ./inspect */ 144);
+var config = __webpack_require__(/*! ../config */ 112);
/**
* ### .objDisplay(object)
@@ -31239,7 +31244,7 @@ module.exports = function objDisplay(obj) {
/***/ }),
-/* 210 */
+/* 215 */
/*!***********************************************************!*\
!*** ./node_modules/chai/lib/chai/utils/getProperties.js ***!
\***********************************************************/
@@ -31286,7 +31291,7 @@ module.exports = function getProperties(object) {
/***/ }),
-/* 211 */
+/* 216 */
/*!*********************************************!*\
!*** ./node_modules/get-func-name/index.js ***!
\*********************************************/
@@ -31342,7 +31347,7 @@ module.exports = getFuncName;
/***/ }),
-/* 212 */
+/* 217 */
/*!*******************************************************!*\
!*** ./node_modules/chai/lib/chai/utils/getActual.js ***!
\*******************************************************/
@@ -31373,7 +31378,7 @@ module.exports = function getActual(obj, args) {
/***/ }),
-/* 213 */
+/* 218 */
/*!***********************************************!*\
!*** ./node_modules/assertion-error/index.js ***!
\***********************************************/
@@ -31500,7 +31505,7 @@ AssertionError.prototype.toJSON = function (stack) {
/***/ }),
-/* 214 */
+/* 219 */
/*!**************************************************!*\
!*** ./node_modules/normalize.css/normalize.css ***!
\**************************************************/
@@ -31510,7 +31515,7 @@ AssertionError.prototype.toJSON = function (stack) {
// extracted by mini-css-extract-plugin
/***/ }),
-/* 215 */
+/* 220 */
/*!*************************************************************************!*\
!*** ./node_modules/escodegen/node_modules/source-map/lib/array-set.js ***!
\*************************************************************************/
@@ -31525,7 +31530,7 @@ AssertionError.prototype.toJSON = function (stack) {
* http://opensource.org/licenses/BSD-3-Clause
*/
-var util = __webpack_require__(/*! ./util */ 123);
+var util = __webpack_require__(/*! ./util */ 125);
var has = Object.prototype.hasOwnProperty;
var hasNativeMap = typeof Map !== "undefined";
@@ -31642,7 +31647,7 @@ exports.ArraySet = ArraySet;
/***/ }),
-/* 216 */
+/* 221 */
/*!**************************************************************************!*\
!*** ./node_modules/escodegen/node_modules/source-map/lib/base64-vlq.js ***!
\**************************************************************************/
@@ -31687,7 +31692,7 @@ exports.ArraySet = ArraySet;
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-var base64 = __webpack_require__(/*! ./base64 */ 312);
+var base64 = __webpack_require__(/*! ./base64 */ 317);
// A single base 64 digit can contain 6 bits of data. For the base 64 variable
// length quantities we use in the source map spec, the first bit is the sign,
@@ -31793,7 +31798,7 @@ exports.decode = function base64VLQ_decode(aStr, aIndex, aOutParam) {
/***/ }),
-/* 217 */
+/* 222 */
/*!************************************************************************************!*\
!*** ./node_modules/escodegen/node_modules/source-map/lib/source-map-generator.js ***!
\************************************************************************************/
@@ -31808,10 +31813,10 @@ exports.decode = function base64VLQ_decode(aStr, aIndex, aOutParam) {
* http://opensource.org/licenses/BSD-3-Clause
*/
-var base64VLQ = __webpack_require__(/*! ./base64-vlq */ 216);
-var util = __webpack_require__(/*! ./util */ 123);
-var ArraySet = __webpack_require__(/*! ./array-set */ 215).ArraySet;
-var MappingList = __webpack_require__(/*! ./mapping-list */ 311).MappingList;
+var base64VLQ = __webpack_require__(/*! ./base64-vlq */ 221);
+var util = __webpack_require__(/*! ./util */ 125);
+var ArraySet = __webpack_require__(/*! ./array-set */ 220).ArraySet;
+var MappingList = __webpack_require__(/*! ./mapping-list */ 316).MappingList;
/**
* An instance of the SourceMapGenerator represents a source map which is
@@ -32229,7 +32234,7 @@ exports.SourceMapGenerator = SourceMapGenerator;
/***/ }),
-/* 218 */
+/* 223 */
/*!******************************************!*\
!*** ./node_modules/esutils/lib/code.js ***!
\******************************************/
@@ -32375,7 +32380,7 @@ exports.SourceMapGenerator = SourceMapGenerator;
/***/ }),
-/* 219 */
+/* 224 */
/*!***********************************************************!*\
!*** ./node_modules/jszip/lib/reader/Uint8ArrayReader.js ***!
\***********************************************************/
@@ -32385,7 +32390,7 @@ exports.SourceMapGenerator = SourceMapGenerator;
"use strict";
-var ArrayReader = __webpack_require__(/*! ./ArrayReader */ 221);
+var ArrayReader = __webpack_require__(/*! ./ArrayReader */ 226);
var utils = __webpack_require__(/*! ../utils */ 69);
function Uint8ArrayReader(data) {
@@ -32409,7 +32414,7 @@ module.exports = Uint8ArrayReader;
/***/ }),
-/* 220 */
+/* 225 */
/*!*****************************************************!*\
!*** ./node_modules/jszip/lib/reader/DataReader.js ***!
\*****************************************************/
@@ -32537,7 +32542,7 @@ module.exports = DataReader;
/***/ }),
-/* 221 */
+/* 226 */
/*!******************************************************!*\
!*** ./node_modules/jszip/lib/reader/ArrayReader.js ***!
\******************************************************/
@@ -32547,7 +32552,7 @@ module.exports = DataReader;
"use strict";
-var DataReader = __webpack_require__(/*! ./DataReader */ 220);
+var DataReader = __webpack_require__(/*! ./DataReader */ 225);
var utils = __webpack_require__(/*! ../utils */ 69);
function ArrayReader(data) {
@@ -32606,7 +32611,7 @@ module.exports = ArrayReader;
/***/ }),
-/* 222 */
+/* 227 */
/*!****************************************************!*\
!*** ./node_modules/jszip/lib/reader/readerFor.js ***!
\****************************************************/
@@ -32618,11 +32623,11 @@ module.exports = ArrayReader;
var utils = __webpack_require__(/*! ../utils */ 69);
-var support = __webpack_require__(/*! ../support */ 108);
-var ArrayReader = __webpack_require__(/*! ./ArrayReader */ 221);
-var StringReader = __webpack_require__(/*! ./StringReader */ 322);
-var NodeBufferReader = __webpack_require__(/*! ./NodeBufferReader */ 321);
-var Uint8ArrayReader = __webpack_require__(/*! ./Uint8ArrayReader */ 219);
+var support = __webpack_require__(/*! ../support */ 109);
+var ArrayReader = __webpack_require__(/*! ./ArrayReader */ 226);
+var StringReader = __webpack_require__(/*! ./StringReader */ 327);
+var NodeBufferReader = __webpack_require__(/*! ./NodeBufferReader */ 326);
+var Uint8ArrayReader = __webpack_require__(/*! ./Uint8ArrayReader */ 224);
/**
* Create a reader adapted to the data.
@@ -32646,7 +32651,7 @@ module.exports = function (data) {
/***/ }),
-/* 223 */
+/* 228 */
/*!*********************************************!*\
!*** ./node_modules/jszip/lib/signature.js ***!
\*********************************************/
@@ -32665,7 +32670,7 @@ exports.DATA_DESCRIPTOR = "PK\x07\x08";
/***/ }),
-/* 224 */
+/* 229 */
/*!*************************************************!*\
!*** ./node_modules/pako/lib/zlib/constants.js ***!
\*************************************************/
@@ -32745,7 +32750,7 @@ module.exports = {
/***/ }),
-/* 225 */
+/* 230 */
/*!***********************************************!*\
!*** ./node_modules/pako/lib/zlib/zstream.js ***!
\***********************************************/
@@ -32804,7 +32809,7 @@ module.exports = ZStream;
/***/ }),
-/* 226 */
+/* 231 */
/*!************************************************!*\
!*** ./node_modules/pako/lib/utils/strings.js ***!
\************************************************/
@@ -32817,7 +32822,7 @@ module.exports = ZStream;
-var utils = __webpack_require__(/*! ./common */ 107);
+var utils = __webpack_require__(/*! ./common */ 108);
// Quick check if we can use fast array to bin string conversion
@@ -33001,7 +33006,7 @@ exports.utf8border = function (buf, max) {
/***/ }),
-/* 227 */
+/* 232 */
/*!*********************************************!*\
!*** ./node_modules/pako/lib/zlib/crc32.js ***!
\*********************************************/
@@ -33072,7 +33077,7 @@ module.exports = crc32;
/***/ }),
-/* 228 */
+/* 233 */
/*!***********************************************!*\
!*** ./node_modules/pako/lib/zlib/adler32.js ***!
\***********************************************/
@@ -33135,7 +33140,7 @@ module.exports = adler32;
/***/ }),
-/* 229 */
+/* 234 */
/*!************************************************!*\
!*** ./node_modules/jszip/lib/compressions.js ***!
\************************************************/
@@ -33157,11 +33162,11 @@ exports.STORE = {
return new GenericWorker("STORE decompression");
}
};
-exports.DEFLATE = __webpack_require__(/*! ./flate */ 336);
+exports.DEFLATE = __webpack_require__(/*! ./flate */ 341);
/***/ }),
-/* 230 */
+/* 235 */
/*!*****************************************************!*\
!*** ./node_modules/jszip/lib/stream/Crc32Probe.js ***!
\*****************************************************/
@@ -33173,7 +33178,7 @@ exports.DEFLATE = __webpack_require__(/*! ./flate */ 336);
var GenericWorker = __webpack_require__(/*! ./GenericWorker */ 90);
-var crc32 = __webpack_require__(/*! ../crc32 */ 186);
+var crc32 = __webpack_require__(/*! ../crc32 */ 188);
var utils = __webpack_require__(/*! ../utils */ 69);
/**
@@ -33197,7 +33202,7 @@ module.exports = Crc32Probe;
/***/ }),
-/* 231 */
+/* 236 */
/*!**********************************************************!*\
!*** ./node_modules/jszip/lib/stream/DataLengthProbe.js ***!
\**********************************************************/
@@ -33238,7 +33243,7 @@ module.exports = DataLengthProbe;
/***/ }),
-/* 232 */
+/* 237 */
/*!*****************************************************!*\
!*** ./node_modules/jszip/lib/stream/DataWorker.js ***!
\*****************************************************/
@@ -33366,7 +33371,7 @@ module.exports = DataWorker;
/***/ }),
-/* 233 */
+/* 238 */
/*!********************************************!*\
!*** ./node_modules/jszip/lib/defaults.js ***!
\********************************************/
@@ -33389,7 +33394,7 @@ exports.dosPermissions = null;
/***/ }),
-/* 234 */
+/* 239 */
/*!*******************************************************!*\
!*** ./node_modules/jszip/lib/stream/StreamHelper.js ***!
\*******************************************************/
@@ -33401,16 +33406,16 @@ exports.dosPermissions = null;
/* WEBPACK VAR INJECTION */(function(Buffer) {
var utils = __webpack_require__(/*! ../utils */ 69);
-var ConvertWorker = __webpack_require__(/*! ./ConvertWorker */ 340);
+var ConvertWorker = __webpack_require__(/*! ./ConvertWorker */ 345);
var GenericWorker = __webpack_require__(/*! ./GenericWorker */ 90);
-var base64 = __webpack_require__(/*! ../base64 */ 239);
-var support = __webpack_require__(/*! ../support */ 108);
-var external = __webpack_require__(/*! ../external */ 124);
+var base64 = __webpack_require__(/*! ../base64 */ 244);
+var support = __webpack_require__(/*! ../support */ 109);
+var external = __webpack_require__(/*! ../external */ 126);
var NodejsStreamOutputAdapter = null;
if (support.nodestream) {
try {
- NodejsStreamOutputAdapter = __webpack_require__(/*! ../nodejs/NodejsStreamOutputAdapter */ 339);
+ NodejsStreamOutputAdapter = __webpack_require__(/*! ../nodejs/NodejsStreamOutputAdapter */ 344);
} catch(e) {}
}
@@ -33611,10 +33616,10 @@ StreamHelper.prototype = {
module.exports = StreamHelper;
-/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../buffer/index.js */ 126).Buffer))
+/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../buffer/index.js */ 128).Buffer))
/***/ }),
-/* 235 */
+/* 240 */
/*!********************************************************************************!*\
!*** ./node_modules/jszip/node_modules/core-js/library/modules/_dom-create.js ***!
\********************************************************************************/
@@ -33622,8 +33627,8 @@ module.exports = StreamHelper;
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
-var isObject = __webpack_require__(/*! ./_is-object */ 189)
- , document = __webpack_require__(/*! ./_global */ 143).document
+var isObject = __webpack_require__(/*! ./_is-object */ 191)
+ , document = __webpack_require__(/*! ./_global */ 145).document
// in old IE typeof document.createElement is 'object'
, is = isObject(document) && isObject(document.createElement);
module.exports = function(it){
@@ -33631,7 +33636,7 @@ module.exports = function(it){
};
/***/ }),
-/* 236 */
+/* 241 */
/*!***************************************************************************!*\
!*** ./node_modules/jszip/node_modules/core-js/library/modules/_fails.js ***!
\***************************************************************************/
@@ -33648,7 +33653,7 @@ module.exports = function(exec){
};
/***/ }),
-/* 237 */
+/* 242 */
/*!*************************************************************************!*\
!*** ./node_modules/jszip/node_modules/core-js/library/modules/_ctx.js ***!
\*************************************************************************/
@@ -33657,7 +33662,7 @@ module.exports = function(exec){
/***/ (function(module, exports, __webpack_require__) {
// optional / simple context binding
-var aFunction = __webpack_require__(/*! ./_a-function */ 353);
+var aFunction = __webpack_require__(/*! ./_a-function */ 358);
module.exports = function(fn, that, length){
aFunction(fn);
if(that === undefined)return fn;
@@ -33678,7 +33683,7 @@ module.exports = function(fn, that, length){
};
/***/ }),
-/* 238 */
+/* 243 */
/*!**************************************************************************!*\
!*** ./node_modules/jszip/node_modules/core-js/library/modules/_core.js ***!
\**************************************************************************/
@@ -33690,7 +33695,7 @@ var core = module.exports = {version: '2.3.0'};
if(typeof __e == 'number')__e = core; // eslint-disable-line no-undef
/***/ }),
-/* 239 */
+/* 244 */
/*!******************************************!*\
!*** ./node_modules/jszip/lib/base64.js ***!
\******************************************/
@@ -33701,7 +33706,7 @@ if(typeof __e == 'number')__e = core; // eslint-disable-line no-undef
"use strict";
var utils = __webpack_require__(/*! ./utils */ 69);
-var support = __webpack_require__(/*! ./support */ 108);
+var support = __webpack_require__(/*! ./support */ 109);
// private property
var _keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
@@ -33808,7 +33813,7 @@ exports.decode = function(input) {
/***/ }),
-/* 240 */
+/* 245 */
/*!***************************************************************!*\
!*** ./node_modules/readable-stream/lib/_stream_transform.js ***!
\***************************************************************/
@@ -33884,11 +33889,11 @@ exports.decode = function(input) {
module.exports = Transform;
-var Duplex = __webpack_require__(/*! ./_stream_duplex */ 113);
+var Duplex = __webpack_require__(/*! ./_stream_duplex */ 114);
/**/
-var util = __webpack_require__(/*! core-util-is */ 125);
-util.inherits = __webpack_require__(/*! inherits */ 121);
+var util = __webpack_require__(/*! core-util-is */ 127);
+util.inherits = __webpack_require__(/*! inherits */ 123);
/* */
util.inherits(Transform, Duplex);
@@ -34033,7 +34038,7 @@ function done(stream, er, data) {
}
/***/ }),
-/* 241 */
+/* 246 */
/*!***********************************************************!*\
!*** ./node_modules/string_decoder/lib/string_decoder.js ***!
\***********************************************************/
@@ -34044,7 +34049,7 @@ function done(stream, er, data) {
"use strict";
-var Buffer = __webpack_require__(/*! safe-buffer */ 145).Buffer;
+var Buffer = __webpack_require__(/*! safe-buffer */ 147).Buffer;
var isEncoding = Buffer.isEncoding || function (encoding) {
encoding = '' + encoding;
@@ -34316,7 +34321,7 @@ function simpleEnd(buf) {
}
/***/ }),
-/* 242 */
+/* 247 */
/*!**********************************************************************!*\
!*** ./node_modules/readable-stream/lib/internal/streams/destroy.js ***!
\**********************************************************************/
@@ -34329,7 +34334,7 @@ function simpleEnd(buf) {
/**/
-var processNextTick = __webpack_require__(/*! process-nextick-args */ 146).nextTick;
+var processNextTick = __webpack_require__(/*! process-nextick-args */ 148).nextTick;
/* */
// undocumented cb() API, needed for core, not for public API
@@ -34401,9 +34406,9 @@ module.exports = {
};
/***/ }),
-/* 243 */,
-/* 244 */,
-/* 245 */
+/* 248 */,
+/* 249 */,
+/* 250 */
/*!*****************************************************************************!*\
!*** ./node_modules/readable-stream/lib/internal/streams/stream-browser.js ***!
\*****************************************************************************/
@@ -34411,11 +34416,11 @@ module.exports = {
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
-module.exports = __webpack_require__(/*! events */ 192).EventEmitter;
+module.exports = __webpack_require__(/*! events */ 194).EventEmitter;
/***/ }),
-/* 246 */
+/* 251 */
/*!**************************************************************!*\
!*** ./node_modules/readable-stream/lib/_stream_readable.js ***!
\**************************************************************/
@@ -34449,13 +34454,13 @@ module.exports = __webpack_require__(/*! events */ 192).EventEmitter;
/**/
-var processNextTick = __webpack_require__(/*! process-nextick-args */ 146).nextTick;
+var processNextTick = __webpack_require__(/*! process-nextick-args */ 148).nextTick;
/* */
module.exports = Readable;
/**/
-var isArray = __webpack_require__(/*! isarray */ 248);
+var isArray = __webpack_require__(/*! isarray */ 253);
/* */
/**/
@@ -34465,7 +34470,7 @@ var Duplex;
Readable.ReadableState = ReadableState;
/**/
-var EE = __webpack_require__(/*! events */ 192).EventEmitter;
+var EE = __webpack_require__(/*! events */ 194).EventEmitter;
var EElistenerCount = function (emitter, type) {
return emitter.listeners(type).length;
@@ -34473,12 +34478,12 @@ var EElistenerCount = function (emitter, type) {
/* */
/**/
-var Stream = __webpack_require__(/*! ./internal/streams/stream */ 245);
+var Stream = __webpack_require__(/*! ./internal/streams/stream */ 250);
/* */
/**/
-var Buffer = __webpack_require__(/*! safe-buffer */ 145).Buffer;
+var Buffer = __webpack_require__(/*! safe-buffer */ 147).Buffer;
var OurUint8Array = global.Uint8Array || function () {};
function _uint8ArrayToBuffer(chunk) {
return Buffer.from(chunk);
@@ -34490,12 +34495,12 @@ function _isUint8Array(obj) {
/* */
/**/
-var util = __webpack_require__(/*! core-util-is */ 125);
-util.inherits = __webpack_require__(/*! inherits */ 121);
+var util = __webpack_require__(/*! core-util-is */ 127);
+util.inherits = __webpack_require__(/*! inherits */ 123);
/* */
/**/
-var debugUtil = __webpack_require__(/*! util */ 244);
+var debugUtil = __webpack_require__(/*! util */ 249);
var debug = void 0;
if (debugUtil && debugUtil.debuglog) {
debug = debugUtil.debuglog('stream');
@@ -34504,8 +34509,8 @@ if (debugUtil && debugUtil.debuglog) {
}
/* */
-var BufferList = __webpack_require__(/*! ./internal/streams/BufferList */ 363);
-var destroyImpl = __webpack_require__(/*! ./internal/streams/destroy */ 242);
+var BufferList = __webpack_require__(/*! ./internal/streams/BufferList */ 368);
+var destroyImpl = __webpack_require__(/*! ./internal/streams/destroy */ 247);
var StringDecoder;
util.inherits(Readable, Stream);
@@ -34525,7 +34530,7 @@ function prependListener(emitter, event, fn) {
}
function ReadableState(options, stream) {
- Duplex = Duplex || __webpack_require__(/*! ./_stream_duplex */ 113);
+ Duplex = Duplex || __webpack_require__(/*! ./_stream_duplex */ 114);
options = options || {};
@@ -34595,14 +34600,14 @@ function ReadableState(options, stream) {
this.decoder = null;
this.encoding = null;
if (options.encoding) {
- if (!StringDecoder) StringDecoder = __webpack_require__(/*! string_decoder/ */ 241).StringDecoder;
+ if (!StringDecoder) StringDecoder = __webpack_require__(/*! string_decoder/ */ 246).StringDecoder;
this.decoder = new StringDecoder(options.encoding);
this.encoding = options.encoding;
}
}
function Readable(options) {
- Duplex = Duplex || __webpack_require__(/*! ./_stream_duplex */ 113);
+ Duplex = Duplex || __webpack_require__(/*! ./_stream_duplex */ 114);
if (!(this instanceof Readable)) return new Readable(options);
@@ -34751,7 +34756,7 @@ Readable.prototype.isPaused = function () {
// backwards compatibility.
Readable.prototype.setEncoding = function (enc) {
- if (!StringDecoder) StringDecoder = __webpack_require__(/*! string_decoder/ */ 241).StringDecoder;
+ if (!StringDecoder) StringDecoder = __webpack_require__(/*! string_decoder/ */ 246).StringDecoder;
this._readableState.decoder = new StringDecoder(enc);
this._readableState.encoding = enc;
return this;
@@ -35439,10 +35444,10 @@ function indexOf(xs, x) {
}
return -1;
}
-/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../webpack/buildin/global.js */ 96), __webpack_require__(/*! ./../../process/browser.js */ 127)))
+/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../webpack/buildin/global.js */ 97), __webpack_require__(/*! ./../../process/browser.js */ 129)))
/***/ }),
-/* 247 */
+/* 252 */
/*!***********************************************************!*\
!*** ./node_modules/jszip/lib/readable-stream-browser.js ***!
\***********************************************************/
@@ -35458,11 +35463,11 @@ function indexOf(xs, x) {
* reduce the final size of the bundle (only one stream implementation, not
* two).
*/
-module.exports = __webpack_require__(/*! stream */ 364);
+module.exports = __webpack_require__(/*! stream */ 369);
/***/ }),
-/* 248 */
+/* 253 */
/*!***************************************!*\
!*** ./node_modules/isarray/index.js ***!
\***************************************/
@@ -35478,7 +35483,7 @@ module.exports = Array.isArray || function (arr) {
/***/ }),
-/* 249 */
+/* 254 */
/*!*************************************************!*\
!*** ./node_modules/jsplumb/dist/js/jsplumb.js ***!
\*************************************************/
@@ -50175,7 +50180,7 @@ module.exports = Array.isArray || function (arr) {
/***/ }),
-/* 250 */
+/* 255 */
/*!************************************************!*\
!*** ./node_modules/timers-browserify/main.js ***!
\************************************************/
@@ -50236,7 +50241,7 @@ exports._unrefActive = exports.active = function(item) {
};
// setimmediate attaches itself to the global object
-__webpack_require__(/*! setimmediate */ 368);
+__webpack_require__(/*! setimmediate */ 373);
// On some exotic environments, it's not clear which object `setimmediate` was
// able to install onto. Search each possibility in the same order as the
// `setimmediate` library.
@@ -50247,10 +50252,10 @@ exports.clearImmediate = (typeof self !== "undefined" && self.clearImmediate) ||
(typeof global !== "undefined" && global.clearImmediate) ||
(this && this.clearImmediate);
-/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ 96)))
+/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ 97)))
/***/ }),
-/* 251 */
+/* 256 */
/*!******************************************************!*\
!*** ./node_modules/bluebird/js/browser/bluebird.js ***!
\******************************************************/
@@ -55560,10 +55565,10 @@ module.exports = ret;
},{"./es5":13}]},{},[4])(4)
}); ;if (typeof window !== 'undefined' && window !== null) { window.P = window.Promise; } else if (typeof self !== 'undefined' && self !== null) { self.P = self.Promise; }
-/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../process/browser.js */ 127), __webpack_require__(/*! ./../../../webpack/buildin/global.js */ 96), __webpack_require__(/*! ./../../../timers-browserify/main.js */ 250).setImmediate))
+/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../process/browser.js */ 129), __webpack_require__(/*! ./../../../webpack/buildin/global.js */ 97), __webpack_require__(/*! ./../../../timers-browserify/main.js */ 255).setImmediate))
/***/ }),
-/* 252 */
+/* 257 */
/*!**************************************************!*\
!*** ./node_modules/brace/ext/language_tools.js ***!
\**************************************************/
@@ -57529,7 +57534,7 @@ acequire("../config").defineOptions(Editor.prototype, "editor", {
/***/ }),
-/* 253 */
+/* 258 */
/*!************************************************!*\
!*** ./node_modules/brace/keybinding/emacs.js ***!
\************************************************/
@@ -58721,7 +58726,7 @@ exports.killRing = {
/***/ }),
-/* 254 */
+/* 259 */
/*!**********************************************!*\
!*** ./node_modules/brace/keybinding/vim.js ***!
\**********************************************/
@@ -64330,7 +64335,7 @@ dom.importCssString(".normal-mode .ace_cursor{\
/***/ }),
-/* 255 */
+/* 260 */
/*!*******************************************!*\
!*** ./node_modules/brace/theme/xcode.js ***!
\*******************************************/
@@ -64429,7 +64434,7 @@ dom.importCssString(exports.cssText, exports.cssClass);
/***/ }),
-/* 256 */
+/* 261 */
/*!**********************************************!*\
!*** ./node_modules/brace/theme/twilight.js ***!
\**********************************************/
@@ -64549,7 +64554,7 @@ dom.importCssString(exports.cssText, exports.cssClass);
/***/ }),
-/* 257 */
+/* 262 */
/*!**********************************************!*\
!*** ./node_modules/brace/theme/terminal.js ***!
\**********************************************/
@@ -64674,7 +64679,7 @@ dom.importCssString(exports.cssText, exports.cssClass);
/***/ }),
-/* 258 */
+/* 263 */
/*!*****************************************************!*\
!*** ./node_modules/brace/theme/solarized_light.js ***!
\*****************************************************/
@@ -64776,7 +64781,7 @@ dom.importCssString(exports.cssText, exports.cssClass);
/***/ }),
-/* 259 */
+/* 264 */
/*!****************************************************!*\
!*** ./node_modules/brace/theme/solarized_dark.js ***!
\****************************************************/
@@ -64875,7 +64880,7 @@ dom.importCssString(exports.cssText, exports.cssClass);
/***/ }),
-/* 260 */
+/* 265 */
/*!*********************************************!*\
!*** ./node_modules/brace/theme/monokai.js ***!
\*********************************************/
@@ -64991,7 +64996,7 @@ dom.importCssString(exports.cssText, exports.cssClass);
/***/ }),
-/* 261 */
+/* 266 */
/*!********************************************!*\
!*** ./node_modules/brace/theme/chrome.js ***!
\********************************************/
@@ -65130,7 +65135,7 @@ dom.importCssString(exports.cssText, exports.cssClass);
/***/ }),
-/* 262 */
+/* 267 */
/*!*******************************************!*\
!*** ./node_modules/brace/theme/chaos.js ***!
\*******************************************/
@@ -65297,7 +65302,7 @@ dom.importCssString(exports.cssText, exports.cssClass);
/***/ }),
-/* 263 */
+/* 268 */
/*!***********************************************!*\
!*** ./node_modules/brace/mode/javascript.js ***!
\***********************************************/
@@ -66075,7 +66080,7 @@ oop.inherits(Mode, TextMode);
};
this.createWorker = function(session) {
- var worker = new WorkerClient(["ace"], __webpack_require__(/*! ../worker/javascript */ 194), "JavaScriptWorker");
+ var worker = new WorkerClient(["ace"], __webpack_require__(/*! ../worker/javascript */ 199), "JavaScriptWorker");
worker.attachToDocument(session.getDocument());
worker.on("annotate", function(results) {
@@ -66097,7 +66102,7 @@ exports.Mode = Mode;
/***/ }),
-/* 264 */
+/* 269 */
/*!**********************************************!*\
!*** ./node_modules/js-beautify/js/index.js ***!
\**********************************************/
@@ -66170,9 +66175,9 @@ function get_beautify(js_beautify, css_beautify, html_beautify) {
if (true) {
// Add support for AMD ( https://github.com/amdjs/amdjs-api/wiki/AMD#defineamd-property- )
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [
- __webpack_require__(/*! ./lib/beautify */ 196),
- __webpack_require__(/*! ./lib/beautify-css */ 195),
- __webpack_require__(/*! ./lib/beautify-html */ 369)
+ __webpack_require__(/*! ./lib/beautify */ 201),
+ __webpack_require__(/*! ./lib/beautify-css */ 200),
+ __webpack_require__(/*! ./lib/beautify-html */ 374)
], __WEBPACK_AMD_DEFINE_RESULT__ = (function(js_beautify, css_beautify, html_beautify) {
return get_beautify(js_beautify, css_beautify, html_beautify);
}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
@@ -66180,7 +66185,7 @@ if (true) {
} else {}
/***/ }),
-/* 265 */
+/* 270 */
/*!*************************************!*\
!*** ./node_modules/brace/index.js ***!
\*************************************/
@@ -70368,7 +70373,7 @@ init(true);function init(packaged) {
if (!global || !global.document)
return;
- options.packaged = packaged || acequire.packaged || module.packaged || (global.define && __webpack_require__(/*! !webpack amd define */ 197).packaged);
+ options.packaged = packaged || acequire.packaged || module.packaged || (global.define && __webpack_require__(/*! !webpack amd define */ 202).packaged);
var scriptOptions = {};
var scriptUrl = "";
@@ -86395,7 +86400,7 @@ exports.config = acequire("./config");
exports.acequire = acequire;
if (true)
- exports.define = __webpack_require__(/*! !webpack amd define */ 197);
+ exports.define = __webpack_require__(/*! !webpack amd define */ 202);
exports.edit = function(el) {
if (typeof el == "string") {
var _id = el;
@@ -86462,7 +86467,7 @@ exports.version = "1.2.9";
module.exports = window.ace.acequire("ace/ace");
/***/ }),
-/* 266 */
+/* 271 */
/*!********************************************!*\
!*** ./node_modules/numeral/locales/ru.js ***!
\********************************************/
@@ -86507,7 +86512,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
/***/ }),
-/* 267 */
+/* 272 */
/*!********************************************!*\
!*** ./node_modules/numeral/locales/pl.js ***!
\********************************************/
@@ -86549,7 +86554,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
/***/ }),
-/* 268 */
+/* 273 */
/*!********************************************!*\
!*** ./node_modules/numeral/locales/no.js ***!
\********************************************/
@@ -86591,7 +86596,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
/***/ }),
-/* 269 */
+/* 274 */
/*!********************************************!*\
!*** ./node_modules/numeral/locales/lv.js ***!
\********************************************/
@@ -86633,7 +86638,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
/***/ }),
-/* 270 */
+/* 275 */
/*!********************************************!*\
!*** ./node_modules/numeral/locales/it.js ***!
\********************************************/
@@ -86675,7 +86680,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
/***/ }),
-/* 271 */
+/* 276 */
/*!********************************************!*\
!*** ./node_modules/numeral/locales/hu.js ***!
\********************************************/
@@ -86717,7 +86722,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
/***/ }),
-/* 272 */
+/* 277 */
/*!********************************************!*\
!*** ./node_modules/numeral/locales/fr.js ***!
\********************************************/
@@ -86759,7 +86764,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
/***/ }),
-/* 273 */
+/* 278 */
/*!********************************************!*\
!*** ./node_modules/numeral/locales/es.js ***!
\********************************************/
@@ -86806,7 +86811,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
/***/ }),
-/* 274 */
+/* 279 */
/*!***********************************************!*\
!*** ./node_modules/numeral/locales/en-gb.js ***!
\***********************************************/
@@ -86852,7 +86857,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
/***/ }),
-/* 275 */
+/* 280 */
/*!***********************************************!*\
!*** ./node_modules/numeral/locales/en-au.js ***!
\***********************************************/
@@ -86898,7 +86903,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
/***/ }),
-/* 276 */
+/* 281 */
/*!********************************************!*\
!*** ./node_modules/numeral/locales/de.js ***!
\********************************************/
@@ -86940,7 +86945,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
/***/ }),
-/* 277 */
+/* 282 */
/*!***********************************************!*\
!*** ./node_modules/numeral/locales/da-dk.js ***!
\***********************************************/
@@ -86982,7 +86987,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
/***/ }),
-/* 278 */
+/* 283 */
/*!********************************************!*\
!*** ./node_modules/numeral/locales/cs.js ***!
\********************************************/
@@ -87024,7 +87029,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
/***/ }),
-/* 279 */
+/* 284 */
/*!********************************************!*\
!*** ./node_modules/numeral/locales/bg.js ***!
\********************************************/
@@ -87074,7 +87079,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
/***/ }),
-/* 280 */
+/* 285 */
/*!***************************************************************!*\
!*** ./node_modules/chai-as-promised/lib/chai-as-promised.js ***!
\***************************************************************/
@@ -87085,7 +87090,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
"use strict";
/* eslint-disable no-invalid-this */
-let checkError = __webpack_require__(/*! check-error */ 207);
+let checkError = __webpack_require__(/*! check-error */ 212);
module.exports = (chai, utils) => {
const Assertion = chai.Assertion;
@@ -87447,7 +87452,7 @@ module.exports.transformAsserterArgs = values => values;
/***/ }),
-/* 281 */
+/* 286 */
/*!********************************************************!*\
!*** ./node_modules/chai/lib/chai/interface/assert.js ***!
\********************************************************/
@@ -90556,7 +90561,7 @@ module.exports = function (chai, util) {
/***/ }),
-/* 282 */
+/* 287 */
/*!********************************************************!*\
!*** ./node_modules/chai/lib/chai/interface/should.js ***!
\********************************************************/
@@ -90771,7 +90776,7 @@ module.exports = function (chai, util) {
/***/ }),
-/* 283 */
+/* 288 */
/*!********************************************************!*\
!*** ./node_modules/chai/lib/chai/interface/expect.js ***!
\********************************************************/
@@ -90816,7 +90821,7 @@ module.exports = function (chai, util) {
/***/ }),
-/* 284 */
+/* 289 */
/*!*******************************************************!*\
!*** ./node_modules/chai/lib/chai/core/assertions.js ***!
\*******************************************************/
@@ -94556,7 +94561,7 @@ module.exports = function (chai, _) {
/***/ }),
-/* 285 */
+/* 290 */
/*!*************************************************!*\
!*** ./node_modules/chai/lib/chai/assertion.js ***!
\*************************************************/
@@ -94571,7 +94576,7 @@ module.exports = function (chai, _) {
* MIT Licensed
*/
-var config = __webpack_require__(/*! ./config */ 111);
+var config = __webpack_require__(/*! ./config */ 112);
module.exports = function (_chai, util) {
/*!
@@ -94732,7 +94737,7 @@ module.exports = function (_chai, util) {
/***/ }),
-/* 286 */
+/* 291 */
/*!***************************************************!*\
!*** ./node_modules/chai/lib/chai/utils/isNaN.js ***!
\***************************************************/
@@ -94769,7 +94774,7 @@ module.exports = Number.isNaN || isNaN;
/***/ }),
-/* 287 */
+/* 292 */
/*!************************************************************************!*\
!*** ./node_modules/chai/lib/chai/utils/getOwnEnumerableProperties.js ***!
\************************************************************************/
@@ -94787,7 +94792,7 @@ module.exports = Number.isNaN || isNaN;
* Module dependancies
*/
-var getOwnEnumerablePropertySymbols = __webpack_require__(/*! ./getOwnEnumerablePropertySymbols */ 208);
+var getOwnEnumerablePropertySymbols = __webpack_require__(/*! ./getOwnEnumerablePropertySymbols */ 213);
/**
* ### .getOwnEnumerableProperties(object)
@@ -94809,7 +94814,7 @@ module.exports = function getOwnEnumerableProperties(obj) {
/***/ }),
-/* 288 */
+/* 293 */
/*!**************************************************************!*\
!*** ./node_modules/chai/lib/chai/utils/compareByInspect.js ***!
\**************************************************************/
@@ -94827,7 +94832,7 @@ module.exports = function getOwnEnumerableProperties(obj) {
* Module dependancies
*/
-var inspect = __webpack_require__(/*! ./inspect */ 142);
+var inspect = __webpack_require__(/*! ./inspect */ 144);
/**
* ### .compareByInspect(mixed, mixed)
@@ -94851,7 +94856,7 @@ module.exports = function compareByInspect(a, b) {
/***/ }),
-/* 289 */
+/* 294 */
/*!**********************************************************************!*\
!*** ./node_modules/chai/lib/chai/utils/overwriteChainableMethod.js ***!
\**********************************************************************/
@@ -94865,8 +94870,8 @@ module.exports = function compareByInspect(a, b) {
* MIT Licensed
*/
-var chai = __webpack_require__(/*! ../../chai */ 112);
-var transferFlags = __webpack_require__(/*! ./transferFlags */ 110);
+var chai = __webpack_require__(/*! ../../chai */ 113);
+var transferFlags = __webpack_require__(/*! ./transferFlags */ 111);
/**
* ### .overwriteChainableMethod(ctx, name, method, chainingBehavior)
@@ -94931,7 +94936,7 @@ module.exports = function overwriteChainableMethod(ctx, name, method, chainingBe
/***/ }),
-/* 290 */
+/* 295 */
/*!****************************************************************!*\
!*** ./node_modules/chai/lib/chai/utils/addChainableMethod.js ***!
\****************************************************************/
@@ -94949,11 +94954,11 @@ module.exports = function overwriteChainableMethod(ctx, name, method, chainingBe
* Module dependencies
*/
-var addLengthGuard = __webpack_require__(/*! ./addLengthGuard */ 140);
-var chai = __webpack_require__(/*! ../../chai */ 112);
-var flag = __webpack_require__(/*! ./flag */ 95);
-var proxify = __webpack_require__(/*! ./proxify */ 139);
-var transferFlags = __webpack_require__(/*! ./transferFlags */ 110);
+var addLengthGuard = __webpack_require__(/*! ./addLengthGuard */ 142);
+var chai = __webpack_require__(/*! ../../chai */ 113);
+var flag = __webpack_require__(/*! ./flag */ 96);
+var proxify = __webpack_require__(/*! ./proxify */ 141);
+var transferFlags = __webpack_require__(/*! ./transferFlags */ 111);
/*!
* Module variables
@@ -95094,7 +95099,7 @@ module.exports = function addChainableMethod(ctx, name, method, chainingBehavior
/***/ }),
-/* 291 */
+/* 296 */
/*!*************************************************************!*\
!*** ./node_modules/chai/lib/chai/utils/overwriteMethod.js ***!
\*************************************************************/
@@ -95108,11 +95113,11 @@ module.exports = function addChainableMethod(ctx, name, method, chainingBehavior
* MIT Licensed
*/
-var addLengthGuard = __webpack_require__(/*! ./addLengthGuard */ 140);
-var chai = __webpack_require__(/*! ../../chai */ 112);
-var flag = __webpack_require__(/*! ./flag */ 95);
-var proxify = __webpack_require__(/*! ./proxify */ 139);
-var transferFlags = __webpack_require__(/*! ./transferFlags */ 110);
+var addLengthGuard = __webpack_require__(/*! ./addLengthGuard */ 142);
+var chai = __webpack_require__(/*! ../../chai */ 113);
+var flag = __webpack_require__(/*! ./flag */ 96);
+var proxify = __webpack_require__(/*! ./proxify */ 141);
+var transferFlags = __webpack_require__(/*! ./transferFlags */ 111);
/**
* ### .overwriteMethod(ctx, name, fn)
@@ -95197,7 +95202,7 @@ module.exports = function overwriteMethod(ctx, name, method) {
/***/ }),
-/* 292 */
+/* 297 */
/*!***************************************************************!*\
!*** ./node_modules/chai/lib/chai/utils/overwriteProperty.js ***!
\***************************************************************/
@@ -95211,10 +95216,10 @@ module.exports = function overwriteMethod(ctx, name, method) {
* MIT Licensed
*/
-var chai = __webpack_require__(/*! ../../chai */ 112);
-var flag = __webpack_require__(/*! ./flag */ 95);
-var isProxyEnabled = __webpack_require__(/*! ./isProxyEnabled */ 141);
-var transferFlags = __webpack_require__(/*! ./transferFlags */ 110);
+var chai = __webpack_require__(/*! ../../chai */ 113);
+var flag = __webpack_require__(/*! ./flag */ 96);
+var isProxyEnabled = __webpack_require__(/*! ./isProxyEnabled */ 143);
+var transferFlags = __webpack_require__(/*! ./transferFlags */ 111);
/**
* ### .overwriteProperty(ctx, name, fn)
@@ -95300,7 +95305,7 @@ module.exports = function overwriteProperty(ctx, name, getter) {
/***/ }),
-/* 293 */
+/* 298 */
/*!*******************************************************!*\
!*** ./node_modules/chai/lib/chai/utils/addMethod.js ***!
\*******************************************************/
@@ -95314,11 +95319,11 @@ module.exports = function overwriteProperty(ctx, name, getter) {
* MIT Licensed
*/
-var addLengthGuard = __webpack_require__(/*! ./addLengthGuard */ 140);
-var chai = __webpack_require__(/*! ../../chai */ 112);
-var flag = __webpack_require__(/*! ./flag */ 95);
-var proxify = __webpack_require__(/*! ./proxify */ 139);
-var transferFlags = __webpack_require__(/*! ./transferFlags */ 110);
+var addLengthGuard = __webpack_require__(/*! ./addLengthGuard */ 142);
+var chai = __webpack_require__(/*! ../../chai */ 113);
+var flag = __webpack_require__(/*! ./flag */ 96);
+var proxify = __webpack_require__(/*! ./proxify */ 141);
+var transferFlags = __webpack_require__(/*! ./transferFlags */ 111);
/**
* ### .addMethod(ctx, name, method)
@@ -95379,7 +95384,7 @@ module.exports = function addMethod(ctx, name, method) {
/***/ }),
-/* 294 */
+/* 299 */
/*!*********************************************************!*\
!*** ./node_modules/chai/lib/chai/utils/addProperty.js ***!
\*********************************************************/
@@ -95393,10 +95398,10 @@ module.exports = function addMethod(ctx, name, method) {
* MIT Licensed
*/
-var chai = __webpack_require__(/*! ../../chai */ 112);
-var flag = __webpack_require__(/*! ./flag */ 95);
-var isProxyEnabled = __webpack_require__(/*! ./isProxyEnabled */ 141);
-var transferFlags = __webpack_require__(/*! ./transferFlags */ 110);
+var chai = __webpack_require__(/*! ../../chai */ 113);
+var flag = __webpack_require__(/*! ./flag */ 96);
+var isProxyEnabled = __webpack_require__(/*! ./isProxyEnabled */ 143);
+var transferFlags = __webpack_require__(/*! ./transferFlags */ 111);
/**
* ### .addProperty(ctx, name, getter)
@@ -95462,7 +95467,7 @@ module.exports = function addProperty(ctx, name, getter) {
/***/ }),
-/* 295 */
+/* 300 */
/*!****************************************!*\
!*** ./node_modules/deep-eql/index.js ***!
\****************************************/
@@ -95479,7 +95484,7 @@ module.exports = function addProperty(ctx, name, getter) {
* MIT Licensed
*/
-var type = __webpack_require__(/*! type-detect */ 152);
+var type = __webpack_require__(/*! type-detect */ 154);
function FakeMap() {
this._key = 'chai/deep-eql__' + Math.random() + Date.now();
}
@@ -95929,7 +95934,7 @@ function isPrimitive(value) {
/***/ }),
-/* 296 */
+/* 301 */
/*!*********************************************************************!*\
!*** ./node_modules/chai/lib/chai/utils/getEnumerableProperties.js ***!
\*********************************************************************/
@@ -95966,7 +95971,7 @@ module.exports = function getEnumerableProperties(object) {
/***/ }),
-/* 297 */
+/* 302 */
/*!********************************************************!*\
!*** ./node_modules/chai/lib/chai/utils/getMessage.js ***!
\********************************************************/
@@ -95984,10 +95989,10 @@ module.exports = function getEnumerableProperties(object) {
* Module dependancies
*/
-var flag = __webpack_require__(/*! ./flag */ 95)
- , getActual = __webpack_require__(/*! ./getActual */ 212)
- , inspect = __webpack_require__(/*! ./inspect */ 142)
- , objDisplay = __webpack_require__(/*! ./objDisplay */ 209);
+var flag = __webpack_require__(/*! ./flag */ 96)
+ , getActual = __webpack_require__(/*! ./getActual */ 217)
+ , inspect = __webpack_require__(/*! ./inspect */ 144)
+ , objDisplay = __webpack_require__(/*! ./objDisplay */ 214);
/**
* ### .getMessage(object, message, negateMessage)
@@ -96028,7 +96033,7 @@ module.exports = function getMessage(obj, args) {
/***/ }),
-/* 298 */
+/* 303 */
/*!*********************************************************!*\
!*** ./node_modules/chai/lib/chai/utils/expectTypes.js ***!
\*********************************************************/
@@ -96056,9 +96061,9 @@ module.exports = function getMessage(obj, args) {
* @api public
*/
-var AssertionError = __webpack_require__(/*! assertion-error */ 213);
-var flag = __webpack_require__(/*! ./flag */ 95);
-var type = __webpack_require__(/*! type-detect */ 152);
+var AssertionError = __webpack_require__(/*! assertion-error */ 218);
+var flag = __webpack_require__(/*! ./flag */ 96);
+var type = __webpack_require__(/*! type-detect */ 154);
module.exports = function expectTypes(obj, types) {
var flagMsg = flag(obj, 'message');
@@ -96090,7 +96095,7 @@ module.exports = function expectTypes(obj, types) {
/***/ }),
-/* 299 */
+/* 304 */
/*!**************************************************!*\
!*** ./node_modules/chai/lib/chai/utils/test.js ***!
\**************************************************/
@@ -96108,7 +96113,7 @@ module.exports = function expectTypes(obj, types) {
* Module dependancies
*/
-var flag = __webpack_require__(/*! ./flag */ 95);
+var flag = __webpack_require__(/*! ./flag */ 96);
/**
* ### .test(object, expression)
@@ -96129,7 +96134,7 @@ module.exports = function test(obj, args) {
/***/ }),
-/* 300 */
+/* 305 */
/*!***************************************!*\
!*** ./node_modules/pathval/index.js ***!
\***************************************/
@@ -96432,7 +96437,7 @@ module.exports = {
/***/ }),
-/* 301 */
+/* 306 */
/*!***************************************************!*\
!*** ./node_modules/chai/lib/chai/utils/index.js ***!
\***************************************************/
@@ -96450,66 +96455,66 @@ module.exports = {
* Dependencies that are used for multiple exports are required here only once
*/
-var pathval = __webpack_require__(/*! pathval */ 300);
+var pathval = __webpack_require__(/*! pathval */ 305);
/*!
* test utility
*/
-exports.test = __webpack_require__(/*! ./test */ 299);
+exports.test = __webpack_require__(/*! ./test */ 304);
/*!
* type utility
*/
-exports.type = __webpack_require__(/*! type-detect */ 152);
+exports.type = __webpack_require__(/*! type-detect */ 154);
/*!
* expectTypes utility
*/
-exports.expectTypes = __webpack_require__(/*! ./expectTypes */ 298);
+exports.expectTypes = __webpack_require__(/*! ./expectTypes */ 303);
/*!
* message utility
*/
-exports.getMessage = __webpack_require__(/*! ./getMessage */ 297);
+exports.getMessage = __webpack_require__(/*! ./getMessage */ 302);
/*!
* actual utility
*/
-exports.getActual = __webpack_require__(/*! ./getActual */ 212);
+exports.getActual = __webpack_require__(/*! ./getActual */ 217);
/*!
* Inspect util
*/
-exports.inspect = __webpack_require__(/*! ./inspect */ 142);
+exports.inspect = __webpack_require__(/*! ./inspect */ 144);
/*!
* Object Display util
*/
-exports.objDisplay = __webpack_require__(/*! ./objDisplay */ 209);
+exports.objDisplay = __webpack_require__(/*! ./objDisplay */ 214);
/*!
* Flag utility
*/
-exports.flag = __webpack_require__(/*! ./flag */ 95);
+exports.flag = __webpack_require__(/*! ./flag */ 96);
/*!
* Flag transferring utility
*/
-exports.transferFlags = __webpack_require__(/*! ./transferFlags */ 110);
+exports.transferFlags = __webpack_require__(/*! ./transferFlags */ 111);
/*!
* Deep equal utility
*/
-exports.eql = __webpack_require__(/*! deep-eql */ 295);
+exports.eql = __webpack_require__(/*! deep-eql */ 300);
/*!
* Deep path info
@@ -96527,95 +96532,95 @@ exports.hasProperty = pathval.hasProperty;
* Function name
*/
-exports.getName = __webpack_require__(/*! get-func-name */ 211);
+exports.getName = __webpack_require__(/*! get-func-name */ 216);
/*!
* add Property
*/
-exports.addProperty = __webpack_require__(/*! ./addProperty */ 294);
+exports.addProperty = __webpack_require__(/*! ./addProperty */ 299);
/*!
* add Method
*/
-exports.addMethod = __webpack_require__(/*! ./addMethod */ 293);
+exports.addMethod = __webpack_require__(/*! ./addMethod */ 298);
/*!
* overwrite Property
*/
-exports.overwriteProperty = __webpack_require__(/*! ./overwriteProperty */ 292);
+exports.overwriteProperty = __webpack_require__(/*! ./overwriteProperty */ 297);
/*!
* overwrite Method
*/
-exports.overwriteMethod = __webpack_require__(/*! ./overwriteMethod */ 291);
+exports.overwriteMethod = __webpack_require__(/*! ./overwriteMethod */ 296);
/*!
* Add a chainable method
*/
-exports.addChainableMethod = __webpack_require__(/*! ./addChainableMethod */ 290);
+exports.addChainableMethod = __webpack_require__(/*! ./addChainableMethod */ 295);
/*!
* Overwrite chainable method
*/
-exports.overwriteChainableMethod = __webpack_require__(/*! ./overwriteChainableMethod */ 289);
+exports.overwriteChainableMethod = __webpack_require__(/*! ./overwriteChainableMethod */ 294);
/*!
* Compare by inspect method
*/
-exports.compareByInspect = __webpack_require__(/*! ./compareByInspect */ 288);
+exports.compareByInspect = __webpack_require__(/*! ./compareByInspect */ 293);
/*!
* Get own enumerable property symbols method
*/
-exports.getOwnEnumerablePropertySymbols = __webpack_require__(/*! ./getOwnEnumerablePropertySymbols */ 208);
+exports.getOwnEnumerablePropertySymbols = __webpack_require__(/*! ./getOwnEnumerablePropertySymbols */ 213);
/*!
* Get own enumerable properties method
*/
-exports.getOwnEnumerableProperties = __webpack_require__(/*! ./getOwnEnumerableProperties */ 287);
+exports.getOwnEnumerableProperties = __webpack_require__(/*! ./getOwnEnumerableProperties */ 292);
/*!
* Checks error against a given set of criteria
*/
-exports.checkError = __webpack_require__(/*! check-error */ 207);
+exports.checkError = __webpack_require__(/*! check-error */ 212);
/*!
* Proxify util
*/
-exports.proxify = __webpack_require__(/*! ./proxify */ 139);
+exports.proxify = __webpack_require__(/*! ./proxify */ 141);
/*!
* addLengthGuard util
*/
-exports.addLengthGuard = __webpack_require__(/*! ./addLengthGuard */ 140);
+exports.addLengthGuard = __webpack_require__(/*! ./addLengthGuard */ 142);
/*!
* isProxyEnabled helper
*/
-exports.isProxyEnabled = __webpack_require__(/*! ./isProxyEnabled */ 141);
+exports.isProxyEnabled = __webpack_require__(/*! ./isProxyEnabled */ 143);
/*!
* isNaN method
*/
-exports.isNaN = __webpack_require__(/*! ./isNaN */ 286);
+exports.isNaN = __webpack_require__(/*! ./isNaN */ 291);
/***/ }),
-/* 302 */
+/* 307 */
/*!************************************!*\
!*** ./node_modules/chai/index.js ***!
\************************************/
@@ -96623,14 +96628,14 @@ exports.isNaN = __webpack_require__(/*! ./isNaN */ 286);
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
-module.exports = __webpack_require__(/*! ./lib/chai */ 112);
+module.exports = __webpack_require__(/*! ./lib/chai */ 113);
/***/ }),
-/* 303 */,
-/* 304 */,
-/* 305 */,
-/* 306 */
+/* 308 */,
+/* 309 */,
+/* 310 */,
+/* 311 */
/*!*********************************************!*\
!*** ./node_modules/escodegen/package.json ***!
\*********************************************/
@@ -96641,7 +96646,7 @@ module.exports = __webpack_require__(/*! ./lib/chai */ 112);
module.exports = {"_args":[["escodegen@1.11.0","C:\\Users\\danie\\Desktop\\bitburner"]],"_from":"escodegen@1.11.0","_id":"escodegen@1.11.0","_inBundle":false,"_integrity":"sha512-IeMV45ReixHS53K/OmfKAIztN/igDHzTJUhZM3k1jMhIZWjk45SMwAtBsEXiJp3vSPmTcu6CXn7mDvFHRN66fw==","_location":"/escodegen","_phantomChildren":{},"_requested":{"type":"version","registry":true,"raw":"escodegen@1.11.0","name":"escodegen","escapedName":"escodegen","rawSpec":"1.11.0","saveSpec":null,"fetchSpec":"1.11.0"},"_requiredBy":["/"],"_resolved":"https://registry.npmjs.org/escodegen/-/escodegen-1.11.0.tgz","_spec":"1.11.0","_where":"C:\\Users\\danie\\Desktop\\bitburner","bin":{"esgenerate":"./bin/esgenerate.js","escodegen":"./bin/escodegen.js"},"bugs":{"url":"https://github.com/estools/escodegen/issues"},"dependencies":{"esprima":"^3.1.3","estraverse":"^4.2.0","esutils":"^2.0.2","optionator":"^0.8.1","source-map":"~0.6.1"},"description":"ECMAScript code generator","devDependencies":{"acorn":"^4.0.4","bluebird":"^3.4.7","bower-registry-client":"^1.0.0","chai":"^3.5.0","commonjs-everywhere":"^0.9.7","gulp":"^3.8.10","gulp-eslint":"^3.0.1","gulp-mocha":"^3.0.1","semver":"^5.1.0"},"engines":{"node":">=4.0"},"files":["LICENSE.BSD","README.md","bin","escodegen.js","package.json"],"homepage":"http://github.com/estools/escodegen","license":"BSD-2-Clause","main":"escodegen.js","maintainers":[{"name":"Yusuke Suzuki","email":"utatane.tea@gmail.com","url":"http://github.com/Constellation"}],"name":"escodegen","optionalDependencies":{"source-map":"~0.6.1"},"repository":{"type":"git","url":"git+ssh://git@github.com/estools/escodegen.git"},"scripts":{"build":"cjsify -a path: tools/entry-point.js > escodegen.browser.js","build-min":"cjsify -ma path: tools/entry-point.js > escodegen.browser.min.js","lint":"gulp lint","release":"node tools/release.js","test":"gulp travis","unit-test":"gulp test"},"version":"1.11.0"};
/***/ }),
-/* 307 */
+/* 312 */
/*!***************************************************************************!*\
!*** ./node_modules/escodegen/node_modules/source-map/lib/source-node.js ***!
\***************************************************************************/
@@ -96656,8 +96661,8 @@ module.exports = {"_args":[["escodegen@1.11.0","C:\\Users\\danie\\Desktop\\bitbu
* http://opensource.org/licenses/BSD-3-Clause
*/
-var SourceMapGenerator = __webpack_require__(/*! ./source-map-generator */ 217).SourceMapGenerator;
-var util = __webpack_require__(/*! ./util */ 123);
+var SourceMapGenerator = __webpack_require__(/*! ./source-map-generator */ 222).SourceMapGenerator;
+var util = __webpack_require__(/*! ./util */ 125);
// Matches a Windows-style `\r\n` newline or a `\n` newline used by all other
// operating systems these days (capturing the result).
@@ -97065,7 +97070,7 @@ exports.SourceNode = SourceNode;
/***/ }),
-/* 308 */
+/* 313 */
/*!**************************************************************************!*\
!*** ./node_modules/escodegen/node_modules/source-map/lib/quick-sort.js ***!
\**************************************************************************/
@@ -97190,7 +97195,7 @@ exports.quickSort = function (ary, comparator) {
/***/ }),
-/* 309 */
+/* 314 */
/*!*****************************************************************************!*\
!*** ./node_modules/escodegen/node_modules/source-map/lib/binary-search.js ***!
\*****************************************************************************/
@@ -97312,7 +97317,7 @@ exports.search = function search(aNeedle, aHaystack, aCompare, aBias) {
/***/ }),
-/* 310 */
+/* 315 */
/*!***********************************************************************************!*\
!*** ./node_modules/escodegen/node_modules/source-map/lib/source-map-consumer.js ***!
\***********************************************************************************/
@@ -97327,11 +97332,11 @@ exports.search = function search(aNeedle, aHaystack, aCompare, aBias) {
* http://opensource.org/licenses/BSD-3-Clause
*/
-var util = __webpack_require__(/*! ./util */ 123);
-var binarySearch = __webpack_require__(/*! ./binary-search */ 309);
-var ArraySet = __webpack_require__(/*! ./array-set */ 215).ArraySet;
-var base64VLQ = __webpack_require__(/*! ./base64-vlq */ 216);
-var quickSort = __webpack_require__(/*! ./quick-sort */ 308).quickSort;
+var util = __webpack_require__(/*! ./util */ 125);
+var binarySearch = __webpack_require__(/*! ./binary-search */ 314);
+var ArraySet = __webpack_require__(/*! ./array-set */ 220).ArraySet;
+var base64VLQ = __webpack_require__(/*! ./base64-vlq */ 221);
+var quickSort = __webpack_require__(/*! ./quick-sort */ 313).quickSort;
function SourceMapConsumer(aSourceMap, aSourceMapURL) {
var sourceMap = aSourceMap;
@@ -98468,7 +98473,7 @@ exports.IndexedSourceMapConsumer = IndexedSourceMapConsumer;
/***/ }),
-/* 311 */
+/* 316 */
/*!****************************************************************************!*\
!*** ./node_modules/escodegen/node_modules/source-map/lib/mapping-list.js ***!
\****************************************************************************/
@@ -98483,7 +98488,7 @@ exports.IndexedSourceMapConsumer = IndexedSourceMapConsumer;
* http://opensource.org/licenses/BSD-3-Clause
*/
-var util = __webpack_require__(/*! ./util */ 123);
+var util = __webpack_require__(/*! ./util */ 125);
/**
* Determine whether mappingB is after mappingA with respect to generated
@@ -98558,7 +98563,7 @@ exports.MappingList = MappingList;
/***/ }),
-/* 312 */
+/* 317 */
/*!**********************************************************************!*\
!*** ./node_modules/escodegen/node_modules/source-map/lib/base64.js ***!
\**********************************************************************/
@@ -98636,7 +98641,7 @@ exports.decode = function (charCode) {
/***/ }),
-/* 313 */
+/* 318 */
/*!**********************************************************************!*\
!*** ./node_modules/escodegen/node_modules/source-map/source-map.js ***!
\**********************************************************************/
@@ -98649,13 +98654,13 @@ exports.decode = function (charCode) {
* Licensed under the New BSD license. See LICENSE.txt or:
* http://opensource.org/licenses/BSD-3-Clause
*/
-exports.SourceMapGenerator = __webpack_require__(/*! ./lib/source-map-generator */ 217).SourceMapGenerator;
-exports.SourceMapConsumer = __webpack_require__(/*! ./lib/source-map-consumer */ 310).SourceMapConsumer;
-exports.SourceNode = __webpack_require__(/*! ./lib/source-node */ 307).SourceNode;
+exports.SourceMapGenerator = __webpack_require__(/*! ./lib/source-map-generator */ 222).SourceMapGenerator;
+exports.SourceMapConsumer = __webpack_require__(/*! ./lib/source-map-consumer */ 315).SourceMapConsumer;
+exports.SourceNode = __webpack_require__(/*! ./lib/source-node */ 312).SourceNode;
/***/ }),
-/* 314 */
+/* 319 */
/*!*********************************************!*\
!*** ./node_modules/esutils/lib/keyword.js ***!
\*********************************************/
@@ -98690,7 +98695,7 @@ exports.SourceNode = __webpack_require__(/*! ./lib/source-node */ 307).SourceNod
(function () {
'use strict';
- var code = __webpack_require__(/*! ./code */ 218);
+ var code = __webpack_require__(/*! ./code */ 223);
function isStrictModeReservedWordES6(id) {
switch (id) {
@@ -98831,7 +98836,7 @@ exports.SourceNode = __webpack_require__(/*! ./lib/source-node */ 307).SourceNod
/***/ }),
-/* 315 */
+/* 320 */
/*!*****************************************!*\
!*** ./node_modules/esutils/lib/ast.js ***!
\*****************************************/
@@ -98986,7 +98991,7 @@ exports.SourceNode = __webpack_require__(/*! ./lib/source-node */ 307).SourceNod
/***/ }),
-/* 316 */
+/* 321 */
/*!*******************************************!*\
!*** ./node_modules/esutils/lib/utils.js ***!
\*******************************************/
@@ -99022,15 +99027,15 @@ exports.SourceNode = __webpack_require__(/*! ./lib/source-node */ 307).SourceNod
(function () {
'use strict';
- exports.ast = __webpack_require__(/*! ./ast */ 315);
- exports.code = __webpack_require__(/*! ./code */ 218);
- exports.keyword = __webpack_require__(/*! ./keyword */ 314);
+ exports.ast = __webpack_require__(/*! ./ast */ 320);
+ exports.code = __webpack_require__(/*! ./code */ 223);
+ exports.keyword = __webpack_require__(/*! ./keyword */ 319);
}());
/* vim: set sw=4 ts=4 et tw=80 : */
/***/ }),
-/* 317 */
+/* 322 */
/*!**********************************************!*\
!*** ./node_modules/estraverse/package.json ***!
\**********************************************/
@@ -99041,7 +99046,7 @@ exports.SourceNode = __webpack_require__(/*! ./lib/source-node */ 307).SourceNod
module.exports = {"_args":[["estraverse@4.2.0","C:\\Users\\danie\\Desktop\\bitburner"]],"_from":"estraverse@4.2.0","_id":"estraverse@4.2.0","_inBundle":false,"_integrity":"sha1-De4/7TH81GlhjOc0IJn8GvoL2xM=","_location":"/estraverse","_phantomChildren":{},"_requested":{"type":"version","registry":true,"raw":"estraverse@4.2.0","name":"estraverse","escapedName":"estraverse","rawSpec":"4.2.0","saveSpec":null,"fetchSpec":"4.2.0"},"_requiredBy":["/escodegen","/escope","/eslint-scope","/esquery","/esrecurse"],"_resolved":"https://registry.npmjs.org/estraverse/-/estraverse-4.2.0.tgz","_spec":"4.2.0","_where":"C:\\Users\\danie\\Desktop\\bitburner","bugs":{"url":"https://github.com/estools/estraverse/issues"},"description":"ECMAScript JS AST traversal functions","devDependencies":{"babel-preset-es2015":"^6.3.13","babel-register":"^6.3.13","chai":"^2.1.1","espree":"^1.11.0","gulp":"^3.8.10","gulp-bump":"^0.2.2","gulp-filter":"^2.0.0","gulp-git":"^1.0.1","gulp-tag-version":"^1.2.1","jshint":"^2.5.6","mocha":"^2.1.0"},"engines":{"node":">=0.10.0"},"homepage":"https://github.com/estools/estraverse","license":"BSD-2-Clause","main":"estraverse.js","maintainers":[{"name":"Yusuke Suzuki","email":"utatane.tea@gmail.com","url":"http://github.com/Constellation"}],"name":"estraverse","repository":{"type":"git","url":"git+ssh://git@github.com/estools/estraverse.git"},"scripts":{"lint":"jshint estraverse.js","test":"npm run-script lint && npm run-script unit-test","unit-test":"mocha --compilers js:babel-register"},"version":"4.2.0"};
/***/ }),
-/* 318 */
+/* 323 */
/*!***********************************************!*\
!*** ./node_modules/estraverse/estraverse.js ***!
\***********************************************/
@@ -99885,7 +99890,7 @@ module.exports = {"_args":[["estraverse@4.2.0","C:\\Users\\danie\\Desktop\\bitbu
return tree;
}
- exports.version = __webpack_require__(/*! ./package.json */ 317).version;
+ exports.version = __webpack_require__(/*! ./package.json */ 322).version;
exports.Syntax = Syntax;
exports.traverse = traverse;
exports.replace = replace;
@@ -99901,7 +99906,7 @@ module.exports = {"_args":[["estraverse@4.2.0","C:\\Users\\danie\\Desktop\\bitbu
/***/ }),
-/* 319 */
+/* 324 */
/*!****************************************!*\
!*** (webpack)/buildin/amd-options.js ***!
\****************************************/
@@ -99915,7 +99920,7 @@ module.exports = __webpack_amd_options__;
/* WEBPACK VAR INJECTION */}.call(this, {}))
/***/ }),
-/* 320 */
+/* 325 */
/*!********************************************!*\
!*** ./node_modules/jszip/lib/zipEntry.js ***!
\********************************************/
@@ -99925,13 +99930,13 @@ module.exports = __webpack_amd_options__;
"use strict";
-var readerFor = __webpack_require__(/*! ./reader/readerFor */ 222);
+var readerFor = __webpack_require__(/*! ./reader/readerFor */ 227);
var utils = __webpack_require__(/*! ./utils */ 69);
-var CompressedObject = __webpack_require__(/*! ./compressedObject */ 187);
-var crc32fn = __webpack_require__(/*! ./crc32 */ 186);
-var utf8 = __webpack_require__(/*! ./utf8 */ 122);
-var compressions = __webpack_require__(/*! ./compressions */ 229);
-var support = __webpack_require__(/*! ./support */ 108);
+var CompressedObject = __webpack_require__(/*! ./compressedObject */ 189);
+var crc32fn = __webpack_require__(/*! ./crc32 */ 188);
+var utf8 = __webpack_require__(/*! ./utf8 */ 124);
+var compressions = __webpack_require__(/*! ./compressions */ 234);
+var support = __webpack_require__(/*! ./support */ 109);
var MADE_BY_DOS = 0x00;
var MADE_BY_UNIX = 0x03;
@@ -100219,7 +100224,7 @@ module.exports = ZipEntry;
/***/ }),
-/* 321 */
+/* 326 */
/*!***********************************************************!*\
!*** ./node_modules/jszip/lib/reader/NodeBufferReader.js ***!
\***********************************************************/
@@ -100229,7 +100234,7 @@ module.exports = ZipEntry;
"use strict";
-var Uint8ArrayReader = __webpack_require__(/*! ./Uint8ArrayReader */ 219);
+var Uint8ArrayReader = __webpack_require__(/*! ./Uint8ArrayReader */ 224);
var utils = __webpack_require__(/*! ../utils */ 69);
function NodeBufferReader(data) {
@@ -100250,7 +100255,7 @@ module.exports = NodeBufferReader;
/***/ }),
-/* 322 */
+/* 327 */
/*!*******************************************************!*\
!*** ./node_modules/jszip/lib/reader/StringReader.js ***!
\*******************************************************/
@@ -100260,7 +100265,7 @@ module.exports = NodeBufferReader;
"use strict";
-var DataReader = __webpack_require__(/*! ./DataReader */ 220);
+var DataReader = __webpack_require__(/*! ./DataReader */ 225);
var utils = __webpack_require__(/*! ../utils */ 69);
function StringReader(data) {
@@ -100300,7 +100305,7 @@ module.exports = StringReader;
/***/ }),
-/* 323 */
+/* 328 */
/*!**********************************************!*\
!*** ./node_modules/jszip/lib/zipEntries.js ***!
\**********************************************/
@@ -100310,12 +100315,12 @@ module.exports = StringReader;
"use strict";
-var readerFor = __webpack_require__(/*! ./reader/readerFor */ 222);
+var readerFor = __webpack_require__(/*! ./reader/readerFor */ 227);
var utils = __webpack_require__(/*! ./utils */ 69);
-var sig = __webpack_require__(/*! ./signature */ 223);
-var ZipEntry = __webpack_require__(/*! ./zipEntry */ 320);
-var utf8 = __webpack_require__(/*! ./utf8 */ 122);
-var support = __webpack_require__(/*! ./support */ 108);
+var sig = __webpack_require__(/*! ./signature */ 228);
+var ZipEntry = __webpack_require__(/*! ./zipEntry */ 325);
+var utf8 = __webpack_require__(/*! ./utf8 */ 124);
+var support = __webpack_require__(/*! ./support */ 109);
// class ZipEntries {{{
/**
* All the entries in the zip file.
@@ -100574,7 +100579,7 @@ module.exports = ZipEntries;
/***/ }),
-/* 324 */
+/* 329 */
/*!****************************************!*\
!*** ./node_modules/jszip/lib/load.js ***!
\****************************************/
@@ -100585,12 +100590,12 @@ module.exports = ZipEntries;
"use strict";
var utils = __webpack_require__(/*! ./utils */ 69);
-var external = __webpack_require__(/*! ./external */ 124);
-var utf8 = __webpack_require__(/*! ./utf8 */ 122);
+var external = __webpack_require__(/*! ./external */ 126);
+var utf8 = __webpack_require__(/*! ./utf8 */ 124);
var utils = __webpack_require__(/*! ./utils */ 69);
-var ZipEntries = __webpack_require__(/*! ./zipEntries */ 323);
-var Crc32Probe = __webpack_require__(/*! ./stream/Crc32Probe */ 230);
-var nodejsUtils = __webpack_require__(/*! ./nodejsUtils */ 144);
+var ZipEntries = __webpack_require__(/*! ./zipEntries */ 328);
+var Crc32Probe = __webpack_require__(/*! ./stream/Crc32Probe */ 235);
+var nodejsUtils = __webpack_require__(/*! ./nodejsUtils */ 146);
/**
* Check the CRC32 of an entry.
@@ -100668,7 +100673,7 @@ module.exports = function(data, options) {
/***/ }),
-/* 325 */
+/* 330 */
/*!*******************************************************************!*\
!*** ./node_modules/jszip/lib/nodejs/NodejsStreamInputAdapter.js ***!
\*******************************************************************/
@@ -100754,7 +100759,7 @@ module.exports = NodejsStreamInputAdapter;
/***/ }),
-/* 326 */
+/* 331 */
/*!**********************************************************!*\
!*** ./node_modules/jszip/lib/generate/ZipFileWorker.js ***!
\**********************************************************/
@@ -100767,9 +100772,9 @@ module.exports = NodejsStreamInputAdapter;
var utils = __webpack_require__(/*! ../utils */ 69);
var GenericWorker = __webpack_require__(/*! ../stream/GenericWorker */ 90);
-var utf8 = __webpack_require__(/*! ../utf8 */ 122);
-var crc32 = __webpack_require__(/*! ../crc32 */ 186);
-var signature = __webpack_require__(/*! ../signature */ 223);
+var utf8 = __webpack_require__(/*! ../utf8 */ 124);
+var crc32 = __webpack_require__(/*! ../crc32 */ 188);
+var signature = __webpack_require__(/*! ../signature */ 228);
/**
* Transform an integer into a string in hexadecimal.
@@ -101306,7 +101311,7 @@ module.exports = ZipFileWorker;
/***/ }),
-/* 327 */
+/* 332 */
/*!************************************************!*\
!*** ./node_modules/pako/lib/zlib/gzheader.js ***!
\************************************************/
@@ -101376,7 +101381,7 @@ module.exports = GZheader;
/***/ }),
-/* 328 */
+/* 333 */
/*!************************************************!*\
!*** ./node_modules/pako/lib/zlib/inftrees.js ***!
\************************************************/
@@ -101406,7 +101411,7 @@ module.exports = GZheader;
// misrepresented as being the original software.
// 3. This notice may not be removed or altered from any source distribution.
-var utils = __webpack_require__(/*! ../utils/common */ 107);
+var utils = __webpack_require__(/*! ../utils/common */ 108);
var MAXBITS = 15;
var ENOUGH_LENS = 852;
@@ -101731,7 +101736,7 @@ module.exports = function inflate_table(type, lens, lens_index, codes, table, ta
/***/ }),
-/* 329 */
+/* 334 */
/*!***********************************************!*\
!*** ./node_modules/pako/lib/zlib/inffast.js ***!
\***********************************************/
@@ -102088,7 +102093,7 @@ module.exports = function inflate_fast(strm, start) {
/***/ }),
-/* 330 */
+/* 335 */
/*!***********************************************!*\
!*** ./node_modules/pako/lib/zlib/inflate.js ***!
\***********************************************/
@@ -102118,11 +102123,11 @@ module.exports = function inflate_fast(strm, start) {
// misrepresented as being the original software.
// 3. This notice may not be removed or altered from any source distribution.
-var utils = __webpack_require__(/*! ../utils/common */ 107);
-var adler32 = __webpack_require__(/*! ./adler32 */ 228);
-var crc32 = __webpack_require__(/*! ./crc32 */ 227);
-var inflate_fast = __webpack_require__(/*! ./inffast */ 329);
-var inflate_table = __webpack_require__(/*! ./inftrees */ 328);
+var utils = __webpack_require__(/*! ../utils/common */ 108);
+var adler32 = __webpack_require__(/*! ./adler32 */ 233);
+var crc32 = __webpack_require__(/*! ./crc32 */ 232);
+var inflate_fast = __webpack_require__(/*! ./inffast */ 334);
+var inflate_table = __webpack_require__(/*! ./inftrees */ 333);
var CODES = 0;
var LENS = 1;
@@ -103656,7 +103661,7 @@ exports.inflateUndermine = inflateUndermine;
/***/ }),
-/* 331 */
+/* 336 */
/*!******************************************!*\
!*** ./node_modules/pako/lib/inflate.js ***!
\******************************************/
@@ -103668,13 +103673,13 @@ exports.inflateUndermine = inflateUndermine;
-var zlib_inflate = __webpack_require__(/*! ./zlib/inflate */ 330);
-var utils = __webpack_require__(/*! ./utils/common */ 107);
-var strings = __webpack_require__(/*! ./utils/strings */ 226);
-var c = __webpack_require__(/*! ./zlib/constants */ 224);
-var msg = __webpack_require__(/*! ./zlib/messages */ 185);
-var ZStream = __webpack_require__(/*! ./zlib/zstream */ 225);
-var GZheader = __webpack_require__(/*! ./zlib/gzheader */ 327);
+var zlib_inflate = __webpack_require__(/*! ./zlib/inflate */ 335);
+var utils = __webpack_require__(/*! ./utils/common */ 108);
+var strings = __webpack_require__(/*! ./utils/strings */ 231);
+var c = __webpack_require__(/*! ./zlib/constants */ 229);
+var msg = __webpack_require__(/*! ./zlib/messages */ 187);
+var ZStream = __webpack_require__(/*! ./zlib/zstream */ 230);
+var GZheader = __webpack_require__(/*! ./zlib/gzheader */ 332);
var toString = Object.prototype.toString;
@@ -104086,7 +104091,7 @@ exports.ungzip = inflate;
/***/ }),
-/* 332 */
+/* 337 */
/*!*********************************************!*\
!*** ./node_modules/pako/lib/zlib/trees.js ***!
\*********************************************/
@@ -104116,7 +104121,7 @@ exports.ungzip = inflate;
// misrepresented as being the original software.
// 3. This notice may not be removed or altered from any source distribution.
-var utils = __webpack_require__(/*! ../utils/common */ 107);
+var utils = __webpack_require__(/*! ../utils/common */ 108);
/* Public constants ==========================================================*/
/* ===========================================================================*/
@@ -105318,7 +105323,7 @@ exports._tr_align = _tr_align;
/***/ }),
-/* 333 */
+/* 338 */
/*!***********************************************!*\
!*** ./node_modules/pako/lib/zlib/deflate.js ***!
\***********************************************/
@@ -105348,11 +105353,11 @@ exports._tr_align = _tr_align;
// misrepresented as being the original software.
// 3. This notice may not be removed or altered from any source distribution.
-var utils = __webpack_require__(/*! ../utils/common */ 107);
-var trees = __webpack_require__(/*! ./trees */ 332);
-var adler32 = __webpack_require__(/*! ./adler32 */ 228);
-var crc32 = __webpack_require__(/*! ./crc32 */ 227);
-var msg = __webpack_require__(/*! ./messages */ 185);
+var utils = __webpack_require__(/*! ../utils/common */ 108);
+var trees = __webpack_require__(/*! ./trees */ 337);
+var adler32 = __webpack_require__(/*! ./adler32 */ 233);
+var crc32 = __webpack_require__(/*! ./crc32 */ 232);
+var msg = __webpack_require__(/*! ./messages */ 187);
/* Public constants ==========================================================*/
/* ===========================================================================*/
@@ -107204,7 +107209,7 @@ exports.deflateTune = deflateTune;
/***/ }),
-/* 334 */
+/* 339 */
/*!******************************************!*\
!*** ./node_modules/pako/lib/deflate.js ***!
\******************************************/
@@ -107216,11 +107221,11 @@ exports.deflateTune = deflateTune;
-var zlib_deflate = __webpack_require__(/*! ./zlib/deflate */ 333);
-var utils = __webpack_require__(/*! ./utils/common */ 107);
-var strings = __webpack_require__(/*! ./utils/strings */ 226);
-var msg = __webpack_require__(/*! ./zlib/messages */ 185);
-var ZStream = __webpack_require__(/*! ./zlib/zstream */ 225);
+var zlib_deflate = __webpack_require__(/*! ./zlib/deflate */ 338);
+var utils = __webpack_require__(/*! ./utils/common */ 108);
+var strings = __webpack_require__(/*! ./utils/strings */ 231);
+var msg = __webpack_require__(/*! ./zlib/messages */ 187);
+var ZStream = __webpack_require__(/*! ./zlib/zstream */ 230);
var toString = Object.prototype.toString;
@@ -107616,7 +107621,7 @@ exports.gzip = gzip;
/***/ }),
-/* 335 */
+/* 340 */
/*!************************************!*\
!*** ./node_modules/pako/index.js ***!
\************************************/
@@ -107628,11 +107633,11 @@ exports.gzip = gzip;
// Top level file is just a mixin of submodules & constants
-var assign = __webpack_require__(/*! ./lib/utils/common */ 107).assign;
+var assign = __webpack_require__(/*! ./lib/utils/common */ 108).assign;
-var deflate = __webpack_require__(/*! ./lib/deflate */ 334);
-var inflate = __webpack_require__(/*! ./lib/inflate */ 331);
-var constants = __webpack_require__(/*! ./lib/zlib/constants */ 224);
+var deflate = __webpack_require__(/*! ./lib/deflate */ 339);
+var inflate = __webpack_require__(/*! ./lib/inflate */ 336);
+var constants = __webpack_require__(/*! ./lib/zlib/constants */ 229);
var pako = {};
@@ -107642,7 +107647,7 @@ module.exports = pako;
/***/ }),
-/* 336 */
+/* 341 */
/*!*****************************************!*\
!*** ./node_modules/jszip/lib/flate.js ***!
\*****************************************/
@@ -107654,7 +107659,7 @@ module.exports = pako;
var USE_TYPEDARRAY = (typeof Uint8Array !== 'undefined') && (typeof Uint16Array !== 'undefined') && (typeof Uint32Array !== 'undefined');
-var pako = __webpack_require__(/*! pako */ 335);
+var pako = __webpack_require__(/*! pako */ 340);
var utils = __webpack_require__(/*! ./utils */ 69);
var GenericWorker = __webpack_require__(/*! ./stream/GenericWorker */ 90);
@@ -107739,7 +107744,7 @@ exports.uncompressWorker = function () {
/***/ }),
-/* 337 */
+/* 342 */
/*!**************************************************!*\
!*** ./node_modules/jszip/lib/generate/index.js ***!
\**************************************************/
@@ -107750,8 +107755,8 @@ exports.uncompressWorker = function () {
"use strict";
-var compressions = __webpack_require__(/*! ../compressions */ 229);
-var ZipFileWorker = __webpack_require__(/*! ./ZipFileWorker */ 326);
+var compressions = __webpack_require__(/*! ../compressions */ 234);
+var ZipFileWorker = __webpack_require__(/*! ./ZipFileWorker */ 331);
/**
* Find the compression to use.
@@ -107808,7 +107813,7 @@ exports.generateWorker = function (zip, options, comment) {
/***/ }),
-/* 338 */
+/* 343 */
/*!*********************************************!*\
!*** ./node_modules/jszip/lib/zipObject.js ***!
\*********************************************/
@@ -107819,10 +107824,10 @@ exports.generateWorker = function (zip, options, comment) {
"use strict";
-var StreamHelper = __webpack_require__(/*! ./stream/StreamHelper */ 234);
-var DataWorker = __webpack_require__(/*! ./stream/DataWorker */ 232);
-var utf8 = __webpack_require__(/*! ./utf8 */ 122);
-var CompressedObject = __webpack_require__(/*! ./compressedObject */ 187);
+var StreamHelper = __webpack_require__(/*! ./stream/StreamHelper */ 239);
+var DataWorker = __webpack_require__(/*! ./stream/DataWorker */ 237);
+var utf8 = __webpack_require__(/*! ./utf8 */ 124);
+var CompressedObject = __webpack_require__(/*! ./compressedObject */ 189);
var GenericWorker = __webpack_require__(/*! ./stream/GenericWorker */ 90);
/**
@@ -107953,7 +107958,7 @@ module.exports = ZipObject;
/***/ }),
-/* 339 */
+/* 344 */
/*!********************************************************************!*\
!*** ./node_modules/jszip/lib/nodejs/NodejsStreamOutputAdapter.js ***!
\********************************************************************/
@@ -107964,7 +107969,7 @@ module.exports = ZipObject;
"use strict";
-var Readable = __webpack_require__(/*! readable-stream */ 247).Readable;
+var Readable = __webpack_require__(/*! readable-stream */ 252).Readable;
var utils = __webpack_require__(/*! ../utils */ 69);
utils.inherits(NodejsStreamOutputAdapter, Readable);
@@ -108007,7 +108012,7 @@ module.exports = NodejsStreamOutputAdapter;
/***/ }),
-/* 340 */
+/* 345 */
/*!********************************************************!*\
!*** ./node_modules/jszip/lib/stream/ConvertWorker.js ***!
\********************************************************/
@@ -108045,7 +108050,7 @@ module.exports = ConvertWorker;
/***/ }),
-/* 341 */
+/* 346 */
/*!***********************************************!*\
!*** ./node_modules/immediate/lib/browser.js ***!
\***********************************************/
@@ -108124,10 +108129,10 @@ function immediate(task) {
}
}
-/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../webpack/buildin/global.js */ 96)))
+/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../webpack/buildin/global.js */ 97)))
/***/ }),
-/* 342 */
+/* 347 */
/*!*****************************************!*\
!*** ./node_modules/lie/lib/browser.js ***!
\*****************************************/
@@ -108137,7 +108142,7 @@ function immediate(task) {
"use strict";
-var immediate = __webpack_require__(/*! immediate */ 341);
+var immediate = __webpack_require__(/*! immediate */ 346);
/* istanbul ignore next */
function INTERNAL() {}
@@ -108392,7 +108397,7 @@ function race(iterable) {
/***/ }),
-/* 343 */
+/* 348 */
/*!*************************************************************************!*\
!*** ./node_modules/jszip/node_modules/core-js/library/modules/_cof.js ***!
\*************************************************************************/
@@ -108407,7 +108412,7 @@ module.exports = function(it){
};
/***/ }),
-/* 344 */
+/* 349 */
/*!**************************************************************************!*\
!*** ./node_modules/jszip/node_modules/core-js/library/modules/_html.js ***!
\**************************************************************************/
@@ -108415,10 +108420,10 @@ module.exports = function(it){
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
-module.exports = __webpack_require__(/*! ./_global */ 143).document && document.documentElement;
+module.exports = __webpack_require__(/*! ./_global */ 145).document && document.documentElement;
/***/ }),
-/* 345 */
+/* 350 */
/*!****************************************************************************!*\
!*** ./node_modules/jszip/node_modules/core-js/library/modules/_invoke.js ***!
\****************************************************************************/
@@ -108444,7 +108449,7 @@ module.exports = function(fn, args, that){
};
/***/ }),
-/* 346 */
+/* 351 */
/*!**************************************************************************!*\
!*** ./node_modules/jszip/node_modules/core-js/library/modules/_task.js ***!
\**************************************************************************/
@@ -108452,11 +108457,11 @@ module.exports = function(fn, args, that){
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
-var ctx = __webpack_require__(/*! ./_ctx */ 237)
- , invoke = __webpack_require__(/*! ./_invoke */ 345)
- , html = __webpack_require__(/*! ./_html */ 344)
- , cel = __webpack_require__(/*! ./_dom-create */ 235)
- , global = __webpack_require__(/*! ./_global */ 143)
+var ctx = __webpack_require__(/*! ./_ctx */ 242)
+ , invoke = __webpack_require__(/*! ./_invoke */ 350)
+ , html = __webpack_require__(/*! ./_html */ 349)
+ , cel = __webpack_require__(/*! ./_dom-create */ 240)
+ , global = __webpack_require__(/*! ./_global */ 145)
, process = global.process
, setTask = global.setImmediate
, clearTask = global.clearImmediate
@@ -108491,7 +108496,7 @@ if(!setTask || !clearTask){
delete queue[id];
};
// Node.js 0.8-
- if(__webpack_require__(/*! ./_cof */ 343)(process) == 'process'){
+ if(__webpack_require__(/*! ./_cof */ 348)(process) == 'process'){
defer = function(id){
process.nextTick(ctx(run, id, 1));
};
@@ -108529,7 +108534,7 @@ module.exports = {
};
/***/ }),
-/* 347 */
+/* 352 */
/*!***********************************************************************************!*\
!*** ./node_modules/jszip/node_modules/core-js/library/modules/_property-desc.js ***!
\***********************************************************************************/
@@ -108547,7 +108552,7 @@ module.exports = function(bitmap, value){
};
/***/ }),
-/* 348 */
+/* 353 */
/*!**********************************************************************************!*\
!*** ./node_modules/jszip/node_modules/core-js/library/modules/_to-primitive.js ***!
\**********************************************************************************/
@@ -108556,7 +108561,7 @@ module.exports = function(bitmap, value){
/***/ (function(module, exports, __webpack_require__) {
// 7.1.1 ToPrimitive(input [, PreferredType])
-var isObject = __webpack_require__(/*! ./_is-object */ 189);
+var isObject = __webpack_require__(/*! ./_is-object */ 191);
// instead of the ES6 spec version, we didn't implement @@toPrimitive case
// and the second argument - flag - preferred type is a string
module.exports = function(it, S){
@@ -108569,7 +108574,7 @@ module.exports = function(it, S){
};
/***/ }),
-/* 349 */
+/* 354 */
/*!************************************************************************************!*\
!*** ./node_modules/jszip/node_modules/core-js/library/modules/_ie8-dom-define.js ***!
\************************************************************************************/
@@ -108577,12 +108582,12 @@ module.exports = function(it, S){
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
-module.exports = !__webpack_require__(/*! ./_descriptors */ 188) && !__webpack_require__(/*! ./_fails */ 236)(function(){
- return Object.defineProperty(__webpack_require__(/*! ./_dom-create */ 235)('div'), 'a', {get: function(){ return 7; }}).a != 7;
+module.exports = !__webpack_require__(/*! ./_descriptors */ 190) && !__webpack_require__(/*! ./_fails */ 241)(function(){
+ return Object.defineProperty(__webpack_require__(/*! ./_dom-create */ 240)('div'), 'a', {get: function(){ return 7; }}).a != 7;
});
/***/ }),
-/* 350 */
+/* 355 */
/*!*******************************************************************************!*\
!*** ./node_modules/jszip/node_modules/core-js/library/modules/_an-object.js ***!
\*******************************************************************************/
@@ -108590,14 +108595,14 @@ module.exports = !__webpack_require__(/*! ./_descriptors */ 188) && !__webpack_r
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
-var isObject = __webpack_require__(/*! ./_is-object */ 189);
+var isObject = __webpack_require__(/*! ./_is-object */ 191);
module.exports = function(it){
if(!isObject(it))throw TypeError(it + ' is not an object!');
return it;
};
/***/ }),
-/* 351 */
+/* 356 */
/*!*******************************************************************************!*\
!*** ./node_modules/jszip/node_modules/core-js/library/modules/_object-dp.js ***!
\*******************************************************************************/
@@ -108605,12 +108610,12 @@ module.exports = function(it){
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
-var anObject = __webpack_require__(/*! ./_an-object */ 350)
- , IE8_DOM_DEFINE = __webpack_require__(/*! ./_ie8-dom-define */ 349)
- , toPrimitive = __webpack_require__(/*! ./_to-primitive */ 348)
+var anObject = __webpack_require__(/*! ./_an-object */ 355)
+ , IE8_DOM_DEFINE = __webpack_require__(/*! ./_ie8-dom-define */ 354)
+ , toPrimitive = __webpack_require__(/*! ./_to-primitive */ 353)
, dP = Object.defineProperty;
-exports.f = __webpack_require__(/*! ./_descriptors */ 188) ? Object.defineProperty : function defineProperty(O, P, Attributes){
+exports.f = __webpack_require__(/*! ./_descriptors */ 190) ? Object.defineProperty : function defineProperty(O, P, Attributes){
anObject(O);
P = toPrimitive(P, true);
anObject(Attributes);
@@ -108623,7 +108628,7 @@ exports.f = __webpack_require__(/*! ./_descriptors */ 188) ? Object.defineProper
};
/***/ }),
-/* 352 */
+/* 357 */
/*!**************************************************************************!*\
!*** ./node_modules/jszip/node_modules/core-js/library/modules/_hide.js ***!
\**************************************************************************/
@@ -108631,9 +108636,9 @@ exports.f = __webpack_require__(/*! ./_descriptors */ 188) ? Object.defineProper
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
-var dP = __webpack_require__(/*! ./_object-dp */ 351)
- , createDesc = __webpack_require__(/*! ./_property-desc */ 347);
-module.exports = __webpack_require__(/*! ./_descriptors */ 188) ? function(object, key, value){
+var dP = __webpack_require__(/*! ./_object-dp */ 356)
+ , createDesc = __webpack_require__(/*! ./_property-desc */ 352);
+module.exports = __webpack_require__(/*! ./_descriptors */ 190) ? function(object, key, value){
return dP.f(object, key, createDesc(1, value));
} : function(object, key, value){
object[key] = value;
@@ -108641,7 +108646,7 @@ module.exports = __webpack_require__(/*! ./_descriptors */ 188) ? function(objec
};
/***/ }),
-/* 353 */
+/* 358 */
/*!********************************************************************************!*\
!*** ./node_modules/jszip/node_modules/core-js/library/modules/_a-function.js ***!
\********************************************************************************/
@@ -108655,7 +108660,7 @@ module.exports = function(it){
};
/***/ }),
-/* 354 */
+/* 359 */
/*!****************************************************************************!*\
!*** ./node_modules/jszip/node_modules/core-js/library/modules/_export.js ***!
\****************************************************************************/
@@ -108663,10 +108668,10 @@ module.exports = function(it){
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
-var global = __webpack_require__(/*! ./_global */ 143)
- , core = __webpack_require__(/*! ./_core */ 238)
- , ctx = __webpack_require__(/*! ./_ctx */ 237)
- , hide = __webpack_require__(/*! ./_hide */ 352)
+var global = __webpack_require__(/*! ./_global */ 145)
+ , core = __webpack_require__(/*! ./_core */ 243)
+ , ctx = __webpack_require__(/*! ./_ctx */ 242)
+ , hide = __webpack_require__(/*! ./_hide */ 357)
, PROTOTYPE = 'prototype';
var $export = function(type, name, source){
@@ -108726,7 +108731,7 @@ $export.R = 128; // real proto method for `library`
module.exports = $export;
/***/ }),
-/* 355 */
+/* 360 */
/*!**********************************************************************************!*\
!*** ./node_modules/jszip/node_modules/core-js/library/modules/web.immediate.js ***!
\**********************************************************************************/
@@ -108734,15 +108739,15 @@ module.exports = $export;
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
-var $export = __webpack_require__(/*! ./_export */ 354)
- , $task = __webpack_require__(/*! ./_task */ 346);
+var $export = __webpack_require__(/*! ./_export */ 359)
+ , $task = __webpack_require__(/*! ./_task */ 351);
$export($export.G + $export.B, {
setImmediate: $task.set,
clearImmediate: $task.clear
});
/***/ }),
-/* 356 */
+/* 361 */
/*!*****************************************************************************!*\
!*** ./node_modules/jszip/node_modules/core-js/library/fn/set-immediate.js ***!
\*****************************************************************************/
@@ -108750,11 +108755,11 @@ $export($export.G + $export.B, {
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
-__webpack_require__(/*! ../modules/web.immediate */ 355);
-module.exports = __webpack_require__(/*! ../modules/_core */ 238).setImmediate;
+__webpack_require__(/*! ../modules/web.immediate */ 360);
+module.exports = __webpack_require__(/*! ../modules/_core */ 243).setImmediate;
/***/ }),
-/* 357 */
+/* 362 */
/*!*****************************************************!*\
!*** ./node_modules/readable-stream/passthrough.js ***!
\*****************************************************/
@@ -108762,11 +108767,11 @@ module.exports = __webpack_require__(/*! ../modules/_core */ 238).setImmediate;
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
-module.exports = __webpack_require__(/*! ./readable */ 191).PassThrough
+module.exports = __webpack_require__(/*! ./readable */ 193).PassThrough
/***/ }),
-/* 358 */
+/* 363 */
/*!***************************************************!*\
!*** ./node_modules/readable-stream/transform.js ***!
\***************************************************/
@@ -108774,11 +108779,11 @@ module.exports = __webpack_require__(/*! ./readable */ 191).PassThrough
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
-module.exports = __webpack_require__(/*! ./readable */ 191).Transform
+module.exports = __webpack_require__(/*! ./readable */ 193).Transform
/***/ }),
-/* 359 */
+/* 364 */
/*!********************************************************!*\
!*** ./node_modules/readable-stream/duplex-browser.js ***!
\********************************************************/
@@ -108786,11 +108791,11 @@ module.exports = __webpack_require__(/*! ./readable */ 191).Transform
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
-module.exports = __webpack_require__(/*! ./lib/_stream_duplex.js */ 113);
+module.exports = __webpack_require__(/*! ./lib/_stream_duplex.js */ 114);
/***/ }),
-/* 360 */
+/* 365 */
/*!**********************************************************!*\
!*** ./node_modules/readable-stream/writable-browser.js ***!
\**********************************************************/
@@ -108798,11 +108803,11 @@ module.exports = __webpack_require__(/*! ./lib/_stream_duplex.js */ 113);
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
-module.exports = __webpack_require__(/*! ./lib/_stream_writable.js */ 190);
+module.exports = __webpack_require__(/*! ./lib/_stream_writable.js */ 192);
/***/ }),
-/* 361 */
+/* 366 */
/*!*****************************************************************!*\
!*** ./node_modules/readable-stream/lib/_stream_passthrough.js ***!
\*****************************************************************/
@@ -108840,11 +108845,11 @@ module.exports = __webpack_require__(/*! ./lib/_stream_writable.js */ 190);
module.exports = PassThrough;
-var Transform = __webpack_require__(/*! ./_stream_transform */ 240);
+var Transform = __webpack_require__(/*! ./_stream_transform */ 245);
/**/
-var util = __webpack_require__(/*! core-util-is */ 125);
-util.inherits = __webpack_require__(/*! inherits */ 121);
+var util = __webpack_require__(/*! core-util-is */ 127);
+util.inherits = __webpack_require__(/*! inherits */ 123);
/* */
util.inherits(PassThrough, Transform);
@@ -108860,7 +108865,7 @@ PassThrough.prototype._transform = function (chunk, encoding, cb) {
};
/***/ }),
-/* 362 */
+/* 367 */
/*!************************************************!*\
!*** ./node_modules/util-deprecate/browser.js ***!
\************************************************/
@@ -108936,10 +108941,10 @@ function config (name) {
return String(val).toLowerCase() === 'true';
}
-/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ 96)))
+/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ 97)))
/***/ }),
-/* 363 */
+/* 368 */
/*!*************************************************************************!*\
!*** ./node_modules/readable-stream/lib/internal/streams/BufferList.js ***!
\*************************************************************************/
@@ -108952,8 +108957,8 @@ function config (name) {
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
-var Buffer = __webpack_require__(/*! safe-buffer */ 145).Buffer;
-var util = __webpack_require__(/*! util */ 243);
+var Buffer = __webpack_require__(/*! safe-buffer */ 147).Buffer;
+var util = __webpack_require__(/*! util */ 248);
function copyBuffer(src, target, offset) {
src.copy(target, offset);
@@ -109029,7 +109034,7 @@ if (util && util.inspect && util.inspect.custom) {
}
/***/ }),
-/* 364 */
+/* 369 */
/*!*************************************************!*\
!*** ./node_modules/stream-browserify/index.js ***!
\*************************************************/
@@ -109060,15 +109065,15 @@ if (util && util.inspect && util.inspect.custom) {
module.exports = Stream;
-var EE = __webpack_require__(/*! events */ 192).EventEmitter;
-var inherits = __webpack_require__(/*! inherits */ 121);
+var EE = __webpack_require__(/*! events */ 194).EventEmitter;
+var inherits = __webpack_require__(/*! inherits */ 123);
inherits(Stream, EE);
-Stream.Readable = __webpack_require__(/*! readable-stream/readable.js */ 191);
-Stream.Writable = __webpack_require__(/*! readable-stream/writable.js */ 360);
-Stream.Duplex = __webpack_require__(/*! readable-stream/duplex.js */ 359);
-Stream.Transform = __webpack_require__(/*! readable-stream/transform.js */ 358);
-Stream.PassThrough = __webpack_require__(/*! readable-stream/passthrough.js */ 357);
+Stream.Readable = __webpack_require__(/*! readable-stream/readable.js */ 193);
+Stream.Writable = __webpack_require__(/*! readable-stream/writable.js */ 365);
+Stream.Duplex = __webpack_require__(/*! readable-stream/duplex.js */ 364);
+Stream.Transform = __webpack_require__(/*! readable-stream/transform.js */ 363);
+Stream.PassThrough = __webpack_require__(/*! readable-stream/passthrough.js */ 362);
// Backwards-compat with node 0.4.x
Stream.Stream = Stream;
@@ -109167,7 +109172,7 @@ Stream.prototype.pipe = function(dest, options) {
/***/ }),
-/* 365 */
+/* 370 */
/*!***************************************!*\
!*** ./node_modules/ieee754/index.js ***!
\***************************************/
@@ -109262,7 +109267,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) {
/***/ }),
-/* 366 */
+/* 371 */
/*!*****************************************!*\
!*** ./node_modules/base64-js/index.js ***!
\*****************************************/
@@ -109425,7 +109430,7 @@ function fromByteArray (uint8) {
/***/ }),
-/* 367 */
+/* 372 */
/*!******************************************!*\
!*** ./node_modules/jszip/lib/object.js ***!
\******************************************/
@@ -109435,16 +109440,16 @@ function fromByteArray (uint8) {
"use strict";
-var utf8 = __webpack_require__(/*! ./utf8 */ 122);
+var utf8 = __webpack_require__(/*! ./utf8 */ 124);
var utils = __webpack_require__(/*! ./utils */ 69);
var GenericWorker = __webpack_require__(/*! ./stream/GenericWorker */ 90);
-var StreamHelper = __webpack_require__(/*! ./stream/StreamHelper */ 234);
-var defaults = __webpack_require__(/*! ./defaults */ 233);
-var CompressedObject = __webpack_require__(/*! ./compressedObject */ 187);
-var ZipObject = __webpack_require__(/*! ./zipObject */ 338);
-var generate = __webpack_require__(/*! ./generate */ 337);
-var nodejsUtils = __webpack_require__(/*! ./nodejsUtils */ 144);
-var NodejsStreamInputAdapter = __webpack_require__(/*! ./nodejs/NodejsStreamInputAdapter */ 325);
+var StreamHelper = __webpack_require__(/*! ./stream/StreamHelper */ 239);
+var defaults = __webpack_require__(/*! ./defaults */ 238);
+var CompressedObject = __webpack_require__(/*! ./compressedObject */ 189);
+var ZipObject = __webpack_require__(/*! ./zipObject */ 343);
+var generate = __webpack_require__(/*! ./generate */ 342);
+var nodejsUtils = __webpack_require__(/*! ./nodejsUtils */ 146);
+var NodejsStreamInputAdapter = __webpack_require__(/*! ./nodejs/NodejsStreamInputAdapter */ 330);
/**
@@ -109826,7 +109831,7 @@ module.exports = out;
/***/ }),
-/* 368 */
+/* 373 */
/*!***************************************************!*\
!*** ./node_modules/setimmediate/setImmediate.js ***!
\***************************************************/
@@ -110021,10 +110026,10 @@ module.exports = out;
attachTo.clearImmediate = clearImmediate;
}(typeof self === "undefined" ? typeof global === "undefined" ? this : global : self));
-/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ 96), __webpack_require__(/*! ./../process/browser.js */ 127)))
+/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ 97), __webpack_require__(/*! ./../process/browser.js */ 129)))
/***/ }),
-/* 369 */
+/* 374 */
/*!**********************************************************!*\
!*** ./node_modules/js-beautify/js/lib/beautify-html.js ***!
\**********************************************************/
@@ -111387,9 +111392,9 @@ var style_html = legacy_beautify_html;
/* Footer */
if (true) {
// Add support for AMD ( https://github.com/amdjs/amdjs-api/wiki/AMD#defineamd-property- )
- !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__, __webpack_require__(/*! ./beautify */ 196), __webpack_require__(/*! ./beautify-css */ 195)], __WEBPACK_AMD_DEFINE_RESULT__ = (function(requireamd) {
- var js_beautify = __webpack_require__(/*! ./beautify */ 196);
- var css_beautify = __webpack_require__(/*! ./beautify-css */ 195);
+ !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__, __webpack_require__(/*! ./beautify */ 201), __webpack_require__(/*! ./beautify-css */ 200)], __WEBPACK_AMD_DEFINE_RESULT__ = (function(requireamd) {
+ var js_beautify = __webpack_require__(/*! ./beautify */ 201);
+ var css_beautify = __webpack_require__(/*! ./beautify-css */ 200);
return {
html_beautify: function(html_source, options) {
diff --git a/src/CreateProgram.js b/src/CreateProgram.js
deleted file mode 100644
index 17c4f76ee..000000000
--- a/src/CreateProgram.js
+++ /dev/null
@@ -1,159 +0,0 @@
-import {CONSTANTS} from "./Constants";
-import {Player} from "./Player";
-import {createElement} from "../utils/uiHelpers/createElement";
-
-// a function that returns a requirement for a program that requires only that
-// the player has at least the given skill level.
-function requireLevel(lvl) {
- return function() {
- return Player.hacking_skill >= lvl;
- }
-}
-
-function Program(name, create) {
- this.name = name;
- this.create = create;
-}
-
-Program.prototype.htmlID = function() {
- const name = this.name.endsWith('.exe') ? this.name.slice(0, -('.exe'.length)) : this.name;
- return "create-program-"+name;
-}
-
-/* Create programs */
-const Programs = {
- NukeProgram: new Program("NUKE.exe", {
- level: 1,
- tooltip:"This virus is used to gain root access to a machine if enough ports are opened.",
- req: requireLevel(1),
- time: CONSTANTS.MillisecondsPerFiveMinutes,
- }),
- BruteSSHProgram: new Program("BruteSSH.exe", {
- level: 50,
- tooltip:"This program executes a brute force attack that opens SSH ports",
- req: requireLevel(50),
- time: CONSTANTS.MillisecondsPerFiveMinutes * 2,
- }),
- FTPCrackProgram: new Program("FTPCrack.exe", {
- level: 100,
- tooltip:"This program cracks open FTP ports",
- req: requireLevel(100),
- time: CONSTANTS.MillisecondsPerHalfHour,
- }),
- RelaySMTPProgram: new Program("relaySMTP.exe", {
- level: 250,
- tooltip:"This program opens SMTP ports by redirecting data",
- req: requireLevel(250),
- time: CONSTANTS.MillisecondsPer2Hours,
- }),
- HTTPWormProgram: new Program("HTTPWorm.exe", {
- level: 500,
- tooltip:"This virus opens up HTTP ports",
- req: requireLevel(500),
- time: CONSTANTS.MillisecondsPer4Hours,
- }),
- SQLInjectProgram: new Program("SQLInject.exe", {
- level: 750,
- tooltip:"This virus opens SQL ports",
- req: requireLevel(750),
- time: CONSTANTS.MillisecondsPer8Hours,
- }),
- DeepscanV1: new Program("DeepscanV1.exe", {
- level: 75,
- tooltip:"This program allows you to use the scan-analyze command with a depth up to 5",
- req: requireLevel(75),
- time: CONSTANTS.MillisecondsPerQuarterHour,
- }),
- DeepscanV2: new Program("DeepscanV2.exe", {
- level: 400,
- tooltip:"This program allows you to use the scan-analyze command with a depth up to 10",
- req: requireLevel(400),
- time: CONSTANTS.MillisecondsPer2Hours,
- }),
- ServerProfiler: new Program("ServerProfiler.exe", {
- level: 75,
- tooltip:"This program is used to display hacking and Netscript-related information about servers",
- req: requireLevel(75),
- time: CONSTANTS.MillisecondsPerHalfHour,
- }),
- AutoLink: new Program("AutoLink.exe", {
- level: 25,
- tooltip:"This program allows you to directly connect to other servers through the 'scan-analyze' command",
- req: requireLevel(25),
- time: CONSTANTS.MillisecondsPerQuarterHour,
- }),
- BitFlume: new Program("b1t_flum3.exe", {
- level: 1,
- tooltip:"This program creates a portal to the BitNode Nexus (allows you to restart and switch BitNodes)",
- req: function() {return Player.sourceFiles.length > 0 && Player.hacking_skill >= 1},
- time: CONSTANTS.MillisecondsPerFiveMinutes / 20,
- }),
- // special because you can't create it.
- Flight: new Program("fl1ght.exe"),
-};
-
-// this has the same key as 'Programs', not program names
-const aLinks = {};
-
-function displayCreateProgramContent() {
- for(const key in aLinks) {
- const p = Programs[key]
- aLinks[key].style.display = "none";
- if(!Player.hasProgram(p.name) && p.create.req()){
- aLinks[key].style.display = "inline-block";
- }
- }
-}
-
-//Returns the number of programs that are currently available to be created
-function getNumAvailableCreateProgram() {
- var count = 0;
- for(const key in Programs) {
- if(Programs[key].create === undefined) { // a program we can't create
- continue
- }
- if(Player.hasProgram(Programs[key].name)) { // can't create it twice
- continue
- }
-
- if(!Programs[key].create.req()) { // if you don't fullfill the creation requirement
- continue
- }
-
- count++;
- }
-
- if (Player.firstProgramAvailable === false && count > 0) {
- Player.firstProgramAvailable = true;
- document.getElementById("create-program-tab").style.display = "list-item";
- document.getElementById("hacking-menu-header").click();
- document.getElementById("hacking-menu-header").click();
- }
- return count;
-}
-
-function initCreateProgramButtons() {
- var createProgramList = document.getElementById("create-program-list");
- for(const key in Programs) {
- if(Programs[key].create === undefined) {
- continue
- }
- const elem = createElement("a", {
- class: "a-link-button", id: Programs[key].htmlID(), innerText: Programs[key].name,
- tooltip: Programs[key].create.tooltip,
- });
- aLinks[key] = elem;
- createProgramList.appendChild(elem);
- }
-
- for(const key in aLinks) {
- const p = Programs[key]
- aLinks[key].addEventListener("click", function() {
- Player.startCreateProgramWork(p.name, p.create.time, p.create.level);
- return false;
- });
- }
-}
-
-export {Programs, displayCreateProgramContent, getNumAvailableCreateProgram,
- initCreateProgramButtons};
diff --git a/src/DarkWeb.js b/src/DarkWeb/DarkWeb.js
similarity index 54%
rename from src/DarkWeb.js
rename to src/DarkWeb/DarkWeb.js
index 08108d09a..394e31982 100644
--- a/src/DarkWeb.js
+++ b/src/DarkWeb/DarkWeb.js
@@ -1,15 +1,14 @@
-import {Programs} from "./CreateProgram";
-import {Player} from "./Player";
-import {SpecialServerIps} from "./SpecialServerIps";
-import {post} from "./ui/postToTerminal";
+import { DarkWebItems } from "./DarkWebItems";
-import {isValidIPAddress} from "../utils/helpers/isValidIPAddress";
-import {formatNumber} from "../utils/StringHelperFunctions";
+import { Player } from "../Player";
+import { SpecialServerIps } from "../SpecialServerIps";
+import { post } from "../ui/postToTerminal";
+import { isValidIPAddress } from "../../utils/helpers/isValidIPAddress";
+import { formatNumber } from "../../utils/StringHelperFunctions";
-/* DarkWeb.js */
//Posts a "help" message if connected to DarkWeb
-function checkIfConnectedToDarkweb() {
+export function checkIfConnectedToDarkweb() {
if (SpecialServerIps.hasOwnProperty("Darkweb Server")) {
var darkwebIp = SpecialServerIps["Darkweb Server"];
if (!isValidIPAddress(darkwebIp)) {return;}
@@ -24,7 +23,7 @@ function checkIfConnectedToDarkweb() {
//Handler for dark web commands. The terminal's executeCommand() function will pass
//dark web-specific commands into this. It will pass in the raw split command array
//rather than the command string
-function executeDarkwebTerminalCommand(commandArray) {
+export function executeDarkwebTerminalCommand(commandArray) {
if (commandArray.length == 0) {return;}
switch (commandArray[0]) {
case "buy":
@@ -87,30 +86,5 @@ function buyDarkwebItem(itemName) {
// buy and push
Player.loseMoney(item.price);
Player.getHomeComputer().programs.push(item.program);
- post('You have purchased the '+item.program+' program. The new program can be found on your home computer.');
+ post('You have purchased the ' + item.program + ' program. The new program can be found on your home computer.');
}
-
-function DarkWebItem(program, price, description) {
- this.program = program;
- this.price = price;
- this.description = description;
-}
-
-// formats the item for the terminal (eg. "BruteSSH.exe - $500,000 - Opens up SSH Ports")
-DarkWebItem.prototype.toString = function() {
- return [this.program, "$"+formatNumber(this.price), this.description].join(' - ');
-}
-
-const DarkWebItems = {
- BruteSSHProgram: new DarkWebItem(Programs.BruteSSHProgram.name, 500000, "Opens up SSH Ports"),
- FTPCrackProgram: new DarkWebItem(Programs.FTPCrackProgram.name, 1500000, "Opens up FTP Ports"),
- RelaySMTPProgram: new DarkWebItem(Programs.RelaySMTPProgram.name, 5000000, "Opens up SMTP Ports"),
- HTTPWormProgram: new DarkWebItem(Programs.HTTPWormProgram.name, 30000000, "Opens up HTTP Ports"),
- SQLInjectProgram: new DarkWebItem(Programs.SQLInjectProgram.name, 250000000, "Opens up SQL Ports"),
- DeepscanV1: new DarkWebItem(Programs.DeepscanV1.name, 500000, "Enables 'scan-analyze' with a depth up to 5"),
- DeepscanV2: new DarkWebItem(Programs.DeepscanV2.name, 25000000, "Enables 'scan-analyze' with a depth up to 10"),
- AutolinkProgram: new DarkWebItem(Programs.AutoLink.name, 1000000, "Enables direct connect via 'scan-analyze'"),
-};
-
-
-export {checkIfConnectedToDarkweb, executeDarkwebTerminalCommand, DarkWebItems};
diff --git a/src/DarkWeb/DarkWebItem.ts b/src/DarkWeb/DarkWebItem.ts
new file mode 100644
index 000000000..9bb92e885
--- /dev/null
+++ b/src/DarkWeb/DarkWebItem.ts
@@ -0,0 +1,18 @@
+import { formatNumber } from "../../utils/StringHelperFunctions";
+
+export class DarkWebItem {
+ program: string;
+ price: number;
+ description: string;
+
+ constructor(program: string, price: number, description: string) {
+ this.program = program;
+ this.price = price;
+ this.description = description;
+ }
+
+ // Formats the item to print out to terminal (e.g. BruteSSH.exe -$500,000 - Opens up SSH Ports)
+ toString(): string {
+ return [this.program, "$" + formatNumber(this.price, 0), this.description].join(' - ');
+ }
+}
diff --git a/src/DarkWeb/DarkWebItems.ts b/src/DarkWeb/DarkWebItems.ts
new file mode 100644
index 000000000..9fc021183
--- /dev/null
+++ b/src/DarkWeb/DarkWebItems.ts
@@ -0,0 +1,14 @@
+import { DarkWebItem } from "./DarkWebItem";
+import { IMap } from "../types";
+import { Programs } from "../Programs/Programs";
+
+export const DarkWebItems: IMap = {
+ BruteSSHProgram: new DarkWebItem(Programs.BruteSSHProgram.name, 500000, "Opens up SSH Ports"),
+ FTPCrackProgram: new DarkWebItem(Programs.FTPCrackProgram.name, 1500000, "Opens up FTP Ports"),
+ RelaySMTPProgram: new DarkWebItem(Programs.RelaySMTPProgram.name, 5000000, "Opens up SMTP Ports"),
+ HTTPWormProgram: new DarkWebItem(Programs.HTTPWormProgram.name, 30000000, "Opens up HTTP Ports"),
+ SQLInjectProgram: new DarkWebItem(Programs.SQLInjectProgram.name, 250000000, "Opens up SQL Ports"),
+ DeepscanV1: new DarkWebItem(Programs.DeepscanV1.name, 500000, "Enables 'scan-analyze' with a depth up to 5"),
+ DeepscanV2: new DarkWebItem(Programs.DeepscanV2.name, 25000000, "Enables 'scan-analyze' with a depth up to 10"),
+ AutolinkProgram: new DarkWebItem(Programs.AutoLink.name, 1000000, "Enables direct connect via 'scan-analyze'"),
+};
diff --git a/src/DevMenu.js b/src/DevMenu.js
index 1af91b955..68530353b 100644
--- a/src/DevMenu.js
+++ b/src/DevMenu.js
@@ -1,6 +1,6 @@
import { AugmentationNames } from "./Augmentations";
import { generateRandomContract } from "./CodingContractGenerator";
-import { Programs } from "./CreateProgram";
+import { Programs } from "./Programs/Programs";
import { Factions } from "./Faction/Factions";
import { Player } from "./Player";
import { AllServers } from "./Server";
diff --git a/src/Message.js b/src/Message.js
index b99738dca..fabab140a 100644
--- a/src/Message.js
+++ b/src/Message.js
@@ -1,12 +1,14 @@
-import {Augmentations, Augmentation,
- AugmentationNames} from "./Augmentations";
-import {Programs} from "./CreateProgram";
-import {inMission} from "./Missions";
-import {Player} from "./Player";
-import {redPillFlag} from "./RedPill";
-import {GetServerByHostname} from "./Server";
-import {Settings} from "./Settings";
-import {dialogBoxCreate, dialogBoxOpened} from "../utils/DialogBox";
+import { Augmentations,
+ Augmentation,
+ AugmentationNames } from "./Augmentations";
+import { Programs } from "./Programs/Programs";
+import { inMission } from "./Missions";
+import { Player } from "./Player";
+import { redPillFlag } from "./RedPill";
+import { GetServerByHostname } from "./Server";
+import { Settings } from "./Settings";
+import { dialogBoxCreate,
+ dialogBoxOpened} from "../utils/DialogBox";
import {Reviver, Generic_toJSON,
Generic_fromJSON} from "../utils/JSONReviver";
diff --git a/src/NetscriptFunctions.js b/src/NetscriptFunctions.js
index f7d3889ae..8dafd21f9 100644
--- a/src/NetscriptFunctions.js
+++ b/src/NetscriptFunctions.js
@@ -13,8 +13,7 @@ import {Companies, companyExists} from "./Company/Companies";
import {CompanyPosition} from "./Company/CompanyPosition";
import {CompanyPositions} from "./Company/CompanyPositions";
import {CONSTANTS} from "./Constants";
-import {Programs} from "./CreateProgram";
-import {DarkWebItems} from "./DarkWeb";
+import { DarkWebItems } from "./DarkWeb/DarkWebItems";
import {calculateHackingChance,
calculateHackingExpGain,
calculatePercentMoneyHacked,
@@ -33,6 +32,7 @@ import {Locations} from "./Locations";
import {Message, Messages} from "./Message";
import {inMission} from "./Missions";
import {Player} from "./Player";
+import { Programs } from "./Programs/Programs";
import {Script, findRunningScript, RunningScript,
isScriptFilename} from "./Script";
import {Server, getServer, AddToAllServers,
diff --git a/src/Player.js b/src/Player.js
index 54ab8a22b..3d40a45e3 100644
--- a/src/Player.js
+++ b/src/Player.js
@@ -1,17 +1,18 @@
-import {Augmentations, applyAugmentation,
- AugmentationNames,
- PlayerOwnedAugmentation} from "./Augmentations";
-import {BitNodeMultipliers} from "./BitNodeMultipliers";
-import {CodingContractRewardType} from "./CodingContracts";
-import {Company} from "./Company/Company";
-import {Companies} from "./Company/Companies";
-import {getNextCompanyPosition} from "./Company/GetNextCompanyPosition";
-import {getJobRequirementText} from "./Company/GetJobRequirementText";
-import {CompanyPositions} from "./Company/CompanyPositions";
+import { Augmentations,
+ applyAugmentation,
+ AugmentationNames,
+ PlayerOwnedAugmentation } from "./Augmentations";
+import { BitNodeMultipliers } from "./BitNodeMultipliers";
+import { CodingContractRewardType } from "./CodingContracts";
+import { Company } from "./Company/Company";
+import { Companies } from "./Company/Companies";
+import { getNextCompanyPosition } from "./Company/GetNextCompanyPosition";
+import { getJobRequirementText } from "./Company/GetJobRequirementText";
+import { CompanyPositions } from "./Company/CompanyPositions";
import * as posNames from "./Company/data/CompanyPositionNames";
import {CONSTANTS} from "./Constants";
import { Corporation } from "./Corporation/Corporation";
-import {Programs} from "./CreateProgram";
+import { Programs } from "./Programs/Programs";
import {determineCrimeSuccess, Crimes} from "./Crimes";
import {Engine} from "./engine";
import { Faction } from "./Faction/Faction";
diff --git a/src/Prestige.js b/src/Prestige.js
index d22bfe1a7..9cf77b570 100755
--- a/src/Prestige.js
+++ b/src/Prestige.js
@@ -5,7 +5,7 @@ import {initBitNodeMultipliers} from "./BitNode";
import {Bladeburner} from "./Bladeburner";
import {writeCinematicText} from "./CinematicText";
import {Companies, initCompanies} from "./Company/Companies";
-import {Programs} from "./CreateProgram";
+import { Programs } from "./Programs/Programs";
import {Engine} from "./engine";
import { Faction } from "./Faction/Faction";
import { Factions,
diff --git a/src/Programs/Program.ts b/src/Programs/Program.ts
new file mode 100644
index 000000000..96ad7ce04
--- /dev/null
+++ b/src/Programs/Program.ts
@@ -0,0 +1,26 @@
+export interface IPlayer {
+ hacking_skill: number;
+ sourceFiles: any[];
+}
+
+export interface IProgramCreate {
+ level: number;
+ req(p: IPlayer): boolean; // Function that indicates whether player meets requirements
+ time: number;
+ tooltip: string;
+}
+
+export class Program {
+ name: string = "";
+ create: IProgramCreate | null;
+
+ constructor(name: string, create: IProgramCreate | null) {
+ this.name = name;
+ this.create = create;
+ }
+
+ htmlID(): string {
+ const name = this.name.endsWith('.exe') ? this.name.slice(0, -('.exe'.length)) : this.name;
+ return "create-program-" + name;
+ }
+}
diff --git a/src/Programs/ProgramHelpers.js b/src/Programs/ProgramHelpers.js
new file mode 100644
index 000000000..8f3848494
--- /dev/null
+++ b/src/Programs/ProgramHelpers.js
@@ -0,0 +1,75 @@
+import { Programs } from "./Programs";
+
+import { CONSTANTS } from "../Constants";
+import { Player } from "../Player";
+import { createElement } from "../../utils/uiHelpers/createElement";
+
+// this has the same key as 'Programs', not program names
+const aLinks = {};
+
+function displayCreateProgramContent() {
+ for(const key in aLinks) {
+ const p = Programs[key]
+ aLinks[key].style.display = "none";
+ if(!Player.hasProgram(p.name) && p.create.req(Player)){
+ aLinks[key].style.display = "inline-block";
+ }
+ }
+}
+
+//Returns the number of programs that are currently available to be created
+function getNumAvailableCreateProgram() {
+ var count = 0;
+ for (const key in Programs) {
+ // Non-creatable program
+ if (Programs[key].create == null) {
+ continue;
+ }
+
+ // Already has program
+ if (Player.hasProgram(Programs[key].name)) {
+ continue;
+ }
+
+ // Does not meet requirements
+ if (!Programs[key].create.req(Player)) {
+ continue;
+ }
+
+ count++;
+ }
+
+ if (Player.firstProgramAvailable === false && count > 0) {
+ Player.firstProgramAvailable = true;
+ document.getElementById("create-program-tab").style.display = "list-item";
+ document.getElementById("hacking-menu-header").click();
+ document.getElementById("hacking-menu-header").click();
+ }
+ return count;
+}
+
+function initCreateProgramButtons() {
+ const createProgramList = document.getElementById("create-program-list");
+ for (const key in Programs) {
+ if(Programs[key].create === null) {
+ continue;
+ }
+ const elem = createElement("a", {
+ class: "a-link-button", id: Programs[key].htmlID(), innerText: Programs[key].name,
+ tooltip: Programs[key].create.tooltip,
+ });
+ aLinks[key] = elem;
+ createProgramList.appendChild(elem);
+ }
+
+ for (const key in aLinks) {
+ const p = Programs[key]
+ aLinks[key].addEventListener("click", function() {
+ Player.startCreateProgramWork(p.name, p.create.time, p.create.level);
+ return false;
+ });
+ }
+}
+
+export {displayCreateProgramContent, getNumAvailableCreateProgram,
+ initCreateProgramButtons};
diff --git a/src/Programs/Programs.ts b/src/Programs/Programs.ts
new file mode 100644
index 000000000..aede53dca
--- /dev/null
+++ b/src/Programs/Programs.ts
@@ -0,0 +1,10 @@
+import { Program } from "./Program";
+import { IProgramCreationParams,
+ programsMetadata } from "./data/programsMetadata";
+import { IMap } from "../types";
+
+export const Programs: IMap = {};
+
+for (const params of programsMetadata) {
+ Programs[params.key] = new Program(params.name, params.create);
+}
diff --git a/src/Programs/data/ProgramsMetadata.ts b/src/Programs/data/ProgramsMetadata.ts
new file mode 100644
index 000000000..4814762e0
--- /dev/null
+++ b/src/Programs/data/ProgramsMetadata.ts
@@ -0,0 +1,139 @@
+import { IPlayer,
+ IProgramCreate } from "../Program";
+import { CONSTANTS } from "../../Constants";
+
+function requireHackingLevel(lvl: number) {
+ return function(p: IPlayer) {
+ return p.hacking_skill >= lvl;
+ }
+}
+
+function bitFlumeRequirements() {
+ return function(p: IPlayer) {
+ return p.sourceFiles.length > 0 && p.hacking_skill >= 1;
+ }
+}
+
+export interface IProgramCreationParams {
+ key: string;
+ name: string;
+ create: IProgramCreate | null;
+}
+
+export const programsMetadata: IProgramCreationParams[] = [
+ {
+ key: "NukeProgram",
+ name: "NUKE.exe",
+ create: {
+ level: 1,
+ tooltip: "This virus is used to gain root access to a machine if enough ports are opened.",
+ req: requireHackingLevel(1),
+ time: CONSTANTS.MillisecondsPerFiveMinutes,
+ },
+ },
+ {
+ key: "BruteSSHProgram",
+ name: "BruteSSH.exe",
+ create: {
+ level: 50,
+ tooltip: "This program executes a brute force attack that opens SSH ports",
+ req: requireHackingLevel(50),
+ time: CONSTANTS.MillisecondsPerFiveMinutes * 2,
+ },
+ },
+ {
+ key: "FTPCrackProgram",
+ name: "FTPCrack.exe",
+ create: {
+ level: 100,
+ tooltip: "This program cracks open FTP ports",
+ req: requireHackingLevel(100),
+ time: CONSTANTS.MillisecondsPerHalfHour,
+ },
+ },
+ {
+ key: "RelaySMTPProgram",
+ name: "relaySMTP.exe",
+ create: {
+ level: 250,
+ tooltip: "This program opens SMTP ports by redirecting data",
+ req: requireHackingLevel(250),
+ time: CONSTANTS.MillisecondsPer2Hours,
+ },
+ },
+ {
+ key: "HTTPWormProgram",
+ name: "HTTPWorm.exe",
+ create: {
+ level: 500,
+ tooltip: "This virus opens up HTTP ports",
+ req: requireHackingLevel(500),
+ time: CONSTANTS.MillisecondsPer4Hours,
+ },
+ },
+ {
+ key: "SQLInjectProgram",
+ name: "SQLInject.exe",
+ create: {
+ level: 750,
+ tooltip: "This virus opens SQL ports",
+ req: requireHackingLevel(750),
+ time: CONSTANTS.MillisecondsPer8Hours,
+ },
+ },
+ {
+ key: "DeepscanV1",
+ name: "DeepscanV1.exe",
+ create: {
+ level: 75,
+ tooltip: "This program allows you to use the scan-analyze command with a depth up to 5",
+ req: requireHackingLevel(75),
+ time: CONSTANTS.MillisecondsPerQuarterHour,
+ },
+ },
+ {
+ key: "DeepscanV2",
+ name: "DeepscanV2.exe",
+ create: {
+ level: 400,
+ tooltip: "This program allows you to use the scan-analyze command with a depth up to 10",
+ req: requireHackingLevel(400),
+ time: CONSTANTS.MillisecondsPer2Hours,
+ },
+ },
+ {
+ key: "ServerProfiler",
+ name: "ServerProfiler.exe",
+ create: {
+ level: 75,
+ tooltip: "This program is used to display hacking and Netscript-related information about servers",
+ req: requireHackingLevel(75),
+ time: CONSTANTS.MillisecondsPerHalfHour,
+ },
+ },
+ {
+ key: "AutoLink",
+ name: "AutoLink.exe",
+ create: {
+ level: 25,
+ tooltip: "This program allows you to directly connect to other servers through the 'scan-analyze' command",
+ req: requireHackingLevel(25),
+ time: CONSTANTS.MillisecondsPerQuarterHour,
+ },
+ },
+ {
+ key: "BitFlume",
+ name: "b1t_flum3.exe",
+ create: {
+ level: 1,
+ tooltip: "This program creates a portal to the BitNode Nexus (allows you to restart and switch BitNodes)",
+ req: bitFlumeRequirements(),
+ time: CONSTANTS.MillisecondsPerFiveMinutes / 20,
+ },
+ },
+ {
+ key: "Flight",
+ name: "fl1ght.exe",
+ create: null,
+ },
+];
diff --git a/src/Server.js b/src/Server.js
index 5fe88b381..f18a61cc1 100644
--- a/src/Server.js
+++ b/src/Server.js
@@ -1,17 +1,21 @@
-import {BitNodeMultipliers} from "./BitNodeMultipliers";
-import {CodingContract, ContractTypes} from "./CodingContracts";
-import {CONSTANTS} from "./Constants";
-import {Script, isScriptFilename} from "./Script";
-import {Programs} from "./CreateProgram";
-import {Player} from "./Player";
-import {SpecialServerIps} from "./SpecialServerIps";
-import {TextFile} from "./TextFile";
-import {getRandomInt} from "../utils/helpers/getRandomInt";
-import {createRandomIp, ipExists} from "../utils/IPAddress";
-import {serverMetadata} from "./data/servers";
-import {Reviver, Generic_toJSON,
- Generic_fromJSON} from "../utils/JSONReviver";
-import {isValidIPAddress} from "../utils/helpers/isValidIPAddress";
+import { BitNodeMultipliers } from "./BitNodeMultipliers";
+import { CodingContract,
+ ContractTypes } from "./CodingContracts";
+import { CONSTANTS } from "./Constants";
+import { Script,
+ isScriptFilename } from "./Script";
+import { Player } from "./Player";
+import { Programs } from "./Programs/Programs";
+import { SpecialServerIps } from "./SpecialServerIps";
+import { TextFile } from "./TextFile";
+import { getRandomInt } from "../utils/helpers/getRandomInt";
+import { createRandomIp,
+ ipExists } from "../utils/IPAddress";
+import { serverMetadata } from "./data/servers";
+import { Reviver,
+ Generic_toJSON,
+ Generic_fromJSON} from "../utils/JSONReviver";
+import {isValidIPAddress} from "../utils/helpers/isValidIPAddress";
function Server(params={ip:createRandomIp(), hostname:""}) {
/* Properties */
diff --git a/src/Terminal.js b/src/Terminal.js
index eed113d56..f849adb04 100644
--- a/src/Terminal.js
+++ b/src/Terminal.js
@@ -5,11 +5,11 @@ import {substituteAliases, printAliases,
import {CodingContract, CodingContractResult,
CodingContractRewardType} from "./CodingContracts";
import {CONSTANTS} from "./Constants";
-import {Programs} from "./CreateProgram";
-import {executeDarkwebTerminalCommand,
- checkIfConnectedToDarkweb,
- DarkWebItems} from "./DarkWeb";
-import {Engine} from "./engine";
+import { Programs } from "./Programs/Programs";
+import { executeDarkwebTerminalCommand,
+ checkIfConnectedToDarkweb } from "./DarkWeb/DarkWeb";
+import { DarkWebItems } from "./DarkWeb/DarkWebItems";
+import {Engine} from "./engine";
import {FconfSettings, parseFconfSettings,
createFconf} from "./Fconf";
import {calculateHackingChance,
diff --git a/src/engine.js b/src/engine.js
index faea2117a..58ac130ae 100644
--- a/src/engine.js
+++ b/src/engine.js
@@ -1,11 +1,12 @@
-import {dialogBoxCreate} from "../utils/DialogBox";
-import {gameOptionsBoxOpen, gameOptionsBoxClose} from "../utils/GameOptions";
+import { dialogBoxCreate} from "../utils/DialogBox";
+import { gameOptionsBoxClose,
+ gameOptionsBoxOpen} from "../utils/GameOptions";
import { getRandomInt } from "../utils/helpers/getRandomInt";
-import {removeChildrenFromElement} from "../utils/uiHelpers/removeChildrenFromElement";
-import {clearEventListeners} from "../utils/uiHelpers/clearEventListeners";
-import {createElement} from "../utils/uiHelpers/createElement";
-import {exceptionAlert} from "../utils/helpers/exceptionAlert";
-import {removeLoadingScreen} from "../utils/uiHelpers/removeLoadingScreen";
+import { removeChildrenFromElement } from "../utils/uiHelpers/removeChildrenFromElement";
+import { clearEventListeners } from "../utils/uiHelpers/clearEventListeners";
+import { createElement } from "../utils/uiHelpers/createElement";
+import { exceptionAlert } from "../utils/helpers/exceptionAlert";
+import { removeLoadingScreen } from "../utils/uiHelpers/removeLoadingScreen";
import {numeralWrapper} from "./ui/numeralFormat";
@@ -29,10 +30,8 @@ import {CompanyPositions} from "./Company/CompanyP
import {initCompanies} from "./Company/Companies";
import { Corporation } from "./Corporation/Corporation";
import {CONSTANTS} from "./Constants";
-import {displayCreateProgramContent,
- getNumAvailableCreateProgram,
- initCreateProgramButtons,
- Programs} from "./CreateProgram";
+
+
import {createDevMenu, closeDevMenu} from "./DevMenu";
import { Factions, initFactions } from "./Faction/Factions";
import { displayFactionContent, joinFaction,
@@ -55,6 +54,10 @@ import {updateOnlineScriptTimes,
import {Player} from "./Player";
import {prestigeAugmentation,
prestigeSourceFile} from "./Prestige";
+import { Programs } from "./Programs/Programs";
+import { displayCreateProgramContent,
+ getNumAvailableCreateProgram,
+ initCreateProgramButtons } from "./Programs/ProgramHelpers";
import {redPillFlag, hackWorldDaemon} from "./RedPill";
import {saveObject, loadGame} from "./SaveObject";
import {loadAllRunningScripts, scriptEditorInit,