From 4d2290bcb1131e725e97317af82698dde0001bc9 Mon Sep 17 00:00:00 2001 From: danielyxie Date: Wed, 26 Sep 2018 00:00:28 -0500 Subject: [PATCH] Update documentation. Hacknet Node API functions for getting costs now return Infinity if the specified Node is at max level --- dist/engine.bundle.js | 56170 ++++++++++- dist/engine.css | 330 +- dist/vendor.bundle.js | 111046 +++++++++++++++++++++- doc/source/netscriptfunctions.rst | 32 +- doc/source/netscripthacknetnodeapi.rst | 11 +- index.html | 98 +- src/Constants.js | 1 + src/HacknetNode.js | 14 +- src/engine.js | 2 +- 9 files changed, 167321 insertions(+), 383 deletions(-) diff --git a/dist/engine.bundle.js b/dist/engine.bundle.js index 32dbfe70e..34ef44290 100644 --- a/dist/engine.bundle.js +++ b/dist/engine.bundle.js @@ -1,2 +1,56170 @@ -!function(e){function t(t){for(var a,o,s=t[0],l=t[1],c=t[2],d=0,h=[];d0?this.intelligence=Math.floor(this.calculateSkill(this.intelligence_exp)):this.intelligence=0;var e=this.hp/this.max_hp;this.max_hp=Math.floor(10+this.defense/10),I.hp=Math.round(this.max_hp*e)},x.prototype.resetMultipliers=function(){this.hacking_chance_mult=1,this.hacking_speed_mult=1,this.hacking_money_mult=1,this.hacking_grow_mult=1,this.hacking_mult=1,this.strength_mult=1,this.defense_mult=1,this.dexterity_mult=1,this.agility_mult=1,this.charisma_mult=1,this.hacking_exp_mult=1,this.strength_exp_mult=1,this.defense_exp_mult=1,this.dexterity_exp_mult=1,this.agility_exp_mult=1,this.charisma_exp_mult=1,this.company_rep_mult=1,this.faction_rep_mult=1,this.crime_money_mult=1,this.crime_success_mult=1,this.hacknet_node_money_mult=1,this.hacknet_node_purchase_cost_mult=1,this.hacknet_node_ram_cost_mult=1,this.hacknet_node_core_cost_mult=1,this.hacknet_node_level_cost_mult=1,this.work_money_mult=1,this.bladeburner_max_stamina_mult=1,this.bladeburner_stamina_gain_mult=1,this.bladeburner_analysis_mult=1,this.bladeburner_success_chance_mult=1},x.prototype.hasProgram=function(e){var t=I.getHomeComputer();if(null==t)return!1;for(var n=0;n0?this.intelligence_exp+=e:console.log("Not gaining intelligence experience bc it hasn't been unlocked yet")},x.prototype.queryStatFromString=function(e){var t=e.toLowerCase();return t.includes("hack")?I.hacking_skill:t.includes("str")?I.strength:t.includes("def")?I.defense:t.includes("dex")?I.dexterity:t.includes("agi")?I.agility:t.includes("cha")?I.charisma:t.includes("int")?I.intelligence:void 0},x.prototype.resetWorkStatus=function(){this.workHackExpGainRate=0,this.workStrExpGainRate=0,this.workDefExpGainRate=0,this.workDexExpGainRate=0,this.workAgiExpGainRate=0,this.workChaExpGainRate=0,this.workRepGainRate=0,this.workMoneyGainRate=0,this.workMoneyLossRate=0,this.workHackExpGained=0,this.workStrExpGained=0,this.workDefExpGained=0,this.workDexExpGained=0,this.workAgiExpGained=0,this.workChaExpGained=0,this.workRepGained=0,this.workMoneyGained=0,this.timeWorked=0,this.timeWorkedCreateProgram=0,this.currentWorkFactionName="",this.currentWorkFactionDescription="",this.createProgramName="",this.className="",document.getElementById("work-in-progress-text").innerHTML=""},x.prototype.processWorkEarnings=function(e=1){var t=this.workHackExpGainRate*e,n=this.workStrExpGainRate*e,a=this.workDefExpGainRate*e,i=this.workDexExpGainRate*e,r=this.workAgiExpGainRate*e,o=this.workChaExpGainRate*e;this.gainHackingExp(t),this.gainStrengthExp(n),this.gainDefenseExp(a),this.gainDexterityExp(i),this.gainAgilityExp(r),this.gainCharismaExp(o),this.workHackExpGained+=t,this.workStrExpGained+=n,this.workDefExpGained+=a,this.workDexExpGained+=i,this.workAgiExpGained+=r,this.workChaExpGained+=o,this.workRepGained+=this.workRepGainRate*e,this.workMoneyGained+=this.workMoneyGainRate*e,this.workMoneyGained-=this.workMoneyLossRate*e},x.prototype.startWork=function(){this.resetWorkStatus(),this.isWorking=!0,this.workType=s.a.WorkTypeCompany,this.workHackExpGainRate=this.getWorkHackExpGain(),this.workStrExpGainRate=this.getWorkStrExpGain(),this.workDefExpGainRate=this.getWorkDefExpGain(),this.workDexExpGainRate=this.getWorkDexExpGain(),this.workAgiExpGainRate=this.getWorkAgiExpGain(),this.workChaExpGainRate=this.getWorkChaExpGain(),this.workRepGainRate=this.getWorkRepGain(),this.workMoneyGainRate=this.getWorkMoneyGain(),this.timeNeededToCompleteWork=s.a.MillisecondsPer8Hours;var e=Object(O.clearEventListeners)("work-in-progress-cancel-button");e.innerHTML="Cancel Work",e.addEventListener("click",function(){return I.finishWork(!0),!1}),d.Engine.loadWorkInProgressContent()},x.prototype.work=function(e){var t=!1;if(this.timeWorked+d.Engine._idleSpeed*e>=s.a.MillisecondsPer8Hours&&(t=!0,e=Math.round((s.a.MillisecondsPer8Hours-this.timeWorked)/d.Engine._idleSpeed)),this.timeWorked+=d.Engine._idleSpeed*e,this.workRepGainRate=this.getWorkRepGain(),this.processWorkEarnings(e),t||this.timeWorked>=s.a.MillisecondsPer8Hours)return this.finishWork(!1);var n=o.a[this.companyName],a="0";null!=n&&n instanceof o.b?a=n.playerReputation:console.log("ERROR: Could not find Company: "+this.companyName),document.getElementById("work-in-progress-text").innerHTML="You are currently working as a "+this.companyPosition.positionName+" at "+this.companyName+" (Current Company Reputation: "+Object(S.formatNumber)(a,0)+")

You have been working for "+Object(S.convertTimeMsToTimeElapsedString)(this.timeWorked)+"

You have earned:

$"+Object(S.formatNumber)(this.workMoneyGained,2)+" ($"+Object(S.formatNumber)(this.workMoneyGainRate*T,2)+" / sec)

"+Object(S.formatNumber)(this.workRepGained,4)+" ("+Object(S.formatNumber)(this.workRepGainRate*T,4)+" / sec) reputation for this company

"+Object(S.formatNumber)(this.workHackExpGained,4)+" ("+Object(S.formatNumber)(this.workHackExpGainRate*T,4)+" / sec) hacking exp

"+Object(S.formatNumber)(this.workStrExpGained,4)+" ("+Object(S.formatNumber)(this.workStrExpGainRate*T,4)+" / sec) strength exp
"+Object(S.formatNumber)(this.workDefExpGained,4)+" ("+Object(S.formatNumber)(this.workDefExpGainRate*T,4)+" / sec) defense exp
"+Object(S.formatNumber)(this.workDexExpGained,4)+" ("+Object(S.formatNumber)(this.workDexExpGainRate*T,4)+" / sec) dexterity exp
"+Object(S.formatNumber)(this.workAgiExpGained,4)+" ("+Object(S.formatNumber)(this.workAgiExpGainRate*T,4)+" / sec) agility exp

"+Object(S.formatNumber)(this.workChaExpGained,4)+" ("+Object(S.formatNumber)(this.workChaExpGainRate*T,4)+" / sec) charisma exp

You will automatically finish after working for 8 hours. You can cancel earlier if you wish, but you will only gain half of the reputation you've earned so far."},x.prototype.finishWork=function(e,t=!1){e&&(this.workRepGained/=2),o.a[this.companyName].playerReputation+=this.workRepGained,this.gainMoney(this.workMoneyGained),this.updateSkillLevels();var n="You earned a total of:
$"+Object(S.formatNumber)(this.workMoneyGained,2)+"
"+Object(S.formatNumber)(this.workRepGained,4)+" reputation for the company
"+Object(S.formatNumber)(this.workHackExpGained,4)+" hacking exp
"+Object(S.formatNumber)(this.workStrExpGained,4)+" strength exp
"+Object(S.formatNumber)(this.workDefExpGained,4)+" defense exp
"+Object(S.formatNumber)(this.workDexExpGained,4)+" dexterity exp
"+Object(S.formatNumber)(this.workAgiExpGained,4)+" agility exp
"+Object(S.formatNumber)(this.workChaExpGained,4)+" charisma exp
";if(n=e?"You worked a short shift of "+Object(S.convertTimeMsToTimeElapsedString)(this.timeWorked)+"

Since you cancelled your work early, you only gained half of the reputation you earned.

"+n:"You worked a full shift of 8 hours!

"+n,t||Object(E.dialogBoxCreate)(n),document.getElementById("mainmenu-container").style.visibility="visible",this.isWorking=!1,d.Engine.loadLocationContent(),t){var a="You worked a short shift of "+Object(S.convertTimeMsToTimeElapsedString)(this.timeWorked)+" and earned $"+Object(S.formatNumber)(this.workMoneyGained,2)+", "+Object(S.formatNumber)(this.workRepGained,4)+" reputation, "+Object(S.formatNumber)(this.workHackExpGained,4)+" hacking exp, "+Object(S.formatNumber)(this.workStrExpGained,4)+" strength exp, "+Object(S.formatNumber)(this.workDefExpGained,4)+" defense exp, "+Object(S.formatNumber)(this.workDexExpGained,4)+" dexterity exp, "+Object(S.formatNumber)(this.workAgiExpGained,4)+" agility exp, and "+Object(S.formatNumber)(this.workChaExpGained,4)+" charisma exp.";return this.resetWorkStatus(),a}this.resetWorkStatus()},x.prototype.startWorkPartTime=function(){this.resetWorkStatus(),this.isWorking=!0,this.workType=s.a.WorkTypeCompanyPartTime,this.workHackExpGainRate=this.getWorkHackExpGain(),this.workStrExpGainRate=this.getWorkStrExpGain(),this.workDefExpGainRate=this.getWorkDefExpGain(),this.workDexExpGainRate=this.getWorkDexExpGain(),this.workAgiExpGainRate=this.getWorkAgiExpGain(),this.workChaExpGainRate=this.getWorkChaExpGain(),this.workRepGainRate=this.getWorkRepGain(),this.workMoneyGainRate=this.getWorkMoneyGain(),this.timeNeededToCompleteWork=s.a.MillisecondsPer8Hours;var e=Object(O.clearEventListeners)("work-in-progress-cancel-button");e.innerHTML="Stop Working",e.addEventListener("click",function(){return I.finishWorkPartTime(),!1}),d.Engine.loadWorkInProgressContent()},x.prototype.workPartTime=function(e){var t=!1;if(this.timeWorked+d.Engine._idleSpeed*e>=s.a.MillisecondsPer8Hours&&(t=!0,e=Math.round((s.a.MillisecondsPer8Hours-this.timeWorked)/d.Engine._idleSpeed)),this.timeWorked+=d.Engine._idleSpeed*e,this.workRepGainRate=this.getWorkRepGain(),this.processWorkEarnings(e),t||this.timeWorked>=s.a.MillisecondsPer8Hours)return this.finishWorkPartTime();var n=o.a[this.companyName],a="0";null!=n&&n instanceof o.b?a=n.playerReputation:console.log("ERROR: Could not find Company: "+this.companyName),document.getElementById("work-in-progress-text").innerHTML="You are currently working as a "+this.companyPosition.positionName+" at "+I.companyName+" (Current Company Reputation: "+Object(S.formatNumber)(a,0)+")

You have been working for "+Object(S.convertTimeMsToTimeElapsedString)(this.timeWorked)+"

You have earned:

$"+Object(S.formatNumber)(this.workMoneyGained,2)+" ($"+Object(S.formatNumber)(this.workMoneyGainRate*T,2)+" / sec)

"+Object(S.formatNumber)(this.workRepGained,4)+" ("+Object(S.formatNumber)(this.workRepGainRate*T,4)+" / sec) reputation for this company

"+Object(S.formatNumber)(this.workHackExpGained,4)+" ("+Object(S.formatNumber)(this.workHackExpGainRate*T,4)+" / sec) hacking exp

"+Object(S.formatNumber)(this.workStrExpGained,4)+" ("+Object(S.formatNumber)(this.workStrExpGainRate*T,4)+" / sec) strength exp
"+Object(S.formatNumber)(this.workDefExpGained,4)+" ("+Object(S.formatNumber)(this.workDefExpGainRate*T,4)+" / sec) defense exp
"+Object(S.formatNumber)(this.workDexExpGained,4)+" ("+Object(S.formatNumber)(this.workDexExpGainRate*T,4)+" / sec) dexterity exp
"+Object(S.formatNumber)(this.workAgiExpGained,4)+" ("+Object(S.formatNumber)(this.workAgiExpGainRate*T,4)+" / sec) agility exp

"+Object(S.formatNumber)(this.workChaExpGained,4)+" ("+Object(S.formatNumber)(this.workChaExpGainRate*T,4)+" / sec) charisma exp

You will automatically finish after working for 8 hours. You can cancel earlier if you wish,
and there will be no penalty because this is a part-time job."},x.prototype.finishWorkPartTime=function(e=!1){o.a[this.companyName].playerReputation+=this.workRepGained,this.gainMoney(this.workMoneyGained),this.updateSkillLevels();var t="You earned a total of:
$"+Object(S.formatNumber)(this.workMoneyGained,2)+"
"+Object(S.formatNumber)(this.workRepGained,4)+" reputation for the company
"+Object(S.formatNumber)(this.workHackExpGained,4)+" hacking exp
"+Object(S.formatNumber)(this.workStrExpGained,4)+" strength exp
"+Object(S.formatNumber)(this.workDefExpGained,4)+" defense exp
"+Object(S.formatNumber)(this.workDexExpGained,4)+" dexterity exp
"+Object(S.formatNumber)(this.workAgiExpGained,4)+" agility exp
"+Object(S.formatNumber)(this.workChaExpGained,4)+" charisma exp
";if(t="You worked for "+Object(S.convertTimeMsToTimeElapsedString)(this.timeWorked)+"

"+t,e||Object(E.dialogBoxCreate)(t),document.getElementById("mainmenu-container").style.visibility="visible",this.isWorking=!1,d.Engine.loadLocationContent(),e){var n="You worked for "+Object(S.convertTimeMsToTimeElapsedString)(this.timeWorked)+" and earned a total of $"+Object(S.formatNumber)(this.workMoneyGained,2)+", "+Object(S.formatNumber)(this.workRepGained,4)+" reputation, "+Object(S.formatNumber)(this.workHackExpGained,4)+" hacking exp, "+Object(S.formatNumber)(this.workStrExpGained,4)+" strength exp, "+Object(S.formatNumber)(this.workDefExpGained,4)+" defense exp, "+Object(S.formatNumber)(this.workDexExpGained,4)+" dexterity exp, "+Object(S.formatNumber)(this.workAgiExpGained,4)+" agility exp, and "+Object(S.formatNumber)(this.workChaExpGained,4)+" charisma exp";return this.resetWorkStatus(),n}this.resetWorkStatus()},x.prototype.startFactionWork=function(e){var t=1+e.favor/100;isNaN(t)&&(t=1),this.workRepGainRate*=t,this.workRepGainRate*=i.BitNodeMultipliers.FactionWorkRepGain,this.isWorking=!0,this.workType=s.a.WorkTypeFaction,this.currentWorkFactionName=e.name,this.timeNeededToCompleteWork=s.a.MillisecondsPer20Hours;var n=Object(O.clearEventListeners)("work-in-progress-cancel-button");n.innerHTML="Stop Faction Work",n.addEventListener("click",function(){return I.finishFactionWork(!0),!1}),d.Engine.loadWorkInProgressContent()},x.prototype.startFactionHackWork=function(e){this.resetWorkStatus(),this.workHackExpGainRate=.15*this.hacking_exp_mult*i.BitNodeMultipliers.FactionWorkExpGain,this.workRepGainRate=this.workRepGainRate=(this.hacking_skill+this.intelligence)/s.a.MaxSkillLevel*this.faction_rep_mult,this.factionWorkType=s.a.FactionWorkHacking,this.currentWorkFactionDescription="carrying out hacking contracts",this.startFactionWork(e)},x.prototype.startFactionFieldWork=function(e){this.resetWorkStatus(),this.workHackExpGainRate=.1*this.hacking_exp_mult*i.BitNodeMultipliers.FactionWorkExpGain,this.workStrExpGainRate=.1*this.strength_exp_mult*i.BitNodeMultipliers.FactionWorkExpGain,this.workDefExpGainRate=.1*this.defense_exp_mult*i.BitNodeMultipliers.FactionWorkExpGain,this.workDexExpGainRate=.1*this.dexterity_exp_mult*i.BitNodeMultipliers.FactionWorkExpGain,this.workAgiExpGainRate=.1*this.agility_exp_mult*i.BitNodeMultipliers.FactionWorkExpGain,this.workChaExpGainRate=.1*this.charisma_exp_mult*i.BitNodeMultipliers.FactionWorkExpGain,this.workRepGainRate=this.getFactionFieldWorkRepGain(),this.factionWorkType=s.a.FactionWorkField,this.currentWorkFactionDescription="carrying out field missions",this.startFactionWork(e)},x.prototype.startFactionSecurityWork=function(e){this.resetWorkStatus(),this.workHackExpGainRate=.05*this.hacking_exp_mult*i.BitNodeMultipliers.FactionWorkExpGain,this.workStrExpGainRate=.15*this.strength_exp_mult*i.BitNodeMultipliers.FactionWorkExpGain,this.workDefExpGainRate=.15*this.defense_exp_mult*i.BitNodeMultipliers.FactionWorkExpGain,this.workDexExpGainRate=.15*this.dexterity_exp_mult*i.BitNodeMultipliers.FactionWorkExpGain,this.workAgiExpGainRate=.15*this.agility_exp_mult*i.BitNodeMultipliers.FactionWorkExpGain,this.workChaExpGainRate=0*this.charisma_exp_mult*i.BitNodeMultipliers.FactionWorkExpGain,this.workRepGainRate=this.getFactionSecurityWorkRepGain(),this.factionWorkType=s.a.FactionWorkSecurity,this.currentWorkFactionDescription="performing security detail",this.startFactionWork(e)},x.prototype.workForFaction=function(e){var t=h.b[this.currentWorkFactionName];switch(this.factionWorkType){case s.a.FactionWorkHacking:this.workRepGainRate=(this.hacking_skill+this.intelligence)/s.a.MaxSkillLevel*this.faction_rep_mult;break;case s.a.FactionWorkField:this.workRepGainRate=this.getFactionFieldWorkRepGain();break;case s.a.FactionWorkSecurity:this.workRepGainRate=this.getFactionSecurityWorkRepGain()}var n=1+t.favor/100;isNaN(n)&&(n=1),this.workRepGainRate*=n,this.workRepGainRate*=i.BitNodeMultipliers.FactionWorkRepGain;var a=!1;if(this.timeWorked+d.Engine._idleSpeed*e>=s.a.MillisecondsPer20Hours&&(a=!0,e=Math.round((s.a.MillisecondsPer20Hours-this.timeWorked)/d.Engine._idleSpeed)),this.timeWorked+=d.Engine._idleSpeed*e,this.processWorkEarnings(e),a||this.timeWorked>=s.a.MillisecondsPer20Hours)return this.finishFactionWork(!1);document.getElementById("work-in-progress-text").innerHTML="You are currently "+this.currentWorkFactionDescription+" for your faction "+t.name+" (Current Faction Reputation: "+Object(S.formatNumber)(t.playerReputation,0)+").
You have been doing this for "+Object(S.convertTimeMsToTimeElapsedString)(this.timeWorked)+"

You have earned:

$"+Object(S.formatNumber)(this.workMoneyGained,2)+" ("+Object(S.formatNumber)(this.workMoneyGainRate*T,2)+" / sec)

"+Object(S.formatNumber)(this.workRepGained,4)+" ("+Object(S.formatNumber)(this.workRepGainRate*T,4)+" / sec) reputation for this faction

"+Object(S.formatNumber)(this.workHackExpGained,4)+" ("+Object(S.formatNumber)(this.workHackExpGainRate*T,4)+" / sec) hacking exp

"+Object(S.formatNumber)(this.workStrExpGained,4)+" ("+Object(S.formatNumber)(this.workStrExpGainRate*T,4)+" / sec) strength exp
"+Object(S.formatNumber)(this.workDefExpGained,4)+" ("+Object(S.formatNumber)(this.workDefExpGainRate*T,4)+" / sec) defense exp
"+Object(S.formatNumber)(this.workDexExpGained,4)+" ("+Object(S.formatNumber)(this.workDexExpGainRate*T,4)+" / sec) dexterity exp
"+Object(S.formatNumber)(this.workAgiExpGained,4)+" ("+Object(S.formatNumber)(this.workAgiExpGainRate*T,4)+" / sec) agility exp

"+Object(S.formatNumber)(this.workChaExpGained,4)+" ("+Object(S.formatNumber)(this.workChaExpGainRate*T,4)+" / sec) charisma exp

You will automatically finish after working for 20 hours. You can cancel earlier if you wish.
There is no penalty for cancelling earlier."},x.prototype.finishFactionWork=function(e,t=!1){var n=h.b[this.currentWorkFactionName];n.playerReputation+=this.workRepGained,this.gainMoney(this.workMoneyGained),this.updateSkillLevels();var a="You worked for your faction "+n.name+" for a total of "+Object(S.convertTimeMsToTimeElapsedString)(this.timeWorked)+"

You earned a total of:
$"+Object(S.formatNumber)(this.workMoneyGained,2)+"
"+Object(S.formatNumber)(this.workRepGained,4)+" reputation for the faction
"+Object(S.formatNumber)(this.workHackExpGained,4)+" hacking exp
"+Object(S.formatNumber)(this.workStrExpGained,4)+" strength exp
"+Object(S.formatNumber)(this.workDefExpGained,4)+" defense exp
"+Object(S.formatNumber)(this.workDexExpGained,4)+" dexterity exp
"+Object(S.formatNumber)(this.workAgiExpGained,4)+" agility exp
"+Object(S.formatNumber)(this.workChaExpGained,4)+" charisma exp
";if(t||Object(E.dialogBoxCreate)(a),document.getElementById("mainmenu-container").style.visibility="visible",this.isWorking=!1,d.Engine.loadFactionContent(),Object(h.c)(n.name),t){var i="You worked for your faction "+n.name+" for a total of "+Object(S.convertTimeMsToTimeElapsedString)(this.timeWorked)+". You earned "+Object(S.formatNumber)(this.workRepGained,4)+" rep, "+Object(S.formatNumber)(this.workHackExpGained,4)+" hacking exp, "+Object(S.formatNumber)(this.workStrExpGained,4)+" str exp, "+Object(S.formatNumber)(this.workDefExpGained,4)+" def exp, "+Object(S.formatNumber)(this.workDexExpGained,4)+" dex exp, "+Object(S.formatNumber)(this.workAgiExpGained,4)+" agi exp, and "+Object(S.formatNumber)(this.workChaExpGained,4)+" cha exp.";return this.resetWorkStatus(),i}this.resetWorkStatus()},x.prototype.getWorkMoneyGain=function(){var e=1,t=o.a[this.companyName];return g.d&&(e=1+t.favor/100),this.companyPosition.baseSalary*t.salaryMultiplier*this.work_money_mult*i.BitNodeMultipliers.CompanyWorkMoney*e},x.prototype.getWorkHackExpGain=function(){var e=o.a[this.companyName];return this.companyPosition.hackingExpGain*e.expMultiplier*this.hacking_exp_mult*i.BitNodeMultipliers.CompanyWorkExpGain},x.prototype.getWorkStrExpGain=function(){var e=o.a[this.companyName];return this.companyPosition.strengthExpGain*e.expMultiplier*this.strength_exp_mult*i.BitNodeMultipliers.CompanyWorkExpGain},x.prototype.getWorkDefExpGain=function(){var e=o.a[this.companyName];return this.companyPosition.defenseExpGain*e.expMultiplier*this.defense_exp_mult*i.BitNodeMultipliers.CompanyWorkExpGain},x.prototype.getWorkDexExpGain=function(){var e=o.a[this.companyName];return this.companyPosition.dexterityExpGain*e.expMultiplier*this.dexterity_exp_mult*i.BitNodeMultipliers.CompanyWorkExpGain},x.prototype.getWorkAgiExpGain=function(){var e=o.a[this.companyName];return this.companyPosition.agilityExpGain*e.expMultiplier*this.agility_exp_mult*i.BitNodeMultipliers.CompanyWorkExpGain},x.prototype.getWorkChaExpGain=function(){var e=o.a[this.companyName];return this.companyPosition.charismaExpGain*e.expMultiplier*this.charisma_exp_mult*i.BitNodeMultipliers.CompanyWorkExpGain},x.prototype.getWorkRepGain=function(){var e=o.a[this.companyName],t=this.companyPosition.calculateJobPerformance(this.hacking_skill,this.strength,this.defense,this.dexterity,this.agility,this.charisma);t+=this.intelligence/s.a.MaxSkillLevel;var n=1+e.favor/100;return isNaN(n)&&(n=1),t*this.company_rep_mult*n},x.prototype.getFactionSecurityWorkRepGain=function(){return.9*(this.hacking_skill/s.a.MaxSkillLevel+this.strength/s.a.MaxSkillLevel+this.defense/s.a.MaxSkillLevel+this.dexterity/s.a.MaxSkillLevel+this.agility/s.a.MaxSkillLevel)/4.5*this.faction_rep_mult},x.prototype.getFactionFieldWorkRepGain=function(){return.9*(this.hacking_skill/s.a.MaxSkillLevel+this.strength/s.a.MaxSkillLevel+this.defense/s.a.MaxSkillLevel+this.dexterity/s.a.MaxSkillLevel+this.agility/s.a.MaxSkillLevel+this.charisma/s.a.MaxSkillLevel+this.intelligence/s.a.MaxSkillLevel)/5.5*this.faction_rep_mult},x.prototype.startCreateProgramWork=function(e,t,n){this.resetWorkStatus(),this.isWorking=!0,this.workType=s.a.WorkTypeCreateProgram,this.createProgramReqLvl=n,this.timeNeededToCompleteWork=t;for(var a=0;a=100)break;this.timeWorkedCreateProgram=o/100*this.timeNeededToCompleteWork,this.getHomeComputer().programs.splice(a,1)}}this.createProgramName=e;var l=Object(O.clearEventListeners)("work-in-progress-cancel-button");l.innerHTML="Cancel work on creating program",l.addEventListener("click",function(){return I.finishCreateProgramWork(!0),!1}),d.Engine.loadWorkInProgressContent()},x.prototype.createProgramWork=function(e){var t=this.createProgramReqLvl,n=this.hacking_skill/t;n=1+(n-1)/5,this.timeWorked+=d.Engine._idleSpeed*e,this.timeWorkedCreateProgram+=d.Engine._idleSpeed*e*n;var a=this.createProgramName;this.timeWorkedCreateProgram>=this.timeNeededToCompleteWork&&this.finishCreateProgramWork(!1),document.getElementById("work-in-progress-text").innerHTML="You are currently working on coding "+a+".

You have been working for "+Object(S.convertTimeMsToTimeElapsedString)(this.timeWorked)+"

The program is "+(this.timeWorkedCreateProgram/this.timeNeededToCompleteWork*100).toFixed(2)+"% complete.
If you cancel, your work will be saved and you can come back to complete the program later."},x.prototype.finishCreateProgramWork=function(e,t=!1){var n=this.createProgramName;if(!1===e)Object(E.dialogBoxCreate)("You've finished creating "+n+"!
The new program can be found on your home computer."),this.getHomeComputer().programs.push(n);else{var a=n+"-"+(Math.floor(this.timeWorkedCreateProgram/this.timeNeededToCompleteWork*1e4)/100).toString()+"%-INC";this.getHomeComputer().programs.push(a)}e||this.gainIntelligenceExp(this.createProgramReqLvl/s.a.IntelligenceProgramBaseExpGain),document.getElementById("mainmenu-container").style.visibility="visible",this.isWorking=!1,d.Engine.loadTerminalContent(),this.resetWorkStatus()},x.prototype.startClass=function(e,t,n){this.resetWorkStatus(),this.isWorking=!0,this.workType=s.a.WorkTypeStudyClass,this.className=n;var a=1e3/d.Engine._idleSpeed,r=0,o=0,l=0,c=0,u=0,h=0,p=0;switch(n){case s.a.ClassStudyComputerScience:o=.5*t/a;break;case s.a.ClassDataStructures:r=s.a.ClassDataStructuresBaseCost*e/a,o=1*t/a;break;case s.a.ClassNetworks:r=s.a.ClassNetworksBaseCost*e/a,o=2*t/a;break;case s.a.ClassAlgorithms:r=s.a.ClassAlgorithmsBaseCost*e/a,o=4*t/a;break;case s.a.ClassManagement:r=s.a.ClassManagementBaseCost*e/a,p=2*t/a;break;case s.a.ClassLeadership:r=s.a.ClassLeadershipBaseCost*e/a,p=4*t/a;break;case s.a.ClassGymStrength:r=s.a.ClassGymBaseCost*e/a,l=1*t/a;break;case s.a.ClassGymDefense:r=s.a.ClassGymBaseCost*e/a,c=1*t/a;break;case s.a.ClassGymDexterity:r=s.a.ClassGymBaseCost*e/a,u=1*t/a;break;case s.a.ClassGymAgility:r=s.a.ClassGymBaseCost*e/a,h=1*t/a;break;default:throw new Error("ERR: Invalid/unrecognized class name")}this.workMoneyLossRate=r,this.workHackExpGainRate=o*this.hacking_exp_mult*i.BitNodeMultipliers.ClassGymExpGain,this.workStrExpGainRate=l*this.strength_exp_mult*i.BitNodeMultipliers.ClassGymExpGain,this.workDefExpGainRate=c*this.defense_exp_mult*i.BitNodeMultipliers.ClassGymExpGain,this.workDexExpGainRate=u*this.dexterity_exp_mult*i.BitNodeMultipliers.ClassGymExpGain,this.workAgiExpGainRate=h*this.agility_exp_mult*i.BitNodeMultipliers.ClassGymExpGain,this.workChaExpGainRate=p*this.charisma_exp_mult*i.BitNodeMultipliers.ClassGymExpGain;var m=Object(O.clearEventListeners)("work-in-progress-cancel-button");n==s.a.ClassGymStrength||n==s.a.ClassGymDefense||n==s.a.ClassGymDexterity||n==s.a.ClassGymAgility?m.innerHTML="Stop training at gym":m.innerHTML="Stop taking course",m.addEventListener("click",function(){return I.finishClass(),!1}),d.Engine.loadWorkInProgressContent()},x.prototype.takeClass=function(e){this.timeWorked+=d.Engine._idleSpeed*e;var t=this.className;this.processWorkEarnings(e),document.getElementById("work-in-progress-text").innerHTML="You have been "+t+" for "+Object(S.convertTimeMsToTimeElapsedString)(this.timeWorked)+"

This has cost you:
$"+Object(S.formatNumber)(this.workMoneyGained,2)+" ($"+Object(S.formatNumber)(this.workMoneyLossRate*T,2)+" / sec)

You have gained:
"+Object(S.formatNumber)(this.workHackExpGained,4)+" ("+Object(S.formatNumber)(this.workHackExpGainRate*T,4)+" / sec) hacking exp
"+Object(S.formatNumber)(this.workStrExpGained,4)+" ("+Object(S.formatNumber)(this.workStrExpGainRate*T,4)+" / sec) strength exp
"+Object(S.formatNumber)(this.workDefExpGained,4)+" ("+Object(S.formatNumber)(this.workDefExpGainRate*T,4)+" / sec) defense exp
"+Object(S.formatNumber)(this.workDexExpGained,4)+" ("+Object(S.formatNumber)(this.workDexExpGainRate*T,4)+" / sec) dexterity exp
"+Object(S.formatNumber)(this.workAgiExpGained,4)+" ("+Object(S.formatNumber)(this.workAgiExpGainRate*T,4)+" / sec) agility exp
"+Object(S.formatNumber)(this.workChaExpGained,4)+" ("+Object(S.formatNumber)(this.workChaExpGainRate*T,4)+" / sec) charisma exp
You may cancel at any time"},x.prototype.finishClass=function(e=!1){if(this.gainIntelligenceExp(s.a.IntelligenceClassBaseExpGain*Math.round(this.timeWorked/1e3)),this.workMoneyGained>0)throw new Error("ERR: Somehow gained money while taking class");this.loseMoney(-1*this.workMoneyGained),this.updateSkillLevels();var t="After "+this.className+" for "+Object(S.convertTimeMsToTimeElapsedString)(this.timeWorked)+",
you spent a total of $"+Object(S.formatNumber)(-1*this.workMoneyGained,2)+".

You earned a total of:
"+Object(S.formatNumber)(this.workHackExpGained,4)+" hacking exp
"+Object(S.formatNumber)(this.workStrExpGained,4)+" strength exp
"+Object(S.formatNumber)(this.workDefExpGained,4)+" defense exp
"+Object(S.formatNumber)(this.workDexExpGained,4)+" dexterity exp
"+Object(S.formatNumber)(this.workAgiExpGained,4)+" agility exp
"+Object(S.formatNumber)(this.workChaExpGained,4)+" charisma exp
";if(e||Object(E.dialogBoxCreate)(t),document.getElementById("mainmenu-container").style.visibility="visible",this.isWorking=!1,d.Engine.loadLocationContent(),e){var n="After "+this.className+" for "+Object(S.convertTimeMsToTimeElapsedString)(this.timeWorked)+", you spent a total of $"+Object(S.formatNumber)(-1*this.workMoneyGained,2)+". You earned a total of: "+Object(S.formatNumber)(this.workHackExpGained,3)+" hacking exp, "+Object(S.formatNumber)(this.workStrExpGained,3)+" strength exp, "+Object(S.formatNumber)(this.workDefExpGained,3)+" defense exp, "+Object(S.formatNumber)(this.workDexExpGained,3)+" dexterity exp, "+Object(S.formatNumber)(this.workAgiExpGained,3)+" agility exp, and "+Object(S.formatNumber)(this.workChaExpGained,3)+" charisma exp";return this.resetWorkStatus(),n}this.resetWorkStatus()},x.prototype.startCrime=function(e,t,n,a,r,o,l,c,u=null){this.resetWorkStatus(),this.isWorking=!0,this.workType=s.a.WorkTypeCrime,u&&u.workerscript&&(this.committingCrimeThruSingFn=!0,this.singFnCrimeWorkerScript=u.workerscript),this.workHackExpGained=e*this.hacking_exp_mult*i.BitNodeMultipliers.CrimeExpGain,this.workStrExpGained=t*this.strength_exp_mult*i.BitNodeMultipliers.CrimeExpGain,this.workDefExpGained=n*this.defense_exp_mult*i.BitNodeMultipliers.CrimeExpGain,this.workDexExpGained=a*this.dexterity_exp_mult*i.BitNodeMultipliers.CrimeExpGain,this.workAgiExpGained=r*this.agility_exp_mult*i.BitNodeMultipliers.CrimeExpGain,this.workChaExpGained=o*this.charisma_exp_mult*i.BitNodeMultipliers.CrimeExpGain,this.workMoneyGained=l*this.crime_money_mult*i.BitNodeMultipliers.CrimeMoney,this.timeNeededToCompleteWork=c;var h=Object(O.clearEventListeners)("work-in-progress-cancel-button");h.innerHTML="Cancel crime",h.addEventListener("click",function(){return I.finishCrime(!0),!1}),d.Engine.loadWorkInProgressContent()},x.prototype.commitCrime=function(e){if(this.timeWorked+=d.Engine._idleSpeed*e,this.timeWorked>=this.timeNeededToCompleteWork)this.finishCrime(!1);else{var t=Math.round(this.timeWorked/this.timeNeededToCompleteWork*100),n=Math.round(t/5);n<0&&(n=0),n>20&&(n=20);var a="["+Array(n+1).join("|")+Array(20-n+1).join(" ")+"]";document.getElementById("work-in-progress-text").innerHTML="You are attempting to "+this.crimeType+".
Time remaining: "+Object(S.convertTimeMsToTimeElapsedString)(this.timeNeededToCompleteWork-this.timeWorked)+"
"+a.replace(/ /g," ")}},x.prototype.finishCrime=function(e){if(!e){if(Object(u.b)(this.crimeType,this.workMoneyGained)){let e=null;for(const t in u.a)if(u.a[t].type==this.crimeType){e=u.a[t];break}null==e&&(console.log(this.crimeType),Object(E.dialogBoxCreate)("ERR: Unrecognized crime type. This is probably a bug please contact the developer")),this.karma-=e.karma,this.numPeopleKilled+=e.kills,e.intelligence_exp>0&&this.gainIntelligenceExp(e.intelligence_exp),this.workHackExpGained*=2,this.workStrExpGained*=2,this.workDefExpGained*=2,this.workDexExpGained*=2,this.workAgiExpGained*=2,this.workChaExpGained*=2,this.committingCrimeThruSingFn?null==this.singFnCrimeWorkerScript.disableLogs.ALL&&null==this.singFnCrimeWorkerScript.disableLogs.commitCrime&&this.singFnCrimeWorkerScript.scriptRef.log("Crime successful! Gained "+k.a.format(this.workMoneyGained,"$0.000a")+", "+Object(S.formatNumber)(this.workHackExpGained,3)+" hack exp, "+Object(S.formatNumber)(this.workStrExpGained,3)+" str exp, "+Object(S.formatNumber)(this.workDefExpGained,3)+" def exp, "+Object(S.formatNumber)(this.workDexExpGained,3)+" dex exp, "+Object(S.formatNumber)(this.workAgiExpGained,3)+" agi exp, "+Object(S.formatNumber)(this.workChaExpGained,3)+" cha exp."):Object(E.dialogBoxCreate)("Crime successful!

You gained:
$"+Object(S.formatNumber)(this.workMoneyGained,2)+"
"+Object(S.formatNumber)(this.workHackExpGained,4)+" hacking experience
"+Object(S.formatNumber)(this.workStrExpGained,4)+" strength experience
"+Object(S.formatNumber)(this.workDefExpGained,4)+" defense experience
"+Object(S.formatNumber)(this.workDexExpGained,4)+" dexterity experience
"+Object(S.formatNumber)(this.workAgiExpGained,4)+" agility experience
"+Object(S.formatNumber)(this.workChaExpGained,4)+" charisma experience")}else this.workHackExpGained/=2,this.workStrExpGained/=2,this.workDefExpGained/=2,this.workDexExpGained/=2,this.workAgiExpGained/=2,this.workChaExpGained/=2,this.committingCrimeThruSingFn?null==this.singFnCrimeWorkerScript.disableLogs.ALL&&null==this.singFnCrimeWorkerScript.disableLogs.commitCrime&&this.singFnCrimeWorkerScript.scriptRef.log("Crime failed! Gained "+Object(S.formatNumber)(this.workHackExpGained,3)+" hack exp, "+Object(S.formatNumber)(this.workStrExpGained,3)+" str exp, "+Object(S.formatNumber)(this.workDefExpGained,3)+" def exp, "+Object(S.formatNumber)(this.workDexExpGained,3)+" dex exp, "+Object(S.formatNumber)(this.workAgiExpGained,3)+" agi exp, "+Object(S.formatNumber)(this.workChaExpGained,3)+" cha exp."):Object(E.dialogBoxCreate)("Crime failed!

You gained:
"+Object(S.formatNumber)(this.workHackExpGained,4)+" hacking experience
"+Object(S.formatNumber)(this.workStrExpGained,4)+" strength experience
"+Object(S.formatNumber)(this.workDefExpGained,4)+" defense experience
"+Object(S.formatNumber)(this.workDexExpGained,4)+" dexterity experience
"+Object(S.formatNumber)(this.workAgiExpGained,4)+" agility experience
"+Object(S.formatNumber)(this.workChaExpGained,4)+" charisma experience");this.gainHackingExp(this.workHackExpGained),this.gainStrengthExp(this.workStrExpGained),this.gainDefenseExp(this.workDefExpGained),this.gainDexterityExp(this.workDexExpGained),this.gainAgilityExp(this.workAgiExpGained),this.gainCharismaExp(this.workChaExpGained)}this.committingCrimeThruSingFn=!1,this.singFnCrimeWorkerScript=null,document.getElementById("mainmenu-container").style.visibility="visible",this.isWorking=!1,this.resetWorkStatus(),d.Engine.loadLocationContent()},x.prototype.singularityStopWork=function(){if(!this.isWorking)return"";var e;switch(this.workType){case s.a.WorkTypeStudyClass:e=this.finishClass(!0);break;case s.a.WorkTypeCompany:e=this.finishWork(!0,!0);break;case s.a.WorkTypeCompanyPartTime:e=this.finishWorkPartTime(!0);break;case s.a.WorkTypeFaction:e=this.finishFactionWork(!0,!0);break;case s.a.WorkTypeCreateProgram:e=this.finishCreateProgramWork(!0,!0);break;case s.a.WorkTypeCrime:e=this.finishCrime(!0);break;default:return console.log("ERROR: Unrecognized work type"),""}return e},x.prototype.takeDamage=function(e){return this.hp-=e,this.hp<=0&&(this.hospitalize(),!0)},x.prototype.hospitalize=function(){!1===f.Settings.SuppressHospitalizationPopup&&Object(E.dialogBoxCreate)("You were in critical condition! You were taken to the hospital where luckily they were able to save your life. You were charged "+k.a.format(this.max_hp*s.a.HospitalCostPerHp,"$0.000a")),this.loseMoney(this.max_hp*s.a.HospitalCostPerHp),this.hp=this.max_hp},x.prototype.applyForJob=function(e,t=!1){var n="";""!=this.companyName&&(n=o.a[this.companyName]);var a="";""!=this.companyPosition&&(a=this.companyPosition.positionName);var i=o.a[this.location];if(t&&!(i instanceof o.b))return"ERROR: Invalid company name: "+this.location+". applyToCompany() failed";var r=e;if(!this.isQualified(i,r)){var s=Object(o.f)(i,r);return!t&&void Object(E.dialogBoxCreate)("Unforunately, you do not qualify for this position
"+s)}for(;;){d.Engine.Debug&&console.log("Determining qualification for next Company Position");var l=Object(o.g)(r);if(null==l)break;if(!i.hasPosition(l))break;if(!this.isQualified(i,l))break;r=l}if(""==n||n.companyName!=i.companyName||r.positionName!=a){var c=!1,u="";if(""!=n&&n.companyName!=i.companyName&&(c=!0,u=n.companyName,i.playerReputation-=1e3,i.playerReputation<0&&(i.playerReputation=0)),this.companyName=i.companyName,this.companyPosition=r,!1===this.firstJobRecvd&&(this.firstJobRecvd=!0,document.getElementById("job-tab").style.display="list-item",document.getElementById("world-menu-header").click(),document.getElementById("world-menu-header").click()),c){if(t)return!0;Object(E.dialogBoxCreate)("Congratulations! You were offered a new job at "+this.companyName+" as a "+r.positionName+"!
You lost 1000 reputation at your old company "+u+" because you left.")}else{if(t)return!0;Object(E.dialogBoxCreate)("Congratulations! You were offered a new job at "+this.companyName+" as a "+r.positionName+"!")}d.Engine.loadLocationContent()}else{var h=Object(o.g)(r);if(null==h){if(t)return!1;Object(E.dialogBoxCreate)("You are already at the highest position for your field! No promotion available")}else if(i.hasPosition(h)){if(t)return!1;s=Object(o.f)(i,h);Object(E.dialogBoxCreate)("Unfortunately, you do not qualify for a promotion
"+s)}else{if(t)return!1;Object(E.dialogBoxCreate)("You are already at the highest position for your field! No promotion available")}}},x.prototype.getNextCompanyPosition=function(e,t){var n=null;return""!=this.companyName&&(n=o.a[this.companyName]),null==n||n.companyName!=e.companyName?t:this.companyPosition.isSoftwareJob()&&t.isSoftwareJob()||this.companyPosition.isITJob()&&t.isITJob()||this.companyPosition.isBusinessJob()&&t.isBusinessJob()||this.companyPosition.isSecurityEngineerJob()&&t.isSecurityEngineerJob()||this.companyPosition.isNetworkEngineerJob()&&t.isNetworkEngineerJob()||this.companyPosition.isSecurityJob()&&t.isSecurityJob()||this.companyPosition.isAgentJob()&&t.isAgentJob()||this.companyPosition.isSoftwareConsultantJob()&&t.isSoftwareConsultantJob()||this.companyPosition.isBusinessConsultantJob()&&t.isBusinessConsultantJob()||this.companyPosition.isPartTimeJob()&&t.isPartTimeJob()?Object(o.g)(this.companyPosition):t},x.prototype.applyForSoftwareJob=function(e=!1){return this.applyForJob(o.d.SoftwareIntern,e)},x.prototype.applyForSoftwareConsultantJob=function(e=!1){return this.applyForJob(o.d.SoftwareConsultant,e)},x.prototype.applyForItJob=function(e=!1){return this.applyForJob(o.d.ITIntern,e)},x.prototype.applyForSecurityEngineerJob=function(e=!1){var t=o.a[this.location];return this.isQualified(t,o.d.SecurityEngineer)?this.applyForJob(o.d.SecurityEngineer,e):!e&&void Object(E.dialogBoxCreate)("Unforunately, you do not qualify for this position")},x.prototype.applyForNetworkEngineerJob=function(e=!1){var t=o.a[this.location];return this.isQualified(t,o.d.NetworkEngineer)?this.applyForJob(o.d.NetworkEngineer,e):!e&&void Object(E.dialogBoxCreate)("Unforunately, you do not qualify for this position")},x.prototype.applyForBusinessJob=function(e=!1){return this.applyForJob(o.d.BusinessIntern,e)},x.prototype.applyForBusinessConsultantJob=function(e=!1){return this.applyForJob(o.d.BusinessConsultant,e)},x.prototype.applyForSecurityJob=function(e=!1){return this.applyForJob(o.d.SecurityGuard,e)},x.prototype.applyForAgentJob=function(e=!1){var t=o.a[this.location];return this.isQualified(t,o.d.FieldAgent)?this.applyForJob(o.d.FieldAgent,e):!e&&void Object(E.dialogBoxCreate)("Unforunately, you do not qualify for this position")},x.prototype.applyForEmployeeJob=function(e=!1){var t=o.a[this.location];if(this.isQualified(t,o.d.Employee)){if(!1===this.firstJobRecvd&&(this.firstJobRecvd=!0,document.getElementById("job-tab").style.display="list-item",document.getElementById("world-menu-header").click(),document.getElementById("world-menu-header").click()),this.companyName=t.companyName,this.companyPosition=o.d.Employee,e)return!0;Object(E.dialogBoxCreate)("Congratulations, you are now employed at "+this.companyName),d.Engine.loadLocationContent()}else{if(e)return!1;Object(E.dialogBoxCreate)("Unforunately, you do not qualify for this position")}},x.prototype.applyForPartTimeEmployeeJob=function(e=!1){var t=o.a[this.location];if(this.isQualified(t,o.d.PartTimeEmployee)){if(!1===this.firstJobRecvd&&(this.firstJobRecvd=!0,document.getElementById("job-tab").style.display="list-item",document.getElementById("world-menu-header").click(),document.getElementById("world-menu-header").click()),this.companyName=t.companyName,this.companyPosition=o.d.PartTimeEmployee,e)return!0;Object(E.dialogBoxCreate)("Congratulations, you are now employed part-time at "+this.companyName),d.Engine.loadLocationContent()}else{if(e)return!1;Object(E.dialogBoxCreate)("Unforunately, you do not qualify for this position")}},x.prototype.applyForWaiterJob=function(e=!1){var t=o.a[this.location];if(this.isQualified(t,o.d.Waiter)){if(!1===this.firstJobRecvd&&(this.firstJobRecvd=!0,document.getElementById("job-tab").style.display="list-item",document.getElementById("world-menu-header").click(),document.getElementById("world-menu-header").click()),this.companyName=t.companyName,this.companyPosition=o.d.Waiter,e)return!0;Object(E.dialogBoxCreate)("Congratulations, you are now employed as a waiter at "+this.companyName),d.Engine.loadLocationContent()}else{if(e)return!1;Object(E.dialogBoxCreate)("Unforunately, you do not qualify for this position")}},x.prototype.applyForPartTimeWaiterJob=function(e=!1){var t=o.a[this.location];if(this.isQualified(t,o.d.PartTimeWaiter)){if(!1===this.firstJobRecvd&&(this.firstJobRecvd=!0,document.getElementById("job-tab").style.display="list-item",document.getElementById("world-menu-header").click(),document.getElementById("world-menu-header").click()),this.companyName=t.companyName,this.companyPosition=o.d.PartTimeWaiter,e)return!0;Object(E.dialogBoxCreate)("Congratulations, you are now employed as a part-time waiter at "+this.companyName),d.Engine.loadLocationContent()}else{if(e)return!1;Object(E.dialogBoxCreate)("Unforunately, you do not qualify for this position")}},x.prototype.isQualified=function(e,t){var n=e.jobStatReqOffset,a=t.requiredHacking>0?t.requiredHacking+n:0,i=t.requiredStrength>0?t.requiredStrength+n:0,r=t.requiredDefense>0?t.requiredDefense+n:0,o=t.requiredDexterity>0?t.requiredDexterity+n:0,s=t.requiredDexterity>0?t.requiredDexterity+n:0,l=t.requiredCharisma>0?t.requiredCharisma+n:0;return this.hacking_skill>=a&&this.strength>=i&&this.defense>=r&&this.dexterity>=o&&this.agility>=s&&this.charisma>=l&&e.playerReputation>=t.requiredReputation},x.prototype.reapplyAllAugmentations=function(e=!0){console.log("Re-applying augmentations"),e&&this.resetMultipliers();for(let e=0;e=30&&this.money.gte(15e10)&&this.hacking_skill>=1500&&this.strength>=1200&&this.defense>=1200&&this.dexterity>=1200&&this.agility>=1200&&e.push(i);var r=h.b.Daedalus;!r.isBanned&&!r.isMember&&!r.alreadyInvited&&t>=30&&this.money.gte(1e11)&&(this.hacking_skill>=2500||this.strength>=1500&&this.defense>=1500&&this.dexterity>=1500&&this.agility>=1500)&&e.push(r);var l=h.b["The Covenant"];!l.isBanned&&!l.isMember&&!l.alreadyInvited&&t>=30&&this.money.gte(75e9)&&this.hacking_skill>=850&&this.strength>=850&&this.defense>=850&&this.dexterity>=850&&this.agility>=850&&e.push(l);var c=h.b.ECorp;!c.isBanned&&!c.isMember&&!c.alreadyInvited&&this.companyName==m.Locations.AevumECorp&&a>=s.a.CorpFactionRepRequirement&&e.push(c);var u=h.b.MegaCorp;!u.isBanned&&!u.isMember&&!u.alreadyInvited&&this.companyName==m.Locations.Sector12MegaCorp&&a>=s.a.CorpFactionRepRequirement&&e.push(u);var d=h.b["Bachman & Associates"];!d.isBanned&&!d.isMember&&!d.alreadyInvited&&this.companyName==m.Locations.AevumBachmanAndAssociates&&a>=s.a.CorpFactionRepRequirement&&e.push(d);var p=h.b["Blade Industries"];!p.isBanned&&!p.isMember&&!p.alreadyInvited&&this.companyName==m.Locations.Sector12BladeIndustries&&a>=s.a.CorpFactionRepRequirement&&e.push(p);var g=h.b.NWO;!g.isBanned&&!g.isMember&&!g.alreadyInvited&&this.companyName==m.Locations.VolhavenNWO&&a>=s.a.CorpFactionRepRequirement&&e.push(g);var f=h.b["Clarke Incorporated"];!f.isBanned&&!f.isMember&&!f.alreadyInvited&&this.companyName==m.Locations.AevumClarkeIncorporated&&a>=s.a.CorpFactionRepRequirement&&e.push(f);var v=h.b["OmniTek Incorporated"];!v.isBanned&&!v.isMember&&!v.alreadyInvited&&this.companyName==m.Locations.VolhavenOmniTekIncorporated&&a>=s.a.CorpFactionRepRequirement&&e.push(v);var _=h.b["Four Sigma"];!_.isBanned&&!_.isMember&&!_.alreadyInvited&&this.companyName==m.Locations.Sector12FourSigma&&a>=s.a.CorpFactionRepRequirement&&e.push(_);var k=h.b["KuaiGong International"];!k.isBanned&&!k.isMember&&!k.alreadyInvited&&this.companyName==m.Locations.ChongqingKuaiGongInternational&&a>=s.a.CorpFactionRepRequirement&&e.push(k);var E=h.b["Fulcrum Secret Technologies"],O=y.b[b.a[b.b.FulcrumSecretTechnologies]];null==O?console.log("ERROR: Could not find Fulcrum Secret Technologies Server"):!E.isBanned&&!E.isMember&&!E.alreadyInvited&&O.manuallyHacked&&this.companyName==m.Locations.AevumFulcrumTechnologies&&a>=25e4&&e.push(E);var C=h.b.BitRunners,w=this.getHomeComputer(),S=y.b[b.a[b.b.BitRunnersServer]];null==S?console.log("ERROR: Could not find BitRunners Server"):!C.isBanned&&!C.isMember&&S.manuallyHacked&&!C.alreadyInvited&&this.hacking_skill>=500&&w.maxRam>=128&&e.push(C);var T=h.b["The Black Hand"],x=y.b[b.a[b.b.TheBlackHandServer]];null==x?console.log("ERROR: Could not find The Black Hand Server"):!T.isBanned&&!T.isMember&&x.manuallyHacked&&!T.alreadyInvited&&this.hacking_skill>=350&&w.maxRam>=64&&e.push(T);var R=h.b.NiteSec,I=y.b[b.a[b.b.NiteSecServer]];null==I?console.log("ERROR: Could not find NiteSec Server"):!R.isBanned&&!R.isMember&&I.manuallyHacked&&!R.alreadyInvited&&this.hacking_skill>=200&&w.maxRam>=32&&e.push(R);var N=h.b.Chongqing;N.isBanned||N.isMember||N.alreadyInvited||!this.money.gte(2e7)||this.city!=m.Locations.Chongqing||e.push(N);var M=h.b["Sector-12"];M.isBanned||M.isMember||M.alreadyInvited||!this.money.gte(15e6)||this.city!=m.Locations.Sector12||e.push(M);var P=h.b["New Tokyo"];P.isBanned||P.isMember||P.alreadyInvited||!this.money.gte(2e7)||this.city!=m.Locations.NewTokyo||e.push(P);var A=h.b.Aevum;A.isBanned||A.isMember||A.alreadyInvited||!this.money.gte(4e7)||this.city!=m.Locations.Aevum||e.push(A);var L=h.b.Ishima;L.isBanned||L.isMember||L.alreadyInvited||!this.money.gte(3e7)||this.city!=m.Locations.Ishima||e.push(L);var B=h.b.Volhaven;B.isBanned||B.isMember||B.alreadyInvited||!this.money.gte(5e7)||this.city!=m.Locations.Volhaven||e.push(B);var j=h.b["Speakers for the Dead"];!j.isBanned&&!j.isMember&&!j.alreadyInvited&&this.hacking_skill>=100&&this.strength>=300&&this.defense>=300&&this.dexterity>=300&&this.agility>=300&&this.numPeopleKilled>=30&&this.karma<=-45&&this.companyName!=m.Locations.Sector12CIA&&this.companyName!=m.Locations.Sector12NSA&&e.push(j);var D=h.b["The Dark Army"];!D.isBanned&&!D.isMember&&!D.alreadyInvited&&this.hacking_skill>=300&&this.strength>=300&&this.defense>=300&&this.dexterity>=300&&this.agility>=300&&this.city==m.Locations.Chongqing&&this.numPeopleKilled>=5&&this.karma<=-45&&this.companyName!=m.Locations.Sector12CIA&&this.companyName!=m.Locations.Sector12NSA&&e.push(D);var F=h.b["The Syndicate"];!F.isBanned&&!F.isMember&&!F.alreadyInvited&&this.hacking_skill>=200&&this.strength>=200&&this.defense>=200&&this.dexterity>=200&&this.agility>=200&&(this.city==m.Locations.Aevum||this.city==m.Locations.Sector12)&&this.money.gte(1e7)&&this.karma<=-90&&this.companyName!=m.Locations.Sector12CIA&&this.companyName!=m.Locations.Sector12NSA&&e.push(F);var H=h.b.Silhouette;H.isBanned||H.isMember||H.alreadyInvited||this.companyPosition.positionName!=o.d.CTO.positionName&&this.companyPosition.positionName!=o.d.CFO.positionName&&this.companyPosition.positionName!=o.d.CEO.positionName||!this.money.gte(15e6)||!(this.karma<=-22)||e.push(H);var W=h.b.Tetrads;!W.isBanned&&!W.isMember&&!W.alreadyInvited&&(this.city==m.Locations.Chongqing||this.city==m.Locations.NewTokyo||this.city==m.Locations.Ishima)&&this.strength>=75&&this.defense>=75&&this.dexterity>=75&&this.agility>=75&&this.karma<=-18&&e.push(W);var G=h.b["Slum Snakes"];!G.isBanned&&!G.isMember&&!G.alreadyInvited&&this.strength>=30&&this.defense>=30&&this.dexterity>=30&&this.agility>=30&&this.karma<=-9&&this.money.gte(1e6)&&e.push(G);for(var U=h.b.Netburners,K=0,q=0,Y=0,V=0;V=80&&K>=8&&q>=4&&Y>=100&&e.push(U);var J=h.b["Tian Di Hui"];J.isBanned||J.isMember||J.alreadyInvited||!this.money.gte(1e6)||!(this.hacking_skill>=50)||this.city!=m.Locations.Chongqing&&this.city!=m.Locations.NewTokyo&&this.city!=m.Locations.Ishima||e.push(J);var z=h.b.CyberSec,$=y.b[b.a[b.b.CyberSecServer]];return null==$?console.log("ERROR: Could not find CyberSec Server"):!z.isBanned&&!z.isMember&&$.manuallyHacked&&!z.alreadyInvited&&this.hacking_skill>=50&&e.push(z),e},x.prototype.inGang=function(){return null!=this.gang&&void 0!=this.gang&&this.gang instanceof p.b},x.prototype.startGang=function(e,t){this.gang=new p.b(e,t)},x.prototype.setBitNodeNumber=function(e){this.bitNodeN=e},x.prototype.queueAugmentation=function(e){for(const t in this.queuedAugmentations)if(this.queuedAugmentations[t].name==e)return void console.log("tried to queue "+e+" twice, this may be a bug");for(const t in this.augmentations)if(this.augmentations[t].name==e)return void console.log("tried to queue "+e+" but we already have that aug");this.firstAugPurchased=!0,this.queuedAugmentations.push(new a.d(e))},x.prototype.gainCodingContractReward=function(e,t=1){if(null==e||null==e.type||null==e)return"No reward for this contract";switch(e.type){case r.CodingContractRewardType.FactionReputation:if(null==e.name||!(h.b[e.name]instanceof h.a))return e.type=r.CodingContractRewardType.FactionReputationAll,this.gainCodingContractReward(e);var n=s.a.CodingContractBaseFactionRepGain*t;return h.b[e.name].playerReputation+=n,`Gained ${n} faction reputation for ${e.name}`;case r.CodingContractRewardType.FactionReputationAll:const l=s.a.CodingContractBaseFactionRepGain*t,c=["Bladeburners"];var a=this.factions.slice();if(0==(a=a.filter(e=>!c.includes(e))).length)return e.type=r.CodingContractRewardType.Money,this.gainCodingContractReward(e,t);const u=Math.floor(l/a.length);for(const e of a)h.b[e]instanceof h.a&&(h.b[e].playerReputation+=u);return`Gained ${u} reputation for each of the following factions: ${a.toString()}`;case r.CodingContractRewardType.CompanyReputation:if(null==e.name||!(o.a[e.name]instanceof o.b))return e.type=r.CodingContractRewardType.FactionReputationAll,this.gainCodingContractReward(e);n=s.a.CodingContractBaseCompanyRepGain*t;return o.a[e.name].playerReputation+=n,`Gained ${n} company reputation for ${e.name}`;case r.CodingContractRewardType.Money:default:var i=s.a.CodingContractBaseMoneyGain*t;return this.gainMoney(i),`Gained ${k.a.format(i,"$0.000a")}`}},x.prototype.toJSON=function(){return Object(w.Generic_toJSON)("PlayerObject",this)},x.fromJSON=function(e){return Object(w.Generic_fromJSON)(x,e.data)},w.Reviver.constructors.PlayerObject=x;let I=new x},function(e,t,n){"use strict";n.d(t,"a",function(){return a});let a={Version:"0.40.3",MaxSkillLevel:975,MilliPerCycle:200,CorpFactionRepRequirement:2e5,BaseCostFor1GBOfRamHome:32e3,BaseCostFor1GBOfRamServer:55e3,BaseCostFor1GBOfRamHacknetNode:3e4,TravelCost:2e5,BaseCostForHacknetNode:1e3,BaseCostForHacknetNodeCore:5e5,HacknetNodeMoneyGainPerLevel:1.6,HacknetNodePurchaseNextMult:1.85,HacknetNodeUpgradeLevelMult:1.04,HacknetNodeUpgradeRamMult:1.28,HacknetNodeUpgradeCoreMult:1.48,HacknetNodeMaxLevel:200,HacknetNodeMaxRam:64,HacknetNodeMaxCores:16,BaseFavorToDonate:150,DonateMoneyToRepDivisor:1e6,FactionReputationToFavorBase:500,FactionReputationToFavorMult:1.02,CompanyReputationToFavorBase:500,CompanyReputationToFavorMult:1.02,NeuroFluxGovernorLevelMult:1.14,ScriptBaseRamCost:1.6,ScriptDomRamCost:100,ScriptWhileRamCost:0,ScriptForRamCost:0,ScriptIfRamCost:0,ScriptHackRamCost:.1,ScriptGrowRamCost:.15,ScriptWeakenRamCost:.15,ScriptScanRamCost:.2,ScriptPortProgramRamCost:.05,ScriptRunRamCost:1,ScriptExecRamCost:1.3,ScriptSpawnRamCost:2,ScriptScpRamCost:.6,ScriptKillRamCost:.5,ScriptHasRootAccessRamCost:.05,ScriptGetHostnameRamCost:.05,ScriptGetHackingLevelRamCost:.05,ScriptGetMultipliersRamCost:4,ScriptGetServerRamCost:.1,ScriptFileExistsRamCost:.1,ScriptIsRunningRamCost:.1,ScriptHacknetNodesRamCost:4,ScriptHNUpgLevelRamCost:.4,ScriptHNUpgRamRamCost:.6,ScriptHNUpgCoreRamCost:.8,ScriptGetStockRamCost:2,ScriptBuySellStockRamCost:2.5,ScriptGetPurchaseServerRamCost:.25,ScriptPurchaseServerRamCost:2.25,ScriptGetPurchasedServerLimit:.05,ScriptGetPurchasedServerMaxRam:.05,ScriptRoundRamCost:.05,ScriptReadWriteRamCost:1,ScriptArbScriptRamCost:1,ScriptGetScriptRamCost:.1,ScriptGetHackTimeRamCost:.05,ScriptGetFavorToDonate:.1,ScriptCodingContractBaseRamCost:10,ScriptSingularityFn1RamCost:1,ScriptSingularityFn2RamCost:2,ScriptSingularityFn3RamCost:3,ScriptBladeburnerApiBaseRamCost:4,NumNetscriptPorts:20,ServerBaseGrowthRate:1.03,ServerMaxGrowthRate:1.0035,ServerFortifyAmount:.002,ServerWeakenAmount:.05,PurchasedServerLimit:25,PurchasedServerMaxRam:1048576,AugmentationCostMultiplier:5,AugmentationRepMultiplier:2.5,MultipleAugMultiplier:1.9,TorRouterCost:2e5,InfiltrationBribeBaseAmount:1e5,InfiltrationMoneyValue:5e3,InfiltrationRepValue:1.4,WSEAccountCost:2e8,TIXAPICost:5e9,MarketData4SCost:1e9,MarketDataTixApi4SCost:2e10,StockMarketCommission:1e5,HospitalCostPerHp:1e5,IntelligenceCrimeWeight:.05,IntelligenceInfiltrationWeight:.1,IntelligenceCrimeBaseExpGain:.001,IntelligenceProgramBaseExpGain:500,IntelligenceTerminalHackBaseExpGain:200,IntelligenceSingFnBaseExpGain:.002,IntelligenceClassBaseExpGain:1e-6,IntelligenceHackingMissionBaseExpGain:.03,HackingMissionRepToDiffConversion:1e4,HackingMissionRepToRewardConversion:7,HackingMissionSpamTimeIncrease:25e3,HackingMissionTransferAttackIncrease:1.05,HackingMissionMiscDefenseIncrease:1.05,HackingMissionDifficultyToHacking:135,HackingMissionHowToPlay:"Hacking missions are a minigame that, if won, will reward you with faction reputation.

In this game you control a set of Nodes and use them to try and defeat an enemy. Your Nodes are colored blue, while the enemy's are red. There are also other nodes on the map colored gray that initially belong to neither you nor the enemy. The goal of the game is to capture all of the enemy's Database nodes within the time limit. If you fail to do this, you will lose.

Each Node has three stats: Attack, Defense, and HP. There are five different actions that a Node can take:

Attack - Targets an enemy Node and lowers its HP. The effectiveness is determined by the owner's Attack, the Player's hacking level, and the enemy's defense.

Scan - Targets an enemy Node and lowers its Defense. The effectiveness is determined by the owner's Attack, the Player's hacking level, and the enemy's defense.

Weaken - Targets an enemy Node and lowers its Attack. The effectiveness is determined by the owner's Attack, the Player's hacking level, and the enemy's defense.

Fortify - Raises the Node's Defense. The effectiveness is determined by your hacking level.

Overflow - Raises the Node's Attack but lowers its Defense. The effectiveness is determined by your hacking level.

Note that when determining the effectiveness of the above actions, the TOTAL Attack or Defense of the team is used, not just the Attack/Defense of the individual Node that is performing the action.

To capture a Node, you must lower its HP down to 0.

There are six different types of Nodes:

CPU Core - These are your main Nodes that are used to perform actions. Capable of performing every action

Firewall - Nodes with high defense. These Nodes can 'Fortify'

Database - A special type of Node. The player's objective is to conquer all of the enemy's Database Nodes within the time limit. These Nodes cannot perform any actions

Spam - Conquering one of these Nodes will slow the enemy's trace, giving the player additional time to complete the mission. These Nodes cannot perform any actions

Transfer - Conquering one of these nodes will increase the Attack of all of your CPU Cores by a small fixed percentage. These Nodes are capable of performing every action except the 'Attack' action

Shield - Nodes with high defense. These Nodes can 'Fortify'

To assign an action to a Node, you must first select one of your Nodes. This can be done by simply clicking on it. Double-clicking a node will select all of your Nodes of the same type (e.g. select all CPU Core Nodes or all Transfer Nodes). Note that only Nodes that can perform actions (CPU Core, Transfer, Shield, Firewall) can be selected. Selected Nodes will be denoted with a white highlight. After selecting a Node or multiple Nodes, select its action using the Action Buttons near the top of the screen. Every action also has a corresponding keyboard shortcut.

For certain actions such as attacking, scanning, and weakening, the Node performing the action must have a target. To target another node, simply click-and-drag from the 'source' Node to a target. A Node can only have one target, and you can target any Node that is adjacent to one of your Nodes (immediately above, below, or to the side. NOT diagonal). Furthermore, only CPU Cores and Transfer Nodes can target, since they are the only ones that can perform the related actions. To remove a target, you can simply click on the line that represents the connection between one of your Nodes and its target. Alternatively, you can select the 'source' Node and click the 'Drop Connection' button, or press 'd'.

Other Notes:

-Whenever a miscellenaous Node (not owned by the player or enemy) is conquered, the defense of all remaining miscellaneous Nodes that are not actively being targeted will increase by a fixed percentage.

-Whenever a Node is conquered, its stats are significantly reduced

-Miscellaneous Nodes slowly raise their defense over time

-Nodes slowly regenerate health over time.",GangRespectToReputationRatio:2,MaximumGangMembers:20,GangRecruitCostMultiplier:2,GangTerritoryUpdateTimer:150,MillisecondsPer20Hours:72e6,GameCyclesPer20Hours:36e4,MillisecondsPer10Hours:36e6,GameCyclesPer10Hours:18e4,MillisecondsPer8Hours:288e5,GameCyclesPer8Hours:144e3,MillisecondsPer4Hours:144e5,GameCyclesPer4Hours:72e3,MillisecondsPer2Hours:72e5,GameCyclesPer2Hours:36e3,MillisecondsPerHour:36e5,GameCyclesPerHour:18e3,MillisecondsPerHalfHour:18e5,GameCyclesPerHalfHour:9e3,MillisecondsPerQuarterHour:9e5,GameCyclesPerQuarterHour:4500,MillisecondsPerFiveMinutes:3e5,GameCyclesPerFiveMinutes:1500,FactionWorkHacking:"Faction Hacking Work",FactionWorkField:"Faction Field Work",FactionWorkSecurity:"Faction Security Work",WorkTypeCompany:"Working for Company",WorkTypeCompanyPartTime:"Working for Company part-time",WorkTypeFaction:"Working for Faction",WorkTypeCreateProgram:"Working on Create a Program",WorkTypeStudyClass:"Studying or Taking a class at university",WorkTypeCrime:"Committing a crime",ClassStudyComputerScience:"studying Computer Science",ClassDataStructures:"taking a Data Structures course",ClassNetworks:"taking a Networks course",ClassAlgorithms:"taking an Algorithms course",ClassManagement:"taking a Management course",ClassLeadership:"taking a Leadership course",ClassGymStrength:"training your strength at a gym",ClassGymDefense:"training your defense at a gym",ClassGymDexterity:"training your dexterity at a gym",ClassGymAgility:"training your agility at a gym",ClassDataStructuresBaseCost:40,ClassNetworksBaseCost:80,ClassAlgorithmsBaseCost:320,ClassManagementBaseCost:160,ClassLeadershipBaseCost:320,ClassGymBaseCost:120,CrimeSingFnDivider:2,CrimeShoplift:"shoplift",CrimeRobStore:"rob a store",CrimeMug:"mug someone",CrimeLarceny:"commit larceny",CrimeDrugs:"deal drugs",CrimeBondForgery:"forge corporate bonds",CrimeTraffickArms:"traffick illegal arms",CrimeHomicide:"commit homicide",CrimeGrandTheftAuto:"commit grand theft auto",CrimeKidnap:"kidnap someone for ransom",CrimeAssassination:"assassinate a high-profile target",CrimeHeist:"pull off the ultimate heist",CodingContractBaseFactionRepGain:2500,CodingContractBaseCompanyRepGain:4e3,CodingContractBaseMoneyGain:5e7,TutorialNetworkingText:"Servers are a central part of the game. You start with a single personal server (your home computer) and you can purchase additional servers as you progress through the game. Connecting to other servers and hacking them can be a major source of income and experience. Servers can also be used to run scripts which can automatically hack servers for you.

In order to navigate between machines, use the 'scan' or 'scan-analyze' Terminal command to see all servers that are reachable from your current server. Then, you can use the 'connect [hostname/ip]' command to connect to one of the available machines.

The 'hostname' and 'ifconfig' commands can be used to display the hostname/IP of the server you are currently connected to.",TutorialHackingText:"In the year 2077, currency has become digital and decentralized. People and corporations store their money on servers. By hacking these servers, you can steal their money and gain experience.

Gaining root access


The key to hacking a server is to gain root access to that server. This can be done using the NUKE virus (NUKE.exe). You start the game with a copy of the NUKE virus on your home computer. The NUKE virus attacks the target server's open ports using buffer overflow exploits. When successful, you are granted root administrative access to the machine.

Typically, in order for the NUKE virus to succeed, the target server needs to have at least one of its ports opened. Some servers have no security and will not need any ports opened. Some will have very high security and will need many ports opened. In order to open ports on another server, you will need to run programs that attack the server to open specific ports. These programs can be coded once your hacking skill gets high enough, or they can be purchased if you can find a seller.

In order to determine how many ports need to be opened to successfully NUKE a server, connect to that server and run the 'analyze' command. This will also show you which ports have already been opened.

Once you have enough ports opened and have ran the NUKE virus to gain root access, the server can then be hacked by simply calling the 'hack' command through terminal, or by using a script.

Hacking mechanics


When you execute the hack command, either manually through the terminal or automatically through a script, you attempt to hack the server. This action takes time. The more advanced a server's security is, the more time it will take. Your hacking skill level also affects the hacking time, with a higher hacking skill leading to shorter hacking times. Also, running the hack command manually through terminal is faster than hacking from a script.

Your attempt to hack a server will not always succeed. The chance you have to successfully hack a server is also determined by the server's security and your hacking skill level. Even if your hacking attempt is unsuccessful, you will still gain experience points.

When you successfully hack a server. You steal a certain percentage of that server's total money. This percentage is determined by the server's security and your hacking skill level. The amount of money on a server is not limitless. So, if you constantly hack a server and deplete its money, then you will encounter diminishing returns in your hacking (since you are only hacking a certain percentage). You can increase the amount of money on a server using a script and the grow() function in Netscript.

Server Security


Each server has a security level, typically between 1 and 100. A higher number means the server has stronger security. It is possible for a server to have a security level of 100 or higher, in which case hacking that server will become impossible (0% chance to hack).

As mentioned above, a server's security level is an important factor to consider when hacking. You can check a server's security level using the 'analyze' command, although this only gives an estimate (with 5% uncertainty). You can also check a server's security in a script, using the getServerSecurityLevel(server) function in Netscript. See the Netscript documentation for more details. This function will give you an exact value for a server's security.

Whenever a server is hacked manually or through a script, its security level increases by a small amount. Calling the grow() command in a script will also increase security level of the target server. These actions will make it harder for you to hack the server, and decrease the amount of money you can steal. You can lower a server's security level in a script using the weaken(server) function in Netscript. See the Netscript documentation for more details.

A server has a minimum security level that is equal to one third of its starting security, rounded to the nearest integer. To be more precise:

server.minSecurityLevel = Math.max(1, Math.round(server.startingSecurityLevel / 3))

This means that a server's security will not fall below this value if you are trying to weaken it.",TutorialScriptsText:"Scripts can be used to automate the hacking process. Scripts must be written in the Netscript language. Documentation about the Netscript language can be found in the 'Netscript Programming Language' section of this 'Tutorial' page.

It is highly recommended that you have a basic background in programming to start writing scripts. You by no means need to be an expert. All you need is some familiarity with basic programming constructs like for/while loops, if statements, functions, variables, etc. The Netscript programming language most resembles the Javascript language. Therefore, a good beginner's programming tutorial to read might be this one. Note that while the Netscript language is similar to Javascript, it is not the exact same, so the syntax will vary a little bit.

Running a script requires RAM. The more complex a script is, the more RAM it requires to run. Scripts can be run on any server you have root access to.

Here are some Terminal commands that are useful when working with scripts:

check [script] [args...]
Prints the logs of the script specified by the name and arguments to Terminal. Arguments should be separated by a space. Note that scripts are uniquely identified by their arguments as well as their name. For example, if you ran a script 'foo.script' with the argument 'foodnstuff' then in order to 'check' it you must also add the 'foodnstuff' argument to the check command as so:
check foo.script foodnstuff

free
Shows the current server's RAM usage and availability

kill [script] [args...]
Stops a script that is running with the specified script name and arguments. Arguments should be separated by a space. Note that scripts are uniquely identified by their arguments as well as their name. For example, if you ran a script 'foo.script' with the argument 1 and 2, then just typing 'kill foo.script' will not work. You have to use 'kill foo.script 1 2'.

mem [script] [-t] [n]
Check how much RAM a script requires to run with n threads

nano [script]
Create/Edit a script. The name of the script must end with the '.script' extension

ps
Displays all scripts that are actively running on the current server

rm [script]
Delete a script

run [script] [-t] [n] [args...]
Run a script with n threads and the specified arguments. Each argument should be separated by a space. Both the arguments and thread specification are optional. If neither are specified, then the script will be run single-threaded with no arguments.
Examples:
run foo.script
The command above will run 'foo.script' single-threaded with no arguments.
run foo.script -t 10
The command above will run 'foo.script' with 10 threads and no arguments.
run foo.script foodnstuff sigma-cosmetics 10
The command above will run 'foo.script' single-threaded with three arguments: [foodnstuff, sigma-cosmetics, 10]
run foo.script -t 50 foodnstuff
The command above will run 'foo.script' with 50 threads and a single argument: [foodnstuff]

tail [script] [args...]
Displays the logs of the script specified by the name and arguments. Note that scripts are uniquely identified by their arguments as well as their name. For example, if you ran a script 'foo.script' with the argument 'foodnstuff' then in order to 'tail' it you must also add the 'foodnstuff' argument to the tail command as so:
tail foo.script foodnstuff

top
Displays all active scripts and their RAM usage

Multithreading scripts


Scripts can be multithreaded. A multithreaded script runs the script's code once in each thread. The result is that every call to the hack(), grow(), and weaken() Netscript functions will have its effect multiplied by the number of threads. For example, if a normal single-threaded script is able to hack $10,000, then running the same script with 5 threads would yield $50,000.

When multithreading a script, the total RAM cost can be calculated by simply multiplying the base RAM cost of the script with the number of threads, where the base cost refers to the amount of RAM required to run the script single-threaded. In the terminal, you can run the 'mem [scriptname] -t n' command to see how much RAM a script requires with n threads.

Every method for running a script has an option for making it multihreaded. To run a script with n threads from a Terminal:
run [scriptname] -t n

Using Netscript commands:
run('scriptname.script', n);
exec('scriptname.script, 'targetServer', n);

Notes about how scripts work offline


The scripts that you write and execute are interpreted in Javascript. For this reason, it is not possible for these scripts to run while offline (when the game is closed). It is important to note that for this reason, conditionals such as if/else statements and certain commands such as purchaseHacknetNode() or nuke() will not work while the game is offline.

However, Scripts WILL continue to generate money and hacking exp for you while the game is offline. This offline production is based off of the scripts' production while the game is online.

grow() and weaken() are two Netscript commands that will also be applied when the game is offline, although at a slower rate compared to if the game was open. This is done by having each script keep track of the rate at which the grow() and weaken() commands are called when the game is online. These calculated rates are used to determine how many times these function calls would be made while the game is offline.

Also, note that because of the way the Netscript interpreter is implemented, whenever you reload or re-open the game all of the scripts that you are running will start running from the BEGINNING of the code. The game does not keep track of where exactly the execution of a script is when it saves/loads.


",TutorialNetscriptText:"Netscript is a programming language implemented for this game. There are two versions of Netscript: Netscript 1.0 and Netscript 2.0 (NetscriptJS).

Click here for Bitburner's official Netscript documentation",TutorialTravelingText:"There are six major cities in the world that you are able to travel to:

Aevum
Chongqing
Sector-12
New Tokyo
Ishima
Volhaven

To travel between cities, visit your current city's travel agency through the 'World' page. From the travel agency you can travel to any other city. Doing so costs money.

Each city has its own set of companies and unique locations. Also, certain content is only available to you if you are in certain cities, so get exploring!",TutorialCompaniesText:"Hacking is not the only way to gain money and experience! Located around the world are many different companies which you can work for. By working for a company you can earn money, train your various labor skills, and unlock powerful passive perks.

To apply for a job, visit the company you want to work for through the 'World' menu. The company page will have options that let you apply to positions in the company. There might be several different positions you can apply for, ranging from software engineer to business analyst to security officer.

When you apply for a job, you will get the offer if your stats are high enough. Your first position at a company will be an entry-level position such as 'intern'. Once you get the job, an button will appear on the company page that allows you to work for the company. Click this button to start working.

Working occurs in 8 hour shifts. Once you start working, you will begin earning money, experience, and reputation. The rate at which you money and experience depends on the company and your position. The amount of reputation you gain for your company is based on your job performance, which is affected by your stats. Different positions value different stats. When you are working, you are unable to perform any other actions such as using your terminal or visiting other locations (However, note that any scripts you have running on servers will continue to run as you work!). It is possible to cancel your work shift before the 8 hours is up. However, if you have a full-time job, then cancelling a shift early will result in you gaining only half of the reputation that you had earned up to that point. There are also part-time/consultant jobs available where you will not be penalized if you cancel a work shift early. However, these positions pay less than full-time positions.

As you continue to work at a company, you will gain more and more reputation at that company. When your stats and reputation are high enough, you can get a promotion. You can apply for a promotion on the company page, just like you applied for the job originally. Higher positions at a company provide better salaries and stat gains.

Infiltrating Companies


Many companies have facilities that you can attempt to infiltrate. By infiltrating, you can steal classified company secrets and then sell these for money or for faction reputation. To try and infiltrate a company, visit a company through the 'World' menu. There will be an option that says 'Infiltrate Company'.

When infiltrating a company, you must progress through clearance levels in the facility. Every clearance level has some form of security that you must get past. There are several forms of security, ranging from high-tech security systems to armed guards. For each form of security, there are a variety of options that you can choose to try and bypass the security. Examples include hacking the security, engaging in combat, assassination, or sneaking past the security. The chance to succeed for each option is determined in part by your stats. So, for example, trying to hack the security system relies on your hacking skill, whereas trying to sneak past the security relies on your agility level.

The facility has a 'security level' that affects your chance of success when trying to get past a clearance level. Every time you advance to the next clearance level, the facility's security level will increase by a fixed amount. Furthermore the options you choose and whether you succeed or fail will affect the security level as well. For example, if you try to kill a security guard and fail, the security level will increase by a lot. If you choose to sneak past security and succeed, the security level will not increase at all.

Every 5 clearance levels, you will steal classified company secrets that can be sold for money or faction reputation. However, in order to sell these secrets you must successfully escape the facility using the 'Escape' option. Furthermore, companies have a max clearance level. If you reach the max clearance level you will automatically escape the facility with all of your stolen secrets.

",TutorialFactionsText:"Throughout the game you may receive invitations from factions. There are many different factions, and each faction has different criteria for determining its potential members. Joining a faction and furthering its cause is crucial to progressing in the game and unlocking endgame content.

It is possible to join multiple factions if you receive invitations from them. However, note that joining a faction may prevent you from joining other rival factions.

The 'Factions' link on the menu brings up a list of all factions that you have joined. You can select a Faction on this list to go to that Faction page. This page displays general information about the Faction and also lets you perform work for the faction. Working for a Faction is similar to working for a company except that you don't get paid a salary. You will only earn reputation in your Faction and train your stats. Also, cancelling work early when working for a Faction does NOT result in reduced experience/reputation earnings.

Earning reputation for a Faction unlocks powerful Augmentations. Purchasing and installing these Augmentations will upgrade your abilities. The Augmentations that are available to unlock vary from faction to faction.",TutorialAugmentationsText:"Advances in science and medicine have lead to powerful new technologies that allow people to augment themselves beyond normal human capabilities. There are many different types of Augmentations, ranging from cybernetic to genetic to biological. Acquiring these Augmentations enhances the user's physical and mental faculties.

Because of how powerful these Augmentations are, the technology behind them is kept private and secret by the corporations and organizations that create them. Therefore, the only way for the player to obtain Augmentations is through Factions. After joining a Faction and earning enough reputation in it, you will be able to purchase its Augmentations. Different Factions offer different Augmentations. Augmentations must be purchased in order to be installed, and they are fairly expensive.

When you purchase an Augmentation, the price of purchasing another Augmentation increases by 90%. This multiplier stacks for each Augmentation you purchase. You will not gain the benefits of your purchased Augmentations until you install them. You can choose to install Augmentations through the 'Augmentations' menu tab. Once you install your purchased Augmentations, their costs are reset back to the original price.

Unfortunately, installing Augmentations has side effects. You will lose most of the progress you've made, including your skills, stats, and money. You will have to start over, but you will have all of the Augmentations you have installed to help you progress.

To summarize, here is a list of everything you will LOSE when you install an Augmentation:

Stats/Skills
Money
Scripts on all servers EXCEPT your home computer
Purchased servers
Hacknet Nodes
Company/faction reputation
Jobs and Faction memberships
Programs
Stocks
TOR router

Here is everything you will KEEP when you install an Augmentation:

Every Augmentation you have installed
Scripts on your home computer
RAM and CPU Core Upgrades on your home computer
World Stock Exchange account and TIX API Access
",LatestUpdate:"\n v0.40.4
\n * Added new Coding Contracts mechanic. Solve programming problems to earn rewards\n * (TODO NEEDS DOCUMENTATION) The write() and read() Netscript functions now work on scripts\n * Added bladeburner.getActionRepGain() function to the Netscript Bladeburner API\n * It is now possible to use freely use angled bracket (<, >) and create DOM elements using tprint()\n * The game's theme colors can now be set through the Terminal configuration (.fconf).\n * You can now switch to the old left-hand main menu bar through the Terminal configuration (.fconf)\n "}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=n(34);function i(e){return e.every(a.isString)}t.replaceAt=function(e,t,n){return e.substr(0,t)+n+e.substr(t+n.length)},t.convertTimeMsToTimeElapsedString=function(e){const t=Math.floor(e/1e3),n=Math.floor(t/86400),a=t%86400,i=Math.floor(a/3600),r=a%3600,o=Math.floor(r/60);let s="";return n>0&&(s+=`${n} days `),i>0&&(s+=`${i} hours `),o>0&&(s+=`${o} minutes `),s+=`${r%60} seconds `},t.longestCommonStart=function(e){if(!i(e))return"";if(0===e.length)return"";const t=e.concat().sort(),n=t[0],a=t[t.length-1],r=n.length;let o=0;const s=(e,t)=>e.toUpperCase()===t.toUpperCase();for(;o=0;e--)if(1===n[e].nodeType)return!0;return!1},t.generateRandomString=function(e){let t="";const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";for(let a=0;a{t.delay=null,n()},e),t.delayResolve=n})}function m(e,t,n=null){var a="";null!=n&&(a=" (Line "+y(n,e)+")");return"|"+e.serverIp+"|"+e.name+"|"+t+a}function g(e,t,n,i,o=1){if(null!=(h=Object(r.d)(t,n,e)))return i.scriptRef.log(t+" is already running on "+e.hostname),u.resolve(!1);for(var l=0;lp?(i.scriptRef.log("Cannot run script "+t+"(t="+o+") on "+e.hostname+" because there is not enough available RAM!"),u.resolve(!1)):(null==i.disableLogs.ALL&&null==i.disableLogs.exec&&null==i.disableLogs.run&&null==i.disableLogs.spawn&&i.scriptRef.log("Running script: "+t+" on "+e.hostname+" with "+o+" threads and args: "+Object(s.arrayToString)(n)+". May take a few seconds to start up..."),(h=new r.b(c,n)).threads=o,e.runningScripts.push(h),Object(a.c)(h,e),u.resolve(!0))}return i.scriptRef.log("Could not find script "+t+" on "+e.hostname),u.resolve(!1)}function y(e,t){var n=t.scriptRef.scriptRef.code;try{return((n=n.substring(0,e.start)).match(/\n/g)||[]).length+1}catch(e){return-1}}function f(e){if(!Object(c.isString)(e))return!1;let t=e.split("|");if(4!=t.length)return!1;var n=t[1];return!!Object(l.isValidIPAddress)(n)}u.config({warnings:!1,longStackTraces:!1,cancellation:!0,monitoring:!1})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=n(45);function i(e,t){const n=`${e}`;a.getElementById("terminal-input").insertAdjacentHTML("beforebegin",n),function(){const e=a.getElementById("terminal-container");e.scrollTop=e.scrollHeight}()}t.post=function(e){i(e)},t.hackProgressBarPost=function(e){i(e,"hack-progress-bar")},t.hackProgressPost=function(e){i(e,"hack-progress")}},function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"Engine",function(){return X});var a=n(8),i=n(73),r=n(10),o=n(26),s=n(18),l=n(4),c=n(43),u=n(97),d=n(12),h=n(2),p=n(68),m=n(58),g=n(20),y=n(50),f=n(28),b=n(106),v=n(83),_=n(38),k=n(13),E=n(54),O=n(1),C=n(22),w=n(15),S=n(40),T=n(78),x=n(3),R=n(49),I=n(57),N=n(30),M=n(70),P=n(35),A=n(46),L=n(37),B=n(23),j=n(0),D=n(76),F=n(53),H=n(65),W=n(31),G=n(11),U=n(19),K=n(105),q=n(56),Y=n(27),V=n(24),J=n(47),z=n(32),$=n(16);n(147),n(145),n(143),n(141),n(139),n(137),n(135),n(133),n(131),n(129);e(document).keydown(function(e){if(!0!==U.Settings.DisableHotkeys){if(!(j.a.isWorking||F.b||A.c||v.a))if(84==e.keyCode&&e.altKey)e.preventDefault(),X.loadTerminalContent();else if(e.keyCode===z.KEY.C&&e.altKey)e.preventDefault(),X.loadCharacterContent();else if(e.keyCode===z.KEY.E&&e.altKey)e.preventDefault(),X.loadScriptEditorContent();else if(e.keyCode===z.KEY.S&&e.altKey)e.preventDefault(),X.loadActiveScriptsContent();else if(e.keyCode===z.KEY.H&&e.altKey)e.preventDefault(),X.loadHacknetNodesContent();else if(e.keyCode===z.KEY.W&&e.altKey)e.preventDefault(),X.loadWorldContent();else if(e.keyCode===z.KEY.J&&e.altKey)e.preventDefault(),X.loadJobContent();else if(e.keyCode===z.KEY.R&&e.altKey)e.preventDefault(),X.loadTravelContent();else if(e.keyCode===z.KEY.P&&e.altKey)e.preventDefault(),X.loadCreateProgramContent();else if(e.keyCode===z.KEY.F&&e.altKey){if($.routing.isOn($.Page.Terminal)&&S.a.ENABLE_BASH_HOTKEYS)return;e.preventDefault(),X.loadFactionsContent()}else e.keyCode===z.KEY.A&&e.altKey?(e.preventDefault(),X.loadAugmentationsContent()):e.keyCode===z.KEY.U&&e.altKey&&(e.preventDefault(),X.loadTutorialContent());e.keyCode===z.KEY.O&&e.altKey&&(e.preventDefault(),Object(i.b)())}});const X={version:"",Debug:!0,overview:new b.a,Clickables:{terminalMainMenuButton:null,characterMainMenuButton:null,scriptEditorMainMenuButton:null,activeScriptsMainMenuButton:null,hacknetNodesMainMenuButton:null,worldMainMenuButton:null,travelMainMenuButton:null,jobMainMenuButton:null,createProgramMainMenuButton:null,factionsMainMenuButton:null,augmentationsMainMenuButton:null,tutorialMainMenuButton:null,bladeburnerMenuButton:null,corporationMenuButton:null,gangMenuButton:null,devMainMenuButton:null,saveMainMenuButton:null,deleteMainMenuButton:null,tutorialNetworkingButton:null,tutorialHackingButton:null,tutorialScriptsButton:null,tutorialNetscriptButton:null,tutorialTravelingButton:null,tutorialCompaniesButton:null,tutorialFactionsButton:null,tutorialAugmentationsButton:null,tutorialBackButton:null,devMenuGiveMoney:null,devMenuGiveRam:null,devMenuAugDropdown:null,devMenuAddAug:null,devMenuTriggerBitFlume:null,devMenuFactionDropdown:null,devMenuAddFaction:null,devMenuOpen:null,devMenuMinSecurity:null,devMenuMaxMoney:null,devMenuConnectDropdown:null,devMenuConnect:null,devMenuProgramsDropdown:null,devMenuAddProgram:null,devMenuHackingExp:null,devMenuAddHacking:null,devMenuStrengthExp:null,devMenuAddStrength:null,devMenuDefenseExp:null,devMenuAddDefense:null,devMenuDexterityExp:null,devMenuAddDexterity:null,devMenuAgilityExp:null,devMenuAddAgility:null,devMenuCharismaExp:null,devMenuAddCharisma:null,devMenuIntelligenceExp:null,devMenuAddIntelligence:null,devMenuEnableIntelligence:null,devMenuDisableIntelligence:null,devMenuSFN:null,devMenuSFLvl:null,devMenuAddSF:null},Display:{progress:null,statusText:null,hacking_skill:null,terminalContent:null,characterContent:null,scriptEditorContent:null,activeScriptsContent:null,hacknetNodesContent:null,worldContent:null,createProgramContent:null,factionsContent:null,factionContent:null,factionAugmentationsContent:null,augmentationsContent:null,tutorialContent:null,devMenuContent:null,infiltrationContent:null,stockMarketContent:null,locationContent:null,workInProgressContent:null,redPillContent:null,cinematicTextContent:null,missionContent:null,characterInfo:null},_lastUpdate:(new Date).getTime(),_idleSpeed:200,loadTerminalContent:function(){X.hideAllContent(),X.Display.terminalContent.style.display="block",$.routing.navigateTo($.Page.Terminal),document.getElementById("terminal-menu-link").classList.add("active")},loadCharacterContent:function(){X.hideAllContent(),X.Display.characterContent.style.display="block",X.displayCharacterInfo(),$.routing.navigateTo($.Page.CharacterInfo),document.getElementById("stats-menu-link").classList.add("active")},loadScriptEditorContent:function(e="",t=""){X.hideAllContent(),X.Display.scriptEditorContent.style.display="block";var n=ace.edit("javascript-editor");""!=e&&(document.getElementById("script-editor-filename").value=e,n.setValue(t)),n.focus(),Object(W.h)(),$.routing.navigateTo($.Page.ScriptEditor),document.getElementById("create-script-menu-link").classList.add("active")},loadActiveScriptsContent:function(){X.hideAllContent(),X.Display.activeScriptsContent.style.display="block",Object(m.c)(),$.routing.navigateTo($.Page.ActiveScripts),document.getElementById("active-scripts-menu-link").classList.add("active")},loadHacknetNodesContent:function(){X.hideAllContent(),X.Display.hacknetNodesContent.style.display="block",Object(I.b)(),$.routing.navigateTo($.Page.HacknetNodes),document.getElementById("hacknet-nodes-menu-link").classList.add("active")},loadWorldContent:function(){X.hideAllContent(),X.Display.worldContent.style.display="block",X.displayWorldInfo(),$.routing.navigateTo($.Page.World),document.getElementById("city-menu-link").classList.add("active")},loadCreateProgramContent:function(){X.hideAllContent(),X.Display.createProgramContent.style.display="block",Object(C.b)(),$.routing.navigateTo($.Page.CreateProgram),document.getElementById("create-program-menu-link").classList.add("active")},loadFactionsContent:function(){X.hideAllContent(),X.Display.factionsContent.style.display="block",X.displayFactionsInfo(),$.routing.navigateTo($.Page.Factions),document.getElementById("factions-menu-link").classList.add("active")},loadFactionContent:function(){X.hideAllContent(),X.Display.factionContent.style.display="block",$.routing.navigateTo($.Page.Faction)},loadAugmentationsContent:function(){X.hideAllContent(),X.Display.augmentationsContent.style.display="block",Object(g.g)(),$.routing.navigateTo($.Page.Augmentations),document.getElementById("augmentations-menu-link").classList.add("active")},loadTutorialContent:function(){X.hideAllContent(),X.Display.tutorialContent.style.display="block",X.displayTutorialContent(),$.routing.navigateTo($.Page.Tutorial),document.getElementById("tutorial-menu-link").classList.add("active")},loadDevMenuContent:function(){X.hideAllContent(),X.Display.devMenuContent.style.display="block",X.displayDevMenuContent(),$.routing.navigateTo($.Page.DevMenu),document.getElementById("dev-menu-link").classList.add("active")},loadLocationContent:function(){X.hideAllContent(),X.Display.locationContent.style.display="block",Object(T.a)(),$.routing.navigateTo($.Page.Location)},loadTravelContent:function(){switch(j.a.city){case x.Locations.Aevum:j.a.location=x.Locations.AevumTravelAgency;break;case x.Locations.Chongqing:j.a.location=x.Locations.ChongqingTravelAgency;break;case x.Locations.Sector12:j.a.location=x.Locations.Sector12TravelAgency;break;case x.Locations.NewTokyo:j.a.location=x.Locations.NewTokyoTravelAgency;break;case x.Locations.Ishima:j.a.location=x.Locations.IshimaTravelAgency;break;case x.Locations.Volhaven:j.a.location=x.Locations.VolhavenTravelAgency;break;default:Object(a.dialogBoxCreate)("ERROR: Invalid city. This is a bug please contact game dev")}X.loadLocationContent()},loadJobContent:function(){""!=j.a.companyName?(j.a.location=j.a.companyName,X.loadLocationContent()):Object(a.dialogBoxCreate)("You do not currently have a job! You can visit various companies in the city and try to find a job.")},loadWorkInProgressContent:function(){X.hideAllContent(),document.getElementById("mainmenu-container").style.visibility="hidden",X.Display.workInProgressContent.style.display="block",$.routing.navigateTo($.Page.WorkInProgress)},loadRedPillContent:function(){X.hideAllContent(),document.getElementById("mainmenu-container").style.visibility="hidden",X.Display.redPillContent.style.display="block",$.routing.navigateTo($.Page.RedPill)},loadCinematicTextContent:function(){X.hideAllContent(),document.getElementById("mainmenu-container").style.visibility="hidden",X.Display.cinematicTextContent.style.display="block",$.routing.navigateTo($.Page.CinematicText)},loadInfiltrationContent:function(){X.hideAllContent(),X.Display.infiltrationContent.style.display="block",$.routing.navigateTo($.Page.Infiltration)},loadStockMarketContent:function(){X.hideAllContent(),X.Display.stockMarketContent.style.display="block",$.routing.navigateTo($.Page.StockMarket),Object(V.f)()},loadGangContent:function(){X.hideAllContent(),document.getElementById("gang-container")||j.a.inGang()?(Object(R.d)(),$.routing.navigateTo($.Page.Gang)):(X.loadTerminalContent(),$.routing.navigateTo($.Page.Terminal))},loadMissionContent:function(){X.hideAllContent(),document.getElementById("mainmenu-container").style.visibility="hidden",document.getElementById("character-overview-wrapper").style.visibility="hidden",X.Display.missionContent.style.display="block",$.routing.navigateTo($.Page.Mission)},loadCorporationContent:function(){j.a.corporation instanceof E.a&&(X.hideAllContent(),document.getElementById("character-overview-wrapper").style.visibility="hidden",j.a.corporation.createUI(),$.routing.navigateTo($.Page.Corporation))},loadBladeburnerContent:function(){if(j.a.bladeburner instanceof f.a)try{X.hideAllContent(),$.routing.navigateTo($.Page.Bladeburner),j.a.bladeburner.createContent()}catch(e){Object(c.a)(e)}},hideAllContent:function(){X.Display.terminalContent.style.display="none",X.Display.characterContent.style.display="none",X.Display.scriptEditorContent.style.display="none",X.Display.activeScriptsContent.style.display="none",X.Display.hacknetNodesContent.style.display="none",X.Display.worldContent.style.display="none",X.Display.createProgramContent.style.display="none",X.Display.factionsContent.style.display="none",X.Display.factionContent.style.display="none",X.Display.factionAugmentationsContent.style.display="none",X.Display.augmentationsContent.style.display="none",X.Display.tutorialContent.style.display="none",X.Display.devMenuContent.style.display="none",X.Display.locationContent.style.display="none",X.Display.workInProgressContent.style.display="none",X.Display.redPillContent.style.display="none",X.Display.cinematicTextContent.style.display="none",X.Display.infiltrationContent.style.display="none",X.Display.stockMarketContent.style.display="none",X.Display.missionContent.style.display="none",document.getElementById("gang-container")&&(document.getElementById("gang-container").style.display="none"),j.a.corporation instanceof E.a&&j.a.corporation.clearUI(),j.a.bladeburner instanceof f.a&&j.a.bladeburner.clearContent(),X.aevumLocationsList.style.display="none",X.chongqingLocationsList.style.display="none",X.sector12LocationsList.style.display="none",X.newTokyoLocationsList.style.display="none",X.ishimaLocationsList.style.display="none",X.volhavenLocationsList.style.display="none",document.getElementById("terminal-menu-link").classList.remove("active"),document.getElementById("create-script-menu-link").classList.remove("active"),document.getElementById("active-scripts-menu-link").classList.remove("active"),document.getElementById("create-program-menu-link").classList.remove("active"),document.getElementById("stats-menu-link").classList.remove("active"),document.getElementById("factions-menu-link").classList.remove("active"),document.getElementById("augmentations-menu-link").classList.remove("active"),document.getElementById("hacknet-nodes-menu-link").classList.remove("active"),document.getElementById("city-menu-link").classList.remove("active"),document.getElementById("tutorial-menu-link").classList.remove("active"),document.getElementById("options-menu-link").classList.remove("active"),document.getElementById("dev-menu-link").classList.remove("active"),document.getElementById("bladeburner-menu-link").classList.remove("active"),document.getElementById("corporation-menu-link").classList.remove("active"),document.getElementById("gang-menu-link").classList.remove("active")},displayCharacterOverviewInfo:function(){X.overview.update();const e=document.getElementById("character-overview-save-button");U.Settings.AutosaveInterval?e.classList.remove("flashing-button"):e.classList.add("flashing-button")},displayCharacterInfo:function(){Object(o.removeChildrenFromElement)(X.Display.characterInfo);var e="";""!=j.a.companyPosition&&(e=j.a.companyPosition.positionName);var t="";j.a.intelligence>0&&(t="Intelligence: "+j.a.intelligence.toLocaleString()+"
");let n="";if(j.a.sourceFiles.length>0&&(n="Time played since last Bitnode destroyed: "+Object(h.convertTimeMsToTimeElapsedString)(j.a.playtimeSinceLastBitnode)+"
"),X.Display.characterInfo.appendChild(Object(l.createElement)("pre",{innerHTML:"General

Current City: "+j.a.city+"

Employer: "+j.a.companyName+"
Job Title: "+e+"

Money: $"+Object(h.formatNumber)(j.a.money.toNumber(),2)+"


Stats

Hacking Level: "+j.a.hacking_skill.toLocaleString()+" ("+d.a.format(j.a.hacking_exp,"(0.000a)")+" experience)
Strength: "+j.a.strength.toLocaleString()+" ("+d.a.format(j.a.strength_exp,"(0.000a)")+" experience)
Defense: "+j.a.defense.toLocaleString()+" ("+d.a.format(j.a.defense_exp,"(0.000a)")+" experience)
Dexterity: "+j.a.dexterity.toLocaleString()+" ("+d.a.format(j.a.dexterity_exp,"(0.000a)")+" experience)
Agility: "+j.a.agility.toLocaleString()+" ("+d.a.format(j.a.agility_exp,"(0.000a)")+" experience)
Charisma: "+j.a.charisma.toLocaleString()+" ("+d.a.format(j.a.charisma_exp,"(0.000a)")+" experience)
"+t+"

Multipliers

Hacking Chance multiplier: "+Object(h.formatNumber)(100*j.a.hacking_chance_mult,2)+"%
Hacking Speed multiplier: "+Object(h.formatNumber)(100*j.a.hacking_speed_mult,2)+"%
Hacking Money multiplier: "+Object(h.formatNumber)(100*j.a.hacking_money_mult,2)+"%
Hacking Growth multiplier: "+Object(h.formatNumber)(100*j.a.hacking_grow_mult,2)+"%

Hacking Level multiplier: "+Object(h.formatNumber)(100*j.a.hacking_mult,2)+"%
Hacking Experience multiplier: "+Object(h.formatNumber)(100*j.a.hacking_exp_mult,2)+"%

Strength Level multiplier: "+Object(h.formatNumber)(100*j.a.strength_mult,2)+"%
Strength Experience multiplier: "+Object(h.formatNumber)(100*j.a.strength_exp_mult,2)+"%

Defense Level multiplier: "+Object(h.formatNumber)(100*j.a.defense_mult,2)+"%
Defense Experience multiplier: "+Object(h.formatNumber)(100*j.a.defense_exp_mult,2)+"%

Dexterity Level multiplier: "+Object(h.formatNumber)(100*j.a.dexterity_mult,2)+"%
Dexterity Experience multiplier: "+Object(h.formatNumber)(100*j.a.dexterity_exp_mult,2)+"%

Agility Level multiplier: "+Object(h.formatNumber)(100*j.a.agility_mult,2)+"%
Agility Experience multiplier: "+Object(h.formatNumber)(100*j.a.agility_exp_mult,2)+"%

Charisma Level multiplier: "+Object(h.formatNumber)(100*j.a.charisma_mult,2)+"%
Charisma Experience multiplier: "+Object(h.formatNumber)(100*j.a.charisma_exp_mult,2)+"%

Hacknet Node production multiplier: "+Object(h.formatNumber)(100*j.a.hacknet_node_money_mult,2)+"%
Hacknet Node purchase cost multiplier: "+Object(h.formatNumber)(100*j.a.hacknet_node_purchase_cost_mult,2)+"%
Hacknet Node RAM upgrade cost multiplier: "+Object(h.formatNumber)(100*j.a.hacknet_node_ram_cost_mult,2)+"%
Hacknet Node Core purchase cost multiplier: "+Object(h.formatNumber)(100*j.a.hacknet_node_core_cost_mult,2)+"%
Hacknet Node level upgrade cost multiplier: "+Object(h.formatNumber)(100*j.a.hacknet_node_level_cost_mult,2)+"%

Company reputation gain multiplier: "+Object(h.formatNumber)(100*j.a.company_rep_mult,2)+"%
Faction reputation gain multiplier: "+Object(h.formatNumber)(100*j.a.faction_rep_mult,2)+"%
Salary multiplier: "+Object(h.formatNumber)(100*j.a.work_money_mult,2)+"%
Crime success multiplier: "+Object(h.formatNumber)(100*j.a.crime_success_mult,2)+"%
Crime money multiplier: "+Object(h.formatNumber)(100*j.a.crime_money_mult,2)+"%


Misc

Servers owned: "+j.a.purchasedServers.length+"
Hacknet Nodes owned: "+j.a.hacknetNodes.length+"
Augmentations installed: "+j.a.augmentations.length+"
Time played since last Augmentation: "+Object(h.convertTimeMsToTimeElapsedString)(j.a.playtimeSinceLastAug)+"
"+n+"Time played: "+Object(h.convertTimeMsToTimeElapsedString)(j.a.totalPlaytime)})),0!==j.a.sourceFiles.length){var a="BitNode"+j.a.bitNodeN;X.Display.characterInfo.appendChild(Object(l.createElement)("p",{width:"60%",innerHTML:"
Current BitNode: "+j.a.bitNodeN+" ("+y.a[a].name+")

"})),X.Display.characterInfo.appendChild(Object(l.createElement)("p",{width:"60%",fontSize:"13px",marginLeft:"4%",innerHTML:y.a[a].info}))}},aevumLocationsList:null,chongqingLocationsList:null,sector12LocationsList:null,newTokyoLocationsList:null,ishimaLocationsList:null,volhavenLocationsList:null,displayWorldInfo:function(){X.aevumLocationsList.style.display="none",X.chongqingLocationsList.style.display="none",X.sector12LocationsList.style.display="none",X.newTokyoLocationsList.style.display="none",X.ishimaLocationsList.style.display="none",X.volhavenLocationsList.style.display="none",document.getElementById("world-city-name").innerHTML=j.a.city;document.getElementById("world-city-desc");switch(j.a.city){case x.Locations.Aevum:X.aevumLocationsList.style.display="inline";break;case x.Locations.Chongqing:X.chongqingLocationsList.style.display="inline";break;case x.Locations.Sector12:X.sector12LocationsList.style.display="inline",3!==j.a.bitNodeN&&!L.e||8===j.a.bitNodeN?document.getElementById("sector12-cityhall-li").style.display="none":document.getElementById("sector12-cityhall-li").style.display="block";break;case x.Locations.NewTokyo:X.newTokyoLocationsList.style.display="inline";break;case x.Locations.Ishima:X.ishimaLocationsList.style.display="inline";break;case x.Locations.Volhaven:X.volhavenLocationsList.style.display="inline";break;default:console.log("Invalid city value in Player object!")}var e,t=document.getElementById("generic-locations-list");(t.style.display="inline",Object(o.removeChildrenFromElement)(t),(e=Object(l.createElement)("li")).appendChild(Object(l.createElement)("a",{innerText:"World Stock Exchange",class:"a-link-button",clickListener:()=>(j.a.location=x.Locations.WorldStockExchange,X.loadStockMarketContent(),!1)})),t.appendChild(e),j.a.corporation instanceof E.a&&null==document.getElementById("location-corporation-button"))&&((e=Object(l.createElement)("li")).appendChild(Object(l.createElement)("a",{innerText:j.a.corporation.name,id:"location-corporation-button",class:"a-link-button",clickListener:()=>(X.loadCorporationContent(),!1)})),t.appendChild(e));j.a.bladeburner instanceof f.a&&((e=Object(l.createElement)("li")).appendChild(Object(l.createElement)("a",{innerText:"Bladeburner Headquarters",class:"a-link-button",clickListener:()=>(X.loadBladeburnerContent(),!1)})),t.appendChild(e))},displayFactionsInfo:function(){Object(o.removeChildrenFromElement)(X.Display.factionsContent),X.Display.factionsContent.appendChild(Object(l.createElement)("h1",{innerText:"Factions"})),X.Display.factionsContent.appendChild(Object(l.createElement)("p",{innerText:"Lists all factions you have joined"}));var e=Object(l.createElement)("ul");X.Display.factionsContent.appendChild(Object(l.createElement)("br"));for(var t=0;t(X.loadFactionContent(),Object(w.c)(n),!1)})),e.appendChild(Object(l.createElement)("br"))}();X.Display.factionsContent.appendChild(e),X.Display.factionsContent.appendChild(Object(l.createElement)("br")),X.Display.factionsContent.appendChild(Object(l.createElement)("h1",{innerText:"Outstanding Faction Invitations"})),X.Display.factionsContent.appendChild(Object(l.createElement)("p",{width:"70%",innerText:"Lists factions you have been invited to, as well as factions you have previously rejected. You can accept these faction invitations at any time."}));var n=Object(l.createElement)("ul");for(t=0;t{Object(w.h)(w.b[e]);for(var t=0;t0&&(X._lastUpdate=e-n,j.a.lastUpdate=e-n,X.updateGame(t)),window.requestAnimationFrame(X.idleTimer)},updateGame:function(e=1){var t=e*X._idleSpeed;null==j.a.totalPlaytime&&(j.a.totalPlaytime=0),null==j.a.playtimeSinceLastAug&&(j.a.playtimeSinceLastAug=0),null==j.a.playtimeSinceLastBitnode&&(j.a.playtimeSinceLastBitnode=0),j.a.totalPlaytime+=t,j.a.playtimeSinceLastAug+=t,j.a.playtimeSinceLastBitnode+=t,!0===J.a.actionStarted&&(X._totalActionTime=J.a.actionTime,X._actionTimeLeft=J.a.actionTime,X._actionInProgress=!0,X._actionProgressBarCount=1,X._actionProgressStr="[ ]",X._actionTimeStr="Time left: ",J.a.actionStarted=!1),j.a.isWorking&&(j.a.workType==O.a.WorkTypeFaction?j.a.workForFaction(e):j.a.workType==O.a.WorkTypeCreateProgram?j.a.createProgramWork(e):j.a.workType==O.a.WorkTypeStudyClass?j.a.takeClass(e):j.a.workType==O.a.WorkTypeCrime?j.a.commitCrime(e):j.a.workType==O.a.WorkTypeCompanyPartTime?j.a.workPartTime(e):j.a.work(e)),2==j.a.bitNodeN&&j.a.inGang()&&j.a.gang.process(e),A.c&&A.b&&A.b.process(e),j.a.corporation instanceof E.a&&j.a.corporation.storeCycles(e),j.a.bladeburner instanceof f.a&&j.a.bladeburner.storeCycles(e),X.decrementAllCounters(e),X.checkCounters(),1==X._actionInProgress&&X.updateHackProgress(e),Object(B.g)(e),Object(I.d)(e)},Counters:{autoSaveCounter:300,updateSkillLevelsCounter:10,updateDisplays:3,updateDisplaysMed:9,updateDisplaysLong:15,updateActiveScriptsDisplay:5,createProgramNotifications:10,checkFactionInvitations:100,passiveFactionGrowth:600,messages:150,stockTick:30,sCr:1500,mechanicProcess:5,contractGeneration:3e3},decrementAllCounters:function(e=1){for(var t in X.Counters)X.Counters.hasOwnProperty(t)&&(X.Counters[t]=X.Counters[t]-e)},checkCounters:function(){if(X.Counters.autoSaveCounter<=0&&(H.b.saveGame(Q),null==U.Settings.AutosaveInterval&&(U.Settings.AutosaveInterval=60),0===U.Settings.AutosaveInterval?X.Counters.autoSaveCounter=1/0:X.Counters.autoSaveCounter=5*U.Settings.AutosaveInterval),X.Counters.updateSkillLevelsCounter<=0&&(j.a.updateSkillLevels(),X.Counters.updateSkillLevelsCounter=10),X.Counters.updateActiveScriptsDisplay<=0&&(Object(m.c)(),$.routing.isOn($.Page.ActiveScripts)?X.Counters.updateActiveScriptsDisplay=5:X.Counters.updateActiveScriptsDisplay=10),X.Counters.updateDisplays<=0&&(X.displayCharacterOverviewInfo(),$.routing.isOn($.Page.CharacterInfo)?X.displayCharacterInfo():$.routing.isOn($.Page.HacknetNodes)?Object(I.f)():$.routing.isOn($.Page.CreateProgram)&&Object(C.b)(),p.b&&Object(p.c)(),X.Counters.updateDisplays=3),X.Counters.updateDisplaysMed<=0&&($.routing.isOn($.Page.Corporation)&&j.a.corporation.updateUIContent(),X.Counters.updateDisplaysMed=9),X.Counters.updateDisplaysLong<=0&&($.routing.isOn($.Page.Gang)?Object(R.g)():$.routing.isOn($.Page.ScriptEditor)&&Object(W.h)(),X.Counters.updateDisplaysLong=15),X.Counters.createProgramNotifications<=0){var e=Object(C.c)(),t=document.getElementById("create-program-notification");e>0?(t.innerHTML=e,t.setAttribute("class","notification-on")):(t.innerHTML="",t.setAttribute("class","notification-off")),X.Counters.createProgramNotifications=10}if(X.Counters.checkFactionInvitations<=0){var n=j.a.checkForFactionInvitations();if(n.length>0){!1===j.a.firstFacInvRecvd&&(j.a.firstFacInvRecvd=!0,document.getElementById("factions-tab").style.display="list-item",document.getElementById("character-menu-header").click(),document.getElementById("character-menu-header").click());var a=n[Math.floor(Math.random()*n.length)];Object(w.g)(a)}X.Counters.checkFactionInvitations=100}if(X.Counters.passiveFactionGrowth<=0){var i=Math.floor(600-X.Counters.passiveFactionGrowth);Object(w.j)(i),X.Counters.passiveFactionGrowth=600}if(X.Counters.messages<=0&&(Object(P.c)(),g.c[g.b.TheRedPill].owned?X.Counters.messages=4500:X.Counters.messages=150),X.Counters.stockTick<=0&&(j.a.hasWseAccount&&Object(V.q)(),X.Counters.stockTick=30),X.Counters.sCr<=0&&(j.a.hasWseAccount&&Object(V.o)(),X.Counters.sCr=1500),X.Counters.mechanicProcess<=0){if(j.a.corporation instanceof E.a&&j.a.corporation.process(),j.a.bladeburner instanceof f.a)try{j.a.bladeburner.process()}catch(e){Object(c.a)("Exception caught in Bladeburner.process(): "+e)}X.Counters.mechanicProcess=5}if(X.Counters.contractGeneration<=0){if(Math.random()<.23){const e=Object.keys(_.CodingContractTypes);let t=Object(r.getRandomInt)(0,e.length-1),n=e[t];var o={};switch(o.type=Object(r.getRandomInt)(0,_.CodingContractRewardType.Money),o.type===_.CodingContractRewardType.FactionReputation&&0===j.a.factions.length&&(o.type=_.CodingContractRewardType.CompanyReputation),o.type===_.CodingContractRewardType.FactionReputationAll&&0===j.a.factions.length&&(o.type=_.CodingContractRewardType.CompanyReputation),o.type===_.CodingContractRewardType.CompanyReputation&&""===j.a.companyName&&(o.type=_.CodingContractRewardType.Money),o.type){case _.CodingContractRewardType.FactionReputation:var s=j.a.factions.length;a=j.a.factions[Object(r.getRandomInt)(0,s-1)];try{for(;!0!==w.b[a].getInfo().offerHackingWork;)a=j.a.factions[Object(r.getRandomInt)(0,s-1)];o.name=a}catch(e){Object(c.a)("Failed to find a faction for Coding Contract Generation: "+e)}break;case _.CodingContractRewardType.CompanyReputation:""!==j.a.companyName?o.name=j.a.companyName:o.type=_.CodingContractRewardType.Money}const i=Object.keys(G.b);t=Object(r.getRandomInt)(0,i.length-1);for(var l=G.b[i[t]];!0===l.purchasedByPlayer;)t=Object(r.getRandomInt)(0,i.length-1),l=G.b[i[t]];let u=`contract-${Object(r.getRandomInt)(0,1e6)}`;for(;l.contracts.filter(e=>e.fn===u).length>0;)u=`contract-${Object(r.getRandomInt)(0,1e6)}`;o.name&&(u+=`-${o.name.replace(/\s/g,"")}`);let d=new _.CodingContract(u,n,o);l.addContract(d)}X.Counters.contractGeneration=3e3}},_totalActionTime:0,_actionTimeLeft:0,_actionTimeStr:"Time left: ",_actionProgressStr:"[ ]",_actionProgressBarCount:1,_actionInProgress:!1,updateHackProgress:function(e=1){var t=e*X._idleSpeed;X._actionTimeLeft-=t/1e3,X._actionTimeLeft=Math.max(X._actionTimeLeft,0);for(var n=Math.round(100*(1-X._actionTimeLeft/X._totalActionTime));2*X._actionProgressBarCount<=n;)X._actionProgressStr=Object(h.replaceAt)(X._actionProgressStr,X._actionProgressBarCount,"|"),X._actionProgressBarCount+=1;X._actionTimeStr="Time left: "+Math.max(0,Math.round(X._actionTimeLeft)).toString()+"s",document.getElementById("hack-progress").innerHTML=X._actionTimeStr,document.getElementById("hack-progress-bar").innerHTML=X._actionProgressStr.replace(/ /g," "),n>=100&&(X._actionInProgress=!1,J.a.finishAction())},closeMainMenuHeader:function(e){for(var t=0;t$"+Object(h.formatNumber)(A,2)+" and your Hacknet Nodes generated $"+Object(h.formatNumber)(B,2)+"");var F=[t,n,i,o,c,d,C,S,T];j.a.firstFacInvRecvd?F.push(s):s.style.display="none",j.a.firstAugPurchased?F.push(l):l.style.display="none",j.a.firstJobRecvd?F.push(m):m.style.display="none",j.a.firstTimeTraveled?F.push(p):p.style.display="none",j.a.firstProgramAvailable?F.push(r):r.style.display="none",j.a.bladeburner instanceof f.a?F.push(b):b.style.display="none",j.a.corporation instanceof E.a?F.push(v):v.style.display="none",j.a.inGang()?F.push(_):_.style.display="none",X.closeMainMenuHeader(F)}else{console.log("Initializing new game"),Object(y.c)(),Object(y.b)(),Object(q.d)(),Object(Y.c)(),X.setDisplayElements(),X.start(),j.a.init(),Object(G.f)(),Object(k.h)(),Object(w.f)(),k.d.init(),Object(g.h)(),Object(P.d)(),Object(V.h)(),Object(M.a)(),Object(L.g)(),document.getElementById("hacking-menu-header").classList.toggle("opened"),document.getElementById("character-menu-header").classList.toggle("opened"),document.getElementById("world-menu-header").classList.toggle("opened"),document.getElementById("help-menu-header").classList.toggle("opened"),s.style.display="none",l.style.display="none",m.style.display="none",p.style.display="none",r.style.display="none",b.style.display="none",v.style.display="none",_.style.display="none",T.style.display="none",X.openMainMenuHeader([t,n,i,o,c,d,C,S]),Object(N.c)(),Object(u.removeLoadingScreen)()}Object(K.a)(),Object(W.g)(),J.a.resetTerminalInput()},setDisplayElements:function(){X.Display.terminalContent=document.getElementById("terminal-container"),$.routing.navigateTo($.Page.Terminal),X.Display.characterContent=document.getElementById("character-container"),X.Display.characterContent.style.display="none",X.Display.scriptEditorContent=document.getElementById("script-editor-container"),X.Display.scriptEditorContent.style.display="none",X.Display.activeScriptsContent=document.getElementById("active-scripts-container"),X.Display.activeScriptsContent.style.display="none",X.Display.hacknetNodesContent=document.getElementById("hacknet-nodes-container"),X.Display.hacknetNodesContent.style.display="none",X.Display.worldContent=document.getElementById("world-container"),X.Display.worldContent.style.display="none",X.Display.createProgramContent=document.getElementById("create-program-container"),X.Display.createProgramContent.style.display="none",X.Display.factionsContent=document.getElementById("factions-container"),X.Display.factionsContent.style.display="none",X.Display.factionContent=document.getElementById("faction-container"),X.Display.factionContent.style.display="none",X.Display.factionAugmentationsContent=document.getElementById("faction-augmentations-container"),X.Display.factionAugmentationsContent.style.display="none",X.Display.augmentationsContent=document.getElementById("augmentations-container"),X.Display.augmentationsContent.style.display="none",X.Display.tutorialContent=document.getElementById("tutorial-container"),X.Display.tutorialContent.style.display="none",X.Display.devMenuContent=document.getElementById("dev-menu-container"),X.Display.devMenuContent.style.display="none",X.Display.infiltrationContent=document.getElementById("infiltration-container"),X.Display.infiltrationContent.style.display="none",X.Display.stockMarketContent=document.getElementById("stock-market-container"),X.Display.stockMarketContent.style.display="none",X.Display.missionContent=document.getElementById("mission-container"),X.Display.missionContent.style.display="none",X.Display.characterInfo=document.getElementById("character-content"),X.aevumLocationsList=document.getElementById("aevum-locations-list"),X.chongqingLocationsList=document.getElementById("chongqing-locations-list"),X.sector12LocationsList=document.getElementById("sector12-locations-list"),X.newTokyoLocationsList=document.getElementById("newtokyo-locations-list"),X.ishimaLocationsList=document.getElementById("ishima-locations-list"),X.volhavenLocationsList=document.getElementById("volhaven-locations-list"),X.Display.locationContent=document.getElementById("location-container"),X.Display.locationContent.style.display="none",X.Display.workInProgressContent=document.getElementById("work-in-progress-container"),X.Display.workInProgressContent.style.display="none",X.Display.redPillContent=document.getElementById("red-pill-container"),X.Display.redPillContent.style.display="none",X.Display.cinematicTextContent=document.getElementById("cinematic-text-container"),X.Display.cinematicTextContent.style.display="none",Object(T.b)(),X.Clickables.tutorialNetworkingButton=document.getElementById("tutorial-networking-link"),X.Clickables.tutorialNetworkingButton.addEventListener("click",function(){X.displayTutorialPage(O.a.TutorialNetworkingText)}),X.Clickables.tutorialHackingButton=document.getElementById("tutorial-hacking-link"),X.Clickables.tutorialHackingButton.addEventListener("click",function(){X.displayTutorialPage(O.a.TutorialHackingText)}),X.Clickables.tutorialScriptsButton=document.getElementById("tutorial-scripts-link"),X.Clickables.tutorialScriptsButton.addEventListener("click",function(){X.displayTutorialPage(O.a.TutorialScriptsText)}),X.Clickables.tutorialNetscriptButton=document.getElementById("tutorial-netscript-link"),X.Clickables.tutorialNetscriptButton.addEventListener("click",function(){X.displayTutorialPage(O.a.TutorialNetscriptText)}),X.Clickables.tutorialTravelingButton=document.getElementById("tutorial-traveling-link"),X.Clickables.tutorialTravelingButton.addEventListener("click",function(){X.displayTutorialPage(O.a.TutorialTravelingText)}),X.Clickables.tutorialCompaniesButton=document.getElementById("tutorial-jobs-link"),X.Clickables.tutorialCompaniesButton.addEventListener("click",function(){X.displayTutorialPage(O.a.TutorialCompaniesText)}),X.Clickables.tutorialFactionsButton=document.getElementById("tutorial-factions-link"),X.Clickables.tutorialFactionsButton.addEventListener("click",function(){X.displayTutorialPage(O.a.TutorialFactionsText)}),X.Clickables.tutorialAugmentationsButton=document.getElementById("tutorial-augmentations-link"),X.Clickables.tutorialAugmentationsButton.addEventListener("click",function(){X.displayTutorialPage(O.a.TutorialAugmentationsText)}),X.Clickables.tutorialBackButton=document.getElementById("tutorial-back-button"),X.Clickables.tutorialBackButton.addEventListener("click",function(){X.displayTutorialContent()}),X.Clickables.devMenuGiveMoney=document.getElementById("dev-need-money"),X.Clickables.devMenuGiveMoney.addEventListener("click",function(){j.a.gainMoney(1e15)}),X.Clickables.devMenuGiveRam=document.getElementById("dev-need-ram"),X.Clickables.devMenuGiveRam.addEventListener("click",function(){j.a.getHomeComputer().maxRam*=2}),X.Clickables.devMenuAugDropdown=document.getElementById("dev-menu-aug-dropdown");const e=X.Clickables.devMenuAugDropdown;for(const t in g.b)e.options[e.options.length]=new Option(g.b[t],g.b[t]);X.Clickables.devMenuAddAug=document.getElementById("dev-add-aug"),X.Clickables.devMenuAddAug.addEventListener("click",function(){j.a.queueAugmentation(e.options[e.selectedIndex].value)}),X.Clickables.devMenuTriggerBitFlume=document.getElementById("dev-bit-flume"),X.Clickables.devMenuTriggerBitFlume.addEventListener("click",function(){Object(F.a)(j.a.bitNodeN,!0)}),X.Clickables.devMenuFactionDropdown=document.getElementById("dev-menu-faction-dropdown");const t=X.Clickables.devMenuFactionDropdown;for(const e in w.b)t.options[t.options.length]=new Option(w.b[e].name,w.b[e].name);X.Clickables.devMenuAddFaction=document.getElementById("dev-add-faction"),X.Clickables.devMenuAddFaction.addEventListener("click",function(){const e=t.options[t.selectedIndex].value;j.a.receiveInvite(e)}),X.Clickables.devMenuOpen=document.getElementById("dev-open-all"),X.Clickables.devMenuOpen.addEventListener("click",function(){for(const e in G.b)G.b[e].hasAdminRights=!0,G.b[e].sshPortOpen=!0,G.b[e].ftpPortOpen=!0,G.b[e].smtpPortOpen=!0,G.b[e].httpPortOpen=!0,G.b[e].sqlPortOpen=!0,G.b[e].openPortCount=5}),X.Clickables.devMenuMinSecurity=document.getElementById("dev-min-security"),X.Clickables.devMenuMinSecurity.addEventListener("click",function(){for(const e in G.b)G.b[e].hackDifficulty=G.b[e].minDifficulty}),X.Clickables.devMenuMaxMoney=document.getElementById("dev-max-money"),X.Clickables.devMenuMaxMoney.addEventListener("click",function(){for(const e in G.b)G.b[e].moneyAvailable=G.b[e].moneyMax}),X.Clickables.devMenuConnectDropdown=document.getElementById("dev-menu-connect-dropdown");const n=X.Clickables.devMenuConnectDropdown;for(const e in G.b)n.options[n.options.length]=new Option(G.b[e].hostname,G.b[e].hostname);X.Clickables.devMenuConnect=document.getElementById("dev-connect"),X.Clickables.devMenuConnect.addEventListener("click",function(){const e=n.options[n.selectedIndex].value;J.a.connectToServer(e)}),X.Clickables.devMenuProgramsDropdown=document.getElementById("dev-menu-add-program-dropdown");const a=X.Clickables.devMenuProgramsDropdown;for(const e in C.a)a.options[a.options.length]=new Option(C.a[e].name,C.a[e].name);X.Clickables.devMenuAddProgram=document.getElementById("dev-add-program"),X.Clickables.devMenuAddProgram.addEventListener("click",function(){const e=a.options[a.selectedIndex].value;j.a.hasProgram(e)||j.a.getHomeComputer().programs.push(e)}),X.Clickables.devMenuHackingExp=document.getElementById("dev-hacking-exp"),X.Clickables.devMenuAddHacking=document.getElementById("dev-add-hacking"),X.Clickables.devMenuAddHacking.addEventListener("click",function(){const e=parseInt(X.Clickables.devMenuHackingExp.value);j.a.gainHackingExp(e),j.a.updateSkillLevels()}),X.Clickables.devMenuStrengthExp=document.getElementById("dev-strength-exp"),X.Clickables.devMenuAddStrength=document.getElementById("dev-add-strength"),X.Clickables.devMenuAddStrength.addEventListener("click",function(){const e=parseInt(X.Clickables.devMenuStrengthExp.value);j.a.gainStrengthExp(e),j.a.updateSkillLevels()}),X.Clickables.devMenuDefenseExp=document.getElementById("dev-defense-exp"),X.Clickables.devMenuAddDefense=document.getElementById("dev-add-defense"),X.Clickables.devMenuAddDefense.addEventListener("click",function(){const e=parseInt(X.Clickables.devMenuDefenseExp.value);j.a.gainDefenseExp(e),j.a.updateSkillLevels()}),X.Clickables.devMenuDexterityExp=document.getElementById("dev-dexterity-exp"),X.Clickables.devMenuAddDexterity=document.getElementById("dev-add-dexterity"),X.Clickables.devMenuAddDexterity.addEventListener("click",function(){const e=parseInt(X.Clickables.devMenuDexterityExp.value);j.a.gainDexterityExp(e),j.a.updateSkillLevels()}),X.Clickables.devMenuAgilityExp=document.getElementById("dev-agility-exp"),X.Clickables.devMenuAddAgility=document.getElementById("dev-add-agility"),X.Clickables.devMenuAddAgility.addEventListener("click",function(){const e=parseInt(X.Clickables.devMenuAgilityExp.value);j.a.gainAgilityExp(e),j.a.updateSkillLevels()}),X.Clickables.devMenuCharismaExp=document.getElementById("dev-charisma-exp"),X.Clickables.devMenuAddCharisma=document.getElementById("dev-add-charisma"),X.Clickables.devMenuAddCharisma.addEventListener("click",function(){const e=parseInt(X.Clickables.devMenuCharismaExp.value);j.a.gainCharismaExp(e),j.a.updateSkillLevels()}),X.Clickables.devMenuIntelligenceExp=document.getElementById("dev-intelligence-exp"),X.Clickables.devMenuAddIntelligence=document.getElementById("dev-add-intelligence"),X.Clickables.devMenuAddIntelligence.addEventListener("click",function(){const e=parseInt(X.Clickables.devMenuIntelligenceExp.value);j.a.gainIntelligenceExp(e),j.a.updateSkillLevels()}),X.Clickables.devMenuEnableIntelligence=document.getElementById("dev-enable-intelligence"),X.Clickables.devMenuEnableIntelligence.addEventListener("click",function(){j.a.intelligence=1}),X.Clickables.devMenuDisableIntelligence=document.getElementById("dev-disable-intelligence"),X.Clickables.devMenuDisableIntelligence.addEventListener("click",function(){j.a.intelligence=0}),X.Clickables.devMenuSFN=document.getElementById("dev-sf-n"),X.Clickables.devMenuSFLvl=document.getElementById("dev-sf-lvl"),X.Clickables.devMenuAddSF=document.getElementById("dev-add-source-file"),X.Clickables.devMenuAddSF.addEventListener("click",function(){const e=parseInt(X.Clickables.devMenuSFN.value),t=parseInt(X.Clickables.devMenuSFLvl.value);let n=-1;for(const t in j.a.sourceFiles)if(j.a.sourceFiles[t].n===e){n=t;break}if(-1===n)j.a.sourceFiles.push(new q.a(e,t));else if(0===t){if(-1===n)return;j.a.sourceFiles.splice(n,1)}else j.a.sourceFiles[n].lvl=t})},init:function(){document.getElementById("import-game-link").onclick=function(){H.b.importGame()};var e=document.getElementById("hacking-menu-header"),t=document.getElementById("character-menu-header"),n=document.getElementById("world-menu-header"),r=document.getElementById("help-menu-header");(e.onclick=function(){var e=document.getElementById("terminal-tab"),t=document.getElementById("terminal-menu-link"),n=document.getElementById("create-script-tab"),a=document.getElementById("create-script-menu-link"),i=document.getElementById("active-scripts-tab"),r=document.getElementById("active-scripts-menu-link"),o=document.getElementById("create-program-tab"),s=document.getElementById("create-program-menu-link"),l=document.getElementById("create-program-notification");this.classList.toggle("opened"),e.style.maxHeight?(X.toggleMainMenuHeader(!1,[e,n,i,o],[t,a,r,s]),l.style.display="none"):(X.toggleMainMenuHeader(!0,[e,n,i,o],[t,a,r,s]),l.style.display="block")},t.onclick=function(){var e=document.getElementById("stats-tab"),t=document.getElementById("stats-menu-link"),n=document.getElementById("factions-tab"),a=document.getElementById("factions-menu-link"),i=document.getElementById("augmentations-tab"),r=document.getElementById("augmentations-menu-link"),o=document.getElementById("hacknet-nodes-tab"),s=document.getElementById("hacknet-nodes-menu-link");this.classList.toggle("opened"),e.style.maxHeight?X.toggleMainMenuHeader(!1,[e,n,i,o],[t,a,r,s]):X.toggleMainMenuHeader(!0,[e,n,i,o],[t,a,r,s])},n.onclick=function(){var e=document.getElementById("city-tab"),t=document.getElementById("city-menu-link"),n=document.getElementById("travel-tab"),a=document.getElementById("travel-menu-link"),i=document.getElementById("job-tab"),r=document.getElementById("job-menu-link"),o=document.getElementById("bladeburner-tab"),s=document.getElementById("bladeburner-menu-link"),l=document.getElementById("corporation-tab"),c=document.getElementById("corporation-menu-link"),u=document.getElementById("gang-tab"),d=document.getElementById("gang-menu-link");this.classList.toggle("opened"),e.style.maxHeight?X.toggleMainMenuHeader(!1,[e,n,i,o,l,u],[t,a,r,s,c,d]):X.toggleMainMenuHeader(!0,[e,n,i,o,l,u],[t,a,r,s,c,d])},r.onclick=function(){var e=document.getElementById("tutorial-tab"),t=document.getElementById("tutorial-menu-link"),n=document.getElementById("options-tab"),a=document.getElementById("options-menu-link");this.classList.toggle("opened");const i=[e,n],r=[t,a];e.style.maxHeight?X.toggleMainMenuHeader(!1,i,r):X.toggleMainMenuHeader(!0,i,r)},X.Clickables.terminalMainMenuButton=Object(s.clearEventListeners)("terminal-menu-link"),X.Clickables.terminalMainMenuButton.addEventListener("click",function(){return X.loadTerminalContent(),!1}),X.Clickables.characterMainMenuButton=Object(s.clearEventListeners)("stats-menu-link"),X.Clickables.characterMainMenuButton.addEventListener("click",function(){return X.loadCharacterContent(),!1}),X.Clickables.scriptEditorMainMenuButton=Object(s.clearEventListeners)("create-script-menu-link"),X.Clickables.scriptEditorMainMenuButton.addEventListener("click",function(){return X.loadScriptEditorContent(),!1}),X.Clickables.activeScriptsMainMenuButton=Object(s.clearEventListeners)("active-scripts-menu-link"),X.Clickables.activeScriptsMainMenuButton.addEventListener("click",function(){return X.loadActiveScriptsContent(),!1}),X.Clickables.hacknetNodesMainMenuButton=Object(s.clearEventListeners)("hacknet-nodes-menu-link"),X.Clickables.hacknetNodesMainMenuButton.addEventListener("click",function(){return X.loadHacknetNodesContent(),!1}),X.Clickables.worldMainMenuButton=Object(s.clearEventListeners)("city-menu-link"),X.Clickables.worldMainMenuButton.addEventListener("click",function(){return X.loadWorldContent(),!1}),X.Clickables.travelMainMenuButton=Object(s.clearEventListeners)("travel-menu-link"),X.Clickables.travelMainMenuButton.addEventListener("click",function(){return X.loadTravelContent(),!1}),X.Clickables.jobMainMenuButton=Object(s.clearEventListeners)("job-menu-link"),X.Clickables.jobMainMenuButton.addEventListener("click",function(){return X.loadJobContent(),!1}),X.Clickables.createProgramMainMenuButton=Object(s.clearEventListeners)("create-program-menu-link"),X.Clickables.createProgramMainMenuButton.addEventListener("click",function(){return X.loadCreateProgramContent(),!1}),X.Clickables.factionsMainMenuButton=Object(s.clearEventListeners)("factions-menu-link"),X.Clickables.factionsMainMenuButton.addEventListener("click",function(){return X.loadFactionsContent(),!1}),X.Clickables.augmentationsMainMenuButton=Object(s.clearEventListeners)("augmentations-menu-link"),X.Clickables.augmentationsMainMenuButton.addEventListener("click",function(){return X.loadAugmentationsContent(),!1}),X.Clickables.tutorialMainMenuButton=Object(s.clearEventListeners)("tutorial-menu-link"),X.Clickables.tutorialMainMenuButton.addEventListener("click",function(){return X.loadTutorialContent(),!1}),X.Clickables.bladeburnerMenuButton=Object(s.clearEventListeners)("bladeburner-menu-link"),X.Clickables.bladeburnerMenuButton.addEventListener("click",function(){return X.loadBladeburnerContent(),!1}),X.Clickables.corporationMenuButton=Object(s.clearEventListeners)("corporation-menu-link"),X.Clickables.corporationMenuButton.addEventListener("click",function(){return X.loadCorporationContent(),!1}),X.Clickables.gangMenuButton=Object(s.clearEventListeners)("gang-menu-link"),X.Clickables.gangMenuButton.addEventListener("click",function(){return X.loadGangContent(),!1}),X.Clickables.devMainMenuButton=Object(s.clearEventListeners)("dev-menu-link"),X.Clickables.devMainMenuButton.addEventListener("click",function(){return!1}),X.ActiveScriptsList=document.getElementById("active-scripts-list"),X.Clickables.saveMainMenuButton=document.getElementById("save-game-link"),X.Clickables.saveMainMenuButton.addEventListener("click",function(){return H.b.saveGame(Q),!1}),X.Clickables.deleteMainMenuButton=document.getElementById("delete-game-link"),X.Clickables.deleteMainMenuButton.addEventListener("click",function(){return H.b.deleteGame(Q),!1}),document.getElementById("export-game-link").addEventListener("click",function(){return H.b.exportGame(),!1}),document.getElementById("character-overview-save-button").addEventListener("click",function(){return H.b.saveGame(Q),!1}),document.getElementById("character-overview-options-button").addEventListener("click",function(){return Object(i.b)(),!1}),Object(C.d)(),Object(J.b)(),j.a.isWorking)&&(document.getElementById("work-in-progress-cancel-button").addEventListener("click",function(){if(j.a.workType==O.a.WorkTypeFaction){w.b[j.a.currentWorkFactionName];j.a.finishFactionWork(!0)}else j.a.workType==O.a.WorkTypeCreateProgram?j.a.finishCreateProgramWork(!0):j.a.workType==O.a.WorkTypeStudyClass?j.a.finishClass():j.a.workType==O.a.WorkTypeCrime?j.a.finishCrime(!0):j.a.workType==O.a.WorkTypeCompanyPartTime?j.a.finishWorkPartTime():j.a.finishWork(!0)}),X.loadWorkInProgressContent());document.getElementById("character-overview-container").style.display="block",document.getElementById("terminal-menu-link").removeAttribute("class"),document.getElementById("stats-menu-link").removeAttribute("class"),document.getElementById("create-script-menu-link").removeAttribute("class"),document.getElementById("active-scripts-menu-link").removeAttribute("class"),document.getElementById("hacknet-nodes-menu-link").removeAttribute("class"),document.getElementById("city-menu-link").removeAttribute("class"),document.getElementById("tutorial-menu-link").removeAttribute("class"),document.getElementById("debug-delete-scripts-link").addEventListener("click",function(){return console.log("Deleting running scripts on home computer"),j.a.getHomeComputer().runningScripts=[],Object(a.dialogBoxCreate)("Forcefully deleted all running scripts on home computer. Please save and refresh page"),Object(i.a)(),!1}),document.getElementById("debug-soft-reset").addEventListener("click",function(){return Object(a.dialogBoxCreate)("Soft Reset!"),Object(D.a)(),Object(i.a)(),!1})},start:function(){X.idleTimer(),Object(B.f)()}};var Q,Z;window.onload=function(){if(!window.indexedDB)return X.load(null);(Z=window.indexedDB.open("bitburnerSave",1)).onerror=function(e){return console.log("Error opening indexedDB: "),console.log(e),X.load(null)},Z.onsuccess=function(e){console.log("Opening bitburnerSave database successful!");var t=(Q=e.target.result).transaction(["savestring"]).objectStore("savestring").get("save");t.onerror=function(e){return console.log("Error in Database request to get savestring: "+e),X.load(null)},t.onsuccess=function(e){X.load(t.result)}},Z.onupgradeneeded=function(e){e.target.result.createObjectStore("savestring")}}}.call(this,n(60))},function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"dialogBoxCreate",function(){return r}),n.d(t,"dialogBoxOpened",function(){return i});let a=[];e(document).click(function(t){i&&a.length>=1&&(e(t.target).closest(a[0]).length||(a[0].remove(),a.splice(0,1),0==a.length?i=!1:a[0].style.visibility="visible"))}),e(document).on("click",".dialog-box-close-button",function(e){i&&a.length>=1&&(a[0].remove(),a.splice(0,1),0==a.length?i=!1:a[0].style.visibility="visible")});var i=!1;function r(e,t=!1){var n=document.createElement("div");n.setAttribute("class","dialog-box-container");var r=document.createElement("div");r.setAttribute("class","dialog-box-content");var o,s=document.createElement("span");s.setAttribute("class","dialog-box-close-button"),s.innerHTML="×",t?(o=document.createElement("pre")).innerHTML=e:(o=document.createElement("p")).innerHTML=e.replace(/(?:\r\n|\r|\n)/g,"
"),r.appendChild(s),r.appendChild(o),n.appendChild(r),document.body.appendChild(n),a.length>=1&&(n.style.visibility="hidden"),a.push(n),setTimeout(function(){i=!0},400)}}.call(this,n(60))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BitNodeMultipliers={HackingLevelMultiplier:1,ServerGrowthRate:1,ServerMaxMoney:1,ServerStartingMoney:1,ServerStartingSecurity:1,ServerWeakenRate:1,CompanyWorkMoney:1,CrimeMoney:1,HacknetNodeMoney:1,ManualHackMoney:1,ScriptHackMoney:1,ClassGymExpGain:1,CompanyWorkExpGain:1,CrimeExpGain:1,FactionWorkExpGain:1,HackExpGain:1,FactionPassiveRepGain:1,FactionWorkRepGain:1,RepToDonateToFaction:1,AugmentationMoneyCost:1,AugmentationRepCost:1,InfiltrationMoney:1,InfiltrationRep:1,CorporationValuation:1,BladeburnerRank:1,BladeburnerSkillCost:1}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRandomInt=function(e,t){const n=Math.min(e,t),a=Math.max(e,t);return Math.floor(Math.random()*(a-n+1))+n}},function(e,t,n){"use strict";n.d(t,"d",function(){return m}),n.d(t,"b",function(){return b}),n.d(t,"e",function(){return O}),n.d(t,"c",function(){return E}),n.d(t,"g",function(){return _}),n.d(t,"a",function(){return k}),n.d(t,"j",function(){return y}),n.d(t,"f",function(){return g}),n.d(t,"h",function(){return v}),n.d(t,"i",function(){return f});var a=n(9),i=n(38),r=n(1),o=n(22),s=n(0),l=n(27),c=n(10),u=n(51),d=n(113),h=n(14),p=n(75);function m(e={ip:Object(u.a)(),hostname:""}){this.ip=e.ip?e.ip:Object(u.a)();for(var t=e.hostname,n=0,i="";null!=E(t+i);)i="-"+n,++n;this.hostname=t+i,this.organizationName=null!=e.organizationName?e.organizationName:"",this.isConnectedTo=null!=e.isConnectedTo&&e.isConnectedTo,this.hasAdminRights=null!=e.adminRights&&e.adminRights,this.purchasedByPlayer=null!=e.purchasedByPlayer&&e.purchasedByPlayer,this.manuallyHacked=!1,this.maxRam=null!=e.maxRam?e.maxRam:0,this.ramUsed=0,this.cpuCores=1,this.scripts=[],this.runningScripts=[],this.programs=[],this.messages=[],this.textFiles=[],this.contracts=[],this.dir=0,this.requiredHackingSkill=null!=e.requiredHackingSkill?e.requiredHackingSkill:1,this.moneyAvailable=null!=e.moneyAvailable?e.moneyAvailable*a.BitNodeMultipliers.ServerStartingMoney:0,this.moneyMax=25*this.moneyAvailable*a.BitNodeMultipliers.ServerMaxMoney,this.hackDifficulty=null!=e.hackDifficulty?e.hackDifficulty*a.BitNodeMultipliers.ServerStartingSecurity:1,this.baseDifficulty=this.hackDifficulty,this.minDifficulty=Math.max(1,Math.round(this.hackDifficulty/3)),this.serverGrowth=null!=e.serverGrowth?e.serverGrowth:1,this.serversOnNetwork=[],this.numOpenPortsRequired=null!=e.numOpenPortsRequired?e.numOpenPortsRequired:5,this.sshPortOpen=!1,this.ftpPortOpen=!1,this.smtpPortOpen=!1,this.httpPortOpen=!1,this.sqlPortOpen=!1,this.openPortCount=0}function g(){const e=[];for(let t=0;t<15;t++)e.push([]);const t=["hackDifficulty","moneyAvailable","requiredHackingSkill","serverGrowth"],n=e=>{switch(typeof e){case"number":return e;case"object":return Object(c.getRandomInt)(e.min,e.max);default:throw Error(`Do not know how to convert the type '${typeof e}' to a number`)}};for(const a of d.serverMetadata){const i={hostname:a.hostname,ip:Object(u.a)(),numOpenPortsRequired:a.numOpenPortsRequired,organizationName:a.organizationName};void 0!==a.maxRamExponent&&(i.maxRam=Math.pow(2,n(a.maxRamExponent)));for(const e of t)void 0!==a[e]&&(i[e]=n(a[e]));const r=new m(i);for(const e of a.literature||[])r.messages.push(e);void 0!==a.specialName&&l.a.addIp(a.specialName,r.ip),k(r),void 0!==a.networkLayer&&e[n(a.networkLayer)-1].push(r)}const a=e=>e[Math.floor(Math.random()*e.length)],i=(e,t)=>{for(const n of e)r=n,o=t(),r.serversOnNetwork.push(o.ip),o.serversOnNetwork.push(r.ip)};var r,o;i(e[0],()=>s.a.getHomeComputer());for(let t=1;ta(e[t-1]))}function y(e,t){const n=Math.max(Math.floor(t/450),0);var i=1+(r.a.ServerBaseGrowthRate-1)/e.hackDifficulty;i>r.a.ServerMaxGrowthRate&&(i=r.a.ServerMaxGrowthRate);const o=n*(e.serverGrowth/100)*a.BitNodeMultipliers.ServerGrowthRate;var l=Math.pow(i,o*s.a.hacking_grow_mult);l<1&&(console.log("WARN: serverGrowth calculated to be less than 1"),l=1);const c=e.moneyAvailable;if(e.moneyAvailable*=l,e.moneyMax&&isNaN(e.moneyAvailable)&&(e.moneyAvailable=e.moneyMax),e.moneyMax&&e.moneyAvailable>e.moneyMax&&(e.moneyAvailable=e.moneyMax),c!==e.moneyAvailable){let t=function(e,t){let n=1+(r.a.ServerBaseGrowthRate-1)/e.hackDifficulty;n>r.a.ServerMaxGrowthRate&&(n=r.a.ServerMaxGrowthRate);const a=e.serverGrowth/100;return Math.log(t)/(Math.log(n)*s.a.hacking_grow_mult*a)}(e,e.moneyAvailable/c);t=Math.max(0,t),e.fortify(2*r.a.ServerFortifyAmount*Math.ceil(t))}return e.moneyAvailable/c}function f(e){e.programs.length=0,e.runningScripts=[],e.serversOnNetwork=[],e.isConnectedTo=!0,e.ramUsed=0,e.programs.push(o.a.NukeProgram.name),e.scripts.forEach(function(e){e.updateRamUsage()}),e.messages.length=0,e.messages.push("hackers-starting-handbook.lit")}m.prototype.setMaxRam=function(e){this.maxRam=e},m.prototype.getServerOnNetwork=function(e){if(!(e>this.serversOnNetwork.length))return b[this.serversOnNetwork[e]];console.log("Tried to get server on network that was out of range")},m.prototype.getScript=function(e){for(var t=0;t1e6&&(this.hackDifficulty=1e6)},m.prototype.fortify=function(e){this.hackDifficulty+=e,this.capDifficulty()},m.prototype.weaken=function(e){this.hackDifficulty-=e*a.BitNodeMultipliers.ServerWeakenRate,this.capDifficulty()},m.prototype.addContract=function(e){this.contracts.push(e)},m.prototype.removeContract=function(e){e instanceof i.CodingContract?this.contracts=this.contracts.filter(t=>t.fn!==e.fn):this.contracts=this.contracts.filter(t=>t.fn!==e)},m.prototype.getContract=function(e){for(const t of this.contracts)if(t.fn===e)return t;return null},m.prototype.toJSON=function(){return Object(h.Generic_toJSON)("Server",this)},m.fromJSON=function(e){return Object(h.Generic_fromJSON)(m,e.data)},h.Reviver.constructors.Server=m;let b={};function v(){for(var e in b)delete b[e];b={}}function _(e){b=JSON.parse(e,h.Reviver)}function k(e){var t=e.ip;if(Object(u.b)(t))throw console.log("IP of server that's being added: "+t),console.log("Hostname of the server thats being added: "+e.hostname),console.log("The server that already has this IP is: "+b[t].hostname),new Error("Error: Trying to add a server with an existing IP");b[t]=e}function E(e){for(var t in b)if(b.hasOwnProperty(t)&&b[t].hostname==e)return b[t];return null}function O(e){return Object(p.isValidIPAddress)(e)?void 0!==b[e]?b[e]:null:E(e)}function C(e,t,n){this.s=e,this.p=t,this.c=[],this.n=n,this.d=t.d+1,this.scrs=[],this.pgms=[],this.msgs=[]}C.prototype.createSubdir=function(e){new C(this.s,this,e)},C.prototype.getPath=function(e){for(var t=[],n=this;null!==n;)t.unshift(n.n,"/"),n=n.parent;return t.unshift("/"),t.join("")}},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var a=n(63),i=n.n(a);n(233),n(232),n(231),n(230),n(229),n(228),n(227),n(226),n(225),n(224),n(223),n(222),n(221),n(220);const r=new class{constructor(){this.defaultLocale="en"}updateLocale(e){return null!=i.a.locale(e)||(console.warn(`Invalid locale for numeral: ${e}`),i.a.locale(this.defaultLocale),!1)}format(e,t){return i()(e).format(t)}}},function(e,t,n){"use strict";n.d(t,"d",function(){return l}),n.d(t,"h",function(){return u}),n.d(t,"a",function(){return d}),n.d(t,"f",function(){return g}),n.d(t,"g",function(){return c}),n.d(t,"i",function(){return h}),n.d(t,"b",function(){return o}),n.d(t,"c",function(){return s}),n.d(t,"e",function(){return m});var a=n(1),i=n(3),r=n(14);function o(e="",t=0,n=0,a=0){this.companyName=e,this.info="",this.companyPositions=[],this.perks=[],this.salaryMultiplier=t,this.expMultiplier=n,this.jobStatReqOffset=a,this.isPlayerEmployed=!1,this.playerPosition="",this.playerReputation=1,this.favor=0,this.rolloverRep=0}function s(e,t,n,a,i,r,o,s,l){this.positionName=e,this.requiredHacking=t,this.requiredStrength=n,this.requiredDefense=a,this.requiredDexterity=i,this.requiredAgility=r,this.requiredCharisma=o,this.requiredReputation=s,this.baseSalary=l}o.prototype.setInfo=function(e){this.info=e},o.prototype.addPosition=function(e){this.companyPositions.push(e.positionName)},o.prototype.addPositions=function(e){for(var t=0;t0&&t>=n;)++e,t-=n,n*=a.a.FactionReputationToFavorMult;return[e,t]},o.prototype.toJSON=function(){return Object(r.Generic_toJSON)("Company",this)},o.fromJSON=function(e){return Object(r.Generic_fromJSON)(o,e.data)},r.Reviver.constructors.Company=o,s.prototype.setPerformanceParameters=function(e,t,n,a,i,r,o=1){e+t+n+a+i+r==100?(this.hackingEffectiveness=e,this.strengthEffectiveness=t,this.defenseEffectiveness=n,this.dexterityEffectiveness=a,this.agilityEffectiveness=i,this.charismaEffectiveness=r,this.positionMultiplier=o):console.log("CompanyPosition.setPerformanceParameters() arguments do not total to 100")},s.prototype.setExperienceGains=function(e,t,n,a,i,r){this.hackingExpGain=e,this.strengthExpGain=t,this.defenseExpGain=n,this.dexterityExpGain=a,this.agilityExpGain=i,this.charismaExpGain=r},s.prototype.calculateJobPerformance=function(e,t,n,i,r,o){var s=this.hackingEffectiveness*e/a.a.MaxSkillLevel,l=this.strengthEffectiveness*t/a.a.MaxSkillLevel,c=this.defenseEffectiveness*n/a.a.MaxSkillLevel,u=this.dexterityEffectiveness*i/a.a.MaxSkillLevel,d=this.agilityEffectiveness*r/a.a.MaxSkillLevel,h=this.charismaEffectiveness*o/a.a.MaxSkillLevel,p=this.positionMultiplier*(s+l+c+u+d+h)/100;return isNaN(p)&&(console.log("ERROR: Code should not reach here"),p=(s+l+c+u+d+h)/100),p},s.prototype.isSoftwareJob=function(){return"Software Engineering Intern"==this.positionName||"Junior Software Engineer"==this.positionName||"Senior Software Engineer"==this.positionName||"Lead Software Developer"==this.positionName||"Head of Software"==this.positionName||"Head of Engineering"==this.positionName||"Vice President of Technology"==this.positionName||"Chief Technology Officer"==this.positionName},s.prototype.isITJob=function(){return"IT Intern"==this.positionName||"IT Analyst"==this.positionName||"IT Manager"==this.positionName||"Systems Administrator"==this.positionName},s.prototype.isSecurityEngineerJob=function(){return"Security Engineer"==this.positionName},s.prototype.isNetworkEngineerJob=function(){return"Network Engineer"==this.positionName||"Network Administrator"==this.positionName},s.prototype.isBusinessJob=function(){return"Business Intern"==this.positionName||"Business Analyst"==this.positionName||"Business Manager"==this.positionName||"Operations Manager"==this.positionName||"Chief Financial Officer"==this.positionName||"Chief Executive Officer"==this.positionName},s.prototype.isSecurityJob=function(){return"Security Guard"==this.positionName||"Police Officer"==this.positionName||"Security Officer"==this.positionName||"Security Supervisor"==this.positionName||"Head of Security"==this.positionName},s.prototype.isAgentJob=function(){return"Field Agent"==this.positionName||"Secret Agent"==this.positionName||"Special Operative"==this.positionName},s.prototype.isSoftwareConsultantJob=function(){return"Software Consultant"==this.positionName||"Senior Software Consultant"==this.positionName},s.prototype.isBusinessConsultantJob=function(){return"Business Consultant"==this.positionName||"Senior Business Consultant"==this.positionName},s.prototype.isPartTimeJob=function(){return!(!this.isSoftwareConsultantJob()&&!this.isBusinessConsultantJob()&&"Part-time Waiter"!=this.positionName&&"Part-time Employee"!=this.positionName)},s.prototype.toJSON=function(){return Object(r.Generic_toJSON)("CompanyPosition",this)},s.fromJSON=function(e){return Object(r.Generic_fromJSON)(s,e.data)},r.Reviver.constructors.CompanyPosition=s;let l={SoftwareIntern:new s("Software Engineering Intern",1,0,0,0,0,0,0,33),JuniorDev:new s("Junior Software Engineer",51,0,0,0,0,0,8e3,80),SeniorDev:new s("Senior Software Engineer",251,0,0,0,0,51,4e4,165),LeadDev:new s("Lead Software Developer",401,0,0,0,0,151,2e5,500),FreelanceDeveloper:new s("Freelance Developer",0,0,0,0,0,0,0,0),SoftwareConsultant:new s("Software Consultant",51,0,0,0,0,0,0,66),SeniorSoftwareConsultant:new s("Senior Software Consultant",251,0,0,0,0,51,0,132),ITIntern:new s("IT Intern",1,0,0,0,0,0,0,26),ITAnalyst:new s("IT Analyst",26,0,0,0,0,0,7e3,66),ITManager:new s("IT Manager",151,0,0,0,0,51,35e3,132),SysAdmin:new s("Systems Administrator",251,0,0,0,0,76,175e3,410),SecurityEngineer:new s("Security Engineer",151,0,0,0,0,26,35e3,121),NetworkEngineer:new s("Network Engineer",151,0,0,0,0,26,35e3,121),NetworkAdministrator:new s("Network Administrator",251,0,0,0,0,76,175e3,410),HeadOfSoftware:new s("Head of Software",501,0,0,0,0,251,4e5,800),HeadOfEngineering:new s("Head of Engineering",501,0,0,0,0,251,8e5,1650),VicePresident:new s("Vice President of Technology",601,0,0,0,0,401,16e5,2310),CTO:new s("Chief Technology Officer",751,0,0,0,0,501,32e5,2640),BusinessIntern:new s("Business Intern",1,0,0,0,0,1,0,46),BusinessAnalyst:new s("Business Analyst",6,0,0,0,0,51,8e3,100),BusinessManager:new s("Business Manager",51,0,0,0,0,101,4e4,200),OperationsManager:new s("Operations Manager",51,0,0,0,0,226,2e5,660),CFO:new s("Chief Financial Officer",76,0,0,0,0,501,8e5,1950),CEO:new s("Chief Executive Officer",101,0,0,0,0,751,32e5,3900),BusinessConsultant:new s("Business Consultant",6,0,0,0,0,51,0,88),SeniorBusinessConsultant:new s("Senior Business Consultant",51,0,0,0,0,226,0,525),PartTimeWaiter:new s("Part-time Waiter",0,0,0,0,0,0,0,20),PartTimeEmployee:new s("Part-time Employee",0,0,0,0,0,0,0,20),Waiter:new s("Waiter",0,0,0,0,0,0,0,22),Employee:new s("Employee",0,0,0,0,0,0,0,22),PoliceOfficer:new s("Police Officer",11,101,101,101,101,51,8e3,82),PoliceChief:new s("Police Chief",101,301,301,301,301,151,36e3,460),SecurityGuard:new s("Security Guard",0,51,51,51,51,1,0,50),SecurityOfficer:new s("Security Officer",26,151,151,151,151,51,8e3,195),SecuritySupervisor:new s("Security Supervisor",26,251,251,251,251,101,36e3,660),HeadOfSecurity:new s("Head of Security",51,501,501,501,501,151,144e3,1320),FieldAgent:new s("Field Agent",101,101,101,101,101,101,8e3,330),SecretAgent:new s("Secret Agent",201,251,251,251,251,201,32e3,990),SpecialOperative:new s("Special Operative",251,501,501,501,501,251,162e3,2e3),init:function(){l.SoftwareIntern.setPerformanceParameters(85,0,0,0,0,15,.9),l.SoftwareIntern.setExperienceGains(.05,0,0,0,0,.02),l.JuniorDev.setPerformanceParameters(85,0,0,0,0,15,1.1),l.JuniorDev.setExperienceGains(.1,0,0,0,0,.05),l.SeniorDev.setPerformanceParameters(80,0,0,0,0,20,1.3),l.SeniorDev.setExperienceGains(.4,0,0,0,0,.08),l.LeadDev.setPerformanceParameters(75,0,0,0,0,25,1.5),l.LeadDev.setExperienceGains(.8,0,0,0,0,.1),l.SoftwareConsultant.setPerformanceParameters(80,0,0,0,0,20,1),l.SoftwareConsultant.setExperienceGains(.08,0,0,0,0,.03),l.SeniorSoftwareConsultant.setPerformanceParameters(75,0,0,0,0,25,1.2),l.SeniorSoftwareConsultant.setExperienceGains(.25,0,0,0,0,.06),l.ITIntern.setPerformanceParameters(90,0,0,0,0,10,.9),l.ITIntern.setExperienceGains(.04,0,0,0,0,.01),l.ITAnalyst.setPerformanceParameters(85,0,0,0,0,15,1.1),l.ITAnalyst.setExperienceGains(.08,0,0,0,0,.02),l.ITManager.setPerformanceParameters(80,0,0,0,0,20,1.3),l.ITManager.setExperienceGains(.3,0,0,0,0,.1),l.SysAdmin.setPerformanceParameters(80,0,0,0,0,20,1.4),l.SysAdmin.setExperienceGains(.5,0,0,0,0,.05),l.SecurityEngineer.setPerformanceParameters(85,0,0,0,0,15,1.2),l.SecurityEngineer.setExperienceGains(.4,0,0,0,0,.05),l.NetworkEngineer.setPerformanceParameters(85,0,0,0,0,15,1.2),l.NetworkEngineer.setExperienceGains(.4,0,0,0,0,.05),l.NetworkAdministrator.setPerformanceParameters(80,0,0,0,0,20,1.3),l.NetworkAdministrator.setExperienceGains(.5,0,0,0,0,.1),l.HeadOfSoftware.setPerformanceParameters(75,0,0,0,0,25,1.6),l.HeadOfSoftware.setExperienceGains(1,0,0,0,0,.5),l.HeadOfEngineering.setPerformanceParameters(75,0,0,0,0,25,1.6),l.HeadOfEngineering.setExperienceGains(1.1,0,0,0,0,.5),l.VicePresident.setPerformanceParameters(70,0,0,0,0,30,1.75),l.VicePresident.setExperienceGains(1.2,0,0,0,0,.6),l.CTO.setPerformanceParameters(65,0,0,0,0,35,2),l.CTO.setExperienceGains(1.5,0,0,0,0,1),l.BusinessIntern.setPerformanceParameters(10,0,0,0,0,90,.9),l.BusinessIntern.setExperienceGains(.01,0,0,0,0,.08),l.BusinessAnalyst.setPerformanceParameters(15,0,0,0,0,85,1.1),l.BusinessAnalyst.setExperienceGains(.02,0,0,0,0,.15),l.BusinessManager.setPerformanceParameters(15,0,0,0,0,85,1.3),l.BusinessManager.setExperienceGains(.02,0,0,0,0,.3),l.OperationsManager.setPerformanceParameters(15,0,0,0,0,85,1.5),l.OperationsManager.setExperienceGains(.02,0,0,0,0,.4),l.CFO.setPerformanceParameters(10,0,0,0,0,90,1.6),l.CFO.setExperienceGains(.05,0,0,0,0,1),l.CEO.setPerformanceParameters(10,0,0,0,0,90,1.75),l.CEO.setExperienceGains(.1,0,0,0,0,1.5),l.BusinessConsultant.setPerformanceParameters(20,0,0,0,0,80,1),l.BusinessConsultant.setExperienceGains(.015,0,0,0,0,.15),l.SeniorBusinessConsultant.setPerformanceParameters(15,0,0,0,0,85,1.2),l.SeniorBusinessConsultant.setExperienceGains(.015,0,0,0,0,.3),l.PartTimeWaiter.setPerformanceParameters(0,10,0,10,10,70),l.PartTimeWaiter.setExperienceGains(0,.0075,.0075,.0075,.0075,.04),l.PartTimeEmployee.setPerformanceParameters(0,10,0,10,10,70),l.PartTimeEmployee.setExperienceGains(0,.0075,.0075,.0075,.0075,.03),l.Waiter.setPerformanceParameters(0,10,0,10,10,70),l.Waiter.setExperienceGains(0,.02,.02,.02,.02,.05),l.Employee.setPerformanceParameters(0,10,0,10,10,70),l.Employee.setExperienceGains(0,.02,.02,.02,.02,.04),l.SecurityGuard.setPerformanceParameters(5,20,20,20,20,15,1),l.SecurityGuard.setExperienceGains(.01,.04,.04,.04,.04,.02),l.PoliceOfficer.setPerformanceParameters(5,20,20,20,20,15,1),l.PoliceOfficer.setExperienceGains(.02,.08,.08,.08,.08,.04),l.PoliceChief.setPerformanceParameters(5,20,20,20,20,15,1.25),l.PoliceChief.setExperienceGains(.02,.1,.1,.1,.1,.1),l.SecurityOfficer.setPerformanceParameters(10,20,20,20,20,10,1.1),l.SecurityOfficer.setExperienceGains(.02,.1,.1,.1,.1,.05),l.SecuritySupervisor.setPerformanceParameters(10,15,15,15,15,30,1.25),l.SecuritySupervisor.setExperienceGains(.02,.12,.12,.12,.12,.1),l.HeadOfSecurity.setPerformanceParameters(10,15,15,15,15,30,1.4),l.HeadOfSecurity.setExperienceGains(.05,.15,.15,.15,.15,.15),l.FieldAgent.setPerformanceParameters(10,15,15,20,20,20,1),l.FieldAgent.setExperienceGains(.04,.08,.08,.08,.08,.05),l.SecretAgent.setPerformanceParameters(15,15,15,20,20,15,1.25),l.SecretAgent.setExperienceGains(.1,.15,.15,.15,.15,.1),l.SpecialOperative.setPerformanceParameters(15,15,15,20,20,15,1.5),l.SpecialOperative.setExperienceGains(.15,.2,.2,.2,.2,.15)}};function c(e){return null==e?null:e.positionName==l.SoftwareIntern.positionName?l.JuniorDev:e.positionName==l.JuniorDev.positionName?l.SeniorDev:e.positionName==l.SeniorDev.positionName?l.LeadDev:e.positionName==l.LeadDev.positionName?l.HeadOfSoftware:e.positionName==l.SoftwareConsultant.positionName?l.SeniorSoftwareConsultant:e.positionName==l.ITIntern.positionName?l.ITAnalyst:e.positionName==l.ITAnalyst.positionName?l.ITManager:e.positionName==l.ITManager.positionName?l.SysAdmin:e.positionName==l.SysAdmin.positionName?l.HeadOfEngineering:e.positionName==l.SecurityEngineer.positionName?l.HeadOfEngineering:e.positionName==l.NetworkEngineer.positionName?l.NetworkAdministrator:e.positionName==l.NetworkAdministrator.positionName?l.HeadOfEngineering:e.positionName==l.HeadOfSoftware.positionName?l.HeadOfEngineering:e.positionName==l.HeadOfEngineering.positionName?l.VicePresident:e.positionName==l.VicePresident.positionName?l.CTO:e.positionName==l.BusinessIntern.positionName?l.BusinessAnalyst:e.positionName==l.BusinessAnalyst.positionName?l.BusinessManager:e.positionName==l.BusinessManager.positionName?l.OperationsManager:e.positionName==l.OperationsManager.positionName?l.CFO:e.positionName==l.CFO.positionName?l.CEO:e.positionName==l.BusinessConsultant.positionName?l.SeniorBusinessConsultant:e.positionName==l.PoliceOfficer.positionName?l.PoliceChief:e.positionName==l.SecurityGuard.positionName?l.SecurityOfficer:e.positionName==l.SecurityOfficer.positionName?l.SecuritySupervisor:e.positionName==l.SecuritySupervisor.positionName?l.HeadOfSecurity:e.positionName==l.FieldAgent.positionName?l.SecretAgent:e.positionName==l.SecretAgent.positionName?l.SpecialOperative:null}function u(){var e=new o(i.Locations.AevumECorp,3,3,249);e.addPositions([l.SoftwareIntern,l.ITIntern,l.BusinessIntern,l.JuniorDev,l.SeniorDev,l.LeadDev,l.ITAnalyst,l.ITManager,l.SysAdmin,l.SecurityEngineer,l.NetworkEngineer,l.NetworkAdministrator,l.HeadOfSoftware,l.HeadOfEngineering,l.VicePresident,l.CTO,l.BusinessAnalyst,l.BusinessManager,l.OperationsManager,l.CFO,l.CEO,l.SecurityGuard,l.SecurityOfficer,l.SecuritySupervisor,l.HeadOfSecurity]),m(i.Locations.AevumECorp)&&(e.favor=d[i.Locations.AevumECorp].favor,delete d[i.Locations.AevumECorp]),p(e);var t=new o(i.Locations.Sector12MegaCorp,3,3,249);t.addPositions([l.SoftwareIntern,l.ITIntern,l.BusinessIntern,l.JuniorDev,l.SeniorDev,l.LeadDev,l.ITAnalyst,l.ITManager,l.SysAdmin,l.SecurityEngineer,l.NetworkEngineer,l.NetworkAdministrator,l.HeadOfSoftware,l.HeadOfEngineering,l.VicePresident,l.CTO,l.BusinessAnalyst,l.BusinessManager,l.OperationsManager,l.CFO,l.CEO,l.SecurityGuard,l.SecurityOfficer,l.SecuritySupervisor,l.HeadOfSecurity]),m(i.Locations.Sector12MegaCorp)&&(t.favor=d[i.Locations.Sector12MegaCorp].favor,delete d[i.Locations.Sector12MegaCorp]),p(t);var n=new o(i.Locations.AevumBachmanAndAssociates,2.6,2.6,224);n.addPositions([l.SoftwareIntern,l.ITIntern,l.BusinessIntern,l.JuniorDev,l.SeniorDev,l.LeadDev,l.ITAnalyst,l.ITManager,l.SysAdmin,l.SecurityEngineer,l.NetworkEngineer,l.NetworkAdministrator,l.HeadOfSoftware,l.HeadOfEngineering,l.VicePresident,l.CTO,l.BusinessAnalyst,l.BusinessManager,l.OperationsManager,l.CFO,l.CEO,l.SecurityGuard,l.SecurityOfficer,l.SecuritySupervisor,l.HeadOfSecurity]),m(i.Locations.AevumBachmanAndAssociates)&&(n.favor=d[i.Locations.AevumBachmanAndAssociates].favor,delete d[i.Locations.AevumBachmanAndAssociates]),p(n);var a=new o(i.Locations.Sector12BladeIndustries,2.75,2.75,224);a.addPositions([l.SoftwareIntern,l.ITIntern,l.BusinessIntern,l.JuniorDev,l.SeniorDev,l.LeadDev,l.ITAnalyst,l.ITManager,l.SysAdmin,l.SecurityEngineer,l.NetworkEngineer,l.NetworkAdministrator,l.HeadOfSoftware,l.HeadOfEngineering,l.VicePresident,l.CTO,l.BusinessAnalyst,l.BusinessManager,l.OperationsManager,l.CFO,l.CEO,l.SecurityGuard,l.SecurityOfficer,l.SecuritySupervisor,l.HeadOfSecurity]),m(i.Locations.Sector12BladeIndustries)&&(a.favor=d[i.Locations.Sector12BladeIndustries].favor,delete d[i.Locations.Sector12BladeIndustries]),p(a);var r=new o(i.Locations.VolhavenNWO,2.75,2.75,249);r.addPositions([l.SoftwareIntern,l.ITIntern,l.BusinessIntern,l.JuniorDev,l.SeniorDev,l.LeadDev,l.ITAnalyst,l.ITManager,l.SysAdmin,l.SecurityEngineer,l.NetworkEngineer,l.NetworkAdministrator,l.HeadOfSoftware,l.HeadOfEngineering,l.VicePresident,l.CTO,l.BusinessAnalyst,l.BusinessManager,l.OperationsManager,l.CFO,l.CEO,l.SecurityGuard,l.SecurityOfficer,l.SecuritySupervisor,l.HeadOfSecurity]),m(i.Locations.VolhavenNWO)&&(r.favor=d[i.Locations.VolhavenNWO].favor,delete d[i.Locations.VolhavenNWO]),p(r);var s=new o(i.Locations.AevumClarkeIncorporated,2.25,2.25,224);s.addPositions([l.SoftwareIntern,l.ITIntern,l.BusinessIntern,l.JuniorDev,l.SeniorDev,l.LeadDev,l.ITAnalyst,l.ITManager,l.SysAdmin,l.SecurityEngineer,l.NetworkEngineer,l.NetworkAdministrator,l.HeadOfSoftware,l.HeadOfEngineering,l.VicePresident,l.CTO,l.BusinessAnalyst,l.BusinessManager,l.OperationsManager,l.CFO,l.CEO,l.SecurityGuard,l.SecurityOfficer,l.SecuritySupervisor,l.HeadOfSecurity]),m(i.Locations.AevumClarkeIncorporated)&&(s.favor=d[i.Locations.AevumClarkeIncorporated].favor,delete d[i.Locations.AevumClarkeIncorporated]),p(s);var c=new o(i.Locations.VolhavenOmniTekIncorporated,2.25,2.25,224);c.addPositions([l.SoftwareIntern,l.ITIntern,l.BusinessIntern,l.JuniorDev,l.SeniorDev,l.LeadDev,l.ITAnalyst,l.ITManager,l.SysAdmin,l.SecurityEngineer,l.NetworkEngineer,l.NetworkAdministrator,l.HeadOfSoftware,l.HeadOfEngineering,l.VicePresident,l.CTO,l.BusinessAnalyst,l.BusinessManager,l.OperationsManager,l.CFO,l.CEO,l.SecurityGuard,l.SecurityOfficer,l.SecuritySupervisor,l.HeadOfSecurity]),m(i.Locations.VolhavenOmniTekIncorporated)&&(c.favor=d[i.Locations.VolhavenOmniTekIncorporated].favor,delete d[i.Locations.VolhavenOmniTekIncorporated]),p(c);var u=new o(i.Locations.Sector12FourSigma,2.5,2.5,224);u.addPositions([l.SoftwareIntern,l.ITIntern,l.BusinessIntern,l.JuniorDev,l.SeniorDev,l.LeadDev,l.ITAnalyst,l.ITManager,l.SysAdmin,l.SecurityEngineer,l.NetworkEngineer,l.NetworkAdministrator,l.HeadOfSoftware,l.HeadOfEngineering,l.VicePresident,l.CTO,l.BusinessAnalyst,l.BusinessManager,l.OperationsManager,l.CFO,l.CEO,l.SecurityGuard,l.SecurityOfficer,l.SecuritySupervisor,l.HeadOfSecurity]),m(i.Locations.Sector12FourSigma)&&(u.favor=d[i.Locations.Sector12FourSigma].favor,delete d[i.Locations.Sector12FourSigma]),p(u);var h=new o(i.Locations.ChongqingKuaiGongInternational,2.2,2.2,224);h.addPositions([l.SoftwareIntern,l.ITIntern,l.BusinessIntern,l.JuniorDev,l.SeniorDev,l.LeadDev,l.ITAnalyst,l.ITManager,l.SysAdmin,l.SecurityEngineer,l.NetworkEngineer,l.NetworkAdministrator,l.HeadOfSoftware,l.HeadOfEngineering,l.VicePresident,l.CTO,l.BusinessAnalyst,l.BusinessManager,l.OperationsManager,l.CFO,l.CEO,l.SecurityGuard,l.SecurityOfficer,l.SecuritySupervisor,l.HeadOfSecurity]),m(i.Locations.ChongqingKuaiGongInternational)&&(h.favor=d[i.Locations.ChongqingKuaiGongInternational].favor,delete d[i.Locations.ChongqingKuaiGongInternational]),p(h);var g=new o(i.Locations.AevumFulcrumTechnologies,2,2,224);g.addPositions([l.SoftwareIntern,l.ITIntern,l.BusinessIntern,l.JuniorDev,l.SeniorDev,l.LeadDev,l.ITAnalyst,l.ITManager,l.SysAdmin,l.SecurityEngineer,l.NetworkEngineer,l.NetworkAdministrator,l.HeadOfSoftware,l.HeadOfEngineering,l.VicePresident,l.CTO,l.BusinessAnalyst,l.BusinessManager,l.OperationsManager,l.CFO,l.CEO]),m(i.Locations.AevumFulcrumTechnologies)&&(g.favor=d[i.Locations.AevumFulcrumTechnologies].favor,delete d[i.Locations.AevumFulcrumTechnologies]),p(g);var y=new o(i.Locations.IshimaStormTechnologies,1.8,1.8,199);y.addPositions([l.SoftwareIntern,l.JuniorDev,l.SeniorDev,l.LeadDev,l.SoftwareConsultant,l.SeniorSoftwareConsultant,l.ITAnalyst,l.ITManager,l.SysAdmin,l.SecurityEngineer,l.NetworkEngineer,l.NetworkAdministrator,l.HeadOfSoftware,l.HeadOfEngineering,l.VicePresident,l.CTO,l.BusinessIntern,l.BusinessAnalyst,l.BusinessManager,l.OperationsManager,l.CFO,l.CEO]),m(i.Locations.IshimaStormTechnologies)&&(y.favor=d[i.Locations.IshimaStormTechnologies].favor,delete d[i.Locations.IshimaStormTechnologies]),p(y);var f=new o(i.Locations.NewTokyoDefComm,1.75,1.75,199);f.addPositions([l.SoftwareIntern,l.JuniorDev,l.SeniorDev,l.LeadDev,l.SoftwareConsultant,l.SeniorSoftwareConsultant,l.ITIntern,l.ITAnalyst,l.ITManager,l.SysAdmin,l.SecurityEngineer,l.NetworkEngineer,l.NetworkAdministrator,l.HeadOfSoftware,l.HeadOfEngineering,l.CTO,l.CEO]),m(i.Locations.NewTokyoDefComm)&&(f.favor=d[i.Locations.NewTokyoDefComm].favor,delete d[i.Locations.NewTokyoDefComm]),p(f);var b=new o(i.Locations.VolhavenHeliosLabs,1.8,1.8,199);b.addPositions([l.SoftwareIntern,l.JuniorDev,l.SeniorDev,l.LeadDev,l.SoftwareConsultant,l.SeniorSoftwareConsultant,l.ITIntern,l.ITAnalyst,l.ITManager,l.SysAdmin,l.SecurityEngineer,l.NetworkEngineer,l.NetworkAdministrator,l.HeadOfSoftware,l.HeadOfEngineering,l.CTO,l.CEO]),m(i.Locations.VolhavenHeliosLabs)&&(b.favor=d[i.Locations.VolhavenHeliosLabs].favor,delete d[i.Locations.VolhavenHeliosLabs]),p(b);var v=new o(i.Locations.NewTokyoVitaLife,1.8,1.8,199);v.addPositions([l.SoftwareIntern,l.JuniorDev,l.SeniorDev,l.LeadDev,l.SoftwareConsultant,l.SeniorSoftwareConsultant,l.ITIntern,l.ITAnalyst,l.ITManager,l.SysAdmin,l.SecurityEngineer,l.NetworkEngineer,l.NetworkAdministrator,l.HeadOfSoftware,l.HeadOfEngineering,l.CTO,l.BusinessIntern,l.BusinessAnalyst,l.BusinessManager,l.OperationsManager,l.CFO,l.CEO]),m(i.Locations.NewTokyoVitaLife)&&(v.favor=d[i.Locations.NewTokyoVitaLife].favor,delete d[i.Locations.NewTokyoVitaLife]),p(v);var _=new o(i.Locations.Sector12IcarusMicrosystems,1.9,1.9,199);_.addPositions([l.SoftwareIntern,l.JuniorDev,l.SeniorDev,l.LeadDev,l.SoftwareConsultant,l.SeniorSoftwareConsultant,l.ITIntern,l.ITAnalyst,l.ITManager,l.SysAdmin,l.SecurityEngineer,l.NetworkEngineer,l.NetworkAdministrator,l.HeadOfSoftware,l.HeadOfEngineering,l.CTO,l.BusinessIntern,l.BusinessAnalyst,l.BusinessManager,l.OperationsManager,l.CFO,l.CEO]),m(i.Locations.Sector12IcarusMicrosystems)&&(_.favor=d[i.Locations.Sector12IcarusMicrosystems].favor,delete d[i.Locations.Sector12IcarusMicrosystems]),p(_);var k=new o(i.Locations.Sector12UniversalEnergy,2,2,199);k.addPositions([l.SoftwareIntern,l.JuniorDev,l.SeniorDev,l.LeadDev,l.SoftwareConsultant,l.SeniorSoftwareConsultant,l.ITIntern,l.ITAnalyst,l.ITManager,l.SysAdmin,l.SecurityEngineer,l.NetworkEngineer,l.NetworkAdministrator,l.HeadOfSoftware,l.HeadOfEngineering,l.CTO,l.BusinessIntern,l.BusinessAnalyst,l.BusinessManager,l.OperationsManager,l.CFO,l.CEO]),m(i.Locations.Sector12UniversalEnergy)&&(k.favor=d[i.Locations.Sector12UniversalEnergy].favor,delete d[i.Locations.Sector12UniversalEnergy]),p(k);var E=new o(i.Locations.AevumGalacticCybersystems,1.9,1.9,199);E.addPositions([l.SoftwareIntern,l.JuniorDev,l.SeniorDev,l.LeadDev,l.SoftwareConsultant,l.SeniorSoftwareConsultant,l.ITIntern,l.ITAnalyst,l.ITManager,l.SysAdmin,l.SecurityEngineer,l.NetworkEngineer,l.NetworkAdministrator,l.HeadOfSoftware,l.HeadOfEngineering,l.CTO,l.BusinessIntern,l.BusinessAnalyst,l.BusinessManager,l.OperationsManager,l.CFO,l.CEO]),m(i.Locations.AevumGalacticCybersystems)&&(E.favor=d[i.Locations.AevumGalacticCybersystems].favor,delete d[i.Locations.AevumGalacticCybersystems]),p(E);var O=new o(i.Locations.AevumAeroCorp,1.7,1.7,199);O.addPositions([l.SoftwareIntern,l.JuniorDev,l.SeniorDev,l.LeadDev,l.ITIntern,l.ITAnalyst,l.ITManager,l.SysAdmin,l.SecurityEngineer,l.NetworkEngineer,l.NetworkAdministrator,l.HeadOfSoftware,l.HeadOfEngineering,l.CTO,l.OperationsManager,l.CEO,l.SecurityGuard,l.SecurityOfficer,l.SecuritySupervisor,l.HeadOfSecurity]),m(i.Locations.AevumAeroCorp)&&(O.favor=d[i.Locations.AevumAeroCorp].favor,delete d[i.Locations.AevumAeroCorp]),p(O);var C=new o(i.Locations.VolhavenOmniaCybersystems,1.7,1.7,199);C.addPositions([l.SoftwareIntern,l.JuniorDev,l.SeniorDev,l.LeadDev,l.ITIntern,l.ITAnalyst,l.ITManager,l.SysAdmin,l.SecurityEngineer,l.NetworkEngineer,l.NetworkAdministrator,l.HeadOfSoftware,l.HeadOfEngineering,l.CTO,l.OperationsManager,l.CEO,l.SecurityGuard,l.SecurityOfficer,l.SecuritySupervisor,l.HeadOfSecurity]),m(i.Locations.VolhavenOmniaCybersystems)&&(C.favor=d[i.Locations.VolhavenOmniaCybersystems].favor,delete d[i.Locations.VolhavenOmniaCybersystems]),p(C);var w=new o(i.Locations.ChongqingSolarisSpaceSystems,1.7,1.7,199);w.addPositions([l.SoftwareIntern,l.JuniorDev,l.SeniorDev,l.LeadDev,l.ITIntern,l.ITAnalyst,l.ITManager,l.SysAdmin,l.SecurityEngineer,l.NetworkEngineer,l.NetworkAdministrator,l.HeadOfSoftware,l.HeadOfEngineering,l.CTO,l.OperationsManager,l.CEO,l.SecurityGuard,l.SecurityOfficer,l.SecuritySupervisor,l.HeadOfSecurity]),m(i.Locations.ChongqingSolarisSpaceSystems)&&(w.favor=d[i.Locations.ChongqingSolarisSpaceSystems].favor,delete d[i.Locations.ChongqingSolarisSpaceSystems]),p(w);var S=new o(i.Locations.Sector12DeltaOne,1.6,1.6,199);S.addPositions([l.SoftwareIntern,l.JuniorDev,l.SeniorDev,l.LeadDev,l.ITIntern,l.ITAnalyst,l.ITManager,l.SysAdmin,l.SecurityEngineer,l.NetworkEngineer,l.NetworkAdministrator,l.HeadOfSoftware,l.HeadOfEngineering,l.CTO,l.OperationsManager,l.CEO,l.SecurityGuard,l.SecurityOfficer,l.SecuritySupervisor,l.HeadOfSecurity]),m(i.Locations.Sector12DeltaOne)&&(S.favor=d[i.Locations.Sector12DeltaOne].favor,delete d[i.Locations.Sector12DeltaOne]),p(S);var T=new o(i.Locations.NewTokyoGlobalPharmaceuticals,1.8,1.8,224);T.addPositions([l.SoftwareIntern,l.ITIntern,l.BusinessIntern,l.JuniorDev,l.SeniorDev,l.LeadDev,l.SoftwareConsultant,l.SeniorSoftwareConsultant,l.ITAnalyst,l.ITManager,l.SecurityEngineer,l.NetworkEngineer,l.NetworkAdministrator,l.HeadOfSoftware,l.CTO,l.BusinessAnalyst,l.BusinessManager,l.OperationsManager,l.CFO,l.CEO,l.SecurityGuard,l.SecuritySupervisor,l.HeadOfSecurity]),m(i.Locations.NewTokyoGlobalPharmaceuticals)&&(T.favor=d[i.Locations.NewTokyoGlobalPharmaceuticals].favor,delete d[i.Locations.NewTokyoGlobalPharmaceuticals]),p(T);var x=new o(i.Locations.IshimaNovaMedical,1.75,1.75,199);x.addPositions([l.SoftwareIntern,l.ITIntern,l.BusinessIntern,l.JuniorDev,l.SeniorDev,l.LeadDev,l.SoftwareConsultant,l.SeniorSoftwareConsultant,l.ITAnalyst,l.ITManager,l.SecurityEngineer,l.NetworkEngineer,l.NetworkAdministrator,l.HeadOfSoftware,l.CTO,l.BusinessAnalyst,l.BusinessManager,l.OperationsManager,l.CFO,l.CEO,l.SecurityGuard,l.SecuritySupervisor,l.HeadOfSecurity]),m(i.Locations.IshimaNovaMedical)&&(x.favor=d[i.Locations.IshimaNovaMedical].favor,delete d[i.Locations.IshimaNovaMedical]),p(x);var R=new o(i.Locations.Sector12CIA,2,2,149);R.addPositions([l.SoftwareIntern,l.JuniorDev,l.SeniorDev,l.LeadDev,l.ITIntern,l.ITAnalyst,l.ITManager,l.SysAdmin,l.SecurityEngineer,l.NetworkEngineer,l.NetworkAdministrator,l.HeadOfSoftware,l.HeadOfEngineering,l.SecurityGuard,l.SecurityOfficer,l.SecuritySupervisor,l.HeadOfSecurity,l.FieldAgent,l.SecretAgent,l.SpecialOperative]),m(i.Locations.Sector12CIA)&&(R.favor=d[i.Locations.Sector12CIA].favor,delete d[i.Locations.Sector12CIA]),p(R);var I=new o(i.Locations.Sector12NSA,2,2,149);I.addPositions([l.SoftwareIntern,l.JuniorDev,l.SeniorDev,l.LeadDev,l.ITIntern,l.ITAnalyst,l.ITManager,l.SysAdmin,l.SecurityEngineer,l.NetworkEngineer,l.NetworkAdministrator,l.HeadOfSoftware,l.HeadOfEngineering,l.SecurityGuard,l.SecurityOfficer,l.SecuritySupervisor,l.HeadOfSecurity,l.FieldAgent,l.SecretAgent,l.SpecialOperative]),m(i.Locations.Sector12NSA)&&(I.favor=d[i.Locations.Sector12NSA].favor,delete d[i.Locations.Sector12NSA]),p(I);var N=new o(i.Locations.AevumWatchdogSecurity,1.5,1.5,124);N.addPositions([l.SoftwareIntern,l.JuniorDev,l.SeniorDev,l.LeadDev,l.SoftwareConsultant,l.SeniorSoftwareConsultant,l.ITIntern,l.ITAnalyst,l.ITManager,l.SysAdmin,l.SecurityEngineer,l.NetworkEngineer,l.NetworkAdministrator,l.HeadOfSoftware,l.HeadOfEngineering,l.SecurityGuard,l.SecurityOfficer,l.SecuritySupervisor,l.HeadOfSecurity,l.FieldAgent,l.SecretAgent,l.SpecialOperative]),m(i.Locations.AevumWatchdogSecurity)&&(N.favor=d[i.Locations.AevumWatchdogSecurity].favor,delete d[i.Locations.AevumWatchdogSecurity]),p(N);var M=new o(i.Locations.VolhavenLexoCorp,1.4,1.4,99);M.addPositions([l.SoftwareIntern,l.JuniorDev,l.SeniorDev,l.LeadDev,l.SoftwareConsultant,l.SeniorSoftwareConsultant,l.ITIntern,l.ITAnalyst,l.ITManager,l.SysAdmin,l.SecurityEngineer,l.NetworkEngineer,l.HeadOfSoftware,l.CTO,l.BusinessIntern,l.BusinessAnalyst,l.OperationsManager,l.CFO,l.CEO,l.SecurityGuard,l.SecurityOfficer,l.HeadOfSecurity]),m(i.Locations.VolhavenLexoCorp)&&(M.favor=d[i.Locations.VolhavenLexoCorp].favor,delete d[i.Locations.VolhavenLexoCorp]),p(M);var P=new o(i.Locations.AevumRhoConstruction,1.3,1.3,49);P.addPositions([l.SoftwareIntern,l.JuniorDev,l.SeniorDev,l.LeadDev,l.BusinessIntern,l.BusinessAnalyst,l.BusinessManager,l.OperationsManager]),m(i.Locations.AevumRhoConstruction)&&(P.favor=d[i.Locations.AevumRhoConstruction].favor,delete d[i.Locations.AevumRhoConstruction]),p(P);var A=new o(i.Locations.Sector12AlphaEnterprises,1.5,1.5,99);A.addPositions([l.SoftwareIntern,l.JuniorDev,l.SeniorDev,l.LeadDev,l.SoftwareConsultant,l.SeniorSoftwareConsultant,l.BusinessIntern,l.BusinessAnalyst,l.BusinessManager,l.OperationsManager]),m(i.Locations.Sector12AlphaEnterprises)&&(A.favor=d[i.Locations.Sector12AlphaEnterprises].favor,delete d[i.Locations.Sector12AlphaEnterprises]),p(A);var L=new o(i.Locations.AevumPolice,1.3,1.3,99);L.addPositions([l.SoftwareIntern,l.JuniorDev,l.SeniorDev,l.LeadDev,l.SecurityGuard,l.PoliceOfficer]),m(i.Locations.AevumPolice)&&(L.favor=d[i.Locations.AevumPolice].favor,delete d[i.Locations.AevumPolice]),p(L);var B=new o(i.Locations.VolhavenSysCoreSecurities,1.3,1.3,124);B.addPositions([l.SoftwareIntern,l.JuniorDev,l.SeniorDev,l.LeadDev,l.ITIntern,l.ITAnalyst,l.ITManager,l.SysAdmin,l.SecurityEngineer,l.NetworkEngineer,l.NetworkAdministrator,l.HeadOfSoftware,l.CTO]),m(i.Locations.VolhavenSysCoreSecurities)&&(B.favor=d[i.Locations.VolhavenSysCoreSecurities].favor,delete d[i.Locations.VolhavenSysCoreSecurities]),p(B);var j=new o(i.Locations.VolhavenCompuTek,1.2,1.2,74);j.addPositions([l.SoftwareIntern,l.JuniorDev,l.SeniorDev,l.LeadDev,l.SoftwareConsultant,l.SeniorSoftwareConsultant,l.ITIntern,l.ITAnalyst,l.ITManager,l.SysAdmin,l.SecurityEngineer,l.NetworkEngineer,l.NetworkAdministrator,l.HeadOfSoftware,l.CTO]),m(i.Locations.VolhavenCompuTek)&&(j.favor=d[i.Locations.VolhavenCompuTek].favor,delete d[i.Locations.VolhavenCompuTek]),p(j);var D=new o(i.Locations.AevumNetLinkTechnologies,1.2,1.2,99);D.addPositions([l.SoftwareIntern,l.JuniorDev,l.SeniorDev,l.LeadDev,l.SoftwareConsultant,l.SeniorSoftwareConsultant,l.ITIntern,l.ITAnalyst,l.ITManager,l.SysAdmin,l.SecurityEngineer,l.NetworkEngineer,l.NetworkAdministrator,l.HeadOfSoftware,l.CTO]),m(i.Locations.AevumNetLinkTechnologies)&&(D.favor=d[i.Locations.AevumNetLinkTechnologies].favor,delete d[i.Locations.AevumNetLinkTechnologies]),p(D);var F=new o(i.Locations.Sector12CarmichaelSecurity,1.2,1.2,74);F.addPositions([l.SoftwareIntern,l.JuniorDev,l.SeniorDev,l.LeadDev,l.SoftwareConsultant,l.SeniorSoftwareConsultant,l.ITIntern,l.ITAnalyst,l.ITManager,l.SysAdmin,l.SecurityEngineer,l.NetworkEngineer,l.NetworkAdministrator,l.HeadOfSoftware,l.HeadOfEngineering,l.SecurityGuard,l.SecurityOfficer,l.SecuritySupervisor,l.HeadOfSecurity,l.FieldAgent,l.SecretAgent,l.SpecialOperative]),m(i.Locations.Sector12CarmichaelSecurity)&&(F.favor=d[i.Locations.Sector12CarmichaelSecurity].favor,delete d[i.Locations.Sector12CarmichaelSecurity]),p(F);var H=new o(i.Locations.Sector12FoodNStuff,1,1,0);H.addPositions([l.Employee,l.PartTimeEmployee]),m(i.Locations.Sector12FoodNStuff)&&(H.favor=d[i.Locations.Sector12FoodNStuff].favor,delete d[i.Locations.Sector12FoodNStuff]),p(H);var W=new o(i.Locations.Sector12JoesGuns,1,1,0);W.addPositions([l.Employee,l.PartTimeEmployee]),m(i.Locations.Sector12JoesGuns)&&(W.favor=d[i.Locations.Sector12JoesGuns].favor,delete d[i.Locations.Sector12JoesGuns]),p(W);var G=new o(i.Locations.IshimaOmegaSoftware,1.1,1.1,49);G.addPositions([l.SoftwareIntern,l.JuniorDev,l.SeniorDev,l.LeadDev,l.SoftwareConsultant,l.SeniorSoftwareConsultant,l.ITIntern,l.ITAnalyst,l.ITManager,l.CTO,l.CEO]),m(i.Locations.IshimaOmegaSoftware)&&(G.favor=d[i.Locations.IshimaOmegaSoftware].favor,delete d[i.Locations.IshimaOmegaSoftware]),p(G);var U=new o(i.Locations.NewTokyoNoodleBar,1,1,0);U.addPositions([l.Waiter,l.PartTimeWaiter]),m(i.Locations.NewTokyoNoodleBar)&&(U.favor=d[i.Locations.NewTokyoNoodleBar].favor,delete d[i.Locations.NewTokyoNoodleBar]),p(U)}let d={};function h(e){d=JSON.parse(e,r.Reviver)}function p(e){var t=e.companyName;d[t]=e}function m(e){return d.hasOwnProperty(e)}function g(e,t,n=!1){var a="",i=e.jobStatReqOffset,r=t.requiredHacking>0?t.requiredHacking+i:0,o=t.requiredStrength>0?t.requiredStrength+i:0,s=t.requiredDefense>0?t.requiredDefense+i:0,l=t.requiredDexterity>0?t.requiredDexterity+i:0,c=t.requiredDexterity>0?t.requiredDexterity+i:0,u=t.requiredCharisma>0?t.requiredCharisma+i:0,d=t.requiredReputation;return n?(a="Requires:
",a+=r.toString()+" hacking
",a+=o.toString()+" strength
",a+=s.toString()+" defense
",a+=l.toString()+" dexterity
",a+=c.toString()+" agility
",a+=u.toString()+" charisma
",a+=d.toString()+" reputation"):(a="(Requires ",r>0&&(a+=r+" hacking, "),o>0&&(a+=o+" strength, "),s>0&&(a+=s+" defense, "),l>0&&(a+=l+" dexterity, "),c>0&&(a+=c+" agility, "),u>0&&(a+=u+" charisma, "),d>1&&(a+=d+" reputation, "),a=a.substring(0,a.length-2),a+=")"),a}},function(e,t,n){"use strict";function a(e,t){var n;return null==t?(console.log("Reviver WRONGLY called with key: "+e+", and value: "+t),0):"object"==typeof t&&"string"==typeof t.ctor&&void 0!==t.data&&"function"==typeof(n=a.constructors[t.ctor]||window[t.ctor])&&"function"==typeof n.fromJSON?n.fromJSON(t):t}function i(e,t,n){var a,i,r;for(n||(n=Object.keys(t)),a={},i=0;i0&&t>=n;)++e,t-=n,n*=r.a.FactionReputationToFavorMult;return[e,t]},_.prototype.addAllAugmentations=function(){for(var e in this.augmentations.length=0,a.c)a.c.hasOwnProperty(e)&&this.augmentations.push(e)},_.prototype.toJSON=function(){return Object(f.Generic_toJSON)("Faction",this)},_.fromJSON=function(e){return Object(f.Generic_fromJSON)(_,e.data)},f.Reviver.constructors.Faction=_;let k={};function E(e){k=JSON.parse(e,f.Reviver)}function O(e){return k.hasOwnProperty(e)}function C(){for(const e in s.FactionInfos)w(new _(e))}function w(e){if(!(e instanceof _))throw new Error("Invalid argument 'newFactionObject' passed into resetFaction()");var t,n,a=e.name;O(a)&&(e.favor=k[a].favor,delete k[a]),n=(t=e).name,k[n]=t}function S(e){u.Settings.SuppressFactionInvites?(e.alreadyInvited=!0,c.a.factionInvitations.push(e.name),d.routing.isOn(d.Page.Factions)&&o.Engine.loadFactionsContent()):Object(m.a)(e)}function T(e){e.isMember=!0,c.a.factions.push(e.name);const t=e.getInfo();for(const e in t.enemies){const n=t.enemies[e];k[n].isBanned=!0}}function x(e){var t=k[e];if(null==t)throw new Error("Invalid factionName passed into displayFactionContent: "+e);var n=t.getInfo();Object(g.removeChildrenFromElement)(o.Engine.Display.factionContent);var a=[];a.push(Object(y.createElement)("h1",{innerText:e})),a.push(Object(y.createElement)("pre",{innerHTML:""+n.infoText+""})),a.push(Object(y.createElement)("p",{innerText:"---------------"}));var s=t.getFavorGain();2!=s.length&&(s=0),s=s[0],a.push(Object(y.createElement)("p",{innerText:"Reputation: "+Object(b.formatNumber)(t.playerReputation,4),tooltip:"You will earn "+Object(b.formatNumber)(s,0)+" faction favor upon resetting after installing an Augmentation"})),a.push(Object(y.createElement)("p",{innerText:"---------------"})),a.push(Object(y.createElement)("p",{innerText:"Faction Favor: "+Object(b.formatNumber)(t.favor,0),tooltip:"Faction favor increases the rate at which you earn reputation for this faction by 1% per favor. Faction favor is gained whenever you reset after installing an Augmentation. The amount of favor you gain depends on how much reputation you have with the faction"})),a.push(Object(y.createElement)("p",{innerText:"---------------"})),a.push(Object(y.createElement)("pre",{id:"faction-work-description-text",innerText:"Perform work/carry out assignments for your faction to help further its cause! By doing so you will earn reputation for your faction. You will also gain reputation passively over time, although at a very slow rate. Earning reputation will allow you to purchase Augmentations through this faction, which are powerful upgrades that enhance your abilities. Note that you cannot use your terminal or create scripts when you are performing a task!"})),a.push(Object(y.createElement)("br"));var u=Object(y.createElement)("div",{id:"faction-hack-mission-div",class:"faction-work-div"}),d=Object(y.createElement)("div",{class:"faction-work-div-wrapper"});u.appendChild(d),d.appendChild(Object(y.createElement)("a",{class:"a-link-button",innerText:"Hacking Mission",clickListener:()=>{o.Engine.loadMissionContent();var e=new l.a(t.playerReputation,t);return Object(l.d)(!0,e),e.init(),!1}})),d.appendChild(Object(y.createElement)("p",{innerText:"Attempt a hacking mission for your faction. A mission is a mini game that, if won, earns you significant reputation with this faction. (Recommended hacking level: 200+)"})),a.push(u);var m=Object(y.createElement)("div",{id:"faction-hack-div",class:"faction-work-div"}),f=Object(y.createElement)("div",{class:"faction-work-div-wrapper"});m.appendChild(f),f.appendChild(Object(y.createElement)("a",{class:"a-link-button",innerText:"Hacking Contracts",clickListener:()=>(c.a.startFactionHackWork(t),!1)})),f.appendChild(Object(y.createElement)("p",{innerText:"Complete hacking contracts for your faction. Your effectiveness, which determines how much reputation you gain for this faction, is based on your hacking skill. You will gain hacking exp."})),a.push(m);var _=Object(y.createElement)("div",{id:"faction-fieldwork-div",class:"faction-work-div"}),E=Object(y.createElement)("div",{class:"faction-work-div-wrapper"});_.appendChild(E),E.appendChild(Object(y.createElement)("a",{class:"a-link-button",innerText:"Field Work",clickListener:()=>(c.a.startFactionFieldWork(t),!1)})),E.appendChild(Object(y.createElement)("p",{innerText:"Carry out field missions for your faction. Your effectiveness, which determines how much reputation you gain for this faction, is based on all of your stats. You will gain exp for all stats."})),a.push(_);var O=Object(y.createElement)("div",{id:"faction-securitywork-div",class:"faction-work-div"}),C=Object(y.createElement)("div",{class:"faction-work-div-wrapper"});O.appendChild(C),C.appendChild(Object(y.createElement)("a",{class:"a-link-button",innerText:"Security Work",clickListener:()=>(c.a.startFactionSecurityWork(t),!1)})),C.appendChild(Object(y.createElement)("p",{innerText:"Serve in a security detail for your faction. Your effectiveness, which determines how much reputation you gain for this faction, is based on your combat stats. You will gain exp for all combat stats."})),a.push(O);var w=Object(y.createElement)("div",{id:"faction-donate-div",class:"faction-work-div"}),S=Object(y.createElement)("div",{class:"faction-work-div-wrapper"});w.appendChild(S);var T=Object(y.createElement)("p",{innerText:"This donation will result in 0.000 reputation gain"}),R=Object(y.createElement)("input",{placeholder:"Donation amount",inputListener:()=>{let e=0;if(""!==R.value&&(e=parseFloat(R.value)),isNaN(e))T.innerText="Invalid donate amount entered!";else{var t=e/r.a.DonateMoneyToRepDivisor*c.a.faction_rep_mult;T.innerText="This donation will result in "+Object(b.formatNumber)(t,3)+" reputation gain"}}});if(S.appendChild(Object(y.createElement)("a",{class:"a-link-button",innerText:"Donate Money",clickListener:()=>{var n=parseFloat(R.value);if(isNaN(n)||n<0)Object(p.dialogBoxCreate)("Invalid amount entered!");else if(c.a.money.lt(n))Object(p.dialogBoxCreate)("You cannot afford to donate this much money!");else{c.a.loseMoney(n);var a=n/r.a.DonateMoneyToRepDivisor*c.a.faction_rep_mult;t.playerReputation+=a,Object(p.dialogBoxCreate)("You just donated "+h.a.format(n,"$0.000a")+" to "+t.name+" to gain "+Object(b.formatNumber)(a,3)+" reputation"),x(e)}}})),S.appendChild(R),S.appendChild(T),a.push(w),a.push(Object(y.createElement)("pre",{innerHTML:"
As your reputation with this faction rises, you will unlock Augmentations, which you can purchase to enhance your abilities.

"})),a.push(Object(y.createElement)("a",{class:"a-link-button",innerText:"Purchase Augmentations",clickListener:()=>(o.Engine.hideAllContent(),o.Engine.Display.factionAugmentationsContent.style.display="block",I(e),!1)})),2!=c.a.bitNodeN||"Slum Snakes"!=e&&"Tetrads"!=e&&"The Syndicate"!=e&&"The Dark Army"!=e&&"Speakers for the Dead"!=e&&"NiteSec"!=e&&"The Black Hand"!=e){if(!t.isMember)throw new Error("Not a member of this faction, cannot display faction information");w.style.display=t.favor>=Math.floor(r.a.BaseFavorToDonate*i.BitNodeMultipliers.RepToDonateToFaction)?"inline":"none",u.style.display=n.offerHackingMission?"inline":"none",m.style.display=n.offerHackingWork?"inline":"none",_.style.display=n.offerFieldWork?"inline":"none",O.style.display=n.offerSecurityWork?"inline":"none";for(P=0;P{if(c.a.inGang())o.Engine.loadGangContent();else{var t=Object(v.d)(),n=Object(v.c)();t.innerHTML="Create Gang",n.innerHTML="Cancel",t.addEventListener("click",()=>{var t=!1;"NiteSec"!==e&&"The Black Hand"!==e||(t=!0),c.a.startGang(e,t),document.getElementById("gang-tab").style.display="list-item",document.getElementById("world-menu-header").click(),document.getElementById("world-menu-header").click(),o.Engine.loadGangContent(),Object(v.a)()}),n.addEventListener("click",()=>{Object(v.a)()}),Object(v.b)("Would you like to create a new Gang with "+e+"?

Note that this will prevent you from creating a Gang with any other Faction until this BitNode is destroyed. There are NO differences between the Factions you can create a Gang with and each of these Factions have all Augmentations available")}}})),M.appendChild(Object(y.createElement)("p",{innerText:"Create and manage a gang for this Faction. Gangs will earn you money and faction reputation."})),a.splice(7,1,N),c.a.inGang()&&c.a.gang.facName!=e&&(N.style.display="none");for(var P=0;P(o.Engine.loadFactionContent(),x(e),!1)})),n.push(Object(y.createElement)("h1",{innerText:"Faction Augmentations"})),n.push(Object(y.createElement)("p",{id:"faction-augmentations-page-desc",innerHTML:"Lists all Augmentations that are available to purchase from "+e+"

Augmentations are powerful upgrades that will enhance your abilities."})),n.push(Object(y.createElement)("br")),n.push(Object(y.createElement)("br"));var i=Object(y.createElement)("ul"),r=Object(y.createElement)("a",{innerText:"Sort by Cost",class:"a-link-button",clickListener:()=>{R="cost";var e=t.augmentations.slice();e.sort((e,t)=>{var n=a.c[e],i=a.c[t];if(null==n||null==i)throw new Error("Invalid Augmentation Names");return n.baseCost-i.baseCost}),Object(g.removeChildrenFromElement)(i),N(i,e,t)}}),s=Object(y.createElement)("a",{innerText:"Sort by Reputation",class:"a-link-button",clickListener:()=>{R="reputation";var e=t.augmentations.slice();e.sort((e,t)=>{var n=a.c[e],i=a.c[t];if(null==n||null==i)throw new Error("Invalid Augmentation Names");return n.baseRepRequirement-i.baseRepRequirement}),Object(g.removeChildrenFromElement)(i),N(i,e,t)}}),l=Object(y.createElement)("a",{innerText:"Sort by Default Order",class:"a-link-button",clickListener:()=>{R="default",Object(g.removeChildrenFromElement)(i),N(i,t.augmentations,t)}});switch(n.push(r),n.push(s),n.push(l),R){case"cost":r.click();break;case"reputation":s.click();break;default:l.click()}n.push(i);for(var c=0;c(u.Settings.SuppressBuyAugmentationConfirmation?A(o,n):M(o,n),!1)});o.name==a.b.NeuroFluxGovernor&&(g.innerText+=" - Level "+L());var f=Object(y.createElement)("p",{display:"inline"}),v=o.baseRepRequirement*i.augmentationRepRequirementMult;P(o)?o.name!=a.b.NeuroFluxGovernor&&(o.owned||s)?(g.setAttribute("class","a-link-button-inactive"),f.innerHTML="ALREADY OWNED"):n.playerReputation>=v?(g.setAttribute("class","a-link-button"),f.innerHTML="UNLOCKED - "+h.a.format(o.baseCost*i.augmentationPriceMult,"$0.000a")):(g.setAttribute("class","a-link-button-inactive"),f.innerHTML="LOCKED (Requires "+Object(b.formatNumber)(v,1)+" faction reputation) - "+h.a.format(o.baseCost*i.augmentationPriceMult,"$0.000a"),f.style.color="red"):(g.setAttribute("class","a-link-button-inactive"),f.innerHTML="LOCKED (Requires "+o.prereqs.join(",")+" as prerequisite(s))",f.style.color="red"),m.appendChild(g),p.appendChild(m),p.appendChild(f),d.appendChild(p),e.appendChild(d)}()}function M(e,t){const n=t.getInfo();var a=Object(v.d)(),i=Object(v.c)();a.innerHTML="Purchase",i.innerHTML="Cancel",a.addEventListener("click",function(){A(e,t)}),i.addEventListener("click",function(){Object(v.a)()}),Object(v.b)("

"+e.name+"


"+e.info+"


Would you like to purchase the "+e.name+" Augmentation for $"+Object(b.formatNumber)(e.baseCost*n.augmentationPriceMult,2)+"?")}function P(e){var t=!0;if(e.prereqs&&e.prereqs.length>0)for(var n=0;n
This augmentation increases all of the player's combat stats by 8%."});t.addToFactions(["Tetrads","The Dark Army","The Syndicate"]),I(C.HemoRecirculator)&&delete E[C.HemoRecirculator],O(t);var n=new k({name:C.Targeting1,moneyCost:3e6,repCost:2e3,info:"This cranial implant is embedded within the player's inner ear structure and optic nerves. It regulates and enhances the user's balance and hand-eye coordination. It is also capable of augmenting reality by projecting digital information directly onto the retina. These enhancements allow the player to better lock-on and keep track of enemies.

This augmentation increases the player's dexterity by 10%."});n.addToFactions(["Slum Snakes","The Dark Army","The Syndicate","Sector-12","Volhaven","Ishima","OmniTek Incorporated","KuaiGong International","Blade Industries"]),I(C.Targeting1)&&delete E[C.Targeting1],O(n);var r=new k({name:C.Targeting2,moneyCost:85e5,repCost:3500,info:"This is an upgrade of the Augmented Targeting I cranial implant, which is capable of augmenting reality and enhances the user's balance and hand-eye coordination.

This augmentation increases the player's dexterity by 20%.",prereqs:[C.Targeting1]});r.addToFactions(["The Dark Army","The Syndicate","Sector-12","Volhaven","Ishima","OmniTek Incorporated","KuaiGong International","Blade Industries"]),I(C.Targeting2)&&delete E[C.Targeting2],O(r);var s=new k({name:C.Targeting3,moneyCost:23e6,repCost:11e3,info:"This is an upgrade of the Augmented Targeting II cranial implant, which is capable of augmenting reality and enhances the user's balance and hand-eye coordination.

This augmentation increases the player's dexterity by 30%.",prereqs:[C.Targeting2]});s.addToFactions(["The Dark Army","The Syndicate","OmniTek Incorporated","KuaiGong International","Blade Industries","The Covenant"]),I(C.Targeting3)&&delete E[C.Targeting3],O(s);var l=new k({name:C.SyntheticHeart,moneyCost:575e6,repCost:3e5,info:"This advanced artificial heart, created from plasteel and graphene, is capable of pumping more blood at much higher efficiencies than a normal human heart.

This augmentation increases the player's agility and strength by 50%."});l.addToFactions(["KuaiGong International","Fulcrum Secret Technologies","Speakers for the Dead","NWO","The Covenant","Daedalus","Illuminati"]),I(C.SyntheticHeart)&&delete E[C.SyntheticHeart],O(l);var u=new k({name:C.SynfibrilMuscle,repCost:175e3,moneyCost:225e6,info:"The myofibrils in human muscles are injected with special chemicals that react with the proteins inside the myofibrils, altering their underlying structure. The end result is muscles that are stronger and more elastic. Scientists have named these artificially enhanced units 'synfibrils'.

This augmentation increases the player's strength and defense by 30%."});u.addToFactions(["KuaiGong International","Fulcrum Secret Technologies","Speakers for the Dead","NWO","The Covenant","Daedalus","Illuminati","Blade Industries"]),I(C.SynfibrilMuscle)&&delete E[C.SynfibrilMuscle],O(u);var d=new k({name:C.CombatRib1,repCost:3e3,moneyCost:475e4,info:"The human body's ribs are replaced with artificial ribs that automatically and continuously release cognitive and performance-enhancing drugs into the bloodstream, improving the user's abilities in combat.

This augmentation increases the player's strength and defense by 10%."});d.addToFactions(["Slum Snakes","The Dark Army","The Syndicate","Sector-12","Volhaven","Ishima","OmniTek Incorporated","KuaiGong International","Blade Industries"]),I(C.CombatRib1)&&delete E[C.CombatRib1],O(d);var h=new k({name:C.CombatRib2,repCost:7500,moneyCost:13e6,info:"This is an upgrade to the Combat Rib I augmentation, and is capable of releasing even more potent combat-enhancing drugs into the bloodstream.

This augmentation increases the player's strength and defense by 14%.",prereqs:[C.CombatRib1]});h.addToFactions(["The Dark Army","The Syndicate","Sector-12","Volhaven","Ishima","OmniTek Incorporated","KuaiGong International","Blade Industries"]),I(C.CombatRib2)&&delete E[C.CombatRib2],O(h);var p=new k({name:C.CombatRib3,repCost:14e3,moneyCost:24e6,info:"This is an upgrade to the Combat Rib II augmentation, and is capable of releasing even more potent combat-enhancing drugs into the bloodstream

.This augmentation increases the player's strength and defense by 18%.",prereqs:[C.CombatRib2]});p.addToFactions(["The Dark Army","The Syndicate","OmniTek Incorporated","KuaiGong International","Blade Industries","The Covenant"]),I(C.CombatRib3)&&delete E[C.CombatRib3],O(p);var m=new k({name:C.NanofiberWeave,repCost:15e3,moneyCost:25e6,info:"Synthetic nanofibers are woven into the skin's extracellular matrix using electrospinning. This improves the skin's ability to regenerate itself and protect the body from external stresses and forces.

This augmentation increases the player's strength and defense by 20%."});m.addToFactions(["Tian Di Hui","The Syndicate","The Dark Army","Speakers for the Dead","Blade Industries","Fulcrum Secret Technologies","OmniTek Incorporated"]),I(C.NanofiberWeave)&&delete E[C.NanofiberWeave],O(m);var g=new k({name:C.SubdermalArmor,repCost:35e4,moneyCost:65e7,info:"The NEMEAN Subdermal Weave is a thin, light-weight, graphene plating that houses a dilatant fluid. The material is implanted underneath the skin, and is the most advanced form of defensive enhancement that has ever been created. The dilatant fluid, despite being thin and light, is extremely effective at stopping piercing blows and reducing blunt trauma. The properties of graphene allow the plating to mitigate damage from any fire-related or electrical traumas.

This augmentation increases the player's defense by 120%."});g.addToFactions(["The Syndicate","Fulcrum Secret Technologies","Illuminati","Daedalus","The Covenant"]),I(C.SubdermalArmor)&&delete E[C.SubdermalArmor],O(g);var y=new k({name:C.WiredReflexes,repCost:500,moneyCost:5e5,info:"Synthetic nerve-enhancements are injected into all major parts of the somatic nervous system, supercharging the body's ability to send signals through neurons. This results in increased reflex speed.

This augmentation increases the player's agility and dexterity by 5%."});y.addToFactions(["Tian Di Hui","Slum Snakes","Sector-12","Volhaven","Aevum","Ishima","The Syndicate","The Dark Army","Speakers for the Dead"]),I(C.WiredReflexes)&&delete E[C.WiredReflexes],O(y);var b=new k({name:C.GrapheneBoneLacings,repCost:45e4,moneyCost:85e7,info:"A graphene-based material is grafted and fused into the user's bones, significantly increasing their density and tensile strength.

This augmentation increases the player's strength and defense by 70%."});b.addToFactions(["Fulcrum Secret Technologies","The Covenant"]),I(C.GrapheneBoneLacings)&&delete E[C.GrapheneBoneLacings],O(b);var v=new k({name:C.BionicSpine,repCost:18e3,moneyCost:25e6,info:"An artificial spine created from plasteel and carbon fibers that completely replaces the organic spine. Not only is the Bionic Spine physically stronger than a human spine, but it is also capable of digitally stimulating and regulating the neural signals that are sent and received by the spinal cord. This results in greatly improved senses and reaction speeds.

This augmentation increases all of the player's combat stats by 15%."});v.addToFactions(["Speakers for the Dead","The Syndicate","KuaiGong International","OmniTek Incorporated","Blade Industries"]),I(C.BionicSpine)&&delete E[C.BionicSpine],O(v);var _=new k({name:C.GrapheneBionicSpine,repCost:65e4,moneyCost:12e8,info:"An upgrade to the Bionic Spine augmentation. It fuses the implant with an advanced graphene material to make it much stronger and lighter.

This augmentation increases all of the player's combat stats by 60%.",prereqs:[C.BionicSpine]});_.addToFactions(["Fulcrum Secret Technologies","ECorp"]),I(C.GrapheneBionicSpine)&&delete E[C.GrapheneBionicSpine],O(_);var w=new k({name:C.BionicLegs,repCost:6e4,moneyCost:75e6,info:"Cybernetic legs created from plasteel and carbon fibers that completely replace the user's organic legs.

This augmentation increases the player's agility by 60%."});w.addToFactions(["Speakers for the Dead","The Syndicate","KuaiGong International","OmniTek Incorporated","Blade Industries"]),I(C.BionicLegs)&&delete E[C.BionicLegs],O(w);var T=new k({name:C.GrapheneBionicLegs,repCost:3e5,moneyCost:9e8,info:"An upgrade to the Bionic Legs augmentation. It fuses the implant with an advanced graphene material to make it much stronger and lighter.

This augmentation increases the player's agility by 150%.",prereqs:[C.BionicLegs]});T.addToFactions(["MegaCorp","ECorp","Fulcrum Secret Technologies"]),I(C.GrapheneBionicLegs)&&delete E[C.GrapheneBionicLegs],O(T);var x=new k({name:C.SpeechProcessor,repCost:3e3,moneyCost:1e7,info:"A cochlear implant with an embedded computer that analyzes incoming speech. The embedded computer processes characteristics of incoming speech, such as tone and inflection, to pick up on subtle cues and aid in social interactions.

This augmentation increases the player's charisma by 20%."});x.addToFactions(["Tian Di Hui","Chongqing","Sector-12","New Tokyo","Aevum","Ishima","Volhaven","Silhouette"]),I(C.SpeechProcessor)&&delete E[C.SpeechProcessor],O(x);let R=new k({name:C.TITN41Injection,repCost:1e4,moneyCost:38e6,info:"TITN is a series of viruses that targets and alters the sequences of human DNA in genes that control personality. The TITN-41 strain alters these genes so that the subject becomes more outgoing and socialable.

This augmentation increases the player's charisma and charisma experience gain rate by 15%."});R.addToFactions(["Silhouette"]),I(C.TITN41Injection)&&delete E[C.TITN41Injection],O(R);var N=new k({name:C.EnhancedSocialInteractionImplant,repCost:15e4,moneyCost:275e6,info:"A cranial implant that greatly assists in the user's ability to analyze social situations and interactions. The system uses a wide variety of factors such as facial expression, body language, and the voice's tone/inflection to determine the best course of action during socialsituations. The implant also uses deep learning software to continuously learn new behaviorpatterns and how to best respond.

This augmentation increases the player's charisma and charisma experience gain rate by 60%."});N.addToFactions(["Bachman & Associates","NWO","Clarke Incorporated","OmniTek Incorporated","Four Sigma"]),I(C.EnhancedSocialInteractionImplant)&&delete E[C.EnhancedSocialInteractionImplant],O(N);var M=new k({name:C.BitWire,repCost:1500,moneyCost:2e6,info:"A small brain implant embedded in the cerebrum. This regulates and improves the brain's computing capabilities.

This augmentation increases the player's hacking skill by 5%."});M.addToFactions(["CyberSec","NiteSec"]),I(C.BitWire)&&delete E[C.BitWire],O(M);var P=new k({name:C.ArtificialBioNeuralNetwork,repCost:11e4,moneyCost:6e8,info:"A network consisting of millions of nanoprocessors is embedded into the brain. The network is meant to mimick the way a biological brain solves a problem, which each nanoprocessor acting similar to the way a neuron would in a neural network. However, these nanoprocessors are programmed to perform computations much faster than organic neurons, allowing its user to solve much more complex problems at a much faster rate.

This augmentation:
Increases the player's hacking speed by 3%.
Increases the amount of money the player's gains from hacking by 15%.
Increases the player's hacking skill by 12%."});P.addToFactions(["BitRunners","Fulcrum Secret Technologies"]),I(C.ArtificialBioNeuralNetwork)&&delete E[C.ArtificialBioNeuralNetwork],O(P);var A=new k({name:C.ArtificialSynapticPotentiation,repCost:2500,moneyCost:16e6,info:"The body is injected with a chemical that artificially induces synaptic potentiation, otherwise known as the strengthening of synapses. This results in a enhanced cognitive abilities.

This augmentation:
Increases the player's hacking speed by 2%
Increases the player's hacking chance by 5%.
Increases the player's hacking experience gain rate by 5%."});A.addToFactions(["The Black Hand","NiteSec"]),I(C.ArtificialSynapticPotentiation)&&delete E[C.ArtificialSynapticPotentiation],O(A);var L=new k({name:C.EnhancedMyelinSheathing,repCost:4e4,moneyCost:275e6,info:"Electrical signals are used to induce a new, artificial form of myelinogensis in the human body. This process results in the proliferation of new, synthetic myelin sheaths in the nervous system. These myelin sheaths can propogate neuro-signals much faster than their organic counterparts, leading to greater processing speeds and better brain function.

This augmentation:
Increases the player's hacking speed by 3%.
Increases the player's hacking skill by 8%.
Increases the player's hacking experience gain rate by 10%."});L.addToFactions(["Fulcrum Secret Technologies","BitRunners","The Black Hand"]),I(C.EnhancedMyelinSheathing)&&delete E[C.EnhancedMyelinSheathing],O(L);var B=new k({name:C.SynapticEnhancement,repCost:800,moneyCost:15e5,info:"A small cranial implant that continuously uses weak electric signals to stimulate the brain and induce stronger synaptic activity. This improves the user's cognitive abilities.

This augmentation increases the player's hacking speed by 3%."});B.addToFactions(["CyberSec"]),I(C.SynapticEnhancement)&&delete E[C.SynapticEnhancement],O(B);var j=new k({name:C.NeuralRetentionEnhancement,repCost:8e3,moneyCost:5e7,info:"Chemical injections are used to permanently alter and strengthen the brain's neuronal circuits, strengthening its ability to retain information.

This augmentation increases the player's hacking experience gain rate by 25%."});j.addToFactions(["NiteSec"]),I(C.NeuralRetentionEnhancement)&&delete E[C.NeuralRetentionEnhancement],O(j);var D=new k({name:C.DataJack,repCost:45e3,moneyCost:9e7,info:"A brain implant that provides an interface for direct, wireless communication between a computer's main memory and the mind. This implant allows the user to not only access a computer's memory, but also alter and delete it.

This augmentation increases the amount of money the player gains from hacking by 25%."});D.addToFactions(["BitRunners","The Black Hand","NiteSec","Chongqing","New Tokyo"]),I(C.DataJack)&&delete E[C.DataJack],O(D);var F=new k({name:C.ENM,repCost:6e3,moneyCost:5e7,info:"A thin device embedded inside the arm containing a wireless module capable of connecting to nearby networks. Once connected, the Netburner Module is capable of capturing and processing all of the traffic on that network. By itself, the Embedded Netburner Module does not do much, but a variety of very powerful upgrades can be installed that allow you to fully control the traffic on a network.

This augmentation increases the player's hacking skill by 8%."});F.addToFactions(["BitRunners","The Black Hand","NiteSec","ECorp","MegaCorp","Fulcrum Secret Technologies","NWO","Blade Industries"]),I(C.ENM)&&delete E[C.ENM],O(F);var H=new k({name:C.ENMCore,repCost:1e5,moneyCost:5e8,info:"The Core library is an implant that upgrades the firmware of the Embedded Netburner Module. This upgrade allows the Embedded Netburner Module to generate its own data on a network.

This augmentation:
Increases the player's hacking speed by 3%.
Increases the amount of money the player gains from hacking by 10%.
Increases the player's chance of successfully performing a hack by 3%.
Increases the player's hacking experience gain rate by 7%.
Increases the player's hacking skill by 7%.",prereqs:[C.ENM]});H.addToFactions(["BitRunners","The Black Hand","ECorp","MegaCorp","Fulcrum Secret Technologies","NWO","Blade Industries"]),I(C.ENMCore)&&delete E[C.ENMCore],O(H);var W=new k({name:C.ENMCoreV2,repCost:4e5,moneyCost:9e8,info:"The Core V2 library is an implant that upgrades the firmware of the Embedded Netburner Module. This upgraded firmware allows the Embedded Netburner Module to control the information on a network by re-routing traffic, spoofing IP addresses, or altering the data inside network packets.

This augmentation:
Increases the player's hacking speed by 5%.
Increases the amount of money the player gains from hacking by 30%.
Increases the player's chance of successfully performing a hack by 5%.
Increases the player's hacking experience gain rate by 15%.
Increases the player's hacking skill by 8%.",prereqs:[C.ENMCore]});W.addToFactions(["BitRunners","ECorp","MegaCorp","Fulcrum Secret Technologies","NWO","Blade Industries","OmniTek Incorporated","KuaiGong International"]),I(C.ENMCoreV2)&&delete E[C.ENMCoreV2],O(W);var G=new k({name:C.ENMCoreV3,repCost:7e5,moneyCost:15e8,info:"The Core V3 library is an implant that upgrades the firmware of the Embedded Netburner Module. This upgraded firmware allows the Embedded Netburner Module to seamlessly inject code into any device on a network.

This augmentation:
Increases the player's hacking speed by 5%.
Increases the amount of money the player gains from hacking by 40%.
Increases the player's chance of successfully performing a hack by 10%.
Increases the player's hacking experience gain rate by 25%.
Increases the player's hacking skill by 10%.",prereqs:[C.ENMCoreV2]});G.addToFactions(["ECorp","MegaCorp","Fulcrum Secret Technologies","NWO","Daedalus","The Covenant","Illuminati"]),I(C.ENMCoreV3)&&delete E[C.ENMCoreV3],O(G);var U=new k({name:C.ENMAnalyzeEngine,repCost:25e4,moneyCost:12e8,info:"Installs the Analyze Engine for the Embedded Netburner Module, which is a CPU cluster that vastly outperforms the Netburner Module's native single-core processor.

This augmentation increases the player's hacking speed by 10%.",prereqs:[C.ENM]});U.addToFactions(["ECorp","MegaCorp","Fulcrum Secret Technologies","NWO","Daedalus","The Covenant","Illuminati"]),I(C.ENMAnalyzeEngine)&&delete E[C.ENMAnalyzeEngine],O(U);var K=new k({name:C.ENMDMA,repCost:4e5,moneyCost:14e8,info:"This implant installs a Direct Memory Access (DMA) controller into the Embedded Netburner Module. This allows the Module to send and receive data directly to and from the main memory of devices on a network.

This augmentation:
Increases the amount of money the player gains from hacking by 40%.
Increases the player's chance of successfully performing a hack by 20%.",prereqs:[C.ENM]});K.addToFactions(["ECorp","MegaCorp","Fulcrum Secret Technologies","NWO","Daedalus","The Covenant","Illuminati"]),I(C.ENMDMA)&&delete E[C.ENMDMA],O(K);var q=new k({name:C.Neuralstimulator,repCost:2e4,moneyCost:6e8,info:"A cranial implant that intelligently stimulates certain areas of the brain in order to improve cognitive functions.

This augmentation:
Increases the player's hacking speed by 2%.
Increases the player's chance of successfully performing a hack by 10%.
Increases the player's hacking experience gain rate by 12%."});q.addToFactions(["The Black Hand","Chongqing","Sector-12","New Tokyo","Aevum","Ishima","Volhaven","Bachman & Associates","Clarke Incorporated","Four Sigma"]),I(C.Neuralstimulator)&&delete E[C.Neuralstimulator],O(q);var Y=new k({name:C.NeuralAccelerator,repCost:8e4,moneyCost:35e7,info:"A microprocessor that accelerates the processing speed of biological neural networks. This is a cranial implant that is embedded inside the brain.

This augmentation:
Increases the player's hacking skill by 10%.
Increases the player's hacking experience gain rate by 15%.
Increases the amount of money the player gains from hacking by 20%."});Y.addToFactions(["BitRunners"]),I(C.NeuralAccelerator)&&delete E[C.NeuralAccelerator],O(Y);var V=new k({name:C.CranialSignalProcessorsG1,repCost:4e3,moneyCost:14e6,info:"The first generation of Cranial Signal Processors. Cranial Signal Processors are a set of specialized microprocessors that are attached to neurons in the brain. These chips process neural signals to quickly and automatically perform specific computations so that the brain doesn't have to.

This augmentation:
Increases the player's hacking speed by 1%.
Increases the player's hacking skill by 5%."});V.addToFactions(["CyberSec"]),I(C.CranialSignalProcessorsG1)&&delete E[C.CranialSignalProcessorsG1],O(V);var J=new k({name:C.CranialSignalProcessorsG2,repCost:7500,moneyCost:25e6,info:"The second generation of Cranial Signal Processors. Cranial Signal Processors are a set of specialized microprocessors that are attached to neurons in the brain. These chips process neural signals to quickly and automatically perform specific computations so that the brain doesn't have to.

This augmentation:
Increases the player's hacking speed by 2%.
Increases the player's chance of successfully performing a hack by 5%.
Increases the player's hacking skill by 7%.",prereqs:[C.CranialSignalProcessorsG1]});J.addToFactions(["CyberSec","NiteSec"]),I(C.CranialSignalProcessorsG2)&&delete E[C.CranialSignalProcessorsG2],O(J);var z=new k({name:C.CranialSignalProcessorsG3,repCost:2e4,moneyCost:11e7,info:"The third generation of Cranial Signal Processors. Cranial Signal Processors are a set of specialized microprocessors that are attached to neurons in the brain. These chips process neural signals to quickly and automatically perform specific computations so that the brain doesn't have to.

This augmentation:
Increases the player's hacking speed by 2%.
Increases the amount of money the player gains from hacking by 15%.
Increases the player's hacking skill by 9%.",prereqs:[C.CranialSignalProcessorsG2]});z.addToFactions(["NiteSec","The Black Hand","BitRunners"]),I(C.CranialSignalProcessorsG3)&&delete E[C.CranialSignalProcessorsG3],O(z);var $=new k({name:C.CranialSignalProcessorsG4,repCost:5e4,moneyCost:22e7,info:"The fourth generation of Cranial Signal Processors. Cranial Signal Processors are a set of specialized microprocessors that are attached to neurons in the brain. These chips process neural signals to quickly and automatically perform specific computations so that the brain doesn't have to.

This augmentation:
Increases the player's hacking speed by 2%.
Increases the amount of money the player gains from hacking by 20%.
Increases the amount of money the player can inject into servers using grow() by 25%.",prereqs:[C.CranialSignalProcessorsG3]});$.addToFactions(["The Black Hand","BitRunners"]),I(C.CranialSignalProcessorsG4)&&delete E[C.CranialSignalProcessorsG4],O($);var X=new k({name:C.CranialSignalProcessorsG5,repCost:1e5,moneyCost:45e7,info:"The fifth generation of Cranial Signal Processors. Cranial Signal Processors are a set of specialized microprocessors that are attached to neurons in the brain. These chips process neural signals to quickly and automatically perform specific computations so that the brain doesn't have to.

This augmentation:
Increases the player's hacking skill by 30%.
Increases the amount of money the player gains from hacking by 25%.
Increases the amount of money the player can inject into servers using grow() by 75%.",prereqs:[C.CranialSignalProcessorsG4]});X.addToFactions(["BitRunners"]),I(C.CranialSignalProcessorsG5)&&delete E[C.CranialSignalProcessorsG5],O(X);var Q=new k({name:C.NeuronalDensification,repCost:75e3,moneyCost:275e6,info:"The brain is surgically re-engineered to have increased neuronal density by decreasing the neuron gap junction. Then, the body is genetically modified to enhance the production and capabilities of its neural stem cells.

This augmentation:
Increases the player's hacking skill by 15%.
Increases the player's hacking experience gain rate by 10%.
Increases the player's hacking speed by 3%."});Q.addToFactions(["Clarke Incorporated"]),I(C.NeuronalDensification)&&delete E[C.NeuronalDensification],O(Q);var Z=new k({name:C.NuoptimalInjectorImplant,repCost:2e3,moneyCost:4e6,info:"This torso implant automatically injects nootropic supplements into the bloodstream to improve memory, increase focus, and provide other cognitive enhancements.

This augmentation increases the amount of reputation the player gains when working for a company by 20%."});Z.addToFactions(["Tian Di Hui","Volhaven","New Tokyo","Chongqing","Ishima","Clarke Incorporated","Four Sigma","Bachman & Associates"]),I(C.NuoptimalInjectorImplant)&&delete E[C.NuoptimalInjectorImplant],O(Z);var ee=new k({name:C.SpeechEnhancement,repCost:1e3,moneyCost:25e5,info:"An advanced neural implant that improves your speaking abilities, making you more convincing and likable in conversations and overall improving your social interactions.

This augmentation:
Increases the player's charisma by 10%.
Increases the amount of reputation the player gains when working for a company by 10%."});ee.addToFactions(["Tian Di Hui","Speakers for the Dead","Four Sigma","KuaiGong International","Clarke Incorporated","Bachman & Associates"]),I(C.SpeechEnhancement)&&delete E[C.SpeechEnhancement],O(ee);var te=new k({name:C.FocusWire,repCost:3e4,moneyCost:18e7,info:"A cranial implant that stops procrastination by blocking specific neural pathways in the brain.

This augmentation:
Increases all experience gains by 5%.
Increases the amount of money the player gains from working by 20%.
Increases the amount of reputation the player gains when working for a company by 10%."});te.addToFactions(["Bachman & Associates","Clarke Incorporated","Four Sigma","KuaiGong International"]),I(C.FocusWire)&&delete E[C.FocusWire],O(te);var ne=new k({name:C.PCDNI,repCost:15e4,moneyCost:75e7,info:"Installs a Direct-Neural Interface jack into your arm that is compatible with most computers. Connecting to a computer through this jack allows you to interface with it using the brain's electrochemical signals.

This augmentation:
Increases the amount of reputation the player gains when working for a company by 30%.
Increases the player's hacking skill by 8%."});ne.addToFactions(["Four Sigma","OmniTek Incorporated","ECorp","Blade Industries"]),I(C.PCDNI)&&delete E[C.PCDNI],O(ne);var ae=new k({name:C.PCDNIOptimizer,repCost:2e5,moneyCost:9e8,info:"This is a submodule upgrade to the PC Direct-Neural Interface augmentation. It improves the performance of the interface and gives the user more control options to the connected computer.

This augmentation:
Increases the amount of reputation the player gains when working for a company by 75%.
Increases the player's hacking skill by 10%.",prereqs:[C.PCDNI]});ae.addToFactions(["Fulcrum Secret Technologies","ECorp","Blade Industries"]),I(C.PCDNIOptimizer)&&delete E[C.PCDNIOptimizer],O(ae);var ie=new k({name:C.PCDNINeuralNetwork,repCost:6e5,moneyCost:15e8,info:"This is an additional installation that upgrades the functionality of the PC Direct-Neural Interface augmentation. When connected to a computer, The NeuroNet Injector upgrade allows the user to use his/her own brain's processing power to aid the computer in computational tasks.

This augmentation:
Increases the amount of reputation the player gains when working for a company by 100%.
Increases the player's hacking skill by 10%.
Increases the player's hacking speed by 5%.",prereqs:[C.PCDNI]});ie.addToFactions(["Fulcrum Secret Technologies"]),I(C.PCDNINeuralNetwork)&&delete E[C.PCDNINeuralNetwork],O(ie);var re=new k({name:C.ADRPheromone1,repCost:1500,moneyCost:35e5,info:"The body is genetically re-engineered so that it produces the ADR-V1 pheromone, an artificial pheromone discovered by scientists. The ADR-V1 pheromone, when excreted, triggers feelings of admiration and approval in other people.

This augmentation:
Increases the amount of reputation the player gains when working for a company by 10%
Increases the amount of reputation the player gains for a faction by 10%."});re.addToFactions(["Tian Di Hui","The Syndicate","NWO","MegaCorp","Four Sigma"]),I(C.ADRPheromone1)&&delete E[C.ADRPheromone1],O(re);var oe=new k({name:C.ADRPheromone2,repCost:25e3,moneyCost:11e7,info:"The body is genetically re-engineered so that it produces the ADR-V2 pheromone, which is similar to but more potent than ADR-V1. This pheromone, when excreted, triggers feelings of admiration, approval, and respect in others.

This augmentation:
Increases the amount of reputation the player gains for a faction and company by 20%."});oe.addToFactions(["Silhouette","Four Sigma","Bachman & Associates","Clarke Incorporated"]),I(C.ADRPheromone2)&&delete E[C.ADRPheromone2],O(oe);var se=new k({name:C.HacknetNodeCPUUpload,repCost:1500,moneyCost:22e5,info:"Uploads the architecture and design details of a Hacknet Node's CPU into the brain. This allows the user to engineer custom hardware and software for the Hacknet Node that provides better performance.

This augmentation:
Increases the amount of money produced by Hacknet Nodes by 15%.
Decreases the cost of purchasing a Hacknet Node by 15%."});se.addToFactions(["Netburners"]),I(C.HacknetNodeCPUUpload)&&delete E[C.HacknetNodeCPUUpload],O(se);var le=new k({name:C.HacknetNodeCacheUpload,repCost:1e3,moneyCost:11e5,info:"Uploads the architecture and design details of a Hacknet Node's main-memory cache into the brain. This allows the user to engineer custom cache hardware for the Hacknet Node that offers better performance.

This augmentation:
Increases the amount of money produced by Hacknet Nodes by 10%.
Decreases the cost of leveling up a Hacknet Node by 15%."});le.addToFactions(["Netburners"]),I(C.HacknetNodeCacheUpload)&&delete E[C.HacknetNodeCacheUpload],O(le);var ce=new k({name:C.HacknetNodeNICUpload,repCost:750,moneyCost:9e5,info:"Uploads the architecture and design details of a Hacknet Node's Network Interface Card (NIC) into the brain. This allows the user to engineer a custom NIC for the Hacknet Node that offers better performance.

This augmentation:
Increases the amount of money produced by Hacknet Nodes by 10%.
Decreases the cost of purchasing a Hacknet Node by 10%."});ce.addToFactions(["Netburners"]),I(C.HacknetNodeNICUpload)&&delete E[C.HacknetNodeNICUpload],O(ce);var ue=new k({name:C.HacknetNodeKernelDNI,repCost:3e3,moneyCost:8e6,info:"Installs a Direct-Neural Interface jack into the arm that is capable of connecting to a Hacknet Node. This lets the user access and manipulate the Node's kernel using the mind's electrochemical signals.

This augmentation increases the amount of money produced by Hacknet Nodes by 25%."});ue.addToFactions(["Netburners"]),I(C.HacknetNodeKernelDNI)&&delete E[C.HacknetNodeKernelDNI],O(ue);var de=new k({name:C.HacknetNodeCoreDNI,repCost:5e3,moneyCost:12e6,info:"Installs a Direct-Neural Interface jack into the arm that is capable of connecting to a Hacknet Node. This lets the user access and manipulate the Node's processing logic using the mind's electrochemical signals.

This augmentation increases the amount of money produced by Hacknet Nodes by 45%."});de.addToFactions(["Netburners"]),I(C.HacknetNodeCoreDNI)&&delete E[C.HacknetNodeCoreDNI],O(de);var he=new k({name:C.NeuroFluxGovernor,repCost:500,moneyCost:75e4,info:"A device that is embedded in the back of the neck. The NeuroFlux Governor monitors and regulates nervous impulses coming to and from the spinal column, essentially 'governing' the body. By doing so, it improves the functionality of the body's nervous system.

This is a special augmentation because it can be leveled up infinitely. Each level of this augmentation increases ALL of the player's multipliers by 1%."}),pe=Object(o.e)();he.level=pe-1,ct=Math.pow(i.a.NeuroFluxGovernorLevelMult,he.level),he.baseRepRequirement=500*ct*i.a.AugmentationRepMultiplier*a.BitNodeMultipliers.AugmentationRepCost,he.baseCost=75e4*ct*i.a.AugmentationCostMultiplier*a.BitNodeMultipliers.AugmentationMoneyCost,I(C.NeuroFluxGovernor)&&delete E[C.NeuroFluxGovernor],he.addToAllFactions(),O(he);var me=new k({name:C.Neurotrainer1,repCost:400,moneyCost:8e5,info:"A decentralized cranial implant that improves the brain's ability to learn. It is installed by releasing millions of nanobots into the human brain, each of which attaches to a different neural pathway to enhance the brain's ability to retain and retrieve information.

This augmentation increases the player's experience gain rate for all stats by 10%."});me.addToFactions(["CyberSec"]),I(C.Neurotrainer1)&&delete E[C.Neurotrainer1],O(me);var ge=new k({name:C.Neurotrainer2,repCost:4e3,moneyCost:9e6,info:"A decentralized cranial implant that improves the brain's ability to learn. This is a more powerful version of the Neurotrainer I augmentation, but it does not require Neurotrainer I to be installed as a prerequisite.

This augmentation increases the player's experience gain rate for all stats by 15%."});ge.addToFactions(["BitRunners","NiteSec"]),I(C.Neurotrainer2)&&delete E[C.Neurotrainer2],O(ge);var ye=new k({name:C.Neurotrainer3,repCost:1e4,moneyCost:26e6,info:"A decentralized cranial implant that improves the brain's ability to learn. This is a more powerful version of the Neurotrainer I and Neurotrainer II augmentation, but it does not require either of them to be installed as a prerequisite.

This augmentation increases the player's experience gain rate for all stats by 20%."});ye.addToFactions(["NWO","Four Sigma"]),I(C.Neurotrainer3)&&delete E[C.Neurotrainer3],O(ye);var fe=new k({name:C.Hypersight,repCost:6e4,moneyCost:55e7,info:"A bionic eye implant that grants sight capabilities far beyond those of a natural human. Embedded circuitry within the implant provides the ability to detect heat and movement through solid objects such as wells, thus providing 'x-ray vision'-like capabilities.

This augmentation:
Increases the player's dexterity by 40%.
Increases the player's hacking speed by 3%.
Increases the amount of money the player gains from hacking by 10%."});fe.addToFactions(["Blade Industries","KuaiGong International"]),I(C.Hypersight)&&delete E[C.Hypersight],O(fe);var be=new k({name:C.LuminCloaking1,repCost:600,moneyCost:1e6,info:"A skin implant that reinforces the skin with highly-advanced synthetic cells. These cells, when powered, have a negative refractive index. As a result, they bend light around the skin, making the user much harder to see from the naked eye.

This augmentation:
Increases the player's agility by 5%
Increases the amount of money the player gains from crimes by 10%."});be.addToFactions(["Slum Snakes","Tetrads"]),I(C.LuminCloaking1)&&delete E[C.LuminCloaking1],O(be);var ve=new k({name:C.LuminCloaking2,repCost:2e3,moneyCost:6e6,info:"This is a more advanced version of the LuminCloaking-V2 augmentation. This skin implant reinforces the skin with highly-advanced synthetic cells. These cells, when powered, are capable of not only bending light but also of bending heat, making the user more resilient as well as stealthy.

This augmentation:
Increases the player's agility by 10%
Increases the player's defense by 10%
Increases the amount of money the player gains from crimes by 25%.",prereqs:[C.LuminCloaking1]});ve.addToFactions(["Slum Snakes","Tetrads"]),I(C.LuminCloaking2)&&delete E[C.LuminCloaking2],O(ve);var _e=new k({name:C.SmartSonar,repCost:9e3,moneyCost:15e6,info:"A cochlear implant that helps the player detect and locate enemies using sound propagation.

This augmentation:
Increases the player's dexterity by 10%.
Increases the player's dexterity experience gain rate by 15%.
Increases the amount of money the player gains from crimes by 25%."});_e.addToFactions(["Slum Snakes"]),I(C.SmartSonar)&&delete E[C.SmartSonar],O(_e);var ke=new k({name:C.PowerRecirculator,repCost:1e4,moneyCost:36e6,info:"The body's nerves are attached with polypyrrole nanocircuits that are capable of capturing wasted energy (in the form of heat) and converting it back into usable power.

This augmentation:
Increases all of the player's stats by 5%.
Increases the player's experience gain rate for all stats by 10%."});ke.addToFactions(["Tetrads","The Dark Army","The Syndicate","NWO"]),I(C.PowerRecirculator)&&delete E[C.PowerRecirculator],O(ke);var Ee=new k({name:C.QLink,repCost:75e4,moneyCost:13e8,info:"A brain implant that wirelessly connects you to the Illuminati's quantum supercomputer, allowing you to access and use its incredible computing power.

This augmentation:
Increases the player's hacking speed by 10%.
Increases the player's chance of successfully performing a hack by 30%.
Increases the amount of money the player gains from hacking by 100%."});Ee.addToFactions(["Illuminati"]),I(C.QLink)&&delete E[C.QLink],O(Ee);var Oe=new k({name:C.TheRedPill,repCost:1e6,moneyCost:0,info:"It's time to leave the cave."});Oe.addToFactions(["Daedalus"]),I(C.TheRedPill)&&delete E[C.TheRedPill],O(Oe);var Ce=new k({name:C.SPTN97,repCost:5e5,moneyCost:975e6,info:"The SPTN-97 gene is injected into the genome. The SPTN-97 gene is an artificially-synthesized gene that was developed by DARPA to create super-soldiers through genetic modification. The gene was outlawed in 2056.

This augmentation:
Increases all of the player's combat stats by 75%.
Increases the player's hacking skill by 15%."});Ce.addToFactions(["The Covenant"]),I(C.SPTN97)&&delete E[C.SPTN97],O(Ce);var we=new k({name:C.HiveMind,repCost:6e5,moneyCost:11e8,info:"A brain implant developed by ECorp. They do not reveal what exactly the implant does, but they promise that it will greatly enhance your abilities."});we.addToFactions(["ECorp"]),I(C.HiveMind)&&delete E[C.HiveMind],O(we);var Se=new k({name:C.CordiARCReactor,repCost:45e4,moneyCost:1e9,info:"The thoracic cavity is equipped with a small chamber designed to hold and sustain hydrogen plasma. The plasma is used to generate fusion power through nuclear fusion, providing limitless amount of clean energy for the body.

This augmentation:
Increases all of the player's combat stats by 35%.
Increases all of the player's combat stat experience gain rate by 35%."});Se.addToFactions(["MegaCorp"]),I(C.CordiARCReactor)&&delete E[C.CordiARCReactor],O(Se);var Te=new k({name:C.SmartJaw,repCost:15e4,moneyCost:55e7,info:"A bionic jaw that contains advanced hardware and software capable of psychoanalyzing and profiling the personality of others using optical imaging software.

This augmentation:
Increases the player's charisma by 50%.
Increases the player's charisma experience gain rate by 50%.
Increases the amount of reputation the player gains for a company by 25%.
Increases the amount of reputation the player gains for a faction by 25%."});Te.addToFactions(["Bachman & Associates"]),I(C.SmartJaw)&&delete E[C.SmartJaw],O(Te);var xe=new k({name:C.Neotra,repCost:225e3,moneyCost:575e6,info:"A highly-advanced techno-organic drug that is injected into the skeletal and integumentary system. The drug permanently modifies the DNA of the body's skin and bone cells, granting them the ability to repair and restructure themselves.

This augmentation increases the player's strength and defense by 55%."});xe.addToFactions(["Blade Industries"]),I(C.Neotra)&&delete E[C.Neotra],O(xe);var Re=new k({name:C.Xanipher,repCost:35e4,moneyCost:85e7,info:"A concoction of advanced nanobots that is orally ingested into the body. These nanobots induce physiological change and significantly improve the body's functionining in all aspects.

This augmentation:
Increases all of the player's stats by 20%.
Increases the player's experience gain rate for all stats by 15%."});Re.addToFactions(["NWO"]),I(C.Xanipher)&&delete E[C.Xanipher],O(Re);var Ie=new k({name:C.nextSENS,repCost:175e3,moneyCost:385e6,info:"The body is genetically re-engineered to maintain a state of negligible senescence, preventing the body from deteriorating with age.

This augmentation increases all of the player's stats by 20%."});Ie.addToFactions(["Clarke Incorporated"]),I(C.nextSENS)&&delete E[C.nextSENS],O(Ie);var Ne=new k({name:C.OmniTekInfoLoad,repCost:25e4,moneyCost:575e6,info:"OmniTek's data and information repository is uploaded into your brain, enhancing your programming and hacking abilities.

This augmentation:
Increases the player's hacking skill by 20%.
Increases the player's hacking experience gain rate by 25%."});Ne.addToFactions(["OmniTek Incorporated"]),I(C.OmniTekInfoLoad)&&delete E[C.OmniTekInfoLoad],O(Ne);var Me=new k({name:C.PhotosyntheticCells,repCost:225e3,moneyCost:55e7,info:"Chloroplasts are added to epidermal stem cells and are applied to the body using a skin graft. The result is photosynthetic skin cells, allowing users to generate their own energy and nutrition using solar power.

This augmentation increases the player's strength, defense, and agility by 40%."});Me.addToFactions(["KuaiGong International"]),I(C.PhotosyntheticCells)&&delete E[C.PhotosyntheticCells],O(Me);var Pe=new k({name:C.Neurolink,repCost:35e4,moneyCost:875e6,info:"A brain implant that provides a high-bandwidth, direct neural link between your mind and BitRunners' data servers, which reportedly contain the largest database of hacking tools and information in the world.

This augmentation:
Increases the player's hacking skill by 15%.
Increases the player's hacking experience gain rate by 20%.
Increases the player's chance of successfully performing a hack by 10%.
Increases the player's hacking speed by 5%.
Lets the player start with the FTPCrack.exe and relaySMTP.exe programs after a reset."});Pe.addToFactions(["BitRunners"]),I(C.Neurolink)&&delete E[C.Neurolink],O(Pe);var Ae=new k({name:C.TheBlackHand,repCost:4e4,moneyCost:11e7,info:"A highly advanced bionic hand. This prosthetic not only enhances strength and dexterity but it is also embedded with hardware and firmware that lets the user connect to, access and hack devices and machines just by touching them.

This augmentation:
Increases the player's strength and dexterity by 15%.
Increases the player's hacking skill by 10%.
Increases the player's hacking speed by 2%.
Increases the amount of money the player gains from hacking by 10%."});Ae.addToFactions(["The Black Hand"]),I(C.TheBlackHand)&&delete E[C.TheBlackHand],O(Ae);var Le=new k({name:C.CRTX42AA,repCost:18e3,moneyCost:45e6,info:"The CRTX42-AA gene is injected into the genome. The CRTX42-AA is an artificially-synthesized gene that targets the visual and prefrontal cortex and improves cognitive abilities.

This augmentation:
Improves the player's hacking skill by 8%.
Improves the player's hacking experience gain rate by 15%."});Le.addToFactions(["NiteSec"]),I(C.CRTX42AA)&&delete E[C.CRTX42AA],O(Le);var Be=new k({name:C.Neuregen,repCost:15e3,moneyCost:75e6,info:"A drug that genetically modifies the neurons in the brain. The result is that these neurons never die and continuously regenerate and strengthen themselves.

This augmentation increases the player's hacking experience gain rate by 40%."});Be.addToFactions(["Chongqing"]),I(C.Neuregen)&&delete E[C.Neuregen],O(Be);var je=new k({name:C.CashRoot,repCost:5e3,moneyCost:25e6,info:"A collection of digital assets saved on a small chip. The chip is implanted into your wrist. A small jack in the chip allows you to connect it to a computer and upload the assets.

This augmentation:
Lets the player start with $1,000,000 after a reset.
Lets the player start with the BruteSSH.exe program after a reset."});je.addToFactions(["Sector-12"]),I(C.CashRoot)&&delete E[C.CashRoot],O(je);var De=new k({name:C.NutriGen,repCost:2500,moneyCost:5e5,info:"A thermo-powered artificial nutrition generator. Endogenously synthesizes glucose, amino acids, and vitamins and redistributes them across the body. The device is powered by the body's naturally wasted energy in the form of heat.

This augmentation:
Increases the player's experience gain rate for all combat stats by 20%."});De.addToFactions(["New Tokyo"]),I(C.NutriGen)&&delete E[C.NutriGen],O(De);var Fe=new k({name:C.INFRARet,repCost:3e3,moneyCost:6e6,info:"A retina implant consisting of a tiny chip that sits behind the retina. This implant lets people visually detect infrared radiation.

This augmentation:
Increases the player's crime success rate by 25%.
Increases the amount of money the player gains from crimes by 10%.
Increases the player's dexterity by 10%."});Fe.addToFactions(["Ishima"]),I(C.INFRARet)&&delete E[C.INFRARet],O(Fe);var He=new k({name:C.DermaForce,repCost:6e3,moneyCost:1e7,info:"A synthetic skin is grafted onto the body. The skin consists of millions of nanobots capable of projecting high-density muon beams, creating an energy barrier around the user.

This augmentation increases the player's defense by 40%."});He.addToFactions(["Volhaven"]),I(C.DermaForce)&&delete E[C.DermaForce],O(He);var We=new k({name:C.GrapheneBrachiBlades,repCost:9e4,moneyCost:5e8,info:"An upgrade to the BrachiBlades augmentation. It infuses the retractable blades with an advanced graphene material to make them much stronger and lighter.

This augmentation:
Increases the player's strength and defense by 40%.
Increases the player's crime success rate by 10%.
Increases the amount of money the player gains from crimes by 30%.",prereqs:[C.BrachiBlades]});We.addToFactions(["Speakers for the Dead"]),I(C.GrapheneBrachiBlades)&&delete E[C.GrapheneBrachiBlades],O(We);var Ge=new k({name:C.GrapheneBionicArms,repCost:2e5,moneyCost:75e7,info:"An upgrade to the Bionic Arms augmentation. It infuses the prosthetic arms with an advanced graphene material to make them much stronger and lighter.

This augmentation increases the player's strength and dexterity by 85%.",prereqs:[C.BionicArms]});Ge.addToFactions(["The Dark Army"]),I(C.GrapheneBionicArms)&&delete E[C.GrapheneBionicArms],O(Ge);var Ue=new k({name:C.BrachiBlades,repCost:5e3,moneyCost:18e6,info:"A set of retractable plasteel blades are implanted in the arm, underneath the skin.

This augmentation:
Increases the player's strength and defense by 15%.
Increases the player's crime success rate by 10%.
Increases the amount of money the player gains from crimes by 15%."});Ue.addToFactions(["The Syndicate"]),I(C.BrachiBlades)&&delete E[C.BrachiBlades],O(Ue);var Ke=new k({name:C.BionicArms,repCost:25e3,moneyCost:55e6,info:"Cybernetic arms created from plasteel and carbon fibers that completely replace the user's organic arms.

This augmentation increases the user's strength and dexterity by 30%."});Ke.addToFactions(["Tetrads"]),I(C.BionicArms)&&delete E[C.BionicArms],O(Ke);var qe=new k({name:C.SNA,repCost:2500,moneyCost:6e6,info:"A cranial implant that affects the user's personality, making them better at negotiation in social situations.

This augmentation:
Increases the amount of money the player earns at a company by 10%.
Increases the amount of reputation the player gains when working for a company or faction by 15%."});qe.addToFactions(["Tian Di Hui"]),I(C.SNA)&&delete E[C.SNA],O(qe),2===c.a.bitNodeN&&(console.log("Adding all augmentations to crime factions for Bit node 2"),o.b["Slum Snakes"].addAllAugmentations(),o.b.Tetrads.addAllAugmentations(),o.b["The Syndicate"].addAllAugmentations(),o.b["The Dark Army"].addAllAugmentations(),o.b["Speakers for the Dead"].addAllAugmentations(),o.b.NiteSec.addAllAugmentations(),o.b["The Black Hand"].addAllAugmentations());if(Object(o.d)("Bladeburners")){var Ye=new k({name:C.EsperEyewear,repCost:500,moneyCost:33e6,info:"Ballistic-grade protective and retractable eyewear that was designed specially for Bladeburner units. This is implanted by installing a mechanical frame in the skull's orbit. This frame interfaces with the brain and allows the user to automatically extrude and extract the eyewear. The eyewear protects against debris, shrapnel, laser, flash, and gas. It is also embedded with a data processing chip that can be programmed to display an AR HUD and assist the user in field missions.

This augmentation:
Increases the player's success chance in Bladeburner contracts/operations by 3%.
Increases the player's dexterity by 5%."});Ye.addToFactions(["Bladeburners"]),S(Ye);var Ve=new k({name:C.EMS4Recombination,repCost:1e3,moneyCost:55e6,info:"A DNA recombination of the EMS-4 Gene. This genetic engineering technique was originally used on Bladeburners during the Synthoid uprising to induce wakefulness and concentration, suppress fear, reduce empathy, and improve reflexes and memory-recall among other things.

This augmentation:
Increases the player's sucess chance in Bladeburner contracts/operations by 3%.
Increases the player's effectiveness in Bladeburner Field Analysis by 5%.
Increases the player's Bladeburner stamina gain rate by 2%."});Ve.addToFactions(["Bladeburners"]),S(Ve);var Je=new k({name:C.OrionShoulder,repCost:2500,moneyCost:11e7,info:"A bionic shoulder augmentation for the right shoulder. Using cybernetics, the ORION-MKIV shoulder enhances the strength and dexterity of the user's right arm. It also provides protection due to its crystallized graphene plating.

This augmentation:
Increases the player's defense by 5%.
Increases the player's strength and dexterity by 5%.
Increases the player's success chance in Bladeburner contracts/operations by 4%."});Je.addToFactions(["Bladeburners"]),S(Je);var ze=new k({name:C.HyperionV1,repCost:5e3,moneyCost:55e7,info:"A pair of mini plasma cannons embedded into the hands. The Hyperion is capable of rapidly firing bolts of high-density plasma. The weapon is meant to be used against augmented enemies as the ionized nature of the plasma disrupts the electrical systems of Augmentations. However, it can also be effective against non-augmented enemies due to its high temperature and concussive force.

This augmentation:
Increases the player's success chance in Bladeburner contracts/operations by 6%."});ze.addToFactions(["Bladeburners"]),S(ze);var $e=new k({name:C.HyperionV2,repCost:1e4,moneyCost:11e8,info:"A pair of mini plasma cannons embedded into the hands. This augmentation is more advanced and powerful than the original V1 model. This V2 model is more power-efficiency, more accurate, and can fire plasma bolts at a much higher velocity than the V1 model.

This augmentation:
Increases the player's success chance in Bladeburner contracts/operations by 8%.",prereqs:[C.HyperionV1]});$e.addToFactions(["Bladeburners"]),S($e);var Xe=new k({name:C.GolemSerum,repCost:12500,moneyCost:22e8,info:"A serum that permanently enhances many aspects of a human's capabilities, including strength, speed, immune system performance, and mitochondrial efficiency. The serum was originally developed by the Chinese military in an attempt to create super soldiers.

This augmentation:
Increases all of the player's combat stats by 7%.
Increases the player's Bladeburner stamina gain rate by 5%.
"});Xe.addToFactions(["Bladeburners"]),S(Xe);var Qe=new k({name:C.VangelisVirus,repCost:7500,moneyCost:55e7,info:"A synthetic symbiotic virus that is injected into the human brain tissue. The Vangelis virus heightens the senses and focus of its host, and also enhances its intuition.

This augmentation:
Increases the player's effectiveness in Bladeburner Field Analysis by 10%.
Increases the player's success chance in Bladeburner contracts/operations by 4%.
Increases the player's dexterity experience gain rate by 10%."});Qe.addToFactions(["Bladeburners"]),S(Qe);var Ze=new k({name:C.VangelisVirus3,repCost:15e3,moneyCost:22e8,info:"An improved version of Vangelis, a synthetic symbiotic virus that is injected into the human brain tissue. On top of the benefits of the original virus, this also grants an accelerated healing factor and enhanced agility/reflexes.

This augmentation:
Increases the player's effectiveness in Bladeburner Field Analysis by 15%.
Increases the player's defense and dexterity experience gain rate by 10%.
Increases the player's success chance in Bladeburner contracts/operations by 5%.",prereqs:[C.VangelisVirus]});Ze.addToFactions(["Bladeburners"]),S(Ze);var et=new k({name:C.INTERLINKED,repCost:1e4,moneyCost:11e8,info:"The DNA is genetically modified to enhance the human's body extracellular matrix (ECM). This improves the ECM's ability to structurally support the body and grants heightened strength and durability.

This augmentation:
Increases the player's experience gain rate for all combat stats by 5%.
Increases the player's Bladeburner max stamina by 10%."});et.addToFactions(["Bladeburners"]),S(et);var tt=new k({name:C.BladeRunner,repCost:8e3,moneyCost:165e7,info:"A cybernetic foot augmentation that was specially created for Bladeburners during the Synthoid Uprising. The organic musculature of the human foot is enhanced with flexible carbon nanotube matrices that are controlled by intelligent servo-motors.

This augmentation:
Increases the player's agility by 5%.
Increases the player's Bladeburner max stamina by 5%.
Increases the player's Bladeburner stamina gain rate by 5%.
"});tt.addToFactions(["Bladeburners"]),S(tt);var nt=new k({name:C.BladeArmor,repCost:5e3,moneyCost:275e6,info:"A powered exoskeleton suit (exosuit) designed as armor for Bladeburner units. This exoskeleton is incredibly adaptable and can protect the wearer from blunt, piercing, concussive, thermal, chemical, and electric trauma. It also enhances the user's strength and agility.

This augmentation:
Increases all of the player's combat stats by 4%.
Increases the player's Bladeburner stamina gain rate by 2%.
Increases the player's success chance in Bladeburner contracts/operations by 3%."});nt.addToFactions(["Bladeburners"]),S(nt);var at=new k({name:C.BladeArmorPowerCells,repCost:7500,moneyCost:55e7,info:"Upgrades the BLADE-51b Tesla Armor with Ion Power Cells, which are capable of more efficiently storing and using power.

This augmentation:
Increases the player's success chance in Bladeburner contracts/operations by 5%.
Increases the player's Bladeburner stamina gain rate by 2%.
Increases the player's Bladeburner max stamina by 5%.",prereqs:[C.BladeArmor]});at.addToFactions(["Bladeburners"]),S(at);var it=new k({name:C.BladeArmorEnergyShielding,repCost:8500,moneyCost:11e8,info:"Upgrades the BLADE-51b Tesla Armor with a plasma energy propulsion system that is capable of projecting an energy shielding force field.

This augmentation:
Increases the player's defense by 5%.
Increases the player's success chance in Bladeburner contracts/operations by 6%.",prereqs:[C.BladeArmor]});it.addToFactions(["Bladeburners"]),S(it);var rt=new k({name:C.BladeArmorUnibeam,repCost:12500,moneyCost:33e8,info:"Upgrades the BLADE-51b Tesla Armor with a concentrated deuterium-fluoride laser weapon. It's precision an accuracy makes it useful for quickly neutralizing threats while keeping casualties to a minimum.

This augmentation:
Increases the player's success chance in Bladeburner contracts/operations by 8%.",prereqs:[C.BladeArmor]});rt.addToFactions(["Bladeburners"]),S(rt);var ot=new k({name:C.BladeArmorOmnibeam,repCost:25e3,moneyCost:55e8,info:"Upgrades the BLADE-51b Tesla Armor Unibeam augmentation to use multiple-fiber system. The upgraded weapon uses multiple fiber laser modules that combine together to form a single, more powerful beam of up to 2000MW.

This augmentation:
Increases the player's success chance in Bladeburner contracts/operations by 10%.",prereqs:[C.BladeArmorUnibeam]});ot.addToFactions(["Bladeburners"]),S(ot);var st=new k({name:C.BladeArmorIPU,repCost:6e3,moneyCost:22e7,info:"Upgrades the BLADE-51b Tesla Armor with an AI Information Processing Unit that was specially designed to analyze Synthoid related data and information.

This augmentation:
Increases the player's effectiveness in Bladeburner Field Analysis by 15%.
Increases the player's success chance in Bladeburner contracts/operations by 2%.",prereqs:[C.BladeArmor]});st.addToFactions(["Bladeburners"]),S(st);var lt=new k({name:C.BladesSimulacrum,repCost:3e3,moneyCost:8e10,info:"A highly-advanced matter phase-shifter module that is embedded in the brainstem and cerebellum. This augmentation allows the user to project and control a holographic simulacrum within an extremely large radius. These specially-modified holograms were specially weaponized by Bladeburner units to be used against Synthoids.

This augmentation allows you to perform Bladeburner actions and other actions (such as working, commiting crimes, etc.) at the same time."});lt.addToFactions(["Bladeburners"]),S(lt)}var ct=Math.pow(i.a.MultipleAugMultiplier,c.a.queuedAugmentations.length);for(var e in E)E.hasOwnProperty(e)&&(E[e].baseCost*=ct);c.a.reapplyAllAugmentations()}function S(e){if(!(e instanceof k))throw new Error("Invalid argument 'newAugObject' passed into resetAugmentation");var t=e.name;I(t)&&delete E[t],O(e)}function T(e,t=!1){switch(E[e.name].owned=!0,e.name){case C.Targeting1:c.a.dexterity_mult*=1.1;break;case C.Targeting2:c.a.dexterity_mult*=1.2;break;case C.Targeting3:c.a.dexterity_mult*=1.3;break;case C.SyntheticHeart:c.a.agility_mult*=1.5,c.a.strength_mult*=1.5;break;case C.SynfibrilMuscle:c.a.strength_mult*=1.3,c.a.defense_mult*=1.3;break;case C.CombatRib1:c.a.strength_mult*=1.1,c.a.defense_mult*=1.1;break;case C.CombatRib2:c.a.strength_mult*=1.14,c.a.defense_mult*=1.14;break;case C.CombatRib3:c.a.strength_mult*=1.18,c.a.defense_mult*=1.18;break;case C.NanofiberWeave:c.a.strength_mult*=1.2,c.a.defense_mult*=1.2;break;case C.SubdermalArmor:c.a.defense_mult*=2.2;break;case C.WiredReflexes:c.a.agility_mult*=1.05,c.a.dexterity_mult*=1.05;break;case C.GrapheneBoneLacings:c.a.strength_mult*=1.7,c.a.defense_mult*=1.7;break;case C.BionicSpine:c.a.strength_mult*=1.15,c.a.defense_mult*=1.15,c.a.agility_mult*=1.15,c.a.dexterity_mult*=1.15;break;case C.GrapheneBionicSpine:c.a.strength_mult*=1.6,c.a.defense_mult*=1.6,c.a.agility_mult*=1.6,c.a.dexterity_mult*=1.6;break;case C.BionicLegs:c.a.agility_mult*=1.6;break;case C.GrapheneBionicLegs:c.a.agility_mult*=2.5;break;case C.EnhancedSocialInteractionImplant:c.a.charisma_mult*=1.6,c.a.charisma_exp_mult*=1.6;break;case C.TITN41Injection:c.a.charisma_mult*=1.15,c.a.charisma_exp_mult*=1.15;break;case C.SpeechProcessor:c.a.charisma_mult*=1.2;break;case C.BitWire:c.a.hacking_mult*=1.05;break;case C.ArtificialBioNeuralNetwork:c.a.hacking_speed_mult*=1.03,c.a.hacking_money_mult*=1.15,c.a.hacking_mult*=1.12;break;case C.ArtificialSynapticPotentiation:c.a.hacking_speed_mult*=1.02,c.a.hacking_chance_mult*=1.05,c.a.hacking_exp_mult*=1.05;break;case C.EnhancedMyelinSheathing:c.a.hacking_speed_mult*=1.03,c.a.hacking_exp_mult*=1.1,c.a.hacking_mult*=1.08;break;case C.SynapticEnhancement:c.a.hacking_speed_mult*=1.03;break;case C.NeuralRetentionEnhancement:c.a.hacking_exp_mult*=1.25;break;case C.DataJack:c.a.hacking_money_mult*=1.25;break;case C.ENM:c.a.hacking_mult*=1.08;break;case C.ENMCore:c.a.hacking_speed_mult*=1.03,c.a.hacking_money_mult*=1.1,c.a.hacking_chance_mult*=1.03,c.a.hacking_exp_mult*=1.07,c.a.hacking_mult*=1.07;break;case C.ENMCoreV2:c.a.hacking_speed_mult*=1.05,c.a.hacking_money_mult*=1.3,c.a.hacking_chance_mult*=1.05,c.a.hacking_exp_mult*=1.15,c.a.hacking_mult*=1.08;break;case C.ENMCoreV3:c.a.hacking_speed_mult*=1.05,c.a.hacking_money_mult*=1.4,c.a.hacking_chance_mult*=1.1,c.a.hacking_exp_mult*=1.25,c.a.hacking_mult*=1.1;break;case C.ENMAnalyzeEngine:c.a.hacking_speed_mult*=1.1;break;case C.ENMDMA:c.a.hacking_money_mult*=1.4,c.a.hacking_chance_mult*=1.2;break;case C.Neuralstimulator:c.a.hacking_speed_mult*=1.02,c.a.hacking_chance_mult*=1.1,c.a.hacking_exp_mult*=1.12;break;case C.NeuralAccelerator:c.a.hacking_mult*=1.1,c.a.hacking_exp_mult*=1.15,c.a.hacking_money_mult*=1.2;break;case C.CranialSignalProcessorsG1:c.a.hacking_speed_mult*=1.01,c.a.hacking_mult*=1.05;break;case C.CranialSignalProcessorsG2:c.a.hacking_speed_mult*=1.02,c.a.hacking_chance_mult*=1.05,c.a.hacking_mult*=1.07;break;case C.CranialSignalProcessorsG3:c.a.hacking_speed_mult*=1.02,c.a.hacking_money_mult*=1.15,c.a.hacking_mult*=1.09;break;case C.CranialSignalProcessorsG4:c.a.hacking_speed_mult*=1.02,c.a.hacking_money_mult*=1.2,c.a.hacking_grow_mult*=1.25;break;case C.CranialSignalProcessorsG5:c.a.hacking_mult*=1.3,c.a.hacking_money_mult*=1.25,c.a.hacking_grow_mult*=1.75;break;case C.NeuronalDensification:c.a.hacking_mult*=1.15,c.a.hacking_exp_mult*=1.1,c.a.hacking_speed_mult*=1.03;break;case C.NuoptimalInjectorImplant:c.a.company_rep_mult*=1.2;break;case C.SpeechEnhancement:c.a.company_rep_mult*=1.1,c.a.charisma_mult*=1.1;break;case C.FocusWire:c.a.hacking_exp_mult*=1.05,c.a.strength_exp_mult*=1.05,c.a.defense_exp_mult*=1.05,c.a.dexterity_exp_mult*=1.05,c.a.agility_exp_mult*=1.05,c.a.charisma_exp_mult*=1.05,c.a.company_rep_mult*=1.1,c.a.work_money_mult*=1.2;break;case C.PCDNI:c.a.company_rep_mult*=1.3,c.a.hacking_mult*=1.08;break;case C.PCDNIOptimizer:c.a.company_rep_mult*=1.75,c.a.hacking_mult*=1.1;break;case C.PCDNINeuralNetwork:c.a.company_rep_mult*=2,c.a.hacking_mult*=1.1,c.a.hacking_speed_mult*=1.05;break;case C.ADRPheromone1:c.a.company_rep_mult*=1.1,c.a.faction_rep_mult*=1.1;break;case C.ADRPheromone2:c.a.company_rep_mult*=1.2,c.a.faction_rep_mult*=1.2;break;case C.HacknetNodeCPUUpload:c.a.hacknet_node_money_mult*=1.15,c.a.hacknet_node_purchase_cost_mult*=.85;break;case C.HacknetNodeCacheUpload:c.a.hacknet_node_money_mult*=1.1,c.a.hacknet_node_level_cost_mult*=.85;break;case C.HacknetNodeNICUpload:c.a.hacknet_node_money_mult*=1.1,c.a.hacknet_node_purchase_cost_mult*=.9;break;case C.HacknetNodeKernelDNI:c.a.hacknet_node_money_mult*=1.25;break;case C.HacknetNodeCoreDNI:c.a.hacknet_node_money_mult*=1.45;break;case C.NeuroFluxGovernor:if(c.a.hacking_chance_mult*=1.01,c.a.hacking_speed_mult*=1.01,c.a.hacking_money_mult*=1.01,c.a.hacking_grow_mult*=1.01,c.a.hacking_mult*=1.01,c.a.strength_mult*=1.01,c.a.defense_mult*=1.01,c.a.dexterity_mult*=1.01,c.a.agility_mult*=1.01,c.a.charisma_mult*=1.01,c.a.hacking_exp_mult*=1.01,c.a.strength_exp_mult*=1.01,c.a.defense_exp_mult*=1.01,c.a.dexterity_exp_mult*=1.01,c.a.agility_exp_mult*=1.01,c.a.charisma_exp_mult*=1.01,c.a.company_rep_mult*=1.01,c.a.faction_rep_mult*=1.01,c.a.crime_money_mult*=1.01,c.a.crime_success_mult*=1.01,c.a.hacknet_node_money_mult*=1.01,c.a.hacknet_node_purchase_cost_mult*=.99,c.a.hacknet_node_ram_cost_mult*=.99,c.a.hacknet_node_core_cost_mult*=.99,c.a.hacknet_node_level_cost_mult*=.99,c.a.work_money_mult*=1.01,!t){E[e.name].level=e.level;for(var n=0;n"):console.log("ERROR. Invalid augmentation")}if(c.a.queuedAugmentations=[],Object(m.dialogBoxCreate)("You slowly drift to sleep as scientists put you under in order to install the following Augmentations:
"+t+"
You wake up in your home...you feel different..."),Object(u.a)(),e&&Object(v.isString)(e)){var i=c.a.getHomeComputer();for(n=0;ni.maxRam-i.ramUsed)return;var o=new h.b(r,[]);o.threads=1,i.runningScripts.push(o),Object(l.c)(o,i)}}}function I(e){return E.hasOwnProperty(e)}function N(){Object(_.removeChildrenFromElement)(r.Engine.Display.augmentationsContent),r.Engine.Display.augmentationsContent.appendChild(Object(b.createElement)("h1",{innerText:"Purchased Augmentations"}));var e="\n";(6===c.a.bitNodeN||s.c)&&(e="Bladeburner Progress\n\n"),r.Engine.Display.augmentationsContent.appendChild(Object(b.createElement)("pre",{width:"70%",whiteSpace:"pre-wrap",display:"block",innerText:"Below is a list of all Augmentations you have purchased but not yet installed. Click the button below to install them.\nWARNING: Installing your Augmentations resets most of your progress, including:\n\nStats/Skill levels and Experience\nMoney\nScripts on every computer but your home computer\nPurchased servers\nHacknet Nodes\nFaction/Company reputation\nStocks\n"+e+"Installing Augmentations lets you start over with the perks and benefits granted by all of the Augmentations you have ever installed. Also, you will keep any scripts and RAM/Core upgrades on your home computer (but you will lose all programs besides NUKE.exe)."})),r.Engine.Display.augmentationsContent.appendChild(Object(b.createElement)("a",{class:"a-link-button",innerText:"Install Augmentations",tooltip:"'I never asked for this'",clickListener:()=>(R(),!1)})),r.Engine.Display.augmentationsContent.appendChild(Object(b.createElement)("a",{class:"a-link-button flashing-button",innerText:"Backup Save (Export)",tooltip:"It's always a good idea to backup/export your save!",clickListener:()=>(d.b.exportGame(),!1)}));for(var t=Object(b.createElement)("ul",{class:"augmentations-list"}),n=0;n{for(var e=u.getElementsByClassName("accordion-header"),t=0;t{for(var e=u.getElementsByClassName("accordion-header"),t=0;t{Object(_.removeChildrenFromElement)(u);var e=c.a.sourceFiles.slice(),t=c.a.augmentations.slice();e.sort((e,t)=>e.n-t.n),t.sort((e,t)=>e.name<=t.name?-1:1),P(u,e),M(u,t)}})),r.Engine.Display.augmentationsContent.appendChild(Object(b.createElement)("a",{class:"a-link-button",fontSize:"14px",innerText:"Sort by Acquirement Time",tooltip:"Sorts the Augmentations and Source Files based on when you acquired them (same as default)",clickListener:()=>{Object(_.removeChildrenFromElement)(u),P(u,c.a.sourceFiles),M(u,c.a.augmentations)}})),P(u,c.a.sourceFiles),M(u,c.a.augmentations),r.Engine.Display.augmentationsContent.appendChild(u)}function M(e,t){for(var n=0;nLevel "+t[n].lvl+" / "+o,panelText:i.info});e.appendChild(r[0])}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=n(45),i=n(64);t.removeElementById=function(e){try{const t=a.getElementById(e);i.removeElement(t)}catch(e){}}},function(e,t,n){"use strict";n.d(t,"a",function(){return l}),n.d(t,"b",function(){return u}),n.d(t,"c",function(){return d}),n.d(t,"d",function(){return h});var a=n(1),i=n(0),r=n(4);function o(e){return function(){return i.a.hacking_skill>=e}}function s(e,t){this.name=e,this.create=t}s.prototype.htmlID=function(){return"create-program-"+(this.name.endsWith(".exe")?this.name.slice(0,-".exe".length):this.name)};const l={NukeProgram:new s("NUKE.exe",{level:1,tooltip:"This virus is used to gain root access to a machine if enough ports are opened.",req:o(1),time:a.a.MillisecondsPerFiveMinutes}),BruteSSHProgram:new s("BruteSSH.exe",{level:50,tooltip:"This program executes a brute force attack that opens SSH ports",req:o(50),time:2*a.a.MillisecondsPerFiveMinutes}),FTPCrackProgram:new s("FTPCrack.exe",{level:100,tooltip:"This program cracks open FTP ports",req:o(100),time:a.a.MillisecondsPerHalfHour}),RelaySMTPProgram:new s("relaySMTP.exe",{level:250,tooltip:"This program opens SMTP ports by redirecting data",req:o(250),time:a.a.MillisecondsPer2Hours}),HTTPWormProgram:new s("HTTPWorm.exe",{level:500,tooltip:"This virus opens up HTTP ports",req:o(500),time:a.a.MillisecondsPer4Hours}),SQLInjectProgram:new s("SQLInject.exe",{level:750,tooltip:"This virus opens SQL ports",req:o(750),time:a.a.MillisecondsPer8Hours}),DeepscanV1:new s("DeepscanV1.exe",{level:75,tooltip:"This program allows you to use the scan-analyze command with a depth up to 5",req:o(75),time:a.a.MillisecondsPerQuarterHour}),DeepscanV2:new s("DeepscanV2.exe",{level:400,tooltip:"This program allows you to use the scan-analyze command with a depth up to 10",req:o(400),time:a.a.MillisecondsPer2Hours}),ServerProfiler:new s("ServerProfiler.exe",{level:75,tooltip:"This program is used to display hacking and Netscript-related information about servers",req:o(75),time:a.a.MillisecondsPerHalfHour}),AutoLink:new s("AutoLink.exe",{level:25,tooltip:"This program allows you to directly connect to other servers through the 'scan-analyze' command",req:o(25),time:a.a.MillisecondsPerQuarterHour}),BitFlume:new s("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 i.a.sourceFiles.length>0&&i.a.hacking_skill>=1},time:a.a.MillisecondsPerFiveMinutes/5}),Flight:new s("fl1ght.exe")},c={};function u(){for(const e in c){const t=l[e];c[e].style.display="none",!i.a.hasProgram(t.name)&&t.create.req()&&(c[e].style.display="inline-block")}}function d(){var e=0;for(const t in l)void 0!==l[t].create&&(i.a.hasProgram(l[t].name)||l[t].create.req()&&e++);return!1===i.a.firstProgramAvailable&&e>0&&(i.a.firstProgramAvailable=!0,document.getElementById("create-program-tab").style.display="list-item",document.getElementById("hacking-menu-header").click(),document.getElementById("hacking-menu-header").click()),e}function h(){var e=document.getElementById("create-program-list");for(const t in l){if(void 0===l[t].create)continue;const n=Object(r.createElement)("a",{class:"a-link-button",id:l[t].htmlID(),innerText:l[t].name,tooltip:l[t].create.tooltip});c[t]=n,e.appendChild(n)}for(const e in c){const t=l[e];c[e].addEventListener("click",function(){return i.a.startCreateProgramWork(t.name,t.create.time,t.create.level),!1})}}},function(e,t,n){"use strict";n.d(t,"b",function(){return E}),n.d(t,"h",function(){return O}),n.d(t,"a",function(){return C}),n.d(t,"f",function(){return R}),n.d(t,"d",function(){return I}),n.d(t,"c",function(){return N}),n.d(t,"g",function(){return M}),n.d(t,"e",function(){return S});var a=n(58),i=n(1),r=n(7),o=n(107),s=n(93),l=n(5),c=n(37),u=n(94),d=n(62),h=n(11),p=n(19),m=n(88),g=n(41),y=n(8),f=n(79),b=n(48),v=n(71),_=n(2);const k=n(122);function E(e){this.name=e.filename,this.running=!1,this.serverIp=null,this.code=e.scriptRef.code,this.env=new s.a(this),this.env.set("args",e.args.slice()),this.output="",this.ramUsage=0,this.scriptRef=e,this.errorMessage="",this.args=e.args.slice(),this.delay=null,this.fnWorker=null,this.checkingRam=!1,this.loadedFns={},this.disableLogs={},this.dynamicRamUsage=i.a.ScriptBaseRamCost,this.dynamicLoadedFns={}}E.prototype.getServer=function(){return h.b[this.serverIp]},E.prototype.getScript=function(){let e=this.getServer();for(let t=0;t{if(t instanceof Error)throw e.errorMessage=Object(l.d)(e,t.message+(t.stack&&"\nstack:\n"+t.stack.toString()||"")),e;if(Object(l.b)(t))throw e.errorMessage=t,e;throw t})}function x(e){var t,n,a=e.code;e.running=!0;try{let i=function(e,t){var n=Object(g.parse)(e,{ecmaVersion:6,allowReserved:!0,sourceType:"module"}),a=t.getServer();if(null==a)throw new Error("Failed to find underlying Server object for script");var i="",r=!1;if(k.simple(n,{ImportDeclaration:e=>{r=!0;let t=e.source.value,n=function(e){for(let t=0;t{n.push(e.id.name),a.push(e)}}),i="var "+t+";\n(function (namespace) {\n",a.forEach(e=>{i+=Object(m.generate)(e),i+="\n"}),n.forEach(e=>{i+="namespace."+e+" = "+e,i+="\n"}),i+="})("+t+" || ("+t+" = {}));\n"}else{let t=[];e.specifiers.forEach(e=>{t.push(e.local.name)});let n=[];k.simple(o,{FunctionDeclaration:e=>{t.includes(e.id.name)&&n.push(e)}}),n.forEach(e=>{i+=Object(m.generate)(e),i+="\n"})}}}),!r)return{code:e,lineOffset:0};var o=0;if("Program"!==n.type||null==n.body)throw new Error("Code could not be properly parsed");for(let e=n.body.length-1;e>=0;--e)"ImportDeclaration"===n.body[e].type&&(n.body.splice(e,1),++o);var s=(i.match(/\n/g)||[]).length-o;return e=Object(m.generate)(n),{code:e=i+e,lineOffset:s}}(a,e);t=i.code,n=i.lineOffset}catch(t){return Object(y.dialogBoxCreate)("Error processing Imports in "+e.name+":
"+t),e.env.stopFlag=!0,void(e.running=!1)}var i;try{i=new o.a(t,function(t,n){var a=Object(c.a)(e);for(let e in a){let i=a[e];if("function"==typeof i)if("hack"===e||"grow"===e||"weaken"===e||"sleep"===e||"prompt"===e||"run"===e||"exec"===e){let a=function(){let e=[];for(let t=0;t"+t),e.env.stopFlag=!0,void(e.running=!1)}return new Promise(function(t,n){try{!function a(){try{if(e.env.stopFlag)return n(e);i.step()?window.setTimeout(a,p.Settings.CodeInstructionRunTime):t(e)}catch(t){return t=t.toString(),Object(l.b)(t)||(t=Object(l.d)(e,t)),e.errorMessage=t,n(e)}}()}catch(t){return Object(_.isString)(t)?(e.errorMessage=t,n(e)):n(t instanceof E?t:e)}})}function R(){for(var e=!1,t=O.length-1;t>=0;t--)if(0==O[t].running&&1==O[t].env.stopFlag){e=!0;var n=O[t].serverIp,i=O[t].name;h.b[n].ramUsed=0;for(let e=0;eServer Ip: "+n+"
Script name: "+a+"
Args:"+Object(b.arrayToString)(e.args)+"
"+i),e.scriptRef.log("Script crashed with runtime error")}else e.scriptRef.log("Script killed");e.running=!1,e.env.stopFlag=!0}else{if(Object(l.b)(e))return Object(y.dialogBoxCreate)("Script runtime unknown error. This is a bug please contact game developer"),void console.log("ERROR: Evaluating workerscript returns only error message rather than WorkerScript object. THIS SHOULDN'T HAPPEN: "+e.toString());Object(y.dialogBoxCreate)("An unknown script died for an unknown reason. This is a bug please contact game dev"),console.log(e)}else console.log("Script returning with value: "+e[1])})}setTimeout(R,6e3)}function I(e,t){for(var n=0;nt.maxRam-t.ramUsed)Object(y.dialogBoxCreate)("Not enough RAM to run script "+e.filename+" with args "+Object(b.arrayToString)(e.args)+". This likely occurred because you re-loaded the game and the script's RAM usage increased (either because of an update to the game or your changes to the script.)");else{t.ramUsed=Object(v.roundToTwo)(t.ramUsed+i);var r=new E(e);r.serverIp=t.ip,r.ramUsage=i,Object(a.a)(r),O.push(r)}}function M(e=1){for(var t=e*r.Engine._idleSpeed/1e3,n=0;ne.playerShares&&(t=e.playerShares),0===t)return!1;var n=e.price*t-a.a.StockMarketCommission;return s.a.gainMoney(n),e.playerShares-=t,0==e.playerShares&&(e.playerAvgPx=0),Z(e),Object(c.dialogBoxCreate)("Sold "+p.a.format(t,"0,0")+" shares of "+e.symbol+" at "+p.a.format(e.price,"($0.000a)")+" per share. After commissions, you gained a total of "+p.a.format(n,"($0.000a)")+"."),!0}function D(e,t,n=null){var i=n instanceof o.b;if(null==e||isNaN(t)||t<0)return i?n.scriptRef.log("ERROR: shortStock() failed because of invalid arguments."):Object(c.dialogBoxCreate)("Failed to initiate a short position in a stock. This is probably due to an invalid quantity. Otherwise, this may be a bug, so contact developer"),!1;if(0===(t=Math.round(t)))return!1;var r=e.price*t;if(s.a.money.lt(r+a.a.StockMarketCommission))return i?n.scriptRef.log("ERROR: shortStock() failed because you do not have enough money to purchase this short position. You need "+p.a.format(r+a.a.StockMarketCommission,"($0.000a)")+"."):Object(c.dialogBoxCreate)("You do not have enough money to purchase this short position. You need "+p.a.format(r+a.a.StockMarketCommission,"($0.000a)")+"."),!1;var l=e.playerShortShares*e.playerAvgShortPx;s.a.loseMoney(r+a.a.StockMarketCommission);var u=l+r;return e.playerShortShares+=t,e.playerAvgShortPx=u/e.playerShortShares,Z(e),i?null==n.disableLogs.ALL&&null==n.disableLogs.shortStock&&n.scriptRef.log("Bought a short position of "+p.a.format(t,"0,0")+" shares of "+e.symbol+" at "+p.a.format(e.price,"($0.000a)")+" per share. Paid "+p.a.format(a.a.StockMarketCommission,"($0.000a)")+" in commission fees."):Object(c.dialogBoxCreate)("Bought a short position of "+p.a.format(t,"0,0")+" shares of "+e.symbol+" at "+p.a.format(e.price,"($0.000a)")+" per share. Paid "+p.a.format(a.a.StockMarketCommission,"($0.000a)")+" in commission fees."),!0}function F(e,t,n=null){var i=n instanceof o.b;if(null==e||isNaN(t)||t<0)return i?n.scriptRef.log("ERROR: sellShort() failed because of invalid arguments."):Object(c.dialogBoxCreate)("Failed to sell a short position in a stock. This is probably due to an invalid quantity. Otherwise, this may be a bug, so contact developer"),!1;if((t=Math.round(t))>e.playerShortShares&&(t=e.playerShortShares),0===t)return!1;var r=t*e.playerAvgShortPx,l=(e.playerAvgShortPx-e.price)*t-a.a.StockMarketCommission;return isNaN(l)&&(l=0),s.a.gainMoney(r+l),i&&(n.scriptRef.onlineMoneyMade+=l,s.a.scriptProdSinceLastAug+=l),e.playerShortShares-=t,0===e.playerShortShares&&(e.playerAvgShortPx=0),Z(e),i?null==n.disableLogs.ALL&&null==n.disableLogs.sellShort&&n.scriptRef.log("Sold your short position of "+p.a.format(t,"0,0")+" shares of "+e.symbol+" at "+p.a.format(e.price,"($0.000a)")+" per share. After commissions, you gained a total of "+p.a.format(r+l,"($0.000a)")+"."):Object(c.dialogBoxCreate)("Sold your short position of "+p.a.format(t,"0,0")+" shares of "+e.symbol+" at "+p.a.format(e.price,"($0.000a)")+" per share. After commissions, you gained a total of "+p.a.format(r+l,"($0.000a)")+"."),!0}function H(){var e=Math.random();for(var t in x)if(x.hasOwnProperty(t)){var n=x[t];if(!(n instanceof l.Stock))continue;var a=e*n.mv/100;isNaN(a)&&(a=.02);var i=50;n.b?(i=(i+n.otlkMag)/100,isNaN(i)&&(i=.5)):(i=(i-n.otlkMag)/100,isNaN(i)&&(i=.5)),n.price>=k&&(i=-1,n.b=!1);var r=Math.random();r=o.price&&S(o);break;case E.LimitSell:case E.StopBuy:o.pos===O.Long&&e.price>=o.price?S(o):o.pos===O.Short&&e.price<=o.price&&S(o);break;case E.StopSell:o.pos===O.Long&&e.price<=o.price?S(o):o.pos===O.Short&&e.price>=o.price&&S(o);break;default:return void console.log("Invalid order type: "+o.type)}}}else{var s={};for(var c in x)if(x.hasOwnProperty(c)){if(!((e=x[c])instanceof l.Stock))continue;s[e.symbol]=[]}x.Orders=s}}function G(e){U=e}var U=!1,K=!1,q=a.a.StockMarketCommission;function Y(){function e(e,t,n,a,i){e.innerText=a,e.classList.remove("a-link-button"),e.classList.remove("a-link-button-bought"),e.classList.remove("a-link-button-inactive"),!n&&s.a.money.gte(t)?e.classList.add("a-link-button"):n?(e.innerText=i,e.classList.add("a-link-button-bought")):e.classList.add("a-link-button-inactive")}null==s.a.hasWseAccount&&(s.a.hasWseAccount=!1),null==s.a.hasTixApiAccess&&(s.a.hasTixApiAccess=!1),null==s.a.has4SData&&(s.a.has4SData=!1),null==s.a.has4SDataTixApi&&(s.a.has4SDataTixApi=!1);var t=Object(u.clearEventListeners)("stock-market-buy-account");e(t,a.a.WSEAccountCost,s.a.hasWseAccount,"Buy WSE Account - "+p.a.format(a.a.WSEAccountCost,"($0.000a)"),"WSE Account - Purchased"),t.addEventListener("click",function(){return s.a.hasWseAccount=!0,P(),A(),s.a.loseMoney(a.a.WSEAccountCost),Y(),!1});var n=Object(u.clearEventListeners)("stock-market-buy-tix-api");e(n,a.a.TIXAPICost,s.a.hasTixApiAccess,"Buy Trade Information eXchange (TIX) API Access - "+p.a.format(a.a.TIXAPICost,"($0.000a)"),"TIX API Access - Purchased"),n.addEventListener("click",function(){return s.a.hasTixApiAccess=!0,s.a.loseMoney(a.a.TIXAPICost),Y(),!1});var i=Object(u.clearEventListeners)("stock-market-buy-4s-data");e(i,a.a.MarketData4SCost,s.a.has4SData,"Buy 4S Market Data Access - "+p.a.format(a.a.MarketData4SCost,"($0.000a)"),"4S Market Data - Purchased"),i.addEventListener("click",function(){return s.a.has4SData=!0,s.a.loseMoney(a.a.MarketData4SCost),Y(),!1}),i.appendChild(Object(f.createElement)("span",{class:"tooltiptext",innerText:"Lets you view additional pricing and volatility information about stocks"})),i.style.marginRight="2px";var r=Object(u.clearEventListeners)("stock-market-4s-data-help-tip");r.style.marginTop="10px",r.addEventListener("click",()=>(Object(c.dialogBoxCreate)("Access to the 4S Market Data feed will display two additional pieces of information about each stock: Price Forecast & Volatility

Price Forecast indicates the probability the stock has of increasing or decreasing. A '+' forecast means the stock has a higher chance of increasing than decreasing, and a '-' means the opposite. The number of '+/-' symbols is used to illustrate the magnitude of these probabilities. For example, '+++' means that the stock has a significantly higher chance of increasing than decreasing, while '+' means that the stock only has a slightly higher chance of increasing than decreasing.

Volatility represents the maximum percentage by which a stock's price can change every tick (a tick occurs every few seconds while the game is running).

A stock's price forecast can change over time. This is also affected by volatility. The more volatile a stock is, the more its price forecast will change."),!1));var o=Object(u.clearEventListeners)("stock-market-buy-4s-tix-api");if(e(o,a.a.MarketDataTixApi4SCost,s.a.has4SDataTixApi,"Buy 4S Market Data TIX API Access - "+p.a.format(a.a.MarketDataTixApi4SCost,"($0.000a)"),"4S Market Data TIX API - Purchased"),s.a.hasTixApiAccess?(o.addEventListener("click",function(){return s.a.has4SDataTixApi=!0,s.a.loseMoney(a.a.MarketDataTixApi4SCost),Y(),!1}),o.appendChild(Object(f.createElement)("span",{class:"tooltiptext",innerText:"Lets you access 4S Market Data through Netscript"}))):(o.classList.remove("a-link-button"),o.classList.remove("a-link-button-bought"),o.classList.remove("a-link-button-inactive"),o.classList.add("a-link-button-inactive"),o.appendChild(Object(f.createElement)("span",{class:"tooltiptext",innerText:"Requires TIX API Access"}))),null!=(_=document.getElementById("stock-market-list"))){var d=document.getElementById("stock-market-commission"),h=document.getElementById("stock-market-mode"),m=document.getElementById("stock-market-expand-tickers"),g=document.getElementById("stock-market-collapse-tickers"),b=document.getElementById("stock-market-watchlist-filter"),v=document.getElementById("stock-market-watchlist-filter-update");if(!s.a.hasWseAccount){for(U=!1;_.firstChild;)_.removeChild(_.firstChild);return d.style.visibility="hidden",h.style.visibility="hidden",m.style.visibility="hidden",g.style.visibility="hidden",b.style.visibility="hidden",void(v.style.visibility="hidden")}if(d.style.visibility="visible",h.style.visibility="visible",m.style.visibility="visible",g.style.visibility="visible",b.style.visibility="visible",v.style.visibility="visible",!U&&s.a.hasWseAccount){console.log("Creating Stock Market UI"),d.innerHTML="Commission Fees: Every transaction you make has a "+p.a.format(a.a.StockMarketCommission,"($0.000a)")+" commission fee.

WARNING: When you reset after installing Augmentations, the Stock Market is reset. This means all your positions are lost, so make sure to sell your stocks before installing Augmentations!",Object(u.clearEventListeners)("stock-market-investopedia").addEventListener("click",function(){return Object(c.dialogBoxCreate)("When making a transaction on the stock market, there are two types of positions: Long and Short. A Long position is the typical scenario where you buy a stock and earn a profit if the price of that stock increases. Meanwhile, a Short position is the exact opposite. In a Short position you purchase shares of a stock and earn a profit if the price of that stock decreases. This is also called 'shorting' a stock.

NOTE: Shorting stocks is not available immediately, and must be unlocked later on in the game.

There are three different types of orders you can make to buy or sell stocks on the exchange: Market Order, Limit Order, and Stop Order. Note that Limit Orders and Stop Orders are not available immediately, and must be unlocked later on in the game.

When you place a Market Order to buy or sell a stock, the order executes immediately at whatever the current price of the stock is. For example if you choose to short a stock with 5000 shares using a Market Order, you immediately purchase those 5000 shares in a Short position at whatever the current market price is for that stock.

A Limit Order is an order that only executes under certain conditions. A Limit Order is used to buy or sell a stock at a specified price or better. For example, lets say you purchased a Long position of 100 shares of some stock at a price of $10 per share. You can place a Limit Order to sell those 100 shares at $50 or better. The Limit Order will execute when the price of the stock reaches a value of $50 or higher.

A Stop Order is the opposite of a Limit Order. It is used to buy or sell a stock at a specified price (before the price gets 'worse'). For example, lets say you purchased a Short position of 100 shares of some stock at a price of $100 per share. The current price of the stock is $80 (a profit of $20 per share). You can place a Stop Order to sell the Short position if the stock's price reaches $90 or higher. This can be used to lock in your profits and limit any losses.

Here is a summary of how each order works and when they execute:

In a LONG Position:

A Limit Order to buy will execute if the stock's price <= order's price
A Limit Order to sell will execute if the stock's price >= order's price
A Stop Order to buy will execute if the stock's price >= order's price
A Stop Order to sell will execute if the stock's price <= order's price

In a SHORT Position:

A Limit Order to buy will execute if the stock's price >= order's price
A Limit Order to sell will execute if the stock's price <= order's price
A Stop Order to buy will execute if the stock's price <= order's price
A Stop Order to sell will execute if the stock's price >= order's price."),!1}),h&&(h.innerHTML="Switch to 'Portfolio' ModeDisplays only the stocks for which you have shares or orders",h.addEventListener("click",V));var _=document.getElementById("stock-market-list");m&&m.addEventListener("click",()=>{for(var e=_.getElementsByClassName("accordion-header"),t=0;t{for(var e=_.getElementsByClassName("accordion-header"),t=0;t{let e=b.value.toString();x.watchlistFilter=e.replace(/\s/g,""),K?V():J()}),b.addEventListener("keyup",e=>{e.preventDefault(),e.keyCode===y.KEY.ENTER&&v.click()})):console.warn("Stock Market Watchlist DOM elements could not be found"),z(),U=!0}if(s.a.hasWseAccount)for(var k in x)if(x.hasOwnProperty(k)){var E=x[k];E instanceof l.Stock&&(Q(E,null),ee(E))}}}function V(){K=!0;var e=Object(u.clearEventListeners)("stock-market-mode");e&&(e.innerHTML="Switch to 'All stocks' ModeDisplays all stocks on the WSE",e.addEventListener("click",J)),z()}function J(){K=!1;var e=Object(u.clearEventListeners)("stock-market-mode");e&&(e.innerHTML="Switch to 'Portfolio' ModeDisplays only the stocks for which you have shares or orders",e.addEventListener("click",V)),z()}function z(){var e=document.getElementById("stock-market-list");null==e&&Object(m.a)("Error creating Stock Tickers UI. DOM element with ID 'stock-market-list' could not be found"),Object(b.removeChildrenFromElement)(e);var t=x.Orders;if(null==t){var n={};for(var a in x)if(x.hasOwnProperty(a)){if(!((r=x[a])instanceof l.Stock))continue;n[r.symbol]=[]}x.Orders=n,t=x.Orders}let i=null;if(null!=x.watchlistFilter&&""!==x.watchlistFilter){i=x.watchlistFilter.replace(/\s/g,"").split(",")}for(var a in x)if(x.hasOwnProperty(a)){var r;if(!((r=x[a])instanceof l.Stock))continue;if(i&&!i.includes(r.symbol))continue;let e=t[r.symbol];if(K&&0===r.playerShares&&0===r.playerShortShares&&0===e.length)continue;$(r)}X()}function $(e){if(e instanceof l.Stock){var t="stock-market-ticker-"+e.symbol,n=document.createElement("li"),a=document.createElement("button");a.classList.add("accordion-header"),a.setAttribute("id",t+"-hdr"),a.innerHTML=e.name+" - "+e.symbol+" - "+p.a.format(e.price,"($0.000a)");var i=document.createElement("div");i.classList.add("accordion-panel"),i.setAttribute("id",t+"-panel");var o=document.createElement("input"),u=document.createElement("select"),d=document.createElement("select"),h=document.createElement("span"),m=document.createElement("span"),g=document.createElement("span"),y=document.createElement("span"),f=document.createElement("p"),b=document.createElement("ul");o.classList.add("stock-market-input"),o.placeholder="Quantity (Shares)",o.setAttribute("id",t+"-qty-input"),o.setAttribute("onkeydown","return ( event.ctrlKey || event.altKey || (4734 && event.keyCode<40) || (event.keyCode==46) )"),u.classList.add("stock-market-input"),u.setAttribute("id",t+"-pos-selector");var v=document.createElement("option");if(v.text="Long",u.add(v),8===s.a.bitNodeN||r.f&&r.h>=2){var k=document.createElement("option");k.text="Short",u.add(k)}d.classList.add("stock-market-input"),d.setAttribute("id",t+"-order-selector");var w=document.createElement("option");if(w.text="Market Order",d.add(w),8===s.a.bitNodeN||r.f&&r.h>=3){var S=document.createElement("option");S.text="Limit Order",d.add(S);var T=document.createElement("option");T.text="Stop Order",d.add(T)}h.classList.add("stock-market-input"),h.classList.add("a-link-button"),h.innerHTML="Buy",h.addEventListener("click",()=>{var n=u.options[u.selectedIndex].text;n="Long"===n?O.Long:O.Short;var a=d.options[d.selectedIndex].text,i=Number(document.getElementById(t+"-qty-input").value);if(isNaN(i))return!1;switch(a){case"Market Order":n===O.Long?B(e,i):D(e,i,null);break;case"Limit Order":case"Stop Order":var r=Object(_.j)(),o=Object(_.i)();r.innerText="Place Buy "+a,o.innerText="Cancel Order",r.addEventListener("click",()=>{var t,r=Number(Object(_.h)());t="Limit Order"===a?E.LimitBuy:E.StopBuy,C(e,i,r,t,n),Object(_.f)()}),o.addEventListener("click",()=>{Object(_.f)()}),Object(_.g)("Enter the price for your "+a);break;default:console.log("ERROR: Invalid order type")}return!1}),m.classList.add("stock-market-input"),m.classList.add("a-link-button"),m.innerHTML="Sell",m.addEventListener("click",()=>{var n=u.options[u.selectedIndex].text;n="Long"===n?O.Long:O.Short;var a=d.options[d.selectedIndex].text,i=Number(document.getElementById(t+"-qty-input").value);if(isNaN(i))return!1;switch(a){case"Market Order":n===O.Long?j(e,i):F(e,i,null);break;case"Limit Order":case"Stop Order":var r=Object(_.j)(),o=Object(_.i)();r.innerText="Place Sell "+a,o.innerText="Cancel Order",r.addEventListener("click",()=>{var t,r=Number(Object(_.h)());t="Limit Order"===a?E.LimitSell:E.StopSell,Object(_.f)(),C(e,i,r,t,n)}),o.addEventListener("click",()=>{Object(_.f)()}),Object(_.g)("Enter the price for your "+a);break;default:console.log("ERROR: Invalid order type")}return!1}),g.classList.add("stock-market-input"),g.classList.add("a-link-button"),g.innerHTML="Buy MAX",g.addEventListener("click",()=>{var t=u.options[u.selectedIndex].text;t="Long"===t?O.Long:O.Short;var n=d.options[d.selectedIndex].text,a=s.a.money.toNumber();switch(n){case"Market Order":var i=Math.floor((a-q)/e.price);t===O.Long?B(e,i):D(e,i,null);break;case"Limit Order":case"Stop Order":var r=Object(_.j)(),o=Object(_.i)();r.innerText="Place Buy "+n,o.innerText="Cancel Order",r.addEventListener("click",()=>{var i,r=Number(Object(_.h)());i="Limit Order"===n?E.LimitBuy:E.StopBuy;var o=Math.floor((a-q)/r);C(e,o,r,i,t),Object(_.f)()}),o.addEventListener("click",()=>{Object(_.f)()}),Object(_.g)("Enter the price for your "+n);break;default:console.log("ERROR: Invalid order type")}return!1}),y.classList.add("stock-market-input"),y.classList.add("a-link-button"),y.innerHTML="Sell ALL",y.addEventListener("click",()=>{var t=u.options[u.selectedIndex].text;switch(t="Long"===t?O.Long:O.Short,d.options[d.selectedIndex].text){case"Market Order":if(t===O.Long){var n=e.playerShares;j(e,n)}else{n=e.playerShortShares;F(e,n,null)}break;case"Limit Order":case"Stop Order":Object(c.dialogBoxCreate)("ERROR: 'Sell All' only works for Market Orders");break;default:console.log("ERROR: Invalid order type")}return!1}),f.setAttribute("id",t+"-position-text"),f.classList.add("stock-market-position-text"),e.posTxtEl=f,b.setAttribute("id",t+"-order-list"),b.classList.add("stock-market-order-list"),i.appendChild(o),i.appendChild(u),i.appendChild(d),i.appendChild(h),i.appendChild(m),i.appendChild(g),i.appendChild(y),i.appendChild(f),i.appendChild(b),n.appendChild(a),n.appendChild(i),document.getElementById("stock-market-list").appendChild(n),Q(e,!0),Z(e),ee(e)}else console.log("Invalid stock in createStockSticker()")}function X(){var e=document.getElementById("stock-market-list").getElementsByClassName("accordion-header");if(null!=e)for(var t=0;t0||e.playerShortShares>0)&&Z(e);var a=document.getElementById(n+"-hdr");if(null==a){if(!K){let t=x.watchlistFilter;""!==t&&t.includes(e.symbol)&&console.log("ERROR: Couldn't find ticker element for stock: "+e.symbol)}return}let i=e.name+" ("+e.symbol+") - "+p.a.format(e.price,"($0.000a)");s.a.has4SData&&(i+=" - Volatility: "+p.a.format(e.mv,"0,0.00")+"% - Price Forecast: ",e.b?i+="+".repeat(Math.floor(e.otlkMag/10)+1):i+="-".repeat(Math.floor(e.otlkMag/10)+1)),a.innerText=i,null!=t&&(a.style.color=t?"#66ff33":"red")}function Z(e){if(h.routing.isOn(h.Page.StockMarket)){if(!(e instanceof l.Stock))return console.log("Invalid stock in updateStockPlayerPosition():"),void console.log(e);var t="stock-market-ticker-"+e.symbol;if(K){if(0===e.playerShares&&0===e.playerShortShares&&x.Orders&&x.Orders[e.symbol]&&0===x.Orders[e.symbol].length)return Object(v.removeElementById)(t+"-hdr"),void Object(v.removeElementById)(t+"-panel");if(null==document.getElementById(t+"-hdr"))return $(e),void X()}if(e.posTxtEl instanceof Element||(e.posTxtEl=document.getElementById(t+"-position-text")),null!=e.posTxtEl){var n=e.playerShares*e.playerAvgPx,a=(e.price-e.playerAvgPx)*e.playerShares,i=a/n;isNaN(i)&&(i=0);var o=e.playerShortShares*e.playerAvgShortPx,c=(e.playerAvgShortPx-e.price)*e.playerShortShares,u=c/o;isNaN(u)&&(u=0),e.posTxtEl.innerHTML="

Long Position: Shares in the long position will increase in value if the price of the corresponding stock increases


Shares: "+p.a.format(e.playerShares,"0,0")+"
Average Price: "+p.a.format(e.playerAvgPx,"$0.000a")+" (Total Cost: "+p.a.format(n,"$0.000a")+")
Profit: "+p.a.format(a,"$0.000a")+" ("+p.a.format(i,"0.00%")+")

",(8===s.a.bitNodeN||r.f&&r.h>=2)&&(e.posTxtEl.innerHTML+="

Short Position: Shares in short position will increase in value if the price of the corresponding stock decreases


Shares: "+p.a.format(e.playerShortShares,"0,0")+"
Average Price: "+p.a.format(e.playerAvgShortPx,"$0.000a")+" (Total Cost: "+p.a.format(o,"$0.000a")+")
Profit: "+p.a.format(c,"$0.000a")+" ("+p.a.format(u,"0.00%")+")

Orders:

")}else console.log("ERROR: Could not find stock position element for: "+e.symbol)}}function ee(e){if(h.routing.isOn(h.Page.StockMarket)){var t="stock-market-ticker-"+e.symbol,n=document.getElementById(t+"-order-list");if(null!=n){var a=x.Orders;if(null!=a){var i=a[e.symbol];if(null!=i){if(K){if(0===e.playerShares&&0===e.playerShortShares&&x.Orders&&x.Orders[e.symbol]&&0===x.Orders[e.symbol].length)return Object(v.removeElementById)(t+"-hdr"),void Object(v.removeElementById)(t+"-panel");if(null==document.getElementById(t+"-hdr"))return $(e),void X()}for(;n.firstChild;)n.removeChild(n.firstChild);for(var r=0;r
automate [var] [val] [hi/low] Configure simple automation for Bladeburner tasks
clear/cls Clear the console
help [cmd] Display this help text, or help text for a specific command
log [en/dis] [type] Enable or disable logging for events and actions
skill [action] [name] Level or display info about your Bladeburner skills
start [type] [name] Start a Bladeburner action/task
stop Stops your current Bladeburner action/task
",automate:'automate [var] [val] [hi/low]

A simple way to automate your Bladeburner actions. This console command can be used to automatically start an action when your stamina rises above a certain threshold, and automatically switch to another action when your stamina drops below another threshold.

automate status - Check the current status of your automation and get a brief description of what it\'ll do
automate en - Enable the automation feature
automate dis - Disable the automation feature

There are four properties that must be set for this automation to work properly. Here is how to set them:

automate stamina 100 high
automate contract Tracking high
automate stamina 50 low
automate general "Field Analysis" low

Using the four console commands above will set the automation to perform Tracking contracts if your stamina is 100 or higher, and then switch to Field Analysis if your stamina drops below 50. Note that when setting the action, the name of the action is CASE-SENSITIVE. It must exactly match whatever the name is in the UI.',clear:"clear

Clears the console",cls:"cls

Clears the console",help:"help [command]

Running 'help' with no arguments displays the general help text, which lists all console commands and a brief description of what they do. A command can be specified to get more specific help text about that particular command. For example:

help automate

will display specific information about using the automate console command",log:"log [en/dis] [type]

Enable or disable logging. By default, the results of completing actions such as contracts/operations are logged in the console. There are also random events that are logged in the console as well. The five categories of things that get logged are:

[general, contracts, ops, blackops, events]

The logging for these categories can be enabled or disabled like so:

log dis contracts - Disables logging that occurs when contracts are completed
log en contracts - Enables logging that occurs when contracts are completed
log dis events - Disables logging for Bladeburner random events

Logging can be universally enabled/disabled using the 'all' keyword:

log dis all
log en all",skill:'skill [action] [name]

Level or display information about your skills.

To display information about all of your skills and your multipliers, use:

skill list

To display information about a specific skill, specify the name of the skill afterwards. Note that the name of the skill is case-sensitive. Enter it exactly as seen in the UI. If the name of the skill has whitespace, enclose the name of the skill in double quotation marks:

skill list Reaper
skill list "Digital Observer"

This console command can also be used to level up skills:

skill level [skill name]',start:'start [type] [name]

Start an action. An action is specified by its type and its name. The name is case-sensitive. It must appear exactly as it does in the UI. If the name of the action has whitespace, enclose it in double quotation marks. Valid action types include:

[general, contract, op, blackop]

Examples:

start contract Tracking
start op "Undercover Operation"
',stop:"stop

Stop your current action and go idle"};function L(e={}){this.name=e.name?e.name:l.Locations.Sector12,this.pop=e.pop?e.pop:Object(w.getRandomInt)(8e8,1.2*I),this.popEst=this.pop*(Math.random()+.5),this.comms=e.comms?e.comms:Object(w.getRandomInt)(5,100),this.commsEst=this.comms+Object(w.getRandomInt)(-5,5),this.commsEst<0&&(this.commsEst=0),this.chaos=0}function B(e={name:"foo",desc:"foo"}){if(!e.name)throw new Error("Failed to initialize Bladeburner Skill. No name was specified in ctor");if(this.name=e.name,!e.desc)throw new Error("Failed to initialize Bladeburner Skills. No desc was specified in ctor");this.desc=e.desc,this.baseCost=e.baseCost?e.baseCost:1,this.costInc=e.costInc?e.costInc:1,e.maxLvl&&(this.maxLvl=e.maxLvl),e.successChanceAll&&(this.successChanceAll=e.successChanceAll),e.successChanceStealth&&(this.successChanceStealth=e.successChanceStealth),e.successChanceKill&&(this.successChanceKill=e.successChanceKill),e.successChanceContract&&(this.successChanceContract=e.successChanceContract),e.successChanceOperation&&(this.successChanceOperation=e.successChanceOperation),e.successChanceEstimate&&(this.successChanceEstimate=e.successChanceEstimate),e.actionTime&&(this.actionTime=e.actionTime),e.effHack&&(this.effHack=e.effHack),e.effStr&&(this.effStr=e.effStr),e.effDef&&(this.effDef=e.effDef),e.effDex&&(this.effDex=e.effDex),e.effAgi&&(this.effAgi=e.effAgi),e.effCha&&(this.effCha=e.effCha),e.stamina&&(this.stamina=e.stamina),e.weaponAbility&&(this.weaponAbility=e.weaponAbility),e.gunAbility&&(this.gunAbility=e.gunAbility)}e(document).keydown(function(e){if(E.routing.isOn(E.Page.Bladeburner)){if(!(c.a.bladeburner instanceof V))return;if(e.keyCode===h.KEY.ENTER){e.preventDefault();var t=J.consoleInput.value;t.length>0&&(c.a.bladeburner.postToConsole("> "+t),c.a.bladeburner.resetConsoleInput(),c.a.bladeburner.executeConsoleCommands(t))}if(e.keyCode===h.KEY.UPARROW){if(null==J.consoleInput)return;var n=P;if(0===(i=M.length))return;(n<0||n>i)&&(P=i),0!==n&&--P;var a=M[P];J.consoleInput.value=a,setTimeout(function(){J.consoleInput.selectionStart=J.consoleInput.selectionEnd=1e4},0)}if(e.keyCode===h.KEY.DOWNARROW){if(null==J.consoleInput)return;var i;n=P;if(0==(i=M.length))return;if((n<0||n>i)&&(P=i),n==i||n==i-1)P=i,J.consoleInput.value="";else{a=M[++P];J.consoleInput.value=a}}}}),L.prototype.improvePopulationEstimateByCount=function(e){if(isNaN(e))throw new Error("NaN passeed into City.improvePopulationEstimateByCount()");this.popEstthis.pop&&(this.popEst=this.pop)):this.popEst>this.pop&&(this.popEst-=e,this.popEstthis.pop&&(this.popEst=this.pop)):this.popEst>this.pop&&(this.popEst*=1-e/100,this.popEstthis.comms&&(this.commsEst=this.comms)):this.commsEst>this.comms&&(this.commsEst-=e,this.commsEst0?1:-1),this.pop+=n,t.changeEstEqually&&(this.popEst+=n,this.popEst<0&&(this.popEst=0)),n}},L.prototype.changeChaosByCount=function(e){if(isNaN(e))throw new Error("NaN passed into City.changeChaosByCount()");0!==e&&(this.chaos+=e,this.chaos<0&&(this.chaos=0))},L.prototype.changeChaosByPercentage=function(e){if(isNaN(e))throw new Error("NaN passed into City.chaosChaosByPercentage()");if(0!==e){var t=this.chaos*(e/100);this.chaos+=t,this.chaos<0&&(this.chaos=0)}},L.prototype.toJSON=function(){return Object(y.Generic_toJSON)("City",this)},L.fromJSON=function(e){return Object(y.Generic_fromJSON)(L,e.data)},y.Reviver.constructors.City=L,B.prototype.calculateCost=function(e){return Math.floor((this.baseCost+e*this.costInc)*i.BitNodeMultipliers.BladeburnerSkillCost)};var j={},D={BladesIntuition:"Blade's Intuition",Reaper:"Reaper",Cloak:"Cloak",Marksman:"Marksman",WeaponProficiency:"Weapon Proficiency",Overclock:"Overclock",EvasiveSystem:"Evasive System",ShortCircuit:"Short-Circuit",DigitalObserver:"Digital Observer",Datamancer:"Datamancer",Tracer:"Tracer",CybersEdge:"Cyber's Edge"};function F(e={}){this.name=e.name?e.name:"",this.desc=e.desc?e.desc:"",this.level=1,this.maxLevel=1,this.autoLevel=!0,this.baseDifficulty=e.baseDifficulty?Object(f.addOffset)(e.baseDifficulty,10):100,this.difficultyFac=e.difficultyFac?e.difficultyFac:1.01,this.rewardFac=e.rewardFac?e.rewardFac:1.02,this.successes=0,this.failures=0,this.rankGain=e.rankGain?e.rankGain:0,e.rankLoss&&(this.rankLoss=e.rankLoss),e.hpLoss&&(this.hpLoss=e.hpLoss,this.hpLost=0),this.isStealth=!!e.isStealth,this.isKill=!!e.isKill,this.count=e.count?e.count:Object(w.getRandomInt)(1e3,25e3),this.countGrowth=e.countGrowth?e.countGrowth:Object(w.getRandomInt)(1,5);this.weights=e.weights?e.weights:{hack:1/7,str:1/7,def:1/7,dex:1/7,agi:1/7,cha:1/7,int:1/7};var t=0;for(var n in this.weights)this.weights.hasOwnProperty(n)&&(t+=this.weights[n]);if(t-1>=10*Number.EPSILON)throw new Error("Invalid weights when constructing Action "+this.name+". The weights should sum up to 1. They sum up to :1");for(var a in this.decays=e.decays?e.decays:{hack:.9,str:.9,def:.9,dex:.9,agi:.9,cha:.9,int:.9},this.decays)if(this.decays.hasOwnProperty(a)&&this.decays[a]>1)throw new Error("Invalid decays when constructing Action "+this.name+". Decay value cannot be greater than 1")}F.prototype.getDifficulty=function(){var e=this.baseDifficulty*Math.pow(this.difficultyFac,this.level-1);if(isNaN(e))throw new Error("Calculated NaN in Action.getDifficulty()");return e},F.prototype.getSuccessChance=function(e,t={}){if(null==e)throw new Error("Invalid Bladeburner instance passed into Action.getSuccessChance");var n=this.getDifficulty(),a=0;for(var i in this.weights)if(this.weights.hasOwnProperty(i)){var r=c.a.queryStatFromString(i),o="eff"+i.charAt(0).toUpperCase()+i.slice(1),s=e.skillMultipliers[o];null==s&&(console.log("ERROR: Failed to find Bladeburner Skill multiplier for: "+i),s=1),a+=this.weights[i]*Math.pow(s*r,this.decays[i])}(a*=e.calculateStaminaPenalty(),this instanceof K||this instanceof q)&&(this.teamCount&&this.teamCount>0&&(this.teamCount=Math.min(this.teamCount,e.teamSize),a*=Math.pow(this.teamCount,.05)));if(!(this instanceof q)){var l=e.getCurrentCity();if(t.est?a*=l.popEst/I:a*=l.pop/I,l.chaos>50){var u=l.chaos-50+1;n*=Math.pow(u,.1)}if(this instanceof K&&"Raid"===this.name&&l.comms<=0)return 0}if(a*=e.skillMultipliers.successChanceAll,(this instanceof K||this instanceof q)&&(a*=e.skillMultipliers.successChanceOperation),this instanceof U&&(a*=e.skillMultipliers.successChanceContract),this.isStealth&&(a*=e.skillMultipliers.successChanceStealth),this.isKill&&(a*=e.skillMultipliers.successChanceKill),a*=c.a.bladeburner_success_chance_mult,isNaN(a))throw new Error("Competence calculated as NaN in Action.getSuccessChance()");return Math.min(1,a/n)},F.prototype.attempt=function(e){return Math.random()=this.getSuccessesNeededForNextLevel(e)&&++this.maxLevel},F.prototype.toJSON=function(){return Object(y.Generic_toJSON)("Action",this)},F.fromJSON=function(e){return Object(y.Generic_fromJSON)(F,e.data)},y.Reviver.constructors.Action=F;var H={},W=Object.freeze({Idle:1,Contract:2,Operation:3,BlackOp:4,BlackOperation:4,Training:5,Recruitment:6,FieldAnalysis:7,"Field Analysis":7});function G(e={}){e.name&&(this.name=e.name),e.type&&(this.type=e.type)}function U(e={}){F.call(this,e)}function K(e={}){F.call(this,e),this.reqdRank=e.reqdRank?e.reqdRank:100,this.teamCount=e.teamCount?e.teamCount:0}function q(e={}){K.call(this,e),this.count=1,this.countGrowth=0}G.prototype.toJSON=function(){return Object(y.Generic_toJSON)("ActionIdentifier",this)},G.fromJSON=function(e){return Object(y.Generic_fromJSON)(G,e.data)},y.Reviver.constructors.ActionIdentifier=G,U.prototype=Object.create(F.prototype),U.prototype.toJSON=function(){return Object(y.Generic_toJSON)("Contract",this)},U.fromJSON=function(e){return Object(y.Generic_fromJSON)(U,e.data)},y.Reviver.constructors.Contract=U,K.prototype=Object.create(F.prototype),K.prototype.toJSON=function(){return Object(y.Generic_toJSON)("Operation",this)},K.fromJSON=function(e){return Object(y.Generic_fromJSON)(K,e.data)},y.Reviver.constructors.Operation=K,q.prototype=Object.create(F.prototype),q.prototype.toJSON=function(){return Object(y.Generic_toJSON)("BlackOperation",this)},q.fromJSON=function(e){return Object(y.Generic_fromJSON)(q,e.data)},y.Reviver.constructors.BlackOperation=q;var Y={};function V(e={}){this.numHosp=0,this.moneyLost=0,this.rank=0,this.maxRank=0,this.skillPoints=0,this.totalSkillPoints=0,this.teamSize=0,this.teamLost=0,this.storedCycles=0,this.randomEventCounter=Object(w.getRandomInt)(240,600),this.actionTimeToComplete=0,this.actionTimeCurrent=0;var t,n=W.Idle;this.action=new G({type:n}),this.cities={};for(var a=0;a
Does NOT require stamina."}),H[t="Recruitment"]=new F({name:t,desc:"Attempt to recruit members for your Bladeburner team. These members can help you conduct operations.

Does NOT require stamina."}),Y["Operation Typhoon"]=new q({name:"Operation Typhoon",desc:"Obadiah Zenyatta is the leader of a RedWater PMC. It has long been known among the intelligence community that Zenyatta, along with the rest of the PMC, is a Synthoid.

The goal of Operation Typhoon is to find and eliminate Zenyatta and RedWater by any means necessary. After the task is completed, the actions must be covered up from the general public.",baseDifficulty:2e3,reqdRank:2500,rankGain:50,rankLoss:10,hpLoss:100,weights:{hack:.1,str:.2,def:.2,dex:.2,agi:.2,cha:0,int:.1},decays:{hack:.6,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.75},isKill:!0}),Y["Operation Zero"]=new q({name:"Operation Zero",desc:"AeroCorp is one of the world's largest defense contractors. It's leader, Steve Watataki, is thought to be a supporter of Synthoid rights. He must be removed.

The goal of Operation Zero is to covertly infiltrate AeroCorp and uncover any incriminating evidence or information against Watataki that will cause him to be removed from his position at AeroCorp. Incriminating evidence can be fabricated as a last resort. Be warned that AeroCorp has some of the most advanced security measures in the world.",baseDifficulty:2500,reqdRank:5e3,rankGain:60,rankLoss:15,hpLoss:50,weights:{hack:.2,str:.15,def:.15,dex:.2,agi:.2,cha:0,int:.1},decays:{hack:.6,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.75},isStealth:!0}),Y["Operation X"]=new q({name:"Operation X",desc:"We have recently discovered an underground publication group called Samizdat. Even though most of their publications are nonsensical conspiracy theories, the average human is gullible enough to believe them. Many of their works discuss Synthoids and pose a threat to society. The publications are spreading rapidly in China and other Eastern countries.

Samizdat has done a good job of keeping hidden and anonymous. However, we've just received intelligence that their base of operations is in Ishima's underground sewer systems. Your task is to investigate the sewer systems, and eliminate Samizdat. They must never publish anything again.",baseDifficulty:3e3,reqdRank:7500,rankGain:75,rankLoss:15,hpLoss:100,weights:{hack:.1,str:.2,def:.2,dex:.2,agi:.2,cha:0,int:.1},decays:{hack:.6,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.75},isKill:!0}),Y["Operation Titan"]=new q({name:"Operation Titan",desc:"Several months ago Titan Laboratories' Bioengineering department was infiltrated by Synthoids. As far as we know, Titan Laboratories' management has no knowledge about this. We don't know what the Synthoids are up to, but the research that they could be conducting using Titan Laboraties' vast resources is potentially very dangerous.

Your goal is to enter and destroy the Bioengineering department's facility in Aevum. The task is not just to retire the Synthoids there, but also to destroy any information or research at the facility that is relevant to the Synthoids and their goals.",baseDifficulty:4e3,reqdRank:1e4,rankGain:100,rankLoss:20,hpLoss:100,weights:{hack:.1,str:.2,def:.2,dex:.2,agi:.2,cha:0,int:.1},decays:{hack:.6,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.75},isKill:!0}),Y["Operation Ares"]=new q({name:"Operation Ares",desc:"One of our undercover agents, Agent Carter, has informed us of a massive weapons deal going down in Dubai between rogue Russian militants and a radical Synthoid community. These weapons are next-gen plasma and energy weapons. It is critical for the safety of humanity that this deal does not happen.

Your task is to intercept the deal. Leave no survivors.",baseDifficulty:5e3,reqdRank:12500,rankGain:125,rankLoss:20,hpLoss:200,weights:{hack:0,str:.25,def:.25,dex:.25,agi:.25,cha:0,int:0},decays:{hack:0,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.75},isKill:!0}),Y["Operation Archangel"]=new q({name:"Operation Archangel",desc:"Our analysts have discovered that the popular Red Rabbit brothel in Amsterdam is run and 'staffed' by MK-VI Synthoids. Intelligence suggests that the profit from this brothel is used to fund a large black market arms trafficking operation.

The goal of this operation is to take out the leaders that are running the Red Rabbit brothel. Try to limit the number of other casualties, but do what you must to complete the mission.",baseDifficulty:7500,reqdRank:15e3,rankGain:200,rankLoss:20,hpLoss:25,weights:{hack:0,str:.2,def:.2,dex:.3,agi:.3,cha:0,int:0},decays:{hack:0,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.75},isKill:!0}),Y["Operation Juggernaut"]=new q({name:"Operation Juggernaut",desc:"The CIA has just encountered a new security threat. A new criminal group, lead by a shadowy operative who calls himself Juggernaut, has been smuggling drugs and weapons (including suspected bioweapons) into Sector-12. We also have reason to believe the tried to break into one of Universal Energy's facilities in order to cause a city-wide blackout. The CIA suspects that Juggernaut is a heavily-augmented Synthoid, and have thus enlisted our help.

Your mission is to eradicate Juggernaut and his followers.",baseDifficulty:1e4,reqdRank:2e4,rankGain:300,rankLoss:40,hpLoss:300,weights:{hack:0,str:.25,def:.25,dex:.25,agi:.25,cha:0,int:0},decays:{hack:0,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.75},isKill:!0}),Y["Operation Red Dragon"]=new q({name:"Operation Red Dragon",desc:"The Tetrads criminal organization is suspected of reverse-engineering the MK-VI Synthoid design. We believe they altered and possibly improved the design and began manufacturing their own Synthoid models in order to bolster their criminal activities.

Your task is to infiltrate and destroy the Tetrads' base of operations in Los Angeles. Intelligence tells us that their base houses one of their Synthoid manufacturing units.",baseDifficulty:12500,reqdRank:25e3,rankGain:500,rankLoss:50,hpLoss:500,weights:{hack:.05,str:.2,def:.2,dex:.25,agi:.25,cha:0,int:.05},decays:{hack:.6,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.75},isKill:!0}),Y["Operation K"]=new q({name:"Operation K",desc:"CODE RED SITUATION. Our intelligence tells us that VitaLife has discovered a new android cloning technology. This technology is supposedly capable of cloning Synthoid, not only physically but also their advanced AI modules. We do not believe that VitaLife is trying to use this technology illegally or maliciously, but if any Synthoids were able to infiltrate the corporation and take advantage of this technology then the results would be catastrophic.

We do not have the power or jurisdiction to shutdown this down through legal or political means, so we must resort to a covert operation. Your goal is to destroy this technology and eliminateanyone who was involved in its creation.",baseDifficulty:15e3,reqdRank:3e4,rankGain:750,rankLoss:60,hpLoss:1e3,weights:{hack:.05,str:.2,def:.2,dex:.25,agi:.25,cha:0,int:.05},decays:{hack:.6,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.75},isKill:!0}),Y["Operation Deckard"]=new q({name:"Operation Deckard",desc:"Despite your success in eliminating VitaLife's new android-replicating technology in Operation K, we've discovered that a small group of MK-VI Synthoids were able to make off with the schematics and design of the technology before the Operation. It is almost a certainty that these Synthoids are some of the rogue MK-VI ones from the Synthoid Uprising.The goal of Operation Deckard is to hunt down these Synthoids and retire them. I don't need to tell you how critical this mission is.",baseDifficulty:2e4,reqdRank:4e4,rankGain:1e3,rankLoss:75,hpLoss:200,weights:{hack:0,str:.24,def:.24,dex:.24,agi:.24,cha:0,int:.04},decays:{hack:0,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.75},isKill:!0}),Y["Operation Tyrell"]=new q({name:"Operation Tyrell",desc:"A week ago Blade Industries reported a small break-in at one of their Aevum Augmentation storage facitilities. We figured out that The Dark Army was behind the heist, and didn't think any more of it. However, we've just discovered that several known MK-VI Synthoids were part of that break-in group.

We cannot have Synthoids upgrading their already-enhanced abilities with Augmentations. Your task is to hunt down the associated Dark Army members and eliminate them.",baseDifficulty:25e3,reqdRank:5e4,rankGain:1500,rankLoss:100,hpLoss:500,weights:{hack:.1,str:.2,def:.2,dex:.2,agi:.2,cha:0,int:.1},decays:{hack:.6,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.75},isKill:!0}),Y["Operation Wallace"]=new q({name:"Operation Wallace",desc:"Based on information gathered from Operation Tyrell, we've discovered that The Dark Army was well aware that there were Synthoids amongst their ranks. Even worse, we believe that The Dark Army is working together with other criminal organizations such as The Syndicate and that they are planning some sort of large-scale takeover of multiple major cities, most notably Aevum. We suspect that Synthoids have infiltrated the ranks of these criminal factions and are trying to stage another Synthoid uprising.

The best way to deal with this is to prevent it before it even happens. The goal of Operation Wallace is to destroy the Dark Army and Syndicate factions in Aevum immediately. Leave no survivors.",baseDifficulty:3e4,reqdRank:75e3,rankGain:2e3,rankLoss:150,hpLoss:1500,weights:{hack:0,str:.24,def:.24,dex:.24,agi:.24,cha:0,int:.04},decays:{hack:.6,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.75},isKill:!0}),Y["Operation Shoulder of Orion"]=new q({name:"Operation Shoulder of Orion",desc:"China's Solaris Space Systems is secretly launching the first manned spacecraft in over a decade using Synthoids. We believe China is trying to establish the first off-world colonies.

The mission is to prevent this launch without instigating an international conflict. When you accept this mission you will be officially disavowed by the NSA and the national government until after you successfully return. In the event of failure, all of the operation's team members must not let themselves be captured alive.",baseDifficulty:35e3,reqdRank:1e5,rankGain:2500,rankLoss:500,hpLoss:1500,weights:{hack:.1,str:.2,def:.2,dex:.2,agi:.2,cha:0,int:.1},decays:{hack:.6,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.75},isStealth:!0}),Y["Operation Hyron"]=new q({name:"Operation Hyron",desc:"Our intelligence tells us that Fulcrum Technologies is developing a quantum supercomputer using human brains as core processors. This supercomputer is rumored to be able to store vast amounts of data and perform computations unmatched by any other supercomputer on the planet. But more importantly, the use of organic human brains means that the supercomputer may be able to reason abstractly and become self-aware.

I do not need to remind you why sentient-level AIs pose a serious thread to all of mankind.

The research for this project is being conducted at one of Fulcrum Technologies secret facilities in Aevum, codenamed 'Alpha Ranch'. Infiltrate the compound, delete and destroy the work, and then find and kill the project lead.",baseDifficulty:4e4,reqdRank:125e3,rankGain:3e3,rankLoss:1e3,hpLoss:500,weights:{hack:.1,str:.2,def:.2,dex:.2,agi:.2,cha:0,int:.1},decays:{hack:.6,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.75},isKill:!0}),Y["Operation Morpheus"]=new q({name:"Operation Morpheus",desc:"DreamSense Technologies is an advertising company that uses special technology to transmit their ads into the peoples dreams and subconcious. They do this using broadcast transmitter towers. Based on information from our agents and informants in Chonqging, we have reason to believe that one of the broadcast towers there has been compromised by Synthoids and is being used to spread pro-Synthoid propaganda.

The mission is to destroy this broadcast tower. Speed and stealth are of the upmost important for this.",baseDifficulty:45e3,reqdRank:15e4,rankGain:4e3,rankLoss:1e3,hpLoss:100,weights:{hack:.05,str:.15,def:.15,dex:.3,agi:.3,cha:0,int:.05},decays:{hack:.6,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.75},isStealth:!0}),Y["Operation Ion Storm"]=new q({name:"Operation Ion Storm",desc:"Our analysts have uncovered a gathering of MK-VI Synthoids that have taken up residence in the Sector-12 Slums. We don't know if they are rogue Synthoids from the Uprising, but we do know that they have been stockpiling weapons, money, and other resources. This makes them dangerous.

This is a full-scale assault operation to find and retire all of these Synthoids in the Sector-12 Slums.",baseDifficulty:5e4,reqdRank:175e3,rankGain:5e3,rankLoss:1e3,hpLoss:5e3,weights:{hack:0,str:.24,def:.24,dex:.24,agi:.24,cha:0,int:.04},decays:{hack:.6,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.75},isKill:!0}),Y["Operation Annihilus"]=new q({name:"Operation Annihilus",desc:"Our superiors have ordered us to eradicate everything and everyone in an underground facility located in Aevum. They tell us that the facility houses many dangerous Synthoids and belongs to a terrorist organization called 'The Covenant'. We have no prior intelligence about this organization, so you are going in blind.",baseDifficulty:55e3,reqdRank:2e5,rankGain:7500,rankLoss:1e3,hpLoss:1e4,weights:{hack:0,str:.24,def:.24,dex:.24,agi:.24,cha:0,int:.04},decays:{hack:.6,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.75},isKill:!0}),Y["Operation Ultron"]=new q({name:"Operation Ultron",desc:"OmniTek Incorporated, the original designer and manufacturer of Synthoids, has notified us of a malfunction in their AI design. This malfunction, when triggered, causes MK-VI Synthoids to become radicalized and seek out the destruction of humanity. They say that this bug affects all MK-VI Synthoids, not just the rogue ones from the Uprising.

OmniTek has also told us they they believe someone has triggered this malfunction in a large group of MK-VI Synthoids, and that these newly-radicalized Synthoids are now amassing in Volhaven to form a terrorist group called Ultron.

Intelligence suggests Ultron is heavily armed and that their members are augmented. We believe Ultron is making moves to take control of and weaponize DeltaOne's Tactical High-Energy Satellite Laser Array (THESLA).

Your task is to find and destroy Ultron.",baseDifficulty:6e4,reqdRank:25e4,rankGain:1e4,rankLoss:2e3,hpLoss:1e4,weights:{hack:.1,str:.2,def:.2,dex:.2,agi:.2,cha:0,int:.1},decays:{hack:.6,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.75},isKill:!0}),Y["Operation Centurion"]=new q({name:"Operation Centurion",desc:"D)@#)($M)C0293c40($*)@#D0JUMP3Rm0C<*@#)*$)#02c94830c(#$*D)

Throughout all of humanity's history, we have relied on technology to survive, conquer, and progress. Its advancement became our primary goal. And at the peak of human civilization technology turned into power. Global, absolute power.

It seems that the universe is not without a sense of irony.

D)@#)($M)C0293c40($*)@#D0JUMP3Rm0C<*@#)*$)#02c94830c(#$*D)",baseDifficulty:7e4,reqdRank:3e5,rankGain:15e3,rankLoss:5e3,hpLoss:1e4,weights:{hack:.1,str:.2,def:.2,dex:.2,agi:.2,cha:0,int:.1},decays:{hack:.6,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.75}}),Y["Operation Vindictus"]=new q({name:"Operation Vindictus",desc:"D)@#)($M)C0293c40($*)@#D0JUMP3Rm0C<*@#)*$)#02c94830c(#$*D)

The bits are all around us. The daemons that hold the Node together can manifest themselves in many different ways.

D)@#)($M)C0293c40($*)@#D0JUMP3Rm0C<*@#)*$)#02c94830c(#$*D)",baseDifficulty:75e3,reqdRank:35e4,rankGain:2e4,rankLoss:2e4,hpLoss:2e4,weights:{hack:.1,str:.2,def:.2,dex:.2,agi:.2,cha:0,int:.1},decays:{hack:.6,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.75}}),Y["Operation Daedalus"]=new q({name:"Operation Daedalus",desc:"Yesterday we obeyed kings and bent our neck to emperors. Today we kneel only to truth.",baseDifficulty:8e4,reqdRank:4e5,rankGain:4e4,rankLoss:1e4,hpLoss:1e5,weights:{hack:.1,str:.2,def:.2,dex:.2,agi:.2,cha:0,int:.1},decays:{hack:.6,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.75}}),this.initializeDomElementRefs(),e.new&&this.create()}V.prototype.prestige=function(){this.resetAction();var e=s.b.Bladeburners;this.rank>=25&&Object(s.h)(e)},V.prototype.create=function(){this.contracts.Tracking=new U({name:"Tracking",desc:"Identify and locate Synthoids. This contract involves reconnaissance and information-gathering ONLY. Do NOT engage. Stealth is of the utmost importance.

Successfully completing Tracking contracts will slightly improve your Synthoid population estimate for whatever city you are currently in.",baseDifficulty:125,difficultyFac:1.02,rewardFac:1.041,rankGain:.3,hpLoss:.5,count:Object(w.getRandomInt)(25,500),countGrowth:Object(w.getRandomInt)(5,75)/10,weights:{hack:0,str:.05,def:.05,dex:.35,agi:.35,cha:.1,int:.05},decays:{hack:0,str:.91,def:.91,dex:.91,agi:.91,cha:.9,int:1},isStealth:!0}),this.contracts["Bounty Hunter"]=new U({name:"Bounty Hunter",desc:"Hunt down and capture fugitive Synthoids. These Synthoids are wanted alive.

Successfully completing a Bounty Hunter contract will lower the population in your current city, and will also increase its chaos level.",baseDifficulty:250,difficultyFac:1.04,rewardFac:1.085,rankGain:.9,hpLoss:1,count:Object(w.getRandomInt)(5,500),countGrowth:Object(w.getRandomInt)(5,75)/10,weights:{hack:0,str:.15,def:.15,dex:.25,agi:.25,cha:.1,int:.1},decays:{hack:0,str:.91,def:.91,dex:.91,agi:.91,cha:.8,int:.9},isKill:!0}),this.contracts.Retirement=new U({name:"Retirement",desc:"Hunt down and retire (kill) rogue Synthoids.

Successfully copmleting a Retirement contract will lower the population in your current city, and will also increase its chaos level.",baseDifficulty:200,difficultyFac:1.03,rewardFac:1.065,rankGain:.6,hpLoss:1,count:Object(w.getRandomInt)(5,500),countGrowth:Object(w.getRandomInt)(5,75)/10,weights:{hack:0,str:.2,def:.2,dex:.2,agi:.2,cha:.1,int:.1},decays:{hack:0,str:.91,def:.91,dex:.91,agi:.91,cha:.8,int:.9},isKill:!0}),this.operations.Investigation=new K({name:"Investigation",desc:"As a field agent, investigate and identify Synthoid populations, movements, and operations.

Successful Investigation ops will increase the accuracy of your synthoid data.

You will NOT lose HP from failed Investigation ops.",baseDifficulty:400,difficultyFac:1.03,rewardFac:1.07,reqdRank:25,rankGain:2.2,rankLoss:.2,count:Object(w.getRandomInt)(1,250),countGrowth:Object(w.getRandomInt)(10,40)/10,weights:{hack:.25,str:.05,def:.05,dex:.2,agi:.1,cha:.25,int:.1},decays:{hack:.85,str:.9,def:.9,dex:.9,agi:.9,cha:.7,int:.9},isStealth:!0}),this.operations["Undercover Operation"]=new K({name:"Undercover Operation",desc:"Conduct undercover operations to identify hidden and underground Synthoid communities and organizations.

Successful Undercover ops will increase the accuracy of your synthoid data.",baseDifficulty:500,difficultyFac:1.04,rewardFac:1.09,reqdRank:100,rankGain:4.4,rankLoss:.4,hpLoss:2,count:Object(w.getRandomInt)(1,250),countGrowth:Object(w.getRandomInt)(10,40)/10,weights:{hack:.2,str:.05,def:.05,dex:.2,agi:.2,cha:.2,int:.1},decays:{hack:.8,str:.9,def:.9,dex:.9,agi:.9,cha:.7,int:.9},isStealth:!0}),this.operations["Sting Operation"]=new K({name:"Sting Operation",desc:"Conduct a sting operation to bait and capture particularly notorious Synthoid criminals.",baseDifficulty:650,difficultyFac:1.04,rewardFac:1.095,reqdRank:500,rankGain:5.5,rankLoss:.5,hpLoss:2.5,count:Object(w.getRandomInt)(1,300),countGrowth:Object(w.getRandomInt)(3,40)/10,weights:{hack:.25,str:.05,def:.05,dex:.25,agi:.1,cha:.2,int:.1},decays:{hack:.8,str:.85,def:.85,dex:.85,agi:.85,cha:.7,int:.9},isStealth:!0}),this.operations.Raid=new K({name:"Raid",desc:"Lead an assault on a known Synthoid community. Note that there must be an existing Synthoid community in your current city in order for this Operation to be successful",baseDifficulty:800,difficultyFac:1.045,rewardFac:1.1,reqdRank:3e3,rankGain:55,rankLoss:2.5,hpLoss:50,count:Object(w.getRandomInt)(1,200),countGrowth:Object(w.getRandomInt)(2,40)/10,weights:{hack:.1,str:.2,def:.2,dex:.2,agi:.2,cha:0,int:.1},decays:{hack:.7,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.9},isKill:!0}),this.operations["Stealth Retirement Operation"]=new K({name:"Stealth Retirement Operation",desc:"Lead a covert operation to retire Synthoids. The objective is to complete the task without drawing any attention. Stealth and discretion are key.",baseDifficulty:1e3,difficultyFac:1.05,rewardFac:1.11,reqdRank:2e4,rankGain:22,rankLoss:2,hpLoss:10,count:Object(w.getRandomInt)(1,250),countGrowth:Object(w.getRandomInt)(1,20)/10,weights:{hack:.1,str:.1,def:.1,dex:.3,agi:.3,cha:0,int:.1},decays:{hack:.7,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.9},isStealth:!0,isKill:!0}),this.operations.Assassination=new K({name:"Assassination",desc:"Assassinate Synthoids that have been identified as important, high-profile social and political leaders in the Synthoid communities.",baseDifficulty:1500,difficultyFac:1.06,rewardFac:1.14,reqdRank:5e4,rankGain:44,rankLoss:4,hpLoss:5,count:Object(w.getRandomInt)(1,200),countGrowth:Object(w.getRandomInt)(1,20)/10,weights:{hack:.1,str:.1,def:.1,dex:.3,agi:.3,cha:0,int:.1},decays:{hack:.6,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.8},isStealth:!0,isKill:!0})},V.prototype.storeCycles=function(e=1){this.storedCycles+=e},V.prototype.process=function(){if(!1===u.b&&this.blackops.hasOwnProperty("Operation Daedalus"))return Object(u.a)(c.a.bitNodeN);if(!1===a.c[a.b.BladesSimulacrum].owned&&c.a.isWorking){if(this.action.type!==W.Idle){let e="Your Bladeburner action was cancelled because you started doing something else.";this.automateEnabled&&(e+="

Your automation was disabled as well. You will have to re-enable it through the Bladeburner console",this.automateEnabled=!1),Object(m.dialogBoxCreate)(e)}this.resetAction()}if(this.storedCycles>=5){var e=Math.floor(this.storedCycles/5);for(var t in e=Math.min(e,5),this.storedCycles-=5*e,this.calculateMaxStamina(),this.stamina+=this.calculateStaminaGainPerSecond()*e,this.stamina=Math.min(this.maxStamina,this.stamina),this.contracts)if(this.contracts.hasOwnProperty(t)){var n=this.contracts[t];n.count+=e*n.countGrowth/300}for(var i in this.operations)if(this.operations.hasOwnProperty(i)){var r=this.operations[i];r.count+=e*r.countGrowth/300}for(var o=0;o=this.automateThreshHigh&&(this.action.name===this.automateActionHigh.name&&this.action.type===this.automateActionHigh.type||(this.action=this.automateActionHigh,this.startAction(this.action)))),E.routing.isOn(E.Page.Bladeburner)&&this.updateContent()}},V.prototype.calculateMaxStamina=function(){var e=c.a.agility*this.skillMultipliers.effAgi,t=Math.pow(e,.8)+this.staminaBonus;if(t*=this.skillMultipliers.stamina,t*=c.a.bladeburner_max_stamina_mult,isNaN(t))throw new Error("Max Stamina calculated to be NaN in Bladeburner.calculateMaxStamina()");this.maxStamina=t},V.prototype.calculateStaminaGainPerSecond=function(){var e=c.a.agility*this.skillMultipliers.effAgi;return(.0085+this.maxStamina/7e4)*Math.pow(e,.17)*(this.skillMultipliers.stamina*c.a.bladeburner_stamina_gain_mult)},V.prototype.calculateStaminaPenalty=function(){return Math.min(1,this.stamina/(.5*this.maxStamina))},V.prototype.changeRank=function(e){if(isNaN(e))throw new Error("NaN passed into Bladeburner.changeRank()");this.rank+=e,this.rank<0&&(this.rank=0),this.maxRank=Math.max(this.rank,this.maxRank);if(Object(s.d)("Bladeburners")){var t=s.b.Bladeburners;if(!(t instanceof s.a))throw new Error("Could not properly get Bladeburner Faction object in Bladeburner UI Overview Faction button");if(t.isMember){var n=1+t.favor/100;t.playerReputation+=2*e*c.a.faction_rep_mult*n}}var a=4*(this.totalSkillPoints+1);if(this.maxRank>=a){var i=Math.floor((this.maxRank-a)/4+1);this.skillPoints+=i,this.totalSkillPoints+=i}},V.prototype.getCurrentCity=function(){var e=this.cities[this.city];if(!(e instanceof L))throw new Error("Bladeburner.getCurrentCity() did not properly return a City object");return e},V.prototype.resetSkillMultipliers=function(){this.skillMultipliers={successChanceAll:1,successChanceStealth:1,successChanceKill:1,successChanceContract:1,successChanceOperation:1,successChanceEstimate:1,actionTime:1,effHack:1,effStr:1,effDef:1,effDex:1,effAgi:1,effCha:1,effInt:1,stamina:1,weaponAbility:1,gunAbility:1}},V.prototype.updateSkillMultipliers=function(){for(var e in this.resetSkillMultipliers(),this.skills)if(this.skills.hasOwnProperty(e)){var t=j[e];if(null==t)throw new Error("Could not find Skill Object for: "+e);var n=this.skills[e];if(null==n||n<=0)continue;for(var a=Object.keys(this.skillMultipliers),i=0;i=this.actionTimeToComplete?this.completeAction():void 0}},V.prototype.completeAction=function(){switch(this.action.type){case W.Contract:case W.Operation:try{var e=this.action.type===W.Operation;if(null==(m=this.getActionObject(this.action)))throw new Error("Failed to get Contract/Operation Object for: "+this.action.name);var t=m.getDifficulty(),n=Math.pow(t,.28)+t/650,a=Math.pow(m.rewardFac,m.level-1);if(this.stamina-=.285*n,this.stamina<0&&(this.stamina=0),m.attempt(this)){this.gainActionStats(m,!0),++m.successes,--m.count;var o=0;if(e||(o=5e4*a,c.a.gainMoney(o)),e?m.setMaxLevel(3):m.setMaxLevel(3.5),m.rankGain){var s=Object(f.addOffset)(m.rankGain*a*i.BitNodeMultipliers.BladeburnerRank,10);this.changeRank(s),e&&this.logging.ops?this.log(m.name+" successfully completed! Gained "+Object(C.formatNumber)(s,3)+" rank"):!e&&this.logging.contracts&&this.log(m.name+" contract successfully completed! Gained "+Object(C.formatNumber)(s,3)+" rank and "+d.a.format(o,"$0.000a"))}e?this.completeOperation(!0):this.completeContract(!0)}else{this.gainActionStats(m,!1),++m.failures;var l=0,h=0;m.rankLoss&&(l=Object(f.addOffset)(m.rankLoss*a,10),this.changeRank(-1*l)),m.hpLoss&&(h=m.hpLoss*n,h=Math.ceil(Object(f.addOffset)(h,10)),this.hpLost+=h,c.a.takeDamage(h)&&(++this.numHosp,this.moneyLost+=r.a.HospitalCostPerHp*c.a.max_hp));var p="";l>0&&(p+="Lost "+Object(C.formatNumber)(l,3)+" rank."),h>0&&(p+="Took "+Object(C.formatNumber)(h,0)+" damage."),e&&this.logging.ops?this.log(m.name+" failed! "+p):!e&&this.logging.contracts&&this.log(m.name+" contract failed! "+p),e?this.completeOperation(!1):this.completeContract(!1)}m.autoLevel&&(m.level=m.maxLevel),this.startAction(this.action)}catch(e){Object(O.a)(e)}break;case W.BlackOp:case W.BlackOperation:try{var m;if(null==(m=this.getActionObject(this.action))||!(m instanceof q))throw new Error("Failed to get BlackOperation Object for: "+this.action.name);t=m.getDifficulty(),n=Math.pow(t,.28)+t/650;this.stamina-=.285*n,this.stamina<0&&(this.stamina=0);var g,y=m.teamCount;if(m.attempt(this)){this.gainActionStats(m,!0),m.count=0,this.blackops[m.name]=!0;var b=0;if(m.rankGain&&(b=Object(f.addOffset)(m.rankGain*i.BitNodeMultipliers.BladeburnerRank,10),this.changeRank(b)),g=Math.ceil(y/2),"Operation Daedalus"===m.name)return this.resetAction(),Object(u.a)(c.a.bitNodeN);E.routing.isOn(E.Page.Bladeburner)&&this.createActionAndSkillsContent(),this.logging.blackops&&this.log(m.name+" successful! Gained "+Object(C.formatNumber)(b,1)+" rank")}else{this.gainActionStats(m,!1);var v=0;h=0;m.rankLoss&&(v=Object(f.addOffset)(m.rankLoss,10),this.changeRank(-1*v)),m.hpLoss&&(h=m.hpLoss*n,h=Math.ceil(Object(f.addOffset)(h,10)),c.a.takeDamage(h)&&(++this.numHosp,this.moneyLost+=r.a.HospitalCostPerHp*c.a.max_hp)),g=Math.floor(y),this.logging.blackops&&this.log(m.name+" failed! Lost "+Object(C.formatNumber)(v,1)+" rank and took "+Object(C.formatNumber)(h,0)+" damage")}if(this.resetAction(),y>=1){var _=Object(w.getRandomInt)(1,g);this.teamSize-=_,this.teamLost+=_,this.logging.blackops&&this.log("You lost "+Object(C.formatNumber)(_,0)+" team members during "+m.name)}}catch(e){Object(O.a)(e)}break;case W.Training:this.stamina-=.1425;var k=30*c.a.strength_exp_mult,S=30*c.a.defense_exp_mult,T=30*c.a.dexterity_exp_mult,x=30*c.a.agility_exp_mult,R=.04*this.skillMultipliers.stamina;c.a.gainStrengthExp(k),c.a.gainDefenseExp(S),c.a.gainDexterityExp(T),c.a.gainAgilityExp(x),this.staminaBonus+=R,this.logging.general&&this.log("Training completed. Gained: "+Object(C.formatNumber)(k,1)+" str exp, "+Object(C.formatNumber)(S,1)+" def exp, "+Object(C.formatNumber)(T,1)+" dex exp, "+Object(C.formatNumber)(x,1)+" agi exp, "+Object(C.formatNumber)(R,3)+" max stamina"),this.startAction(this.action);break;case W.FieldAnalysis:case W["Field Analysis"]:var I=.04*Math.pow(c.a.hacking_skill,.3)+.04*Math.pow(c.a.intelligence,.9)+.02*Math.pow(c.a.charisma,.3);if(I*=c.a.bladeburner_analysis_mult,isNaN(I)||I<0)throw new Error("Field Analysis Effectiveness calculated to be NaN or negative");var N=20*c.a.hacking_exp_mult,M=20*c.a.charisma_exp_mult;c.a.gainHackingExp(N),c.a.gainIntelligenceExp(.001),c.a.gainCharismaExp(M),this.changeRank(.1*i.BitNodeMultipliers.BladeburnerRank),console.log("DEBUG: Field Analysis effectiveness is "+I*this.skillMultipliers.successChanceEstimate),this.getCurrentCity().improvePopulationEstimateByPercentage(I*this.skillMultipliers.successChanceEstimate),this.logging.general&&this.log("Field analysis completed. Gained 0.1 rank, "+Object(C.formatNumber)(N,1)+" hacking exp, and "+Object(C.formatNumber)(M,1)+" charisma exp"),this.startAction(this.action);break;case W.Recruitment:var P=this.getRecruitmentSuccessChance();if(console.log("Bladeburner recruitment success chance: "+P),Math.random()=1){n=e?Math.ceil(a/2):Math.floor(a);var i=Object(w.getRandomInt)(0,n);this.teamSize-=i,this.teamLost+=i,this.logging.ops&&i>0&&this.log("Lost "+Object(C.formatNumber)(i,0)+" team members during this "+t.name)}var r=this.getCurrentCity();switch(t.name){case"Investigation":e?(r.improvePopulationEstimateByPercentage(.4*this.skillMultipliers.successChanceEstimate),Math.random()<.02*this.skillMultipliers.successChanceEstimate&&r.improveCommunityEstimate(1)):this.triggerPotentialMigration(this.city,.1);break;case"Undercover Operation":e?(r.improvePopulationEstimateByPercentage(.8*this.skillMultipliers.successChanceEstimate),Math.random()<.02*this.skillMultipliers.successChanceEstimate&&r.improveCommunityEstimate(1)):this.triggerPotentialMigration(this.city,.15);break;case"Sting Operation":e&&r.changePopulationByPercentage(-.1,{changeEstEqually:!0,nonZero:!0}),r.changeChaosByCount(.1);break;case"Raid":if(e)r.changePopulationByPercentage(-1,{changeEstEqually:!0,nonZero:!0}),--r.comms,--r.commsEst;else{var o=Object(w.getRandomInt)(-3,-1);r.changePopulationByPercentage(o,{nonZero:!0})}r.changeChaosByPercentage(Object(w.getRandomInt)(1,5));break;case"Stealth Retirement Operation":e&&r.changePopulationByPercentage(-.5,{changeEstEqually:!0,nonZero:!0}),r.changeChaosByPercentage(Object(w.getRandomInt)(-3,-1));break;case"Assassination":e&&r.changePopulationByCount(-1,{estChange:-1}),r.changeChaosByPercentage(Object(w.getRandomInt)(-5,5));break;default:throw new Error("Invalid Action name in completeOperation: "+this.action.name)}},V.prototype.getRecruitmentTime=function(){var e=c.a.charisma*this.skillMultipliers.effCha,t=Math.pow(e,.81)+e/90;return Math.max(10,Math.round(300-t))},V.prototype.getRecruitmentSuccessChance=function(){return Math.pow(c.a.charisma,.45)/(this.teamSize+1)},V.prototype.gainActionStats=function(e,t){var n=e.getDifficulty(),a=Math.pow(n,.28)+n/650,i=this.actionTimeToComplete,r=t?1:.5,o=1*i*r*a,s=.001*i*r*a;c.a.gainHackingExp(o*e.weights.hack*c.a.hacking_exp_mult),c.a.gainStrengthExp(o*e.weights.str*c.a.strength_exp_mult),c.a.gainDefenseExp(o*e.weights.def*c.a.defense_exp_mult),c.a.gainDexterityExp(o*e.weights.dex*c.a.dexterity_exp_mult),c.a.gainAgilityExp(o*e.weights.agi*c.a.agility_exp_mult),c.a.gainCharismaExp(o*e.weights.cha*c.a.charisma_exp_mult),c.a.gainIntelligenceExp(s*e.weights.int)},V.prototype.randomEvent=function(){var e=Math.random(),t=R[Object(w.getRandomInt)(0,5)],n=this.cities[t];if(!(n instanceof L))throw new Error("sourceCity was not a City object in Bladeburner.randomEvent()");for(var a=R[Object(w.getRandomInt)(0,5)];a===t;)a=R[Object(w.getRandomInt)(0,5)];var i=this.cities[a];if(!(n instanceof L&&i instanceof L))throw new Error("sourceCity/destCity was not a City object in Bladeburner.randomEvent()");if(e<=.05){++n.comms;var r=Object(w.getRandomInt)(10,20)/100,o=Math.round(n.pop*r);n.pop+=o,this.logging.events&&this.log("Intelligence indicates that a new Synthoid community was formed in a city")}else if(e<=.1)if(n.comms<=0){++n.comms;r=Object(w.getRandomInt)(10,20)/100,o=Math.round(n.pop*r);n.pop+=o,this.logging.events&&this.log("Intelligence indicates that a new Synthoid community was formed in a city")}else{--n.comms,++i.comms;r=Object(w.getRandomInt)(10,20)/100,o=Math.round(n.pop*r);n.pop-=o,i.pop+=o,this.logging.events&&this.log("Intelligence indicates that a Synthoid community migrated from "+t+" to some other city")}else if(e<=.3){r=Object(w.getRandomInt)(8,24)/100,o=Math.round(n.pop*r);n.pop+=o,this.logging.events&&this.log("Intelligence indicates that the Synthoid population of "+t+" just changed significantly")}else if(e<=.5)this.triggerMigration(t),this.logging.events&&this.log("Intelligence indicates that a large number of Synthoids migrated from "+t+" to some other city");else if(e<=.7)n.chaos+=1,n.chaos*=1+Object(w.getRandomInt)(5,10)/100,this.logging.events&&this.log("Tensions between Synthoids and humans lead to riots in "+t+"! Chaos increased");else if(e<=.9){r=Object(w.getRandomInt)(5,20)/100,o=Math.round(n.pop*r);n.pop-=o,this.logging.events&&this.log("Intelligence indicates that the Synthoid population of "+t+" just changed significantly")}},V.prototype.triggerPotentialMigration=function(e,t){(null==t||isNaN(t))&&console.log("ERROR: Invalid 'chance' parameter passed into Bladeburner.triggerPotentialMigration()"),t>1&&(t/=100),Math.random()0&&(r*=Object(w.getRandomInt)(2,4),--a.comms,++n.comms);var o=Math.round(a.pop*r);a.pop-=o,n.pop+=o};var J={};V.prototype.initializeDomElementRefs=function(){J={bladeburnerDiv:null,overviewConsoleParentDiv:null,overviewDiv:null,actionAndSkillsDiv:null,currentTab:null,consoleDiv:null,consoleTable:null,consoleInputRow:null,consoleInputCell:null,consoleInputHeader:null,consoleInput:null,overviewRank:null,overviewStamina:null,overviewStaminaHelpTip:null,overviewGen1:null,overviewEstPop:null,overviewEstPopHelpTip:null,overviewEstComms:null,overviewChaos:null,overviewSkillPoints:null,overviewBonusTime:null,overviewAugSuccessMult:null,overviewAugMaxStaminaMult:null,overviewAugStaminaGainMult:null,overviewAugAnalysisMult:null,actionsAndSkillsDesc:null,actionsAndSkillsList:null,generalActions:{},contracts:{},operations:{},blackops:{},skills:{},skillPointsDisplay:null}},V.prototype.createContent=function(){J.bladeburnerDiv=Object(_.createElement)("div",{id:"bladeburner-container",position:"fixed",class:"generic-menupage-container"}),J.overviewConsoleParentDiv=Object(_.createElement)("div",{height:"60%",display:"block",position:"relative"}),J.overviewDiv=Object(_.createElement)("div",{width:"30%",display:"inline-block",border:"1px solid white"}),J.actionAndSkillsDiv=Object(_.createElement)("div",{height:"60%",width:"70%",display:"block",border:"1px solid white",margin:"6px",padding:"6px"}),J.currentTab="general",this.createOverviewContent(),this.createActionAndSkillsContent(),J.consoleDiv=Object(_.createElement)("div",{class:"bladeburner-console-div",clickListener:()=>(J.consoleInput instanceof Element&&J.consoleInput.focus(),!1)}),J.consoleTable=Object(_.createElement)("table",{class:"bladeburner-console-table"}),J.consoleInputRow=Object(_.createElement)("tr",{class:"bladeburner-console-input-row",id:"bladeubrner-console-input-row"}),J.consoleInputCell=Object(_.createElement)("td",{class:"bladeburner-console-input-cell"}),J.consoleInputHeader=Object(_.createElement)("pre",{innerText:"> "}),J.consoleInput=Object(_.createElement)("input",{type:"text",class:"bladeburner-console-input",tabIndex:1,onfocus:()=>{J.consoleInput.value=J.consoleInput.value}}),J.consoleInputCell.appendChild(J.consoleInputHeader),J.consoleInputCell.appendChild(J.consoleInput),J.consoleInputRow.appendChild(J.consoleInputCell),J.consoleTable.appendChild(J.consoleInputRow),J.consoleDiv.appendChild(J.consoleTable),J.overviewConsoleParentDiv.appendChild(J.overviewDiv),J.overviewConsoleParentDiv.appendChild(J.consoleDiv),J.bladeburnerDiv.appendChild(J.overviewConsoleParentDiv),J.bladeburnerDiv.appendChild(J.actionAndSkillsDiv),document.getElementById("entire-game-container").appendChild(J.bladeburnerDiv),this.postToConsole("Bladeburner Console BETA"),this.postToConsole("Type 'help' to see console commands"),J.consoleInput.focus()},V.prototype.clearContent=function(){J.bladeburnerDiv instanceof Element&&(Object(g.removeChildrenFromElement)(J.bladeburnerDiv),Object(T.removeElement)(J.bladeburnerDiv)),Object(v.clearObject)(J),this.initializeDomElementRefs()},V.prototype.createOverviewContent=function(){if(null==J.overviewDiv)throw new Error("Bladeburner.createOverviewContent() called with DomElems.overviewDiv = null");J.overviewRank=Object(_.createElement)("p",{innerText:"Rank: ",display:"inline-block",tooltip:"Your rank within the Bladeburner division"}),J.overviewStamina=Object(_.createElement)("p",{display:"inline-block"}),J.overviewStaminaHelpTip=Object(_.createElement)("div",{innerText:"?",class:"help-tip",clickListener:()=>{Object(m.dialogBoxCreate)("Performing actions will use up your stamina.

Your max stamina is determined primarily by your agility stat.

Your stamina gain rate is determined by both your agility and your max stamina. Higher max stamina leads to a higher gain rate.

Once your stamina falls below 50% of its max value, it begins to negatively affect the success rate of your contracts/operations. This penalty is shown in the overview panel. If the penalty is 15%, then this means your success rate would be multipled by 85% (100 - 15).

Your max stamina and stamina gain rate can also be increased by training, or through skills and Augmentation upgrades.")}}),J.overviewGen1=Object(_.createElement)("p",{display:"block"}),J.overviewEstPop=Object(_.createElement)("p",{innerText:"Est. Synthoid Population: ",display:"inline-block",tooltip:"This is your Bladeburner division's estimate of how many Synthoids exist in your current city."}),J.overviewEstPopHelpTip=Object(_.createElement)("div",{innerText:"?",class:"help-tip",clickListener:()=>{Object(m.dialogBoxCreate)("The success rate of your contracts/operations depends on the population of Synthoids in your current city. The success rate that is shown to you is only an estimate, and it is based on your Synthoid population estimate.

Therefore, it is important that this Synthoid population estimate is accurate so that you have a better idea of your success rate for contracts/operations. Certain actions will increase the accuracy of your population estimate.

The Synthoid populations of cities can change due to your actions or random events. If random events occur, they will be logged in the Bladeburner Console.")}}),J.overviewEstComms=Object(_.createElement)("p",{innerText:"Est. Synthoid Communities: ",display:"inline-block",tooltip:"This is your Bladeburner divison's estimate of how many Synthoid communities exist in your current city."}),J.overviewChaos=Object(_.createElement)("p",{innerText:"City Chaos: ",display:"inline-block",tooltip:"The city's chaos level due to tensions and conflicts between humans and Synthoids. Having too high of a chaos level can make contracts and operations harder."}),J.overviewBonusTime=Object(_.createElement)("p",{innerText:"Bonus time: ",display:"inline-block",tooltip:"You gain bonus time while offline or when the game is inactive (e.g. when the tab is throttled by browser). Bonus time makes the Bladeburner mechanic progress faster, up to 5x the normal speed."}),J.overviewSkillPoints=Object(_.createElement)("p",{display:"block"}),J.overviewAugSuccessMult=Object(_.createElement)("p",{display:"block"}),J.overviewAugMaxStaminaMult=Object(_.createElement)("p",{display:"block"}),J.overviewAugStaminaGainMult=Object(_.createElement)("p",{display:"block"}),J.overviewAugAnalysisMult=Object(_.createElement)("p",{display:"block"}),J.overviewDiv.appendChild(J.overviewRank),Object(b.appendLineBreaks)(J.overviewDiv,1),J.overviewDiv.appendChild(J.overviewStamina),J.overviewDiv.appendChild(J.overviewStaminaHelpTip),J.overviewDiv.appendChild(J.overviewGen1),J.overviewDiv.appendChild(J.overviewEstPop),J.overviewDiv.appendChild(J.overviewEstPopHelpTip),Object(b.appendLineBreaks)(J.overviewDiv,1),J.overviewDiv.appendChild(J.overviewEstComms),Object(b.appendLineBreaks)(J.overviewDiv,1),J.overviewDiv.appendChild(J.overviewChaos),Object(b.appendLineBreaks)(J.overviewDiv,2),J.overviewDiv.appendChild(J.overviewBonusTime),J.overviewDiv.appendChild(J.overviewSkillPoints),Object(b.appendLineBreaks)(J.overviewDiv,1),J.overviewDiv.appendChild(J.overviewAugSuccessMult),J.overviewDiv.appendChild(J.overviewAugMaxStaminaMult),J.overviewDiv.appendChild(J.overviewAugStaminaGainMult),J.overviewDiv.appendChild(J.overviewAugAnalysisMult),Object(b.appendLineBreaks)(J.overviewDiv,1),J.overviewDiv.appendChild(Object(_.createElement)("a",{innerHTML:"Travel",class:"a-link-button",display:"inline-block",clickListener:()=>{var e="bladeburner-travel-popup-cancel-btn",t=[];t.push(Object(_.createElement)("a",{innerText:"Cancel",class:"a-link-button",clickListener:()=>(Object(x.removeElementById)(e),!1)})),t.push(Object(_.createElement)("p",{innerText:"Travel to a different city for your Bladeburner activities. This does not cost any money. The city you are in for your Bladeburner duties does not affect your location in the game otherwise"}));for(var n=0;n(n.city=R[a],Object(x.removeElementById)(e),n.updateOverviewContent(),!1)}))}(this,n);Object(k.createPopup)(e,t)}}));if(Object(s.d)("Bladeburners")){var e=s.b.Bladeburners;if(!(e instanceof s.a))throw new Error("Could not properly get Bladeburner Faction object in Bladeburner UI Overview Faction button");J.overviewDiv.appendChild(Object(_.createElement)("a",{innerText:"Faction",class:"a-link-button",display:"inline-block",tooltip:"Apply to the Bladeburner Faction, or go to the faction page if you are already a member",clickListener:()=>(e.isMember?(o.Engine.loadFactionContent(),Object(s.c)("Bladeburners")):this.rank>=25?(Object(s.h)(e),Object(m.dialogBoxCreate)("Congratulations! You were accepted into the Bladeburners faction"),Object(g.removeChildrenFromElement)(J.overviewDiv),this.createOverviewContent()):Object(m.dialogBoxCreate)("You need a rank of 25 to join the Bladeburners Faction!"),!1)}))}J.overviewDiv.appendChild(Object(_.createElement)("br")),J.overviewDiv.appendChild(Object(_.createElement)("br")),this.updateOverviewContent()},V.prototype.createActionAndSkillsContent=function(){null==J.currentTab&&(J.currentTab="general"),Object(g.removeChildrenFromElement)(J.actionAndSkillsDiv),Object(v.clearObject)(J.generalActions),Object(v.clearObject)(J.contracts),Object(v.clearObject)(J.operations),Object(v.clearObject)(J.blackops),Object(v.clearObject)(J.skills);for(var e=J.currentTab.toLowerCase(),t=["General","Contracts","Operations","BlackOps","Skills"],n=0;n(J.currentTab=e[t].toLowerCase(),n.createActionAndSkillsContent(),!1)}))}(t,n,this,e);switch(J.actionsAndSkillsDesc=Object(_.createElement)("p",{display:"block",margin:"4px",padding:"4px"}),Object(g.removeChildrenFromElement)(J.actionsAndSkillsList),J.actionsAndSkillsList=Object(_.createElement)("ul"),e){case"general":this.createGeneralActionsContent();break;case"contracts":this.createContractsContent();break;case"operations":this.createOperationsContent();break;case"blackops":this.createBlackOpsContent();break;case"skills":this.createSkillsContent();break;default:throw new Error("Invalid value for DomElems.currentTab in Bladeburner.createActionAndSkillsContent")}this.updateContent(),J.actionAndSkillsDiv.appendChild(J.actionsAndSkillsDesc),J.actionAndSkillsDiv.appendChild(J.actionsAndSkillsList)},V.prototype.createGeneralActionsContent=function(){if(null==J.actionsAndSkillsList||null==J.actionsAndSkillsDesc)throw new Error("Bladeburner.createGeneralActionsContent called with either DomElems.actionsAndSkillsList or DomElems.actionsAndSkillsDesc = null");for(var e in J.actionsAndSkillsDesc.innerText="These are generic actions that will assist you in your Bladeburner duties. They will not affect your Bladeburner rank in any way.",H)H.hasOwnProperty(e)&&(J.generalActions[e]=Object(_.createElement)("div",{class:"bladeburner-action",name:e}),J.actionsAndSkillsList.appendChild(J.generalActions[e]))},V.prototype.createContractsContent=function(){if(null==J.actionsAndSkillsList||null==J.actionsAndSkillsDesc)throw new Error("Bladeburner.createContractsContent called with either DomElems.actionsAndSkillsList or DomElems.actionsAndSkillsDesc = null");for(var e in J.actionsAndSkillsDesc.innerHTML="Complete contracts in order to increase your Bladeburner rank and earn money. Failing a contract will cause you to lose HP, which can lead to hospitalization.

You can unlock higher-level contracts by successfully completing them. Higher-level contracts are more difficult, but grant more rank, experience, and money.",this.contracts)this.contracts.hasOwnProperty(e)&&(J.contracts[e]=Object(_.createElement)("div",{class:"bladeburner-action",name:e}),J.actionsAndSkillsList.appendChild(J.contracts[e]))},V.prototype.createOperationsContent=function(){if(null==J.actionsAndSkillsList||null==J.actionsAndSkillsDesc)throw new Error("Bladeburner.createOperationsContent called with either DomElems.actionsAndSkillsList or DomElems.actionsAndSkillsDesc = null");for(var e in J.actionsAndSkillsDesc.innerHTML="Carry out operations for the Bladeburner division. Failing an operation will reduce your Bladeburner rank. It will also cause you to lose HP, which can lead to hospitalization. In general, operations are harder and more punishing than contracts, but are also more rewarding.

Operations can affect the chaos level and Synthoid population of your current city. The exact effects vary between different Operations.

For operations, you can use a team. You must first recruit team members. Having a larger team will improves your chances of success.

You can unlock higher-level operations by successfully completing them. Higher-level operations are more difficult, but grant more rank and experience.",this.operations)this.operations.hasOwnProperty(e)&&(J.operations[e]=Object(_.createElement)("div",{class:"bladeburner-action",name:e}),J.actionsAndSkillsList.appendChild(J.operations[e]))},V.prototype.createBlackOpsContent=function(){if(null==J.actionsAndSkillsList||null==J.actionsAndSkillsDesc)throw new Error("Bladeburner.createBlackOpsContent called with either DomElems.actionsAndSkillsList or DomElems.actionsAndSkillsDesc = null");J.actionsAndSkillsDesc.innerHTML="Black Operations (Black Ops) are special, one-time covert operations. Each Black Op must be unlocked successively by completing the one before it.

Like normal operations, you may use a team for Black Ops. Failing a black op will incur heavy HP and rank losses.";var e=[];for(var t in Y)Y.hasOwnProperty(t)&&e.push(Y[t]);e.sort(function(e,t){return e.reqdRank-t.reqdRank});for(var n=0;n
Note that when upgrading a skill, the benefit for that skill is additive. However, the effects of different skills with each other is multiplicative.

";for(var e=Object.keys(this.skillMultipliers),t=0;t";break;case"successChanceStealth":J.actionsAndSkillsDesc.innerHTML+="Stealth Success Chance: x"+n+"
";break;case"successChanceKill":J.actionsAndSkillsDesc.innerHTML+="Retirement Success Chance: x"+n+"
";break;case"successChanceContract":J.actionsAndSkillsDesc.innerHTML+="Contract Success Chance: x"+n+"
";break;case"successChanceOperation":J.actionsAndSkillsDesc.innerHTML+="Operation Success Chance: x"+n+"
";break;case"successChanceEstimate":J.actionsAndSkillsDesc.innerHTML+="Synthoid Data Estimate: x"+n+"
";break;case"actionTime":J.actionsAndSkillsDesc.innerHTML+="Action Time: x"+n+"
";break;case"effHack":J.actionsAndSkillsDesc.innerHTML+="Hacking Skill: x"+n+"
";break;case"effStr":J.actionsAndSkillsDesc.innerHTML+="Strength: x"+n+"
";break;case"effDef":J.actionsAndSkillsDesc.innerHTML+="Defense: x"+n+"
";break;case"effDex":J.actionsAndSkillsDesc.innerHTML+="Dexterity: x"+n+"
";break;case"effAgi":J.actionsAndSkillsDesc.innerHTML+="Agility: x"+n+"
";break;case"effCha":J.actionsAndSkillsDesc.innerHTML+="Charisma: x"+n+"
";break;case"effInt":J.actionsAndSkillsDesc.innerHTML+="Intelligence: x"+n+"
";break;case"stamina":J.actionsAndSkillsDesc.innerHTML+="Stamina: x"+n+"
";break;case"weaponAbility":case"gunAbility":break;default:console.log("Warning: Unrecognized SkillMult Key: "+e[t])}}for(var a in J.skillPointsDisplay=Object(_.createElement)("p",{innerHTML:"
Skill Points: "+Object(C.formatNumber)(this.skillPoints,0)+""}),J.actionAndSkillsDiv.appendChild(J.skillPointsDisplay),j)j.hasOwnProperty(a)&&(J.skills[a]=Object(_.createElement)("div",{class:"bladeburner-action",name:a}),J.actionsAndSkillsList.appendChild(J.skills[a]))},V.prototype.updateContent=function(){this.updateOverviewContent(),this.updateActionAndSkillsContent()},V.prototype.updateOverviewContent=function(){E.routing.isOn(E.Page.Bladeburner)&&(J.overviewRank.childNodes[0].nodeValue="Rank: "+Object(C.formatNumber)(this.rank,2),J.overviewStamina.innerText="Stamina: "+Object(C.formatNumber)(this.stamina,3)+" / "+Object(C.formatNumber)(this.maxStamina,3),J.overviewGen1.innerHTML="Stamina Penalty: "+Object(C.formatNumber)(100*(1-this.calculateStaminaPenalty()),1)+"%

Team Size: "+Object(C.formatNumber)(this.teamSize,0)+"
Team Members Lost: "+Object(C.formatNumber)(this.teamLost,0)+"

Num Times Hospitalized: "+this.numHosp+"
Money Lost From Hospitalizations: "+d.a.format(this.moneyLost,"$0.000a")+"

Current City: "+this.city+"
",J.overviewEstPop.childNodes[0].nodeValue="Est. Synthoid Population: "+d.a.format(this.getCurrentCity().popEst,"0.000a"),J.overviewEstComms.childNodes[0].nodeValue="Est. Synthoid Communities: "+Object(C.formatNumber)(this.getCurrentCity().comms,0),J.overviewChaos.childNodes[0].nodeValue="City Chaos: "+Object(C.formatNumber)(this.getCurrentCity().chaos),J.overviewSkillPoints.innerText="Skill Points: "+Object(C.formatNumber)(this.skillPoints,0),J.overviewBonusTime.childNodes[0].nodeValue="Bonus time: "+this.storedCycles/5,J.overviewAugSuccessMult.innerText="Aug. Success Chance Mult: "+Object(C.formatNumber)(100*c.a.bladeburner_success_chance_mult,1)+"%",J.overviewAugMaxStaminaMult.innerText="Aug. Max Stamina Mult: "+Object(C.formatNumber)(100*c.a.bladeburner_max_stamina_mult,1)+"%",J.overviewAugStaminaGainMult.innerText="Aug. Stamina Gain Mult: "+Object(C.formatNumber)(100*c.a.bladeburner_stamina_gain_mult,1)+"%",J.overviewAugAnalysisMult.innerText="Aug. Field Analysis Mult: "+Object(C.formatNumber)(100*c.a.bladeburner_analysis_mult,1)+"%")},V.prototype.updateActionAndSkillsContent=function(){switch(null==J.currentTab&&(J.currentTab="general"),J.currentTab.toLowerCase()){case"general":for(var e=Object.keys(J.generalActions),t=0;t";var m=Object.keys(J.skills);for(t=0;t(this.action.type=W[t.name],this.action.name=t.name,this.startAction(this.action),this.updateActionAndSkillsContent(),!1)}));Object(b.appendLineBreaks)(e,2),e.appendChild(Object(_.createElement)("pre",{innerHTML:t.desc,display:"inline-block"}))},V.prototype.updateContractsUIElement=function(e,t){Object(g.removeChildrenFromElement)(e);var n=e.classList.contains(N),a=t.getSuccessChance(this,{est:!0});if(e.appendChild(Object(_.createElement)("h2",{innerText:n?t.name+" (IN PROGRESS - "+Object(C.formatNumber)(this.actionTimeCurrent,0)+" / "+Object(C.formatNumber)(this.actionTimeToComplete,0)+")":t.name,display:"inline-block"})),n){var i=this.actionTimeCurrent/this.actionTimeToComplete;e.appendChild(Object(_.createElement)("p",{display:"block",innerText:Object(p.createProgressBarText)({progress:i})}))}else e.appendChild(Object(_.createElement)("a",{innerText:"Start",class:"a-link-button",padding:"3px",margin:"3px",clickListener:()=>(this.action.type=W.Contract,this.action.name=t.name,this.startAction(this.action),this.updateActionAndSkillsContent(),!1)}));var r=t.level>=t.maxLevel;Object(b.appendLineBreaks)(e,2),e.appendChild(Object(_.createElement)("pre",{display:"inline-block",innerText:"Level: "+t.level+" / "+t.maxLevel,tooltip:t.getSuccessesNeededForNextLevel(3.5)+" successes needed for next level"})),e.appendChild(Object(_.createElement)("a",{class:r?"a-link-button-inactive":"a-link-button",innerHTML:"↑",padding:"2px",margin:"2px",tooltip:n?"WARNING: changing the level will restart the contract":"",display:"inline",clickListener:()=>(++t.level,n&&this.startAction(this.action),this.updateContractsUIElement(e,t),!1)})),e.appendChild(Object(_.createElement)("a",{class:t.level<=1?"a-link-button-inactive":"a-link-button",innerHTML:"↓",padding:"2px",margin:"2px",tooltip:n?"WARNING: changing the level will restart the contract":"",display:"inline",clickListener:()=>(--t.level,n&&this.startAction(this.action),this.updateContractsUIElement(e,t),!1)}));var o=t.getActionTime(this);Object(b.appendLineBreaks)(e,2),e.appendChild(Object(_.createElement)("pre",{display:"inline-block",innerHTML:t.desc+"\n\nEstimated success chance: "+Object(C.formatNumber)(100*a,1)+"%\nTime Required (s): "+Object(C.formatNumber)(o,0)+"\nContracts remaining: "+Math.floor(t.count)+"\nSuccesses: "+t.successes+"\nFailures: "+t.failures})),e.appendChild(Object(_.createElement)("br"));var s="bladeburner-"+t.name+"-autolevel-checkbox";e.appendChild(Object(_.createElement)("label",{for:s,innerText:"Autolevel",color:"white",tooltip:"Automatically increase contract level when possible"}));var l=Object(_.createElement)("input",{type:"checkbox",id:s,margin:"4px",checked:t.autoLevel,changeListener:()=>{t.autoLevel=l.checked}});e.appendChild(l)},V.prototype.updateOperationsUIElement=function(e,t){Object(g.removeChildrenFromElement)(e);var n=e.classList.contains(N),a=t.getSuccessChance(this,{est:!0});if(e.appendChild(Object(_.createElement)("h2",{innerText:n?t.name+" (IN PROGRESS - "+Object(C.formatNumber)(this.actionTimeCurrent,0)+" / "+Object(C.formatNumber)(this.actionTimeToComplete,0)+")":t.name,display:"inline-block"})),n){var i=this.actionTimeCurrent/this.actionTimeToComplete;e.appendChild(Object(_.createElement)("p",{display:"block",innerText:Object(p.createProgressBarText)({progress:i})}))}else e.appendChild(Object(_.createElement)("a",{innerText:"Start",class:"a-link-button",margin:"3px",padding:"3px",clickListener:()=>(this.action.type=W.Operation,this.action.name=t.name,this.startAction(this.action),this.updateActionAndSkillsContent(),!1)})),e.appendChild(Object(_.createElement)("a",{innerText:"Set Team Size (Curr Size: "+Object(C.formatNumber)(t.teamCount,0)+")",class:"a-link-button",margin:"3px",padding:"3px",clickListener:()=>{var n="bladeburner-operation-set-team-size-popup",a=Object(_.createElement)("p",{innerText:"Enter the amount of team members you would like to take on these operations. If you do not have the specified number of team members, then as many as possible will be used. Note that team members may be lost during operations."}),i=Object(_.createElement)("input",{type:"number",placeholder:"Team Members"}),r=Object(_.createElement)("a",{innerText:"Confirm",class:"a-link-button",clickListener:()=>{var a=Math.round(parseFloat(i.value));return isNaN(a)?Object(m.dialogBoxCreate)("Invalid value entered for number of Team Members (must be numeric)"):(t.teamCount=a,this.updateOperationsUIElement(e,t)),Object(x.removeElementById)(n),!1}}),o=Object(_.createElement)("a",{innerText:"Cancel",class:"a-link-button",clickListener:()=>(Object(x.removeElementById)(n),!1)});Object(k.createPopup)(n,[a,i,r,o])}}));var r=t.level>=t.maxLevel;Object(b.appendLineBreaks)(e,2),e.appendChild(Object(_.createElement)("pre",{display:"inline-block",innerText:"Level: "+t.level+" / "+t.maxLevel,tooltip:t.getSuccessesNeededForNextLevel(3)+" successes needed for next level"})),e.appendChild(Object(_.createElement)("a",{class:r?"a-link-button-inactive":"a-link-button",innerHTML:"↑",padding:"2px",margin:"2px",tooltip:n?"WARNING: changing the level will restart the Operation":"",display:"inline",clickListener:()=>(++t.level,n&&this.startAction(this.action),this.updateOperationsUIElement(e,t),!1)})),e.appendChild(Object(_.createElement)("a",{class:t.level<=1?"a-link-button-inactive":"a-link-button",innerHTML:"↓",padding:"2px",margin:"2px",tooltip:n?"WARNING: changing the level will restart the Operation":"",display:"inline",clickListener:()=>(--t.level,n&&this.startAction(this.action),this.updateOperationsUIElement(e,t),!1)}));t.getDifficulty();var o=t.getActionTime(this);Object(b.appendLineBreaks)(e,2),e.appendChild(Object(_.createElement)("pre",{display:"inline-block",innerHTML:t.desc+"\n\nEstimated success chance: "+Object(C.formatNumber)(100*a,1)+"%\nTime Required(s): "+Object(C.formatNumber)(o,1)+"\nOperations remaining: "+Math.floor(t.count)+"\nSuccesses: "+t.successes+"\nFailures: "+t.failures})),e.appendChild(Object(_.createElement)("br"));var s="bladeburner-"+t.name+"-autolevel-checkbox";e.appendChild(Object(_.createElement)("label",{for:s,innerText:"Autolevel",color:"white",tooltip:"Automatically increase operation level when possible"}));var l=Object(_.createElement)("input",{type:"checkbox",id:s,margin:"4px",checked:t.autoLevel,changeListener:()=>{t.autoLevel=l.checked}});e.appendChild(l)},V.prototype.updateBlackOpsUIElement=function(e,t){Object(g.removeChildrenFromElement)(e);var n=e.classList.contains(N),a=null!=this.blackops[t.name],i=t.getSuccessChance(this,{est:!0}),r=(t.getDifficulty(),t.getActionTime(this)),o=this.rank>=t.reqdRank;if(a)e.appendChild(Object(_.createElement)("h2",{innerText:t.name+" (COMPLETED)",display:"block"}));else{if(e.appendChild(Object(_.createElement)("h2",{innerText:n?t.name+" (IN PROGRESS - "+Object(C.formatNumber)(this.actionTimeCurrent,0)+" / "+Object(C.formatNumber)(this.actionTimeToComplete,0)+")":t.name,display:"inline-block"})),n){var s=this.actionTimeCurrent/this.actionTimeToComplete;e.appendChild(Object(_.createElement)("p",{display:"block",innerText:Object(p.createProgressBarText)({progress:s})}))}else e.appendChild(Object(_.createElement)("a",{innerText:"Start",margin:"3px",padding:"3px",class:o?"a-link-button":"a-link-button-inactive",clickListener:()=>(this.action.type=W.BlackOperation,this.action.name=t.name,this.startAction(this.action),this.updateActionAndSkillsContent(),!1)})),e.appendChild(Object(_.createElement)("a",{innerText:"Set Team Size (Curr Size: "+Object(C.formatNumber)(t.teamCount,0)+")",class:"a-link-button",margin:"3px",padding:"3px",clickListener:()=>{var n="bladeburner-operation-set-team-size-popup",a=Object(_.createElement)("p",{innerText:"Enter the amount of team members you would like to take on this BlackOp. If you do not have the specified number of team members, then as many as possible will be used. Note that team members may be lost during operations."}),i=Object(_.createElement)("input",{type:"number",placeholder:"Team Members"}),r=Object(_.createElement)("a",{innerText:"Confirm",class:"a-link-button",clickListener:()=>{var a=Math.round(parseFloat(i.value));return isNaN(a)?Object(m.dialogBoxCreate)("Invalid value entered for number of Team Members (must be numeric)"):(t.teamCount=a,this.updateBlackOpsUIElement(e,t)),Object(x.removeElementById)(n),!1}}),o=Object(_.createElement)("a",{innerText:"Cancel",class:"a-link-button",clickListener:()=>(Object(x.removeElementById)(n),!1)});Object(k.createPopup)(n,[a,i,r,o])}}));Object(b.appendLineBreaks)(e,2),e.appendChild(Object(_.createElement)("p",{display:"inline-block",innerHTML:"
"+t.desc+"

"})),e.appendChild(Object(_.createElement)("p",{display:"block",color:o?"white":"red",innerHTML:"Required Rank: "+Object(C.formatNumber)(t.reqdRank,0)+"
"})),e.appendChild(Object(_.createElement)("p",{display:"inline-block",innerHTML:"Estimated Success Chance: "+Object(C.formatNumber)(100*i,1)+"%\nTime Required(s): "+Object(C.formatNumber)(r,1)}))}},V.prototype.updateSkillsUIElement=function(e,t){Object(g.removeChildrenFromElement)(e);var n=t.name,a=0;this.skills[n]&&!isNaN(this.skills[n])&&(a=this.skills[n]);var i=t.calculateCost(a);e.appendChild(Object(_.createElement)("h2",{innerText:t.name+" (Lvl "+a+")",display:"inline-block"}));var r=this.skillPoints>=i,o=!!t.maxLvl&&a>=t.maxLvl;e.appendChild(Object(_.createElement)("a",{innerText:"Level",display:"inline-block",class:r&&!o?"a-link-button":"a-link-button-inactive",margin:"3px",padding:"3px",clickListener:()=>{if(!(this.skillPoints'+t+""),J.consoleTable.childNodes.length>200&&J.consoleTable.removeChild(J.consoleTable.firstChild),this.updateConsoleScroll())},V.prototype.updateConsoleScroll=function(){J.consoleDiv.scrollTop=J.consoleDiv.scrollHeight},V.prototype.resetConsoleInput=function(){J.consoleInput.value=""},V.prototype.clearConsole=function(){for(;J.consoleTable.childNodes.length>1;)J.consoleTable.removeChild(J.consoleTable.firstChild)},V.prototype.log=function(e){this.postToConsole(`[${Object(S.getTimestamp)()}] ${e}`)},V.prototype.executeConsoleCommands=function(e){try{M[M.length-1]!=e&&(M.push(e),M.length>50&&M.splice(0,1)),P=M.length;for(var t=e.split(";"),n=0;n"))}},V.prototype.executeLogConsoleCommand=function(e){if(e.length<3)return this.postToConsole("Invalid usage of log command: log [enable/disable] [action/event]"),void this.postToConsole("Use 'help log' for more details and examples");var t=!0;switch(e[1].toLowerCase().includes("d")&&(t=!1),e[2].toLowerCase()){case"general":case"gen":this.logging.general=t,this.log("Logging "+(t?"enabled":"disabled")+" for general actions");break;case"contract":case"contracts":this.logging.contracts=t,this.log("Logging "+(t?"enabled":"disabled")+" for Contracts");break;case"ops":case"op":case"operations":case"operation":this.logging.ops=t,this.log("Logging "+(t?"enabled":"disabled")+" for Operations");break;case"blackops":case"blackop":case"black operations":case"black operation":this.logging.blackops=t,this.log("Logging "+(t?"enabled":"disabled")+" for BlackOps");break;case"event":case"events":this.logging.events=t,this.log("Logging "+(t?"enabled":"disabled")+" for events");break;case"all":this.logging.general=t,this.logging.contracts=t,this.logging.ops=t,this.logging.blackops=t,this.logging.events=t,this.log("Logging "+(t?"enabled":"disabled")+" for everything");break;default:this.postToConsole("Invalid action/event type specified: "+e[2]),this.postToConsole("Examples of valid action/event identifiers are: [general, contracts, ops, blackops, events]")}},V.prototype.executeSkillConsoleCommand=function(e){switch(e.length){case 1:this.postToConsole("Invalid usage of 'skill' console command: skill [action] [name]"),this.postToConsole("Use 'help skill' for more info");break;case 2:if("list"===e[1].toLowerCase()){this.postToConsole("Skills: ");for(var t=Object.keys(j),n=0;n=c?(this.skillPoints-=c,this.upgradeSkill(a),this.log(a.name+" upgraded to Level "+this.skills[s]),this.createActionAndSkillsContent()):this.postToConsole("You do not have enough Skill Points to upgrade this. You need "+Object(C.formatNumber)(c,0))}else this.postToConsole("Invalid usage of 'skill' console command: skill [action] [name]"),this.postToConsole("Use 'help skill' for more info");break;default:this.postToConsole("Invalid usage of 'skill' console command: skill [action] [name]"),this.postToConsole("Use 'help skill' for more info")}},V.prototype.executeStartConsoleCommand=function(e){if(3!==e.length)return this.postToConsole("Invalid usage of 'start' console command: start [type] [name]"),void this.postToConsole("Use 'help start' for more info");var t=e[2];switch(e[1].toLowerCase()){case"general":case"gen":null!=H[t]?(this.action.type=W[t],this.action.name=t,this.startAction(this.action),this.updateActionAndSkillsContent()):this.postToConsole("Invalid action name specified: "+e[2]);break;case"contract":case"contracts":null!=this.contracts[t]?(this.action.type=W.Contract,this.action.name=t,this.startAction(this.action),this.updateActionAndSkillsContent()):this.postToConsole("Invalid contract name specified: "+e[2]);break;case"ops":case"op":case"operations":case"operation":null!=this.operations[t]?(this.action.type=W.Operation,this.action.name=t,this.startAction(this.action),this.updateActionAndSkillsContent()):this.postToConsole("Invalid Operation name specified: "+e[2]);break;case"blackops":case"blackop":case"black operations":case"black operation":null!=Y[t]?(this.action.type=W.BlackOperation,this.action.name=t,this.startAction(this.action),this.updateActionAndSkillsContent()):this.postToConsole("Invalid BlackOp name specified: "+e[2]);break;default:this.postToConsole("Invalid action/event type specified: "+e[1]),this.postToConsole("Examples of valid action/event identifiers are: [general, contract, op, blackop]")}},V.prototype.getActionIdFromTypeAndName=function(e="",t=""){if(""===e||""===t)return null;var n=new G,a=e.toLowerCase().trim(),i=t.toLowerCase().trim();switch(a){case"contract":case"contracts":case"contr":return n.type=W.Contract,this.contracts.hasOwnProperty(t)?(n.name=t,n):null;case"operation":case"operations":case"op":case"ops":return n.type=W.Operation,this.operations.hasOwnProperty(t)?(n.name=t,n):null;case"blackoperation":case"black operation":case"black operations":case"black op":case"black ops":case"blackop":case"blackops":return n.type=W.BlackOp,Y.hasOwnProperty(t)?(n.name=t,n):null;case"general":case"general action":case"gen":break;default:return null}if(a.startsWith("gen")){switch(i){case"training":n.type=W.Training,n.name="Training";break;case"recruitment":case"recruit":n.type=W.Recruitment,n.name="Recruitment";break;case"field analysis":case"fieldanalysis":n.type=W["Field Analysis"],n.name="Field Analysis";break;default:return null}return n}},V.prototype.getTypeAndNameFromActionId=function(e){var t={};let n=Object.keys(W);for(let a=0;a=a.maxLvl?(t.shouldLog("upgradeSkill")&&t.log(`bladeburner.upgradeSkill() failed because ${e} is already maxed`),!1):this.skillPoints=25?(Object(s.h)(t),e.shouldLog("joinBladeburnerFaction")&&e.log("Joined Bladeburners Faction"),E.routing.isOn(E.Page.Bladeburner)&&(Object(g.removeChildrenFromElement)(J.overviewDiv),this.createOverviewContent()),!0):(e.shouldLog("joinBladeburnerFaction")&&e.log("Failed to join Bladeburners Faction because you do not have the required 25 rank"),!1))},V.prototype.toJSON=function(){return Object(y.Generic_toJSON)("Bladeburner",this)},V.fromJSON=function(e){return Object(y.Generic_fromJSON)(V,e.data)},y.Reviver.constructors.Bladeburner=V}).call(this,n(60))},,function(e,t,n){"use strict";n.d(t,"d",function(){return d}),n.d(t,"c",function(){return p}),n.d(t,"b",function(){return g}),n.d(t,"a",function(){return h});var a=n(7),i=n(0),r=n(19),o=n(18),s=n(4),l=n(36),c=n(21);const u=["Start","GoToCharacterPage","CharacterPage","CharacterGoToTerminalPage","TerminalIntro","TerminalHelp","TerminalLs","TerminalScan","TerminalScanAnalyze1","TerminalScanAnalyze2","TerminalConnect","TerminalAnalyze","TerminalNuke","TerminalManualHack","TerminalHackingMechanics","TerminalCreateScript","TerminalTypeScript","TerminalFree","TerminalRunScript","TerminalGoToActiveScriptsPage","ActiveScriptsPage","ActiveScriptsToTerminal","TerminalTailScript","GoToHacknetNodesPage","HacknetNodesIntroduction","HacknetNodesGoToWorldPage","WorldDescription","TutorialPageInfo","End"],d={};for(let e=0;ed.Start&&(h.currStep-=1);m()}(),!1}),Object(o.clearEventListeners)("interactive-tutorial-next").addEventListener("click",function(){return g(),!1}),m()}function m(){if(h.isRunning){var e=Object(o.clearEventListeners)("terminal-menu-link"),t=Object(o.clearEventListeners)("stats-menu-link"),n=Object(o.clearEventListeners)("active-scripts-menu-link"),i=Object(o.clearEventListeners)("hacknet-nodes-menu-link"),r=Object(o.clearEventListeners)("city-menu-link"),s=Object(o.clearEventListeners)("tutorial-menu-link");e.removeAttribute("class"),t.removeAttribute("class"),n.removeAttribute("class"),i.removeAttribute("class"),r.removeAttribute("class"),s.removeAttribute("class");var l=document.getElementById("interactive-tutorial-next");switch(h.currStep){case d.Start:a.Engine.loadTerminalContent(),f("Welcome to Bitburner, a cyberpunk-themed incremental RPG! The game takes place in a dark, dystopian future...The year is 2077...

This tutorial will show you the basics of the game. You may skip the tutorial at any time."),l.style.display="inline-block";break;case d.GoToCharacterPage:a.Engine.loadTerminalContent(),f("Let's start by heading to the Stats page. Click the 'Stats' tab on the main navigation menu (left-hand side of the screen)"),l.style.display="none",t.setAttribute("class","flashing-button"),t.addEventListener("click",function(){return a.Engine.loadCharacterContent(),g(),!1});break;case d.CharacterPage:a.Engine.loadCharacterContent(),f("The Stats page shows a lot of important information about your progress, such as your skills, money, and bonuses/multipliers. "),l.style.display="inline-block";break;case d.CharacterGoToTerminalPage:a.Engine.loadCharacterContent(),f("Let's head to your computer's terminal by clicking the 'Terminal' tab on the main navigation menu."),l.style.display="none",e.setAttribute("class","flashing-button"),e.addEventListener("click",function(){return a.Engine.loadTerminalContent(),g(),!1});break;case d.TerminalIntro:a.Engine.loadTerminalContent(),f("The Terminal is used to interface with your home computer as well as all of the other machines around the world."),l.style.display="inline-block";break;case d.TerminalHelp:a.Engine.loadTerminalContent(),f("Let's try it out. Start by entering the 'help' command into the Terminal (Don't forget to press Enter after typing the command)"),l.style.display="none";break;case d.TerminalLs:a.Engine.loadTerminalContent(),f("The 'help' command displays a list of all available Terminal commands, how to use them, and a description of what they do.

Let's try another command. Enter the 'ls' command"),l.style.display="none";break;case d.TerminalScan:a.Engine.loadTerminalContent(),f("'ls' is a basic command that shows all of the contents (programs/scripts) on the computer. Right now, it shows that you have a program called 'NUKE.exe' on your computer. We'll get to what this does later.

Using your home computer's terminal, you can connect to other machines throughout the world. Let's do that now by first entering the 'scan' command."),l.style.display="none";break;case d.TerminalScanAnalyze1:a.Engine.loadTerminalContent(),f("The 'scan' command shows all available network connections. In other words, it displays a list of all servers that can be connected to from your current machine. A server is identified by either its IP or its hostname.

That's great and all, but there's so many servers. Which one should you go to? The 'scan-analyze' command gives some more detailed information about servers on the network. Try it now"),l.style.display="none";break;case d.TerminalScanAnalyze2:a.Engine.loadTerminalContent(),f("You just ran 'scan-analyze' with a depth of one. This command shows more detailed information about each server that you can connect to (servers that are a distance of one node away).

It is also possible to run 'scan-analyze' with a higher depth. Let's try a depth of two with the following command: 'scan-analyze 2'."),l.style.display="none";break;case d.TerminalConnect:a.Engine.loadTerminalContent(),f("Now you can see information about all servers that are up to two nodes away, as well as figure out how to navigate to those servers through the network. You can only connect to a server that is one node away. To connect to a machine, use the 'connect [ip/hostname]' command. You can type in the ip or the hostname, but dont use both.

From the results of the 'scan-analyze' command, we can see that the 'foodnstuff' server is only one node away. Let's connect so it now using: 'connect foodnstuff'"),l.style.display="none";break;case d.TerminalAnalyze:a.Engine.loadTerminalContent(),f("You are now connected to another machine! What can you do now? You can hack it!

In the year 2077, currency has become digital and decentralized. People and corporations store their money on servers and computers. Using your hacking abilities, you can hack servers to steal money and gain experience.

Before you try to hack a server, you should run diagnostics using the 'analyze' command"),l.style.display="none";break;case d.TerminalNuke:a.Engine.loadTerminalContent(),f("When the 'analyze' command finishes running it will show useful information about hacking the server.

For this server, the required hacking skill is only 1, which means you can hack it right now. However, in order to hack a server you must first gain root access. The 'NUKE.exe' program that we saw earlier on your home computer is a virus that will grant you root access to a machine if there are enough open ports.

The 'analyze' results shows that there do not need to be any open ports on this machine for the NUKE virus to work, so go ahead and run the virus using the 'run NUKE.exe' command."),l.style.display="none";break;case d.TerminalManualHack:a.Engine.loadTerminalContent(),f("You now have root access! You can hack the server using the 'hack' command. Try doing that now."),l.style.display="none";break;case d.TerminalHackingMechanics:a.Engine.loadTerminalContent(),f("You are now attempting to hack the server. Note that performing a hack takes time and only has a certain percentage chance of success. This time and success chance is determined by a variety of factors, including your hacking skill and the server's security level.

If your attempt to hack the server is successful, you will steal a certain percentage of the server's total money. This percentage is affected by your hacking skill and the server's security level.

The amount of money on a server is not limitless. So, if you constantly hack a server and deplete its money, then you will encounter diminishing returns in your hacking."),l.style.display="inline-block";break;case d.TerminalCreateScript:a.Engine.loadTerminalContent(),f("Hacking is the core mechanic of the game and is necessary for progressing. However, you don't want to be hacking manually the entire time. You can automate your hacking by writing scripts!

To create a new script or edit an existing one, you can use the 'nano' command. Scripts must end with the '.script' extension. Let's make a script now by entering 'nano foodnstuff.script' after the hack command finishes running (Sidenote: Pressing ctrl + c will end a command like hack early)"),l.style.display="none";break;case d.TerminalTypeScript:a.Engine.loadScriptEditorContent("foodnstuff.script",""),f("This is the script editor. You can use it to program your scripts. Scripts are written in the Netscript language, a programming language created for this game. There are details about the Netscript language in the documentation, which can be accessed in the 'Tutorial' tab on the main navigation menu. I highly suggest you check it out after this tutorial. For now, just copy and paste the following code into the script editor:

while(true) {
  hack('foodnstuff');
}

For anyone with basic programming experience, this code should be straightforward. This script will continuously hack the 'foodnstuff' server.

To save and close the script editor, press the button in the bottom left, or press ctrl + b."),l.style.display="none";break;case d.TerminalFree:a.Engine.loadTerminalContent(),f("Now we'll run the script. Scripts require a certain amount of RAM to run, and can be run on any machine which you have root access to. Different servers have different amounts of RAM. You can also purchase more RAM for your home server.

To check how much RAM is available on this machine, enter the 'free' command."),l.style.display="none";break;case d.TerminalRunScript:a.Engine.loadTerminalContent(),f("We have 16GB of free RAM on this machine, which is enough to run our script. Let's run our script using 'run foodnstuff.script'."),l.style.display="none";break;case d.TerminalGoToActiveScriptsPage:a.Engine.loadTerminalContent(),f("Your script is now running! The script might take a few seconds to 'fully start up'. Your scripts will continuously run in the background and will automatically stop if the code ever completes (the 'foodnstuff.script' will never complete because it runs an infinite loop).

These scripts can passively earn you income and hacking experience. Your scripts will also earn money and experience while you are offline, although at a much slower rate.

Let's check out some statistics for our running scripts by clicking the 'Active Scripts' link in the main navigation menu."),l.style.display="none",n.setAttribute("class","flashing-button"),n.addEventListener("click",function(){return a.Engine.loadActiveScriptsContent(),g(),!1});break;case d.ActiveScriptsPage:a.Engine.loadActiveScriptsContent(),f("This page displays stats/information about all of your scripts that are running across every existing server. You can use this to gauge how well your scripts are doing. Let's go back to the Terminal now using the 'Terminal'link."),l.style.display="none",e.setAttribute("class","flashing-button"),e.addEventListener("click",function(){return a.Engine.loadTerminalContent(),g(),!1});break;case d.ActiveScriptsToTerminal:a.Engine.loadTerminalContent(),f("One last thing about scripts, each active script contains logs that detail what it's doing. We can check these logs using the 'tail' command. Do that now for the script we just ran by typing 'tail foodnstuff.script'"),l.style.display="none";break;case d.TerminalTailScript:a.Engine.loadTerminalContent(),f("The log for this script won't show much right now (it might show nothing at all) because it just started running...but check back again in a few minutes!

This pretty much covers the basics of hacking. To learn more about writing scripts using the Netscript language, select the 'Tutorial' link in the main navigation menu to look at the documentation. If you are an experienced JavaScript developer, I would highly suggest you check out the section on NetscriptJS/Netscript 2.0.

For now, let's move on to something else!"),l.style.display="inline-block";break;case d.GoToHacknetNodesPage:a.Engine.loadTerminalContent(),f("Hacking is not the only way to earn money. One other way to passively earn money is by purchasing and upgrading Hacknet Nodes. Let's go to the 'Hacknet Nodes' page through the main navigation menu now."),l.style.display="none",i.setAttribute("class","flashing-button"),i.addEventListener("click",function(){return a.Engine.loadHacknetNodesContent(),g(),!1});break;case d.HacknetNodesIntroduction:a.Engine.loadHacknetNodesContent(),f("From this page you can purchase new Hacknet Nodes and upgrade your existing ones. Let's purchase a new one now."),l.style.display="none";break;case d.HacknetNodesGoToWorldPage:a.Engine.loadHacknetNodesContent(),f("You just purchased a Hacknet Node! This Hacknet Node will passively earn you money over time, both online and offline. When you get enough money, you can upgrade your newly-purchased Hacknet Node below.

Let's go to the 'City' page through the main navigation menu."),l.style.display="none",r.setAttribute("class","flashing-button"),r.addEventListener("click",function(){return a.Engine.loadWorldContent(),g(),!1});break;case d.WorldDescription:a.Engine.loadWorldContent(),f("This page lists all of the different locations you can currently travel to. Each location has something that you can do. There's a lot of content out in the world, make sure you explore and discover!

Lastly, click on the 'Tutorial' link in the main navigation menu."),l.style.display="none",s.setAttribute("class","flashing-button"),s.addEventListener("click",function(){return a.Engine.loadTutorialContent(),g(),!1});break;case d.TutorialPageInfo:a.Engine.loadTutorialContent(),f("This page contains a lot of different documentation about the game's content and mechanics. I know it's a lot, but I highly suggest you read (or at least skim) through this before you start playing. That's the end of the tutorial. Hope you enjoy the game!"),l.style.display="inline-block",l.innerHTML="Finish Tutorial";break;case d.End:y();break;default:throw new Error("Invalid tutorial step")}!0===h.stepIsDone[h.currStep]&&(l.style.display="inline-block")}else console.log("Interactive Tutorial not running")}function g(){h.currStep===d.GoToCharacterPage&&document.getElementById("stats-menu-link").removeAttribute("class"),h.currStep===d.CharacterGoToTerminalPage&&document.getElementById("terminal-menu-link").removeAttribute("class"),h.currStep===d.TerminalGoToActiveScriptsPage&&document.getElementById("active-scripts-menu-link").removeAttribute("class"),h.currStep===d.ActiveScriptsPage&&document.getElementById("terminal-menu-link").removeAttribute("class"),h.currStep===d.GoToHacknetNodesPage&&document.getElementById("hacknet-nodes-menu-link").removeAttribute("class"),h.currStep===d.HacknetNodesGoToWorldPage&&document.getElementById("city-menu-link").removeAttribute("class"),h.currStep===d.WorldDescription&&document.getElementById("tutorial-menu-link").removeAttribute("class"),h.stepIsDone[h.currStep]=!0,h.currStep
Getting Started GuideWikiDocumentation

The Beginner's Guide to Hacking was added to your home computer! It contains some tips/pointers for starting out with the game. To read it, go to Terminal and enter

cat hackers-starting-handbook.lit"}),n=Object(s.createElement)("a",{class:"a-link-button",float:"right",padding:"6px",innerText:"Got it!",clickListener:()=>{Object(c.removeElementById)(e)}});Object(l.createPopup)(e,[t,n]),i.a.getHomeComputer().messages.push("hackers-starting-handbook.lit")}function f(e){var t=document.getElementById("interactive-tutorial-text");if(null==t)throw new Error("Could not find text box");t.innerHTML=e,t.parentElement.scrollTop=0}},function(e,t,n){"use strict";(function(e){n.d(t,"h",function(){return M}),n.d(t,"f",function(){return W}),n.d(t,"d",function(){return U}),n.d(t,"b",function(){return K}),n.d(t,"c",function(){return A}),n.d(t,"a",function(){return q}),n.d(t,"g",function(){return N}),n.d(t,"e",function(){return x});var a=n(1),i=n(7),r=n(40),o=n(30),s=n(5),l=n(37),c=n(23),u=n(0),d=n(11),h=n(19),p=n(6),m=n(59),g=n(41),y=n(16),f=n(12),b=n(8),v=n(14),_=n(79),k=n(4),E=n(74),O=n(71),C=n(218),w=n(217).js_beautify;n(216),n(156),n(215),n(214),n(213),n(212),n(211),n(210),n(209),n(208),n(207),n(206),n(205);const S=n(122);var T={ace:null,vim:"ace/keyboard/vim",emacs:"ace/keyboard/emacs"};function x(e){return e.endsWith(".js")||e.endsWith(".script")||e.endsWith(".ns")}var R=null,I=null;function N(){var e=document.getElementById("script-editor-buttons-wrapper");if(null!=e){var t=Object(k.createElement)("a",{class:"a-link-button",display:"inline-block",innerText:"Beautify",clickListener:()=>((function(){var e=C.edit("javascript-editor"),t=e.getValue();t=w(t,{indent_size:4}),e.setValue(t)})(),!1)}),n=Object(k.createElement)("a",{class:"a-link-button",display:"inline-block",innerText:"Save & Close (Ctrl/Cmd + b)",clickListener:()=>(P(),!1)});I=Object(k.createElement)("p",{display:"inline-block",margin:"10px",id:"script-editor-status-text"});var a=Object(k.createElement)("label",{for:"script-editor-ram-check",margin:"4px",marginTop:"8px",innerText:"Dynamic RAM Usage Checker",color:"white",tooltip:"Enable/Disable the dynamic RAM Usage display. You may want to disable it for very long scripts because there may be performance issues"});(R=Object(k.createElement)("input",{type:"checkbox",name:"script-editor-ram-check",id:"script-editor-ram-check",margin:"4px",marginTop:"8px"})).checked=!0;var r=Object(k.createElement)("a",{display:"inline-block",class:"a-link-button",innerText:"Netscript Documentation",href:"https://bitburner.readthedocs.io/en/latest/index.html",target:"_blank"});e.appendChild(t),e.appendChild(n),e.appendChild(I),e.appendChild(R),e.appendChild(a),e.appendChild(r);var o=C.edit("javascript-editor");o.getSession().setMode("ace/mode/netscript"),o.setTheme("ace/theme/monokai"),document.getElementById("javascript-editor").style.fontSize="16px",o.setOption("showPrintMargin",!1);var s=document.getElementById("script-editor-option-theme");if(h.Settings.EditorTheme){for(var c=2,u=0;u{l.includes(e.name)||s(t.key,e.name)},WhileStatement:(e,t,n)=>{s(t.key,j),e.test&&n(e.test,t),e.body&&n(e.body,t)},DoWhileStatement:(e,t,n)=>{s(t.key,j),e.test&&n(e.test,t),e.body&&n(e.body,t)},ForStatement:(e,t,n)=>{s(t.key,B),e.init&&n(e.init,t),e.test&&n(e.test,t),e.update&&n(e.update,t),e.body&&n(e.body,t)},IfStatement:(e,t,n)=>{s(t.key,L),e.test&&n(e.test,t),e.consequent&&n(e.consequent,t),e.alternate&&n(e.alternate,t)},MemberExpression:(e,t,n)=>{e.object&&n(e.object,t),e.property&&n(e.property,t)}}}return S.recursive(n,{key:a},Object.assign({ImportDeclaration:(e,t,n)=>{const a=e.source.value;o.push(a),i[t.key].add(a+D);for(let n=0;n{const i=t+"."+e.id.name;S.recursive(e,{key:i},c())}},c())),{dependencyMap:i,additionalModules:o}}(e,t);s.add(t);for(let e=0;e0;){const t=l.shift(),n=e.getScript(t);if(!n)return-1;i(n.code.repeat(1),t)}let u=a.a.ScriptBaseRamCost;const d=Object.keys(o).filter(e=>e.startsWith(c)),h=new Set;for(;d.length>0;){const e=d.shift();if("hacknet"!==e||h.has("hacknet")||(u+=a.a.ScriptHacknetNodesRamCost),"document"!==e||h.has("document")||(u+=a.a.ScriptDomRamCost),"window"!==e||h.has("window")||(u+=a.a.ScriptDomRamCost),h.add(e),e.endsWith(".*")){const t=e.slice(0,e.length-2);for(let e of Object.keys(o).filter(e=>e.startsWith(t)))for(let t of o[e]||[])h.has(t)||d.push(t)}else for(let t of o[e]||[])h.has(t)||d.push(t);try{function r(e){if("function"!=typeof e)return 0;try{let t=e.apply(null,[]);return"number"==typeof t?t:0}catch(e){return console.log("ERROR applying function: "+e),0}}u+=r(e in n.env.vars.bladeburner?n.env.vars.bladeburner[e]:e in n.env.vars.codingcontract?n.env.vars.codingcontract[e]:n.env.get(e))}catch(e){continue}}return u}catch(e){return-1}}function H(e){var t=u.a.getCurrentServer(),n=new c.b({filename:"foo",scriptRef:{code:""},args:[]});n.checkingRam=!0,n.serverIp=t.ip;try{return F(t,e,n)}catch(e){console.log("Failed to parse ram using new method. Falling back.",e)}try{var i=Object(g.parse)(e,{sourceType:"module"})}catch(e){return-1}var r=[],o=a.a.ScriptBaseRamCost,l=!1,d=!1,h=!1;for(r.push(i);0!=r.length;){var p=r.shift();switch(p.type){case"ImportDeclaration":for(var m=Object(s.a)(p,n,!0),y=0;y=1&&(n=1),e.dataMap)if(e.dataMap.hasOwnProperty(i)){if(0==e.dataMap[i][2]||null==e.dataMap[i][2])continue;if(null==(p=d.b[i]))continue;var r=Math.round(.5*e.dataMap[i][2]/e.onlineRunningTime*t);console.log(e.filename+" called grow() on "+p.hostname+" "+r+" times while offline"),e.log("Called grow() on "+p.hostname+" "+r+" times while offline");var o=Object(d.j)(p,450*r);e.log(p.hostname+" grown by "+f.a.format(100*o-100,"0.000000%")+" from grow() calls made while offline")}var s=0;for(var i in e.dataMap)if(e.dataMap.hasOwnProperty(i)){if(0==e.dataMap[i][0]||null==e.dataMap[i][0])continue;if(null==(p=d.b[i]))continue;var l=.5*e.dataMap[i][0]/e.onlineRunningTime*t;(l*=n)>p.moneyAvailable&&(l=p.moneyAvailable),s+=l,u.a.gainMoney(l),console.log(e.filename+" generated $"+l+" while offline by hacking "+p.hostname),e.log(e.filename+" generated $"+l+" while offline by hacking "+p.hostname),p.moneyAvailable-=l,p.moneyAvailable<0&&(p.moneyAvailable=0),isNaN(p.moneyAvailable)&&(p.moneyAvailable=0)}var c=e.onlineExpGained/e.onlineRunningTime*.5*t;for(var i in c*=n,u.a.gainHackingExp(c),e.offlineMoneyMade+=s,e.offlineRunningTime+=t,e.offlineExpGained+=c,e.dataMap)if(e.dataMap.hasOwnProperty(i)){if(0==e.dataMap[i][1]||null==e.dataMap[i][1])continue;if(null==(p=d.b[i]))continue;var h=Math.round(.5*e.dataMap[i][1]/e.onlineRunningTime*t);console.log(e.filename+" hacked "+p.hostname+" "+h+" times while offline"),e.log("Hacked "+p.hostname+" "+h+" times while offline"),p.fortify(a.a.ServerFortifyAmount*h)}for(var i in e.dataMap)if(e.dataMap.hasOwnProperty(i)){if(0==e.dataMap[i][3]||null==e.dataMap[i][3])continue;var p;if(null==(p=d.b[i]))continue;var m=Math.round(.5*e.dataMap[i][3]/e.onlineRunningTime*t);console.log(e.filename+" called weaken() on "+p.hostname+" "+m+" times while offline"),e.log("Called weaken() on "+p.hostname+" "+m+" times while offline"),p.weaken(a.a.ServerWeakenAmount*m)}return s}function U(e,t,n){for(var a=0;ah.Settings.MaxLogCapacity&&this.logs.shift();let t=e;r.a.ENABLE_TIMESTAMPS&&(t="["+Object(E.getTimestamp)()+"] "+t),this.logs.push(t),this.logUpd=!0},K.prototype.displayLog=function(){for(var e=0;e

This message was saved as "+e.filename+" onto your home computer.";Object(u.dialogBoxCreate)(t)}function g(){var e=f[v.Jumper0],t=f[v.Jumper1],n=f[v.Jumper2],l=f[v.Jumper3],c=f[v.Jumper4],d=f[v.CyberSecTest],h=f[v.NiteSecTest],m=f[v.BitRunnersTest],g=f[v.RedPill],y=!1;a.c[a.b.TheRedPill].owned&&(y=!0),g&&y&&0===o.a.sourceFiles.length&&!s.b&&!r.c?u.dialogBoxOpened||p(g,!0):g&&y?s.b||r.c||u.dialogBoxOpened||p(g):e&&!e.recvd&&o.a.hacking_skill>=25?(p(e),o.a.getHomeComputer().programs.push(i.a.Flight.name)):t&&!t.recvd&&o.a.hacking_skill>=40?p(t):d&&!d.recvd&&o.a.hacking_skill>=50?p(d):n&&!n.recvd&&o.a.hacking_skill>=175?p(n):h&&!h.recvd&&o.a.hacking_skill>=200?p(h):l&&!l.recvd&&o.a.hacking_skill>=350?p(l):c&&!c.recvd&&o.a.hacking_skill>=490?p(c):m&&!m.recvd&&o.a.hacking_skill>=500&&p(m)}function y(e){f[e.filename]=e}h.prototype.toJSON=function(){return Object(d.Generic_toJSON)("Message",this)},h.fromJSON=function(e){return Object(d.Generic_fromJSON)(h,e.data)},d.Reviver.constructors.Message=h;let f={};function b(e){f=JSON.parse(e,d.Reviver)}let v={Jumper0:"j0.msg",Jumper1:"j1.msg",Jumper2:"j2.msg",Jumper3:"j3.msg",Jumper4:"j4.msg",CyberSecTest:"csec-test.msg",NiteSecTest:"nitesec-test.msg",BitRunnersTest:"19dfj3l1nd.msg",RedPill:"icarus.msg"};function _(){f={},y(new h(v.Jumper0,"I know you can sense it. I know you're searching for it. It's why you spend night after night at your computer.

It's real, I've seen it. And I can help you find it. But not right now. You're not ready yet.

Use this program to track your progress

The fl1ght.exe program was added to your home computer

-jump3R")),y(new h(v.Jumper1,"Soon you will be contacted by a hacking group known as CyberSec. They can help you with your search.

You should join them, garner their favor, and exploit them for their Augmentations. But do not trust them. They are not what they seem. No one is.

-jump3R")),y(new h(v.Jumper2,"Do not try to save the world. There is no world to save. If you want to find the truth, worry only about yourself. Ethics and morals will get you killed.

Watch out for a hacking group known as NiteSec.

-jump3R")),y(new h(v.Jumper3,"You must learn to walk before you can run. And you must run before you can fly. Look for the black hand.

I.I.I.I

-jump3R")),y(new h(v.Jumper4,"To find what you are searching for, you must understand the bits. The bits are all around us. The runners will help you.

-jump3R")),y(new h(v.CyberSecTest,"We've been watching you. Your skills are very impressive. But you're wasting your talents. If you join us, you can put your skills to good use and change the world for the better. If you join us, we can unlock your full potential.

But first, you must pass our test. Find and hack our server using the Terminal.

-CyberSec")),y(new h(v.NiteSecTest,"People say that the corrupted governments and corporations rule the world. Yes, maybe they do. But do you know who everyone really fears? People like us. Because they can't hide from us. Because they can't fight shadows and ideas with bullets.

Join us, and people will fear you, too.

Find and hack our hidden server using the Terminal. Then, we will contact you again.

-NiteSec")),y(new h(v.BitRunnersTest,"We know what you are doing. We know what drives you. We know what you are looking for.

We can help you find the answers.

run4theh111z")),y(new h(v.RedPill,"@)(#V%*N)@(#*)*C)@#%*)*V)@#(*%V@)(#VN%*)@#(*%
)@B(*#%)@)M#B*%V)____FIND___#$@)#%(B*)@#(*%B)
@_#(%_@#M(BDSPOMB__THE-CAVE_#)$(*@#$)@#BNBEGB
DFLSMFVMV)#@($*)@#*$MV)@#(*$V)M#(*$)M@(#*VM$)"))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=n(4),i=n(45);t.createPopup=function(e,t){const n=a.createElement("div",{class:"popup-box-container",display:"flex",id:e}),r=a.createElement("div",{class:"popup-box-content",id:`${e}-content`});for(const e of t)r.appendChild(e);return n.appendChild(r),i.getElementById("entire-game-container").appendChild(n),n}},function(e,t,n){"use strict";n.d(t,"a",function(){return $}),n.d(t,"g",function(){return z}),n.d(t,"d",function(){return q}),n.d(t,"f",function(){return K}),n.d(t,"h",function(){return V}),n.d(t,"e",function(){return F}),n.d(t,"b",function(){return W}),n.d(t,"c",function(){return G});var a=n(58),i=n(20),r=n(9),o=n(33),s=n(28),l=n(13),c=n(1),u=n(22),d=n(69),h=n(42),p=n(49),m=n(15),g=n(57),y=n(3),f=n(35),b=n(46),v=n(0),_=n(31),k=n(11),E=(n(19),n(27)),O=(n(25),n(24)),C=n(6),w=n(59),S=n(44),T=n(23),x=n(5),R=n(62),I=(n(29),n(16)),N=(n(8),n(112)),M=n(48),P=n(51),A=n(2),L=n(34),B=n(17),j=n(123).sprintf,D=n(123).vsprintf,F=!1,H=!1,W=!1,G=!1,U=!1,K=!1,q=!1,Y=1,V=1,J={ALL:!0,scan:!0,hack:!0,sleep:!0,disableLog:!0,enableLog:!0,grow:!0,weaken:!0,nuke:!0,brutessh:!0,ftpcrack:!0,relaysmtp:!0,httpworm:!0,sqlinject:!0,run:!0,exec:!0,spawn:!0,kill:!0,killall:!0,scp:!0,getHackingLevel:!0,getServerMoneyAvailable:!0,getServerSecurityLevel:!0,getServerBaseSecurityLevel:!0,getServerMinSecurityLevel:!0,getServerRequiredHackingLevel:!0,getServerMaxMoney:!0,getServerGrowth:!0,getServerNumPortsRequired:!0,getServerRam:!0,buyStock:!0,sellStock:!0,purchaseServer:!0,deleteServer:!0,universityCourse:!0,gymWorkout:!0,travelToCity:!0,purchaseTor:!0,purchaseProgram:!0,stopAction:!0,upgradeHomeRam:!0,workForCompany:!0,applyToCompany:!0,joinFaction:!0,workForFaction:!0,donateToFaction:!0,createProgram:!0,commitCrime:!0,shortStock:!0,sellShort:!0,startAction:!0,upgradeSkill:!0,setTeamSize:!0,joinBladeburnerFaction:!0};function z(){for(var e=0;e1.01*e.ramUsage))throw Object(x.d)(e,"Dynamic RAM usage calculated to be greater than initial RAM usage on fn: "+t+". This is probably because you somehow circumvented the static RAM calculation.

Please don't do that :(

Dynamic RAM Usage: "+e.dynamicRamUsage+"
Static RAM Usage: "+e.ramUsage)},n=function(t,n){return e.loadedFns[t]?0:(e.loadedFns[t]=!0,n)},F=function(t,n=""){var a=Object(k.e)(t);if(null==a)throw Object(x.d)(e,`Invalid IP or hostname passed into ${n}() function`);return a},G=function(t){if(isNaN(t))throw Object(x.d)(e,"Invalid index specified for Hacknet Node: "+t);if(t<0||t>=v.a.hacknetNodes.length)throw Object(x.d)(e,"Index specified for Hacknet Node is out-of-bounds: "+t);return v.a.hacknetNodes[t]},q=function(e,t){return F(t,"getCodingContract").getContract(e)};const z=e=>{const t=Math.round(e);if(isNaN(t)||!Object(N.isPowerOfTwo)(t))throw Error("failed due to invalid ram argument. Must be numeric and a power of 2");if(t>c.a.PurchasedServerMaxRam)throw Error("failed because specified RAM was too high. Maximum RAM on a purchased server is "+c.a.PurchasedServerMaxRam+"GB");return t*c.a.BaseCostFor1GBOfRamServer};return{hacknet:{numNodes:function(){return v.a.hacknetNodes.length},purchaseNode:function(){return Object(g.e)()},getPurchaseNodeCost:function(){return Object(g.c)()},getNodeStats:function(e){var t=G(e);return{name:t.name,level:t.level,ram:t.ram,cores:t.cores,production:t.moneyGainRatePerSecond,timeOnline:t.onlineTimeSeconds,totalProduction:t.totalMoneyGenerated}},upgradeLevel:function(e,t){return G(e).purchaseLevelUpgrade(t)},upgradeRam:function(e,t){return G(e).purchaseRamUpgrade(t)},upgradeCore:function(e,t){return G(e).purchaseCoreUpgrade(t)},getLevelUpgradeCost:function(e,t){return G(e).calculateLevelUpgradeCost(t)},getRamUpgradeCost:function(e,t){return G(e).calculateRamUpgradeCost(t)},getCoreUpgradeCost:function(e,t){return G(e).calculateCoreUpgradeCost(t)}},sprintf:j,vsprintf:D,scan:function(a=e.serverIp,i=!0){if(e.checkingRam)return n("scan",c.a.ScriptScanRamCost);t("scan",c.a.ScriptScanRamCost);var r=Object(k.e)(a);if(null==r)throw Object(x.d)(e,"Invalid IP or hostname passed into scan() command");for(var o=[],s=0;sv.a.hacking_skill)throw e.scriptRef.log("Cannot hack this server ("+r.hostname+") because user's hacking skill is not high enough"),Object(x.d)(e,"Cannot hack this server ("+r.hostname+") because user's hacking skill is not high enough");return null==e.disableLogs.ALL&&null==e.disableLogs.hack&&e.scriptRef.log("Attempting to hack "+a+" in "+o.toFixed(3)+" seconds (t="+i+")"),Object(x.e)(1e3*o,e).then(function(){if(e.env.stopFlag)return Promise.reject(e);var t=Object(h.b)(r),n=Math.random(),a=Object(h.c)(r)*i,o=a/4;if(nr.moneyAvailable&&(s=r.moneyAvailable),r.moneyAvailable-=s,r.moneyAvailable<0&&(r.moneyAvailable=0),v.a.gainMoney(s),e.scriptRef.onlineMoneyMade+=s,v.a.scriptProdSinceLastAug+=s,e.scriptRef.recordHack(r.ip,s,i),v.a.gainHackingExp(a),e.scriptRef.onlineExpGained+=a,null==e.disableLogs.ALL&&null==e.disableLogs.hack&&e.scriptRef.log("Script SUCCESSFULLY hacked "+r.hostname+" for $"+Object(A.formatNumber)(s,2)+" and "+Object(A.formatNumber)(a,4)+" exp (t="+i+")"),r.fortify(c.a.ServerFortifyAmount*Math.min(i,n)),Promise.resolve(s)}return v.a.gainHackingExp(o),e.scriptRef.onlineExpGained+=o,null==e.disableLogs.ALL&&null==e.disableLogs.hack&&e.scriptRef.log("Script FAILED to hack "+r.hostname+". Gained "+Object(A.formatNumber)(o,4)+" exp (t="+i+")"),Promise.resolve(0)})},sleep:function(t){if(e.checkingRam)return 0;if(void 0===t)throw Object(x.d)(e,"sleep() call has incorrect number of arguments. Takes 1 argument");return null==e.disableLogs.ALL&&null==e.disableLogs.sleep&&e.scriptRef.log("Sleeping for "+t+" milliseconds"),Object(x.e)(t,e).then(function(){return Promise.resolve(!0)})},grow:function(a){if(e.checkingRam)return n("grow",c.a.ScriptGrowRamCost);t("grow",c.a.ScriptGrowRamCost);var i=e.scriptRef.threads;if((isNaN(i)||i<1)&&(i=1),void 0===a)throw Object(x.d)(e,"grow() call has incorrect number of arguments. Takes 1 argument");var r=Object(k.e)(a);if(null==r)throw e.scriptRef.log("Cannot grow(). Invalid IP or hostname passed in: "+a),Object(x.d)(e,"Cannot grow(). Invalid IP or hostname passed in: "+a);if(0==r.hasAdminRights)throw e.scriptRef.log("Cannot grow this server ("+r.hostname+") because user does not have root access"),Object(x.d)(e,"Cannot grow this server ("+r.hostname+") because user does not have root access");var o=Object(h.a)(r);return null==e.disableLogs.ALL&&null==e.disableLogs.grow&&e.scriptRef.log("Executing grow() on server "+r.hostname+" in "+Object(A.formatNumber)(o,3)+" seconds (t="+i+")"),Object(x.e)(1e3*o,e).then(function(){if(e.env.stopFlag)return Promise.reject(e);const t=r.moneyAvailable;r.moneyAvailable+=1*i;var n=Object(k.j)(r,450*i);const a=r.moneyAvailable;e.scriptRef.recordGrow(r.ip,i);var o=Object(h.c)(r)*i;return 1==n&&(o=0),null==e.disableLogs.ALL&&null==e.disableLogs.grow&&e.scriptRef.log("Available money on "+r.hostname+" grown by "+Object(A.formatNumber)(a/t*100-100,6)+"%. Gained "+Object(A.formatNumber)(o,4)+" hacking exp (t="+i+")"),e.scriptRef.onlineExpGained+=o,v.a.gainHackingExp(o),Promise.resolve(a/t)})},weaken:function(a){if(e.checkingRam)return n("weaken",c.a.ScriptWeakenRamCost);t("weaken",c.a.ScriptWeakenRamCost);var i=e.scriptRef.threads;if((isNaN(i)||i<1)&&(i=1),void 0===a)throw Object(x.d)(e,"weaken() call has incorrect number of arguments. Takes 1 argument");var r=Object(k.e)(a);if(null==r)throw e.scriptRef.log("Cannot weaken(). Invalid IP or hostname passed in: "+a),Object(x.d)(e,"Cannot weaken(). Invalid IP or hostname passed in: "+a);if(0==r.hasAdminRights)throw e.scriptRef.log("Cannot weaken this server ("+r.hostname+") because user does not have root access"),Object(x.d)(e,"Cannot weaken this server ("+r.hostname+") because user does not have root access");var o=Object(h.f)(r);return null==e.disableLogs.ALL&&null==e.disableLogs.weaken&&e.scriptRef.log("Executing weaken() on server "+r.hostname+" in "+Object(A.formatNumber)(o,3)+" seconds (t="+i+")"),Object(x.e)(1e3*o,e).then(function(){if(e.env.stopFlag)return Promise.reject(e);r.weaken(c.a.ServerWeakenAmount*i),e.scriptRef.recordWeaken(r.ip,i);var t=Object(h.c)(r)*i;return null==e.disableLogs.ALL&&null==e.disableLogs.weaken&&e.scriptRef.log("Server security level on "+r.hostname+" weakened to "+r.hackDifficulty+". Gained "+Object(A.formatNumber)(t,4)+" hacking exp (t="+i+")"),e.scriptRef.onlineExpGained+=t,v.a.gainHackingExp(t),Promise.resolve(c.a.ServerWeakenAmount*i)})},print:function(t){if(e.checkingRam)return 0;if(void 0===t)throw Object(x.d)(e,"print() call has incorrect number of arguments. Takes 1 argument");e.scriptRef.log(t.toString())},tprint:function(t){if(e.checkingRam)return 0;if(void 0===t||null==t)throw Object(x.d)(e,"tprint() call has incorrect number of arguments. Takes 1 argument");t.toString();Object(C.post)(e.scriptRef.filename+": "+t.toString())},clearLog:function(){if(e.checkingRam)return 0;e.scriptRef.clearLog()},disableLog:function(t){if(e.checkingRam)return 0;if(void 0===J[t])throw Object(x.d)(e,"Invalid argument to disableLog: "+t);e.disableLogs[t]=!0,null==e.disableLogs.ALL&&null==e.disableLogs.disableLog&&e.scriptRef.log("Disabled logging for "+t)},enableLog:function(t){if(e.checkingRam)return 0;if(void 0===J[t])throw Object(x.d)(e,"Invalid argument to enableLog: "+t);delete e.disableLogs[t],null==e.disableLogs.ALL&&null==e.disableLogs.enableLog&&e.scriptRef.log("Enabled logging for "+t)},isLogEnabled:function(t){if(e.checkingRam)return 0;if(void 0===J[t])throw Object(x.d)(e,"Invalid argument to isLogEnabled: "+t);return!e.disableLogs[t]},getScriptLogs:function(){return e.checkingRam?0:e.scriptRef.logs.slice()},nuke:function(a){if(e.checkingRam)return n("nuke",c.a.ScriptPortProgramRamCost);if(t("nuke",c.a.ScriptPortProgramRamCost),void 0===a)throw Object(x.d)(e,"Program call has incorrect number of arguments. Takes 1 argument");var i=Object(k.e)(a);if(null==i)throw e.scriptRef.log("Cannot call nuke(). Invalid IP or hostname passed in: "+a),Object(x.d)(e,"Cannot call nuke(). Invalid IP or hostname passed in: "+a);if(!v.a.hasProgram(u.a.NukeProgram.name))throw Object(x.d)(e,"You do not have the NUKE.exe virus!");if(i.openPortCount{if(void 0===a)throw Object(x.d)(e,"spawn() call has incorrect number of arguments. Usage: spawn(scriptname, numThreads, [arg1], [arg2]...)");if(isNaN(i)||i<1)throw Object(x.d)(e,"Invalid argument for thread count passed into run(). Must be numeric and greater than 0");for(var t=[],n=2;n0,o=i.runningScripts.length-1;o>=0;--o)Object(T.d)(i.runningScripts[o],i.ip);return null==e.disableLogs.ALL&&null==e.disableLogs.killall&&e.scriptRef.log("killall(): Killing all scripts on "+i.hostname+". May take a few minutes for the scripts to die"),r},exit:function(){if(e.checkingRam)return 0;var t=Object(k.e)(e.serverIp);if(null==t)throw Object(x.d)(e,"Error getting Server for this script in exit(). This is a bug please contact game dev");Object(T.d)(e.scriptRef,t.ip)?e.scriptRef.log("Exiting..."):e.scriptRef.log("Exit failed(). This is a bug please contact game developer")},scp:function(a,i,r){if(e.checkingRam)return n("scp",c.a.ScriptScpRamCost);if(t("scp",c.a.ScriptScpRamCost),2!==arguments.length&&3!==arguments.length)throw Object(x.d)(e,"ERROR: scp() call has incorrect number of arguments. Takes 2 or 3 arguments");if(a&&a.constructor===Array){var o=!1;return a.forEach(function(t){$(e).scp(t,i,r)&&(o=!0)}),o}if(!a.endsWith(".lit")&&!Object(_.e)(a)&&!a.endsWith("txt"))throw Object(x.d)(e,"ERROR: scp() does not work with this file type. It only works for .script, .lit, and .txt files");var s,l;if(3===arguments.length){if(void 0===a||void 0===i||void 0===r)throw Object(x.d)(e,"ERROR: scp() call has incorrect number of arguments. Takes 2 or 3 arguments");if(null==(s=Object(k.e)(r)))throw Object(x.d)(e,"ERROR: Invalid hostname/ip passed into scp() command: "+ip);if(null==(l=Object(k.e)(i)))throw Object(x.d)(e,"Could not find server ip for this script. This is a bug please contact game developer")}else if(2===arguments.length){if(void 0===a||void 0===i)throw Object(x.d)(e,"ERROR: scp() call has incorrect number of arguments. Takes 2 or 3 arguments");if(null==(s=Object(k.e)(i)))throw Object(x.d)(e,"ERROR: Invalid hostname/ip passed into scp() command: "+ip);if(null==(l=Object(k.e)(e.serverIp)))throw Object(x.d)(e,"Could not find server ip for this script. This is a bug please contact game developer")}if(a.endsWith(".lit")){for(var u=!1,d=0;d=2&&(o=i.toString());for(var s=[],l=0;lr.playerShares&&(i=r.playerShares),0===i)return 0;var o=r.price*i-c.a.StockMarketCommission;v.a.gainMoney(o);var s=(r.price-r.playerAvgPx)*i-c.a.StockMarketCommission;return isNaN(s)&&(s=0),e.scriptRef.onlineMoneyMade+=s,v.a.scriptProdSinceLastAug+=s,r.playerShares-=i,0==r.playerShares&&(r.playerAvgPx=0),I.routing.isOn(I.Page.StockMarket)&&Object(O.p)(r),null==e.disableLogs.ALL&&null==e.disableLogs.sellStock&&e.scriptRef.log("Sold "+Object(A.formatNumber)(i,0)+" shares of "+r.symbol+" at $"+Object(A.formatNumber)(r.price,2)+" per share. Gained $"+Object(A.formatNumber)(o,2)),r.price},shortStock(a,i){if(e.checkingRam)return n("shortStock",c.a.ScriptBuySellStockRamCost);if(t("shortStock",c.a.ScriptBuySellStockRamCost),!v.a.hasTixApiAccess)throw Object(x.d)(e,"You don't have TIX API Access! Cannot use shortStock()");if(8!==v.a.bitNodeN&&!(K&&V>=2))throw Object(x.d)(e,"ERROR: Cannot use shortStock(). You must either be in BitNode-8 or you must have Level 2 of Source-File 8");var r=O.d[a];if(null==r)throw Object(x.d)(e,"ERROR: Invalid stock symbol passed into shortStock()");return Object(O.n)(r,i,e)?r.price:0},sellShort(a,i){if(e.checkingRam)return n("sellShort",c.a.ScriptBuySellStockRamCost);if(t("sellShort",c.a.ScriptBuySellStockRamCost),!v.a.hasTixApiAccess)throw Object(x.d)(e,"You don't have TIX API Access! Cannot use sellShort()");if(8!==v.a.bitNodeN&&!(K&&V>=2))throw Object(x.d)(e,"ERROR: Cannot use sellShort(). You must either be in BitNode-8 or you must have Level 2 of Source-File 8");var r=O.d[a];if(null==r)throw Object(x.d)(e,"ERROR: Invalid stock symbol passed into sellShort()");return Object(O.l)(r,i,e)?r.price:0},placeOrder(a,i,r,o,s){if(e.checkingRam)return n("placeOrder",c.a.ScriptBuySellStockRamCost);if(t("placeOrder",c.a.ScriptBuySellStockRamCost),!v.a.hasTixApiAccess)throw Object(x.d)(e,"You don't have TIX API Access! Cannot use placeOrder()");if(8!==v.a.bitNodeN&&!(K&&V>=3))throw Object(x.d)(e,"ERROR: Cannot use placeOrder(). You must either be in BitNode-8 or have Level 3 of Source-File 8");var l,u,d=O.d[a];if(null==d)throw Object(x.d)(e,"ERROR: Invalid stock symbol passed into placeOrder()");if((o=o.toLowerCase()).includes("limit")&&o.includes("buy"))l=O.a.LimitBuy;else if(o.includes("limit")&&o.includes("sell"))l=O.a.LimitSell;else if(o.includes("stop")&&o.includes("buy"))l=O.a.StopBuy;else{if(!o.includes("stop")||!o.includes("sell"))throw Object(x.d)(e,"ERROR: Invalid Order Type passed into placeOrder()");l=O.a.StopSell}if((s=s.toLowerCase()).includes("l"))u=O.b.Long;else{if(!s.includes("s"))throw Object(x.d)(e,"ERROR: Invalid Position Type passed into placeOrder()");u=O.b.Short}return Object(O.k)(d,i,r,l,u,e)},cancelOrder(a,i,r,o,s){if(e.checkingRam)return n("cancelOrder",c.a.ScriptBuySellStockRamCost);if(t("cancelOrder",c.a.ScriptBuySellStockRamCost),!v.a.hasTixApiAccess)throw Object(x.d)(e,"You don't have TIX API Access! Cannot use cancelOrder()");if(8!==v.a.bitNodeN&&!(K&&V>=3))throw Object(x.d)(e,"ERROR: Cannot use cancelOrder(). You must either be in BitNode-8 or have Level 3 of Source-File 8");var l,u,d=O.d[a];if(null==d)throw Object(x.d)(e,"ERROR: Invalid stock symbol passed into cancelOrder()");if(isNaN(i)||isNaN(r))throw Object(x.d)(e,"ERROR: Invalid shares or price argument passed into cancelOrder(). Must be numeric");if((o=o.toLowerCase()).includes("limit")&&o.includes("buy"))l=O.a.LimitBuy;else if(o.includes("limit")&&o.includes("sell"))l=O.a.LimitSell;else if(o.includes("stop")&&o.includes("buy"))l=O.a.StopBuy;else{if(!o.includes("stop")||!o.includes("sell"))throw Object(x.d)(e,"ERROR: Invalid Order Type passed into placeOrder()");l=O.a.StopSell}if((s=s.toLowerCase()).includes("l"))u=O.b.Long;else{if(!s.includes("s"))throw Object(x.d)(e,"ERROR: Invalid Position Type passed into placeOrder()");u=O.b.Short}var h={stock:d,shares:i,price:r,type:l,pos:u};return Object(O.e)(h,e)},getStockVolatility:function(a){if(e.checkingRam)return n("getStockVolatility",c.a.ScriptBuySellStockRamCost);if(t("getStockVolatility",c.a.ScriptBuySellStockRamCost),!v.a.has4SDataTixApi)throw Object(x.d)(e,"You don't have 4S Market Data TIX API Access! Cannot use getStockVolatility()");var i=O.d[a];if(null==i)throw Object(x.d)(e,"ERROR: Invalid stock symbol passed into getStockVolatility()");return i.mv/100},getStockForecast:function(a){if(e.checkingRam)return n("getStockForecast",c.a.ScriptBuySellStockRamCost);if(t("getStockForecast",c.a.ScriptBuySellStockRamCost),!v.a.has4SDataTixApi)throw Object(x.d)(e,"You don't have 4S Market Data TIX API Access! Cannot use getStockForecast()");var i=O.d[a];if(null==i)throw Object(x.d)(e,"ERROR: Invalid stock symbol passed into getStockForecast()");var r=50;return i.b?r+=i.otlkMag:r-=i.otlkMag,r/100},getPurchasedServerLimit:function(){return e.checkingRam?n("getPurchasedServerLimit",c.a.ScriptGetPurchasedServerLimit):(t("getPurchasedServerLimit",c.a.ScriptGetPurchasedServerLimit),c.a.PurchasedServerLimit)},getPurchasedServerMaxRam:function(){return e.checkingRam?n("getPurchasedServerMaxRam",c.a.ScriptGetPurchasedServerMaxRam):(t("getPurchasedServerMaxRam",c.a.ScriptGetPurchasedServerMaxRam),c.a.PurchasedServerMaxRam)},getPurchasedServerCost:function(a){if(e.checkingRam)return n("getPurchasedServerCost",c.a.ScriptGetPurchaseServerRamCost);t("getPurchasedServerCost",c.a.ScriptGetPurchaseServerRamCost);let i=0;try{i=z(a)}catch(t){return e.scriptRef.log("ERROR: 'getPurchasedServerCost()' "+t.message),""}return i},purchaseServer:function(a,i){if(e.checkingRam)return n("purchaseServer",c.a.ScriptPurchaseServerRamCost);t("purchaseServer",c.a.ScriptPurchaseServerRamCost);var r=String(a);if(""==(r=r.replace(/\s+/g,"")))return e.scriptRef.log("ERROR: Passed empty string for hostname argument of purchaseServer()"),"";if(v.a.purchasedServers.length>=c.a.PurchasedServerLimit)return e.scriptRef.log("ERROR: You have reached the maximum limit of "+c.a.PurchasedServerLimit+" servers. You cannot purchase any more."),"";let o=0;try{o=z(i)}catch(t){return e.scriptRef.log("ERROR: 'purchaseServer()' "+t.message),""}if(v.a.money.lt(o))return e.scriptRef.log("ERROR: Not enough money to purchase server. Need $"+Object(A.formatNumber)(o,2)),"";var s=new k.d({ip:Object(P.a)(),hostname:r,organizationName:"",isConnectedTo:!1,adminRights:!0,purchasedByPlayer:!0,maxRam:i});Object(k.a)(s),v.a.purchasedServers.push(s.ip);var l=v.a.getHomeComputer();return l.serversOnNetwork.push(s.ip),s.serversOnNetwork.push(l.ip),v.a.loseMoney(o),null==e.disableLogs.ALL&&null==e.disableLogs.purchaseServer&&e.scriptRef.log("Purchased new server with hostname "+s.hostname+" for $"+Object(A.formatNumber)(o,2)),s.hostname},deleteServer:function(a){if(e.checkingRam)return n("deleteServer",c.a.ScriptPurchaseServerRamCost);t("deleteServer",c.a.ScriptPurchaseServerRamCost);var i=String(a);i=i.replace(/\s\s+/g,"");var r=Object(k.c)(i);if(null==r)return e.scriptRef.log("ERROR: Could not find server with hostname "+i+". deleteServer() failed"),!1;if(!r.purchasedByPlayer||"home"===r.hostname)return e.scriptRef.log("ERROR: Server "+r.hostname+" is not a purchased server. Cannot be deleted. deleteServer() failed"),!1;var o=r.ip;if(r.isConnectedTo)return e.scriptRef.log("ERROR: deleteServer() failed because you are currently connected to the server you are trying to delete"),!1;if(o===e.serverIp)return e.scriptRef.log("ERROR: Cannot call deleteServer() on self. deleteServer() failed"),!1;if(r.runningScripts.length>0)return e.scriptRef.log("ERROR: Cannot delete server "+r.hostname+" because it still has scripts running."),!1;for(var s=!1,l=0;lc.a.NumNetscriptPorts)throw Object(x.d)(e,"ERROR: Trying to write to invalid port: "+a+". Only ports 1-"+c.a.NumNetscriptPorts+" are valid.");if(null==(a=T.a[a-1])||!(a instanceof R.a))throw Object(x.d)(e,"Could not find port: "+a+". This is a bug contact the game developer");return a.write(i)},tryWrite:function(a,i=""){if(e.checkingRam)return n("tryWrite",c.a.ScriptReadWriteRamCost);if(t("tryWrite",c.a.ScriptReadWriteRamCost),isNaN(a))throw Object(x.d)(e,"Invalid argument passed in for tryWrite: "+a);if((a=Math.round(a))<1||a>c.a.NumNetscriptPorts)throw Object(x.d)(e,"ERROR: tryWrite() called on invalid port: "+a+". Only ports 1-"+c.a.NumNetscriptPorts+" are valid.");if(null==(a=T.a[a-1])||!(a instanceof R.a))throw Object(x.d)(e,"Could not find port: "+a+". This is a bug contact the game developer");return a.tryWrite(i)},read:function(a){if(e.checkingRam)return n("read",c.a.ScriptReadWriteRamCost);if(t("read",c.a.ScriptReadWriteRamCost),isNaN(a)){if(Object(L.isString)(a)){let t=a,n=Object(k.e)(e.serverIp);if(null==n)throw Object(x.d)(e,"Error getting Server for this script in read(). This is a bug please contact game dev");if(Object(_.e)(t)){let n=e.getScriptOnServer(t);return null==n?"":n.code}{let e=Object(w.getTextFile)(t,n);return null!==e?e.text:""}}throw Object(x.d)(e,"Invalid argument passed in for read(): "+a)}if((a=Math.round(a))<1||a>c.a.NumNetscriptPorts)throw Object(x.d)(e,"ERROR: Trying to read from invalid port: "+a+". Only ports 1-"+c.a.NumNetscriptPorts+" are valid.");if(null==(a=T.a[a-1])||!(a instanceof R.a))throw Object(x.d)(e,"ERROR: Could not find port: "+a+". This is a bug contact the game developer");return a.read()},peek:function(a){if(e.checkingRam)return n("peek",c.a.ScriptReadWriteRamCost);if(t("peek",c.a.ScriptReadWriteRamCost),isNaN(a))throw Object(x.d)(e,"ERROR: peek() called with invalid argument. Must be a port number between 1 and "+c.a.NumNetscriptPorts);if((a=Math.round(a))<1||a>c.a.NumNetscriptPorts)throw Object(x.d)(e,"ERROR: peek() called with invalid argument. Must be a port number between 1 and "+c.a.NumNetscriptPorts);if(null==(a=T.a[a-1])||!(a instanceof R.a))throw Object(x.d)(e,"ERROR: Could not find port: "+a+". This is a bug contact the game developer");return a.peek()},clear:function(a){if(e.checkingRam)return n("clear",c.a.ScriptReadWriteRamCost);if(t("clear",c.a.ScriptReadWriteRamCost),!isNaN(a)){if((a=Math.round(a))<1||a>c.a.NumNetscriptPorts)throw Object(x.d)(e,"ERROR: Trying to clear invalid port: "+a+". Only ports 1-"+c.a.NumNetscriptPorts+" are valid");if(null==(a=T.a[a-1])||!(a instanceof R.a))throw Object(x.d)(e,"ERROR: Could not find port: "+a+". This is a bug contact the game developer");return a.clear()}if(!Object(L.isString)(a))throw Object(x.d)(e,"Invalid argument passed in for clear(): "+a);var i=a,r=Object(k.e)(e.serverIp);if(null==r)throw Object(x.d)(e,"Error getting Server for this script in clear(). This is a bug please contact game dev");var o=Object(w.getTextFile)(i,r);return null!=o&&o.write(""),0},getPortHandle:function(a){if(e.checkingRam)return n("getPortHandle",10*c.a.ScriptReadWriteRamCost);if(t("getPortHandle",10*c.a.ScriptReadWriteRamCost),isNaN(a))throw Object(x.d)(e,"ERROR: Invalid argument passed into getPortHandle(). Must be an integer between 1 and "+c.a.NumNetscriptPorts);if((a=Math.round(a))<1||a>c.a.NumNetscriptPorts)throw Object(x.d)(e,"ERROR: getPortHandle() called with invalid port number: "+a+". Only ports 1-"+c.a.NumNetscriptPorts+" are valid");if(null==(a=T.a[a-1])||!(a instanceof R.a))throw Object(x.d)(e,"ERROR: Could not find port: "+a+". This is a bug contact the game developer");return a},rm:function(a){if(e.checkingRam)return n("rm",c.a.ScriptReadWriteRamCost);t("rm",c.a.ScriptReadWriteRamCost);var i=Object(k.e)(e.serverIp);if(null==i)throw Object(x.d)(e,"Error getting Server for this script in clear(). This is a bug please contact game dev");if(a.includes(".exe")){for(var r=0;r{Object(B.a)(),e(!0)}),a.addEventListener("click",()=>{Object(B.a)(),e(!1)}),Object(B.b)(t)})},getFavorToDonate:function(){return e.checkingRam?n("getFavorToDonate",c.a.ScriptGetFavorToDonate):(t("getFavorToDonate",c.a.ScriptGetFavorToDonate),Math.floor(c.a.BaseFavorToDonate*r.BitNodeMultipliers.RepToDonateToFaction))},universityCourse:function(a,i){var r=c.a.ScriptSingularityFn1RamCost;if(4!==v.a.bitNodeN&&(r*=8),e.checkingRam)return n("universityCourse",r);if(t("universityCourse",r),4!=v.a.bitNodeN&&!(H&&Y>=1))throw Object(x.d)(e,"Cannot run universityCourse(). It is a Singularity Function and requires SourceFile-4 (level 1) to run.");if(!b.c){if(v.a.isWorking){var o=v.a.singularityStopWork();null==e.disableLogs.ALL&&null==e.disableLogs.universityCourse&&e.scriptRef.log(o)}var s,l,u;switch(a.toLowerCase()){case y.Locations.AevumSummitUniversity.toLowerCase():if(v.a.city!=y.Locations.Aevum)return e.scriptRef.log("ERROR: You cannot study at Summit University because you are not in Aevum. universityCourse() failed"),!1;v.a.location=y.Locations.AevumSummitUniversity,s=4,l=3;break;case y.Locations.Sector12RothmanUniversity.toLowerCase():if(v.a.city!=y.Locations.Sector12)return e.scriptRef.log("ERROR: You cannot study at Rothman University because you are not in Sector-12. universityCourse() failed"),!1;v.a.location=y.Locations.Sector12RothmanUniversity,s=3,l=2;break;case y.Locations.VolhavenZBInstituteOfTechnology.toLowerCase():if(v.a.city!=y.Locations.Volhaven)return e.scriptRef.log("ERROR: You cannot study at ZB Institute of Technology because you are not in Volhaven. universityCourse() failed"),!1;v.a.location=y.Locations.VolhavenZBInstituteOfTechnology,s=5,l=4;break;default:return e.scriptRef.log("Invalid university name: "+a+". universityCourse() failed"),!1}switch(i.toLowerCase()){case"Study Computer Science".toLowerCase():u=c.a.ClassStudyComputerScience;break;case"Data Structures".toLowerCase():u=c.a.ClassDataStructures;break;case"Networks".toLowerCase():u=c.a.ClassNetworks;break;case"Algorithms".toLowerCase():u=c.a.ClassAlgorithms;break;case"Management".toLowerCase():u=c.a.ClassManagement;break;case"Leadership".toLowerCase():u=c.a.ClassLeadership;break;default:return e.scriptRef.log("Invalid class name: "+i+". universityCourse() failed"),!1}return v.a.startClass(s,l,u),null==e.disableLogs.ALL&&null==e.disableLogs.universityCourse&&e.scriptRef.log("Started "+u+" at "+a),!0}e.scriptRef.log("ERROR: universityCourse() failed because you are in the middle of a mission.")},gymWorkout:function(a,i){var r=c.a.ScriptSingularityFn1RamCost;if(4!==v.a.bitNodeN&&(r*=8),e.checkingRam)return n("gymWorkout",r);if(t("gymWorkout",r),4!=v.a.bitNodeN&&!(H&&Y>=1))throw Object(x.d)(e,"Cannot run gymWorkout(). It is a Singularity Function and requires SourceFile-4 (level 1) to run.");if(!b.c){if(v.a.isWorking){var o=v.a.singularityStopWork();null==e.disableLogs.ALL&&null==e.disableLogs.gymWorkout&&e.scriptRef.log(o)}var s,l;switch(a.toLowerCase()){case y.Locations.AevumCrushFitnessGym.toLowerCase():if(v.a.city!=y.Locations.Aevum)return e.scriptRef.log("ERROR: You cannot workout at Crush Fitness because you are not in Aevum. gymWorkout() failed"),!1;v.a.location=y.Locations.AevumCrushFitnessGym,s=3,l=2;break;case y.Locations.AevumSnapFitnessGym.toLowerCase():if(v.a.city!=y.Locations.Aevum)return e.scriptRef.log("ERROR: You cannot workout at Snap Fitness because you are not in Aevum. gymWorkout() failed"),!1;v.a.location=y.Locations.AevumSnapFitnessGym,s=10,l=5;break;case y.Locations.Sector12IronGym.toLowerCase():if(v.a.city!=y.Locations.Sector12)return e.scriptRef.log("ERROR: You cannot workout at Iron Gym because you are not in Sector-12. gymWorkout() failed"),!1;v.a.location=y.Locations.Sector12IronGym,s=1,l=1;break;case y.Locations.Sector12PowerhouseGym.toLowerCase():if(v.a.city!=y.Locations.Sector12)return e.scriptRef.log("ERROR: You cannot workout at Powerhouse Gym because you are not in Sector-12. gymWorkout() failed"),!1;v.a.location=y.Locations.Sector12PowerhouseGym,s=20,l=10;break;case y.Locations.VolhavenMilleniumFitnessGym:if(v.a.city!=y.Locations.Volhaven)return e.scriptRef.log("ERROR: You cannot workout at Millenium Fitness Gym because you are not in Volhaven. gymWorkout() failed"),!1;v.a.location=y.Locations.VolhavenMilleniumFitnessGym,s=7,l=4;break;default:return e.scriptRef.log("Invalid gym name: "+a+". gymWorkout() failed"),!1}switch(i.toLowerCase()){case"strength".toLowerCase():case"str".toLowerCase():v.a.startClass(s,l,c.a.ClassGymStrength);break;case"defense".toLowerCase():case"def".toLowerCase():v.a.startClass(s,l,c.a.ClassGymDefense);break;case"dexterity".toLowerCase():case"dex".toLowerCase():v.a.startClass(s,l,c.a.ClassGymDexterity);break;case"agility".toLowerCase():case"agi".toLowerCase():v.a.startClass(s,l,c.a.ClassGymAgility);break;default:return e.scriptRef.log("Invalid stat: "+i+". gymWorkout() failed"),!1}return null==e.disableLogs.ALL&&null==e.disableLogs.gymWorkout&&e.scriptRef.log("Started training "+i+" at "+a),!0}e.scriptRef.log("ERROR: gymWorkout() failed because you are in the middle of a mission.")},travelToCity(a){var i=c.a.ScriptSingularityFn1RamCost;if(4!==v.a.bitNodeN&&(i*=8),e.checkingRam)return n("travelToCity",i);if(t("travelToCity",i),4!=v.a.bitNodeN&&!(H&&Y>=1))throw Object(x.d)(e,"Cannot run travelToCity(). It is a Singularity Function and requires SourceFile-4 (level 1) to run.");switch(a){case y.Locations.Aevum:case y.Locations.Chongqing:case y.Locations.Sector12:case y.Locations.NewTokyo:case y.Locations.Ishima:case y.Locations.Volhaven:if(v.a.money.lt(c.a.TravelCost))throw e.scriptRef.log("ERROR: not enough money to travel with travelToCity()."),Object(x.d)(e,"ERROR: not enough money to travel with travelToCity().");return v.a.loseMoney(c.a.TravelCost),v.a.city=a,null==e.disableLogs.ALL&&null==e.disableLogs.travelToCity&&e.scriptRef.log("Traveled to "+a),!0;default:return e.scriptRef.log("ERROR: Invalid city name passed into travelToCity()."),!1}},purchaseTor(){var a=c.a.ScriptSingularityFn1RamCost;if(4!==v.a.bitNodeN&&(a*=8),e.checkingRam)return n("purchaseTor",a);if(t("purchaseTor",a),4!=v.a.bitNodeN&&!(H&&Y>=1))throw Object(x.d)(e,"Cannot run purchaseTor(). It is a Singularity Function and requires SourceFile-4 (level 1) to run.");if(null!=E.a["Darkweb Server"])return e.scriptRef.log("You already have a TOR router! purchaseTor() failed"),!1;if(v.a.money.lt(c.a.TorRouterCost))return e.scriptRef.log("ERROR: You cannot afford to purchase a Tor router. purchaseTor() failed"),!1;v.a.loseMoney(c.a.TorRouterCost);var i=new k.d({ip:Object(P.a)(),hostname:"darkweb",organizationName:"",isConnectedTo:!1,adminRights:!1,purchasedByPlayer:!1,maxRam:1});Object(k.a)(i),E.a.addIp("Darkweb Server",i.ip);const r=document.getElementById("location-purchase-tor");return r.setAttribute("class","a-link-button-bought"),r.innerHTML="TOR Router - Purchased",v.a.getHomeComputer().serversOnNetwork.push(i.ip),i.serversOnNetwork.push(v.a.getHomeComputer().ip),v.a.gainIntelligenceExp(c.a.IntelligenceSingFnBaseExpGain),null==e.disableLogs.ALL&&null==e.disableLogs.purchaseTor&&e.scriptRef.log("You have purchased a Tor router!"),!0},purchaseProgram(a){var i=c.a.ScriptSingularityFn1RamCost;if(4!==v.a.bitNodeN&&(i*=8),e.checkingRam)return n("purchaseProgram",i);if(t("purchaseProgram",i),4!=v.a.bitNodeN&&!(H&&Y>=1))throw Object(x.d)(e,"Cannot run purchaseProgram(). It is a Singularity Function and requires SourceFile-4 (level 1) to run.");if(null==E.a["Darkweb Server"])return e.scriptRef.log("ERROR: You do not have the TOR router. purchaseProgram() failed."),!1;a=a.toLowerCase();let r=null;for(const e in d.a){const t=d.a[e];t.program.toLowerCase()==a&&(r=t)}return null==r?(e.scriptRef.log("ERROR: Invalid program name passed into purchaseProgram()."),!1):v.a.money.lt(r.price)?(e.scriptRef.log("Not enough money to purchase "+r.program),!1):v.a.hasProgram(r.program)?(e.scriptRef.log("You already have the "+r.program+" program"),!0):(v.a.loseMoney(r.price),v.a.getHomeComputer().programs.push(r.program),null==e.disableLogs.ALL&&null==e.disableLogs.purchaseProgram&&e.scriptRef.log("You have purchased the "+r.program+" program. The new program can be found on your home computer."),!0)},getStats:function(){var a=c.a.ScriptSingularityFn1RamCost/4;if(4!==v.a.bitNodeN&&(a*=8),e.checkingRam)return n("getStats",a);if(t("getStats",a),4!=v.a.bitNodeN&&!(H&&Y>=1))throw Object(x.d)(e,"Cannot run getStats(). It is a Singularity Function and requires SourceFile-4 (level 1) to run.");return{hacking:v.a.hacking_skill,strength:v.a.strength,defense:v.a.defense,dexterity:v.a.dexterity,agility:v.a.agility,charisma:v.a.charisma,intelligence:v.a.intelligence}},getCharacterInformation:function(){var a=c.a.ScriptSingularityFn1RamCost/4;if(4!==v.a.bitNodeN&&(a*=8),e.checkingRam)return n("getCharacterInformation",a);if(t("getCharacterInformation",a),4!=v.a.bitNodeN&&!(H&&Y>=1))throw Object(x.d)(e,"Cannot run getCharacterInformation(). It is a Singularity Function and requires SourceFile-4 (level 1) to run.");var i="";return v.a.companyPosition instanceof l.c&&(i=v.a.companyPosition.positionName),{bitnode:v.a.bitNodeN,company:v.a.companyName,jobTitle:i,city:v.a.city,factions:v.a.factions.slice(),tor:E.a.hasOwnProperty("Darkweb Server"),timeWorked:v.a.timeWorked,workHackExpGain:v.a.workHackExpGained,workStrExpGain:v.a.workStrExpGained,workDefExpGain:v.a.workDefExpGained,workDexExpGain:v.a.workDexExpGained,workAgiExpGain:v.a.workAgiExpGained,workChaExpGain:v.a.workChaExpGained,workRepGain:v.a.workRepGained,workMoneyGain:v.a.workMoneyGained}},isBusy:function(){var a=c.a.ScriptSingularityFn1RamCost/4;if(4!==v.a.bitNodeN&&(a*=8),e.checkingRam)return n("isBusy",a);if(t("isBusy",a),4!=v.a.bitNodeN&&!(H&&Y>=1))throw Object(x.d)(e,"Cannot run isBusy(). It is a Singularity Function and requires SourceFile-4 (level 1) to run.");return v.a.isWorking},stopAction:function(){var a=c.a.ScriptSingularityFn1RamCost/2;if(4!==v.a.bitNodeN&&(a*=8),e.checkingRam)return n("stopAction",a);if(t("stopAction",a),4!=v.a.bitNodeN&&!(H&&Y>=1))throw Object(x.d)(e,"Cannot run stopAction(). It is a Singularity Function and requires SourceFile-4 (level 1) to run.");if(v.a.isWorking){var i=v.a.singularityStopWork();return null==e.disableLogs.ALL&&null==e.disableLogs.stopAction&&e.scriptRef.log(i),!0}return!1},upgradeHomeRam:function(){var a=c.a.ScriptSingularityFn2RamCost;if(4!==v.a.bitNodeN&&(a*=8),e.checkingRam)return n("upgradeHomeRam",a);if(t("upgradeHomeRam",a),4!=v.a.bitNodeN&&!(H&&Y>=2))throw Object(x.d)(e,"Cannot run upgradeHomeRam(). It is a Singularity Function and requires SourceFile-4 (level 2) to run.");const i=v.a.getUpgradeHomeRamCost();if(v.a.money.lt(i))return e.scriptRef.log("ERROR: upgradeHomeRam() failed because you don't have enough money"),!1;var r=v.a.getHomeComputer();return r.maxRam*=2,v.a.loseMoney(i),v.a.gainIntelligenceExp(c.a.IntelligenceSingFnBaseExpGain),null==e.disableLogs.ALL&&null==e.disableLogs.upgradeHomeRam&&e.scriptRef.log("Purchased additional RAM for home computer! It now has "+r.maxRam+"GB of RAM."),!0},getUpgradeHomeRamCost:function(){var a=c.a.ScriptSingularityFn2RamCost/2;if(4!==v.a.bitNodeN&&(a*=8),e.checkingRam)return n("getUpgradeHomeRamCost",a);if(t("getUpgradeHomeRamCost",a),4!=v.a.bitNodeN&&!(H&&Y>=2))throw Object(x.d)(e,"Cannot run getUpgradeHomeRamCost(). It is a Singularity Function and requires SourceFile-4 (level 2) to run.");return v.a.getUpgradeHomeRamCost()},workForCompany:function(){var a=c.a.ScriptSingularityFn2RamCost;if(4!==v.a.bitNodeN&&(a*=8),e.checkingRam)return n("workForCompany",a);if(t("workForCompany",a),4!=v.a.bitNodeN&&!(H&&Y>=2))throw Object(x.d)(e,"Cannot run workForCompany(). It is a Singularity Function and requires SourceFile-4 (level 2) to run.");if(!b.c){if(""==v.a.companyPosition||!(v.a.companyPosition instanceof l.c))return e.scriptRef.log("ERROR: workForCompany() failed because you do not have a job"),!1;if(v.a.isWorking){var i=v.a.singularityStopWork();null==e.disableLogs.ALL&&null==e.disableLogs.workForCompany&&e.scriptRef.log(i)}return v.a.companyPosition.isPartTimeJob()?v.a.startWorkPartTime():v.a.startWork(),null==e.disableLogs.ALL&&null==e.disableLogs.workForCompany&&e.scriptRef.log("Began working at "+v.a.companyName+" as a "+v.a.companyPosition.positionName),!0}e.scriptRef.log("ERROR: workForCompany() failed because you are in the middle of a mission.")},applyToCompany:function(a,i){var r,o=c.a.ScriptSingularityFn2RamCost;if(4!==v.a.bitNodeN&&(o*=8),e.checkingRam)return n("applyToCompany",o);if(t("applyToCompany",o),4!=v.a.bitNodeN&&!(H&&Y>=2))throw Object(x.d)(e,"Cannot run applyToCompany(). It is a Singularity Function and requires SourceFile-4 (level 2) to run.");if(!Object(l.e)(a))return e.scriptRef.log("ERROR: applyToCompany() failed because specified company "+a+" does not exist."),!1;switch(v.a.location=a,i.toLowerCase()){case"software":r=v.a.applyForSoftwareJob(!0);break;case"software consultant":r=v.a.applyForSoftwareConsultantJob(!0);break;case"it":r=v.a.applyForItJob(!0);break;case"security engineer":r=v.a.applyForSecurityEngineerJob(!0);break;case"network engineer":r=v.a.applyForNetworkEngineerJob(!0);break;case"business":r=v.a.applyForBusinessJob(!0);break;case"business consultant":r=v.a.applyForBusinessConsultantJob(!0);break;case"security":r=v.a.applyForSecurityJob(!0);break;case"agent":r=v.a.applyForAgentJob(!0);break;case"employee":r=v.a.applyForEmployeeJob(!0);break;case"part-time employee":r=v.a.applyForPartTimeEmployeeJob(!0);break;case"waiter":r=v.a.applyForWaiterJob(!0);break;case"part-time waiter":r=v.a.applyForPartTimeWaiterJob(!0);break;default:return e.scriptRef.log("ERROR: Invalid job passed into applyToCompany: "+i+". applyToCompany() failed"),!1}return Object(L.isString)(r)?(e.scriptRef.log(r),!1):(r?null==e.disableLogs.ALL&&null==e.disableLogs.applyToCompany&&e.scriptRef.log("You were offered a new job at "+a+" as a "+v.a.companyPosition.positionName):null==e.disableLogs.ALL&&null==e.disableLogs.applyToCompany&&e.scriptRef.log("You failed to get a new job/promotion at "+a+" in the "+i+" field."),r)},getCompanyRep:function(a){var i=c.a.ScriptSingularityFn2RamCost/2;if(4!==v.a.bitNodeN&&(i*=8),e.checkingRam)return n("getCompanyRep",i);if(t("getCompanyRep",i),4!=v.a.bitNodeN&&!(H&&Y>=2))throw Object(x.d)(e,"Cannot run getCompanyRep(). It is a Singularity Function and requires SourceFile-4 (level 2) to run.");var r=l.a[a];return null!=r&&r instanceof l.b?r.playerReputation:(e.scriptRef.log("ERROR: Invalid companyName passed into getCompanyRep(): "+a),-1)},getCompanyFavor:function(a){var i=c.a.ScriptSingularityFn2RamCost/4;if(4!==v.a.bitNodeN&&(i*=8),e.checkingRam)return n("getCompanyFavor",i);if(t("getCompanyFavor",i),4!=v.a.bitNodeN&&!(H&&Y>=2))throw Object(x.d)(e,"Cannot run getCompanyFavor(). It is a Singularity Function and requires SourceFile-4 (level 2) to run.");var r=l.a[a];return null!=r&&r instanceof l.b?r.favor:(e.scriptRef.log("ERROR: Invalid companyName passed into getCompanyFavor(): "+a),-1)},getCompanyFavorGain:function(a){var i=c.a.ScriptSingularityFn2RamCost/4;if(4!==v.a.bitNodeN&&(i*=8),e.checkingRam)return n("getCompanyFavorGain",i);if(t("getCompanyFavorGain",i),4!=v.a.bitNodeN&&!(H&&Y>=2))throw Object(x.d)(e,"Cannot run getCompanyFavorGain(). It is a Singularity Function and requires SourceFile-4 (level 2) to run.");var r=l.a[a];return null!=r&&r instanceof l.b?r.getFavorGain()[0]:(e.scriptRef.log("ERROR: Invalid companyName passed into getCompanyFavorGain(): "+a),-1)},checkFactionInvitations:function(){var a=c.a.ScriptSingularityFn2RamCost;if(4!==v.a.bitNodeN&&(a*=8),e.checkingRam)return n("checkFactionInvitations",a);if(t("checkFactionInvitations",a),4!=v.a.bitNodeN&&!(H&&Y>=2))throw Object(x.d)(e,"Cannot run checkFactionInvitations(). It is a Singularity Function and requires SourceFile-4 (level 2) to run.");return v.a.factionInvitations.slice()},joinFaction:function(a){var i=c.a.ScriptSingularityFn2RamCost;if(4!==v.a.bitNodeN&&(i*=8),e.checkingRam)return n("joinFaction",i);if(t("joinFaction",i),4!=v.a.bitNodeN&&!(H&&Y>=2))throw Object(x.d)(e,"Cannot run joinFaction(). It is a Singularity Function and requires SourceFile-4 (level 2) to run.");if(!Object(m.d)(a))return e.scriptRef.log("ERROR: Faction specified in joinFaction() does not exist."),!1;if(!v.a.factionInvitations.includes(a))return e.scriptRef.log("ERROR: Cannot join "+a+" Faction because you have not been invited. joinFaction() failed"),!1;var r=m.b[a];Object(m.h)(r);for(var o=0;o=2))throw Object(x.d)(e,"Cannot run workForFaction(). It is a Singularity Function and requires SourceFile-4 (level 2) to run.");if(v.a.inGang()&&void 0!==p.a[a])e.scriptRef.log("ERROR: Faction specified in workForFaction() does not offer work at the moment.");else{if(!b.c){if(!Object(m.d)(a))return e.scriptRef.log("ERROR: Faction specified in workForFaction() does not exist."),!1;if(!v.a.factions.includes(a))return e.scriptRef.log("ERROR: workForFaction() failed because you are not a member of "+a),!1;if(v.a.isWorking){var o=v.a.singularityStopWork();null==e.disableLogs.ALL&&null==e.disableLogs.workForFaction&&e.scriptRef.log(o)}var s=m.b[a];switch(i.toLowerCase()){case"hacking":case"hacking contracts":case"hackingcontracts":return["Illuminati","Daedalus","The Covenant","ECorp","MegaCorp","Bachman & Associates","Blade Industries","NWO","Clarke Incorporated","OmniTek Incorporated","Four Sigma","KuaiGong International","Fulcrum Secret Technologies","BitRunners","The Black Hand","NiteSec","Chongqing","Sector-12","New Tokyo","Aevum","Ishima","Volhaven","Speakers for the Dead","The Dark Army","The Syndicate","Silhouette","Netburners","Tian Di Hui","CyberSec"].includes(s.name)?(v.a.startFactionHackWork(s),e.scriptRef.log("Started carrying out hacking contracts for "+s.name),!0):(e.scriptRef.log("ERROR: Cannot carry out hacking contracts for "+s.name+". workForFaction() failed"),!1);case"field":case"fieldwork":case"field work":return["Illuminati","Daedalus","The Covenant","ECorp","MegaCorp","Bachman & Associates","Blade Industries","NWO","Clarke Incorporated","OmniTek Incorporated","Four Sigma","KuaiGong International","The Black Hand","Chongqing","Sector-12","New Tokyo","Aevum","Ishima","Volhaven","Speakers for the Dead","The Dark Army","The Syndicate","Silhouette","Tetrads","Slum Snakes"].includes(s.name)?(v.a.startFactionFieldWork(s),e.scriptRef.log("Started carrying out field missions for "+s.name),!0):(e.scriptRef.log("ERROR: Cannot carry out field missions for "+s.name+". workForFaction() failed"),!1);case"security":case"securitywork":case"security work":return["ECorp","MegaCorp","Bachman & Associates","Blade Industries","NWO","Clarke Incorporated","OmniTek Incorporated","Four Sigma","KuaiGong International","Fulcrum Secret Technologies","Chongqing","Sector-12","New Tokyo","Aevum","Ishima","Volhaven","Speakers for the Dead","The Syndicate","Tetrads","Slum Snakes","Tian Di Hui"].includes(s.name)?(v.a.startFactionSecurityWork(s),e.scriptRef.log("Started serving as security details for "+s.name),!0):(e.scriptRef.log("ERROR: Cannot serve as security detail for "+s.name+". workForFaction() failed"),!1);default:e.scriptRef.log("ERROR: Invalid work type passed into workForFaction(): "+i)}return!0}e.scriptRef.log("ERROR: workForFaction() failed because you are in the middle of a mission.")}},getFactionRep:function(a){var i=c.a.ScriptSingularityFn2RamCost/4;if(4!==v.a.bitNodeN&&(i*=8),e.checkingRam)return n("getFactionRep",i);if(t("getFactionRep",i),4!=v.a.bitNodeN&&!(H&&Y>=2))throw Object(x.d)(e,"Cannot run getFactionRep(). It is a Singularity Function and requires SourceFile-4 (level 2) to run.");return Object(m.d)(a)?m.b[a].playerReputation:(e.scriptRef.log("ERROR: Faction specified in getFactionRep() does not exist."),-1)},getFactionFavor:function(a){var i=c.a.ScriptSingularityFn2RamCost;if(4!==v.a.bitNodeN&&(i*=8),e.checkingRam)return n("getFactionFavor",i);if(t("getFactionFavor",i),4!=v.a.bitNodeN&&!(H&&Y>=2))throw Object(x.d)(e,"Cannot run getFactionFavor(). It is a Singularity Function and requires SourceFile-4 (level 2) to run.");return Object(m.d)(a)?m.b[a].favor:(e.scriptRef.log("ERROR: Faction specified in getFactionFavor() does not exist."),-1)},getFactionFavorGain:function(a){var i=c.a.ScriptSingularityFn2RamCost;if(4!==v.a.bitNodeN&&(i*=8),e.checkingRam)return n("getFactionFavorGain",i);if(t("getFactionFavorGain",i),4!=v.a.bitNodeN&&!(H&&Y>=2))throw Object(x.d)(e,"Cannot run getFactionFavorGain(). It is a Singularity Function and requires SourceFile-4 (level 2) to run.");return Object(m.d)(a)?m.b[a].getFavorGain()[0]:(e.scriptRef.log("ERROR: Faction specified in getFactionFavorGain() does not exist."),-1)},donateToFaction:function(a,i){var o=c.a.ScriptSingularityFn3RamCost;if(4!==v.a.bitNodeN&&(o*=8),e.checkingRam)return n("donateToFaction",o);if(t("donateToFaction",o),4!=v.a.bitNodeN&&!(H&&Y>=3))throw Object(x.d)(e,"Cannot run donateToFaction(). It is a Singularity Function and requires SourceFile-4 (level 3) to run.");if(!Object(m.d)(a))return e.log(`ERROR: Faction specified in donateToFaction() does not exist: ${a}`),!1;if("number"!=typeof i||i<=0)return e.log(`ERROR: Invalid donation amount specified in donateToFaction(): ${i}. Must be numeric and positive`),!1;if(v.a.money.lt(i))return e.log(`ERROR: You do not have enough money to donate $${i} to ${a}`),!1;var s=Math.round(c.a.BaseFavorToDonate*r.BitNodeMultipliers.RepToDonateToFaction);if(m.b[a].favor=3))throw Object(x.d)(e,"Cannot run createProgram(). It is a Singularity Function and requires SourceFile-4 (level 3) to run.");if(b.c)return void e.scriptRef.log("ERROR: createProgram() failed because you are in the middle of a mission.");if(v.a.isWorking){var r=v.a.singularityStopWork();null==e.disableLogs.ALL&&null==e.disableLogs.createProgram&&e.scriptRef.log(r)}a=a.toLowerCase();let o=null;for(const e in u.a)u.a[e].name.toLowerCase()==a&&(o=u.a[e]);return null==o?(e.scriptRef.log("ERROR: createProgram() failed because the specified program does not exist: "+a),!1):v.a.hasProgram(o.name)?(e.scriptRef.log("ERROR: createProgram() failed because you already have the "+o.name+" program"),!1):o.create.req()?(v.a.startCreateProgramWork(o.name,o.create.time,o.create.level),null==e.disableLogs.ALL&&null==e.disableLogs.createProgram&&e.scriptRef.log("Began creating program: "+a),!0):(e.scriptRef.log("ERROR: createProgram() failed because hacking level is too low to create "+o.name+" (level "+o.create.level+" req)"),!1)},commitCrime:function(a){var i=c.a.ScriptSingularityFn3RamCost;if(4!==v.a.bitNodeN&&(i*=8),e.checkingRam)return n("commitCrime",i);if(t("commitCrime",i),4!=v.a.bitNodeN&&!(H&&Y>=3))throw Object(x.d)(e,"Cannot run commitCrime(). It is a Singularity Function and requires SourceFile-4 (level 3) to run.");if(b.c)return void e.scriptRef.log("ERROR: commitCrime() failed because you are in the middle of a mission.");if(v.a.isWorking){var r=v.a.singularityStopWork();null==e.disableLogs.ALL&&null==e.disableLogs.commitCrime&&e.scriptRef.log(r)}switch(v.a.city){case y.Locations.Aevum:v.a.location=y.Locations.AevumSlums;break;case y.Locations.Chongqing:v.a.location=y.Locations.ChongqingSlums;break;case y.Locations.Sector12:v.a.location=y.Locations.Sector12Slums;break;case y.Locations.NewTokyo:v.a.location=y.Locations.NewTokyoSlums;break;case y.Locations.Ishima:v.a.location=y.Locations.IshimaSlums;break;case y.Locations.Volhaven:v.a.location=y.Locations.VolhavenSlums;break;default:console.log("Invalid Player.city value")}const s=Object(o.c)(a.toLowerCase());if(null==s)throw Object(x.d)(e,"Invalid crime passed into commitCrime(): "+a);return null==e.disableLogs.ALL&&null==e.disableLogs.commitCrime&&e.scriptRef.log("Attempting to commit crime: "+s.name+"..."),s.commit(c.a.CrimeSingFnDivider,{workerscript:e})},getCrimeChance:function(a){var i=c.a.ScriptSingularityFn3RamCost;if(4!==v.a.bitNodeN&&(i*=8),e.checkingRam)return n("getCrimeChance",i);if(t("getCrimeChance",i),4!=v.a.bitNodeN&&!(H&&Y>=3))throw Object(x.d)(e,"Cannot run getCrimeChance(). It is a Singularity Function and requires SourceFile-4 (level 3) to run.");const r=Object(o.c)(a.toLowerCase());if(null==r)throw Object(x.d)(e,"Invalid crime passed into getCrimeChance(): "+r);return r.successRate()},getOwnedAugmentations:function(a=!1){var i=c.a.ScriptSingularityFn3RamCost;if(4!==v.a.bitNodeN&&(i*=8),e.checkingRam)return n("getOwnedAugmentations",i);if(t("getOwnedAugmentations",i),4!=v.a.bitNodeN&&!(H&&Y>=3))throw Object(x.d)(e,"Cannot run getOwnedAugmentations(). It is a Singularity Function and requires SourceFile-4 (level 3) to run.");for(var r=[],o=0;o=3))throw Object(x.d)(e,"Cannot run getOwnedSourceFiles(). It is a Singularity Function and requires SourceFile-4 (level 3) to run.");let i=[];for(let e=0;e=3))throw Object(x.d)(e,"Cannot run getAugmentationsFromFaction(). It is a Singularity Function and requires SourceFile-4 (level 3) to run.");if(!Object(m.d)(a))return e.scriptRef.log("ERROR: getAugmentationsFromFaction() failed. Invalid faction name passed in (this is case-sensitive): "+a),[];for(var r=m.b[a],o=[],s=0;s=3))throw Object(x.d)(e,"Cannot run getAugmentationCost(). It is a Singularity Function and requires SourceFile-4 (level 3) to run.");if(!Object(i.f)(a))return e.scriptRef.log("ERROR: getAugmentationCost() failed. Invalid Augmentation name passed in (note: this is case-sensitive): "+a),[-1,-1];var o=i.c[a];return[o.baseRepRequirement,o.baseCost]},purchaseAugmentation:function(a,r){var o=c.a.ScriptSingularityFn3RamCost;if(4!==v.a.bitNodeN&&(o*=8),e.checkingRam)return n("purchaseAugmentation",o);if(t("purchaseAugmentation",o),4!=v.a.bitNodeN&&!(H&&Y>=3))throw Object(x.d)(e,"Cannot run purchaseAugmentation(). It is a Singularity Function and requires SourceFile-4 (level 3) to run.");var s=m.b[a];if(null==s||!(s instanceof m.a))return e.scriptRef.log("ERROR: purchaseAugmentation() failed because of invalid faction name: "+a),!1;if(!s.augmentations.includes(r))return e.scriptRef.log("ERROR: purchaseAugmentation() failed because the faction "+a+" does not contain the "+r+" augmentation"),!1;var l=i.c[r];if(null==l||!(l instanceof i.a))return e.scriptRef.log("ERROR: purchaseAugmentation() failed because of invalid augmentation name: "+r),!1;var u=!1;if(l.name===i.b.NeuroFluxGovernor&&(u=!0),!u){for(var d=0;d=3))throw Object(x.d)(e,"Cannot run installAugmentations(). It is a Singularity Function and requires SourceFile-4 (level 3) to run.");return 0===v.a.queuedAugmentations.length?(e.scriptRef.log("ERROR: installAugmentations() failed because you do not have any Augmentations to be installed"),!1):(v.a.gainIntelligenceExp(c.a.IntelligenceSingFnBaseExpGain),e.scriptRef.log("Installing Augmentations. This will cause this script to be killed"),Object(i.i)(a),!0)},bladeburner:{getContractNames:function(){if(e.checkingRam)return n("getContractNames",c.a.ScriptBladeburnerApiBaseRamCost/10);if(t("getContractNames",c.a.ScriptBladeburnerApiBaseRamCost/10),v.a.bladeburner instanceof s.a&&(7===v.a.bitNodeN||U))return v.a.bladeburner.getContractNamesNetscriptFn();throw Object(x.d)(e,"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")},getOperationNames:function(){if(e.checkingRam)return n("getOperationNames",c.a.ScriptBladeburnerApiBaseRamCost/10);if(t("getOperationNames",c.a.ScriptBladeburnerApiBaseRamCost/10),v.a.bladeburner instanceof s.a&&(7===v.a.bitNodeN||U))return v.a.bladeburner.getOperationNamesNetscriptFn();throw Object(x.d)(e,"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")},getBlackOpNames:function(){if(e.checkingRam)return n("getBlackOpNames",c.a.ScriptBladeburnerApiBaseRamCost/10);if(t("getBlackOpNames",c.a.ScriptBladeburnerApiBaseRamCost/10),v.a.bladeburner instanceof s.a&&(7===v.a.bitNodeN||U))return v.a.bladeburner.getBlackOpNamesNetscriptFn();throw Object(x.d)(e,"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")},getGeneralActionNames:function(){if(e.checkingRam)return n("getGeneralActionNames",c.a.ScriptBladeburnerApiBaseRamCost/10);if(t("getGeneralActionNames",c.a.ScriptBladeburnerApiBaseRamCost/10),v.a.bladeburner instanceof s.a&&(7===v.a.bitNodeN||U))return v.a.bladeburner.getGeneralActionNamesNetscriptFn();throw Object(x.d)(e,"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")},getSkillNames:function(){if(e.checkingRam)return n("getSkillNames",c.a.ScriptBladeburnerApiBaseRamCost/10);if(t("getSkillNames",c.a.ScriptBladeburnerApiBaseRamCost/10),v.a.bladeburner instanceof s.a&&(7===v.a.bitNodeN||U))return v.a.bladeburner.getSkillNamesNetscriptFn();throw Object(x.d)(e,"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")},startAction:function(a="",i=""){if(e.checkingRam)return n("startAction",c.a.ScriptBladeburnerApiBaseRamCost);if(t("startAction",c.a.ScriptBladeburnerApiBaseRamCost),v.a.bladeburner instanceof s.a&&(7===v.a.bitNodeN||U))try{return v.a.bladeburner.startActionNetscriptFn(a,i,e)}catch(t){throw Object(x.d)(e,"Bladeburner.startAction() failed with exception: "+t)}throw Object(x.d)(e,"startAction() 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")},stopBladeburnerAction:function(){if(e.checkingRam)return n("stopBladeburnerAction",c.a.ScriptBladeburnerApiBaseRamCost/2);if(t("stopBladeburnerAction",c.a.ScriptBladeburnerApiBaseRamCost/2),v.a.bladeburner instanceof s.a&&(7===v.a.bitNodeN||U))return v.a.bladeburner.resetAction();throw Object(x.d)(e,"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")},getCurrentAction:function(){if(e.checkingRam)return n("getCurrentAction",c.a.ScriptBladeburnerApiBaseRamCost/4);if(t("getCurrentAction",c.a.ScriptBladeburnerApiBaseRamCost/4),v.a.bladeburner instanceof s.a&&(7===v.a.bitNodeN||U))return v.a.bladeburner.getTypeAndNameFromActionId(v.a.bladeburner.action);throw Object(x.d)(e,"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")},getActionTime:function(a="",i=""){if(e.checkingRam)return n("getActionTime",c.a.ScriptBladeburnerApiBaseRamCost);if(t("getActionTime",c.a.ScriptBladeburnerApiBaseRamCost),v.a.bladeburner instanceof s.a&&(7===v.a.bitNodeN||U))try{return v.a.bladeburner.getActionTimeNetscriptFn(a,i,e)}catch(t){throw Object(x.d)(e,"Bladeburner.getActionTime() failed with exception: "+t)}throw Object(x.d)(e,"getActionTime() 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")},getActionEstimatedSuccessChance:function(a="",i=""){if(e.checkingRam)return n("getActionEstimatedSuccessChance",c.a.ScriptBladeburnerApiBaseRamCost);if(t("getActionEstimatedSuccessChance",c.a.ScriptBladeburnerApiBaseRamCost),v.a.bladeburner instanceof s.a&&(7===v.a.bitNodeN||U))try{return v.a.bladeburner.getActionEstimatedSuccessChanceNetscriptFn(a,i,e)}catch(t){throw Object(x.d)(e,"Bladeburner.getActionEstimatedSuccessChance() failed with exception: "+t)}throw Object(x.d)(e,"getActionEstimatedSuccessChance() 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")},getActionRepGain:function(a="",i="",o){if(e.checkingRam)return n("getActionRepGain",c.a.ScriptBladeburnerApiBaseRamCost);t("getActionRepGain",c.a.ScriptBladeburnerApiBaseRamCost),Object(S.a)(e,"getActionRepGain");try{var s=Object(S.b)("getActionAutolevel",a,i);const t=v.a.bladeburner.getActionIdFromTypeAndName(a,i);if(null==t)return e.log(s),-1;const n=v.a.bladeburner.getActionObject(t);return null==n?(e.log(s),-1):(l=null==o||isNaN(o)?Math.pow(n.rewardFac,n.level-1):Math.pow(n.rewardFac,o-1),n.rankGain*l*r.BitNodeMultipliers.BladeburnerRank);var l}catch(t){throw Object(x.d)(e,Object(S.c)("getActionAutolevel",t))}},getActionCountRemaining:function(a="",i=""){if(e.checkingRam)return n("getActionCountRemaining",c.a.ScriptBladeburnerApiBaseRamCost);if(t("getActionCountRemaining",c.a.ScriptBladeburnerApiBaseRamCost),v.a.bladeburner instanceof s.a&&(7===v.a.bitNodeN||U))try{return v.a.bladeburner.getActionCountRemainingNetscriptFn(a,i,e)}catch(t){throw Object(x.d)(e,"Bladeburner.getActionCountRemaining() failed with exception: "+t)}throw Object(x.d)(e,"getActionCountRemaining() 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")},getActionMaxLevel:function(a="",i=""){if(e.checkingRam)return n("getActionMaxLevel",c.a.ScriptBladeburnerApiBaseRamCost);t("getActionMaxLevel",c.a.ScriptBladeburnerApiBaseRamCost),Object(S.a)(e,"getActionMaxLevel");try{var r=Object(S.b)("getActionMaxLevel",a,i);const t=v.a.bladeburner.getActionIdFromTypeAndName(a,i);if(null==t)return e.log(r),-1;const n=v.a.bladeburner.getActionObject(t);return null==n?(e.log(r),-1):n.maxLevel}catch(t){throw Object(x.d)(e,Object(S.c)("getActionMaxLevel",t))}},getActionCurrentLevel:function(a="",i=""){if(e.checkingRam)return n("getActionCurrentLevel",c.a.ScriptBladeburnerApiBaseRamCost);t("getActionCurrentLevel",c.a.ScriptBladeburnerApiBaseRamCost),Object(S.a)(e,"getActionCurrentLevel");try{var r=Object(S.b)("getActionCurrentLevel",a,i);const t=v.a.bladeburner.getActionIdFromTypeAndName(a,i);if(null==t)return e.log(r),-1;const n=v.a.bladeburner.getActionObject(t);return null==n?(e.log(r),-1):n.level}catch(t){throw Object(x.d)(e,Object(S.c)("getActionCurrentLevel",t))}},getActionAutolevel:function(a="",i=""){if(e.checkingRam)return n("getActionAutolevel",c.a.ScriptBladeburnerApiBaseRamCost);t("getActionAutolevel",c.a.ScriptBladeburnerApiBaseRamCost),Object(S.a)(e,"getActionAutolevel");try{var r=Object(S.b)("getActionAutolevel",a,i);const t=v.a.bladeburner.getActionIdFromTypeAndName(a,i);if(null==t)return e.log(r),!1;const n=v.a.bladeburner.getActionObject(t);return null==n?(e.log(r),!1):n.autoLevel}catch(t){throw Object(x.d)(e,Object(S.c)("getActionAutolevel",t))}},setActionAutolevel:function(a="",i="",r=!0){if(e.checkingRam)return n("setActionAutolevel",c.a.ScriptBladeburnerApiBaseRamCost);t("setActionAutolevel",c.a.ScriptBladeburnerApiBaseRamCost),Object(S.a)(e,"setActionAutolevel");try{var o=Object(S.b)("setActionAutolevel",a,i);const t=v.a.bladeburner.getActionIdFromTypeAndName(a,i);if(null==t)return void e.log(o);const n=v.a.bladeburner.getActionObject(t);if(null==n)return void e.log(o);n.autoLevel=r}catch(t){throw Object(x.d)(e,Object(S.c)("setActionAutolevel",t))}},setActionLevel:function(a="",i="",r=1){if(e.checkingRam)return n("setActionLevel",c.a.ScriptBladeburnerApiBaseRamCost);t("setActionLevel",c.a.ScriptBladeburnerApiBaseRamCost),Object(S.a)(e,"setActionLevel");try{var o=Object(S.b)("setActionLevel",a,i);const t=v.a.bladeburner.getActionIdFromTypeAndName(a,i);if(null==t)return void e.log(o);const n=v.a.bladeburner.getActionObject(t);if(null==n)return void e.log(o);if(r>n.maxLevel)return void e.log(`ERROR: bladeburner.${setActionLevel}() failed because level exceeds max level for given action.`);if(r<1)return void e.log(`ERROR: bladeburner.${setActionLevel}() failed because level is below 1.`);n.level=r}catch(t){throw Object(x.d)(e,Object(S.c)("setActionLevel",t))}},getRank:function(){if(e.checkingRam)return n("getRank",c.a.ScriptBladeburnerApiBaseRamCost);if(t("getRank",c.a.ScriptBladeburnerApiBaseRamCost),v.a.bladeburner instanceof s.a&&(7===v.a.bitNodeN||U))return v.a.bladeburner.rank;throw Object(x.d)(e,"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")},getSkillPoints:function(){if(e.checkingRam)return n("getSkillPoints",c.a.ScriptBladeburnerApiBaseRamCost);if(t("getSkillPoints",c.a.ScriptBladeburnerApiBaseRamCost),v.a.bladeburner instanceof s.a&&(7===v.a.bitNodeN||U))return v.a.bladeburner.skillPoints;throw Object(x.d)(e,"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")},getSkillLevel:function(a=""){if(e.checkingRam)return n("getSkillLevel",c.a.ScriptBladeburnerApiBaseRamCost);if(t("getSkillLevel",c.a.ScriptBladeburnerApiBaseRamCost),v.a.bladeburner instanceof s.a&&(7===v.a.bitNodeN||U))try{return v.a.bladeburner.getSkillLevelNetscriptFn(a,e)}catch(t){throw Object(x.d)(e,"Bladeburner.getSkillLevel() failed with exception: "+t)}throw Object(x.d)(e,"getSkillLevel() 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")},getSkillUpgradeCost:function(a=""){if(e.checkingRam)return n("getSkillUpgradeCost",c.a.ScriptBladeburnerApiBaseRamCost);if(t("getSkillUpgradeCost",c.a.ScriptBladeburnerApiBaseRamCost),v.a.bladeburner instanceof s.a&&(7===v.a.bitNodeN||U))try{return v.a.bladeburner.getSkillUpgradeCostNetscriptFn(a,e)}catch(t){throw Object(x.d)(e,"Bladeburner.getSkillUpgradeCost() failed with exception: "+t)}throw Object(x.d)(e,"getSkillUpgradeCost() 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")},upgradeSkill:function(a){if(e.checkingRam)return n("upgradeSkill",c.a.ScriptBladeburnerApiBaseRamCost);if(t("upgradeSkill",c.a.ScriptBladeburnerApiBaseRamCost),v.a.bladeburner instanceof s.a&&(7===v.a.bitNodeN||U))try{return v.a.bladeburner.upgradeSkillNetscriptFn(a,e)}catch(t){throw Object(x.d)(e,"Bladeburner.upgradeSkill() failed with exception: "+t)}throw Object(x.d)(e,"upgradeSkill() 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")},getTeamSize:function(a="",i=""){if(e.checkingRam)return n("getTeamSize",c.a.ScriptBladeburnerApiBaseRamCost);if(t("getTeamSize",c.a.ScriptBladeburnerApiBaseRamCost),v.a.bladeburner instanceof s.a&&(7===v.a.bitNodeN||U))try{return v.a.bladeburner.getTeamSizeNetscriptFn(a,i,e)}catch(t){throw Object(x.d)(e,"Bladeburner.getTeamSize() failed with exception: "+t)}throw Object(x.d)(e,"getTeamSize() 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")},setTeamSize:function(a="",i="",r){if(e.checkingRam)return n("setTeamSize",c.a.ScriptBladeburnerApiBaseRamCost);if(t("setTeamSize",c.a.ScriptBladeburnerApiBaseRamCost),v.a.bladeburner instanceof s.a&&(7===v.a.bitNodeN||U))try{return v.a.bladeburner.setTeamSizeNetscriptFn(a,i,r,e)}catch(t){throw Object(x.d)(e,"Bladeburner.setTeamSize() failed with exception: "+t)}throw Object(x.d)(e,"setTeamSize() 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")},getCityEstimatedPopulation:function(a){if(e.checkingRam)return n("getCityEstimatedPopulation",c.a.ScriptBladeburnerApiBaseRamCost);if(t("getCityEstimatedPopulation",c.a.ScriptBladeburnerApiBaseRamCost),v.a.bladeburner instanceof s.a&&(7===v.a.bitNodeN||U))try{return v.a.bladeburner.getCityEstimatedPopulationNetscriptFn(a,e)}catch(t){throw Object(x.d)(e,"Bladeburner.getCityEstimatedPopulation() failed with exception: "+t)}throw Object(x.d)(e,"getCityEstimatedPopulation() 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")},getCityEstimatedCommunities:function(a){if(e.checkingRam)return n("getCityEstimatedCommunities",c.a.ScriptBladeburnerApiBaseRamCost);if(t("getCityEstimatedCommunities",c.a.ScriptBladeburnerApiBaseRamCost),v.a.bladeburner instanceof s.a&&(7===v.a.bitNodeN||U))try{return v.a.bladeburner.getCityEstimatedCommunitiesNetscriptFn(a,e)}catch(t){throw Object(x.d)(e,"Bladeburner.getCityEstimatedCommunities() failed with exception: "+t)}throw Object(x.d)(e,"getCityEstimatedCommunities() 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")},getCityChaos:function(a){if(e.checkingRam)return n("getCityChaos",c.a.ScriptBladeburnerApiBaseRamCost);if(t("getCityChaos",c.a.ScriptBladeburnerApiBaseRamCost),v.a.bladeburner instanceof s.a&&(7===v.a.bitNodeN||U))try{return v.a.bladeburner.getCityChaosNetscriptFn(a,e)}catch(t){throw Object(x.d)(e,"Bladeburner.getCityChaos() failed with exception: "+t)}throw Object(x.d)(e,"getCityChaos() 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")},getCity:function(){if(e.checkingRam)return n("getCity",c.a.ScriptBladeburnerApiBaseRamCost);if(t("getCity",c.a.ScriptBladeburnerApiBaseRamCost),v.a.bladeburner instanceof s.a&&(7===v.a.bitNodeN||U))try{return v.a.bladeburner.city}catch(t){throw Object(x.d)(e,"Bladeburner.getCity() failed with exception: "+t)}throw Object(x.d)(e,"getCity() 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")},switchCity:function(a){if(e.checkingRam)return n("switchCity",c.a.ScriptBladeburnerApiBaseRamCost);if(t("switchCity",c.a.ScriptBladeburnerApiBaseRamCost),v.a.bladeburner instanceof s.a&&(7===v.a.bitNodeN||U))try{return v.a.bladeburner.switchCityNetscriptFn(a,e)}catch(t){throw Object(x.d)(e,"Bladeburner.switchCity() failed with exception: "+t)}throw Object(x.d)(e,"switchCity() 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")},getStamina:function(){if(e.checkingRam)return n("getStamina",c.a.ScriptBladeburnerApiBaseRamCost);if(t("getStamina",c.a.ScriptBladeburnerApiBaseRamCost),v.a.bladeburner instanceof s.a&&(7===v.a.bitNodeN||U))return[v.a.bladeburner.stamina,v.a.bladeburner.maxStamina];throw Object(x.d)(e,"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")},joinBladeburnerFaction:function(){if(e.checkingRam)return n("joinBladeburnerFaction",c.a.ScriptBladeburnerApiBaseRamCost);if(t("joinBladeburnerFaction",c.a.ScriptBladeburnerApiBaseRamCost),v.a.bladeburner instanceof s.a&&(7===v.a.bitNodeN||U))return v.a.bladeburner.joinBladeburnerFactionNetscriptFn(e);throw Object(x.d)(e,"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")},joinBladeburnerDivision:function(){if(e.checkingRam)return n("joinBladeburnerDivision",c.a.ScriptBladeburnerApiBaseRamCost);if(t("joinBladeburnerDivision",c.a.ScriptBladeburnerApiBaseRamCost),7===v.a.bitNodeN||U)return v.a.bladeburner instanceof s.a||(v.a.strength>=100&&v.a.defense>=100&&v.a.dexterity>=100&&v.a.agility>=100?(v.a.bladeburner=new s.a({new:!0}),e.log("You have been accepted into the Bladeburner division"),!0):(e.log("You do not meet the requirements for joining the Bladeburner division"),!1));throw Object(x.d)(e,"joinBladeburnerDivision() 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")},getBonusTime:function(){if(e.checkingRam)return 0;if(7===v.a.bitNodeN||U)return Math.round(v.a.bladeburner.storedCycles/5);throw Object(x.d)(e,"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")}},codingcontract:{attempt:function(a,i,r=e.serverIp){if(e.checkingRam)return n("attempt",c.a.ScriptCodingContractBaseRamCost);t("attempt",c.a.ScriptCodingContractBaseRamCost);const o=q(i,r);if(null==o)return e.log(`ERROR: codingcontract.getData() failed because it could find the specified contract ${i} on server ${r}`),!1;a=String(a);const s=F(r,"codingcontract.attempt()");if(o.isSolution(a)){const t=v.a.gainCodingContractReward(o.reward,o.getDifficulty());return e.log(`Successfully completed Coding Contract ${i}. Reward: ${t}`),s.removeContract(i),!0}return++o.tries,o.tries>=o.getMaxNumTries()?(e.log(`Coding Contract ${i} failed. Contract is now self-destructing`),s.removeContract(i)):e.log(`Coding Contract ${i} failed. ${o.getMaxNumTries()-o.tries} attempts remaining`),!1},getData:function(a,i=e.serverIp){if(e.checkingRam)return n("getData",c.a.ScriptCodingContractBaseRamCost/2);t("getData",c.a.ScriptCodingContractBaseRamCost/2);var r=q(a,i);return null==r?(e.log(`ERROR: codingcontract.getData() failed because it could find the specified contract ${a} on server ${i}`),null):r.getData()},getDescription:function(a,i=e.serverIp){if(e.checkingRam)return n("getDescription",c.a.ScriptCodingContractBaseRamCost/2);t("getDescription",c.a.ScriptCodingContractBaseRamCost/2);var r=q(a,i);return null==r?(e.log(`ERROR: codingcontract.getDescription() failed because it could find the specified contract ${a} on server ${i}`),""):r.getDescription()},getNumTriesRemaining:function(a,i=e.serverIp){if(e.checkingRam)return n("getNumTriesRemaining",c.a.ScriptCodingContractBaseRamCost/2);t("getNumTriesRemaining",c.a.ScriptCodingContractBaseRamCost/2);var r=q(a,i);return null==r?(e.log(`ERROR: codingcontract.getNumTriesRemaining() failed because it could find the specified contract ${a} on server ${i}`),-1):r.getMaxNumTries()-r.tries}}}}},function(e,t,n){"use strict";var a=this&&this.__awaiter||function(e,t,n,a){return new(n||(n=Promise))(function(i,r){function o(e){try{l(a.next(e))}catch(e){r(e)}}function s(e){try{l(a.throw(e))}catch(e){r(e)}}function l(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(o,s)}l((a=a.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0});const i=n(14),r=n(4),o=n(36),s=n(21),l=n(161);class c{constructor(e,t,n,a,i,r){this.name=e,this.desc=t,this.generate=n,this.solver=a,this.difficulty=i,this.numTries=r}}t.CodingContractType=c,t.CodingContractTypes={};for(const e of l.codingContractTypesMetadata)t.CodingContractTypes[e.name]=new c(e.name,e.desc,e.gen,e.solver,e.difficulty,e.numTries);var u;console.info(`${Object.keys(t.CodingContractTypes).length} Coding Contract Types loaded`),function(e){e[e.FactionReputation=0]="FactionReputation",e[e.FactionReputationAll=1]="FactionReputationAll",e[e.CompanyReputation=2]="CompanyReputation",e[e.Money=3]="Money"}(t.CodingContractRewardType||(t.CodingContractRewardType={})),function(e){e[e.Success=0]="Success",e[e.Failure=1]="Failure",e[e.Cancelled=2]="Cancelled"}(u=t.CodingContractResult||(t.CodingContractResult={}));class d{constructor(e="",n="Find Largest Prime Factor",a=null){if(this.tries=0,this.fn=e,this.fn.endsWith(".cct")||(this.fn+=".cct"),null==t.CodingContractTypes[n])throw new Error(`Error: invalid contract type: ${n} please contact developer`);this.type=n,this.data=t.CodingContractTypes[n].generate(),this.reward=a}static fromJSON(e){return i.Generic_fromJSON(d,e.data)}getData(){return this.data}getDescription(){return t.CodingContractTypes[this.type].desc(this.data)}getDifficulty(){return t.CodingContractTypes[this.type].difficulty}getMaxNumTries(){return t.CodingContractTypes[this.type].numTries}isSolution(e){return t.CodingContractTypes[this.type].solver(this.data,e)}prompt(){return a(this,void 0,void 0,function*(){return new Promise((e,n)=>{const a=t.CodingContractTypes[this.type],i=`coding-contract-prompt-popup-${this.fn}`,l=r.createElement("p",{innerText:["You are attempting to solve a Coding Contract. You have",`${this.getMaxNumTries()-this.tries} tries remaining,`,"after which the contract will self-destruct.\n\n",`${a.desc(this.data)}`].join(" ")}),c=r.createElement("input",{onkeydown:e=>{13===e.keyCode&&""!==c.value&&(e.preventDefault(),d.click())},placeholder:"Enter Solution here"}),d=r.createElement("a",{class:"a-link-button",clickListener:()=>{const t=c.value;this.isSolution(t)?e(u.Success):e(u.Failure),s.removeElementById(i)},innerText:"Solve"}),h=r.createElement("a",{class:"a-link-button",clickListener:()=>{e(u.Cancelled),s.removeElementById(i)},innerText:"Cancel"}),p=r.createElement("br");o.createPopup(i,[l,p,p,c,d,h]),c.focus()})})}toJSON(){return i.Generic_toJSON("CodingContract",this)}}t.CodingContract=d,i.Reviver.constructors.CodingContract=d},function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return r}),n.d(t,"f",function(){return l}),n.d(t,"e",function(){return c}),n.d(t,"g",function(){return d}),n.d(t,"h",function(){return h}),n.d(t,"c",function(){return o}),n.d(t,"d",function(){return s});var a=n(6);let i={},r={};function o(e){i=""===e?{}:JSON.parse(e)}function s(e){r=""===e?{}:JSON.parse(e)}function l(){for(var e in i)i.hasOwnProperty(e)&&Object(a.post)("alias "+e+"="+i[e]);for(var e in r)r.hasOwnProperty(e)&&Object(a.post)("global alias "+e+"="+r[e])}function c(e,t=!1){var n=e.match(/^([_|\w|!|%|,|@]+)="(.+)"$/);return null!=n&&3==n.length&&(t?function(e,t){e in i&&delete i[e];r[e]=t}(n[1],n[2]):function(e,t){e in r&&delete r[e];i[e]=t}(n[1],n[2]),!0)}function u(e){return r.hasOwnProperty(e)?r[e]:null}function d(e){return i.hasOwnProperty(e)?(delete i[e],!0):!!r.hasOwnProperty(e)&&(delete r[e],!0)}function h(e){var t,n=e.split(" ");if(n.length>0){if(null!=(r=(t=n[0],i.hasOwnProperty(t)?i[t]:null)))n[0]=r;else null!=(r=u(n[0]))&&(n[0]=r);for(var a=0;ae)return!1;if((n+=t[a+1])>=e)return!0}}function d(e,t){return e<65?36===e:e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&o.test(String.fromCharCode(e)):!1!==t&&u(e,l)))}function h(e,t){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&s.test(String.fromCharCode(e)):!1!==t&&(u(e,l)||u(e,c)))))}var p=function(e,t){void 0===t&&(t={}),this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop||null,this.updateContext=null};function m(e,t){return new p(e,{beforeExpr:!0,binop:t})}var g={beforeExpr:!0},y={startsExpr:!0},f={};function b(e,t){return void 0===t&&(t={}),t.keyword=e,f[e]=new p(e,t)}var v={num:new p("num",y),regexp:new p("regexp",y),string:new p("string",y),name:new p("name",y),eof:new p("eof"),bracketL:new p("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new p("]"),braceL:new p("{",{beforeExpr:!0,startsExpr:!0}),braceR:new p("}"),parenL:new p("(",{beforeExpr:!0,startsExpr:!0}),parenR:new p(")"),comma:new p(",",g),semi:new p(";",g),colon:new p(":",g),dot:new p("."),question:new p("?",g),arrow:new p("=>",g),template:new p("template"),ellipsis:new p("...",g),backQuote:new p("`",y),dollarBraceL:new p("${",{beforeExpr:!0,startsExpr:!0}),eq:new p("=",{beforeExpr:!0,isAssign:!0}),assign:new p("_=",{beforeExpr:!0,isAssign:!0}),incDec:new p("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new p("prefix",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:m("||",1),logicalAND:m("&&",2),bitwiseOR:m("|",3),bitwiseXOR:m("^",4),bitwiseAND:m("&",5),equality:m("==/!=",6),relational:m("",7),bitShift:m("<>",8),plusMin:new p("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:m("%",10),star:m("*",10),slash:m("/",10),starstar:new p("**",{beforeExpr:!0}),_break:b("break"),_case:b("case",g),_catch:b("catch"),_continue:b("continue"),_debugger:b("debugger"),_default:b("default",g),_do:b("do",{isLoop:!0,beforeExpr:!0}),_else:b("else",g),_finally:b("finally"),_for:b("for",{isLoop:!0}),_function:b("function",y),_if:b("if"),_return:b("return",g),_switch:b("switch"),_throw:b("throw",g),_try:b("try"),_var:b("var"),_const:b("const"),_while:b("while",{isLoop:!0}),_with:b("with"),_new:b("new",{beforeExpr:!0,startsExpr:!0}),_this:b("this",y),_super:b("super",y),_class:b("class"),_extends:b("extends",g),_export:b("export"),_import:b("import"),_null:b("null",y),_true:b("true",y),_false:b("false",y),_in:b("in",{beforeExpr:!0,binop:7}),_instanceof:b("instanceof",{beforeExpr:!0,binop:7}),_typeof:b("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:b("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:b("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},_=/\r\n?|\n|\u2028|\u2029/,k=new RegExp(_.source,"g");function E(e){return 10===e||13===e||8232===e||8233===e}var O=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/,C=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,w=Object.prototype,S=w.hasOwnProperty,T=w.toString;function x(e,t){return S.call(e,t)}var R=Array.isArray||function(e){return"[object Array]"===T.call(e)},I=function(e,t){this.line=e,this.column=t};I.prototype.offset=function(e){return new I(this.line,this.column+e)};var N=function(e,t,n){this.start=t,this.end=n,null!==e.sourceFile&&(this.source=e.sourceFile)};function M(e,t){for(var n=1,a=0;;){k.lastIndex=a;var i=k.exec(e);if(!(i&&i.index=2015&&(t.ecmaVersion-=2009),null==t.allowReserved&&(t.allowReserved=t.ecmaVersion<5),R(t.onToken)){var a=t.onToken;t.onToken=function(e){return a.push(e)}}return R(t.onComment)&&(t.onComment=function(e,t){return function(n,a,i,r,o,s){var l={type:n?"Block":"Line",value:a,start:i,end:r};e.locations&&(l.loc=new N(this,o,s)),e.ranges&&(l.range=[i,r]),t.push(l)}}(t,t.onComment)),t}var L={};function B(e){return new RegExp("^("+e.replace(/ /g,"|")+")$")}var j=function(e,n,i){this.options=e=A(e),this.sourceFile=e.sourceFile,this.keywords=B(a[e.ecmaVersion>=6?6:5]);var r="";if(!e.allowReserved){for(var o=e.ecmaVersion;!(r=t[o]);o--);"module"==e.sourceType&&(r+=" await")}this.reservedWords=B(r);var s=(r?r+" ":"")+t.strict;this.reservedWordsStrict=B(s),this.reservedWordsStrictBind=B(s+" "+t.strictBind),this.input=String(n),this.containsEsc=!1,this.loadPlugins(e.plugins),i?(this.pos=i,this.lineStart=this.input.lastIndexOf("\n",i-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(_).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=v.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===e.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.inFunction=this.inGenerator=this.inAsync=!1,this.yieldPos=this.awaitPos=0,this.labels=[],0===this.pos&&e.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterFunctionScope()};j.prototype.isKeyword=function(e){return this.keywords.test(e)},j.prototype.isReservedWord=function(e){return this.reservedWords.test(e)},j.prototype.extend=function(e,t){this[e]=t(this[e])},j.prototype.loadPlugins=function(e){for(var t in e){var n=L[t];if(!n)throw new Error("Plugin '"+t+"' not found");n(this,e[t])}},j.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)};var D=j.prototype,F=/^(?:'((?:[^']|\.)*)'|"((?:[^"]|\.)*)"|;)/;D.strictDirective=function(e){for(;;){C.lastIndex=e,e+=C.exec(this.input)[0].length;var t=F.exec(this.input.slice(e));if(!t)return!1;if("use strict"==(t[1]||t[2]))return!0;e+=t[0].length}},D.eat=function(e){return this.type===e&&(this.next(),!0)},D.isContextual=function(e){return this.type===v.name&&this.value===e},D.eatContextual=function(e){return this.value===e&&this.eat(v.name)},D.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},D.canInsertSemicolon=function(){return this.type===v.eof||this.type===v.braceR||_.test(this.input.slice(this.lastTokEnd,this.start))},D.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},D.semicolon=function(){this.eat(v.semi)||this.insertSemicolon()||this.unexpected()},D.afterTrailingComma=function(e,t){if(this.type==e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},D.expect=function(e){this.eat(e)||this.unexpected()},D.unexpected=function(e){this.raise(null!=e?e:this.start,"Unexpected token")};var H=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=-1};D.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var n=t?e.parenthesizedAssign:e.parenthesizedBind;n>-1&&this.raiseRecoverable(n,"Parenthesized pattern")}},D.checkExpressionErrors=function(e,t){var n=e?e.shorthandAssign:-1;if(!t)return n>=0;n>-1&&this.raise(n,"Shorthand property assignments are valid only in destructuring patterns")},D.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos=6&&(e.sourceType=this.options.sourceType),this.finishNode(e,"Program")};var G={kind:"loop"},U={kind:"switch"};W.isLet=function(){if(this.type!==v.name||this.options.ecmaVersion<6||"let"!=this.value)return!1;C.lastIndex=this.pos;var e=C.exec(this.input),t=this.pos+e[0].length,n=this.input.charCodeAt(t);if(91===n||123==n)return!0;if(d(n,!0)){for(var a=t+1;h(this.input.charCodeAt(a),!0);)++a;var i=this.input.slice(t,a);if(!this.isKeyword(i))return!0}return!1},W.isAsyncFunction=function(){if(this.type!==v.name||this.options.ecmaVersion<8||"async"!=this.value)return!1;C.lastIndex=this.pos;var e=C.exec(this.input),t=this.pos+e[0].length;return!(_.test(this.input.slice(this.pos,t))||"function"!==this.input.slice(t,t+8)||t+8!=this.input.length&&h(this.input.charAt(t+8)))},W.parseStatement=function(e,t,n){var a,i=this.type,r=this.startNode();switch(this.isLet()&&(i=v._var,a="let"),i){case v._break:case v._continue:return this.parseBreakContinueStatement(r,i.keyword);case v._debugger:return this.parseDebuggerStatement(r);case v._do:return this.parseDoStatement(r);case v._for:return this.parseForStatement(r);case v._function:return!e&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(r,!1);case v._class:return e||this.unexpected(),this.parseClass(r,!0);case v._if:return this.parseIfStatement(r);case v._return:return this.parseReturnStatement(r);case v._switch:return this.parseSwitchStatement(r);case v._throw:return this.parseThrowStatement(r);case v._try:return this.parseTryStatement(r);case v._const:case v._var:return a=a||this.value,e||"var"==a||this.unexpected(),this.parseVarStatement(r,a);case v._while:return this.parseWhileStatement(r);case v._with:return this.parseWithStatement(r);case v.braceL:return this.parseBlock();case v.semi:return this.parseEmptyStatement(r);case v._export:case v._import:return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),i===v._import?this.parseImport(r):this.parseExport(r,n);default:if(this.isAsyncFunction()&&e)return this.next(),this.parseFunctionStatement(r,!0);var o=this.value,s=this.parseExpression();return i===v.name&&"Identifier"===s.type&&this.eat(v.colon)?this.parseLabeledStatement(r,o,s):this.parseExpressionStatement(r,s)}},W.parseBreakContinueStatement=function(e,t){var n="break"==t;this.next(),this.eat(v.semi)||this.insertSemicolon()?e.label=null:this.type!==v.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var a=0;a=6?this.eat(v.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},W.parseForStatement=function(e){if(this.next(),this.labels.push(G),this.enterLexicalScope(),this.expect(v.parenL),this.type===v.semi)return this.parseFor(e,null);var t=this.isLet();if(this.type===v._var||this.type===v._const||t){var n=this.startNode(),a=t?"let":this.value;return this.next(),this.parseVar(n,!0,a),this.finishNode(n,"VariableDeclaration"),!(this.type===v._in||this.options.ecmaVersion>=6&&this.isContextual("of"))||1!==n.declarations.length||"var"!==a&&n.declarations[0].init?this.parseFor(e,n):this.parseForIn(e,n)}var i=new H,r=this.parseExpression(!0,i);return this.type===v._in||this.options.ecmaVersion>=6&&this.isContextual("of")?(this.toAssignable(r),this.checkLVal(r),this.checkPatternErrors(i,!0),this.parseForIn(e,r)):(this.checkExpressionErrors(i,!0),this.parseFor(e,r))},W.parseFunctionStatement=function(e,t){return this.next(),this.parseFunction(e,!0,!1,t)},W.isFunction=function(){return this.type===v._function||this.isAsyncFunction()},W.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement(!this.strict&&this.isFunction()),e.alternate=this.eat(v._else)?this.parseStatement(!this.strict&&this.isFunction()):null,this.finishNode(e,"IfStatement")},W.parseReturnStatement=function(e){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(v.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},W.parseSwitchStatement=function(e){var t;this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(v.braceL),this.labels.push(U),this.enterLexicalScope();for(var n=!1;this.type!=v.braceR;)if(this.type===v._case||this.type===v._default){var a=this.type===v._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),a?t.test=this.parseExpression():(n&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),n=!0,t.test=null),this.expect(v.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(!0));return this.exitLexicalScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")},W.parseThrowStatement=function(e){return this.next(),_.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var K=[];W.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===v._catch){var t=this.startNode();this.next(),this.expect(v.parenL),t.param=this.parseBindingAtom(),this.enterLexicalScope(),this.checkLVal(t.param,"let"),this.expect(v.parenR),t.body=this.parseBlock(!1),this.exitLexicalScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(v._finally)?this.parseBlock():null,e.handler||e.finalizer||this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},W.parseVarStatement=function(e,t){return this.next(),this.parseVar(e,!1,t),this.semicolon(),this.finishNode(e,"VariableDeclaration")},W.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(G),e.body=this.parseStatement(!1),this.labels.pop(),this.finishNode(e,"WhileStatement")},W.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement(!1),this.finishNode(e,"WithStatement")},W.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},W.parseLabeledStatement=function(e,t,n){for(var a=0;a=0;r--){var o=this.labels[r];if(o.statementStart!=e.start)break;o.statementStart=this.start,o.kind=i}return this.labels.push({name:t,kind:i,statementStart:this.start}),e.body=this.parseStatement(!0),("ClassDeclaration"==e.body.type||"VariableDeclaration"==e.body.type&&"var"!=e.body.kind||"FunctionDeclaration"==e.body.type&&(this.strict||e.body.generator))&&this.raiseRecoverable(e.body.start,"Invalid labeled declaration"),this.labels.pop(),e.label=n,this.finishNode(e,"LabeledStatement")},W.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},W.parseBlock=function(e){void 0===e&&(e=!0);var t=this.startNode();for(t.body=[],this.expect(v.braceL),e&&this.enterLexicalScope();!this.eat(v.braceR);){var n=this.parseStatement(!0);t.body.push(n)}return e&&this.exitLexicalScope(),this.finishNode(t,"BlockStatement")},W.parseFor=function(e,t){return e.init=t,this.expect(v.semi),e.test=this.type===v.semi?null:this.parseExpression(),this.expect(v.semi),e.update=this.type===v.parenR?null:this.parseExpression(),this.expect(v.parenR),this.exitLexicalScope(),e.body=this.parseStatement(!1),this.labels.pop(),this.finishNode(e,"ForStatement")},W.parseForIn=function(e,t){var n=this.type===v._in?"ForInStatement":"ForOfStatement";return this.next(),e.left=t,e.right=this.parseExpression(),this.expect(v.parenR),this.exitLexicalScope(),e.body=this.parseStatement(!1),this.labels.pop(),this.finishNode(e,n)},W.parseVar=function(e,t,n){for(e.declarations=[],e.kind=n;;){var a=this.startNode();if(this.parseVarId(a,n),this.eat(v.eq)?a.init=this.parseMaybeAssign(t):"const"!==n||this.type===v._in||this.options.ecmaVersion>=6&&this.isContextual("of")?"Identifier"==a.id.type||t&&(this.type===v._in||this.isContextual("of"))?a.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),e.declarations.push(this.finishNode(a,"VariableDeclarator")),!this.eat(v.comma))break}return e},W.parseVarId=function(e,t){e.id=this.parseBindingAtom(t),this.checkLVal(e.id,t,!1)},W.parseFunction=function(e,t,n,a){this.initFunction(e),this.options.ecmaVersion>=6&&!a&&(e.generator=this.eat(v.star)),this.options.ecmaVersion>=8&&(e.async=!!a),t&&(e.id="nullableID"===t&&this.type!=v.name?null:this.parseIdent(),e.id&&this.checkLVal(e.id,"var"));var i=this.inGenerator,r=this.inAsync,o=this.yieldPos,s=this.awaitPos,l=this.inFunction;return this.inGenerator=e.generator,this.inAsync=e.async,this.yieldPos=0,this.awaitPos=0,this.inFunction=!0,this.enterFunctionScope(),t||(e.id=this.type==v.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,n),this.inGenerator=i,this.inAsync=r,this.yieldPos=o,this.awaitPos=s,this.inFunction=l,this.finishNode(e,t?"FunctionDeclaration":"FunctionExpression")},W.parseFunctionParams=function(e){this.expect(v.parenL),e.params=this.parseBindingList(v.parenR,!1,this.options.ecmaVersion>=8,!0),this.checkYieldAwaitInDefaultParams()},W.parseClass=function(e,t){this.next(),this.parseClassId(e,t),this.parseClassSuper(e);var n=this.startNode(),a=!1;for(n.body=[],this.expect(v.braceL);!this.eat(v.braceR);)if(!this.eat(v.semi)){var i=this.startNode(),r=this.eat(v.star),o=!1,s=this.type===v.name&&"static"===this.value;this.parsePropertyName(i),i.static=s&&this.type!==v.parenL,i.static&&(r&&this.unexpected(),r=this.eat(v.star),this.parsePropertyName(i)),this.options.ecmaVersion>=8&&!r&&!i.computed&&"Identifier"===i.key.type&&"async"===i.key.name&&this.type!==v.parenL&&!this.canInsertSemicolon()&&(o=!0,this.parsePropertyName(i)),i.kind="method";var l=!1;if(!i.computed){var c=i.key;r||o||"Identifier"!==c.type||this.type===v.parenL||"get"!==c.name&&"set"!==c.name||(l=!0,i.kind=c.name,c=this.parsePropertyName(i)),!i.static&&("Identifier"===c.type&&"constructor"===c.name||"Literal"===c.type&&"constructor"===c.value)&&(a&&this.raise(c.start,"Duplicate constructor in the same class"),l&&this.raise(c.start,"Constructor can't have get/set modifier"),r&&this.raise(c.start,"Constructor can't be a generator"),o&&this.raise(c.start,"Constructor can't be an async method"),i.kind="constructor",a=!0)}if(this.parseClassMethod(n,i,r,o),l){var u="get"===i.kind?0:1;if(i.value.params.length!==u){var d=i.value.start;"get"===i.kind?this.raiseRecoverable(d,"getter should have no params"):this.raiseRecoverable(d,"setter should have exactly one param")}else"set"===i.kind&&"RestElement"===i.value.params[0].type&&this.raiseRecoverable(i.value.params[0].start,"Setter cannot use rest params")}}return e.body=this.finishNode(n,"ClassBody"),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},W.parseClassMethod=function(e,t,n,a){t.value=this.parseMethod(n,a),e.body.push(this.finishNode(t,"MethodDefinition"))},W.parseClassId=function(e,t){e.id=this.type===v.name?this.parseIdent():!0===t?this.unexpected():null},W.parseClassSuper=function(e){e.superClass=this.eat(v._extends)?this.parseExprSubscripts():null},W.parseExport=function(e,t){if(this.next(),this.eat(v.star))return this.expectContextual("from"),e.source=this.type===v.string?this.parseExprAtom():this.unexpected(),this.semicolon(),this.finishNode(e,"ExportAllDeclaration");if(this.eat(v._default)){var n;if(this.checkExport(t,"default",this.lastTokStart),this.type===v._function||(n=this.isAsyncFunction())){var a=this.startNode();this.next(),n&&this.next(),e.declaration=this.parseFunction(a,"nullableID",!1,n)}else if(this.type===v._class){var i=this.startNode();e.declaration=this.parseClass(i,"nullableID")}else e.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(e,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())e.declaration=this.parseStatement(!0),"VariableDeclaration"===e.declaration.type?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id.name,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))e.source=this.type===v.string?this.parseExprAtom():this.unexpected();else{for(var r=0;r=6&&e)switch(e.type){case"Identifier":this.inAsync&&"await"===e.name&&this.raise(e.start,"Can not use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":break;case"ObjectExpression":e.type="ObjectPattern";for(var n=0;n=6&&(e.computed||e.method||e.shorthand))){var n,a=e.key;switch(a.type){case"Identifier":n=a.name;break;case"Literal":n=String(a.value);break;default:return}var i=e.kind;if(this.options.ecmaVersion>=6)"__proto__"===n&&"init"===i&&(t.proto&&this.raiseRecoverable(a.start,"Redefinition of __proto__ property"),t.proto=!0);else{var r=t[n="$"+n];r?("init"===i?this.strict&&r.init||r.get||r.set:r.init||r[i])&&this.raiseRecoverable(a.start,"Redefinition of property"):r=t[n]={init:!1,get:!1,set:!1},r[i]=!0}}},Y.parseExpression=function(e,t){var n=this.start,a=this.startLoc,i=this.parseMaybeAssign(e,t);if(this.type===v.comma){var r=this.startNodeAt(n,a);for(r.expressions=[i];this.eat(v.comma);)r.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(r,"SequenceExpression")}return i},Y.parseMaybeAssign=function(e,t,n){if(this.inGenerator&&this.isContextual("yield"))return this.parseYield();var a=!1,i=-1,r=-1;t?(i=t.parenthesizedAssign,r=t.trailingComma,t.parenthesizedAssign=t.trailingComma=-1):(t=new H,a=!0);var o=this.start,s=this.startLoc;this.type!=v.parenL&&this.type!=v.name||(this.potentialArrowAt=this.start);var l=this.parseMaybeConditional(e,t);if(n&&(l=n.call(this,l,o,s)),this.type.isAssign){this.checkPatternErrors(t,!0),a||H.call(t);var c=this.startNodeAt(o,s);return c.operator=this.value,c.left=this.type===v.eq?this.toAssignable(l):l,t.shorthandAssign=-1,this.checkLVal(l),this.next(),c.right=this.parseMaybeAssign(e),this.finishNode(c,"AssignmentExpression")}return a&&this.checkExpressionErrors(t,!0),i>-1&&(t.parenthesizedAssign=i),r>-1&&(t.trailingComma=r),l},Y.parseMaybeConditional=function(e,t){var n=this.start,a=this.startLoc,i=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return i;if(this.eat(v.question)){var r=this.startNodeAt(n,a);return r.test=i,r.consequent=this.parseMaybeAssign(),this.expect(v.colon),r.alternate=this.parseMaybeAssign(e),this.finishNode(r,"ConditionalExpression")}return i},Y.parseExprOps=function(e,t){var n=this.start,a=this.startLoc,i=this.parseMaybeUnary(t,!1);return this.checkExpressionErrors(t)?i:i.start==n&&"ArrowFunctionExpression"===i.type?i:this.parseExprOp(i,n,a,-1,e)},Y.parseExprOp=function(e,t,n,a,i){var r=this.type.binop;if(null!=r&&(!i||this.type!==v._in)&&r>a){var o=this.type===v.logicalOR||this.type===v.logicalAND,s=this.value;this.next();var l=this.start,c=this.startLoc,u=this.parseExprOp(this.parseMaybeUnary(null,!1),l,c,r,i),d=this.buildBinary(t,n,e,u,s,o);return this.parseExprOp(d,t,n,a,i)}return e},Y.buildBinary=function(e,t,n,a,i,r){var o=this.startNodeAt(e,t);return o.left=n,o.operator=i,o.right=a,this.finishNode(o,r?"LogicalExpression":"BinaryExpression")},Y.parseMaybeUnary=function(e,t){var n,a=this.start,i=this.startLoc;if(this.inAsync&&this.isContextual("await"))n=this.parseAwait(e),t=!0;else if(this.type.prefix){var r=this.startNode(),o=this.type===v.incDec;r.operator=this.value,r.prefix=!0,this.next(),r.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),o?this.checkLVal(r.argument):this.strict&&"delete"===r.operator&&"Identifier"===r.argument.type?this.raiseRecoverable(r.start,"Deleting local variable in strict mode"):t=!0,n=this.finishNode(r,o?"UpdateExpression":"UnaryExpression")}else{if(n=this.parseExprSubscripts(e),this.checkExpressionErrors(e))return n;for(;this.type.postfix&&!this.canInsertSemicolon();){var s=this.startNodeAt(a,i);s.operator=this.value,s.prefix=!1,s.argument=n,this.checkLVal(n),this.next(),n=this.finishNode(s,"UpdateExpression")}}return!t&&this.eat(v.starstar)?this.buildBinary(a,i,n,this.parseMaybeUnary(null,!1),"**",!1):n},Y.parseExprSubscripts=function(e){var t=this.start,n=this.startLoc,a=this.parseExprAtom(e),i="ArrowFunctionExpression"===a.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd);if(this.checkExpressionErrors(e)||i)return a;var r=this.parseSubscripts(a,t,n);return e&&"MemberExpression"===r.type&&(e.parenthesizedAssign>=r.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=r.start&&(e.parenthesizedBind=-1)),r},Y.parseSubscripts=function(e,t,n,a){for(var i,r=this.options.ecmaVersion>=8&&"Identifier"===e.type&&"async"===e.name&&this.lastTokEnd==e.end&&!this.canInsertSemicolon();;)if((i=this.eat(v.bracketL))||this.eat(v.dot)){var o=this.startNodeAt(t,n);o.object=e,o.property=i?this.parseExpression():this.parseIdent(!0),o.computed=!!i,i&&this.expect(v.bracketR),e=this.finishNode(o,"MemberExpression")}else if(!a&&this.eat(v.parenL)){var s=new H,l=this.yieldPos,c=this.awaitPos;this.yieldPos=0,this.awaitPos=0;var u=this.parseExprList(v.parenR,this.options.ecmaVersion>=8,!1,s);if(r&&!this.canInsertSemicolon()&&this.eat(v.arrow))return this.checkPatternErrors(s,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=l,this.awaitPos=c,this.parseArrowExpression(this.startNodeAt(t,n),u,!0);this.checkExpressionErrors(s,!0),this.yieldPos=l||this.yieldPos,this.awaitPos=c||this.awaitPos;var d=this.startNodeAt(t,n);d.callee=e,d.arguments=u,e=this.finishNode(d,"CallExpression")}else{if(this.type!==v.backQuote)return e;var h=this.startNodeAt(t,n);h.tag=e,h.quasi=this.parseTemplate(),e=this.finishNode(h,"TaggedTemplateExpression")}},Y.parseExprAtom=function(e){var t,n=this.potentialArrowAt==this.start;switch(this.type){case v._super:this.inFunction||this.raise(this.start,"'super' outside of function or class");case v._this:var a=this.type===v._this?"ThisExpression":"Super";return t=this.startNode(),this.next(),this.finishNode(t,a);case v.name:var i=this.start,r=this.startLoc,o=this.parseIdent(this.type!==v.name);if(this.options.ecmaVersion>=8&&"async"===o.name&&!this.canInsertSemicolon()&&this.eat(v._function))return this.parseFunction(this.startNodeAt(i,r),!1,!1,!0);if(n&&!this.canInsertSemicolon()){if(this.eat(v.arrow))return this.parseArrowExpression(this.startNodeAt(i,r),[o],!1);if(this.options.ecmaVersion>=8&&"async"===o.name&&this.type===v.name)return o=this.parseIdent(),!this.canInsertSemicolon()&&this.eat(v.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(i,r),[o],!0)}return o;case v.regexp:var s=this.value;return(t=this.parseLiteral(s.value)).regex={pattern:s.pattern,flags:s.flags},t;case v.num:case v.string:return this.parseLiteral(this.value);case v._null:case v._true:case v._false:return(t=this.startNode()).value=this.type===v._null?null:this.type===v._true,t.raw=this.type.keyword,this.next(),this.finishNode(t,"Literal");case v.parenL:var l=this.start,c=this.parseParenAndDistinguishExpression(n);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(c)&&(e.parenthesizedAssign=l),e.parenthesizedBind<0&&(e.parenthesizedBind=l)),c;case v.bracketL:return t=this.startNode(),this.next(),t.elements=this.parseExprList(v.bracketR,!0,!0,e),this.finishNode(t,"ArrayExpression");case v.braceL:return this.parseObj(!1,e);case v._function:return t=this.startNode(),this.next(),this.parseFunction(t,!1);case v._class:return this.parseClass(this.startNode(),!1);case v._new:return this.parseNew();case v.backQuote:return this.parseTemplate();default:this.unexpected()}},Y.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),this.next(),this.finishNode(t,"Literal")},Y.parseParenExpression=function(){this.expect(v.parenL);var e=this.parseExpression();return this.expect(v.parenR),e},Y.parseParenAndDistinguishExpression=function(e){var t,n=this.start,a=this.startLoc,i=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var r,o,s=this.start,l=this.startLoc,c=[],u=!0,d=!1,h=new H,p=this.yieldPos,m=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==v.parenR;){if(u?u=!1:this.expect(v.comma),i&&this.afterTrailingComma(v.parenR,!0)){d=!0;break}if(this.type===v.ellipsis){r=this.start,c.push(this.parseParenItem(this.parseRest())),this.type===v.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}this.type!==v.parenL||o||(o=this.start),c.push(this.parseMaybeAssign(!1,h,this.parseParenItem))}var g=this.start,y=this.startLoc;if(this.expect(v.parenR),e&&!this.canInsertSemicolon()&&this.eat(v.arrow))return this.checkPatternErrors(h,!1),this.checkYieldAwaitInDefaultParams(),o&&this.unexpected(o),this.yieldPos=p,this.awaitPos=m,this.parseParenArrowList(n,a,c);c.length&&!d||this.unexpected(this.lastTokStart),r&&this.unexpected(r),this.checkExpressionErrors(h,!0),this.yieldPos=p||this.yieldPos,this.awaitPos=m||this.awaitPos,c.length>1?((t=this.startNodeAt(s,l)).expressions=c,this.finishNodeAt(t,"SequenceExpression",g,y)):t=c[0]}else t=this.parseParenExpression();if(this.options.preserveParens){var f=this.startNodeAt(n,a);return f.expression=t,this.finishNode(f,"ParenthesizedExpression")}return t},Y.parseParenItem=function(e){return e},Y.parseParenArrowList=function(e,t,n){return this.parseArrowExpression(this.startNodeAt(e,t),n)};var V=[];Y.parseNew=function(){var e=this.startNode(),t=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(v.dot))return e.meta=t,e.property=this.parseIdent(!0),"target"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is new.target"),this.inFunction||this.raiseRecoverable(e.start,"new.target can only be used in functions"),this.finishNode(e,"MetaProperty");var n=this.start,a=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(),n,a,!0),this.eat(v.parenL)?e.arguments=this.parseExprList(v.parenR,this.options.ecmaVersion>=8,!1):e.arguments=V,this.finishNode(e,"NewExpression")},Y.parseTemplateElement=function(){var e=this.startNode();return e.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),e.tail=this.type===v.backQuote,this.finishNode(e,"TemplateElement")},Y.parseTemplate=function(){var e=this.startNode();this.next(),e.expressions=[];var t=this.parseTemplateElement();for(e.quasis=[t];!t.tail;)this.expect(v.dollarBraceL),e.expressions.push(this.parseExpression()),this.expect(v.braceR),e.quasis.push(t=this.parseTemplateElement());return this.next(),this.finishNode(e,"TemplateLiteral")},Y.parseObj=function(e,t){var n=this.startNode(),a=!0,i={};for(n.properties=[],this.next();!this.eat(v.braceR);){if(a)a=!1;else if(this.expect(v.comma),this.afterTrailingComma(v.braceR))break;var r,o,s,l,c=this.startNode();this.options.ecmaVersion>=6&&(c.method=!1,c.shorthand=!1,(e||t)&&(s=this.start,l=this.startLoc),e||(r=this.eat(v.star))),this.parsePropertyName(c),e||!(this.options.ecmaVersion>=8)||r||c.computed||"Identifier"!==c.key.type||"async"!==c.key.name||this.type===v.parenL||this.type===v.colon||this.canInsertSemicolon()?o=!1:(o=!0,this.parsePropertyName(c,t)),this.parsePropertyValue(c,e,r,o,s,l,t),this.checkPropClash(c,i),n.properties.push(this.finishNode(c,"Property"))}return this.finishNode(n,e?"ObjectPattern":"ObjectExpression")},Y.parsePropertyValue=function(e,t,n,a,i,r,o){if((n||a)&&this.type===v.colon&&this.unexpected(),this.eat(v.colon))e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,o),e.kind="init";else if(this.options.ecmaVersion>=6&&this.type===v.parenL)t&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(n,a);else if(this.options.ecmaVersion>=5&&!e.computed&&"Identifier"===e.key.type&&("get"===e.key.name||"set"===e.key.name)&&this.type!=v.comma&&this.type!=v.braceR){(n||a||t)&&this.unexpected(),e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var s="get"===e.kind?0:1;if(e.value.params.length!==s){var l=e.value.start;"get"===e.kind?this.raiseRecoverable(l,"getter should have no params"):this.raiseRecoverable(l,"setter should have exactly one param")}else"set"===e.kind&&"RestElement"===e.value.params[0].type&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")}else this.options.ecmaVersion>=6&&!e.computed&&"Identifier"===e.key.type?((this.keywords.test(e.key.name)||(this.strict?this.reservedWordsStrict:this.reservedWords).test(e.key.name)||this.inGenerator&&"yield"==e.key.name||this.inAsync&&"await"==e.key.name)&&this.raiseRecoverable(e.key.start,"'"+e.key.name+"' can not be used as shorthand property"),e.kind="init",t?e.value=this.parseMaybeDefault(i,r,e.key):this.type===v.eq&&o?(o.shorthandAssign<0&&(o.shorthandAssign=this.start),e.value=this.parseMaybeDefault(i,r,e.key)):e.value=e.key,e.shorthand=!0):this.unexpected()},Y.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(v.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(v.bracketR),e.key;e.computed=!1}return e.key=this.type===v.num||this.type===v.string?this.parseExprAtom():this.parseIdent(!0)},Y.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=!1,e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},Y.parseMethod=function(e,t){var n=this.startNode(),a=this.inGenerator,i=this.inAsync,r=this.yieldPos,o=this.awaitPos,s=this.inFunction;return this.initFunction(n),this.options.ecmaVersion>=6&&(n.generator=e),this.options.ecmaVersion>=8&&(n.async=!!t),this.inGenerator=n.generator,this.inAsync=n.async,this.yieldPos=0,this.awaitPos=0,this.inFunction=!0,this.enterFunctionScope(),this.expect(v.parenL),n.params=this.parseBindingList(v.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(n,!1),this.inGenerator=a,this.inAsync=i,this.yieldPos=r,this.awaitPos=o,this.inFunction=s,this.finishNode(n,"FunctionExpression")},Y.parseArrowExpression=function(e,t,n){var a=this.inGenerator,i=this.inAsync,r=this.yieldPos,o=this.awaitPos,s=this.inFunction;return this.enterFunctionScope(),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!n),this.inGenerator=!1,this.inAsync=e.async,this.yieldPos=0,this.awaitPos=0,this.inFunction=!0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0),this.inGenerator=a,this.inAsync=i,this.yieldPos=r,this.awaitPos=o,this.inFunction=s,this.finishNode(e,"ArrowFunctionExpression")},Y.parseFunctionBody=function(e,t){var n=t&&this.type!==v.braceL,a=this.strict,i=!1;if(n)e.body=this.parseMaybeAssign(),e.expression=!0,this.checkParams(e,!1);else{var r=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);a&&!r||(i=this.strictDirective(this.end))&&r&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list");var o=this.labels;this.labels=[],i&&(this.strict=!0),this.checkParams(e,!a&&!i&&!t&&this.isSimpleParamList(e.params)),e.body=this.parseBlock(!1),e.expression=!1,this.labels=o}this.exitFunctionScope(),this.strict&&e.id&&this.checkLVal(e.id,"none"),this.strict=a},Y.isSimpleParamList=function(e){for(var t=0;t=6||-1==this.input.slice(this.start,this.end).indexOf("\\"))&&this.raiseRecoverable(this.start,"The keyword '"+this.value+"' is reserved"),this.inGenerator&&"yield"===this.value&&this.raiseRecoverable(this.start,"Can not use 'yield' as identifier inside a generator"),this.inAsync&&"await"===this.value&&this.raiseRecoverable(this.start,"Can not use 'await' as identifier inside an async function"),t.name=this.value):e&&this.type.keyword?t.name=this.type.keyword:this.unexpected(),this.next(),this.finishNode(t,"Identifier")},Y.parseYield=function(){this.yieldPos||(this.yieldPos=this.start);var e=this.startNode();return this.next(),this.type==v.semi||this.canInsertSemicolon()||this.type!=v.star&&!this.type.startsExpr?(e.delegate=!1,e.argument=null):(e.delegate=this.eat(v.star),e.argument=this.parseMaybeAssign()),this.finishNode(e,"YieldExpression")},Y.parseAwait=function(){this.awaitPos||(this.awaitPos=this.start);var e=this.startNode();return this.next(),e.argument=this.parseMaybeUnary(null,!0),this.finishNode(e,"AwaitExpression")};var J=j.prototype;J.raise=function(e,t){var n=M(this.input,e);t+=" ("+n.line+":"+n.column+")";var a=new SyntaxError(t);throw a.pos=e,a.loc=n,a.raisedAt=this.pos,a},J.raiseRecoverable=J.raise,J.curPosition=function(){if(this.options.locations)return new I(this.curLine,this.pos-this.lineStart)};var z=j.prototype,$=Object.assign||function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];for(var a=0;a=0;e--)if(this.context[e].generator)return!0;return!1},ne.updateContext=function(e){var t,n=this.type;n.keyword&&e==v.dot?this.exprAllowed=!1:(t=n.updateContext)?t.call(this,e):this.exprAllowed=n.beforeExpr},v.parenR.updateContext=v.braceR.updateContext=function(){if(1!=this.context.length){var e,t=this.context.pop();t===te.b_stat&&(e=this.curContext())&&"function"===e.token?(this.context.pop(),this.exprAllowed=!1):this.exprAllowed=t===te.b_tmpl||!t.isExpr}else this.exprAllowed=!0},v.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?te.b_stat:te.b_expr),this.exprAllowed=!0},v.dollarBraceL.updateContext=function(){this.context.push(te.b_tmpl),this.exprAllowed=!0},v.parenL.updateContext=function(e){var t=e===v._if||e===v._for||e===v._with||e===v._while;this.context.push(t?te.p_stat:te.p_expr),this.exprAllowed=!0},v.incDec.updateContext=function(){},v._function.updateContext=function(e){e.beforeExpr&&e!==v.semi&&e!==v._else&&(e!==v.colon&&e!==v.braceL||this.curContext()!==te.b_stat)&&this.context.push(te.f_expr),this.exprAllowed=!1},v.backQuote.updateContext=function(){this.curContext()===te.q_tmpl?this.context.pop():this.context.push(te.q_tmpl),this.exprAllowed=!1},v.star.updateContext=function(e){e==v._function&&(this.curContext()===te.f_expr?this.context[this.context.length-1]=te.f_expr_gen:this.context.push(te.f_gen)),this.exprAllowed=!0},v.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&("of"==this.value&&!this.exprAllowed||"yield"==this.value&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var ae=function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,e.options.locations&&(this.loc=new N(e,e.startLoc,e.endLoc)),e.options.ranges&&(this.range=[e.start,e.end])},ie=j.prototype,re="object"==typeof Packages&&"[object JavaPackage]"==Object.prototype.toString.call(Packages);function oe(e,t,n,a){try{return new RegExp(e,t)}catch(e){if(void 0!==n)throw e instanceof SyntaxError&&a.raise(n,"Error parsing regular expression: "+e.message),e}}ie.next=function(){this.options.onToken&&this.options.onToken(new ae(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},ie.getToken=function(){return this.next(),new ae(this)},"undefined"!=typeof Symbol&&(ie[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===v.eof,value:t}}}}),ie.curContext=function(){return this.context[this.context.length-1]},ie.nextToken=function(){var e=this.curContext();return e&&e.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(v.eof):e.override?e.override(this):void this.readToken(this.fullCharCodeAtPos())},ie.readToken=function(e){return d(e,this.options.ecmaVersion>=6)||92===e?this.readWord():this.getTokenFromCode(e)},ie.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);if(e<=55295||e>=57344)return e;var t=this.input.charCodeAt(this.pos+1);return(e<<10)+t-56613888},ie.skipBlockComment=function(){var e,t=this.options.onComment&&this.curPosition(),n=this.pos,a=this.input.indexOf("*/",this.pos+=2);if(-1===a&&this.raise(this.pos-2,"Unterminated comment"),this.pos=a+2,this.options.locations)for(k.lastIndex=n;(e=k.exec(this.input))&&e.index8&&e<14||e>=5760&&O.test(String.fromCharCode(e))))break e;++this.pos}}},ie.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var n=this.type;this.type=e,this.value=t,this.updateContext(n)},ie.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===e&&46===t?(this.pos+=3,this.finishToken(v.ellipsis)):(++this.pos,this.finishToken(v.dot))},ie.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===e?this.finishOp(v.assign,2):this.finishOp(v.slash,1)},ie.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),n=1,a=42===e?v.star:v.modulo;return this.options.ecmaVersion>=7&&42===t&&(++n,a=v.starstar,t=this.input.charCodeAt(this.pos+2)),61===t?this.finishOp(v.assign,n+1):this.finishOp(a,n)},ie.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?this.finishOp(124===e?v.logicalOR:v.logicalAND,2):61===t?this.finishOp(v.assign,2):this.finishOp(124===e?v.bitwiseOR:v.bitwiseAND,1)},ie.readToken_caret=function(){var e=this.input.charCodeAt(this.pos+1);return 61===e?this.finishOp(v.assign,2):this.finishOp(v.bitwiseXOR,1)},ie.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?45==t&&62==this.input.charCodeAt(this.pos+2)&&_.test(this.input.slice(this.lastTokEnd,this.pos))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(v.incDec,2):61===t?this.finishOp(v.assign,2):this.finishOp(v.plusMin,1)},ie.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),n=1;return t===e?(n=62===e&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+n)?this.finishOp(v.assign,n+1):this.finishOp(v.bitShift,n)):33==t&&60==e&&45==this.input.charCodeAt(this.pos+2)&&45==this.input.charCodeAt(this.pos+3)?(this.inModule&&this.unexpected(),this.skipLineComment(4),this.skipSpace(),this.nextToken()):(61===t&&(n=2),this.finishOp(v.relational,n))},ie.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return 61===t?this.finishOp(v.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===e&&62===t&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(v.arrow)):this.finishOp(61===e?v.eq:v.prefix,1)},ie.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(v.parenL);case 41:return++this.pos,this.finishToken(v.parenR);case 59:return++this.pos,this.finishToken(v.semi);case 44:return++this.pos,this.finishToken(v.comma);case 91:return++this.pos,this.finishToken(v.bracketL);case 93:return++this.pos,this.finishToken(v.bracketR);case 123:return++this.pos,this.finishToken(v.braceL);case 125:return++this.pos,this.finishToken(v.braceR);case 58:return++this.pos,this.finishToken(v.colon);case 63:return++this.pos,this.finishToken(v.question);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(v.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(120===t||88===t)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===t||79===t)return this.readRadixNumber(8);if(98===t||66===t)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 126:return this.finishOp(v.prefix,1)}this.raise(this.pos,"Unexpected character '"+le(e)+"'")},ie.finishOp=function(e,t){var n=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,n)};var se=!!oe("￿","u");function le(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}ie.readRegexp=function(){for(var e,t,n=this,a=this.pos;;){n.pos>=n.input.length&&n.raise(a,"Unterminated regular expression");var i=n.input.charAt(n.pos);if(_.test(i)&&n.raise(a,"Unterminated regular expression"),e)e=!1;else{if("["===i)t=!0;else if("]"===i&&t)t=!1;else if("/"===i&&!t)break;e="\\"===i}++n.pos}var r=this.input.slice(a,this.pos);++this.pos;var o=this.readWord1(),s=r,l="";if(o){var c=/^[gim]*$/;this.options.ecmaVersion>=6&&(c=/^[gimuy]*$/),c.test(o)||this.raise(a,"Invalid regular expression flag"),o.indexOf("u")>=0&&(se?l="u":(s=(s=s.replace(/\\u\{([0-9a-fA-F]+)\}/g,function(e,t,i){return(t=Number("0x"+t))>1114111&&n.raise(a+i+3,"Code point out of bounds"),"x"})).replace(/\\u([a-fA-F0-9]{4})|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"x"),l=l.replace("u","")))}var u=null;return re||(oe(s,l,a,this),u=oe(r,o)),this.finishToken(v.regexp,{pattern:r,flags:o,value:u})},ie.readInt=function(e,t){for(var n=this.pos,a=0,i=0,r=null==t?1/0:t;i=97?s-97+10:s>=65?s-65+10:s>=48&&s<=57?s-48:1/0)>=e)break;++this.pos,a=a*e+o}return this.pos===n||null!=t&&this.pos-n!==t?null:a},ie.readRadixNumber=function(e){this.pos+=2;var t=this.readInt(e);return null==t&&this.raise(this.start+2,"Expected number in radix "+e),d(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(v.num,t)},ie.readNumber=function(e){var t=this.pos,n=!1,a=48===this.input.charCodeAt(this.pos);e||null!==this.readInt(10)||this.raise(t,"Invalid number"),a&&this.pos==t+1&&(a=!1);var i=this.input.charCodeAt(this.pos);46!==i||a||(++this.pos,this.readInt(10),n=!0,i=this.input.charCodeAt(this.pos)),69!==i&&101!==i||a||(43!==(i=this.input.charCodeAt(++this.pos))&&45!==i||++this.pos,null===this.readInt(10)&&this.raise(t,"Invalid number"),n=!0),d(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var r,o=this.input.slice(t,this.pos);return n?r=parseFloat(o):a&&1!==o.length?/[89]/.test(o)||this.strict?this.raise(t,"Invalid number"):r=parseInt(o,8):r=parseInt(o,10),this.finishToken(v.num,r)},ie.readCodePoint=function(){var e,t=this.input.charCodeAt(this.pos);if(123===t){this.options.ecmaVersion<6&&this.unexpected();var n=++this.pos;e=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,e>1114111&&this.raise(n,"Code point out of bounds")}else e=this.readHexChar(4);return e},ie.readString=function(e){for(var t="",n=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var a=this.input.charCodeAt(this.pos);if(a===e)break;92===a?(t+=this.input.slice(n,this.pos),t+=this.readEscapedChar(!1),n=this.pos):(E(a)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(n,this.pos++),this.finishToken(v.string,t)},ie.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var n=this.input.charCodeAt(this.pos);if(96===n||36===n&&123===this.input.charCodeAt(this.pos+1))return this.pos===this.start&&this.type===v.template?36===n?(this.pos+=2,this.finishToken(v.dollarBraceL)):(++this.pos,this.finishToken(v.backQuote)):(e+=this.input.slice(t,this.pos),this.finishToken(v.template,e));if(92===n)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(E(n)){switch(e+=this.input.slice(t,this.pos),++this.pos,n){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:e+="\n";break;default:e+=String.fromCharCode(n)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}},ie.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return"\n";case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return le(this.readCodePoint());case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";default:if(t>=48&&t<=55){var n=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],a=parseInt(n,8);return a>255&&(n=n.slice(0,-1),a=parseInt(n,8)),"0"!==n&&(this.strict||e)&&this.raise(this.pos-2,"Octal literal in strict mode"),this.pos+=n.length-1,String.fromCharCode(a)}return String.fromCharCode(t)}},ie.readHexChar=function(e){var t=this.pos,n=this.readInt(16,e);return null===n&&this.raise(t,"Bad character escape sequence"),n},ie.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,n=this.pos,a=this.options.ecmaVersion>=6;this.pos1?1:a<0?0:a}function o(e){null==e.baseDifficulty&&(e.baseDifficulty=e.hackDifficulty);var t=3;return(t+=e.baseDifficulty*i.a.hacking_exp_mult*.3)*a.BitNodeMultipliers.HackExpGain}function s(e){const t=(100-e.hackDifficulty)/100*((i.a.hacking_skill-(e.requiredHackingSkill-1))/i.a.hacking_skill)*i.a.hacking_money_mult/240;return t<0?0:t>1?1:t*a.BitNodeMultipliers.ScriptHackMoney}function l(e,t,n){const a=e.requiredHackingSkill*e.hackDifficulty;null==t&&(t=i.a.hacking_skill),null==n&&(n=i.a.intelligence);var r=2.5*a+500;return 5*(r/=t+50+.1*n)/i.a.hacking_speed_mult}function c(e,t,n){return 3.2*l(e,t,n)}function u(e,t,n){return 4*l(e,t,n)}},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var a=n(8);function i(e){Object(a.dialogBoxCreate)("Caught an exception: "+e+"

Filename: "+(e.fileName||"UNKNOWN FILE NAME")+"

Line Number: "+(e.lineNumber||"UNKNOWN LINE NUMBER")+"

This is a bug, please report to game developer with this message as well as details about how to reproduce the bug.

If you want to be safe, I suggest refreshing the game WITHOUT saving so that your safe doesn't get corrupted")}},function(e,t,n){"use strict";n.d(t,"b",function(){return o}),n.d(t,"c",function(){return s}),n.d(t,"a",function(){return l});var a=n(0),i=n(28),r=n(5);function o(e,t,n){return`ERROR: bladeburner.${e}() failed due to an invalid action specified. `+`Type: ${t}, Name: ${n}. Note that for contracts and operations, the `+"name of the operation is case-sensitive."}function s(e,t){return`Bladeburner.${e}() failed with exception: `+t}function l(e,t){const n=`${t}() 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";if(!(a.a.bladeburner instanceof i.a&&(7===a.a.bitNodeN||a.a.sourceFiles.some(e=>7===e.n))))throw Object(r.d)(e,n)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getElementById=function(e){const t=document.getElementById(e);if(null===t)throw new Error(`Unable to find element with id '${e}'`);return t}},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return O}),n.d(t,"c",function(){return p}),n.d(t,"d",function(){return g}),n.d(t,"b",function(){return m});var a=n(1),i=n(7),r=n(15),o=n(0),s=n(8),l=n(18),c=n(55),u=n(2),d=n(10),h=n(34);n(219);let p=!1,m=null;function g(e,t){p=e,m=e?t:null}e(document).keydown(function(e){if(p&&m&&0!=m.selectedNode.length)switch(e.keyCode){case 65:m.actionButtons[0].click();break;case 83:m.actionButtons[1].click();break;case 87:m.actionButtons[2].click();break;case 70:m.actionButtons[3].click();break;case 82:m.actionButtons[4].click();break;case 68:m.actionButtons[5].click()}});let y={Core:"CPU Core Node",Firewall:"Firewall Node",Database:"Database Node",Spam:"Spam Node",Transfer:"Transfer Node",Shield:"Shield Node"},f="Attacking",b="Scanning",v="Weakening",_="Fortifying",k="Overflowing";function E(e,t){this.type=e,this.atk=t.atk?t.atk:0,this.def=t.def?t.def:0,this.hp=t.hp?t.hp:0,this.maxhp=this.hp,this.plyrCtrl=!1,this.enmyCtrl=!1,this.pos=[0,0],this.el=null,this.action=null,this.targetedCount=0,this.conn=null}function O(e,t){this.faction=t,this.started=!1,this.time=18e4,this.playerCores=[],this.playerNodes=[],this.playerAtk=0,this.playerDef=0,this.enemyCores=[],this.enemyDatabases=[],this.enemyNodes=[],this.enemyAtk=0,this.enemyDef=0,this.miscNodes=[],this.selectedNode=[],this.actionButtons=[],this.availablePositions=[];for(var n=0;n<8;++n)for(var i=0;i<8;++i)this.availablePositions.push([n,i]);this.map=[];for(var r=0;r<8;++r)this.map.push([null,null,null,null,null,null,null,null]);this.jsplumbinstance=null,this.difficulty=e/a.a.HackingMissionRepToDiffConversion+1,console.log("difficulty: "+this.difficulty),this.reward=250+e/a.a.HackingMissionRepToRewardConversion}function C(e){e.selectedNode.length>0&&(e.selectedNode.forEach(function(t){t.deselect(e.actionButtons)}),e.selectedNode.length=0)}E.prototype.setPosition=function(e,t){this.pos=[e,t]},E.prototype.setControlledByPlayer=function(){this.plyrCtrl=!0,this.enmyCtrl=!1,this.el&&(this.el.classList.remove("hack-mission-enemy-node"),this.el.classList.add("hack-mission-player-node"))},E.prototype.setControlledByEnemy=function(){this.plyrCtrl=!1,this.enmyCtrl=!0,this.el&&(this.el.classList.remove("hack-mission-player-node"),this.el.classList.add("hack-mission-enemy-node"))},E.prototype.select=function(e){if(!this.enmyCtrl){this.el.classList.add("hack-mission-player-node-active");for(var t=0;t(this.start(),!1));var d=document.createElement("a");d.innerHTML="Forfeit Mission (Exit)",d.classList.add("a-link-button"),d.classList.add("hack-mission-header-element"),d.style.display="inline-block",d.addEventListener("click",()=>(this.finishMission(!1),!1));var h=document.createElement("p");h.setAttribute("id","hacking-mission-timer"),h.style.display="inline-block",h.style.margin="6px";var p=document.createElement("span");p.style.display="block",p.classList.add("hack-mission-action-buttons-container");for(var m=0;m<6;++m)this.actionButtons.push(document.createElement("a")),this.actionButtons[m].style.display="inline-block",this.actionButtons[m].classList.add("a-link-button-inactive"),this.actionButtons[m].classList.add("tooltip"),this.actionButtons[m].classList.add("hack-mission-header-element"),p.appendChild(this.actionButtons[m]);this.actionButtons[0].innerText="Attack(a)";var g=document.createElement("span");g.classList.add("tooltiptexthigh"),g.innerText="Lowers the targeted node's HP. The effectiveness of this depends on this node's Attack level, your hacking level, and the opponent's defense level.",this.actionButtons[0].appendChild(g),this.actionButtons[1].innerText="Scan(s)";var E=document.createElement("span");E.classList.add("tooltiptexthigh"),E.innerText="Lowers the targeted node's defense. The effectiveness of this depends on this node's Attack level, your hacking level, and the opponent's defense level.",this.actionButtons[1].appendChild(E),this.actionButtons[2].innerText="Weaken(w)";var O=document.createElement("span");O.classList.add("tooltiptexthigh"),O.innerText="Lowers the targeted node's attack. The effectiveness of this depends on this node's Attack level, your hacking level, and the opponent's defense level.",this.actionButtons[2].appendChild(O),this.actionButtons[3].innerText="Fortify(f)";var C=document.createElement("span");C.classList.add("tooltiptexthigh"),C.innerText="Raises this node's Defense level. The effectiveness of this depends on your hacking level",this.actionButtons[3].appendChild(C),this.actionButtons[4].innerText="Overflow(r)";var w=document.createElement("span");w.classList.add("tooltiptexthigh"),w.innerText="Raises this node's Attack level but lowers its Defense level. The effectiveness of this depends on your hacking level.",this.actionButtons[4].appendChild(w),this.actionButtons[5].innerText="Drop Connection(d)";var S=document.createElement("span");S.classList.add("tooltiptexthigh"),S.innerText="Removes this Node's current connection to some target Node, if it has one. This can also be done by simply clicking the white connection line.",this.actionButtons[5].appendChild(S);var T=document.createElement("p"),x=document.createElement("p");T.style.display="inline-block",x.style.display="inline-block",T.style.color="#00ccff",x.style.color="red",T.style.margin="4px",x.style.margin="4px",T.setAttribute("id","hacking-mission-player-stats"),x.setAttribute("id","hacking-mission-enemy-stats"),p.appendChild(T),p.appendChild(x),this.actionButtons[0].addEventListener("click",()=>{this.selectedNode.length>0?this.selectedNode[0].type===y.Core&&(this.setActionButtonsActive(this.selectedNode[0].type),this.setActionButton(f,!1),this.selectedNode.forEach(function(e){e.action=f})):console.log("ERR: Pressing Action button without selected node")}),this.actionButtons[1].addEventListener("click",()=>{if(this.selectedNode.length>0){var e=this.selectedNode[0].type;e!==y.Core&&e!==y.Transfer||(this.setActionButtonsActive(e),this.setActionButton(b,!1),this.selectedNode.forEach(function(e){e.action=b}))}else console.log("ERR: Pressing Action button without selected node")}),this.actionButtons[2].addEventListener("click",()=>{if(this.selectedNode.length>0){var e=this.selectedNode[0].type;e!==y.Core&&e!==y.Transfer||(this.setActionButtonsActive(e),this.setActionButton(v,!1),this.selectedNode.forEach(function(e){e.action=v}))}else console.log("ERR: Pressing Action button without selected node")}),this.actionButtons[3].addEventListener("click",()=>{this.selectedNode.length>0?(this.setActionButtonsActive(this.selectedNode[0].type),this.setActionButton(_,!1),this.selectedNode.forEach(function(e){e.action=_})):console.log("ERR: Pressing Action button without selected node")}),this.actionButtons[4].addEventListener("click",()=>{if(this.selectedNode.length>0){var e=this.selectedNode[0].type;e!==y.Core&&e!==y.Transfer||(this.setActionButtonsActive(e),this.setActionButton(k,!1),this.selectedNode.forEach(function(e){e.action=k}))}else console.log("ERR: Pressing Action button without selected node")}),this.actionButtons[5].addEventListener("click",()=>{this.selectedNode.length>0?this.selectedNode.forEach(function(e){if(e.conn){var t=e.conn.endpoints;t[0].detachFrom(t[1])}e.action=_}):console.log("ERR: Pressing Action button without selected node")});var R=document.createElement("p");e.appendChild(i),e.appendChild(r),e.appendChild(l),e.appendChild(c),e.appendChild(d),e.appendChild(h),e.appendChild(p),e.appendChild(R)},O.prototype.setActionButtonsInactive=function(){for(var e=0;ePlayer Defense: "+Object(u.formatNumber)(this.playerDef,1),e=0;for(t=0;tEnemy Defense: "+Object(u.formatNumber)(this.enemyDef,1)},O.prototype.calculateDefenses=function(){for(var e=0,t=0;tPlayer Defense: "+Object(u.formatNumber)(this.playerDef,1),e=0;for(t=0;tEnemy Defense: "+Object(u.formatNumber)(this.enemyDef,1)},O.prototype.removeAvailablePosition=function(e,t){for(var n=0;nDef: "+Object(u.formatNumber)(e.def,1),n.innerHTML=a,t.appendChild(n),document.getElementById("hacking-mission-map").appendChild(t)},O.prototype.updateNodeDomElement=function(e){if(null!=e.el){var t,n="hacking-mission-node-"+e.pos[0]+"-"+e.pos[1],a=(document.getElementById(n),document.getElementById(n+"-txt"));switch(e.type){case y.Core:t="CPU Core
HP: "+Object(u.formatNumber)(e.hp,1);break;case y.Firewall:t="Firewall
HP: "+Object(u.formatNumber)(e.hp,1);break;case y.Database:t="Database
HP: "+Object(u.formatNumber)(e.hp,1);break;case y.Spam:t="Spam
HP: "+Object(u.formatNumber)(e.hp,1);break;case y.Transfer:t="Transfer
HP: "+Object(u.formatNumber)(e.hp,1);break;case y.Shield:default:t="Shield
HP: "+Object(u.formatNumber)(e.hp,1)}t+="
Atk: "+Object(u.formatNumber)(e.atk,1)+"
Def: "+Object(u.formatNumber)(e.def,1),e.action&&(t+="
"+e.action),a.innerHTML=t}else console.log("ERR: Calling updateNodeDomElement on a Node without an element")},O.prototype.getNodeFromElement=function(e){var t=(Object(h.isString)(e)?e:e.id).replace("hacking-mission-node-","").split("-");if(2!=t.length)return console.log("ERROR Parsing Hacking Mission Node Id. Could not find coordinates"),null;var n=t[0],a=t[1];return isNaN(n)||isNaN(a)||n>=8||a>=8||n<0||a<0?(console.log("ERROR: Unexpected values for x and y: "+n+", "+a),null):this.map[n][a]},O.prototype.configurePlayerNodeElement=function(e){null==this.getNodeFromElement(e)&&console.log("Error getting Node object");var t=this;function n(){!function(e,t){var n=e.getNodeFromElement(t);null==n&&console.log("Error getting Node object"),n.plyrCtrl&&(C(e),n.select(e.actionButtons),e.selectedNode.push(n))}(t,e)}e.addEventListener("click",n),e.addEventListener("dblclick",function(){!function(e,t){var n=e.getNodeFromElement(t);if(null==n&&console.log("ERROR: Getting Node Object in multiselectNode()"),n.plyrCtrl){C(e);var a=n.type;a===y.Core?e.playerCores.forEach(function(t){t.select(e.actionButtons),e.selectedNode.push(t)}):e.playerNodes.forEach(function(t){t.type===a&&(t.select(e.actionButtons),e.selectedNode.push(t))})}}(t,e)}),e.firstChild&&e.firstChild.addEventListener("click",n)},O.prototype.configureEnemyNodeElement=function(e){for(var t=this.getNodeFromElement(e),n=0;n0&&this.map[t-1][n].plyrCtrl)||(!!(t<7&&this.map[t+1][n].plyrCtrl)||(!!(n>0&&this.map[t][n-1].plyrCtrl)||!!(n<7&&this.map[t][n+1].plyrCtrl)))},O.prototype.nodeReachableByEnemy=function(e){if(null==e)return!1;var t=e.pos[0],n=e.pos[1];return!!(t>0&&this.map[t-1][n].enmyCtrl)||(!!(t<7&&this.map[t+1][n].enmyCtrl)||(!!(n>0&&this.map[t][n-1].enmyCtrl)||!!(n<7&&this.map[t][n+1].enmyCtrl)))},O.prototype.start=function(){this.started=!0,this.initJsPlumb();var e=Object(l.clearEventListeners)("hack-mission-start-btn");e.classList.remove("a-link-button"),e.classList.add("a-link-button-inactive")},O.prototype.initJsPlumb=function(){var e=jsPlumb.getInstance({DragOptions:{cursor:"pointer",zIndex:2e3},PaintStyle:{gradient:{stops:[[0,"#FFFFFF"],[1,"#FFFFFF"]]},stroke:"#FFFFFF",strokeWidth:8}});this.jsplumbinstance=e;for(var t=0;t{var t=this.getNodeFromElement(e.target);this.getNodeFromElement(e.source).enmyCtrl||(this.nodeReachable(t)?(this.getNodeFromElement(e.source).conn=e.connection,++(t=this.getNodeFromElement(e.target)).targetedCount):e.sourceEndpoint.detachFrom(e.targetEndpoint))}),e.bind("connectionDetached",(e,t)=>{this.getNodeFromElement(e.source).conn=null,this.getNodeFromElement(e.target).untarget()})},O.prototype.dropAllConnectionsFromNode=function(e){for(var t=this.jsplumbinstance.getAllConnections(),n=t.length-1;n>=0;--n)t[n].source==e.el&&t[n].endpoints[0].detachFrom(t[n].endpoints[1])},O.prototype.dropAllConnectionsToNode=function(e){for(var t=this.jsplumbinstance.getAllConnections(),n=t.length-1;n>=0;--n)t[n].target==e.el&&t[n].endpoints[0].detachFrom(t[n].endpoints[1]);e.beingTargeted=!1};var w=0;O.prototype.process=function(e=1){if(this.started&&!((w+=e)<2)){var t=!1;this.playerCores.forEach(e=>{t|=this.processNode(e,w)}),this.playerNodes.forEach(e=>{e.type!==y.Transfer&&e.type!==y.Shield&&e.type!==y.Firewall||(t|=this.processNode(e,w))}),this.enemyCores.forEach(e=>{this.enemyAISelectAction(e),t|=this.processNode(e,w)}),this.enemyNodes.forEach(e=>{e.type!==y.Transfer&&e.type!==y.Shield&&e.type!==y.Firewall||(this.enemyAISelectAction(e),t|=this.processNode(e,w))}),this.enemyDatabases.forEach(e=>{e.maxhp+=.1*w,e.hp+=.1*w}),t&&(this.calculateAttacks(),this.calculateDefenses()),0!==this.enemyDatabases.length?0!==this.playerCores.length?(this.miscNodes.forEach(e=>{e.def+=.1*w,e.maxhp+=.05*w,e.hp+=.1*w,e.hp>e.maxhp&&(e.hp=e.maxhp),this.updateNodeDomElement(e)}),this.time-=w*i.Engine._idleSpeed,this.time<=0?this.finishMission(!1):(this.updateTimer(),w=0)):this.finishMission(!1):this.finishMission(!0)}},O.prototype.processNode=function(e,t=1){if(null!=e.action){var n,i,r=null;e.conn&&(null==(r=null!=e.conn.target?this.getNodeFromElement(e.conn.target):this.getNodeFromElement(e.conn.targetId))||(r.plyrCtrl?(n=this.playerDef,i=this.enemyAtk):r.enmyCtrl?(n=this.enemyDef,i=this.playerAtk):(n=r.def,i=e.plyrCtrl?this.playerAtk:this.enemyAtk)));var s=!1,l=e.plyrCtrl,c=this.difficulty*a.a.HackingMissionDifficultyToHacking;switch(e.action){case f:if(null==r)break;if(null==e.conn)break;var u=this.calculateAttackDamage(i,n,l?o.a.hacking_skill:c);r.hp-=u/5*t;break;case b:if(null==r)break;if(null==e.conn)break;var d=this.calculateScanEffect(i,n,l?o.a.hacking_skill:c);r.def-=d/5*t,s=!0;break;case v:if(null==r)break;if(null==e.conn)break;d=this.calculateWeakenEffect(i,n,l?o.a.hacking_skill:c);r.atk-=d/5*t,s=!0;break;case _:d=this.calculateFortifyEffect(o.a.hacking_skill);e.def+=d/5*t,s=!0;break;case k:d=this.calculateOverflowEffect(o.a.hacking_skill);if(e.def{0===e.targetedCount&&(e.def*=a.a.HackingMissionMiscDefenseIncrease)})}return this.updateNodeDomElement(e),r&&this.updateNodeDomElement(r),s}},O.prototype.enemyAISelectAction=function(e){if(null!=e)switch(e.type){case y.Core:if(null==e.conn){if(0===this.miscNodes.length){var t=Object(d.getRandomInt)(0,this.playerNodes.length-1);if(n=0===this.playerNodes.length?null:this.playerNodes[t],this.nodeReachableByEnemy(n))e.conn=this.jsplumbinstance.connect({source:e.el,target:n.el}),++n.targetedCount;else{if(t=Object(d.getRandomInt)(0,this.playerCores.length-1),0===this.playerCores.length)return;n=this.playerCores[t],this.nodeReachableByEnemy(n)&&(e.conn=this.jsplumbinstance.connect({source:e.el,target:n.el}),++n.targetedCount)}}else{t=Object(d.getRandomInt)(0,this.miscNodes.length-1);var n=this.miscNodes[t];this.nodeReachableByEnemy(n)&&(e.conn=this.jsplumbinstance.connect({source:e.el,target:n.el}),++n.targetedCount)}e.action=_}else{var a;null==(a=e.conn.target?this.getNodeFromElement(e.conn.target):this.getNodeFromElement(e.conn.targetId))&&console.log("Error getting Target node Object in enemyAISelectAction()"),a.def>this.enemyAtk+15?e.def<50?e.action=_:e.action=k:Math.abs(a.def-this.enemyAtk)<=15?e.action=b:e.action=f}break;case y.Transfer:e.def<125?e.action=_:e.action=k;break;case y.Firewall:case y.Shield:e.action=_}};O.prototype.calculateAttackDamage=function(e,t,n=0){return Math.max(.55*(e+n/80-t),1)},O.prototype.calculateScanEffect=function(e,t,n=0){return Math.max(.6*(e+n/25-.95*t),2)},O.prototype.calculateWeakenEffect=function(e,t,n=0){return Math.max(e+n/25-.95*t,2)},O.prototype.calculateFortifyEffect=function(e=0){return.9*e/130},O.prototype.calculateOverflowEffect=function(e=0){return.95*e/130},O.prototype.updateTimer=function(){var e=document.getElementById("hacking-mission-timer"),t=Math.round(this.time/1e3),n=Math.trunc(t/60);t%=60;var a=("0"+n).slice(-2)+":"+("0"+t).slice(-2);e.innerText="Time left: "+a},O.prototype.finishMission=function(e){if(p=!1,m=null,e){var t=1+this.faction.favor/100;console.log("Hacking mission base reward: "+this.reward),console.log("favorMult: "+t),console.log("rep mult: "+o.a.faction_rep_mult);var n=this.reward*o.a.faction_rep_mult*t;Object(s.dialogBoxCreate)("Mission won! You earned "+Object(u.formatNumber)(n,3)+" reputation with "+this.faction.name),o.a.gainIntelligenceExp(this.difficulty*a.a.IntelligenceHackingMissionBaseExpGain),this.faction.playerReputation+=n}else Object(s.dialogBoxCreate)("Mission lost/forfeited! You did not gain any faction reputation.");for(var l=document.getElementById("mission-container");l.firstChild;)l.removeChild(l.firstChild);document.getElementById("mainmenu-container").style.visibility="visible",document.getElementById("character-overview-wrapper").style.visibility="visible",i.Engine.loadFactionContent(),Object(r.c)(this.faction.name)}}).call(this,n(60))},function(e,t,n){"use strict";(function(e){n.d(t,"b",function(){return B}),n.d(t,"a",function(){return F});var a=n(39),i=n(38),r=n(1),o=n(22),s=n(69),l=n(7),c=n(40),u=n(42),d=n(85),h=n(30),p=n(70),m=n(35),g=n(23),y=n(0),f=n(53),b=n(31),v=n(11),_=(n(19),n(27)),k=n(59),E=n(2),O=n(16),C=n(12),w=n(32),S=(n(55),n(34)),T=n(48),x=n(74),R=n(68),I=n(17),N=n(6),M=n(126),P=n.n(M),A=n(125),L=n(124);function B(){Object(N.post)("Bitburner v"+r.a.Version)}e(document).keydown(function(e){if(O.routing.isOn(O.Page.Terminal)){var t=document.getElementById("terminal-input-text-box");if(null==t||e.ctrlKey||e.shiftKey||F.contractOpen||t.focus(),e.keyCode===w.KEY.ENTER){e.preventDefault();var n=t.value;if(Object(N.post)("["+(c.a.ENABLE_TIMESTAMPS?Object(x.getTimestamp)()+" ":"")+y.a.getCurrentServer().hostname+" ~]> "+n),n.length>0){F.resetTerminalInput();const e=n.split(";");for(let t=0;to)&&(F.commandHistoryIndex=o),0!=i&&--F.commandHistoryIndex;var r=F.commandHistory[F.commandHistoryIndex];t.value=r,setTimeout(function(){t.selectionStart=t.selectionEnd=1e4},0)}if(e.keyCode===w.KEY.DOWNARROW||c.a.ENABLE_BASH_HOTKEYS&&e.keyCode===w.KEY.M&&e.ctrlKey){if(c.a.ENABLE_BASH_HOTKEYS&&e.preventDefault(),null==t)return;var o;i=F.commandHistoryIndex;if(0==(o=F.commandHistory.length))return;if((i<0||i>o)&&(F.commandHistoryIndex=o),i==o||i==o-1)F.commandHistoryIndex=o,t.value="";else{++F.commandHistoryIndex;r=F.commandHistory[F.commandHistoryIndex];t.value=r}}if(e.keyCode===w.KEY.TAB){if(e.preventDefault(),null==t)return;var u=t.value;if(""==u)return;const i=u.lastIndexOf(";");-1!==i&&(u=u.slice(i+1));var d=(u=(u=u.trim()).replace(/\s\s+/g," ")).split(" "),h=d.length-2;h<-1&&(h=0);var p=function(e,t=0){var n=[];n=n.concat(Object.keys(a.b));var i=y.a.getCurrentServer();if((e=e.toLowerCase()).startsWith("./")&&-1==t){for(var r=0;r=0;--i)n[i].toLowerCase().startsWith(e.toLowerCase())||n.splice(i,1);else for(var i=n.length-1;i>=0;--i)n[i].toLowerCase().startsWith(t.toLowerCase())||n.splice(i,1);var r="";if(0==n.length)return;if(1==n.length){r=""==t?n[0]+" ":e+" "+n[0];const a=document.getElementById("terminal-input-text-box"),i=a.value,o=i.lastIndexOf(";");a.value=-1===o?r:a.value.slice(0,o+1)+" "+r,document.getElementById("terminal-input-text-box").focus()}else{for(var o=Object(E.longestCommonStart)(n),s="",i=0;i "+e),Object(N.post)(s)):(document.getElementById("terminal-input-text-box").value=o,document.getElementById("terminal-input-text-box").focus()):o==t?(Object(N.post)("> "+e+" "+t),Object(N.post)(s)):(document.getElementById("terminal-input-text-box").value=e+" "+o,document.getElementById("terminal-input-text-box").focus())}}(n,g,p),t.focus()}c.a.ENABLE_BASH_HOTKEYS&&(e.keyCode===w.KEY.A&&e.ctrlKey&&(e.preventDefault(),F.moveTextCursor("home")),e.keyCode===w.KEY.E&&e.ctrlKey&&(e.preventDefault(),F.moveTextCursor("end")),e.keyCode===w.KEY.B&&e.ctrlKey&&(e.preventDefault(),F.moveTextCursor("prevchar")),e.keyCode===w.KEY.B&&e.altKey&&(e.preventDefault(),F.moveTextCursor("prevword")),e.keyCode===w.KEY.F&&e.ctrlKey&&(e.preventDefault(),F.moveTextCursor("nextchar")),e.keyCode===w.KEY.F&&e.altKey&&(e.preventDefault(),F.moveTextCursor("nextword")),e.keyCode!==w.KEY.H&&e.keyCode!==w.KEY.D||!e.ctrlKey||(F.modifyInput("backspace"),e.preventDefault()))}});let j=!1,D=!1;e(document).ready(function(){O.routing.isOn(O.Page.Terminal)&&e(".terminal-input").focus()}),e(document).keydown(function(e){if(O.routing.isOn(O.Page.Terminal))if(e.which==w.KEY.CTRL)j=!0;else if(e.shiftKey)D=!0;else if(j||D||F.contractOpen);else{var t=document.getElementById("terminal-input-text-box");null!=t&&t.focus(),j=!1,D=!1}}),e(document).keyup(function(e){O.routing.isOn(O.Page.Terminal)&&(e.which==w.KEY.CTRL&&(j=!1),e.shiftKey&&(D=!1))});let F={hackFlag:!1,analyzeFlag:!1,actionStarted:!1,actionTime:0,commandHistory:[],commandHistoryIndex:0,contractOpen:!1,resetTerminalInput:function(){c.a.WRAP_INPUT?(document.getElementById("terminal-input-td").innerHTML="
["+y.a.getCurrentServer().hostname+' ~]$
",v.noCloneChecked=!!ye.cloneNode(!0).lastChild.defaultValue;var Ce=s.documentElement,xe=/^key/,Ae=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ee=/^([^.]*)(?:\.(.+)|)/;function ke(){return!0}function Se(){return!1}function Fe(){try{return s.activeElement}catch(e){}}function De(e,t,n,i,r,o){var s,a;if("object"==typeof t){for(a in"string"!=typeof n&&(i=i||n,n=void 0),t)De(e,a,n,i,t[a],o);return e}if(null==i&&null==r?(r=n,i=n=void 0):null==r&&("string"==typeof n?(r=i,i=void 0):(r=i,i=n,n=void 0)),!1===r)r=Se;else if(!r)return e;return 1===o&&(s=r,(r=function(e){return x().off(e),s.apply(this,arguments)}).guid=s.guid||(s.guid=x.guid++)),e.each(function(){x.event.add(this,t,r,i,n)})}x.event={global:{},add:function(e,t,n,i,r){var o,s,a,l,c,u,h,d,f,p,g,m=J.get(e);if(m)for(n.handler&&(n=(o=n).handler,r=o.selector),r&&x.find.matchesSelector(Ce,r),n.guid||(n.guid=x.guid++),(l=m.events)||(l=m.events={}),(s=m.handle)||(s=m.handle=function(t){return void 0!==x&&x.event.triggered!==t.type?x.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match($)||[""]).length;c--;)f=g=(a=Ee.exec(t[c])||[])[1],p=(a[2]||"").split(".").sort(),f&&(h=x.event.special[f]||{},f=(r?h.delegateType:h.bindType)||f,h=x.event.special[f]||{},u=x.extend({type:f,origType:g,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&x.expr.match.needsContext.test(r),namespace:p.join(".")},o),(d=l[f])||((d=l[f]=[]).delegateCount=0,h.setup&&!1!==h.setup.call(e,i,p,s)||e.addEventListener&&e.addEventListener(f,s)),h.add&&(h.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),r?d.splice(d.delegateCount++,0,u):d.push(u),x.event.global[f]=!0)},remove:function(e,t,n,i,r){var o,s,a,l,c,u,h,d,f,p,g,m=J.hasData(e)&&J.get(e);if(m&&(l=m.events)){for(c=(t=(t||"").match($)||[""]).length;c--;)if(f=g=(a=Ee.exec(t[c])||[])[1],p=(a[2]||"").split(".").sort(),f){for(h=x.event.special[f]||{},d=l[f=(i?h.delegateType:h.bindType)||f]||[],a=a[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=d.length;o--;)u=d[o],!r&&g!==u.origType||n&&n.guid!==u.guid||a&&!a.test(u.namespace)||i&&i!==u.selector&&("**"!==i||!u.selector)||(d.splice(o,1),u.selector&&d.delegateCount--,h.remove&&h.remove.call(e,u));s&&!d.length&&(h.teardown&&!1!==h.teardown.call(e,p,m.handle)||x.removeEvent(e,f,m.handle),delete l[f])}else for(f in l)x.event.remove(e,f+t[c],n,i,!0);x.isEmptyObject(l)&&J.remove(e,"handle events")}},dispatch:function(e){var t,n,i,r,o,s,a=x.event.fix(e),l=new Array(arguments.length),c=(J.get(this,"events")||{})[a.type]||[],u=x.event.special[a.type]||{};for(l[0]=a,t=1;t=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(o=[],s={},n=0;n-1:x.find(r,this,null,[c]).length),s[r]&&o.push(i);o.length&&a.push({elem:c,handlers:o})}return c=this,l\x20\t\r\n\f]*)[^>]*)\/>/gi,Be=/\s*$/g;function Pe(e,t){return T(e,"table")&&T(11!==t.nodeType?t:t.firstChild,"tr")&&x(e).children("tbody")[0]||e}function Re(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Oe(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function je(e,t){var n,i,r,o,s,a,l,c;if(1===t.nodeType){if(J.hasData(e)&&(o=J.access(e),s=J.set(t,o),c=o.events))for(r in delete s.handle,s.events={},c)for(n=0,i=c[r].length;n1&&"string"==typeof p&&!v.checkClone&&Le.test(p))return e.each(function(r){var o=e.eq(r);g&&(t[0]=p.call(this,r,o.html())),$e(o,t,n,i)});if(d&&(o=(r=_e(t,e[0].ownerDocument,!1,e,i)).firstChild,1===r.childNodes.length&&(r=o),o||i)){for(a=(s=x.map(me(r,"script"),Re)).length;h")},clone:function(e,t,n){var i,r,o,s,a,l,c,u=e.cloneNode(!0),h=x.contains(e.ownerDocument,e);if(!(v.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||x.isXMLDoc(e)))for(s=me(u),i=0,r=(o=me(e)).length;i0&&ve(s,!h&&me(e,"script")),u},cleanData:function(e){for(var t,n,i,r=x.event.special,o=0;void 0!==(n=e[o]);o++)if(X(n)){if(t=n[J.expando]){if(t.events)for(i in t.events)r[i]?x.event.remove(n,i):x.removeEvent(n,i,t.handle);n[J.expando]=void 0}n[Q.expando]&&(n[Q.expando]=void 0)}}}),x.fn.extend({detach:function(e){return Ie(this,e,!0)},remove:function(e){return Ie(this,e)},text:function(e){return V(this,function(e){return void 0===e?x.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return $e(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Pe(this,e).appendChild(e)})},prepend:function(){return $e(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Pe(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return $e(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return $e(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(x.cleanData(me(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return x.clone(this,e,t)})},html:function(e){return V(this,function(e){var t=this[0]||{},n=0,i=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Be.test(e)&&!ge[(fe.exec(e)||["",""])[1].toLowerCase()]){e=x.htmlPrefilter(e);try{for(;n=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-l-a-.5))),l}function et(e,t,n){var i=We(e),r=He(e,t,i),o="border-box"===x.css(e,"boxSizing",!1,i),s=o;if(Ne.test(r)){if(!n)return r;r="auto"}return s=s&&(v.boxSizingReliable()||r===e.style[t]),("auto"===r||!parseFloat(r)&&"inline"===x.css(e,"display",!1,i))&&(r=e["offset"+t[0].toUpperCase()+t.slice(1)],s=!0),(r=parseFloat(r)||0)+Qe(e,t,n||(o?"border":"content"),s,i,r)+"px"}function tt(e,t,n,i,r){return new tt.prototype.init(e,t,n,i,r)}x.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=He(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,o,s,a=Y(t),l=Ke.test(t),c=e.style;if(l||(t=Ze(a)),s=x.cssHooks[t]||x.cssHooks[a],void 0===n)return s&&"get"in s&&void 0!==(r=s.get(e,!1,i))?r:c[t];"string"===(o=typeof n)&&(r=re.exec(n))&&r[1]&&(n=le(e,t,r),o="number"),null!=n&&n==n&&("number"===o&&(n+=r&&r[3]||(x.cssNumber[a]?"":"px")),v.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),s&&"set"in s&&void 0===(n=s.set(e,n,i))||(l?c.setProperty(t,n):c[t]=n))}},css:function(e,t,n,i){var r,o,s,a=Y(t);return Ke.test(t)||(t=Ze(a)),(s=x.cssHooks[t]||x.cssHooks[a])&&"get"in s&&(r=s.get(e,!0,n)),void 0===r&&(r=He(e,t,i)),"normal"===r&&t in Ge&&(r=Ge[t]),""===n||n?(o=parseFloat(r),!0===n||isFinite(o)?o||0:r):r}}),x.each(["height","width"],function(e,t){x.cssHooks[t]={get:function(e,n,i){if(n)return!Ve.test(x.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?et(e,t,i):ae(e,qe,function(){return et(e,t,i)})},set:function(e,n,i){var r,o=We(e),s="border-box"===x.css(e,"boxSizing",!1,o),a=i&&Qe(e,t,i,s,o);return s&&v.scrollboxSize()===o.position&&(a-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-Qe(e,t,"border",!1,o)-.5)),a&&(r=re.exec(n))&&"px"!==(r[3]||"px")&&(e.style[t]=n,n=x.css(e,t)),Je(0,n,a)}}}),x.cssHooks.marginLeft=Ue(v.reliableMarginLeft,function(e,t){if(t)return(parseFloat(He(e,"marginLeft"))||e.getBoundingClientRect().left-ae(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),x.each({margin:"",padding:"",border:"Width"},function(e,t){x.cssHooks[e+t]={expand:function(n){for(var i=0,r={},o="string"==typeof n?n.split(" "):[n];i<4;i++)r[e+oe[i]+t]=o[i]||o[i-2]||o[0];return r}},"margin"!==e&&(x.cssHooks[e+t].set=Je)}),x.fn.extend({css:function(e,t){return V(this,function(e,t,n){var i,r,o={},s=0;if(Array.isArray(t)){for(i=We(e),r=t.length;s1)}}),x.Tween=tt,tt.prototype={constructor:tt,init:function(e,t,n,i,r,o){this.elem=e,this.prop=n,this.easing=r||x.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=o||(x.cssNumber[n]?"":"px")},cur:function(){var e=tt.propHooks[this.prop];return e&&e.get?e.get(this):tt.propHooks._default.get(this)},run:function(e){var t,n=tt.propHooks[this.prop];return this.options.duration?this.pos=t=x.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):tt.propHooks._default.set(this),this}},tt.prototype.init.prototype=tt.prototype,tt.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=x.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){x.fx.step[e.prop]?x.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[x.cssProps[e.prop]]&&!x.cssHooks[e.prop]?e.elem[e.prop]=e.now:x.style(e.elem,e.prop,e.now+e.unit)}}},tt.propHooks.scrollTop=tt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},x.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},x.fx=tt.prototype.init,x.fx.step={};var nt,it,rt=/^(?:toggle|show|hide)$/,ot=/queueHooks$/;function st(){it&&(!1===s.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(st):n.setTimeout(st,x.fx.interval),x.fx.tick())}function at(){return n.setTimeout(function(){nt=void 0}),nt=Date.now()}function lt(e,t){var n,i=0,r={height:e};for(t=t?1:0;i<4;i+=2-t)r["margin"+(n=oe[i])]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function ct(e,t,n){for(var i,r=(ut.tweeners[t]||[]).concat(ut.tweeners["*"]),o=0,s=r.length;o1)},removeAttr:function(e){return this.each(function(){x.removeAttr(this,e)})}}),x.extend({attr:function(e,t,n){var i,r,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?x.prop(e,t,n):(1===o&&x.isXMLDoc(e)||(r=x.attrHooks[t.toLowerCase()]||(x.expr.match.bool.test(t)?ht:void 0)),void 0!==n?null===n?void x.removeAttr(e,t):r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:(e.setAttribute(t,n+""),n):r&&"get"in r&&null!==(i=r.get(e,t))?i:null==(i=x.find.attr(e,t))?void 0:i)},attrHooks:{type:{set:function(e,t){if(!v.radioValue&&"radio"===t&&T(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,i=0,r=t&&t.match($);if(r&&1===e.nodeType)for(;n=r[i++];)e.removeAttribute(n)}}),ht={set:function(e,t,n){return!1===t?x.removeAttr(e,n):e.setAttribute(n,n),n}},x.each(x.expr.match.bool.source.match(/\w+/g),function(e,t){var n=dt[t]||x.find.attr;dt[t]=function(e,t,i){var r,o,s=t.toLowerCase();return i||(o=dt[s],dt[s]=r,r=null!=n(e,t,i)?s:null,dt[s]=o),r}});var ft=/^(?:input|select|textarea|button)$/i,pt=/^(?:a|area)$/i;function gt(e){return(e.match($)||[]).join(" ")}function mt(e){return e.getAttribute&&e.getAttribute("class")||""}function vt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match($)||[]}x.fn.extend({prop:function(e,t){return V(this,x.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[x.propFix[e]||e]})}}),x.extend({prop:function(e,t,n){var i,r,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&x.isXMLDoc(e)||(t=x.propFix[t]||t,r=x.propHooks[t]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:e[t]=n:r&&"get"in r&&null!==(i=r.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=x.find.attr(e,"tabindex");return t?parseInt(t,10):ft.test(e.nodeName)||pt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),v.optSelected||(x.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),x.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){x.propFix[this.toLowerCase()]=this}),x.fn.extend({addClass:function(e){var t,n,i,r,o,s,a,l=0;if(y(e))return this.each(function(t){x(this).addClass(e.call(this,t,mt(this)))});if((t=vt(e)).length)for(;n=this[l++];)if(r=mt(n),i=1===n.nodeType&&" "+gt(r)+" "){for(s=0;o=t[s++];)i.indexOf(" "+o+" ")<0&&(i+=o+" ");r!==(a=gt(i))&&n.setAttribute("class",a)}return this},removeClass:function(e){var t,n,i,r,o,s,a,l=0;if(y(e))return this.each(function(t){x(this).removeClass(e.call(this,t,mt(this)))});if(!arguments.length)return this.attr("class","");if((t=vt(e)).length)for(;n=this[l++];)if(r=mt(n),i=1===n.nodeType&&" "+gt(r)+" "){for(s=0;o=t[s++];)for(;i.indexOf(" "+o+" ")>-1;)i=i.replace(" "+o+" "," ");r!==(a=gt(i))&&n.setAttribute("class",a)}return this},toggleClass:function(e,t){var n=typeof e,i="string"===n||Array.isArray(e);return"boolean"==typeof t&&i?t?this.addClass(e):this.removeClass(e):y(e)?this.each(function(n){x(this).toggleClass(e.call(this,n,mt(this),t),t)}):this.each(function(){var t,r,o,s;if(i)for(r=0,o=x(this),s=vt(e);t=s[r++];)o.hasClass(t)?o.removeClass(t):o.addClass(t);else void 0!==e&&"boolean"!==n||((t=mt(this))&&J.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":J.get(this,"__className__")||""))})},hasClass:function(e){var t,n,i=0;for(t=" "+e+" ";n=this[i++];)if(1===n.nodeType&&(" "+gt(mt(n))+" ").indexOf(t)>-1)return!0;return!1}});var yt=/\r/g;x.fn.extend({val:function(e){var t,n,i,r=this[0];return arguments.length?(i=y(e),this.each(function(n){var r;1===this.nodeType&&(null==(r=i?e.call(this,n,x(this).val()):e)?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=x.map(r,function(e){return null==e?"":e+""})),(t=x.valHooks[this.type]||x.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,r,"value")||(this.value=r))})):r?(t=x.valHooks[r.type]||x.valHooks[r.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(r,"value"))?n:"string"==typeof(n=r.value)?n.replace(yt,""):null==n?"":n:void 0}}),x.extend({valHooks:{option:{get:function(e){var t=x.find.attr(e,"value");return null!=t?t:gt(x.text(e))}},select:{get:function(e){var t,n,i,r=e.options,o=e.selectedIndex,s="select-one"===e.type,a=s?null:[],l=s?o+1:r.length;for(i=o<0?l:s?o:0;i-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),x.each(["radio","checkbox"],function(){x.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=x.inArray(x(e).val(),t)>-1}},v.checkOn||(x.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),v.focusin="onfocusin"in n;var bt=/^(?:focusinfocus|focusoutblur)$/,wt=function(e){e.stopPropagation()};x.extend(x.event,{trigger:function(e,t,i,r){var o,a,l,c,u,h,d,f,g=[i||s],m=p.call(e,"type")?e.type:e,v=p.call(e,"namespace")?e.namespace.split("."):[];if(a=f=l=i=i||s,3!==i.nodeType&&8!==i.nodeType&&!bt.test(m+x.event.triggered)&&(m.indexOf(".")>-1&&(m=(v=m.split(".")).shift(),v.sort()),u=m.indexOf(":")<0&&"on"+m,(e=e[x.expando]?e:new x.Event(m,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=v.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=i),t=null==t?[e]:x.makeArray(t,[e]),d=x.event.special[m]||{},r||!d.trigger||!1!==d.trigger.apply(i,t))){if(!r&&!d.noBubble&&!b(i)){for(c=d.delegateType||m,bt.test(c+m)||(a=a.parentNode);a;a=a.parentNode)g.push(a),l=a;l===(i.ownerDocument||s)&&g.push(l.defaultView||l.parentWindow||n)}for(o=0;(a=g[o++])&&!e.isPropagationStopped();)f=a,e.type=o>1?c:d.bindType||m,(h=(J.get(a,"events")||{})[e.type]&&J.get(a,"handle"))&&h.apply(a,t),(h=u&&a[u])&&h.apply&&X(a)&&(e.result=h.apply(a,t),!1===e.result&&e.preventDefault());return e.type=m,r||e.isDefaultPrevented()||d._default&&!1!==d._default.apply(g.pop(),t)||!X(i)||u&&y(i[m])&&!b(i)&&((l=i[u])&&(i[u]=null),x.event.triggered=m,e.isPropagationStopped()&&f.addEventListener(m,wt),i[m](),e.isPropagationStopped()&&f.removeEventListener(m,wt),x.event.triggered=void 0,l&&(i[u]=l)),e.result}},simulate:function(e,t,n){var i=x.extend(new x.Event,n,{type:e,isSimulated:!0});x.event.trigger(i,null,t)}}),x.fn.extend({trigger:function(e,t){return this.each(function(){x.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return x.event.trigger(e,t,n,!0)}}),v.focusin||x.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){x.event.simulate(t,e.target,x.event.fix(e))};x.event.special[t]={setup:function(){var i=this.ownerDocument||this,r=J.access(i,t);r||i.addEventListener(e,n,!0),J.access(i,t,(r||0)+1)},teardown:function(){var i=this.ownerDocument||this,r=J.access(i,t)-1;r?J.access(i,t,r):(i.removeEventListener(e,n,!0),J.remove(i,t))}}});var _t=n.location,Ct=Date.now(),xt=/\?/;x.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new n.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||x.error("Invalid XML: "+e),t};var At=/\[\]$/,Et=/\r?\n/g,kt=/^(?:submit|button|image|reset|file)$/i,St=/^(?:input|select|textarea|keygen)/i;function Ft(e,t,n,i){var r;if(Array.isArray(t))x.each(t,function(t,r){n||At.test(e)?i(e,r):Ft(e+"["+("object"==typeof r&&null!=r?t:"")+"]",r,n,i)});else if(n||"object"!==C(t))i(e,t);else for(r in t)Ft(e+"["+r+"]",t[r],n,i)}x.param=function(e,t){var n,i=[],r=function(e,t){var n=y(t)?t():t;i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(Array.isArray(e)||e.jquery&&!x.isPlainObject(e))x.each(e,function(){r(this.name,this.value)});else for(n in e)Ft(n,e[n],t,r);return i.join("&")},x.fn.extend({serialize:function(){return x.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=x.prop(this,"elements");return e?x.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!x(this).is(":disabled")&&St.test(this.nodeName)&&!kt.test(e)&&(this.checked||!de.test(e))}).map(function(e,t){var n=x(this).val();return null==n?null:Array.isArray(n)?x.map(n,function(e){return{name:t.name,value:e.replace(Et,"\r\n")}}):{name:t.name,value:n.replace(Et,"\r\n")}}).get()}});var Dt=/%20/g,Tt=/#.*$/,Bt=/([?&])_=[^&]*/,Lt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Mt=/^(?:GET|HEAD)$/,Pt=/^\/\//,Rt={},Ot={},jt="*/".concat("*"),$t=s.createElement("a");function It(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var i,r=0,o=t.toLowerCase().match($)||[];if(y(n))for(;i=o[r++];)"+"===i[0]?(i=i.slice(1)||"*",(e[i]=e[i]||[]).unshift(n)):(e[i]=e[i]||[]).push(n)}}function Nt(e,t,n,i){var r={},o=e===Ot;function s(a){var l;return r[a]=!0,x.each(e[a]||[],function(e,a){var c=a(t,n,i);return"string"!=typeof c||o||r[c]?o?!(l=c):void 0:(t.dataTypes.unshift(c),s(c),!1)}),l}return s(t.dataTypes[0])||!r["*"]&&s("*")}function Wt(e,t){var n,i,r=x.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((r[n]?e:i||(i={}))[n]=t[n]);return i&&x.extend(!0,e,i),e}$t.href=_t.href,x.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:_t.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(_t.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":jt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":x.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Wt(Wt(e,x.ajaxSettings),t):Wt(x.ajaxSettings,e)},ajaxPrefilter:It(Rt),ajaxTransport:It(Ot),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var i,r,o,a,l,c,u,h,d,f,p=x.ajaxSetup({},t),g=p.context||p,m=p.context&&(g.nodeType||g.jquery)?x(g):x.event,v=x.Deferred(),y=x.Callbacks("once memory"),b=p.statusCode||{},w={},_={},C="canceled",A={readyState:0,getResponseHeader:function(e){var t;if(u){if(!a)for(a={};t=Lt.exec(o);)a[t[1].toLowerCase()]=t[2];t=a[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return u?o:null},setRequestHeader:function(e,t){return null==u&&(e=_[e.toLowerCase()]=_[e.toLowerCase()]||e,w[e]=t),this},overrideMimeType:function(e){return null==u&&(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(u)A.always(e[A.status]);else for(t in e)b[t]=[b[t],e[t]];return this},abort:function(e){var t=e||C;return i&&i.abort(t),E(0,t),this}};if(v.promise(A),p.url=((e||p.url||_t.href)+"").replace(Pt,_t.protocol+"//"),p.type=t.method||t.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match($)||[""],null==p.crossDomain){c=s.createElement("a");try{c.href=p.url,c.href=c.href,p.crossDomain=$t.protocol+"//"+$t.host!=c.protocol+"//"+c.host}catch(e){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=x.param(p.data,p.traditional)),Nt(Rt,p,t,A),u)return A;for(d in(h=x.event&&p.global)&&0==x.active++&&x.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Mt.test(p.type),r=p.url.replace(Tt,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(Dt,"+")):(f=p.url.slice(r.length),p.data&&(p.processData||"string"==typeof p.data)&&(r+=(xt.test(r)?"&":"?")+p.data,delete p.data),!1===p.cache&&(r=r.replace(Bt,"$1"),f=(xt.test(r)?"&":"?")+"_="+Ct+++f),p.url=r+f),p.ifModified&&(x.lastModified[r]&&A.setRequestHeader("If-Modified-Since",x.lastModified[r]),x.etag[r]&&A.setRequestHeader("If-None-Match",x.etag[r])),(p.data&&p.hasContent&&!1!==p.contentType||t.contentType)&&A.setRequestHeader("Content-Type",p.contentType),A.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+jt+"; q=0.01":""):p.accepts["*"]),p.headers)A.setRequestHeader(d,p.headers[d]);if(p.beforeSend&&(!1===p.beforeSend.call(g,A,p)||u))return A.abort();if(C="abort",y.add(p.complete),A.done(p.success),A.fail(p.error),i=Nt(Ot,p,t,A)){if(A.readyState=1,h&&m.trigger("ajaxSend",[A,p]),u)return A;p.async&&p.timeout>0&&(l=n.setTimeout(function(){A.abort("timeout")},p.timeout));try{u=!1,i.send(w,E)}catch(e){if(u)throw e;E(-1,e)}}else E(-1,"No Transport");function E(e,t,s,a){var c,d,f,w,_,C=t;u||(u=!0,l&&n.clearTimeout(l),i=void 0,o=a||"",A.readyState=e>0?4:0,c=e>=200&&e<300||304===e,s&&(w=function(e,t,n){for(var i,r,o,s,a=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(r in a)if(a[r]&&a[r].test(i)){l.unshift(r);break}if(l[0]in n)o=l[0];else{for(r in n){if(!l[0]||e.converters[r+" "+l[0]]){o=r;break}s||(s=r)}o=o||s}if(o)return o!==l[0]&&l.unshift(o),n[o]}(p,A,s)),w=function(e,t,n,i){var r,o,s,a,l,c={},u=e.dataTypes.slice();if(u[1])for(s in e.converters)c[s.toLowerCase()]=e.converters[s];for(o=u.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!l&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=u.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(s=c[l+" "+o]||c["* "+o]))for(r in c)if((a=r.split(" "))[1]===o&&(s=c[l+" "+a[0]]||c["* "+a[0]])){!0===s?s=c[r]:!0!==c[r]&&(o=a[0],u.unshift(a[1]));break}if(!0!==s)if(s&&e.throws)t=s(t);else try{t=s(t)}catch(e){return{state:"parsererror",error:s?e:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}(p,w,A,c),c?(p.ifModified&&((_=A.getResponseHeader("Last-Modified"))&&(x.lastModified[r]=_),(_=A.getResponseHeader("etag"))&&(x.etag[r]=_)),204===e||"HEAD"===p.type?C="nocontent":304===e?C="notmodified":(C=w.state,d=w.data,c=!(f=w.error))):(f=C,!e&&C||(C="error",e<0&&(e=0))),A.status=e,A.statusText=(t||C)+"",c?v.resolveWith(g,[d,C,A]):v.rejectWith(g,[A,C,f]),A.statusCode(b),b=void 0,h&&m.trigger(c?"ajaxSuccess":"ajaxError",[A,p,c?d:f]),y.fireWith(g,[A,C]),h&&(m.trigger("ajaxComplete",[A,p]),--x.active||x.event.trigger("ajaxStop")))}return A},getJSON:function(e,t,n){return x.get(e,t,n,"json")},getScript:function(e,t){return x.get(e,void 0,t,"script")}}),x.each(["get","post"],function(e,t){x[t]=function(e,n,i,r){return y(n)&&(r=r||i,i=n,n=void 0),x.ajax(x.extend({url:e,type:t,dataType:r,data:n,success:i},x.isPlainObject(e)&&e))}}),x._evalUrl=function(e){return x.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},x.fn.extend({wrapAll:function(e){var t;return this[0]&&(y(e)&&(e=e.call(this[0])),t=x(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return y(e)?this.each(function(t){x(this).wrapInner(e.call(this,t))}):this.each(function(){var t=x(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=y(e);return this.each(function(n){x(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){x(this).replaceWith(this.childNodes)}),this}}),x.expr.pseudos.hidden=function(e){return!x.expr.pseudos.visible(e)},x.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},x.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(e){}};var zt={0:200,1223:204},Ht=x.ajaxSettings.xhr();v.cors=!!Ht&&"withCredentials"in Ht,v.ajax=Ht=!!Ht,x.ajaxTransport(function(e){var t,i;if(v.cors||Ht&&!e.crossDomain)return{send:function(r,o){var s,a=e.xhr();if(a.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(s in e.xhrFields)a[s]=e.xhrFields[s];for(s in e.mimeType&&a.overrideMimeType&&a.overrideMimeType(e.mimeType),e.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)a.setRequestHeader(s,r[s]);t=function(e){return function(){t&&(t=i=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===e?a.abort():"error"===e?"number"!=typeof a.status?o(0,"error"):o(a.status,a.statusText):o(zt[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=t(),i=a.onerror=a.ontimeout=t("error"),void 0!==a.onabort?a.onabort=i:a.onreadystatechange=function(){4===a.readyState&&n.setTimeout(function(){t&&i()})},t=t("abort");try{a.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}}),x.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),x.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return x.globalEval(e),e}}}),x.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),x.ajaxTransport("script",function(e){var t,n;if(e.crossDomain)return{send:function(i,r){t=x(" - + @@ -170,7 +170,7 @@
$ - +
@@ -187,7 +187,7 @@ provides information about each script's production. The scripts are categorized by the hostname of the servers on which they are running.

Total online production of - Active scripts: $0.000 / sec
+ Active scripts: $0.000 / sec
Total online production since last Aug installation: $0.000 ($0.000 / sec)